diff --git a/cmd/gopcomm/yap/component/GoplusMarkdown.js b/cmd/gopcomm/yap/component/GoplusMarkdown.js new file mode 100644 index 00000000..73ccc50c --- /dev/null +++ b/cmd/gopcomm/yap/component/GoplusMarkdown.js @@ -0,0 +1,112251 @@ +import { openBlock as Y7t, createElementBlock as J7t, createElementVNode as ofn } from "vue"; +var jy = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function v$(r) { + return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r; +} +function su(r, i) { + return r(i = { exports: {} }, i.exports), i.exports; +} +function lMe() { + throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs"); +} +var tO, Cpe, _ge = function(r) { + return r && r.Math == Math && r; +}, Qi = _ge(typeof globalThis == "object" && globalThis) || _ge(typeof window == "object" && window) || _ge(typeof self == "object" && self) || _ge(typeof jy == "object" && jy) || /* @__PURE__ */ function() { + return this; +}() || Function("return this")(), oh = function(r) { + try { + return !!r(); + } catch { + return !0; + } +}, sX = !oh(function() { + var r = (function() { + }).bind(); + return typeof r != "function" || r.hasOwnProperty("prototype"); +}), Z7t = Function.prototype, qwt = Z7t.apply, Ywt = Z7t.call, gL = typeof Reflect == "object" && Reflect.apply || (sX ? Ywt.bind(qwt) : function() { + return Ywt.apply(qwt, arguments); +}), e9t = Function.prototype, sfn = e9t.bind, cDe = e9t.call, cfn = sX && sfn.bind(cDe, cDe), Do = sX ? function(r) { + return r && cfn(r); +} : function(r) { + return r && function() { + return cDe.apply(r, arguments); + }; +}, vf = function(r) { + return typeof r == "function"; +}, of = !oh(function() { + return Object.defineProperty({}, 1, { get: function() { + return 7; + } })[1] != 7; +}), Ege = Function.prototype.call, rl = sX ? Ege.bind(Ege) : function() { + return Ege.apply(Ege, arguments); +}, Jwt = {}.propertyIsEnumerable, Zwt = Object.getOwnPropertyDescriptor, _ie = { f: Zwt && !Jwt.call({ 1: 2 }, 1) ? function(r) { + var i = Zwt(this, r); + return !!i && i.enumerable; +} : Jwt }, bk = function(r, i) { + return { enumerable: !(1 & r), configurable: !(2 & r), writable: !(4 & r), value: i }; +}, lfn = Do({}.toString), ufn = Do("".slice), BT = function(r) { + return ufn(lfn(r), 8, -1); +}, uMe = Qi.Object, hfn = Do("".split), Mbe = oh(function() { + return !uMe("z").propertyIsEnumerable(0); +}) ? function(r) { + return BT(r) == "String" ? hfn(r, "") : uMe(r); +} : uMe, ffn = Qi.TypeError, DO = function(r) { + if (r == null) + throw ffn("Can't call method on " + r); + return r; +}, v5 = function(r) { + return Mbe(DO(r)); +}, Id = function(r) { + return typeof r == "object" ? r !== null : vf(r); +}, ql = {}, e3t = function(r) { + return vf(r) ? r : void 0; +}, b2 = function(r, i) { + return arguments.length < 2 ? e3t(ql[r]) || e3t(Qi[r]) : ql[r] && ql[r][i] || Qi[r] && Qi[r][i]; +}, E1 = Do({}.isPrototypeOf), ST = b2("navigator", "userAgent") || "", t3t = Qi.process, n3t = Qi.Deno, r3t = t3t && t3t.versions || n3t && n3t.version, i3t = r3t && r3t.v8; +i3t && (Cpe = (tO = i3t.split("."))[0] > 0 && tO[0] < 4 ? 1 : +(tO[0] + tO[1])), !Cpe && ST && (!(tO = ST.match(/Edge\/(\d+)/)) || tO[1] >= 74) && (tO = ST.match(/Chrome\/(\d+)/)) && (Cpe = +tO[1]); +var MT = Cpe, aC = !!Object.getOwnPropertySymbols && !oh(function() { + var r = Symbol(); + return !String(r) || !(Object(r) instanceof Symbol) || !Symbol.sham && MT && MT < 41; +}), EPe = aC && !Symbol.sham && typeof Symbol.iterator == "symbol", dfn = Qi.Object, OG = EPe ? function(r) { + return typeof r == "symbol"; +} : function(r) { + var i = b2("Symbol"); + return vf(i) && E1(i.prototype, dfn(r)); +}, Afn = Qi.String, Eie = function(r) { + try { + return Afn(r); + } catch { + return "Object"; + } +}, gfn = Qi.TypeError, Fh = function(r) { + if (vf(r)) + return r; + throw gfn(Eie(r) + " is not a function"); +}, Cme = function(r, i) { + var o = r[i]; + return o == null ? void 0 : Fh(o); +}, pfn = Qi.TypeError, mfn = Object.defineProperty, a3t = "__core-js_shared__", kO = Qi[a3t] || function(r, i) { + try { + mfn(Qi, r, { value: i, configurable: !0, writable: !0 }); + } catch { + Qi[r] = i; + } + return i; +}(a3t, {}), NO = su(function(r) { + (r.exports = function(i, o) { + return kO[i] || (kO[i] = o !== void 0 ? o : {}); + })("versions", []).push({ version: "3.22.6", mode: "pure", copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE", source: "https://github.com/zloirock/core-js" }); +}), bfn = Qi.Object, y5 = function(r) { + return bfn(DO(r)); +}, vfn = Do({}.hasOwnProperty), nl = Object.hasOwn || function(r, i) { + return vfn(y5(r), i); +}, yfn = 0, wfn = Math.random(), kfn = Do(1 .toString), $re = function(r) { + return "Symbol(" + (r === void 0 ? "" : r) + ")_" + kfn(++yfn + wfn, 36); +}, yne = NO("wks"), e$ = Qi.Symbol, o3t = e$ && e$.for, xfn = EPe ? e$ : e$ && e$.withoutSetter || $re, TA = function(r) { + if (!nl(yne, r) || !aC && typeof yne[r] != "string") { + var i = "Symbol." + r; + aC && nl(e$, r) ? yne[r] = e$[r] : yne[r] = EPe && o3t ? o3t(i) : xfn(i); + } + return yne[r]; +}, Cfn = Qi.TypeError, _fn = TA("toPrimitive"), Efn = function(r, i) { + if (!Id(r) || OG(r)) + return r; + var o, l = Cme(r, _fn); + if (l) { + if (i === void 0 && (i = "default"), o = rl(l, r, i), !Id(o) || OG(o)) + return o; + throw Cfn("Can't convert object to primitive value"); + } + return i === void 0 && (i = "number"), function(f, g) { + var A, b; + if (g === "string" && vf(A = f.toString) && !Id(b = rl(A, f)) || vf(A = f.valueOf) && !Id(b = rl(A, f)) || g !== "string" && vf(A = f.toString) && !Id(b = rl(A, f))) + return b; + throw pfn("Can't convert object to primitive value"); + }(r, i); +}, a$ = function(r) { + var i = Efn(r, "string"); + return OG(i) ? i : i + ""; +}, lDe = Qi.document, Tfn = Id(lDe) && Id(lDe.createElement), _me = function(r) { + return Tfn ? lDe.createElement(r) : {}; +}, t9t = !of && !oh(function() { + return Object.defineProperty(_me("div"), "a", { get: function() { + return 7; + } }).a != 7; +}), s3t = Object.getOwnPropertyDescriptor, DT = { f: of ? s3t : function(r, i) { + if (r = v5(r), i = a$(i), t9t) + try { + return s3t(r, i); + } catch { + } + if (nl(r, i)) + return bk(!rl(_ie.f, r, i), r[i]); +} }, Bfn = /#|\.prototype\./, Tie = function(r, i) { + var o = Lfn[Sfn(r)]; + return o == Mfn || o != Ifn && (vf(i) ? oh(i) : !!i); +}, Sfn = Tie.normalize = function(r) { + return String(r).replace(Bfn, ".").toLowerCase(); +}, Lfn = Tie.data = {}, Ifn = Tie.NATIVE = "N", Mfn = Tie.POLYFILL = "P", n9t = Tie, Ffn = Do(Do.bind), hm = function(r, i) { + return Fh(r), i === void 0 ? r : sX ? Ffn(r, i) : function() { + return r.apply(i, arguments); + }; +}, r9t = of && oh(function() { + return Object.defineProperty(function() { + }, "prototype", { value: 42, writable: !1 }).prototype != 42; +}), Ofn = Qi.String, Dfn = Qi.TypeError, Oh = function(r) { + if (Id(r)) + return r; + throw Dfn(Ofn(r) + " is not an object"); +}, Nfn = Qi.TypeError, hMe = Object.defineProperty, Pfn = Object.getOwnPropertyDescriptor, fMe = "enumerable", dMe = "configurable", AMe = "writable", _3 = { f: of ? r9t ? function(r, i, o) { + if (Oh(r), i = a$(i), Oh(o), typeof r == "function" && i === "prototype" && "value" in o && AMe in o && !o[AMe]) { + var l = Pfn(r, i); + l && l[AMe] && (r[i] = o.value, o = { configurable: dMe in o ? o[dMe] : l[dMe], enumerable: fMe in o ? o[fMe] : l[fMe], writable: !1 }); + } + return hMe(r, i, o); +} : hMe : function(r, i, o) { + if (Oh(r), i = a$(i), Oh(o), t9t) + try { + return hMe(r, i, o); + } catch { + } + if ("get" in o || "set" in o) + throw Nfn("Accessors not supported"); + return "value" in o && (r[i] = o.value), r; +} }, Uy = of ? function(r, i, o) { + return _3.f(r, i, bk(1, o)); +} : function(r, i, o) { + return r[i] = o, r; +}, Rfn = DT.f, Qfn = function(r) { + var i = function(o, l, f) { + if (this instanceof i) { + switch (arguments.length) { + case 0: + return new r(); + case 1: + return new r(o); + case 2: + return new r(o, l); + } + return new r(o, l, f); + } + return gL(r, this, arguments); + }; + return i.prototype = r.prototype, i; +}, qa = function(r, i) { + var o, l, f, g, A, b, v, k, _ = r.target, T = r.global, L = r.stat, F = r.proto, U = T ? Qi : L ? Qi[_] : (Qi[_] || {}).prototype, q = T ? ql : ql[_] || Uy(ql, _, {})[_], Z = q.prototype; + for (f in i) + o = !n9t(T ? f : _ + (L ? "." : "#") + f, r.forced) && U && nl(U, f), A = q[f], o && (b = r.dontCallGetSet ? (k = Rfn(U, f)) && k.value : U[f]), g = o && b ? b : i[f], o && typeof A == typeof g || (v = r.bind && o ? hm(g, Qi) : r.wrap && o ? Qfn(g) : F && vf(g) ? Do(g) : g, (r.sham || g && g.sham || A && A.sham) && Uy(v, "sham", !0), Uy(q, f, v), F && (nl(ql, l = _ + "Prototype") || Uy(ql, l, {}), Uy(ql[l], f, g), r.real && Z && !Z[f] && Uy(Z, f, g))); +}, _O = Do([].slice), c3t = Qi.Function, $fn = Do([].concat), Ufn = Do([].join), gMe = {}, uDe = sX ? c3t.bind : function(r) { + var i = Fh(this), o = i.prototype, l = _O(arguments, 1), f = function() { + var g = $fn(l, _O(arguments)); + return this instanceof f ? function(A, b, v) { + if (!nl(gMe, b)) { + for (var k = [], _ = 0; _ < b; _++) + k[_] = "a[" + _ + "]"; + gMe[b] = c3t("C,a", "return new C(" + Ufn(k, ",") + ")"); + } + return gMe[b](A, v); + }(i, g.length, g) : i.apply(r, g); + }; + return Id(o) && (f.prototype = o), f; +}, i9t = {}; +i9t[TA("toStringTag")] = "z"; +var TPe = String(i9t) === "[object z]", Hfn = TA("toStringTag"), jfn = Qi.Object, Kfn = BT(/* @__PURE__ */ function() { + return arguments; +}()) == "Arguments", PO = TPe ? BT : function(r) { + var i, o, l; + return r === void 0 ? "Undefined" : r === null ? "Null" : typeof (o = function(f, g) { + try { + return f[g]; + } catch { + } + }(i = jfn(r), Hfn)) == "string" ? o : Kfn ? BT(i) : (l = BT(i)) == "Object" && vf(i.callee) ? "Arguments" : l; +}, zfn = Do(Function.toString); +vf(kO.inspectSource) || (kO.inspectSource = function(r) { + return zfn(r); +}); +var BPe = kO.inspectSource, a9t = function() { +}, Gfn = [], o9t = b2("Reflect", "construct"), SPe = /^\s*(?:class|function)\b/, Xfn = Do(SPe.exec), Wfn = !SPe.exec(a9t), wne = function(r) { + if (!vf(r)) + return !1; + try { + return o9t(a9t, Gfn, r), !0; + } catch { + return !1; + } +}, s9t = function(r) { + if (!vf(r)) + return !1; + switch (PO(r)) { + case "AsyncFunction": + case "GeneratorFunction": + case "AsyncGeneratorFunction": + return !1; + } + try { + return Wfn || !!Xfn(SPe, BPe(r)); + } catch { + return !0; + } +}; +s9t.sham = !0; +var Tge, Fbe = !o9t || oh(function() { + var r; + return wne(wne.call) || !wne(Object) || !wne(function() { + r = !0; + }) || r; +}) ? s9t : wne, Vfn = Qi.TypeError, Eme = function(r) { + if (Fbe(r)) + return r; + throw Vfn(Eie(r) + " is not a constructor"); +}, qfn = Math.ceil, Yfn = Math.floor, Jfn = Math.trunc || function(r) { + var i = +r; + return (i > 0 ? Yfn : qfn)(i); +}, cX = function(r) { + var i = +r; + return i != i || i === 0 ? 0 : Jfn(i); +}, Zfn = Math.max, e1n = Math.min, yL = function(r, i) { + var o = cX(r); + return o < 0 ? Zfn(o + i, 0) : e1n(o, i); +}, t1n = Math.min, LPe = function(r) { + return r > 0 ? t1n(cX(r), 9007199254740991) : 0; +}, Ck = function(r) { + return LPe(r.length); +}, l3t = function(r) { + return function(i, o, l) { + var f, g = v5(i), A = Ck(g), b = yL(l, A); + if (r && o != o) { + for (; A > b; ) + if ((f = g[b++]) != f) + return !0; + } else + for (; A > b; b++) + if ((r || b in g) && g[b] === o) + return r || b || 0; + return !r && -1; + }; +}, IPe = { includes: l3t(!0), indexOf: l3t(!1) }, lX = {}, n1n = IPe.indexOf, u3t = Do([].push), c9t = function(r, i) { + var o, l = v5(r), f = 0, g = []; + for (o in l) + !nl(lX, o) && nl(l, o) && u3t(g, o); + for (; i.length > f; ) + nl(l, o = i[f++]) && (~n1n(g, o) || u3t(g, o)); + return g; +}, Tme = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], pL = Object.keys || function(r) { + return c9t(r, Tme); +}, r1n = of && !r9t ? Object.defineProperties : function(r, i) { + Oh(r); + for (var o, l = v5(i), f = pL(i), g = f.length, A = 0; g > A; ) + _3.f(r, o = f[A++], l[o]); + return r; +}, MPe = { f: r1n }, hDe = b2("document", "documentElement"), h3t = NO("keys"), Obe = function(r) { + return h3t[r] || (h3t[r] = $re(r)); +}, fDe = "prototype", dDe = "script", l9t = Obe("IE_PROTO"), pMe = function() { +}, u9t = function(r) { + return "<" + dDe + ">" + r + ""; +}, f3t = function(r) { + r.write(u9t("")), r.close(); + var i = r.parentWindow.Object; + return r = null, i; +}, _pe = function() { + try { + Tge = new ActiveXObject("htmlfile"); + } catch { + } + var r, i, o; + _pe = typeof document < "u" ? document.domain && Tge ? f3t(Tge) : (i = _me("iframe"), o = "java" + dDe + ":", i.style.display = "none", hDe.appendChild(i), i.src = String(o), (r = i.contentWindow.document).open(), r.write(u9t("document.F=Object")), r.close(), r.F) : f3t(Tge); + for (var l = Tme.length; l--; ) + delete _pe[fDe][Tme[l]]; + return _pe(); +}; +lX[l9t] = !0; +var wk = Object.create || function(r, i) { + var o; + return r !== null ? (pMe[fDe] = Oh(r), o = new pMe(), pMe[fDe] = null, o[l9t] = r) : o = _pe(), i === void 0 ? o : MPe.f(o, i); +}, FPe = b2("Reflect", "construct"), i1n = Object.prototype, a1n = [].push, h9t = oh(function() { + function r() { + } + return !(FPe(function() { + }, [], r) instanceof r); +}), f9t = !oh(function() { + FPe(function() { + }); +}), d3t = h9t || f9t; +qa({ target: "Reflect", stat: !0, forced: d3t, sham: d3t }, { construct: function(r, i) { + Eme(r), Oh(i); + var o = arguments.length < 3 ? r : Eme(arguments[2]); + if (f9t && !h9t) + return FPe(r, i, o); + if (r == o) { + switch (i.length) { + case 0: + return new r(); + case 1: + return new r(i[0]); + case 2: + return new r(i[0], i[1]); + case 3: + return new r(i[0], i[1], i[2]); + case 4: + return new r(i[0], i[1], i[2], i[3]); + } + var l = [null]; + return gL(a1n, l, i), new (gL(uDe, r, l))(); + } + var f = o.prototype, g = wk(Id(f) ? f : i1n), A = gL(r, g, i); + return Id(A) ? A : g; +} }); +var d9t = ql.Reflect.construct, yt = d9t, o1n = oh(function() { + pL(1); +}); +qa({ target: "Object", stat: !0, forced: o1n }, { keys: function(r) { + return pL(y5(r)); +} }); +var Bme, bre, Sme, A9t = ql.Object.keys, yh = A9t, s1n = Qi.String, ah = function(r) { + if (PO(r) === "Symbol") + throw TypeError("Cannot convert a Symbol value to a string"); + return s1n(r); +}, c1n = Tme.concat("length", "prototype"), Ure = { f: Object.getOwnPropertyNames || function(r) { + return c9t(r, c1n); +} }, EO = function(r, i, o) { + var l = a$(i); + l in r ? _3.f(r, l, bk(0, o)) : r[l] = o; +}, l1n = Qi.Array, u1n = Math.max, c5 = function(r, i, o) { + for (var l = Ck(r), f = yL(i, l), g = yL(o === void 0 ? l : o, l), A = l1n(u1n(g - f, 0)), b = 0; f < g; f++, b++) + EO(A, b, r[f]); + return A.length = b, A; +}, A3t = Ure.f, g3t = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], OPe = { f: function(r) { + return g3t && BT(r) == "Window" ? function(i) { + try { + return A3t(i); + } catch { + return c5(g3t); + } + }(r) : A3t(v5(r)); +} }, Bie = { f: Object.getOwnPropertySymbols }, m5 = function(r, i, o, l) { + return l && l.enumerable ? r[i] = o : Uy(r, i, o), r; +}, DPe = { f: TA }, h1n = _3.f, kp = function(r) { + var i = ql.Symbol || (ql.Symbol = {}); + nl(i, r) || h1n(i, r, { value: DPe.f(r) }); +}, g9t = function() { + var r = b2("Symbol"), i = r && r.prototype, o = i && i.valueOf, l = TA("toPrimitive"); + i && !i[l] && m5(i, l, function(f) { + return rl(o, this); + }, { arity: 1 }); +}, f1n = TPe ? {}.toString : function() { + return "[object " + PO(this) + "]"; +}, d1n = _3.f, p3t = TA("toStringTag"), wL = function(r, i, o, l) { + if (r) { + var f = o ? r : r.prototype; + nl(f, p3t) || d1n(f, p3t, { configurable: !0, value: i }), l && !TPe && Uy(f, "toString", f1n); + } +}, m3t = Qi.WeakMap, A1n = vf(m3t) && /native code/.test(BPe(m3t)), b3t = "Object already initialized", ADe = Qi.TypeError, g1n = Qi.WeakMap; +if (A1n || kO.state) { + var BQ = kO.state || (kO.state = new g1n()), p1n = Do(BQ.get), v3t = Do(BQ.has), m1n = Do(BQ.set); + Bme = function(r, i) { + if (v3t(BQ, r)) + throw new ADe(b3t); + return i.facade = r, m1n(BQ, r, i), i; + }, bre = function(r) { + return p1n(BQ, r) || {}; + }, Sme = function(r) { + return v3t(BQ, r); + }; +} else { + var Qz = Obe("state"); + lX[Qz] = !0, Bme = function(r, i) { + if (nl(r, Qz)) + throw new ADe(b3t); + return i.facade = r, Uy(r, Qz, i), i; + }, bre = function(r) { + return nl(r, Qz) ? r[Qz] : {}; + }, Sme = function(r) { + return nl(r, Qz); + }; +} +var Bv = { set: Bme, get: bre, has: Sme, enforce: function(r) { + return Sme(r) ? bre(r) : Bme(r, {}); +}, getterFor: function(r) { + return function(i) { + var o; + if (!Id(i) || (o = bre(i)).type !== r) + throw ADe("Incompatible receiver, " + r + " required"); + return o; + }; +} }, kL = Array.isArray || function(r) { + return BT(r) == "Array"; +}, b1n = TA("species"), y3t = Qi.Array, Dbe = function(r, i) { + return new (function(o) { + var l; + return kL(o) && (l = o.constructor, (Fbe(l) && (l === y3t || kL(l.prototype)) || Id(l) && (l = l[b1n]) === null) && (l = void 0)), l === void 0 ? y3t : l; + }(r))(i === 0 ? 0 : i); +}, w3t = Do([].push), nO = function(r) { + var i = r == 1, o = r == 2, l = r == 3, f = r == 4, g = r == 6, A = r == 7, b = r == 5 || g; + return function(v, k, _, T) { + for (var L, F, U = y5(v), q = Mbe(U), Z = hm(k, _), R = Ck(q), J = 0, he = T || Dbe, Y = i ? he(v, R) : o || A ? he(v, 0) : void 0; R > J; J++) + if ((b || J in q) && (F = Z(L = q[J], J, U), r)) + if (i) + Y[J] = F; + else if (F) + switch (r) { + case 3: + return !0; + case 5: + return L; + case 6: + return J; + case 2: + w3t(Y, L); + } + else + switch (r) { + case 4: + return !1; + case 7: + w3t(Y, L); + } + return g ? -1 : l || f ? f : Y; + }; +}, LL = { forEach: nO(0), map: nO(1), filter: nO(2), some: nO(3), every: nO(4), find: nO(5), findIndex: nO(6), filterReject: nO(7) }, Nbe = LL.forEach, f5 = Obe("hidden"), Lme = "Symbol", Hre = "prototype", v1n = Bv.set, k3t = Bv.getterFor(Lme), Q9 = Object[Hre], jQ = Qi.Symbol, Yne = jQ && jQ[Hre], y1n = Qi.TypeError, mMe = Qi.QObject, p9t = DT.f, pO = _3.f, m9t = OPe.f, w1n = _ie.f, b9t = Do([].push), xL = NO("symbols"), Sie = NO("op-symbols"), k1n = NO("wks"), bMe = !mMe || !mMe[Hre] || !mMe[Hre].findChild, gDe = of && oh(function() { + return wk(pO({}, "a", { get: function() { + return pO(this, "a", { value: 7 }).a; + } })).a != 7; +}) ? function(r, i, o) { + var l = p9t(Q9, i); + l && delete Q9[i], pO(r, i, o), l && r !== Q9 && pO(Q9, i, l); +} : pO, vMe = function(r, i) { + var o = xL[r] = wk(Yne); + return v1n(o, { type: Lme, tag: r, description: i }), of || (o.description = i), o; +}, Ime = function(r, i, o) { + r === Q9 && Ime(Sie, i, o), Oh(r); + var l = a$(i); + return Oh(o), nl(xL, l) ? (o.enumerable ? (nl(r, f5) && r[f5][l] && (r[f5][l] = !1), o = wk(o, { enumerable: bk(0, !1) })) : (nl(r, f5) || pO(r, f5, bk(1, {})), r[f5][l] = !0), gDe(r, l, o)) : pO(r, l, o); +}, yMe = function(r, i) { + Oh(r); + var o = v5(i), l = pL(o).concat(y9t(o)); + return Nbe(l, function(f) { + of && !rl(v9t, o, f) || Ime(r, f, o[f]); + }), r; +}, v9t = function(r) { + var i = a$(r), o = rl(w1n, this, i); + return !(this === Q9 && nl(xL, i) && !nl(Sie, i)) && (!(o || !nl(this, i) || !nl(xL, i) || nl(this, f5) && this[f5][i]) || o); +}, x3t = function(r, i) { + var o = v5(r), l = a$(i); + if (o !== Q9 || !nl(xL, l) || nl(Sie, l)) { + var f = p9t(o, l); + return !f || !nl(xL, l) || nl(o, f5) && o[f5][l] || (f.enumerable = !0), f; + } +}, C3t = function(r) { + var i = m9t(v5(r)), o = []; + return Nbe(i, function(l) { + nl(xL, l) || nl(lX, l) || b9t(o, l); + }), o; +}, y9t = function(r) { + var i = r === Q9, o = m9t(i ? Sie : v5(r)), l = []; + return Nbe(o, function(f) { + !nl(xL, f) || i && !nl(Q9, f) || b9t(l, xL[f]); + }), l; +}; +aC || (jQ = function() { + if (E1(Yne, this)) + throw y1n("Symbol is not a constructor"); + var r = arguments.length && arguments[0] !== void 0 ? ah(arguments[0]) : void 0, i = $re(r), o = function(l) { + this === Q9 && rl(o, Sie, l), nl(this, f5) && nl(this[f5], i) && (this[f5][i] = !1), gDe(this, i, bk(1, l)); + }; + return of && bMe && gDe(Q9, i, { configurable: !0, set: o }), vMe(i, r); +}, Yne = jQ[Hre], m5(Yne, "toString", function() { + return k3t(this).tag; +}), m5(jQ, "withoutSetter", function(r) { + return vMe($re(r), r); +}), _ie.f = v9t, _3.f = Ime, MPe.f = yMe, DT.f = x3t, Ure.f = OPe.f = C3t, Bie.f = y9t, DPe.f = function(r) { + return vMe(TA(r), r); +}, of && pO(Yne, "description", { configurable: !0, get: function() { + return k3t(this).description; +} })), qa({ global: !0, constructor: !0, wrap: !0, forced: !aC, sham: !aC }, { Symbol: jQ }), Nbe(pL(k1n), function(r) { + kp(r); +}), qa({ target: Lme, stat: !0, forced: !aC }, { useSetter: function() { + bMe = !0; +}, useSimple: function() { + bMe = !1; +} }), qa({ target: "Object", stat: !0, forced: !aC, sham: !of }, { create: function(r, i) { + return i === void 0 ? wk(r) : yMe(wk(r), i); +}, defineProperty: Ime, defineProperties: yMe, getOwnPropertyDescriptor: x3t }), qa({ target: "Object", stat: !0, forced: !aC }, { getOwnPropertyNames: C3t }), g9t(), wL(jQ, Lme), lX[f5] = !0; +var w9t = aC && !!Symbol.for && !!Symbol.keyFor, wMe = NO("string-to-symbol-registry"), x1n = NO("symbol-to-string-registry"); +qa({ target: "Symbol", stat: !0, forced: !w9t }, { for: function(r) { + var i = ah(r); + if (nl(wMe, i)) + return wMe[i]; + var o = b2("Symbol")(i); + return wMe[i] = o, x1n[o] = i, o; +} }); +var _3t = NO("symbol-to-string-registry"); +qa({ target: "Symbol", stat: !0, forced: !w9t }, { keyFor: function(r) { + if (!OG(r)) + throw TypeError(Eie(r) + " is not a symbol"); + if (nl(_3t, r)) + return _3t[r]; +} }); +var xO = b2("JSON", "stringify"), Bge = Do(/./.exec), E3t = Do("".charAt), C1n = Do("".charCodeAt), _1n = Do("".replace), E1n = Do(1 .toString), T1n = /[\uD800-\uDFFF]/g, T3t = /^[\uD800-\uDBFF]$/, B3t = /^[\uDC00-\uDFFF]$/, S3t = !aC || oh(function() { + var r = b2("Symbol")(); + return xO([r]) != "[null]" || xO({ a: r }) != "{}" || xO(Object(r)) != "{}"; +}), L3t = oh(function() { + return xO("\uDF06\uD834") !== '"\\udf06\\ud834"' || xO("\uDEAD") !== '"\\udead"'; +}), B1n = function(r, i) { + var o = _O(arguments), l = i; + if ((Id(i) || r !== void 0) && !OG(r)) + return kL(i) || (i = function(f, g) { + if (vf(l) && (g = rl(l, this, f, g)), !OG(g)) + return g; + }), o[1] = i, gL(xO, null, o); +}, S1n = function(r, i, o) { + var l = E3t(o, i - 1), f = E3t(o, i + 1); + return Bge(T3t, r) && !Bge(B3t, f) || Bge(B3t, r) && !Bge(T3t, l) ? "\\u" + E1n(C1n(r, 0), 16) : r; +}; +xO && qa({ target: "JSON", stat: !0, arity: 3, forced: S3t || L3t }, { stringify: function(r, i, o) { + var l = _O(arguments), f = gL(S3t ? B1n : xO, null, l); + return L3t && typeof f == "string" ? _1n(f, T1n, S1n) : f; +} }); +var L1n = !aC || oh(function() { + Bie.f(1); +}); +qa({ target: "Object", stat: !0, forced: L1n }, { getOwnPropertySymbols: function(r) { + var i = Bie.f; + return i ? i(y5(r)) : []; +} }); +var k9t = ql.Object.getOwnPropertySymbols, rA = k9t, I1n = TA("species"), Lie = function(r) { + return MT >= 51 || !oh(function() { + var i = []; + return (i.constructor = {})[I1n] = function() { + return { foo: 1 }; + }, i[r](Boolean).foo !== 1; + }); +}, M1n = LL.filter, F1n = Lie("filter"); +qa({ target: "Array", proto: !0, forced: !F1n }, { filter: function(r) { + return M1n(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var a0 = function(r) { + return ql[r + "Prototype"]; +}, O1n = a0("Array").filter, kMe = Array.prototype, dd = function(r) { + var i = r.filter; + return r === kMe || E1(kMe, r) && i === kMe.filter ? O1n : i; +}, x9t = DT.f, D1n = oh(function() { + x9t(1); +}); +qa({ target: "Object", stat: !0, forced: !of || D1n, sham: !of }, { getOwnPropertyDescriptor: function(r, i) { + return x9t(v5(r), i); +} }); +var bO, I3t, M3t, N1n = su(function(r) { + var i = ql.Object, o = r.exports = function(l, f) { + return i.getOwnPropertyDescriptor(l, f); + }; + i.getOwnPropertyDescriptor.sham && (o.sham = !0); +}), C9t = N1n, o0 = C9t, CL = {}, _9t = Function.prototype, P1n = of && Object.getOwnPropertyDescriptor, xMe = nl(_9t, "name"), E9t = { EXISTS: xMe, PROPER: xMe && (function() { +}).name === "something", CONFIGURABLE: xMe && (!of || of && P1n(_9t, "name").configurable) }, T9t = !oh(function() { + function r() { + } + return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype; +}), F3t = Obe("IE_PROTO"), pDe = Qi.Object, R1n = pDe.prototype, o$ = T9t ? pDe.getPrototypeOf : function(r) { + var i = y5(r); + if (nl(i, F3t)) + return i[F3t]; + var o = i.constructor; + return vf(o) && i instanceof o ? o.prototype : i instanceof pDe ? R1n : null; +}, mDe = TA("iterator"), B9t = !1; +[].keys && ("next" in (M3t = [].keys()) ? (I3t = o$(o$(M3t))) !== Object.prototype && (bO = I3t) : B9t = !0); +var Q1n = bO == null || oh(function() { + var r = {}; + return bO[mDe].call(r) !== r; +}); +bO = Q1n ? {} : wk(bO), vf(bO[mDe]) || m5(bO, mDe, function() { + return this; +}); +var S9t = { IteratorPrototype: bO, BUGGY_SAFARI_ITERATORS: B9t }, $1n = S9t.IteratorPrototype, U1n = function() { + return this; +}, L9t = function(r, i, o, l) { + var f = i + " Iterator"; + return r.prototype = wk($1n, { next: bk(+!l, o) }), wL(r, f, !1, !0), CL[f] = U1n, r; +}, H1n = Qi.String, j1n = Qi.TypeError, jre = Object.setPrototypeOf || ("__proto__" in {} ? function() { + var r, i = !1, o = {}; + try { + (r = Do(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(o, []), i = o instanceof Array; + } catch { + } + return function(l, f) { + return Oh(l), function(g) { + if (typeof g == "object" || vf(g)) + return g; + throw j1n("Can't set " + H1n(g) + " as a prototype"); + }(f), i ? r(l, f) : l.__proto__ = f, l; + }; +}() : void 0), K1n = E9t.PROPER, Sge = S9t.BUGGY_SAFARI_ITERATORS, CMe = TA("iterator"), O3t = "keys", Lge = "values", D3t = "entries", z1n = function() { + return this; +}, NPe = function(r, i, o, l, f, g, A) { + L9t(o, i, l); + var b, v, k, _ = function(R) { + if (R === f && q) + return q; + if (!Sge && R in F) + return F[R]; + switch (R) { + case O3t: + case Lge: + case D3t: + return function() { + return new o(this, R); + }; + } + return function() { + return new o(this); + }; + }, T = i + " Iterator", L = !1, F = r.prototype, U = F[CMe] || F["@@iterator"] || f && F[f], q = !Sge && U || _(f), Z = i == "Array" && F.entries || U; + if (Z && (b = o$(Z.call(new r()))) !== Object.prototype && b.next && (wL(b, T, !0, !0), CL[T] = z1n), K1n && f == Lge && U && U.name !== Lge && (L = !0, q = function() { + return rl(U, this); + }), f) + if (v = { values: _(Lge), keys: g ? q : _(O3t), entries: _(D3t) }, A) + for (k in v) + (Sge || L || !(k in F)) && m5(F, k, v[k]); + else + qa({ target: i, proto: !0, forced: Sge || L }, v); + return A && F[CMe] !== q && m5(F, CMe, q, { name: f }), CL[i] = q, v; +}; +_3.f; +var I9t = "Array Iterator", G1n = Bv.set, X1n = Bv.getterFor(I9t); +NPe(Array, "Array", function(r, i) { + G1n(this, { type: I9t, target: v5(r), index: 0, kind: i }); +}, function() { + var r = X1n(this), i = r.target, o = r.kind, l = r.index++; + return !i || l >= i.length ? (r.target = void 0, { value: void 0, done: !0 }) : o == "keys" ? { value: l, done: !1 } : o == "values" ? { value: i[l], done: !1 } : { value: [l, i[l]], done: !1 }; +}, "values"), CL.Arguments = CL.Array; +var N3t = TA("toStringTag"); +for (var _Me in { 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 }) { + var P3t = Qi[_Me], EMe = P3t && P3t.prototype; + EMe && PO(EMe) !== N3t && Uy(EMe, N3t, _Me), CL[_Me] = CL.Array; +} +var uX = function(r, i) { + var o = [][r]; + return !!o && oh(function() { + o.call(null, i || function() { + return 1; + }, 1); + }); +}, W1n = LL.forEach, R3t = uX("forEach") ? [].forEach : function(r) { + return W1n(this, r, arguments.length > 1 ? arguments[1] : void 0); +}; +qa({ target: "Array", proto: !0, forced: [].forEach != R3t }, { forEach: R3t }); +var V1n = a0("Array").forEach, TMe = Array.prototype, q1n = { DOMTokenList: !0, NodeList: !0 }, M9t = function(r) { + var i = r.forEach; + return r === TMe || E1(TMe, r) && i === TMe.forEach || nl(q1n, PO(r)) ? V1n : i; +}, no = M9t, Y1n = Do([].concat), F9t = b2("Reflect", "ownKeys") || function(r) { + var i = Ure.f(Oh(r)), o = Bie.f; + return o ? Y1n(i, o(r)) : i; +}; +qa({ target: "Object", stat: !0, sham: !of }, { getOwnPropertyDescriptors: function(r) { + for (var i, o, l = v5(r), f = DT.f, g = F9t(l), A = {}, b = 0; g.length > b; ) + (o = f(l, i = g[b++])) !== void 0 && EO(A, i, o); + return A; +} }); +var i0 = ql.Object.getOwnPropertyDescriptors, Q3t = MPe.f; +qa({ target: "Object", stat: !0, forced: Object.defineProperties !== Q3t, sham: !of }, { defineProperties: Q3t }); +var J1n = su(function(r) { + var i = ql.Object, o = r.exports = function(l, f) { + return i.defineProperties(l, f); + }; + i.defineProperties.sham && (o.sham = !0); +}), uC = J1n, $3t = _3.f; +qa({ target: "Object", stat: !0, forced: Object.defineProperty !== $3t, sham: !of }, { defineProperty: $3t }); +var O9t = su(function(r) { + var i = ql.Object, o = r.exports = function(l, f, g) { + return i.defineProperty(l, f, g); + }; + i.defineProperty.sham && (o.sham = !0); +}), C3 = O9t; +function vi(r, i) { + if (!(r instanceof i)) + throw new TypeError("Cannot call a class as a function"); +} +var Iie = O9t; +function U3t(r, i) { + for (var o = 0; o < i.length; o++) { + var l = i[o]; + l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Iie(r, l.key, l); + } +} +function yi(r, i, o) { + return i && U3t(r.prototype, i), o && U3t(r, o), Iie(r, "prototype", { writable: !1 }), r; +} +function Xs(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; +} +qa({ target: "Object", stat: !0, sham: !of }, { create: wk }); +var Z1n = ql.Object, D9t = function(r, i) { + return Z1n.create(r, i); +}, vre = D9t; +qa({ target: "Object", stat: !0 }, { setPrototypeOf: jre }); +var Mme = ql.Object.setPrototypeOf; +function Kre(r, i) { + return Kre = Mme || function(o, l) { + return o.__proto__ = l, o; + }, Kre(r, i); +} +function ja(r, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = vre(i && i.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Iie(r, "prototype", { writable: !1 }), i && Kre(r, i); +} +var N9t = TA("isConcatSpreadable"), H3t = 9007199254740991, j3t = "Maximum allowed index exceeded", K3t = Qi.TypeError, edn = MT >= 51 || !oh(function() { + var r = []; + return r[N9t] = !1, r.concat()[0] !== r; +}), tdn = Lie("concat"), ndn = function(r) { + if (!Id(r)) + return !1; + var i = r[N9t]; + return i !== void 0 ? !!i : kL(r); +}; +qa({ target: "Array", proto: !0, arity: 1, forced: !edn || !tdn }, { concat: function(r) { + var i, o, l, f, g, A = y5(this), b = Dbe(A, 0), v = 0; + for (i = -1, l = arguments.length; i < l; i++) + if (ndn(g = i === -1 ? A : arguments[i])) { + if (v + (f = Ck(g)) > H3t) + throw K3t(j3t); + for (o = 0; o < f; o++, v++) + o in g && EO(b, v, g[o]); + } else { + if (v >= H3t) + throw K3t(j3t); + EO(b, v++, g); + } + return b.length = v, b; +} }), kp("asyncIterator"), kp("hasInstance"), kp("isConcatSpreadable"), kp("iterator"), kp("match"), kp("matchAll"), kp("replace"), kp("search"), kp("species"), kp("split"), kp("toPrimitive"), g9t(), kp("toStringTag"), wL(b2("Symbol"), "Symbol"), kp("unscopables"), wL(Qi.JSON, "JSON", !0); +var P9t = ql.Symbol, rdn = P9t; +kp("asyncDispose"), kp("dispose"), kp("matcher"), kp("metadata"), kp("observable"), kp("patternMatch"), kp("replaceAll"); +var oC = rdn, idn = Do("".charAt), z3t = Do("".charCodeAt), adn = Do("".slice), G3t = function(r) { + return function(i, o) { + var l, f, g = ah(DO(i)), A = cX(o), b = g.length; + return A < 0 || A >= b ? r ? "" : void 0 : (l = z3t(g, A)) < 55296 || l > 56319 || A + 1 === b || (f = z3t(g, A + 1)) < 56320 || f > 57343 ? r ? idn(g, A) : l : r ? adn(g, A, A + 2) : f - 56320 + (l - 55296 << 10) + 65536; + }; +}, R9t = { codeAt: G3t(!1), charAt: G3t(!0) }, odn = R9t.charAt, Q9t = "String Iterator", sdn = Bv.set, cdn = Bv.getterFor(Q9t); +NPe(String, "String", function(r) { + sdn(this, { type: Q9t, string: ah(r), index: 0 }); +}, function() { + var r, i = cdn(this), o = i.string, l = i.index; + return l >= o.length ? { value: void 0, done: !0 } : (r = odn(o, l), i.index += r.length, { value: r, done: !1 }); +}); +var $9t = DPe.f("iterator"), U9t = $9t; +function Yl(r) { + return Yl = typeof oC == "function" && typeof U9t == "symbol" ? function(i) { + return typeof i; + } : function(i) { + return i && typeof oC == "function" && i.constructor === oC && i !== oC.prototype ? "symbol" : typeof i; + }, Yl(r); +} +function Ea(r, i) { + if (i && (Yl(i) === "object" || typeof i == "function")) + return i; + if (i !== void 0) + throw new TypeError("Derived constructors may only return object or undefined"); + return Xs(r); +} +var ldn = oh(function() { + o$(1); +}); +qa({ target: "Object", stat: !0, forced: ldn, sham: !T9t }, { getPrototypeOf: function(r) { + return o$(y5(r)); +} }); +var H9t = ql.Object.getPrototypeOf, yre = H9t; +function Rn(r) { + return Rn = Mme ? yre : function(i) { + return i.__proto__ || yre(i); + }, Rn(r); +} +function Ui(r, i, o) { + return i in r ? Iie(r, i, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[i] = o, r; +} +var udn = a0("Array").concat, BMe = Array.prototype, At = function(r) { + var i = r.concat; + return r === BMe || E1(BMe, r) && i === BMe.concat ? udn : i; +}; +qa({ target: "Function", proto: !0, forced: Function.bind !== uDe }, { bind: uDe }); +var hdn = a0("Function").bind, SMe = Function.prototype, j9t = function(r) { + var i = r.bind; + return r === SMe || E1(SMe, r) && i === SMe.bind ? hdn : i; +}, Bo = j9t, fdn = Qi.TypeError, tL = function(r, i) { + if (r < i) + throw fdn("Not enough arguments"); + return r; +}, ddn = /MSIE .\./.test(ST), Adn = Qi.Function, X3t = function(r) { + return ddn ? function(i, o) { + var l = tL(arguments.length, 1) > 2, f = vf(i) ? i : Adn(i), g = l ? _O(arguments, 2) : void 0; + return r(l ? function() { + gL(f, this, g); + } : f, o); + } : r; +}, K9t = { setTimeout: X3t(Qi.setTimeout), setInterval: X3t(Qi.setInterval) }, W3t = K9t.setInterval; +qa({ global: !0, bind: !0, forced: Qi.setInterval !== W3t }, { setInterval: W3t }); +var V3t = K9t.setTimeout; +qa({ global: !0, bind: !0, forced: Qi.setTimeout !== V3t }, { setTimeout: V3t }); +var lm = ql.setTimeout, gdn = function() { + this.__data__ = [], this.size = 0; +}, Pbe = function(r, i) { + return r === i || r != r && i != i; +}, Rbe = function(r, i) { + for (var o = r.length; o--; ) + if (Pbe(r[o][0], i)) + return o; + return -1; +}, pdn = Array.prototype.splice, mdn = function(r) { + var i = this.__data__, o = Rbe(i, r); + return !(o < 0) && (o == i.length - 1 ? i.pop() : pdn.call(i, o, 1), --this.size, !0); +}, bdn = function(r) { + var i = this.__data__, o = Rbe(i, r); + return o < 0 ? void 0 : i[o][1]; +}, vdn = function(r) { + return Rbe(this.__data__, r) > -1; +}, ydn = function(r, i) { + var o = this.__data__, l = Rbe(o, r); + return l < 0 ? (++this.size, o.push([r, i])) : o[l][1] = i, this; +}; +function Jz(r) { + var i = -1, o = r == null ? 0 : r.length; + for (this.clear(); ++i < o; ) { + var l = r[i]; + this.set(l[0], l[1]); + } +} +Jz.prototype.clear = gdn, Jz.prototype.delete = mdn, Jz.prototype.get = bdn, Jz.prototype.has = vdn, Jz.prototype.set = ydn; +var Qbe = Jz, wdn = function() { + this.__data__ = new Qbe(), this.size = 0; +}, kdn = function(r) { + var i = this.__data__, o = i.delete(r); + return this.size = i.size, o; +}, xdn = function(r) { + return this.__data__.get(r); +}, Cdn = function(r) { + return this.__data__.has(r); +}, z9t = typeof jy == "object" && jy && jy.Object === Object && jy, _dn = typeof self == "object" && self && self.Object === Object && self, X9 = z9t || _dn || Function("return this")(), TO = X9.Symbol, G9t = Object.prototype, Edn = G9t.hasOwnProperty, Tdn = G9t.toString, kne = TO ? TO.toStringTag : void 0, Bdn = function(r) { + var i = Edn.call(r, kne), o = r[kne]; + try { + r[kne] = void 0; + var l = !0; + } catch { + } + var f = Tdn.call(r); + return l && (i ? r[kne] = o : delete r[kne]), f; +}, Sdn = Object.prototype.toString, Ldn = function(r) { + return Sdn.call(r); +}, q3t = TO ? TO.toStringTag : void 0, y$ = function(r) { + return r == null ? r === void 0 ? "[object Undefined]" : "[object Null]" : q3t && q3t in Object(r) ? Bdn(r) : Ldn(r); +}, z9 = function(r) { + var i = typeof r; + return r != null && (i == "object" || i == "function"); +}, PPe = function(r) { + if (!z9(r)) + return !1; + var i = y$(r); + return i == "[object Function]" || i == "[object GeneratorFunction]" || i == "[object AsyncFunction]" || i == "[object Proxy]"; +}, LMe = X9["__core-js_shared__"], Y3t = function() { + var r = /[^.]+$/.exec(LMe && LMe.keys && LMe.keys.IE_PROTO || ""); + return r ? "Symbol(src)_1." + r : ""; +}(), Idn = function(r) { + return !!Y3t && Y3t in r; +}, Mdn = Function.prototype.toString, w$ = function(r) { + if (r != null) { + try { + return Mdn.call(r); + } catch { + } + try { + return r + ""; + } catch { + } + } + return ""; +}, Fdn = /^\[object .+?Constructor\]$/, Odn = Function.prototype, Ddn = Object.prototype, Ndn = Odn.toString, Pdn = Ddn.hasOwnProperty, Rdn = RegExp("^" + Ndn.call(Pdn).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qdn = function(r) { + return !(!z9(r) || Idn(r)) && (PPe(r) ? Rdn : Fdn).test(w$(r)); +}, $dn = function(r, i) { + return r == null ? void 0 : r[i]; +}, k$ = function(r, i) { + var o = $dn(r, i); + return Qdn(o) ? o : void 0; +}, zre = k$(X9, "Map"), Gre = k$(Object, "create"), Udn = function() { + this.__data__ = Gre ? Gre(null) : {}, this.size = 0; +}, Hdn = function(r) { + var i = this.has(r) && delete this.__data__[r]; + return this.size -= i ? 1 : 0, i; +}, jdn = Object.prototype.hasOwnProperty, Kdn = function(r) { + var i = this.__data__; + if (Gre) { + var o = i[r]; + return o === "__lodash_hash_undefined__" ? void 0 : o; + } + return jdn.call(i, r) ? i[r] : void 0; +}, zdn = Object.prototype.hasOwnProperty, Gdn = function(r) { + var i = this.__data__; + return Gre ? i[r] !== void 0 : zdn.call(i, r); +}, Xdn = function(r, i) { + var o = this.__data__; + return this.size += this.has(r) ? 0 : 1, o[r] = Gre && i === void 0 ? "__lodash_hash_undefined__" : i, this; +}; +function Zz(r) { + var i = -1, o = r == null ? 0 : r.length; + for (this.clear(); ++i < o; ) { + var l = r[i]; + this.set(l[0], l[1]); + } +} +Zz.prototype.clear = Udn, Zz.prototype.delete = Hdn, Zz.prototype.get = Kdn, Zz.prototype.has = Gdn, Zz.prototype.set = Xdn; +var J3t = Zz, Wdn = function() { + this.size = 0, this.__data__ = { hash: new J3t(), map: new (zre || Qbe)(), string: new J3t() }; +}, Vdn = function(r) { + var i = typeof r; + return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? r !== "__proto__" : r === null; +}, $be = function(r, i) { + var o = r.__data__; + return Vdn(i) ? o[typeof i == "string" ? "string" : "hash"] : o.map; +}, qdn = function(r) { + var i = $be(this, r).delete(r); + return this.size -= i ? 1 : 0, i; +}, Ydn = function(r) { + return $be(this, r).get(r); +}, Jdn = function(r) { + return $be(this, r).has(r); +}, Zdn = function(r, i) { + var o = $be(this, r), l = o.size; + return o.set(r, i), this.size += o.size == l ? 0 : 1, this; +}; +function eG(r) { + var i = -1, o = r == null ? 0 : r.length; + for (this.clear(); ++i < o; ) { + var l = r[i]; + this.set(l[0], l[1]); + } +} +eG.prototype.clear = Wdn, eG.prototype.delete = qdn, eG.prototype.get = Ydn, eG.prototype.has = Jdn, eG.prototype.set = Zdn; +var eAn = eG, tAn = function(r, i) { + var o = this.__data__; + if (o instanceof Qbe) { + var l = o.__data__; + if (!zre || l.length < 199) + return l.push([r, i]), this.size = ++o.size, this; + o = this.__data__ = new eAn(l); + } + return o.set(r, i), this.size = o.size, this; +}; +function tG(r) { + var i = this.__data__ = new Qbe(r); + this.size = i.size; +} +tG.prototype.clear = wdn, tG.prototype.delete = kdn, tG.prototype.get = xdn, tG.prototype.has = Cdn, tG.prototype.set = tAn; +var X9t = tG, nAn = function() { + try { + var r = k$(Object, "defineProperty"); + return r({}, "", {}), r; + } catch { + } +}(), Fme = nAn, RPe = function(r, i, o) { + i == "__proto__" && Fme ? Fme(r, i, { configurable: !0, enumerable: !0, value: o, writable: !0 }) : r[i] = o; +}, bDe = function(r, i, o) { + (o !== void 0 && !Pbe(r[i], o) || o === void 0 && !(i in r)) && RPe(r, i, o); +}, rAn = function(r) { + return function(i, o, l) { + for (var f = -1, g = Object(i), A = l(i), b = A.length; b--; ) { + var v = A[r ? b : ++f]; + if (o(g[v], v, g) === !1) + break; + } + return i; + }; +}, iAn = rAn(), W9t = su(function(r, i) { + var o = i && !i.nodeType && i, l = o && r && !r.nodeType && r, f = l && l.exports === o ? X9.Buffer : void 0, g = f ? f.allocUnsafe : void 0; + r.exports = function(A, b) { + if (b) + return A.slice(); + var v = A.length, k = g ? g(v) : new A.constructor(v); + return A.copy(k), k; + }; +}), Z3t = X9.Uint8Array, QPe = function(r) { + var i = new r.constructor(r.byteLength); + return new Z3t(i).set(new Z3t(r)), i; +}, V9t = function(r, i) { + var o = i ? QPe(r.buffer) : r.buffer; + return new r.constructor(o, r.byteOffset, r.length); +}, q9t = function(r, i) { + var o = -1, l = r.length; + for (i || (i = Array(l)); ++o < l; ) + i[o] = r[o]; + return i; +}, e4t = Object.create, aAn = /* @__PURE__ */ function() { + function r() { + } + return function(i) { + if (!z9(i)) + return {}; + if (e4t) + return e4t(i); + r.prototype = i; + var o = new r(); + return r.prototype = void 0, o; + }; +}(), oAn = aAn, Y9t = function(r, i) { + return function(o) { + return r(i(o)); + }; +}, $Pe = Y9t(Object.getPrototypeOf, Object), sAn = Object.prototype, UPe = function(r) { + var i = r && r.constructor; + return r === (typeof i == "function" && i.prototype || sAn); +}, J9t = function(r) { + return typeof r.constructor != "function" || UPe(r) ? {} : oAn($Pe(r)); +}, RO = function(r) { + return r != null && typeof r == "object"; +}, t4t = function(r) { + return RO(r) && y$(r) == "[object Arguments]"; +}, Z9t = Object.prototype, cAn = Z9t.hasOwnProperty, lAn = Z9t.propertyIsEnumerable, vDe = t4t(/* @__PURE__ */ function() { + return arguments; +}()) ? t4t : function(r) { + return RO(r) && cAn.call(r, "callee") && !lAn.call(r, "callee"); +}, DG = Array.isArray, e_t = function(r) { + return typeof r == "number" && r > -1 && r % 1 == 0 && r <= 9007199254740991; +}, Ube = function(r) { + return r != null && e_t(r.length) && !PPe(r); +}, uAn = function(r) { + return RO(r) && Ube(r); +}, hAn = function() { + return !1; +}, HPe = su(function(r, i) { + var o = i && !i.nodeType && i, l = o && r && !r.nodeType && r, f = l && l.exports === o ? X9.Buffer : void 0, g = (f ? f.isBuffer : void 0) || hAn; + r.exports = g; +}), fAn = Function.prototype, dAn = Object.prototype, t_t = fAn.toString, AAn = dAn.hasOwnProperty, gAn = t_t.call(Object), pAn = function(r) { + if (!RO(r) || y$(r) != "[object Object]") + return !1; + var i = $Pe(r); + if (i === null) + return !0; + var o = AAn.call(i, "constructor") && i.constructor; + return typeof o == "function" && o instanceof o && t_t.call(o) == gAn; +}, CA = {}; +CA["[object Float32Array]"] = CA["[object Float64Array]"] = CA["[object Int8Array]"] = CA["[object Int16Array]"] = CA["[object Int32Array]"] = CA["[object Uint8Array]"] = CA["[object Uint8ClampedArray]"] = CA["[object Uint16Array]"] = CA["[object Uint32Array]"] = !0, CA["[object Arguments]"] = CA["[object Array]"] = CA["[object ArrayBuffer]"] = CA["[object Boolean]"] = CA["[object DataView]"] = CA["[object Date]"] = CA["[object Error]"] = CA["[object Function]"] = CA["[object Map]"] = CA["[object Number]"] = CA["[object Object]"] = CA["[object RegExp]"] = CA["[object Set]"] = CA["[object String]"] = CA["[object WeakMap]"] = !1; +var mAn = function(r) { + return RO(r) && e_t(r.length) && !!CA[y$(r)]; +}, jPe = function(r) { + return function(i) { + return r(i); + }; +}, NG = su(function(r, i) { + var o = i && !i.nodeType && i, l = o && r && !r.nodeType && r, f = l && l.exports === o && z9t.process, g = function() { + try { + var A = l && l.require && l.require("util").types; + return A || f && f.binding && f.binding("util"); + } catch { + } + }(); + r.exports = g; +}), n4t = NG && NG.isTypedArray, n_t = n4t ? jPe(n4t) : mAn, yDe = function(r, i) { + if ((i !== "constructor" || typeof r[i] != "function") && i != "__proto__") + return r[i]; +}, bAn = Object.prototype.hasOwnProperty, r_t = function(r, i, o) { + var l = r[i]; + bAn.call(r, i) && Pbe(l, o) && (o !== void 0 || i in r) || RPe(r, i, o); +}, Mie = function(r, i, o, l) { + var f = !o; + o || (o = {}); + for (var g = -1, A = i.length; ++g < A; ) { + var b = i[g], v = l ? l(o[b], r[b], b, o, r) : void 0; + v === void 0 && (v = r[b]), f ? RPe(o, b, v) : r_t(o, b, v); + } + return o; +}, vAn = function(r, i) { + for (var o = -1, l = Array(r); ++o < r; ) + l[o] = i(o); + return l; +}, yAn = /^(?:0|[1-9]\d*)$/, i_t = function(r, i) { + var o = typeof r; + return !!(i = i ?? 9007199254740991) && (o == "number" || o != "symbol" && yAn.test(r)) && r > -1 && r % 1 == 0 && r < i; +}, wAn = Object.prototype.hasOwnProperty, a_t = function(r, i) { + var o = DG(r), l = !o && vDe(r), f = !o && !l && HPe(r), g = !o && !l && !f && n_t(r), A = o || l || f || g, b = A ? vAn(r.length, String) : [], v = b.length; + for (var k in r) + !i && !wAn.call(r, k) || A && (k == "length" || f && (k == "offset" || k == "parent") || g && (k == "buffer" || k == "byteLength" || k == "byteOffset") || i_t(k, v)) || b.push(k); + return b; +}, kAn = function(r) { + var i = []; + if (r != null) + for (var o in Object(r)) + i.push(o); + return i; +}, xAn = Object.prototype.hasOwnProperty, CAn = function(r) { + if (!z9(r)) + return kAn(r); + var i = UPe(r), o = []; + for (var l in r) + (l != "constructor" || !i && xAn.call(r, l)) && o.push(l); + return o; +}, Fie = function(r) { + return Ube(r) ? a_t(r, !0) : CAn(r); +}, _An = function(r) { + return Mie(r, Fie(r)); +}, EAn = function(r, i, o, l, f, g, A) { + var b = yDe(r, o), v = yDe(i, o), k = A.get(v); + if (k) + bDe(r, o, k); + else { + var _ = g ? g(b, v, o + "", r, i, A) : void 0, T = _ === void 0; + if (T) { + var L = DG(v), F = !L && HPe(v), U = !L && !F && n_t(v); + _ = v, L || F || U ? DG(b) ? _ = b : uAn(b) ? _ = q9t(b) : F ? (T = !1, _ = W9t(v, !0)) : U ? (T = !1, _ = V9t(v, !0)) : _ = [] : pAn(v) || vDe(v) ? (_ = b, vDe(b) ? _ = _An(b) : z9(b) && !PPe(b) || (_ = J9t(v))) : T = !1; + } + T && (A.set(v, _), f(_, v, l, g, A), A.delete(v)), bDe(r, o, _); + } +}, TAn = function r(i, o, l, f, g) { + i !== o && iAn(o, function(A, b) { + if (g || (g = new X9t()), z9(A)) + EAn(i, o, b, l, r, f, g); + else { + var v = f ? f(yDe(i, b), A, b + "", i, o, g) : void 0; + v === void 0 && (v = A), bDe(i, b, v); + } + }, Fie); +}, o_t = function(r) { + return r; +}, BAn = function(r, i, o) { + switch (o.length) { + case 0: + return r.call(i); + case 1: + return r.call(i, o[0]); + case 2: + return r.call(i, o[0], o[1]); + case 3: + return r.call(i, o[0], o[1], o[2]); + } + return r.apply(i, o); +}, r4t = Math.max, SAn = function(r, i, o) { + return i = r4t(i === void 0 ? r.length - 1 : i, 0), function() { + for (var l = arguments, f = -1, g = r4t(l.length - i, 0), A = Array(g); ++f < g; ) + A[f] = l[i + f]; + f = -1; + for (var b = Array(i + 1); ++f < i; ) + b[f] = l[f]; + return b[i] = o(A), BAn(r, this, b); + }; +}, LAn = function(r) { + return function() { + return r; + }; +}, IAn = Fme ? function(r, i) { + return Fme(r, "toString", { configurable: !0, enumerable: !1, value: LAn(i), writable: !0 }); +} : o_t, MAn = IAn, FAn = Date.now, OAn = function(r) { + var i = 0, o = 0; + return function() { + var l = FAn(), f = 16 - (l - o); + if (o = l, f > 0) { + if (++i >= 800) + return arguments[0]; + } else + i = 0; + return r.apply(void 0, arguments); + }; +}, DAn = OAn(MAn), NAn = function(r, i) { + return DAn(SAn(r, i, o_t), r + ""); +}, PAn = function(r, i, o) { + if (!z9(o)) + return !1; + var l = typeof i; + return !!(l == "number" ? Ube(o) && i_t(i, o.length) : l == "string" && i in o) && Pbe(o[i], r); +}, RAn = function(r) { + return NAn(function(i, o) { + var l = -1, f = o.length, g = f > 1 ? o[f - 1] : void 0, A = f > 2 ? o[2] : void 0; + for (g = r.length > 3 && typeof g == "function" ? (f--, g) : void 0, A && PAn(o[0], o[1], A) && (g = f < 3 ? void 0 : g, f = 1), i = Object(i); ++l < f; ) { + var b = o[l]; + b && r(i, b, l, g); + } + return i; + }); +}, QAn = RAn(function(r, i, o, l) { + TAn(r, i, o, l); +}), KPe = QAn, i4t = k9t, $An = IPe.indexOf, wDe = Do([].indexOf), a4t = !!wDe && 1 / wDe([1], 1, -0) < 0, UAn = uX("indexOf"); +qa({ target: "Array", proto: !0, forced: a4t || !UAn }, { indexOf: function(r) { + var i = arguments.length > 1 ? arguments[1] : void 0; + return a4t ? wDe(this, r, i) || 0 : $An(this, r, i); +} }); +var HAn = a0("Array").indexOf, IMe = Array.prototype, s_t = function(r) { + var i = r.indexOf; + return r === IMe || E1(IMe, r) && i === IMe.indexOf ? HAn : i; +}, kDe = s_t, jAn = A9t; +function KAn(r, i) { + if (r == null) + return {}; + var o, l, f = function(A, b) { + if (A == null) + return {}; + var v, k, _ = {}, T = jAn(A); + for (k = 0; k < T.length; k++) + v = T[k], kDe(b).call(b, v) >= 0 || (_[v] = A[v]); + return _; + }(r, i); + if (i4t) { + var g = i4t(r); + for (l = 0; l < g.length; l++) + o = g[l], kDe(i).call(i, o) >= 0 || Object.prototype.propertyIsEnumerable.call(r, o) && (f[o] = r[o]); + } + return f; +} +var $z = Object.assign, o4t = Object.defineProperty, zAn = Do([].concat), Xre = !$z || oh(function() { + if (of && $z({ b: 1 }, $z(o4t({}, "a", { enumerable: !0, get: function() { + o4t(this, "b", { value: 3, enumerable: !1 }); + } }), { b: 2 })).b !== 1) + return !0; + var r = {}, i = {}, o = Symbol(), l = "abcdefghijklmnopqrst"; + return r[o] = 7, l.split("").forEach(function(f) { + i[f] = f; + }), $z({}, r)[o] != 7 || pL($z({}, i)).join("") != l; +}) ? function(r, i) { + for (var o = y5(r), l = arguments.length, f = 1, g = Bie.f, A = _ie.f; l > f; ) + for (var b, v = Mbe(arguments[f++]), k = g ? zAn(pL(v), g(v)) : pL(v), _ = k.length, T = 0; _ > T; ) + b = k[T++], of && !rl(A, v, b) || (o[b] = v[b]); + return o; +} : $z; +qa({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== Xre }, { assign: Xre }); +var c_t = ql.Object.assign, lL = c_t; +ql.JSON || (ql.JSON = { stringify: JSON.stringify }); +var zPe = function(r, i, o) { + return gL(ql.JSON.stringify, null, arguments); +}, GAn = LL.find, s4t = "find", c4t = !0; +s4t in [] && Array(1)[s4t](function() { + c4t = !1; +}), qa({ target: "Array", proto: !0, forced: c4t }, { find: function(r) { + return GAn(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var xne, XAn = a0("Array").find, MMe = Array.prototype, Wre = function(r) { + var i = r.find; + return r === MMe || E1(MMe, r) && i === MMe.find ? XAn : i; +}, PG = ` +\v\f\r                 \u2028\u2029\uFEFF`, l4t = Do("".replace), Ome = "[" + PG + "]", WAn = RegExp("^" + Ome + Ome + "*"), VAn = RegExp(Ome + Ome + "*$"), FMe = function(r) { + return function(i) { + var o = ah(DO(i)); + return 1 & r && (o = l4t(o, WAn, "")), 2 & r && (o = l4t(o, VAn, "")), o; + }; +}, GPe = { start: FMe(1), end: FMe(2), trim: FMe(3) }, qAn = E9t.PROPER, YAn = GPe.trim; +qa({ target: "String", proto: !0, forced: (xne = "trim", oh(function() { + return !!PG[xne]() || "​…᠎"[xne]() !== "​…᠎" || qAn && PG[xne].name !== xne; +})) }, { trim: function() { + return YAn(this); +} }); +var JAn = a0("String").trim, OMe = String.prototype, Go = function(r) { + var i = r.trim; + return typeof r == "string" || r === OMe || E1(OMe, r) && i === OMe.trim ? JAn : i; +}, xDe = function(r, i, o) { + var l, f; + Oh(r); + try { + if (!(l = Cme(r, "return"))) { + if (i === "throw") + throw o; + return o; + } + l = rl(l, r); + } catch (g) { + f = !0, l = g; + } + if (i === "throw") + throw o; + if (f) + throw l; + return Oh(l), o; +}, ZAn = function(r, i, o, l) { + try { + return l ? i(Oh(o)[0], o[1]) : i(o); + } catch (f) { + xDe(r, "throw", f); + } +}, e0n = TA("iterator"), t0n = Array.prototype, l_t = function(r) { + return r !== void 0 && (CL.Array === r || t0n[e0n] === r); +}, n0n = TA("iterator"), Oie = function(r) { + if (r != null) + return Cme(r, n0n) || Cme(r, "@@iterator") || CL[PO(r)]; +}, r0n = Qi.TypeError, s$ = function(r, i) { + var o = arguments.length < 2 ? Oie(r) : i; + if (Fh(o)) + return Oh(rl(o, r)); + throw r0n(Eie(r) + " is not iterable"); +}, u4t = Qi.Array, NQ = function(r) { + var i = y5(r), o = Fbe(this), l = arguments.length, f = l > 1 ? arguments[1] : void 0, g = f !== void 0; + g && (f = hm(f, l > 2 ? arguments[2] : void 0)); + var A, b, v, k, _, T, L = Oie(i), F = 0; + if (!L || this == u4t && l_t(L)) + for (A = Ck(i), b = o ? new this(A) : u4t(A); A > F; F++) + T = g ? f(i[F], F) : i[F], EO(b, F, T); + else + for (_ = (k = s$(i, L)).next, b = o ? new this() : []; !(v = rl(_, k)).done; F++) + T = g ? ZAn(k, f, [v.value, F], !0) : v.value, EO(b, F, T); + return b.length = F, b; +}, u_t = TA("iterator"), h_t = !1; +try { + var i0n = 0, h4t = { next: function() { + return { done: !!i0n++ }; + }, return: function() { + h_t = !0; + } }; + h4t[u_t] = function() { + return this; + }, Array.from(h4t, function() { + throw 2; + }); +} catch { +} +var f_t = function(r, i) { + if (!i && !h_t) + return !1; + var o = !1; + try { + var l = {}; + l[u_t] = function() { + return { next: function() { + return { done: o = !0 }; + } }; + }, r(l); + } catch { + } + return o; +}, a0n = !f_t(function(r) { + Array.from(r); +}); +qa({ target: "Array", stat: !0, forced: a0n }, { from: NQ }); +var d_t = ql.Array.from, Su = d_t, o0n = TA("match"), s0n = Qi.TypeError, XPe = function(r) { + if (function(i) { + var o; + return Id(i) && ((o = i[o0n]) !== void 0 ? !!o : BT(i) == "RegExp"); + }(r)) + throw s0n("The method doesn't accept regular expressions"); + return r; +}, c0n = TA("match"), WPe = function(r) { + var i = /./; + try { + "/./"[r](i); + } catch { + try { + return i[c0n] = !1, "/./"[r](i); + } catch { + } + } + return !1; +}; +DT.f; +var f4t = Do("".startsWith), l0n = Do("".slice), u0n = Math.min, h0n = WPe("startsWith"); +qa({ target: "String", proto: !0, forced: !h0n }, { startsWith: function(r) { + var i = ah(DO(this)); + XPe(r); + var o = LPe(u0n(arguments.length > 1 ? arguments[1] : void 0, i.length)), l = ah(r); + return f4t ? f4t(i, l, o) : l0n(i, o, o + l.length) === l; +} }); +var f0n = a0("String").startsWith, DMe = String.prototype, RG = function(r) { + var i = r.startsWith; + return typeof r == "string" || r === DMe || E1(DMe, r) && i === DMe.startsWith ? f0n : i; +}, m2 = su(function(r, i) { + r.exports = function() { + var o = navigator.userAgent, l = navigator.platform, f = /gecko\/\d/i.test(o), g = /MSIE \d/.test(o), A = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o), b = /Edge\/(\d+)/.exec(o), v = g || A || b, k = v && (g ? document.documentMode || 6 : +(b || A)[1]), _ = !b && /WebKit\//.test(o), T = _ && /Qt\/\d+\.\d+/.test(o), L = !b && /Chrome\//.test(o), F = /Opera\//.test(o), U = /Apple Computer/.test(navigator.vendor), q = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o), Z = /PhantomJS/.test(o), R = !b && /AppleWebKit/.test(o) && /Mobile\/\w+/.test(o), J = /Android/.test(o), he = R || J || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o), Y = R || /Mac/.test(l), ue = /\bCrOS\b/.test(o), le = /win/i.test(l), be = F && o.match(/Version\/(\d*\.\d*)/); + be && (be = Number(be[1])), be && be >= 15 && (F = !1, _ = !0); + var ke = Y && (T || F && (be == null || be < 12.11)), de = f || v && k >= 9; + function Te(x) { + return new RegExp("(^|\\s)" + x + "(?:$|\\s)\\s*"); + } + var xe, ie = function(x, S) { + var G = x.className, j = Te(S).exec(G); + if (j) { + var V = G.slice(j.index + j[0].length); + x.className = G.slice(0, j.index) + (V ? j[1] + V : ""); + } + }; + function Be(x) { + for (var S = x.childNodes.length; S > 0; --S) + x.removeChild(x.firstChild); + return x; + } + function te(x, S) { + return Be(x).appendChild(S); + } + function Me(x, S, G, j) { + var V = document.createElement(x); + if (G && (V.className = G), j && (V.style.cssText = j), typeof S == "string") + V.appendChild(document.createTextNode(S)); + else if (S) + for (var we = 0; we < S.length; ++we) + V.appendChild(S[we]); + return V; + } + function ve(x, S, G, j) { + var V = Me(x, S, G, j); + return V.setAttribute("role", "presentation"), V; + } + function ge(x, S) { + if (S.nodeType == 3 && (S = S.parentNode), x.contains) + return x.contains(S); + do + if (S.nodeType == 11 && (S = S.host), S == x) + return !0; + while (S = S.parentNode); + } + function Je() { + var x; + try { + x = document.activeElement; + } catch { + x = document.body || null; + } + for (; x && x.shadowRoot && x.shadowRoot.activeElement; ) + x = x.shadowRoot.activeElement; + return x; + } + function ot(x, S) { + var G = x.className; + Te(S).test(G) || (x.className += (G ? " " : "") + S); + } + function bt(x, S) { + for (var G = x.split(" "), j = 0; j < G.length; j++) + G[j] && !Te(G[j]).test(S) && (S += " " + G[j]); + return S; + } + xe = document.createRange ? function(x, S, G, j) { + var V = document.createRange(); + return V.setEnd(j || x, G), V.setStart(x, S), V; + } : function(x, S, G) { + var j = document.body.createTextRange(); + try { + j.moveToElementText(x.parentNode); + } catch { + return j; + } + return j.collapse(!0), j.moveEnd("character", G), j.moveStart("character", S), j; + }; + var gt = function(x) { + x.select(); + }; + function je(x) { + var S = Array.prototype.slice.call(arguments, 1); + return function() { + return x.apply(null, S); + }; + } + function Qe(x, S, G) { + for (var j in S || (S = {}), x) + !x.hasOwnProperty(j) || G === !1 && S.hasOwnProperty(j) || (S[j] = x[j]); + return S; + } + function kt(x, S, G, j, V) { + S == null && (S = x.search(/[^\s\u00a0]/)) == -1 && (S = x.length); + for (var we = j || 0, $e = V || 0; ; ) { + var ze = x.indexOf(" ", we); + if (ze < 0 || ze >= S) + return $e + (S - we); + $e += ze - we, $e += G - $e % G, we = ze + 1; + } + } + R ? gt = function(x) { + x.selectionStart = 0, x.selectionEnd = x.value.length; + } : v && (gt = function(x) { + try { + x.select(); + } catch { + } + }); + var Wt = function() { + this.id = null, this.f = null, this.time = 0, this.handler = je(this.onTimeout, this); + }; + function jt(x, S) { + for (var G = 0; G < x.length; ++G) + if (x[G] == S) + return G; + return -1; + } + Wt.prototype.onTimeout = function(x) { + x.id = 0, x.time <= +/* @__PURE__ */ new Date() ? x.f() : setTimeout(x.handler, x.time - +/* @__PURE__ */ new Date()); + }, Wt.prototype.set = function(x, S) { + this.f = S; + var G = +/* @__PURE__ */ new Date() + x; + (!this.id || G < this.time) && (clearTimeout(this.id), this.id = setTimeout(this.handler, x), this.time = G); + }; + var Zn = 50, Ft = { toString: function() { + return "CodeMirror.Pass"; + } }, wn = { scroll: !1 }, un = { origin: "*mouse" }, ln = { origin: "+move" }; + function an(x, S, G) { + for (var j = 0, V = 0; ; ) { + var we = x.indexOf(" ", j); + we == -1 && (we = x.length); + var $e = we - j; + if (we == x.length || V + $e >= S) + return j + Math.min($e, S - V); + if (V += we - j, j = we + 1, (V += G - V % G) >= S) + return j; + } + } + var Ot = [""]; + function $n(x) { + for (; Ot.length <= x; ) + Ot.push(pt(Ot) + " "); + return Ot[x]; + } + function pt(x) { + return x[x.length - 1]; + } + function Ci(x, S) { + for (var G = [], j = 0; j < x.length; j++) + G[j] = S(x[j], j); + return G; + } + function ut(x, S, G) { + for (var j = 0, V = G(S); j < x.length && G(x[j]) <= V; ) + j++; + x.splice(j, 0, S); + } + function br() { + } + function zt(x, S) { + var G; + return Object.create ? G = Object.create(x) : (br.prototype = x, G = new br()), S && Qe(S, G), G; + } + var Wr = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; + function zr(x) { + return /\w/.test(x) || x > "€" && (x.toUpperCase() != x.toLowerCase() || Wr.test(x)); + } + function Si(x, S) { + return S ? !!(S.source.indexOf("\\w") > -1 && zr(x)) || S.test(x) : zr(x); + } + function vr(x) { + for (var S in x) + if (x.hasOwnProperty(S) && x[S]) + return !1; + return !0; + } + var Qr = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/; + function or(x) { + return x.charCodeAt(0) >= 768 && Qr.test(x); + } + function Gr(x, S, G) { + for (; (G < 0 ? S > 0 : S < x.length) && or(x.charAt(S)); ) + S += G; + return S; + } + function An(x, S, G) { + for (var j = S > G ? -1 : 1; ; ) { + if (S == G) + return S; + var V = (S + G) / 2, we = j < 0 ? Math.ceil(V) : Math.floor(V); + if (we == S) + return x(we) ? S : G; + x(we) ? G = we : S = we + j; + } + } + function _i(x, S, G, j) { + if (!x) + return j(S, G, "ltr", 0); + for (var V = !1, we = 0; we < x.length; ++we) { + var $e = x[we]; + ($e.from < G && $e.to > S || S == G && $e.to == S) && (j(Math.max($e.from, S), Math.min($e.to, G), $e.level == 1 ? "rtl" : "ltr", we), V = !0); + } + V || j(S, G, "ltr"); + } + var Cr = null; + function la(x, S, G) { + var j; + Cr = null; + for (var V = 0; V < x.length; ++V) { + var we = x[V]; + if (we.from < S && we.to > S) + return V; + we.to == S && (we.from != we.to && G == "before" ? j = V : Cr = V), we.from == S && (we.from != we.to && G != "before" ? j = V : Cr = V); + } + return j ?? Cr; + } + var Ra = /* @__PURE__ */ function() { + var x = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN", S = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111"; + function G(at) { + return at <= 247 ? x.charAt(at) : 1424 <= at && at <= 1524 ? "R" : 1536 <= at && at <= 1785 ? S.charAt(at - 1536) : 1774 <= at && at <= 2220 ? "r" : 8192 <= at && at <= 8203 ? "w" : at == 8204 ? "b" : "L"; + } + var j = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/, V = /[stwN]/, we = /[LRr]/, $e = /[Lb1n]/, ze = /[1n]/; + function nt(at, Yt, Vt) { + this.level = at, this.from = Yt, this.to = Vt; + } + return function(at, Yt) { + var Vt = Yt == "ltr" ? "L" : "R"; + if (at.length == 0 || Yt == "ltr" && !j.test(at)) + return !1; + for (var Nn = at.length, Vn = [], mr = 0; mr < Nn; ++mr) + Vn.push(G(at.charCodeAt(mr))); + for (var si = 0, Mi = Vt; si < Nn; ++si) { + var _r = Vn[si]; + _r == "m" ? Vn[si] = Mi : Mi = _r; + } + for (var ao = 0, ea = Vt; ao < Nn; ++ao) { + var zi = Vn[ao]; + zi == "1" && ea == "r" ? Vn[ao] = "n" : we.test(zi) && (ea = zi, zi == "r" && (Vn[ao] = "R")); + } + for (var Qo = 1, $a = Vn[0]; Qo < Nn - 1; ++Qo) { + var Ll = Vn[Qo]; + Ll == "+" && $a == "1" && Vn[Qo + 1] == "1" ? Vn[Qo] = "1" : Ll != "," || $a != Vn[Qo + 1] || $a != "1" && $a != "n" || (Vn[Qo] = $a), $a = Ll; + } + for (var hu = 0; hu < Nn; ++hu) { + var I1 = Vn[hu]; + if (I1 == ",") + Vn[hu] = "N"; + else if (I1 == "%") { + var ac = void 0; + for (ac = hu + 1; ac < Nn && Vn[ac] == "%"; ++ac) + ; + for (var _f = hu && Vn[hu - 1] == "!" || ac < Nn && Vn[ac] == "1" ? "1" : "N", J1 = hu; J1 < ac; ++J1) + Vn[J1] = _f; + hu = ac - 1; + } + } + for (var qh = 0, Rd = Vt; qh < Nn; ++qh) { + var oA = Vn[qh]; + Rd == "L" && oA == "1" ? Vn[qh] = "L" : we.test(oA) && (Rd = oA); + } + for (var Wu = 0; Wu < Nn; ++Wu) + if (V.test(Vn[Wu])) { + var Yh = void 0; + for (Yh = Wu + 1; Yh < Nn && V.test(Vn[Yh]); ++Yh) + ; + for (var t1 = (Wu ? Vn[Wu - 1] : Vt) == "L", sA = t1 == ((Yh < Nn ? Vn[Yh] : Vt) == "L") ? t1 ? "L" : "R" : Vt, Pp = Wu; Pp < Yh; ++Pp) + Vn[Pp] = sA; + Wu = Yh - 1; + } + for (var g0, Uo = [], n1 = 0; n1 < Nn; ) + if ($e.test(Vn[n1])) { + var V2 = n1; + for (++n1; n1 < Nn && $e.test(Vn[n1]); ++n1) + ; + Uo.push(new nt(0, V2, n1)); + } else { + var p0 = n1, Rp = Uo.length, jg = Yt == "rtl" ? 1 : 0; + for (++n1; n1 < Nn && Vn[n1] != "L"; ++n1) + ; + for (var Dh = p0; Dh < n1; ) + if (ze.test(Vn[Dh])) { + p0 < Dh && (Uo.splice(Rp, 0, new nt(1, p0, Dh)), Rp += jg); + var Lb = Dh; + for (++Dh; Dh < n1 && ze.test(Vn[Dh]); ++Dh) + ; + Uo.splice(Rp, 0, new nt(2, Lb, Dh)), Rp += jg, p0 = Dh; + } else + ++Dh; + p0 < n1 && Uo.splice(Rp, 0, new nt(1, p0, n1)); + } + return Yt == "ltr" && (Uo[0].level == 1 && (g0 = at.match(/^\s+/)) && (Uo[0].from = g0[0].length, Uo.unshift(new nt(0, 0, g0[0].length))), pt(Uo).level == 1 && (g0 = at.match(/\s+$/)) && (pt(Uo).to -= g0[0].length, Uo.push(new nt(0, Nn - g0[0].length, Nn)))), Yt == "rtl" ? Uo.reverse() : Uo; + }; + }(); + function Jo(x, S) { + var G = x.order; + return G == null && (G = x.order = Ra(x.text, S)), G; + } + var Cc = [], ji = function(x, S, G) { + if (x.addEventListener) + x.addEventListener(S, G, !1); + else if (x.attachEvent) + x.attachEvent("on" + S, G); + else { + var j = x._handlers || (x._handlers = {}); + j[S] = (j[S] || Cc).concat(G); + } + }; + function Ya(x, S) { + return x._handlers && x._handlers[S] || Cc; + } + function Hr(x, S, G) { + if (x.removeEventListener) + x.removeEventListener(S, G, !1); + else if (x.detachEvent) + x.detachEvent("on" + S, G); + else { + var j = x._handlers, V = j && j[S]; + if (V) { + var we = jt(V, G); + we > -1 && (j[S] = V.slice(0, we).concat(V.slice(we + 1))); + } + } + } + function Yr(x, S) { + var G = Ya(x, S); + if (G.length) + for (var j = Array.prototype.slice.call(arguments, 2), V = 0; V < G.length; ++V) + G[V].apply(null, j); + } + function ni(x, S, G) { + return typeof S == "string" && (S = { type: S, preventDefault: function() { + this.defaultPrevented = !0; + } }), Yr(x, G || S.type, x, S), So(S) || S.codemirrorIgnore; + } + function Vr(x) { + var S = x._handlers && x._handlers.cursorActivity; + if (S) + for (var G = x.curOp.cursorActivityHandlers || (x.curOp.cursorActivityHandlers = []), j = 0; j < S.length; ++j) + jt(G, S[j]) == -1 && G.push(S[j]); + } + function Na(x, S) { + return Ya(x, S).length > 0; + } + function er(x) { + x.prototype.on = function(S, G) { + ji(this, S, G); + }, x.prototype.off = function(S, G) { + Hr(this, S, G); + }; + } + function as(x) { + x.preventDefault ? x.preventDefault() : x.returnValue = !1; + } + function xr(x) { + x.stopPropagation ? x.stopPropagation() : x.cancelBubble = !0; + } + function So(x) { + return x.defaultPrevented != null ? x.defaultPrevented : x.returnValue == 0; + } + function cs(x) { + as(x), xr(x); + } + function xa(x) { + return x.target || x.srcElement; + } + function ro(x) { + var S = x.which; + return S == null && (1 & x.button ? S = 1 : 2 & x.button ? S = 3 : 4 & x.button && (S = 2)), Y && x.ctrlKey && S == 1 && (S = 3), S; + } + var Lo, Xo, Zo = function() { + if (v && k < 9) + return !1; + var x = Me("div"); + return "draggable" in x || "dragDrop" in x; + }(); + function Fs(x) { + if (Lo == null) { + var S = Me("span", "​"); + te(x, Me("span", [S, document.createTextNode("x")])), x.firstChild.offsetHeight != 0 && (Lo = S.offsetWidth <= 1 && S.offsetHeight > 2 && !(v && k < 8)); + } + var G = Lo ? Me("span", "​") : Me("span", " ", null, "display: inline-block; width: 1px; margin-right: -1px"); + return G.setAttribute("cm-text", ""), G; + } + function Hs(x) { + if (Xo != null) + return Xo; + var S = te(x, document.createTextNode("AخA")), G = xe(S, 0, 1).getBoundingClientRect(), j = xe(S, 1, 2).getBoundingClientRect(); + return Be(x), !(!G || G.left == G.right) && (Xo = j.right - G.right < 3); + } + var Qa, Ff = ` + +b`.split(/\n/).length != 3 ? function(x) { + for (var S = 0, G = [], j = x.length; S <= j; ) { + var V = x.indexOf(` +`, S); + V == -1 && (V = x.length); + var we = x.slice(S, x.charAt(V - 1) == "\r" ? V - 1 : V), $e = we.indexOf("\r"); + $e != -1 ? (G.push(we.slice(0, $e)), S += $e + 1) : (G.push(we), S = V + 1); + } + return G; + } : function(x) { + return x.split(/\r\n?|\n/); + }, Oc = window.getSelection ? function(x) { + try { + return x.selectionStart != x.selectionEnd; + } catch { + return !1; + } + } : function(x) { + var S; + try { + S = x.ownerDocument.selection.createRange(); + } catch { + } + return !(!S || S.parentElement() != x) && S.compareEndPoints("StartToEnd", S) != 0; + }, Iu = "oncopy" in (Qa = Me("div")) || (Qa.setAttribute("oncopy", "return;"), typeof Qa.oncopy == "function"), da = null; + function _c(x) { + if (da != null) + return da; + var S = te(x, Me("span", "x")), G = S.getBoundingClientRect(), j = xe(S, 0, 1).getBoundingClientRect(); + return da = Math.abs(G.left - j.left) > 1; + } + var qf = {}, wu = {}; + function jo(x, S) { + arguments.length > 2 && (S.dependencies = Array.prototype.slice.call(arguments, 2)), qf[x] = S; + } + function yf(x, S) { + wu[x] = S; + } + function bl(x) { + if (typeof x == "string" && wu.hasOwnProperty(x)) + x = wu[x]; + else if (x && typeof x.name == "string" && wu.hasOwnProperty(x.name)) { + var S = wu[x.name]; + typeof S == "string" && (S = { name: S }), (x = zt(S, x)).name = S.name; + } else { + if (typeof x == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(x)) + return bl("application/xml"); + if (typeof x == "string" && /^[\w\-]+\/[\w\-]+\+json$/.test(x)) + return bl("application/json"); + } + return typeof x == "string" ? { name: x } : x || { name: "null" }; + } + function cu(x, S) { + S = bl(S); + var G = qf[S.name]; + if (!G) + return cu(x, "text/plain"); + var j = G(x, S); + if (qc.hasOwnProperty(S.name)) { + var V = qc[S.name]; + for (var we in V) + V.hasOwnProperty(we) && (j.hasOwnProperty(we) && (j["_" + we] = j[we]), j[we] = V[we]); + } + if (j.name = S.name, S.helperType && (j.helperType = S.helperType), S.modeProps) + for (var $e in S.modeProps) + j[$e] = S.modeProps[$e]; + return j; + } + var qc = {}; + function Jl(x, S) { + Qe(S, qc.hasOwnProperty(x) ? qc[x] : qc[x] = {}); + } + function js(x, S) { + if (S === !0) + return S; + if (x.copyState) + return x.copyState(S); + var G = {}; + for (var j in S) { + var V = S[j]; + V instanceof Array && (V = V.concat([])), G[j] = V; + } + return G; + } + function Dc(x, S) { + for (var G; x.innerMode && (G = x.innerMode(S)) && G.mode != x; ) + S = G.state, x = G.mode; + return G || { mode: x, state: S }; + } + function gs(x, S, G) { + return !x.startState || x.startState(S, G); + } + var rc = function(x, S, G) { + this.pos = this.start = 0, this.string = x, this.tabSize = S || 8, this.lastColumnPos = this.lastColumnValue = 0, this.lineStart = 0, this.lineOracle = G; + }; + function Ki(x, S) { + if ((S -= x.first) < 0 || S >= x.size) + throw new Error("There is no line " + (S + x.first) + " in the document."); + for (var G = x; !G.lines; ) + for (var j = 0; ; ++j) { + var V = G.children[j], we = V.chunkSize(); + if (S < we) { + G = V; + break; + } + S -= we; + } + return G.lines[S]; + } + function Ta(x, S, G) { + var j = [], V = S.line; + return x.iter(S.line, G.line + 1, function(we) { + var $e = we.text; + V == G.line && ($e = $e.slice(0, G.ch)), V == S.line && ($e = $e.slice(S.ch)), j.push($e), ++V; + }), j; + } + function Bl(x, S, G) { + var j = []; + return x.iter(S, G, function(V) { + j.push(V.text); + }), j; + } + function sf(x, S) { + var G = S - x.height; + if (G) + for (var j = x; j; j = j.parent) + j.height += G; + } + function mc(x) { + if (x.parent == null) + return null; + for (var S = x.parent, G = jt(S.lines, x), j = S.parent; j; S = j, j = j.parent) + for (var V = 0; j.children[V] != S; ++V) + G += j.children[V].chunkSize(); + return G + S.first; + } + function wh(x, S) { + var G = x.first; + e: + do { + for (var j = 0; j < x.children.length; ++j) { + var V = x.children[j], we = V.height; + if (S < we) { + x = V; + continue e; + } + S -= we, G += V.chunkSize(); + } + return G; + } while (!x.lines); + for (var $e = 0; $e < x.lines.length; ++$e) { + var ze = x.lines[$e].height; + if (S < ze) + break; + S -= ze; + } + return G + $e; + } + function ra(x, S) { + return S >= x.first && S < x.first + x.size; + } + function Ls(x, S) { + return String(x.lineNumberFormatter(S + x.firstLineNumber)); + } + function pr(x, S, G) { + if (G === void 0 && (G = null), !(this instanceof pr)) + return new pr(x, S, G); + this.line = x, this.ch = S, this.sticky = G; + } + function Pr(x, S) { + return x.line - S.line || x.ch - S.ch; + } + function Wo(x, S) { + return x.sticky == S.sticky && Pr(x, S) == 0; + } + function hn(x) { + return pr(x.line, x.ch); + } + function wf(x, S) { + return Pr(x, S) < 0 ? S : x; + } + function Sn(x, S) { + return Pr(x, S) < 0 ? x : S; + } + function Nc(x, S) { + return Math.max(x.first, Math.min(S, x.first + x.size - 1)); + } + function Ro(x, S) { + if (S.line < x.first) + return pr(x.first, 0); + var G = x.first + x.size - 1; + return S.line > G ? pr(G, Ki(x, G).text.length) : T1(S, Ki(x, S.line).text.length); + } + function T1(x, S) { + var G = x.ch; + return G == null || G > S ? pr(x.line, S) : G < 0 ? pr(x.line, 0) : x; + } + function tr(x, S) { + for (var G = [], j = 0; j < S.length; j++) + G[j] = Ro(x, S[j]); + return G; + } + rc.prototype.eol = function() { + return this.pos >= this.string.length; + }, rc.prototype.sol = function() { + return this.pos == this.lineStart; + }, rc.prototype.peek = function() { + return this.string.charAt(this.pos) || void 0; + }, rc.prototype.next = function() { + if (this.pos < this.string.length) + return this.string.charAt(this.pos++); + }, rc.prototype.eat = function(x) { + var S = this.string.charAt(this.pos); + if (typeof x == "string" ? S == x : S && (x.test ? x.test(S) : x(S))) + return ++this.pos, S; + }, rc.prototype.eatWhile = function(x) { + for (var S = this.pos; this.eat(x); ) + ; + return this.pos > S; + }, rc.prototype.eatSpace = function() { + for (var x = this.pos; /[\s\u00a0]/.test(this.string.charAt(this.pos)); ) + ++this.pos; + return this.pos > x; + }, rc.prototype.skipToEnd = function() { + this.pos = this.string.length; + }, rc.prototype.skipTo = function(x) { + var S = this.string.indexOf(x, this.pos); + if (S > -1) + return this.pos = S, !0; + }, rc.prototype.backUp = function(x) { + this.pos -= x; + }, rc.prototype.column = function() { + return this.lastColumnPos < this.start && (this.lastColumnValue = kt(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? kt(this.string, this.lineStart, this.tabSize) : 0); + }, rc.prototype.indentation = function() { + return kt(this.string, null, this.tabSize) - (this.lineStart ? kt(this.string, this.lineStart, this.tabSize) : 0); + }, rc.prototype.match = function(x, S, G) { + if (typeof x != "string") { + var j = this.string.slice(this.pos).match(x); + return j && j.index > 0 ? null : (j && S !== !1 && (this.pos += j[0].length), j); + } + var V = function(we) { + return G ? we.toLowerCase() : we; + }; + if (V(this.string.substr(this.pos, x.length)) == V(x)) + return S !== !1 && (this.pos += x.length), !0; + }, rc.prototype.current = function() { + return this.string.slice(this.start, this.pos); + }, rc.prototype.hideFirstChars = function(x, S) { + this.lineStart += x; + try { + return S(); + } finally { + this.lineStart -= x; + } + }, rc.prototype.lookAhead = function(x) { + var S = this.lineOracle; + return S && S.lookAhead(x); + }, rc.prototype.baseToken = function() { + var x = this.lineOracle; + return x && x.baseToken(this.pos); + }; + var ei = function(x, S) { + this.state = x, this.lookAhead = S; + }, fi = function(x, S, G, j) { + this.state = S, this.doc = x, this.line = G, this.maxLookAhead = j || 0, this.baseTokens = null, this.baseTokenPos = 1; + }; + function ri(x, S, G, j) { + var V = [x.state.modeGen], we = {}; + V1(x, S.text, x.doc.mode, G, function(at, Yt) { + return V.push(at, Yt); + }, we, j); + for (var $e = G.state, ze = function(at) { + G.baseTokens = V; + var Yt = x.state.overlays[at], Vt = 1, Nn = 0; + G.state = !0, V1(x, S.text, Yt.mode, G, function(Vn, mr) { + for (var si = Vt; Nn < Vn; ) { + var Mi = V[Vt]; + Mi > Vn && V.splice(Vt, 1, Vn, V[Vt + 1], Mi), Vt += 2, Nn = Math.min(Vn, Mi); + } + if (mr) + if (Yt.opaque) + V.splice(si, Vt - si, Vn, "overlay " + mr), Vt = si + 2; + else + for (; si < Vt; si += 2) { + var _r = V[si + 1]; + V[si + 1] = (_r ? _r + " " : "") + "overlay " + mr; + } + }, we), G.state = $e, G.baseTokens = null, G.baseTokenPos = 1; + }, nt = 0; nt < x.state.overlays.length; ++nt) + ze(nt); + return { styles: V, classes: we.bgClass || we.textClass ? we : null }; + } + function Aa(x, S, G) { + if (!S.styles || S.styles[0] != x.state.modeGen) { + var j = ya(x, mc(S)), V = S.text.length > x.options.maxHighlightLength && js(x.doc.mode, j.state), we = ri(x, S, j); + V && (j.state = V), S.stateAfter = j.save(!V), S.styles = we.styles, we.classes ? S.styleClasses = we.classes : S.styleClasses && (S.styleClasses = null), G === x.doc.highlightFrontier && (x.doc.modeFrontier = Math.max(x.doc.modeFrontier, ++x.doc.highlightFrontier)); + } + return S.styles; + } + function ya(x, S, G) { + var j = x.doc, V = x.display; + if (!j.mode.startState) + return new fi(j, !0, S); + var we = il(x, S, G), $e = we > j.first && Ki(j, we - 1).stateAfter, ze = $e ? fi.fromSaved(j, $e, we) : new fi(j, gs(j.mode), we); + return j.iter(we, S, function(nt) { + fo(x, nt.text, ze); + var at = ze.line; + nt.stateAfter = at == S - 1 || at % 5 == 0 || at >= V.viewFrom && at < V.viewTo ? ze.save() : null, ze.nextLine(); + }), G && (j.modeFrontier = ze.line), ze; + } + function fo(x, S, G, j) { + var V = x.doc.mode, we = new rc(S, x.options.tabSize, G); + for (we.start = we.pos = j || 0, S == "" && bs(V, G.state); !we.eol(); ) + xo(V, we, G.state), we.start = we.pos; + } + function bs(x, S) { + if (x.blankLine) + return x.blankLine(S); + if (x.innerMode) { + var G = Dc(x, S); + return G.mode.blankLine ? G.mode.blankLine(G.state) : void 0; + } + } + function xo(x, S, G, j) { + for (var V = 0; V < 10; V++) { + j && (j[0] = Dc(x, G).mode); + var we = x.token(S, G); + if (S.pos > S.start) + return we; + } + throw new Error("Mode " + x.name + " failed to advance stream."); + } + fi.prototype.lookAhead = function(x) { + var S = this.doc.getLine(this.line + x); + return S != null && x > this.maxLookAhead && (this.maxLookAhead = x), S; + }, fi.prototype.baseToken = function(x) { + if (!this.baseTokens) + return null; + for (; this.baseTokens[this.baseTokenPos] <= x; ) + this.baseTokenPos += 2; + var S = this.baseTokens[this.baseTokenPos + 1]; + return { type: S && S.replace(/( |^)overlay .*/, ""), size: this.baseTokens[this.baseTokenPos] - x }; + }, fi.prototype.nextLine = function() { + this.line++, this.maxLookAhead > 0 && this.maxLookAhead--; + }, fi.fromSaved = function(x, S, G) { + return S instanceof ei ? new fi(x, js(x.mode, S.state), G, S.lookAhead) : new fi(x, js(x.mode, S), G); + }, fi.prototype.save = function(x) { + var S = x !== !1 ? js(this.doc.mode, this.state) : this.state; + return this.maxLookAhead > 0 ? new ei(S, this.maxLookAhead) : S; + }; + var sl = function(x, S, G) { + this.start = x.start, this.end = x.pos, this.string = x.current(), this.type = S || null, this.state = G; + }; + function Mu(x, S, G, j) { + var V, we, $e = x.doc, ze = $e.mode, nt = Ki($e, (S = Ro($e, S)).line), at = ya(x, S.line, G), Yt = new rc(nt.text, x.options.tabSize, at); + for (j && (we = []); (j || Yt.pos < S.ch) && !Yt.eol(); ) + Yt.start = Yt.pos, V = xo(ze, Yt, at.state), j && we.push(new sl(Yt, V, js($e.mode, at.state))); + return j ? we : new sl(Yt, V, at.state); + } + function Zl(x, S) { + if (x) + for (; ; ) { + var G = x.match(/(?:^|\s+)line-(background-)?(\S+)/); + if (!G) + break; + x = x.slice(0, G.index) + x.slice(G.index + G[0].length); + var j = G[1] ? "bgClass" : "textClass"; + S[j] == null ? S[j] = G[2] : new RegExp("(?:^|\\s)" + G[2] + "(?:$|\\s)").test(S[j]) || (S[j] += " " + G[2]); + } + return x; + } + function V1(x, S, G, j, V, we, $e) { + var ze = G.flattenSpans; + ze == null && (ze = x.options.flattenSpans); + var nt, at = 0, Yt = null, Vt = new rc(S, x.options.tabSize, j), Nn = x.options.addModeClass && [null]; + for (S == "" && Zl(bs(G, j.state), we); !Vt.eol(); ) { + if (Vt.pos > x.options.maxHighlightLength ? (ze = !1, $e && fo(x, S, j, Vt.pos), Vt.pos = S.length, nt = null) : nt = Zl(xo(G, Vt, j.state, Nn), we), Nn) { + var Vn = Nn[0].name; + Vn && (nt = "m-" + (nt ? Vn + " " + nt : Vn)); + } + if (!ze || Yt != nt) { + for (; at < Vt.start; ) + V(at = Math.min(Vt.start, at + 5e3), Yt); + Yt = nt; + } + Vt.start = Vt.pos; + } + for (; at < Vt.pos; ) { + var mr = Math.min(Vt.pos, at + 5e3); + V(mr, Yt), at = mr; + } + } + function il(x, S, G) { + for (var j, V, we = x.doc, $e = G ? -1 : S - (x.doc.mode.innerMode ? 1e3 : 100), ze = S; ze > $e; --ze) { + if (ze <= we.first) + return we.first; + var nt = Ki(we, ze - 1), at = nt.stateAfter; + if (at && (!G || ze + (at instanceof ei ? at.lookAhead : 0) <= we.modeFrontier)) + return ze; + var Yt = kt(nt.text, null, x.options.tabSize); + (V == null || j > Yt) && (V = ze - 1, j = Yt); + } + return V; + } + function kf(x, S) { + if (x.modeFrontier = Math.min(x.modeFrontier, S), !(x.highlightFrontier < S - 10)) { + for (var G = x.first, j = S - 1; j > G; j--) { + var V = Ki(x, j).stateAfter; + if (V && (!(V instanceof ei) || j + V.lookAhead < S)) { + G = j + 1; + break; + } + } + x.highlightFrontier = Math.min(x.highlightFrontier, G); + } + } + var eu = !1, cl = !1; + function Ps() { + eu = !0; + } + function hb() { + cl = !0; + } + function Of(x, S, G) { + this.marker = x, this.from = S, this.to = G; + } + function Sl(x, S) { + if (x) + for (var G = 0; G < x.length; ++G) { + var j = x[G]; + if (j.marker == S) + return j; + } + } + function U0(x, S) { + for (var G, j = 0; j < x.length; ++j) + x[j] != S && (G || (G = [])).push(x[j]); + return G; + } + function Yf(x, S) { + x.markedSpans = x.markedSpans ? x.markedSpans.concat([S]) : [S], S.marker.attachLine(x); + } + function H0(x, S, G) { + var j; + if (x) + for (var V = 0; V < x.length; ++V) { + var we = x[V], $e = we.marker; + if (we.from == null || ($e.inclusiveLeft ? we.from <= S : we.from < S) || we.from == S && $e.type == "bookmark" && (!G || !we.marker.insertLeft)) { + var ze = we.to == null || ($e.inclusiveRight ? we.to >= S : we.to > S); + (j || (j = [])).push(new Of($e, we.from, ze ? null : we.to)); + } + } + return j; + } + function cf(x, S, G) { + var j; + if (x) + for (var V = 0; V < x.length; ++V) { + var we = x[V], $e = we.marker; + if (we.to == null || ($e.inclusiveRight ? we.to >= S : we.to > S) || we.from == S && $e.type == "bookmark" && (!G || we.marker.insertLeft)) { + var ze = we.from == null || ($e.inclusiveLeft ? we.from <= S : we.from < S); + (j || (j = [])).push(new Of($e, ze ? null : we.from - S, we.to == null ? null : we.to - S)); + } + } + return j; + } + function Ad(x, S) { + if (S.full) + return null; + var G = ra(x, S.from.line) && Ki(x, S.from.line).markedSpans, j = ra(x, S.to.line) && Ki(x, S.to.line).markedSpans; + if (!G && !j) + return null; + var V = S.from.ch, we = S.to.ch, $e = Pr(S.from, S.to) == 0, ze = H0(G, V, $e), nt = cf(j, we, $e), at = S.text.length == 1, Yt = pt(S.text).length + (at ? V : 0); + if (ze) + for (var Vt = 0; Vt < ze.length; ++Vt) { + var Nn = ze[Vt]; + if (Nn.to == null) { + var Vn = Sl(nt, Nn.marker); + Vn ? at && (Nn.to = Vn.to == null ? null : Vn.to + Yt) : Nn.to = V; + } + } + if (nt) + for (var mr = 0; mr < nt.length; ++mr) { + var si = nt[mr]; + si.to != null && (si.to += Yt), si.from == null ? Sl(ze, si.marker) || (si.from = Yt, at && (ze || (ze = [])).push(si)) : (si.from += Yt, at && (ze || (ze = [])).push(si)); + } + ze && (ze = Ep(ze)), nt && nt != ze && (nt = Ep(nt)); + var Mi = [ze]; + if (!at) { + var _r, ao = S.text.length - 2; + if (ao > 0 && ze) + for (var ea = 0; ea < ze.length; ++ea) + ze[ea].to == null && (_r || (_r = [])).push(new Of(ze[ea].marker, null, null)); + for (var zi = 0; zi < ao; ++zi) + Mi.push(_r); + Mi.push(nt); + } + return Mi; + } + function Ep(x) { + for (var S = 0; S < x.length; ++S) { + var G = x[S]; + G.from != null && G.from == G.to && G.marker.clearWhenEmpty !== !1 && x.splice(S--, 1); + } + return x.length ? x : null; + } + function Md(x, S, G) { + var j = null; + if (x.iter(S.line, G.line + 1, function(Vn) { + if (Vn.markedSpans) + for (var mr = 0; mr < Vn.markedSpans.length; ++mr) { + var si = Vn.markedSpans[mr].marker; + !si.readOnly || j && jt(j, si) != -1 || (j || (j = [])).push(si); + } + }), !j) + return null; + for (var V = [{ from: S, to: G }], we = 0; we < j.length; ++we) + for (var $e = j[we], ze = $e.find(0), nt = 0; nt < V.length; ++nt) { + var at = V[nt]; + if (!(Pr(at.to, ze.from) < 0 || Pr(at.from, ze.to) > 0)) { + var Yt = [nt, 1], Vt = Pr(at.from, ze.from), Nn = Pr(at.to, ze.to); + (Vt < 0 || !$e.inclusiveLeft && !Vt) && Yt.push({ from: at.from, to: ze.from }), (Nn > 0 || !$e.inclusiveRight && !Nn) && Yt.push({ from: ze.to, to: at.to }), V.splice.apply(V, Yt), nt += Yt.length - 3; + } + } + return V; + } + function mn(x) { + var S = x.markedSpans; + if (S) { + for (var G = 0; G < S.length; ++G) + S[G].marker.detachLine(x); + x.markedSpans = null; + } + } + function io(x, S) { + if (S) { + for (var G = 0; G < S.length; ++G) + S[G].marker.attachLine(x); + x.markedSpans = S; + } + } + function Ba(x) { + return x.inclusiveLeft ? -1 : 0; + } + function bc(x) { + return x.inclusiveRight ? 1 : 0; + } + function jc(x, S) { + var G = x.lines.length - S.lines.length; + if (G != 0) + return G; + var j = x.find(), V = S.find(), we = Pr(j.from, V.from) || Ba(x) - Ba(S); + if (we) + return -we; + var $e = Pr(j.to, V.to) || bc(x) - bc(S); + return $e || S.id - x.id; + } + function ll(x, S) { + var G, j = cl && x.markedSpans; + if (j) + for (var V = void 0, we = 0; we < j.length; ++we) + (V = j[we]).marker.collapsed && (S ? V.from : V.to) == null && (!G || jc(G, V.marker) < 0) && (G = V.marker); + return G; + } + function Df(x) { + return ll(x, !0); + } + function Jf(x) { + return ll(x, !1); + } + function Fd(x, S) { + var G, j = cl && x.markedSpans; + if (j) + for (var V = 0; V < j.length; ++V) { + var we = j[V]; + we.marker.collapsed && (we.from == null || we.from < S) && (we.to == null || we.to > S) && (!G || jc(G, we.marker) < 0) && (G = we.marker); + } + return G; + } + function Gh(x, S, G, j, V) { + var we = Ki(x, S), $e = cl && we.markedSpans; + if ($e) + for (var ze = 0; ze < $e.length; ++ze) { + var nt = $e[ze]; + if (nt.marker.collapsed) { + var at = nt.marker.find(0), Yt = Pr(at.from, G) || Ba(nt.marker) - Ba(V), Vt = Pr(at.to, j) || bc(nt.marker) - bc(V); + if (!(Yt >= 0 && Vt <= 0 || Yt <= 0 && Vt >= 0) && (Yt <= 0 && (nt.marker.inclusiveRight && V.inclusiveLeft ? Pr(at.to, G) >= 0 : Pr(at.to, G) > 0) || Yt >= 0 && (nt.marker.inclusiveRight && V.inclusiveLeft ? Pr(at.from, j) <= 0 : Pr(at.from, j) < 0))) + return !0; + } + } + } + function iA(x) { + for (var S; S = Df(x); ) + x = S.find(-1, !0).line; + return x; + } + function bn(x) { + for (var S; S = Jf(x); ) + x = S.find(1, !0).line; + return x; + } + function ia(x) { + for (var S, G; S = Jf(x); ) + x = S.find(1, !0).line, (G || (G = [])).push(x); + return G; + } + function Ca(x, S) { + var G = Ki(x, S), j = iA(G); + return G == j ? S : mc(j); + } + function vl(x, S) { + if (S > x.lastLine()) + return S; + var G, j = Ki(x, S); + if (!ku(x, j)) + return S; + for (; G = Jf(j); ) + j = G.find(1, !0).line; + return mc(j) + 1; + } + function ku(x, S) { + var G = cl && S.markedSpans; + if (G) { + for (var j = void 0, V = 0; V < G.length; ++V) + if ((j = G[V]).marker.collapsed && (j.from == null || !j.marker.widgetNode && j.from == 0 && j.marker.inclusiveLeft && lf(x, S, j))) + return !0; + } + } + function lf(x, S, G) { + if (G.to == null) { + var j = G.marker.find(1, !0); + return lf(x, j.line, Sl(j.line.markedSpans, G.marker)); + } + if (G.marker.inclusiveRight && G.to == S.text.length) + return !0; + for (var V = void 0, we = 0; we < S.markedSpans.length; ++we) + if ((V = S.markedSpans[we]).marker.collapsed && !V.marker.widgetNode && V.from == G.to && (V.to == null || V.to != G.from) && (V.marker.inclusiveLeft || G.marker.inclusiveRight) && lf(x, S, V)) + return !0; + } + function uf(x) { + for (var S = 0, G = (x = iA(x)).parent, j = 0; j < G.lines.length; ++j) { + var V = G.lines[j]; + if (V == x) + break; + S += V.height; + } + for (var we = G.parent; we; we = (G = we).parent) + for (var $e = 0; $e < we.children.length; ++$e) { + var ze = we.children[$e]; + if (ze == G) + break; + S += ze.height; + } + return S; + } + function Tp(x) { + if (x.height == 0) + return 0; + for (var S, G = x.text.length, j = x; S = Df(j); ) { + var V = S.find(0, !0); + j = V.from.line, G += V.from.ch - V.to.ch; + } + for (j = x; S = Jf(j); ) { + var we = S.find(0, !0); + G -= j.text.length - we.from.ch, G += (j = we.to.line).text.length - we.to.ch; + } + return G; + } + function s0(x) { + var S = x.display, G = x.doc; + S.maxLine = Ki(G, G.first), S.maxLineLength = Tp(S.maxLine), S.maxLineChanged = !0, G.iter(function(j) { + var V = Tp(j); + V > S.maxLineLength && (S.maxLineLength = V, S.maxLine = j); + }); + } + var Zf = function(x, S, G) { + this.text = x, io(this, S), this.height = G ? G(this) : 1; + }; + function Br(x, S, G, j) { + x.text = S, x.stateAfter && (x.stateAfter = null), x.styles && (x.styles = null), x.order != null && (x.order = null), mn(x), io(x, G); + var V = j ? j(x) : 1; + V != x.height && sf(x, V); + } + function Bk(x) { + x.parent = null, mn(x); + } + Zf.prototype.lineNo = function() { + return mc(this); + }, er(Zf); + var Sk = {}, hC = {}; + function E3(x, S) { + if (!x || /^\s*$/.test(x)) + return null; + var G = S.addModeClass ? hC : Sk; + return G[x] || (G[x] = x.replace(/\S+/g, "cm-$&")); + } + function Gy(x, S) { + var G = ve("span", null, null, _ ? "padding-right: .1px" : null), j = { pre: ve("pre", [G], "CodeMirror-line"), content: G, col: 0, pos: 0, cm: x, trailingSpace: !1, splitSpaces: x.getOption("lineWrapping") }; + S.measure = {}; + for (var V = 0; V <= (S.rest ? S.rest.length : 0); V++) { + var we = V ? S.rest[V - 1] : S.line, $e = void 0; + j.pos = 0, j.addToken = Rs, Hs(x.display.measure) && ($e = Jo(we, x.doc.direction)) && (j.addToken = T3(j.addToken, $e)), j.map = [], Z9(we, j, Aa(x, we, S != x.display.externalMeasured && mc(we))), we.styleClasses && (we.styleClasses.bgClass && (j.bgClass = bt(we.styleClasses.bgClass, j.bgClass || "")), we.styleClasses.textClass && (j.textClass = bt(we.styleClasses.textClass, j.textClass || ""))), j.map.length == 0 && j.map.push(0, 0, j.content.appendChild(Fs(x.display.measure))), V == 0 ? (S.measure.map = j.map, S.measure.cache = {}) : ((S.measure.maps || (S.measure.maps = [])).push(j.map), (S.measure.caches || (S.measure.caches = [])).push({})); + } + if (_) { + var ze = j.content.lastChild; + (/\bcm-tab\b/.test(ze.className) || ze.querySelector && ze.querySelector(".cm-tab")) && (j.content.className = "cm-tab-wrap-hack"); + } + return Yr(x, "renderLine", x, S.line, j.pre), j.pre.className && (j.textClass = bt(j.pre.className, j.textClass || "")), j; + } + function ic(x) { + var S = Me("span", "•", "cm-invalidchar"); + return S.title = "\\u" + x.charCodeAt(0).toString(16), S.setAttribute("aria-label", S.title), S; + } + function Rs(x, S, G, j, V, we, $e) { + if (S) { + var ze, nt = x.splitSpaces ? J9(S, x.trailingSpace) : S, at = x.cm.state.specialChars, Yt = !1; + if (at.test(S)) { + ze = document.createDocumentFragment(); + for (var Vt = 0; ; ) { + at.lastIndex = Vt; + var Nn = at.exec(S), Vn = Nn ? Nn.index - Vt : S.length - Vt; + if (Vn) { + var mr = document.createTextNode(nt.slice(Vt, Vt + Vn)); + v && k < 9 ? ze.appendChild(Me("span", [mr])) : ze.appendChild(mr), x.map.push(x.pos, x.pos + Vn, mr), x.col += Vn, x.pos += Vn; + } + if (!Nn) + break; + Vt += Vn + 1; + var si = void 0; + if (Nn[0] == " ") { + var Mi = x.cm.options.tabSize, _r = Mi - x.col % Mi; + (si = ze.appendChild(Me("span", $n(_r), "cm-tab"))).setAttribute("role", "presentation"), si.setAttribute("cm-text", " "), x.col += _r; + } else + Nn[0] == "\r" || Nn[0] == ` +` ? ((si = ze.appendChild(Me("span", Nn[0] == "\r" ? "␍" : "␤", "cm-invalidchar"))).setAttribute("cm-text", Nn[0]), x.col += 1) : ((si = x.cm.options.specialCharPlaceholder(Nn[0])).setAttribute("cm-text", Nn[0]), v && k < 9 ? ze.appendChild(Me("span", [si])) : ze.appendChild(si), x.col += 1); + x.map.push(x.pos, x.pos + 1, si), x.pos++; + } + } else + x.col += S.length, ze = document.createTextNode(nt), x.map.push(x.pos, x.pos + S.length, ze), v && k < 9 && (Yt = !0), x.pos += S.length; + if (x.trailingSpace = nt.charCodeAt(S.length - 1) == 32, G || j || V || Yt || we || $e) { + var ao = G || ""; + j && (ao += j), V && (ao += V); + var ea = Me("span", [ze], ao, we); + if ($e) + for (var zi in $e) + $e.hasOwnProperty(zi) && zi != "style" && zi != "class" && ea.setAttribute(zi, $e[zi]); + return x.content.appendChild(ea); + } + x.content.appendChild(ze); + } + } + function J9(x, S) { + if (x.length > 1 && !/ /.test(x)) + return x; + for (var G = S, j = "", V = 0; V < x.length; V++) { + var we = x.charAt(V); + we != " " || !G || V != x.length - 1 && x.charCodeAt(V + 1) != 32 || (we = " "), j += we, G = we == " "; + } + return j; + } + function T3(x, S) { + return function(G, j, V, we, $e, ze, nt) { + V = V ? V + " cm-force-border" : "cm-force-border"; + for (var at = G.pos, Yt = at + j.length; ; ) { + for (var Vt = void 0, Nn = 0; Nn < S.length && !((Vt = S[Nn]).to > at && Vt.from <= at); Nn++) + ; + if (Vt.to >= Yt) + return x(G, j, V, we, $e, ze, nt); + x(G, j.slice(0, Vt.to - at), V, we, null, ze, nt), we = null, j = j.slice(Vt.to - at), at = Vt.to; + } + }; + } + function Lk(x, S, G, j) { + var V = !j && G.widgetNode; + V && x.map.push(x.pos, x.pos + S, V), !j && x.cm.display.input.needsContentAttribute && (V || (V = x.content.appendChild(document.createElement("span"))), V.setAttribute("cm-marker", G.id)), V && (x.cm.display.input.setUneditable(V), x.content.appendChild(V)), x.pos += S, x.trailingSpace = !1; + } + function Z9(x, S, G) { + var j = x.markedSpans, V = x.text, we = 0; + if (j) + for (var $e, ze, nt, at, Yt, Vt, Nn, Vn = V.length, mr = 0, si = 1, Mi = "", _r = 0; ; ) { + if (_r == mr) { + nt = at = Yt = ze = "", Nn = null, Vt = null, _r = 1 / 0; + for (var ao = [], ea = void 0, zi = 0; zi < j.length; ++zi) { + var Qo = j[zi], $a = Qo.marker; + if ($a.type == "bookmark" && Qo.from == mr && $a.widgetNode) + ao.push($a); + else if (Qo.from <= mr && (Qo.to == null || Qo.to > mr || $a.collapsed && Qo.to == mr && Qo.from == mr)) { + if (Qo.to != null && Qo.to != mr && _r > Qo.to && (_r = Qo.to, at = ""), $a.className && (nt += " " + $a.className), $a.css && (ze = (ze ? ze + ";" : "") + $a.css), $a.startStyle && Qo.from == mr && (Yt += " " + $a.startStyle), $a.endStyle && Qo.to == _r && (ea || (ea = [])).push($a.endStyle, Qo.to), $a.title && ((Nn || (Nn = {})).title = $a.title), $a.attributes) + for (var Ll in $a.attributes) + (Nn || (Nn = {}))[Ll] = $a.attributes[Ll]; + $a.collapsed && (!Vt || jc(Vt.marker, $a) < 0) && (Vt = Qo); + } else + Qo.from > mr && _r > Qo.from && (_r = Qo.from); + } + if (ea) + for (var hu = 0; hu < ea.length; hu += 2) + ea[hu + 1] == _r && (at += " " + ea[hu]); + if (!Vt || Vt.from == mr) + for (var I1 = 0; I1 < ao.length; ++I1) + Lk(S, 0, ao[I1]); + if (Vt && (Vt.from || 0) == mr) { + if (Lk(S, (Vt.to == null ? Vn + 1 : Vt.to) - mr, Vt.marker, Vt.from == null), Vt.to == null) + return; + Vt.to == mr && (Vt = !1); + } + } + if (mr >= Vn) + break; + for (var ac = Math.min(Vn, _r); ; ) { + if (Mi) { + var _f = mr + Mi.length; + if (!Vt) { + var J1 = _f > ac ? Mi.slice(0, ac - mr) : Mi; + S.addToken(S, J1, $e ? $e + nt : nt, Yt, mr + J1.length == _r ? at : "", ze, Nn); + } + if (_f >= ac) { + Mi = Mi.slice(ac - mr), mr = ac; + break; + } + mr = _f, Yt = ""; + } + Mi = V.slice(we, we = G[si++]), $e = E3(G[si++], S.cm.options); + } + } + else + for (var qh = 1; qh < G.length; qh += 2) + S.addToken(S, V.slice(we, we = G[qh]), E3(G[qh + 1], S.cm.options)); + } + function fC(x, S, G) { + this.line = S, this.rest = ia(S), this.size = this.rest ? mc(pt(this.rest)) - G + 1 : 1, this.node = this.text = null, this.hidden = ku(x, S); + } + function Sv(x, S, G) { + for (var j, V = [], we = S; we < G; we = j) { + var $e = new fC(x.doc, Ki(x.doc, we), we); + j = we + $e.size, V.push($e); + } + return V; + } + var fb = null; + function Xy(x) { + fb ? fb.ops.push(x) : x.ownsGroup = fb = { ops: [x], delayedCallbacks: [] }; + } + function Ec(x) { + var S = x.delayedCallbacks, G = 0; + do { + for (; G < S.length; G++) + S[G].call(null); + for (var j = 0; j < x.ops.length; j++) { + var V = x.ops[j]; + if (V.cursorActivityHandlers) + for (; V.cursorActivityCalled < V.cursorActivityHandlers.length; ) + V.cursorActivityHandlers[V.cursorActivityCalled++].call(null, V.cm); + } + } while (G < S.length); + } + function j0(x, S) { + var G = x.ownsGroup; + if (G) + try { + Ec(G); + } finally { + fb = null, S(G); + } + } + var c0 = null; + function Dl(x, S) { + var G = Ya(x, S); + if (G.length) { + var j, V = Array.prototype.slice.call(arguments, 2); + fb ? j = fb.delayedCallbacks : c0 ? j = c0 : (j = c0 = [], setTimeout(k2, 0)); + for (var we = function(ze) { + j.push(function() { + return G[ze].apply(null, V); + }); + }, $e = 0; $e < G.length; ++$e) + we($e); + } + } + function k2() { + var x = c0; + c0 = null; + for (var S = 0; S < x.length; ++S) + x[S](); + } + function x2(x, S, G, j) { + for (var V = 0; V < S.changes.length; V++) { + var we = S.changes[V]; + we == "text" ? x5(x, S) : we == "gutter" ? C2(x, S, G, j) : we == "class" ? B3(x, S) : we == "widget" && K0(x, S, j); + } + S.changes = null; + } + function l0(x) { + return x.node == x.text && (x.node = Me("div", null, null, "position: relative"), x.text.parentNode && x.text.parentNode.replaceChild(x.node, x.text), x.node.appendChild(x.text), v && k < 8 && (x.node.style.zIndex = 2)), x.node; + } + function vc(x, S) { + var G = S.bgClass ? S.bgClass + " " + (S.line.bgClass || "") : S.line.bgClass; + if (G && (G += " CodeMirror-linebackground"), S.background) + G ? S.background.className = G : (S.background.parentNode.removeChild(S.background), S.background = null); + else if (G) { + var j = l0(S); + S.background = j.insertBefore(Me("div", null, G), j.firstChild), x.display.input.setUneditable(S.background); + } + } + function Ik(x, S) { + var G = x.display.externalMeasured; + return G && G.line == S.line ? (x.display.externalMeasured = null, S.measure = G.measure, G.built) : Gy(x, S); + } + function x5(x, S) { + var G = S.text.className, j = Ik(x, S); + S.text == S.node && (S.node = j.pre), S.text.parentNode.replaceChild(j.pre, S.text), S.text = j.pre, j.bgClass != S.bgClass || j.textClass != S.textClass ? (S.bgClass = j.bgClass, S.textClass = j.textClass, B3(x, S)) : G && (S.text.className = G); + } + function B3(x, S) { + vc(x, S), S.line.wrapClass ? l0(S).className = S.line.wrapClass : S.node != S.text && (S.node.className = ""); + var G = S.textClass ? S.textClass + " " + (S.line.textClass || "") : S.line.textClass; + S.text.className = G || ""; + } + function C2(x, S, G, j) { + if (S.gutter && (S.node.removeChild(S.gutter), S.gutter = null), S.gutterBackground && (S.node.removeChild(S.gutterBackground), S.gutterBackground = null), S.line.gutterClass) { + var V = l0(S); + S.gutterBackground = Me("div", null, "CodeMirror-gutter-background " + S.line.gutterClass, "left: " + (x.options.fixedGutter ? j.fixedPos : -j.gutterTotalWidth) + "px; width: " + j.gutterTotalWidth + "px"), x.display.input.setUneditable(S.gutterBackground), V.insertBefore(S.gutterBackground, S.text); + } + var we = S.line.gutterMarkers; + if (x.options.lineNumbers || we) { + var $e = l0(S), ze = S.gutter = Me("div", null, "CodeMirror-gutter-wrapper", "left: " + (x.options.fixedGutter ? j.fixedPos : -j.gutterTotalWidth) + "px"); + if (x.display.input.setUneditable(ze), $e.insertBefore(ze, S.text), S.line.gutterClass && (ze.className += " " + S.line.gutterClass), !x.options.lineNumbers || we && we["CodeMirror-linenumbers"] || (S.lineNumber = ze.appendChild(Me("div", Ls(x.options, G), "CodeMirror-linenumber CodeMirror-gutter-elt", "left: " + j.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + x.display.lineNumInnerWidth + "px"))), we) + for (var nt = 0; nt < x.display.gutterSpecs.length; ++nt) { + var at = x.display.gutterSpecs[nt].className, Yt = we.hasOwnProperty(at) && we[at]; + Yt && ze.appendChild(Me("div", [Yt], "CodeMirror-gutter-elt", "left: " + j.gutterLeft[at] + "px; width: " + j.gutterWidth[at] + "px")); + } + } + } + function K0(x, S, G) { + S.alignable && (S.alignable = null); + for (var j = Te("CodeMirror-linewidget"), V = S.node.firstChild, we = void 0; V; V = we) + we = V.nextSibling, j.test(V.className) && S.node.removeChild(V); + dm(x, S, G); + } + function Mk(x, S, G, j) { + var V = Ik(x, S); + return S.text = S.node = V.pre, V.bgClass && (S.bgClass = V.bgClass), V.textClass && (S.textClass = V.textClass), B3(x, S), C2(x, S, G, j), dm(x, S, j), S.node; + } + function dm(x, S, G) { + if (Xh(x, S.line, S, G, !0), S.rest) + for (var j = 0; j < S.rest.length; j++) + Xh(x, S.rest[j], S, G, !1); + } + function Xh(x, S, G, j, V) { + if (S.widgets) + for (var we = l0(G), $e = 0, ze = S.widgets; $e < ze.length; ++$e) { + var nt = ze[$e], at = Me("div", [nt.node], "CodeMirror-linewidget" + (nt.className ? " " + nt.className : "")); + nt.handleMouseEvents || at.setAttribute("cm-ignore-events", "true"), Bp(nt, at, G, j), x.display.input.setUneditable(at), V && nt.above ? we.insertBefore(at, G.gutter || G.text) : we.appendChild(at), Dl(nt, "redraw"); + } + } + function Bp(x, S, G, j) { + if (x.noHScroll) { + (G.alignable || (G.alignable = [])).push(S); + var V = j.wrapperWidth; + S.style.left = j.fixedPos + "px", x.coverGutter || (V -= j.gutterTotalWidth, S.style.paddingLeft = j.gutterTotalWidth + "px"), S.style.width = V + "px"; + } + x.coverGutter && (S.style.zIndex = 5, S.style.position = "relative", x.noHScroll || (S.style.marginLeft = -j.gutterTotalWidth + "px")); + } + function xf(x) { + if (x.height != null) + return x.height; + var S = x.doc.cm; + if (!S) + return 0; + if (!ge(document.body, x.node)) { + var G = "position: relative;"; + x.coverGutter && (G += "margin-left: -" + S.display.gutters.offsetWidth + "px;"), x.noHScroll && (G += "width: " + S.display.wrapper.clientWidth + "px;"), te(S.display.measure, Me("div", [x.node], null, G)); + } + return x.height = x.node.parentNode.offsetHeight; + } + function Lg(x, S) { + for (var G = xa(S); G != x.wrapper; G = G.parentNode) + if (!G || G.nodeType == 1 && G.getAttribute("cm-ignore-events") == "true" || G.parentNode == x.sizer && G != x.mover) + return !0; + } + function Nf(x) { + return x.lineSpace.offsetTop; + } + function Lv(x) { + return x.mover.offsetHeight - x.lineSpace.offsetHeight; + } + function Fu(x) { + if (x.cachedPaddingH) + return x.cachedPaddingH; + var S = te(x.measure, Me("pre", "x", "CodeMirror-line-like")), G = window.getComputedStyle ? window.getComputedStyle(S) : S.currentStyle, j = { left: parseInt(G.paddingLeft), right: parseInt(G.paddingRight) }; + return isNaN(j.left) || isNaN(j.right) || (x.cachedPaddingH = j), j; + } + function Sp(x) { + return Zn - x.display.nativeBarWidth; + } + function _2(x) { + return x.display.scroller.clientWidth - Sp(x) - x.display.barWidth; + } + function S3(x) { + return x.display.scroller.clientHeight - Sp(x) - x.display.barHeight; + } + function Fk(x, S, G) { + var j = x.options.lineWrapping, V = j && _2(x); + if (!S.measure.heights || j && S.measure.width != V) { + var we = S.measure.heights = []; + if (j) { + S.measure.width = V; + for (var $e = S.text.firstChild.getClientRects(), ze = 0; ze < $e.length - 1; ze++) { + var nt = $e[ze], at = $e[ze + 1]; + Math.abs(nt.bottom - at.bottom) > 2 && we.push((nt.bottom + at.top) / 2 - G.top); + } + } + we.push(G.bottom - G.top); + } + } + function gd(x, S, G) { + if (x.line == S) + return { map: x.measure.map, cache: x.measure.cache }; + for (var j = 0; j < x.rest.length; j++) + if (x.rest[j] == S) + return { map: x.measure.maps[j], cache: x.measure.caches[j] }; + for (var V = 0; V < x.rest.length; V++) + if (mc(x.rest[V]) > G) + return { map: x.measure.maps[V], cache: x.measure.caches[V], before: !0 }; + } + function Ig(x, S) { + var G = mc(S = iA(S)), j = x.display.externalMeasured = new fC(x.doc, S, G); + j.lineN = G; + var V = j.built = Gy(x, j); + return j.text = V.pre, te(x.display.lineMeasure, V.pre), j; + } + function Wy(x, S, G, j) { + return Od(x, aA(x, S), G, j); + } + function h1(x, S) { + if (S >= x.display.viewFrom && S < x.display.viewTo) + return x.display.view[f0(x, S)]; + var G = x.display.externalMeasured; + return G && S >= G.lineN && S < G.lineN + G.size ? G : void 0; + } + function aA(x, S) { + var G = mc(S), j = h1(x, G); + j && !j.text ? j = null : j && j.changes && (x2(x, j, G, Lp(x)), x.curOp.forceUpdate = !0), j || (j = Ig(x, S)); + var V = gd(j, S, G); + return { line: S, view: j, rect: null, map: V.map, cache: V.cache, before: V.before, hasHeights: !1 }; + } + function Od(x, S, G, j, V) { + S.before && (G = -1); + var we, $e = G + (j || ""); + return S.cache.hasOwnProperty($e) ? we = S.cache[$e] : (S.rect || (S.rect = S.view.text.getBoundingClientRect()), S.hasHeights || (Fk(x, S.view, S.rect), S.hasHeights = !0), (we = E2(x, S, G, j)).bogus || (S.cache[$e] = we)), { left: we.left, right: we.right, top: V ? we.rtop : we.top, bottom: V ? we.rbottom : we.bottom }; + } + var Ks, u0 = { left: 0, right: 0, top: 0, bottom: 0 }; + function L3(x, S, G) { + for (var j, V, we, $e, ze, nt, at = 0; at < x.length; at += 3) + if (ze = x[at], nt = x[at + 1], S < ze ? (V = 0, we = 1, $e = "left") : S < nt ? we = 1 + (V = S - ze) : (at == x.length - 3 || S == nt && x[at + 3] > S) && (V = (we = nt - ze) - 1, S >= nt && ($e = "right")), V != null) { + if (j = x[at + 2], ze == nt && G == (j.insertLeft ? "left" : "right") && ($e = G), G == "left" && V == 0) + for (; at && x[at - 2] == x[at - 3] && x[at - 1].insertLeft; ) + j = x[2 + (at -= 3)], $e = "left"; + if (G == "right" && V == nt - ze) + for (; at < x.length - 3 && x[at + 3] == x[at + 4] && !x[at + 5].insertLeft; ) + j = x[(at += 3) + 2], $e = "right"; + break; + } + return { node: j, start: V, end: we, collapse: $e, coverStart: ze, coverEnd: nt }; + } + function db(x, S) { + var G = u0; + if (S == "left") + for (var j = 0; j < x.length && (G = x[j]).left == G.right; j++) + ; + else + for (var V = x.length - 1; V >= 0 && (G = x[V]).left == G.right; V--) + ; + return G; + } + function E2(x, S, G, j) { + var V, we = L3(S.map, G, j), $e = we.node, ze = we.start, nt = we.end, at = we.collapse; + if ($e.nodeType == 3) { + for (var Yt = 0; Yt < 4; Yt++) { + for (; ze && or(S.line.text.charAt(we.coverStart + ze)); ) + --ze; + for (; we.coverStart + nt < we.coverEnd && or(S.line.text.charAt(we.coverStart + nt)); ) + ++nt; + if ((V = v && k < 9 && ze == 0 && nt == we.coverEnd - we.coverStart ? $e.parentNode.getBoundingClientRect() : db(xe($e, ze, nt).getClientRects(), j)).left || V.right || ze == 0) + break; + nt = ze, ze -= 1, at = "right"; + } + v && k < 11 && (V = Iv(x.display.measure, V)); + } else { + var Vt; + ze > 0 && (at = j = "right"), V = x.options.lineWrapping && (Vt = $e.getClientRects()).length > 1 ? Vt[j == "right" ? Vt.length - 1 : 0] : $e.getBoundingClientRect(); + } + if (v && k < 9 && !ze && (!V || !V.left && !V.right)) { + var Nn = $e.parentNode.getClientRects()[0]; + V = Nn ? { left: Nn.left, right: Nn.left + Nd(x.display), top: Nn.top, bottom: Nn.bottom } : u0; + } + for (var Vn = V.top - S.rect.top, mr = V.bottom - S.rect.top, si = (Vn + mr) / 2, Mi = S.view.measure.heights, _r = 0; _r < Mi.length - 1 && !(si < Mi[_r]); _r++) + ; + var ao = _r ? Mi[_r - 1] : 0, ea = Mi[_r], zi = { left: (at == "right" ? V.right : V.left) - S.rect.left, right: (at == "left" ? V.left : V.right) - S.rect.left, top: ao, bottom: ea }; + return V.left || V.right || (zi.bogus = !0), x.options.singleCursorHeightPerLine || (zi.rtop = Vn, zi.rbottom = mr), zi; + } + function Iv(x, S) { + if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !_c(x)) + return S; + var G = screen.logicalXDPI / screen.deviceXDPI, j = screen.logicalYDPI / screen.deviceYDPI; + return { left: S.left * G, right: S.right * G, top: S.top * j, bottom: S.bottom * j }; + } + function Vy(x) { + if (x.measure && (x.measure.cache = {}, x.measure.heights = null, x.rest)) + for (var S = 0; S < x.rest.length; S++) + x.measure.caches[S] = {}; + } + function B1(x) { + x.display.externalMeasure = null, Be(x.display.lineMeasure); + for (var S = 0; S < x.display.view.length; S++) + Vy(x.display.view[S]); + } + function BA(x) { + B1(x), x.display.cachedCharWidth = x.display.cachedTextHeight = x.display.cachedPaddingH = null, x.options.lineWrapping || (x.display.maxLineChanged = !0), x.display.lineNumChars = null; + } + function qy() { + return L && J ? -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft)) : window.pageXOffset || (document.documentElement || document.body).scrollLeft; + } + function Yy() { + return L && J ? -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop)) : window.pageYOffset || (document.documentElement || document.body).scrollTop; + } + function h0(x) { + var S = 0; + if (x.widgets) + for (var G = 0; G < x.widgets.length; ++G) + x.widgets[G].above && (S += xf(x.widgets[G])); + return S; + } + function Jy(x, S, G, j, V) { + if (!V) { + var we = h0(S); + G.top += we, G.bottom += we; + } + if (j == "line") + return G; + j || (j = "local"); + var $e = uf(S); + if (j == "local" ? $e += Nf(x.display) : $e -= x.display.viewOffset, j == "page" || j == "window") { + var ze = x.display.lineSpace.getBoundingClientRect(); + $e += ze.top + (j == "window" ? 0 : Yy()); + var nt = ze.left + (j == "window" ? 0 : qy()); + G.left += nt, G.right += nt; + } + return G.top += $e, G.bottom += $e, G; + } + function Ok(x, S, G) { + if (G == "div") + return S; + var j = S.left, V = S.top; + if (G == "page") + j -= qy(), V -= Yy(); + else if (G == "local" || !G) { + var we = x.display.sizer.getBoundingClientRect(); + j += we.left, V += we.top; + } + var $e = x.display.lineSpace.getBoundingClientRect(); + return { left: j - $e.left, top: V - $e.top }; + } + function I3(x, S, G, j, V) { + return j || (j = Ki(x.doc, S.line)), Jy(x, j, Wy(x, j, S.ch, V), G); + } + function Wh(x, S, G, j, V, we) { + function $e(mr, si) { + var Mi = Od(x, V, mr, si ? "right" : "left", we); + return si ? Mi.left = Mi.right : Mi.right = Mi.left, Jy(x, j, Mi, G); + } + j = j || Ki(x.doc, S.line), V || (V = aA(x, j)); + var ze = Jo(j, x.doc.direction), nt = S.ch, at = S.sticky; + if (nt >= j.text.length ? (nt = j.text.length, at = "before") : nt <= 0 && (nt = 0, at = "after"), !ze) + return $e(at == "before" ? nt - 1 : nt, at == "before"); + function Yt(mr, si, Mi) { + return $e(Mi ? mr - 1 : mr, ze[si].level == 1 != Mi); + } + var Vt = la(ze, nt, at), Nn = Cr, Vn = Yt(nt, Vt, at == "before"); + return Nn != null && (Vn.other = Yt(nt, Nn, at != "before")), Vn; + } + function Mg(x, S) { + var G = 0; + S = Ro(x.doc, S), x.options.lineWrapping || (G = Nd(x.display) * S.ch); + var j = Ki(x.doc, S.line), V = uf(j) + Nf(x.display); + return { left: G, right: G, top: V, bottom: V + j.height }; + } + function M3(x, S, G, j, V) { + var we = pr(x, S, G); + return we.xRel = V, j && (we.outside = j), we; + } + function SA(x, S, G) { + var j = x.doc; + if ((G += x.display.viewOffset) < 0) + return M3(j.first, 0, null, -1, -1); + var V = wh(j, G), we = j.first + j.size - 1; + if (V > we) + return M3(j.first + j.size - 1, Ki(j, we).text.length, null, 1, 1); + S < 0 && (S = 0); + for (var $e = Ki(j, V); ; ) { + var ze = Mv(x, $e, V, S, G), nt = Fd($e, ze.ch + (ze.xRel > 0 || ze.outside > 0 ? 1 : 0)); + if (!nt) + return ze; + var at = nt.find(1); + if (at.line == V) + return at; + $e = Ki(j, V = at.line); + } + } + function Fg(x, S, G, j) { + j -= h0(S); + var V = S.text.length, we = An(function($e) { + return Od(x, G, $e - 1).bottom <= j; + }, V, 0); + return { begin: we, end: V = An(function($e) { + return Od(x, G, $e).top > j; + }, we, V) }; + } + function Am(x, S, G, j) { + return G || (G = aA(x, S)), Fg(x, S, G, Jy(x, S, Od(x, G, j), "line").top); + } + function Dd(x, S, G, j) { + return !(x.bottom <= G) && (x.top > G || (j ? x.left : x.right) > S); + } + function Mv(x, S, G, j, V) { + V -= uf(S); + var we = aA(x, S), $e = h0(S), ze = 0, nt = S.text.length, at = !0, Yt = Jo(S, x.doc.direction); + if (Yt) { + var Vt = (x.options.lineWrapping ? dC : Zy)(x, S, G, we, Yt, j, V); + ze = (at = Vt.level != 1) ? Vt.from : Vt.to - 1, nt = at ? Vt.to : Vt.from - 1; + } + var Nn, Vn, mr = null, si = null, Mi = An(function(Qo) { + var $a = Od(x, we, Qo); + return $a.top += $e, $a.bottom += $e, !!Dd($a, j, V, !1) && ($a.top <= V && $a.left <= j && (mr = Qo, si = $a), !0); + }, ze, nt), _r = !1; + if (si) { + var ao = j - si.left < si.right - j, ea = ao == at; + Mi = mr + (ea ? 0 : 1), Vn = ea ? "after" : "before", Nn = ao ? si.left : si.right; + } else { + at || Mi != nt && Mi != ze || Mi++, Vn = Mi == 0 ? "after" : Mi == S.text.length ? "before" : Od(x, we, Mi - (at ? 1 : 0)).bottom + $e <= V == at ? "after" : "before"; + var zi = Wh(x, pr(G, Mi, Vn), "line", S, we); + Nn = zi.left, _r = V < zi.top ? -1 : V >= zi.bottom ? 1 : 0; + } + return M3(G, Mi = Gr(S.text, Mi, 1), Vn, _r, j - Nn); + } + function Zy(x, S, G, j, V, we, $e) { + var ze = An(function(Vt) { + var Nn = V[Vt], Vn = Nn.level != 1; + return Dd(Wh(x, pr(G, Vn ? Nn.to : Nn.from, Vn ? "before" : "after"), "line", S, j), we, $e, !0); + }, 0, V.length - 1), nt = V[ze]; + if (ze > 0) { + var at = nt.level != 1, Yt = Wh(x, pr(G, at ? nt.from : nt.to, at ? "after" : "before"), "line", S, j); + Dd(Yt, we, $e, !0) && Yt.top > $e && (nt = V[ze - 1]); + } + return nt; + } + function dC(x, S, G, j, V, we, $e) { + var ze = Fg(x, S, j, $e), nt = ze.begin, at = ze.end; + /\s/.test(S.text.charAt(at - 1)) && at--; + for (var Yt = null, Vt = null, Nn = 0; Nn < V.length; Nn++) { + var Vn = V[Nn]; + if (!(Vn.from >= at || Vn.to <= nt)) { + var mr = Od(x, j, Vn.level != 1 ? Math.min(at, Vn.to) - 1 : Math.max(nt, Vn.from)).right, si = mr < we ? we - mr + 1e9 : mr - we; + (!Yt || Vt > si) && (Yt = Vn, Vt = si); + } + } + return Yt || (Yt = V[V.length - 1]), Yt.from < nt && (Yt = { from: nt, to: Yt.to, level: Yt.level }), Yt.to > at && (Yt = { from: Yt.from, to: at, level: Yt.level }), Yt; + } + function T2(x) { + if (x.cachedTextHeight != null) + return x.cachedTextHeight; + if (Ks == null) { + Ks = Me("pre", null, "CodeMirror-line-like"); + for (var S = 0; S < 49; ++S) + Ks.appendChild(document.createTextNode("x")), Ks.appendChild(Me("br")); + Ks.appendChild(document.createTextNode("x")); + } + te(x.measure, Ks); + var G = Ks.offsetHeight / 50; + return G > 3 && (x.cachedTextHeight = G), Be(x.measure), G || 1; + } + function Nd(x) { + if (x.cachedCharWidth != null) + return x.cachedCharWidth; + var S = Me("span", "xxxxxxxxxx"), G = Me("pre", [S], "CodeMirror-line-like"); + te(x.measure, G); + var j = S.getBoundingClientRect(), V = (j.right - j.left) / 10; + return V > 2 && (x.cachedCharWidth = V), V || 10; + } + function Lp(x) { + for (var S = x.display, G = {}, j = {}, V = S.gutters.clientLeft, we = S.gutters.firstChild, $e = 0; we; we = we.nextSibling, ++$e) { + var ze = x.display.gutterSpecs[$e].className; + G[ze] = we.offsetLeft + we.clientLeft + V, j[ze] = we.clientWidth; + } + return { fixedPos: B2(S), gutterTotalWidth: S.gutters.offsetWidth, gutterLeft: G, gutterWidth: j, wrapperWidth: S.wrapper.clientWidth }; + } + function B2(x) { + return x.scroller.getBoundingClientRect().left - x.sizer.getBoundingClientRect().left; + } + function AC(x) { + var S = T2(x.display), G = x.options.lineWrapping, j = G && Math.max(5, x.display.scroller.clientWidth / Nd(x.display) - 3); + return function(V) { + if (ku(x.doc, V)) + return 0; + var we = 0; + if (V.widgets) + for (var $e = 0; $e < V.widgets.length; $e++) + V.widgets[$e].height && (we += V.widgets[$e].height); + return G ? we + (Math.ceil(V.text.length / j) || 1) * S : we + S; + }; + } + function Ab(x) { + var S = x.doc, G = AC(x); + S.iter(function(j) { + var V = G(j); + V != j.height && sf(j, V); + }); + } + function S2(x, S, G, j) { + var V = x.display; + if (!G && xa(S).getAttribute("cm-not-content") == "true") + return null; + var we, $e, ze = V.lineSpace.getBoundingClientRect(); + try { + we = S.clientX - ze.left, $e = S.clientY - ze.top; + } catch { + return null; + } + var nt, at = SA(x, we, $e); + if (j && at.xRel > 0 && (nt = Ki(x.doc, at.line).text).length == at.ch) { + var Yt = kt(nt, nt.length, x.options.tabSize) - nt.length; + at = pr(at.line, Math.max(0, Math.round((we - Fu(x.display).left) / Nd(x.display)) - Yt)); + } + return at; + } + function f0(x, S) { + if (S >= x.display.viewTo || (S -= x.display.viewFrom) < 0) + return null; + for (var G = x.display.view, j = 0; j < G.length; j++) + if ((S -= G[j].size) < 0) + return j; + } + function pd(x, S, G, j) { + S == null && (S = x.doc.first), G == null && (G = x.doc.first + x.doc.size), j || (j = 0); + var V = x.display; + if (j && G < V.viewTo && (V.updateLineNumbers == null || V.updateLineNumbers > S) && (V.updateLineNumbers = S), x.curOp.viewChanged = !0, S >= V.viewTo) + cl && Ca(x.doc, S) < V.viewTo && LA(x); + else if (G <= V.viewFrom) + cl && vl(x.doc, G + j) > V.viewFrom ? LA(x) : (V.viewFrom += j, V.viewTo += j); + else if (S <= V.viewFrom && G >= V.viewTo) + LA(x); + else if (S <= V.viewFrom) { + var we = z0(x, G, G + j, 1); + we ? (V.view = V.view.slice(we.index), V.viewFrom = we.lineN, V.viewTo += j) : LA(x); + } else if (G >= V.viewTo) { + var $e = z0(x, S, S, -1); + $e ? (V.view = V.view.slice(0, $e.index), V.viewTo = $e.lineN) : LA(x); + } else { + var ze = z0(x, S, S, -1), nt = z0(x, G, G + j, 1); + ze && nt ? (V.view = V.view.slice(0, ze.index).concat(Sv(x, ze.lineN, nt.lineN)).concat(V.view.slice(nt.index)), V.viewTo += j) : LA(x); + } + var at = V.externalMeasured; + at && (G < at.lineN ? at.lineN += j : S < at.lineN + at.size && (V.externalMeasured = null)); + } + function L2(x, S, G) { + x.curOp.viewChanged = !0; + var j = x.display, V = x.display.externalMeasured; + if (V && S >= V.lineN && S < V.lineN + V.size && (j.externalMeasured = null), !(S < j.viewFrom || S >= j.viewTo)) { + var we = j.view[f0(x, S)]; + if (we.node != null) { + var $e = we.changes || (we.changes = []); + jt($e, G) == -1 && $e.push(G); + } + } + } + function LA(x) { + x.display.viewFrom = x.display.viewTo = x.doc.first, x.display.view = [], x.display.viewOffset = 0; + } + function z0(x, S, G, j) { + var V, we = f0(x, S), $e = x.display.view; + if (!cl || G == x.doc.first + x.doc.size) + return { index: we, lineN: G }; + for (var ze = x.display.viewFrom, nt = 0; nt < we; nt++) + ze += $e[nt].size; + if (ze != S) { + if (j > 0) { + if (we == $e.length - 1) + return null; + V = ze + $e[we].size - S, we++; + } else + V = ze - S; + S += V, G += V; + } + for (; Ca(x.doc, G) != G; ) { + if (we == (j < 0 ? 0 : $e.length - 1)) + return null; + G += j * $e[we - (j < 0 ? 1 : 0)].size, we += j; + } + return { index: we, lineN: G }; + } + function F3(x, S, G) { + var j = x.display; + j.view.length == 0 || S >= j.viewTo || G <= j.viewFrom ? (j.view = Sv(x, S, G), j.viewFrom = S) : (j.viewFrom > S ? j.view = Sv(x, S, j.viewFrom).concat(j.view) : j.viewFrom < S && (j.view = j.view.slice(f0(x, S))), j.viewFrom = S, j.viewTo < G ? j.view = j.view.concat(Sv(x, j.viewTo, G)) : j.viewTo > G && (j.view = j.view.slice(0, f0(x, G)))), j.viewTo = G; + } + function Dk(x) { + for (var S = x.display.view, G = 0, j = 0; j < S.length; j++) { + var V = S[j]; + V.hidden || V.node && !V.changes || ++G; + } + return G; + } + function I2(x) { + x.display.input.showSelection(x.display.input.prepareSelection()); + } + function O3(x, S) { + S === void 0 && (S = !0); + for (var G = x.doc, j = {}, V = j.cursors = document.createDocumentFragment(), we = j.selection = document.createDocumentFragment(), $e = 0; $e < G.sel.ranges.length; $e++) + if (S || $e != G.sel.primIndex) { + var ze = G.sel.ranges[$e]; + if (!(ze.from().line >= x.display.viewTo || ze.to().line < x.display.viewFrom)) { + var nt = ze.empty(); + (nt || x.options.showCursorWhenSelecting) && C5(x, ze.head, V), nt || Fv(x, ze, we); + } + } + return j; + } + function C5(x, S, G) { + var j = Wh(x, S, "div", null, null, !x.options.singleCursorHeightPerLine), V = G.appendChild(Me("div", " ", "CodeMirror-cursor")); + if (V.style.left = j.left + "px", V.style.top = j.top + "px", V.style.height = Math.max(0, j.bottom - j.top) * x.options.cursorHeight + "px", j.other) { + var we = G.appendChild(Me("div", " ", "CodeMirror-cursor CodeMirror-secondarycursor")); + we.style.display = "", we.style.left = j.other.left + "px", we.style.top = j.other.top + "px", we.style.height = 0.85 * (j.other.bottom - j.other.top) + "px"; + } + } + function gm(x, S) { + return x.top - S.top || x.left - S.left; + } + function Fv(x, S, G) { + var j = x.display, V = x.doc, we = document.createDocumentFragment(), $e = Fu(x.display), ze = $e.left, nt = Math.max(j.sizerWidth, _2(x) - j.sizer.offsetLeft) - $e.right, at = V.direction == "ltr"; + function Yt(ea, zi, Qo, $a) { + zi < 0 && (zi = 0), zi = Math.round(zi), $a = Math.round($a), we.appendChild(Me("div", null, "CodeMirror-selected", "position: absolute; left: " + ea + `px; + top: ` + zi + "px; width: " + (Qo ?? nt - ea) + `px; + height: ` + ($a - zi) + "px")); + } + function Vt(ea, zi, Qo) { + var $a, Ll, hu = Ki(V, ea), I1 = hu.text.length; + function ac(qh, Rd) { + return I3(x, pr(ea, qh), "div", hu, Rd); + } + function _f(qh, Rd, oA) { + var Wu = Am(x, hu, null, qh), Yh = Rd == "ltr" == (oA == "after") ? "left" : "right"; + return ac(oA == "after" ? Wu.begin : Wu.end - (/\s/.test(hu.text.charAt(Wu.end - 1)) ? 2 : 1), Yh)[Yh]; + } + var J1 = Jo(hu, V.direction); + return _i(J1, zi || 0, Qo ?? I1, function(qh, Rd, oA, Wu) { + var Yh = oA == "ltr", t1 = ac(qh, Yh ? "left" : "right"), sA = ac(Rd - 1, Yh ? "right" : "left"), Pp = zi == null && qh == 0, g0 = Qo == null && Rd == I1, Uo = Wu == 0, n1 = !J1 || Wu == J1.length - 1; + if (sA.top - t1.top <= 3) { + var V2 = (at ? g0 : Pp) && n1, p0 = (at ? Pp : g0) && Uo ? ze : (Yh ? t1 : sA).left, Rp = V2 ? nt : (Yh ? sA : t1).right; + Yt(p0, t1.top, Rp - p0, t1.bottom); + } else { + var jg, Dh, Lb, Kg; + Yh ? (jg = at && Pp && Uo ? ze : t1.left, Dh = at ? nt : _f(qh, oA, "before"), Lb = at ? ze : _f(Rd, oA, "after"), Kg = at && g0 && n1 ? nt : sA.right) : (jg = at ? _f(qh, oA, "before") : ze, Dh = !at && Pp && Uo ? nt : t1.right, Lb = !at && g0 && n1 ? ze : sA.left, Kg = at ? _f(Rd, oA, "after") : nt), Yt(jg, t1.top, Dh - jg, t1.bottom), t1.bottom < sA.top && Yt(ze, t1.bottom, null, sA.top), Yt(Lb, sA.top, Kg - Lb, sA.bottom); + } + (!$a || gm(t1, $a) < 0) && ($a = t1), gm(sA, $a) < 0 && ($a = sA), (!Ll || gm(t1, Ll) < 0) && (Ll = t1), gm(sA, Ll) < 0 && (Ll = sA); + }), { start: $a, end: Ll }; + } + var Nn = S.from(), Vn = S.to(); + if (Nn.line == Vn.line) + Vt(Nn.line, Nn.ch, Vn.ch); + else { + var mr = Ki(V, Nn.line), si = Ki(V, Vn.line), Mi = iA(mr) == iA(si), _r = Vt(Nn.line, Nn.ch, Mi ? mr.text.length + 1 : null).end, ao = Vt(Vn.line, Mi ? 0 : null, Vn.ch).start; + Mi && (_r.top < ao.top - 2 ? (Yt(_r.right, _r.top, null, _r.bottom), Yt(ze, ao.top, ao.left, ao.bottom)) : Yt(_r.right, _r.top, ao.left - _r.right, _r.bottom)), _r.bottom < ao.top && Yt(ze, _r.bottom, null, ao.top); + } + G.appendChild(we); + } + function gb(x) { + if (x.state.focused) { + var S = x.display; + clearInterval(S.blinker); + var G = !0; + S.cursorDiv.style.visibility = "", x.options.cursorBlinkRate > 0 ? S.blinker = setInterval(function() { + x.hasFocus() || pm(x), S.cursorDiv.style.visibility = (G = !G) ? "" : "hidden"; + }, x.options.cursorBlinkRate) : x.options.cursorBlinkRate < 0 && (S.cursorDiv.style.visibility = "hidden"); + } + } + function pb(x) { + x.state.focused || (x.display.input.focus(), ew(x)); + } + function Nk(x) { + x.state.delayingBlurEvent = !0, setTimeout(function() { + x.state.delayingBlurEvent && (x.state.delayingBlurEvent = !1, pm(x)); + }, 100); + } + function ew(x, S) { + x.state.delayingBlurEvent && (x.state.delayingBlurEvent = !1), x.options.readOnly != "nocursor" && (x.state.focused || (Yr(x, "focus", x, S), x.state.focused = !0, ot(x.display.wrapper, "CodeMirror-focused"), x.curOp || x.display.selForContextMenu == x.doc.sel || (x.display.input.reset(), _ && setTimeout(function() { + return x.display.input.reset(!0); + }, 20)), x.display.input.receivedFocus()), gb(x)); + } + function pm(x, S) { + x.state.delayingBlurEvent || (x.state.focused && (Yr(x, "blur", x, S), x.state.focused = !1, ie(x.display.wrapper, "CodeMirror-focused")), clearInterval(x.display.blinker), setTimeout(function() { + x.state.focused || (x.display.shift = !1); + }, 150)); + } + function M2(x) { + for (var S = x.display, G = S.lineDiv.offsetTop, j = 0; j < S.view.length; j++) { + var V = S.view[j], we = x.options.lineWrapping, $e = void 0, ze = 0; + if (!V.hidden) { + if (v && k < 8) { + var nt = V.node.offsetTop + V.node.offsetHeight; + $e = nt - G, G = nt; + } else { + var at = V.node.getBoundingClientRect(); + $e = at.bottom - at.top, !we && V.text.firstChild && (ze = V.text.firstChild.getBoundingClientRect().right - at.left - 1); + } + var Yt = V.line.height - $e; + if ((Yt > 5e-3 || Yt < -5e-3) && (sf(V.line, $e), tw(V.line), V.rest)) + for (var Vt = 0; Vt < V.rest.length; Vt++) + tw(V.rest[Vt]); + if (ze > x.display.sizerWidth) { + var Nn = Math.ceil(ze / Nd(x.display)); + Nn > x.display.maxLineLength && (x.display.maxLineLength = Nn, x.display.maxLine = V.line, x.display.maxLineChanged = !0); + } + } + } + } + function tw(x) { + if (x.widgets) + for (var S = 0; S < x.widgets.length; ++S) { + var G = x.widgets[S], j = G.node.parentNode; + j && (G.height = j.offsetHeight); + } + } + function nw(x, S, G) { + var j = G && G.top != null ? Math.max(0, G.top) : x.scroller.scrollTop; + j = Math.floor(j - Nf(x)); + var V = G && G.bottom != null ? G.bottom : j + x.wrapper.clientHeight, we = wh(S, j), $e = wh(S, V); + if (G && G.ensure) { + var ze = G.ensure.from.line, nt = G.ensure.to.line; + ze < we ? (we = ze, $e = wh(S, uf(Ki(S, ze)) + x.wrapper.clientHeight)) : Math.min(nt, S.lastLine()) >= $e && (we = wh(S, uf(Ki(S, nt)) - x.wrapper.clientHeight), $e = nt); + } + return { from: we, to: Math.max($e, we + 1) }; + } + function F2(x, S) { + if (!ni(x, "scrollCursorIntoView")) { + var G = x.display, j = G.sizer.getBoundingClientRect(), V = null; + if (S.top + j.top < 0 ? V = !0 : S.bottom + j.top > (window.innerHeight || document.documentElement.clientHeight) && (V = !1), V != null && !Z) { + var we = Me("div", "​", null, `position: absolute; + top: ` + (S.top - G.viewOffset - Nf(x.display)) + `px; + height: ` + (S.bottom - S.top + Sp(x) + G.barHeight) + `px; + left: ` + S.left + "px; width: " + Math.max(2, S.right - S.left) + "px;"); + x.display.lineSpace.appendChild(we), we.scrollIntoView(V), x.display.lineSpace.removeChild(we); + } + } + } + function _5(x, S, G, j) { + var V; + j == null && (j = 0), x.options.lineWrapping || S != G || (G = (S = S.ch ? pr(S.line, S.sticky == "before" ? S.ch - 1 : S.ch, "after") : S).sticky == "before" ? pr(S.line, S.ch + 1, "before") : S); + for (var we = 0; we < 5; we++) { + var $e = !1, ze = Wh(x, S), nt = G && G != S ? Wh(x, G) : ze, at = Ov(x, V = { left: Math.min(ze.left, nt.left), top: Math.min(ze.top, nt.top) - j, right: Math.max(ze.left, nt.left), bottom: Math.max(ze.bottom, nt.bottom) + j }), Yt = x.doc.scrollTop, Vt = x.doc.scrollLeft; + if (at.scrollTop != null && (Dv(x, at.scrollTop), Math.abs(x.doc.scrollTop - Yt) > 1 && ($e = !0)), at.scrollLeft != null && (Nv(x, at.scrollLeft), Math.abs(x.doc.scrollLeft - Vt) > 1 && ($e = !0)), !$e) + break; + } + return V; + } + function gC(x, S) { + var G = Ov(x, S); + G.scrollTop != null && Dv(x, G.scrollTop), G.scrollLeft != null && Nv(x, G.scrollLeft); + } + function Ov(x, S) { + var G = x.display, j = T2(x.display); + S.top < 0 && (S.top = 0); + var V = x.curOp && x.curOp.scrollTop != null ? x.curOp.scrollTop : G.scroller.scrollTop, we = S3(x), $e = {}; + S.bottom - S.top > we && (S.bottom = S.top + we); + var ze = x.doc.height + Lv(G), nt = S.top < j, at = S.bottom > ze - j; + if (S.top < V) + $e.scrollTop = nt ? 0 : S.top; + else if (S.bottom > V + we) { + var Yt = Math.min(S.top, (at ? ze : S.bottom) - we); + Yt != V && ($e.scrollTop = Yt); + } + var Vt = x.options.fixedGutter ? 0 : G.gutters.offsetWidth, Nn = x.curOp && x.curOp.scrollLeft != null ? x.curOp.scrollLeft : G.scroller.scrollLeft - Vt, Vn = _2(x) - G.gutters.offsetWidth, mr = S.right - S.left > Vn; + return mr && (S.right = S.left + Vn), S.left < 10 ? $e.scrollLeft = 0 : S.left < Nn ? $e.scrollLeft = Math.max(0, S.left + Vt - (mr ? 0 : 10)) : S.right > Vn + Nn - 3 && ($e.scrollLeft = S.right + (mr ? 0 : 10) - Vn), $e; + } + function E5(x, S) { + S != null && (O2(x), x.curOp.scrollTop = (x.curOp.scrollTop == null ? x.doc.scrollTop : x.curOp.scrollTop) + S); + } + function rw(x) { + O2(x); + var S = x.getCursor(); + x.curOp.scrollToPos = { from: S, to: S, margin: x.options.cursorScrollMargin }; + } + function D3(x, S, G) { + S == null && G == null || O2(x), S != null && (x.curOp.scrollLeft = S), G != null && (x.curOp.scrollTop = G); + } + function pC(x, S) { + O2(x), x.curOp.scrollToPos = S; + } + function O2(x) { + var S = x.curOp.scrollToPos; + S && (x.curOp.scrollToPos = null, Pk(x, Mg(x, S.from), Mg(x, S.to), S.margin)); + } + function Pk(x, S, G, j) { + var V = Ov(x, { left: Math.min(S.left, G.left), top: Math.min(S.top, G.top) - j, right: Math.max(S.right, G.right), bottom: Math.max(S.bottom, G.bottom) + j }); + D3(x, V.scrollLeft, V.scrollTop); + } + function Dv(x, S) { + Math.abs(x.doc.scrollTop - S) < 2 || (f || aw(x, { top: S }), mC(x, S, !0), f && aw(x), Ip(x, 100)); + } + function mC(x, S, G) { + S = Math.max(0, Math.min(x.display.scroller.scrollHeight - x.display.scroller.clientHeight, S)), (x.display.scroller.scrollTop != S || G) && (x.doc.scrollTop = S, x.display.scrollbars.setScrollTop(S), x.display.scroller.scrollTop != S && (x.display.scroller.scrollTop = S)); + } + function Nv(x, S, G, j) { + S = Math.max(0, Math.min(S, x.display.scroller.scrollWidth - x.display.scroller.clientWidth)), (G ? S == x.doc.scrollLeft : Math.abs(x.doc.scrollLeft - S) < 2) && !j || (x.doc.scrollLeft = S, $3(x), x.display.scroller.scrollLeft != S && (x.display.scroller.scrollLeft = S), x.display.scrollbars.setScrollLeft(S)); + } + function N3(x) { + var S = x.display, G = S.gutters.offsetWidth, j = Math.round(x.doc.height + Lv(x.display)); + return { clientHeight: S.scroller.clientHeight, viewHeight: S.wrapper.clientHeight, scrollWidth: S.scroller.scrollWidth, clientWidth: S.scroller.clientWidth, viewWidth: S.wrapper.clientWidth, barLeft: x.options.fixedGutter ? G : 0, docHeight: j, scrollHeight: j + Sp(x) + S.barHeight, nativeBarWidth: S.nativeBarWidth, gutterWidth: G }; + } + var d0 = function(x, S, G) { + this.cm = G; + var j = this.vert = Me("div", [Me("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), V = this.horiz = Me("div", [Me("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar"); + j.tabIndex = V.tabIndex = -1, x(j), x(V), ji(j, "scroll", function() { + j.clientHeight && S(j.scrollTop, "vertical"); + }), ji(V, "scroll", function() { + V.clientWidth && S(V.scrollLeft, "horizontal"); + }), this.checkedZeroWidth = !1, v && k < 8 && (this.horiz.style.minHeight = this.vert.style.minWidth = "18px"); + }; + d0.prototype.update = function(x) { + var S = x.scrollWidth > x.clientWidth + 1, G = x.scrollHeight > x.clientHeight + 1, j = x.nativeBarWidth; + if (G) { + this.vert.style.display = "block", this.vert.style.bottom = S ? j + "px" : "0"; + var V = x.viewHeight - (S ? j : 0); + this.vert.firstChild.style.height = Math.max(0, x.scrollHeight - x.clientHeight + V) + "px"; + } else + this.vert.style.display = "", this.vert.firstChild.style.height = "0"; + if (S) { + this.horiz.style.display = "block", this.horiz.style.right = G ? j + "px" : "0", this.horiz.style.left = x.barLeft + "px"; + var we = x.viewWidth - x.barLeft - (G ? j : 0); + this.horiz.firstChild.style.width = Math.max(0, x.scrollWidth - x.clientWidth + we) + "px"; + } else + this.horiz.style.display = "", this.horiz.firstChild.style.width = "0"; + return !this.checkedZeroWidth && x.clientHeight > 0 && (j == 0 && this.zeroWidthHack(), this.checkedZeroWidth = !0), { right: G ? j : 0, bottom: S ? j : 0 }; + }, d0.prototype.setScrollLeft = function(x) { + this.horiz.scrollLeft != x && (this.horiz.scrollLeft = x), this.disableHoriz && this.enableZeroWidthBar(this.horiz, this.disableHoriz, "horiz"); + }, d0.prototype.setScrollTop = function(x) { + this.vert.scrollTop != x && (this.vert.scrollTop = x), this.disableVert && this.enableZeroWidthBar(this.vert, this.disableVert, "vert"); + }, d0.prototype.zeroWidthHack = function() { + var x = Y && !q ? "12px" : "18px"; + this.horiz.style.height = this.vert.style.width = x, this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none", this.disableHoriz = new Wt(), this.disableVert = new Wt(); + }, d0.prototype.enableZeroWidthBar = function(x, S, G) { + function j() { + var V = x.getBoundingClientRect(); + (G == "vert" ? document.elementFromPoint(V.right - 1, (V.top + V.bottom) / 2) : document.elementFromPoint((V.right + V.left) / 2, V.bottom - 1)) != x ? x.style.pointerEvents = "none" : S.set(1e3, j); + } + x.style.pointerEvents = "auto", S.set(1e3, j); + }, d0.prototype.clear = function() { + var x = this.horiz.parentNode; + x.removeChild(this.horiz), x.removeChild(this.vert); + }; + var Pv = function() { + }; + function mm(x, S) { + S || (S = N3(x)); + var G = x.display.barWidth, j = x.display.barHeight; + bC(x, S); + for (var V = 0; V < 4 && G != x.display.barWidth || j != x.display.barHeight; V++) + G != x.display.barWidth && x.options.lineWrapping && M2(x), bC(x, N3(x)), G = x.display.barWidth, j = x.display.barHeight; + } + function bC(x, S) { + var G = x.display, j = G.scrollbars.update(S); + G.sizer.style.paddingRight = (G.barWidth = j.right) + "px", G.sizer.style.paddingBottom = (G.barHeight = j.bottom) + "px", G.heightForcer.style.borderBottom = j.bottom + "px solid transparent", j.right && j.bottom ? (G.scrollbarFiller.style.display = "block", G.scrollbarFiller.style.height = j.bottom + "px", G.scrollbarFiller.style.width = j.right + "px") : G.scrollbarFiller.style.display = "", j.bottom && x.options.coverGutterNextToScrollbar && x.options.fixedGutter ? (G.gutterFiller.style.display = "block", G.gutterFiller.style.height = j.bottom + "px", G.gutterFiller.style.width = S.gutterWidth + "px") : G.gutterFiller.style.display = ""; + } + Pv.prototype.update = function() { + return { bottom: 0, right: 0 }; + }, Pv.prototype.setScrollLeft = function() { + }, Pv.prototype.setScrollTop = function() { + }, Pv.prototype.clear = function() { + }; + var bm = { native: d0, null: Pv }; + function D2(x) { + x.display.scrollbars && (x.display.scrollbars.clear(), x.display.scrollbars.addClass && ie(x.display.wrapper, x.display.scrollbars.addClass)), x.display.scrollbars = new bm[x.options.scrollbarStyle](function(S) { + x.display.wrapper.insertBefore(S, x.display.scrollbarFiller), ji(S, "mousedown", function() { + x.state.focused && setTimeout(function() { + return x.display.input.focus(); + }, 0); + }), S.setAttribute("cm-not-content", "true"); + }, function(S, G) { + G == "horizontal" ? Nv(x, S) : Dv(x, S); + }, x), x.display.scrollbars.addClass && ot(x.display.wrapper, x.display.scrollbars.addClass); + } + var e_ = 0; + function mb(x) { + x.curOp = { cm: x, viewChanged: !1, startHeight: x.doc.height, forceUpdate: !1, updateInput: 0, typing: !1, changeObjs: null, cursorActivityHandlers: null, cursorActivityCalled: 0, selectionChanged: !1, updateMaxLine: !1, scrollLeft: null, scrollTop: null, scrollToPos: null, focus: !1, id: ++e_ }, Xy(x.curOp); + } + function bb(x) { + var S = x.curOp; + S && j0(S, function(G) { + for (var j = 0; j < G.ops.length; j++) + G.ops[j].cm.curOp = null; + vC(G); + }); + } + function vC(x) { + for (var S = x.ops, G = 0; G < S.length; G++) + yC(S[G]); + for (var j = 0; j < S.length; j++) + P3(S[j]); + for (var V = 0; V < S.length; V++) + R3(S[V]); + for (var we = 0; we < S.length; we++) + iw(S[we]); + for (var $e = 0; $e < S.length; $e++) + T5(S[$e]); + } + function yC(x) { + var S = x.cm, G = S.display; + B5(S), x.updateMaxLine && s0(S), x.mustUpdate = x.viewChanged || x.forceUpdate || x.scrollTop != null || x.scrollToPos && (x.scrollToPos.from.line < G.viewFrom || x.scrollToPos.to.line >= G.viewTo) || G.maxLineChanged && S.options.lineWrapping, x.update = x.mustUpdate && new N2(S, x.mustUpdate && { top: x.scrollTop, ensure: x.scrollToPos }, x.forceUpdate); + } + function P3(x) { + x.updatedDisplay = x.mustUpdate && Q3(x.cm, x.update); + } + function R3(x) { + var S = x.cm, G = S.display; + x.updatedDisplay && M2(S), x.barMeasure = N3(S), G.maxLineChanged && !S.options.lineWrapping && (x.adjustWidthTo = Wy(S, G.maxLine, G.maxLine.text.length).left + 3, S.display.sizerWidth = x.adjustWidthTo, x.barMeasure.scrollWidth = Math.max(G.scroller.clientWidth, G.sizer.offsetLeft + x.adjustWidthTo + Sp(S) + S.display.barWidth), x.maxScrollLeft = Math.max(0, G.sizer.offsetLeft + x.adjustWidthTo - _2(S))), (x.updatedDisplay || x.selectionChanged) && (x.preparedSelection = G.input.prepareSelection()); + } + function iw(x) { + var S = x.cm; + x.adjustWidthTo != null && (S.display.sizer.style.minWidth = x.adjustWidthTo + "px", x.maxScrollLeft < S.doc.scrollLeft && Nv(S, Math.min(S.display.scroller.scrollLeft, x.maxScrollLeft), !0), S.display.maxLineChanged = !1); + var G = x.focus && x.focus == Je(); + x.preparedSelection && S.display.input.showSelection(x.preparedSelection, G), (x.updatedDisplay || x.startHeight != S.doc.height) && mm(S, x.barMeasure), x.updatedDisplay && P2(S, x.barMeasure), x.selectionChanged && gb(S), S.state.focused && x.updateInput && S.display.input.reset(x.typing), G && pb(x.cm); + } + function T5(x) { + var S = x.cm, G = S.display, j = S.doc; + x.updatedDisplay && Qk(S, x.update), G.wheelStartX == null || x.scrollTop == null && x.scrollLeft == null && !x.scrollToPos || (G.wheelStartX = G.wheelStartY = null), x.scrollTop != null && mC(S, x.scrollTop, x.forceScroll), x.scrollLeft != null && Nv(S, x.scrollLeft, !0, !0), x.scrollToPos && F2(S, _5(S, Ro(j, x.scrollToPos.from), Ro(j, x.scrollToPos.to), x.scrollToPos.margin)); + var V = x.maybeHiddenMarkers, we = x.maybeUnhiddenMarkers; + if (V) + for (var $e = 0; $e < V.length; ++$e) + V[$e].lines.length || Yr(V[$e], "hide"); + if (we) + for (var ze = 0; ze < we.length; ++ze) + we[ze].lines.length && Yr(we[ze], "unhide"); + G.wrapper.offsetHeight && (j.scrollTop = S.display.scroller.scrollTop), x.changeObjs && Yr(S, "changes", S, x.changeObjs), x.update && x.update.finish(); + } + function IA(x, S) { + if (x.curOp) + return S(); + mb(x); + try { + return S(); + } finally { + bb(x); + } + } + function q1(x, S) { + return function() { + if (x.curOp) + return S.apply(x, arguments); + mb(x); + try { + return S.apply(x, arguments); + } finally { + bb(x); + } + }; + } + function Pd(x) { + return function() { + if (this.curOp) + return x.apply(this, arguments); + mb(this); + try { + return x.apply(this, arguments); + } finally { + bb(this); + } + }; + } + function e1(x) { + return function() { + var S = this.cm; + if (!S || S.curOp) + return x.apply(this, arguments); + mb(S); + try { + return x.apply(this, arguments); + } finally { + bb(S); + } + }; + } + function Ip(x, S) { + x.doc.highlightFrontier < x.display.viewTo && x.state.highlight.set(S, je(wC, x)); + } + function wC(x) { + var S = x.doc; + if (!(S.highlightFrontier >= x.display.viewTo)) { + var G = +/* @__PURE__ */ new Date() + x.options.workTime, j = ya(x, S.highlightFrontier), V = []; + S.iter(j.line, Math.min(S.first + S.size, x.display.viewTo + 500), function(we) { + if (j.line >= x.display.viewFrom) { + var $e = we.styles, ze = we.text.length > x.options.maxHighlightLength ? js(S.mode, j.state) : null, nt = ri(x, we, j, !0); + ze && (j.state = ze), we.styles = nt.styles; + var at = we.styleClasses, Yt = nt.classes; + Yt ? we.styleClasses = Yt : at && (we.styleClasses = null); + for (var Vt = !$e || $e.length != we.styles.length || at != Yt && (!at || !Yt || at.bgClass != Yt.bgClass || at.textClass != Yt.textClass), Nn = 0; !Vt && Nn < $e.length; ++Nn) + Vt = $e[Nn] != we.styles[Nn]; + Vt && V.push(j.line), we.stateAfter = j.save(), j.nextLine(); + } else + we.text.length <= x.options.maxHighlightLength && fo(x, we.text, j), we.stateAfter = j.line % 5 == 0 ? j.save() : null, j.nextLine(); + if (+/* @__PURE__ */ new Date() > G) + return Ip(x, x.options.workDelay), !0; + }), S.highlightFrontier = j.line, S.modeFrontier = Math.max(S.modeFrontier, j.line), V.length && IA(x, function() { + for (var we = 0; we < V.length; we++) + L2(x, V[we], "text"); + }); + } + } + var N2 = function(x, S, G) { + var j = x.display; + this.viewport = S, this.visible = nw(j, x.doc, S), this.editorIsHidden = !j.wrapper.offsetWidth, this.wrapperHeight = j.wrapper.clientHeight, this.wrapperWidth = j.wrapper.clientWidth, this.oldDisplayWidth = _2(x), this.force = G, this.dims = Lp(x), this.events = []; + }; + function B5(x) { + var S = x.display; + !S.scrollbarsClipped && S.scroller.offsetWidth && (S.nativeBarWidth = S.scroller.offsetWidth - S.scroller.clientWidth, S.heightForcer.style.height = Sp(x) + "px", S.sizer.style.marginBottom = -S.nativeBarWidth + "px", S.sizer.style.borderRightWidth = Sp(x) + "px", S.scrollbarsClipped = !0); + } + function Rk(x) { + if (x.hasFocus()) + return null; + var S = Je(); + if (!S || !ge(x.display.lineDiv, S)) + return null; + var G = { activeElt: S }; + if (window.getSelection) { + var j = window.getSelection(); + j.anchorNode && j.extend && ge(x.display.lineDiv, j.anchorNode) && (G.anchorNode = j.anchorNode, G.anchorOffset = j.anchorOffset, G.focusNode = j.focusNode, G.focusOffset = j.focusOffset); + } + return G; + } + function Og(x) { + if (x && x.activeElt && x.activeElt != Je() && (x.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName) && x.anchorNode && ge(document.body, x.anchorNode) && ge(document.body, x.focusNode))) { + var S = window.getSelection(), G = document.createRange(); + G.setEnd(x.anchorNode, x.anchorOffset), G.collapse(!1), S.removeAllRanges(), S.addRange(G), S.extend(x.focusNode, x.focusOffset); + } + } + function Q3(x, S) { + var G = x.display, j = x.doc; + if (S.editorIsHidden) + return LA(x), !1; + if (!S.force && S.visible.from >= G.viewFrom && S.visible.to <= G.viewTo && (G.updateLineNumbers == null || G.updateLineNumbers >= G.viewTo) && G.renderedView == G.view && Dk(x) == 0) + return !1; + Dg(x) && (LA(x), S.dims = Lp(x)); + var V = j.first + j.size, we = Math.max(S.visible.from - x.options.viewportMargin, j.first), $e = Math.min(V, S.visible.to + x.options.viewportMargin); + G.viewFrom < we && we - G.viewFrom < 20 && (we = Math.max(j.first, G.viewFrom)), G.viewTo > $e && G.viewTo - $e < 20 && ($e = Math.min(V, G.viewTo)), cl && (we = Ca(x.doc, we), $e = vl(x.doc, $e)); + var ze = we != G.viewFrom || $e != G.viewTo || G.lastWrapHeight != S.wrapperHeight || G.lastWrapWidth != S.wrapperWidth; + F3(x, we, $e), G.viewOffset = uf(Ki(x.doc, G.viewFrom)), x.display.mover.style.top = G.viewOffset + "px"; + var nt = Dk(x); + if (!ze && nt == 0 && !S.force && G.renderedView == G.view && (G.updateLineNumbers == null || G.updateLineNumbers >= G.viewTo)) + return !1; + var at = Rk(x); + return nt > 4 && (G.lineDiv.style.display = "none"), $k(x, G.updateLineNumbers, S.dims), nt > 4 && (G.lineDiv.style.display = ""), G.renderedView = G.view, Og(at), Be(G.cursorDiv), Be(G.selectionDiv), G.gutters.style.height = G.sizer.style.minHeight = 0, ze && (G.lastWrapHeight = S.wrapperHeight, G.lastWrapWidth = S.wrapperWidth, Ip(x, 400)), G.updateLineNumbers = null, !0; + } + function Qk(x, S) { + for (var G = S.viewport, j = !0; ; j = !1) { + if (j && x.options.lineWrapping && S.oldDisplayWidth != _2(x)) + j && (S.visible = nw(x.display, x.doc, G)); + else if (G && G.top != null && (G = { top: Math.min(x.doc.height + Lv(x.display) - S3(x), G.top) }), S.visible = nw(x.display, x.doc, G), S.visible.from >= x.display.viewFrom && S.visible.to <= x.display.viewTo) + break; + if (!Q3(x, S)) + break; + M2(x); + var V = N3(x); + I2(x), mm(x, V), P2(x, V), S.force = !1; + } + S.signal(x, "update", x), x.display.viewFrom == x.display.reportedViewFrom && x.display.viewTo == x.display.reportedViewTo || (S.signal(x, "viewportChange", x, x.display.viewFrom, x.display.viewTo), x.display.reportedViewFrom = x.display.viewFrom, x.display.reportedViewTo = x.display.viewTo); + } + function aw(x, S) { + var G = new N2(x, S); + if (Q3(x, G)) { + M2(x), Qk(x, G); + var j = N3(x); + I2(x), mm(x, j), P2(x, j), G.finish(); + } + } + function $k(x, S, G) { + var j = x.display, V = x.options.lineNumbers, we = j.lineDiv, $e = we.firstChild; + function ze(mr) { + var si = mr.nextSibling; + return _ && Y && x.display.currentWheelTarget == mr ? mr.style.display = "none" : mr.parentNode.removeChild(mr), si; + } + for (var nt = j.view, at = j.viewFrom, Yt = 0; Yt < nt.length; Yt++) { + var Vt = nt[Yt]; + if (!Vt.hidden) + if (Vt.node && Vt.node.parentNode == we) { + for (; $e != Vt.node; ) + $e = ze($e); + var Nn = V && S != null && S <= at && Vt.lineNumber; + Vt.changes && (jt(Vt.changes, "gutter") > -1 && (Nn = !1), x2(x, Vt, at, G)), Nn && (Be(Vt.lineNumber), Vt.lineNumber.appendChild(document.createTextNode(Ls(x.options, at)))), $e = Vt.node.nextSibling; + } else { + var Vn = Mk(x, Vt, at, G); + we.insertBefore(Vn, $e); + } + at += Vt.size; + } + for (; $e; ) + $e = ze($e); + } + function Uk(x) { + var S = x.gutters.offsetWidth; + x.sizer.style.marginLeft = S + "px"; + } + function P2(x, S) { + x.display.sizer.style.minHeight = S.docHeight + "px", x.display.heightForcer.style.top = S.docHeight + "px", x.display.gutters.style.height = S.docHeight + x.display.barHeight + Sp(x) + "px"; + } + function $3(x) { + var S = x.display, G = S.view; + if (S.alignWidgets || S.gutters.firstChild && x.options.fixedGutter) { + for (var j = B2(S) - S.scroller.scrollLeft + x.doc.scrollLeft, V = S.gutters.offsetWidth, we = j + "px", $e = 0; $e < G.length; $e++) + if (!G[$e].hidden) { + x.options.fixedGutter && (G[$e].gutter && (G[$e].gutter.style.left = we), G[$e].gutterBackground && (G[$e].gutterBackground.style.left = we)); + var ze = G[$e].alignable; + if (ze) + for (var nt = 0; nt < ze.length; nt++) + ze[nt].style.left = we; + } + x.options.fixedGutter && (S.gutters.style.left = j + V + "px"); + } + } + function Dg(x) { + if (!x.options.lineNumbers) + return !1; + var S = x.doc, G = Ls(x.options, S.first + S.size - 1), j = x.display; + if (G.length != j.lineNumChars) { + var V = j.measure.appendChild(Me("div", [Me("div", G)], "CodeMirror-linenumber CodeMirror-gutter-elt")), we = V.firstChild.offsetWidth, $e = V.offsetWidth - we; + return j.lineGutter.style.width = "", j.lineNumInnerWidth = Math.max(we, j.lineGutter.offsetWidth - $e) + 1, j.lineNumWidth = j.lineNumInnerWidth + $e, j.lineNumChars = j.lineNumInnerWidth ? G.length : -1, j.lineGutter.style.width = j.lineNumWidth + "px", Uk(x.display), !0; + } + return !1; + } + function S5(x, S) { + for (var G = [], j = !1, V = 0; V < x.length; V++) { + var we = x[V], $e = null; + if (typeof we != "string" && ($e = we.style, we = we.className), we == "CodeMirror-linenumbers") { + if (!S) + continue; + j = !0; + } + G.push({ className: we, style: $e }); + } + return S && !j && G.push({ className: "CodeMirror-linenumbers", style: null }), G; + } + function L5(x) { + var S = x.gutters, G = x.gutterSpecs; + Be(S), x.lineGutter = null; + for (var j = 0; j < G.length; ++j) { + var V = G[j], we = V.className, $e = V.style, ze = S.appendChild(Me("div", null, "CodeMirror-gutter " + we)); + $e && (ze.style.cssText = $e), we == "CodeMirror-linenumbers" && (x.lineGutter = ze, ze.style.width = (x.lineNumWidth || 1) + "px"); + } + S.style.display = G.length ? "" : "none", Uk(x); + } + function vb(x) { + L5(x.display), pd(x), $3(x); + } + function t_(x, S, G, j) { + var V = this; + this.input = G, V.scrollbarFiller = Me("div", null, "CodeMirror-scrollbar-filler"), V.scrollbarFiller.setAttribute("cm-not-content", "true"), V.gutterFiller = Me("div", null, "CodeMirror-gutter-filler"), V.gutterFiller.setAttribute("cm-not-content", "true"), V.lineDiv = ve("div", null, "CodeMirror-code"), V.selectionDiv = Me("div", null, null, "position: relative; z-index: 1"), V.cursorDiv = Me("div", null, "CodeMirror-cursors"), V.measure = Me("div", null, "CodeMirror-measure"), V.lineMeasure = Me("div", null, "CodeMirror-measure"), V.lineSpace = ve("div", [V.measure, V.lineMeasure, V.selectionDiv, V.cursorDiv, V.lineDiv], null, "position: relative; outline: none"); + var we = ve("div", [V.lineSpace], "CodeMirror-lines"); + V.mover = Me("div", [we], null, "position: relative"), V.sizer = Me("div", [V.mover], "CodeMirror-sizer"), V.sizerWidth = null, V.heightForcer = Me("div", null, null, "position: absolute; height: " + Zn + "px; width: 1px;"), V.gutters = Me("div", null, "CodeMirror-gutters"), V.lineGutter = null, V.scroller = Me("div", [V.sizer, V.heightForcer, V.gutters], "CodeMirror-scroll"), V.scroller.setAttribute("tabIndex", "-1"), V.wrapper = Me("div", [V.scrollbarFiller, V.gutterFiller, V.scroller], "CodeMirror"), v && k < 8 && (V.gutters.style.zIndex = -1, V.scroller.style.paddingRight = 0), _ || f && he || (V.scroller.draggable = !0), x && (x.appendChild ? x.appendChild(V.wrapper) : x(V.wrapper)), V.viewFrom = V.viewTo = S.first, V.reportedViewFrom = V.reportedViewTo = S.first, V.view = [], V.renderedView = null, V.externalMeasured = null, V.viewOffset = 0, V.lastWrapHeight = V.lastWrapWidth = 0, V.updateLineNumbers = null, V.nativeBarWidth = V.barHeight = V.barWidth = 0, V.scrollbarsClipped = !1, V.lineNumWidth = V.lineNumInnerWidth = V.lineNumChars = null, V.alignWidgets = !1, V.cachedCharWidth = V.cachedTextHeight = V.cachedPaddingH = null, V.maxLine = null, V.maxLineLength = 0, V.maxLineChanged = !1, V.wheelDX = V.wheelDY = V.wheelStartX = V.wheelStartY = null, V.shift = !1, V.selForContextMenu = null, V.activeTouch = null, V.gutterSpecs = S5(j.gutters, j.lineNumbers), L5(V), G.init(V); + } + N2.prototype.signal = function(x, S) { + Na(x, S) && this.events.push(arguments); + }, N2.prototype.finish = function() { + for (var x = 0; x < this.events.length; x++) + Yr.apply(null, this.events[x]); + }; + var yb = 0, A0 = null; + function Hk(x) { + var S = x.wheelDeltaX, G = x.wheelDeltaY; + return S == null && x.detail && x.axis == x.HORIZONTAL_AXIS && (S = x.detail), G == null && x.detail && x.axis == x.VERTICAL_AXIS ? G = x.detail : G == null && (G = x.wheelDelta), { x: S, y: G }; + } + function n_(x) { + var S = Hk(x); + return S.x *= A0, S.y *= A0, S; + } + function jk(x, S) { + var G = Hk(S), j = G.x, V = G.y, we = x.display, $e = we.scroller, ze = $e.scrollWidth > $e.clientWidth, nt = $e.scrollHeight > $e.clientHeight; + if (j && ze || V && nt) { + if (V && Y && _) { + e: + for (var at = S.target, Yt = we.view; at != $e; at = at.parentNode) + for (var Vt = 0; Vt < Yt.length; Vt++) + if (Yt[Vt].node == at) { + x.display.currentWheelTarget = at; + break e; + } + } + if (j && !f && !F && A0 != null) + return V && nt && Dv(x, Math.max(0, $e.scrollTop + V * A0)), Nv(x, Math.max(0, $e.scrollLeft + j * A0)), (!V || V && nt) && as(S), void (we.wheelStartX = null); + if (V && A0 != null) { + var Nn = V * A0, Vn = x.doc.scrollTop, mr = Vn + we.wrapper.clientHeight; + Nn < 0 ? Vn = Math.max(0, Vn + Nn - 50) : mr = Math.min(x.doc.height, mr + Nn + 50), aw(x, { top: Vn, bottom: mr }); + } + yb < 20 && (we.wheelStartX == null ? (we.wheelStartX = $e.scrollLeft, we.wheelStartY = $e.scrollTop, we.wheelDX = j, we.wheelDY = V, setTimeout(function() { + if (we.wheelStartX != null) { + var si = $e.scrollLeft - we.wheelStartX, Mi = $e.scrollTop - we.wheelStartY, _r = Mi && we.wheelDY && Mi / we.wheelDY || si && we.wheelDX && si / we.wheelDX; + we.wheelStartX = we.wheelStartY = null, _r && (A0 = (A0 * yb + _r) / (yb + 1), ++yb); + } + }, 200)) : (we.wheelDX += j, we.wheelDY += V)); + } + } + v ? A0 = -0.53 : f ? A0 = 15 : L ? A0 = -0.7 : U && (A0 = -1 / 3); + var G0 = function(x, S) { + this.ranges = x, this.primIndex = S; + }; + G0.prototype.primary = function() { + return this.ranges[this.primIndex]; + }, G0.prototype.equals = function(x) { + if (x == this) + return !0; + if (x.primIndex != this.primIndex || x.ranges.length != this.ranges.length) + return !1; + for (var S = 0; S < this.ranges.length; S++) { + var G = this.ranges[S], j = x.ranges[S]; + if (!Wo(G.anchor, j.anchor) || !Wo(G.head, j.head)) + return !1; + } + return !0; + }, G0.prototype.deepCopy = function() { + for (var x = [], S = 0; S < this.ranges.length; S++) + x[S] = new lu(hn(this.ranges[S].anchor), hn(this.ranges[S].head)); + return new G0(x, this.primIndex); + }, G0.prototype.somethingSelected = function() { + for (var x = 0; x < this.ranges.length; x++) + if (!this.ranges[x].empty()) + return !0; + return !1; + }, G0.prototype.contains = function(x, S) { + S || (S = x); + for (var G = 0; G < this.ranges.length; G++) { + var j = this.ranges[G]; + if (Pr(S, j.from()) >= 0 && Pr(x, j.to()) <= 0) + return G; + } + return -1; + }; + var lu = function(x, S) { + this.anchor = x, this.head = S; + }; + function Mp(x, S, G) { + var j = x && x.options.selectionsMayTouch, V = S[G]; + S.sort(function(Nn, Vn) { + return Pr(Nn.from(), Vn.from()); + }), G = jt(S, V); + for (var we = 1; we < S.length; we++) { + var $e = S[we], ze = S[we - 1], nt = Pr(ze.to(), $e.from()); + if (j && !$e.empty() ? nt > 0 : nt >= 0) { + var at = Sn(ze.from(), $e.from()), Yt = wf(ze.to(), $e.to()), Vt = ze.empty() ? $e.from() == $e.head : ze.from() == ze.head; + we <= G && --G, S.splice(--we, 2, new lu(Vt ? Yt : at, Vt ? at : Yt)); + } + } + return new G0(S, G); + } + function R2(x, S) { + return new G0([new lu(x, S || x)], 0); + } + function Q2(x) { + return x.text ? pr(x.from.line + x.text.length - 1, pt(x.text).length + (x.text.length == 1 ? x.from.ch : 0)) : x.to; + } + function Nl(x, S) { + if (Pr(x, S.from) < 0) + return x; + if (Pr(x, S.to) <= 0) + return Q2(S); + var G = x.line + S.text.length - (S.to.line - S.from.line) - 1, j = x.ch; + return x.line == S.to.line && (j += Q2(S).ch - S.to.ch), pr(G, j); + } + function md(x, S) { + for (var G = [], j = 0; j < x.sel.ranges.length; j++) { + var V = x.sel.ranges[j]; + G.push(new lu(Nl(V.anchor, S), Nl(V.head, S))); + } + return Mp(x.cm, G, x.sel.primIndex); + } + function Pc(x, S, G) { + return x.line == S.line ? pr(G.line, x.ch - S.ch + G.ch) : pr(G.line + (x.line - S.line), x.ch); + } + function r_(x, S, G) { + for (var j = [], V = pr(x.first, 0), we = V, $e = 0; $e < S.length; $e++) { + var ze = S[$e], nt = Pc(ze.from, V, we), at = Pc(Q2(ze), V, we); + if (V = ze.to, we = at, G == "around") { + var Yt = x.sel.ranges[$e], Vt = Pr(Yt.head, Yt.anchor) < 0; + j[$e] = new lu(Vt ? at : nt, Vt ? nt : at); + } else + j[$e] = new lu(nt, nt); + } + return new G0(j, x.sel.primIndex); + } + function I5(x) { + x.doc.mode = cu(x.options, x.doc.modeOption), wa(x); + } + function wa(x) { + x.doc.iter(function(S) { + S.stateAfter && (S.stateAfter = null), S.styles && (S.styles = null); + }), x.doc.modeFrontier = x.doc.highlightFrontier = x.doc.first, Ip(x, 100), x.state.modeGen++, x.curOp && pd(x); + } + function Ao(x, S) { + return S.from.ch == 0 && S.to.ch == 0 && pt(S.text) == "" && (!x.cm || x.cm.options.wholeLineUpdateBefore); + } + function Kk(x, S, G, j) { + function V(ao) { + return G ? G[ao] : null; + } + function we(ao, ea, zi) { + Br(ao, ea, zi, j), Dl(ao, "change", ao, S); + } + function $e(ao, ea) { + for (var zi = [], Qo = ao; Qo < ea; ++Qo) + zi.push(new Zf(at[Qo], V(Qo), j)); + return zi; + } + var ze = S.from, nt = S.to, at = S.text, Yt = Ki(x, ze.line), Vt = Ki(x, nt.line), Nn = pt(at), Vn = V(at.length - 1), mr = nt.line - ze.line; + if (S.full) + x.insert(0, $e(0, at.length)), x.remove(at.length, x.size - at.length); + else if (Ao(x, S)) { + var si = $e(0, at.length - 1); + we(Vt, Vt.text, Vn), mr && x.remove(ze.line, mr), si.length && x.insert(ze.line, si); + } else if (Yt == Vt) + if (at.length == 1) + we(Yt, Yt.text.slice(0, ze.ch) + Nn + Yt.text.slice(nt.ch), Vn); + else { + var Mi = $e(1, at.length - 1); + Mi.push(new Zf(Nn + Yt.text.slice(nt.ch), Vn, j)), we(Yt, Yt.text.slice(0, ze.ch) + at[0], V(0)), x.insert(ze.line + 1, Mi); + } + else if (at.length == 1) + we(Yt, Yt.text.slice(0, ze.ch) + at[0] + Vt.text.slice(nt.ch), V(0)), x.remove(ze.line + 1, mr); + else { + we(Yt, Yt.text.slice(0, ze.ch) + at[0], V(0)), we(Vt, Nn + Vt.text.slice(nt.ch), Vn); + var _r = $e(1, at.length - 1); + mr > 1 && x.remove(ze.line + 1, mr - 1), x.insert(ze.line + 1, _r); + } + Dl(x, "change", x, S); + } + function Fp(x, S, G) { + function j(V, we, $e) { + if (V.linked) + for (var ze = 0; ze < V.linked.length; ++ze) { + var nt = V.linked[ze]; + if (nt.doc != we) { + var at = $e && nt.sharedHist; + G && !at || (S(nt.doc, at), j(nt.doc, V, at)); + } + } + } + j(x, null, !0); + } + function U3(x, S) { + if (S.cm) + throw new Error("This document is already in use."); + x.doc = S, S.cm = x, Ab(x), I5(x), kC(x), x.options.lineWrapping || s0(x), x.options.mode = S.modeOption, pd(x); + } + function kC(x) { + (x.doc.direction == "rtl" ? ot : ie)(x.display.lineDiv, "CodeMirror-rtl"); + } + function i_(x) { + IA(x, function() { + kC(x), pd(x); + }); + } + function M5(x) { + this.done = [], this.undone = [], this.undoDepth = 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = x || 1; + } + function H3(x, S) { + var G = { from: hn(S.from), to: Q2(S), text: Ta(x, S.from, S.to) }; + return j3(x, G, S.from.line, S.to.line + 1), Fp(x, function(j) { + return j3(j, G, S.from.line, S.to.line + 1); + }, !0), G; + } + function Io(x) { + for (; x.length && pt(x).ranges; ) + x.pop(); + } + function ow(x, S) { + return S ? (Io(x.done), pt(x.done)) : x.done.length && !pt(x.done).ranges ? pt(x.done) : x.done.length > 1 && !x.done[x.done.length - 2].ranges ? (x.done.pop(), pt(x.done)) : void 0; + } + function sw(x, S, G, j) { + var V = x.history; + V.undone.length = 0; + var we, $e, ze = +/* @__PURE__ */ new Date(); + if ((V.lastOp == j || V.lastOrigin == S.origin && S.origin && (S.origin.charAt(0) == "+" && V.lastModTime > ze - (x.cm ? x.cm.options.historyEventDelay : 500) || S.origin.charAt(0) == "*")) && (we = ow(V, V.lastOp == j))) + $e = pt(we.changes), Pr(S.from, S.to) == 0 && Pr(S.from, $e.to) == 0 ? $e.to = Q2(S) : we.changes.push(H3(x, S)); + else { + var nt = pt(V.done); + for (nt && nt.ranges || O5(x.sel, V.done), we = { changes: [H3(x, S)], generation: V.generation }, V.done.push(we); V.done.length > V.undoDepth; ) + V.done.shift(), V.done[0].ranges || V.done.shift(); + } + V.done.push(G), V.generation = ++V.maxGeneration, V.lastModTime = V.lastSelTime = ze, V.lastOp = V.lastSelOp = j, V.lastOrigin = V.lastSelOrigin = S.origin, $e || Yr(x, "historyAdded"); + } + function F5(x, S, G, j) { + var V = S.charAt(0); + return V == "*" || V == "+" && G.ranges.length == j.ranges.length && G.somethingSelected() == j.somethingSelected() && /* @__PURE__ */ new Date() - x.history.lastSelTime <= (x.cm ? x.cm.options.historyEventDelay : 500); + } + function vm(x, S, G, j) { + var V = x.history, we = j && j.origin; + G == V.lastSelOp || we && V.lastSelOrigin == we && (V.lastModTime == V.lastSelTime && V.lastOrigin == we || F5(x, we, pt(V.done), S)) ? V.done[V.done.length - 1] = S : O5(S, V.done), V.lastSelTime = +/* @__PURE__ */ new Date(), V.lastSelOrigin = we, V.lastSelOp = G, j && j.clearRedo !== !1 && Io(V.undone); + } + function O5(x, S) { + var G = pt(S); + G && G.ranges && G.equals(x) || S.push(x); + } + function j3(x, S, G, j) { + var V = S["spans_" + x.id], we = 0; + x.iter(Math.max(x.first, G), Math.min(x.first + x.size, j), function($e) { + $e.markedSpans && ((V || (V = S["spans_" + x.id] = {}))[we] = $e.markedSpans), ++we; + }); + } + function cw(x) { + if (!x) + return null; + for (var S, G = 0; G < x.length; ++G) + x[G].marker.explicitlyCleared ? S || (S = x.slice(0, G)) : S && S.push(x[G]); + return S ? S.length ? S : null : x; + } + function $2(x, S) { + var G = S["spans_" + x.id]; + if (!G) + return null; + for (var j = [], V = 0; V < S.text.length; ++V) + j.push(cw(G[V])); + return j; + } + function Op(x, S) { + var G = $2(x, S), j = Ad(x, S); + if (!G) + return j; + if (!j) + return G; + for (var V = 0; V < G.length; ++V) { + var we = G[V], $e = j[V]; + if (we && $e) + e: + for (var ze = 0; ze < $e.length; ++ze) { + for (var nt = $e[ze], at = 0; at < we.length; ++at) + if (we[at].marker == nt.marker) + continue e; + we.push(nt); + } + else + $e && (G[V] = $e); + } + return G; + } + function X0(x, S, G) { + for (var j = [], V = 0; V < x.length; ++V) { + var we = x[V]; + if (we.ranges) + j.push(G ? G0.prototype.deepCopy.call(we) : we); + else { + var $e = we.changes, ze = []; + j.push({ changes: ze }); + for (var nt = 0; nt < $e.length; ++nt) { + var at = $e[nt], Yt = void 0; + if (ze.push({ from: at.from, to: at.to, text: at.text }), S) + for (var Vt in at) + (Yt = Vt.match(/^spans_(\d+)$/)) && jt(S, Number(Yt[1])) > -1 && (pt(ze)[Vt] = at[Vt], delete at[Vt]); + } + } + } + return j; + } + function D5(x, S, G, j) { + if (j) { + var V = x.anchor; + if (G) { + var we = Pr(S, V) < 0; + we != Pr(G, V) < 0 ? (V = S, S = G) : we != Pr(S, G) < 0 && (S = G); + } + return new lu(V, S); + } + return new lu(G || S, S); + } + function ym(x, S, G, j, V) { + V == null && (V = x.cm && (x.cm.display.shift || x.extend)), bd(x, new G0([D5(x.sel.primary(), S, G, V)], 0), j); + } + function K3(x, S, G) { + for (var j = [], V = x.cm && (x.cm.display.shift || x.extend), we = 0; we < x.sel.ranges.length; we++) + j[we] = D5(x.sel.ranges[we], S[we], null, V); + bd(x, Mp(x.cm, j, x.sel.primIndex), G); + } + function wb(x, S, G, j) { + var V = x.sel.ranges.slice(0); + V[S] = G, bd(x, Mp(x.cm, V, x.sel.primIndex), j); + } + function zk(x, S, G, j) { + bd(x, R2(S, G), j); + } + function Gk(x, S, G) { + var j = { ranges: S.ranges, update: function(V) { + this.ranges = []; + for (var we = 0; we < V.length; we++) + this.ranges[we] = new lu(Ro(x, V[we].anchor), Ro(x, V[we].head)); + }, origin: G && G.origin }; + return Yr(x, "beforeSelectionChange", x, j), x.cm && Yr(x.cm, "beforeSelectionChange", x.cm, j), j.ranges != S.ranges ? Mp(x.cm, j.ranges, j.ranges.length - 1) : S; + } + function xC(x, S, G) { + var j = x.history.done, V = pt(j); + V && V.ranges ? (j[j.length - 1] = S, wm(x, S, G)) : bd(x, S, G); + } + function bd(x, S, G) { + wm(x, S, G), vm(x, x.sel, x.cm ? x.cm.curOp.id : NaN, G); + } + function wm(x, S, G) { + (Na(x, "beforeSelectionChange") || x.cm && Na(x.cm, "beforeSelectionChange")) && (S = Gk(x, S, G)); + var j = G && G.bias || (Pr(S.primary().head, x.sel.primary().head) < 0 ? -1 : 1); + km(x, P5(x, S, j, !0)), G && G.scroll === !1 || !x.cm || rw(x.cm); + } + function km(x, S) { + S.equals(x.sel) || (x.sel = S, x.cm && (x.cm.curOp.updateInput = 1, x.cm.curOp.selectionChanged = !0, Vr(x.cm)), Dl(x, "cursorActivity", x)); + } + function N5(x) { + km(x, P5(x, x.sel, null, !1)); + } + function P5(x, S, G, j) { + for (var V, we = 0; we < S.ranges.length; we++) { + var $e = S.ranges[we], ze = S.ranges.length == x.sel.ranges.length && x.sel.ranges[we], nt = z3(x, $e.anchor, ze && ze.anchor, G, j), at = z3(x, $e.head, ze && ze.head, G, j); + (V || nt != $e.anchor || at != $e.head) && (V || (V = S.ranges.slice(0, we)), V[we] = new lu(nt, at)); + } + return V ? Mp(x.cm, V, S.primIndex) : S; + } + function Rv(x, S, G, j, V) { + var we = Ki(x, S.line); + if (we.markedSpans) + for (var $e = 0; $e < we.markedSpans.length; ++$e) { + var ze = we.markedSpans[$e], nt = ze.marker, at = "selectLeft" in nt ? !nt.selectLeft : nt.inclusiveLeft, Yt = "selectRight" in nt ? !nt.selectRight : nt.inclusiveRight; + if ((ze.from == null || (at ? ze.from <= S.ch : ze.from < S.ch)) && (ze.to == null || (Yt ? ze.to >= S.ch : ze.to > S.ch))) { + if (V && (Yr(nt, "beforeCursorEnter"), nt.explicitlyCleared)) { + if (we.markedSpans) { + --$e; + continue; + } + break; + } + if (!nt.atomic) + continue; + if (G) { + var Vt = nt.find(j < 0 ? 1 : -1), Nn = void 0; + if ((j < 0 ? Yt : at) && (Vt = Qv(x, Vt, -j, Vt && Vt.line == S.line ? we : null)), Vt && Vt.line == S.line && (Nn = Pr(Vt, G)) && (j < 0 ? Nn < 0 : Nn > 0)) + return Rv(x, Vt, S, j, V); + } + var Vn = nt.find(j < 0 ? -1 : 1); + return (j < 0 ? at : Yt) && (Vn = Qv(x, Vn, j, Vn.line == S.line ? we : null)), Vn ? Rv(x, Vn, S, j, V) : null; + } + } + return S; + } + function z3(x, S, G, j, V) { + var we = j || 1, $e = Rv(x, S, G, we, V) || !V && Rv(x, S, G, we, !0) || Rv(x, S, G, -we, V) || !V && Rv(x, S, G, -we, !0); + return $e || (x.cantEdit = !0, pr(x.first, 0)); + } + function Qv(x, S, G, j) { + return G < 0 && S.ch == 0 ? S.line > x.first ? Ro(x, pr(S.line - 1)) : null : G > 0 && S.ch == (j || Ki(x, S.line)).text.length ? S.line < x.first + x.size - 1 ? pr(S.line + 1, 0) : null : new pr(S.line, S.ch + G); + } + function Ng(x) { + x.setSelection(pr(x.firstLine(), 0), pr(x.lastLine()), wn); + } + function lw(x, S, G) { + var j = { canceled: !1, from: S.from, to: S.to, text: S.text, origin: S.origin, cancel: function() { + return j.canceled = !0; + } }; + return G && (j.update = function(V, we, $e, ze) { + V && (j.from = Ro(x, V)), we && (j.to = Ro(x, we)), $e && (j.text = $e), ze !== void 0 && (j.origin = ze); + }), Yr(x, "beforeChange", x, j), x.cm && Yr(x.cm, "beforeChange", x.cm, j), j.canceled ? (x.cm && (x.cm.curOp.updateInput = 2), null) : { from: j.from, to: j.to, text: j.text, origin: j.origin }; + } + function uw(x, S, G) { + if (x.cm) { + if (!x.cm.curOp) + return q1(x.cm, uw)(x, S, G); + if (x.cm.state.suppressEdits) + return; + } + if (!(Na(x, "beforeChange") || x.cm && Na(x.cm, "beforeChange")) || (S = lw(x, S, !0))) { + var j = eu && !G && Md(x, S.from, S.to); + if (j) + for (var V = j.length - 1; V >= 0; --V) + R5(x, { from: j[V].from, to: j[V].to, text: V ? [""] : S.text, origin: S.origin }); + else + R5(x, S); + } + } + function R5(x, S) { + if (S.text.length != 1 || S.text[0] != "" || Pr(S.from, S.to) != 0) { + var G = md(x, S); + sw(x, S, G, x.cm ? x.cm.curOp.id : NaN), kb(x, S, G, Ad(x, S)); + var j = []; + Fp(x, function(V, we) { + we || jt(j, V.history) != -1 || (Hv(V.history, S), j.push(V.history)), kb(V, S, null, Ad(V, S)); + }); + } + } + function $v(x, S, G) { + var j = x.cm && x.cm.state.suppressEdits; + if (!j || G) { + for (var V, we = x.history, $e = x.sel, ze = S == "undo" ? we.done : we.undone, nt = S == "undo" ? we.undone : we.done, at = 0; at < ze.length && (V = ze[at], G ? !V.ranges || V.equals(x.sel) : V.ranges); at++) + ; + if (at != ze.length) { + for (we.lastOrigin = we.lastSelOrigin = null; ; ) { + if (!(V = ze.pop()).ranges) { + if (j) + return void ze.push(V); + break; + } + if (O5(V, nt), G && !V.equals(x.sel)) + return void bd(x, V, { clearRedo: !1 }); + $e = V; + } + var Yt = []; + O5($e, nt), nt.push({ changes: Yt, generation: we.generation }), we.generation = V.generation || ++we.maxGeneration; + for (var Vt = Na(x, "beforeChange") || x.cm && Na(x.cm, "beforeChange"), Nn = function(si) { + var Mi = V.changes[si]; + if (Mi.origin = S, Vt && !lw(x, Mi, !1)) + return ze.length = 0, {}; + Yt.push(H3(x, Mi)); + var _r = si ? md(x, Mi) : pt(ze); + kb(x, Mi, _r, Op(x, Mi)), !si && x.cm && x.cm.scrollIntoView({ from: Mi.from, to: Q2(Mi) }); + var ao = []; + Fp(x, function(ea, zi) { + zi || jt(ao, ea.history) != -1 || (Hv(ea.history, Mi), ao.push(ea.history)), kb(ea, Mi, null, Op(ea, Mi)); + }); + }, Vn = V.changes.length - 1; Vn >= 0; --Vn) { + var mr = Nn(Vn); + if (mr) + return mr.v; + } + } + } + } + function Xk(x, S) { + if (S != 0 && (x.first += S, x.sel = new G0(Ci(x.sel.ranges, function(V) { + return new lu(pr(V.anchor.line + S, V.anchor.ch), pr(V.head.line + S, V.head.ch)); + }), x.sel.primIndex), x.cm)) { + pd(x.cm, x.first, x.first - S, S); + for (var G = x.cm.display, j = G.viewFrom; j < G.viewTo; j++) + L2(x.cm, j, "gutter"); + } + } + function kb(x, S, G, j) { + if (x.cm && !x.cm.curOp) + return q1(x.cm, kb)(x, S, G, j); + if (S.to.line < x.first) + Xk(x, S.text.length - 1 - (S.to.line - S.from.line)); + else if (!(S.from.line > x.lastLine())) { + if (S.from.line < x.first) { + var V = S.text.length - 1 - (x.first - S.from.line); + Xk(x, V), S = { from: pr(x.first, 0), to: pr(S.to.line + V, S.to.ch), text: [pt(S.text)], origin: S.origin }; + } + var we = x.lastLine(); + S.to.line > we && (S = { from: S.from, to: pr(we, Ki(x, we).text.length), text: [S.text[0]], origin: S.origin }), S.removed = Ta(x, S.from, S.to), G || (G = md(x, S)), x.cm ? a_(x.cm, S, j) : Kk(x, S, j), wm(x, G, wn), x.cantEdit && z3(x, pr(x.firstLine(), 0)) && (x.cantEdit = !1); + } + } + function a_(x, S, G) { + var j = x.doc, V = x.display, we = S.from, $e = S.to, ze = !1, nt = we.line; + x.options.lineWrapping || (nt = mc(iA(Ki(j, we.line))), j.iter(nt, $e.line + 1, function(Vn) { + if (Vn == V.maxLine) + return ze = !0, !0; + })), j.sel.contains(S.from, S.to) > -1 && Vr(x), Kk(j, S, G, AC(x)), x.options.lineWrapping || (j.iter(nt, we.line + S.text.length, function(Vn) { + var mr = Tp(Vn); + mr > V.maxLineLength && (V.maxLine = Vn, V.maxLineLength = mr, V.maxLineChanged = !0, ze = !1); + }), ze && (x.curOp.updateMaxLine = !0)), kf(j, we.line), Ip(x, 400); + var at = S.text.length - ($e.line - we.line) - 1; + S.full ? pd(x) : we.line != $e.line || S.text.length != 1 || Ao(x.doc, S) ? pd(x, we.line, $e.line + 1, at) : L2(x, we.line, "text"); + var Yt = Na(x, "changes"), Vt = Na(x, "change"); + if (Vt || Yt) { + var Nn = { from: we, to: $e, text: S.text, removed: S.removed, origin: S.origin }; + Vt && Dl(x, "change", x, Nn), Yt && (x.curOp.changeObjs || (x.curOp.changeObjs = [])).push(Nn); + } + x.display.selForContextMenu = null; + } + function Uv(x, S, G, j, V) { + var we; + j || (j = G), Pr(j, G) < 0 && (G = (we = [j, G])[0], j = we[1]), typeof S == "string" && (S = x.splitLines(S)), uw(x, { from: G, to: j, text: S, origin: V }); + } + function xm(x, S, G, j) { + G < x.line ? x.line += j : S < x.line && (x.line = S, x.ch = 0); + } + function U2(x, S, G, j) { + for (var V = 0; V < x.length; ++V) { + var we = x[V], $e = !0; + if (we.ranges) { + we.copied || ((we = x[V] = we.deepCopy()).copied = !0); + for (var ze = 0; ze < we.ranges.length; ze++) + xm(we.ranges[ze].anchor, S, G, j), xm(we.ranges[ze].head, S, G, j); + } else { + for (var nt = 0; nt < we.changes.length; ++nt) { + var at = we.changes[nt]; + if (G < at.from.line) + at.from = pr(at.from.line + j, at.from.ch), at.to = pr(at.to.line + j, at.to.ch); + else if (S <= at.to.line) { + $e = !1; + break; + } + } + $e || (x.splice(0, V + 1), V = 0); + } + } + } + function Hv(x, S) { + var G = S.from.line, j = S.to.line, V = S.text.length - (j - G) - 1; + U2(x.done, G, j, V), U2(x.undone, G, j, V); + } + function hw(x, S, G, j) { + var V = S, we = S; + return typeof S == "number" ? we = Ki(x, Nc(x, S)) : V = mc(S), V == null ? null : (j(we, V) && x.cm && L2(x.cm, V, G), we); + } + function fw(x) { + this.lines = x, this.parent = null; + for (var S = 0, G = 0; G < x.length; ++G) + x[G].parent = this, S += x[G].height; + this.height = S; + } + function dw(x) { + this.children = x; + for (var S = 0, G = 0, j = 0; j < x.length; ++j) { + var V = x[j]; + S += V.chunkSize(), G += V.height, V.parent = this; + } + this.size = S, this.height = G, this.parent = null; + } + lu.prototype.from = function() { + return Sn(this.anchor, this.head); + }, lu.prototype.to = function() { + return wf(this.anchor, this.head); + }, lu.prototype.empty = function() { + return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch; + }, fw.prototype = { chunkSize: function() { + return this.lines.length; + }, removeInner: function(x, S) { + for (var G = x, j = x + S; G < j; ++G) { + var V = this.lines[G]; + this.height -= V.height, Bk(V), Dl(V, "delete"); + } + this.lines.splice(x, S); + }, collapse: function(x) { + x.push.apply(x, this.lines); + }, insertInner: function(x, S, G) { + this.height += G, this.lines = this.lines.slice(0, x).concat(S).concat(this.lines.slice(x)); + for (var j = 0; j < S.length; ++j) + S[j].parent = this; + }, iterN: function(x, S, G) { + for (var j = x + S; x < j; ++x) + if (G(this.lines[x])) + return !0; + } }, dw.prototype = { chunkSize: function() { + return this.size; + }, removeInner: function(x, S) { + this.size -= S; + for (var G = 0; G < this.children.length; ++G) { + var j = this.children[G], V = j.chunkSize(); + if (x < V) { + var we = Math.min(S, V - x), $e = j.height; + if (j.removeInner(x, we), this.height -= $e - j.height, V == we && (this.children.splice(G--, 1), j.parent = null), (S -= we) == 0) + break; + x = 0; + } else + x -= V; + } + if (this.size - S < 25 && (this.children.length > 1 || !(this.children[0] instanceof fw))) { + var ze = []; + this.collapse(ze), this.children = [new fw(ze)], this.children[0].parent = this; + } + }, collapse: function(x) { + for (var S = 0; S < this.children.length; ++S) + this.children[S].collapse(x); + }, insertInner: function(x, S, G) { + this.size += S.length, this.height += G; + for (var j = 0; j < this.children.length; ++j) { + var V = this.children[j], we = V.chunkSize(); + if (x <= we) { + if (V.insertInner(x, S, G), V.lines && V.lines.length > 50) { + for (var $e = V.lines.length % 25 + 25, ze = $e; ze < V.lines.length; ) { + var nt = new fw(V.lines.slice(ze, ze += 25)); + V.height -= nt.height, this.children.splice(++j, 0, nt), nt.parent = this; + } + V.lines = V.lines.slice(0, $e), this.maybeSpill(); + } + break; + } + x -= we; + } + }, maybeSpill: function() { + if (!(this.children.length <= 10)) { + var x = this; + do { + var S = new dw(x.children.splice(x.children.length - 5, 5)); + if (x.parent) { + x.size -= S.size, x.height -= S.height; + var G = jt(x.parent.children, x); + x.parent.children.splice(G + 1, 0, S); + } else { + var j = new dw(x.children); + j.parent = x, x.children = [j, S], x = j; + } + S.parent = x.parent; + } while (x.children.length > 10); + x.parent.maybeSpill(); + } + }, iterN: function(x, S, G) { + for (var j = 0; j < this.children.length; ++j) { + var V = this.children[j], we = V.chunkSize(); + if (x < we) { + var $e = Math.min(S, we - x); + if (V.iterN(x, $e, G)) + return !0; + if ((S -= $e) == 0) + break; + x = 0; + } else + x -= we; + } + } }; + var jv = function(x, S, G) { + if (G) + for (var j in G) + G.hasOwnProperty(j) && (this[j] = G[j]); + this.doc = x, this.node = S; + }; + function CC(x, S, G) { + uf(S) < (x.curOp && x.curOp.scrollTop || x.doc.scrollTop) && E5(x, G); + } + function Aw(x, S, G, j) { + var V = new jv(x, G, j), we = x.cm; + return we && V.noHScroll && (we.display.alignWidgets = !0), hw(x, S, "widget", function($e) { + var ze = $e.widgets || ($e.widgets = []); + if (V.insertAt == null ? ze.push(V) : ze.splice(Math.min(ze.length - 1, Math.max(0, V.insertAt)), 0, V), V.line = $e, we && !ku(x, $e)) { + var nt = uf($e) < x.scrollTop; + sf($e, $e.height + xf(V)), nt && E5(we, V.height), we.curOp.forceUpdate = !0; + } + return !0; + }), we && Dl(we, "lineWidgetAdded", we, V, typeof S == "number" ? S : mc(S)), V; + } + jv.prototype.clear = function() { + var x = this.doc.cm, S = this.line.widgets, G = this.line, j = mc(G); + if (j != null && S) { + for (var V = 0; V < S.length; ++V) + S[V] == this && S.splice(V--, 1); + S.length || (G.widgets = null); + var we = xf(this); + sf(G, Math.max(0, G.height - we)), x && (IA(x, function() { + CC(x, G, -we), L2(x, j, "widget"); + }), Dl(x, "lineWidgetCleared", x, this, j)); + } + }, jv.prototype.changed = function() { + var x = this, S = this.height, G = this.doc.cm, j = this.line; + this.height = null; + var V = xf(this) - S; + V && (ku(this.doc, j) || sf(j, j.height + V), G && IA(G, function() { + G.curOp.forceUpdate = !0, CC(G, j, V), Dl(G, "lineWidgetChanged", G, x, mc(j)); + })); + }, er(jv); + var _C = 0, Cf = function(x, S) { + this.lines = [], this.type = S, this.doc = x, this.id = ++_C; + }; + function xb(x, S, G, j, V) { + if (j && j.shared) + return o_(x, S, G, j, V); + if (x.cm && !x.cm.curOp) + return q1(x.cm, xb)(x, S, G, j, V); + var we = new Cf(x, V), $e = Pr(S, G); + if (j && Qe(j, we, !1), $e > 0 || $e == 0 && we.clearWhenEmpty !== !1) + return we; + if (we.replacedWith && (we.collapsed = !0, we.widgetNode = ve("span", [we.replacedWith], "CodeMirror-widget"), j.handleMouseEvents || we.widgetNode.setAttribute("cm-ignore-events", "true"), j.insertLeft && (we.widgetNode.insertLeft = !0)), we.collapsed) { + if (Gh(x, S.line, S, G, we) || S.line != G.line && Gh(x, G.line, S, G, we)) + throw new Error("Inserting collapsed marker partially overlapping an existing one"); + hb(); + } + we.addToHistory && sw(x, { from: S, to: G, origin: "markText" }, x.sel, NaN); + var ze, nt = S.line, at = x.cm; + if (x.iter(nt, G.line + 1, function(Vt) { + at && we.collapsed && !at.options.lineWrapping && iA(Vt) == at.display.maxLine && (ze = !0), we.collapsed && nt != S.line && sf(Vt, 0), Yf(Vt, new Of(we, nt == S.line ? S.ch : null, nt == G.line ? G.ch : null)), ++nt; + }), we.collapsed && x.iter(S.line, G.line + 1, function(Vt) { + ku(x, Vt) && sf(Vt, 0); + }), we.clearOnEnter && ji(we, "beforeCursorEnter", function() { + return we.clear(); + }), we.readOnly && (Ps(), (x.history.done.length || x.history.undone.length) && x.clearHistory()), we.collapsed && (we.id = ++_C, we.atomic = !0), at) { + if (ze && (at.curOp.updateMaxLine = !0), we.collapsed) + pd(at, S.line, G.line + 1); + else if (we.className || we.startStyle || we.endStyle || we.css || we.attributes || we.title) + for (var Yt = S.line; Yt <= G.line; Yt++) + L2(at, Yt, "text"); + we.atomic && N5(at.doc), Dl(at, "markerAdded", at, we); + } + return we; + } + Cf.prototype.clear = function() { + if (!this.explicitlyCleared) { + var x = this.doc.cm, S = x && !x.curOp; + if (S && mb(x), Na(this, "clear")) { + var G = this.find(); + G && Dl(this, "clear", G.from, G.to); + } + for (var j = null, V = null, we = 0; we < this.lines.length; ++we) { + var $e = this.lines[we], ze = Sl($e.markedSpans, this); + x && !this.collapsed ? L2(x, mc($e), "text") : x && (ze.to != null && (V = mc($e)), ze.from != null && (j = mc($e))), $e.markedSpans = U0($e.markedSpans, ze), ze.from == null && this.collapsed && !ku(this.doc, $e) && x && sf($e, T2(x.display)); + } + if (x && this.collapsed && !x.options.lineWrapping) + for (var nt = 0; nt < this.lines.length; ++nt) { + var at = iA(this.lines[nt]), Yt = Tp(at); + Yt > x.display.maxLineLength && (x.display.maxLine = at, x.display.maxLineLength = Yt, x.display.maxLineChanged = !0); + } + j != null && x && this.collapsed && pd(x, j, V + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, x && N5(x.doc)), x && Dl(x, "markerCleared", x, this, j, V), S && bb(x), this.parent && this.parent.clear(); + } + }, Cf.prototype.find = function(x, S) { + var G, j; + x == null && this.type == "bookmark" && (x = 1); + for (var V = 0; V < this.lines.length; ++V) { + var we = this.lines[V], $e = Sl(we.markedSpans, this); + if ($e.from != null && (G = pr(S ? we : mc(we), $e.from), x == -1)) + return G; + if ($e.to != null && (j = pr(S ? we : mc(we), $e.to), x == 1)) + return j; + } + return G && { from: G, to: j }; + }, Cf.prototype.changed = function() { + var x = this, S = this.find(-1, !0), G = this, j = this.doc.cm; + S && j && IA(j, function() { + var V = S.line, we = mc(S.line), $e = h1(j, we); + if ($e && (Vy($e), j.curOp.selectionChanged = j.curOp.forceUpdate = !0), j.curOp.updateMaxLine = !0, !ku(G.doc, V) && G.height != null) { + var ze = G.height; + G.height = null; + var nt = xf(G) - ze; + nt && sf(V, V.height + nt); + } + Dl(j, "markerChanged", j, x); + }); + }, Cf.prototype.attachLine = function(x) { + if (!this.lines.length && this.doc.cm) { + var S = this.doc.cm.curOp; + S.maybeHiddenMarkers && jt(S.maybeHiddenMarkers, this) != -1 || (S.maybeUnhiddenMarkers || (S.maybeUnhiddenMarkers = [])).push(this); + } + this.lines.push(x); + }, Cf.prototype.detachLine = function(x) { + if (this.lines.splice(jt(this.lines, x), 1), !this.lines.length && this.doc.cm) { + var S = this.doc.cm.curOp; + (S.maybeHiddenMarkers || (S.maybeHiddenMarkers = [])).push(this); + } + }, er(Cf); + var G3 = function(x, S) { + this.markers = x, this.primary = S; + for (var G = 0; G < x.length; ++G) + x[G].parent = this; + }; + function o_(x, S, G, j, V) { + (j = Qe(j)).shared = !1; + var we = [xb(x, S, G, j, V)], $e = we[0], ze = j.widgetNode; + return Fp(x, function(nt) { + ze && (j.widgetNode = ze.cloneNode(!0)), we.push(xb(nt, Ro(nt, S), Ro(nt, G), j, V)); + for (var at = 0; at < nt.linked.length; ++at) + if (nt.linked[at].isParent) + return; + $e = pt(we); + }), new G3(we, $e); + } + function X3(x) { + return x.findMarks(pr(x.first, 0), x.clipPos(pr(x.lastLine())), function(S) { + return S.parent; + }); + } + function s_(x, S) { + for (var G = 0; G < S.length; G++) { + var j = S[G], V = j.find(), we = x.clipPos(V.from), $e = x.clipPos(V.to); + if (Pr(we, $e)) { + var ze = xb(x, we, $e, j.primary, j.primary.type); + j.markers.push(ze), ze.parent = j; + } + } + } + function c_(x) { + for (var S = function(j) { + var V = x[j], we = [V.primary.doc]; + Fp(V.primary.doc, function(nt) { + return we.push(nt); + }); + for (var $e = 0; $e < V.markers.length; $e++) { + var ze = V.markers[$e]; + jt(we, ze.doc) == -1 && (ze.parent = null, V.markers.splice($e--, 1)); + } + }, G = 0; G < x.length; G++) + S(G); + } + G3.prototype.clear = function() { + if (!this.explicitlyCleared) { + this.explicitlyCleared = !0; + for (var x = 0; x < this.markers.length; ++x) + this.markers[x].clear(); + Dl(this, "clear"); + } + }, G3.prototype.find = function(x, S) { + return this.primary.find(x, S); + }, er(G3); + var Q5 = 0, MA = function(x, S, G, j, V) { + if (!(this instanceof MA)) + return new MA(x, S, G, j, V); + G == null && (G = 0), dw.call(this, [new fw([new Zf("", null)])]), this.first = G, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = G; + var we = pr(G, 0); + this.sel = R2(we), this.history = new M5(null), this.id = ++Q5, this.modeOption = S, this.lineSep = j, this.direction = V == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof x == "string" && (x = this.splitLines(x)), Kk(this, { from: we, to: we, text: x }), bd(this, R2(we), wn); + }; + MA.prototype = zt(dw.prototype, { constructor: MA, iter: function(x, S, G) { + G ? this.iterN(x - this.first, S - x, G) : this.iterN(this.first, this.first + this.size, x); + }, insert: function(x, S) { + for (var G = 0, j = 0; j < S.length; ++j) + G += S[j].height; + this.insertInner(x - this.first, S, G); + }, remove: function(x, S) { + this.removeInner(x - this.first, S); + }, getValue: function(x) { + var S = Bl(this, this.first, this.first + this.size); + return x === !1 ? S : S.join(x || this.lineSeparator()); + }, setValue: e1(function(x) { + var S = pr(this.first, 0), G = this.first + this.size - 1; + uw(this, { from: S, to: pr(G, Ki(this, G).text.length), text: this.splitLines(x), origin: "setValue", full: !0 }, !0), this.cm && D3(this.cm, 0, 0), bd(this, R2(S), wn); + }), replaceRange: function(x, S, G, j) { + Uv(this, x, S = Ro(this, S), G = G ? Ro(this, G) : S, j); + }, getRange: function(x, S, G) { + var j = Ta(this, Ro(this, x), Ro(this, S)); + return G === !1 ? j : j.join(G || this.lineSeparator()); + }, getLine: function(x) { + var S = this.getLineHandle(x); + return S && S.text; + }, getLineHandle: function(x) { + if (ra(this, x)) + return Ki(this, x); + }, getLineNumber: function(x) { + return mc(x); + }, getLineHandleVisualStart: function(x) { + return typeof x == "number" && (x = Ki(this, x)), iA(x); + }, lineCount: function() { + return this.size; + }, firstLine: function() { + return this.first; + }, lastLine: function() { + return this.first + this.size - 1; + }, clipPos: function(x) { + return Ro(this, x); + }, getCursor: function(x) { + var S = this.sel.primary(); + return x == null || x == "head" ? S.head : x == "anchor" ? S.anchor : x == "end" || x == "to" || x === !1 ? S.to() : S.from(); + }, listSelections: function() { + return this.sel.ranges; + }, somethingSelected: function() { + return this.sel.somethingSelected(); + }, setCursor: e1(function(x, S, G) { + zk(this, Ro(this, typeof x == "number" ? pr(x, S || 0) : x), null, G); + }), setSelection: e1(function(x, S, G) { + zk(this, Ro(this, x), Ro(this, S || x), G); + }), extendSelection: e1(function(x, S, G) { + ym(this, Ro(this, x), S && Ro(this, S), G); + }), extendSelections: e1(function(x, S) { + K3(this, tr(this, x), S); + }), extendSelectionsBy: e1(function(x, S) { + K3(this, tr(this, Ci(this.sel.ranges, x)), S); + }), setSelections: e1(function(x, S, G) { + if (x.length) { + for (var j = [], V = 0; V < x.length; V++) + j[V] = new lu(Ro(this, x[V].anchor), Ro(this, x[V].head)); + S == null && (S = Math.min(x.length - 1, this.sel.primIndex)), bd(this, Mp(this.cm, j, S), G); + } + }), addSelection: e1(function(x, S, G) { + var j = this.sel.ranges.slice(0); + j.push(new lu(Ro(this, x), Ro(this, S || x))), bd(this, Mp(this.cm, j, j.length - 1), G); + }), getSelection: function(x) { + for (var S, G = this.sel.ranges, j = 0; j < G.length; j++) { + var V = Ta(this, G[j].from(), G[j].to()); + S = S ? S.concat(V) : V; + } + return x === !1 ? S : S.join(x || this.lineSeparator()); + }, getSelections: function(x) { + for (var S = [], G = this.sel.ranges, j = 0; j < G.length; j++) { + var V = Ta(this, G[j].from(), G[j].to()); + x !== !1 && (V = V.join(x || this.lineSeparator())), S[j] = V; + } + return S; + }, replaceSelection: function(x, S, G) { + for (var j = [], V = 0; V < this.sel.ranges.length; V++) + j[V] = x; + this.replaceSelections(j, S, G || "+input"); + }, replaceSelections: e1(function(x, S, G) { + for (var j = [], V = this.sel, we = 0; we < V.ranges.length; we++) { + var $e = V.ranges[we]; + j[we] = { from: $e.from(), to: $e.to(), text: this.splitLines(x[we]), origin: G }; + } + for (var ze = S && S != "end" && r_(this, j, S), nt = j.length - 1; nt >= 0; nt--) + uw(this, j[nt]); + ze ? xC(this, ze) : this.cm && rw(this.cm); + }), undo: e1(function() { + $v(this, "undo"); + }), redo: e1(function() { + $v(this, "redo"); + }), undoSelection: e1(function() { + $v(this, "undo", !0); + }), redoSelection: e1(function() { + $v(this, "redo", !0); + }), setExtending: function(x) { + this.extend = x; + }, getExtending: function() { + return this.extend; + }, historySize: function() { + for (var x = this.history, S = 0, G = 0, j = 0; j < x.done.length; j++) + x.done[j].ranges || ++S; + for (var V = 0; V < x.undone.length; V++) + x.undone[V].ranges || ++G; + return { undo: S, redo: G }; + }, clearHistory: function() { + var x = this; + this.history = new M5(this.history.maxGeneration), Fp(this, function(S) { + return S.history = x.history; + }, !0); + }, markClean: function() { + this.cleanGeneration = this.changeGeneration(!0); + }, changeGeneration: function(x) { + return x && (this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null), this.history.generation; + }, isClean: function(x) { + return this.history.generation == (x || this.cleanGeneration); + }, getHistory: function() { + return { done: X0(this.history.done), undone: X0(this.history.undone) }; + }, setHistory: function(x) { + var S = this.history = new M5(this.history.maxGeneration); + S.done = X0(x.done.slice(0), null, !0), S.undone = X0(x.undone.slice(0), null, !0); + }, setGutterMarker: e1(function(x, S, G) { + return hw(this, x, "gutter", function(j) { + var V = j.gutterMarkers || (j.gutterMarkers = {}); + return V[S] = G, !G && vr(V) && (j.gutterMarkers = null), !0; + }); + }), clearGutter: e1(function(x) { + var S = this; + this.iter(function(G) { + G.gutterMarkers && G.gutterMarkers[x] && hw(S, G, "gutter", function() { + return G.gutterMarkers[x] = null, vr(G.gutterMarkers) && (G.gutterMarkers = null), !0; + }); + }); + }), lineInfo: function(x) { + var S; + if (typeof x == "number") { + if (!ra(this, x) || (S = x, !(x = Ki(this, x)))) + return null; + } else if ((S = mc(x)) == null) + return null; + return { line: S, handle: x, text: x.text, gutterMarkers: x.gutterMarkers, textClass: x.textClass, bgClass: x.bgClass, wrapClass: x.wrapClass, widgets: x.widgets }; + }, addLineClass: e1(function(x, S, G) { + return hw(this, x, S == "gutter" ? "gutter" : "class", function(j) { + var V = S == "text" ? "textClass" : S == "background" ? "bgClass" : S == "gutter" ? "gutterClass" : "wrapClass"; + if (j[V]) { + if (Te(G).test(j[V])) + return !1; + j[V] += " " + G; + } else + j[V] = G; + return !0; + }); + }), removeLineClass: e1(function(x, S, G) { + return hw(this, x, S == "gutter" ? "gutter" : "class", function(j) { + var V = S == "text" ? "textClass" : S == "background" ? "bgClass" : S == "gutter" ? "gutterClass" : "wrapClass", we = j[V]; + if (!we) + return !1; + if (G == null) + j[V] = null; + else { + var $e = we.match(Te(G)); + if (!$e) + return !1; + var ze = $e.index + $e[0].length; + j[V] = we.slice(0, $e.index) + ($e.index && ze != we.length ? " " : "") + we.slice(ze) || null; + } + return !0; + }); + }), addLineWidget: e1(function(x, S, G) { + return Aw(this, x, S, G); + }), removeLineWidget: function(x) { + x.clear(); + }, markText: function(x, S, G) { + return xb(this, Ro(this, x), Ro(this, S), G, G && G.type || "range"); + }, setBookmark: function(x, S) { + var G = { replacedWith: S && (S.nodeType == null ? S.widget : S), insertLeft: S && S.insertLeft, clearWhenEmpty: !1, shared: S && S.shared, handleMouseEvents: S && S.handleMouseEvents }; + return xb(this, x = Ro(this, x), x, G, "bookmark"); + }, findMarksAt: function(x) { + var S = [], G = Ki(this, (x = Ro(this, x)).line).markedSpans; + if (G) + for (var j = 0; j < G.length; ++j) { + var V = G[j]; + (V.from == null || V.from <= x.ch) && (V.to == null || V.to >= x.ch) && S.push(V.marker.parent || V.marker); + } + return S; + }, findMarks: function(x, S, G) { + x = Ro(this, x), S = Ro(this, S); + var j = [], V = x.line; + return this.iter(x.line, S.line + 1, function(we) { + var $e = we.markedSpans; + if ($e) + for (var ze = 0; ze < $e.length; ze++) { + var nt = $e[ze]; + nt.to != null && V == x.line && x.ch >= nt.to || nt.from == null && V != x.line || nt.from != null && V == S.line && nt.from >= S.ch || G && !G(nt.marker) || j.push(nt.marker.parent || nt.marker); + } + ++V; + }), j; + }, getAllMarks: function() { + var x = []; + return this.iter(function(S) { + var G = S.markedSpans; + if (G) + for (var j = 0; j < G.length; ++j) + G[j].from != null && x.push(G[j].marker); + }), x; + }, posFromIndex: function(x) { + var S, G = this.first, j = this.lineSeparator().length; + return this.iter(function(V) { + var we = V.text.length + j; + if (we > x) + return S = x, !0; + x -= we, ++G; + }), Ro(this, pr(G, S)); + }, indexFromPos: function(x) { + var S = (x = Ro(this, x)).ch; + if (x.line < this.first || x.ch < 0) + return 0; + var G = this.lineSeparator().length; + return this.iter(this.first, x.line, function(j) { + S += j.text.length + G; + }), S; + }, copy: function(x) { + var S = new MA(Bl(this, this.first, this.first + this.size), this.modeOption, this.first, this.lineSep, this.direction); + return S.scrollTop = this.scrollTop, S.scrollLeft = this.scrollLeft, S.sel = this.sel, S.extend = !1, x && (S.history.undoDepth = this.history.undoDepth, S.setHistory(this.getHistory())), S; + }, linkedDoc: function(x) { + x || (x = {}); + var S = this.first, G = this.first + this.size; + x.from != null && x.from > S && (S = x.from), x.to != null && x.to < G && (G = x.to); + var j = new MA(Bl(this, S, G), x.mode || this.modeOption, S, this.lineSep, this.direction); + return x.sharedHist && (j.history = this.history), (this.linked || (this.linked = [])).push({ doc: j, sharedHist: x.sharedHist }), j.linked = [{ doc: this, isParent: !0, sharedHist: x.sharedHist }], s_(j, X3(this)), j; + }, unlinkDoc: function(x) { + if (x instanceof hf && (x = x.doc), this.linked) { + for (var S = 0; S < this.linked.length; ++S) + if (this.linked[S].doc == x) { + this.linked.splice(S, 1), x.unlinkDoc(this), c_(X3(this)); + break; + } + } + if (x.history == this.history) { + var G = [x.id]; + Fp(x, function(j) { + return G.push(j.id); + }, !0), x.history = new M5(null), x.history.done = X0(this.history.done, G), x.history.undone = X0(this.history.undone, G); + } + }, iterLinkedDocs: function(x) { + Fp(this, x); + }, getMode: function() { + return this.mode; + }, getEditor: function() { + return this.cm; + }, splitLines: function(x) { + return this.lineSep ? x.split(this.lineSep) : Ff(x); + }, lineSeparator: function() { + return this.lineSep || ` +`; + }, setDirection: e1(function(x) { + x != "rtl" && (x = "ltr"), x != this.direction && (this.direction = x, this.iter(function(S) { + return S.order = null; + }), this.cm && i_(this.cm)); + }) }), MA.prototype.eachLine = MA.prototype.iter; + var Kv = 0; + function l_(x) { + var S = this; + if (W3(S), !ni(S, x) && !Lg(S.display, x)) { + as(x), v && (Kv = +/* @__PURE__ */ new Date()); + var G = S2(S, x, !0), j = x.dataTransfer.files; + if (G && !S.isReadOnly()) + if (j && j.length && window.FileReader && window.File) + for (var V = j.length, we = Array(V), $e = 0, ze = function() { + ++$e == V && q1(S, function() { + var Vn = { from: G = Ro(S.doc, G), to: G, text: S.doc.splitLines(we.filter(function(mr) { + return mr != null; + }).join(S.doc.lineSeparator())), origin: "paste" }; + uw(S.doc, Vn), xC(S.doc, R2(Ro(S.doc, G), Ro(S.doc, Q2(Vn)))); + })(); + }, nt = function(Vn, mr) { + if (S.options.allowDropFileTypes && jt(S.options.allowDropFileTypes, Vn.type) == -1) + ze(); + else { + var si = new FileReader(); + si.onerror = function() { + return ze(); + }, si.onload = function() { + var Mi = si.result; + /[\x00-\x08\x0e-\x1f]{2}/.test(Mi) || (we[mr] = Mi), ze(); + }, si.readAsText(Vn); + } + }, at = 0; at < j.length; at++) + nt(j[at], at); + else { + if (S.state.draggingText && S.doc.sel.contains(G) > -1) + return S.state.draggingText(x), void setTimeout(function() { + return S.display.input.focus(); + }, 20); + try { + var Yt = x.dataTransfer.getData("Text"); + if (Yt) { + var Vt; + if (S.state.draggingText && !S.state.draggingText.copy && (Vt = S.listSelections()), wm(S.doc, R2(G, G)), Vt) + for (var Nn = 0; Nn < Vt.length; ++Nn) + Uv(S.doc, "", Vt[Nn].anchor, Vt[Nn].head, "drag"); + S.replaceSelection(Yt, "around", "paste"), S.display.input.focus(); + } + } catch { + } + } + } + } + function EC(x, S) { + if (v && (!x.state.draggingText || +/* @__PURE__ */ new Date() - Kv < 100)) + cs(S); + else if (!ni(x, S) && !Lg(x.display, S) && (S.dataTransfer.setData("Text", x.getSelection()), S.dataTransfer.effectAllowed = "copyMove", S.dataTransfer.setDragImage && !U)) { + var G = Me("img", null, null, "position: fixed; left: 0; top: 0;"); + G.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", F && (G.width = G.height = 1, x.display.wrapper.appendChild(G), G._top = G.offsetTop), S.dataTransfer.setDragImage(G, 0, 0), F && G.parentNode.removeChild(G); + } + } + function gw(x, S) { + var G = S2(x, S); + if (G) { + var j = document.createDocumentFragment(); + C5(x, G, j), x.display.dragCursor || (x.display.dragCursor = Me("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), x.display.lineSpace.insertBefore(x.display.dragCursor, x.display.cursorDiv)), te(x.display.dragCursor, j); + } + } + function W3(x) { + x.display.dragCursor && (x.display.lineSpace.removeChild(x.display.dragCursor), x.display.dragCursor = null); + } + function pw(x) { + if (document.getElementsByClassName) { + for (var S = document.getElementsByClassName("CodeMirror"), G = [], j = 0; j < S.length; j++) { + var V = S[j].CodeMirror; + V && G.push(V); + } + G.length && G[0].operation(function() { + for (var we = 0; we < G.length; we++) + x(G[we]); + }); + } + } + var S1 = !1; + function Pg() { + S1 || (TC(), S1 = !0); + } + function TC() { + var x; + ji(window, "resize", function() { + x == null && (x = setTimeout(function() { + x = null, pw(BC); + }, 100)); + }), ji(window, "blur", function() { + return pw(pm); + }); + } + function BC(x) { + var S = x.display; + S.cachedCharWidth = S.cachedTextHeight = S.cachedPaddingH = null, S.scrollbarsClipped = !1, x.setSize(); + } + for (var Rg = { 3: "Pause", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert", 46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod", 106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 145: "ScrollLock", 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'", 224: "Mod", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete", 63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert" }, Cb = 0; Cb < 10; Cb++) + Rg[Cb + 48] = Rg[Cb + 96] = String(Cb); + for (var V3 = 65; V3 <= 90; V3++) + Rg[V3] = String.fromCharCode(V3); + for (var mw = 1; mw <= 12; mw++) + Rg[mw + 111] = Rg[mw + 63235] = "F" + mw; + var Cm = {}; + function u_(x) { + var S, G, j, V, we = x.split(/-(?!$)/); + x = we[we.length - 1]; + for (var $e = 0; $e < we.length - 1; $e++) { + var ze = we[$e]; + if (/^(cmd|meta|m)$/i.test(ze)) + V = !0; + else if (/^a(lt)?$/i.test(ze)) + S = !0; + else if (/^(c|ctrl|control)$/i.test(ze)) + G = !0; + else { + if (!/^s(hift)?$/i.test(ze)) + throw new Error("Unrecognized modifier name: " + ze); + j = !0; + } + } + return S && (x = "Alt-" + x), G && (x = "Ctrl-" + x), V && (x = "Cmd-" + x), j && (x = "Shift-" + x), x; + } + function SC(x) { + var S = {}; + for (var G in x) + if (x.hasOwnProperty(G)) { + var j = x[G]; + if (/^(name|fallthrough|(de|at)tach)$/.test(G)) + continue; + if (j == "...") { + delete x[G]; + continue; + } + for (var V = Ci(G.split(" "), u_), we = 0; we < V.length; we++) { + var $e = void 0, ze = void 0; + we == V.length - 1 ? (ze = V.join(" "), $e = j) : (ze = V.slice(0, we + 1).join(" "), $e = "..."); + var nt = S[ze]; + if (nt) { + if (nt != $e) + throw new Error("Inconsistent bindings for " + ze); + } else + S[ze] = $e; + } + delete x[G]; + } + for (var at in S) + x[at] = S[at]; + return x; + } + function H2(x, S, G, j) { + var V = (S = Qg(S)).call ? S.call(x, j) : S[x]; + if (V === !1) + return "nothing"; + if (V === "...") + return "multi"; + if (V != null && G(V)) + return "handled"; + if (S.fallthrough) { + if (Object.prototype.toString.call(S.fallthrough) != "[object Array]") + return H2(x, S.fallthrough, G, j); + for (var we = 0; we < S.fallthrough.length; we++) { + var $e = H2(x, S.fallthrough[we], G, j); + if ($e) + return $e; + } + } + } + function Wk(x) { + var S = typeof x == "string" ? x : Rg[x.keyCode]; + return S == "Ctrl" || S == "Alt" || S == "Shift" || S == "Mod"; + } + function $5(x, S, G) { + var j = x; + return S.altKey && j != "Alt" && (x = "Alt-" + x), (ke ? S.metaKey : S.ctrlKey) && j != "Ctrl" && (x = "Ctrl-" + x), (ke ? S.ctrlKey : S.metaKey) && j != "Mod" && (x = "Cmd-" + x), !G && S.shiftKey && j != "Shift" && (x = "Shift-" + x), x; + } + function q3(x, S) { + if (F && x.keyCode == 34 && x.char) + return !1; + var G = Rg[x.keyCode]; + return G != null && !x.altGraphKey && (x.keyCode == 3 && x.code && (G = x.code), $5(G, x, S)); + } + function Qg(x) { + return typeof x == "string" ? Cm[x] : x; + } + function _b(x, S) { + for (var G = x.doc.sel.ranges, j = [], V = 0; V < G.length; V++) { + for (var we = S(G[V]); j.length && Pr(we.from, pt(j).to) <= 0; ) { + var $e = j.pop(); + if (Pr($e.from, we.from) < 0) { + we.from = $e.from; + break; + } + } + j.push(we); + } + IA(x, function() { + for (var ze = j.length - 1; ze >= 0; ze--) + Uv(x.doc, "", j[ze].from, j[ze].to, "+delete"); + rw(x); + }); + } + function bw(x, S, G) { + var j = Gr(x.text, S + G, G); + return j < 0 || j > x.text.length ? null : j; + } + function vw(x, S, G) { + var j = bw(x, S.ch, G); + return j == null ? null : new pr(S.line, j, G < 0 ? "after" : "before"); + } + function Vk(x, S, G, j, V) { + if (x) { + S.doc.direction == "rtl" && (V = -V); + var we = Jo(G, S.doc.direction); + if (we) { + var $e, ze = V < 0 ? pt(we) : we[0], nt = V < 0 == (ze.level == 1) ? "after" : "before"; + if (ze.level > 0 || S.doc.direction == "rtl") { + var at = aA(S, G); + $e = V < 0 ? G.text.length - 1 : 0; + var Yt = Od(S, at, $e).top; + $e = An(function(Vt) { + return Od(S, at, Vt).top == Yt; + }, V < 0 == (ze.level == 1) ? ze.from : ze.to - 1, $e), nt == "before" && ($e = bw(G, $e, 1)); + } else + $e = V < 0 ? ze.to : ze.from; + return new pr(j, $e, nt); + } + } + return new pr(j, V < 0 ? G.text.length : 0, V < 0 ? "before" : "after"); + } + function h_(x, S, G, j) { + var V = Jo(S, x.doc.direction); + if (!V) + return vw(S, G, j); + G.ch >= S.text.length ? (G.ch = S.text.length, G.sticky = "before") : G.ch <= 0 && (G.ch = 0, G.sticky = "after"); + var we = la(V, G.ch, G.sticky), $e = V[we]; + if (x.doc.direction == "ltr" && $e.level % 2 == 0 && (j > 0 ? $e.to > G.ch : $e.from < G.ch)) + return vw(S, G, j); + var ze, nt = function(_r, ao) { + return bw(S, _r instanceof pr ? _r.ch : _r, ao); + }, at = function(_r) { + return x.options.lineWrapping ? (ze = ze || aA(x, S), Am(x, S, ze, _r)) : { begin: 0, end: S.text.length }; + }, Yt = at(G.sticky == "before" ? nt(G, -1) : G.ch); + if (x.doc.direction == "rtl" || $e.level == 1) { + var Vt = $e.level == 1 == j < 0, Nn = nt(G, Vt ? 1 : -1); + if (Nn != null && (Vt ? Nn <= $e.to && Nn <= Yt.end : Nn >= $e.from && Nn >= Yt.begin)) { + var Vn = Vt ? "before" : "after"; + return new pr(G.line, Nn, Vn); + } + } + var mr = function(_r, ao, ea) { + for (var zi = function(hu, I1) { + return I1 ? new pr(G.line, nt(hu, 1), "before") : new pr(G.line, hu, "after"); + }; _r >= 0 && _r < V.length; _r += ao) { + var Qo = V[_r], $a = ao > 0 == (Qo.level != 1), Ll = $a ? ea.begin : nt(ea.end, -1); + if (Qo.from <= Ll && Ll < Qo.to || (Ll = $a ? Qo.from : nt(Qo.to, -1), ea.begin <= Ll && Ll < ea.end)) + return zi(Ll, $a); + } + }, si = mr(we + j, j, Yt); + if (si) + return si; + var Mi = j > 0 ? Yt.end : nt(Yt.begin, -1); + return Mi == null || j > 0 && Mi == S.text.length || !(si = mr(j > 0 ? 0 : V.length - 1, j, at(Mi))) ? null : si; + } + Cm.basic = { Left: "goCharLeft", Right: "goCharRight", Up: "goLineUp", Down: "goLineDown", End: "goLineEnd", Home: "goLineStartSmart", PageUp: "goPageUp", PageDown: "goPageDown", Delete: "delCharAfter", Backspace: "delCharBefore", "Shift-Backspace": "delCharBefore", Tab: "defaultTab", "Shift-Tab": "indentAuto", Enter: "newlineAndIndent", Insert: "toggleOverwrite", Esc: "singleSelection" }, Cm.pcDefault = { "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo", "Ctrl-Home": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Up": "goLineUp", "Ctrl-Down": "goLineDown", "Ctrl-Left": "goGroupLeft", "Ctrl-Right": "goGroupRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd", "Ctrl-Backspace": "delGroupBefore", "Ctrl-Delete": "delGroupAfter", "Ctrl-S": "save", "Ctrl-F": "find", "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll", "Ctrl-[": "indentLess", "Ctrl-]": "indentMore", "Ctrl-U": "undoSelection", "Shift-Ctrl-U": "redoSelection", "Alt-U": "redoSelection", fallthrough: "basic" }, Cm.emacsy = { "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown", "Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd", "Ctrl-V": "goPageDown", "Shift-Ctrl-V": "goPageUp", "Ctrl-D": "delCharAfter", "Ctrl-H": "delCharBefore", "Alt-D": "delWordAfter", "Alt-Backspace": "delWordBefore", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars", "Ctrl-O": "openLine" }, Cm.macDefault = { "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo", "Cmd-Home": "goDocStart", "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goGroupLeft", "Alt-Right": "goGroupRight", "Cmd-Left": "goLineLeft", "Cmd-Right": "goLineRight", "Alt-Backspace": "delGroupBefore", "Ctrl-Alt-Backspace": "delGroupAfter", "Alt-Delete": "delGroupAfter", "Cmd-S": "save", "Cmd-F": "find", "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll", "Cmd-[": "indentLess", "Cmd-]": "indentMore", "Cmd-Backspace": "delWrappedLineLeft", "Cmd-Delete": "delWrappedLineRight", "Cmd-U": "undoSelection", "Shift-Cmd-U": "redoSelection", "Ctrl-Up": "goDocStart", "Ctrl-Down": "goDocEnd", fallthrough: ["basic", "emacsy"] }, Cm.default = Y ? Cm.macDefault : Cm.pcDefault; + var j2 = { selectAll: Ng, singleSelection: function(x) { + return x.setSelection(x.getCursor("anchor"), x.getCursor("head"), wn); + }, killLine: function(x) { + return _b(x, function(S) { + if (S.empty()) { + var G = Ki(x.doc, S.head.line).text.length; + return S.head.ch == G && S.head.line < x.lastLine() ? { from: S.head, to: pr(S.head.line + 1, 0) } : { from: S.head, to: pr(S.head.line, G) }; + } + return { from: S.from(), to: S.to() }; + }); + }, deleteLine: function(x) { + return _b(x, function(S) { + return { from: pr(S.from().line, 0), to: Ro(x.doc, pr(S.to().line + 1, 0)) }; + }); + }, delLineLeft: function(x) { + return _b(x, function(S) { + return { from: pr(S.from().line, 0), to: S.from() }; + }); + }, delWrappedLineLeft: function(x) { + return _b(x, function(S) { + var G = x.charCoords(S.head, "div").top + 5; + return { from: x.coordsChar({ left: 0, top: G }, "div"), to: S.from() }; + }); + }, delWrappedLineRight: function(x) { + return _b(x, function(S) { + var G = x.charCoords(S.head, "div").top + 5, j = x.coordsChar({ left: x.display.lineDiv.offsetWidth + 100, top: G }, "div"); + return { from: S.from(), to: j }; + }); + }, undo: function(x) { + return x.undo(); + }, redo: function(x) { + return x.redo(); + }, undoSelection: function(x) { + return x.undoSelection(); + }, redoSelection: function(x) { + return x.redoSelection(); + }, goDocStart: function(x) { + return x.extendSelection(pr(x.firstLine(), 0)); + }, goDocEnd: function(x) { + return x.extendSelection(pr(x.lastLine())); + }, goLineStart: function(x) { + return x.extendSelectionsBy(function(S) { + return Eb(x, S.head.line); + }, { origin: "+move", bias: 1 }); + }, goLineStartSmart: function(x) { + return x.extendSelectionsBy(function(S) { + return _m(x, S.head); + }, { origin: "+move", bias: 1 }); + }, goLineEnd: function(x) { + return x.extendSelectionsBy(function(S) { + return K2(x, S.head.line); + }, { origin: "+move", bias: -1 }); + }, goLineRight: function(x) { + return x.extendSelectionsBy(function(S) { + var G = x.cursorCoords(S.head, "div").top + 5; + return x.coordsChar({ left: x.display.lineDiv.offsetWidth + 100, top: G }, "div"); + }, ln); + }, goLineLeft: function(x) { + return x.extendSelectionsBy(function(S) { + var G = x.cursorCoords(S.head, "div").top + 5; + return x.coordsChar({ left: 0, top: G }, "div"); + }, ln); + }, goLineLeftSmart: function(x) { + return x.extendSelectionsBy(function(S) { + var G = x.cursorCoords(S.head, "div").top + 5, j = x.coordsChar({ left: 0, top: G }, "div"); + return j.ch < x.getLine(j.line).search(/\S/) ? _m(x, S.head) : j; + }, ln); + }, goLineUp: function(x) { + return x.moveV(-1, "line"); + }, goLineDown: function(x) { + return x.moveV(1, "line"); + }, goPageUp: function(x) { + return x.moveV(-1, "page"); + }, goPageDown: function(x) { + return x.moveV(1, "page"); + }, goCharLeft: function(x) { + return x.moveH(-1, "char"); + }, goCharRight: function(x) { + return x.moveH(1, "char"); + }, goColumnLeft: function(x) { + return x.moveH(-1, "column"); + }, goColumnRight: function(x) { + return x.moveH(1, "column"); + }, goWordLeft: function(x) { + return x.moveH(-1, "word"); + }, goGroupRight: function(x) { + return x.moveH(1, "group"); + }, goGroupLeft: function(x) { + return x.moveH(-1, "group"); + }, goWordRight: function(x) { + return x.moveH(1, "word"); + }, delCharBefore: function(x) { + return x.deleteH(-1, "codepoint"); + }, delCharAfter: function(x) { + return x.deleteH(1, "char"); + }, delWordBefore: function(x) { + return x.deleteH(-1, "word"); + }, delWordAfter: function(x) { + return x.deleteH(1, "word"); + }, delGroupBefore: function(x) { + return x.deleteH(-1, "group"); + }, delGroupAfter: function(x) { + return x.deleteH(1, "group"); + }, indentAuto: function(x) { + return x.indentSelection("smart"); + }, indentMore: function(x) { + return x.indentSelection("add"); + }, indentLess: function(x) { + return x.indentSelection("subtract"); + }, insertTab: function(x) { + return x.replaceSelection(" "); + }, insertSoftTab: function(x) { + for (var S = [], G = x.listSelections(), j = x.options.tabSize, V = 0; V < G.length; V++) { + var we = G[V].from(), $e = kt(x.getLine(we.line), we.ch, j); + S.push($n(j - $e % j)); + } + x.replaceSelections(S); + }, defaultTab: function(x) { + x.somethingSelected() ? x.indentSelection("add") : x.execCommand("insertTab"); + }, transposeChars: function(x) { + return IA(x, function() { + for (var S = x.listSelections(), G = [], j = 0; j < S.length; j++) + if (S[j].empty()) { + var V = S[j].head, we = Ki(x.doc, V.line).text; + if (we) { + if (V.ch == we.length && (V = new pr(V.line, V.ch - 1)), V.ch > 0) + V = new pr(V.line, V.ch + 1), x.replaceRange(we.charAt(V.ch - 1) + we.charAt(V.ch - 2), pr(V.line, V.ch - 2), V, "+transpose"); + else if (V.line > x.doc.first) { + var $e = Ki(x.doc, V.line - 1).text; + $e && (V = new pr(V.line, 1), x.replaceRange(we.charAt(0) + x.doc.lineSeparator() + $e.charAt($e.length - 1), pr(V.line - 1, $e.length - 1), V, "+transpose")); + } + } + G.push(new lu(V, V)); + } + x.setSelections(G); + }); + }, newlineAndIndent: function(x) { + return IA(x, function() { + for (var S = x.listSelections(), G = S.length - 1; G >= 0; G--) + x.replaceRange(x.doc.lineSeparator(), S[G].anchor, S[G].head, "+input"); + S = x.listSelections(); + for (var j = 0; j < S.length; j++) + x.indentLine(S[j].from().line, null, !0); + rw(x); + }); + }, openLine: function(x) { + return x.replaceSelection(` +`, "start"); + }, toggleOverwrite: function(x) { + return x.toggleOverwrite(); + } }; + function Eb(x, S) { + var G = Ki(x.doc, S), j = iA(G); + return j != G && (S = mc(j)), Vk(!0, x, j, S, 1); + } + function K2(x, S) { + var G = Ki(x.doc, S), j = bn(G); + return j != G && (S = mc(j)), Vk(!0, x, G, S, -1); + } + function _m(x, S) { + var G = Eb(x, S.line), j = Ki(x.doc, G.line), V = Jo(j, x.doc.direction); + if (!V || V[0].level == 0) { + var we = Math.max(G.ch, j.text.search(/\S/)), $e = S.line == G.line && S.ch <= we && S.ch; + return pr(G.line, $e ? 0 : we, G.sticky); + } + return G; + } + function U5(x, S, G) { + if (typeof S == "string" && !(S = j2[S])) + return !1; + x.display.input.ensurePolled(); + var j = x.display.shift, V = !1; + try { + x.isReadOnly() && (x.state.suppressEdits = !0), G && (x.display.shift = !1), V = S(x) != Ft; + } finally { + x.display.shift = j, x.state.suppressEdits = !1; + } + return V; + } + function H5(x, S, G) { + for (var j = 0; j < x.state.keyMaps.length; j++) { + var V = H2(S, x.state.keyMaps[j], G, x); + if (V) + return V; + } + return x.options.extraKeys && H2(S, x.options.extraKeys, G, x) || H2(S, x.options.keyMap, G, x); + } + var Y3 = new Wt(); + function yw(x, S, G, j) { + var V = x.state.keySeq; + if (V) { + if (Wk(S)) + return "handled"; + if (/\'$/.test(S) ? x.state.keySeq = null : Y3.set(50, function() { + x.state.keySeq == V && (x.state.keySeq = null, x.display.input.reset()); + }), qk(x, V + " " + S, G, j)) + return !0; + } + return qk(x, S, G, j); + } + function qk(x, S, G, j) { + var V = H5(x, S, j); + return V == "multi" && (x.state.keySeq = S), V == "handled" && Dl(x, "keyHandled", x, S, G), V != "handled" && V != "multi" || (as(G), gb(x)), !!V; + } + function J3(x, S) { + var G = q3(S, !0); + return !!G && (S.shiftKey && !x.state.keySeq ? yw(x, "Shift-" + G, S, function(j) { + return U5(x, j, !0); + }) || yw(x, G, S, function(j) { + if (typeof j == "string" ? /^go[A-Z]/.test(j) : j.motion) + return U5(x, j); + }) : yw(x, G, S, function(j) { + return U5(x, j); + })); + } + function f_(x, S, G) { + return yw(x, "'" + G + "'", S, function(j) { + return U5(x, j, !0); + }); + } + var zv = null; + function LC(x) { + var S = this; + if (!(x.target && x.target != S.display.input.getField() || (S.curOp.focus = Je(), ni(S, x)))) { + v && k < 11 && x.keyCode == 27 && (x.returnValue = !1); + var G = x.keyCode; + S.display.shift = G == 16 || x.shiftKey; + var j = J3(S, x); + F && (zv = j ? G : null, j || G != 88 || Iu || !(Y ? x.metaKey : x.ctrlKey) || S.replaceSelection("", null, "cut")), f && !Y && !j && G == 46 && x.shiftKey && !x.ctrlKey && document.execCommand && document.execCommand("cut"), G != 18 || /\bCodeMirror-crosshair\b/.test(S.display.lineDiv.className) || Vh(S); + } + } + function Vh(x) { + var S = x.display.lineDiv; + function G(j) { + j.keyCode != 18 && j.altKey || (ie(S, "CodeMirror-crosshair"), Hr(document, "keyup", G), Hr(document, "mouseover", G)); + } + ot(S, "CodeMirror-crosshair"), ji(document, "keyup", G), ji(document, "mouseover", G); + } + function IC(x) { + x.keyCode == 16 && (this.doc.sel.shift = !1), ni(this, x); + } + function j5(x) { + var S = this; + if (!(x.target && x.target != S.display.input.getField() || Lg(S.display, x) || ni(S, x) || x.ctrlKey && !x.altKey || Y && x.metaKey)) { + var G = x.keyCode, j = x.charCode; + if (F && G == zv) + return zv = null, void as(x); + if (!F || x.which && !(x.which < 10) || !J3(S, x)) { + var V = String.fromCharCode(j ?? G); + V != "\b" && (f_(S, x, V) || S.display.input.onKeyPress(x)); + } + } + } + var Dp, Np, K5 = 400, z2 = function(x, S, G) { + this.time = x, this.pos = S, this.button = G; + }; + function $g(x, S) { + var G = +/* @__PURE__ */ new Date(); + return Np && Np.compare(G, x, S) ? (Dp = Np = null, "triple") : Dp && Dp.compare(G, x, S) ? (Np = new z2(G, x, S), Dp = null, "double") : (Dp = new z2(G, x, S), Np = null, "single"); + } + function Yk(x) { + var S = this, G = S.display; + if (!(ni(S, x) || G.activeTouch && G.input.supportsTouch())) { + if (G.input.ensurePolled(), G.shift = x.shiftKey, Lg(G, x)) + _ || (G.scroller.draggable = !1, setTimeout(function() { + return G.scroller.draggable = !0; + }, 100)); + else if (!G5(S, x)) { + var j = S2(S, x), V = ro(x), we = j ? $g(j, V) : "single"; + window.focus(), V == 1 && S.state.selectingText && S.state.selectingText(x), j && Ug(S, V, j, we, x) || (V == 1 ? j ? FC(S, j, we, x) : xa(x) == G.scroller && as(x) : V == 2 ? (j && ym(S.doc, j), setTimeout(function() { + return G.input.focus(); + }, 20)) : V == 3 && (de ? S.display.input.onContextMenu(x) : Nk(S))); + } + } + } + function Ug(x, S, G, j, V) { + var we = "Click"; + return j == "double" ? we = "Double" + we : j == "triple" && (we = "Triple" + we), yw(x, $5(we = (S == 1 ? "Left" : S == 2 ? "Middle" : "Right") + we, V), V, function($e) { + if (typeof $e == "string" && ($e = j2[$e]), !$e) + return !1; + var ze = !1; + try { + x.isReadOnly() && (x.state.suppressEdits = !0), ze = $e(x, G) != Ft; + } finally { + x.state.suppressEdits = !1; + } + return ze; + }); + } + function MC(x, S, G) { + var j = x.getOption("configureMouse"), V = j ? j(x, S, G) : {}; + if (V.unit == null) { + var we = ue ? G.shiftKey && G.metaKey : G.altKey; + V.unit = we ? "rectangle" : S == "single" ? "char" : S == "double" ? "word" : "line"; + } + return (V.extend == null || x.doc.extend) && (V.extend = x.doc.extend || G.shiftKey), V.addNew == null && (V.addNew = Y ? G.metaKey : G.ctrlKey), V.moveOnDrag == null && (V.moveOnDrag = !(Y ? G.altKey : G.ctrlKey)), V; + } + function FC(x, S, G, j) { + v ? setTimeout(je(pb, x), 0) : x.curOp.focus = Je(); + var V, we = MC(x, G, j), $e = x.doc.sel; + x.options.dragDrop && Zo && !x.isReadOnly() && G == "single" && (V = $e.contains(S)) > -1 && (Pr((V = $e.ranges[V]).from(), S) < 0 || S.xRel > 0) && (Pr(V.to(), S) > 0 || S.xRel < 0) ? z5(x, j, S, we) : Zk(x, j, S, we); + } + function z5(x, S, G, j) { + var V = x.display, we = !1, $e = q1(x, function(at) { + _ && (V.scroller.draggable = !1), x.state.draggingText = !1, Hr(V.wrapper.ownerDocument, "mouseup", $e), Hr(V.wrapper.ownerDocument, "mousemove", ze), Hr(V.scroller, "dragstart", nt), Hr(V.scroller, "drop", $e), we || (as(at), j.addNew || ym(x.doc, G, null, null, j.extend), _ && !U || v && k == 9 ? setTimeout(function() { + V.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), V.input.focus(); + }, 20) : V.input.focus()); + }), ze = function(at) { + we = we || Math.abs(S.clientX - at.clientX) + Math.abs(S.clientY - at.clientY) >= 10; + }, nt = function() { + return we = !0; + }; + _ && (V.scroller.draggable = !0), x.state.draggingText = $e, $e.copy = !j.moveOnDrag, V.scroller.dragDrop && V.scroller.dragDrop(), ji(V.wrapper.ownerDocument, "mouseup", $e), ji(V.wrapper.ownerDocument, "mousemove", ze), ji(V.scroller, "dragstart", nt), ji(V.scroller, "drop", $e), Nk(x), setTimeout(function() { + return V.input.focus(); + }, 20); + } + function Jk(x, S, G) { + if (G == "char") + return new lu(S, S); + if (G == "word") + return x.findWordAt(S); + if (G == "line") + return new lu(pr(S.line, 0), Ro(x.doc, pr(S.line + 1, 0))); + var j = G(x, S); + return new lu(j.from, j.to); + } + function Zk(x, S, G, j) { + var V = x.display, we = x.doc; + as(S); + var $e, ze, nt = we.sel, at = nt.ranges; + if (j.addNew && !j.extend ? (ze = we.sel.contains(G), $e = ze > -1 ? at[ze] : new lu(G, G)) : ($e = we.sel.primary(), ze = we.sel.primIndex), j.unit == "rectangle") + j.addNew || ($e = new lu(G, G)), G = S2(x, S, !0, !0), ze = -1; + else { + var Yt = Jk(x, G, j.unit); + $e = j.extend ? D5($e, Yt.anchor, Yt.head, j.extend) : Yt; + } + j.addNew ? ze == -1 ? (ze = at.length, bd(we, Mp(x, at.concat([$e]), ze), { scroll: !1, origin: "*mouse" })) : at.length > 1 && at[ze].empty() && j.unit == "char" && !j.extend ? (bd(we, Mp(x, at.slice(0, ze).concat(at.slice(ze + 1)), 0), { scroll: !1, origin: "*mouse" }), nt = we.sel) : wb(we, ze, $e, un) : (ze = 0, bd(we, new G0([$e], 0), un), nt = we.sel); + var Vt = G; + function Nn(ea) { + if (Pr(Vt, ea) != 0) + if (Vt = ea, j.unit == "rectangle") { + for (var zi = [], Qo = x.options.tabSize, $a = kt(Ki(we, G.line).text, G.ch, Qo), Ll = kt(Ki(we, ea.line).text, ea.ch, Qo), hu = Math.min($a, Ll), I1 = Math.max($a, Ll), ac = Math.min(G.line, ea.line), _f = Math.min(x.lastLine(), Math.max(G.line, ea.line)); ac <= _f; ac++) { + var J1 = Ki(we, ac).text, qh = an(J1, hu, Qo); + hu == I1 ? zi.push(new lu(pr(ac, qh), pr(ac, qh))) : J1.length > qh && zi.push(new lu(pr(ac, qh), pr(ac, an(J1, I1, Qo)))); + } + zi.length || zi.push(new lu(G, G)), bd(we, Mp(x, nt.ranges.slice(0, ze).concat(zi), ze), { origin: "*mouse", scroll: !1 }), x.scrollIntoView(ea); + } else { + var Rd, oA = $e, Wu = Jk(x, ea, j.unit), Yh = oA.anchor; + Pr(Wu.anchor, Yh) > 0 ? (Rd = Wu.head, Yh = Sn(oA.from(), Wu.anchor)) : (Rd = Wu.anchor, Yh = wf(oA.to(), Wu.head)); + var t1 = nt.ranges.slice(0); + t1[ze] = ex(x, new lu(Ro(we, Yh), Rd)), bd(we, Mp(x, t1, ze), un); + } + } + var Vn = V.wrapper.getBoundingClientRect(), mr = 0; + function si(ea) { + var zi = ++mr, Qo = S2(x, ea, !0, j.unit == "rectangle"); + if (Qo) + if (Pr(Qo, Vt) != 0) { + x.curOp.focus = Je(), Nn(Qo); + var $a = nw(V, we); + (Qo.line >= $a.to || Qo.line < $a.from) && setTimeout(q1(x, function() { + mr == zi && si(ea); + }), 150); + } else { + var Ll = ea.clientY < Vn.top ? -20 : ea.clientY > Vn.bottom ? 20 : 0; + Ll && setTimeout(q1(x, function() { + mr == zi && (V.scroller.scrollTop += Ll, si(ea)); + }), 50); + } + } + function Mi(ea) { + x.state.selectingText = !1, mr = 1 / 0, ea && (as(ea), V.input.focus()), Hr(V.wrapper.ownerDocument, "mousemove", _r), Hr(V.wrapper.ownerDocument, "mouseup", ao), we.history.lastSelOrigin = null; + } + var _r = q1(x, function(ea) { + ea.buttons !== 0 && ro(ea) ? si(ea) : Mi(ea); + }), ao = q1(x, Mi); + x.state.selectingText = ao, ji(V.wrapper.ownerDocument, "mousemove", _r), ji(V.wrapper.ownerDocument, "mouseup", ao); + } + function ex(x, S) { + var G = S.anchor, j = S.head, V = Ki(x.doc, G.line); + if (Pr(G, j) == 0 && G.sticky == j.sticky) + return S; + var we = Jo(V); + if (!we) + return S; + var $e = la(we, G.ch, G.sticky), ze = we[$e]; + if (ze.from != G.ch && ze.to != G.ch) + return S; + var nt, at = $e + (ze.from == G.ch == (ze.level != 1) ? 0 : 1); + if (at == 0 || at == we.length) + return S; + if (j.line != G.line) + nt = (j.line - G.line) * (x.doc.direction == "ltr" ? 1 : -1) > 0; + else { + var Yt = la(we, j.ch, j.sticky), Vt = Yt - $e || (j.ch - G.ch) * (ze.level == 1 ? -1 : 1); + nt = Yt == at - 1 || Yt == at ? Vt < 0 : Vt > 0; + } + var Nn = we[at + (nt ? -1 : 0)], Vn = nt == (Nn.level == 1), mr = Vn ? Nn.from : Nn.to, si = Vn ? "after" : "before"; + return G.ch == mr && G.sticky == si ? S : new lu(new pr(G.line, mr, si), j); + } + function tx(x, S, G, j) { + var V, we; + if (S.touches) + V = S.touches[0].clientX, we = S.touches[0].clientY; + else + try { + V = S.clientX, we = S.clientY; + } catch { + return !1; + } + if (V >= Math.floor(x.display.gutters.getBoundingClientRect().right)) + return !1; + j && as(S); + var $e = x.display, ze = $e.lineDiv.getBoundingClientRect(); + if (we > ze.bottom || !Na(x, G)) + return So(S); + we -= ze.top - $e.viewOffset; + for (var nt = 0; nt < x.display.gutterSpecs.length; ++nt) { + var at = $e.gutters.childNodes[nt]; + if (at && at.getBoundingClientRect().right >= V) + return Yr(x, G, x, wh(x.doc, we), x.display.gutterSpecs[nt].className, S), So(S); + } + } + function G5(x, S) { + return tx(x, S, "gutterClick", !0); + } + function ww(x, S) { + Lg(x.display, S) || uu(x, S) || ni(x, S, "contextmenu") || de || x.display.input.onContextMenu(S); + } + function uu(x, S) { + return !!Na(x, "gutterContextMenu") && tx(x, S, "gutterContextMenu", !1); + } + function Z3(x) { + x.display.wrapper.className = x.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + x.options.theme.replace(/(^|\s)\s*/g, " cm-s-"), BA(x); + } + z2.prototype.compare = function(x, S, G) { + return this.time + K5 > x && Pr(S, this.pos) == 0 && G == this.button; + }; + var Em = { toString: function() { + return "CodeMirror.Init"; + } }, Pl = {}, Ou = {}; + function Po(x) { + var S = x.optionHandlers; + function G(j, V, we, $e) { + x.defaults[j] = V, we && (S[j] = $e ? function(ze, nt, at) { + at != Em && we(ze, nt, at); + } : we); + } + x.defineOption = G, x.Init = Em, G("value", "", function(j, V) { + return j.setValue(V); + }, !0), G("mode", null, function(j, V) { + j.doc.modeOption = V, I5(j); + }, !0), G("indentUnit", 2, I5, !0), G("indentWithTabs", !1), G("smartIndent", !0), G("tabSize", 4, function(j) { + wa(j), BA(j), pd(j); + }, !0), G("lineSeparator", null, function(j, V) { + if (j.doc.lineSep = V, V) { + var we = [], $e = j.doc.first; + j.doc.iter(function(nt) { + for (var at = 0; ; ) { + var Yt = nt.text.indexOf(V, at); + if (Yt == -1) + break; + at = Yt + V.length, we.push(pr($e, Yt)); + } + $e++; + }); + for (var ze = we.length - 1; ze >= 0; ze--) + Uv(j.doc, V, we[ze], pr(we[ze].line, we[ze].ch + V.length)); + } + }), G("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function(j, V, we) { + j.state.specialChars = new RegExp(V.source + (V.test(" ") ? "" : "| "), "g"), we != Em && j.refresh(); + }), G("specialCharPlaceholder", ic, function(j) { + return j.refresh(); + }, !0), G("electricChars", !0), G("inputStyle", he ? "contenteditable" : "textarea", function() { + throw new Error("inputStyle can not (yet) be changed in a running editor"); + }, !0), G("spellcheck", !1, function(j, V) { + return j.getInputField().spellcheck = V; + }, !0), G("autocorrect", !1, function(j, V) { + return j.getInputField().autocorrect = V; + }, !0), G("autocapitalize", !1, function(j, V) { + return j.getInputField().autocapitalize = V; + }, !0), G("rtlMoveVisually", !le), G("wholeLineUpdateBefore", !0), G("theme", "default", function(j) { + Z3(j), vb(j); + }, !0), G("keyMap", "default", function(j, V, we) { + var $e = Qg(V), ze = we != Em && Qg(we); + ze && ze.detach && ze.detach(j, $e), $e.attach && $e.attach(j, ze || null); + }), G("extraKeys", null), G("configureMouse", null), G("lineWrapping", !1, d_, !0), G("gutters", [], function(j, V) { + j.display.gutterSpecs = S5(V, j.options.lineNumbers), vb(j); + }, !0), G("fixedGutter", !0, function(j, V) { + j.display.gutters.style.left = V ? B2(j.display) + "px" : "0", j.refresh(); + }, !0), G("coverGutterNextToScrollbar", !1, function(j) { + return mm(j); + }, !0), G("scrollbarStyle", "native", function(j) { + D2(j), mm(j), j.display.scrollbars.setScrollTop(j.doc.scrollTop), j.display.scrollbars.setScrollLeft(j.doc.scrollLeft); + }, !0), G("lineNumbers", !1, function(j, V) { + j.display.gutterSpecs = S5(j.options.gutters, V), vb(j); + }, !0), G("firstLineNumber", 1, vb, !0), G("lineNumberFormatter", function(j) { + return j; + }, vb, !0), G("showCursorWhenSelecting", !1, I2, !0), G("resetSelectionOnContextMenu", !0), G("lineWiseCopyCut", !0), G("pasteLinesPerSelection", !0), G("selectionsMayTouch", !1), G("readOnly", !1, function(j, V) { + V == "nocursor" && (pm(j), j.display.input.blur()), j.display.input.readOnlyChanged(V); + }), G("screenReaderLabel", null, function(j, V) { + V = V === "" ? null : V, j.display.input.screenReaderLabelChanged(V); + }), G("disableInput", !1, function(j, V) { + V || j.display.input.reset(); + }, !0), G("dragDrop", !0, X5), G("allowDropFileTypes", null), G("cursorBlinkRate", 530), G("cursorScrollMargin", 0), G("cursorHeight", 1, I2, !0), G("singleCursorHeightPerLine", !0, I2, !0), G("workTime", 100), G("workDelay", 100), G("flattenSpans", !0, wa, !0), G("addModeClass", !1, wa, !0), G("pollInterval", 100), G("undoDepth", 200, function(j, V) { + return j.doc.history.undoDepth = V; + }), G("historyEventDelay", 1250), G("viewportMargin", 10, function(j) { + return j.refresh(); + }, !0), G("maxHighlightLength", 1e4, wa, !0), G("moveInputWithCursor", !0, function(j, V) { + V || j.display.input.resetPosition(); + }), G("tabindex", null, function(j, V) { + return j.display.input.getField().tabIndex = V || ""; + }), G("autofocus", null), G("direction", "ltr", function(j, V) { + return j.doc.setDirection(V); + }, !0), G("phrases", null); + } + function X5(x, S, G) { + if (!S != !(G && G != Em)) { + var j = x.display.dragFunctions, V = S ? ji : Hr; + V(x.display.scroller, "dragstart", j.start), V(x.display.scroller, "dragenter", j.enter), V(x.display.scroller, "dragover", j.over), V(x.display.scroller, "dragleave", j.leave), V(x.display.scroller, "drop", j.drop); + } + } + function d_(x) { + x.options.lineWrapping ? (ot(x.display.wrapper, "CodeMirror-wrap"), x.display.sizer.style.minWidth = "", x.display.sizerWidth = null) : (ie(x.display.wrapper, "CodeMirror-wrap"), s0(x)), Ab(x), pd(x), BA(x), setTimeout(function() { + return mm(x); + }, 100); + } + function hf(x, S) { + var G = this; + if (!(this instanceof hf)) + return new hf(x, S); + this.options = S = S ? Qe(S) : {}, Qe(Pl, S, !1); + var j = S.value; + typeof j == "string" ? j = new MA(j, S.mode, null, S.lineSeparator, S.direction) : S.mode && (j.modeOption = S.mode), this.doc = j; + var V = new hf.inputStyles[S.inputStyle](this), we = this.display = new t_(x, j, V, S); + for (var $e in we.wrapper.CodeMirror = this, Z3(this), S.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), D2(this), this.state = { keyMaps: [], overlays: [], modeGen: 0, overwrite: !1, delayingBlurEvent: !1, focused: !1, suppressEdits: !1, pasteIncoming: -1, cutIncoming: -1, selectingText: !1, draggingText: !1, highlight: new Wt(), keySeq: null, specialChars: null }, S.autofocus && !he && we.input.focus(), v && k < 11 && setTimeout(function() { + return G.display.input.reset(!0); + }, 20), kw(this), Pg(), mb(this), this.curOp.forceUpdate = !0, U3(this, j), S.autofocus && !he || this.hasFocus() ? setTimeout(function() { + G.hasFocus() && !G.state.focused && ew(G); + }, 20) : pm(this), Ou) + Ou.hasOwnProperty($e) && Ou[$e](this, S[$e], Em); + Dg(this), S.finishInit && S.finishInit(this); + for (var ze = 0; ze < Tb.length; ++ze) + Tb[ze](this); + bb(this), _ && S.lineWrapping && getComputedStyle(we.lineDiv).textRendering == "optimizelegibility" && (we.lineDiv.style.textRendering = "auto"); + } + function kw(x) { + var S = x.display; + ji(S.scroller, "mousedown", q1(x, Yk)), ji(S.scroller, "dblclick", v && k < 11 ? q1(x, function(nt) { + if (!ni(x, nt)) { + var at = S2(x, nt); + if (at && !G5(x, nt) && !Lg(x.display, nt)) { + as(nt); + var Yt = x.findWordAt(at); + ym(x.doc, Yt.anchor, Yt.head); + } + } + }) : function(nt) { + return ni(x, nt) || as(nt); + }), ji(S.scroller, "contextmenu", function(nt) { + return ww(x, nt); + }), ji(S.input.getField(), "contextmenu", function(nt) { + S.scroller.contains(nt.target) || ww(x, nt); + }); + var G, j = { end: 0 }; + function V() { + S.activeTouch && (G = setTimeout(function() { + return S.activeTouch = null; + }, 1e3), (j = S.activeTouch).end = +/* @__PURE__ */ new Date()); + } + function we(nt) { + if (nt.touches.length != 1) + return !1; + var at = nt.touches[0]; + return at.radiusX <= 1 && at.radiusY <= 1; + } + function $e(nt, at) { + if (at.left == null) + return !0; + var Yt = at.left - nt.left, Vt = at.top - nt.top; + return Yt * Yt + Vt * Vt > 400; + } + ji(S.scroller, "touchstart", function(nt) { + if (!ni(x, nt) && !we(nt) && !G5(x, nt)) { + S.input.ensurePolled(), clearTimeout(G); + var at = +/* @__PURE__ */ new Date(); + S.activeTouch = { start: at, moved: !1, prev: at - j.end <= 300 ? j : null }, nt.touches.length == 1 && (S.activeTouch.left = nt.touches[0].pageX, S.activeTouch.top = nt.touches[0].pageY); + } + }), ji(S.scroller, "touchmove", function() { + S.activeTouch && (S.activeTouch.moved = !0); + }), ji(S.scroller, "touchend", function(nt) { + var at = S.activeTouch; + if (at && !Lg(S, nt) && at.left != null && !at.moved && /* @__PURE__ */ new Date() - at.start < 300) { + var Yt, Vt = x.coordsChar(S.activeTouch, "page"); + Yt = !at.prev || $e(at, at.prev) ? new lu(Vt, Vt) : !at.prev.prev || $e(at, at.prev.prev) ? x.findWordAt(Vt) : new lu(pr(Vt.line, 0), Ro(x.doc, pr(Vt.line + 1, 0))), x.setSelection(Yt.anchor, Yt.head), x.focus(), as(nt); + } + V(); + }), ji(S.scroller, "touchcancel", V), ji(S.scroller, "scroll", function() { + S.scroller.clientHeight && (Dv(x, S.scroller.scrollTop), Nv(x, S.scroller.scrollLeft, !0), Yr(x, "scroll", x)); + }), ji(S.scroller, "mousewheel", function(nt) { + return jk(x, nt); + }), ji(S.scroller, "DOMMouseScroll", function(nt) { + return jk(x, nt); + }), ji(S.wrapper, "scroll", function() { + return S.wrapper.scrollTop = S.wrapper.scrollLeft = 0; + }), S.dragFunctions = { enter: function(nt) { + ni(x, nt) || cs(nt); + }, over: function(nt) { + ni(x, nt) || (gw(x, nt), cs(nt)); + }, start: function(nt) { + return EC(x, nt); + }, drop: q1(x, l_), leave: function(nt) { + ni(x, nt) || W3(x); + } }; + var ze = S.input.getField(); + ji(ze, "keyup", function(nt) { + return IC.call(x, nt); + }), ji(ze, "keydown", q1(x, LC)), ji(ze, "keypress", q1(x, j5)), ji(ze, "focus", function(nt) { + return ew(x, nt); + }), ji(ze, "blur", function(nt) { + return pm(x, nt); + }); + } + hf.defaults = Pl, hf.optionHandlers = Ou; + var Tb = []; + function xu(x, S, G, j) { + var V, we = x.doc; + G == null && (G = "add"), G == "smart" && (we.mode.indent ? V = ya(x, S).state : G = "prev"); + var $e = x.options.tabSize, ze = Ki(we, S), nt = kt(ze.text, null, $e); + ze.stateAfter && (ze.stateAfter = null); + var at, Yt = ze.text.match(/^\s*/)[0]; + if (j || /\S/.test(ze.text)) { + if (G == "smart" && ((at = we.mode.indent(V, ze.text.slice(Yt.length), ze.text)) == Ft || at > 150)) { + if (!j) + return; + G = "prev"; + } + } else + at = 0, G = "not"; + G == "prev" ? at = S > we.first ? kt(Ki(we, S - 1).text, null, $e) : 0 : G == "add" ? at = nt + x.options.indentUnit : G == "subtract" ? at = nt - x.options.indentUnit : typeof G == "number" && (at = nt + G), at = Math.max(0, at); + var Vt = "", Nn = 0; + if (x.options.indentWithTabs) + for (var Vn = Math.floor(at / $e); Vn; --Vn) + Nn += $e, Vt += " "; + if (Nn < at && (Vt += $n(at - Nn)), Vt != Yt) + return Uv(we, Vt, pr(S, 0), pr(S, Yt.length), "+input"), ze.stateAfter = null, !0; + for (var mr = 0; mr < we.sel.ranges.length; mr++) { + var si = we.sel.ranges[mr]; + if (si.head.line == S && si.head.ch < Yt.length) { + var Mi = pr(S, Yt.length); + wb(we, mr, new lu(Mi, Mi)); + break; + } + } + } + hf.defineInitHook = function(x) { + return Tb.push(x); + }; + var Y1 = null; + function In(x) { + Y1 = x; + } + function Tm(x, S, G, j, V) { + var we = x.doc; + x.display.shift = !1, j || (j = we.sel); + var $e = +/* @__PURE__ */ new Date() - 200, ze = V == "paste" || x.state.pasteIncoming > $e, nt = Ff(S), at = null; + if (ze && j.ranges.length > 1) + if (Y1 && Y1.text.join(` +`) == S) { + if (j.ranges.length % Y1.text.length == 0) { + at = []; + for (var Yt = 0; Yt < Y1.text.length; Yt++) + at.push(we.splitLines(Y1.text[Yt])); + } + } else + nt.length == j.ranges.length && x.options.pasteLinesPerSelection && (at = Ci(nt, function(_r) { + return [_r]; + })); + for (var Vt = x.curOp.updateInput, Nn = j.ranges.length - 1; Nn >= 0; Nn--) { + var Vn = j.ranges[Nn], mr = Vn.from(), si = Vn.to(); + Vn.empty() && (G && G > 0 ? mr = pr(mr.line, mr.ch - G) : x.state.overwrite && !ze ? si = pr(si.line, Math.min(Ki(we, si.line).text.length, si.ch + pt(nt).length)) : ze && Y1 && Y1.lineWise && Y1.text.join(` +`) == nt.join(` +`) && (mr = si = pr(mr.line, 0))); + var Mi = { from: mr, to: si, text: at ? at[Nn % at.length] : nt, origin: V || (ze ? "paste" : x.state.cutIncoming > $e ? "cut" : "+input") }; + uw(x.doc, Mi), Dl(x, "inputRead", x, Mi); + } + S && !ze && xw(x, S), rw(x), x.curOp.updateInput < 2 && (x.curOp.updateInput = Vt), x.curOp.typing = !0, x.state.pasteIncoming = x.state.cutIncoming = -1; + } + function Bb(x, S) { + var G = x.clipboardData && x.clipboardData.getData("Text"); + if (G) + return x.preventDefault(), S.isReadOnly() || S.options.disableInput || IA(S, function() { + return Tm(S, G, 0, null, "paste"); + }), !0; + } + function xw(x, S) { + if (x.options.electricChars && x.options.smartIndent) + for (var G = x.doc.sel, j = G.ranges.length - 1; j >= 0; j--) { + var V = G.ranges[j]; + if (!(V.head.ch > 100 || j && G.ranges[j - 1].head.line == V.head.line)) { + var we = x.getModeAt(V.head), $e = !1; + if (we.electricChars) { + for (var ze = 0; ze < we.electricChars.length; ze++) + if (S.indexOf(we.electricChars.charAt(ze)) > -1) { + $e = xu(x, V.head.line, "smart"); + break; + } + } else + we.electricInput && we.electricInput.test(Ki(x.doc, V.head.line).text.slice(0, V.head.ch)) && ($e = xu(x, V.head.line, "smart")); + $e && Dl(x, "electricInput", x, V.head.line); + } + } + } + function f1(x) { + for (var S = [], G = [], j = 0; j < x.doc.sel.ranges.length; j++) { + var V = x.doc.sel.ranges[j].head.line, we = { anchor: pr(V, 0), head: pr(V + 1, 0) }; + G.push(we), S.push(x.getRange(we.anchor, we.head)); + } + return { text: S, ranges: G }; + } + function L1(x, S, G, j) { + x.setAttribute("autocorrect", G ? "" : "off"), x.setAttribute("autocapitalize", j ? "" : "off"), x.setAttribute("spellcheck", !!S); + } + function nx() { + var x = Me("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"), S = Me("div", [x], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); + return _ ? x.style.width = "1000px" : x.setAttribute("wrap", "off"), R && (x.style.border = "1px solid black"), L1(x), S; + } + function W5(x) { + var S = x.optionHandlers, G = x.helpers = {}; + x.prototype = { constructor: x, focus: function() { + window.focus(), this.display.input.focus(); + }, setOption: function(j, V) { + var we = this.options, $e = we[j]; + we[j] == V && j != "mode" || (we[j] = V, S.hasOwnProperty(j) && q1(this, S[j])(this, V, $e), Yr(this, "optionChange", this, j)); + }, getOption: function(j) { + return this.options[j]; + }, getDoc: function() { + return this.doc; + }, addKeyMap: function(j, V) { + this.state.keyMaps[V ? "push" : "unshift"](Qg(j)); + }, removeKeyMap: function(j) { + for (var V = this.state.keyMaps, we = 0; we < V.length; ++we) + if (V[we] == j || V[we].name == j) + return V.splice(we, 1), !0; + }, addOverlay: Pd(function(j, V) { + var we = j.token ? j : x.getMode(this.options, j); + if (we.startState) + throw new Error("Overlays may not be stateful."); + ut(this.state.overlays, { mode: we, modeSpec: j, opaque: V && V.opaque, priority: V && V.priority || 0 }, function($e) { + return $e.priority; + }), this.state.modeGen++, pd(this); + }), removeOverlay: Pd(function(j) { + for (var V = this.state.overlays, we = 0; we < V.length; ++we) { + var $e = V[we].modeSpec; + if ($e == j || typeof j == "string" && $e.name == j) + return V.splice(we, 1), this.state.modeGen++, void pd(this); + } + }), indentLine: Pd(function(j, V, we) { + typeof V != "string" && typeof V != "number" && (V = V == null ? this.options.smartIndent ? "smart" : "prev" : V ? "add" : "subtract"), ra(this.doc, j) && xu(this, j, V, we); + }), indentSelection: Pd(function(j) { + for (var V = this.doc.sel.ranges, we = -1, $e = 0; $e < V.length; $e++) { + var ze = V[$e]; + if (ze.empty()) + ze.head.line > we && (xu(this, ze.head.line, j, !0), we = ze.head.line, $e == this.doc.sel.primIndex && rw(this)); + else { + var nt = ze.from(), at = ze.to(), Yt = Math.max(we, nt.line); + we = Math.min(this.lastLine(), at.line - (at.ch ? 0 : 1)) + 1; + for (var Vt = Yt; Vt < we; ++Vt) + xu(this, Vt, j); + var Nn = this.doc.sel.ranges; + nt.ch == 0 && V.length == Nn.length && Nn[$e].from().ch > 0 && wb(this.doc, $e, new lu(nt, Nn[$e].to()), wn); + } + } + }), getTokenAt: function(j, V) { + return Mu(this, j, V); + }, getLineTokens: function(j, V) { + return Mu(this, pr(j), V, !0); + }, getTokenTypeAt: function(j) { + j = Ro(this.doc, j); + var V, we = Aa(this, Ki(this.doc, j.line)), $e = 0, ze = (we.length - 1) / 2, nt = j.ch; + if (nt == 0) + V = we[2]; + else + for (; ; ) { + var at = $e + ze >> 1; + if ((at ? we[2 * at - 1] : 0) >= nt) + ze = at; + else { + if (!(we[2 * at + 1] < nt)) { + V = we[2 * at + 2]; + break; + } + $e = at + 1; + } + } + var Yt = V ? V.indexOf("overlay ") : -1; + return Yt < 0 ? V : Yt == 0 ? null : V.slice(0, Yt - 1); + }, getModeAt: function(j) { + var V = this.doc.mode; + return V.innerMode ? x.innerMode(V, this.getTokenAt(j).state).mode : V; + }, getHelper: function(j, V) { + return this.getHelpers(j, V)[0]; + }, getHelpers: function(j, V) { + var we = []; + if (!G.hasOwnProperty(V)) + return we; + var $e = G[V], ze = this.getModeAt(j); + if (typeof ze[V] == "string") + $e[ze[V]] && we.push($e[ze[V]]); + else if (ze[V]) + for (var nt = 0; nt < ze[V].length; nt++) { + var at = $e[ze[V][nt]]; + at && we.push(at); + } + else + ze.helperType && $e[ze.helperType] ? we.push($e[ze.helperType]) : $e[ze.name] && we.push($e[ze.name]); + for (var Yt = 0; Yt < $e._global.length; Yt++) { + var Vt = $e._global[Yt]; + Vt.pred(ze, this) && jt(we, Vt.val) == -1 && we.push(Vt.val); + } + return we; + }, getStateAfter: function(j, V) { + var we = this.doc; + return ya(this, (j = Nc(we, j ?? we.first + we.size - 1)) + 1, V).state; + }, cursorCoords: function(j, V) { + var we = this.doc.sel.primary(); + return Wh(this, j == null ? we.head : typeof j == "object" ? Ro(this.doc, j) : j ? we.from() : we.to(), V || "page"); + }, charCoords: function(j, V) { + return I3(this, Ro(this.doc, j), V || "page"); + }, coordsChar: function(j, V) { + return SA(this, (j = Ok(this, j, V || "page")).left, j.top); + }, lineAtHeight: function(j, V) { + return j = Ok(this, { top: j, left: 0 }, V || "page").top, wh(this.doc, j + this.display.viewOffset); + }, heightAtLine: function(j, V, we) { + var $e, ze = !1; + if (typeof j == "number") { + var nt = this.doc.first + this.doc.size - 1; + j < this.doc.first ? j = this.doc.first : j > nt && (j = nt, ze = !0), $e = Ki(this.doc, j); + } else + $e = j; + return Jy(this, $e, { top: 0, left: 0 }, V || "page", we || ze).top + (ze ? this.doc.height - uf($e) : 0); + }, defaultTextHeight: function() { + return T2(this.display); + }, defaultCharWidth: function() { + return Nd(this.display); + }, getViewport: function() { + return { from: this.display.viewFrom, to: this.display.viewTo }; + }, addWidget: function(j, V, we, $e, ze) { + var nt = this.display, at = (j = Wh(this, Ro(this.doc, j))).bottom, Yt = j.left; + if (V.style.position = "absolute", V.setAttribute("cm-ignore-events", "true"), this.display.input.setUneditable(V), nt.sizer.appendChild(V), $e == "over") + at = j.top; + else if ($e == "above" || $e == "near") { + var Vt = Math.max(nt.wrapper.clientHeight, this.doc.height), Nn = Math.max(nt.sizer.clientWidth, nt.lineSpace.clientWidth); + ($e == "above" || j.bottom + V.offsetHeight > Vt) && j.top > V.offsetHeight ? at = j.top - V.offsetHeight : j.bottom + V.offsetHeight <= Vt && (at = j.bottom), Yt + V.offsetWidth > Nn && (Yt = Nn - V.offsetWidth); + } + V.style.top = at + "px", V.style.left = V.style.right = "", ze == "right" ? (Yt = nt.sizer.clientWidth - V.offsetWidth, V.style.right = "0px") : (ze == "left" ? Yt = 0 : ze == "middle" && (Yt = (nt.sizer.clientWidth - V.offsetWidth) / 2), V.style.left = Yt + "px"), we && gC(this, { left: Yt, top: at, right: Yt + V.offsetWidth, bottom: at + V.offsetHeight }); + }, triggerOnKeyDown: Pd(LC), triggerOnKeyPress: Pd(j5), triggerOnKeyUp: IC, triggerOnMouseDown: Pd(Yk), execCommand: function(j) { + if (j2.hasOwnProperty(j)) + return j2[j].call(null, this); + }, triggerElectric: Pd(function(j) { + xw(this, j); + }), findPosH: function(j, V, we, $e) { + var ze = 1; + V < 0 && (ze = -1, V = -V); + for (var nt = Ro(this.doc, j), at = 0; at < V && !(nt = G2(this.doc, nt, ze, we, $e)).hitSide; ++at) + ; + return nt; + }, moveH: Pd(function(j, V) { + var we = this; + this.extendSelectionsBy(function($e) { + return we.display.shift || we.doc.extend || $e.empty() ? G2(we.doc, $e.head, j, V, we.options.rtlMoveVisually) : j < 0 ? $e.from() : $e.to(); + }, ln); + }), deleteH: Pd(function(j, V) { + var we = this.doc.sel, $e = this.doc; + we.somethingSelected() ? $e.replaceSelection("", null, "+delete") : _b(this, function(ze) { + var nt = G2($e, ze.head, j, V, !1); + return j < 0 ? { from: nt, to: ze.head } : { from: ze.head, to: nt }; + }); + }), findPosV: function(j, V, we, $e) { + var ze = 1, nt = $e; + V < 0 && (ze = -1, V = -V); + for (var at = Ro(this.doc, j), Yt = 0; Yt < V; ++Yt) { + var Vt = Wh(this, at, "div"); + if (nt == null ? nt = Vt.left : Vt.left = nt, (at = d1(this, Vt, ze, we)).hitSide) + break; + } + return at; + }, moveV: Pd(function(j, V) { + var we = this, $e = this.doc, ze = [], nt = !this.display.shift && !$e.extend && $e.sel.somethingSelected(); + if ($e.extendSelectionsBy(function(Yt) { + if (nt) + return j < 0 ? Yt.from() : Yt.to(); + var Vt = Wh(we, Yt.head, "div"); + Yt.goalColumn != null && (Vt.left = Yt.goalColumn), ze.push(Vt.left); + var Nn = d1(we, Vt, j, V); + return V == "page" && Yt == $e.sel.primary() && E5(we, I3(we, Nn, "div").top - Vt.top), Nn; + }, ln), ze.length) + for (var at = 0; at < $e.sel.ranges.length; at++) + $e.sel.ranges[at].goalColumn = ze[at]; + }), findWordAt: function(j) { + var V = Ki(this.doc, j.line).text, we = j.ch, $e = j.ch; + if (V) { + var ze = this.getHelper(j, "wordChars"); + j.sticky != "before" && $e != V.length || !we ? ++$e : --we; + for (var nt = V.charAt(we), at = Si(nt, ze) ? function(Yt) { + return Si(Yt, ze); + } : /\s/.test(nt) ? function(Yt) { + return /\s/.test(Yt); + } : function(Yt) { + return !/\s/.test(Yt) && !Si(Yt); + }; we > 0 && at(V.charAt(we - 1)); ) + --we; + for (; $e < V.length && at(V.charAt($e)); ) + ++$e; + } + return new lu(pr(j.line, we), pr(j.line, $e)); + }, toggleOverwrite: function(j) { + j != null && j == this.state.overwrite || ((this.state.overwrite = !this.state.overwrite) ? ot(this.display.cursorDiv, "CodeMirror-overwrite") : ie(this.display.cursorDiv, "CodeMirror-overwrite"), Yr(this, "overwriteToggle", this, this.state.overwrite)); + }, hasFocus: function() { + return this.display.input.getField() == Je(); + }, isReadOnly: function() { + return !(!this.options.readOnly && !this.doc.cantEdit); + }, scrollTo: Pd(function(j, V) { + D3(this, j, V); + }), getScrollInfo: function() { + var j = this.display.scroller; + return { left: j.scrollLeft, top: j.scrollTop, height: j.scrollHeight - Sp(this) - this.display.barHeight, width: j.scrollWidth - Sp(this) - this.display.barWidth, clientHeight: S3(this), clientWidth: _2(this) }; + }, scrollIntoView: Pd(function(j, V) { + j == null ? (j = { from: this.doc.sel.primary().head, to: null }, V == null && (V = this.options.cursorScrollMargin)) : typeof j == "number" ? j = { from: pr(j, 0), to: null } : j.from == null && (j = { from: j, to: null }), j.to || (j.to = j.from), j.margin = V || 0, j.from.line != null ? pC(this, j) : Pk(this, j.from, j.to, j.margin); + }), setSize: Pd(function(j, V) { + var we = this, $e = function(nt) { + return typeof nt == "number" || /^\d+$/.test(String(nt)) ? nt + "px" : nt; + }; + j != null && (this.display.wrapper.style.width = $e(j)), V != null && (this.display.wrapper.style.height = $e(V)), this.options.lineWrapping && B1(this); + var ze = this.display.viewFrom; + this.doc.iter(ze, this.display.viewTo, function(nt) { + if (nt.widgets) { + for (var at = 0; at < nt.widgets.length; at++) + if (nt.widgets[at].noHScroll) { + L2(we, ze, "widget"); + break; + } + } + ++ze; + }), this.curOp.forceUpdate = !0, Yr(this, "refresh", this); + }), operation: function(j) { + return IA(this, j); + }, startOperation: function() { + return mb(this); + }, endOperation: function() { + return bb(this); + }, refresh: Pd(function() { + var j = this.display.cachedTextHeight; + pd(this), this.curOp.forceUpdate = !0, BA(this), D3(this, this.doc.scrollLeft, this.doc.scrollTop), Uk(this.display), (j == null || Math.abs(j - T2(this.display)) > 0.5 || this.options.lineWrapping) && Ab(this), Yr(this, "refresh", this); + }), swapDoc: Pd(function(j) { + var V = this.doc; + return V.cm = null, this.state.selectingText && this.state.selectingText(), U3(this, j), BA(this), this.display.input.reset(), D3(this, j.scrollLeft, j.scrollTop), this.curOp.forceScroll = !0, Dl(this, "swapDoc", this, V), V; + }), phrase: function(j) { + var V = this.options.phrases; + return V && Object.prototype.hasOwnProperty.call(V, j) ? V[j] : j; + }, getInputField: function() { + return this.display.input.getField(); + }, getWrapperElement: function() { + return this.display.wrapper; + }, getScrollerElement: function() { + return this.display.scroller; + }, getGutterElement: function() { + return this.display.gutters; + } }, er(x), x.registerHelper = function(j, V, we) { + G.hasOwnProperty(j) || (G[j] = x[j] = { _global: [] }), G[j][V] = we; + }, x.registerGlobalHelper = function(j, V, we, $e) { + x.registerHelper(j, V, $e), G[j]._global.push({ pred: we, val: $e }); + }; + } + function G2(x, S, G, j, V) { + var we = S, $e = G, ze = Ki(x, S.line), nt = V && x.direction == "rtl" ? -G : G; + function at() { + var ao = S.line + nt; + return !(ao < x.first || ao >= x.first + x.size) && (S = new pr(ao, S.ch, S.sticky), ze = Ki(x, ao)); + } + function Yt(ao) { + var ea; + if (j == "codepoint") { + var zi = ze.text.charCodeAt(S.ch + (j > 0 ? 0 : -1)); + ea = isNaN(zi) ? null : new pr(S.line, Math.max(0, Math.min(ze.text.length, S.ch + G * (zi >= 55296 && zi < 56320 ? 2 : 1))), -G); + } else + ea = V ? h_(x.cm, ze, S, G) : vw(ze, S, G); + if (ea == null) { + if (ao || !at()) + return !1; + S = Vk(V, x.cm, ze, S.line, nt); + } else + S = ea; + return !0; + } + if (j == "char" || j == "codepoint") + Yt(); + else if (j == "column") + Yt(!0); + else if (j == "word" || j == "group") + for (var Vt = null, Nn = j == "group", Vn = x.cm && x.cm.getHelper(S, "wordChars"), mr = !0; !(G < 0) || Yt(!mr); mr = !1) { + var si = ze.text.charAt(S.ch) || ` +`, Mi = Si(si, Vn) ? "w" : Nn && si == ` +` ? "n" : !Nn || /\s/.test(si) ? null : "p"; + if (!Nn || mr || Mi || (Mi = "s"), Vt && Vt != Mi) { + G < 0 && (G = 1, Yt(), S.sticky = "after"); + break; + } + if (Mi && (Vt = Mi), G > 0 && !Yt(!mr)) + break; + } + var _r = z3(x, S, we, $e, !0); + return Wo(we, _r) && (_r.hitSide = !0), _r; + } + function d1(x, S, G, j) { + var V, we, $e = x.doc, ze = S.left; + if (j == "page") { + var nt = Math.min(x.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight), at = Math.max(nt - 0.5 * T2(x.display), 3); + V = (G > 0 ? S.bottom : S.top) + G * at; + } else + j == "line" && (V = G > 0 ? S.bottom + 3 : S.top - 3); + for (; (we = SA(x, ze, V)).outside; ) { + if (G < 0 ? V <= 0 : V >= $e.height) { + we.hitSide = !0; + break; + } + V += 5 * G; + } + return we; + } + var Os = function(x) { + this.cm = x, this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null, this.polling = new Wt(), this.composing = null, this.gracePeriod = !1, this.readDOMTimeout = null; + }; + function Du(x, S) { + var G = h1(x, S.line); + if (!G || G.hidden) + return null; + var j = Ki(x.doc, S.line), V = gd(G, j, S.line), we = Jo(j, x.doc.direction), $e = "left"; + we && ($e = la(we, S.ch) % 2 ? "right" : "left"); + var ze = L3(V.map, S.ch, $e); + return ze.offset = ze.collapse == "right" ? ze.end : ze.start, ze; + } + function nn(x) { + for (var S = x; S; S = S.parentNode) + if (/CodeMirror-gutter-wrapper/.test(S.className)) + return !0; + return !1; + } + function Sb(x, S) { + return S && (x.bad = !0), x; + } + function X2(x, S, G, j, V) { + var we = "", $e = !1, ze = x.doc.lineSeparator(), nt = !1; + function at(Vn) { + return function(mr) { + return mr.id == Vn; + }; + } + function Yt() { + $e && (we += ze, nt && (we += ze), $e = nt = !1); + } + function Vt(Vn) { + Vn && (Yt(), we += Vn); + } + function Nn(Vn) { + if (Vn.nodeType == 1) { + var mr = Vn.getAttribute("cm-text"); + if (mr) + return void Vt(mr); + var si, Mi = Vn.getAttribute("cm-marker"); + if (Mi) { + var _r = x.findMarks(pr(j, 0), pr(V + 1, 0), at(+Mi)); + return void (_r.length && (si = _r[0].find(0)) && Vt(Ta(x.doc, si.from, si.to).join(ze))); + } + if (Vn.getAttribute("contenteditable") == "false") + return; + var ao = /^(pre|div|p|li|table|br)$/i.test(Vn.nodeName); + if (!/^br$/i.test(Vn.nodeName) && Vn.textContent.length == 0) + return; + ao && Yt(); + for (var ea = 0; ea < Vn.childNodes.length; ea++) + Nn(Vn.childNodes[ea]); + /^(pre|p)$/i.test(Vn.nodeName) && (nt = !0), ao && ($e = !0); + } else + Vn.nodeType == 3 && Vt(Vn.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " ")); + } + for (; Nn(S), S != G; ) + S = S.nextSibling, nt = !1; + return we; + } + function Hg(x, S, G) { + var j; + if (S == x.display.lineDiv) { + if (!(j = x.display.lineDiv.childNodes[G])) + return Sb(x.clipPos(pr(x.display.viewTo - 1)), !0); + S = null, G = 0; + } else + for (j = S; ; j = j.parentNode) { + if (!j || j == x.display.lineDiv) + return null; + if (j.parentNode && j.parentNode == x.display.lineDiv) + break; + } + for (var V = 0; V < x.display.view.length; V++) { + var we = x.display.view[V]; + if (we.node == j) + return W2(we, S, G); + } + } + function W2(x, S, G) { + var j = x.text.firstChild, V = !1; + if (!S || !ge(j, S)) + return Sb(pr(mc(x.line), 0), !0); + if (S == j && (V = !0, S = j.childNodes[G], G = 0, !S)) { + var we = x.rest ? pt(x.rest) : x.line; + return Sb(pr(mc(we), we.text.length), V); + } + var $e = S.nodeType == 3 ? S : null, ze = S; + for ($e || S.childNodes.length != 1 || S.firstChild.nodeType != 3 || ($e = S.firstChild, G && (G = $e.nodeValue.length)); ze.parentNode != j; ) + ze = ze.parentNode; + var nt = x.measure, at = nt.maps; + function Yt(Mi, _r, ao) { + for (var ea = -1; ea < (at ? at.length : 0); ea++) + for (var zi = ea < 0 ? nt.map : at[ea], Qo = 0; Qo < zi.length; Qo += 3) { + var $a = zi[Qo + 2]; + if ($a == Mi || $a == _r) { + var Ll = mc(ea < 0 ? x.line : x.rest[ea]), hu = zi[Qo] + ao; + return (ao < 0 || $a != Mi) && (hu = zi[Qo + (ao ? 1 : 0)]), pr(Ll, hu); + } + } + } + var Vt = Yt($e, ze, G); + if (Vt) + return Sb(Vt, V); + for (var Nn = ze.nextSibling, Vn = $e ? $e.nodeValue.length - G : 0; Nn; Nn = Nn.nextSibling) { + if (Vt = Yt(Nn, Nn.firstChild, 0)) + return Sb(pr(Vt.line, Vt.ch - Vn), V); + Vn += Nn.textContent.length; + } + for (var mr = ze.previousSibling, si = G; mr; mr = mr.previousSibling) { + if (Vt = Yt(mr, mr.firstChild, -1)) + return Sb(pr(Vt.line, Vt.ch + si), V); + si += mr.textContent.length; + } + } + Os.prototype.init = function(x) { + var S = this, G = this, j = G.cm, V = G.div = x.lineDiv; + function we(ze) { + for (var nt = ze.target; nt; nt = nt.parentNode) { + if (nt == V) + return !0; + if (/\bCodeMirror-(?:line)?widget\b/.test(nt.className)) + break; + } + return !1; + } + function $e(ze) { + if (we(ze) && !ni(j, ze)) { + if (j.somethingSelected()) + In({ lineWise: !1, text: j.getSelections() }), ze.type == "cut" && j.replaceSelection("", null, "cut"); + else { + if (!j.options.lineWiseCopyCut) + return; + var nt = f1(j); + In({ lineWise: !0, text: nt.text }), ze.type == "cut" && j.operation(function() { + j.setSelections(nt.ranges, 0, wn), j.replaceSelection("", null, "cut"); + }); + } + if (ze.clipboardData) { + ze.clipboardData.clearData(); + var at = Y1.text.join(` +`); + if (ze.clipboardData.setData("Text", at), ze.clipboardData.getData("Text") == at) + return void ze.preventDefault(); + } + var Yt = nx(), Vt = Yt.firstChild; + j.display.lineSpace.insertBefore(Yt, j.display.lineSpace.firstChild), Vt.value = Y1.text.join(` +`); + var Nn = document.activeElement; + gt(Vt), setTimeout(function() { + j.display.lineSpace.removeChild(Yt), Nn.focus(), Nn == V && G.showPrimarySelection(); + }, 50); + } + } + L1(V, j.options.spellcheck, j.options.autocorrect, j.options.autocapitalize), ji(V, "paste", function(ze) { + !we(ze) || ni(j, ze) || Bb(ze, j) || k <= 11 && setTimeout(q1(j, function() { + return S.updateFromDOM(); + }), 20); + }), ji(V, "compositionstart", function(ze) { + S.composing = { data: ze.data, done: !1 }; + }), ji(V, "compositionupdate", function(ze) { + S.composing || (S.composing = { data: ze.data, done: !1 }); + }), ji(V, "compositionend", function(ze) { + S.composing && (ze.data != S.composing.data && S.readFromDOMSoon(), S.composing.done = !0); + }), ji(V, "touchstart", function() { + return G.forceCompositionEnd(); + }), ji(V, "input", function() { + S.composing || S.readFromDOMSoon(); + }), ji(V, "copy", $e), ji(V, "cut", $e); + }, Os.prototype.screenReaderLabelChanged = function(x) { + x ? this.div.setAttribute("aria-label", x) : this.div.removeAttribute("aria-label"); + }, Os.prototype.prepareSelection = function() { + var x = O3(this.cm, !1); + return x.focus = document.activeElement == this.div, x; + }, Os.prototype.showSelection = function(x, S) { + x && this.cm.display.view.length && ((x.focus || S) && this.showPrimarySelection(), this.showMultipleSelections(x)); + }, Os.prototype.getSelection = function() { + return this.cm.display.wrapper.ownerDocument.getSelection(); + }, Os.prototype.showPrimarySelection = function() { + var x = this.getSelection(), S = this.cm, G = S.doc.sel.primary(), j = G.from(), V = G.to(); + if (S.display.viewTo == S.display.viewFrom || j.line >= S.display.viewTo || V.line < S.display.viewFrom) + x.removeAllRanges(); + else { + var we = Hg(S, x.anchorNode, x.anchorOffset), $e = Hg(S, x.focusNode, x.focusOffset); + if (!we || we.bad || !$e || $e.bad || Pr(Sn(we, $e), j) != 0 || Pr(wf(we, $e), V) != 0) { + var ze = S.display.view, nt = j.line >= S.display.viewFrom && Du(S, j) || { node: ze[0].measure.map[2], offset: 0 }, at = V.line < S.display.viewTo && Du(S, V); + if (!at) { + var Yt = ze[ze.length - 1].measure, Vt = Yt.maps ? Yt.maps[Yt.maps.length - 1] : Yt.map; + at = { node: Vt[Vt.length - 1], offset: Vt[Vt.length - 2] - Vt[Vt.length - 3] }; + } + if (nt && at) { + var Nn, Vn = x.rangeCount && x.getRangeAt(0); + try { + Nn = xe(nt.node, nt.offset, at.offset, at.node); + } catch { + } + Nn && (!f && S.state.focused ? (x.collapse(nt.node, nt.offset), Nn.collapsed || (x.removeAllRanges(), x.addRange(Nn))) : (x.removeAllRanges(), x.addRange(Nn)), Vn && x.anchorNode == null ? x.addRange(Vn) : f && this.startGracePeriod()), this.rememberSelection(); + } else + x.removeAllRanges(); + } + } + }, Os.prototype.startGracePeriod = function() { + var x = this; + clearTimeout(this.gracePeriod), this.gracePeriod = setTimeout(function() { + x.gracePeriod = !1, x.selectionChanged() && x.cm.operation(function() { + return x.cm.curOp.selectionChanged = !0; + }); + }, 20); + }, Os.prototype.showMultipleSelections = function(x) { + te(this.cm.display.cursorDiv, x.cursors), te(this.cm.display.selectionDiv, x.selection); + }, Os.prototype.rememberSelection = function() { + var x = this.getSelection(); + this.lastAnchorNode = x.anchorNode, this.lastAnchorOffset = x.anchorOffset, this.lastFocusNode = x.focusNode, this.lastFocusOffset = x.focusOffset; + }, Os.prototype.selectionInEditor = function() { + var x = this.getSelection(); + if (!x.rangeCount) + return !1; + var S = x.getRangeAt(0).commonAncestorContainer; + return ge(this.div, S); + }, Os.prototype.focus = function() { + this.cm.options.readOnly != "nocursor" && (this.selectionInEditor() && document.activeElement == this.div || this.showSelection(this.prepareSelection(), !0), this.div.focus()); + }, Os.prototype.blur = function() { + this.div.blur(); + }, Os.prototype.getField = function() { + return this.div; + }, Os.prototype.supportsTouch = function() { + return !0; + }, Os.prototype.receivedFocus = function() { + var x = this; + function S() { + x.cm.state.focused && (x.pollSelection(), x.polling.set(x.cm.options.pollInterval, S)); + } + this.selectionInEditor() ? this.pollSelection() : IA(this.cm, function() { + return x.cm.curOp.selectionChanged = !0; + }), this.polling.set(this.cm.options.pollInterval, S); + }, Os.prototype.selectionChanged = function() { + var x = this.getSelection(); + return x.anchorNode != this.lastAnchorNode || x.anchorOffset != this.lastAnchorOffset || x.focusNode != this.lastFocusNode || x.focusOffset != this.lastFocusOffset; + }, Os.prototype.pollSelection = function() { + if (this.readDOMTimeout == null && !this.gracePeriod && this.selectionChanged()) { + var x = this.getSelection(), S = this.cm; + if (J && L && this.cm.display.gutterSpecs.length && nn(x.anchorNode)) + return this.cm.triggerOnKeyDown({ type: "keydown", keyCode: 8, preventDefault: Math.abs }), this.blur(), void this.focus(); + if (!this.composing) { + this.rememberSelection(); + var G = Hg(S, x.anchorNode, x.anchorOffset), j = Hg(S, x.focusNode, x.focusOffset); + G && j && IA(S, function() { + bd(S.doc, R2(G, j), wn), (G.bad || j.bad) && (S.curOp.selectionChanged = !0); + }); + } + } + }, Os.prototype.pollContent = function() { + this.readDOMTimeout != null && (clearTimeout(this.readDOMTimeout), this.readDOMTimeout = null); + var x, S, G, j = this.cm, V = j.display, we = j.doc.sel.primary(), $e = we.from(), ze = we.to(); + if ($e.ch == 0 && $e.line > j.firstLine() && ($e = pr($e.line - 1, Ki(j.doc, $e.line - 1).length)), ze.ch == Ki(j.doc, ze.line).text.length && ze.line < j.lastLine() && (ze = pr(ze.line + 1, 0)), $e.line < V.viewFrom || ze.line > V.viewTo - 1) + return !1; + $e.line == V.viewFrom || (x = f0(j, $e.line)) == 0 ? (S = mc(V.view[0].line), G = V.view[0].node) : (S = mc(V.view[x].line), G = V.view[x - 1].node.nextSibling); + var nt, at, Yt = f0(j, ze.line); + if (Yt == V.view.length - 1 ? (nt = V.viewTo - 1, at = V.lineDiv.lastChild) : (nt = mc(V.view[Yt + 1].line) - 1, at = V.view[Yt + 1].node.previousSibling), !G) + return !1; + for (var Vt = j.doc.splitLines(X2(j, G, at, S, nt)), Nn = Ta(j.doc, pr(S, 0), pr(nt, Ki(j.doc, nt).text.length)); Vt.length > 1 && Nn.length > 1; ) + if (pt(Vt) == pt(Nn)) + Vt.pop(), Nn.pop(), nt--; + else { + if (Vt[0] != Nn[0]) + break; + Vt.shift(), Nn.shift(), S++; + } + for (var Vn = 0, mr = 0, si = Vt[0], Mi = Nn[0], _r = Math.min(si.length, Mi.length); Vn < _r && si.charCodeAt(Vn) == Mi.charCodeAt(Vn); ) + ++Vn; + for (var ao = pt(Vt), ea = pt(Nn), zi = Math.min(ao.length - (Vt.length == 1 ? Vn : 0), ea.length - (Nn.length == 1 ? Vn : 0)); mr < zi && ao.charCodeAt(ao.length - mr - 1) == ea.charCodeAt(ea.length - mr - 1); ) + ++mr; + if (Vt.length == 1 && Nn.length == 1 && S == $e.line) + for (; Vn && Vn > $e.ch && ao.charCodeAt(ao.length - mr - 1) == ea.charCodeAt(ea.length - mr - 1); ) + Vn--, mr++; + Vt[Vt.length - 1] = ao.slice(0, ao.length - mr).replace(/^\u200b+/, ""), Vt[0] = Vt[0].slice(Vn).replace(/\u200b+$/, ""); + var Qo = pr(S, Vn), $a = pr(nt, Nn.length ? pt(Nn).length - mr : 0); + return Vt.length > 1 || Vt[0] || Pr(Qo, $a) ? (Uv(j.doc, Vt, Qo, $a, "+input"), !0) : void 0; + }, Os.prototype.ensurePolled = function() { + this.forceCompositionEnd(); + }, Os.prototype.reset = function() { + this.forceCompositionEnd(); + }, Os.prototype.forceCompositionEnd = function() { + this.composing && (clearTimeout(this.readDOMTimeout), this.composing = null, this.updateFromDOM(), this.div.blur(), this.div.focus()); + }, Os.prototype.readFromDOMSoon = function() { + var x = this; + this.readDOMTimeout == null && (this.readDOMTimeout = setTimeout(function() { + if (x.readDOMTimeout = null, x.composing) { + if (!x.composing.done) + return; + x.composing = null; + } + x.updateFromDOM(); + }, 80)); + }, Os.prototype.updateFromDOM = function() { + var x = this; + !this.cm.isReadOnly() && this.pollContent() || IA(this.cm, function() { + return pd(x.cm); + }); + }, Os.prototype.setUneditable = function(x) { + x.contentEditable = "false"; + }, Os.prototype.onKeyPress = function(x) { + x.charCode == 0 || this.composing || (x.preventDefault(), this.cm.isReadOnly() || q1(this.cm, Tm)(this.cm, String.fromCharCode(x.charCode == null ? x.keyCode : x.charCode), 0)); + }, Os.prototype.readOnlyChanged = function(x) { + this.div.contentEditable = String(x != "nocursor"); + }, Os.prototype.onContextMenu = function() { + }, Os.prototype.resetPosition = function() { + }, Os.prototype.needsContentAttribute = !0; + var kh = function(x) { + this.cm = x, this.prevInput = "", this.pollingFast = !1, this.polling = new Wt(), this.hasSelection = !1, this.composing = null; + }; + function Gv(x, S) { + if ((S = S ? Qe(S) : {}).value = x.value, !S.tabindex && x.tabIndex && (S.tabindex = x.tabIndex), !S.placeholder && x.placeholder && (S.placeholder = x.placeholder), S.autofocus == null) { + var G = Je(); + S.autofocus = G == x || x.getAttribute("autofocus") != null && G == document.body; + } + function j() { + x.value = ze.getValue(); + } + var V; + if (x.form && (ji(x.form, "submit", j), !S.leaveSubmitMethodAlone)) { + var we = x.form; + V = we.submit; + try { + var $e = we.submit = function() { + j(), we.submit = V, we.submit(), we.submit = $e; + }; + } catch { + } + } + S.finishInit = function(nt) { + nt.save = j, nt.getTextArea = function() { + return x; + }, nt.toTextArea = function() { + nt.toTextArea = isNaN, j(), x.parentNode.removeChild(nt.getWrapperElement()), x.style.display = "", x.form && (Hr(x.form, "submit", j), S.leaveSubmitMethodAlone || typeof x.form.submit != "function" || (x.form.submit = V)); + }; + }, x.style.display = "none"; + var ze = hf(function(nt) { + return x.parentNode.insertBefore(nt, x.nextSibling); + }, S); + return ze; + } + function Qs(x) { + x.off = Hr, x.on = ji, x.wheelEventPixels = n_, x.Doc = MA, x.splitLines = Ff, x.countColumn = kt, x.findColumn = an, x.isWordChar = zr, x.Pass = Ft, x.signal = Yr, x.Line = Zf, x.changeEnd = Q2, x.scrollbarModel = bm, x.Pos = pr, x.cmpPos = Pr, x.modes = qf, x.mimeModes = wu, x.resolveMode = bl, x.getMode = cu, x.modeExtensions = qc, x.extendMode = Jl, x.copyState = js, x.startState = gs, x.innerMode = Dc, x.commands = j2, x.keyMap = Cm, x.keyName = q3, x.isModifierKey = Wk, x.lookupKey = H2, x.normalizeKeyMap = SC, x.StringStream = rc, x.SharedTextMarker = G3, x.TextMarker = Cf, x.LineWidget = jv, x.e_preventDefault = as, x.e_stopPropagation = xr, x.e_stop = cs, x.addClass = ot, x.contains = ge, x.rmClass = ie, x.keyNames = Rg; + } + kh.prototype.init = function(x) { + var S = this, G = this, j = this.cm; + this.createField(x); + var V = this.textarea; + function we($e) { + if (!ni(j, $e)) { + if (j.somethingSelected()) + In({ lineWise: !1, text: j.getSelections() }); + else { + if (!j.options.lineWiseCopyCut) + return; + var ze = f1(j); + In({ lineWise: !0, text: ze.text }), $e.type == "cut" ? j.setSelections(ze.ranges, null, wn) : (G.prevInput = "", V.value = ze.text.join(` +`), gt(V)); + } + $e.type == "cut" && (j.state.cutIncoming = +/* @__PURE__ */ new Date()); + } + } + x.wrapper.insertBefore(this.wrapper, x.wrapper.firstChild), R && (V.style.width = "0px"), ji(V, "input", function() { + v && k >= 9 && S.hasSelection && (S.hasSelection = null), G.poll(); + }), ji(V, "paste", function($e) { + ni(j, $e) || Bb($e, j) || (j.state.pasteIncoming = +/* @__PURE__ */ new Date(), G.fastPoll()); + }), ji(V, "cut", we), ji(V, "copy", we), ji(x.scroller, "paste", function($e) { + if (!Lg(x, $e) && !ni(j, $e)) { + if (!V.dispatchEvent) + return j.state.pasteIncoming = +/* @__PURE__ */ new Date(), void G.focus(); + var ze = new Event("paste"); + ze.clipboardData = $e.clipboardData, V.dispatchEvent(ze); + } + }), ji(x.lineSpace, "selectstart", function($e) { + Lg(x, $e) || as($e); + }), ji(V, "compositionstart", function() { + var $e = j.getCursor("from"); + G.composing && G.composing.range.clear(), G.composing = { start: $e, range: j.markText($e, j.getCursor("to"), { className: "CodeMirror-composing" }) }; + }), ji(V, "compositionend", function() { + G.composing && (G.poll(), G.composing.range.clear(), G.composing = null); + }); + }, kh.prototype.createField = function(x) { + this.wrapper = nx(), this.textarea = this.wrapper.firstChild; + }, kh.prototype.screenReaderLabelChanged = function(x) { + x ? this.textarea.setAttribute("aria-label", x) : this.textarea.removeAttribute("aria-label"); + }, kh.prototype.prepareSelection = function() { + var x = this.cm, S = x.display, G = x.doc, j = O3(x); + if (x.options.moveInputWithCursor) { + var V = Wh(x, G.sel.primary().head, "div"), we = S.wrapper.getBoundingClientRect(), $e = S.lineDiv.getBoundingClientRect(); + j.teTop = Math.max(0, Math.min(S.wrapper.clientHeight - 10, V.top + $e.top - we.top)), j.teLeft = Math.max(0, Math.min(S.wrapper.clientWidth - 10, V.left + $e.left - we.left)); + } + return j; + }, kh.prototype.showSelection = function(x) { + var S = this.cm.display; + te(S.cursorDiv, x.cursors), te(S.selectionDiv, x.selection), x.teTop != null && (this.wrapper.style.top = x.teTop + "px", this.wrapper.style.left = x.teLeft + "px"); + }, kh.prototype.reset = function(x) { + if (!this.contextMenuPending && !this.composing) { + var S = this.cm; + if (S.somethingSelected()) { + this.prevInput = ""; + var G = S.getSelection(); + this.textarea.value = G, S.state.focused && gt(this.textarea), v && k >= 9 && (this.hasSelection = G); + } else + x || (this.prevInput = this.textarea.value = "", v && k >= 9 && (this.hasSelection = null)); + } + }, kh.prototype.getField = function() { + return this.textarea; + }, kh.prototype.supportsTouch = function() { + return !1; + }, kh.prototype.focus = function() { + if (this.cm.options.readOnly != "nocursor" && (!he || Je() != this.textarea)) + try { + this.textarea.focus(); + } catch { + } + }, kh.prototype.blur = function() { + this.textarea.blur(); + }, kh.prototype.resetPosition = function() { + this.wrapper.style.top = this.wrapper.style.left = 0; + }, kh.prototype.receivedFocus = function() { + this.slowPoll(); + }, kh.prototype.slowPoll = function() { + var x = this; + this.pollingFast || this.polling.set(this.cm.options.pollInterval, function() { + x.poll(), x.cm.state.focused && x.slowPoll(); + }); + }, kh.prototype.fastPoll = function() { + var x = !1, S = this; + function G() { + S.poll() || x ? (S.pollingFast = !1, S.slowPoll()) : (x = !0, S.polling.set(60, G)); + } + S.pollingFast = !0, S.polling.set(20, G); + }, kh.prototype.poll = function() { + var x = this, S = this.cm, G = this.textarea, j = this.prevInput; + if (this.contextMenuPending || !S.state.focused || Oc(G) && !j && !this.composing || S.isReadOnly() || S.options.disableInput || S.state.keySeq) + return !1; + var V = G.value; + if (V == j && !S.somethingSelected()) + return !1; + if (v && k >= 9 && this.hasSelection === V || Y && /[\uf700-\uf7ff]/.test(V)) + return S.display.input.reset(), !1; + if (S.doc.sel == S.display.selForContextMenu) { + var we = V.charCodeAt(0); + if (we != 8203 || j || (j = "​"), we == 8666) + return this.reset(), this.cm.execCommand("undo"); + } + for (var $e = 0, ze = Math.min(j.length, V.length); $e < ze && j.charCodeAt($e) == V.charCodeAt($e); ) + ++$e; + return IA(S, function() { + Tm(S, V.slice($e), j.length - $e, null, x.composing ? "*compose" : null), V.length > 1e3 || V.indexOf(` +`) > -1 ? G.value = x.prevInput = "" : x.prevInput = V, x.composing && (x.composing.range.clear(), x.composing.range = S.markText(x.composing.start, S.getCursor("to"), { className: "CodeMirror-composing" })); + }), !0; + }, kh.prototype.ensurePolled = function() { + this.pollingFast && this.poll() && (this.pollingFast = !1); + }, kh.prototype.onKeyPress = function() { + v && k >= 9 && (this.hasSelection = null), this.fastPoll(); + }, kh.prototype.onContextMenu = function(x) { + var S = this, G = S.cm, j = G.display, V = S.textarea; + S.contextMenuPending && S.contextMenuPending(); + var we = S2(G, x), $e = j.scroller.scrollTop; + if (we && !F) { + G.options.resetSelectionOnContextMenu && G.doc.sel.contains(we) == -1 && q1(G, bd)(G.doc, R2(we), wn); + var ze, nt = V.style.cssText, at = S.wrapper.style.cssText, Yt = S.wrapper.offsetParent.getBoundingClientRect(); + if (S.wrapper.style.cssText = "position: static", V.style.cssText = `position: absolute; width: 30px; height: 30px; + top: ` + (x.clientY - Yt.top - 5) + "px; left: " + (x.clientX - Yt.left - 5) + `px; + z-index: 1000; background: ` + (v ? "rgba(255, 255, 255, .05)" : "transparent") + `; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`, _ && (ze = window.scrollY), j.input.focus(), _ && window.scrollTo(null, ze), j.input.reset(), G.somethingSelected() || (V.value = S.prevInput = " "), S.contextMenuPending = Vn, j.selForContextMenu = G.doc.sel, clearTimeout(j.detectingSelectAll), v && k >= 9 && Nn(), de) { + cs(x); + var Vt = function() { + Hr(window, "mouseup", Vt), setTimeout(Vn, 20); + }; + ji(window, "mouseup", Vt); + } else + setTimeout(Vn, 50); + } + function Nn() { + if (V.selectionStart != null) { + var mr = G.somethingSelected(), si = "​" + (mr ? V.value : ""); + V.value = "⇚", V.value = si, S.prevInput = mr ? "" : "​", V.selectionStart = 1, V.selectionEnd = si.length, j.selForContextMenu = G.doc.sel; + } + } + function Vn() { + if (S.contextMenuPending == Vn && (S.contextMenuPending = !1, S.wrapper.style.cssText = at, V.style.cssText = nt, v && k < 9 && j.scrollbars.setScrollTop(j.scroller.scrollTop = $e), V.selectionStart != null)) { + (!v || v && k < 9) && Nn(); + var mr = 0, si = function() { + j.selForContextMenu == G.doc.sel && V.selectionStart == 0 && V.selectionEnd > 0 && S.prevInput == "​" ? q1(G, Ng)(G) : mr++ < 10 ? j.detectingSelectAll = setTimeout(si, 500) : (j.selForContextMenu = null, j.input.reset()); + }; + j.detectingSelectAll = setTimeout(si, 200); + } + } + }, kh.prototype.readOnlyChanged = function(x) { + x || this.reset(), this.textarea.disabled = x == "nocursor", this.textarea.readOnly = !!x; + }, kh.prototype.setUneditable = function() { + }, kh.prototype.needsContentAttribute = !1, Po(hf), W5(hf); + var Cw = "iter insert remove copy getEditor constructor".split(" "); + for (var sh in MA.prototype) + MA.prototype.hasOwnProperty(sh) && jt(Cw, sh) < 0 && (hf.prototype[sh] = /* @__PURE__ */ function(x) { + return function() { + return x.apply(this.doc, arguments); + }; + }(MA.prototype[sh])); + return er(MA), hf.inputStyles = { textarea: kh, contenteditable: Os }, hf.defineMode = function(x) { + hf.defaults.mode || x == "null" || (hf.defaults.mode = x), jo.apply(this, arguments); + }, hf.defineMIME = yf, hf.defineMode("null", function() { + return { token: function(x) { + return x.skipToEnd(); + } }; + }), hf.defineMIME("text/plain", "null"), hf.defineExtension = function(x, S) { + hf.prototype[x] = S; + }, hf.defineDocExtension = function(x, S) { + MA.prototype[x] = S; + }, hf.fromTextArea = Gv, Qs(hf), hf.version = "5.58.2", hf; + }(); +}); +su(function(r, i) { + var o, l, f; + l = { autoSelfClosers: { area: !0, base: !0, br: !0, col: !0, command: !0, embed: !0, frame: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, menuitem: !0 }, implicitlyClosed: { dd: !0, li: !0, optgroup: !0, option: !0, p: !0, rp: !0, rt: !0, tbody: !0, td: !0, tfoot: !0, th: !0, tr: !0 }, contextGrabbers: { dd: { dd: !0, dt: !0 }, dt: { dd: !0, dt: !0 }, li: { li: !0 }, option: { option: !0, optgroup: !0 }, optgroup: { optgroup: !0 }, p: { address: !0, article: !0, aside: !0, blockquote: !0, dir: !0, div: !0, dl: !0, fieldset: !0, footer: !0, form: !0, h1: !0, h2: !0, h3: !0, h4: !0, h5: !0, h6: !0, header: !0, hgroup: !0, hr: !0, menu: !0, nav: !0, ol: !0, p: !0, pre: !0, section: !0, table: !0, ul: !0 }, rp: { rp: !0, rt: !0 }, rt: { rp: !0, rt: !0 }, tbody: { tbody: !0, tfoot: !0 }, td: { td: !0, th: !0 }, tfoot: { tbody: !0 }, th: { td: !0, th: !0 }, thead: { tbody: !0, tfoot: !0 }, tr: { tr: !0 } }, doNotIndent: { pre: !0 }, allowUnquoted: !0, allowMissing: !0, caseFold: !0 }, f = { autoSelfClosers: {}, implicitlyClosed: {}, contextGrabbers: {}, doNotIndent: {}, allowUnquoted: !1, allowMissing: !1, allowMissingTagName: !1, caseFold: !1 }, (o = m2).defineMode("xml", function(g, A) { + var b, v, k = g.indentUnit, _ = {}, T = A.htmlMode ? l : f; + for (var L in T) + _[L] = T[L]; + for (var L in A) + _[L] = A[L]; + function F(te, Me) { + function ve(Je) { + return Me.tokenize = Je, Je(te, Me); + } + var ge = te.next(); + return ge == "<" ? te.eat("!") ? te.eat("[") ? te.match("CDATA[") ? ve(Z("atom", "]]>")) : null : te.match("--") ? ve(Z("comment", "-->")) : te.match("DOCTYPE", !0, !0) ? (te.eatWhile(/[\w\._\-]/), ve(R(1))) : null : te.eat("?") ? (te.eatWhile(/[\w\._\-]/), Me.tokenize = Z("meta", "?>"), "meta") : (b = te.eat("/") ? "closeTag" : "openTag", Me.tokenize = U, "tag bracket") : ge == "&" ? (te.eat("#") ? te.eat("x") ? te.eatWhile(/[a-fA-F\d]/) && te.eat(";") : te.eatWhile(/[\d]/) && te.eat(";") : te.eatWhile(/[\w\.\-:]/) && te.eat(";")) ? "atom" : "error" : (te.eatWhile(/[^&<]/), null); + } + function U(te, Me) { + var ve = te.next(); + if (ve == ">" || ve == "/" && te.eat(">")) + return Me.tokenize = F, b = ve == ">" ? "endTag" : "selfcloseTag", "tag bracket"; + if (ve == "=") + return b = "equals", null; + if (ve == "<") { + Me.tokenize = F, Me.state = ue, Me.tagName = Me.tagStart = null; + var ge = Me.tokenize(te, Me); + return ge ? ge + " tag error" : "tag error"; + } + return /[\'\"]/.test(ve) ? (Me.tokenize = q(ve), Me.stringStartCol = te.column(), Me.tokenize(te, Me)) : (te.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/), "word"); + } + function q(te) { + var Me = function(ve, ge) { + for (; !ve.eol(); ) + if (ve.next() == te) { + ge.tokenize = U; + break; + } + return "string"; + }; + return Me.isInAttribute = !0, Me; + } + function Z(te, Me) { + return function(ve, ge) { + for (; !ve.eol(); ) { + if (ve.match(Me)) { + ge.tokenize = F; + break; + } + ve.next(); + } + return te; + }; + } + function R(te) { + return function(Me, ve) { + for (var ge; (ge = Me.next()) != null; ) { + if (ge == "<") + return ve.tokenize = R(te + 1), ve.tokenize(Me, ve); + if (ge == ">") { + if (te == 1) { + ve.tokenize = F; + break; + } + return ve.tokenize = R(te - 1), ve.tokenize(Me, ve); + } + } + return "meta"; + }; + } + function J(te, Me, ve) { + this.prev = te.context, this.tagName = Me, this.indent = te.indented, this.startOfLine = ve, (_.doNotIndent.hasOwnProperty(Me) || te.context && te.context.noIndent) && (this.noIndent = !0); + } + function he(te) { + te.context && (te.context = te.context.prev); + } + function Y(te, Me) { + for (var ve; ; ) { + if (!te.context || (ve = te.context.tagName, !_.contextGrabbers.hasOwnProperty(ve) || !_.contextGrabbers[ve].hasOwnProperty(Me))) + return; + he(te); + } + } + function ue(te, Me, ve) { + return te == "openTag" ? (ve.tagStart = Me.column(), le) : te == "closeTag" ? be : ue; + } + function le(te, Me, ve) { + return te == "word" ? (ve.tagName = Me.current(), v = "tag", Te) : _.allowMissingTagName && te == "endTag" ? (v = "tag bracket", Te(te, Me, ve)) : (v = "error", le); + } + function be(te, Me, ve) { + if (te == "word") { + var ge = Me.current(); + return ve.context && ve.context.tagName != ge && _.implicitlyClosed.hasOwnProperty(ve.context.tagName) && he(ve), ve.context && ve.context.tagName == ge || _.matchClosing === !1 ? (v = "tag", ke) : (v = "tag error", de); + } + return _.allowMissingTagName && te == "endTag" ? (v = "tag bracket", ke(te, Me, ve)) : (v = "error", de); + } + function ke(te, Me, ve) { + return te != "endTag" ? (v = "error", ke) : (he(ve), ue); + } + function de(te, Me, ve) { + return v = "error", ke(te, Me, ve); + } + function Te(te, Me, ve) { + if (te == "word") + return v = "attribute", xe; + if (te == "endTag" || te == "selfcloseTag") { + var ge = ve.tagName, Je = ve.tagStart; + return ve.tagName = ve.tagStart = null, te == "selfcloseTag" || _.autoSelfClosers.hasOwnProperty(ge) ? Y(ve, ge) : (Y(ve, ge), ve.context = new J(ve, ge, Je == ve.indented)), ue; + } + return v = "error", Te; + } + function xe(te, Me, ve) { + return te == "equals" ? ie : (_.allowMissing || (v = "error"), Te(te, Me, ve)); + } + function ie(te, Me, ve) { + return te == "string" ? Be : te == "word" && _.allowUnquoted ? (v = "string", Te) : (v = "error", Te(te, Me, ve)); + } + function Be(te, Me, ve) { + return te == "string" ? Be : Te(te, Me, ve); + } + return F.isInText = !0, { startState: function(te) { + var Me = { tokenize: F, state: ue, indented: te || 0, tagName: null, tagStart: null, context: null }; + return te != null && (Me.baseIndent = te), Me; + }, token: function(te, Me) { + if (!Me.tagName && te.sol() && (Me.indented = te.indentation()), te.eatSpace()) + return null; + b = null; + var ve = Me.tokenize(te, Me); + return (ve || b) && ve != "comment" && (v = null, Me.state = Me.state(b || ve, te, Me), v && (ve = v == "error" ? ve + " error" : v)), ve; + }, indent: function(te, Me, ve) { + var ge = te.context; + if (te.tokenize.isInAttribute) + return te.tagStart == te.indented ? te.stringStartCol + 1 : te.indented + k; + if (ge && ge.noIndent) + return o.Pass; + if (te.tokenize != U && te.tokenize != F) + return ve ? ve.match(/^(\s*)/)[0].length : 0; + if (te.tagName) + return _.multilineTagIndentPastTag !== !1 ? te.tagStart + te.tagName.length + 2 : te.tagStart + k * (_.multilineTagIndentFactor || 1); + if (_.alignCDATA && /$/, blockCommentStart: "", configuration: _.htmlMode ? "html" : "xml", helperType: _.htmlMode ? "html" : "xml", skipAttribute: function(te) { + te.state == ie && (te.state = Te); + }, xmlCurrentTag: function(te) { + return te.tagName ? { name: te.tagName, close: te.type == "closeTag" } : null; + }, xmlCurrentContext: function(te) { + for (var Me = [], ve = te.context; ve; ve = ve.prev) + ve.tagName && Me.push(ve.tagName); + return Me.reverse(); + } }; + }), o.defineMIME("text/xml", "xml"), o.defineMIME("application/xml", "xml"), o.mimeModes.hasOwnProperty("text/html") || o.defineMIME("text/html", { name: "xml", htmlMode: !0 }); +}), su(function(r, i) { + (function(o) { + o.modeInfo = [{ name: "APL", mime: "text/apl", mode: "apl", ext: ["dyalog", "apl"] }, { name: "PGP", mimes: ["application/pgp", "application/pgp-encrypted", "application/pgp-keys", "application/pgp-signature"], mode: "asciiarmor", ext: ["asc", "pgp", "sig"] }, { name: "ASN.1", mime: "text/x-ttcn-asn", mode: "asn.1", ext: ["asn", "asn1"] }, { name: "Asterisk", mime: "text/x-asterisk", mode: "asterisk", file: /^extensions\.conf$/i }, { name: "Brainfuck", mime: "text/x-brainfuck", mode: "brainfuck", ext: ["b", "bf"] }, { name: "C", mime: "text/x-csrc", mode: "clike", ext: ["c", "h", "ino"] }, { name: "C++", mime: "text/x-c++src", mode: "clike", ext: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"], alias: ["cpp"] }, { name: "Cobol", mime: "text/x-cobol", mode: "cobol", ext: ["cob", "cpy"] }, { name: "C#", mime: "text/x-csharp", mode: "clike", ext: ["cs"], alias: ["csharp", "cs"] }, { name: "Clojure", mime: "text/x-clojure", mode: "clojure", ext: ["clj", "cljc", "cljx"] }, { name: "ClojureScript", mime: "text/x-clojurescript", mode: "clojure", ext: ["cljs"] }, { name: "Closure Stylesheets (GSS)", mime: "text/x-gss", mode: "css", ext: ["gss"] }, { name: "CMake", mime: "text/x-cmake", mode: "cmake", ext: ["cmake", "cmake.in"], file: /^CMakeLists\.txt$/ }, { name: "CoffeeScript", mimes: ["application/vnd.coffeescript", "text/coffeescript", "text/x-coffeescript"], mode: "coffeescript", ext: ["coffee"], alias: ["coffee", "coffee-script"] }, { name: "Common Lisp", mime: "text/x-common-lisp", mode: "commonlisp", ext: ["cl", "lisp", "el"], alias: ["lisp"] }, { name: "Cypher", mime: "application/x-cypher-query", mode: "cypher", ext: ["cyp", "cypher"] }, { name: "Cython", mime: "text/x-cython", mode: "python", ext: ["pyx", "pxd", "pxi"] }, { name: "Crystal", mime: "text/x-crystal", mode: "crystal", ext: ["cr"] }, { name: "CSS", mime: "text/css", mode: "css", ext: ["css"] }, { name: "CQL", mime: "text/x-cassandra", mode: "sql", ext: ["cql"] }, { name: "D", mime: "text/x-d", mode: "d", ext: ["d"] }, { name: "Dart", mimes: ["application/dart", "text/x-dart"], mode: "dart", ext: ["dart"] }, { name: "diff", mime: "text/x-diff", mode: "diff", ext: ["diff", "patch"] }, { name: "Django", mime: "text/x-django", mode: "django" }, { name: "Dockerfile", mime: "text/x-dockerfile", mode: "dockerfile", file: /^Dockerfile$/ }, { name: "DTD", mime: "application/xml-dtd", mode: "dtd", ext: ["dtd"] }, { name: "Dylan", mime: "text/x-dylan", mode: "dylan", ext: ["dylan", "dyl", "intr"] }, { name: "EBNF", mime: "text/x-ebnf", mode: "ebnf" }, { name: "ECL", mime: "text/x-ecl", mode: "ecl", ext: ["ecl"] }, { name: "edn", mime: "application/edn", mode: "clojure", ext: ["edn"] }, { name: "Eiffel", mime: "text/x-eiffel", mode: "eiffel", ext: ["e"] }, { name: "Elm", mime: "text/x-elm", mode: "elm", ext: ["elm"] }, { name: "Embedded Javascript", mime: "application/x-ejs", mode: "htmlembedded", ext: ["ejs"] }, { name: "Embedded Ruby", mime: "application/x-erb", mode: "htmlembedded", ext: ["erb"] }, { name: "Erlang", mime: "text/x-erlang", mode: "erlang", ext: ["erl"] }, { name: "Esper", mime: "text/x-esper", mode: "sql" }, { name: "Factor", mime: "text/x-factor", mode: "factor", ext: ["factor"] }, { name: "FCL", mime: "text/x-fcl", mode: "fcl" }, { name: "Forth", mime: "text/x-forth", mode: "forth", ext: ["forth", "fth", "4th"] }, { name: "Fortran", mime: "text/x-fortran", mode: "fortran", ext: ["f", "for", "f77", "f90", "f95"] }, { name: "F#", mime: "text/x-fsharp", mode: "mllike", ext: ["fs"], alias: ["fsharp"] }, { name: "Gas", mime: "text/x-gas", mode: "gas", ext: ["s"] }, { name: "Gherkin", mime: "text/x-feature", mode: "gherkin", ext: ["feature"] }, { name: "GitHub Flavored Markdown", mime: "text/x-gfm", mode: "gfm", file: /^(readme|contributing|history)\.md$/i }, { name: "Go", mime: "text/x-go", mode: "go", ext: ["go"] }, { name: "Groovy", mime: "text/x-groovy", mode: "groovy", ext: ["groovy", "gradle"], file: /^Jenkinsfile$/ }, { name: "HAML", mime: "text/x-haml", mode: "haml", ext: ["haml"] }, { name: "Haskell", mime: "text/x-haskell", mode: "haskell", ext: ["hs"] }, { name: "Haskell (Literate)", mime: "text/x-literate-haskell", mode: "haskell-literate", ext: ["lhs"] }, { name: "Haxe", mime: "text/x-haxe", mode: "haxe", ext: ["hx"] }, { name: "HXML", mime: "text/x-hxml", mode: "haxe", ext: ["hxml"] }, { name: "ASP.NET", mime: "application/x-aspx", mode: "htmlembedded", ext: ["aspx"], alias: ["asp", "aspx"] }, { name: "HTML", mime: "text/html", mode: "htmlmixed", ext: ["html", "htm", "handlebars", "hbs"], alias: ["xhtml"] }, { name: "HTTP", mime: "message/http", mode: "http" }, { name: "IDL", mime: "text/x-idl", mode: "idl", ext: ["pro"] }, { name: "Pug", mime: "text/x-pug", mode: "pug", ext: ["jade", "pug"], alias: ["jade"] }, { name: "Java", mime: "text/x-java", mode: "clike", ext: ["java"] }, { name: "Java Server Pages", mime: "application/x-jsp", mode: "htmlembedded", ext: ["jsp"], alias: ["jsp"] }, { name: "JavaScript", mimes: ["text/javascript", "text/ecmascript", "application/javascript", "application/x-javascript", "application/ecmascript"], mode: "javascript", ext: ["js"], alias: ["ecmascript", "js", "node"] }, { name: "JSON", mimes: ["application/json", "application/x-json"], mode: "javascript", ext: ["json", "map"], alias: ["json5"] }, { name: "JSON-LD", mime: "application/ld+json", mode: "javascript", ext: ["jsonld"], alias: ["jsonld"] }, { name: "JSX", mime: "text/jsx", mode: "jsx", ext: ["jsx"] }, { name: "Jinja2", mime: "text/jinja2", mode: "jinja2", ext: ["j2", "jinja", "jinja2"] }, { name: "Julia", mime: "text/x-julia", mode: "julia", ext: ["jl"] }, { name: "Kotlin", mime: "text/x-kotlin", mode: "clike", ext: ["kt"] }, { name: "LESS", mime: "text/x-less", mode: "css", ext: ["less"] }, { name: "LiveScript", mime: "text/x-livescript", mode: "livescript", ext: ["ls"], alias: ["ls"] }, { name: "Lua", mime: "text/x-lua", mode: "lua", ext: ["lua"] }, { name: "Markdown", mime: "text/x-markdown", mode: "markdown", ext: ["markdown", "md", "mkd"] }, { name: "mIRC", mime: "text/mirc", mode: "mirc" }, { name: "MariaDB SQL", mime: "text/x-mariadb", mode: "sql" }, { name: "Mathematica", mime: "text/x-mathematica", mode: "mathematica", ext: ["m", "nb", "wl", "wls"] }, { name: "Modelica", mime: "text/x-modelica", mode: "modelica", ext: ["mo"] }, { name: "MUMPS", mime: "text/x-mumps", mode: "mumps", ext: ["mps"] }, { name: "MS SQL", mime: "text/x-mssql", mode: "sql" }, { name: "mbox", mime: "application/mbox", mode: "mbox", ext: ["mbox"] }, { name: "MySQL", mime: "text/x-mysql", mode: "sql" }, { name: "Nginx", mime: "text/x-nginx-conf", mode: "nginx", file: /nginx.*\.conf$/i }, { name: "NSIS", mime: "text/x-nsis", mode: "nsis", ext: ["nsh", "nsi"] }, { name: "NTriples", mimes: ["application/n-triples", "application/n-quads", "text/n-triples"], mode: "ntriples", ext: ["nt", "nq"] }, { name: "Objective-C", mime: "text/x-objectivec", mode: "clike", ext: ["m"], alias: ["objective-c", "objc"] }, { name: "Objective-C++", mime: "text/x-objectivec++", mode: "clike", ext: ["mm"], alias: ["objective-c++", "objc++"] }, { name: "OCaml", mime: "text/x-ocaml", mode: "mllike", ext: ["ml", "mli", "mll", "mly"] }, { name: "Octave", mime: "text/x-octave", mode: "octave", ext: ["m"] }, { name: "Oz", mime: "text/x-oz", mode: "oz", ext: ["oz"] }, { name: "Pascal", mime: "text/x-pascal", mode: "pascal", ext: ["p", "pas"] }, { name: "PEG.js", mime: "null", mode: "pegjs", ext: ["jsonld"] }, { name: "Perl", mime: "text/x-perl", mode: "perl", ext: ["pl", "pm"] }, { name: "PHP", mimes: ["text/x-php", "application/x-httpd-php", "application/x-httpd-php-open"], mode: "php", ext: ["php", "php3", "php4", "php5", "php7", "phtml"] }, { name: "Pig", mime: "text/x-pig", mode: "pig", ext: ["pig"] }, { name: "Plain Text", mime: "text/plain", mode: "null", ext: ["txt", "text", "conf", "def", "list", "log"] }, { name: "PLSQL", mime: "text/x-plsql", mode: "sql", ext: ["pls"] }, { name: "PostgreSQL", mime: "text/x-pgsql", mode: "sql" }, { name: "PowerShell", mime: "application/x-powershell", mode: "powershell", ext: ["ps1", "psd1", "psm1"] }, { name: "Properties files", mime: "text/x-properties", mode: "properties", ext: ["properties", "ini", "in"], alias: ["ini", "properties"] }, { name: "ProtoBuf", mime: "text/x-protobuf", mode: "protobuf", ext: ["proto"] }, { name: "Python", mime: "text/x-python", mode: "python", ext: ["BUILD", "bzl", "py", "pyw"], file: /^(BUCK|BUILD)$/ }, { name: "Puppet", mime: "text/x-puppet", mode: "puppet", ext: ["pp"] }, { name: "Q", mime: "text/x-q", mode: "q", ext: ["q"] }, { name: "R", mime: "text/x-rsrc", mode: "r", ext: ["r", "R"], alias: ["rscript"] }, { name: "reStructuredText", mime: "text/x-rst", mode: "rst", ext: ["rst"], alias: ["rst"] }, { name: "RPM Changes", mime: "text/x-rpm-changes", mode: "rpm" }, { name: "RPM Spec", mime: "text/x-rpm-spec", mode: "rpm", ext: ["spec"] }, { name: "Ruby", mime: "text/x-ruby", mode: "ruby", ext: ["rb"], alias: ["jruby", "macruby", "rake", "rb", "rbx"] }, { name: "Rust", mime: "text/x-rustsrc", mode: "rust", ext: ["rs"] }, { name: "SAS", mime: "text/x-sas", mode: "sas", ext: ["sas"] }, { name: "Sass", mime: "text/x-sass", mode: "sass", ext: ["sass"] }, { name: "Scala", mime: "text/x-scala", mode: "clike", ext: ["scala"] }, { name: "Scheme", mime: "text/x-scheme", mode: "scheme", ext: ["scm", "ss"] }, { name: "SCSS", mime: "text/x-scss", mode: "css", ext: ["scss"] }, { name: "Shell", mimes: ["text/x-sh", "application/x-sh"], mode: "shell", ext: ["sh", "ksh", "bash"], alias: ["bash", "sh", "zsh"], file: /^PKGBUILD$/ }, { name: "Sieve", mime: "application/sieve", mode: "sieve", ext: ["siv", "sieve"] }, { name: "Slim", mimes: ["text/x-slim", "application/x-slim"], mode: "slim", ext: ["slim"] }, { name: "Smalltalk", mime: "text/x-stsrc", mode: "smalltalk", ext: ["st"] }, { name: "Smarty", mime: "text/x-smarty", mode: "smarty", ext: ["tpl"] }, { name: "Solr", mime: "text/x-solr", mode: "solr" }, { name: "SML", mime: "text/x-sml", mode: "mllike", ext: ["sml", "sig", "fun", "smackspec"] }, { name: "Soy", mime: "text/x-soy", mode: "soy", ext: ["soy"], alias: ["closure template"] }, { name: "SPARQL", mime: "application/sparql-query", mode: "sparql", ext: ["rq", "sparql"], alias: ["sparul"] }, { name: "Spreadsheet", mime: "text/x-spreadsheet", mode: "spreadsheet", alias: ["excel", "formula"] }, { name: "SQL", mime: "text/x-sql", mode: "sql", ext: ["sql"] }, { name: "SQLite", mime: "text/x-sqlite", mode: "sql" }, { name: "Squirrel", mime: "text/x-squirrel", mode: "clike", ext: ["nut"] }, { name: "Stylus", mime: "text/x-styl", mode: "stylus", ext: ["styl"] }, { name: "Swift", mime: "text/x-swift", mode: "swift", ext: ["swift"] }, { name: "sTeX", mime: "text/x-stex", mode: "stex" }, { name: "LaTeX", mime: "text/x-latex", mode: "stex", ext: ["text", "ltx", "tex"], alias: ["tex"] }, { name: "SystemVerilog", mime: "text/x-systemverilog", mode: "verilog", ext: ["v", "sv", "svh"] }, { name: "Tcl", mime: "text/x-tcl", mode: "tcl", ext: ["tcl"] }, { name: "Textile", mime: "text/x-textile", mode: "textile", ext: ["textile"] }, { name: "TiddlyWiki", mime: "text/x-tiddlywiki", mode: "tiddlywiki" }, { name: "Tiki wiki", mime: "text/tiki", mode: "tiki" }, { name: "TOML", mime: "text/x-toml", mode: "toml", ext: ["toml"] }, { name: "Tornado", mime: "text/x-tornado", mode: "tornado" }, { name: "troff", mime: "text/troff", mode: "troff", ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"] }, { name: "TTCN", mime: "text/x-ttcn", mode: "ttcn", ext: ["ttcn", "ttcn3", "ttcnpp"] }, { name: "TTCN_CFG", mime: "text/x-ttcn-cfg", mode: "ttcn-cfg", ext: ["cfg"] }, { name: "Turtle", mime: "text/turtle", mode: "turtle", ext: ["ttl"] }, { name: "TypeScript", mime: "application/typescript", mode: "javascript", ext: ["ts"], alias: ["ts"] }, { name: "TypeScript-JSX", mime: "text/typescript-jsx", mode: "jsx", ext: ["tsx"], alias: ["tsx"] }, { name: "Twig", mime: "text/x-twig", mode: "twig" }, { name: "Web IDL", mime: "text/x-webidl", mode: "webidl", ext: ["webidl"] }, { name: "VB.NET", mime: "text/x-vb", mode: "vb", ext: ["vb"] }, { name: "VBScript", mime: "text/vbscript", mode: "vbscript", ext: ["vbs"] }, { name: "Velocity", mime: "text/velocity", mode: "velocity", ext: ["vtl"] }, { name: "Verilog", mime: "text/x-verilog", mode: "verilog", ext: ["v"] }, { name: "VHDL", mime: "text/x-vhdl", mode: "vhdl", ext: ["vhd", "vhdl"] }, { name: "Vue.js Component", mimes: ["script/x-vue", "text/x-vue"], mode: "vue", ext: ["vue"] }, { name: "XML", mimes: ["application/xml", "text/xml"], mode: "xml", ext: ["xml", "xsl", "xsd", "svg"], alias: ["rss", "wsdl", "xsd"] }, { name: "XQuery", mime: "application/xquery", mode: "xquery", ext: ["xy", "xquery"] }, { name: "Yacas", mime: "text/x-yacas", mode: "yacas", ext: ["ys"] }, { name: "YAML", mimes: ["text/x-yaml", "text/yaml"], mode: "yaml", ext: ["yaml", "yml"], alias: ["yml"] }, { name: "Z80", mime: "text/x-z80", mode: "z80", ext: ["z80"] }, { name: "mscgen", mime: "text/x-mscgen", mode: "mscgen", ext: ["mscgen", "mscin", "msc"] }, { name: "xu", mime: "text/x-xu", mode: "mscgen", ext: ["xu"] }, { name: "msgenny", mime: "text/x-msgenny", mode: "mscgen", ext: ["msgenny"] }, { name: "WebAssembly", mime: "text/webassembly", mode: "wast", ext: ["wat", "wast"] }]; + for (var l = 0; l < o.modeInfo.length; l++) { + var f = o.modeInfo[l]; + f.mimes && (f.mime = f.mimes[0]); + } + o.findModeByMIME = function(g) { + g = g.toLowerCase(); + for (var A = 0; A < o.modeInfo.length; A++) { + var b = o.modeInfo[A]; + if (b.mime == g) + return b; + if (b.mimes) { + for (var v = 0; v < b.mimes.length; v++) + if (b.mimes[v] == g) + return b; + } + } + return /\+xml$/.test(g) ? o.findModeByMIME("application/xml") : /\+json$/.test(g) ? o.findModeByMIME("application/json") : void 0; + }, o.findModeByExtension = function(g) { + g = g.toLowerCase(); + for (var A = 0; A < o.modeInfo.length; A++) { + var b = o.modeInfo[A]; + if (b.ext) { + for (var v = 0; v < b.ext.length; v++) + if (b.ext[v] == g) + return b; + } + } + }, o.findModeByFileName = function(g) { + for (var A = 0; A < o.modeInfo.length; A++) { + var b = o.modeInfo[A]; + if (b.file && b.file.test(g)) + return b; + } + var v = g.lastIndexOf("."), k = v > -1 && g.substring(v + 1, g.length); + if (k) + return o.findModeByExtension(k); + }, o.findModeByName = function(g) { + g = g.toLowerCase(); + for (var A = 0; A < o.modeInfo.length; A++) { + var b = o.modeInfo[A]; + if (b.name.toLowerCase() == g) + return b; + if (b.alias) { + for (var v = 0; v < b.alias.length; v++) + if (b.alias[v].toLowerCase() == g) + return b; + } + } + }; + })(m2); +}), su(function(r, i) { + var o; + (o = m2).defineMode("markdown", function(l, f) { + var g = o.getMode(l, "text/html"), A = g.name == "null"; + function b(je) { + if (o.findModeByName) { + var Qe = o.findModeByName(je); + Qe && (je = Qe.mime || Qe.mimes[0]); + } + var kt = o.getMode(l, je); + return kt.name == "null" ? null : kt; + } + f.highlightFormatting === void 0 && (f.highlightFormatting = !1), f.maxBlockquoteDepth === void 0 && (f.maxBlockquoteDepth = 0), f.taskLists === void 0 && (f.taskLists = !1), f.strikethrough === void 0 && (f.strikethrough = !1), f.emoji === void 0 && (f.emoji = !1), f.fencedCodeBlockHighlighting === void 0 && (f.fencedCodeBlockHighlighting = !0), f.fencedCodeBlockDefaultMode === void 0 && (f.fencedCodeBlockDefaultMode = "text/plain"), f.xml === void 0 && (f.xml = !0), f.tokenTypeOverrides === void 0 && (f.tokenTypeOverrides = {}); + var v = { header: "header", code: "comment", quote: "quote", list1: "variable-2", list2: "variable-3", list3: "keyword", hr: "hr", image: "image", imageAltText: "image-alt-text", imageMarker: "image-marker", formatting: "formatting", linkInline: "link", linkEmail: "link", linkText: "link", linkHref: "string", em: "em", strong: "strong", strikethrough: "strikethrough", emoji: "builtin" }; + for (var k in v) + v.hasOwnProperty(k) && f.tokenTypeOverrides[k] && (v[k] = f.tokenTypeOverrides[k]); + var _ = /^([*\-_])(?:\s*\1){2,}\s*$/, T = /^(?:[*\-+]|^[0-9]+([.)]))\s+/, L = /^\[(x| )\](?=\s)/i, F = f.allowAtxHeaderWithoutSpace ? /^(#+)/ : /^(#+)(?: |$)/, U = /^ {0,3}(?:\={1,}|-{2,})\s*$/, q = /^[^#!\[\]*_\\<>` "'(~:]+/, Z = /^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/, R = /^\s*\[[^\]]+?\]:.*$/, J = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/, he = " "; + function Y(je, Qe, kt) { + return Qe.f = Qe.inline = kt, kt(je, Qe); + } + function ue(je, Qe, kt) { + return Qe.f = Qe.block = kt, kt(je, Qe); + } + function le(je) { + return !je || !/\S/.test(je.string); + } + function be(je) { + if (je.linkTitle = !1, je.linkHref = !1, je.linkText = !1, je.em = !1, je.strong = !1, je.strikethrough = !1, je.quote = 0, je.indentedCode = !1, je.f == de) { + var Qe = A; + if (!Qe) { + var kt = o.innerMode(g, je.htmlState); + Qe = kt.mode.name == "xml" && kt.state.tagStart === null && !kt.state.context && kt.state.tokenize.isInText; + } + Qe && (je.f = Be, je.block = ke, je.htmlState = null); + } + return je.trailingSpace = 0, je.trailingSpaceNewLine = !1, je.prevLine = je.thisLine, je.thisLine = { stream: null }, null; + } + function ke(je, Qe) { + var kt = je.column() === Qe.indentation, Wt = le(Qe.prevLine.stream), jt = Qe.indentedCode, Zn = Qe.prevLine.hr, Ft = Qe.list !== !1, wn = (Qe.listStack[Qe.listStack.length - 1] || 0) + 3; + Qe.indentedCode = !1; + var un = Qe.indentation; + if (Qe.indentationDiff === null && (Qe.indentationDiff = Qe.indentation, Ft)) { + for (Qe.list = null; un < Qe.listStack[Qe.listStack.length - 1]; ) + Qe.listStack.pop(), Qe.listStack.length ? Qe.indentation = Qe.listStack[Qe.listStack.length - 1] : Qe.list = !1; + Qe.list !== !1 && (Qe.indentationDiff = un - Qe.listStack[Qe.listStack.length - 1]); + } + var ln = !(Wt || Zn || Qe.prevLine.header || Ft && jt || Qe.prevLine.fencedCodeEnd), an = (Qe.list === !1 || Zn || Wt) && Qe.indentation <= wn && je.match(_), Ot = null; + if (Qe.indentationDiff >= 4 && (jt || Qe.prevLine.fencedCodeEnd || Qe.prevLine.header || Wt)) + return je.skipToEnd(), Qe.indentedCode = !0, v.code; + if (je.eatSpace()) + return null; + if (kt && Qe.indentation <= wn && (Ot = je.match(F)) && Ot[1].length <= 6) + return Qe.quote = 0, Qe.header = Ot[1].length, Qe.thisLine.header = !0, f.highlightFormatting && (Qe.formatting = "header"), Qe.f = Qe.inline, xe(Qe); + if (Qe.indentation <= wn && je.eat(">")) + return Qe.quote = kt ? 1 : Qe.quote + 1, f.highlightFormatting && (Qe.formatting = "quote"), je.eatSpace(), xe(Qe); + if (!an && !Qe.setext && kt && Qe.indentation <= wn && (Ot = je.match(T))) { + var $n = Ot[1] ? "ol" : "ul"; + return Qe.indentation = un + je.current().length, Qe.list = !0, Qe.quote = 0, Qe.listStack.push(Qe.indentation), Qe.em = !1, Qe.strong = !1, Qe.code = !1, Qe.strikethrough = !1, f.taskLists && je.match(L, !1) && (Qe.taskList = !0), Qe.f = Qe.inline, f.highlightFormatting && (Qe.formatting = ["list", "list-" + $n]), xe(Qe); + } + return kt && Qe.indentation <= wn && (Ot = je.match(Z, !0)) ? (Qe.quote = 0, Qe.fencedEndRE = new RegExp(Ot[1] + "+ *$"), Qe.localMode = f.fencedCodeBlockHighlighting && b(Ot[2] || f.fencedCodeBlockDefaultMode), Qe.localMode && (Qe.localState = o.startState(Qe.localMode)), Qe.f = Qe.block = Te, f.highlightFormatting && (Qe.formatting = "code-block"), Qe.code = -1, xe(Qe)) : Qe.setext || !(ln && Ft || Qe.quote || Qe.list !== !1 || Qe.code || an || R.test(je.string)) && (Ot = je.lookAhead(1)) && (Ot = Ot.match(U)) ? (Qe.setext ? (Qe.header = Qe.setext, Qe.setext = 0, je.skipToEnd(), f.highlightFormatting && (Qe.formatting = "header")) : (Qe.header = Ot[0].charAt(0) == "=" ? 1 : 2, Qe.setext = Qe.header), Qe.thisLine.header = !0, Qe.f = Qe.inline, xe(Qe)) : an ? (je.skipToEnd(), Qe.hr = !0, Qe.thisLine.hr = !0, v.hr) : je.peek() === "[" ? Y(je, Qe, Je) : Y(je, Qe, Qe.inline); + } + function de(je, Qe) { + var kt = g.token(je, Qe.htmlState); + if (!A) { + var Wt = o.innerMode(g, Qe.htmlState); + (Wt.mode.name == "xml" && Wt.state.tagStart === null && !Wt.state.context && Wt.state.tokenize.isInText || Qe.md_inside && je.current().indexOf(">") > -1) && (Qe.f = Be, Qe.block = ke, Qe.htmlState = null); + } + return kt; + } + function Te(je, Qe) { + var kt, Wt = Qe.listStack[Qe.listStack.length - 1] || 0, jt = Qe.indentation < Wt, Zn = Wt + 3; + return Qe.fencedEndRE && Qe.indentation <= Zn && (jt || je.match(Qe.fencedEndRE)) ? (f.highlightFormatting && (Qe.formatting = "code-block"), jt || (kt = xe(Qe)), Qe.localMode = Qe.localState = null, Qe.block = ke, Qe.f = Be, Qe.fencedEndRE = null, Qe.code = 0, Qe.thisLine.fencedCodeEnd = !0, jt ? ue(je, Qe, Qe.block) : kt) : Qe.localMode ? Qe.localMode.token(je, Qe.localState) : (je.skipToEnd(), v.code); + } + function xe(je) { + var Qe = []; + if (je.formatting) { + Qe.push(v.formatting), typeof je.formatting == "string" && (je.formatting = [je.formatting]); + for (var kt = 0; kt < je.formatting.length; kt++) + Qe.push(v.formatting + "-" + je.formatting[kt]), je.formatting[kt] === "header" && Qe.push(v.formatting + "-" + je.formatting[kt] + "-" + je.header), je.formatting[kt] === "quote" && (!f.maxBlockquoteDepth || f.maxBlockquoteDepth >= je.quote ? Qe.push(v.formatting + "-" + je.formatting[kt] + "-" + je.quote) : Qe.push("error")); + } + if (je.taskOpen) + return Qe.push("meta"), Qe.length ? Qe.join(" ") : null; + if (je.taskClosed) + return Qe.push("property"), Qe.length ? Qe.join(" ") : null; + if (je.linkHref ? Qe.push(v.linkHref, "url") : (je.strong && Qe.push(v.strong), je.em && Qe.push(v.em), je.strikethrough && Qe.push(v.strikethrough), je.emoji && Qe.push(v.emoji), je.linkText && Qe.push(v.linkText), je.code && Qe.push(v.code), je.image && Qe.push(v.image), je.imageAltText && Qe.push(v.imageAltText, "link"), je.imageMarker && Qe.push(v.imageMarker)), je.header && Qe.push(v.header, v.header + "-" + je.header), je.quote && (Qe.push(v.quote), !f.maxBlockquoteDepth || f.maxBlockquoteDepth >= je.quote ? Qe.push(v.quote + "-" + je.quote) : Qe.push(v.quote + "-" + f.maxBlockquoteDepth)), je.list !== !1) { + var Wt = (je.listStack.length - 1) % 3; + Wt ? Wt === 1 ? Qe.push(v.list2) : Qe.push(v.list3) : Qe.push(v.list1); + } + return je.trailingSpaceNewLine ? Qe.push("trailing-space-new-line") : je.trailingSpace && Qe.push("trailing-space-" + (je.trailingSpace % 2 ? "a" : "b")), Qe.length ? Qe.join(" ") : null; + } + function ie(je, Qe) { + if (je.match(q, !0)) + return xe(Qe); + } + function Be(je, Qe) { + var kt = Qe.text(je, Qe); + if (kt !== void 0) + return kt; + if (Qe.list) + return Qe.list = null, xe(Qe); + if (Qe.taskList) + return je.match(L, !0)[1] === " " ? Qe.taskOpen = !0 : Qe.taskClosed = !0, f.highlightFormatting && (Qe.formatting = "task"), Qe.taskList = !1, xe(Qe); + if (Qe.taskOpen = !1, Qe.taskClosed = !1, Qe.header && je.match(/^#+$/, !0)) + return f.highlightFormatting && (Qe.formatting = "header"), xe(Qe); + var Wt = je.next(); + if (Qe.linkTitle) { + Qe.linkTitle = !1; + var jt = Wt; + Wt === "(" && (jt = ")"); + var Zn = "^\\s*(?:[^" + (jt = (jt + "").replace(/([.?*+^\[\]\\(){}|-])/g, "\\$1")) + "\\\\]+|\\\\\\\\|\\\\.)" + jt; + if (je.match(new RegExp(Zn), !0)) + return v.linkHref; + } + if (Wt === "`") { + var Ft = Qe.formatting; + f.highlightFormatting && (Qe.formatting = "code"), je.eatWhile("`"); + var wn = je.current().length; + if (Qe.code != 0 || Qe.quote && wn != 1) { + if (wn == Qe.code) { + var un = xe(Qe); + return Qe.code = 0, un; + } + return Qe.formatting = Ft, xe(Qe); + } + return Qe.code = wn, xe(Qe); + } + if (Qe.code) + return xe(Qe); + if (Wt === "\\" && (je.next(), f.highlightFormatting)) { + var ln = xe(Qe), an = v.formatting + "-escape"; + return ln ? ln + " " + an : an; + } + if (Wt === "!" && je.match(/\[[^\]]*\] ?(?:\(|\[)/, !1)) + return Qe.imageMarker = !0, Qe.image = !0, f.highlightFormatting && (Qe.formatting = "image"), xe(Qe); + if (Wt === "[" && Qe.imageMarker && je.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/, !1)) + return Qe.imageMarker = !1, Qe.imageAltText = !0, f.highlightFormatting && (Qe.formatting = "image"), xe(Qe); + if (Wt === "]" && Qe.imageAltText) { + f.highlightFormatting && (Qe.formatting = "image"); + var ln = xe(Qe); + return Qe.imageAltText = !1, Qe.image = !1, Qe.inline = Qe.f = Me, ln; + } + if (Wt === "[" && !Qe.image) + return Qe.linkText && je.match(/^.*?\]/) || (Qe.linkText = !0, f.highlightFormatting && (Qe.formatting = "link")), xe(Qe); + if (Wt === "]" && Qe.linkText) { + f.highlightFormatting && (Qe.formatting = "link"); + var ln = xe(Qe); + return Qe.linkText = !1, Qe.inline = Qe.f = je.match(/\(.*?\)| ?\[.*?\]/, !1) ? Me : Be, ln; + } + if (Wt === "<" && je.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, !1)) + return Qe.f = Qe.inline = te, f.highlightFormatting && (Qe.formatting = "link"), (ln = xe(Qe)) ? ln += " " : ln = "", ln + v.linkInline; + if (Wt === "<" && je.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, !1)) + return Qe.f = Qe.inline = te, f.highlightFormatting && (Qe.formatting = "link"), (ln = xe(Qe)) ? ln += " " : ln = "", ln + v.linkEmail; + if (f.xml && Wt === "<" && je.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i, !1)) { + var Ot = je.string.indexOf(">", je.pos); + if (Ot != -1) { + var $n = je.string.substring(je.start, Ot); + /markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($n) && (Qe.md_inside = !0); + } + return je.backUp(1), Qe.htmlState = o.startState(g), ue(je, Qe, de); + } + if (f.xml && Wt === "<" && je.match(/^\/\w*?>/)) + return Qe.md_inside = !1, "tag"; + if (Wt === "*" || Wt === "_") { + for (var pt = 1, Ci = je.pos == 1 ? " " : je.string.charAt(je.pos - 2); pt < 3 && je.eat(Wt); ) + pt++; + var ut = je.peek() || " ", br = !/\s/.test(ut) && (!J.test(ut) || /\s/.test(Ci) || J.test(Ci)), zt = !/\s/.test(Ci) && (!J.test(Ci) || /\s/.test(ut) || J.test(ut)), Wr = null, zr = null; + if (pt % 2 && (Qe.em || !br || Wt !== "*" && zt && !J.test(Ci) ? Qe.em != Wt || !zt || Wt !== "*" && br && !J.test(ut) || (Wr = !1) : Wr = !0), pt > 1 && (Qe.strong || !br || Wt !== "*" && zt && !J.test(Ci) ? Qe.strong != Wt || !zt || Wt !== "*" && br && !J.test(ut) || (zr = !1) : zr = !0), zr != null || Wr != null) + return f.highlightFormatting && (Qe.formatting = Wr == null ? "strong" : zr == null ? "em" : "strong em"), Wr === !0 && (Qe.em = Wt), zr === !0 && (Qe.strong = Wt), un = xe(Qe), Wr === !1 && (Qe.em = !1), zr === !1 && (Qe.strong = !1), un; + } else if (Wt === " " && (je.eat("*") || je.eat("_"))) { + if (je.peek() === " ") + return xe(Qe); + je.backUp(1); + } + if (f.strikethrough) { + if (Wt === "~" && je.eatWhile(Wt)) { + if (Qe.strikethrough) + return f.highlightFormatting && (Qe.formatting = "strikethrough"), un = xe(Qe), Qe.strikethrough = !1, un; + if (je.match(/^[^\s]/, !1)) + return Qe.strikethrough = !0, f.highlightFormatting && (Qe.formatting = "strikethrough"), xe(Qe); + } else if (Wt === " " && je.match(/^~~/, !0)) { + if (je.peek() === " ") + return xe(Qe); + je.backUp(2); + } + } + if (f.emoji && Wt === ":" && je.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)) { + Qe.emoji = !0, f.highlightFormatting && (Qe.formatting = "emoji"); + var Si = xe(Qe); + return Qe.emoji = !1, Si; + } + return Wt === " " && (je.match(/^ +$/, !1) ? Qe.trailingSpace++ : Qe.trailingSpace && (Qe.trailingSpaceNewLine = !0)), xe(Qe); + } + function te(je, Qe) { + if (je.next() === ">") { + Qe.f = Qe.inline = Be, f.highlightFormatting && (Qe.formatting = "link"); + var kt = xe(Qe); + return kt ? kt += " " : kt = "", kt + v.linkInline; + } + return je.match(/^[^>]+/, !0), v.linkInline; + } + function Me(je, Qe) { + if (je.eatSpace()) + return null; + var kt = je.next(); + return kt === "(" || kt === "[" ? (Qe.f = Qe.inline = ge(kt === "(" ? ")" : "]"), f.highlightFormatting && (Qe.formatting = "link-string"), Qe.linkHref = !0, xe(Qe)) : "error"; + } + var ve = { ")": /^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/, "]": /^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/ }; + function ge(je) { + return function(Qe, kt) { + if (Qe.next() === je) { + kt.f = kt.inline = Be, f.highlightFormatting && (kt.formatting = "link-string"); + var Wt = xe(kt); + return kt.linkHref = !1, Wt; + } + return Qe.match(ve[je]), kt.linkHref = !0, xe(kt); + }; + } + function Je(je, Qe) { + return je.match(/^([^\]\\]|\\.)*\]:/, !1) ? (Qe.f = ot, je.next(), f.highlightFormatting && (Qe.formatting = "link"), Qe.linkText = !0, xe(Qe)) : Y(je, Qe, Be); + } + function ot(je, Qe) { + if (je.match(/^\]:/, !0)) { + Qe.f = Qe.inline = bt, f.highlightFormatting && (Qe.formatting = "link"); + var kt = xe(Qe); + return Qe.linkText = !1, kt; + } + return je.match(/^([^\]\\]|\\.)+/, !0), v.linkText; + } + function bt(je, Qe) { + return je.eatSpace() ? null : (je.match(/^[^\s]+/, !0), je.peek() === void 0 ? Qe.linkTitle = !0 : je.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/, !0), Qe.f = Qe.inline = Be, v.linkHref + " url"); + } + var gt = { startState: function() { + return { f: ke, prevLine: { stream: null }, thisLine: { stream: null }, block: ke, htmlState: null, indentation: 0, inline: Be, text: ie, formatting: !1, linkText: !1, linkHref: !1, linkTitle: !1, code: 0, em: !1, strong: !1, header: 0, setext: 0, hr: !1, taskList: !1, list: !1, listStack: [], quote: 0, trailingSpace: 0, trailingSpaceNewLine: !1, strikethrough: !1, emoji: !1, fencedEndRE: null }; + }, copyState: function(je) { + return { f: je.f, prevLine: je.prevLine, thisLine: je.thisLine, block: je.block, htmlState: je.htmlState && o.copyState(g, je.htmlState), indentation: je.indentation, localMode: je.localMode, localState: je.localMode ? o.copyState(je.localMode, je.localState) : null, inline: je.inline, text: je.text, formatting: !1, linkText: je.linkText, linkTitle: je.linkTitle, linkHref: je.linkHref, code: je.code, em: je.em, strong: je.strong, strikethrough: je.strikethrough, emoji: je.emoji, header: je.header, setext: je.setext, hr: je.hr, taskList: je.taskList, list: je.list, listStack: je.listStack.slice(0), quote: je.quote, indentedCode: je.indentedCode, trailingSpace: je.trailingSpace, trailingSpaceNewLine: je.trailingSpaceNewLine, md_inside: je.md_inside, fencedEndRE: je.fencedEndRE }; + }, token: function(je, Qe) { + if (Qe.formatting = !1, je != Qe.thisLine.stream) { + if (Qe.header = 0, Qe.hr = !1, je.match(/^\s*$/, !0)) + return be(Qe), null; + if (Qe.prevLine = Qe.thisLine, Qe.thisLine = { stream: je }, Qe.taskList = !1, Qe.trailingSpace = 0, Qe.trailingSpaceNewLine = !1, !Qe.localState && (Qe.f = Qe.block, Qe.f != de)) { + var kt = je.match(/^\s*/, !0)[0].replace(/\t/g, he).length; + if (Qe.indentation = kt, Qe.indentationDiff = null, kt > 0) + return null; + } + } + return Qe.f(je, Qe); + }, innerMode: function(je) { + return je.block == de ? { state: je.htmlState, mode: g } : je.localState ? { state: je.localState, mode: je.localMode } : { state: je, mode: gt }; + }, indent: function(je, Qe, kt) { + return je.block == de && g.indent ? g.indent(je.htmlState, Qe, kt) : je.localState && je.localMode.indent ? je.localMode.indent(je.localState, Qe, kt) : o.Pass; + }, blankLine: be, getType: xe, blockCommentStart: "", closeBrackets: "()[]{}''\"\"``", fold: "markdown" }; + return gt; + }, "xml"), o.defineMIME("text/markdown", "markdown"), o.defineMIME("text/x-markdown", "markdown"); +}), su(function(r, i) { + var o; + (o = m2).overlayMode = function(l, f, g) { + return { startState: function() { + return { base: o.startState(l), overlay: o.startState(f), basePos: 0, baseCur: null, overlayPos: 0, overlayCur: null, streamSeen: null }; + }, copyState: function(A) { + return { base: o.copyState(l, A.base), overlay: o.copyState(f, A.overlay), basePos: A.basePos, baseCur: null, overlayPos: A.overlayPos, overlayCur: null }; + }, token: function(A, b) { + return (A != b.streamSeen || Math.min(b.basePos, b.overlayPos) < A.start) && (b.streamSeen = A, b.basePos = b.overlayPos = A.start), A.start == b.basePos && (b.baseCur = l.token(A, b.base), b.basePos = A.pos), A.start == b.overlayPos && (A.pos = A.start, b.overlayCur = f.token(A, b.overlay), b.overlayPos = A.pos), A.pos = Math.min(b.basePos, b.overlayPos), b.overlayCur == null ? b.baseCur : b.baseCur != null && b.overlay.combineTokens || g && b.overlay.combineTokens == null ? b.baseCur + " " + b.overlayCur : b.overlayCur; + }, indent: l.indent && function(A, b, v) { + return l.indent(A.base, b, v); + }, electricChars: l.electricChars, innerMode: function(A) { + return { state: A.base, mode: l }; + }, blankLine: function(A) { + var b, v; + return l.blankLine && (b = l.blankLine(A.base)), f.blankLine && (v = f.blankLine(A.overlay)), v == null ? b : g && b != null ? b + " " + v : v; + } }; + }; +}); +su(function(r, i) { + var o, l; + l = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i, (o = m2).defineMode("gfm", function(f, g) { + var A = 0; + function b(T) { + return T.code = !1, null; + } + var v = { startState: function() { + return { code: !1, codeBlock: !1, ateSpace: !1 }; + }, copyState: function(T) { + return { code: T.code, codeBlock: T.codeBlock, ateSpace: T.ateSpace }; + }, token: function(T, L) { + if (L.combineTokens = null, L.codeBlock) + return T.match(/^```+/) ? (L.codeBlock = !1, null) : (T.skipToEnd(), null); + if (T.sol() && (L.code = !1), T.sol() && T.match(/^```+/)) + return T.skipToEnd(), L.codeBlock = !0, null; + if (T.peek() === "`") { + T.next(); + var F = T.pos; + T.eatWhile("`"); + var U = 1 + T.pos - F; + return L.code ? U === A && (L.code = !1) : (A = U, L.code = !0), null; + } + return L.code ? (T.next(), null) : T.eatSpace() ? (L.ateSpace = !0, null) : (T.sol() || L.ateSpace) && (L.ateSpace = !1, g.gitHubSpice !== !1) && (T.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/) || T.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)) || T.match(l) && T.string.slice(T.start - 2, T.start) != "](" && (T.start == 0 || /\W/.test(T.string.charAt(T.start - 1))) ? (L.combineTokens = !0, "link") : (T.next(), null); + }, blankLine: b }, k = { taskLists: !0, strikethrough: !0, emoji: !0 }; + for (var _ in g) + k[_] = g[_]; + return k.name = "markdown", o.overlayMode(o.getMode(f, k), v); + }, "markdown"), o.defineMIME("text/x-gfm", "gfm"); +}), su(function(r, i) { + (function(o) { + var l = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/, f = /^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/, g = /[*+-]\s/; + function A(b, v) { + var k = v.line, _ = 0, T = 0, L = l.exec(b.getLine(k)), F = L[1]; + do { + var U = k + (_ += 1), q = b.getLine(U), Z = l.exec(q); + if (Z) { + var R = Z[1], J = parseInt(L[3], 10) + _ - T, he = parseInt(Z[3], 10), Y = he; + if (F !== R || isNaN(he)) { + if (F.length > R.length || F.length < R.length && _ === 1) + return; + T += 1; + } else + J === he && (Y = he + 1), J > he && (Y = J + 1), b.replaceRange(q.replace(l, R + Y + Z[4] + Z[5]), { line: U, ch: 0 }, { line: U, ch: q.length }); + } + } while (Z); + } + o.commands.newlineAndIndentContinueMarkdownList = function(b) { + if (b.getOption("disableInput")) + return o.Pass; + for (var v = b.listSelections(), k = [], _ = 0; _ < v.length; _++) { + var T = v[_].head, L = b.getStateAfter(T.line), F = o.innerMode(b.getMode(), L); + if (F.mode.name !== "markdown") + return void b.execCommand("newlineAndIndent"); + var U = (L = F.state).list !== !1, q = L.quote !== 0, Z = b.getLine(T.line), R = l.exec(Z), J = /^\s*$/.test(Z.slice(0, T.ch)); + if (!v[_].empty() || !U && !q || !R || J) + return void b.execCommand("newlineAndIndent"); + if (f.test(Z)) { + var he = q && />\s*$/.test(Z), Y = !/>\s*$/.test(Z); + (he || Y) && b.replaceRange("", { line: T.line, ch: 0 }, { line: T.line, ch: T.ch + 1 }), k[_] = ` +`; + } else { + var ue = R[1], le = R[5], be = !(g.test(R[2]) || R[2].indexOf(">") >= 0), ke = be ? parseInt(R[3], 10) + 1 + R[4] : R[2].replace("x", " "); + k[_] = ` +` + ue + ke + le, be && A(b, T); + } + } + b.replaceSelections(k); + }; + })(m2); +}); +su(function(r, i) { + (function(o) { + var l = o.Pos; + function f(R, J) { + return R.line - J.line || R.ch - J.ch; + } + var g = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", A = new RegExp("<(/?)([" + g + "][" + g + "-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)", "g"); + function b(R, J, he, Y) { + this.line = J, this.ch = he, this.cm = R, this.text = R.getLine(J), this.min = Y ? Math.max(Y.from, R.firstLine()) : R.firstLine(), this.max = Y ? Math.min(Y.to - 1, R.lastLine()) : R.lastLine(); + } + function v(R, J) { + var he = R.cm.getTokenTypeAt(l(R.line, J)); + return he && /\btag\b/.test(he); + } + function k(R) { + if (!(R.line >= R.max)) + return R.ch = 0, R.text = R.cm.getLine(++R.line), !0; + } + function _(R) { + if (!(R.line <= R.min)) + return R.text = R.cm.getLine(--R.line), R.ch = R.text.length, !0; + } + function T(R) { + for (; ; ) { + var J = R.text.indexOf(">", R.ch); + if (J == -1) { + if (k(R)) + continue; + return; + } + if (v(R, J + 1)) { + var he = R.text.lastIndexOf("/", J), Y = he > -1 && !/\S/.test(R.text.slice(he + 1, J)); + return R.ch = J + 1, Y ? "selfClose" : "regular"; + } + R.ch = J + 1; + } + } + function L(R) { + for (; ; ) { + var J = R.ch ? R.text.lastIndexOf("<", R.ch - 1) : -1; + if (J == -1) { + if (_(R)) + continue; + return; + } + if (v(R, J + 1)) { + A.lastIndex = J, R.ch = J; + var he = A.exec(R.text); + if (he && he.index == J) + return he; + } else + R.ch = J; + } + } + function F(R) { + for (; ; ) { + A.lastIndex = R.ch; + var J = A.exec(R.text); + if (!J) { + if (k(R)) + continue; + return; + } + if (v(R, J.index + 1)) + return R.ch = J.index + J[0].length, J; + R.ch = J.index + 1; + } + } + function U(R) { + for (; ; ) { + var J = R.ch ? R.text.lastIndexOf(">", R.ch - 1) : -1; + if (J == -1) { + if (_(R)) + continue; + return; + } + if (v(R, J + 1)) { + var he = R.text.lastIndexOf("/", J), Y = he > -1 && !/\S/.test(R.text.slice(he + 1, J)); + return R.ch = J + 1, Y ? "selfClose" : "regular"; + } + R.ch = J; + } + } + function q(R, J) { + for (var he = []; ; ) { + var Y, ue = F(R), le = R.line, be = R.ch - (ue ? ue[0].length : 0); + if (!ue || !(Y = T(R))) + return; + if (Y != "selfClose") + if (ue[1]) { + for (var ke = he.length - 1; ke >= 0; --ke) + if (he[ke] == ue[2]) { + he.length = ke; + break; + } + if (ke < 0 && (!J || J == ue[2])) + return { tag: ue[2], from: l(le, be), to: l(R.line, R.ch) }; + } else + he.push(ue[2]); + } + } + function Z(R, J) { + for (var he = []; ; ) { + var Y = U(R); + if (!Y) + return; + if (Y != "selfClose") { + var ue = R.line, le = R.ch, be = L(R); + if (!be) + return; + if (be[1]) + he.push(be[2]); + else { + for (var ke = he.length - 1; ke >= 0; --ke) + if (he[ke] == be[2]) { + he.length = ke; + break; + } + if (ke < 0 && (!J || J == be[2])) + return { tag: be[2], from: l(R.line, R.ch), to: l(ue, le) }; + } + } else + L(R); + } + } + o.registerHelper("fold", "xml", function(R, J) { + for (var he = new b(R, J.line, 0); ; ) { + var Y = F(he); + if (!Y || he.line != J.line) + return; + var ue = T(he); + if (!ue) + return; + if (!Y[1] && ue != "selfClose") { + var le = l(he.line, he.ch), be = q(he, Y[2]); + return be && f(be.from, le) > 0 ? { from: le, to: be.from } : null; + } + } + }), o.findMatchingTag = function(R, J, he) { + var Y = new b(R, J.line, J.ch, he); + if (Y.text.indexOf(">") != -1 || Y.text.indexOf("<") != -1) { + var ue = T(Y), le = ue && l(Y.line, Y.ch), be = ue && L(Y); + if (ue && be && !(f(Y, J) > 0)) { + var ke = { from: l(Y.line, Y.ch), to: le, tag: be[2] }; + return ue == "selfClose" ? { open: ke, close: null, at: "open" } : be[1] ? { open: Z(Y, be[2]), close: ke, at: "close" } : { open: ke, close: q(Y = new b(R, le.line, le.ch, he), be[2]), at: "open" }; + } + } + }, o.findEnclosingTag = function(R, J, he, Y) { + for (var ue = new b(R, J.line, J.ch, he); ; ) { + var le = Z(ue, Y); + if (!le) + break; + var be = q(new b(R, J.line, J.ch, he), le.tag); + if (be) + return { open: le, close: be }; + } + }, o.scanForClosingTag = function(R, J, he, Y) { + return q(new b(R, J.line, J.ch, Y ? { from: 0, to: Y } : null), he); + }; + })(m2); +}); +su(function(r, i) { + (function(o) { + o.defineOption("autoCloseTags", !1, function(_, T, L) { + if (L != o.Init && L && _.removeKeyMap("autoCloseTags"), T) { + var F = { name: "autoCloseTags" }; + typeof T == "object" && T.whenClosing === !1 || (F["'/'"] = function(U) { + return b(U); + }), typeof T == "object" && T.whenOpening === !1 || (F["'>'"] = function(U) { + return g(U); + }), _.addKeyMap(F); + } + }); + var l = ["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], f = ["applet", "blockquote", "body", "button", "div", "dl", "fieldset", "form", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "html", "iframe", "layer", "legend", "object", "ol", "p", "select", "table", "ul"]; + function g(_) { + if (_.getOption("disableInput")) + return o.Pass; + for (var T = _.listSelections(), L = [], F = _.getOption("autoCloseTags"), U = 0; U < T.length; U++) { + if (!T[U].empty()) + return o.Pass; + var q = T[U].head, Z = _.getTokenAt(q), R = o.innerMode(_.getMode(), Z.state), J = R.state, he = R.mode.xmlCurrentTag && R.mode.xmlCurrentTag(J), Y = he && he.name; + if (!Y) + return o.Pass; + var ue = R.mode.configuration == "html", le = typeof F == "object" && F.dontCloseTags || ue && l, be = typeof F == "object" && F.indentTags || ue && f; + Z.end > q.ch && (Y = Y.slice(0, Y.length - Z.end + q.ch)); + var ke = Y.toLowerCase(); + if (!Y || Z.type == "string" && (Z.end != q.ch || !/[\"\']/.test(Z.string.charAt(Z.string.length - 1)) || Z.string.length == 1) || Z.type == "tag" && he.close || Z.string.indexOf("/") == q.ch - Z.start - 1 || le && v(le, ke) > -1 || k(_, R.mode.xmlCurrentContext && R.mode.xmlCurrentContext(J) || [], Y, q, !0)) + return o.Pass; + var de = typeof F == "object" && F.emptyTags; + if (de && v(de, Y) > -1) + L[U] = { text: "/>", newPos: o.Pos(q.line, q.ch + 2) }; + else { + var Te = be && v(be, ke) > -1; + L[U] = { indent: Te, text: ">" + (Te ? ` + +` : "") + "", newPos: Te ? o.Pos(q.line + 1, 0) : o.Pos(q.line, q.ch + 1) }; + } + } + var xe = typeof F == "object" && F.dontIndentOnAutoClose; + for (U = T.length - 1; U >= 0; U--) { + var ie = L[U]; + _.replaceRange(ie.text, T[U].head, T[U].anchor, "+insert"); + var Be = _.listSelections().slice(0); + Be[U] = { head: ie.newPos, anchor: ie.newPos }, _.setSelections(Be), !xe && ie.indent && (_.indentLine(ie.newPos.line, null, !0), _.indentLine(ie.newPos.line + 1, null, !0)); + } + } + function A(_, T) { + for (var L = _.listSelections(), F = [], U = T ? "/" : "" && (le += ">"), F[R] = le; + } + if (_.replaceSelections(F), L = _.listSelections(), !Z) + for (R = 0; R < L.length; R++) + (R == L.length - 1 || L[R].head.line < L[R + 1].head.line) && _.indentLine(L[R].head.line); + } + function b(_) { + return _.getOption("disableInput") ? o.Pass : A(_, !0); + } + function v(_, T) { + if (_.indexOf) + return _.indexOf(T); + for (var L = 0, F = _.length; L < F; ++L) + if (_[L] == T) + return L; + return -1; + } + function k(_, T, L, F, U) { + if (!o.scanForClosingTag) + return !1; + var q = Math.min(_.lastLine() + 1, F.line + 500), Z = o.scanForClosingTag(_, F, null, q); + if (!Z || Z.tag != L) + return !1; + for (var R = U ? 1 : 0, J = T.length - 1; J >= 0 && T[J] == L; J--) + ++R; + for (F = Z.to, J = 1; J < R; J++) { + var he = o.scanForClosingTag(_, F, null, q); + if (!he || he.tag != L) + return !1; + F = he.to; + } + return !0; + } + o.commands.closeTag = function(_) { + return A(_); + }; + })(m2); +}), su(function(r, i) { + (function(o) { + function l(A) { + A.state.tagHit && A.state.tagHit.clear(), A.state.tagOther && A.state.tagOther.clear(), A.state.tagHit = A.state.tagOther = null; + } + function f(A) { + A.state.failedTagMatch = !1, A.operation(function() { + if (l(A), !A.somethingSelected()) { + var b = A.getCursor(), v = A.getViewport(); + v.from = Math.min(v.from, b.line), v.to = Math.max(b.line + 1, v.to); + var k = o.findMatchingTag(A, b, v); + if (k) { + if (A.state.matchBothTags) { + var _ = k.at == "open" ? k.open : k.close; + _ && (A.state.tagHit = A.markText(_.from, _.to, { className: "CodeMirror-matchingtag" })); + } + var T = k.at == "close" ? k.open : k.close; + T ? A.state.tagOther = A.markText(T.from, T.to, { className: "CodeMirror-matchingtag" }) : A.state.failedTagMatch = !0; + } + } + }); + } + function g(A) { + A.state.failedTagMatch && f(A); + } + o.defineOption("matchTags", !1, function(A, b, v) { + v && v != o.Init && (A.off("cursorActivity", f), A.off("viewportChange", g), l(A)), b && (A.state.matchBothTags = typeof b == "object" && b.bothTags, A.on("cursorActivity", f), A.on("viewportChange", g), f(A)); + }), o.commands.toMatchingTag = function(A) { + var b = o.findMatchingTag(A, A.getCursor()); + if (b) { + var v = b.at == "close" ? b.open : b.close; + v && A.extendSelection(v.to, v.from); + } + }; + })(m2); +}); +su(function(r, i) { + (function(o) { + var l, f, g = o.Pos; + function A(J) { + var he = J.flags; + return he ?? (J.ignoreCase ? "i" : "") + (J.global ? "g" : "") + (J.multiline ? "m" : ""); + } + function b(J, he) { + for (var Y = A(J), ue = Y, le = 0; le < he.length; le++) + ue.indexOf(he.charAt(le)) == -1 && (ue += he.charAt(le)); + return Y == ue ? J : new RegExp(J.source, ue); + } + function v(J) { + return /\\s|\\n|\n|\\W|\\D|\[\^/.test(J.source); + } + function k(J, he, Y) { + he = b(he, "g"); + for (var ue = Y.line, le = Y.ch, be = J.lastLine(); ue <= be; ue++, le = 0) { + he.lastIndex = le; + var ke = J.getLine(ue), de = he.exec(ke); + if (de) + return { from: g(ue, de.index), to: g(ue, de.index + de[0].length), match: de }; + } + } + function _(J, he, Y) { + if (!v(he)) + return k(J, he, Y); + he = b(he, "gm"); + for (var ue, le = 1, be = Y.line, ke = J.lastLine(); be <= ke; ) { + for (var de = 0; de < le && !(be > ke); de++) { + var Te = J.getLine(be++); + ue = ue == null ? Te : ue + ` +` + Te; + } + le *= 2, he.lastIndex = Y.ch; + var xe = he.exec(ue); + if (xe) { + var ie = ue.slice(0, xe.index).split(` +`), Be = xe[0].split(` +`), te = Y.line + ie.length - 1, Me = ie[ie.length - 1].length; + return { from: g(te, Me), to: g(te + Be.length - 1, Be.length == 1 ? Me + Be[0].length : Be[Be.length - 1].length), match: xe }; + } + } + } + function T(J, he, Y) { + for (var ue, le = 0; le <= J.length; ) { + he.lastIndex = le; + var be = he.exec(J); + if (!be) + break; + var ke = be.index + be[0].length; + if (ke > J.length - Y) + break; + (!ue || ke > ue.index + ue[0].length) && (ue = be), le = be.index + 1; + } + return ue; + } + function L(J, he, Y) { + he = b(he, "g"); + for (var ue = Y.line, le = Y.ch, be = J.firstLine(); ue >= be; ue--, le = -1) { + var ke = J.getLine(ue), de = T(ke, he, le < 0 ? 0 : ke.length - le); + if (de) + return { from: g(ue, de.index), to: g(ue, de.index + de[0].length), match: de }; + } + } + function F(J, he, Y) { + if (!v(he)) + return L(J, he, Y); + he = b(he, "gm"); + for (var ue, le = 1, be = J.getLine(Y.line).length - Y.ch, ke = Y.line, de = J.firstLine(); ke >= de; ) { + for (var Te = 0; Te < le && ke >= de; Te++) { + var xe = J.getLine(ke--); + ue = ue == null ? xe : xe + ` +` + ue; + } + le *= 2; + var ie = T(ue, he, be); + if (ie) { + var Be = ue.slice(0, ie.index).split(` +`), te = ie[0].split(` +`), Me = ke + Be.length, ve = Be[Be.length - 1].length; + return { from: g(Me, ve), to: g(Me + te.length - 1, te.length == 1 ? ve + te[0].length : te[te.length - 1].length), match: ie }; + } + } + } + function U(J, he, Y, ue) { + if (J.length == he.length) + return Y; + for (var le = 0, be = Y + Math.max(0, J.length - he.length); ; ) { + if (le == be) + return le; + var ke = le + be >> 1, de = ue(J.slice(0, ke)).length; + if (de == Y) + return ke; + de > Y ? be = ke : le = ke + 1; + } + } + function q(J, he, Y, ue) { + if (!he.length) + return null; + var le = ue ? l : f, be = le(he).split(/\r|\n\r?/); + e: + for (var ke = Y.line, de = Y.ch, Te = J.lastLine() + 1 - be.length; ke <= Te; ke++, de = 0) { + var xe = J.getLine(ke).slice(de), ie = le(xe); + if (be.length == 1) { + var Be = ie.indexOf(be[0]); + if (Be == -1) + continue e; + return Y = U(xe, ie, Be, le) + de, { from: g(ke, U(xe, ie, Be, le) + de), to: g(ke, U(xe, ie, Be + be[0].length, le) + de) }; + } + var te = ie.length - be[0].length; + if (ie.slice(te) == be[0]) { + for (var Me = 1; Me < be.length - 1; Me++) + if (le(J.getLine(ke + Me)) != be[Me]) + continue e; + var ve = J.getLine(ke + be.length - 1), ge = le(ve), Je = be[be.length - 1]; + if (ge.slice(0, Je.length) == Je) + return { from: g(ke, U(xe, ie, te, le) + de), to: g(ke + be.length - 1, U(ve, ge, Je.length, le)) }; + } + } + } + function Z(J, he, Y, ue) { + if (!he.length) + return null; + var le = ue ? l : f, be = le(he).split(/\r|\n\r?/); + e: + for (var ke = Y.line, de = Y.ch, Te = J.firstLine() - 1 + be.length; ke >= Te; ke--, de = -1) { + var xe = J.getLine(ke); + de > -1 && (xe = xe.slice(0, de)); + var ie = le(xe); + if (be.length == 1) { + var Be = ie.lastIndexOf(be[0]); + if (Be == -1) + continue e; + return { from: g(ke, U(xe, ie, Be, le)), to: g(ke, U(xe, ie, Be + be[0].length, le)) }; + } + var te = be[be.length - 1]; + if (ie.slice(0, te.length) == te) { + var Me = 1; + for (Y = ke - be.length + 1; Me < be.length - 1; Me++) + if (le(J.getLine(Y + Me)) != be[Me]) + continue e; + var ve = J.getLine(ke + 1 - be.length), ge = le(ve); + if (ge.slice(ge.length - be[0].length) == be[0]) + return { from: g(ke + 1 - be.length, U(ve, ge, ve.length - be[0].length, le)), to: g(ke, U(xe, ie, te.length, le)) }; + } + } + } + function R(J, he, Y, ue) { + var le; + this.atOccurrence = !1, this.doc = J, Y = Y ? J.clipPos(Y) : g(0, 0), this.pos = { from: Y, to: Y }, typeof ue == "object" ? le = ue.caseFold : (le = ue, ue = null), typeof he == "string" ? (le == null && (le = !1), this.matches = function(be, ke) { + return (be ? Z : q)(J, he, ke, le); + }) : (he = b(he, "gm"), ue && ue.multiline === !1 ? this.matches = function(be, ke) { + return (be ? L : k)(J, he, ke); + } : this.matches = function(be, ke) { + return (be ? F : _)(J, he, ke); + }); + } + String.prototype.normalize ? (l = function(J) { + return J.normalize("NFD").toLowerCase(); + }, f = function(J) { + return J.normalize("NFD"); + }) : (l = function(J) { + return J.toLowerCase(); + }, f = function(J) { + return J; + }), R.prototype = { findNext: function() { + return this.find(!1); + }, findPrevious: function() { + return this.find(!0); + }, find: function(J) { + for (var he = this.matches(J, this.doc.clipPos(J ? this.pos.from : this.pos.to)); he && o.cmpPos(he.from, he.to) == 0; ) + J ? he.from.ch ? he.from = g(he.from.line, he.from.ch - 1) : he = he.from.line == this.doc.firstLine() ? null : this.matches(J, this.doc.clipPos(g(he.from.line - 1))) : he.to.ch < this.doc.getLine(he.to.line).length ? he.to = g(he.to.line, he.to.ch + 1) : he = he.to.line == this.doc.lastLine() ? null : this.matches(J, g(he.to.line + 1, 0)); + if (he) + return this.pos = he, this.atOccurrence = !0, this.pos.match || !0; + var Y = g(J ? this.doc.firstLine() : this.doc.lastLine() + 1, 0); + return this.pos = { from: Y, to: Y }, this.atOccurrence = !1; + }, from: function() { + if (this.atOccurrence) + return this.pos.from; + }, to: function() { + if (this.atOccurrence) + return this.pos.to; + }, replace: function(J, he) { + if (this.atOccurrence) { + var Y = o.splitLines(J); + this.doc.replaceRange(Y, this.pos.from, this.pos.to, he), this.pos.to = g(this.pos.from.line + Y.length - 1, Y[Y.length - 1].length + (Y.length == 1 ? this.pos.from.ch : 0)); + } + } }, o.defineExtension("getSearchCursor", function(J, he, Y) { + return new R(this.doc, J, he, Y); + }), o.defineDocExtension("getSearchCursor", function(J, he, Y) { + return new R(this, J, he, Y); + }), o.defineExtension("selectMatches", function(J, he) { + for (var Y = [], ue = this.getSearchCursor(J, this.getCursor("from"), he); ue.findNext() && !(o.cmpPos(ue.to(), this.getCursor("to")) > 0); ) + Y.push({ anchor: ue.from(), head: ue.to() }); + Y.length && this.setSelections(Y, 0); + }); + })(m2); +}); +su(function(r, i) { + (function(o) { + function l(k) { + k.state.placeholder && (k.state.placeholder.parentNode.removeChild(k.state.placeholder), k.state.placeholder = null); + } + function f(k) { + l(k); + var _ = k.state.placeholder = document.createElement("pre"); + _.style.cssText = "height: 0; overflow: visible", _.style.direction = k.getOption("direction"), _.className = "CodeMirror-placeholder CodeMirror-line-like"; + var T = k.getOption("placeholder"); + typeof T == "string" && (T = document.createTextNode(T)), _.appendChild(T), k.display.lineSpace.insertBefore(_, k.display.lineSpace.firstChild); + } + function g(k) { + setTimeout(function() { + var _ = !1, T = k.getInputField(); + T.nodeName == "TEXTAREA" ? _ = !T.value : k.lineCount() == 1 && (_ = !/[^\u200b]/.test(T.querySelector(".CodeMirror-line").textContent)), _ ? f(k) : l(k); + }, 20); + } + function A(k) { + v(k) && f(k); + } + function b(k) { + var _ = k.getWrapperElement(), T = v(k); + _.className = _.className.replace(" CodeMirror-empty", "") + (T ? " CodeMirror-empty" : ""), T ? f(k) : l(k); + } + function v(k) { + return k.lineCount() === 1 && k.getLine(0) === ""; + } + o.defineOption("placeholder", "", function(k, _, T) { + var L = T && T != o.Init; + if (_ && !L) + k.on("blur", A), k.on("change", b), k.on("swapDoc", b), o.on(k.getInputField(), "compositionupdate", k.state.placeholderCompose = function() { + g(k); + }), b(k); + else if (!_ && L) { + k.off("blur", A), k.off("change", b), k.off("swapDoc", b), o.off(k.getInputField(), "compositionupdate", k.state.placeholderCompose), l(k); + var F = k.getWrapperElement(); + F.className = F.className.replace(" CodeMirror-empty", ""); + } + _ && !k.hasFocus() && A(k); + }); + })(m2); +}); +su(function(r, i) { + (function(o) { + var l = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 8), f = o.Pos, g = { "(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<", "<": ">>", ">": "<<" }; + function A(T) { + return T && T.bracketRegex || /[(){}[\]]/; + } + function b(T, L, F) { + var U = T.getLineHandle(L.line), q = L.ch - 1, Z = F && F.afterCursor; + Z == null && (Z = /(^| )cm-fat-cursor($| )/.test(T.getWrapperElement().className)); + var R = A(F), J = !Z && q >= 0 && R.test(U.text.charAt(q)) && g[U.text.charAt(q)] || R.test(U.text.charAt(q + 1)) && g[U.text.charAt(++q)]; + if (!J) + return null; + var he = J.charAt(1) == ">" ? 1 : -1; + if (F && F.strict && he > 0 != (q == L.ch)) + return null; + var Y = T.getTokenTypeAt(f(L.line, q + 1)), ue = v(T, f(L.line, q + (he > 0 ? 1 : 0)), he, Y || null, F); + return ue == null ? null : { from: f(L.line, q), to: ue && ue.pos, match: ue && ue.ch == J.charAt(0), forward: he > 0 }; + } + function v(T, L, F, U, q) { + for (var Z = q && q.maxScanLineLength || 1e4, R = q && q.maxScanLines || 1e3, J = [], he = A(q), Y = F > 0 ? Math.min(L.line + R, T.lastLine() + 1) : Math.max(T.firstLine() - 1, L.line - R), ue = L.line; ue != Y; ue += F) { + var le = T.getLine(ue); + if (le) { + var be = F > 0 ? 0 : le.length - 1, ke = F > 0 ? le.length : -1; + if (!(le.length > Z)) + for (ue == L.line && (be = L.ch - (F < 0 ? 1 : 0)); be != ke; be += F) { + var de = le.charAt(be); + if (he.test(de) && (U === void 0 || T.getTokenTypeAt(f(ue, be + 1)) == U)) { + var Te = g[de]; + if (Te && Te.charAt(1) == ">" == F > 0) + J.push(de); + else { + if (!J.length) + return { pos: f(ue, be), ch: de }; + J.pop(); + } + } + } + } + } + return ue - F != (F > 0 ? T.lastLine() : T.firstLine()) && null; + } + function k(T, L, F) { + for (var U = T.state.matchBrackets.maxHighlightLineLength || 1e3, q = [], Z = T.listSelections(), R = 0; R < Z.length; R++) { + var J = Z[R].empty() && b(T, Z[R].head, F); + if (J && T.getLine(J.from.line).length <= U) { + var he = J.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket"; + q.push(T.markText(J.from, f(J.from.line, J.from.ch + 1), { className: he })), J.to && T.getLine(J.to.line).length <= U && q.push(T.markText(J.to, f(J.to.line, J.to.ch + 1), { className: he })); + } + } + if (q.length) { + l && T.state.focused && T.focus(); + var Y = function() { + T.operation(function() { + for (var ue = 0; ue < q.length; ue++) + q[ue].clear(); + }); + }; + if (!L) + return Y; + setTimeout(Y, 800); + } + } + function _(T) { + T.operation(function() { + T.state.matchBrackets.currentlyHighlighted && (T.state.matchBrackets.currentlyHighlighted(), T.state.matchBrackets.currentlyHighlighted = null), T.state.matchBrackets.currentlyHighlighted = k(T, !1, T.state.matchBrackets); + }); + } + o.defineOption("matchBrackets", !1, function(T, L, F) { + function U(q) { + q.state.matchBrackets && q.state.matchBrackets.currentlyHighlighted && (q.state.matchBrackets.currentlyHighlighted(), q.state.matchBrackets.currentlyHighlighted = null); + } + F && F != o.Init && (T.off("cursorActivity", _), T.off("focus", _), T.off("blur", U), U(T)), L && (T.state.matchBrackets = typeof L == "object" ? L : {}, T.on("cursorActivity", _), T.on("focus", _), T.on("blur", U)); + }), o.defineExtension("matchBrackets", function() { + k(this, !0); + }), o.defineExtension("findMatchingBracket", function(T, L, F) { + return (F || typeof L == "boolean") && (F ? (F.strict = L, L = F) : L = L ? { strict: !0 } : null), b(this, T, L); + }), o.defineExtension("scanForBracket", function(T, L, F, U) { + return v(this, T, L, F, U); + }); + })(m2); +}); +su(function(r, i) { + (function(o) { + var l = o.commands, f = o.Pos; + function g(Y, ue, le) { + if (le < 0 && ue.ch == 0) + return Y.clipPos(f(ue.line - 1)); + var be = Y.getLine(ue.line); + if (le > 0 && ue.ch >= be.length) + return Y.clipPos(f(ue.line + 1, 0)); + for (var ke, de = "start", Te = ue.ch, xe = Te, ie = le < 0 ? 0 : be.length, Be = 0; xe != ie; xe += le, Be++) { + var te = be.charAt(le < 0 ? xe - 1 : xe), Me = te != "_" && o.isWordChar(te) ? "w" : "o"; + if (Me == "w" && te.toUpperCase() == te && (Me = "W"), de == "start") + Me != "o" ? (de = "in", ke = Me) : Te = xe + le; + else if (de == "in" && ke != Me) { + if (ke == "w" && Me == "W" && le < 0 && xe--, ke == "W" && Me == "w" && le > 0) { + if (xe == Te + 1) { + ke = "w"; + continue; + } + xe--; + } + break; + } + } + return f(ue.line, xe); + } + function A(Y, ue) { + Y.extendSelectionsBy(function(le) { + return Y.display.shift || Y.doc.extend || le.empty() ? g(Y.doc, le.head, ue) : ue < 0 ? le.from() : le.to(); + }); + } + function b(Y, ue) { + if (Y.isReadOnly()) + return o.Pass; + Y.operation(function() { + for (var le = Y.listSelections().length, be = [], ke = -1, de = 0; de < le; de++) { + var Te = Y.listSelections()[de].head; + if (!(Te.line <= ke)) { + var xe = f(Te.line + (ue ? 0 : 1), 0); + Y.replaceRange(` +`, xe, null, "+insertLine"), Y.indentLine(xe.line, null, !0), be.push({ head: xe, anchor: xe }), ke = Te.line + 1; + } + } + Y.setSelections(be); + }), Y.execCommand("indentAuto"); + } + function v(Y, ue) { + for (var le = ue.ch, be = le, ke = Y.getLine(ue.line); le && o.isWordChar(ke.charAt(le - 1)); ) + --le; + for (; be < ke.length && o.isWordChar(ke.charAt(be)); ) + ++be; + return { from: f(ue.line, le), to: f(ue.line, be), word: ke.slice(le, be) }; + } + function k(Y, ue) { + for (var le = Y.listSelections(), be = [], ke = 0; ke < le.length; ke++) { + var de = le[ke], Te = Y.findPosV(de.anchor, ue, "line", de.anchor.goalColumn), xe = Y.findPosV(de.head, ue, "line", de.head.goalColumn); + Te.goalColumn = de.anchor.goalColumn != null ? de.anchor.goalColumn : Y.cursorCoords(de.anchor, "div").left, xe.goalColumn = de.head.goalColumn != null ? de.head.goalColumn : Y.cursorCoords(de.head, "div").left; + var ie = { anchor: Te, head: xe }; + be.push(de), be.push(ie); + } + Y.setSelections(be); + } + function _(Y, ue, le) { + for (var be = 0; be < Y.length; be++) + if (o.cmpPos(Y[be].from(), ue) == 0 && o.cmpPos(Y[be].to(), le) == 0) + return !0; + return !1; + } + l.goSubwordLeft = function(Y) { + A(Y, -1); + }, l.goSubwordRight = function(Y) { + A(Y, 1); + }, l.scrollLineUp = function(Y) { + var ue = Y.getScrollInfo(); + if (!Y.somethingSelected()) { + var le = Y.lineAtHeight(ue.top + ue.clientHeight, "local"); + Y.getCursor().line >= le && Y.execCommand("goLineUp"); + } + Y.scrollTo(null, ue.top - Y.defaultTextHeight()); + }, l.scrollLineDown = function(Y) { + var ue = Y.getScrollInfo(); + if (!Y.somethingSelected()) { + var le = Y.lineAtHeight(ue.top, "local") + 1; + Y.getCursor().line <= le && Y.execCommand("goLineDown"); + } + Y.scrollTo(null, ue.top + Y.defaultTextHeight()); + }, l.splitSelectionByLine = function(Y) { + for (var ue = Y.listSelections(), le = [], be = 0; be < ue.length; be++) + for (var ke = ue[be].from(), de = ue[be].to(), Te = ke.line; Te <= de.line; ++Te) + de.line > ke.line && Te == de.line && de.ch == 0 || le.push({ anchor: Te == ke.line ? ke : f(Te, 0), head: Te == de.line ? de : f(Te) }); + Y.setSelections(le, 0); + }, l.singleSelectionTop = function(Y) { + var ue = Y.listSelections()[0]; + Y.setSelection(ue.anchor, ue.head, { scroll: !1 }); + }, l.selectLine = function(Y) { + for (var ue = Y.listSelections(), le = [], be = 0; be < ue.length; be++) { + var ke = ue[be]; + le.push({ anchor: f(ke.from().line, 0), head: f(ke.to().line + 1, 0) }); + } + Y.setSelections(le); + }, l.insertLineAfter = function(Y) { + return b(Y, !1); + }, l.insertLineBefore = function(Y) { + return b(Y, !0); + }, l.selectNextOccurrence = function(Y) { + var ue = Y.getCursor("from"), le = Y.getCursor("to"), be = Y.state.sublimeFindFullWord == Y.doc.sel; + if (o.cmpPos(ue, le) == 0) { + var ke = v(Y, ue); + if (!ke.word) + return; + Y.setSelection(ke.from, ke.to), be = !0; + } else { + var de = Y.getRange(ue, le), Te = be ? new RegExp("\\b" + de + "\\b") : de, xe = Y.getSearchCursor(Te, le), ie = xe.findNext(); + if (ie || (ie = (xe = Y.getSearchCursor(Te, f(Y.firstLine(), 0))).findNext()), !ie || _(Y.listSelections(), xe.from(), xe.to())) + return; + Y.addSelection(xe.from(), xe.to()); + } + be && (Y.state.sublimeFindFullWord = Y.doc.sel); + }, l.skipAndSelectNextOccurrence = function(Y) { + var ue = Y.getCursor("anchor"), le = Y.getCursor("head"); + l.selectNextOccurrence(Y), o.cmpPos(ue, le) != 0 && Y.doc.setSelections(Y.doc.listSelections().filter(function(be) { + return be.anchor != ue || be.head != le; + })); + }, l.addCursorToPrevLine = function(Y) { + k(Y, -1); + }, l.addCursorToNextLine = function(Y) { + k(Y, 1); + }; + var T = "(){}[]"; + function L(Y) { + for (var ue = Y.listSelections(), le = [], be = 0; be < ue.length; be++) { + var ke = ue[be], de = ke.head, Te = Y.scanForBracket(de, -1); + if (!Te) + return !1; + for (; ; ) { + var xe = Y.scanForBracket(de, 1); + if (!xe) + return !1; + if (xe.ch == T.charAt(T.indexOf(Te.ch) + 1)) { + var ie = f(Te.pos.line, Te.pos.ch + 1); + if (o.cmpPos(ie, ke.from()) != 0 || o.cmpPos(xe.pos, ke.to()) != 0) { + le.push({ anchor: ie, head: xe.pos }); + break; + } + if (!(Te = Y.scanForBracket(Te.pos, -1))) + return !1; + } + de = f(xe.pos.line, xe.pos.ch + 1); + } + } + return Y.setSelections(le), !0; + } + function F(Y) { + return Y ? /\bpunctuation\b/.test(Y) ? Y : void 0 : null; + } + function U(Y, ue) { + if (Y.isReadOnly()) + return o.Pass; + for (var le, be = Y.listSelections(), ke = [], de = 0; de < be.length; de++) { + var Te = be[de]; + if (!Te.empty()) { + for (var xe = Te.from().line, ie = Te.to().line; de < be.length - 1 && be[de + 1].from().line == ie; ) + ie = be[++de].to().line; + be[de].to().ch || ie--, ke.push(xe, ie); + } + } + ke.length ? le = !0 : ke.push(Y.firstLine(), Y.lastLine()), Y.operation(function() { + for (var Be = [], te = 0; te < ke.length; te += 2) { + var Me = ke[te], ve = ke[te + 1], ge = f(Me, 0), Je = f(ve), ot = Y.getRange(ge, Je, !1); + ue ? ot.sort() : ot.sort(function(bt, gt) { + var je = bt.toUpperCase(), Qe = gt.toUpperCase(); + return je != Qe && (bt = je, gt = Qe), bt < gt ? -1 : bt == gt ? 0 : 1; + }), Y.replaceRange(ot, ge, Je), le && Be.push({ anchor: ge, head: f(ve + 1, 0) }); + } + le && Y.setSelections(Be, 0); + }); + } + function q(Y, ue) { + Y.operation(function() { + for (var le = Y.listSelections(), be = [], ke = [], de = 0; de < le.length; de++) + (xe = le[de]).empty() ? (be.push(de), ke.push("")) : ke.push(ue(Y.getRange(xe.from(), xe.to()))); + var Te; + for (Y.replaceSelections(ke, "around", "case"), de = be.length - 1; de >= 0; de--) { + var xe = le[be[de]]; + if (!(Te && o.cmpPos(xe.head, Te) > 0)) { + var ie = v(Y, xe.head); + Te = ie.from, Y.replaceRange(ue(ie.word), ie.from, ie.to); + } + } + }); + } + function Z(Y) { + var ue = Y.getCursor("from"), le = Y.getCursor("to"); + if (o.cmpPos(ue, le) == 0) { + var be = v(Y, ue); + if (!be.word) + return; + ue = be.from, le = be.to; + } + return { from: ue, to: le, query: Y.getRange(ue, le), word: be }; + } + function R(Y, ue) { + var le = Z(Y); + if (le) { + var be = le.query, ke = Y.getSearchCursor(be, ue ? le.to : le.from); + (ue ? ke.findNext() : ke.findPrevious()) ? Y.setSelection(ke.from(), ke.to()) : (ke = Y.getSearchCursor(be, ue ? f(Y.firstLine(), 0) : Y.clipPos(f(Y.lastLine()))), (ue ? ke.findNext() : ke.findPrevious()) ? Y.setSelection(ke.from(), ke.to()) : le.word && Y.setSelection(le.from, le.to)); + } + } + l.selectScope = function(Y) { + L(Y) || Y.execCommand("selectAll"); + }, l.selectBetweenBrackets = function(Y) { + if (!L(Y)) + return o.Pass; + }, l.goToBracket = function(Y) { + Y.extendSelectionsBy(function(ue) { + var le = Y.scanForBracket(ue.head, 1, F(Y.getTokenTypeAt(ue.head))); + if (le && o.cmpPos(le.pos, ue.head) != 0) + return le.pos; + var be = Y.scanForBracket(ue.head, -1, F(Y.getTokenTypeAt(f(ue.head.line, ue.head.ch + 1)))); + return be && f(be.pos.line, be.pos.ch + 1) || ue.head; + }); + }, l.swapLineUp = function(Y) { + if (Y.isReadOnly()) + return o.Pass; + for (var ue = Y.listSelections(), le = [], be = Y.firstLine() - 1, ke = [], de = 0; de < ue.length; de++) { + var Te = ue[de], xe = Te.from().line - 1, ie = Te.to().line; + ke.push({ anchor: f(Te.anchor.line - 1, Te.anchor.ch), head: f(Te.head.line - 1, Te.head.ch) }), Te.to().ch != 0 || Te.empty() || --ie, xe > be ? le.push(xe, ie) : le.length && (le[le.length - 1] = ie), be = ie; + } + Y.operation(function() { + for (var Be = 0; Be < le.length; Be += 2) { + var te = le[Be], Me = le[Be + 1], ve = Y.getLine(te); + Y.replaceRange("", f(te, 0), f(te + 1, 0), "+swapLine"), Me > Y.lastLine() ? Y.replaceRange(` +` + ve, f(Y.lastLine()), null, "+swapLine") : Y.replaceRange(ve + ` +`, f(Me, 0), null, "+swapLine"); + } + Y.setSelections(ke), Y.scrollIntoView(); + }); + }, l.swapLineDown = function(Y) { + if (Y.isReadOnly()) + return o.Pass; + for (var ue = Y.listSelections(), le = [], be = Y.lastLine() + 1, ke = ue.length - 1; ke >= 0; ke--) { + var de = ue[ke], Te = de.to().line + 1, xe = de.from().line; + de.to().ch != 0 || de.empty() || Te--, Te < be ? le.push(Te, xe) : le.length && (le[le.length - 1] = xe), be = xe; + } + Y.operation(function() { + for (var ie = le.length - 2; ie >= 0; ie -= 2) { + var Be = le[ie], te = le[ie + 1], Me = Y.getLine(Be); + Be == Y.lastLine() ? Y.replaceRange("", f(Be - 1), f(Be), "+swapLine") : Y.replaceRange("", f(Be, 0), f(Be + 1, 0), "+swapLine"), Y.replaceRange(Me + ` +`, f(te, 0), null, "+swapLine"); + } + Y.scrollIntoView(); + }); + }, l.toggleCommentIndented = function(Y) { + Y.toggleComment({ indent: !0 }); + }, l.joinLines = function(Y) { + for (var ue = Y.listSelections(), le = [], be = 0; be < ue.length; be++) { + for (var ke = ue[be], de = ke.from(), Te = de.line, xe = ke.to().line; be < ue.length - 1 && ue[be + 1].from().line == xe; ) + xe = ue[++be].to().line; + le.push({ start: Te, end: xe, anchor: !ke.empty() && de }); + } + Y.operation(function() { + for (var ie = 0, Be = [], te = 0; te < le.length; te++) { + for (var Me, ve = le[te], ge = ve.anchor && f(ve.anchor.line - ie, ve.anchor.ch), Je = ve.start; Je <= ve.end; Je++) { + var ot = Je - ie; + Je == ve.end && (Me = f(ot, Y.getLine(ot).length + 1)), ot < Y.lastLine() && (Y.replaceRange(" ", f(ot), f(ot + 1, /^\s*/.exec(Y.getLine(ot + 1))[0].length)), ++ie); + } + Be.push({ anchor: ge || Me, head: Me }); + } + Y.setSelections(Be, 0); + }); + }, l.duplicateLine = function(Y) { + Y.operation(function() { + for (var ue = Y.listSelections().length, le = 0; le < ue; le++) { + var be = Y.listSelections()[le]; + be.empty() ? Y.replaceRange(Y.getLine(be.head.line) + ` +`, f(be.head.line, 0)) : Y.replaceRange(Y.getRange(be.from(), be.to()), be.from()); + } + Y.scrollIntoView(); + }); + }, l.sortLines = function(Y) { + U(Y, !0); + }, l.sortLinesInsensitive = function(Y) { + U(Y, !1); + }, l.nextBookmark = function(Y) { + var ue = Y.state.sublimeBookmarks; + if (ue) + for (; ue.length; ) { + var le = ue.shift(), be = le.find(); + if (be) + return ue.push(le), Y.setSelection(be.from, be.to); + } + }, l.prevBookmark = function(Y) { + var ue = Y.state.sublimeBookmarks; + if (ue) + for (; ue.length; ) { + ue.unshift(ue.pop()); + var le = ue[ue.length - 1].find(); + if (le) + return Y.setSelection(le.from, le.to); + ue.pop(); + } + }, l.toggleBookmark = function(Y) { + for (var ue = Y.listSelections(), le = Y.state.sublimeBookmarks || (Y.state.sublimeBookmarks = []), be = 0; be < ue.length; be++) { + for (var ke = ue[be].from(), de = ue[be].to(), Te = ue[be].empty() ? Y.findMarksAt(ke) : Y.findMarks(ke, de), xe = 0; xe < Te.length; xe++) + if (Te[xe].sublimeBookmark) { + Te[xe].clear(); + for (var ie = 0; ie < le.length; ie++) + le[ie] == Te[xe] && le.splice(ie--, 1); + break; + } + xe == Te.length && le.push(Y.markText(ke, de, { sublimeBookmark: !0, clearWhenEmpty: !1 })); + } + }, l.clearBookmarks = function(Y) { + var ue = Y.state.sublimeBookmarks; + if (ue) + for (var le = 0; le < ue.length; le++) + ue[le].clear(); + ue.length = 0; + }, l.selectBookmarks = function(Y) { + var ue = Y.state.sublimeBookmarks, le = []; + if (ue) + for (var be = 0; be < ue.length; be++) { + var ke = ue[be].find(); + ke ? le.push({ anchor: ke.from, head: ke.to }) : ue.splice(be--, 0); + } + le.length && Y.setSelections(le, 0); + }, l.smartBackspace = function(Y) { + if (Y.somethingSelected()) + return o.Pass; + Y.operation(function() { + for (var ue = Y.listSelections(), le = Y.getOption("indentUnit"), be = ue.length - 1; be >= 0; be--) { + var ke = ue[be].head, de = Y.getRange({ line: ke.line, ch: 0 }, ke), Te = o.countColumn(de, null, Y.getOption("tabSize")), xe = Y.findPosH(ke, -1, "char", !1); + if (de && !/\S/.test(de) && Te % le == 0) { + var ie = new f(ke.line, o.findColumn(de, Te - le, le)); + ie.ch != ke.ch && (xe = ie); + } + Y.replaceRange("", xe, ke, "+delete"); + } + }); + }, l.delLineRight = function(Y) { + Y.operation(function() { + for (var ue = Y.listSelections(), le = ue.length - 1; le >= 0; le--) + Y.replaceRange("", ue[le].anchor, f(ue[le].to().line), "+delete"); + Y.scrollIntoView(); + }); + }, l.upcaseAtCursor = function(Y) { + q(Y, function(ue) { + return ue.toUpperCase(); + }); + }, l.downcaseAtCursor = function(Y) { + q(Y, function(ue) { + return ue.toLowerCase(); + }); + }, l.setSublimeMark = function(Y) { + Y.state.sublimeMark && Y.state.sublimeMark.clear(), Y.state.sublimeMark = Y.setBookmark(Y.getCursor()); + }, l.selectToSublimeMark = function(Y) { + var ue = Y.state.sublimeMark && Y.state.sublimeMark.find(); + ue && Y.setSelection(Y.getCursor(), ue); + }, l.deleteToSublimeMark = function(Y) { + var ue = Y.state.sublimeMark && Y.state.sublimeMark.find(); + if (ue) { + var le = Y.getCursor(), be = ue; + if (o.cmpPos(le, be) > 0) { + var ke = be; + be = le, le = ke; + } + Y.state.sublimeKilled = Y.getRange(le, be), Y.replaceRange("", le, be); + } + }, l.swapWithSublimeMark = function(Y) { + var ue = Y.state.sublimeMark && Y.state.sublimeMark.find(); + ue && (Y.state.sublimeMark.clear(), Y.state.sublimeMark = Y.setBookmark(Y.getCursor()), Y.setCursor(ue)); + }, l.sublimeYank = function(Y) { + Y.state.sublimeKilled != null && Y.replaceSelection(Y.state.sublimeKilled, null, "paste"); + }, l.showInCenter = function(Y) { + var ue = Y.cursorCoords(null, "local"); + Y.scrollTo(null, (ue.top + ue.bottom) / 2 - Y.getScrollInfo().clientHeight / 2); + }, l.findUnder = function(Y) { + R(Y, !0); + }, l.findUnderPrevious = function(Y) { + R(Y, !1); + }, l.findAllUnder = function(Y) { + var ue = Z(Y); + if (ue) { + for (var le = Y.getSearchCursor(ue.query), be = [], ke = -1; le.findNext(); ) + be.push({ anchor: le.from(), head: le.to() }), le.from().line <= ue.from.line && le.from().ch <= ue.from.ch && ke++; + Y.setSelections(be, ke); + } + }; + var J = o.keyMap; + J.macSublime = { "Cmd-Left": "goLineStartSmart", "Shift-Tab": "indentLess", "Shift-Ctrl-K": "deleteLine", "Alt-Q": "wrapLines", "Ctrl-Left": "goSubwordLeft", "Ctrl-Right": "goSubwordRight", "Ctrl-Alt-Up": "scrollLineUp", "Ctrl-Alt-Down": "scrollLineDown", "Cmd-L": "selectLine", "Shift-Cmd-L": "splitSelectionByLine", Esc: "singleSelectionTop", "Cmd-Enter": "insertLineAfter", "Shift-Cmd-Enter": "insertLineBefore", "Cmd-D": "selectNextOccurrence", "Shift-Cmd-Space": "selectScope", "Shift-Cmd-M": "selectBetweenBrackets", "Cmd-M": "goToBracket", "Cmd-Ctrl-Up": "swapLineUp", "Cmd-Ctrl-Down": "swapLineDown", "Cmd-/": "toggleCommentIndented", "Cmd-J": "joinLines", "Shift-Cmd-D": "duplicateLine", F5: "sortLines", "Cmd-F5": "sortLinesInsensitive", F2: "nextBookmark", "Shift-F2": "prevBookmark", "Cmd-F2": "toggleBookmark", "Shift-Cmd-F2": "clearBookmarks", "Alt-F2": "selectBookmarks", Backspace: "smartBackspace", "Cmd-K Cmd-D": "skipAndSelectNextOccurrence", "Cmd-K Cmd-K": "delLineRight", "Cmd-K Cmd-U": "upcaseAtCursor", "Cmd-K Cmd-L": "downcaseAtCursor", "Cmd-K Cmd-Space": "setSublimeMark", "Cmd-K Cmd-A": "selectToSublimeMark", "Cmd-K Cmd-W": "deleteToSublimeMark", "Cmd-K Cmd-X": "swapWithSublimeMark", "Cmd-K Cmd-Y": "sublimeYank", "Cmd-K Cmd-C": "showInCenter", "Cmd-K Cmd-G": "clearBookmarks", "Cmd-K Cmd-Backspace": "delLineLeft", "Cmd-K Cmd-1": "foldAll", "Cmd-K Cmd-0": "unfoldAll", "Cmd-K Cmd-J": "unfoldAll", "Ctrl-Shift-Up": "addCursorToPrevLine", "Ctrl-Shift-Down": "addCursorToNextLine", "Cmd-F3": "findUnder", "Shift-Cmd-F3": "findUnderPrevious", "Alt-F3": "findAllUnder", "Shift-Cmd-[": "fold", "Shift-Cmd-]": "unfold", "Cmd-I": "findIncremental", "Shift-Cmd-I": "findIncrementalReverse", "Cmd-H": "replace", F3: "findNext", "Shift-F3": "findPrev", fallthrough: "macDefault" }, o.normalizeKeyMap(J.macSublime), J.pcSublime = { "Shift-Tab": "indentLess", "Shift-Ctrl-K": "deleteLine", "Alt-Q": "wrapLines", "Ctrl-T": "transposeChars", "Alt-Left": "goSubwordLeft", "Alt-Right": "goSubwordRight", "Ctrl-Up": "scrollLineUp", "Ctrl-Down": "scrollLineDown", "Ctrl-L": "selectLine", "Shift-Ctrl-L": "splitSelectionByLine", Esc: "singleSelectionTop", "Ctrl-Enter": "insertLineAfter", "Shift-Ctrl-Enter": "insertLineBefore", "Ctrl-D": "selectNextOccurrence", "Shift-Ctrl-Space": "selectScope", "Shift-Ctrl-M": "selectBetweenBrackets", "Ctrl-M": "goToBracket", "Shift-Ctrl-Up": "swapLineUp", "Shift-Ctrl-Down": "swapLineDown", "Ctrl-/": "toggleCommentIndented", "Ctrl-J": "joinLines", "Shift-Ctrl-D": "duplicateLine", F9: "sortLines", "Ctrl-F9": "sortLinesInsensitive", F2: "nextBookmark", "Shift-F2": "prevBookmark", "Ctrl-F2": "toggleBookmark", "Shift-Ctrl-F2": "clearBookmarks", "Alt-F2": "selectBookmarks", Backspace: "smartBackspace", "Ctrl-K Ctrl-D": "skipAndSelectNextOccurrence", "Ctrl-K Ctrl-K": "delLineRight", "Ctrl-K Ctrl-U": "upcaseAtCursor", "Ctrl-K Ctrl-L": "downcaseAtCursor", "Ctrl-K Ctrl-Space": "setSublimeMark", "Ctrl-K Ctrl-A": "selectToSublimeMark", "Ctrl-K Ctrl-W": "deleteToSublimeMark", "Ctrl-K Ctrl-X": "swapWithSublimeMark", "Ctrl-K Ctrl-Y": "sublimeYank", "Ctrl-K Ctrl-C": "showInCenter", "Ctrl-K Ctrl-G": "clearBookmarks", "Ctrl-K Ctrl-Backspace": "delLineLeft", "Ctrl-K Ctrl-1": "foldAll", "Ctrl-K Ctrl-0": "unfoldAll", "Ctrl-K Ctrl-J": "unfoldAll", "Ctrl-Alt-Up": "addCursorToPrevLine", "Ctrl-Alt-Down": "addCursorToNextLine", "Ctrl-F3": "findUnder", "Shift-Ctrl-F3": "findUnderPrevious", "Alt-F3": "findAllUnder", "Shift-Ctrl-[": "fold", "Shift-Ctrl-]": "unfold", "Ctrl-I": "findIncremental", "Shift-Ctrl-I": "findIncrementalReverse", "Ctrl-H": "replace", F3: "findNext", "Shift-F3": "findPrev", fallthrough: "pcDefault" }, o.normalizeKeyMap(J.pcSublime); + var he = J.default == J.macDefault; + J.sublime = he ? J.macSublime : J.pcSublime; + })(m2); +}), su(function(r, i) { + (function(o) { + var l; + function f(k) { + var _ = this; + function T(xe) { + _.searchBox = xe.querySelector(".ace_search_form"), _.replaceBox = xe.querySelector(".ace_replace_form"), _.searchOptions = xe.querySelector(".ace_search_options"), _.regExpOption = xe.querySelector("[action=toggleRegexpMode]"), _.caseSensitiveOption = xe.querySelector("[action=toggleCaseSensitive]"), _.wholeWordOption = xe.querySelector("[action=toggleWholeWords]"), _.searchInput = _.searchBox.querySelector(".ace_search_field"), _.replaceInput = _.replaceBox.querySelector(".ace_search_field"); + } + function L() { + var xe = _.element = Te(); + de(), T(xe), F(), xe.addEventListener("mousedown", function(ie) { + setTimeout(function() { + _.activeInput.focus(); + }, 0), ie.stopPropagation(); + }), xe.addEventListener("click", function(ie) { + var Be = (ie.target || ie.srcElement).getAttribute("action"); + Be && _[Be] ? _[Be]() : _.commands[Be] && _.commands[Be](), ie.stopPropagation(); + }), _.searchInput.addEventListener("input", function() { + _.$onChange.schedule(20); + }), _.searchInput.addEventListener("focus", function() { + _.activeInput = _.searchInput; + }), _.replaceInput.addEventListener("focus", function() { + _.activeInput = _.replaceInput; + }), _.$onChange = A(function() { + _.find(!1, !1); + }); + } + function F() { + var xe = _, ie = { "Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F": function() { + var Be = xe.isReplace = !xe.isReplace; + xe.replaceBox.style.display = Be ? "" : "none", xe[Be ? "replaceInput" : "searchInput"].focus(); + }, "Ctrl-G|Cmd-G": function() { + xe.findNext(); + }, "Ctrl-Shift-G|Cmd-Shift-G": function() { + xe.findPrev(); + }, Esc: function() { + setTimeout(function() { + xe.hide(); + }); + }, Enter: function() { + xe.activeInput === xe.replaceInput && xe.replace(), xe.findNext(); + }, "Shift-Enter": function() { + xe.activeInput === xe.replaceInput && xe.replace(), xe.findPrev(); + }, "Alt-Enter": function() { + xe.activeInput === xe.replaceInput && xe.replaceAll(), xe.findAll(); + }, Tab: function() { + _.activeInput === _.replaceInput ? _.searchInput.focus() : _.replaceInput.focus(); + } }; + _.element.addEventListener("keydown", function(Be) { + Object.keys(ie).some(function(te) { + var Me = b(te, Be); + return Me && (Be.stopPropagation(), Be.preventDefault(), ie[te](Be)), Me; + }); + }); + } + function U(xe, ie, Be) { + if (!xe) + return be(k), void ke(); + var te, Me, ve, ge, Je, ot, bt, gt = xe, je = ie, Qe = !0, kt = je.caseSensitive, Wt = je.regExp, jt = je.wholeWord; + Wt && (gt = gt.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")), jt && (gt = kt ? gt = RegExp("\\b" + gt + "\\b") : RegExp("\\b" + gt + "\\b", "i")), Wt && (gt = RegExp(gt)), be(k), q(k, gt, kt), ke(), bt = je.backwards ? je.skipCurrent ? "from" : "to" : je.skipCurrent ? "to" : "from", ot = k.getCursor(bt), ge = (ve = k.getSearchCursor(gt, ot, !kt)).findNext.bind(ve), Je = ve.findPrevious.bind(ve), ve.matches.bind(ve), je.backwards && !Je() ? (Qe = ge()) && (k.setCursor(k.doc.size - 1, 0), U(xe, ie, Be), te = !0) : je.backwards || ge() || (Qe = Je()) && (k.setCursor(0, 0), U(xe, ie, Be), te = !0), Me = !Qe && _.searchInput.value, g(_.searchBox, "ace_nomatch", Me), !te && Qe && Be(ve); + } + function q(xe, ie, Be) { + var te = le(xe), Me = ie; + Me && Me !== te.queryText && (J(xe, te, Me, Be), te.posFrom = te.posTo = xe.getCursor()); + } + function Z(xe) { + return xe.replace(/\\([nrt\\])/g, function(ie, Be) { + return Be == "n" ? ` +` : Be == "r" ? "\r" : Be == "t" ? " " : Be == "\\" ? "\\" : ie; + }); + } + function R(xe) { + var ie = (typeof xe == "object" ? xe.toString() : xe).match(/^\/(.*)\/([a-z]*)$/); + if (ie) + try { + xe = new RegExp(ie[1], ie[2].indexOf("i") == -1 ? "" : "i"); + } catch { + } + else + xe = Z(xe); + return (typeof xe == "string" ? xe == "" : xe.test("")) && (xe = /x^/), xe; + } + function J(xe, ie, Be, te) { + ie.queryText = Be, ie.query = R(Be), xe.removeOverlay(ie.overlay, he(ie.query, te)), ie.overlay = Y(ie.query, he(ie.query, te)), xe.addOverlay(ie.overlay), xe.showMatchesOnScrollbar && (ie.annotate && (ie.annotate.clear(), ie.annotate = null), ie.annotate = xe.showMatchesOnScrollbar(ie.query, he(ie.query, te))); + } + function he(xe, ie) { + return typeof xe == "string" && !ie; + } + function Y(xe, ie) { + return typeof xe == "string" ? xe = new RegExp(xe.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ie ? "gi" : "g") : xe.global || (xe = new RegExp(xe.source, xe.ignoreCase ? "gi" : "g")), { token: function(Be) { + xe.lastIndex = Be.pos; + var te = xe.exec(Be.string); + if (te && te.index == Be.pos) + return Be.pos += te[0].length || 1, "searching"; + te ? Be.pos = te.index : Be.skipToEnd(); + } }; + } + function ue() { + this.posFrom = this.posTo = this.lastQuery = this.query = null, this.overlay = null; + } + function le(xe) { + return xe.state.search || (xe.state.search = new ue()); + } + function be(xe) { + xe.operation(function() { + var ie = le(xe); + ie.lastQuery = ie.query, ie.query && (ie.query = ie.queryText = null, xe.removeOverlay(ie.overlay), ie.annotate && (ie.annotate.clear(), ie.annotate = null)); + }); + } + function ke() { + var xe, ie = _.searchInput.value, Be = []; + ie && (ie = ie.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), xe = _.caseSensitiveOption.checked ? RegExp(ie, "g") : RegExp(ie, "gi"), _.wholeWordOption.checked && (xe = _.caseSensitiveOption.checked ? RegExp("\\b" + ie + "\\b", "g") : RegExp("\\b" + ie + "\\b", "gi")), _.regExpOption.checked && (xe = RegExp(ie, "gi")), Be = k.getValue().match(xe)); + var te = Be ? Be.length : 0, Me = k.display.wrapper.parentElement.querySelector(".ace_search_counter"); + Me && (Me.innerText = te + " matches found."), te === 0 && k.setSelection({ ch: 0, line: 0 }, { ch: 0, line: 0 }); + } + function de() { + var xe = document.createElement("style"), ie = [".ace_search {", "color: black;", "background-color: #ddd;", "border: 1px solid #cbcbcb;", "border-top: 0 none;", "max-width: 325px;", "overflow: hidden;", "margin: 0;", "padding: 4px;", "padding-right: 6px;", "padding-bottom: 0;", "position: absolute;", "top: 0px;", "z-index: 99;", "white-space: normal;", "font-size: 12px;", "}", ".ace_search.left {", "border-left: 0 none;", "border-radius: 0px 0px 5px 0px;", "left: 0;", "}", ".ace_search.right {", "border-radius: 0px 0px 0px 5px;", "border-right: 0 none;", "right: 0;", "}", ".ace_search_form, .ace_replace_form {", "border-radius: 3px;", "border: 1px solid #cbcbcb;", "float: left;", "margin-bottom: 4px;", "overflow: hidden;", "}", ".ace_search_form.ace_nomatch {", "outline: 1px solid red;", "}", ".ace_search_field {", "background-color: white;", "border-right: 1px solid #cbcbcb;", "border: 0 none;", "-webkit-box-sizing: border-box;", "-moz-box-sizing: border-box;", "box-sizing: border-box;", "float: left;", "height: 22px;", "outline: 0;", "padding: 0 7px;", "width: 238px;", "margin: 0;", "}", ".ace_searchbtn,", ".ace_replacebtn {", "background: #fff;", "border: 0 none;", "border-left: 1px solid #dcdcdc;", "cursor: pointer;", "float: left;", "height: 22px;", "padding: 0 5px;", "margin: 0;", "position: relative;", "}", ".ace_searchbtn:last-child,", ".ace_replacebtn:last-child {", "border-top-right-radius: 3px;", "border-bottom-right-radius: 3px;", "}", ".ace_searchbtn:disabled {", "background: none;", "cursor: default;", "}", ".ace_searchbtn {", "background-position: 50% 50%;", "background-repeat: no-repeat;", "width: 27px;", "}", ".ace_searchbtn.prev {", "background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ", "}", ".ace_searchbtn.next {", "background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ", "}", ".ace_searchbtn_close {", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;", "border-radius: 50%;", "border: 0 none;", "color: #656565;", "cursor: pointer;", "float: right;", "font: 16px/16px Arial;", "height: 14px;", "margin: 5px 1px 9px 5px;", "padding: 0;", "text-align: center;", "width: 14px;", "}", ".ace_searchbtn_close:hover {", "background-color: #656565;", "background-position: 50% 100%;", "color: white;", "}", ".ace_replacebtn.prev {", "width: 54px", "}", ".ace_replacebtn.next {", "width: 27px", "}", ".ace_button {", "margin-left: 2px;", "cursor: pointer;", "-webkit-user-select: none;", "-moz-user-select: none;", "-o-user-select: none;", "-ms-user-select: none;", "user-select: none;", "overflow: hidden;", "opacity: 0.7;", "border: 1px solid rgba(100,100,100,0.23);", "padding: 1px;", "-moz-box-sizing: border-box;", "box-sizing: border-box;", "color: black;", "}", ".ace_button:hover {", "background-color: #eee;", "opacity:1;", "}", ".ace_button:active {", "background-color: #ddd;", "}", ".ace_button.checked {", "border-color: #3399ff;", "opacity:1;", "}", ".ace_search_options{", "clear: both;", "margin: 4px 0;", "text-align: right;", "-webkit-user-select: none;", "-moz-user-select: none;", "-o-user-select: none;", "-ms-user-select: none;", "user-select: none;", "}", ".replace_toggle{", "float: left;", "margin-top: -2px;", "padding: 0 5px;", " }", ".ace_search_counter{", "float: left;", "font-family: arial;", "padding: 0 8px;", "}", "button svg,path {", "pointer-events: none;", "}"].join(""); + xe.setAttribute("data-name", "js-searchbox"), xe.textContent = ie, document.head.appendChild(xe); + } + function Te() { + var xe, ie = k.getWrapperElement(), Be = document.createElement("div"), te = ['"].join(""); + return Be.innerHTML = te, xe = Be.firstChild, ie.appendChild(xe), xe; + } + L(), this.commands = { toggleRegexpMode: function() { + _.regExpOption.checked = !_.regExpOption.checked, _.$syncOptions(); + }, toggleCaseSensitive: function() { + _.caseSensitiveOption.checked = !_.caseSensitiveOption.checked, _.$syncOptions(); + }, toggleWholeWords: function() { + _.wholeWordOption.checked = !_.wholeWordOption.checked, _.$syncOptions(); + } }, this.$syncOptions = function() { + g(this.regExpOption, "checked", this.regExpOption.checked), g(this.wholeWordOption, "checked", this.wholeWordOption.checked), g(this.caseSensitiveOption, "checked", this.caseSensitiveOption.checked), this.find(!1, !1); + }, this.find = function(xe, ie) { + U(this.searchInput.value, { skipCurrent: xe, backwards: ie, regExp: this.regExpOption.checked, caseSensitive: this.caseSensitiveOption.checked, wholeWord: this.wholeWordOption.checked }, function(Be) { + var te = Be.matches(!1, Be.from()); + k.setSelection(te.from, te.to); + }); + }, this.findNext = function() { + this.find(!0, !1); + }, this.findPrev = function() { + this.find(!0, !0); + }, this.findAll = function() { + var xe = this.searchInput.value, ie = this.searchInput.value; + g(this.searchBox, "ace_nomatch", ie), k.showMatchesOnScrollbar && k.showMatchesOnScrollbar(xe), this.hide(); + }, this.replace = function() { + var xe = k.getOption("readOnly"), ie = !!k.getSelection(); + !xe && ie && k.replaceSelection(this.replaceInput.value, "start"), ke(); + }, this.replaceAndFindNext = function() { + k.getOption("readOnly") || (this.replace(), this.findNext()); + }, this.replaceAll = function() { + var xe, ie, Be = this.searchInput.value, te = this.replaceInput.value, Me = RegExp(Be, this.caseSensitiveOption.checked ? "g" : "gi"); + this.wholeWordOption.checked && !this.regExpOption.checked && (Me = this.caseSensitiveOption.checked ? RegExp("\\b" + Be + "\\b", "g") : RegExp("\\b" + Be + "\\b", "gi")), !k.getOption("readOnly") && k.getSelection() && (ie = k.getCursor(), xe = (xe = k.getValue()).replace(Me, te), k.setValue(xe), k.setCursor(ie)), ke(); + }, this.toggleReplace = function() { + var xe = k.display.wrapper; + xe.parentElement.querySelector("[action=toggleReplace]").innerText === "+" ? (xe.parentElement.querySelector("[action=toggleReplace]").innerText = "-", this.replaceBox.style.display = "", this.isReplace = !0) : (xe.parentElement.querySelector("[action=toggleReplace]").innerText = "+", this.replaceBox.style.display = "none", this.isReplace = !1); + }, this.hide = function() { + be(k); + var xe = k.getWrapperElement(); + l = null, xe.removeChild(this.element), k.focus(); + }, this.isVisible = function() { + return this.element.style.display === ""; + }, this.show = function(xe, ie) { + this.element.style.display = "", ie || (this.replaceBox.style.display = ie ? "" : "none"), this.isReplace = ie, xe && (this.searchInput.value = xe, this.find(!1, !1)), this.searchInput.focus(), this.searchInput.select(); + }, this.isFocused = function() { + var xe = document.activeElement; + return xe === this.searchInput || xe === this.replaceInput; + }; + } + function g(k, _, T) { + k.classList[T ? "add" : "remove"](_); + } + function A(k, _) { + var T, L = function() { + T = null, k(); + }, F = function(U) { + T || (T = setTimeout(L, U || _)); + }; + return F.delay = function(U) { + T && clearTimeout(T), T = setTimeout(L, U || _); + }, F.schedule = F, F.call = function() { + this.cancel(), k(); + }, F.cancel = function() { + T && clearTimeout(T), T = null; + }, F.isPending = function() { + return T; + }, F; + } + function b(k, _) { + var T, L = { BACKSPACE: 8, TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, PAGE_UP: 33, PAGE_DOWN: 34, END: 35, HOME: 36, UP: 38, DOWN: 40, INSERT: 45, DELETE: 46, INSERT_MAC: 96, ASTERISK: 106, PLUS: 107, MINUS: 109, F1: 112, F2: 113, F3: 114, F4: 115, F5: 116, F6: 117, F7: 118, F8: 119, F9: 120, F10: 121, SLASH: 191, TRA: 192, BACKSLASH: 220 }; + return v(k, _), T = k.split("|").some(function(F) { + var U; + return U = F.split("-").some(function(q) { + var Z; + switch (q) { + case "Ctrl": + Z = _.ctrlKey; + break; + case "Shift": + Z = _.shiftKey; + break; + case "Alt": + Z = _.altKey; + break; + case "Cmd": + Z = _.metaKey; + break; + default: + q.length === 1 ? Z = _.keyCode === q.charCodeAt(0) : Object.keys(L).some(function(R) { + q.toUpperCase() === R && (Z = _.keyCode === L[R]); + }); + } + return !Z; + }), !U; + }), T; + } + function v(k, _) { + if (typeof k != "string") + throw Error("str should be string!"); + if (typeof _ != "object") + throw Error("event should be object!"); + } + o.defineOption("searchbox", !1, function(k) { + k.addKeyMap({ "Ctrl-F": function() { + var _ = k.display.wrapper; + l && _.parentElement.contains(l.searchBox) || (l = new f(k)); + var T = !1; + _.parentElement.querySelector("[action=toggleReplace]") && (T = _.parentElement.querySelector("[action=toggleReplace]").innerText === "-"), l.show(k.getSelection(), T); + }, Esc: function() { + if (!l || !l.isVisible()) + return o.Pass; + l.hide(), typeof event < "u" && event.stopPropagation(); + }, "Cmd-F": function() { + var _ = k.display.wrapper; + l && _.parentElement.contains(l.searchBox) || (l = new f(k)); + var T = !1; + _.parentElement.querySelector("[action=toggleReplace]") && (T = _.parentElement.querySelector("[action=toggleReplace]").innerText === "-"), l.show(k.getSelection(), T); + } }); + }); + })(m2); +}); +su(function(r, i) { + (function(o) { + function l(f, g) { + function A(v) { + clearTimeout(b.doRedraw), b.doRedraw = setTimeout(function() { + b.redraw(); + }, v); + } + this.cm = f, this.options = g, this.buttonHeight = g.scrollButtonHeight || f.getOption("scrollButtonHeight"), this.annotations = [], this.doRedraw = this.doUpdate = null, this.div = f.getWrapperElement().appendChild(document.createElement("div")), this.div.style.cssText = "position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none", this.computeScale(); + var b = this; + f.on("refresh", this.resizeHandler = function() { + clearTimeout(b.doUpdate), b.doUpdate = setTimeout(function() { + b.computeScale() && A(20); + }, 100); + }), f.on("markerAdded", this.resizeHandler), f.on("markerCleared", this.resizeHandler), g.listenForChanges !== !1 && f.on("changes", this.changeHandler = function() { + A(250); + }); + } + o.defineExtension("annotateScrollbar", function(f) { + return typeof f == "string" && (f = { className: f }), new l(this, f); + }), o.defineOption("scrollButtonHeight", 0), l.prototype.computeScale = function() { + var f = this.cm, g = (f.getWrapperElement().clientHeight - f.display.barHeight - 2 * this.buttonHeight) / f.getScrollerElement().scrollHeight; + if (g != this.hScale) + return this.hScale = g, !0; + }, l.prototype.update = function(f) { + this.annotations = f, this.redraw(); + }, l.prototype.redraw = function(f) { + f !== !1 && this.computeScale(); + var g = this.cm, A = this.hScale, b = document.createDocumentFragment(), v = this.annotations, k = g.getOption("lineWrapping"), _ = k && 1.5 * g.defaultTextHeight(), T = null, L = null; + function F(le, be) { + if (T != le.line) { + T = le.line, L = g.getLineHandle(le.line); + var ke = g.getLineHandleVisualStart(L); + ke != L && (T = g.getLineNumber(ke), L = ke); + } + return L.widgets && L.widgets.length || k && L.height > _ ? g.charCoords(le, "local")[be ? "top" : "bottom"] : g.heightAtLine(L, "local") + (be ? 0 : L.height); + } + var U = g.lastLine(); + if (g.display.barWidth) + for (var q, Z = 0; Z < v.length; Z++) { + var R = v[Z]; + if (!(R.to.line > U)) { + for (var J = q || F(R.from, !0) * A, he = F(R.to, !1) * A; Z < v.length - 1 && !(v[Z + 1].to.line > U) && !((q = F(v[Z + 1].from, !0) * A) > he + 0.9); ) + he = F((R = v[++Z]).to, !1) * A; + if (he != J) { + var Y = Math.max(he - J, 3), ue = b.appendChild(document.createElement("div")); + ue.style.cssText = "position: absolute; right: 0px; width: " + Math.max(g.display.barWidth - 1, 2) + "px; top: " + (J + this.buttonHeight) + "px; height: " + Y + "px", ue.className = this.options.className, R.id && ue.setAttribute("annotation-id", R.id); + } + } + } + this.div.textContent = "", this.div.appendChild(b); + }, l.prototype.clear = function() { + this.cm.off("refresh", this.resizeHandler), this.cm.off("markerAdded", this.resizeHandler), this.cm.off("markerCleared", this.resizeHandler), this.changeHandler && this.cm.off("changes", this.changeHandler), this.div.parentNode.removeChild(this.div); + }; + })(m2); +}); +su(function(r, i) { + (function(o) { + function l(A, b, v, k) { + this.cm = A, this.options = k; + var _ = { listenForChanges: !1 }; + for (var T in k) + _[T] = k[T]; + _.className || (_.className = "CodeMirror-search-match"), this.annotation = A.annotateScrollbar(_), this.query = b, this.caseFold = v, this.gap = { from: A.firstLine(), to: A.lastLine() + 1 }, this.matches = [], this.update = null, this.findMatches(), this.annotation.update(this.matches); + var L = this; + A.on("change", this.changeHandler = function(F, U) { + L.onChange(U); + }); + } + o.defineExtension("showMatchesOnScrollbar", function(A, b, v) { + return typeof v == "string" && (v = { className: v }), v || (v = {}), new l(this, A, b, v); + }); + var f = 1e3; + function g(A, b, v) { + return A <= b ? A : Math.max(b, A + v); + } + l.prototype.findMatches = function() { + if (this.gap) { + for (var A = 0; A < this.matches.length && !((k = this.matches[A]).from.line >= this.gap.to); A++) + k.to.line >= this.gap.from && this.matches.splice(A--, 1); + for (var b = this.cm.getSearchCursor(this.query, o.Pos(this.gap.from, 0), { caseFold: this.caseFold, multiline: this.options.multiline }), v = this.options && this.options.maxMatches || f; b.findNext(); ) { + var k; + if ((k = { from: b.from(), to: b.to() }).from.line >= this.gap.to || (this.matches.splice(A++, 0, k), this.matches.length > v)) + break; + } + this.gap = null; + } + }, l.prototype.onChange = function(A) { + var b = A.from.line, v = o.changeEnd(A).line, k = v - A.to.line; + if (this.gap ? (this.gap.from = Math.min(g(this.gap.from, b, k), A.from.line), this.gap.to = Math.max(g(this.gap.to, b, k), A.from.line)) : this.gap = { from: A.from.line, to: v + 1 }, k) + for (var _ = 0; _ < this.matches.length; _++) { + var T = this.matches[_], L = g(T.from.line, b, k); + L != T.from.line && (T.from = o.Pos(L, T.from.ch)); + var F = g(T.to.line, b, k); + F != T.to.line && (T.to = o.Pos(F, T.to.ch)); + } + clearTimeout(this.update); + var U = this; + this.update = setTimeout(function() { + U.updateAfterChange(); + }, 250); + }, l.prototype.updateAfterChange = function() { + this.findMatches(), this.annotation.update(this.matches); + }, l.prototype.clear = function() { + this.cm.off("change", this.changeHandler), this.annotation.clear(); + }; + })(m2); +}), qa({ target: "Array", stat: !0 }, { isArray: kL }); +var A_t = ql.Array.isArray, g_t = A_t; +function p_t(r) { + if (g_t(r)) + return r; +} +var QO = Oie, d0n = Lie("slice"), A0n = TA("species"), NMe = Qi.Array, g0n = Math.max; +qa({ target: "Array", proto: !0, forced: !d0n }, { slice: function(r, i) { + var o, l, f, g = v5(this), A = Ck(g), b = yL(r, A), v = yL(i === void 0 ? A : i, A); + if (kL(g) && (o = g.constructor, (Fbe(o) && (o === NMe || kL(o.prototype)) || Id(o) && (o = o[A0n]) === null) && (o = void 0), o === NMe || o === void 0)) + return _O(g, b, v); + for (l = new (o === void 0 ? NMe : o)(g0n(v - b, 0)), f = 0; b < v; b++, f++) + b in g && EO(l, f, g[b]); + return l.length = f, l; +} }); +var p0n = a0("Array").slice, PMe = Array.prototype, m_t = function(r) { + var i = r.slice; + return r === PMe || E1(PMe, r) && i === PMe.slice ? p0n : i; +}, b_t = m_t, v_t = d_t; +function CDe(r, i) { + (i == null || i > r.length) && (i = r.length); + for (var o = 0, l = new Array(i); o < i; o++) + l[o] = r[o]; + return l; +} +function VPe(r, i) { + var o; + if (r) { + if (typeof r == "string") + return CDe(r, i); + var l = b_t(o = Object.prototype.toString.call(r)).call(o, 8, -1); + return l === "Object" && r.constructor && (l = r.constructor.name), l === "Map" || l === "Set" ? v_t(r) : l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? CDe(r, i) : void 0; + } +} +function y_t() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); +} +function vh(r, i) { + return p_t(r) || function(o, l) { + var f = o == null ? null : oC !== void 0 && QO(o) || o["@@iterator"]; + if (f != null) { + var g, A, b = [], v = !0, k = !1; + try { + for (f = f.call(o); !(v = (g = f.next()).done) && (b.push(g.value), !l || b.length !== l); v = !0) + ; + } catch (_) { + k = !0, A = _; + } finally { + try { + v || f.return == null || f.return(); + } finally { + if (k) + throw A; + } + } + return b; + } + }(r, i) || VPe(r, i) || y_t(); +} +var Lu = s_t, Vre = D9t, Da = m_t, m0n = GPe.trim, Cne = Qi.parseInt, d4t = Qi.Symbol, A4t = d4t && d4t.iterator, w_t = /^[+-]?0x/i, b0n = Do(w_t.exec), g4t = Cne(PG + "08") !== 8 || Cne(PG + "0x16") !== 22 || A4t && !oh(function() { + Cne(Object(A4t)); +}) ? function(r, i) { + var o = m0n(ah(r)); + return Cne(o, i >>> 0 || (b0n(w_t, o) ? 16 : 10)); +} : Cne; +qa({ global: !0, forced: parseInt != g4t }, { parseInt: g4t }); +var Ky = ql.parseInt, v0n = Qi.RangeError; +qa({ target: "String", proto: !0 }, { repeat: function(r) { + var i = ah(DO(this)), o = "", l = cX(r); + if (l < 0 || l == 1 / 0) + throw v0n("Wrong number of repetitions"); + for (; l > 0; (l >>>= 1) && (i += i)) + 1 & l && (o += i); + return o; +} }); +var y0n = a0("String").repeat, RMe = String.prototype, fd = function(r) { + var i = r.repeat; + return typeof r == "string" || r === RMe || E1(RMe, r) && i === RMe.repeat ? y0n : i; +}, w0n = { run: function(r) { + var i, o = "
".concat(r, "
"); + this.tagParser.formatEngine = this.mdFormatEngine, o = o.replace(//g, ""); + var l = this.htmlParser.parseHtml(o); + return l = this.paragraphStyleClear(l), Go(i = this.$dealHtml(l).replace(/\n{3,}/g, ` + + +`).replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&")).call(i, ` +`); +}, $dealHtml: function(r) { + for (var i = "", o = 0; o < r.length; o++) { + var l = r[o]; + l.type === "tag" ? i = this.$handleTagObject(l, i) : l.type === "text" && l.content.length > 0 && (i += l.content.replace(/ /g, " ").replace(/[\n]+/g, ` +`).replace(/^[ \t\n]+\n\s*$/, ` +`)); + } + return i; +}, $handleTagObject: function(r, i) { + var o, l = i; + return r.attrs.class && /(ch-icon-square|ch-icon-check)/.test(r.attrs.class) ? Lu(o = r.attrs.class).call(o, "ch-icon-check") >= 0 ? l += "[x]" : l += "[ ]" : r.attrs.class && /cherry-code-preview-lang-select/.test(r.attrs.class) ? l += "" : l += this.$dealTag(r), l; +}, $dealTag: function(r) { + var i = this, o = ""; + return r.children && (o = i.$dealHtml(r.children)), /(style|meta|link|script)/.test(r.name) ? "" : r.name === "code" || r.name === "pre" ? i.tagParser.codeParser(r, i.$dealCodeTag(r), r.name === "pre") : typeof i.tagParser["".concat(r.name, "Parser")] == "function" ? i.tagParser["".concat(r.name, "Parser")](r, o) : o; +}, $dealCodeTag: function(r) { + if (r.children.length < 0) + return ""; + for (var i = "", o = 0; o < r.children.length; o++) { + var l = r.children[o]; + l.type !== "text" ? (l.name === "li" && (i += ` +`), l.name === "br" && (i += ` +`), i += this.$dealCodeTag(l)) : i += l.content; + } + return i; +}, htmlParser: { attrRE: /([\w-]+)|['"]{1}([^'"]*)['"]{1}/g, lookup: { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, video: !0, input: !0, keygen: !0, link: !0, menuitem: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }, tagRE: /<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g, empty: Vre ? Vre(null) : {}, parseTags: function(r) { + var i, o = this, l = 0, f = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }; + return r.replace(this.attrRE, function(g) { + l % 2 ? i = g : l === 0 ? ((o.lookup[g] || r.charAt(r.length - 2) === "/") && (f.voidElement = !0), f.name = g) : f.attrs[i] = g.replace(/['"]/g, ""), l += 1; + }), f; +}, parseHtml: function(r, i) { + var o = this, l = i || {}; + l.components || (l.components = this.empty); + var f, g = [], A = -1, b = [], v = {}, k = !1; + return r.replace(this.tagRE, function(_, T) { + if (k) { + if (_ !== "")) + return; + k = !1; + } + var L, F = _.charAt(1) !== "/", U = T + _.length, q = r.charAt(U); + F && (A += 1, (f = o.parseTags(_)).type === "tag" && l.components[f.name] && (f.type = "component", k = !0), f.voidElement || k || !q || q === "<" || f.children.push({ type: "text", content: Da(r).call(r, U, Lu(r).call(r, "<", U)) }), v[f.tagName] = f, A === 0 && g.push(f), (L = b[A - 1]) && L.children.push(f), b[A] = f), F && !f.voidElement || (A -= 1, !k && q !== "<" && q && b[A] && b[A].children.push({ type: "text", content: Da(r).call(r, U, Lu(r).call(r, "<", U)) })); + }), g; +} }, tagParser: { formatEngine: {}, pParser: function(r, i) { + var o = i; + return /\n$/.test(o) ? o : "".concat(o, ` +`); +}, divParser: function(r, i) { + var o = i; + return /\n$/.test(o) ? o : "".concat(o, ` +`); +}, spanParser: function(r, i) { + var o = i.replace(/\t/g, "").replace(/\n/g, " "); + return r.attrs && r.attrs.style, o; +}, codeParser: function(r, i) { + var o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2]; + return this.formatEngine.convertCode(i, o); +}, brParser: function(r, i) { + return this.formatEngine.convertBr(i, ` +`); +}, imgParser: function(r, i) { + return r.attrs && r.attrs["data-control"] === "tapd-graph" ? this.formatEngine.convertGraph(r.attrs.title, r.attrs.src, r.attrs["data-origin-xml"], r) : r.attrs && r.attrs.src ? this.formatEngine.convertImg(r.attrs.alt, r.attrs.src) : void 0; +}, videoParser: function(r, i) { + if (r.attrs && r.attrs.src) + return this.formatEngine.convertVideo(i, r.attrs.src, r.attrs.poster, r.attrs.title); +}, bParser: function(r, i) { + for (var o = i.split(` +`), l = [], f = 0; f < o.length; f++) + l.push(this.formatEngine.convertB(o[f])); + return l.join(` +`); +}, iParser: function(r, i) { + for (var o = i.split(` +`), l = [], f = 0; f < o.length; f++) + l.push(this.formatEngine.convertI(o[f])); + return l.join(` +`); +}, strikeParser: function(r, i) { + for (var o = i.split(` +`), l = [], f = 0; f < o.length; f++) + l.push(this.formatEngine.convertStrike(o[f])); + return l.join(` +`); +}, delParser: function(r, i) { + for (var o = i.split(` +`), l = [], f = 0; f < o.length; f++) + l.push(this.formatEngine.convertDel(o[f])); + return l.join(` +`); +}, uParser: function(r, i) { + for (var o = i.split(` +`), l = [], f = 0; f < o.length; f++) + l.push(this.formatEngine.convertU(o[f])); + return l.join(` +`); +}, aParser: function(r, i) { + return r.attrs && r.attrs.href ? this.formatEngine.convertA(i, r.attrs.href) : ""; +}, supParser: function(r, i) { + return this.formatEngine.convertSup(i); +}, subParser: function(r, i) { + return this.formatEngine.convertSub(i); +}, tdParser: function(r, i) { + return this.formatEngine.convertTd(i); +}, trParser: function(r, i) { + return this.formatEngine.convertTr(i); +}, thParser: function(r, i) { + return this.formatEngine.convertTh(i); +}, theadParser: function(r, i) { + return this.formatEngine.convertThead(i); +}, tableParser: function(r, i) { + return this.formatEngine.convertTable(i); +}, liParser: function(r, i) { + return this.formatEngine.convertLi(i); +}, ulParser: function(r, i) { + return this.formatEngine.convertUl(i); +}, olParser: function(r, i) { + return this.formatEngine.convertOl(i); +}, strongParser: function(r, i) { + return this.formatEngine.convertStrong(i); +}, hrParser: function(r, i) { + return this.formatEngine.convertHr(i); +}, h1Parser: function(r, i) { + return this.formatEngine.convertH1(i); +}, h2Parser: function(r, i) { + return this.formatEngine.convertH2(i); +}, h3Parser: function(r, i) { + return this.formatEngine.convertH3(i); +}, h4Parser: function(r, i) { + return this.formatEngine.convertH4(i); +}, h5Parser: function(r, i) { + return this.formatEngine.convertH5(i); +}, h6Parser: function(r, i) { + return this.formatEngine.convertH6(i); +}, blockquoteParser: function(r, i) { + return this.formatEngine.convertBlockquote(i.replace(/\n+/g, ` +`)); +}, addressParser: function(r, i) { + return this.formatEngine.convertAddress(i.replace(/\n+/g, ` +`)); +}, styleParser: { colorAttrParser: function(r) { + var i = r.match(/color:\s*(#[a-zA-Z0-9]{3,6});/); + return i && i[1] ? i[1] : ""; +}, sizeAttrParser: function(r) { + var i = r.match(/font-size:\s*([a-zA-Z0-9-]+?);/); + if (i && i[1]) { + var o, l = 0; + if (/[0-9]+px/.test(i[1])) + l = Go(o = i[1].replace(/px/, "")).call(o); + else + switch (i[1]) { + case "x-small": + l = 10; + break; + case "small": + l = 12; + break; + case "medium": + l = 16; + break; + case "large": + l = 18; + break; + case "x-large": + l = 24; + break; + case "xx-large": + l = 32; + break; + default: + l = ""; + } + return l > 0 ? l : ""; + } + return ""; +}, bgColorAttrParser: function(r) { + var i = r.match(/background-color:\s*([^;]+?);/); + if (i && i[1]) { + var o = ""; + if (/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(i[1])) { + var l, f, g, A, b, v = i[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/); + v[1] && v[2] && v[3] && (v[1] = Ky(Go(l = v[1]).call(l), 10), v[2] = Ky(Go(f = v[2]).call(f), 10), v[3] = Ky(Go(g = v[3]).call(g), 10), o = At(A = At(b = "#".concat(v[1].toString(16))).call(b, v[2].toString(16))).call(A, v[3].toString(16))); + } else + o = vh(i, 2)[1]; + return o; + } + return ""; +} } }, mdFormatEngine: { convertColor: function(r, i) { + var o, l = Go(r).call(r); + return !l || /\n/.test(l) ? l : i ? At(o = "!!".concat(i, " ")).call(o, l, "!!") : l; +}, convertSize: function(r, i) { + var o, l = Go(r).call(r); + return !l || /\n/.test(l) ? l : i ? At(o = "!".concat(i, " ")).call(o, l, "!") : l; +}, convertBgColor: function(r, i) { + var o, l = Go(r).call(r); + return !l || /\n/.test(l) ? l : i ? At(o = "!!!".concat(i, " ")).call(o, l, "!!!") : l; +}, convertBr: function(r, i) { + return r + i; +}, convertCode: function(r) { + var i = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; + return /\n/.test(r) || i ? "```\n".concat(r.replace(/\n+$/, ""), "\n```") : "`".concat(r.replace(/`/g, "\\`"), "`"); +}, convertB: function(r) { + return /^\s*$/.test(r) ? "" : "**".concat(r, "**"); +}, convertI: function(r) { + return /^\s*$/.test(r) ? "" : "*".concat(r, "*"); +}, convertU: function(r) { + return /^\s*$/.test(r) ? "" : " /".concat(r, "/ "); +}, convertImg: function(r, i) { + var o, l = r && r.length > 0 ? r : "image"; + return At(o = "![".concat(l, "](")).call(o, i, ")"); +}, convertGraph: function(r, i, o, l) { + var f, g, A, b = r && r.length > 0 ? r : "graph", v = ""; + if (l) + try { + var k, _ = l.attrs; + no(k = yh(_)).call(k, function(T) { + var L; + Object.prototype.hasOwnProperty.call(_, T) && Lu(T).call(T, "data-graph-") >= 0 && _[T] && (v += At(L = " ".concat(T, "=")).call(L, _[T])); + }); + } catch { + } + return At(f = At(g = At(A = "![".concat(b, "](")).call(A, i, "){data-control=tapd-graph data-origin-xml=")).call(g, o)).call(f, v, "}"); +}, convertVideo: function(r, i, o, l) { + var f, g, A = l && l.length > 0 ? l : "video"; + return At(f = At(g = "!video[".concat(A, "](")).call(g, i, "){poster=")).call(f, o, "}"); +}, convertA: function(r, i) { + var o; + if (r === i) + return "".concat(r, " "); + var l = Go(r).call(r); + return l && At(o = "[".concat(l, "](")).call(o, i, ")"); +}, convertSup: function(r) { + return "^".concat(Go(r).call(r).replace(/\^/g, "\\^"), "^"); +}, convertSub: function(r) { + return "^^".concat(Go(r).call(r).replace(/\^\^/g, "\\^\\^"), "^^"); +}, convertTd: function(r) { + return "~|".concat(Go(r).call(r).replace(/\n{1,}/g, "
").replace(/ /g, "~s~"), " ~|"); +}, convertTh: function(r) { + return /^\s*$/.test(r) ? "" : "~|".concat(Go(r).call(r).replace(/\n{1,}/g, "
"), " ~|"); +}, convertTr: function(r) { + return /^\s*$/.test(r) ? "" : "".concat(Go(r).call(r).replace(/\n/g, ""), ` +`); +}, convertThead: function(r) { + var i, o = "".concat(r.replace(/[ \t]+/g, "").replace(/~\|~\|/g, "~|").replace(/~\|/g, "|"), ` +`), l = o.match(/\|/g).length - 1; + return At(i = "".concat(o, "|")).call(i, fd(":-:|").call(":-:|", l), ` +`); +}, convertTable: function(r) { + var i = ` +`.concat(r.replace(/[ \t]+/g, "").replace(/~\|~\|/g, "~|").replace(/~\|/g, "|"), ` +`).replace(/\n{2,}/g, ` +`).replace(/\n[ \t]+\n/g, ` +`).replace(/~s~/g, " "); + if (!/\|:-:\|/.test(i)) { + var o, l, f = i.match(/^\n[^\n]+\n/)[0].match(/\|/g).length - 1; + i = At(o = At(l = ` +|`.concat(fd(" |").call(" |", f), ` +|`)).call(l, fd(":-:|").call(":-:|", f))).call(o, i); + } + return i; +}, convertLi: function(r) { + return "- ".concat(r.replace(/^\n/, "").replace(/\n+$/, "").replace(/\n+/g, ` + `), ` +`); +}, convertUl: function(r) { + return "".concat(r, ` +`); +}, convertOl: function(r) { + for (var i = r.split(` +`), o = 1, l = 0; l < i.length; l++) + /^- /.test(i[l]) && (i[l] = i[l].replace(/^- /, "".concat(o, ". ")), o += 1); + var f = i.join(` +`); + return "".concat(f, ` +`); +}, convertStrong: function(r) { + return /^\s*$/.test(r) ? "" : "**".concat(r, "**"); +}, convertStrike: function(r) { + return /^\s*$/.test(r) ? "" : "~~".concat(r, "~~"); +}, convertDel: function(r) { + return /^\s*$/.test(r) ? "" : "~~".concat(r, "~~"); +}, convertHr: function(r) { + return /^\s*$/.test(r) ? ` + +---- +` : ` + +---- +`.concat(r); +}, convertH1: function(r) { + return "# ".concat(Go(r).call(r).replace(/\n+$/, ""), ` + +`); +}, convertH2: function(r) { + return "## ".concat(Go(r).call(r).replace(/\n+$/, ""), ` + +`); +}, convertH3: function(r) { + return "### ".concat(Go(r).call(r).replace(/\n+$/, ""), ` + +`); +}, convertH4: function(r) { + return "#### ".concat(Go(r).call(r).replace(/\n+$/, ""), ` + +`); +}, convertH5: function(r) { + return "##### ".concat(Go(r).call(r).replace(/\n+$/, ""), ` + +`); +}, convertH6: function(r) { + return "###### ".concat(Go(r).call(r).replace(/\n+$/, ""), ` + +`); +}, convertBlockquote: function(r) { + return ">".concat(Go(r).call(r), ` + +`); +}, convertAddress: function(r) { + return ">".concat(Go(r).call(r), ` + +`); +} }, paragraphStyleClear: function(r) { + for (var i = 0; i < r[0].children.length; i++) { + for (var o = [r[0].children[i]], l = []; o.length; ) { + var f = o.shift(), g = this.notEmptyTagCount(f); + if (g === 1) + l.push(f); + else if (g > 1) + for (var A = 0; A < f.children.length; A++) + o.push(f.children[A]); + else + l.length === 1 && this.clearChildColorAttrs(l.pop()), l = []; + } + l.length === 1 && this.clearChildColorAttrs(l.pop()); + } + return r; +}, notEmptyTagCount: function(r) { + if (!r || r.voidElement || r.type === "tag" && !r.children.length || r.type === "text" && !r.content.replace(/(\r|\n|\s)+/g, "")) + return 0; + if (r.children && r.children.length) { + for (var i = 0, o = 0; o < r.children.length; o++) + i += this.notEmptyTagCount(r.children[o]); + return i; + } + return 1; +}, clearChildColorAttrs: function(r) { + var i = this; + this.forEachHtmlParsedItems(r, function(o) { + i.clearSelfNodeColorAttrs(o); + }); +}, clearSelfNodeColorAttrs: function(r) { + if (r.attrs && r.attrs.style) { + for (var i = r.attrs.style.split(";"), o = [], l = 0; l < i.length; l++) { + var f; + i[l] && Lu(f = i[l]).call(f, "color") === -1 && o.push(i[l]); + } + o.length ? r.attrs.style = "".concat(o.join(";"), ";") : delete r.attrs.style; + } +}, forEachHtmlParsedItems: function(r, i) { + if (r && (i(r), r.children && r.children.length)) + for (var o = 0; o < r.children.length; o++) + this.forEachHtmlParsedItems(r.children[o], i); +} }, k_t = w0n, k0n = c_t; +function _De() { + return _De = k0n || function(r) { + for (var i = 1; i < arguments.length; i++) { + var o = arguments[i]; + for (var l in o) + Object.prototype.hasOwnProperty.call(o, l) && (r[l] = o[l]); + } + return r; + }, _De.apply(this, arguments); +} +var x0n = GPe.trim, C0n = Do("".charAt), Ige = Qi.parseFloat, p4t = Qi.Symbol, m4t = p4t && p4t.iterator, b4t = 1 / Ige(PG + "-0") != -1 / 0 || m4t && !oh(function() { + Ige(Object(m4t)); +}) ? function(r) { + var i = x0n(ah(r)), o = Ige(i); + return o === 0 && C0n(i, 0) == "-" ? -0 : o; +} : Ige; +qa({ global: !0, forced: parseFloat != b4t }, { parseFloat: b4t }); +var g2 = ql.parseFloat; +function v4t(r, i) { + var o = g2(r), l = g2(i); + return l >= 0 ? o : o >= 0 ? o + l : Math.min(o, l); +} +function _0n(r) { + var i = r.previousElementSibling, o = r.nextElementSibling; + if (!i) { + var l = getComputedStyle(r), f = r.getBoundingClientRect(); + if (!o) + return { height: Math.max(g2(l.marginTop) + f.height + g2(l.marginBottom), 0), offsetTop: r.offsetTop - Math.abs(g2(l.marginTop)) }; + var g = getComputedStyle(o), A = v4t(l.marginBottom, g.marginTop); + return { height: Math.max(g2(l.marginTop) + f.height + A, 0), offsetTop: r.offsetTop - Math.abs(g2(l.marginTop)) }; + } + var b = getComputedStyle(r), v = r.getBoundingClientRect(), k = function(L, F) { + var U = g2(L), q = g2(F); + return q < 0 ? 0 : U >= 0 ? Math.max(q - U, 0) : q; + }(getComputedStyle(i).marginBottom, b.marginTop); + if (!o) + return { height: Math.max(k + v.height + g2(b.marginBottom), 0), offsetTop: r.offsetTop - Math.abs(g2(b.marginTop)) }; + var _ = getComputedStyle(o), T = v4t(b.marginBottom, _.marginTop); + return { height: Math.max(k + v.height + T, 0), offsetTop: r.offsetTop - Math.abs(k) }; +} +function x_t(r, i) { + if (!r || !r.tagName) + return ""; + var o, l, f = document.createElement("div"); + return f.appendChild(r.cloneNode(!1)), o = f.innerHTML, i && (l = Lu(o).call(o, ">") + 1, o = o.substring(0, l) + r.innerHTML + o.substring(l)), f = null, o; +} +function ih(r) { + var i, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, f = document.createElement(r); + return f.className = o, l !== void 0 && no(i = yh(l)).call(i, function(g) { + var A = l[g]; + if (RG(g).call(g, "data-")) { + var b = g.replace(/^data-/, ""); + f.dataset[b] = A; + } else + f.setAttribute(g, A); + }), f; +} +var E0n = { showSwitchBtnAfterPasteHtml: function(r, i, o, l, f) { + Go(l).call(l) !== Go(f).call(f) && (this.init(r, i, o, l, f), this.setSelection(), this.bindListener(), this.initBubble(), this.showBubble(), this.getTypeFromLocalStorage() === "text" && this.switchTextClick()); +}, init: function(r, i, o, l, f) { + this.$cherry = r, this.html = l, this.md = f, this.codemirror = o, this.currentCursor = i, this.locale = r.locale; +}, getTypeFromLocalStorage: function() { + return typeof localStorage > "u" ? "md" : localStorage.getItem("cherry-paste-type") || "md"; +}, setTypeToLocalStorage: function(r) { + typeof localStorage < "u" && localStorage.setItem("cherry-paste-type", r); +}, setSelection: function() { + var r = _De({}, this.codemirror.getCursor()), i = this.currentCursor; + this.codemirror.setSelection(i, r); +}, bindListener: function() { + var r = this; + if (this.hasBindListener) + return !0; + this.hasBindListener = !0, this.codemirror.on("beforeSelectionChange", function(i, o) { + r.hideBubble(); + }), this.codemirror.on("beforeChange", function(i, o) { + r.hideBubble(); + }), this.codemirror.on("scroll", function(i) { + r.updatePositionWhenScroll(); + }); +}, isHidden: function() { + return this.bubbleDom.style.display === "none"; +}, toggleBubbleDisplay: function() { + this.isHidden() ? this.bubbleDom.style.display = "" : this.bubbleDom.style.display = "none"; +}, hideBubble: function() { + if (this.noHide) + return !0; + this.isHidden() || this.toggleBubbleDisplay(); +}, updatePositionWhenScroll: function() { + if (!this.isHidden()) { + var r = this.bubbleDom.dataset.scrollTop - this.getScrollTop(); + this.bubbleDom.style.marginTop = "".concat(r, "px"); + } +}, getScrollTop: function() { + return this.codemirror.getScrollInfo().top; +}, showBubble: function() { + var r = this.getLastSelectedPosition().top; + this.isHidden() && (this.toggleBubbleDisplay(), this.bubbleDom.style.marginTop = "0", this.bubbleDom.dataset.scrollTop = this.getScrollTop()), r > this.codemirror.getWrapperElement().clientHeight - this.bubbleDom.getBoundingClientRect().height - 15 ? (this.bubbleDom.style.top = "", this.bubbleDom.style.bottom = "".concat(15, "px")) : (this.bubbleDom.style.top = "".concat(r, "px"), this.bubbleDom.style.bottom = ""); +}, initBubble: function() { + var r, i; + if (this.bubbleDom) + return this.bubbleDom.setAttribute("data-type", "md"), !0; + var o = ih("div", "cherry-bubble cherry-bubble--centered cherry-switch-paste"); + o.style.display = "none"; + var l = ih("span", "cherry-toolbar-button cherry-text-btn", { title: this.locale.pastePlain }); + l.innerText = "TEXT"; + var f = ih("span", "cherry-toolbar-button cherry-md-btn", { title: this.locale.pasteMarkdown }); + f.innerText = "Markdown"; + var g = ih("span", "switch-btn--bg"); + this.bubbleDom = o, this.switchText = l, this.switchMd = f, this.switchBG = g, this.bubbleDom.appendChild(l), this.bubbleDom.appendChild(f), this.bubbleDom.appendChild(g), this.bubbleDom.setAttribute("data-type", "md"), this.codemirror.getWrapperElement().appendChild(this.bubbleDom), this.switchMd.addEventListener("click", Bo(r = this.switchMDClick).call(r, this)), this.switchText.addEventListener("click", Bo(i = this.switchTextClick).call(i, this)); +}, switchMDClick: function(r) { + this.setTypeToLocalStorage("md"), this.bubbleDom.getAttribute("data-type") !== "md" && (this.noHide = !0, this.bubbleDom.setAttribute("data-type", "md"), this.codemirror.doc.replaceSelection(this.md), this.setSelection(), this.showBubble(), this.noHide = !1); +}, switchTextClick: function(r) { + this.setTypeToLocalStorage("text"), this.bubbleDom.getAttribute("data-type") !== "text" && (this.noHide = !0, this.bubbleDom.setAttribute("data-type", "text"), this.codemirror.doc.replaceSelection(this.html), this.setSelection(), this.showBubble(), this.noHide = !1); +}, getLastSelectedPosition: function() { + var r = Su(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")), i = 0, o = 0; + if (r.length <= 0) + return this.hideBubble(), {}; + for (var l = 0; l < r.length; l++) { + var f = r[l].getBoundingClientRect(), g = f.left + f.width / 2, A = f.top + f.height; + A > o && g >= i && (o = A), g > i && (i = g); + } + return { top: o }; +} }, T0n = E0n; +function hO(r, i, o, l) { + return r.addEventListener ? (r.addEventListener(i, o, l), !0) : r.attachEvent ? r.attachEvent("on".concat(i), o) : void (r["on".concat(i)] = o); +} +function QMe(r, i, o, l) { + if (r.removeEventListener) + r.removeEventListener(i, o, l); + else { + if (r.detachEvent) + return r.detachEvent("on".concat(i), o); + r["on".concat(i)] = null; + } +} +var k3 = new Proxy({}, { get: function(r, i, o) { + return function() { + }; +} }), kc = new (function() { + function r() { + var i; + vi(this, r), Ui(this, "Events", { previewerClose: "previewer:close", previewerOpen: "previewer:open", editorClose: "editor:close", editorOpen: "editor:open", toolbarHide: "toolbar:hide", toolbarShow: "toolbar:show", cleanAllSubMenus: "cleanAllSubMenus" }), Ui(this, "emitter", { all: i = i || /* @__PURE__ */ new Map(), on: function(o, l) { + var f = i.get(o); + f ? f.push(l) : i.set(o, [l]); + }, off: function(o, l) { + var f = i.get(o); + f && (l ? f.splice(f.indexOf(l) >>> 0, 1) : i.set(o, [])); + }, emit: function(o, l) { + var f = i.get(o); + f && f.slice().map(function(g) { + g(l); + }), (f = i.get("*")) && f.slice().map(function(g) { + g(o, l); + }); + } }); + } + return yi(r, [{ key: "on", value: function(i, o, l) { + var f; + this.emitter.on(At(f = "".concat(i, ":")).call(f, o), l); + } }, { key: "emit", value: function(i, o) { + var l; + this.emitter.emit(At(l = "".concat(i, ":")).call(l, o)); + } }]), r; +}())(); +function hX(r) { + var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "image", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "*", l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, f = document.createElement("input"); + f.type = "file", f.id = "fileUpload", f.value = "", f.style.display = "none", f.accept = o, f.addEventListener("change", function(g) { + var A = vh(g.target.files, 1)[0]; + r.options.fileUpload(A, function(b) { + var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (typeof b == "string" && b) { + if (l) + return l(A.name, b, v); + var k, _ = ""; + if (i === "image") + _ = At(k = "![".concat(A.name, "](")).call(k, b, ")"); + else if (i === "video") { + var T; + _ = At(T = "!video[".concat(A.name, "](")).call(T, b, ")"); + } else if (i === "audio") { + var L; + _ = At(L = "!audio[".concat(A.name, "](")).call(L, b, ")"); + } else { + var F; + _ = At(F = "[".concat(A.name, "](")).call(F, b, ")"); + } + r.editor.doc.replaceSelection(_); + } + }); + }), f.click(); +} +function Hbe(r) { + var i = []; + return r != null && r.isBorder && i.push("#B"), r != null && r.isShadow && i.push("#S"), r != null && r.isRadius && i.push("#R"), r != null && r.width && i.push("#".concat(r.width)), r != null && r.height && (r.width || i.push("#auto"), i.push("#".concat(r.height))), i.join(" "); +} +function y4t(r, i, o) { + var l, f, g, A, b, v = (l = i == null ? void 0 : i.name) !== null && l !== void 0 ? l : o.name, k = "", _ = ""; + /video/i.test(o.type) && (k = "!video", _ = i != null && i.poster ? "{poster=".concat(i.poster, "}") : ""), /audio/i.test(o.type) && (k = "!audio"), /image/i.test(o.type) && (k = "!"); + var T = k ? Hbe(i) : ""; + return At(f = At(g = At(A = At(b = "".concat(k, "[")).call(b, v)).call(A, T, "](")).call(g, r, ")")).call(f, _); +} +function w4t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function k4t(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = w4t(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = w4t(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +function Tv(r, i, o) { + var l = r.begin + r.content + r.end; + return o && (l = l.replace(/\[\\h\]/g, x4t).replace(/\\h/g, x4t)), new RegExp(l, i || "g"); +} +function Bg() { + try { + return new RegExp("(?<=.)"), !0; + } catch { + } + return !1; +} +var x4t = "[ \\t\\u00a0]", C_t = "(?:[^\\n]*?\\S[^\\n]*?)", __t = "[\\u0021-\\u002F\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]", C4t = "[\\u0021-\\u002F\\u003a-\\u0040\\u005b\\u005d\\u005e\\u0060\\u007b-\\u007e \\t\\n!“”¥‘’(),。—:;《》?【】「」·~|]", EDe = new RegExp([/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+/.source, "@", /[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/.source].join("")), $Me = new RegExp("^".concat(EDe.source, "$")), qPe = new RegExp('(?:\\S+(?::\\S*)?@)?(?:(?:1\\d\\d|2[01]\\d|22[0-3]|[1-9]\\d?)(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:1\\d\\d|2[0-4]\\d|25[0-4]|[1-9]\\d?))|(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.)+(?:[a-zA-Z\\xa1-\\xff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#][^\\s<>\\x00-\\x1f"\\(\\)]*)?'), E_t = new RegExp("(?:\\/\\/)".concat(qPe.source)), _4t = new RegExp("^".concat(qPe.source, "$")), E4t = new RegExp("^".concat(E_t.source, "$")), T_t = /^([ \t]*)([*+-][ ](\[[ x]\])?|[0-9一二三四五六七八九十零]+\.|[a-z]\.|\b(?:M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))\b\.)([^\r\n]*)/; +function jbe() { + var r, i = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], o = { begin: "(?:^|\\n)(\\n*)", content: ["(\\h*\\|[^\\n]+\\|?\\h*)", "\\n", "(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)", "((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""), end: "(?=$|\\n)" }; + o.reg = Tv(o, "g", !0); + var l = { begin: "(?:^|\\n)(\\n*)", content: ["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)", "\\n", "(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)", "((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""), end: "(?=$|\\n)" }; + return l.reg = Tv(l, "g", !0), i === !1 ? { strict: o, loose: l } : Tv({ begin: "", content: At(r = "(?:".concat(o.begin + o.content + o.end, "|")).call(r, l.begin + l.content + l.end, ")"), end: "" }, "g", !0); +} +function Kbe() { + var r = { begin: /(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/, content: /([\w\W]*?)/, end: /[^\S\n]*\3[ \t]*(?=$|\n+)/, reg: new RegExp("") }; + return r.reg = new RegExp(r.begin.source + r.content.source + r.end.source, "g"), k4t(k4t({}, r), {}, { begin: r.begin.source, content: r.content.source, end: r.end.source }); +} +function zbe(r, i) { + var o = r || `Item 1 + Item 1.1 +Item 2`; + o = o.replace(/^\n+/, "").replace(/\n+$/, ""); + var l = "1."; + switch (i) { + case "ol": + l = "1."; + break; + case "ul": + l = "-"; + break; + case "checklist": + l = "- [x]"; + } + if (o = o.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm, "$1"), l === "1.") { + var f = {}; + o = o.replace(/^(\s*)(\S[\s\S]*?)$/gm, function(g, A, b) { + var v, k, _, T = ((v = A.match(/[ \t]/g)) === null || v === void 0 ? void 0 : v.length) || 0; + return f[T] = f[T] ? f[T] + 1 : 1, At(k = At(_ = "".concat(A)).call(_, f[T], ". ")).call(k, b); + }); + } else + o = o.replace(/^(\s*)(\S[\s\S]*?)$/gm, "$1".concat(l, " $2")); + return o; +} +function YPe() { + var r = { begin: /(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/, content: /([\w\W]*?)/, end: /\n[ \t]*:::[ \t]*(?=$|\n+)/ }; + return r.reg = new RegExp(r.begin.source + r.content.source + r.end.source, "g"), r; +} +function B_t() { + var r = { begin: /(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/, content: /([\w\W]+?)/, end: /\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/ }; + return r.reg = new RegExp(r.begin.source + r.content.source + r.end.source, "g"), r; +} +var B0n = /(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g, S0n = /(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g, T4t = /(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g, Epe = function() { + return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "").replace(Kbe().reg, function(r) { + return r.replace(/^.*$/gm, "/n"); + }).replace(/(`+)(.+?(?:\n.+?)*?)\1/g, function(r) { + return r.replace(/[![\]()]/g, "."); + }); +}; +function L0n(r) { + (function(i) { + var o = /^(\s*)([I一二三四五六七八九十]+)\.(\s+)/, l = /^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/; + if (i.getOption("disableInput")) + return !1; + for (var f = i.listSelections(), g = [], A = 0; A < f.length; A++) { + var b = f[A].head, v = i.getLine(b.line), k = o.exec(v), _ = /^\s*$/.test(Da(v).call(v, 0, b.ch)); + if (!f[A].empty() || _ || !k) + return; + if (l.test(v)) + i.replaceRange("", { line: b.line, ch: 0 }, { line: b.line, ch: b.ch + 1 }), g[A] = ` +`; + else { + var T, L = k[1], F = k[3]; + g[A] = At(T = ` +`.concat(L, "I.")).call(T, F); + } + } + return i.replaceSelections(g), !0; + })(r) || r.execCommand("newlineAndIndentContinueMarkdownList"); +} +var I0n = ["codemirror"], M0n = function() { + function r(i) { + var o = this; + vi(this, r), Ui(this, "dealSpecialWords", function() { + o.noChange ? o.noChange = !1 : (o.formatFullWidthMark(), o.formatBigData2Mark(B0n, "cm-url base64"), o.formatBigData2Mark(S0n, "cm-url drawio")); + }), Ui(this, "formatBigData2Mark", function(g, A) { + for (var b = o.editor, v = b.getSearchCursor(g), k = v.findNext(); k !== !1; k = v.findNext()) { + var _, T, L = v.from(); + if (L) { + var F = (_ = k[2]) !== null && _ !== void 0 ? _ : "", U = L.ch + ((T = k[1]) === null || T === void 0 ? void 0 : T.length), q = U + F.length, Z = L.line, R = { line: Z, ch: U }, J = { line: Z, ch: q }; + if (!(b.findMarks(R, J).length > 0)) { + var he = ih("span", "cm-string ".concat(A), { title: F }); + he.textContent = F, o.noChange = !0, b.markText(R, J, { replacedWith: he, atomic: !0 }); + } + } + } + }), Ui(this, "onKeyup", function(g, A) { + var b = A.getCursor().line; + o.previewer.highlightLine(b + 1); + }), Ui(this, "onScroll", function(g) { + if (kc.emit(o.instanceId, kc.Events.cleanAllSubMenus), o.disableScrollListener) + o.disableScrollListener = !1; + else { + var A = g.getScrollerElement(); + if (A.scrollTop <= 0) + o.previewer.scrollToLineNum(0); + else if (A.scrollTop + A.clientHeight >= A.scrollHeight - 20) + o.previewer.scrollToLineNum(null); + else { + var b = g.getScrollInfo().top, v = g.lineAtHeight(b, "local"), k = g.charCoords({ line: v, ch: 0 }, "local"), _ = g.getLineHandle(v).height, T = 100 * (b - (k.bottom - _)) / _ / 100; + o.previewer.scrollToLineNum(v + 1, T); + } + } + }), Ui(this, "onMouseDown", function(g, A) { + kc.emit(o.instanceId, kc.Events.cleanAllSubMenus); + var b = g.getCursor().line, v = Math.abs(A.y - g.getWrapperElement().getBoundingClientRect().y); + o.previewer.scrollToLineNumWithOffset(b + 1, v), o.toHalfWidth(g, A); + }), Ui(this, "onCursorActivity", function() { + o.refreshWritingStatus(); + }), this.options = { id: "code", name: "code", autoSave2Textarea: !1, editorDom: document.createElement("div"), wrapperDom: null, autoScrollByCursor: !0, convertWhenPaste: !0, codemirror: { lineNumbers: !1, cursorHeight: 0.85, indentUnit: 4, tabSize: 4, mode: "gfm", lineWrapping: !0, indentWithTabs: !0, autofocus: !0, theme: "default", autoCloseTags: !0, extraKeys: { Enter: L0n }, matchTags: { bothTags: !0 }, placeholder: "", keyMap: "sublime" }, toolbars: {}, onKeydown: function() { + }, onChange: function() { + }, onFocus: function() { + }, onBlur: function() { + }, onPaste: this.onPaste, onScroll: this.onScroll }, this.animation = {}; + var l = i.codemirror, f = KAn(i, I0n); + l && lL(this.options.codemirror, l), lL(this.options, f), this.$cherry = this.options.$cherry, this.instanceId = this.$cherry.getInstanceId(); + } + return yi(r, [{ key: "formatFullWidthMark", value: function() { + var i, o = this.editor, l = /[·¥、:“”【】()《》]/, f = o.getSearchCursor(l), g = f.findNext(); + for (no(i = o.getAllMarks()).call(i, function(_) { + if (_.className === "cm-fullWidth") { + var T = JSON.parse(zPe(Wre(_).call(_))), L = o.getRange(T.from, T.to); + l.test(L) || _.clear(); + } + }); g !== !1; g = f.findNext()) { + var A, b = f.from(); + if (b) { + var v = { line: b.line, ch: b.ch }, k = { line: b.line, ch: b.ch + 1 }; + dd(A = o.findMarks(v, k)).call(A, function(_) { + return _.className === "cm-fullWidth"; + }).length === 0 && o.markText(v, k, { className: "cm-fullWidth", title: "按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)" }); + } + } + } }, { key: "toHalfWidth", value: function(i, o) { + var l = o.target; + if (l instanceof HTMLElement && l.classList.contains("cm-fullWidth") && (o.ctrlKey || o.metaKey) && o.buttons === 1) { + var f = l.getBoundingClientRect(), g = i.coordsChar({ left: f.left, top: f.top }), A = { line: g.line, ch: g.ch + 1 }; + i.setSelection(g, A), i.replaceSelection(l.innerText.replace("·", "`").replace("¥", "$").replace("、", "/").replace(":", ":").replace("“", '"').replace("”", '"').replace("【", "[").replace("】", "]").replace("(", "(").replace(")", ")").replace("《", "<").replace("》", ">")); + } + } }, { key: "onPaste", value: function(i, o) { + var l = i.clipboardData; + l ? this.handlePaste(i, l, o) : (l = window.clipboardData, this.handlePaste(i, l, o)); + } }, { key: "handlePaste", value: function(i, o, l) { + var f = this; + this.pasterHtml = !1; + for (var g = o.items, A = o.types || [], b = l.getDoc(), v = 0; v < A.length; v++) { + var k = g[v]; + k && k.kind === "file" && k.type.match(/^image\//i) && function() { + var Z = k.getAsFile(); + f.options.fileUpload(Z, function(R) { + if (typeof R == "string") { + var J = y4t(R, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Z); + if (f.pasterHtml) { + var he = l.getCursor(), Y = he.line, ue = he.ch; + l.setSelection({ line: Y, ch: ue }, { line: Y, ch: ue }), b.replaceSelection(` +`.concat(J), "end"); + } else + b.replaceSelection(J); + } + }), i.preventDefault(); + }(); + } + var _ = o.getData("text/plain"), T = o.getData("Text/Html"); + if (!T || !this.options.convertWhenPaste) + return !0; + var L = document.createElement("DIV"); + L.innerHTML = T, T = L.innerHTML; + var F = k_t.run(T); + if (typeof F == "string" && Go(F).call(F).length > 0) { + this.pasterHtml = !0; + var U = l.listSelections(); + if (l.getSelections().length <= 1 && U[0] && U[0].anchor) { + var q = {}; + q.line = U[0].anchor.line, q.ch = U[0].anchor.ch, b.replaceSelection(F), T0n.showSwitchBtnAfterPasteHtml(this.$cherry, q, l, _, F); + } else + b.replaceSelection(F); + i.preventDefault(); + } + L = null; + } }, { key: "storeDocumentScroll", value: function() { + this.options.keepDocumentScrollAfterInit && (this.needRestoreDocumentScroll = !0, this.documentElementScrollTop = document.documentElement.scrollTop, this.documentElementScrollLeft = document.documentElement.scrollLeft); + } }, { key: "restoreDocumentScroll", value: function() { + this.options.keepDocumentScrollAfterInit && this.needRestoreDocumentScroll && (this.needRestoreDocumentScroll = !1, window.scrollTo(this.documentElementScrollLeft, this.documentElementScrollTop)); + } }, { key: "init", value: function(i) { + var o = this; + this.storeDocumentScroll(); + var l = this.options.editorDom.querySelector("#".concat(this.options.id)); + if (!(l instanceof HTMLTextAreaElement)) + throw new Error("The specific element is not a textarea."); + var f = m2.fromTextArea(l, this.options.codemirror); + f.addOverlay({ name: "invisibles", token: function(g) { + var A, b = 0, v = g.peek() === " "; + if (v) { + for (; v && b < Number.MAX_VALUE; ) + b += 1, g.next(), v = g.peek() === " "; + A = "whitespace whitespace-".concat(b); + } else { + for (; !g.eol(); ) + g.next(); + A = ""; + } + return A; + } }), this.previewer = i, this.disableScrollListener = !1, this.options.value && f.setOption("value", this.options.value), f.on("blur", function(g, A) { + o.options.onBlur(A, g); + }), f.on("focus", function(g, A) { + o.options.onFocus(A, g); + }), f.on("change", function(g, A) { + o.options.onChange(A, g), o.dealSpecialWords(), o.options.autoSave2Textarea && g.save(); + }), f.on("keydown", function(g, A) { + o.options.onKeydown(A, g); + }), f.on("keyup", function(g, A) { + o.onKeyup(A, g); + }), f.on("paste", function(g, A) { + o.options.onPaste.call(o, A, g); + }), this.options.autoScrollByCursor && f.on("mousedown", function(g, A) { + lm(function() { + o.onMouseDown(g, A); + }); + }), f.on("drop", function(g, A) { + var b = A.dataTransfer.files || []; + b && b.length > 0 && lm(function() { + for (var v = function(_) { + var T = b[_], L = T.type || ""; + if (L === "" || /^text/i.test(L)) + return "continue"; + o.options.fileUpload(T, function(F) { + var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (typeof F == "string") { + g.setSelection(g.getCursor()); + var q = y4t(F, U, T), Z = _ > 0 ? ` +`.concat(q, " ") : "".concat(q, " "); + g.replaceSelection(Z), o.dealSpecialWords(); + } + }); + }, k = 0; k < b.length; k++) + v(k); + }, 50); + }), f.on("scroll", function(g) { + o.options.onScroll(g), o.options.writingStyle === "focus" && o.refreshWritingStatus(); + }), f.on("cursorActivity", function() { + o.onCursorActivity(); + }), hO(this.getEditorDom(), "wheel", function() { + o.disableScrollListener = !1, cancelAnimationFrame(o.animation.timer), o.animation.timer = 0; + }, !1), this.editor = f, this.options.writingStyle !== "normal" && this.initWritingStyle(), this.dealSpecialWords(), this.restoreDocumentScroll(); + } }, { key: "jumpToLine", value: function(i, o, l) { + var f = this; + if (i === null) + return cancelAnimationFrame(this.animation.timer), this.disableScrollListener = !0, this.editor.scrollIntoView({ line: this.editor.lineCount() - 1, ch: 1 }), void (this.animation.timer = 0); + var g = this.editor.charCoords({ line: i, ch: 0 }, "local"), A = g.top; + A += (this.editor.charCoords({ line: i + o, ch: 0 }, "local").top - g.top) * l, this.animation.destinationTop = Math.ceil(A - 15), !this.animation.timer && (this.animation.timer = requestAnimationFrame(function b() { + var v = f.editor.getScrollInfo().top, k = f.animation.destinationTop - v, _ = Math.ceil(Math.min(Math.abs(k), Math.max(1, Math.abs(k) / (100 / 16.7)))); + if (k > 0) { + if (v >= f.animation.destinationTop) + return void (f.animation.timer = 0); + f.disableScrollListener = !0, f.editor.scrollTo(null, v + _); + } else { + if (!(k < 0) || v <= f.animation.destinationTop || v <= 0) + return void (f.animation.timer = 0); + f.disableScrollListener = !0, f.editor.scrollTo(null, v - _); + } + v === f.editor.getScrollInfo().top || _ >= Math.abs(k) ? f.animation.timer = 0 : f.animation.timer = requestAnimationFrame(b); + })); + } }, { key: "scrollToLineNum", value: function(i, o, l) { + if (i !== null) { + var f = Math.max(0, i); + this.jumpToLine(f, o, l), k3.log("滚动预览区域,左侧应scroll to ", f); + } else + this.jumpToLine(null); + } }, { key: "getEditorDom", value: function() { + return this.options.editorDom; + } }, { key: "addListener", value: function(i, o) { + this.editor.on(i, o); + } }, { key: "initWritingStyle", value: function() { + var i, o, l = this.options.writingStyle, f = "cherry-editor-writing-style--".concat(l), g = this.getEditorDom(); + no(i = dd(o = Su(g.classList)).call(o, function(A) { + return RG(A).call(A, "cherry-editor-writing-style--"); + })).call(i, function(A) { + return g.classList.remove(A); + }), l !== "normal" && (g.classList.add(f), this.refreshWritingStatus()); + } }, { key: "refreshWritingStatus", value: function() { + var i, o, l = this.options.writingStyle; + if (l === "focus" || l === "typewriter") { + var f = "cherry-editor-writing-style--".concat(l), g = document.querySelector("#cherry-editor-writing-style") || document.createElement("style"); + g.id = "cherry-editor-writing-style", Wre(i = Su(document.head.childNodes)).call(i, function(J) { + return J === g; + }) || document.head.appendChild(g); + var A = g.sheet; + if (no(o = Su(Array(A.cssRules.length))).call(o, function() { + return A.deleteRule(0); + }), l === "focus") { + var b, v, k = this.getEditorDom().getBoundingClientRect(), _ = this.editor.charCoords(this.editor.getCursor()), T = _.top, L = _.bottom, F = T - k.top, U = k.height - (L - k.top); + A.insertRule(At(b = ".".concat(f, "::before { height: ")).call(b, F > 0 ? F : 0, "px; }"), 0), A.insertRule(At(v = ".".concat(f, "::after { height: ")).call(v, U > 0 ? U : 0, "px; }"), 0); + } + if (l === "typewriter") { + var q, Z, R = this.editor.getScrollInfo().clientHeight / 2; + A.insertRule(At(q = ".".concat(f, " .CodeMirror-lines::before { height: ")).call(q, R, "px; }"), 0), A.insertRule(At(Z = ".".concat(f, " .CodeMirror-lines::after { height: ")).call(Z, R, "px; }"), 0), this.editor.scrollTo(null, this.editor.cursorCoords(null, "local").top - R); + } + } + } }, { key: "setWritingStyle", value: function(i) { + this.options.writingStyle = i, this.initWritingStyle(); + } }]), r; +}(), F0n = LL.findIndex, B4t = "findIndex", S4t = !0; +B4t in [] && Array(1)[B4t](function() { + S4t = !1; +}), qa({ target: "Array", proto: !0, forced: S4t }, { findIndex: function(r) { + return F0n(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var O0n = a0("Array").findIndex, UMe = Array.prototype, Dme = function(r) { + var i = r.findIndex; + return r === UMe || E1(UMe, r) && i === UMe.findIndex ? O0n : i; +}, D0n = Lie("splice"), N0n = Qi.TypeError, P0n = Math.max, R0n = Math.min; +qa({ target: "Array", proto: !0, forced: !D0n }, { splice: function(r, i) { + var o, l, f, g, A, b, v = y5(this), k = Ck(v), _ = yL(r, k), T = arguments.length; + if (T === 0 ? o = l = 0 : T === 1 ? (o = 0, l = k - _) : (o = T - 2, l = R0n(P0n(cX(i), 0), k - _)), k + o - l > 9007199254740991) + throw N0n("Maximum allowed length exceeded"); + for (f = Dbe(v, l), g = 0; g < l; g++) + (A = _ + g) in v && EO(f, g, v[A]); + if (f.length = l, o < l) { + for (g = _; g < k - l; g++) + b = g + o, (A = g + l) in v ? v[b] = v[A] : delete v[b]; + for (g = k; g > k - l + o; g--) + delete v[g - 1]; + } else if (o > l) + for (g = k - l; g > _; g--) + b = g + o - 1, (A = g + l - 1) in v ? v[b] = v[A] : delete v[b]; + for (g = 0; g < o; g++) + v[g + _] = arguments[g + 2]; + return v.length = k - l + o, f; +} }); +var Q0n = a0("Array").splice, HMe = Array.prototype, gk = function(r) { + var i = r.splice; + return r === HMe || E1(HMe, r) && i === HMe.splice ? Q0n : i; +}, L4t = !1, QG = { SEN: "sentence", PAR: "paragraph", DEFAULT: "sentence" }, Sg = function() { + function r(i) { + vi(this, r), Ui(this, "$engine", void 0), Ui(this, "$locale", void 0), this.RULE = this.rule(i); + } + return yi(r, [{ key: "getType", value: function() { + return this.constructor.HOOK_TYPE || QG.DEFAULT; + } }, { key: "getName", value: function() { + return this.constructor.HOOK_NAME; + } }, { key: "afterInit", value: function(i) { + typeof i == "function" && i(); + } }, { key: "setLocale", value: function(i) { + this.$locale = i; + } }, { key: "beforeMakeHtml", value: function(i) { + return i; + } }, { key: "makeHtml", value: function(i) { + return i; + } }, { key: "afterMakeHtml", value: function(i) { + return i; + } }, { key: "onKeyDown", value: function(i, o) { + } }, { key: "getOnKeyDown", value: function() { + return this.onKeyDown || !1; + } }, { key: "getAttributesTest", value: function() { + return /^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/; + } }, { key: "$testAttributes", value: function(i, o) { + this.getAttributesTest().test(i) && o(); + } }, { key: "getAttributes", value: function(i) { + return { attrs: {}, str: i }; + } }, { key: "test", value: function(i) { + return !!this.RULE.reg && this.RULE.reg.test(i); + } }, { key: "rule", value: function(i) { + return { begin: "", end: "", content: "", reg: new RegExp("") }; + } }, { key: "mounted", value: function() { + } }], [{ key: "getMathJaxConfig", value: function() { + return L4t; + } }, { key: "setMathJaxConfig", value: function(i) { + L4t = i; + } }]), r; +}(); +Ui(Sg, "HOOK_NAME", "default"), Ui(Sg, "HOOK_TYPE", QG.DEFAULT); +var $0n = LL.map, U0n = Lie("map"); +qa({ target: "Array", proto: !0, forced: !U0n }, { map: function(r) { + return $0n(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var H0n = a0("Array").map, jMe = Array.prototype, Zs = function(r) { + var i = r.map; + return r === jMe || E1(jMe, r) && i === jMe.map ? H0n : i; +}; +function c$(r, i) { + var o, l, f, g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2]; + return /^\n/.test(r) ? g ? ((o = (l = r.match(/^\n+/g)) === null || l === void 0 || (f = l[0]) === null || f === void 0 ? void 0 : f.length) !== null && o !== void 0 ? o : 0) > 1 ? ` + +`.concat(i) : ` +`.concat(i) : ` + +`.concat(i) : i; +} +function TDe(r, i) { + var o = (r.match(/\n/g) || []).length; + return r !== "" && (o -= 2), o + i; +} +var kk = A_t; +function j0n(r, i) { + if (kk(i)) + return i; +} +function JPe(r) { + return typeof localStorage < "u" && localStorage.getItem("cherry-".concat(r)) !== null; +} +function Nme() { + var r = "false"; + return typeof localStorage < "u" && (r = localStorage.getItem("cherry-classicBr")), r === "true"; +} +function BDe() { + var r = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], i = "default"; + if (typeof localStorage < "u") { + var o = localStorage.getItem("cherry-theme"); + o && (i = o); + } + return r ? "theme__".concat(i) : i; +} +function S_t(r) { + var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = (i || BDe()).replace(/^.*theme__/, ""), l = " theme__".concat(o); + r.wrapperDom.className = r.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g, " ") + l, r.previewer.getDomContainer().className = r.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g, " ") + l, function(f) { + typeof localStorage < "u" && localStorage.setItem("cherry-theme", f); + }(o); +} +var K0n = Qi.RangeError, I4t = String.fromCharCode, M4t = String.fromCodePoint, z0n = Do([].join), G0n = !!M4t && M4t.length != 1; +qa({ target: "String", stat: !0, arity: 1, forced: G0n }, { fromCodePoint: function(r) { + for (var i, o = [], l = arguments.length, f = 0; l > f; ) { + if (i = +arguments[f++], yL(i, 1114111) !== i) + throw K0n(i + " is not a valid code point"); + o[f] = i < 65536 ? I4t(i) : I4t(55296 + ((i -= 65536) >> 10), i % 1024 + 56320); + } + return z0n(o, ""); +} }); +var F4t, O4t, SDe = ql.String.fromCodePoint; +function D4t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function Uz(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = D4t(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = D4t(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +var N4t = { "<": "<", ">": ">", "&": "&", '"': """, "'": "'" }, X0n = { lt: "<", gt: ">", amp: "&", quot: '"', apos: "'" }, ZPe = Uz(Uz(Uz(Uz(Uz(Uz({}, { 34: """, 38: "&", 39: "'", 60: "<", 62: ">" }), { 192: "À", 193: "Á", 194: "Â", 195: "Ã", 196: "Ä", 197: "Å", 198: "Æ", 199: "Ç", 200: "È", 201: "É", 202: "Ê", 203: "Ë", 204: "Ì", 205: "Í", 206: "Î", 207: "Ï", 208: "Ð", 209: "Ñ", 210: "Ò", 211: "Ó", 212: "Ô", 213: "Õ", 214: "Ö", 216: "Ø", 217: "Ù", 218: "Ú", 219: "Û", 220: "Ü", 221: "Ý", 222: "Þ", 223: "ß", 224: "à", 225: "á", 226: "â", 227: "ã", 228: "ä", 229: "å", 230: "æ", 231: "ç", 232: "è", 233: "é", 234: "ê", 235: "ë", 236: "ì", 237: "í", 238: "î", 239: "ï", 240: "ð", 241: "ñ", 242: "ò", 243: "ó", 244: "ô", 245: "õ", 246: "ö", 248: "ø", 249: "ù", 250: "ú", 251: "û", 252: "ü", 253: "ý", 254: "þ", 255: "ÿ" }), { 160: " ", 161: "¡", 162: "¢", 163: "£", 164: "¤", 165: "¥", 166: "¦", 167: "§", 168: "¨", 169: "©", 170: "ª", 171: "«", 172: "¬", 173: "­", 174: "®", 175: "¯", 176: "°", 177: "±", 178: "²", 179: "³", 180: "´", 181: "µ", 182: "¶", 184: "¸", 185: "¹", 186: "º", 187: "»", 188: "¼", 189: "½", 190: "¾", 191: "¿", 215: "×", 247: "÷" }), { 8704: "∀", 8706: "∂", 8707: "∃", 8709: "∅", 8711: "∇", 8712: "∈", 8713: "∉", 8715: "∋", 8719: "∏", 8721: "∑", 8722: "−", 8727: "∗", 8730: "√", 8733: "∝", 8734: "∞", 8736: "∠", 8743: "∧", 8744: "∨", 8745: "∩", 8746: "∪", 8747: "∫", 8756: "∴", 8764: "∼", 8773: "≅", 8776: "≈", 8800: "≠", 8801: "≡", 8804: "≤", 8805: "≥", 8834: "⊂", 8835: "⊃", 8836: "⊄", 8838: "⊆", 8839: "⊇", 8853: "⊕", 8855: "⊗", 8869: "⊥", 8901: "⋅" }), { 913: "Α", 914: "Β", 915: "Γ", 916: "Δ", 917: "Ε", 918: "Ζ", 919: "Η", 920: "Θ", 921: "Ι", 922: "Κ", 923: "Λ", 924: "Μ", 925: "Ν", 926: "Ξ", 927: "Ο", 928: "Π", 929: "Ρ", 931: "Σ", 932: "Τ", 933: "Υ", 934: "Φ", 935: "Χ", 936: "Ψ", 937: "Ω", 945: "α", 946: "β", 947: "γ", 948: "δ", 949: "ε", 950: "ζ", 951: "η", 952: "θ", 953: "ι", 954: "κ", 955: "λ", 956: "μ", 957: "ν", 958: "ξ", 959: "ο", 960: "π", 961: "ρ", 962: "ς", 963: "σ", 964: "τ", 965: "υ", 966: "φ", 967: "χ", 968: "ψ", 969: "ω", 977: "ϑ", 978: "ϒ", 982: "ϖ" }), { 338: "Œ", 339: "œ", 352: "Š", 353: "š", 376: "Ÿ", 402: "ƒ", 710: "ˆ", 732: "˜", 8194: " ", 8195: " ", 8201: " ", 8204: "‌", 8205: "‍", 8206: "‎", 8207: "‏", 8211: "–", 8212: "—", 8216: "‘", 8217: "’", 8218: "‚", 8220: "“", 8221: "”", 8222: "„", 8224: "†", 8225: "‡", 8226: "•", 8230: "…", 8240: "‰", 8242: "′", 8243: "″", 8249: "‹", 8250: "›", 8254: "‾", 8364: "€", 8482: "™", 8592: "←", 8593: "↑", 8594: "→", 8595: "↓", 8596: "↔", 8629: "↵", 8968: "⌈", 8969: "⌉", 8970: "⌊", 8971: "⌋", 9674: "◊", 9824: "♠", 9827: "♣", 9829: "♥", 9830: "♦" }), P4t = yh(ZPe), R4t = Zs(P4t).call(P4t, function(r) { + return ZPe[r].replace(/^&(\w+);$/g, function(i, o) { + return o.toLowerCase(); + }); +}), LDe = function(r) { + return typeof r != "string" || r.length <= 0; +}, Q4t = function(r) { + try { + var i = SDe(r); + return !LDe(i); + } catch { + return !1; + } +}, Die = ["h1|h2|h3|h4|h5|h6", "ul|ol|li|dd|dl|dt", "table|thead|tbody|tfoot|col|colgroup|th|td|tr", "div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure", "address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"), W0n = ["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd", "nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn", "ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|"), V0n = new RegExp(At(F4t = At(O4t = "^(".concat(Die, "|")).call(O4t, W0n, "|")).call(F4t, "br|img|hr", ")( |$|/)"), "i"); +function $G(r, i) { + return typeof r != "string" ? "" : i ? r.replace(/[<>&]/g, function(o) { + return N4t[o] || o; + }) : r.replace(/[<>&"']/g, function(o) { + return N4t[o] || o; + }); +} +function p5(r, i) { + if (typeof r != "string") + return ""; + var o = L_t(r); + return o = function(l) { + return typeof l != "string" ? "" : l.replace(/&(\w+);?/g, function(f, g) { + return X0n[g] || f; + }); + }(o), $G(o, i); +} +function L_t(r) { + return r.replace(/&#(\d+);?/g, function(i, o) { + return ZPe[o] || i; + }); +} +function q0n(r) { + var i = function(f) { + return f.replace(/&#x([0-9a-f]+);?/gi, function(g, A) { + var b = Ky("0x".concat(A), 16); + try { + return SDe(b); + } catch { + return g; + } + }); + }(function(f) { + return f.replace(/&#(\d+);?/g, function(g, A) { + try { + return SDe(A); + } catch { + return g; + } + }); + }(r)).match(/^\s*([\w\W]+?)(?=:)/i); + if (!i) + return !0; + var o = ["javascript", "data"], l = i[1].replace(/[\s]/g, ""); + return Lu(o).call(o, l.toLowerCase()) === -1; +} +function vO(r) { + return encodeURI(r).replace(/%25/g, "%"); +} +function Y0n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var $4t = 0, r0 = function(r) { + ja(o, Sg); + var i = Y0n(o); + function o() { + var l, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { needCache: !1 }, g = f.needCache, A = f.defaultCache, b = A === void 0 ? {} : A; + return vi(this, o), (l = i.call(this, {})).needCache = !!g, l.sign = "", g && (l.cache = b || {}, l.cacheKey = "~~C".concat($4t), $4t += 1), l; + } + return yi(o, [{ key: "initBrReg", value: function() { + var l = arguments.length > 0 && arguments[0] !== void 0 && arguments[0]; + this.classicBr = JPe("classicBr") ? Nme() : l, this.removeBrAfterBlock = null, this.removeBrBeforeBlock = null, this.removeNewlinesBetweenTags = null; + } }, { key: "$cleanParagraph", value: function(l) { + var f = l.replace(/^\n+/, "").replace(/\n+$/, ""); + return this.classicBr ? f : this.joinRawHtml(f).replace(/\n/g, "
").replace(/\r/g, ` +`); + } }, { key: "joinRawHtml", value: function(l) { + if (!this.removeBrAfterBlock) { + var f, g, A, b, v = (f = (g = this.$engine.htmlWhiteListAppend) === null || g === void 0 ? void 0 : g.split("|")) !== null && f !== void 0 ? f : []; + v = dd(A = Zs(v).call(v, function(_) { + return /[a-z-]+/gi.test(_) ? _ : null; + })).call(A, function(_) { + return _ !== null; + }); + var k = At(v).call(v, Die).join("|"); + this.removeBrAfterBlock = new RegExp("<(".concat(k, ")(>| [^>]*?>)[^\\S\\n]*?\\n"), "ig"), this.removeBrBeforeBlock = new RegExp("\\n[^\\S\\n]*?<\\/(".concat(k, ")>[^\\S\\n]*?\\n"), "ig"), this.removeNewlinesBetweenTags = new RegExp(At(b = "<\\/(".concat(k, ")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(b, k, ")(>| [^>]*?>)"), "ig"); + } + return l.replace(this.removeBrAfterBlock, "<$1$2").replace(this.removeBrBeforeBlock, "").replace(this.removeNewlinesBetweenTags, "\r$2<$3$4"); + } }, { key: "toHtml", value: function(l, f) { + return l; + } }, { key: "makeHtml", value: function(l, f) { + return f(l).html; + } }, { key: "afterMakeHtml", value: function(l) { + return this.restoreCache(l); + } }, { key: "isContainsCache", value: function(l, f) { + if (f) { + var g = /^(\s*~~C\d+I\w+\$\s*)+$/g.test(l), A = new RegExp("~~C\\d+I".concat(o.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX, "\\w+\\$"), "g").test(l); + return g && !A; + } + return new RegExp("~~C\\d+I(?!".concat(o.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX, ")\\w+\\$"), "g").test(l); + } }, { key: "$splitHtmlByCache", value: function(l) { + var f = new RegExp("\\n*~~C\\d+I(?!".concat(o.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX, ")\\w+\\$\\n?"), "g"); + return { caches: l.match(f), contents: l.split(f) }; + } }, { key: "makeExcludingCached", value: function(l, f) { + for (var g = this.$splitHtmlByCache(l), A = g.caches, b = g.contents, v = Zs(b).call(b, f), k = "", _ = 0; _ < v.length; _++) { + var T; + k += v[_], A && A[_] && (k += Go(T = A[_]).call(T)); + } + return k; + } }, { key: "getCacheWithSpace", value: function(l, f) { + var g, A, b, v, k, _, T = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], L = (g = (A = f.match(/^\n+/)) === null || A === void 0 ? void 0 : A[0]) !== null && g !== void 0 ? g : "", F = (b = (v = f.match(/\n+$/)) === null || v === void 0 ? void 0 : v[0]) !== null && b !== void 0 ? b : ""; + return T ? c$(f, l) : At(k = At(_ = "".concat(L)).call(_, l)).call(k, F); + } }, { key: "getLineCount", value: function(l) { + var f, g, A, b = l, v = (f = (g = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "").match(/^\n+/g)) === null || g === void 0 || (A = g[0]) === null || A === void 0 ? void 0 : A.length) !== null && f !== void 0 ? f : 0; + v = v === 1 ? 1 : 0, b = b.replace(/^\n+/g, ""); + var k = new RegExp(` +*~~C\\d+I(?:`.concat(o.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX, ")?\\w+?_L(\\d+)\\$"), "g"), _ = 0; + return b = b.replace(k, function(T, L) { + return _ += Ky(L, 10), T.replace(/^\n+/g, ""); + }), v + _ + (b.match(/\n/g) || []).length + 1; + } }, { key: "pushCache", value: function(l) { + var f, g, A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; + if (this.needCache) { + var v = A || this.$engine.md5(l); + return this.cache[v] = { content: l, using: !0 }, At(f = At(g = "".concat(this.cacheKey, "I")).call(g, v, "_L")).call(f, b, "$"); + } + } }, { key: "popCache", value: function(l) { + if (this.needCache) + return this.cache[l].content || ""; + } }, { key: "resetCache", value: function() { + if (this.needCache) { + for (var l = 0, f = yh(this.cache); l < f.length; l++) { + var g = f[l]; + this.cache[g].using || delete this.cache[g]; + } + for (var A = 0, b = yh(this.cache); A < b.length; A++) { + var v = b[A]; + this.cache[v].using = !1; + } + } + } }, { key: "restoreCache", value: function(l) { + var f, g = this; + if (!this.needCache) + return l; + var A = new RegExp(At(f = "".concat(this.cacheKey, "I((?:")).call(f, o.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX, ")?\\w+)\\$"), "g"), b = l.replace(A, function(v, k) { + return g.popCache(k.replace(/_L\d+$/, "")); + }); + return this.resetCache(), b; + } }, { key: "checkCache", value: function(l, f) { + var g, A, b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; + return this.sign = this.$engine.md5(l), this.cache[this.sign] ? (this.cache[this.sign].using = !0, At(g = At(A = "".concat(this.cacheKey, "I")).call(A, this.sign, "_L")).call(g, b, "$")) : this.toHtml(l, f); + } }, { key: "mounted", value: function() { + } }, { key: "signWithCache", value: function(l) { + return !1; + } }]), o; +}(); +Ui(r0, "HOOK_TYPE", QG.PAR), Ui(r0, "IN_PARAGRAPH_CACHE_KEY_PREFIX", "!"), Ui(r0, "IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX", "\\!"); +var U4t = oh(function() { + if (typeof ArrayBuffer == "function") { + var r = new ArrayBuffer(8); + Object.isExtensible(r) && Object.defineProperty(r, "a", { value: 8 }); + } +}), Mge = Object.isExtensible, KMe = oh(function() { + Mge(1); +}) || U4t ? function(r) { + return !!Id(r) && (!U4t || BT(r) != "ArrayBuffer") && (!Mge || Mge(r)); +} : Mge, I_t = !oh(function() { + return Object.isExtensible(Object.preventExtensions({})); +}), VQ = su(function(r) { + var i = _3.f, o = !1, l = $re("meta"), f = 0, g = function(b) { + i(b, l, { value: { objectID: "O" + f++, weakData: {} } }); + }, A = r.exports = { enable: function() { + A.enable = function() { + }, o = !0; + var b = Ure.f, v = Do([].splice), k = {}; + k[l] = 1, b(k).length && (Ure.f = function(_) { + for (var T = b(_), L = 0, F = T.length; L < F; L++) + if (T[L] === l) { + v(T, L, 1); + break; + } + return T; + }, qa({ target: "Object", stat: !0, forced: !0 }, { getOwnPropertyNames: OPe.f })); + }, fastKey: function(b, v) { + if (!Id(b)) + return typeof b == "symbol" ? b : (typeof b == "string" ? "S" : "P") + b; + if (!nl(b, l)) { + if (!KMe(b)) + return "F"; + if (!v) + return "E"; + g(b); + } + return b[l].objectID; + }, getWeakData: function(b, v) { + if (!nl(b, l)) { + if (!KMe(b)) + return !0; + if (!v) + return !1; + g(b); + } + return b[l].weakData; + }, onFreeze: function(b) { + return I_t && o && KMe(b) && !nl(b, l) && g(b), b; + } }; + lX[l] = !0; +}); +VQ.enable, VQ.fastKey, VQ.getWeakData, VQ.onFreeze; +var J0n = Qi.TypeError, Tpe = function(r, i) { + this.stopped = r, this.result = i; +}, H4t = Tpe.prototype, Tg = function(r, i, o) { + var l, f, g, A, b, v, k, _ = o && o.that, T = !(!o || !o.AS_ENTRIES), L = !(!o || !o.IS_ITERATOR), F = !(!o || !o.INTERRUPTED), U = hm(i, _), q = function(R) { + return l && xDe(l, "normal", R), new Tpe(!0, R); + }, Z = function(R) { + return T ? (Oh(R), F ? U(R[0], R[1], q) : U(R[0], R[1])) : F ? U(R, q) : U(R); + }; + if (L) + l = r; + else { + if (!(f = Oie(r))) + throw J0n(Eie(r) + " is not iterable"); + if (l_t(f)) { + for (g = 0, A = Ck(r); A > g; g++) + if ((b = Z(r[g])) && E1(H4t, b)) + return b; + return new Tpe(!1); + } + l = s$(r, f); + } + for (v = l.next; !(k = rl(v, l)).done; ) { + try { + b = Z(k.value); + } catch (R) { + xDe(l, "throw", R); + } + if (typeof b == "object" && b && E1(H4t, b)) + return b; + } + return new Tpe(!1); +}, Z0n = Qi.TypeError, fX = function(r, i) { + if (E1(i, r)) + return r; + throw Z0n("Incorrect invocation"); +}, egn = _3.f, tgn = LL.forEach, ngn = Bv.set, rgn = Bv.getterFor, IDe = function(r, i, o) { + for (var l in i) + o && o.unsafe && r[l] ? r[l] = i[l] : m5(r, l, i[l], o); + return r; +}, j4t = TA("species"), M_t = function(r) { + var i = b2(r), o = _3.f; + of && i && !i[j4t] && o(i, j4t, { configurable: !0, get: function() { + return this; + } }); +}, ign = _3.f, K4t = VQ.fastKey, z4t = Bv.set, zMe = Bv.getterFor, agn = { getConstructor: function(r, i, o, l) { + var f = r(function(k, _) { + fX(k, g), z4t(k, { type: i, index: wk(null), first: void 0, last: void 0, size: 0 }), of || (k.size = 0), _ != null && Tg(_, k[l], { that: k, AS_ENTRIES: o }); + }), g = f.prototype, A = zMe(i), b = function(k, _, T) { + var L, F, U = A(k), q = v(k, _); + return q ? q.value = T : (U.last = q = { index: F = K4t(_, !0), key: _, value: T, previous: L = U.last, next: void 0, removed: !1 }, U.first || (U.first = q), L && (L.next = q), of ? U.size++ : k.size++, F !== "F" && (U.index[F] = q)), k; + }, v = function(k, _) { + var T, L = A(k), F = K4t(_); + if (F !== "F") + return L.index[F]; + for (T = L.first; T; T = T.next) + if (T.key == _) + return T; + }; + return IDe(g, { clear: function() { + for (var k = A(this), _ = k.index, T = k.first; T; ) + T.removed = !0, T.previous && (T.previous = T.previous.next = void 0), delete _[T.index], T = T.next; + k.first = k.last = void 0, of ? k.size = 0 : this.size = 0; + }, delete: function(k) { + var _ = this, T = A(_), L = v(_, k); + if (L) { + var F = L.next, U = L.previous; + delete T.index[L.index], L.removed = !0, U && (U.next = F), F && (F.previous = U), T.first == L && (T.first = F), T.last == L && (T.last = U), of ? T.size-- : _.size--; + } + return !!L; + }, forEach: function(k) { + for (var _, T = A(this), L = hm(k, arguments.length > 1 ? arguments[1] : void 0); _ = _ ? _.next : T.first; ) + for (L(_.value, _.key, this); _ && _.removed; ) + _ = _.previous; + }, has: function(k) { + return !!v(this, k); + } }), IDe(g, o ? { get: function(k) { + var _ = v(this, k); + return _ && _.value; + }, set: function(k, _) { + return b(this, k === 0 ? 0 : k, _); + } } : { add: function(k) { + return b(this, k = k === 0 ? 0 : k, k); + } }), of && ign(g, "size", { get: function() { + return A(this).size; + } }), f; +}, setStrong: function(r, i, o) { + var l = i + " Iterator", f = zMe(i), g = zMe(l); + NPe(r, i, function(A, b) { + z4t(this, { type: l, target: A, state: f(A), kind: b, last: void 0 }); + }, function() { + for (var A = g(this), b = A.kind, v = A.last; v && v.removed; ) + v = v.previous; + return A.target && (A.last = v = v ? v.next : A.state.first) ? b == "keys" ? { value: v.key, done: !1 } : b == "values" ? { value: v.value, done: !1 } : { value: [v.key, v.value], done: !1 } : (A.target = void 0, { value: void 0, done: !0 }); + }, o ? "entries" : "values", !o, !0), M_t(i); +} }; +(function(r, i, o) { + var l, f = r.indexOf("Map") !== -1, g = r.indexOf("Weak") !== -1, A = f ? "set" : "add", b = Qi[r], v = b && b.prototype, k = {}; + if (of && vf(b) && (g || v.forEach && !oh(function() { + new b().entries().next(); + }))) { + var _ = (l = i(function(L, F) { + ngn(fX(L, _), { type: r, collection: new b() }), F != null && Tg(F, L[A], { that: L, AS_ENTRIES: f }); + })).prototype, T = rgn(r); + tgn(["add", "clear", "delete", "forEach", "get", "has", "set", "keys", "values", "entries"], function(L) { + var F = L == "add" || L == "set"; + !(L in v) || g && L == "clear" || Uy(_, L, function(U, q) { + var Z = T(this).collection; + if (!F && g && !Id(U)) + return L == "get" && void 0; + var R = Z[L](U === 0 ? 0 : U, q); + return F ? this : R; + }); + }), g || egn(_, "size", { configurable: !0, get: function() { + return T(this).collection.size; + } }); + } else + l = o.getConstructor(i, r, f, A), VQ.enable(); + wL(l, r, !1, !0), k[r] = l, qa({ global: !0, forced: !0 }, k), g || o.setStrong(l, r, f); +})("Map", function(r) { + return function() { + return r(this, arguments.length ? arguments[0] : void 0); + }; +}, agn); +var F_t = ql.Map, ogn = F_t, G4t = [].push; +qa({ target: "Map", stat: !0, forced: !0 }, { from: function(r) { + var i, o, l, f, g = arguments.length, A = g > 1 ? arguments[1] : void 0; + return Eme(this), (i = A !== void 0) && Fh(A), r == null ? new this() : (o = [], i ? (l = 0, f = hm(A, g > 2 ? arguments[2] : void 0), Tg(r, function(b) { + rl(G4t, o, f(b, l++)); + })) : Tg(r, G4t, { that: o }), new this(o)); +} }); +qa({ target: "Map", stat: !0, forced: !0 }, { of: function() { + return new this(_O(arguments)); +} }); +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { deleteAll: function() { + for (var r, i = Oh(this), o = Fh(i.delete), l = !0, f = 0, g = arguments.length; f < g; f++) + r = rl(o, i, arguments[f]), l = l && r; + return !!l; +} }); +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { emplace: function(r, i) { + var o = Oh(this), l = Fh(o.get), f = Fh(o.has), g = Fh(o.set), A = rl(f, o, r) && "update" in i ? i.update(rl(l, o, r), r, o) : i.insert(r, o); + return rl(g, o, r, A), A; +} }); +var xT = s$; +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { every: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0); + return !Tg(o, function(f, g, A) { + if (!l(g, f, i)) + return A(); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0, INTERRUPTED: !0 }).stopped; +} }); +var sgn = TA("species"), qre = function(r, i) { + var o, l = Oh(r).constructor; + return l === void 0 || (o = Oh(l)[sgn]) == null ? i : Eme(o); +}; +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { filter: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0), f = new (qre(i, b2("Map")))(), g = Fh(f.set); + return Tg(o, function(A, b) { + l(b, A, i) && rl(g, f, A, b); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0 }), f; +} }), qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { find: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0); + return Tg(o, function(f, g, A) { + if (l(g, f, i)) + return A(g); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0, INTERRUPTED: !0 }).result; +} }), qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { findKey: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0); + return Tg(o, function(f, g, A) { + if (l(g, f, i)) + return A(f); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0, INTERRUPTED: !0 }).result; +} }); +var cgn = Do([].push); +qa({ target: "Map", stat: !0, forced: !0 }, { groupBy: function(r, i) { + Fh(i); + var o = s$(r), l = new this(), f = Fh(l.has), g = Fh(l.get), A = Fh(l.set); + return Tg(o, function(b) { + var v = i(b); + rl(f, l, v) ? cgn(rl(g, l, v), b) : rl(A, l, v, [b]); + }, { IS_ITERATOR: !0 }), l; +} }); +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { includes: function(r) { + return Tg(xT(Oh(this)), function(i, o, l) { + if (function(f, g) { + return f === g || f != f && g != g; + }(o, r)) + return l(); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0, INTERRUPTED: !0 }).stopped; +} }), qa({ target: "Map", stat: !0, forced: !0 }, { keyBy: function(r, i) { + var o = new this(); + Fh(i); + var l = Fh(o.set); + return Tg(r, function(f) { + rl(l, o, i(f), f); + }), o; +} }), qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { keyOf: function(r) { + return Tg(xT(Oh(this)), function(i, o, l) { + if (o === r) + return l(i); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0, INTERRUPTED: !0 }).result; +} }), qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { mapKeys: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0), f = new (qre(i, b2("Map")))(), g = Fh(f.set); + return Tg(o, function(A, b) { + rl(g, f, l(b, A, i), b); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0 }), f; +} }), qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { mapValues: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0), f = new (qre(i, b2("Map")))(), g = Fh(f.set); + return Tg(o, function(A, b) { + rl(g, f, A, l(b, A, i)); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0 }), f; +} }), qa({ target: "Map", proto: !0, real: !0, arity: 1, forced: !0 }, { merge: function(r) { + for (var i = Oh(this), o = Fh(i.set), l = arguments.length, f = 0; f < l; ) + Tg(arguments[f++], o, { that: i, AS_ENTRIES: !0 }); + return i; +} }); +var lgn = Qi.TypeError; +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { reduce: function(r) { + var i = Oh(this), o = xT(i), l = arguments.length < 2, f = l ? void 0 : arguments[1]; + if (Fh(r), Tg(o, function(g, A) { + l ? (l = !1, f = A) : f = r(f, A, g, i); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0 }), l) + throw lgn("Reduce of empty map with no initial value"); + return f; +} }), qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { some: function(r) { + var i = Oh(this), o = xT(i), l = hm(r, arguments.length > 1 ? arguments[1] : void 0); + return Tg(o, function(f, g, A) { + if (l(g, f, i)) + return A(); + }, { AS_ENTRIES: !0, IS_ITERATOR: !0, INTERRUPTED: !0 }).stopped; +} }); +var ugn = Qi.TypeError; +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { update: function(r, i) { + var o = Oh(this), l = Fh(o.get), f = Fh(o.has), g = Fh(o.set), A = arguments.length; + Fh(i); + var b = rl(f, o, r); + if (!b && A < 3) + throw ugn("Updating absent value"); + var v = b ? rl(l, o, r) : Fh(A > 2 ? arguments[2] : void 0)(r, o); + return rl(g, o, r, i(v, r, o)), o; +} }); +var hgn = Qi.TypeError, X4t = function(r, i) { + var o, l = Oh(this), f = Fh(l.get), g = Fh(l.has), A = Fh(l.set), b = arguments.length > 2 ? arguments[2] : void 0; + if (!vf(i) && !vf(b)) + throw hgn("At least one callback required"); + return rl(g, l, r) ? (o = rl(f, l, r), vf(i) && (o = i(o), rl(A, l, r, o))) : vf(b) && (o = b(), rl(A, l, r, o)), o; +}; +qa({ target: "Map", proto: !0, real: !0, forced: !0 }, { upsert: X4t }), qa({ target: "Map", proto: !0, real: !0, name: "upsert", forced: !0 }, { updateOrInsert: X4t }); +var W4t = ogn, Fge = d9t, fgn = j9t; +function Pme(r, i, o) { + return Pme = function() { + if (typeof Reflect > "u" || !Fge || Fge.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(Fge(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }() ? Fge : function(l, f, g) { + var A = [null]; + A.push.apply(A, f); + var b = new (fgn(Function).apply(l, A))(); + return g && Kre(b, g.prototype), b; + }, Pme.apply(null, arguments); +} +function MDe(r) { + var i = typeof W4t == "function" ? new W4t() : void 0; + return MDe = function(o) { + if (o === null || !function(f) { + var g; + return kDe(g = Function.toString.call(f)).call(g, "[native code]") !== -1; + }(o)) + return o; + if (typeof o != "function") + throw new TypeError("Super expression must either be null or a function"); + if (i !== void 0) { + if (i.has(o)) + return i.get(o); + i.set(o, l); + } + function l() { + return Pme(o, arguments, Rn(this).constructor); + } + return l.prototype = vre(o.prototype, { constructor: { value: l, enumerable: !1, writable: !0, configurable: !0 } }), Kre(l, o); + }, MDe(r); +} +function dgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var KQ = function(r, i) { + if (!kk(r) && Yl(r) !== i.name.toLowerCase() || !kk(r) && i.name.toLowerCase() === "array") + throw new TypeError("parameter given must be ".concat(i.name)); + return !0; +}, V4t = function(r, i) { + if (!(r instanceof i)) + throw new Error("the hook does not correctly inherit"); + return !0; +}, Agn = function(r) { + if (Yl(r) !== "object") + throw new Error("the hook must be a instance, not a class"); + return !0; +}, Bpe = function(r) { + ja(o, MDe(Error)); + var i = dgn(o); + function o(l, f) { + var g; + return vi(this, o), (g = i.call(this, l)).name = "Error", g.stack = g.buildStackTrace(f), g; + } + return yi(o, [{ key: "buildStackTrace", value: function(l) { + var f, g = l && l.stack ? l.stack : ""; + return At(f = "".concat(this.stack, ` +Caused By: `)).call(f, g); + } }]), o; +}(); +function q4t(r, i, o) { + var l, f; + if (r === -1) + k3.warn(At(l = At(f = "Duplicate hook name [".concat(i.HOOK_NAME, "] found, hook [")).call(f, i.toString(), "] ")).call(l, isNaN(o) ? "" : "at index [".concat(o, "] "), "will not take effect.")); + else if (r === -2) { + var g; + k3.warn(At(g = "Hook [".concat(i.toString(), "] ")).call(g, isNaN(o) ? "" : "at index [".concat(o, "] "), "is not a valid hook, and will not take effect.")); + } +} +function Spe(r) { + return FDe(r) || O_t(r); +} +function FDe(r) { + return Object.prototype.isPrototypeOf.call(Sg, r); +} +function O_t(r) { + return Object.prototype.isPrototypeOf.call(r0, r); +} +function GMe(r) { + return Spe(r) && (r == null ? void 0 : r.Cherry$$CUSTOM) === !0; +} +var ggn = function() { + function r(i, o, l) { + vi(this, r), this.$locale = l.locale, this.hookList = {}, this.hookNameList = {}, KQ(i, Array), this.registerInternalHooks(i, o), this.registerCustomHooks(o.engine.customSyntax, o); + } + return yi(r, [{ key: "registerInternalHooks", value: function(i, o) { + var l = this; + no(i).call(i, function(f, g) { + q4t(l.register(f, o), f, g); + }); + } }, { key: "registerCustomHooks", value: function(i, o) { + var l = this; + if (i) { + var f = yh(i); + no(f).call(f, function(g) { + var A, b, v, k, _ = {}, T = i[g]; + if (FDe(T)) + b = T; + else { + if (!FDe(k = (v = T) == null ? void 0 : v.syntaxClass) && !O_t(k)) + return; + b = T.syntaxClass, _.force = !!T.force, T.before ? _.before = T.before : T.after && (_.after = T.after); + } + Spe(b) ? (C3(b, "Cherry$$CUSTOM", { enumerable: !1, configurable: !1, writable: !1, value: !0 }), A = l.register(b, o, _)) : A = -2, q4t(A, b, void 0); + }); + } + } }, { key: "getHookList", value: function() { + return this.hookList; + } }, { key: "getHookNameList", value: function() { + return this.hookNameList; + } }, { key: "register", value: function(i, o, l) { + var f, g, A = this, b = o.externals, v = o.engine, k = v.syntax; + if (Spe(i)) { + g = i.HOOK_NAME; + var _ = (k == null ? void 0 : k[g]) || {}; + (f = new i({ externals: b, config: _, globalConfig: v.global })).afterInit(function() { + f.setLocale(A.$locale); + }); + } else { + if (typeof i != "function" || !(f = i(o)) || !Spe(f.constructor)) + return -2; + g = f.getName(); + } + if (k[g] !== !1 || GMe(i)) { + var T = f.getType(); + if (this.hookNameList[g]) { + var L; + if (!GMe(i) || !l.force) + return -1; + var F = this.hookNameList[g].type; + this.hookList[F] = dd(L = this.hookList[F]).call(L, function(Y) { + return Y.getName() !== g; + }); + } + if (this.hookNameList[g] = { type: T }, this.hookList[T] = this.hookList[T] || [], GMe(i)) { + var U, q, Z, R = -1; + if (l.before) + (R = Dme(U = this.hookList[T]).call(U, function(Y) { + return Y.getName() === l.before; + })) === -1 && k3.warn(At(q = "Cannot find hook named [".concat(l.before, `], + custom hook [`)).call(q, g, "] will append to the end of the hooks.")); + else if (l.after) { + var J, he; + (R = Dme(J = this.hookList[T]).call(J, function(Y) { + return Y.getName() === l.after; + })) === -1 ? k3.warn(At(he = "Cannot find hook named [".concat(l.after, `], + custom hook [`)).call(he, g, "] will append to the end of the hooks.")) : R += 1; + } + R < 0 || R >= this.hookList[T].length ? this.hookList[T].push(f) : gk(Z = this.hookList[T]).call(Z, R, 0, f); + } else + this.hookList[T].push(f); + } + } }]), r; +}(); +function D_t(r) { + if (oC !== void 0 && QO(r) != null || r["@@iterator"] != null) + return v_t(r); +} +function BO(r) { + return function(i) { + if (g_t(i)) + return CDe(i); + }(r) || D_t(r) || VPe(r) || function() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + }(); +} +function N_t(r) { + return p_t(r) || D_t(r) || VPe(r) || y_t(); +} +function Y4t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function J4t(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = Y4t(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = Y4t(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +function G9(r, i, o) { + var l, f = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], g = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 1; + if (!i) + return r; + i.lastIndex = 0; + for (var A = 0, b = []; (l = i.exec(r)) !== null; ) { + var v = { begin: l.index, length: l[0].length }; + if (f && l.index === A - g) { + var k, _ = N_t(l), T = _[0], L = Da(_).call(_, 2); + b.push({ begin: v.begin + g, length: v.length - g, replacedText: o.apply(void 0, At(k = [Da(T).call(T, g), ""]).call(k, BO(L))) }); + } else + b.push(J4t(J4t({}, v), {}, { replacedText: o.apply(void 0, BO(l)) })); + A = i.lastIndex, i.lastIndex -= g; + } + return i.lastIndex = 0, function(F, U) { + if (!U.length) + return F; + var q = [], Z = 0; + return no(U).call(U, function(R, J) { + q.push(Da(F).call(F, Z, R.begin)), q.push(R.replacedText), Z = R.begin + R.length, J === U.length - 1 && q.push(Da(F).call(F, Z)); + }), q.join(""); + }(r, b); +} +function pgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var P_t = function(r) { + ja(o, Sg); + var i = pgn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "toHtml", value: function(l, f, g, A) { + var b, v; + return At(b = At(v = "".concat(f, '')).call(b, A, ""); + } }, { key: "makeHtml", value: function(l) { + return Bg() ? l.replace(this.RULE.reg, this.toHtml) : G9(l, this.RULE.reg, this.toHtml, !0, 1); + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(P_t, "HOOK_NAME", "fontColor"); +var R_t = function(r) { + ja(o, Sg); + var i = mgn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "toHtml", value: function(l, f, g, A) { + var b, v; + return At(b = At(v = "".concat(f, '')).call(b, A, ""); + } }, { key: "makeHtml", value: function(l) { + return Bg() ? l.replace(this.RULE.reg, this.toHtml) : G9(l, this.RULE.reg, this.toHtml, !0, 1); + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(R_t, "HOOK_NAME", "bgColor"); +var Q_t = function(r) { + ja(o, Sg); + var i = bgn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "toHtml", value: function(l, f, g, A) { + var b, v; + return At(b = At(v = "".concat(f, '')).call(b, A, ""); + } }, { key: "makeHtml", value: function(l) { + return this.test(l) ? Bg() ? l.replace(this.RULE.reg, this.toHtml) : G9(l, this.RULE.reg, this.toHtml, !0, 1) : l; + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(Q_t, "HOOK_NAME", "fontSize"); +var $_t = function(r) { + ja(o, Sg); + var i = vgn(o); + function o() { + var l, f = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { config: void 0 }).config; + return vi(this, o), l = i.call(this, { config: f }), f ? (l.needWhitespace = !!f.needWhitespace, l) : Ea(l); + } + return yi(o, [{ key: "makeHtml", value: function(l) { + return this.test(l) ? l.replace(this.RULE.reg, "$1$2") : l; + } }, { key: "rule", value: function() { + var l = {}; + return (l = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { config: void 0 }).config.needWhitespace ? Oge(Oge({}, l), {}, { begin: "(^|[\\s])\\~T\\~T", end: "\\~T\\~T(?=\\s|$)", content: "([\\w\\W]+?)" }) : Oge(Oge({}, l), {}, { begin: "(^|[^\\\\])\\~T\\~T", end: "\\~T\\~T", content: "([\\w\\W]+?)" })).reg = new RegExp(l.begin + l.content + l.end, "g"), l; + } }]), o; +}(); +function ygn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui($_t, "HOOK_NAME", "strikethrough"); +var U_t = function(r) { + ja(o, Sg); + var i = ygn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "toHtml", value: function(l, f, g) { + var A; + return At(A = "".concat(f, "")).call(A, g, ""); + } }, { key: "makeHtml", value: function(l) { + return Bg() ? l.replace(this.RULE.reg, this.toHtml) : G9(l, this.RULE.reg, this.toHtml, !0, 1); + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(U_t, "HOOK_NAME", "sup"); +var H_t = function(r) { + ja(o, Sg); + var i = wgn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "toHtml", value: function(l, f, g) { + var A; + return At(A = "".concat(f, "")).call(A, g, ""); + } }, { key: "makeHtml", value: function(l) { + return Bg() ? l.replace(this.RULE.reg, this.toHtml) : G9(l, this.RULE.reg, this.toHtml, !0, 1); + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? "u") + return null; + if ("currentScript" in document) + return document.currentScript; + try { + throw new Error(); + } catch (he) { + var Z = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(he.stack) || [])[1]; + if (Z) { + var R = document.getElementsByTagName("script"); + for (var J in R) + if (R[J].src == Z) + return R[J]; + } + return null; + } + }, isActive: function(Z, R, J) { + for (var he = "no-" + R; Z; ) { + var Y = Z.classList; + if (Y.contains(R)) + return !0; + if (Y.contains(he)) + return !1; + Z = Z.parentElement; + } + return !!J; + } }, languages: { plain: g, plaintext: g, text: g, txt: g, extend: function(Z, R) { + var J = A.util.clone(A.languages[Z]); + for (var he in R) + J[he] = R[he]; + return J; + }, insertBefore: function(Z, R, J, he) { + var Y = (he = he || A.languages)[Z], ue = {}; + for (var le in Y) + if (Y.hasOwnProperty(le)) { + if (le == R) + for (var be in J) + J.hasOwnProperty(be) && (ue[be] = J[be]); + J.hasOwnProperty(le) || (ue[le] = Y[le]); + } + var ke = he[Z]; + return he[Z] = ue, A.languages.DFS(A.languages, function(de, Te) { + Te === ke && de != Z && (this[de] = ue); + }), ue; + }, DFS: function Z(R, J, he, Y) { + Y = Y || {}; + var ue = A.util.objId; + for (var le in R) + if (R.hasOwnProperty(le)) { + J.call(R, le, R[le], he || le); + var be = R[le], ke = A.util.type(be); + ke !== "Object" || Y[ue(be)] ? ke !== "Array" || Y[ue(be)] || (Y[ue(be)] = !0, Z(be, J, le, Y)) : (Y[ue(be)] = !0, Z(be, J, null, Y)); + } + } }, plugins: {}, highlightAll: function(Z, R) { + A.highlightAllUnder(document, Z, R); + }, highlightAllUnder: function(Z, R, J) { + var he = { callback: J, container: Z, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' }; + A.hooks.run("before-highlightall", he), he.elements = Array.prototype.slice.apply(he.container.querySelectorAll(he.selector)), A.hooks.run("before-all-elements-highlight", he); + for (var Y, ue = 0; Y = he.elements[ue++]; ) + A.highlightElement(Y, R === !0, he.callback); + }, highlightElement: function(Z, R, J) { + var he = A.util.getLanguage(Z), Y = A.languages[he]; + A.util.setLanguage(Z, he); + var ue = Z.parentElement; + ue && ue.nodeName.toLowerCase() === "pre" && A.util.setLanguage(ue, he); + var le = { element: Z, language: he, grammar: Y, code: Z.textContent }; + function be(de) { + le.highlightedCode = de, A.hooks.run("before-insert", le), le.element.innerHTML = le.highlightedCode, A.hooks.run("after-highlight", le), A.hooks.run("complete", le), J && J.call(le.element); + } + if (A.hooks.run("before-sanity-check", le), (ue = le.element.parentElement) && ue.nodeName.toLowerCase() === "pre" && !ue.hasAttribute("tabindex") && ue.setAttribute("tabindex", "0"), !le.code) + return A.hooks.run("complete", le), void (J && J.call(le.element)); + if (A.hooks.run("before-highlight", le), le.grammar) + if (R && o.Worker) { + var ke = new Worker(A.filename); + ke.onmessage = function(de) { + be(de.data); + }, ke.postMessage(JSON.stringify({ language: le.language, code: le.code, immediateClose: !0 })); + } else + be(A.highlight(le.code, le.grammar, le.language)); + else + be(A.util.encode(le.code)); + }, highlight: function(Z, R, J) { + var he = { code: Z, grammar: R, language: J }; + if (A.hooks.run("before-tokenize", he), !he.grammar) + throw new Error('The language "' + he.language + '" has no grammar.'); + return he.tokens = A.tokenize(he.code, he.grammar), A.hooks.run("after-tokenize", he), b.stringify(A.util.encode(he.tokens), he.language); + }, tokenize: function(Z, R) { + var J = R.rest; + if (J) { + for (var he in J) + R[he] = J[he]; + delete R.rest; + } + var Y = new _(); + return T(Y, Y.head, Z), k(Z, Y, R, Y.head, 0), function(ue) { + for (var le = [], be = ue.head.next; be !== ue.tail; ) + le.push(be.value), be = be.next; + return le; + }(Y); + }, hooks: { all: {}, add: function(Z, R) { + var J = A.hooks.all; + J[Z] = J[Z] || [], J[Z].push(R); + }, run: function(Z, R) { + var J = A.hooks.all[Z]; + if (J && J.length) + for (var he, Y = 0; he = J[Y++]; ) + he(R); + } }, Token: b }; + function b(Z, R, J, he) { + this.type = Z, this.content = R, this.alias = J, this.length = 0 | (he || "").length; + } + function v(Z, R, J, he) { + Z.lastIndex = R; + var Y = Z.exec(J); + if (Y && he && Y[1]) { + var ue = Y[1].length; + Y.index += ue, Y[0] = Y[0].slice(ue); + } + return Y; + } + function k(Z, R, J, he, Y, ue) { + for (var le in J) + if (J.hasOwnProperty(le) && J[le]) { + var be = J[le]; + be = Array.isArray(be) ? be : [be]; + for (var ke = 0; ke < be.length; ++ke) { + if (ue && ue.cause == le + "," + ke) + return; + var de = be[ke], Te = de.inside, xe = !!de.lookbehind, ie = !!de.greedy, Be = de.alias; + if (ie && !de.pattern.global) { + var te = de.pattern.toString().match(/[imsuy]*$/)[0]; + de.pattern = RegExp(de.pattern.source, te + "g"); + } + for (var Me = de.pattern || de, ve = he.next, ge = Y; ve !== R.tail && !(ue && ge >= ue.reach); ge += ve.value.length, ve = ve.next) { + var Je = ve.value; + if (R.length > Z.length) + return; + if (!(Je instanceof b)) { + var ot, bt = 1; + if (ie) { + if (!(ot = v(Me, ge, Z, xe)) || ot.index >= Z.length) + break; + var gt = ot.index, je = ot.index + ot[0].length, Qe = ge; + for (Qe += ve.value.length; gt >= Qe; ) + Qe += (ve = ve.next).value.length; + if (ge = Qe -= ve.value.length, ve.value instanceof b) + continue; + for (var kt = ve; kt !== R.tail && (Qe < je || typeof kt.value == "string"); kt = kt.next) + bt++, Qe += kt.value.length; + bt--, Je = Z.slice(ge, Qe), ot.index -= ge; + } else if (!(ot = v(Me, 0, Je, xe))) + continue; + gt = ot.index; + var Wt = ot[0], jt = Je.slice(0, gt), Zn = Je.slice(gt + Wt.length), Ft = ge + Je.length; + ue && Ft > ue.reach && (ue.reach = Ft); + var wn = ve.prev; + if (jt && (wn = T(R, wn, jt), ge += jt.length), L(R, wn, bt), ve = T(R, wn, new b(le, Te ? A.tokenize(Wt, Te) : Wt, Be, Wt)), Zn && T(R, ve, Zn), bt > 1) { + var un = { cause: le + "," + ke, reach: Ft }; + k(Z, R, J, ve.prev, ge, un), ue && un.reach > ue.reach && (ue.reach = un.reach); + } + } + } + } + } + } + function _() { + var Z = { value: null, prev: null, next: null }, R = { value: null, prev: Z, next: null }; + Z.next = R, this.head = Z, this.tail = R, this.length = 0; + } + function T(Z, R, J) { + var he = R.next, Y = { value: J, prev: R, next: he }; + return R.next = Y, he.prev = Y, Z.length++, Y; + } + function L(Z, R, J) { + for (var he = R.next, Y = 0; Y < J && he !== Z.tail; Y++) + he = he.next; + R.next = he, he.prev = R, Z.length -= Y; + } + if (o.Prism = A, b.stringify = function Z(R, J) { + if (typeof R == "string") + return R; + if (Array.isArray(R)) { + var he = ""; + return R.forEach(function(ke) { + he += Z(ke, J); + }), he; + } + var Y = { type: R.type, content: Z(R.content, J), tag: "span", classes: ["token", R.type], attributes: {}, language: J }, ue = R.alias; + ue && (Array.isArray(ue) ? Array.prototype.push.apply(Y.classes, ue) : Y.classes.push(ue)), A.hooks.run("wrap", Y); + var le = ""; + for (var be in Y.attributes) + le += " " + be + '="' + (Y.attributes[be] || "").replace(/"/g, """) + '"'; + return "<" + Y.tag + ' class="' + Y.classes.join(" ") + '"' + le + ">" + Y.content + ""; + }, !o.document) + return o.addEventListener && (A.disableWorkerMessageHandler || o.addEventListener("message", function(Z) { + var R = JSON.parse(Z.data), J = R.language, he = R.code, Y = R.immediateClose; + o.postMessage(A.highlight(he, A.languages[J], J)), Y && o.close(); + }, !1)), A; + var F = A.util.currentScript(); + function U() { + A.manual || A.highlightAll(); + } + if (F && (A.filename = F.src, F.hasAttribute("data-manual") && (A.manual = !0)), !A.manual) { + var q = document.readyState; + q === "loading" || q === "interactive" && F && F.defer ? document.addEventListener("DOMContentLoaded", U) : window.requestAnimationFrame ? window.requestAnimationFrame(U) : window.setTimeout(U, 16); + } + return A; + }(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}); + r.exports && (r.exports = i), jy !== void 0 && (jy.Prism = i); +}); +function e5t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function kgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Prism.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.c = Prism.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), Prism.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), Prism.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, Prism.languages.c.string], char: Prism.languages.c.char, comment: Prism.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: Prism.languages.c } } } }), Prism.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete Prism.languages.c.boolean, function(r) { + function i(je, Qe) { + return je.replace(/<<(\d+)>>/g, function(kt, Wt) { + return "(?:" + Qe[+Wt] + ")"; + }); + } + function o(je, Qe, kt) { + return RegExp(i(je, Qe), kt || ""); + } + function l(je, Qe) { + for (var kt = 0; kt < Qe; kt++) + je = je.replace(/<>/g, function() { + return "(?:" + je + ")"; + }); + return je.replace(/<>/g, "[^\\s\\S]"); + } + var f = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", g = "class enum interface record struct", A = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)", b = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"; + function v(je) { + return "\\b(?:" + je.trim().replace(/ /g, "|") + ")\\b"; + } + var k = v(g), _ = RegExp(v(f + " " + g + " " + A + " " + b)), T = v(g + " " + A + " " + b), L = v(f + " " + g + " " + b), F = l(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source, 2), U = l(/\((?:[^()]|<>)*\)/.source, 2), q = /@?\b[A-Za-z_]\w*\b/.source, Z = i(/<<0>>(?:\s*<<1>>)?/.source, [q, F]), R = i(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [T, Z]), J = /\[\s*(?:,\s*)*\]/.source, he = i(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [R, J]), Y = i(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [F, U, J]), ue = i(/\(<<0>>+(?:,<<0>>+)+\)/.source, [Y]), le = i(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [ue, R, J]), be = { keyword: _, punctuation: /[<>()?,.:[\]]/ }, ke = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, de = /"(?:\\.|[^\\"\r\n])*"/.source, Te = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source; + r.languages.csharp = r.languages.extend("clike", { string: [{ pattern: o(/(^|[^$\\])<<0>>/.source, [Te]), lookbehind: !0, greedy: !0 }, { pattern: o(/(^|[^@$\\])<<0>>/.source, [de]), lookbehind: !0, greedy: !0 }], "class-name": [{ pattern: o(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [R]), lookbehind: !0, inside: be }, { pattern: o(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [q, le]), lookbehind: !0, inside: be }, { pattern: o(/(\busing\s+)<<0>>(?=\s*=)/.source, [q]), lookbehind: !0 }, { pattern: o(/(\b<<0>>\s+)<<1>>/.source, [k, Z]), lookbehind: !0, inside: be }, { pattern: o(/(\bcatch\s*\(\s*)<<0>>/.source, [R]), lookbehind: !0, inside: be }, { pattern: o(/(\bwhere\s+)<<0>>/.source, [q]), lookbehind: !0 }, { pattern: o(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [he]), lookbehind: !0, inside: be }, { pattern: o(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [le, L, q]), inside: be }], keyword: _, number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i, operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/, punctuation: /\?\.?|::|[{}[\];(),.:]/ }), r.languages.insertBefore("csharp", "number", { range: { pattern: /\.\./, alias: "operator" } }), r.languages.insertBefore("csharp", "punctuation", { "named-parameter": { pattern: o(/([(,]\s*)<<0>>(?=\s*:)/.source, [q]), lookbehind: !0, alias: "punctuation" } }), r.languages.insertBefore("csharp", "class-name", { namespace: { pattern: o(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [q]), lookbehind: !0, inside: { punctuation: /\./ } }, "type-expression": { pattern: o(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [U]), lookbehind: !0, alias: "class-name", inside: be }, "return-type": { pattern: o(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [le, R]), inside: be, alias: "class-name" }, "constructor-invocation": { pattern: o(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [le]), lookbehind: !0, inside: be, alias: "class-name" }, "generic-method": { pattern: o(/<<0>>\s*<<1>>(?=\s*\()/.source, [q, F]), inside: { function: o(/^<<0>>/.source, [q]), generic: { pattern: RegExp(F), alias: "class-name", inside: be } } }, "type-list": { pattern: o(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [k, Z, q, le, _.source, U, /\bnew\s*\(\s*\)/.source]), lookbehind: !0, inside: { "record-arguments": { pattern: o(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [Z, U]), lookbehind: !0, greedy: !0, inside: r.languages.csharp }, keyword: _, "class-name": { pattern: RegExp(le), greedy: !0, inside: be }, punctuation: /[,()]/ } }, preprocessor: { pattern: /(^[\t ]*)#.*/m, lookbehind: !0, alias: "property", inside: { directive: { pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/, lookbehind: !0, alias: "keyword" } } } }); + var xe = de + "|" + ke, ie = i(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [xe]), Be = l(i(/[^"'/()]|<<0>>|\(<>*\)/.source, [ie]), 2), te = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, Me = i(/<<0>>(?:\s*\(<<1>>*\))?/.source, [R, Be]); + r.languages.insertBefore("csharp", "class-name", { attribute: { pattern: o(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [te, Me]), lookbehind: !0, greedy: !0, inside: { target: { pattern: o(/^<<0>>(?=\s*:)/.source, [te]), alias: "keyword" }, "attribute-arguments": { pattern: o(/\(<<0>>*\)/.source, [Be]), inside: r.languages.csharp }, "class-name": { pattern: RegExp(R), inside: { punctuation: /\./ } }, punctuation: /[:,]/ } } }); + var ve = /:[^}\r\n]+/.source, ge = l(i(/[^"'/()]|<<0>>|\(<>*\)/.source, [ie]), 2), Je = i(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [ge, ve]), ot = l(i(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source, [xe]), 2), bt = i(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [ot, ve]); + function gt(je, Qe) { + return { interpolation: { pattern: o(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [je]), lookbehind: !0, inside: { "format-string": { pattern: o(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [Qe, ve]), lookbehind: !0, inside: { punctuation: /^:/ } }, punctuation: /^\{|\}$/, expression: { pattern: /[\s\S]+/, alias: "language-csharp", inside: r.languages.csharp } } }, string: /[\s\S]+/ }; + } + r.languages.insertBefore("csharp", "string", { "interpolation-string": [{ pattern: o(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [Je]), lookbehind: !0, greedy: !0, inside: gt(Je, ge) }, { pattern: o(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [bt]), lookbehind: !0, greedy: !0, inside: gt(bt, ot) }], char: { pattern: RegExp(ke), greedy: !0 } }), r.languages.dotnet = r.languages.cs = r.languages.csharp; +}(Prism), function(r) { + var i = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, o = /\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g, function() { + return i.source; + }); + r.languages.cpp = r.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g, function() { + return i.source; + })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: i, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), r.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /(?:\s*:\s*)?|:\s*/.source.replace(//g, function() { + return o; + }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), r.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: r.languages.cpp } } } }), r.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), r.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: r.languages.extend("cpp", {}) } }), r.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, r.languages.cpp["base-clause"]); +}(Prism), Prism.languages.markup = { comment: { pattern: //, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: //i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", function(r) { + r.type === "entity" && (r.attributes.title = r.content.replace(/&/, "&")); +}), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function(r, i) { + var o = {}; + o["language-" + i] = { pattern: /(^$)/i, lookbehind: !0, inside: Prism.languages[i] }, o.cdata = /^$/i; + var l = { "included-cdata": { pattern: //i, inside: o } }; + l["language-" + i] = { pattern: /[\s\S]+/, inside: Prism.languages[i] }; + var f = {}; + f[r] = { pattern: RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g, function() { + return r; + }), "i"), lookbehind: !0, greedy: !0, inside: l }, Prism.languages.insertBefore("markup", "cdata", f); +} }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function(r, i) { + Prism.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + r + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [i, "language-" + i], inside: Prism.languages[i] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } }); +} }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml, function(r) { + var i = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/; + r.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/, inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + i.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + i.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + i.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: i, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, r.languages.css.atrule.inside.rest = r.languages.css; + var o = r.languages.markup; + o && (o.tag.addInlined("style", "css"), o.tag.addAttribute("style", "css")); +}(Prism), function(r) { + var i = [/\b(?:async|sync|yield)\*/, /\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/], o = /(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, l = { pattern: RegExp(o + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } } } }; + r.languages.dart = r.languages.extend("clike", { "class-name": [l, { pattern: RegExp(o + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source), lookbehind: !0, inside: l.inside }], keyword: i, operator: /\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/ }), r.languages.insertBefore("dart", "string", { "string-literal": { pattern: /r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/, lookbehind: !0, inside: { punctuation: /^\$\{?|\}$/, expression: { pattern: /[\s\S]+/, inside: r.languages.dart } } }, string: /[\s\S]+/ } }, string: void 0 }), r.languages.insertBefore("dart", "class-name", { metadata: { pattern: /@\w+/, alias: "function" } }), r.languages.insertBefore("dart", "class-name", { generics: { pattern: /<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/, inside: { "class-name": l, keyword: i, punctuation: /[<>(),.:]/, operator: /[?&|]/ } } }); +}(Prism), function(r) { + r.languages.diff = { coord: [/^(?:\*{3}|-{3}|\+{3}).*$/m, /^@@.*@@$/m, /^\d.*$/m] }; + var i = { "deleted-sign": "-", "deleted-arrow": "<", "inserted-sign": "+", "inserted-arrow": ">", unchanged: " ", diff: "!" }; + Object.keys(i).forEach(function(o) { + var l = i[o], f = []; + /^\w+$/.test(o) || f.push(/\w+/.exec(o)[0]), o === "diff" && f.push("bold"), r.languages.diff[o] = { pattern: RegExp("^(?:[" + l + `].*(?:\r +?| +|(?![\\s\\S])))+`, "m"), alias: f, inside: { line: { pattern: /(.)(?=[\s\S]).*(?:\r\n?|\n)?/, lookbehind: !0 }, prefix: { pattern: /[\s\S]/, alias: /\w+/.exec(o)[0] } } }; + }), Object.defineProperty(r.languages.diff, "PREFIXES", { value: i }); +}(Prism), function(r) { + var i = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source, o = /(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g, function() { + return i; + }), l = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, f = /--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g, function() { + return l; + }), g = { pattern: RegExp(l), greedy: !0 }, A = { pattern: /(^[ \t]*)#.*/m, lookbehind: !0, greedy: !0 }; + function b(v, k) { + return v = v.replace(//g, function() { + return f; + }).replace(//g, function() { + return o; + }), RegExp(v, k); + } + r.languages.docker = { instruction: { pattern: /(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im, lookbehind: !0, greedy: !0, inside: { options: { pattern: b(/(^(?:ONBUILD)?\w+)(?:)*/.source, "i"), lookbehind: !0, greedy: !0, inside: { property: { pattern: /(^|\s)--[\w-]+/, lookbehind: !0 }, string: [g, { pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/, lookbehind: !0 }], operator: /\\$/m, punctuation: /=/ } }, keyword: [{ pattern: b(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source, "i"), lookbehind: !0, greedy: !0 }, { pattern: b(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source, "i"), lookbehind: !0, greedy: !0 }, { pattern: b(/(^ONBUILD)\w+/.source, "i"), lookbehind: !0, greedy: !0 }, { pattern: /^\w+/, greedy: !0 }], comment: A, string: g, variable: /\$(?:\w+|\{[^{}"'\\]*\})/, operator: /\\$/m } }, comment: A }, r.languages.dockerfile = r.languages.docker; +}(Prism), Prism.languages.git = { comment: /^#.*/m, deleted: /^[-–].*/m, inserted: /^\+.*/m, string: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/, command: { pattern: /^.*\$ git .*$/m, inside: { parameter: /\s--?\w+/ } }, coord: /^@@.*@@$/m, "commit-sha1": /^commit \w{40}$/m }, Prism.languages.glsl = Prism.languages.extend("c", { keyword: /\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/ }), Prism.languages.go = Prism.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), Prism.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete Prism.languages.go["class-name"], Prism.languages["go-mod"] = Prism.languages["go-module"] = { comment: { pattern: /\/\/.*/, greedy: !0 }, version: { pattern: /(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/, lookbehind: !0, alias: "number" }, "go-version": { pattern: /((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/, lookbehind: !0, alias: "number" }, keyword: { pattern: /^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m, lookbehind: !0 }, operator: /=>/, punctuation: /[()[\],]/ }, function(r) { + var i = /[*&][^\s[\]{},]+/, o = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + o.source + "(?:[ ]+" + i.source + ")?|" + i.source + "(?:[ ]+" + o.source + ")?)", f = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g, function() { + return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source; + }), g = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source; + function A(b, v) { + v = (v || "").replace(/m/g, "") + "m"; + var k = /([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g, function() { + return l; + }).replace(/<>/g, function() { + return b; + }); + return RegExp(k, v); + } + r.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g, function() { + return l; + })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g, function() { + return l; + }).replace(/<>/g, function() { + return "(?:" + f + "|" + g + ")"; + })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: A(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: A(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: A(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: A(g), lookbehind: !0, greedy: !0 }, number: { pattern: A(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: o, important: i, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, r.languages.yml = r.languages.yaml; +}(Prism), function(r) { + var i = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source; + function o(k) { + return k = k.replace(//g, function() { + return i; + }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + k + ")"); + } + var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, f = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() { + return l; + }), g = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source; + r.languages.markdown = r.languages.extend("markup", {}), r.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: r.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + f + g + "(?:" + f + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + f + g + ")(?:" + f + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: r.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + f + ")" + g + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + f + "$"), inside: { "table-header": { pattern: RegExp(l), alias: "important", inside: r.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: o(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: o(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: o(/(~~?)(?:(?!~))+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: o(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(k) { + ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(_) { + k !== _ && (r.languages.markdown[k].inside.content.inside[_] = r.languages.markdown[_]); + }); + }), r.hooks.add("after-tokenize", function(k) { + k.language !== "markdown" && k.language !== "md" || function _(T) { + if (T && typeof T != "string") + for (var L = 0, F = T.length; L < F; L++) { + var U = T[L]; + if (U.type === "code") { + var q = U.content[1], Z = U.content[3]; + if (q && Z && q.type === "code-language" && Z.type === "code-block" && typeof q.content == "string") { + var R = q.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), J = "language-" + (R = (/[a-z][\w-]*/i.exec(R) || [""])[0].toLowerCase()); + Z.alias ? typeof Z.alias == "string" ? Z.alias = [Z.alias, J] : Z.alias.push(J) : Z.alias = [J]; + } + } else + _(U.content); + } + }(k.tokens); + }), r.hooks.add("wrap", function(k) { + if (k.type === "code-block") { + for (var _ = "", T = 0, L = k.classes.length; T < L; T++) { + var F = k.classes[T], U = /language-(.+)/.exec(F); + if (U) { + _ = U[1]; + break; + } + } + var q = r.languages[_]; + if (q) + k.content = r.highlight(function(R) { + var J = R.replace(A, ""); + return J = J.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(he, Y) { + var ue; + if ((Y = Y.toLowerCase())[0] === "#") + return ue = Y[1] === "x" ? parseInt(Y.slice(2), 16) : Number(Y.slice(1)), v(ue); + var le = b[Y]; + return le || he; + }), J; + }(k.content), q, _); + else if (_ && _ !== "none" && r.plugins.autoloader) { + var Z = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()); + k.attributes.id = Z, r.plugins.autoloader.loadLanguages(_, function() { + var R = document.getElementById(Z); + R && (R.innerHTML = r.highlight(R.textContent, r.languages[_], _)); + }); + } + } + }); + var A = RegExp(r.languages.markup.tag.pattern.source, "gi"), b = { amp: "&", lt: "<", gt: ">", quot: '"' }, v = String.fromCodePoint || String.fromCharCode; + r.languages.md = r.languages.markdown; +}(Prism), Prism.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: Prism.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, Prism.hooks.add("after-tokenize", function(r) { + if (r.language === "graphql") + for (var i = r.tokens.filter(function(U) { + return typeof U != "string" && U.type !== "comment" && U.type !== "scalar"; + }), o = 0; o < i.length; ) { + var l = i[o++]; + if (l.type === "keyword" && l.content === "mutation") { + var f = []; + if (T(["definition-mutation", "punctuation"]) && _(1).content === "(") { + o += 2; + var g = L(/^\($/, /^\)$/); + if (g === -1) + continue; + for (; o < g; o++) { + var A = _(0); + A.type === "variable" && (F(A, "variable-input"), f.push(A.content)); + } + o = g + 1; + } + if (T(["punctuation", "property-query"]) && _(0).content === "{" && (o++, F(_(0), "property-mutation"), f.length > 0)) { + var b = L(/^\{$/, /^\}$/); + if (b === -1) + continue; + for (var v = o; v < b; v++) { + var k = i[v]; + k.type === "variable" && f.indexOf(k.content) >= 0 && F(k, "variable-input"); + } + } + } + } + function _(U) { + return i[o + U]; + } + function T(U, q) { + q = q || 0; + for (var Z = 0; Z < U.length; Z++) { + var R = _(Z + q); + if (!R || R.type !== U[Z]) + return !1; + } + return !0; + } + function L(U, q) { + for (var Z = 1, R = o; R < i.length; R++) { + var J = i[R], he = J.content; + if (J.type === "punctuation" && typeof he == "string") { + if (U.test(he)) + Z++; + else if (q.test(he) && --Z === 0) + return R; + } + } + return -1; + } + function F(U, q) { + var Z = U.alias; + Z ? Array.isArray(Z) || (U.alias = Z = [Z]) : U.alias = Z = [], Z.push(q); + } +}), function(r) { + r.languages.ruby = r.languages.extend("clike", { comment: { pattern: /#.*|^=begin\s[\s\S]*?^=end/m, greedy: !0 }, "class-name": { pattern: /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/, operator: /\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/, punctuation: /[(){}[\].,;]/ }), r.languages.insertBefore("ruby", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }); + var i = { pattern: /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/, lookbehind: !0, inside: { content: { pattern: /^(#\{)[\s\S]+(?=\}$)/, lookbehind: !0, inside: r.languages.ruby }, delimiter: { pattern: /^#\{|\}$/, alias: "punctuation" } } }; + delete r.languages.ruby.function; + var o = "(?:" + [/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source, /\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source, /\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source, /\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source, /<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|") + ")", l = /(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source; + r.languages.insertBefore("ruby", "keyword", { "regex-literal": [{ pattern: RegExp(/%r/.source + o + /[egimnosux]{0,6}/.source), greedy: !0, inside: { interpolation: i, regex: /[\s\S]+/ } }, { pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/, lookbehind: !0, greedy: !0, inside: { interpolation: i, regex: /[\s\S]+/ } }], variable: /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/, symbol: [{ pattern: RegExp(/(^|[^:]):/.source + l), lookbehind: !0, greedy: !0 }, { pattern: RegExp(/([\r\n{(,][ \t]*)/.source + l + /(?=:(?!:))/.source), lookbehind: !0, greedy: !0 }], "method-definition": { pattern: /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/, lookbehind: !0, inside: { function: /\b\w+$/, keyword: /^self\b/, "class-name": /^\w+/, punctuation: /\./ } } }), r.languages.insertBefore("ruby", "string", { "string-literal": [{ pattern: RegExp(/%[qQiIwWs]?/.source + o), greedy: !0, inside: { interpolation: i, string: /[\s\S]+/ } }, { pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/, greedy: !0, inside: { interpolation: i, string: /[\s\S]+/ } }, { pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i, alias: "heredoc-string", greedy: !0, inside: { delimiter: { pattern: /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i, inside: { symbol: /\b\w+/, punctuation: /^<<[-~]?/ } }, interpolation: i, string: /[\s\S]+/ } }, { pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i, alias: "heredoc-string", greedy: !0, inside: { delimiter: { pattern: /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i, inside: { symbol: /\b\w+/, punctuation: /^<<[-~]?'|'$/ } }, string: /[\s\S]+/ } }], "command-literal": [{ pattern: RegExp(/%x/.source + o), greedy: !0, inside: { interpolation: i, command: { pattern: /[\s\S]+/, alias: "string" } } }, { pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/, greedy: !0, inside: { interpolation: i, command: { pattern: /[\s\S]+/, alias: "string" } } }] }), delete r.languages.ruby.string, r.languages.insertBefore("ruby", "number", { builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/, constant: /\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/ }), r.languages.rb = r.languages.ruby; +}(Prism), function(r) { + var i = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, o = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, l = "(?:[^\\\\-]|" + o.source + ")", f = RegExp(l + "-" + l), g = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" }; + r.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: f, inside: { escape: o, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": i, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: o } }, "special-escape": i, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": g } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: o, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: Prism.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: Prism.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), Prism.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: Prism.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), Prism.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), Prism.languages.js = Prism.languages.javascript, function(r) { + function i(o, l) { + return "___" + o.toUpperCase() + l + "___"; + } + Object.defineProperties(r.languages["markup-templating"] = {}, { buildPlaceholders: { value: function(o, l, f, g) { + if (o.language === l) { + var A = o.tokenStack = []; + o.code = o.code.replace(f, function(b) { + if (typeof g == "function" && !g(b)) + return b; + for (var v, k = A.length; o.code.indexOf(v = i(l, k)) !== -1; ) + ++k; + return A[k] = b, v; + }), o.grammar = r.languages.markup; + } + } }, tokenizePlaceholders: { value: function(o, l) { + if (o.language === l && o.tokenStack) { + o.grammar = r.languages[l]; + var f = 0, g = Object.keys(o.tokenStack); + (function A(b) { + for (var v = 0; v < b.length && !(f >= g.length); v++) { + var k = b[v]; + if (typeof k == "string" || k.content && typeof k.content == "string") { + var _ = g[f], T = o.tokenStack[_], L = typeof k == "string" ? k : k.content, F = i(l, _), U = L.indexOf(F); + if (U > -1) { + ++f; + var q = L.substring(0, U), Z = new r.Token(l, r.tokenize(T, o.grammar), "language-" + l, T), R = L.substring(U + F.length), J = []; + q && J.push.apply(J, A([q])), J.push(Z), R && J.push.apply(J, A([R])), typeof k == "string" ? b.splice.apply(b, [v, 1].concat(J)) : k.content = J; + } + } else + k.content && A(k.content); + } + return b; + })(o.tokens); + } + } } }); +}(Prism), Prism.languages.less = Prism.languages.extend("css", { comment: [/\/\*[\s\S]*?\*\//, { pattern: /(^|[^\\])\/\/.*/, lookbehind: !0 }], atrule: { pattern: /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/, inside: { punctuation: /[:()]/ } }, selector: { pattern: /(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/, inside: { variable: /@+[\w-]+/ } }, property: /(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/, operator: /[+\-*\/]/ }), Prism.languages.insertBefore("less", "property", { variable: [{ pattern: /@[\w-]+\s*:/, inside: { punctuation: /:/ } }, /@@?[\w-]+/], "mixin-usage": { pattern: /([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/, lookbehind: !0, alias: "function" } }), Prism.languages.scss = Prism.languages.extend("css", { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/, lookbehind: !0 }, atrule: { pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/, inside: { rule: /@[\w-]+/ } }, url: /(?:[-a-z]+-)?url(?=\()/i, selector: { pattern: /(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/, inside: { parent: { pattern: /&/, alias: "important" }, placeholder: /%[-\w]+/, variable: /\$[-\w]+|#\{\$[-\w]+\}/ } }, property: { pattern: /(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/, inside: { variable: /\$[-\w]+|#\{\$[-\w]+\}/ } } }), Prism.languages.insertBefore("scss", "atrule", { keyword: [/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i, { pattern: /( )(?:from|through)(?= )/, lookbehind: !0 }] }), Prism.languages.insertBefore("scss", "important", { variable: /\$[-\w]+|#\{\$[-\w]+\}/ }), Prism.languages.insertBefore("scss", "function", { "module-modifier": { pattern: /\b(?:as|hide|show|with)\b/i, alias: "keyword" }, placeholder: { pattern: /%[-\w]+/, alias: "selector" }, statement: { pattern: /\B!(?:default|optional)\b/i, alias: "keyword" }, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" }, operator: { pattern: /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/, lookbehind: !0 } }), Prism.languages.scss.atrule.inside.rest = Prism.languages.scss, function(r) { + r.languages.haml = { "multiline-comment": { pattern: /((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/, lookbehind: !0, alias: "comment" }, "multiline-code": [{ pattern: /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/, lookbehind: !0, inside: r.languages.ruby }, { pattern: /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/, lookbehind: !0, inside: r.languages.ruby }], filter: { pattern: /((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/, lookbehind: !0, inside: { "filter-name": { pattern: /^:[\w-]+/, alias: "symbol" } } }, markup: { pattern: /((?:^|\r?\n|\r)[\t ]*)<.+/, lookbehind: !0, inside: r.languages.markup }, doctype: { pattern: /((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/, lookbehind: !0 }, tag: { pattern: /((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/, lookbehind: !0, inside: { attributes: [{ pattern: /(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/, lookbehind: !0, inside: r.languages.ruby }, { pattern: /\([^)]+\)/, inside: { "attr-value": { pattern: /(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/, lookbehind: !0 }, "attr-name": /[\w:-]+(?=\s*!?=|\s*[,)])/, punctuation: /[=(),]/ } }, { pattern: /\[[^\]]+\]/, inside: r.languages.ruby }], punctuation: /[<>]/ } }, code: { pattern: /((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/, lookbehind: !0, inside: r.languages.ruby }, interpolation: { pattern: /#\{[^}]+\}/, inside: { delimiter: { pattern: /^#\{|\}$/, alias: "punctuation" }, ruby: { pattern: /[\s\S]+/, inside: r.languages.ruby } } }, punctuation: { pattern: /((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/, lookbehind: !0 } }; + for (var i = ["css", { filter: "coffee", language: "coffeescript" }, "erb", "javascript", "less", "markdown", "ruby", "scss", "textile"], o = {}, l = 0, f = i.length; l < f; l++) { + var g = i[l]; + g = typeof g == "string" ? { filter: g, language: g } : g, r.languages[g.language] && (o["filter-" + g.filter] = { pattern: RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}", function() { + return g.filter; + })), lookbehind: !0, inside: { "filter-name": { pattern: /^:[\w-]+/, alias: "symbol" }, text: { pattern: /[\s\S]+/, alias: [g.language, "language-" + g.language], inside: r.languages[g.language] } } }); + } + r.languages.insertBefore("haml", "filter", o); +}(Prism), Prism.languages.ini = { comment: { pattern: /(^[ \f\t\v]*)[#;][^\n\r]*/m, lookbehind: !0 }, section: { pattern: /(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m, lookbehind: !0, inside: { "section-name": { pattern: /(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/, lookbehind: !0, alias: "selector" }, punctuation: /\[|\]/ } }, key: { pattern: /(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m, lookbehind: !0, alias: "attr-name" }, value: { pattern: /(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/, lookbehind: !0, alias: "attr-value", inside: { "inner-value": { pattern: /^("|').+(?=\1$)/, lookbehind: !0 } } }, punctuation: /=/ }, function(r) { + var i = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, o = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, l = { pattern: RegExp(/(^|[^\w.])/.source + o + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } }; + r.languages.java = r.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/, lookbehind: !0, greedy: !0 }, "class-name": [l, { pattern: RegExp(/(^|[^\w.])/.source + o + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source), lookbehind: !0, inside: l.inside }, { pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + o + /[A-Z]\w*\b/.source), lookbehind: !0, inside: l.inside }], keyword: i, function: [r.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: !0 } }), r.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: !0, alias: "string" }, char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 } }), r.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: !0, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": l, keyword: i, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, import: [{ pattern: RegExp(/(\bimport\s+)/.source + o + /(?:[A-Z]\w*|\*)(?=\s*;)/.source), lookbehind: !0, inside: { namespace: l.inside.namespace, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }, { pattern: RegExp(/(\bimport\s+static\s+)/.source + o + /(?:\w+|\*)(?=\s*;)/.source), lookbehind: !0, alias: "static", inside: { namespace: l.inside.namespace, static: /\b\w+$/, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }], namespace: { pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g, function() { + return i.source; + })), lookbehind: !0, inside: { punctuation: /\./ } } }); +}(Prism), Prism.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, Prism.languages.webmanifest = Prism.languages.json, function(r) { + var i = /("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/; + r.languages.json5 = r.languages.extend("json", { property: [{ pattern: RegExp(i.source + "(?=\\s*:)"), greedy: !0 }, { pattern: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/, alias: "unquoted" }], string: { pattern: i, greedy: !0 }, number: /[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/ }); +}(Prism), Prism.languages.lua = { comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m, string: { pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/, greedy: !0 }, number: /\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i, keyword: /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/, function: /(?!\d)\w+(?=\s*(?:[({]))/, operator: [/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/, { pattern: /(^|[^.])\.\.(?!\.)/, lookbehind: !0 }], punctuation: /[\[\](){},;]|\.+|:+/ }, Prism.languages.matlab = { comment: [/%\{[\s\S]*?\}%/, /%.+/], string: { pattern: /\B'(?:''|[^'\r\n])*'/, greedy: !0 }, number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/, keyword: /\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/, function: /\b(?!\d)\w+(?=\s*\()/, operator: /\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/, punctuation: /\.{3}|[.,;\[\](){}!]/ }, function(r) { + var i = ["$eq", "$gt", "$gte", "$in", "$lt", "$lte", "$ne", "$nin", "$and", "$not", "$nor", "$or", "$exists", "$type", "$expr", "$jsonSchema", "$mod", "$regex", "$text", "$where", "$geoIntersects", "$geoWithin", "$near", "$nearSphere", "$all", "$elemMatch", "$size", "$bitsAllClear", "$bitsAllSet", "$bitsAnyClear", "$bitsAnySet", "$comment", "$elemMatch", "$meta", "$slice", "$currentDate", "$inc", "$min", "$max", "$mul", "$rename", "$set", "$setOnInsert", "$unset", "$addToSet", "$pop", "$pull", "$push", "$pullAll", "$each", "$position", "$slice", "$sort", "$bit", "$addFields", "$bucket", "$bucketAuto", "$collStats", "$count", "$currentOp", "$facet", "$geoNear", "$graphLookup", "$group", "$indexStats", "$limit", "$listLocalSessions", "$listSessions", "$lookup", "$match", "$merge", "$out", "$planCacheStats", "$project", "$redact", "$replaceRoot", "$replaceWith", "$sample", "$set", "$skip", "$sort", "$sortByCount", "$unionWith", "$unset", "$unwind", "$setWindowFields", "$abs", "$accumulator", "$acos", "$acosh", "$add", "$addToSet", "$allElementsTrue", "$and", "$anyElementTrue", "$arrayElemAt", "$arrayToObject", "$asin", "$asinh", "$atan", "$atan2", "$atanh", "$avg", "$binarySize", "$bsonSize", "$ceil", "$cmp", "$concat", "$concatArrays", "$cond", "$convert", "$cos", "$dateFromParts", "$dateToParts", "$dateFromString", "$dateToString", "$dayOfMonth", "$dayOfWeek", "$dayOfYear", "$degreesToRadians", "$divide", "$eq", "$exp", "$filter", "$first", "$floor", "$function", "$gt", "$gte", "$hour", "$ifNull", "$in", "$indexOfArray", "$indexOfBytes", "$indexOfCP", "$isArray", "$isNumber", "$isoDayOfWeek", "$isoWeek", "$isoWeekYear", "$last", "$last", "$let", "$literal", "$ln", "$log", "$log10", "$lt", "$lte", "$ltrim", "$map", "$max", "$mergeObjects", "$meta", "$min", "$millisecond", "$minute", "$mod", "$month", "$multiply", "$ne", "$not", "$objectToArray", "$or", "$pow", "$push", "$radiansToDegrees", "$range", "$reduce", "$regexFind", "$regexFindAll", "$regexMatch", "$replaceOne", "$replaceAll", "$reverseArray", "$round", "$rtrim", "$second", "$setDifference", "$setEquals", "$setIntersection", "$setIsSubset", "$setUnion", "$size", "$sin", "$slice", "$split", "$sqrt", "$stdDevPop", "$stdDevSamp", "$strcasecmp", "$strLenBytes", "$strLenCP", "$substr", "$substrBytes", "$substrCP", "$subtract", "$sum", "$switch", "$tan", "$toBool", "$toDate", "$toDecimal", "$toDouble", "$toInt", "$toLong", "$toObjectId", "$toString", "$toLower", "$toUpper", "$trim", "$trunc", "$type", "$week", "$year", "$zip", "$count", "$dateAdd", "$dateDiff", "$dateSubtract", "$dateTrunc", "$getField", "$rand", "$sampleRate", "$setField", "$unsetField", "$comment", "$explain", "$hint", "$max", "$maxTimeMS", "$min", "$orderby", "$query", "$returnKey", "$showDiskLoc", "$natural"], o = "(?:" + (i = i.map(function(l) { + return l.replace("$", "\\$"); + })).join("|") + ")\\b"; + r.languages.mongodb = r.languages.extend("javascript", {}), r.languages.insertBefore("mongodb", "string", { property: { pattern: /(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/, greedy: !0, inside: { keyword: RegExp(`^(['"])?` + o + "(?:\\1)?$") } } }), r.languages.mongodb.string.inside = { url: { pattern: /https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i, greedy: !0 }, entity: { pattern: /\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/, greedy: !0 } }, r.languages.insertBefore("mongodb", "constant", { builtin: { pattern: RegExp("\\b(?:" + ["ObjectId", "Code", "BinData", "DBRef", "Timestamp", "NumberLong", "NumberDecimal", "MaxKey", "MinKey", "RegExp", "ISODate", "UUID"].join("|") + ")\\b"), alias: "keyword" } }); +}(Prism), function(r) { + var i = /\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i; + r.languages.nginx = { comment: { pattern: /(^|[\s{};])#.*/, lookbehind: !0, greedy: !0 }, directive: { pattern: /(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: { string: { pattern: /((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/, lookbehind: !0, greedy: !0, inside: { escape: { pattern: /\\["'\\nrt]/, alias: "entity" }, variable: i } }, comment: { pattern: /(\s)#.*/, lookbehind: !0, greedy: !0 }, keyword: { pattern: /^\S+/, greedy: !0 }, boolean: { pattern: /(\s)(?:off|on)(?!\S)/, lookbehind: !0 }, number: { pattern: /(\s)\d+[a-z]*(?!\S)/i, lookbehind: !0 }, variable: i } }, punctuation: /[{};]/ }; +}(Prism), Prism.languages.objectivec = Prism.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete Prism.languages.objectivec["class-name"], Prism.languages.objc = Prism.languages.objectivec, Prism.languages.pascal = { directive: { pattern: /\{\$[\s\S]*?\}/, greedy: !0, alias: ["marco", "property"] }, comment: { pattern: /\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/, greedy: !0 }, string: { pattern: /(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i, greedy: !0 }, asm: { pattern: /(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i, lookbehind: !0, greedy: !0, inside: null }, keyword: [{ pattern: /(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i, lookbehind: !0 }, { pattern: /(^|[^&])\b(?:dispose|exit|false|new|true)\b/i, lookbehind: !0 }, { pattern: /(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i, lookbehind: !0 }, { pattern: /(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i, lookbehind: !0 }], number: [/(?:[&%]\d+|\$[a-f\d]+)/i, /\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i], operator: [/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/, { pattern: /(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/, lookbehind: !0 }], punctuation: /\(\.|\.\)|[()\[\]:;,.]/ }, Prism.languages.pascal.asm.inside = Prism.languages.extend("pascal", { asm: void 0, keyword: void 0, operator: void 0 }), Prism.languages.objectpascal = Prism.languages.pascal, function(r) { + var i = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, o = [{ pattern: /\b(?:false|true)\b/i, alias: "boolean" }, { pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i, greedy: !0, lookbehind: !0 }, { pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i, greedy: !0, lookbehind: !0 }, /\b(?:null)\b/i, /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/], l = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, f = /|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/, g = /[{}\[\](),:;]/; + r.languages.php = { delimiter: { pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i, alias: "important" }, comment: i, variable: /\$+(?:\w+\b|(?=\{))/, package: { pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, lookbehind: !0, inside: { punctuation: /\\/ } }, "class-name-definition": { pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i, lookbehind: !0, alias: "class-name" }, "function-definition": { pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i, lookbehind: !0, alias: "function" }, keyword: [{ pattern: /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i, alias: "type-casting", greedy: !0, lookbehind: !0 }, { pattern: /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i, alias: "type-hint", greedy: !0, lookbehind: !0 }, { pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i, alias: "return-type", greedy: !0, lookbehind: !0 }, { pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i, alias: "type-declaration", greedy: !0 }, { pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i, alias: "type-declaration", greedy: !0, lookbehind: !0 }, { pattern: /\b(?:parent|self|static)(?=\s*::)/i, alias: "static-context", greedy: !0 }, { pattern: /(\byield\s+)from\b/i, lookbehind: !0 }, /\bclass\b/i, { pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i, lookbehind: !0 }], "argument-name": { pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i, lookbehind: !0 }, "class-name": [{ pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i, greedy: !0, lookbehind: !0 }, { pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i, greedy: !0, lookbehind: !0 }, { pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i, greedy: !0 }, { pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i, alias: "class-name-fully-qualified", greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }, { pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i, alias: "class-name-fully-qualified", greedy: !0, inside: { punctuation: /\\/ } }, { pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, alias: "class-name-fully-qualified", greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }, { pattern: /\b[a-z_]\w*(?=\s*\$)/i, alias: "type-declaration", greedy: !0 }, { pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i, alias: ["class-name-fully-qualified", "type-declaration"], greedy: !0, inside: { punctuation: /\\/ } }, { pattern: /\b[a-z_]\w*(?=\s*::)/i, alias: "static-context", greedy: !0 }, { pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i, alias: ["class-name-fully-qualified", "static-context"], greedy: !0, inside: { punctuation: /\\/ } }, { pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i, alias: "type-hint", greedy: !0, lookbehind: !0 }, { pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i, alias: ["class-name-fully-qualified", "type-hint"], greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }, { pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i, alias: "return-type", greedy: !0, lookbehind: !0 }, { pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, alias: ["class-name-fully-qualified", "return-type"], greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }], constant: o, function: { pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i, lookbehind: !0, inside: { punctuation: /\\/ } }, property: { pattern: /(->\s*)\w+/, lookbehind: !0 }, number: l, operator: f, punctuation: g }; + var A = { pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/, lookbehind: !0, inside: r.languages.php }, b = [{ pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/, alias: "nowdoc-string", greedy: !0, inside: { delimiter: { pattern: /^<<<'[^']+'|[a-z_]\w*;$/i, alias: "symbol", inside: { punctuation: /^<<<'?|[';]$/ } } } }, { pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i, alias: "heredoc-string", greedy: !0, inside: { delimiter: { pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i, alias: "symbol", inside: { punctuation: /^<<<"?|[";]$/ } }, interpolation: A } }, { pattern: /`(?:\\[\s\S]|[^\\`])*`/, alias: "backtick-quoted-string", greedy: !0 }, { pattern: /'(?:\\[\s\S]|[^\\'])*'/, alias: "single-quoted-string", greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, alias: "double-quoted-string", greedy: !0, inside: { interpolation: A } }]; + r.languages.insertBefore("php", "variable", { string: b, attribute: { pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im, greedy: !0, inside: { "attribute-content": { pattern: /^(#\[)[\s\S]+(?=\]$)/, lookbehind: !0, inside: { comment: i, string: b, "attribute-class-name": [{ pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i, alias: "class-name", greedy: !0, lookbehind: !0 }, { pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i, alias: ["class-name", "class-name-fully-qualified"], greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }], constant: o, number: l, operator: f, punctuation: g } }, delimiter: { pattern: /^#\[|\]$/, alias: "punctuation" } } } }), r.hooks.add("before-tokenize", function(v) { + /<\?/.test(v.code) && r.languages["markup-templating"].buildPlaceholders(v, "php", /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g); + }), r.hooks.add("after-tokenize", function(v) { + r.languages["markup-templating"].tokenizePlaceholders(v, "php"); + }); +}(Prism), function(r) { + var i = /\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/; + r.languages.protobuf = r.languages.extend("clike", { "class-name": [{ pattern: /(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/, lookbehind: !0 }, { pattern: /(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/, lookbehind: !0 }], keyword: /\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/, function: /\b[a-z_]\w*(?=\s*\()/i }), r.languages.insertBefore("protobuf", "operator", { map: { pattern: /\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i, alias: "class-name", inside: { punctuation: /[<>.,]/, builtin: i } }, builtin: i, "positional-class-name": { pattern: /(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i, alias: "class-name", inside: { punctuation: /\./ } }, annotation: { pattern: /(\[\s*)[a-z_]\w*(?=\s*=)/i, lookbehind: !0 } }); +}(Prism), Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, Prism.languages.r = { comment: /#.*/, string: { pattern: /(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "percent-operator": { pattern: /%[^%\s]*%/, alias: "operator" }, boolean: /\b(?:FALSE|TRUE)\b/, ellipsis: /\.\.(?:\.|\d+)/, number: [/\b(?:Inf|NaN)\b/, /(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/], keyword: /\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/, operator: /->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/, punctuation: /[(){}\[\],;]/ }, function(r) { + for (var i = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source, o = 0; o < 2; o++) + i = i.replace(//g, function() { + return i; + }); + i = i.replace(//g, function() { + return /[^\s\S]/.source; + }), r.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + i), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/ }, r.languages.rust["closure-params"].inside.rest = r.languages.rust, r.languages.rust.attribute.inside.string = r.languages.rust.string; +}(Prism), Prism.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(r) { + r.languages.typescript = r.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete r.languages.typescript.parameter, delete r.languages.typescript["literal-property"]; + var i = r.languages.extend("typescript", {}); + delete i["class-name"], r.languages.typescript["class-name"].inside = i, r.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: i } } } }), r.languages.ts = r.languages.typescript; +}(Prism), function(r) { + var i = r.util.clone(r.languages.javascript), o = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, f = /(?:\{*\.{3}(?:[^{}]|)*\})/.source; + function g(v, k) { + return v = v.replace(//g, function() { + return o; + }).replace(//g, function() { + return l; + }).replace(//g, function() { + return f; + }), RegExp(v, k); + } + f = g(f).source, r.languages.jsx = r.languages.extend("markup", i), r.languages.jsx.tag.pattern = g(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source), r.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, r.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, r.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, r.languages.jsx.tag.inside.comment = i.comment, r.languages.insertBefore("inside", "attr-name", { spread: { pattern: g(//.source), inside: r.languages.jsx } }, r.languages.jsx.tag), r.languages.insertBefore("inside", "special-attr", { script: { pattern: g(/=/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: r.languages.jsx } } }, r.languages.jsx.tag); + var A = function(v) { + return v ? typeof v == "string" ? v : typeof v.content == "string" ? v.content : v.content.map(A).join("") : ""; + }, b = function(v) { + for (var k = [], _ = 0; _ < v.length; _++) { + var T = v[_], L = !1; + if (typeof T != "string" && (T.type === "tag" && T.content[0] && T.content[0].type === "tag" ? T.content[0].content[0].content === " 0 && k[k.length - 1].tagName === A(T.content[0].content[1]) && k.pop() : T.content[T.content.length - 1].content === "/>" || k.push({ tagName: A(T.content[0].content[1]), openedBraces: 0 }) : k.length > 0 && T.type === "punctuation" && T.content === "{" ? k[k.length - 1].openedBraces++ : k.length > 0 && k[k.length - 1].openedBraces > 0 && T.type === "punctuation" && T.content === "}" ? k[k.length - 1].openedBraces-- : L = !0), (L || typeof T == "string") && k.length > 0 && k[k.length - 1].openedBraces === 0) { + var F = A(T); + _ < v.length - 1 && (typeof v[_ + 1] == "string" || v[_ + 1].type === "plain-text") && (F += A(v[_ + 1]), v.splice(_ + 1, 1)), _ > 0 && (typeof v[_ - 1] == "string" || v[_ - 1].type === "plain-text") && (F = A(v[_ - 1]) + F, v.splice(_ - 1, 1), _--), v[_] = new r.Token("plain-text", F, null, F); + } + T.content && typeof T.content != "string" && b(T.content); + } + }; + r.hooks.add("after-tokenize", function(v) { + v.language !== "jsx" && v.language !== "tsx" || b(v.tokens); + }); +}(Prism), function(r) { + var i = r.util.clone(r.languages.typescript); + r.languages.tsx = r.languages.extend("jsx", i), delete r.languages.tsx.parameter, delete r.languages.tsx["literal-property"]; + var o = r.languages.tsx.tag; + o.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + o.pattern.source + ")", o.pattern.flags), o.lookbehind = !0; +}(Prism), function(r) { + r.languages.sass = r.languages.extend("css", { comment: { pattern: /^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m, lookbehind: !0, greedy: !0 } }), r.languages.insertBefore("sass", "atrule", { "atrule-line": { pattern: /^(?:[ \t]*)[@+=].+/m, greedy: !0, inside: { atrule: /(?:@[\w-]+|[+=])/ } } }), delete r.languages.sass.atrule; + var i = /\$[-\w]+|#\{\$[-\w]+\}/, o = [/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/, { pattern: /(\s)-(?=\s)/, lookbehind: !0 }]; + r.languages.insertBefore("sass", "property", { "variable-line": { pattern: /^[ \t]*\$.+/m, greedy: !0, inside: { punctuation: /:/, variable: i, operator: o } }, "property-line": { pattern: /^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m, greedy: !0, inside: { property: [/[^:\s]+(?=\s*:)/, { pattern: /(:)[^:\s]+/, lookbehind: !0 }], punctuation: /:/, variable: i, operator: o, important: r.languages.sass.important } } }), delete r.languages.sass.property, delete r.languages.sass.important, r.languages.insertBefore("sass", "punctuation", { selector: { pattern: /^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m, lookbehind: !0, greedy: !0 } }); +}(Prism), function(r) { + var i = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", o = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, alias: "punctuation", inside: null }, l = { bash: o, environment: { pattern: RegExp("\\$" + i), alias: "constant" }, variable: [{ pattern: /\$?\(\([\s\S]+?\)\)/, greedy: !0, inside: { variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, /^\$\(\(/], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/ } }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: !0, inside: { variable: /^\$\(|^`|\)$|`$/ } }, { pattern: /\$\{[^}]+\}/, greedy: !0, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + i), lookbehind: !0, alias: "constant" } } }, /\$(?:\w+|[#?*!@$])/], entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/ }; + r.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, "function-name": [{ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: !0, alias: "function" }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: !0 }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + i), lookbehind: !0, alias: "constant" } }, alias: "variable", lookbehind: !0 }, string: [{ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: !0, greedy: !0, inside: l }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: !0, greedy: !0, inside: { bash: o } }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: !0, greedy: !0, inside: l }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: !0, inside: { entity: l.entity } }], environment: { pattern: RegExp("\\$?" + i), alias: "constant" }, variable: l.variable, function: { pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/, lookbehind: !0 }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, lookbehind: !0 }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, lookbehind: !0, alias: "class-name" }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, lookbehind: !0 }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" } } }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0 } }, o.inside = r.languages.bash; + for (var f = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], g = l.variable[1].inside, A = 0; A < f.length; A++) + g[f[A]] = r.languages.bash[f[A]]; + r.languages.shell = r.languages.bash; +}(Prism), Prism.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, Prism.languages.swift["string-literal"].forEach(function(r) { + r.inside.interpolation.inside = Prism.languages.swift; +}), Prism.languages["visual-basic"] = { comment: { pattern: /(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i, inside: { keyword: /^REM/i } }, directive: { pattern: /#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i, alias: "property", greedy: !0 }, string: { pattern: /\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i, greedy: !0 }, date: { pattern: /#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i, alias: "number" }, number: /(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i, boolean: /\b(?:False|Nothing|True)\b/i, keyword: /\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i, operator: /[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/, punctuation: /[{}().,:?]/ }, Prism.languages.vb = Prism.languages["visual-basic"], Prism.languages.vba = Prism.languages["visual-basic"], Prism.languages.wasm = { comment: [/\(;[\s\S]*?;\)/, { pattern: /;;.*/, greedy: !0 }], string: { pattern: /"(?:\\[\s\S]|[^"\\])*"/, greedy: !0 }, keyword: [{ pattern: /\b(?:align|offset)=/, inside: { operator: /=/ } }, { pattern: /\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/, inside: { punctuation: /\./ } }, /\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/], variable: /\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/, number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/, punctuation: /[()]/ }, Lpe.manual = !0; +var xgn = { figure: "figure" }, vG = function(r) { + ja(o, r0); + var i = kgn(o); + function o(l) { + var f; + l.externals; + var g, A = l.config; + return vi(this, o), f = i.call(this, { needCache: !0 }), o.inlineCodeCache = {}, f.codeCache = {}, f.customLang = [], f.customParser = {}, f.wrap = A.wrap, f.lineNumber = A.lineNumber, f.copyCode = A.copyCode, f.editCode = A.editCode, f.changeLang = A.changeLang, f.mermaid = A.mermaid, f.indentedCodeBlock = A.indentedCodeBlock === void 0 || A.indentedCodeBlock, f.INLINE_CODE_REGEX = /(`+)(.+?(?:\n.+?)*?)\1/g, A && A.customRenderer && (f.customLang = Zs(g = yh(A.customRenderer)).call(g, function(b) { + return b.toLowerCase(); + }), f.customParser = function(b) { + for (var v = 1; v < arguments.length; v++) { + var k, _, T = arguments[v] != null ? arguments[v] : {}; + v % 2 ? no(k = e5t(Object(T), !0)).call(k, function(L) { + Ui(b, L, T[L]); + }) : i0 ? uC(b, i0(T)) : no(_ = e5t(Object(T))).call(_, function(L) { + C3(b, L, o0(T, L)); + }); + } + return b; + }({}, A.customRenderer)), f.customHighlighter = A.highlighter, f; + } + return yi(o, [{ key: "$codeCache", value: function(l, f) { + return l && f && (this.codeCache[l] = f), this.codeCache[l] ? this.codeCache[l] : (this.codeCache.length > 40 && (this.codeCache.length = 0), !1); + } }, { key: "parseCustomLanguage", value: function(l, f, g) { + var A, b, v, k, _, T = this.customParser[l]; + if (!T || typeof T.render != "function") + return !1; + var L = T.render(f, g.sign, this.$engine, this.mermaid); + if (!L) + return !1; + var F = xgn[T.constructor.TYPE] || "div"; + return At(A = At(b = At(v = At(k = At(_ = "<".concat(F, ' data-sign="')).call(_, g.sign, '" data-type="')).call(k, l, '" data-lines="')).call(v, g.lines, '">')).call(b, L, ""); + } }, { key: "fillTag", value: function(l) { + var f = []; + return Zs(l).call(l, function(g) { + if (!g) + return ""; + for (var A = g; f.length; ) { + var b, v = f.pop(); + A = At(b = "".concat(v)).call(b, A); + } + var k = A.match(/|<\/span>/g), _ = 0; + if (!k) + return A; + for (; k.length; ) { + var T = k.pop(); + /<\/span>/.test(T) ? _ += 1 : _ ? _ -= 1 : f.unshift(T.match(//)[0]); + } + for (var L = 0; L < f.length; L++) + A = "".concat(A, ""); + return A; + }); + } }, { key: "renderLineNumber", value: function(l) { + if (!this.lineNumber) + return l; + var f = l.split(` +`); + return f.pop(), f = this.fillTag(f), ''.concat(f.join(` +`), ""); + } }, { key: "isInternalCustomLangCovered", value: function(l) { + var f; + return Lu(f = this.customLang).call(f, l) !== -1; + } }, { key: "computeLines", value: function(l, f, g) { + var A = f, b = this.getLineCount(l, A); + return { sign: this.$engine.md5(l.replace(/^\n+/, "") + b), lines: b }; + } }, { key: "appendMermaid", value: function(l, f) { + var g = l, A = f; + if (/^flow([ ](TD|LR))?$/i.test(A) && !this.isInternalCustomLangCovered(A)) { + var b, v = A.match(/^flow(?:[ ](TD|LR))?$/i) || []; + g = At(b = "graph ".concat(v[1] || "TD", ` +`)).call(b, g), A = "mermaid"; + } + return /^seq$/i.test(A) && !this.isInternalCustomLangCovered(A) && (g = `sequenceDiagram +`.concat(g), A = "mermaid"), A === "mermaid" && (g = g.replace(/(^[\s]*)stateDiagram-v2\n/, `$1stateDiagram +`)), [g, A]; + } }, { key: "wrapCode", value: function(l, f) { + var g, A; + return At(g = At(A = '')).call(g, l, ""); + } }, { key: "renderCodeBlock", value: function(l, f, g, A) { + var b, v, k, _, T, L, F, U = l, q = f; + return this.customHighlighter ? U = this.customHighlighter(U, q) : (q && Lpe.languages[q] || (q = "javascript"), U = Lpe.highlight(U, Lpe.languages[q], q), U = this.renderLineNumber(U)), U = At(b = At(v = At(k = At(_ = At(T = At(L = At(F = `
+
')).call(b, this.wrapCode(U, q), `
+
`); + } }, { key: "$getIndentedCodeReg", value: function() { + return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)([\\s\\S]+?)(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))", "g"); + } }, { key: "$getIndentCodeBlock", value: function(l) { + var f = this; + return this.indentedCodeBlock ? this.$recoverCodeInIndent(l).replace(this.$getIndentedCodeReg(), function(g, A) { + var b, v, k = (g.match(/\n/g) || []).length, _ = f.$engine.md5(g), T = At(b = At(v = '
')).call(b, $G(A.replace(/\n( {4}|\t)/g, `
+`)), "
"); + return c$(g, f.pushCache(T, _, k)); + }) : l; + } }, { key: "$replaceCodeInIndent", value: function(l) { + return this.indentedCodeBlock ? l.replace(this.$getIndentedCodeReg(), function(f) { + return f.replace(/`/g, "~~~IndentCode"); + }) : l; + } }, { key: "$recoverCodeInIndent", value: function(l) { + return this.indentedCodeBlock ? l.replace(this.$getIndentedCodeReg(), function(f) { + return f.replace(/~~~IndentCode/g, "`"); + }) : l; + } }, { key: "beforeMakeHtml", value: function(l, f, g) { + var A = this, b = l; + return b = (b = this.$replaceCodeInIndent(b)).replace(this.RULE.reg, function(v, k, _, T, L, F) { + var U, q, Z; + function R(te) { + if (_) { + var Me = new RegExp(`^ +*`, ""), ve = te.match(Me)[0]; + te = ve + _ + te.replace(Me, function(ge) { + return ""; + }); + } + return te; + } + var J = F, he = A.computeLines(v, k, F), Y = he.sign, ue = he.lines, le = A.$codeCache(Y); + if (le && le !== "") + return R(A.getCacheWithSpace(A.pushCache(le, Y, ue), v)); + J = (J = (J = A.$recoverCodeInIndent(J)).replace(/~D/g, "$")).replace(/~T/g, "~"); + var be = (U = k == null || (q = k.match(/[ ]/g)) === null || q === void 0 ? void 0 : q.length) !== null && U !== void 0 ? U : 0; + if (be > 0) { + var ke = new RegExp("(^|\\n)[ ]{1,".concat(be, "}"), "g"); + J = J.replace(ke, "$1"); + } + if (_) { + var de = new RegExp("(^|\\n)".concat(_), "g"); + J = J.replace(de, "$1"); + } + var Te = Go(L).call(L); + if (/^(math|katex|latex)$/i.test(Te) && !A.isInternalCustomLangCovered(Te)) { + var xe, ie = v.match(/^\s*/g); + return At(xe = "".concat(ie, `~D~D +`)).call(xe, J, "~D~D"); + } + var Be = vh(A.appendMermaid(J, Te), 2); + return J = Be[0], Te = Be[1], Lu(Z = A.customLang).call(Z, Te.toLowerCase()) !== -1 && (le = A.parseCustomLanguage(Te, J, { lines: ue, sign: Y })) && le !== "" ? (A.$codeCache(Y, le), A.getCacheWithSpace(A.pushCache(le, Y, ue), v)) : (J = J.replace(/~X/g, "\\`"), le = (le = A.renderCodeBlock(J, Te, Y, ue)).replace(/\\/g, "\\\\"), le = A.$codeCache(Y, le), R(A.getCacheWithSpace(A.pushCache(le, Y, ue), v))); + }), b = b.replace(jbe(!0), function(v) { + var k; + return Zs(k = v.split("|")).call(k, function(_) { + return A.makeInlineCode(_); + }).join("|").replace(/`/g, "\\`"); + }), b = this.makeInlineCode(b), b = this.$getIndentCodeBlock(b); + } }, { key: "makeInlineCode", value: function(l) { + var f = this, g = l; + return this.INLINE_CODE_REGEX.test(g) && (g = (g = g.replace(/\\`/g, "~~not~inlineCode")).replace(this.INLINE_CODE_REGEX, function(A, b, v) { + if (Go(v).call(v) === "`") + return A; + var k = v.replace(/~~not~inlineCode/g, "\\`"); + k = (k = f.$replaceSpecialChar(k)).replace(/\\/g, "\\\\"); + var _ = "".concat($G(k), ""), T = f.$engine.md5(_); + return o.inlineCodeCache[T] = _, "~~CODE".concat(T, "$"); + }), g = g.replace(/~~not~inlineCode/g, "\\`")), g; + } }, { key: "makeHtml", value: function(l) { + return l; + } }, { key: "$replaceSpecialChar", value: function(l) { + var f = l.replace(/~Q/g, "\\~"); + return f = (f = (f = (f = f.replace(/~Y/g, "\\!")).replace(/~Z/g, "\\#")).replace(/~&/g, "\\&")).replace(/~K/g, "\\/"); + } }, { key: "rule", value: function() { + return Kbe(); + } }, { key: "mounted", value: function(l) { + } }]), o; +}(); +function Cgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(vG, "HOOK_NAME", "codeBlock"), Ui(vG, "inlineCodeCache", {}); +var j_t = function(r) { + ja(o, r0); + var i = Cgn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "makeHtml", value: function(l) { + return l; + } }, { key: "afterMakeHtml", value: function(l) { + var f = l; + return yh(vG.inlineCodeCache).length > 0 && (f = f.replace(/~~CODE([0-9a-zA-Z]+)\$/g, function(g, A) { + return vG.inlineCodeCache[A]; + }), vG.inlineCodeCache = {}), f; + } }, { key: "rule", value: function() { + var l = { begin: "(`+)[ ]*", end: "[ ]*\\1", content: "(.+?(?:\\n.+?)*?)" }; + return l.reg = Tv(l, "g"), l; + } }]), o; +}(); +Ui(j_t, "HOOK_NAME", "inlineCode"); +var _gn = su(function(r) { + (function() { + var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = { rotl: function(l, f) { + return l << f | l >>> 32 - f; + }, rotr: function(l, f) { + return l << 32 - f | l >>> f; + }, endian: function(l) { + if (l.constructor == Number) + return 16711935 & o.rotl(l, 8) | 4278255360 & o.rotl(l, 24); + for (var f = 0; f < l.length; f++) + l[f] = o.endian(l[f]); + return l; + }, randomBytes: function(l) { + for (var f = []; l > 0; l--) + f.push(Math.floor(256 * Math.random())); + return f; + }, bytesToWords: function(l) { + for (var f = [], g = 0, A = 0; g < l.length; g++, A += 8) + f[A >>> 5] |= l[g] << 24 - A % 32; + return f; + }, wordsToBytes: function(l) { + for (var f = [], g = 0; g < 32 * l.length; g += 8) + f.push(l[g >>> 5] >>> 24 - g % 32 & 255); + return f; + }, bytesToHex: function(l) { + for (var f = [], g = 0; g < l.length; g++) + f.push((l[g] >>> 4).toString(16)), f.push((15 & l[g]).toString(16)); + return f.join(""); + }, hexToBytes: function(l) { + for (var f = [], g = 0; g < l.length; g += 2) + f.push(parseInt(l.substr(g, 2), 16)); + return f; + }, bytesToBase64: function(l) { + for (var f = [], g = 0; g < l.length; g += 3) + for (var A = l[g] << 16 | l[g + 1] << 8 | l[g + 2], b = 0; b < 4; b++) + 8 * g + 6 * b <= 8 * l.length ? f.push(i.charAt(A >>> 6 * (3 - b) & 63)) : f.push("="); + return f.join(""); + }, base64ToBytes: function(l) { + l = l.replace(/[^A-Z0-9+\/]/gi, ""); + for (var f = [], g = 0, A = 0; g < l.length; A = ++g % 4) + A != 0 && f.push((i.indexOf(l.charAt(g - 1)) & Math.pow(2, -2 * A + 8) - 1) << 2 * A | i.indexOf(l.charAt(g)) >>> 6 - 2 * A); + return f; + } }; + r.exports = o; + })(); +}), ODe = { utf8: { stringToBytes: function(r) { + return ODe.bin.stringToBytes(unescape(encodeURIComponent(r))); +}, bytesToString: function(r) { + return decodeURIComponent(escape(ODe.bin.bytesToString(r))); +} }, bin: { stringToBytes: function(r) { + for (var i = [], o = 0; o < r.length; o++) + i.push(255 & r.charCodeAt(o)); + return i; +}, bytesToString: function(r) { + for (var i = [], o = 0; o < r.length; o++) + i.push(String.fromCharCode(r[o])); + return i.join(""); +} } }, t5t = ODe, Egn = function(r) { + return r != null && (n5t(r) || function(i) { + return typeof i.readFloatLE == "function" && typeof i.slice == "function" && n5t(i.slice(0, 0)); + }(r) || !!r._isBuffer); +}; +function n5t(r) { + return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r); +} +var eRe = su(function(r) { + (function() { + var i = _gn, o = t5t.utf8, l = Egn, f = t5t.bin, g = function(A, b) { + A.constructor == String ? A = b && b.encoding === "binary" ? f.stringToBytes(A) : o.stringToBytes(A) : l(A) ? A = Array.prototype.slice.call(A, 0) : Array.isArray(A) || A.constructor === Uint8Array || (A = A.toString()); + for (var v = i.bytesToWords(A), k = 8 * A.length, _ = 1732584193, T = -271733879, L = -1732584194, F = 271733878, U = 0; U < v.length; U++) + v[U] = 16711935 & (v[U] << 8 | v[U] >>> 24) | 4278255360 & (v[U] << 24 | v[U] >>> 8); + v[k >>> 5] |= 128 << k % 32, v[14 + (k + 64 >>> 9 << 4)] = k; + var q = g._ff, Z = g._gg, R = g._hh, J = g._ii; + for (U = 0; U < v.length; U += 16) { + var he = _, Y = T, ue = L, le = F; + _ = q(_, T, L, F, v[U + 0], 7, -680876936), F = q(F, _, T, L, v[U + 1], 12, -389564586), L = q(L, F, _, T, v[U + 2], 17, 606105819), T = q(T, L, F, _, v[U + 3], 22, -1044525330), _ = q(_, T, L, F, v[U + 4], 7, -176418897), F = q(F, _, T, L, v[U + 5], 12, 1200080426), L = q(L, F, _, T, v[U + 6], 17, -1473231341), T = q(T, L, F, _, v[U + 7], 22, -45705983), _ = q(_, T, L, F, v[U + 8], 7, 1770035416), F = q(F, _, T, L, v[U + 9], 12, -1958414417), L = q(L, F, _, T, v[U + 10], 17, -42063), T = q(T, L, F, _, v[U + 11], 22, -1990404162), _ = q(_, T, L, F, v[U + 12], 7, 1804603682), F = q(F, _, T, L, v[U + 13], 12, -40341101), L = q(L, F, _, T, v[U + 14], 17, -1502002290), _ = Z(_, T = q(T, L, F, _, v[U + 15], 22, 1236535329), L, F, v[U + 1], 5, -165796510), F = Z(F, _, T, L, v[U + 6], 9, -1069501632), L = Z(L, F, _, T, v[U + 11], 14, 643717713), T = Z(T, L, F, _, v[U + 0], 20, -373897302), _ = Z(_, T, L, F, v[U + 5], 5, -701558691), F = Z(F, _, T, L, v[U + 10], 9, 38016083), L = Z(L, F, _, T, v[U + 15], 14, -660478335), T = Z(T, L, F, _, v[U + 4], 20, -405537848), _ = Z(_, T, L, F, v[U + 9], 5, 568446438), F = Z(F, _, T, L, v[U + 14], 9, -1019803690), L = Z(L, F, _, T, v[U + 3], 14, -187363961), T = Z(T, L, F, _, v[U + 8], 20, 1163531501), _ = Z(_, T, L, F, v[U + 13], 5, -1444681467), F = Z(F, _, T, L, v[U + 2], 9, -51403784), L = Z(L, F, _, T, v[U + 7], 14, 1735328473), _ = R(_, T = Z(T, L, F, _, v[U + 12], 20, -1926607734), L, F, v[U + 5], 4, -378558), F = R(F, _, T, L, v[U + 8], 11, -2022574463), L = R(L, F, _, T, v[U + 11], 16, 1839030562), T = R(T, L, F, _, v[U + 14], 23, -35309556), _ = R(_, T, L, F, v[U + 1], 4, -1530992060), F = R(F, _, T, L, v[U + 4], 11, 1272893353), L = R(L, F, _, T, v[U + 7], 16, -155497632), T = R(T, L, F, _, v[U + 10], 23, -1094730640), _ = R(_, T, L, F, v[U + 13], 4, 681279174), F = R(F, _, T, L, v[U + 0], 11, -358537222), L = R(L, F, _, T, v[U + 3], 16, -722521979), T = R(T, L, F, _, v[U + 6], 23, 76029189), _ = R(_, T, L, F, v[U + 9], 4, -640364487), F = R(F, _, T, L, v[U + 12], 11, -421815835), L = R(L, F, _, T, v[U + 15], 16, 530742520), _ = J(_, T = R(T, L, F, _, v[U + 2], 23, -995338651), L, F, v[U + 0], 6, -198630844), F = J(F, _, T, L, v[U + 7], 10, 1126891415), L = J(L, F, _, T, v[U + 14], 15, -1416354905), T = J(T, L, F, _, v[U + 5], 21, -57434055), _ = J(_, T, L, F, v[U + 12], 6, 1700485571), F = J(F, _, T, L, v[U + 3], 10, -1894986606), L = J(L, F, _, T, v[U + 10], 15, -1051523), T = J(T, L, F, _, v[U + 1], 21, -2054922799), _ = J(_, T, L, F, v[U + 8], 6, 1873313359), F = J(F, _, T, L, v[U + 15], 10, -30611744), L = J(L, F, _, T, v[U + 6], 15, -1560198380), T = J(T, L, F, _, v[U + 13], 21, 1309151649), _ = J(_, T, L, F, v[U + 4], 6, -145523070), F = J(F, _, T, L, v[U + 11], 10, -1120210379), L = J(L, F, _, T, v[U + 2], 15, 718787259), T = J(T, L, F, _, v[U + 9], 21, -343485551), _ = _ + he >>> 0, T = T + Y >>> 0, L = L + ue >>> 0, F = F + le >>> 0; + } + return i.endian([_, T, L, F]); + }; + g._ff = function(A, b, v, k, _, T, L) { + var F = A + (b & v | ~b & k) + (_ >>> 0) + L; + return (F << T | F >>> 32 - T) + b; + }, g._gg = function(A, b, v, k, _, T, L) { + var F = A + (b & k | v & ~k) + (_ >>> 0) + L; + return (F << T | F >>> 32 - T) + b; + }, g._hh = function(A, b, v, k, _, T, L) { + var F = A + (b ^ v ^ k) + (_ >>> 0) + L; + return (F << T | F >>> 32 - T) + b; + }, g._ii = function(A, b, v, k, _, T, L) { + var F = A + (v ^ (b | ~k)) + (_ >>> 0) + L; + return (F << T | F >>> 32 - T) + b; + }, g._blocksize = 16, g._digestsize = 16, r.exports = function(A, b) { + if (A == null) + throw new Error("Illegal argument " + A); + var v = i.wordsToBytes(g(A, b)); + return b && b.asBytes ? v : b && b.asString ? f.bytesToString(v) : i.bytesToHex(v); + }; + })(); +}), Dge = {}, XMe = /^cherry-inner:\/\/([0-9a-f]+)$/i, mL = function() { + function r() { + vi(this, r); + } + return yi(r, null, [{ key: "isInnerLink", value: function(i) { + return XMe.test(i); + } }, { key: "set", value: function(i) { + var o = eRe(i); + return Dge[o] = i, "cherry-inner://".concat(o); + } }, { key: "get", value: function(i) { + var o, l = vh((o = i.match(XMe)) !== null && o !== void 0 ? o : [], 2)[1]; + if (l) + return Dge[l]; + } }, { key: "replace", value: function(i, o) { + var l, f = vh((l = i.match(XMe)) !== null && l !== void 0 ? l : [], 2)[1]; + if (f) + return Dge[f] = o, i; + } }, { key: "restoreAll", value: function(i) { + var o = i.replace(/cherry-inner:\/\/([0-9a-f]+)/gi, function(l) { + return r.get(l) || l; + }); + return o; + } }, { key: "clear", value: function() { + Dge = {}; + } }]), r; +}(); +function Tgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var K_t = function(r) { + ja(o, Sg); + var i = Tgn(o); + function o(l) { + var f, g = l.config, A = l.globalConfig; + return vi(this, o), (f = i.call(this, { config: g })).urlProcessor = A.urlProcessor, f.target = g.target ? 'target="'.concat(g.target, '"') : g.openNewPage ? 'target="_blank"' : "", f.rel = g.rel ? 'rel="'.concat(g.rel, '"') : "", f; + } + return yi(o, [{ key: "checkBrackets", value: function(l) { + for (var f = [], g = "[".concat(l, "]"), A = function(v) { + return 1 & Da(g).call(g, 0, v).match(/\\*$/)[0].length; + }, b = g.length - 1; g[b] && (b !== g.length - 1 || !A(b)); b--) + if (g[b] !== "]" || A(b) || f.push("]"), g[b] === "[" && !A(b) && (f.pop(), !f.length)) + return { isValid: !0, coreText: Da(g).call(g, b + 1, g.length - 1), extraLeadingChar: Da(g).call(g, 0, b) }; + return { isValid: !1, coreText: l, extraLeadingChar: "" }; + } }, { key: "toHtml", value: function(l, f, g, A, b, v, k) { + var _ = A === void 0 ? "ref" : "url", T = ""; + if (_ === "ref") + return l; + if (_ === "url") { + var L, F = this.checkBrackets(g), U = F.isValid, q = F.coreText, Z = F.extraLeadingChar; + if (!U) + return l; + T = b && Go(b).call(b) !== "" ? ' title="'.concat($G(b.replace(/["']/g, "")), '"') : "", k ? T += ' target="'.concat(k.replace(/{target\s*=\s*(.*?)}/, "$1"), '"') : this.target && (T += " ".concat(this.target)); + var R, J, he, Y, ue = Go(A).call(A).replace(/~1D/g, "~D"), le = q.replace(/~1D/g, "~D"); + return q0n(ue) ? (ue = vO(ue = this.urlProcessor(ue, "link")), At(R = At(J = At(he = At(Y = "".concat(f + Z, '")).call(R, le, "")) : At(L = "".concat(f + Z, "")).call(L, g, ""); + } + return l; + } }, { key: "toStdMarkdown", value: function(l) { + return l; + } }, { key: "makeHtml", value: function(l) { + var f, g, A = l.replace(this.RULE.reg, function(b) { + return b.replace(/~D/g, "~1D"); + }); + return Bg() ? A = A.replace(this.RULE.reg, Bo(f = this.toHtml).call(f, this)) : A = G9(A, this.RULE.reg, Bo(g = this.toHtml).call(g, this), !0, 1), A = A.replace(this.RULE.reg, function(b) { + return b.replace(/~1D/g, "~D"); + }), A; + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(K_t, "HOOK_NAME", "link"); +var z_t = function(r) { + ja(o, Sg); + var i = Bgn(o); + function o() { + var l, f = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { config: void 0 }).config; + return vi(this, o), l = i.call(this, { config: f }), f ? (l.allowWhitespace = !!f.allowWhitespace, l) : Ea(l); + } + return yi(o, [{ key: "makeHtml", value: function(l, f) { + var g = function(b, v, k, _) { + var T, L, F, U = k.length % 2 == 1 ? "em" : "strong", q = Math.floor(k.length / 2), Z = fd("").call("", q), R = fd("").call("", q); + return U === "em" && (Z += "", R = "".concat(R)), At(T = At(L = At(F = "".concat(v)).call(F, Z)).call(L, f(_).html.replace(/_/g, "~U"))).call(T, R); + }, A = l; + return A = (A = this.allowWhitespace ? (A = (A = A.replace(/(^|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g, g)).replace(/(^|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g, g)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g, g) : A.replace(this.RULE.asterisk.reg, g)).replace(this.RULE.underscore.reg, function(b, v, k, _, T, L) { + var F, U, q; + if (Go(_).call(_) === "") + return b; + var Z = k.length % 2 == 1 ? "em" : "strong", R = Math.floor(k.length / 2), J = fd("").call("", R), he = fd("").call("", R), Y = f(_).html; + return Z === "em" && (J += "", he = "".concat(he)), At(F = At(U = At(q = "".concat(v)).call(q, J)).call(U, Y)).call(F, he); + }), A.replace(/~U/g, "_"); + } }, { key: "test", value: function(l, f) { + return this.RULE[f].reg && this.RULE[f].reg.test(l); + } }, { key: "rule", value: function() { + var l = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { config: void 0 }).config, f = !!l && !!l.allowWhitespace, g = function(v, k) { + var _, T, L, F = "[^".concat(k, "\\s]"); + return v ? "(?:.*?)(?:(?:\\n.*?)*?)" : At(_ = At(T = At(L = "(".concat(F, "|")).call(L, F, `(.*?( +`)).call(T, F, ".*)*)")).call(_, F, ")"); + }, A = { begin: "(^|[^\\\\])([*]+)", content: "(".concat(g(f, "*"), ")"), end: "\\2" }, b = { begin: "(^|".concat(C4t, ")(_+)"), content: "(".concat(g(f, "_"), ")"), end: "\\2(?=".concat(C4t, "|$)") }; + return A.reg = Tv(A, "g"), b.reg = Tv(b, "g"), { asterisk: A, underscore: b }; + } }]), o; +}(); +function Sgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(z_t, "HOOK_NAME", "fontEmphasis"); +var G_t = function(r) { + ja(o, r0); + var i = Sgn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this)).initBrReg(l.globalConfig.classicBr), f; + } + return yi(o, [{ key: "makeHtml", value: function(l, f) { + var g = this; + return this.test(l) ? l.replace(this.RULE.reg, function(A, b, v) { + var k; + if (g.isContainsCache(A, !0)) + return A; + var _, T = function(L) { + var F, U, q, Z, R, J; + if (Go(L).call(L) === "") + return ""; + var he = f(L), Y = he.sign, ue = he.html, le = "p"; + new RegExp("<(".concat(Die, ")[^>]*>"), "i").test(ue) && (le = "div"); + var be = g.getLineCount(L, L); + return At(F = At(U = At(q = At(Z = At(R = At(J = "<".concat(le, ' data-sign="')).call(J, Y)).call(R, be, '" data-type="')).call(Z, le, '" data-lines="')).call(q, be, '">')).call(U, g.$cleanParagraph(ue), ""); + }; + return g.isContainsCache(v) ? g.makeExcludingCached(At(_ = "".concat(b)).call(_, v), T) : T(At(k = "".concat(b)).call(k, v)); + }) : l; + } }, { key: "rule", value: function() { + var l = { begin: "(?:^|\\n)(\\n*)", end: "(?=\\s*$|\\n\\n)", content: "([\\s\\S]+?)" }; + return l.reg = new RegExp(l.begin + l.content + l.end, "g"), l; + } }]), o; +}(); +Ui(G_t, "HOOK_NAME", "normalParagraph"); +qa({ target: "Reflect", stat: !0 }, { get: function r(i, o) { + var l, f, g = arguments.length < 3 ? i : arguments[2]; + return Oh(i) === g ? i[o] : (l = DT.f(i, o)) ? function(A) { + return A !== void 0 && (nl(A, "value") || nl(A, "writable")); + }(l) ? l.value : l.get === void 0 ? void 0 : rl(l.get, g) : Id(f = o$(i)) ? r(f, o, g) : void 0; +} }); +var r5t = ql.Reflect.get, Lgn = C9t; +function wT() { + return wT = typeof Reflect < "u" && r5t ? r5t : function(r, i, o) { + var l = function(g, A) { + for (; !Object.prototype.hasOwnProperty.call(g, A) && (g = Rn(g)) !== null; ) + ; + return g; + }(r, i); + if (l) { + var f = Lgn(l, i); + return f.get ? f.get.call(arguments.length < 3 ? r : o) : f.value; + } + }, wT.apply(this, arguments); +} +function Ign(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Nge = "atx", Pge = "setext", Mgn = /[\s\-_]/, Fgn = /[A-Za-z]/, Ogn = /[0-9]/, X_t = function(r) { + ja(o, r0); + var i = Ign(o); + function o() { + var l, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { config: void 0, externals: void 0 }; + f.externals; + var g = f.config; + return vi(this, o), (l = i.call(this, { needCache: !0 })).strict = !g || !!g.strict, l.RULE = l.rule(), l.headerIDCache = [], l.headerIDCounter = {}, l.config = g || {}, l; + } + return yi(o, [{ key: "$parseTitleText", value: function() { + var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; + return typeof l != "string" ? "" : l.replace(/<.*?>/g, "").replace(/</g, "<").replace(/>/g, ">"); + } }, { key: "$generateId", value: function(l) { + for (var f = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1], g = l.length, A = "", b = 0; b < g; b++) { + var v = l.charAt(b); + if (Fgn.test(v)) + A += f ? v.toLowerCase() : v; + else if (Ogn.test(v)) + A += v; + else if (Mgn.test(v)) + A += A.length < 1 || A.charAt(A.length - 1) !== "-" ? "-" : ""; + else if (v.charCodeAt(0) > 255) + try { + A += encodeURIComponent(v); + } catch { + } + } + return A; + } }, { key: "generateIDNoDup", value: function(l) { + var f, g = l.replace(/</g, "<").replace(/>/g, ">"), A = this.$generateId(g, !0), b = Lu(f = this.headerIDCache).call(f, A); + if (b !== -1) + this.headerIDCounter[b] += 1, A += "-".concat(this.headerIDCounter[b] + 1); + else { + var v = this.headerIDCache.push(A); + this.headerIDCounter[v - 1] = 1; + } + return A; + } }, { key: "$wrapHeader", value: function(l, f, g, A) { + var b, v, k, _, T, L, F, U = A(Go(l).call(l)), q = U.html, Z = q.match(/\s+\{#([A-Za-z0-9-]+)\}$/); + Z !== null && (q = q.substring(0, Z.index), F = vh(Z, 2)[1]); + var R = this.$parseTitleText(q); + F || (F = this.generateIDNoDup(R.replace(/~fn#([0-9]+)#/g, ""))); + var J = "safe_".concat(F), he = this.$engine.md5(At(b = At(v = At(k = "".concat(f, "-")).call(k, U.sign, "-")).call(v, F, "-")).call(b, g)); + return { html: [At(_ = At(T = At(L = "'), this.$getAnchor(F), "".concat(q), "")].join(""), sign: "".concat(he) }; + } }, { key: "$getAnchor", value: function(l) { + return (this.config.anchorStyle || "default") === "none" ? "" : ''); + } }, { key: "beforeMakeHtml", value: function(l) { + var f = this, g = l; + return this.test(g, Nge) && (g = g.replace(this.RULE[Nge].reg, function(A, b, v, k) { + return Go(k).call(k) === "" ? A : f.getCacheWithSpace(f.pushCache(A), A, !0); + })), this.test(g, Pge) && (g = g.replace(this.RULE[Pge].reg, function(A, b, v) { + return Go(v).call(v) === "" || f.isContainsCache(v) ? A : f.getCacheWithSpace(f.pushCache(A), A, !0); + })), g; + } }, { key: "makeHtml", value: function(l, f) { + var g = this, A = this.restoreCache(l); + return this.test(A, Nge) && (A = A.replace(this.RULE[Nge].reg, function(b, v, k, _) { + var T = TDe(v, g.getLineCount(b.replace(/^\n+/, ""))), L = _.replace(/\s+#+\s*$/, ""), F = g.$wrapHeader(L, k.length, T, f), U = F.html, q = F.sign; + return g.getCacheWithSpace(g.pushCache(U, q, T), b, !0); + })), this.test(A, Pge) && (A = A.replace(this.RULE[Pge].reg, function(b, v, k, _) { + if (g.isContainsCache(k)) + return b; + var T = TDe(v, g.getLineCount(b.replace(/^\n+/, ""))), L = _[0] === "-" ? 2 : 1, F = g.$wrapHeader(k, L, T, f), U = F.html, q = F.sign; + return g.getCacheWithSpace(g.pushCache(U, q, T), b, !0); + })), A; + } }, { key: "afterMakeHtml", value: function(l) { + var f = wT(Rn(o.prototype), "afterMakeHtml", this).call(this, l); + return this.headerIDCache = [], this.headerIDCounter = {}, f; + } }, { key: "test", value: function(l, f) { + return this.RULE[f].reg && this.RULE[f].reg.test(l); + } }, { key: "rule", value: function() { + var l = { begin: "(?:^|\\n)(\\n*)", content: ["(?:\\h*", "(.+)", ")\\n", "(?:\\h*", "([=]+|[-]+)", ")"].join(""), end: "(?=$|\\n)" }; + l.reg = Tv(l, "g", !0); + var f = { begin: "(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))", content: "(.+?)", end: "(?=$|\\n)" }; + return this.strict && (f.begin += "(?=\\h+)"), f.reg = Tv(f, "g", !0), { setext: l, atx: f }; + } }]), o; +}(); +function Dgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(X_t, "HOOK_NAME", "header"); +var W_t = function(r) { + ja(o, Sg); + var i = Dgn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "rule", value: function() { + return { begin: "", content: "", end: "", reg: new RegExp("") }; + } }, { key: "beforeMakeHtml", value: function(l) { + return l.replace(/\\\n/g, `\\ +`); + } }, { key: "afterMakeHtml", value: function(l) { + var f = l.replace(/~Q/g, "~"); + return f = (f = (f = (f = (f = f.replace(/~X/g, "`")).replace(/~Y/g, "!")).replace(/~Z/g, "#")).replace(/~&/g, "&")).replace(/~K/g, "/"); + } }]), o; +}(); +Ui(W_t, "HOOK_NAME", "transfer"); +var Ngn = Qi.TypeError, i5t = function(r) { + return function(i, o, l, f) { + Fh(o); + var g = y5(i), A = Mbe(g), b = Ck(g), v = r ? b - 1 : 0, k = r ? -1 : 1; + if (l < 2) + for (; ; ) { + if (v in A) { + f = A[v], v += k; + break; + } + if (v += k, r ? v < 0 : b <= v) + throw Ngn("Reduce of empty array with no initial value"); + } + for (; r ? v >= 0 : b > v; v += k) + v in A && (f = o(f, A[v], v, g)); + return f; + }; +}, Pgn = { left: i5t(!1), right: i5t(!0) }, bL = BT(Qi.process) == "process", Rgn = Pgn.left, Qgn = uX("reduce"); +qa({ target: "Array", proto: !0, forced: !Qgn || !bL && MT > 79 && MT < 83 }, { reduce: function(r) { + var i = arguments.length; + return Rgn(this, r, i, i > 1 ? arguments[1] : void 0); +} }); +var $gn = a0("Array").reduce, WMe = Array.prototype, _L = function(r) { + var i = r.reduce; + return r === WMe || E1(WMe, r) && i === WMe.reduce ? $gn : i; +}; +function a5t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function Rge(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = a5t(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = a5t(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +function Ugn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var o5t = "loose", s5t = "strict", V_t = function(r) { + ja(o, r0); + var i = Ugn(o); + function o(l) { + var f, g = l.externals, A = l.config; + vi(this, o), f = i.call(this, { needCache: !0 }); + var b = A.enableChart, v = A.chartRenderEngine, k = A.externals, _ = A.chartEngineOptions, T = _ === void 0 ? {} : _; + if (f.chartRenderEngine = null, b === !0) + try { + f.chartRenderEngine = new v(Rge(Rge({}, g && k instanceof Array && _L(k).call(k, function(L, F) { + return delete T[F], Rge(Rge({}, L), {}, Ui({}, F, g[F])); + }, {})), {}, { renderer: "svg", width: 500, height: 300 }, T)); + } catch (L) { + console.warn(L); + } + return f; + } + return yi(o, [{ key: "$extendColumns", value: function(l, f) { + var g = f - l.length; + return g < 1 ? l : At(l).call(l, fd(" |").call(" |", g).split("|", g)); + } }, { key: "$parseChartOptions", value: function(l) { + if (!this.chartRenderEngine) + return null; + var f = /^[ ]*:(\w+):(?:[ ]*{(.*?)}[ ]*)?$/; + if (!f.test(l)) + return null; + var g = vh(l.match(f), 3), A = g[1], b = g[2]; + return { type: A, options: b ? b.split(/\s*,\s*/) : ["x", "y"] }; + } }, { key: "$parseColumnAlignRules", value: function(l) { + var f = ["U", "L", "R", "C"]; + return { textAlignRules: Zs(l).call(l, function(g) { + var A = Go(g).call(g), b = 0; + return /^:/.test(A) && (b += 1), /:$/.test(A) && (b += 2), f[b]; + }), COLUMN_ALIGN_MAP: { L: "left", R: "right", C: "center" } }; + } }, { key: "$parseTable", value: function(l, f, g) { + var A, b, v, k, _, T, L = this, F = 0, U = Zs(l).call(l, function(Te, xe) { + var ie = Te.replace(/\\\|/g, "~CS").split("|"); + return ie[0] === "" && ie.shift(), ie[ie.length - 1] === "" && ie.pop(), xe !== 1 && (F = Math.max(F, ie.length)), ie; + }), q = this.$parseColumnAlignRules(U[1]), Z = q.textAlignRules, R = q.COLUMN_ALIGN_MAP, J = { header: [], rows: [], colLength: F, rowLength: U.length - 2 }, he = this.$parseChartOptions(U[0][0]), Y = this.$engine.md5(U[0][0]); + he && (U[0][0] = ""); + var ue = Zs(A = this.$extendColumns(U[0], F)).call(A, function(Te, xe) { + var ie, Be; + J.header.push(Te.replace(/~CS/g, "\\|")); + var te = f(Go(ie = Te.replace(/~CS/g, "\\|")).call(ie)).html; + return At(Be = "~CTH".concat(Z[xe] || "U", " ")).call(Be, te, " ~CTH$"); + }).join(""), le = _L(U).call(U, function(Te, xe, ie) { + var Be; + if (ie <= 1) + return Te; + var te = ie - 2; + J.rows[te] = []; + var Me = Zs(Be = L.$extendColumns(xe, F)).call(Be, function(ve, ge) { + var Je, ot; + J.rows[te].push(ve.replace(/~CS/g, "\\|")); + var bt = f(Go(Je = ve.replace(/~CS/g, "\\|")).call(Je)).html; + return At(ot = "~CTD".concat(Z[ge] || "U", " ")).call(ot, bt, " ~CTD$"); + }); + return Te.push("~CTR".concat(Me.join(""), "~CTR$")), Te; + }, []).join(""), be = this.$renderTable(R, ue, le, g); + if (!he) + return be; + var ke = this.chartRenderEngine.render(he.type, he.options, J), de = At(b = At(v = At(k = At(_ = '
')).call(b, ke, "
"); + return { html: At(T = "".concat(de)).call(T, be.html), sign: Y + be.sign }; + } }, { key: "$testHeadEmpty", value: function(l) { + var f = l.replace(/ /g, "").replace(/\s/g, "").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g, ""); + return (f == null ? void 0 : f.length) > 0; + } }, { key: "$renderTable", value: function(l, f, g, A) { + var b, v, k, _, T = this.$testHeadEmpty(f) ? At(b = "~CTHD".concat(f, "~CTHD$~CTBD")).call(b, g, "~CTBD$") : "~CTBD".concat(g, "~CTBD$"), L = this.$engine.md5(T), F = T.replace(/~CTHD\$/g, "").replace(/~CTHD/g, "").replace(/~CTBD\$/g, "").replace(/~CTBD/g, "").replace(/~CTR\$/g, "").replace(/~CTR/g, "").replace(/[ ]?~CTH\$/g, "").replace(/[ ]?~CTD\$/g, "").replace(/~CT(D|H)(L|R|C|U)[ ]?/g, function(U, q, Z) { + var R = "" : ' align="'.concat(l[Z], '">'); + }).replace(/\\\|/g, "|"); + return { html: At(v = At(k = At(_ = '
+ `)).call(v, F, "
"), sign: L }; + } }, { key: "makeHtml", value: function(l, f) { + var g = this, A = l; + return this.test(A, s5t) && (A = A.replace(this.RULE[s5t].reg, function(b, v) { + var k, _ = g.getLineCount(b, v), T = Zs(k = Go(b).call(b).split(/\n/)).call(k, function(q) { + var Z; + return Go(Z = String(q)).call(Z); + }), L = g.$parseTable(T, f, _), F = L.html, U = L.sign; + return g.getCacheWithSpace(g.pushCache(F, U, _), b); + })), this.test(A, o5t) && (A = A.replace(this.RULE[o5t].reg, function(b, v) { + var k, _ = g.getLineCount(b, v), T = Zs(k = Go(b).call(b).split(/\n/)).call(k, function(q) { + var Z; + return Go(Z = String(q)).call(Z); + }), L = g.$parseTable(T, f, _), F = L.html, U = L.sign; + return g.getCacheWithSpace(g.pushCache(F, U, _), b); + })), A; + } }, { key: "test", value: function(l, f) { + return this.RULE[f].reg && this.RULE[f].reg.test(l); + } }, { key: "rule", value: function() { + return jbe(); + } }]), o; +}(); +function vk() { + return (typeof window > "u" ? "undefined" : Yl(window)) === "object"; +} +function Hgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(V_t, "HOOK_NAME", "table"); +var q_t = function(r) { + ja(o, r0); + var i = Hgn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, { needCache: !0 })).classicBr = JPe("classicBr") ? Nme() : l.globalConfig.classicBr, f; + } + return yi(o, [{ key: "beforeMakeHtml", value: function(l) { + var f = this; + return this.test(l) ? l.replace(this.RULE.reg, function(g, A, b) { + var v, k; + if (b === 0) + return g; + var _, T, L = (v = (k = A.match(/\n/g)) === null || k === void 0 ? void 0 : k.length) !== null && v !== void 0 ? v : 0, F = "br".concat(L), U = ""; + vk() ? U = f.classicBr ? At(_ = '') : At(T = '

 

') : U = f.classicBr ? "" : "
"; + var q = f.pushCache(U, F, L); + return ` + +`.concat(q, ` +`); + }) : l; + } }, { key: "makeHtml", value: function(l, f) { + return l; + } }, { key: "rule", value: function() { + var l = { begin: "(?:\\n)", end: "", content: "((?:\\h*\\n){2,})" }; + return l.reg = Tv(l, "g", !0), l; + } }]), o; +}(); +function jgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(q_t, "HOOK_NAME", "br"); +var Y_t = function(r) { + ja(o, r0); + var i = jgn(o); + function o() { + return vi(this, o), i.call(this, { needCache: !0 }); + } + return yi(o, [{ key: "beforeMakeHtml", value: function(l) { + var f = this; + return l.replace(this.RULE.reg, function(g, A) { + var b, v = (A.match(/\n/g) || []).length + 1, k = "hr".concat(v); + return c$(g, f.pushCache(At(b = '
'), k)); + }); + } }, { key: "makeHtml", value: function(l, f) { + return l; + } }, { key: "rule", value: function() { + var l = { begin: "(?:^|\\n)(\\n*)[ ]*", end: "(?=$|\\n)", content: "((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})" }; + return l.reg = new RegExp(l.begin + l.content + l.end, "g"), l; + } }]), o; +}(); +Ui(Y_t, "HOOK_NAME", "hr"); +var Kgn = { processExtendAttributesInAlt: function(r) { + var i = r.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g); + if (!i) + return ""; + var o = "", l = vh(i, 2), f = l[0], g = l[1]; + return f && (o = ' width="'.concat(f.replace(/[ #]*/g, ""), '"')), g && (o += ' height="'.concat(g.replace(/[ #]*/g, ""), '"')), o; +}, processExtendStyleInAlt: function(r) { + var i = this.$getAlignment(r), o = "", l = r.match(/#(border|shadow|radius|B|S|R)/g); + if (l) + for (var f = 0; f < l.length; f++) + switch (l[f]) { + case "#border": + case "#B": + i += "border:1px solid #888888;padding: 2px;box-sizing: border-box;", o += " cherry-img-border"; + break; + case "#shadow": + case "#S": + i += "box-shadow:0 2px 15px -5px rgb(0 0 0 / 50%);", o += " cherry-img-shadow"; + break; + case "#radius": + case "#R": + i += "border-radius: 15px;", o += " cherry-img-radius"; + } + return { extendStyles: i, extendClasses: o }; +}, $getAlignment: function(r) { + var i = r.match(/#(center|right|left|float-right|float-left)/i); + if (!i) + return ""; + switch (vh(i, 2)[1]) { + case "center": + return "transform:translateX(-50%);margin-left:50%;display:block;"; + case "right": + return "transform:translateX(-100%);margin-left:100%;margin-right:-100%;display:block;"; + case "left": + return "transform:translateX(0);margin-left:0;display:block;"; + case "float-right": + return "float:right;transform:translateX(0);margin-left:0;display:block;"; + case "float-left": + return "float:left;transform:translateX(0);margin-left:0;display:block;"; + } +} }, Rme = Kgn; +function c5t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function zgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var l5t = function(r, i, o, l, f, g, A, b, v) { + var k = f === void 0 ? "ref" : "url", _ = ""; + if (k === "ref") + return i; + if (k === "url") { + var T, L, F, U, q, Z, R, J, he = Rme.processExtendAttributesInAlt(l), Y = Rme.processExtendStyleInAlt(l), ue = Y.extendStyles, le = Y.extendClasses; + ue && (ue = ' style="'.concat(ue, '" ')), le && (le = ' class="'.concat(le, '" ')), _ = g && Go(g).call(g) !== "" ? ' title="'.concat(p5(g), '"') : "", A && (_ += ' poster="'.concat(vO(A), '"')); + var be = v.urlProcessor(f, r), ke = At(T = At(L = At(F = At(U = At(q = At(Z = At(R = "<".concat(r, ' src="')).call(R, mL.set(vO(be)), '"')).call(Z, _, " ")).call(q, he, " ")).call(U, ue, " ")).call(F, le, ' controls="controls">')).call(L, p5(l || ""), ""); + return At(J = "".concat(o)).call(J, b.videoWrapper ? b.videoWrapper(f) : ke); + } + return i; +}, J_t = function(r) { + ja(o, Sg); + var i = zgn(o); + function o(l) { + var f, g = l.config, A = l.globalConfig; + return vi(this, o), (f = i.call(this, null)).urlProcessor = A.urlProcessor, f.extendMedia = { tag: ["video", "audio"], replacer: { video: function(b, v, k, _, T, L) { + return l5t("video", b, v, k, _, T, L, g, A); + }, audio: function(b, v, k, _, T, L) { + return l5t("audio", b, v, k, _, T, L, g, A); + } } }, f.RULE = f.rule(f.extendMedia), f; + } + return yi(o, [{ key: "toHtml", value: function(l, f, g, A, b, v, k) { + var _ = A === void 0 ? "ref" : "url", T = ""; + if (_ === "ref") + return l; + if (_ === "url") { + var L, F, U, q, Z, R, J, he, Y = Rme.processExtendAttributesInAlt(g), ue = Rme.processExtendStyleInAlt(g), le = ue.extendStyles, be = ue.extendClasses; + le && (le = ' style="'.concat(le, '" ')), be && (be = ' class="'.concat(be, '" ')), T = b && Go(b).call(b) !== "" ? ' title="'.concat(p5(b.replace(/["']/g, "")), '"') : ""; + var ke, de = "src", Te = this.$engine.$cherry.options; + if (Te.callback && Te.callback.beforeImageMounted) { + var xe = Te.callback.beforeImageMounted(de, A); + de = xe.srcProp || de, ke = xe.src || A; + } + var ie = k ? k.replace(/[{}]/g, "").replace(/([^=\s]+)=([^\s]+)/g, '$1="$2"').replace(/&/g, "&") : ""; + return At(L = At(F = At(U = At(q = At(Z = At(R = At(J = At(he = "".concat(f, "')).call(U, p5(g || "); + } + return l; + } }, { key: "toMediaHtml", value: function(l, f, g, A, b, v, k, _, T) { + var L, F; + if (!this.extendMedia.replacer[g]) + return l; + for (var U = arguments.length, q = new Array(U > 9 ? U - 9 : 0), Z = 9; Z < U; Z++) + q[Z - 9] = arguments[Z]; + return (L = this.extendMedia.replacer[g]).call.apply(L, At(F = [this, l, f, A, b, v, T]).call(F, q)); + } }, { key: "makeHtml", value: function(l) { + var f, g, A, b, v = l; + return this.test(v) && (v = Bg() ? v.replace(this.RULE.reg, Bo(f = this.toHtml).call(f, this)) : G9(v, this.RULE.reg, Bo(g = this.toHtml).call(g, this), !0, 1)), this.testMedia(v) && (v = Bg() ? v.replace(this.RULE.regExtend, Bo(A = this.toMediaHtml).call(A, this)) : G9(v, this.RULE.regExtend, Bo(b = this.toMediaHtml).call(b, this), !0, 1)), v; + } }, { key: "testMedia", value: function(l) { + return this.RULE.regExtend && this.RULE.regExtend.test(l); + } }, { key: "rule", value: function(l) { + var f = { begin: Bg() ? "((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(J_t, "HOOK_NAME", "image"); +function f5t(r) { + var i; + if (Yl(r) !== "object" && yh(r).length < 1) + return ""; + var o = [""]; + return no(i = yh(r)).call(i, function(l) { + var f; + o.push(At(f = "".concat(l, '="')).call(f, r[l], '"')); + }), o.join(" "); +} +function Xgn(r, i) { + for (var o = /^(\t|[ ])/, l = r; o.test(l); ) + i.space += l[0] === " " ? 4 : 1, l = l.replace(o, ""); + return l; +} +function Wgn(r, i) { + var o = /^((([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]*?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/; + return o.test(r) ? r.replace(o, function(l, f, g, A, b) { + return i.type = g.search(/[*+-]/g) > -1 ? "ul" : "ol", i.listStyle = function(v) { + return /^[a-z]/.test(v) ? "lower-greek" : /^[一二三四五六七八九十]/.test(v) ? "cjk-ideographic" : /^I/.test(v) ? "upper-roman" : /^\+/.test(v) ? "circle" : /^\*/.test(v) ? "square" : "default"; + }(g), i.start = Number(g.replace(".", "")) ? Number(g.replace(".", "")) : 1, b; + }) : (i.type = "blank", r); +} +var Vgn = yi(function r() { + vi(this, r), this.index = 0, this.space = 0, this.type = "", this.start = 1, this.listStyle = "", this.strs = [], this.children = [], this.lines = 0; +}), Z_t = function(r) { + ja(o, r0); + var i = Ggn(o); + function o(l) { + var f, g = l.config; + return vi(this, o), (f = i.call(this, { needCache: !0 })).config = g || {}, f.tree = [], f.emptyLines = 0, f.indentSpace = Math.max(f.config.indentSpace, 2), f; + } + return yi(o, [{ key: "addNode", value: function(l, f, g, A) { + l.type === "blank" ? this.tree[A].strs.push(l.strs[0]) : (this.tree[g].children.push(f), this.tree[f] = h5t(h5t({}, l), {}, { parent: g })); + } }, { key: "buildTree", value: function(l, f) { + var g = l.split(` +`); + this.tree = [], g.unshift(""); + for (var A = l.match(/\n*$/g)[0].length, b = 0; b < g.length - A; b++) { + var v = new Vgn(); + if (g[b] = Xgn(g[b], v), g[b] = Wgn(g[b], v), v.strs.push(f(g[b]).html), v.index = b, b !== 0) { + for (var k = b - 1; !this.tree[k]; ) + k -= 1; + if (v.type === "blank") + this.addNode(v, b, this.tree[k].parent, k); + else { + for (; !this.tree[k] || this.tree[k].space > v.space; ) + k -= 1; + var _ = v.space, T = this.tree[k].space; + _ < T + this.indentSpace ? this.config.listNested && this.tree[k].type !== v.type ? this.addNode(v, b, k) : this.addNode(v, b, this.tree[k].parent) : _ < T + this.indentSpace + 4 ? this.addNode(v, b, k) : (v.type = "blank", this.addNode(v, b, this.tree[k].parent, k)); + } + } else + v.space = -2, this.tree.push(v); + } + } }, { key: "renderSubTree", value: function(l, f, g) { + var A, b, v, k = this, _ = 0, T = {}, L = _L(f).call(f, function(F, U) { + var q, Z, R, J = k.tree[U], he = { class: "cherry-list-item" }, Y = "

".concat(J.strs.join("
"), "

"); + J.lines += k.getLineCount(J.strs.join(` +`)); + var ue = J.children.length ? k.renderTree(U) : ""; + return l.lines += J.lines, _ += J.lines, /<\/span>/.test(Y) && (he.class += " check-list-item"), At(q = At(Z = At(R = "".concat(F, "")).call(Z, Y)).call(q, ue, ""); + }, ""); + return l.parent === void 0 && (T["data-lines"] = l.index === 0 ? _ + this.emptyLines : _, T["data-sign"] = this.sign), f[0] && g === "ol" && (T.start = this.tree[f[0]].start), T.class = "cherry-list__".concat(this.tree[f[0]].listStyle), At(A = At(b = At(v = "<".concat(g)).call(v, f5t(T), ">")).call(b, L, ""); + } }, { key: "renderTree", value: function(l) { + var f = this, g = 0, A = this.tree[l], b = A.children; + return _L(b).call(b, function(v, k, _) { + if (_ === 0 || f.tree[b[_]].type === f.tree[b[_ - 1]].type) + return v; + var T = f.renderSubTree(A, Da(b).call(b, g, _), f.tree[b[_ - 1]].type); + return g = _, v + T; + }, "") + (b.length ? this.renderSubTree(A, Da(b).call(b, g, b.length), this.tree[b[b.length - 1]].type) : ""); + } }, { key: "toHtml", value: function(l, f) { + var g, A; + this.emptyLines = (g = (A = l.match(/^\n\n/)) === null || A === void 0 ? void 0 : A.length) !== null && g !== void 0 ? g : 0; + var b = l.replace(/~0$/g, "").replace(/^\n+/, ""); + this.buildTree(function(k) { + return k.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm, function(_, T, L) { + var F, U = /\s/.test(L) ? '' : ''; + return At(F = "".concat(T)).call(F, U); + }); + }(b), f); + var v = this.renderTree(0); + return this.pushCache(v, this.sign, this.$getLineNum(l)); + } }, { key: "$getLineNum", value: function(l) { + var f, g, A, b, v = (f = (g = l.match(/^\n\n/)) === null || g === void 0 ? void 0 : g.length) !== null && f !== void 0 ? f : 0; + return (A = (b = l.replace(/^\n+/, "").replace(/\n+$/, ` +`).match(/\n/g)) === null || b === void 0 ? void 0 : b.length) !== null && A !== void 0 ? A : 0 + v; + } }, { key: "makeHtml", value: function(l, f) { + var g = this, A = "".concat(l, "~0"); + return this.test(A) && (A = A.replace(this.RULE.reg, function(b) { + return g.getCacheWithSpace(g.checkCache(b, f, g.$getLineNum(b)), b); + })), A = A.replace(/~0$/g, ""); + } }, { key: "rule", value: function() { + var l = { begin: `(?:^| +)( +*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)`, content: "([^\\r]+?)", end: "(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))" }; + return l.reg = new RegExp(l.begin + l.content + l.end, "gm"), l; + } }]), o; +}(); +function qgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +function d5t(r) { + for (var i = /^(\t|[ ]{1,4})/, o = r, l = 0; i.test(o); ) + o = o.replace(/^(\t|[ ]{1,4})/g, ""), l += 1; + return l; +} +Ui(Z_t, "HOOK_NAME", "list"); +var eEt = function(r) { + ja(o, r0); + var i = qgn(o); + function o() { + return vi(this, o), i.call(this, { needCache: !0 }); + } + return yi(o, [{ key: "handleMatch", value: function(l, f) { + var g = this; + return l.replace(this.RULE.reg, function(A, b, v) { + for (var k, _, T = f(v), L = T.sign, F = T.html, U = g.signWithCache(F) || L, q = g.getLineCount(A, b), Z = /^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/, R = d5t(b), J = F.split(` +`), he = /^[>\s]+/, Y = />/g, ue = 1, le = 0, be = At(k = At(_ = '
'), ke = 0; J[ke]; ke++) { + if (ke !== 0) { + var de = d5t(J[ke]); + if (de <= R && Z.test(J[ke])) + break; + R = de; + } + var Te = J[ke].replace(he, function(xe) { + var ie = xe.match(Y); + return le = ie && ie.length > ue ? ie.length : ue, ""; + }); + ue === le && ke !== 0 && (be += "
"), ue < le && (be += fd("
").call("
", le - ue), ue = le), be += Te; + } + return be += fd("
").call("
", ue), g.getCacheWithSpace(g.pushCache(be, U, q), A); + }); + } }, { key: "makeHtml", value: function(l, f) { + return this.test(l) ? this.handleMatch(l, f) : l; + } }, { key: "rule", value: function() { + var l = { begin: "(?:^|\\n)(\\s*)", content: ["(", ">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)", "|", ">(?:.+?)", ")"].join(""), end: "(?=(\\n)|$)" }; + return l.reg = Tv(l, "g"), l; + } }]), o; +}(); +function Ygn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(eEt, "HOOK_NAME", "blockquote"); +var tEt = function(r) { + ja(o, Sg); + var i = Ygn(o); + function o(l) { + var f, g = l.config, A = l.globalConfig; + return vi(this, o), (f = i.call(this, { config: g })).urlProcessor = A.urlProcessor, f.enableShortLink = !!g.enableShortLink, f.shortLinkLength = g.shortLinkLength, f.target = g.target ? 'target="'.concat(g.target, '"') : g.openNewPage ? 'target="_blank"' : "", f.rel = g.rel ? 'rel="'.concat(g.rel, '"') : "", f; + } + return yi(o, [{ key: "isLinkInHtmlAttribute", value: function(l, f, g) { + for (var A, b = new RegExp(["<", "([a-zA-Z][a-zA-Z0-9-]*)", "(", ["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*", "(", ["\\s*=\\s*", "(", ["([^\\s\"'=<>`]+)", "('[^']*')", '("[^"]*")'].join("|"), ")"].join(""), ")?"].join(""), ")*", "\\s*[/]?>"].join(""), "g"); (A = b.exec(l)) !== null && !(A.index > f + g); ) + if (A.index < f && A.index + A[0].length >= f + g) + return !0; + return !1; + } }, { key: "isLinkInATag", value: function(l, f, g) { + for (var A, b = /[^<]*<\/a>/g; (A = b.exec(l)) !== null && !(A.index > f + g); ) + if (A.index < f && A.index + A[0].length >= f + g) + return !0; + return !1; + } }, { key: "makeHtml", value: function(l, f) { + var g = this; + return this.test(l) && (EDe.test(l) || qPe.test(l)) ? l.replace(this.RULE.reg, function(A, b, v, k, _, T, L) { + var F, U, q; + if (g.isLinkInHtmlAttribute(L, T, v.length + k.length) || g.isLinkInATag(L, T, v.length + k.length)) + return A; + var Z = v.toLowerCase(), R = "", J = "", he = !0; + if ((b !== "<" && b !== "<" || _ !== ">" && _ !== ">") && (R = b, J = _, he = !1), Go(k).call(k) === "" || !he && Z === "" && !/www\./.test(k)) + return A; + switch (Z) { + case "javascript:": + return A; + case "mailto:": + var Y, ue, le, be, ke, de; + return $Me.test(k) ? At(Y = At(ue = At(le = At(be = At(ke = "".concat(R, '")).call(ue, p5(k), "")).call(Y, J) : A; + case "": + var Te, xe, ie, Be, te, Me, ve, ge, Je, ot; + if (R === J || !he) + return $Me.test(k) ? At(Te = At(xe = At(ie = At(Be = At(te = "".concat(R, '")).call(xe, p5(k), "")).call(Te, J) : _4t.test(k) ? At(Me = At(ve = "".concat(R)).call(ve, g.renderLink("//".concat(k), k))).call(Me, J) : A; + if (he) + return $Me.test(k) ? At(ge = At(Je = At(ot = '")).call(ge, p5(k), "") : E4t.test(k) || _4t.test(k) ? g.renderLink(k) : A; + default: + return E4t.test(k) ? At(F = At(U = "".concat(R)).call(U, g.renderLink(At(q = "".concat(Z)).call(q, k)))).call(F, J) : A; + } + return A; + }) : l; + } }, { key: "rule", value: function() { + var l, f = { begin: "(?)" }; + return f.reg = Tv(f, "ig"), f; + } }, { key: "renderLink", value: function(l, f) { + var g, A, b, v, k = f; + if (typeof k != "string") + if (this.enableShortLink) { + var _, T = l.replace(/^https?:\/\//i, ""); + k = At(_ = "".concat(T.substring(0, this.shortLinkLength))).call(_, T.length > this.shortLinkLength ? "..." : ""); + } else + k = l; + var L = this.urlProcessor(l, "autolink"); + return At(g = At(A = At(b = At(v = "')).call(g, p5(k).replace(/_/g, "\\_"), ""); + } }]), o; +}(); +function Qme() { + var r, i, o, l; + vk() && (this.katex = (r = (i = this.externals) === null || i === void 0 ? void 0 : i.katex) !== null && r !== void 0 ? r : window.katex, this.MathJax = (o = (l = this.externals) === null || l === void 0 ? void 0 : l.MathJax) !== null && o !== void 0 ? o : window.MathJax); +} +Ui(tEt, "HOOK_NAME", "autoLink"); +var A5t = ["&", "<", ">", '"', "'"], nEt = function(r) { + var i = r.replace(new RegExp(__t, "g"), function(o) { + return Lu(A5t).call(A5t, o) !== -1 ? $G(o) : "\\".concat(o); + }); + return i; +}, Jgn = su(function(r, i) { + r.exports = function() { + const { entries: o, setPrototypeOf: l, isFrozen: f, getPrototypeOf: g, getOwnPropertyDescriptor: A } = Object; + let { freeze: b, seal: v, create: k } = Object, { apply: _, construct: T } = typeof Reflect < "u" && Reflect; + b || (b = function(br) { + return br; + }), v || (v = function(br) { + return br; + }), _ || (_ = function(br, zt, Wr) { + return br.apply(zt, Wr); + }), T || (T = function(br, zt) { + return new br(...zt); + }); + const L = be(Array.prototype.forEach), F = be(Array.prototype.pop), U = be(Array.prototype.push), q = be(String.prototype.toLowerCase), Z = be(String.prototype.toString), R = be(String.prototype.match), J = be(String.prototype.replace), he = be(String.prototype.indexOf), Y = be(String.prototype.trim), ue = be(RegExp.prototype.test), le = ke(TypeError); + function be(br) { + return function(zt) { + for (var Wr = arguments.length, zr = new Array(Wr > 1 ? Wr - 1 : 0), Si = 1; Si < Wr; Si++) + zr[Si - 1] = arguments[Si]; + return _(br, zt, zr); + }; + } + function ke(br) { + return function() { + for (var zt = arguments.length, Wr = new Array(zt), zr = 0; zr < zt; zr++) + Wr[zr] = arguments[zr]; + return T(br, Wr); + }; + } + function de(br, zt) { + let Wr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : q; + l && l(br, null); + let zr = zt.length; + for (; zr--; ) { + let Si = zt[zr]; + if (typeof Si == "string") { + const vr = Wr(Si); + vr !== Si && (f(zt) || (zt[zr] = vr), Si = vr); + } + br[Si] = !0; + } + return br; + } + function Te(br) { + for (let zt = 0; zt < br.length; zt++) + A(br, zt) === void 0 && (br[zt] = null); + return br; + } + function xe(br) { + const zt = k(null); + for (const [Wr, zr] of o(br)) + A(br, Wr) !== void 0 && (Array.isArray(zr) ? zt[Wr] = Te(zr) : zr && typeof zr == "object" && zr.constructor === Object ? zt[Wr] = xe(zr) : zt[Wr] = zr); + return zt; + } + function ie(br, zt) { + for (; br !== null; ) { + const zr = A(br, zt); + if (zr) { + if (zr.get) + return be(zr.get); + if (typeof zr.value == "function") + return be(zr.value); + } + br = g(br); + } + function Wr(zr) { + return console.warn("fallback value for", zr), null; + } + return Wr; + } + const Be = b(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), te = b(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Me = b(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ve = b(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ge = b(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Je = b(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ot = b(["#text"]), bt = b(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), gt = b(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), je = b(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qe = b(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), kt = v(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Wt = v(/<%[\w\W]*|[\w\W]*%>/gm), jt = v(/\${[\w\W]*}/gm), Zn = v(/^data-[\-\w.\u00B7-\uFFFF]/), Ft = v(/^aria-[\-\w]+$/), wn = v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), un = v(/^(?:\w+script|data):/i), ln = v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), an = v(/^html$/i); + var Ot = Object.freeze({ __proto__: null, MUSTACHE_EXPR: kt, ERB_EXPR: Wt, TMPLIT_EXPR: jt, DATA_ATTR: Zn, ARIA_ATTR: Ft, IS_ALLOWED_URI: wn, IS_SCRIPT_OR_DATA: un, ATTR_WHITESPACE: ln, DOCTYPE_NAME: an }); + const $n = function() { + return typeof window > "u" ? null : window; + }, pt = function(br, zt) { + if (typeof br != "object" || typeof br.createPolicy != "function") + return null; + let Wr = null; + const zr = "data-tt-policy-suffix"; + zt && zt.hasAttribute(zr) && (Wr = zt.getAttribute(zr)); + const Si = "dompurify" + (Wr ? "#" + Wr : ""); + try { + return br.createPolicy(Si, { createHTML: (vr) => vr, createScriptURL: (vr) => vr }); + } catch { + return console.warn("TrustedTypes policy " + Si + " could not be created."), null; + } + }; + function Ci() { + let br = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $n(); + const zt = (mn) => Ci(mn); + if (zt.version = "3.0.8", zt.removed = [], !br || !br.document || br.document.nodeType !== 9) + return zt.isSupported = !1, zt; + let { document: Wr } = br; + const zr = Wr, Si = zr.currentScript, { DocumentFragment: vr, HTMLTemplateElement: Qr, Node: or, Element: Gr, NodeFilter: An, NamedNodeMap: _i = br.NamedNodeMap || br.MozNamedAttrMap, HTMLFormElement: Cr, DOMParser: la, trustedTypes: Ra } = br, Jo = Gr.prototype, Cc = ie(Jo, "cloneNode"), ji = ie(Jo, "nextSibling"), Ya = ie(Jo, "childNodes"), Hr = ie(Jo, "parentNode"); + if (typeof Qr == "function") { + const mn = Wr.createElement("template"); + mn.content && mn.content.ownerDocument && (Wr = mn.content.ownerDocument); + } + let Yr, ni = ""; + const { implementation: Vr, createNodeIterator: Na, createDocumentFragment: er, getElementsByTagName: as } = Wr, { importNode: xr } = zr; + let So = {}; + zt.isSupported = typeof o == "function" && typeof Hr == "function" && Vr && Vr.createHTMLDocument !== void 0; + const { MUSTACHE_EXPR: cs, ERB_EXPR: xa, TMPLIT_EXPR: ro, DATA_ATTR: Lo, ARIA_ATTR: Xo, IS_SCRIPT_OR_DATA: Zo, ATTR_WHITESPACE: Fs } = Ot; + let { IS_ALLOWED_URI: Hs } = Ot, Qa = null; + const Ff = de({}, [...Be, ...te, ...Me, ...ge, ...ot]); + let Oc = null; + const Iu = de({}, [...bt, ...gt, ...je, ...Qe]); + let da = Object.seal(k(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), _c = null, qf = null, wu = !0, jo = !0, yf = !1, bl = !0, cu = !1, qc = !1, Jl = !1, js = !1, Dc = !1, gs = !1, rc = !1, Ki = !0, Ta = !1; + const Bl = "user-content-"; + let sf = !0, mc = !1, wh = {}, ra = null; + const Ls = de({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); + let pr = null; + const Pr = de({}, ["audio", "video", "img", "source", "image", "track"]); + let Wo = null; + const hn = de({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), wf = "http://www.w3.org/1998/Math/MathML", Sn = "http://www.w3.org/2000/svg", Nc = "http://www.w3.org/1999/xhtml"; + let Ro = Nc, T1 = !1, tr = null; + const ei = de({}, [wf, Sn, Nc], Z); + let fi = null; + const ri = ["application/xhtml+xml", "text/html"], Aa = "text/html"; + let ya = null, fo = null; + const bs = Wr.createElement("form"), xo = function(mn) { + return mn instanceof RegExp || mn instanceof Function; + }, sl = function() { + let mn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + if (!fo || fo !== mn) { + if (mn && typeof mn == "object" || (mn = {}), mn = xe(mn), fi = ri.indexOf(mn.PARSER_MEDIA_TYPE) === -1 ? Aa : mn.PARSER_MEDIA_TYPE, ya = fi === "application/xhtml+xml" ? Z : q, Qa = "ALLOWED_TAGS" in mn ? de({}, mn.ALLOWED_TAGS, ya) : Ff, Oc = "ALLOWED_ATTR" in mn ? de({}, mn.ALLOWED_ATTR, ya) : Iu, tr = "ALLOWED_NAMESPACES" in mn ? de({}, mn.ALLOWED_NAMESPACES, Z) : ei, Wo = "ADD_URI_SAFE_ATTR" in mn ? de(xe(hn), mn.ADD_URI_SAFE_ATTR, ya) : hn, pr = "ADD_DATA_URI_TAGS" in mn ? de(xe(Pr), mn.ADD_DATA_URI_TAGS, ya) : Pr, ra = "FORBID_CONTENTS" in mn ? de({}, mn.FORBID_CONTENTS, ya) : Ls, _c = "FORBID_TAGS" in mn ? de({}, mn.FORBID_TAGS, ya) : {}, qf = "FORBID_ATTR" in mn ? de({}, mn.FORBID_ATTR, ya) : {}, wh = "USE_PROFILES" in mn && mn.USE_PROFILES, wu = mn.ALLOW_ARIA_ATTR !== !1, jo = mn.ALLOW_DATA_ATTR !== !1, yf = mn.ALLOW_UNKNOWN_PROTOCOLS || !1, bl = mn.ALLOW_SELF_CLOSE_IN_ATTR !== !1, cu = mn.SAFE_FOR_TEMPLATES || !1, qc = mn.WHOLE_DOCUMENT || !1, Dc = mn.RETURN_DOM || !1, gs = mn.RETURN_DOM_FRAGMENT || !1, rc = mn.RETURN_TRUSTED_TYPE || !1, js = mn.FORCE_BODY || !1, Ki = mn.SANITIZE_DOM !== !1, Ta = mn.SANITIZE_NAMED_PROPS || !1, sf = mn.KEEP_CONTENT !== !1, mc = mn.IN_PLACE || !1, Hs = mn.ALLOWED_URI_REGEXP || wn, Ro = mn.NAMESPACE || Nc, da = mn.CUSTOM_ELEMENT_HANDLING || {}, mn.CUSTOM_ELEMENT_HANDLING && xo(mn.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (da.tagNameCheck = mn.CUSTOM_ELEMENT_HANDLING.tagNameCheck), mn.CUSTOM_ELEMENT_HANDLING && xo(mn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (da.attributeNameCheck = mn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), mn.CUSTOM_ELEMENT_HANDLING && typeof mn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (da.allowCustomizedBuiltInElements = mn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), cu && (jo = !1), gs && (Dc = !0), wh && (Qa = de({}, ot), Oc = [], wh.html === !0 && (de(Qa, Be), de(Oc, bt)), wh.svg === !0 && (de(Qa, te), de(Oc, gt), de(Oc, Qe)), wh.svgFilters === !0 && (de(Qa, Me), de(Oc, gt), de(Oc, Qe)), wh.mathMl === !0 && (de(Qa, ge), de(Oc, je), de(Oc, Qe))), mn.ADD_TAGS && (Qa === Ff && (Qa = xe(Qa)), de(Qa, mn.ADD_TAGS, ya)), mn.ADD_ATTR && (Oc === Iu && (Oc = xe(Oc)), de(Oc, mn.ADD_ATTR, ya)), mn.ADD_URI_SAFE_ATTR && de(Wo, mn.ADD_URI_SAFE_ATTR, ya), mn.FORBID_CONTENTS && (ra === Ls && (ra = xe(ra)), de(ra, mn.FORBID_CONTENTS, ya)), sf && (Qa["#text"] = !0), qc && de(Qa, ["html", "head", "body"]), Qa.table && (de(Qa, ["tbody"]), delete _c.tbody), mn.TRUSTED_TYPES_POLICY) { + if (typeof mn.TRUSTED_TYPES_POLICY.createHTML != "function") + throw le('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); + if (typeof mn.TRUSTED_TYPES_POLICY.createScriptURL != "function") + throw le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); + Yr = mn.TRUSTED_TYPES_POLICY, ni = Yr.createHTML(""); + } else + Yr === void 0 && (Yr = pt(Ra, Si)), Yr !== null && typeof ni == "string" && (ni = Yr.createHTML("")); + b && b(mn), fo = mn; + } + }, Mu = de({}, ["mi", "mo", "mn", "ms", "mtext"]), Zl = de({}, ["foreignobject", "desc", "title", "annotation-xml"]), V1 = de({}, ["title", "style", "font", "a", "script"]), il = de({}, [...te, ...Me, ...ve]), kf = de({}, [...ge, ...Je]), eu = function(mn) { + let io = Hr(mn); + io && io.tagName || (io = { namespaceURI: Ro, tagName: "template" }); + const Ba = q(mn.tagName), bc = q(io.tagName); + return !!tr[mn.namespaceURI] && (mn.namespaceURI === Sn ? io.namespaceURI === Nc ? Ba === "svg" : io.namespaceURI === wf ? Ba === "svg" && (bc === "annotation-xml" || Mu[bc]) : !!il[Ba] : mn.namespaceURI === wf ? io.namespaceURI === Nc ? Ba === "math" : io.namespaceURI === Sn ? Ba === "math" && Zl[bc] : !!kf[Ba] : mn.namespaceURI === Nc ? !(io.namespaceURI === Sn && !Zl[bc]) && !(io.namespaceURI === wf && !Mu[bc]) && !kf[Ba] && (V1[Ba] || !il[Ba]) : !(fi !== "application/xhtml+xml" || !tr[mn.namespaceURI])); + }, cl = function(mn) { + U(zt.removed, { element: mn }); + try { + mn.parentNode.removeChild(mn); + } catch { + mn.remove(); + } + }, Ps = function(mn, io) { + try { + U(zt.removed, { attribute: io.getAttributeNode(mn), from: io }); + } catch { + U(zt.removed, { attribute: null, from: io }); + } + if (io.removeAttribute(mn), mn === "is" && !Oc[mn]) + if (Dc || gs) + try { + cl(io); + } catch { + } + else + try { + io.setAttribute(mn, ""); + } catch { + } + }, hb = function(mn) { + let io = null, Ba = null; + if (js) + mn = "" + mn; + else { + const ll = R(mn, /^[\r\n\t ]+/); + Ba = ll && ll[0]; + } + fi === "application/xhtml+xml" && Ro === Nc && (mn = '' + mn + ""); + const bc = Yr ? Yr.createHTML(mn) : mn; + if (Ro === Nc) + try { + io = new la().parseFromString(bc, fi); + } catch { + } + if (!io || !io.documentElement) { + io = Vr.createDocument(Ro, "template", null); + try { + io.documentElement.innerHTML = T1 ? ni : bc; + } catch { + } + } + const jc = io.body || io.documentElement; + return mn && Ba && jc.insertBefore(Wr.createTextNode(Ba), jc.childNodes[0] || null), Ro === Nc ? as.call(io, qc ? "html" : "body")[0] : qc ? io.documentElement : jc; + }, Of = function(mn) { + return Na.call(mn.ownerDocument || mn, mn, An.SHOW_ELEMENT | An.SHOW_COMMENT | An.SHOW_TEXT, null); + }, Sl = function(mn) { + return mn instanceof Cr && (typeof mn.nodeName != "string" || typeof mn.textContent != "string" || typeof mn.removeChild != "function" || !(mn.attributes instanceof _i) || typeof mn.removeAttribute != "function" || typeof mn.setAttribute != "function" || typeof mn.namespaceURI != "string" || typeof mn.insertBefore != "function" || typeof mn.hasChildNodes != "function"); + }, U0 = function(mn) { + return typeof or == "function" && mn instanceof or; + }, Yf = function(mn, io, Ba) { + So[mn] && L(So[mn], (bc) => { + bc.call(zt, io, Ba, fo); + }); + }, H0 = function(mn) { + let io = null; + if (Yf("beforeSanitizeElements", mn, null), Sl(mn)) + return cl(mn), !0; + const Ba = ya(mn.nodeName); + if (Yf("uponSanitizeElement", mn, { tagName: Ba, allowedTags: Qa }), mn.hasChildNodes() && !U0(mn.firstElementChild) && ue(/<[/\w]/g, mn.innerHTML) && ue(/<[/\w]/g, mn.textContent)) + return cl(mn), !0; + if (!Qa[Ba] || _c[Ba]) { + if (!_c[Ba] && Ad(Ba) && (da.tagNameCheck instanceof RegExp && ue(da.tagNameCheck, Ba) || da.tagNameCheck instanceof Function && da.tagNameCheck(Ba))) + return !1; + if (sf && !ra[Ba]) { + const bc = Hr(mn) || mn.parentNode, jc = Ya(mn) || mn.childNodes; + if (jc && bc) + for (let ll = jc.length - 1; ll >= 0; --ll) + bc.insertBefore(Cc(jc[ll], !0), ji(mn)); + } + return cl(mn), !0; + } + return mn instanceof Gr && !eu(mn) ? (cl(mn), !0) : Ba !== "noscript" && Ba !== "noembed" && Ba !== "noframes" || !ue(/<\/no(script|embed|frames)/i, mn.innerHTML) ? (cu && mn.nodeType === 3 && (io = mn.textContent, L([cs, xa, ro], (bc) => { + io = J(io, bc, " "); + }), mn.textContent !== io && (U(zt.removed, { element: mn.cloneNode() }), mn.textContent = io)), Yf("afterSanitizeElements", mn, null), !1) : (cl(mn), !0); + }, cf = function(mn, io, Ba) { + if (Ki && (io === "id" || io === "name") && (Ba in Wr || Ba in bs)) + return !1; + if (!(jo && !qf[io] && ue(Lo, io))) { + if (!(wu && ue(Xo, io))) { + if (!Oc[io] || qf[io]) { + if (!(Ad(mn) && (da.tagNameCheck instanceof RegExp && ue(da.tagNameCheck, mn) || da.tagNameCheck instanceof Function && da.tagNameCheck(mn)) && (da.attributeNameCheck instanceof RegExp && ue(da.attributeNameCheck, io) || da.attributeNameCheck instanceof Function && da.attributeNameCheck(io)) || io === "is" && da.allowCustomizedBuiltInElements && (da.tagNameCheck instanceof RegExp && ue(da.tagNameCheck, Ba) || da.tagNameCheck instanceof Function && da.tagNameCheck(Ba)))) + return !1; + } else if (!Wo[io]) { + if (!ue(Hs, J(Ba, Fs, ""))) { + if ((io !== "src" && io !== "xlink:href" && io !== "href" || mn === "script" || he(Ba, "data:") !== 0 || !pr[mn]) && !(yf && !ue(Zo, J(Ba, Fs, "")))) { + if (Ba) + return !1; + } + } + } + } + } + return !0; + }, Ad = function(mn) { + return mn.indexOf("-") > 0; + }, Ep = function(mn) { + Yf("beforeSanitizeAttributes", mn, null); + const { attributes: io } = mn; + if (!io) + return; + const Ba = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: Oc }; + let bc = io.length; + for (; bc--; ) { + const jc = io[bc], { name: ll, namespaceURI: Df, value: Jf } = jc, Fd = ya(ll); + let Gh = ll === "value" ? Jf : Y(Jf); + if (Ba.attrName = Fd, Ba.attrValue = Gh, Ba.keepAttr = !0, Ba.forceKeepAttr = void 0, Yf("uponSanitizeAttribute", mn, Ba), Gh = Ba.attrValue, Ba.forceKeepAttr || (Ps(ll, mn), !Ba.keepAttr)) + continue; + if (!bl && ue(/\/>/i, Gh)) { + Ps(ll, mn); + continue; + } + cu && L([cs, xa, ro], (bn) => { + Gh = J(Gh, bn, " "); + }); + const iA = ya(mn.nodeName); + if (cf(iA, Fd, Gh)) { + if (!Ta || Fd !== "id" && Fd !== "name" || (Ps(ll, mn), Gh = Bl + Gh), Yr && typeof Ra == "object" && typeof Ra.getAttributeType == "function" && !Df) + switch (Ra.getAttributeType(iA, Fd)) { + case "TrustedHTML": + Gh = Yr.createHTML(Gh); + break; + case "TrustedScriptURL": + Gh = Yr.createScriptURL(Gh); + } + try { + Df ? mn.setAttributeNS(Df, ll, Gh) : mn.setAttribute(ll, Gh), F(zt.removed); + } catch { + } + } + } + Yf("afterSanitizeAttributes", mn, null); + }, Md = function mn(io) { + let Ba = null; + const bc = Of(io); + for (Yf("beforeSanitizeShadowDOM", io, null); Ba = bc.nextNode(); ) + Yf("uponSanitizeShadowNode", Ba, null), H0(Ba) || (Ba.content instanceof vr && mn(Ba.content), Ep(Ba)); + Yf("afterSanitizeShadowDOM", io, null); + }; + return zt.sanitize = function(mn) { + let io = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ba = null, bc = null, jc = null, ll = null; + if (T1 = !mn, T1 && (mn = ""), typeof mn != "string" && !U0(mn)) { + if (typeof mn.toString != "function") + throw le("toString is not a function"); + if (typeof (mn = mn.toString()) != "string") + throw le("dirty is not a string, aborting"); + } + if (!zt.isSupported) + return mn; + if (Jl || sl(io), zt.removed = [], typeof mn == "string" && (mc = !1), mc) { + if (mn.nodeName) { + const Fd = ya(mn.nodeName); + if (!Qa[Fd] || _c[Fd]) + throw le("root node is forbidden and cannot be sanitized in-place"); + } + } else if (mn instanceof or) + Ba = hb(""), bc = Ba.ownerDocument.importNode(mn, !0), bc.nodeType === 1 && bc.nodeName === "BODY" || bc.nodeName === "HTML" ? Ba = bc : Ba.appendChild(bc); + else { + if (!Dc && !cu && !qc && mn.indexOf("<") === -1) + return Yr && rc ? Yr.createHTML(mn) : mn; + if (Ba = hb(mn), !Ba) + return Dc ? null : rc ? ni : ""; + } + Ba && js && cl(Ba.firstChild); + const Df = Of(mc ? mn : Ba); + for (; jc = Df.nextNode(); ) + H0(jc) || (jc.content instanceof vr && Md(jc.content), Ep(jc)); + if (mc) + return mn; + if (Dc) { + if (gs) + for (ll = er.call(Ba.ownerDocument); Ba.firstChild; ) + ll.appendChild(Ba.firstChild); + else + ll = Ba; + return (Oc.shadowroot || Oc.shadowrootmode) && (ll = xr.call(zr, ll, !0)), ll; + } + let Jf = qc ? Ba.outerHTML : Ba.innerHTML; + return qc && Qa["!doctype"] && Ba.ownerDocument && Ba.ownerDocument.doctype && Ba.ownerDocument.doctype.name && ue(an, Ba.ownerDocument.doctype.name) && (Jf = " +` + Jf), cu && L([cs, xa, ro], (Fd) => { + Jf = J(Jf, Fd, " "); + }), Yr && rc ? Yr.createHTML(Jf) : Jf; + }, zt.setConfig = function() { + sl(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Jl = !0; + }, zt.clearConfig = function() { + fo = null, Jl = !1; + }, zt.isValidAttribute = function(mn, io, Ba) { + fo || sl({}); + const bc = ya(mn), jc = ya(io); + return cf(bc, jc, Ba); + }, zt.addHook = function(mn, io) { + typeof io == "function" && (So[mn] = So[mn] || [], U(So[mn], io)); + }, zt.removeHook = function(mn) { + if (So[mn]) + return F(So[mn]); + }, zt.removeHooks = function(mn) { + So[mn] && (So[mn] = []); + }, zt.removeAllHooks = function() { + So = {}; + }, zt; + } + var ut = Ci(); + return ut; + }(); +}), Gbe = Jgn(window); +function Zgn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var tRe = function(r) { + ja(o, r0); + var i = Zgn(o); + function o(l) { + var f, g, A = l.config; + return vi(this, o), Ui(Xs(g = i.call(this, { needCache: !0 })), "engine", "MathJax"), Ui(Xs(g), "katex", void 0), Ui(Xs(g), "MathJax", void 0), g.engine = vk() ? (f = A.engine) !== null && f !== void 0 ? f : "MathJax" : "node", g; + } + return yi(o, [{ key: "toHtml", value: function(l, f, g, A) { + var b, v, k; + Bo(Qme).call(Qme, this)("engine"); + var _ = l.replace(/^[ \f\r\t\v]*/, "").replace(/\s*$/, ""), T = f.replace(/^[ \f\r\t\v]*\n/, ""), L = this.$engine.md5(l), F = this.getLineCount(_, T); + /\n/.test(f) || (F -= 1), /\n\s*$/.test(l) || (F -= 1), F = F > 0 ? F : 0; + var U = At(b = At(v = '
$$')).call(b, nEt(A), "$$
"); + if (this.engine === "katex") { + var q, Z, R = this.katex.renderToString(A, { throwOnError: !1, displayMode: !0 }); + U = At(q = At(Z = '
')).call(q, R, "
"); + } + if ((k = this.MathJax) !== null && k !== void 0 && k.tex2svg) { + var J, he, Y = x_t(this.MathJax.tex2svg(A), !0); + U = At(J = At(he = '
')).call(J, Y, "
"); + } + return U = Gbe.sanitize(U), g + this.getCacheWithSpace(this.pushCache(U, L, F), l); + } }, { key: "beforeMakeHtml", value: function(l) { + var f, g; + return Bg() ? l.replace(this.RULE.reg, Bo(g = this.toHtml).call(g, this)) : G9(l, this.RULE.reg, Bo(f = this.toHtml).call(f, this), !0, 1); + } }, { key: "makeHtml", value: function(l) { + return l; + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "(\\s*)((? "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(tRe, "HOOK_NAME", "mathBlock"); +var rEt = function(r) { + ja(o, r0); + var i = epn(o); + function o(l) { + var f, g, A = l.config; + return vi(this, o), Ui(Xs(g = i.call(this, { needCache: !0 })), "engine", "MathJax"), Ui(Xs(g), "katex", void 0), Ui(Xs(g), "MathJax", void 0), g.engine = vk() ? (f = A.engine) !== null && f !== void 0 ? f : "MathJax" : "node", g; + } + return yi(o, [{ key: "toHtml", value: function(l, f, g) { + var A, b, v, k; + if (!g) + return l; + Bo(Qme).call(Qme, this)("engine"); + var _ = g.match(/\n/g), T = _ ? _.length + 2 : 2, L = this.$engine.md5(l), F = At(A = At(b = "".concat(f, `$')).call(A, nEt(g), "$"); + if (this.engine === "katex" && (v = this.katex) !== null && v !== void 0 && v.renderToString) { + var U, q, Z = this.katex.renderToString(g, { throwOnError: !1 }); + F = At(U = At(q = "".concat(f, '')).call(U, Z, ""); + } + if ((k = this.MathJax) !== null && k !== void 0 && k.tex2svg) { + var R, J, he = x_t(this.MathJax.tex2svg(g, { em: 12, ex: 6, display: !1 }), !0); + F = At(R = At(J = "".concat(f, '')).call(R, he, ""); + } + return F = Gbe.sanitize(F), this.pushCache(F, r0.IN_PARAGRAPH_CACHE_KEY_PREFIX + L); + } }, { key: "beforeMakeHtml", value: function(l) { + var f = this, g = l; + return g = g.replace(jbe(!0), function(A) { + var b; + return Zs(b = A.split("|")).call(b, function(v) { + return f.makeInlineMath(v); + }).join("|").replace(/\\~D/g, "~D").replace(/~D/g, "\\~D"); + }), this.makeInlineMath(g); + } }, { key: "makeInlineMath", value: function(l) { + var f, g; + return this.test(l) ? Bg() ? l.replace(this.RULE.reg, Bo(g = this.toHtml).call(g, this)) : G9(l, this.RULE.reg, Bo(f = this.toHtml).call(f, this), !0, 1) : l; + } }, { key: "makeHtml", value: function(l) { + return l; + } }, { key: "rule", value: function() { + var l = { begin: Bg() ? "((? 1 ? arguments[1] : void 0, o), g = l > 2 ? arguments[2] : void 0, A = g === void 0 ? o : yL(g, o); A > f; ) + i[f++] = r; + return i; +} }); +var tpn = a0("Array").fill, VMe = Array.prototype, UG = function(r) { + var i = r.fill; + return r === VMe || E1(VMe, r) && i === VMe.fill ? tpn : i; +}; +function npn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +function iEt(r) { + return r; +} +var g5t = { tocStyle: "plain", tocNodeClass: "toc-li", tocContainerClass: "toc", tocTitleClass: "toc-title", linkProcessor: iEt }, p5t = '

 

', aEt = function(r) { + ja(o, r0); + var i = npn(o); + function o(l) { + var f, g; + l.externals; + var A = l.config; + return vi(this, o), Ui(Xs(g = i.call(this, { needCache: !0 })), "tocStyle", "nested"), Ui(Xs(g), "tocNodeClass", "toc-li"), Ui(Xs(g), "tocContainerClass", "toc"), Ui(Xs(g), "tocTitleClass", "toc-title"), Ui(Xs(g), "linkProcessor", iEt), Ui(Xs(g), "baseLevel", 1), Ui(Xs(g), "isFirstTocToken", !0), Ui(Xs(g), "allowMultiToc", !1), no(f = yh(g5t)).call(f, function(b) { + g[b] = A[b] || g5t[b]; + }), g; + } + return yi(o, [{ key: "beforeMakeHtml", value: function(l) { + var f = this, g = l; + return this.test(g, "extend") && (g = g.replace(this.RULE.extend.reg, function(A, b, v) { + var k; + if (!f.allowMultiToc && !f.isFirstTocToken) + return At(k = ` +`.concat(b)).call(k, p5t); + var _ = f.pushCache(A); + return f.isFirstTocToken = !1, c$(A, _); + })), this.test(g, "standard") && (g = g.replace(this.RULE.standard.reg, function(A, b, v) { + var k; + return f.allowMultiToc || f.isFirstTocToken ? (f.isFirstTocToken = !1, c$(A, f.pushCache(A))) : At(k = ` +`.concat(b)).call(k, p5t); + })), g; + } }, { key: "makeHtml", value: function(l) { + return l; + } }, { key: "$makeLevel", value: function(l) { + for (var f = "", g = this.baseLevel; g < l; g++) + f += "      "; + return f; + } }, { key: "$makeTocItem", value: function(l, f) { + var g, A, b, v, k, _ = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], T = ""; + f && (T = this.$makeLevel(l.level)); + var L = this.linkProcessor("#".concat(l.id).replace(/safe_/g, "")); + return At(g = At(A = At(b = At(v = At(k = '
  • ')).call(k, T, '')).call(A, l.text, "")).call(g, _ ? "
  • " : ""); + } }, { key: "$makePlainToc", value: function(l) { + var f = this, g = Zs(l).call(l, function(A) { + return f.$makeTocItem(A, !0); + }); + return g.join(""); + } }, { key: "$makeNestedToc", value: function(l) { + var f, g, A = this, b = 0, v = UG(f = new Array(7)).call(f, !1), k = UG(g = new Array(7)).call(g, !1), _ = ""; + no(l).call(l, function(L) { + var F = L.level; + if (b === 0) { + for (var U = F; U >= A.baseLevel; U--) + _ += "
      ", k[U] = !0; + return _ += A.$makeTocItem(L, !1, !1), v[F] = !0, void (b = F); + } + if (F < b) { + for (var q = b; q >= F; q--) + v[q] && (_ += "", v[q] = !1), k[q] && q > F && (_ += "
    ", k[q] = !1); + v[F] = !0, _ += A.$makeTocItem(L, !1, !1), b = F; + } else if (F === b) + v[b] && (_ += ""), _ += A.$makeTocItem(L, !1, !1), v[F] = !0, k[F] = !0; + else { + for (var Z = b + 1; Z <= F; Z++) + _ += "
      ", k[Z] = !0; + v[F] = !0, _ += A.$makeTocItem(L, !1, !1), b = F; + } + }); + for (var T = b; T >= this.baseLevel; T--) + v[T] && (_ += "", v[T] = !1), k[T] && (_ += "
    ", k[T] = !1); + return _; + } }, { key: "$makeToc", value: function(l, f, g) { + var A, b, v, k = TDe(g, 1), _ = At(A = At(b = At(v = ''); + return _ += '

    目录

    '), l.length <= 0 ? "" : (this.baseLevel = Math.min.apply(Math, BO(Zs(l).call(l, function(T) { + return T.level; + }))), this.tocStyle === "nested" ? _ += this.$makeNestedToc(l) : _ += this.$makePlainToc(l), _ += "
    "); + } }, { key: "afterMakeHtml", value: function(l) { + var f = this, g = wT(Rn(o.prototype), "afterMakeHtml", this).call(this, l), A = [], b = ""; + return g.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g, function(v, k, _, T) { + var L, F = T.replace(/~fn#[0-9]+#/g, ""); + A.push({ level: +k, id: _, text: F }), b += At(L = "".concat(k)).call(L, _); + }), b = this.$engine.md5(b), g = g.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/, function(v) { + return v.replace(/(\]\]|\]|】】)([<~])/, `$1 +$2`); + }), g = (g = g.replace(this.RULE.extend.reg, function(v, k) { + return f.$makeToc(A, b, k); + })).replace(this.RULE.standard.reg, function(v, k) { + return f.$makeToc(A, b, k); + }), this.isFirstTocToken = !0, g; + } }, { key: "test", value: function(l, f) { + return !!this.RULE[f].reg && this.RULE[f].reg.test(l); + } }, { key: "rule", value: function() { + var l = { begin: "(?:^|\\n)(\\n*)", end: "(?=$|\\n)", content: "[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*" }; + l.reg = new RegExp(l.begin + l.content + l.end, "g"); + var f = { begin: "(?:^|\\n)(\\n*)", end: "(?=$|\\n)", content: "[ ]*(\\[(?:toc|TOC)\\])[ ]*" }; + return f.reg = new RegExp(f.begin + f.content + f.end, "g"), { extend: l, standard: f }; + } }]), o; +}(); +function rpn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(aEt, "HOOK_NAME", "toc"); +var oEt = function(r) { + ja(o, r0); + var i = rpn(o); + function o(l) { + var f; + return l.externals, l.config, vi(this, o), (f = i.call(this)).footnoteCache = {}, f.footnoteMap = {}, f.footnote = [], f; + } + return yi(o, [{ key: "$cleanCache", value: function() { + this.footnoteCache = {}, this.footnoteMap = {}, this.footnote = []; + } }, { key: "pushFootnoteCache", value: function(l, f) { + this.footnoteCache[l] = f; + } }, { key: "getFootnoteCache", value: function(l) { + return this.footnoteCache[l] || null; + } }, { key: "pushFootNote", value: function(l, f) { + var g, A, b, v, k, _; + if (this.footnoteMap[l]) + return this.footnoteMap[l]; + var T = this.footnote.length + 1, L = {}; + L.fn = At(g = At(A = At(b = '[')).call(g, T, "]"), L.fnref = At(v = At(k = At(_ = '[')).call(v, T, "]"), L.num = T, L.note = Go(f).call(f), this.footnote.push(L); + var F = "\0~fn#".concat(T - 1, "#\0"); + return this.footnoteMap[l] = F, F; + } }, { key: "getFootNote", value: function() { + return this.footnote; + } }, { key: "formatFootNote", value: function() { + var l, f = this.getFootNote(); + if (f.length <= 0) + return ""; + var g = Zs(f).call(f, function(b) { + var v; + return At(v = `
    +`.concat(b.fnref)).call(v, b.note, ` +
    `); + }).join(""), A = this.$engine.md5(g); + return g = At(l = '
    脚注
    ')).call(l, g, "
    "); + } }, { key: "beforeMakeHtml", value: function(l) { + var f = this, g = l; + return this.test(g) && (g = g.replace(this.RULE.reg, function(A, b, v, k) { + return f.pushFootnoteCache(v, k), (A.match(/\n/g) || []).join(""); + }), g = g.replace(/\[\^([^\]]+?)\](?!:)/g, function(A, b) { + var v = f.getFootnoteCache(b); + return v ? f.pushFootNote(b, v) : A; + }), g += this.formatFootNote()), g; + } }, { key: "makeHtml", value: function(l, f) { + return l; + } }, { key: "afterMakeHtml", value: function(l) { + var f = this.getFootNote(), g = l.replace(/\0~fn#([0-9]+)#\0/g, function(A, b) { + return f[b].fn; + }); + return this.$cleanCache(), g; + } }, { key: "rule", value: function() { + var l = { begin: "(^|\\n)[ ]*", content: ["\\[\\^([^\\]]+?)\\]:\\h*", "([\\s\\S]+?)"].join(""), end: "(?=\\s*$|\\n\\n)" }; + return l.reg = Tv(l, "g", !0), l; + } }]), o; +}(); +function ipn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(oEt, "HOOK_NAME", "footnote"); +var sEt = function(r) { + ja(o, r0); + var i = ipn(o); + function o(l) { + var f; + return l.externals, l.config, vi(this, o), (f = i.call(this)).commentCache = {}, f; + } + return yi(o, [{ key: "$cleanCache", value: function() { + this.commentCache = {}; + } }, { key: "pushCommentReferenceCache", value: function(l, f) { + var g, A = N_t(f.split(/[ ]+/g)), b = A[0], v = Da(A).call(A, 1), k = mL.set(b); + this.commentCache["".concat(l).toLowerCase()] = At(g = [k]).call(g, BO(v)).join(" "); + } }, { key: "getCommentReferenceCache", value: function(l) { + return this.commentCache["".concat(l).toLowerCase()] || null; + } }, { key: "beforeMakeHtml", value: function(l) { + var f = this, g = l; + return this.test(g) && (g = g.replace(this.RULE.reg, function(A, b, v, k) { + var _; + return f.pushCommentReferenceCache(v, k), ((_ = A.match(/\n/g)) !== null && _ !== void 0 ? _ : []).join(""); + }), g = g.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g, function(A, b, v) { + var k, _, T = f.getCommentReferenceCache(v); + return T ? b ? At(_ = "".concat(b, "(")).call(_, T, ")") : At(k = "[".concat(v, "](")).call(k, T, ")") : A; + }), this.$cleanCache()), g; + } }, { key: "makeHtml", value: function(l, f) { + return l; + } }, { key: "afterMakeHtml", value: function(l) { + return mL.restoreAll(l); + } }, { key: "rule", value: function() { + var l = { begin: "(^|\\n)[ ]*", content: ["\\[([^^][^\\]]*?)\\]:\\h*", "([^\\n]+?)"].join(""), end: "(?=$|\\n)" }; + return l.reg = Tv(l, "g", !0), l; + } }]), o; +}(); +Ui(sEt, "HOOK_NAME", "commentReference"); +var apn = LL.some, opn = uX("some"); +qa({ target: "Array", proto: !0, forced: !opn }, { some: function(r) { + return apn(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var spn = a0("Array").some, qMe = Array.prototype, cpn = function(r) { + var i = r.some; + return r === qMe || E1(qMe, r) && i === qMe.some ? spn : i; +}; +function lpn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var m5t = ["href", "src"]; +Gbe.addHook("afterSanitizeAttributes", function(r) { + no(m5t).call(m5t, function(i) { + if (r.hasAttribute(i)) { + var o = r.getAttribute(i); + r.setAttribute(i, o.replace(/\\/g, "%5c")); + } + }); +}); +var cEt = function(r) { + ja(o, r0); + var i = lpn(o); + function o() { + return vi(this, o), i.call(this, { needCache: !0 }); + } + return yi(o, [{ key: "isAutoLinkTag", value: function(l) { + var f = [/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i, /^<(mailto:[^<> `]+)>$/i, /^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i]; + return cpn(f).call(f, function(g) { + return g.test(l); + }); + } }, { key: "isHtmlComment", value: function(l) { + return /^$/.test(l); + } }, { key: "beforeMakeHtml", value: function(l, f) { + var g = this; + this.$engine.htmlWhiteListAppend ? (this.htmlWhiteListAppend = new RegExp("^(".concat(this.$engine.htmlWhiteListAppend, ")( |$|/)"), "i"), this.htmlWhiteList = this.$engine.htmlWhiteListAppend.split("|")) : (this.htmlWhiteListAppend = !1, this.htmlWhiteList = []); + var A = l; + return A = function(b) { + if (typeof b != "string") + return ""; + var v = b.replace(/&(\w+);?/g, function(k, _) { + return Lu(k).call(k, ";") === -1 || Lu(R4t).call(R4t, _.toLowerCase()) === -1 ? k.replace(/&/g, "&") : k; + }); + return v = v.replace(/&#(?!x)(\d*);?/gi, function(k, _) { + return LDe(_) || Lu(k).call(k, ";") === -1 || _.lenth > 7 || !Q4t(_) ? k.replace(/&/g, "&") : k; + }), v = v.replace(/&#x([0-9a-f]*);?/gi, function(k, _) { + if (LDe(_)) + return k.replace(/&/g, "&"); + var T = "0x".concat(_), L = Ky(T, 16); + return isNaN(L) || Lu(k).call(k, ";") === -1 || _.lenth > 6 || !Q4t(T) ? k.replace(/&/g, "&") : k; + }), v; + }(A = L_t(A)), A = (A = (A = A.replace(/<[/]?(.*?)>/g, function(b, v) { + return V0n.test(v) || g.isAutoLinkTag(b) || g.isHtmlComment(b) || g.htmlWhiteListAppend !== !1 && g.htmlWhiteListAppend.test(v) ? b.replace(//g, "$#62;") : b.replace(//g, ">"); + })).replace(/<(?=\/?(\w|\n|$))/g, "<")).replace(/\$#60;/g, "<").replace(/\$#62;/g, ">"); + } }, { key: "makeHtml", value: function(l, f) { + return l; + } }, { key: "afterMakeHtml", value: function(l) { + var f = l, g = { ALLOW_UNKNOWN_PROTOCOLS: !0, ADD_ATTR: ["target"] }; + if (this.htmlWhiteListAppend !== !1) { + var A; + if (g.ADD_TAGS = this.htmlWhiteList, (this.htmlWhiteListAppend.test("style") || this.htmlWhiteListAppend.test("ALL")) && (f = f.replace(/| [^>]*>).*?<\/style>/gi, function(b) { + return b.replace(/
    /gi, ""); + })), (this.htmlWhiteListAppend.test("iframe") || this.htmlWhiteListAppend.test("ALL")) && (g.ADD_ATTR = At(A = g.ADD_ATTR).call(A, ["align", "frameborder", "height", "longdesc", "marginheight", "marginwidth", "name", "sandbox", "scrolling", "seamless", "src", "srcdoc", "width"]), g.SANITIZE_DOM = !1, f = f.replace(/| [^>]*>).*?<\/iframe>/gi, function(b) { + return b.replace(/
    /gi, "").replace(/\n/g, ""); + })), this.htmlWhiteListAppend.test("script") || this.htmlWhiteListAppend.test("ALL")) + return f = f.replace(/| [^>]*>).*?<\/script>/gi, function(b) { + return b.replace(/
    /gi, ""); + }), f; + } + return vk() || (g.FORBID_ATTR = ["data-sign", "data-lines"]), Gbe.sanitize(f, g); + } }]), o; +}(); +Ui(cEt, "HOOK_NAME", "htmlBlock"); +var upn = { "+1": "1f44d", "-1": "1f44e", 100: "1f4af", 1234: "1f522", "1st_place_medal": "1f947", "2nd_place_medal": "1f948", "3rd_place_medal": "1f949", "8ball": "1f3b1", a: "1f170", ab: "1f18e", abacus: "1f9ee", abc: "1f524", abcd: "1f521", accept: "1f251", adhesive_bandage: "1fa79", adult: "1f9d1", aerial_tramway: "1f6a1", afghanistan: "1f1e6-1f1eb", airplane: "2708", aland_islands: "1f1e6-1f1fd", alarm_clock: "23f0", albania: "1f1e6-1f1f1", alembic: "2697", algeria: "1f1e9-1f1ff", alien: "1f47d", ambulance: "1f691", american_samoa: "1f1e6-1f1f8", amphora: "1f3fa", anchor: "2693", andorra: "1f1e6-1f1e9", angel: "1f47c", anger: "1f4a2", angola: "1f1e6-1f1f4", angry: "1f620", anguilla: "1f1e6-1f1ee", anguished: "1f627", ant: "1f41c", antarctica: "1f1e6-1f1f6", antigua_barbuda: "1f1e6-1f1ec", apple: "1f34e", aquarius: "2652", argentina: "1f1e6-1f1f7", aries: "2648", armenia: "1f1e6-1f1f2", arrow_backward: "25c0", arrow_double_down: "23ec", arrow_double_up: "23eb", arrow_down: "2b07", arrow_down_small: "1f53d", arrow_forward: "25b6", arrow_heading_down: "2935", arrow_heading_up: "2934", arrow_left: "2b05", arrow_lower_left: "2199", arrow_lower_right: "2198", arrow_right: "27a1", arrow_right_hook: "21aa", arrow_up: "2b06", arrow_up_down: "2195", arrow_up_small: "1f53c", arrow_upper_left: "2196", arrow_upper_right: "2197", arrows_clockwise: "1f503", arrows_counterclockwise: "1f504", art: "1f3a8", articulated_lorry: "1f69b", artificial_satellite: "1f6f0", artist: "1f9d1-1f3a8", aruba: "1f1e6-1f1fc", ascension_island: "1f1e6-1f1e8", asterisk: "002a-20e3", astonished: "1f632", astronaut: "1f9d1-1f680", athletic_shoe: "1f45f", atm: "1f3e7", atom_symbol: "269b", australia: "1f1e6-1f1fa", austria: "1f1e6-1f1f9", auto_rickshaw: "1f6fa", avocado: "1f951", axe: "1fa93", azerbaijan: "1f1e6-1f1ff", b: "1f171", baby: "1f476", baby_bottle: "1f37c", baby_chick: "1f424", baby_symbol: "1f6bc", back: "1f519", bacon: "1f953", badger: "1f9a1", badminton: "1f3f8", bagel: "1f96f", baggage_claim: "1f6c4", baguette_bread: "1f956", bahamas: "1f1e7-1f1f8", bahrain: "1f1e7-1f1ed", balance_scale: "2696", bald_man: "1f468-1f9b2", bald_woman: "1f469-1f9b2", ballet_shoes: "1fa70", balloon: "1f388", ballot_box: "1f5f3", ballot_box_with_check: "2611", bamboo: "1f38d", banana: "1f34c", bangbang: "203c", bangladesh: "1f1e7-1f1e9", banjo: "1fa95", bank: "1f3e6", bar_chart: "1f4ca", barbados: "1f1e7-1f1e7", barber: "1f488", baseball: "26be", basket: "1f9fa", basketball: "1f3c0", basketball_man: "26f9-2642", basketball_woman: "26f9-2640", bat: "1f987", bath: "1f6c0", bathtub: "1f6c1", battery: "1f50b", beach_umbrella: "1f3d6", bear: "1f43b", bearded_person: "1f9d4", bed: "1f6cf", bee: "1f41d", beer: "1f37a", beers: "1f37b", beetle: "1f41e", beginner: "1f530", belarus: "1f1e7-1f1fe", belgium: "1f1e7-1f1ea", belize: "1f1e7-1f1ff", bell: "1f514", bellhop_bell: "1f6ce", benin: "1f1e7-1f1ef", bento: "1f371", bermuda: "1f1e7-1f1f2", beverage_box: "1f9c3", bhutan: "1f1e7-1f1f9", bicyclist: "1f6b4", bike: "1f6b2", biking_man: "1f6b4-2642", biking_woman: "1f6b4-2640", bikini: "1f459", billed_cap: "1f9e2", biohazard: "2623", bird: "1f426", birthday: "1f382", black_circle: "26ab", black_flag: "1f3f4", black_heart: "1f5a4", black_joker: "1f0cf", black_large_square: "2b1b", black_medium_small_square: "25fe", black_medium_square: "25fc", black_nib: "2712", black_small_square: "25aa", black_square_button: "1f532", blond_haired_man: "1f471-2642", blond_haired_person: "1f471", blond_haired_woman: "1f471-2640", blonde_woman: "1f471-2640", blossom: "1f33c", blowfish: "1f421", blue_book: "1f4d8", blue_car: "1f699", blue_heart: "1f499", blue_square: "1f7e6", blush: "1f60a", boar: "1f417", boat: "26f5", bolivia: "1f1e7-1f1f4", bomb: "1f4a3", bone: "1f9b4", book: "1f4d6", bookmark: "1f516", bookmark_tabs: "1f4d1", books: "1f4da", boom: "1f4a5", boot: "1f462", bosnia_herzegovina: "1f1e7-1f1e6", botswana: "1f1e7-1f1fc", bouncing_ball_man: "26f9-2642", bouncing_ball_person: "26f9", bouncing_ball_woman: "26f9-2640", bouquet: "1f490", bouvet_island: "1f1e7-1f1fb", bow: "1f647", bow_and_arrow: "1f3f9", bowing_man: "1f647-2642", bowing_woman: "1f647-2640", bowl_with_spoon: "1f963", bowling: "1f3b3", boxing_glove: "1f94a", boy: "1f466", brain: "1f9e0", brazil: "1f1e7-1f1f7", bread: "1f35e", breast_feeding: "1f931", bricks: "1f9f1", bride_with_veil: "1f470", bridge_at_night: "1f309", briefcase: "1f4bc", british_indian_ocean_territory: "1f1ee-1f1f4", british_virgin_islands: "1f1fb-1f1ec", broccoli: "1f966", broken_heart: "1f494", broom: "1f9f9", brown_circle: "1f7e4", brown_heart: "1f90e", brown_square: "1f7eb", brunei: "1f1e7-1f1f3", bug: "1f41b", building_construction: "1f3d7", bulb: "1f4a1", bulgaria: "1f1e7-1f1ec", bullettrain_front: "1f685", bullettrain_side: "1f684", burkina_faso: "1f1e7-1f1eb", burrito: "1f32f", burundi: "1f1e7-1f1ee", bus: "1f68c", business_suit_levitating: "1f574", busstop: "1f68f", bust_in_silhouette: "1f464", busts_in_silhouette: "1f465", butter: "1f9c8", butterfly: "1f98b", cactus: "1f335", cake: "1f370", calendar: "1f4c6", call_me_hand: "1f919", calling: "1f4f2", cambodia: "1f1f0-1f1ed", camel: "1f42b", camera: "1f4f7", camera_flash: "1f4f8", cameroon: "1f1e8-1f1f2", camping: "1f3d5", canada: "1f1e8-1f1e6", canary_islands: "1f1ee-1f1e8", cancer: "264b", candle: "1f56f", candy: "1f36c", canned_food: "1f96b", canoe: "1f6f6", cape_verde: "1f1e8-1f1fb", capital_abcd: "1f520", capricorn: "2651", car: "1f697", card_file_box: "1f5c3", card_index: "1f4c7", card_index_dividers: "1f5c2", caribbean_netherlands: "1f1e7-1f1f6", carousel_horse: "1f3a0", carrot: "1f955", cartwheeling: "1f938", cat: "1f431", cat2: "1f408", cayman_islands: "1f1f0-1f1fe", cd: "1f4bf", central_african_republic: "1f1e8-1f1eb", ceuta_melilla: "1f1ea-1f1e6", chad: "1f1f9-1f1e9", chains: "26d3", chair: "1fa91", champagne: "1f37e", chart: "1f4b9", chart_with_downwards_trend: "1f4c9", chart_with_upwards_trend: "1f4c8", checkered_flag: "1f3c1", cheese: "1f9c0", cherries: "1f352", cherry_blossom: "1f338", chess_pawn: "265f", chestnut: "1f330", chicken: "1f414", child: "1f9d2", children_crossing: "1f6b8", chile: "1f1e8-1f1f1", chipmunk: "1f43f", chocolate_bar: "1f36b", chopsticks: "1f962", christmas_island: "1f1e8-1f1fd", christmas_tree: "1f384", church: "26ea", cinema: "1f3a6", circus_tent: "1f3aa", city_sunrise: "1f307", city_sunset: "1f306", cityscape: "1f3d9", cl: "1f191", clamp: "1f5dc", clap: "1f44f", clapper: "1f3ac", classical_building: "1f3db", climbing: "1f9d7", climbing_man: "1f9d7-2642", climbing_woman: "1f9d7-2640", clinking_glasses: "1f942", clipboard: "1f4cb", clipperton_island: "1f1e8-1f1f5", clock1: "1f550", clock10: "1f559", clock1030: "1f565", clock11: "1f55a", clock1130: "1f566", clock12: "1f55b", clock1230: "1f567", clock130: "1f55c", clock2: "1f551", clock230: "1f55d", clock3: "1f552", clock330: "1f55e", clock4: "1f553", clock430: "1f55f", clock5: "1f554", clock530: "1f560", clock6: "1f555", clock630: "1f561", clock7: "1f556", clock730: "1f562", clock8: "1f557", clock830: "1f563", clock9: "1f558", clock930: "1f564", closed_book: "1f4d5", closed_lock_with_key: "1f510", closed_umbrella: "1f302", cloud: "2601", cloud_with_lightning: "1f329", cloud_with_lightning_and_rain: "26c8", cloud_with_rain: "1f327", cloud_with_snow: "1f328", clown_face: "1f921", clubs: "2663", cn: "1f1e8-1f1f3", coat: "1f9e5", cocktail: "1f378", coconut: "1f965", cocos_islands: "1f1e8-1f1e8", coffee: "2615", coffin: "26b0", cold_face: "1f976", cold_sweat: "1f630", collision: "1f4a5", colombia: "1f1e8-1f1f4", comet: "2604", comoros: "1f1f0-1f1f2", compass: "1f9ed", computer: "1f4bb", computer_mouse: "1f5b1", confetti_ball: "1f38a", confounded: "1f616", confused: "1f615", congo_brazzaville: "1f1e8-1f1ec", congo_kinshasa: "1f1e8-1f1e9", congratulations: "3297", construction: "1f6a7", construction_worker: "1f477", construction_worker_man: "1f477-2642", construction_worker_woman: "1f477-2640", control_knobs: "1f39b", convenience_store: "1f3ea", cook: "1f9d1-1f373", cook_islands: "1f1e8-1f1f0", cookie: "1f36a", cool: "1f192", cop: "1f46e", copyright: "00a9", corn: "1f33d", costa_rica: "1f1e8-1f1f7", cote_divoire: "1f1e8-1f1ee", couch_and_lamp: "1f6cb", couple: "1f46b", couple_with_heart: "1f491", couple_with_heart_man_man: "1f468-2764-1f468", couple_with_heart_woman_man: "1f469-2764-1f468", couple_with_heart_woman_woman: "1f469-2764-1f469", couplekiss: "1f48f", couplekiss_man_man: "1f468-2764-1f48b-1f468", couplekiss_man_woman: "1f469-2764-1f48b-1f468", couplekiss_woman_woman: "1f469-2764-1f48b-1f469", cow: "1f42e", cow2: "1f404", cowboy_hat_face: "1f920", crab: "1f980", crayon: "1f58d", credit_card: "1f4b3", crescent_moon: "1f319", cricket: "1f997", cricket_game: "1f3cf", croatia: "1f1ed-1f1f7", crocodile: "1f40a", croissant: "1f950", crossed_fingers: "1f91e", crossed_flags: "1f38c", crossed_swords: "2694", crown: "1f451", cry: "1f622", crying_cat_face: "1f63f", crystal_ball: "1f52e", cuba: "1f1e8-1f1fa", cucumber: "1f952", cup_with_straw: "1f964", cupcake: "1f9c1", cupid: "1f498", curacao: "1f1e8-1f1fc", curling_stone: "1f94c", curly_haired_man: "1f468-1f9b1", curly_haired_woman: "1f469-1f9b1", curly_loop: "27b0", currency_exchange: "1f4b1", curry: "1f35b", cursing_face: "1f92c", custard: "1f36e", customs: "1f6c3", cut_of_meat: "1f969", cyclone: "1f300", cyprus: "1f1e8-1f1fe", czech_republic: "1f1e8-1f1ff", dagger: "1f5e1", dancer: "1f483", dancers: "1f46f", dancing_men: "1f46f-2642", dancing_women: "1f46f-2640", dango: "1f361", dark_sunglasses: "1f576", dart: "1f3af", dash: "1f4a8", date: "1f4c5", de: "1f1e9-1f1ea", deaf_man: "1f9cf-2642", deaf_person: "1f9cf", deaf_woman: "1f9cf-2640", deciduous_tree: "1f333", deer: "1f98c", denmark: "1f1e9-1f1f0", department_store: "1f3ec", derelict_house: "1f3da", desert: "1f3dc", desert_island: "1f3dd", desktop_computer: "1f5a5", detective: "1f575", diamond_shape_with_a_dot_inside: "1f4a0", diamonds: "2666", diego_garcia: "1f1e9-1f1ec", disappointed: "1f61e", disappointed_relieved: "1f625", diving_mask: "1f93f", diya_lamp: "1fa94", dizzy: "1f4ab", dizzy_face: "1f635", djibouti: "1f1e9-1f1ef", dna: "1f9ec", do_not_litter: "1f6af", dog: "1f436", dog2: "1f415", dollar: "1f4b5", dolls: "1f38e", dolphin: "1f42c", dominica: "1f1e9-1f1f2", dominican_republic: "1f1e9-1f1f4", door: "1f6aa", doughnut: "1f369", dove: "1f54a", dragon: "1f409", dragon_face: "1f432", dress: "1f457", dromedary_camel: "1f42a", drooling_face: "1f924", drop_of_blood: "1fa78", droplet: "1f4a7", drum: "1f941", duck: "1f986", dumpling: "1f95f", dvd: "1f4c0", "e-mail": "1f4e7", eagle: "1f985", ear: "1f442", ear_of_rice: "1f33e", ear_with_hearing_aid: "1f9bb", earth_africa: "1f30d", earth_americas: "1f30e", earth_asia: "1f30f", ecuador: "1f1ea-1f1e8", egg: "1f95a", eggplant: "1f346", egypt: "1f1ea-1f1ec", eight: "0038-20e3", eight_pointed_black_star: "2734", eight_spoked_asterisk: "2733", eject_button: "23cf", el_salvador: "1f1f8-1f1fb", electric_plug: "1f50c", elephant: "1f418", elf: "1f9dd", elf_man: "1f9dd-2642", elf_woman: "1f9dd-2640", email: "2709", end: "1f51a", england: "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f", envelope: "2709", envelope_with_arrow: "1f4e9", equatorial_guinea: "1f1ec-1f1f6", eritrea: "1f1ea-1f1f7", es: "1f1ea-1f1f8", estonia: "1f1ea-1f1ea", ethiopia: "1f1ea-1f1f9", eu: "1f1ea-1f1fa", euro: "1f4b6", european_castle: "1f3f0", european_post_office: "1f3e4", european_union: "1f1ea-1f1fa", evergreen_tree: "1f332", exclamation: "2757", exploding_head: "1f92f", expressionless: "1f611", eye: "1f441", eye_speech_bubble: "1f441-1f5e8", eyeglasses: "1f453", eyes: "1f440", face_with_head_bandage: "1f915", face_with_thermometer: "1f912", facepalm: "1f926", facepunch: "1f44a", factory: "1f3ed", factory_worker: "1f9d1-1f3ed", fairy: "1f9da", fairy_man: "1f9da-2642", fairy_woman: "1f9da-2640", falafel: "1f9c6", falkland_islands: "1f1eb-1f1f0", fallen_leaf: "1f342", family: "1f46a", family_man_boy: "1f468-1f466", family_man_boy_boy: "1f468-1f466-1f466", family_man_girl: "1f468-1f467", family_man_girl_boy: "1f468-1f467-1f466", family_man_girl_girl: "1f468-1f467-1f467", family_man_man_boy: "1f468-1f468-1f466", family_man_man_boy_boy: "1f468-1f468-1f466-1f466", family_man_man_girl: "1f468-1f468-1f467", family_man_man_girl_boy: "1f468-1f468-1f467-1f466", family_man_man_girl_girl: "1f468-1f468-1f467-1f467", family_man_woman_boy: "1f468-1f469-1f466", family_man_woman_boy_boy: "1f468-1f469-1f466-1f466", family_man_woman_girl: "1f468-1f469-1f467", family_man_woman_girl_boy: "1f468-1f469-1f467-1f466", family_man_woman_girl_girl: "1f468-1f469-1f467-1f467", family_woman_boy: "1f469-1f466", family_woman_boy_boy: "1f469-1f466-1f466", family_woman_girl: "1f469-1f467", family_woman_girl_boy: "1f469-1f467-1f466", family_woman_girl_girl: "1f469-1f467-1f467", family_woman_woman_boy: "1f469-1f469-1f466", family_woman_woman_boy_boy: "1f469-1f469-1f466-1f466", family_woman_woman_girl: "1f469-1f469-1f467", family_woman_woman_girl_boy: "1f469-1f469-1f467-1f466", family_woman_woman_girl_girl: "1f469-1f469-1f467-1f467", farmer: "1f9d1-1f33e", faroe_islands: "1f1eb-1f1f4", fast_forward: "23e9", fax: "1f4e0", fearful: "1f628", feet: "1f43e", female_detective: "1f575-2640", female_sign: "2640", ferris_wheel: "1f3a1", ferry: "26f4", field_hockey: "1f3d1", fiji: "1f1eb-1f1ef", file_cabinet: "1f5c4", file_folder: "1f4c1", film_projector: "1f4fd", film_strip: "1f39e", finland: "1f1eb-1f1ee", fire: "1f525", fire_engine: "1f692", fire_extinguisher: "1f9ef", firecracker: "1f9e8", firefighter: "1f9d1-1f692", fireworks: "1f386", first_quarter_moon: "1f313", first_quarter_moon_with_face: "1f31b", fish: "1f41f", fish_cake: "1f365", fishing_pole_and_fish: "1f3a3", fist: "270a", fist_left: "1f91b", fist_oncoming: "1f44a", fist_raised: "270a", fist_right: "1f91c", five: "0035-20e3", flags: "1f38f", flamingo: "1f9a9", flashlight: "1f526", flat_shoe: "1f97f", fleur_de_lis: "269c", flight_arrival: "1f6ec", flight_departure: "1f6eb", flipper: "1f42c", floppy_disk: "1f4be", flower_playing_cards: "1f3b4", flushed: "1f633", flying_disc: "1f94f", flying_saucer: "1f6f8", fog: "1f32b", foggy: "1f301", foot: "1f9b6", football: "1f3c8", footprints: "1f463", fork_and_knife: "1f374", fortune_cookie: "1f960", fountain: "26f2", fountain_pen: "1f58b", four: "0034-20e3", four_leaf_clover: "1f340", fox_face: "1f98a", fr: "1f1eb-1f1f7", framed_picture: "1f5bc", free: "1f193", french_guiana: "1f1ec-1f1eb", french_polynesia: "1f1f5-1f1eb", french_southern_territories: "1f1f9-1f1eb", fried_egg: "1f373", fried_shrimp: "1f364", fries: "1f35f", frog: "1f438", frowning: "1f626", frowning_face: "2639", frowning_man: "1f64d-2642", frowning_person: "1f64d", frowning_woman: "1f64d-2640", fu: "1f595", fuelpump: "26fd", full_moon: "1f315", full_moon_with_face: "1f31d", funeral_urn: "26b1", gabon: "1f1ec-1f1e6", gambia: "1f1ec-1f1f2", game_die: "1f3b2", garlic: "1f9c4", gb: "1f1ec-1f1e7", gear: "2699", gem: "1f48e", gemini: "264a", genie: "1f9de", genie_man: "1f9de-2642", genie_woman: "1f9de-2640", georgia: "1f1ec-1f1ea", ghana: "1f1ec-1f1ed", ghost: "1f47b", gibraltar: "1f1ec-1f1ee", gift: "1f381", gift_heart: "1f49d", giraffe: "1f992", girl: "1f467", globe_with_meridians: "1f310", gloves: "1f9e4", goal_net: "1f945", goat: "1f410", goggles: "1f97d", golf: "26f3", golfing: "1f3cc", golfing_man: "1f3cc-2642", golfing_woman: "1f3cc-2640", gorilla: "1f98d", grapes: "1f347", greece: "1f1ec-1f1f7", green_apple: "1f34f", green_book: "1f4d7", green_circle: "1f7e2", green_heart: "1f49a", green_salad: "1f957", green_square: "1f7e9", greenland: "1f1ec-1f1f1", grenada: "1f1ec-1f1e9", grey_exclamation: "2755", grey_question: "2754", grimacing: "1f62c", grin: "1f601", grinning: "1f600", guadeloupe: "1f1ec-1f1f5", guam: "1f1ec-1f1fa", guard: "1f482", guardsman: "1f482-2642", guardswoman: "1f482-2640", guatemala: "1f1ec-1f1f9", guernsey: "1f1ec-1f1ec", guide_dog: "1f9ae", guinea: "1f1ec-1f1f3", guinea_bissau: "1f1ec-1f1fc", guitar: "1f3b8", gun: "1f52b", guyana: "1f1ec-1f1fe", haircut: "1f487", haircut_man: "1f487-2642", haircut_woman: "1f487-2640", haiti: "1f1ed-1f1f9", hamburger: "1f354", hammer: "1f528", hammer_and_pick: "2692", hammer_and_wrench: "1f6e0", hamster: "1f439", hand: "270b", hand_over_mouth: "1f92d", handbag: "1f45c", handball_person: "1f93e", handshake: "1f91d", hankey: "1f4a9", hash: "0023-20e3", hatched_chick: "1f425", hatching_chick: "1f423", headphones: "1f3a7", health_worker: "1f9d1-2695", hear_no_evil: "1f649", heard_mcdonald_islands: "1f1ed-1f1f2", heart: "2764", heart_decoration: "1f49f", heart_eyes: "1f60d", heart_eyes_cat: "1f63b", heartbeat: "1f493", heartpulse: "1f497", hearts: "2665", heavy_check_mark: "2714", heavy_division_sign: "2797", heavy_dollar_sign: "1f4b2", heavy_exclamation_mark: "2757", heavy_heart_exclamation: "2763", heavy_minus_sign: "2796", heavy_multiplication_x: "2716", heavy_plus_sign: "2795", hedgehog: "1f994", helicopter: "1f681", herb: "1f33f", hibiscus: "1f33a", high_brightness: "1f506", high_heel: "1f460", hiking_boot: "1f97e", hindu_temple: "1f6d5", hippopotamus: "1f99b", hocho: "1f52a", hole: "1f573", honduras: "1f1ed-1f1f3", honey_pot: "1f36f", honeybee: "1f41d", hong_kong: "1f1ed-1f1f0", horse: "1f434", horse_racing: "1f3c7", hospital: "1f3e5", hot_face: "1f975", hot_pepper: "1f336", hotdog: "1f32d", hotel: "1f3e8", hotsprings: "2668", hourglass: "231b", hourglass_flowing_sand: "23f3", house: "1f3e0", house_with_garden: "1f3e1", houses: "1f3d8", hugs: "1f917", hungary: "1f1ed-1f1fa", hushed: "1f62f", ice_cream: "1f368", ice_cube: "1f9ca", ice_hockey: "1f3d2", ice_skate: "26f8", icecream: "1f366", iceland: "1f1ee-1f1f8", id: "1f194", ideograph_advantage: "1f250", imp: "1f47f", inbox_tray: "1f4e5", incoming_envelope: "1f4e8", india: "1f1ee-1f1f3", indonesia: "1f1ee-1f1e9", infinity: "267e", information_desk_person: "1f481", information_source: "2139", innocent: "1f607", interrobang: "2049", iphone: "1f4f1", iran: "1f1ee-1f1f7", iraq: "1f1ee-1f1f6", ireland: "1f1ee-1f1ea", isle_of_man: "1f1ee-1f1f2", israel: "1f1ee-1f1f1", it: "1f1ee-1f1f9", izakaya_lantern: "1f3ee", jack_o_lantern: "1f383", jamaica: "1f1ef-1f1f2", japan: "1f5fe", japanese_castle: "1f3ef", japanese_goblin: "1f47a", japanese_ogre: "1f479", jeans: "1f456", jersey: "1f1ef-1f1ea", jigsaw: "1f9e9", jordan: "1f1ef-1f1f4", joy: "1f602", joy_cat: "1f639", joystick: "1f579", jp: "1f1ef-1f1f5", judge: "1f9d1-2696", juggling_person: "1f939", kaaba: "1f54b", kangaroo: "1f998", kazakhstan: "1f1f0-1f1ff", kenya: "1f1f0-1f1ea", key: "1f511", keyboard: "2328", keycap_ten: "1f51f", kick_scooter: "1f6f4", kimono: "1f458", kiribati: "1f1f0-1f1ee", kiss: "1f48b", kissing: "1f617", kissing_cat: "1f63d", kissing_closed_eyes: "1f61a", kissing_heart: "1f618", kissing_smiling_eyes: "1f619", kite: "1fa81", kiwi_fruit: "1f95d", kneeling_man: "1f9ce-2642", kneeling_person: "1f9ce", kneeling_woman: "1f9ce-2640", knife: "1f52a", koala: "1f428", koko: "1f201", kosovo: "1f1fd-1f1f0", kr: "1f1f0-1f1f7", kuwait: "1f1f0-1f1fc", kyrgyzstan: "1f1f0-1f1ec", lab_coat: "1f97c", label: "1f3f7", lacrosse: "1f94d", lantern: "1f3ee", laos: "1f1f1-1f1e6", large_blue_circle: "1f535", large_blue_diamond: "1f537", large_orange_diamond: "1f536", last_quarter_moon: "1f317", last_quarter_moon_with_face: "1f31c", latin_cross: "271d", latvia: "1f1f1-1f1fb", laughing: "1f606", leafy_green: "1f96c", leaves: "1f343", lebanon: "1f1f1-1f1e7", ledger: "1f4d2", left_luggage: "1f6c5", left_right_arrow: "2194", left_speech_bubble: "1f5e8", leftwards_arrow_with_hook: "21a9", leg: "1f9b5", lemon: "1f34b", leo: "264c", leopard: "1f406", lesotho: "1f1f1-1f1f8", level_slider: "1f39a", liberia: "1f1f1-1f1f7", libra: "264e", libya: "1f1f1-1f1fe", liechtenstein: "1f1f1-1f1ee", light_rail: "1f688", link: "1f517", lion: "1f981", lips: "1f444", lipstick: "1f484", lithuania: "1f1f1-1f1f9", lizard: "1f98e", llama: "1f999", lobster: "1f99e", lock: "1f512", lock_with_ink_pen: "1f50f", lollipop: "1f36d", loop: "27bf", lotion_bottle: "1f9f4", lotus_position: "1f9d8", lotus_position_man: "1f9d8-2642", lotus_position_woman: "1f9d8-2640", loud_sound: "1f50a", loudspeaker: "1f4e2", love_hotel: "1f3e9", love_letter: "1f48c", love_you_gesture: "1f91f", low_brightness: "1f505", luggage: "1f9f3", luxembourg: "1f1f1-1f1fa", lying_face: "1f925", m: "24c2", macau: "1f1f2-1f1f4", macedonia: "1f1f2-1f1f0", madagascar: "1f1f2-1f1ec", mag: "1f50d", mag_right: "1f50e", mage: "1f9d9", mage_man: "1f9d9-2642", mage_woman: "1f9d9-2640", magnet: "1f9f2", mahjong: "1f004", mailbox: "1f4eb", mailbox_closed: "1f4ea", mailbox_with_mail: "1f4ec", mailbox_with_no_mail: "1f4ed", malawi: "1f1f2-1f1fc", malaysia: "1f1f2-1f1fe", maldives: "1f1f2-1f1fb", male_detective: "1f575-2642", male_sign: "2642", mali: "1f1f2-1f1f1", malta: "1f1f2-1f1f9", man: "1f468", man_artist: "1f468-1f3a8", man_astronaut: "1f468-1f680", man_cartwheeling: "1f938-2642", man_cook: "1f468-1f373", man_dancing: "1f57a", man_facepalming: "1f926-2642", man_factory_worker: "1f468-1f3ed", man_farmer: "1f468-1f33e", man_firefighter: "1f468-1f692", man_health_worker: "1f468-2695", man_in_manual_wheelchair: "1f468-1f9bd", man_in_motorized_wheelchair: "1f468-1f9bc", man_in_tuxedo: "1f935", man_judge: "1f468-2696", man_juggling: "1f939-2642", man_mechanic: "1f468-1f527", man_office_worker: "1f468-1f4bc", man_pilot: "1f468-2708", man_playing_handball: "1f93e-2642", man_playing_water_polo: "1f93d-2642", man_scientist: "1f468-1f52c", man_shrugging: "1f937-2642", man_singer: "1f468-1f3a4", man_student: "1f468-1f393", man_teacher: "1f468-1f3eb", man_technologist: "1f468-1f4bb", man_with_gua_pi_mao: "1f472", man_with_probing_cane: "1f468-1f9af", man_with_turban: "1f473-2642", mandarin: "1f34a", mango: "1f96d", mans_shoe: "1f45e", mantelpiece_clock: "1f570", manual_wheelchair: "1f9bd", maple_leaf: "1f341", marshall_islands: "1f1f2-1f1ed", martial_arts_uniform: "1f94b", martinique: "1f1f2-1f1f6", mask: "1f637", massage: "1f486", massage_man: "1f486-2642", massage_woman: "1f486-2640", mate: "1f9c9", mauritania: "1f1f2-1f1f7", mauritius: "1f1f2-1f1fa", mayotte: "1f1fe-1f1f9", meat_on_bone: "1f356", mechanic: "1f9d1-1f527", mechanical_arm: "1f9be", mechanical_leg: "1f9bf", medal_military: "1f396", medal_sports: "1f3c5", medical_symbol: "2695", mega: "1f4e3", melon: "1f348", memo: "1f4dd", men_wrestling: "1f93c-2642", menorah: "1f54e", mens: "1f6b9", mermaid: "1f9dc-2640", merman: "1f9dc-2642", merperson: "1f9dc", metal: "1f918", metro: "1f687", mexico: "1f1f2-1f1fd", microbe: "1f9a0", micronesia: "1f1eb-1f1f2", microphone: "1f3a4", microscope: "1f52c", middle_finger: "1f595", milk_glass: "1f95b", milky_way: "1f30c", minibus: "1f690", minidisc: "1f4bd", mobile_phone_off: "1f4f4", moldova: "1f1f2-1f1e9", monaco: "1f1f2-1f1e8", money_mouth_face: "1f911", money_with_wings: "1f4b8", moneybag: "1f4b0", mongolia: "1f1f2-1f1f3", monkey: "1f412", monkey_face: "1f435", monocle_face: "1f9d0", monorail: "1f69d", montenegro: "1f1f2-1f1ea", montserrat: "1f1f2-1f1f8", moon: "1f314", moon_cake: "1f96e", morocco: "1f1f2-1f1e6", mortar_board: "1f393", mosque: "1f54c", mosquito: "1f99f", motor_boat: "1f6e5", motor_scooter: "1f6f5", motorcycle: "1f3cd", motorized_wheelchair: "1f9bc", motorway: "1f6e3", mount_fuji: "1f5fb", mountain: "26f0", mountain_bicyclist: "1f6b5", mountain_biking_man: "1f6b5-2642", mountain_biking_woman: "1f6b5-2640", mountain_cableway: "1f6a0", mountain_railway: "1f69e", mountain_snow: "1f3d4", mouse: "1f42d", mouse2: "1f401", movie_camera: "1f3a5", moyai: "1f5ff", mozambique: "1f1f2-1f1ff", mrs_claus: "1f936", muscle: "1f4aa", mushroom: "1f344", musical_keyboard: "1f3b9", musical_note: "1f3b5", musical_score: "1f3bc", mute: "1f507", myanmar: "1f1f2-1f1f2", nail_care: "1f485", name_badge: "1f4db", namibia: "1f1f3-1f1e6", national_park: "1f3de", nauru: "1f1f3-1f1f7", nauseated_face: "1f922", nazar_amulet: "1f9ff", necktie: "1f454", negative_squared_cross_mark: "274e", nepal: "1f1f3-1f1f5", nerd_face: "1f913", netherlands: "1f1f3-1f1f1", neutral_face: "1f610", new: "1f195", new_caledonia: "1f1f3-1f1e8", new_moon: "1f311", new_moon_with_face: "1f31a", new_zealand: "1f1f3-1f1ff", newspaper: "1f4f0", newspaper_roll: "1f5de", next_track_button: "23ed", ng: "1f196", ng_man: "1f645-2642", ng_woman: "1f645-2640", nicaragua: "1f1f3-1f1ee", niger: "1f1f3-1f1ea", nigeria: "1f1f3-1f1ec", night_with_stars: "1f303", nine: "0039-20e3", niue: "1f1f3-1f1fa", no_bell: "1f515", no_bicycles: "1f6b3", no_entry: "26d4", no_entry_sign: "1f6ab", no_good: "1f645", no_good_man: "1f645-2642", no_good_woman: "1f645-2640", no_mobile_phones: "1f4f5", no_mouth: "1f636", no_pedestrians: "1f6b7", no_smoking: "1f6ad", "non-potable_water": "1f6b1", norfolk_island: "1f1f3-1f1eb", north_korea: "1f1f0-1f1f5", northern_mariana_islands: "1f1f2-1f1f5", norway: "1f1f3-1f1f4", nose: "1f443", notebook: "1f4d3", notebook_with_decorative_cover: "1f4d4", notes: "1f3b6", nut_and_bolt: "1f529", o: "2b55", o2: "1f17e", ocean: "1f30a", octopus: "1f419", oden: "1f362", office: "1f3e2", office_worker: "1f9d1-1f4bc", oil_drum: "1f6e2", ok: "1f197", ok_hand: "1f44c", ok_man: "1f646-2642", ok_person: "1f646", ok_woman: "1f646-2640", old_key: "1f5dd", older_adult: "1f9d3", older_man: "1f474", older_woman: "1f475", om: "1f549", oman: "1f1f4-1f1f2", on: "1f51b", oncoming_automobile: "1f698", oncoming_bus: "1f68d", oncoming_police_car: "1f694", oncoming_taxi: "1f696", one: "0031-20e3", one_piece_swimsuit: "1fa71", onion: "1f9c5", open_book: "1f4d6", open_file_folder: "1f4c2", open_hands: "1f450", open_mouth: "1f62e", open_umbrella: "2602", ophiuchus: "26ce", orange: "1f34a", orange_book: "1f4d9", orange_circle: "1f7e0", orange_heart: "1f9e1", orange_square: "1f7e7", orangutan: "1f9a7", orthodox_cross: "2626", otter: "1f9a6", outbox_tray: "1f4e4", owl: "1f989", ox: "1f402", oyster: "1f9aa", package: "1f4e6", page_facing_up: "1f4c4", page_with_curl: "1f4c3", pager: "1f4df", paintbrush: "1f58c", pakistan: "1f1f5-1f1f0", palau: "1f1f5-1f1fc", palestinian_territories: "1f1f5-1f1f8", palm_tree: "1f334", palms_up_together: "1f932", panama: "1f1f5-1f1e6", pancakes: "1f95e", panda_face: "1f43c", paperclip: "1f4ce", paperclips: "1f587", papua_new_guinea: "1f1f5-1f1ec", parachute: "1fa82", paraguay: "1f1f5-1f1fe", parasol_on_ground: "26f1", parking: "1f17f", parrot: "1f99c", part_alternation_mark: "303d", partly_sunny: "26c5", partying_face: "1f973", passenger_ship: "1f6f3", passport_control: "1f6c2", pause_button: "23f8", paw_prints: "1f43e", peace_symbol: "262e", peach: "1f351", peacock: "1f99a", peanuts: "1f95c", pear: "1f350", pen: "1f58a", pencil: "1f4dd", pencil2: "270f", penguin: "1f427", pensive: "1f614", people_holding_hands: "1f9d1-1f91d-1f9d1", performing_arts: "1f3ad", persevere: "1f623", person_bald: "1f9d1-1f9b2", person_curly_hair: "1f9d1-1f9b1", person_fencing: "1f93a", person_in_manual_wheelchair: "1f9d1-1f9bd", person_in_motorized_wheelchair: "1f9d1-1f9bc", person_red_hair: "1f9d1-1f9b0", person_white_hair: "1f9d1-1f9b3", person_with_probing_cane: "1f9d1-1f9af", person_with_turban: "1f473", peru: "1f1f5-1f1ea", petri_dish: "1f9eb", philippines: "1f1f5-1f1ed", phone: "260e", pick: "26cf", pie: "1f967", pig: "1f437", pig2: "1f416", pig_nose: "1f43d", pill: "1f48a", pilot: "1f9d1-2708", pinching_hand: "1f90f", pineapple: "1f34d", ping_pong: "1f3d3", pirate_flag: "1f3f4-2620", pisces: "2653", pitcairn_islands: "1f1f5-1f1f3", pizza: "1f355", place_of_worship: "1f6d0", plate_with_cutlery: "1f37d", play_or_pause_button: "23ef", pleading_face: "1f97a", point_down: "1f447", point_left: "1f448", point_right: "1f449", point_up: "261d", point_up_2: "1f446", poland: "1f1f5-1f1f1", police_car: "1f693", police_officer: "1f46e", policeman: "1f46e-2642", policewoman: "1f46e-2640", poodle: "1f429", poop: "1f4a9", popcorn: "1f37f", portugal: "1f1f5-1f1f9", post_office: "1f3e3", postal_horn: "1f4ef", postbox: "1f4ee", potable_water: "1f6b0", potato: "1f954", pouch: "1f45d", poultry_leg: "1f357", pound: "1f4b7", pout: "1f621", pouting_cat: "1f63e", pouting_face: "1f64e", pouting_man: "1f64e-2642", pouting_woman: "1f64e-2640", pray: "1f64f", prayer_beads: "1f4ff", pregnant_woman: "1f930", pretzel: "1f968", previous_track_button: "23ee", prince: "1f934", princess: "1f478", printer: "1f5a8", probing_cane: "1f9af", puerto_rico: "1f1f5-1f1f7", punch: "1f44a", purple_circle: "1f7e3", purple_heart: "1f49c", purple_square: "1f7ea", purse: "1f45b", pushpin: "1f4cc", put_litter_in_its_place: "1f6ae", qatar: "1f1f6-1f1e6", question: "2753", rabbit: "1f430", rabbit2: "1f407", raccoon: "1f99d", racehorse: "1f40e", racing_car: "1f3ce", radio: "1f4fb", radio_button: "1f518", radioactive: "2622", rage: "1f621", railway_car: "1f683", railway_track: "1f6e4", rainbow: "1f308", rainbow_flag: "1f3f3-1f308", raised_back_of_hand: "1f91a", raised_eyebrow: "1f928", raised_hand: "270b", raised_hand_with_fingers_splayed: "1f590", raised_hands: "1f64c", raising_hand: "1f64b", raising_hand_man: "1f64b-2642", raising_hand_woman: "1f64b-2640", ram: "1f40f", ramen: "1f35c", rat: "1f400", razor: "1fa92", receipt: "1f9fe", record_button: "23fa", recycle: "267b", red_car: "1f697", red_circle: "1f534", red_envelope: "1f9e7", red_haired_man: "1f468-1f9b0", red_haired_woman: "1f469-1f9b0", red_square: "1f7e5", registered: "00ae", relaxed: "263a", relieved: "1f60c", reminder_ribbon: "1f397", repeat: "1f501", repeat_one: "1f502", rescue_worker_helmet: "26d1", restroom: "1f6bb", reunion: "1f1f7-1f1ea", revolving_hearts: "1f49e", rewind: "23ea", rhinoceros: "1f98f", ribbon: "1f380", rice: "1f35a", rice_ball: "1f359", rice_cracker: "1f358", rice_scene: "1f391", right_anger_bubble: "1f5ef", ring: "1f48d", ringed_planet: "1fa90", robot: "1f916", rocket: "1f680", rofl: "1f923", roll_eyes: "1f644", roll_of_paper: "1f9fb", roller_coaster: "1f3a2", romania: "1f1f7-1f1f4", rooster: "1f413", rose: "1f339", rosette: "1f3f5", rotating_light: "1f6a8", round_pushpin: "1f4cd", rowboat: "1f6a3", rowing_man: "1f6a3-2642", rowing_woman: "1f6a3-2640", ru: "1f1f7-1f1fa", rugby_football: "1f3c9", runner: "1f3c3", running: "1f3c3", running_man: "1f3c3-2642", running_shirt_with_sash: "1f3bd", running_woman: "1f3c3-2640", rwanda: "1f1f7-1f1fc", sa: "1f202", safety_pin: "1f9f7", safety_vest: "1f9ba", sagittarius: "2650", sailboat: "26f5", sake: "1f376", salt: "1f9c2", samoa: "1f1fc-1f1f8", san_marino: "1f1f8-1f1f2", sandal: "1f461", sandwich: "1f96a", santa: "1f385", sao_tome_principe: "1f1f8-1f1f9", sari: "1f97b", sassy_man: "1f481-2642", sassy_woman: "1f481-2640", satellite: "1f4e1", satisfied: "1f606", saudi_arabia: "1f1f8-1f1e6", sauna_man: "1f9d6-2642", sauna_person: "1f9d6", sauna_woman: "1f9d6-2640", sauropod: "1f995", saxophone: "1f3b7", scarf: "1f9e3", school: "1f3eb", school_satchel: "1f392", scientist: "1f9d1-1f52c", scissors: "2702", scorpion: "1f982", scorpius: "264f", scotland: "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f", scream: "1f631", scream_cat: "1f640", scroll: "1f4dc", seat: "1f4ba", secret: "3299", see_no_evil: "1f648", seedling: "1f331", selfie: "1f933", senegal: "1f1f8-1f1f3", serbia: "1f1f7-1f1f8", service_dog: "1f415-1f9ba", seven: "0037-20e3", seychelles: "1f1f8-1f1e8", shallow_pan_of_food: "1f958", shamrock: "2618", shark: "1f988", shaved_ice: "1f367", sheep: "1f411", shell: "1f41a", shield: "1f6e1", shinto_shrine: "26e9", ship: "1f6a2", shirt: "1f455", poo: "1f4a9", shoe: "1f45e", shopping: "1f6cd", shopping_cart: "1f6d2", shorts: "1fa73", shower: "1f6bf", shrimp: "1f990", shrug: "1f937", shushing_face: "1f92b", sierra_leone: "1f1f8-1f1f1", signal_strength: "1f4f6", singapore: "1f1f8-1f1ec", singer: "1f9d1-1f3a4", sint_maarten: "1f1f8-1f1fd", six: "0036-20e3", six_pointed_star: "1f52f", skateboard: "1f6f9", ski: "1f3bf", skier: "26f7", skull: "1f480", skull_and_crossbones: "2620", skunk: "1f9a8", sled: "1f6f7", sleeping: "1f634", sleeping_bed: "1f6cc", sleepy: "1f62a", slightly_frowning_face: "1f641", slightly_smiling_face: "1f642", slot_machine: "1f3b0", sloth: "1f9a5", slovakia: "1f1f8-1f1f0", slovenia: "1f1f8-1f1ee", small_airplane: "1f6e9", small_blue_diamond: "1f539", small_orange_diamond: "1f538", small_red_triangle: "1f53a", small_red_triangle_down: "1f53b", smile: "1f604", smile_cat: "1f638", smiley: "1f603", smiley_cat: "1f63a", smiling_face_with_three_hearts: "1f970", smiling_imp: "1f608", smirk: "1f60f", smirk_cat: "1f63c", smoking: "1f6ac", snail: "1f40c", snake: "1f40d", sneezing_face: "1f927", snowboarder: "1f3c2", snowflake: "2744", snowman: "26c4", snowman_with_snow: "2603", soap: "1f9fc", sob: "1f62d", soccer: "26bd", socks: "1f9e6", softball: "1f94e", solomon_islands: "1f1f8-1f1e7", somalia: "1f1f8-1f1f4", soon: "1f51c", sos: "1f198", sound: "1f509", south_africa: "1f1ff-1f1e6", south_georgia_south_sandwich_islands: "1f1ec-1f1f8", south_sudan: "1f1f8-1f1f8", space_invader: "1f47e", spades: "2660", spaghetti: "1f35d", sparkle: "2747", sparkler: "1f387", sparkles: "2728", sparkling_heart: "1f496", speak_no_evil: "1f64a", speaker: "1f508", speaking_head: "1f5e3", speech_balloon: "1f4ac", speedboat: "1f6a4", spider: "1f577", spider_web: "1f578", spiral_calendar: "1f5d3", spiral_notepad: "1f5d2", sponge: "1f9fd", spoon: "1f944", squid: "1f991", sri_lanka: "1f1f1-1f1f0", st_barthelemy: "1f1e7-1f1f1", st_helena: "1f1f8-1f1ed", st_kitts_nevis: "1f1f0-1f1f3", st_lucia: "1f1f1-1f1e8", st_martin: "1f1f2-1f1eb", st_pierre_miquelon: "1f1f5-1f1f2", st_vincent_grenadines: "1f1fb-1f1e8", stadium: "1f3df", standing_man: "1f9cd-2642", standing_person: "1f9cd", standing_woman: "1f9cd-2640", star: "2b50", star2: "1f31f", star_and_crescent: "262a", star_of_david: "2721", star_struck: "1f929", stars: "1f320", station: "1f689", statue_of_liberty: "1f5fd", steam_locomotive: "1f682", stethoscope: "1fa7a", stew: "1f372", stop_button: "23f9", stop_sign: "1f6d1", stopwatch: "23f1", straight_ruler: "1f4cf", strawberry: "1f353", stuck_out_tongue: "1f61b", stuck_out_tongue_closed_eyes: "1f61d", stuck_out_tongue_winking_eye: "1f61c", student: "1f9d1-1f393", studio_microphone: "1f399", stuffed_flatbread: "1f959", sudan: "1f1f8-1f1e9", sun_behind_large_cloud: "1f325", sun_behind_rain_cloud: "1f326", sun_behind_small_cloud: "1f324", sun_with_face: "1f31e", sunflower: "1f33b", sunglasses: "1f60e", sunny: "2600", sunrise: "1f305", sunrise_over_mountains: "1f304", superhero: "1f9b8", superhero_man: "1f9b8-2642", superhero_woman: "1f9b8-2640", supervillain: "1f9b9", supervillain_man: "1f9b9-2642", supervillain_woman: "1f9b9-2640", surfer: "1f3c4", surfing_man: "1f3c4-2642", surfing_woman: "1f3c4-2640", suriname: "1f1f8-1f1f7", sushi: "1f363", suspension_railway: "1f69f", svalbard_jan_mayen: "1f1f8-1f1ef", swan: "1f9a2", swaziland: "1f1f8-1f1ff", sweat: "1f613", sweat_drops: "1f4a6", sweat_smile: "1f605", sweden: "1f1f8-1f1ea", sweet_potato: "1f360", swim_brief: "1fa72", swimmer: "1f3ca", swimming_man: "1f3ca-2642", swimming_woman: "1f3ca-2640", switzerland: "1f1e8-1f1ed", symbols: "1f523", synagogue: "1f54d", syria: "1f1f8-1f1fe", syringe: "1f489", "t-rex": "1f996", taco: "1f32e", tada: "1f389", taiwan: "1f1f9-1f1fc", tajikistan: "1f1f9-1f1ef", takeout_box: "1f961", tanabata_tree: "1f38b", tangerine: "1f34a", tanzania: "1f1f9-1f1ff", taurus: "2649", taxi: "1f695", tea: "1f375", teacher: "1f9d1-1f3eb", technologist: "1f9d1-1f4bb", teddy_bear: "1f9f8", telephone: "260e", telephone_receiver: "1f4de", telescope: "1f52d", tennis: "1f3be", tent: "26fa", test_tube: "1f9ea", thailand: "1f1f9-1f1ed", thermometer: "1f321", thinking: "1f914", thought_balloon: "1f4ad", thread: "1f9f5", three: "0033-20e3", thumbsdown: "1f44e", thumbsup: "1f44d", ticket: "1f3ab", tickets: "1f39f", tiger: "1f42f", tiger2: "1f405", timer_clock: "23f2", timor_leste: "1f1f9-1f1f1", tipping_hand_man: "1f481-2642", tipping_hand_person: "1f481", tipping_hand_woman: "1f481-2640", tired_face: "1f62b", tm: "2122", togo: "1f1f9-1f1ec", toilet: "1f6bd", tokelau: "1f1f9-1f1f0", tokyo_tower: "1f5fc", tomato: "1f345", tonga: "1f1f9-1f1f4", tongue: "1f445", toolbox: "1f9f0", tooth: "1f9b7", top: "1f51d", tophat: "1f3a9", tornado: "1f32a", tr: "1f1f9-1f1f7", trackball: "1f5b2", tractor: "1f69c", traffic_light: "1f6a5", train: "1f68b", train2: "1f686", tram: "1f68a", triangular_flag_on_post: "1f6a9", triangular_ruler: "1f4d0", trident: "1f531", trinidad_tobago: "1f1f9-1f1f9", tristan_da_cunha: "1f1f9-1f1e6", triumph: "1f624", trolleybus: "1f68e", trophy: "1f3c6", tropical_drink: "1f379", tropical_fish: "1f420", truck: "1f69a", trumpet: "1f3ba", tshirt: "1f455", tulip: "1f337", tumbler_glass: "1f943", tunisia: "1f1f9-1f1f3", turkey: "1f983", turkmenistan: "1f1f9-1f1f2", turks_caicos_islands: "1f1f9-1f1e8", turtle: "1f422", tuvalu: "1f1f9-1f1fb", tv: "1f4fa", twisted_rightwards_arrows: "1f500", two: "0032-20e3", two_hearts: "1f495", two_men_holding_hands: "1f46c", two_women_holding_hands: "1f46d", u5272: "1f239", u5408: "1f234", u55b6: "1f23a", u6307: "1f22f", u6708: "1f237", u6709: "1f236", u6e80: "1f235", u7121: "1f21a", u7533: "1f238", u7981: "1f232", u7a7a: "1f233", uganda: "1f1fa-1f1ec", uk: "1f1ec-1f1e7", ukraine: "1f1fa-1f1e6", umbrella: "2614", unamused: "1f612", underage: "1f51e", unicorn: "1f984", united_arab_emirates: "1f1e6-1f1ea", united_nations: "1f1fa-1f1f3", unlock: "1f513", up: "1f199", upside_down_face: "1f643", uruguay: "1f1fa-1f1fe", us: "1f1fa-1f1f8", us_outlying_islands: "1f1fa-1f1f2", us_virgin_islands: "1f1fb-1f1ee", uzbekistan: "1f1fa-1f1ff", v: "270c", vampire: "1f9db", vampire_man: "1f9db-2642", vampire_woman: "1f9db-2640", vanuatu: "1f1fb-1f1fa", vatican_city: "1f1fb-1f1e6", venezuela: "1f1fb-1f1ea", vertical_traffic_light: "1f6a6", vhs: "1f4fc", vibration_mode: "1f4f3", video_camera: "1f4f9", video_game: "1f3ae", vietnam: "1f1fb-1f1f3", violin: "1f3bb", virgo: "264d", volcano: "1f30b", volleyball: "1f3d0", vomiting_face: "1f92e", vs: "1f19a", vulcan_salute: "1f596", waffle: "1f9c7", wales: "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f", walking: "1f6b6", walking_man: "1f6b6-2642", walking_woman: "1f6b6-2640", wallis_futuna: "1f1fc-1f1eb", waning_crescent_moon: "1f318", waning_gibbous_moon: "1f316", warning: "26a0", wastebasket: "1f5d1", watch: "231a", water_buffalo: "1f403", water_polo: "1f93d", watermelon: "1f349", wave: "1f44b", wavy_dash: "3030", waxing_crescent_moon: "1f312", waxing_gibbous_moon: "1f314", wc: "1f6be", weary: "1f629", wedding: "1f492", weight_lifting: "1f3cb", weight_lifting_man: "1f3cb-2642", weight_lifting_woman: "1f3cb-2640", western_sahara: "1f1ea-1f1ed", whale: "1f433", whale2: "1f40b", wheel_of_dharma: "2638", wheelchair: "267f", white_check_mark: "2705", white_circle: "26aa", white_flag: "1f3f3", white_flower: "1f4ae", white_haired_man: "1f468-1f9b3", white_haired_woman: "1f469-1f9b3", white_heart: "1f90d", white_large_square: "2b1c", white_medium_small_square: "25fd", white_medium_square: "25fb", white_small_square: "25ab", white_square_button: "1f533", wilted_flower: "1f940", wind_chime: "1f390", wind_face: "1f32c", wine_glass: "1f377", wink: "1f609", wolf: "1f43a", woman: "1f469", woman_artist: "1f469-1f3a8", woman_astronaut: "1f469-1f680", woman_cartwheeling: "1f938-2640", woman_cook: "1f469-1f373", woman_dancing: "1f483", woman_facepalming: "1f926-2640", woman_factory_worker: "1f469-1f3ed", woman_farmer: "1f469-1f33e", woman_firefighter: "1f469-1f692", woman_health_worker: "1f469-2695", woman_in_manual_wheelchair: "1f469-1f9bd", woman_in_motorized_wheelchair: "1f469-1f9bc", woman_judge: "1f469-2696", woman_juggling: "1f939-2640", woman_mechanic: "1f469-1f527", woman_office_worker: "1f469-1f4bc", woman_pilot: "1f469-2708", woman_playing_handball: "1f93e-2640", woman_playing_water_polo: "1f93d-2640", woman_scientist: "1f469-1f52c", woman_shrugging: "1f937-2640", woman_singer: "1f469-1f3a4", woman_student: "1f469-1f393", woman_teacher: "1f469-1f3eb", woman_technologist: "1f469-1f4bb", woman_with_headscarf: "1f9d5", woman_with_probing_cane: "1f469-1f9af", woman_with_turban: "1f473-2640", womans_clothes: "1f45a", womans_hat: "1f452", women_wrestling: "1f93c-2640", womens: "1f6ba", woozy_face: "1f974", world_map: "1f5fa", worried: "1f61f", wrench: "1f527", wrestling: "1f93c", writing_hand: "270d", x: "274c", yarn: "1f9f6", yawning_face: "1f971", yellow_circle: "1f7e1", yellow_heart: "1f49b", yellow_square: "1f7e8", yemen: "1f1fe-1f1ea", yen: "1f4b4", yin_yang: "262f", yo_yo: "1fa80", yum: "1f60b", zambia: "1f1ff-1f1f2", zany_face: "1f92a", zap: "26a1", zebra: "1f993", zero: "0030-20e3", zimbabwe: "1f1ff-1f1fc", zipper_mouth_face: "1f910", zombie: "1f9df", zombie_man: "1f9df-2642", zombie_woman: "1f9df-2640", zzz: "1f4a4" }; +function b5t(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function hpn(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = b5t(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = b5t(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +function fpn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +function dpn() { + for (var r = [], i = 0, o = "", l = 0, f = arguments.length; l !== f; ++l) { + var g = +(l < 0 || arguments.length <= l ? void 0 : arguments[l]); + if (!(g < 1114111 && g >>> 0 === g)) + throw new RangeError("Invalid code point: ".concat(g)); + g <= 65535 ? i = r.push(g) : (g -= 65536, i = r.push(55296 + (g >> 10), g % 1024 + 56320)), i >= 16383 && (o += String.fromCharCode.apply(null, r), r.length = 0); + } + return o + String.fromCharCode.apply(null, r); +} +var lEt = function(r) { + ja(o, Sg); + var i = fpn(o); + function o() { + var l, f = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { config: void 0 }).config; + if (vi(this, o), (l = i.call(this, { config: f })).options = { useUnicode: !0, upperCase: !1, customHandled: !1, resourceURL: "https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8", emojis: hpn({}, upn) }, Yl(f) !== "object") + return Ea(l); + var g = f.useUnicode, A = f.customResourceURL, b = f.customRenderer, v = f.upperCase; + return l.options.useUnicode = typeof g == "boolean" ? g : l.options.useUnicode, l.options.upperCase = typeof v == "boolean" ? v : l.options.upperCase, g === !1 && typeof A == "string" && (l.options.resourceURL = A), typeof b == "function" && (l.options.customHandled = !0, l.options.customRenderer = b), l; + } + return yi(o, [{ key: "makeHtml", value: function(l, f) { + var g = this; + return this.test(l) ? l.replace(this.RULE.reg, function(A, b) { + var v; + if (g.options.customHandled && typeof g.options.customRenderer == "function") + return g.options.customRenderer(b); + var k = g.options.emojis[b]; + if (typeof k != "string") + return A; + if (g.options.useUnicode) { + var _, T = Zs(_ = k.split("-")).call(_, function(F) { + return "0x".concat(F); + }); + return dpn.apply(void 0, BO(T)); + } + g.options.upperCase && (k = k.toUpperCase()); + var L = g.options.resourceURL.replace(/\$\{code\}/g, k); + return At(v = '')).call(v, p5(b), ''); + }) : l; + } }, { key: "rule", value: function() { + var l = { begin: ":", content: "([a-zA-Z0-9+_]+?)", end: ":" }; + return l.reg = Tv(l, "g"), l; + } }]), o; +}(); +function Apn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(lEt, "HOOK_NAME", "emoji"); +var uEt = function(r) { + ja(o, Sg); + var i = Apn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "makeHtml", value: function(l) { + return this.test(l) ? l.replace(this.RULE.reg, '$1$2$3') : l; + } }, { key: "rule", value: function() { + var l = { begin: "(^| )\\/", end: "\\/( |$)", content: "([^\\n]+?)" }; + return l.reg = new RegExp(l.begin + l.content + l.end, "g"), l; + } }]), o; +}(); +function gpn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(uEt, "HOOK_NAME", "underline"); +var hEt = function(r) { + ja(o, Sg); + var i = gpn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "makeHtml", value: function(l) { + return this.test(l) ? l.replace(this.RULE.reg, "$1$2$3") : l; + } }, { key: "rule", value: function() { + var l = { begin: "(^| )==", end: "==( |$|\\n)", content: "([^\\n]+?)" }; + return l.reg = new RegExp(l.begin + l.content + l.end, "g"), l; + } }]), o; +}(); +Ui(hEt, "HOOK_NAME", "highLight"); +var dX = P9t, ppn = IPe.includes, mpn = oh(function() { + return !Array(1).includes(); +}); +qa({ target: "Array", proto: !0, forced: mpn }, { includes: function(r) { + return ppn(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var bpn = a0("Array").includes, vpn = Do("".indexOf); +qa({ target: "String", proto: !0, forced: !WPe("includes") }, { includes: function(r) { + return !!~vpn(ah(DO(this)), ah(XPe(r)), arguments.length > 1 ? arguments[1] : void 0); +} }); +var ypn = a0("String").includes, YMe = Array.prototype, JMe = String.prototype, $me = function(r) { + var i = r.includes; + return r === YMe || E1(YMe, r) && i === YMe.includes ? bpn : typeof r == "string" || r === JMe || E1(JMe, r) && i === JMe.includes ? ypn : i; +}, wpn = function(r, i) { + for (var o = -1, l = r == null ? 0 : r.length, f = Array(l); ++o < l; ) + f[o] = i(r[o], o, r); + return f; +}, fEt = function(r) { + return typeof r == "symbol" || RO(r) && y$(r) == "[object Symbol]"; +}, v5t = TO ? TO.prototype : void 0, y5t = v5t ? v5t.toString : void 0, kpn = function r(i) { + if (typeof i == "string") + return i; + if (DG(i)) + return wpn(i, r) + ""; + if (fEt(i)) + return y5t ? y5t.call(i) : ""; + var o = i + ""; + return o == "0" && 1 / i == -1 / 0 ? "-0" : o; +}, xpn = function(r) { + return r == null ? "" : kpn(r); +}, dEt = /[\\^$.*+?()[\]{}|]/g, Cpn = RegExp(dEt.source), _pn = function(r) { + return (r = xpn(r)) && Cpn.test(r) ? r.replace(dEt, "\\$&") : r; +}, Epn = "/·¥、:“”【】()《》".concat("#"), Tpn = [{ icon: "h1", label: "H1 Heading", keyword: "head1", value: "# " }, { icon: "h2", label: "H2 Heading", keyword: "head2", value: "## " }, { icon: "h3", label: "H3 Heading", keyword: "head3", value: "### " }, { icon: "table", label: "Table", keyword: "table", value: `| Header | Header | Header | +| --- | --- | --- | +| Content | Content | Content | +` }, { icon: "code", label: "Code", keyword: "code", value: "```\n\n```\n" }, { icon: "link", label: "Link", keyword: "link", value: "[title](https://url)", selection: { from: 19, to: 14 } }, { icon: "checklist", label: "Checklist", keyword: "checklist", value: `- [ ] item +- [x] item` }, { icon: "tips", label: "Panel", keyword: "panel tips info warning danger success", value: `::: primary title +content +::: +` }, { icon: "insertFlow", label: "Detail", keyword: "detail", value: `+++ 点击展开更多 +内容 +++- 默认展开 +内容 +++ 默认收起 +内容 ++++ +` }], w5t = [{ icon: "FullWidth", label: "`", keyword: "···", value: "`" }, { icon: "FullWidth", label: "$", keyword: "¥", value: "$" }, { icon: "FullWidth", label: "/", keyword: "、", value: "/" }, { icon: "FullWidth", label: "\\", keyword: "、", value: "\\" }, { icon: "FullWidth", label: ":", keyword: ":", value: ":" }, { icon: "FullWidth", label: '"', keyword: "“", value: '"' }, { icon: "FullWidth", label: '"', keyword: "”", value: '"' }, { icon: "FullWidth", label: "[", keyword: "【", value: "[" }, { icon: "FullWidth", label: "]", keyword: "】", value: "]" }, { icon: "FullWidth", label: "(", keyword: "(", value: "(" }, { icon: "FullWidth", label: ")", keyword: ")", value: ")" }, { icon: "FullWidth", label: "<", keyword: "《", value: "<" }, { icon: "FullWidth", label: ">", keyword: "》", value: ">" }], Bpn = [{ icon: "FullWidth", label: "[]", keyword: "【】", value: "[]", goLeft: 1 }, { icon: "FullWidth", label: "【】", keyword: "【", value: "【】", goLeft: 1 }, { icon: "link", label: "Link", keyword: "【】", value: "[title](https://url)", selection: { from: 19, to: 14 } }, { icon: "FullWidth", label: "()", keyword: "(", value: "()", goLeft: 1 }, { icon: "FullWidth", label: "()", keyword: "(", value: "()", goLeft: 1 }, { icon: "FullWidth", label: "<>", keyword: "《》", value: "<>", goLeft: 1 }, { icon: "FullWidth", label: "《》", keyword: "《》", value: "《》", goLeft: 1 }, { icon: "FullWidth", label: '""', keyword: "“”", value: '""', goLeft: 1 }, { icon: "FullWidth", label: "“”", keyword: "“”", value: "”“", goLeft: 1 }], Spn = At(w5t).call(w5t, Bpn), Lpn = function() { + return "CodeMirror.Pass"; +}; +function Ipn(r, i) { + var o = dX !== void 0 && QO(r) || r["@@iterator"]; + if (!o) { + if (kk(r) || (o = function(v, k) { + var _; + if (v) { + if (typeof v == "string") + return k5t(v, k); + var T = Da(_ = Object.prototype.toString.call(v)).call(_, 8, -1); + if (T === "Object" && v.constructor && (T = v.constructor.name), T === "Map" || T === "Set") + return Su(v); + if (T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)) + return k5t(v, k); + } + }(r)) || i && r && typeof r.length == "number") { + o && (r = o); + var l = 0, f = function() { + }; + return { s: f, n: function() { + return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; + }, e: function(v) { + throw v; + }, f }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var g, A = !0, b = !1; + return { s: function() { + o = o.call(r); + }, n: function() { + var v = o.next(); + return A = v.done, v; + }, e: function(v) { + b = !0, g = v; + }, f: function() { + try { + A || o.return == null || o.return(); + } finally { + if (b) + throw g; + } + } }; +} +function k5t(r, i) { + (i == null || i > r.length) && (i = r.length); + for (var o = 0, l = new Array(i); o < i; o++) + l[o] = r[o]; + return l; +} +function Mpn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var AEt = function(r) { + ja(o, Sg); + var i = Mpn(o); + function o(l) { + var f, g = l.config; + return vi(this, o), (f = i.call(this, { needCache: !0 })).config = g, f.RULE = f.rule(), f.suggesterPanel = new Fpn(), f; + } + return yi(o, [{ key: "afterInit", value: function(l) { + vk() && (typeof l == "function" && l(), this.initConfig(this.config)); + } }, { key: "initConfig", value: function(l) { + var f = this, g = l.suggester; + this.suggester = {}; + var A, b = [], v = Ipn(Epn); + try { + var k = function() { + var _ = A.value; + b.push({ keyword: _, suggestList: function(T, L) { + var F = T.toLowerCase(), U = function(J, he) { + var Y, ue, le, be = At(Y = []).call(Y, Tpn), ke = At(ue = []).call(ue, Spn); + return no(be).call(be, function(de) { + de.label = he ? he[de.label] : de.label; + }), no(ke).call(ke, function(de) { + de.label = he ? he[de.label] : de.label; + }), (J[0] === "/" || J[0] === "、" || $me("#").call("#", J[0])) && no(be).call(be, function(de) { + de.keyword = "".concat(J[0], de.keyword); + }), dd(le = At(ke).call(ke, be)).call(le, function(de) { + var Te; + return RG(Te = de.keyword).call(Te, J[0]); + }); + }(_, this.$locale); + if (/^\s$/.test(F)) + L(!1); + else { + var q = F.replace(/\s+/g, "").replace(new RegExp("^".concat(_), "g"), "").split("").join(".*?"), Z = new RegExp("^.*?".concat(q, ".*?$"), "i"), R = dd(U).call(U, function(J) { + return !F || Z.test(J.keyword); + }); + L(R.length !== 0 && R); + } + } }); + }; + for (v.s(); !(A = v.n()).done; ) + k(); + } catch (_) { + v.e(_); + } finally { + v.f(); + } + g = g ? At(g).call(g, b) : b, no(g).call(g, function(_) { + _.suggestList ? (_.keyword || (_.keyword = "@"), f.suggester[_.keyword] = _) : console.warn("[cherry-suggester]: the suggestList of config is missing."); + }), this.suggesterPanel.hasEditor() && (this.suggesterPanel.editor = null); + } }, { key: "makeHtml", value: function(l) { + var f, g; + if (!this.RULE.reg) + return l; + if (!this.suggesterPanel.hasEditor() && vk()) { + var A = this.$engine.$cherry.editor; + this.suggesterPanel.setEditor(A), this.suggesterPanel.setSuggester(this.suggester), this.suggesterPanel.bindEvent(); + } + return Bg() ? l.replace(this.RULE.reg, Bo(g = this.toHtml).call(g, this)) : G9(l, this.RULE.reg, Bo(f = this.toHtml).call(f, this), !0, 1); + } }, { key: "toHtml", value: function(l, f, g, A) { + var b, v, k, _, T; + return A ? ((v = this.suggester[g]) === null || v === void 0 || (k = v.echo) === null || k === void 0 ? void 0 : k.call(this, A)) || At(_ = At(T = "".concat(f, '')).call(T, g)).call(_, A, "") : ((b = this.suggester[g]) === null || b === void 0 ? void 0 : b.echo) === !1 ? "".concat(f) : this.suggester[g] ? A ? f + A : "".concat(f) : f + A; + } }, { key: "rule", value: function() { + var l, f, g; + if (!this.suggester || yh(this.suggester).length <= 0) + return {}; + var A = Zs(l = yh(this.suggester)).call(l, function(b) { + return _pn(b); + }).join("|"); + return { reg: new RegExp(At(f = At(g = "".concat(Bg() ? "((?'), this.searchCache = !1, this.searchKeyCache = [], this.optionList = [], this.cursorMove = !0, this.suggesterConfig = {}; + } + return yi(r, [{ key: "tryCreatePanel", value: function() { + var i, o, l; + !this.$suggesterPanel && vk() && document && ((i = document) === null || i === void 0 || (o = i.body) === null || o === void 0 || o.appendChild(this.createDom(this.panelWrap)), this.$suggesterPanel = (l = document) === null || l === void 0 ? void 0 : l.querySelector(".cherry-suggester-panel")); + } }, { key: "hasEditor", value: function() { + return !!this.editor && !!this.editor.editor.display && !!this.editor.editor.display.wrapper; + } }, { key: "setEditor", value: function(i) { + this.editor = i; + } }, { key: "setSuggester", value: function(i) { + this.suggesterConfig = i; + } }, { key: "bindEvent", value: function() { + var i = this, o = !1; + this.editor.editor.on("change", function(g, A) { + o = !0, i.onCodeMirrorChange(g, A); + }), this.editor.editor.on("keydown", function(g, A) { + o = !0, i.enableRelate() && i.onKeyDown(g, A); + }), this.editor.editor.on("cursorActivity", function() { + o || i.stopRelate(), o = !1; + }); + var l = this.editor.editor.getOption("extraKeys"), f = ["Up", "Down", "Enter"]; + no(f).call(f, function(g) { + if (typeof l[g] == "function") { + var A = l[g]; + l[g] = function(v) { + if (i.cursorMove) { + var k = A.call(v, v); + if (k) + return k; + } + }; + } else if (l[g]) { + if (typeof l[g] == "string") { + var b = l[g]; + l[g] = function(v) { + i.cursorMove && i.editor.editor.execCommand(b); + }; + } + } else + l[g] = function() { + if (i.cursorMove) + return Lpn(); + }; + }), this.editor.editor.setOption("extraKeys", l), this.editor.editor.on("scroll", function(g, A) { + i.searchCache && i.relocatePanel(i.editor.editor); + }), this.onClickPanelItem(); + } }, { key: "onClickPanelItem", value: function() { + var i = this; + this.tryCreatePanel(), this.$suggesterPanel.addEventListener("click", function(o) { + var l = function(f, g) { + var A, b = -1; + return no(A = f.childNodes).call(A, function(v, k) { + return v === g ? b = k : ""; + }), b; + }(i.$suggesterPanel, o.target); + l > -1 && i.pasteSelectResult(l), i.stopRelate(); + }, !1); + } }, { key: "showSuggesterPanel", value: function(i) { + var o = i.left, l = i.top, f = i.items; + this.tryCreatePanel(), !this.$suggesterPanel && vk() && (document.body.appendChild(this.createDom(this.panelWrap)), this.$suggesterPanel = document.querySelector(".cherry-suggester-panel")), this.updatePanel(f), this.$suggesterPanel.style.left = "".concat(o, "px"), this.$suggesterPanel.style.top = "".concat(l, "px"), this.$suggesterPanel.style.display = "block", this.$suggesterPanel.style.position = "absolute", this.$suggesterPanel.style.zIndex = "100"; + } }, { key: "hideSuggesterPanel", value: function() { + this.tryCreatePanel(), this.$suggesterPanel && (this.$suggesterPanel.style.display = "none"); + } }, { key: "updatePanel", value: function(i) { + var o = this; + this.tryCreatePanel(); + var l = Zs(i).call(i, function(g, A) { + if (Yl(g) === "object" && g !== null) { + var b, v = g.label; + return g != null && g.icon && (v = At(b = '')).call(b, v)), o.renderPanelItem(v, A === 0); + } + return o.renderPanelItem(g, A === 0); + }).join(""), f = this.suggesterConfig[this.keyword]; + f && typeof f.suggestListRender == "function" && (l = f.suggestListRender.call(this, i) || l), this.$suggesterPanel.innerHTML = "", typeof l == "string" ? this.$suggesterPanel.innerHTML = l : kk(l) && l.length > 0 ? no(l).call(l, function(g) { + o.$suggesterPanel.appendChild(g); + }) : Yl(l) === "object" && l.nodeType === 1 && this.$suggesterPanel.appendChild(l); + } }, { key: "renderPanelItem", value: function(i, o) { + return o ? '
    '.concat(i, "
    ") : '
    '.concat(i, "
    "); + } }, { key: "createDom", value: function() { + var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; + this.template || (this.template = document.createElement("div")), this.template.innerHTML = Go(i).call(i); + var o = document.createDocumentFragment(); + return Zs(Array.prototype).call(this.template.childNodes, function(l, f) { + o.appendChild(l); + }), o; + } }, { key: "relocatePanel", value: function(i) { + var o = document.querySelector(".CodeMirror-cursors .CodeMirror-cursor"); + if (o || (o = document.querySelector(".CodeMirror-selected")), !o) + return !1; + var l = i.getCursor(), f = i.lineInfo(l.line).handle.height, g = o.getBoundingClientRect(), A = g.top + f, b = g.left; + this.showSuggesterPanel({ left: b, top: A, items: this.optionList }); + } }, { key: "getCursorPos", value: function(i) { + var o = document.querySelector(".CodeMirror-cursors .CodeMirror-cursor"); + if (!o) + return null; + var l = i.getCursor(), f = i.lineInfo(l.line).handle.height, g = o.getBoundingClientRect(), A = g.top + f; + return { left: g.left, top: A }; + } }, { key: "startRelate", value: function(i, o, l) { + this.cursorFrom = l, this.keyword = o, this.searchCache = !0, this.relocatePanel(i); + } }, { key: "stopRelate", value: function() { + this.hideSuggesterPanel(), this.cursorFrom = null, this.cursorTo = null, this.keyword = "", this.searchKeyCache = [], this.searchCache = !1, this.cursorMove = !0, this.optionList = []; + } }, { key: "pasteSelectResult", value: function(i, o) { + if (this.cursorTo && this.cursorTo !== this.cursorFrom || (this.cursorTo = JSON.parse(zPe(this.cursorFrom))), this.cursorTo) { + this.cursorTo.ch += 1; + var l = this.cursorFrom, f = this.cursorTo; + if (this.optionList[i]) { + var g = ""; + if (Yl(this.optionList[i]) === "object" && this.optionList[i] !== null && typeof this.optionList[i].value == "string") + g = this.optionList[i].value; + else if (Yl(this.optionList[i]) === "object" && this.optionList[i] !== null && typeof this.optionList[i].value == "function") + g = this.optionList[i].value(); + else if (typeof this.optionList[i] == "string") + g = "".concat(this.optionList[i], " "); + else { + var A; + g = At(A = " ".concat(this.keyword)).call(A, this.optionList[i], " "); + } + if (g && this.editor.editor.replaceRange(g, l, f), this.optionList[i].goLeft) { + var b = this.editor.editor.getCursor(); + this.editor.editor.setCursor(b.line, b.ch - this.optionList[i].goLeft); + } + if (this.optionList[i].selection) { + var v = this.editor.editor.getCursor().line, k = this.editor.editor.getCursor().ch; + this.editor.editor.setSelection({ line: v, ch: k - this.optionList[i].selection.from }, { line: v, ch: k - this.optionList[i].selection.to }); + } + } + } + } }, { key: "findSelectedItemIndex", value: function() { + return Dme(Array.prototype).call(this.$suggesterPanel.childNodes, function(i) { + return i.classList.contains("cherry-suggester-panel__item--selected"); + }); + } }, { key: "enableRelate", value: function() { + return this.searchCache; + } }, { key: "onCodeMirrorChange", value: function(i, o) { + var l = this, f = o.text, g = o.from, A = o.to, b = o.origin, v = f.length === 1 ? f[0] : ""; + if (!this.enableRelate() && this.suggesterConfig[v] && this.startRelate(i, v, g), this.enableRelate() && (v || b === "+delete")) { + var k; + if (this.cursorTo = A, v) + this.searchKeyCache.push(v); + else if (b === "+delete" && (this.searchKeyCache.pop(), this.searchKeyCache.length === 0)) + return void this.stopRelate(); + typeof ((k = this.suggesterConfig[this.keyword]) === null || k === void 0 ? void 0 : k.suggestList) == "function" && this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""), function(_) { + _ !== !1 ? (l.optionList = _ && _.length ? _ : [], l.updatePanel(l.optionList)) : l.stopRelate(); + }); + } + } }, { key: "onKeyDown", value: function(i, o) { + var l, f = this; + if (this.tryCreatePanel(), !this.$suggesterPanel) + return !1; + var g = o.keyCode; + if ($me(l = [38, 40]).call(l, g)) { + if (this.optionList.length === 0) + return void lm(function() { + f.stopRelate(); + }, 0); + this.cursorMove = !1; + var A = this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"), b = null; + g !== 38 || A.previousElementSibling ? g !== 40 || A.nextElementSibling ? g === 38 ? b = A.previousElementSibling : g === 40 && (b = A.nextElementSibling) : b = this.$suggesterPanel.firstElementChild : b = this.$suggesterPanel.lastElementChild, A.classList.remove("cherry-suggester-panel__item--selected"), b.classList.add("cherry-suggester-panel__item--selected"); + } else + g === 13 ? (o.stopPropagation(), this.cursorMove = !1, this.pasteSelectResult(this.findSelectedItemIndex(), o), i.focus(), lm(function() { + f.stopRelate(); + }, 0)) : g !== 27 && g !== 37 && g !== 39 || (o.stopPropagation(), i.focus(), lm(function() { + f.stopRelate(); + }, 0)); + } }]), r; +}(); +function Opn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var gEt = function(r) { + ja(o, Sg); + var i = Opn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "makeHtml", value: function(l) { + return this.test(l) ? l.replace(this.RULE.reg, "$1$2$3$4") : l; + } }, { key: "rule", value: function() { + var l = { begin: "(^| )\\{", end: "\\}( |$)", content: `([^ +]+?)\\|([^ +]+?)` }; + return l.reg = new RegExp(l.begin + l.content + l.end, "g"), l; + } }]), o; +}(); +function Dpn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(gEt, "HOOK_NAME", "ruby"); +var pEt = function(r) { + ja(o, r0); + var i = Dpn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, { needCache: !0 })).initBrReg(l.globalConfig.classicBr), f; + } + return yi(o, [{ key: "makeHtml", value: function(l, f) { + var g = this; + return l.replace(this.RULE.reg, function(A, b, v, k) { + var _, T, L, F, U, q = g.getLineCount(A, b), Z = g.$engine.md5(A), R = g.$getPanelInfo(v, k, f), J = R.title, he = R.body, Y = R.appendStyle, ue = R.className; + return c$(A, g.pushCache(At(_ = At(T = At(L = At(F = At(U = '
    ")).call(T, J)).call(_, he, "
    "), Z, q)); + }); + } }, { key: "$getClassByType", value: function(l) { + return /(left|right|center)/i.test(l) ? "cherry-text-align cherry-text-align__".concat(l) : "cherry-panel cherry-panel__".concat(l); + } }, { key: "$getPanelInfo", value: function(l, f, g) { + var A, b = this, v = { type: this.$getTargetType(l), title: g(this.$getTitle(l)).html, body: f, appendStyle: "", className: "" }; + v.className = this.$getClassByType(v.type), /(left|right|center)/i.test(v.type) && (v.appendStyle = 'style="text-align:'.concat(v.type, ';"')), v.title = At(A = '
    ')).call(A, v.title, "
    "); + var k = function(T) { + var L, F; + if (Go(T).call(T) === "") + return ""; + var U = g(T).html, q = "p"; + return new RegExp("<(".concat(Die, ")[^>]*>"), "i").test(U) && (q = "div"), At(L = At(F = "<".concat(q, ">")).call(F, b.$cleanParagraph(U), ""); + }, _ = ""; + return _ = this.isContainsCache(v.body) ? this.makeExcludingCached(v.body, k) : k(v.body), v.body = '
    '.concat(_, "
    "), v; + } }, { key: "$getTitle", value: function(l) { + var f = Go(l).call(l); + return /\s/.test(f) ? f.replace(/[^\s]+\s/, "") : ""; + } }, { key: "$getTargetType", value: function(l) { + var f = /\s/.test(Go(l).call(l)) ? Go(l).call(l).replace(/\s.*$/, "") : l; + switch (Go(f).call(f).toLowerCase()) { + case "primary": + case "p": + default: + return "primary"; + case "info": + case "i": + return "info"; + case "warning": + case "w": + return "warning"; + case "danger": + case "d": + return "danger"; + case "success": + case "s": + return "success"; + case "right": + case "r": + return "right"; + case "center": + case "c": + return "center"; + case "left": + case "l": + return "left"; + } + } }, { key: "rule", value: function() { + return YPe(); + } }]), o; +}(); +function Npn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(pEt, "HOOK_NAME", "panel"); +var mEt = function(r) { + ja(o, r0); + var i = Npn(o); + function o() { + return vi(this, o), i.call(this, { needCache: !0 }); + } + return yi(o, [{ key: "makeHtml", value: function(l, f) { + var g = this; + return l.replace(this.RULE.reg, function(A, b, v, k, _) { + var T, L, F, U = g.getLineCount(A, b), q = g.$engine.md5(A), Z = g.$getDetailInfo(v, k, _, f), R = Z.type, J = Z.html; + return c$(A, g.pushCache(At(T = At(L = At(F = '
    ')).call(T, J, "
    "), q, U)); + }); + } }, { key: "$getDetailInfo", value: function(l, f, g, A) { + var b = this, v = /\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(g) ? "multiple" : "single", k = g.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/), _ = l === "-", T = f, L = ""; + return v === "multiple" ? no(k).call(k, function(F) { + if (/\+\+/.test(F)) + return _ = /\+\+-/.test(F), T = F.replace(/\+\+[-]{0,1}\s*([^\n]+)$/, "$1"), !0; + L += b.$getDetailHtml(_, T, F, A); + }) : L = this.$getDetailHtml(_, T, g, A), { type: v, html: L }; + } }, { key: "$getDetailHtml", value: function(l, f, g, A) { + var b = this, v = "
    "), k = function(T) { + var L, F; + if (Go(T).call(T) === "") + return ""; + var U = A(T).html, q = "p"; + return new RegExp("<(".concat(Die, ")[^>]*>"), "i").test(U) && (q = "div"), At(L = At(F = "<".concat(q, ">")).call(F, b.$cleanParagraph(U), ""); + }; + v += "".concat(A(f).html, ""); + var _ = ""; + return _ = this.isContainsCache(g) ? this.makeExcludingCached(g, k) : k(g), v += '
    '.concat(_, "
    "), v += "
    "; + } }, { key: "rule", value: function() { + return B_t(); + } }]), o; +}(); +Ui(mEt, "HOOK_NAME", "detail"); +var x5t = [vG, j_t, tRe, rEt, cEt, oEt, sEt, W_t, q_t, V_t, eEt, aEt, X_t, Y_t, Z_t, mEt, pEt, G_t, lEt, J_t, K_t, tEt, z_t, R_t, P_t, Q_t, H_t, U_t, gEt, $_t, uEt, hEt, AEt], Ppn = function() { + function r(i, o) { + vi(this, r), this.$cherry = o, C3(this, "_cherry", { get: function() { + return k3.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."), this.$cherry; + } }), this.initMath(i), this.$configInit(i), this.hookCenter = new ggn(x5t, i, o), this.hooks = this.hookCenter.getHookList(), this.md5Cache = {}, this.md5StrMap = {}, this.markdownParams = i, this.currentStrMd5 = [], this.htmlWhiteListAppend = i.engine.global.htmlWhiteList; + } + return yi(r, [{ key: "initMath", value: function(i) { + var o = i.externals, l = i.engine.syntax, f = l.mathBlock.plugins; + if (vk() && (l.mathBlock.src || l.inlineMath.src) && !o.MathJax && !window.MathJax) { + (function(A) { + if (vk()) { + var b = A ? ["input/asciimath", "[tex]/noerrors", "[tex]/cancel", "[tex]/color", "[tex]/boldsymbol"] : []; + window.MathJax = { startup: { elements: [".Cherry-Math", ".Cherry-InlineMath"], typeset: !0 }, tex: { inlineMath: [["$", "$"], ["\\(", "\\)"]], displayMath: [["$$", "$$"], ["\\[", "\\]"]], tags: "ams", packages: { "[+]": ["noerrors", "cancel", "color"] }, macros: { bm: ["{\\boldsymbol{#1}}", 1] } }, options: { skipHtmlTags: ["script", "noscript", "style", "textarea", "pre", "code", "a"], ignoreHtmlClass: "tex2jax_ignore", processHtmlClass: "tex2jax_process", enableMenu: !1 }, loader: { load: b } }; + } + })(f); + var g = document.createElement("script"); + g.src = l.mathBlock.src ? l.mathBlock.src : l.inlineMath.src, g.async = !0, g.src && document.head.appendChild(g); + } + } }, { key: "$configInit", value: function(i) { + if (i.hooksConfig && KQ(i.hooksConfig.hooksList, Array)) + for (var o = 0; o < i.hooksConfig.hooksList.length; o++) { + var l = i.hooksConfig.hooksList[o]; + try { + l.getType() === "sentence" && V4t(l, Sg), l.getType() === "paragraph" && V4t(l, r0), Agn(l), x5t.push(l); + } catch { + throw new Error("the hook does not correctly inherit"); + } + } + } }, { key: "$beforeMakeHtml", value: function(i) { + var o = i.replace(/~/g, "~T"); + return (o = (o = (o = o.replace(/\$/g, "~D")).replace(/\r\n/g, ` +`)).replace(/\r/g, ` +`))[o.length - 1] !== ` +` && (o += ` +`), o = this.$fireHookAction(o, "sentence", "beforeMakeHtml"), o = this.$fireHookAction(o, "paragraph", "beforeMakeHtml"); + } }, { key: "$afterMakeHtml", value: function(i) { + var o = this.$fireHookAction(i, "paragraph", "afterMakeHtml"); + return o = (o = (o = (o = o.replace(/~D/g, "$")).replace(/~T/g, "~")).replace(/\\<\//g, "\\ >> 0 : A >>> 0; (v = g.exec(f)) && !((k = v.index + v[0].length) > F && (T.push(f.slice(F, v.index)), !l && v.length > 1 && v[0].replace(b, function() { + for (var U = 1; U < arguments.length - 2; U++) + arguments[U] === r && (v[U] = r); + }), v.length > 1 && v.index < f.length && Array.prototype.push.apply(T, v.slice(1)), _ = v[0].length, F = k, T.length >= A)); ) + g.lastIndex === v.index && g.lastIndex++; + return F === f.length ? !_ && g.test("") || T.push("") : T.push(f.slice(F)), T.length > A ? T.slice(0, A) : T; + }, i; +}(), Kpn = /([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/, zpn = /^\.|#/, Gpn = function(r, i) { + if (!r) + return "DIV"; + var o, l, f, g, A = !i.hasOwnProperty("id"), b = jpn(r, Kpn), v = null; + for (zpn.test(b[1]) && (v = "DIV"), g = 0; g < b.length; g++) + (l = b[g]) && (f = l.charAt(0), v ? f === "." ? (o = o || []).push(l.substring(1, l.length)) : f === "#" && A && (i.id = l.substring(1, l.length)) : v = l); + return o && (i.className && o.push(i.className), i.className = o.join(" ")), i.namespace ? v : v.toUpperCase(); +}, Xpn = Ume; +function Ume(r) { + if (!(this instanceof Ume)) + return new Ume(r); + this.value = r; +} +Ume.prototype.hook = function(r, i) { + r[i] !== this.value && (r[i] = this.value); +}; +var ZMe = typeof window < "u" ? window : jy !== void 0 ? jy : {}, _5t = function(r, i) { + return r in ZMe ? ZMe[r] : (ZMe[r] = i, i); +}, Wpn = function(r, i, o) { + var l = "__INDIVIDUAL_ONE_VERSION_" + r, f = _5t(l + "_ENFORCE_SINGLETON", i); + if (f !== i) + throw new Error("Can only have one copy of " + r + `. +You already have version ` + f + ` installed. +This means you cannot install version ` + i); + return _5t(l, o); +}; +Wpn("ev-store", "7"); +var E5t = "__EV_STORE_KEY@7", T5t = function(r) { + var i = r[E5t]; + return i || (i = r[E5t] = {}), i; +}, Vpn = Jre; +function Jre(r) { + if (!(this instanceof Jre)) + return new Jre(r); + this.value = r; +} +Jre.prototype.hook = function(r, i) { + T5t(r)[i.substr(3)] = this.value; +}, Jre.prototype.unhook = function(r, i) { + T5t(r)[i.substr(3)] = void 0; +}; +var qpn = function(r, i, o) { + var l, f, g, A, b = []; + return !o && function(v) { + return typeof v == "string" || Xbe(v) || vEt(v); + }(i) && (o = i, f = {}), l = Gpn(r, f = f || i || {}), f.hasOwnProperty("key") && (g = f.key, f.key = void 0), f.hasOwnProperty("namespace") && (A = f.namespace, f.namespace = void 0), l !== "INPUT" || A || !f.hasOwnProperty("value") || f.value === void 0 || HG(f.value) || (f.value = Xpn(f.value)), function(v) { + for (var k in v) + if (v.hasOwnProperty(k)) { + var _ = v[k]; + if (HG(_)) + continue; + k.substr(0, 3) === "ev-" && (v[k] = Vpn(_)); + } + }(f), o != null && bEt(o, b, l, f), new $pn(l, f, b, g, A); +}; +function bEt(r, i, o, l) { + if (typeof r == "string") + i.push(new C5t(r)); + else if (typeof r == "number") + i.push(new C5t(String(r))); + else if (vEt(r)) + i.push(r); + else { + if (!Xbe(r)) { + if (r == null) + return; + throw function(g) { + var A = new Error(); + return A.type = "virtual-hyperscript.unexpected.virtual-element", A.message = `Unexpected virtual child passed to h(). +Expected a VNode / Vthunk / VWidget / string but: +got: +` + B5t(g.foreignObject) + `. +The parent vnode is: +` + B5t(g.parentVnode), A.foreignObject = g.foreignObject, A.parentVnode = g.parentVnode, A; + }({ foreignObject: r, parentVnode: { tagName: o, properties: l } }); + } + for (var f = 0; f < r.length; f++) + bEt(r[f], i, o, l); + } +} +function vEt(r) { + return H9(r) || Yre(r) || j9(r) || SO(r); +} +function B5t(r) { + try { + return JSON.stringify(r, null, " "); + } catch { + return String(r); + } +} +var S5t = qpn; +nC.NONE = 0, nC.VTEXT = 1, nC.VNODE = 2, nC.WIDGET = 3, nC.PROPS = 4, nC.ORDER = 5, nC.INSERT = 6, nC.REMOVE = 7, nC.THUNK = 8; +var Wf = nC; +function nC(r, i, o) { + this.type = Number(r), this.vNode = i, this.patch = o; +} +nC.prototype.version = Nie, nC.prototype.type = "VirtualPatch"; +var yEt = function(r, i) { + var o = r, l = i; + return SO(i) && (l = L5t(i, r)), SO(r) && (o = L5t(r, null)), { a: o, b: l }; +}; +function L5t(r, i) { + var o = r.vnode; + if (o || (o = r.vnode = r.render(i)), !(H9(o) || Yre(o) || j9(o))) + throw new Error("thunk did not return a valid node"); + return o; +} +var Zre = function(r) { + return typeof r == "object" && r !== null; +}, Ypn = function r(i, o) { + var l; + for (var f in i) { + f in o || ((l = l || {})[f] = void 0); + var g = i[f], A = o[f]; + if (g !== A) + if (Zre(g) && Zre(A)) + if (I5t(A) !== I5t(g)) + (l = l || {})[f] = A; + else if (HG(A)) + (l = l || {})[f] = A; + else { + var b = r(g, A); + b && ((l = l || {})[f] = b); + } + else + (l = l || {})[f] = A; + } + for (var v in o) + v in i || ((l = l || {})[v] = o[v]); + return l; +}; +function I5t(r) { + return Object.getPrototypeOf ? Object.getPrototypeOf(r) : r.__proto__ ? r.__proto__ : r.constructor ? r.constructor.prototype : void 0; +} +function wEt(r, i) { + var o = { a: r }; + return kEt(r, i, o, 0), o; +} +function kEt(r, i, o, l) { + if (r !== i) { + var f = o[l], g = !1; + if (SO(r) || SO(i)) + nRe(r, i, o, l); + else if (i == null) + j9(r) || (M5t(r, o, l), f = o[l]), f = S9(f, new Wf(Wf.REMOVE, r, i)); + else if (H9(i)) + if (H9(r)) + if (r.tagName === i.tagName && r.namespace === i.namespace && r.key === i.key) { + var A = Ypn(r.properties, i.properties); + A && (f = S9(f, new Wf(Wf.PROPS, r, A))), f = function(b, v, k, _, T) { + for (var L = b.children, F = function(ue, le) { + var be = F5t(le), ke = be.keys, de = be.free; + if (de.length === le.length) + return { children: le, moves: null }; + var Te = F5t(ue), xe = Te.keys; + if (Te.free.length === ue.length) + return { children: le, moves: null }; + for (var ie = [], Be = 0, te = de.length, Me = 0, ve = 0; ve < ue.length; ve++) { + var ge, Je = ue[ve]; + Je.key ? ke.hasOwnProperty(Je.key) ? (ge = ke[Je.key], ie.push(le[ge])) : (ge = ve - Me++, ie.push(null)) : Be < te ? (ge = de[Be++], ie.push(le[ge])) : (ge = ve - Me++, ie.push(null)); + } + for (var ot = Be >= de.length ? le.length : de[Be], bt = 0; bt < le.length; bt++) { + var gt = le[bt]; + gt.key ? xe.hasOwnProperty(gt.key) || ie.push(gt) : bt >= ot && ie.push(gt); + } + for (var je, Qe = ie.slice(), kt = 0, Wt = [], jt = [], Zn = 0; Zn < le.length; ) { + var Ft = le[Zn]; + for (je = Qe[kt]; je === null && Qe.length; ) + Wt.push(Qge(Qe, kt, null)), je = Qe[kt]; + je && je.key === Ft.key ? (kt++, Zn++) : Ft.key ? (je && je.key && ke[je.key] !== Zn + 1 ? (Wt.push(Qge(Qe, kt, je.key)), (je = Qe[kt]) && je.key === Ft.key ? kt++ : jt.push({ key: Ft.key, to: Zn })) : jt.push({ key: Ft.key, to: Zn }), Zn++) : je && je.key && Wt.push(Qge(Qe, kt, je.key)); + } + for (; kt < Qe.length; ) + je = Qe[kt], Wt.push(Qge(Qe, kt, je && je.key)); + return Wt.length === Me && !jt.length ? { children: ie, moves: null } : { children: ie, moves: { removes: Wt, inserts: jt } }; + }(L, v.children), U = F.children, q = L.length, Z = U.length, R = q > Z ? q : Z, J = 0; J < R; J++) { + var he = L[J], Y = U[J]; + T += 1, he ? kEt(he, Y, k, T) : Y && (_ = S9(_, new Wf(Wf.INSERT, null, Y))), H9(he) && he.count && (T += he.count); + } + return F.moves && (_ = S9(_, new Wf(Wf.ORDER, b, F.moves))), _; + }(r, i, o, f, l); + } else + f = S9(f, new Wf(Wf.VNODE, r, i)), g = !0; + else + f = S9(f, new Wf(Wf.VNODE, r, i)), g = !0; + else + Yre(i) ? Yre(r) ? r.text !== i.text && (f = S9(f, new Wf(Wf.VTEXT, r, i))) : (f = S9(f, new Wf(Wf.VTEXT, r, i)), g = !0) : j9(i) && (j9(r) || (g = !0), f = S9(f, new Wf(Wf.WIDGET, r, i))); + f && (o[l] = f), g && M5t(r, o, l); + } +} +function M5t(r, i, o) { + CEt(r, i, o), xEt(r, i, o); +} +function xEt(r, i, o) { + if (j9(r)) + typeof r.destroy == "function" && (i[o] = S9(i[o], new Wf(Wf.REMOVE, r, null))); + else if (H9(r) && (r.hasWidgets || r.hasThunks)) + for (var l = r.children, f = l.length, g = 0; g < f; g++) { + var A = l[g]; + xEt(A, i, o += 1), H9(A) && A.count && (o += A.count); + } + else + SO(r) && nRe(r, null, i, o); +} +function nRe(r, i, o, l) { + var f = yEt(r, i), g = wEt(f.a, f.b); + (function(A) { + for (var b in A) + if (b !== "a") + return !0; + return !1; + })(g) && (o[l] = new Wf(Wf.THUNK, null, g)); +} +function CEt(r, i, o) { + if (H9(r)) { + if (r.hooks && (i[o] = S9(i[o], new Wf(Wf.PROPS, r, function(b) { + var v = {}; + for (var k in b) + v[k] = void 0; + return v; + }(r.hooks)))), r.descendantHooks || r.hasThunks) + for (var l = r.children, f = l.length, g = 0; g < f; g++) { + var A = l[g]; + CEt(A, i, o += 1), H9(A) && A.count && (o += A.count); + } + } else + SO(r) && nRe(r, null, i, o); +} +function Qge(r, i, o) { + return r.splice(i, 1), { from: i, key: o }; +} +function F5t(r) { + for (var i = {}, o = [], l = r.length, f = 0; f < l; f++) { + var g = r[f]; + g.key ? i[g.key] = f : o.push(f); + } + return { keys: i, free: o }; +} +function S9(r, i) { + return r ? (Xbe(r) ? r.push(i) : r = [r, i], r) : i; +} +var eFe, Ipe, Jpn = wEt, Zpn = (eFe = Object.freeze({ __proto__: null, default: {} })) && eFe.default || eFe, O5t = jy !== void 0 ? jy : typeof window < "u" ? window : {}; +typeof document < "u" ? Ipe = document : (Ipe = O5t["__GLOBAL_DOCUMENT_CACHE@4"]) || (Ipe = O5t["__GLOBAL_DOCUMENT_CACHE@4"] = Zpn); +var _Et = Ipe, EEt = function(r, i, o) { + for (var l in i) { + var f = i[l]; + f === void 0 ? D5t(r, l, f, o) : HG(f) ? (D5t(r, l, f, o), f.hook && f.hook(r, l, o ? o[l] : void 0)) : Zre(f) ? emn(r, i, o, l, f) : r[l] = f; + } +}; +function D5t(r, i, o, l) { + if (l) { + var f = l[i]; + if (HG(f)) + f.unhook && f.unhook(r, i, o); + else if (i === "attributes") + for (var g in f) + r.removeAttribute(g); + else if (i === "style") + for (var A in f) + r.style[A] = ""; + else + r[i] = typeof f == "string" ? "" : null; + } +} +function emn(r, i, o, l, f) { + var g = o ? o[l] : void 0; + if (l !== "attributes") + if (g && Zre(g) && N5t(g) !== N5t(f)) + r[l] = f; + else { + Zre(r[l]) || (r[l] = {}); + var A = l === "style" ? "" : void 0; + for (var b in f) { + var v = f[b]; + r[l][b] = v === void 0 ? A : v; + } + } + else + for (var k in f) { + var _ = f[k]; + _ === void 0 ? r.removeAttribute(k) : r.setAttribute(k, _); + } +} +function N5t(r) { + return Object.getPrototypeOf ? Object.getPrototypeOf(r) : r.__proto__ ? r.__proto__ : r.constructor ? r.constructor.prototype : void 0; +} +var tmn = function r(i, o) { + var l = o && o.document || _Et, f = o ? o.warn : null; + if (i = yEt(i).a, j9(i)) + return i.init(); + if (Yre(i)) + return l.createTextNode(i.text); + if (!H9(i)) + return f && f("Item is not a valid virtual dom node", i), null; + var g = i.namespace === null ? l.createElement(i.tagName) : l.createElementNS(i.namespace, i.tagName), A = i.properties; + EEt(g, A); + for (var b = i.children, v = 0; v < b.length; v++) { + var k = r(b[v], o); + k && g.appendChild(k); + } + return g; +}, nmn = {}, rmn = function(r, i, o, l) { + return o && o.length !== 0 ? (o.sort(imn), TEt(r, i, o, l, 0)) : {}; +}; +function TEt(r, i, o, l, f) { + if (l = l || {}, r) { + P5t(o, f, f) && (l[f] = r); + var g = i.children; + if (g) + for (var A = r.childNodes, b = 0; b < i.children.length; b++) { + f += 1; + var v = g[b] || nmn, k = f + (v.count || 0); + P5t(o, f, k) && TEt(A[b], v, o, l, f), f = k; + } + } + return l; +} +function P5t(r, i, o) { + if (r.length === 0) + return !1; + for (var l, f, g = 0, A = r.length - 1; g <= A; ) { + if (f = r[l = (A + g) / 2 >> 0], g === A) + return f >= i && f <= o; + if (f < i) + g = l + 1; + else { + if (!(f > o)) + return !0; + A = l - 1; + } + } + return !1; +} +function imn(r, i) { + return r > i ? 1 : -1; +} +var amn = function(r, i) { + return j9(r) && j9(i) ? "name" in r && "name" in i ? r.id === i.id : r.init === i.init : !1; +}, R5t = function(r, i, o) { + var l = r.type, f = r.vNode, g = r.patch; + switch (l) { + case Wf.REMOVE: + return function(A, b) { + var v = A.parentNode; + return v && v.removeChild(A), Q5t(A, b), null; + }(i, f); + case Wf.INSERT: + return function(A, b, v) { + var k = v.render(b, v); + return A && A.appendChild(k), A; + }(i, g, o); + case Wf.VTEXT: + return function(A, b, v, k) { + var _; + if (A.nodeType === 3) + A.replaceData(0, A.length, v.text), _ = A; + else { + var T = A.parentNode; + _ = k.render(v, k), T && _ !== A && T.replaceChild(_, A); + } + return _; + }(i, 0, g, o); + case Wf.WIDGET: + return function(A, b, v, k) { + var _, T = amn(b, v); + _ = T ? v.update(b, A) || A : k.render(v, k); + var L = A.parentNode; + return L && _ !== A && L.replaceChild(_, A), T || Q5t(A, b), _; + }(i, f, g, o); + case Wf.VNODE: + return function(A, b, v, k) { + var _ = A.parentNode, T = k.render(v, k); + return _ && T !== A && _.replaceChild(T, A), T; + }(i, 0, g, o); + case Wf.ORDER: + return function(A, b) { + for (var v, k, _, T = A.childNodes, L = {}, F = 0; F < b.removes.length; F++) + v = T[(k = b.removes[F]).from], k.key && (L[k.key] = v), A.removeChild(v); + for (var U = T.length, q = 0; q < b.inserts.length; q++) + v = L[(_ = b.inserts[q]).key], A.insertBefore(v, _.to >= U++ ? null : T[_.to]); + }(i, g), i; + case Wf.PROPS: + return EEt(i, g, f.properties), i; + case Wf.THUNK: + return function(A, b) { + return A && b && A !== b && A.parentNode && A.parentNode.replaceChild(b, A), b; + }(i, o.patch(i, g, o)); + default: + return i; + } +}; +function Q5t(r, i) { + typeof i.destroy == "function" && j9(i) && i.destroy(r); +} +var omn = function r(i, o, l) { + return (l = l || {}).patch = l.patch && l.patch !== r ? l.patch : smn, l.render = l.render || tmn, l.patch(i, o, l); +}; +function smn(r, i, o) { + var l = function(v) { + var k = []; + for (var _ in v) + _ !== "a" && k.push(Number(_)); + return k; + }(i); + if (l.length === 0) + return r; + var f = rmn(r, i.a, l), g = r.ownerDocument; + o.document || g === _Et || (o.document = g); + for (var A = 0; A < l.length; A++) { + var b = l[A]; + r = cmn(r, f[b], i[b], o); + } + return r; +} +function cmn(r, i, o, l) { + if (!i) + return r; + var f; + if (Xbe(o)) + for (var g = 0; g < o.length; g++) + f = R5t(o[g], i, l), i === r && (r = f); + else + f = R5t(o, i, l), i === r && (r = f); + return r; +} +var lmn = omn, umn = function() { + function r(i, o, l) { + vi(this, r), this.options = { newObj: i, oldObj: o, getElement: l }; + } + return yi(r, [{ key: "doDiff", value: function() { + var i = this.findSnakes(this.options.newObj, this.options.oldObj); + return this.assembleResult(i, this.options.newObj, this.options.oldObj); + } }, { key: "getElement", value: function(i, o) { + return typeof this.options.getElement == "function" ? this.options.getElement(i, o) : i[o]; + } }, { key: "findSnakes", value: function(i, o) { + for (var l = i.length || 0, f = o.length || 0, g = l + f, A = { 1: 0 }, b = { 0: { 1: 0 } }, v = 0; v <= g; v++) { + for (var k = {}, _ = -v; _ <= v; _ += 2) { + for (var T = _ === -v || _ !== v && A[_ - 1] < A[_ + 1], L = A[T ? _ + 1 : _ - 1], F = T ? L : L + 1, U = F, q = F - _; U < f && q < l && this.getElement(o, U) === this.getElement(i, q); ) + U += 1, q += 1; + if (A[_] = U, k[_] = U, U >= f && q >= l) + return b[v] = k, this.$backtraceSnakes(b, l, f, v); + } + b[v] = k; + } + return []; + } }, { key: "$backtraceSnakes", value: function(i, o, l, f) { + for (var g = [], A = { x: l, y: o }, b = f; b > 0; b--) { + var v = i[b], k = i[b - 1], _ = A.x - A.y, T = v[_], L = _ === -b || _ !== b && k[_ + 1] > k[_ - 1], F = L ? _ + 1 : _ - 1, U = k[F], q = U - F, Z = L ? U : U + 1; + g.unshift({ xStart: U, xMid: Z, xEnd: T }), A.x = U, A.y = q; + } + return g; + } }, { key: "assembleResult", value: function(i, o, l) { + var f, g = this, A = "color: gray", b = "", v = [], k = 0, _ = [], T = {}, L = {}, F = {}; + return no(i).call(i, function(U, q) { + var Z = U.xStart; + if (q === 0 && U.xStart !== 0) + for (var R = 0; R < U.xStart; R++) + b += "%c".concat(g.getElement(l, R), ", "), v.push(A), k += 1; + U.xMid - U.xStart == 1 ? (T = { type: "delete", oldIndex: U.xStart, newIndex: 0 }, L.type === "delete" && L.oldIndex === T.oldIndex - 1 && (F = F && L), _.push(T), L = T, b += "%c".concat(g.getElement(l, U.xStart), ", "), v.push("color: red"), Z = U.xMid) : (T = { type: "insert", oldIndex: U.xStart, newIndex: k }, L.type === "delete" && L.oldIndex === T.oldIndex - 1 ? (_.pop(), T = { type: "update", oldIndex: (F = F && L).oldIndex, newIndex: k }, v.push("color: blue")) : v.push("color: green"), F = {}, _.push(T), L = T, b += "%c".concat(g.getElement(o, k), ", "), k += 1); + for (var J = 0; J < U.xEnd - Z; J++) + b += "%c".concat(g.getElement(l, Z + J), ", "), v.push(A), k += 1; + }), k3.log.apply(k3, At(f = [b]).call(f, v)), _; + } }]), r; +}(), hmn = TA("iterator"), PDe = !oh(function() { + var r = new URL("b?a=1&b=2&c=3", "http://a"), i = r.searchParams, o = ""; + return r.pathname = "c%20d", i.forEach(function(l, f) { + i.delete("b"), o += f + l; + }), !r.toJSON || !i.sort || r.href !== "http://a/c%20d?a=1&c=3" || i.get("c") !== "3" || String(new URLSearchParams("?a=1")) !== "a=1" || !i[hmn] || new URL("https://a@b").username !== "a" || new URLSearchParams(new URLSearchParams("a=b")).get("a") !== "b" || new URL("http://тест").host !== "xn--e1aybc" || new URL("http://a#б").hash !== "#%D0%B1" || o !== "a1c3" || new URL("http://x", void 0).host !== "x"; +}), W8 = function(r, i, o) { + return _3.f(r, i, o); +}, tFe = 2147483647, fmn = /[^\0-\u007E]/, BEt = /[.\u3002\uFF0E\uFF61]/g, $5t = "Overflow: input needs wider integers to process", U5t = Qi.RangeError, dmn = Do(BEt.exec), sG = Math.floor, nFe = String.fromCharCode, H5t = Do("".charCodeAt), SEt = Do([].join), fO = Do([].push), Amn = Do("".replace), gmn = Do("".split), pmn = Do("".toLowerCase), j5t = function(r) { + return r + 22 + 75 * (r < 26); +}, mmn = function(r, i, o) { + var l = 0; + for (r = o ? sG(r / 700) : r >> 1, r += sG(r / i); r > 455; ) + r = sG(r / 35), l += 36; + return sG(l + 36 * r / (r + 38)); +}, bmn = function(r) { + var i = []; + r = function(R) { + for (var J = [], he = 0, Y = R.length; he < Y; ) { + var ue = H5t(R, he++); + if (ue >= 55296 && ue <= 56319 && he < Y) { + var le = H5t(R, he++); + (64512 & le) == 56320 ? fO(J, ((1023 & ue) << 10) + (1023 & le) + 65536) : (fO(J, ue), he--); + } else + fO(J, ue); + } + return J; + }(r); + var o, l, f = r.length, g = 128, A = 0, b = 72; + for (o = 0; o < r.length; o++) + (l = r[o]) < 128 && fO(i, nFe(l)); + var v = i.length, k = v; + for (v && fO(i, "-"); k < f; ) { + var _ = tFe; + for (o = 0; o < r.length; o++) + (l = r[o]) >= g && l < _ && (_ = l); + var T = k + 1; + if (_ - g > sG((tFe - A) / T)) + throw U5t($5t); + for (A += (_ - g) * T, g = _, o = 0; o < r.length; o++) { + if ((l = r[o]) < g && ++A > tFe) + throw U5t($5t); + if (l == g) { + for (var L = A, F = 36; ; ) { + var U = F <= b ? 1 : F >= b + 26 ? 26 : F - b; + if (L < U) + break; + var q = L - U, Z = 36 - U; + fO(i, nFe(j5t(U + q % Z))), L = sG(q / Z), F += 36; + } + fO(i, nFe(j5t(L))), b = mmn(A, T, k == v), A = 0, k++; + } + } + A++, g++; + } + return SEt(i, ""); +}, vmn = Math.floor, RDe = function(r, i) { + var o = r.length, l = vmn(o / 2); + return o < 8 ? ymn(r, i) : wmn(r, RDe(c5(r, 0, l), i), RDe(c5(r, l), i), i); +}, ymn = function(r, i) { + for (var o, l, f = r.length, g = 1; g < f; ) { + for (l = g, o = r[g]; l && i(r[l - 1], o) > 0; ) + r[l] = r[--l]; + l !== g++ && (r[l] = o); + } + return r; +}, wmn = function(r, i, o, l) { + for (var f = i.length, g = o.length, A = 0, b = 0; A < f || b < g; ) + r[A + b] = A < f && b < g ? l(i[A], o[b]) <= 0 ? i[A++] : o[b++] : A < f ? i[A++] : o[b++]; + return r; +}, LEt = RDe, kmn = TA("iterator"), eie = "URLSearchParams", IEt = eie + "Iterator", MEt = Bv.set, L9 = Bv.getterFor(eie), xmn = Bv.getterFor(IEt), Cmn = Object.getOwnPropertyDescriptor, rRe = function(r) { + if (!of) + return Qi[r]; + var i = Cmn(Qi, r); + return i && i.value; +}, K5t = rRe("fetch"), Hme = rRe("Request"), wre = rRe("Headers"), rFe = Hme && Hme.prototype, z5t = wre && wre.prototype, _mn = Qi.RegExp, Emn = Qi.TypeError, FEt = Qi.decodeURIComponent, Tmn = Qi.encodeURIComponent, Bmn = Do("".charAt), G5t = Do([].join), qQ = Do([].push), QDe = Do("".replace), Smn = Do([].shift), X5t = Do([].splice), W5t = Do("".split), Lmn = Do("".slice), Imn = /\+/g, V5t = Array(4), Mmn = function(r) { + return V5t[r - 1] || (V5t[r - 1] = _mn("((?:%[\\da-f]{2}){" + r + "})", "gi")); +}, Fmn = function(r) { + try { + return FEt(r); + } catch { + return r; + } +}, q5t = function(r) { + var i = QDe(r, Imn, " "), o = 4; + try { + return FEt(i); + } catch { + for (; o; ) + i = QDe(i, Mmn(o--), Fmn); + return i; + } +}, Omn = /[!'()~]|%20/g, Dmn = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+" }, Nmn = function(r) { + return Dmn[r]; +}, Y5t = function(r) { + return QDe(Tmn(r), Omn, Nmn); +}, iFe = L9t(function(r, i) { + MEt(this, { type: IEt, iterator: s$(L9(r).entries), kind: i }); +}, "Iterator", function() { + var r = xmn(this), i = r.kind, o = r.iterator.next(), l = o.value; + return o.done || (o.value = i === "keys" ? l.key : i === "values" ? l.value : [l.key, l.value]), o; +}, !0), OEt = function(r) { + this.entries = [], this.url = null, r !== void 0 && (Id(r) ? this.parseObject(r) : this.parseQuery(typeof r == "string" ? Bmn(r, 0) === "?" ? Lmn(r, 1) : r : ah(r))); +}; +OEt.prototype = { type: eie, bindURL: function(r) { + this.url = r, this.update(); +}, parseObject: function(r) { + var i, o, l, f, g, A, b, v = Oie(r); + if (v) + for (o = (i = s$(r, v)).next; !(l = rl(o, i)).done; ) { + if (g = (f = s$(Oh(l.value))).next, (A = rl(g, f)).done || (b = rl(g, f)).done || !rl(g, f).done) + throw Emn("Expected sequence with length 2"); + qQ(this.entries, { key: ah(A.value), value: ah(b.value) }); + } + else + for (var k in r) + nl(r, k) && qQ(this.entries, { key: k, value: ah(r[k]) }); +}, parseQuery: function(r) { + if (r) + for (var i, o, l = W5t(r, "&"), f = 0; f < l.length; ) + (i = l[f++]).length && (o = W5t(i, "="), qQ(this.entries, { key: q5t(Smn(o)), value: q5t(G5t(o, "=")) })); +}, serialize: function() { + for (var r, i = this.entries, o = [], l = 0; l < i.length; ) + r = i[l++], qQ(o, Y5t(r.key) + "=" + Y5t(r.value)); + return G5t(o, "&"); +}, update: function() { + this.entries.length = 0, this.parseQuery(this.url.query); +}, updateURL: function() { + this.url && this.url.update(); +} }; +var jme = function() { + fX(this, Jne), MEt(this, new OEt(arguments.length > 0 ? arguments[0] : void 0)); +}, Jne = jme.prototype; +if (IDe(Jne, { append: function(r, i) { + tL(arguments.length, 2); + var o = L9(this); + qQ(o.entries, { key: ah(r), value: ah(i) }), o.updateURL(); +}, delete: function(r) { + tL(arguments.length, 1); + for (var i = L9(this), o = i.entries, l = ah(r), f = 0; f < o.length; ) + o[f].key === l ? X5t(o, f, 1) : f++; + i.updateURL(); +}, get: function(r) { + tL(arguments.length, 1); + for (var i = L9(this).entries, o = ah(r), l = 0; l < i.length; l++) + if (i[l].key === o) + return i[l].value; + return null; +}, getAll: function(r) { + tL(arguments.length, 1); + for (var i = L9(this).entries, o = ah(r), l = [], f = 0; f < i.length; f++) + i[f].key === o && qQ(l, i[f].value); + return l; +}, has: function(r) { + tL(arguments.length, 1); + for (var i = L9(this).entries, o = ah(r), l = 0; l < i.length; ) + if (i[l++].key === o) + return !0; + return !1; +}, set: function(r, i) { + tL(arguments.length, 1); + for (var o, l = L9(this), f = l.entries, g = !1, A = ah(r), b = ah(i), v = 0; v < f.length; v++) + (o = f[v]).key === A && (g ? X5t(f, v--, 1) : (g = !0, o.value = b)); + g || qQ(f, { key: A, value: b }), l.updateURL(); +}, sort: function() { + var r = L9(this); + LEt(r.entries, function(i, o) { + return i.key > o.key ? 1 : -1; + }), r.updateURL(); +}, forEach: function(r) { + for (var i, o = L9(this).entries, l = hm(r, arguments.length > 1 ? arguments[1] : void 0), f = 0; f < o.length; ) + l((i = o[f++]).value, i.key, this); +}, keys: function() { + return new iFe(this, "keys"); +}, values: function() { + return new iFe(this, "values"); +}, entries: function() { + return new iFe(this, "entries"); +} }, { enumerable: !0 }), m5(Jne, kmn, Jne.entries, { name: "entries" }), m5(Jne, "toString", function() { + return L9(this).serialize(); +}, { enumerable: !0 }), wL(jme, eie), qa({ global: !0, constructor: !0, forced: !PDe }, { URLSearchParams: jme }), !PDe && vf(wre)) { + var Pmn = Do(z5t.has), Rmn = Do(z5t.set), J5t = function(r) { + if (Id(r)) { + var i, o = r.body; + if (PO(o) === eie) + return i = r.headers ? new wre(r.headers) : new wre(), Pmn(i, "content-type") || Rmn(i, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), wk(r, { body: bk(0, ah(o)), headers: bk(0, i) }); + } + return r; + }; + if (vf(K5t) && qa({ global: !0, enumerable: !0, dontCallGetSet: !0, forced: !0 }, { fetch: function(r) { + return K5t(r, arguments.length > 1 ? J5t(arguments[1]) : {}); + } }), vf(Hme)) { + var aFe = function(r) { + return fX(this, rFe), new Hme(r, arguments.length > 1 ? J5t(arguments[1]) : {}); + }; + rFe.constructor = aFe, aFe.prototype = rFe, qa({ global: !0, constructor: !0, dontCallGetSet: !0, forced: !0 }, { Request: aFe }); + } +} +var V8, DEt = { URLSearchParams: jme, getState: L9 }, Qmn = R9t.codeAt, $mn = Bv.set, Kme = Bv.getterFor("URL"), Umn = DEt.URLSearchParams, Hmn = DEt.getState, _ne = Qi.URL, $De = Qi.TypeError, $ge = Qi.parseInt, jmn = Math.floor, Z5t = Math.pow, rC = Do("".charAt), B9 = Do(/./.exec), Zne = Do([].join), Kmn = Do(1 .toString), zmn = Do([].pop), Hz = Do([].push), e6t = Do("".replace), Gmn = Do([].shift), Xmn = Do("".split), ere = Do("".slice), Mpe = Do("".toLowerCase), Wmn = Do([].unshift), oFe = "Invalid scheme", SQ = "Invalid host", t6t = "Invalid port", NEt = /[a-z]/i, Vmn = /[\d+-.a-z]/i, sFe = /\d/, qmn = /^0x/i, Ymn = /^[0-7]+$/, Jmn = /^\d+$/, n6t = /^[\da-f]+$/i, Zmn = /[\0\t\n\r #%/:<>?@[\\\]^|]/, ebn = /[\0\t\n\r #/:<>?@[\\\]^|]/, tbn = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, nbn = /[\t\n\r]/g, Ene = function(r) { + var i, o, l, f; + if (typeof r == "number") { + for (i = [], o = 0; o < 4; o++) + Wmn(i, r % 256), r = jmn(r / 256); + return Zne(i, "."); + } + if (typeof r == "object") { + for (i = "", l = function(g) { + for (var A = null, b = 1, v = null, k = 0, _ = 0; _ < 8; _++) + g[_] !== 0 ? (k > b && (A = v, b = k), v = null, k = 0) : (v === null && (v = _), ++k); + return k > b && (A = v, b = k), A; + }(r), o = 0; o < 8; o++) + f && r[o] === 0 || (f && (f = !1), l === o ? (i += o ? ":" : "::", f = !0) : (i += Kmn(r[o], 16), o < 7 && (i += ":"))); + return "[" + i + "]"; + } + return r; +}, Fpe = {}, PEt = Xre({}, Fpe, { " ": 1, '"': 1, "<": 1, ">": 1, "`": 1 }), REt = Xre({}, PEt, { "#": 1, "?": 1, "{": 1, "}": 1 }), cFe = Xre({}, REt, { "/": 1, ":": 1, ";": 1, "=": 1, "@": 1, "[": 1, "\\": 1, "]": 1, "^": 1, "|": 1 }), rO = function(r, i) { + var o = Qmn(r, 0); + return o > 32 && o < 127 && !nl(i, r) ? r : encodeURIComponent(r); +}, Uge = { ftp: 21, file: null, http: 80, https: 443, ws: 80, wss: 443 }, tre = function(r, i) { + var o; + return r.length == 2 && B9(NEt, rC(r, 0)) && ((o = rC(r, 1)) == ":" || !i && o == "|"); +}, r6t = function(r) { + var i; + return r.length > 1 && tre(ere(r, 0, 2)) && (r.length == 2 || (i = rC(r, 2)) === "/" || i === "\\" || i === "?" || i === "#"); +}, rbn = function(r) { + return r === "." || Mpe(r) === "%2e"; +}, lFe = {}, i6t = {}, uFe = {}, a6t = {}, o6t = {}, hFe = {}, s6t = {}, c6t = {}, Hge = {}, jge = {}, fFe = {}, dFe = {}, AFe = {}, gFe = {}, l6t = {}, pFe = {}, jz = {}, AT = {}, u6t = {}, LQ = {}, KS = {}, iRe = function(r, i, o) { + var l, f, g, A = ah(r); + if (i) { + if (f = this.parse(A)) + throw $De(f); + this.searchParams = null; + } else { + if (o !== void 0 && (l = new iRe(o, !0)), f = this.parse(A, null, l)) + throw $De(f); + (g = Hmn(new Umn())).bindURL(this), this.searchParams = g; + } +}; +iRe.prototype = { type: "URL", parse: function(r, i, o) { + var l, f, g, A, b, v = this, k = i || lFe, _ = 0, T = "", L = !1, F = !1, U = !1; + for (r = ah(r), i || (v.scheme = "", v.username = "", v.password = "", v.host = null, v.port = null, v.path = [], v.query = null, v.fragment = null, v.cannotBeABaseURL = !1, r = e6t(r, tbn, "")), r = e6t(r, nbn, ""), l = NQ(r); _ <= l.length; ) { + switch (f = l[_], k) { + case lFe: + if (!f || !B9(NEt, f)) { + if (i) + return oFe; + k = uFe; + continue; + } + T += Mpe(f), k = i6t; + break; + case i6t: + if (f && (B9(Vmn, f) || f == "+" || f == "-" || f == ".")) + T += Mpe(f); + else { + if (f != ":") { + if (i) + return oFe; + T = "", k = uFe, _ = 0; + continue; + } + if (i && (v.isSpecial() != nl(Uge, T) || T == "file" && (v.includesCredentials() || v.port !== null) || v.scheme == "file" && !v.host)) + return; + if (v.scheme = T, i) + return void (v.isSpecial() && Uge[v.scheme] == v.port && (v.port = null)); + T = "", v.scheme == "file" ? k = gFe : v.isSpecial() && o && o.scheme == v.scheme ? k = a6t : v.isSpecial() ? k = c6t : l[_ + 1] == "/" ? (k = o6t, _++) : (v.cannotBeABaseURL = !0, Hz(v.path, ""), k = u6t); + } + break; + case uFe: + if (!o || o.cannotBeABaseURL && f != "#") + return oFe; + if (o.cannotBeABaseURL && f == "#") { + v.scheme = o.scheme, v.path = c5(o.path), v.query = o.query, v.fragment = "", v.cannotBeABaseURL = !0, k = KS; + break; + } + k = o.scheme == "file" ? gFe : hFe; + continue; + case a6t: + if (f != "/" || l[_ + 1] != "/") { + k = hFe; + continue; + } + k = Hge, _++; + break; + case o6t: + if (f == "/") { + k = jge; + break; + } + k = AT; + continue; + case hFe: + if (v.scheme = o.scheme, f == V8) + v.username = o.username, v.password = o.password, v.host = o.host, v.port = o.port, v.path = c5(o.path), v.query = o.query; + else if (f == "/" || f == "\\" && v.isSpecial()) + k = s6t; + else if (f == "?") + v.username = o.username, v.password = o.password, v.host = o.host, v.port = o.port, v.path = c5(o.path), v.query = "", k = LQ; + else { + if (f != "#") { + v.username = o.username, v.password = o.password, v.host = o.host, v.port = o.port, v.path = c5(o.path), v.path.length--, k = AT; + continue; + } + v.username = o.username, v.password = o.password, v.host = o.host, v.port = o.port, v.path = c5(o.path), v.query = o.query, v.fragment = "", k = KS; + } + break; + case s6t: + if (!v.isSpecial() || f != "/" && f != "\\") { + if (f != "/") { + v.username = o.username, v.password = o.password, v.host = o.host, v.port = o.port, k = AT; + continue; + } + k = jge; + } else + k = Hge; + break; + case c6t: + if (k = Hge, f != "/" || rC(T, _ + 1) != "/") + continue; + _++; + break; + case Hge: + if (f != "/" && f != "\\") { + k = jge; + continue; + } + break; + case jge: + if (f == "@") { + L && (T = "%40" + T), L = !0, g = NQ(T); + for (var q = 0; q < g.length; q++) { + var Z = g[q]; + if (Z != ":" || U) { + var R = rO(Z, cFe); + U ? v.password += R : v.username += R; + } else + U = !0; + } + T = ""; + } else if (f == V8 || f == "/" || f == "?" || f == "#" || f == "\\" && v.isSpecial()) { + if (L && T == "") + return "Invalid authority"; + _ -= NQ(T).length + 1, T = "", k = fFe; + } else + T += f; + break; + case fFe: + case dFe: + if (i && v.scheme == "file") { + k = pFe; + continue; + } + if (f != ":" || F) { + if (f == V8 || f == "/" || f == "?" || f == "#" || f == "\\" && v.isSpecial()) { + if (v.isSpecial() && T == "") + return SQ; + if (i && T == "" && (v.includesCredentials() || v.port !== null)) + return; + if (A = v.parseHost(T)) + return A; + if (T = "", k = jz, i) + return; + continue; + } + f == "[" ? F = !0 : f == "]" && (F = !1), T += f; + } else { + if (T == "") + return SQ; + if (A = v.parseHost(T)) + return A; + if (T = "", k = AFe, i == dFe) + return; + } + break; + case AFe: + if (!B9(sFe, f)) { + if (f == V8 || f == "/" || f == "?" || f == "#" || f == "\\" && v.isSpecial() || i) { + if (T != "") { + var J = $ge(T, 10); + if (J > 65535) + return t6t; + v.port = v.isSpecial() && J === Uge[v.scheme] ? null : J, T = ""; + } + if (i) + return; + k = jz; + continue; + } + return t6t; + } + T += f; + break; + case gFe: + if (v.scheme = "file", f == "/" || f == "\\") + k = l6t; + else { + if (!o || o.scheme != "file") { + k = AT; + continue; + } + if (f == V8) + v.host = o.host, v.path = c5(o.path), v.query = o.query; + else if (f == "?") + v.host = o.host, v.path = c5(o.path), v.query = "", k = LQ; + else { + if (f != "#") { + r6t(Zne(c5(l, _), "")) || (v.host = o.host, v.path = c5(o.path), v.shortenPath()), k = AT; + continue; + } + v.host = o.host, v.path = c5(o.path), v.query = o.query, v.fragment = "", k = KS; + } + } + break; + case l6t: + if (f == "/" || f == "\\") { + k = pFe; + break; + } + o && o.scheme == "file" && !r6t(Zne(c5(l, _), "")) && (tre(o.path[0], !0) ? Hz(v.path, o.path[0]) : v.host = o.host), k = AT; + continue; + case pFe: + if (f == V8 || f == "/" || f == "\\" || f == "?" || f == "#") { + if (!i && tre(T)) + k = AT; + else if (T == "") { + if (v.host = "", i) + return; + k = jz; + } else { + if (A = v.parseHost(T)) + return A; + if (v.host == "localhost" && (v.host = ""), i) + return; + T = "", k = jz; + } + continue; + } + T += f; + break; + case jz: + if (v.isSpecial()) { + if (k = AT, f != "/" && f != "\\") + continue; + } else if (i || f != "?") + if (i || f != "#") { + if (f != V8 && (k = AT, f != "/")) + continue; + } else + v.fragment = "", k = KS; + else + v.query = "", k = LQ; + break; + case AT: + if (f == V8 || f == "/" || f == "\\" && v.isSpecial() || !i && (f == "?" || f == "#")) { + if ((b = Mpe(b = T)) === ".." || b === "%2e." || b === ".%2e" || b === "%2e%2e" ? (v.shortenPath(), f == "/" || f == "\\" && v.isSpecial() || Hz(v.path, "")) : rbn(T) ? f == "/" || f == "\\" && v.isSpecial() || Hz(v.path, "") : (v.scheme == "file" && !v.path.length && tre(T) && (v.host && (v.host = ""), T = rC(T, 0) + ":"), Hz(v.path, T)), T = "", v.scheme == "file" && (f == V8 || f == "?" || f == "#")) + for (; v.path.length > 1 && v.path[0] === ""; ) + Gmn(v.path); + f == "?" ? (v.query = "", k = LQ) : f == "#" && (v.fragment = "", k = KS); + } else + T += rO(f, REt); + break; + case u6t: + f == "?" ? (v.query = "", k = LQ) : f == "#" ? (v.fragment = "", k = KS) : f != V8 && (v.path[0] += rO(f, Fpe)); + break; + case LQ: + i || f != "#" ? f != V8 && (f == "'" && v.isSpecial() ? v.query += "%27" : v.query += f == "#" ? "%23" : rO(f, Fpe)) : (v.fragment = "", k = KS); + break; + case KS: + f != V8 && (v.fragment += rO(f, PEt)); + } + _++; + } +}, parseHost: function(r) { + var i, o, l; + if (rC(r, 0) == "[") { + if (rC(r, r.length - 1) != "]" || (i = function(f) { + var g, A, b, v, k, _, T, L = [0, 0, 0, 0, 0, 0, 0, 0], F = 0, U = null, q = 0, Z = function() { + return rC(f, q); + }; + if (Z() == ":") { + if (rC(f, 1) != ":") + return; + q += 2, U = ++F; + } + for (; Z(); ) { + if (F == 8) + return; + if (Z() != ":") { + for (g = A = 0; A < 4 && B9(n6t, Z()); ) + g = 16 * g + $ge(Z(), 16), q++, A++; + if (Z() == ".") { + if (A == 0 || (q -= A, F > 6)) + return; + for (b = 0; Z(); ) { + if (v = null, b > 0) { + if (!(Z() == "." && b < 4)) + return; + q++; + } + if (!B9(sFe, Z())) + return; + for (; B9(sFe, Z()); ) { + if (k = $ge(Z(), 10), v === null) + v = k; + else { + if (v == 0) + return; + v = 10 * v + k; + } + if (v > 255) + return; + q++; + } + L[F] = 256 * L[F] + v, ++b != 2 && b != 4 || F++; + } + if (b != 4) + return; + break; + } + if (Z() == ":") { + if (q++, !Z()) + return; + } else if (Z()) + return; + L[F++] = g; + } else { + if (U !== null) + return; + q++, U = ++F; + } + } + if (U !== null) + for (_ = F - U, F = 7; F != 0 && _ > 0; ) + T = L[F], L[F--] = L[U + _ - 1], L[U + --_] = T; + else if (F != 8) + return; + return L; + }(ere(r, 1, -1)), !i)) + return SQ; + this.host = i; + } else if (this.isSpecial()) { + if (r = function(f) { + var g, A, b = [], v = gmn(Amn(pmn(f), BEt, "."), "."); + for (g = 0; g < v.length; g++) + A = v[g], fO(b, dmn(fmn, A) ? "xn--" + bmn(A) : A); + return SEt(b, "."); + }(r), B9(Zmn, r) || (i = function(f) { + var g, A, b, v, k, _, T, L = Xmn(f, "."); + if (L.length && L[L.length - 1] == "" && L.length--, (g = L.length) > 4) + return f; + for (A = [], b = 0; b < g; b++) { + if ((v = L[b]) == "") + return f; + if (k = 10, v.length > 1 && rC(v, 0) == "0" && (k = B9(qmn, v) ? 16 : 8, v = ere(v, k == 8 ? 1 : 2)), v === "") + _ = 0; + else { + if (!B9(k == 10 ? Jmn : k == 8 ? Ymn : n6t, v)) + return f; + _ = $ge(v, k); + } + Hz(A, _); + } + for (b = 0; b < g; b++) + if (_ = A[b], b == g - 1) { + if (_ >= Z5t(256, 5 - g)) + return null; + } else if (_ > 255) + return null; + for (T = zmn(A), b = 0; b < A.length; b++) + T += A[b] * Z5t(256, 3 - b); + return T; + }(r), i === null)) + return SQ; + this.host = i; + } else { + if (B9(ebn, r)) + return SQ; + for (i = "", o = NQ(r), l = 0; l < o.length; l++) + i += rO(o[l], Fpe); + this.host = i; + } +}, cannotHaveUsernamePasswordPort: function() { + return !this.host || this.cannotBeABaseURL || this.scheme == "file"; +}, includesCredentials: function() { + return this.username != "" || this.password != ""; +}, isSpecial: function() { + return nl(Uge, this.scheme); +}, shortenPath: function() { + var r = this.path, i = r.length; + !i || this.scheme == "file" && i == 1 && tre(r[0], !0) || r.length--; +}, serialize: function() { + var r = this, i = r.scheme, o = r.username, l = r.password, f = r.host, g = r.port, A = r.path, b = r.query, v = r.fragment, k = i + ":"; + return f !== null ? (k += "//", r.includesCredentials() && (k += o + (l ? ":" + l : "") + "@"), k += Ene(f), g !== null && (k += ":" + g)) : i == "file" && (k += "//"), k += r.cannotBeABaseURL ? A[0] : A.length ? "/" + Zne(A, "/") : "", b !== null && (k += "?" + b), v !== null && (k += "#" + v), k; +}, setHref: function(r) { + var i = this.parse(r); + if (i) + throw $De(i); + this.searchParams.update(); +}, getOrigin: function() { + var r = this.scheme, i = this.port; + if (r == "blob") + try { + return new jG(r.path[0]).origin; + } catch { + return "null"; + } + return r != "file" && this.isSpecial() ? r + "://" + Ene(this.host) + (i !== null ? ":" + i : "") : "null"; +}, getProtocol: function() { + return this.scheme + ":"; +}, setProtocol: function(r) { + this.parse(ah(r) + ":", lFe); +}, getUsername: function() { + return this.username; +}, setUsername: function(r) { + var i = NQ(ah(r)); + if (!this.cannotHaveUsernamePasswordPort()) { + this.username = ""; + for (var o = 0; o < i.length; o++) + this.username += rO(i[o], cFe); + } +}, getPassword: function() { + return this.password; +}, setPassword: function(r) { + var i = NQ(ah(r)); + if (!this.cannotHaveUsernamePasswordPort()) { + this.password = ""; + for (var o = 0; o < i.length; o++) + this.password += rO(i[o], cFe); + } +}, getHost: function() { + var r = this.host, i = this.port; + return r === null ? "" : i === null ? Ene(r) : Ene(r) + ":" + i; +}, setHost: function(r) { + this.cannotBeABaseURL || this.parse(r, fFe); +}, getHostname: function() { + var r = this.host; + return r === null ? "" : Ene(r); +}, setHostname: function(r) { + this.cannotBeABaseURL || this.parse(r, dFe); +}, getPort: function() { + var r = this.port; + return r === null ? "" : ah(r); +}, setPort: function(r) { + this.cannotHaveUsernamePasswordPort() || ((r = ah(r)) == "" ? this.port = null : this.parse(r, AFe)); +}, getPathname: function() { + var r = this.path; + return this.cannotBeABaseURL ? r[0] : r.length ? "/" + Zne(r, "/") : ""; +}, setPathname: function(r) { + this.cannotBeABaseURL || (this.path = [], this.parse(r, jz)); +}, getSearch: function() { + var r = this.query; + return r ? "?" + r : ""; +}, setSearch: function(r) { + (r = ah(r)) == "" ? this.query = null : (rC(r, 0) == "?" && (r = ere(r, 1)), this.query = "", this.parse(r, LQ)), this.searchParams.update(); +}, getSearchParams: function() { + return this.searchParams.facade; +}, getHash: function() { + var r = this.fragment; + return r ? "#" + r : ""; +}, setHash: function(r) { + (r = ah(r)) != "" ? (rC(r, 0) == "#" && (r = ere(r, 1)), this.fragment = "", this.parse(r, KS)) : this.fragment = null; +}, update: function() { + this.query = this.searchParams.serialize() || null; +} }; +var jG = function(r) { + var i = fX(this, m3), o = tL(arguments.length, 1) > 1 ? arguments[1] : void 0, l = $mn(i, new iRe(r, !1, o)); + of || (i.href = l.serialize(), i.origin = l.getOrigin(), i.protocol = l.getProtocol(), i.username = l.getUsername(), i.password = l.getPassword(), i.host = l.getHost(), i.hostname = l.getHostname(), i.port = l.getPort(), i.pathname = l.getPathname(), i.search = l.getSearch(), i.searchParams = l.getSearchParams(), i.hash = l.getHash()); +}, m3 = jG.prototype, q8 = function(r, i) { + return { get: function() { + return Kme(this)[r](); + }, set: i && function(o) { + return Kme(this)[i](o); + }, configurable: !0, enumerable: !0 }; +}; +if (of && (W8(m3, "href", q8("serialize", "setHref")), W8(m3, "origin", q8("getOrigin")), W8(m3, "protocol", q8("getProtocol", "setProtocol")), W8(m3, "username", q8("getUsername", "setUsername")), W8(m3, "password", q8("getPassword", "setPassword")), W8(m3, "host", q8("getHost", "setHost")), W8(m3, "hostname", q8("getHostname", "setHostname")), W8(m3, "port", q8("getPort", "setPort")), W8(m3, "pathname", q8("getPathname", "setPathname")), W8(m3, "search", q8("getSearch", "setSearch")), W8(m3, "searchParams", q8("getSearchParams")), W8(m3, "hash", q8("getHash", "setHash"))), m5(m3, "toJSON", function() { + return Kme(this).serialize(); +}, { enumerable: !0 }), m5(m3, "toString", function() { + return Kme(this).serialize(); +}, { enumerable: !0 }), _ne) { + var h6t = _ne.createObjectURL, f6t = _ne.revokeObjectURL; + h6t && m5(jG, "createObjectURL", hm(h6t, _ne)), f6t && m5(jG, "revokeObjectURL", hm(f6t, _ne)); +} +wL(jG, "URL"), qa({ global: !0, constructor: !0, forced: !PDe, sham: !of }, { URL: jG }); +var cG = ql.URL, ibn = su(function(r, i) { + r.exports = function() { + var o = function(ce, ne) { + return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(Ae, fe) { + Ae.__proto__ = fe; + } || function(Ae, fe) { + for (var Re in fe) + Object.prototype.hasOwnProperty.call(fe, Re) && (Ae[Re] = fe[Re]); + }, o(ce, ne); + }; + function l(ce, ne) { + if (typeof ne != "function" && ne !== null) + throw new TypeError("Class extends value " + String(ne) + " is not a constructor or null"); + function Ae() { + this.constructor = ce; + } + o(ce, ne), ce.prototype = ne === null ? Object.create(ne) : (Ae.prototype = ne.prototype, new Ae()); + } + var f = function() { + return f = Object.assign || function(ce) { + for (var ne, Ae = 1, fe = arguments.length; Ae < fe; Ae++) + for (var Re in ne = arguments[Ae]) + Object.prototype.hasOwnProperty.call(ne, Re) && (ce[Re] = ne[Re]); + return ce; + }, f.apply(this, arguments); + }; + function g(ce, ne, Ae, fe) { + function Re(rt) { + return rt instanceof Ae ? rt : new Ae(function(dt) { + dt(rt); + }); + } + return new (Ae || (Ae = Promise))(function(rt, dt) { + function Gt(On) { + try { + Ln(fe.next(On)); + } catch (Or) { + dt(Or); + } + } + function Nt(On) { + try { + Ln(fe.throw(On)); + } catch (Or) { + dt(Or); + } + } + function Ln(On) { + On.done ? rt(On.value) : Re(On.value).then(Gt, Nt); + } + Ln((fe = fe.apply(ce, ne || [])).next()); + }); + } + function A(ce, ne) { + var Ae, fe, Re, rt, dt = { label: 0, sent: function() { + if (1 & Re[0]) + throw Re[1]; + return Re[1]; + }, trys: [], ops: [] }; + return rt = { next: Gt(0), throw: Gt(1), return: Gt(2) }, typeof Symbol == "function" && (rt[Symbol.iterator] = function() { + return this; + }), rt; + function Gt(Ln) { + return function(On) { + return Nt([Ln, On]); + }; + } + function Nt(Ln) { + if (Ae) + throw new TypeError("Generator is already executing."); + for (; dt; ) + try { + if (Ae = 1, fe && (Re = 2 & Ln[0] ? fe.return : Ln[0] ? fe.throw || ((Re = fe.return) && Re.call(fe), 0) : fe.next) && !(Re = Re.call(fe, Ln[1])).done) + return Re; + switch (fe = 0, Re && (Ln = [2 & Ln[0], Re.value]), Ln[0]) { + case 0: + case 1: + Re = Ln; + break; + case 4: + return dt.label++, { value: Ln[1], done: !1 }; + case 5: + dt.label++, fe = Ln[1], Ln = [0]; + continue; + case 7: + Ln = dt.ops.pop(), dt.trys.pop(); + continue; + default: + if (!((Re = (Re = dt.trys).length > 0 && Re[Re.length - 1]) || Ln[0] !== 6 && Ln[0] !== 2)) { + dt = 0; + continue; + } + if (Ln[0] === 3 && (!Re || Ln[1] > Re[0] && Ln[1] < Re[3])) { + dt.label = Ln[1]; + break; + } + if (Ln[0] === 6 && dt.label < Re[1]) { + dt.label = Re[1], Re = Ln; + break; + } + if (Re && dt.label < Re[2]) { + dt.label = Re[2], dt.ops.push(Ln); + break; + } + Re[2] && dt.ops.pop(), dt.trys.pop(); + continue; + } + Ln = ne.call(ce, dt); + } catch (On) { + Ln = [6, On], fe = 0; + } finally { + Ae = Re = 0; + } + if (5 & Ln[0]) + throw Ln[1]; + return { value: Ln[0] ? Ln[1] : void 0, done: !0 }; + } + } + function b(ce, ne, Ae) { + if (Ae || arguments.length === 2) + for (var fe, Re = 0, rt = ne.length; Re < rt; Re++) + !fe && Re in ne || (fe || (fe = Array.prototype.slice.call(ne, 0, Re)), fe[Re] = ne[Re]); + return ce.concat(fe || ne); + } + for (var v = function() { + function ce(ne, Ae, fe, Re) { + this.left = ne, this.top = Ae, this.width = fe, this.height = Re; + } + return ce.prototype.add = function(ne, Ae, fe, Re) { + return new ce(this.left + ne, this.top + Ae, this.width + fe, this.height + Re); + }, ce.fromClientRect = function(ne, Ae) { + return new ce(Ae.left + ne.windowBounds.left, Ae.top + ne.windowBounds.top, Ae.width, Ae.height); + }, ce.fromDOMRectList = function(ne, Ae) { + var fe = Array.from(Ae).find(function(Re) { + return Re.width !== 0; + }); + return fe ? new ce(fe.left + ne.windowBounds.left, fe.top + ne.windowBounds.top, fe.width, fe.height) : ce.EMPTY; + }, ce.EMPTY = new ce(0, 0, 0, 0), ce; + }(), k = function(ce, ne) { + return v.fromClientRect(ce, ne.getBoundingClientRect()); + }, _ = function(ce) { + var ne = ce.body, Ae = ce.documentElement; + if (!ne || !Ae) + throw new Error("Unable to get document size"); + var fe = Math.max(Math.max(ne.scrollWidth, Ae.scrollWidth), Math.max(ne.offsetWidth, Ae.offsetWidth), Math.max(ne.clientWidth, Ae.clientWidth)), Re = Math.max(Math.max(ne.scrollHeight, Ae.scrollHeight), Math.max(ne.offsetHeight, Ae.offsetHeight), Math.max(ne.clientHeight, Ae.clientHeight)); + return new v(0, 0, fe, Re); + }, T = function(ce) { + for (var ne = [], Ae = 0, fe = ce.length; Ae < fe; ) { + var Re = ce.charCodeAt(Ae++); + if (Re >= 55296 && Re <= 56319 && Ae < fe) { + var rt = ce.charCodeAt(Ae++); + (64512 & rt) == 56320 ? ne.push(((1023 & Re) << 10) + (1023 & rt) + 65536) : (ne.push(Re), Ae--); + } else + ne.push(Re); + } + return ne; + }, L = function() { + for (var ce = [], ne = 0; ne < arguments.length; ne++) + ce[ne] = arguments[ne]; + if (String.fromCodePoint) + return String.fromCodePoint.apply(String, ce); + var Ae = ce.length; + if (!Ae) + return ""; + for (var fe = [], Re = -1, rt = ""; ++Re < Ae; ) { + var dt = ce[Re]; + dt <= 65535 ? fe.push(dt) : (dt -= 65536, fe.push(55296 + (dt >> 10), dt % 1024 + 56320)), (Re + 1 === Ae || fe.length > 16384) && (rt += String.fromCharCode.apply(String, fe), fe.length = 0); + } + return rt; + }, F = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", U = typeof Uint8Array > "u" ? [] : new Uint8Array(256), q = 0; q < F.length; q++) + U[F.charCodeAt(q)] = q; + for (var Z = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = typeof Uint8Array > "u" ? [] : new Uint8Array(256), J = 0; J < Z.length; J++) + R[Z.charCodeAt(J)] = J; + for (var he = function(ce) { + var ne, Ae, fe, Re, rt, dt = 0.75 * ce.length, Gt = ce.length, Nt = 0; + ce[ce.length - 1] === "=" && (dt--, ce[ce.length - 2] === "=" && dt--); + var Ln = typeof ArrayBuffer < "u" && typeof Uint8Array < "u" && Uint8Array.prototype.slice !== void 0 ? new ArrayBuffer(dt) : new Array(dt), On = Array.isArray(Ln) ? Ln : new Uint8Array(Ln); + for (ne = 0; ne < Gt; ne += 4) + Ae = R[ce.charCodeAt(ne)], fe = R[ce.charCodeAt(ne + 1)], Re = R[ce.charCodeAt(ne + 2)], rt = R[ce.charCodeAt(ne + 3)], On[Nt++] = Ae << 2 | fe >> 4, On[Nt++] = (15 & fe) << 4 | Re >> 2, On[Nt++] = (3 & Re) << 6 | 63 & rt; + return Ln; + }, Y = function(ce) { + for (var ne = ce.length, Ae = [], fe = 0; fe < ne; fe += 2) + Ae.push(ce[fe + 1] << 8 | ce[fe]); + return Ae; + }, ue = function(ce) { + for (var ne = ce.length, Ae = [], fe = 0; fe < ne; fe += 4) + Ae.push(ce[fe + 3] << 24 | ce[fe + 2] << 16 | ce[fe + 1] << 8 | ce[fe]); + return Ae; + }, le = 5, be = 11, ke = 2, de = 65536 >> le, Te = (1 << le) - 1, xe = de + (1024 >> le) + 32, ie = 65536 >> be, Be = (1 << be - le) - 1, te = function(ce, ne, Ae) { + return ce.slice ? ce.slice(ne, Ae) : new Uint16Array(Array.prototype.slice.call(ce, ne, Ae)); + }, Me = function(ce, ne, Ae) { + return ce.slice ? ce.slice(ne, Ae) : new Uint32Array(Array.prototype.slice.call(ce, ne, Ae)); + }, ve = function(ce, ne) { + var Ae = he(ce), fe = Array.isArray(Ae) ? ue(Ae) : new Uint32Array(Ae), Re = Array.isArray(Ae) ? Y(Ae) : new Uint16Array(Ae), rt = 24, dt = te(Re, rt / 2, fe[4] / 2), Gt = fe[5] === 2 ? te(Re, (rt + fe[4]) / 2) : Me(fe, Math.ceil((rt + fe[4]) / 4)); + return new ge(fe[0], fe[1], fe[2], fe[3], dt, Gt); + }, ge = function() { + function ce(ne, Ae, fe, Re, rt, dt) { + this.initialValue = ne, this.errorValue = Ae, this.highStart = fe, this.highValueIndex = Re, this.index = rt, this.data = dt; + } + return ce.prototype.get = function(ne) { + var Ae; + if (ne >= 0) { + if (ne < 55296 || ne > 56319 && ne <= 65535) + return Ae = ((Ae = this.index[ne >> le]) << ke) + (ne & Te), this.data[Ae]; + if (ne <= 65535) + return Ae = ((Ae = this.index[de + (ne - 55296 >> le)]) << ke) + (ne & Te), this.data[Ae]; + if (ne < this.highStart) + return Ae = xe - ie + (ne >> be), Ae = this.index[Ae], Ae += ne >> le & Be, Ae = ((Ae = this.index[Ae]) << ke) + (ne & Te), this.data[Ae]; + if (ne <= 1114111) + return this.data[this.highValueIndex]; + } + return this.errorValue; + }, ce; + }(), Je = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ot = typeof Uint8Array > "u" ? [] : new Uint8Array(256), bt = 0; bt < Je.length; bt++) + ot[Je.charCodeAt(bt)] = bt; + var gt = 50, je = 1, Qe = 2, kt = 3, Wt = 4, jt = 5, Zn = 7, Ft = 8, wn = 9, un = 10, ln = 11, an = 12, Ot = 13, $n = 14, pt = 15, Ci = 16, ut = 17, br = 18, zt = 19, Wr = 20, zr = 21, Si = 22, vr = 23, Qr = 24, or = 25, Gr = 26, An = 27, _i = 28, Cr = 29, la = 30, Ra = 31, Jo = 32, Cc = 33, ji = 34, Ya = 35, Hr = 36, Yr = 37, ni = 38, Vr = 39, Na = 40, er = 41, as = 42, xr = 43, So = [9001, 65288], cs = "!", xa = "×", ro = "÷", Lo = ve("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="), Xo = [la, Hr], Zo = [je, Qe, kt, jt], Fs = [un, Ft], Hs = [An, Gr], Qa = Zo.concat(Fs), Ff = [ni, Vr, Na, ji, Ya], Oc = [pt, Ot], Iu = function(ce, ne) { + ne === void 0 && (ne = "strict"); + var Ae = [], fe = [], Re = []; + return ce.forEach(function(rt, dt) { + var Gt = Lo.get(rt); + if (Gt > gt ? (Re.push(!0), Gt -= gt) : Re.push(!1), ["normal", "auto", "loose"].indexOf(ne) !== -1 && [8208, 8211, 12316, 12448].indexOf(rt) !== -1) + return fe.push(dt), Ae.push(Ci); + if (Gt === Wt || Gt === ln) { + if (dt === 0) + return fe.push(dt), Ae.push(la); + var Nt = Ae[dt - 1]; + return Qa.indexOf(Nt) === -1 ? (fe.push(fe[dt - 1]), Ae.push(Nt)) : (fe.push(dt), Ae.push(la)); + } + return fe.push(dt), Gt === Ra ? Ae.push(ne === "strict" ? zr : Yr) : Gt === as || Gt === Cr ? Ae.push(la) : Gt === xr ? rt >= 131072 && rt <= 196605 || rt >= 196608 && rt <= 262141 ? Ae.push(Yr) : Ae.push(la) : void Ae.push(Gt); + }), [fe, Ae, Re]; + }, da = function(ce, ne, Ae, fe) { + var Re = fe[Ae]; + if (Array.isArray(ce) ? ce.indexOf(Re) !== -1 : ce === Re) + for (var rt = Ae; rt <= fe.length; ) { + if ((Nt = fe[++rt]) === ne) + return !0; + if (Nt !== un) + break; + } + if (Re === un) + for (rt = Ae; rt > 0; ) { + var dt = fe[--rt]; + if (Array.isArray(ce) ? ce.indexOf(dt) !== -1 : ce === dt) + for (var Gt = Ae; Gt <= fe.length; ) { + var Nt; + if ((Nt = fe[++Gt]) === ne) + return !0; + if (Nt !== un) + break; + } + if (dt !== un) + break; + } + return !1; + }, _c = function(ce, ne) { + for (var Ae = ce; Ae >= 0; ) { + var fe = ne[Ae]; + if (fe !== un) + return fe; + Ae--; + } + return 0; + }, qf = function(ce, ne, Ae, fe, Re) { + if (Ae[fe] === 0) + return xa; + var rt = fe - 1; + if (Array.isArray(Re) && Re[rt] === !0) + return xa; + var dt = rt - 1, Gt = rt + 1, Nt = ne[rt], Ln = dt >= 0 ? ne[dt] : 0, On = ne[Gt]; + if (Nt === Qe && On === kt) + return xa; + if (Zo.indexOf(Nt) !== -1) + return cs; + if (Zo.indexOf(On) !== -1 || Fs.indexOf(On) !== -1) + return xa; + if (_c(rt, ne) === Ft) + return ro; + if (Lo.get(ce[rt]) === ln || (Nt === Jo || Nt === Cc) && Lo.get(ce[Gt]) === ln || Nt === Zn || On === Zn || Nt === wn || [un, Ot, pt].indexOf(Nt) === -1 && On === wn || [ut, br, zt, Qr, _i].indexOf(On) !== -1 || _c(rt, ne) === Si || da(vr, Si, rt, ne) || da([ut, br], zr, rt, ne) || da(an, an, rt, ne)) + return xa; + if (Nt === un) + return ro; + if (Nt === vr || On === vr) + return xa; + if (On === Ci || Nt === Ci) + return ro; + if ([Ot, pt, zr].indexOf(On) !== -1 || Nt === $n || Ln === Hr && Oc.indexOf(Nt) !== -1 || Nt === _i && On === Hr || On === Wr || Xo.indexOf(On) !== -1 && Nt === or || Xo.indexOf(Nt) !== -1 && On === or || Nt === An && [Yr, Jo, Cc].indexOf(On) !== -1 || [Yr, Jo, Cc].indexOf(Nt) !== -1 && On === Gr || Xo.indexOf(Nt) !== -1 && Hs.indexOf(On) !== -1 || Hs.indexOf(Nt) !== -1 && Xo.indexOf(On) !== -1 || [An, Gr].indexOf(Nt) !== -1 && (On === or || [Si, pt].indexOf(On) !== -1 && ne[Gt + 1] === or) || [Si, pt].indexOf(Nt) !== -1 && On === or || Nt === or && [or, _i, Qr].indexOf(On) !== -1) + return xa; + if ([or, _i, Qr, ut, br].indexOf(On) !== -1) + for (var Or = rt; Or >= 0; ) { + if ((Rr = ne[Or]) === or) + return xa; + if ([_i, Qr].indexOf(Rr) === -1) + break; + Or--; + } + if ([An, Gr].indexOf(On) !== -1) + for (Or = [ut, br].indexOf(Nt) !== -1 ? dt : rt; Or >= 0; ) { + var Rr; + if ((Rr = ne[Or]) === or) + return xa; + if ([_i, Qr].indexOf(Rr) === -1) + break; + Or--; + } + if (ni === Nt && [ni, Vr, ji, Ya].indexOf(On) !== -1 || [Vr, ji].indexOf(Nt) !== -1 && [Vr, Na].indexOf(On) !== -1 || [Na, Ya].indexOf(Nt) !== -1 && On === Na || Ff.indexOf(Nt) !== -1 && [Wr, Gr].indexOf(On) !== -1 || Ff.indexOf(On) !== -1 && Nt === An || Xo.indexOf(Nt) !== -1 && Xo.indexOf(On) !== -1 || Nt === Qr && Xo.indexOf(On) !== -1 || Xo.concat(or).indexOf(Nt) !== -1 && On === Si && So.indexOf(ce[Gt]) === -1 || Xo.concat(or).indexOf(On) !== -1 && Nt === br) + return xa; + if (Nt === er && On === er) { + for (var Gi = Ae[rt], ga = 1; Gi > 0 && ne[--Gi] === er; ) + ga++; + if (ga % 2 != 0) + return xa; + } + return Nt === Jo && On === Cc ? xa : ro; + }, wu = function(ce, ne) { + ne || (ne = { lineBreak: "normal", wordBreak: "normal" }); + var Ae = Iu(ce, ne.lineBreak), fe = Ae[0], Re = Ae[1], rt = Ae[2]; + ne.wordBreak !== "break-all" && ne.wordBreak !== "break-word" || (Re = Re.map(function(Gt) { + return [or, la, as].indexOf(Gt) !== -1 ? Yr : Gt; + })); + var dt = ne.wordBreak === "keep-all" ? rt.map(function(Gt, Nt) { + return Gt && ce[Nt] >= 19968 && ce[Nt] <= 40959; + }) : void 0; + return [fe, Re, dt]; + }, jo = function() { + function ce(ne, Ae, fe, Re) { + this.codePoints = ne, this.required = Ae === cs, this.start = fe, this.end = Re; + } + return ce.prototype.slice = function() { + return L.apply(void 0, this.codePoints.slice(this.start, this.end)); + }, ce; + }(), yf = function(ce, ne) { + var Ae = T(ce), fe = wu(Ae, ne), Re = fe[0], rt = fe[1], dt = fe[2], Gt = Ae.length, Nt = 0, Ln = 0; + return { next: function() { + if (Ln >= Gt) + return { done: !0, value: null }; + for (var On = xa; Ln < Gt && (On = qf(Ae, rt, Re, ++Ln, dt)) === xa; ) + ; + if (On !== xa || Ln === Gt) { + var Or = new jo(Ae, On, Nt, Ln); + return Nt = Ln, { value: Or, done: !1 }; + } + return { done: !0, value: null }; + } }; + }, bl = 1, cu = 2, qc = 4, Jl = 8, js = 10, Dc = 47, gs = 92, rc = 9, Ki = 32, Ta = 34, Bl = 61, sf = 35, mc = 36, wh = 37, ra = 39, Ls = 40, pr = 41, Pr = 95, Wo = 45, hn = 33, wf = 60, Sn = 62, Nc = 64, Ro = 91, T1 = 93, tr = 61, ei = 123, fi = 63, ri = 125, Aa = 124, ya = 126, fo = 128, bs = 65533, xo = 42, sl = 43, Mu = 44, Zl = 58, V1 = 59, il = 46, kf = 0, eu = 8, cl = 11, Ps = 14, hb = 31, Of = 127, Sl = -1, U0 = 48, Yf = 97, H0 = 101, cf = 102, Ad = 117, Ep = 122, Md = 65, mn = 69, io = 70, Ba = 85, bc = 90, jc = function(ce) { + return ce >= U0 && ce <= 57; + }, ll = function(ce) { + return ce >= 55296 && ce <= 57343; + }, Df = function(ce) { + return jc(ce) || ce >= Md && ce <= io || ce >= Yf && ce <= cf; + }, Jf = function(ce) { + return ce >= Yf && ce <= Ep; + }, Fd = function(ce) { + return ce >= Md && ce <= bc; + }, Gh = function(ce) { + return Jf(ce) || Fd(ce); + }, iA = function(ce) { + return ce >= fo; + }, bn = function(ce) { + return ce === js || ce === rc || ce === Ki; + }, ia = function(ce) { + return Gh(ce) || iA(ce) || ce === Pr; + }, Ca = function(ce) { + return ia(ce) || jc(ce) || ce === Wo; + }, vl = function(ce) { + return ce >= kf && ce <= eu || ce === cl || ce >= Ps && ce <= hb || ce === Of; + }, ku = function(ce, ne) { + return ce === gs && ne !== js; + }, lf = function(ce, ne, Ae) { + return ce === Wo ? ia(ne) || ku(ne, Ae) : !!ia(ce) || !(ce !== gs || !ku(ce, ne)); + }, uf = function(ce, ne, Ae) { + return ce === sl || ce === Wo ? !!jc(ne) || ne === il && jc(Ae) : jc(ce === il ? ne : ce); + }, Tp = function(ce) { + var ne = 0, Ae = 1; + ce[ne] !== sl && ce[ne] !== Wo || (ce[ne] === Wo && (Ae = -1), ne++); + for (var fe = []; jc(ce[ne]); ) + fe.push(ce[ne++]); + var Re = fe.length ? parseInt(L.apply(void 0, fe), 10) : 0; + ce[ne] === il && ne++; + for (var rt = []; jc(ce[ne]); ) + rt.push(ce[ne++]); + var dt = rt.length, Gt = dt ? parseInt(L.apply(void 0, rt), 10) : 0; + ce[ne] !== mn && ce[ne] !== H0 || ne++; + var Nt = 1; + ce[ne] !== sl && ce[ne] !== Wo || (ce[ne] === Wo && (Nt = -1), ne++); + for (var Ln = []; jc(ce[ne]); ) + Ln.push(ce[ne++]); + var On = Ln.length ? parseInt(L.apply(void 0, Ln), 10) : 0; + return Ae * (Re + Gt * Math.pow(10, -dt)) * Math.pow(10, Nt * On); + }, s0 = { type: 2 }, Zf = { type: 3 }, Br = { type: 4 }, Bk = { type: 13 }, Sk = { type: 8 }, hC = { type: 21 }, E3 = { type: 9 }, Gy = { type: 10 }, ic = { type: 11 }, Rs = { type: 12 }, J9 = { type: 14 }, T3 = { type: 23 }, Lk = { type: 1 }, Z9 = { type: 25 }, fC = { type: 24 }, Sv = { type: 26 }, fb = { type: 27 }, Xy = { type: 28 }, Ec = { type: 29 }, j0 = { type: 31 }, c0 = { type: 32 }, Dl = function() { + function ce() { + this._value = []; + } + return ce.prototype.write = function(ne) { + this._value = this._value.concat(T(ne)); + }, ce.prototype.read = function() { + for (var ne = [], Ae = this.consumeToken(); Ae !== c0; ) + ne.push(Ae), Ae = this.consumeToken(); + return ne; + }, ce.prototype.consumeToken = function() { + var ne = this.consumeCodePoint(); + switch (ne) { + case Ta: + return this.consumeStringToken(Ta); + case sf: + var Ae = this.peekCodePoint(0), fe = this.peekCodePoint(1), Re = this.peekCodePoint(2); + if (Ca(Ae) || ku(fe, Re)) { + var rt = lf(Ae, fe, Re) ? cu : bl; + return { type: 5, value: this.consumeName(), flags: rt }; + } + break; + case mc: + if (this.peekCodePoint(0) === Bl) + return this.consumeCodePoint(), Bk; + break; + case ra: + return this.consumeStringToken(ra); + case Ls: + return s0; + case pr: + return Zf; + case xo: + if (this.peekCodePoint(0) === Bl) + return this.consumeCodePoint(), J9; + break; + case sl: + if (uf(ne, this.peekCodePoint(0), this.peekCodePoint(1))) + return this.reconsumeCodePoint(ne), this.consumeNumericToken(); + break; + case Mu: + return Br; + case Wo: + var dt = ne, Gt = this.peekCodePoint(0), Nt = this.peekCodePoint(1); + if (uf(dt, Gt, Nt)) + return this.reconsumeCodePoint(ne), this.consumeNumericToken(); + if (lf(dt, Gt, Nt)) + return this.reconsumeCodePoint(ne), this.consumeIdentLikeToken(); + if (Gt === Wo && Nt === Sn) + return this.consumeCodePoint(), this.consumeCodePoint(), fC; + break; + case il: + if (uf(ne, this.peekCodePoint(0), this.peekCodePoint(1))) + return this.reconsumeCodePoint(ne), this.consumeNumericToken(); + break; + case Dc: + if (this.peekCodePoint(0) === xo) + for (this.consumeCodePoint(); ; ) { + var Ln = this.consumeCodePoint(); + if (Ln === xo && (Ln = this.consumeCodePoint()) === Dc) + return this.consumeToken(); + if (Ln === Sl) + return this.consumeToken(); + } + break; + case Zl: + return Sv; + case V1: + return fb; + case wf: + if (this.peekCodePoint(0) === hn && this.peekCodePoint(1) === Wo && this.peekCodePoint(2) === Wo) + return this.consumeCodePoint(), this.consumeCodePoint(), Z9; + break; + case Nc: + var On = this.peekCodePoint(0), Or = this.peekCodePoint(1), Rr = this.peekCodePoint(2); + if (lf(On, Or, Rr)) + return { type: 7, value: this.consumeName() }; + break; + case Ro: + return Xy; + case gs: + if (ku(ne, this.peekCodePoint(0))) + return this.reconsumeCodePoint(ne), this.consumeIdentLikeToken(); + break; + case T1: + return Ec; + case tr: + if (this.peekCodePoint(0) === Bl) + return this.consumeCodePoint(), Sk; + break; + case ei: + return ic; + case ri: + return Rs; + case Ad: + case Ba: + var Gi = this.peekCodePoint(0), ga = this.peekCodePoint(1); + return Gi !== sl || !Df(ga) && ga !== fi || (this.consumeCodePoint(), this.consumeUnicodeRangeToken()), this.reconsumeCodePoint(ne), this.consumeIdentLikeToken(); + case Aa: + if (this.peekCodePoint(0) === Bl) + return this.consumeCodePoint(), E3; + if (this.peekCodePoint(0) === Aa) + return this.consumeCodePoint(), hC; + break; + case ya: + if (this.peekCodePoint(0) === Bl) + return this.consumeCodePoint(), Gy; + break; + case Sl: + return c0; + } + return bn(ne) ? (this.consumeWhiteSpace(), j0) : jc(ne) ? (this.reconsumeCodePoint(ne), this.consumeNumericToken()) : ia(ne) ? (this.reconsumeCodePoint(ne), this.consumeIdentLikeToken()) : { type: 6, value: L(ne) }; + }, ce.prototype.consumeCodePoint = function() { + var ne = this._value.shift(); + return ne === void 0 ? -1 : ne; + }, ce.prototype.reconsumeCodePoint = function(ne) { + this._value.unshift(ne); + }, ce.prototype.peekCodePoint = function(ne) { + return ne >= this._value.length ? -1 : this._value[ne]; + }, ce.prototype.consumeUnicodeRangeToken = function() { + for (var ne = [], Ae = this.consumeCodePoint(); Df(Ae) && ne.length < 6; ) + ne.push(Ae), Ae = this.consumeCodePoint(); + for (var fe = !1; Ae === fi && ne.length < 6; ) + ne.push(Ae), Ae = this.consumeCodePoint(), fe = !0; + if (fe) + return { type: 30, start: parseInt(L.apply(void 0, ne.map(function(dt) { + return dt === fi ? U0 : dt; + })), 16), end: parseInt(L.apply(void 0, ne.map(function(dt) { + return dt === fi ? io : dt; + })), 16) }; + var Re = parseInt(L.apply(void 0, ne), 16); + if (this.peekCodePoint(0) === Wo && Df(this.peekCodePoint(1))) { + this.consumeCodePoint(), Ae = this.consumeCodePoint(); + for (var rt = []; Df(Ae) && rt.length < 6; ) + rt.push(Ae), Ae = this.consumeCodePoint(); + return { type: 30, start: Re, end: parseInt(L.apply(void 0, rt), 16) }; + } + return { type: 30, start: Re, end: Re }; + }, ce.prototype.consumeIdentLikeToken = function() { + var ne = this.consumeName(); + return ne.toLowerCase() === "url" && this.peekCodePoint(0) === Ls ? (this.consumeCodePoint(), this.consumeUrlToken()) : this.peekCodePoint(0) === Ls ? (this.consumeCodePoint(), { type: 19, value: ne }) : { type: 20, value: ne }; + }, ce.prototype.consumeUrlToken = function() { + var ne = []; + if (this.consumeWhiteSpace(), this.peekCodePoint(0) === Sl) + return { type: 22, value: "" }; + var Ae = this.peekCodePoint(0); + if (Ae === ra || Ae === Ta) { + var fe = this.consumeStringToken(this.consumeCodePoint()); + return fe.type === 0 && (this.consumeWhiteSpace(), this.peekCodePoint(0) === Sl || this.peekCodePoint(0) === pr) ? (this.consumeCodePoint(), { type: 22, value: fe.value }) : (this.consumeBadUrlRemnants(), T3); + } + for (; ; ) { + var Re = this.consumeCodePoint(); + if (Re === Sl || Re === pr) + return { type: 22, value: L.apply(void 0, ne) }; + if (bn(Re)) + return this.consumeWhiteSpace(), this.peekCodePoint(0) === Sl || this.peekCodePoint(0) === pr ? (this.consumeCodePoint(), { type: 22, value: L.apply(void 0, ne) }) : (this.consumeBadUrlRemnants(), T3); + if (Re === Ta || Re === ra || Re === Ls || vl(Re)) + return this.consumeBadUrlRemnants(), T3; + if (Re === gs) { + if (!ku(Re, this.peekCodePoint(0))) + return this.consumeBadUrlRemnants(), T3; + ne.push(this.consumeEscapedCodePoint()); + } else + ne.push(Re); + } + }, ce.prototype.consumeWhiteSpace = function() { + for (; bn(this.peekCodePoint(0)); ) + this.consumeCodePoint(); + }, ce.prototype.consumeBadUrlRemnants = function() { + for (; ; ) { + var ne = this.consumeCodePoint(); + if (ne === pr || ne === Sl) + return; + ku(ne, this.peekCodePoint(0)) && this.consumeEscapedCodePoint(); + } + }, ce.prototype.consumeStringSlice = function(ne) { + for (var Ae = 5e4, fe = ""; ne > 0; ) { + var Re = Math.min(Ae, ne); + fe += L.apply(void 0, this._value.splice(0, Re)), ne -= Re; + } + return this._value.shift(), fe; + }, ce.prototype.consumeStringToken = function(ne) { + for (var Ae = "", fe = 0; ; ) { + var Re = this._value[fe]; + if (Re === Sl || Re === void 0 || Re === ne) + return { type: 0, value: Ae += this.consumeStringSlice(fe) }; + if (Re === js) + return this._value.splice(0, fe), Lk; + if (Re === gs) { + var rt = this._value[fe + 1]; + rt !== Sl && rt !== void 0 && (rt === js ? (Ae += this.consumeStringSlice(fe), fe = -1, this._value.shift()) : ku(Re, rt) && (Ae += this.consumeStringSlice(fe), Ae += L(this.consumeEscapedCodePoint()), fe = -1)); + } + fe++; + } + }, ce.prototype.consumeNumber = function() { + var ne = [], Ae = qc, fe = this.peekCodePoint(0); + for (fe !== sl && fe !== Wo || ne.push(this.consumeCodePoint()); jc(this.peekCodePoint(0)); ) + ne.push(this.consumeCodePoint()); + fe = this.peekCodePoint(0); + var Re = this.peekCodePoint(1); + if (fe === il && jc(Re)) + for (ne.push(this.consumeCodePoint(), this.consumeCodePoint()), Ae = Jl; jc(this.peekCodePoint(0)); ) + ne.push(this.consumeCodePoint()); + fe = this.peekCodePoint(0), Re = this.peekCodePoint(1); + var rt = this.peekCodePoint(2); + if ((fe === mn || fe === H0) && ((Re === sl || Re === Wo) && jc(rt) || jc(Re))) + for (ne.push(this.consumeCodePoint(), this.consumeCodePoint()), Ae = Jl; jc(this.peekCodePoint(0)); ) + ne.push(this.consumeCodePoint()); + return [Tp(ne), Ae]; + }, ce.prototype.consumeNumericToken = function() { + var ne = this.consumeNumber(), Ae = ne[0], fe = ne[1], Re = this.peekCodePoint(0), rt = this.peekCodePoint(1), dt = this.peekCodePoint(2); + return lf(Re, rt, dt) ? { type: 15, number: Ae, flags: fe, unit: this.consumeName() } : Re === wh ? (this.consumeCodePoint(), { type: 16, number: Ae, flags: fe }) : { type: 17, number: Ae, flags: fe }; + }, ce.prototype.consumeEscapedCodePoint = function() { + var ne = this.consumeCodePoint(); + if (Df(ne)) { + for (var Ae = L(ne); Df(this.peekCodePoint(0)) && Ae.length < 6; ) + Ae += L(this.consumeCodePoint()); + bn(this.peekCodePoint(0)) && this.consumeCodePoint(); + var fe = parseInt(Ae, 16); + return fe === 0 || ll(fe) || fe > 1114111 ? bs : fe; + } + return ne === Sl ? bs : ne; + }, ce.prototype.consumeName = function() { + for (var ne = ""; ; ) { + var Ae = this.consumeCodePoint(); + if (Ca(Ae)) + ne += L(Ae); + else { + if (!ku(Ae, this.peekCodePoint(0))) + return this.reconsumeCodePoint(Ae), ne; + ne += L(this.consumeEscapedCodePoint()); + } + } + }, ce; + }(), k2 = function() { + function ce(ne) { + this._tokens = ne; + } + return ce.create = function(ne) { + var Ae = new Dl(); + return Ae.write(ne), new ce(Ae.read()); + }, ce.parseValue = function(ne) { + return ce.create(ne).parseComponentValue(); + }, ce.parseValues = function(ne) { + return ce.create(ne).parseComponentValues(); + }, ce.prototype.parseComponentValue = function() { + for (var ne = this.consumeToken(); ne.type === 31; ) + ne = this.consumeToken(); + if (ne.type === 32) + throw new SyntaxError("Error parsing CSS component value, unexpected EOF"); + this.reconsumeToken(ne); + var Ae = this.consumeComponentValue(); + do + ne = this.consumeToken(); + while (ne.type === 31); + if (ne.type === 32) + return Ae; + throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one"); + }, ce.prototype.parseComponentValues = function() { + for (var ne = []; ; ) { + var Ae = this.consumeComponentValue(); + if (Ae.type === 32) + return ne; + ne.push(Ae), ne.push(); + } + }, ce.prototype.consumeComponentValue = function() { + var ne = this.consumeToken(); + switch (ne.type) { + case 11: + case 28: + case 2: + return this.consumeSimpleBlock(ne.type); + case 19: + return this.consumeFunction(ne); + } + return ne; + }, ce.prototype.consumeSimpleBlock = function(ne) { + for (var Ae = { type: ne, values: [] }, fe = this.consumeToken(); ; ) { + if (fe.type === 32 || Mk(fe, ne)) + return Ae; + this.reconsumeToken(fe), Ae.values.push(this.consumeComponentValue()), fe = this.consumeToken(); + } + }, ce.prototype.consumeFunction = function(ne) { + for (var Ae = { name: ne.value, values: [], type: 18 }; ; ) { + var fe = this.consumeToken(); + if (fe.type === 32 || fe.type === 3) + return Ae; + this.reconsumeToken(fe), Ae.values.push(this.consumeComponentValue()); + } + }, ce.prototype.consumeToken = function() { + var ne = this._tokens.shift(); + return ne === void 0 ? c0 : ne; + }, ce.prototype.reconsumeToken = function(ne) { + this._tokens.unshift(ne); + }, ce; + }(), x2 = function(ce) { + return ce.type === 15; + }, l0 = function(ce) { + return ce.type === 17; + }, vc = function(ce) { + return ce.type === 20; + }, Ik = function(ce) { + return ce.type === 0; + }, x5 = function(ce, ne) { + return vc(ce) && ce.value === ne; + }, B3 = function(ce) { + return ce.type !== 31; + }, C2 = function(ce) { + return ce.type !== 31 && ce.type !== 4; + }, K0 = function(ce) { + var ne = [], Ae = []; + return ce.forEach(function(fe) { + if (fe.type === 4) { + if (Ae.length === 0) + throw new Error("Error parsing function args, zero tokens for arg"); + return ne.push(Ae), void (Ae = []); + } + fe.type !== 31 && Ae.push(fe); + }), Ae.length && ne.push(Ae), ne; + }, Mk = function(ce, ne) { + return ne === 11 && ce.type === 12 || ne === 28 && ce.type === 29 || ne === 2 && ce.type === 3; + }, dm = function(ce) { + return ce.type === 17 || ce.type === 15; + }, Xh = function(ce) { + return ce.type === 16 || dm(ce); + }, Bp = function(ce) { + return ce.length > 1 ? [ce[0], ce[1]] : [ce[0]]; + }, xf = { type: 17, number: 0, flags: qc }, Lg = { type: 16, number: 50, flags: qc }, Nf = { type: 16, number: 100, flags: qc }, Lv = function(ce, ne, Ae) { + var fe = ce[0], Re = ce[1]; + return [Fu(fe, ne), Fu(Re !== void 0 ? Re : fe, Ae)]; + }, Fu = function(ce, ne) { + if (ce.type === 16) + return ce.number / 100 * ne; + if (x2(ce)) + switch (ce.unit) { + case "rem": + case "em": + return 16 * ce.number; + default: + return ce.number; + } + return ce.number; + }, Sp = "deg", _2 = "grad", S3 = "rad", Fk = "turn", gd = { name: "angle", parse: function(ce, ne) { + if (ne.type === 15) + switch (ne.unit) { + case Sp: + return Math.PI * ne.number / 180; + case _2: + return Math.PI / 200 * ne.number; + case S3: + return ne.number; + case Fk: + return 2 * Math.PI * ne.number; + } + throw new Error("Unsupported angle type"); + } }, Ig = function(ce) { + return ce.type === 15 && (ce.unit === Sp || ce.unit === _2 || ce.unit === S3 || ce.unit === Fk); + }, Wy = function(ce) { + switch (ce.filter(vc).map(function(ne) { + return ne.value; + }).join(" ")) { + case "to bottom right": + case "to right bottom": + case "left top": + case "top left": + return [xf, xf]; + case "to top": + case "bottom": + return h1(0); + case "to bottom left": + case "to left bottom": + case "right top": + case "top right": + return [xf, Nf]; + case "to right": + case "left": + return h1(90); + case "to top left": + case "to left top": + case "right bottom": + case "bottom right": + return [Nf, Nf]; + case "to bottom": + case "top": + return h1(180); + case "to top right": + case "to right top": + case "left bottom": + case "bottom left": + return [Nf, xf]; + case "to left": + case "right": + return h1(270); + } + return 0; + }, h1 = function(ce) { + return Math.PI * ce / 180; + }, aA = { name: "color", parse: function(ce, ne) { + if (ne.type === 18) { + var Ae = Vy[ne.name]; + if (Ae === void 0) + throw new Error('Attempting to parse an unsupported color function "' + ne.name + '"'); + return Ae(ce, ne.values); + } + if (ne.type === 5) { + if (ne.value.length === 3) { + var fe = ne.value.substring(0, 1), Re = ne.value.substring(1, 2), rt = ne.value.substring(2, 3); + return u0(parseInt(fe + fe, 16), parseInt(Re + Re, 16), parseInt(rt + rt, 16), 1); + } + if (ne.value.length === 4) { + fe = ne.value.substring(0, 1), Re = ne.value.substring(1, 2), rt = ne.value.substring(2, 3); + var dt = ne.value.substring(3, 4); + return u0(parseInt(fe + fe, 16), parseInt(Re + Re, 16), parseInt(rt + rt, 16), parseInt(dt + dt, 16) / 255); + } + if (ne.value.length === 6) + return fe = ne.value.substring(0, 2), Re = ne.value.substring(2, 4), rt = ne.value.substring(4, 6), u0(parseInt(fe, 16), parseInt(Re, 16), parseInt(rt, 16), 1); + if (ne.value.length === 8) + return fe = ne.value.substring(0, 2), Re = ne.value.substring(2, 4), rt = ne.value.substring(4, 6), dt = ne.value.substring(6, 8), u0(parseInt(fe, 16), parseInt(Re, 16), parseInt(rt, 16), parseInt(dt, 16) / 255); + } + if (ne.type === 20) { + var Gt = BA[ne.value.toUpperCase()]; + if (Gt !== void 0) + return Gt; + } + return BA.TRANSPARENT; + } }, Od = function(ce) { + return (255 & ce) == 0; + }, Ks = function(ce) { + var ne = 255 & ce, Ae = 255 & ce >> 8, fe = 255 & ce >> 16, Re = 255 & ce >> 24; + return ne < 255 ? "rgba(" + Re + "," + fe + "," + Ae + "," + ne / 255 + ")" : "rgb(" + Re + "," + fe + "," + Ae + ")"; + }, u0 = function(ce, ne, Ae, fe) { + return (ce << 24 | ne << 16 | Ae << 8 | Math.round(255 * fe) << 0) >>> 0; + }, L3 = function(ce, ne) { + if (ce.type === 17) + return ce.number; + if (ce.type === 16) { + var Ae = ne === 3 ? 1 : 255; + return ne === 3 ? ce.number / 100 * Ae : Math.round(ce.number / 100 * Ae); + } + return 0; + }, db = function(ce, ne) { + var Ae = ne.filter(C2); + if (Ae.length === 3) { + var fe = Ae.map(L3), Re = fe[0], rt = fe[1], dt = fe[2]; + return u0(Re, rt, dt, 1); + } + if (Ae.length === 4) { + var Gt = Ae.map(L3), Nt = (Re = Gt[0], rt = Gt[1], dt = Gt[2], Gt[3]); + return u0(Re, rt, dt, Nt); + } + return 0; + }; + function E2(ce, ne, Ae) { + return Ae < 0 && (Ae += 1), Ae >= 1 && (Ae -= 1), Ae < 1 / 6 ? (ne - ce) * Ae * 6 + ce : Ae < 0.5 ? ne : Ae < 2 / 3 ? 6 * (ne - ce) * (2 / 3 - Ae) + ce : ce; + } + var Iv = function(ce, ne) { + var Ae = ne.filter(C2), fe = Ae[0], Re = Ae[1], rt = Ae[2], dt = Ae[3], Gt = (fe.type === 17 ? h1(fe.number) : gd.parse(ce, fe)) / (2 * Math.PI), Nt = Xh(Re) ? Re.number / 100 : 0, Ln = Xh(rt) ? rt.number / 100 : 0, On = dt !== void 0 && Xh(dt) ? Fu(dt, 1) : 1; + if (Nt === 0) + return u0(255 * Ln, 255 * Ln, 255 * Ln, 1); + var Or = Ln <= 0.5 ? Ln * (Nt + 1) : Ln + Nt - Ln * Nt, Rr = 2 * Ln - Or, Gi = E2(Rr, Or, Gt + 1 / 3), ga = E2(Rr, Or, Gt), Co = E2(Rr, Or, Gt - 1 / 3); + return u0(255 * Gi, 255 * ga, 255 * Co, On); + }, Vy = { hsl: Iv, hsla: Iv, rgb: db, rgba: db }, B1 = function(ce, ne) { + return aA.parse(ce, k2.create(ne).parseComponentValue()); + }, BA = { ALICEBLUE: 4042850303, ANTIQUEWHITE: 4209760255, AQUA: 16777215, AQUAMARINE: 2147472639, AZURE: 4043309055, BEIGE: 4126530815, BISQUE: 4293182719, BLACK: 255, BLANCHEDALMOND: 4293643775, BLUE: 65535, BLUEVIOLET: 2318131967, BROWN: 2771004159, BURLYWOOD: 3736635391, CADETBLUE: 1604231423, CHARTREUSE: 2147418367, CHOCOLATE: 3530104575, CORAL: 4286533887, CORNFLOWERBLUE: 1687547391, CORNSILK: 4294499583, CRIMSON: 3692313855, CYAN: 16777215, DARKBLUE: 35839, DARKCYAN: 9145343, DARKGOLDENROD: 3095837695, DARKGRAY: 2846468607, DARKGREEN: 6553855, DARKGREY: 2846468607, DARKKHAKI: 3182914559, DARKMAGENTA: 2332068863, DARKOLIVEGREEN: 1433087999, DARKORANGE: 4287365375, DARKORCHID: 2570243327, DARKRED: 2332033279, DARKSALMON: 3918953215, DARKSEAGREEN: 2411499519, DARKSLATEBLUE: 1211993087, DARKSLATEGRAY: 793726975, DARKSLATEGREY: 793726975, DARKTURQUOISE: 13554175, DARKVIOLET: 2483082239, DEEPPINK: 4279538687, DEEPSKYBLUE: 12582911, DIMGRAY: 1768516095, DIMGREY: 1768516095, DODGERBLUE: 512819199, FIREBRICK: 2988581631, FLORALWHITE: 4294635775, FORESTGREEN: 579543807, FUCHSIA: 4278255615, GAINSBORO: 3705462015, GHOSTWHITE: 4177068031, GOLD: 4292280575, GOLDENROD: 3668254975, GRAY: 2155905279, GREEN: 8388863, GREENYELLOW: 2919182335, GREY: 2155905279, HONEYDEW: 4043305215, HOTPINK: 4285117695, INDIANRED: 3445382399, INDIGO: 1258324735, IVORY: 4294963455, KHAKI: 4041641215, LAVENDER: 3873897215, LAVENDERBLUSH: 4293981695, LAWNGREEN: 2096890111, LEMONCHIFFON: 4294626815, LIGHTBLUE: 2916673279, LIGHTCORAL: 4034953471, LIGHTCYAN: 3774873599, LIGHTGOLDENRODYELLOW: 4210742015, LIGHTGRAY: 3553874943, LIGHTGREEN: 2431553791, LIGHTGREY: 3553874943, LIGHTPINK: 4290167295, LIGHTSALMON: 4288707327, LIGHTSEAGREEN: 548580095, LIGHTSKYBLUE: 2278488831, LIGHTSLATEGRAY: 2005441023, LIGHTSLATEGREY: 2005441023, LIGHTSTEELBLUE: 2965692159, LIGHTYELLOW: 4294959359, LIME: 16711935, LIMEGREEN: 852308735, LINEN: 4210091775, MAGENTA: 4278255615, MAROON: 2147483903, MEDIUMAQUAMARINE: 1724754687, MEDIUMBLUE: 52735, MEDIUMORCHID: 3126187007, MEDIUMPURPLE: 2473647103, MEDIUMSEAGREEN: 1018393087, MEDIUMSLATEBLUE: 2070474495, MEDIUMSPRINGGREEN: 16423679, MEDIUMTURQUOISE: 1221709055, MEDIUMVIOLETRED: 3340076543, MIDNIGHTBLUE: 421097727, MINTCREAM: 4127193855, MISTYROSE: 4293190143, MOCCASIN: 4293178879, NAVAJOWHITE: 4292783615, NAVY: 33023, OLDLACE: 4260751103, OLIVE: 2155872511, OLIVEDRAB: 1804477439, ORANGE: 4289003775, ORANGERED: 4282712319, ORCHID: 3664828159, PALEGOLDENROD: 4008225535, PALEGREEN: 2566625535, PALETURQUOISE: 2951671551, PALEVIOLETRED: 3681588223, PAPAYAWHIP: 4293907967, PEACHPUFF: 4292524543, PERU: 3448061951, PINK: 4290825215, PLUM: 3718307327, POWDERBLUE: 2967529215, PURPLE: 2147516671, REBECCAPURPLE: 1714657791, RED: 4278190335, ROSYBROWN: 3163525119, ROYALBLUE: 1097458175, SADDLEBROWN: 2336560127, SALMON: 4202722047, SANDYBROWN: 4104413439, SEAGREEN: 780883967, SEASHELL: 4294307583, SIENNA: 2689740287, SILVER: 3233857791, SKYBLUE: 2278484991, SLATEBLUE: 1784335871, SLATEGRAY: 1887473919, SLATEGREY: 1887473919, SNOW: 4294638335, SPRINGGREEN: 16744447, STEELBLUE: 1182971135, TAN: 3535047935, TEAL: 8421631, THISTLE: 3636451583, TOMATO: 4284696575, TRANSPARENT: 0, TURQUOISE: 1088475391, VIOLET: 4001558271, WHEAT: 4125012991, WHITE: 4294967295, WHITESMOKE: 4126537215, YELLOW: 4294902015, YELLOWGREEN: 2597139199 }, qy = { name: "background-clip", initialValue: "border-box", prefix: !1, type: 1, parse: function(ce, ne) { + return ne.map(function(Ae) { + if (vc(Ae)) + switch (Ae.value) { + case "padding-box": + return 1; + case "content-box": + return 2; + } + return 0; + }); + } }, Yy = { name: "background-color", initialValue: "transparent", prefix: !1, type: 3, format: "color" }, h0 = function(ce, ne) { + var Ae = aA.parse(ce, ne[0]), fe = ne[1]; + return fe && Xh(fe) ? { color: Ae, stop: fe } : { color: Ae, stop: null }; + }, Jy = function(ce, ne) { + var Ae = ce[0], fe = ce[ce.length - 1]; + Ae.stop === null && (Ae.stop = xf), fe.stop === null && (fe.stop = Nf); + for (var Re = [], rt = 0, dt = 0; dt < ce.length; dt++) { + var Gt = ce[dt].stop; + if (Gt !== null) { + var Nt = Fu(Gt, ne); + Nt > rt ? Re.push(Nt) : Re.push(rt), rt = Nt; + } else + Re.push(null); + } + var Ln = null; + for (dt = 0; dt < Re.length; dt++) { + var On = Re[dt]; + if (On === null) + Ln === null && (Ln = dt); + else if (Ln !== null) { + for (var Or = dt - Ln, Rr = (On - Re[Ln - 1]) / (Or + 1), Gi = 1; Gi <= Or; Gi++) + Re[Ln + Gi - 1] = Rr * Gi; + Ln = null; + } + } + return ce.map(function(ga, Co) { + return { color: ga.color, stop: Math.max(Math.min(1, Re[Co] / ne), 0) }; + }); + }, Ok = function(ce, ne, Ae) { + var fe = ne / 2, Re = Ae / 2, rt = Fu(ce[0], ne) - fe, dt = Re - Fu(ce[1], Ae); + return (Math.atan2(dt, rt) + 2 * Math.PI) % (2 * Math.PI); + }, I3 = function(ce, ne, Ae) { + var fe = typeof ce == "number" ? ce : Ok(ce, ne, Ae), Re = Math.abs(ne * Math.sin(fe)) + Math.abs(Ae * Math.cos(fe)), rt = ne / 2, dt = Ae / 2, Gt = Re / 2, Nt = Math.sin(fe - Math.PI / 2) * Gt, Ln = Math.cos(fe - Math.PI / 2) * Gt; + return [Re, rt - Ln, rt + Ln, dt - Nt, dt + Nt]; + }, Wh = function(ce, ne) { + return Math.sqrt(ce * ce + ne * ne); + }, Mg = function(ce, ne, Ae, fe, Re) { + return [[0, 0], [0, ne], [ce, 0], [ce, ne]].reduce(function(rt, dt) { + var Gt = dt[0], Nt = dt[1], Ln = Wh(Ae - Gt, fe - Nt); + return (Re ? Ln < rt.optimumDistance : Ln > rt.optimumDistance) ? { optimumCorner: dt, optimumDistance: Ln } : rt; + }, { optimumDistance: Re ? 1 / 0 : -1 / 0, optimumCorner: null }).optimumCorner; + }, M3 = function(ce, ne, Ae, fe, Re) { + var rt = 0, dt = 0; + switch (ce.size) { + case 0: + ce.shape === 0 ? rt = dt = Math.min(Math.abs(ne), Math.abs(ne - fe), Math.abs(Ae), Math.abs(Ae - Re)) : ce.shape === 1 && (rt = Math.min(Math.abs(ne), Math.abs(ne - fe)), dt = Math.min(Math.abs(Ae), Math.abs(Ae - Re))); + break; + case 2: + if (ce.shape === 0) + rt = dt = Math.min(Wh(ne, Ae), Wh(ne, Ae - Re), Wh(ne - fe, Ae), Wh(ne - fe, Ae - Re)); + else if (ce.shape === 1) { + var Gt = Math.min(Math.abs(Ae), Math.abs(Ae - Re)) / Math.min(Math.abs(ne), Math.abs(ne - fe)), Nt = Mg(fe, Re, ne, Ae, !0), Ln = Nt[0], On = Nt[1]; + dt = Gt * (rt = Wh(Ln - ne, (On - Ae) / Gt)); + } + break; + case 1: + ce.shape === 0 ? rt = dt = Math.max(Math.abs(ne), Math.abs(ne - fe), Math.abs(Ae), Math.abs(Ae - Re)) : ce.shape === 1 && (rt = Math.max(Math.abs(ne), Math.abs(ne - fe)), dt = Math.max(Math.abs(Ae), Math.abs(Ae - Re))); + break; + case 3: + if (ce.shape === 0) + rt = dt = Math.max(Wh(ne, Ae), Wh(ne, Ae - Re), Wh(ne - fe, Ae), Wh(ne - fe, Ae - Re)); + else if (ce.shape === 1) { + Gt = Math.max(Math.abs(Ae), Math.abs(Ae - Re)) / Math.max(Math.abs(ne), Math.abs(ne - fe)); + var Or = Mg(fe, Re, ne, Ae, !1); + Ln = Or[0], On = Or[1], dt = Gt * (rt = Wh(Ln - ne, (On - Ae) / Gt)); + } + } + return Array.isArray(ce.size) && (rt = Fu(ce.size[0], fe), dt = ce.size.length === 2 ? Fu(ce.size[1], Re) : rt), [rt, dt]; + }, SA = function(ce, ne) { + var Ae = h1(180), fe = []; + return K0(ne).forEach(function(Re, rt) { + if (rt === 0) { + var dt = Re[0]; + if (dt.type === 20 && dt.value === "to") + return void (Ae = Wy(Re)); + if (Ig(dt)) + return void (Ae = gd.parse(ce, dt)); + } + var Gt = h0(ce, Re); + fe.push(Gt); + }), { angle: Ae, stops: fe, type: 1 }; + }, Fg = function(ce, ne) { + var Ae = h1(180), fe = []; + return K0(ne).forEach(function(Re, rt) { + if (rt === 0) { + var dt = Re[0]; + if (dt.type === 20 && ["top", "left", "right", "bottom"].indexOf(dt.value) !== -1) + return void (Ae = Wy(Re)); + if (Ig(dt)) + return void (Ae = (gd.parse(ce, dt) + h1(270)) % h1(360)); + } + var Gt = h0(ce, Re); + fe.push(Gt); + }), { angle: Ae, stops: fe, type: 1 }; + }, Am = function(ce, ne) { + var Ae = h1(180), fe = [], Re = 1, rt = 0, dt = 3, Gt = []; + return K0(ne).forEach(function(Nt, Ln) { + var On = Nt[0]; + if (Ln === 0) { + if (vc(On) && On.value === "linear") + return void (Re = 1); + if (vc(On) && On.value === "radial") + return void (Re = 2); + } + if (On.type === 18) { + if (On.name === "from") { + var Or = aA.parse(ce, On.values[0]); + fe.push({ stop: xf, color: Or }); + } else if (On.name === "to") + Or = aA.parse(ce, On.values[0]), fe.push({ stop: Nf, color: Or }); + else if (On.name === "color-stop") { + var Rr = On.values.filter(C2); + if (Rr.length === 2) { + Or = aA.parse(ce, Rr[1]); + var Gi = Rr[0]; + l0(Gi) && fe.push({ stop: { type: 16, number: 100 * Gi.number, flags: Gi.flags }, color: Or }); + } + } + } + }), Re === 1 ? { angle: (Ae + h1(180)) % h1(360), stops: fe, type: Re } : { size: dt, shape: rt, stops: fe, position: Gt, type: Re }; + }, Dd = "closest-side", Mv = "farthest-side", Zy = "closest-corner", dC = "farthest-corner", T2 = "circle", Nd = "ellipse", Lp = "cover", B2 = "contain", AC = function(ce, ne) { + var Ae = 0, fe = 3, Re = [], rt = []; + return K0(ne).forEach(function(dt, Gt) { + var Nt = !0; + if (Gt === 0) { + var Ln = !1; + Nt = dt.reduce(function(Or, Rr) { + if (Ln) + if (vc(Rr)) + switch (Rr.value) { + case "center": + return rt.push(Lg), Or; + case "top": + case "left": + return rt.push(xf), Or; + case "right": + case "bottom": + return rt.push(Nf), Or; + } + else + (Xh(Rr) || dm(Rr)) && rt.push(Rr); + else if (vc(Rr)) + switch (Rr.value) { + case T2: + return Ae = 0, !1; + case Nd: + return Ae = 1, !1; + case "at": + return Ln = !0, !1; + case Dd: + return fe = 0, !1; + case Lp: + case Mv: + return fe = 1, !1; + case B2: + case Zy: + return fe = 2, !1; + case dC: + return fe = 3, !1; + } + else if (dm(Rr) || Xh(Rr)) + return Array.isArray(fe) || (fe = []), fe.push(Rr), !1; + return Or; + }, Nt); + } + if (Nt) { + var On = h0(ce, dt); + Re.push(On); + } + }), { size: fe, shape: Ae, stops: Re, position: rt, type: 2 }; + }, Ab = function(ce, ne) { + var Ae = 0, fe = 3, Re = [], rt = []; + return K0(ne).forEach(function(dt, Gt) { + var Nt = !0; + if (Gt === 0 ? Nt = dt.reduce(function(On, Or) { + if (vc(Or)) + switch (Or.value) { + case "center": + return rt.push(Lg), !1; + case "top": + case "left": + return rt.push(xf), !1; + case "right": + case "bottom": + return rt.push(Nf), !1; + } + else if (Xh(Or) || dm(Or)) + return rt.push(Or), !1; + return On; + }, Nt) : Gt === 1 && (Nt = dt.reduce(function(On, Or) { + if (vc(Or)) + switch (Or.value) { + case T2: + return Ae = 0, !1; + case Nd: + return Ae = 1, !1; + case B2: + case Dd: + return fe = 0, !1; + case Mv: + return fe = 1, !1; + case Zy: + return fe = 2, !1; + case Lp: + case dC: + return fe = 3, !1; + } + else if (dm(Or) || Xh(Or)) + return Array.isArray(fe) || (fe = []), fe.push(Or), !1; + return On; + }, Nt)), Nt) { + var Ln = h0(ce, dt); + Re.push(Ln); + } + }), { size: fe, shape: Ae, stops: Re, position: rt, type: 2 }; + }, S2 = function(ce) { + return ce.type === 1; + }, f0 = function(ce) { + return ce.type === 2; + }, pd = { name: "image", parse: function(ce, ne) { + if (ne.type === 22) { + var Ae = { url: ne.value, type: 0 }; + return ce.cache.addImage(ne.value), Ae; + } + if (ne.type === 18) { + var fe = z0[ne.name]; + if (fe === void 0) + throw new Error('Attempting to parse an unsupported image function "' + ne.name + '"'); + return fe(ce, ne.values); + } + throw new Error("Unsupported image type " + ne.type); + } }; + function L2(ce) { + return !(ce.type === 20 && ce.value === "none" || ce.type === 18 && !z0[ce.name]); + } + var LA, z0 = { "linear-gradient": SA, "-moz-linear-gradient": Fg, "-ms-linear-gradient": Fg, "-o-linear-gradient": Fg, "-webkit-linear-gradient": Fg, "radial-gradient": AC, "-moz-radial-gradient": Ab, "-ms-radial-gradient": Ab, "-o-radial-gradient": Ab, "-webkit-radial-gradient": Ab, "-webkit-gradient": Am }, F3 = { name: "background-image", initialValue: "none", type: 1, prefix: !1, parse: function(ce, ne) { + if (ne.length === 0) + return []; + var Ae = ne[0]; + return Ae.type === 20 && Ae.value === "none" ? [] : ne.filter(function(fe) { + return C2(fe) && L2(fe); + }).map(function(fe) { + return pd.parse(ce, fe); + }); + } }, Dk = { name: "background-origin", initialValue: "border-box", prefix: !1, type: 1, parse: function(ce, ne) { + return ne.map(function(Ae) { + if (vc(Ae)) + switch (Ae.value) { + case "padding-box": + return 1; + case "content-box": + return 2; + } + return 0; + }); + } }, I2 = { name: "background-position", initialValue: "0% 0%", type: 1, prefix: !1, parse: function(ce, ne) { + return K0(ne).map(function(Ae) { + return Ae.filter(Xh); + }).map(Bp); + } }, O3 = { name: "background-repeat", initialValue: "repeat", prefix: !1, type: 1, parse: function(ce, ne) { + return K0(ne).map(function(Ae) { + return Ae.filter(vc).map(function(fe) { + return fe.value; + }).join(" "); + }).map(C5); + } }, C5 = function(ce) { + switch (ce) { + case "no-repeat": + return 1; + case "repeat-x": + case "repeat no-repeat": + return 2; + case "repeat-y": + case "no-repeat repeat": + return 3; + default: + return 0; + } + }; + (function(ce) { + ce.AUTO = "auto", ce.CONTAIN = "contain", ce.COVER = "cover"; + })(LA || (LA = {})); + var gm, Fv = { name: "background-size", initialValue: "0", prefix: !1, type: 1, parse: function(ce, ne) { + return K0(ne).map(function(Ae) { + return Ae.filter(gb); + }); + } }, gb = function(ce) { + return vc(ce) || Xh(ce); + }, pb = function(ce) { + return { name: "border-" + ce + "-color", initialValue: "transparent", prefix: !1, type: 3, format: "color" }; + }, Nk = pb("top"), ew = pb("right"), pm = pb("bottom"), M2 = pb("left"), tw = function(ce) { + return { name: "border-radius-" + ce, initialValue: "0 0", prefix: !1, type: 1, parse: function(ne, Ae) { + return Bp(Ae.filter(Xh)); + } }; + }, nw = tw("top-left"), F2 = tw("top-right"), _5 = tw("bottom-right"), gC = tw("bottom-left"), Ov = function(ce) { + return { name: "border-" + ce + "-style", initialValue: "solid", prefix: !1, type: 2, parse: function(ne, Ae) { + switch (Ae) { + case "none": + return 0; + case "dashed": + return 2; + case "dotted": + return 3; + case "double": + return 4; + } + return 1; + } }; + }, E5 = Ov("top"), rw = Ov("right"), D3 = Ov("bottom"), pC = Ov("left"), O2 = function(ce) { + return { name: "border-" + ce + "-width", initialValue: "0", type: 0, prefix: !1, parse: function(ne, Ae) { + return x2(Ae) ? Ae.number : 0; + } }; + }, Pk = O2("top"), Dv = O2("right"), mC = O2("bottom"), Nv = O2("left"), N3 = { name: "color", initialValue: "transparent", prefix: !1, type: 3, format: "color" }, d0 = { name: "direction", initialValue: "ltr", prefix: !1, type: 2, parse: function(ce, ne) { + return ne === "rtl" ? 1 : 0; + } }, Pv = { name: "display", initialValue: "inline-block", prefix: !1, type: 1, parse: function(ce, ne) { + return ne.filter(vc).reduce(function(Ae, fe) { + return Ae | mm(fe.value); + }, 0); + } }, mm = function(ce) { + switch (ce) { + case "block": + case "-webkit-box": + return 2; + case "inline": + return 4; + case "run-in": + return 8; + case "flow": + return 16; + case "flow-root": + return 32; + case "table": + return 64; + case "flex": + case "-webkit-flex": + return 128; + case "grid": + case "-ms-grid": + return 256; + case "ruby": + return 512; + case "subgrid": + return 1024; + case "list-item": + return 2048; + case "table-row-group": + return 4096; + case "table-header-group": + return 8192; + case "table-footer-group": + return 16384; + case "table-row": + return 32768; + case "table-cell": + return 65536; + case "table-column-group": + return 131072; + case "table-column": + return 262144; + case "table-caption": + return 524288; + case "ruby-base": + return 1048576; + case "ruby-text": + return 2097152; + case "ruby-base-container": + return 4194304; + case "ruby-text-container": + return 8388608; + case "contents": + return 16777216; + case "inline-block": + return 33554432; + case "inline-list-item": + return 67108864; + case "inline-table": + return 134217728; + case "inline-flex": + return 268435456; + case "inline-grid": + return 536870912; + } + return 0; + }, bC = { name: "float", initialValue: "none", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "left": + return 1; + case "right": + return 2; + case "inline-start": + return 3; + case "inline-end": + return 4; + } + return 0; + } }, bm = { name: "letter-spacing", initialValue: "0", prefix: !1, type: 0, parse: function(ce, ne) { + return ne.type === 20 && ne.value === "normal" ? 0 : ne.type === 17 || ne.type === 15 ? ne.number : 0; + } }; + (function(ce) { + ce.NORMAL = "normal", ce.STRICT = "strict"; + })(gm || (gm = {})); + var D2, e_ = { name: "line-break", initialValue: "normal", prefix: !1, type: 2, parse: function(ce, ne) { + return ne === "strict" ? gm.STRICT : gm.NORMAL; + } }, mb = { name: "line-height", initialValue: "normal", prefix: !1, type: 4 }, bb = function(ce, ne) { + return vc(ce) && ce.value === "normal" ? 1.2 * ne : ce.type === 17 ? ne * ce.number : Xh(ce) ? Fu(ce, ne) : ne; + }, vC = { name: "list-style-image", initialValue: "none", type: 0, prefix: !1, parse: function(ce, ne) { + return ne.type === 20 && ne.value === "none" ? null : pd.parse(ce, ne); + } }, yC = { name: "list-style-position", initialValue: "outside", prefix: !1, type: 2, parse: function(ce, ne) { + return ne === "inside" ? 0 : 1; + } }, P3 = { name: "list-style-type", initialValue: "none", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "disc": + return 0; + case "circle": + return 1; + case "square": + return 2; + case "decimal": + return 3; + case "cjk-decimal": + return 4; + case "decimal-leading-zero": + return 5; + case "lower-roman": + return 6; + case "upper-roman": + return 7; + case "lower-greek": + return 8; + case "lower-alpha": + return 9; + case "upper-alpha": + return 10; + case "arabic-indic": + return 11; + case "armenian": + return 12; + case "bengali": + return 13; + case "cambodian": + return 14; + case "cjk-earthly-branch": + return 15; + case "cjk-heavenly-stem": + return 16; + case "cjk-ideographic": + return 17; + case "devanagari": + return 18; + case "ethiopic-numeric": + return 19; + case "georgian": + return 20; + case "gujarati": + return 21; + case "gurmukhi": + case "hebrew": + return 22; + case "hiragana": + return 23; + case "hiragana-iroha": + return 24; + case "japanese-formal": + return 25; + case "japanese-informal": + return 26; + case "kannada": + return 27; + case "katakana": + return 28; + case "katakana-iroha": + return 29; + case "khmer": + return 30; + case "korean-hangul-formal": + return 31; + case "korean-hanja-formal": + return 32; + case "korean-hanja-informal": + return 33; + case "lao": + return 34; + case "lower-armenian": + return 35; + case "malayalam": + return 36; + case "mongolian": + return 37; + case "myanmar": + return 38; + case "oriya": + return 39; + case "persian": + return 40; + case "simp-chinese-formal": + return 41; + case "simp-chinese-informal": + return 42; + case "tamil": + return 43; + case "telugu": + return 44; + case "thai": + return 45; + case "tibetan": + return 46; + case "trad-chinese-formal": + return 47; + case "trad-chinese-informal": + return 48; + case "upper-armenian": + return 49; + case "disclosure-open": + return 50; + case "disclosure-closed": + return 51; + default: + return -1; + } + } }, R3 = function(ce) { + return { name: "margin-" + ce, initialValue: "0", prefix: !1, type: 4 }; + }, iw = R3("top"), T5 = R3("right"), IA = R3("bottom"), q1 = R3("left"), Pd = { name: "overflow", initialValue: "visible", prefix: !1, type: 1, parse: function(ce, ne) { + return ne.filter(vc).map(function(Ae) { + switch (Ae.value) { + case "hidden": + return 1; + case "scroll": + return 2; + case "clip": + return 3; + case "auto": + return 4; + default: + return 0; + } + }); + } }, e1 = { name: "overflow-wrap", initialValue: "normal", prefix: !1, type: 2, parse: function(ce, ne) { + return ne === "break-word" ? "break-word" : "normal"; + } }, Ip = function(ce) { + return { name: "padding-" + ce, initialValue: "0", prefix: !1, type: 3, format: "length-percentage" }; + }, wC = Ip("top"), N2 = Ip("right"), B5 = Ip("bottom"), Rk = Ip("left"), Og = { name: "text-align", initialValue: "left", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "right": + return 2; + case "center": + case "justify": + return 1; + default: + return 0; + } + } }, Q3 = { name: "position", initialValue: "static", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "relative": + return 1; + case "absolute": + return 2; + case "fixed": + return 3; + case "sticky": + return 4; + } + return 0; + } }, Qk = { name: "text-shadow", initialValue: "none", type: 1, prefix: !1, parse: function(ce, ne) { + return ne.length === 1 && x5(ne[0], "none") ? [] : K0(ne).map(function(Ae) { + for (var fe = { color: BA.TRANSPARENT, offsetX: xf, offsetY: xf, blur: xf }, Re = 0, rt = 0; rt < Ae.length; rt++) { + var dt = Ae[rt]; + dm(dt) ? (Re === 0 ? fe.offsetX = dt : Re === 1 ? fe.offsetY = dt : fe.blur = dt, Re++) : fe.color = aA.parse(ce, dt); + } + return fe; + }); + } }, aw = { name: "text-transform", initialValue: "none", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "uppercase": + return 2; + case "lowercase": + return 1; + case "capitalize": + return 3; + } + return 0; + } }, $k = { name: "transform", initialValue: "none", prefix: !0, type: 0, parse: function(ce, ne) { + if (ne.type === 20 && ne.value === "none") + return null; + if (ne.type === 18) { + var Ae = $3[ne.name]; + if (Ae === void 0) + throw new Error('Attempting to parse an unsupported transform function "' + ne.name + '"'); + return Ae(ne.values); + } + return null; + } }, Uk = function(ce) { + var ne = ce.filter(function(Ae) { + return Ae.type === 17; + }).map(function(Ae) { + return Ae.number; + }); + return ne.length === 6 ? ne : null; + }, P2 = function(ce) { + var ne = ce.filter(function(Nt) { + return Nt.type === 17; + }).map(function(Nt) { + return Nt.number; + }), Ae = ne[0], fe = ne[1]; + ne[2], ne[3]; + var Re = ne[4], rt = ne[5]; + ne[6], ne[7], ne[8], ne[9], ne[10], ne[11]; + var dt = ne[12], Gt = ne[13]; + return ne[14], ne[15], ne.length === 16 ? [Ae, fe, Re, rt, dt, Gt] : null; + }, $3 = { matrix: Uk, matrix3d: P2 }, Dg = { type: 16, number: 50, flags: qc }, S5 = [Dg, Dg], L5 = { name: "transform-origin", initialValue: "50% 50%", prefix: !0, type: 1, parse: function(ce, ne) { + var Ae = ne.filter(Xh); + return Ae.length !== 2 ? S5 : [Ae[0], Ae[1]]; + } }, vb = { name: "visible", initialValue: "none", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "hidden": + return 1; + case "collapse": + return 2; + default: + return 0; + } + } }; + (function(ce) { + ce.NORMAL = "normal", ce.BREAK_ALL = "break-all", ce.KEEP_ALL = "keep-all"; + })(D2 || (D2 = {})); + for (var t_ = { name: "word-break", initialValue: "normal", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "break-all": + return D2.BREAK_ALL; + case "keep-all": + return D2.KEEP_ALL; + default: + return D2.NORMAL; + } + } }, yb = { name: "z-index", initialValue: "auto", prefix: !1, type: 0, parse: function(ce, ne) { + if (ne.type === 20) + return { auto: !0, order: 0 }; + if (l0(ne)) + return { auto: !1, order: ne.number }; + throw new Error("Invalid z-index number parsed"); + } }, A0 = { name: "time", parse: function(ce, ne) { + if (ne.type === 15) + switch (ne.unit.toLowerCase()) { + case "s": + return 1e3 * ne.number; + case "ms": + return ne.number; + } + throw new Error("Unsupported time type"); + } }, Hk = { name: "opacity", initialValue: "1", type: 0, prefix: !1, parse: function(ce, ne) { + return l0(ne) ? ne.number : 1; + } }, n_ = { name: "text-decoration-color", initialValue: "transparent", prefix: !1, type: 3, format: "color" }, jk = { name: "text-decoration-line", initialValue: "none", prefix: !1, type: 1, parse: function(ce, ne) { + return ne.filter(vc).map(function(Ae) { + switch (Ae.value) { + case "underline": + return 1; + case "overline": + return 2; + case "line-through": + return 3; + case "none": + return 4; + } + return 0; + }).filter(function(Ae) { + return Ae !== 0; + }); + } }, G0 = { name: "font-family", initialValue: "", prefix: !1, type: 1, parse: function(ce, ne) { + var Ae = [], fe = []; + return ne.forEach(function(Re) { + switch (Re.type) { + case 20: + case 0: + Ae.push(Re.value); + break; + case 17: + Ae.push(Re.number.toString()); + break; + case 4: + fe.push(Ae.join(" ")), Ae.length = 0; + } + }), Ae.length && fe.push(Ae.join(" ")), fe.map(function(Re) { + return Re.indexOf(" ") === -1 ? Re : "'" + Re + "'"; + }); + } }, lu = { name: "font-size", initialValue: "0", prefix: !1, type: 3, format: "length" }, Mp = { name: "font-weight", initialValue: "normal", type: 0, prefix: !1, parse: function(ce, ne) { + return l0(ne) ? ne.number : vc(ne) && ne.value === "bold" ? 700 : 400; + } }, R2 = { name: "font-variant", initialValue: "none", type: 1, prefix: !1, parse: function(ce, ne) { + return ne.filter(vc).map(function(Ae) { + return Ae.value; + }); + } }, Q2 = { name: "font-style", initialValue: "normal", prefix: !1, type: 2, parse: function(ce, ne) { + switch (ne) { + case "oblique": + return "oblique"; + case "italic": + return "italic"; + default: + return "normal"; + } + } }, Nl = function(ce, ne) { + return (ce & ne) != 0; + }, md = { name: "content", initialValue: "none", type: 1, prefix: !1, parse: function(ce, ne) { + if (ne.length === 0) + return []; + var Ae = ne[0]; + return Ae.type === 20 && Ae.value === "none" ? [] : ne; + } }, Pc = { name: "counter-increment", initialValue: "none", prefix: !0, type: 1, parse: function(ce, ne) { + if (ne.length === 0) + return null; + var Ae = ne[0]; + if (Ae.type === 20 && Ae.value === "none") + return null; + for (var fe = [], Re = ne.filter(B3), rt = 0; rt < Re.length; rt++) { + var dt = Re[rt], Gt = Re[rt + 1]; + if (dt.type === 20) { + var Nt = Gt && l0(Gt) ? Gt.number : 1; + fe.push({ counter: dt.value, increment: Nt }); + } + } + return fe; + } }, r_ = { name: "counter-reset", initialValue: "none", prefix: !0, type: 1, parse: function(ce, ne) { + if (ne.length === 0) + return []; + for (var Ae = [], fe = ne.filter(B3), Re = 0; Re < fe.length; Re++) { + var rt = fe[Re], dt = fe[Re + 1]; + if (vc(rt) && rt.value !== "none") { + var Gt = dt && l0(dt) ? dt.number : 0; + Ae.push({ counter: rt.value, reset: Gt }); + } + } + return Ae; + } }, I5 = { name: "duration", initialValue: "0s", prefix: !1, type: 1, parse: function(ce, ne) { + return ne.filter(x2).map(function(Ae) { + return A0.parse(ce, Ae); + }); + } }, wa = { name: "quotes", initialValue: "none", prefix: !0, type: 1, parse: function(ce, ne) { + if (ne.length === 0) + return null; + var Ae = ne[0]; + if (Ae.type === 20 && Ae.value === "none") + return null; + var fe = [], Re = ne.filter(Ik); + if (Re.length % 2 != 0) + return null; + for (var rt = 0; rt < Re.length; rt += 2) { + var dt = Re[rt].value, Gt = Re[rt + 1].value; + fe.push({ open: dt, close: Gt }); + } + return fe; + } }, Ao = function(ce, ne, Ae) { + if (!ce) + return ""; + var fe = ce[Math.min(ne, ce.length - 1)]; + return fe ? Ae ? fe.open : fe.close : ""; + }, Kk = { name: "box-shadow", initialValue: "none", type: 1, prefix: !1, parse: function(ce, ne) { + return ne.length === 1 && x5(ne[0], "none") ? [] : K0(ne).map(function(Ae) { + for (var fe = { color: 255, offsetX: xf, offsetY: xf, blur: xf, spread: xf, inset: !1 }, Re = 0, rt = 0; rt < Ae.length; rt++) { + var dt = Ae[rt]; + x5(dt, "inset") ? fe.inset = !0 : dm(dt) ? (Re === 0 ? fe.offsetX = dt : Re === 1 ? fe.offsetY = dt : Re === 2 ? fe.blur = dt : fe.spread = dt, Re++) : fe.color = aA.parse(ce, dt); + } + return fe; + }); + } }, Fp = { name: "paint-order", initialValue: "normal", prefix: !1, type: 1, parse: function(ce, ne) { + var Ae = [0, 1, 2], fe = []; + return ne.filter(vc).forEach(function(Re) { + switch (Re.value) { + case "stroke": + fe.push(1); + break; + case "fill": + fe.push(0); + break; + case "markers": + fe.push(2); + } + }), Ae.forEach(function(Re) { + fe.indexOf(Re) === -1 && fe.push(Re); + }), fe; + } }, U3 = { name: "-webkit-text-stroke-color", initialValue: "currentcolor", prefix: !1, type: 3, format: "color" }, kC = { name: "-webkit-text-stroke-width", initialValue: "0", type: 0, prefix: !1, parse: function(ce, ne) { + return x2(ne) ? ne.number : 0; + } }, i_ = function() { + function ce(ne, Ae) { + var fe, Re; + this.animationDuration = Io(ne, I5, Ae.animationDuration), this.backgroundClip = Io(ne, qy, Ae.backgroundClip), this.backgroundColor = Io(ne, Yy, Ae.backgroundColor), this.backgroundImage = Io(ne, F3, Ae.backgroundImage), this.backgroundOrigin = Io(ne, Dk, Ae.backgroundOrigin), this.backgroundPosition = Io(ne, I2, Ae.backgroundPosition), this.backgroundRepeat = Io(ne, O3, Ae.backgroundRepeat), this.backgroundSize = Io(ne, Fv, Ae.backgroundSize), this.borderTopColor = Io(ne, Nk, Ae.borderTopColor), this.borderRightColor = Io(ne, ew, Ae.borderRightColor), this.borderBottomColor = Io(ne, pm, Ae.borderBottomColor), this.borderLeftColor = Io(ne, M2, Ae.borderLeftColor), this.borderTopLeftRadius = Io(ne, nw, Ae.borderTopLeftRadius), this.borderTopRightRadius = Io(ne, F2, Ae.borderTopRightRadius), this.borderBottomRightRadius = Io(ne, _5, Ae.borderBottomRightRadius), this.borderBottomLeftRadius = Io(ne, gC, Ae.borderBottomLeftRadius), this.borderTopStyle = Io(ne, E5, Ae.borderTopStyle), this.borderRightStyle = Io(ne, rw, Ae.borderRightStyle), this.borderBottomStyle = Io(ne, D3, Ae.borderBottomStyle), this.borderLeftStyle = Io(ne, pC, Ae.borderLeftStyle), this.borderTopWidth = Io(ne, Pk, Ae.borderTopWidth), this.borderRightWidth = Io(ne, Dv, Ae.borderRightWidth), this.borderBottomWidth = Io(ne, mC, Ae.borderBottomWidth), this.borderLeftWidth = Io(ne, Nv, Ae.borderLeftWidth), this.boxShadow = Io(ne, Kk, Ae.boxShadow), this.color = Io(ne, N3, Ae.color), this.direction = Io(ne, d0, Ae.direction), this.display = Io(ne, Pv, Ae.display), this.float = Io(ne, bC, Ae.cssFloat), this.fontFamily = Io(ne, G0, Ae.fontFamily), this.fontSize = Io(ne, lu, Ae.fontSize), this.fontStyle = Io(ne, Q2, Ae.fontStyle), this.fontVariant = Io(ne, R2, Ae.fontVariant), this.fontWeight = Io(ne, Mp, Ae.fontWeight), this.letterSpacing = Io(ne, bm, Ae.letterSpacing), this.lineBreak = Io(ne, e_, Ae.lineBreak), this.lineHeight = Io(ne, mb, Ae.lineHeight), this.listStyleImage = Io(ne, vC, Ae.listStyleImage), this.listStylePosition = Io(ne, yC, Ae.listStylePosition), this.listStyleType = Io(ne, P3, Ae.listStyleType), this.marginTop = Io(ne, iw, Ae.marginTop), this.marginRight = Io(ne, T5, Ae.marginRight), this.marginBottom = Io(ne, IA, Ae.marginBottom), this.marginLeft = Io(ne, q1, Ae.marginLeft), this.opacity = Io(ne, Hk, Ae.opacity); + var rt = Io(ne, Pd, Ae.overflow); + this.overflowX = rt[0], this.overflowY = rt[rt.length > 1 ? 1 : 0], this.overflowWrap = Io(ne, e1, Ae.overflowWrap), this.paddingTop = Io(ne, wC, Ae.paddingTop), this.paddingRight = Io(ne, N2, Ae.paddingRight), this.paddingBottom = Io(ne, B5, Ae.paddingBottom), this.paddingLeft = Io(ne, Rk, Ae.paddingLeft), this.paintOrder = Io(ne, Fp, Ae.paintOrder), this.position = Io(ne, Q3, Ae.position), this.textAlign = Io(ne, Og, Ae.textAlign), this.textDecorationColor = Io(ne, n_, (fe = Ae.textDecorationColor) !== null && fe !== void 0 ? fe : Ae.color), this.textDecorationLine = Io(ne, jk, (Re = Ae.textDecorationLine) !== null && Re !== void 0 ? Re : Ae.textDecoration), this.textShadow = Io(ne, Qk, Ae.textShadow), this.textTransform = Io(ne, aw, Ae.textTransform), this.transform = Io(ne, $k, Ae.transform), this.transformOrigin = Io(ne, L5, Ae.transformOrigin), this.visibility = Io(ne, vb, Ae.visibility), this.webkitTextStrokeColor = Io(ne, U3, Ae.webkitTextStrokeColor), this.webkitTextStrokeWidth = Io(ne, kC, Ae.webkitTextStrokeWidth), this.wordBreak = Io(ne, t_, Ae.wordBreak), this.zIndex = Io(ne, yb, Ae.zIndex); + } + return ce.prototype.isVisible = function() { + return this.display > 0 && this.opacity > 0 && this.visibility === 0; + }, ce.prototype.isTransparent = function() { + return Od(this.backgroundColor); + }, ce.prototype.isTransformed = function() { + return this.transform !== null; + }, ce.prototype.isPositioned = function() { + return this.position !== 0; + }, ce.prototype.isPositionedWithZIndex = function() { + return this.isPositioned() && !this.zIndex.auto; + }, ce.prototype.isFloating = function() { + return this.float !== 0; + }, ce.prototype.isInlineLevel = function() { + return Nl(this.display, 4) || Nl(this.display, 33554432) || Nl(this.display, 268435456) || Nl(this.display, 536870912) || Nl(this.display, 67108864) || Nl(this.display, 134217728); + }, ce; + }(), M5 = /* @__PURE__ */ function() { + function ce(ne, Ae) { + this.content = Io(ne, md, Ae.content), this.quotes = Io(ne, wa, Ae.quotes); + } + return ce; + }(), H3 = /* @__PURE__ */ function() { + function ce(ne, Ae) { + this.counterIncrement = Io(ne, Pc, Ae.counterIncrement), this.counterReset = Io(ne, r_, Ae.counterReset); + } + return ce; + }(), Io = function(ce, ne, Ae) { + var fe = new Dl(), Re = Ae != null ? Ae.toString() : ne.initialValue; + fe.write(Re); + var rt = new k2(fe.read()); + switch (ne.type) { + case 2: + var dt = rt.parseComponentValue(); + return ne.parse(ce, vc(dt) ? dt.value : ne.initialValue); + case 0: + return ne.parse(ce, rt.parseComponentValue()); + case 1: + return ne.parse(ce, rt.parseComponentValues()); + case 4: + return rt.parseComponentValue(); + case 3: + switch (ne.format) { + case "angle": + return gd.parse(ce, rt.parseComponentValue()); + case "color": + return aA.parse(ce, rt.parseComponentValue()); + case "image": + return pd.parse(ce, rt.parseComponentValue()); + case "length": + var Gt = rt.parseComponentValue(); + return dm(Gt) ? Gt : xf; + case "length-percentage": + var Nt = rt.parseComponentValue(); + return Xh(Nt) ? Nt : xf; + case "time": + return A0.parse(ce, rt.parseComponentValue()); + } + } + }, ow = "data-html2canvas-debug", sw = function(ce) { + switch (ce.getAttribute(ow)) { + case "all": + return 1; + case "clone": + return 2; + case "parse": + return 3; + case "render": + return 4; + default: + return 0; + } + }, F5 = function(ce, ne) { + var Ae = sw(ce); + return Ae === 1 || ne === Ae; + }, vm = /* @__PURE__ */ function() { + function ce(ne, Ae) { + this.context = ne, this.textNodes = [], this.elements = [], this.flags = 0, F5(Ae, 3), this.styles = new i_(ne, window.getComputedStyle(Ae, null)), K5(Ae) && (this.styles.animationDuration.some(function(fe) { + return fe > 0; + }) && (Ae.style.animationDuration = "0s"), this.styles.transform !== null && (Ae.style.transform = "none")), this.bounds = k(this.context, Ae), F5(Ae, 4) && (this.flags |= 16); + } + return ce; + }(), O5 = "AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=", j3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", cw = typeof Uint8Array > "u" ? [] : new Uint8Array(256), $2 = 0; $2 < j3.length; $2++) + cw[j3.charCodeAt($2)] = $2; + for (var Op = function(ce) { + var ne, Ae, fe, Re, rt, dt = 0.75 * ce.length, Gt = ce.length, Nt = 0; + ce[ce.length - 1] === "=" && (dt--, ce[ce.length - 2] === "=" && dt--); + var Ln = typeof ArrayBuffer < "u" && typeof Uint8Array < "u" && Uint8Array.prototype.slice !== void 0 ? new ArrayBuffer(dt) : new Array(dt), On = Array.isArray(Ln) ? Ln : new Uint8Array(Ln); + for (ne = 0; ne < Gt; ne += 4) + Ae = cw[ce.charCodeAt(ne)], fe = cw[ce.charCodeAt(ne + 1)], Re = cw[ce.charCodeAt(ne + 2)], rt = cw[ce.charCodeAt(ne + 3)], On[Nt++] = Ae << 2 | fe >> 4, On[Nt++] = (15 & fe) << 4 | Re >> 2, On[Nt++] = (3 & Re) << 6 | 63 & rt; + return Ln; + }, X0 = function(ce) { + for (var ne = ce.length, Ae = [], fe = 0; fe < ne; fe += 2) + Ae.push(ce[fe + 1] << 8 | ce[fe]); + return Ae; + }, D5 = function(ce) { + for (var ne = ce.length, Ae = [], fe = 0; fe < ne; fe += 4) + Ae.push(ce[fe + 3] << 24 | ce[fe + 2] << 16 | ce[fe + 1] << 8 | ce[fe]); + return Ae; + }, ym = 5, K3 = 11, wb = 2, zk = 65536 >> ym, Gk = (1 << ym) - 1, xC = zk + (1024 >> ym) + 32, bd = 65536 >> K3, wm = (1 << K3 - ym) - 1, km = function(ce, ne, Ae) { + return ce.slice ? ce.slice(ne, Ae) : new Uint16Array(Array.prototype.slice.call(ce, ne, Ae)); + }, N5 = function(ce, ne, Ae) { + return ce.slice ? ce.slice(ne, Ae) : new Uint32Array(Array.prototype.slice.call(ce, ne, Ae)); + }, P5 = function(ce, ne) { + var Ae = Op(ce), fe = Array.isArray(Ae) ? D5(Ae) : new Uint32Array(Ae), Re = Array.isArray(Ae) ? X0(Ae) : new Uint16Array(Ae), rt = 24, dt = km(Re, rt / 2, fe[4] / 2), Gt = fe[5] === 2 ? km(Re, (rt + fe[4]) / 2) : N5(fe, Math.ceil((rt + fe[4]) / 4)); + return new Rv(fe[0], fe[1], fe[2], fe[3], dt, Gt); + }, Rv = function() { + function ce(ne, Ae, fe, Re, rt, dt) { + this.initialValue = ne, this.errorValue = Ae, this.highStart = fe, this.highValueIndex = Re, this.index = rt, this.data = dt; + } + return ce.prototype.get = function(ne) { + var Ae; + if (ne >= 0) { + if (ne < 55296 || ne > 56319 && ne <= 65535) + return Ae = ((Ae = this.index[ne >> ym]) << wb) + (ne & Gk), this.data[Ae]; + if (ne <= 65535) + return Ae = ((Ae = this.index[zk + (ne - 55296 >> ym)]) << wb) + (ne & Gk), this.data[Ae]; + if (ne < this.highStart) + return Ae = xC - bd + (ne >> K3), Ae = this.index[Ae], Ae += ne >> ym & wm, Ae = ((Ae = this.index[Ae]) << wb) + (ne & Gk), this.data[Ae]; + if (ne <= 1114111) + return this.data[this.highValueIndex]; + } + return this.errorValue; + }, ce; + }(), z3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Qv = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ng = 0; Ng < z3.length; Ng++) + Qv[z3.charCodeAt(Ng)] = Ng; + var lw, uw = 1, R5 = 2, $v = 3, Xk = 4, kb = 5, a_ = 7, Uv = 8, xm = 9, U2 = 10, Hv = 11, hw = 12, fw = 13, dw = 14, jv = 15, CC = function(ce) { + for (var ne = [], Ae = 0, fe = ce.length; Ae < fe; ) { + var Re = ce.charCodeAt(Ae++); + if (Re >= 55296 && Re <= 56319 && Ae < fe) { + var rt = ce.charCodeAt(Ae++); + (64512 & rt) == 56320 ? ne.push(((1023 & Re) << 10) + (1023 & rt) + 65536) : (ne.push(Re), Ae--); + } else + ne.push(Re); + } + return ne; + }, Aw = function() { + for (var ce = [], ne = 0; ne < arguments.length; ne++) + ce[ne] = arguments[ne]; + if (String.fromCodePoint) + return String.fromCodePoint.apply(String, ce); + var Ae = ce.length; + if (!Ae) + return ""; + for (var fe = [], Re = -1, rt = ""; ++Re < Ae; ) { + var dt = ce[Re]; + dt <= 65535 ? fe.push(dt) : (dt -= 65536, fe.push(55296 + (dt >> 10), dt % 1024 + 56320)), (Re + 1 === Ae || fe.length > 16384) && (rt += String.fromCharCode.apply(String, fe), fe.length = 0); + } + return rt; + }, _C = P5(O5), Cf = "×", xb = "÷", G3 = function(ce) { + return _C.get(ce); + }, o_ = function(ce, ne, Ae) { + var fe = Ae - 2, Re = ne[fe], rt = ne[Ae - 1], dt = ne[Ae]; + if (rt === R5 && dt === $v) + return Cf; + if (rt === R5 || rt === $v || rt === Xk || dt === R5 || dt === $v || dt === Xk) + return xb; + if (rt === Uv && [Uv, xm, Hv, hw].indexOf(dt) !== -1 || !(rt !== Hv && rt !== xm || dt !== xm && dt !== U2) || (rt === hw || rt === U2) && dt === U2 || dt === fw || dt === kb || dt === a_ || rt === uw) + return Cf; + if (rt === fw && dt === dw) { + for (; Re === kb; ) + Re = ne[--fe]; + if (Re === dw) + return Cf; + } + if (rt === jv && dt === jv) { + for (var Gt = 0; Re === jv; ) + Gt++, Re = ne[--fe]; + if (Gt % 2 == 0) + return Cf; + } + return xb; + }, X3 = function(ce) { + var ne = CC(ce), Ae = ne.length, fe = 0, Re = 0, rt = ne.map(G3); + return { next: function() { + if (fe >= Ae) + return { done: !0, value: null }; + for (var dt = Cf; fe < Ae && (dt = o_(ne, rt, ++fe)) === Cf; ) + ; + if (dt !== Cf || fe === Ae) { + var Gt = Aw.apply(null, ne.slice(Re, fe)); + return Re = fe, { value: Gt, done: !1 }; + } + return { done: !0, value: null }; + } }; + }, s_ = function(ce) { + for (var ne, Ae = X3(ce), fe = []; !(ne = Ae.next()).done; ) + ne.value && fe.push(ne.value.slice()); + return fe; + }, c_ = function(ce) { + var ne = 123; + if (ce.createRange) { + var Ae = ce.createRange(); + if (Ae.getBoundingClientRect) { + var fe = ce.createElement("boundtest"); + fe.style.height = ne + "px", fe.style.display = "block", ce.body.appendChild(fe), Ae.selectNode(fe); + var Re = Ae.getBoundingClientRect(), rt = Math.round(Re.height); + if (ce.body.removeChild(fe), rt === ne) + return !0; + } + } + return !1; + }, Q5 = function(ce) { + var ne = ce.createElement("boundtest"); + ne.style.width = "50px", ne.style.display = "block", ne.style.fontSize = "12px", ne.style.letterSpacing = "0px", ne.style.wordSpacing = "0px", ce.body.appendChild(ne); + var Ae = ce.createRange(); + ne.innerHTML = typeof "".repeat == "function" ? "👨".repeat(10) : ""; + var fe = ne.firstChild, Re = T(fe.data).map(function(Nt) { + return L(Nt); + }), rt = 0, dt = {}, Gt = Re.every(function(Nt, Ln) { + Ae.setStart(fe, rt), Ae.setEnd(fe, rt + Nt.length); + var On = Ae.getBoundingClientRect(); + rt += Nt.length; + var Or = On.x > dt.x || On.y > dt.y; + return dt = On, Ln === 0 || Or; + }); + return ce.body.removeChild(ne), Gt; + }, MA = function() { + return new Image().crossOrigin !== void 0; + }, Kv = function() { + return typeof new XMLHttpRequest().responseType == "string"; + }, l_ = function(ce) { + var ne = new Image(), Ae = ce.createElement("canvas"), fe = Ae.getContext("2d"); + if (!fe) + return !1; + ne.src = "data:image/svg+xml,"; + try { + fe.drawImage(ne, 0, 0), Ae.toDataURL(); + } catch { + return !1; + } + return !0; + }, EC = function(ce) { + return ce[0] === 0 && ce[1] === 255 && ce[2] === 0 && ce[3] === 255; + }, gw = function(ce) { + var ne = ce.createElement("canvas"), Ae = 100; + ne.width = Ae, ne.height = Ae; + var fe = ne.getContext("2d"); + if (!fe) + return Promise.reject(!1); + fe.fillStyle = "rgb(0, 255, 0)", fe.fillRect(0, 0, Ae, Ae); + var Re = new Image(), rt = ne.toDataURL(); + Re.src = rt; + var dt = W3(Ae, Ae, 0, 0, Re); + return fe.fillStyle = "red", fe.fillRect(0, 0, Ae, Ae), pw(dt).then(function(Gt) { + fe.drawImage(Gt, 0, 0); + var Nt = fe.getImageData(0, 0, Ae, Ae).data; + fe.fillStyle = "red", fe.fillRect(0, 0, Ae, Ae); + var Ln = ce.createElement("div"); + return Ln.style.backgroundImage = "url(" + rt + ")", Ln.style.height = Ae + "px", EC(Nt) ? pw(W3(Ae, Ae, 0, 0, Ln)) : Promise.reject(!1); + }).then(function(Gt) { + return fe.drawImage(Gt, 0, 0), EC(fe.getImageData(0, 0, Ae, Ae).data); + }).catch(function() { + return !1; + }); + }, W3 = function(ce, ne, Ae, fe, Re) { + var rt = "http://www.w3.org/2000/svg", dt = document.createElementNS(rt, "svg"), Gt = document.createElementNS(rt, "foreignObject"); + return dt.setAttributeNS(null, "width", ce.toString()), dt.setAttributeNS(null, "height", ne.toString()), Gt.setAttributeNS(null, "width", "100%"), Gt.setAttributeNS(null, "height", "100%"), Gt.setAttributeNS(null, "x", Ae.toString()), Gt.setAttributeNS(null, "y", fe.toString()), Gt.setAttributeNS(null, "externalResourcesRequired", "true"), dt.appendChild(Gt), Gt.appendChild(Re), dt; + }, pw = function(ce) { + return new Promise(function(ne, Ae) { + var fe = new Image(); + fe.onload = function() { + return ne(fe); + }, fe.onerror = Ae, fe.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(ce)); + }); + }, S1 = { get SUPPORT_RANGE_BOUNDS() { + var ce = c_(document); + return Object.defineProperty(S1, "SUPPORT_RANGE_BOUNDS", { value: ce }), ce; + }, get SUPPORT_WORD_BREAKING() { + var ce = S1.SUPPORT_RANGE_BOUNDS && Q5(document); + return Object.defineProperty(S1, "SUPPORT_WORD_BREAKING", { value: ce }), ce; + }, get SUPPORT_SVG_DRAWING() { + var ce = l_(document); + return Object.defineProperty(S1, "SUPPORT_SVG_DRAWING", { value: ce }), ce; + }, get SUPPORT_FOREIGNOBJECT_DRAWING() { + var ce = typeof Array.from == "function" && typeof window.fetch == "function" ? gw(document) : Promise.resolve(!1); + return Object.defineProperty(S1, "SUPPORT_FOREIGNOBJECT_DRAWING", { value: ce }), ce; + }, get SUPPORT_CORS_IMAGES() { + var ce = MA(); + return Object.defineProperty(S1, "SUPPORT_CORS_IMAGES", { value: ce }), ce; + }, get SUPPORT_RESPONSE_TYPE() { + var ce = Kv(); + return Object.defineProperty(S1, "SUPPORT_RESPONSE_TYPE", { value: ce }), ce; + }, get SUPPORT_CORS_XHR() { + var ce = "withCredentials" in new XMLHttpRequest(); + return Object.defineProperty(S1, "SUPPORT_CORS_XHR", { value: ce }), ce; + }, get SUPPORT_NATIVE_TEXT_SEGMENTATION() { + var ce = !(typeof Intl > "u" || !Intl.Segmenter); + return Object.defineProperty(S1, "SUPPORT_NATIVE_TEXT_SEGMENTATION", { value: ce }), ce; + } }, Pg = /* @__PURE__ */ function() { + function ce(ne, Ae) { + this.text = ne, this.bounds = Ae; + } + return ce; + }(), TC = function(ce, ne, Ae, fe) { + var Re = mw(ne, Ae), rt = [], dt = 0; + return Re.forEach(function(Gt) { + if (Ae.textDecorationLine.length || Gt.trim().length > 0) + if (S1.SUPPORT_RANGE_BOUNDS) { + var Nt = Rg(fe, dt, Gt.length).getClientRects(); + if (Nt.length > 1) { + var Ln = Cb(Gt), On = 0; + Ln.forEach(function(Rr) { + rt.push(new Pg(Rr, v.fromDOMRectList(ce, Rg(fe, On + dt, Rr.length).getClientRects()))), On += Rr.length; + }); + } else + rt.push(new Pg(Gt, v.fromDOMRectList(ce, Nt))); + } else { + var Or = fe.splitText(Gt.length); + rt.push(new Pg(Gt, BC(ce, fe))), fe = Or; + } + else + S1.SUPPORT_RANGE_BOUNDS || (fe = fe.splitText(Gt.length)); + dt += Gt.length; + }), rt; + }, BC = function(ce, ne) { + var Ae = ne.ownerDocument; + if (Ae) { + var fe = Ae.createElement("html2canvaswrapper"); + fe.appendChild(ne.cloneNode(!0)); + var Re = ne.parentNode; + if (Re) { + Re.replaceChild(fe, ne); + var rt = k(ce, fe); + return fe.firstChild && Re.replaceChild(fe.firstChild, fe), rt; + } + } + return v.EMPTY; + }, Rg = function(ce, ne, Ae) { + var fe = ce.ownerDocument; + if (!fe) + throw new Error("Node has no owner document"); + var Re = fe.createRange(); + return Re.setStart(ce, ne), Re.setEnd(ce, ne + Ae), Re; + }, Cb = function(ce) { + if (S1.SUPPORT_NATIVE_TEXT_SEGMENTATION) { + var ne = new Intl.Segmenter(void 0, { granularity: "grapheme" }); + return Array.from(ne.segment(ce)).map(function(Ae) { + return Ae.segment; + }); + } + return s_(ce); + }, V3 = function(ce, ne) { + if (S1.SUPPORT_NATIVE_TEXT_SEGMENTATION) { + var Ae = new Intl.Segmenter(void 0, { granularity: "word" }); + return Array.from(Ae.segment(ce)).map(function(fe) { + return fe.segment; + }); + } + return u_(ce, ne); + }, mw = function(ce, ne) { + return ne.letterSpacing !== 0 ? Cb(ce) : V3(ce, ne); + }, Cm = [32, 160, 4961, 65792, 65793, 4153, 4241], u_ = function(ce, ne) { + for (var Ae, fe = yf(ce, { lineBreak: ne.lineBreak, wordBreak: ne.overflowWrap === "break-word" ? "break-word" : ne.wordBreak }), Re = [], rt = function() { + if (Ae.value) { + var dt = Ae.value.slice(), Gt = T(dt), Nt = ""; + Gt.forEach(function(Ln) { + Cm.indexOf(Ln) === -1 ? Nt += L(Ln) : (Nt.length && Re.push(Nt), Re.push(L(Ln)), Nt = ""); + }), Nt.length && Re.push(Nt); + } + }; !(Ae = fe.next()).done; ) + rt(); + return Re; + }, SC = /* @__PURE__ */ function() { + function ce(ne, Ae, fe) { + this.text = H2(Ae.data, fe.textTransform), this.textBounds = TC(ne, this.text, fe, Ae); + } + return ce; + }(), H2 = function(ce, ne) { + switch (ne) { + case 1: + return ce.toLowerCase(); + case 3: + return ce.replace(Wk, $5); + case 2: + return ce.toUpperCase(); + default: + return ce; + } + }, Wk = /(^|\s|:|-|\(|\))([a-z])/g, $5 = function(ce, ne, Ae) { + return ce.length > 0 ? ne + Ae.toUpperCase() : ce; + }, q3 = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re.src = fe.currentSrc || fe.src, Re.intrinsicWidth = fe.naturalWidth, Re.intrinsicHeight = fe.naturalHeight, Re.context.cache.addImage(Re.src), Re; + } + return l(ne, ce), ne; + }(vm), Qg = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re.canvas = fe, Re.intrinsicWidth = fe.width, Re.intrinsicHeight = fe.height, Re; + } + return l(ne, ce), ne; + }(vm), _b = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this, rt = new XMLSerializer(), dt = k(Ae, fe); + return fe.setAttribute("width", dt.width + "px"), fe.setAttribute("height", dt.height + "px"), Re.svg = "data:image/svg+xml," + encodeURIComponent(rt.serializeToString(fe)), Re.intrinsicWidth = fe.width.baseVal.value, Re.intrinsicHeight = fe.height.baseVal.value, Re.context.cache.addImage(Re.svg), Re; + } + return l(ne, ce), ne; + }(vm), bw = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re.value = fe.value, Re; + } + return l(ne, ce), ne; + }(vm), vw = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re.start = fe.start, Re.reversed = typeof fe.reversed == "boolean" && fe.reversed === !0, Re; + } + return l(ne, ce), ne; + }(vm), Vk = [{ type: 15, flags: 0, unit: "px", number: 3 }], h_ = [{ type: 16, flags: 0, number: 50 }], j2 = function(ce) { + return ce.width > ce.height ? new v(ce.left + (ce.width - ce.height) / 2, ce.top, ce.height, ce.height) : ce.width < ce.height ? new v(ce.left, ce.top + (ce.height - ce.width) / 2, ce.width, ce.width) : ce; + }, Eb = function(ce) { + var ne = ce.type === U5 ? new Array(ce.value.length + 1).join("•") : ce.value; + return ne.length === 0 ? ce.placeholder || "" : ne; + }, K2 = "checkbox", _m = "radio", U5 = "password", H5 = 707406591, Y3 = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + switch (Re.type = fe.type.toLowerCase(), Re.checked = fe.checked, Re.value = Eb(fe), Re.type !== K2 && Re.type !== _m || (Re.styles.backgroundColor = 3739148031, Re.styles.borderTopColor = Re.styles.borderRightColor = Re.styles.borderBottomColor = Re.styles.borderLeftColor = 2779096575, Re.styles.borderTopWidth = Re.styles.borderRightWidth = Re.styles.borderBottomWidth = Re.styles.borderLeftWidth = 1, Re.styles.borderTopStyle = Re.styles.borderRightStyle = Re.styles.borderBottomStyle = Re.styles.borderLeftStyle = 1, Re.styles.backgroundClip = [0], Re.styles.backgroundOrigin = [0], Re.bounds = j2(Re.bounds)), Re.type) { + case K2: + Re.styles.borderTopRightRadius = Re.styles.borderTopLeftRadius = Re.styles.borderBottomRightRadius = Re.styles.borderBottomLeftRadius = Vk; + break; + case _m: + Re.styles.borderTopRightRadius = Re.styles.borderTopLeftRadius = Re.styles.borderBottomRightRadius = Re.styles.borderBottomLeftRadius = h_; + } + return Re; + } + return l(ne, ce), ne; + }(vm), yw = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this, rt = fe.options[fe.selectedIndex || 0]; + return Re.value = rt && rt.text || "", Re; + } + return l(ne, ce), ne; + }(vm), qk = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re.value = fe.value, Re; + } + return l(ne, ce), ne; + }(vm), J3 = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + Re.src = fe.src, Re.width = parseInt(fe.width, 10) || 0, Re.height = parseInt(fe.height, 10) || 0, Re.backgroundColor = Re.styles.backgroundColor; + try { + if (fe.contentWindow && fe.contentWindow.document && fe.contentWindow.document.documentElement) { + Re.tree = Vh(Ae, fe.contentWindow.document.documentElement); + var rt = fe.contentWindow.document.documentElement ? B1(Ae, getComputedStyle(fe.contentWindow.document.documentElement).backgroundColor) : BA.TRANSPARENT, dt = fe.contentWindow.document.body ? B1(Ae, getComputedStyle(fe.contentWindow.document.body).backgroundColor) : BA.TRANSPARENT; + Re.backgroundColor = Od(rt) ? Od(dt) ? Re.styles.backgroundColor : dt : rt; + } + } catch { + } + return Re; + } + return l(ne, ce), ne; + }(vm), f_ = ["OL", "UL", "MENU"], zv = function(ce, ne, Ae, fe) { + for (var Re = ne.firstChild, rt = void 0; Re; Re = rt) + if (rt = Re.nextSibling, Dp(Re) && Re.data.trim().length > 0) + Ae.textNodes.push(new SC(ce, Re, Ae.styles)); + else if (Np(Re)) + if (Em(Re) && Re.assignedNodes) + Re.assignedNodes().forEach(function(Gt) { + return zv(ce, Gt, Ae, fe); + }); + else { + var dt = LC(ce, Re); + dt.styles.isVisible() && (IC(Re, dt, fe) ? dt.flags |= 4 : j5(dt.styles) && (dt.flags |= 2), f_.indexOf(Re.tagName) !== -1 && (dt.flags |= 8), Ae.elements.push(dt), Re.slot, Re.shadowRoot ? zv(ce, Re.shadowRoot, dt, fe) : uu(Re) || FC(Re) || Z3(Re) || zv(ce, Re, dt, fe)); + } + }, LC = function(ce, ne) { + return ex(ne) ? new q3(ce, ne) : Jk(ne) ? new Qg(ce, ne) : FC(ne) ? new _b(ce, ne) : $g(ne) ? new bw(ce, ne) : Yk(ne) ? new vw(ce, ne) : Ug(ne) ? new Y3(ce, ne) : Z3(ne) ? new yw(ce, ne) : uu(ne) ? new qk(ce, ne) : tx(ne) ? new J3(ce, ne) : new vm(ce, ne); + }, Vh = function(ce, ne) { + var Ae = LC(ce, ne); + return Ae.flags |= 4, zv(ce, ne, Ae, Ae), Ae; + }, IC = function(ce, ne, Ae) { + return ne.styles.isPositionedWithZIndex() || ne.styles.opacity < 1 || ne.styles.isTransformed() || z5(ce) && Ae.styles.isTransparent(); + }, j5 = function(ce) { + return ce.isPositioned() || ce.isFloating(); + }, Dp = function(ce) { + return ce.nodeType === Node.TEXT_NODE; + }, Np = function(ce) { + return ce.nodeType === Node.ELEMENT_NODE; + }, K5 = function(ce) { + return Np(ce) && ce.style !== void 0 && !z2(ce); + }, z2 = function(ce) { + return typeof ce.className == "object"; + }, $g = function(ce) { + return ce.tagName === "LI"; + }, Yk = function(ce) { + return ce.tagName === "OL"; + }, Ug = function(ce) { + return ce.tagName === "INPUT"; + }, MC = function(ce) { + return ce.tagName === "HTML"; + }, FC = function(ce) { + return ce.tagName === "svg"; + }, z5 = function(ce) { + return ce.tagName === "BODY"; + }, Jk = function(ce) { + return ce.tagName === "CANVAS"; + }, Zk = function(ce) { + return ce.tagName === "VIDEO"; + }, ex = function(ce) { + return ce.tagName === "IMG"; + }, tx = function(ce) { + return ce.tagName === "IFRAME"; + }, G5 = function(ce) { + return ce.tagName === "STYLE"; + }, ww = function(ce) { + return ce.tagName === "SCRIPT"; + }, uu = function(ce) { + return ce.tagName === "TEXTAREA"; + }, Z3 = function(ce) { + return ce.tagName === "SELECT"; + }, Em = function(ce) { + return ce.tagName === "SLOT"; + }, Pl = function(ce) { + return ce.tagName.indexOf("-") > 0; + }, Ou = function() { + function ce() { + this.counters = {}; + } + return ce.prototype.getCounterValue = function(ne) { + var Ae = this.counters[ne]; + return Ae && Ae.length ? Ae[Ae.length - 1] : 1; + }, ce.prototype.getCounterValues = function(ne) { + var Ae = this.counters[ne]; + return Ae || []; + }, ce.prototype.pop = function(ne) { + var Ae = this; + ne.forEach(function(fe) { + return Ae.counters[fe].pop(); + }); + }, ce.prototype.parse = function(ne) { + var Ae = this, fe = ne.counterIncrement, Re = ne.counterReset, rt = !0; + fe !== null && fe.forEach(function(Gt) { + var Nt = Ae.counters[Gt.counter]; + Nt && Gt.increment !== 0 && (rt = !1, Nt.length || Nt.push(1), Nt[Math.max(0, Nt.length - 1)] += Gt.increment); + }); + var dt = []; + return rt && Re.forEach(function(Gt) { + var Nt = Ae.counters[Gt.counter]; + dt.push(Gt.counter), Nt || (Nt = Ae.counters[Gt.counter] = []), Nt.push(Gt.reset); + }), dt; + }, ce; + }(), Po = { integers: [1e3, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1], values: ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"] }, X5 = { integers: [9e3, 8e3, 7e3, 6e3, 5e3, 4e3, 3e3, 2e3, 1e3, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1], values: ["Ք", "Փ", "Ւ", "Ց", "Ր", "Տ", "Վ", "Ս", "Ռ", "Ջ", "Պ", "Չ", "Ո", "Շ", "Ն", "Յ", "Մ", "Ճ", "Ղ", "Ձ", "Հ", "Կ", "Ծ", "Խ", "Լ", "Ի", "Ժ", "Թ", "Ը", "Է", "Զ", "Ե", "Դ", "Գ", "Բ", "Ա"] }, d_ = { integers: [1e4, 9e3, 8e3, 7e3, 6e3, 5e3, 4e3, 3e3, 2e3, 1e3, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 19, 18, 17, 16, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1], values: ["י׳", "ט׳", "ח׳", "ז׳", "ו׳", "ה׳", "ד׳", "ג׳", "ב׳", "א׳", "ת", "ש", "ר", "ק", "צ", "פ", "ע", "ס", "נ", "מ", "ל", "כ", "יט", "יח", "יז", "טז", "טו", "י", "ט", "ח", "ז", "ו", "ה", "ד", "ג", "ב", "א"] }, hf = { integers: [1e4, 9e3, 8e3, 7e3, 6e3, 5e3, 4e3, 3e3, 2e3, 1e3, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1], values: ["ჵ", "ჰ", "ჯ", "ჴ", "ხ", "ჭ", "წ", "ძ", "ც", "ჩ", "შ", "ყ", "ღ", "ქ", "ფ", "ჳ", "ტ", "ს", "რ", "ჟ", "პ", "ო", "ჲ", "ნ", "მ", "ლ", "კ", "ი", "თ", "ჱ", "ზ", "ვ", "ე", "დ", "გ", "ბ", "ა"] }, kw = function(ce, ne, Ae, fe, Re, rt) { + return ce < ne || ce > Ae ? d1(ce, Re, rt.length > 0) : fe.integers.reduce(function(dt, Gt, Nt) { + for (; ce >= Gt; ) + ce -= Gt, dt += fe.values[Nt]; + return dt; + }, "") + rt; + }, Tb = function(ce, ne, Ae, fe) { + var Re = ""; + do + Ae || ce--, Re = fe(ce) + Re, ce /= ne; + while (ce * ne >= ne); + return Re; + }, xu = function(ce, ne, Ae, fe, Re) { + var rt = Ae - ne + 1; + return (ce < 0 ? "-" : "") + (Tb(Math.abs(ce), rt, fe, function(dt) { + return L(Math.floor(dt % rt) + ne); + }) + Re); + }, Y1 = function(ce, ne, Ae) { + Ae === void 0 && (Ae = ". "); + var fe = ne.length; + return Tb(Math.abs(ce), fe, !1, function(Re) { + return ne[Math.floor(Re % fe)]; + }) + Ae; + }, In = 1, Tm = 2, Bb = 4, xw = 8, f1 = function(ce, ne, Ae, fe, Re, rt) { + if (ce < -9999 || ce > 9999) + return d1(ce, 4, Re.length > 0); + var dt = Math.abs(ce), Gt = Re; + if (dt === 0) + return ne[0] + Gt; + for (var Nt = 0; dt > 0 && Nt <= 4; Nt++) { + var Ln = dt % 10; + Ln === 0 && Nl(rt, In) && Gt !== "" ? Gt = ne[Ln] + Gt : Ln > 1 || Ln === 1 && Nt === 0 || Ln === 1 && Nt === 1 && Nl(rt, Tm) || Ln === 1 && Nt === 1 && Nl(rt, Bb) && ce > 100 || Ln === 1 && Nt > 1 && Nl(rt, xw) ? Gt = ne[Ln] + (Nt > 0 ? Ae[Nt - 1] : "") + Gt : Ln === 1 && Nt > 0 && (Gt = Ae[Nt - 1] + Gt), dt = Math.floor(dt / 10); + } + return (ce < 0 ? fe : "") + Gt; + }, L1 = "十百千萬", nx = "拾佰仟萬", W5 = "マイナス", G2 = "마이너스", d1 = function(ce, ne, Ae) { + var fe = Ae ? ". " : "", Re = Ae ? "、" : "", rt = Ae ? ", " : "", dt = Ae ? " " : ""; + switch (ne) { + case 0: + return "•" + dt; + case 1: + return "◦" + dt; + case 2: + return "◾" + dt; + case 5: + var Gt = xu(ce, 48, 57, !0, fe); + return Gt.length < 4 ? "0" + Gt : Gt; + case 4: + return Y1(ce, "〇一二三四五六七八九", Re); + case 6: + return kw(ce, 1, 3999, Po, 3, fe).toLowerCase(); + case 7: + return kw(ce, 1, 3999, Po, 3, fe); + case 8: + return xu(ce, 945, 969, !1, fe); + case 9: + return xu(ce, 97, 122, !1, fe); + case 10: + return xu(ce, 65, 90, !1, fe); + case 11: + return xu(ce, 1632, 1641, !0, fe); + case 12: + case 49: + return kw(ce, 1, 9999, X5, 3, fe); + case 35: + return kw(ce, 1, 9999, X5, 3, fe).toLowerCase(); + case 13: + return xu(ce, 2534, 2543, !0, fe); + case 14: + case 30: + return xu(ce, 6112, 6121, !0, fe); + case 15: + return Y1(ce, "子丑寅卯辰巳午未申酉戌亥", Re); + case 16: + return Y1(ce, "甲乙丙丁戊己庚辛壬癸", Re); + case 17: + case 48: + return f1(ce, "零一二三四五六七八九", L1, "負", Re, Tm | Bb | xw); + case 47: + return f1(ce, "零壹貳參肆伍陸柒捌玖", nx, "負", Re, In | Tm | Bb | xw); + case 42: + return f1(ce, "零一二三四五六七八九", L1, "负", Re, Tm | Bb | xw); + case 41: + return f1(ce, "零壹贰叁肆伍陆柒捌玖", nx, "负", Re, In | Tm | Bb | xw); + case 26: + return f1(ce, "〇一二三四五六七八九", "十百千万", W5, Re, 0); + case 25: + return f1(ce, "零壱弐参四伍六七八九", "拾百千万", W5, Re, In | Tm | Bb); + case 31: + return f1(ce, "영일이삼사오육칠팔구", "십백천만", G2, rt, In | Tm | Bb); + case 33: + return f1(ce, "零一二三四五六七八九", "十百千萬", G2, rt, 0); + case 32: + return f1(ce, "零壹貳參四五六七八九", "拾百千", G2, rt, In | Tm | Bb); + case 18: + return xu(ce, 2406, 2415, !0, fe); + case 20: + return kw(ce, 1, 19999, hf, 3, fe); + case 21: + return xu(ce, 2790, 2799, !0, fe); + case 22: + return xu(ce, 2662, 2671, !0, fe); + case 22: + return kw(ce, 1, 10999, d_, 3, fe); + case 23: + return Y1(ce, "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん"); + case 24: + return Y1(ce, "いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす"); + case 27: + return xu(ce, 3302, 3311, !0, fe); + case 28: + return Y1(ce, "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン", Re); + case 29: + return Y1(ce, "イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス", Re); + case 34: + return xu(ce, 3792, 3801, !0, fe); + case 37: + return xu(ce, 6160, 6169, !0, fe); + case 38: + return xu(ce, 4160, 4169, !0, fe); + case 39: + return xu(ce, 2918, 2927, !0, fe); + case 40: + return xu(ce, 1776, 1785, !0, fe); + case 43: + return xu(ce, 3046, 3055, !0, fe); + case 44: + return xu(ce, 3174, 3183, !0, fe); + case 45: + return xu(ce, 3664, 3673, !0, fe); + case 46: + return xu(ce, 3872, 3881, !0, fe); + default: + return xu(ce, 48, 57, !0, fe); + } + }, Os = "data-html2canvas-ignore", Du = function() { + function ce(ne, Ae, fe) { + if (this.context = ne, this.options = fe, this.scrolledElements = [], this.referenceElement = Ae, this.counters = new Ou(), this.quoteDepth = 0, !Ae.ownerDocument) + throw new Error("Cloned element does not have an owner document"); + this.documentElement = this.cloneNode(Ae.ownerDocument.documentElement, !1); + } + return ce.prototype.toIFrame = function(ne, Ae) { + var fe = this, Re = Sb(ne, Ae); + if (!Re.contentWindow) + return Promise.reject("Unable to find iframe window"); + var rt = ne.defaultView.pageXOffset, dt = ne.defaultView.pageYOffset, Gt = Re.contentWindow, Nt = Gt.document, Ln = W2(Re).then(function() { + return g(fe, void 0, void 0, function() { + var On, Or; + return A(this, function(Rr) { + switch (Rr.label) { + case 0: + return this.scrolledElements.forEach(sh), Gt && (Gt.scrollTo(Ae.left, Ae.top), !/(iPad|iPhone|iPod)/g.test(navigator.userAgent) || Gt.scrollY === Ae.top && Gt.scrollX === Ae.left || (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(Gt.scrollX - Ae.left, Gt.scrollY - Ae.top, 0, 0))), On = this.options.onclone, (Or = this.clonedReferenceElement) === void 0 ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : Nt.fonts && Nt.fonts.ready ? [4, Nt.fonts.ready] : [3, 2]; + case 1: + Rr.sent(), Rr.label = 2; + case 2: + return /(AppleWebKit)/g.test(navigator.userAgent) ? [4, Hg(Nt)] : [3, 4]; + case 3: + Rr.sent(), Rr.label = 4; + case 4: + return typeof On == "function" ? [2, Promise.resolve().then(function() { + return On(Nt, Or); + }).then(function() { + return Re; + })] : [2, Re]; + } + }); + }); + }); + return Nt.open(), Nt.write(Qs(document.doctype) + ""), Cw(this.referenceElement.ownerDocument, rt, dt), Nt.replaceChild(Nt.adoptNode(this.documentElement), Nt.documentElement), Nt.close(), Ln; + }, ce.prototype.createElementClone = function(ne) { + if (F5(ne, 2), Jk(ne)) + return this.createCanvasClone(ne); + if (Zk(ne)) + return this.createVideoClone(ne); + if (G5(ne)) + return this.createStyleClone(ne); + var Ae = ne.cloneNode(!1); + return ex(Ae) && (ex(ne) && ne.currentSrc && ne.currentSrc !== ne.src && (Ae.src = ne.currentSrc, Ae.srcset = ""), Ae.loading === "lazy" && (Ae.loading = "eager")), Pl(Ae) ? this.createCustomElementClone(Ae) : Ae; + }, ce.prototype.createCustomElementClone = function(ne) { + var Ae = document.createElement("html2canvascustomelement"); + return Gv(ne.style, Ae), Ae; + }, ce.prototype.createStyleClone = function(ne) { + try { + var Ae = ne.sheet; + if (Ae && Ae.cssRules) { + var fe = [].slice.call(Ae.cssRules, 0).reduce(function(rt, dt) { + return dt && typeof dt.cssText == "string" ? rt + dt.cssText : rt; + }, ""), Re = ne.cloneNode(!1); + return Re.textContent = fe, Re; + } + } catch (rt) { + if (this.context.logger.error("Unable to access cssRules property", rt), rt.name !== "SecurityError") + throw rt; + } + return ne.cloneNode(!1); + }, ce.prototype.createCanvasClone = function(ne) { + var Ae; + if (this.options.inlineImages && ne.ownerDocument) { + var fe = ne.ownerDocument.createElement("img"); + try { + return fe.src = ne.toDataURL(), fe; + } catch { + this.context.logger.info("Unable to inline canvas contents, canvas is tainted", ne); + } + } + var Re = ne.cloneNode(!1); + try { + Re.width = ne.width, Re.height = ne.height; + var rt = ne.getContext("2d"), dt = Re.getContext("2d"); + if (dt) + if (!this.options.allowTaint && rt) + dt.putImageData(rt.getImageData(0, 0, ne.width, ne.height), 0, 0); + else { + var Gt = (Ae = ne.getContext("webgl2")) !== null && Ae !== void 0 ? Ae : ne.getContext("webgl"); + if (Gt) { + var Nt = Gt.getContextAttributes(); + (Nt == null ? void 0 : Nt.preserveDrawingBuffer) === !1 && this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false", ne); + } + dt.drawImage(ne, 0, 0); + } + return Re; + } catch { + this.context.logger.info("Unable to clone canvas as it is tainted", ne); + } + return Re; + }, ce.prototype.createVideoClone = function(ne) { + var Ae = ne.ownerDocument.createElement("canvas"); + Ae.width = ne.offsetWidth, Ae.height = ne.offsetHeight; + var fe = Ae.getContext("2d"); + try { + return fe && (fe.drawImage(ne, 0, 0, Ae.width, Ae.height), this.options.allowTaint || fe.getImageData(0, 0, Ae.width, Ae.height)), Ae; + } catch { + this.context.logger.info("Unable to clone video as it is tainted", ne); + } + var Re = ne.ownerDocument.createElement("canvas"); + return Re.width = ne.offsetWidth, Re.height = ne.offsetHeight, Re; + }, ce.prototype.appendChildNode = function(ne, Ae, fe) { + Np(Ae) && (ww(Ae) || Ae.hasAttribute(Os) || typeof this.options.ignoreElements == "function" && this.options.ignoreElements(Ae)) || this.options.copyStyles && Np(Ae) && G5(Ae) || ne.appendChild(this.cloneNode(Ae, fe)); + }, ce.prototype.cloneChildNodes = function(ne, Ae, fe) { + for (var Re = this, rt = ne.shadowRoot ? ne.shadowRoot.firstChild : ne.firstChild; rt; rt = rt.nextSibling) + if (Np(rt) && Em(rt) && typeof rt.assignedNodes == "function") { + var dt = rt.assignedNodes(); + dt.length && dt.forEach(function(Gt) { + return Re.appendChildNode(Ae, Gt, fe); + }); + } else + this.appendChildNode(Ae, rt, fe); + }, ce.prototype.cloneNode = function(ne, Ae) { + if (Dp(ne)) + return document.createTextNode(ne.data); + if (!ne.ownerDocument) + return ne.cloneNode(!1); + var fe = ne.ownerDocument.defaultView; + if (fe && Np(ne) && (K5(ne) || z2(ne))) { + var Re = this.createElementClone(ne); + Re.style.transitionProperty = "none"; + var rt = fe.getComputedStyle(ne), dt = fe.getComputedStyle(ne, ":before"), Gt = fe.getComputedStyle(ne, ":after"); + this.referenceElement === ne && K5(Re) && (this.clonedReferenceElement = Re), z5(Re) && we(Re); + var Nt = this.counters.parse(new H3(this.context, rt)), Ln = this.resolvePseudoContent(ne, Re, dt, lw.BEFORE); + Pl(ne) && (Ae = !0), Zk(ne) || this.cloneChildNodes(ne, Re, Ae), Ln && Re.insertBefore(Ln, Re.firstChild); + var On = this.resolvePseudoContent(ne, Re, Gt, lw.AFTER); + return On && Re.appendChild(On), this.counters.pop(Nt), (rt && (this.options.copyStyles || z2(ne)) && !tx(ne) || Ae) && Gv(rt, Re), ne.scrollTop === 0 && ne.scrollLeft === 0 || this.scrolledElements.push([Re, ne.scrollLeft, ne.scrollTop]), (uu(ne) || Z3(ne)) && (uu(Re) || Z3(Re)) && (Re.value = ne.value), Re; + } + return ne.cloneNode(!1); + }, ce.prototype.resolvePseudoContent = function(ne, Ae, fe, Re) { + var rt = this; + if (fe) { + var dt = fe.content, Gt = Ae.ownerDocument; + if (Gt && dt && dt !== "none" && dt !== "-moz-alt-content" && fe.display !== "none") { + this.counters.parse(new H3(this.context, fe)); + var Nt = new M5(this.context, fe), Ln = Gt.createElement("html2canvaspseudoelement"); + Gv(fe, Ln), Nt.content.forEach(function(Or) { + if (Or.type === 0) + Ln.appendChild(Gt.createTextNode(Or.value)); + else if (Or.type === 22) { + var Rr = Gt.createElement("img"); + Rr.src = Or.value, Rr.style.opacity = "1", Ln.appendChild(Rr); + } else if (Or.type === 18) { + if (Or.name === "attr") { + var Gi = Or.values.filter(vc); + Gi.length && Ln.appendChild(Gt.createTextNode(ne.getAttribute(Gi[0].value) || "")); + } else if (Or.name === "counter") { + var ga = Or.values.filter(C2), Co = ga[0], Il = ga[1]; + if (Co && vc(Co)) { + var vo = rt.counters.getCounterValue(Co.value), fs = Il && vc(Il) ? P3.parse(rt.context, Il.value) : 3; + Ln.appendChild(Gt.createTextNode(d1(vo, fs, !1))); + } + } else if (Or.name === "counters") { + var Jh = Or.values.filter(C2), Tc = (Co = Jh[0], Jh[1]); + if (Il = Jh[2], Co && vc(Co)) { + var Ds = rt.counters.getCounterValues(Co.value), ts = Il && vc(Il) ? P3.parse(rt.context, Il.value) : 3, Hl = Tc && Tc.type === 0 ? Tc.value : "", Nu = Ds.map(function(xs) { + return d1(xs, ts, !1); + }).join(Hl); + Ln.appendChild(Gt.createTextNode(Nu)); + } + } + } else if (Or.type === 20) + switch (Or.value) { + case "open-quote": + Ln.appendChild(Gt.createTextNode(Ao(Nt.quotes, rt.quoteDepth++, !0))); + break; + case "close-quote": + Ln.appendChild(Gt.createTextNode(Ao(Nt.quotes, --rt.quoteDepth, !1))); + break; + default: + Ln.appendChild(Gt.createTextNode(Or.value)); + } + }), Ln.className = G + " " + j; + var On = Re === lw.BEFORE ? " " + G : " " + j; + return z2(Ae) ? Ae.className.baseValue += On : Ae.className += On, Ln; + } + } + }, ce.destroy = function(ne) { + return !!ne.parentNode && (ne.parentNode.removeChild(ne), !0); + }, ce; + }(); + (function(ce) { + ce[ce.BEFORE = 0] = "BEFORE", ce[ce.AFTER = 1] = "AFTER"; + })(lw || (lw = {})); + var nn, Sb = function(ce, ne) { + var Ae = ce.createElement("iframe"); + return Ae.className = "html2canvas-container", Ae.style.visibility = "hidden", Ae.style.position = "fixed", Ae.style.left = "-10000px", Ae.style.top = "0px", Ae.style.border = "0", Ae.width = ne.width.toString(), Ae.height = ne.height.toString(), Ae.scrolling = "no", Ae.setAttribute(Os, "true"), ce.body.appendChild(Ae), Ae; + }, X2 = function(ce) { + return new Promise(function(ne) { + ce.complete ? ne() : ce.src ? (ce.onload = ne, ce.onerror = ne) : ne(); + }); + }, Hg = function(ce) { + return Promise.all([].slice.call(ce.images, 0).map(X2)); + }, W2 = function(ce) { + return new Promise(function(ne, Ae) { + var fe = ce.contentWindow; + if (!fe) + return Ae("No window assigned for iframe"); + var Re = fe.document; + fe.onload = ce.onload = function() { + fe.onload = ce.onload = null; + var rt = setInterval(function() { + Re.body.childNodes.length > 0 && Re.readyState === "complete" && (clearInterval(rt), ne(ce)); + }, 50); + }; + }); + }, kh = ["all", "d", "content"], Gv = function(ce, ne) { + for (var Ae = ce.length - 1; Ae >= 0; Ae--) { + var fe = ce.item(Ae); + kh.indexOf(fe) === -1 && ne.style.setProperty(fe, ce.getPropertyValue(fe)); + } + return ne; + }, Qs = function(ce) { + var ne = ""; + return ce && (ne += ""), ne; + }, Cw = function(ce, ne, Ae) { + ce && ce.defaultView && (ne !== ce.defaultView.pageXOffset || Ae !== ce.defaultView.pageYOffset) && ce.defaultView.scrollTo(ne, Ae); + }, sh = function(ce) { + var ne = ce[0], Ae = ce[1], fe = ce[2]; + ne.scrollLeft = Ae, ne.scrollTop = fe; + }, x = ":before", S = ":after", G = "___html2canvas___pseudoelement_before", j = "___html2canvas___pseudoelement_after", V = `{ + content: "" !important; + display: none !important; +}`, we = function(ce) { + $e(ce, "." + G + x + V + ` + .` + j + S + V); + }, $e = function(ce, ne) { + var Ae = ce.ownerDocument; + if (Ae) { + var fe = Ae.createElement("style"); + fe.textContent = ne, ce.appendChild(fe); + } + }, ze = function() { + function ce() { + } + return ce.getOrigin = function(ne) { + var Ae = ce._link; + return Ae ? (Ae.href = ne, Ae.href = Ae.href, Ae.protocol + Ae.hostname + Ae.port) : "about:blank"; + }, ce.isSameOrigin = function(ne) { + return ce.getOrigin(ne) === ce._origin; + }, ce.setContext = function(ne) { + ce._link = ne.document.createElement("a"), ce._origin = ce.getOrigin(ne.location.href); + }, ce._origin = "about:blank", ce; + }(), nt = function() { + function ce(ne, Ae) { + this.context = ne, this._options = Ae, this._cache = {}; + } + return ce.prototype.addImage = function(ne) { + var Ae = Promise.resolve(); + return this.has(ne) || (si(ne) || Nn(ne)) && (this._cache[ne] = this.loadImage(ne)).catch(function() { + }), Ae; + }, ce.prototype.match = function(ne) { + return this._cache[ne]; + }, ce.prototype.loadImage = function(ne) { + return g(this, void 0, void 0, function() { + var Ae, fe, Re, rt, dt = this; + return A(this, function(Gt) { + switch (Gt.label) { + case 0: + return Ae = ze.isSameOrigin(ne), fe = !Vn(ne) && this._options.useCORS === !0 && S1.SUPPORT_CORS_IMAGES && !Ae, Re = !Vn(ne) && !Ae && !si(ne) && typeof this._options.proxy == "string" && S1.SUPPORT_CORS_XHR && !fe, Ae || this._options.allowTaint !== !1 || Vn(ne) || si(ne) || Re || fe ? (rt = ne, Re ? [4, this.proxy(rt)] : [3, 2]) : [2]; + case 1: + rt = Gt.sent(), Gt.label = 2; + case 2: + return this.context.logger.debug("Added image " + ne.substring(0, 256)), [4, new Promise(function(Nt, Ln) { + var On = new Image(); + On.onload = function() { + return Nt(On); + }, On.onerror = Ln, (mr(rt) || fe) && (On.crossOrigin = "anonymous"), On.src = rt, On.complete === !0 && setTimeout(function() { + return Nt(On); + }, 500), dt._options.imageTimeout > 0 && setTimeout(function() { + return Ln("Timed out (" + dt._options.imageTimeout + "ms) loading image"); + }, dt._options.imageTimeout); + })]; + case 3: + return [2, Gt.sent()]; + } + }); + }); + }, ce.prototype.has = function(ne) { + return this._cache[ne] !== void 0; + }, ce.prototype.keys = function() { + return Promise.resolve(Object.keys(this._cache)); + }, ce.prototype.proxy = function(ne) { + var Ae = this, fe = this._options.proxy; + if (!fe) + throw new Error("No proxy defined"); + var Re = ne.substring(0, 256); + return new Promise(function(rt, dt) { + var Gt = S1.SUPPORT_RESPONSE_TYPE ? "blob" : "text", Nt = new XMLHttpRequest(); + Nt.onload = function() { + if (Nt.status === 200) + if (Gt === "text") + rt(Nt.response); + else { + var Or = new FileReader(); + Or.addEventListener("load", function() { + return rt(Or.result); + }, !1), Or.addEventListener("error", function(Rr) { + return dt(Rr); + }, !1), Or.readAsDataURL(Nt.response); + } + else + dt("Failed to proxy resource " + Re + " with status code " + Nt.status); + }, Nt.onerror = dt; + var Ln = fe.indexOf("?") > -1 ? "&" : "?"; + if (Nt.open("GET", "" + fe + Ln + "url=" + encodeURIComponent(ne) + "&responseType=" + Gt), Gt !== "text" && Nt instanceof XMLHttpRequest && (Nt.responseType = Gt), Ae._options.imageTimeout) { + var On = Ae._options.imageTimeout; + Nt.timeout = On, Nt.ontimeout = function() { + return dt("Timed out (" + On + "ms) proxying " + Re); + }; + } + Nt.send(); + }); + }, ce; + }(), at = /^data:image\/svg\+xml/i, Yt = /^data:image\/.*;base64,/i, Vt = /^data:image\/.*/i, Nn = function(ce) { + return S1.SUPPORT_SVG_DRAWING || !Mi(ce); + }, Vn = function(ce) { + return Vt.test(ce); + }, mr = function(ce) { + return Yt.test(ce); + }, si = function(ce) { + return ce.substr(0, 4) === "blob"; + }, Mi = function(ce) { + return ce.substr(-3).toLowerCase() === "svg" || at.test(ce); + }, _r = function() { + function ce(ne, Ae) { + this.type = 0, this.x = ne, this.y = Ae; + } + return ce.prototype.add = function(ne, Ae) { + return new ce(this.x + ne, this.y + Ae); + }, ce; + }(), ao = function(ce, ne, Ae) { + return new _r(ce.x + (ne.x - ce.x) * Ae, ce.y + (ne.y - ce.y) * Ae); + }, ea = function() { + function ce(ne, Ae, fe, Re) { + this.type = 1, this.start = ne, this.startControl = Ae, this.endControl = fe, this.end = Re; + } + return ce.prototype.subdivide = function(ne, Ae) { + var fe = ao(this.start, this.startControl, ne), Re = ao(this.startControl, this.endControl, ne), rt = ao(this.endControl, this.end, ne), dt = ao(fe, Re, ne), Gt = ao(Re, rt, ne), Nt = ao(dt, Gt, ne); + return Ae ? new ce(this.start, fe, dt, Nt) : new ce(Nt, Gt, rt, this.end); + }, ce.prototype.add = function(ne, Ae) { + return new ce(this.start.add(ne, Ae), this.startControl.add(ne, Ae), this.endControl.add(ne, Ae), this.end.add(ne, Ae)); + }, ce.prototype.reverse = function() { + return new ce(this.end, this.endControl, this.startControl, this.start); + }, ce; + }(), zi = function(ce) { + return ce.type === 1; + }, Qo = /* @__PURE__ */ function() { + function ce(ne) { + var Ae = ne.styles, fe = ne.bounds, Re = Lv(Ae.borderTopLeftRadius, fe.width, fe.height), rt = Re[0], dt = Re[1], Gt = Lv(Ae.borderTopRightRadius, fe.width, fe.height), Nt = Gt[0], Ln = Gt[1], On = Lv(Ae.borderBottomRightRadius, fe.width, fe.height), Or = On[0], Rr = On[1], Gi = Lv(Ae.borderBottomLeftRadius, fe.width, fe.height), ga = Gi[0], Co = Gi[1], Il = []; + Il.push((rt + Nt) / fe.width), Il.push((ga + Or) / fe.width), Il.push((dt + Co) / fe.height), Il.push((Ln + Rr) / fe.height); + var vo = Math.max.apply(Math, Il); + vo > 1 && (rt /= vo, dt /= vo, Nt /= vo, Ln /= vo, Or /= vo, Rr /= vo, ga /= vo, Co /= vo); + var fs = fe.width - Nt, Jh = fe.height - Rr, Tc = fe.width - Or, Ds = fe.height - Co, ts = Ae.borderTopWidth, Hl = Ae.borderRightWidth, Nu = Ae.borderBottomWidth, xs = Ae.borderLeftWidth, uA = Fu(Ae.paddingTop, ne.bounds.width), Qp = Fu(Ae.paddingRight, ne.bounds.width), Ml = Fu(Ae.paddingBottom, ne.bounds.width), Zh = Fu(Ae.paddingLeft, ne.bounds.width); + this.topLeftBorderDoubleOuterBox = rt > 0 || dt > 0 ? $a(fe.left + xs / 3, fe.top + ts / 3, rt - xs / 3, dt - ts / 3, nn.TOP_LEFT) : new _r(fe.left + xs / 3, fe.top + ts / 3), this.topRightBorderDoubleOuterBox = rt > 0 || dt > 0 ? $a(fe.left + fs, fe.top + ts / 3, Nt - Hl / 3, Ln - ts / 3, nn.TOP_RIGHT) : new _r(fe.left + fe.width - Hl / 3, fe.top + ts / 3), this.bottomRightBorderDoubleOuterBox = Or > 0 || Rr > 0 ? $a(fe.left + Tc, fe.top + Jh, Or - Hl / 3, Rr - Nu / 3, nn.BOTTOM_RIGHT) : new _r(fe.left + fe.width - Hl / 3, fe.top + fe.height - Nu / 3), this.bottomLeftBorderDoubleOuterBox = ga > 0 || Co > 0 ? $a(fe.left + xs / 3, fe.top + Ds, ga - xs / 3, Co - Nu / 3, nn.BOTTOM_LEFT) : new _r(fe.left + xs / 3, fe.top + fe.height - Nu / 3), this.topLeftBorderDoubleInnerBox = rt > 0 || dt > 0 ? $a(fe.left + 2 * xs / 3, fe.top + 2 * ts / 3, rt - 2 * xs / 3, dt - 2 * ts / 3, nn.TOP_LEFT) : new _r(fe.left + 2 * xs / 3, fe.top + 2 * ts / 3), this.topRightBorderDoubleInnerBox = rt > 0 || dt > 0 ? $a(fe.left + fs, fe.top + 2 * ts / 3, Nt - 2 * Hl / 3, Ln - 2 * ts / 3, nn.TOP_RIGHT) : new _r(fe.left + fe.width - 2 * Hl / 3, fe.top + 2 * ts / 3), this.bottomRightBorderDoubleInnerBox = Or > 0 || Rr > 0 ? $a(fe.left + Tc, fe.top + Jh, Or - 2 * Hl / 3, Rr - 2 * Nu / 3, nn.BOTTOM_RIGHT) : new _r(fe.left + fe.width - 2 * Hl / 3, fe.top + fe.height - 2 * Nu / 3), this.bottomLeftBorderDoubleInnerBox = ga > 0 || Co > 0 ? $a(fe.left + 2 * xs / 3, fe.top + Ds, ga - 2 * xs / 3, Co - 2 * Nu / 3, nn.BOTTOM_LEFT) : new _r(fe.left + 2 * xs / 3, fe.top + fe.height - 2 * Nu / 3), this.topLeftBorderStroke = rt > 0 || dt > 0 ? $a(fe.left + xs / 2, fe.top + ts / 2, rt - xs / 2, dt - ts / 2, nn.TOP_LEFT) : new _r(fe.left + xs / 2, fe.top + ts / 2), this.topRightBorderStroke = rt > 0 || dt > 0 ? $a(fe.left + fs, fe.top + ts / 2, Nt - Hl / 2, Ln - ts / 2, nn.TOP_RIGHT) : new _r(fe.left + fe.width - Hl / 2, fe.top + ts / 2), this.bottomRightBorderStroke = Or > 0 || Rr > 0 ? $a(fe.left + Tc, fe.top + Jh, Or - Hl / 2, Rr - Nu / 2, nn.BOTTOM_RIGHT) : new _r(fe.left + fe.width - Hl / 2, fe.top + fe.height - Nu / 2), this.bottomLeftBorderStroke = ga > 0 || Co > 0 ? $a(fe.left + xs / 2, fe.top + Ds, ga - xs / 2, Co - Nu / 2, nn.BOTTOM_LEFT) : new _r(fe.left + xs / 2, fe.top + fe.height - Nu / 2), this.topLeftBorderBox = rt > 0 || dt > 0 ? $a(fe.left, fe.top, rt, dt, nn.TOP_LEFT) : new _r(fe.left, fe.top), this.topRightBorderBox = Nt > 0 || Ln > 0 ? $a(fe.left + fs, fe.top, Nt, Ln, nn.TOP_RIGHT) : new _r(fe.left + fe.width, fe.top), this.bottomRightBorderBox = Or > 0 || Rr > 0 ? $a(fe.left + Tc, fe.top + Jh, Or, Rr, nn.BOTTOM_RIGHT) : new _r(fe.left + fe.width, fe.top + fe.height), this.bottomLeftBorderBox = ga > 0 || Co > 0 ? $a(fe.left, fe.top + Ds, ga, Co, nn.BOTTOM_LEFT) : new _r(fe.left, fe.top + fe.height), this.topLeftPaddingBox = rt > 0 || dt > 0 ? $a(fe.left + xs, fe.top + ts, Math.max(0, rt - xs), Math.max(0, dt - ts), nn.TOP_LEFT) : new _r(fe.left + xs, fe.top + ts), this.topRightPaddingBox = Nt > 0 || Ln > 0 ? $a(fe.left + Math.min(fs, fe.width - Hl), fe.top + ts, fs > fe.width + Hl ? 0 : Math.max(0, Nt - Hl), Math.max(0, Ln - ts), nn.TOP_RIGHT) : new _r(fe.left + fe.width - Hl, fe.top + ts), this.bottomRightPaddingBox = Or > 0 || Rr > 0 ? $a(fe.left + Math.min(Tc, fe.width - xs), fe.top + Math.min(Jh, fe.height - Nu), Math.max(0, Or - Hl), Math.max(0, Rr - Nu), nn.BOTTOM_RIGHT) : new _r(fe.left + fe.width - Hl, fe.top + fe.height - Nu), this.bottomLeftPaddingBox = ga > 0 || Co > 0 ? $a(fe.left + xs, fe.top + Math.min(Ds, fe.height - Nu), Math.max(0, ga - xs), Math.max(0, Co - Nu), nn.BOTTOM_LEFT) : new _r(fe.left + xs, fe.top + fe.height - Nu), this.topLeftContentBox = rt > 0 || dt > 0 ? $a(fe.left + xs + Zh, fe.top + ts + uA, Math.max(0, rt - (xs + Zh)), Math.max(0, dt - (ts + uA)), nn.TOP_LEFT) : new _r(fe.left + xs + Zh, fe.top + ts + uA), this.topRightContentBox = Nt > 0 || Ln > 0 ? $a(fe.left + Math.min(fs, fe.width + xs + Zh), fe.top + ts + uA, fs > fe.width + xs + Zh ? 0 : Nt - xs + Zh, Ln - (ts + uA), nn.TOP_RIGHT) : new _r(fe.left + fe.width - (Hl + Qp), fe.top + ts + uA), this.bottomRightContentBox = Or > 0 || Rr > 0 ? $a(fe.left + Math.min(Tc, fe.width - (xs + Zh)), fe.top + Math.min(Jh, fe.height + ts + uA), Math.max(0, Or - (Hl + Qp)), Rr - (Nu + Ml), nn.BOTTOM_RIGHT) : new _r(fe.left + fe.width - (Hl + Qp), fe.top + fe.height - (Nu + Ml)), this.bottomLeftContentBox = ga > 0 || Co > 0 ? $a(fe.left + xs + Zh, fe.top + Ds, Math.max(0, ga - (xs + Zh)), Co - (Nu + Ml), nn.BOTTOM_LEFT) : new _r(fe.left + xs + Zh, fe.top + fe.height - (Nu + Ml)); + } + return ce; + }(); + (function(ce) { + ce[ce.TOP_LEFT = 0] = "TOP_LEFT", ce[ce.TOP_RIGHT = 1] = "TOP_RIGHT", ce[ce.BOTTOM_RIGHT = 2] = "BOTTOM_RIGHT", ce[ce.BOTTOM_LEFT = 3] = "BOTTOM_LEFT"; + })(nn || (nn = {})); + var $a = function(ce, ne, Ae, fe, Re) { + var rt = (Math.sqrt(2) - 1) / 3 * 4, dt = Ae * rt, Gt = fe * rt, Nt = ce + Ae, Ln = ne + fe; + switch (Re) { + case nn.TOP_LEFT: + return new ea(new _r(ce, Ln), new _r(ce, Ln - Gt), new _r(Nt - dt, ne), new _r(Nt, ne)); + case nn.TOP_RIGHT: + return new ea(new _r(ce, ne), new _r(ce + dt, ne), new _r(Nt, Ln - Gt), new _r(Nt, Ln)); + case nn.BOTTOM_RIGHT: + return new ea(new _r(Nt, ne), new _r(Nt, ne + Gt), new _r(ce + dt, Ln), new _r(ce, Ln)); + case nn.BOTTOM_LEFT: + default: + return new ea(new _r(Nt, Ln), new _r(Nt - dt, Ln), new _r(ce, ne + Gt), new _r(ce, ne)); + } + }, Ll = function(ce) { + return [ce.topLeftBorderBox, ce.topRightBorderBox, ce.bottomRightBorderBox, ce.bottomLeftBorderBox]; + }, hu = function(ce) { + return [ce.topLeftContentBox, ce.topRightContentBox, ce.bottomRightContentBox, ce.bottomLeftContentBox]; + }, I1 = function(ce) { + return [ce.topLeftPaddingBox, ce.topRightPaddingBox, ce.bottomRightPaddingBox, ce.bottomLeftPaddingBox]; + }, ac = /* @__PURE__ */ function() { + function ce(ne, Ae, fe) { + this.offsetX = ne, this.offsetY = Ae, this.matrix = fe, this.type = 0, this.target = 6; + } + return ce; + }(), _f = /* @__PURE__ */ function() { + function ce(ne, Ae) { + this.path = ne, this.target = Ae, this.type = 1; + } + return ce; + }(), J1 = /* @__PURE__ */ function() { + function ce(ne) { + this.opacity = ne, this.type = 2, this.target = 6; + } + return ce; + }(), qh = function(ce) { + return ce.type === 0; + }, Rd = function(ce) { + return ce.type === 1; + }, oA = function(ce) { + return ce.type === 2; + }, Wu = function(ce, ne) { + return ce.length === ne.length && ce.some(function(Ae, fe) { + return Ae === ne[fe]; + }); + }, Yh = function(ce, ne, Ae, fe, Re) { + return ce.map(function(rt, dt) { + switch (dt) { + case 0: + return rt.add(ne, Ae); + case 1: + return rt.add(ne + fe, Ae); + case 2: + return rt.add(ne + fe, Ae + Re); + case 3: + return rt.add(ne, Ae + Re); + } + return rt; + }); + }, t1 = /* @__PURE__ */ function() { + function ce(ne) { + this.element = ne, this.inlineLevel = [], this.nonInlineLevel = [], this.negativeZIndex = [], this.zeroOrAutoZIndexOrTransformedOrOpacity = [], this.positiveZIndex = [], this.nonPositionedFloats = [], this.nonPositionedInlineLevel = []; + } + return ce; + }(), sA = function() { + function ce(ne, Ae) { + if (this.container = ne, this.parent = Ae, this.effects = [], this.curves = new Qo(this.container), this.container.styles.opacity < 1 && this.effects.push(new J1(this.container.styles.opacity)), this.container.styles.transform !== null) { + var fe = this.container.bounds.left + this.container.styles.transformOrigin[0].number, Re = this.container.bounds.top + this.container.styles.transformOrigin[1].number, rt = this.container.styles.transform; + this.effects.push(new ac(fe, Re, rt)); + } + if (this.container.styles.overflowX !== 0) { + var dt = Ll(this.curves), Gt = I1(this.curves); + Wu(dt, Gt) ? this.effects.push(new _f(dt, 6)) : (this.effects.push(new _f(dt, 2)), this.effects.push(new _f(Gt, 4))); + } + } + return ce.prototype.getEffects = function(ne) { + for (var Ae = [2, 3].indexOf(this.container.styles.position) === -1, fe = this.parent, Re = this.effects.slice(0); fe; ) { + var rt = fe.effects.filter(function(Nt) { + return !Rd(Nt); + }); + if (Ae || fe.container.styles.position !== 0 || !fe.parent) { + if (Re.unshift.apply(Re, rt), Ae = [2, 3].indexOf(fe.container.styles.position) === -1, fe.container.styles.overflowX !== 0) { + var dt = Ll(fe.curves), Gt = I1(fe.curves); + Wu(dt, Gt) || Re.unshift(new _f(Gt, 6)); + } + } else + Re.unshift.apply(Re, rt); + fe = fe.parent; + } + return Re.filter(function(Nt) { + return Nl(Nt.target, ne); + }); + }, ce; + }(), Pp = function(ce, ne, Ae, fe) { + ce.container.elements.forEach(function(Re) { + var rt = Nl(Re.flags, 4), dt = Nl(Re.flags, 2), Gt = new sA(Re, ce); + Nl(Re.styles.display, 2048) && fe.push(Gt); + var Nt = Nl(Re.flags, 8) ? [] : fe; + if (rt || dt) { + var Ln = rt || Re.styles.isPositioned() ? Ae : ne, On = new t1(Gt); + if (Re.styles.isPositioned() || Re.styles.opacity < 1 || Re.styles.isTransformed()) { + var Or = Re.styles.zIndex.order; + if (Or < 0) { + var Rr = 0; + Ln.negativeZIndex.some(function(ga, Co) { + return Or > ga.element.container.styles.zIndex.order ? (Rr = Co, !1) : Rr > 0; + }), Ln.negativeZIndex.splice(Rr, 0, On); + } else if (Or > 0) { + var Gi = 0; + Ln.positiveZIndex.some(function(ga, Co) { + return Or >= ga.element.container.styles.zIndex.order ? (Gi = Co + 1, !1) : Gi > 0; + }), Ln.positiveZIndex.splice(Gi, 0, On); + } else + Ln.zeroOrAutoZIndexOrTransformedOrOpacity.push(On); + } else + Re.styles.isFloating() ? Ln.nonPositionedFloats.push(On) : Ln.nonPositionedInlineLevel.push(On); + Pp(Gt, On, rt ? On : Ae, Nt); + } else + Re.styles.isInlineLevel() ? ne.inlineLevel.push(Gt) : ne.nonInlineLevel.push(Gt), Pp(Gt, ne, Ae, Nt); + Nl(Re.flags, 8) && g0(Re, Nt); + }); + }, g0 = function(ce, ne) { + for (var Ae = ce instanceof vw ? ce.start : 1, fe = ce instanceof vw && ce.reversed, Re = 0; Re < ne.length; Re++) { + var rt = ne[Re]; + rt.container instanceof bw && typeof rt.container.value == "number" && rt.container.value !== 0 && (Ae = rt.container.value), rt.listValue = d1(Ae, rt.container.styles.listStyleType, !0), Ae += fe ? -1 : 1; + } + }, Uo = function(ce) { + var ne = new sA(ce, null), Ae = new t1(ne), fe = []; + return Pp(ne, Ae, Ae, fe), g0(ne.container, fe), Ae; + }, n1 = function(ce, ne) { + switch (ne) { + case 0: + return Dh(ce.topLeftBorderBox, ce.topLeftPaddingBox, ce.topRightBorderBox, ce.topRightPaddingBox); + case 1: + return Dh(ce.topRightBorderBox, ce.topRightPaddingBox, ce.bottomRightBorderBox, ce.bottomRightPaddingBox); + case 2: + return Dh(ce.bottomRightBorderBox, ce.bottomRightPaddingBox, ce.bottomLeftBorderBox, ce.bottomLeftPaddingBox); + default: + return Dh(ce.bottomLeftBorderBox, ce.bottomLeftPaddingBox, ce.topLeftBorderBox, ce.topLeftPaddingBox); + } + }, V2 = function(ce, ne) { + switch (ne) { + case 0: + return Dh(ce.topLeftBorderBox, ce.topLeftBorderDoubleOuterBox, ce.topRightBorderBox, ce.topRightBorderDoubleOuterBox); + case 1: + return Dh(ce.topRightBorderBox, ce.topRightBorderDoubleOuterBox, ce.bottomRightBorderBox, ce.bottomRightBorderDoubleOuterBox); + case 2: + return Dh(ce.bottomRightBorderBox, ce.bottomRightBorderDoubleOuterBox, ce.bottomLeftBorderBox, ce.bottomLeftBorderDoubleOuterBox); + default: + return Dh(ce.bottomLeftBorderBox, ce.bottomLeftBorderDoubleOuterBox, ce.topLeftBorderBox, ce.topLeftBorderDoubleOuterBox); + } + }, p0 = function(ce, ne) { + switch (ne) { + case 0: + return Dh(ce.topLeftBorderDoubleInnerBox, ce.topLeftPaddingBox, ce.topRightBorderDoubleInnerBox, ce.topRightPaddingBox); + case 1: + return Dh(ce.topRightBorderDoubleInnerBox, ce.topRightPaddingBox, ce.bottomRightBorderDoubleInnerBox, ce.bottomRightPaddingBox); + case 2: + return Dh(ce.bottomRightBorderDoubleInnerBox, ce.bottomRightPaddingBox, ce.bottomLeftBorderDoubleInnerBox, ce.bottomLeftPaddingBox); + default: + return Dh(ce.bottomLeftBorderDoubleInnerBox, ce.bottomLeftPaddingBox, ce.topLeftBorderDoubleInnerBox, ce.topLeftPaddingBox); + } + }, Rp = function(ce, ne) { + switch (ne) { + case 0: + return jg(ce.topLeftBorderStroke, ce.topRightBorderStroke); + case 1: + return jg(ce.topRightBorderStroke, ce.bottomRightBorderStroke); + case 2: + return jg(ce.bottomRightBorderStroke, ce.bottomLeftBorderStroke); + default: + return jg(ce.bottomLeftBorderStroke, ce.topLeftBorderStroke); + } + }, jg = function(ce, ne) { + var Ae = []; + return zi(ce) ? Ae.push(ce.subdivide(0.5, !1)) : Ae.push(ce), zi(ne) ? Ae.push(ne.subdivide(0.5, !0)) : Ae.push(ne), Ae; + }, Dh = function(ce, ne, Ae, fe) { + var Re = []; + return zi(ce) ? Re.push(ce.subdivide(0.5, !1)) : Re.push(ce), zi(Ae) ? Re.push(Ae.subdivide(0.5, !0)) : Re.push(Ae), zi(fe) ? Re.push(fe.subdivide(0.5, !0).reverse()) : Re.push(fe), zi(ne) ? Re.push(ne.subdivide(0.5, !1).reverse()) : Re.push(ne), Re; + }, Lb = function(ce) { + var ne = ce.bounds, Ae = ce.styles; + return ne.add(Ae.borderLeftWidth, Ae.borderTopWidth, -(Ae.borderRightWidth + Ae.borderLeftWidth), -(Ae.borderTopWidth + Ae.borderBottomWidth)); + }, Kg = function(ce) { + var ne = ce.styles, Ae = ce.bounds, fe = Fu(ne.paddingLeft, Ae.width), Re = Fu(ne.paddingRight, Ae.width), rt = Fu(ne.paddingTop, Ae.width), dt = Fu(ne.paddingBottom, Ae.width); + return Ae.add(fe + ne.borderLeftWidth, rt + ne.borderTopWidth, -(ne.borderRightWidth + ne.borderLeftWidth + fe + Re), -(ne.borderTopWidth + ne.borderBottomWidth + rt + dt)); + }, e4 = function(ce, ne) { + return ce === 0 ? ne.bounds : ce === 2 ? Kg(ne) : Lb(ne); + }, V5 = function(ce, ne) { + return ce === 0 ? ne.bounds : ce === 2 ? Kg(ne) : Lb(ne); + }, Ib = function(ce, ne, Ae) { + var fe = e4(t4(ce.styles.backgroundOrigin, ne), ce), Re = V5(t4(ce.styles.backgroundClip, ne), ce), rt = PT(t4(ce.styles.backgroundSize, ne), Ae, fe), dt = rt[0], Gt = rt[1], Nt = Lv(t4(ce.styles.backgroundPosition, ne), fe.width - dt, fe.height - Gt); + return [Z1(t4(ce.styles.backgroundRepeat, ne), Nt, rt, fe, Re), Math.round(fe.left + Nt[0]), Math.round(fe.top + Nt[1]), dt, Gt]; + }, Mb = function(ce) { + return vc(ce) && ce.value === LA.AUTO; + }, rx = function(ce) { + return typeof ce == "number"; + }, PT = function(ce, ne, Ae) { + var fe = ne[0], Re = ne[1], rt = ne[2], dt = ce[0], Gt = ce[1]; + if (!dt) + return [0, 0]; + if (Xh(dt) && Gt && Xh(Gt)) + return [Fu(dt, Ae.width), Fu(Gt, Ae.height)]; + var Nt = rx(rt); + if (vc(dt) && (dt.value === LA.CONTAIN || dt.value === LA.COVER)) + return rx(rt) ? Ae.width / Ae.height < rt != (dt.value === LA.COVER) ? [Ae.width, Ae.width / rt] : [Ae.height * rt, Ae.height] : [Ae.width, Ae.height]; + var Ln = rx(fe), On = rx(Re), Or = Ln || On; + if (Mb(dt) && (!Gt || Mb(Gt))) + return Ln && On ? [fe, Re] : Nt || Or ? Or && Nt ? [Ln ? fe : Re * rt, On ? Re : fe / rt] : [Ln ? fe : Ae.width, On ? Re : Ae.height] : [Ae.width, Ae.height]; + if (Nt) { + var Rr = 0, Gi = 0; + return Xh(dt) ? Rr = Fu(dt, Ae.width) : Xh(Gt) && (Gi = Fu(Gt, Ae.height)), Mb(dt) ? Rr = Gi * rt : Gt && !Mb(Gt) || (Gi = Rr / rt), [Rr, Gi]; + } + var ga = null, Co = null; + if (Xh(dt) ? ga = Fu(dt, Ae.width) : Gt && Xh(Gt) && (Co = Fu(Gt, Ae.height)), ga === null || Gt && !Mb(Gt) || (Co = Ln && On ? ga / fe * Re : Ae.height), Co !== null && Mb(dt) && (ga = Ln && On ? Co / Re * fe : Ae.width), ga !== null && Co !== null) + return [ga, Co]; + throw new Error("Unable to calculate background-size for element"); + }, t4 = function(ce, ne) { + var Ae = ce[ne]; + return Ae === void 0 ? ce[0] : Ae; + }, Z1 = function(ce, ne, Ae, fe, Re) { + var rt = ne[0], dt = ne[1], Gt = Ae[0], Nt = Ae[1]; + switch (ce) { + case 2: + return [new _r(Math.round(fe.left), Math.round(fe.top + dt)), new _r(Math.round(fe.left + fe.width), Math.round(fe.top + dt)), new _r(Math.round(fe.left + fe.width), Math.round(Nt + fe.top + dt)), new _r(Math.round(fe.left), Math.round(Nt + fe.top + dt))]; + case 3: + return [new _r(Math.round(fe.left + rt), Math.round(fe.top)), new _r(Math.round(fe.left + rt + Gt), Math.round(fe.top)), new _r(Math.round(fe.left + rt + Gt), Math.round(fe.height + fe.top)), new _r(Math.round(fe.left + rt), Math.round(fe.height + fe.top))]; + case 1: + return [new _r(Math.round(fe.left + rt), Math.round(fe.top + dt)), new _r(Math.round(fe.left + rt + Gt), Math.round(fe.top + dt)), new _r(Math.round(fe.left + rt + Gt), Math.round(fe.top + dt + Nt)), new _r(Math.round(fe.left + rt), Math.round(fe.top + dt + Nt))]; + default: + return [new _r(Math.round(Re.left), Math.round(Re.top)), new _r(Math.round(Re.left + Re.width), Math.round(Re.top)), new _r(Math.round(Re.left + Re.width), Math.round(Re.height + Re.top)), new _r(Math.round(Re.left), Math.round(Re.height + Re.top))]; + } + }, A_ = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", g_ = "Hidden Text", Vu = function() { + function ce(ne) { + this._data = {}, this._document = ne; + } + return ce.prototype.parseMetrics = function(ne, Ae) { + var fe = this._document.createElement("div"), Re = this._document.createElement("img"), rt = this._document.createElement("span"), dt = this._document.body; + fe.style.visibility = "hidden", fe.style.fontFamily = ne, fe.style.fontSize = Ae, fe.style.margin = "0", fe.style.padding = "0", fe.style.whiteSpace = "nowrap", dt.appendChild(fe), Re.src = A_, Re.width = 1, Re.height = 1, Re.style.margin = "0", Re.style.padding = "0", Re.style.verticalAlign = "baseline", rt.style.fontFamily = ne, rt.style.fontSize = Ae, rt.style.margin = "0", rt.style.padding = "0", rt.appendChild(this._document.createTextNode(g_)), fe.appendChild(rt), fe.appendChild(Re); + var Gt = Re.offsetTop - rt.offsetTop + 2; + fe.removeChild(rt), fe.appendChild(this._document.createTextNode(g_)), fe.style.lineHeight = "normal", Re.style.verticalAlign = "super"; + var Nt = Re.offsetTop - fe.offsetTop + 2; + return dt.removeChild(fe), { baseline: Gt, middle: Nt }; + }, ce.prototype.getMetrics = function(ne, Ae) { + var fe = ne + " " + Ae; + return this._data[fe] === void 0 && (this._data[fe] = this.parseMetrics(ne, Ae)), this._data[fe]; + }, ce; + }(), p_ = /* @__PURE__ */ function() { + function ce(ne, Ae) { + this.context = ne, this.options = Ae; + } + return ce; + }(), Qd = 1e4, OC = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re._activeEffects = [], Re.canvas = fe.canvas ? fe.canvas : document.createElement("canvas"), Re.ctx = Re.canvas.getContext("2d"), fe.canvas || (Re.canvas.width = Math.floor(fe.width * fe.scale), Re.canvas.height = Math.floor(fe.height * fe.scale), Re.canvas.style.width = fe.width + "px", Re.canvas.style.height = fe.height + "px"), Re.fontMetrics = new Vu(document), Re.ctx.scale(Re.options.scale, Re.options.scale), Re.ctx.translate(-fe.x, -fe.y), Re.ctx.textBaseline = "bottom", Re._activeEffects = [], Re.context.logger.debug("Canvas renderer initialized (" + fe.width + "x" + fe.height + ") with scale " + fe.scale), Re; + } + return l(ne, ce), ne.prototype.applyEffects = function(Ae) { + for (var fe = this; this._activeEffects.length; ) + this.popEffect(); + Ae.forEach(function(Re) { + return fe.applyEffect(Re); + }); + }, ne.prototype.applyEffect = function(Ae) { + this.ctx.save(), oA(Ae) && (this.ctx.globalAlpha = Ae.opacity), qh(Ae) && (this.ctx.translate(Ae.offsetX, Ae.offsetY), this.ctx.transform(Ae.matrix[0], Ae.matrix[1], Ae.matrix[2], Ae.matrix[3], Ae.matrix[4], Ae.matrix[5]), this.ctx.translate(-Ae.offsetX, -Ae.offsetY)), Rd(Ae) && (this.path(Ae.path), this.ctx.clip()), this._activeEffects.push(Ae); + }, ne.prototype.popEffect = function() { + this._activeEffects.pop(), this.ctx.restore(); + }, ne.prototype.renderStack = function(Ae) { + return g(this, void 0, void 0, function() { + return A(this, function(fe) { + switch (fe.label) { + case 0: + return Ae.element.container.styles.isVisible() ? [4, this.renderStackContent(Ae)] : [3, 2]; + case 1: + fe.sent(), fe.label = 2; + case 2: + return [2]; + } + }); + }); + }, ne.prototype.renderNode = function(Ae) { + return g(this, void 0, void 0, function() { + return A(this, function(fe) { + switch (fe.label) { + case 0: + return Nl(Ae.container.flags, 16), Ae.container.styles.isVisible() ? [4, this.renderNodeBackgroundAndBorders(Ae)] : [3, 3]; + case 1: + return fe.sent(), [4, this.renderNodeContent(Ae)]; + case 2: + fe.sent(), fe.label = 3; + case 3: + return [2]; + } + }); + }); + }, ne.prototype.renderTextWithLetterSpacing = function(Ae, fe, Re) { + var rt = this; + fe === 0 ? this.ctx.fillText(Ae.text, Ae.bounds.left, Ae.bounds.top + Re) : Cb(Ae.text).reduce(function(dt, Gt) { + return rt.ctx.fillText(Gt, dt, Ae.bounds.top + Re), dt + rt.ctx.measureText(Gt).width; + }, Ae.bounds.left); + }, ne.prototype.createFontStyle = function(Ae) { + var fe = Ae.fontVariant.filter(function(dt) { + return dt === "normal" || dt === "small-caps"; + }).join(""), Re = Bm(Ae.fontFamily).join(", "), rt = x2(Ae.fontSize) ? "" + Ae.fontSize.number + Ae.fontSize.unit : Ae.fontSize.number + "px"; + return [[Ae.fontStyle, fe, Ae.fontWeight, rt, Re].join(" "), Re, rt]; + }, ne.prototype.renderTextNode = function(Ae, fe) { + return g(this, void 0, void 0, function() { + var Re, rt, dt, Gt, Nt, Ln, On, Or, Rr = this; + return A(this, function(Gi) { + return Re = this.createFontStyle(fe), rt = Re[0], dt = Re[1], Gt = Re[2], this.ctx.font = rt, this.ctx.direction = fe.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", Nt = this.fontMetrics.getMetrics(dt, Gt), Ln = Nt.baseline, On = Nt.middle, Or = fe.paintOrder, Ae.textBounds.forEach(function(ga) { + Or.forEach(function(Co) { + switch (Co) { + case 0: + Rr.ctx.fillStyle = Ks(fe.color), Rr.renderTextWithLetterSpacing(ga, fe.letterSpacing, Ln); + var Il = fe.textShadow; + Il.length && ga.text.trim().length && (Il.slice(0).reverse().forEach(function(vo) { + Rr.ctx.shadowColor = Ks(vo.color), Rr.ctx.shadowOffsetX = vo.offsetX.number * Rr.options.scale, Rr.ctx.shadowOffsetY = vo.offsetY.number * Rr.options.scale, Rr.ctx.shadowBlur = vo.blur.number, Rr.renderTextWithLetterSpacing(ga, fe.letterSpacing, Ln); + }), Rr.ctx.shadowColor = "", Rr.ctx.shadowOffsetX = 0, Rr.ctx.shadowOffsetY = 0, Rr.ctx.shadowBlur = 0), fe.textDecorationLine.length && (Rr.ctx.fillStyle = Ks(fe.textDecorationColor || fe.color), fe.textDecorationLine.forEach(function(vo) { + switch (vo) { + case 1: + Rr.ctx.fillRect(ga.bounds.left, Math.round(ga.bounds.top + Ln), ga.bounds.width, 1); + break; + case 2: + Rr.ctx.fillRect(ga.bounds.left, Math.round(ga.bounds.top), ga.bounds.width, 1); + break; + case 3: + Rr.ctx.fillRect(ga.bounds.left, Math.ceil(ga.bounds.top + On), ga.bounds.width, 1); + } + })); + break; + case 1: + fe.webkitTextStrokeWidth && ga.text.trim().length && (Rr.ctx.strokeStyle = Ks(fe.webkitTextStrokeColor), Rr.ctx.lineWidth = fe.webkitTextStrokeWidth, Rr.ctx.lineJoin = window.chrome ? "miter" : "round", Rr.ctx.strokeText(ga.text, ga.bounds.left, ga.bounds.top + Ln)), Rr.ctx.strokeStyle = "", Rr.ctx.lineWidth = 0, Rr.ctx.lineJoin = "miter"; + } + }); + }), [2]; + }); + }); + }, ne.prototype.renderReplacedElement = function(Ae, fe, Re) { + if (Re && Ae.intrinsicWidth > 0 && Ae.intrinsicHeight > 0) { + var rt = Kg(Ae), dt = I1(fe); + this.path(dt), this.ctx.save(), this.ctx.clip(), this.ctx.drawImage(Re, 0, 0, Ae.intrinsicWidth, Ae.intrinsicHeight, rt.left, rt.top, rt.width, rt.height), this.ctx.restore(); + } + }, ne.prototype.renderNodeContent = function(Ae) { + return g(this, void 0, void 0, function() { + var fe, Re, rt, dt, Gt, Nt, Ln, On, Or, Rr, Gi, ga, Co, Il, vo, fs, Jh, Tc; + return A(this, function(Ds) { + switch (Ds.label) { + case 0: + this.applyEffects(Ae.getEffects(4)), fe = Ae.container, Re = Ae.curves, rt = fe.styles, dt = 0, Gt = fe.textNodes, Ds.label = 1; + case 1: + return dt < Gt.length ? (Nt = Gt[dt], [4, this.renderTextNode(Nt, rt)]) : [3, 4]; + case 2: + Ds.sent(), Ds.label = 3; + case 3: + return dt++, [3, 1]; + case 4: + if (!(fe instanceof q3)) + return [3, 8]; + Ds.label = 5; + case 5: + return Ds.trys.push([5, 7, , 8]), [4, this.context.cache.match(fe.src)]; + case 6: + return vo = Ds.sent(), this.renderReplacedElement(fe, Re, vo), [3, 8]; + case 7: + return Ds.sent(), this.context.logger.error("Error loading image " + fe.src), [3, 8]; + case 8: + if (fe instanceof Qg && this.renderReplacedElement(fe, Re, fe.canvas), !(fe instanceof _b)) + return [3, 12]; + Ds.label = 9; + case 9: + return Ds.trys.push([9, 11, , 12]), [4, this.context.cache.match(fe.svg)]; + case 10: + return vo = Ds.sent(), this.renderReplacedElement(fe, Re, vo), [3, 12]; + case 11: + return Ds.sent(), this.context.logger.error("Error loading svg " + fe.svg.substring(0, 255)), [3, 12]; + case 12: + return fe instanceof J3 && fe.tree ? [4, new ne(this.context, { scale: this.options.scale, backgroundColor: fe.backgroundColor, x: 0, y: 0, width: fe.width, height: fe.height }).render(fe.tree)] : [3, 14]; + case 13: + Ln = Ds.sent(), fe.width && fe.height && this.ctx.drawImage(Ln, 0, 0, fe.width, fe.height, fe.bounds.left, fe.bounds.top, fe.bounds.width, fe.bounds.height), Ds.label = 14; + case 14: + if (fe instanceof Y3 && (On = Math.min(fe.bounds.width, fe.bounds.height), fe.type === K2 ? fe.checked && (this.ctx.save(), this.path([new _r(fe.bounds.left + 0.39363 * On, fe.bounds.top + 0.79 * On), new _r(fe.bounds.left + 0.16 * On, fe.bounds.top + 0.5549 * On), new _r(fe.bounds.left + 0.27347 * On, fe.bounds.top + 0.44071 * On), new _r(fe.bounds.left + 0.39694 * On, fe.bounds.top + 0.5649 * On), new _r(fe.bounds.left + 0.72983 * On, fe.bounds.top + 0.23 * On), new _r(fe.bounds.left + 0.84 * On, fe.bounds.top + 0.34085 * On), new _r(fe.bounds.left + 0.39363 * On, fe.bounds.top + 0.79 * On)]), this.ctx.fillStyle = Ks(H5), this.ctx.fill(), this.ctx.restore()) : fe.type === _m && fe.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(fe.bounds.left + On / 2, fe.bounds.top + On / 2, On / 4, 0, 2 * Math.PI, !0), this.ctx.fillStyle = Ks(H5), this.ctx.fill(), this.ctx.restore())), IL(fe) && fe.value.length) { + switch (Or = this.createFontStyle(rt), Jh = Or[0], Rr = Or[1], Gi = this.fontMetrics.getMetrics(Jh, Rr).baseline, this.ctx.font = Jh, this.ctx.fillStyle = Ks(rt.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = ix(fe.styles.textAlign), Tc = Kg(fe), ga = 0, fe.styles.textAlign) { + case 1: + ga += Tc.width / 2; + break; + case 2: + ga += Tc.width; + } + Co = Tc.add(ga, 0, 0, -Tc.height / 2 + 1), this.ctx.save(), this.path([new _r(Tc.left, Tc.top), new _r(Tc.left + Tc.width, Tc.top), new _r(Tc.left + Tc.width, Tc.top + Tc.height), new _r(Tc.left, Tc.top + Tc.height)]), this.ctx.clip(), this.renderTextWithLetterSpacing(new Pg(fe.value, Co), rt.letterSpacing, Gi), this.ctx.restore(), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = "left"; + } + if (!Nl(fe.styles.display, 2048)) + return [3, 20]; + if (fe.styles.listStyleImage === null) + return [3, 19]; + if ((Il = fe.styles.listStyleImage).type !== 0) + return [3, 18]; + vo = void 0, fs = Il.url, Ds.label = 15; + case 15: + return Ds.trys.push([15, 17, , 18]), [4, this.context.cache.match(fs)]; + case 16: + return vo = Ds.sent(), this.ctx.drawImage(vo, fe.bounds.left - (vo.width + 10), fe.bounds.top), [3, 18]; + case 17: + return Ds.sent(), this.context.logger.error("Error loading list-style-image " + fs), [3, 18]; + case 18: + return [3, 20]; + case 19: + Ae.listValue && fe.styles.listStyleType !== -1 && (Jh = this.createFontStyle(rt)[0], this.ctx.font = Jh, this.ctx.fillStyle = Ks(rt.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", Tc = new v(fe.bounds.left, fe.bounds.top + Fu(fe.styles.paddingTop, fe.bounds.width), fe.bounds.width, bb(rt.lineHeight, rt.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Pg(Ae.listValue, Tc), rt.letterSpacing, bb(rt.lineHeight, rt.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), Ds.label = 20; + case 20: + return [2]; + } + }); + }); + }, ne.prototype.renderStackContent = function(Ae) { + return g(this, void 0, void 0, function() { + var fe, Re, rt, dt, Gt, Nt, Ln, On, Or, Rr, Gi, ga, Co, Il, vo; + return A(this, function(fs) { + switch (fs.label) { + case 0: + return Nl(Ae.element.container.flags, 16), [4, this.renderNodeBackgroundAndBorders(Ae.element)]; + case 1: + fs.sent(), fe = 0, Re = Ae.negativeZIndex, fs.label = 2; + case 2: + return fe < Re.length ? (vo = Re[fe], [4, this.renderStack(vo)]) : [3, 5]; + case 3: + fs.sent(), fs.label = 4; + case 4: + return fe++, [3, 2]; + case 5: + return [4, this.renderNodeContent(Ae.element)]; + case 6: + fs.sent(), rt = 0, dt = Ae.nonInlineLevel, fs.label = 7; + case 7: + return rt < dt.length ? (vo = dt[rt], [4, this.renderNode(vo)]) : [3, 10]; + case 8: + fs.sent(), fs.label = 9; + case 9: + return rt++, [3, 7]; + case 10: + Gt = 0, Nt = Ae.nonPositionedFloats, fs.label = 11; + case 11: + return Gt < Nt.length ? (vo = Nt[Gt], [4, this.renderStack(vo)]) : [3, 14]; + case 12: + fs.sent(), fs.label = 13; + case 13: + return Gt++, [3, 11]; + case 14: + Ln = 0, On = Ae.nonPositionedInlineLevel, fs.label = 15; + case 15: + return Ln < On.length ? (vo = On[Ln], [4, this.renderStack(vo)]) : [3, 18]; + case 16: + fs.sent(), fs.label = 17; + case 17: + return Ln++, [3, 15]; + case 18: + Or = 0, Rr = Ae.inlineLevel, fs.label = 19; + case 19: + return Or < Rr.length ? (vo = Rr[Or], [4, this.renderNode(vo)]) : [3, 22]; + case 20: + fs.sent(), fs.label = 21; + case 21: + return Or++, [3, 19]; + case 22: + Gi = 0, ga = Ae.zeroOrAutoZIndexOrTransformedOrOpacity, fs.label = 23; + case 23: + return Gi < ga.length ? (vo = ga[Gi], [4, this.renderStack(vo)]) : [3, 26]; + case 24: + fs.sent(), fs.label = 25; + case 25: + return Gi++, [3, 23]; + case 26: + Co = 0, Il = Ae.positiveZIndex, fs.label = 27; + case 27: + return Co < Il.length ? (vo = Il[Co], [4, this.renderStack(vo)]) : [3, 30]; + case 28: + fs.sent(), fs.label = 29; + case 29: + return Co++, [3, 27]; + case 30: + return [2]; + } + }); + }); + }, ne.prototype.mask = function(Ae) { + this.ctx.beginPath(), this.ctx.moveTo(0, 0), this.ctx.lineTo(this.canvas.width, 0), this.ctx.lineTo(this.canvas.width, this.canvas.height), this.ctx.lineTo(0, this.canvas.height), this.ctx.lineTo(0, 0), this.formatPath(Ae.slice(0).reverse()), this.ctx.closePath(); + }, ne.prototype.path = function(Ae) { + this.ctx.beginPath(), this.formatPath(Ae), this.ctx.closePath(); + }, ne.prototype.formatPath = function(Ae) { + var fe = this; + Ae.forEach(function(Re, rt) { + var dt = zi(Re) ? Re.start : Re; + rt === 0 ? fe.ctx.moveTo(dt.x, dt.y) : fe.ctx.lineTo(dt.x, dt.y), zi(Re) && fe.ctx.bezierCurveTo(Re.startControl.x, Re.startControl.y, Re.endControl.x, Re.endControl.y, Re.end.x, Re.end.y); + }); + }, ne.prototype.renderRepeat = function(Ae, fe, Re, rt) { + this.path(Ae), this.ctx.fillStyle = fe, this.ctx.translate(Re, rt), this.ctx.fill(), this.ctx.translate(-Re, -rt); + }, ne.prototype.resizeImage = function(Ae, fe, Re) { + var rt; + if (Ae.width === fe && Ae.height === Re) + return Ae; + var dt = ((rt = this.canvas.ownerDocument) !== null && rt !== void 0 ? rt : document).createElement("canvas"); + return dt.width = Math.max(1, fe), dt.height = Math.max(1, Re), dt.getContext("2d").drawImage(Ae, 0, 0, Ae.width, Ae.height, 0, 0, fe, Re), dt; + }, ne.prototype.renderBackgroundImage = function(Ae) { + return g(this, void 0, void 0, function() { + var fe, Re, rt, dt, Gt, Nt; + return A(this, function(Ln) { + switch (Ln.label) { + case 0: + fe = Ae.styles.backgroundImage.length - 1, Re = function(On) { + var Or, Rr, Gi, ga, Co, Il, vo, fs, Jh, Tc, Ds, ts, Hl, Nu, xs, uA, Qp, Ml, Zh, vd, $p, Sm, FA, Xv, Up, r1, Fb, q2, Wv, Ob, n4; + return A(this, function(Y5) { + switch (Y5.label) { + case 0: + if (On.type !== 0) + return [3, 5]; + Or = void 0, Rr = On.url, Y5.label = 1; + case 1: + return Y5.trys.push([1, 3, , 4]), [4, rt.context.cache.match(Rr)]; + case 2: + return Or = Y5.sent(), [3, 4]; + case 3: + return Y5.sent(), rt.context.logger.error("Error loading background-image " + Rr), [3, 4]; + case 4: + return Or && (Gi = Ib(Ae, fe, [Or.width, Or.height, Or.width / Or.height]), uA = Gi[0], Sm = Gi[1], FA = Gi[2], Zh = Gi[3], vd = Gi[4], Nu = rt.ctx.createPattern(rt.resizeImage(Or, Zh, vd), "repeat"), rt.renderRepeat(uA, Nu, Sm, FA)), [3, 6]; + case 5: + S2(On) ? (ga = Ib(Ae, fe, [null, null, null]), uA = ga[0], Sm = ga[1], FA = ga[2], Zh = ga[3], vd = ga[4], Co = I3(On.angle, Zh, vd), Il = Co[0], vo = Co[1], fs = Co[2], Jh = Co[3], Tc = Co[4], (Ds = document.createElement("canvas")).width = Zh, Ds.height = vd, ts = Ds.getContext("2d"), Hl = ts.createLinearGradient(vo, Jh, fs, Tc), Jy(On.stops, Il).forEach(function(_w) { + return Hl.addColorStop(_w.stop, Ks(_w.color)); + }), ts.fillStyle = Hl, ts.fillRect(0, 0, Zh, vd), Zh > 0 && vd > 0 && (Nu = rt.ctx.createPattern(Ds, "repeat"), rt.renderRepeat(uA, Nu, Sm, FA))) : f0(On) && (xs = Ib(Ae, fe, [null, null, null]), uA = xs[0], Qp = xs[1], Ml = xs[2], Zh = xs[3], vd = xs[4], $p = On.position.length === 0 ? [Lg] : On.position, Sm = Fu($p[0], Zh), FA = Fu($p[$p.length - 1], vd), Xv = M3(On, Sm, FA, Zh, vd), Up = Xv[0], r1 = Xv[1], Up > 0 && r1 > 0 && (Fb = rt.ctx.createRadialGradient(Qp + Sm, Ml + FA, 0, Qp + Sm, Ml + FA, Up), Jy(On.stops, 2 * Up).forEach(function(_w) { + return Fb.addColorStop(_w.stop, Ks(_w.color)); + }), rt.path(uA), rt.ctx.fillStyle = Fb, Up !== r1 ? (q2 = Ae.bounds.left + 0.5 * Ae.bounds.width, Wv = Ae.bounds.top + 0.5 * Ae.bounds.height, n4 = 1 / (Ob = r1 / Up), rt.ctx.save(), rt.ctx.translate(q2, Wv), rt.ctx.transform(1, 0, 0, Ob, 0, 0), rt.ctx.translate(-q2, -Wv), rt.ctx.fillRect(Qp, n4 * (Ml - Wv) + Wv, Zh, vd * n4), rt.ctx.restore()) : rt.ctx.fill())), Y5.label = 6; + case 6: + return fe--, [2]; + } + }); + }, rt = this, dt = 0, Gt = Ae.styles.backgroundImage.slice(0).reverse(), Ln.label = 1; + case 1: + return dt < Gt.length ? (Nt = Gt[dt], [5, Re(Nt)]) : [3, 4]; + case 2: + Ln.sent(), Ln.label = 3; + case 3: + return dt++, [3, 1]; + case 4: + return [2]; + } + }); + }); + }, ne.prototype.renderSolidBorder = function(Ae, fe, Re) { + return g(this, void 0, void 0, function() { + return A(this, function(rt) { + return this.path(n1(Re, fe)), this.ctx.fillStyle = Ks(Ae), this.ctx.fill(), [2]; + }); + }); + }, ne.prototype.renderDoubleBorder = function(Ae, fe, Re, rt) { + return g(this, void 0, void 0, function() { + var dt, Gt; + return A(this, function(Nt) { + switch (Nt.label) { + case 0: + return fe < 3 ? [4, this.renderSolidBorder(Ae, Re, rt)] : [3, 2]; + case 1: + return Nt.sent(), [2]; + case 2: + return dt = V2(rt, Re), this.path(dt), this.ctx.fillStyle = Ks(Ae), this.ctx.fill(), Gt = p0(rt, Re), this.path(Gt), this.ctx.fill(), [2]; + } + }); + }); + }, ne.prototype.renderNodeBackgroundAndBorders = function(Ae) { + return g(this, void 0, void 0, function() { + var fe, Re, rt, dt, Gt, Nt, Ln, On, Or = this; + return A(this, function(Rr) { + switch (Rr.label) { + case 0: + return this.applyEffects(Ae.getEffects(2)), fe = Ae.container.styles, Re = !Od(fe.backgroundColor) || fe.backgroundImage.length, rt = [{ style: fe.borderTopStyle, color: fe.borderTopColor, width: fe.borderTopWidth }, { style: fe.borderRightStyle, color: fe.borderRightColor, width: fe.borderRightWidth }, { style: fe.borderBottomStyle, color: fe.borderBottomColor, width: fe.borderBottomWidth }, { style: fe.borderLeftStyle, color: fe.borderLeftColor, width: fe.borderLeftWidth }], dt = cA(t4(fe.backgroundClip, 0), Ae.curves), Re || fe.boxShadow.length ? (this.ctx.save(), this.path(dt), this.ctx.clip(), Od(fe.backgroundColor) || (this.ctx.fillStyle = Ks(fe.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(Ae.container)]) : [3, 2]; + case 1: + Rr.sent(), this.ctx.restore(), fe.boxShadow.slice(0).reverse().forEach(function(Gi) { + Or.ctx.save(); + var ga = Ll(Ae.curves), Co = Gi.inset ? 0 : Qd, Il = Yh(ga, -Co + (Gi.inset ? 1 : -1) * Gi.spread.number, (Gi.inset ? 1 : -1) * Gi.spread.number, Gi.spread.number * (Gi.inset ? -2 : 2), Gi.spread.number * (Gi.inset ? -2 : 2)); + Gi.inset ? (Or.path(ga), Or.ctx.clip(), Or.mask(Il)) : (Or.mask(ga), Or.ctx.clip(), Or.path(Il)), Or.ctx.shadowOffsetX = Gi.offsetX.number + Co, Or.ctx.shadowOffsetY = Gi.offsetY.number, Or.ctx.shadowColor = Ks(Gi.color), Or.ctx.shadowBlur = Gi.blur.number, Or.ctx.fillStyle = Gi.inset ? Ks(Gi.color) : "rgba(0,0,0,1)", Or.ctx.fill(), Or.ctx.restore(); + }), Rr.label = 2; + case 2: + Gt = 0, Nt = 0, Ln = rt, Rr.label = 3; + case 3: + return Nt < Ln.length ? (On = Ln[Nt]).style !== 0 && !Od(On.color) && On.width > 0 ? On.style !== 2 ? [3, 5] : [4, this.renderDashedDottedBorder(On.color, On.width, Gt, Ae.curves, 2)] : [3, 11] : [3, 13]; + case 4: + return Rr.sent(), [3, 11]; + case 5: + return On.style !== 3 ? [3, 7] : [4, this.renderDashedDottedBorder(On.color, On.width, Gt, Ae.curves, 3)]; + case 6: + return Rr.sent(), [3, 11]; + case 7: + return On.style !== 4 ? [3, 9] : [4, this.renderDoubleBorder(On.color, On.width, Gt, Ae.curves)]; + case 8: + return Rr.sent(), [3, 11]; + case 9: + return [4, this.renderSolidBorder(On.color, Gt, Ae.curves)]; + case 10: + Rr.sent(), Rr.label = 11; + case 11: + Gt++, Rr.label = 12; + case 12: + return Nt++, [3, 3]; + case 13: + return [2]; + } + }); + }); + }, ne.prototype.renderDashedDottedBorder = function(Ae, fe, Re, rt, dt) { + return g(this, void 0, void 0, function() { + var Gt, Nt, Ln, On, Or, Rr, Gi, ga, Co, Il, vo, fs, Jh, Tc, Ds, ts; + return A(this, function(Hl) { + return this.ctx.save(), Gt = Rp(rt, Re), Nt = n1(rt, Re), dt === 2 && (this.path(Nt), this.ctx.clip()), zi(Nt[0]) ? (Ln = Nt[0].start.x, On = Nt[0].start.y) : (Ln = Nt[0].x, On = Nt[0].y), zi(Nt[1]) ? (Or = Nt[1].end.x, Rr = Nt[1].end.y) : (Or = Nt[1].x, Rr = Nt[1].y), Gi = Math.abs(Re === 0 || Re === 2 ? Ln - Or : On - Rr), this.ctx.beginPath(), dt === 3 ? this.formatPath(Gt) : this.formatPath(Nt.slice(0, 2)), ga = fe < 3 ? 3 * fe : 2 * fe, Co = fe < 3 ? 2 * fe : fe, dt === 3 && (ga = fe, Co = fe), Il = !0, Gi <= 2 * ga ? Il = !1 : Gi <= 2 * ga + Co ? (ga *= vo = Gi / (2 * ga + Co), Co *= vo) : (fs = Math.floor((Gi + Co) / (ga + Co)), Jh = (Gi - fs * ga) / (fs - 1), Co = (Tc = (Gi - (fs + 1) * ga) / fs) <= 0 || Math.abs(Co - Jh) < Math.abs(Co - Tc) ? Jh : Tc), Il && (dt === 3 ? this.ctx.setLineDash([0, ga + Co]) : this.ctx.setLineDash([ga, Co])), dt === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = fe) : this.ctx.lineWidth = 2 * fe + 1.1, this.ctx.strokeStyle = Ks(Ae), this.ctx.stroke(), this.ctx.setLineDash([]), dt === 2 && (zi(Nt[0]) && (Ds = Nt[3], ts = Nt[0], this.ctx.beginPath(), this.formatPath([new _r(Ds.end.x, Ds.end.y), new _r(ts.start.x, ts.start.y)]), this.ctx.stroke()), zi(Nt[1]) && (Ds = Nt[1], ts = Nt[2], this.ctx.beginPath(), this.formatPath([new _r(Ds.end.x, Ds.end.y), new _r(ts.start.x, ts.start.y)]), this.ctx.stroke())), this.ctx.restore(), [2]; + }); + }); + }, ne.prototype.render = function(Ae) { + return g(this, void 0, void 0, function() { + var fe; + return A(this, function(Re) { + switch (Re.label) { + case 0: + return this.options.backgroundColor && (this.ctx.fillStyle = Ks(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), fe = Uo(Ae), [4, this.renderStack(fe)]; + case 1: + return Re.sent(), this.applyEffects([]), [2, this.canvas]; + } + }); + }); + }, ne; + }(p_), IL = function(ce) { + return ce instanceof qk || ce instanceof yw || ce instanceof Y3 && ce.type !== _m && ce.type !== K2; + }, cA = function(ce, ne) { + switch (ce) { + case 0: + return Ll(ne); + case 2: + return hu(ne); + default: + return I1(ne); + } + }, ix = function(ce) { + switch (ce) { + case 1: + return "center"; + case 2: + return "right"; + default: + return "left"; + } + }, RT = ["-apple-system", "system-ui"], Bm = function(ce) { + return /iPhone OS 15_(0|1)/.test(window.navigator.userAgent) ? ce.filter(function(ne) { + return RT.indexOf(ne) === -1; + }) : ce; + }, DC = function(ce) { + function ne(Ae, fe) { + var Re = ce.call(this, Ae, fe) || this; + return Re.canvas = fe.canvas ? fe.canvas : document.createElement("canvas"), Re.ctx = Re.canvas.getContext("2d"), Re.options = fe, Re.canvas.width = Math.floor(fe.width * fe.scale), Re.canvas.height = Math.floor(fe.height * fe.scale), Re.canvas.style.width = fe.width + "px", Re.canvas.style.height = fe.height + "px", Re.ctx.scale(Re.options.scale, Re.options.scale), Re.ctx.translate(-fe.x, -fe.y), Re.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (" + fe.width + "x" + fe.height + " at " + fe.x + "," + fe.y + ") with scale " + fe.scale), Re; + } + return l(ne, ce), ne.prototype.render = function(Ae) { + return g(this, void 0, void 0, function() { + var fe, Re; + return A(this, function(rt) { + switch (rt.label) { + case 0: + return fe = W3(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, Ae), [4, lA(fe)]; + case 1: + return Re = rt.sent(), this.options.backgroundColor && (this.ctx.fillStyle = Ks(this.options.backgroundColor), this.ctx.fillRect(0, 0, this.options.width * this.options.scale, this.options.height * this.options.scale)), this.ctx.drawImage(Re, -this.options.x * this.options.scale, -this.options.y * this.options.scale), [2, this.canvas]; + } + }); + }); + }, ne; + }(p_), lA = function(ce) { + return new Promise(function(ne, Ae) { + var fe = new Image(); + fe.onload = function() { + ne(fe); + }, fe.onerror = Ae, fe.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(ce)); + }); + }, NC = function() { + function ce(ne) { + var Ae = ne.id, fe = ne.enabled; + this.id = Ae, this.enabled = fe, this.start = Date.now(); + } + return ce.prototype.debug = function() { + for (var ne = [], Ae = 0; Ae < arguments.length; Ae++) + ne[Ae] = arguments[Ae]; + this.enabled && (typeof window < "u" && window.console && typeof console.debug == "function" ? console.debug.apply(console, b([this.id, this.getTime() + "ms"], ne)) : this.info.apply(this, ne)); + }, ce.prototype.getTime = function() { + return Date.now() - this.start; + }, ce.prototype.info = function() { + for (var ne = [], Ae = 0; Ae < arguments.length; Ae++) + ne[Ae] = arguments[Ae]; + this.enabled && typeof window < "u" && window.console && typeof console.info == "function" && console.info.apply(console, b([this.id, this.getTime() + "ms"], ne)); + }, ce.prototype.warn = function() { + for (var ne = [], Ae = 0; Ae < arguments.length; Ae++) + ne[Ae] = arguments[Ae]; + this.enabled && (typeof window < "u" && window.console && typeof console.warn == "function" ? console.warn.apply(console, b([this.id, this.getTime() + "ms"], ne)) : this.info.apply(this, ne)); + }, ce.prototype.error = function() { + for (var ne = [], Ae = 0; Ae < arguments.length; Ae++) + ne[Ae] = arguments[Ae]; + this.enabled && (typeof window < "u" && window.console && typeof console.error == "function" ? console.error.apply(console, b([this.id, this.getTime() + "ms"], ne)) : this.info.apply(this, ne)); + }, ce.instances = {}, ce; + }(), m_ = function() { + function ce(ne, Ae) { + var fe; + this.windowBounds = Ae, this.instanceName = "#" + ce.instanceCount++, this.logger = new NC({ id: this.instanceName, enabled: ne.logging }), this.cache = (fe = ne.cache) !== null && fe !== void 0 ? fe : new nt(this, ne); + } + return ce.instanceCount = 1, ce; + }(), q5 = function(ce, ne) { + return ne === void 0 && (ne = {}), b_(ce, ne); + }; + typeof window < "u" && ze.setContext(window); + var b_ = function(ce, ne) { + return g(void 0, void 0, void 0, function() { + var Ae, fe, Re, rt, dt, Gt, Nt, Ln, On, Or, Rr, Gi, ga, Co, Il, vo, fs, Jh, Tc, Ds, ts, Hl, Nu, xs, uA, Qp, Ml, Zh, vd, $p, Sm, FA, Xv, Up, r1, Fb, q2, Wv; + return A(this, function(Ob) { + switch (Ob.label) { + case 0: + if (!ce || typeof ce != "object") + return [2, Promise.reject("Invalid element provided as first argument")]; + if (!(Ae = ce.ownerDocument)) + throw new Error("Element is not attached to a Document"); + if (!(fe = Ae.defaultView)) + throw new Error("Document is not attached to a Window"); + return Re = { allowTaint: (Hl = ne.allowTaint) !== null && Hl !== void 0 && Hl, imageTimeout: (Nu = ne.imageTimeout) !== null && Nu !== void 0 ? Nu : 15e3, proxy: ne.proxy, useCORS: (xs = ne.useCORS) !== null && xs !== void 0 && xs }, rt = f({ logging: (uA = ne.logging) === null || uA === void 0 || uA, cache: ne.cache }, Re), dt = { windowWidth: (Qp = ne.windowWidth) !== null && Qp !== void 0 ? Qp : fe.innerWidth, windowHeight: (Ml = ne.windowHeight) !== null && Ml !== void 0 ? Ml : fe.innerHeight, scrollX: (Zh = ne.scrollX) !== null && Zh !== void 0 ? Zh : fe.pageXOffset, scrollY: (vd = ne.scrollY) !== null && vd !== void 0 ? vd : fe.pageYOffset }, Gt = new v(dt.scrollX, dt.scrollY, dt.windowWidth, dt.windowHeight), Nt = new m_(rt, Gt), Ln = ($p = ne.foreignObjectRendering) !== null && $p !== void 0 && $p, On = { allowTaint: (Sm = ne.allowTaint) !== null && Sm !== void 0 && Sm, onclone: ne.onclone, ignoreElements: ne.ignoreElements, inlineImages: Ln, copyStyles: Ln }, Nt.logger.debug("Starting document clone with size " + Gt.width + "x" + Gt.height + " scrolled to " + -Gt.left + "," + -Gt.top), Or = new Du(Nt, ce, On), (Rr = Or.clonedReferenceElement) ? [4, Or.toIFrame(Ae, Gt)] : [2, Promise.reject("Unable to find element in cloned iframe")]; + case 1: + return Gi = Ob.sent(), ga = z5(Rr) || MC(Rr) ? _(Rr.ownerDocument) : k(Nt, Rr), Co = ga.width, Il = ga.height, vo = ga.left, fs = ga.top, Jh = ML(Nt, Rr, ne.backgroundColor), Tc = { canvas: ne.canvas, backgroundColor: Jh, scale: (Xv = (FA = ne.scale) !== null && FA !== void 0 ? FA : fe.devicePixelRatio) !== null && Xv !== void 0 ? Xv : 1, x: ((Up = ne.x) !== null && Up !== void 0 ? Up : 0) + vo, y: ((r1 = ne.y) !== null && r1 !== void 0 ? r1 : 0) + fs, width: (Fb = ne.width) !== null && Fb !== void 0 ? Fb : Math.ceil(Co), height: (q2 = ne.height) !== null && q2 !== void 0 ? q2 : Math.ceil(Il) }, Ln ? (Nt.logger.debug("Document cloned, using foreign object rendering"), [4, new DC(Nt, Tc).render(Rr)]) : [3, 3]; + case 2: + return Ds = Ob.sent(), [3, 5]; + case 3: + return Nt.logger.debug("Document cloned, element located at " + vo + "," + fs + " with size " + Co + "x" + Il + " using computed rendering"), Nt.logger.debug("Starting DOM parsing"), ts = Vh(Nt, Rr), Jh === ts.styles.backgroundColor && (ts.styles.backgroundColor = BA.TRANSPARENT), Nt.logger.debug("Starting renderer for element at " + Tc.x + "," + Tc.y + " with size " + Tc.width + "x" + Tc.height), [4, new OC(Nt, Tc).render(ts)]; + case 4: + Ds = Ob.sent(), Ob.label = 5; + case 5: + return ((Wv = ne.removeContainer) === null || Wv === void 0 || Wv) && (Du.destroy(Gi) || Nt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), Nt.logger.debug("Finished rendering"), [2, Ds]; + } + }); + }); + }, ML = function(ce, ne, Ae) { + var fe = ne.ownerDocument, Re = fe.documentElement ? B1(ce, getComputedStyle(fe.documentElement).backgroundColor) : BA.TRANSPARENT, rt = fe.body ? B1(ce, getComputedStyle(fe.body).backgroundColor) : BA.TRANSPARENT, dt = typeof Ae == "string" ? B1(ce, Ae) : Ae === null ? BA.TRANSPARENT : 4294967295; + return ne === fe.documentElement ? Od(Re) ? Od(rt) ? dt : rt : Re : dt; + }; + return q5; + }(); +}), QEt = function(r, i) { + var o = r.cloneNode(!0); + o.className = o.className.replace("cherry-previewer--hidden", ""), o.style.width = "100%"; + var l = o.querySelectorAll("mjx-assistive-mml"); + no(l).call(l, function(b) { + b instanceof HTMLElement && b.style.setProperty("visibility", "hidden"); + }); + var f = document.createElement("div"); + f.appendChild(o); + var g = function() { + var b, v = []; + return no(b = Su(document.body.children)).call(b, function(k, _) { + v[_] = k.style.display, k.style.display = "none"; + }), v; + }(); + document.body.appendChild(f); + var A = document.body.style.overflow; + document.body.style.overflow = "visible", i(o, function() { + f.remove(), function() { + var b, v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; + no(b = Su(document.body.children)).call(b, function(k, _) { + v[_] !== void 0 && (k.style.display = v[_]); + }); + }(g), document.body.style.overflow = A; + }); +}; +function abn(r, i) { + QEt(r, function(o, l) { + window.scrollTo(0, 0), ibn(o, { allowTaint: !0, height: o.clientHeight, width: o.clientWidth, scrollY: 0, scrollX: 0 }).then(function(f) { + (function(g, A) { + var b = document.createElement("a"); + b.style.display = "none", b.href = g, b.download = "".concat(A, ".png"), document.body.appendChild(b), b.click(), document.body.removeChild(b); + })(f.toDataURL("image/jpeg"), i), l(); + }); + }); +} +var obn = _ie.f, sbn = Do(obn), cbn = Do([].push), d6t = function(r) { + return function(i) { + for (var o, l = v5(i), f = pL(l), g = f.length, A = 0, b = []; g > A; ) + o = f[A++], of && !sbn(l, o) || cbn(b, r ? [o, l[o]] : l[o]); + return b; + }; +}, $Et = { entries: d6t(!0), values: d6t(!1) }, lbn = $Et.values; +qa({ target: "Object", stat: !0 }, { values: function(r) { + return lbn(r); +} }); +var Kz = ql.Object.values, ubn = $Et.entries; +qa({ target: "Object", stat: !0 }, { entries: function(r) { + return ubn(r); +} }); +var tie = ql.Object.entries, hbn = { mouseResize: {}, getImgPosition: function() { + var r = this.img.getBoundingClientRect(), i = this.previewerDom.parentNode.getBoundingClientRect(), o = g2(this.img.style.padding) || 0; + return { bottom: r.bottom - i.bottom, top: r.top - i.top + 1.5 * o, height: r.height, width: r.width, right: r.right - i.right, left: r.left - i.left + 1.5 * o, x: r.x - i.x, y: r.y - i.y }; +}, initBubbleButtons: function() { + var r = this.getImgPosition(); + return { points: { arr: ["leftTop", "leftBottom", "rightTop", "rightBottom", "leftMiddle", "middleBottom", "middleTop", "rightMiddle"], arrInfo: { leftTop: { name: "20", left: 0, top: 0 }, leftBottom: { name: "00", left: 0, top: 0 }, rightTop: { name: "22", left: 0, top: 0 }, rightBottom: { name: "02", left: 0, top: 0 }, leftMiddle: { name: "10", left: 0, top: 0 }, middleBottom: { name: "01", left: 0, top: 0 }, middleTop: { name: "21", left: 0, top: 0 }, rightMiddle: { name: "12", left: 0, top: 0 } } }, imgSrc: this.img.src, style: { width: this.img.width, height: this.img.height, left: r.left - 1, top: r.top - 1, marginTop: 0, marginLeft: 0 }, scrollTop: this.previewerDom.scrollTop, position: r }; +}, showBubble: function(r, i, o) { + this.$isResizing() || (this.img = r, this.previewerDom = o, this.container = i, this.buts = this.initBubbleButtons(), this.drawBubbleButs()); +}, emit: function(r) { + var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + switch (r) { + case "mousedown": + return this.resizeBegin(i); + case "mouseup": + return this.resizeStop(i); + case "mousemove": + return this.resizeWorking(i); + case "scroll": + return this.dealScroll(i); + case "remove": + return this.remove(); + case "previewUpdate": + return this.previewUpdate(i); + } +}, previewUpdate: function(r) { + this.$isResizing() || (this.remove(), r()); +}, drawBubbleButs: function() { + var r, i = this; + return this.butsLayout || (this.butsLayout = this.container, this.butsImg = document.createElement("div"), this.butsImg.className = "cherry-previewer-img-size-handler__background", this.butsImg.style.backgroundImage = "url(".concat(this.buts.imgSrc, ")"), this.butsLayout.appendChild(this.butsImg), this.butsPoints = {}, no(r = yh(this.buts.points.arr)).call(r, function(o) { + var l = i.buts.points.arr[o], f = document.createElement("div"); + f.className = ["cherry-previewer-img-size-handler__points", "cherry-previewer-img-size-handler__points-".concat(l)].join(" "), f.dataset.name = l, i.butsLayout.appendChild(f), i.butsPoints["pints-".concat(l)] = f; + })), this.updateBubbleButs(); +}, remove: function() { + this.butsLayout = !1; +}, updateBubbleButs: function() { + var r, i, o = this; + this.$updatePointsInfo(), no(r = yh(this.buts.style)).call(r, function(l) { + o.butsLayout.style[l] = "".concat(o.buts.style[l], "px"); + }), no(i = yh(this.buts.points.arr)).call(i, function(l) { + var f = o.buts.points.arr[l]; + o.butsPoints["pints-".concat(f)].style.top = "".concat(o.buts.points.arrInfo[f].top, "px"), o.butsPoints["pints-".concat(f)].style.left = "".concat(o.buts.points.arrInfo[f].left, "px"); + }); +}, $updatePointsInfo: function() { + var r, i = this, o = this.buts.style.width, l = this.buts.style.height, f = this.$getPointsInfo(o, l); + no(r = yh(this.buts.points.arr)).call(r, function(g) { + var A = i.buts.points.arr[g]; + i.buts.points.arrInfo[A].left !== f[A].left && (i.buts.points.arrInfo[A].left = f[A].left), i.buts.points.arrInfo[A].top !== f[A].top && (i.buts.points.arrInfo[A].top = f[A].top); + }); +}, $getPointsInfo: function(r, i) { + return { leftTop: { left: 0, top: 0 }, leftBottom: { left: 0, top: i }, rightTop: { left: r, top: 0 }, rightBottom: { left: r, top: i }, leftMiddle: { left: 0, top: i / 2 }, middleBottom: { left: r / 2, top: i }, middleTop: { left: r / 2, top: 0 }, rightMiddle: { left: r, top: i / 2 } }; +}, $isResizing: function() { + return this.mouseResize.resize; +}, dealScroll: function(r) { + var i = this.getImgPosition(); + this.butsLayout.style.marginTop !== i.top - this.buts.position.top && (this.butsLayout.style.marginTop = "".concat(i.top - this.buts.position.top, "px"), this.buts.style.marginTop = "".concat(i.top - this.buts.position.top, "px")), this.butsLayout.style.marginLeft !== i.left - this.buts.position.left && (this.butsLayout.style.marginLeft = "".concat(i.left - this.buts.position.left, "px"), this.buts.style.marginLeft = "".concat(i.left - this.buts.position.left, "px")); +}, initMouse: function() { + return { left: 0, top: 0, resize: !1, name: "" }; +}, resizeBegin: function(r) { + var i = r.target; + if (!i.classList.contains("cherry-previewer-img-size-handler__points")) + return !1; + this.mouseResize.left = r.clientX, this.mouseResize.top = r.clientY, this.mouseResize.resize = !0, this.mouseResize.name = i.getAttribute("data-name"), this.previewerDom.classList.add("doing-resize-img"); +}, resizeStop: function(r, i, o, l) { + if (!this.$isResizing()) + return !1; + this.img.style.width = "".concat(this.buts.style.width, "px"), this.img.style.height = "".concat(this.buts.style.height, "px"), this.buts.style.marginTop = 0, this.buts.style.marginLeft = 0, this.updateBubbleButs(), this.mouseResize.resize = !1, this.previewerDom.classList.remove("doing-resize-img"), this.change(); +}, resizeWorking: function(r, i) { + if (this.$isResizing()) { + var o = r.clientX - this.mouseResize.left, l = r.clientY - this.mouseResize.top, f = {}; + switch (this.mouseResize.name) { + case "leftTop": + case "leftBottom": + case "leftMiddle": + f = this.$getChange(o, l, "x"), this.buts.style.width = this.buts.position.width - f.changeX, this.mouseResize.name !== "leftMiddle" && (this.buts.style.height = this.buts.position.height - f.changeY); + break; + case "rightTop": + case "rightBottom": + case "rightMiddle": + f = this.$getChange(o, l, "x"), this.buts.style.width = this.buts.position.width + f.changeX, this.mouseResize.name !== "rightMiddle" && (this.buts.style.height = this.buts.position.height + f.changeY); + break; + case "middleTop": + f = this.$getChange(o, l, "y"), this.buts.style.height = this.buts.position.height - f.changeY; + break; + case "middleBottom": + f = this.$getChange(o, l, "y"), this.buts.style.height = this.buts.position.height + f.changeY; + } + this.updateBubbleButs(), this.change(); + } +}, change: function() { + this.emitChange(this.img, { width: this.buts.style.width, height: this.buts.style.height }); +}, bindChange: function(r) { + this.emitChange = r; +}, $getChange: function(r, i, o) { + var l = { changeX: 0, changeY: 0 }; + return o === "y" ? (l.changeY = i, l.changeX = i * this.buts.position.width / this.buts.position.height) : (l.changeX = r, l.changeY = r * this.buts.position.height / this.buts.position.width), l; +} }, mFe = hbn, fbn = LL.every, dbn = uX("every"); +qa({ target: "Array", proto: !0, forced: !dbn }, { every: function(r) { + return fbn(this, r, arguments.length > 1 ? arguments[1] : void 0); +} }); +var Abn = a0("Array").every, bFe = Array.prototype, yG = function(r) { + var i = r.every; + return r === bFe || E1(bFe, r) && i === bFe.every ? Abn : i; +}, gbn = Qi.TypeError, UEt = function(r, i, o, l, f, g, A, b) { + for (var v, k, _ = f, T = 0, L = !!A && hm(A, b); T < l; ) { + if (T in o) { + if (v = L ? L(o[T], T, i) : o[T], g > 0 && kL(v)) + k = Ck(v), _ = UEt(r, i, v, k, _, g - 1) - 1; + else { + if (_ >= 9007199254740991) + throw gbn("Exceed the acceptable array length"); + r[_] = v; + } + _++; + } + T++; + } + return _; +}, pbn = UEt; +qa({ target: "Array", proto: !0 }, { flat: function() { + var r = arguments.length ? arguments[0] : void 0, i = y5(this), o = Ck(i), l = Dbe(i, 0); + return l.length = pbn(l, i, i, o, 0, r === void 0 ? 1 : cX(r)), l; +} }); +var mbn = a0("Array").flat, vFe = Array.prototype, bbn = function(r) { + var i = r.flat; + return r === vFe || E1(vFe, r) && i === vFe.flat ? mbn : i; +}, vbn = function() { + function r(i, o, l, f, g, A) { + vi(this, r), Ui(this, "tableEditor", { info: {}, tableCodes: [], editorDom: {} }), this.trigger = i, this.target = o, this.previewerDom = f, this.container = l, this.codeMirror = g, this.$initReg(), this.$findTableInEditor(), this.tableElement = A; + } + return yi(r, [{ key: "emit", value: function(i) { + var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() { + }; + switch (i) { + case "keyup": + return this.trigger === "click" && this.$onInputChange(o); + case "remove": + return this.$remove(); + case "scroll": + case "previewUpdate": + return this.$refreshPosition(); + case "mousedown": + return; + case "mouseup": + return this.trigger === "click" && this.$tryRemoveMe(o, l); + } + } }, { key: "$tryRemoveMe", value: function(i, o) { + /textarea/i.test(i.target.tagName) || (this.$remove(), o()); + } }, { key: "$getPosition", value: function() { + var i = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.tableEditor.info.tdNode).getBoundingClientRect(), o = this.previewerDom.parentNode.getBoundingClientRect(); + return { top: i.top - o.top, height: i.height, width: i.width, left: i.left - o.left, maxHeight: o.height }; + } }, { key: "setStyle", value: function(i, o, l) { + i.getBoundingClientRect()[o] !== l && (i.style[o] = l); + } }, { key: "$setInputOffset", value: function() { + var i = this.$getPosition(), o = this.tableEditor.editorDom.inputDiv; + this.setStyle(o, "width", "".concat(i.width, "px")), this.setStyle(o, "height", "".concat(i.height, "px")), this.setStyle(o, "top", "".concat(i.top, "px")), this.setStyle(o, "left", "".concat(i.left, "px")); + var l = i.top >= 0 && i.top + i.height <= i.maxHeight; + this.setStyle(o, "display", l ? "" : "none"); + } }, { key: "$setSymbolOffset", value: function() { + var i, o = this, l = this.tableEditor.editorDom.symbolContainer, f = this.tableEditor.info, g = f.tableNode, A = f.trNode, b = f.isTHead, v = this.$getPosition(g), k = this.$getPosition(A), _ = this.$getPosition(), T = this.previewerDom.getBoundingClientRect(); + this.setStyle(this.container, "width", "".concat(v.width, "px")), this.setStyle(this.container, "height", "".concat(v.height, "px")), this.setStyle(this.container, "top", "".concat(v.top, "px")), this.setStyle(this.container, "left", "".concat(v.left, "px")), no(i = l.childNodes).call(i, function(L) { + var F, U = L.dataset, q = U.index, Z = U.type, R = U.dir, J = 20, he = 7; + o.setStyle(L, { Row: ["left", "right"], Col: ["top", "bottom"] }[R][q], "-".concat(J, "px")), o.setStyle(L, "display", ""); + var Y = { LastRow: function() { + return o.setStyle(L, "top", "".concat(k.top - v.top - he, "px")); + }, NextRow: function() { + return o.setStyle(L, "top", "".concat(k.top - v.top + k.height - he, "px")); + }, LastCol: function() { + return o.setStyle(L, "left", "".concat(_.left - v.left - he, "px")); + }, NextCol: function() { + return o.setStyle(L, "left", "".concat(_.left - v.left + _.width - he, "px")); + } }, ue = At(F = "".concat(Z)).call(F, R); + Y[ue](), o.setStyle(L, "display", function(le) { + var be, ke = le.getBoundingClientRect(), de = { top: [T.top, T.top + T.height - ke.height], left: [T.left, T.left + T.width - ke.width] }; + return yG(be = tie(de)).call(be, function(Te) { + var xe = vh(Te, 2), ie = xe[0], Be = vh(xe[1], 2), te = Be[0], Me = Be[1]; + return ke[ie] >= te && ke[ie] <= Me; + }); + }(L) ? "" : "none"), b && ue === "LastRow" && o.setStyle(L, "display", "none"); + }); + } }, { key: "$refreshPosition", value: function() { + this.trigger !== "click" ? this.$setSymbolOffset() : this.$setInputOffset(); + } }, { key: "$remove", value: function() { + this.tableEditor = { info: {}, tableCodes: [], editorDom: {} }; + } }, { key: "$collectTableCode", value: function() { + var i = []; + this.codeMirror.getValue().replace(this.codeBlockReg, function(o) { + return o.replace(/\|/g, "."); + }).replace(this.tableReg, function(o) { + var l, f = o.replace(/^\n*/, ""), g = ((l = (arguments.length <= 1 ? 0 : arguments.length - 1) - 2 + 1) < 1 || arguments.length <= l ? void 0 : arguments[l]) + o.match(/^\n*/)[0].length; + i.push({ code: f, offset: g }); + }), this.tableEditor.tableCodes = i; + } }, { key: "$collectTableDom", value: function() { + var i, o, l, f = Su(this.previewerDom.querySelectorAll("table.cherry-table")), g = this.$getClosestNode(this.target, "TABLE"); + if (g === !1) + return !1; + var A = dd(i = Su(this.target.parentElement.childNodes)).call(i, function(b) { + return b.tagName.toLowerCase() === "td"; + }).length; + this.tableEditor.info = { tableNode: g, tdNode: this.target, trNode: this.target.parentElement, tdIndex: Lu(o = Su(this.target.parentElement.childNodes)).call(o, this.target), trIndex: Lu(l = Su(this.target.parentElement.parentElement.childNodes)).call(l, this.target.parentElement), isTHead: this.target.parentElement.parentElement.tagName !== "TBODY", totalTables: f.length, tableIndex: Lu(f).call(f, g), tableText: g.textContent.replace(/[\s]/g, ""), columns: A }; + } }, { key: "$setSelection", value: function(i) { + var o, l, f, g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "table", A = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], b = this.tableEditor.tableCodes[i], v = this.codeMirror.getValue(), k = this.tableEditor.info, _ = (o = (l = Da(v).call(v, 0, b.offset).match(/\n/g)) === null || l === void 0 ? void 0 : l.length) !== null && o !== void 0 ? o : 0, T = this.$getTdOffset(b.code, k.isTHead, k.trIndex, k.tdIndex), L = T.preLine, F = T.preCh, U = T.plusCh, q = T.currentTd; + if (g === "table") { + var Z = _ + b.code.match(/\n/g).length, R = b.code.match(/[^\n]+\n*$/)[0].length; + this.tableEditor.info.selection = [{ line: _, ch: 0 }, { line: Z, ch: R }]; + } else + this.tableEditor.info.selection = [{ line: _ + L, ch: F }, { line: _ + L, ch: F + U }]; + A && (f = this.codeMirror).setSelection.apply(f, BO(this.tableEditor.info.selection)), this.tableEditor.info.code = q; + } }, { key: "$getTdOffset", value: function(i, o, l, f) { + for (var g = o ? 0 : l + 2, A = i.split(/\n/)[g].split(/\|/), b = /^\s*$/.test(A[0]), v = b ? f + 1 : f, k = A[v], _ = [], T = 0; T < v; T++) + _.push(A[T]); + return { preLine: g, preCh: b ? _.join("|").length + 1 : _.join("|").length, plusCh: k.length, currentTd: k }; + } }, { key: "$findTableInEditor", value: function() { + if (this.$collectTableDom(), this.$collectTableCode(), this.tableEditor.info.totalTables !== this.tableEditor.tableCodes.length) + return !1; + this.$setSelection(this.tableEditor.info.tableIndex, "td", this.trigger === "click"); + } }, { key: "$initReg", value: function() { + this.tableReg = this.tableReg ? this.tableReg : jbe(!0), this.codeBlockReg = this.codeBlockReg ? this.codeBlockReg : Kbe().reg; + } }, { key: "showBubble", value: function() { + this.trigger !== "click" ? this.$drawSymbol() : this.$drawEditor(); + } }, { key: "$isEditing", value: function() { + return this.tableEditor.editing; + } }, { key: "$drawEditor", value: function() { + var i = document.createElement("div"); + i.className = "cherry-previewer-table-content-handler__input"; + var o = document.createElement("textarea"); + i.appendChild(o), this.tableEditor.editorDom.inputDiv = i, this.tableEditor.editorDom.inputDom = o, this.$updateEditorPosition(), this.container.appendChild(this.tableEditor.editorDom.inputDiv), this.tableEditor.editorDom.inputDom.value = this.tableEditor.info.code.replace(/
    /g, ` +`), this.tableEditor.editorDom.inputDom.focus(); + } }, { key: "$onInputChange", value: function(i) { + i.target.tagName === "TEXTAREA" && this.codeMirror.replaceSelection(i.target.value.replace(/\n/g, "
    "), "around"); + } }, { key: "$updateEditorPosition", value: function() { + this.$setInputOffset(); + var i = getComputedStyle(this.tableEditor.info.tdNode); + this.tableEditor.editorDom.inputDom.style.textAlign = i.textAlign || "left", this.tableEditor.editorDom.inputDom.style.fontSize = i.fontSize || "16px", this.tableEditor.editorDom.inputDom.style.fontFamily = i.fontFamily, this.tableEditor.editorDom.inputDom.style.lineHeight = i.lineHeight, this.tableEditor.editorDom.inputDom.style.padding = i.padding, /left/.test(i.textAlign) && (this.tableEditor.editorDom.inputDom.style.paddingRight = "0px"), /right/.test(i.textAlign) && (this.tableEditor.editorDom.inputDom.style.paddingLeft = "0px"), /center/.test(i.textAlign) && (this.tableEditor.editorDom.inputDom.style.paddingLeft = "0px", this.tableEditor.editorDom.inputDom.style.paddingRight = "0px"), this.tableEditor.editorDom.inputDom.style.paddingBottom = "0px"; + } }, { key: "$getClosestNode", value: function(i, o) { + return i.tagName === o ? i : i.parentNode.tagName !== "BODY" && this.$getClosestNode(i.parentNode, o); + } }, { key: "$drawSymbol", value: function() { + var i, o = this, l = ["Last", "Next"], f = ["Row", "Col"], g = { Row: "行", Col: "列" }, A = bbn(i = Zs(f).call(f, function(v, k) { + return Zs(l).call(l, function(_) { + return Zs(f).call(f, function(T) { + return ["".concat(k), _, T]; + }); + }); + })).call(i, 2), b = document.createElement("ul"); + b.className = "cherry-previewer-table-hover-handler-container", no(A).call(A, function(v) { + var k = vh(v, 3), _ = k[0], T = k[1], L = k[2], F = document.createElement("li"); + F.setAttribute("data-index", _), F.setAttribute("data-type", T), F.setAttribute("data-dir", L), F.className = "cherry-previewer-table-hover-handler__symbol", F.title = "添加".concat(g[L]), F.innerHTML = "+", F.addEventListener("click", function(U) { + var q, Z = U.target; + if (Z instanceof HTMLElement) { + var R = Z.dataset, J = R.type, he = R.dir; + o[At(q = "$add".concat(J)).call(q, he)](); + } + }), b.appendChild(F); + }, !0), this.tableEditor.editorDom.symbolContainer = b, this.container.appendChild(this.tableEditor.editorDom.symbolContainer), this.$setSymbolOffset(); + } }, { key: "$addLastRow", value: function() { + var i = vh(this.tableEditor.info.selection, 1)[0].line, o = "".concat(fd("|").call("|", this.tableEditor.info.columns), ` +`); + this.codeMirror.replaceRange(o, { line: i, ch: 0 }), this.$findTableInEditor(), this.$setSelection(this.tableEditor.info.tableIndex, "td"); + } }, { key: "$addNextRow", value: function() { + var i = vh(this.tableEditor.info.selection, 2)[1].line, o = "".concat(fd("|").call("|", this.tableEditor.info.columns), ` +`); + this.codeMirror.replaceRange(o, { line: i + 1, ch: 0 }), this.$findTableInEditor(), this.$setSelection(this.tableEditor.info.tableIndex, "td"); + } }, { key: "$addLastCol", value: function() { + var i = this; + this.$setSelection(this.tableEditor.info.tableIndex, "table"); + var o = this.codeMirror.getSelection().split(` +`), l = Zs(o).call(o, function(g, A) { + var b = g.split("|"), v = A === 1 ? ":-:" : ""; + return gk(b).call(b, i.tableEditor.info.tdIndex + 1, 0, v), b.join("|"); + }), f = l.join(` +`); + this.codeMirror.replaceSelection(f), this.$findTableInEditor(), this.$setSelection(this.tableEditor.info.tableIndex, "table"); + } }, { key: "$addNextCol", value: function() { + var i = this; + this.$setSelection(this.tableEditor.info.tableIndex, "table"); + var o = this.codeMirror.getSelection().split(` +`), l = Zs(o).call(o, function(g, A) { + var b = g.split("|"), v = A === 1 ? ":-:" : ""; + return gk(b).call(b, i.tableEditor.info.tdIndex + 2, 0, v), b.join("|"); + }), f = l.join(` +`); + this.codeMirror.replaceSelection(f), this.$findTableInEditor(), this.$setSelection(this.tableEditor.info.tableIndex, "table"); + } }, { key: "$drawDrag", value: function() { + var i = this.tableEditor.info.isTHead; + this.$setSelection(this.tableEditor.info.tableIndex, "table"), i ? this.$dragCol() : this.$dragLine(); + } }, { key: "$dragCol", value: function() { + var i = this.tableEditor.info.tdIndex, o = this.target.parentElement, l = this.codeMirror.getSelection().split(/\n/), f = this.tableEditor.info.tdNode, g = this; + f.setAttribute("draggable", !0), o.addEventListener("dragleave", function(A) { + g.setStyle(A.target, "border", "1px solid #dfe6ee"); + }), o.addEventListener("dragover", function(A) { + var b; + A.preventDefault(); + var v = Lu(b = Su(A.target.parentElement.childNodes)).call(b, A.target); + g.$dragSymbol(A.target, i, v); + }), o.addEventListener("drop", function(A) { + var b; + A.preventDefault(); + var v = Lu(b = Su(A.target.parentElement.childNodes)).call(b, A.target), k = Zs(l).call(l, function(T, L) { + var F, U = dd(F = T.split("|")).call(F, function(q, Z) { + return q !== ""; + }); + return "|".concat(g.$operateLines(i, v, U).join("|"), "|"); + }), _ = k.join(` +`); + g.codeMirror.replaceSelection(_), g.setStyle(A.target, "border", "1px solid #dfe6ee"), g.$findTableInEditor(), g.$setSelection(g.tableEditor.info.tableIndex, "table"); + }); + } }, { key: "$dragLine", value: function() { + var i = this.tableEditor.info.trNode; + i.setAttribute("draggable", !0), this.$setSelection(this.tableEditor.info.tableIndex, "table"); + var o = this.tableEditor.info.trIndex + 2, l = i.parentElement, f = this.codeMirror.getSelection().split(/\n/), g = this; + l.addEventListener("dragleave", function(A) { + g.setStyle(A.target.parentElement, "border", "1px solid #dfe6ee"); + }), l.addEventListener("dragover", function(A) { + var b; + A.preventDefault(); + var v = Lu(b = Su(A.target.parentElement.parentElement.childNodes)).call(b, A.target.parentElement) + 2; + g.$dragSymbol(A.target, o, v); + }), l.addEventListener("drop", function(A) { + var b; + A.preventDefault(); + var v = Lu(b = Su(A.target.parentElement.parentElement.childNodes)).call(b, A.target.parentElement) + 2, k = g.$operateLines(o, v, f).join(` +`); + g.codeMirror.replaceSelection(k), g.$findTableInEditor(), g.$setSelection(g.tableEditor.info.tableIndex, "table"), g.setStyle(A.target.parentElement, "border", "1px solid #dfe6ee"); + }); + } }, { key: "$dragSymbol", value: function(i, o, l) { + var f = this.target; + f !== i && o !== l && (f.tagName === "TH" ? o < l ? (this.setStyle(i, "border", "1px solid #dfe6ee"), this.setStyle(i, "border-right", "2px solid #6897bb")) : o > l && (this.setStyle(i, "border", "1px solid #dfe6ee"), this.setStyle(i, "border-left", "2px solid #6897bb")) : f.tagName === "TD" && (o < l ? (this.setStyle(i.parentElement, "border", "1px solid #dfe6ee"), this.setStyle(i.parentElement, "border-bottom", "2px solid #6897bb")) : o > l && (this.setStyle(i.parentElement, "border", "1px solid #dfe6ee"), this.setStyle(i.parentElement, "border-top", "2px solid #6897bb")))); + } }, { key: "$operateLines", value: function(i, o, l) { + if (i < o) + gk(l).call(l, o + 1, 0, l[i]), gk(l).call(l, i, 1); + else if (i > o) { + var f = l[i]; + gk(l).call(l, i, 1), gk(l).call(l, o, 0, f); + } + return l; + } }]), r; +}(), A6t = ["javascript", "typescript", "html", "css", "shell", "python", "golang", "java", "c", "c++", "c#", "php", "ruby", "swift", "kotlin", "scala", "rust", "dart", "elixir", "haskell", "lua", "perl", "r", "sql"], HEt = Error, ybn = Do("".replace), wbn = String(HEt("zxcasd").stack), jEt = /\n\s*at [^:]*:[^\n]*/, kbn = jEt.test(wbn), xbn = !oh(function() { + var r = Error("a"); + return !("stack" in r) || (Object.defineProperty(r, "stack", bk(1, 7)), r.stack !== 7); +}), Cbn = TA("toStringTag"), zme = Qi.Error, _bn = [].push, nie = function(r, i) { + var o, l = arguments.length > 2 ? arguments[2] : void 0, f = E1(yFe, this); + jre ? o = jre(new zme(), f ? o$(this) : yFe) : (o = f ? this : wk(yFe), Uy(o, Cbn, "Error")), i !== void 0 && Uy(o, "message", function(A, b) { + return A === void 0 ? arguments.length < 2 ? "" : b : ah(A); + }(i)), xbn && Uy(o, "stack", function(A, b) { + if (kbn && typeof A == "string" && !HEt.prepareStackTrace) + for (; b--; ) + A = ybn(A, jEt, ""); + return A; + }(o.stack, 1)), function(A, b) { + Id(b) && "cause" in b && Uy(A, "cause", b.cause); + }(o, l); + var g = []; + return Tg(r, _bn, { that: g }), Uy(o, "errors", g), o; +}; +jre ? jre(nie, zme) : function(r, i, o) { + for (var l = F9t(i), f = _3.f, g = DT.f, A = 0; A < l.length; A++) { + var b = l[A]; + nl(r, b) || o && nl(o, b) || f(r, b, g(i, b)); + } +}(nie, zme, { name: !0 }); +var yFe = nie.prototype = wk(zme.prototype, { constructor: bk(1, nie), message: bk(1, ""), name: bk(1, "AggregateError") }); +qa({ global: !0, constructor: !0, arity: 2 }, { AggregateError: nie }); +var rie, zz, g6t, wFe, KEt = /(?:ipad|iphone|ipod).*applewebkit/i.test(ST), UDe = Qi.setImmediate, HDe = Qi.clearImmediate, Ebn = Qi.process, kFe = Qi.Dispatch, Tbn = Qi.Function, p6t = Qi.MessageChannel, Bbn = Qi.String, xFe = 0, kre = {}, m6t = "onreadystatechange"; +try { + rie = Qi.location; +} catch { +} +var aRe = function(r) { + if (nl(kre, r)) { + var i = kre[r]; + delete kre[r], i(); + } +}, CFe = function(r) { + return function() { + aRe(r); + }; +}, b6t = function(r) { + aRe(r.data); +}, v6t = function(r) { + Qi.postMessage(Bbn(r), rie.protocol + "//" + rie.host); +}; +UDe && HDe || (UDe = function(r) { + tL(arguments.length, 1); + var i = vf(r) ? r : Tbn(r), o = _O(arguments, 1); + return kre[++xFe] = function() { + gL(i, void 0, o); + }, zz(xFe), xFe; +}, HDe = function(r) { + delete kre[r]; +}, bL ? zz = function(r) { + Ebn.nextTick(CFe(r)); +} : kFe && kFe.now ? zz = function(r) { + kFe.now(CFe(r)); +} : p6t && !KEt ? (wFe = (g6t = new p6t()).port2, g6t.port1.onmessage = b6t, zz = hm(wFe.postMessage, wFe)) : Qi.addEventListener && vf(Qi.postMessage) && !Qi.importScripts && rie && rie.protocol !== "file:" && !oh(v6t) ? (zz = v6t, Qi.addEventListener("message", b6t, !1)) : zz = m6t in _me("script") ? function(r) { + hDe.appendChild(_me("script"))[m6t] = function() { + hDe.removeChild(this), aRe(r); + }; +} : function(r) { + setTimeout(CFe(r), 0); +}); +var Tne, zQ, xre, nG, _Fe, EFe, TFe, y6t, zEt = { set: UDe, clear: HDe }, Sbn = /ipad|iphone|ipod/i.test(ST) && Qi.Pebble !== void 0, Lbn = /web0s(?!.*chrome)/i.test(ST), Ibn = DT.f, BFe = zEt.set, w6t = Qi.MutationObserver || Qi.WebKitMutationObserver, k6t = Qi.document, x6t = Qi.process, Kge = Qi.Promise, C6t = Ibn(Qi, "queueMicrotask"), GEt = C6t && C6t.value; +GEt || (Tne = function() { + var r, i; + for (bL && (r = x6t.domain) && r.exit(); zQ; ) { + i = zQ.fn, zQ = zQ.next; + try { + i(); + } catch (o) { + throw zQ ? nG() : xre = void 0, o; + } + } + xre = void 0, r && r.enter(); +}, KEt || bL || Lbn || !w6t || !k6t ? !Sbn && Kge && Kge.resolve ? ((TFe = Kge.resolve(void 0)).constructor = Kge, y6t = hm(TFe.then, TFe), nG = function() { + y6t(Tne); +}) : bL ? nG = function() { + x6t.nextTick(Tne); +} : (BFe = hm(BFe, Qi), nG = function() { + BFe(Tne); +}) : (_Fe = !0, EFe = k6t.createTextNode(""), new w6t(Tne).observe(EFe, { characterData: !0 }), nG = function() { + EFe.data = _Fe = !_Fe; +})); +var oRe = GEt || function(r) { + var i = { fn: r, next: void 0 }; + xre && (xre.next = i), zQ || (zQ = i, nG()), xre = i; +}, AX = function(r) { + try { + return { error: !1, value: r() }; + } catch (i) { + return { error: !0, value: i }; + } +}, XEt = function() { + this.head = null, this.tail = null; +}; +XEt.prototype = { add: function(r) { + var i = { item: r, next: null }; + this.head ? this.tail.next = i : this.head = i, this.tail = i; +}, get: function() { + var r = this.head; + if (r) + return this.head = r.next, this.tail === r && (this.tail = null), r.item; +} }; +var SFe, _6t, Mbn = XEt, x3 = Qi.Promise, Fbn = typeof window == "object" && typeof Deno != "object", E6t = x3 && x3.prototype, Obn = TA("species"), WEt = !1, VEt = vf(Qi.PromiseRejectionEvent), Dbn = n9t("Promise", function() { + var r = BPe(x3), i = r !== String(x3); + if (!i && MT === 66 || !E6t.catch || !E6t.finally) + return !0; + if (MT >= 51 && /native code/.test(r)) + return !1; + var o = new x3(function(f) { + f(1); + }), l = function(f) { + f(function() { + }, function() { + }); + }; + return (o.constructor = {})[Obn] = l, !(WEt = o.then(function() { + }) instanceof l) || !i && Fbn && !VEt; +}), gX = { CONSTRUCTOR: Dbn, REJECTION_EVENT: VEt, SUBCLASSING: WEt }, Nbn = function(r) { + var i, o; + this.promise = new r(function(l, f) { + if (i !== void 0 || o !== void 0) + throw TypeError("Bad Promise constructor"); + i = l, o = f; + }), this.resolve = Fh(i), this.reject = Fh(o); +}, EL = { f: function(r) { + return new Nbn(r); +} }, qEt = zEt.set, Ope = "Promise", T6t = gX.CONSTRUCTOR, Pbn = gX.REJECTION_EVENT, LFe = Bv.getterFor(Ope), Rbn = Bv.set, Qbn = x3 && x3.prototype, Bne = x3, IFe = Qbn, YEt = Qi.TypeError, jDe = Qi.document, sRe = Qi.process, KDe = EL.f, $bn = KDe, Ubn = !!(jDe && jDe.createEvent && Qi.dispatchEvent), JEt = "unhandledrejection", ZEt = function(r) { + var i; + return !(!Id(r) || !vf(i = r.then)) && i; +}, eTt = function(r, i) { + var o, l, f, g = i.value, A = i.state == 1, b = A ? r.ok : r.fail, v = r.resolve, k = r.reject, _ = r.domain; + try { + b ? (A || (i.rejection === 2 && jbn(i), i.rejection = 1), b === !0 ? o = g : (_ && _.enter(), o = b(g), _ && (_.exit(), f = !0)), o === r.promise ? k(YEt("Promise-chain cycle")) : (l = ZEt(o)) ? rl(l, o, v, k) : v(o)) : k(g); + } catch (T) { + _ && !f && _.exit(), k(T); + } +}, tTt = function(r, i) { + r.notified || (r.notified = !0, oRe(function() { + for (var o, l = r.reactions; o = l.get(); ) + eTt(o, r); + r.notified = !1, i && !r.rejection && Hbn(r); + })); +}, nTt = function(r, i, o) { + var l, f; + Ubn ? ((l = jDe.createEvent("Event")).promise = i, l.reason = o, l.initEvent(r, !1, !0), Qi.dispatchEvent(l)) : l = { promise: i, reason: o }, !Pbn && (f = Qi["on" + r]) ? f(l) : r === JEt && function(g, A) { + var b = Qi.console; + b && b.error && (arguments.length == 1 ? b.error(g) : b.error(g, A)); + }("Unhandled promise rejection", o); +}, Hbn = function(r) { + rl(qEt, Qi, function() { + var i, o = r.facade, l = r.value; + if (B6t(r) && (i = AX(function() { + bL ? sRe.emit("unhandledRejection", l, o) : nTt(JEt, o, l); + }), r.rejection = bL || B6t(r) ? 2 : 1, i.error)) + throw i.value; + }); +}, B6t = function(r) { + return r.rejection !== 1 && !r.parent; +}, jbn = function(r) { + rl(qEt, Qi, function() { + var i = r.facade; + bL ? sRe.emit("rejectionHandled", i) : nTt("rejectionhandled", i, r.value); + }); +}, lG = function(r, i, o) { + return function(l) { + r(i, l, o); + }; +}, wG = function(r, i, o) { + r.done || (r.done = !0, o && (r = o), r.value = i, r.state = 2, tTt(r, !0)); +}, zDe = function(r, i, o) { + if (!r.done) { + r.done = !0, o && (r = o); + try { + if (r.facade === i) + throw YEt("Promise can't be resolved itself"); + var l = ZEt(i); + l ? oRe(function() { + var f = { done: !1 }; + try { + rl(l, i, lG(zDe, f, r), lG(wG, f, r)); + } catch (g) { + wG(f, g, r); + } + }) : (r.value = i, r.state = 1, tTt(r, !1)); + } catch (f) { + wG({ done: !1 }, f, r); + } + } +}; +T6t && (IFe = (Bne = function(r) { + fX(this, IFe), Fh(r), rl(SFe, this); + var i = LFe(this); + try { + r(lG(zDe, i), lG(wG, i)); + } catch (o) { + wG(i, o); + } +}).prototype, (SFe = function(r) { + Rbn(this, { type: Ope, done: !1, notified: !1, parent: !1, reactions: new Mbn(), rejection: !1, state: 0, value: void 0 }); +}).prototype = m5(IFe, "then", function(r, i) { + var o = LFe(this), l = KDe(qre(this, Bne)); + return o.parent = !0, l.ok = !vf(r) || r, l.fail = vf(i) && i, l.domain = bL ? sRe.domain : void 0, o.state == 0 ? o.reactions.add(l) : oRe(function() { + eTt(l, o); + }), l.promise; +}), _6t = function() { + var r = new SFe(), i = LFe(r); + this.promise = r, this.resolve = lG(zDe, i), this.reject = lG(wG, i); +}, EL.f = KDe = function(r) { + return r === Bne || r === void 0 ? new _6t(r) : $bn(r); +}), qa({ global: !0, constructor: !0, wrap: !0, forced: T6t }, { Promise: Bne }), wL(Bne, Ope, !1, !0), M_t(Ope); +var rTt = gX.CONSTRUCTOR || !f_t(function(r) { + x3.all(r).then(void 0, function() { + }); +}); +qa({ target: "Promise", stat: !0, forced: rTt }, { all: function(r) { + var i = this, o = EL.f(i), l = o.resolve, f = o.reject, g = AX(function() { + var A = Fh(i.resolve), b = [], v = 0, k = 1; + Tg(r, function(_) { + var T = v++, L = !1; + k++, rl(A, i, _).then(function(F) { + L || (L = !0, b[T] = F, --k || l(b)); + }, f); + }), --k || l(b); + }); + return g.error && f(g.value), o.promise; +} }); +var Kbn = gX.CONSTRUCTOR; +x3 && x3.prototype, qa({ target: "Promise", proto: !0, forced: Kbn, real: !0 }, { catch: function(r) { + return this.then(void 0, r); +} }), qa({ target: "Promise", stat: !0, forced: rTt }, { race: function(r) { + var i = this, o = EL.f(i), l = o.reject, f = AX(function() { + var g = Fh(i.resolve); + Tg(r, function(A) { + rl(g, i, A).then(o.resolve, l); + }); + }); + return f.error && l(f.value), o.promise; +} }), qa({ target: "Promise", stat: !0, forced: gX.CONSTRUCTOR }, { reject: function(r) { + var i = EL.f(this); + return rl(i.reject, void 0, r), i.promise; +} }); +var GDe = function(r, i) { + if (Oh(r), Id(i) && i.constructor === r) + return i; + var o = EL.f(r); + return (0, o.resolve)(i), o.promise; +}, zbn = gX.CONSTRUCTOR, Gbn = b2("Promise"), Xbn = !zbn; +qa({ target: "Promise", stat: !0, forced: !0 }, { resolve: function(r) { + return GDe(Xbn && this === Gbn ? x3 : this, r); +} }), qa({ target: "Promise", stat: !0 }, { allSettled: function(r) { + var i = this, o = EL.f(i), l = o.resolve, f = o.reject, g = AX(function() { + var A = Fh(i.resolve), b = [], v = 0, k = 1; + Tg(r, function(_) { + var T = v++, L = !1; + k++, rl(A, i, _).then(function(F) { + L || (L = !0, b[T] = { status: "fulfilled", value: F }, --k || l(b)); + }, function(F) { + L || (L = !0, b[T] = { status: "rejected", reason: F }, --k || l(b)); + }); + }), --k || l(b); + }); + return g.error && f(g.value), o.promise; +} }); +var S6t = "No one promise resolved"; +qa({ target: "Promise", stat: !0 }, { any: function(r) { + var i = this, o = b2("AggregateError"), l = EL.f(i), f = l.resolve, g = l.reject, A = AX(function() { + var b = Fh(i.resolve), v = [], k = 0, _ = 1, T = !1; + Tg(r, function(L) { + var F = k++, U = !1; + _++, rl(b, i, L).then(function(q) { + U || T || (T = !0, f(q)); + }, function(q) { + U || T || (U = !0, v[F] = q, --_ || g(new o(v, S6t))); + }); + }), --_ || g(new o(v, S6t)); + }); + return A.error && g(A.value), l.promise; +} }); +var Wbn = x3 && x3.prototype, Vbn = !!x3 && oh(function() { + Wbn.finally.call({ then: function() { + } }, function() { + }); +}); +qa({ target: "Promise", proto: !0, real: !0, forced: Vbn }, { finally: function(r) { + var i = qre(this, b2("Promise")), o = vf(r); + return this.then(o ? function(l) { + return GDe(i, r()).then(function() { + return l; + }); + } : r, o ? function(l) { + return GDe(i, r()).then(function() { + throw l; + }); + } : r); +} }); +var iTt = ql.Promise, qbn = iTt; +qa({ target: "Promise", stat: !0, forced: !0 }, { try: function(r) { + var i = EL.f(this), o = AX(r); + return (o.error ? i.reject : i.resolve)(o.value), i.promise; +} }); +var cRe = qbn; +function L6t(r, i, o, l, f, g, A) { + try { + var b = r[g](A), v = b.value; + } catch (k) { + return void o(k); + } + b.done ? i(v) : cRe.resolve(v).then(l, f); +} +function aTt(r) { + return function() { + var i = this, o = arguments; + return new cRe(function(l, f) { + var g = r.apply(i, o); + function A(v) { + L6t(g, l, f, A, b, "next", v); + } + function b(v) { + L6t(g, l, f, A, b, "throw", v); + } + A(void 0); + }); + }; +} +var oTt = su(function(r) { + function i(o) { + return r.exports = i = typeof oC == "function" && typeof U9t == "symbol" ? function(l) { + return typeof l; + } : function(l) { + return l && typeof oC == "function" && l.constructor === oC && l !== oC.prototype ? "symbol" : typeof l; + }, r.exports.__esModule = !0, r.exports.default = r.exports, i(o); + } + r.exports = i, r.exports.__esModule = !0, r.exports.default = r.exports; +}); +v$(oTt); +var MFe = M9t, Ybn = Do([].reverse), I6t = [1, 2]; +qa({ target: "Array", proto: !0, forced: String(I6t) === String(I6t.reverse()) }, { reverse: function() { + return kL(this) && (this.length = this.length), Ybn(this); +} }); +var Jbn = a0("Array").reverse, FFe = Array.prototype, sTt = function(r) { + var i = r.reverse; + return r === FFe || E1(FFe, r) && i === FFe.reverse ? Jbn : i; +}, Zbn = sTt, cTt = su(function(r) { + var i = oTt.default; + function o() { + r.exports = o = function() { + return l; + }, r.exports.__esModule = !0, r.exports.default = r.exports; + var l = {}, f = Object.prototype, g = f.hasOwnProperty, A = typeof oC == "function" ? oC : {}, b = A.iterator || "@@iterator", v = A.asyncIterator || "@@asyncIterator", k = A.toStringTag || "@@toStringTag"; + function _(ie, Be, te) { + return Iie(ie, Be, { value: te, enumerable: !0, configurable: !0, writable: !0 }), ie[Be]; + } + try { + _({}, ""); + } catch { + _ = function(Be, te, Me) { + return Be[te] = Me; + }; + } + function T(ie, Be, te, Me) { + var ve = Be && Be.prototype instanceof U ? Be : U, ge = vre(ve.prototype), Je = new de(Me || []); + return ge._invoke = /* @__PURE__ */ function(ot, bt, gt) { + var je = "suspendedStart"; + return function(Qe, kt) { + if (je === "executing") + throw new Error("Generator is already running"); + if (je === "completed") { + if (Qe === "throw") + throw kt; + return xe(); + } + for (gt.method = Qe, gt.arg = kt; ; ) { + var Wt = gt.delegate; + if (Wt) { + var jt = le(Wt, gt); + if (jt) { + if (jt === F) + continue; + return jt; + } + } + if (gt.method === "next") + gt.sent = gt._sent = gt.arg; + else if (gt.method === "throw") { + if (je === "suspendedStart") + throw je = "completed", gt.arg; + gt.dispatchException(gt.arg); + } else + gt.method === "return" && gt.abrupt("return", gt.arg); + je = "executing"; + var Zn = L(ot, bt, gt); + if (Zn.type === "normal") { + if (je = gt.done ? "completed" : "suspendedYield", Zn.arg === F) + continue; + return { value: Zn.arg, done: gt.done }; + } + Zn.type === "throw" && (je = "completed", gt.method = "throw", gt.arg = Zn.arg); + } + }; + }(ie, te, Je), ge; + } + function L(ie, Be, te) { + try { + return { type: "normal", arg: ie.call(Be, te) }; + } catch (Me) { + return { type: "throw", arg: Me }; + } + } + l.wrap = T; + var F = {}; + function U() { + } + function q() { + } + function Z() { + } + var R = {}; + _(R, b, function() { + return this; + }); + var J = yre && yre(yre(Te([]))); + J && J !== f && g.call(J, b) && (R = J); + var he = Z.prototype = U.prototype = vre(R); + function Y(ie) { + var Be; + MFe(Be = ["next", "throw", "return"]).call(Be, function(te) { + _(ie, te, function(Me) { + return this._invoke(te, Me); + }); + }); + } + function ue(ie, Be) { + function te(ve, ge, Je, ot) { + var bt = L(ie[ve], ie, ge); + if (bt.type !== "throw") { + var gt = bt.arg, je = gt.value; + return je && i(je) == "object" && g.call(je, "__await") ? Be.resolve(je.__await).then(function(Qe) { + te("next", Qe, Je, ot); + }, function(Qe) { + te("throw", Qe, Je, ot); + }) : Be.resolve(je).then(function(Qe) { + gt.value = Qe, Je(gt); + }, function(Qe) { + return te("throw", Qe, Je, ot); + }); + } + ot(bt.arg); + } + var Me; + this._invoke = function(ve, ge) { + function Je() { + return new Be(function(ot, bt) { + te(ve, ge, ot, bt); + }); + } + return Me = Me ? Me.then(Je, Je) : Je(); + }; + } + function le(ie, Be) { + var te = ie.iterator[Be.method]; + if (te === void 0) { + if (Be.delegate = null, Be.method === "throw") { + if (ie.iterator.return && (Be.method = "return", Be.arg = void 0, le(ie, Be), Be.method === "throw")) + return F; + Be.method = "throw", Be.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return F; + } + var Me = L(te, ie.iterator, Be.arg); + if (Me.type === "throw") + return Be.method = "throw", Be.arg = Me.arg, Be.delegate = null, F; + var ve = Me.arg; + return ve ? ve.done ? (Be[ie.resultName] = ve.value, Be.next = ie.nextLoc, Be.method !== "return" && (Be.method = "next", Be.arg = void 0), Be.delegate = null, F) : ve : (Be.method = "throw", Be.arg = new TypeError("iterator result is not an object"), Be.delegate = null, F); + } + function be(ie) { + var Be = { tryLoc: ie[0] }; + 1 in ie && (Be.catchLoc = ie[1]), 2 in ie && (Be.finallyLoc = ie[2], Be.afterLoc = ie[3]), this.tryEntries.push(Be); + } + function ke(ie) { + var Be = ie.completion || {}; + Be.type = "normal", delete Be.arg, ie.completion = Be; + } + function de(ie) { + this.tryEntries = [{ tryLoc: "root" }], MFe(ie).call(ie, be, this), this.reset(!0); + } + function Te(ie) { + if (ie) { + var Be = ie[b]; + if (Be) + return Be.call(ie); + if (typeof ie.next == "function") + return ie; + if (!isNaN(ie.length)) { + var te = -1, Me = function ve() { + for (; ++te < ie.length; ) + if (g.call(ie, te)) + return ve.value = ie[te], ve.done = !1, ve; + return ve.value = void 0, ve.done = !0, ve; + }; + return Me.next = Me; + } + } + return { next: xe }; + } + function xe() { + return { value: void 0, done: !0 }; + } + return q.prototype = Z, _(he, "constructor", Z), _(Z, "constructor", q), q.displayName = _(Z, k, "GeneratorFunction"), l.isGeneratorFunction = function(ie) { + var Be = typeof ie == "function" && ie.constructor; + return !!Be && (Be === q || (Be.displayName || Be.name) === "GeneratorFunction"); + }, l.mark = function(ie) { + return Mme ? Mme(ie, Z) : (ie.__proto__ = Z, _(ie, k, "GeneratorFunction")), ie.prototype = vre(he), ie; + }, l.awrap = function(ie) { + return { __await: ie }; + }, Y(ue.prototype), _(ue.prototype, v, function() { + return this; + }), l.AsyncIterator = ue, l.async = function(ie, Be, te, Me, ve) { + ve === void 0 && (ve = cRe); + var ge = new ue(T(ie, Be, te, Me), ve); + return l.isGeneratorFunction(Be) ? ge : ge.next().then(function(Je) { + return Je.done ? Je.value : ge.next(); + }); + }, Y(he), _(he, k, "Generator"), _(he, b, function() { + return this; + }), _(he, "toString", function() { + return "[object Generator]"; + }), l.keys = function(ie) { + var Be = []; + for (var te in ie) + Be.push(te); + return Zbn(Be).call(Be), function Me() { + for (; Be.length; ) { + var ve = Be.pop(); + if (ve in ie) + return Me.value = ve, Me.done = !1, Me; + } + return Me.done = !0, Me; + }; + }, l.values = Te, de.prototype = { constructor: de, reset: function(ie) { + var Be; + if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, MFe(Be = this.tryEntries).call(Be, ke), !ie) + for (var te in this) + te.charAt(0) === "t" && g.call(this, te) && !isNaN(+b_t(te).call(te, 1)) && (this[te] = void 0); + }, stop: function() { + this.done = !0; + var ie = this.tryEntries[0].completion; + if (ie.type === "throw") + throw ie.arg; + return this.rval; + }, dispatchException: function(ie) { + if (this.done) + throw ie; + var Be = this; + function te(bt, gt) { + return ge.type = "throw", ge.arg = ie, Be.next = bt, gt && (Be.method = "next", Be.arg = void 0), !!gt; + } + for (var Me = this.tryEntries.length - 1; Me >= 0; --Me) { + var ve = this.tryEntries[Me], ge = ve.completion; + if (ve.tryLoc === "root") + return te("end"); + if (ve.tryLoc <= this.prev) { + var Je = g.call(ve, "catchLoc"), ot = g.call(ve, "finallyLoc"); + if (Je && ot) { + if (this.prev < ve.catchLoc) + return te(ve.catchLoc, !0); + if (this.prev < ve.finallyLoc) + return te(ve.finallyLoc); + } else if (Je) { + if (this.prev < ve.catchLoc) + return te(ve.catchLoc, !0); + } else { + if (!ot) + throw new Error("try statement without catch or finally"); + if (this.prev < ve.finallyLoc) + return te(ve.finallyLoc); + } + } + } + }, abrupt: function(ie, Be) { + for (var te = this.tryEntries.length - 1; te >= 0; --te) { + var Me = this.tryEntries[te]; + if (Me.tryLoc <= this.prev && g.call(Me, "finallyLoc") && this.prev < Me.finallyLoc) { + var ve = Me; + break; + } + } + ve && (ie === "break" || ie === "continue") && ve.tryLoc <= Be && Be <= ve.finallyLoc && (ve = null); + var ge = ve ? ve.completion : {}; + return ge.type = ie, ge.arg = Be, ve ? (this.method = "next", this.next = ve.finallyLoc, F) : this.complete(ge); + }, complete: function(ie, Be) { + if (ie.type === "throw") + throw ie.arg; + return ie.type === "break" || ie.type === "continue" ? this.next = ie.arg : ie.type === "return" ? (this.rval = this.arg = ie.arg, this.method = "return", this.next = "end") : ie.type === "normal" && Be && (this.next = Be), F; + }, finish: function(ie) { + for (var Be = this.tryEntries.length - 1; Be >= 0; --Be) { + var te = this.tryEntries[Be]; + if (te.finallyLoc === ie) + return this.complete(te.completion, te.afterLoc), ke(te), F; + } + }, catch: function(ie) { + for (var Be = this.tryEntries.length - 1; Be >= 0; --Be) { + var te = this.tryEntries[Be]; + if (te.tryLoc === ie) { + var Me = te.completion; + if (Me.type === "throw") { + var ve = Me.arg; + ke(te); + } + return ve; + } + } + throw new Error("illegal catch attempt"); + }, delegateYield: function(ie, Be, te) { + return this.delegate = { iterator: Te(ie), resultName: Be, nextLoc: te }, this.method === "next" && (this.arg = void 0), F; + } }, l; + } + r.exports = o, r.exports.__esModule = !0, r.exports.default = r.exports; +}); +v$(cTt); +var KG = cTt(); +function lTt(r) { + function i(o) { + o.clipboardData.setData("text/html", r), o.clipboardData.setData("text/plain", r), o.preventDefault(); + } + document.addEventListener("copy", i), document.execCommand("copy"), document.removeEventListener("copy", i); +} +function e2n(r) { + var i = document.createElement("input"); + i.value = r, document.body.appendChild(i), i.select(), document.execCommand("copy"), document.body.removeChild(i); +} +function IQ(r) { + return XDe.apply(this, arguments); +} +function XDe() { + return XDe = aTt(KG.mark(function r(i) { + return KG.wrap(function(o) { + for (; ; ) + switch (o.prev = o.next) { + case 0: + if (navigator.clipboard) { + o.next = 3; + break; + } + return e2n(i), o.abrupt("return"); + case 3: + return o.next = 5, navigator.clipboard.writeText(i); + case 5: + return o.abrupt("return", o.sent); + case 6: + case "end": + return o.stop(); + } + }, r); + })), XDe.apply(this, arguments); +} +var t2n = function() { + function r(i, o, l, f, g, A) { + vi(this, r), Ui(this, "codeBlockEditor", { info: {}, editorDom: {} }), this.trigger = i, this.target = o, this.previewerDom = f, this.container = l, this.codeMirror = g, this.$cherry = A.previewer.$cherry, this.parent = A, this.$initReg(); + } + return yi(r, [{ key: "$initReg", value: function() { + this.codeBlockReg = this.codeBlockReg ? this.codeBlockReg : Kbe().reg; + } }, { key: "emit", value: function(i) { + var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() { + }; + switch (i) { + case "remove": + return this.$remove(); + case "scroll": + return this.$updateContainerPosition(); + case "previewUpdate": + return this.$updateContainerPosition(), void (this.editing && this.$setInputOffset()); + case "mouseup": + return this.$tryRemoveMe(o, l); + } + } }, { key: "$remove", value: function() { + this.codeBlockEditor = { info: {}, codeBlockCodes: [], editorDom: {} }; + } }, { key: "$tryRemoveMe", value: function(i, o) { + var l = this.codeBlockEditor.editorDom.inputDiv; + this.editing && l && !l.contains(i.target) && (this.editing = !1, this.$remove(), o()); + } }, { key: "$findCodeInEditor", value: function() { + var i = arguments.length > 0 && arguments[0] !== void 0 && arguments[0]; + this.$collectCodeBlockDom(), this.$collectCodeBlockCode(), i ? this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex) : this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex); + } }, { key: "$collectCodeBlockDom", value: function() { + var i = Su(this.previewerDom.querySelectorAll('[data-type="codeBlock"]')); + this.codeBlockEditor.info = { codeBlockNode: this.target, codeBlockIndex: Lu(i).call(i, this.target) }; + } }, { key: "$collectCodeBlockCode", value: function() { + var i = []; + this.codeMirror.getValue().replace(this.codeBlockReg, function(o) { + var l, f = o.replace(/^\n*/, ""), g = ((l = (arguments.length <= 1 ? 0 : arguments.length - 1) - 2 + 1) < 1 || arguments.length <= l ? void 0 : arguments[l]) + o.match(/^\n*/)[0].length; + RG(f).call(f, "```mermaid") || i.push({ code: f, offset: g }); + }), this.codeBlockEditor.codeBlockCodes = i; + } }, { key: "$setBlockSelection", value: function(i) { + var o, l, f, g, A = this.codeBlockEditor.codeBlockCodes[i], b = this.codeMirror.getValue(), v = (o = (l = Da(b).call(b, 0, A.offset).match(/\n/g)) === null || l === void 0 ? void 0 : l.length) !== null && o !== void 0 ? o : 0, k = v + A.code.match(/\n/g).length, _ = Da(f = A.code).call(f, 0, -3).match(/[^\n]+\n*$/)[0].length; + this.codeBlockEditor.info.selection = [{ line: k - 1, ch: _ }, { line: v + 1, ch: 0 }], (g = this.codeMirror).setSelection.apply(g, BO(this.codeBlockEditor.info.selection)); + } }, { key: "$setLangSelection", value: function(i) { + var o, l, f, g, A = this.codeBlockEditor.codeBlockCodes[i], b = this.codeMirror.getValue(), v = (o = (l = Da(b).call(b, 0, A.offset).match(/\n/g)) === null || l === void 0 ? void 0 : l.length) !== null && o !== void 0 ? o : 0, k = ((f = A.code.match(/```\s*[^\n]+/)[0]) !== null && f !== void 0 ? f : "```").length; + this.codeBlockEditor.info.selection = [{ line: v, ch: 3 }, { line: v, ch: k }], (g = this.codeMirror).setSelection.apply(g, BO(this.codeBlockEditor.info.selection)); + } }, { key: "showBubble", value: function() { + var i = this, o = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]; + this.$updateContainerPosition(), this.trigger === "hover" && this.$showBtn(o), this.trigger === "click" && this.$showContentEditor(), this.container.addEventListener("wheel", function(l) { + l.stopPropagation(), l.preventDefault(), i.previewerDom.scrollTop += l.deltaY / 3; + }); + } }, { key: "$showContentEditor", value: function() { + this.editing = !0, this.$findCodeInEditor(), this.$drawEditor(); + } }, { key: "$showBtn", value: function(i) { + var o = this, l = this.target.dataset, f = l.changeLang, g = l.editCode, A = l.copyCode, b = l.lang; + if (this.container.innerHTML = "", f === "true" && i) { + this.container.innerHTML = function(T) { + var L = Zs(A6t).call(A6t, function(F) { + var U, q; + return T === F ? At(q = '") : At(U = '"); + }); + return '`); + }(b); + var v = this.container.querySelector("#code-preview-lang-select"); + this.changeLangDom = v, this.changeLangDom.addEventListener("change", function(T) { + T.preventDefault(), T.stopPropagation(), o.parent.$removeAllPreviewerBubbles("click"), o.$changeLang(T.target.value || ""); + }); + } + if (g === "true" && i) { + var k = document.createElement("div"); + k.className = "cherry-edit-code-block", k.innerHTML = '', this.container.appendChild(k), k.addEventListener("click", function(T) { + T.preventDefault(), T.stopPropagation(), o.$hideAllBtn(), o.parent.$removeAllPreviewerBubbles("click"), o.parent.showCodeBlockPreviewerBubbles("click", o.target); + }), this.editDom = k; + } + if (A === "true") { + var _ = document.createElement("div"); + _.className = "cherry-copy-code-block", _.innerHTML = '', this.container.appendChild(_), _.addEventListener("click", function(T) { + T.preventDefault(), T.stopPropagation(), o.parent.$removeAllPreviewerBubbles("click"), o.$copyCodeBlock(); + }), this.copyDom = _; + } + } }, { key: "$hideAllBtn", value: function() { + var i, o, l, f, g, A; + (i = this.changeLangDom) !== null && i !== void 0 && (o = i.style) !== null && o !== void 0 && o.display && (this.changeLangDom.style.display = "none"), (l = this.editDom) !== null && l !== void 0 && (f = l.style) !== null && f !== void 0 && f.display && (this.editDom.style.display = "none"), (g = this.copyDom) !== null && g !== void 0 && (A = g.style) !== null && A !== void 0 && A.display && (this.copyDom.style.display = "none"); + } }, { key: "$changeLang", value: function(i) { + this.$findCodeInEditor(!0), this.codeMirror.replaceSelection(i, "around"); + } }, { key: "$drawEditor", value: function() { + var i = document.createElement("div"); + i.className = "cherry-previewer-codeBlock-content-handler__input"; + var o = document.createElement("textarea"); + o.id = "codeMirrorEditor", i.appendChild(o); + var l = m2.fromTextArea(o, { mode: "", theme: "default", scrollbarStyle: "null", lineNumbers: !0, autofocus: !0, lineWrapping: !0, cursorHeight: 0.85, indentUnit: 4, tabSize: 4, keyMap: "sublime" }), f = this.codeMirror; + l.on("change", function() { + f.replaceSelection(l.getValue(), "around"); + }), this.codeBlockEditor.editorDom.inputDiv = i, this.codeBlockEditor.editorDom.inputDom = l, this.$updateEditorPosition(), this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv), this.codeBlockEditor.editorDom.inputDom.focus(), this.codeBlockEditor.editorDom.inputDom.refresh(), l.setValue(this.codeMirror.getSelection()); + } }, { key: "$copyCodeBlock", value: function() { + var i = this.target.lastElementChild.innerText, o = this.$cherry.options.callback.onCopyCode({ target: this.target }, i); + if (o === !1) + return !1; + var l = this.copyDom.querySelector("i.ch-icon-copy"); + l && (l.className = l.className.replace("copy", "ok"), lm(function() { + l.className = l.className.replace("ok", "copy"); + }, 1e3)), lTt(o); + } }, { key: "$updateContainerPosition", value: function() { + this.codeBlockEditor.info.codeBlockNode = this.target; + var i = this.$getPosition(); + this.setStyle(this.container, "width", "".concat(i.width, "px")), this.setStyle(this.container, "top", "".concat(i.top, "px")), this.setStyle(this.container, "left", "".concat(i.left, "px")); + } }, { key: "$updateEditorPosition", value: function() { + this.$setInputOffset(); + var i = getComputedStyle(this.codeBlockEditor.info.codeBlockNode), o = this.codeBlockEditor.editorDom.inputDom.getWrapperElement(); + this.setStyle(o, "fontSize", i.fontSize || "16px"), this.setStyle(o, "fontFamily", i.fontFamily), this.setStyle(o, "lineHeight", "1.8em"), this.setStyle(o, "zIndex", "1"); + } }, { key: "$setInputOffset", value: function() { + var i = this.$getPosition(), o = this.codeBlockEditor.editorDom.inputDiv; + this.setStyle(o, "width", "".concat(i.width, "px")), this.setStyle(o, "height", "".concat(i.height + 10, "px")); + } }, { key: "setStyle", value: function(i, o, l) { + i.getBoundingClientRect()[o] !== l && (i.style[o] = l); + } }, { key: "$getPosition", value: function() { + var i = this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(), o = this.previewerDom.parentNode.getBoundingClientRect(); + return { top: i.top - o.top, height: i.height, width: i.width, left: i.left - o.left, maxHeight: o.height }; + } }]), r; +}(), M6t = function(r, i, o) { + return Math.min(Math.max(r, i), o); +}, F6t = { open: function() { + this.resetStyle(), this.dom.style.display = "block", this.postMessage("ready?"); +}, close: function() { + this.dom.style.display = "none"; +}, postMessage: function(r) { + var i, o, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + (i = this.iframeDom) === null || i === void 0 || (o = i.contentWindow) === null || o === void 0 || o.postMessage({ eventName: r, value: l }, "*"); +}, resetStyle: function() { + var r = this.dom; + r.style.left = "10%", r.style.top = "10%"; +}, bindEvents: function() { + this.bindClickEvents(), this.bindDNDEvents(); +}, bindClickEvents: function() { + var r = this; + this.headCloseButton.addEventListener("click", function() { + r.close(); + }), this.footSureButton.addEventListener("click", function() { + r.postMessage("getData"); + }); +}, bindDNDEvents: function() { + var r, i, o = this.dom, l = this.head, f = this.body, g = function(b) { + b.preventDefault(); + var v = M6t(b.clientX - r, 0, window.innerWidth - 16), k = M6t(b.clientY - i, 0, window.innerHeight - 16); + o.style.left = "".concat(v, "px"), o.style.top = "".concat(k, "px"); + }, A = function b(v) { + l.style.cursor = "grab", f.style.pointerEvents = null, document.removeEventListener("mousemove", g), document.removeEventListener("mousemove", b); + }; + l.addEventListener("mousedown", function(b) { + b.target.classList.contains("cherry-dialog--close") || (r = b.clientX - o.offsetLeft, i = b.clientY - o.offsetTop, l.style.cursor = "grabbing", f.style.pointerEvents = "none", document.addEventListener("mousemove", g), document.addEventListener("mouseup", A)); + }); +}, draw: function(r, i, o) { + var l = this, f = r.iframeSrc, g = r.title; + if (this.onSubmit = o, this.onReady = i, this.dom) + return new RegExp("".concat(f, "$"), "i").test(this.iframeDom.src) || (this.iframeDom.src = f), void this.open(); + window.addEventListener("message", function(A) { + if (A.data && A.data.eventName) + switch (A.data.eventName) { + case "getData:success": + l.onSubmit(A.data.value), l.close(); + case "ready": + l.onReady(); + } + }), this.iframeDom = ih("iframe", "cherry-dialog-iframe", { src: f, style: "border: none;" }), this.dom = ih("div", "cherry-dialog", { style: ["z-index:9999", "display: block", "position: absolute", "top: 10%;left: 10%;width: 80%;height: 80%;", "background-color: #FFF", "box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)", "border-radius: 6px", "border: 1px solid #ddd;"].join(";") }), this.head = ih("div", "cherry-dialog--head", { style: ["height: 30px", "line-height: 30px", "padding-left: 10px", "padding-right: 10px", "cursor: grab;"].join(";") }), this.body = ih("div", "cherry-dialog--body", { style: ["position: absolute", "bottom: 30px", "top: 30px", "left: 0", "right: 0", "overflow: hidden"].join(";") }), this.foot = ih("div", "cherry-dialog--foot", { style: ["height: 30px", "line-height: 30px", "padding-left: 10px", "padding-right: 10px", "position: absolute", "bottom: 0", "left: 0", "right: 0"].join(";") }), this.headTitle = ih("span", "cherry-dialog--title", { style: "user-select:none;" }), this.headCloseButton = ih("i", "cherry-dialog--close ch-icon ch-icon-close", { style: "float: right;font-size: 12px;cursor: pointer;" }), this.footSureButton = ih("button", "cherry-dialog--sure", { style: ["float: right", "cursor: pointer", "margin: 3px", "background-color: #4d90fe", "color: #FFF", "border: 1px solid #4d90fe", "border-radius: 2px", "padding: 2px 15px", "user-select:none"].join(";") }), this.headCloseButton.title = "关闭", this.footSureButton.textContent = "确定", this.headTitle.textContent = g, this.head.appendChild(this.headTitle), this.head.appendChild(this.headCloseButton), this.foot.appendChild(this.footSureButton), this.body.appendChild(this.iframeDom), this.dom.appendChild(this.head), this.dom.appendChild(this.body), this.dom.appendChild(this.foot), this.bindEvents(), document.body.appendChild(this.dom); +} }; +function uTt() { + var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, o = { iframeSrc: arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", title: "draw.io" }; + F6t.draw(o, function() { + F6t.postMessage("setData", r); + }, function(l) { + i(l); + }); +} +var OFe = function() { + return X9.Date.now(); +}, n2n = /\s/, r2n = function(r) { + for (var i = r.length; i-- && n2n.test(r.charAt(i)); ) + ; + return i; +}, i2n = /^\s+/, a2n = function(r) { + return r && r.slice(0, r2n(r) + 1).replace(i2n, ""); +}, o2n = /^[-+]0x[0-9a-f]+$/i, s2n = /^0b[01]+$/i, c2n = /^0o[0-7]+$/i, l2n = parseInt, O6t = function(r) { + if (typeof r == "number") + return r; + if (fEt(r)) + return NaN; + if (z9(r)) { + var i = typeof r.valueOf == "function" ? r.valueOf() : r; + r = z9(i) ? i + "" : i; + } + if (typeof r != "string") + return r === 0 ? r : +r; + r = a2n(r); + var o = s2n.test(r); + return o || c2n.test(r) ? l2n(r.slice(2), o ? 2 : 8) : o2n.test(r) ? NaN : +r; +}, u2n = Math.max, h2n = Math.min, f2n = function(r, i, o) { + var l, f, g, A, b, v, k = 0, _ = !1, T = !1, L = !0; + if (typeof r != "function") + throw new TypeError("Expected a function"); + function F(J) { + var he = l, Y = f; + return l = f = void 0, k = J, A = r.apply(Y, he); + } + function U(J) { + var he = J - v; + return v === void 0 || he >= i || he < 0 || T && J - k >= g; + } + function q() { + var J = OFe(); + if (U(J)) + return Z(J); + b = setTimeout(q, function(he) { + var Y = i - (he - v); + return T ? h2n(Y, g - (he - k)) : Y; + }(J)); + } + function Z(J) { + return b = void 0, L && l ? F(J) : (l = f = void 0, A); + } + function R() { + var J = OFe(), he = U(J); + if (l = arguments, f = this, v = J, he) { + if (b === void 0) + return function(Y) { + return k = Y, b = setTimeout(q, i), _ ? F(Y) : A; + }(v); + if (T) + return clearTimeout(b), b = setTimeout(q, i), F(v); + } + return b === void 0 && (b = setTimeout(q, i)), A; + } + return i = O6t(i) || 0, z9(o) && (_ = !!o.leading, g = (T = "maxWait" in o) ? u2n(O6t(o.maxWait) || 0, i) : g, L = "trailing" in o ? !!o.trailing : L), R.cancel = function() { + b !== void 0 && clearTimeout(b), k = 0, l = v = f = b = void 0; + }, R.flush = function() { + return b === void 0 ? A : Z(OFe()); + }, R; +}; +function D6t(r, i) { + var o = document.createElement("a"); + o.href = r, o.download = i, o.click(), o.remove(); +} +function d2n(r) { + var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (i.format !== "svg") { + var o = i.width, l = o === void 0 ? r.width.baseVal.value : o, f = i.height, g = f === void 0 ? r.height.baseVal.value : f, A = i.scale, b = A === void 0 ? 5 : A, v = i.quality, k = v === void 0 ? 1 : v, _ = i.backgroundColor, T = _ === void 0 ? "white" : _, L = i.filename, F = L === void 0 ? "formula" : L, U = i.format, q = U === void 0 ? "png" : U, Z = i.mimeType, R = Z === void 0 ? "image/png" : Z, J = WDe(r), he = document.createElement("canvas"), Y = he.getContext("2d"), ue = new Image(); + ue.src = "data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(J)))), ue.onload = function() { + he.width = l * b, he.height = g * b, Y.fillStyle = T, Y.fillRect(0, 0, he.width, he.height), Y.drawImage(ue, 0, 0, he.width, he.height), he.toBlob(function(be) { + var ke, de = cG.createObjectURL(be); + D6t(de, At(ke = "".concat(F, ".")).call(ke, q)), cG.revokeObjectURL(de); + }, R, k); + }; + } else { + var le; + (function(be, ke) { + var de = WDe(be), Te = new Blob([de], { type: "image/svg+xml;charset=utf-8" }), xe = cG.createObjectURL(Te); + D6t(xe, ke), cG.revokeObjectURL(xe); + })(r, (le = i.filename) !== null && le !== void 0 ? le : "formula.svg"); + } +} +function WDe(r) { + return new XMLSerializer().serializeToString(r); +} +var A2n = function() { + function r(i, o, l, f, g) { + vi(this, r), Ui(this, "bubbleContainer", null), this.trigger = i, this.target = o, this.container = l, this.previewerDom = f, this.editor = g; + } + return yi(r, [{ key: "emit", value: function(i, o) { + switch (i) { + case "remove": + case "scroll": + return this.remove(); + } + } }, { key: "drawBubble", value: function() { + var i, o, l, f = document.createElement("div"); + f.innerHTML = `
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    `, f.id = "formula-utils-bubble-container", f.className = ["formula-utils-bubble-container"].join(" "), this.bubbleContainer = f, this == null || (i = this.editor) === null || i === void 0 || (o = i.$cherry) === null || o === void 0 || (l = o.wrapperDom) === null || l === void 0 || l.appendChild(f); + } }, { key: "showBubble", value: function(i, o) { + var l, f, g, A, b, v = this == null || (l = this.editor) === null || l === void 0 || (f = l.$cherry) === null || f === void 0 || (g = f.wrapperDom) === null || g === void 0 || (A = g.children) === null || A === void 0 ? void 0 : A.namedItem("formula-utils-bubble-container"), k = this.target.getBoundingClientRect(); + v instanceof HTMLElement ? this.bubbleContainer = v : this.drawBubble(), this.bubbleContainer.style.display = "flex", this.bubbleContainer.style.top = "".concat(o || k.top, "px"), this.bubbleContainer.style.left = "".concat(i || k.left, "px"), this.bubbleContainer.addEventListener("click", Bo(b = this.bubbleClickHandler).call(b, this), { once: !0 }), this.collectFormulaCode(); + } }, { key: "collectFormulaCode", value: function() { + var i = []; + this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g, function(o, l, f, g, A) { + i.push({ code: f, offset: A }); + }), this.formulaCode = i; + } }, { key: "remove", value: function() { + this.bubbleContainer && (this.bubbleContainer.style.display = "none"); + } }, { key: "bubbleClickHandler", value: function(i) { + var o = this; + i.preventDefault(), i.stopPropagation(); + var l = i.target; + if (l instanceof HTMLButtonElement) { + var f = l.dataset.name, g = f === void 0 ? "" : f; + switch (g) { + case "svg": + case "png": + case "jpg": + this.target instanceof SVGSVGElement && d2n(this.target, { format: g }); + break; + case "html": + case "svgcode": + if (this.target instanceof SVGSVGElement) + if (g === "svgcode") + IQ(WDe(this.target)); + else { + var A = this.target.parentElement.querySelector("math"); + A.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), IQ(A.outerHTML); + } + break; + case "\\": + case "$": + case "$$": + case "latex": + case "mathml": + case "docx": + var b = this.previewerDom.querySelectorAll("mjx-container"), v = -1; + if (no(b).call(b, function(he, Y) { + he === o.target.parentElement && (v = Y); + }), v >= 0 && this.formulaCode[v]) { + var k = this.formulaCode[v].code; + if (g === "mathml" || g === "docx") { + var _, T, L, F, U = Wre(_ = this.editor.$cherry.engine.hooks.paragraph).call(_, function(he) { + return he instanceof tRe; + }); + U && U.engine === "MathJax" && ((T = window.MathJax) === null || T === void 0 || T.texReset(), (L = window.MathJax) === null || L === void 0 || (F = L.tex2mmlPromise) === null || F === void 0 || F.call(L, k, { display: !0 }).then(function(he) { + g === "mathml" && IQ(he); + })); + } else if (g === "latex") + IQ(k); + else if (g === "$") { + var q, Z; + IQ(At(q = At(Z = "".concat(g)).call(Z, k)).call(q, g)); + } else if (g === "$$") { + var R, J; + IQ(At(R = At(J = "".concat(g, ` +`)).call(J, k, ` +`)).call(R, g)); + } else + g === "\\" && IQ("\\".concat(k)); + } + } + } + this.remove(); + } }]), r; +}(); +DT.f; +var N6t = Do("".endsWith), g2n = Do("".slice), p2n = Math.min, m2n = WPe("endsWith"); +qa({ target: "String", proto: !0, forced: !m2n }, { endsWith: function(r) { + var i = ah(DO(this)); + XPe(r); + var o = arguments.length > 1 ? arguments[1] : void 0, l = i.length, f = o === void 0 ? l : p2n(LPe(o), l), g = ah(r); + return N6t ? N6t(i, g, f) : g2n(i, f - g.length, f) === g; +} }); +var b2n = a0("String").endsWith, DFe = String.prototype, v2n = function(r) { + var i = r.endsWith; + return typeof r == "string" || r === DFe || E1(DFe, r) && i === DFe.endsWith ? b2n : i; +}, y2n = function() { + function r(i, o, l, f, g) { + var A, b; + vi(this, r), Ui(this, "bubbleContainer", null), Ui(this, "regList", T_t), Ui(this, "range", []), Ui(this, "position", { line: 0, ch: 0 }), Ui(this, "input", !1), Ui(this, "isCheckbox", !1), this.trigger = i, this.target = o, this.container = l, this.previewerDom = f, this.editor = g, this.handleEditablesInputBinded = Bo(A = this.handleEditablesInput).call(A, this), this.handleEditablesUnfocusBinded = Bo(b = this.handleEditablesUnfocus).call(b, this), this.target.addEventListener("input", this.handleEditablesInputBinded, !1), this.target.addEventListener("focusout", this.handleEditablesUnfocusBinded, !1), this.setSelection(); + } + return yi(r, [{ key: "emit", value: function(i, o) { + if (i === "remove") + return this.remove(); + } }, { key: "remove", value: function() { + this.bubbleContainer && (this.bubbleContainer.style.display = "none", this.bubbleContainer.children[0] instanceof HTMLTextAreaElement && (this.bubbleContainer.children[0].value = "")), this.target.removeAttribute("contenteditable"), this.target.removeEventListener("input", this.handleEditablesInputBinded, !1), this.target.removeEventListener("focusout", this.handleEditablesUnfocusBinded, !1); + var i = this.editor.editor.getCursor(); + this.editor.editor.setSelection(i, i); + } }, { key: "setSelection", value: function() { + var i, o, l = this, f = Su(this.previewerDom.querySelectorAll("li.cherry-list-item")), g = Dme(f).call(f, function(F) { + return F === l.target.parentElement; + }); + if (g !== -1) { + var A = (i = (o = Epe(this == null ? void 0 : this.editor.editor.getValue())) === null || o === void 0 ? void 0 : o.split(` +`)) !== null && i !== void 0 ? i : [], b = 0, v = -1, k = -1, _ = ""; + no(A).call(A, function(F, U) { + if (F && F !== "/n") { + var q = l.regList.exec(F); + if (q !== null) { + var Z = vh(q, 5), R = Z[1], J = Z[2], he = Z[3], Y = Z[4]; + b === g && R !== void 0 && (v = U, _ = Y, k = Lu(F).call(F, _), J != null && v2n(J).call(J, ".") && (k += 1), he && (l.isCheckbox = !0)), b += 1; + } + } + }); + var T = { line: v, ch: k }, L = { line: v, ch: k + _.length }; + this.editor.editor.setSelection(T, L), this.range = [T, L], this.position = this.editor.editor.getCursor(); + } + } }, { key: "handleEditablesInput", value: function(i) { + this.input = !0, i.stopPropagation(), i.preventDefault(), i.target instanceof HTMLParagraphElement && (i.inputType !== "insertParagraph" && i.inputType !== "insertLineBreak" || this.handleInsertLineBreak()); + } }, { key: "handleEditablesUnfocus", value: function(i) { + if (i.stopPropagation(), i.preventDefault(), i.target instanceof HTMLParagraphElement) { + if (this.input) { + var o = this.isCheckbox ? i.target.innerHTML.replace(/<\/span>/, "") : i.target.innerHTML, l = this.editor.$cherry.engine.makeMarkdown(o), f = vh(this.range, 2), g = f[0], A = f[1]; + this.editor.editor.replaceRange(l, g, A), this.isCheckbox = !1, this.input = !1; + } + this.remove(); + } + } }, { key: "handleInsertLineBreak", value: function() { + var i, o, l = this.editor.editor.getCursor(), f = this.editor.editor.getLine(l.line), g = this.regList.exec(f), A = ` +- `; + g !== null && (A = At(i = ` +`.concat(g[1])).call(i, (o = g[2]) === null || o === void 0 ? void 0 : o.replace("[x]", "[ ] "))), this.editor.editor.replaceRange(A, { line: l.line, ch: this.editor.editor.getLine(l.line).length }), this.editor.editor.setCursor({ line: l.line + 1, ch: A.length + 1 }), this.editor.editor.focus(), this.remove(); + } }]), r; +}(), w2n = function() { + function r(i) { + vi(this, r), this.previewer = i, this.editor = i.editor, this.previewerDom = this.previewer.getDom(), this.enablePreviewerBubble = this.previewer.options.enablePreviewerBubble, this.bubble = {}, this.bubbleHandler = {}, this.init(); + } + return yi(r, [{ key: "init", value: function() { + var i, o, l, f = this; + this.oldWrapperDomOverflow = this.previewer.$cherry.wrapperDom.style.overflow, this.previewerDom.addEventListener("click", Bo(i = this.$onClick).call(i, this)), this.previewerDom.addEventListener("mouseover", Bo(o = this.$onMouseOver).call(o, this)), document.addEventListener("mousedown", function(g) { + var A; + no(A = Kz(f.bubbleHandler)).call(A, function(b) { + return b.emit("mousedown", g); + }); + }), document.addEventListener("mouseup", function(g) { + var A; + no(A = Kz(f.bubbleHandler)).call(A, function(b) { + return b.emit("mouseup", g, function() { + return f.$removeAllPreviewerBubbles("click"); + }); + }); + }), document.addEventListener("mousemove", function(g) { + var A; + no(A = Kz(f.bubbleHandler)).call(A, function(b) { + return b.emit("mousemove", g); + }); + }), document.addEventListener("keyup", function(g) { + var A; + no(A = Kz(f.bubbleHandler)).call(A, function(b) { + return b.emit("keyup", g); + }); + }), this.previewerDom.addEventListener("scroll", function(g) { + var A; + no(A = Kz(f.bubbleHandler)).call(A, function(b) { + return b.emit("scroll", g); + }); + }, !0), kc.on(this.previewer.instanceId, kc.Events.previewerClose, function() { + return f.$removeAllPreviewerBubbles(); + }), this.previewer.options.afterUpdateCallBack.push(function() { + var g; + no(g = Kz(f.bubbleHandler)).call(g, function(A) { + return A.emit("previewUpdate", function() { + return f.$removeAllPreviewerBubbles(); + }); + }); + }), this.previewerDom.addEventListener("change", Bo(l = this.$onChange).call(l, this)), this.removeHoverBubble = f2n(function() { + return f.$removeAllPreviewerBubbles("hover"); + }, 400); + } }, { key: "isCherryCodeBlock", value: function(i) { + if (i.nodeName === "DIV" && i.dataset.type === "codeBlock") + return i; + var o = this.$getClosestNode(i, "DIV"); + return o !== !1 && o.dataset.type === "codeBlock" && o; + } }, { key: "isCherryTable", value: function(i) { + var o = this.$getClosestNode(i, "DIV"); + return o !== !1 && !(/simple-table/.test(o.className) || !/cherry-table-container/.test(o.className)) && o; + } }, { key: "$isEnableBubbleAndEditorShow", value: function() { + return !!this.enablePreviewerBubble && this.previewer.$cherry.getStatus().editor !== "hide"; + } }, { key: "$onMouseOver", value: function(i) { + var o = i.target; + if (o instanceof Element && o.tagName !== void 0) { + switch (o.tagName) { + case "TD": + case "TH": + if (!this.$isEnableBubbleAndEditorShow()) + return; + var l = this.isCherryTable(i.target); + return l === !1 ? void 0 : (this.removeHoverBubble.cancel(), this.$removeAllPreviewerBubbles("hover"), void this.$showTablePreviewerBubbles("hover", i.target, l)); + case "PRE": + case "CODE": + case "SPAN": + case "DIV": + var f = this.isCherryCodeBlock(i.target); + return f === !1 ? void 0 : void this.showCodeBlockPreviewerBubbles("hover", f); + } + this.removeHoverBubble(); + } + } }, { key: "$onMouseOut", value: function() { + this.enablePreviewerBubble && this.previewer.$cherry.getStatus().editor; + } }, { key: "$dealCheckboxClick", value: function(i) { + var o = this, l = i.target, f = Su(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check")); + this.checkboxIdx = Lu(f).call(f, l); + var g = Epe(this.editor.editor.getValue()).split(` +`), A = 0, b = -1, v = -1; + no(g).call(g, function(k, _) { + var T = Go(k).call(k); + (RG(T).call(T, "- [ ]") || RG(T).call(T, "- [x]")) && (A === o.checkboxIdx && (b = _, v = Lu(k).call(k, "- [") + 3), A += 1); + }), b !== -1 && (this.editor.editor.setSelection({ line: b, ch: v }, { line: b, ch: v + 1 }), this.editor.editor.replaceSelection(this.editor.editor.getSelection() === " " ? "x" : " ", "around")); + } }, { key: "$onClick", value: function(i) { + var o, l = this, f = i.target, g = this.previewer.$cherry.getStatus(); + if (g.editor !== "hide" && f instanceof Element) { + if (f instanceof HTMLImageElement && f.tagName === "IMG" && f.getAttribute("data-type") === "drawio") { + if (!this.beginChangeDrawioImg(f)) + return; + var A = decodeURI(f.getAttribute("data-xml")); + uTt(this.previewer.$cherry.options.drawioIframeUrl, A, function(v) { + var k, _ = v.xmlData, T = v.base64; + l.editor.editor.replaceSelection(At(k = "(".concat(T, "){data-type=drawio data-xml=")).call(k, encodeURI(_), "}"), "around"); + }); + } else if (this.enablePreviewerBubble && (f.className !== "ch-icon ch-icon-square" && f.className !== "ch-icon ch-icon-check" || this.$dealCheckboxClick(i), this.$removeAllPreviewerBubbles("click"), f.tagName !== void 0)) + switch (f.tagName) { + case "IMG": + f instanceof HTMLImageElement && this.$showImgPreviewerBubbles(f); + break; + case "TD": + case "TH": + if (f instanceof HTMLElement) { + var b = this.isCherryTable(f); + if (b === !1) + return; + this.$showTablePreviewerBubbles("click", f, b); + } + break; + case "svg": + (f == null || (o = f.parentElement) === null || o === void 0 ? void 0 : o.tagName) === "MJX-CONTAINER" && this.$showFormulaPreviewerBubbles("click", f, { x: i.pageX, y: i.pageY }); + break; + case "A": + i.stopPropagation(); + break; + case "P": + f instanceof HTMLParagraphElement && f.parentElement instanceof HTMLLIElement && (f.children.length !== 0 && (i.preventDefault(), i.stopPropagation()), f.setAttribute("contenteditable", "true"), f.focus(), this.$showListPreviewerBubbles("click", f)); + } + } else + g.previewer === "show" && this.previewer.$cherry.options.callback.onClickPreview && this.previewer.$cherry.options.callback.onClickPreview(i); + } }, { key: "$onChange", value: function(i) { + } }, { key: "$getClosestNode", value: function(i, o) { + return i.tagName === o ? i : i.parentNode.tagName !== "BODY" && this.$getClosestNode(i.parentNode, o); + } }, { key: "$removeAllPreviewerBubbles", value: function() { + var i, o, l, f, g = this, A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; + no(i = dd(o = tie(this.bubble)).call(o, function(b) { + var v = vh(b, 1)[0]; + return !A || A === v; + })).call(i, function(b) { + var v = vh(b, 2), k = v[0]; + v[1].remove(), delete g.bubble[k]; + }), no(l = dd(f = tie(this.bubbleHandler)).call(f, function(b) { + var v = vh(b, 1)[0]; + return !A || A === v; + })).call(l, function(b) { + var v = vh(b, 2), k = v[0]; + v[1].emit("remove"), delete g.bubbleHandler[k]; + }), yh(this.bubbleHandler).length <= 0 && (this.previewer.$cherry.wrapperDom.style.overflow = this.oldWrapperDomOverflow || ""); + } }, { key: "$showTablePreviewerBubbles", value: function(i, o, l) { + if (this.bubbleHandler[i] && this.bubbleHandler[i].tableElement === l) + this.bubbleHandler[i].showBubble(); + else { + this.$createPreviewerBubbles(i, i === "click" ? "table-content-handler" : "table-hover-handler"); + var f = new vbn(i, o, this.bubble[i], this.previewerDom, this.editor.editor, l); + f.showBubble(), this.bubbleHandler[i] = f; + } + } }, { key: "showCodeBlockPreviewerBubbles", value: function(i, o) { + if (this.bubbleHandler[i] && this.bubbleHandler[i].target === o) + this.removeHoverBubble.cancel(); + else { + this.$removeAllPreviewerBubbles("hover"), this.$createPreviewerBubbles(i, "codeBlock-".concat(i, "-handler")); + var l = new t2n(i, o, this.bubble[i], this.previewerDom, this.editor.editor, this); + l.showBubble(this.$isEnableBubbleAndEditorShow()), this.bubbleHandler[i] = l; + } + } }, { key: "$showImgPreviewerBubbles", value: function(i) { + var o; + this.$createPreviewerBubbles(); + var l = Su(this.previewerDom.querySelectorAll("img")); + if (this.totalImgs = l.length, this.imgIndex = Lu(l).call(l, i), !this.beginChangeImgValue(i)) + return { emit: function() { + } }; + mFe.showBubble(i, this.bubble.click, this.previewerDom), mFe.bindChange(Bo(o = this.changeImgValue).call(o, this)), this.bubbleHandler.click = mFe; + } }, { key: "$showFormulaPreviewerBubbles", value: function(i, o) { + var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.$createPreviewerBubbles(i, "formula-hover-handler"); + var f = new A2n(i, o, this.bubble[i], this.previewerDom, this.editor); + f.showBubble((l == null ? void 0 : l.x) || 0, (l == null ? void 0 : l.y) || 0), this.bubbleHandler[i] = f; + } }, { key: "$showListPreviewerBubbles", value: function(i, o) { + this.$createPreviewerBubbles(i, "list-hover-handler"); + var l = new y2n(i, o, this.bubble[i], this.previewerDom, this.editor); + this.bubbleHandler[i] = l; + } }, { key: "beginChangeDrawioImg", value: function(i) { + var o, l = Su(this.previewerDom.querySelectorAll('img[data-type="drawio"]')), f = l.length, g = Lu(l).call(l, i), A = Epe(this.editor.editor.getValue()), b = A.match(T4t), v = b[g] ? Go(o = b[g].replace(/^!\[.*?\]\((.*?)\)/, "$1")).call(o) : ""; + if (b.length === f || i.getAttribute("src") === v) + for (var k = A.split(T4t), _ = 0, T = 0, L = 0, F = 0, U = 0; U < k.length; U++) { + var q = k[U]; + if (q === b[F]) { + if (F === g) + return L = T + q.length, T += q.replace(/^(!\[[^\]]*])[^\n]*$/, "$1").length, this.editor.editor.setSelection({ line: _, ch: T }, { line: _, ch: L }), this.editor.dealSpecialWords(), !0; + F += 1; + } else { + var Z, R; + _ += (Z = (R = q.match(/\n/g)) === null || R === void 0 ? void 0 : R.length) !== null && Z !== void 0 ? Z : 0, /\n/.test(q) ? T = q.replace(/^[\w\W]*\n([^\n]*)$/, "$1").length : T += q.length; + } + } + return !1; + } }, { key: "beginChangeImgValue", value: function(i) { + var o, l = Epe(this.editor.editor.getValue()), f = i.getAttribute("src"), g = /(!\[[^\n]*?\]\([^)]+\))/g, A = l.match(g), b = A[this.imgIndex] ? Go(o = A[this.imgIndex].replace(/^!\[.*?\]\((.*?)\)/, "$1")).call(o) : ""; + if (A.length === this.totalImgs || f === b) + for (var v = l.split(g), k = /^!\[.*?((?:#center|#right|#left|#float-right|#float-left|#border|#B|#shadow|#S|#radius|#R)+).*?\].*$/, _ = 0, T = 0, L = 0, F = 0, U = 0; U < v.length; U++) { + var q, Z, R = v[U]; + if (R === A[F]) { + if (F === this.imgIndex) + return this.imgAppend = !!k.test(R) && R.replace(k, "$1"), L = (T += R.replace(/^(!\[[^#\]]*).*$/, "$1").length) + R.replace(/^(!\[[^#\]]*)([^\]]*?)\].*$/, "$2").length, this.editor.editor.setSelection({ line: _, ch: T }, { line: _, ch: L }), !0; + F += 1; + } + _ += (q = (Z = R.match(/\n/g)) === null || Z === void 0 ? void 0 : Z.length) !== null && q !== void 0 ? q : 0, /\n/.test(R) ? T = R.replace(/^[\w\W]*\n([^\n]*)$/, "$1").length : T += R.length; + } + return !1; + } }, { key: "changeImgValue", value: function(i, o) { + var l, f, g = this.imgAppend ? " ".concat(this.imgAppend) : ""; + this.editor.editor.replaceSelection(At(l = At(f = "#".concat(Math.round(o.width), "px #")).call(f, Math.round(o.height), "px")).call(l, g), "around"); + } }, { key: "$createPreviewerBubbles", value: function() { + var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "click", o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "img-size-handler"; + this.bubble[i] || (this.bubble[i] = document.createElement("div"), this.bubble[i].className = "cherry-previewer-".concat(o), this.previewerDom.after(this.bubble[i]), i === "hover" && (this.bubble[i].addEventListener("mouseover", this.removeHoverBubble.cancel), this.bubble[i].addEventListener("mouseout", this.removeHoverBubble)), this.previewer.$cherry.wrapperDom.style.overflow = "hidden"); + } }, { key: "$showBorderBubbles", value: function() { + } }, { key: "$showBtnBubbles", value: function() { + } }]), r; +}(), hTt = ql.setInterval, k2n = function() { + function r(i, o) { + vi(this, r), Ui(this, "options", { loadingImgPath: "", maxNumPerTime: 2, noLoadImgNum: 5, autoLoadImgNum: 5, maxTryTimesPerSrc: 2, beforeLoadOneImgCallback: function(l) { + }, failLoadOneImgCallback: function(l) { + }, afterLoadOneImgCallback: function(l) { + }, afterLoadAllImgCallback: function() { + } }), lL(this.options, i), this.previewer = o, this.srcLoadedList = [], this.srcFailLoadedList = {}, this.srcLoadingList = [], this.srcList = [], this.loadingImgNum = 0, this.lastLoadAllNum = 0, this.previewerDom = this.previewer.getDomContainer(); + } + return yi(r, [{ key: "isLoaded", value: function(i) { + var o; + return $me(o = this.srcLoadedList).call(o, i); + } }, { key: "isLoading", value: function(i) { + var o; + return $me(o = this.srcLoadingList).call(o, i); + } }, { key: "loadFailed", value: function(i) { + this.srcFailLoadedList[i] = this.srcFailLoadedList[i] ? this.srcFailLoadedList[i] + 1 : 1; + } }, { key: "isFailLoadedMax", value: function(i) { + return this.srcFailLoadedList[i] && this.srcFailLoadedList[i] > this.options.maxTryTimesPerSrc; + } }, { key: "isLoadedAllDone", value: function() { + var i = this.previewerDom.querySelectorAll("img[data-src]"), o = this.srcLoadedList.length; + return i.length <= 0 && this.lastLoadAllNum < o && (this.lastLoadAllNum = o, this.options.afterLoadAllImgCallback(), !0); + } }, { key: "loadOneImg", value: function() { + for (var i, o, l = this, f = this.previewerDom.querySelectorAll("img[data-src]"), g = this.previewerDom.getBoundingClientRect(), A = g.height, b = g.top, v = A + b + 100, k = (i = (o = window) === null || o === void 0 ? void 0 : o.innerHeight) !== null && i !== void 0 ? i : 100, _ = Math.min(v, k), T = b - 30, L = this.options.autoLoadImgNum, F = function(Z) { + var R = f[Z], J = R.getBoundingClientRect(), he = J.top >= T && J.top <= _, Y = l.srcList.length < L; + if (!he && !Y) + return "continue"; + var ue = R.getAttribute("data-src"); + if (!ue || ((l.isLoaded(ue) || l.isFailLoadedMax(ue)) && (R.setAttribute("src", ue), R.removeAttribute("data-src")), l.isLoading(ue))) + return "continue"; + if (l.loadingImgNum >= l.options.maxNumPerTime) + return { v: !1 }; + var le, be = l.options.beforeLoadOneImgCallback(R); + if (be !== void 0 && !be) + return l.loadFailed(ue), "continue"; + ue = (le = R.getAttribute("data-src")) !== null && le !== void 0 ? le : ue, l.loadingImgNum += 1, l.srcList.push(ue), l.srcLoadingList.push(ue), l.tryLoadOneImg(ue, function() { + var ke, de; + R.setAttribute("src", ue), R.removeAttribute("data-src"), l.srcLoadedList.push(ue), l.loadingImgNum -= 1, gk(ke = l.srcLoadingList).call(ke, Lu(de = l.srcLoadingList).call(de, ue), 1), l.options.afterLoadOneImgCallback(R), l.loadOneImg(); + }, function() { + var ke, de; + l.loadFailed(ue), l.loadingImgNum -= 1, gk(ke = l.srcLoadingList).call(ke, Lu(de = l.srcLoadingList).call(de, ue), 1), l.options.failLoadOneImgCallback(R), l.loadOneImg(); + }); + }, U = 0; U < f.length; U++) { + var q = F(U); + if (q !== "continue" && Yl(q) === "object") + return q.v; + } + return !1; + } }, { key: "tryLoadOneImg", value: function(i, o, l) { + var f = document.createElement("img"); + f.onload = function() { + o(), f.remove(); + }, f.onerror = function() { + l(), f.remove(); + }, f.setAttribute("src", i); + } }, { key: "doLazyLoad", value: function() { + var i = this; + if (!this.isRunning) { + this.isRunning = !0; + var o = this.options.maxNumPerTime; + (function l() { + i.loadOneImg(); + for (var f = 1; f < o; f++) + i.loadOneImg(); + lm(l, 200); + })(), hTt(function() { + i.isLoadedAllDone(); + }, 1e3); + } + } }, { key: "changeDataSrc2Src", value: function(i) { + var o = this; + return i.replace(/]*?)data-src="([^"]+)"([^>]*?)>/g, function(l, f, g, A) { + var b, v; + return At(b = At(v = "").replace(/ {2,}/g, " "); + }); + } }, { key: "changeLoadedDataSrc2Src", value: function(i) { + var o = this; + return i.replace(/]*?)data-src="([^"]+)"([^>]*?)>/g, function(l, f, g, A) { + var b, v; + return o.isLoaded(g) ? At(b = At(v = "").replace(/ {2,}/g, " ") : l; + }); + } }, { key: "$removeSrc", value: function(i) { + return " ".concat(i).replace(/^(.*?) src=".*?"(.*?$)/, "$1$2"); + } }, { key: "changeSrc2DataSrc", value: function(i) { + var o = this, l = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], f = this.options.loadingImgPath, g = this.options.noLoadImgNum, A = 0; + return i.replace(/]*?)src="([^"]+)"([^>]*?)>/g, function(b, v, k, _) { + var T, L, F, U, q; + if (/data-src="/.test(b) || !/ src="/.test(b) || g < 0) + return b; + if (l === !1) { + if (A < g) + return A += 1, b; + if (o.isLoaded(k)) + return b; + } + return f ? At(F = At(U = At(q = "") : At(T = At(L = ""); + }); + } }]), r; +}(), NFe = function() { +}, x2n = function() { + function r(i) { + vi(this, r), Ui(this, "applyingDomChanges", !1), Ui(this, "syncScrollLockTimer", 0), Ui(this, "isMobilePreview", !1), this.options = { previewerDom: document.createElement("div"), virtualDragLineDom: document.createElement("div"), editorMaskDom: document.createElement("div"), previewerMaskDom: document.createElement("div"), minBlockPercentage: 0.2, value: "", enablePreviewerBubble: !0, afterUpdateCallBack: [], isPreviewOnly: !1, previewerCache: { html: "", htmlChanged: !1, layout: {} }, lazyLoadImg: { loadingImgPath: "", maxNumPerTime: 2, noLoadImgNum: 5, autoLoadImgNum: 5, maxTryTimesPerSrc: 2, beforeLoadOneImgCallback: function(o) { + }, failLoadOneImgCallback: function(o) { + }, afterLoadOneImgCallback: function(o) { + }, afterLoadAllImgCallback: function() { + } } }, lL(this.options, i), this.$cherry = this.options.$cherry, this.instanceId = this.$cherry.getInstanceId(), this.animation = {}; + } + return yi(r, [{ key: "init", value: function(i) { + this.disableScrollListener = !1, this.bindScroll(), this.editor = i, this.bindDrag(), this.$initPreviewerBubble(), this.lazyLoadImg = new k2n(this.options.lazyLoadImg, this), this.lazyLoadImg.doLazyLoad(), this.onMouseDown(); + } }, { key: "$initPreviewerBubble", value: function() { + this.previewerBubble = new w2n(this); + } }, { key: "getDomContainer", value: function() { + return this.isMobilePreview ? this.options.previewerDom.querySelector(".cherry-mobile-previewer-content") : this.options.previewerDom; + } }, { key: "getDom", value: function() { + return this.options.previewerDom; + } }, { key: "getValue", value: function() { + var i, o, l = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], f = ""; + if (f = this.isPreviewerHidden() ? this.options.previewerCache.html : this.getDomContainer().innerHTML, f = this.lazyLoadImg.changeDataSrc2Src(f), !l || !this.$cherry.wrapperDom) + return f; + var g = this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"), A = this.$cherry.wrapperDom.getAttribute("data-code-block-theme"); + return At(i = At(o = '
    ')).call(i, f, "
    "); + } }, { key: "isPreviewerHidden", value: function() { + return this.options.previewerDom.classList.contains("cherry-previewer--hidden"); + } }, { key: "calculateRealLayout", value: function(i) { + var o = +(i / (this.editor.options.editorDom.getBoundingClientRect().width + this.options.previewerDom.getBoundingClientRect().width)).toFixed(3); + o < this.options.minBlockPercentage ? o = +this.options.minBlockPercentage.toFixed(3) : o > 1 - this.options.minBlockPercentage && (o = +(1 - this.options.minBlockPercentage).toFixed(3)); + var l = +(1 - o).toFixed(3); + return { editorPercentage: "".concat(100 * o, "%"), previewerPercentage: "".concat(100 * l, "%") }; + } }, { key: "setRealLayout", value: function(i, o) { + var l = i, f = o; + l && f || (l = "50%", f = "50%"), this.editor.options.editorDom.style.width = l, this.options.previewerDom.style.width = f, this.syncVirtualLayoutFromReal(); + } }, { key: "syncVirtualLayoutFromReal", value: function() { + var i = this.editor.options.editorDom.getBoundingClientRect(), o = this.options.previewerDom.getBoundingClientRect(), l = i.height, f = this.editor.options.editorDom.offsetTop, g = i.left, A = i.width, b = o.left ? o.left - g : 0, v = o.width || 0, k = this.options, _ = k.editorMaskDom, T = k.previewerMaskDom, L = k.virtualDragLineDom; + L.style.top = "".concat(f, "px"), L.style.left = "".concat(b, "px"), L.style.bottom = "0px", _.style.height = "".concat(l, "px"), _.style.top = "".concat(f, "px"), _.style.left = "0px", _.style.width = "".concat(A, "px"), T.style.height = "".concat(l, "px"), T.style.top = "".concat(f, "px"), T.style.left = "".concat(b, "px"), T.style.width = "".concat(v, "px"); + } }, { key: "calculateVirtualLayout", value: function(i, o) { + var l = this.editor.options.editorDom.getBoundingClientRect().width + this.options.previewerDom.getBoundingClientRect().width, f = i.toFixed(0), g = o - i; + g < l * this.options.minBlockPercentage ? g = +(l * this.options.minBlockPercentage).toFixed(0) : g > l * (1 - this.options.minBlockPercentage) && (g = +(l * (1 - this.options.minBlockPercentage)).toFixed(0)); + var A = l - g; + return { startWidth: Ky(f, 10), leftWidth: g, rightWidth: A }; + } }, { key: "setVirtualLayout", value: function(i, o, l) { + var f = this.options, g = f.editorMaskDom, A = f.previewerMaskDom, b = f.virtualDragLineDom; + g.style.left = "".concat(0, "px"), g.style.width = "".concat(o, "px"), b.style.left = "".concat(0 + o, "px"), A.style.left = "".concat(0 + o, "px"), A.style.width = "".concat(l, "px"); + } }, { key: "bindDrag", value: function() { + var i, o = this, l = function(g) { + g && g.stopPropagation ? g.stopPropagation() : g.cancelBubble = !0, g.preventDefault ? g.preventDefault() : window.event.returnValue = !1; + var A = o.editor.options.editorDom.getBoundingClientRect().left, b = g.clientX, v = o.calculateVirtualLayout(A, b); + return o.setVirtualLayout(v.startWidth, v.leftWidth, v.rightWidth), !1; + }, f = function g(A) { + A && A.stopPropagation ? A.stopPropagation() : A.cancelBubble = !0, A.preventDefault ? A.preventDefault() : window.event.returnValue = !1; + var b = o.editor.options.editorDom.getBoundingClientRect().left, v = A.clientX, k = o.calculateRealLayout(v - b); + return o.setRealLayout(k.editorPercentage, k.previewerPercentage), o.editor.options.editorDom.classList.remove("no-select"), o.options.previewerDom.classList.remove("no-select"), o.options.editorMaskDom.classList.remove("cherry-editor-mask--show"), o.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"), o.options.virtualDragLineDom.classList.remove("cherry-drag--show"), o.editor.editor.refresh(), QMe(document, "mousemove", l, !1), QMe(document, "mouseup", g, !1), !1; + }; + hO(this.options.virtualDragLineDom, "mousedown", function(g) { + g && g.stopPropagation ? g.stopPropagation() : g.cancelBubble = !0, g.preventDefault ? g.preventDefault() : window.event.returnValue = !1, o.syncVirtualLayoutFromReal(); + var A = o.editor.options.editorDom.getBoundingClientRect().left, b = g.clientX, v = o.calculateVirtualLayout(A, b); + return o.setVirtualLayout(v.startWidth, v.leftWidth, v.rightWidth), o.options.virtualDragLineDom.classList.contains("cherry-drag--show") || (o.options.virtualDragLineDom.classList.add("cherry-drag--show"), o.options.editorMaskDom.classList.add("cherry-editor-mask--show"), o.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"), o.options.previewerDom.classList.add("no-select"), o.editor.options.editorDom.classList.add("no-select"), hO(document, "mousemove", l, !1), hO(document, "mouseup", f, !1)), !1; + }, !1), hO(window, "resize", Bo(i = this.syncVirtualLayoutFromReal).call(i, this), !1), this.setRealLayout(); + } }, { key: "bindScroll", value: function() { + var i = this, o = this.getDomContainer(); + NFe = function() { + if (i.applyingDomChanges) + k3.log(/* @__PURE__ */ new Date(), "sync scroll locked"); + else if (i.disableScrollListener) + i.disableScrollListener = !1; + else if (o.scrollTop <= 0) + i.editor.scrollToLineNum(0, 0, 1); + else if (o.scrollTop + o.offsetHeight + 10 > o.scrollHeight) + i.editor.scrollToLineNum(null); + else { + for (var l, f = o.getBoundingClientRect(), g = { x: f.left + f.width / 2, y: f.top + 1 }, A = function(he, Y) { + if (typeof document.elementsFromPoint == "function") + return document.elementsFromPoint(he, Y); + if (typeof document.msElementsFromPoint == "function") { + var ue = document.msElementsFromPoint(he, Y); + return ue !== null ? Su(ue) : ue; + } + var le, be = [], ke = []; + do { + var de = document.elementFromPoint(he, Y); + le !== de ? (le = de, be.push(le), ke.push(le.style.pointerEvents), le.style.pointerEvents = "none") : le = null; + } while (le); + return no(be).call(be, function(Te, xe) { + Te.style.pointerEvents = ke[xe]; + }), be; + }(g.x, g.y), b = 0; b < A.length; b++) + if (o.contains(A[b])) { + l = A[b]; + break; + } + if (l && l !== o) { + for (var v = l.closest("[data-sign]"); v && v.parentElement && v.parentElement !== o; ) + v = v.parentElement.closest("[data-sign]"); + if (v) { + for (var k = 0, _ = v; _; ) + k += +_.getAttribute("data-lines"), _ = _.previousElementSibling; + var T = getComputedStyle(v), L = g2(T.marginTop), F = g2(T.marginBottom), U = v.getBoundingClientRect(), q = U.height + L + F, Z = U.y - L - f.y, R = +v.getAttribute("data-lines"), J = 100 * Math.abs(Z) / q / 100; + return i.editor.scrollToLineNum(k - R, R, J); + } + } + } + }, hO(o, "scroll", NFe, !1), hO(o, "wheel", function() { + i.disableScrollListener = !1, cancelAnimationFrame(i.animation.timer), i.animation.timer = 0; + }, !1); + } }, { key: "removeScroll", value: function() { + QMe(this.getDomContainer(), "scroll", NFe, !1); + } }, { key: "$html2H", value: function(i) { + if (i === void 0) + return S5t("span", {}, []); + if (!i.tagName) + return i.textContent; + var o = i.tagName, l = i.getAttribute("data-cm-atomic") === "true", f = this.$getAttrsForH(i.attributes), g = []; + if (!l && i.childNodes && i.childNodes.length > 0) + for (var A = 0; A < i.childNodes.length; A++) + g.push(this.$html2H(i.childNodes[A])); + return S5t(o, f, g); + } }, { key: "$getAttrsForH", value: function(i) { + if (!i) + return {}; + for (var o = { dataset: {} }, l = 0; l < i.length; l++) { + var f, g = i[l].name, A = i[l].value; + /^(width|height)$/i.test(g) && isNaN(A) ? (o.style = o.style ? o.style : [], o.style.push(At(f = "".concat(g, ":")).call(f, A))) : /^(class|id|href|rel|target|src|title|controls|align|width|height|style|open|contenteditable)$/i.test(g) ? (g = (g = g === "class" ? "className" : g) === "contenteditable" ? "contentEditable" : g) === "style" ? (o.style = o.style ? o.style : [], o.style.push(A)) : o[g] = g === "open" || A : (g === "colspan" ? g = "colSpan" : g === "rowspan" && (g = "rowSpan"), /^data-/i.test(g) ? g = g.replace(/^data-/i, "") : o[g] = A, o.dataset[g] = A); + } + return o.style && (o.style = { cssText: o.style.join(";") }), o; + } }, { key: "$updateDom", value: function(i, o) { + var l = Jpn(this.$html2H(o), this.$html2H(i)); + return lmn(o, l); + } }, { key: "$testChild", value: function(i) { + return !i.parentNode || !!i.parentNode.classList.contains("cherry-previewer") || !i.parentNode.getAttribute("data-sign") && this.$testChild(i.parentNode); + } }, { key: "_testMaxIndex", value: function(i, o) { + if (!o) + return !1; + for (var l = 0; l < o.length; l++) + if (i <= o[l]) + return !0; + return !1; + } }, { key: "$getSignData", value: function(i) { + for (var o = i.querySelectorAll("[data-sign]"), l = { list: [], signs: {} }, f = 0; f < o.length; f++) + if (this.$testChild(o[f])) { + var g = o[f].getAttribute("data-sign"); + l.list.push({ sign: g, dom: o[f] }), l.signs[g] || (l.signs[g] = []), l.signs[g].push(f); + } + return l; + } }, { key: "_hasNewSign", value: function(i, o, l) { + var f; + return i.length > 0 && (no(i).call(i, function(g, A) { + var b; + Da(b = g.sign).call(b, 0, 12) === Da(o).call(o, 0, 12) && A > l && (f = { index: A > l ? A : l, sign: o }); + }), f); + } }, { key: "$dealWithMyersDiffResult", value: function(i, o, l, f) { + var g = this; + no(i).call(i, function(A) { + switch (l[A.newIndex].dom && (l[A.newIndex].dom.innerHTML = g.lazyLoadImg.changeLoadedDataSrc2Src(l[A.newIndex].dom.innerHTML)), A.type) { + case "delete": + f.removeChild(o[A.oldIndex].dom); + break; + case "insert": + o[A.oldIndex] ? f.insertBefore(l[A.newIndex].dom, o[A.oldIndex].dom) : f.appendChild(l[A.newIndex].dom); + break; + case "update": + try { + if (l[A.newIndex].dom.querySelector("svg")) + throw new Error(); + g.$updateDom(l[A.newIndex].dom, o[A.oldIndex].dom); + } catch { + f.insertBefore(l[A.newIndex].dom, o[A.oldIndex].dom), f.removeChild(o[A.oldIndex].dom); + } + } + }); + } }, { key: "$dealUpdate", value: function(i, o, l) { + if (l.list !== o.list) { + if (l.list.length && o.list.length) { + var f = new umn(l.list, o.list, function(b, v) { + return b[v].sign; + }).doDiff(); + k3.log(f), this.$dealWithMyersDiffResult(f, o.list, l.list, i); + } else if (l.list.length && !o.list.length) { + var g; + k3.log("add all"), no(g = l.list).call(g, function(b) { + i.appendChild(b.dom); + }); + } else if (!l.list.length && o.list.length) { + var A; + k3.log("delete all"), no(A = o.list).call(A, function(b) { + i.removeChild(b.dom); + }); + } + } + } }, { key: "refresh", value: function(i) { + this.getDomContainer().innerHTML = i; + } }, { key: "update", value: function(i) { + var o = this, l = this.lazyLoadImg.changeSrc2DataSrc(i); + if (this.isPreviewerHidden()) + this.doHtmlCache(l); + else { + window.clearTimeout(this.syncScrollLockTimer), this.applyingDomChanges = !0; + var f = document.createElement("div"), g = this.getDomContainer(); + f.innerHTML = l; + var A = this.$getSignData(f), b = this.$getSignData(g); + try { + this.$dealUpdate(g, b, A), this.afterUpdate(); + } finally { + this.syncScrollLockTimer = lm(function() { + o.applyingDomChanges = !1; + }, 50); + } + } + } }, { key: "$dealEditAndPreviewOnly", value: function() { + var i = this, o = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], l = { editorPercentage: "0%", previewerPercentage: "100%" }; + o && (l = { editorPercentage: "100%", previewerPercentage: "0%" }); + var f = this.editor.options.editorDom.getBoundingClientRect().width, g = this.calculateRealLayout(f); + this.options.previewerCache.layout = g, this.setRealLayout(l.editorPercentage, l.previewerPercentage), this.options.virtualDragLineDom.classList.add("cherry-drag--hidden"); + var A = this.options.previewerDom, b = this.editor.options.editorDom; + o ? (A.classList.add("cherry-previewer--hidden"), b.classList.add("cherry-editor--full"), A.classList.remove("cherry-preview--full"), b.classList.remove("cherry-editor--hidden")) : (A.classList.add("cherry-preview--full"), b.classList.add("cherry-editor--hidden"), A.classList.remove("cherry-previewer--hidden"), b.classList.remove("cherry-editor--full")), lm(function() { + return i.editor.editor.refresh(); + }, 0); + } }, { key: "previewOnly", value: function() { + this.$dealEditAndPreviewOnly(!1), this.options.previewerCache.htmlChanged && this.update(this.options.previewerCache.html), this.cleanHtmlCache(), kc.emit(this.instanceId, kc.Events.previewerOpen), kc.emit(this.instanceId, kc.Events.editorClose); + } }, { key: "editOnly", value: function() { + this.$dealEditAndPreviewOnly(!0), this.cleanHtmlCache(), kc.emit(this.instanceId, kc.Events.previewerClose), kc.emit(this.instanceId, kc.Events.editorOpen); + } }, { key: "recoverPreviewer", value: function() { + var i = this; + this.options.previewerDom.classList.remove("cherry-previewer--hidden"), this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"), this.editor.options.editorDom.classList.remove("cherry-editor--full"); + var o = this.options.previewerCache.layout; + this.setRealLayout(o.editorPercentage, o.previewerPercentage), this.options.previewerCache.htmlChanged && this.update(this.options.previewerCache.html), this.cleanHtmlCache(), kc.emit(this.instanceId, kc.Events.previewerOpen), kc.emit(this.instanceId, kc.Events.editorOpen), lm(function() { + return i.editor.editor.refresh(); + }, 0); + } }, { key: "doHtmlCache", value: function(i) { + this.options.previewerCache.html = i, this.options.previewerCache.htmlChanged = !0; + } }, { key: "cleanHtmlCache", value: function() { + this.options.previewerCache.html = "", this.options.previewerCache.htmlChanged = !1, this.options.previewerCache.layout = {}; + } }, { key: "afterUpdate", value: function() { + var i; + Zs(i = this.options.afterUpdateCallBack).call(i, function(o) { + return o(); + }), this.highlightLineNum === void 0 && (this.highlightLineNum = 0), this.highlightLine(this.highlightLineNum); + } }, { key: "registerAfterUpdate", value: function(i) { + if (kk(i)) { + var o; + this.options.afterUpdateCallBack = At(o = this.options.afterUpdateCallBack).call(o, i); + } else { + if (!i) + throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined"); + this.options.afterUpdateCallBack.push(i); + } + } }, { key: "$getTopByLineNum", value: function(i) { + var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, l = this.getDomContainer(); + if (i === null) + return l.scrollHeight; + for (var f = typeof i == "number" ? i : Ky(i, 10), g = l.querySelectorAll("[data-sign]"), A = 0, b = l.offsetTop, v = 0; v < g.length; v++) + if (g[v].parentNode === l) { + var k = Ky(g[v].getAttribute("data-lines"), 10); + if (!(A + k < f)) { + var _ = _0n(g[v]), T = _.height, L = _.offsetTop - b, F = L + T * o; + return k > 1 && (F = L + (k - Math.abs(f - (A + k)) - 1) / k * T + T / k * o), F; + } + A += k; + } + return l.scrollHeight; + } }, { key: "highlightLine", value: function(i) { + var o, l, f, g, A, b = this.getDomContainer(); + if (no(o = b.querySelectorAll(".cherry-highlight-line")).call(o, function(L) { + L.classList.remove("cherry-highlight-line"); + }), ((l = this.$cherry) === null || l === void 0 || (f = l.status) === null || f === void 0 ? void 0 : f.previewer) === "show" && ((g = this.$cherry) === null || g === void 0 || (A = g.status) === null || A === void 0 ? void 0 : A.editor) === "show") { + for (var v = b.querySelectorAll("[data-sign]"), k = 0, _ = 0; _ < v.length; _++) + if (v[_].parentNode === b) { + var T = Ky(v[_].getAttribute("data-lines"), 10); + if (!(k + T < i)) + return this.highlightLineNum = i, void v[_].classList.add("cherry-highlight-line"); + k += T; + } + } + } }, { key: "scrollToLineNumWithOffset", value: function(i, o) { + var l = this.$getTopByLineNum(i) - o; + this.$scrollAnimation(l), this.highlightLine(i); + } }, { key: "$scrollAnimation", value: function(i) { + var o = this; + this.animation.destinationTop = i, !this.animation.timer && (this.animation.timer = requestAnimationFrame(function l() { + var f = o.getDomContainer(), g = f.scrollTop, A = o.animation.destinationTop - g, b = Math.ceil(Math.min(Math.abs(A), Math.max(1, Math.abs(A) / (100 / 16.7)))); + if (A === 0 || g >= f.scrollHeight || b > Math.abs(A)) + return cancelAnimationFrame(o.animation.timer), void (o.animation.timer = 0); + o.disableScrollListener = !0, o.getDomContainer().scrollTo(null, g + A / Math.abs(A) * b), o.animation.timer = requestAnimationFrame(l); + })); + } }, { key: "scrollToLineNum", value: function(i, o) { + var l = this.$getTopByLineNum(i, o); + this.$scrollAnimation(l); + } }, { key: "onMouseDown", value: function() { + var i = this; + hO(this.getDomContainer(), "mousedown", function() { + lm(function() { + kc.emit(i.instanceId, kc.Events.cleanAllSubMenus); + }); + }); + } }, { key: "export", value: function() { + var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pdf", o = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "") || this.getDomContainer().innerText.match(/^\s*([^\s][^\n]*)\n/)[1] || "cherry-export"; + i === "pdf" ? function(l, f) { + var g = document.title; + document.title = f, QEt(l, function(A, b) { + window.print(), b(), document.title = g; + }); + }(this.getDomContainer(), o) : i === "screenShot" || i === "img" ? abn(this.getDomContainer(), o) : i === "markdown" ? function(l, f) { + var g = new Blob([l], { type: "text/markdown;charset=utf-8" }), A = document.createElement("a"); + A.style.display = "none", A.href = cG.createObjectURL(g), A.download = "".concat(f, ".md"), document.body.appendChild(A), A.click(), document.body.removeChild(A); + }(this.$cherry.getMarkdown(), o) : i === "html" && function(l, f) { + var g = new Blob([l], { type: "text/markdown;charset=utf-8" }), A = document.createElement("a"); + A.style.display = "none", A.href = cG.createObjectURL(g), A.download = "".concat(f, ".html"), document.body.appendChild(A), A.click(), document.body.removeChild(A); + }(this.getValue(), o); + } }]), r; +}(), l$ = navigator.userAgent, C2n = navigator.platform, P6t = /MSIE \d/.test(l$), R6t = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l$), VDe = /Edge\/(\d+)/.exec(l$); +(P6t || R6t || VDe) && (P6t ? document.documentMode : (VDe || R6t)[1]); +var fTt = /Opera\//.test(l$), _2n = !VDe && /AppleWebKit/.test(l$) && /Mobile\/\w+/.test(l$), E2n = _2n || /Mac/.test(C2n), Sne = fTt && l$.match(/Version\/(\d*\.\d*)/); +function T2n(r) { + var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "absolute", o = r.getBoundingClientRect(); + return i === "fixed" ? o : i === "sidebar" ? { left: xc.getTargetParentByButton(r).offsetLeft - 130 + o.width, top: r.offsetTop + o.height / 2, width: o.width, height: o.height } : { left: r.offsetLeft, top: r.offsetTop, width: o.width, height: o.height }; +} +Sne && (Sne = Number(Sne[1])), Sne && Sne >= 15 && (fTt = !1); +var xc = function() { + function r(i) { + vi(this, r), Ui(this, "_onClick", void 0), this.$cherry = i, this.bubbleMenu = !1, this.subMenu = null, this.name = "", this.editor = i.editor, this.locale = i.locale, this.dom = null, this.updateMarkdown = !0, this.subMenuConfig = [], this.noIcon = !1, this.cacheOnce = !1, this.positionModel = "absolute", typeof this._onClick == "function" && (k3.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"), this.fire = this._onClick); + } + return yi(r, [{ key: "getSubMenuConfig", value: function() { + return this.subMenuConfig; + } }, { key: "setName", value: function(i, o) { + this.name = i, this.iconName = o; + } }, { key: "setCacheOnce", value: function(i) { + this.cacheOnce = i; + } }, { key: "getAndCleanCacheOnce", value: function() { + this.updateMarkdown = !0; + var i = this.cacheOnce; + return this.cacheOnce = !1, i; + } }, { key: "hasCacheOnce", value: function() { + return this.cacheOnce !== !1; + } }, { key: "createBtn", value: function() { + var i = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], o = ih("span", i ? "cherry-dropdown-item" : "cherry-toolbar-button cherry-toolbar-".concat(this.iconName ? this.iconName : this.name), { title: this.locale[this.name] || p5(this.name) }); + if (this.iconName && !this.noIcon) { + var l = ih("i", "ch-icon ch-icon-".concat(this.iconName)); + o.appendChild(l); + } + return (i || this.noIcon) && (o.innerHTML += this.locale[this.name] || p5(this.name)), i || this.dom || (this.dom = o), o; + } }, { key: "createSubBtnByConfig", value: function(i) { + var o = i.name, l = i.iconName, f = i.onclick, g = ih("span", "cherry-dropdown-item", { title: this.locale[o] || p5(o) }); + if (l) { + var A = ih("i", "ch-icon ch-icon-".concat(l)); + g.appendChild(A); + } + return g.innerHTML += this.locale[o] || p5(o), g.addEventListener("click", f, !1), g; + } }, { key: "fire", value: function(i) { + var o = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + if (i == null || i.stopPropagation(), typeof this.onClick == "function") { + var f = this.editor.editor.getSelections(); + this.isSelections = f.length > 1; + var g = Zs(f).call(f, function(A, b, v) { + return o.onClick(A, l, i) || v[b]; + }); + !this.bubbleMenu && this.updateMarkdown && (this.editor.editor.replaceSelections(g, "around"), this.editor.editor.focus(), this.$afterClick()); + } + } }, { key: "$getSelectionRange", value: function() { + var i = this.editor.editor.listSelections()[0], o = i.anchor, l = i.head; + return o.line === l.line && o.ch > l.ch || o.line > l.line ? { begin: l, end: o } : { begin: o, end: l }; + } }, { key: "registerAfterClickCb", value: function(i) { + this.afterClickCb = i; + } }, { key: "$afterClick", value: function() { + typeof this.afterClickCb != "function" || this.isSelections || (this.afterClickCb(), this.afterClickCb = null); + } }, { key: "setLessSelection", value: function(i, o) { + var l, f, g, A, b = this.editor.editor, v = this.$getSelectionRange(), k = v.begin, _ = v.end, T = { line: ((l = i.match(/\n/g)) === null || l === void 0 ? void 0 : l.length) > 0 ? k.line + i.match(/\n/g).length : k.line, ch: ((f = i.match(/\n/g)) === null || f === void 0 ? void 0 : f.length) > 0 ? i.replace(/^[\s\S]*?\n([^\n]*)$/, "$1").length : k.ch + i.length }, L = ((g = o.match(/\n/g)) === null || g === void 0 ? void 0 : g.length) > 0 ? _.line - o.match(/\n/g).length : _.line, F = { line: L, ch: ((A = o.match(/\n/g)) === null || A === void 0 ? void 0 : A.length) > 0 ? b.getLine(L).length : _.ch - o.length }; + b.setSelection(T, F); + } }, { key: "getMoreSelection", value: function(i, o, l) { + var f = this.editor.editor, g = this.$getSelectionRange(), A = g.begin, b = g.end, v = /\n/.test(i) ? 0 : A.ch - i.length; + v = v < 0 ? 0 : v; + var k, _ = /\n/.test(i) ? A.line - i.match(/\n/g).length : A.line, T = { line: _ = _ < 0 ? 0 : _, ch: v }, L = b.line, F = b.ch; + /\n/.test(o) ? (L = b.line + o.match(/\n/g).length, F = (k = f.getLine(L)) === null || k === void 0 ? void 0 : k.length) : F = f.getLine(b.line).length < b.ch + o.length ? f.getLine(b.line).length : b.ch + o.length; + var U = { line: L, ch: F }; + f.setSelection(T, U), l() === !1 && f.setSelection(A, b); + } }, { key: "getSelection", value: function(i) { + var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "word", l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], f = this.editor.editor; + if (this.isSelections || i && !l) + return i; + if (o === "line") { + var g = this.$getSelectionRange(), A = g.begin, b = g.end; + return f.setSelection({ line: A.line, ch: 0 }, { line: b.line, ch: f.getLine(b.line).length }), f.getSelection(); + } + if (o === "word") { + var v = f.findWordAt(f.getCursor()), k = v.anchor, _ = v.head; + return f.setSelection(k, _), f.getSelection(); + } + } }, { key: "bindSubClick", value: function(i, o) { + return this.fire(null, i); + } }, { key: "onClick", value: function(i, o, l) { + return i; + } }, { key: "shortcutKeys", get: function() { + return []; + } }, { key: "getMenuPosition", value: function() { + var i = r.getTargetParentByButton(this.dom), o = /cherry-sidebar/.test(i.className); + return /cherry-bubble/.test(i.className) || /cherry-floatmenu/.test(i.className) ? this.positionModel = "fixed" : this.positionModel = o ? "sidebar" : "absolute", T2n(this.dom, this.positionModel); + } }], [{ key: "getTargetParentByButton", value: function(i) { + var o = i.parentElement; + return /toolbar-(left|right)/.test(o.className) && (o = o.parentElement), o; + } }]), r; +}(); +function B2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var S2n = function(r) { + ja(o, xc); + var i = B2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("bold", "bold"), f; + } + return yi(o, [{ key: "$testIsBold", value: function(l) { + return /^\s*(\*\*|__)[\s\S]+(\1)/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = this.getSelection(l) || this.locale.bold; + return this.isSelections || this.$testIsBold(g) || this.getMoreSelection("**", "**", function() { + var A = f.editor.editor.getSelection(), b = f.$testIsBold(A); + return b && (g = A), b; + }), this.$testIsBold(g) ? g.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm, "$1$4$7") : (this.registerAfterClickCb(function() { + f.setLessSelection("**", "**"); + }), g.replace(/(^)([^\n]+)($)/gm, "$1**$2**$3")); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-b"]; + } }]), o; +}(); +function L2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var I2n = function(r) { + ja(o, xc); + var i = L2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("italic", "italic"), f; + } + return yi(o, [{ key: "$testIsItalic", value: function(l) { + return /^\s*(\*|_)[\s\S]+(\1)/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = this.getSelection(l) || this.locale.italic; + return this.isSelections || this.$testIsItalic(g) || this.getMoreSelection("*", "*", function() { + var A = f.editor.editor.getSelection(), b = f.$testIsItalic(A); + return b && (g = A), b; + }), this.$testIsItalic(g) ? g.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm, "$1$4$7") : (this.registerAfterClickCb(function() { + f.setLessSelection("*", "*"); + }), g.replace(/(^)([^\n]+)($)/gm, "$1*$2*$3")); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-i"]; + } }]), o; +}(); +function M2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var F2n = function(r) { + ja(o, xc); + var i = M2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("split", "|"), f; + } + return yi(o, [{ key: "createBtn", value: function() { + var l = document.createElement("i"); + return l.className = "cherry-toolbar-button cherry-toolbar-split", l; + } }]), o; +}(); +function v2(r, i) { + var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "word", l = arguments.length > 3 && arguments[3] !== void 0 && arguments[3]; + if (r.getSelections().length > 1 || i && !l) + return i; + if (o === "line") { + var f = r.listSelections()[0], g = f.anchor, A = f.head; + return g.line === A.line && g.ch > A.ch || g.line > A.line ? r.setSelection({ line: A.line, ch: 0 }, { line: g.line, ch: r.getLine(g.line).length }) : r.setSelection({ line: g.line, ch: 0 }, { line: A.line, ch: r.getLine(A.line).length }), r.getSelection(); + } + if (o === "word") { + var b = r.findWordAt(r.getCursor()), v = b.anchor, k = b.head; + return r.setSelection(v, k), r.getSelection(); + } +} +function O2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var D2n = function(r) { + ja(o, xc); + var i = O2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("strikethrough", "strike"), f; + } + return yi(o, [{ key: "$testIsStrike", value: function(l) { + return /(~~)[\s\S]+(\1)/.test(l); + } }, { key: "onClick", value: function(l) { + var f, g, A, b, v, k, _ = this, T = v2(this.editor.editor, l) || this.locale.strikethrough, L = !((f = this.$cherry) === null || f === void 0 || (g = f.options) === null || g === void 0 || (A = g.engine) === null || A === void 0 || (b = A.syntax) === null || b === void 0 || (v = b.strikethrough) === null || v === void 0) && v.needWhitespace ? " " : ""; + return this.isSelections || this.$testIsStrike(T) || this.getMoreSelection("".concat(L, "~~"), "~~".concat(L), function() { + var F = _.editor.editor.getSelection(), U = _.$testIsStrike(F); + return U && (T = F), U; + }), this.$testIsStrike(T) ? l.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g, "$2") : (this.registerAfterClickCb(function() { + _.setLessSelection("".concat(L, "~~"), "~~".concat(L)); + }), T.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g, At(k = "$1".concat(L, "~~$2~~")).call(k, L, "$3"))); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-d"]; + } }]), o; +}(); +function N2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var P2n = function(r) { + ja(o, xc); + var i = N2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("sub", "sub"), f; + } + return yi(o, [{ key: "$testIsSub", value: function(l) { + return /^\s*(\^\^)[\s\S]+(\1)/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = v2(this.editor.editor, l) || this.locale.sub; + return this.isSelections || this.$testIsSub(g) || this.getMoreSelection("^^", "^^", function() { + var A = f.editor.editor.getSelection(), b = f.$testIsSub(A); + return b && (g = A), b; + }), this.$testIsSub(g) ? g.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm, "$1$4$7") : (this.registerAfterClickCb(function() { + f.setLessSelection("^^", "^^"); + }), g.replace(/(^)([^\n]+)($)/gm, "$1^^$2^^$3")); + } }]), o; +}(); +function R2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Q2n = function(r) { + ja(o, xc); + var i = R2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("sup", "sup"), f; + } + return yi(o, [{ key: "$testIsSup", value: function(l) { + return /^\s*(\^)[\s\S]+(\1)/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = v2(this.editor.editor, l) || this.locale.sup; + return this.isSelections || this.$testIsSup(g) || this.getMoreSelection("^", "^", function() { + var A = f.editor.editor.getSelection(), b = f.$testIsSup(A); + return b && (g = A), b; + }), this.$testIsSup(g) ? l.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm, "$1$4$7") : (this.registerAfterClickCb(function() { + f.setLessSelection("^", "^"); + }), g.replace(/(^)([^\n]+)($)/gm, "$1^$2^$3")); + } }]), o; +}(); +function $2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var U2n = function(r) { + ja(o, xc); + var i = $2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("color", "color"), f.bubbleColor = new H2n(l), f; + } + return yi(o, [{ key: "$testIsColor", value: function(l, f) { + var g = /^\s*!!![^\s]+ [\s\S]+!!!\s*$/; + return l === "text" ? /^\s*!![^\s]+ [\s\S]+!!\s*$/.test(f) && !g.test(f) : g.test(f); + } }, { key: "onClick", value: function(l) { + var f = this, g = arguments.length > 2 ? arguments[2] : void 0, A = v2(this.editor.editor, l) || this.locale.color; + if (this.hasCacheOnce()) { + var b, v, k = this.getAndCleanCacheOnce(), _ = k.type, T = k.color, L = _ === "text" ? "!!".concat(T, " ") : "!!!".concat(T, " "), F = _ === "text" ? "!!" : "!!!"; + if (this.isSelections || this.$testIsColor(_, A) || this.getMoreSelection(L, F, function() { + var ke = f.editor.editor.getSelection(); + return !!f.$testIsColor(_, ke) && (A = ke, !0); + }), this.$testIsColor(_, A)) { + var U, q = new RegExp(At(U = "(^\\s*".concat(F, ")([^\\s]+) ([\\s\\S]+")).call(U, F, "\\s*$)"), "gm"), Z = !0, R = A.replace(q, function(ke, de, Te, xe) { + var ie, Be; + return Z = !!Z && Te === T, At(ie = At(Be = "".concat(de)).call(Be, T, " ")).call(ie, xe); + }); + return Z ? A.replace(q, "$3").replace(/!+\s*$/gm, "") : (this.registerAfterClickCb(function() { + f.setLessSelection(L, F); + }), R); + } + return this.registerAfterClickCb(function() { + f.setLessSelection(L, F); + }), At(b = At(v = "".concat(L)).call(v, A)).call(b, F); + } + var J = 0, he = 0; + if (g.target.closest(".cherry-bubble")) { + var Y = g.target.closest(".cherry-bubble"), ue = Y.getBoundingClientRect(); + J = ue.top + Y.offsetHeight, he = g.target.closest(".cherry-toolbar-color").offsetLeft + ue.left; + } else { + var le = g.target.closest(".cherry-toolbar-color"), be = le.getBoundingClientRect(); + J = be.top + le.offsetHeight, he = be.left; + } + this.updateMarkdown = !1, this.bubbleColor.show({ left: he, top: J, $color: this }); + } }]), o; +}(), H2n = function() { + function r(i) { + vi(this, r), Ui(this, "colorStack", ["#000000", "#444444", "#666666", "#999999", "#cccccc", "#eeeeee", "#f3f3f3", "#ffffff", "#ff0000", "#ff9900", "#ffff00", "#00ff00", "#00ffff", "#0000ff", "#9900ff", "#ff00ff", "#f4cccc", "#fce5cd", "#fff2cc", "#d9ead3", "#d0e0e3", "#cfe2f3", "#d9d2e9", "#ead1dc", "#ea9999", "#f9cb9c", "#ffe599", "#b6d7a8", "#a2c4c9", "#9fc5e8", "#b4a7d6", "#d5a6bd", "#e06666", "#f6b26b", "#ffd966", "#93c47d", "#76a5af", "#6fa8dc", "#8e7cc3", "#c27ba0", "#cc0000", "#e69138", "#f1c232", "#6aa84f", "#45818e", "#3d85c6", "#674ea7", "#a64d79", "#990000", "#b45f06", "#bf9000", "#38761d", "#134f5c", "#0b5394", "#351c75", "#741b47", "#660000", "#783f04", "#7f6000", "#274e13", "#0c343d", "#073763", "#20124d", "#4c1130"]), this.editor = i.editor, this.init(), this.initAction(); + } + return yi(r, [{ key: "setSelection", value: function(i) { + this.selection = i; + } }, { key: "getFontColorDom", value: function(i) { + var o, l, f = Zs(o = this.colorStack).call(o, function(g) { + var A, b; + return At(A = At(b = ''); + }).join(""); + return At(l = "

    ".concat(i, "

    ")).call(l, f); + } }, { key: "getDom", value: function() { + var i = document.createElement("div"); + i.classList.add("cherry-color-wrap"), i.classList.add("cherry-dropdown"); + var o = document.createElement("div"); + o.classList.add("cherry-color-text"), o.innerHTML = this.getFontColorDom("文本颜色"), i.appendChild(o); + var l = document.createElement("div"); + return l.classList.add("cherry-color-bg"), l.innerHTML = this.getFontColorDom("背景颜色"), i.appendChild(l), i; + } }, { key: "init", value: function() { + this.dom = this.getDom(), this.editor.options.wrapperDom.appendChild(this.dom); + } }, { key: "onClick", value: function() { + var i, o; + return this.type === "text" ? /^!!#\S+ [\s\S]+?!!/.test(this.selection) ? this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/, "!!".concat(this.colorValue, " $1!!")) : At(o = "!!".concat(this.colorValue, " ")).call(o, this.selection, "!!") : /^!!!#\S+ [\s\S]+?!!!/.test(this.selection) ? this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/, "!!!".concat(this.colorValue, " $1!!!")) : At(i = "!!!".concat(this.colorValue, " ")).call(i, this.selection, "!!!"); + } }, { key: "initAction", value: function() { + var i = this; + this.dom.addEventListener("click", function(o) { + var l = o.target; + if (i.colorValue = l.getAttribute("data-val"), !i.colorValue) + return !1; + i.type = l.closest(".cherry-color-text") ? "text" : "bg", i.$color.setCacheOnce({ type: i.type, color: i.colorValue }), i.$color.fire(null); + }, !1), this.dom.addEventListener("EditorHideToolbarSubMenu", function() { + i.dom.style.display !== "none" && (i.dom.style.display = "none"); + }); + } }, { key: "show", value: function(i) { + var o = i.left, l = i.top, f = i.$color; + this.dom.style.left = "".concat(o, "px"), this.dom.style.top = "".concat(l, "px"), this.dom.style.display = "block", this.$color = f; + } }]), r; +}(); +function j2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var K2n = function(r) { + ja(o, xc); + var i = j2n(o); + function o(l) { + var f, g, A, b, v, k; + return vi(this, o), (k = i.call(this, l)).setName("header", "header"), k.subMenuConfig = [{ iconName: "h1", name: "h1", onclick: Bo(f = k.bindSubClick).call(f, Xs(k), "1") }, { iconName: "h2", name: "h2", onclick: Bo(g = k.bindSubClick).call(g, Xs(k), "2") }, { iconName: "h3", name: "h3", onclick: Bo(A = k.bindSubClick).call(A, Xs(k), "3") }, { iconName: "h4", name: "h4", onclick: Bo(b = k.bindSubClick).call(b, Xs(k), "4") }, { iconName: "h5", name: "h5", onclick: Bo(v = k.bindSubClick).call(v, Xs(k), "5") }], k; + } + return yi(o, [{ key: "getSubMenuConfig", value: function() { + return this.subMenuConfig; + } }, { key: "$getFlagStr", value: function(l) { + var f = +(typeof l == "string" ? l.replace(/[^0-9]+([0-9])/g, "$1") : l); + return fd("#").call("#", f || 1); + } }, { key: "$testIsHead", value: function(l) { + return /^\s*(#+)\s*.+/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", A = v2(this.editor.editor, l, "line", !0) || this.locale.header, b = this.$getFlagStr(g); + if (this.isSelections || this.$testIsHead(A) || this.getMoreSelection(` +`, "", function() { + var _ = f.editor.editor.getSelection(), T = f.$testIsHead(_); + return T && (A = _), T; + }), this.$testIsHead(A)) { + var v = !0, k = A.replace(/(^\s*)(#+)(\s*)(.+$)/gm, function(_, T, L, F, U) { + var q, Z, R; + return v = !!v && L.length === b.length, At(q = At(Z = At(R = "".concat(T)).call(R, b)).call(Z, F)).call(q, U); + }); + return v ? A.replace(/(^\s*)(#+)(\s*)(.+$)/gm, "$1$4") : (this.registerAfterClickCb(function() { + f.setLessSelection("".concat(b, " "), ""); + }), k); + } + return this.registerAfterClickCb(function() { + f.setLessSelection("".concat(b, " "), ""); + }), A.replace(/(^)([\s]*)([^\n]+)($)/gm, "$1".concat(b, " $3$4")); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-1", "Ctrl-2", "Ctrl-3", "Ctrl-4", "Ctrl-5", "Ctrl-6"]; + } }]), o; +}(), z2n = function(r, i) { + var o, l = document.createElement("td"); + return l.className = i || "table-item", no(o = yh(r)).call(o, function(f) { + l.dataset[f] = r[f]; + }), l; +}, dTt = function() { + function r(i, o) { + var l = i.row, f = i.col; + vi(this, r), this.init(l, f, o), this.initEventListeners(), this.afterClick = function() { + }; + } + return yi(r, [{ key: "init", value: function(i, o, l) { + var f = this, g = document.createElement("table"), A = []; + g.className = ["cherry-insert-table-menu", "cherry-dropdown"].join(" "); + for (var b = 1; b <= i; b++) { + var v = document.createElement("tr"); + v.className = "cherry-insert-table-menu-row", A[b - 1] = []; + for (var k = 1; k <= o; k++) { + var _ = z2n({ row: b, col: k }, "cherry-insert-table-menu-item"); + v.appendChild(_), A[b - 1][k - 1] = _; + } + g.appendChild(v); + } + return g.style.display = "none", g.addEventListener("EditorHideToolbarSubMenu", function() { + f.hide(); + }), this.dom = g, this.cell = A, this.maxRow = i, this.maxCol = o, this.activeRow = 0, this.activeCol = 0, this.dom; + } }, { key: "initEventListeners", value: function() { + var i, o; + this.dom.addEventListener("mousemove", Bo(i = this.handleMouseMove).call(i, this), !1), this.dom.addEventListener("mouseup", Bo(o = this.handleMouseUp).call(o, this)); + } }, { key: "setActiveCell", value: function(i, o) { + if (this.activeRow !== i || this.activeCol !== o) { + var l = Math.min(this.activeRow, i), f = Math.max(this.activeRow, i); + if (l !== f) + for (var g = f; g > l; g--) + for (var A = 1; A <= this.activeCol; A++) + this.cell[g - 1][A - 1].classList.toggle("active"); + var b = Math.min(this.activeCol, o), v = Math.max(this.activeCol, o); + if (b !== v) + for (var k = v; k > b; k--) + for (var _ = 1; _ <= i; _++) + this.cell[_ - 1][k - 1].classList.toggle("active"); + this.activeRow = i, this.activeCol = o; + } + } }, { key: "handleMouseMove", value: function(i) { + var o = i.target; + o !== this.dom && (o.classList.contains("cherry-insert-table-menu-item") || (o = o.querySelector(".cherry-insert-table-menu-item")), o && this.setActiveCell(o.dataset.row, o.dataset.col)); + } }, { key: "handleMouseUp", value: function(i) { + var o = i.target; + return o === this.dom || o.classList.contains("cherry-insert-table-menu-item") || (o = o.querySelector(".cherry-insert-table-menu-item")), this.afterClick(this.activeRow, this.activeCol), void this.hide(); + } }, { key: "show", value: function(i) { + this.dom.style.display = "block", this.afterClick = i; + } }, { key: "hide", value: function() { + this.dom.style.display = "none"; + for (var i = 0; i < this.maxRow; i++) + for (var o = 0; o < this.maxCol; o++) + this.cell[i][o].classList.remove("active"); + this.activeRow = 0, this.activeCol = 0; + } }]), r; +}(); +function G2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var X2n = function(r) { + ja(o, xc); + var i = G2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("insert", "insert"), f.noIcon = !0, f.subBubbleTableMenu = new dTt({ row: 9, col: 9 }), l.editor.options.wrapperDom.appendChild(f.subBubbleTableMenu.dom), f; + } + return yi(o, [{ key: "handleUpload", value: function() { + var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "image", g = document.createElement("input"); + g.type = "file", g.id = "fileUpload", g.value = "", g.style.display = "none", g.addEventListener("change", function(A) { + var b = vh(A.target.files, 1)[0]; + l.$cherry.options.fileUpload(b, function(v) { + if (typeof v == "string" && v) { + var k, _ = ""; + if (f === "image") + _ = At(k = "![".concat(b.name, "](")).call(k, v, ")"); + else if (f === "video") { + var T; + _ = At(T = "!video[".concat(b.name, "](")).call(T, v, ")"); + } else if (f === "audio") { + var L; + _ = At(L = "!audio[".concat(b.name, "](")).call(L, v, ")"); + } else { + var F; + _ = At(F = "[".concat(b.name, "](")).call(F, v, ")"); + } + l.$cherry.$cherry.doc.replaceSelection(_); + } + }); + }), g.click(); + } }, { key: "onClick", value: function(l) { + var f, g, A, b, v, k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", _ = arguments.length > 2 ? arguments[2] : void 0; + if (/normal-table/.test(k)) { + var T, L, F, U = k.match(/([0-9]+)[^0-9]([0-9]+)/), q = U ? +U[1] : 3, Z = U ? +U[2] : 5, R = fd(" Header |").call(" Header |", Z), J = fd(" ------ |").call(" ------ |", Z), he = ` +|`.concat(fd(" Sample |").call(" Sample |", Z)); + return At(T = At(L = At(F = "".concat(l, ` + +|`)).call(F, R, ` +|`)).call(L, J)).call(T, fd(he).call(he, q), ` + +`); + } + var Y = v2(this.editor.editor, l); + switch (k) { + case "hr": + return "".concat(l, ` + +--- +`); + case "br": + return "".concat(l, "
    "); + case "code": + return "\n``` \n".concat(l || "code...", "\n```\n"); + case "formula": + return "".concat(l, ` + +$ e=mc^2 $ + +`); + case "checklist": + return "".concat(l, ` + +- [x] Item 1 +- [ ] Item 2 +- [ ] Item 3 +`); + case "toc": + return "".concat(l, ` + +[[toc]] +`); + case "link": + return At(f = "".concat(l, "[")).call(f, this.locale.link, "](http://url.com) "); + case "image": + return this.handleUpload("image"), l; + case "video": + return this.handleUpload("video"), l; + case "audio": + return this.handleUpload("audio"), l; + case "table": + return this.subBubbleTableMenu.dom.style.left = this.subMenu.dom.style.left, this.subBubbleTableMenu.dom.style.top = this.subMenu.dom.style.top, void this.subBubbleTableMenu.show(function(ue, le) { + var be, ke, de, Te = fd(" Header |").call(" Header |", le), xe = fd(" ------ |").call(" ------ |", le), ie = ` +|`.concat(fd(" Sample |").call(" Sample |", le)), Be = At(be = At(ke = At(de = "".concat(l, ` + +|`)).call(de, Te, ` +|`)).call(ke, xe)).call(be, fd(ie).call(ie, ue), ` + +`); + _(Be); + }); + case "line-table": + return At(g = "".concat(l, ` + +`)).call(g, ["| :line: {x,y} | a | b | c |", "| :-: | :-: | :-: | :-: |", "| x | 1 | 2 | 3 |", "| y | 2 | 4 | 6 |", "| z | 7 | 5 | 3 |"].join(` +`), ` + +`); + case "bar-table": + return At(A = "".concat(l, ` + +`)).call(A, ["| :bar: {x,y} | a | b | c |", "| :-: | :-: | :-: | :-: |", "| x | 1 | 2 | 3 |", "| y | 2 | 4 | 6 |", "| z | 7 | 5 | 3 |"].join(` +`), ` + +`); + case "headlessTable": + return this.subBubbleTableMenu.dom.style.left = this.subMenu.dom.style.left, this.subBubbleTableMenu.dom.style.top = this.subMenu.dom.style.top, void this.subBubbleTableMenu.show(function(ue, le) { + var be, ke, de, Te = At(be = At(ke = "".concat(l, ` + +||`)).call(ke, fd(" ~Header ||").call(" ~Header ||", le))).call(be, fd(de = ` +||`.concat(fd(" SampleT ||").call(" SampleT ||", le))).call(de, ue - 1), ` + +`); + _(Te); + }); + case "pdf": + return this.handleUpload("pdf"), l; + case "word": + return this.handleUpload("word"), l; + case "ruby": + return /^\s*\{[\s\S]+\|[\s\S]+\}/.test(Y) ? Y.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm, "$1") : At(b = " { ".concat(Y, " | ")).call(b, Go(v = this.editor.$cherry.options.callback.changeString2Pinyin(Y)).call(v), " } "); + } + } }]), o; +}(); +function W2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var V2n = function(r) { + ja(o, xc); + var i = W2n(o); + function o(l) { + var f, g, A, b; + return vi(this, o), (b = i.call(this, l)).setName("list", "list"), b.subMenuConfig = [{ iconName: "ol", name: "ol", onclick: Bo(f = b.bindSubClick).call(f, Xs(b), "1") }, { iconName: "ul", name: "ul", onclick: Bo(g = b.bindSubClick).call(g, Xs(b), "2") }, { iconName: "checklist", name: "checklist", onclick: Bo(A = b.bindSubClick).call(A, Xs(b), "3") }], b; + } + return yi(o, [{ key: "getSubMenuConfig", value: function() { + return this.subMenuConfig; + } }, { key: "onClick", value: function(l) { + var f, g, A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", b = [null, "ol", "ul", "checklist"], v = v2(this.editor.editor, l, "line", !0), k = vh(v.match(/^\n*/), 1)[0], _ = vh(v.match(/\n*$/), 1)[0], T = b[A] ? b[A] : A; + return T && /^(ol|ul|checklist)$/.test(T) ? At(f = At(g = "".concat(k)).call(g, zbe(v, T))).call(f, _) : v; + } }]), o; +}(); +function q2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Y2n = function(r) { + ja(o, xc); + var i = q2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("ol", "ol"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A = v2(this.editor.editor, l, "line", !0) || `Item 1 + Item 1.1 +Item 2`, b = vh(A.match(/^\n*/), 1)[0], v = vh(A.match(/\n*$/), 1)[0]; + return At(f = At(g = "".concat(b)).call(g, zbe(A, "ol"))).call(f, v); + } }]), o; +}(); +function J2n(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Z2n = function(r) { + ja(o, xc); + var i = J2n(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("ul", "ul"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A = v2(this.editor.editor, l, "line", !0) || `Item 1 + Item 1.1 +Item 2`, b = vh(A.match(/^\n*/), 1)[0], v = vh(A.match(/\n*$/), 1)[0]; + return At(f = At(g = "".concat(b)).call(g, zbe(A, "ul"))).call(f, v); + } }]), o; +}(); +function evn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var tvn = function(r) { + ja(o, xc); + var i = evn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("checklist", "checklist"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A = v2(this.editor.editor, l, "line", !0) || `Item 1 + Item 1.1 +Item 2`, b = vh(A.match(/^\n*/), 1)[0], v = vh(A.match(/\n*$/), 1)[0]; + return At(f = At(g = "".concat(b)).call(g, zbe(A, "checklist"))).call(f, v); + } }]), o; +}(); +function nvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +function h5(r, i) { + return [r, "```mermaid", i, "```"].join(` +`); +} +var Q6t = [" A[公司] -->| 下 班 | B(菜市场)", " B --> C{看见
    卖西瓜的}", " C -->|Yes| D[买一个包子]", " C -->|No| E[买一斤包子]"].join(` +`), $6t = [" A[Company] -->| Finish work | B(Grocery Store)", " B --> C{See
    Watermelon Seller}", " C -->|Yes| D[Buy a bun]", " C -->|No| E[Buy a kilogram of buns]"].join(` +`), rvn = { flow: ["FlowChart", h5("左右结构", `graph LR +`.concat(Q6t)), h5("上下结构", `graph TD +`.concat(Q6t))].join(` +`), sequence: h5("SequenceDiagram", ["sequenceDiagram", "autonumber", "A-->A: 文本1", "A->>B: 文本2", "loop 循环1", "loop 循环2", "A->B: 文本3", "end", "loop 循环3", "B -->>A: 文本4", "end", "B -->> B: 文本5", "end"].join(` +`)), state: h5("StateDiagram", ["stateDiagram-v2", "[*] --> A", "A --> B", "A --> C", "state A {", " [*] --> D", " D --> [*]", "}", "B --> [*]", "C --> [*]"].join(` +`)), class: h5("ClassDiagram", ["classDiagram", "Base <|-- One", "Base <|-- Two", "Base : +String name", "Base: +getName()", "Base: +setName(String name)", "class One{", " +String newName", " +getNewName()", "}", "class Two{", " -int id", " -getId()", "}"].join(` +`)), pie: h5("PieChart", ["pie", "title 饼图", '"A" : 100', '"B" : 80', '"C" : 40', '"D" : 30'].join(` +`)), gantt: h5("GanttChart", ["gantt", " title 敏捷研发流程", " section 迭代前", " 交互设计 :a1, 2020-03-01, 4d", " UI设计 :after a1, 5d", " 需求评审 : 1d", " section 迭代中", " 详细设计 :a2, 2020-03-11, 2d", " 开发 :2020-03-15, 7d", " 测试 :2020-03-22, 5d", " section 迭代后", " 发布: 1d", " 验收: 2d", " 回顾: 1d"].join(` +`)) }, ivn = { flow: ["FlowChart", h5("Left-right structure", `graph LR +`.concat($6t)), h5("Top-bottom structure", `graph TD +`.concat($6t))].join(` +`), sequence: h5("SequenceDiagram", ["sequenceDiagram", "autonumber", "A-->A: text1", "A->>B: text2", "loop loop1", "loop loop2", "A->B: text3", "end", "loop loop3", "B -->>A: text4", "end", "B -->> B: text5", "end"].join(` +`)), state: h5("StateDiagram", ["stateDiagram-v2", "[*] --> A", "A --> B", "A --> C", "state A {", " [*] --> D", " D --> [*]", "}", "B --> [*]", "C --> [*]"].join(` +`)), class: h5("ClassDiagram", ["classDiagram", "Base <|-- One", "Base <|-- Two", "Base : +String name", "Base: +getName()", "Base: +setName(String name)", "class One{", " +String newName", " +getNewName()", "}", "class Two{", " -int id", " -getId()", "}"].join(` +`)), pie: h5("PieChart", ["pie", "title pie", '"A" : 100', '"B" : 80', '"C" : 40', '"D" : 30'].join(` +`)), gantt: h5("GanttChart", ["gantt", " title work", " section session 1", " work1 :a1, 2020-03-01, 4d", " work2 :after a1, 5d", " work3 : 1d", " section session 2", " work4 :a2, 2020-03-11, 2d", " work5 :2020-03-15, 7d", " work6 :2020-03-22, 5d", " section session 3", " work7: 1d", " work8: 2d", " work9: 1d"].join(` +`)) }, avn = function(r) { + ja(o, xc); + var i = nvn(o); + function o(l) { + var f, g, A, b, v, k, _; + return vi(this, o), (_ = i.call(this, l)).setName("graph", "insertChart"), _.noIcon = !0, _.localeName = l.options.locale, _.subMenuConfig = [{ iconName: "insertFlow", name: "insertFlow", onclick: Bo(f = _.bindSubClick).call(f, Xs(_), "1") }, { iconName: "insertSeq", name: "insertSeq", onclick: Bo(g = _.bindSubClick).call(g, Xs(_), "2") }, { iconName: "insertState", name: "insertState", onclick: Bo(A = _.bindSubClick).call(A, Xs(_), "3") }, { iconName: "insertClass", name: "insertClass", onclick: Bo(b = _.bindSubClick).call(b, Xs(_), "4") }, { iconName: "insertPie", name: "insertPie", onclick: Bo(v = _.bindSubClick).call(v, Xs(_), "5") }, { iconName: "insertGantt", name: "insertGantt", onclick: Bo(k = _.bindSubClick).call(k, Xs(_), "6") }], _; + } + return yi(o, [{ key: "getSubMenuConfig", value: function() { + return this.subMenuConfig; + } }, { key: "onClick", value: function(l) { + var f = this, g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", A = [null, "flow", "sequence", "state", "class", "pie", "gantt"], b = A[g] ? A[g] : g; + if (b && /^(flow|sequence|state|class|pie|gantt)$/.test(b)) + return this.registerAfterClickCb(function() { + f.setLessSelection(` + + + + +`, ` + +`); + }), ` + +`.concat(this.$getSampleCode(b), ` +`); + } }, { key: "$getSampleCode", value: function(l) { + var f, g; + return this.localeName !== "zh-CN" && this.localeName !== "zh_CN" ? (g = ivn[l]) === null || g === void 0 ? void 0 : g.replace(/\t/g, " ") : (f = rvn[l]) === null || f === void 0 ? void 0 : f.replace(/\t/g, " "); + } }]), o; +}(); +function ovn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var svn = function(r) { + ja(o, xc); + var i = ovn(o); + function o(l) { + var f, g, A, b, v; + return vi(this, o), (v = i.call(this, l)).setName("size", "size"), v.subMenuConfig = [{ name: "小", noIcon: !0, onclick: Bo(f = v.bindSubClick).call(f, Xs(v), "12") }, { name: "中", noIcon: !0, onclick: Bo(g = v.bindSubClick).call(g, Xs(v), "17") }, { name: "大", noIcon: !0, onclick: Bo(A = v.bindSubClick).call(A, Xs(v), "24") }, { name: "特大", noIcon: !0, onclick: Bo(b = v.bindSubClick).call(b, Xs(v), "32") }], v.shortKeyMap = { "Alt-1": "12", "Alt-2": "17", "Alt-3": "24", "Alt-4": "32" }, v; + } + return yi(o, [{ key: "getSubMenuConfig", value: function() { + return this.subMenuConfig; + } }, { key: "_getFlagStr", value: function(l) { + for (var f = l.replace(/[^0-9]+([0-9])/g, "$1"), g = "#", A = 1; A < f; A++) + g += "#"; + return g; + } }, { key: "$testIsSize", value: function(l) { + return /^\s*(![0-9]+) [\s\S]+!/.test(l); + } }, { key: "$getSizeByShortKey", value: function(l) { + return /^[0-9]+$/.test(l) ? l : this.shortKeyMap[l] || "17"; + } }, { key: "onClick", value: function(l) { + var f = this, g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "17", A = this.$getSizeByShortKey(g), b = v2(this.editor.editor, l) || "字号"; + if (this.isSelections || this.$testIsSize(b) || this.getMoreSelection("!32 ", "!", function() { + var _ = f.editor.editor.getSelection(); + return !!f.$testIsSize(_) && (b = _, !0); + }), this.$testIsSize(b)) { + var v = !0, k = b.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm, function(_, T, L, F, U, q, Z, R) { + var J, he, Y, ue, le, be; + return v = !!v && F === "!".concat(A), At(J = At(he = At(Y = At(ue = At(le = At(be = "".concat(T)).call(be, L, "!")).call(le, A)).call(ue, U)).call(Y, q)).call(he, Z)).call(J, R); + }); + return v ? b.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm, "$1$4$7") : (this.registerAfterClickCb(function() { + f.setLessSelection("!".concat(A, " "), "!"); + }), k); + } + return this.registerAfterClickCb(function() { + f.setLessSelection("!".concat(A, " "), "!"); + }), b.replace(/(^)([^\n]+)($)/gm, "$1!".concat(A, " $2!$3")); + } }, { key: "shortcutKeys", get: function() { + return ["Alt-1", "Alt-2", "Alt-3", "Alt-4"]; + } }]), o; +}(); +function cvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var lvn = function(r) { + ja(o, xc); + var i = cvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("h1", "h1"), f; + } + return yi(o, [{ key: "$testIsHead", value: function(l) { + return /^\s*(#+)\s*.+/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = v2(this.editor.editor, l, "line", !0) || this.locale.h1, A = "#"; + if (this.isSelections || this.$testIsHead(g) || this.getMoreSelection(` +`, "", function() { + var k = f.editor.editor.getSelection(), _ = f.$testIsHead(k); + return _ && (g = k), _; + }), this.$testIsHead(g)) { + var b = !0, v = g.replace(/(^\s*)(#+)(\s*)(.+$)/gm, function(k, _, T, L, F) { + var U, q, Z; + return b = !!b && T.length === 1, At(U = At(q = At(Z = "".concat(_)).call(Z, A)).call(q, L)).call(U, F); + }); + return b ? g.replace(/(^\s*)(#+)(\s*)(.+$)/gm, "$1$4") : (this.registerAfterClickCb(function() { + f.setLessSelection("".concat(A, " "), ""); + }), v); + } + return this.registerAfterClickCb(function() { + f.setLessSelection("".concat(A, " "), ""); + }), g.replace(/(^)([\s]*)([^\n]+)($)/gm, "$1".concat(A, " $3$4")); + } }]), o; +}(); +function uvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var hvn = function(r) { + ja(o, xc); + var i = uvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("h2", "h2"), f; + } + return yi(o, [{ key: "$testIsHead", value: function(l) { + return /^\s*(#+)\s*.+/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = v2(this.editor.editor, l, "line", !0) || this.locale.h2, A = "##"; + if (this.isSelections || this.$testIsHead(g) || this.getMoreSelection(` +`, "", function() { + var k = f.editor.editor.getSelection(), _ = f.$testIsHead(k); + return _ && (g = k), _; + }), this.$testIsHead(g)) { + var b = !0, v = g.replace(/(^\s*)(#+)(\s*)(.+$)/gm, function(k, _, T, L, F) { + var U, q, Z; + return b = !!b && T.length === 2, At(U = At(q = At(Z = "".concat(_)).call(Z, A)).call(q, L)).call(U, F); + }); + return b ? g.replace(/(^\s*)(#+)(\s*)(.+$)/gm, "$1$4") : (this.registerAfterClickCb(function() { + f.setLessSelection("".concat(A, " "), ""); + }), v); + } + return this.registerAfterClickCb(function() { + f.setLessSelection("".concat(A, " "), ""); + }), g.replace(/(^)([\s]*)([^\n]+)($)/gm, "$1".concat(A, " $3$4")); + } }]), o; +}(); +function fvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var dvn = function(r) { + ja(o, xc); + var i = fvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("h3", "h3"), f; + } + return yi(o, [{ key: "$testIsHead", value: function(l) { + return /^\s*(#+)\s*.+/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = v2(this.editor.editor, l, "line", !0) || this.locale.h3, A = "###"; + if (this.isSelections || this.$testIsHead(g) || this.getMoreSelection(` +`, "", function() { + var k = f.editor.editor.getSelection(), _ = f.$testIsHead(k); + return _ && (g = k), _; + }), this.$testIsHead(g)) { + var b = !0, v = g.replace(/(^\s*)(#+)(\s*)(.+$)/gm, function(k, _, T, L, F) { + var U, q, Z; + return b = !!b && T.length === 3, At(U = At(q = At(Z = "".concat(_)).call(Z, A)).call(q, L)).call(U, F); + }); + return b ? g.replace(/(^\s*)(#+)(\s*)(.+$)/gm, "$1$4") : (this.registerAfterClickCb(function() { + f.setLessSelection("".concat(A, " "), ""); + }), v); + } + return this.registerAfterClickCb(function() { + f.setLessSelection("".concat(A, " "), ""); + }), g.replace(/(^)([\s]*)([^\n]+)($)/gm, "$1".concat(A, " $3$4")); + } }]), o; +}(); +function Avn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var gvn = function(r) { + ja(o, xc); + var i = Avn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("quote", "blockquote"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g = this, A = v2(this.editor.editor, l, "line", !0) || this.locale.quote, b = yG(f = A.split(` +`)).call(f, function(v) { + return /^\s*>[^\n]+$/.exec(v); + }); + return b ? A.replace(/(^\s*)>\s*([^\n]+)($)/gm, "$1$2$3").replace(/\n+$/, ` + +`) : (this.registerAfterClickCb(function() { + g.setLessSelection("> ", ""); + }), A.replace(/(^)([^\n]+)($)/gm, "$1> $2$3").replace(/\n+$/, ` + +`)); + } }]), o; +}(); +function pvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var mvn = function(r) { + ja(o, xc); + var i = pvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("quickTable", "table"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + return "".concat(l, `| LeftAlignedCol | CenterAlignedCol | RightAlignedCol | +`) + `| :--- | :---: | ---: | +| sampleText | sampleText | sampleText | +| **left**Text | centered Text | *right*Text | +`; + } }]), o; +}(); +function bvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var vvn = function(r) { + ja(o, xc); + var i = bvn(o); + function o(l) { + var f; + return vi(this, o), Ui(Xs(f = i.call(this, l)), "$previewerHidden", !1), f.setName("previewClose", "previewClose"), f.instanceId = l.instanceId, f.updateMarkdown = !1, f.attachEventListeners(), f; + } + return yi(o, [{ key: "attachEventListeners", value: function() { + var l = this; + kc.on(this.instanceId, kc.Events.previewerClose, function() { + l.isHidden = !0; + }), kc.on(this.instanceId, kc.Events.previewerOpen, function() { + l.isHidden = !1; + }); + } }, { key: "isHidden", get: function() { + return this.$previewerHidden; + }, set: function(l) { + if (l !== this.$previewerHidden) { + var f = this.dom.querySelector("i"); + l ? (f.classList.toggle("ch-icon-previewClose", !1), f.classList.toggle("ch-icon-preview", !0), f.title = this.locale.togglePreview) : (f.classList.toggle("ch-icon-previewClose", !0), f.classList.toggle("ch-icon-preview", !1), f.title = this.locale.previewClose), this.$previewerHidden = l; + } + } }, { key: "onClick", value: function() { + this.editor.previewer.isPreviewerHidden() ? (this.editor.previewer.recoverPreviewer(!0), this.isHidden = !1) : (this.editor.previewer.editOnly(!0), this.isHidden = !0); + } }]), o; +}(); +function yvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var wvn = function(r) { + ja(o, xc); + var i = yvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).updateMarkdown = !1, f.setName("fullScreen", "fullscreen"), f; + } + return yi(o, [{ key: "onClick", value: function() { + for (var l = this.editor.options.editorDom.parentElement.classList, f = document.querySelector(".cherry-toolbar-fullscreen"); f.firstChild; ) + f.removeChild(f.firstChild); + if (l.contains("fullscreen")) { + var g = ih("i", "ch-icon ch-icon-fullscreen"); + f.appendChild(g), l.remove("fullscreen"); + } else { + var A = ih("i", "ch-icon ch-icon-minscreen"); + f.appendChild(A), l.add("fullscreen"); + } + this.editor.editor.refresh(); + } }]), o; +}(); +function kvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var xvn = function(r) { + ja(o, xc); + var i = kvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("undo", "undo"), f; + } + return yi(o, [{ key: "onClick", value: function() { + this.editor.editor.undo(); + } }]), o; +}(); +function Cvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var _vn = function(r) { + ja(o, xc); + var i = Cvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("redo", "redo"), f; + } + return yi(o, [{ key: "onClick", value: function() { + this.editor.editor.redo(); + } }]), o; +}(); +function Evn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Tvn = function(r) { + ja(o, xc); + var i = Evn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("code", "code"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f = this, g = l || "code..."; + return this.registerAfterClickCb(function() { + f.setLessSelection("\n``` \n", "\n```\n"); + }), "\n``` \n".concat(g, "\n```\n"); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-k"]; + } }]), o; +}(); +function Bvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Svn = function(r) { + ja(o, xc); + var i = Bvn(o); + function o(l) { + var f, g, A, b, v, k, _, T, L; + return vi(this, o), (L = i.call(this, l)).setName("codeTheme"), L.updateMarkdown = !1, L.noIcon = !0, L.subMenuConfig = [{ noIcon: !0, name: "default", onclick: Bo(f = L.bindSubClick).call(f, Xs(L), "default") }, { noIcon: !0, name: "dark", onclick: Bo(g = L.bindSubClick).call(g, Xs(L), "dark") }, { noIcon: !0, name: "funky", onclick: Bo(A = L.bindSubClick).call(A, Xs(L), "funky") }, { noIcon: !0, name: "okaidia", onclick: Bo(b = L.bindSubClick).call(b, Xs(L), "okaidia") }, { noIcon: !0, name: "twilight", onclick: Bo(v = L.bindSubClick).call(v, Xs(L), "twilight") }, { noIcon: !0, name: "coy", onclick: Bo(k = L.bindSubClick).call(k, Xs(L), "coy") }, { noIcon: !0, name: "solarized light", onclick: Bo(_ = L.bindSubClick).call(_, Xs(L), "solarized-light") }, { noIcon: !0, name: "tomorrow night", onclick: Bo(T = L.bindSubClick).call(T, Xs(L), "tomorrow-night") }], L; + } + return yi(o, [{ key: "onClick", value: function() { + var l = arguments.length > 1 ? arguments[1] : void 0; + document.querySelector(".cherry").setAttribute("data-code-block-theme", l); + } }]), o; +}(); +function Lvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Ivn = function(r) { + ja(o, xc); + var i = Lvn(o); + function o(l) { + var f, g, A, b, v; + return vi(this, o), (v = i.call(this, l)).setName("export"), v.noIcon = !0, v.updateMarkdown = !1, v.subMenuConfig = [{ noIcon: !0, name: "exportToPdf", onclick: Bo(f = v.bindSubClick).call(f, Xs(v), "pdf") }, { noIcon: !0, name: "exportScreenshot", onclick: Bo(g = v.bindSubClick).call(g, Xs(v), "screenShot") }, { noIcon: !0, name: "exportMarkdownFile", onclick: Bo(A = v.bindSubClick).call(A, Xs(v), "markdown") }, { noIcon: !0, name: "exportHTMLFile", onclick: Bo(b = v.bindSubClick).call(b, Xs(v), "html") }], v; + } + return yi(o, [{ key: "onClick", value: function() { + var l = arguments.length > 1 ? arguments[1] : void 0; + document.querySelector(".cherry-dropdown[name=export]") && (document.querySelector(".cherry-dropdown[name=export]").style.display = "none"); + var f = this.$cherry.previewer, g = ""; + g = f.isPreviewerHidden() ? f.options.previewerCache.html : f.getDomContainer().innerHTML, g = f.lazyLoadImg.changeDataSrc2Src(g), f.refresh(g), f.export(l); + } }]), o; +}(); +function Mvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Fvn = function(r) { + ja(o, xc); + var i = Mvn(o); + function o(l) { + var f, g, A, b, v; + vi(this, o), (v = i.call(this, l)).setName("settings", "settings"), v.updateMarkdown = !1, v.engine = l.engine; + var k = JPe("classicBr") ? Nme() : (f = v.engine.$cherry.options.engine.global) === null || f === void 0 ? void 0 : f.classicBr, _ = l.editor.options.defaultModel, T = k ? "br" : "normal", L = k ? "classicBr" : "normalBr", F = _ === "editOnly" ? "preview" : "previewClose", U = _ === "editOnly" ? "togglePreview" : "previewClose"; + return v.instanceId = l.instanceId, v.subMenuConfig = [{ iconName: T, name: L, onclick: Bo(g = v.bindSubClick).call(g, Xs(v), "classicBr") }, { iconName: F, name: U, onclick: Bo(A = v.bindSubClick).call(A, Xs(v), "previewClose") }, { iconName: "", name: "hide", onclick: Bo(b = v.bindSubClick).call(b, Xs(v), "toggleToolbar") }], v.attachEventListeners(), v.shortcutKeyMaps = [{ shortKey: "toggleToolbar", shortcutKey: "Ctrl-0" }], v; + } + return yi(o, [{ key: "getSubMenuConfig", value: function() { + return this.subMenuConfig; + } }, { key: "bindSubClick", value: function(l, f, g, A) { + return g ? this.onClick(f, l, A) : this.onClick(f, l); + } }, { key: "togglePreviewBtn", value: function(l) { + var f = this, g = l ? "previewClose" : "preview", A = l ? "previewClose" : "togglePreview"; + if (this.subMenu) { + var b = document.querySelector('.cherry-dropdown[name="settings"]'); + if (b) { + var v = b.querySelector(".ch-icon-previewClose,.ch-icon-preview"); + v.classList.toggle("ch-icon-previewClose"), v.classList.toggle("ch-icon-preview"), v.title = this.locale[A], v.parentElement.innerHTML = v.parentElement.innerHTML.replace(/<\/i>.+$/, "".concat(this.locale[A])); + } + } else { + var k; + this.subMenuConfig = Zs(k = this.subMenuConfig).call(k, function(_) { + var T; + return _.iconName === "previewClose" || _.iconName === "preview" ? { iconName: g, name: A, onclick: Bo(T = f.bindSubClick).call(T, f, "previewClose") } : _; + }); + } + } }, { key: "attachEventListeners", value: function() { + var l = this; + kc.on(this.instanceId, kc.Events.previewerClose, function() { + l.togglePreviewBtn(!1); + }), kc.on(this.instanceId, kc.Events.previewerOpen, function() { + l.togglePreviewBtn(!0); + }); + } }, { key: "onClick", value: function(l) { + var f, g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + if ((g = this.matchShortcutKey(g)) === "classicBr") { + var A, b = !Nme(); + f = b, typeof localStorage < "u" && localStorage.setItem("cherry-classicBr", f ? "true" : "false"), this.engine.$cherry.options.engine.global.classicBr = b, no(A = this.engine.hookCenter.hookList.paragraph).call(A, function(k) { + k.classicBr = b; + }); + var v = this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal"); + v = v || this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"), b ? (v.classList.replace("ch-icon-normal", "ch-icon-br"), v.parentElement.childNodes[1].textContent = this.locale.classicBr) : (v.classList.replace("ch-icon-br", "ch-icon-normal"), v.parentElement.childNodes[1].textContent = this.locale.normalBr), this.engine.$cherry.previewer.update(""), this.engine.$cherry.initText(this.engine.$cherry.editor.editor); + } else + g === "previewClose" ? this.editor.previewer.isPreviewerHidden() ? this.editor.previewer.recoverPreviewer(!0) : this.editor.previewer.editOnly(!0) : g === "toggleToolbar" && this.toggleToolbar(); + return l; + } }, { key: "matchShortcutKey", value: function(l) { + var f, g = Wre(f = this.shortcutKeyMaps).call(f, function(A) { + return A.shortcutKey === l; + }); + return g !== void 0 ? g.shortKey : l; + } }, { key: "toggleToolbar", value: function() { + var l = this.engine.$cherry.wrapperDom; + if (l instanceof HTMLDivElement) { + var f, g = this.engine.$cherry.toolbar.instanceId; + Lu(f = l.className).call(f, "cherry--no-toolbar") > -1 ? (l.classList.remove("cherry--no-toolbar"), kc.emit(g, kc.Events.toolbarShow)) : (l.classList.add("cherry--no-toolbar"), kc.emit(g, kc.Events.toolbarHide)); + } + } }, { key: "shortcutKeys", get: function() { + var l; + return Zs(l = this.shortcutKeyMaps).call(l, function(f) { + return f.shortcutKey; + }); + } }]), o; +}(); +function Ovn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Dvn = function(r) { + ja(o, xc); + var i = Ovn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("underline", "underline"), f; + } + return yi(o, [{ key: "$testIsUnderline", value: function(l) { + return /^\s*(\/)[\s\S]+(\1)/.test(l); + } }, { key: "onClick", value: function(l) { + var f = this, g = l || this.locale.underline; + return this.isSelections || this.$testIsUnderline(g) || this.getMoreSelection(" /", "/ ", function() { + var A = f.editor.editor.getSelection(), b = f.$testIsUnderline(A); + return b && (g = A), b; + }), this.$testIsUnderline(g) ? g.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm, "$1$4$7") : (this.registerAfterClickCb(function() { + f.setLessSelection(" /", "/ "); + }), g.replace(/(^)([^\n]+)($)/gm, "$1 /$2/ $3")); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-u"]; + } }]), o; +}(); +function Nvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Pvn = function(r) { + ja(o, xc); + var i = Nvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("switchPreview"), f.instanceId = l.instanceId, f.attachEventListeners(), f; + } + return yi(o, [{ key: "attachEventListeners", value: function() { + var l = this; + kc.on(this.instanceId, kc.Events.toolbarHide, function() { + l.dom.textContent = l.locale.switchEdit; + }), kc.on(this.instanceId, kc.Events.toolbarShow, function() { + l.dom.textContent = l.locale.switchPreview; + }); + } }, { key: "onClick", value: function() { + this.editor.previewer.isPreviewerHidden() ? (this.editor.previewer.previewOnly(), this.dom.parentElement.parentElement.classList.add("preview-only"), this.dom.textContent = this.locale.switchEdit) : (this.editor.previewer.editOnly(!0), this.dom.parentElement.parentElement.classList.remove("preview-only"), this.dom.textContent = this.locale.switchPreview); + } }]), o; +}(); +function Rvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Qvn = function(r) { + ja(o, xc); + var i = Rvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("image", "image"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A, b = this; + if (this.hasCacheOnce()) { + var v, k, _ = this.getAndCleanCacheOnce(), T = _.name, L = _.url, F = _.params, U = "](".concat(L, ")"); + this.registerAfterClickCb(function() { + b.setLessSelection("![", U); + }); + var q = F.name ? F.name : T; + return At(v = At(k = "".concat("![").concat(q)).call(k, Hbe(F))).call(v, U); + } + var Z = (f = (g = this.$cherry.options) === null || g === void 0 || (A = g.fileTypeLimitMap) === null || A === void 0 ? void 0 : A.image) !== null && f !== void 0 ? f : "*"; + return hX(this.editor, "image", Z, function(R, J, he) { + b.setCacheOnce({ name: R, url: J, params: he }), b.fire(null); + }), this.updateMarkdown = !1, l; + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-g"]; + } }]), o; +}(); +function $vn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Uvn = function(r) { + ja(o, xc); + var i = $vn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("audio", "video"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A, b = this; + if (this.hasCacheOnce()) { + var v, k, _ = this.getAndCleanCacheOnce(), T = _.name, L = _.url, F = _.params, U = "!audio[", q = "](".concat(L, ")"); + this.registerAfterClickCb(function() { + b.setLessSelection(U, q); + }); + var Z = F.name ? F.name : T; + return At(v = At(k = "".concat(U).concat(Z)).call(k, Hbe(F))).call(v, q); + } + var R = (f = (g = this.$cherry.options) === null || g === void 0 || (A = g.fileTypeLimitMap) === null || A === void 0 ? void 0 : A.audio) !== null && f !== void 0 ? f : "*"; + return hX(this.editor, "audio", R, function(J, he, Y) { + b.setCacheOnce({ name: J, url: he, params: Y }), b.fire(null); + }), this.updateMarkdown = !1, l; + } }]), o; +}(); +function Hvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var jvn = function(r) { + ja(o, xc); + var i = Hvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("video", "video"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A, b = this; + if (this.hasCacheOnce()) { + var v, k, _, T = this.getAndCleanCacheOnce(), L = T.name, F = T.url, U = T.params, q = "!video[", Z = U.poster ? At(v = "](".concat(F, "){poster=")).call(v, U.poster, "}") : "](".concat(F, ")"); + this.registerAfterClickCb(function() { + b.setLessSelection(q, Z); + }); + var R = U.name ? U.name : L; + return At(k = At(_ = "".concat(q).concat(R)).call(_, Hbe(U))).call(k, Z); + } + var J = (f = (g = this.$cherry.options) === null || g === void 0 || (A = g.fileTypeLimitMap) === null || A === void 0 ? void 0 : A.video) !== null && f !== void 0 ? f : "*"; + return hX(this.editor, "video", J, function(he, Y, ue) { + b.setCacheOnce({ name: he, url: Y, params: ue }), b.fire(null); + }), this.updateMarkdown = !1, l; + } }]), o; +}(); +function Kvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var zvn = function(r) { + ja(o, xc); + var i = Kvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("br", "br"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + return "".concat(l, "
    "); + } }]), o; +}(); +function Gvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Xvn = function(r) { + ja(o, xc); + var i = Gvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("hr", "line"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + return "".concat(l, ` + +--- +`); + } }]), o; +}(), Wvn = function() { + function r() { + var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + vi(this, r), Ui(this, "formulaConfig", { toolbar: { title: "快捷工具", subCategory: { sqrt: { title: "根式角标", formulas: [{ name: "根式 Radicals", img: "", latex: "" }, { name: "", img: '', latex: "\\sqrt[n]{x^{a}}" }, { name: "上下标 Sub&Super", img: "", latex: "" }, { name: "", img: '', latex: "\\sideset{_1^2}{_3^4}X_a^b" }] }, limit: { title: "极限对数", formulas: [{ name: "极限 Limits", img: "", latex: "" }, { name: "", img: '', latex: ` +\\lim_{x \\to \\infty} a` }, { name: "", img: '', latex: "\\log_{a}{b}" }] } } }, template: { title: "公式模板", subCategory: { algebra: { title: "代数", formulas: [{ name: "", img: '', latex: "\\sqrt{a^2+b^2}" }, { name: "", img: '', latex: "\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}" }, { name: "", img: '', latex: "x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} " }, { name: "", img: '', latex: ` +\\left\\{\\begin{matrix} + x=a + r\\text{cos}\\theta \\\\ + y=b + r\\text{sin}\\theta +\\end{matrix}\\right.` }] }, array: { title: "矩阵", formulas: [{ name: "", img: '', latex: ` +\\begin{pmatrix} + 1 & 0 \\\\ + 0 & 1 +\\end{pmatrix}` }, { name: "", img: '', latex: ` +\\begin{pmatrix} + a_{11} & \\cdots & a_{1n} \\\\ + \\vdots & \\ddots & \\vdots \\\\ + a_{m1} & \\cdots & a_{mn} +\\end{pmatrix}` }, { name: "", img: '', latex: ` +A_{m\\times n}= +\\begin{bmatrix} + a_{11}& a_{12}& \\cdots & a_{1n} \\\\ + a_{21}& a_{22}& \\cdots & a_{2n} \\\\ + \\vdots & \\vdots & \\ddots & \\vdots \\\\ + a_{m1}& a_{m2}& \\cdots & a_{mn} +\\end{bmatrix} +=\\left [ a_{ij}\\right ]` }, { name: "", img: '', latex: ` +\\mathbf{V}_1 \\times \\mathbf{V}_2 = +\\begin{vmatrix} + \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\ + \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\ + \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\ +\\end{vmatrix}` }] } } } }), Ui(this, "showLatexLive", !0), yh(i).length && (this.formulaConfig = i.templateConfig || this.formulaConfig, this.showLatexLive = i.showLatexLive), this.init(), this.initEventListeners(); + } + return yi(r, [{ key: "afterClick", value: function(i) { + } }, { key: "generateBubbleFormulaHtmlStr", value: function() { + var i, o, l = tie(this.formulaConfig || {}), f = Zs(l).call(l, function(v, k) { + var _, T, L = vh(v, 2), F = L[0], U = L[1].title; + return At(_ = At(T = '
  • ')).call(_, U, "
  • "); + }).join(""), g = '
      '.concat(f, "
    "), A = Zs(l).call(l, function(v, k) { + var _, T, L, F, U = vh(v, 2), q = U[0], Z = U[1], R = (_ = tie((Z == null ? void 0 : Z.subCategory) || {})) === null || _ === void 0 ? void 0 : Zs(_).call(_, function(J) { + var he, Y, ue, le, be, ke, de = vh(J, 2), Te = de[0], xe = de[1], ie = xe == null || (he = xe.formulas) === null || he === void 0 ? void 0 : Zs(he).call(he, function(Me) { + var ve, ge; + if (Me.latex === "") + return '
    '.concat(Me.name, "
    "); + var Je = Me.img || ""; + return At(ve = At(ge = '
    ')).call(ve, Je || Me.name, "
    "); + }).join(""), Be = At(Y = '
    ')).call(Y, ie, "
    "), te = At(ue = '"); + return At(le = At(be = At(ke = '
    ')).call(be, te)).call(le, Be, "
    "); + }).join(""); + return At(T = At(L = At(F = '
    ')).call(T, R, "
    "); + }).join(""), b = this.showLatexLive ? '
    查看更多:www.latexlive.com
    ' : ""; + return At(i = At(o = "".concat(g)).call(o, A)).call(i, b); + } }, { key: "init", value: function() { + yh(this.formulaConfig).length && (this.dom = document.createElement("div"), this.dom.className = ["cherry-dropdown", "cherry-insert-formula", "cherry-insert-formula-wrappler"].join(" "), this.dom.innerHTML = this.generateBubbleFormulaHtmlStr(), this.dom.style.display = "none"); + } }, { key: "show", value: function(i) { + this.dom.style.removeProperty("display"), this.afterClick = i; + } }, { key: "hide", value: function() { + this.dom.style.display = "none"; + } }, { key: "isShow", value: function() { + return this.dom.style.display === "block"; + } }, { key: "isHide", value: function() { + return this.dom.style.display === "none"; + } }, { key: "initEventListeners", value: function() { + var i, o, l, f = this; + (i = this.dom.querySelector(".cherry-insert-formula-tabs")) === null || i === void 0 || i.addEventListener("click", Bo(o = this.handleClickFormulaTabs).call(o, this)), (l = this.dom.querySelectorAll(".cherry-insert-formula-categary__func-item")) === null || l === void 0 || no(l).call(l, function(g) { + var A; + return g == null ? void 0 : g.addEventListener("click", Bo(A = f.handleClickFormulaSelect).call(A, f)); + }); + } }, { key: "handleClickFormulaTabs", value: function(i) { + i.preventDefault(), i.stopPropagation(); + var o = i.target; + if (o instanceof HTMLLIElement || o instanceof HTMLSpanElement) { + var l = o instanceof HTMLSpanElement ? o.parentElement : o, f = l.dataset.name, g = document.querySelector(".cherry-insert-formula-select[data-name=".concat(f, "]")), A = document.querySelector(".cherry-insert-formula-tab.active"), b = document.querySelector(".cherry-insert-formula-select.active"); + A == null || A.classList.remove("active"), b == null || b.classList.remove("active"), l.classList.add("active"), g.classList.add("active"); + } + } }, { key: "handleClickFormulaSelect", value: function(i) { + i.preventDefault(), i.stopPropagation(); + var o = i.target; + if (o instanceof HTMLElement) { + var l = o.dataset.formulaCode, f = l === void 0 ? "" : l; + this.afterClick(f), this.hide(); + } + } }]), r; +}(); +function Vvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var qvn = function(r) { + ja(o, xc); + var i = Vvn(o); + function o(l) { + var f, g, A, b; + return vi(this, o), (b = i.call(this, l)).setName("formula", "insertFormula"), b.subBubbleFormulaMenu = new Wvn(l == null || (f = l.options) === null || f === void 0 || (g = f.toolbars) === null || g === void 0 || (A = g.config) === null || A === void 0 ? void 0 : A.formula), l.editor.options.wrapperDom.appendChild(b.subBubbleFormulaMenu.dom), b.catchOnce = "", b; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f = this; + if (this.subBubbleFormulaMenu.isHide() || !this.hasCacheOnce()) { + var g = this.dom.getBoundingClientRect(); + return this.subBubbleFormulaMenu.dom.style.left = "".concat(g.left + g.width, "px"), this.subBubbleFormulaMenu.dom.style.top = "".concat(g.top + g.height, "px"), this.subBubbleFormulaMenu.show(function(A) { + var b, v, k = /\n/.test(A) ? "".concat(/\n$/.test(l) ? l : "".concat(l, ` +`), "$$") : "".concat(l, " $ "), _ = /\n/.test(A) ? ` +$$ ` : " $ "; + f.registerAfterClickCb(function() { + f.setLessSelection(k, _); + }); + var T = At(b = At(v = "".concat(k)).call(v, A)).call(b, _); + f.setCacheOnce(T), f.fire(null); + }), this.updateMarkdown = !1, !1; + } + return this.getAndCleanCacheOnce(); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-m"]; + } }]), o; +}(); +function Yvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Jvn = function(r) { + ja(o, xc); + var i = Yvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("link", "link"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f; + if (/^http/.test(l)) + return At(f = "[".concat(this.locale.link, "](")).call(f, l, ")"); + var g = l || this.locale.link; + return "[".concat(g, "](http://url.com) "); + } }, { key: "shortcutKeys", get: function() { + return ["Ctrl-l"]; + } }]), o; +}(); +function Zvn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var eyn = function(r) { + ja(o, xc); + var i = Zvn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("table", "table"), f.subBubbleTableMenu = new dTt({ row: 9, col: 9 }), l.editor.options.wrapperDom.appendChild(f.subBubbleTableMenu.dom), f.catchOnce = "", f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f = this; + if (this.subBubbleTableMenu.dom.style.display === "none" || !this.hasCacheOnce()) { + var g = this.dom.getBoundingClientRect(); + return this.subBubbleTableMenu.dom.style.left = "".concat(g.left + g.width, "px"), this.subBubbleTableMenu.dom.style.top = "".concat(g.top + g.height, "px"), this.subBubbleTableMenu.show(function(A, b) { + var v, k, _, T = fd(" Header |").call(" Header |", b), L = fd(" ------ |").call(" ------ |", b), F = ` +|`.concat(fd(" Sample |").call(" Sample |", b)), U = At(v = At(k = At(_ = "".concat(l, ` + +|`)).call(_, T, ` +|`)).call(k, L)).call(v, fd(F).call(F, A), ` + +`); + f.setCacheOnce(U), f.fire(null); + }), this.updateMarkdown = !1, !1; + } + return this.getAndCleanCacheOnce(); + } }]), o; +}(); +function tyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var nyn = function(r) { + ja(o, xc); + var i = tyn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("toc", "toc"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + return "".concat(l, ` + +[[toc]] +`); + } }]), o; +}(); +function ryn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var iyn = function(r) { + ja(o, xc); + var i = ryn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("lineTable", "table"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f; + return At(f = "".concat(l, ` + +`)).call(f, ["| :line: {x,y} | a | b | c |", "| :-: | :-: | :-: | :-: |", "| x | 1 | 2 | 3 |", "| y | 2 | 4 | 6 |", "| z | 7 | 5 | 3 |"].join(` +`), ` + +`); + } }]), o; +}(); +function ayn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var oyn = function(r) { + ja(o, xc); + var i = ayn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("brTable", "table"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f; + return At(f = "".concat(l, ` + +`)).call(f, ["| :bar: {x,y} | a | b | c |", "| :-: | :-: | :-: | :-: |", "| x | 1 | 2 | 3 |", "| y | 2 | 4 | 6 |", "| z | 7 | 5 | 3 |"].join(` +`), ` + +`); + } }]), o; +}(); +function syn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var cyn = function(r) { + ja(o, xc); + var i = syn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("pdf", "pdf"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A, b = this; + if (this.hasCacheOnce()) { + var v, k = this.getAndCleanCacheOnce(), _ = k.name, T = k.url, L = k.params, F = "](".concat(T, ")"); + this.registerAfterClickCb(function() { + b.setLessSelection("[", F); + }); + var U = L.name ? L.name : _; + return At(v = "".concat("[").concat(U)).call(v, F); + } + var q = (f = (g = this.$cherry.options) === null || g === void 0 || (A = g.fileTypeLimitMap) === null || A === void 0 ? void 0 : A.pdf) !== null && f !== void 0 ? f : "*"; + return hX(this.editor, "pdf", q, function(Z, R, J) { + b.setCacheOnce({ name: Z, url: R, params: J }), b.fire(null); + }), this.updateMarkdown = !1, l; + } }]), o; +}(); +function lyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var uyn = function(r) { + ja(o, xc); + var i = lyn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("file", "phone"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A, b = this; + if (this.hasCacheOnce()) { + var v, k = this.getAndCleanCacheOnce(), _ = k.name, T = k.url, L = k.params, F = "](".concat(T, ")"); + this.registerAfterClickCb(function() { + b.setLessSelection("[", F); + }); + var U = L.name ? L.name : _; + return At(v = "".concat("[").concat(U)).call(v, F); + } + var q = (f = (g = this.$cherry.options) === null || g === void 0 || (A = g.fileTypeLimitMap) === null || A === void 0 ? void 0 : A.file) !== null && f !== void 0 ? f : "*"; + return hX(this.editor, "file", q, function(Z, R, J) { + b.setCacheOnce({ name: Z, url: R, params: J }), b.fire(null); + }), this.updateMarkdown = !1, l; + } }]), o; +}(); +function hyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var fyn = function(r) { + ja(o, xc); + var i = hyn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("word", "word"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g, A, b = this; + if (this.hasCacheOnce()) { + var v, k = this.getAndCleanCacheOnce(), _ = k.name, T = k.url, L = k.params, F = "](".concat(T, ")"); + this.registerAfterClickCb(function() { + b.setLessSelection("[", F); + }); + var U = L.name ? L.name : _; + return At(v = "".concat("[").concat(U)).call(v, F); + } + var q = (f = (g = this.$cherry.options) === null || g === void 0 || (A = g.fileTypeLimitMap) === null || A === void 0 ? void 0 : A.word) !== null && f !== void 0 ? f : "*"; + return hX(this.editor, "word", q, function(Z, R, J) { + b.setCacheOnce({ name: Z, url: R, params: J }), b.fire(null); + }), this.updateMarkdown = !1, l; + } }]), o; +}(); +function dyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Ayn = function(r) { + ja(o, xc); + var i = dyn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("pinyin", "pinyin"), f; + } + return yi(o, [{ key: "$testIsRuby", value: function(l) { + return /^\s*\{[\s\S]+\|[\s\S]+\}/.test(l); + } }, { key: "onClick", value: function(l) { + var f, g, A = this, b = v2(this.editor.editor, l) || "拼音"; + if (this.isSelections || this.$testIsRuby(b) || this.getMoreSelection(" { ", " } ", function() { + var k = A.editor.editor.getSelection(), _ = A.$testIsRuby(k); + return _ && (b = k), _; + }), this.$testIsRuby(b)) + return b.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm, "$1"); + var v = Go(f = this.editor.$cherry.options.callback.changeString2Pinyin(b) || "pin yin").call(f); + return this.registerAfterClickCb(function() { + A.setLessSelection(" { ", " } "); + }), At(g = " { ".concat(b, " | ")).call(g, v, " } "); + } }]), o; +}(); +function gyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var pyn = function(r) { + ja(o, xc); + var i = gyn(o); + function o(l) { + var f, g; + vi(this, o), (g = i.call(this, l)).setName("theme", "insertChart"), g.subMenuConfig = []; + var A = Xs(g); + return no(f = l.options.theme).call(f, function(b) { + var v; + A.subMenuConfig.push({ iconName: b.className, name: b.label, onclick: Bo(v = A.bindSubClick).call(v, A, b.className) }); + }), g; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + return S_t(this.$cherry, f), this.updateMarkdown = !1, ""; + } }]), o; +}(); +function myn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var byn = function(r) { + ja(o, xc); + var i = myn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("wordCount", "wordCount"), f.noIcon = !0, f.countState = 0, f.countEvent = new Event("count"), f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f = this, g = document.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount"); + if (this.countState === 0) { + g.addEventListener("count", function() { + var b = f.$cherry.getMarkdown(), v = f.wordCount(b), k = v.characters, _ = v.words, T = v.paragraphs; + f.countState === 1 ? g.innerHTML = "P ".concat(T) : f.countState === 2 ? g.innerHTML = "W ".concat(_) : g.innerHTML = "C ".concat(k); + }); + var A = null; + this.editor.editor.on("change", function() { + A && clearTimeout(A), A = lm(function() { + g.dispatchEvent(f.countEvent), A = null; + }, 500); + }); + } + return this.countState = (this.countState + 1) % 3 + 1, g.dispatchEvent(this.countEvent), l; + } }, { key: "wordCount", value: function(l) { + var f, g, A = /[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g, b = l.replace(/\n|\s/g, "").length, v = (l.match(A) || []).length + dd(f = l.replace(A, " ").split(/[\s\n]+/)).call(f, Boolean).length, k = dd(g = l.split(/\n{2,}/)).call(g, function(_) { + return Go(_).call(_) !== ""; + }).length; + return { characters: b, words: v, paragraphs: k }; + } }]), o; +}(); +function vyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var yyn = function(r) { + ja(o, xc); + var i = vyn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).previewer = l.previewer, f.updateMarkdown = !1, f.setName("mobilePreview", "phone"), f; + } + return yi(o, [{ key: "onClick", value: function() { + this.previewer.removeScroll(); + var l = this.previewer.getDomContainer(); + this.previewer.isMobilePreview ? l.parentNode.innerHTML = l.innerHTML : l.innerHTML = "
    ".concat(l.innerHTML, "
    "), this.previewer.isMobilePreview = !this.previewer.isMobilePreview, this.previewer.bindScroll(); + } }]), o; +}(), lRe = iTt; +function wyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var kyn = function(r) { + ja(l, xc); + var i, o = wyn(l); + function l(f) { + var g; + return vi(this, l), (g = o.call(this, f)).previewer = f.previewer, g.isLoading = !1, g.updateMarkdown = !1, g.setName("copy", "copy"), g; + } + return yi(l, [{ key: "adaptWechat", value: (i = aTt(KG.mark(function f(g) { + var A, b, v, k, _; + return KG.wrap(function(T) { + for (; ; ) + switch (T.prev = T.next) { + case 0: + return A = /(
    .*?<\/figure>)/g, b = g.replace(A, function(L, F, U, q) { + var Z, R; + return At(Z = At(R = "".concat(F, "p")).call(R, U, "p")).call(Z, q); + }), v = /()/g, k = [], b.replace(v, function(L, F, U) { + k.push(xyn(U)); + }), T.next = 7, lRe.all(k); + case 7: + return _ = T.sent, T.abrupt("return", b.replace(v, function(L, F, U, q) { + return F + _.shift() + q; + })); + case 9: + case "end": + return T.stop(); + } + }, f); + })), function(f) { + return i.apply(this, arguments); + }) }, { key: "getStyleFromSheets", value: function(f) { + var g, A = dd(g = Su(document.styleSheets)).call(g, function(b) { + var v; + return b.cssRules[0] && Lu(v = b.cssRules[0].cssText).call(v, f) > -1; + }); + return ""); + } }, { key: "computeStyle", value: function() { + return { mathStyle: this.getStyleFromSheets("mjx-container"), echartStyle: "", cherryStyle: this.getStyleFromSheets("cherry") }; + } }, { key: "toggleLoading", value: function() { + this.isLoading ? document.querySelector(".icon-loading").outerHTML = '') : document.querySelector(".ch-icon-copy").outerHTML = '
    ', this.isLoading = !this.isLoading; + } }, { key: "onClick", value: function(f) { + var g = this; + this.toggleLoading(); + var A = document.querySelector(".cherry").getAttribute("data-inline-code-theme"), b = document.querySelector(".cherry").getAttribute("data-code-block-theme"), v = this.computeStyle(), k = v.mathStyle, _ = v.echartStyle, T = v.cherryStyle, L = this.previewer.isPreviewerHidden() ? this.previewer.options.previewerCache.html : this.previewer.getValue(); + this.adaptWechat(L).then(function(F) { + var U, q, Z; + lTt(At(U = At(q = At(Z = "".concat(k + _ + T, ` +
    +
    `)).call(U, F, `
    +
    `)), g.toggleLoading(); + }); + } }]), l; +}(); +function xyn(r, i, o) { + return new lRe(function(l) { + var f = document.createElement("CANVAS"), g = f.getContext("2d"), A = new Image(); + A.crossOrigin = "Anonymous", A.onload = function() { + f.height = A.height, f.width = A.width, g.drawImage(A, 0, 0); + var b = f.toDataURL(o || "image/png"); + l(b), f = null; + }, A.src = r; + }); +} +function Cyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var ATt = function(r) { + ja(o, xc); + var i = Cyn(o); + function o(l) { + var f, g, A, b, v, k; + return vi(this, o), (k = i.call(this, l)).setName("panel", "tips"), k.panelRule = YPe().reg, k.subMenuConfig = [{ iconName: "tips", name: "tips", onclick: Bo(f = k.bindSubClick).call(f, Xs(k), "primary") }, { iconName: "info", name: "info", onclick: Bo(g = k.bindSubClick).call(g, Xs(k), "info") }, { iconName: "warning", name: "warning", onclick: Bo(A = k.bindSubClick).call(A, Xs(k), "warning") }, { iconName: "danger", name: "danger", onclick: Bo(b = k.bindSubClick).call(b, Xs(k), "danger") }, { iconName: "success", name: "success", onclick: Bo(v = k.bindSubClick).call(v, Xs(k), "success") }], k; + } + return yi(o, [{ key: "$getNameFromStr", value: function(l) { + var f = !1; + return this.panelRule.lastIndex = 0, l.replace(this.panelRule, function(g, A, b, v) { + var k = /\s/.test(Go(b).call(b)) ? Go(b).call(b).replace(/\s.*$/, "") : b; + return f = k ? Go(k).call(k).toLowerCase() : "", g; + }), f; + } }, { key: "$getTitle", value: function(l) { + return this.panelRule.lastIndex = 0, l.replace(this.panelRule, function(f, g, A, b) { + var v = Go(A).call(A); + return /\s/.test(v) ? v.replace(/[^\s]+\s/, "") : ""; + }), ""; + } }, { key: "onClick", value: function(l) { + var f, g, A = this, b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", v = v2(this.editor.editor, l, "line", !0) || "内容", k = this.$getNameFromStr(v), _ = this.$getTitle(v); + return k === !1 && this.getMoreSelection("::: ", ` +`, function() { + var T = A.editor.editor.getSelection(), L = A.$getNameFromStr(T); + return L !== !1 && (v = T, k = L, _ = A.$getTitle(T)), L !== !1; + }), k !== !1 ? k === b ? (this.panelRule.lastIndex = 0, v.replace(this.panelRule, function(T, L, F, U) { + var q, Z = Go(F).call(F), R = /\s/.test(Z) ? Z.replace(/[^\s]+\s/, "") : ""; + return At(q = "".concat(R, ` +`)).call(q, U); + })) : (this.registerAfterClickCb(function() { + A.setLessSelection("::: ", ` +`); + }), this.panelRule.lastIndex = 0, v.replace(this.panelRule, function(T, L, F, U) { + var q, Z, R = Go(F).call(F), J = /\s/.test(R) ? R.replace(/[^\s]+\s/, "") : ""; + return At(q = At(Z = "::: ".concat(b, " ")).call(Z, J, ` +`)).call(q, U.replace(/\n+$/, ""), ` +:::`); + })) : (this.registerAfterClickCb(function() { + A.setLessSelection("::: ", ` +`); + }), v = v.replace(/^\n+/, ""), /\n/.test(v) ? _ || (_ = v.replace(/\n[\w\W]+$/, ""), v = v.replace(/^[^\n]+\n/, "")) : _ = _ || "标题", At(f = At(g = "::: ".concat(b, " ")).call(g, _, ` +`)).call(f, v, ` +:::`).replace(/\n{2,}:::/g, ` +:::`)); + } }]), o; +}(); +function _yn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Eyn = function(r) { + ja(o, ATt); + var i = _yn(o); + function o(l) { + var f, g, A, b, v, k, _; + vi(this, o), (_ = i.call(this, l)).setName("justify", "justify"), _.panelRule = YPe().reg; + var T = _.$cherry.locale; + return _.subMenuConfig = [{ iconName: "justifyLeft", name: (f = T == null ? void 0 : T.justifyLeft) !== null && f !== void 0 ? f : "左对齐", onclick: Bo(g = _.bindSubClick).call(g, Xs(_), "left") }, { iconName: "justifyCenter", name: (A = T == null ? void 0 : T.justifyCenter) !== null && A !== void 0 ? A : "居中", onclick: Bo(b = _.bindSubClick).call(b, Xs(_), "center") }, { iconName: "justifyRight", name: (v = T == null ? void 0 : T.justifyRight) !== null && v !== void 0 ? v : "右对齐", onclick: Bo(k = _.bindSubClick).call(k, Xs(_), "right") }], _; + } + return yi(o, [{ key: "$getTitle", value: function() { + return " "; + } }]), o; +}(); +function Tyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Byn = function(r) { + ja(o, xc); + var i = Tyn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("detail", "insertFlow"), f.detailRule = B_t().reg, f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f, g = this, A = v2(this.editor.editor, l, "line", !0) || `点击展开更多 +内容 +++- 默认展开 +内容 +++ 默认收起 +内容`; + return this.detailRule.lastIndex = 0, this.detailRule.test(A) || this.getMoreSelection("+++ ", ` +`, function() { + var b = g.editor.editor.getSelection(); + g.detailRule.lastIndex = 0; + var v = g.detailRule.test(b); + return v !== !1 && (A = b), v !== !1; + }), this.detailRule.lastIndex = 0, this.detailRule.test(A) ? (this.detailRule.lastIndex = 0, A.replace(this.detailRule, function(b, v, k, _, T) { + var L; + return At(L = "".concat(_, ` +`)).call(L, T); + })) : (A = A.replace(/^\s+/, ""), /\n/.test(A) || (A = At(f = "".concat(A, ` +`)).call(f, A)), this.registerAfterClickCb(function() { + g.setLessSelection("+++ ", ` +`); + }), "+++ ".concat(A, ` ++++`).replace(/\n{2,}\+\+\+/g, ` ++++`)); + } }]), o; +}(); +function Syn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Lyn = function(r) { + ja(o, xc); + var i = Syn(o); + function o(l) { + var f; + return vi(this, o), (f = i.call(this, l)).setName("draw.io", "draw.io"), f.noIcon = !0, f.drawioIframeUrl = l.options.drawioIframeUrl, f; + } + return yi(o, [{ key: "onClick", value: function(l) { + var f = this; + if (!this.drawioIframeUrl) + return l; + if (this.hasCacheOnce()) { + var g, A = this.getAndCleanCacheOnce(), b = A.xmlData, v = A.base64, k = At(g = "](".concat(v, "){data-type=drawio data-xml=")).call(g, encodeURI(b), "}"); + return this.registerAfterClickCb(function() { + f.setLessSelection("![", k); + }), "".concat("![", "在预览区点击图片重新编辑draw.io").concat(k); + } + return uTt(this.drawioIframeUrl, "", function(_) { + f.setCacheOnce(_), f.fire(null); + }), this.updateMarkdown = !1, l; + } }]), o; +}(), U6t = { bold: S2n, italic: I2n, "|": F2n, strikethrough: D2n, sub: P2n, sup: Q2n, header: K2n, insert: X2n, list: V2n, ol: Y2n, ul: Z2n, checklist: tvn, graph: avn, size: svn, h1: lvn, h2: hvn, h3: dvn, color: U2n, quote: gvn, quickTable: mvn, togglePreview: vvn, code: Tvn, codeTheme: Svn, export: Ivn, settings: Fvn, fullScreen: wvn, mobilePreview: yyn, copy: kyn, undo: xvn, redo: _vn, underline: Dvn, switchModel: Pvn, image: Qvn, audio: Uvn, video: jvn, br: zvn, hr: Xvn, formula: qvn, link: Jvn, table: eyn, toc: nyn, lineTable: iyn, barTable: oyn, pdf: cyn, word: fyn, ruby: Ayn, theme: pyn, file: uyn, panel: ATt, justify: Eyn, detail: Byn, drawIo: Lyn, wordCount: byn }, Iyn = function() { + function r(i) { + vi(this, r), this.toolbar = i, this.hooks = {}, this.allMenusName = [], this.level1MenusName = [], this.level2MenusName = {}, this.init(); + } + return yi(r, [{ key: "$newMenu", value: function(i) { + if (!this.hooks[i]) { + var o = this.toolbar.options, l = o.$cherry, f = o.customMenu; + U6t[i] ? (this.allMenusName.push(i), this.hooks[i] = new U6t[i](l)) : f != null && f[i] && (this.allMenusName.push(i), this.hooks[i] = new f[i](l)); + } + } }, { key: "init", value: function() { + var i = this, o = this.toolbar.options.buttonConfig; + no(o).call(o, function(l) { + if (typeof l == "string") + i.level1MenusName.push(l), i.$newMenu(l); + else if (Yl(l) === "object") { + var f = yh(l); + if (f.length === 1) { + var g, A = vh(f, 1)[0]; + i.level1MenusName.push(A), i.$newMenu(A), i.level2MenusName[A] = l[A], no(g = l[A]).call(g, function(b) { + i.$newMenu(b); + }); + } + } + }); + } }]), r; +}(), Pie = function() { + function r(i) { + vi(this, r), Ui(this, "toolbarHandlers", {}), this.menus = {}, this.shortcutKeyMap = {}, this.subMenus = {}, this.options = { dom: document.createElement("div"), buttonConfig: ["bold"], customMenu: [] }, lL(this.options, i), this.$cherry = this.options.$cherry, this.instanceId = this.$cherry.instanceId, this.menus = new Iyn(this), this.drawMenus(), this.collectShortcutKey(), this.collectToolbarHandler(), this.init(); + } + return yi(r, [{ key: "init", value: function() { + var i = this; + kc.on(this.instanceId, kc.Events.cleanAllSubMenus, function() { + return i.hideAllSubMenu(); + }); + } }, { key: "previewOnly", value: function() { + this.options.dom.classList.add("preview-only"), this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"), kc.emit(this.instanceId, kc.Events.toolbarHide); + } }, { key: "showToolbar", value: function() { + this.options.dom.classList.remove("preview-only"), this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"), kc.emit(this.instanceId, kc.Events.toolbarShow); + } }, { key: "isHasLevel2Menu", value: function(i) { + return this.menus.level2MenusName[i]; + } }, { key: "isHasConfigMenu", value: function(i) { + return this.menus.hooks[i].subMenuConfig || []; + } }, { key: "isHasSubMenu", value: function(i) { + return !!(this.isHasLevel2Menu(i) || this.isHasConfigMenu(i).length > 0); + } }, { key: "drawMenus", value: function() { + var i, o = this, l = document.createDocumentFragment(); + no(i = this.menus.level1MenusName).call(i, function(f) { + var g = o.menus.hooks[f].createBtn(); + (typeof window > "u" ? "undefined" : Yl(window)) === "object" && "onpointerup" in window ? (g.addEventListener("pointerdown", function() { + o.isPointerDown = !0; + }, !1), g.addEventListener("pointerup", function(A) { + o.isPointerDown && o.onClick(A, f), o.isPointerDown = !1; + }, !1)) : g.addEventListener("click", function(A) { + o.onClick(A, f); + }, !1), o.isHasSubMenu(f) && g.classList.add("cherry-toolbar-dropdown"), l.appendChild(g); + }), this.appendMenusToDom(l); + } }, { key: "appendMenusToDom", value: function(i) { + var o = ih("div", "toolbar-left"); + o.appendChild(i), this.options.dom.appendChild(o); + } }, { key: "setSubMenuPosition", value: function(i, o) { + var l = i.getMenuPosition(); + o.style.left = "".concat(l.left + l.width / 2, "px"), o.style.top = "".concat(l.top + l.height, "px"), o.style.position = i.positionModel; + } }, { key: "drawSubMenus", value: function(i) { + var o = this; + this.subMenus[i] = ih("div", "cherry-dropdown", { name: i }), this.setSubMenuPosition(this.menus.hooks[i], this.subMenus[i]); + var l = this.isHasLevel2Menu(i); + l && no(l).call(l, function(g) { + var A = o.menus.hooks[g]; + if (A !== void 0 && typeof A.createBtn == "function") { + var b = A.createBtn(!0); + A.dom = A.dom ? A.dom : o.menus.hooks[i].dom, b.addEventListener("click", function(v) { + return o.onClick(v, g, !0); + }, !1), o.subMenus[i].appendChild(b); + } + }); + var f = this.isHasConfigMenu(i); + f.length > 0 && no(f).call(f, function(g) { + var A = o.menus.hooks[i].createSubBtnByConfig(g); + A.addEventListener("click", function() { + return o.hideAllSubMenu(); + }, !1), o.subMenus[i].appendChild(A); + }), this.$cherry.wrapperDom.appendChild(this.subMenus[i]); + } }, { key: "onClick", value: function(i, o) { + var l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], f = this.menus.hooks[o]; + f && (this.isHasSubMenu(o) && !l ? this.toggleSubMenu(o) : (this.hideAllSubMenu(), f.fire(i, o))); + } }, { key: "toggleSubMenu", value: function(i) { + if (!this.subMenus[i]) + return this.hideAllSubMenu(), this.drawSubMenus(i), void (this.subMenus[i].style.display = "block"); + this.subMenus[i].style.display === "none" ? (this.hideAllSubMenu(), this.subMenus[i].style.display = "block", this.setSubMenuPosition(this.menus.hooks[i], this.subMenus[i])) : this.subMenus[i].style.display = "none"; + } }, { key: "hideAllSubMenu", value: function() { + var i; + no(i = this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(i, function(o) { + o.style.display = "none"; + }); + } }, { key: "collectMenuInfo", value: function(i) { + this.toolbarHandlers = lL({}, this.toolbarHandlers, i.toolbarHandlers), this.menus.hooks = lL({}, i.menus.hooks, this.menus.hooks), (!this.options.shortcutKey || yh(this.options.shortcutKey).length <= 0) && (this.shortcutKeyMap = lL({}, this.shortcutKeyMap, i.shortcutKeyMap)); + } }, { key: "collectShortcutKey", value: function() { + var i, o = this; + this.options.shortcutKey && yh(this.options.shortcutKey).length > 0 ? this.shortcutKeyMap = this.options.shortcutKey : no(i = this.menus.allMenusName).call(i, function(l) { + var f; + (f = o.menus.hooks[l].shortcutKeys) === null || f === void 0 || no(f).call(f, function(g) { + o.shortcutKeyMap[g] = l; + }); + }); + } }, { key: "collectToolbarHandler", value: function() { + var i, o = this; + this.toolbarHandlers = _L(i = this.menus.allMenusName).call(i, function(l, f) { + var g = o.menus.hooks[f]; + return g && (l[f] = function(A, b) { + typeof b == "function" && k3.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."), g.fire.call(g, void 0, A); + }), l; + }, {}); + } }, { key: "matchShortcutKey", value: function(i) { + return !!this.shortcutKeyMap[this.getCurrentKey(i)]; + } }, { key: "fireShortcutKey", value: function(i) { + var o, l = this.getCurrentKey(i); + (o = this.menus.hooks[this.shortcutKeyMap[l]]) === null || o === void 0 || o.fire(i, l); + } }, { key: "getCurrentKey", value: function(i) { + var o = ""; + return i.ctrlKey && (o += "Ctrl-"), i.altKey && (o += "Alt-"), i.metaKey && E2n && (o += "Ctrl-"), i.shiftKey && (o += "Shift-"), i.key && i.key.toLowerCase() !== "shift" && (o += i.key.toLowerCase()), o; + } }]), r; +}(); +function Myn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var gTt = function(r) { + ja(o, Pie); + var i = Myn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "visible", get: function() { + var l = window.getComputedStyle(this.bubbleDom); + return l.display !== "none" && l.visibility !== "hidden"; + }, set: function(l) { + var f = window.getComputedStyle(this.bubbleDom); + l ? f.display === "none" && (this.bubbleDom.style.display = o.displayType) : f.display !== "none" && (this.bubbleDom.style.display = "none"); + } }, { key: "init", value: function() { + this.options.editor = this.$cherry.editor, this.addSelectionChangeListener(), this.bubbleDom = this.options.dom, this.editorDom = this.options.editor.getEditorDom(), this.initBubbleDom(), this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom); + } }, { key: "appendMenusToDom", value: function(l) { + this.options.dom.appendChild(l); + } }, { key: "getScrollTop", value: function() { + return this.options.editor.editor.getScrollInfo().top; + } }, { key: "updatePositionWhenScroll", value: function() { + this.bubbleDom.style.display === o.displayType && (this.bubbleDom.style.marginTop = "".concat(g2(this.bubbleDom.dataset.scrollTop) - this.getScrollTop(), "px")); + } }, { key: "showBubble", value: function(l, f) { + this.visible || (this.visible = !0, this.bubbleDom.style.marginTop = "0", this.bubbleDom.dataset.scrollTop = String(this.getScrollTop())); + var g = this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(), A = this.editorDom.getBoundingClientRect(), b = g.left - A.left, v = g.width + b, k = l; + k < 2 * this.bubbleDom.offsetHeight ? (k += this.bubbleDom.offsetHeight - this.bubbleTop.getBoundingClientRect().height, this.bubbleTop.style.display = "block", this.bubbleBottom.style.display = "none") : (k -= this.bubbleDom.offsetHeight + 2 * this.bubbleBottom.getBoundingClientRect().height, this.bubbleTop.style.display = "none", this.bubbleBottom.style.display = "block"), this.bubbleDom.style.top = "".concat(k, "px"); + var _ = f - this.bubbleDom.offsetWidth / 2; + _ < b ? (_ = b, this.$setBubbleCursorPosition("".concat(f - b, "px"))) : _ + this.bubbleDom.offsetWidth > v ? (_ = v - this.bubbleDom.offsetWidth, this.$setBubbleCursorPosition("".concat(f - _, "px"))) : this.$setBubbleCursorPosition("50%"), this.bubbleDom.style.left = "".concat(Math.max(20, _), "px"); + } }, { key: "hideBubble", value: function() { + this.visible = !1; + } }, { key: "$setBubbleCursorPosition", value: function() { + var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "50%"; + if (l === "50%") + this.bubbleTop.style.left = "50%", this.bubbleBottom.style.left = "50%"; + else { + var f = g2(l) < 10 ? "10px" : l; + this.bubbleTop.style.left = f, this.bubbleBottom.style.left = f; + } + } }, { key: "initBubbleDom", value: function() { + var l = document.createElement("div"); + l.className = "cherry-bubble-top"; + var f = document.createElement("div"); + f.className = "cherry-bubble-bottom", this.bubbleTop = l, this.bubbleBottom = f, this.bubbleDom.appendChild(l), this.bubbleDom.appendChild(f), this.visible = !1; + } }, { key: "getBubbleDom", value: function() { + return this.bubbleDom; + } }, { key: "addSelectionChangeListener", value: function() { + var l = this; + this.options.editor.addListener("change", function(f) { + l.hideBubble(); + }), this.options.editor.addListener("refresh", function(f) { + l.hideBubble(); + }), this.options.editor.addListener("scroll", function(f) { + l.updatePositionWhenScroll(); + }), this.options.editor.addListener("beforeSelectionChange", function(f, g) { + if (g.origin !== "*mouse" && (g.origin !== null || g.origin === void 0) || !g.ranges[0]) + return !0; + var A = 1e6 * g.ranges[0].anchor.line + g.ranges[0].anchor.ch, b = 1e6 * g.ranges[0].head.line + g.ranges[0].head.ch, v = "asc"; + A > b && (v = "desc"), lm(function() { + if (f.getSelections().join("").length <= 0) + l.hideBubble(); + else { + var k = f.getWrapperElement().getElementsByClassName("CodeMirror-selected"), _ = l.editorDom.getBoundingClientRect(), T = 0, L = 0; + if (Yl(k) !== "object" || k.length <= 0) + l.hideBubble(); + else { + for (var F = 0; F < k.length; F++) { + var U = k[F].getBoundingClientRect(), q = U.top - _.top; + v === "asc" ? q >= L && (L = q, T = U.left - _.left + U.width / 2) : (q <= L || L <= 0) && (L = q, T = U.left - _.left + U.width / 2); + } + l.showBubble(L, T); + } + } + }, 10); + }); + } }]), o; +}(); +function Fyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(gTt, "displayType", "flex"); +var Oyn = function(r) { + ja(o, Pie); + var i = Fyn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "init", value: function() { + this.editor = this.$cherry.editor, this.editorDom = this.editor.getEditorDom(), this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom), this.initAction(); + } }, { key: "appendMenusToDom", value: function(l) { + this.options.dom.appendChild(l); + } }, { key: "initAction", value: function() { + var l = this; + this.editor.addListener("cursorActivity", function(f, g) { + l.cursorActivity(g, f); + }), this.editor.addListener("update", function(f, g) { + l.cursorActivity(g, f); + }), this.editor.addListener("refresh", function(f, g) { + lm(function() { + l.cursorActivity(g, f); + }, 0); + }); + } }, { key: "update", value: function(l, f) { + var g = f.getCursor(); + if (this.isHidden(g.line, f)) + return this.options.dom.style.display = "none", !1; + this.options.dom.style.display = "inline-block"; + } }, { key: "cursorActivity", value: function(l, f) { + var g = f.getCursor(), A = document.querySelector(".cherry-editor .CodeMirror-lines"); + if (!A) + return !1; + var b = getComputedStyle(A), v = g2(b.paddingLeft), k = g2(b.paddingTop); + if (this.isHidden(g.line, f)) + return this.options.dom.style.display = "none", !1; + this.options.dom.style.display = "inline-block", this.options.dom.style.left = "".concat(v, "px"), this.options.dom.style.top = "".concat(this.getLineHeight(g.line, f) + k, "px"); + } }, { key: "isHidden", value: function(l, f) { + return f.getSelections().length > 1 || f.getSelection().length > 0 || !!f.getLine(l); + } }, { key: "getLineHeight", value: function(l, f) { + var g = 0; + return f.getDoc().eachLine(0, l, function(A) { + g += A.height; + }), g; + } }]), o; +}(); +function Dyn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Nyn = function(r) { + ja(o, Pie); + var i = Dyn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "appendMenusToDom", value: function(l) { + var f = ih("div", "toolbar-right"); + f.appendChild(l), this.options.dom.appendChild(f); + } }]), o; +}(), Pyn = function() { + function r(i) { + var o, l; + vi(this, r), this.$cherry = i.$cherry, this.editor = i.$cherry.editor.editor, this.tocStr = "", this.updateLocationHash = (o = i.updateLocationHash) === null || o === void 0 || o, this.defaultModel = (l = i.defaultModel) !== null && l !== void 0 ? l : "full", this.init(); + } + return yi(r, [{ key: "init", value: function() { + var i = this; + this.drawDom(), this.timer = lm(function() { + i.updateTocList(); + }, 300), this.editor.on("change", function(o, l) { + clearTimeout(i.timer), i.timer = lm(function() { + i.updateTocList(), i.$switchModel(i.model); + }, 300); + }), this.$switchModel(this.getModelFromLocalStorage()); + } }, { key: "getModelFromLocalStorage", value: function() { + return typeof localStorage > "u" ? this.defaultModel : localStorage.getItem("cherry-toc-model") || this.defaultModel; + } }, { key: "setModelToLocalStorage", value: function(i) { + typeof localStorage < "u" && localStorage.setItem("cherry-toc-model", i); + } }, { key: "drawDom", value: function() { + var i = ih("div", "cherry-flex-toc cherry-flex-toc__pure"), o = ih("div", "cherry-toc-head"), l = ih("span", "cherry-toc-title"); + l.append(this.$cherry.locale.toc); + var f = ih("i", "ch-icon ch-icon-chevronsRight"), g = ih("i", "ch-icon ch-icon-chevronsLeft"); + this.tocClose = f, this.tocOpen = g, o.appendChild(l), o.appendChild(f), o.appendChild(g), i.appendChild(o); + var A = ih("div", "cherry-toc-list"); + this.tocListDom = A, i.appendChild(A), this.tocDom = i, this.$cherry.wrapperDom.appendChild(i), this.bindClickEvent(); + } }, { key: "bindClickEvent", value: function() { + var i = this; + this.tocDom.addEventListener("click", function(o) { + var l = i.$getClosestNode(o.target, "A"); + if (l !== !1 && /cherry-toc-one-a/.test(l.className)) { + var f = l.dataset, g = f.id, A = f.index; + if (i.$cherry.status.previewer === "hide") { + for (var b = i.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g), v = 0; v <= A; v++) + b.findNext(); + var k = b.from(); + i.$cherry.editor.scrollToLineNum(k.line, k.line + 1, 0); + } else { + var _, T = i.$cherry.previewer.getDomContainer(), L = (_ = T.querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[A]) !== null && _ !== void 0 && _; + if (L !== !1) { + var F = T.scrollTop + L.getBoundingClientRect().y - T.getBoundingClientRect().y - 20; + T.scrollTo({ top: F, left: 0, behavior: "smooth" }); + } + } + i.updateLocationHash && (location.href = g); + } + }), this.tocClose.addEventListener("click", function(o) { + i.$switchModel("pure"), i.setModelToLocalStorage("pure"); + }), this.tocOpen.addEventListener("click", function(o) { + i.$switchModel("full"), i.setModelToLocalStorage("full"); + }), window && window.addEventListener("resize", function() { + i.$switchModel(i.model); + }), this.editor.on("scroll", function(o, l) { + i.updateTocList(!0); + }), this.$cherry.previewer.getDomContainer().addEventListener("scroll", function() { + i.updateTocList(!0); + }); + } }, { key: "$switchModel", value: function() { + var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pure"; + this.model = i; + var o = "cherry-flex-toc__".concat(i); + this.tocDom.classList.contains(o) || (this.tocDom.classList.remove("cherry-flex-toc__pure"), this.tocDom.classList.remove("cherry-flex-toc__full"), this.tocDom.classList.add(o)); + var l = this.tocListDom.querySelectorAll(".cherry-toc-one-a"); + if (l.length > 0) { + var f = 28; + if (i === "pure") { + var g = this.tocListDom.getBoundingClientRect().height, A = Math.floor((g - 3 * l.length) / l.length); + f = A < 3 ? 3 : A > 10 ? 10 : A; + } + for (var b = 0; b < l.length; b++) + l[b].style.height !== "".concat(f, "px") && (l[b].style.height = "".concat(f, "px")); + } + } }, { key: "$getClosestNode", value: function(i, o) { + return i.tagName === o ? i : i.parentNode.tagName !== "BODY" && this.$getClosestNode(i.parentNode, o); + } }, { key: "updateTocList", value: function() { + if ((arguments.length > 0 && arguments[0] !== void 0 && arguments[0]) !== !0) { + var i = this.$cherry.getToc(), o = ""; + if (Zs(i).call(i, function(k) { + return o += k.text, k; + }), o = eRe(o), this.tocStr !== o) { + this.tocStr = o; + var l = "", f = 0; + Zs(i).call(i, function(k) { + var _, T, L, F, U = k.text.replace(//g, ""), q = U.replace(/<[^>]+?>/g, ""); + return l += At(_ = At(T = At(L = At(F = '`)).call(_, U, ""), f += 1, k; + }), this.tocListDom.innerHTML = l; + } + } + if (this.$cherry.status.previewer !== "hide") { + for (var g, A = this.$cherry.previewer.getDomContainer().getBoundingClientRect().y, b = this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"), v = 0; v < b.length && !(b[v].getBoundingClientRect().y > A + 20); v++) + ; + v = v > 0 ? v - 1 : v, no(g = this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(g, function(k, _) { + _ === v ? k.classList.add("current") : k.classList.remove("current"); + }); + } + } }]), r; +}(); +function Ryn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +var Qyn = function(r) { + ja(o, Pie); + var i = Ryn(o); + function o() { + return vi(this, o), i.apply(this, arguments); + } + return yi(o, [{ key: "appendMenusToDom", value: function(l) { + this.options.dom.appendChild(l); + } }]), o; +}(), CT = -1, D9 = 1, d5 = 0; +function iie(r, i, o, l) { + if (r === i) + return r ? [[d5, r]] : []; + if (o != null) { + var f = function(k, _, T) { + var L = typeof T == "number" ? { index: T, length: 0 } : T.oldRange, F = typeof T == "number" ? null : T.newRange, U = k.length, q = _.length; + if (L.length === 0 && (F === null || F.length === 0)) { + var Z = L.index, R = k.slice(0, Z), J = k.slice(Z), he = F ? F.index : null, Y = Z + q - U; + if ((he === null || he === Y) && !(Y < 0 || Y > q)) { + var ue = _.slice(0, Y); + if ((ke = _.slice(Y)) === J) { + var le = Math.min(Z, Y); + if ((Te = R.slice(0, le)) === (ie = ue.slice(0, le))) + return PFe(Te, R.slice(le), ue.slice(le), J); + } + } + if (he === null || he === Z) { + var be = Z, ke = (ue = _.slice(0, be), _.slice(be)); + if (ue === R) { + var de = Math.min(U - be, q - be); + if ((xe = J.slice(J.length - de)) === (Be = ke.slice(ke.length - de))) + return PFe(R, J.slice(0, J.length - de), ke.slice(0, ke.length - de), xe); + } + } + } + if (L.length > 0 && F && F.length === 0) { + var Te = k.slice(0, L.index), xe = k.slice(L.index + L.length); + if (!(q < (le = Te.length) + (de = xe.length))) { + var ie = _.slice(0, le), Be = _.slice(q - de); + if (Te === ie && xe === Be) + return PFe(Te, k.slice(le, U - de), _.slice(le, q - de), xe); + } + } + return null; + }(r, i, o); + if (f) + return f; + } + var g = qDe(r, i), A = r.substring(0, g); + g = YDe(r = r.substring(g), i = i.substring(g)); + var b = r.substring(r.length - g), v = function(k, _) { + var T; + if (!k) + return [[D9, _]]; + if (!_) + return [[CT, k]]; + var L = k.length > _.length ? k : _, F = k.length > _.length ? _ : k, U = L.indexOf(F); + if (U !== -1) + return T = [[D9, L.substring(0, U)], [d5, F], [D9, L.substring(U + F.length)]], k.length > _.length && (T[0][0] = T[2][0] = CT), T; + if (F.length === 1) + return [[CT, k], [D9, _]]; + var q = function(be, ke) { + var de = be.length > ke.length ? be : ke, Te = be.length > ke.length ? ke : be; + if (de.length < 4 || 2 * Te.length < de.length) + return null; + function xe(bt, gt, je) { + for (var Qe, kt, Wt, jt, Zn = bt.substring(je, je + Math.floor(bt.length / 4)), Ft = -1, wn = ""; (Ft = gt.indexOf(Zn, Ft + 1)) !== -1; ) { + var un = qDe(bt.substring(je), gt.substring(Ft)), ln = YDe(bt.substring(0, je), gt.substring(0, Ft)); + wn.length < ln + un && (wn = gt.substring(Ft - ln, Ft) + gt.substring(Ft, Ft + un), Qe = bt.substring(0, je - ln), kt = bt.substring(je + un), Wt = gt.substring(0, Ft - ln), jt = gt.substring(Ft + un)); + } + return 2 * wn.length >= bt.length ? [Qe, kt, Wt, jt, wn] : null; + } + var ie, Be, te, Me, ve, ge = xe(de, Te, Math.ceil(de.length / 4)), Je = xe(de, Te, Math.ceil(de.length / 2)); + if (!ge && !Je) + return null; + ie = Je ? ge && ge[4].length > Je[4].length ? ge : Je : ge, be.length > ke.length ? (Be = ie[0], te = ie[1], Me = ie[2], ve = ie[3]) : (Me = ie[0], ve = ie[1], Be = ie[2], te = ie[3]); + var ot = ie[4]; + return [Be, te, Me, ve, ot]; + }(k, _); + if (q) { + var Z = q[0], R = q[1], J = q[2], he = q[3], Y = q[4], ue = iie(Z, J), le = iie(R, he); + return ue.concat([[d5, Y]], le); + } + return function(be, ke) { + for (var de = be.length, Te = ke.length, xe = Math.ceil((de + Te) / 2), ie = xe, Be = 2 * xe, te = new Array(Be), Me = new Array(Be), ve = 0; ve < Be; ve++) + te[ve] = -1, Me[ve] = -1; + te[ie + 1] = 0, Me[ie + 1] = 0; + for (var ge = de - Te, Je = ge % 2 != 0, ot = 0, bt = 0, gt = 0, je = 0, Qe = 0; Qe < xe; Qe++) { + for (var kt = -Qe + ot; kt <= Qe - bt; kt += 2) { + for (var Wt = ie + kt, jt = (ln = kt === -Qe || kt !== Qe && te[Wt - 1] < te[Wt + 1] ? te[Wt + 1] : te[Wt - 1] + 1) - kt; ln < de && jt < Te && be.charAt(ln) === ke.charAt(jt); ) + ln++, jt++; + if (te[Wt] = ln, ln > de) + bt += 2; + else if (jt > Te) + ot += 2; + else if (Je && (wn = ie + ge - kt) >= 0 && wn < Be && Me[wn] !== -1 && ln >= (Ft = de - Me[wn])) + return H6t(be, ke, ln, jt); + } + for (var Zn = -Qe + gt; Zn <= Qe - je; Zn += 2) { + for (var Ft, wn = ie + Zn, un = (Ft = Zn === -Qe || Zn !== Qe && Me[wn - 1] < Me[wn + 1] ? Me[wn + 1] : Me[wn - 1] + 1) - Zn; Ft < de && un < Te && be.charAt(de - Ft - 1) === ke.charAt(Te - un - 1); ) + Ft++, un++; + if (Me[wn] = Ft, Ft > de) + je += 2; + else if (un > Te) + gt += 2; + else if (!Je && (Wt = ie + ge - Zn) >= 0 && Wt < Be && te[Wt] !== -1) { + var ln; + if (jt = ie + (ln = te[Wt]) - Wt, ln >= (Ft = de - Ft)) + return H6t(be, ke, ln, jt); + } + } + } + return [[CT, be], [D9, ke]]; + }(k, _); + }(r = r.substring(0, r.length - g), i = i.substring(0, i.length - g)); + return A && v.unshift([d5, A]), b && v.push([d5, b]), pTt(v, l), v; +} +function H6t(r, i, o, l) { + var f = r.substring(0, o), g = i.substring(0, l), A = r.substring(o), b = i.substring(l), v = iie(f, g), k = iie(A, b); + return v.concat(k); +} +function qDe(r, i) { + if (!r || !i || r.charAt(0) !== i.charAt(0)) + return 0; + for (var o = 0, l = Math.min(r.length, i.length), f = l, g = 0; o < f; ) + r.substring(g, f) == i.substring(g, f) ? g = o = f : l = f, f = Math.floor((l - o) / 2 + o); + return mTt(r.charCodeAt(f - 1)) && f--, f; +} +function YDe(r, i) { + if (!r || !i || r.slice(-1) !== i.slice(-1)) + return 0; + for (var o = 0, l = Math.min(r.length, i.length), f = l, g = 0; o < f; ) + r.substring(r.length - f, r.length - g) == i.substring(i.length - f, i.length - g) ? g = o = f : l = f, f = Math.floor((l - o) / 2 + o); + return bTt(r.charCodeAt(r.length - f)) && f--, f; +} +function pTt(r, i) { + r.push([d5, ""]); + for (var o, l = 0, f = 0, g = 0, A = "", b = ""; l < r.length; ) + if (l < r.length - 1 && !r[l][1]) + r.splice(l, 1); + else + switch (r[l][0]) { + case D9: + g++, b += r[l][1], l++; + break; + case CT: + f++, A += r[l][1], l++; + break; + case d5: + var v = l - g - f - 1; + if (i) { + if (v >= 0 && yTt(r[v][1])) { + var k = r[v][1].slice(-1); + if (r[v][1] = r[v][1].slice(0, -1), A = k + A, b = k + b, !r[v][1]) { + r.splice(v, 1), l--; + var _ = v - 1; + r[_] && r[_][0] === D9 && (g++, b = r[_][1] + b, _--), r[_] && r[_][0] === CT && (f++, A = r[_][1] + A, _--), v = _; + } + } + vTt(r[l][1]) && (k = r[l][1].charAt(0), r[l][1] = r[l][1].slice(1), A += k, b += k); + } + if (l < r.length - 1 && !r[l][1]) { + r.splice(l, 1); + break; + } + if (A.length > 0 || b.length > 0) { + A.length > 0 && b.length > 0 && ((o = qDe(b, A)) !== 0 && (v >= 0 ? r[v][1] += b.substring(0, o) : (r.splice(0, 0, [d5, b.substring(0, o)]), l++), b = b.substring(o), A = A.substring(o)), (o = YDe(b, A)) !== 0 && (r[l][1] = b.substring(b.length - o) + r[l][1], b = b.substring(0, b.length - o), A = A.substring(0, A.length - o))); + var T = g + f; + A.length === 0 && b.length === 0 ? (r.splice(l - T, T), l -= T) : A.length === 0 ? (r.splice(l - T, T, [D9, b]), l = l - T + 1) : b.length === 0 ? (r.splice(l - T, T, [CT, A]), l = l - T + 1) : (r.splice(l - T, T, [CT, A], [D9, b]), l = l - T + 2); + } + l !== 0 && r[l - 1][0] === d5 ? (r[l - 1][1] += r[l][1], r.splice(l, 1)) : l++, g = 0, f = 0, A = "", b = ""; + } + r[r.length - 1][1] === "" && r.pop(); + var L = !1; + for (l = 1; l < r.length - 1; ) + r[l - 1][0] === d5 && r[l + 1][0] === d5 && (r[l][1].substring(r[l][1].length - r[l - 1][1].length) === r[l - 1][1] ? (r[l][1] = r[l - 1][1] + r[l][1].substring(0, r[l][1].length - r[l - 1][1].length), r[l + 1][1] = r[l - 1][1] + r[l + 1][1], r.splice(l - 1, 1), L = !0) : r[l][1].substring(0, r[l + 1][1].length) == r[l + 1][1] && (r[l - 1][1] += r[l + 1][1], r[l][1] = r[l][1].substring(r[l + 1][1].length) + r[l + 1][1], r.splice(l + 1, 1), L = !0)), l++; + L && pTt(r, i); +} +function mTt(r) { + return r >= 55296 && r <= 56319; +} +function bTt(r) { + return r >= 56320 && r <= 57343; +} +function vTt(r) { + return bTt(r.charCodeAt(0)); +} +function yTt(r) { + return mTt(r.charCodeAt(r.length - 1)); +} +function PFe(r, i, o, l) { + return yTt(r) || vTt(l) ? null : function(f) { + for (var g = [], A = 0; A < f.length; A++) + f[A][1].length > 0 && g.push(f[A]); + return g; + }([[d5, r], [CT, i], [D9, o], [d5, l]]); +} +function Dpe(r, i, o) { + return iie(r, i, o, !0); +} +Dpe.INSERT = D9, Dpe.DELETE = CT, Dpe.EQUAL = d5; +var zge = Dpe, $yn = function(r, i) { + for (var o = -1, l = r == null ? 0 : r.length; ++o < l && i(r[o], o, r) !== !1; ) + ; + return r; +}, Uyn = Y9t(Object.keys, Object), Hyn = Object.prototype.hasOwnProperty, jyn = function(r) { + if (!UPe(r)) + return Uyn(r); + var i = []; + for (var o in Object(r)) + Hyn.call(r, o) && o != "constructor" && i.push(o); + return i; +}, uRe = function(r) { + return Ube(r) ? a_t(r) : jyn(r); +}, Kyn = function(r, i) { + return r && Mie(i, uRe(i), r); +}, zyn = function(r, i) { + return r && Mie(i, Fie(i), r); +}, Gyn = function(r, i) { + for (var o = -1, l = r == null ? 0 : r.length, f = 0, g = []; ++o < l; ) { + var A = r[o]; + i(A, o, r) && (g[f++] = A); + } + return g; +}, wTt = function() { + return []; +}, Xyn = Object.prototype.propertyIsEnumerable, j6t = Object.getOwnPropertySymbols, Wyn = j6t ? function(r) { + return r == null ? [] : (r = Object(r), Gyn(j6t(r), function(i) { + return Xyn.call(r, i); + })); +} : wTt, hRe = Wyn, Vyn = function(r, i) { + return Mie(r, hRe(r), i); +}, kTt = function(r, i) { + for (var o = -1, l = i.length, f = r.length; ++o < l; ) + r[f + o] = i[o]; + return r; +}, qyn = Object.getOwnPropertySymbols ? function(r) { + for (var i = []; r; ) + kTt(i, hRe(r)), r = $Pe(r); + return i; +} : wTt, xTt = qyn, Yyn = function(r, i) { + return Mie(r, xTt(r), i); +}, CTt = function(r, i, o) { + var l = i(r); + return DG(r) ? l : kTt(l, o(r)); +}, Jyn = function(r) { + return CTt(r, uRe, hRe); +}, Zyn = function(r) { + return CTt(r, Fie, xTt); +}, JDe = k$(X9, "DataView"), ZDe = k$(X9, "Promise"), eNe = k$(X9, "Set"), tNe = k$(X9, "WeakMap"), K6t = "[object Map]", z6t = "[object Promise]", G6t = "[object Set]", X6t = "[object WeakMap]", W6t = "[object DataView]", ewn = w$(JDe), twn = w$(zre), nwn = w$(ZDe), rwn = w$(eNe), iwn = w$(tNe), PQ = y$; +(JDe && PQ(new JDe(new ArrayBuffer(1))) != W6t || zre && PQ(new zre()) != K6t || ZDe && PQ(ZDe.resolve()) != z6t || eNe && PQ(new eNe()) != G6t || tNe && PQ(new tNe()) != X6t) && (PQ = function(r) { + var i = y$(r), o = i == "[object Object]" ? r.constructor : void 0, l = o ? w$(o) : ""; + if (l) + switch (l) { + case ewn: + return W6t; + case twn: + return K6t; + case nwn: + return z6t; + case rwn: + return G6t; + case iwn: + return X6t; + } + return i; +}); +var fRe = PQ, awn = Object.prototype.hasOwnProperty, own = function(r) { + var i = r.length, o = new r.constructor(i); + return i && typeof r[0] == "string" && awn.call(r, "index") && (o.index = r.index, o.input = r.input), o; +}, swn = function(r, i) { + var o = i ? QPe(r.buffer) : r.buffer; + return new r.constructor(o, r.byteOffset, r.byteLength); +}, cwn = /\w*$/, lwn = function(r) { + var i = new r.constructor(r.source, cwn.exec(r)); + return i.lastIndex = r.lastIndex, i; +}, V6t = TO ? TO.prototype : void 0, q6t = V6t ? V6t.valueOf : void 0, uwn = function(r) { + return q6t ? Object(q6t.call(r)) : {}; +}, hwn = function(r, i, o) { + var l = r.constructor; + switch (i) { + case "[object ArrayBuffer]": + return QPe(r); + case "[object Boolean]": + case "[object Date]": + return new l(+r); + case "[object DataView]": + return swn(r, o); + case "[object Float32Array]": + case "[object Float64Array]": + case "[object Int8Array]": + case "[object Int16Array]": + case "[object Int32Array]": + case "[object Uint8Array]": + case "[object Uint8ClampedArray]": + case "[object Uint16Array]": + case "[object Uint32Array]": + return V9t(r, o); + case "[object Map]": + case "[object Set]": + return new l(); + case "[object Number]": + case "[object String]": + return new l(r); + case "[object RegExp]": + return lwn(r); + case "[object Symbol]": + return uwn(r); + } +}, fwn = function(r) { + return RO(r) && fRe(r) == "[object Map]"; +}, Y6t = NG && NG.isMap, dwn = Y6t ? jPe(Y6t) : fwn, Awn = function(r) { + return RO(r) && fRe(r) == "[object Set]"; +}, J6t = NG && NG.isSet, gwn = J6t ? jPe(J6t) : Awn, _Tt = "[object Arguments]", ETt = "[object Function]", TTt = "[object Object]", tA = {}; +tA[_Tt] = tA["[object Array]"] = tA["[object ArrayBuffer]"] = tA["[object DataView]"] = tA["[object Boolean]"] = tA["[object Date]"] = tA["[object Float32Array]"] = tA["[object Float64Array]"] = tA["[object Int8Array]"] = tA["[object Int16Array]"] = tA["[object Int32Array]"] = tA["[object Map]"] = tA["[object Number]"] = tA[TTt] = tA["[object RegExp]"] = tA["[object Set]"] = tA["[object String]"] = tA["[object Symbol]"] = tA["[object Uint8Array]"] = tA["[object Uint8ClampedArray]"] = tA["[object Uint16Array]"] = tA["[object Uint32Array]"] = !0, tA["[object Error]"] = tA[ETt] = tA["[object WeakMap]"] = !1; +var pwn = function r(i, o, l, f, g, A) { + var b, v = 1 & o, k = 2 & o, _ = 4 & o; + if (l && (b = g ? l(i, f, g, A) : l(i)), b !== void 0) + return b; + if (!z9(i)) + return i; + var T = DG(i); + if (T) { + if (b = own(i), !v) + return q9t(i, b); + } else { + var L = fRe(i), F = L == ETt || L == "[object GeneratorFunction]"; + if (HPe(i)) + return W9t(i, v); + if (L == TTt || L == _Tt || F && !g) { + if (b = k || F ? {} : J9t(i), !v) + return k ? Yyn(i, zyn(b, i)) : Vyn(i, Kyn(b, i)); + } else { + if (!tA[L]) + return g ? i : {}; + b = hwn(i, L, v); + } + } + A || (A = new X9t()); + var U = A.get(i); + if (U) + return U; + A.set(i, b), gwn(i) ? i.forEach(function(Z) { + b.add(r(Z, o, l, Z, i, A)); + }) : dwn(i) && i.forEach(function(Z, R) { + b.set(R, r(Z, o, l, R, i, A)); + }); + var q = T ? void 0 : (_ ? k ? Zyn : Jyn : k ? Fie : uRe)(i); + return $yn(q || i, function(Z, R) { + q && (Z = i[R = Z]), r_t(b, R, r(Z, o, l, R, i, A)); + }), b; +}, BTt = function(r) { + return pwn(r, 5); +}, iO = { urlProcessor: function(r, i) { + return r; +}, fileUpload: function(r, i) { + if (/video/i.test(r.type)) + i("images/demo-dog.png", { name: "".concat(r.name.replace(/\.[^.]+$/, "")), poster: "images/demo-dog.png?poster=true", isBorder: !0, isShadow: !0, isRadius: !0 }); + else if (/image/i.test(r.type)) { + var o = new FileReader(); + o.onload = function(l) { + var f = l.target.result; + i(f, { name: "".concat(r.name.replace(/\.[^.]+$/, "")), isShadow: !0, width: "60%", height: "auto" }); + }, o.readAsDataURL(r); + } else + i("images/demo-dog.png"); +}, afterChange: function(r, i) { +}, afterInit: function(r, i) { +}, beforeImageMounted: function(r, i) { + return { srcProp: r, src: i }; +}, onClickPreview: function(r) { +}, onCopyCode: function(r, i) { + return i; +}, changeString2Pinyin: function(r) { + return r; +} }, mwn = BTt({ externals: {}, openai: { apiKey: "", ignoreError: !1 }, engine: { global: { classicBr: !1, urlProcessor: iO.urlProcessor, htmlWhiteList: "" }, syntax: { link: { target: "", rel: "" }, autoLink: { target: "", rel: "", enableShortLink: !0, shortLinkLength: 20 }, list: { listNested: !1, indentSpace: 2 }, table: { enableChart: !1 }, inlineCode: { theme: "red" }, codeBlock: { theme: "dark", wrap: !0, lineNumber: !0, copyCode: !0, editCode: !0, changeLang: !0, customRenderer: {}, mermaid: { svg2img: !1 }, indentedCodeBlock: !0 }, emoji: { useUnicode: !0 }, fontEmphasis: { allowWhitespace: !1 }, strikethrough: { needWhitespace: !1 }, mathBlock: { engine: "MathJax", src: "", plugins: !0 }, inlineMath: { engine: "MathJax", src: "" }, toc: { allowMultiToc: !1 }, header: { anchorStyle: "default" } } }, editor: { id: "code", name: "code", autoSave2Textarea: !1, theme: "default", height: "100%", defaultModel: "edit&preview", convertWhenPaste: !0, codemirror: { autofocus: !0 }, writingStyle: "normal", keepDocumentScrollAfterInit: !1 }, toolbars: { theme: "dark", showToolbar: !0, toolbar: ["bold", "italic", "strikethrough", "|", "color", "header", "ruby", "|", "list", "panel", "detail", { insert: ["image", "audio", "video", "link", "hr", "br", "code", "formula", "toc", "table", "line-table", "bar-table", "pdf", "word"] }, "graph", "settings"], toolbarRight: [], sidebar: [], bubble: ["bold", "italic", "underline", "strikethrough", "sub", "sup", "quote", "|", "size", "color"], float: ["h1", "h2", "h3", "|", "checklist", "quote", "table", "code"], toc: !1, shortcutKey: {}, config: { formula: { showLatexLive: !0, templateConfig: !1 } } }, drawioIframeUrl: "", fileUpload: iO.fileUpload, fileTypeLimitMap: { video: "video/*", audio: "audio/*", image: "image/*", word: ".doc,.docx", pdf: ".pdf", file: "*" }, callback: { afterChange: iO.afterChange, afterInit: iO.afterInit, beforeImageMounted: iO.beforeImageMounted, onClickPreview: iO.onClickPreview, onCopyCode: iO.onCopyCode, changeString2Pinyin: iO.changeString2Pinyin }, previewer: { dom: !1, className: "cherry-markdown", enablePreviewerBubble: !0, lazyLoadImg: { loadingImgPath: "", maxNumPerTime: 2, noLoadImgNum: 5, autoLoadImgNum: 5, maxTryTimesPerSrc: 2, beforeLoadOneImgCallback: function(r) { + return !0; +}, failLoadOneImgCallback: function(r) { +}, afterLoadOneImgCallback: function(r) { +}, afterLoadAllImgCallback: function() { +} } }, theme: [{ className: "default", label: "默认" }, { className: "dark", label: "暗黑" }, { className: "light", label: "明亮" }, { className: "green", label: "清新" }, { className: "red", label: "热情" }, { className: "violet", label: "淡雅" }, { className: "blue", label: "清幽" }], isPreviewOnly: !1, autoScrollByCursor: !0, forceAppend: !0, locale: "zh_CN", autoScrollByHashAfterInit: !1 }), bwn = { zh_CN: { bold: "加粗", code: "代码", graph: "画图", h1: "一级标题", h2: "二级标题", h3: "三级标题", h4: "四级标题", h5: "五级标题", header: "标题", insert: "插入", italic: "斜体", list: "列表", quickTable: "表格", quote: "引用", size: "大小", color: "文字颜色&背景", strikethrough: "删除线", sub: "下标", sup: "上标", togglePreview: "预览", fullScreen: "全屏", image: "图片", audio: "音频", video: "视频", link: "超链接", hr: "分隔线", br: "换行", toc: "目录", pdf: "pdf", word: "word", table: "表格", "line-table": "折线表格", "bar-table": "柱状表格", formula: "公式", insertFormula: "公式", insertFlow: "流程图", insertSeq: "时序图", insertState: "状态图", insertClass: "类图", insertPie: "饼图", insertGantt: "甘特图", checklist: "清单", ol: "有序列表", ul: "无序列表", undo: "撤销", redo: "恢复", previewClose: "关闭预览", codeTheme: "代码主题", switchModel: "模式切换", switchPreview: "预览", switchEdit: "返回编辑", classicBr: "经典换行", normalBr: "常规换行", settings: "设置", mobilePreview: "移动端预览", copy: "复制内容", export: "导出", underline: "下划线", pinyin: "拼音", file: "文件", pastePlain: "粘贴为纯文本格式", pasteMarkdown: "粘贴为markdown格式", hide: "隐藏(ctrl+0)", exportToPdf: "导出PDF", exportScreenshot: "导出长图", exportMarkdownFile: "导出markdown", exportHTMLFile: "导出html", theme: "主题", panel: "面板", detail: "手风琴", "H1 Heading": "H1 一级标题", "H2 Heading": "H2 二级标题", "H3 Heading": "H3 三级标题", complement: "续写", summary: "总结", justify: "对齐方式", justifyLeft: "左对齐", justifyCenter: "居中", justifyRight: "右对齐", wordCount: "字数" }, en_US: { bold: "Bold", code: "Code", graph: "Graph", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", h5: "Heading 5", header: "Header", insert: "Insert", italic: "Italic", list: "List", quickTable: "Quick Table", quote: "Quote", size: "Size", color: "Text Color & Background", strikethrough: "Strikethrough", sub: "Sub", sup: "Sup", togglePreview: "Toggle Preview", fullScreen: "Full Screen", image: "Image", audio: "Audio", video: "Video", link: "Link", hr: "Horizontal Rule", br: "New Line", toc: "Table Of Content", pdf: "PDF", word: "Word", table: "Table", "line-table": "Line Table", "bar-table": "Bar Table", formula: "Formula", insertFormula: "Insert Formula", insertFlow: "Insert Flow", insertSeq: "Insert Seq", insertState: "Insert State", insertClass: "Insert Class", insertPie: "Insert Pie", insertGantt: "Insert Gantt", checklist: "Checklist", ol: "Ordered List", ul: "Unordered List", undo: "Undo", redo: "Redo", previewClose: "Preview Close", codeTheme: "Code Theme", switchModel: "Switch Model", switchPreview: "Switch Preview", switchEdit: "Switch Edit", classicBr: "Classic New Line", normalBr: "Normal New Line", settings: "Settings", mobilePreview: "Mobile Preview", copy: "Copy", export: "Export", underline: "Underline", pinyin: "Pinyin", pastePlain: "Paste as Plain Text", pasteMarkdown: "Paste as Markdown", hide: "Hide (ctrl+0)", exportToPdf: "Export to PDF", exportScreenshot: "Screenshot", exportMarkdownFile: "Export Markdown File", exportHTMLFile: "Export preview HTML File", "H1 Heading": "H1 Heading", "H2 Heading": "H1 Heading", "H3 Heading": "H1 Heading", complement: "Complement", summary: "Summary", justify: "justify", justifyLeft: "Left", justifyCenter: "Center", justifyRight: "Right", wordCount: "Word Count" } }; +function Z6t(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +function ekt(r, i, o) { + var l, f = {}; + return no(l = yh(r)).call(l, function(g) { + Lu(i).call(i, g) !== -1 && (Yl(o) === "object" ? typeof o[g] == "string" ? Yl(r[g]) === o[g] && (f[g] = r[g]) : r[g] instanceof o[g] && (f[g] = r[g]) : typeof o == "string" && Yl(r[g]) === o && (f[g] = r[g])); + }), f; +} +var vwn = { HOOKS_TYPE_LIST: QG }, tkt = []; +vk() || no(tkt).call(tkt, function(r) { +}); +var nre = function() { + function r() { + vi(this, r); + } + return yi(r, null, [{ key: "usePlugin", value: function(i) { + var o; + if (this === r) + throw new Error("`usePlugin` is not allowed to called through CherryStatic class."); + if (this.initialized) + throw new Error("The function `usePlugin` should be called before Cherry is instantiated."); + if (i.$cherry$mounted !== !0) { + for (var l = arguments.length, f = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++) + f[g - 1] = arguments[g]; + i.install.apply(i, At(o = [this.config.defaults]).call(o, f)), i.$cherry$mounted = !0; + } + } }]), r; +}(); +function nkt(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function ywn(r) { + var i = function() { + if (typeof Reflect > "u" || !yt || yt.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(yt(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = Rn(r); + if (i) { + var f = Rn(this).constructor; + o = yt(l, arguments, f); + } else + o = l.apply(this, arguments); + return Ea(this, o); + }; +} +Ui(nre, "createSyntaxHook", function(r, i, o) { + var l, f = i === QG.PAR ? r0 : Sg, g = ekt(o, ["beforeMakeHtml", "makeHtml", "afterMakeHtml", "rule", "test"], "function"), A = { needCache: o.needCache, defaultCache: o.defaultCache }; + return l = function(b) { + ja(k, b); + var v = Z6t(k); + function k() { + var _, T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return vi(this, k), (_ = i === QG.PAR ? v.call(this, { needCache: !!A.needCache, defaultCache: A.defaultCache }) : v.call(this)).config = T.config, Ea(_); + } + return yi(k, [{ key: "beforeMakeHtml", value: function() { + for (var _, T, L = arguments.length, F = new Array(L), U = 0; U < L; U++) + F[U] = arguments[U]; + return g.beforeMakeHtml ? g.beforeMakeHtml.apply(this, F) : (_ = wT(Rn(k.prototype), "beforeMakeHtml", this)).call.apply(_, At(T = [this]).call(T, F)); + } }, { key: "makeHtml", value: function() { + for (var _, T, L = arguments.length, F = new Array(L), U = 0; U < L; U++) + F[U] = arguments[U]; + return g.makeHtml ? g.makeHtml.apply(this, F) : (_ = wT(Rn(k.prototype), "makeHtml", this)).call.apply(_, At(T = [this]).call(T, F)); + } }, { key: "afterMakeHtml", value: function() { + for (var _, T, L = arguments.length, F = new Array(L), U = 0; U < L; U++) + F[U] = arguments[U]; + return g.afterMakeHtml ? g.afterMakeHtml.apply(this, F) : (_ = wT(Rn(k.prototype), "afterMakeHtml", this)).call.apply(_, At(T = [this]).call(T, F)); + } }, { key: "test", value: function() { + for (var _, T, L = arguments.length, F = new Array(L), U = 0; U < L; U++) + F[U] = arguments[U]; + return g.test ? g.test.apply(this, F) : (_ = wT(Rn(k.prototype), "test", this)).call.apply(_, At(T = [this]).call(T, F)); + } }, { key: "rule", value: function() { + for (var _, T, L = arguments.length, F = new Array(L), U = 0; U < L; U++) + F[U] = arguments[U]; + return g.rule ? g.rule.apply(this, F) : (_ = wT(Rn(k.prototype), "rule", this)).call.apply(_, At(T = [this]).call(T, F)); + } }]), k; + }(f), Ui(l, "HOOK_NAME", r), l; +}), Ui(nre, "createMenuHook", function(r, i) { + var o = ekt(i, ["subMenuConfig", "onClick", "shortcutKeys", "iconName"], { subMenuConfig: Array, onClick: "function", shortcutKeys: Array, iconName: "string" }); + return function(l) { + ja(g, xc); + var f = Z6t(g); + function g(A) { + var b; + return vi(this, g), b = f.call(this, A), o.iconName || (b.noIcon = !0), b.setName(r, o.iconName), b.subMenuConfig = o.subMenuConfig || [], b; + } + return yi(g, [{ key: "onClick", value: function() { + for (var A, b, v = arguments.length, k = new Array(v), _ = 0; _ < v; _++) + k[_] = arguments[_]; + return o.onClick ? o.onClick.apply(this, k) : (A = wT(Rn(g.prototype), "onClick", this)).call.apply(A, At(b = [this]).call(b, k)); + } }, { key: "shortcutKeys", get: function() { + return o.shortcutKeys ? o.shortcutKeys : []; + } }]), g; + }(); +}), Ui(nre, "constants", vwn), Ui(nre, "VERSION", "0.8.34"); +var Npe = function(r) { + ja(o, nre); + var i = ywn(o); + function o(l) { + var f, g; + vi(this, o), g = i.call(this), o.initialized = !0; + var A, b = BTt(o.config.defaults); + return g.defaultToolbar = b.toolbars.toolbar, KQ(l, Object), g.options = KPe({}, b, l, j0n), g.locale = bwn[g.options.locale], typeof g.options.engine.global.urlProcessor == "function" && (g.options.engine.global.urlProcessor = (A = g.options.engine.global.urlProcessor, function(v, k) { + if (mL.isInnerLink(v)) { + var _ = A(mL.get(v), k); + return mL.replace(v, _); + } + return A(v, k); + })), g.status = { toolbar: "show", previewer: "show", editor: "show" }, (g.options.isPreviewOnly || g.options.editor.defaultModel === "previewOnly") && (g.options.toolbars.showToolbar = !1, g.options.editor.defaultModel = "previewOnly", g.status.editor = "hide", g.status.toolbar = "hide"), g.instanceId = At(f = "cherry-".concat((/* @__PURE__ */ new Date()).getTime())).call(f, Math.random()), g.options.instanceId = g.instanceId, g.engine = new Ppn(g.options, Xs(g)), g.init(), g; + } + return yi(o, [{ key: "init", value: function() { + var l, f = this, g = this.options.id ? document.getElementById(this.options.id) : this.options.el; + if (!g) { + if (!this.options.forceAppend) + return !1; + (g = document.createElement("div")).id = this.options.id || "cherry-markdown", document.body.appendChild(g); + } + g.style.height || (g.style.height = this.options.editor.height), this.cherryDom = g; + var A = this.createWrapper(), b = this.createEditor(), v = this.createPreviewer(); + this.options.toolbars.showToolbar !== !1 && this.options.toolbars.toolbar !== !1 || (A.classList.add("cherry--no-toolbar"), this.options.toolbars.toolbar = this.defaultToolbar), KQ(this.options.toolbars.toolbar, Array), this.createToolbar(), this.createToolbarRight(); + var k, _ = document.createDocumentFragment(); + _.appendChild(this.toolbar.options.dom), _.appendChild(b.options.editorDom), this.createSidebar(_), this.options.previewer.dom || _.appendChild(v.options.previewerDom), _.appendChild(v.options.virtualDragLineDom), _.appendChild(v.options.editorMaskDom), _.appendChild(v.options.previewerMaskDom), A.appendChild(_), g.appendChild(A), b.init(v), this.createBubble(), this.createFloatMenu(), v.init(b), v.registerAfterUpdate(Bo(l = this.engine.mounted).call(l, this.engine)), this.initText(b.editor), kc.on(this.instanceId, kc.Events.toolbarHide, function() { + f.status.toolbar = "hide"; + }), kc.on(this.instanceId, kc.Events.toolbarShow, function() { + f.status.toolbar = "show"; + }), kc.on(this.instanceId, kc.Events.previewerClose, function() { + f.status.previewer = "hide"; + }), kc.on(this.instanceId, kc.Events.previewerOpen, function() { + f.status.previewer = "show"; + }), kc.on(this.instanceId, kc.Events.editorClose, function() { + f.status.editor = "hide", f.previewer.highlightLine(0); + }), kc.on(this.instanceId, kc.Events.editorOpen, function() { + f.status.editor = "show"; + }), this.switchModel(this.options.editor.defaultModel), this.options.autoScrollByHashAfterInit && lm(Bo(k = this.scrollByHash).call(k, this)), this.editText(null, this.editor.editor), this.options.toolbars.toc !== !1 && this.createToc(); + } }, { key: "createToc", value: function() { + var l, f; + this.toc = new Pyn({ $cherry: this, updateLocationHash: (l = this.options.toolbars.toc.updateLocationHash) === null || l === void 0 || l, defaultModel: (f = this.options.toolbars.toc.defaultModel) !== null && f !== void 0 ? f : "pure" }); + } }, { key: "scrollByHash", value: function() { + if (location.hash) + try { + var l = location.hash, f = document.getElementById(l.replace("#", "")); + f && this.previewer.getDomContainer().contains(f) && (location.hash = "", location.hash = l); + } catch { + } + } }, { key: "switchModel", value: function() { + switch (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "edit&preview") { + case "edit&preview": + this.previewer && (this.previewer.editOnly(!0), this.previewer.recoverPreviewer()), this.toolbar && this.toolbar.showToolbar(), this.wrapperDom.classList.remove("cherry--no-toolbar"); + break; + case "editOnly": + this.previewer.isPreviewerHidden() || this.previewer.editOnly(!0), this.toolbar && this.toolbar.showToolbar(), this.wrapperDom.classList.remove("cherry--no-toolbar"); + break; + case "previewOnly": + this.previewer.previewOnly(), this.toolbar && this.toolbar.previewOnly(), this.wrapperDom.classList.add("cherry--no-toolbar"); + } + } }, { key: "getInstanceId", value: function() { + return this.instanceId; + } }, { key: "getStatus", value: function() { + return this.status; + } }, { key: "getValue", value: function() { + return this.editor.editor.getValue(); + } }, { key: "getMarkdown", value: function() { + return this.getValue(); + } }, { key: "getCodeMirror", value: function() { + return this.editor.editor; + } }, { key: "getHtml", value: function() { + var l = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]; + return this.previewer.getValue(l); + } }, { key: "getPreviewer", value: function() { + return this.previewer; + } }, { key: "getToc", value: function() { + var l = this.getHtml(), f = []; + return l.replace(/(.+?)<\/h[0-6]>/g, function(g, A, b, v) { + return f.push({ level: +A, id: b, text: v.replace(//, "") }), g; + }), f; + } }, { key: "setValue", value: function(l) { + var f = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; + if (this.editor.storeDocumentScroll(), f === !1) + return this.editor.editor.setValue(l); + var g = this.editor.editor, A = this.getValue(), b = function(k, _, T) { + for (var L = zge(_, T), F = k, U = k, q = 0; q < L.length; q++) { + var Z = L[q]; + if (U <= 0) + return F; + var R = Z[0], J = Z[1].length; + switch (R) { + case zge.EQUAL: + if (U <= J) + return F; + U -= J; + break; + case zge.DELETE: + if (U <= J) + return F - J + U; + U -= J, F -= J; + break; + case zge.INSERT: + F += J; + } + } + return F; + }(g.getDoc().indexFromPos(g.getCursor()), A, l); + g.setValue(l); + var v = g.getDoc().posFromIndex(b); + g.setCursor(v); + } }, { key: "insert", value: function(l) { + var f = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], A = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3]; + g && this.editor.editor.setSelection({ line: g[0], ch: g[1] }, { line: g[0], ch: g[1] }), this.editor.editor.replaceSelection(l, f ? "around" : "end"), A && this.editor.editor.focus(); + } }, { key: "insertValue", value: function(l) { + var f = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], A = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3]; + return this.insert(l, f, g, A); + } }, { key: "refreshPreviewer", value: function() { + try { + var l = this.getValue(), f = this.engine.makeHtml(l); + this.previewer.refresh(f); + } catch (g) { + throw new Bpe(g); + } + } }, { key: "setMarkdown", value: function(l) { + var f = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; + return this.setValue(l, f); + } }, { key: "createWrapper", value: function() { + var l = this.options.toolbars.theme === "dark" ? "dark" : "", f = this.options.engine.syntax.inlineCode.theme, g = this.options.engine.syntax.codeBlock.theme; + g === "dark" ? g = "tomorrow-night" : g === "light" && (g = "solarized-light"); + var A = ih("div", ["cherry", "clearfix", BDe(!0)].join(" "), { "data-toolbarTheme": l, "data-inlineCodeTheme": f, "data-codeBlockTheme": g }); + return this.wrapperDom = A, A; + } }, { key: "createToolbar", value: function() { + var l = ih("div", "cherry-toolbar"); + return this.toolbarContainer = l, this.toolbar = new Pie({ dom: l, $cherry: this, buttonConfig: this.options.toolbars.toolbar, customMenu: this.options.toolbars.customMenu, shortcutKey: this.options.toolbars.shortcutKey }), this.toolbar; + } }, { key: "createToolbarRight", value: function() { + return this.toolbarRight = new Nyn({ dom: this.toolbarContainer, $cherry: this, buttonConfig: this.options.toolbars.toolbarRight, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.toolbarRight), this.toolbarRight; + } }, { key: "createSidebar", value: function(l) { + if (this.options.toolbars.sidebar) { + KQ(this.options.toolbars.sidebar, Array); + var f = this.options.toolbars.theme === "dark" ? "dark" : "", g = ih("div", "cherry-sidebar ".concat(f)); + this.sidebar = new Qyn({ dom: g, $cherry: this, buttonConfig: this.options.toolbars.sidebar, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.sidebar), l.appendChild(this.sidebar.options.dom); + } + } }, { key: "createFloatMenu", value: function() { + if (this.options.toolbars.float) { + var l = ih("div", "cherry-floatmenu"); + KQ(this.options.toolbars.float, Array), this.floatMenu = new Oyn({ dom: l, $cherry: this, buttonConfig: this.options.toolbars.float, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.floatMenu); + } + } }, { key: "createBubble", value: function() { + if (this.options.toolbars.bubble) { + var l = ih("div", "cherry-bubble"); + KQ(this.options.toolbars.bubble, Array), this.bubble = new gTt({ dom: l, $cherry: this, buttonConfig: this.options.toolbars.bubble, customMenu: this.options.toolbars.customMenu, engine: this.engine }), this.toolbar.collectMenuInfo(this.bubble); + } + } }, { key: "createEditor", value: function() { + var l, f, g, A, b = ih("textarea", "", { id: (l = this.options.editor.id) !== null && l !== void 0 ? l : "code", name: (f = this.options.editor.name) !== null && f !== void 0 ? f : "code" }); + b.textContent = this.options.value; + var v = ih("div", "cherry-editor"); + return v.appendChild(b), this.editor = new M0n(function(k) { + for (var _ = 1; _ < arguments.length; _++) { + var T, L, F = arguments[_] != null ? arguments[_] : {}; + _ % 2 ? no(T = nkt(Object(F), !0)).call(T, function(U) { + Ui(k, U, F[U]); + }) : i0 ? uC(k, i0(F)) : no(L = nkt(Object(F))).call(L, function(U) { + C3(k, U, o0(F, U)); + }); + } + return k; + }({ $cherry: this, editorDom: v, wrapperDom: this.wrapperDom, value: this.options.value, onKeydown: Bo(g = this.fireShortcutKey).call(g, this), onChange: Bo(A = this.editText).call(A, this), toolbars: this.options.toolbars, fileUpload: this.options.fileUpload, autoScrollByCursor: this.options.autoScrollByCursor }, this.options.editor)), this.editor; + } }, { key: "createPreviewer", value: function() { + var l, f = (this.options.engine.syntax.header && this.options.engine.syntax.header.anchorStyle || "default") === "autonumber" ? " head-num" : "", g = this.options.previewer, A = g.className, b = g.dom, v = g.enablePreviewerBubble, k = ["cherry-previewer cherry-markdown", A || "", f, BDe(!0)].join(" "); + b ? (l = b).className += " ".concat(k) : l = ih("div", k); + var _ = ih("div", "cherry-drag"), T = ih("div", "cherry-editor-mask"), L = ih("div", "cherry-previewer-mask"); + return this.previewer = new x2n({ $cherry: this, virtualDragLineDom: _, editorMaskDom: T, previewerMaskDom: L, previewerDom: l, value: this.options.value, isPreviewOnly: this.options.isPreviewOnly, enablePreviewerBubble: v, lazyLoadImg: this.options.previewer.lazyLoadImg }), this.previewer; + } }, { key: "initText", value: function(l) { + try { + var f = l.getValue(), g = this.engine.makeHtml(f); + this.previewer.update(g), this.options.callback.afterInit && this.options.callback.afterInit(f, g); + } catch (A) { + throw new Bpe(A); + } + } }, { key: "editText", value: function(l, f) { + var g = this; + try { + this.timer && (clearTimeout(this.timer), this.timer = null), this.timer = lm(function() { + var A = f.getValue(), b = g.engine.makeHtml(A); + g.previewer.update(b), g.options.callback.afterChange && g.options.callback.afterChange(A, b), f.scrollIntoView(null), g.editor.restoreDocumentScroll(); + }, 50); + } catch (A) { + throw new Bpe(A); + } + } }, { key: "onChange", value: function(l) { + this.editor.editor.on("change", function(f) { + l({ markdown: f.getValue() }); + }); + } }, { key: "fireShortcutKey", value: function(l) { + var f = this.editor.editor.getCursor(), g = this.editor.editor.getLine(f.line); + if (!l.shiftKey && l.key === "Tab" && T_t.test(g) && (f.ch === 0 || f.ch === g.length || f.ch === g.length + 1)) { + l.preventDefault(), this.editor.editor.setSelection({ line: f.line, ch: 0 }, { line: f.line, ch: g.length }), this.editor.editor.replaceSelection(" ".concat(g), "around"); + var A = this.editor.editor.getCursor(); + this.editor.editor.setSelection(A, A); + } + this.toolbar.matchShortcutKey(l) && (l.preventDefault(), this.toolbar.fireShortcutKey(l)); + } }, { key: "export", value: function() { + var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pdf", f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + this.previewer.export(l, f); + } }, { key: "setTheme", value: function() { + S_t(this, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "default"); + } }, { key: "setWritingStyle", value: function(l) { + this.editor.setWritingStyle(l); + } }]), o; +}(); +Ui(Npe, "initialized", !1), Ui(Npe, "config", { defaults: mwn }), window && (window.Cherry = Npe); +var AO = Npe; +function rkt(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function ikt(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = rkt(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = rkt(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +var akt = { theme: "default", altFontFamily: "sans-serif", fontFamily: "sans-serif", themeCSS: ".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }", flowchart: { useMaxWidth: !1 }, sequence: { useMaxWidth: !1 }, startOnLoad: !1, logLevel: 5 }, STt = function() { + function r() { + var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + vi(this, r), Ui(this, "mermaidAPIRefs", null), Ui(this, "options", akt), Ui(this, "dom", null), Ui(this, "mermaidCanvas", null); + var o = i.mermaid, l = i.mermaidAPI; + if (!(l || window.mermaidAPI || o && o.mermaidAPI || window.mermaid && window.mermaid.mermaidAPI)) + throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found."); + this.options = ikt(ikt({}, akt), i || {}), this.mermaidAPIRefs = l || window.mermaidAPI || o.mermaidAPI || window.mermaid.mermaidAPI, delete this.options.mermaid, delete this.options.mermaidAPI, this.mermaidAPIRefs.initialize(this.options); + } + return yi(r, [{ key: "mountMermaidCanvas", value: function(i) { + this.mermaidCanvas && document.body.contains(this.mermaidCanvas) || (this.mermaidCanvas = document.createElement("div"), this.mermaidCanvas.style = "width:1024px;opacity:0;position:fixed;top:100%;", (i.$cherry.wrapperDom || document.body).appendChild(this.mermaidCanvas)); + } }, { key: "convertMermaidSvgToImg", value: function(i, o) { + var l, f = new DOMParser(), g = function(L) { + return L.replace("'); + } + } else + l = g(i); + } catch { + l = g(i); + } + return l; + } }, { key: "render", value: function(i, o, l) { + var f, g, A, b = this, v = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = o; + k || (k = Math.round(1e8 * Math.random())), this.mountMermaidCanvas(l); + var _ = At(f = "mermaid-".concat(k, "-")).call(f, (/* @__PURE__ */ new Date()).getTime()); + this.svg2img = (g = v == null ? void 0 : v.svg2img) !== null && g !== void 0 && g; + try { + this.mermaidAPIRefs.render(_, i, function(T) { + var L = T.replace(/\s*markerUnits="0"/g, "").replace(/\s*x="NaN"/g, "").replace(/
    /g, "
    "); + A = b.convertMermaidSvgToImg(L, _); + }, this.mermaidCanvas); + } catch (T) { + return T == null ? void 0 : T.str; + } + return A; + } }], [{ key: "install", value: function(i) { + for (var o = arguments.length, l = new Array(o > 1 ? o - 1 : 0), f = 1; f < o; f++) + l[f - 1] = arguments[f]; + KPe(i, { engine: { syntax: { codeBlock: { customRenderer: { mermaid: Pme(r, l) } } } } }); + } }]), r; +}(); +Ui(STt, "TYPE", "figure"); +var wwn = function() { + var r, i, o, l, f, g, A, b, v, k, _, T, L, F, U, q, Z, R, J, he, Y, ue, le, be, ke, de, Te, xe, ie, Be, te, Me, ve, ge, Je, ot, bt, gt, je, Qe, kt, Wt, jt, Zn, Ft, wn, un, ln, an, Ot, $n, pt, Ci, ut, br, zt = 32768, Wr = 0, zr = 1, Si = 2, vr = 8192, Qr = 2 * zt, or = 3, Gr = 258, An = 8192, _i = An, Cr = 8192, la = Cr - 1, Ra = zt - 1, Jo = 0, Cc = 4096, ji = Gr + or + 1, Ya = zt - ji, Hr = 1, Yr = 15, ni = 7, Vr = 29, Na = 256, er = 256, as = Na + 1 + Vr, xr = 30, So = 19, cs = 16, xa = 17, ro = 18, Lo = 2 * as + 1, Xo = Ky((13 + or - 1) / or), Zo = null; + function Fs() { + this.fc = 0, this.dl = 0; + } + function Hs() { + this.dyn_tree = null, this.static_tree = null, this.extra_bits = null, this.extra_base = 0, this.elems = 0, this.max_length = 0, this.max_code = 0; + } + function Qa(tr, ei, fi, ri) { + this.good_length = tr, this.max_lazy = ei, this.nice_length = fi, this.max_chain = ri; + } + function Ff() { + this.next = null, this.len = 0, this.ptr = new Array(vr), this.off = 0; + } + var Oc = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], Iu = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], da = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], _c = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], qf = [new Qa(0, 0, 0, 0), new Qa(4, 4, 8, 4), new Qa(4, 5, 16, 8), new Qa(4, 6, 32, 32), new Qa(4, 4, 16, 16), new Qa(8, 16, 32, 32), new Qa(8, 16, 128, 128), new Qa(8, 32, 128, 256), new Qa(32, 128, 258, 1024), new Qa(32, 258, 258, 4096)]; + function wu(tr) { + tr.next = r, r = tr; + } + function jo(tr) { + return _[zt + tr]; + } + function yf(tr, ei) { + return _[zt + tr] = ei; + } + function bl(tr) { + Zo[g + f++] = tr, g + f == vr && function() { + if (f != 0) { + var ei, fi; + for (r != null ? (ri = r, r = r.next) : ri = new Ff(), ri.next = null, ri.len = ri.off = 0, ei = ri, i == null ? i = o = ei : o = o.next = ei, ei.len = f - g, fi = 0; fi < ei.len; fi++) + ei.ptr[fi] = Zo[g + fi]; + f = g = 0; + } + var ri; + }(); + } + function cu(tr) { + tr &= 65535, g + f < vr - 2 ? (Zo[g + f++] = 255 & tr, Zo[g + f++] = tr >>> 8) : (bl(255 & tr), bl(tr >>> 8)); + } + function qc() { + U = (U << Xo ^ 255 & b[Y + or - 1]) & la, q = jo(U), _[Y & Ra] = q, yf(U, Y); + } + function Jl(tr, ei) { + Nc(ei[tr].fc, ei[tr].dl); + } + function js(tr) { + return 255 & (tr < 256 ? jt[tr] : jt[256 + (tr >> 7)]); + } + function Dc(tr, ei, fi) { + return tr[ei].fc < tr[fi].fc || tr[ei].fc == tr[fi].fc && kt[ei] <= kt[fi]; + } + function gs(tr, ei, fi) { + var ri; + for (ri = 0; ri < fi && br < ut.length; ri++) + tr[ei + ri] = 255 & ut.charCodeAt(br++); + return ri; + } + function rc(tr) { + var ei, fi, ri = ke, Aa = Y, ya = he, fo = Y > Ya ? Y - Ya : Jo, bs = Y + Gr, xo = b[Aa + ya - 1], sl = b[Aa + ya]; + he >= xe && (ri >>= 2); + do + if (b[(ei = tr) + ya] == sl && b[ei + ya - 1] == xo && b[ei] == b[Aa] && b[++ei] == b[Aa + 1]) { + Aa += 2, ei++; + do + ; + while (b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && b[++Aa] == b[++ei] && Aa < bs); + if (fi = Gr - (bs - Aa), Aa = bs - Gr, fi > ya) { + if (ue = tr, ya = fi, fi >= Gr) + break; + xo = b[Aa + ya - 1], sl = b[Aa + ya]; + } + } + while ((tr = _[tr & Ra]) > fo && --ri != 0); + return ya; + } + function Ki() { + var tr, ei, fi = Qr - be - Y; + if (fi == -1) + fi--; + else if (Y >= zt + Ya) { + for (tr = 0; tr < zt; tr++) + b[tr] = b[tr + zt]; + for (ue -= zt, Y -= zt, F -= zt, tr = 0; tr < Cr; tr++) + yf(tr, (ei = jo(tr)) >= zt ? ei - zt : Jo); + for (tr = 0; tr < zt; tr++) + ei = _[tr], _[tr] = ei >= zt ? ei - zt : Jo; + fi += zt; + } + le || ((tr = gs(b, Y + be, fi)) <= 0 ? le = !0 : be += tr); + } + function Ta() { + le || (T = 0, L = 0, function() { + var tr, ei, fi, ri, Aa; + if (Me[0].dl == 0) { + for (ge.dyn_tree = ie, ge.static_tree = te, ge.extra_bits = Oc, ge.extra_base = Na + 1, ge.elems = as, ge.max_length = Yr, ge.max_code = 0, Je.dyn_tree = Be, Je.static_tree = Me, Je.extra_bits = Iu, Je.extra_base = 0, Je.elems = xr, Je.max_length = Yr, Je.max_code = 0, ot.dyn_tree = ve, ot.static_tree = null, ot.extra_bits = da, ot.extra_base = 0, ot.elems = So, ot.max_length = ni, ot.max_code = 0, fi = 0, ri = 0; ri < Vr - 1; ri++) + for (Zn[ri] = fi, tr = 0; tr < 1 << Oc[ri]; tr++) + Wt[fi++] = ri; + for (Wt[fi - 1] = ri, Aa = 0, ri = 0; ri < 16; ri++) + for (Ft[ri] = Aa, tr = 0; tr < 1 << Iu[ri]; tr++) + jt[Aa++] = ri; + for (Aa >>= 7; ri < xr; ri++) + for (Ft[ri] = Aa << 7, tr = 0; tr < 1 << Iu[ri] - 7; tr++) + jt[256 + Aa++] = ri; + for (ei = 0; ei <= Yr; ei++) + bt[ei] = 0; + for (tr = 0; tr <= 143; ) + te[tr++].dl = 8, bt[8]++; + for (; tr <= 255; ) + te[tr++].dl = 9, bt[9]++; + for (; tr <= 279; ) + te[tr++].dl = 7, bt[7]++; + for (; tr <= 287; ) + te[tr++].dl = 8, bt[8]++; + for (ra(te, as + 1), tr = 0; tr < xr; tr++) + Me[tr].dl = 5, Me[tr].fc = Ro(tr, 5); + mc(); + } + }(), function() { + var tr; + for (tr = 0; tr < Cr; tr++) + _[zt + tr] = 0; + if (de = qf[Te].max_lazy, xe = qf[Te].good_length, ke = qf[Te].max_chain, Y = 0, F = 0, (be = gs(b, 0, 2 * zt)) <= 0) + return le = !0, void (be = 0); + for (le = !1; be < ji && !le; ) + Ki(); + for (U = 0, tr = 0; tr < or - 1; tr++) + U = (U << Xo ^ 255 & b[tr]) & la; + }(), i = null, f = 0, g = 0, Te <= 3 ? (he = or - 1, J = 0) : (J = or - 1, R = 0), A = !1); + } + function Bl(tr, ei, fi) { + var ri; + return l || (Ta(), l = !0, be != 0) ? (ri = sf(tr, ei, fi)) == fi ? fi : A ? ri : (Te <= 3 ? function() { + for (; be != 0 && i == null; ) { + var Aa; + if (qc(), q != Jo && Y - q <= Ya && (J = rc(q)) > be && (J = be), J >= or) + if (Aa = hn(Y - ue, J - or), be -= J, J <= de) { + J--; + do + Y++, qc(); + while (--J != 0); + Y++; + } else + Y += J, J = 0, U = ((U = 255 & b[Y]) << Xo ^ 255 & b[Y + 1]) & la; + else + Aa = hn(0, 255 & b[Y]), be--, Y++; + for (Aa && (Wo(0), F = Y); be < ji && !le; ) + Ki(); + } + }() : function() { + for (; be != 0 && i == null; ) { + if (qc(), he = J, Z = ue, J = or - 1, q != Jo && he < de && Y - q <= Ya && ((J = rc(q)) > be && (J = be), J == or && Y - ue > Cc && J--), he >= or && J <= he) { + var Aa; + Aa = hn(Y - 1 - Z, he - or), be -= he - 1, he -= 2; + do + Y++, qc(); + while (--he != 0); + R = 0, J = or - 1, Y++, Aa && (Wo(0), F = Y); + } else + R != 0 ? (hn(0, 255 & b[Y - 1]) && (Wo(0), F = Y), Y++, be--) : (R = 1, Y++, be--); + for (; be < ji && !le; ) + Ki(); + } + }(), be == 0 && (R != 0 && hn(0, 255 & b[Y - 1]), Wo(1), A = !0), ri + sf(tr, ri + ei, fi - ri)) : (A = !0, 0); + } + function sf(tr, ei, fi) { + var ri, Aa, ya; + for (ri = 0; i != null && ri < fi; ) { + for ((Aa = fi - ri) > i.len && (Aa = i.len), ya = 0; ya < Aa; ya++) + tr[ei + ri + ya] = i.ptr[i.off + ya]; + var fo; + i.off += Aa, i.len -= Aa, ri += Aa, i.len == 0 && (fo = i, i = i.next, wu(fo)); + } + if (ri == fi) + return ri; + if (g < f) { + for ((Aa = fi - ri) > f - g && (Aa = f - g), ya = 0; ya < Aa; ya++) + tr[ei + ri + ya] = Zo[g + ya]; + ri += Aa, f == (g += Aa) && (f = g = 0); + } + return ri; + } + function mc() { + var tr; + for (tr = 0; tr < as; tr++) + ie[tr].fc = 0; + for (tr = 0; tr < xr; tr++) + Be[tr].fc = 0; + for (tr = 0; tr < So; tr++) + ve[tr].fc = 0; + ie[er].fc = 1, pt = Ci = 0, un = ln = an = 0, Ot = 0, $n = 1; + } + function wh(tr, ei) { + for (var fi = gt[ei], ri = ei << 1; ri <= je && (ri < je && Dc(tr, gt[ri + 1], gt[ri]) && ri++, !Dc(tr, fi, gt[ri])); ) + gt[ei] = gt[ri], ei = ri, ri <<= 1; + gt[ei] = fi; + } + function ra(tr, ei) { + var fi, ri, Aa = new Array(Yr + 1), ya = 0; + for (fi = 1; fi <= Yr; fi++) + ya = ya + bt[fi - 1] << 1, Aa[fi] = ya; + for (ri = 0; ri <= ei; ri++) { + var fo = tr[ri].dl; + fo != 0 && (tr[ri].fc = Ro(Aa[fo]++, fo)); + } + } + function Ls(tr) { + var ei, fi, ri = tr.dyn_tree, Aa = tr.static_tree, ya = tr.elems, fo = -1, bs = ya; + for (je = 0, Qe = Lo, ei = 0; ei < ya; ei++) + ri[ei].fc != 0 ? (gt[++je] = fo = ei, kt[ei] = 0) : ri[ei].dl = 0; + for (; je < 2; ) { + var xo = gt[++je] = fo < 2 ? ++fo : 0; + ri[xo].fc = 1, kt[xo] = 0, pt--, Aa != null && (Ci -= Aa[xo].dl); + } + for (tr.max_code = fo, ei = je >> 1; ei >= 1; ei--) + wh(ri, ei); + do + ei = gt[Hr], gt[Hr] = gt[je--], wh(ri, Hr), fi = gt[Hr], gt[--Qe] = ei, gt[--Qe] = fi, ri[bs].fc = ri[ei].fc + ri[fi].fc, kt[ei] > kt[fi] + 1 ? kt[bs] = kt[ei] : kt[bs] = kt[fi] + 1, ri[ei].dl = ri[fi].dl = bs, gt[Hr] = bs++, wh(ri, Hr); + while (je >= 2); + gt[--Qe] = gt[Hr], function(sl) { + var Mu, Zl, V1, il, kf, eu, cl = sl.dyn_tree, Ps = sl.extra_bits, hb = sl.extra_base, Of = sl.max_code, Sl = sl.max_length, U0 = sl.static_tree, Yf = 0; + for (il = 0; il <= Yr; il++) + bt[il] = 0; + for (cl[gt[Qe]].dl = 0, Mu = Qe + 1; Mu < Lo; Mu++) + (il = cl[cl[Zl = gt[Mu]].dl].dl + 1) > Sl && (il = Sl, Yf++), cl[Zl].dl = il, Zl > Of || (bt[il]++, kf = 0, Zl >= hb && (kf = Ps[Zl - hb]), eu = cl[Zl].fc, pt += eu * (il + kf), U0 != null && (Ci += eu * (U0[Zl].dl + kf))); + if (Yf != 0) { + do { + for (il = Sl - 1; bt[il] == 0; ) + il--; + bt[il]--, bt[il + 1] += 2, bt[Sl]--, Yf -= 2; + } while (Yf > 0); + for (il = Sl; il != 0; il--) + for (Zl = bt[il]; Zl != 0; ) + (V1 = gt[--Mu]) > Of || (cl[V1].dl != il && (pt += (il - cl[V1].dl) * cl[V1].fc, cl[V1].fc = il), Zl--); + } + }(tr), ra(ri, fo); + } + function pr(tr, ei) { + var fi, ri, Aa = -1, ya = tr[0].dl, fo = 0, bs = 7, xo = 4; + for (ya == 0 && (bs = 138, xo = 3), tr[ei + 1].dl = 65535, fi = 0; fi <= ei; fi++) + ri = ya, ya = tr[fi + 1].dl, ++fo < bs && ri == ya || (fo < xo ? ve[ri].fc += fo : ri != 0 ? (ri != Aa && ve[ri].fc++, ve[cs].fc++) : fo <= 10 ? ve[xa].fc++ : ve[ro].fc++, fo = 0, Aa = ri, ya == 0 ? (bs = 138, xo = 3) : ri == ya ? (bs = 6, xo = 3) : (bs = 7, xo = 4)); + } + function Pr(tr, ei) { + var fi, ri, Aa = -1, ya = tr[0].dl, fo = 0, bs = 7, xo = 4; + for (ya == 0 && (bs = 138, xo = 3), fi = 0; fi <= ei; fi++) + if (ri = ya, ya = tr[fi + 1].dl, !(++fo < bs && ri == ya)) { + if (fo < xo) + do + Jl(ri, ve); + while (--fo != 0); + else + ri != 0 ? (ri != Aa && (Jl(ri, ve), fo--), Jl(cs, ve), Nc(fo - 3, 2)) : fo <= 10 ? (Jl(xa, ve), Nc(fo - 3, 3)) : (Jl(ro, ve), Nc(fo - 11, 7)); + fo = 0, Aa = ri, ya == 0 ? (bs = 138, xo = 3) : ri == ya ? (bs = 6, xo = 3) : (bs = 7, xo = 4); + } + } + function Wo(tr) { + var ei, fi, ri, Aa, ya; + if (Aa = Y - F, wn[an] = Ot, Ls(ge), Ls(Je), ri = function() { + var fo; + for (pr(ie, ge.max_code), pr(Be, Je.max_code), Ls(ot), fo = So - 1; fo >= 3 && ve[_c[fo]].dl == 0; fo--) + ; + return pt += 3 * (fo + 1) + 5 + 5 + 4, fo; + }(), (fi = Ci + 3 + 7 >> 3) <= (ei = pt + 3 + 7 >> 3) && (ei = fi), Aa + 4 <= ei && F >= 0) + for (Nc((Wr << 1) + tr, 3), T1(), cu(Aa), cu(~Aa), ya = 0; ya < Aa; ya++) + bl(b[F + ya]); + else + fi == ei ? (Nc((zr << 1) + tr, 3), wf(te, Me)) : (Nc((Si << 1) + tr, 3), function(fo, bs, xo) { + var sl; + for (Nc(fo - 257, 5), Nc(bs - 1, 5), Nc(xo - 4, 4), sl = 0; sl < xo; sl++) + Nc(ve[_c[sl]].dl, 3); + Pr(ie, fo - 1), Pr(Be, bs - 1); + }(ge.max_code + 1, Je.max_code + 1, ri + 1), wf(ie, Be)); + mc(), tr != 0 && T1(); + } + function hn(tr, ei) { + if (k[un++] = ei, tr == 0 ? ie[ei].fc++ : (tr--, ie[Wt[ei] + Na + 1].fc++, Be[js(tr)].fc++, v[ln++] = tr, Ot |= $n), $n <<= 1, !(7 & un) && (wn[an++] = Ot, Ot = 0, $n = 1), Te > 2 && (4095 & un) == 0) { + var fi, ri = 8 * un, Aa = Y - F; + for (fi = 0; fi < xr; fi++) + ri += Be[fi].fc * (5 + Iu[fi]); + if (ri >>= 3, ln < Ky(un / 2) && ri < Ky(Aa / 2)) + return !0; + } + return un == An - 1 || ln == _i; + } + function wf(tr, ei) { + var fi, ri, Aa, ya, fo = 0, bs = 0, xo = 0, sl = 0; + if (un != 0) + do + !(7 & fo) && (sl = wn[xo++]), ri = 255 & k[fo++], 1 & sl ? (Jl((Aa = Wt[ri]) + Na + 1, tr), (ya = Oc[Aa]) != 0 && Nc(ri -= Zn[Aa], ya), Jl(Aa = js(fi = v[bs++]), ei), (ya = Iu[Aa]) != 0 && Nc(fi -= Ft[Aa], ya)) : Jl(ri, tr), sl >>= 1; + while (fo < un); + Jl(er, tr); + } + var Sn = 16; + function Nc(tr, ei) { + L > Sn - ei ? (cu(T |= tr << L), T = tr >> Sn - L, L += ei - Sn) : (T |= tr << L, L += ei); + } + function Ro(tr, ei) { + var fi = 0; + do + fi |= 1 & tr, tr >>= 1, fi <<= 1; + while (--ei > 0); + return fi >> 1; + } + function T1() { + L > 8 ? cu(T) : L > 0 && bl(T), T = 0, L = 0; + } + return function(tr, ei) { + var fi, ri; + ut = tr, br = 0, ei === void 0 && (ei = 6), function(bs) { + var xo; + if (bs ? bs < 1 ? bs = 1 : bs > 9 && (bs = 9) : bs = 6, Te = bs, l = !1, le = !1, Zo == null) { + for (r = i = o = null, Zo = new Array(vr), b = new Array(Qr), v = new Array(_i), k = new Array(32832), _ = new Array(65536), ie = new Array(Lo), xo = 0; xo < Lo; xo++) + ie[xo] = new Fs(); + for (Be = new Array(2 * xr + 1), xo = 0; xo < 2 * xr + 1; xo++) + Be[xo] = new Fs(); + for (te = new Array(as + 2), xo = 0; xo < as + 2; xo++) + te[xo] = new Fs(); + for (Me = new Array(xr), xo = 0; xo < xr; xo++) + Me[xo] = new Fs(); + for (ve = new Array(2 * So + 1), xo = 0; xo < 2 * So + 1; xo++) + ve[xo] = new Fs(); + ge = new Hs(), Je = new Hs(), ot = new Hs(), bt = new Array(Yr + 1), gt = new Array(2 * as + 1), kt = new Array(2 * as + 1), Wt = new Array(Gr - or + 1), jt = new Array(512), Zn = new Array(Vr), Ft = new Array(xr), wn = new Array(Ky(An / 8)); + } + }(ei); + for (var Aa = new Array(1024), ya = []; (fi = Bl(Aa, 0, Aa.length)) > 0; ) { + var fo = new Array(fi); + for (ri = 0; ri < fi; ri++) + fo[ri] = String.fromCharCode(Aa[ri]); + ya[ya.length] = fo.join(""); + } + return ut = null, ya.join(""); + }; +}(), kwn = wwn; +function okt(r, i) { + var o = yh(r); + if (rA) { + var l = rA(r); + i && (l = dd(l).call(l, function(f) { + return o0(r, f).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function skt(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, f = arguments[i] != null ? arguments[i] : {}; + i % 2 ? no(o = okt(Object(f), !0)).call(o, function(g) { + Ui(r, g, f[g]); + }) : i0 ? uC(r, i0(f)) : no(l = okt(Object(f))).call(l, function(g) { + C3(r, g, o0(f, g)); + }); + } + return r; +} +function RFe(r, i, o) { + var l = (3 & r) << 4 | i >> 4, f = (15 & i) << 2 | o >> 6, g = 63 & o, A = ""; + return A += Gge(63 & r >> 2), A += Gge(63 & l), A += Gge(63 & f), A += Gge(63 & g); +} +function Gge(r) { + var i = r; + return i < 10 ? String.fromCharCode(48 + i) : (i -= 10) < 26 ? String.fromCharCode(65 + i) : (i -= 26) < 26 ? String.fromCharCode(97 + i) : (i -= 26) === 0 ? "-" : i === 1 ? "_" : "?"; +} +function xwn(r, i) { + var o, l = unescape(encodeURIComponent(r)); + return At(o = "".concat(i, "/svg/")).call(o, function(f) { + for (var g = "", A = 0; A < f.length; A += 3) + A + 2 === f.length ? g += RFe(f.charCodeAt(A), f.charCodeAt(A + 1), 0) : A + 1 === f.length ? g += RFe(f.charCodeAt(A), 0, 0) : g += RFe(f.charCodeAt(A), f.charCodeAt(A + 1), f.charCodeAt(A + 2)); + return g; + }(kwn(l, 9))); +} +var Cwn = function() { + function r() { + var i, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + vi(this, r), this.baseUrl = (i = o.baseUrl) !== null && i !== void 0 ? i : "http://www.plantuml.com/plantuml"; + } + return yi(r, [{ key: "render", value: function(i, o) { + var l, f, g = o; + g || (g = Math.round(1e8 * Math.random())); + var A = At(l = "plantuml-".concat(g, "-")).call(l, (/* @__PURE__ */ new Date()).getTime()); + return At(f = ''); + } }], [{ key: "install", value: function(i, o) { + var l; + KPe(i, { engine: { syntax: { codeBlock: { customRenderer: { plantuml: new r(skt(skt({}, o), (l = i.engine.syntax.plantuml) !== null && l !== void 0 ? l : {})) } } } } }); + } }]), r; +}(); +function LTt(r) { + for (var i = [], o = 1; o < arguments.length; o++) + i[o - 1] = arguments[o]; + var l = Array.from(typeof r == "string" ? [r] : r); + l[l.length - 1] = l[l.length - 1].replace(/\r?\n([\t ]*)$/, ""); + var f = l.reduce(function(b, v) { + var k = v.match(/\n([\t ]+|(?!\s).)/g); + return k ? b.concat(k.map(function(_) { + var T, L; + return (L = (T = _.match(/[\t ]/g)) === null || T === void 0 ? void 0 : T.length) !== null && L !== void 0 ? L : 0; + })) : b; + }, []); + if (f.length) { + var g = new RegExp(` +[ ]{` + Math.min.apply(Math, f) + "}", "g"); + l = l.map(function(b) { + return b.replace(g, ` +`); + }); + } + l[0] = l[0].replace(/^\r?\n/, ""); + var A = l[0]; + return i.forEach(function(b, v) { + var k = A.match(/(?:^|\n)( *)$/), _ = k ? k[1] : "", T = b; + typeof b == "string" && b.includes(` +`) && (T = String(b).split(` +`).map(function(L, F) { + return F === 0 ? L : "" + _ + L; + }).join(` +`)), A += T + l[v + 1]; + }), A; +} +var b5 = su(function(r, i) { + r.exports = function() { + var o = 1e3, l = 6e4, f = 36e5, g = "millisecond", A = "second", b = "minute", v = "hour", k = "day", _ = "week", T = "month", L = "quarter", F = "year", U = "date", q = "Invalid Date", Z = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, J = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(Be) { + var te = ["th", "st", "nd", "rd"], Me = Be % 100; + return "[" + Be + (te[(Me - 20) % 10] || te[Me] || te[0]) + "]"; + } }, he = function(Be, te, Me) { + var ve = String(Be); + return !ve || ve.length >= te ? Be : "" + Array(te + 1 - ve.length).join(Me) + Be; + }, Y = { s: he, z: function(Be) { + var te = -Be.utcOffset(), Me = Math.abs(te), ve = Math.floor(Me / 60), ge = Me % 60; + return (te <= 0 ? "+" : "-") + he(ve, 2, "0") + ":" + he(ge, 2, "0"); + }, m: function Be(te, Me) { + if (te.date() < Me.date()) + return -Be(Me, te); + var ve = 12 * (Me.year() - te.year()) + (Me.month() - te.month()), ge = te.clone().add(ve, T), Je = Me - ge < 0, ot = te.clone().add(ve + (Je ? -1 : 1), T); + return +(-(ve + (Me - ge) / (Je ? ge - ot : ot - ge)) || 0); + }, a: function(Be) { + return Be < 0 ? Math.ceil(Be) || 0 : Math.floor(Be); + }, p: function(Be) { + return { M: T, y: F, w: _, d: k, D: U, h: v, m: b, s: A, ms: g, Q: L }[Be] || String(Be || "").toLowerCase().replace(/s$/, ""); + }, u: function(Be) { + return Be === void 0; + } }, ue = "en", le = {}; + le[ue] = J; + var be = function(Be) { + return Be instanceof xe; + }, ke = function Be(te, Me, ve) { + var ge; + if (!te) + return ue; + if (typeof te == "string") { + var Je = te.toLowerCase(); + le[Je] && (ge = Je), Me && (le[Je] = Me, ge = Je); + var ot = te.split("-"); + if (!ge && ot.length > 1) + return Be(ot[0]); + } else { + var bt = te.name; + le[bt] = te, ge = bt; + } + return !ve && ge && (ue = ge), ge || !ve && ue; + }, de = function(Be, te) { + if (be(Be)) + return Be.clone(); + var Me = typeof te == "object" ? te : {}; + return Me.date = Be, Me.args = arguments, new xe(Me); + }, Te = Y; + Te.l = ke, Te.i = be, Te.w = function(Be, te) { + return de(Be, { locale: te.$L, utc: te.$u, x: te.$x, $offset: te.$offset }); + }; + var xe = function() { + function Be(Me) { + this.$L = ke(Me.locale, null, !0), this.parse(Me); + } + var te = Be.prototype; + return te.parse = function(Me) { + this.$d = function(ve) { + var ge = ve.date, Je = ve.utc; + if (ge === null) + return /* @__PURE__ */ new Date(NaN); + if (Te.u(ge)) + return /* @__PURE__ */ new Date(); + if (ge instanceof Date) + return new Date(ge); + if (typeof ge == "string" && !/Z$/i.test(ge)) { + var ot = ge.match(Z); + if (ot) { + var bt = ot[2] - 1 || 0, gt = (ot[7] || "0").substring(0, 3); + return Je ? new Date(Date.UTC(ot[1], bt, ot[3] || 1, ot[4] || 0, ot[5] || 0, ot[6] || 0, gt)) : new Date(ot[1], bt, ot[3] || 1, ot[4] || 0, ot[5] || 0, ot[6] || 0, gt); + } + } + return new Date(ge); + }(Me), this.$x = Me.x || {}, this.init(); + }, te.init = function() { + var Me = this.$d; + this.$y = Me.getFullYear(), this.$M = Me.getMonth(), this.$D = Me.getDate(), this.$W = Me.getDay(), this.$H = Me.getHours(), this.$m = Me.getMinutes(), this.$s = Me.getSeconds(), this.$ms = Me.getMilliseconds(); + }, te.$utils = function() { + return Te; + }, te.isValid = function() { + return this.$d.toString() !== q; + }, te.isSame = function(Me, ve) { + var ge = de(Me); + return this.startOf(ve) <= ge && ge <= this.endOf(ve); + }, te.isAfter = function(Me, ve) { + return de(Me) < this.startOf(ve); + }, te.isBefore = function(Me, ve) { + return this.endOf(ve) < de(Me); + }, te.$g = function(Me, ve, ge) { + return Te.u(Me) ? this[ve] : this.set(ge, Me); + }, te.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, te.valueOf = function() { + return this.$d.getTime(); + }, te.startOf = function(Me, ve) { + var ge = this, Je = !!Te.u(ve) || ve, ot = Te.p(Me), bt = function(Ft, wn) { + var un = Te.w(ge.$u ? Date.UTC(ge.$y, wn, Ft) : new Date(ge.$y, wn, Ft), ge); + return Je ? un : un.endOf(k); + }, gt = function(Ft, wn) { + return Te.w(ge.toDate()[Ft].apply(ge.toDate("s"), (Je ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(wn)), ge); + }, je = this.$W, Qe = this.$M, kt = this.$D, Wt = "set" + (this.$u ? "UTC" : ""); + switch (ot) { + case F: + return Je ? bt(1, 0) : bt(31, 11); + case T: + return Je ? bt(1, Qe) : bt(0, Qe + 1); + case _: + var jt = this.$locale().weekStart || 0, Zn = (je < jt ? je + 7 : je) - jt; + return bt(Je ? kt - Zn : kt + (6 - Zn), Qe); + case k: + case U: + return gt(Wt + "Hours", 0); + case v: + return gt(Wt + "Minutes", 1); + case b: + return gt(Wt + "Seconds", 2); + case A: + return gt(Wt + "Milliseconds", 3); + default: + return this.clone(); + } + }, te.endOf = function(Me) { + return this.startOf(Me, !1); + }, te.$set = function(Me, ve) { + var ge, Je = Te.p(Me), ot = "set" + (this.$u ? "UTC" : ""), bt = (ge = {}, ge[k] = ot + "Date", ge[U] = ot + "Date", ge[T] = ot + "Month", ge[F] = ot + "FullYear", ge[v] = ot + "Hours", ge[b] = ot + "Minutes", ge[A] = ot + "Seconds", ge[g] = ot + "Milliseconds", ge)[Je], gt = Je === k ? this.$D + (ve - this.$W) : ve; + if (Je === T || Je === F) { + var je = this.clone().set(U, 1); + je.$d[bt](gt), je.init(), this.$d = je.set(U, Math.min(this.$D, je.daysInMonth())).$d; + } else + bt && this.$d[bt](gt); + return this.init(), this; + }, te.set = function(Me, ve) { + return this.clone().$set(Me, ve); + }, te.get = function(Me) { + return this[Te.p(Me)](); + }, te.add = function(Me, ve) { + var ge, Je = this; + Me = Number(Me); + var ot = Te.p(ve), bt = function(Qe) { + var kt = de(Je); + return Te.w(kt.date(kt.date() + Math.round(Qe * Me)), Je); + }; + if (ot === T) + return this.set(T, this.$M + Me); + if (ot === F) + return this.set(F, this.$y + Me); + if (ot === k) + return bt(1); + if (ot === _) + return bt(7); + var gt = (ge = {}, ge[b] = l, ge[v] = f, ge[A] = o, ge)[ot] || 1, je = this.$d.getTime() + Me * gt; + return Te.w(je, this); + }, te.subtract = function(Me, ve) { + return this.add(-1 * Me, ve); + }, te.format = function(Me) { + var ve = this, ge = this.$locale(); + if (!this.isValid()) + return ge.invalidDate || q; + var Je = Me || "YYYY-MM-DDTHH:mm:ssZ", ot = Te.z(this), bt = this.$H, gt = this.$m, je = this.$M, Qe = ge.weekdays, kt = ge.months, Wt = ge.meridiem, jt = function(wn, un, ln, an) { + return wn && (wn[un] || wn(ve, Je)) || ln[un].slice(0, an); + }, Zn = function(wn) { + return Te.s(bt % 12 || 12, wn, "0"); + }, Ft = Wt || function(wn, un, ln) { + var an = wn < 12 ? "AM" : "PM"; + return ln ? an.toLowerCase() : an; + }; + return Je.replace(R, function(wn, un) { + return un || function(ln) { + switch (ln) { + case "YY": + return String(ve.$y).slice(-2); + case "YYYY": + return Te.s(ve.$y, 4, "0"); + case "M": + return je + 1; + case "MM": + return Te.s(je + 1, 2, "0"); + case "MMM": + return jt(ge.monthsShort, je, kt, 3); + case "MMMM": + return jt(kt, je); + case "D": + return ve.$D; + case "DD": + return Te.s(ve.$D, 2, "0"); + case "d": + return String(ve.$W); + case "dd": + return jt(ge.weekdaysMin, ve.$W, Qe, 2); + case "ddd": + return jt(ge.weekdaysShort, ve.$W, Qe, 3); + case "dddd": + return Qe[ve.$W]; + case "H": + return String(bt); + case "HH": + return Te.s(bt, 2, "0"); + case "h": + return Zn(1); + case "hh": + return Zn(2); + case "a": + return Ft(bt, gt, !0); + case "A": + return Ft(bt, gt, !1); + case "m": + return String(gt); + case "mm": + return Te.s(gt, 2, "0"); + case "s": + return String(ve.$s); + case "ss": + return Te.s(ve.$s, 2, "0"); + case "SSS": + return Te.s(ve.$ms, 3, "0"); + case "Z": + return ot; + } + return null; + }(wn) || ot.replace(":", ""); + }); + }, te.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, te.diff = function(Me, ve, ge) { + var Je, ot = this, bt = Te.p(ve), gt = de(Me), je = (gt.utcOffset() - this.utcOffset()) * l, Qe = this - gt, kt = function() { + return Te.m(ot, gt); + }; + switch (bt) { + case F: + Je = kt() / 12; + break; + case T: + Je = kt(); + break; + case L: + Je = kt() / 3; + break; + case _: + Je = (Qe - je) / 6048e5; + break; + case k: + Je = (Qe - je) / 864e5; + break; + case v: + Je = Qe / f; + break; + case b: + Je = Qe / l; + break; + case A: + Je = Qe / o; + break; + default: + Je = Qe; + } + return ge ? Je : Te.a(Je); + }, te.daysInMonth = function() { + return this.endOf(T).$D; + }, te.$locale = function() { + return le[this.$L]; + }, te.locale = function(Me, ve) { + if (!Me) + return this.$L; + var ge = this.clone(), Je = ke(Me, ve, !0); + return Je && (ge.$L = Je), ge; + }, te.clone = function() { + return Te.w(this.$d, this); + }, te.toDate = function() { + return new Date(this.valueOf()); + }, te.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, te.toISOString = function() { + return this.$d.toISOString(); + }, te.toString = function() { + return this.$d.toUTCString(); + }, Be; + }(), ie = xe.prototype; + return de.prototype = ie, [["$ms", g], ["$s", A], ["$m", b], ["$H", v], ["$W", k], ["$M", T], ["$y", F], ["$D", U]].forEach(function(Be) { + ie[Be[1]] = function(te) { + return this.$g(te, Be[0], Be[1]); + }; + }), de.extend = function(Be, te) { + return Be.$i || (Be(te, xe, de), Be.$i = !0), de; + }, de.locale = ke, de.isDayjs = be, de.unix = function(Be) { + return de(1e3 * Be); + }, de.en = le[ue], de.Ls = le, de.p = {}, de; + }(); +}), ITt = su(function(r, i) { + Object.defineProperty(i, "__esModule", { value: !0 }), i.sanitizeUrl = void 0; + var o = /^([^\w]*)(javascript|data|vbscript)/im, l = /&#(\w+)(^\w|;)?/g, f = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, g = /^([^:]+):/gm, A = [".", "/"]; + i.sanitizeUrl = function(b) { + var v = function(T) { + return T.replace(l, function(L, F) { + return String.fromCharCode(F); + }); + }(b || "").replace(f, "").trim(); + if (!v) + return "about:blank"; + if (function(T) { + return A.indexOf(T[0]) > -1; + }(v)) + return v; + var k = v.match(g); + if (!k) + return v; + var _ = k[0]; + return o.test(_) ? "about:blank" : v; + }; +}); +v$(ITt); +var u$ = ITt.sanitizeUrl; +function Ppe(r, i) { + return r == null || i == null ? NaN : r < i ? -1 : r > i ? 1 : r >= i ? 0 : NaN; +} +function _wn(r, i) { + return r == null || i == null ? NaN : i < r ? -1 : i > r ? 1 : i >= r ? 0 : NaN; +} +function dRe(r) { + var i, o, l; + function f(g, A) { + var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, v = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length; + if (b < v) { + if (i(A, A) !== 0) + return v; + do { + var k = b + v >>> 1; + o(g[k], A) < 0 ? b = k + 1 : v = k; + } while (b < v); + } + return b; + } + return r.length !== 2 ? (i = Ppe, o = function(g, A) { + return Ppe(r(g), A); + }, l = function(g, A) { + return r(g) - A; + }) : (i = r === Ppe || r === _wn ? r : Ewn, o = r, l = r), { left: f, center: function(g, A) { + var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, v = f(g, A, b, (arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length) - 1); + return v > b && l(g[v - 1], A) > -l(g[v], A) ? v - 1 : v; + }, right: function(g, A) { + var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, v = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length; + if (b < v) { + if (i(A, A) !== 0) + return v; + do { + var k = b + v >>> 1; + o(g[k], A) <= 0 ? b = k + 1 : v = k; + } while (b < v); + } + return b; + } }; +} +function Ewn() { + return 0; +} +var Twn = dRe(Ppe).right; +dRe(function(r) { + return r === null ? NaN : +r; +}).center; +var Bwn = Twn; +class ckt extends Map { + constructor(i, o = Swn) { + if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: o } }), i != null) + for (const [l, f] of i) + this.set(l, f); + } + get(i) { + return super.get(lkt(this, i)); + } + has(i) { + return super.has(lkt(this, i)); + } + set(i, o) { + return super.set(function({ _intern: l, _key: f }, g) { + const A = f(g); + return l.has(A) ? l.get(A) : (l.set(A, g), g); + }(this, i), o); + } + delete(i) { + return super.delete(function({ _intern: o, _key: l }, f) { + const g = l(f); + return o.has(g) && (f = o.get(g), o.delete(g)), f; + }(this, i)); + } +} +function lkt({ _intern: r, _key: i }, o) { + const l = i(o); + return r.has(l) ? r.get(l) : o; +} +function Swn(r) { + return r !== null && typeof r == "object" ? r.valueOf() : r; +} +var ukt = ST.match(/firefox\/(\d+)/i), hkt = !!ukt && +ukt[1], Lwn = /MSIE|Trident/.test(ST), fkt = ST.match(/AppleWebKit\/(\d+)\./), dkt = !!fkt && +fkt[1], yO = [], Akt = Do(yO.sort), Iwn = Do(yO.push), Mwn = oh(function() { + yO.sort(void 0); +}), Fwn = oh(function() { + yO.sort(null); +}), Own = uX("sort"), gkt = !oh(function() { + if (MT) + return MT < 70; + if (!(hkt && hkt > 3)) { + if (Lwn) + return !0; + if (dkt) + return dkt < 603; + var r, i, o, l, f = ""; + for (r = 65; r < 76; r++) { + switch (i = String.fromCharCode(r), r) { + case 66: + case 69: + case 70: + case 72: + o = 3; + break; + case 68: + case 71: + o = 4; + break; + default: + o = 2; + } + for (l = 0; l < 47; l++) + yO.push({ k: i + l, v: o }); + } + for (yO.sort(function(g, A) { + return A.v - g.v; + }), l = 0; l < yO.length; l++) + i = yO[l].k.charAt(0), f.charAt(f.length - 1) !== i && (f += i); + return f !== "DGBEFHACIJK"; + } +}); +qa({ target: "Array", proto: !0, forced: Mwn || !Fwn || !Own || !gkt }, { sort: function(r) { + r !== void 0 && Fh(r); + var i = y5(this); + if (gkt) + return r === void 0 ? Akt(i) : Akt(i, r); + var o, l, f = [], g = Ck(i); + for (l = 0; l < g; l++) + l in i && Iwn(f, i[l]); + for (LEt(f, /* @__PURE__ */ function(A) { + return function(b, v) { + return v === void 0 ? -1 : b === void 0 ? 1 : A !== void 0 ? +A(b, v) || 0 : ah(b) > ah(v) ? 1 : -1; + }; + }(r)), o = f.length, l = 0; l < o; ) + i[l] = f[l++]; + for (; l < g; ) + delete i[l++]; + return i; +} }); +var Dwn = a0("Array").sort, QFe = Array.prototype, aie = function(r) { + var i = r.sort; + return r === QFe || E1(QFe, r) && i === QFe.sort ? Dwn : i; +}, Nwn = Math.log, Pwn = Math.LOG10E, Rwn = Math.log10 || function(r) { + return Nwn(r) * Pwn; +}; +qa({ target: "Math", stat: !0 }, { log10: Rwn }); +var Qwn = ql.Math.log10, $wn = Math.sqrt(50), Uwn = Math.sqrt(10), Hwn = Math.sqrt(2); +function Gme(r, i, o) { + var l, f, g, A = (i - r) / Math.max(0, o), b = Math.floor(Qwn(A)), v = A / Math.pow(10, b), k = v >= $wn ? 10 : v >= Uwn ? 5 : v >= Hwn ? 2 : 1; + return b < 0 ? (g = Math.pow(10, -b) / k, (l = Math.round(r * g)) / g < r && ++l, (f = Math.round(i * g)) / g > i && --f, g = -g) : (g = Math.pow(10, b) * k, (l = Math.round(r / g)) * g < r && ++l, (f = Math.round(i / g)) * g > i && --f), f < l && 0.5 <= o && o < 2 ? Gme(r, i, 2 * o) : [l, f, g]; +} +function nNe(r, i, o) { + return Gme(r = +r, i = +i, o = +o)[2]; +} +function rNe(r, i, o) { + o = +o; + var l = (i = +i) < (r = +r), f = l ? nNe(i, r, o) : nNe(r, i, o); + return (l ? -1 : 1) * (f < 0 ? 1 / -f : f); +} +function pkt(r, i) { + var o = dX !== void 0 && QO(r) || r["@@iterator"]; + if (!o) { + if (kk(r) || (o = function(v, k) { + var _; + if (v) { + if (typeof v == "string") + return mkt(v, k); + var T = Da(_ = Object.prototype.toString.call(v)).call(_, 8, -1); + if (T === "Object" && v.constructor && (T = v.constructor.name), T === "Map" || T === "Set") + return Su(v); + if (T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)) + return mkt(v, k); + } + }(r)) || i && r && typeof r.length == "number") { + o && (r = o); + var l = 0, f = function() { + }; + return { s: f, n: function() { + return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; + }, e: function(v) { + throw v; + }, f }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var g, A = !0, b = !1; + return { s: function() { + o = o.call(r); + }, n: function() { + var v = o.next(); + return A = v.done, v; + }, e: function(v) { + b = !0, g = v; + }, f: function() { + try { + A || o.return == null || o.return(); + } finally { + if (b) + throw g; + } + } }; +} +function mkt(r, i) { + (i == null || i > r.length) && (i = r.length); + for (var o = 0, l = new Array(i); o < i; o++) + l[o] = r[o]; + return l; +} +function jwn(r, i) { + var o; + if (i === void 0) { + var l, f = pkt(r); + try { + for (f.s(); !(l = f.n()).done; ) { + var g = l.value; + g != null && (o < g || o === void 0 && g >= g) && (o = g); + } + } catch (_) { + f.e(_); + } finally { + f.f(); + } + } else { + var A, b = -1, v = pkt(r); + try { + for (v.s(); !(A = v.n()).done; ) { + var k = A.value; + (k = i(k, ++b, r)) != null && (o < k || o === void 0 && k >= k) && (o = k); + } + } catch (_) { + v.e(_); + } finally { + v.f(); + } + } + return o; +} +function bkt(r, i) { + var o = dX !== void 0 && QO(r) || r["@@iterator"]; + if (!o) { + if (kk(r) || (o = function(v, k) { + var _; + if (v) { + if (typeof v == "string") + return vkt(v, k); + var T = Da(_ = Object.prototype.toString.call(v)).call(_, 8, -1); + if (T === "Object" && v.constructor && (T = v.constructor.name), T === "Map" || T === "Set") + return Su(v); + if (T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)) + return vkt(v, k); + } + }(r)) || i && r && typeof r.length == "number") { + o && (r = o); + var l = 0, f = function() { + }; + return { s: f, n: function() { + return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; + }, e: function(v) { + throw v; + }, f }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var g, A = !0, b = !1; + return { s: function() { + o = o.call(r); + }, n: function() { + var v = o.next(); + return A = v.done, v; + }, e: function(v) { + b = !0, g = v; + }, f: function() { + try { + A || o.return == null || o.return(); + } finally { + if (b) + throw g; + } + } }; +} +function vkt(r, i) { + (i == null || i > r.length) && (i = r.length); + for (var o = 0, l = new Array(i); o < i; o++) + l[o] = r[o]; + return l; +} +function Kwn(r, i) { + var o; + if (i === void 0) { + var l, f = bkt(r); + try { + for (f.s(); !(l = f.n()).done; ) { + var g = l.value; + g != null && (o > g || o === void 0 && g >= g) && (o = g); + } + } catch (_) { + f.e(_); + } finally { + f.f(); + } + } else { + var A, b = -1, v = bkt(r); + try { + for (v.s(); !(A = v.n()).done; ) { + var k = A.value; + (k = i(k, ++b, r)) != null && (o > k || o === void 0 && k >= k) && (o = k); + } + } catch (_) { + v.e(_); + } finally { + v.f(); + } + } + return o; +} +var TL = sTt; +function zwn(r) { + return r; +} +var Rpe = 1, $Fe = 2, iNe = 3, Xge = 4, ykt = 1e-6; +function Gwn(r) { + return "translate(" + r + ",0)"; +} +function Xwn(r) { + return "translate(0," + r + ")"; +} +function Wwn(r) { + return function(i) { + return +r(i); + }; +} +function Vwn(r, i) { + return i = Math.max(0, r.bandwidth() - 2 * i) / 2, r.round() && (i = Math.round(i)), function(o) { + return +r(o) + i; + }; +} +function qwn() { + return !this.__axis; +} +function wkt(r, i) { + var o = [], l = null, f = null, g = 6, A = 6, b = 3, v = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, k = r === Rpe || r === Xge ? -1 : 1, _ = r === Xge || r === $Fe ? "x" : "y", T = r === Rpe || r === iNe ? Gwn : Xwn; + function L(F) { + var U = l ?? (i.ticks ? i.ticks.apply(i, o) : i.domain()), q = f ?? (i.tickFormat ? i.tickFormat.apply(i, o) : zwn), Z = Math.max(g, 0) + b, R = i.range(), J = +R[0] + v, he = +R[R.length - 1] + v, Y = (i.bandwidth ? Vwn : Wwn)(i.copy(), v), ue = F.selection ? F.selection() : F, le = ue.selectAll(".domain").data([null]), be = ue.selectAll(".tick").data(U, i).order(), ke = be.exit(), de = be.enter().append("g").attr("class", "tick"), Te = be.select("line"), xe = be.select("text"); + le = le.merge(le.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), be = be.merge(de), Te = Te.merge(de.append("line").attr("stroke", "currentColor").attr(_ + "2", k * g)), xe = xe.merge(de.append("text").attr("fill", "currentColor").attr(_, k * Z).attr("dy", r === Rpe ? "0em" : r === iNe ? "0.71em" : "0.32em")), F !== ue && (le = le.transition(F), be = be.transition(F), Te = Te.transition(F), xe = xe.transition(F), ke = ke.transition(F).attr("opacity", ykt).attr("transform", function(ie) { + return isFinite(ie = Y(ie)) ? T(ie + v) : this.getAttribute("transform"); + }), de.attr("opacity", ykt).attr("transform", function(ie) { + var Be = this.parentNode.__axis; + return T((Be && isFinite(Be = Be(ie)) ? Be : Y(ie)) + v); + })), ke.remove(), le.attr("d", r === Xge || r === $Fe ? A ? "M" + k * A + "," + J + "H" + v + "V" + he + "H" + k * A : "M" + v + "," + J + "V" + he : A ? "M" + J + "," + k * A + "V" + v + "H" + he + "V" + k * A : "M" + J + "," + v + "H" + he), be.attr("opacity", 1).attr("transform", function(ie) { + return T(Y(ie) + v); + }), Te.attr(_ + "2", k * g), xe.attr(_, k * Z).text(q), dd(ue).call(ue, qwn).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", r === $Fe ? "start" : r === Xge ? "end" : "middle"), ue.each(function() { + this.__axis = Y; + }); + } + return L.scale = function(F) { + return arguments.length ? (i = F, L) : i; + }, L.ticks = function() { + return o = Su(arguments), L; + }, L.tickArguments = function(F) { + return arguments.length ? (o = F == null ? [] : Su(F), L) : Da(o).call(o); + }, L.tickValues = function(F) { + return arguments.length ? (l = F == null ? null : Su(F), L) : l && Da(l).call(l); + }, L.tickFormat = function(F) { + return arguments.length ? (f = F, L) : f; + }, L.tickSize = function(F) { + return arguments.length ? (g = A = +F, L) : g; + }, L.tickSizeInner = function(F) { + return arguments.length ? (g = +F, L) : g; + }, L.tickSizeOuter = function(F) { + return arguments.length ? (A = +F, L) : A; + }, L.tickPadding = function(F) { + return arguments.length ? (b = +F, L) : b; + }, L.offset = function(F) { + return arguments.length ? (v = +F, L) : v; + }, L; +} +var Ywn = { value: function() { +} }; +function MTt() { + for (var r, i = 0, o = arguments.length, l = {}; i < o; ++i) { + if (!(r = arguments[i] + "") || r in l || /[\s.]/.test(r)) + throw new Error("illegal type: " + r); + l[r] = []; + } + return new Qpe(l); +} +function Qpe(r) { + this._ = r; +} +function Jwn(r, i) { + for (var o, l = 0, f = r.length; l < f; ++l) + if ((o = r[l]).name === i) + return o.value; +} +function kkt(r, i, o) { + for (var l = 0, f = r.length; l < f; ++l) + if (r[l].name === i) { + var g; + r[l] = Ywn, r = At(g = Da(r).call(r, 0, l)).call(g, Da(r).call(r, l + 1)); + break; + } + return o != null && r.push({ name: i, value: o }), r; +} +Qpe.prototype = MTt.prototype = { constructor: Qpe, on: function(r, i) { + var o, l = this._, f = function(b, v) { + var k; + return Zs(k = Go(b).call(b).split(/^|\s+/)).call(k, function(_) { + var T = "", L = Lu(_).call(_, "."); + if (L >= 0 && (T = Da(_).call(_, L + 1), _ = Da(_).call(_, 0, L)), _ && !v.hasOwnProperty(_)) + throw new Error("unknown type: " + _); + return { type: _, name: T }; + }); + }(r + "", l), g = -1, A = f.length; + if (!(arguments.length < 2)) { + if (i != null && typeof i != "function") + throw new Error("invalid callback: " + i); + for (; ++g < A; ) + if (o = (r = f[g]).type) + l[o] = kkt(l[o], r.name, i); + else if (i == null) + for (o in l) + l[o] = kkt(l[o], r.name, null); + return this; + } + for (; ++g < A; ) + if ((o = (r = f[g]).type) && (o = Jwn(l[o], r.name))) + return o; +}, copy: function() { + var r = {}, i = this._; + for (var o in i) { + var l; + r[o] = Da(l = i[o]).call(l); + } + return new Qpe(r); +}, call: function(r, i) { + if ((o = arguments.length - 2) > 0) + for (var o, l, f = new Array(o), g = 0; g < o; ++g) + f[g] = arguments[g + 2]; + if (!this._.hasOwnProperty(r)) + throw new Error("unknown type: " + r); + for (g = 0, o = (l = this._[r]).length; g < o; ++g) + l[g].value.apply(i, f); +}, apply: function(r, i, o) { + if (!this._.hasOwnProperty(r)) + throw new Error("unknown type: " + r); + for (var l = this._[r], f = 0, g = l.length; f < g; ++f) + l[f].value.apply(i, o); +} }; +var aNe = "http://www.w3.org/1999/xhtml", xkt = { svg: "http://www.w3.org/2000/svg", xhtml: aNe, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }; +function Xme(r) { + var i = r += "", o = Lu(i).call(i, ":"); + return o >= 0 && (i = Da(r).call(r, 0, o)) !== "xmlns" && (r = Da(r).call(r, o + 1)), xkt.hasOwnProperty(i) ? { space: xkt[i], local: r } : r; +} +function Zwn(r) { + return function() { + var i = this.ownerDocument, o = this.namespaceURI; + return o === aNe && i.documentElement.namespaceURI === aNe ? i.createElement(r) : i.createElementNS(o, r); + }; +} +function e3n(r) { + return function() { + return this.ownerDocument.createElementNS(r.space, r.local); + }; +} +function Ckt(r) { + var i = Xme(r); + return (i.local ? e3n : Zwn)(i); +} +var FTt = $9t; +function t3n() { +} +function oNe(r) { + return r == null ? t3n : function() { + return this.querySelector(r); + }; +} +function OTt(r) { + return r == null ? [] : kk(r) ? r : Su(r); +} +function n3n() { + return []; +} +function DTt(r) { + return r == null ? n3n : function() { + return this.querySelectorAll(r); + }; +} +function NTt(r) { + return function() { + return this.matches(r); + }; +} +function _kt(r) { + return function(i) { + return i.matches(r); + }; +} +var r3n = Wre(Array.prototype); +function i3n() { + return this.firstElementChild; +} +var a3n = dd(Array.prototype); +function o3n() { + return Su(this.children); +} +var PTt = F_t; +function Ekt(r) { + return new Array(r.length); +} +function Wme(r, i) { + this.ownerDocument = r.ownerDocument, this.namespaceURI = r.namespaceURI, this._next = null, this._parent = r, this.__data__ = i; +} +function s3n(r, i, o, l, f, g) { + for (var A, b = 0, v = i.length, k = g.length; b < k; ++b) + (A = i[b]) ? (A.__data__ = g[b], l[b] = A) : o[b] = new Wme(r, g[b]); + for (; b < v; ++b) + (A = i[b]) && (f[b] = A); +} +function c3n(r, i, o, l, f, g, A) { + var b, v, k, _ = new PTt(), T = i.length, L = g.length, F = new Array(T); + for (b = 0; b < T; ++b) + (v = i[b]) && (F[b] = k = A.call(v, v.__data__, b, i) + "", _.has(k) ? f[b] = v : _.set(k, v)); + for (b = 0; b < L; ++b) + k = A.call(r, g[b], b, g) + "", (v = _.get(k)) ? (l[b] = v, v.__data__ = g[b], _.delete(k)) : o[b] = new Wme(r, g[b]); + for (b = 0; b < T; ++b) + (v = i[b]) && _.get(F[b]) === v && (f[b] = v); +} +function l3n(r) { + return r.__data__; +} +function u3n(r) { + return Yl(r) === "object" && "length" in r ? r : Su(r); +} +function h3n(r, i) { + return r < i ? -1 : r > i ? 1 : r >= i ? 0 : NaN; +} +function f3n(r, i) { + var o = dX !== void 0 && QO(r) || r["@@iterator"]; + if (!o) { + if (kk(r) || (o = function(v, k) { + var _; + if (v) { + if (typeof v == "string") + return Tkt(v, k); + var T = Da(_ = Object.prototype.toString.call(v)).call(_, 8, -1); + if (T === "Object" && v.constructor && (T = v.constructor.name), T === "Map" || T === "Set") + return Su(v); + if (T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)) + return Tkt(v, k); + } + }(r)) || i && r && typeof r.length == "number") { + o && (r = o); + var l = 0, f = function() { + }; + return { s: f, n: function() { + return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; + }, e: function(v) { + throw v; + }, f }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var g, A = !0, b = !1; + return { s: function() { + o = o.call(r); + }, n: function() { + var v = o.next(); + return A = v.done, v; + }, e: function(v) { + b = !0, g = v; + }, f: function() { + try { + A || o.return == null || o.return(); + } finally { + if (b) + throw g; + } + } }; +} +function Tkt(r, i) { + (i == null || i > r.length) && (i = r.length); + for (var o = 0, l = new Array(i); o < i; o++) + l[o] = r[o]; + return l; +} +function d3n(r) { + return function() { + this.removeAttribute(r); + }; +} +function A3n(r) { + return function() { + this.removeAttributeNS(r.space, r.local); + }; +} +function g3n(r, i) { + return function() { + this.setAttribute(r, i); + }; +} +function p3n(r, i) { + return function() { + this.setAttributeNS(r.space, r.local, i); + }; +} +function m3n(r, i) { + return function() { + var o = i.apply(this, arguments); + o == null ? this.removeAttribute(r) : this.setAttribute(r, o); + }; +} +function b3n(r, i) { + return function() { + var o = i.apply(this, arguments); + o == null ? this.removeAttributeNS(r.space, r.local) : this.setAttributeNS(r.space, r.local, o); + }; +} +function RTt(r) { + return r.ownerDocument && r.ownerDocument.defaultView || r.document && r || r.defaultView; +} +function v3n(r) { + return function() { + this.style.removeProperty(r); + }; +} +function y3n(r, i, o) { + return function() { + this.style.setProperty(r, i, o); + }; +} +function w3n(r, i, o) { + return function() { + var l = i.apply(this, arguments); + l == null ? this.style.removeProperty(r) : this.style.setProperty(r, l, o); + }; +} +function rG(r, i) { + return r.style.getPropertyValue(i) || RTt(r).getComputedStyle(r, null).getPropertyValue(i); +} +function k3n(r) { + return function() { + delete this[r]; + }; +} +function x3n(r, i) { + return function() { + this[r] = i; + }; +} +function C3n(r, i) { + return function() { + var o = i.apply(this, arguments); + o == null ? delete this[r] : this[r] = o; + }; +} +function QTt(r) { + return Go(r).call(r).split(/^|\s+/); +} +function ARe(r) { + return r.classList || new $Tt(r); +} +function $Tt(r) { + this._node = r, this._names = QTt(r.getAttribute("class") || ""); +} +function UTt(r, i) { + for (var o = ARe(r), l = -1, f = i.length; ++l < f; ) + o.add(i[l]); +} +function HTt(r, i) { + for (var o = ARe(r), l = -1, f = i.length; ++l < f; ) + o.remove(i[l]); +} +function _3n(r) { + return function() { + UTt(this, r); + }; +} +function E3n(r) { + return function() { + HTt(this, r); + }; +} +function T3n(r, i) { + return function() { + (i.apply(this, arguments) ? UTt : HTt)(this, r); + }; +} +function B3n() { + this.textContent = ""; +} +function S3n(r) { + return function() { + this.textContent = r; + }; +} +function L3n(r) { + return function() { + var i = r.apply(this, arguments); + this.textContent = i ?? ""; + }; +} +function I3n() { + this.innerHTML = ""; +} +function M3n(r) { + return function() { + this.innerHTML = r; + }; +} +function F3n(r) { + return function() { + var i = r.apply(this, arguments); + this.innerHTML = i ?? ""; + }; +} +function O3n() { + this.nextSibling && this.parentNode.appendChild(this); +} +function D3n() { + this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); +} +function N3n() { + return null; +} +function P3n() { + var r = this.parentNode; + r && r.removeChild(this); +} +function R3n() { + var r = this.cloneNode(!1), i = this.parentNode; + return i ? i.insertBefore(r, this.nextSibling) : r; +} +function Q3n() { + var r = this.cloneNode(!0), i = this.parentNode; + return i ? i.insertBefore(r, this.nextSibling) : r; +} +function $3n(r) { + return function() { + var i = this.__on; + if (i) { + for (var o, l = 0, f = -1, g = i.length; l < g; ++l) + o = i[l], r.type && o.type !== r.type || o.name !== r.name ? i[++f] = o : this.removeEventListener(o.type, o.listener, o.options); + ++f ? i.length = f : delete this.__on; + } + }; +} +function U3n(r, i, o) { + return function() { + var l, f = this.__on, g = /* @__PURE__ */ function(v) { + return function(k) { + v.call(this, k, this.__data__); + }; + }(i); + if (f) { + for (var A = 0, b = f.length; A < b; ++A) + if ((l = f[A]).type === r.type && l.name === r.name) + return this.removeEventListener(l.type, l.listener, l.options), this.addEventListener(l.type, l.listener = g, l.options = o), void (l.value = i); + } + this.addEventListener(r.type, g, o), l = { type: r.type, name: r.name, value: i, listener: g, options: o }, f ? f.push(l) : this.__on = [l]; + }; +} +function jTt(r, i, o) { + var l = RTt(r), f = l.CustomEvent; + typeof f == "function" ? f = new f(i, o) : (f = l.document.createEvent("Event"), o ? (f.initEvent(i, o.bubbles, o.cancelable), f.detail = o.detail) : f.initEvent(i, !1, !1)), r.dispatchEvent(f); +} +function H3n(r, i) { + return function() { + return jTt(this, r, i); + }; +} +function j3n(r, i) { + return function() { + return jTt(this, r, i.apply(this, arguments)); + }; +} +Wme.prototype = { constructor: Wme, appendChild: function(r) { + return this._parent.insertBefore(r, this._next); +}, insertBefore: function(r, i) { + return this._parent.insertBefore(r, i); +}, querySelector: function(r) { + return this._parent.querySelector(r); +}, querySelectorAll: function(r) { + return this._parent.querySelectorAll(r); +} }, $Tt.prototype = { add: function(r) { + var i; + Lu(i = this._names).call(i, r) < 0 && (this._names.push(r), this._node.setAttribute("class", this._names.join(" "))); +}, remove: function(r) { + var i, o, l = Lu(i = this._names).call(i, r); + l >= 0 && (gk(o = this._names).call(o, l, 1), this._node.setAttribute("class", this._names.join(" "))); +}, contains: function(r) { + var i; + return Lu(i = this._names).call(i, r) >= 0; +} }; +var K3n = KG.mark(KTt); +function KTt() { + var r, i, o, l, f, g, A; + return KG.wrap(function(b) { + for (; ; ) + switch (b.prev = b.next) { + case 0: + r = this._groups, i = 0, o = r.length; + case 1: + if (!(i < o)) { + b.next = 13; + break; + } + l = r[i], f = 0, g = l.length; + case 3: + if (!(f < g)) { + b.next = 10; + break; + } + if (!(A = l[f])) { + b.next = 7; + break; + } + return b.next = 7, A; + case 7: + ++f, b.next = 3; + break; + case 10: + ++i, b.next = 1; + break; + case 13: + case "end": + return b.stop(); + } + }, K3n, this); +} +var Bkt, Skt, Lkt, Ikt, Mkt, Fkt, Okt, Dkt, Nkt, gRe = [null]; +function y3(r, i) { + this._groups = r, this._parents = i; +} +function oie() { + return new y3([[document.documentElement]], gRe); +} +function co(r) { + return typeof r == "string" ? new y3([[document.querySelector(r)]], [document.documentElement]) : new y3([[r]], gRe); +} +function zTt(r) { + return typeof r == "string" ? new y3([document.querySelectorAll(r)], [document.documentElement]) : new y3([OTt(r)], gRe); +} +function Cre(r, i, o) { + r.prototype = i.prototype = o, o.constructor = r; +} +function Vme(r, i) { + var o = Vre(r.prototype); + for (var l in i) + o[l] = i[l]; + return o; +} +function t$() { +} +y3.prototype = oie.prototype = Ui({ constructor: y3, select: function(r) { + typeof r != "function" && (r = oNe(r)); + for (var i = this._groups, o = i.length, l = new Array(o), f = 0; f < o; ++f) + for (var g, A, b = i[f], v = b.length, k = l[f] = new Array(v), _ = 0; _ < v; ++_) + (g = b[_]) && (A = r.call(g, g.__data__, _, b)) && ("__data__" in g && (A.__data__ = g.__data__), k[_] = A); + return new y3(l, this._parents); +}, selectAll: function(r) { + r = typeof r == "function" ? /* @__PURE__ */ function(_) { + return function() { + return OTt(_.apply(this, arguments)); + }; + }(r) : DTt(r); + for (var i = this._groups, o = i.length, l = [], f = [], g = 0; g < o; ++g) + for (var A, b = i[g], v = b.length, k = 0; k < v; ++k) + (A = b[k]) && (l.push(r.call(A, A.__data__, k, b)), f.push(A)); + return new y3(l, f); +}, selectChild: function(r) { + return this.select(r == null ? i3n : /* @__PURE__ */ function(i) { + return function() { + return r3n.call(this.children, i); + }; + }(typeof r == "function" ? r : _kt(r))); +}, selectChildren: function(r) { + return this.selectAll(r == null ? o3n : /* @__PURE__ */ function(i) { + return function() { + return a3n.call(this.children, i); + }; + }(typeof r == "function" ? r : _kt(r))); +}, filter: function(r) { + typeof r != "function" && (r = NTt(r)); + for (var i = this._groups, o = i.length, l = new Array(o), f = 0; f < o; ++f) + for (var g, A = i[f], b = A.length, v = l[f] = [], k = 0; k < b; ++k) + (g = A[k]) && r.call(g, g.__data__, k, A) && v.push(g); + return new y3(l, this._parents); +}, data: function(r, i) { + if (!arguments.length) + return Su(this, l3n); + var o = i ? c3n : s3n, l = this._parents, f = this._groups; + typeof r != "function" && (r = /* @__PURE__ */ function(ue) { + return function() { + return ue; + }; + }(r)); + for (var g = f.length, A = new Array(g), b = new Array(g), v = new Array(g), k = 0; k < g; ++k) { + var _ = l[k], T = f[k], L = T.length, F = u3n(r.call(_, _ && _.__data__, k, l)), U = F.length, q = b[k] = new Array(U), Z = A[k] = new Array(U); + o(_, T, q, Z, v[k] = new Array(L), F, i); + for (var R, J, he = 0, Y = 0; he < U; ++he) + if (R = q[he]) { + for (he >= Y && (Y = he + 1); !(J = Z[Y]) && ++Y < U; ) + ; + R._next = J || null; + } + } + return (A = new y3(A, l))._enter = b, A._exit = v, A; +}, enter: function() { + var r; + return new y3(this._enter || Zs(r = this._groups).call(r, Ekt), this._parents); +}, exit: function() { + var r; + return new y3(this._exit || Zs(r = this._groups).call(r, Ekt), this._parents); +}, join: function(r, i, o) { + var l = this.enter(), f = this, g = this.exit(); + return typeof r == "function" ? (l = r(l)) && (l = l.selection()) : l = l.append(r + ""), i != null && (f = i(f)) && (f = f.selection()), o == null ? g.remove() : o(g), l && f ? l.merge(f).order() : f; +}, merge: function(r) { + for (var i = r.selection ? r.selection() : r, o = this._groups, l = i._groups, f = o.length, g = l.length, A = Math.min(f, g), b = new Array(f), v = 0; v < A; ++v) + for (var k, _ = o[v], T = l[v], L = _.length, F = b[v] = new Array(L), U = 0; U < L; ++U) + (k = _[U] || T[U]) && (F[U] = k); + for (; v < f; ++v) + b[v] = o[v]; + return new y3(b, this._parents); +}, selection: function() { + return this; +}, order: function() { + for (var r = this._groups, i = -1, o = r.length; ++i < o; ) + for (var l, f = r[i], g = f.length - 1, A = f[g]; --g >= 0; ) + (l = f[g]) && (A && 4 ^ l.compareDocumentPosition(A) && A.parentNode.insertBefore(l, A), A = l); + return this; +}, sort: function(r) { + function i(T, L) { + return T && L ? r(T.__data__, L.__data__) : !T - !L; + } + r || (r = h3n); + for (var o = this._groups, l = o.length, f = new Array(l), g = 0; g < l; ++g) { + for (var A, b = o[g], v = b.length, k = f[g] = new Array(v), _ = 0; _ < v; ++_) + (A = b[_]) && (k[_] = A); + aie(k).call(k, i); + } + return new y3(f, this._parents).order(); +}, call: function() { + var r = arguments[0]; + return arguments[0] = this, r.apply(null, arguments), this; +}, nodes: function() { + return Su(this); +}, node: function() { + for (var r = this._groups, i = 0, o = r.length; i < o; ++i) + for (var l = r[i], f = 0, g = l.length; f < g; ++f) { + var A = l[f]; + if (A) + return A; + } + return null; +}, size: function() { + var r, i = 0, o = f3n(this); + try { + for (o.s(); !(r = o.n()).done; ) + r.value, ++i; + } catch (l) { + o.e(l); + } finally { + o.f(); + } + return i; +}, empty: function() { + return !this.node(); +}, each: function(r) { + for (var i = this._groups, o = 0, l = i.length; o < l; ++o) + for (var f, g = i[o], A = 0, b = g.length; A < b; ++A) + (f = g[A]) && r.call(f, f.__data__, A, g); + return this; +}, attr: function(r, i) { + var o = Xme(r); + if (arguments.length < 2) { + var l = this.node(); + return o.local ? l.getAttributeNS(o.space, o.local) : l.getAttribute(o); + } + return this.each((i == null ? o.local ? A3n : d3n : typeof i == "function" ? o.local ? b3n : m3n : o.local ? p3n : g3n)(o, i)); +}, style: function(r, i, o) { + return arguments.length > 1 ? this.each((i == null ? v3n : typeof i == "function" ? w3n : y3n)(r, i, o ?? "")) : rG(this.node(), r); +}, property: function(r, i) { + return arguments.length > 1 ? this.each((i == null ? k3n : typeof i == "function" ? C3n : x3n)(r, i)) : this.node()[r]; +}, classed: function(r, i) { + var o = QTt(r + ""); + if (arguments.length < 2) { + for (var l = ARe(this.node()), f = -1, g = o.length; ++f < g; ) + if (!l.contains(o[f])) + return !1; + return !0; + } + return this.each((typeof i == "function" ? T3n : i ? _3n : E3n)(o, i)); +}, text: function(r) { + return arguments.length ? this.each(r == null ? B3n : (typeof r == "function" ? L3n : S3n)(r)) : this.node().textContent; +}, html: function(r) { + return arguments.length ? this.each(r == null ? I3n : (typeof r == "function" ? F3n : M3n)(r)) : this.node().innerHTML; +}, raise: function() { + return this.each(O3n); +}, lower: function() { + return this.each(D3n); +}, append: function(r) { + var i = typeof r == "function" ? r : Ckt(r); + return this.select(function() { + return this.appendChild(i.apply(this, arguments)); + }); +}, insert: function(r, i) { + var o = typeof r == "function" ? r : Ckt(r), l = i == null ? N3n : typeof i == "function" ? i : oNe(i); + return this.select(function() { + return this.insertBefore(o.apply(this, arguments), l.apply(this, arguments) || null); + }); +}, remove: function() { + return this.each(P3n); +}, clone: function(r) { + return this.select(r ? Q3n : R3n); +}, datum: function(r) { + return arguments.length ? this.property("__data__", r) : this.node().__data__; +}, on: function(r, i, o) { + var l, f, g = function(T) { + var L; + return Zs(L = Go(T).call(T).split(/^|\s+/)).call(L, function(F) { + var U = "", q = Lu(F).call(F, "."); + return q >= 0 && (U = Da(F).call(F, q + 1), F = Da(F).call(F, 0, q)), { type: F, name: U }; + }); + }(r + ""), A = g.length; + if (!(arguments.length < 2)) { + for (b = i ? U3n : $3n, l = 0; l < A; ++l) + this.each(b(g[l], i, o)); + return this; + } + var b = this.node().__on; + if (b) { + for (var v, k = 0, _ = b.length; k < _; ++k) + for (l = 0, v = b[k]; l < A; ++l) + if ((f = g[l]).type === v.type && f.name === v.name) + return v.value; + } +}, dispatch: function(r, i) { + return this.each((typeof i == "function" ? j3n : H3n)(r, i)); +} }, FTt, KTt); +var rre = 0.7, Wge = 1 / rre, kG = "\\s*([+-]?\\d+)\\s*", sie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", LT = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", z3n = /^#([0-9a-f]{3,8})$/, G3n = new RegExp(At(Bkt = "^rgb\\(".concat(kG, ",").concat(kG, ",")).call(Bkt, kG, "\\)$")), X3n = new RegExp(At(Skt = "^rgb\\(".concat(LT, ",").concat(LT, ",")).call(Skt, LT, "\\)$")), W3n = new RegExp(At(Lkt = At(Ikt = "^rgba\\(".concat(kG, ",").concat(kG, ",")).call(Ikt, kG, ",")).call(Lkt, sie, "\\)$")), V3n = new RegExp(At(Mkt = At(Fkt = "^rgba\\(".concat(LT, ",").concat(LT, ",")).call(Fkt, LT, ",")).call(Mkt, sie, "\\)$")), q3n = new RegExp(At(Okt = "^hsl\\(".concat(sie, ",").concat(LT, ",")).call(Okt, LT, "\\)$")), Y3n = new RegExp(At(Dkt = At(Nkt = "^hsla\\(".concat(sie, ",").concat(LT, ",")).call(Nkt, LT, ",")).call(Dkt, sie, "\\)$")), Pkt = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 }; +function Rkt() { + return this.rgb().formatHex(); +} +function Qkt() { + return this.rgb().formatRgb(); +} +function h$(r) { + var i, o, l; + return r = Go(i = r + "").call(i).toLowerCase(), (o = z3n.exec(r)) ? (l = o[1].length, o = Ky(o[1], 16), l === 6 ? $kt(o) : l === 3 ? new Hy(o >> 8 & 15 | o >> 4 & 240, o >> 4 & 15 | 240 & o, (15 & o) << 4 | 15 & o, 1) : l === 8 ? Vge(o >> 24 & 255, o >> 16 & 255, o >> 8 & 255, (255 & o) / 255) : l === 4 ? Vge(o >> 12 & 15 | o >> 8 & 240, o >> 8 & 15 | o >> 4 & 240, o >> 4 & 15 | 240 & o, ((15 & o) << 4 | 15 & o) / 255) : null) : (o = G3n.exec(r)) ? new Hy(o[1], o[2], o[3], 1) : (o = X3n.exec(r)) ? new Hy(255 * o[1] / 100, 255 * o[2] / 100, 255 * o[3] / 100, 1) : (o = W3n.exec(r)) ? Vge(o[1], o[2], o[3], o[4]) : (o = V3n.exec(r)) ? Vge(255 * o[1] / 100, 255 * o[2] / 100, 255 * o[3] / 100, o[4]) : (o = q3n.exec(r)) ? jkt(o[1], o[2] / 100, o[3] / 100, 1) : (o = Y3n.exec(r)) ? jkt(o[1], o[2] / 100, o[3] / 100, o[4]) : Pkt.hasOwnProperty(r) ? $kt(Pkt[r]) : r === "transparent" ? new Hy(NaN, NaN, NaN, 0) : null; +} +function $kt(r) { + return new Hy(r >> 16 & 255, r >> 8 & 255, 255 & r, 1); +} +function Vge(r, i, o, l) { + return l <= 0 && (r = i = o = NaN), new Hy(r, i, o, l); +} +function GTt(r) { + return r instanceof t$ || (r = h$(r)), r ? new Hy((r = r.rgb()).r, r.g, r.b, r.opacity) : new Hy(); +} +function sNe(r, i, o, l) { + return arguments.length === 1 ? GTt(r) : new Hy(r, i, o, l ?? 1); +} +function Hy(r, i, o, l) { + this.r = +r, this.g = +i, this.b = +o, this.opacity = +l; +} +function Ukt() { + var r, i; + return At(r = At(i = "#".concat(YQ(this.r))).call(i, YQ(this.g))).call(r, YQ(this.b)); +} +function Hkt() { + var r, i, o, l, f = $pe(this.opacity); + return At(r = At(i = At(o = At(l = "".concat(f === 1 ? "rgb(" : "rgba(")).call(l, n$(this.r), ", ")).call(o, n$(this.g), ", ")).call(i, n$(this.b))).call(r, f === 1 ? ")" : ", ".concat(f, ")")); +} +function $pe(r) { + return isNaN(r) ? 1 : Math.max(0, Math.min(1, r)); +} +function n$(r) { + return Math.max(0, Math.min(255, Math.round(r) || 0)); +} +function YQ(r) { + return ((r = n$(r)) < 16 ? "0" : "") + r.toString(16); +} +function jkt(r, i, o, l) { + return l <= 0 ? r = i = o = NaN : o <= 0 || o >= 1 ? r = i = NaN : i <= 0 && (r = NaN), new N9(r, i, o, l); +} +function Kkt(r) { + if (r instanceof N9) + return new N9(r.h, r.s, r.l, r.opacity); + if (r instanceof t$ || (r = h$(r)), !r) + return new N9(); + if (r instanceof N9) + return r; + var i = (r = r.rgb()).r / 255, o = r.g / 255, l = r.b / 255, f = Math.min(i, o, l), g = Math.max(i, o, l), A = NaN, b = g - f, v = (g + f) / 2; + return b ? (A = i === g ? (o - l) / b + 6 * (o < l) : o === g ? (l - i) / b + 2 : (i - o) / b + 4, b /= v < 0.5 ? g + f : 2 - g - f, A *= 60) : b = v > 0 && v < 1 ? 0 : A, new N9(A, b, v, r.opacity); +} +function N9(r, i, o, l) { + this.h = +r, this.s = +i, this.l = +o, this.opacity = +l; +} +function zkt(r) { + return (r = (r || 0) % 360) < 0 ? r + 360 : r; +} +function qge(r) { + return Math.max(0, Math.min(1, r || 0)); +} +function UFe(r, i, o) { + return 255 * (r < 60 ? i + (o - i) * r / 60 : r < 180 ? o : r < 240 ? i + (o - i) * (240 - r) / 60 : i); +} +Cre(t$, h$, { copy: function(r) { + return lL(new this.constructor(), this, r); +}, displayable: function() { + return this.rgb().displayable(); +}, hex: Rkt, formatHex: Rkt, formatHex8: function() { + return this.rgb().formatHex8(); +}, formatHsl: function() { + return Kkt(this).formatHsl(); +}, formatRgb: Qkt, toString: Qkt }), Cre(Hy, sNe, Vme(t$, { brighter: function(r) { + return r = r == null ? Wge : Math.pow(Wge, r), new Hy(this.r * r, this.g * r, this.b * r, this.opacity); +}, darker: function(r) { + return r = r == null ? rre : Math.pow(rre, r), new Hy(this.r * r, this.g * r, this.b * r, this.opacity); +}, rgb: function() { + return this; +}, clamp: function() { + return new Hy(n$(this.r), n$(this.g), n$(this.b), $pe(this.opacity)); +}, displayable: function() { + return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1; +}, hex: Ukt, formatHex: Ukt, formatHex8: function() { + var r, i, o; + return At(r = At(i = At(o = "#".concat(YQ(this.r))).call(o, YQ(this.g))).call(i, YQ(this.b))).call(r, YQ(255 * (isNaN(this.opacity) ? 1 : this.opacity))); +}, formatRgb: Hkt, toString: Hkt })), Cre(N9, function(r, i, o, l) { + return arguments.length === 1 ? Kkt(r) : new N9(r, i, o, l ?? 1); +}, Vme(t$, { brighter: function(r) { + return r = r == null ? Wge : Math.pow(Wge, r), new N9(this.h, this.s, this.l * r, this.opacity); +}, darker: function(r) { + return r = r == null ? rre : Math.pow(rre, r), new N9(this.h, this.s, this.l * r, this.opacity); +}, rgb: function() { + var r = this.h % 360 + 360 * (this.h < 0), i = isNaN(r) || isNaN(this.s) ? 0 : this.s, o = this.l, l = o + (o < 0.5 ? o : 1 - o) * i, f = 2 * o - l; + return new Hy(UFe(r >= 240 ? r - 240 : r + 120, f, l), UFe(r, f, l), UFe(r < 120 ? r + 240 : r - 120, f, l), this.opacity); +}, clamp: function() { + return new N9(zkt(this.h), qge(this.s), qge(this.l), $pe(this.opacity)); +}, displayable: function() { + return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; +}, formatHsl: function() { + var r, i, o, l, f = $pe(this.opacity); + return At(r = At(i = At(o = At(l = "".concat(f === 1 ? "hsl(" : "hsla(")).call(l, zkt(this.h), ", ")).call(o, 100 * qge(this.s), "%, ")).call(i, 100 * qge(this.l), "%")).call(r, f === 1 ? ")" : ", ".concat(f, ")")); +} })); +var J3n = Math.PI / 180, Z3n = 180 / Math.PI, XTt = 0.96422, WTt = 1, VTt = 0.82521, qTt = 4 / 29, xG = 6 / 29, YTt = 3 * xG * xG, e4n = xG * xG * xG; +function JTt(r) { + if (r instanceof _T) + return new _T(r.l, r.a, r.b, r.opacity); + if (r instanceof rL) + return ZTt(r); + r instanceof Hy || (r = GTt(r)); + var i, o, l = zFe(r.r), f = zFe(r.g), g = zFe(r.b), A = HFe((0.2225045 * l + 0.7168786 * f + 0.0606169 * g) / WTt); + return l === f && f === g ? i = o = A : (i = HFe((0.4360747 * l + 0.3850649 * f + 0.1430804 * g) / XTt), o = HFe((0.0139322 * l + 0.0971045 * f + 0.7141733 * g) / VTt)), new _T(116 * A - 16, 500 * (i - A), 200 * (A - o), r.opacity); +} +function _T(r, i, o, l) { + this.l = +r, this.a = +i, this.b = +o, this.opacity = +l; +} +function HFe(r) { + return r > e4n ? Math.pow(r, 1 / 3) : r / YTt + qTt; +} +function jFe(r) { + return r > xG ? r * r * r : YTt * (r - qTt); +} +function KFe(r) { + return 255 * (r <= 31308e-7 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055); +} +function zFe(r) { + return (r /= 255) <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4); +} +function cNe(r, i, o, l) { + return arguments.length === 1 ? function(f) { + if (f instanceof rL) + return new rL(f.h, f.c, f.l, f.opacity); + if (f instanceof _T || (f = JTt(f)), f.a === 0 && f.b === 0) + return new rL(NaN, 0 < f.l && f.l < 100 ? 0 : NaN, f.l, f.opacity); + var g = Math.atan2(f.b, f.a) * Z3n; + return new rL(g < 0 ? g + 360 : g, Math.sqrt(f.a * f.a + f.b * f.b), f.l, f.opacity); + }(r) : new rL(r, i, o, l ?? 1); +} +function rL(r, i, o, l) { + this.h = +r, this.c = +i, this.l = +o, this.opacity = +l; +} +function ZTt(r) { + if (isNaN(r.h)) + return new _T(r.l, 0, 0, r.opacity); + var i = r.h * J3n; + return new _T(r.l, Math.cos(i) * r.c, Math.sin(i) * r.c, r.opacity); +} +Cre(_T, function(r, i, o, l) { + return arguments.length === 1 ? JTt(r) : new _T(r, i, o, l ?? 1); +}, Vme(t$, { brighter: function(r) { + return new _T(this.l + 18 * (r ?? 1), this.a, this.b, this.opacity); +}, darker: function(r) { + return new _T(this.l - 18 * (r ?? 1), this.a, this.b, this.opacity); +}, rgb: function() { + var r = (this.l + 16) / 116, i = isNaN(this.a) ? r : r + this.a / 500, o = isNaN(this.b) ? r : r - this.b / 200; + return new Hy(KFe(3.1338561 * (i = XTt * jFe(i)) - 1.6168667 * (r = WTt * jFe(r)) - 0.4906146 * (o = VTt * jFe(o))), KFe(-0.9787684 * i + 1.9161415 * r + 0.033454 * o), KFe(0.0719453 * i - 0.2289914 * r + 1.4052427 * o), this.opacity); +} })), Cre(rL, cNe, Vme(t$, { brighter: function(r) { + return new rL(this.h, this.c, this.l + 18 * (r ?? 1), this.opacity); +}, darker: function(r) { + return new rL(this.h, this.c, this.l - 18 * (r ?? 1), this.opacity); +}, rgb: function() { + return ZTt(this).rgb(); +} })); +var Wbe = function(r) { + return function() { + return r; + }; +}; +function eBt(r, i) { + return function(o) { + return r + o * i; + }; +} +function t4n(r) { + return (r = +r) == 1 ? _re : function(i, o) { + return o - i ? function(l, f, g) { + return l = Math.pow(l, g), f = Math.pow(f, g) - l, g = 1 / g, function(A) { + return Math.pow(l + A * f, g); + }; + }(i, o, r) : Wbe(isNaN(i) ? o : i); + }; +} +function _re(r, i) { + var o = i - r; + return o ? eBt(r, o) : Wbe(isNaN(r) ? i : r); +} +var qme = function r(i) { + var o = t4n(i); + function l(f, g) { + var A = o((f = sNe(f)).r, (g = sNe(g)).r), b = o(f.g, g.g), v = o(f.b, g.b), k = _re(f.opacity, g.opacity); + return function(_) { + return f.r = A(_), f.g = b(_), f.b = v(_), f.opacity = k(_), f + ""; + }; + } + return l.gamma = r, l; +}(1); +function n4n(r, i) { + i || (i = []); + var o, l = r ? Math.min(i.length, r.length) : 0, f = Da(i).call(i); + return function(g) { + for (o = 0; o < l; ++o) + f[o] = r[o] * (1 - g) + i[o] * g; + return f; + }; +} +function r4n(r, i) { + var o, l = i ? i.length : 0, f = r ? Math.min(l, r.length) : 0, g = new Array(f), A = new Array(l); + for (o = 0; o < f; ++o) + g[o] = pRe(r[o], i[o]); + for (; o < l; ++o) + A[o] = i[o]; + return function(b) { + for (o = 0; o < f; ++o) + A[o] = g[o](b); + return A; + }; +} +function i4n(r, i) { + var o = /* @__PURE__ */ new Date(); + return r = +r, i = +i, function(l) { + return o.setTime(r * (1 - l) + i * l), o; + }; +} +function F9(r, i) { + return r = +r, i = +i, function(o) { + return r * (1 - o) + i * o; + }; +} +function a4n(r, i) { + var o, l = {}, f = {}; + for (o in r !== null && Yl(r) === "object" || (r = {}), i !== null && Yl(i) === "object" || (i = {}), i) + o in r ? l[o] = pRe(r[o], i[o]) : f[o] = i[o]; + return function(g) { + for (o in l) + f[o] = l[o](g); + return f; + }; +} +var lNe = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, GFe = new RegExp(lNe.source, "g"); +function tBt(r, i) { + var o, l, f, g = lNe.lastIndex = GFe.lastIndex = 0, A = -1, b = [], v = []; + for (r += "", i += ""; (o = lNe.exec(r)) && (l = GFe.exec(i)); ) + (f = l.index) > g && (f = Da(i).call(i, g, f), b[A] ? b[A] += f : b[++A] = f), (o = o[0]) === (l = l[0]) ? b[A] ? b[A] += l : b[++A] = l : (b[++A] = null, v.push({ i: A, x: F9(o, l) })), g = GFe.lastIndex; + return g < i.length && (f = Da(i).call(i, g), b[A] ? b[A] += f : b[++A] = f), b.length < 2 ? v[0] ? /* @__PURE__ */ function(k) { + return function(_) { + return k(_) + ""; + }; + }(v[0].x) : /* @__PURE__ */ function(k) { + return function() { + return k; + }; + }(i) : (i = v.length, function(k) { + for (var _, T = 0; T < i; ++T) + b[(_ = v[T]).i] = _.x(k); + return b.join(""); + }); +} +function pRe(r, i) { + var o, l = Yl(i); + return i == null || l === "boolean" ? Wbe(i) : (l === "number" ? F9 : l === "string" ? (o = h$(i)) ? (i = o, qme) : tBt : i instanceof h$ ? qme : i instanceof Date ? i4n : function(f) { + return ArrayBuffer.isView(f) && !(f instanceof DataView); + }(i) ? n4n : kk(i) ? r4n : typeof i.valueOf != "function" && typeof i.toString != "function" || isNaN(i) ? a4n : F9)(r, i); +} +function o4n(r, i) { + return r = +r, i = +i, function(o) { + return Math.round(r * (1 - o) + i * o); + }; +} +var Yge, Gkt = 180 / Math.PI, uNe = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; +function nBt(r, i, o, l, f, g) { + var A, b, v; + return (A = Math.sqrt(r * r + i * i)) && (r /= A, i /= A), (v = r * o + i * l) && (o -= r * v, l -= i * v), (b = Math.sqrt(o * o + l * l)) && (o /= b, l /= b, v /= b), r * l < i * o && (r = -r, i = -i, v = -v, A = -A), { translateX: f, translateY: g, rotate: Math.atan2(i, r) * Gkt, skewX: Math.atan(v) * Gkt, scaleX: A, scaleY: b }; +} +function rBt(r, i, o, l) { + function f(g) { + return g.length ? g.pop() + " " : ""; + } + return function(g, A) { + var b = [], v = []; + return g = r(g), A = r(A), function(k, _, T, L, F, U) { + if (k !== T || _ !== L) { + var q = F.push("translate(", null, i, null, o); + U.push({ i: q - 4, x: F9(k, T) }, { i: q - 2, x: F9(_, L) }); + } else + (T || L) && F.push("translate(" + T + i + L + o); + }(g.translateX, g.translateY, A.translateX, A.translateY, b, v), function(k, _, T, L) { + k !== _ ? (k - _ > 180 ? _ += 360 : _ - k > 180 && (k += 360), L.push({ i: T.push(f(T) + "rotate(", null, l) - 2, x: F9(k, _) })) : _ && T.push(f(T) + "rotate(" + _ + l); + }(g.rotate, A.rotate, b, v), function(k, _, T, L) { + k !== _ ? L.push({ i: T.push(f(T) + "skewX(", null, l) - 2, x: F9(k, _) }) : _ && T.push(f(T) + "skewX(" + _ + l); + }(g.skewX, A.skewX, b, v), function(k, _, T, L, F, U) { + if (k !== T || _ !== L) { + var q = F.push(f(F) + "scale(", null, ",", null, ")"); + U.push({ i: q - 4, x: F9(k, T) }, { i: q - 2, x: F9(_, L) }); + } else + T === 1 && L === 1 || F.push(f(F) + "scale(" + T + "," + L + ")"); + }(g.scaleX, g.scaleY, A.scaleX, A.scaleY, b, v), g = A = null, function(k) { + for (var _, T = -1, L = v.length; ++T < L; ) + b[(_ = v[T]).i] = _.x(k); + return b.join(""); + }; + }; +} +var s4n = rBt(function(r) { + var i = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(r + ""); + return i.isIdentity ? uNe : nBt(i.a, i.b, i.c, i.d, i.e, i.f); +}, "px, ", "px)", "deg)"), c4n = rBt(function(r) { + return r == null ? uNe : (Yge || (Yge = document.createElementNS("http://www.w3.org/2000/svg", "g")), Yge.setAttribute("transform", r), (r = Yge.transform.baseVal.consolidate()) ? nBt((r = r.matrix).a, r.b, r.c, r.d, r.e, r.f) : uNe); +}, ", ", ")", ")"), Xkt, Upe, ire, l4n = /* @__PURE__ */ function(r) { + return function(i, o) { + var l = r((i = cNe(i)).h, (o = cNe(o)).h), f = _re(i.c, o.c), g = _re(i.l, o.l), A = _re(i.opacity, o.opacity); + return function(b) { + return i.h = l(b), i.c = f(b), i.l = g(b), i.opacity = A(b), i + ""; + }; + }; +}(function(r, i) { + var o = i - r; + return o ? eBt(r, o > 180 || o < -180 ? o - 360 * Math.round(o / 360) : o) : Wbe(isNaN(r) ? i : r); +}), uG = 0, are = 0, Lne = 0, iBt = 1e3, Yme = 0, r$ = 0, Vbe = 0, cie = (typeof performance > "u" ? "undefined" : Yl(performance)) === "object" && performance.now ? performance : Date, aBt = (typeof window > "u" ? "undefined" : Yl(window)) === "object" && window.requestAnimationFrame ? Bo(Xkt = window.requestAnimationFrame).call(Xkt, window) : function(r) { + lm(r, 17); +}; +function mRe() { + return r$ || (aBt(u4n), r$ = cie.now() + Vbe); +} +function u4n() { + r$ = 0; +} +function Jme() { + this._call = this._time = this._next = null; +} +function oBt(r, i, o) { + var l = new Jme(); + return l.restart(r, i, o), l; +} +function Wkt() { + r$ = (Yme = cie.now()) + Vbe, uG = are = 0; + try { + (function() { + mRe(), ++uG; + for (var r, i = Upe; i; ) + (r = r$ - i._time) >= 0 && i._call.call(void 0, r), i = i._next; + --uG; + })(); + } finally { + uG = 0, function() { + for (var r, i, o = Upe, l = 1 / 0; o; ) + o._call ? (l > o._time && (l = o._time), r = o, o = o._next) : (i = o._next, o._next = null, o = r ? r._next = i : Upe = i); + ire = r, hNe(l); + }(), r$ = 0; + } +} +function h4n() { + var r = cie.now(), i = r - Yme; + i > iBt && (Vbe -= i, Yme = r); +} +function hNe(r) { + uG || (are && (are = clearTimeout(are)), r - r$ > 24 ? (r < 1 / 0 && (are = lm(Wkt, r - cie.now() - Vbe)), Lne && (Lne = clearInterval(Lne))) : (Lne || (Yme = cie.now(), Lne = hTt(h4n, iBt)), uG = 1, aBt(Wkt))); +} +function Vkt(r, i, o) { + var l = new Jme(); + return i = i == null ? 0 : +i, l.restart(function(f) { + l.stop(), r(f + i); + }, i, o), l; +} +Jme.prototype = oBt.prototype = { constructor: Jme, restart: function(r, i, o) { + if (typeof r != "function") + throw new TypeError("callback is not a function"); + o = (o == null ? mRe() : +o) + (i == null ? 0 : +i), this._next || ire === this || (ire ? ire._next = this : Upe = this, ire = this), this._call = r, this._time = o, hNe(); +}, stop: function() { + this._call && (this._call = null, this._time = 1 / 0, hNe()); +} }; +var f4n = MTt("start", "end", "cancel", "interrupt"), d4n = [], sBt = 0, qkt = 1, fNe = 2, Hpe = 3, Ykt = 4, dNe = 5, jpe = 6; +function Kpe(r, i, o, l, f, g) { + var A = r.__transition; + if (A) { + if (o in A) + return; + } else + r.__transition = {}; + (function(b, v, k) { + var _, T = b.__transition; + function L(Z) { + k.state = qkt, k.timer.restart(F, k.delay, k.time), k.delay <= Z && F(Z - k.delay); + } + function F(Z) { + var R, J, he, Y; + if (k.state !== qkt) + return q(); + for (R in T) + if ((Y = T[R]).name === k.name) { + if (Y.state === Hpe) + return Vkt(F); + Y.state === Ykt ? (Y.state = jpe, Y.timer.stop(), Y.on.call("interrupt", b, b.__data__, Y.index, Y.group), delete T[R]) : +R < v && (Y.state = jpe, Y.timer.stop(), Y.on.call("cancel", b, b.__data__, Y.index, Y.group), delete T[R]); + } + if (Vkt(function() { + k.state === Hpe && (k.state = Ykt, k.timer.restart(U, k.delay, k.time), U(Z)); + }), k.state = fNe, k.on.call("start", b, b.__data__, k.index, k.group), k.state === fNe) { + for (k.state = Hpe, _ = new Array(he = k.tween.length), R = 0, J = -1; R < he; ++R) + (Y = k.tween[R].value.call(b, b.__data__, k.index, k.group)) && (_[++J] = Y); + _.length = J + 1; + } + } + function U(Z) { + for (var R = Z < k.duration ? k.ease.call(null, Z / k.duration) : (k.timer.restart(q), k.state = dNe, 1), J = -1, he = _.length; ++J < he; ) + _[J].call(b, R); + k.state === dNe && (k.on.call("end", b, b.__data__, k.index, k.group), q()); + } + function q() { + for (var Z in k.state = jpe, k.timer.stop(), delete T[v], T) + return; + delete b.__transition; + } + T[v] = k, k.timer = oBt(L, 0, k.time); + })(r, o, { name: i, index: l, group: f, on: f4n, tween: d4n, time: g.time, delay: g.delay, duration: g.duration, ease: g.ease, timer: null, state: sBt }); +} +function bRe(r, i) { + var o = M9(r, i); + if (o.state > sBt) + throw new Error("too late; already scheduled"); + return o; +} +function ET(r, i) { + var o = M9(r, i); + if (o.state > Hpe) + throw new Error("too late; already running"); + return o; +} +function M9(r, i) { + var o = r.__transition; + if (!o || !(o = o[i])) + throw new Error("transition not found"); + return o; +} +function A4n(r, i) { + var o, l; + return function() { + var f = ET(this, r), g = f.tween; + if (g !== o) { + for (var A = 0, b = (l = o = g).length; A < b; ++A) + if (l[A].name === i) { + l = Da(l).call(l), gk(l).call(l, A, 1); + break; + } + } + f.tween = l; + }; +} +function g4n(r, i, o) { + var l, f; + if (typeof o != "function") + throw new Error(); + return function() { + var g = ET(this, r), A = g.tween; + if (A !== l) { + var b; + f = Da(b = l = A).call(b); + for (var v = { name: i, value: o }, k = 0, _ = f.length; k < _; ++k) + if (f[k].name === i) { + f[k] = v; + break; + } + k === _ && f.push(v); + } + g.tween = f; + }; +} +function XFe(r, i, o) { + var l = r._id; + return r.each(function() { + var f = ET(this, l); + (f.value || (f.value = {}))[i] = o.apply(this, arguments); + }), function(f) { + return M9(f, l).value[i]; + }; +} +function Jkt(r, i) { + var o; + return (typeof i == "number" ? F9 : i instanceof h$ ? qme : (o = h$(i)) ? (i = o, qme) : tBt)(r, i); +} +function p4n(r) { + return function() { + this.removeAttribute(r); + }; +} +function m4n(r) { + return function() { + this.removeAttributeNS(r.space, r.local); + }; +} +function b4n(r, i, o) { + var l, f, g = o + ""; + return function() { + var A = this.getAttribute(r); + return A === g ? null : A === l ? f : f = i(l = A, o); + }; +} +function v4n(r, i, o) { + var l, f, g = o + ""; + return function() { + var A = this.getAttributeNS(r.space, r.local); + return A === g ? null : A === l ? f : f = i(l = A, o); + }; +} +function y4n(r, i, o) { + var l, f, g; + return function() { + var A, b, v = o(this); + if (v != null) + return (A = this.getAttribute(r)) === (b = v + "") ? null : A === l && b === f ? g : (f = b, g = i(l = A, v)); + this.removeAttribute(r); + }; +} +function w4n(r, i, o) { + var l, f, g; + return function() { + var A, b, v = o(this); + if (v != null) + return (A = this.getAttributeNS(r.space, r.local)) === (b = v + "") ? null : A === l && b === f ? g : (f = b, g = i(l = A, v)); + this.removeAttributeNS(r.space, r.local); + }; +} +function k4n(r, i) { + var o, l; + function f() { + var g = i.apply(this, arguments); + return g !== l && (o = (l = g) && /* @__PURE__ */ function(A, b) { + return function(v) { + this.setAttributeNS(A.space, A.local, b.call(this, v)); + }; + }(r, g)), o; + } + return f._value = i, f; +} +function x4n(r, i) { + var o, l; + function f() { + var g = i.apply(this, arguments); + return g !== l && (o = (l = g) && /* @__PURE__ */ function(A, b) { + return function(v) { + this.setAttribute(A, b.call(this, v)); + }; + }(r, g)), o; + } + return f._value = i, f; +} +function C4n(r, i) { + return function() { + bRe(this, r).delay = +i.apply(this, arguments); + }; +} +function _4n(r, i) { + return i = +i, function() { + bRe(this, r).delay = i; + }; +} +function E4n(r, i) { + return function() { + ET(this, r).duration = +i.apply(this, arguments); + }; +} +function T4n(r, i) { + return i = +i, function() { + ET(this, r).duration = i; + }; +} +function B4n(r, i, o) { + var l, f, g = function(A) { + var b, v; + return yG(b = Go(v = A + "").call(v).split(/^|\s+/)).call(b, function(k) { + var _ = Lu(k).call(k, "."); + return _ >= 0 && (k = Da(k).call(k, 0, _)), !k || k === "start"; + }); + }(i) ? bRe : ET; + return function() { + var A = g(this, r), b = A.on; + b !== l && (f = (l = b).copy()).on(i, o), A.on = f; + }; +} +var S4n = oie.prototype.constructor; +function Zkt(r) { + return function() { + this.style.removeProperty(r); + }; +} +var L4n = 0; +function JS(r, i, o, l) { + this._groups = r, this._parents = i, this._name = o, this._id = l; +} +function cBt() { + return ++L4n; +} +var zS = oie.prototype; +JS.prototype = Ui({ constructor: JS, select: function(r) { + var i = this._name, o = this._id; + typeof r != "function" && (r = oNe(r)); + for (var l = this._groups, f = l.length, g = new Array(f), A = 0; A < f; ++A) + for (var b, v, k = l[A], _ = k.length, T = g[A] = new Array(_), L = 0; L < _; ++L) + (b = k[L]) && (v = r.call(b, b.__data__, L, k)) && ("__data__" in b && (v.__data__ = b.__data__), T[L] = v, Kpe(T[L], i, o, L, T, M9(b, o))); + return new JS(g, this._parents, i, o); +}, selectAll: function(r) { + var i = this._name, o = this._id; + typeof r != "function" && (r = DTt(r)); + for (var l = this._groups, f = l.length, g = [], A = [], b = 0; b < f; ++b) + for (var v, k = l[b], _ = k.length, T = 0; T < _; ++T) + if (v = k[T]) { + for (var L, F = r.call(v, v.__data__, T, k), U = M9(v, o), q = 0, Z = F.length; q < Z; ++q) + (L = F[q]) && Kpe(L, i, o, q, F, U); + g.push(F), A.push(v); + } + return new JS(g, A, i, o); +}, selectChild: zS.selectChild, selectChildren: zS.selectChildren, filter: function(r) { + typeof r != "function" && (r = NTt(r)); + for (var i = this._groups, o = i.length, l = new Array(o), f = 0; f < o; ++f) + for (var g, A = i[f], b = A.length, v = l[f] = [], k = 0; k < b; ++k) + (g = A[k]) && r.call(g, g.__data__, k, A) && v.push(g); + return new JS(l, this._parents, this._name, this._id); +}, merge: function(r) { + if (r._id !== this._id) + throw new Error(); + for (var i = this._groups, o = r._groups, l = i.length, f = o.length, g = Math.min(l, f), A = new Array(l), b = 0; b < g; ++b) + for (var v, k = i[b], _ = o[b], T = k.length, L = A[b] = new Array(T), F = 0; F < T; ++F) + (v = k[F] || _[F]) && (L[F] = v); + for (; b < l; ++b) + A[b] = i[b]; + return new JS(A, this._parents, this._name, this._id); +}, selection: function() { + return new S4n(this._groups, this._parents); +}, transition: function() { + for (var r = this._name, i = this._id, o = cBt(), l = this._groups, f = l.length, g = 0; g < f; ++g) + for (var A, b = l[g], v = b.length, k = 0; k < v; ++k) + if (A = b[k]) { + var _ = M9(A, i); + Kpe(A, r, o, k, b, { time: _.time + _.delay + _.duration, delay: 0, duration: _.duration, ease: _.ease }); + } + return new JS(l, this._parents, r, o); +}, call: zS.call, nodes: zS.nodes, node: zS.node, size: zS.size, empty: zS.empty, each: zS.each, on: function(r, i) { + var o = this._id; + return arguments.length < 2 ? M9(this.node(), o).on.on(r) : this.each(B4n(o, r, i)); +}, attr: function(r, i) { + var o = Xme(r), l = o === "transform" ? c4n : Jkt; + return this.attrTween(r, typeof i == "function" ? (o.local ? w4n : y4n)(o, l, XFe(this, "attr." + r, i)) : i == null ? (o.local ? m4n : p4n)(o) : (o.local ? v4n : b4n)(o, l, i)); +}, attrTween: function(r, i) { + var o = "attr." + r; + if (arguments.length < 2) + return (o = this.tween(o)) && o._value; + if (i == null) + return this.tween(o, null); + if (typeof i != "function") + throw new Error(); + var l = Xme(r); + return this.tween(o, (l.local ? k4n : x4n)(l, i)); +}, style: function(r, i, o) { + var l = (r += "") == "transform" ? s4n : Jkt; + return i == null ? this.styleTween(r, /* @__PURE__ */ function(f, g) { + var A, b, v; + return function() { + var k = rG(this, f), _ = (this.style.removeProperty(f), rG(this, f)); + return k === _ ? null : k === A && _ === b ? v : v = g(A = k, b = _); + }; + }(r, l)).on("end.style." + r, Zkt(r)) : typeof i == "function" ? this.styleTween(r, /* @__PURE__ */ function(f, g, A) { + var b, v, k; + return function() { + var _ = rG(this, f), T = A(this), L = T + ""; + return T == null && (this.style.removeProperty(f), L = T = rG(this, f)), _ === L ? null : _ === b && L === v ? k : (v = L, k = g(b = _, T)); + }; + }(r, l, XFe(this, "style." + r, i))).each(function(f, g) { + var A, b, v, k, _ = "style." + g, T = "end." + _; + return function() { + var L = ET(this, f), F = L.on, U = L.value[_] == null ? k || (k = Zkt(g)) : void 0; + F === A && v === U || (b = (A = F).copy()).on(T, v = U), L.on = b; + }; + }(this._id, r)) : this.styleTween(r, function(f, g, A) { + var b, v, k = A + ""; + return function() { + var _ = rG(this, f); + return _ === k ? null : _ === b ? v : v = g(b = _, A); + }; + }(r, l, i), o).on("end.style." + r, null); +}, styleTween: function(r, i, o) { + var l = "style." + (r += ""); + if (arguments.length < 2) + return (l = this.tween(l)) && l._value; + if (i == null) + return this.tween(l, null); + if (typeof i != "function") + throw new Error(); + return this.tween(l, function(f, g, A) { + var b, v; + function k() { + var _ = g.apply(this, arguments); + return _ !== v && (b = (v = _) && /* @__PURE__ */ function(T, L, F) { + return function(U) { + this.style.setProperty(T, L.call(this, U), F); + }; + }(f, _, A)), b; + } + return k._value = g, k; + }(r, i, o ?? "")); +}, text: function(r) { + return this.tween("text", typeof r == "function" ? /* @__PURE__ */ function(i) { + return function() { + var o = i(this); + this.textContent = o ?? ""; + }; + }(XFe(this, "text", r)) : /* @__PURE__ */ function(i) { + return function() { + this.textContent = i; + }; + }(r == null ? "" : r + "")); +}, textTween: function(r) { + var i = "text"; + if (arguments.length < 1) + return (i = this.tween(i)) && i._value; + if (r == null) + return this.tween(i, null); + if (typeof r != "function") + throw new Error(); + return this.tween(i, function(o) { + var l, f; + function g() { + var A = o.apply(this, arguments); + return A !== f && (l = (f = A) && /* @__PURE__ */ function(b) { + return function(v) { + this.textContent = b.call(this, v); + }; + }(A)), l; + } + return g._value = o, g; + }(r)); +}, remove: function() { + return this.on("end.remove", /* @__PURE__ */ function(r) { + return function() { + var i = this.parentNode; + for (var o in this.__transition) + if (+o !== r) + return; + i && i.removeChild(this); + }; + }(this._id)); +}, tween: function(r, i) { + var o = this._id; + if (r += "", arguments.length < 2) { + for (var l, f = M9(this.node(), o).tween, g = 0, A = f.length; g < A; ++g) + if ((l = f[g]).name === r) + return l.value; + return null; + } + return this.each((i == null ? A4n : g4n)(o, r, i)); +}, delay: function(r) { + var i = this._id; + return arguments.length ? this.each((typeof r == "function" ? C4n : _4n)(i, r)) : M9(this.node(), i).delay; +}, duration: function(r) { + var i = this._id; + return arguments.length ? this.each((typeof r == "function" ? E4n : T4n)(i, r)) : M9(this.node(), i).duration; +}, ease: function(r) { + var i = this._id; + return arguments.length ? this.each(function(o, l) { + if (typeof l != "function") + throw new Error(); + return function() { + ET(this, o).ease = l; + }; + }(i, r)) : M9(this.node(), i).ease; +}, easeVarying: function(r) { + if (typeof r != "function") + throw new Error(); + return this.each(/* @__PURE__ */ function(i, o) { + return function() { + var l = o.apply(this, arguments); + if (typeof l != "function") + throw new Error(); + ET(this, i).ease = l; + }; + }(this._id, r)); +}, end: function() { + var r, i, o = this, l = o._id, f = o.size(); + return new lRe(function(g, A) { + var b = { value: A }, v = { value: function() { + --f == 0 && g(); + } }; + o.each(function() { + var k = ET(this, l), _ = k.on; + _ !== r && ((i = (r = _).copy())._.cancel.push(b), i._.interrupt.push(b), i._.end.push(v)), k.on = i; + }), f === 0 && g(); + }); +} }, FTt, QO(zS)); +var ext, txt, nxt, I4n = { time: null, delay: 0, duration: 250, ease: function(r) { + return ((r *= 2) <= 1 ? r * r * r : (r -= 2) * r * r + 2) / 2; +} }; +function M4n(r, i) { + for (var o; !(o = r.__transition) || !(o = o[i]); ) + if (!(r = r.parentNode)) + throw new Error("transition ".concat(i, " not found")); + return o; +} +function WFe(r) { + return { type: r }; +} +oie.prototype.interrupt = function(r) { + return this.each(function() { + (function(i, o) { + var l, f, g, A = i.__transition, b = !0; + if (A) { + for (g in o = o == null ? null : o + "", A) + (l = A[g]).name === o ? (f = l.state > fNe && l.state < dNe, l.state = jpe, l.timer.stop(), l.on.call(f ? "interrupt" : "cancel", i, i.__data__, l.index, l.group), delete A[g]) : b = !1; + b && delete i.__transition; + } + })(this, r); + }); +}, oie.prototype.transition = function(r) { + var i, o; + r instanceof JS ? (i = r._id, r = r._name) : (i = cBt(), (o = I4n).time = mRe(), r = r == null ? null : r + ""); + for (var l = this._groups, f = l.length, g = 0; g < f; ++g) + for (var A, b = l[g], v = b.length, k = 0; k < v; ++k) + (A = b[k]) && Kpe(A, r, i, k, b, o || M4n(A, i)); + return new JS(l, this._parents, r, i); +}, Zs(ext = ["w", "e"]).call(ext, WFe), Zs(txt = ["n", "s"]).call(txt, WFe), Zs(nxt = ["n", "w", "e", "s", "nw", "ne", "sw", "se"]).call(nxt, WFe); +var ANe = Math.PI, gNe = 2 * ANe, RQ = 1e-6, F4n = gNe - RQ; +function pNe() { + this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; +} +function vRe() { + return new pNe(); +} +pNe.prototype = vRe.prototype = { constructor: pNe, moveTo: function(r, i) { + this._ += "M" + (this._x0 = this._x1 = +r) + "," + (this._y0 = this._y1 = +i); +}, closePath: function() { + this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z"); +}, lineTo: function(r, i) { + this._ += "L" + (this._x1 = +r) + "," + (this._y1 = +i); +}, quadraticCurveTo: function(r, i, o, l) { + this._ += "Q" + +r + "," + +i + "," + (this._x1 = +o) + "," + (this._y1 = +l); +}, bezierCurveTo: function(r, i, o, l, f, g) { + this._ += "C" + +r + "," + +i + "," + +o + "," + +l + "," + (this._x1 = +f) + "," + (this._y1 = +g); +}, arcTo: function(r, i, o, l, f) { + r = +r, i = +i, o = +o, l = +l, f = +f; + var g = this._x1, A = this._y1, b = o - r, v = l - i, k = g - r, _ = A - i, T = k * k + _ * _; + if (f < 0) + throw new Error("negative radius: " + f); + if (this._x1 === null) + this._ += "M" + (this._x1 = r) + "," + (this._y1 = i); + else if (T > RQ) + if (Math.abs(_ * b - v * k) > RQ && f) { + var L = o - g, F = l - A, U = b * b + v * v, q = L * L + F * F, Z = Math.sqrt(U), R = Math.sqrt(T), J = f * Math.tan((ANe - Math.acos((U + T - q) / (2 * Z * R))) / 2), he = J / R, Y = J / Z; + Math.abs(he - 1) > RQ && (this._ += "L" + (r + he * k) + "," + (i + he * _)), this._ += "A" + f + "," + f + ",0,0," + +(_ * L > k * F) + "," + (this._x1 = r + Y * b) + "," + (this._y1 = i + Y * v); + } else + this._ += "L" + (this._x1 = r) + "," + (this._y1 = i); +}, arc: function(r, i, o, l, f, g) { + r = +r, i = +i, g = !!g; + var A = (o = +o) * Math.cos(l), b = o * Math.sin(l), v = r + A, k = i + b, _ = 1 ^ g, T = g ? l - f : f - l; + if (o < 0) + throw new Error("negative radius: " + o); + this._x1 === null ? this._ += "M" + v + "," + k : (Math.abs(this._x1 - v) > RQ || Math.abs(this._y1 - k) > RQ) && (this._ += "L" + v + "," + k), o && (T < 0 && (T = T % gNe + gNe), T > F4n ? this._ += "A" + o + "," + o + ",0,1," + _ + "," + (r - A) + "," + (i - b) + "A" + o + "," + o + ",0,1," + _ + "," + (this._x1 = v) + "," + (this._y1 = k) : T > RQ && (this._ += "A" + o + "," + o + ",0," + +(T >= ANe) + "," + _ + "," + (this._x1 = r + o * Math.cos(f)) + "," + (this._y1 = i + o * Math.sin(f)))); +}, rect: function(r, i, o, l) { + this._ += "M" + (this._x0 = this._x1 = +r) + "," + (this._y0 = this._y1 = +i) + "h" + +o + "v" + +l + "h" + -o + "Z"; +}, toString: function() { + return this._; +} }; +var rxt = Math.hypot, O4n = Math.abs, D4n = Math.sqrt, N4n = !!rxt && rxt(1 / 0, NaN) !== 1 / 0; +qa({ target: "Math", stat: !0, arity: 2, forced: N4n }, { hypot: function(r, i) { + for (var o, l, f = 0, g = 0, A = arguments.length, b = 0; g < A; ) + b < (o = O4n(arguments[g++])) ? (f = f * (l = b / o) * l + 1, b = o) : f += o > 0 ? (l = o / b) * l : o; + return b === 1 / 0 ? 1 / 0 : b * D4n(f); +} }), ql.Math.hypot; +function Zme(r, i) { + var o; + if ((l = Lu(o = r = i ? r.toExponential(i - 1) : r.toExponential()).call(o, "e")) < 0) + return null; + var l, f = Da(r).call(r, 0, l); + return [f.length > 1 ? f[0] + Da(f).call(f, 2) : f, +Da(r).call(r, l + 1)]; +} +function iG(r) { + return (r = Zme(Math.abs(r))) ? r[1] : NaN; +} +var lBt, P4n = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; +function ebe(r) { + var i, o; + if (!(o = P4n.exec(r))) + throw new Error("invalid format: " + r); + return new mNe({ fill: o[1], align: o[2], sign: o[3], symbol: o[4], zero: o[5], width: o[6], comma: o[7], precision: o[8] && Da(i = o[8]).call(i, 1), trim: o[9], type: o[10] }); +} +function mNe(r) { + this.fill = UG(r) === void 0 ? " " : UG(r) + "", this.align = r.align === void 0 ? ">" : r.align + "", this.sign = r.sign === void 0 ? "-" : r.sign + "", this.symbol = r.symbol === void 0 ? "" : r.symbol + "", this.zero = !!r.zero, this.width = r.width === void 0 ? void 0 : +r.width, this.comma = !!r.comma, this.precision = r.precision === void 0 ? void 0 : +r.precision, this.trim = !!Go(r), this.type = r.type === void 0 ? "" : r.type + ""; +} +function ixt(r, i) { + var o = Zme(r, i); + if (!o) + return r + ""; + var l = o[0], f = o[1]; + return f < 0 ? "0." + new Array(-f).join("0") + l : l.length > f + 1 ? Da(l).call(l, 0, f + 1) + "." + Da(l).call(l, f + 1) : l + new Array(f - l.length + 2).join("0"); +} +ebe.prototype = mNe.prototype, mNe.prototype.toString = function() { + return UG(this) + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, 0 | this.precision)) + (Go(this) ? "~" : "") + this.type; +}; +var axt = { "%": function(r, i) { + return (100 * r).toFixed(i); +}, b: function(r) { + return Math.round(r).toString(2); +}, c: function(r) { + return r + ""; +}, d: function(r) { + return Math.abs(r = Math.round(r)) >= 1e21 ? r.toLocaleString("en").replace(/,/g, "") : r.toString(10); +}, e: function(r, i) { + return r.toExponential(i); +}, f: function(r, i) { + return r.toFixed(i); +}, g: function(r, i) { + return r.toPrecision(i); +}, o: function(r) { + return Math.round(r).toString(8); +}, p: function(r, i) { + return ixt(100 * r, i); +}, r: ixt, s: function(r, i) { + var o = Zme(r, i); + if (!o) + return r + ""; + var l = o[0], f = o[1], g = f - (lBt = 3 * Math.max(-8, Math.min(8, Math.floor(f / 3)))) + 1, A = l.length; + return g === A ? l : g > A ? l + new Array(g - A + 1).join("0") : g > 0 ? Da(l).call(l, 0, g) + "." + Da(l).call(l, g) : "0." + new Array(1 - g).join("0") + Zme(r, Math.max(0, i + g - 1))[0]; +}, X: function(r) { + return Math.round(r).toString(16).toUpperCase(); +}, x: function(r) { + return Math.round(r).toString(16); +} }; +function oxt(r) { + return r; +} +var VFe, uBt, hBt, sxt = Zs(Array.prototype), cxt = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; +function R4n(r) { + var i, o, l = r.grouping === void 0 || r.thousands === void 0 ? oxt : (i = sxt.call(r.grouping, Number), o = r.thousands + "", function(L, F) { + for (var U = L.length, q = [], Z = 0, R = i[0], J = 0; U > 0 && R > 0 && (J + R + 1 > F && (R = Math.max(1, F - J)), q.push(L.substring(U -= R, U + R)), !((J += R + 1) > F)); ) + R = i[Z = (Z + 1) % i.length]; + return TL(q).call(q).join(o); + }), f = r.currency === void 0 ? "" : r.currency[0] + "", g = r.currency === void 0 ? "" : r.currency[1] + "", A = r.decimal === void 0 ? "." : r.decimal + "", b = r.numerals === void 0 ? oxt : /* @__PURE__ */ function(L) { + return function(F) { + return F.replace(/[0-9]/g, function(U) { + return L[+U]; + }); + }; + }(sxt.call(r.numerals, String)), v = r.percent === void 0 ? "%" : r.percent + "", k = r.minus === void 0 ? "−" : r.minus + "", _ = r.nan === void 0 ? "NaN" : r.nan + ""; + function T(L) { + L = ebe(L); + var F = UG(L), U = L.align, q = L.sign, Z = L.symbol, R = L.zero, J = L.width, he = L.comma, Y = L.precision, ue = Go(L), le = L.type; + le === "n" ? (he = !0, le = "g") : axt[le] || (Y === void 0 && (Y = 12), ue = !0, le = "g"), (R || F === "0" && U === "=") && (R = !0, F = "0", U = "="); + var be = Z === "$" ? f : Z === "#" && /[boxX]/.test(le) ? "0" + le.toLowerCase() : "", ke = Z === "$" ? g : /[%p]/.test(le) ? v : "", de = axt[le], Te = /[defgprs%]/.test(le); + function xe(ie) { + var Be, te, Me, ve = be, ge = ke; + if (le === "c") + ge = de(ie) + ge, ie = ""; + else { + var Je = (ie = +ie) < 0 || 1 / ie < 0; + if (ie = isNaN(ie) ? _ : de(Math.abs(ie), Y), ue && (ie = function(gt) { + e: + for (var je, Qe = gt.length, kt = 1, Wt = -1; kt < Qe; ++kt) + switch (gt[kt]) { + case ".": + Wt = je = kt; + break; + case "0": + Wt === 0 && (Wt = kt), je = kt; + break; + default: + if (!+gt[kt]) + break e; + Wt > 0 && (Wt = 0); + } + return Wt > 0 ? Da(gt).call(gt, 0, Wt) + Da(gt).call(gt, je + 1) : gt; + }(ie)), Je && +ie == 0 && q !== "+" && (Je = !1), ve = (Je ? q === "(" ? q : k : q === "-" || q === "(" ? "" : q) + ve, ge = (le === "s" ? cxt[8 + lBt / 3] : "") + ge + (Je && q === "(" ? ")" : ""), Te) { + for (Be = -1, te = ie.length; ++Be < te; ) + if (48 > (Me = ie.charCodeAt(Be)) || Me > 57) { + ge = (Me === 46 ? A + Da(ie).call(ie, Be + 1) : Da(ie).call(ie, Be)) + ge, ie = Da(ie).call(ie, 0, Be); + break; + } + } + } + he && !R && (ie = l(ie, 1 / 0)); + var ot = ve.length + ie.length + ge.length, bt = ot < J ? new Array(J - ot + 1).join(F) : ""; + switch (he && R && (ie = l(bt + ie, bt.length ? J - ge.length : 1 / 0), bt = ""), U) { + case "<": + ie = ve + ie + ge + bt; + break; + case "=": + ie = ve + bt + ie + ge; + break; + case "^": + ie = Da(bt).call(bt, 0, ot = bt.length >> 1) + ve + ie + ge + Da(bt).call(bt, ot); + break; + default: + ie = bt + ve + ie + ge; + } + return b(ie); + } + return Y = Y === void 0 ? 6 : /[gprs]/.test(le) ? Math.max(1, Math.min(21, Y)) : Math.max(0, Math.min(20, Y)), xe.toString = function() { + return L + ""; + }, xe; + } + return { format: T, formatPrefix: function(L, F) { + var U = T(((L = ebe(L)).type = "f", L)), q = 3 * Math.max(-8, Math.min(8, Math.floor(iG(F) / 3))), Z = Math.pow(10, -q), R = cxt[8 + q / 3]; + return function(J) { + return U(Z * J) + R; + }; + } }; +} +function yRe(r, i) { + switch (arguments.length) { + case 0: + break; + case 1: + this.range(r); + break; + default: + this.range(i).domain(r); + } + return this; +} +function Q4n(r, i) { + var o = dX !== void 0 && QO(r) || r["@@iterator"]; + if (!o) { + if (kk(r) || (o = function(v, k) { + var _; + if (v) { + if (typeof v == "string") + return lxt(v, k); + var T = Da(_ = Object.prototype.toString.call(v)).call(_, 8, -1); + if (T === "Object" && v.constructor && (T = v.constructor.name), T === "Map" || T === "Set") + return Su(v); + if (T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)) + return lxt(v, k); + } + }(r)) || i && r && typeof r.length == "number") { + o && (r = o); + var l = 0, f = function() { + }; + return { s: f, n: function() { + return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; + }, e: function(v) { + throw v; + }, f }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var g, A = !0, b = !1; + return { s: function() { + o = o.call(r); + }, n: function() { + var v = o.next(); + return A = v.done, v; + }, e: function(v) { + b = !0, g = v; + }, f: function() { + try { + A || o.return == null || o.return(); + } finally { + if (b) + throw g; + } + } }; +} +function lxt(r, i) { + (i == null || i > r.length) && (i = r.length); + for (var o = 0, l = new Array(i); o < i; o++) + l[o] = r[o]; + return l; +} +VFe = R4n({ thousands: ",", grouping: [3], currency: ["$", ""] }), uBt = VFe.format, hBt = VFe.formatPrefix; +var uxt = dX("implicit"); +function fBt() { + var r = new ckt(), i = [], o = [], l = uxt; + function f(g) { + var A = r.get(g); + if (A === void 0) { + if (l !== uxt) + return l; + r.set(g, A = i.push(g) - 1); + } + return o[A % o.length]; + } + return f.domain = function(g) { + if (!arguments.length) + return Da(i).call(i); + i = [], r = new ckt(); + var A, b = Q4n(g); + try { + for (b.s(); !(A = b.n()).done; ) { + var v = A.value; + r.has(v) || r.set(v, i.push(v) - 1); + } + } catch (k) { + b.e(k); + } finally { + b.f(); + } + return f; + }, f.range = function(g) { + return arguments.length ? (o = Su(g), f) : Da(o).call(o); + }, f.unknown = function(g) { + return arguments.length ? (l = g, f) : l; + }, f.copy = function() { + return fBt(i, o).unknown(l); + }, yRe.apply(f, arguments), f; +} +function $4n(r) { + return +r; +} +var hxt = [0, 1]; +function hG(r) { + return r; +} +function bNe(r, i) { + return (i -= r = +r) ? function(o) { + return (o - r) / i; + } : /* @__PURE__ */ function(o) { + return function() { + return o; + }; + }(isNaN(i) ? NaN : 0.5); +} +function U4n(r, i, o) { + var l = r[0], f = r[1], g = i[0], A = i[1]; + return f < l ? (l = bNe(f, l), g = o(A, g)) : (l = bNe(l, f), g = o(g, A)), function(b) { + return g(l(b)); + }; +} +function H4n(r, i, o) { + var l, f, g = Math.min(r.length, i.length) - 1, A = new Array(g), b = new Array(g), v = -1; + for (r[g] < r[0] && (r = TL(l = Da(r).call(r)).call(l), i = TL(f = Da(i).call(i)).call(f)); ++v < g; ) + A[v] = bNe(r[v], r[v + 1]), b[v] = o(i[v], i[v + 1]); + return function(k) { + var _ = Bwn(r, k, 1, g) - 1; + return b[_](A[_](k)); + }; +} +function dBt(r, i) { + return i.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown()); +} +function j4n() { + var r, i, o, l, f, g, A = hxt, b = hxt, v = pRe, k = hG; + function _() { + var L, F, U, q = Math.min(A.length, b.length); + return k !== hG && (L = A[0], F = A[q - 1], L > F && (U = L, L = F, F = U), k = function(Z) { + return Math.max(L, Math.min(F, Z)); + }), l = q > 2 ? H4n : U4n, f = g = null, T; + } + function T(L) { + return L == null || isNaN(L = +L) ? o : (f || (f = l(Zs(A).call(A, r), b, v)))(r(k(L))); + } + return T.invert = function(L) { + return k(i((g || (g = l(b, Zs(A).call(A, r), F9)))(L))); + }, T.domain = function(L) { + return arguments.length ? (A = Su(L, $4n), _()) : Da(A).call(A); + }, T.range = function(L) { + return arguments.length ? (b = Su(L), _()) : Da(b).call(b); + }, T.rangeRound = function(L) { + return b = Su(L), v = o4n, _(); + }, T.clamp = function(L) { + return arguments.length ? (k = !!L || hG, _()) : k !== hG; + }, T.interpolate = function(L) { + return arguments.length ? (v = L, _()) : v; + }, T.unknown = function(L) { + return arguments.length ? (o = L, T) : o; + }, function(L, F) { + return r = L, i = F, _(); + }; +} +function ABt() { + return j4n()(hG, hG); +} +function K4n(r, i, o, l) { + var f, g = rNe(r, i, o); + switch ((l = ebe(l ?? ",f")).type) { + case "s": + var A = Math.max(Math.abs(r), Math.abs(i)); + return l.precision != null || isNaN(f = function(b, v) { + return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(iG(v) / 3))) - iG(Math.abs(b))); + }(g, A)) || (l.precision = f), hBt(l, A); + case "": + case "e": + case "g": + case "p": + case "r": + l.precision != null || isNaN(f = function(b, v) { + return b = Math.abs(b), v = Math.abs(v) - b, Math.max(0, iG(v) - iG(b)) + 1; + }(g, Math.max(Math.abs(r), Math.abs(i)))) || (l.precision = f - (l.type === "e")); + break; + case "f": + case "%": + l.precision != null || isNaN(f = function(b) { + return Math.max(0, -iG(Math.abs(b))); + }(g)) || (l.precision = f - 2 * (l.type === "%")); + } + return uBt(l); +} +function z4n(r) { + var i = r.domain; + return r.ticks = function(o) { + var l = i(); + return function(f, g, A) { + if (!((A = +A) > 0)) + return []; + if ((f = +f) == (g = +g)) + return [f]; + var b = g < f, v = vh(b ? Gme(g, f, A) : Gme(f, g, A), 3), k = v[0], _ = v[1], T = v[2]; + if (!(_ >= k)) + return []; + var L = _ - k + 1, F = new Array(L); + if (b) + if (T < 0) + for (var U = 0; U < L; ++U) + F[U] = (_ - U) / -T; + else + for (var q = 0; q < L; ++q) + F[q] = (_ - q) * T; + else if (T < 0) + for (var Z = 0; Z < L; ++Z) + F[Z] = (k + Z) / -T; + else + for (var R = 0; R < L; ++R) + F[R] = (k + R) * T; + return F; + }(l[0], l[l.length - 1], o ?? 10); + }, r.tickFormat = function(o, l) { + var f = i(); + return K4n(f[0], f[f.length - 1], o ?? 10, l); + }, r.nice = function(o) { + o == null && (o = 10); + var l, f, g = i(), A = 0, b = g.length - 1, v = g[A], k = g[b], _ = 10; + for (k < v && (f = v, v = k, k = f, f = A, A = b, b = f); _-- > 0; ) { + if ((f = nNe(v, k, o)) === l) + return g[A] = v, g[b] = k, i(g); + if (f > 0) + v = Math.floor(v / f) * f, k = Math.ceil(k / f) * f; + else { + if (!(f < 0)) + break; + v = Math.ceil(v * f) / f, k = Math.floor(k * f) / f; + } + l = f; + } + return r; + }, r; +} +function gBt() { + var r = ABt(); + return r.copy = function() { + return dBt(r, gBt()); + }, yRe.apply(r, arguments), z4n(r); +} +var qFe = /* @__PURE__ */ new Date(), YFe = /* @__PURE__ */ new Date(); +function y2(r, i, o, l) { + function f(g) { + return r(g = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+g)), g; + } + return f.floor = function(g) { + return r(g = /* @__PURE__ */ new Date(+g)), g; + }, f.ceil = function(g) { + return r(g = new Date(g - 1)), i(g, 1), r(g), g; + }, f.round = function(g) { + var A = f(g), b = f.ceil(g); + return g - A < b - g ? A : b; + }, f.offset = function(g, A) { + return i(g = /* @__PURE__ */ new Date(+g), A == null ? 1 : Math.floor(A)), g; + }, f.range = function(g, A, b) { + var v, k = []; + if (g = f.ceil(g), b = b == null ? 1 : Math.floor(b), !(g < A && b > 0)) + return k; + do + k.push(v = /* @__PURE__ */ new Date(+g)), i(g, b), r(g); + while (v < g && g < A); + return k; + }, f.filter = function(g) { + return y2(function(A) { + if (A >= A) + for (; r(A), !g(A); ) + A.setTime(A - 1); + }, function(A, b) { + if (A >= A) + if (b < 0) + for (; ++b <= 0; ) + for (; i(A, -1), !g(A); ) + ; + else + for (; --b >= 0; ) + for (; i(A, 1), !g(A); ) + ; + }); + }, o && (f.count = function(g, A) { + return qFe.setTime(+g), YFe.setTime(+A), r(qFe), r(YFe), Math.floor(o(qFe, YFe)); + }, f.every = function(g) { + return g = Math.floor(g), isFinite(g) && g > 0 ? g > 1 ? dd(f).call(f, l ? function(A) { + return l(A) % g == 0; + } : function(A) { + return f.count(0, A) % g == 0; + }) : f : null; + }), f; +} +var tbe = y2(function() { +}, function(r, i) { + r.setTime(+r + i); +}, function(r, i) { + return i - r; +}); +tbe.every = function(r) { + return r = Math.floor(r), isFinite(r) && r > 0 ? r > 1 ? y2(function(i) { + i.setTime(Math.floor(i / r) * r); + }, function(i, o) { + i.setTime(+i + o * r); + }, function(i, o) { + return (o - i) / r; + }) : tbe : null; +}; +var fxt = tbe; +tbe.range; +var lie = 1e3, LO = 6e4, uie = 36e5, wRe = 864e5, kRe = 6048e5, G4n = 2592e6, JFe = 31536e6, pBt = y2(function(r) { + r.setTime(r - r.getMilliseconds()); +}, function(r, i) { + r.setTime(+r + i * lie); +}, function(r, i) { + return (i - r) / lie; +}, function(r) { + return r.getUTCSeconds(); +}), ore = pBt; +pBt.range; +var mBt = y2(function(r) { + r.setTime(r - r.getMilliseconds() - r.getSeconds() * lie); +}, function(r, i) { + r.setTime(+r + i * LO); +}, function(r, i) { + return (i - r) / LO; +}, function(r) { + return r.getMinutes(); +}), zpe = mBt; +mBt.range; +var bBt = y2(function(r) { + r.setTime(r - r.getMilliseconds() - r.getSeconds() * lie - r.getMinutes() * LO); +}, function(r, i) { + r.setTime(+r + i * uie); +}, function(r, i) { + return (i - r) / uie; +}, function(r) { + return r.getHours(); +}), Gpe = bBt; +bBt.range; +var vBt = y2(function(r) { + return r.setHours(0, 0, 0, 0); +}, function(r, i) { + return r.setDate(r.getDate() + i); +}, function(r, i) { + return (i - r - (i.getTimezoneOffset() - r.getTimezoneOffset()) * LO) / wRe; +}, function(r) { + return r.getDate() - 1; +}), CG = vBt; +function x$(r) { + return y2(function(i) { + i.setDate(i.getDate() - (i.getDay() + 7 - r) % 7), i.setHours(0, 0, 0, 0); + }, function(i, o) { + i.setDate(i.getDate() + 7 * o); + }, function(i, o) { + return (o - i - (o.getTimezoneOffset() - i.getTimezoneOffset()) * LO) / kRe; + }); +} +vBt.range; +var _G = x$(0), nbe = x$(1), X4n = x$(2), W4n = x$(3), zG = x$(4), V4n = x$(5), q4n = x$(6); +_G.range, nbe.range, X4n.range, W4n.range, zG.range, V4n.range, q4n.range; +var yBt = y2(function(r) { + r.setDate(1), r.setHours(0, 0, 0, 0); +}, function(r, i) { + r.setMonth(r.getMonth() + i); +}, function(r, i) { + return i.getMonth() - r.getMonth() + 12 * (i.getFullYear() - r.getFullYear()); +}, function(r) { + return r.getMonth(); +}), Xpe = yBt; +yBt.range; +var xRe = y2(function(r) { + r.setMonth(0, 1), r.setHours(0, 0, 0, 0); +}, function(r, i) { + r.setFullYear(r.getFullYear() + i); +}, function(r, i) { + return i.getFullYear() - r.getFullYear(); +}, function(r) { + return r.getFullYear(); +}); +xRe.every = function(r) { + return isFinite(r = Math.floor(r)) && r > 0 ? y2(function(i) { + i.setFullYear(Math.floor(i.getFullYear() / r) * r), i.setMonth(0, 1), i.setHours(0, 0, 0, 0); + }, function(i, o) { + i.setFullYear(i.getFullYear() + o * r); + }) : null; +}; +var f$ = xRe; +xRe.range; +var wBt = y2(function(r) { + r.setUTCSeconds(0, 0); +}, function(r, i) { + r.setTime(+r + i * LO); +}, function(r, i) { + return (i - r) / LO; +}, function(r) { + return r.getUTCMinutes(); +}), Y4n = wBt; +wBt.range; +var kBt = y2(function(r) { + r.setUTCMinutes(0, 0, 0); +}, function(r, i) { + r.setTime(+r + i * uie); +}, function(r, i) { + return (i - r) / uie; +}, function(r) { + return r.getUTCHours(); +}), J4n = kBt; +kBt.range; +var xBt = y2(function(r) { + r.setUTCHours(0, 0, 0, 0); +}, function(r, i) { + r.setUTCDate(r.getUTCDate() + i); +}, function(r, i) { + return (i - r) / wRe; +}, function(r) { + return r.getUTCDate() - 1; +}), CRe = xBt; +function C$(r) { + return y2(function(i) { + i.setUTCDate(i.getUTCDate() - (i.getUTCDay() + 7 - r) % 7), i.setUTCHours(0, 0, 0, 0); + }, function(i, o) { + i.setUTCDate(i.getUTCDate() + 7 * o); + }, function(i, o) { + return (o - i) / kRe; + }); +} +xBt.range; +var _Re = C$(0), rbe = C$(1), Z4n = C$(2), e5n = C$(3), GG = C$(4), t5n = C$(5), n5n = C$(6); +_Re.range, rbe.range, Z4n.range, e5n.range, GG.range, t5n.range, n5n.range; +var CBt = y2(function(r) { + r.setUTCDate(1), r.setUTCHours(0, 0, 0, 0); +}, function(r, i) { + r.setUTCMonth(r.getUTCMonth() + i); +}, function(r, i) { + return i.getUTCMonth() - r.getUTCMonth() + 12 * (i.getUTCFullYear() - r.getUTCFullYear()); +}, function(r) { + return r.getUTCMonth(); +}), r5n = CBt; +CBt.range; +var ERe = y2(function(r) { + r.setUTCMonth(0, 1), r.setUTCHours(0, 0, 0, 0); +}, function(r, i) { + r.setUTCFullYear(r.getUTCFullYear() + i); +}, function(r, i) { + return i.getUTCFullYear() - r.getUTCFullYear(); +}, function(r) { + return r.getUTCFullYear(); +}); +ERe.every = function(r) { + return isFinite(r = Math.floor(r)) && r > 0 ? y2(function(i) { + i.setUTCFullYear(Math.floor(i.getUTCFullYear() / r) * r), i.setUTCMonth(0, 1), i.setUTCHours(0, 0, 0, 0); + }, function(i, o) { + i.setUTCFullYear(i.getUTCFullYear() + o * r); + }) : null; +}; +var XG = ERe; +function _Bt(r, i, o, l, f, g) { + var A = [[ore, 1, lie], [ore, 5, 5e3], [ore, 15, 15e3], [ore, 30, 3e4], [g, 1, LO], [g, 5, 3e5], [g, 15, 9e5], [g, 30, 18e5], [f, 1, uie], [f, 3, 108e5], [f, 6, 216e5], [f, 12, 432e5], [l, 1, wRe], [l, 2, 1728e5], [o, 1, kRe], [i, 1, G4n], [i, 3, 7776e6], [r, 1, JFe]]; + function b(v, k, _) { + var T = Math.abs(k - v) / _, L = dRe(function(Z) { + return vh(Z, 3)[2]; + }).right(A, T); + if (L === A.length) + return yG(r).call(r, rNe(v / JFe, k / JFe, _)); + if (L === 0) + return yG(fxt).call(fxt, Math.max(rNe(v, k, _), 1)); + var F = vh(A[T / A[L - 1][2] < A[L][2] / T ? L - 1 : L], 2), U = F[0], q = F[1]; + return yG(U).call(U, q); + } + return [function(v, k, _) { + var T = k < v; + if (T) { + var L = [k, v]; + v = L[0], k = L[1]; + } + var F = _ && typeof _.range == "function" ? _ : b(v, k, _), U = F ? F.range(v, +k + 1) : []; + return T ? TL(U).call(U) : U; + }, b]; +} +ERe.range; +var dxt = vh(_Bt(XG, r5n, _Re, CRe, J4n, Y4n), 2); +dxt[0], dxt[1]; +var EBt = vh(_Bt(f$, Xpe, _G, CG, Gpe, zpe), 2), i5n = EBt[0], a5n = EBt[1]; +function ZFe(r) { + if (0 <= r.y && r.y < 100) { + var i = new Date(-1, r.m, r.d, r.H, r.M, r.S, r.L); + return i.setFullYear(r.y), i; + } + return new Date(r.y, r.m, r.d, r.H, r.M, r.S, r.L); +} +function eOe(r) { + if (0 <= r.y && r.y < 100) { + var i = new Date(Date.UTC(-1, r.m, r.d, r.H, r.M, r.S, r.L)); + return i.setUTCFullYear(r.y), i; + } + return new Date(Date.UTC(r.y, r.m, r.d, r.H, r.M, r.S, r.L)); +} +function Ine(r, i, o) { + return { y: r, m: i, d: o, H: 0, M: 0, S: 0, L: 0 }; +} +var Mne, Wpe, Axt = { "-": "", _: " ", 0: "0" }, w2 = /^\s*\d+/, o5n = /^%/, s5n = /[\\^$*+?|[\]().{}]/g; +function Vf(r, i, o) { + var l = r < 0 ? "-" : "", f = (l ? -r : r) + "", g = f.length; + return l + (g < o ? new Array(o - g + 1).join(i) + f : f); +} +function c5n(r) { + return r.replace(s5n, "\\$&"); +} +function Fne(r) { + return new RegExp("^(?:" + Zs(r).call(r, c5n).join("|") + ")", "i"); +} +function One(r) { + return new PTt(Zs(r).call(r, function(i, o) { + return [i.toLowerCase(), o]; + })); +} +function l5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 1)); + return l ? (r.w = +l[0], o + l[0].length) : -1; +} +function u5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 1)); + return l ? (r.u = +l[0], o + l[0].length) : -1; +} +function h5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.U = +l[0], o + l[0].length) : -1; +} +function f5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.V = +l[0], o + l[0].length) : -1; +} +function d5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.W = +l[0], o + l[0].length) : -1; +} +function gxt(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 4)); + return l ? (r.y = +l[0], o + l[0].length) : -1; +} +function pxt(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.y = +l[0] + (+l[0] > 68 ? 1900 : 2e3), o + l[0].length) : -1; +} +function A5n(r, i, o) { + var l = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Da(i).call(i, o, o + 6)); + return l ? (r.Z = l[1] ? 0 : -(l[2] + (l[3] || "00")), o + l[0].length) : -1; +} +function g5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 1)); + return l ? (r.q = 3 * l[0] - 3, o + l[0].length) : -1; +} +function p5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.m = l[0] - 1, o + l[0].length) : -1; +} +function mxt(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.d = +l[0], o + l[0].length) : -1; +} +function m5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 3)); + return l ? (r.m = 0, r.d = +l[0], o + l[0].length) : -1; +} +function bxt(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.H = +l[0], o + l[0].length) : -1; +} +function b5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.M = +l[0], o + l[0].length) : -1; +} +function v5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 2)); + return l ? (r.S = +l[0], o + l[0].length) : -1; +} +function y5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 3)); + return l ? (r.L = +l[0], o + l[0].length) : -1; +} +function w5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o, o + 6)); + return l ? (r.L = Math.floor(l[0] / 1e3), o + l[0].length) : -1; +} +function k5n(r, i, o) { + var l = o5n.exec(Da(i).call(i, o, o + 1)); + return l ? o + l[0].length : -1; +} +function x5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o)); + return l ? (r.Q = +l[0], o + l[0].length) : -1; +} +function C5n(r, i, o) { + var l = w2.exec(Da(i).call(i, o)); + return l ? (r.s = +l[0], o + l[0].length) : -1; +} +function vxt(r, i) { + return Vf(r.getDate(), i, 2); +} +function _5n(r, i) { + return Vf(r.getHours(), i, 2); +} +function E5n(r, i) { + return Vf(r.getHours() % 12 || 12, i, 2); +} +function T5n(r, i) { + return Vf(1 + CG.count(f$(r), r), i, 3); +} +function TBt(r, i) { + return Vf(r.getMilliseconds(), i, 3); +} +function B5n(r, i) { + return TBt(r, i) + "000"; +} +function S5n(r, i) { + return Vf(r.getMonth() + 1, i, 2); +} +function L5n(r, i) { + return Vf(r.getMinutes(), i, 2); +} +function I5n(r, i) { + return Vf(r.getSeconds(), i, 2); +} +function M5n(r) { + var i = r.getDay(); + return i === 0 ? 7 : i; +} +function F5n(r, i) { + return Vf(_G.count(f$(r) - 1, r), i, 2); +} +function BBt(r) { + var i = r.getDay(); + return i >= 4 || i === 0 ? zG(r) : zG.ceil(r); +} +function O5n(r, i) { + return r = BBt(r), Vf(zG.count(f$(r), r) + (f$(r).getDay() === 4), i, 2); +} +function D5n(r) { + return r.getDay(); +} +function N5n(r, i) { + return Vf(nbe.count(f$(r) - 1, r), i, 2); +} +function P5n(r, i) { + return Vf(r.getFullYear() % 100, i, 2); +} +function R5n(r, i) { + return Vf((r = BBt(r)).getFullYear() % 100, i, 2); +} +function Q5n(r, i) { + return Vf(r.getFullYear() % 1e4, i, 4); +} +function $5n(r, i) { + var o = r.getDay(); + return Vf((r = o >= 4 || o === 0 ? zG(r) : zG.ceil(r)).getFullYear() % 1e4, i, 4); +} +function U5n(r) { + var i = r.getTimezoneOffset(); + return (i > 0 ? "-" : (i *= -1, "+")) + Vf(i / 60 | 0, "0", 2) + Vf(i % 60, "0", 2); +} +function yxt(r, i) { + return Vf(r.getUTCDate(), i, 2); +} +function H5n(r, i) { + return Vf(r.getUTCHours(), i, 2); +} +function j5n(r, i) { + return Vf(r.getUTCHours() % 12 || 12, i, 2); +} +function K5n(r, i) { + return Vf(1 + CRe.count(XG(r), r), i, 3); +} +function SBt(r, i) { + return Vf(r.getUTCMilliseconds(), i, 3); +} +function z5n(r, i) { + return SBt(r, i) + "000"; +} +function G5n(r, i) { + return Vf(r.getUTCMonth() + 1, i, 2); +} +function X5n(r, i) { + return Vf(r.getUTCMinutes(), i, 2); +} +function W5n(r, i) { + return Vf(r.getUTCSeconds(), i, 2); +} +function V5n(r) { + var i = r.getUTCDay(); + return i === 0 ? 7 : i; +} +function q5n(r, i) { + return Vf(_Re.count(XG(r) - 1, r), i, 2); +} +function LBt(r) { + var i = r.getUTCDay(); + return i >= 4 || i === 0 ? GG(r) : GG.ceil(r); +} +function Y5n(r, i) { + return r = LBt(r), Vf(GG.count(XG(r), r) + (XG(r).getUTCDay() === 4), i, 2); +} +function J5n(r) { + return r.getUTCDay(); +} +function Z5n(r, i) { + return Vf(rbe.count(XG(r) - 1, r), i, 2); +} +function e6n(r, i) { + return Vf(r.getUTCFullYear() % 100, i, 2); +} +function t6n(r, i) { + return Vf((r = LBt(r)).getUTCFullYear() % 100, i, 2); +} +function n6n(r, i) { + return Vf(r.getUTCFullYear() % 1e4, i, 4); +} +function r6n(r, i) { + var o = r.getUTCDay(); + return Vf((r = o >= 4 || o === 0 ? GG(r) : GG.ceil(r)).getUTCFullYear() % 1e4, i, 4); +} +function i6n() { + return "+0000"; +} +function wxt() { + return "%"; +} +function kxt(r) { + return +r; +} +function xxt(r) { + return Math.floor(+r / 1e3); +} +function a6n(r) { + return new Date(r); +} +function o6n(r) { + return r instanceof Date ? +r : +/* @__PURE__ */ new Date(+r); +} +function IBt(r, i, o, l, f, g, A, b, v, k) { + var _ = ABt(), T = _.invert, L = _.domain, F = k(".%L"), U = k(":%S"), q = k("%I:%M"), Z = k("%I %p"), R = k("%a %d"), J = k("%b %d"), he = k("%B"), Y = k("%Y"); + function ue(le) { + return (v(le) < le ? F : b(le) < le ? U : A(le) < le ? q : g(le) < le ? Z : l(le) < le ? f(le) < le ? R : J : o(le) < le ? he : Y)(le); + } + return _.invert = function(le) { + return new Date(T(le)); + }, _.domain = function(le) { + var be; + return arguments.length ? L(Su(le, o6n)) : Zs(be = L()).call(be, a6n); + }, _.ticks = function(le) { + var be = L(); + return r(be[0], be[be.length - 1], le ?? 10); + }, _.tickFormat = function(le, be) { + return be == null ? ue : k(be); + }, _.nice = function(le) { + var be = L(); + return le && typeof le.range == "function" || (le = i(be[0], be[be.length - 1], le ?? 10)), le ? L(function(ke, de) { + var Te, xe = 0, ie = (ke = Da(ke).call(ke)).length - 1, Be = ke[xe], te = ke[ie]; + return te < Be && (Te = xe, xe = ie, ie = Te, Te = Be, Be = te, te = Te), ke[xe] = de.floor(Be), ke[ie] = de.ceil(te), ke; + }(be, le)) : _; + }, _.copy = function() { + return dBt(_, IBt(r, i, o, l, f, g, A, b, v, k)); + }, _; +} +function xp(r) { + return function() { + return r; + }; +} +(function(r) { + Mne = function(i) { + var o = i.dateTime, l = i.date, f = i.time, g = i.periods, A = i.days, b = i.shortDays, v = i.months, k = i.shortMonths, _ = Fne(g), T = One(g), L = Fne(A), F = One(A), U = Fne(b), q = One(b), Z = Fne(v), R = One(v), J = Fne(k), he = One(k), Y = { a: function(Te) { + return b[Te.getDay()]; + }, A: function(Te) { + return A[Te.getDay()]; + }, b: function(Te) { + return k[Te.getMonth()]; + }, B: function(Te) { + return v[Te.getMonth()]; + }, c: null, d: vxt, e: vxt, f: B5n, g: R5n, G: $5n, H: _5n, I: E5n, j: T5n, L: TBt, m: S5n, M: L5n, p: function(Te) { + return g[+(Te.getHours() >= 12)]; + }, q: function(Te) { + return 1 + ~~(Te.getMonth() / 3); + }, Q: kxt, s: xxt, S: I5n, u: M5n, U: F5n, V: O5n, w: D5n, W: N5n, x: null, X: null, y: P5n, Y: Q5n, Z: U5n, "%": wxt }, ue = { a: function(Te) { + return b[Te.getUTCDay()]; + }, A: function(Te) { + return A[Te.getUTCDay()]; + }, b: function(Te) { + return k[Te.getUTCMonth()]; + }, B: function(Te) { + return v[Te.getUTCMonth()]; + }, c: null, d: yxt, e: yxt, f: z5n, g: t6n, G: r6n, H: H5n, I: j5n, j: K5n, L: SBt, m: G5n, M: X5n, p: function(Te) { + return g[+(Te.getUTCHours() >= 12)]; + }, q: function(Te) { + return 1 + ~~(Te.getUTCMonth() / 3); + }, Q: kxt, s: xxt, S: W5n, u: V5n, U: q5n, V: Y5n, w: J5n, W: Z5n, x: null, X: null, y: e6n, Y: n6n, Z: i6n, "%": wxt }, le = { a: function(Te, xe, ie) { + var Be = U.exec(Da(xe).call(xe, ie)); + return Be ? (Te.w = q.get(Be[0].toLowerCase()), ie + Be[0].length) : -1; + }, A: function(Te, xe, ie) { + var Be = L.exec(Da(xe).call(xe, ie)); + return Be ? (Te.w = F.get(Be[0].toLowerCase()), ie + Be[0].length) : -1; + }, b: function(Te, xe, ie) { + var Be = J.exec(Da(xe).call(xe, ie)); + return Be ? (Te.m = he.get(Be[0].toLowerCase()), ie + Be[0].length) : -1; + }, B: function(Te, xe, ie) { + var Be = Z.exec(Da(xe).call(xe, ie)); + return Be ? (Te.m = R.get(Be[0].toLowerCase()), ie + Be[0].length) : -1; + }, c: function(Te, xe, ie) { + return de(Te, o, xe, ie); + }, d: mxt, e: mxt, f: w5n, g: pxt, G: gxt, H: bxt, I: bxt, j: m5n, L: y5n, m: p5n, M: b5n, p: function(Te, xe, ie) { + var Be = _.exec(Da(xe).call(xe, ie)); + return Be ? (Te.p = T.get(Be[0].toLowerCase()), ie + Be[0].length) : -1; + }, q: g5n, Q: x5n, s: C5n, S: v5n, u: u5n, U: h5n, V: f5n, w: l5n, W: d5n, x: function(Te, xe, ie) { + return de(Te, l, xe, ie); + }, X: function(Te, xe, ie) { + return de(Te, f, xe, ie); + }, y: pxt, Y: gxt, Z: A5n, "%": k5n }; + function be(Te, xe) { + return function(ie) { + var Be, te, Me, ve = [], ge = -1, Je = 0, ot = Te.length; + for (ie instanceof Date || (ie = /* @__PURE__ */ new Date(+ie)); ++ge < ot; ) + Te.charCodeAt(ge) === 37 && (ve.push(Da(Te).call(Te, Je, ge)), (te = Axt[Be = Te.charAt(++ge)]) != null ? Be = Te.charAt(++ge) : te = Be === "e" ? " " : "0", (Me = xe[Be]) && (Be = Me(ie, te)), ve.push(Be), Je = ge + 1); + return ve.push(Da(Te).call(Te, Je, ge)), ve.join(""); + }; + } + function ke(Te, xe) { + return function(ie) { + var Be, te, Me = Ine(1900, void 0, 1); + if (de(Me, Te, ie += "", 0) != ie.length) + return null; + if ("Q" in Me) + return new Date(Me.Q); + if ("s" in Me) + return new Date(1e3 * Me.s + ("L" in Me ? Me.L : 0)); + if (xe && !("Z" in Me) && (Me.Z = 0), "p" in Me && (Me.H = Me.H % 12 + 12 * Me.p), Me.m === void 0 && (Me.m = "q" in Me ? Me.q : 0), "V" in Me) { + if (Me.V < 1 || Me.V > 53) + return null; + "w" in Me || (Me.w = 1), "Z" in Me ? (te = (Be = eOe(Ine(Me.y, 0, 1))).getUTCDay(), Be = te > 4 || te === 0 ? rbe.ceil(Be) : rbe(Be), Be = CRe.offset(Be, 7 * (Me.V - 1)), Me.y = Be.getUTCFullYear(), Me.m = Be.getUTCMonth(), Me.d = Be.getUTCDate() + (Me.w + 6) % 7) : (te = (Be = ZFe(Ine(Me.y, 0, 1))).getDay(), Be = te > 4 || te === 0 ? nbe.ceil(Be) : nbe(Be), Be = CG.offset(Be, 7 * (Me.V - 1)), Me.y = Be.getFullYear(), Me.m = Be.getMonth(), Me.d = Be.getDate() + (Me.w + 6) % 7); + } else + ("W" in Me || "U" in Me) && ("w" in Me || (Me.w = "u" in Me ? Me.u % 7 : "W" in Me ? 1 : 0), te = "Z" in Me ? eOe(Ine(Me.y, 0, 1)).getUTCDay() : ZFe(Ine(Me.y, 0, 1)).getDay(), Me.m = 0, Me.d = "W" in Me ? (Me.w + 6) % 7 + 7 * Me.W - (te + 5) % 7 : Me.w + 7 * Me.U - (te + 6) % 7); + return "Z" in Me ? (Me.H += Me.Z / 100 | 0, Me.M += Me.Z % 100, eOe(Me)) : ZFe(Me); + }; + } + function de(Te, xe, ie, Be) { + for (var te, Me, ve = 0, ge = xe.length, Je = ie.length; ve < ge; ) { + if (Be >= Je) + return -1; + if ((te = xe.charCodeAt(ve++)) === 37) { + if (te = xe.charAt(ve++), !(Me = le[te in Axt ? xe.charAt(ve++) : te]) || (Be = Me(Te, ie, Be)) < 0) + return -1; + } else if (te != ie.charCodeAt(Be++)) + return -1; + } + return Be; + } + return Y.x = be(l, Y), Y.X = be(f, Y), Y.c = be(o, Y), ue.x = be(l, ue), ue.X = be(f, ue), ue.c = be(o, ue), { format: function(Te) { + var xe = be(Te += "", Y); + return xe.toString = function() { + return Te; + }, xe; + }, parse: function(Te) { + var xe = ke(Te += "", !1); + return xe.toString = function() { + return Te; + }, xe; + }, utcFormat: function(Te) { + var xe = be(Te += "", ue); + return xe.toString = function() { + return Te; + }, xe; + }, utcParse: function(Te) { + var xe = ke(Te += "", !0); + return xe.toString = function() { + return Te; + }, xe; + } }; + }(r), Wpe = Mne.format, Mne.parse, Mne.utcFormat, Mne.utcParse; +})({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); +var Cxt = Math.abs, Py = Math.atan2, MQ = Math.cos, s6n = Math.max, tOe = Math.min, gT = Math.sin, fG = Math.sqrt, Ry = 1e-12, Ere = Math.PI, ibe = Ere / 2, Vpe = 2 * Ere; +function _xt(r) { + return r >= 1 ? ibe : r <= -1 ? -ibe : Math.asin(r); +} +function c6n(r) { + return r.innerRadius; +} +function l6n(r) { + return r.outerRadius; +} +function u6n(r) { + return r.startAngle; +} +function h6n(r) { + return r.endAngle; +} +function f6n(r) { + return r && r.padAngle; +} +function Jge(r, i, o, l, f, g, A) { + var b = r - o, v = i - l, k = (A ? g : -g) / fG(b * b + v * v), _ = k * v, T = -k * b, L = r + _, F = i + T, U = o + _, q = l + T, Z = (L + U) / 2, R = (F + q) / 2, J = U - L, he = q - F, Y = J * J + he * he, ue = f - g, le = L * q - U * F, be = (he < 0 ? -1 : 1) * fG(s6n(0, ue * ue * Y - le * le)), ke = (le * he - J * be) / Y, de = (-le * J - he * be) / Y, Te = (le * he + J * be) / Y, xe = (-le * J + he * be) / Y, ie = ke - Z, Be = de - R, te = Te - Z, Me = xe - R; + return ie * ie + Be * Be > te * te + Me * Me && (ke = Te, de = xe), { cx: ke, cy: de, x01: -_, y01: -T, x11: ke * (f / ue - 1), y11: de * (f / ue - 1) }; +} +function vNe() { + var r = c6n, i = l6n, o = xp(0), l = null, f = u6n, g = h6n, A = f6n, b = null; + function v() { + var k, _, T = +r.apply(this, arguments), L = +i.apply(this, arguments), F = f.apply(this, arguments) - ibe, U = g.apply(this, arguments) - ibe, q = Cxt(U - F), Z = U > F; + if (b || (b = k = vRe()), L < T && (_ = L, L = T, T = _), L > Ry) + if (q > Vpe - Ry) + b.moveTo(L * MQ(F), L * gT(F)), b.arc(0, 0, L, F, U, !Z), T > Ry && (b.moveTo(T * MQ(U), T * gT(U)), b.arc(0, 0, T, U, F, Z)); + else { + var R, J, he = F, Y = U, ue = F, le = U, be = q, ke = q, de = A.apply(this, arguments) / 2, Te = de > Ry && (l ? +l.apply(this, arguments) : fG(T * T + L * L)), xe = tOe(Cxt(L - T) / 2, +o.apply(this, arguments)), ie = xe, Be = xe; + if (Te > Ry) { + var te = _xt(Te / T * gT(de)), Me = _xt(Te / L * gT(de)); + (be -= 2 * te) > Ry ? (ue += te *= Z ? 1 : -1, le -= te) : (be = 0, ue = le = (F + U) / 2), (ke -= 2 * Me) > Ry ? (he += Me *= Z ? 1 : -1, Y -= Me) : (ke = 0, he = Y = (F + U) / 2); + } + var ve = L * MQ(he), ge = L * gT(he), Je = T * MQ(le), ot = T * gT(le); + if (xe > Ry) { + var bt, gt = L * MQ(Y), je = L * gT(Y), Qe = T * MQ(ue), kt = T * gT(ue); + if (q < Ere && (bt = function(ln, an, Ot, $n, pt, Ci, ut, br) { + var zt = Ot - ln, Wr = $n - an, zr = ut - pt, Si = br - Ci, vr = Si * zt - zr * Wr; + if (!(vr * vr < Ry)) + return [ln + (vr = (zr * (an - Ci) - Si * (ln - pt)) / vr) * zt, an + vr * Wr]; + }(ve, ge, Qe, kt, gt, je, Je, ot))) { + var Wt = ve - bt[0], jt = ge - bt[1], Zn = gt - bt[0], Ft = je - bt[1], wn = 1 / gT(function(ln) { + return ln > 1 ? 0 : ln < -1 ? Ere : Math.acos(ln); + }((Wt * Zn + jt * Ft) / (fG(Wt * Wt + jt * jt) * fG(Zn * Zn + Ft * Ft))) / 2), un = fG(bt[0] * bt[0] + bt[1] * bt[1]); + ie = tOe(xe, (T - un) / (wn - 1)), Be = tOe(xe, (L - un) / (wn + 1)); + } + } + ke > Ry ? Be > Ry ? (R = Jge(Qe, kt, ve, ge, L, Be, Z), J = Jge(gt, je, Je, ot, L, Be, Z), b.moveTo(R.cx + R.x01, R.cy + R.y01), Be < xe ? b.arc(R.cx, R.cy, Be, Py(R.y01, R.x01), Py(J.y01, J.x01), !Z) : (b.arc(R.cx, R.cy, Be, Py(R.y01, R.x01), Py(R.y11, R.x11), !Z), b.arc(0, 0, L, Py(R.cy + R.y11, R.cx + R.x11), Py(J.cy + J.y11, J.cx + J.x11), !Z), b.arc(J.cx, J.cy, Be, Py(J.y11, J.x11), Py(J.y01, J.x01), !Z))) : (b.moveTo(ve, ge), b.arc(0, 0, L, he, Y, !Z)) : b.moveTo(ve, ge), T > Ry && be > Ry ? ie > Ry ? (R = Jge(Je, ot, gt, je, T, -ie, Z), J = Jge(ve, ge, Qe, kt, T, -ie, Z), b.lineTo(R.cx + R.x01, R.cy + R.y01), ie < xe ? b.arc(R.cx, R.cy, ie, Py(R.y01, R.x01), Py(J.y01, J.x01), !Z) : (b.arc(R.cx, R.cy, ie, Py(R.y01, R.x01), Py(R.y11, R.x11), !Z), b.arc(0, 0, T, Py(R.cy + R.y11, R.cx + R.x11), Py(J.cy + J.y11, J.cx + J.x11), Z), b.arc(J.cx, J.cy, ie, Py(J.y11, J.x11), Py(J.y01, J.x01), !Z))) : b.arc(0, 0, T, le, ue, Z) : b.lineTo(Je, ot); + } + else + b.moveTo(0, 0); + if (b.closePath(), k) + return b = null, k + "" || null; + } + return v.centroid = function() { + var k = (+r.apply(this, arguments) + +i.apply(this, arguments)) / 2, _ = (+f.apply(this, arguments) + +g.apply(this, arguments)) / 2 - Ere / 2; + return [MQ(_) * k, gT(_) * k]; + }, v.innerRadius = function(k) { + return arguments.length ? (r = typeof k == "function" ? k : xp(+k), v) : r; + }, v.outerRadius = function(k) { + return arguments.length ? (i = typeof k == "function" ? k : xp(+k), v) : i; + }, v.cornerRadius = function(k) { + return arguments.length ? (o = typeof k == "function" ? k : xp(+k), v) : o; + }, v.padRadius = function(k) { + return arguments.length ? (l = k == null ? null : typeof k == "function" ? k : xp(+k), v) : l; + }, v.startAngle = function(k) { + return arguments.length ? (f = typeof k == "function" ? k : xp(+k), v) : f; + }, v.endAngle = function(k) { + return arguments.length ? (g = typeof k == "function" ? k : xp(+k), v) : g; + }, v.padAngle = function(k) { + return arguments.length ? (A = typeof k == "function" ? k : xp(+k), v) : A; + }, v.context = function(k) { + return arguments.length ? (b = k ?? null, v) : b; + }, v; +} +function MBt(r) { + return Yl(r) === "object" && "length" in r ? r : Su(r); +} +function FBt(r) { + this._context = r; +} +function mk(r) { + return new FBt(r); +} +function d6n(r) { + return r[0]; +} +function A6n(r) { + return r[1]; +} +function pX(r, i) { + var o = xp(!0), l = null, f = mk, g = null; + function A(b) { + var v, k, _, T = (b = MBt(b)).length, L = !1; + for (l == null && (g = f(_ = vRe())), v = 0; v <= T; ++v) + !(v < T && o(k = b[v], v, b)) === L && ((L = !L) ? g.lineStart() : g.lineEnd()), L && g.point(+r(k, v, b), +i(k, v, b)); + if (_) + return g = null, _ + "" || null; + } + return r = typeof r == "function" ? r : r === void 0 ? d6n : xp(r), i = typeof i == "function" ? i : i === void 0 ? A6n : xp(i), A.x = function(b) { + return arguments.length ? (r = typeof b == "function" ? b : xp(+b), A) : r; + }, A.y = function(b) { + return arguments.length ? (i = typeof b == "function" ? b : xp(+b), A) : i; + }, A.defined = function(b) { + return arguments.length ? (o = typeof b == "function" ? b : xp(!!b), A) : o; + }, A.curve = function(b) { + return arguments.length ? (f = b, l != null && (g = f(l)), A) : f; + }, A.context = function(b) { + return arguments.length ? (b == null ? l = g = null : g = f(l = b), A) : l; + }, A; +} +function g6n(r, i) { + return i < r ? -1 : i > r ? 1 : i >= r ? 0 : NaN; +} +function p6n(r) { + return r; +} +Da(Array.prototype), FBt.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._point = 0; +}, lineEnd: function() { + (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(r, i) : this._context.moveTo(r, i); + break; + case 1: + this._point = 2; + default: + this._context.lineTo(r, i); + } +} }; +var Ext = function() { + function r(i, o) { + vi(this, r), this._context = i, this._x = o; + } + return yi(r, [{ key: "areaStart", value: function() { + this._line = 0; + } }, { key: "areaEnd", value: function() { + this._line = NaN; + } }, { key: "lineStart", value: function() { + this._point = 0; + } }, { key: "lineEnd", value: function() { + (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; + } }, { key: "point", value: function(i, o) { + switch (i = +i, o = +o, this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(i, o) : this._context.moveTo(i, o); + break; + case 1: + this._point = 2; + default: + this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + i) / 2, this._y0, this._x0, o, i, o) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + o) / 2, i, this._y0, i, o); + } + this._x0 = i, this._y0 = o; + } }]), r; +}(); +function IO() { +} +function Zge(r, i, o) { + r._context.bezierCurveTo((2 * r._x0 + r._x1) / 3, (2 * r._y0 + r._y1) / 3, (r._x0 + 2 * r._x1) / 3, (r._y0 + 2 * r._y1) / 3, (r._x0 + 4 * r._x1 + i) / 6, (r._y0 + 4 * r._y1 + o) / 6); +} +function qbe(r) { + this._context = r; +} +function Rie(r) { + return new qbe(r); +} +function OBt(r) { + this._context = r; +} +function DBt(r) { + this._context = r; +} +function NBt(r, i) { + this._basis = new qbe(r), this._beta = i; +} +qbe.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 3: + Zge(this, this._x1, this._y1); + case 2: + this._context.lineTo(this._x1, this._y1); + } + (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(r, i) : this._context.moveTo(r, i); + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); + default: + Zge(this, r, i); + } + this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i; +} }, OBt.prototype = { areaStart: IO, areaEnd: IO, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 1: + this._context.moveTo(this._x2, this._y2), this._context.closePath(); + break; + case 2: + this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath(); + break; + case 3: + this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4); + } +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1, this._x2 = r, this._y2 = i; + break; + case 1: + this._point = 2, this._x3 = r, this._y3 = i; + break; + case 2: + this._point = 3, this._x4 = r, this._y4 = i, this._context.moveTo((this._x0 + 4 * this._x1 + r) / 6, (this._y0 + 4 * this._y1 + i) / 6); + break; + default: + Zge(this, r, i); + } + this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i; +} }, DBt.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; +}, lineEnd: function() { + (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1; + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3; + var o = (this._x0 + 4 * this._x1 + r) / 6, l = (this._y0 + 4 * this._y1 + i) / 6; + this._line ? this._context.lineTo(o, l) : this._context.moveTo(o, l); + break; + case 3: + this._point = 4; + default: + Zge(this, r, i); + } + this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i; +} }, NBt.prototype = { lineStart: function() { + this._x = [], this._y = [], this._basis.lineStart(); +}, lineEnd: function() { + var r = this._x, i = this._y, o = r.length - 1; + if (o > 0) + for (var l, f = r[0], g = i[0], A = r[o] - f, b = i[o] - g, v = -1; ++v <= o; ) + l = v / o, this._basis.point(this._beta * r[v] + (1 - this._beta) * (f + l * A), this._beta * i[v] + (1 - this._beta) * (g + l * b)); + this._x = this._y = null, this._basis.lineEnd(); +}, point: function(r, i) { + this._x.push(+r), this._y.push(+i); +} }; +var m6n = function r(i) { + function o(l) { + return i === 1 ? new qbe(l) : new NBt(l, i); + } + return o.beta = function(l) { + return r(+l); + }, o; +}(0.85); +function abe(r, i, o) { + r._context.bezierCurveTo(r._x1 + r._k * (r._x2 - r._x0), r._y1 + r._k * (r._y2 - r._y0), r._x2 + r._k * (r._x1 - i), r._y2 + r._k * (r._y1 - o), r._x2, r._y2); +} +function TRe(r, i) { + this._context = r, this._k = (1 - i) / 6; +} +TRe.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 2: + this._context.lineTo(this._x2, this._y2); + break; + case 3: + abe(this, this._x1, this._y1); + } + (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(r, i) : this._context.moveTo(r, i); + break; + case 1: + this._point = 2, this._x1 = r, this._y1 = i; + break; + case 2: + this._point = 3; + default: + abe(this, r, i); + } + this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; +} }; +var b6n = function r(i) { + function o(l) { + return new TRe(l, i); + } + return o.tension = function(l) { + return r(+l); + }, o; +}(0); +function BRe(r, i) { + this._context = r, this._k = (1 - i) / 6; +} +BRe.prototype = { areaStart: IO, areaEnd: IO, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 1: + this._context.moveTo(this._x3, this._y3), this._context.closePath(); + break; + case 2: + this._context.lineTo(this._x3, this._y3), this._context.closePath(); + break; + case 3: + this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5); + } +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1, this._x3 = r, this._y3 = i; + break; + case 1: + this._point = 2, this._context.moveTo(this._x4 = r, this._y4 = i); + break; + case 2: + this._point = 3, this._x5 = r, this._y5 = i; + break; + default: + abe(this, r, i); + } + this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; +} }; +var v6n = function r(i) { + function o(l) { + return new BRe(l, i); + } + return o.tension = function(l) { + return r(+l); + }, o; +}(0); +function SRe(r, i) { + this._context = r, this._k = (1 - i) / 6; +} +SRe.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0; +}, lineEnd: function() { + (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1; + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); + break; + case 3: + this._point = 4; + default: + abe(this, r, i); + } + this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; +} }; +var y6n = function r(i) { + function o(l) { + return new SRe(l, i); + } + return o.tension = function(l) { + return r(+l); + }, o; +}(0); +function LRe(r, i, o) { + var l = r._x1, f = r._y1, g = r._x2, A = r._y2; + if (r._l01_a > Ry) { + var b = 2 * r._l01_2a + 3 * r._l01_a * r._l12_a + r._l12_2a, v = 3 * r._l01_a * (r._l01_a + r._l12_a); + l = (l * b - r._x0 * r._l12_2a + r._x2 * r._l01_2a) / v, f = (f * b - r._y0 * r._l12_2a + r._y2 * r._l01_2a) / v; + } + if (r._l23_a > Ry) { + var k = 2 * r._l23_2a + 3 * r._l23_a * r._l12_a + r._l12_2a, _ = 3 * r._l23_a * (r._l23_a + r._l12_a); + g = (g * k + r._x1 * r._l23_2a - i * r._l12_2a) / _, A = (A * k + r._y1 * r._l23_2a - o * r._l12_2a) / _; + } + r._context.bezierCurveTo(l, f, g, A, r._x2, r._y2); +} +function PBt(r, i) { + this._context = r, this._alpha = i; +} +PBt.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 2: + this._context.lineTo(this._x2, this._y2); + break; + case 3: + this.point(this._x2, this._y2); + } + (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + if (r = +r, i = +i, this._point) { + var o = this._x2 - r, l = this._y2 - i; + this._l23_a = Math.sqrt(this._l23_2a = Math.pow(o * o + l * l, this._alpha)); + } + switch (this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(r, i) : this._context.moveTo(r, i); + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3; + default: + LRe(this, r, i); + } + this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; +} }; +var w6n = function r(i) { + function o(l) { + return i ? new PBt(l, i) : new TRe(l, 0); + } + return o.alpha = function(l) { + return r(+l); + }, o; +}(0.5); +function RBt(r, i) { + this._context = r, this._alpha = i; +} +RBt.prototype = { areaStart: IO, areaEnd: IO, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 1: + this._context.moveTo(this._x3, this._y3), this._context.closePath(); + break; + case 2: + this._context.lineTo(this._x3, this._y3), this._context.closePath(); + break; + case 3: + this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5); + } +}, point: function(r, i) { + if (r = +r, i = +i, this._point) { + var o = this._x2 - r, l = this._y2 - i; + this._l23_a = Math.sqrt(this._l23_2a = Math.pow(o * o + l * l, this._alpha)); + } + switch (this._point) { + case 0: + this._point = 1, this._x3 = r, this._y3 = i; + break; + case 1: + this._point = 2, this._context.moveTo(this._x4 = r, this._y4 = i); + break; + case 2: + this._point = 3, this._x5 = r, this._y5 = i; + break; + default: + LRe(this, r, i); + } + this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; +} }; +var k6n = function r(i) { + function o(l) { + return i ? new RBt(l, i) : new BRe(l, 0); + } + return o.alpha = function(l) { + return r(+l); + }, o; +}(0.5); +function QBt(r, i) { + this._context = r, this._alpha = i; +} +QBt.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; +}, lineEnd: function() { + (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + if (r = +r, i = +i, this._point) { + var o = this._x2 - r, l = this._y2 - i; + this._l23_a = Math.sqrt(this._l23_2a = Math.pow(o * o + l * l, this._alpha)); + } + switch (this._point) { + case 0: + this._point = 1; + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); + break; + case 3: + this._point = 4; + default: + LRe(this, r, i); + } + this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; +} }; +var x6n = function r(i) { + function o(l) { + return i ? new QBt(l, i) : new SRe(l, 0); + } + return o.alpha = function(l) { + return r(+l); + }, o; +}(0.5); +function $Bt(r) { + this._context = r; +} +function Txt(r) { + return r < 0 ? -1 : 1; +} +function Bxt(r, i, o) { + var l = r._x1 - r._x0, f = i - r._x1, g = (r._y1 - r._y0) / (l || f < 0 && -0), A = (o - r._y1) / (f || l < 0 && -0), b = (g * f + A * l) / (l + f); + return (Txt(g) + Txt(A)) * Math.min(Math.abs(g), Math.abs(A), 0.5 * Math.abs(b)) || 0; +} +function Sxt(r, i) { + var o = r._x1 - r._x0; + return o ? (3 * (r._y1 - r._y0) / o - i) / 2 : i; +} +function nOe(r, i, o) { + var l = r._x0, f = r._y0, g = r._x1, A = r._y1, b = (g - l) / 3; + r._context.bezierCurveTo(l + b, f + b * i, g - b, A - b * o, g, A); +} +function qpe(r) { + this._context = r; +} +function UBt(r) { + this._context = new HBt(r); +} +function HBt(r) { + this._context = r; +} +function jBt(r) { + this._context = r; +} +function Lxt(r) { + var i, o, l = r.length - 1, f = new Array(l), g = new Array(l), A = new Array(l); + for (f[0] = 0, g[0] = 2, A[0] = r[0] + 2 * r[1], i = 1; i < l - 1; ++i) + f[i] = 1, g[i] = 4, A[i] = 4 * r[i] + 2 * r[i + 1]; + for (f[l - 1] = 2, g[l - 1] = 7, A[l - 1] = 8 * r[l - 1] + r[l], i = 1; i < l; ++i) + o = f[i] / g[i - 1], g[i] -= o, A[i] -= o * A[i - 1]; + for (f[l - 1] = A[l - 1] / g[l - 1], i = l - 2; i >= 0; --i) + f[i] = (A[i] - f[i + 1]) / g[i]; + for (g[l - 1] = (r[l] + f[l - 1]) / 2, i = 0; i < l - 1; ++i) + g[i] = 2 * r[i + 1] - f[i + 1]; + return [f, g]; +} +function Ype(r, i) { + this._context = r, this._t = i; +} +function Dne(r, i, o) { + this.k = r, this.x = i, this.y = o; +} +$Bt.prototype = { areaStart: IO, areaEnd: IO, lineStart: function() { + this._point = 0; +}, lineEnd: function() { + this._point && this._context.closePath(); +}, point: function(r, i) { + r = +r, i = +i, this._point ? this._context.lineTo(r, i) : (this._point = 1, this._context.moveTo(r, i)); +} }, qpe.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0; +}, lineEnd: function() { + switch (this._point) { + case 2: + this._context.lineTo(this._x1, this._y1); + break; + case 3: + nOe(this, this._t0, Sxt(this, this._t0)); + } + (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; +}, point: function(r, i) { + var o = NaN; + if (i = +i, (r = +r) !== this._x1 || i !== this._y1) { + switch (this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(r, i) : this._context.moveTo(r, i); + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3, nOe(this, Sxt(this, o = Bxt(this, r, i)), o); + break; + default: + nOe(this, this._t0, o = Bxt(this, r, i)); + } + this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i, this._t0 = o; + } +} }, (UBt.prototype = Vre(qpe.prototype)).point = function(r, i) { + qpe.prototype.point.call(this, i, r); +}, HBt.prototype = { moveTo: function(r, i) { + this._context.moveTo(i, r); +}, closePath: function() { + this._context.closePath(); +}, lineTo: function(r, i) { + this._context.lineTo(i, r); +}, bezierCurveTo: function(r, i, o, l, f, g) { + this._context.bezierCurveTo(i, r, l, o, g, f); +} }, jBt.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x = [], this._y = []; +}, lineEnd: function() { + var r = this._x, i = this._y, o = r.length; + if (o) + if (this._line ? this._context.lineTo(r[0], i[0]) : this._context.moveTo(r[0], i[0]), o === 2) + this._context.lineTo(r[1], i[1]); + else + for (var l = Lxt(r), f = Lxt(i), g = 0, A = 1; A < o; ++g, ++A) + this._context.bezierCurveTo(l[0][g], f[0][g], l[1][g], f[1][g], r[A], i[A]); + (this._line || this._line !== 0 && o === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null; +}, point: function(r, i) { + this._x.push(+r), this._y.push(+i); +} }, Ype.prototype = { areaStart: function() { + this._line = 0; +}, areaEnd: function() { + this._line = NaN; +}, lineStart: function() { + this._x = this._y = NaN, this._point = 0; +}, lineEnd: function() { + 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line); +}, point: function(r, i) { + switch (r = +r, i = +i, this._point) { + case 0: + this._point = 1, this._line ? this._context.lineTo(r, i) : this._context.moveTo(r, i); + break; + case 1: + this._point = 2; + default: + if (this._t <= 0) + this._context.lineTo(this._x, i), this._context.lineTo(r, i); + else { + var o = this._x * (1 - this._t) + r * this._t; + this._context.lineTo(o, this._y), this._context.lineTo(o, i); + } + } + this._x = r, this._y = i; +} }, Dne.prototype = { constructor: Dne, scale: function(r) { + return r === 1 ? this : new Dne(this.k * r, this.x, this.y); +}, translate: function(r, i) { + return r === 0 & i === 0 ? this : new Dne(this.k, this.x + this.k * r, this.y + this.k * i); +}, apply: function(r) { + return [r[0] * this.k + this.x, r[1] * this.k + this.y]; +}, applyX: function(r) { + return r * this.k + this.x; +}, applyY: function(r) { + return r * this.k + this.y; +}, invert: function(r) { + return [(r[0] - this.x) / this.k, (r[1] - this.y) / this.k]; +}, invertX: function(r) { + return (r - this.x) / this.k; +}, invertY: function(r) { + return (r - this.y) / this.k; +}, rescaleX: function(r) { + var i, o; + return r.copy().domain(Zs(i = Zs(o = r.range()).call(o, this.invertX, this)).call(i, r.invert, r)); +}, rescaleY: function(r) { + var i, o; + return r.copy().domain(Zs(i = Zs(o = r.range()).call(o, this.invertY, this)).call(i, r.invert, r)); +}, toString: function() { + return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")"; +} }, Dne.prototype; +var hie = su(function(r, i) { + r.exports = function() { + function o(An) { + return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(_i) { + return typeof _i; + } : function(_i) { + return _i && typeof Symbol == "function" && _i.constructor === Symbol && _i !== Symbol.prototype ? "symbol" : typeof _i; + }, o(An); + } + function l(An, _i) { + return l = Object.setPrototypeOf || function(Cr, la) { + return Cr.__proto__ = la, Cr; + }, l(An, _i); + } + function f() { + if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + } + function g(An, _i, Cr) { + return g = f() ? Reflect.construct : function(la, Ra, Jo) { + var Cc = [null]; + Cc.push.apply(Cc, Ra); + var ji = new (Function.bind.apply(la, Cc))(); + return Jo && l(ji, Jo.prototype), ji; + }, g.apply(null, arguments); + } + function A(An) { + return b(An) || v(An) || k(An) || T(); + } + function b(An) { + if (Array.isArray(An)) + return _(An); + } + function v(An) { + if (typeof Symbol < "u" && An[Symbol.iterator] != null || An["@@iterator"] != null) + return Array.from(An); + } + function k(An, _i) { + if (An) { + if (typeof An == "string") + return _(An, _i); + var Cr = Object.prototype.toString.call(An).slice(8, -1); + return Cr === "Object" && An.constructor && (Cr = An.constructor.name), Cr === "Map" || Cr === "Set" ? Array.from(An) : Cr === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Cr) ? _(An, _i) : void 0; + } + } + function _(An, _i) { + (_i == null || _i > An.length) && (_i = An.length); + for (var Cr = 0, la = new Array(_i); Cr < _i; Cr++) + la[Cr] = An[Cr]; + return la; + } + function T() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var L = Object.hasOwnProperty, F = Object.setPrototypeOf, U = Object.isFrozen, q = Object.getPrototypeOf, Z = Object.getOwnPropertyDescriptor, R = Object.freeze, J = Object.seal, he = Object.create, Y = typeof Reflect < "u" && Reflect, ue = Y.apply, le = Y.construct; + ue || (ue = function(An, _i, Cr) { + return An.apply(_i, Cr); + }), R || (R = function(An) { + return An; + }), J || (J = function(An) { + return An; + }), le || (le = function(An, _i) { + return g(An, A(_i)); + }); + var be = Je(Array.prototype.forEach), ke = Je(Array.prototype.pop), de = Je(Array.prototype.push), Te = Je(String.prototype.toLowerCase), xe = Je(String.prototype.toString), ie = Je(String.prototype.match), Be = Je(String.prototype.replace), te = Je(String.prototype.indexOf), Me = Je(String.prototype.trim), ve = Je(RegExp.prototype.test), ge = ot(TypeError); + function Je(An) { + return function(_i) { + for (var Cr = arguments.length, la = new Array(Cr > 1 ? Cr - 1 : 0), Ra = 1; Ra < Cr; Ra++) + la[Ra - 1] = arguments[Ra]; + return ue(An, _i, la); + }; + } + function ot(An) { + return function() { + for (var _i = arguments.length, Cr = new Array(_i), la = 0; la < _i; la++) + Cr[la] = arguments[la]; + return le(An, Cr); + }; + } + function bt(An, _i, Cr) { + Cr = Cr || Te, F && F(An, null); + for (var la = _i.length; la--; ) { + var Ra = _i[la]; + if (typeof Ra == "string") { + var Jo = Cr(Ra); + Jo !== Ra && (U(_i) || (_i[la] = Jo), Ra = Jo); + } + An[Ra] = !0; + } + return An; + } + function gt(An) { + var _i, Cr = he(null); + for (_i in An) + ue(L, An, [_i]) === !0 && (Cr[_i] = An[_i]); + return Cr; + } + function je(An, _i) { + for (; An !== null; ) { + var Cr = Z(An, _i); + if (Cr) { + if (Cr.get) + return Je(Cr.get); + if (typeof Cr.value == "function") + return Je(Cr.value); + } + An = q(An); + } + function la(Ra) { + return console.warn("fallback value for", Ra), null; + } + return la; + } + var Qe = R(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), kt = R(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Wt = R(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), jt = R(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Zn = R(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]), Ft = R(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wn = R(["#text"]), un = R(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), ln = R(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), an = R(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ot = R(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), pt = J(/<%[\w\W]*|[\w\W]*%>/gm), Ci = J(/\${[\w\W]*}/gm), ut = J(/^data-[\-\w.\u00B7-\uFFFF]/), br = J(/^aria-[\-\w]+$/), zt = J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Wr = J(/^(?:\w+script|data):/i), zr = J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Si = J(/^html$/i), vr = function() { + return typeof window > "u" ? null : window; + }, Qr = function(An, _i) { + if (o(An) !== "object" || typeof An.createPolicy != "function") + return null; + var Cr = null, la = "data-tt-policy-suffix"; + _i.currentScript && _i.currentScript.hasAttribute(la) && (Cr = _i.currentScript.getAttribute(la)); + var Ra = "dompurify" + (Cr ? "#" + Cr : ""); + try { + return An.createPolicy(Ra, { createHTML: function(Jo) { + return Jo; + }, createScriptURL: function(Jo) { + return Jo; + } }); + } catch { + return console.warn("TrustedTypes policy " + Ra + " could not be created."), null; + } + }; + function or() { + var An = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vr(), _i = function(bn) { + return or(bn); + }; + if (_i.version = "2.4.3", _i.removed = [], !An || !An.document || An.document.nodeType !== 9) + return _i.isSupported = !1, _i; + var Cr = An.document, la = An.document, Ra = An.DocumentFragment, Jo = An.HTMLTemplateElement, Cc = An.Node, ji = An.Element, Ya = An.NodeFilter, Hr = An.NamedNodeMap, Yr = Hr === void 0 ? An.NamedNodeMap || An.MozNamedAttrMap : Hr, ni = An.HTMLFormElement, Vr = An.DOMParser, Na = An.trustedTypes, er = ji.prototype, as = je(er, "cloneNode"), xr = je(er, "nextSibling"), So = je(er, "childNodes"), cs = je(er, "parentNode"); + if (typeof Jo == "function") { + var xa = la.createElement("template"); + xa.content && xa.content.ownerDocument && (la = xa.content.ownerDocument); + } + var ro = Qr(Na, Cr), Lo = ro ? ro.createHTML("") : "", Xo = la, Zo = Xo.implementation, Fs = Xo.createNodeIterator, Hs = Xo.createDocumentFragment, Qa = Xo.getElementsByTagName, Ff = Cr.importNode, Oc = {}; + try { + Oc = gt(la).documentMode ? la.documentMode : {}; + } catch { + } + var Iu = {}; + _i.isSupported = typeof cs == "function" && Zo && Zo.createHTMLDocument !== void 0 && Oc !== 9; + var da, _c, qf = $n, wu = pt, jo = Ci, yf = ut, bl = br, cu = Wr, qc = zr, Jl = zt, js = null, Dc = bt({}, [].concat(A(Qe), A(kt), A(Wt), A(Zn), A(wn))), gs = null, rc = bt({}, [].concat(A(un), A(ln), A(an), A(Ot))), Ki = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), Ta = null, Bl = null, sf = !0, mc = !0, wh = !1, ra = !1, Ls = !1, pr = !1, Pr = !1, Wo = !1, hn = !1, wf = !1, Sn = !0, Nc = !1, Ro = "user-content-", T1 = !0, tr = !1, ei = {}, fi = null, ri = bt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Aa = null, ya = bt({}, ["audio", "video", "img", "source", "image", "track"]), fo = null, bs = bt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xo = "http://www.w3.org/1998/Math/MathML", sl = "http://www.w3.org/2000/svg", Mu = "http://www.w3.org/1999/xhtml", Zl = Mu, V1 = !1, il = null, kf = bt({}, [xo, sl, Mu], xe), eu = ["application/xhtml+xml", "text/html"], cl = "text/html", Ps = null, hb = la.createElement("form"), Of = function(bn) { + return bn instanceof RegExp || bn instanceof Function; + }, Sl = function(bn) { + Ps && Ps === bn || (bn && o(bn) === "object" || (bn = {}), bn = gt(bn), da = da = eu.indexOf(bn.PARSER_MEDIA_TYPE) === -1 ? cl : bn.PARSER_MEDIA_TYPE, _c = da === "application/xhtml+xml" ? xe : Te, js = "ALLOWED_TAGS" in bn ? bt({}, bn.ALLOWED_TAGS, _c) : Dc, gs = "ALLOWED_ATTR" in bn ? bt({}, bn.ALLOWED_ATTR, _c) : rc, il = "ALLOWED_NAMESPACES" in bn ? bt({}, bn.ALLOWED_NAMESPACES, xe) : kf, fo = "ADD_URI_SAFE_ATTR" in bn ? bt(gt(bs), bn.ADD_URI_SAFE_ATTR, _c) : bs, Aa = "ADD_DATA_URI_TAGS" in bn ? bt(gt(ya), bn.ADD_DATA_URI_TAGS, _c) : ya, fi = "FORBID_CONTENTS" in bn ? bt({}, bn.FORBID_CONTENTS, _c) : ri, Ta = "FORBID_TAGS" in bn ? bt({}, bn.FORBID_TAGS, _c) : {}, Bl = "FORBID_ATTR" in bn ? bt({}, bn.FORBID_ATTR, _c) : {}, ei = "USE_PROFILES" in bn && bn.USE_PROFILES, sf = bn.ALLOW_ARIA_ATTR !== !1, mc = bn.ALLOW_DATA_ATTR !== !1, wh = bn.ALLOW_UNKNOWN_PROTOCOLS || !1, ra = bn.SAFE_FOR_TEMPLATES || !1, Ls = bn.WHOLE_DOCUMENT || !1, Wo = bn.RETURN_DOM || !1, hn = bn.RETURN_DOM_FRAGMENT || !1, wf = bn.RETURN_TRUSTED_TYPE || !1, Pr = bn.FORCE_BODY || !1, Sn = bn.SANITIZE_DOM !== !1, Nc = bn.SANITIZE_NAMED_PROPS || !1, T1 = bn.KEEP_CONTENT !== !1, tr = bn.IN_PLACE || !1, Jl = bn.ALLOWED_URI_REGEXP || Jl, Zl = bn.NAMESPACE || Mu, bn.CUSTOM_ELEMENT_HANDLING && Of(bn.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ki.tagNameCheck = bn.CUSTOM_ELEMENT_HANDLING.tagNameCheck), bn.CUSTOM_ELEMENT_HANDLING && Of(bn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ki.attributeNameCheck = bn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), bn.CUSTOM_ELEMENT_HANDLING && typeof bn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ki.allowCustomizedBuiltInElements = bn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ra && (mc = !1), hn && (Wo = !0), ei && (js = bt({}, A(wn)), gs = [], ei.html === !0 && (bt(js, Qe), bt(gs, un)), ei.svg === !0 && (bt(js, kt), bt(gs, ln), bt(gs, Ot)), ei.svgFilters === !0 && (bt(js, Wt), bt(gs, ln), bt(gs, Ot)), ei.mathMl === !0 && (bt(js, Zn), bt(gs, an), bt(gs, Ot))), bn.ADD_TAGS && (js === Dc && (js = gt(js)), bt(js, bn.ADD_TAGS, _c)), bn.ADD_ATTR && (gs === rc && (gs = gt(gs)), bt(gs, bn.ADD_ATTR, _c)), bn.ADD_URI_SAFE_ATTR && bt(fo, bn.ADD_URI_SAFE_ATTR, _c), bn.FORBID_CONTENTS && (fi === ri && (fi = gt(fi)), bt(fi, bn.FORBID_CONTENTS, _c)), T1 && (js["#text"] = !0), Ls && bt(js, ["html", "head", "body"]), js.table && (bt(js, ["tbody"]), delete Ta.tbody), R && R(bn), Ps = bn); + }, U0 = bt({}, ["mi", "mo", "mn", "ms", "mtext"]), Yf = bt({}, ["foreignobject", "desc", "title", "annotation-xml"]), H0 = bt({}, ["title", "style", "font", "a", "script"]), cf = bt({}, kt); + bt(cf, Wt), bt(cf, jt); + var Ad = bt({}, Zn); + bt(Ad, Ft); + var Ep = function(bn) { + var ia = cs(bn); + ia && ia.tagName || (ia = { namespaceURI: Zl, tagName: "template" }); + var Ca = Te(bn.tagName), vl = Te(ia.tagName); + return !!il[bn.namespaceURI] && (bn.namespaceURI === sl ? ia.namespaceURI === Mu ? Ca === "svg" : ia.namespaceURI === xo ? Ca === "svg" && (vl === "annotation-xml" || U0[vl]) : !!cf[Ca] : bn.namespaceURI === xo ? ia.namespaceURI === Mu ? Ca === "math" : ia.namespaceURI === sl ? Ca === "math" && Yf[vl] : !!Ad[Ca] : bn.namespaceURI === Mu ? !(ia.namespaceURI === sl && !Yf[vl]) && !(ia.namespaceURI === xo && !U0[vl]) && !Ad[Ca] && (H0[Ca] || !cf[Ca]) : !(da !== "application/xhtml+xml" || !il[bn.namespaceURI])); + }, Md = function(bn) { + de(_i.removed, { element: bn }); + try { + bn.parentNode.removeChild(bn); + } catch { + try { + bn.outerHTML = Lo; + } catch { + bn.remove(); + } + } + }, mn = function(bn, ia) { + try { + de(_i.removed, { attribute: ia.getAttributeNode(bn), from: ia }); + } catch { + de(_i.removed, { attribute: null, from: ia }); + } + if (ia.removeAttribute(bn), bn === "is" && !gs[bn]) + if (Wo || hn) + try { + Md(ia); + } catch { + } + else + try { + ia.setAttribute(bn, ""); + } catch { + } + }, io = function(bn) { + var ia, Ca; + if (Pr) + bn = "" + bn; + else { + var vl = ie(bn, /^[\r\n\t ]+/); + Ca = vl && vl[0]; + } + da === "application/xhtml+xml" && Zl === Mu && (bn = '' + bn + ""); + var ku = ro ? ro.createHTML(bn) : bn; + if (Zl === Mu) + try { + ia = new Vr().parseFromString(ku, da); + } catch { + } + if (!ia || !ia.documentElement) { + ia = Zo.createDocument(Zl, "template", null); + try { + ia.documentElement.innerHTML = V1 ? Lo : ku; + } catch { + } + } + var lf = ia.body || ia.documentElement; + return bn && Ca && lf.insertBefore(la.createTextNode(Ca), lf.childNodes[0] || null), Zl === Mu ? Qa.call(ia, Ls ? "html" : "body")[0] : Ls ? ia.documentElement : lf; + }, Ba = function(bn) { + return Fs.call(bn.ownerDocument || bn, bn, Ya.SHOW_ELEMENT | Ya.SHOW_COMMENT | Ya.SHOW_TEXT, null, !1); + }, bc = function(bn) { + return bn instanceof ni && (typeof bn.nodeName != "string" || typeof bn.textContent != "string" || typeof bn.removeChild != "function" || !(bn.attributes instanceof Yr) || typeof bn.removeAttribute != "function" || typeof bn.setAttribute != "function" || typeof bn.namespaceURI != "string" || typeof bn.insertBefore != "function" || typeof bn.hasChildNodes != "function"); + }, jc = function(bn) { + return o(Cc) === "object" ? bn instanceof Cc : bn && o(bn) === "object" && typeof bn.nodeType == "number" && typeof bn.nodeName == "string"; + }, ll = function(bn, ia, Ca) { + Iu[bn] && be(Iu[bn], function(vl) { + vl.call(_i, ia, Ca, Ps); + }); + }, Df = function(bn) { + var ia; + if (ll("beforeSanitizeElements", bn, null), bc(bn) || ve(/[\u0080-\uFFFF]/, bn.nodeName)) + return Md(bn), !0; + var Ca = _c(bn.nodeName); + if (ll("uponSanitizeElement", bn, { tagName: Ca, allowedTags: js }), bn.hasChildNodes() && !jc(bn.firstElementChild) && (!jc(bn.content) || !jc(bn.content.firstElementChild)) && ve(/<[/\w]/g, bn.innerHTML) && ve(/<[/\w]/g, bn.textContent) || Ca === "select" && ve(/