From 4991d84e9292698358f68bdc77fb9d9d3959df4e Mon Sep 17 00:00:00 2001 From: antmicrobot Date: Wed, 9 Oct 2024 07:30:02 +0000 Subject: [PATCH] deploy: df5b86c355944b7ed22840f239046303a3b5ffa3 --- MystEditor.js | 32442 +++++++++++++++++++------------------- docs/collaboration.html | 2 +- docs/comments.html | 2 +- docs/genindex.html | 2 +- docs/index.html | 2 +- docs/introduction.html | 2 +- docs/mermaid.html | 2 +- docs/rich-links.html | 2 +- docs/topbar.html | 2 +- 9 files changed, 16240 insertions(+), 16218 deletions(-) diff --git a/MystEditor.js b/MystEditor.js index d9f0b3c..b5dfee8 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -1,6 +1,6 @@ -var Kve = Object.defineProperty; -var Jve = (t, e, r) => e in t ? Kve(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; -var Or = (t, e, r) => (Jve(t, typeof e != "symbol" ? e + "" : e, r), r), eye = (t, e, r) => { +var Jve = Object.defineProperty; +var eye = (t, e, r) => e in t ? Jve(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; +var Or = (t, e, r) => (eye(t, typeof e != "symbol" ? e + "" : e, r), r), tye = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; @@ -9,14 +9,14 @@ var nw = (t, e, r) => { throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); }; -var Tm = (t, e, r) => (eye(t, e, "access private method"), r); -var Ub, $t, aZ, dd, c$, oZ, mA, lZ, my = {}, cZ = [], tye = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, SS = Array.isArray; +var Tm = (t, e, r) => (tye(t, e, "access private method"), r); +var Ub, $t, oZ, dd, c$, lZ, vA, cZ, my = {}, uZ = [], rye = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TS = Array.isArray; function yu(t, e) { for (var r in e) t[r] = e[r]; return t; } -function uZ(t) { +function hZ(t) { var e = t.parentNode; e && e.removeChild(t); } @@ -30,10 +30,10 @@ function Rl(t, e, r) { return zv(t, a, n, i, null); } function zv(t, e, r, n, i) { - var s = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++aZ : i, __i: -1, __u: 0 }; + var s = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++oZ : i, __i: -1, __u: 0 }; return i == null && $t.vnode != null && $t.vnode(s), s; } -function rye() { +function nye() { return { current: null }; } function Nu(t) { @@ -50,7 +50,7 @@ function vg(t, e) { return r.__e; return typeof t.type == "function" ? vg(t) : null; } -function hZ(t) { +function fZ(t) { var e, r; if ((t = t.__) != null && t.__c != null) { for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) @@ -58,47 +58,47 @@ function hZ(t) { t.__e = t.__c.base = r.__e; break; } - return hZ(t); + return fZ(t); } } -function vA(t) { - (!t.__d && (t.__d = !0) && dd.push(t) && !d5.__r++ || c$ !== $t.debounceRendering) && ((c$ = $t.debounceRendering) || oZ)(d5); +function yA(t) { + (!t.__d && (t.__d = !0) && dd.push(t) && !d5.__r++ || c$ !== $t.debounceRendering) && ((c$ = $t.debounceRendering) || lZ)(d5); } function d5() { var t, e, r, n, i, s, a, o, l; - for (dd.sort(mA); t = dd.shift(); ) - t.__d && (e = dd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = yu({}, i)).__v = i.__v + 1, $t.vnode && $t.vnode(n), xR(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? vg(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, pZ(o, n, l), n.__e != s && hZ(n)), dd.length > e && dd.sort(mA)); + for (dd.sort(vA); t = dd.shift(); ) + t.__d && (e = dd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = yu({}, i)).__v = i.__v + 1, $t.vnode && $t.vnode(n), wR(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? vg(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, gZ(o, n, l), n.__e != s && fZ(n)), dd.length > e && dd.sort(vA)); d5.__r = 0; } -function fZ(t, e, r, n, i, s, a, o, l, u, h) { - var f, d, p, g, m, v = n && n.__k || cZ, y = e.length; - for (r.__d = l, nye(r, e, v), l = r.__d, f = 0; f < y; f++) - (p = r.__k[f]) != null && typeof p != "boolean" && typeof p != "function" && (d = p.__i === -1 ? my : v[p.__i] || my, p.__i = f, xR(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && wR(d.ref, null, p), h.push(p.ref, p.__c || g, p)), m == null && g != null && (m = g), 65536 & p.__u || d.__k === p.__k ? l = dZ(p, l, t) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : g && (l = g.nextSibling), p.__d = void 0, p.__u &= -196609); +function dZ(t, e, r, n, i, s, a, o, l, u, h) { + var f, d, p, g, m, v = n && n.__k || uZ, y = e.length; + for (r.__d = l, iye(r, e, v), l = r.__d, f = 0; f < y; f++) + (p = r.__k[f]) != null && typeof p != "boolean" && typeof p != "function" && (d = p.__i === -1 ? my : v[p.__i] || my, p.__i = f, wR(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && OR(d.ref, null, p), h.push(p.ref, p.__c || g, p)), m == null && g != null && (m = g), 65536 & p.__u || d.__k === p.__k ? l = pZ(p, l, t) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : g && (l = g.nextSibling), p.__d = void 0, p.__u &= -196609); r.__d = l, r.__e = m; } -function nye(t, e, r) { +function iye(t, e, r) { var n, i, s, a, o, l = e.length, u = r.length, h = u, f = 0; for (t.__k = [], n = 0; n < l; n++) - (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? zv(null, i, null, null, i) : SS(i) ? zv(Nu, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? zv(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = iye(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = vg(s)), yA(s, s, !1), r[n] = null, h--); + (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? zv(null, i, null, null, i) : TS(i) ? zv(Nu, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? zv(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = sye(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = vg(s)), bA(s, s, !1), r[n] = null, h--); if (h) for (n = 0; n < u; n++) - (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = vg(s)), yA(s, s)); + (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = vg(s)), bA(s, s)); } -function dZ(t, e, r) { +function pZ(t, e, r) { var n, i; if (typeof t.type == "function") { for (n = t.__k, i = 0; n && i < n.length; i++) - n[i] && (n[i].__ = t, e = dZ(n[i], e, r)); + n[i] && (n[i].__ = t, e = pZ(n[i], e, r)); return e; } return t.__e != e && (r.insertBefore(t.__e, e || null), e = t.__e), e && e.nextSibling; } function Su(t, e) { - return e = e || [], t == null || typeof t == "boolean" || (SS(t) ? t.some(function(r) { + return e = e || [], t == null || typeof t == "boolean" || (TS(t) ? t.some(function(r) { Su(r, e); }) : e.push(t)), e; } -function iye(t, e, r, n) { +function sye(t, e, r, n) { var i = t.key, s = t.type, a = r - 1, o = r + 1, l = e[r]; if (l === null || l && i == l.key && s === l.type) return r; @@ -118,7 +118,7 @@ function iye(t, e, r, n) { return -1; } function u$(t, e, r) { - e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || tye.test(e) ? r : r + "px"; + e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || rye.test(e) ? r : r + "px"; } function iw(t, e, r, n, i) { var s; @@ -160,20 +160,20 @@ function h$(t) { function f$(t) { return this.l[t.type + !0]($t.event ? $t.event(t) : t); } -function xR(t, e, r, n, i, s, a, o, l, u) { - var h, f, d, p, g, m, v, y, b, w, O, S, C, T, L, E = e.type; +function wR(t, e, r, n, i, s, a, o, l, u) { + var h, f, d, p, g, m, v, y, b, w, O, S, C, T, A, E = e.type; if (e.constructor !== void 0) return null; 128 & r.__u && (l = !!(32 & r.__u), s = [o = e.__e = r.__e]), (h = $t.__b) && h(e); e: if (typeof E == "function") try { - if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ec(y, w), f.constructor = E, f.render = aye), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = yu({}, f.__s)), yu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) + if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ec(y, w), f.constructor = E, f.render = oye), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = yu({}, f.__s)), yu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) E.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount); else { if (E.getDerivedStateFromProps == null && y !== p && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, w), !f.__e && (f.shouldComponentUpdate != null && f.shouldComponentUpdate(y, f.__s, w) === !1 || e.__v === r.__v)) { - for (e.__v !== r.__v && (f.props = y, f.state = f.__s, f.__d = !1), e.__e = r.__e, e.__k = r.__k, e.__k.forEach(function(A) { - A && (A.__ = e); + for (e.__v !== r.__v && (f.props = y, f.state = f.__s, f.__d = !1), e.__e = r.__e, e.__k = r.__k, e.__k.forEach(function(L) { + L && (L.__ = e); }), O = 0; O < f._sb.length; O++) f.__h.push(f._sb[O]); f._sb = [], f.__h.length && a.push(f); @@ -191,18 +191,18 @@ function xR(t, e, r, n, i, s, a, o, l, u) { do f.__d = !1, S && S(e), h = f.render(f.props, f.state, f.context), f.state = f.__s; while (f.__d && ++C < 25); - f.state = f.__s, f.getChildContext != null && (n = yu(yu({}, n), f.getChildContext())), d || f.getSnapshotBeforeUpdate == null || (m = f.getSnapshotBeforeUpdate(p, g)), fZ(t, SS(L = h != null && h.type === Nu && h.key == null ? h.props.children : h) ? L : [L], e, r, n, i, s, a, o, l, u), f.base = e.__e, e.__u &= -161, f.__h.length && a.push(f), v && (f.__E = f.__ = null); - } catch (A) { - e.__v = null, l || s != null ? (e.__e = o, e.__u |= l ? 160 : 32, s[s.indexOf(o)] = null) : (e.__e = r.__e, e.__k = r.__k), $t.__e(A, e, r); + f.state = f.__s, f.getChildContext != null && (n = yu(yu({}, n), f.getChildContext())), d || f.getSnapshotBeforeUpdate == null || (m = f.getSnapshotBeforeUpdate(p, g)), dZ(t, TS(A = h != null && h.type === Nu && h.key == null ? h.props.children : h) ? A : [A], e, r, n, i, s, a, o, l, u), f.base = e.__e, e.__u &= -161, f.__h.length && a.push(f), v && (f.__E = f.__ = null); + } catch (L) { + e.__v = null, l || s != null ? (e.__e = o, e.__u |= l ? 160 : 32, s[s.indexOf(o)] = null) : (e.__e = r.__e, e.__k = r.__k), $t.__e(L, e, r); } else - s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = sye(r.__e, e, r, n, i, s, a, l, u); + s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = aye(r.__e, e, r, n, i, s, a, l, u); (h = $t.diffed) && h(e); } -function pZ(t, e, r) { +function gZ(t, e, r) { e.__d = void 0; for (var n = 0; n < r.length; n++) - wR(r[n], r[++n], r[++n]); + OR(r[n], r[++n], r[++n]); $t.__c && $t.__c(e, t), t.some(function(i) { try { t = i.__h, i.__h = [], t.some(function(s) { @@ -213,7 +213,7 @@ function pZ(t, e, r) { } }); } -function sye(t, e, r, n, i, s, a, o, l) { +function aye(t, e, r, n, i, s, a, o, l) { var u, h, f, d, p, g, m, v = r.props, y = e.props, b = e.type; if (b === "svg" && (i = !0), s != null) { for (u = 0; u < s.length; u++) @@ -239,23 +239,23 @@ function sye(t, e, r, n, i, s, a, o, l) { p = y[u], u == "children" ? d = p : u == "dangerouslySetInnerHTML" ? h = p : u == "value" ? g = p : u == "checked" ? m = p : u === "key" || o && typeof p != "function" || v[u] === p || iw(t, u, p, v[u], i); if (h) o || f && (h.__html === f.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), e.__k = []; - else if (f && (t.innerHTML = ""), fZ(t, SS(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && vg(r, 0), o, l), s != null) + else if (f && (t.innerHTML = ""), dZ(t, TS(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && vg(r, 0), o, l), s != null) for (u = s.length; u--; ) - s[u] != null && uZ(s[u]); + s[u] != null && hZ(s[u]); o || (u = "value", g !== void 0 && (g !== t[u] || b === "progress" && !g || b === "option" && g !== v[u]) && iw(t, u, g, v[u], !1), u = "checked", m !== void 0 && m !== t[u] && iw(t, u, m, v[u], !1)); } return t; } -function wR(t, e, r) { +function OR(t, e, r) { try { typeof t == "function" ? t(e) : t.current = e; } catch (n) { $t.__e(n, r); } } -function yA(t, e, r) { +function bA(t, e, r) { var n, i; - if ($t.unmount && $t.unmount(t), (n = t.ref) && (n.current && n.current !== t.__e || wR(n, null, e)), (n = t.__c) != null) { + if ($t.unmount && $t.unmount(t), (n = t.ref) && (n.current && n.current !== t.__e || OR(n, null, e)), (n = t.__c) != null) { if (n.componentWillUnmount) try { n.componentWillUnmount(); @@ -266,27 +266,27 @@ function yA(t, e, r) { } if (n = t.__k) for (i = 0; i < n.length; i++) - n[i] && yA(n[i], e, r || typeof t.type != "function"); - r || t.__e == null || uZ(t.__e), t.__ = t.__e = t.__d = void 0; + n[i] && bA(n[i], e, r || typeof t.type != "function"); + r || t.__e == null || hZ(t.__e), t.__ = t.__e = t.__d = void 0; } -function aye(t, e, r) { +function oye(t, e, r) { return this.constructor(t, r); } function yg(t, e, r) { var n, i, s, a; - $t.__ && $t.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, s = [], a = [], xR(e, t = (!n && r || e).__k = Rl(Nu, null, [t]), i || my, my, e.ownerSVGElement !== void 0, !n && r ? [r] : i ? null : e.firstChild ? Ub.call(e.childNodes) : null, s, !n && r ? r : i ? i.__e : e.firstChild, n, a), pZ(s, t, a); + $t.__ && $t.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, s = [], a = [], wR(e, t = (!n && r || e).__k = Rl(Nu, null, [t]), i || my, my, e.ownerSVGElement !== void 0, !n && r ? [r] : i ? null : e.firstChild ? Ub.call(e.childNodes) : null, s, !n && r ? r : i ? i.__e : e.firstChild, n, a), gZ(s, t, a); } -function gZ(t, e) { - yg(t, e, gZ); +function mZ(t, e) { + yg(t, e, mZ); } -function oye(t, e, r) { +function lye(t, e, r) { var n, i, s, a, o = yu({}, t.props); for (s in t.type && t.type.defaultProps && (a = t.type.defaultProps), e) s == "key" ? n = e[s] : s == "ref" ? i = e[s] : o[s] = e[s] === void 0 && a !== void 0 ? a[s] : e[s]; return arguments.length > 2 && (o.children = arguments.length > 3 ? Ub.call(arguments, 2) : r), zv(t.type, o, n || t.key, i || t.ref, null); } -function lye(t, e) { - var r = { __c: e = "__cC" + lZ++, __: t, Consumer: function(n, i) { +function cye(t, e) { + var r = { __c: e = "__cC" + cZ++, __: t, Consumer: function(n, i) { return n.children(i); }, Provider: function(n) { var i, s; @@ -294,7 +294,7 @@ function lye(t, e) { return s; }, this.shouldComponentUpdate = function(a) { this.props.value !== a.value && i.some(function(o) { - o.__e = !0, vA(o); + o.__e = !0, yA(o); }); }, this.sub = function(a) { i.push(a); @@ -306,7 +306,7 @@ function lye(t, e) { } }; return r.Provider.__ = r.Consumer.contextType = r; } -Ub = cZ.slice, $t = { __e: function(t, e, r, n) { +Ub = uZ.slice, $t = { __e: function(t, e, r, n) { for (var i, s, a; e = e.__; ) if ((i = e.__c) && !i.__) try { @@ -316,26 +316,26 @@ Ub = cZ.slice, $t = { __e: function(t, e, r, n) { t = o; } throw t; -} }, aZ = 0, Ec.prototype.setState = function(t, e) { +} }, oZ = 0, Ec.prototype.setState = function(t, e) { var r; - r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = yu({}, this.state), typeof t == "function" && (t = t(yu({}, r), this.props)), t && yu(r, t), t != null && this.__v && (e && this._sb.push(e), vA(this)); + r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = yu({}, this.state), typeof t == "function" && (t = t(yu({}, r), this.props)), t && yu(r, t), t != null && this.__v && (e && this._sb.push(e), yA(this)); }, Ec.prototype.forceUpdate = function(t) { - this.__v && (this.__e = !0, t && this.__h.push(t), vA(this)); -}, Ec.prototype.render = Nu, dd = [], oZ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mA = function(t, e) { + this.__v && (this.__e = !0, t && this.__h.push(t), yA(this)); +}, Ec.prototype.render = Nu, dd = [], lZ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, vA = function(t, e) { return t.__v.__b - e.__v.__b; -}, d5.__r = 0, lZ = 0; -var sf, vn, iE, d$, bg = 0, mZ = [], XO = [], p$ = $t.__b, g$ = $t.__r, m$ = $t.diffed, v$ = $t.__c, y$ = $t.unmount; +}, d5.__r = 0, cZ = 0; +var sf, vn, sE, d$, bg = 0, vZ = [], XO = [], p$ = $t.__b, g$ = $t.__r, m$ = $t.diffed, v$ = $t.__c, y$ = $t.unmount; function R1(t, e) { $t.__h && $t.__h(vn, t, bg || e), bg = 0; var r = vn.__H || (vn.__H = { __: [], __h: [] }); return t >= r.__.length && r.__.push({ __V: XO }), r.__[t]; } function Rn(t) { - return bg = 1, TS(yZ, t); + return bg = 1, CS(bZ, t); } -function TS(t, e, r) { +function CS(t, e, r) { var n = R1(sf++, 2); - if (n.t = t, !n.__c && (n.__ = [r ? r(e) : yZ(void 0, e), function(o) { + if (n.t = t, !n.__c && (n.__ = [r ? r(e) : bZ(void 0, e), function(o) { var l = n.__N ? n.__N[0] : n.__[0], u = n.t(l, o); l !== u && (n.__N = [u, n.__[1]], n.__c.setState({})); }], n.__c = vn, !vn.u)) { @@ -369,21 +369,21 @@ function TS(t, e, r) { } return n.__N || n.__; } -function Qi(t, e) { +function _i(t, e) { var r = R1(sf++, 3); - !$t.__s && OR(r.__H, e) && (r.__ = t, r.i = e, vn.__H.__h.push(r)); + !$t.__s && kR(r.__H, e) && (r.__ = t, r.i = e, vn.__H.__h.push(r)); } -function CS(t, e) { +function ES(t, e) { var r = R1(sf++, 4); - !$t.__s && OR(r.__H, e) && (r.__ = t, r.i = e, vn.__h.push(r)); + !$t.__s && kR(r.__H, e) && (r.__ = t, r.i = e, vn.__h.push(r)); } -function io(t) { +function Ra(t) { return bg = 5, Nn(function() { return { current: t }; }, []); } -function cye(t, e, r) { - bg = 6, CS(function() { +function uye(t, e, r) { + bg = 6, ES(function() { return typeof t == "function" ? (t(e()), function() { return t(null); }) : t ? (t.current = e(), function() { @@ -393,21 +393,21 @@ function cye(t, e, r) { } function Nn(t, e) { var r = R1(sf++, 7); - return OR(r.__H, e) ? (r.__V = t(), r.i = e, r.__h = t, r.__V) : r.__; + return kR(r.__H, e) ? (r.__V = t(), r.i = e, r.__h = t, r.__V) : r.__; } function p5(t, e) { return bg = 8, Nn(function() { return t; }, e); } -function vZ(t) { +function yZ(t) { var e = vn.context[t.__c], r = R1(sf++, 9); return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(vn)), e.props.value) : t.__; } -function bA(t, e) { +function xA(t, e) { $t.useDebugValue && $t.useDebugValue(e ? e(t) : t); } -function uye() { +function hye() { var t = R1(sf++, 11); if (!t.__) { for (var e = vn.__v; e !== null && !e.__m && e.__ !== null; ) @@ -417,11 +417,11 @@ function uye() { } return t.__; } -function hye() { - for (var t; t = mZ.shift(); ) +function fye() { + for (var t; t = vZ.shift(); ) if (t.__P && t.__H) try { - t.__H.__h.forEach(ZO), t.__H.__h.forEach(xA), t.__H.__h = []; + t.__H.__h.forEach(ZO), t.__H.__h.forEach(wA), t.__H.__h = []; } catch (e) { t.__H.__h = [], $t.__e(e, t.__v); } @@ -431,20 +431,20 @@ $t.__b = function(t) { }, $t.__r = function(t) { g$ && g$(t), sf = 0; var e = (vn = t.__c).__H; - e && (iE === vn ? (e.__h = [], vn.__h = [], e.__.forEach(function(r) { + e && (sE === vn ? (e.__h = [], vn.__h = [], e.__.forEach(function(r) { r.__N && (r.__ = r.__N), r.__V = XO, r.__N = r.i = void 0; - })) : (e.__h.forEach(ZO), e.__h.forEach(xA), e.__h = [], sf = 0)), iE = vn; + })) : (e.__h.forEach(ZO), e.__h.forEach(wA), e.__h = [], sf = 0)), sE = vn; }, $t.diffed = function(t) { m$ && m$(t); var e = t.__c; - e && e.__H && (e.__H.__h.length && (mZ.push(e) !== 1 && d$ === $t.requestAnimationFrame || ((d$ = $t.requestAnimationFrame) || fye)(hye)), e.__H.__.forEach(function(r) { + e && e.__H && (e.__H.__h.length && (vZ.push(e) !== 1 && d$ === $t.requestAnimationFrame || ((d$ = $t.requestAnimationFrame) || dye)(fye)), e.__H.__.forEach(function(r) { r.i && (r.__H = r.i), r.__V !== XO && (r.__ = r.__V), r.i = void 0, r.__V = XO; - })), iE = vn = null; + })), sE = vn = null; }, $t.__c = function(t, e) { e.some(function(r) { try { r.__h.forEach(ZO), r.__h = r.__h.filter(function(n) { - return !n.__ || xA(n); + return !n.__ || wA(n); }); } catch (n) { e.some(function(i) { @@ -464,7 +464,7 @@ $t.__b = function(t) { }), r.__H = void 0, e && $t.__e(e, r.__v)); }; var b$ = typeof requestAnimationFrame == "function"; -function fye(t) { +function dye(t) { var e, r = function() { clearTimeout(n), b$ && cancelAnimationFrame(e), setTimeout(t); }, n = setTimeout(r, 100); @@ -474,30 +474,30 @@ function ZO(t) { var e = vn, r = t.__c; typeof r == "function" && (t.__c = void 0, r()), vn = e; } -function xA(t) { +function wA(t) { var e = vn; t.__c = t.__(), vn = e; } -function OR(t, e) { +function kR(t, e) { return !t || t.length !== e.length || e.some(function(r, n) { return r !== t[n]; }); } -function yZ(t, e) { +function bZ(t, e) { return typeof e == "function" ? e(t) : e; } -var bZ = function(t, e, r, n) { +var xZ = function(t, e, r, n) { var i; e[0] = 0; for (var s = 1; s < e.length; s++) { var a = e[s++], o = e[s] ? (e[0] |= a ? 1 : 2, r[e[s++]]) : e[++s]; - a === 3 ? n[0] = o : a === 4 ? n[1] = Object.assign(n[1] || {}, o) : a === 5 ? (n[1] = n[1] || {})[e[++s]] = o : a === 6 ? n[1][e[++s]] += o + "" : a ? (i = t.apply(o, bZ(t, o, r, ["", null])), n.push(i), o[0] ? e[0] |= 2 : (e[s - 2] = 0, e[s] = i)) : n.push(o); + a === 3 ? n[0] = o : a === 4 ? n[1] = Object.assign(n[1] || {}, o) : a === 5 ? (n[1] = n[1] || {})[e[++s]] = o : a === 6 ? n[1][e[++s]] += o + "" : a ? (i = t.apply(o, xZ(t, o, r, ["", null])), n.push(i), o[0] ? e[0] |= 2 : (e[s - 2] = 0, e[s] = i)) : n.push(o); } return n; }, x$ = /* @__PURE__ */ new Map(); -function dye(t) { +function pye(t) { var e = x$.get(this); - return e || (e = /* @__PURE__ */ new Map(), x$.set(this, e)), (e = bZ(this, e.get(t) || (e.set(t, e = function(r) { + return e || (e = /* @__PURE__ */ new Map(), x$.set(this, e)), (e = xZ(this, e.get(t) || (e.set(t, e = function(r) { for (var n, i, s = 1, a = "", o = "", l = [0], u = function(d) { s === 1 && (d || (a = a.replace(/^\s*\n\s*|\s*\n\s*$/g, ""))) ? l.push(0, d, a) : s === 3 && (d || a) ? (l.push(3, d, a), s = 2) : s === 2 && a === "..." && d ? l.push(4, d, 0) : s === 2 && a && !d ? l.push(5, 0, !0, a) : s >= 5 && ((a || !d && s === 5) && (l.push(s, 0, a, i), s = 6), d && (l.push(s, d, 0, i), s = 6)), a = ""; }, h = 0; h < r.length; h++) { @@ -509,15 +509,15 @@ function dye(t) { return u(), l; }(t)), e), arguments, [])).length > 1 ? e : e[0]; } -var Bt = dye.bind(Rl), Ra = function() { - return Ra = Object.assign || function(e) { +var Bt = pye.bind(Rl), Ma = function() { + return Ma = Object.assign || function(e) { for (var r, n = 1, i = arguments.length; n < i; n++) { r = arguments[n]; for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]); } return e; - }, Ra.apply(this, arguments); + }, Ma.apply(this, arguments); }; function xg(t, e, r) { if (r || arguments.length === 2) @@ -525,23 +525,23 @@ function xg(t, e, r) { (s || !(n in e)) && (s || (s = Array.prototype.slice.call(e, 0, n)), s[n] = e[n]); return t.concat(s || Array.prototype.slice.call(e)); } -function pye(t) { +function gye(t) { var e = /* @__PURE__ */ Object.create(null); return function(r) { return e[r] === void 0 && (e[r] = t(r)), e[r]; }; } -var gye = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, mye = /* @__PURE__ */ pye( +var mye = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, vye = /* @__PURE__ */ gye( function(t) { - return gye.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; + return mye.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } ); -function xZ(t, e) { +function wZ(t, e) { for (var r in e) t[r] = e[r]; return t; } -function wA(t, e) { +function OA(t, e) { for (var r in t) if (r !== "__source" && !(r in e)) return !0; @@ -550,73 +550,73 @@ function wA(t, e) { return !0; return !1; } -function OA(t) { +function kA(t) { this.props = t; } -function vye(t, e) { +function yye(t, e) { function r(i) { var s = this.props.ref, a = s == i.ref; - return !a && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !a : wA(this.props, i); + return !a && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !a : OA(this.props, i); } function n(i) { return this.shouldComponentUpdate = r, Rl(t, i); } return n.displayName = "Memo(" + (t.displayName || t.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n; } -(OA.prototype = new Ec()).isPureReactComponent = !0, OA.prototype.shouldComponentUpdate = function(t, e) { - return wA(this.props, t) || wA(this.state, e); +(kA.prototype = new Ec()).isPureReactComponent = !0, kA.prototype.shouldComponentUpdate = function(t, e) { + return OA(this.props, t) || OA(this.state, e); }; var w$ = $t.__b; $t.__b = function(t) { t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), w$ && w$(t); }; -var yye = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -function bye(t) { +var bye = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +function xye(t) { function e(r) { - var n = xZ({}, r); + var n = wZ({}, r); return delete n.ref, t(n, r.ref || null); } - return e.$$typeof = yye, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; + return e.$$typeof = bye, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } var O$ = function(t, e) { return t == null ? null : Su(Su(t).map(e)); -}, xye = { map: O$, forEach: O$, count: function(t) { +}, wye = { map: O$, forEach: O$, count: function(t) { return t ? Su(t).length : 0; }, only: function(t) { var e = Su(t); if (e.length !== 1) throw "Children.only"; return e[0]; -}, toArray: Su }, wye = $t.__e; +}, toArray: Su }, Oye = $t.__e; $t.__e = function(t, e, r, n) { if (t.then) { for (var i, s = e; s = s.__; ) if ((i = s.__c) && i.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), i.__c(t, e); } - wye(t, e, r, n); + Oye(t, e, r, n); }; var k$ = $t.unmount; -function wZ(t, e, r) { +function OZ(t, e, r) { return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(n) { typeof n.__c == "function" && n.__c(); - }), t.__c.__H = null), (t = xZ({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { - return wZ(n, e, r); + }), t.__c.__H = null), (t = wZ({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { + return OZ(n, e, r); })), t; } -function OZ(t, e, r) { +function kZ(t, e, r) { return t && r && (t.__v = null, t.__k = t.__k && t.__k.map(function(n) { - return OZ(n, e, r); + return kZ(n, e, r); }), t.__c && t.__c.__P === e && (t.__e && r.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = r)), t; } function jO() { this.__u = 0, this.t = null, this.__b = null; } -function kZ(t) { +function SZ(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } -function Oye(t) { +function kye(t) { var e, r, n; function i(s) { if (e || (e = t()).then(function(a) { @@ -640,7 +640,7 @@ $t.unmount = function(t) { }, (jO.prototype = new Ec()).__c = function(t, e) { var r = e.__c, n = this; n.t == null && (n.t = []), n.t.push(r); - var i = kZ(n.__v), s = !1, a = function() { + var i = SZ(n.__v), s = !1, a = function() { s || (s = !0, r.__R = null, i ? i(o) : o()); }; r.__R = a; @@ -648,7 +648,7 @@ $t.unmount = function(t) { if (!--n.__u) { if (n.state.__a) { var l = n.state.__a; - n.__v.__k[0] = OZ(l, l.__c.__P, l.__c.__O); + n.__v.__k[0] = kZ(l, l.__c.__P, l.__c.__O); } var u; for (n.setState({ __a: n.__b = null }); u = n.t.pop(); ) @@ -662,7 +662,7 @@ $t.unmount = function(t) { if (this.__b) { if (this.__v.__k) { var r = document.createElement("div"), n = this.__v.__k[0].__c; - this.__v.__k[0] = wZ(this.__b, r, n.__O = n.__P); + this.__v.__k[0] = OZ(this.__b, r, n.__O = n.__P); } this.__b = null; } @@ -679,12 +679,12 @@ var S$ = function(t, e, r) { t.u = r = r[2]; } }; -function kye(t) { +function Sye(t) { return this.getChildContext = function() { return t.context; }, t.children; } -function Sye(t) { +function Tye(t) { var e = this, r = t.i; e.componentWillUnmount = function() { yg(null, e.l), e.l = null, e.i = null; @@ -694,14 +694,14 @@ function Sye(t) { this.childNodes.push(n), e.i.appendChild(n); }, removeChild: function(n) { this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n); - } }), yg(Rl(kye, { context: e.context }, t.__v), e.l); + } }), yg(Rl(Sye, { context: e.context }, t.__v), e.l); } -function Tye(t, e) { - var r = Rl(Sye, { __v: t, i: e }); +function Cye(t, e) { + var r = Rl(Tye, { __v: t, i: e }); return r.containerInfo = e, r; } (cv.prototype = new Ec()).__a = function(t) { - var e = this, r = kZ(e.__v), n = e.o.get(t); + var e = this, r = SZ(e.__v), n = e.o.get(t); return n[0]++, function(i) { var s = function() { e.props.revealOrder ? (n.push(i), S$(e, t, n)) : i(); @@ -721,14 +721,14 @@ function Tye(t, e) { S$(t, r, e); }); }; -var SZ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Cye = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Eye = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, _ye = /[A-Z0-9]/g, Aye = typeof document < "u", Lye = function(t) { +var TZ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Eye = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, _ye = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Aye = /[A-Z0-9]/g, Lye = typeof document < "u", Rye = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; -function Rye(t, e, r) { +function Mye(t, e, r) { return e.__k == null && (e.textContent = ""), yg(t, e), typeof r == "function" && r(), t ? t.__c : null; } -function Mye(t, e, r) { - return gZ(t, e), typeof r == "function" && r(), t ? t.__c : null; +function Dye(t, e, r) { + return mZ(t, e), typeof r == "function" && r(), t ? t.__c : null; } Ec.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { Object.defineProperty(Ec.prototype, t, { configurable: !0, get: function() { @@ -738,18 +738,18 @@ Ec.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive } }); }); var T$ = $t.event; -function Dye() { -} function Nye() { - return this.cancelBubble; } function Iye() { + return this.cancelBubble; +} +function Pye() { return this.defaultPrevented; } $t.event = function(t) { - return T$ && (t = T$(t)), t.persist = Dye, t.isPropagationStopped = Nye, t.isDefaultPrevented = Iye, t.nativeEvent = t; + return T$ && (t = T$(t)), t.persist = Nye, t.isPropagationStopped = Iye, t.isDefaultPrevented = Pye, t.nativeEvent = t; }; -var kR, Pye = { enumerable: !1, configurable: !0, get: function() { +var SR, $ye = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, C$ = $t.vnode; $t.vnode = function(t) { @@ -757,75 +757,75 @@ $t.vnode = function(t) { var r = e.props, n = e.type, i = {}; for (var s in r) { var a = r[s]; - if (!(s === "value" && "defaultValue" in r && a == null || Aye && s === "children" && n === "noscript" || s === "class" || s === "className")) { + if (!(s === "value" && "defaultValue" in r && a == null || Lye && s === "children" && n === "noscript" || s === "class" || s === "className")) { var o = s.toLowerCase(); - s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || Lye(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Eye.test(s) ? s = o : n.indexOf("-") === -1 && Cye.test(s) ? s = s.replace(_ye, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; + s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || Rye(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : _ye.test(s) ? s = o : n.indexOf("-") === -1 && Eye.test(s) ? s = s.replace(Aye, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; } } n == "select" && i.multiple && Array.isArray(i.value) && (i.value = Su(r.children).forEach(function(l) { l.props.selected = i.value.indexOf(l.props.value) != -1; })), n == "select" && i.defaultValue != null && (i.value = Su(r.children).forEach(function(l) { l.props.selected = i.multiple ? i.defaultValue.indexOf(l.props.value) != -1 : i.defaultValue == l.props.value; - })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Pye)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; - }(t), t.$$typeof = SZ, C$ && C$(t); + })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", $ye)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; + }(t), t.$$typeof = TZ, C$ && C$(t); }; var E$ = $t.__r; $t.__r = function(t) { - E$ && E$(t), kR = t.__c; + E$ && E$(t), SR = t.__c; }; var _$ = $t.diffed; $t.diffed = function(t) { _$ && _$(t); var e = t.props, r = t.__e; - r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), kR = null; + r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), SR = null; }; -var $ye = { ReactCurrentDispatcher: { current: { readContext: function(t) { - return kR.__n[t.__c].props.value; +var Bye = { ReactCurrentDispatcher: { current: { readContext: function(t) { + return SR.__n[t.__c].props.value; } } } }; -function Bye(t) { +function Fye(t) { return Rl.bind(null, t); } -function ES(t) { - return !!t && t.$$typeof === SZ; -} -function Fye(t) { - return ES(t) && t.type === Nu; +function _S(t) { + return !!t && t.$$typeof === TZ; } function zye(t) { - return ES(t) ? oye.apply(null, arguments) : t; + return _S(t) && t.type === Nu; } function Vye(t) { - return !!t.__k && (yg(null, t), !0); + return _S(t) ? lye.apply(null, arguments) : t; } function Uye(t) { + return !!t.__k && (yg(null, t), !0); +} +function qye(t) { return t && (t.base || t.nodeType === 1 && t) || null; } -var qye = function(t, e) { +var Qye = function(t, e) { return t(e); -}, Qye = function(t, e) { +}, Yye = function(t, e) { return t(e); -}, Yye = Nu; -function TZ(t) { +}, Wye = Nu; +function CZ(t) { t(); } -function Wye(t) { +function Gye(t) { return t; } -function Gye() { - return [!1, TZ]; +function Hye() { + return [!1, CZ]; } -var Hye = CS, Xye = ES; -function Zye(t, e) { +var Xye = ES, Zye = _S; +function jye(t, e) { var r = e(), n = Rn({ h: { __: r, v: e } }), i = n[0].h, s = n[1]; - return CS(function() { - i.__ = r, i.v = e, sE(i) && s({ h: i }); - }, [t, r, e]), Qi(function() { - return sE(i) && s({ h: i }), t(function() { - sE(i) && s({ h: i }); + return ES(function() { + i.__ = r, i.v = e, aE(i) && s({ h: i }); + }, [t, r, e]), _i(function() { + return aE(i) && s({ h: i }), t(function() { + aE(i) && s({ h: i }); }); }, [t]), r; } -function sE(t) { +function aE(t) { var e, r, n = t.v, i = t.__; try { var s = n(); @@ -834,11 +834,11 @@ function sE(t) { return !0; } } -var Gd = { useState: Rn, useId: uye, useReducer: TS, useEffect: Qi, useLayoutEffect: CS, useInsertionEffect: Hye, useTransition: Gye, useDeferredValue: Wye, useSyncExternalStore: Zye, startTransition: TZ, useRef: io, useImperativeHandle: cye, useMemo: Nn, useCallback: p5, useContext: vZ, useDebugValue: bA, version: "17.0.2", Children: xye, render: Rye, hydrate: Mye, unmountComponentAtNode: Vye, createPortal: Tye, createElement: Rl, createContext: lye, createFactory: Bye, cloneElement: zye, createRef: rye, Fragment: Nu, isValidElement: ES, isElement: Xye, isFragment: Fye, findDOMNode: Uye, Component: Ec, PureComponent: OA, memo: vye, forwardRef: bye, flushSync: Qye, unstable_batchedUpdates: qye, StrictMode: Yye, Suspense: jO, SuspenseList: cv, lazy: Oye, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $ye }, Uc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function CZ(t) { +var Gd = { useState: Rn, useId: hye, useReducer: CS, useEffect: _i, useLayoutEffect: ES, useInsertionEffect: Xye, useTransition: Hye, useDeferredValue: Gye, useSyncExternalStore: jye, startTransition: CZ, useRef: Ra, useImperativeHandle: uye, useMemo: Nn, useCallback: p5, useContext: yZ, useDebugValue: xA, version: "17.0.2", Children: wye, render: Mye, hydrate: Dye, unmountComponentAtNode: Uye, createPortal: Cye, createElement: Rl, createContext: cye, createFactory: Fye, cloneElement: Vye, createRef: nye, Fragment: Nu, isValidElement: _S, isElement: Zye, isFragment: zye, findDOMNode: qye, Component: Ec, PureComponent: kA, memo: yye, forwardRef: xye, flushSync: Yye, unstable_batchedUpdates: Qye, StrictMode: Wye, Suspense: jO, SuspenseList: cv, lazy: kye, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Bye }, Uc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function EZ(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function EZ(t) { +function _Z(t) { var e = t.default; if (typeof e == "function") { var r = function() { @@ -859,7 +859,7 @@ function EZ(t) { }); }), r; } -var jye = function(e, r, n, i) { +var Kye = function(e, r, n, i) { var s = n ? n.call(i, e, r) : void 0; if (s !== void 0) return !!s; @@ -879,11 +879,11 @@ var jye = function(e, r, n, i) { return !1; } return !0; -}, pn = "-ms-", Vv = "-moz-", Fr = "-webkit-", _Z = "comm", _S = "rule", SR = "decl", Kye = "@import", AZ = "@keyframes", Jye = "@layer", e2e = Math.abs, TR = String.fromCharCode, kA = Object.assign; -function t2e(t, e) { - return Ui(t, 0) ^ 45 ? (((e << 2 ^ Ui(t, 0)) << 2 ^ Ui(t, 1)) << 2 ^ Ui(t, 2)) << 2 ^ Ui(t, 3) : 0; +}, pn = "-ms-", Vv = "-moz-", Fr = "-webkit-", AZ = "comm", AS = "rule", TR = "decl", Jye = "@import", LZ = "@keyframes", e2e = "@layer", t2e = Math.abs, CR = String.fromCharCode, SA = Object.assign; +function r2e(t, e) { + return qi(t, 0) ^ 45 ? (((e << 2 ^ qi(t, 0)) << 2 ^ qi(t, 1)) << 2 ^ qi(t, 2)) << 2 ^ qi(t, 3) : 0; } -function LZ(t) { +function RZ(t) { return t.trim(); } function hu(t, e) { @@ -895,7 +895,7 @@ function vr(t, e, r) { function KO(t, e) { return t.indexOf(e); } -function Ui(t, e) { +function qi(t, e) { return t.charCodeAt(e) | 0; } function wg(t, e, r) { @@ -904,13 +904,13 @@ function wg(t, e, r) { function lc(t) { return t.length; } -function RZ(t) { +function MZ(t) { return t.length; } function uv(t, e) { return e.push(t), t; } -function r2e(t, e) { +function n2e(t, e) { return t.map(e).join(""); } function A$(t, e) { @@ -918,37 +918,37 @@ function A$(t, e) { return !hu(r, e); }); } -var AS = 1, Og = 1, MZ = 0, Vo = 0, li = 0, M1 = ""; -function LS(t, e, r, n, i, s, a, o) { - return { value: t, root: e, parent: r, type: n, props: i, children: s, line: AS, column: Og, length: a, return: "", siblings: o }; +var LS = 1, Og = 1, DZ = 0, Vo = 0, li = 0, M1 = ""; +function RS(t, e, r, n, i, s, a, o) { + return { value: t, root: e, parent: r, type: n, props: i, children: s, line: LS, column: Og, length: a, return: "", siblings: o }; } function wh(t, e) { - return kA(LS("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); + return SA(RS("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); } function ap(t) { for (; t.root; ) t = wh(t.root, { children: [t] }); uv(t, t.siblings); } -function n2e() { +function i2e() { return li; } -function i2e() { - return li = Vo > 0 ? Ui(M1, --Vo) : 0, Og--, li === 10 && (Og = 1, AS--), li; +function s2e() { + return li = Vo > 0 ? qi(M1, --Vo) : 0, Og--, li === 10 && (Og = 1, LS--), li; } function bl() { - return li = Vo < MZ ? Ui(M1, Vo++) : 0, Og++, li === 10 && (Og = 1, AS++), li; + return li = Vo < DZ ? qi(M1, Vo++) : 0, Og++, li === 10 && (Og = 1, LS++), li; } function Fd() { - return Ui(M1, Vo); + return qi(M1, Vo); } function JO() { return Vo; } -function RS(t, e) { +function MS(t, e) { return wg(M1, t, e); } -function SA(t) { +function TA(t) { switch (t) { case 0: case 9: @@ -980,36 +980,36 @@ function SA(t) { } return 0; } -function s2e(t) { - return AS = Og = 1, MZ = lc(M1 = t), Vo = 0, []; -} function a2e(t) { + return LS = Og = 1, DZ = lc(M1 = t), Vo = 0, []; +} +function o2e(t) { return M1 = "", t; } -function aE(t) { - return LZ(RS(Vo - 1, TA(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); +function oE(t) { + return RZ(MS(Vo - 1, CA(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function o2e(t) { +function l2e(t) { for (; (li = Fd()) && li < 33; ) bl(); - return SA(t) > 2 || SA(li) > 3 ? "" : " "; + return TA(t) > 2 || TA(li) > 3 ? "" : " "; } -function l2e(t, e) { +function c2e(t, e) { for (; --e && bl() && !(li < 48 || li > 102 || li > 57 && li < 65 || li > 70 && li < 97); ) ; - return RS(t, JO() + (e < 6 && Fd() == 32 && bl() == 32)); + return MS(t, JO() + (e < 6 && Fd() == 32 && bl() == 32)); } -function TA(t) { +function CA(t) { for (; bl(); ) switch (li) { case t: return Vo; case 34: case 39: - t !== 34 && t !== 39 && TA(li); + t !== 34 && t !== 39 && CA(li); break; case 40: - t === 41 && TA(t); + t === 41 && CA(t); break; case 92: bl(); @@ -1017,47 +1017,47 @@ function TA(t) { } return Vo; } -function c2e(t, e) { +function u2e(t, e) { for (; bl() && t + li !== 47 + 10; ) if (t + li === 42 + 42 && Fd() === 47) break; - return "/*" + RS(e, Vo - 1) + "*" + TR(t === 47 ? t : bl()); + return "/*" + MS(e, Vo - 1) + "*" + CR(t === 47 ? t : bl()); } -function u2e(t) { - for (; !SA(Fd()); ) +function h2e(t) { + for (; !TA(Fd()); ) bl(); - return RS(t, Vo); + return MS(t, Vo); } -function h2e(t) { - return a2e(e4("", null, null, null, [""], t = s2e(t), 0, [0], t)); +function f2e(t) { + return o2e(e4("", null, null, null, [""], t = a2e(t), 0, [0], t)); } function e4(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) switch (g = b, b = bl()) { case 40: - if (g != 108 && Ui(T, f - 1) == 58) { - KO(T += vr(aE(b), "&", "&\f"), "&\f") != -1 && (y = -1); + if (g != 108 && qi(T, f - 1) == 58) { + KO(T += vr(oE(b), "&", "&\f"), "&\f") != -1 && (y = -1); break; } case 34: case 39: case 91: - T += aE(b); + T += oE(b); break; case 9: case 10: case 13: case 32: - T += o2e(g); + T += l2e(g); break; case 92: - T += l2e(JO() - 1, 7); + T += c2e(JO() - 1, 7); continue; case 47: switch (Fd()) { case 42: case 47: - uv(f2e(c2e(bl(), JO()), e, r, l), l); + uv(d2e(u2e(bl(), JO()), e, r, l), l); break; default: T += "/"; @@ -1082,7 +1082,7 @@ function e4(t, e, r, n, i, s, a, o, l) { if (h === 0) e4(T, e, C, C, O, s, f, o, S); else - switch (d === 99 && Ui(T, 3) === 110 ? 100 : d) { + switch (d === 99 && qi(T, 3) === 110 ? 100 : d) { case 100: case 108: case 109: @@ -1101,10 +1101,10 @@ function e4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && i2e() == 125) + else if (b == 125 && m++ == 0 && s2e() == 125) continue; } - switch (T += TR(b), b * m) { + switch (T += CR(b), b * m) { case 38: y = h > 0 ? 1 : (T += "\f", -1); break; @@ -1112,7 +1112,7 @@ function e4(t, e, r, n, i, s, a, o, l) { o[u++] = (lc(T) - 1) * y, y = 1; break; case 64: - Fd() === 45 && (T += aE(bl())), d = Fd(), h = f = lc(w = T += u2e(JO())), b++; + Fd() === 45 && (T += oE(bl())), d = Fd(), h = f = lc(w = T += h2e(JO())), b++; break; case 45: g === 45 && lc(T) == 2 && (m = 0); @@ -1121,19 +1121,19 @@ function e4(t, e, r, n, i, s, a, o, l) { return s; } function L$(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = RZ(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = wg(t, d + 1, d = e2e(v = a[m])), O = t; b < g; ++b) - (O = LZ(v > 0 ? p[b] + " " + w : vr(w, /&\f/g, p[b]))) && (l[y++] = O); - return LS(t, e, r, i === 0 ? _S : o, l, u, h, f); + for (var d = i - 1, p = i === 0 ? s : [""], g = MZ(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var b = 0, w = wg(t, d + 1, d = t2e(v = a[m])), O = t; b < g; ++b) + (O = RZ(v > 0 ? p[b] + " " + w : vr(w, /&\f/g, p[b]))) && (l[y++] = O); + return RS(t, e, r, i === 0 ? AS : o, l, u, h, f); } -function f2e(t, e, r, n) { - return LS(t, e, r, _Z, TR(n2e()), wg(t, 2, -2), 0, n); +function d2e(t, e, r, n) { + return RS(t, e, r, AZ, CR(i2e()), wg(t, 2, -2), 0, n); } function R$(t, e, r, n, i) { - return LS(t, e, r, SR, wg(t, 0, n), wg(t, n + 1, -1), n, i); + return RS(t, e, r, TR, wg(t, 0, n), wg(t, n + 1, -1), n, i); } -function DZ(t, e, r) { - switch (t2e(t, e)) { +function NZ(t, e, r) { + switch (r2e(t, e)) { case 5103: return Fr + "print-" + t + t; case 5737: @@ -1171,7 +1171,7 @@ function DZ(t, e, r) { case 2756: return Fr + t + Vv + t + pn + t + t; case 5936: - switch (Ui(t, e + 11)) { + switch (qi(t, e + 11)) { case 114: return Fr + t + pn + vr(t, /[svh]\w+-[tblr]{2}/, "tb") + t; case 108: @@ -1241,14 +1241,14 @@ function DZ(t, e, r) { case 5021: case 4765: if (lc(t) - 1 - e > 6) - switch (Ui(t, e + 1)) { + switch (qi(t, e + 1)) { case 109: - if (Ui(t, e + 4) !== 45) + if (qi(t, e + 4) !== 45) break; case 102: - return vr(t, /(.+:)(.+)-([^]+)/, "$1" + Fr + "$2-$3$1" + Vv + (Ui(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; + return vr(t, /(.+:)(.+)-([^]+)/, "$1" + Fr + "$2-$3$1" + Vv + (qi(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; case 115: - return ~KO(t, "stretch") ? DZ(vr(t, "stretch", "fill-available"), e, r) + t : t; + return ~KO(t, "stretch") ? NZ(vr(t, "stretch", "fill-available"), e, r) + t : t; } break; case 5152: @@ -1257,13 +1257,13 @@ function DZ(t, e, r) { return pn + i + ":" + s + u + (a ? pn + i + "-span:" + (o ? l : +l - +s) + u : "") + t; }); case 4949: - if (Ui(t, e + 6) === 121) + if (qi(t, e + 6) === 121) return vr(t, ":", ":" + Fr) + t; break; case 6444: - switch (Ui(t, Ui(t, 14) === 45 ? 18 : 11)) { + switch (qi(t, qi(t, 14) === 45 ? 18 : 11)) { case 120: - return vr(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + Fr + (Ui(t, 14) === 45 ? "inline-" : "") + "box$3$1" + Fr + "$2$3$1" + pn + "$2box$3") + t; + return vr(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + Fr + (qi(t, 14) === 45 ? "inline-" : "") + "box$3$1" + Fr + "$2$3$1" + pn + "$2box$3") + t; case 100: return vr(t, ":", ":" + pn) + t; } @@ -1282,62 +1282,62 @@ function g5(t, e) { r += e(t[n], n, t, e) || ""; return r; } -function d2e(t, e, r, n) { +function p2e(t, e, r, n) { switch (t.type) { - case Jye: + case e2e: if (t.children.length) break; - case Kye: - case SR: + case Jye: + case TR: return t.return = t.return || t.value; - case _Z: - return ""; case AZ: + return ""; + case LZ: return t.return = t.value + "{" + g5(t.children, n) + "}"; - case _S: + case AS: if (!lc(t.value = t.props.join(","))) return ""; } return lc(r = g5(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -function p2e(t) { - var e = RZ(t); +function g2e(t) { + var e = MZ(t); return function(r, n, i, s) { for (var a = "", o = 0; o < e; o++) a += t[o](r, n, i, s) || ""; return a; }; } -function g2e(t) { +function m2e(t) { return function(e) { e.root || (e = e.return) && t(e); }; } -function m2e(t, e, r, n) { +function v2e(t, e, r, n) { if (t.length > -1 && !t.return) switch (t.type) { - case SR: - t.return = DZ(t.value, t.length, r); + case TR: + t.return = NZ(t.value, t.length, r); return; - case AZ: + case LZ: return g5([wh(t, { value: vr(t.value, "@", "@" + Fr) })], n); - case _S: + case AS: if (t.length) - return r2e(r = t.props, function(i) { + return n2e(r = t.props, function(i) { switch (hu(i, n = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - ap(wh(t, { props: [vr(i, /:(read-\w+)/, ":" + Vv + "$1")] })), ap(wh(t, { props: [i] })), kA(t, { props: A$(r, n) }); + ap(wh(t, { props: [vr(i, /:(read-\w+)/, ":" + Vv + "$1")] })), ap(wh(t, { props: [i] })), SA(t, { props: A$(r, n) }); break; case "::placeholder": - ap(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + Fr + "input-$1")] })), ap(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + Vv + "$1")] })), ap(wh(t, { props: [vr(i, /:(plac\w+)/, pn + "input-$1")] })), ap(wh(t, { props: [i] })), kA(t, { props: A$(r, n) }); + ap(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + Fr + "input-$1")] })), ap(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + Vv + "$1")] })), ap(wh(t, { props: [vr(i, /:(plac\w+)/, pn + "input-$1")] })), ap(wh(t, { props: [i] })), SA(t, { props: A$(r, n) }); break; } return ""; }); } } -var v2e = { +var y2e = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -1384,8 +1384,8 @@ var v2e = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, Hd = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", NZ = "active", IZ = "data-styled-version", MS = "6.1.2", CR = `/*!sc*/ -`, ER = typeof window < "u" && "HTMLElement" in window, y2e = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), M$ = /invalid hook call/i, sw = /* @__PURE__ */ new Set(), b2e = function(t, e) { +}, Hd = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", IZ = "active", PZ = "data-styled-version", DS = "6.1.2", ER = `/*!sc*/ +`, _R = typeof window < "u" && "HTMLElement" in window, b2e = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), M$ = /invalid hook call/i, sw = /* @__PURE__ */ new Set(), x2e = function(t, e) { if ({}.NODE_ENV !== "production") { var r = e ? ' with the id of "'.concat(e, '"') : "", n = "The component ".concat(t).concat(r, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. @@ -1396,66 +1396,66 @@ To resolve this only create new StyledComponents outside of any render method an for (var o = [], l = 1; l < arguments.length; l++) o[l - 1] = arguments[l]; M$.test(a) ? (s = !1, sw.delete(n)) : i.apply(void 0, xg([a], o, !1)); - }, io(), s && !sw.has(n) && (console.warn(n), sw.add(n)); + }, Ra(), s && !sw.has(n) && (console.warn(n), sw.add(n)); } catch (a) { M$.test(a.message) && sw.delete(n); } finally { console.error = i; } } -}, DS = Object.freeze([]), kg = Object.freeze({}); -function x2e(t, e, r) { +}, NS = Object.freeze([]), kg = Object.freeze({}); +function w2e(t, e, r) { return r === void 0 && (r = kg), t.theme !== r.theme && t.theme || e || r.theme; } -var CA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), w2e = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, O2e = /(^-|-$)/g; +var EA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), O2e = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, k2e = /(^-|-$)/g; function D$(t) { - return t.replace(w2e, "-").replace(O2e, ""); + return t.replace(O2e, "-").replace(k2e, ""); } -var k2e = /(a)(d)/gi, aw = 52, N$ = function(t) { +var S2e = /(a)(d)/gi, aw = 52, N$ = function(t) { return String.fromCharCode(t + (t > 25 ? 39 : 97)); }; -function EA(t) { +function _A(t) { var e, r = ""; for (e = Math.abs(t); e > aw; e = e / aw | 0) r = N$(e % aw) + r; - return (N$(e % aw) + r).replace(k2e, "$1-$2"); + return (N$(e % aw) + r).replace(S2e, "$1-$2"); } -var oE, PZ = 5381, pd = function(t, e) { +var lE, $Z = 5381, pd = function(t, e) { for (var r = e.length; r; ) t = 33 * t ^ e.charCodeAt(--r); return t; -}, $Z = function(t) { - return pd(PZ, t); +}, BZ = function(t) { + return pd($Z, t); }; -function S2e(t) { - return EA($Z(t) >>> 0); +function T2e(t) { + return _A(BZ(t) >>> 0); } -function BZ(t) { +function FZ(t) { return {}.NODE_ENV !== "production" && typeof t == "string" && t || t.displayName || t.name || "Component"; } -function lE(t) { +function cE(t) { return typeof t == "string" && ({}.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase()); } -var FZ = typeof Symbol == "function" && Symbol.for, zZ = FZ ? Symbol.for("react.memo") : 60115, T2e = FZ ? Symbol.for("react.forward_ref") : 60112, C2e = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, E2e = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, VZ = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, _2e = ((oE = {})[T2e] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, oE[zZ] = VZ, oE); +var zZ = typeof Symbol == "function" && Symbol.for, VZ = zZ ? Symbol.for("react.memo") : 60115, C2e = zZ ? Symbol.for("react.forward_ref") : 60112, E2e = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, _2e = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, UZ = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, A2e = ((lE = {})[C2e] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, lE[VZ] = UZ, lE); function I$(t) { - return ("type" in (e = t) && e.type.$$typeof) === zZ ? VZ : "$$typeof" in t ? _2e[t.$$typeof] : C2e; + return ("type" in (e = t) && e.type.$$typeof) === VZ ? UZ : "$$typeof" in t ? A2e[t.$$typeof] : E2e; var e; } -var A2e = Object.defineProperty, L2e = Object.getOwnPropertyNames, P$ = Object.getOwnPropertySymbols, R2e = Object.getOwnPropertyDescriptor, M2e = Object.getPrototypeOf, $$ = Object.prototype; -function UZ(t, e, r) { +var L2e = Object.defineProperty, R2e = Object.getOwnPropertyNames, P$ = Object.getOwnPropertySymbols, M2e = Object.getOwnPropertyDescriptor, D2e = Object.getPrototypeOf, $$ = Object.prototype; +function qZ(t, e, r) { if (typeof e != "string") { if ($$) { - var n = M2e(e); - n && n !== $$ && UZ(t, n, r); + var n = D2e(e); + n && n !== $$ && qZ(t, n, r); } - var i = L2e(e); + var i = R2e(e); P$ && (i = i.concat(P$(e))); for (var s = I$(t), a = I$(e), o = 0; o < i.length; ++o) { var l = i[o]; - if (!(l in E2e || r && r[l] || a && l in a || s && l in s)) { - var u = R2e(e, l); + if (!(l in _2e || r && r[l] || a && l in a || s && l in s)) { + var u = M2e(e, l); try { - A2e(t, l, u); + L2e(t, l, u); } catch { } } @@ -1466,7 +1466,7 @@ function UZ(t, e, r) { function Sg(t) { return typeof t == "function"; } -function _R(t) { +function AR(t) { return typeof t == "object" && "styledComponentId" in t; } function Td(t, e) { @@ -1482,21 +1482,21 @@ function B$(t, e) { function Tg(t) { return t !== null && typeof t == "object" && t.constructor.name === Object.name && !("props" in t && t.$$typeof); } -function _A(t, e, r) { +function AA(t, e, r) { if (r === void 0 && (r = !1), !r && !Tg(t) && !Array.isArray(t)) return e; if (Array.isArray(e)) for (var n = 0; n < e.length; n++) - t[n] = _A(t[n], e[n]); + t[n] = AA(t[n], e[n]); else if (Tg(e)) for (var n in e) - t[n] = _A(t[n], e[n]); + t[n] = AA(t[n], e[n]); return t; } -function AR(t, e) { +function LR(t, e) { Object.defineProperty(t, "toString", { value: e }); } -var D2e = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. +var N2e = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. @@ -1538,7 +1538,7 @@ as for instance in your render method then you may be running into this limitati `, 17: `CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a ``" } : {}; -function N2e() { +function I2e() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; for (var r = t[0], n = [], i = 1, s = t.length; i < s; i += 1) @@ -1550,9 +1550,9 @@ function N2e() { function D1(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(N2e.apply(void 0, xg([D2e[t]], e, !1)).trim()); + return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(I2e.apply(void 0, xg([N2e[t]], e, !1)).trim()); } -var I2e = function() { +var P2e = function() { function t(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } @@ -1583,7 +1583,7 @@ var I2e = function() { if (e >= this.length || this.groupSizes[e] === 0) return r; for (var n = this.groupSizes[e], i = this.indexOfGroup(e), s = i + n, a = i; a < s; a++) - r += "".concat(this.tag.getRule(a)).concat(CR); + r += "".concat(this.tag.getRule(a)).concat(ER); return r; }, t; }(), t4 = /* @__PURE__ */ new Map(), m5 = /* @__PURE__ */ new Map(), r4 = 1, ow = function(t) { @@ -1595,38 +1595,38 @@ var I2e = function() { if ({}.NODE_ENV !== "production" && ((0 | e) < 0 || e > 1073741824)) throw D1(16, "".concat(e)); return t4.set(t, e), m5.set(e, t), e; -}, P2e = function(t, e) { +}, $2e = function(t, e) { r4 = e + 1, t4.set(t, e), m5.set(e, t); -}, $2e = "style[".concat(Hd, "][").concat(IZ, '="').concat(MS, '"]'), B2e = new RegExp("^".concat(Hd, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), F2e = function(t, e, r) { +}, B2e = "style[".concat(Hd, "][").concat(PZ, '="').concat(DS, '"]'), F2e = new RegExp("^".concat(Hd, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), z2e = function(t, e, r) { for (var n, i = r.split(","), s = 0, a = i.length; s < a; s++) (n = i[s]) && t.registerName(e, n); -}, z2e = function(t, e) { - for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(CR), i = [], s = 0, a = n.length; s < a; s++) { +}, V2e = function(t, e) { + for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(ER), i = [], s = 0, a = n.length; s < a; s++) { var o = n[s].trim(); if (o) { - var l = o.match(B2e); + var l = o.match(F2e); if (l) { var u = 0 | parseInt(l[1], 10), h = l[2]; - u !== 0 && (P2e(h, u), F2e(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; + u !== 0 && ($2e(h, u), z2e(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; } else i.push(o); } } }; -function V2e() { +function U2e() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } -var qZ = function(t) { +var QZ = function(t) { var e = document.head, r = t || e, n = document.createElement("style"), i = function(o) { var l = Array.from(o.querySelectorAll("style[".concat(Hd, "]"))); return l[l.length - 1]; }(r), s = i !== void 0 ? i.nextSibling : null; - n.setAttribute(Hd, NZ), n.setAttribute(IZ, MS); - var a = V2e(); + n.setAttribute(Hd, IZ), n.setAttribute(PZ, DS); + var a = U2e(); return a && n.setAttribute("nonce", a), r.insertBefore(n, s), n; -}, U2e = function() { +}, q2e = function() { function t(e) { - this.element = qZ(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { + this.element = QZ(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { if (r.sheet) return r.sheet; for (var n = document.styleSheets, i = 0, s = n.length; i < s; i++) { @@ -1649,9 +1649,9 @@ var qZ = function(t) { var r = this.sheet.cssRules[e]; return r && r.cssText ? r.cssText : ""; }, t; -}(), q2e = function() { +}(), Q2e = function() { function t(e) { - this.element = qZ(e), this.nodes = this.element.childNodes, this.length = 0; + this.element = QZ(e), this.nodes = this.element.childNodes, this.length = 0; } return t.prototype.insertRule = function(e, r) { if (e <= this.length && e >= 0) { @@ -1664,7 +1664,7 @@ var qZ = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, t; -}(), Q2e = function() { +}(), Y2e = function() { function t(e) { this.rules = [], this.length = 0; } @@ -1675,16 +1675,16 @@ var qZ = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, t; -}(), F$ = ER, Y2e = { isServer: !ER, useCSSOMInjection: !y2e }, QZ = function() { +}(), F$ = _R, W2e = { isServer: !_R, useCSSOMInjection: !b2e }, YZ = function() { function t(e, r, n) { e === void 0 && (e = kg), r === void 0 && (r = {}); var i = this; - this.options = Ra(Ra({}, Y2e), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && ER && F$ && (F$ = !1, function(s) { - for (var a = document.querySelectorAll($2e), o = 0, l = a.length; o < l; o++) { + this.options = Ma(Ma({}, W2e), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && _R && F$ && (F$ = !1, function(s) { + for (var a = document.querySelectorAll(B2e), o = 0, l = a.length; o < l; o++) { var u = a[o]; - u && u.getAttribute(Hd) !== NZ && (z2e(s, u), u.parentNode && u.parentNode.removeChild(u)); + u && u.getAttribute(Hd) !== IZ && (V2e(s, u), u.parentNode && u.parentNode.removeChild(u)); } - }(this)), AR(this, function() { + }(this)), LR(this, function() { return function(s) { for (var a = s.getTag(), o = a.length, l = "", u = function(f) { var d = function(y) { @@ -1698,7 +1698,7 @@ var qZ = function(t) { var m = "".concat(Hd, ".g").concat(f, '[id="').concat(d, '"]'), v = ""; p !== void 0 && p.forEach(function(y) { y.length > 0 && (v += "".concat(y, ",")); - }), l += "".concat(g).concat(m, '{content:"').concat(v, '"}').concat(CR); + }), l += "".concat(g).concat(m, '{content:"').concat(v, '"}').concat(ER); }, h = 0; h < o; h++) u(h); return l; @@ -1708,14 +1708,14 @@ var qZ = function(t) { return t.registerId = function(e) { return ow(e); }, t.prototype.reconstructWithOptions = function(e, r) { - return r === void 0 && (r = !0), new t(Ra(Ra({}, this.options), e), this.gs, r && this.names || void 0); + return r === void 0 && (r = !0), new t(Ma(Ma({}, this.options), e), this.gs, r && this.names || void 0); }, t.prototype.allocateGSInstance = function(e) { return this.gs[e] = (this.gs[e] || 0) + 1; }, t.prototype.getTag = function() { return this.tag || (this.tag = (e = function(r) { var n = r.useCSSOMInjection, i = r.target; - return r.isServer ? new Q2e(i) : n ? new U2e(i) : new q2e(i); - }(this.options), new I2e(e))); + return r.isServer ? new Y2e(i) : n ? new q2e(i) : new Q2e(i); + }(this.options), new P2e(e))); var e; }, t.prototype.hasNameForId = function(e, r) { return this.names.has(e) && this.names.get(e).has(r); @@ -1735,70 +1735,70 @@ var qZ = function(t) { }, t.prototype.clearTag = function() { this.tag = void 0; }, t; -}(), W2e = /&/g, G2e = /^\s*\/\/.*$/gm; -function YZ(t, e) { +}(), G2e = /&/g, H2e = /^\s*\/\/.*$/gm; +function WZ(t, e) { return t.map(function(r) { return r.type === "rule" && (r.value = "".concat(e, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(e, " ")), r.props = r.props.map(function(n) { return "".concat(e, " ").concat(n); - })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = YZ(r.children, e)), r; + })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = WZ(r.children, e)), r; }); } -function WZ(t) { - var e, r, n, i = t === void 0 ? kg : t, s = i.options, a = s === void 0 ? kg : s, o = i.plugins, l = o === void 0 ? DS : o, u = function(d, p, g) { +function GZ(t) { + var e, r, n, i = t === void 0 ? kg : t, s = i.options, a = s === void 0 ? kg : s, o = i.plugins, l = o === void 0 ? NS : o, u = function(d, p, g) { return g === r || g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(e) : d; }, h = l.slice(); h.push(function(d) { - d.type === _S && d.value.includes("&") && (d.props[0] = d.props[0].replace(W2e, r).replace(n, u)); - }), a.prefix && h.push(m2e), h.push(d2e); + d.type === AS && d.value.includes("&") && (d.props[0] = d.props[0].replace(G2e, r).replace(n, u)); + }), a.prefix && h.push(v2e), h.push(p2e); var f = function(d, p, g, m) { p === void 0 && (p = ""), g === void 0 && (g = ""), m === void 0 && (m = "&"), e = m, r = p, n = new RegExp("\\".concat(r, "\\b"), "g"); - var v = d.replace(G2e, ""), y = h2e(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); - a.namespace && (y = YZ(y, a.namespace)); + var v = d.replace(H2e, ""), y = f2e(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); + a.namespace && (y = WZ(y, a.namespace)); var b = []; - return g5(y, p2e(h.concat(g2e(function(w) { + return g5(y, g2e(h.concat(m2e(function(w) { return b.push(w); })))), b; }; return f.hash = l.length ? l.reduce(function(d, p) { return p.name || D1(15), pd(d, p.name); - }, PZ).toString() : "", f; + }, $Z).toString() : "", f; } -var H2e = new QZ(), AA = WZ(), LR = Gd.createContext({ shouldForwardProp: void 0, styleSheet: H2e, stylis: AA }); -LR.Consumer; -var X2e = Gd.createContext(void 0); -function LA() { - return vZ(LR); +var X2e = new YZ(), LA = GZ(), RR = Gd.createContext({ shouldForwardProp: void 0, styleSheet: X2e, stylis: LA }); +RR.Consumer; +var Z2e = Gd.createContext(void 0); +function RA() { + return yZ(RR); } -function Z2e(t) { - var e = Rn(t.stylisPlugins), r = e[0], n = e[1], i = LA().styleSheet, s = Nn(function() { +function j2e(t) { + var e = Rn(t.stylisPlugins), r = e[0], n = e[1], i = RA().styleSheet, s = Nn(function() { var l = i; return t.sheet ? l = t.sheet : t.target && (l = l.reconstructWithOptions({ target: t.target }, !1)), t.disableCSSOMInjection && (l = l.reconstructWithOptions({ useCSSOMInjection: !1 })), l; }, [t.disableCSSOMInjection, t.sheet, t.target, i]), a = Nn(function() { - return WZ({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); + return GZ({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); }, [t.enableVendorPrefixes, t.namespace, r]); - Qi(function() { - jye(r, t.stylisPlugins) || n(t.stylisPlugins); + _i(function() { + Kye(r, t.stylisPlugins) || n(t.stylisPlugins); }, [t.stylisPlugins]); var o = Nn(function() { return { shouldForwardProp: t.shouldForwardProp, styleSheet: s, stylis: a }; }, [t.shouldForwardProp, s, a]); - return Gd.createElement(LR.Provider, { value: o }, Gd.createElement(X2e.Provider, { value: a }, t.children)); + return Gd.createElement(RR.Provider, { value: o }, Gd.createElement(Z2e.Provider, { value: a }, t.children)); } var z$ = function() { function t(e, r) { var n = this; this.inject = function(i, s) { - s === void 0 && (s = AA); + s === void 0 && (s = LA); var a = n.name + s.hash; i.hasNameForId(n.id, a) || i.insertRules(n.id, a, s(n.rules, a, "@keyframes")); - }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = r, AR(this, function() { + }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = r, LR(this, function() { throw D1(12, String(n.name)); }); } return t.prototype.getName = function(e) { - return e === void 0 && (e = AA), this.name + e.hash; + return e === void 0 && (e = LA), this.name + e.hash; }, t; -}(), j2e = function(t) { +}(), K2e = function(t) { return t >= "A" && t <= "Z"; }; function V$(t) { @@ -1806,47 +1806,47 @@ function V$(t) { var n = t[r]; if (r === 1 && n === "-" && t[0] === "-") return t; - j2e(n) ? e += "-" + n.toLowerCase() : e += n; + K2e(n) ? e += "-" + n.toLowerCase() : e += n; } return e.startsWith("ms-") ? "-" + e : e; } -var GZ = function(t) { +var HZ = function(t) { return t == null || t === !1 || t === ""; -}, HZ = function(t) { +}, XZ = function(t) { var e, r, n = []; for (var i in t) { var s = t[i]; - t.hasOwnProperty(i) && !GZ(s) && (Array.isArray(s) && s.isCss || Sg(s) ? n.push("".concat(V$(i), ":"), s, ";") : Tg(s) ? n.push.apply(n, xg(xg(["".concat(i, " {")], HZ(s), !1), ["}"], !1)) : n.push("".concat(V$(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in v2e || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); + t.hasOwnProperty(i) && !HZ(s) && (Array.isArray(s) && s.isCss || Sg(s) ? n.push("".concat(V$(i), ":"), s, ";") : Tg(s) ? n.push.apply(n, xg(xg(["".concat(i, " {")], XZ(s), !1), ["}"], !1)) : n.push("".concat(V$(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in y2e || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); } return n; }; function zd(t, e, r, n) { - if (GZ(t)) + if (HZ(t)) return []; - if (_R(t)) + if (AR(t)) return [".".concat(t.styledComponentId)]; if (Sg(t)) { if (!Sg(s = t) || s.prototype && s.prototype.isReactComponent || !e) return [t]; var i = t(e); - return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof z$ || Tg(i) || i === null || console.error("".concat(BZ(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), zd(i, e, r, n); + return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof z$ || Tg(i) || i === null || console.error("".concat(FZ(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), zd(i, e, r, n); } var s; - return t instanceof z$ ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : Tg(t) ? HZ(t) : Array.isArray(t) ? Array.prototype.concat.apply(DS, t.map(function(a) { + return t instanceof z$ ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : Tg(t) ? XZ(t) : Array.isArray(t) ? Array.prototype.concat.apply(NS, t.map(function(a) { return zd(a, e, r, n); })) : [t.toString()]; } -function K2e(t) { +function J2e(t) { for (var e = 0; e < t.length; e += 1) { var r = t[e]; - if (Sg(r) && !_R(r)) + if (Sg(r) && !AR(r)) return !1; } return !0; } -var J2e = $Z(MS), ebe = function() { +var ebe = BZ(DS), tbe = function() { function t(e, r, n) { - this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && K2e(e), this.componentId = r, this.baseHash = pd(J2e, r), this.baseStyle = n, QZ.registerId(r); + this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && J2e(e), this.componentId = r, this.baseHash = pd(ebe, r), this.baseStyle = n, YZ.registerId(r); } return t.prototype.generateAndInjectStyles = function(e, r, n) { var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n) : ""; @@ -1854,7 +1854,7 @@ var J2e = $Z(MS), ebe = function() { if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = Td(i, this.staticRulesId); else { - var s = B$(zd(this.rules, e, r, n)), a = EA(pd(this.baseHash, s) >>> 0); + var s = B$(zd(this.rules, e, r, n)), a = _A(pd(this.baseHash, s) >>> 0); if (!r.hasNameForId(this.componentId, a)) { var o = n(s, ".".concat(a), void 0, this.componentId); r.insertRules(this.componentId, a, o); @@ -1872,23 +1872,23 @@ var J2e = $Z(MS), ebe = function() { } } if (u) { - var p = EA(l >>> 0); + var p = _A(l >>> 0); r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(u, ".".concat(p), void 0, this.componentId)), i = Td(i, p); } } return i; }, t; -}(), XZ = Gd.createContext(void 0); -XZ.Consumer; -var cE = {}, U$ = /* @__PURE__ */ new Set(); -function tbe(t, e, r) { - var n = _R(t), i = t, s = !lE(t), a = e.attrs, o = a === void 0 ? DS : a, l = e.componentId, u = l === void 0 ? function(O, S) { +}(), ZZ = Gd.createContext(void 0); +ZZ.Consumer; +var uE = {}, U$ = /* @__PURE__ */ new Set(); +function rbe(t, e, r) { + var n = AR(t), i = t, s = !cE(t), a = e.attrs, o = a === void 0 ? NS : a, l = e.componentId, u = l === void 0 ? function(O, S) { var C = typeof O != "string" ? "sc" : D$(O); - cE[C] = (cE[C] || 0) + 1; - var T = "".concat(C, "-").concat(S2e(MS + C + cE[C])); + uE[C] = (uE[C] || 0) + 1; + var T = "".concat(C, "-").concat(T2e(DS + C + uE[C])); return S ? "".concat(S, "-").concat(T) : T; }(e.displayName, e.parentComponentId) : l, h = e.displayName, f = h === void 0 ? function(O) { - return lE(O) ? "styled.".concat(O) : "Styled(".concat(BZ(O), ")"); + return cE(O) ? "styled.".concat(O) : "Styled(".concat(FZ(O), ")"); }(t) : h, d = e.displayName && e.componentId ? "".concat(D$(e.displayName), "-").concat(e.componentId) : e.componentId || u, p = n && i.attrs ? i.attrs.concat(o).filter(Boolean) : o, g = e.shouldForwardProp; if (n && i.shouldForwardProp) { var m = i.shouldForwardProp; @@ -1900,28 +1900,28 @@ function tbe(t, e, r) { } else g = m; } - var y = new ebe(r, d, n ? i.componentStyle : void 0); + var y = new tbe(r, d, n ? i.componentStyle : void 0); function b(O, S) { - return function(C, T, L) { - var E = C.attrs, A = C.componentStyle, _ = C.defaultProps, R = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, N = Gd.useContext(XZ), M = LA(), I = C.shouldForwardProp || M.shouldForwardProp; - ({}).NODE_ENV !== "production" && bA($); + return function(C, T, A) { + var E = C.attrs, L = C.componentStyle, _ = C.defaultProps, R = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, N = Gd.useContext(ZZ), M = RA(), I = C.shouldForwardProp || M.shouldForwardProp; + ({}).NODE_ENV !== "production" && xA($); var D = function(W, ee, Y) { - for (var ne, ie = Ra(Ra({}, ee), { className: void 0, theme: Y }), U = 0; U < W.length; U += 1) { + for (var ne, ie = Ma(Ma({}, ee), { className: void 0, theme: Y }), U = 0; U < W.length; U += 1) { var Z = Sg(ne = W[U]) ? ne(ie) : ne; for (var G in Z) - ie[G] = G === "className" ? Td(ie[G], Z[G]) : G === "style" ? Ra(Ra({}, ie[G]), Z[G]) : Z[G]; + ie[G] = G === "className" ? Td(ie[G], Z[G]) : G === "style" ? Ma(Ma({}, ie[G]), Z[G]) : Z[G]; } return ee.className && (ie.className = Td(ie.className, ee.className)), ie; - }(E, T, x2e(T, N, _) || kg), P = D.as || k, F = {}; + }(E, T, w2e(T, N, _) || kg), P = D.as || k, F = {}; for (var B in D) - D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : I && !I(B, P) || (F[B] = D[B], I || {}.NODE_ENV !== "development" || mye(B) || U$.has(B) || !CA.has(P) || (U$.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); + D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : I && !I(B, P) || (F[B] = D[B], I || {}.NODE_ENV !== "development" || vye(B) || U$.has(B) || !EA.has(P) || (U$.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); var V = function(W, ee) { - var Y = LA(), ne = W.generateAndInjectStyles(ee, Y.styleSheet, Y.stylis); - return {}.NODE_ENV !== "production" && bA(ne), ne; - }(A, D); + var Y = RA(), ne = W.generateAndInjectStyles(ee, Y.styleSheet, Y.stylis); + return {}.NODE_ENV !== "production" && xA(ne), ne; + }(L, D); ({}).NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(V); var Q = Td(R, $); - return V && (Q += " " + V), D.className && (Q += " " + D.className), F[lE(P) && !CA.has(P) ? "class" : "className"] = Q, F.ref = L, Rl(P, F); + return V && (Q += " " + V), D.className && (Q += " " + D.className), F[cE(P) && !EA.has(P) ? "class" : "className"] = Q, F.ref = A, Rl(P, F); }(w, O, S); } b.displayName = f; @@ -1932,14 +1932,14 @@ function tbe(t, e, r) { this._foldedDefaultProps = n ? function(S) { for (var C = [], T = 1; T < arguments.length; T++) C[T - 1] = arguments[T]; - for (var L = 0, E = C; L < E.length; L++) - _A(S, E[L], !0); + for (var A = 0, E = C; A < E.length; A++) + AA(S, E[A], !0); return S; }({}, i.defaultProps, O) : O; - } }), {}.NODE_ENV !== "production" && (b2e(f, d), w.warnTooManyClasses = function(O, S) { + } }), {}.NODE_ENV !== "production" && (x2e(f, d), w.warnTooManyClasses = function(O, S) { var C = {}, T = !1; - return function(L) { - if (!T && (C[L] = !0, Object.keys(C).length >= 200)) { + return function(A) { + if (!T && (C[A] = !0, Object.keys(C).length >= 200)) { var E = S ? ' with the id of "'.concat(S, '"') : ""; console.warn("Over ".concat(200, " classes were generated for component ").concat(O).concat(E, `. `) + `Consider using the attrs method, together with a style object for frequently changed styles. @@ -1953,9 +1953,9 @@ Example: `), T = !0, C = {}; } }; - }(f, d)), AR(w, function() { + }(f, d)), LR(w, function() { return ".".concat(w.styledComponentId); - }), s && UZ(w, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w; + }), s && qZ(w, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w; } function q$(t, e) { for (var r = [t[0]], n = 0, i = e.length; n < i; n += 1) @@ -1969,11 +1969,11 @@ function Uv(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; if (Sg(t) || Tg(t)) - return Q$(zd(q$(DS, xg([t], e, !0)))); + return Q$(zd(q$(NS, xg([t], e, !0)))); var n = t; return e.length === 0 && n.length === 1 && typeof n[0] == "string" ? zd(n) : Q$(zd(q$(n, e))); } -function RA(t, e, r) { +function MA(t, e, r) { if (r === void 0 && (r = kg), !e) throw D1(1, e); var n = function(i) { @@ -1982,16 +1982,16 @@ function RA(t, e, r) { return t(e, r, Uv.apply(void 0, xg([i], s, !1))); }; return n.attrs = function(i) { - return RA(t, e, Ra(Ra({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) })); + return MA(t, e, Ma(Ma({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) })); }, n.withConfig = function(i) { - return RA(t, e, Ra(Ra({}, r), i)); + return MA(t, e, Ma(Ma({}, r), i)); }, n; } -var ZZ = function(t) { - return RA(tbe, t); -}, er = ZZ; -CA.forEach(function(t) { - er[t] = ZZ(t); +var jZ = function(t) { + return MA(rbe, t); +}, er = jZ; +EA.forEach(function(t) { + er[t] = jZ(t); }); ({}).NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native. Perhaps you're looking to import 'styled-components/native'? @@ -2041,7 +2041,7 @@ class Dr { return new qv(this, e); } iterRange(e, r = this.length) { - return new jZ(this, e, r); + return new KZ(this, e, r); } iterLines(e, r) { let n; @@ -2052,7 +2052,7 @@ class Dr { let i = this.line(e).from; n = this.iterRange(i, Math.max(i, r == this.lines + 1 ? this.length : r <= 1 ? 0 : this.line(r - 1).to)); } - return new KZ(n); + return new JZ(n); } toString() { return this.sliceString(0); @@ -2070,7 +2070,7 @@ class Dr { } } class jn extends Dr { - constructor(e, r = rbe(e)) { + constructor(e, r = nbe(e)) { super(), this.text = e, this.length = r; } get lines() { @@ -2083,7 +2083,7 @@ class jn extends Dr { for (let s = 0; ; s++) { let a = this.text[s], o = i + a.length; if ((r ? n : o) >= e) - return new nbe(i, o, n, a); + return new ibe(i, o, n, a); i = o + 1, n++; } } @@ -2226,7 +2226,7 @@ class hc extends Dr { } } Dr.empty = /* @__PURE__ */ new jn([""], 0); -function rbe(t) { +function nbe(t) { let e = -1; for (let r of t) e += r.length + 1; @@ -2273,7 +2273,7 @@ class qv { return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir); } } -class jZ { +class KZ { constructor(e, r, n) { this.value = "", this.done = !1, this.cursor = new qv(e, r > n ? -1 : 1), this.pos = r > n ? e.length : 0, this.from = Math.min(r, n), this.to = Math.max(r, n); } @@ -2293,7 +2293,7 @@ class jZ { return this.cursor.lineBreak && this.value != ""; } } -class KZ { +class JZ { constructor(e) { this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1; } @@ -2307,10 +2307,10 @@ class KZ { } typeof Symbol < "u" && (Dr.prototype[Symbol.iterator] = function() { return this.iter(); -}, qv.prototype[Symbol.iterator] = jZ.prototype[Symbol.iterator] = KZ.prototype[Symbol.iterator] = function() { +}, qv.prototype[Symbol.iterator] = KZ.prototype[Symbol.iterator] = JZ.prototype[Symbol.iterator] = function() { return this; }); -class nbe { +class ibe { constructor(e, r, n, i) { this.from = e, this.to = r, this.number = n, this.text = i; } @@ -2324,7 +2324,7 @@ function Cg(t, e, r) { let Qp = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); for (let t = 1; t < Qp.length; t++) Qp[t] += Qp[t - 1]; -function ibe(t) { +function sbe(t) { for (let e = 1; e < Qp.length; e += 2) if (Qp[e] > t) return Qp[e - 1] <= t; @@ -2335,16 +2335,16 @@ function W$(t) { } const G$ = 8205; function ls(t, e, r = !0, n = !0) { - return (r ? JZ : sbe)(t, e, n); + return (r ? ej : abe)(t, e, n); } -function JZ(t, e, r) { +function ej(t, e, r) { if (e == t.length) return e; - e && ej(t.charCodeAt(e)) && tj(t.charCodeAt(e - 1)) && e--; + e && tj(t.charCodeAt(e)) && rj(t.charCodeAt(e - 1)) && e--; let n = ss(t, e); for (e += Eo(n); e < t.length; ) { let i = ss(t, e); - if (n == G$ || i == G$ || r && ibe(i)) + if (n == G$ || i == G$ || r && sbe(i)) e += Eo(i), n = i; else if (W$(i)) { let s = 0, a = e - 2; @@ -2358,35 +2358,35 @@ function JZ(t, e, r) { } return e; } -function sbe(t, e, r) { +function abe(t, e, r) { for (; e > 0; ) { - let n = JZ(t, e - 2, r); + let n = ej(t, e - 2, r); if (n < e) return n; e--; } return 0; } -function ej(t) { +function tj(t) { return t >= 56320 && t < 57344; } -function tj(t) { +function rj(t) { return t >= 55296 && t < 56320; } function ss(t, e) { let r = t.charCodeAt(e); - if (!tj(r) || e + 1 == t.length) + if (!rj(r) || e + 1 == t.length) return r; let n = t.charCodeAt(e + 1); - return ej(n) ? (r - 55296 << 10) + (n - 56320) + 65536 : r; + return tj(n) ? (r - 55296 << 10) + (n - 56320) + 65536 : r; } -function RR(t) { +function MR(t) { return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); } function Eo(t) { return t < 65536 ? 1 : 2; } -const MA = /\r\n?|\n/; +const DA = /\r\n?|\n/; var Si = /* @__PURE__ */ function(t) { return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t; }(Si || (Si = {})); @@ -2418,7 +2418,7 @@ class _c { } } iterChangedRanges(e, r = !1) { - DA(this, e, r); + NA(this, e, r); } get invertedDesc() { let e = []; @@ -2429,10 +2429,10 @@ class _c { return new _c(e); } composeDesc(e) { - return this.empty ? e : e.empty ? this : rj(this, e); + return this.empty ? e : e.empty ? this : nj(this, e); } mapDesc(e, r = !1) { - return e.empty ? this : NA(this, e, r); + return e.empty ? this : IA(this, e, r); } mapPos(e, r = -1, n = Si.Simple) { let i = 0, s = 0; @@ -2491,10 +2491,10 @@ class ai extends _c { apply(e) { if (this.length != e.length) throw new RangeError("Applying change set to a document with the wrong length"); - return DA(this, (r, n, i, s, a) => e = e.replace(i, i + (n - r), a), !1), e; + return NA(this, (r, n, i, s, a) => e = e.replace(i, i + (n - r), a), !1), e; } mapDesc(e, r = !1) { - return NA(this, e, r, !0); + return IA(this, e, r, !0); } invert(e) { let r = this.sections.slice(), n = []; @@ -2512,13 +2512,13 @@ class ai extends _c { return new ai(r, n); } compose(e) { - return this.empty ? e : e.empty ? this : rj(this, e, !0); + return this.empty ? e : e.empty ? this : nj(this, e, !0); } map(e, r = !1) { - return e.empty ? this : NA(this, e, r, !0); + return e.empty ? this : IA(this, e, r, !0); } iterChanges(e, r = !1) { - DA(this, e, r); + NA(this, e, r); } get desc() { return _c.create(this.sections); @@ -2578,7 +2578,7 @@ class ai extends _c { let { from: f, to: d = f, insert: p } = h; if (f > d || f < 0 || d > r) throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${r})`); - let g = p ? typeof p == "string" ? Dr.of(p.split(n || MA)) : p : Dr.empty, m = g.length; + let g = p ? typeof p == "string" ? Dr.of(p.split(n || DA)) : p : Dr.empty, m = g.length; if (f == d && m == 0) return; f < a && l(), f > a && As(i, f - a, -1), As(i, d - f, m), Nh(s, i, g), a = d; @@ -2633,7 +2633,7 @@ function Nh(t, e, r) { t.push(r); } } -function DA(t, e, r) { +function NA(t, e, r) { let n = t.inserted; for (let i = 0, s = 0, a = 0; a < t.sections.length; ) { let o = t.sections[a++], l = t.sections[a++]; @@ -2647,7 +2647,7 @@ function DA(t, e, r) { } } } -function NA(t, e, r, n = !1) { +function IA(t, e, r, n = !1) { let i = [], s = n ? [] : null, a = new vy(t), o = new vy(e); for (let l = -1; ; ) if (a.ins == -1 && o.ins == -1) { @@ -2677,7 +2677,7 @@ function NA(t, e, r, n = !1) { throw new Error("Mismatched change set lengths"); } } -function rj(t, e, r = !1) { +function nj(t, e, r = !1) { let n = [], i = r ? [] : null, s = new vy(t), a = new vy(e); for (let o = !1; ; ) { if (s.done && a.done) @@ -2849,21 +2849,21 @@ class Ve { return new Ve(e, r); } } -function nj(t, e) { +function ij(t, e) { for (let r of t.ranges) if (r.to > e) throw new RangeError("Selection points outside of document"); } -let MR = 0; +let DR = 0; class _t { constructor(e, r, n, i, s) { - this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = MR++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s; + this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = DR++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s; } get reader() { return this; } static define(e = {}) { - return new _t(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : DR), !!e.static, e.enables); + return new _t(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : NR), !!e.static, e.enables); } of(e) { return new i4([], this, 0, e); @@ -2882,12 +2882,12 @@ class _t { return r || (r = (n) => n), this.compute([e], (n) => r(n.field(e))); } } -function DR(t, e) { +function NR(t, e) { return t == e || t.length == e.length && t.every((r, n) => r === e[n]); } class i4 { constructor(e, r, n, i) { - this.dependencies = e, this.facet = r, this.type = n, this.value = i, this.id = MR++; + this.dependencies = e, this.facet = r, this.type = n, this.value = i, this.id = DR++; } dynamicSlot(e) { var r; @@ -2899,7 +2899,7 @@ class i4 { return f.values[a] = n(f), 1; }, update(f, d) { - if (l && d.docChanged || u && (d.docChanged || d.selection) || IA(f, h)) { + if (l && d.docChanged || u && (d.docChanged || d.selection) || PA(f, h)) { let p = n(f); if (o ? !H$(p, f.values[a], i) : !i(p, f.values[a])) return f.values[a] = p, 1; @@ -2927,13 +2927,13 @@ function H$(t, e, r) { return !1; return !0; } -function IA(t, e) { +function PA(t, e) { let r = !1; for (let n of e) Qv(t, n) & 1 && (r = !0); return r; } -function abe(t, e, r) { +function obe(t, e, r) { let n = r.map((l) => t[l.id]), i = r.map((l) => l.type), s = n.filter((l) => !(l & 1)), a = t[e.id] >> 1; function o(l) { let u = []; @@ -2954,14 +2954,14 @@ function abe(t, e, r) { return l.values[a] = o(l), 1; }, update(l, u) { - if (!IA(l, s)) + if (!PA(l, s)) return 0; let h = o(l); return e.compare(h, l.values[a]) ? 0 : (l.values[a] = h, 1); }, reconfigure(l, u) { - let h = IA(l, n), f = u.config.facets[e.id], d = u.facet(e); - if (f && !h && DR(r, f)) + let h = PA(l, n), f = u.config.facets[e.id], d = u.facet(e); + if (f && !h && NR(r, f)) return l.values[a] = d, 0; let p = o(l); return e.compare(p, d) ? (l.values[a] = d, 0) : (l.values[a] = p, 1); @@ -2974,7 +2974,7 @@ class $n { this.id = e, this.createF = r, this.updateF = n, this.compareF = i, this.spec = s, this.provides = void 0; } static define(e) { - let r = new $n(MR++, e.create, e.update, e.compare || ((n, i) => n === i), e); + let r = new $n(DR++, e.create, e.update, e.compare || ((n, i) => n === i), e); return e.provide && (r.provides = e.provide(r)), r; } create(e) { @@ -3001,7 +3001,7 @@ class $n { } const gd = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; function Cm(t) { - return (e) => new ij(e, t); + return (e) => new sj(e, t); } const zl = { highest: /* @__PURE__ */ Cm(gd.highest), @@ -3010,14 +3010,14 @@ const zl = { low: /* @__PURE__ */ Cm(gd.low), lowest: /* @__PURE__ */ Cm(gd.lowest) }; -class ij { +class sj { constructor(e, r) { this.inner = e, this.prec = r; } } class D0 { of(e) { - return new PA(this, e); + return new $A(this, e); } reconfigure(e) { return D0.reconfigure.of({ compartment: this, extension: e }); @@ -3026,7 +3026,7 @@ class D0 { return e.config.compartments.get(this); } } -class PA { +class $A { constructor(e, r) { this.compartment = e, this.inner = r; } @@ -3042,7 +3042,7 @@ class v5 { } static resolve(e, r, n) { let i = [], s = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of obe(e, r, a)) + for (let d of lbe(e, r, a)) d instanceof $n ? i.push(d) : (s[d.facet.id] || (s[d.facet.id] = [])).push(d); let o = /* @__PURE__ */ Object.create(null), l = [], u = []; for (let d of i) @@ -3051,7 +3051,7 @@ class v5 { for (let d in s) { let p = s[d], g = p[0].facet, m = h && h[d] || []; if (p.every((v) => v.type == 0)) - if (o[g.id] = l.length << 1 | 1, DR(m, p)) + if (o[g.id] = l.length << 1 | 1, NR(m, p)) l.push(n.facet(g)); else { let v = g.combine(p.map((y) => y.value)); @@ -3060,14 +3060,14 @@ class v5 { else { for (let v of p) v.type == 0 ? (o[v.id] = l.length << 1 | 1, l.push(v.value)) : (o[v.id] = u.length << 1, u.push((y) => v.dynamicSlot(y))); - o[g.id] = u.length << 1, u.push((v) => abe(v, g, p)); + o[g.id] = u.length << 1, u.push((v) => obe(v, g, p)); } } let f = u.map((d) => d(o)); return new v5(e, a, f, o, l, s); } } -function obe(t, e, r) { +function lbe(t, e, r) { let n = [[], [], [], [], []], i = /* @__PURE__ */ new Map(); function s(a, o) { let l = i.get(a); @@ -3075,17 +3075,17 @@ function obe(t, e, r) { if (l <= o) return; let u = n[l].indexOf(a); - u > -1 && n[l].splice(u, 1), a instanceof PA && r.delete(a.compartment); + u > -1 && n[l].splice(u, 1), a instanceof $A && r.delete(a.compartment); } if (i.set(a, o), Array.isArray(a)) for (let u of a) s(u, o); - else if (a instanceof PA) { + else if (a instanceof $A) { if (r.has(a.compartment)) throw new RangeError("Duplicate use of compartment in extensions"); let u = e.get(a.compartment) || a.inner; r.set(a.compartment, u), s(u, o); - } else if (a instanceof ij) + } else if (a instanceof sj) s(a.inner, a.prec); else if (a instanceof $n) n[o].push(a), a.provides && s(a.provides, o); @@ -3115,13 +3115,13 @@ function Qv(t, e) { function y5(t, e) { return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; } -const sj = /* @__PURE__ */ _t.define(), $A = /* @__PURE__ */ _t.define({ +const aj = /* @__PURE__ */ _t.define(), BA = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e), static: !0 -}), aj = /* @__PURE__ */ _t.define({ +}), oj = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : void 0, static: !0 -}), oj = /* @__PURE__ */ _t.define(), lj = /* @__PURE__ */ _t.define(), cj = /* @__PURE__ */ _t.define(), uj = /* @__PURE__ */ _t.define({ +}), lj = /* @__PURE__ */ _t.define(), cj = /* @__PURE__ */ _t.define(), uj = /* @__PURE__ */ _t.define(), hj = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : !1 }); class Vl { @@ -3129,15 +3129,15 @@ class Vl { this.type = e, this.value = r; } static define() { - return new lbe(); + return new cbe(); } } -class lbe { +class cbe { of(e) { return new Vl(this, e); } } -class cbe { +class ube { constructor(e) { this.map = e; } @@ -3157,7 +3157,7 @@ class Zt { return this.type == e; } static define(e = {}) { - return new cbe(e.map || ((r) => r)); + return new ube(e.map || ((r) => r)); } static mapEffects(e, r) { if (!e.length) @@ -3174,7 +3174,7 @@ Zt.reconfigure = /* @__PURE__ */ Zt.define(); Zt.appendConfig = /* @__PURE__ */ Zt.define(); class fi { constructor(e, r, n, i, s, a) { - this.startState = e, this.changes = r, this.selection = n, this.effects = i, this.annotations = s, this.scrollIntoView = a, this._doc = null, this._state = null, n && nj(n, r.newLength), s.some((o) => o.type == fi.time) || (this.annotations = s.concat(fi.time.of(Date.now()))); + this.startState = e, this.changes = r, this.selection = n, this.effects = i, this.annotations = s, this.scrollIntoView = a, this._doc = null, this._state = null, n && ij(n, r.newLength), s.some((o) => o.type == fi.time) || (this.annotations = s.concat(fi.time.of(Date.now()))); } static create(e, r, n, i, s, a) { return new fi(e, r, n, i, s, a); @@ -3208,7 +3208,7 @@ fi.time = /* @__PURE__ */ Vl.define(); fi.userEvent = /* @__PURE__ */ Vl.define(); fi.addToHistory = /* @__PURE__ */ Vl.define(); fi.remote = /* @__PURE__ */ Vl.define(); -function ube(t, e) { +function hbe(t, e) { let r = []; for (let n = 0, i = 0; ; ) { let s, a; @@ -3221,7 +3221,7 @@ function ube(t, e) { !r.length || r[r.length - 1] < s ? r.push(s, a) : r[r.length - 1] < a && (r[r.length - 1] = a); } } -function hj(t, e, r) { +function fj(t, e, r) { var n; let i, s, a; return r ? (i = e.changes, s = ai.empty(e.changes.length), a = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), s = t.changes.mapDesc(e.changes, !0), a = t.changes.compose(i)), { @@ -3232,36 +3232,36 @@ function hj(t, e, r) { scrollIntoView: t.scrollIntoView || e.scrollIntoView }; } -function BA(t, e, r) { +function FA(t, e, r) { let n = e.selection, i = Yp(e.annotations); return e.userEvent && (i = i.concat(fi.userEvent.of(e.userEvent))), { - changes: e.changes instanceof ai ? e.changes : ai.of(e.changes || [], r, t.facet(aj)), + changes: e.changes instanceof ai ? e.changes : ai.of(e.changes || [], r, t.facet(oj)), selection: n && (n instanceof Ve ? n : Ve.single(n.anchor, n.head)), effects: Yp(e.effects), annotations: i, scrollIntoView: !!e.scrollIntoView }; } -function fj(t, e, r) { - let n = BA(t, e.length ? e[0] : {}, t.doc.length); +function dj(t, e, r) { + let n = FA(t, e.length ? e[0] : {}, t.doc.length); e.length && e[0].filter === !1 && (r = !1); for (let s = 1; s < e.length; s++) { e[s].filter === !1 && (r = !1); let a = !!e[s].sequential; - n = hj(n, BA(t, e[s], a ? n.changes.newLength : t.doc.length), a); + n = fj(n, FA(t, e[s], a ? n.changes.newLength : t.doc.length), a); } let i = fi.create(t, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView); - return fbe(r ? hbe(i) : i); + return dbe(r ? fbe(i) : i); } -function hbe(t) { +function fbe(t) { let e = t.startState, r = !0; - for (let i of e.facet(oj)) { + for (let i of e.facet(lj)) { let s = i(t); if (s === !1) { r = !1; break; } - Array.isArray(s) && (r = r === !0 ? s : ube(r, s)); + Array.isArray(s) && (r = r === !0 ? s : hbe(r, s)); } if (r !== !0) { let i, s; @@ -3273,49 +3273,49 @@ function hbe(t) { } t = fi.create(e, i, t.selection && t.selection.map(s), Zt.mapEffects(t.effects, s), t.annotations, t.scrollIntoView); } - let n = e.facet(lj); + let n = e.facet(cj); for (let i = n.length - 1; i >= 0; i--) { let s = n[i](t); - s instanceof fi ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof fi ? t = s[0] : t = fj(e, Yp(s), !1); + s instanceof fi ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof fi ? t = s[0] : t = dj(e, Yp(s), !1); } return t; } -function fbe(t) { - let e = t.startState, r = e.facet(cj), n = t; +function dbe(t) { + let e = t.startState, r = e.facet(uj), n = t; for (let i = r.length - 1; i >= 0; i--) { let s = r[i](t); - s && Object.keys(s).length && (n = hj(n, BA(e, s, t.changes.newLength), !0)); + s && Object.keys(s).length && (n = fj(n, FA(e, s, t.changes.newLength), !0)); } return n == t ? t : fi.create(e, t.changes, t.selection, n.effects, n.annotations, n.scrollIntoView); } -const dbe = []; +const pbe = []; function Yp(t) { - return t == null ? dbe : Array.isArray(t) ? t : [t]; + return t == null ? pbe : Array.isArray(t) ? t : [t]; } var Sn = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(Sn || (Sn = {})); -const pbe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; -let FA; +const gbe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +let zA; try { - FA = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); + zA = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function gbe(t) { - if (FA) - return FA.test(t); +function mbe(t) { + if (zA) + return zA.test(t); for (let e = 0; e < t.length; e++) { let r = t[e]; - if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || pbe.test(r))) + if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || gbe.test(r))) return !0; } return !1; } -function mbe(t) { +function vbe(t) { return (e) => { if (!/\S/.test(e)) return Sn.Space; - if (gbe(e)) + if (mbe(e)) return Sn.Word; for (let r = 0; r < t.length; r++) if (e.indexOf(t[r]) > -1) @@ -3340,7 +3340,7 @@ class dr { return Qv(this, n), y5(this, n); } update(...e) { - return fj(this, e, !0); + return dj(this, e, !0); } applyTransaction(e) { let r = this.config, { base: n, compartments: i } = r; @@ -3348,7 +3348,7 @@ class dr { o.is(D0.reconfigure) ? (r && (i = /* @__PURE__ */ new Map(), r.compartments.forEach((l, u) => i.set(u, l)), r = null), i.set(o.value.compartment, o.value.extension)) : o.is(Zt.reconfigure) ? (r = null, n = o.value) : o.is(Zt.appendConfig) && (r = null, n = Yp(n).concat(o.value)); let s; r ? s = e.startState.values.slice() : (r = v5.resolve(n, i, this), s = new dr(r, this.doc, this.selection, r.dynamicSlots.map(() => null), (l, u) => u.reconfigure(l, this), null).values); - let a = e.startState.facet($A) ? e.newSelection : e.newSelection.asSingle(); + let a = e.startState.facet(BA) ? e.newSelection : e.newSelection.asSingle(); new dr(r, e.newDoc, a, s, (o, l) => l.update(o, e), e); } replaceSelection(e) { @@ -3376,7 +3376,7 @@ class dr { return e instanceof ai ? e : ai.of(e, this.doc.length, this.facet(dr.lineSeparator)); } toText(e) { - return Dr.of(e.split(this.facet(dr.lineSeparator) || MA)); + return Dr.of(e.split(this.facet(dr.lineSeparator) || DA)); } sliceDoc(e = 0, r = this.doc.length) { return this.doc.sliceString(e, r, this.lineBreak); @@ -3415,8 +3415,8 @@ class dr { }); } static create(e = {}) { - let r = v5.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Dr ? e.doc : Dr.of((e.doc || "").split(r.staticFacet(dr.lineSeparator) || MA)), i = e.selection ? e.selection instanceof Ve ? e.selection : Ve.single(e.selection.anchor, e.selection.head) : Ve.single(0); - return nj(i, n.length), r.staticFacet($A) || (i = i.asSingle()), new dr(r, n, i, r.dynamicSlots.map(() => null), (s, a) => a.create(s), null); + let r = v5.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Dr ? e.doc : Dr.of((e.doc || "").split(r.staticFacet(dr.lineSeparator) || DA)), i = e.selection ? e.selection instanceof Ve ? e.selection : Ve.single(e.selection.anchor, e.selection.head) : Ve.single(0); + return ij(i, n.length), r.staticFacet(BA) || (i = i.asSingle()), new dr(r, n, i, r.dynamicSlots.map(() => null), (s, a) => a.create(s), null); } get tabSize() { return this.facet(dr.tabSize); @@ -3426,7 +3426,7 @@ class dr { `; } get readOnly() { - return this.facet(uj); + return this.facet(hj); } phrase(e, ...r) { for (let n of this.facet(dr.phrases)) @@ -3443,13 +3443,13 @@ class dr { } languageDataAt(e, r, n = -1) { let i = []; - for (let s of this.facet(sj)) + for (let s of this.facet(aj)) for (let a of s(this, r, n)) Object.prototype.hasOwnProperty.call(a, e) && i.push(a[e]); return i; } charCategorizer(e) { - return mbe(this.languageDataAt("wordChars", e).join("")); + return vbe(this.languageDataAt("wordChars", e).join("")); } wordAt(e) { let { text: r, from: n, length: i } = this.doc.lineAt(e), s = this.charCategorizer(e), a = e - n, o = e - n; @@ -3468,22 +3468,22 @@ class dr { return a == o ? null : Ve.range(a + n, o + n); } } -dr.allowMultipleSelections = $A; +dr.allowMultipleSelections = BA; dr.tabSize = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : 4 }); -dr.lineSeparator = aj; -dr.readOnly = uj; +dr.lineSeparator = oj; +dr.readOnly = hj; dr.phrases = /* @__PURE__ */ _t.define({ compare(t, e) { let r = Object.keys(t), n = Object.keys(e); return r.length == n.length && r.every((i) => t[i] == e[i]); } }); -dr.languageData = sj; -dr.changeFilter = oj; -dr.transactionFilter = lj; -dr.transactionExtender = cj; +dr.languageData = aj; +dr.changeFilter = lj; +dr.transactionFilter = cj; +dr.transactionExtender = uj; D0.reconfigure = /* @__PURE__ */ Zt.define(); function qc(t, e, r = {}) { let n = {}; @@ -3521,10 +3521,10 @@ class yy { return new yy(e, r, n); } } -function zA(t, e) { +function VA(t, e) { return t.from - e.from || t.value.startSide - e.value.startSide; } -class NR { +class IR { constructor(e, r, n, i) { this.from = e, this.to = r, this.value = n, this.maxPoint = i; } @@ -3559,7 +3559,7 @@ class NR { continue; (p - d || u.endSide - u.startSide) < 0 || (a < 0 && (a = d), u.point && (o = Math.max(o, p - d)), n.push(u), i.push(d - a), s.push(p - a)); } - return { mapped: n.length ? new NR(i, s, n, o) : null, pos: a }; + return { mapped: n.length ? new IR(i, s, n, o) : null, pos: a }; } } class Er { @@ -3588,9 +3588,9 @@ class Er { let { add: r = [], sort: n = !1, filterFrom: i = 0, filterTo: s = this.length } = e, a = e.filter; if (r.length == 0 && !a) return this; - if (n && (r = r.slice().sort(zA)), this.isEmpty) + if (n && (r = r.slice().sort(VA)), this.isEmpty) return r.length ? Er.of(r) : this; - let o = new dj(this, null, -1).goto(0), l = 0, u = [], h = new Hi(); + let o = new pj(this, null, -1).goto(0), l = 0, u = [], h = new Hi(); for (; o.value || l < r.length; ) if (l < r.length && (o.from - r[l].from || o.startSide - r[l].value.startSide) >= 0) { let f = r[l++]; @@ -3647,7 +3647,7 @@ class Er { return !0; let o = Z$(s, a), l = new Em(s, o, 0).goto(n), u = new Em(a, o, 0).goto(n); for (; ; ) { - if (l.to != u.to || !VA(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point))) + if (l.to != u.to || !UA(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point))) return !1; if (l.to > i) return !0; @@ -3670,18 +3670,18 @@ class Er { } static of(e, r = !1) { let n = new Hi(); - for (let i of e instanceof yy ? [e] : r ? vbe(e) : e) + for (let i of e instanceof yy ? [e] : r ? ybe(e) : e) n.add(i.from, i.to, i.value); return n.finish(); } } Er.empty = /* @__PURE__ */ new Er([], [], null, -1); -function vbe(t) { +function ybe(t) { if (t.length > 1) for (let e = t[0], r = 1; r < t.length; r++) { let n = t[r]; - if (zA(e, n) > 0) - return t.slice().sort(zA); + if (VA(e, n) > 0) + return t.slice().sort(VA); e = n; } return t; @@ -3689,7 +3689,7 @@ function vbe(t) { Er.empty.nextLayer = Er.empty; class Hi { finishChunk(e) { - this.chunks.push(new NR(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); + this.chunks.push(new IR(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); } constructor() { this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null; @@ -3733,7 +3733,7 @@ function Z$(t, e, r) { } return i; } -class dj { +class pj { constructor(e, r, n, i = 0) { this.layer = e, this.skip = r, this.minPoint = n, this.rank = i; } @@ -3797,7 +3797,7 @@ class by { let i = []; for (let s = 0; s < e.length; s++) for (let a = e[s]; !a.isEmpty; a = a.nextLayer) - a.maxPoint >= n && i.push(new dj(a, r, n, s)); + a.maxPoint >= n && i.push(new pj(a, r, n, s)); return i.length == 1 ? i[0] : new by(i); } get startSide() { @@ -3807,14 +3807,14 @@ class by { for (let n of this.heap) n.goto(e, r); for (let n = this.heap.length >> 1; n >= 0; n--) - uE(this.heap, n); + hE(this.heap, n); return this.next(), this; } forward(e, r) { for (let n of this.heap) n.forward(e, r); for (let n = this.heap.length >> 1; n >= 0; n--) - uE(this.heap, n); + hE(this.heap, n); (this.to - e || this.value.endSide - r) < 0 && this.next(); } next() { @@ -3822,11 +3822,11 @@ class by { this.from = this.to = 1e9, this.value = null, this.rank = -1; else { let e = this.heap[0]; - this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), uE(this.heap, 0); + this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), hE(this.heap, 0); } } } -function uE(t, e) { +function hE(t, e) { for (let r = t[e]; ; ) { let n = (e << 1) + 1; if (n >= t.length) @@ -3916,12 +3916,12 @@ function j$(t, e, r, n, i, s) { let a = n + i, o = n, l = n - e; for (; ; ) { let u = t.to + l - r.to || t.endSide - r.endSide, h = u < 0 ? t.to + l : r.to, f = Math.min(h, a); - if (t.point || r.point ? t.point && r.point && (t.point == r.point || t.point.eq(r.point)) && VA(t.activeForPoint(t.to), r.activeForPoint(r.to)) || s.comparePoint(o, f, t.point, r.point) : f > o && !VA(t.active, r.active) && s.compareRange(o, f, t.active, r.active), h > a) + if (t.point || r.point ? t.point && r.point && (t.point == r.point || t.point.eq(r.point)) && UA(t.activeForPoint(t.to), r.activeForPoint(r.to)) || s.comparePoint(o, f, t.point, r.point) : f > o && !UA(t.active, r.active) && s.compareRange(o, f, t.active, r.active), h > a) break; o = h, u <= 0 && t.next(), u >= 0 && r.next(); } } -function VA(t, e) { +function UA(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -3951,7 +3951,7 @@ function Ml(t, e, r = t.length) { t.charCodeAt(i) == 9 ? (n += e - n % e, i++) : (n++, i = ls(t, i)); return n; } -function UA(t, e, r, n) { +function qA(t, e, r, n) { for (let i = 0, s = 0; ; ) { if (s >= e) return i; @@ -3961,7 +3961,7 @@ function UA(t, e, r, n) { } return n === !0 ? -1 : t.length; } -const qA = "\u037C", J$ = typeof Symbol > "u" ? "__" + qA : Symbol.for(qA), QA = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), eB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; +const QA = "\u037C", J$ = typeof Symbol > "u" ? "__" + QA : Symbol.for(QA), YA = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), eB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; class Iu { constructor(e, r) { this.rules = []; @@ -3999,28 +3999,28 @@ class Iu { } static newName() { let e = eB[J$] || 1; - return eB[J$] = e + 1, qA + e.toString(36); + return eB[J$] = e + 1, QA + e.toString(36); } static mount(e, r, n) { - let i = e[QA], s = n && n.nonce; - i ? s && i.setNonce(s) : i = new ybe(e, s), i.mount(Array.isArray(r) ? r : [r]); + let i = e[YA], s = n && n.nonce; + i ? s && i.setNonce(s) : i = new bbe(e, s), i.mount(Array.isArray(r) ? r : [r]); } } let tB = /* @__PURE__ */ new Map(); -class ybe { +class bbe { constructor(e, r) { let n = e.ownerDocument || e, i = n.defaultView; if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) { let s = tB.get(n); if (s) - return e.adoptedStyleSheets = [s.sheet, ...e.adoptedStyleSheets], e[QA] = s; + return e.adoptedStyleSheets = [s.sheet, ...e.adoptedStyleSheets], e[YA] = s; this.sheet = new i.CSSStyleSheet(), e.adoptedStyleSheets = [this.sheet, ...e.adoptedStyleSheets], tB.set(n, this); } else { this.styleTag = n.createElement("style"), r && this.styleTag.setAttribute("nonce", r); let s = e.head || e; s.insertBefore(this.styleTag, s.firstChild); } - this.modules = [], e[QA] = this; + this.modules = [], e[YA] = this; } mount(e) { let r = this.sheet, n = 0, i = 0; @@ -4126,27 +4126,27 @@ var af = { 220: "|", 221: "}", 222: '"' -}, bbe = typeof navigator < "u" && /Mac/.test(navigator.platform), xbe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +}, xbe = typeof navigator < "u" && /Mac/.test(navigator.platform), wbe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); for (var as = 0; as < 10; as++) af[48 + as] = af[96 + as] = String(as); for (var as = 1; as <= 24; as++) af[as + 111] = "F" + as; for (var as = 65; as <= 90; as++) af[as] = String.fromCharCode(as + 32), xy[as] = String.fromCharCode(as); -for (var hE in af) - xy.hasOwnProperty(hE) || (xy[hE] = af[hE]); -function wbe(t) { - var e = bbe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || xbe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? xy : af)[t.keyCode] || t.key || "Unidentified"; +for (var fE in af) + xy.hasOwnProperty(fE) || (xy[fE] = af[fE]); +function Obe(t) { + var e = xbe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || wbe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? xy : af)[t.keyCode] || t.key || "Unidentified"; return r == "Esc" && (r = "Escape"), r == "Del" && (r = "Delete"), r == "Left" && (r = "ArrowLeft"), r == "Up" && (r = "ArrowUp"), r == "Right" && (r = "ArrowRight"), r == "Down" && (r = "ArrowDown"), r; } function b5(t) { let e; return t.nodeType == 11 ? e = t.getSelection ? t : t.ownerDocument : e = t, e.getSelection(); } -function YA(t, e) { +function WA(t, e) { return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1; } -function Obe(t) { +function kbe(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; @@ -4156,7 +4156,7 @@ function s4(t, e) { if (!e.anchorNode) return !1; try { - return YA(t, e.anchorNode); + return WA(t, e.anchorNode); } catch { return !1; } @@ -4194,11 +4194,11 @@ function rB(t, e, r, n, i) { function Pu(t) { return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length; } -function IR(t, e) { +function PR(t, e) { let r = e ? t.left : t.right; return { left: r, right: r, top: t.top, bottom: t.bottom }; } -function kbe(t) { +function Sbe(t) { return { left: 0, right: t.innerWidth, @@ -4206,24 +4206,24 @@ function kbe(t) { bottom: t.innerHeight }; } -function pj(t, e) { +function gj(t, e) { let r = e.width / t.offsetWidth, n = e.height / t.offsetHeight; return (r > 0.995 && r < 1.005 || !isFinite(r) || Math.abs(e.width - t.offsetWidth) < 1) && (r = 1), (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.height - t.offsetHeight) < 1) && (n = 1), { scaleX: r, scaleY: n }; } -function Sbe(t, e, r, n, i, s, a, o) { +function Tbe(t, e, r, n, i, s, a, o) { let l = t.ownerDocument, u = l.defaultView || window; for (let h = t, f = !1; h && !f; ) if (h.nodeType == 1) { let d, p = h == l.body, g = 1, m = 1; if (p) - d = kbe(u); + d = Sbe(u); else { if (/^(fixed|sticky)$/.test(getComputedStyle(h).position) && (f = !0), h.scrollHeight <= h.clientHeight && h.scrollWidth <= h.clientWidth) { h = h.assignedSlot || h.parentNode; continue; } let b = h.getBoundingClientRect(); - ({ scaleX: g, scaleY: m } = pj(h, b)), d = { + ({ scaleX: g, scaleY: m } = gj(h, b)), d = { left: b.left, right: b.left + h.clientWidth * g, top: b.top, @@ -4265,7 +4265,7 @@ function Sbe(t, e, r, n, i, s, a, o) { else break; } -function Tbe(t) { +function Cbe(t) { let e = t.ownerDocument; for (let r = t.parentNode; r && r != e.body; ) if (r.nodeType == 1) { @@ -4278,7 +4278,7 @@ function Tbe(t) { break; return null; } -class Cbe { +class Ebe { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -4294,7 +4294,7 @@ class Cbe { } } let op = null; -function gj(t) { +function mj(t) { if (t.setActive) return t.setActive(); if (op) @@ -4325,7 +4325,7 @@ function Wp(t, e, r) { let s = new KeyboardEvent("keyup", n); return s.synthetic = !0, t.dispatchEvent(s), i.defaultPrevented || s.defaultPrevented; } -function Ebe(t) { +function _be(t) { for (; t; ) { if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host)) return t; @@ -4333,11 +4333,11 @@ function Ebe(t) { } return null; } -function mj(t) { +function vj(t) { for (; t.attributes.length; ) t.removeAttributeNode(t.attributes[0]); } -function _be(t, e) { +function Abe(t, e) { let r = e.focusNode, n = e.focusOffset; if (!r || e.anchorNode != r || e.anchorOffset != n) return !1; @@ -4353,7 +4353,7 @@ function _be(t, e) { n = Oy(r), r = r.parentNode; } } -function vj(t) { +function yj(t) { return t.scrollTop > Math.max(1, t.scrollHeight - t.clientHeight - 4); } class Ms { @@ -4367,7 +4367,7 @@ class Ms { return new Ms(e.parentNode, Oy(e) + 1, r); } } -const PR = []; +const $R = []; class yn { constructor() { this.parent = null, this.dom = null, this.flags = 2; @@ -4489,7 +4489,7 @@ class yn { e = r; } } - replaceChildren(e, r, n = PR) { + replaceChildren(e, r, n = $R) { this.markDirty(); for (let i = e; i < r; i++) { let s = this.children[i]; @@ -4506,7 +4506,7 @@ class yn { return !1; } childCursor(e = this.length) { - return new yj(this.children, e, this.children.length); + return new bj(this.children, e, this.children.length); } childPos(e, r = 1) { return this.childCursor().findPos(e, r); @@ -4550,7 +4550,7 @@ function iB(t) { let e = t.nextSibling; return t.parentNode.removeChild(t), e; } -class yj { +class bj { constructor(e, r, n) { this.children = e, this.pos = r, this.i = n, this.off = 0; } @@ -4563,7 +4563,7 @@ class yj { } } } -function bj(t, e, r, n, i, s, a, o, l) { +function xj(t, e, r, n, i, s, a, o, l) { let { children: u } = t, h = u.length ? u[e] : null, f = s.length ? s[s.length - 1] : null, d = f ? f.breakAfter : a; if (!(e == n && h && !a && !d && s.length < 2 && h.merge(r, i, s.length ? f : null, r == 0, o, l))) { if (n < u.length) { @@ -4580,32 +4580,32 @@ function bj(t, e, r, n, i, s, a, o, l) { !s.length && e && n < u.length && !u[e - 1].breakAfter && u[n].merge(0, 0, u[e - 1], !1, o, l) && e--, (e < n || s.length) && t.replaceChildren(e, n, s); } } -function xj(t, e, r, n, i, s) { +function wj(t, e, r, n, i, s) { let a = t.childCursor(), { i: o, off: l } = a.findPos(r, 1), { i: u, off: h } = a.findPos(e, -1), f = e - r; for (let d of n) f += d.length; - t.length += f, bj(t, u, h, o, l, n, 0, i, s); + t.length += f, xj(t, u, h, o, l, n, 0, i, s); } -let ro = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, WA = typeof document < "u" ? document : { documentElement: { style: {} } }; -const GA = /* @__PURE__ */ /Edge\/(\d+)/.exec(ro.userAgent), wj = /* @__PURE__ */ /MSIE \d/.test(ro.userAgent), HA = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ro.userAgent), NS = !!(wj || HA || GA), sB = !NS && /* @__PURE__ */ /gecko\/(\d+)/i.test(ro.userAgent), fE = !NS && /* @__PURE__ */ /Chrome\/(\d+)/.exec(ro.userAgent), aB = "webkitFontSmoothing" in WA.documentElement.style, Oj = !NS && /* @__PURE__ */ /Apple Computer/.test(ro.vendor), oB = Oj && (/* @__PURE__ */ /Mobile\/\w+/.test(ro.userAgent) || ro.maxTouchPoints > 2); +let no = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, GA = typeof document < "u" ? document : { documentElement: { style: {} } }; +const HA = /* @__PURE__ */ /Edge\/(\d+)/.exec(no.userAgent), Oj = /* @__PURE__ */ /MSIE \d/.test(no.userAgent), XA = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(no.userAgent), IS = !!(Oj || XA || HA), sB = !IS && /* @__PURE__ */ /gecko\/(\d+)/i.test(no.userAgent), dE = !IS && /* @__PURE__ */ /Chrome\/(\d+)/.exec(no.userAgent), aB = "webkitFontSmoothing" in GA.documentElement.style, kj = !IS && /* @__PURE__ */ /Apple Computer/.test(no.vendor), oB = kj && (/* @__PURE__ */ /Mobile\/\w+/.test(no.userAgent) || no.maxTouchPoints > 2); var Mt = { - mac: oB || /* @__PURE__ */ /Mac/.test(ro.platform), - windows: /* @__PURE__ */ /Win/.test(ro.platform), - linux: /* @__PURE__ */ /Linux|X11/.test(ro.platform), - ie: NS, - ie_version: wj ? WA.documentMode || 6 : HA ? +HA[1] : GA ? +GA[1] : 0, + mac: oB || /* @__PURE__ */ /Mac/.test(no.platform), + windows: /* @__PURE__ */ /Win/.test(no.platform), + linux: /* @__PURE__ */ /Linux|X11/.test(no.platform), + ie: IS, + ie_version: Oj ? GA.documentMode || 6 : XA ? +XA[1] : HA ? +HA[1] : 0, gecko: sB, - gecko_version: sB ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(ro.userAgent) || [0, 0])[1] : 0, - chrome: !!fE, - chrome_version: fE ? +fE[1] : 0, + gecko_version: sB ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(no.userAgent) || [0, 0])[1] : 0, + chrome: !!dE, + chrome_version: dE ? +dE[1] : 0, ios: oB, - android: /* @__PURE__ */ /Android\b/.test(ro.userAgent), + android: /* @__PURE__ */ /Android\b/.test(no.userAgent), webkit: aB, - safari: Oj, + safari: kj, webkit_version: aB ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, - tabSize: WA.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" + tabSize: GA.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" }; -const Abe = 256; +const Lbe = 256; class $u extends yn { constructor(e) { super(), this.text = e; @@ -4623,7 +4623,7 @@ class $u extends yn { e.nodeType == 3 && this.createDOM(e); } merge(e, r, n) { - return this.flags & 8 || n && (!(n instanceof $u) || this.length - (r - e) + n.length > Abe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); + return this.flags & 8 || n && (!(n instanceof $u) || this.length - (r - e) + n.length > Lbe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); } split(e) { let r = new $u(this.text.slice(e)); @@ -4639,7 +4639,7 @@ class $u extends yn { return { from: n, to: n + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling }; } coordsAt(e, r) { - return Lbe(this.dom, e, r); + return Rbe(this.dom, e, r); } } class Bu extends yn { @@ -4649,7 +4649,7 @@ class Bu extends yn { i.setParent(this); } setAttrs(e) { - if (mj(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) + if (vj(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) for (let r in this.mark.attrs) e.setAttribute(r, this.mark.attrs[r]); return e; @@ -4664,7 +4664,7 @@ class Bu extends yn { this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, r); } merge(e, r, n, i, s, a) { - return n && (!(n instanceof Bu && n.mark.eq(this.mark)) || e && s <= 0 || r < this.length && a <= 0) ? !1 : (xj(this, e, r, n ? n.children.slice() : [], s - 1, a - 1), this.markDirty(), !0); + return n && (!(n instanceof Bu && n.mark.eq(this.mark)) || e && s <= 0 || r < this.length && a <= 0) ? !1 : (wj(this, e, r, n ? n.children.slice() : [], s - 1, a - 1), this.markDirty(), !0); } split(e) { let r = [], n = 0, i = -1, s = 0; @@ -4676,13 +4676,13 @@ class Bu extends yn { return this.length = e, i > -1 && (this.children.length = i, this.markDirty()), new Bu(this.mark, r, a); } domAtPos(e) { - return kj(this, e); + return Sj(this, e); } coordsAt(e, r) { - return Tj(this, e, r); + return Cj(this, e, r); } } -function Lbe(t, e, r) { +function Rbe(t, e, r) { let n = t.nodeValue.length; e > n && (e = n); let i = e, s = e, a = 0; @@ -4691,7 +4691,7 @@ function Lbe(t, e, r) { if (!o.length) return null; let l = o[(a ? a < 0 : r >= 0) ? 0 : o.length - 1]; - return Mt.safari && !a && l.width == 0 && (l = Array.prototype.find.call(o, (u) => u.width) || l), a ? IR(l, a < 0) : l || null; + return Mt.safari && !a && l.width == 0 && (l = Array.prototype.find.call(o, (u) => u.width) || l), a ? PR(l, a < 0) : l || null; } class Ih extends yn { static create(e, r, n) { @@ -4747,7 +4747,7 @@ class Ih extends yn { let a = this.side ? this.side < 0 : e > 0; for (let o = a ? i.length - 1 : 0; s = i[o], !(e > 0 ? o == 0 : o == i.length - 1 || s.top < s.bottom); o += a ? -1 : 1) ; - return IR(s, !a); + return PR(s, !a); } get isEditable() { return !1; @@ -4806,8 +4806,8 @@ class Eg extends yn { return !0; } } -$u.prototype.children = Ih.prototype.children = Eg.prototype.children = PR; -function kj(t, e) { +$u.prototype.children = Ih.prototype.children = Eg.prototype.children = $R; +function Sj(t, e) { let r = t.dom, { children: n } = t, i = 0; for (let s = 0; i < n.length; i++) { let a = n[i], o = s + a.length; @@ -4831,11 +4831,11 @@ function kj(t, e) { } return new Ms(r, 0); } -function Sj(t, e, r) { +function Tj(t, e, r) { let n, { children: i } = t; - r > 0 && e instanceof Bu && i.length && (n = i[i.length - 1]) instanceof Bu && n.mark.eq(e.mark) ? Sj(n, e.children[0], r - 1) : (i.push(e), e.setParent(t)), t.length += e.length; + r > 0 && e instanceof Bu && i.length && (n = i[i.length - 1]) instanceof Bu && n.mark.eq(e.mark) ? Tj(n, e.children[0], r - 1) : (i.push(e), e.setParent(t)), t.length += e.length; } -function Tj(t, e, r) { +function Cj(t, e, r) { let n = null, i = -1, s = null, a = -1; function o(u, h) { for (let f = 0, d = 0; f < u.children.length && d <= h; f++) { @@ -4845,22 +4845,22 @@ function Tj(t, e, r) { } o(t, e); let l = (r < 0 ? n : s) || n || s; - return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : Rbe(t); + return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : Mbe(t); } -function Rbe(t) { +function Mbe(t) { let e = t.dom.lastChild; if (!e) return t.dom.getBoundingClientRect(); let r = wy(e); return r[r.length - 1] || null; } -function XA(t, e) { +function ZA(t, e) { for (let r in t) r == "class" && e.class ? e.class += " " + t.class : r == "style" && e.style ? e.style += ";" + t.style : e[r] = t[r]; return e; } const lB = /* @__PURE__ */ Object.create(null); -function $R(t, e, r) { +function BR(t, e, r) { if (t == e) return !0; t || (t = lB), e || (e = lB); @@ -4872,7 +4872,7 @@ function $R(t, e, r) { return !1; return !0; } -function ZA(t, e, r) { +function jA(t, e, r) { let n = !1; if (e) for (let i in e) @@ -4882,7 +4882,7 @@ function ZA(t, e, r) { e && e[i] == r[i] || (n = !0, i == "style" ? t.style.cssText = r[i] : t.setAttribute(i, r[i])); return n; } -function Mbe(t) { +function Dbe(t) { let e = /* @__PURE__ */ Object.create(null); for (let r = 0; r < t.attributes.length; r++) { let n = t.attributes[r]; @@ -4900,7 +4900,7 @@ class bi extends yn { return !1; this.dom || n.transferDOM(this); } - return i && this.setDeco(n ? n.attrs : null), xj(this, e, r, n ? n.children.slice() : [], s, a), !0; + return i && this.setDeco(n ? n.attrs : null), wj(this, e, r, n ? n.children.slice() : [], s, a), !0; } split(e) { let r = new bi(); @@ -4918,24 +4918,24 @@ class bi extends yn { !this.dom || (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null); } setDeco(e) { - $R(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); + BR(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); } append(e, r) { - Sj(this, e, r); + Tj(this, e, r); } addLineDeco(e) { let r = e.spec.attributes, n = e.spec.class; - r && (this.attrs = XA(r, this.attrs || {})), n && (this.attrs = XA({ class: n }, this.attrs || {})); + r && (this.attrs = ZA(r, this.attrs || {})), n && (this.attrs = ZA({ class: n }, this.attrs || {})); } domAtPos(e) { - return kj(this, e); + return Sj(this, e); } reuseDOM(e) { e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6); } sync(e, r) { var n; - this.dom ? this.flags & 4 && (mj(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (ZA(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, r); + this.dom ? this.flags & 4 && (vj(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (jA(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, r); let i = this.dom.lastChild; for (; i && yn.get(i) instanceof Bu; ) i = i.lastChild; @@ -4963,7 +4963,7 @@ class bi extends yn { } : null; } coordsAt(e, r) { - let n = Tj(this, e, r); + let n = Cj(this, e, r); if (!this.children.length && n && this.parent) { let { heightOracle: i } = this.parent.view.viewState, s = n.bottom - n.top; if (Math.abs(s - i.lineHeight) < 2 && i.textHeight < s) { @@ -5010,7 +5010,7 @@ class Wh extends yn { return n.breakAfter = this.breakAfter, n; } get children() { - return PR; + return $R; } sync(e) { (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.dom.contentEditable = "false"); @@ -5047,7 +5047,7 @@ class Wh extends yn { return r == n ? !1 : e < 0 ? r < 0 : n > 0; } } -class za { +class Va { eq(e) { return !1; } @@ -5097,7 +5097,7 @@ class Et extends Xd { if (e.isBlockGap) n = -5e8, i = 4e8; else { - let { start: s, end: a } = Cj(e, r); + let { start: s, end: a } = Ej(e, r); n = (s ? r ? -3e8 : -1 : 5e8) - 1, i = (a ? r ? 2e8 : 1 : -6e8) + 1; } return new of(e, n, i, r, e.widget || null, !0); @@ -5115,12 +5115,12 @@ class Et extends Xd { Et.none = Er.empty; class qb extends Et { constructor(e) { - let { start: r, end: n } = Cj(e); + let { start: r, end: n } = Ej(e); super(r ? -1 : 5e8, n ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null; } eq(e) { var r, n; - return this == e || e instanceof qb && this.tagName == e.tagName && (this.class || ((r = this.attrs) === null || r === void 0 ? void 0 : r.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && $R(this.attrs, e.attrs, "class"); + return this == e || e instanceof qb && this.tagName == e.tagName && (this.class || ((r = this.attrs) === null || r === void 0 ? void 0 : r.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && BR(this.attrs, e.attrs, "class"); } range(e, r = e) { if (e >= r) @@ -5134,7 +5134,7 @@ class Qb extends Et { super(-2e8, -2e8, null, e); } eq(e) { - return e instanceof Qb && this.spec.class == e.spec.class && $R(this.spec.attributes, e.spec.attributes); + return e instanceof Qb && this.spec.class == e.spec.class && BR(this.spec.attributes, e.spec.attributes); } range(e, r = e) { if (r != e) @@ -5155,7 +5155,7 @@ class of extends Et { return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0); } eq(e) { - return e instanceof of && Dbe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; + return e instanceof of && Nbe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; } range(e, r = e) { if (this.isReplace && (e > r || e == r && this.startSide > 0 && this.endSide <= 0)) @@ -5166,14 +5166,14 @@ class of extends Et { } } of.prototype.point = !0; -function Cj(t, e = !1) { +function Ej(t, e = !1) { let { inclusiveStart: r, inclusiveEnd: n } = t; return r == null && (r = t.inclusive), n == null && (n = t.inclusive), { start: r != null ? r : e, end: n != null ? n : e }; } -function Dbe(t, e) { +function Nbe(t, e) { return t == e || !!(t && e && t.compare(e)); } -function jA(t, e, r, n = 0) { +function KA(t, e, r, n = 0) { let i = r.length - 1; i >= 0 && r[i] + n >= t ? r[i] = Math.max(r[i], e) : r.push(t, e); } @@ -5247,7 +5247,7 @@ function hw(t, e) { t = new Bu(r, [t], t.length); return t; } -class cB extends za { +class cB extends Va { constructor(e) { super(), this.tag = e; } @@ -5264,9 +5264,9 @@ class cB extends za { return !0; } } -const Ej = /* @__PURE__ */ _t.define(), _j = /* @__PURE__ */ _t.define(), Aj = /* @__PURE__ */ _t.define(), Lj = /* @__PURE__ */ _t.define(), KA = /* @__PURE__ */ _t.define(), Rj = /* @__PURE__ */ _t.define(), Mj = /* @__PURE__ */ _t.define(), Dj = /* @__PURE__ */ _t.define({ +const _j = /* @__PURE__ */ _t.define(), Aj = /* @__PURE__ */ _t.define(), Lj = /* @__PURE__ */ _t.define(), Rj = /* @__PURE__ */ _t.define(), JA = /* @__PURE__ */ _t.define(), Mj = /* @__PURE__ */ _t.define(), Dj = /* @__PURE__ */ _t.define(), Nj = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e) -}), Nj = /* @__PURE__ */ _t.define({ +}), Ij = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e) }); class Gp { @@ -5282,11 +5282,11 @@ class Gp { } const fw = /* @__PURE__ */ Zt.define({ map: (t, e) => t.map(e) }); function Bo(t, e, r) { - let n = t.facet(Lj); + let n = t.facet(Rj); n.length ? n[0](e) : window.onerror ? window.onerror(String(e), r, void 0, void 0, e) : r ? console.error(r + ":", e) : console.error(e); } -const IS = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : !0 }); -let Nbe = 0; +const PS = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : !0 }); +let Ibe = 0; const hv = /* @__PURE__ */ _t.define(); class an { constructor(e, r, n, i, s) { @@ -5294,7 +5294,7 @@ class an { } static define(e, r) { const { eventHandlers: n, eventObservers: i, provide: s, decorations: a } = r || {}; - return new an(Nbe++, e, n, i, (o) => { + return new an(Ibe++, e, n, i, (o) => { let l = [hv.of(o)]; return a && l.push(ky.of((u) => { let h = u.plugin(o); @@ -5306,7 +5306,7 @@ class an { return an.define((n) => new e(n), r); } } -class dE { +class pE { constructor(e) { this.spec = e, this.mustUpdate = null, this.value = null; } @@ -5347,9 +5347,9 @@ class dE { this.spec = this.value = null; } } -const Ij = /* @__PURE__ */ _t.define(), BR = /* @__PURE__ */ _t.define(), ky = /* @__PURE__ */ _t.define(), FR = /* @__PURE__ */ _t.define(), Pj = /* @__PURE__ */ _t.define(); +const Pj = /* @__PURE__ */ _t.define(), FR = /* @__PURE__ */ _t.define(), ky = /* @__PURE__ */ _t.define(), zR = /* @__PURE__ */ _t.define(), $j = /* @__PURE__ */ _t.define(); function uB(t, e, r) { - let n = t.state.facet(Pj); + let n = t.state.facet($j); if (!n.length) return n; let i = n.map((a) => a instanceof Function ? a(t) : a), s = []; @@ -5371,10 +5371,10 @@ function uB(t, e, r) { } }), s; } -const $j = /* @__PURE__ */ _t.define(); -function Bj(t) { +const Bj = /* @__PURE__ */ _t.define(); +function Fj(t) { let e = 0, r = 0, n = 0, i = 0; - for (let s of t.state.facet($j)) { + for (let s of t.state.facet(Bj)) { let a = s(t); a && (a.left != null && (e = Math.max(e, a.left)), a.right != null && (r = Math.max(r, a.right)), a.top != null && (n = Math.max(n, a.top)), a.bottom != null && (i = Math.max(i, a.bottom))); } @@ -5454,25 +5454,25 @@ class w5 { var In = /* @__PURE__ */ function(t) { return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t; }(In || (In = {})); -const Sy = In.LTR, Fj = In.RTL; -function zj(t) { +const Sy = In.LTR, zj = In.RTL; +function Vj(t) { let e = []; for (let r = 0; r < t.length; r++) e.push(1 << +t[r]); return e; } -const Ibe = /* @__PURE__ */ zj("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Pbe = /* @__PURE__ */ zj("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), JA = /* @__PURE__ */ Object.create(null), jl = []; +const Pbe = /* @__PURE__ */ Vj("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), $be = /* @__PURE__ */ Vj("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), e7 = /* @__PURE__ */ Object.create(null), jl = []; for (let t of ["()", "[]", "{}"]) { let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1); - JA[e] = r, JA[r] = -e; + e7[e] = r, e7[r] = -e; } -function $be(t) { - return t <= 247 ? Ibe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Pbe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; +function Bbe(t) { + return t <= 247 ? Pbe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? $be[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; } -const Bbe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; +const Fbe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; class Ph { get dir() { - return this.level % 2 ? Fj : Sy; + return this.level % 2 ? zj : Sy; } constructor(e, r, n) { this.from = e, this.to = r, this.level = n; @@ -5495,22 +5495,22 @@ class Ph { return s; } } -function Vj(t, e) { +function Uj(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) { let n = t[r], i = e[r]; - if (n.from != i.from || n.to != i.to || n.direction != i.direction || !Vj(n.inner, i.inner)) + if (n.from != i.from || n.to != i.to || n.direction != i.direction || !Uj(n.inner, i.inner)) return !1; } return !0; } const en = []; -function Fbe(t, e, r, n, i) { +function zbe(t, e, r, n, i) { for (let s = 0; s <= n.length; s++) { let a = s ? n[s - 1].to : e, o = s < n.length ? n[s].from : r, l = s ? 256 : i; for (let u = a, h = l, f = l; u < o; u++) { - let d = $be(t.charCodeAt(u)); + let d = Bbe(t.charCodeAt(u)); d == 512 ? d = h : d == 8 && f == 4 && (d = 16), en[u] = d == 4 ? 2 : d, d & 7 && (f = d), h = d; } for (let u = a, h = l, f = l; u < o; u++) { @@ -5531,12 +5531,12 @@ function Fbe(t, e, r, n, i) { } } } -function zbe(t, e, r, n, i) { +function Vbe(t, e, r, n, i) { let s = i == 1 ? 2 : 1; for (let a = 0, o = 0, l = 0; a <= n.length; a++) { let u = a ? n[a - 1].to : e, h = a < n.length ? n[a].from : r; for (let f = u, d, p, g; f < h; f++) - if (p = JA[d = t.charCodeAt(f)]) + if (p = e7[d = t.charCodeAt(f)]) if (p < 0) { for (let m = o - 3; m >= 0; m -= 3) if (jl[m + 1] == -p) { @@ -5567,7 +5567,7 @@ function zbe(t, e, r, n, i) { } } } -function Vbe(t, e, r, n) { +function Ube(t, e, r, n) { for (let i = 0, s = n; i <= r.length; i++) { let a = i ? r[i - 1].to : t, o = i < r.length ? r[i].from : e; for (let l = a; l < o; ) { @@ -5592,7 +5592,7 @@ function Vbe(t, e, r, n) { } } } -function e7(t, e, r, n, i, s, a) { +function t7(t, e, r, n, i, s, a) { let o = n % 2 ? 2 : 1; if (n % 2 == i % 2) for (let l = e, u = 0; l < r; ) { @@ -5625,7 +5625,7 @@ function e7(t, e, r, n, i, s, a) { else { m.from > l && a.push(new Ph(l, m.from, p)); let v = m.direction == Sy != !(p % 2); - t7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.to; + r7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.to; } g = m.to; } else { @@ -5633,7 +5633,7 @@ function e7(t, e, r, n, i, s, a) { break; g++; } - d ? e7(t, l, g, n + 1, i, d, a) : l < g && a.push(new Ph(l, g, p)), l = g; + d ? t7(t, l, g, n + 1, i, d, a) : l < g && a.push(new Ph(l, g, p)), l = g; } else for (let l = r, u = s.length; l > e; ) { @@ -5666,7 +5666,7 @@ function e7(t, e, r, n, i, s, a) { else { m.to < l && a.push(new Ph(m.to, l, p)); let v = m.direction == Sy != !(p % 2); - t7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.from; + r7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.from; } g = m.from; } else { @@ -5674,29 +5674,29 @@ function e7(t, e, r, n, i, s, a) { break; g--; } - d ? e7(t, g, l, n + 1, i, d, a) : g < l && a.push(new Ph(g, l, p)), l = g; + d ? t7(t, g, l, n + 1, i, d, a) : g < l && a.push(new Ph(g, l, p)), l = g; } } -function t7(t, e, r, n, i, s, a) { +function r7(t, e, r, n, i, s, a) { let o = e % 2 ? 2 : 1; - Fbe(t, i, s, n, o), zbe(t, i, s, n, o), Vbe(i, s, n, o), e7(t, i, s, e, r, n, a); + zbe(t, i, s, n, o), Vbe(t, i, s, n, o), Ube(i, s, n, o), t7(t, i, s, e, r, n, a); } -function Ube(t, e, r) { +function qbe(t, e, r) { if (!t) - return [new Ph(0, 0, e == Fj ? 1 : 0)]; - if (e == Sy && !r.length && !Bbe.test(t)) - return Uj(t.length); + return [new Ph(0, 0, e == zj ? 1 : 0)]; + if (e == Sy && !r.length && !Fbe.test(t)) + return qj(t.length); if (r.length) for (; t.length > en.length; ) en[en.length] = 256; let n = [], i = e == Sy ? 0 : 1; - return t7(t, i, i, r, 0, t.length, n), n; + return r7(t, i, i, r, 0, t.length, n), n; } -function Uj(t) { +function qj(t) { return [new Ph(0, t, 0)]; } -let qj = ""; -function qbe(t, e, r, n, i) { +let Qj = ""; +function Qbe(t, e, r, n, i) { var s; let a = n.head - t.from, o = -1; if (a == 0) { @@ -5713,7 +5713,7 @@ function qbe(t, e, r, n, i) { let l = e[o]; a == l.side(i, r) && (l = e[o += i ? 1 : -1], a = l.side(!i, r)); let u = i == (l.dir == r), h = ls(t.text, a, u); - if (qj = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) + if (Qj = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) return Ve.cursor(h + t.from, u ? -1 : 1, l.level); let f = o == (i ? e.length - 1 : 0) ? null : e[o + (i ? 1 : -1)]; return !f && l.level != r ? Ve.cursor(i ? t.to : t.from, i ? -1 : 1, r) : f && f.level < l.level ? Ve.cursor(f.side(!i, r) + t.from, i ? 1 : -1, f.level) : Ve.cursor(h + t.from, i ? -1 : 1, l.level); @@ -5730,15 +5730,15 @@ class hB extends yn { let n = e.changedRanges; this.minWidth > 0 && n.length && (n.every(({ fromA: u, toA: h }) => h < this.minWidthFrom || u > this.minWidthTo) ? (this.minWidthFrom = e.changes.mapPos(this.minWidthFrom, 1), this.minWidthTo = e.changes.mapPos(this.minWidthTo, 1)) : this.minWidth = this.minWidthFrom = this.minWidthTo = 0); let i = -1; - this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !Zbe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); - let s = i > -1 ? Ybe(this.view, e.changes, i) : null; + this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !jbe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); + let s = i > -1 ? Wbe(this.view, e.changes, i) : null; if (this.domChanged = null, this.hasComposition) { this.markedForComposition.clear(); let { from: u, to: h } = this.hasComposition; n = new Fo(u, h, e.changes.mapPos(u, -1), e.changes.mapPos(h, 1)).addToSet(n.slice()); } this.hasComposition = s ? { from: s.range.fromB, to: s.range.toB } : null, (Mt.ie || Mt.chrome) && !s && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0); - let a = this.decorations, o = this.updateDeco(), l = Hbe(a, o, e.changes); + let a = this.decorations, o = this.updateDeco(), l = Xbe(a, o, e.changes); return n = Fo.extendWithRanges(n, l), !(this.flags & 7) && n.length == 0 ? !1 : (this.updateInner(n, e.startState.doc.length, s), e.transactions.length && (this.lastUpdate = Date.now()), !0); } updateInner(e, r, n) { @@ -5770,7 +5770,7 @@ class hB extends yn { } else ({ content: d, breakAtStart: p, openStart: g, openEnd: m } = Yv.build(this.view.state.doc, h, f, this.decorations, this.dynamicDecorationMap)); let { i: v, off: y } = s.findPos(u, 1), { i: b, off: w } = s.findPos(l, -1); - bj(this, b, w, v, y, d, p, g, m); + xj(this, b, w, v, y, d, p, g, m); } n && this.fixCompositionDOM(n); } @@ -5800,20 +5800,20 @@ class hB extends yn { let a = this.forceSelection; this.forceSelection = !1; let o = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(o.anchor)), u = o.empty ? l : this.moveToLine(this.domAtPos(o.head)); - if (Mt.gecko && o.empty && !this.hasComposition && Qbe(l)) { + if (Mt.gecko && o.empty && !this.hasComposition && Ybe(l)) { let f = document.createTextNode(""); this.view.observer.ignore(() => l.node.insertBefore(f, l.node.childNodes[l.offset] || null)), l = u = new Ms(f, 0), a = !0; } let h = this.view.observer.selectionRange; (a || !h.focusNode || !x5(l.node, l.offset, h.anchorNode, h.anchorOffset) || !x5(u.node, u.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { - Mt.android && Mt.chrome && this.dom.contains(h.focusNode) && Xbe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); + Mt.android && Mt.chrome && this.dom.contains(h.focusNode) && Zbe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); let f = b5(this.view.root); if (f) if (o.empty) { if (Mt.gecko) { - let d = Wbe(l.node, l.offset); + let d = Gbe(l.node, l.offset); if (d && d != 3) { - let p = Yj(l.node, l.offset, d == 1 ? 1 : -1); + let p = Wj(l.node, l.offset, d == 1 ? 1 : -1); p && (l = new Ms(p.node, p.offset)); } } @@ -5967,7 +5967,7 @@ class hB extends yn { } childCursor(e = this.length) { let r = this.children.length; - return r && (e -= this.children[--r].length), new yj(this.children, e, r); + return r && (e -= this.children[--r].length), new bj(this.children, e, r); } computeBlockGapDeco() { let e = [], r = this.view.viewState; @@ -6013,19 +6013,19 @@ class hB extends yn { right: Math.max(n.right, i.right), bottom: Math.max(n.bottom, i.bottom) }); - let s = Bj(this.view), a = { + let s = Fj(this.view), a = { left: n.left - s.left, top: n.top - s.top, right: n.right + s.right, bottom: n.bottom + s.bottom }, { offsetWidth: o, offsetHeight: l } = this.view.scrollDOM; - Sbe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == In.LTR); + Tbe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == In.LTR); } } -function Qbe(t) { +function Ybe(t) { return t.node.nodeType == 1 && t.node.firstChild && (t.offset == 0 || t.node.childNodes[t.offset - 1].contentEditable == "false") && (t.offset == t.node.childNodes.length || t.node.childNodes[t.offset].contentEditable == "false"); } -class fB extends za { +class fB extends Va { constructor(e) { super(), this.height = e; } @@ -6043,15 +6043,15 @@ class fB extends za { return this.height; } } -function Qj(t, e) { - let r = t.observer.selectionRange, n = r.focusNode && Yj(r.focusNode, r.focusOffset, 0); +function Yj(t, e) { + let r = t.observer.selectionRange, n = r.focusNode && Wj(r.focusNode, r.focusOffset, 0); if (!n) return null; let i = e - n.offset; return { from: i, to: i + n.node.nodeValue.length, node: n.node }; } -function Ybe(t, e, r) { - let n = Qj(t, r); +function Wbe(t, e, r) { + let n = Yj(t, r); if (!n) return null; let { node: i, from: s, to: a } = n, o = i.nodeValue; @@ -6068,7 +6068,7 @@ function Ybe(t, e, r) { if (f != t.contentDOM) h.push({ node: f, deco: new qb({ inclusive: !0, - attributes: Mbe(f), + attributes: Dbe(f), tagName: f.tagName.toLowerCase() }) }); else @@ -6076,7 +6076,7 @@ function Ybe(t, e, r) { } } } -function Yj(t, e, r) { +function Wj(t, e, r) { if (r <= 0) for (let n = t, i = e; ; ) { if (n.nodeType == 3) @@ -6097,37 +6097,37 @@ function Yj(t, e, r) { } return null; } -function Wbe(t, e) { +function Gbe(t, e) { return t.nodeType != 1 ? 0 : (e && t.childNodes[e - 1].contentEditable == "false" ? 1 : 0) | (e < t.childNodes.length && t.childNodes[e].contentEditable == "false" ? 2 : 0); } -let Gbe = class { +let Hbe = class { constructor() { this.changes = []; } compareRange(e, r) { - jA(e, r, this.changes); + KA(e, r, this.changes); } comparePoint(e, r) { - jA(e, r, this.changes); + KA(e, r, this.changes); } }; -function Hbe(t, e, r) { - let n = new Gbe(); +function Xbe(t, e, r) { + let n = new Hbe(); return Er.compare(t, e, r, n), n.changes; } -function Xbe(t, e) { +function Zbe(t, e) { for (let r = t; r && r != e; r = r.assignedSlot || r.parentNode) if (r.nodeType == 1 && r.contentEditable == "false") return !0; return !1; } -function Zbe(t, e) { +function jbe(t, e) { let r = !1; return e && t.iterChangedRanges((n, i) => { n < e.to && i > e.from && (r = !0); }), r; } -function jbe(t, e, r = 1) { +function Kbe(t, e, r = 1) { let n = t.charCategorizer(e), i = t.doc.lineAt(e), s = e - i.from; if (i.length == 0) return Ve.cursor(e); @@ -6149,13 +6149,13 @@ function jbe(t, e, r = 1) { } return Ve.range(a + i.from, o + i.from); } -function Kbe(t, e) { +function Jbe(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); } -function Jbe(t, e) { +function exe(t, e) { return e.top > t ? e.top - t : Math.max(0, t - e.bottom); } -function pE(t, e) { +function gE(t, e) { return t.top < e.bottom - 1 && t.bottom > e.top + 1; } function dB(t, e) { @@ -6164,22 +6164,22 @@ function dB(t, e) { function pB(t, e) { return e > t.bottom ? { top: t.top, left: t.left, right: t.right, bottom: e } : t; } -function r7(t, e, r) { +function n7(t, e, r) { let n, i, s, a, o = !1, l, u, h, f; for (let g = t.firstChild; g; g = g.nextSibling) { let m = wy(g); for (let v = 0; v < m.length; v++) { let y = m[v]; - i && pE(i, y) && (y = dB(pB(y, i.bottom), i.top)); - let b = Kbe(e, y), w = Jbe(r, y); + i && gE(i, y) && (y = dB(pB(y, i.bottom), i.top)); + let b = Jbe(e, y), w = exe(r, y); if (b == 0 && w == 0) - return g.nodeType == 3 ? gB(g, e, r) : r7(g, e, r); + return g.nodeType == 3 ? gB(g, e, r) : n7(g, e, r); if (!n || a > w || a == w && s > b) { n = g, i = y, s = b, a = w; let O = w ? r < y.top ? -1 : 1 : b ? e < y.left ? -1 : 1 : 0; o = !O || (O > 0 ? v < m.length - 1 : v > 0); } - b == 0 ? r > y.bottom && (!h || h.bottom < y.bottom) ? (l = g, h = y) : r < y.top && (!f || f.top > y.top) && (u = g, f = y) : h && pE(h, y) ? h = pB(h, y.bottom) : f && pE(f, y) && (f = dB(f, y.top)); + b == 0 ? r > y.bottom && (!h || h.bottom < y.bottom) ? (l = g, h = y) : r < y.top && (!f || f.top > y.top) && (u = g, f = y) : h && gE(h, y) ? h = pB(h, y.bottom) : f && gE(f, y) && (f = dB(f, y.top)); } } if (h && h.bottom >= r ? (n = l, i = h) : f && f.top <= r && (n = u, i = f), !n) @@ -6188,7 +6188,7 @@ function r7(t, e, r) { if (n.nodeType == 3) return gB(n, d, r); if (o && n.contentEditable != "false") - return r7(n, d, r); + return n7(n, d, r); let p = Array.prototype.indexOf.call(t.childNodes, n) + (e >= (i.left + i.right) / 2 ? 1 : 0); return { node: t, offset: p }; } @@ -6212,7 +6212,7 @@ function gB(t, e, r) { } return { node: t, offset: i > -1 ? i : a > 0 ? t.nodeValue.length : 0 }; } -function Wj(t, e, r, n = -1) { +function Gj(t, e, r, n = -1) { var i, s; let a = t.contentDOM.getBoundingClientRect(), o = a.top + t.viewState.paddingTop, l, { docHeight: u } = t.viewState, { x: h, y: f } = e, d = f - o; if (d < 0) @@ -6240,14 +6240,14 @@ function Wj(t, e, r, n = -1) { O && ({ offsetNode: y, offset: b } = O); } else if (g.caretRangeFromPoint) { let O = g.caretRangeFromPoint(h, f); - O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Mt.safari && exe(y, b, h) || Mt.chrome && txe(y, b, h)) && (y = void 0)); + O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Mt.safari && txe(y, b, h) || Mt.chrome && rxe(y, b, h)) && (y = void 0)); } } if (!y || !t.docView.dom.contains(y)) { let O = bi.find(t.docView, p); if (!O) return d > l.top + l.height / 2 ? l.to : l.from; - ({ node: y, offset: b } = r7(O.dom, h, f)); + ({ node: y, offset: b } = n7(O.dom, h, f)); } let w = t.docView.nearest(y); if (!w) @@ -6265,9 +6265,9 @@ function mB(t, e, r, n, i) { s += l * t.viewState.heightOracle.lineLength; } let a = t.state.sliceDoc(r.from, r.to); - return r.from + UA(a, s, t.state.tabSize); + return r.from + qA(a, s, t.state.tabSize); } -function exe(t, e, r) { +function txe(t, e, r) { let n; if (t.nodeType != 3 || e != (n = t.nodeValue.length)) return !1; @@ -6276,7 +6276,7 @@ function exe(t, e, r) { return !1; return Zd(t, n - 1, n).getBoundingClientRect().left > r; } -function txe(t, e, r) { +function rxe(t, e, r) { if (e != 0) return !1; for (let i = t; ; ) { @@ -6290,7 +6290,7 @@ function txe(t, e, r) { let n = t.nodeType == 1 ? t.getBoundingClientRect() : Zd(t, 0, Math.max(t.nodeValue.length, 1)).getBoundingClientRect(); return r - n.left > 5; } -function n7(t, e) { +function i7(t, e) { let r = t.lineBlockAt(e); if (Array.isArray(r.type)) { for (let n of r.type) @@ -6299,8 +6299,8 @@ function n7(t, e) { } return r; } -function rxe(t, e, r, n) { - let i = n7(t, e.head), s = !n || i.type != ia.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); +function nxe(t, e, r, n) { + let i = i7(t, e.head), s = !n || i.type != ia.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); if (s) { let a = t.dom.getBoundingClientRect(), o = t.textDirectionAt(i.from), l = t.posAtCoords({ x: r == (o == In.LTR) ? a.right - 1 : a.left + 1, @@ -6314,7 +6314,7 @@ function rxe(t, e, r, n) { function vB(t, e, r, n) { let i = t.state.doc.lineAt(e.head), s = t.bidiSpans(i), a = t.textDirectionAt(i.from); for (let o = e, l = null; ; ) { - let u = qbe(i, s, a, o, r), h = qj; + let u = Qbe(i, s, a, o, r), h = Qj; if (!u) { if (i.number == (r ? t.state.doc.lines : 1)) return o; @@ -6332,14 +6332,14 @@ function vB(t, e, r, n) { o = u; } } -function nxe(t, e, r) { +function ixe(t, e, r) { let n = t.state.charCategorizer(e), i = n(r); return (s) => { let a = n(s); return i == Sn.Space && (i = a), i == a; }; } -function ixe(t, e, r, n) { +function sxe(t, e, r, n) { let i = e.head, s = r ? 1 : -1; if (i == (r ? t.state.doc.length : 0)) return Ve.cursor(i, e.assoc); @@ -6352,7 +6352,7 @@ function ixe(t, e, r, n) { } let f = l.left + a, d = n != null ? n : t.viewState.heightOracle.textHeight >> 1; for (let p = 0; ; p += 10) { - let g = o + (d + p) * s, m = Wj(t, { x: f, y: g }, !1, s); + let g = o + (d + p) * s, m = Gj(t, { x: f, y: g }, !1, s); if (g < l.top || g > l.bottom || (s < 0 ? m < i : m > i)) { let v = t.docView.coordsForChar(m), y = !v || g < v.top ? -1 : 1; return Ve.cursor(m, y, void 0, a); @@ -6373,19 +6373,19 @@ function a4(t, e, r) { return e; } } -function gE(t, e, r) { - let n = a4(t.state.facet(FR).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); +function mE(t, e, r) { + let n = a4(t.state.facet(zR).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); return n == r.from ? r : Ve.cursor(n, n < r.from ? 1 : -1); } -class sxe { +class axe { setSelectionOrigin(e) { this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now(); } constructor(e) { - this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Mt.safari && e.contentDOM.addEventListener("input", () => null), Mt.gecko && wxe(e.contentDOM.ownerDocument); + this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Mt.safari && e.contentDOM.addEventListener("input", () => null), Mt.gecko && Oxe(e.contentDOM.ownerDocument); } handleEvent(e) { - !dxe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); + !pxe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); } runHandlers(e, r) { let n = this.handlers[e]; @@ -6403,7 +6403,7 @@ class sxe { } } ensureHandlers(e) { - let r = axe(e), n = this.handlers, i = this.view.contentDOM; + let r = oxe(e), n = this.handlers, i = this.view.contentDOM; for (let s in r) if (s != "scroll") { let a = !r[s].handlers.length, o = n[s]; @@ -6416,10 +6416,10 @@ class sxe { keydown(e) { if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && Date.now() < this.lastEscPress + 2e3) return !0; - if (e.keyCode != 27 && Hj.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Mt.android && Mt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) + if (e.keyCode != 27 && Xj.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Mt.android && Mt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0; let r; - return Mt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = Gj.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || oxe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); + return Mt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = Hj.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || lxe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); } flushIOSKey() { let e = this.pendingIOSKey; @@ -6447,7 +6447,7 @@ function yB(t, e) { } }; } -function axe(t) { +function oxe(t) { let e = /* @__PURE__ */ Object.create(null); function r(n) { return e[n] || (e[n] = { observers: [], handlers: [] }); @@ -6471,23 +6471,23 @@ function axe(t) { r(n).observers.push(Nl[n]); return e; } -const Gj = [ +const Hj = [ { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" }, { key: "Enter", keyCode: 13, inputType: "insertParagraph" }, { key: "Enter", keyCode: 13, inputType: "insertLineBreak" }, { key: "Delete", keyCode: 46, inputType: "deleteContentForward" } -], oxe = "dthko", Hj = [16, 17, 18, 20, 91, 92, 224, 225], dw = 6; +], lxe = "dthko", Xj = [16, 17, 18, 20, 91, 92, 224, 225], dw = 6; function pw(t) { return Math.max(0, t) * 0.7 + 8; } -function lxe(t, e) { +function cxe(t, e) { return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY)); } -class cxe { +class uxe { constructor(e, r, n, i) { - this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Tbe(e.contentDOM), this.atoms = e.state.facet(FR).map((a) => a(e)); + this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Cbe(e.contentDOM), this.atoms = e.state.facet(zR).map((a) => a(e)); let s = e.contentDOM.ownerDocument; - s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(dr.allowMultipleSelections) && uxe(e, r), this.dragging = fxe(e, r) && Kj(r) == 1 ? null : !1; + s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(dr.allowMultipleSelections) && hxe(e, r), this.dragging = dxe(e, r) && Jj(r) == 1 ? null : !1; } start(e) { this.dragging === !1 && this.select(e); @@ -6496,10 +6496,10 @@ class cxe { var r; if (e.buttons == 0) return this.destroy(); - if (this.dragging || this.dragging == null && lxe(this.startEvent, e) < 10) + if (this.dragging || this.dragging == null && cxe(this.startEvent, e) < 10) return; this.select(this.lastEvent = e); - let n = 0, i = 0, s = ((r = this.scrollParent) === null || r === void 0 ? void 0 : r.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, a = Bj(this.view); + let n = 0, i = 0, s = ((r = this.scrollParent) === null || r === void 0 ? void 0 : r.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, a = Fj(this.view); e.clientX - a.left <= s.left + dw ? n = -pw(s.left - e.clientX) : e.clientX + a.right >= s.right - dw && (n = pw(e.clientX - s.right)), e.clientY - a.top <= s.top + dw ? i = -pw(s.top - e.clientY) : e.clientY + a.bottom >= s.bottom - dw && (i = pw(e.clientY - s.bottom)), this.setScrollSpeed(n, i); } up(e) { @@ -6542,15 +6542,15 @@ class cxe { this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20); } } -function uxe(t, e) { - let r = t.state.facet(Ej); - return r.length ? r[0](e) : Mt.mac ? e.metaKey : e.ctrlKey; -} function hxe(t, e) { let r = t.state.facet(_j); - return r.length ? r[0](e) : Mt.mac ? !e.altKey : !e.ctrlKey; + return r.length ? r[0](e) : Mt.mac ? e.metaKey : e.ctrlKey; } function fxe(t, e) { + let r = t.state.facet(Aj); + return r.length ? r[0](e) : Mt.mac ? !e.altKey : !e.ctrlKey; +} +function dxe(t, e) { let { main: r } = t.state.selection; if (r.empty) return !1; @@ -6565,7 +6565,7 @@ function fxe(t, e) { } return !1; } -function dxe(t, e) { +function pxe(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -6575,19 +6575,19 @@ function dxe(t, e) { return !1; return !0; } -const Dl = /* @__PURE__ */ Object.create(null), Nl = /* @__PURE__ */ Object.create(null), Xj = Mt.ie && Mt.ie_version < 15 || Mt.ios && Mt.webkit_version < 604; -function pxe(t) { +const Dl = /* @__PURE__ */ Object.create(null), Nl = /* @__PURE__ */ Object.create(null), Zj = Mt.ie && Mt.ie_version < 15 || Mt.ios && Mt.webkit_version < 604; +function gxe(t) { let e = t.dom.parentNode; if (!e) return; let r = e.appendChild(document.createElement("textarea")); r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus(), setTimeout(() => { - t.focus(), r.remove(), Zj(t, r.value); + t.focus(), r.remove(), jj(t, r.value); }, 50); } -function Zj(t, e) { +function jj(t, e) { let { state: r } = t, n, i = 1, s = r.toText(e), a = s.lines == r.selection.ranges.length; - if (i7 != null && r.selection.ranges.every((l) => l.empty) && i7 == s.toString()) { + if (s7 != null && r.selection.ranges.every((l) => l.empty) && s7 == s.toString()) { let l = -1; n = r.changeByRange((u) => { let h = r.doc.lineAt(u.from); @@ -6627,12 +6627,12 @@ Dl.mousedown = (t, e) => { if (t.observer.flush(), t.inputState.lastTouchTime > Date.now() - 2e3) return !1; let r = null; - for (let n of t.state.facet(Aj)) + for (let n of t.state.facet(Lj)) if (r = n(t, e), r) break; - if (!r && e.button == 0 && (r = vxe(t, e)), r) { + if (!r && e.button == 0 && (r = yxe(t, e)), r) { let n = !t.hasFocus; - t.inputState.startMouseSelection(new cxe(t, e, r, n)), n && t.observer.ignore(() => gj(t.contentDOM)); + t.inputState.startMouseSelection(new uxe(t, e, r, n)), n && t.observer.ignore(() => mj(t.contentDOM)); let i = t.inputState.mouseSelection; if (i) return i.start(e), i.dragging === !1; @@ -6643,14 +6643,14 @@ function bB(t, e, r, n) { if (n == 1) return Ve.cursor(e, r); if (n == 2) - return jbe(t.state, e, r); + return Kbe(t.state, e, r); { let i = bi.find(t.docView, e), s = t.state.doc.lineAt(i ? i.posAtEnd : e), a = i ? i.posAtStart : s.from, o = i ? i.posAtEnd : s.to; return o < t.state.doc.length && o == s.to && o++, Ve.range(a, o); } } -let jj = (t, e) => t >= e.top && t <= e.bottom, xB = (t, e, r) => jj(e, r) && t >= r.left && t <= r.right; -function gxe(t, e, r, n) { +let Kj = (t, e) => t >= e.top && t <= e.bottom, xB = (t, e, r) => Kj(e, r) && t >= r.left && t <= r.right; +function mxe(t, e, r, n) { let i = bi.find(t.docView, e); if (!i) return 1; @@ -6663,22 +6663,22 @@ function gxe(t, e, r, n) { if (a && xB(r, n, a)) return -1; let o = i.coordsAt(s, 1); - return o && xB(r, n, o) ? 1 : a && jj(n, a) ? -1 : 1; + return o && xB(r, n, o) ? 1 : a && Kj(n, a) ? -1 : 1; } function wB(t, e) { let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1); - return { pos: r, bias: gxe(t, r, e.clientX, e.clientY) }; + return { pos: r, bias: mxe(t, r, e.clientX, e.clientY) }; } -const mxe = Mt.ie && Mt.ie_version <= 11; +const vxe = Mt.ie && Mt.ie_version <= 11; let OB = null, kB = 0, SB = 0; -function Kj(t) { - if (!mxe) +function Jj(t) { + if (!vxe) return t.detail; let e = OB, r = SB; return OB = t, SB = Date.now(), kB = !e || r > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (kB + 1) % 3 : 1; } -function vxe(t, e) { - let r = wB(t, e), n = Kj(e), i = t.state.selection; +function yxe(t, e) { + let r = wB(t, e), n = Jj(e), i = t.state.selection; return { update(s) { s.docChanged && (r.pos = s.changes.mapPos(r.pos), i = i.map(s.changes)); @@ -6689,11 +6689,11 @@ function vxe(t, e) { let f = bB(t, r.pos, r.bias, n), d = Math.min(f.from, h.from), p = Math.max(f.to, h.to); h = d < h.from ? Ve.range(d, p) : Ve.range(p, d); } - return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = yxe(i, l.pos)) ? u : o ? i.addRange(h) : Ve.create([h]); + return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = bxe(i, l.pos)) ? u : o ? i.addRange(h) : Ve.create([h]); } }; } -function yxe(t, e) { +function bxe(t, e) { for (let r = 0; r < t.ranges.length; r++) { let { from: n, to: i } = t.ranges[r]; if (n <= e && i >= e) @@ -6717,7 +6717,7 @@ Dl.dragend = (t) => (t.inputState.draggedContent = null, !1); function TB(t, e, r, n) { if (!r) return; - let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && hxe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); + let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && fxe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); t.focus(), t.dispatch({ changes: l, selection: { anchor: l.mapPos(i, -1), head: l.mapPos(i, 1) }, @@ -6752,10 +6752,10 @@ Dl.paste = (t, e) => { if (t.state.readOnly) return !0; t.observer.flush(); - let r = Xj ? null : e.clipboardData; - return r ? (Zj(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (pxe(t), !1); + let r = Zj ? null : e.clipboardData; + return r ? (jj(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (gxe(t), !1); }; -function bxe(t, e) { +function xxe(t, e) { let r = t.dom.parentNode; if (!r) return; @@ -6764,7 +6764,7 @@ function bxe(t, e) { n.remove(), t.focus(); }, 50); } -function xxe(t) { +function wxe(t) { let e = [], r = [], n = !1; for (let i of t.selection.ranges) i.empty || (e.push(t.sliceDoc(i.from, i.to)), r.push(i)); @@ -6778,42 +6778,42 @@ function xxe(t) { } return { text: e.join(t.lineBreak), ranges: r, linewise: n }; } -let i7 = null; +let s7 = null; Dl.copy = Dl.cut = (t, e) => { - let { text: r, ranges: n, linewise: i } = xxe(t.state); + let { text: r, ranges: n, linewise: i } = wxe(t.state); if (!r && !i) return !1; - i7 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ + s7 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ changes: n, scrollIntoView: !0, userEvent: "delete.cut" }); - let s = Xj ? null : e.clipboardData; - return s ? (s.clearData(), s.setData("text/plain", r), !0) : (bxe(t, r), !1); + let s = Zj ? null : e.clipboardData; + return s ? (s.clearData(), s.setData("text/plain", r), !0) : (xxe(t, r), !1); }; -const Jj = /* @__PURE__ */ Vl.define(); -function eK(t, e) { +const eK = /* @__PURE__ */ Vl.define(); +function tK(t, e) { let r = []; - for (let n of t.facet(Mj)) { + for (let n of t.facet(Dj)) { let i = n(t, e); i && r.push(i); } - return r ? t.update({ effects: r, annotations: Jj.of(!0) }) : null; + return r ? t.update({ effects: r, annotations: eK.of(!0) }) : null; } -function tK(t) { +function rK(t) { setTimeout(() => { let e = t.hasFocus; if (e != t.inputState.notifiedFocused) { - let r = eK(t.state, e); + let r = tK(t.state, e); r ? t.dispatch(r) : t.update([]); } }, 10); } Nl.focus = (t) => { - t.inputState.lastFocusTime = Date.now(), !t.scrollDOM.scrollTop && (t.inputState.lastScrollTop || t.inputState.lastScrollLeft) && (t.scrollDOM.scrollTop = t.inputState.lastScrollTop, t.scrollDOM.scrollLeft = t.inputState.lastScrollLeft), tK(t); + t.inputState.lastFocusTime = Date.now(), !t.scrollDOM.scrollTop && (t.inputState.lastScrollTop || t.inputState.lastScrollLeft) && (t.scrollDOM.scrollTop = t.inputState.lastScrollTop, t.scrollDOM.scrollLeft = t.inputState.lastScrollLeft), rK(t); }; Nl.blur = (t) => { - t.observer.clearSelectionRange(), tK(t); + t.observer.clearSelectionRange(), rK(t); }; Nl.compositionstart = Nl.compositionupdate = (t) => { t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0); @@ -6829,7 +6829,7 @@ Nl.contextmenu = (t) => { Dl.beforeinput = (t, e) => { var r; let n; - if (Mt.chrome && Mt.android && (n = Gj.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(n.key, n.keyCode), n.key == "Backspace" || n.key == "Delete")) { + if (Mt.chrome && Mt.android && (n = Hj.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(n.key, n.keyCode), n.key == "Backspace" || n.key == "Delete")) { let i = ((r = window.visualViewport) === null || r === void 0 ? void 0 : r.height) || 0; setTimeout(() => { var s; @@ -6839,13 +6839,13 @@ Dl.beforeinput = (t, e) => { return !1; }; const CB = /* @__PURE__ */ new Set(); -function wxe(t) { +function Oxe(t) { CB.has(t) || (CB.add(t), t.addEventListener("copy", () => { }), t.addEventListener("cut", () => { })); } const EB = ["pre-wrap", "normal", "pre-line", "break-spaces"]; -class Oxe { +class kxe { constructor(e) { this.lineWrapping = e, this.doc = Dr.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1; } @@ -6882,7 +6882,7 @@ class Oxe { return l; } } -class kxe { +class Sxe { constructor(e, r) { this.from = e, this.heights = r, this.index = 0; } @@ -6947,13 +6947,13 @@ class sa { for (f += p.to - u, u = p.to; o > 0 && d.from <= i[o - 1].toA; ) l = i[o - 1].fromA, h = i[o - 1].fromB, o--, l < d.from && (d = s.lineAt(l, mn.ByPosNoHeight, n, 0, 0)); h += d.from - l, l = d.from; - let g = zR.build(n.setDoc(a), e, h, f); + let g = VR.build(n.setDoc(a), e, h, f); s = s.replace(l, u, g); } return s.updateHeight(n, 0); } static empty() { - return new ja(0, 0); + return new Ka(0, 0); } static of(e) { if (e.length == 1) @@ -6977,11 +6977,11 @@ class sa { o && (s += o.size); } let a = 0; - return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new Sxe(sa.of(e.slice(0, r)), a, sa.of(e.slice(n))); + return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new Txe(sa.of(e.slice(0, r)), a, sa.of(e.slice(n))); } } sa.prototype.size = 1; -class rK extends sa { +class nK extends sa { constructor(e, r, n) { super(e, r), this.deco = n; } @@ -7001,7 +7001,7 @@ class rK extends sa { return `block(${this.length})`; } } -class ja extends rK { +class Ka extends nK { constructor(e, r) { super(e, r, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0; } @@ -7010,7 +7010,7 @@ class ja extends rK { } replace(e, r, n) { let i = n[0]; - return n.length == 1 && (i instanceof ja || i instanceof is && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof is ? i = new ja(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : sa.of(n); + return n.length == 1 && (i instanceof Ka || i instanceof is && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof is ? i = new Ka(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : sa.of(n); } updateHeight(e, r = 0, n = !1, i) { return i && i.from <= r && i.more ? this.setHeight(e, i.heights[i.index++]) : (n || this.outdated) && this.setHeight(e, Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight), this.outdated = !1, this; @@ -7092,7 +7092,7 @@ class is extends sa { a.length && a.push(null); let f = i.heights[i.index++]; l == -1 ? l = f : Math.abs(f - l) >= o4 && (l = -2); - let d = new ja(h, f); + let d = new Ka(h, f); d.outdated = !1, a.push(d), o += h + 1; } o <= s && a.push(null, new is(s - o).updateHeight(e, o)); @@ -7106,7 +7106,7 @@ class is extends sa { return `gap(${this.length})`; } } -class Sxe extends sa { +class Txe extends sa { constructor(e, r, n) { super(e.length + r + n.length, e.height + n.height, r | (e.outdated || n.outdated ? 2 : 0)), this.left = e, this.right = n, this.size = e.size + n.size; } @@ -7177,8 +7177,8 @@ function _B(t, e) { let r, n; t[e] == null && (r = t[e - 1]) instanceof is && (n = t[e + 1]) instanceof is && t.splice(e - 1, 3, new is(r.length + 1 + n.length)); } -const Txe = 5; -class zR { +const Cxe = 5; +class VR { constructor(e, r) { this.pos = e, this.oracle = r, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e; } @@ -7188,7 +7188,7 @@ class zR { span(e, r) { if (this.lineStart > -1) { let n = Math.min(r, this.lineEnd), i = this.nodes[this.nodes.length - 1]; - i instanceof ja ? i.length += n - this.pos : (n > this.pos || !this.isCovered) && this.nodes.push(new ja(n - this.pos, -1)), this.writtenTo = n, r > n && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1); + i instanceof Ka ? i.length += n - this.pos : (n > this.pos || !this.isCovered) && this.nodes.push(new Ka(n - this.pos, -1)), this.writtenTo = n, r > n && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1); } this.pos = r; } @@ -7197,7 +7197,7 @@ class zR { let i = n.widget ? n.widget.estimatedHeight : 0, s = n.widget ? n.widget.lineBreaks : 0; i < 0 && (i = this.oracle.lineHeight); let a = r - e; - n.block ? this.addBlock(new rK(a, i, n)) : (a || s || i >= Txe) && this.addLineDeco(i, s, a); + n.block ? this.addBlock(new nK(a, i, n)) : (a || s || i >= Cxe) && this.addLineDeco(i, s, a); } else r > e && this.span(e, r); this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to); @@ -7206,7 +7206,7 @@ class zR { if (this.lineStart > -1) return; let { from: e, to: r } = this.oracle.doc.lineAt(this.pos); - this.lineStart = e, this.lineEnd = r, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new ja(this.pos - e, -1)), this.writtenTo = this.pos; + this.lineStart = e, this.lineEnd = r, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new Ka(this.pos - e, -1)), this.writtenTo = this.pos; } blankContent(e, r) { let n = new is(r - e); @@ -7215,9 +7215,9 @@ class zR { ensureLine() { this.enterLine(); let e = this.nodes.length ? this.nodes[this.nodes.length - 1] : null; - if (e instanceof ja) + if (e instanceof Ka) return e; - let r = new ja(0, -1); + let r = new Ka(0, -1); return this.nodes.push(r), r; } addBlock(e) { @@ -7231,32 +7231,32 @@ class zR { } finish(e) { let r = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1]; - this.lineStart > -1 && !(r instanceof ja) && !this.isCovered ? this.nodes.push(new ja(0, -1)) : (this.writtenTo < this.pos || r == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos)); + this.lineStart > -1 && !(r instanceof Ka) && !this.isCovered ? this.nodes.push(new Ka(0, -1)) : (this.writtenTo < this.pos || r == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos)); let n = e; for (let i of this.nodes) - i instanceof ja && i.updateHeight(this.oracle, n), n += i ? i.length : 1; + i instanceof Ka && i.updateHeight(this.oracle, n), n += i ? i.length : 1; return this.nodes; } static build(e, r, n, i) { - let s = new zR(n, e); + let s = new VR(n, e); return Er.spans(r, n, i, s, 0), s.finish(n); } } -function Cxe(t, e, r) { - let n = new Exe(); +function Exe(t, e, r) { + let n = new _xe(); return Er.compare(t, e, r, n, 0), n.changes; } -class Exe { +class _xe { constructor() { this.changes = []; } compareRange() { } comparePoint(e, r, n, i) { - (e < r || n && n.heightRelevant || i && i.heightRelevant) && jA(e, r, this.changes, 5); + (e < r || n && n.heightRelevant || i && i.heightRelevant) && KA(e, r, this.changes, 5); } } -function _xe(t, e) { +function Axe(t, e) { let r = t.getBoundingClientRect(), n = t.ownerDocument, i = n.defaultView || window, s = Math.max(0, r.left), a = Math.min(i.innerWidth, r.right), o = Math.max(0, r.top), l = Math.min(i.innerHeight, r.bottom); for (let u = t.parentNode; u && u != n.body; ) if (u.nodeType == 1) { @@ -7277,7 +7277,7 @@ function _xe(t, e) { bottom: Math.max(o, l) - (r.top + e) }; } -function Axe(t, e) { +function Lxe(t, e) { let r = t.getBoundingClientRect(); return { left: 0, @@ -7286,7 +7286,7 @@ function Axe(t, e) { bottom: r.bottom - (r.top + e) }; } -class mE { +class vE { constructor(e, r, n) { this.from = e, this.to = r, this.size = n; } @@ -7302,11 +7302,11 @@ class mE { } draw(e, r) { return Et.replace({ - widget: new Lxe(this.size * (r ? e.scaleY : e.scaleX), r) + widget: new Rxe(this.size * (r ? e.scaleY : e.scaleX), r) }).range(this.from, this.to); } } -class Lxe extends za { +class Rxe extends Va { constructor(e, r) { super(), this.size = e, this.vertical = r; } @@ -7324,8 +7324,8 @@ class Lxe extends za { class AB { constructor(e) { this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = LB, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = In.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; - let r = e.facet(BR).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); - this.heightOracle = new Oxe(r), this.stateDeco = e.facet(ky).filter((n) => typeof n != "function"), this.heightMap = sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle.setDoc(e.doc), [new Fo(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = Et.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); + let r = e.facet(FR).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); + this.heightOracle = new kxe(r), this.stateDeco = e.facet(ky).filter((n) => typeof n != "function"), this.heightMap = sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle.setDoc(e.doc), [new Fo(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = Et.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); } updateForViewport() { let e = [this.viewport], { main: r } = this.state.selection; @@ -7336,7 +7336,7 @@ class AB { e.push(new gw(s, a)); } } - this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? LB : new Dxe(this.heightOracle, this.heightMap, this.viewports); + this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? LB : new Nxe(this.heightOracle, this.heightMap, this.viewports); } updateViewportLines() { this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => { @@ -7347,12 +7347,12 @@ class AB { this.state = e.state; let n = this.stateDeco; this.stateDeco = this.state.facet(ky).filter((h) => typeof h != "function"); - let i = e.changedRanges, s = Fo.extendWithRanges(i, Cxe(n, this.stateDeco, e ? e.changes : ai.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); + let i = e.changedRanges, s = Fo.extendWithRanges(i, Exe(n, this.stateDeco, e ? e.changes : ai.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), this.heightMap.height != a && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height); let l = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport; (r && (r.range.head < l.from || r.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, r)); let u = !e.changes.empty || e.flags & 2 || l.from != this.viewport.from || l.to != this.viewport.to; - this.viewport = l, this.updateForViewport(), u && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(), r && (this.scrollTarget = r), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(Nj) && (this.mustEnforceCursorAssoc = !0); + this.viewport = l, this.updateForViewport(), u && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(), r && (this.scrollTarget = r), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(Ij) && (this.mustEnforceCursorAssoc = !0); } measure(e) { let r = e.contentDOM, n = window.getComputedStyle(r), i = this.heightOracle, s = n.whiteSpace; @@ -7361,14 +7361,14 @@ class AB { this.contentDOMHeight = o.height, this.mustMeasureContent = !1; let u = 0, h = 0; if (o.width && o.height) { - let { scaleX: O, scaleY: S } = pj(r, o); + let { scaleX: O, scaleY: S } = gj(r, o); (this.scaleX != O || this.scaleY != S) && (this.scaleX = O, this.scaleY = S, u |= 8, a = l = !0); } let f = (parseInt(n.paddingTop) || 0) * this.scaleY, d = (parseInt(n.paddingBottom) || 0) * this.scaleY; (this.paddingTop != f || this.paddingBottom != d) && (this.paddingTop = f, this.paddingBottom = d, u |= 10), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 8); let p = e.scrollDOM.scrollTop * this.scaleY; - this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = vj(e.scrollDOM); - let g = (this.printing ? Axe : _xe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; + this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = yj(e.scrollDOM); + let g = (this.printing ? Lxe : Axe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; this.pixelViewport = g; let y = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left; if (y != this.inView && (this.inView = y, y && (l = !0)), !this.inView && !this.scrollTarget) @@ -7383,7 +7383,7 @@ class AB { m > 0 && v > 0 ? h = Math.max(m, v) : m < 0 && v < 0 && (h = Math.min(m, v)), i.heightChanged = !1; for (let S of this.viewports) { let C = S.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(S); - this.heightMap = (a ? sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle, [new Fo(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new kxe(S.from, C)); + this.heightMap = (a ? sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle, [new Fo(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new Sxe(S.from, C)); } i.heightChanged && (u |= 2); } @@ -7422,7 +7422,7 @@ class AB { return e; let n = []; for (let i of e) - r.touchesRange(i.from, i.to) || n.push(new mE(r.mapPos(i.from), r.mapPos(i.to), i.size)); + r.touchesRange(i.from, i.to) || n.push(new vE(r.mapPos(i.from), r.mapPos(i.to), i.size)); return n; } ensureLineGaps(e, r) { @@ -7439,20 +7439,20 @@ class AB { l(u, v - 10, f, d), l(v + 10, h, f, d); return; } - let m = Mxe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); + let m = Dxe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); if (!m) { if (h < f.to && r && n && r.visibleRanges.some((v) => v.from <= h && v.to >= h)) { let v = r.moveToLineBoundary(Ve.cursor(h), !1, !0).head; v > u && (h = v); } - m = new mE(u, h, this.gapSize(f, u, h, d)); + m = new vE(u, h, this.gapSize(f, u, h, d)); } o.push(m); }; for (let u of this.viewportLines) { if (u.length < a) continue; - let h = Rxe(u.from, u.to, this.stateDeco); + let h = Mxe(u.from, u.to, this.stateDeco); if (h.total < a) continue; let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, p; @@ -7482,7 +7482,7 @@ class AB { return this.heightOracle.lineWrapping ? e.height * s : i.total * this.heightOracle.charWidth * s; } updateLineGaps(e) { - mE.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = Et.set(e.map((r) => r.draw(this, this.heightOracle.lineWrapping)))); + vE.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = Et.set(e.map((r) => r.draw(this, this.heightOracle.lineWrapping)))); } computeVisibleRanges() { let e = this.stateDeco; @@ -7523,7 +7523,7 @@ class gw { this.from = e, this.to = r; } } -function Rxe(t, e, r) { +function Mxe(t, e, r) { let n = [], i = t, s = 0; return Er.spans(r, t, e, { span() { @@ -7557,7 +7557,7 @@ function vw(t, e) { } return r / t.total; } -function Mxe(t, e) { +function Dxe(t, e) { for (let r of t) if (e(r)) return r; @@ -7571,7 +7571,7 @@ const LB = { }, scale: 1 }; -class Dxe { +class Nxe { constructor(e, r, n) { let i = 0, s = 0, a = 0; this.viewports = n.map(({ from: o, to: l }) => { @@ -7608,8 +7608,8 @@ function dv(t, e) { let r = e.toDOM(t.top), n = e.toDOM(t.bottom); return new fc(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => dv(i, e)) : t._content); } -const yw = /* @__PURE__ */ _t.define({ combine: (t) => t.join(" ") }), s7 = /* @__PURE__ */ _t.define({ combine: (t) => t.indexOf(!0) > -1 }), a7 = /* @__PURE__ */ Iu.newName(), nK = /* @__PURE__ */ Iu.newName(), iK = /* @__PURE__ */ Iu.newName(), sK = { "&light": "." + nK, "&dark": "." + iK }; -function o7(t, e, r) { +const yw = /* @__PURE__ */ _t.define({ combine: (t) => t.join(" ") }), a7 = /* @__PURE__ */ _t.define({ combine: (t) => t.indexOf(!0) > -1 }), o7 = /* @__PURE__ */ Iu.newName(), iK = /* @__PURE__ */ Iu.newName(), sK = /* @__PURE__ */ Iu.newName(), aK = { "&light": "." + iK, "&dark": "." + sK }; +function l7(t, e, r) { return new Iu(e, { finish(n) { return /&/.test(n) ? n.replace(/&\w*/, (i) => { @@ -7622,7 +7622,7 @@ function o7(t, e, r) { } }); } -const Nxe = /* @__PURE__ */ o7("." + a7, { +const Ixe = /* @__PURE__ */ l7("." + o7, { "&": { position: "relative !important", boxSizing: "border-box", @@ -7853,8 +7853,8 @@ const Nxe = /* @__PURE__ */ o7("." + a7, { border: "1px solid #555", backgroundColor: "inherit" } -}, sK), pv = "\uFFFF"; -class Ixe { +}, aK), pv = "\uFFFF"; +class Pxe { constructor(e, r) { this.points = e, this.text = "", this.lineSeparator = r.facet(dr.lineSeparator); } @@ -7911,10 +7911,10 @@ class Ixe { } findPointInside(e, r) { for (let n of this.points) - (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (Pxe(e, n.node, n.offset) ? r : 0)); + (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + ($xe(e, n.node, n.offset) ? r : 0)); } } -function Pxe(t, e, r) { +function $xe(t, e, r) { for (; ; ) { if (!e || r < Pu(e)) return !1; @@ -7931,34 +7931,34 @@ class MB { this.node = e, this.offset = r, this.pos = -1; } } -class $xe { +class Bxe { constructor(e, r, n, i) { this.typeOver = i, this.bounds = null, this.text = ""; let { impreciseHead: s, impreciseAnchor: a } = e.docView; if (e.state.readOnly && r > -1) this.newSel = null; else if (r > -1 && (this.bounds = e.docView.domBoundsAround(r, n, 0))) { - let o = s || a ? [] : zxe(e), l = new Ixe(o, e.state); - l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = Vxe(o, this.bounds.from); + let o = s || a ? [] : Vxe(e), l = new Pxe(o, e.state); + l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = Uxe(o, this.bounds.from); } else { - let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !YA(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = a && a.node == o.anchorNode && a.offset == o.anchorOffset || !YA(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); + let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !WA(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = a && a.node == o.anchorNode && a.offset == o.anchorOffset || !WA(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); this.newSel = Ve.single(u, l); } } } -function aK(t, e) { +function oK(t, e) { let r, { newSel: n } = e, i = t.state.selection.main, s = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1; if (e.bounds) { let { from: a, to: o } = e.bounds, l = i.from, u = null; (s === 8 || Mt.android && e.text.length < o - a) && (l = i.to, u = "end"); - let h = Fxe(t.state.doc.sliceString(a, o, pv), e.text, l - a, u); + let h = zxe(t.state.doc.sliceString(a, o, pv), e.text, l - a, u); h && (Mt.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == pv + pv && h.toB--, r = { from: a + h.from, to: a + h.toA, insert: Dr.of(e.text.slice(h.from, h.toB).split(pv)) }); } else - n && (!t.hasFocus && t.state.facet(IS) || n.main.eq(i)) && (n = null); + n && (!t.hasFocus && t.state.facet(PS) || n.main.eq(i)) && (n = null); if (!r && !n) return !1; if (!r && e.typeOver && !i.empty && n && n.main.empty ? r = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : r && r.from >= i.from && r.to <= i.to && (r.from != i.from || r.to != i.to) && i.to - i.from - (r.to - r.from) <= 4 ? r = { @@ -7971,15 +7971,15 @@ function aK(t, e) { return !0; let a = r.insert.toString(); t.inputState.composing >= 0 && t.inputState.composing++; - let o, l = () => o || (o = Bxe(t, r, n)); - return t.state.facet(Rj).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; + let o, l = () => o || (o = Fxe(t, r, n)); + return t.state.facet(Mj).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; } else if (n && !n.main.eq(i)) { let a = !1, o = "select"; return t.inputState.lastSelectionTime > Date.now() - 50 && (t.inputState.lastSelectionOrigin == "select" && (a = !0), o = t.inputState.lastSelectionOrigin), t.dispatch({ selection: n, scrollIntoView: a, userEvent: o }), !0; } else return !1; } -function Bxe(t, e, r) { +function Fxe(t, e, r) { let n, i = t.state, s = i.selection.main; if (e.from >= s.from && e.to <= s.to && e.to - e.from >= (s.to - s.from) / 3 && (!r || r.main.empty && r.main.from == e.from + e.insert.length) && t.inputState.composing < 0) { let o = s.from < e.from ? i.sliceDoc(s.from, e.from) : "", l = s.to > e.to ? i.sliceDoc(e.to, s.to) : ""; @@ -7987,7 +7987,7 @@ function Bxe(t, e, r) { } else { let o = i.changes(e), l = r && r.main.to <= o.newLength ? r.main : void 0; if (i.selection.ranges.length > 1 && t.inputState.composing >= 0 && e.to <= s.to && e.to >= s.to - 10) { - let u = t.state.sliceDoc(e.from, e.to), h, f = r && Qj(t, r.main.head); + let u = t.state.sliceDoc(e.from, e.to), h, f = r && Yj(t, r.main.head); if (f) { let g = e.insert.length - (e.to - e.from); h = { from: f.from, to: f.to - g }; @@ -8015,7 +8015,7 @@ function Bxe(t, e, r) { let a = "input.type"; return (t.composing || t.inputState.compositionPendingChange && t.inputState.compositionEndedAt > Date.now() - 50) && (t.inputState.compositionPendingChange = !1, a += ".compose", t.inputState.compositionFirstChange && (a += ".start", t.inputState.compositionFirstChange = !1)), i.update(n, { userEvent: a, scrollIntoView: !0 }); } -function Fxe(t, e, r, n) { +function zxe(t, e, r, n) { let i = Math.min(t.length, e.length), s = 0; for (; s < i && t.charCodeAt(s) == e.charCodeAt(s); ) s++; @@ -8037,33 +8037,33 @@ function Fxe(t, e, r, n) { } return { from: s, toA: a, toB: o }; } -function zxe(t) { +function Vxe(t) { let e = []; if (t.root.activeElement != t.contentDOM) return e; let { anchorNode: r, anchorOffset: n, focusNode: i, focusOffset: s } = t.observer.selectionRange; return r && (e.push(new MB(r, n)), (i != r || s != n) && e.push(new MB(i, s))), e; } -function Vxe(t, e) { +function Uxe(t, e) { if (t.length == 0) return null; let r = t[0].pos, n = t.length == 2 ? t[1].pos : r; return r > -1 && n > -1 ? Ve.single(r + e, n + e) : null; } -const Uxe = { +const qxe = { childList: !0, characterData: !0, subtree: !0, attributes: !0, characterDataOldValue: !0 -}, vE = Mt.ie && Mt.ie_version <= 11; -class qxe { +}, yE = Mt.ie && Mt.ie_version <= 11; +class Qxe { constructor(e) { - this.view = e, this.active = !1, this.selectionRange = new Cbe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { + this.view = e, this.active = !1, this.selectionRange = new Ebe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { for (let n of r) this.queue.push(n); (Mt.ie && Mt.ie_version <= 11 || Mt.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush(); - }), vE && (this.onCharData = (r) => { + }), yE && (this.onCharData = (r) => { this.queue.push({ target: r.target, type: "characterData", @@ -8107,7 +8107,7 @@ class qxe { if (!this.readSelectionRange() || this.delayedAndroidKey) return; let { view: n } = this, i = this.selectionRange; - if (n.state.facet(IS) ? n.root.activeElement != this.dom : !s4(n.dom, i)) + if (n.state.facet(PS) ? n.root.activeElement != this.dom : !s4(n.dom, i)) return; let s = i.anchorNode && n.docView.nearest(i.anchorNode); if (s && s.ignoreEvent(e)) { @@ -8117,11 +8117,11 @@ class qxe { (Mt.ie && Mt.ie_version <= 11 || Mt.android && Mt.chrome) && !n.state.selection.main.empty && i.focusNode && x5(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); } readSelectionRange() { - let { view: e } = this, r = Mt.safari && e.root.nodeType == 11 && Obe(this.dom.ownerDocument) == this.dom && Qxe(this.view) || b5(e.root); + let { view: e } = this, r = Mt.safari && e.root.nodeType == 11 && kbe(this.dom.ownerDocument) == this.dom && Yxe(this.view) || b5(e.root); if (!r || this.selectionRange.eq(r)) return !1; let n = s4(this.dom, r); - return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && _be(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); + return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Abe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); } setSelectionRange(e, r) { this.selectionRange.set(e.node, e.offset, r.node, r.offset), this.selectionChanged = !1; @@ -8156,10 +8156,10 @@ class qxe { } } start() { - this.active || (this.observer.observe(this.dom, Uxe), vE && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); + this.active || (this.observer.observe(this.dom, qxe), yE && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); } stop() { - !this.active || (this.active = !1, this.observer.disconnect(), vE && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); + !this.active || (this.active = !1, this.observer.disconnect(), yE && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); } clear() { this.processRecords(), this.queue.length = 0, this.selectionChanged = !1; @@ -8210,7 +8210,7 @@ class qxe { if (e < 0 && !i) return null; e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1; - let s = new $xe(this.view, e, r, n); + let s = new Bxe(this.view, e, r, n); return this.view.docView.domChanged = { newSel: s.newSel ? s.newSel.main : null }, s; } flush(e = !0) { @@ -8220,7 +8220,7 @@ class qxe { let r = this.readChange(); if (!r) return this.view.requestMeasure(), !1; - let n = this.view.state, i = aK(this.view, r); + let n = this.view.state, i = oK(this.view, r); return this.view.state == n && this.view.update([]), i; } readMutation(e) { @@ -8264,7 +8264,7 @@ function DB(t, e, r) { } return null; } -function Qxe(t) { +function Yxe(t) { let e = null; function r(l) { l.preventDefault(), l.stopImmediatePropagation(), e = l.getTargetRanges()[0]; @@ -8302,10 +8302,10 @@ class ht { constructor(e = {}) { this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom); let { dispatch: r } = e; - this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Ebe(e.parent) || document, this.viewState = new AB(e.state || dr.create(e)), e.scrollTo && e.scrollTo.is(fw) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(hv).map((n) => new dE(n)); + this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || _be(e.parent) || document, this.viewState = new AB(e.state || dr.create(e)), e.scrollTo && e.scrollTo.is(fw) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(hv).map((n) => new pE(n)); for (let n of this.plugins) n.update(this); - this.observer = new qxe(this), this.inputState = new sxe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new hB(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); + this.observer = new Qxe(this), this.inputState = new axe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new hB(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); } dispatch(...e) { let r = e.length == 1 && e[0] instanceof fi ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)]; @@ -8325,7 +8325,7 @@ class ht { return; } let a = this.hasFocus, o = 0, l = null; - e.some((d) => d.annotation(Jj)) ? (this.inputState.notifiedFocused = a, o = 1) : a != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = a, l = eK(s, a), l || (o = 1)); + e.some((d) => d.annotation(eK)) ? (this.inputState.notifiedFocused = a, o = 1) : a != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = a, l = tK(s, a), l || (o = 1)); let u = this.observer.delayedAndroidKey, h = null; if (u ? (this.observer.clearDelayedAndroidKey(), h = this.observer.readChange(), (h && !this.state.doc.eq(s.doc) || !this.state.selection.eq(s.selection)) && (h = null)) : this.observer.clear(), s.facet(dr.phrases) != this.state.facet(dr.phrases)) return this.setState(s); @@ -8346,14 +8346,14 @@ class ht { this.updateState = 0; } if (i.startState.facet(yw) != i.state.facet(yw) && (this.viewState.mustMeasureContent = !0), (r || n || f || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), !i.empty) - for (let d of this.state.facet(KA)) + for (let d of this.state.facet(JA)) try { d(i); } catch (p) { Bo(this.state, p, "update listener"); } (l || h) && Promise.resolve().then(() => { - l && this.state == l.startState && this.dispatch(l), h && !aK(this, h) && u.force && Wp(this.contentDOM, u.key, u.keyCode); + l && this.state == l.startState && this.dispatch(l), h && !oK(this, h) && u.force && Wp(this.contentDOM, u.key, u.keyCode); }); } setState(e) { @@ -8368,7 +8368,7 @@ class ht { try { for (let n of this.plugins) n.destroy(this); - this.viewState = new AB(e), this.plugins = e.facet(hv).map((n) => new dE(n)), this.pluginMap.clear(); + this.viewState = new AB(e), this.plugins = e.facet(hv).map((n) => new pE(n)), this.pluginMap.clear(); for (let n of this.plugins) n.update(this); this.docView.destroy(), this.docView = new hB(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = []; @@ -8384,7 +8384,7 @@ class ht { for (let s of n) { let a = r.indexOf(s); if (a < 0) - i.push(new dE(s)); + i.push(new pE(s)); else { let o = this.plugins[a]; o.mustUpdate = e, i.push(o); @@ -8413,7 +8413,7 @@ class ht { try { for (let o = 0; ; o++) { if (a < 0) - if (vj(n)) + if (yj(n)) s = -1, a = this.viewState.heightMap.height; else { let p = this.viewState.scrollAnchorAt(i); @@ -8464,29 +8464,29 @@ class ht { this.updateState = 0, this.measureScheduled = -1; } if (r && !r.empty) - for (let o of this.state.facet(KA)) + for (let o of this.state.facet(JA)) o(r); } get themeClasses() { - return a7 + " " + (this.state.facet(s7) ? iK : nK) + " " + this.state.facet(yw); + return o7 + " " + (this.state.facet(a7) ? sK : iK) + " " + this.state.facet(yw); } updateAttrs() { - let e = IB(this, Ij, { + let e = IB(this, Pj, { class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses }), r = { spellcheck: "false", autocorrect: "off", autocapitalize: "off", translate: "no", - contenteditable: this.state.facet(IS) ? "true" : "false", + contenteditable: this.state.facet(PS) ? "true" : "false", class: "cm-content", style: `${Mt.tabSize}: ${this.state.tabSize}`, role: "textbox", "aria-multiline": "true" }; - this.state.readOnly && (r["aria-readonly"] = "true"), IB(this, BR, r); + this.state.readOnly && (r["aria-readonly"] = "true"), IB(this, FR, r); let n = this.observer.ignore(() => { - let i = ZA(this.contentDOM, this.contentAttrs, r), s = ZA(this.dom, this.editorAttrs, e); + let i = jA(this.contentDOM, this.contentAttrs, r), s = jA(this.dom, this.editorAttrs, e); return i || s; }); return this.editorAttrs = e, this.contentAttrs = r, n; @@ -8504,7 +8504,7 @@ class ht { mountStyles() { this.styleModules = this.state.facet(fv); let e = this.state.facet(ht.cspNonce); - Iu.mount(this.root, this.styleModules.concat(Nxe).reverse(), e ? { nonce: e } : void 0); + Iu.mount(this.root, this.styleModules.concat(Ixe).reverse(), e ? { nonce: e } : void 0); } readMeasured() { if (this.updateState == 2) @@ -8557,16 +8557,16 @@ class ht { return this.viewState.contentHeight; } moveByChar(e, r, n) { - return gE(this, e, vB(this, e, r, n)); + return mE(this, e, vB(this, e, r, n)); } moveByGroup(e, r) { - return gE(this, e, vB(this, e, r, (n) => nxe(this, e.head, n))); + return mE(this, e, vB(this, e, r, (n) => ixe(this, e.head, n))); } moveToLineBoundary(e, r, n = !0) { - return rxe(this, e, r, n); + return nxe(this, e, r, n); } moveVertically(e, r, n) { - return gE(this, e, ixe(this, e, r, n)); + return mE(this, e, sxe(this, e, r, n)); } domAtPos(e) { return this.docView.domAtPos(e); @@ -8575,7 +8575,7 @@ class ht { return this.docView.posFromDOM(e, r); } posAtCoords(e, r = !0) { - return this.readMeasured(), Wj(this, e, r); + return this.readMeasured(), Gj(this, e, r); } coordsAtPos(e, r = 1) { this.readMeasured(); @@ -8583,7 +8583,7 @@ class ht { if (!n || n.left == n.right) return n; let i = this.state.doc.lineAt(e), s = this.bidiSpans(i), a = s[Ph.find(s, e - i.from, -1, r)]; - return IR(n, a.dir == In.LTR == r > 0); + return PR(n, a.dir == In.LTR == r > 0); } coordsForChar(e) { return this.readMeasured(), this.docView.coordsForChar(e); @@ -8598,20 +8598,20 @@ class ht { return this.viewState.defaultTextDirection; } textDirectionAt(e) { - return !this.state.facet(Dj) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e)); + return !this.state.facet(Nj) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e)); } get lineWrapping() { return this.viewState.heightOracle.lineWrapping; } bidiSpans(e) { - if (e.length > Yxe) - return Uj(e.length); + if (e.length > Wxe) + return qj(e.length); let r = this.textDirectionAt(e.from), n; for (let s of this.bidiCache) - if (s.from == e.from && s.dir == r && (s.fresh || Vj(s.isolates, n = uB(this, e.from, e.to)))) + if (s.from == e.from && s.dir == r && (s.fresh || Uj(s.isolates, n = uB(this, e.from, e.to)))) return s.order; n || (n = uB(this, e.from, e.to)); - let i = Ube(e.text, r, n); + let i = qbe(e.text, r, n); return this.bidiCache.push(new O5(e.from, e.to, r, n, !0, i)), i; } get hasFocus() { @@ -8620,7 +8620,7 @@ class ht { } focus() { this.observer.ignore(() => { - gj(this.contentDOM), this.docView.updateSelection(); + mj(this.contentDOM), this.docView.updateSelection(); }); } setRoot(e) { @@ -8645,11 +8645,11 @@ class ht { return an.define(() => ({}), { eventObservers: e }); } static theme(e, r) { - let n = Iu.newName(), i = [yw.of(n), fv.of(o7(`.${n}`, e))]; - return r && r.dark && i.push(s7.of(!0)), i; + let n = Iu.newName(), i = [yw.of(n), fv.of(l7(`.${n}`, e))]; + return r && r.dark && i.push(a7.of(!0)), i; } static baseTheme(e) { - return zl.lowest(fv.of(o7("." + a7, e, sK))); + return zl.lowest(fv.of(l7("." + o7, e, aK))); } static findFromDOM(e) { var r; @@ -8658,26 +8658,26 @@ class ht { } } ht.styleModule = fv; -ht.inputHandler = Rj; -ht.focusChangeEffect = Mj; -ht.perLineTextDirection = Dj; -ht.exceptionSink = Lj; -ht.updateListener = KA; -ht.editable = IS; -ht.mouseSelectionStyle = Aj; -ht.dragMovesSelection = _j; -ht.clickAddsSelectionRange = Ej; +ht.inputHandler = Mj; +ht.focusChangeEffect = Dj; +ht.perLineTextDirection = Nj; +ht.exceptionSink = Rj; +ht.updateListener = JA; +ht.editable = PS; +ht.mouseSelectionStyle = Lj; +ht.dragMovesSelection = Aj; +ht.clickAddsSelectionRange = _j; ht.decorations = ky; -ht.atomicRanges = FR; -ht.bidiIsolatedRanges = Pj; -ht.scrollMargins = $j; -ht.darkTheme = s7; +ht.atomicRanges = zR; +ht.bidiIsolatedRanges = $j; +ht.scrollMargins = Bj; +ht.darkTheme = a7; ht.cspNonce = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : "" }); -ht.contentAttributes = BR; -ht.editorAttributes = Ij; +ht.contentAttributes = FR; +ht.editorAttributes = Pj; ht.lineWrapping = /* @__PURE__ */ ht.contentAttributes.of({ class: "cm-lineWrapping" }); ht.announce = /* @__PURE__ */ Zt.define(); -const Yxe = 4096, NB = {}; +const Wxe = 4096, NB = {}; class O5 { constructor(e, r, n, i, s, a) { this.from = e, this.to = r, this.dir = n, this.isolates = i, this.fresh = s, this.order = a; @@ -8696,12 +8696,12 @@ class O5 { function IB(t, e, r) { for (let n = t.state.facet(e), i = n.length - 1; i >= 0; i--) { let s = n[i], a = typeof s == "function" ? s(t) : s; - a && XA(a, r); + a && ZA(a, r); } return r; } -const Wxe = Mt.mac ? "mac" : Mt.windows ? "win" : Mt.linux ? "linux" : "key"; -function Gxe(t, e) { +const Gxe = Mt.mac ? "mac" : Mt.windows ? "win" : Mt.linux ? "linux" : "key"; +function Hxe(t, e) { const r = t.split(/-(?!$)/); let n = r[r.length - 1]; n == "Space" && (n = " "); @@ -8726,21 +8726,21 @@ function Gxe(t, e) { function bw(t, e, r) { return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), r !== !1 && e.shiftKey && (t = "Shift-" + t), t; } -const Hxe = /* @__PURE__ */ zl.default(/* @__PURE__ */ ht.domEventHandlers({ +const Xxe = /* @__PURE__ */ zl.default(/* @__PURE__ */ ht.domEventHandlers({ keydown(t, e) { - return lK(oK(e.state), t, e, "editor"); + return cK(lK(e.state), t, e, "editor"); } -})), Tu = /* @__PURE__ */ _t.define({ enables: Hxe }), PB = /* @__PURE__ */ new WeakMap(); -function oK(t) { +})), Tu = /* @__PURE__ */ _t.define({ enables: Xxe }), PB = /* @__PURE__ */ new WeakMap(); +function lK(t) { let e = t.facet(Tu), r = PB.get(e); - return r || PB.set(e, r = jxe(e.reduce((n, i) => n.concat(i), []))), r; + return r || PB.set(e, r = Kxe(e.reduce((n, i) => n.concat(i), []))), r; } -function Xxe(t, e, r) { - return lK(oK(t.state), e, t, r); +function Zxe(t, e, r) { + return cK(lK(t.state), e, t, r); } let Eh = null; -const Zxe = 4e3; -function jxe(t, e = Wxe) { +const jxe = 4e3; +function Kxe(t, e = Gxe) { let r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = (a, o) => { let l = n[a]; if (l == null) @@ -8749,7 +8749,7 @@ function jxe(t, e = Wxe) { throw new Error("Key binding " + a + " is used both as a regular binding and as a multi-stroke prefix"); }, s = (a, o, l, u, h) => { var f, d; - let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => Gxe(y, e)); + let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => Hxe(y, e)); for (let y = 1; y < g.length; y++) { let b = g.slice(0, y).join(" "); i(b, !0), p[b] || (p[b] = { @@ -8759,7 +8759,7 @@ function jxe(t, e = Wxe) { let O = Eh = { view: w, prefix: b, scope: a }; return setTimeout(() => { Eh == O && (Eh = null); - }, Zxe), !0; + }, jxe), !0; }] }); } @@ -8788,9 +8788,9 @@ function jxe(t, e = Wxe) { } return r; } -function lK(t, e, r, n) { - let i = wbe(e), s = ss(i, 0), a = Eo(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; - Eh && Eh.view == r && Eh.scope == n && (o = Eh.prefix + " ", Hj.indexOf(e.keyCode) < 0 && (u = !0, Eh = null)); +function cK(t, e, r, n) { + let i = Obe(e), s = ss(i, 0), a = Eo(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; + Eh && Eh.view == r && Eh.scope == n && (o = Eh.prefix + " ", Xj.indexOf(e.keyCode) < 0 && (u = !0, Eh = null)); let f = /* @__PURE__ */ new Set(), d = (v) => { if (v) { for (let y of v.run) @@ -8824,13 +8824,13 @@ class Yb { let i = e.coordsAtPos(n.head, n.assoc || 1); if (!i) return []; - let s = cK(e); + let s = uK(e); return [new Yb(r, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; } else - return Kxe(e, r, n); + return Jxe(e, r, n); } } -function cK(t) { +function uK(t) { let e = t.scrollDOM.getBoundingClientRect(); return { left: (t.textDirection == In.LTR ? e.left : e.right - t.scrollDOM.clientWidth * t.scaleX) - t.scrollDOM.scrollLeft * t.scaleX, top: e.top - t.scrollDOM.scrollTop * t.scaleY }; } @@ -8842,30 +8842,30 @@ function $B(t, e, r) { type: ia.Text }; } -function Kxe(t, e, r) { +function Jxe(t, e, r) { if (r.to <= t.viewport.from || r.from >= t.viewport.to) return []; - let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == In.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = cK(t), u = a.querySelector(".cm-line"), h = u && window.getComputedStyle(u), f = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = o.right - (h ? parseInt(h.paddingRight) : 0), p = n7(t, n), g = n7(t, i), m = p.type == ia.Text ? p : null, v = g.type == ia.Text ? g : null; + let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == In.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = uK(t), u = a.querySelector(".cm-line"), h = u && window.getComputedStyle(u), f = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = o.right - (h ? parseInt(h.paddingRight) : 0), p = i7(t, n), g = i7(t, i), m = p.type == ia.Text ? p : null, v = g.type == ia.Text ? g : null; if (m && (t.lineWrapping || p.widgetLineBreaks) && (m = $B(t, n, m)), v && (t.lineWrapping || g.widgetLineBreaks) && (v = $B(t, i, v)), m && v && m.from == v.from) return b(w(r.from, r.to, m)); { let S = m ? w(r.from, null, m) : O(p, !1), C = v ? w(null, r.to, v) : O(g, !0), T = []; return (m || p).to < (v || g).from - (m && v ? 1 : 0) || p.widgetLineBreaks > 1 && S.bottom + t.defaultLineHeight / 2 < C.top ? T.push(y(f, S.bottom, d, C.top)) : S.bottom < C.top && t.elementAtHeight((S.bottom + C.top) / 2).type == ia.Text && (S.bottom = C.top = (S.bottom + C.top) / 2), b(S).concat(T).concat(b(C)); } - function y(S, C, T, L) { - return new Yb(e, S - l.left, C - l.top - 0.01, T - S, L - C + 0.01); + function y(S, C, T, A) { + return new Yb(e, S - l.left, C - l.top - 0.01, T - S, A - C + 0.01); } function b({ top: S, bottom: C, horizontal: T }) { - let L = []; + let A = []; for (let E = 0; E < T.length; E += 2) - L.push(y(T[E], S, T[E + 1], C)); - return L; + A.push(y(T[E], S, T[E + 1], C)); + return A; } function w(S, C, T) { - let L = 1e9, E = -1e9, A = []; + let A = 1e9, E = -1e9, L = []; function _(k, N, M, I, D) { let P = t.coordsAtPos(k, k == T.to ? -2 : 2), F = t.coordsAtPos(M, M == T.from ? 2 : -2); - !P || !F || (L = Math.min(P.top, F.top, L), E = Math.max(P.bottom, F.bottom, E), D == In.LTR ? A.push(s && N ? f : P.left, s && I ? d : F.right) : A.push(!s && I ? f : F.left, !s && N ? d : P.right)); + !P || !F || (A = Math.min(P.top, F.top, A), E = Math.max(P.bottom, F.bottom, E), D == In.LTR ? L.push(s && N ? f : P.left, s && I ? d : F.right) : L.push(!s && I ? f : F.left, !s && N ? d : P.right)); } let R = S != null ? S : T.from, $ = C != null ? C : T.to; for (let k of t.visibleRanges) @@ -8881,17 +8881,17 @@ function Kxe(t, e, r) { if (N = I.to + 1, N >= M) break; } - return A.length == 0 && _(R, S == null, $, C == null, t.textDirection), { top: L, bottom: E, horizontal: A }; + return L.length == 0 && _(R, S == null, $, C == null, t.textDirection), { top: A, bottom: E, horizontal: L }; } function O(S, C) { let T = o.top + (C ? S.top : S.bottom); return { top: T, bottom: T, horizontal: [] }; } } -function Jxe(t, e) { +function ewe(t, e) { return t.constructor == e.constructor && t.eq(e); } -class ewe { +class twe { constructor(e, r) { this.view = e, this.layer = r, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), r.above && this.dom.classList.add("cm-layer-above"), r.class && this.dom.classList.add(r.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), r.mount && r.mount(this.dom, e); } @@ -8912,7 +8912,7 @@ class ewe { (e != this.scaleX || r != this.scaleY) && (this.scaleX = e, this.scaleY = r, this.dom.style.transform = `scale(${1 / e}, ${1 / r})`); } draw(e) { - if (e.length != this.drawn.length || e.some((r, n) => !Jxe(r, this.drawn[n]))) { + if (e.length != this.drawn.length || e.some((r, n) => !ewe(r, this.drawn[n]))) { let r = this.dom.firstChild, n = 0; for (let i of e) i.update && r && i.constructor && this.drawn[n].constructor && i.update(r, this.drawn[n]) ? (r = r.nextSibling, n++) : this.dom.insertBefore(i.draw(), r); @@ -8928,13 +8928,13 @@ class ewe { } } const l4 = /* @__PURE__ */ _t.define(); -function uK(t) { +function hK(t) { return [ - an.define((e) => new ewe(e, t)), + an.define((e) => new twe(e, t)), l4.of(t) ]; } -const hK = !Mt.ios, Ty = /* @__PURE__ */ _t.define({ +const fK = !Mt.ios, Ty = /* @__PURE__ */ _t.define({ combine(t) { return qc(t, { cursorBlinkRate: 1200, @@ -8945,25 +8945,25 @@ const hK = !Mt.ios, Ty = /* @__PURE__ */ _t.define({ }); } }); -function fK(t = {}) { +function dK(t = {}) { return [ Ty.of(t), - twe, rwe, nwe, - Nj.of(!0) + iwe, + Ij.of(!0) ]; } -function dK(t) { +function pK(t) { return t.startState.facet(Ty) != t.state.facet(Ty); } -const twe = /* @__PURE__ */ uK({ +const rwe = /* @__PURE__ */ hK({ above: !0, markers(t) { let { state: e } = t, r = e.facet(Ty), n = []; for (let i of e.selection.ranges) { let s = i == e.selection.main; - if (i.empty ? !s || hK : r.drawRangeCursor) { + if (i.empty ? !s || fK : r.drawRangeCursor) { let a = s ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", o = i.empty ? i : Ve.cursor(i.head, i.head > i.anchor ? -1 : 1); for (let l of Yb.forRange(t, a, o)) n.push(l); @@ -8973,7 +8973,7 @@ const twe = /* @__PURE__ */ uK({ }, update(t, e) { t.transactions.some((n) => n.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink"); - let r = dK(t); + let r = pK(t); return r && BB(t.state, e), t.docChanged || t.selectionSet || r; }, mount(t, e) { @@ -8984,23 +8984,23 @@ const twe = /* @__PURE__ */ uK({ function BB(t, e) { e.style.animationDuration = t.facet(Ty).cursorBlinkRate + "ms"; } -const rwe = /* @__PURE__ */ uK({ +const nwe = /* @__PURE__ */ hK({ above: !1, markers(t) { return t.state.selection.ranges.map((e) => e.empty ? [] : Yb.forRange(t, "cm-selectionBackground", e)).reduce((e, r) => e.concat(r)); }, update(t, e) { - return t.docChanged || t.selectionSet || t.viewportChanged || dK(t); + return t.docChanged || t.selectionSet || t.viewportChanged || pK(t); }, class: "cm-selectionLayer" -}), l7 = { +}), c7 = { ".cm-line": { "& ::selection": { backgroundColor: "transparent !important" }, "&::selection": { backgroundColor: "transparent !important" } } }; -hK && (l7[".cm-line"].caretColor = "transparent !important", l7[".cm-content"] = { caretColor: "transparent !important" }); -const nwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(l7)), pK = /* @__PURE__ */ Zt.define({ +fK && (c7[".cm-line"].caretColor = "transparent !important", c7[".cm-content"] = { caretColor: "transparent !important" }); +const iwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(c7)), gK = /* @__PURE__ */ Zt.define({ map(t, e) { return t == null ? null : e.mapPos(t); } @@ -9009,9 +9009,9 @@ const nwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(l7)), pK = /* @_ return null; }, update(t, e) { - return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(pK) ? n.value : r, t); + return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(gK) ? n.value : r, t); } -}), iwe = /* @__PURE__ */ an.fromClass(class { +}), swe = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) }; } @@ -9041,7 +9041,7 @@ const nwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(l7)), pK = /* @_ this.cursor && this.cursor.remove(); } setDropPos(t) { - this.view.state.field(gv) != t && this.view.dispatch({ effects: pK.of(t) }); + this.view.state.field(gv) != t && this.view.dispatch({ effects: gK.of(t) }); } }, { eventObservers: { @@ -9059,8 +9059,8 @@ const nwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(l7)), pK = /* @_ } } }); -function swe() { - return [gv, iwe]; +function awe() { + return [gv, swe]; } function FB(t, e, r, n, i) { e.lastIndex = 0; @@ -9069,7 +9069,7 @@ function FB(t, e, r, n, i) { for (; o = e.exec(s.value); ) i(a + o.index, o); } -function awe(t, e) { +function owe(t, e) { let r = t.visibleRanges; if (r.length == 1 && r[0].from == t.viewport.from && r[0].to == t.viewport.to) return r; @@ -9078,7 +9078,7 @@ function awe(t, e) { i = Math.max(t.state.doc.lineAt(i).from, i - e), s = Math.min(t.state.doc.lineAt(s).to, s + e), n.length && n[n.length - 1].to >= i ? n[n.length - 1].to = s : n.push({ from: i, to: s }); return n; } -class owe { +class lwe { constructor(e) { const { regexp: r, decoration: n, decorate: i, boundary: s, maxLength: a = 1e3 } = e; if (!r.global) @@ -9098,7 +9098,7 @@ class owe { } createDeco(e) { let r = new Hi(), n = r.add.bind(r); - for (let { from: i, to: s } of awe(e, this.maxLength)) + for (let { from: i, to: s } of owe(e, this.maxLength)) FB(e.state.doc, this.regexp, i, s, (a, o) => this.addMatch(o, e, a, n)); return r.finish(); } @@ -9137,8 +9137,8 @@ class owe { return r; } } -const c7 = /x/.unicode != null ? "gu" : "g", lwe = /* @__PURE__ */ new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, c7), cwe = { +const u7 = /x/.unicode != null ? "gu" : "g", cwe = /* @__PURE__ */ new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, u7), uwe = { 0: "null", 7: "bell", 8: "backspace", @@ -9161,46 +9161,46 @@ const c7 = /x/.unicode != null ? "gu" : "g", lwe = /* @__PURE__ */ new RegExp(`[ 65279: "zero width no-break space", 65532: "object replacement" }; -let yE = null; -function uwe() { +let bE = null; +function hwe() { var t; - if (yE == null && typeof document < "u" && document.body) { + if (bE == null && typeof document < "u" && document.body) { let e = document.body.style; - yE = ((t = e.tabSize) !== null && t !== void 0 ? t : e.MozTabSize) != null; + bE = ((t = e.tabSize) !== null && t !== void 0 ? t : e.MozTabSize) != null; } - return yE || !1; + return bE || !1; } const c4 = /* @__PURE__ */ _t.define({ combine(t) { let e = qc(t, { render: null, - specialChars: lwe, + specialChars: cwe, addSpecialChars: null }); - return (e.replaceTabs = !uwe()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, c7)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, c7)), e; + return (e.replaceTabs = !hwe()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, u7)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, u7)), e; } }); -function gK(t = {}) { - return [c4.of(t), hwe()]; +function mK(t = {}) { + return [c4.of(t), fwe()]; } let zB = null; -function hwe() { +function fwe() { return zB || (zB = an.fromClass(class { constructor(t) { this.view = t, this.decorations = Et.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(c4)), this.decorations = this.decorator.createDeco(t); } makeDecorator(t) { - return new owe({ + return new lwe({ regexp: t.specialChars, decoration: (e, r, n) => { let { doc: i } = r.state, s = ss(e[0], 0); if (s == 9) { let a = i.lineAt(n), o = r.state.tabSize, l = Ml(a.text, o, n - a.from); return Et.replace({ - widget: new gwe((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) + widget: new mwe((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) }); } - return this.decorationCache[s] || (this.decorationCache[s] = Et.replace({ widget: new pwe(t, s) })); + return this.decorationCache[s] || (this.decorationCache[s] = Et.replace({ widget: new gwe(t, s) })); }, boundary: t.replaceTabs ? void 0 : /[^]/ }); @@ -9213,11 +9213,11 @@ function hwe() { decorations: (t) => t.decorations })); } -const fwe = "\u2022"; -function dwe(t) { - return t >= 32 ? fwe : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); +const dwe = "\u2022"; +function pwe(t) { + return t >= 32 ? dwe : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); } -class pwe extends za { +class gwe extends Va { constructor(e, r) { super(), this.options = e, this.code = r; } @@ -9225,7 +9225,7 @@ class pwe extends za { return e.code == this.code; } toDOM(e) { - let r = dwe(this.code), n = e.state.phrase("Control character") + " " + (cwe[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); + let r = pwe(this.code), n = e.state.phrase("Control character") + " " + (uwe[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); if (i) return i; let s = document.createElement("span"); @@ -9235,7 +9235,7 @@ class pwe extends za { return !1; } } -class gwe extends za { +class mwe extends Va { constructor(e) { super(), this.width = e; } @@ -9250,10 +9250,10 @@ class gwe extends za { return !1; } } -function mK() { - return vwe; +function vK() { + return ywe; } -const mwe = /* @__PURE__ */ Et.line({ class: "cm-activeLine" }), vwe = /* @__PURE__ */ an.fromClass(class { +const vwe = /* @__PURE__ */ Et.line({ class: "cm-activeLine" }), ywe = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -9264,16 +9264,16 @@ const mwe = /* @__PURE__ */ Et.line({ class: "cm-activeLine" }), vwe = /* @__PUR let e = -1, r = []; for (let n of t.state.selection.ranges) { let i = t.lineBlockAt(n.head); - i.from > e && (r.push(mwe.range(i.from)), e = i.from); + i.from > e && (r.push(vwe.range(i.from)), e = i.from); } return Et.set(r); } }, { decorations: (t) => t.decorations -}), u7 = 2e3; -function ywe(t, e, r) { +}), h7 = 2e3; +function bwe(t, e, r) { let n = Math.min(e.line, r.line), i = Math.max(e.line, r.line), s = []; - if (e.off > u7 || r.off > u7 || e.col < 0 || r.col < 0) { + if (e.off > h7 || r.off > h7 || e.col < 0 || r.col < 0) { let a = Math.min(e.off, r.off), o = Math.max(e.off, r.off); for (let l = n; l <= i; l++) { let u = t.doc.line(l); @@ -9282,26 +9282,26 @@ function ywe(t, e, r) { } else { let a = Math.min(e.col, r.col), o = Math.max(e.col, r.col); for (let l = n; l <= i; l++) { - let u = t.doc.line(l), h = UA(u.text, a, t.tabSize, !0); + let u = t.doc.line(l), h = qA(u.text, a, t.tabSize, !0); if (h < 0) s.push(Ve.cursor(u.to)); else { - let f = UA(u.text, o, t.tabSize); + let f = qA(u.text, o, t.tabSize); s.push(Ve.range(u.from + h, u.from + f)); } } } return s; } -function bwe(t, e) { +function xwe(t, e) { let r = t.coordsAtPos(t.viewport.from); return r ? Math.round(Math.abs((r.left - e) / t.defaultCharacterWidth)) : -1; } function VB(t, e) { - let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > u7 ? -1 : i == n.length ? bwe(t, e.clientX) : Ml(n.text, t.state.tabSize, r - n.from); + let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > h7 ? -1 : i == n.length ? xwe(t, e.clientX) : Ml(n.text, t.state.tabSize, r - n.from); return { line: n.number, col: s, off: i }; } -function xwe(t, e) { +function wwe(t, e) { let r = VB(t, e), n = t.state.selection; return r ? { update(i) { @@ -9314,23 +9314,23 @@ function xwe(t, e) { let o = VB(t, i); if (!o) return n; - let l = ywe(t.state, r, o); + let l = bwe(t.state, r, o); return l.length ? a ? Ve.create(l.concat(n.ranges)) : Ve.create(l) : n; } } : null; } -function wwe(t) { +function Owe(t) { let e = (t == null ? void 0 : t.eventFilter) || ((r) => r.altKey && r.button == 0); - return ht.mouseSelectionStyle.of((r, n) => e(n) ? xwe(r, n) : null); + return ht.mouseSelectionStyle.of((r, n) => e(n) ? wwe(r, n) : null); } -const Owe = { +const kwe = { Alt: [18, (t) => !!t.altKey], Control: [17, (t) => !!t.ctrlKey], Shift: [16, (t) => !!t.shiftKey], Meta: [91, (t) => !!t.metaKey] -}, kwe = { style: "cursor: crosshair" }; -function Swe(t = {}) { - let [e, r] = Owe[t.key || "Alt"], n = an.fromClass(class { +}, Swe = { style: "cursor: crosshair" }; +function Twe(t = {}) { + let [e, r] = kwe[t.key || "Alt"], n = an.fromClass(class { constructor(i) { this.view = i, this.isDown = !1; } @@ -9354,12 +9354,12 @@ function Swe(t = {}) { n, ht.contentAttributes.of((i) => { var s; - return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? kwe : null; + return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? Swe : null; }) ]; } const _m = "-10000px"; -class vK { +class yK { constructor(e, r, n) { this.facet = r, this.createTooltipView = n, this.input = e.state.facet(r), this.tooltips = this.input.filter((i) => i), this.tooltipViews = this.tooltips.map(n); } @@ -9392,24 +9392,24 @@ class vK { return r && (o.forEach((l, u) => r[u] = l), r.length = o.length), this.input = i, this.tooltips = s, this.tooltipViews = a, !0; } } -function Twe(t) { +function Cwe(t) { let { win: e } = t; return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth }; } -const bE = /* @__PURE__ */ _t.define({ +const xE = /* @__PURE__ */ _t.define({ combine: (t) => { var e, r, n; return { position: Mt.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed", parent: ((r = t.find((i) => i.parent)) === null || r === void 0 ? void 0 : r.parent) || null, - tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || Twe + tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || Cwe }; } -}), UB = /* @__PURE__ */ new WeakMap(), VR = /* @__PURE__ */ an.fromClass(class { +}), UB = /* @__PURE__ */ new WeakMap(), UR = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.view = t, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1; - let e = t.state.facet(bE); - this.position = e.position, this.parent = e.parent, this.classes = t.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.manager = new vK(t, UR, (r) => this.createTooltip(r)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((r) => { + let e = t.state.facet(xE); + this.position = e.position, this.parent = e.parent, this.classes = t.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.manager = new yK(t, qR, (r) => this.createTooltip(r)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((r) => { Date.now() > this.lastTransaction - 50 && r.length > 0 && r[r.length - 1].intersectionRatio < 1 && this.measureSoon(); }, { threshold: [1] }) : null, this.observeIntersection(), t.win.addEventListener("resize", this.measureSoon = this.measureSoon.bind(this)), this.maybeMeasure(); } @@ -9432,7 +9432,7 @@ const bE = /* @__PURE__ */ _t.define({ t.transactions.length && (this.lastTransaction = Date.now()); let e = this.manager.update(t, this.above); e && this.observeIntersection(); - let r = e || t.geometryChanged, n = t.state.facet(bE); + let r = e || t.geometryChanged, n = t.state.facet(xE); if (n.position != this.position && !this.madeAbsolute) { this.position = n.position; for (let i of this.manager.tooltipViews) @@ -9488,7 +9488,7 @@ const bE = /* @__PURE__ */ _t.define({ return a.getCoords ? a.getCoords(i.pos) : this.view.coordsAtPos(i.pos); }), size: this.manager.tooltipViews.map(({ dom: i }) => i.getBoundingClientRect()), - space: this.view.state.facet(bE).tooltipSpace(this.view), + space: this.view.state.facet(xE).tooltipSpace(this.view), scaleX: e, scaleY: r, makeAbsolute: n @@ -9508,7 +9508,7 @@ const bE = /* @__PURE__ */ _t.define({ h.style.top = _m; continue; } - let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = UB.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || Ewe, b = this.view.textDirection == In.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; + let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = UB.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || _we, b = this.view.textDirection == In.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; !l.strictSide && (O ? f.top - (d.bottom - d.top) - y.y < n.top : f.bottom + (d.bottom - d.top) + y.y > n.bottom) && O == n.bottom - f.bottom > f.top - n.top && (O = this.above[o] = !O); let S = (O ? f.top - n.top : n.bottom - f.bottom) - g; if (S < v && u.resize !== !1) { @@ -9521,11 +9521,11 @@ const bE = /* @__PURE__ */ _t.define({ h.style.height && (h.style.height = ""); let C = O ? f.top - v - g - y.y : f.bottom + g + y.y, T = w + m; if (u.overlap !== !0) - for (let L of a) - L.left < T && L.right > w && L.top < C + v && L.bottom > C && (C = O ? L.top - v - 2 - g : L.bottom + g + 2); + for (let A of a) + A.left < T && A.right > w && A.top < C + v && A.bottom > C && (C = O ? A.top - v - 2 - g : A.bottom + g + 2); if (this.position == "absolute" ? (h.style.top = (C - t.parent.top) / s + "px", h.style.left = (w - t.parent.left) / i + "px") : (h.style.top = C / s + "px", h.style.left = w / i + "px"), p) { - let L = f.left + (b ? y.x : -y.x) - (w + 14 - 7); - p.style.left = L / i + "px"; + let A = f.left + (b ? y.x : -y.x) - (w + 14 - 7); + p.style.left = A / i + "px"; } u.overlap !== !0 && a.push({ left: w, top: C, right: T, bottom: C + v }), h.classList.toggle("cm-tooltip-above", O), h.classList.toggle("cm-tooltip-below", !O), u.positioned && u.positioned(t.space); } @@ -9541,7 +9541,7 @@ const bE = /* @__PURE__ */ _t.define({ this.maybeMeasure(); } } -}), Cwe = /* @__PURE__ */ ht.baseTheme({ +}), Ewe = /* @__PURE__ */ ht.baseTheme({ ".cm-tooltip": { zIndex: 100, boxSizing: "border-box" @@ -9602,15 +9602,15 @@ const bE = /* @__PURE__ */ _t.define({ borderBottomColor: "transparent" } } -}), Ewe = { x: 0, y: 0 }, UR = /* @__PURE__ */ _t.define({ - enables: [VR, Cwe] +}), _we = { x: 0, y: 0 }, qR = /* @__PURE__ */ _t.define({ + enables: [UR, Ewe] }), k5 = /* @__PURE__ */ _t.define(); -class PS { +class $S { static create(e) { - return new PS(e); + return new $S(e); } constructor(e) { - this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new vK(e, k5, (r) => this.createHostedView(r)); + this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new yK(e, k5, (r) => this.createHostedView(r)); } createHostedView(e) { let r = e.create(this.view); @@ -9659,7 +9659,7 @@ class PS { return this.passProp("resize"); } } -const _we = /* @__PURE__ */ UR.compute([k5], (t) => { +const Awe = /* @__PURE__ */ qR.compute([k5], (t) => { let e = t.facet(k5).filter((r) => r); return e.length === 0 ? null : { pos: Math.min(...e.map((r) => r.pos)), @@ -9667,12 +9667,12 @@ const _we = /* @__PURE__ */ UR.compute([k5], (t) => { var n; return (n = r.end) !== null && n !== void 0 ? n : r.pos; })), - create: PS.create, + create: $S.create, above: e[0].above, arrow: e.some((r) => r.arrow) }; }); -class Awe { +class Lwe { constructor(e, r, n, i, s) { this.view = e, this.source = r, this.field = n, this.setHover = i, this.hoverTime = s, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = { x: 0, y: 0, target: e.dom, time: 0 }, this.checkHover = this.checkHover.bind(this), e.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this)); } @@ -9715,16 +9715,16 @@ class Awe { a && e.dispatch({ effects: this.setHover.of(a) }); } get tooltip() { - let e = this.view.plugin(VR), r = e ? e.manager.tooltips.findIndex((n) => n.create == PS.create) : -1; + let e = this.view.plugin(UR), r = e ? e.manager.tooltips.findIndex((n) => n.create == $S.create) : -1; return r > -1 ? e.manager.tooltipViews[r] : null; } mousemove(e) { var r; this.lastMove = { x: e.clientX, y: e.clientY, target: e.target, time: Date.now() }, this.hoverTimeout < 0 && (this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime)); let { active: n, tooltip: i } = this; - if (n && i && !Lwe(i.dom, e) || this.pending) { + if (n && i && !Rwe(i.dom, e) || this.pending) { let { pos: s } = n || this.pending, a = (r = n == null ? void 0 : n.end) !== null && r !== void 0 ? r : s; - (s == a ? this.view.posAtCoords(this.lastMove) != s : !Rwe(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); + (s == a ? this.view.posAtCoords(this.lastMove) != s : !Mwe(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); } } mouseleave(e) { @@ -9746,18 +9746,18 @@ class Awe { } } const xw = 4; -function Lwe(t, e) { +function Rwe(t, e) { let r = t.getBoundingClientRect(); return e.clientX >= r.left - xw && e.clientX <= r.right + xw && e.clientY >= r.top - xw && e.clientY <= r.bottom + xw; } -function Rwe(t, e, r, n, i, s) { +function Mwe(t, e, r, n, i, s) { let a = t.scrollDOM.getBoundingClientRect(), o = t.documentTop + t.documentPadding.top + t.contentHeight; if (a.left > n || a.right < n || a.top > i || Math.min(a.bottom, o) < i) return !1; let l = t.posAtCoords({ x: n, y: i }, !1); return l >= e && l <= r; } -function Mwe(t, e = {}) { +function Dwe(t, e = {}) { let r = Zt.define(), n = $n.define({ create() { return null; @@ -9773,25 +9773,25 @@ function Mwe(t, e = {}) { o.pos = a, i.end != null && (o.end = s.changes.mapPos(i.end)), i = o; } for (let a of s.effects) - a.is(r) && (i = a.value), a.is(Dwe) && (i = null); + a.is(r) && (i = a.value), a.is(Nwe) && (i = null); return i; }, provide: (i) => k5.from(i) }); return [ n, - an.define((i) => new Awe(i, t, n, r, e.hoverTime || 300)), - _we + an.define((i) => new Lwe(i, t, n, r, e.hoverTime || 300)), + Awe ]; } -function yK(t, e) { - let r = t.plugin(VR); +function bK(t, e) { + let r = t.plugin(UR); if (!r) return null; let n = r.manager.tooltips.indexOf(e); return n < 0 ? null : r.manager.tooltipViews[n]; } -const Dwe = /* @__PURE__ */ Zt.define(), qB = /* @__PURE__ */ _t.define({ +const Nwe = /* @__PURE__ */ Zt.define(), qB = /* @__PURE__ */ _t.define({ combine(t) { let e, r; for (let n of t) @@ -9800,10 +9800,10 @@ const Dwe = /* @__PURE__ */ Zt.define(), qB = /* @__PURE__ */ _t.define({ } }); function Cy(t, e) { - let r = t.plugin(bK), n = r ? r.specs.indexOf(e) : -1; + let r = t.plugin(xK), n = r ? r.specs.indexOf(e) : -1; return n > -1 ? r.panels[n] : null; } -const bK = /* @__PURE__ */ an.fromClass(class { +const xK = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.input = t.state.facet(Ey), this.specs = this.input.filter((r) => r), this.panels = this.specs.map((r) => r(t)); let e = t.state.facet(qB); @@ -9884,7 +9884,7 @@ function QB(t) { return t.remove(), e; } const Ey = /* @__PURE__ */ _t.define({ - enables: bK + enables: xK }); class Uo extends Xd { compare(e) { @@ -9901,7 +9901,7 @@ Uo.prototype.toDOM = void 0; Uo.prototype.mapMode = Si.TrackBefore; Uo.prototype.startSide = Uo.prototype.endSide = -1; Uo.prototype.point = !0; -const u4 = /* @__PURE__ */ _t.define(), Nwe = { +const u4 = /* @__PURE__ */ _t.define(), Iwe = { class: "", renderEmptyElements: !1, elementStyle: "", @@ -9913,42 +9913,42 @@ const u4 = /* @__PURE__ */ _t.define(), Nwe = { updateSpacer: null, domEventHandlers: {} }, Wv = /* @__PURE__ */ _t.define(); -function $S(t) { - return [xK(), Wv.of(Object.assign(Object.assign({}, Nwe), t))]; +function BS(t) { + return [wK(), Wv.of(Object.assign(Object.assign({}, Iwe), t))]; } -const h7 = /* @__PURE__ */ _t.define({ +const f7 = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e) }); -function xK(t) { +function wK(t) { let e = [ - Iwe + Pwe ]; - return t && t.fixed === !1 && e.push(h7.of(!0)), e; + return t && t.fixed === !1 && e.push(f7.of(!0)), e; } -const Iwe = /* @__PURE__ */ an.fromClass(class { +const Pwe = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Wv).map((e) => new WB(t, e)); for (let e of this.gutters) this.dom.appendChild(e.dom); - this.fixed = !t.state.facet(h7), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM); + this.fixed = !t.state.facet(f7), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM); } update(t) { if (this.updateGutters(t)) { let e = this.prevViewport, r = t.view.viewport, n = Math.min(e.to, r.to) - Math.max(e.from, r.from); this.syncGutters(n < (r.to - r.from) * 0.8); } - t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(h7) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport; + t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(f7) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport; } syncGutters(t) { let e = this.dom.nextSibling; t && this.dom.remove(); - let r = Er.iter(this.view.state.facet(u4), this.view.viewport.from), n = [], i = this.gutters.map((s) => new Pwe(s, this.view.viewport, -this.view.documentPadding.top)); + let r = Er.iter(this.view.state.facet(u4), this.view.viewport.from), n = [], i = this.gutters.map((s) => new $we(s, this.view.viewport, -this.view.documentPadding.top)); for (let s of this.view.viewportLineBlocks) if (n.length && (n = []), Array.isArray(s.type)) { let a = !0; for (let o of s.type) if (o.type == ia.Text && a) { - f7(r, n, o.from); + d7(r, n, o.from); for (let l of i) l.line(this.view, o, n); a = !1; @@ -9956,7 +9956,7 @@ const Iwe = /* @__PURE__ */ an.fromClass(class { for (let l of i) l.widget(this.view, o); } else if (s.type == ia.Text) { - f7(r, n, s.from); + d7(r, n, s.from); for (let a of i) a.line(this.view, s, n); } else if (s.widget) @@ -10000,18 +10000,18 @@ const Iwe = /* @__PURE__ */ an.fromClass(class { function YB(t) { return Array.isArray(t) ? t : [t]; } -function f7(t, e, r) { +function d7(t, e, r) { for (; t.value && t.from <= r; ) t.from == r && e.push(t.value), t.next(); } -class Pwe { +class $we { constructor(e, r, n) { this.gutter = e, this.height = n, this.i = 0, this.cursor = Er.iter(e.markers, r.from); } addElement(e, r, n) { let { gutter: i } = this, s = (r.top - this.height) / e.scaleY, a = r.height / e.scaleY; if (this.i == i.elements.length) { - let o = new wK(e, a, s, n); + let o = new OK(e, a, s, n); i.elements.push(o), i.dom.appendChild(o.dom); } else i.elements[this.i].update(e, a, s, n); @@ -10019,7 +10019,7 @@ class Pwe { } line(e, r, n) { let i = []; - f7(this.cursor, i, r.from), n.length && (i = i.concat(n)); + d7(this.cursor, i, r.from), n.length && (i = i.concat(n)); let s = this.gutter.config.lineMarker(e, r, i); s && i.unshift(s); let a = this.gutter; @@ -10053,7 +10053,7 @@ class WB { let o = e.lineBlockAtHeight(a - e.documentTop); r.domEventHandlers[n](e, o, i) && i.preventDefault(); }); - this.markers = YB(r.markers(e)), r.initialSpacer && (this.spacer = new wK(e, 0, 0, [r.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); + this.markers = YB(r.markers(e)), r.initialSpacer && (this.spacer = new OK(e, 0, 0, [r.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); } update(e) { let r = this.markers; @@ -10069,12 +10069,12 @@ class WB { e.destroy(); } } -class wK { +class OK { constructor(e, r, n, i) { this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, r, n, i); } update(e, r, n, i) { - this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), $we(this.markers, i) || this.setMarkers(e, i); + this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), Bwe(this.markers, i) || this.setMarkers(e, i); } setMarkers(e, r) { let n = "cm-gutterElement", i = this.dom.firstChild; @@ -10108,7 +10108,7 @@ class wK { this.setMarkers(null, []); } } -function $we(t, e) { +function Bwe(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -10116,7 +10116,7 @@ function $we(t, e) { return !1; return !0; } -const Bwe = /* @__PURE__ */ _t.define(), Ap = /* @__PURE__ */ _t.define({ +const Fwe = /* @__PURE__ */ _t.define(), Ap = /* @__PURE__ */ _t.define({ combine(t) { return qc(t, { formatNumber: String, domEventHandlers: {} }, { domEventHandlers(e, r) { @@ -10130,7 +10130,7 @@ const Bwe = /* @__PURE__ */ _t.define(), Ap = /* @__PURE__ */ _t.define({ }); } }); -class xE extends Uo { +class wE extends Uo { constructor(e) { super(), this.number = e; } @@ -10141,34 +10141,34 @@ class xE extends Uo { return document.createTextNode(this.number); } } -function wE(t, e) { +function OE(t, e) { return t.state.facet(Ap).formatNumber(e, t.state); } -const Fwe = /* @__PURE__ */ Wv.compute([Ap], (t) => ({ +const zwe = /* @__PURE__ */ Wv.compute([Ap], (t) => ({ class: "cm-lineNumbers", renderEmptyElements: !1, markers(e) { - return e.state.facet(Bwe); + return e.state.facet(Fwe); }, lineMarker(e, r, n) { - return n.some((i) => i.toDOM) ? null : new xE(wE(e, e.state.doc.lineAt(r.from).number)); + return n.some((i) => i.toDOM) ? null : new wE(OE(e, e.state.doc.lineAt(r.from).number)); }, widgetMarker: () => null, lineMarkerChange: (e) => e.startState.facet(Ap) != e.state.facet(Ap), initialSpacer(e) { - return new xE(wE(e, GB(e.state.doc.lines))); + return new wE(OE(e, GB(e.state.doc.lines))); }, updateSpacer(e, r) { - let n = wE(r.view, GB(r.view.state.doc.lines)); - return n == e.number ? e : new xE(n); + let n = OE(r.view, GB(r.view.state.doc.lines)); + return n == e.number ? e : new wE(n); }, domEventHandlers: t.facet(Ap).domEventHandlers })); -function zwe(t = {}) { +function Vwe(t = {}) { return [ Ap.of(t), - xK(), - Fwe + wK(), + zwe ]; } function GB(t) { @@ -10177,23 +10177,23 @@ function GB(t) { e = e * 10 + 9; return e; } -const Vwe = /* @__PURE__ */ new class extends Uo { +const Uwe = /* @__PURE__ */ new class extends Uo { constructor() { super(...arguments), this.elementClass = "cm-activeLineGutter"; } -}(), Uwe = /* @__PURE__ */ u4.compute(["selection"], (t) => { +}(), qwe = /* @__PURE__ */ u4.compute(["selection"], (t) => { let e = [], r = -1; for (let n of t.selection.ranges) { let i = t.doc.lineAt(n.head).from; - i > r && (r = i, e.push(Vwe.range(i))); + i > r && (r = i, e.push(Uwe.range(i))); } return Er.of(e); }); -function qwe() { - return Uwe; +function Qwe() { + return qwe; } -const OK = 1024; -let Qwe = 0; +const kK = 1024; +let Ywe = 0; class Ro { constructor(e, r) { this.from = e, this.to = r; @@ -10201,14 +10201,14 @@ class Ro { } class lr { constructor(e = {}) { - this.id = Qwe++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { + this.id = Ywe++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { throw new Error("This node type doesn't define a deserialize function"); }); } add(e) { if (this.perNode) throw new RangeError("Can't add per-node props to node types"); - return typeof e != "function" && (e = Li.match(e)), (r) => { + return typeof e != "function" && (e = Ri.match(e)), (r) => { let n = e(r); return n === void 0 ? null : [this, n]; }; @@ -10228,13 +10228,13 @@ class _y { return e && e.props && e.props[lr.mounted.id]; } } -const Ywe = /* @__PURE__ */ Object.create(null); -class Li { +const Wwe = /* @__PURE__ */ Object.create(null); +class Ri { constructor(e, r, n, i = 0) { this.name = e, this.props = r, this.id = n, this.flags = i; } static define(e) { - let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Ywe, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Li(e.name || "", r, e.id, n); + let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Wwe, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Ri(e.name || "", r, e.id, n); if (e.props) { for (let s of e.props) if (Array.isArray(s) || (s = s(i)), s) { @@ -10283,7 +10283,7 @@ class Li { }; } } -Li.none = new Li("", /* @__PURE__ */ Object.create(null), 0, 8); +Ri.none = new Ri("", /* @__PURE__ */ Object.create(null), 0, 8); class Wb { constructor(e) { this.types = e; @@ -10299,7 +10299,7 @@ class Wb { let a = s(n); a && (i || (i = Object.assign({}, n.props)), i[a[0].id] = a[1]); } - r.push(i ? new Li(n.name, i, n.id, n.flags) : n); + r.push(i ? new Ri(n.name, i, n.id, n.flags) : n); } return new Wb(r); } @@ -10347,7 +10347,7 @@ class Yr { return HB.set(this, n), n; } resolveStack(e, r = 0) { - return Hwe(this, e, r); + return Xwe(this, e, r); } iterate(e) { let { enter: r, leave: n, from: i = 0, to: s = this.length } = e, a = e.mode || 0, o = (a & un.IncludeAnonymous) > 0; @@ -10376,14 +10376,14 @@ class Yr { return e; } balance(e = {}) { - return this.children.length <= 8 ? this : YR(Li.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new Yr(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new Yr(Li.none, r, n, i))); + return this.children.length <= 8 ? this : WR(Ri.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new Yr(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new Yr(Ri.none, r, n, i))); } static build(e) { - return Xwe(e); + return Zwe(e); } } -Yr.empty = new Yr(Li.none, [], [], 0); -class qR { +Yr.empty = new Yr(Ri.none, [], [], 0); +class QR { constructor(e, r) { this.buffer = e, this.index = r; } @@ -10406,7 +10406,7 @@ class qR { this.index -= 4; } fork() { - return new qR(this.buffer, this.index); + return new QR(this.buffer, this.index); } } class lf { @@ -10414,7 +10414,7 @@ class lf { this.buffer = e, this.length = r, this.set = n; } get type() { - return Li.none; + return Ri.none; } toString() { let e = []; @@ -10433,7 +10433,7 @@ class lf { } findChild(e, r, n, i, s) { let { buffer: a } = this, o = -1; - for (let l = e; l != r && !(kK(s, i, a[l + 1], a[l + 2]) && (o = l, n > 0)); l = a[l + 3]) + for (let l = e; l != r && !(SK(s, i, a[l + 1], a[l + 2]) && (o = l, n > 0)); l = a[l + 3]) ; return o; } @@ -10447,7 +10447,7 @@ class lf { return new lf(s, a, this.set); } } -function kK(t, e, r, n) { +function SK(t, e, r, n) { switch (t) { case -2: return r < e; @@ -10481,7 +10481,7 @@ function Ay(t, e, r, n) { t = a; } } -class SK { +class TK { cursor(e = 0) { return new S5(this, e); } @@ -10499,7 +10499,7 @@ class SK { return Ay(this, e, r, !0); } matchContext(e) { - return d7(this, e); + return p7(this, e); } enterUnfinishedNodesBefore(e) { let r = this.childBefore(e), n = this; @@ -10518,7 +10518,7 @@ class SK { return this.parent; } } -class $s extends SK { +class $s extends TK { constructor(e, r, n, i) { super(), this._tree = e, this.from = r, this.index = n, this._parent = i; } @@ -10535,14 +10535,14 @@ class $s extends SK { for (let a = this; ; ) { for (let { children: o, positions: l } = a._tree, u = r > 0 ? o.length : -1; e != u; e += r) { let h = o[e], f = l[e] + a.from; - if (!!kK(i, n, f, f + h.length)) { + if (!!SK(i, n, f, f + h.length)) { if (h instanceof lf) { if (s & un.ExcludeBuffers) continue; let d = h.findChild(0, h.buffer.length, r, n - f, i); if (d > -1) - return new gc(new Wwe(a, h, e, f), null, d); - } else if (s & un.IncludeAnonymous || !h.type.isAnonymous || QR(h)) { + return new gc(new Gwe(a, h, e, f), null, d); + } else if (s & un.IncludeAnonymous || !h.type.isAnonymous || YR(h)) { let d; if (!(s & un.IgnoreMounts) && (d = _y.get(h)) && !d.overlay) return new $s(d.tree, f, e, a); @@ -10618,7 +10618,7 @@ function XB(t, e, r, n) { return n == null ? s : []; } } -function d7(t, e, r = e.length - 1) { +function p7(t, e, r = e.length - 1) { for (let n = t.parent; r >= 0; n = n.parent) { if (!n) return !1; @@ -10630,12 +10630,12 @@ function d7(t, e, r = e.length - 1) { } return !0; } -class Wwe { +class Gwe { constructor(e, r, n, i) { this.parent = e, this.buffer = r, this.index = n, this.start = i; } } -class gc extends SK { +class gc extends TK { get name() { return this.type.name; } @@ -10699,7 +10699,7 @@ class gc extends SK { return this.context.buffer.childString(this.index); } } -function TK(t) { +function CK(t) { if (!t.length) return null; let e = 0, r = t[0]; @@ -10708,17 +10708,17 @@ function TK(t) { (a.from > r.from || a.to < r.to) && (r = a, e = s); } let n = r instanceof $s && r.index < 0 ? null : r.parent, i = t.slice(); - return n ? i[e] = n : i.splice(e, 1), new Gwe(i, r); + return n ? i[e] = n : i.splice(e, 1), new Hwe(i, r); } -class Gwe { +class Hwe { constructor(e, r) { this.heads = e, this.node = r; } get next() { - return TK(this.heads); + return CK(this.heads); } } -function Hwe(t, e, r) { +function Xwe(t, e, r) { let n = t.resolveInner(e, r), i = null; for (let s = n instanceof $s ? n : n.context.parent; s; s = s.parent) if (s.index < 0) { @@ -10731,7 +10731,7 @@ function Hwe(t, e, r) { (i || (i = [n])).push(Ay(o, e, r, !1)); } } - return i ? TK(i) : n; + return i ? CK(i) : n; } class S5 { get name() { @@ -10828,7 +10828,7 @@ class S5 { if (r > -1) for (let s = r + e, a = e < 0 ? -1 : n._tree.children.length; s != a; s += e) { let o = n._tree.children[s]; - if (this.mode & un.IncludeAnonymous || o instanceof lf || !o.type.isAnonymous || QR(o)) + if (this.mode & un.IncludeAnonymous || o instanceof lf || !o.type.isAnonymous || YR(o)) return !1; } return !0; @@ -10899,11 +10899,11 @@ class S5 { } matchContext(e) { if (!this.buffer) - return d7(this.node, e); + return p7(this.node, e); let { buffer: r } = this.buffer, { types: n } = r.set; for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) { if (s < 0) - return d7(this.node, e, i); + return p7(this.node, e, i); let a = n[r.buffer[this.stack[s]]]; if (!a.isAnonymous) { if (e[i] && e[i] != a.name) @@ -10914,18 +10914,18 @@ class S5 { return !0; } } -function QR(t) { - return t.children.some((e) => e instanceof lf || !e.type.isAnonymous || QR(e)); +function YR(t) { + return t.children.some((e) => e instanceof lf || !e.type.isAnonymous || YR(e)); } -function Xwe(t) { +function Zwe(t) { var e; - let { buffer: r, nodeSet: n, maxBufferLength: i = OK, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new qR(r, r.length) : r, l = n.types, u = 0, h = 0; - function f(S, C, T, L, E, A) { + let { buffer: r, nodeSet: n, maxBufferLength: i = kK, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new QR(r, r.length) : r, l = n.types, u = 0, h = 0; + function f(S, C, T, A, E, L) { let { id: _, start: R, end: $, size: k } = o, N = h; for (; k < 0; ) if (o.next(), k == -1) { let F = s[_]; - T.push(F), L.push(R - S); + T.push(F), A.push(R - S); return; } else if (k == -3) { u = _; @@ -10946,17 +10946,17 @@ function Xwe(t) { o.next(); let B = [], V = [], Q = _ >= a ? _ : -1, W = 0, ee = $; for (; o.pos > F; ) - Q >= 0 && o.id == Q && o.size >= 0 ? (o.end <= ee - i && (g(B, V, R, W, o.end, ee, Q, N), W = B.length, ee = o.end), o.next()) : A > 2500 ? d(R, F, B, V) : f(R, F, B, V, Q, A + 1); + Q >= 0 && o.id == Q && o.size >= 0 ? (o.end <= ee - i && (g(B, V, R, W, o.end, ee, Q, N), W = B.length, ee = o.end), o.next()) : L > 2500 ? d(R, F, B, V) : f(R, F, B, V, Q, L + 1); if (Q >= 0 && W > 0 && W < B.length && g(B, V, R, W, R, ee, Q, N), B.reverse(), V.reverse(), Q > -1 && W > 0) { let Y = p(M); - I = YR(M, B, V, 0, B.length, 0, $ - R, Y, Y); + I = WR(M, B, V, 0, B.length, 0, $ - R, Y, Y); } else I = m(M, B, V, $ - R, N - $); } - T.push(I), L.push(P); + T.push(I), A.push(P); } - function d(S, C, T, L) { - let E = [], A = 0, _ = -1; + function d(S, C, T, A) { + let E = [], L = 0, _ = -1; for (; o.pos > C; ) { let { id: R, start: $, end: k, size: N } = o; if (N > 4) @@ -10964,51 +10964,51 @@ function Xwe(t) { else { if (_ > -1 && $ < _) break; - _ < 0 && (_ = k - i), E.push(R, $, k), A++, o.next(); + _ < 0 && (_ = k - i), E.push(R, $, k), L++, o.next(); } } - if (A) { - let R = new Uint16Array(A * 4), $ = E[E.length - 2]; + if (L) { + let R = new Uint16Array(L * 4), $ = E[E.length - 2]; for (let k = E.length - 3, N = 0; k >= 0; k -= 3) R[N++] = E[k], R[N++] = E[k + 1] - $, R[N++] = E[k + 2] - $, R[N++] = N; - T.push(new lf(R, E[2] - $, n)), L.push($ - S); + T.push(new lf(R, E[2] - $, n)), A.push($ - S); } } function p(S) { - return (C, T, L) => { - let E = 0, A = C.length - 1, _, R; - if (A >= 0 && (_ = C[A]) instanceof Yr) { - if (!A && _.type == S && _.length == L) + return (C, T, A) => { + let E = 0, L = C.length - 1, _, R; + if (L >= 0 && (_ = C[L]) instanceof Yr) { + if (!L && _.type == S && _.length == A) return _; - (R = _.prop(lr.lookAhead)) && (E = T[A] + _.length + R); + (R = _.prop(lr.lookAhead)) && (E = T[L] + _.length + R); } - return m(S, C, T, L, E); + return m(S, C, T, A, E); }; } - function g(S, C, T, L, E, A, _, R) { + function g(S, C, T, A, E, L, _, R) { let $ = [], k = []; - for (; S.length > L; ) + for (; S.length > A; ) $.push(S.pop()), k.push(C.pop() + T - E); - S.push(m(n.types[_], $, k, A - E, R - A)), C.push(E - T); + S.push(m(n.types[_], $, k, L - E, R - L)), C.push(E - T); } - function m(S, C, T, L, E = 0, A) { + function m(S, C, T, A, E = 0, L) { if (u) { let _ = [lr.contextHash, u]; - A = A ? [_].concat(A) : [_]; + L = L ? [_].concat(L) : [_]; } if (E > 25) { let _ = [lr.lookAhead, E]; - A = A ? [_].concat(A) : [_]; + L = L ? [_].concat(L) : [_]; } - return new Yr(S, C, T, L, A); + return new Yr(S, C, T, A, L); } function v(S, C) { - let T = o.fork(), L = 0, E = 0, A = 0, _ = T.end - i, R = { size: 0, start: 0, skip: 0 }; + let T = o.fork(), A = 0, E = 0, L = 0, _ = T.end - i, R = { size: 0, start: 0, skip: 0 }; e: for (let $ = T.pos - S; T.pos > $; ) { let k = T.size; if (T.id == C && k >= 0) { - R.size = L, R.start = E, R.skip = A, A += 4, L += 4, T.next(); + R.size = A, R.start = E, R.skip = L, L += 4, A += 4, T.next(); continue; } let N = T.pos - k; @@ -11025,22 +11025,22 @@ function Xwe(t) { T.id >= a && (M += 4); T.next(); } - E = I, L += k, A += M; + E = I, A += k, L += M; } - return (C < 0 || L == S) && (R.size = L, R.start = E, R.skip = A), R.size > 4 ? R : void 0; + return (C < 0 || A == S) && (R.size = A, R.start = E, R.skip = L), R.size > 4 ? R : void 0; } function y(S, C, T) { - let { id: L, start: E, end: A, size: _ } = o; - if (o.next(), _ >= 0 && L < a) { + let { id: A, start: E, end: L, size: _ } = o; + if (o.next(), _ >= 0 && A < a) { let R = T; if (_ > 4) { let $ = o.pos - (_ - 4); for (; o.pos > $; ) T = y(S, C, T); } - C[--T] = R, C[--T] = A - S, C[--T] = E - S, C[--T] = L; + C[--T] = R, C[--T] = L - S, C[--T] = E - S, C[--T] = A; } else - _ == -3 ? u = L : _ == -4 && (h = L); + _ == -3 ? u = A : _ == -4 && (h = A); return T; } let b = [], w = []; @@ -11067,7 +11067,7 @@ function h4(t, e) { } return r; } -function YR(t, e, r, n, i, s, a, o, l) { +function WR(t, e, r, n, i, s, a, o, l) { let u = 0; for (let g = n; g < i; g++) u += h4(t, e[g]); @@ -11090,14 +11090,14 @@ function YR(t, e, r, n, i, s, a, o, l) { f.push(g[O]); } else { let T = m[w - 1] + g[w - 1].length - S; - f.push(YR(t, g, m, O, w, S, T, null, l)); + f.push(WR(t, g, m, O, w, S, T, null, l)); } d.push(S + b - s); } } return p(e, r, n, i, 0), (o || l)(f, d, a); } -class CK { +class EK { constructor() { this.map = /* @__PURE__ */ new WeakMap(); } @@ -11162,9 +11162,9 @@ class Cu { return i; } } -class WR { +class GR { startParse(e, r, n) { - return typeof e == "string" && (e = new Zwe(e)), n = n ? n.length ? n.map((i) => new Ro(i.from, i.to)) : [new Ro(0, 0)] : [new Ro(0, e.length)], this.createParse(e, r || [], n); + return typeof e == "string" && (e = new jwe(e)), n = n ? n.length ? n.map((i) => new Ro(i.from, i.to)) : [new Ro(0, 0)] : [new Ro(0, e.length)], this.createParse(e, r || [], n); } parse(e, r, n) { let i = this.startParse(e, r, n); @@ -11175,7 +11175,7 @@ class WR { } } } -class Zwe { +class jwe { constructor(e) { this.string = e; } @@ -11192,8 +11192,8 @@ class Zwe { return this.string.slice(e, r); } } -function EK(t) { - return (e, r, n, i) => new Kwe(e, t, r, n, i); +function _K(t) { + return (e, r, n, i) => new Jwe(e, t, r, n, i); } class jB { constructor(e, r, n, i, s) { @@ -11204,13 +11204,13 @@ function KB(t) { if (!t.length || t.some((e) => e.from >= e.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(t)); } -class jwe { +class Kwe { constructor(e, r, n, i, s, a, o) { this.parser = e, this.predicate = r, this.mounts = n, this.index = i, this.start = s, this.target = a, this.prev = o, this.depth = 0, this.ranges = []; } } -const p7 = new lr({ perNode: !0 }); -class Kwe { +const g7 = new lr({ perNode: !0 }); +class Jwe { constructor(e, r, n, i, s) { this.nest = r, this.input = n, this.fragments = i, this.ranges = s, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e; } @@ -11225,7 +11225,7 @@ class Kwe { } if (this.innerDone == this.inner.length) { let n = this.baseTree; - return this.stoppedAt != null && (n = new Yr(n.type, n.children, n.positions, n.length, n.propValues.concat([[p7, this.stoppedAt]]))), n; + return this.stoppedAt != null && (n = new Yr(n.type, n.children, n.positions, n.length, n.propValues.concat([[g7, this.stoppedAt]]))), n; } let e = this.inner[this.innerDone], r = e.parse.advance(); if (r) { @@ -11251,7 +11251,7 @@ class Kwe { this.inner[r].parse.stopAt(e); } startInner() { - let e = new tOe(this.fragments), r = null, n = null, i = new S5(new $s(this.baseTree, this.ranges[0].from, 0, null), un.IncludeAnonymous | un.IgnoreMounts); + let e = new rOe(this.fragments), r = null, n = null, i = new S5(new $s(this.baseTree, this.ranges[0].from, 0, null), un.IncludeAnonymous | un.IgnoreMounts); e: for (let s, a; ; ) { let o = !0, l; @@ -11267,13 +11267,13 @@ class Kwe { } } o = !1; - } else if (n && (a = Jwe(n.ranges, i.from, i.to))) + } else if (n && (a = eOe(n.ranges, i.from, i.to))) o = a != 2; else if (!i.type.isAnonymous && (s = this.nest(i, this.input)) && (i.from < i.to || !s.overlay)) { - i.tree || eOe(i); + i.tree || tOe(i); let u = e.findMounts(i.from, s.parser); if (typeof s.overlay == "function") - r = new jwe(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); + r = new Kwe(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); else { let h = tF(this.ranges, s.overlay || (i.from < i.to ? [new Ro(i.from, i.to)] : [])); h.length && KB(h), (h.length || !s.overlay) && this.inner.push(new jB(s.parser, h.length ? s.parser.startParse(this.input, rF(u, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((f) => new Ro(f.from - i.from, f.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (n = { ranges: h, depth: 0, prev: n }) : o = !1; @@ -11295,7 +11295,7 @@ class Kwe { } } } -function Jwe(t, e, r) { +function eOe(t, e, r) { for (let n of t) { if (n.from >= r) break; @@ -11310,7 +11310,7 @@ function JB(t, e, r, n, i, s) { n.push(t.slice(e, r, a)), i.push(a - s); } } -function eOe(t) { +function tOe(t) { let { node: e } = t, r = [], n = e.context.buffer; do r.push(t.index), t.parent(); @@ -11324,7 +11324,7 @@ function eOe(t) { let S = m ? u(v + 4, o[v + 3], a.set.types[o[v]], w, O - w, m - 1) : e.toTree(); return y.push(S), b.push(w - p), JB(a, o[v + 3], f, y, b, p), new Yr(d, y, b, g); } - i.children[s] = u(0, o.length, Li.none, 0, a.length, r.length - 1); + i.children[s] = u(0, o.length, Ri.none, 0, a.length, r.length - 1); for (let h of l) { let f = t.tree.children[h], d = t.tree.positions[h]; t.yield(new $s(f, d + t.from, h, t._tree)); @@ -11352,12 +11352,12 @@ class eF { return !1; } } -class tOe { +class rOe { constructor(e) { var r; if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) { let n = this.curFrag = e[0]; - this.curTo = (r = n.tree.prop(p7)) !== null && r !== void 0 ? r : n.to, this.inner = new eF(n.tree, -n.offset); + this.curTo = (r = n.tree.prop(g7)) !== null && r !== void 0 ? r : n.to, this.inner = new eF(n.tree, -n.offset); } else this.curFrag = this.inner = null; } @@ -11372,7 +11372,7 @@ class tOe { this.curFrag = this.inner = null; else { let r = this.curFrag = this.fragments[this.fragI]; - this.curTo = (e = r.tree.prop(p7)) !== null && e !== void 0 ? e : r.to, this.inner = new eF(r.tree, -r.offset); + this.curTo = (e = r.tree.prop(g7)) !== null && e !== void 0 ? e : r.to, this.inner = new eF(r.tree, -r.offset); } } findMounts(e, r) { @@ -11411,7 +11411,7 @@ function tF(t, e) { } return n; } -function rOe(t, e, r, n) { +function nOe(t, e, r, n) { let i = 0, s = 0, a = !1, o = !1, l = -1e9, u = []; for (; ; ) { let h = i == t.length ? 1e9 : a ? t[i].to : t[i].from, f = s == e.length ? 1e9 : o ? e[s].to : e[s].from; @@ -11430,7 +11430,7 @@ function rF(t, e) { for (let { pos: n, mount: i, frag: s } of t) { let a = n + (i.overlay ? i.overlay[0].from : 0), o = a + i.tree.length, l = Math.max(s.from, a), u = Math.min(s.to, o); if (i.overlay) { - let h = i.overlay.map((d) => new Ro(d.from + n, d.to + n)), f = rOe(e, h, l, u); + let h = i.overlay.map((d) => new Ro(d.from + n, d.to + n)), f = nOe(e, h, l, u); for (let d = 0, p = l; ; d++) { let g = d == f.length, m = g ? u : f[d].from; if (m > p && r.push(new Cu(p, m, i.tree, -a, s.from >= p || s.openStart, s.to <= m || s.openEnd)), g) @@ -11442,10 +11442,10 @@ function rF(t, e) { } return r; } -let nOe = 0; +let iOe = 0; class dl { constructor(e, r, n) { - this.set = e, this.base = r, this.modified = n, this.id = nOe++; + this.set = e, this.base = r, this.modified = n, this.id = iOe++; } static define(e) { if (e != null && e.base) @@ -11461,21 +11461,21 @@ class dl { return (r) => r.modified.indexOf(e) > -1 ? r : T5.get(r.base || r, r.modified.concat(e).sort((n, i) => n.id - i.id)); } } -let iOe = 0; +let sOe = 0; class T5 { constructor() { - this.instances = [], this.id = iOe++; + this.instances = [], this.id = sOe++; } static get(e, r) { if (!r.length) return e; - let n = r[0].instances.find((o) => o.base == e && sOe(r, o.modified)); + let n = r[0].instances.find((o) => o.base == e && aOe(r, o.modified)); if (n) return n; let i = [], s = new dl(i, e, r); for (let o of r) o.instances.push(s); - let a = aOe(r); + let a = oOe(r); for (let o of e.set) if (!o.modified.length) for (let l of a) @@ -11483,10 +11483,10 @@ class T5 { return s; } } -function sOe(t, e) { +function aOe(t, e) { return t.length == e.length && t.every((r, n) => r == e[n]); } -function aOe(t) { +function oOe(t) { let e = [[]]; for (let r = 0; r < t.length; r++) for (let n = 0, i = e.length; n < i; n++) @@ -11527,9 +11527,9 @@ function N1(t) { e[u] = h.sort(e[u]); } } - return _K.add(e); + return AK.add(e); } -const _K = new lr(); +const AK = new lr(); class C5 { constructor(e, r, n, i) { this.tags = e, this.mode = r, this.context = n, this.next = i; @@ -11548,7 +11548,7 @@ class C5 { } } C5.empty = new C5([], 2, null); -function AK(t, e) { +function LK(t, e) { let r = /* @__PURE__ */ Object.create(null); for (let s of t) if (!Array.isArray(s.tag)) @@ -11573,7 +11573,7 @@ function AK(t, e) { scope: n }; } -function oOe(t, e) { +function lOe(t, e) { let r = null; for (let n of t) { let i = n.style(e); @@ -11581,11 +11581,11 @@ function oOe(t, e) { } return r; } -function lOe(t, e, r, n = 0, i = t.length) { - let s = new cOe(n, Array.isArray(e) ? e : [e], r); +function cOe(t, e, r, n = 0, i = t.length) { + let s = new uOe(n, Array.isArray(e) ? e : [e], r); s.highlightRange(t.cursor(), n, i, "", s.highlighters), s.flush(i); } -class cOe { +class uOe { constructor(e, r, n) { this.at = e, this.highlighters = r, this.span = n, this.class = ""; } @@ -11600,7 +11600,7 @@ class cOe { if (o >= n || l <= r) return; a.isTop && (s = this.highlighters.filter((p) => !p.scope || p.scope(a))); - let u = i, h = uOe(e) || C5.empty, f = oOe(s, h.tags); + let u = i, h = hOe(e) || C5.empty, f = lOe(s, h.tags); if (f && (u && (u += " "), u += f, h.mode == 1 && (i += (i ? " " : "") + f)), this.startSpan(Math.max(r, o), u), h.opaque) return; let d = e.tree && e.tree.prop(lr.mounted); @@ -11629,13 +11629,13 @@ class cOe { } } } -function uOe(t) { - let e = t.type.prop(_K); +function hOe(t) { + let e = t.type.prop(AK); for (; e && e.context && !t.matchContext(e.context); ) e = e.next; return e || null; } -const xt = dl.define, kw = xt(), kh = xt(), nF = xt(kh), iF = xt(kh), Sh = xt(), Sw = xt(Sh), OE = xt(Sh), nc = xt(), Xf = xt(nc), Kl = xt(), Jl = xt(), g7 = xt(), Am = xt(g7), Tw = xt(), Se = { +const xt = dl.define, kw = xt(), kh = xt(), nF = xt(kh), iF = xt(kh), Sh = xt(), Sw = xt(Sh), kE = xt(Sh), nc = xt(), Xf = xt(nc), Kl = xt(), Jl = xt(), m7 = xt(), Am = xt(m7), Tw = xt(), Se = { comment: kw, lineComment: xt(kw), blockComment: xt(kw), @@ -11655,9 +11655,9 @@ const xt = dl.define, kw = xt(), kh = xt(), nF = xt(kh), iF = xt(kh), Sh = xt(), docString: xt(Sw), character: xt(Sw), attributeValue: xt(Sw), - number: OE, - integer: xt(OE), - float: xt(OE), + number: kE, + integer: xt(kE), + float: xt(kE), bool: xt(Sh), regexp: xt(Sh), escape: xt(Sh), @@ -11683,8 +11683,8 @@ const xt = dl.define, kw = xt(), kh = xt(), nF = xt(kh), iF = xt(kh), Sh = xt(), definitionOperator: xt(Jl), typeOperator: xt(Jl), controlOperator: xt(Jl), - punctuation: g7, - separator: xt(g7), + punctuation: m7, + separator: xt(m7), bracket: Am, angleBracket: xt(Am), squareBracket: xt(Am), @@ -11721,7 +11721,7 @@ const xt = dl.define, kw = xt(), kh = xt(), nF = xt(kh), iF = xt(kh), Sh = xt(), local: dl.defineModifier(), special: dl.defineModifier() }; -AK([ +LK([ { tag: Se.link, class: "tok-link" }, { tag: Se.heading, class: "tok-heading" }, { tag: Se.emphasis, class: "tok-emphasis" }, @@ -11753,14 +11753,14 @@ AK([ { tag: Se.invalid, class: "tok-invalid" }, { tag: Se.punctuation, class: "tok-punctuation" } ]); -var kE; +var SE; const Ed = /* @__PURE__ */ new lr(); -function GR(t) { +function HR(t) { return _t.define({ combine: t ? (e) => e.concat(t) : void 0 }); } -const HR = /* @__PURE__ */ new lr(); +const XR = /* @__PURE__ */ new lr(); class Mo { constructor(e, r, n = [], i = "") { this.data = e, this.name = i, dr.prototype.hasOwnProperty("tree") || Object.defineProperty(dr.prototype, "tree", { get() { @@ -11771,7 +11771,7 @@ class Mo { let l = sF(s, a, o), u = l.type.prop(Ed); if (!u) return []; - let h = s.facet(u), f = l.type.prop(HR); + let h = s.facet(u), f = l.type.prop(XR); if (f) { let d = l.resolve(a - l.from, o); for (let p of f) @@ -11837,7 +11837,7 @@ class _g extends Mo { super(e, r, [], n), this.parser = r; } static define(e) { - let r = GR(e.languageData); + let r = HR(e.languageData); return new _g(r, e.parser.configure({ props: [Ed.add((n) => n.isTop ? r : void 0)] }), e.name); @@ -11853,7 +11853,7 @@ function fn(t) { let e = t.field(Mo.state, !1); return e ? e.tree : Yr.empty; } -class hOe { +class fOe { constructor(e) { this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter(); } @@ -11883,7 +11883,7 @@ class Ly { return new Ly(e, r, [], Yr.empty, 0, n, [], null); } startParse() { - return this.parser.startParse(new hOe(this.state.doc), this.fragments); + return this.parser.startParse(new fOe(this.state.doc), this.fragments); } work(e, r) { return r != null && r >= this.state.doc.length && (r = void 0), this.tree != Yr.empty && this.isDone(r != null ? r : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { @@ -11957,7 +11957,7 @@ class Ly { this.skipped.push({ from: e, to: r }); } static getSkippingParser(e) { - return new class extends WR { + return new class extends GR { createParse(r, n, i) { let s = i[0].from, a = i[i.length - 1].to; return { @@ -11969,7 +11969,7 @@ class Ly { l.tempSkipped.push(u); e && (l.scheduleOn = l.scheduleOn ? Promise.all([l.scheduleOn, e]) : e); } - return this.parsedPos = a, new Yr(Li.none, [], [], a - s); + return this.parsedPos = a, new Yr(Ri.none, [], [], a - s); }, stoppedAt: null, stopAt() { @@ -12014,17 +12014,17 @@ Mo.state = /* @__PURE__ */ $n.define({ return e.startState.facet(cf) != e.state.facet(cf) ? Ag.init(e.state) : t.apply(e); } }); -let LK = (t) => { +let RK = (t) => { let e = setTimeout(() => t(), 500); return () => clearTimeout(e); }; -typeof requestIdleCallback < "u" && (LK = (t) => { +typeof requestIdleCallback < "u" && (RK = (t) => { let e = -1, r = setTimeout(() => { e = requestIdleCallback(t, { timeout: 500 - 100 }); }, 100); return () => e < 0 ? clearTimeout(r) : cancelIdleCallback(e); }); -const SE = typeof navigator < "u" && ((kE = navigator.scheduling) === null || kE === void 0 ? void 0 : kE.isInputPending) ? () => navigator.scheduling.isInputPending() : null, fOe = /* @__PURE__ */ an.fromClass(class { +const TE = typeof navigator < "u" && ((SE = navigator.scheduling) === null || SE === void 0 ? void 0 : SE.isInputPending) ? () => navigator.scheduling.isInputPending() : null, dOe = /* @__PURE__ */ an.fromClass(class { constructor(e) { this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork(); } @@ -12036,7 +12036,7 @@ const SE = typeof navigator < "u" && ((kE = navigator.scheduling) === null || kE if (this.working) return; let { state: e } = this.view, r = e.field(Mo.state); - (r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = LK(this.work)); + (r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = RK(this.work)); } work(e) { this.working = null; @@ -12046,7 +12046,7 @@ const SE = typeof navigator < "u" && ((kE = navigator.scheduling) === null || kE let { state: n, viewport: { to: i } } = this.view, s = n.field(Mo.state); if (s.tree == s.context.tree && s.context.isDone(i + 1e5)) return; - let a = Date.now() + Math.min(this.chunkBudget, 100, e && !SE ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = s.context.treeLen < i && n.doc.length > i + 1e3, l = s.context.work(() => SE && SE() || Date.now() > a, i + (o ? 0 : 1e5)); + let a = Date.now() + Math.min(this.chunkBudget, 100, e && !TE ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = s.context.treeLen < i && n.doc.length > i + 1e3, l = s.context.work(() => TE && TE() || Date.now() > a, i + (o ? 0 : 1e5)); this.chunkBudget -= Date.now() - r, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: Mo.setState.of(new Ag(s.context)) })), this.chunkBudget > 0 && !(l && !o) && this.scheduleWork(), this.checkAsyncSchedule(s.context); } checkAsyncSchedule(e) { @@ -12068,7 +12068,7 @@ const SE = typeof navigator < "u" && ((kE = navigator.scheduling) === null || kE }, enables: (t) => [ Mo.state, - fOe, + dOe, ht.contentAttributes.compute([t], (e) => { let r = e.facet(t); return r && r.name ? { "data-language": r.name } : {}; @@ -12125,7 +12125,7 @@ class E5 { return null; } } -const dOe = /* @__PURE__ */ _t.define(), Gb = /* @__PURE__ */ _t.define({ +const pOe = /* @__PURE__ */ _t.define(), Gb = /* @__PURE__ */ _t.define({ combine: (t) => { if (!t.length) return " "; @@ -12150,17 +12150,17 @@ function My(t, e) { r += i; return r; } -function XR(t, e) { - t instanceof dr && (t = new BS(t)); - for (let n of t.state.facet(dOe)) { +function ZR(t, e) { + t instanceof dr && (t = new FS(t)); + for (let n of t.state.facet(pOe)) { let i = n(t, e); if (i !== void 0) return i; } let r = fn(t.state); - return r.length >= e ? pOe(t, r, e) : null; + return r.length >= e ? gOe(t, r, e) : null; } -class BS { +class FS { constructor(e, r = {}) { this.state = e, this.options = r, this.unit = _5(e); } @@ -12195,7 +12195,7 @@ class BS { } } const Hb = /* @__PURE__ */ new lr(); -function pOe(t, e, r) { +function gOe(t, e, r) { let n = e.resolveStack(r), i = n.node.enterUnfinishedNodesBefore(r); if (i != n.node) { let s = []; @@ -12204,34 +12204,34 @@ function pOe(t, e, r) { for (let a = s.length - 1; a >= 0; a--) n = { node: s[a], next: n }; } - return RK(n, t, r); + return MK(n, t, r); } -function RK(t, e, r) { +function MK(t, e, r) { for (let n = t; n; n = n.next) { - let i = mOe(n.node); + let i = vOe(n.node); if (i) - return i(ZR.create(e, r, n)); + return i(jR.create(e, r, n)); } return 0; } -function gOe(t) { +function mOe(t) { return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak; } -function mOe(t) { +function vOe(t) { let e = t.type.prop(Hb); if (e) return e; let r = t.firstChild, n; if (r && (n = r.type.prop(lr.closedBy))) { let i = t.lastChild, s = i && n.indexOf(i.name) > -1; - return (a) => MK(a, !0, 1, void 0, s && !gOe(a) ? i.from : void 0); + return (a) => DK(a, !0, 1, void 0, s && !mOe(a) ? i.from : void 0); } - return t.parent == null ? vOe : null; + return t.parent == null ? yOe : null; } -function vOe() { +function yOe() { return 0; } -class ZR extends BS { +class jR extends FS { constructor(e, r, n) { super(e.state, e.options), this.base = e, this.pos = r, this.context = n; } @@ -12239,7 +12239,7 @@ class ZR extends BS { return this.context.node; } static create(e, r, n) { - return new ZR(e, r, n); + return new jR(e, r, n); } get textAfter() { return this.textAfterPos(this.pos); @@ -12253,23 +12253,23 @@ class ZR extends BS { let n = e.resolve(r.from); for (; n.parent && n.parent.from == n.from; ) n = n.parent; - if (yOe(n, e)) + if (bOe(n, e)) break; r = this.state.doc.lineAt(n.from); } return this.lineIndent(r.from); } continue() { - return RK(this.context.next, this.base, this.pos); + return MK(this.context.next, this.base, this.pos); } } -function yOe(t, e) { +function bOe(t, e) { for (let r = e; r; r = r.parent) if (t == r) return !0; return !1; } -function bOe(t) { +function xOe(t) { let e = t.node, r = e.childAfter(e.from), n = e.lastChild; if (!r) return null; @@ -12283,22 +12283,22 @@ function bOe(t) { o = l.to; } } -function xOe({ closing: t, align: e = !0, units: r = 1 }) { - return (n) => MK(n, e, r, t); +function wOe({ closing: t, align: e = !0, units: r = 1 }) { + return (n) => DK(n, e, r, t); } -function MK(t, e, r, n, i) { - let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? bOe(t) : null; +function DK(t, e, r, n, i) { + let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? xOe(t) : null; return l ? o ? t.column(l.from) : t.column(l.to) : t.baseIndent + (o ? 0 : t.unit * r); } -const wOe = (t) => t.baseIndent; +const OOe = (t) => t.baseIndent; function f4({ except: t, units: e = 1 } = {}) { return (r) => { let n = t && t.test(r.textAfter); return r.baseIndent + (n ? 0 : e * r.unit); }; } -const OOe = 200; -function kOe() { +const kOe = 200; +function SOe() { return dr.transactionFilter.of((t) => { if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete")) return t; @@ -12306,7 +12306,7 @@ function kOe() { if (!e.length) return t; let r = t.newDoc, { head: n } = t.newSelection.main, i = r.lineAt(n); - if (n > i.from + OOe) + if (n > i.from + kOe) return t; let s = r.sliceString(i.from, n); if (!e.some((u) => u.test(s))) @@ -12317,7 +12317,7 @@ function kOe() { if (h.from == o) continue; o = h.from; - let f = XR(a, h.from); + let f = ZR(a, h.from); if (f == null) continue; let d = /^\s*/.exec(h.text)[0], p = My(a, f); @@ -12326,12 +12326,12 @@ function kOe() { return l.length ? [t, { changes: l, sequential: !0 }] : t; }); } -const DK = /* @__PURE__ */ _t.define(), I1 = /* @__PURE__ */ new lr(); -function NK(t) { +const NK = /* @__PURE__ */ _t.define(), I1 = /* @__PURE__ */ new lr(); +function IK(t) { let e = t.firstChild, r = t.lastChild; return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null; } -function SOe(t, e, r) { +function TOe(t, e, r) { let n = fn(t); if (n.length < r) return null; @@ -12343,31 +12343,31 @@ function SOe(t, e, r) { if (s && o.from < e) break; let l = o.type.prop(I1); - if (l && (o.to < n.length - 50 || n.length == t.doc.length || !TOe(o))) { + if (l && (o.to < n.length - 50 || n.length == t.doc.length || !COe(o))) { let u = l(o, t); u && u.from <= r && u.from >= e && u.to > r && (s = u); } } return s; } -function TOe(t) { +function COe(t) { let e = t.lastChild; return e && e.to == t.to && e.type.isError; } function Dy(t, e, r) { - for (let n of t.facet(DK)) { + for (let n of t.facet(NK)) { let i = n(t, e, r); if (i) return i; } - return SOe(t, e, r); + return TOe(t, e, r); } -function IK(t, e) { +function PK(t, e) { let r = e.mapPos(t.from, 1), n = e.mapPos(t.to, -1); return r >= n ? void 0 : { from: r, to: n }; } -const Fu = /* @__PURE__ */ Zt.define({ map: IK }), N0 = /* @__PURE__ */ Zt.define({ map: IK }); -function PK(t) { +const Fu = /* @__PURE__ */ Zt.define({ map: PK }), N0 = /* @__PURE__ */ Zt.define({ map: PK }); +function $K(t) { let e = []; for (let { head: r } of t.state.selection.ranges) e.some((n) => n.from <= r && n.to >= r) || e.push(t.lineBlockAt(r)); @@ -12380,8 +12380,8 @@ const uf = /* @__PURE__ */ $n.define({ update(t, e) { t = t.map(e.changes); for (let r of e.effects) - if (r.is(Fu) && !EOe(t, r.value.from, r.value.to)) { - let { preparePlaceholder: n } = e.state.facet(jR), i = n ? Et.replace({ widget: new NOe(n(e.state, r.value)) }) : oF; + if (r.is(Fu) && !_Oe(t, r.value.from, r.value.to)) { + let { preparePlaceholder: n } = e.state.facet(KR), i = n ? Et.replace({ widget: new IOe(n(e.state, r.value)) }) : oF; t = t.update({ add: [i.range(r.value.from, r.value.to)] }); } else r.is(N0) && (t = t.update({ @@ -12421,7 +12421,7 @@ const uf = /* @__PURE__ */ $n.define({ return Et.set(e, !0); } }); -function COe(t) { +function EOe(t) { return t.field(uf, !1) || Er.empty; } function A5(t, e, r) { @@ -12431,44 +12431,44 @@ function A5(t, e, r) { (!i || i.from > s) && (i = { from: s, to: a }); }), i; } -function EOe(t, e, r) { +function _Oe(t, e, r) { let n = !1; return t.between(e, e, (i, s) => { i == e && s == r && (n = !0); }), n; } -function $K(t, e) { - return t.field(uf, !1) ? e : e.concat(Zt.appendConfig.of(FK())); +function BK(t, e) { + return t.field(uf, !1) ? e : e.concat(Zt.appendConfig.of(zK())); } -const _Oe = (t) => { - for (let e of PK(t)) { +const AOe = (t) => { + for (let e of $K(t)) { let r = Dy(t.state, e.from, e.to); if (r) - return t.dispatch({ effects: $K(t.state, [Fu.of(r), BK(t, r)]) }), !0; + return t.dispatch({ effects: BK(t.state, [Fu.of(r), FK(t, r)]) }), !0; } return !1; -}, AOe = (t) => { +}, LOe = (t) => { if (!t.state.field(uf, !1)) return !1; let e = []; - for (let r of PK(t)) { + for (let r of $K(t)) { let n = A5(t.state, r.from, r.to); - n && e.push(N0.of(n), BK(t, n, !1)); + n && e.push(N0.of(n), FK(t, n, !1)); } return e.length && t.dispatch({ effects: e }), e.length > 0; }; -function BK(t, e, r = !0) { +function FK(t, e, r = !0) { let n = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number; return ht.announce.of(`${t.state.phrase(r ? "Folded lines" : "Unfolded lines")} ${n} ${t.state.phrase("to")} ${i}.`); } -const LOe = (t) => { +const ROe = (t) => { let { state: e } = t, r = []; for (let n = 0; n < e.doc.length; ) { let i = t.lineBlockAt(n), s = Dy(e, i.from, i.to); s && r.push(Fu.of(s)), n = (s ? t.lineBlockAt(s.to) : i).to + 1; } - return r.length && t.dispatch({ effects: $K(t.state, r) }), !!r.length; -}, ROe = (t) => { + return r.length && t.dispatch({ effects: BK(t.state, r) }), !!r.length; +}, MOe = (t) => { let e = t.state.field(uf, !1); if (!e || !e.size) return !1; @@ -12476,26 +12476,26 @@ const LOe = (t) => { return e.between(0, t.state.doc.length, (n, i) => { r.push(N0.of({ from: n, to: i })); }), t.dispatch({ effects: r }), !0; -}, MOe = [ - { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: _Oe }, - { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: AOe }, - { key: "Ctrl-Alt-[", run: LOe }, - { key: "Ctrl-Alt-]", run: ROe } -], DOe = { +}, DOe = [ + { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: AOe }, + { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: LOe }, + { key: "Ctrl-Alt-[", run: ROe }, + { key: "Ctrl-Alt-]", run: MOe } +], NOe = { placeholderDOM: null, preparePlaceholder: null, placeholderText: "\u2026" -}, jR = /* @__PURE__ */ _t.define({ +}, KR = /* @__PURE__ */ _t.define({ combine(t) { - return qc(t, DOe); + return qc(t, NOe); } }); -function FK(t) { - let e = [uf, $Oe]; - return t && e.push(jR.of(t)), e; +function zK(t) { + let e = [uf, BOe]; + return t && e.push(KR.of(t)), e; } -function zK(t, e) { - let { state: r } = t, n = r.facet(jR), i = (a) => { +function VK(t, e) { + let { state: r } = t, n = r.facet(KR), i = (a) => { let o = t.lineBlockAt(t.posAtDOM(a.target)), l = A5(t.state, o.from, o.to); l && t.dispatch({ effects: N0.of(l) }), a.preventDefault(); }; @@ -12504,12 +12504,12 @@ function zK(t, e) { let s = document.createElement("span"); return s.textContent = n.placeholderText, s.setAttribute("aria-label", r.phrase("folded code")), s.title = r.phrase("unfold"), s.className = "cm-foldPlaceholder", s.onclick = i, s; } -const oF = /* @__PURE__ */ Et.replace({ widget: /* @__PURE__ */ new class extends za { +const oF = /* @__PURE__ */ Et.replace({ widget: /* @__PURE__ */ new class extends Va { toDOM(t) { - return zK(t, null); + return VK(t, null); } }() }); -class NOe extends za { +class IOe extends Va { constructor(e) { super(), this.value = e; } @@ -12517,17 +12517,17 @@ class NOe extends za { return this.value == e.value; } toDOM(e) { - return zK(e, this.value); + return VK(e, this.value); } } -const IOe = { +const POe = { openText: "\u2304", closedText: "\u203A", markerDOM: null, domEventHandlers: {}, foldingChanged: () => !1 }; -class TE extends Uo { +class CE extends Uo { constructor(e, r) { super(), this.config = e, this.open = r; } @@ -12541,8 +12541,8 @@ class TE extends Uo { return r.textContent = this.open ? this.config.openText : this.config.closedText, r.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), r; } } -function POe(t = {}) { - let e = Object.assign(Object.assign({}, IOe), t), r = new TE(e, !0), n = new TE(e, !1), i = an.fromClass(class { +function $Oe(t = {}) { + let e = Object.assign(Object.assign({}, POe), t), r = new CE(e, !0), n = new CE(e, !1), i = an.fromClass(class { constructor(a) { this.from = a.viewport.from, this.markers = this.buildMarkers(a); } @@ -12560,14 +12560,14 @@ function POe(t = {}) { }), { domEventHandlers: s } = e; return [ i, - $S({ + BS({ class: "cm-foldGutter", markers(a) { var o; return ((o = a.plugin(i)) === null || o === void 0 ? void 0 : o.markers) || Er.empty; }, initialSpacer() { - return new TE(e, !1); + return new CE(e, !1); }, domEventHandlers: Object.assign(Object.assign({}, s), { click: (a, o, l) => { if (s.click && s.click(a, o, l)) @@ -12579,10 +12579,10 @@ function POe(t = {}) { return h ? (a.dispatch({ effects: Fu.of(h) }), !0) : !1; } }) }), - FK() + zK() ]; } -const $Oe = /* @__PURE__ */ ht.baseTheme({ +const BOe = /* @__PURE__ */ ht.baseTheme({ ".cm-foldPlaceholder": { backgroundColor: "#eee", border: "1px solid #ddd", @@ -12597,7 +12597,7 @@ const $Oe = /* @__PURE__ */ ht.baseTheme({ cursor: "pointer" } }); -class FS { +class zS { constructor(e, r) { this.specs = e; let n; @@ -12606,7 +12606,7 @@ class FS { return (n || (n = /* @__PURE__ */ Object.create(null)))["." + l] = o, l; } const s = typeof r.all == "string" ? r.all : r.all ? i(r.all) : void 0, a = r.scope; - this.scope = a instanceof Mo ? (o) => o.prop(Ed) == a.data : a ? (o) => o == a : void 0, this.style = AK(e.map((o) => ({ + this.scope = a instanceof Mo ? (o) => o.prop(Ed) == a.data : a ? (o) => o == a : void 0, this.style = LK(e.map((o) => ({ tag: o.tag, class: o.class || i(Object.assign({}, o, { tag: null })) })), { @@ -12614,28 +12614,28 @@ class FS { }).style, this.module = n ? new Iu(n) : null, this.themeType = r.themeType; } static define(e, r) { - return new FS(e, r || {}); + return new zS(e, r || {}); } } -const m7 = /* @__PURE__ */ _t.define(), VK = /* @__PURE__ */ _t.define({ +const v7 = /* @__PURE__ */ _t.define(), UK = /* @__PURE__ */ _t.define({ combine(t) { return t.length ? [t[0]] : null; } }); -function CE(t) { - let e = t.facet(m7); - return e.length ? e : t.facet(VK); +function EE(t) { + let e = t.facet(v7); + return e.length ? e : t.facet(UK); } -function UK(t, e) { - let r = [FOe], n; - return t instanceof FS && (t.module && r.push(ht.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(VK.of(t)) : n ? r.push(m7.computeN([ht.darkTheme], (i) => i.facet(ht.darkTheme) == (n == "dark") ? [t] : [])) : r.push(m7.of(t)), r; +function qK(t, e) { + let r = [zOe], n; + return t instanceof zS && (t.module && r.push(ht.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(UK.of(t)) : n ? r.push(v7.computeN([ht.darkTheme], (i) => i.facet(ht.darkTheme) == (n == "dark") ? [t] : [])) : r.push(v7.of(t)), r; } -class BOe { +class FOe { constructor(e) { - this.markCache = /* @__PURE__ */ Object.create(null), this.tree = fn(e.state), this.decorations = this.buildDeco(e, CE(e.state)); + this.markCache = /* @__PURE__ */ Object.create(null), this.tree = fn(e.state), this.decorations = this.buildDeco(e, EE(e.state)); } update(e) { - let r = fn(e.state), n = CE(e.state), i = n != CE(e.startState); + let r = fn(e.state), n = EE(e.state), i = n != EE(e.startState); r.length < e.view.viewport.to && !i && r.type == this.tree.type ? this.decorations = this.decorations.map(e.changes) : (r != this.tree || e.viewportChanged || i) && (this.tree = r, this.decorations = this.buildDeco(e.view, n)); } buildDeco(e, r) { @@ -12643,15 +12643,15 @@ class BOe { return Et.none; let n = new Hi(); for (let { from: i, to: s } of e.visibleRanges) - lOe(this.tree, r, (a, o, l) => { + cOe(this.tree, r, (a, o, l) => { n.add(a, o, this.markCache[l] || (this.markCache[l] = Et.mark({ class: l }))); }, i, s); return n.finish(); } } -const FOe = /* @__PURE__ */ zl.high(/* @__PURE__ */ an.fromClass(BOe, { +const zOe = /* @__PURE__ */ zl.high(/* @__PURE__ */ an.fromClass(FOe, { decorations: (t) => t.decorations -})), qK = /* @__PURE__ */ FS.define([ +})), QK = /* @__PURE__ */ zS.define([ { tag: Se.meta, color: "#404740" @@ -12729,31 +12729,31 @@ const FOe = /* @__PURE__ */ zl.high(/* @__PURE__ */ an.fromClass(BOe, { tag: Se.invalid, color: "#f00" } -]), zOe = /* @__PURE__ */ ht.baseTheme({ +]), VOe = /* @__PURE__ */ ht.baseTheme({ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" }, "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" } -}), QK = 1e4, YK = "()[]{}", WK = /* @__PURE__ */ _t.define({ +}), YK = 1e4, WK = "()[]{}", GK = /* @__PURE__ */ _t.define({ combine(t) { return qc(t, { afterCursor: !0, - brackets: YK, - maxScanDistance: QK, - renderMatch: qOe + brackets: WK, + maxScanDistance: YK, + renderMatch: QOe }); } -}), VOe = /* @__PURE__ */ Et.mark({ class: "cm-matchingBracket" }), UOe = /* @__PURE__ */ Et.mark({ class: "cm-nonmatchingBracket" }); -function qOe(t) { - let e = [], r = t.matched ? VOe : UOe; +}), UOe = /* @__PURE__ */ Et.mark({ class: "cm-matchingBracket" }), qOe = /* @__PURE__ */ Et.mark({ class: "cm-nonmatchingBracket" }); +function QOe(t) { + let e = [], r = t.matched ? UOe : qOe; return e.push(r.range(t.start.from, t.start.to)), t.end && e.push(r.range(t.end.from, t.end.to)), e; } -const QOe = /* @__PURE__ */ $n.define({ +const YOe = /* @__PURE__ */ $n.define({ create() { return Et.none; }, update(t, e) { if (!e.docChanged && !e.selection) return t; - let r = [], n = e.state.facet(WK); + let r = [], n = e.state.facet(GK); for (let i of e.state.selection.ranges) { if (!i.empty) continue; @@ -12763,15 +12763,15 @@ const QOe = /* @__PURE__ */ $n.define({ return Et.set(r, !0); }, provide: (t) => ht.decorations.from(t) -}), YOe = [ - QOe, - zOe +}), WOe = [ + YOe, + VOe ]; -function WOe(t = {}) { - return [WK.of(t), YOe]; +function GOe(t = {}) { + return [GK.of(t), WOe]; } -const GK = /* @__PURE__ */ new lr(); -function v7(t, e, r) { +const HK = /* @__PURE__ */ new lr(); +function y7(t, e, r) { let n = t.prop(e < 0 ? lr.openedBy : lr.closedBy); if (n) return n; @@ -12782,35 +12782,35 @@ function v7(t, e, r) { } return null; } -function y7(t) { - let e = t.type.prop(GK); +function b7(t) { + let e = t.type.prop(HK); return e ? e(t.node) : t; } function mc(t, e, r, n = {}) { - let i = n.maxScanDistance || QK, s = n.brackets || YK, a = fn(t), o = a.resolveInner(e, r); + let i = n.maxScanDistance || YK, s = n.brackets || WK, a = fn(t), o = a.resolveInner(e, r); for (let l = o; l; l = l.parent) { - let u = v7(l.type, r, s); + let u = y7(l.type, r, s); if (u && l.from < l.to) { - let h = y7(l); + let h = b7(l); if (h && (r > 0 ? e >= h.from && e < h.to : e > h.from && e <= h.to)) - return GOe(t, e, r, l, h, u, s); + return HOe(t, e, r, l, h, u, s); } } - return HOe(t, e, r, a, o.type, i, s); + return XOe(t, e, r, a, o.type, i, s); } -function GOe(t, e, r, n, i, s, a) { +function HOe(t, e, r, n, i, s, a) { let o = n.parent, l = { from: i.from, to: i.to }, u = 0, h = o == null ? void 0 : o.cursor(); if (h && (r < 0 ? h.childBefore(n.from) : h.childAfter(n.to))) do if (r < 0 ? h.to <= n.from : h.from >= n.to) { if (u == 0 && s.indexOf(h.type.name) > -1 && h.from < h.to) { - let f = y7(h); + let f = b7(h); return { start: l, end: f ? { from: f.from, to: f.to } : void 0, matched: !0 }; - } else if (v7(h.type, r, a)) + } else if (y7(h.type, r, a)) u++; - else if (v7(h.type, -r, a)) { + else if (y7(h.type, -r, a)) { if (u == 0) { - let f = y7(h); + let f = b7(h); return { start: l, end: f && f.from < f.to ? { from: f.from, to: f.to } : void 0, @@ -12823,7 +12823,7 @@ function GOe(t, e, r, n, i, s, a) { while (r < 0 ? h.prevSibling() : h.nextSibling()); return { start: l, matched: !1 }; } -function HOe(t, e, r, n, i, s, a) { +function XOe(t, e, r, n, i, s, a) { let o = r < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), l = a.indexOf(o); if (l < 0 || l % 2 == 0 != r > 0) return null; @@ -12847,7 +12847,7 @@ function HOe(t, e, r, n, i, s, a) { } return h.done ? { start: u, matched: !1 } : null; } -const XOe = /* @__PURE__ */ Object.create(null), lF = [Li.none], cF = [], uF = /* @__PURE__ */ Object.create(null), ZOe = /* @__PURE__ */ Object.create(null); +const ZOe = /* @__PURE__ */ Object.create(null), lF = [Ri.none], cF = [], uF = /* @__PURE__ */ Object.create(null), jOe = /* @__PURE__ */ Object.create(null); for (let [t, e] of [ ["variable", "variableName"], ["variable-2", "variableName.special"], @@ -12862,17 +12862,17 @@ for (let [t, e] of [ ["header", "heading"], ["property", "propertyName"] ]) - ZOe[t] = /* @__PURE__ */ jOe(XOe, e); -function EE(t, e) { + jOe[t] = /* @__PURE__ */ KOe(ZOe, e); +function _E(t, e) { cF.indexOf(t) > -1 || (cF.push(t), console.warn(e)); } -function jOe(t, e) { +function KOe(t, e) { let r = []; for (let o of e.split(" ")) { let l = []; for (let u of o.split(".")) { let h = t[u] || Se[u]; - h ? typeof h == "function" ? l.length ? l = l.map(h) : EE(u, `Modifier ${u} used at start of tag`) : l.length ? EE(u, `Tag ${u} used as modifier`) : l = Array.isArray(h) ? h : [h] : EE(u, `Unknown highlighting tag ${u}`); + h ? typeof h == "function" ? l.length ? l = l.map(h) : _E(u, `Modifier ${u} used at start of tag`) : l.length ? _E(u, `Tag ${u} used as modifier`) : l = Array.isArray(h) ? h : [h] : _E(u, `Unknown highlighting tag ${u}`); } for (let u of l) r.push(u); @@ -12882,18 +12882,18 @@ function jOe(t, e) { let n = e.replace(/ /g, "_"), i = n + " " + r.map((o) => o.id), s = uF[i]; if (s) return s.id; - let a = uF[i] = Li.define({ + let a = uF[i] = Ri.define({ id: lF.length, name: n, props: [N1({ [n]: r })] }); return lF.push(a), a.id; } -const KOe = (t) => { - let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = JR(t.state, r.from); - return n.line ? JOe(t) : n.block ? t4e(t) : !1; +const JOe = (t) => { + let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = eM(t.state, r.from); + return n.line ? e4e(t) : n.block ? r4e(t) : !1; }; -function KR(t, e) { +function JR(t, e) { return ({ state: r, dispatch: n }) => { if (r.readOnly) return !1; @@ -12901,13 +12901,13 @@ function KR(t, e) { return i ? (n(r.update(i)), !0) : !1; }; } -const JOe = /* @__PURE__ */ KR(i4e, 0), e4e = /* @__PURE__ */ KR(HK, 0), t4e = /* @__PURE__ */ KR((t, e) => HK(t, e, n4e(e)), 0); -function JR(t, e) { +const e4e = /* @__PURE__ */ JR(s4e, 0), t4e = /* @__PURE__ */ JR(XK, 0), r4e = /* @__PURE__ */ JR((t, e) => XK(t, e, i4e(e)), 0); +function eM(t, e) { let r = t.languageDataAt("commentTokens", e); return r.length ? r[0] : {}; } const Rm = 50; -function r4e(t, { open: e, close: r }, n, i) { +function n4e(t, { open: e, close: r }, n, i) { let s = t.sliceDoc(n - Rm, n), a = t.sliceDoc(i, i + Rm), o = /\s*$/.exec(s)[0].length, l = /^\s*/.exec(a)[0].length, u = s.length - o; if (s.slice(u - e.length, u) == e && a.slice(l, l + r.length) == r) return { @@ -12928,7 +12928,7 @@ function r4e(t, { open: e, close: r }, n, i) { } } : null; } -function n4e(t) { +function i4e(t) { let e = []; for (let r of t.selection.ranges) { let n = t.doc.lineAt(r.from), i = r.to <= n.to ? n : t.doc.lineAt(r.to), s = e.length - 1; @@ -12936,11 +12936,11 @@ function n4e(t) { } return e; } -function HK(t, e, r = e.selection.ranges) { - let n = r.map((s) => JR(e, s.from).block); +function XK(t, e, r = e.selection.ranges) { + let n = r.map((s) => eM(e, s.from).block); if (!n.every((s) => s)) return null; - let i = r.map((s, a) => r4e(e, n[a], s.from, s.to)); + let i = r.map((s, a) => n4e(e, n[a], s.from, s.to)); if (t != 2 && !i.every((s) => s)) return { changes: e.changes(r.map((s, a) => i[a] ? [] : [{ from: s.from, insert: n[a].open + " " }, { from: s.to, insert: " " + n[a].close }])) }; if (t != 1 && i.some((s) => s)) { @@ -12954,10 +12954,10 @@ function HK(t, e, r = e.selection.ranges) { } return null; } -function i4e(t, e, r = e.selection.ranges) { +function s4e(t, e, r = e.selection.ranges) { let n = [], i = -1; for (let { from: s, to: a } of r) { - let o = n.length, l = 1e9, u = JR(e, s).line; + let o = n.length, l = 1e9, u = eM(e, s).line; if (!!u) { for (let h = s; h <= a; ) { let f = e.doc.lineAt(h); @@ -12991,7 +12991,7 @@ function i4e(t, e, r = e.selection.ranges) { } return null; } -const b7 = /* @__PURE__ */ Vl.define(), s4e = /* @__PURE__ */ Vl.define(), a4e = /* @__PURE__ */ _t.define(), XK = /* @__PURE__ */ _t.define({ +const x7 = /* @__PURE__ */ Vl.define(), a4e = /* @__PURE__ */ Vl.define(), o4e = /* @__PURE__ */ _t.define(), ZK = /* @__PURE__ */ _t.define({ combine(t) { return qc(t, { minDepth: 100, @@ -13003,59 +13003,59 @@ const b7 = /* @__PURE__ */ Vl.define(), s4e = /* @__PURE__ */ Vl.define(), a4e = joinToEvent: (e, r) => (n, i) => e(n, i) || r(n, i) }); } -}), ZK = /* @__PURE__ */ $n.define({ +}), jK = /* @__PURE__ */ $n.define({ create() { return vc.empty; }, update(t, e) { - let r = e.state.facet(XK), n = e.annotation(b7); + let r = e.state.facet(ZK), n = e.annotation(x7); if (n) { - let l = Ma.fromTransaction(e, n.selection), u = n.side, h = u == 0 ? t.undone : t.done; - return l ? h = R5(h, h.length, r.minDepth, l) : h = JK(h, e.startState.selection), new vc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); + let l = Da.fromTransaction(e, n.selection), u = n.side, h = u == 0 ? t.undone : t.done; + return l ? h = R5(h, h.length, r.minDepth, l) : h = eJ(h, e.startState.selection), new vc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); } - let i = e.annotation(s4e); + let i = e.annotation(a4e); if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(fi.addToHistory) === !1) return e.changes.empty ? t : t.addMapping(e.changes.desc); - let s = Ma.fromTransaction(e), a = e.annotation(fi.time), o = e.annotation(fi.userEvent); + let s = Da.fromTransaction(e), a = e.annotation(fi.time), o = e.annotation(fi.userEvent); return s ? t = t.addChanges(s, a, o, r, e) : e.selection && (t = t.addSelection(e.startState.selection, a, o, r.newGroupDelay)), (i == "full" || i == "after") && (t = t.isolate()), t; }, toJSON(t) { return { done: t.done.map((e) => e.toJSON()), undone: t.undone.map((e) => e.toJSON()) }; }, fromJSON(t) { - return new vc(t.done.map(Ma.fromJSON), t.undone.map(Ma.fromJSON)); + return new vc(t.done.map(Da.fromJSON), t.undone.map(Da.fromJSON)); } }); -function eM(t = {}) { +function tM(t = {}) { return [ - ZK, - XK.of(t), + jK, + ZK.of(t), ht.domEventHandlers({ beforeinput(e, r) { - let n = e.inputType == "historyUndo" ? jK : e.inputType == "historyRedo" ? L5 : null; + let n = e.inputType == "historyUndo" ? KK : e.inputType == "historyRedo" ? L5 : null; return n ? (e.preventDefault(), n(r)) : !1; } }) ]; } -function zS(t, e) { +function VS(t, e) { return function({ state: r, dispatch: n }) { if (!e && r.readOnly) return !1; - let i = r.field(ZK, !1); + let i = r.field(jK, !1); if (!i) return !1; let s = i.pop(t, r, e); return s ? (n(s), !0) : !1; }; } -const jK = /* @__PURE__ */ zS(0, !1), L5 = /* @__PURE__ */ zS(1, !1), o4e = /* @__PURE__ */ zS(0, !0), l4e = /* @__PURE__ */ zS(1, !0); -class Ma { +const KK = /* @__PURE__ */ VS(0, !1), L5 = /* @__PURE__ */ VS(1, !1), l4e = /* @__PURE__ */ VS(0, !0), c4e = /* @__PURE__ */ VS(1, !0); +class Da { constructor(e, r, n, i, s) { this.changes = e, this.effects = r, this.mapped = n, this.startSelection = i, this.selectionsAfter = s; } setSelAfter(e) { - return new Ma(this.changes, this.effects, this.mapped, this.startSelection, e); + return new Da(this.changes, this.effects, this.mapped, this.startSelection, e); } toJSON() { var e, r, n; @@ -13067,25 +13067,25 @@ class Ma { }; } static fromJSON(e) { - return new Ma(e.changes && ai.fromJSON(e.changes), [], e.mapped && _c.fromJSON(e.mapped), e.startSelection && Ve.fromJSON(e.startSelection), e.selectionsAfter.map(Ve.fromJSON)); + return new Da(e.changes && ai.fromJSON(e.changes), [], e.mapped && _c.fromJSON(e.mapped), e.startSelection && Ve.fromJSON(e.startSelection), e.selectionsAfter.map(Ve.fromJSON)); } static fromTransaction(e, r) { let n = Do; - for (let i of e.startState.facet(a4e)) { + for (let i of e.startState.facet(o4e)) { let s = i(e); s.length && (n = n.concat(s)); } - return !n.length && e.changes.empty ? null : new Ma(e.changes.invert(e.startState.doc), n, void 0, r || e.startState.selection, Do); + return !n.length && e.changes.empty ? null : new Da(e.changes.invert(e.startState.doc), n, void 0, r || e.startState.selection, Do); } static selection(e) { - return new Ma(void 0, Do, void 0, void 0, e); + return new Da(void 0, Do, void 0, void 0, e); } } function R5(t, e, r, n) { let i = e + 1 > r + 20 ? e - r - 1 : 0, s = t.slice(i, e); return s.push(n), s; } -function c4e(t, e) { +function u4e(t, e) { let r = [], n = !1; return t.iterChangedRanges((i, s) => r.push(i, s)), e.iterChangedRanges((i, s, a, o) => { for (let l = 0; l < r.length; ) { @@ -13094,46 +13094,46 @@ function c4e(t, e) { } }), n; } -function u4e(t, e) { +function h4e(t, e) { return t.ranges.length == e.ranges.length && t.ranges.filter((r, n) => r.empty != e.ranges[n].empty).length === 0; } -function KK(t, e) { +function JK(t, e) { return t.length ? e.length ? t.concat(e) : t : e; } -const Do = [], h4e = 200; -function JK(t, e) { +const Do = [], f4e = 200; +function eJ(t, e) { if (t.length) { - let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - h4e)); + let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - f4e)); return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), R5(t, t.length - 1, 1e9, r.setSelAfter(n))); } else - return [Ma.selection([e])]; + return [Da.selection([e])]; } -function f4e(t) { +function d4e(t) { let e = t[t.length - 1], r = t.slice(); return r[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), r; } -function _E(t, e) { +function AE(t, e) { if (!t.length) return t; let r = t.length, n = Do; for (; r; ) { - let i = d4e(t[r - 1], e, n); + let i = p4e(t[r - 1], e, n); if (i.changes && !i.changes.empty || i.effects.length) { let s = t.slice(0, r); return s[r - 1] = i, s; } else e = i.mapped, r--, n = i.selectionsAfter; } - return n.length ? [Ma.selection(n)] : Do; + return n.length ? [Da.selection(n)] : Do; } -function d4e(t, e, r) { - let n = KK(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : Do, r); +function p4e(t, e, r) { + let n = JK(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : Do, r); if (!t.changes) - return Ma.selection(n); + return Da.selection(n); let i = t.changes.map(e), s = e.mapDesc(t.changes, !0), a = t.mapped ? t.mapped.composeDesc(s) : s; - return new Ma(i, Zt.mapEffects(t.effects, e), a, t.startSelection.map(s), n); + return new Da(i, Zt.mapEffects(t.effects, e), a, t.startSelection.map(s), n); } -const p4e = /^(input\.type|delete)($|\.)/; +const g4e = /^(input\.type|delete)($|\.)/; class vc { constructor(e, r, n = 0, i = void 0) { this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = i; @@ -13143,14 +13143,14 @@ class vc { } addChanges(e, r, n, i, s) { let a = this.done, o = a[a.length - 1]; - return o && o.changes && !o.changes.empty && e.changes && (!n || p4e.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, c4e(o.changes, e.changes)) || n == "input.type.compose") ? a = R5(a, a.length - 1, i.minDepth, new Ma(e.changes.compose(o.changes), KK(e.effects, o.effects), o.mapped, o.startSelection, Do)) : a = R5(a, a.length, i.minDepth, e), new vc(a, Do, r, n); + return o && o.changes && !o.changes.empty && e.changes && (!n || g4e.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, u4e(o.changes, e.changes)) || n == "input.type.compose") ? a = R5(a, a.length - 1, i.minDepth, new Da(e.changes.compose(o.changes), JK(e.effects, o.effects), o.mapped, o.startSelection, Do)) : a = R5(a, a.length, i.minDepth, e), new vc(a, Do, r, n); } addSelection(e, r, n, i) { let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Do; - return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && u4e(s[s.length - 1], e) ? this : new vc(JK(this.done, e), this.undone, r, n); + return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && h4e(s[s.length - 1], e) ? this : new vc(eJ(this.done, e), this.undone, r, n); } addMapping(e) { - return new vc(_E(this.done, e), _E(this.undone, e), this.prevTime, this.prevUserEvent); + return new vc(AE(this.done, e), AE(this.undone, e), this.prevTime, this.prevUserEvent); } pop(e, r, n) { let i = e == 0 ? this.done : this.undone; @@ -13160,17 +13160,17 @@ class vc { if (n && s.selectionsAfter.length) return r.update({ selection: s.selectionsAfter[s.selectionsAfter.length - 1], - annotations: b7.of({ side: e, rest: f4e(i), selection: a }), + annotations: x7.of({ side: e, rest: d4e(i), selection: a }), userEvent: e == 0 ? "select.undo" : "select.redo", scrollIntoView: !0 }); if (s.changes) { let o = i.length == 1 ? Do : i.slice(0, i.length - 1); - return s.mapped && (o = _E(o, s.mapped)), r.update({ + return s.mapped && (o = AE(o, s.mapped)), r.update({ changes: s.changes, selection: s.startSelection, effects: s.effects, - annotations: b7.of({ side: e, rest: o, selection: a }), + annotations: x7.of({ side: e, rest: o, selection: a }), filter: !1, userEvent: e == 0 ? "undo" : "redo", scrollIntoView: !0 @@ -13180,12 +13180,12 @@ class vc { } } vc.empty = /* @__PURE__ */ new vc(Do, Do); -const eJ = [ - { key: "Mod-z", run: jK, preventDefault: !0 }, +const tJ = [ + { key: "Mod-z", run: KK, preventDefault: !0 }, { key: "Mod-y", mac: "Mod-Shift-z", run: L5, preventDefault: !0 }, { linux: "Ctrl-Shift-z", run: L5, preventDefault: !0 }, - { key: "Mod-u", run: o4e, preventDefault: !0 }, - { key: "Alt-u", mac: "Mod-Shift-u", run: l4e, preventDefault: !0 } + { key: "Mod-u", run: l4e, preventDefault: !0 }, + { key: "Alt-u", mac: "Mod-Shift-u", run: c4e, preventDefault: !0 } ]; function P1(t, e) { return Ve.create(t.ranges.map(e), t.mainIndex); @@ -13197,48 +13197,48 @@ function Ul({ state: t, dispatch: e }, r) { let n = P1(t.selection, r); return n.eq(t.selection) ? !1 : (e(Qc(t, n)), !0); } -function VS(t, e) { +function US(t, e) { return Ve.cursor(e ? t.to : t.from); } -function tJ(t, e) { - return Ul(t, (r) => r.empty ? t.moveByChar(r, e) : VS(r, e)); +function rJ(t, e) { + return Ul(t, (r) => r.empty ? t.moveByChar(r, e) : US(r, e)); } function Us(t) { return t.textDirectionAt(t.state.selection.main.head) == In.LTR; } -const rJ = (t) => tJ(t, !Us(t)), nJ = (t) => tJ(t, Us(t)); -function iJ(t, e) { - return Ul(t, (r) => r.empty ? t.moveByGroup(r, e) : VS(r, e)); +const nJ = (t) => rJ(t, !Us(t)), iJ = (t) => rJ(t, Us(t)); +function sJ(t, e) { + return Ul(t, (r) => r.empty ? t.moveByGroup(r, e) : US(r, e)); } -const g4e = (t) => iJ(t, !Us(t)), m4e = (t) => iJ(t, Us(t)); -function v4e(t, e, r) { +const m4e = (t) => sJ(t, !Us(t)), v4e = (t) => sJ(t, Us(t)); +function y4e(t, e, r) { if (e.type.prop(r)) return !0; let n = e.to - e.from; return n && (n > 2 || /[^\s,.;:]/.test(t.sliceDoc(e.from, e.to))) || e.firstChild; } -function US(t, e, r) { +function qS(t, e, r) { let n = fn(t).resolveInner(e.head), i = r ? lr.closedBy : lr.openedBy; for (let l = e.head; ; ) { let u = r ? n.childAfter(l) : n.childBefore(l); if (!u) break; - v4e(t, u, i) ? n = u : l = r ? u.to : u.from; + y4e(t, u, i) ? n = u : l = r ? u.to : u.from; } let s = n.type.prop(i), a, o; return s && (a = r ? mc(t, n.from, 1) : mc(t, n.to, -1)) && a.matched ? o = r ? a.end.to : a.end.from : o = r ? n.to : n.from, Ve.cursor(o, r ? -1 : 1); } -const y4e = (t) => Ul(t, (e) => US(t.state, e, !Us(t))), b4e = (t) => Ul(t, (e) => US(t.state, e, Us(t))); -function sJ(t, e) { +const b4e = (t) => Ul(t, (e) => qS(t.state, e, !Us(t))), x4e = (t) => Ul(t, (e) => qS(t.state, e, Us(t))); +function aJ(t, e) { return Ul(t, (r) => { if (!r.empty) - return VS(r, e); + return US(r, e); let n = t.moveVertically(r, e); return n.head != r.head ? n : t.moveToLineBoundary(r, e); }); } -const aJ = (t) => sJ(t, !1), oJ = (t) => sJ(t, !0); -function lJ(t) { +const oJ = (t) => aJ(t, !1), lJ = (t) => aJ(t, !0); +function cJ(t) { let e = t.scrollDOM.clientHeight < t.scrollDOM.scrollHeight - 2, r = 0, n = 0, i; if (e) { for (let s of t.state.facet(ht.scrollMargins)) { @@ -13255,8 +13255,8 @@ function lJ(t) { height: Math.max(t.defaultLineHeight, i - 5) }; } -function cJ(t, e) { - let r = lJ(t), { state: n } = t, i = P1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : VS(a, e)); +function uJ(t, e) { + let r = cJ(t), { state: n } = t, i = P1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : US(a, e)); if (i.eq(n.selection)) return !1; let s; @@ -13266,7 +13266,7 @@ function cJ(t, e) { } return t.dispatch(Qc(n, i), { effects: s }), !0; } -const hF = (t) => cJ(t, !1), x7 = (t) => cJ(t, !0); +const hF = (t) => uJ(t, !1), w7 = (t) => uJ(t, !0); function $f(t, e, r) { let n = t.lineBlockAt(e.head), i = t.moveToLineBoundary(e, r); if (i.head == e.head && i.head != (r ? n.to : n.from) && (i = t.moveToLineBoundary(e, r, !1)), !r && i.head == n.from && n.length) { @@ -13275,8 +13275,8 @@ function $f(t, e, r) { } return i; } -const x4e = (t) => Ul(t, (e) => $f(t, e, !0)), w4e = (t) => Ul(t, (e) => $f(t, e, !1)), O4e = (t) => Ul(t, (e) => $f(t, e, !Us(t))), k4e = (t) => Ul(t, (e) => $f(t, e, Us(t))), S4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from, 1)), T4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to, -1)); -function C4e(t, e, r) { +const w4e = (t) => Ul(t, (e) => $f(t, e, !0)), O4e = (t) => Ul(t, (e) => $f(t, e, !1)), k4e = (t) => Ul(t, (e) => $f(t, e, !Us(t))), S4e = (t) => Ul(t, (e) => $f(t, e, Us(t))), T4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from, 1)), C4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to, -1)); +function E4e(t, e, r) { let n = !1, i = P1(t.selection, (s) => { let a = mc(t, s.head, -1) || mc(t, s.head, 1) || s.head > 0 && mc(t, s.head - 1, 1) || s.head < t.doc.length && mc(t, s.head + 1, -1); if (!a || !a.end) @@ -13287,7 +13287,7 @@ function C4e(t, e, r) { }); return n ? (e(Qc(t, i)), !0) : !1; } -const E4e = ({ state: t, dispatch: e }) => C4e(t, e, !1); +const _4e = ({ state: t, dispatch: e }) => E4e(t, e, !1); function tl(t, e) { let r = P1(t.state.selection, (n) => { let i = e(n); @@ -13295,25 +13295,25 @@ function tl(t, e) { }); return r.eq(t.state.selection) ? !1 : (t.dispatch(Qc(t.state, r)), !0); } -function uJ(t, e) { +function hJ(t, e) { return tl(t, (r) => t.moveByChar(r, e)); } -const hJ = (t) => uJ(t, !Us(t)), fJ = (t) => uJ(t, Us(t)); -function dJ(t, e) { +const fJ = (t) => hJ(t, !Us(t)), dJ = (t) => hJ(t, Us(t)); +function pJ(t, e) { return tl(t, (r) => t.moveByGroup(r, e)); } -const _4e = (t) => dJ(t, !Us(t)), A4e = (t) => dJ(t, Us(t)), L4e = (t) => tl(t, (e) => US(t.state, e, !Us(t))), R4e = (t) => tl(t, (e) => US(t.state, e, Us(t))); -function pJ(t, e) { +const A4e = (t) => pJ(t, !Us(t)), L4e = (t) => pJ(t, Us(t)), R4e = (t) => tl(t, (e) => qS(t.state, e, !Us(t))), M4e = (t) => tl(t, (e) => qS(t.state, e, Us(t))); +function gJ(t, e) { return tl(t, (r) => t.moveVertically(r, e)); } -const gJ = (t) => pJ(t, !1), mJ = (t) => pJ(t, !0); -function vJ(t, e) { - return tl(t, (r) => t.moveVertically(r, e, lJ(t).height)); +const mJ = (t) => gJ(t, !1), vJ = (t) => gJ(t, !0); +function yJ(t, e) { + return tl(t, (r) => t.moveVertically(r, e, cJ(t).height)); } -const fF = (t) => vJ(t, !1), dF = (t) => vJ(t, !0), M4e = (t) => tl(t, (e) => $f(t, e, !0)), D4e = (t) => tl(t, (e) => $f(t, e, !1)), N4e = (t) => tl(t, (e) => $f(t, e, !Us(t))), I4e = (t) => tl(t, (e) => $f(t, e, Us(t))), P4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from)), $4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to)), pF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: 0 })), !0), gF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.doc.length })), !0), mF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: 0 })), !0), vF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), B4e = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), F4e = ({ state: t, dispatch: e }) => { - let r = qS(t).map(({ from: n, to: i }) => Ve.range(n, Math.min(i + 1, t.doc.length))); +const fF = (t) => yJ(t, !1), dF = (t) => yJ(t, !0), D4e = (t) => tl(t, (e) => $f(t, e, !0)), N4e = (t) => tl(t, (e) => $f(t, e, !1)), I4e = (t) => tl(t, (e) => $f(t, e, !Us(t))), P4e = (t) => tl(t, (e) => $f(t, e, Us(t))), $4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from)), B4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to)), pF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: 0 })), !0), gF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.doc.length })), !0), mF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: 0 })), !0), vF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), F4e = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), z4e = ({ state: t, dispatch: e }) => { + let r = QS(t).map(({ from: n, to: i }) => Ve.range(n, Math.min(i + 1, t.doc.length))); return e(t.update({ selection: Ve.create(r), userEvent: "select" })), !0; -}, z4e = ({ state: t, dispatch: e }) => { +}, V4e = ({ state: t, dispatch: e }) => { let r = P1(t.selection, (n) => { var i; let s = fn(t).resolveStack(n.from, 1); @@ -13325,7 +13325,7 @@ const fF = (t) => vJ(t, !1), dF = (t) => vJ(t, !0), M4e = (t) => tl(t, (e) => $f return n; }); return e(Qc(t, r)), !0; -}, V4e = ({ state: t, dispatch: e }) => { +}, U4e = ({ state: t, dispatch: e }) => { let r = t.selection, n = null; return r.ranges.length > 1 ? n = Ve.create([r.main]) : r.main.empty || (n = Ve.create([Ve.cursor(r.main.head)])), n ? (e(Qc(t, n)), !0) : !1; }; @@ -13355,7 +13355,7 @@ function Cw(t, e, r) { }); return e; } -const yJ = (t, e) => Xb(t, (r) => { +const bJ = (t, e) => Xb(t, (r) => { let n = r.from, { state: i } = t, s = i.doc.lineAt(n), a, o; if (!e && n > s.from && n < s.from + 200 && !/[^ \t]/.test(a = s.text.slice(0, n - s.from))) { if (a[a.length - 1] == " ") @@ -13367,7 +13367,7 @@ const yJ = (t, e) => Xb(t, (r) => { } else o = ls(s.text, n - s.from, e, e) + s.from, o == n && s.number != (e ? i.doc.lines : 1) ? o += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(o - s.from, n - s.from)) && (o = ls(s.text, o - s.from, !1, !1) + s.from); return o; -}), w7 = (t) => yJ(t, !1), bJ = (t) => yJ(t, !0), xJ = (t, e) => Xb(t, (r) => { +}), O7 = (t) => bJ(t, !1), xJ = (t) => bJ(t, !0), wJ = (t, e) => Xb(t, (r) => { let n = r.head, { state: i } = t, s = i.doc.lineAt(n), a = i.charCategorizer(n); for (let o = null; ; ) { if (n == (e ? s.to : s.from)) { @@ -13380,16 +13380,16 @@ const yJ = (t, e) => Xb(t, (r) => { (u != " " || n != r.head) && (o = h), n = l; } return n; -}), wJ = (t) => xJ(t, !1), U4e = (t) => xJ(t, !0), q4e = (t) => Xb(t, (e) => { +}), OJ = (t) => wJ(t, !1), q4e = (t) => wJ(t, !0), Q4e = (t) => Xb(t, (e) => { let r = t.lineBlockAt(e.head).to; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), Q4e = (t) => Xb(t, (e) => { +}), Y4e = (t) => Xb(t, (e) => { let r = t.moveToLineBoundary(e, !1).head; return e.head > r ? r : Math.max(0, e.head - 1); -}), Y4e = (t) => Xb(t, (e) => { +}), W4e = (t) => Xb(t, (e) => { let r = t.moveToLineBoundary(e, !0).head; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), W4e = ({ state: t, dispatch: e }) => { +}), G4e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => ({ @@ -13397,7 +13397,7 @@ const yJ = (t, e) => Xb(t, (r) => { range: Ve.cursor(n.from) })); return e(t.update(r, { scrollIntoView: !0, userEvent: "input" })), !0; -}, G4e = ({ state: t, dispatch: e }) => { +}, H4e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => { @@ -13411,7 +13411,7 @@ const yJ = (t, e) => Xb(t, (r) => { }); return r.changes.empty ? !1 : (e(t.update(r, { scrollIntoView: !0, userEvent: "move.character" })), !0); }; -function qS(t) { +function QS(t) { let e = [], r = -1; for (let n of t.selection.ranges) { let i = t.doc.lineAt(n.from), s = t.doc.lineAt(n.to); @@ -13424,11 +13424,11 @@ function qS(t) { } return e; } -function OJ(t, e, r) { +function kJ(t, e, r) { if (t.readOnly) return !1; let n = [], i = []; - for (let s of qS(t)) { + for (let s of QS(t)) { if (r ? s.to == t.doc.length : s.from == 0) continue; let a = t.doc.lineAt(r ? s.to + 1 : s.from - 1), o = a.length + 1; @@ -13449,36 +13449,36 @@ function OJ(t, e, r) { userEvent: "move.line" })), !0) : !1; } -const H4e = ({ state: t, dispatch: e }) => OJ(t, e, !1), X4e = ({ state: t, dispatch: e }) => OJ(t, e, !0); -function kJ(t, e, r) { +const X4e = ({ state: t, dispatch: e }) => kJ(t, e, !1), Z4e = ({ state: t, dispatch: e }) => kJ(t, e, !0); +function SJ(t, e, r) { if (t.readOnly) return !1; let n = []; - for (let i of qS(t)) + for (let i of QS(t)) r ? n.push({ from: i.from, insert: t.doc.slice(i.from, i.to) + t.lineBreak }) : n.push({ from: i.to, insert: t.lineBreak + t.doc.slice(i.from, i.to) }); return e(t.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0; } -const Z4e = ({ state: t, dispatch: e }) => kJ(t, e, !1), j4e = ({ state: t, dispatch: e }) => kJ(t, e, !0), K4e = (t) => { +const j4e = ({ state: t, dispatch: e }) => SJ(t, e, !1), K4e = ({ state: t, dispatch: e }) => SJ(t, e, !0), J4e = (t) => { if (t.state.readOnly) return !1; - let { state: e } = t, r = e.changes(qS(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = P1(e.selection, (i) => t.moveVertically(i, !0)).map(r); + let { state: e } = t, r = e.changes(QS(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = P1(e.selection, (i) => t.moveVertically(i, !0)).map(r); return t.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0; }; -function J4e(t, e) { +function e5e(t, e) { if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1))) return { from: e, to: e }; let r = fn(t).resolveInner(e), n = r.childBefore(e), i = r.childAfter(e), s; return n && i && n.to <= e && i.from >= e && (s = n.type.prop(lr.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(n.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(n.to, i.from)) ? { from: n.to, to: i.from } : null; } -const e5e = /* @__PURE__ */ SJ(!1), t5e = /* @__PURE__ */ SJ(!0); -function SJ(t) { +const t5e = /* @__PURE__ */ TJ(!1), r5e = /* @__PURE__ */ TJ(!0); +function TJ(t) { return ({ state: e, dispatch: r }) => { if (e.readOnly) return !1; let n = e.changeByRange((i) => { - let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && J4e(e, s); + let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && e5e(e, s); t && (s = a = (a <= o.to ? o : e.doc.lineAt(a)).to); - let u = new BS(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = XR(u, s); + let u = new FS(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = ZR(u, s); for (h == null && (h = Ml(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); a < o.to && /\s/.test(o.text[a - o.from]); ) a++; l ? { from: s, to: a } = l : s > o.from && s < o.from + 100 && !/\S/.test(o.text.slice(0, s)) && (s = o.from); @@ -13491,7 +13491,7 @@ function SJ(t) { return r(e.update(n, { scrollIntoView: !0, userEvent: "input" })), !0; }; } -function tM(t, e) { +function rM(t, e) { let r = -1; return t.changeByRange((n) => { let i = []; @@ -13506,14 +13506,14 @@ function tM(t, e) { }; }); } -const r5e = ({ state: t, dispatch: e }) => { +const n5e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let r = /* @__PURE__ */ Object.create(null), n = new BS(t, { overrideIndentation: (s) => { + let r = /* @__PURE__ */ Object.create(null), n = new FS(t, { overrideIndentation: (s) => { let a = r[s]; return a == null ? -1 : a; - } }), i = tM(t, (s, a, o) => { - let l = XR(n, s.from); + } }), i = rM(t, (s, a, o) => { + let l = ZR(n, s.from); if (l == null) return; /\S/.test(s.text) || (l = 0); @@ -13521,9 +13521,9 @@ const r5e = ({ state: t, dispatch: e }) => { (u != h || o.from < s.from + u.length) && (r[s.from] = l, a.push({ from: s.from, to: s.from + u.length, insert: h })); }); return i.changes.empty || e(t.update(i, { userEvent: "indent" })), !0; -}, TJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(tM(t, (r, n) => { +}, CJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(rM(t, (r, n) => { n.push({ from: r.from, insert: t.facet(Gb) }); -}), { userEvent: "input.indent" })), !0), CJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(tM(t, (r, n) => { +}), { userEvent: "input.indent" })), !0), EJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(rM(t, (r, n) => { let i = /^\s*/.exec(r.text)[0]; if (!i) return; @@ -13531,66 +13531,66 @@ const r5e = ({ state: t, dispatch: e }) => { for (; a < i.length && a < o.length && i.charCodeAt(a) == o.charCodeAt(a); ) a++; n.push({ from: r.from + a, to: r.from + i.length, insert: o.slice(a) }); -}), { userEvent: "delete.dedent" })), !0), n5e = [ - { key: "Ctrl-b", run: rJ, shift: hJ, preventDefault: !0 }, - { key: "Ctrl-f", run: nJ, shift: fJ }, - { key: "Ctrl-p", run: aJ, shift: gJ }, - { key: "Ctrl-n", run: oJ, shift: mJ }, - { key: "Ctrl-a", run: S4e, shift: P4e }, - { key: "Ctrl-e", run: T4e, shift: $4e }, - { key: "Ctrl-d", run: bJ }, - { key: "Ctrl-h", run: w7 }, - { key: "Ctrl-k", run: q4e }, - { key: "Ctrl-Alt-h", run: wJ }, - { key: "Ctrl-o", run: W4e }, - { key: "Ctrl-t", run: G4e }, - { key: "Ctrl-v", run: x7 } -], i5e = /* @__PURE__ */ [ - { key: "ArrowLeft", run: rJ, shift: hJ, preventDefault: !0 }, - { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: g4e, shift: _4e, preventDefault: !0 }, - { mac: "Cmd-ArrowLeft", run: O4e, shift: N4e, preventDefault: !0 }, - { key: "ArrowRight", run: nJ, shift: fJ, preventDefault: !0 }, - { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: m4e, shift: A4e, preventDefault: !0 }, - { mac: "Cmd-ArrowRight", run: k4e, shift: I4e, preventDefault: !0 }, - { key: "ArrowUp", run: aJ, shift: gJ, preventDefault: !0 }, +}), { userEvent: "delete.dedent" })), !0), i5e = [ + { key: "Ctrl-b", run: nJ, shift: fJ, preventDefault: !0 }, + { key: "Ctrl-f", run: iJ, shift: dJ }, + { key: "Ctrl-p", run: oJ, shift: mJ }, + { key: "Ctrl-n", run: lJ, shift: vJ }, + { key: "Ctrl-a", run: T4e, shift: $4e }, + { key: "Ctrl-e", run: C4e, shift: B4e }, + { key: "Ctrl-d", run: xJ }, + { key: "Ctrl-h", run: O7 }, + { key: "Ctrl-k", run: Q4e }, + { key: "Ctrl-Alt-h", run: OJ }, + { key: "Ctrl-o", run: G4e }, + { key: "Ctrl-t", run: H4e }, + { key: "Ctrl-v", run: w7 } +], s5e = /* @__PURE__ */ [ + { key: "ArrowLeft", run: nJ, shift: fJ, preventDefault: !0 }, + { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: m4e, shift: A4e, preventDefault: !0 }, + { mac: "Cmd-ArrowLeft", run: k4e, shift: I4e, preventDefault: !0 }, + { key: "ArrowRight", run: iJ, shift: dJ, preventDefault: !0 }, + { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: v4e, shift: L4e, preventDefault: !0 }, + { mac: "Cmd-ArrowRight", run: S4e, shift: P4e, preventDefault: !0 }, + { key: "ArrowUp", run: oJ, shift: mJ, preventDefault: !0 }, { mac: "Cmd-ArrowUp", run: pF, shift: mF }, { mac: "Ctrl-ArrowUp", run: hF, shift: fF }, - { key: "ArrowDown", run: oJ, shift: mJ, preventDefault: !0 }, + { key: "ArrowDown", run: lJ, shift: vJ, preventDefault: !0 }, { mac: "Cmd-ArrowDown", run: gF, shift: vF }, - { mac: "Ctrl-ArrowDown", run: x7, shift: dF }, + { mac: "Ctrl-ArrowDown", run: w7, shift: dF }, { key: "PageUp", run: hF, shift: fF }, - { key: "PageDown", run: x7, shift: dF }, - { key: "Home", run: w4e, shift: D4e, preventDefault: !0 }, + { key: "PageDown", run: w7, shift: dF }, + { key: "Home", run: O4e, shift: N4e, preventDefault: !0 }, { key: "Mod-Home", run: pF, shift: mF }, - { key: "End", run: x4e, shift: M4e, preventDefault: !0 }, + { key: "End", run: w4e, shift: D4e, preventDefault: !0 }, { key: "Mod-End", run: gF, shift: vF }, - { key: "Enter", run: e5e }, - { key: "Mod-a", run: B4e }, - { key: "Backspace", run: w7, shift: w7 }, - { key: "Delete", run: bJ }, - { key: "Mod-Backspace", mac: "Alt-Backspace", run: wJ }, - { key: "Mod-Delete", mac: "Alt-Delete", run: U4e }, - { mac: "Mod-Backspace", run: Q4e }, - { mac: "Mod-Delete", run: Y4e } -].concat(/* @__PURE__ */ n5e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), EJ = /* @__PURE__ */ [ - { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: y4e, shift: L4e }, - { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: b4e, shift: R4e }, - { key: "Alt-ArrowUp", run: H4e }, - { key: "Shift-Alt-ArrowUp", run: Z4e }, - { key: "Alt-ArrowDown", run: X4e }, - { key: "Shift-Alt-ArrowDown", run: j4e }, - { key: "Escape", run: V4e }, - { key: "Mod-Enter", run: t5e }, - { key: "Alt-l", mac: "Ctrl-l", run: F4e }, - { key: "Mod-i", run: z4e, preventDefault: !0 }, - { key: "Mod-[", run: CJ }, - { key: "Mod-]", run: TJ }, - { key: "Mod-Alt-\\", run: r5e }, - { key: "Shift-Mod-k", run: K4e }, - { key: "Shift-Mod-\\", run: E4e }, - { key: "Mod-/", run: KOe }, - { key: "Alt-A", run: e4e } -].concat(i5e), s5e = { key: "Tab", run: TJ, shift: CJ }; + { key: "Enter", run: t5e }, + { key: "Mod-a", run: F4e }, + { key: "Backspace", run: O7, shift: O7 }, + { key: "Delete", run: xJ }, + { key: "Mod-Backspace", mac: "Alt-Backspace", run: OJ }, + { key: "Mod-Delete", mac: "Alt-Delete", run: q4e }, + { mac: "Mod-Backspace", run: Y4e }, + { mac: "Mod-Delete", run: W4e } +].concat(/* @__PURE__ */ i5e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), _J = /* @__PURE__ */ [ + { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: b4e, shift: R4e }, + { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: x4e, shift: M4e }, + { key: "Alt-ArrowUp", run: X4e }, + { key: "Shift-Alt-ArrowUp", run: j4e }, + { key: "Alt-ArrowDown", run: Z4e }, + { key: "Shift-Alt-ArrowDown", run: K4e }, + { key: "Escape", run: U4e }, + { key: "Mod-Enter", run: r5e }, + { key: "Alt-l", mac: "Ctrl-l", run: z4e }, + { key: "Mod-i", run: V4e, preventDefault: !0 }, + { key: "Mod-[", run: EJ }, + { key: "Mod-]", run: CJ }, + { key: "Mod-Alt-\\", run: n5e }, + { key: "Shift-Mod-k", run: J4e }, + { key: "Shift-Mod-\\", run: _4e }, + { key: "Mod-/", run: JOe }, + { key: "Alt-A", run: t4e } +].concat(s5e), a5e = { key: "Tab", run: CJ, shift: EJ }; function cn() { var t = arguments[0]; typeof t == "string" && (t = document.createElement(t)); @@ -13604,10 +13604,10 @@ function cn() { e++; } for (; e < arguments.length; e++) - _J(t, arguments[e]); + AJ(t, arguments[e]); return t; } -function _J(t, e) { +function AJ(t, e) { if (typeof e == "string") t.appendChild(document.createTextNode(e)); else if (e != null) @@ -13615,7 +13615,7 @@ function _J(t, e) { t.appendChild(e); else if (Array.isArray(e)) for (var r = 0; r < e.length; r++) - _J(t, e[r]); + AJ(t, e[r]); else throw new RangeError("Unsupported child node: " + e); } @@ -13642,7 +13642,7 @@ class Lg { let e = this.peek(); if (e < 0) return this.done = !0, this; - let r = RR(e), n = this.bufferStart + this.bufferPos; + let r = MR(e), n = this.bufferStart + this.bufferPos; this.bufferPos += Eo(e); let i = this.normalize(r); for (let s = 0, a = n; ; s++) { @@ -13668,12 +13668,12 @@ class Lg { typeof Symbol < "u" && (Lg.prototype[Symbol.iterator] = function() { return this; }); -const AJ = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, rM = "gm" + (/x/.unicode == null ? "" : "u"); -class LJ { +const LJ = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, nM = "gm" + (/x/.unicode == null ? "" : "u"); +class RJ { constructor(e, r, n, i = 0, s = e.length) { - if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = AJ, /\\[sWDnr]|\n|\r|\[\^/.test(r)) - return new RJ(e, r, n, i, s); - this.re = new RegExp(r, rM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter(); + if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = LJ, /\\[sWDnr]|\n|\r|\[\^/.test(r)) + return new MJ(e, r, n, i, s); + this.re = new RegExp(r, nM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter(); let a = e.lineAt(i); this.curLineStart = a.from, this.matchPos = M5(e, i), this.getLine(this.curLineStart); } @@ -13699,7 +13699,7 @@ class LJ { } } } -const AE = /* @__PURE__ */ new WeakMap(); +const LE = /* @__PURE__ */ new WeakMap(); class Hp { constructor(e, r) { this.from = e, this.text = r; @@ -13708,20 +13708,20 @@ class Hp { return this.from + this.text.length; } static get(e, r, n) { - let i = AE.get(e); + let i = LE.get(e); if (!i || i.from >= n || i.to <= r) { let o = new Hp(r, e.sliceString(r, n)); - return AE.set(e, o), o; + return LE.set(e, o), o; } if (i.from == r && i.to == n) return i; let { text: s, from: a } = i; - return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), AE.set(e, new Hp(a, s)), new Hp(r, s.slice(r - a, n - a)); + return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), LE.set(e, new Hp(a, s)), new Hp(r, s.slice(r - a, n - a)); } } -class RJ { +class MJ { constructor(e, r, n, i, s) { - this.text = e, this.to = s, this.done = !1, this.value = AJ, this.matchPos = M5(e, i), this.re = new RegExp(r, rM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Hp.get(e, i, this.chunkEnd(i + 5e3)); + this.text = e, this.to = s, this.done = !1, this.value = LJ, this.matchPos = M5(e, i), this.re = new RegExp(r, nM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Hp.get(e, i, this.chunkEnd(i + 5e3)); } chunkEnd(e) { return e >= this.to ? this.to : this.text.lineAt(e).to; @@ -13740,12 +13740,12 @@ class RJ { } } } -typeof Symbol < "u" && (LJ.prototype[Symbol.iterator] = RJ.prototype[Symbol.iterator] = function() { +typeof Symbol < "u" && (RJ.prototype[Symbol.iterator] = MJ.prototype[Symbol.iterator] = function() { return this; }); -function a5e(t) { +function o5e(t) { try { - return new RegExp(t, rM), !0; + return new RegExp(t, nM), !0; } catch { return !1; } @@ -13758,7 +13758,7 @@ function M5(t, e) { e++; return e; } -function O7(t) { +function k7(t) { let e = String(t.state.doc.lineAt(t.state.selection.main.head).number), r = cn("input", { class: "cm-textfield", name: "line", value: e }), n = cn("form", { class: "cm-gotoLine", onkeydown: (s) => { @@ -13795,45 +13795,45 @@ const D5 = /* @__PURE__ */ Zt.define(), bF = /* @__PURE__ */ $n.define({ r.is(D5) && (t = r.value); return t; }, - provide: (t) => Ey.from(t, (e) => e ? O7 : null) -}), o5e = (t) => { - let e = Cy(t, O7); + provide: (t) => Ey.from(t, (e) => e ? k7 : null) +}), l5e = (t) => { + let e = Cy(t, k7); if (!e) { let r = [D5.of(!0)]; - t.state.field(bF, !1) == null && r.push(Zt.appendConfig.of([bF, l5e])), t.dispatch({ effects: r }), e = Cy(t, O7); + t.state.field(bF, !1) == null && r.push(Zt.appendConfig.of([bF, c5e])), t.dispatch({ effects: r }), e = Cy(t, k7); } return e && e.dom.querySelector("input").select(), !0; -}, l5e = /* @__PURE__ */ ht.baseTheme({ +}, c5e = /* @__PURE__ */ ht.baseTheme({ ".cm-panel.cm-gotoLine": { padding: "2px 6px 4px", "& label": { fontSize: "80%" } } -}), c5e = { +}), u5e = { highlightWordAroundCursor: !1, minSelectionLength: 1, maxMatches: 100, wholeWords: !1 -}, MJ = /* @__PURE__ */ _t.define({ +}, DJ = /* @__PURE__ */ _t.define({ combine(t) { - return qc(t, c5e, { + return qc(t, u5e, { highlightWordAroundCursor: (e, r) => e || r, minSelectionLength: Math.min, maxMatches: Math.min }); } }); -function u5e(t) { - let e = [g5e, p5e]; - return t && e.push(MJ.of(t)), e; +function h5e(t) { + let e = [m5e, g5e]; + return t && e.push(DJ.of(t)), e; } -const h5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch" }), f5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); +const f5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch" }), d5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); function xF(t, e, r, n) { return (r == 0 || t(e.sliceDoc(r - 1, r)) != Sn.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != Sn.Word); } -function d5e(t, e, r, n) { +function p5e(t, e, r, n) { return t(e.sliceDoc(r, r + 1)) == Sn.Word && t(e.sliceDoc(n - 1, n)) == Sn.Word; } -const p5e = /* @__PURE__ */ an.fromClass(class { +const g5e = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -13841,7 +13841,7 @@ const p5e = /* @__PURE__ */ an.fromClass(class { (t.selectionSet || t.docChanged || t.viewportChanged) && (this.decorations = this.getDeco(t.view)); } getDeco(t) { - let e = t.state.facet(MJ), { state: r } = t, n = r.selection; + let e = t.state.facet(DJ), { state: r } = t, n = r.selection; if (n.ranges.length > 1) return Et.none; let i = n.main, s, a = null; @@ -13857,7 +13857,7 @@ const p5e = /* @__PURE__ */ an.fromClass(class { if (l < e.minSelectionLength || l > 200) return Et.none; if (e.wholeWords) { - if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(xF(a, r, i.from, i.to) && d5e(a, r, i.from, i.to))) + if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(xF(a, r, i.from, i.to) && p5e(a, r, i.from, i.to))) return Et.none; } else if (s = r.sliceDoc(i.from, i.to).trim(), !s) return Et.none; @@ -13867,7 +13867,7 @@ const p5e = /* @__PURE__ */ an.fromClass(class { let u = new Lg(r.doc, s, l.from, l.to); for (; !u.next().done; ) { let { from: h, to: f } = u.value; - if ((!a || xF(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(f5e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(h5e.range(h, f)), o.length > e.maxMatches)) + if ((!a || xF(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(d5e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(f5e.range(h, f)), o.length > e.maxMatches)) return Et.none; } } @@ -13875,14 +13875,14 @@ const p5e = /* @__PURE__ */ an.fromClass(class { } }, { decorations: (t) => t.decorations -}), g5e = /* @__PURE__ */ ht.baseTheme({ +}), m5e = /* @__PURE__ */ ht.baseTheme({ ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } -}), m5e = ({ state: t, dispatch: e }) => { +}), v5e = ({ state: t, dispatch: e }) => { let { selection: r } = t, n = Ve.create(r.ranges.map((i) => t.wordAt(i.head) || Ve.cursor(i.head)), r.mainIndex); return n.eq(r) ? !1 : (e(t.update({ selection: n })), !0); }; -function v5e(t, e) { +function y5e(t, e) { let { main: r, ranges: n } = t.selection, i = t.wordAt(r.head), s = i && i.from == r.from && i.to == r.to; for (let a = !1, o = new Lg(t.doc, e, n[n.length - 1].to); ; ) if (o.next(), o.done) { @@ -13900,14 +13900,14 @@ function v5e(t, e) { return o.value; } } -const y5e = ({ state: t, dispatch: e }) => { +const b5e = ({ state: t, dispatch: e }) => { let { ranges: r } = t.selection; if (r.some((s) => s.from === s.to)) - return m5e({ state: t, dispatch: e }); + return v5e({ state: t, dispatch: e }); let n = t.sliceDoc(r[0].from, r[0].to); if (t.selection.ranges.some((s) => t.sliceDoc(s.from, s.to) != n)) return !1; - let i = v5e(t, n); + let i = y5e(t, n); return i ? (e(t.update({ selection: t.selection.addRange(Ve.range(i.from, i.to), !1), effects: ht.scrollIntoView(i.to) @@ -13920,14 +13920,14 @@ const y5e = ({ state: t, dispatch: e }) => { literal: !1, regexp: !1, wholeWord: !1, - createPanel: (e) => new L5e(e), + createPanel: (e) => new R5e(e), scrollToMatch: (e) => ht.scrollIntoView(e) }); } }); -class DJ { +class NJ { constructor(e) { - this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || a5e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; + this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || o5e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; } unquote(e) { return this.literal ? e : e.replace(/\\([nrt\\])/g, (r, n) => n == "n" ? ` @@ -13937,25 +13937,25 @@ class DJ { return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord; } create() { - return this.regexp ? new O5e(this) : new x5e(this); + return this.regexp ? new k5e(this) : new w5e(this); } getCursor(e, r = 0, n) { let i = e.doc ? e : dr.create({ doc: e }); return n == null && (n = i.doc.length), this.regexp ? Op(this, i, r, n) : wp(this, i, r, n); } } -class NJ { +class IJ { constructor(e) { this.spec = e; } } function wp(t, e, r, n) { - return new Lg(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? b5e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); + return new Lg(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? x5e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); } -function b5e(t, e) { +function x5e(t, e) { return (r, n, i, s) => ((s > r || s + i.length < n) && (s = Math.max(0, r - 2), i = t.sliceString(s, Math.min(t.length, n + 2))), (e(N5(i, r - s)) != Sn.Word || e(I5(i, r - s)) != Sn.Word) && (e(I5(i, n - s)) != Sn.Word || e(N5(i, n - s)) != Sn.Word)); } -class x5e extends NJ { +class w5e extends IJ { constructor(e) { super(e); } @@ -13997,9 +13997,9 @@ class x5e extends NJ { } } function Op(t, e, r, n) { - return new LJ(e.doc, t.search, { + return new RJ(e.doc, t.search, { ignoreCase: !t.caseSensitive, - test: t.wholeWord ? w5e(e.charCategorizer(e.selection.main.head)) : void 0 + test: t.wholeWord ? O5e(e.charCategorizer(e.selection.main.head)) : void 0 }, r, n); } function N5(t, e) { @@ -14008,10 +14008,10 @@ function N5(t, e) { function I5(t, e) { return t.slice(e, ls(t, e)); } -function w5e(t) { +function O5e(t) { return (e, r, n) => !n[0].length || (t(N5(n.input, n.index)) != Sn.Word || t(I5(n.input, n.index)) != Sn.Word) && (t(I5(n.input, n.index + n[0].length)) != Sn.Word || t(N5(n.input, n.index + n[0].length)) != Sn.Word); } -class O5e extends NJ { +class k5e extends IJ { nextMatch(e, r, n) { let i = Op(this.spec, e, n, e.doc.length).next(); return i.done && (i = Op(this.spec, e, 0, r).next()), i.done ? null : i.value; @@ -14048,23 +14048,23 @@ class O5e extends NJ { i(s.value.from, s.value.to); } } -const Ny = /* @__PURE__ */ Zt.define(), nM = /* @__PURE__ */ Zt.define(), Gh = /* @__PURE__ */ $n.define({ +const Ny = /* @__PURE__ */ Zt.define(), iM = /* @__PURE__ */ Zt.define(), Gh = /* @__PURE__ */ $n.define({ create(t) { - return new LE(k7(t).create(), null); + return new RE(S7(t).create(), null); }, update(t, e) { for (let r of e.effects) - r.is(Ny) ? t = new LE(r.value.create(), t.panel) : r.is(nM) && (t = new LE(t.query, r.value ? iM : null)); + r.is(Ny) ? t = new RE(r.value.create(), t.panel) : r.is(iM) && (t = new RE(t.query, r.value ? sM : null)); return t; }, provide: (t) => Ey.from(t, (e) => e.panel) }); -class LE { +class RE { constructor(e, r) { this.query = e, this.panel = r; } } -const k5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), S5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), T5e = /* @__PURE__ */ an.fromClass(class { +const S5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), T5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), C5e = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.view = t, this.decorations = this.highlight(t.state.field(Gh)); } @@ -14082,7 +14082,7 @@ const k5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), S5e = /* @__PU l = s[++i].to; t.highlight(r.state, o, l, (u, h) => { let f = r.state.selection.ranges.some((d) => d.from == u && d.to == h); - n.add(u, h, f ? S5e : k5e); + n.add(u, h, f ? T5e : S5e); }); } return n.finish(); @@ -14093,7 +14093,7 @@ const k5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), S5e = /* @__PU function Zb(t) { return (e) => { let r = e.state.field(Gh, !1); - return r && r.query.spec.valid ? t(e, r) : $J(e); + return r && r.query.spec.valid ? t(e, r) : BJ(e); }; } const P5 = /* @__PURE__ */ Zb((t, { query: e }) => { @@ -14103,9 +14103,9 @@ const P5 = /* @__PURE__ */ Zb((t, { query: e }) => { let i = Ve.single(n.from, n.to), s = t.state.facet($1); return t.dispatch({ selection: i, - effects: [sM(t, n), s.scrollToMatch(i.main, t)], + effects: [aM(t, n), s.scrollToMatch(i.main, t)], userEvent: "select.search" - }), PJ(t), !0; + }), $J(t), !0; }), $5 = /* @__PURE__ */ Zb((t, { query: e }) => { let { state: r } = t, { from: n } = r.selection.main, i = e.prevMatch(r, n, n); if (!i) @@ -14113,16 +14113,16 @@ const P5 = /* @__PURE__ */ Zb((t, { query: e }) => { let s = Ve.single(i.from, i.to), a = t.state.facet($1); return t.dispatch({ selection: s, - effects: [sM(t, i), a.scrollToMatch(s.main, t)], + effects: [aM(t, i), a.scrollToMatch(s.main, t)], userEvent: "select.search" - }), PJ(t), !0; -}), C5e = /* @__PURE__ */ Zb((t, { query: e }) => { + }), $J(t), !0; +}), E5e = /* @__PURE__ */ Zb((t, { query: e }) => { let r = e.matchAll(t.state, 1e3); return !r || !r.length ? !1 : (t.dispatch({ selection: Ve.create(r.map((n) => Ve.range(n.from, n.to))), userEvent: "select.search.matches" }), !0); -}), E5e = ({ state: t, dispatch: e }) => { +}), _5e = ({ state: t, dispatch: e }) => { let r = t.selection; if (r.ranges.length > 1 || r.main.empty) return !1; @@ -14146,7 +14146,7 @@ const P5 = /* @__PURE__ */ Zb((t, { query: e }) => { let a = [], o, l, u = []; if (s.from == n && s.to == i && (l = r.toText(e.getReplacement(s)), a.push({ from: s.from, to: s.to, insert: l }), s = e.nextMatch(r, s.from, s.to), u.push(ht.announce.of(r.phrase("replaced match on line $", r.doc.lineAt(n).number) + "."))), s) { let h = a.length == 0 || a[0].from >= s.to ? 0 : s.to - s.from - l.length; - o = Ve.single(s.from - h, s.to - h), u.push(sM(t, s)), u.push(r.facet($1).scrollToMatch(o.main, t)); + o = Ve.single(s.from - h, s.to - h), u.push(aM(t, s)), u.push(r.facet($1).scrollToMatch(o.main, t)); } return t.dispatch({ changes: a, @@ -14154,7 +14154,7 @@ const P5 = /* @__PURE__ */ Zb((t, { query: e }) => { effects: u, userEvent: "input.replace" }), !0; -}), _5e = /* @__PURE__ */ Zb((t, { query: e }) => { +}), A5e = /* @__PURE__ */ Zb((t, { query: e }) => { if (t.state.readOnly) return !1; let r = e.matchAll(t.state, 1e9).map((i) => { @@ -14170,16 +14170,16 @@ const P5 = /* @__PURE__ */ Zb((t, { query: e }) => { userEvent: "input.replace.all" }), !0; }); -function iM(t) { +function sM(t) { return t.state.facet($1).createPanel(t); } -function k7(t, e) { +function S7(t, e) { var r, n, i, s, a; let o = t.selection.main, l = o.empty || o.to > o.from + 100 ? "" : t.sliceDoc(o.from, o.to); if (e && !l) return e; let u = t.facet($1); - return new DJ({ + return new NJ({ search: ((r = e == null ? void 0 : e.literal) !== null && r !== void 0 ? r : u.literal) ? l : l.replace(/\n/g, "\\n"), caseSensitive: (n = e == null ? void 0 : e.caseSensitive) !== null && n !== void 0 ? n : u.caseSensitive, literal: (i = e == null ? void 0 : e.literal) !== null && i !== void 0 ? i : u.literal, @@ -14187,51 +14187,51 @@ function k7(t, e) { wholeWord: (a = e == null ? void 0 : e.wholeWord) !== null && a !== void 0 ? a : u.wholeWord }); } -function IJ(t) { - let e = Cy(t, iM); +function PJ(t) { + let e = Cy(t, sM); return e && e.dom.querySelector("[main-field]"); } -function PJ(t) { - let e = IJ(t); +function $J(t) { + let e = PJ(t); e && e == t.root.activeElement && e.select(); } -const $J = (t) => { +const BJ = (t) => { let e = t.state.field(Gh, !1); if (e && e.panel) { - let r = IJ(t); + let r = PJ(t); if (r && r != t.root.activeElement) { - let n = k7(t.state, e.query.spec); + let n = S7(t.state, e.query.spec); n.valid && t.dispatch({ effects: Ny.of(n) }), r.focus(), r.select(); } } else t.dispatch({ effects: [ - nM.of(!0), - e ? Ny.of(k7(t.state, e.query.spec)) : Zt.appendConfig.of(M5e) + iM.of(!0), + e ? Ny.of(S7(t.state, e.query.spec)) : Zt.appendConfig.of(D5e) ] }); return !0; -}, BJ = (t) => { +}, FJ = (t) => { let e = t.state.field(Gh, !1); if (!e || !e.panel) return !1; - let r = Cy(t, iM); - return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: nM.of(!1) }), !0; -}, A5e = [ - { key: "Mod-f", run: $J, scope: "editor search-panel" }, + let r = Cy(t, sM); + return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: iM.of(!1) }), !0; +}, L5e = [ + { key: "Mod-f", run: BJ, scope: "editor search-panel" }, { key: "F3", run: P5, shift: $5, scope: "editor search-panel", preventDefault: !0 }, { key: "Mod-g", run: P5, shift: $5, scope: "editor search-panel", preventDefault: !0 }, - { key: "Escape", run: BJ, scope: "editor search-panel" }, - { key: "Mod-Shift-l", run: E5e }, - { key: "Mod-Alt-g", run: o5e }, - { key: "Mod-d", run: y5e, preventDefault: !0 } + { key: "Escape", run: FJ, scope: "editor search-panel" }, + { key: "Mod-Shift-l", run: _5e }, + { key: "Mod-Alt-g", run: l5e }, + { key: "Mod-d", run: b5e, preventDefault: !0 } ]; -class L5e { +class R5e { constructor(e) { this.view = e; let r = this.query = e.state.field(Gh).query.spec; this.commit = this.commit.bind(this), this.searchField = cn("input", { value: r.search, - placeholder: Wa(e, "Find"), - "aria-label": Wa(e, "Find"), + placeholder: Ga(e, "Find"), + "aria-label": Ga(e, "Find"), class: "cm-textfield", name: "search", form: "", @@ -14240,8 +14240,8 @@ class L5e { onkeyup: this.commit }), this.replaceField = cn("input", { value: r.replace, - placeholder: Wa(e, "Replace"), - "aria-label": Wa(e, "Replace"), + placeholder: Ga(e, "Replace"), + "aria-label": Ga(e, "Replace"), class: "cm-textfield", name: "replace", form: "", @@ -14271,28 +14271,28 @@ class L5e { } this.dom = cn("div", { onkeydown: (i) => this.keydown(i), class: "cm-search" }, [ this.searchField, - n("next", () => P5(e), [Wa(e, "next")]), - n("prev", () => $5(e), [Wa(e, "previous")]), - n("select", () => C5e(e), [Wa(e, "all")]), - cn("label", null, [this.caseField, Wa(e, "match case")]), - cn("label", null, [this.reField, Wa(e, "regexp")]), - cn("label", null, [this.wordField, Wa(e, "by word")]), + n("next", () => P5(e), [Ga(e, "next")]), + n("prev", () => $5(e), [Ga(e, "previous")]), + n("select", () => E5e(e), [Ga(e, "all")]), + cn("label", null, [this.caseField, Ga(e, "match case")]), + cn("label", null, [this.reField, Ga(e, "regexp")]), + cn("label", null, [this.wordField, Ga(e, "by word")]), ...e.state.readOnly ? [] : [ cn("br"), this.replaceField, - n("replace", () => wF(e), [Wa(e, "replace")]), - n("replaceAll", () => _5e(e), [Wa(e, "replace all")]) + n("replace", () => wF(e), [Ga(e, "replace")]), + n("replaceAll", () => A5e(e), [Ga(e, "replace all")]) ], cn("button", { name: "close", - onclick: () => BJ(e), - "aria-label": Wa(e, "close"), + onclick: () => FJ(e), + "aria-label": Ga(e, "close"), type: "button" }, ["\xD7"]) ]); } commit() { - let e = new DJ({ + let e = new NJ({ search: this.searchField.value, caseSensitive: this.caseField.checked, regexp: this.reField.checked, @@ -14302,7 +14302,7 @@ class L5e { e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Ny.of(e) })); } keydown(e) { - Xxe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? $5 : P5)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), wF(this.view)); + Zxe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? $5 : P5)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), wF(this.view)); } update(e) { for (let r of e.transactions) @@ -14322,11 +14322,11 @@ class L5e { return this.view.state.facet($1).top; } } -function Wa(t, e) { +function Ga(t, e) { return t.state.phrase(e); } const Ew = 30, _w = /[\s\.,:;?!]/; -function sM(t, { from: e, to: r }) { +function aM(t, { from: e, to: r }) { let n = t.state.doc.lineAt(e), i = t.state.doc.lineAt(r).to, s = Math.max(n.from, e - Ew), a = Math.min(i, r + Ew), o = t.state.sliceDoc(s, a); if (s != n.from) { for (let l = 0; l < Ew; l++) @@ -14344,7 +14344,7 @@ function sM(t, { from: e, to: r }) { } return ht.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${n.number}.`); } -const R5e = /* @__PURE__ */ ht.baseTheme({ +const M5e = /* @__PURE__ */ ht.baseTheme({ ".cm-panel.cm-search": { padding: "2px 6px 4px", position: "relative", @@ -14373,12 +14373,12 @@ const R5e = /* @__PURE__ */ ht.baseTheme({ "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }, "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" }, "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" } -}), M5e = [ +}), D5e = [ Gh, - /* @__PURE__ */ zl.low(T5e), - R5e + /* @__PURE__ */ zl.low(C5e), + M5e ]; -class aM { +class oM { constructor(e, r, n) { this.state = e, this.pos = r, this.explicit = n, this.abortListeners = []; } @@ -14394,7 +14394,7 @@ class aM { } : null; } matchBefore(e) { - let r = this.state.doc.lineAt(this.pos), n = Math.max(r.from, this.pos - 250), i = r.text.slice(n - r.from, this.pos - r.from), s = i.search(zJ(e, !1)); + let r = this.state.doc.lineAt(this.pos), n = Math.max(r.from, this.pos - 250), i = r.text.slice(n - r.from, this.pos - r.from), s = i.search(VJ(e, !1)); return s < 0 ? null : { from: n + s, to: this.pos, text: i.slice(s) }; } get aborted() { @@ -14408,7 +14408,7 @@ function OF(t) { let e = Object.keys(t).join(""), r = /\w/.test(e); return r && (e = e.replace(/\w/g, "")), `[${r ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`; } -function D5e(t) { +function N5e(t) { let e = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null); for (let { label: i } of t) { e[i[0]] = !0; @@ -14418,14 +14418,14 @@ function D5e(t) { let n = OF(e) + OF(r) + "*$"; return [new RegExp("^" + n), new RegExp(n)]; } -function FJ(t) { - let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : D5e(e); +function zJ(t) { + let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : N5e(e); return (i) => { let s = i.matchBefore(n); return s || i.explicit ? { from: s ? s.from : i.pos, options: e, validFor: r } : null; }; } -function N5e(t, e) { +function I5e(t, e) { return (r) => { for (let n = fn(r.state).resolveInner(r.pos, -1); n; n = n.parent) { if (t.indexOf(n.name) > -1) @@ -14444,13 +14444,13 @@ class kF { function Hh(t) { return t.selection.main.from; } -function zJ(t, e) { +function VJ(t, e) { var r; let { source: n } = t, i = e && n[0] != "^", s = n[n.length - 1] != "$"; return !i && !s ? t : new RegExp(`${i ? "^" : ""}(?:${n})${s ? "$" : ""}`, (r = t.flags) !== null && r !== void 0 ? r : t.ignoreCase ? "i" : ""); } -const VJ = /* @__PURE__ */ Vl.define(); -function I5e(t, e, r, n) { +const UJ = /* @__PURE__ */ Vl.define(); +function P5e(t, e, r, n) { let { main: i } = t.selection, s = r - i.from, a = n - i.from; return Object.assign(Object.assign({}, t.changeByRange((o) => o != i && r != n && t.sliceDoc(o.from + s, o.from + a) != t.sliceDoc(r, n) ? { range: o } : { changes: { from: o.from + s, to: n == i.from ? o.to : o.from + a, insert: e }, @@ -14458,14 +14458,14 @@ function I5e(t, e, r, n) { })), { scrollIntoView: !0, userEvent: "input.complete" }); } const SF = /* @__PURE__ */ new WeakMap(); -function P5e(t) { +function $5e(t) { if (!Array.isArray(t)) return t; let e = SF.get(t); - return e || SF.set(t, e = FJ(t)), e; + return e || SF.set(t, e = zJ(t)), e; } -const oM = /* @__PURE__ */ Zt.define(), Iy = /* @__PURE__ */ Zt.define(); -class $5e { +const lM = /* @__PURE__ */ Zt.define(), Iy = /* @__PURE__ */ Zt.define(); +class B5e { constructor(e) { this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = []; for (let r = 0; r < e.length; ) { @@ -14510,7 +14510,7 @@ class $5e { for (let b = 0, w = Math.min(e.length, 200), O = 0; b < w && f < l; ) { let S = ss(e, b); o < 0 && (h < l && S == r[h] && (s[h++] = b), p < l && (S == r[p] || S == n[p] ? (p == 0 && (g = b), m = b + 1, p++) : p = 0)); - let C, T = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (C = RR(S)) != C.toLowerCase() ? 1 : C != C.toUpperCase() ? 2 : 0; + let C, T = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (C = MR(S)) != C.toLowerCase() ? 1 : C != C.toUpperCase() ? 2 : 0; (!b || T == 1 && v || O == 0 && T != 0) && (r[f] == S || n[f] == S && (d = !0) ? a[f++] = b : a.length && (y = !1)), O = T, b += Eo(S); } return f == l && a[0] == 0 && y ? this.result(-100 + (d ? -200 : 0), a, e) : p == l && g == 0 ? this.ret(-200 - e.length + (m == e.length ? 0 : -100), [0, m]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : p == l ? this.ret(-200 + -700 - e.length, [g, m]) : f == l ? this.result(-100 + (d ? -200 : 0) + -700 + (y ? 0 : -1100), a, e) : r.length == 2 ? !1 : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e); @@ -14538,7 +14538,7 @@ const Ds = /* @__PURE__ */ _t.define({ aboveCursor: !1, icons: !0, addToOptions: [], - positionInfo: B5e, + positionInfo: F5e, compareCompletions: (e, r) => e.label.localeCompare(r.label), interactionDelay: 75, updateSyncTime: 100 @@ -14555,7 +14555,7 @@ const Ds = /* @__PURE__ */ _t.define({ function TF(t, e) { return t ? e ? t + " " + e : t : e; } -function B5e(t, e, r, n, i, s) { +function F5e(t, e, r, n, i, s) { let a = t.textDirection == In.RTL, o = a, l = !1, u = "top", h, f, d = e.left - i.left, p = i.right - e.right, g = n.right - n.left, m = n.bottom - n.top; if (o && d < Math.min(g, p) ? o = !1 : !o && p < Math.min(g, d) && (o = !0), g <= (o ? d : p)) h = Math.max(i.top, Math.min(r.top, i.bottom - m)) - e.top, f = Math.min(400, o ? d : p); @@ -14570,7 +14570,7 @@ function B5e(t, e, r, n, i, s) { class: "cm-completionInfo-" + (l ? a ? "left-narrow" : "right-narrow" : o ? "left" : "right") }; } -function F5e(t) { +function z5e(t) { let e = t.addToOptions.slice(); return t.icons && e.push({ render(r) { @@ -14602,7 +14602,7 @@ function F5e(t) { position: 80 }), e.sort((r, n) => r.position - n.position).map((r) => r.render); } -function RE(t, e, r) { +function ME(t, e, r) { if (t <= r) return { from: 0, to: t }; if (e < 0 && (e = 0), e <= t >> 1) { @@ -14612,7 +14612,7 @@ function RE(t, e, r) { let n = Math.floor((t - e) / r); return { from: t - (n + 1) * r, to: t - n * r }; } -class z5e { +class V5e { constructor(e, r, n) { this.view = e, this.stateField = r, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = { read: () => this.measureInfo(), @@ -14620,7 +14620,7 @@ class z5e { key: this }, this.space = null, this.currentClass = ""; let i = e.state.field(r), { options: s, selected: a } = i.open, o = e.state.facet(Ds); - this.optionContent = F5e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = RE(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { + this.optionContent = z5e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = ME(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { let { options: u } = e.state.field(r).open; for (let h = l.target, f; h && h != this.dom; h = h.parentNode) if (h.nodeName == "LI" && (f = /-(\d+)$/.exec(h.id)) && +f[1] < u.length) { @@ -14645,7 +14645,7 @@ class z5e { let n = e.state.field(this.stateField), i = e.startState.field(this.stateField); if (this.updateTooltipClass(e.state), n != i) { let { options: s, selected: a, disabled: o } = n.open; - (!i.open || i.open.options != s) && (this.range = RE(s.length, a, e.state.facet(Ds).maxRenderedOptions), this.showOptions(s, n.id)), this.updateSel(), o != ((r = i.open) === null || r === void 0 ? void 0 : r.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!o); + (!i.open || i.open.options != s) && (this.range = ME(s.length, a, e.state.facet(Ds).maxRenderedOptions), this.showOptions(s, n.id)), this.updateSel(), o != ((r = i.open) === null || r === void 0 ? void 0 : r.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!o); } } updateTooltipClass(e) { @@ -14663,7 +14663,7 @@ class z5e { } updateSel() { let e = this.view.state.field(this.stateField), r = e.open; - if ((r.selected > -1 && r.selected < this.range.from || r.selected >= this.range.to) && (this.range = RE(r.options.length, r.selected, this.view.state.facet(Ds).maxRenderedOptions), this.showOptions(r.options, e.id)), this.updateSelectedOption(r.selected)) { + if ((r.selected > -1 && r.selected < this.range.from || r.selected >= this.range.to) && (this.range = ME(r.options.length, r.selected, this.view.state.facet(Ds).maxRenderedOptions), this.showOptions(r.options, e.id)), this.updateSelectedOption(r.selected)) { this.destroyInfo(); let { completion: n } = r.options[r.selected], { info: i } = n; if (!i) @@ -14691,7 +14691,7 @@ class z5e { let r = null; for (let n = this.list.firstChild, i = this.range.from; n; n = n.nextSibling, i++) n.nodeName != "LI" || !n.id ? i-- : i == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), r = n) : n.hasAttribute("aria-selected") && n.removeAttribute("aria-selected"); - return r && U5e(this.list, r), r; + return r && q5e(this.list, r), r; } measureInfo() { let e = this.dom.querySelector("[aria-selected]"); @@ -14741,17 +14741,17 @@ class z5e { this.destroyInfo(); } } -function V5e(t, e) { - return (r) => new z5e(r, t, e); -} function U5e(t, e) { + return (r) => new V5e(r, t, e); +} +function q5e(t, e) { let r = t.getBoundingClientRect(), n = e.getBoundingClientRect(), i = r.height / t.offsetHeight; n.top < r.top ? t.scrollTop -= (r.top - n.top) / i : n.bottom > r.bottom && (t.scrollTop += (n.bottom - r.bottom) / i); } function CF(t) { return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0); } -function q5e(t, e) { +function Q5e(t, e) { let r = [], n = null, i = (l) => { r.push(l); let { section: u } = l.completion; @@ -14768,7 +14768,7 @@ function q5e(t, e) { for (let h of l.result.options) i(new kF(h, l.source, u ? u(h) : [], 1e9 - r.length)); else { - let h = new $5e(e.sliceDoc(l.from, l.to)); + let h = new B5e(e.sliceDoc(l.from, l.to)); for (let f of l.result.options) if (h.match(f.label)) { let d = f.displayLabel ? u ? u(f, h.matched) : [] : h.matched; @@ -14803,7 +14803,7 @@ class Lp { return e == this.selected || e >= this.options.length ? this : new Lp(this.options, EF(r, e), this.tooltip, this.timestamp, e, this.disabled); } static build(e, r, n, i, s) { - let a = q5e(e, r); + let a = Q5e(e, r); if (!a.length) return i && e.some((l) => l.state == 1) ? new Lp(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; let o = r.facet(Ds).selectOnOpen ? 0 : -1; @@ -14817,7 +14817,7 @@ class Lp { } return new Lp(a, EF(n, o), { pos: e.reduce((l, u) => u.hasResult() ? Math.min(l, u.from) : l, 1e8), - create: H5e, + create: X5e, above: s.aboveCursor }, i ? i.timestamp : Date.now(), o, !1); } @@ -14830,25 +14830,25 @@ class B5 { this.active = e, this.id = r, this.open = n; } static start() { - return new B5(W5e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); + return new B5(G5e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); } update(e) { - let { state: r } = e, n = r.facet(Ds), s = (n.override || r.languageDataAt("autocomplete", Hh(r)).map(P5e)).map((o) => (this.active.find((u) => u.source == o) || new ka(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); + let { state: r } = e, n = r.facet(Ds), s = (n.override || r.languageDataAt("autocomplete", Hh(r)).map($5e)).map((o) => (this.active.find((u) => u.source == o) || new ka(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); s.length == this.active.length && s.every((o, l) => o == this.active[l]) && (s = this.active); let a = this.open; - a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !Q5e(s, this.active) ? a = Lp.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new ka(o.source, 0) : o)); + a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !Y5e(s, this.active) ? a = Lp.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new ka(o.source, 0) : o)); for (let o of e.effects) - o.is(qJ) && (a = a && a.setSelected(o.value, this.id)); + o.is(QJ) && (a = a && a.setSelected(o.value, this.id)); return s == this.active && a == this.open ? this : new B5(s, this.id, a); } get tooltip() { return this.open ? this.open.tooltip : null; } get attrs() { - return this.open ? this.open.attrs : Y5e; + return this.open ? this.open.attrs : W5e; } } -function Q5e(t, e) { +function Y5e(t, e) { if (t == e) return !0; for (let r = 0, n = 0; ; ) { @@ -14863,7 +14863,7 @@ function Q5e(t, e) { return !1; } } -const Y5e = { +const W5e = { "aria-autocomplete": "list" }; function EF(t, e) { @@ -14874,8 +14874,8 @@ function EF(t, e) { }; return e > -1 && (r["aria-activedescendant"] = t + "-" + e), r; } -const W5e = []; -function S7(t) { +const G5e = []; +function T7(t) { return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null; } class ka { @@ -14886,14 +14886,14 @@ class ka { return !1; } update(e, r) { - let n = S7(e), i = this; + let n = T7(e), i = this; n ? i = i.handleUserEvent(e, n, r) : e.docChanged ? i = i.handleChange(e) : e.selection && i.state != 0 && (i = new ka(i.source, 0)); for (let s of e.effects) - if (s.is(oM)) + if (s.is(lM)) i = new ka(i.source, 1, s.value ? Hh(e.state) : -1); else if (s.is(Iy)) i = new ka(i.source, 0); - else if (s.is(UJ)) + else if (s.is(qJ)) for (let a of s.value) a.source == i.source && (i = a); return i; @@ -14921,7 +14921,7 @@ class Xp extends ka { if ((this.explicitPos < 0 ? o <= s : o < this.from) || o > a || r == "delete" && Hh(e.startState) == this.from) return new ka(this.source, r == "input" && n.activateOnTyping ? 1 : 0); let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), u; - return G5e(this.result.validFor, e.state, s, a) ? new Xp(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new aM(e.state, o, l >= 0))) ? new Xp(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Hh(e.state)) : new ka(this.source, 1, l); + return H5e(this.result.validFor, e.state, s, a) ? new Xp(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new oM(e.state, o, l >= 0))) ? new Xp(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Hh(e.state)) : new ka(this.source, 1, l); } handleChange(e) { return e.changes.touchesRange(this.from, this.to) ? new ka(this.source, 0) : this.map(e.changes); @@ -14930,17 +14930,17 @@ class Xp extends ka { return e.empty ? this : new Xp(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); } } -function G5e(t, e, r, n) { +function H5e(t, e, r, n) { if (!t) return !1; let i = e.sliceDoc(r, n); - return typeof t == "function" ? t(i, r, n, e) : zJ(t, !0).test(i); + return typeof t == "function" ? t(i, r, n, e) : VJ(t, !0).test(i); } -const UJ = /* @__PURE__ */ Zt.define({ +const qJ = /* @__PURE__ */ Zt.define({ map(t, e) { return t.map((r) => r.map(e)); } -}), qJ = /* @__PURE__ */ Zt.define(), to = /* @__PURE__ */ $n.define({ +}), QJ = /* @__PURE__ */ Zt.define(), ro = /* @__PURE__ */ $n.define({ create() { return B5.start(); }, @@ -14948,53 +14948,53 @@ const UJ = /* @__PURE__ */ Zt.define({ return t.update(e); }, provide: (t) => [ - UR.from(t, (e) => e.tooltip), + qR.from(t, (e) => e.tooltip), ht.contentAttributes.from(t, (e) => e.attrs) ] }); -function QJ(t, e) { +function YJ(t, e) { const r = e.completion.apply || e.completion.label; - let n = t.state.field(to).active.find((i) => i.source == e.source); - return n instanceof Xp ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, I5e(t.state, r, n.from, n.to)), { annotations: VJ.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; + let n = t.state.field(ro).active.find((i) => i.source == e.source); + return n instanceof Xp ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, P5e(t.state, r, n.from, n.to)), { annotations: UJ.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; } -const H5e = /* @__PURE__ */ V5e(to, QJ); +const X5e = /* @__PURE__ */ U5e(ro, YJ); function Aw(t, e = "option") { return (r) => { - let n = r.state.field(to, !1); + let n = r.state.field(ro, !1); if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < r.state.facet(Ds).interactionDelay) return !1; let i = 1, s; - e == "page" && (s = yK(r, n.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); + e == "page" && (s = bK(r, n.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); let { length: a } = n.open.options, o = n.open.selected > -1 ? n.open.selected + i * (t ? 1 : -1) : t ? 0 : a - 1; - return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: qJ.of(o) }), !0; + return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: QJ.of(o) }), !0; }; } -const X5e = (t) => { - let e = t.state.field(to, !1); - return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(Ds).interactionDelay ? !1 : QJ(t, e.open.options[e.open.selected]); -}, Z5e = (t) => t.state.field(to, !1) ? (t.dispatch({ effects: oM.of(!0) }), !0) : !1, j5e = (t) => { - let e = t.state.field(to, !1); +const Z5e = (t) => { + let e = t.state.field(ro, !1); + return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(Ds).interactionDelay ? !1 : YJ(t, e.open.options[e.open.selected]); +}, j5e = (t) => t.state.field(ro, !1) ? (t.dispatch({ effects: lM.of(!0) }), !0) : !1, K5e = (t) => { + let e = t.state.field(ro, !1); return !e || !e.active.some((r) => r.state != 0) ? !1 : (t.dispatch({ effects: Iy.of(null) }), !0); }; -class K5e { +class J5e { constructor(e, r) { this.active = e, this.context = r, this.time = Date.now(), this.updates = [], this.done = void 0; } } -const J5e = 50, e3e = 1e3, t3e = /* @__PURE__ */ an.fromClass(class { +const e3e = 50, t3e = 1e3, r3e = /* @__PURE__ */ an.fromClass(class { constructor(t) { this.view = t, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.composing = 0; - for (let e of t.state.field(to).active) + for (let e of t.state.field(ro).active) e.state == 1 && this.startQuery(e); } update(t) { - let e = t.state.field(to); - if (!t.selectionSet && !t.docChanged && t.startState.field(to) == e) + let e = t.state.field(ro); + if (!t.selectionSet && !t.docChanged && t.startState.field(ro) == e) return; - let r = t.transactions.some((n) => (n.selection || n.docChanged) && !S7(n)); + let r = t.transactions.some((n) => (n.selection || n.docChanged) && !T7(n)); for (let n = 0; n < this.running.length; n++) { let i = this.running[n]; - if (r || i.updates.length + t.transactions.length > J5e && Date.now() - i.time > e3e) { + if (r || i.updates.length + t.transactions.length > e3e && Date.now() - i.time > t3e) { for (let s of i.context.abortListeners) try { s(); @@ -15007,16 +15007,16 @@ const J5e = 50, e3e = 1e3, t3e = /* @__PURE__ */ an.fromClass(class { } if (this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), this.debounceUpdate = e.active.some((n) => n.state == 1 && !this.running.some((i) => i.active.source == n.source)) ? setTimeout(() => this.startUpdate(), 50) : -1, this.composing != 0) for (let n of t.transactions) - S7(n) == "input" ? this.composing = 2 : this.composing == 2 && n.selection && (this.composing = 3); + T7(n) == "input" ? this.composing = 2 : this.composing == 2 && n.selection && (this.composing = 3); } startUpdate() { this.debounceUpdate = -1; - let { state: t } = this.view, e = t.field(to); + let { state: t } = this.view, e = t.field(ro); for (let r of e.active) r.state == 1 && !this.running.some((n) => n.active.source == r.source) && this.startQuery(r); } startQuery(t) { - let { state: e } = this.view, r = Hh(e), n = new aM(e, r, t.explicitPos == r), i = new K5e(t, n); + let { state: e } = this.view, r = Hh(e), n = new oM(e, r, t.explicitPos == r), i = new J5e(t, n); this.running.push(i), Promise.resolve(t.source(n)).then((s) => { i.context.aborted || (i.done = s || null, this.scheduleAccept()); }, (s) => { @@ -15043,7 +15043,7 @@ const J5e = 50, e3e = 1e3, t3e = /* @__PURE__ */ an.fromClass(class { continue; } } - let s = this.view.state.field(to).active.find((a) => a.source == i.active.source); + let s = this.view.state.field(ro).active.find((a) => a.source == i.active.source); if (s && s.state == 1) if (i.done == null) { let a = new ka(i.active.source, 0); @@ -15053,14 +15053,14 @@ const J5e = 50, e3e = 1e3, t3e = /* @__PURE__ */ an.fromClass(class { } else this.startQuery(s); } - e.length && this.view.dispatch({ effects: UJ.of(e) }); + e.length && this.view.dispatch({ effects: qJ.of(e) }); } }, { eventHandlers: { blur(t) { - let e = this.view.state.field(to, !1); + let e = this.view.state.field(ro, !1); if (e && e.tooltip && this.view.state.facet(Ds).closeOnBlur) { - let r = e.open && yK(this.view, e.open.tooltip); + let r = e.open && bK(this.view, e.open.tooltip); (!r || !r.dom.contains(t.relatedTarget)) && this.view.dispatch({ effects: Iy.of(null) }); } }, @@ -15068,10 +15068,10 @@ const J5e = 50, e3e = 1e3, t3e = /* @__PURE__ */ an.fromClass(class { this.composing = 1; }, compositionend() { - this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: oM.of(!1) }), 20), this.composing = 0; + this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: lM.of(!1) }), 20), this.composing = 0; } } -}), YJ = /* @__PURE__ */ ht.baseTheme({ +}), WJ = /* @__PURE__ */ ht.baseTheme({ ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": { fontFamily: "monospace", @@ -15193,21 +15193,21 @@ const J5e = 50, e3e = 1e3, t3e = /* @__PURE__ */ an.fromClass(class { "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" } } }); -class r3e { +class n3e { constructor(e, r, n, i) { this.field = e, this.line = r, this.from = n, this.to = i; } } -class lM { +class cM { constructor(e, r, n) { this.field = e, this.from = r, this.to = n; } map(e) { let r = e.mapPos(this.from, -1, Si.TrackDel), n = e.mapPos(this.to, 1, Si.TrackDel); - return r == null || n == null ? null : new lM(this.field, r, n); + return r == null || n == null ? null : new cM(this.field, r, n); } } -class cM { +class uM { constructor(e, r) { this.lines = e, this.fieldPositions = r; } @@ -15222,7 +15222,7 @@ class cM { } n.push(l), r += l.length + 1; } - let o = this.fieldPositions.map((l) => new lM(l.field, i[l.line] + l.from, i[l.line] + l.to)); + let o = this.fieldPositions.map((l) => new cM(l.field, i[l.line] + l.from, i[l.line] + l.to)); return { text: n, ranges: o }; } static parse(e) { @@ -15240,7 +15240,7 @@ class cM { for (let f of i) f.field >= u && f.field++; } - i.push(new r3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); + i.push(new n3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); } for (let o; o = /\\([{}])/.exec(a); ) { a = a.slice(0, o.index) + o[1] + a.slice(o.index + o[0].length); @@ -15249,10 +15249,10 @@ class cM { } n.push(a); } - return new cM(n, i); + return new uM(n, i); } } -let n3e = /* @__PURE__ */ Et.widget({ widget: /* @__PURE__ */ new class extends za { +let i3e = /* @__PURE__ */ Et.widget({ widget: /* @__PURE__ */ new class extends Va { toDOM() { let t = document.createElement("span"); return t.className = "cm-snippetFieldPosition", t; @@ -15260,10 +15260,10 @@ let n3e = /* @__PURE__ */ Et.widget({ widget: /* @__PURE__ */ new class extends ignoreEvent() { return !1; } -}() }), i3e = /* @__PURE__ */ Et.mark({ class: "cm-snippetField" }); +}() }), s3e = /* @__PURE__ */ Et.mark({ class: "cm-snippetField" }); class B1 { constructor(e, r) { - this.ranges = e, this.active = r, this.deco = Et.set(e.map((n) => (n.from == n.to ? n3e : i3e).range(n.from, n.to))); + this.ranges = e, this.active = r, this.deco = Et.set(e.map((n) => (n.from == n.to ? i3e : s3e).range(n.from, n.to))); } map(e) { let r = []; @@ -15283,7 +15283,7 @@ const jb = /* @__PURE__ */ Zt.define({ map(t, e) { return t && t.map(e); } -}), s3e = /* @__PURE__ */ Zt.define(), Py = /* @__PURE__ */ $n.define({ +}), a3e = /* @__PURE__ */ Zt.define(), Py = /* @__PURE__ */ $n.define({ create() { return null; }, @@ -15291,63 +15291,63 @@ const jb = /* @__PURE__ */ Zt.define({ for (let r of e.effects) { if (r.is(jb)) return r.value; - if (r.is(s3e) && t) + if (r.is(a3e) && t) return new B1(t.ranges, r.value); } return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t; }, provide: (t) => ht.decorations.from(t, (e) => e ? e.deco : Et.none) }); -function uM(t, e) { +function hM(t, e) { return Ve.create(t.filter((r) => r.field == e).map((r) => Ve.range(r.from, r.to))); } -function a3e(t) { - let e = cM.parse(t); +function o3e(t) { + let e = uM.parse(t); return (r, n, i, s) => { let { text: a, ranges: o } = e.instantiate(r.state, i), l = { changes: { from: i, to: s, insert: Dr.of(a) }, scrollIntoView: !0, - annotations: n ? VJ.of(n) : void 0 + annotations: n ? UJ.of(n) : void 0 }; - if (o.length && (l.selection = uM(o, 0)), o.length > 1) { + if (o.length && (l.selection = hM(o, 0)), o.length > 1) { let u = new B1(o, 0), h = l.effects = [jb.of(u)]; - r.state.field(Py, !1) === void 0 && h.push(Zt.appendConfig.of([Py, h3e, f3e, YJ])); + r.state.field(Py, !1) === void 0 && h.push(Zt.appendConfig.of([Py, f3e, d3e, WJ])); } r.dispatch(r.state.update(l)); }; } -function WJ(t) { +function GJ(t) { return ({ state: e, dispatch: r }) => { let n = e.field(Py, !1); if (!n || t < 0 && n.active == 0) return !1; let i = n.active + t, s = t > 0 && !n.ranges.some((a) => a.field == i + t); return r(e.update({ - selection: uM(n.ranges, i), + selection: hM(n.ranges, i), effects: jb.of(s ? null : new B1(n.ranges, i)), scrollIntoView: !0 })), !0; }; } -const o3e = ({ state: t, dispatch: e }) => t.field(Py, !1) ? (e(t.update({ effects: jb.of(null) })), !0) : !1, l3e = /* @__PURE__ */ WJ(1), c3e = /* @__PURE__ */ WJ(-1), u3e = [ - { key: "Tab", run: l3e, shift: c3e }, - { key: "Escape", run: o3e } +const l3e = ({ state: t, dispatch: e }) => t.field(Py, !1) ? (e(t.update({ effects: jb.of(null) })), !0) : !1, c3e = /* @__PURE__ */ GJ(1), u3e = /* @__PURE__ */ GJ(-1), h3e = [ + { key: "Tab", run: c3e, shift: u3e }, + { key: "Escape", run: l3e } ], _F = /* @__PURE__ */ _t.define({ combine(t) { - return t.length ? t[0] : u3e; + return t.length ? t[0] : h3e; } -}), h3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Tu.compute([_F], (t) => t.facet(_F))); +}), f3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Tu.compute([_F], (t) => t.facet(_F))); function ya(t, e) { - return Object.assign(Object.assign({}, e), { apply: a3e(t) }); + return Object.assign(Object.assign({}, e), { apply: o3e(t) }); } -const f3e = /* @__PURE__ */ ht.domEventHandlers({ +const d3e = /* @__PURE__ */ ht.domEventHandlers({ mousedown(t, e) { let r = e.state.field(Py, !1), n; if (!r || (n = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null) return !1; let i = r.ranges.find((s) => s.from <= n && s.to >= n); return !i || i.field == r.active ? !1 : (e.dispatch({ - selection: uM(r.ranges, i.field), + selection: hM(r.ranges, i.field), effects: jb.of(r.ranges.some((s) => s.field > i.field) ? new B1(r.ranges, i.field) : null), scrollIntoView: !0 }), !0); @@ -15361,11 +15361,11 @@ const f3e = /* @__PURE__ */ ht.domEventHandlers({ let r = e.mapPos(t, -1, Si.TrackAfter); return r == null ? void 0 : r; } -}), hM = /* @__PURE__ */ new class extends Xd { +}), fM = /* @__PURE__ */ new class extends Xd { }(); -hM.startSide = 1; -hM.endSide = -1; -const GJ = /* @__PURE__ */ $n.define({ +fM.startSide = 1; +fM.endSide = -1; +const HJ = /* @__PURE__ */ $n.define({ create() { return Er.empty; }, @@ -15375,39 +15375,39 @@ const GJ = /* @__PURE__ */ $n.define({ t = t.update({ filter: (n) => n >= r.from && n <= r.to }); } for (let r of e.effects) - r.is(_d) && (t = t.update({ add: [hM.range(r.value, r.value + 1)] })); + r.is(_d) && (t = t.update({ add: [fM.range(r.value, r.value + 1)] })); return t; } }); -function d3e() { - return [g3e, GJ]; +function p3e() { + return [m3e, HJ]; } -const ME = "()[]{}<>"; -function HJ(t) { - for (let e = 0; e < ME.length; e += 2) - if (ME.charCodeAt(e) == t) - return ME.charAt(e + 1); - return RR(t < 128 ? t : t + 1); +const DE = "()[]{}<>"; +function XJ(t) { + for (let e = 0; e < DE.length; e += 2) + if (DE.charCodeAt(e) == t) + return DE.charAt(e + 1); + return MR(t < 128 ? t : t + 1); } -function XJ(t, e) { +function ZJ(t, e) { return t.languageDataAt("closeBrackets", e)[0] || $y; } -const p3e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), g3e = /* @__PURE__ */ ht.inputHandler.of((t, e, r, n) => { - if ((p3e ? t.composing : t.compositionStarted) || t.state.readOnly) +const g3e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), m3e = /* @__PURE__ */ ht.inputHandler.of((t, e, r, n) => { + if ((g3e ? t.composing : t.compositionStarted) || t.state.readOnly) return !1; let i = t.state.selection.main; if (n.length > 2 || n.length == 2 && Eo(ss(n, 0)) == 1 || e != i.from || r != i.to) return !1; - let s = y3e(t.state, n); + let s = b3e(t.state, n); return s ? (t.dispatch(s), !0) : !1; -}), m3e = ({ state: t, dispatch: e }) => { +}), v3e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let n = XJ(t, t.selection.main.head).brackets || $y.brackets, i = null, s = t.changeByRange((a) => { + let n = ZJ(t, t.selection.main.head).brackets || $y.brackets, i = null, s = t.changeByRange((a) => { if (a.empty) { - let o = b3e(t.doc, a.head); + let o = x3e(t.doc, a.head); for (let l of n) - if (l == o && QS(t.doc, a.head) == HJ(ss(l, 0))) + if (l == o && YS(t.doc, a.head) == XJ(ss(l, 0))) return { changes: { from: a.head - l.length, to: a.head + l.length }, range: Ve.cursor(a.head - l.length) @@ -15416,35 +15416,35 @@ const p3e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: i = a }; }); return i || e(t.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !i; -}, v3e = [ - { key: "Backspace", run: m3e } +}, y3e = [ + { key: "Backspace", run: v3e } ]; -function y3e(t, e) { - let r = XJ(t, t.selection.main.head), n = r.brackets || $y.brackets; +function b3e(t, e) { + let r = ZJ(t, t.selection.main.head), n = r.brackets || $y.brackets; for (let i of n) { - let s = HJ(ss(i, 0)); + let s = XJ(ss(i, 0)); if (e == i) - return s == i ? O3e(t, i, n.indexOf(i + i + i) > -1, r) : x3e(t, i, s, r.before || $y.before); - if (e == s && ZJ(t, t.selection.main.from)) - return w3e(t, i, s); + return s == i ? k3e(t, i, n.indexOf(i + i + i) > -1, r) : w3e(t, i, s, r.before || $y.before); + if (e == s && jJ(t, t.selection.main.from)) + return O3e(t, i, s); } return null; } -function ZJ(t, e) { +function jJ(t, e) { let r = !1; - return t.field(GJ).between(0, t.doc.length, (n) => { + return t.field(HJ).between(0, t.doc.length, (n) => { n == e && (r = !0); }), r; } -function QS(t, e) { +function YS(t, e) { let r = t.sliceString(e, e + 2); return r.slice(0, Eo(ss(r, 0))); } -function b3e(t, e) { +function x3e(t, e) { let r = t.sliceString(e - 2, e); return Eo(ss(r, 0)) == r.length ? r : r.slice(1); } -function x3e(t, e, r, n) { +function w3e(t, e, r, n) { let i = null, s = t.changeByRange((a) => { if (!a.empty) return { @@ -15452,7 +15452,7 @@ function x3e(t, e, r, n) { effects: _d.of(a.to + e.length), range: Ve.range(a.anchor + e.length, a.head + e.length) }; - let o = QS(t.doc, a.head); + let o = YS(t.doc, a.head); return !o || /\s/.test(o) || n.indexOf(o) > -1 ? { changes: { insert: e + r, from: a.head }, effects: _d.of(a.head + e.length), @@ -15464,8 +15464,8 @@ function x3e(t, e, r, n) { userEvent: "input.type" }); } -function w3e(t, e, r) { - let n = null, i = t.changeByRange((s) => s.empty && QS(t.doc, s.head) == r ? { +function O3e(t, e, r) { + let n = null, i = t.changeByRange((s) => s.empty && YS(t.doc, s.head) == r ? { changes: { from: s.head, to: s.head + r.length, insert: r }, range: Ve.cursor(s.head + r.length) } : n = { range: s }); @@ -15474,7 +15474,7 @@ function w3e(t, e, r) { userEvent: "input.type" }); } -function O3e(t, e, r, n) { +function k3e(t, e, r, n) { let i = n.stringPrefixes || $y.stringPrefixes, s = null, a = t.changeByRange((o) => { if (!o.empty) return { @@ -15482,7 +15482,7 @@ function O3e(t, e, r, n) { effects: _d.of(o.to + e.length), range: Ve.range(o.anchor + e.length, o.head + e.length) }; - let l = o.head, u = QS(t.doc, l), h; + let l = o.head, u = YS(t.doc, l), h; if (u == e) { if (AF(t, l)) return { @@ -15490,7 +15490,7 @@ function O3e(t, e, r, n) { effects: _d.of(l + e.length), range: Ve.cursor(l + e.length) }; - if (ZJ(t, l)) { + if (jJ(t, l)) { let d = r && t.sliceDoc(l, l + e.length * 3) == e + e + e ? e + e + e : e; return { changes: { from: l, to: l + d.length, insert: d }, @@ -15504,7 +15504,7 @@ function O3e(t, e, r, n) { effects: _d.of(l + e.length), range: Ve.cursor(l + e.length) }; - if (t.charCategorizer(l)(u) != Sn.Word && LF(t, l, i) > -1 && !k3e(t, l, e, i)) + if (t.charCategorizer(l)(u) != Sn.Word && LF(t, l, i) > -1 && !S3e(t, l, e, i)) return { changes: { insert: e + e, from: l }, effects: _d.of(l + e.length), @@ -15522,7 +15522,7 @@ function AF(t, e) { let r = fn(t).resolveInner(e + 1); return r.parent && r.from == e; } -function k3e(t, e, r, n) { +function S3e(t, e, r, n) { let i = fn(t).resolveInner(e, -1), s = n.reduce((a, o) => Math.max(a, o.length), 0); for (let a = 0; a < 5; a++) { let o = t.sliceDoc(i.from, Math.min(i.to, i.from + r.length + s)), l = o.indexOf(r); @@ -15553,25 +15553,25 @@ function LF(t, e, r) { } return -1; } -function S3e(t = {}) { +function T3e(t = {}) { return [ - to, + ro, Ds.of(t), - t3e, - T3e, - YJ + r3e, + C3e, + WJ ]; } -const jJ = [ - { key: "Ctrl-Space", run: Z5e }, - { key: "Escape", run: j5e }, +const KJ = [ + { key: "Ctrl-Space", run: j5e }, + { key: "Escape", run: K5e }, { key: "ArrowDown", run: /* @__PURE__ */ Aw(!0) }, { key: "ArrowUp", run: /* @__PURE__ */ Aw(!1) }, { key: "PageDown", run: /* @__PURE__ */ Aw(!0, "page") }, { key: "PageUp", run: /* @__PURE__ */ Aw(!1, "page") }, - { key: "Enter", run: X5e } -], T3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Tu.computeN([Ds], (t) => t.facet(Ds).defaultKeymap ? [jJ] : [])); -class C3e { + { key: "Enter", run: Z5e } +], C3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Tu.computeN([Ds], (t) => t.facet(Ds).defaultKeymap ? [KJ] : [])); +class E3e { constructor(e, r, n) { this.from = e, this.to = r, this.diagnostic = n; } @@ -15581,10 +15581,10 @@ class md { this.diagnostics = e, this.panel = r, this.selected = n; } static init(e, r, n) { - let i = e, s = n.facet(eee).markerFilter; + let i = e, s = n.facet(tee).markerFilter; s && (i = s(i)); let a = Et.set(i.map((o) => o.from == o.to || o.from == o.to - 1 && n.doc.lineAt(o.from).to == o.from ? Et.widget({ - widget: new I3e(o), + widget: new P3e(o), diagnostic: o }).range(o.from) : Et.mark({ attributes: { class: "cm-lintRange cm-lintRange-" + o.severity + (o.markClass ? " " + o.markClass : "") }, @@ -15597,17 +15597,17 @@ function Rg(t, e = null, r = 0) { let n = null; return t.between(r, 1e9, (i, s, { spec: a }) => { if (!(e && a.diagnostic != e)) - return n = new C3e(i, s, a.diagnostic), !1; + return n = new E3e(i, s, a.diagnostic), !1; }), n; } -function E3e(t, e) { +function _3e(t, e) { let r = t.startState.doc.lineAt(e.pos); - return !!(t.effects.some((n) => n.is(KJ)) || t.changes.touchesRange(r.from, r.to)); + return !!(t.effects.some((n) => n.is(JJ)) || t.changes.touchesRange(r.from, r.to)); } -function _3e(t, e) { - return t.field(no, !1) ? e : e.concat(Zt.appendConfig.of(B3e)); +function A3e(t, e) { + return t.field(io, !1) ? e : e.concat(Zt.appendConfig.of(F3e)); } -const KJ = /* @__PURE__ */ Zt.define(), fM = /* @__PURE__ */ Zt.define(), JJ = /* @__PURE__ */ Zt.define(), no = /* @__PURE__ */ $n.define({ +const JJ = /* @__PURE__ */ Zt.define(), dM = /* @__PURE__ */ Zt.define(), eee = /* @__PURE__ */ Zt.define(), io = /* @__PURE__ */ $n.define({ create() { return new md(Et.none, null, null); }, @@ -15621,50 +15621,50 @@ const KJ = /* @__PURE__ */ Zt.define(), fM = /* @__PURE__ */ Zt.define(), JJ = / t = new md(r, t.panel, n); } for (let r of e.effects) - r.is(KJ) ? t = md.init(r.value, t.panel, e.state) : r.is(fM) ? t = new md(t.diagnostics, r.value ? YS.open : null, t.selected) : r.is(JJ) && (t = new md(t.diagnostics, t.panel, r.value)); + r.is(JJ) ? t = md.init(r.value, t.panel, e.state) : r.is(dM) ? t = new md(t.diagnostics, r.value ? WS.open : null, t.selected) : r.is(eee) && (t = new md(t.diagnostics, t.panel, r.value)); return t; }, provide: (t) => [ Ey.from(t, (e) => e.panel), ht.decorations.from(t, (e) => e.diagnostics) ] -}), A3e = /* @__PURE__ */ Et.mark({ class: "cm-lintRange cm-lintRange-active" }); -function L3e(t, e, r) { - let { diagnostics: n } = t.state.field(no), i = [], s = 2e8, a = 0; +}), L3e = /* @__PURE__ */ Et.mark({ class: "cm-lintRange cm-lintRange-active" }); +function R3e(t, e, r) { + let { diagnostics: n } = t.state.field(io), i = [], s = 2e8, a = 0; n.between(e - (r < 0 ? 1 : 0), e + (r > 0 ? 1 : 0), (l, u, { spec: h }) => { e >= l && e <= u && (l == u || (e > l || r > 0) && (e < u || r < 0)) && (i.push(h.diagnostic), s = Math.min(l, s), a = Math.max(u, a)); }); - let o = t.state.facet(eee).tooltipFilter; + let o = t.state.facet(tee).tooltipFilter; return o && (i = o(i)), i.length ? { pos: s, end: a, above: t.state.doc.lineAt(s).to < a, create() { - return { dom: R3e(t, i) }; + return { dom: M3e(t, i) }; } } : null; } -function R3e(t, e) { - return cn("ul", { class: "cm-tooltip-lint" }, e.map((r) => ree(t, r, !1))); +function M3e(t, e) { + return cn("ul", { class: "cm-tooltip-lint" }, e.map((r) => nee(t, r, !1))); } -const M3e = (t) => { - let e = t.state.field(no, !1); - (!e || !e.panel) && t.dispatch({ effects: _3e(t.state, [fM.of(!0)]) }); - let r = Cy(t, YS.open); +const D3e = (t) => { + let e = t.state.field(io, !1); + (!e || !e.panel) && t.dispatch({ effects: A3e(t.state, [dM.of(!0)]) }); + let r = Cy(t, WS.open); return r && r.dom.querySelector(".cm-panel-lint ul").focus(), !0; }, RF = (t) => { - let e = t.state.field(no, !1); - return !e || !e.panel ? !1 : (t.dispatch({ effects: fM.of(!1) }), !0); -}, D3e = (t) => { - let e = t.state.field(no, !1); + let e = t.state.field(io, !1); + return !e || !e.panel ? !1 : (t.dispatch({ effects: dM.of(!1) }), !0); +}, N3e = (t) => { + let e = t.state.field(io, !1); if (!e) return !1; let r = t.state.selection.main, n = e.diagnostics.iter(r.to + 1); return !n.value && (n = e.diagnostics.iter(0), !n.value || n.from == r.from && n.to == r.to) ? !1 : (t.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0 }), !0); -}, N3e = [ - { key: "Mod-Shift-m", run: M3e, preventDefault: !0 }, - { key: "F8", run: D3e } -], eee = /* @__PURE__ */ _t.define({ +}, I3e = [ + { key: "Mod-Shift-m", run: D3e, preventDefault: !0 }, + { key: "F8", run: N3e } +], tee = /* @__PURE__ */ _t.define({ combine(t) { return Object.assign({ sources: t.map((e) => e.source) }, qc(t.map((e) => e.config), { delay: 750, @@ -15676,7 +15676,7 @@ const M3e = (t) => { })); } }); -function tee(t) { +function ree(t) { let e = []; if (t) e: @@ -15692,15 +15692,15 @@ function tee(t) { } return e; } -function ree(t, e, r) { +function nee(t, e, r) { var n; - let i = r ? tee(e.actions) : []; + let i = r ? ree(e.actions) : []; return cn("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, cn("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage() : e.message), (n = e.actions) === null || n === void 0 ? void 0 : n.map((s, a) => { let o = !1, l = (d) => { if (d.preventDefault(), o) return; o = !0; - let p = Rg(t.state.field(no).diagnostics, e); + let p = Rg(t.state.field(io).diagnostics, e); p && s.apply(t, p.from, p.to); }, { name: u } = s, h = i[a] ? u.indexOf(i[a]) : -1, f = h < 0 ? u : [ u.slice(0, h), @@ -15716,7 +15716,7 @@ function ree(t, e, r) { }, f); }), e.source && cn("div", { class: "cm-diagnosticSource" }, e.source)); } -class I3e extends za { +class P3e extends Va { constructor(e) { super(), this.diagnostic = e; } @@ -15729,10 +15729,10 @@ class I3e extends za { } class MF { constructor(e, r) { - this.diagnostic = r, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = ree(e, r, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); + this.diagnostic = r, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = nee(e, r, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); } } -class YS { +class WS { constructor(e) { this.view = e, this.items = []; let r = (i) => { @@ -15749,10 +15749,10 @@ class YS { else if (i.keyCode == 13) this.view.focus(); else if (i.keyCode >= 65 && i.keyCode <= 90 && this.selectedIndex >= 0) { - let { diagnostic: s } = this.items[this.selectedIndex], a = tee(s.actions); + let { diagnostic: s } = this.items[this.selectedIndex], a = ree(s.actions); for (let o = 0; o < a.length; o++) if (a[o].toUpperCase().charCodeAt(0) == i.keyCode) { - let l = Rg(this.view.state.field(no).diagnostics, s); + let l = Rg(this.view.state.field(io).diagnostics, s); l && s.actions[o].apply(e, l.from, l.to); } } else @@ -15776,7 +15776,7 @@ class YS { }, "\xD7")), this.update(); } get selectedIndex() { - let e = this.view.state.field(no).selected; + let e = this.view.state.field(io).selected; if (!e) return -1; for (let r = 0; r < this.items.length; r++) @@ -15785,7 +15785,7 @@ class YS { return -1; } update() { - let { diagnostics: e, selected: r } = this.view.state.field(no), n = 0, i = !1, s = null; + let { diagnostics: e, selected: r } = this.view.state.field(io), n = 0, i = !1, s = null; for (e.between(0, this.view.state.doc.length, (a, o, { spec: l }) => { let u = -1, h; for (let f = n; f < this.items.length; f++) @@ -15829,24 +15829,24 @@ class YS { moveSelection(e) { if (this.selectedIndex < 0) return; - let r = this.view.state.field(no), n = Rg(r.diagnostics, this.items[e].diagnostic); + let r = this.view.state.field(io), n = Rg(r.diagnostics, this.items[e].diagnostic); !n || this.view.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0, - effects: JJ.of(n) + effects: eee.of(n) }); } static open(e) { - return new YS(e); + return new WS(e); } } -function P3e(t, e = 'viewBox="0 0 40 40"') { +function $3e(t, e = 'viewBox="0 0 40 40"') { return `url('data:image/svg+xml,${encodeURIComponent(t)}')`; } function Lw(t) { - return P3e(``, 'width="6" height="3"'); + return $3e(``, 'width="6" height="3"'); } -const $3e = /* @__PURE__ */ ht.baseTheme({ +const B3e = /* @__PURE__ */ ht.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", @@ -15936,53 +15936,53 @@ const $3e = /* @__PURE__ */ ht.baseTheme({ margin: 0 } } -}), B3e = [ - no, - /* @__PURE__ */ ht.decorations.compute([no], (t) => { - let { selected: e, panel: r } = t.field(no); +}), F3e = [ + io, + /* @__PURE__ */ ht.decorations.compute([io], (t) => { + let { selected: e, panel: r } = t.field(io); return !e || !r || e.from == e.to ? Et.none : Et.set([ - A3e.range(e.from, e.to) + L3e.range(e.from, e.to) ]); }), - /* @__PURE__ */ Mwe(L3e, { hideOn: E3e }), - $3e -], F3e = /* @__PURE__ */ (() => [ - zwe(), - qwe(), - gK(), - eM(), - POe(), - fK(), - swe(), - dr.allowMultipleSelections.of(!0), - kOe(), - UK(qK, { fallback: !0 }), - WOe(), - d3e(), - S3e(), - wwe(), - Swe(), + /* @__PURE__ */ Dwe(R3e, { hideOn: _3e }), + B3e +], z3e = /* @__PURE__ */ (() => [ + Vwe(), + Qwe(), mK(), - u5e(), + tM(), + $Oe(), + dK(), + awe(), + dr.allowMultipleSelections.of(!0), + SOe(), + qK(QK, { fallback: !0 }), + GOe(), + p3e(), + T3e(), + Owe(), + Twe(), + vK(), + h5e(), Tu.of([ - ...v3e, - ...EJ, - ...A5e, - ...eJ, - ...MOe, - ...jJ, - ...N3e + ...y3e, + ..._J, + ...L5e, + ...tJ, + ...DOe, + ...KJ, + ...I3e ]) -])(), z3e = /* @__PURE__ */ (() => [ - gK(), - eM(), - fK(), - UK(qK, { fallback: !0 }), +])(), V3e = /* @__PURE__ */ (() => [ + mK(), + tM(), + dK(), + qK(QK, { fallback: !0 }), Tu.of([ - ...EJ, - ...eJ + ..._J, + ...tJ ]) -])(), xl = () => /* @__PURE__ */ new Map(), T7 = (t) => { +])(), xl = () => /* @__PURE__ */ new Map(), C7 = (t) => { const e = xl(); return t.forEach((r, n) => { e.set(n, r); @@ -15990,26 +15990,26 @@ const $3e = /* @__PURE__ */ ht.baseTheme({ }, nh = (t, e, r) => { let n = t.get(e); return n === void 0 && t.set(e, n = r()), n; -}, V3e = (t, e) => { +}, U3e = (t, e) => { const r = []; for (const [n, i] of t) r.push(e(i, n)); return r; -}, U3e = (t, e) => { +}, q3e = (t, e) => { for (const [r, n] of t) if (e(n, r)) return !0; return !1; -}, jd = () => /* @__PURE__ */ new Set(), DE = (t) => t[t.length - 1], q3e = (t, e) => { +}, jd = () => /* @__PURE__ */ new Set(), NE = (t) => t[t.length - 1], Q3e = (t, e) => { for (let r = 0; r < e.length; r++) t.push(e[r]); -}, hf = Array.from, Q3e = (t, e) => { +}, hf = Array.from, Y3e = (t, e) => { for (let r = 0; r < t.length; r++) if (e(t[r], r, t)) return !0; return !1; -}, C7 = Array.isArray; -class WS { +}, E7 = Array.isArray; +class GS { constructor() { this._observers = xl(); } @@ -16033,12 +16033,12 @@ class WS { this._observers = xl(); } } -const zu = Math.floor, d4 = Math.abs, GS = (t, e) => t < e ? t : e, Bf = (t, e) => t > e ? t : e, Y3e = Math.pow, nee = (t) => t !== 0 ? t < 0 : 1 / t < 0, DF = 1, NF = 2, NE = 4, IE = 8, By = 32, Eu = 64, so = 128, HS = 31, E7 = 63, Vd = 127, W3e = 2147483647, iee = Number.MAX_SAFE_INTEGER, G3e = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && zu(t) === t), H3e = String.fromCharCode, X3e = (t) => t.toLowerCase(), Z3e = /^\s*/g, j3e = (t) => t.replace(Z3e, ""), K3e = /([A-Z])/g, IF = (t, e) => j3e(t.replace(K3e, (r) => `${e}${X3e(r)}`)), J3e = (t) => { +const zu = Math.floor, d4 = Math.abs, HS = (t, e) => t < e ? t : e, Bf = (t, e) => t > e ? t : e, W3e = Math.pow, iee = (t) => t !== 0 ? t < 0 : 1 / t < 0, DF = 1, NF = 2, IE = 4, PE = 8, By = 32, Eu = 64, so = 128, XS = 31, _7 = 63, Vd = 127, G3e = 2147483647, see = Number.MAX_SAFE_INTEGER, H3e = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && zu(t) === t), X3e = String.fromCharCode, Z3e = (t) => t.toLowerCase(), j3e = /^\s*/g, K3e = (t) => t.replace(j3e, ""), J3e = /([A-Z])/g, IF = (t, e) => K3e(t.replace(J3e, (r) => `${e}${Z3e(r)}`)), eke = (t) => { const e = unescape(encodeURIComponent(t)), r = e.length, n = new Uint8Array(r); for (let i = 0; i < r; i++) n[i] = e.codePointAt(i); return n; -}, Fy = typeof TextEncoder < "u" ? new TextEncoder() : null, eke = (t) => Fy.encode(t), tke = Fy ? eke : J3e; +}, Fy = typeof TextEncoder < "u" ? new TextEncoder() : null, tke = (t) => Fy.encode(t), rke = Fy ? tke : eke; let Gv = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 }); Gv && Gv.decode(new Uint8Array()).length === 1 && (Gv = null); class Kb { @@ -16046,77 +16046,77 @@ class Kb { this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = []; } } -const _s = () => new Kb(), dM = (t) => { +const _s = () => new Kb(), pM = (t) => { let e = t.cpos; for (let r = 0; r < t.bufs.length; r++) e += t.bufs[r].length; return e; }, Ln = (t) => { - const e = new Uint8Array(dM(t)); + const e = new Uint8Array(pM(t)); let r = 0; for (let n = 0; n < t.bufs.length; n++) { const i = t.bufs[n]; e.set(i, r), r += i.length; } return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), r), e; -}, rke = (t, e) => { +}, nke = (t, e) => { const r = t.cbuf.length; r - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(Bf(r, e) * 2), t.cpos = 0); -}, Vi = (t, e) => { +}, Ui = (t, e) => { const r = t.cbuf.length; t.cpos === r && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(r * 2), t.cpos = 0), t.cbuf[t.cpos++] = e; -}, _7 = Vi, Wt = (t, e) => { +}, A7 = Ui, Wt = (t, e) => { for (; e > Vd; ) - Vi(t, so | Vd & e), e = zu(e / 128); - Vi(t, Vd & e); -}, pM = (t, e) => { - const r = nee(e); - for (r && (e = -e), Vi(t, (e > E7 ? so : 0) | (r ? Eu : 0) | E7 & e), e = zu(e / 64); e > 0; ) - Vi(t, (e > Vd ? so : 0) | Vd & e), e = zu(e / 128); -}, A7 = new Uint8Array(3e4), nke = A7.length / 3, ike = (t, e) => { - if (e.length < nke) { - const r = Fy.encodeInto(e, A7).written || 0; + Ui(t, so | Vd & e), e = zu(e / 128); + Ui(t, Vd & e); +}, gM = (t, e) => { + const r = iee(e); + for (r && (e = -e), Ui(t, (e > _7 ? so : 0) | (r ? Eu : 0) | _7 & e), e = zu(e / 64); e > 0; ) + Ui(t, (e > Vd ? so : 0) | Vd & e), e = zu(e / 128); +}, L7 = new Uint8Array(3e4), ike = L7.length / 3, ske = (t, e) => { + if (e.length < ike) { + const r = Fy.encodeInto(e, L7).written || 0; Wt(t, r); for (let n = 0; n < r; n++) - Vi(t, A7[n]); + Ui(t, L7[n]); } else - Zn(t, tke(e)); -}, ske = (t, e) => { + Zn(t, rke(e)); +}, ake = (t, e) => { const r = unescape(encodeURIComponent(e)), n = r.length; Wt(t, n); for (let i = 0; i < n; i++) - Vi(t, r.codePointAt(i)); -}, Ud = Fy && Fy.encodeInto ? ike : ske, XS = (t, e) => { - const r = t.cbuf.length, n = t.cpos, i = GS(r - n, e.length), s = e.length - i; + Ui(t, r.codePointAt(i)); +}, Ud = Fy && Fy.encodeInto ? ske : ake, ZS = (t, e) => { + const r = t.cbuf.length, n = t.cpos, i = HS(r - n, e.length), s = e.length - i; t.cbuf.set(e.subarray(0, i), n), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Bf(r * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); }, Zn = (t, e) => { - Wt(t, e.byteLength), XS(t, e); -}, gM = (t, e) => { - rke(t, e); + Wt(t, e.byteLength), ZS(t, e); +}, mM = (t, e) => { + nke(t, e); const r = new DataView(t.cbuf.buffer, t.cpos, e); return t.cpos += e, r; -}, ake = (t, e) => gM(t, 4).setFloat32(0, e, !1), oke = (t, e) => gM(t, 8).setFloat64(0, e, !1), lke = (t, e) => gM(t, 8).setBigInt64(0, e, !1), PF = new DataView(new ArrayBuffer(4)), cke = (t) => (PF.setFloat32(0, t), PF.getFloat32(0) === t), zy = (t, e) => { +}, oke = (t, e) => mM(t, 4).setFloat32(0, e, !1), lke = (t, e) => mM(t, 8).setFloat64(0, e, !1), cke = (t, e) => mM(t, 8).setBigInt64(0, e, !1), PF = new DataView(new ArrayBuffer(4)), uke = (t) => (PF.setFloat32(0, t), PF.getFloat32(0) === t), zy = (t, e) => { switch (typeof e) { case "string": - Vi(t, 119), Ud(t, e); + Ui(t, 119), Ud(t, e); break; case "number": - G3e(e) && d4(e) <= W3e ? (Vi(t, 125), pM(t, e)) : cke(e) ? (Vi(t, 124), ake(t, e)) : (Vi(t, 123), oke(t, e)); + H3e(e) && d4(e) <= G3e ? (Ui(t, 125), gM(t, e)) : uke(e) ? (Ui(t, 124), oke(t, e)) : (Ui(t, 123), lke(t, e)); break; case "bigint": - Vi(t, 122), lke(t, e); + Ui(t, 122), cke(t, e); break; case "object": if (e === null) - Vi(t, 126); - else if (C7(e)) { - Vi(t, 117), Wt(t, e.length); + Ui(t, 126); + else if (E7(e)) { + Ui(t, 117), Wt(t, e.length); for (let r = 0; r < e.length; r++) zy(t, e[r]); } else if (e instanceof Uint8Array) - Vi(t, 116), Zn(t, e); + Ui(t, 116), Zn(t, e); else { - Vi(t, 118); + Ui(t, 118); const r = Object.keys(e); Wt(t, r.length); for (let n = 0; n < r.length; n++) { @@ -16126,10 +16126,10 @@ const _s = () => new Kb(), dM = (t) => { } break; case "boolean": - Vi(t, e ? 120 : 121); + Ui(t, e ? 120 : 121); break; default: - Vi(t, 127); + Ui(t, 127); } }; class $F extends Kb { @@ -16141,7 +16141,7 @@ class $F extends Kb { } } const BF = (t) => { - t.count > 0 && (pM(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && Wt(t.encoder, t.count - 2)); + t.count > 0 && (gM(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && Wt(t.encoder, t.count - 2)); }; class p4 { constructor() { @@ -16157,10 +16157,10 @@ class p4 { const FF = (t) => { if (t.count > 0) { const e = t.diff * 2 + (t.count === 1 ? 0 : 1); - pM(t.encoder, e), t.count > 1 && Wt(t.encoder, t.count - 2); + gM(t.encoder, e), t.count > 1 && Wt(t.encoder, t.count - 2); } }; -class PE { +class $E { constructor() { this.encoder = new Kb(), this.s = 0, this.count = 0, this.diff = 0; } @@ -16171,7 +16171,7 @@ class PE { return FF(this), Ln(this.encoder); } } -class uke { +class hke { constructor() { this.sarr = [], this.s = "", this.lensE = new p4(); } @@ -16180,35 +16180,35 @@ class uke { } toUint8Array() { const e = new Kb(); - return this.sarr.push(this.s), this.s = "", Ud(e, this.sarr.join("")), XS(e, this.lensE.toUint8Array()), Ln(e); + return this.sarr.push(this.s), this.s = "", Ud(e, this.sarr.join("")), ZS(e, this.lensE.toUint8Array()), Ln(e); } } const ff = (t) => new Error(t), Ac = () => { throw ff("Method unimplemented"); }, Il = () => { throw ff("Unexpected case"); -}, see = ff("Unexpected end of array"), aee = ff("Integer out of Range"); -class ZS { +}, aee = ff("Unexpected end of array"), oee = ff("Integer out of Range"); +class jS { constructor(e) { this.arr = e, this.pos = 0; } } -const Ff = (t) => new ZS(t), hke = (t) => t.pos !== t.arr.length, fke = (t, e) => { +const Ff = (t) => new jS(t), fke = (t) => t.pos !== t.arr.length, dke = (t, e) => { const r = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e); return t.pos += e, r; -}, Es = (t) => fke(t, or(t)), Mg = (t) => t.arr[t.pos++], or = (t) => { +}, Es = (t) => dke(t, or(t)), Mg = (t) => t.arr[t.pos++], or = (t) => { let e = 0, r = 1; const n = t.arr.length; for (; t.pos < n; ) { const i = t.arr[t.pos++]; if (e = e + (i & Vd) * r, r *= 128, i < so) return e; - if (e > iee) - throw aee; + if (e > see) + throw oee; } - throw see; -}, mM = (t) => { - let e = t.arr[t.pos++], r = e & E7, n = 64; + throw aee; +}, vM = (t) => { + let e = t.arr[t.pos++], r = e & _7, n = 64; const i = (e & Eu) > 0 ? -1 : 1; if ((e & so) === 0) return i * r; @@ -16216,11 +16216,11 @@ const Ff = (t) => new ZS(t), hke = (t) => t.pos !== t.arr.length, fke = (t, e) = for (; t.pos < s; ) { if (e = t.arr[t.pos++], r = r + (e & Vd) * n, n *= 128, e < so) return i * r; - if (r > iee) - throw aee; + if (r > see) + throw oee; } - throw see; -}, dke = (t) => { + throw aee; +}, pke = (t) => { let e = or(t); if (e === 0) return ""; @@ -16236,17 +16236,17 @@ const Ff = (t) => new ZS(t), hke = (t) => t.pos !== t.arr.length, fke = (t, e) = } return decodeURIComponent(escape(r)); } -}, pke = (t) => Gv.decode(Es(t)), Xh = Gv ? pke : dke, vM = (t, e) => { +}, gke = (t) => Gv.decode(Es(t)), Xh = Gv ? gke : pke, yM = (t, e) => { const r = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e); return t.pos += e, r; -}, gke = (t) => vM(t, 4).getFloat32(0, !1), mke = (t) => vM(t, 8).getFloat64(0, !1), vke = (t) => vM(t, 8).getBigInt64(0, !1), yke = [ +}, mke = (t) => yM(t, 4).getFloat32(0, !1), vke = (t) => yM(t, 8).getFloat64(0, !1), yke = (t) => yM(t, 8).getBigInt64(0, !1), bke = [ (t) => { }, (t) => null, - mM, - gke, + vM, mke, vke, + yke, (t) => !1, (t) => !0, Xh, @@ -16265,41 +16265,41 @@ const Ff = (t) => new ZS(t), hke = (t) => t.pos !== t.arr.length, fke = (t, e) = return r; }, Es -], Vy = (t) => yke[127 - Mg(t)](t); -class zF extends ZS { +], Vy = (t) => bke[127 - Mg(t)](t); +class zF extends jS { constructor(e, r) { super(e), this.reader = r, this.s = null, this.count = 0; } read() { - return this.count === 0 && (this.s = this.reader(this), hke(this) ? this.count = or(this) + 1 : this.count = -1), this.count--, this.s; + return this.count === 0 && (this.s = this.reader(this), fke(this) ? this.count = or(this) + 1 : this.count = -1), this.count--, this.s; } } -class g4 extends ZS { +class g4 extends jS { constructor(e) { super(e), this.s = 0, this.count = 0; } read() { if (this.count === 0) { - this.s = mM(this); - const e = nee(this.s); + this.s = vM(this); + const e = iee(this.s); this.count = 1, e && (this.s = -this.s, this.count = or(this) + 2); } return this.count--, this.s; } } -class $E extends ZS { +class BE extends jS { constructor(e) { super(e), this.s = 0, this.count = 0, this.diff = 0; } read() { if (this.count === 0) { - const e = mM(this), r = e & 1; + const e = vM(this), r = e & 1; this.diff = zu(e / 2), this.count = 1, r && (this.count = or(this) + 2); } return this.s += this.diff, this.count--, this.s; } } -class bke { +class xke { constructor(e) { this.decoder = new g4(e), this.str = Xh(this.decoder), this.spos = 0; } @@ -16308,13 +16308,13 @@ class bke { return this.spos = e, r; } } -const xke = crypto.getRandomValues.bind(crypto), oee = () => xke(new Uint32Array(1))[0], wke = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, Oke = () => wke.replace( +const wke = crypto.getRandomValues.bind(crypto), lee = () => wke(new Uint32Array(1))[0], Oke = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, kke = () => Oke.replace( /[018]/g, - (t) => (t ^ oee() & 15 >> t / 4).toString(16) + (t) => (t ^ lee() & 15 >> t / 4).toString(16) ), df = Date.now, VF = (t) => new Promise(t); Promise.all.bind(Promise); const UF = (t) => t === void 0 ? null : t; -class kke { +class Ske { constructor() { this.map = /* @__PURE__ */ new Map(); } @@ -16325,38 +16325,38 @@ class kke { return this.map.get(e); } } -let lee = new kke(), yM = !0; +let cee = new Ske(), bM = !0; try { - typeof localStorage < "u" && localStorage && (lee = localStorage, yM = !1); + typeof localStorage < "u" && localStorage && (cee = localStorage, bM = !1); } catch { } -const cee = lee, Ske = (t) => yM || addEventListener("storage", t), Tke = (t) => yM || removeEventListener("storage", t), Cke = Object.assign, Eke = Object.keys, _ke = (t, e) => { +const uee = cee, Tke = (t) => bM || addEventListener("storage", t), Cke = (t) => bM || removeEventListener("storage", t), Eke = Object.assign, _ke = Object.keys, Ake = (t, e) => { for (const r in t) e(t[r], r); -}, Ake = (t, e) => { +}, Lke = (t, e) => { const r = []; for (const n in t) r.push(e(t[n], n)); return r; -}, F5 = (t) => Eke(t).length, Lke = (t) => { +}, F5 = (t) => _ke(t).length, Rke = (t) => { for (const e in t) return !1; return !0; -}, Rke = (t, e) => { +}, Mke = (t, e) => { for (const r in t) if (!e(t[r], r)) return !1; return !0; -}, uee = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Mke = (t, e) => t === e || F5(t) === F5(e) && Rke(t, (r, n) => (r !== void 0 || uee(e, n)) && e[n] === r), bM = (t, e, r = 0) => { +}, hee = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Dke = (t, e) => t === e || F5(t) === F5(e) && Mke(t, (r, n) => (r !== void 0 || hee(e, n)) && e[n] === r), xM = (t, e, r = 0) => { try { for (; r < t.length; r++) t[r](...e); } finally { - r < t.length && bM(t, e, r + 1); + r < t.length && xM(t, e, r + 1); } -}, Dke = (t) => t, Nke = (t, e) => t === e, Hv = (t, e) => { +}, Nke = (t) => t, Ike = (t, e) => t === e, Hv = (t, e) => { if (t == null || e == null) - return Nke(t, e); + return Ike(t, e); if (t.constructor !== e.constructor) return !1; if (t === e) @@ -16392,7 +16392,7 @@ const cee = lee, Ske = (t) => yM || addEventListener("storage", t), Tke = (t) => if (F5(t) !== F5(e)) return !1; for (const r in t) - if (!uee(t, r) || !Hv(t[r], e[r])) + if (!hee(t, r) || !Hv(t[r], e[r])) return !1; break; case Array: @@ -16406,10 +16406,10 @@ const cee = lee, Ske = (t) => yM || addEventListener("storage", t), Tke = (t) => return !1; } return !0; -}, Ike = (t, e) => e.includes(t), Dg = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", hee = typeof window < "u" && typeof document < "u" && !Dg; +}, Pke = (t, e) => e.includes(t), Dg = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", fee = typeof window < "u" && typeof document < "u" && !Dg; typeof navigator < "u" && /Mac/.test(navigator.platform); let ec; -const Pke = () => { +const $ke = () => { if (ec === void 0) if (Dg) { ec = xl(); @@ -16428,40 +16428,40 @@ const Pke = () => { } })) : ec = xl(); return ec; -}, L7 = (t) => Pke().has(t), R7 = (t) => UF(Dg ? {}[t.toUpperCase()] : cee.getItem(t)), $ke = (t) => L7("--" + t) || R7(t) !== null; -$ke("production"); -const qF = Dg && Ike({}.FORCE_COLOR, ["true", "1", "2"]), Bke = !L7("no-colors") && (!Dg || process.stdout.isTTY || qF) && (!Dg || L7("color") || qF || R7("COLORTERM") !== null || (R7("TERM") || "").includes("color")), fee = (t) => new Uint8Array(t), Fke = (t, e, r) => new Uint8Array(t, e, r), zke = (t) => new Uint8Array(t), Vke = (t) => { +}, R7 = (t) => $ke().has(t), M7 = (t) => UF(Dg ? {}[t.toUpperCase()] : uee.getItem(t)), Bke = (t) => R7("--" + t) || M7(t) !== null; +Bke("production"); +const qF = Dg && Pke({}.FORCE_COLOR, ["true", "1", "2"]), Fke = !R7("no-colors") && (!Dg || process.stdout.isTTY || qF) && (!Dg || R7("color") || qF || M7("COLORTERM") !== null || (M7("TERM") || "").includes("color")), dee = (t) => new Uint8Array(t), zke = (t, e, r) => new Uint8Array(t, e, r), Vke = (t) => new Uint8Array(t), Uke = (t) => { let e = ""; for (let r = 0; r < t.byteLength; r++) - e += H3e(t[r]); + e += X3e(t[r]); return btoa(e); -}, Uke = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), qke = (t) => { - const e = atob(t), r = fee(e.length); +}, qke = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Qke = (t) => { + const e = atob(t), r = dee(e.length); for (let n = 0; n < e.length; n++) r[n] = e.charCodeAt(n); return r; -}, Qke = (t) => { +}, Yke = (t) => { const e = Buffer.from(t, "base64"); - return Fke(e.buffer, e.byteOffset, e.byteLength); -}, Yke = hee ? Vke : Uke, Wke = hee ? qke : Qke, Gke = (t) => { - const e = fee(t.byteLength); + return zke(e.buffer, e.byteOffset, e.byteLength); +}, Wke = fee ? Uke : qke, Gke = fee ? Qke : Yke, Hke = (t) => { + const e = dee(t.byteLength); return e.set(t), e; }; -class Hke { +class Xke { constructor(e, r) { this.left = e, this.right = r; } } -const Za = (t, e) => new Hke(t, e), Xke = (t, e) => t.forEach((r) => e(r.left, r.right)), Yc = typeof document < "u" ? document : {}, Zke = (t) => Yc.createElement(t), jke = () => Yc.createDocumentFragment(), Kke = (t) => Yc.createTextNode(t); +const ja = (t, e) => new Xke(t, e), Zke = (t, e) => t.forEach((r) => e(r.left, r.right)), Yc = typeof document < "u" ? document : {}, jke = (t) => Yc.createElement(t), Kke = () => Yc.createDocumentFragment(), Jke = (t) => Yc.createTextNode(t); typeof DOMParser < "u" && new DOMParser(); -const Jke = (t, e) => (Xke(e, (r, n) => { +const eSe = (t, e) => (Zke(e, (r, n) => { n === !1 ? t.removeAttribute(r) : n === !0 ? t.setAttribute(r, "") : t.setAttribute(r, n); -}), t), eSe = (t) => { - const e = jke(); +}), t), tSe = (t) => { + const e = Kke(); for (let r = 0; r < t.length; r++) - dee(e, t[r]); + pee(e, t[r]); return e; -}, tSe = (t, e) => (dee(t, eSe(e)), t), BE = (t, e = [], r = []) => tSe(Jke(Zke(t), e), r), Rw = Kke, rSe = (t) => V3e(t, (e, r) => `${r}:${e};`).join(""), dee = (t, e) => t.appendChild(e); +}, rSe = (t, e) => (pee(t, tSe(e)), t), FE = (t, e = [], r = []) => rSe(eSe(jke(t), e), r), Rw = Jke, nSe = (t) => U3e(t, (e, r) => `${r}:${e};`).join(""), pee = (t, e) => t.appendChild(e); Yc.ELEMENT_NODE; Yc.TEXT_NODE; Yc.CDATA_SECTION_NODE; @@ -16469,7 +16469,7 @@ Yc.COMMENT_NODE; Yc.DOCUMENT_NODE; Yc.DOCUMENT_TYPE_NODE; Yc.DOCUMENT_FRAGMENT_NODE; -const ih = Symbol, pee = ih(), gee = ih(), nSe = ih(), iSe = ih(), sSe = ih(), mee = ih(), aSe = ih(), xM = ih(), oSe = ih(), lSe = (t) => { +const ih = Symbol, gee = ih(), mee = ih(), iSe = ih(), sSe = ih(), aSe = ih(), vee = ih(), oSe = ih(), wM = ih(), lSe = ih(), cSe = (t) => { const e = []; let r = 0; for (; r < t.length; r++) { @@ -16477,25 +16477,25 @@ const ih = Symbol, pee = ih(), gee = ih(), nSe = ih(), iSe = ih(), sSe = ih(), m n.constructor === String || n.constructor === Number || n.constructor === Object && e.push(JSON.stringify(n)); } return e; -}, cSe = { - [pee]: Za("font-weight", "bold"), - [gee]: Za("font-weight", "normal"), - [nSe]: Za("color", "blue"), - [sSe]: Za("color", "green"), - [iSe]: Za("color", "grey"), - [mee]: Za("color", "red"), - [aSe]: Za("color", "purple"), - [xM]: Za("color", "orange"), - [oSe]: Za("color", "black") -}, uSe = (t) => { +}, uSe = { + [gee]: ja("font-weight", "bold"), + [mee]: ja("font-weight", "normal"), + [iSe]: ja("color", "blue"), + [aSe]: ja("color", "green"), + [sSe]: ja("color", "grey"), + [vee]: ja("color", "red"), + [oSe]: ja("color", "purple"), + [wM]: ja("color", "orange"), + [lSe]: ja("color", "black") +}, hSe = (t) => { const e = [], r = [], n = xl(); let i = [], s = 0; for (; s < t.length; s++) { - const a = t[s], o = cSe[a]; + const a = t[s], o = uSe[a]; if (o !== void 0) n.set(o.left, o.right); else if (a.constructor === String || a.constructor === Number) { - const l = rSe(n); + const l = nSe(n); s > 0 || l.length > 0 ? (e.push("%c" + a), r.push(l)) : e.push(a); } else break; @@ -16505,26 +16505,26 @@ const ih = Symbol, pee = ih(), gee = ih(), nSe = ih(), iSe = ih(), sSe = ih(), m a instanceof Symbol || i.push(a); } return i; -}, vee = Bke ? uSe : lSe, hSe = (...t) => { - console.log(...vee(t)), yee.forEach((e) => e.print(t)); -}, fSe = (...t) => { - console.warn(...vee(t)), t.unshift(xM), yee.forEach((e) => e.print(t)); -}, yee = jd(), bee = (t) => ({ +}, yee = Fke ? hSe : cSe, fSe = (...t) => { + console.log(...yee(t)), bee.forEach((e) => e.print(t)); +}, dSe = (...t) => { + console.warn(...yee(t)), t.unshift(wM), bee.forEach((e) => e.print(t)); +}, bee = jd(), xee = (t) => ({ [Symbol.iterator]() { return this; }, next: t -}), dSe = (t, e) => bee(() => { +}), pSe = (t, e) => xee(() => { let r; do r = t.next(); while (!r.done && !e(r.value)); return r; -}), FE = (t, e) => bee(() => { +}), zE = (t, e) => xee(() => { const { done: r, value: n } = t.next(); return { done: r, value: r ? void 0 : e(n) }; }); -class wM { +class OM { constructor(e, r) { this.clock = e, this.len = r; } @@ -16538,9 +16538,9 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { const s = t.doc.store.clients.get(i); for (let a = 0; a < n.length; a++) { const o = n[a]; - Nee(t, s, o.clock, o.len, r); + Iee(t, s, o.clock, o.len, r); } -}), pSe = (t, e) => { +}), gSe = (t, e) => { let r = 0, n = t.length - 1; for (; r <= n; ) { const i = zu((r + n) / 2), s = t[i], a = s.clock; @@ -16554,8 +16554,8 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { return null; }, Jb = (t, e) => { const r = t.clients.get(e.client); - return r !== void 0 && pSe(r, e.clock) !== null; -}, OM = (t) => { + return r !== void 0 && gSe(r, e.clock) !== null; +}, kM = (t) => { t.clients.forEach((e) => { e.sort((i, s) => i.clock - s.clock); let r, n; @@ -16565,22 +16565,22 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { } e.length = n; }); -}, M7 = (t) => { +}, D7 = (t) => { const e = new F1(); for (let r = 0; r < t.length; r++) t[r].clients.forEach((n, i) => { if (!e.clients.has(i)) { const s = n.slice(); for (let a = r + 1; a < t.length; a++) - q3e(s, t[a].clients.get(i) || []); + Q3e(s, t[a].clients.get(i) || []); e.clients.set(i, s); } }); - return OM(e), e; + return kM(e), e; }, Uy = (t, e, r, n) => { - nh(t.clients, e, () => []).push(new wM(r, n)); -}, xee = () => new F1(), gSe = (t) => { - const e = xee(); + nh(t.clients, e, () => []).push(new OM(r, n)); +}, wee = () => new F1(), mSe = (t) => { + const e = wee(); return t.clients.forEach((r, n) => { const i = []; for (let s = 0; s < r.length; s++) { @@ -16591,7 +16591,7 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { if (s + 1 < r.length) for (let u = r[s + 1]; s + 1 < r.length && u.deleted; u = r[++s + 1]) l += u.length; - i.push(new wM(o, l)); + i.push(new OM(o, l)); } } i.length > 0 && e.clients.set(n, i); @@ -16606,7 +16606,7 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { t.writeDsClock(a.clock), t.writeDsLen(a.len); } }); -}, kM = (t) => { +}, SM = (t) => { const e = new F1(), r = or(t.restDecoder); for (let n = 0; n < r; n++) { t.resetDsCurVal(); @@ -16614,7 +16614,7 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { if (s > 0) { const a = nh(e.clients, i, () => []); for (let o = 0; o < s; o++) - a.push(new wM(t.readDsClock(), t.readDsLen())); + a.push(new OM(t.readDsClock(), t.readDsLen())); } } return e; @@ -16639,10 +16639,10 @@ const Ng = (t, e, r) => e.clients.forEach((n, i) => { return Wt(s.restEncoder, 0), z1(s, n), s.toUint8Array(); } return null; -}, wee = oee; -class V1 extends WS { - constructor({ guid: e = Oke(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { - super(), this.gc = n, this.gcFilter = i, this.clientID = wee(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new Mee(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = o, this.autoLoad = a, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = VF((u) => { +}, Oee = lee; +class V1 extends GS { + constructor({ guid: e = kke(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { + super(), this.gc = n, this.gcFilter = i, this.clientID = Oee(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new Dee(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = o, this.autoLoad = a, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = VF((u) => { this.on("load", () => { this.isLoaded = !0, u(this); }); @@ -16729,7 +16729,7 @@ class V1 extends WS { super.off(e, r); } } -class Oee { +class kee { constructor(e) { this.restDecoder = e; } @@ -16742,7 +16742,7 @@ class Oee { return or(this.restDecoder); } } -class kee extends Oee { +class See extends kee { readLeftID() { return pr(or(this.restDecoder), or(this.restDecoder)); } @@ -16771,7 +16771,7 @@ class kee extends Oee { return Vy(this.restDecoder); } readBuf() { - return Gke(Es(this.restDecoder)); + return Hke(Es(this.restDecoder)); } readJSON() { return JSON.parse(Xh(this.restDecoder)); @@ -16780,7 +16780,7 @@ class kee extends Oee { return Xh(this.restDecoder); } } -class mSe { +class vSe { constructor(e) { this.dsCurrVal = 0, this.restDecoder = e; } @@ -16795,9 +16795,9 @@ class mSe { return this.dsCurrVal += e, e; } } -class Ig extends mSe { +class Ig extends vSe { constructor(e) { - super(e), this.keys = [], or(e), this.keyClockDecoder = new $E(Es(e)), this.clientDecoder = new g4(Es(e)), this.leftClockDecoder = new $E(Es(e)), this.rightClockDecoder = new $E(Es(e)), this.infoDecoder = new zF(Es(e), Mg), this.stringDecoder = new bke(Es(e)), this.parentInfoDecoder = new zF(Es(e), Mg), this.typeRefDecoder = new g4(Es(e)), this.lenDecoder = new g4(Es(e)); + super(e), this.keys = [], or(e), this.keyClockDecoder = new BE(Es(e)), this.clientDecoder = new g4(Es(e)), this.leftClockDecoder = new BE(Es(e)), this.rightClockDecoder = new BE(Es(e)), this.infoDecoder = new zF(Es(e), Mg), this.stringDecoder = new xke(Es(e)), this.parentInfoDecoder = new zF(Es(e), Mg), this.typeRefDecoder = new g4(Es(e)), this.lenDecoder = new g4(Es(e)); } readLeftID() { return new Zp(this.clientDecoder.read(), this.leftClockDecoder.read()); @@ -16842,7 +16842,7 @@ class Ig extends mSe { } } } -class See { +class Tee { constructor() { this.restEncoder = _s(); } @@ -16858,7 +16858,7 @@ class See { Wt(this.restEncoder, e); } } -class ex extends See { +class ex extends Tee { writeLeftID(e) { Wt(this.restEncoder, e.client), Wt(this.restEncoder, e.clock); } @@ -16869,7 +16869,7 @@ class ex extends See { Wt(this.restEncoder, e); } writeInfo(e) { - _7(this.restEncoder, e); + A7(this.restEncoder, e); } writeString(e) { Ud(this.restEncoder, e); @@ -16896,7 +16896,7 @@ class ex extends See { Ud(this.restEncoder, e); } } -class Tee { +class Cee { constructor() { this.restEncoder = _s(), this.dsCurrVal = 0; } @@ -16914,13 +16914,13 @@ class Tee { e === 0 && Il(), Wt(this.restEncoder, e - 1), this.dsCurrVal += e; } } -class Kd extends Tee { +class Kd extends Cee { constructor() { - super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new PE(), this.clientEncoder = new p4(), this.leftClockEncoder = new PE(), this.rightClockEncoder = new PE(), this.infoEncoder = new $F(_7), this.stringEncoder = new uke(), this.parentInfoEncoder = new $F(_7), this.typeRefEncoder = new p4(), this.lenEncoder = new p4(); + super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new $E(), this.clientEncoder = new p4(), this.leftClockEncoder = new $E(), this.rightClockEncoder = new $E(), this.infoEncoder = new $F(A7), this.stringEncoder = new hke(), this.parentInfoEncoder = new $F(A7), this.typeRefEncoder = new p4(), this.lenEncoder = new p4(); } toUint8Array() { const e = _s(); - return Wt(e, 0), Zn(e, this.keyClockEncoder.toUint8Array()), Zn(e, this.clientEncoder.toUint8Array()), Zn(e, this.leftClockEncoder.toUint8Array()), Zn(e, this.rightClockEncoder.toUint8Array()), Zn(e, Ln(this.infoEncoder)), Zn(e, this.stringEncoder.toUint8Array()), Zn(e, Ln(this.parentInfoEncoder)), Zn(e, this.typeRefEncoder.toUint8Array()), Zn(e, this.lenEncoder.toUint8Array()), XS(e, Ln(this.restEncoder)), Ln(e); + return Wt(e, 0), Zn(e, this.keyClockEncoder.toUint8Array()), Zn(e, this.clientEncoder.toUint8Array()), Zn(e, this.leftClockEncoder.toUint8Array()), Zn(e, this.rightClockEncoder.toUint8Array()), Zn(e, Ln(this.infoEncoder)), Zn(e, this.stringEncoder.toUint8Array()), Zn(e, Ln(this.parentInfoEncoder)), Zn(e, this.typeRefEncoder.toUint8Array()), Zn(e, this.lenEncoder.toUint8Array()), ZS(e, Ln(this.restEncoder)), Ln(e); } writeLeftID(e) { this.clientEncoder.write(e.client), this.leftClockEncoder.write(e.clock); @@ -16960,7 +16960,7 @@ class Kd extends Tee { r === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(e)) : this.keyClockEncoder.write(r); } } -const vSe = (t, e, r, n) => { +const ySe = (t, e, r, n) => { n = Bf(n, e[0].id.clock); const i = Nc(e, n); Wt(t.restEncoder, e.length - i), t.writeClient(r), Wt(t.restEncoder, n); @@ -16968,16 +16968,16 @@ const vSe = (t, e, r, n) => { s.write(t, n - s.id.clock); for (let a = i + 1; a < e.length; a++) e[a].write(t, 0); -}, SM = (t, e, r) => { +}, TM = (t, e, r) => { const n = /* @__PURE__ */ new Map(); r.forEach((i, s) => { ti(e, s) > i && n.set(s, i); - }), jS(e).forEach((i, s) => { + }), KS(e).forEach((i, s) => { r.has(s) || n.set(s, 0); }), Wt(t.restEncoder, n.size), hf(n.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { - vSe(t, e.clients.get(i), i, s); + ySe(t, e.clients.get(i), i, s); }); -}, ySe = (t, e) => { +}, bSe = (t, e) => { const r = xl(), n = or(t.restDecoder); for (let i = 0; i < n; i++) { const s = or(t.restDecoder), a = new Array(s), o = t.readClient(); @@ -16985,7 +16985,7 @@ const vSe = (t, e, r, n) => { r.set(o, { i: 0, refs: a }); for (let u = 0; u < s; u++) { const h = t.readInfo(); - switch (HS & h) { + switch (XS & h) { case 0: { const f = t.readLen(); a[u] = new _o(pr(o, l), f), l += f; @@ -17005,7 +17005,7 @@ const vSe = (t, e, r, n) => { (h & Eu) === Eu ? t.readRightID() : null, f ? t.readParentInfo() ? e.get(t.readString()) : t.readLeftID() : null, f && (h & By) === By ? t.readString() : null, - ete(t, h) + tte(t, h) ); a[u] = d, l += d.length; } @@ -17013,7 +17013,7 @@ const vSe = (t, e, r, n) => { } } return r; -}, bSe = (t, e, r) => { +}, xSe = (t, e, r) => { const n = []; let i = hf(r.keys()).sort((p, g) => p - g); if (i.length === 0) @@ -17032,7 +17032,7 @@ const vSe = (t, e, r, n) => { let a = s(); if (a === null) return null; - const o = new Mee(), l = /* @__PURE__ */ new Map(), u = (p, g) => { + const o = new Dee(), l = /* @__PURE__ */ new Map(), u = (p, g) => { const m = l.get(p); (m == null || m > g) && l.set(p, g); }; @@ -17076,13 +17076,13 @@ const vSe = (t, e, r, n) => { } if (o.clients.size > 0) { const p = new Kd(); - return SM(p, o, /* @__PURE__ */ new Map()), Wt(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; + return TM(p, o, /* @__PURE__ */ new Map()), Wt(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; } return null; -}, xSe = (t, e) => SM(t, e.doc.store, e.beforeState), wSe = (t, e, r, n = new Ig(t)) => tn(e, (i) => { +}, wSe = (t, e) => TM(t, e.doc.store, e.beforeState), OSe = (t, e, r, n = new Ig(t)) => tn(e, (i) => { i.local = !1; let s = !1; - const a = i.doc, o = a.store, l = ySe(n, a), u = bSe(i, o, l), h = o.pendingStructs; + const a = i.doc, o = a.store, l = bSe(n, a), u = xSe(i, o, l), h = o.pendingStructs; if (h) { for (const [d, p] of h.missing) if (p < ti(o, d)) { @@ -17108,49 +17108,49 @@ const vSe = (t, e, r, n) => { o.pendingDs = f; if (s) { const d = o.pendingStructs.update; - o.pendingStructs = null, Cee(i.doc, d); + o.pendingStructs = null, Eee(i.doc, d); } -}, r, !1), Cee = (t, e, r, n = Ig) => { +}, r, !1), Eee = (t, e, r, n = Ig) => { const i = Ff(e); - wSe(i, t, r, new n(i)); -}, OSe = (t, e, r) => Cee(t, e, r, kee), kSe = (t, e, r = /* @__PURE__ */ new Map()) => { - SM(t, e.store, r), z1(t, gSe(e.store)); -}, SSe = (t, e = new Uint8Array([0]), r = new Kd()) => { - const n = Eee(e); - kSe(r, t, n); + OSe(i, t, r, new n(i)); +}, kSe = (t, e, r) => Eee(t, e, r, See), SSe = (t, e, r = /* @__PURE__ */ new Map()) => { + TM(t, e.store, r), z1(t, mSe(e.store)); +}, TSe = (t, e = new Uint8Array([0]), r = new Kd()) => { + const n = _ee(e); + SSe(r, t, n); const i = [r.toUint8Array()]; - if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(QSe(t.store.pendingStructs.update, e)), i.length > 1) { + if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(YSe(t.store.pendingStructs.update, e)), i.length > 1) { if (r.constructor === ex) - return USe(i.map((s, a) => a === 0 ? s : WSe(s))); + return qSe(i.map((s, a) => a === 0 ? s : GSe(s))); if (r.constructor === Kd) return V5(i); } return i[0]; -}, TSe = (t, e) => SSe(t, e, new ex()), CSe = (t) => { +}, CSe = (t, e) => TSe(t, e, new ex()), ESe = (t) => { const e = /* @__PURE__ */ new Map(), r = or(t.restDecoder); for (let n = 0; n < r; n++) { const i = or(t.restDecoder), s = or(t.restDecoder); e.set(i, s); } return e; -}, Eee = (t) => CSe(new Oee(Ff(t))), _ee = (t, e) => (Wt(t.restEncoder, e.size), hf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { +}, _ee = (t) => ESe(new kee(Ff(t))), Aee = (t, e) => (Wt(t.restEncoder, e.size), hf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { Wt(t.restEncoder, r), Wt(t.restEncoder, n); -}), t), ESe = (t, e) => _ee(t, jS(e.store)), _Se = (t, e = new Tee()) => (t instanceof Map ? _ee(e, t) : ESe(e, t), e.toUint8Array()), ASe = (t) => _Se(t, new See()); -class LSe { +}), t), _Se = (t, e) => Aee(t, KS(e.store)), ASe = (t, e = new Cee()) => (t instanceof Map ? Aee(e, t) : _Se(e, t), e.toUint8Array()), LSe = (t) => ASe(t, new Tee()); +class RSe { constructor() { this.l = []; } } -const YF = () => new LSe(), WF = (t, e) => t.l.push(e), GF = (t, e) => { +const YF = () => new RSe(), WF = (t, e) => t.l.push(e), GF = (t, e) => { const r = t.l, n = r.length; t.l = r.filter((i) => e !== i), n === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist."); -}, Aee = (t, e, r) => bM(t.l, [e, r]); +}, Lee = (t, e, r) => xM(t.l, [e, r]); class Zp { constructor(e, r) { this.client = e, this.clock = r; } } -const Rp = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, pr = (t, e) => new Zp(t, e), Lee = (t) => { +const Rp = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, pr = (t, e) => new Zp(t, e), Ree = (t) => { for (const [e, r] of t.doc.share.entries()) if (r === t) return e; @@ -17163,7 +17163,7 @@ const Rp = (t, e) => t === e || t !== null && e !== null && t.client === e.clien } return !1; }; -class Ree { +class Mee { constructor(e, r, n, i = 0) { this.type = e, this.tname = r, this.item = n, this.assoc = i; } @@ -17171,16 +17171,16 @@ class Ree { const HF = (t) => { const e = {}; return t.type && (e.type = t.type), t.tname && (e.tname = t.tname), t.item && (e.item = t.item), t.assoc != null && (e.assoc = t.assoc), e; -}, qy = (t) => new Ree(t.type == null ? null : pr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : pr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); -class RSe { +}, qy = (t) => new Mee(t.type == null ? null : pr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : pr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); +class MSe { constructor(e, r, n = 0) { this.type = e, this.index = r, this.assoc = n; } } -const MSe = (t, e, r = 0) => new RSe(t, e, r), Mw = (t, e, r) => { +const DSe = (t, e, r = 0) => new MSe(t, e, r), Mw = (t, e, r) => { let n = null, i = null; - return t._item === null ? i = Lee(t) : n = pr(t._item.id.client, t._item.id.clock), new Ree(n, i, e, r); -}, D7 = (t, e, r = 0) => { + return t._item === null ? i = Ree(t) : n = pr(t._item.id.client, t._item.id.clock), new Mee(n, i, e, r); +}, N7 = (t, e, r = 0) => { let n = t._start; if (r < 0) { if (e === 0) @@ -17198,13 +17198,13 @@ const MSe = (t, e, r = 0) => new RSe(t, e, r), Mw = (t, e, r) => { n = n.right; } return Mw(t, null, r); -}, N7 = (t, e) => { +}, I7 = (t, e) => { const r = e.store, n = t.item, i = t.type, s = t.tname, a = t.assoc; let o = null, l = 0; if (n !== null) { if (ti(r, n.client) <= n.clock) return null; - const u = B7(r, n), h = u.item; + const u = F7(r, n), h = u.item; if (!(h instanceof rn)) return null; if (o = h.parent, o._item === null || !o._item.deleted) { @@ -17219,7 +17219,7 @@ const MSe = (t, e, r = 0) => new RSe(t, e, r), Mw = (t, e, r) => { else if (i !== null) { if (ti(r, i.client) <= i.clock) return null; - const { item: u } = B7(r, i); + const { item: u } = F7(r, i); if (u instanceof rn && u.content instanceof Wc) o = u.content.type; else @@ -17228,28 +17228,28 @@ const MSe = (t, e, r = 0) => new RSe(t, e, r), Mw = (t, e, r) => { throw Il(); a >= 0 ? l = o._length : l = 0; } - return MSe(o, l, t.assoc); + return DSe(o, l, t.assoc); }, XF = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && Rp(t.item, e.item) && Rp(t.type, e.type) && t.assoc === e.assoc; -class DSe { +class NSe { constructor(e, r) { this.ds = e, this.sv = r; } } -const NSe = (t, e) => new DSe(t, e); -NSe(xee(), /* @__PURE__ */ new Map()); -const kp = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !Jb(e.ds, t.id), I7 = (t, e) => { - const r = nh(t.meta, I7, jd), n = t.doc.store; +const ISe = (t, e) => new NSe(t, e); +ISe(wee(), /* @__PURE__ */ new Map()); +const kp = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !Jb(e.ds, t.id), P7 = (t, e) => { + const r = nh(t.meta, P7, jd), n = t.doc.store; r.has(e) || (e.sv.forEach((i, s) => { i < ti(n, s) && Ca(t, pr(s, i)); }), Ng(t, e.ds, (i) => { }), r.add(e)); }; -class Mee { +class Dee { constructor() { this.clients = /* @__PURE__ */ new Map(), this.pendingStructs = null, this.pendingDs = null; } } -const jS = (t) => { +const KS = (t) => { const e = /* @__PURE__ */ new Map(); return t.clients.forEach((r, n) => { const i = r[r.length - 1]; @@ -17261,7 +17261,7 @@ const jS = (t) => { return 0; const n = r[r.length - 1]; return n.id.clock + n.length; -}, Dee = (t, e) => { +}, Nee = (t, e) => { let r = t.clients.get(e.id.client); if (r === void 0) r = [], t.clients.set(e.id.client, r); @@ -17286,36 +17286,36 @@ const jS = (t) => { a = zu((r + n) / 2); } throw Il(); -}, ISe = (t, e) => { +}, PSe = (t, e) => { const r = t.clients.get(e.client); return r[Nc(r, e.clock)]; -}, m4 = ISe, P7 = (t, e, r) => { +}, m4 = PSe, $7 = (t, e, r) => { const n = Nc(e, r), i = e[n]; return i.id.clock < r && i instanceof rn ? (e.splice(n + 1, 0, G5(t, i, r - i.id.clock)), n + 1) : n; }, Ca = (t, e) => { const r = t.doc.store.clients.get(e.client); - return r[P7(t, r, e.clock)]; + return r[$7(t, r, e.clock)]; }, ZF = (t, e, r) => { const n = e.clients.get(r.client), i = Nc(n, r.clock), s = n[i]; return r.clock !== s.id.clock + s.length - 1 && s.constructor !== _o && n.splice(i + 1, 0, G5(t, s, r.clock - s.id.clock + 1)), s; -}, PSe = (t, e, r) => { +}, $Se = (t, e, r) => { const n = t.clients.get(e.id.client); n[Nc(n, e.id.clock)] = r; -}, Nee = (t, e, r, n, i) => { +}, Iee = (t, e, r, n, i) => { if (n === 0) return; const s = r + n; - let a = P7(t, e, r), o; + let a = $7(t, e, r), o; do - o = e[a++], s < o.id.clock + o.length && P7(t, e, s), i(o); + o = e[a++], s < o.id.clock + o.length && $7(t, e, s), i(o); while (a < e.length && e[a].id.clock < s); }; -class $Se { +class BSe { constructor(e, r, n) { - this.doc = e, this.deleteSet = new F1(), this.beforeState = jS(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; + this.doc = e, this.deleteSet = new F1(), this.beforeState = KS(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; } } -const jF = (t, e) => e.deleteSet.clients.size === 0 && !U3e(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : (OM(e.deleteSet), xSe(t, e), z1(t, e.deleteSet), !0), KF = (t, e, r) => { +const jF = (t, e) => e.deleteSet.clients.size === 0 && !q3e(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : (kM(e.deleteSet), wSe(t, e), z1(t, e.deleteSet), !0), KF = (t, e, r) => { const n = e._item; (n === null || n.id.clock < (t.beforeState.get(n.id.client) || 0) && !n.deleted) && nh(t.changed, e, jd).add(r); }, v4 = (t, e) => { @@ -17329,7 +17329,7 @@ const jF = (t, e) => e.deleteSet.clients.size === 0 && !U3e(e.afterState, (r, n) } const s = e - i; return s && t.splice(e + 1 - s, s), s; -}, BSe = (t, e, r) => { +}, FSe = (t, e, r) => { for (const [n, i] of t.clients.entries()) { const s = e.clients.get(n); for (let a = i.length - 1; a >= 0; a--) { @@ -17342,20 +17342,20 @@ const jF = (t, e) => e.deleteSet.clients.size === 0 && !U3e(e.afterState, (r, n) } } } -}, FSe = (t, e) => { +}, zSe = (t, e) => { t.clients.forEach((r, n) => { const i = e.clients.get(n); for (let s = r.length - 1; s >= 0; s--) { - const a = r[s], o = GS(i.length - 1, 1 + Nc(i, a.clock + a.len - 1)); + const a = r[s], o = HS(i.length - 1, 1 + Nc(i, a.clock + a.len - 1)); for (let l = o, u = i[l]; l > 0 && u.id.clock >= a.clock; u = i[l]) l -= 1 + v4(i, l); } }); -}, Iee = (t, e) => { +}, Pee = (t, e) => { if (e < t.length) { const r = t[e], n = r.doc, i = n.store, s = r.deleteSet, a = r._mergeStructs; try { - OM(s), r.afterState = jS(r.doc.store), n.emit("beforeObserverCalls", [r, n]); + kM(s), r.afterState = KS(r.doc.store), n.emit("beforeObserverCalls", [r, n]); const o = []; r.changed.forEach( (l, u) => o.push(() => { @@ -17367,11 +17367,11 @@ const jF = (t, e) => e.deleteSet.clients.size === 0 && !U3e(e.afterState, (r, n) (h) => h.target._item === null || !h.target._item.deleted ), l.forEach((h) => { h.currentTarget = u, h._path = null; - }), l.sort((h, f) => h.path.length - f.path.length), Aee(u._dEH, l, r)); + }), l.sort((h, f) => h.path.length - f.path.length), Lee(u._dEH, l, r)); }); - }), o.push(() => n.emit("afterTransaction", [r, n])), bM(o, []), r._needFormattingCleanup && aTe(r); + }), o.push(() => n.emit("afterTransaction", [r, n])), xM(o, []), r._needFormattingCleanup && oTe(r); } finally { - n.gc && BSe(s, i, n.gcFilter), FSe(s, i), r.afterState.forEach((h, f) => { + n.gc && FSe(s, i, n.gcFilter), zSe(s, i), r.afterState.forEach((h, f) => { const d = r.beforeState.get(f) || 0; if (d !== h) { const p = i.clients.get(f), g = Bf(Nc(p, d), 1); @@ -17383,7 +17383,7 @@ const jF = (t, e) => e.deleteSet.clients.size === 0 && !U3e(e.afterState, (r, n) const { client: f, clock: d } = a[h].id, p = i.clients.get(f), g = Nc(p, d); g + 1 < p.length && v4(p, g + 1) > 1 || g > 0 && v4(p, g); } - if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (hSe(xM, pee, "[yjs] ", gee, mee, "Changed the client-id because another client seems to be using it."), n.clientID = wee()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { + if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (fSe(wM, gee, "[yjs] ", mee, vee, "Changed the client-id because another client seems to be using it."), n.clientID = Oee()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { const h = new ex(); jF(h, r) && n.emit("update", [h.toUint8Array(), r.origin, n, r]); } @@ -17394,31 +17394,31 @@ const jF = (t, e) => e.deleteSet.clients.size === 0 && !U3e(e.afterState, (r, n) const { subdocsAdded: o, subdocsLoaded: l, subdocsRemoved: u } = r; (o.size > 0 || u.size > 0 || l.size > 0) && (o.forEach((h) => { h.clientID = n.clientID, h.collectionid == null && (h.collectionid = n.collectionid), n.subdocs.add(h); - }), u.forEach((h) => n.subdocs.delete(h)), n.emit("subdocs", [{ loaded: l, added: o, removed: u }, n, r]), u.forEach((h) => h.destroy())), t.length <= e + 1 ? (n._transactionCleanups = [], n.emit("afterAllTransactions", [n, t])) : Iee(t, e + 1); + }), u.forEach((h) => n.subdocs.delete(h)), n.emit("subdocs", [{ loaded: l, added: o, removed: u }, n, r]), u.forEach((h) => h.destroy())), t.length <= e + 1 ? (n._transactionCleanups = [], n.emit("afterAllTransactions", [n, t])) : Pee(t, e + 1); } } }, tn = (t, e, r = null, n = !0) => { const i = t._transactionCleanups; let s = !1, a = null; - t._transaction === null && (s = !0, t._transaction = new $Se(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); + t._transaction === null && (s = !0, t._transaction = new BSe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); try { a = e(t._transaction); } finally { if (s) { const o = t._transaction === i[0]; - t._transaction = null, o && Iee(i, 0); + t._transaction = null, o && Pee(i, 0); } } return a; }; -class zSe { +class VSe { constructor(e, r) { this.insertions = r, this.deletions = e, this.meta = /* @__PURE__ */ new Map(); } } const JF = (t, e, r) => { Ng(t, r.deletions, (n) => { - n instanceof rn && e.scope.some((i) => z5(i, n)) && DM(n, !1); + n instanceof rn && e.scope.some((i) => z5(i, n)) && NM(n, !1); }); }, ez = (t, e, r) => { let n = null, i = null; @@ -17430,7 +17430,7 @@ const JF = (t, e, r) => { Ng(o, u.insertions, (p) => { if (p instanceof rn) { if (p.redone !== null) { - let { item: g, diff: m } = B7(l, p.id); + let { item: g, diff: m } = F7(l, p.id); m > 0 && (g = Ca(o, pr(g.id.client, g.id.clock + m))), p = g; } !p.deleted && a.some((g) => z5(g, p)) && f.push(p); @@ -17438,7 +17438,7 @@ const JF = (t, e, r) => { }), Ng(o, u.deletions, (p) => { p instanceof rn && a.some((g) => z5(g, p)) && !Jb(u.insertions, p.id) && h.add(p); }), h.forEach((p) => { - d = Jee(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; + d = ete(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; }); for (let p = f.length - 1; p >= 0; p--) { const g = f[p]; @@ -17455,14 +17455,14 @@ const JF = (t, e, r) => { } return n; }; -class TM extends WS { +class CM extends GS { constructor(e, { captureTimeout: r = 500, captureTransaction: n = (l) => !0, deleteFilter: i = () => !0, trackedOrigins: s = /* @__PURE__ */ new Set([null]), ignoreRemoteMapChanges: a = !1, - doc: o = C7(e) ? e[0].doc : e.doc + doc: o = E7(e) ? e[0].doc : e.doc } = {}) { super(), this.scope = [], this.doc = o, this.addToScope(e), this.deleteFilter = i, s.add(this), this.trackedOrigins = s, this.captureTransaction = n, this.undoStack = [], this.redoStack = [], this.undoing = !1, this.redoing = !1, this.lastChange = 0, this.ignoreRemoteMapChanges = a, this.captureTimeout = r, this.afterTransactionHandler = (l) => { if (!this.captureTransaction(l) || !this.scope.some((v) => l.changedParentTypes.has(v)) || !this.trackedOrigins.has(l.origin) && (!l.origin || !this.trackedOrigins.has(l.origin.constructor))) @@ -17478,11 +17478,11 @@ class TM extends WS { let g = !1; if (this.lastChange > 0 && p - this.lastChange < this.captureTimeout && f.length > 0 && !u && !h) { const v = f[f.length - 1]; - v.deletions = M7([v.deletions, l.deleteSet]), v.insertions = M7([v.insertions, d]); + v.deletions = D7([v.deletions, l.deleteSet]), v.insertions = D7([v.insertions, d]); } else - f.push(new zSe(l.deleteSet, d)), g = !0; + f.push(new VSe(l.deleteSet, d)), g = !0; !u && !h && (this.lastChange = p), Ng(l, l.deleteSet, (v) => { - v instanceof rn && this.scope.some((y) => z5(y, v)) && DM(v, !0); + v instanceof rn && this.scope.some((y) => z5(y, v)) && NM(v, !0); }); const m = [{ stackItem: f[f.length - 1], origin: l.origin, type: u ? "redo" : "undo", changedParentTypes: l.changedParentTypes }, this]; g ? this.emit("stack-item-added", m) : this.emit("stack-item-updated", m); @@ -17491,8 +17491,8 @@ class TM extends WS { }); } addToScope(e) { - e = C7(e) ? e : [e], e.forEach((r) => { - this.scope.every((n) => n !== r) && (r.doc !== this.doc && fSe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); + e = E7(e) ? e : [e], e.forEach((r) => { + this.scope.every((n) => n !== r) && (r.doc !== this.doc && dSe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); }); } addTrackedOrigin(e) { @@ -17539,7 +17539,7 @@ class TM extends WS { this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy(); } } -function* VSe(t) { +function* USe(t) { const e = or(t.restDecoder); for (let r = 0; r < e; r++) { const n = or(t.restDecoder), i = t.readClient(); @@ -17549,7 +17549,7 @@ function* VSe(t) { if (o === 10) { const l = or(t.restDecoder); yield new Ao(pr(i, s), l), s += l; - } else if ((HS & o) !== 0) { + } else if ((XS & o) !== 0) { const l = (o & (Eu | so)) === 0, u = new rn( pr(i, s), null, @@ -17558,7 +17558,7 @@ function* VSe(t) { (o & Eu) === Eu ? t.readRightID() : null, l ? t.readParentInfo() ? t.readString() : t.readLeftID() : null, l && (o & By) === By ? t.readString() : null, - ete(t, o) + tte(t, o) ); yield u, s += u.length; } else { @@ -17568,9 +17568,9 @@ function* VSe(t) { } } } -class CM { +class EM { constructor(e, r) { - this.gen = VSe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); + this.gen = USe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); } next() { do @@ -17579,12 +17579,12 @@ class CM { return this.curr; } } -class EM { +class _M { constructor(e) { this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = e, this.clientStructs = []; } } -const USe = (t) => V5(t, kee, ex), qSe = (t, e) => { +const qSe = (t) => V5(t, See, ex), QSe = (t, e) => { if (t.constructor === _o) { const { client: r, clock: n } = t.id; return new _o(pr(r, n + e), t.length - e); @@ -17608,8 +17608,8 @@ const USe = (t) => V5(t, kee, ex), qSe = (t, e) => { if (t.length === 1) return t[0]; const n = t.map((h) => new e(Ff(h))); - let i = n.map((h) => new CM(h, !0)), s = null; - const a = new r(), o = new EM(a); + let i = n.map((h) => new EM(h, !0)), s = null; + const a = new r(), o = new _M(a); for (; i = i.filter((d) => d.curr !== null), i.sort( (d, p) => { if (d.curr.id.client === p.curr.id.client) { @@ -17638,18 +17638,18 @@ const USe = (t) => V5(t, kee, ex), qSe = (t, e) => { } else { const g = s.struct.id.clock + s.struct.length - d.id.clock; - g > 0 && (s.struct.constructor === Ao ? s.struct.length -= g : d = qSe(d, g)), s.struct.mergeWith(d) || (_h(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); + g > 0 && (s.struct.constructor === Ao ? s.struct.length -= g : d = QSe(d, g)), s.struct.mergeWith(d) || (_h(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); } } else s = { struct: h.curr, offset: 0 }, h.next(); for (let d = h.curr; d !== null && d.id.client === f && d.id.clock === s.struct.id.clock + s.struct.length && d.constructor !== Ao; d = h.next()) _h(o, s.struct, s.offset), s = { struct: d, offset: 0 }; } - s !== null && (_h(o, s.struct, s.offset), s = null), _M(o); - const l = n.map((h) => kM(h)), u = M7(l); + s !== null && (_h(o, s.struct, s.offset), s = null), AM(o); + const l = n.map((h) => SM(h)), u = D7(l); return z1(a, u), a.toUint8Array(); -}, QSe = (t, e, r = Ig, n = Kd) => { - const i = Eee(e), s = new n(), a = new EM(s), o = new r(Ff(t)), l = new CM(o, !1); +}, YSe = (t, e, r = Ig, n = Kd) => { + const i = _ee(e), s = new n(), a = new _M(s), o = new r(Ff(t)), l = new EM(o, !1); for (; l.curr; ) { const h = l.curr, f = h.id.client, d = i.get(f) || 0; if (l.curr.constructor === Ao) { @@ -17663,35 +17663,35 @@ const USe = (t) => V5(t, kee, ex), qSe = (t, e) => { for (; l.curr && l.curr.id.client === f && l.curr.id.clock + l.curr.length <= d; ) l.next(); } - _M(a); - const u = kM(o); + AM(a); + const u = SM(o); return z1(s, u), s.toUint8Array(); -}, Pee = (t) => { +}, $ee = (t) => { t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Ln(t.encoder.restEncoder) }), t.encoder.restEncoder = _s(), t.written = 0); }, _h = (t, e, r) => { - t.written > 0 && t.currClient !== e.id.client && Pee(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), Wt(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; -}, _M = (t) => { - Pee(t); + t.written > 0 && t.currClient !== e.id.client && $ee(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), Wt(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; +}, AM = (t) => { + $ee(t); const e = t.encoder.restEncoder; Wt(e, t.clientStructs.length); for (let r = 0; r < t.clientStructs.length; r++) { const n = t.clientStructs[r]; - Wt(e, n.written), XS(e, n.restEncoder); + Wt(e, n.written), ZS(e, n.restEncoder); } -}, YSe = (t, e, r, n) => { - const i = new r(Ff(t)), s = new CM(i, !1), a = new n(), o = new EM(a); +}, WSe = (t, e, r, n) => { + const i = new r(Ff(t)), s = new EM(i, !1), a = new n(), o = new _M(a); for (let u = s.curr; u !== null; u = s.next()) _h(o, e(u), 0); - _M(o); - const l = kM(i); + AM(o); + const l = SM(i); return z1(a, l), a.toUint8Array(); -}, WSe = (t) => YSe(t, Dke, Ig, ex), tz = "You must not compute changes after the event-handler fired."; -class KS { +}, GSe = (t) => WSe(t, Nke, Ig, ex), tz = "You must not compute changes after the event-handler fired."; +class JS { constructor(e, r) { this.target = e, this.currentTarget = e, this.transaction = r, this._changes = null, this._keys = null, this._delta = null, this._path = null; } get path() { - return this._path || (this._path = GSe(this.currentTarget, this.target)); + return this._path || (this._path = HSe(this.currentTarget, this.target)); } deletes(e) { return Jb(this.transaction.deleteSet, e.id); @@ -17711,13 +17711,13 @@ class KS { l = l.left; if (this.deletes(s)) if (l !== null && this.deletes(l)) - a = "delete", o = DE(l.content.getContent()); + a = "delete", o = NE(l.content.getContent()); else return; else - l !== null && this.deletes(l) ? (a = "update", o = DE(l.content.getContent())) : (a = "add", o = void 0); + l !== null && this.deletes(l) ? (a = "update", o = NE(l.content.getContent())) : (a = "add", o = void 0); } else if (this.deletes(s)) - a = "delete", o = DE(s.content.getContent()); + a = "delete", o = NE(s.content.getContent()); else return; e.set(i, { action: a, oldValue: o }); @@ -17757,7 +17757,7 @@ class KS { return e; } } -const GSe = (t, e) => { +const HSe = (t, e) => { const r = []; for (; e._item !== null && e !== t; ) { if (e._item.parentSub !== null) @@ -17771,31 +17771,31 @@ const GSe = (t, e) => { e = e._item.parent; } return r; -}, $ee = 80; -let AM = 0; -class HSe { +}, Bee = 80; +let LM = 0; +class XSe { constructor(e, r) { - e.marker = !0, this.p = e, this.index = r, this.timestamp = AM++; + e.marker = !0, this.p = e, this.index = r, this.timestamp = LM++; } } -const XSe = (t) => { - t.timestamp = AM++; -}, Bee = (t, e, r) => { - t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = AM++; -}, ZSe = (t, e, r) => { - if (t.length >= $ee) { +const ZSe = (t) => { + t.timestamp = LM++; +}, Fee = (t, e, r) => { + t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = LM++; +}, jSe = (t, e, r) => { + if (t.length >= Bee) { const n = t.reduce((i, s) => i.timestamp < s.timestamp ? i : s); - return Bee(n, e, r), n; + return Fee(n, e, r), n; } else { - const n = new HSe(e, r); + const n = new XSe(e, r); return t.push(n), n; } -}, JS = (t, e) => { +}, eT = (t, e) => { if (t._start === null || e === 0 || t._searchMarker === null) return null; const r = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, a) => d4(e - s.index) < d4(e - a.index) ? s : a); let n = t._start, i = 0; - for (r !== null && (n = r.p, i = r.index, XSe(r)); n.right !== null && i < e; ) { + for (r !== null && (n = r.p, i = r.index, ZSe(r)); n.right !== null && i < e; ) { if (!n.deleted && n.countable) { if (e < i + n.length) break; @@ -17807,7 +17807,7 @@ const XSe = (t) => { n = n.left, !n.deleted && n.countable && (i -= n.length); for (; n.left !== null && n.left.id.client === n.id.client && n.left.id.clock + n.left.length === n.id.clock; ) n = n.left, !n.deleted && n.countable && (i -= n.length); - return r !== null && d4(r.index - i) < n.parent.length / $ee ? (Bee(r, n, i), r) : ZSe(t._searchMarker, n, i); + return r !== null && d4(r.index - i) < n.parent.length / Bee ? (Fee(r, n, i), r) : jSe(t._searchMarker, n, i); }, Qy = (t, e, r) => { for (let n = t.length - 1; n >= 0; n--) { const i = t[n]; @@ -17823,11 +17823,11 @@ const XSe = (t) => { } (e < i.index || r > 0 && e === i.index) && (i.index = Bf(e, i.index + r)); } -}, eT = (t, e, r) => { +}, tT = (t, e, r) => { const n = t, i = e.changedParentTypes; for (; nh(i, t, () => []).push(r), t._item !== null; ) t = t._item.parent; - Aee(n._eH, r, e); + Lee(n._eH, r, e); }; class us { constructor() { @@ -17871,7 +17871,7 @@ class us { toJSON() { } } -const Fee = (t, e, r) => { +const zee = (t, e, r) => { e < 0 && (e = t._length + e), r < 0 && (r = t._length + r); let n = r - e; const i = []; @@ -17890,7 +17890,7 @@ const Fee = (t, e, r) => { s = s.right; } return i; -}, zee = (t) => { +}, Vee = (t) => { const e = []; let r = t._start; for (; r !== null; ) { @@ -17912,12 +17912,12 @@ const Fee = (t, e, r) => { } n = n.right; } -}, Vee = (t, e) => { +}, Uee = (t, e) => { const r = []; return Yy(t, (n, i) => { r.push(e(n, i, t)); }), r; -}, jSe = (t) => { +}, KSe = (t) => { let e = t._start, r = null, n = 0; return { [Symbol.iterator]() { @@ -17941,8 +17941,8 @@ const Fee = (t, e, r) => { }; } }; -}, Uee = (t, e) => { - const r = JS(t, e); +}, qee = (t, e) => { + const r = eT(t, e); let n = t._start; for (r !== null && (n = r.p, e -= r.index); n !== null; n = n.right) if (!n.deleted && n.countable) { @@ -17986,12 +17986,12 @@ const Fee = (t, e, r) => { } } }), h(); -}, qee = () => ff("Length exceeded!"), Qee = (t, e, r, n) => { +}, Qee = () => ff("Length exceeded!"), Yee = (t, e, r, n) => { if (r > e._length) - throw qee(); + throw Qee(); if (r === 0) return e._searchMarker && Qy(e._searchMarker, r, n.length), U5(t, e, null, n); - const i = r, s = JS(e, r); + const i = r, s = eT(e, r); let a = e._start; for (s !== null && (a = s.p, r -= s.index, r === 0 && (a = a.prev, r += a && a.countable && !a.deleted ? a.length : 0)); a !== null; a = a.right) if (!a.deleted && a.countable) { @@ -18002,28 +18002,28 @@ const Fee = (t, e, r) => { r -= a.length; } return e._searchMarker && Qy(e._searchMarker, i, n.length), U5(t, e, a, n); -}, KSe = (t, e, r) => { +}, JSe = (t, e, r) => { let i = (e._searchMarker || []).reduce((s, a) => a.index > s.index ? a : s, { index: 0, p: e._start }).p; if (i) for (; i.right; ) i = i.right; return U5(t, e, i, r); -}, Yee = (t, e, r, n) => { +}, Wee = (t, e, r, n) => { if (n === 0) return; - const i = r, s = n, a = JS(e, r); + const i = r, s = n, a = eT(e, r); let o = e._start; for (a !== null && (o = a.p, r -= a.index); o !== null && r > 0; o = o.right) !o.deleted && o.countable && (r < o.length && Ca(t, pr(o.id.client, o.id.clock + r)), r -= o.length); for (; n > 0 && o !== null; ) o.deleted || (n < o.length && Ca(t, pr(o.id.client, o.id.clock + n)), o.delete(t), n -= o.length), o = o.right; if (n > 0) - throw qee(); + throw Qee(); e._searchMarker && Qy(e._searchMarker, i, -s + n); }, q5 = (t, e, r) => { const n = e._map.get(r); n !== void 0 && n.delete(t); -}, LM = (t, e, r, n) => { +}, RM = (t, e, r, n) => { const i = e._map.get(r) || null, s = t.doc, a = s.clientID; let o; if (n == null) @@ -18050,18 +18050,18 @@ const Fee = (t, e, r) => { throw new Error("Unexpected content type"); } new rn(pr(a, ti(s.store, a)), i, i && i.lastId, null, null, e, r, o).integrate(t, 0); -}, RM = (t, e) => { +}, MM = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted ? r.content.getContent()[r.length - 1] : void 0; -}, Wee = (t) => { +}, Gee = (t) => { const e = {}; return t._map.forEach((r, n) => { r.deleted || (e[n] = r.content.getContent()[r.length - 1]); }), e; -}, Gee = (t, e) => { +}, Hee = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted; -}, JSe = (t, e) => { +}, eTe = (t, e) => { const r = {}; return t._map.forEach((n, i) => { let s = n; @@ -18069,8 +18069,8 @@ const Fee = (t, e, r) => { s = s.left; s !== null && kp(s, e) && (r[i] = s.content.getContent()[s.length - 1]); }), r; -}, Dw = (t) => dSe(t.entries(), (e) => !e[1].deleted); -class eTe extends KS { +}, Dw = (t) => pSe(t.entries(), (e) => !e[1].deleted); +class tTe extends JS { constructor(e, r) { super(e, r), this._transaction = r; } @@ -18099,16 +18099,16 @@ class jp extends us { return this._prelimContent === null ? this._length : this._prelimContent.length; } _callObserver(e, r) { - super._callObserver(e, r), eT(this, e, new eTe(this, e)); + super._callObserver(e, r), tT(this, e, new tTe(this, e)); } insert(e, r) { this.doc !== null ? tn(this.doc, (n) => { - Qee(n, this, e, r); + Yee(n, this, e, r); }) : this._prelimContent.splice(e, 0, ...r); } push(e) { this.doc !== null ? tn(this.doc, (r) => { - KSe(r, this, e); + JSe(r, this, e); }) : this._prelimContent.push(...e); } unshift(e) { @@ -18116,36 +18116,36 @@ class jp extends us { } delete(e, r = 1) { this.doc !== null ? tn(this.doc, (n) => { - Yee(n, this, e, r); + Wee(n, this, e, r); }) : this._prelimContent.splice(e, r); } get(e) { - return Uee(this, e); + return qee(this, e); } toArray() { - return zee(this); + return Vee(this); } slice(e = 0, r = this.length) { - return Fee(this, e, r); + return zee(this, e, r); } toJSON() { return this.map((e) => e instanceof us ? e.toJSON() : e); } map(e) { - return Vee(this, e); + return Uee(this, e); } forEach(e) { Yy(this, e); } [Symbol.iterator]() { - return jSe(this); + return KSe(this); } _write(e) { - e.writeTypeRef(STe); + e.writeTypeRef(TTe); } } -const tTe = (t) => new jp(); -class rTe extends KS { +const rTe = (t) => new jp(); +class nTe extends JS { constructor(e, r, n) { super(e, r), this.keysChanged = n; } @@ -18169,7 +18169,7 @@ class _u extends us { }), e; } _callObserver(e, r) { - eT(this, e, new rTe(this, e, r)); + tT(this, e, new nTe(this, e, r)); } toJSON() { const e = {}; @@ -18184,13 +18184,13 @@ class _u extends us { return [...Dw(this._map)].length; } keys() { - return FE(Dw(this._map), (e) => e[0]); + return zE(Dw(this._map), (e) => e[0]); } values() { - return FE(Dw(this._map), (e) => e[1].content.getContent()[e[1].length - 1]); + return zE(Dw(this._map), (e) => e[1].content.getContent()[e[1].length - 1]); } entries() { - return FE(Dw(this._map), (e) => [e[0], e[1].content.getContent()[e[1].length - 1]]); + return zE(Dw(this._map), (e) => [e[0], e[1].content.getContent()[e[1].length - 1]]); } forEach(e) { this._map.forEach((r, n) => { @@ -18207,14 +18207,14 @@ class _u extends us { } set(e, r) { return this.doc !== null ? tn(this.doc, (n) => { - LM(n, this, e, r); + RM(n, this, e, r); }) : this._prelimContent.set(e, r), r; } get(e) { - return RM(this, e); + return MM(this, e); } has(e) { - return Gee(this, e); + return Hee(this, e); } clear() { this.doc !== null ? tn(this.doc, (e) => { @@ -18224,17 +18224,17 @@ class _u extends us { }) : this._prelimContent.clear(); } _write(e) { - e.writeTypeRef(TTe); + e.writeTypeRef(CTe); } } -const nTe = (t) => new _u(), $h = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && Mke(t, e); -class $7 { +const iTe = (t) => new _u(), $h = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && Dke(t, e); +class B7 { constructor(e, r, n, i) { this.left = e, this.right = r, this.index = n, this.currentAttributes = i; } forward() { switch (this.right === null && Il(), this.right.content.constructor) { - case Ri: + case Mi: this.right.deleted || U1(this.currentAttributes, this.right.content); break; default: @@ -18247,7 +18247,7 @@ class $7 { const rz = (t, e, r) => { for (; e.right !== null && r > 0; ) { switch (e.right.content.constructor) { - case Ri: + case Mi: e.right.deleted || U1(e.currentAttributes, e.right.content); break; default: @@ -18258,60 +18258,60 @@ const rz = (t, e, r) => { } return e; }, Nw = (t, e, r) => { - const n = /* @__PURE__ */ new Map(), i = JS(e, r); + const n = /* @__PURE__ */ new Map(), i = eT(e, r); if (i) { - const s = new $7(i.p.left, i.p, i.index, n); + const s = new B7(i.p.left, i.p, i.index, n); return rz(t, s, r - i.index); } else { - const s = new $7(null, e._start, 0, n); + const s = new B7(null, e._start, 0, n); return rz(t, s, r); } -}, Hee = (t, e, r, n) => { - for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Ri && $h(n.get(r.right.content.key), r.right.content.value)); ) +}, Xee = (t, e, r, n) => { + for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Mi && $h(n.get(r.right.content.key), r.right.content.value)); ) r.right.deleted || n.delete(r.right.content.key), r.forward(); const i = t.doc, s = i.clientID; n.forEach((a, o) => { - const l = r.left, u = r.right, h = new rn(pr(s, ti(i.store, s)), l, l && l.lastId, u, u && u.id, e, null, new Ri(o, a)); + const l = r.left, u = r.right, h = new rn(pr(s, ti(i.store, s)), l, l && l.lastId, u, u && u.id, e, null, new Mi(o, a)); h.integrate(t, 0), r.right = h, r.forward(); }); }, U1 = (t, e) => { const { key: r, value: n } = e; n === null ? t.delete(r) : t.set(r, n); -}, Xee = (t, e) => { +}, Zee = (t, e) => { for (; t.right !== null; ) { - if (!(t.right.deleted || t.right.content.constructor === Ri && $h(e[t.right.content.key] || null, t.right.content.value))) + if (!(t.right.deleted || t.right.content.constructor === Mi && $h(e[t.right.content.key] || null, t.right.content.value))) break; t.forward(); } -}, Zee = (t, e, r, n) => { +}, jee = (t, e, r, n) => { const i = t.doc, s = i.clientID, a = /* @__PURE__ */ new Map(); for (const o in n) { const l = n[o], u = r.currentAttributes.get(o) || null; if (!$h(u, l)) { a.set(o, u); const { left: h, right: f } = r; - r.right = new rn(pr(s, ti(i.store, s)), h, h && h.lastId, f, f && f.id, e, null, new Ri(o, l)), r.right.integrate(t, 0), r.forward(); + r.right = new rn(pr(s, ti(i.store, s)), h, h && h.lastId, f, f && f.id, e, null, new Mi(o, l)), r.right.integrate(t, 0), r.forward(); } } return a; -}, zE = (t, e, r, n, i) => { +}, VE = (t, e, r, n, i) => { r.currentAttributes.forEach((d, p) => { i[p] === void 0 && (i[p] = null); }); const s = t.doc, a = s.clientID; - Xee(r, i); - const o = Zee(t, e, r, i), l = n.constructor === String ? new Ic(n) : n instanceof us ? new Wc(n) : new I0(n); + Zee(r, i); + const o = jee(t, e, r, i), l = n.constructor === String ? new Ic(n) : n instanceof us ? new Wc(n) : new I0(n); let { left: u, right: h, index: f } = r; - e._searchMarker && Qy(e._searchMarker, r.index, l.getLength()), h = new rn(pr(a, ti(s.store, a)), u, u && u.lastId, h, h && h.id, e, null, l), h.integrate(t, 0), r.right = h, r.index = f, r.forward(), Hee(t, e, r, o); + e._searchMarker && Qy(e._searchMarker, r.index, l.getLength()), h = new rn(pr(a, ti(s.store, a)), u, u && u.lastId, h, h && h.id, e, null, l), h.integrate(t, 0), r.right = h, r.index = f, r.forward(), Xee(t, e, r, o); }, nz = (t, e, r, n, i) => { const s = t.doc, a = s.clientID; - Xee(r, i); - const o = Zee(t, e, r, i); + Zee(r, i); + const o = jee(t, e, r, i); e: - for (; r.right !== null && (n > 0 || o.size > 0 && (r.right.deleted || r.right.content.constructor === Ri)); ) { + for (; r.right !== null && (n > 0 || o.size > 0 && (r.right.deleted || r.right.content.constructor === Mi)); ) { if (!r.right.deleted) switch (r.right.content.constructor) { - case Ri: { + case Mi: { const { key: l, value: u } = r.right.content, h = i[l]; if (h !== void 0) { if ($h(h, u)) @@ -18339,12 +18339,12 @@ const rz = (t, e, r) => { `; r.right = new rn(pr(a, ti(s.store, a)), r.left, r.left && r.left.lastId, r.right, r.right && r.right.id, e, null, new Ic(l)), r.right.integrate(t, 0), r.forward(); } - Hee(t, e, r, o); -}, jee = (t, e, r, n, i) => { + Xee(t, e, r, o); +}, Kee = (t, e, r, n, i) => { let s = e; const a = xl(); for (; s && (!s.countable || s.deleted); ) { - if (!s.deleted && s.content.constructor === Ri) { + if (!s.deleted && s.content.constructor === Mi) { const u = s.content; a.set(u.key, u); } @@ -18355,7 +18355,7 @@ const rz = (t, e, r) => { if (r === e && (l = !0), !e.deleted) { const u = e.content; switch (u.constructor) { - case Ri: { + case Mi: { const { key: h, value: f } = u, d = n.get(h) || null; (a.get(h) !== u || d === f) && (e.delete(t), o++, !l && (i.get(h) || null) === f && d !== f && (d === null ? i.delete(h) : i.set(h, d))), !l && !e.deleted && U1(i, u); break; @@ -18365,41 +18365,41 @@ const rz = (t, e, r) => { e = e.right; } return o; -}, iTe = (t, e) => { +}, sTe = (t, e) => { for (; e && e.right && (e.right.deleted || !e.right.countable); ) e = e.right; const r = /* @__PURE__ */ new Set(); for (; e && (e.deleted || !e.countable); ) { - if (!e.deleted && e.content.constructor === Ri) { + if (!e.deleted && e.content.constructor === Mi) { const n = e.content.key; r.has(n) ? e.delete(t) : r.add(n); } e = e.left; } -}, sTe = (t) => { +}, aTe = (t) => { let e = 0; return tn(t.doc, (r) => { let n = t._start, i = t._start, s = xl(); - const a = T7(s); + const a = C7(s); for (; i; ) { if (i.deleted === !1) switch (i.content.constructor) { - case Ri: + case Mi: U1(a, i.content); break; default: - e += jee(r, n, i, s, a), s = T7(a), n = i; + e += Kee(r, n, i, s, a), s = C7(a), n = i; break; } i = i.right; } }), e; -}, aTe = (t) => { +}, oTe = (t) => { const e = /* @__PURE__ */ new Set(), r = t.doc; for (const [n, i] of t.afterState.entries()) { const s = t.beforeState.get(n) || 0; - i !== s && Nee(t, r.store.clients.get(n), s, i, (a) => { - !a.deleted && a.content.constructor === Ri && a.constructor !== _o && e.add(a.parent); + i !== s && Iee(t, r.store.clients.get(n), s, i, (a) => { + !a.deleted && a.content.constructor === Mi && a.constructor !== _o && e.add(a.parent); }); } tn(r, (n) => { @@ -18407,13 +18407,13 @@ const rz = (t, e, r) => { if (i instanceof _o || !i.parent._hasFormatting || e.has(i.parent)) return; const s = i.parent; - i.content.constructor === Ri ? e.add(s) : iTe(n, i); + i.content.constructor === Mi ? e.add(s) : sTe(n, i); }); for (const i of e) - sTe(i); + aTe(i); }); }, iz = (t, e, r) => { - const n = r, i = T7(e.currentAttributes), s = e.right; + const n = r, i = C7(e.currentAttributes), s = e.right; for (; r > 0 && e.right !== null; ) { if (e.right.deleted === !1) switch (e.right.content.constructor) { @@ -18425,11 +18425,11 @@ const rz = (t, e, r) => { } e.forward(); } - s && jee(t, s, e.right, i, e.currentAttributes); + s && Kee(t, s, e.right, i, e.currentAttributes); const a = (e.left || e.right).parent; return a._searchMarker && Qy(a._searchMarker, e.index, -n + r), e; }; -class oTe extends KS { +class lTe extends JS { constructor(e, r, n) { super(e, r), this.childListChanged = !1, this.keysChanged = /* @__PURE__ */ new Set(), n.forEach((i) => { i === null ? this.childListChanged = !0 : this.keysChanged.add(i); @@ -18468,7 +18468,7 @@ class oTe extends KS { }))), u = ""; break; case "retain": - h > 0 && (p = { retain: h }, Lke(l) || (p.attributes = Cke({}, l))), h = 0; + h > 0 && (p = { retain: h }, Rke(l) || (p.attributes = Eke({}, l))), h = 0; break; } p && r.push(p), o = null; @@ -18483,7 +18483,7 @@ class oTe extends KS { case Ic: this.adds(a) ? this.deletes(a) || (o !== "insert" && (d(), o = "insert"), u += a.content.str) : this.deletes(a) ? (o !== "delete" && (d(), o = "delete"), f += a.length) : a.deleted || (o !== "retain" && (d(), o = "retain"), h += a.length); break; - case Ri: { + case Mi: { const { key: p, value: g } = a.content; if (this.adds(a)) { if (!this.deletes(a)) { @@ -18542,8 +18542,8 @@ class Pg extends us { } _callObserver(e, r) { super._callObserver(e, r); - const n = new oTe(this, e, r); - eT(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); + const n = new lTe(this, e, r); + tT(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); } toString() { let e = "", r = this._start; @@ -18556,13 +18556,13 @@ class Pg extends us { } applyDelta(e, { sanitize: r = !0 } = {}) { this.doc !== null ? tn(this.doc, (n) => { - const i = new $7(null, this._start, 0, /* @__PURE__ */ new Map()); + const i = new B7(null, this._start, 0, /* @__PURE__ */ new Map()); for (let s = 0; s < e.length; s++) { const a = e[s]; if (a.insert !== void 0) { const o = !r && typeof a.insert == "string" && s === e.length - 1 && i.right === null && a.insert.slice(-1) === ` ` ? a.insert.slice(0, -1) : a.insert; - (typeof o != "string" || o.length > 0) && zE(n, this, i, o, a.attributes || {}); + (typeof o != "string" || o.length > 0) && VE(n, this, i, o, a.attributes || {}); } else a.retain !== void 0 ? nz(n, this, i, a.retain, a.attributes || {}) : a.delete !== void 0 && iz(n, i, a.delete); } @@ -18606,7 +18606,7 @@ class Pg extends us { i.push(f); break; } - case Ri: + case Mi: kp(l, e) && (u(), U1(s, l.content)); break; } @@ -18615,7 +18615,7 @@ class Pg extends us { u(); }; return e || r ? tn(a, (f) => { - e && I7(f, e), r && I7(f, r), h(); + e && P7(f, e), r && P7(f, r), h(); }, "cleanup") : h(), i; } insert(e, r, n) { @@ -18626,14 +18626,14 @@ class Pg extends us { const a = Nw(s, this, e); n || (n = {}, a.currentAttributes.forEach((o, l) => { n[l] = o; - })), zE(s, this, a, r, n); + })), VE(s, this, a, r, n); }) : this._pending.push(() => this.insert(e, r, n)); } insertEmbed(e, r, n = {}) { const i = this.doc; i !== null ? tn(i, (s) => { const a = Nw(s, this, e); - zE(s, this, a, r, n); + VE(s, this, a, r, n); }) : this._pending.push(() => this.insertEmbed(e, r, n)); } delete(e, r) { @@ -18660,21 +18660,21 @@ class Pg extends us { } setAttribute(e, r) { this.doc !== null ? tn(this.doc, (n) => { - LM(n, this, e, r); + RM(n, this, e, r); }) : this._pending.push(() => this.setAttribute(e, r)); } getAttribute(e) { - return RM(this, e); + return MM(this, e); } getAttributes() { - return Wee(this); + return Gee(this); } _write(e) { - e.writeTypeRef(CTe); + e.writeTypeRef(ETe); } } -const lTe = (t) => new Pg(); -class VE { +const cTe = (t) => new Pg(); +class UE { constructor(e, r = () => !0) { this._filter = r, this._root = e, this._currentNode = e._start, this._firstCall = !0; } @@ -18720,21 +18720,21 @@ class Jd extends us { return this._prelimContent === null ? this._length : this._prelimContent.length; } createTreeWalker(e) { - return new VE(this, e); + return new UE(this, e); } querySelector(e) { e = e.toUpperCase(); - const n = new VE(this, (i) => i.nodeName && i.nodeName.toUpperCase() === e).next(); + const n = new UE(this, (i) => i.nodeName && i.nodeName.toUpperCase() === e).next(); return n.done ? null : n.value; } querySelectorAll(e) { - return e = e.toUpperCase(), hf(new VE(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); + return e = e.toUpperCase(), hf(new UE(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); } _callObserver(e, r) { - eT(this, e, new hTe(this, r, e)); + tT(this, e, new fTe(this, r, e)); } toString() { - return Vee(this, (e) => e.toString()).join(""); + return Uee(this, (e) => e.toString()).join(""); } toJSON() { return this.toString(); @@ -18747,7 +18747,7 @@ class Jd extends us { } insert(e, r) { this.doc !== null ? tn(this.doc, (n) => { - Qee(n, this, e, r); + Yee(n, this, e, r); }) : this._prelimContent.splice(e, 0, ...r); } insertAfter(e, r) { @@ -18765,11 +18765,11 @@ class Jd extends us { } delete(e, r = 1) { this.doc !== null ? tn(this.doc, (n) => { - Yee(n, this, e, r); + Wee(n, this, e, r); }) : this._prelimContent.splice(e, r); } toArray() { - return zee(this); + return Vee(this); } push(e) { this.insert(this.length, e); @@ -18778,19 +18778,19 @@ class Jd extends us { this.insert(0, e); } get(e) { - return Uee(this, e); + return qee(this, e); } slice(e = 0, r = this.length) { - return Fee(this, e, r); + return zee(this, e, r); } forEach(e) { Yy(this, e); } _write(e) { - e.writeTypeRef(_Te); + e.writeTypeRef(ATe); } } -const cTe = (t) => new Jd(); +const uTe = (t) => new Jd(); class Wy extends Jd { constructor(e = "UNDEFINED") { super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map(); @@ -18813,7 +18813,7 @@ class Wy extends Jd { } clone() { const e = new Wy(this.nodeName), r = this.getAttributes(); - return _ke(r, (n, i) => { + return Ake(r, (n, i) => { typeof n == "string" && e.setAttribute(i, n); }), e.insert(0, this.toArray().map((n) => n instanceof us ? n.clone() : n)), e; } @@ -18837,17 +18837,17 @@ class Wy extends Jd { } setAttribute(e, r) { this.doc !== null ? tn(this.doc, (n) => { - LM(n, this, e, r); + RM(n, this, e, r); }) : this._prelimAttrs.set(e, r); } getAttribute(e) { - return RM(this, e); + return MM(this, e); } hasAttribute(e) { - return Gee(this, e); + return Hee(this, e); } getAttributes(e) { - return e ? JSe(this, e) : Wee(this); + return e ? eTe(this, e) : Gee(this); } toDOM(e = document, r = {}, n) { const i = e.createElement(this.nodeName), s = this.getAttributes(); @@ -18860,11 +18860,11 @@ class Wy extends Jd { }), n !== void 0 && n._createAssociation(i, this), i; } _write(e) { - e.writeTypeRef(ETe), e.writeKey(this.nodeName); + e.writeTypeRef(_Te), e.writeKey(this.nodeName); } } -const uTe = (t) => new Wy(t.readKey()); -class hTe extends KS { +const hTe = (t) => new Wy(t.readKey()); +class fTe extends JS { constructor(e, r, n) { super(e, n), this.childListChanged = !1, this.attributesChanged = /* @__PURE__ */ new Set(), r.forEach((i) => { i === null ? this.childListChanged = !0 : this.attributesChanged.add(i); @@ -18890,10 +18890,10 @@ class Q5 extends _u { return i !== void 0 ? s = i.createDom(this) : s = document.createElement(this.hookName), s.setAttribute("data-yjs-hook", this.hookName), n !== void 0 && n._createAssociation(s, this), s; } _write(e) { - e.writeTypeRef(ATe), e.writeKey(this.hookName); + e.writeTypeRef(LTe), e.writeKey(this.hookName); } } -const fTe = (t) => new Q5(t.readKey()); +const dTe = (t) => new Q5(t.readKey()); class Y5 extends Pg { get nextSibling() { const e = this._item ? this._item.next : null; @@ -18944,11 +18944,11 @@ class Y5 extends Pg { return this.toString(); } _write(e) { - e.writeTypeRef(LTe); + e.writeTypeRef(RTe); } } -const dTe = (t) => new Y5(); -class MM { +const pTe = (t) => new Y5(); +class DM { constructor(e, r) { this.id = e, this.length = r; } @@ -18965,8 +18965,8 @@ class MM { throw Ac(); } } -const pTe = 0; -class _o extends MM { +const gTe = 0; +class _o extends DM { get deleted() { return !0; } @@ -18976,10 +18976,10 @@ class _o extends MM { return this.constructor !== e.constructor ? !1 : (this.length += e.length, !0); } integrate(e, r) { - r > 0 && (this.id.clock += r, this.length -= r), Dee(e.doc.store, this); + r > 0 && (this.id.clock += r, this.length -= r), Nee(e.doc.store, this); } write(e, r) { - e.writeInfo(pTe), e.writeLen(this.length - r); + e.writeInfo(gTe), e.writeLen(this.length - r); } getMissing(e, r) { return null; @@ -19020,7 +19020,7 @@ class tx { return 3; } } -const gTe = (t) => new tx(t.readBuf()); +const mTe = (t) => new tx(t.readBuf()); class Gy { constructor(e) { this.len = e; @@ -19058,7 +19058,7 @@ class Gy { return 1; } } -const mTe = (t) => new Gy(t.readLen()), Kee = (t, e) => new V1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); +const vTe = (t) => new Gy(t.readLen()), Jee = (t, e) => new V1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); class rx { constructor(e) { e._item && console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."), this.doc = e; @@ -19075,7 +19075,7 @@ class rx { return !0; } copy() { - return new rx(Kee(this.doc.guid, this.opts)); + return new rx(Jee(this.doc.guid, this.opts)); } splice(e) { throw Ac(); @@ -19098,7 +19098,7 @@ class rx { return 9; } } -const vTe = (t) => new rx(Kee(t.readString(), t.readAny())); +const yTe = (t) => new rx(Jee(t.readString(), t.readAny())); class I0 { constructor(e) { this.embed = e; @@ -19134,8 +19134,8 @@ class I0 { return 5; } } -const yTe = (t) => new I0(t.readJSON()); -class Ri { +const bTe = (t) => new I0(t.readJSON()); +class Mi { constructor(e, r) { this.key = e, this.value = r; } @@ -19149,7 +19149,7 @@ class Ri { return !1; } copy() { - return new Ri(this.key, this.value); + return new Mi(this.key, this.value); } splice(e) { throw Ac(); @@ -19172,7 +19172,7 @@ class Ri { return 6; } } -const bTe = (t) => new Ri(t.readKey(), t.readJSON()); +const xTe = (t) => new Mi(t.readKey(), t.readJSON()); class W5 { constructor(e) { this.arr = e; @@ -19214,7 +19214,7 @@ class W5 { return 2; } } -const xTe = (t) => { +const wTe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) { const i = t.readString(); @@ -19263,7 +19263,7 @@ class e0 { return 8; } } -const wTe = (t) => { +const OTe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) r.push(t.readAny()); @@ -19307,15 +19307,15 @@ class Ic { return 4; } } -const OTe = (t) => new Ic(t.readString()), kTe = [ - tTe, - nTe, - lTe, - uTe, +const kTe = (t) => new Ic(t.readString()), STe = [ + rTe, + iTe, cTe, - fTe, - dTe -], STe = 0, TTe = 1, CTe = 2, ETe = 3, _Te = 4, ATe = 5, LTe = 6; + hTe, + uTe, + dTe, + pTe +], TTe = 0, CTe = 1, ETe = 2, _Te = 3, ATe = 4, LTe = 5, RTe = 6; class Wc { constructor(e) { this.type = e; @@ -19365,7 +19365,7 @@ class Wc { return 7; } } -const RTe = (t) => new Wc(kTe[t.readTypeRef()](t)), B7 = (t, e) => { +const MTe = (t) => new Wc(STe[t.readTypeRef()](t)), F7 = (t, e) => { let r = e, n = 0, i; do n > 0 && (r = pr(r.client, r.clock + n)), i = m4(t, r), n = r.clock - i.id.clock, r = i.redone; @@ -19374,7 +19374,7 @@ const RTe = (t) => new Wc(kTe[t.readTypeRef()](t)), B7 = (t, e) => { item: i, diff: n }; -}, DM = (t, e) => { +}, NM = (t, e) => { for (; t !== null && t.keep !== e; ) t.keep = e, t = t.parent._item; }, G5 = (t, e, r) => { @@ -19389,13 +19389,13 @@ const RTe = (t) => new Wc(kTe[t.readTypeRef()](t)), B7 = (t, e) => { e.content.splice(r) ); return e.deleted && s.markDeleted(), e.keep && (s.keep = !0), e.redone !== null && (s.redone = pr(e.redone.client, e.redone.clock + r)), e.right = s, s.right !== null && (s.right.left = s), t._mergeStructs.push(s), s.parentSub !== null && s.right === null && s.parent._map.set(s.parentSub, s), e.length = r, s; -}, sz = (t, e) => Q3e(t, (r) => Jb(r.deletions, e)), Jee = (t, e, r, n, i, s) => { +}, sz = (t, e) => Y3e(t, (r) => Jb(r.deletions, e)), ete = (t, e, r, n, i, s) => { const a = t.doc, o = a.store, l = a.clientID, u = e.redone; if (u !== null) return Ca(t, u); let h = e.parent._item, f = null, d; if (h !== null && h.deleted === !0) { - if (h.redone === null && (!r.has(h) || Jee(t, h, r, n, i, s) === null)) + if (h.redone === null && (!r.has(h) || ete(t, h, r, n, i, s) === null)) return null; for (; h.redone !== null; ) h = Ca(t, h.redone); @@ -19440,17 +19440,17 @@ const RTe = (t) => new Wc(kTe[t.readTypeRef()](t)), B7 = (t, e) => { e.parentSub, e.content.copy() ); - return e.redone = m, DM(v, !0), v.integrate(t, 0), v; + return e.redone = m, NM(v, !0), v.integrate(t, 0), v; }; -class rn extends MM { +class rn extends DM { constructor(e, r, n, i, s, a, o, l) { super(e, l.getLength()), this.origin = n, this.left = r, this.right = i, this.rightOrigin = s, this.parent = a, this.parentSub = o, this.redone = null, this.content = l, this.info = this.content.isCountable() ? NF : 0; } set marker(e) { - (this.info & IE) > 0 !== e && (this.info ^= IE); + (this.info & PE) > 0 !== e && (this.info ^= PE); } get marker() { - return (this.info & IE) > 0; + return (this.info & PE) > 0; } get keep() { return (this.info & DF) > 0; @@ -19462,13 +19462,13 @@ class rn extends MM { return (this.info & NF) > 0; } get deleted() { - return (this.info & NE) > 0; + return (this.info & IE) > 0; } set deleted(e) { - this.deleted !== e && (this.info ^= NE); + this.deleted !== e && (this.info ^= IE); } markDeleted() { - this.info |= NE; + this.info |= IE; } getMissing(e, r) { if (this.origin && this.origin.client !== this.id.client && this.origin.clock >= ti(r, this.origin.client)) @@ -19525,7 +19525,7 @@ class rn extends MM { n = this.parent._start, this.parent._start = this; this.right = n; } - this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), Dee(e.doc.store, this), this.content.integrate(e, this), KF(e, this.parent, this.parentSub), (this.parent._item !== null && this.parent._item.deleted || this.parentSub !== null && this.right !== null) && this.delete(e); + this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), Nee(e.doc.store, this), this.content.integrate(e, this), KF(e, this.parent, this.parentSub), (this.parent._item !== null && this.parent._item.deleted || this.parentSub !== null && this.right !== null) && this.delete(e); } else new _o(this.id, this.length).integrate(e, 0); } @@ -19562,16 +19562,16 @@ class rn extends MM { gc(e, r) { if (!this.deleted) throw Il(); - this.content.gc(e), r ? PSe(e, this, new _o(this.id, this.length)) : this.content = new Gy(this.length); + this.content.gc(e), r ? $Se(e, this, new _o(this.id, this.length)) : this.content = new Gy(this.length); } write(e, r) { - const n = r > 0 ? pr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & HS | (n === null ? 0 : so) | (i === null ? 0 : Eu) | (s === null ? 0 : By); + const n = r > 0 ? pr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & XS | (n === null ? 0 : so) | (i === null ? 0 : Eu) | (s === null ? 0 : By); if (e.writeInfo(a), n !== null && e.writeLeftID(n), i !== null && e.writeRightID(i), n === null && i === null) { const o = this.parent; if (o._item !== void 0) { const l = o._item; if (l === null) { - const u = Lee(o); + const u = Ree(o); e.writeParentInfo(!0), e.writeString(u); } else e.writeParentInfo(!1), e.writeLeftID(l.id); @@ -19582,24 +19582,24 @@ class rn extends MM { this.content.write(e, r); } } -const ete = (t, e) => MTe[e & HS](t), MTe = [ +const tte = (t, e) => DTe[e & XS](t), DTe = [ () => { Il(); }, + vTe, + wTe, mTe, + kTe, + bTe, xTe, - gTe, + MTe, OTe, yTe, - bTe, - RTe, - wTe, - vTe, () => { Il(); } -], DTe = 10; -class Ao extends MM { +], NTe = 10; +class Ao extends DM { get deleted() { return !0; } @@ -19612,16 +19612,16 @@ class Ao extends MM { Il(); } write(e, r) { - e.writeInfo(DTe), Wt(e.restEncoder, this.length - r); + e.writeInfo(NTe), Wt(e.restEncoder, this.length - r); } getMissing(e, r) { return null; } } -const tte = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, rte = "__ $YJS$ __"; -tte[rte] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); -tte[rte] = !0; -class NM { +const rte = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, nte = "__ $YJS$ __"; +rte[nte] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); +rte[nte] = !0; +class IM { constructor(e, r) { this.yanchor = e, this.yhead = r; } @@ -19632,18 +19632,18 @@ class NM { }; } static fromJSON(e) { - return new NM(qy(e.yanchor), qy(e.yhead)); + return new IM(qy(e.yanchor), qy(e.yhead)); } } -class NTe { +class ITe { constructor(e, r) { - this.ytext = e, this.awareness = r, this.undoManager = new TM(e); + this.ytext = e, this.awareness = r, this.undoManager = new CM(e); } toYPos(e, r = 0) { - return D7(this.ytext, e, r); + return N7(this.ytext, e, r); } fromYPos(e) { - const r = N7(qy(e), this.ytext.doc); + const r = I7(qy(e), this.ytext.doc); if (r == null || r.type !== this.ytext) throw new Error("[y-codemirror] The position you want to retrieve was created by a different document"); return { @@ -19653,21 +19653,21 @@ class NTe { } toYRange(e) { const r = e.assoc, n = this.toYPos(e.anchor, r), i = this.toYPos(e.head, r); - return new NM(n, i); + return new IM(n, i); } fromYRange(e) { const r = this.fromYPos(e.yanchor), n = this.fromYPos(e.yhead); return r.pos === n.pos ? Ve.cursor(n.pos, n.assoc) : Ve.range(r.pos, n.pos); } } -const tT = _t.define({ +const rT = _t.define({ combine(t) { return t[t.length - 1]; } -}), F7 = Vl.define(); -class ITe { +}), z7 = Vl.define(); +class PTe { constructor(e) { - this.view = e, this.conf = e.state.facet(tT), this._observer = (r, n) => { + this.view = e, this.conf = e.state.facet(rT), this._observer = (r, n) => { if (n.origin !== this.conf) { const i = r.delta, s = []; let a = 0; @@ -19675,12 +19675,12 @@ class ITe { const l = i[o]; l.insert != null ? s.push({ from: a, to: a, insert: l.insert }) : l.delete != null ? (s.push({ from: a, to: a + l.delete, insert: "" }), a += l.delete) : a += l.retain; } - e.dispatch({ changes: s, annotations: [F7.of(this.conf)] }); + e.dispatch({ changes: s, annotations: [z7.of(this.conf)] }); } }, this._ytext = this.conf.ytext, this._ytext.observe(this._observer); } update(e) { - if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(F7) === this.conf) + if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(z7) === this.conf) return; const r = this.conf.ytext; r.doc.transact(() => { @@ -19696,7 +19696,7 @@ class ITe { this._ytext.unobserve(this._observer); } } -const PTe = an.fromClass(ITe), $Te = ht.baseTheme({ +const $Te = an.fromClass(PTe), BTe = ht.baseTheme({ ".cm-ySelection": {}, ".cm-yLineSelection": { padding: 0, @@ -19750,20 +19750,20 @@ const PTe = an.fromClass(ITe), $Te = ht.baseTheme({ opacity: 1, transitionDelay: "0s" } -}), BTe = Vl.define(); -class FTe extends za { +}), FTe = Vl.define(); +class zTe extends Va { constructor(e, r) { super(), this.color = e, this.name = r; } toDOM() { - return BE("span", [Za("class", "cm-ySelectionCaret"), Za("style", `background-color: ${this.color}; border-color: ${this.color}`)], [ + return FE("span", [ja("class", "cm-ySelectionCaret"), ja("style", `background-color: ${this.color}; border-color: ${this.color}`)], [ Rw("\u2060"), - BE("div", [ - Za("class", "cm-ySelectionCaretDot") + FE("div", [ + ja("class", "cm-ySelectionCaretDot") ]), Rw("\u2060"), - BE("div", [ - Za("class", "cm-ySelectionInfo") + FE("div", [ + ja("class", "cm-ySelectionInfo") ], [ Rw(this.name) ]), @@ -19786,10 +19786,10 @@ class FTe extends za { return !0; } } -class zTe { +class VTe { constructor(e) { - this.conf = e.state.facet(tT), this._listener = ({ added: r, updated: n, removed: i }, s, a) => { - r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [BTe.of([])] }); + this.conf = e.state.facet(rT), this._listener = ({ added: r, updated: n, removed: i }, s, a) => { + r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [FTe.of([])] }); }, this._awareness = this.conf.awareness, this._awareness.on("change", this._listener), this.decorations = Er.of([]); } destroy() { @@ -19800,7 +19800,7 @@ class zTe { if (a != null) { const o = e.view.hasFocus && e.view.dom.ownerDocument.hasFocus(), l = o ? e.state.selection.main : null, u = a.cursor == null ? null : qy(a.cursor.anchor), h = a.cursor == null ? null : qy(a.cursor.head); if (l != null) { - const f = D7(r, l.anchor), d = D7(r, l.head); + const f = N7(r, l.anchor), d = N7(r, l.head); (a.cursor == null || !XF(u, f) || !XF(h, d)) && i.setLocalStateField("cursor", { anchor: f, head: d @@ -19814,10 +19814,10 @@ class zTe { const u = o.cursor; if (u == null || u.anchor == null || u.head == null) return; - const h = N7(u.anchor, n), f = N7(u.head, n); + const h = I7(u.anchor, n), f = I7(u.head, n); if (h == null || f == null || h.type !== r || f.type !== r) return; - const { color: d = "#30bced", name: p = "Anonymous" } = o.user || {}, g = o.user && o.user.colorLight || d + "33", m = GS(h.index, f.index), v = Bf(h.index, f.index), y = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(v); + const { color: d = "#30bced", name: p = "Anonymous" } = o.user || {}, g = o.user && o.user.colorLight || d + "33", m = HS(h.index, f.index), v = Bf(h.index, f.index), y = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(v); if (y.number === b.number) s.push({ from: m, @@ -19860,15 +19860,15 @@ class zTe { value: Et.widget({ side: f.index - h.index > 0 ? -1 : 1, block: !1, - widget: new FTe(d, p) + widget: new zTe(d, p) }) }); }), this.decorations = Et.set(s, !0); } } -const VTe = an.fromClass(zTe, { +const UTe = an.fromClass(VTe, { decorations: (t) => t.decorations -}), UTe = () => { +}), qTe = () => { let t = !0; return (e, r) => { if (t) { @@ -19882,7 +19882,7 @@ const VTe = an.fromClass(zTe, { r !== void 0 && r(); }; }; -class qTe { +class QTe { constructor(e) { this.undoManager = e; } @@ -19899,14 +19899,14 @@ class qTe { return this.undoManager.redo() != null; } } -const rT = _t.define({ +const nT = _t.define({ combine(t) { return t[t.length - 1]; } }); -class QTe { +class YTe { constructor(e) { - this.view = e, this.conf = e.state.facet(rT), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(tT), this._beforeChangeSelection = null, this._mux = UTe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { + this.view = e, this.conf = e.state.facet(nT), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(rT), this._beforeChangeSelection = null, this._mux = qTe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { n.has(this.syncConf.ytext) && this._beforeChangeSelection && !r.meta.has(this) && r.meta.set(this, this._beforeChangeSelection); }, this._onStackItemPopped = ({ stackItem: r }) => { const n = r.meta.get(this); @@ -19919,26 +19919,26 @@ class QTe { }, this._undoManager.on("stack-item-added", this._onStackItemAdded), this._undoManager.on("stack-item-popped", this._onStackItemPopped), this._undoManager.addTrackedOrigin(this.syncConf); } update(e) { - e.selectionSet && (e.transactions.length === 0 || e.transactions[0].annotation(F7) !== this.syncConf) && this._storeSelection(); + e.selectionSet && (e.transactions.length === 0 || e.transactions[0].annotation(z7) !== this.syncConf) && this._storeSelection(); } destroy() { this._undoManager.off("stack-item-added", this._onStackItemAdded), this._undoManager.off("stack-item-popped", this._onStackItemPopped), this._undoManager.removeTrackedOrigin(this.syncConf); } } -const YTe = an.fromClass(QTe), WTe = ({ state: t, dispatch: e }) => t.facet(rT).undo() || !0, GTe = ({ state: t, dispatch: e }) => t.facet(rT).redo() || !0, HTe = (t, e, { undoManager: r = new TM(t) } = {}) => { - const n = new NTe(t, e), i = [ - tT.of(n), - PTe +const WTe = an.fromClass(YTe), GTe = ({ state: t, dispatch: e }) => t.facet(nT).undo() || !0, HTe = ({ state: t, dispatch: e }) => t.facet(nT).redo() || !0, XTe = (t, e, { undoManager: r = new CM(t) } = {}) => { + const n = new ITe(t, e), i = [ + rT.of(n), + $Te ]; return e && i.push( - $Te, - VTe + BTe, + UTe ), r !== !1 && i.push( - rT.of(new qTe(r)), - YTe, + nT.of(new QTe(r)), + WTe, ht.domEventHandlers({ beforeinput(s, a) { - return s.inputType === "historyUndo" ? WTe(a) : s.inputType === "historyRedo" ? GTe(a) : !1; + return s.inputType === "historyUndo" ? GTe(a) : s.inputType === "historyRedo" ? HTe(a) : !1; } }) ), i; @@ -19957,7 +19957,7 @@ class H5 { toTree(e, r = this.end) { let n = this.children.length - 1; return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new Yr(e.types[this.type], this.children, this.positions, r - this.from).balance({ - makeTree: (i, s, a) => new Yr(Li.none, i, s, a, this.hashProp) + makeTree: (i, s, a) => new Yr(Ri.none, i, s, a, this.hashProp) }); } } @@ -19965,12 +19965,12 @@ var mt; (function(t) { t[t.Document = 1] = "Document", t[t.CodeBlock = 2] = "CodeBlock", t[t.FencedCode = 3] = "FencedCode", t[t.Blockquote = 4] = "Blockquote", t[t.HorizontalRule = 5] = "HorizontalRule", t[t.BulletList = 6] = "BulletList", t[t.OrderedList = 7] = "OrderedList", t[t.ListItem = 8] = "ListItem", t[t.ATXHeading1 = 9] = "ATXHeading1", t[t.ATXHeading2 = 10] = "ATXHeading2", t[t.ATXHeading3 = 11] = "ATXHeading3", t[t.ATXHeading4 = 12] = "ATXHeading4", t[t.ATXHeading5 = 13] = "ATXHeading5", t[t.ATXHeading6 = 14] = "ATXHeading6", t[t.SetextHeading1 = 15] = "SetextHeading1", t[t.SetextHeading2 = 16] = "SetextHeading2", t[t.HTMLBlock = 17] = "HTMLBlock", t[t.LinkReference = 18] = "LinkReference", t[t.Paragraph = 19] = "Paragraph", t[t.CommentBlock = 20] = "CommentBlock", t[t.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", t[t.Escape = 22] = "Escape", t[t.Entity = 23] = "Entity", t[t.HardBreak = 24] = "HardBreak", t[t.Emphasis = 25] = "Emphasis", t[t.StrongEmphasis = 26] = "StrongEmphasis", t[t.Link = 27] = "Link", t[t.Image = 28] = "Image", t[t.InlineCode = 29] = "InlineCode", t[t.HTMLTag = 30] = "HTMLTag", t[t.Comment = 31] = "Comment", t[t.ProcessingInstruction = 32] = "ProcessingInstruction", t[t.URL = 33] = "URL", t[t.HeaderMark = 34] = "HeaderMark", t[t.QuoteMark = 35] = "QuoteMark", t[t.ListMark = 36] = "ListMark", t[t.LinkMark = 37] = "LinkMark", t[t.EmphasisMark = 38] = "EmphasisMark", t[t.CodeMark = 39] = "CodeMark", t[t.CodeText = 40] = "CodeText", t[t.CodeInfo = 41] = "CodeInfo", t[t.LinkTitle = 42] = "LinkTitle", t[t.LinkLabel = 43] = "LinkLabel"; })(mt || (mt = {})); -class XTe { +class ZTe { constructor(e, r) { this.start = e, this.content = r, this.marks = [], this.parsers = []; } } -class ZTe { +class jTe { constructor() { this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1; } @@ -20022,10 +20022,10 @@ function az(t, e, r) { return !0; if (r.indent >= r.baseIndent + 4) return !1; - let n = (t.type == mt.OrderedList ? $M : PM)(r, e, !1); - return n > 0 && (t.type != mt.BulletList || IM(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value; + let n = (t.type == mt.OrderedList ? BM : $M)(r, e, !1); + return n > 0 && (t.type != mt.BulletList || PM(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value; } -const nte = { +const ite = { [mt.Blockquote](t, e, r) { return r.next != 62 ? !1 : (r.markers.push(Pr(mt.QuoteMark, e.lineStart + r.pos, e.lineStart + r.pos + 1)), r.moveBase(r.pos + (rl(r.text.charCodeAt(r.pos + 1)) ? 2 : 1)), t.end = e.lineStart + r.text.length, !0); }, @@ -20051,7 +20051,7 @@ function oz(t, e, r) { e--; return e; } -function ite(t) { +function ste(t) { if (t.next != 96 && t.next != 126) return -1; let e = t.pos + 1; @@ -20066,10 +20066,10 @@ function ite(t) { } return e; } -function ste(t) { +function ate(t) { return t.next != 62 ? -1 : t.text.charCodeAt(t.pos + 1) == 32 ? 2 : 1; } -function IM(t, e, r) { +function PM(t, e, r) { if (t.next != 42 && t.next != 45 && t.next != 95) return -1; let n = 1; @@ -20080,18 +20080,18 @@ function IM(t, e, r) { else if (!rl(s)) return -1; } - return r && t.next == 45 && lte(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1; + return r && t.next == 45 && cte(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1; } -function ate(t, e) { +function ote(t, e) { for (let r = t.stack.length - 1; r >= 0; r--) if (t.stack[r].type == e) return !0; return !1; } -function PM(t, e, r) { - return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || rl(t.text.charCodeAt(t.pos + 1))) && (!r || ate(e, mt.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; -} function $M(t, e, r) { + return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || rl(t.text.charCodeAt(t.pos + 1))) && (!r || ote(e, mt.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; +} +function BM(t, e, r) { let n = t.pos, i = t.next; for (; i >= 48 && i <= 57; ) { n++; @@ -20099,9 +20099,9 @@ function $M(t, e, r) { return -1; i = t.text.charCodeAt(n); } - return n == t.pos || n > t.pos + 9 || i != 46 && i != 41 || n < t.text.length - 1 && !rl(t.text.charCodeAt(n + 1)) || r && !ate(e, mt.OrderedList) && (t.skipSpace(n + 1) == t.text.length || n > t.pos + 1 || t.next != 49) ? -1 : n + 1 - t.pos; + return n == t.pos || n > t.pos + 9 || i != 46 && i != 41 || n < t.text.length - 1 && !rl(t.text.charCodeAt(n + 1)) || r && !ote(e, mt.OrderedList) && (t.skipSpace(n + 1) == t.text.length || n > t.pos + 1 || t.next != 49) ? -1 : n + 1 - t.pos; } -function ote(t) { +function lte(t) { if (t.next != 35) return -1; let e = t.pos + 1; @@ -20112,7 +20112,7 @@ function ote(t) { let r = e - t.pos; return r > 6 ? -1 : r; } -function lte(t) { +function cte(t) { if (t.next != 45 && t.next != 61 || t.indent >= t.baseIndent + 4) return -1; let e = t.pos + 1; @@ -20123,21 +20123,21 @@ function lte(t) { e++; return e == t.text.length ? r : -1; } -const z7 = /^[ \t]*$/, cte = /-->/, ute = /\?>/, V7 = [ +const V7 = /^[ \t]*$/, ute = /-->/, hte = /\?>/, U7 = [ [/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i], - [/^\s*" } } }), are = /* @__PURE__ */ new lr(), ore = /* @__PURE__ */ lCe.configure({ +}), are = /* @__PURE__ */ HR({ commentTokens: { block: { open: "" } } }), ore = /* @__PURE__ */ new lr(), lre = /* @__PURE__ */ cCe.configure({ props: [ - /* @__PURE__ */ I1.add((t) => !t.is("Block") || t.is("Document") || H7(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), - /* @__PURE__ */ are.add(H7), + /* @__PURE__ */ I1.add((t) => !t.is("Block") || t.is("Document") || X7(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), + /* @__PURE__ */ ore.add(X7), /* @__PURE__ */ Hb.add({ Document: () => null }), /* @__PURE__ */ Ed.add({ - Document: sre + Document: are }) ] }); -function H7(t) { +function X7(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -function M6e(t, e) { +function D6e(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; - if (!n || (i = H7(n.type)) != null && i <= e) + if (!n || (i = X7(n.type)) != null && i <= e) break; r = n; } return r.to; } -const D6e = /* @__PURE__ */ DK.of((t, e, r) => { +const N6e = /* @__PURE__ */ NK.of((t, e, r) => { for (let n = fn(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { - let i = n.type.prop(are); + let i = n.type.prop(ore); if (i == null) continue; - let s = M6e(n, i); + let s = D6e(n, i); if (s > r) return { from: r, to: s }; } return null; }); -function VM(t) { - return new Mo(sre, t, [D6e], "markdown"); +function UM(t) { + return new Mo(are, t, [N6e], "markdown"); } -const N6e = /* @__PURE__ */ VM(ore), I6e = /* @__PURE__ */ ore.configure([bCe, wCe, xCe, OCe, { +const I6e = /* @__PURE__ */ UM(lre), P6e = /* @__PURE__ */ lre.configure([xCe, OCe, wCe, kCe, { props: [ /* @__PURE__ */ I1.add({ Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to }) }) ] -}]), lre = /* @__PURE__ */ VM(I6e); -function P6e(t, e) { +}]), cre = /* @__PURE__ */ UM(P6e); +function $6e(t, e) { return (r) => { if (r && t) { let n = null; @@ -24669,11 +24669,11 @@ class $w { } } marker(e, r) { - let n = this.node.name == "OrderedList" ? String(+ure(this.item, e)[2] + r) : ""; + let n = this.node.name == "OrderedList" ? String(+hre(this.item, e)[2] + r) : ""; return this.spaceBefore + n + this.type + this.spaceAfter; } } -function cre(t, e) { +function ure(t, e) { let r = []; for (let i = t; i && i.name != "Document"; i = i.parent) (i.name == "ListItem" || i.name == "Blockquote" || i.name == "FencedCode") && r.push(i); @@ -24696,13 +24696,13 @@ function cre(t, e) { } return n; } -function ure(t, e) { +function hre(t, e) { return /^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from, t.from + 10)); } -function e6(t, e, r, n = 0) { +function t6(t, e, r, n = 0) { for (let i = -1, s = t; ; ) { if (s.name == "ListItem") { - let o = ure(s, e), l = +o[2]; + let o = hre(s, e), l = +o[2]; if (i >= 0) { if (l != i + 1) return; @@ -24716,7 +24716,7 @@ function e6(t, e, r, n = 0) { s = a; } } -function X7(t, e) { +function Z7(t, e) { let r = /^[ \t]*/.exec(t)[0].length; if (!r || e.facet(Gb) != " ") return t; @@ -24725,11 +24725,11 @@ function X7(t, e) { s >= 4 ? (i += " ", s -= 4) : (i += " ", s--); return i + t.slice(r); } -const $6e = ({ state: t, dispatch: e }) => { +const B6e = ({ state: t, dispatch: e }) => { let r = fn(t), { doc: n } = t, i = null, s = t.changeByRange((a) => { - if (!a.empty || !lre.isActiveAt(t, a.from)) + if (!a.empty || !cre.isActiveAt(t, a.from)) return i = { range: a }; - let o = a.from, l = n.lineAt(o), u = cre(r.resolveInner(o, -1), n); + let o = a.from, l = n.lineAt(o), u = ure(r.resolveInner(o, -1), n); for (; u.length && u[u.length - 1].from > o - l.from; ) u.pop(); if (!u.length) @@ -24743,12 +24743,12 @@ const $6e = ({ state: t, dispatch: e }) => { let v = u.length > 1 ? u[u.length - 2] : null, y, b = ""; v && v.item ? (y = l.from + v.from, b = v.marker(n, 1)) : y = l.from + (v ? v.to : 0); let w = [{ from: y, to: o, insert: b }]; - return h.node.name == "OrderedList" && e6(h.item, n, w, -2), v && v.node.name == "OrderedList" && e6(v.item, n, w), { range: Ve.cursor(y + b.length), changes: w }; + return h.node.name == "OrderedList" && t6(h.item, n, w, -2), v && v.node.name == "OrderedList" && t6(v.item, n, w), { range: Ve.cursor(y + b.length), changes: w }; } else { let v = ""; for (let y = 0, b = u.length - 2; y <= b; y++) v += u[y].blank(y < b ? Ml(l.text, 4, u[y + 1].from) - v.length : null, y < b); - return v = X7(v, t), { + return v = Z7(v, t), { range: Ve.cursor(o + v.length + 1), changes: { from: l.from, insert: v + t.lineBreak } }; @@ -24764,7 +24764,7 @@ const $6e = ({ state: t, dispatch: e }) => { } } let d = []; - h.node.name == "OrderedList" && e6(h.item, n, d); + h.node.name == "OrderedList" && t6(h.item, n, d); let p = h.item && h.item.from < l.from, g = ""; if (!p || /^[\s\d.)\-+*>]*/.exec(l.text)[0].length >= h.to) for (let v = 0, y = u.length - 1; v <= y; v++) @@ -24772,14 +24772,14 @@ const $6e = ({ state: t, dispatch: e }) => { let m = o; for (; m > l.from && /\s/.test(l.text.charAt(m - l.from - 1)); ) m--; - return g = X7(g, t), d.push({ from: m, to: o, insert: t.lineBreak + g }), { range: Ve.cursor(m + g.length + 1), changes: d }; + return g = Z7(g, t), d.push({ from: m, to: o, insert: t.lineBreak + g }), { range: Ve.cursor(m + g.length + 1), changes: d }; }); return i ? !1 : (e(t.update(s, { scrollIntoView: !0, userEvent: "input" })), !0); }; function Yz(t) { return t.name == "QuoteMark" || t.name == "ListMark"; } -function B6e(t, e) { +function F6e(t, e) { let r = t.resolveInner(e, -1), n = e; Yz(r) && (n = r.from, r = r.parent); for (let i; i = r.childBefore(n); ) @@ -24791,11 +24791,11 @@ function B6e(t, e) { break; return r; } -const F6e = ({ state: t, dispatch: e }) => { +const z6e = ({ state: t, dispatch: e }) => { let r = fn(t), n = null, i = t.changeByRange((s) => { let a = s.from, { doc: o } = t; - if (s.empty && lre.isActiveAt(t, s.from)) { - let l = o.lineAt(a), u = cre(B6e(r, a), o); + if (s.empty && cre.isActiveAt(t, s.from)) { + let l = o.lineAt(a), u = ure(F6e(r, a), o); if (u.length) { let h = u[u.length - 1], f = h.to - h.spaceAfter.length + (h.spaceAfter ? 1 : 0); if (a - l.from > f && !/\S/.test(l.text.slice(f, a - l.from))) @@ -24807,7 +24807,7 @@ const F6e = ({ state: t, dispatch: e }) => { let d = l.from + h.from; if (h.item && h.node.from < h.item.from && /\S/.test(l.text.slice(h.from, h.to))) { let p = h.blank(Ml(l.text, 4, h.to) - Ml(l.text, 4, h.from)); - return d == l.from && (p = X7(p, t)), { + return d == l.from && (p = Z7(p, t)), { range: Ve.cursor(d + p.length), changes: { from: d, to: l.from + h.to, insert: p } }; @@ -24820,22 +24820,22 @@ const F6e = ({ state: t, dispatch: e }) => { return n = { range: s }; }); return n ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "delete" })), !0); -}, z6e = [ - { key: "Enter", run: $6e }, - { key: "Backspace", run: F6e } -], Z7 = /* @__PURE__ */ L6e({ matchClosingTags: !1 }); -function V6e(t = {}) { - let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = N6e, completeHTMLTags: s = !0 } = t; - if (!(i instanceof nT)) +}, V6e = [ + { key: "Enter", run: B6e }, + { key: "Backspace", run: z6e } +], j7 = /* @__PURE__ */ R6e({ matchClosingTags: !1 }); +function U6e(t = {}) { + let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = I6e, completeHTMLTags: s = !0 } = t; + if (!(i instanceof iT)) throw new RangeError("Base parser provided to `markdown` should be a Markdown parser"); - let a = t.extensions ? [t.extensions] : [], o = [Z7.support], l; + let a = t.extensions ? [t.extensions] : [], o = [j7.support], l; r instanceof Ry ? (o.push(r.support), l = r.language) : r && (l = r); - let u = e || l ? P6e(e, l) : void 0; - a.push(uCe({ codeParser: u, htmlParser: Z7.language.parser })), n && o.push(zl.high(Tu.of(z6e))); - let h = VM(i.configure(a)); - return s && o.push(h.data.of({ autocomplete: U6e })), new Ry(h, o); + let u = e || l ? $6e(e, l) : void 0; + a.push(hCe({ codeParser: u, htmlParser: j7.language.parser })), n && o.push(zl.high(Tu.of(V6e))); + let h = UM(i.configure(a)); + return s && o.push(h.data.of({ autocomplete: q6e })), new Ry(h, o); } -function U6e(t) { +function q6e(t) { let { state: e, pos: r } = t, n = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(r - 25, r)); if (!n) return null; @@ -24848,25 +24848,25 @@ function U6e(t) { return { from: r - n[0].length, to: r, - options: q6e(), + options: Q6e(), validFor: /^<[:\-\.\w\u00b7-\uffff]*$/ }; } -let t6 = null; -function q6e() { - if (t6) - return t6; - let t = E6e(new aM(dr.create({ extensions: Z7 }), 0, !0)); - return t6 = t ? t.options : []; +let r6 = null; +function Q6e() { + if (r6) + return r6; + let t = _6e(new oM(dr.create({ extensions: j7 }), 0, !0)); + return r6 = t ? t.options : []; } -function Q6e(t) { +function Y6e(t) { throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } -var hre = { exports: {} }; -const Y6e = {}, W6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var fre = { exports: {} }; +const W6e = {}, G6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Y6e -}, Symbol.toStringTag, { value: "Module" })), G6e = /* @__PURE__ */ EZ(W6e); + default: W6e +}, Symbol.toStringTag, { value: "Module" })), H6e = /* @__PURE__ */ _Z(G6e); (function(t) { var e; (function() { @@ -24922,8 +24922,8 @@ const Y6e = {}, W6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin u(a.statusText); }; })), a.overrideMimeType && a.overrideMimeType("text/plain; charset=" + n), a.send(null), i ? s : a.responseText; - } else if (typeof Q6e < "u") { - var o = G6e; + } else if (typeof Y6e < "u") { + var o = H6e; try { if (o.existsSync(r)) return o.readFileSync(r, n); @@ -24984,9 +24984,9 @@ const Y6e = {}, W6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin for (var O = d + 1; O < p; O++) { var S = f[O], C = this.rules[S]; if (C && C.combineable && m.type != C.type) - for (var T = this._applyRule(w, C), L = 0, E = T.length; L < E; L++) { - var A = T[L]; - s(A, []); + for (var T = this._applyRule(w, C), A = 0, E = T.length; A < E; A++) { + var L = T[A]; + s(L, []); } } } @@ -25117,16 +25117,16 @@ const Y6e = {}, W6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin for (y = 0, w = C.length + 1; y < w; y++) { var T = [C.substring(0, y), C.substring(y)]; if (T[1] && (O = T[0] + T[1].substring(1), (!m || f.check(O)) && (O in v ? v[O] += 1 : v[O] = 1)), T[1].length > 1 && T[1][1] !== T[1][0] && (O = T[0] + T[1][1] + T[1][0] + T[1].substring(2), (!m || f.check(O)) && (O in v ? v[O] += 1 : v[O] = 1)), T[1]) { - var L = T[1].substring(0, 1).toUpperCase() === T[1].substring(0, 1) ? "uppercase" : "lowercase"; + var A = T[1].substring(0, 1).toUpperCase() === T[1].substring(0, 1) ? "uppercase" : "lowercase"; for (b = 0; b < S; b++) { var E = f.alphabet[b]; - L === "uppercase" && (E = E.toUpperCase()), E != T[1].substring(0, 1) && (O = T[0] + E + T[1].substring(1), (!m || f.check(O)) && (O in v ? v[O] += 1 : v[O] = 1)); + A === "uppercase" && (E = E.toUpperCase()), E != T[1].substring(0, 1) && (O = T[0] + E + T[1].substring(1), (!m || f.check(O)) && (O in v ? v[O] += 1 : v[O] = 1)); } } if (T[1]) for (b = 0; b < S; b++) { - var L = T[0].substring(-1).toUpperCase() === T[0].substring(-1) && T[1].substring(0, 1).toUpperCase() === T[1].substring(0, 1) ? "uppercase" : "lowercase", E = f.alphabet[b]; - L === "uppercase" && (E = E.toUpperCase()), O = T[0] + E + T[1], (!m || f.check(O)) && (O in v ? v[O] += 1 : v[O] = 1); + var A = T[0].substring(-1).toUpperCase() === T[0].substring(-1) && T[1].substring(0, 1).toUpperCase() === T[1].substring(0, 1) ? "uppercase" : "lowercase", E = f.alphabet[b]; + A === "uppercase" && (E = E.toUpperCase()), O = T[0] + E + T[1], (!m || f.check(O)) && (O in v ? v[O] += 1 : v[O] = 1); } } return v; @@ -25138,16 +25138,16 @@ const Y6e = {}, W6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin var w, O = []; for (w in y) y.hasOwnProperty(w) && O.push([w, y[w]]); - function S(E, A) { - var _ = E[1], R = A[1]; - return _ < R ? -1 : _ > R ? 1 : A[0].localeCompare(E[0]); + function S(E, L) { + var _ = E[1], R = L[1]; + return _ < R ? -1 : _ > R ? 1 : L[0].localeCompare(E[0]); } O.sort(S).reverse(); var C = [], T = "lowercase"; g.toUpperCase() === g ? T = "uppercase" : g.substr(0, 1).toUpperCase() + g.substr(1).toLowerCase() === g && (T = "capitalized"); - var L = n; - for (w = 0; w < Math.min(L, O.length); w++) - T === "uppercase" ? O[w][0] = O[w][0].toUpperCase() : T === "capitalized" && (O[w][0] = O[w][0].substr(0, 1).toUpperCase() + O[w][0].substr(1)), !f.hasFlag(O[w][0], "NOSUGGEST") && C.indexOf(O[w][0]) == -1 ? C.push(O[w][0]) : L++; + var A = n; + for (w = 0; w < Math.min(A, O.length); w++) + T === "uppercase" ? O[w][0] = O[w][0].toUpperCase() : T === "capitalized" && (O[w][0] = O[w][0].substr(0, 1).toUpperCase() + O[w][0].substr(1)), !f.hasFlag(O[w][0], "NOSUGGEST") && C.indexOf(O[w][0]) == -1 ? C.push(O[w][0]) : A++; return C; } return this.memoized[r] = { @@ -25157,19 +25157,19 @@ const Y6e = {}, W6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin } }; })(), t.exports = e; -})(hre); -const H6e = hre.exports, fre = _t.define({ +})(fre); +const X6e = fre.exports, dre = _t.define({ combine: (t) => t[t.length - 1] -}), X6e = Et.mark({ +}), Z6e = Et.mark({ class: "cm-error" -}), Z6e = (t) => Object.keys(t.rules).length > 0; +}), j6e = (t) => Object.keys(t.rules).length > 0; function Wz(t) { var s, a; let e = ((s = t.visibleRanges[0]) == null ? void 0 : s.from) || 0, r = ((a = t.visibleRanges[0]) == null ? void 0 : a.to) || void 0; - const n = new Hi(), i = t.state.facet(fre); - return Z6e(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, X6e)), n.finish(); + const n = new Hi(), i = t.state.facet(dre); + return j6e(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, Z6e)), n.finish(); } -const j6e = an.fromClass(class { +const K6e = an.fromClass(class { constructor(t) { this.decorations = Wz(t); } @@ -25179,18 +25179,18 @@ const j6e = an.fromClass(class { }, { decorations: (t) => t.decorations }); -function K6e(t) { +function J6e(t) { if (!t) return []; let { dict: e = "en_US", dictionaryPath: r = "/dictionaries" } = t; - return [fre.of(new H6e(e, null, null, { + return [dre.of(new X6e(e, null, null, { dictionaryPath: r - })), j6e]; + })), K6e]; } -const J6e = "cm-link", e_e = [{ +const e_e = "cm-link", t_e = [{ target: /`[^`\n]+`/g, cssClass: "cm-mono" }]; @@ -25212,7 +25212,7 @@ function Gz(t, e, r, n) { match: f }) => { let d = { - class: J6e + class: e_e }; h.cssClass && (d.class = h.cssClass); let p; @@ -25226,9 +25226,9 @@ function Gz(t, e, r, n) { })), a.add(h.from + f.index, h.from + f.index + f[0].length, Et.mark(d)), p == null || p(); }), a.finish(); } -const UM = (t, e, r) => { +const qM = (t, e, r) => { t || (t = []); - const n = t.concat(e_e); + const n = t.concat(t_e); return an.fromClass(class { constructor(i) { this.decorations = Gz(i, n, e, r); @@ -25239,76 +25239,76 @@ const UM = (t, e, r) => { }, { decorations: (i) => i.decorations }); -}, dre = /* @__PURE__ */ new Map(); -class t_e { +}, pre = /* @__PURE__ */ new Map(); +class r_e { constructor(e) { - this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: Wke(r.newValue || "") }), Ske(this._onChange); + this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: Gke(r.newValue || "") }), Tke(this._onChange); } postMessage(e) { - cee.setItem(this.room, Yke(zke(e))); + uee.setItem(this.room, Wke(Vke(e))); } close() { - Tke(this._onChange); + Cke(this._onChange); } } -const r_e = typeof BroadcastChannel > "u" ? t_e : BroadcastChannel, qM = (t) => nh(dre, t, () => { - const e = jd(), r = new r_e(t); +const n_e = typeof BroadcastChannel > "u" ? r_e : BroadcastChannel, QM = (t) => nh(pre, t, () => { + const e = jd(), r = new n_e(t); return r.onmessage = (n) => e.forEach((i) => i(n.data, "broadcastchannel")), { bc: r, subs: e }; -}), n_e = (t, e) => (qM(t).subs.add(e), e), i_e = (t, e) => { - const r = qM(t), n = r.subs.delete(e); - return n && r.subs.size === 0 && (r.bc.close(), dre.delete(t)), n; +}), i_e = (t, e) => (QM(t).subs.add(e), e), s_e = (t, e) => { + const r = QM(t), n = r.subs.delete(e); + return n && r.subs.size === 0 && (r.bc.close(), pre.delete(t)), n; }, Sp = (t, e, r = null) => { - const n = qM(t); + const n = QM(t); n.bc.postMessage(e), n.subs.forEach((i) => i(e, r)); -}, pre = 0, QM = 1, gre = 2, j7 = (t, e) => { - Wt(t, pre); - const r = ASe(e); +}, gre = 0, YM = 1, mre = 2, K7 = (t, e) => { + Wt(t, gre); + const r = LSe(e); Zn(t, r); -}, mre = (t, e, r) => { - Wt(t, QM), Zn(t, TSe(e, r)); -}, s_e = (t, e, r) => mre(e, r, Es(t)), vre = (t, e, r) => { +}, vre = (t, e, r) => { + Wt(t, YM), Zn(t, CSe(e, r)); +}, a_e = (t, e, r) => vre(e, r, Es(t)), yre = (t, e, r) => { try { - OSe(e, Es(t), r); + kSe(e, Es(t), r); } catch (n) { console.error("Caught error while handling a Yjs update", n); } -}, a_e = (t, e) => { - Wt(t, gre), Zn(t, e); -}, o_e = vre, l_e = (t, e, r, n) => { +}, o_e = (t, e) => { + Wt(t, mre), Zn(t, e); +}, l_e = yre, c_e = (t, e, r, n) => { const i = or(t); switch (i) { - case pre: - s_e(t, e, r); + case gre: + a_e(t, e, r); break; - case QM: - vre(t, r, n); + case YM: + yre(t, r, n); break; - case gre: - o_e(t, r, n); + case mre: + l_e(t, r, n); break; default: throw new Error("Unknown message type"); } return i; -}, c_e = 0, u_e = (t, e, r) => { +}, u_e = 0, h_e = (t, e, r) => { switch (or(t)) { - case c_e: + case u_e: r(e, Xh(t)); } -}, r6 = 3e4; -class yre extends WS { +}, n6 = 3e4; +class bre extends GS { constructor(e) { super(), this.doc = e, this.clientID = e.clientID, this.states = /* @__PURE__ */ new Map(), this.meta = /* @__PURE__ */ new Map(), this._checkInterval = setInterval(() => { const r = df(); - this.getLocalState() !== null && r6 / 2 <= r - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState()); + this.getLocalState() !== null && n6 / 2 <= r - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState()); const n = []; this.meta.forEach((i, s) => { - s !== this.clientID && r6 <= r - i.lastUpdated && this.states.has(s) && n.push(s); - }), n.length > 0 && YM(this, n, "timeout"); - }, zu(r6 / 10)), e.on("destroy", () => { + s !== this.clientID && n6 <= r - i.lastUpdated && this.states.has(s) && n.push(s); + }), n.length > 0 && WM(this, n, "timeout"); + }, zu(n6 / 10)), e.on("destroy", () => { this.destroy(); }), this.setLocalState({}); } @@ -25338,7 +25338,7 @@ class yre extends WS { return this.states; } } -const YM = (t, e, r) => { +const WM = (t, e, r) => { const n = []; for (let i = 0; i < e.length; i++) { const s = e[i]; @@ -25362,7 +25362,7 @@ const YM = (t, e, r) => { Wt(i, a), Wt(i, l), Ud(i, JSON.stringify(o)); } return Ln(i); -}, h_e = (t, e, r) => { +}, f_e = (t, e, r) => { const n = Ff(e), i = df(), s = [], a = [], o = [], l = [], u = or(n); for (let h = 0; h < u; h++) { const f = or(n); @@ -25382,18 +25382,18 @@ const YM = (t, e, r) => { updated: a, removed: l }, r]); -}, f_e = (t) => Ake(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), Ad = 0, bre = 3, Jp = 1, d_e = 2, nx = []; +}, d_e = (t) => Lke(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), Ad = 0, xre = 3, Jp = 1, p_e = 2, nx = []; nx[Ad] = (t, e, r, n, i) => { Wt(t, Ad); - const s = l_e( + const s = c_e( e, t, r.doc, r ); - n && s === QM && !r.synced && (r.synced = !0); + n && s === YM && !r.synced && (r.synced = !0); }; -nx[bre] = (t, e, r, n, i) => { +nx[xre] = (t, e, r, n, i) => { Wt(t, Jp), Zn( t, jv( @@ -25403,34 +25403,34 @@ nx[bre] = (t, e, r, n, i) => { ); }; nx[Jp] = (t, e, r, n, i) => { - h_e( + f_e( r.awareness, Es(e), r ); }; -nx[d_e] = (t, e, r, n, i) => { - u_e( +nx[p_e] = (t, e, r, n, i) => { + h_e( e, r.doc, - (s, a) => p_e(r, a) + (s, a) => g_e(r, a) ); }; -const Hz = 3e4, p_e = (t, e) => console.warn(`Permission denied to access ${t.url}. -${e}`), xre = (t, e, r) => { +const Hz = 3e4, g_e = (t, e) => console.warn(`Permission denied to access ${t.url}. +${e}`), wre = (t, e, r) => { const n = Ff(e), i = _s(), s = or(n), a = t.messageHandlers[s]; return a ? a(i, n, t, r, s) : console.error("Unable to compute message"), i; -}, wre = (t) => { +}, Ore = (t) => { if (t.shouldConnect && t.ws === null) { const e = new t._WS(t.url); e.binaryType = "arraybuffer", t.ws = e, t.wsconnecting = !0, t.wsconnected = !1, t.synced = !1, e.onmessage = (r) => { t.wsLastMessageReceived = df(); - const n = xre(t, new Uint8Array(r.data), !0); - dM(n) > 1 && e.send(Ln(n)); + const n = wre(t, new Uint8Array(r.data), !0); + pM(n) > 1 && e.send(Ln(n)); }, e.onerror = (r) => { t.emit("connection-error", [r, t]); }, e.onclose = (r) => { - t.emit("connection-close", [r, t]), t.ws = null, t.wsconnecting = !1, t.wsconnected ? (t.wsconnected = !1, t.synced = !1, YM( + t.emit("connection-close", [r, t]), t.ws = null, t.wsconnecting = !1, t.wsconnected ? (t.wsconnected = !1, t.synced = !1, WM( t.awareness, Array.from(t.awareness.getStates().keys()).filter( (n) => n !== t.doc.clientID @@ -25439,9 +25439,9 @@ ${e}`), xre = (t, e, r) => { ), t.emit("status", [{ status: "disconnected" }])) : t.wsUnsuccessfulReconnects++, setTimeout( - wre, - GS( - Y3e(2, t.wsUnsuccessfulReconnects) * 100, + Ore, + HS( + W3e(2, t.wsUnsuccessfulReconnects) * 100, t.maxBackoffTime ), t @@ -25451,7 +25451,7 @@ ${e}`), xre = (t, e, r) => { status: "connected" }]); const r = _s(); - if (Wt(r, Ad), j7(r, t.doc), e.send(Ln(r)), t.awareness.getLocalState() !== null) { + if (Wt(r, Ad), K7(r, t.doc), e.send(Ln(r)), t.awareness.getLocalState() !== null) { const n = _s(); Wt(n, Jp), Zn( n, @@ -25464,14 +25464,14 @@ ${e}`), xre = (t, e, r) => { status: "connecting" }]); } -}, n6 = (t, e) => { +}, i6 = (t, e) => { const r = t.ws; t.wsconnected && r && r.readyState === r.OPEN && r.send(e), t.bcconnected && Sp(t.bcChannel, e, t); }; -class Ore extends WS { +class kre extends GS { constructor(e, r, n, { connect: i = !0, - awareness: s = new yre(n), + awareness: s = new bre(n), params: a = {}, WebSocketPolyfill: o = WebSocket, resyncInterval: l = -1, @@ -25480,30 +25480,30 @@ class Ore extends WS { } = {}) { for (super(); e[e.length - 1] === "/"; ) e = e.slice(0, e.length - 1); - const f = f_e(a); + const f = d_e(a); this.maxBackoffTime = u, this.bcChannel = e + "/" + r, this.url = e + "/" + r + (f.length === 0 ? "" : "?" + f), this.roomname = r, this.doc = n, this._WS = o, this.awareness = s, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = h, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = nx.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, l > 0 && (this._resyncInterval = setInterval(() => { if (this.ws && this.ws.readyState === WebSocket.OPEN) { const d = _s(); - Wt(d, Ad), j7(d, n), this.ws.send(Ln(d)); + Wt(d, Ad), K7(d, n), this.ws.send(Ln(d)); } }, l)), this._bcSubscriber = (d, p) => { if (p !== this) { - const g = xre(this, new Uint8Array(d), !1); - dM(g) > 1 && Sp(this.bcChannel, Ln(g), this); + const g = wre(this, new Uint8Array(d), !1); + pM(g) > 1 && Sp(this.bcChannel, Ln(g), this); } }, this._updateHandler = (d, p) => { if (p !== this) { const g = _s(); - Wt(g, Ad), a_e(g, d), n6(this, Ln(g)); + Wt(g, Ad), o_e(g, d), i6(this, Ln(g)); } }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: d, updated: p, removed: g }, m) => { const v = d.concat(p).concat(g), y = _s(); Wt(y, Jp), Zn( y, jv(s, v) - ), n6(this, Ln(y)); + ), i6(this, Ln(y)); }, this._unloadHandler = () => { - YM( + WM( this.awareness, [n.clientID], "window unload" @@ -25524,13 +25524,13 @@ class Ore extends WS { connectBc() { if (this.disableBc) return; - this.bcconnected || (n_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); + this.bcconnected || (i_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); const e = _s(); - Wt(e, Ad), j7(e, this.doc), Sp(this.bcChannel, Ln(e), this); + Wt(e, Ad), K7(e, this.doc), Sp(this.bcChannel, Ln(e), this); const r = _s(); - Wt(r, Ad), mre(r, this.doc), Sp(this.bcChannel, Ln(r), this); + Wt(r, Ad), vre(r, this.doc), Sp(this.bcChannel, Ln(r), this); const n = _s(); - Wt(n, bre), Sp( + Wt(n, xre), Sp( this.bcChannel, Ln(n), this @@ -25554,19 +25554,19 @@ class Ore extends WS { jv(this.awareness, [ this.doc.clientID ], /* @__PURE__ */ new Map()) - ), n6(this, Ln(e)), this.bcconnected && (i_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); + ), i6(this, Ln(e)), this.bcconnected && (s_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); } disconnect() { this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && this.ws.close(); } connect() { - this.shouldConnect = !0, !this.wsconnected && this.ws === null && (wre(this), this.connectBc()); + this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Ore(this), this.connectBc()); } } -const g_e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), jy = _t.define({ +const m_e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), jy = _t.define({ combine: (t) => t[t.length - 1], static: !0 -}), kre = Zt.define(), m_e = an.fromClass(class { +}), Sre = Zt.define(), v_e = an.fromClass(class { constructor(t) { this.decorations = this.colorEditorLines(t); } @@ -25603,23 +25603,23 @@ const g_e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent }); } update(t) { - (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(kre)))) && (t.transactions.filter(g_e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ - effects: K7.of(null) + (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Sre)))) && (t.transactions.filter(m_e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ + effects: J7.of(null) }), t.view.dom.querySelectorAll(".cm-line").forEach((e) => { e.onmouseenter = (r) => t.view.dispatch({ - effects: K7.of(parseInt(r.target.dataset.lineNumber)) + effects: J7.of(parseInt(r.target.dataset.lineNumber)) }); }); } }, { decorations: (t) => t.decorations -}), K7 = Zt.define(), r3 = $n.define({ +}), J7 = Zt.define(), r3 = $n.define({ create() { return null; }, update(t, e) { var i; - const r = e.state.facet(jy), n = (i = e.effects.find((s) => s.is(K7))) == null ? void 0 : i.value; + const r = e.state.facet(jy), n = (i = e.effects.find((s) => s.is(J7))) == null ? void 0 : i.value; return n ? r.firstLineOfSection(n) : null; } }); @@ -25638,11 +25638,11 @@ class Xz extends Uo { return this.selectedLine && this.selectedLine == this.lineNumber ? this.authorAvatar() : document.createElement("div"); } } -const v_e = $S({ +const y_e = BS({ lineMarker: (t, e) => new Xz(e, t), lineMarkerChange: (t) => t.startState.field(r3) != t.state.field(r3), initialSpacer: () => new Xz(null, null) -}), y_e = (t) => [jy.of(t), r3.init(null), v_e, m_e], P0 = er.button` +}), b_e = (t) => [jy.of(t), r3.init(null), y_e, v_e], P0 = er.button` &:focus { outline: 0 !important; } @@ -25670,11 +25670,11 @@ const v_e = $S({ } `; Zt.define(); -const Sre = new D0(); -function b_e(t) { +const Tre = new D0(); +function x_e(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function x_e({ +function w_e({ commentId: t, text: e, color: r @@ -25687,7 +25687,7 @@ function x_e({ break; let s = e.slice(0, i), a = ""; s.includes("->") && (a = s.slice(s.indexOf("->") + 2).trimStart(), s = s.slice(0, s.indexOf("->")).trimEnd()), s.length !== 0 && n.push({ - targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${b_e(s)}(?=$|[\\s\\.]|\\W)`, + targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${x_e(s)}(?=$|[\\s\\.]|\\W)`, targetRegexFlags: "gm", id: t, cssClass: "cm-suggestion", @@ -25697,7 +25697,7 @@ function x_e({ } return n; } -function w_e({ +function O_e({ builder: t, from: e, match: r, @@ -25710,7 +25710,7 @@ function w_e({ }), n.replacement) return i.class += " replaced", () => { t.add(e + r.index + r[0].length, e + r.index + r[0].length, Et.widget({ - widget: new O_e({ + widget: new k_e({ text: n.replacement, color: n.color, from: e + r.index, @@ -25720,7 +25720,7 @@ function w_e({ })); }; } -class O_e extends za { +class k_e extends Va { constructor({ text: e, color: r, @@ -25743,7 +25743,7 @@ class O_e extends za { }), e; } } -function k_e(t, e, r) { +function S_e(t, e, r) { const n = r.current.querySelector(".myst-add-suggestion"), i = t.state.selection.main, s = i.head === i.anchor, a = t.state.doc.lineAt(i.head).number !== t.state.doc.lineAt(i.anchor).number; if (!t.selectionSet || s || a) { n.style.display = "none"; @@ -25775,11 +25775,11 @@ function k_e(t, e, r) { const w = await e.getEditorForComment(b); w.focus(), w.dispatch({ selection: Ve.create([Ve.range(w.state.doc.length - 1, w.state.doc.length - 1)]), - effects: kre.of(null) + effects: Sre.of(null) }); }; } -const S_e = er(P0)` +const T_e = er(P0)` position: absolute; z-index: 10; display: none; @@ -25807,8 +25807,8 @@ const S_e = er(P0)` border-right: 10px solid transparent; border-top: 10px solid var(--icon-border); } -`, T_e = () => "comment-" + Math.random().toString().replace(".", ""); -class C_e { +`, C_e = () => "comment-" + Math.random().toString().replace(".", ""); +class E_e { constructor(e, r, n, i, s) { this.user = r.awareness.getLocalState().user, this.lineAuthors = e.getArray(s + "/commentLineAuthors"), this.ydoc = e, this.getAvatar = n, this.getUserUrl = i, this.commentId = s; } @@ -25851,7 +25851,7 @@ class C_e { ); } } -class E_e { +class __e { constructor(e, r) { this.commentPositions = e.getMap(Kv.dataPath), this.ycomments = r; } @@ -25882,7 +25882,7 @@ class E_e { this.commentPositions.delete(e); } } -class __e { +class A_e { constructor() { this.comments = {}, this._onUpdate = () => { }; @@ -25922,7 +25922,7 @@ class __e { this.setVisibility(e, !0); } } -class A_e { +class L_e { constructor(e, r) { this.user = e.awareness.getLocalState().user, this.resolvedComments = r.getMap("resolved-comments"); } @@ -25956,7 +25956,7 @@ class A_e { } const s$ = class { constructor(e, r, n, i) { - this.ydoc = e, this.provider = r, this.getAvatar = n, this.getUserUrl = i, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new E_e(e, this), this.displayManager = new __e(r), this.commentResolver = new A_e(r, e), this.draggedComment = null, this.commentWithPopup = null, this.commentEditorsListeners = /* @__PURE__ */ new Map(), this.commentEditors = /* @__PURE__ */ new Map(), this.suggestions = e.getMap("suggestions"), this.suggestions.observe(() => { + this.ydoc = e, this.provider = r, this.getAvatar = n, this.getUserUrl = i, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new __e(e, this), this.displayManager = new A_e(r), this.commentResolver = new L_e(r, e), this.draggedComment = null, this.commentWithPopup = null, this.commentEditorsListeners = /* @__PURE__ */ new Map(), this.commentEditors = /* @__PURE__ */ new Map(), this.suggestions = e.getMap("suggestions"), this.suggestions.observe(() => { if (!this.mainCodeMirror) return; const s = [...this.suggestions.values()].flat().map((a) => ({ @@ -25964,13 +25964,13 @@ const s$ = class { target: new RegExp(a.targetRegexSrc, a.targetRegexFlags) })); this.mainCodeMirror.dispatch({ - effects: Sre.reconfigure(UM(s, w_e, this.positions())), + effects: Tre.reconfigure(qM(s, O_e, this.positions())), annotations: fi.userEvent.of("suggestion") }); }), this.positionManager.commentPositions.observeDeep(() => this.updateMainCodeMirror()); } lineAuthors(e) { - return new C_e(this.ydoc, this.provider, this.getAvatar, this.getUserUrl, e); + return new E_e(this.ydoc, this.provider, this.getAvatar, this.getUserUrl, e); } positions() { return this.positionManager; @@ -25995,7 +25995,7 @@ const s$ = class { r != null && r.parent && r.delete(); } newComment(e) { - const r = T_e(); + const r = C_e(); return this.positions().set(r, e.toString()), this.display().new(r), this.lineAuthors(r).mark(1), this.newLocalComment = !0, r; } deleteComment(e) { @@ -26049,12 +26049,12 @@ const s$ = class { }); } syncFoldedComments(e) { - if (!pL(e)) + if (!gL(e)) return; const r = e.transactions[0].effects[0].is(Fu), { from: n, to: i - } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = COe(e.state).iter(0), l = []; + } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = EOe(e.state).iter(0), l = []; for (let u = o; u.value != null; o.next()) (u.from != n || u.to != i) && l.push({ fromLine: e.state.doc.lineAt(u.from).number, @@ -26096,7 +26096,7 @@ const s$ = class { color: (h = (u = s.get(l + 1)) == null ? void 0 : u.color) != null ? h : "#111" }; }); - r[n] = a.flatMap(x_e); + r[n] = a.flatMap(w_e); } this.suggestions.doc.transact(() => { for (const [n, i] of Object.entries(r)) @@ -26173,11 +26173,11 @@ const s$ = class { }; let Kv = s$; Or(Kv, "commentsPrefix", "comments/"); -const iT = _t.define({ +const sT = _t.define({ combine: (t) => t[t.length - 1], static: !0 }), Ky = Zt.define(); -class L_e extends za { +class R_e extends Va { constructor(e, r, n) { super(), this.height = e, this.commentId = r, this.isShown = n; } @@ -26186,12 +26186,12 @@ class L_e extends za { return e.id = this.commentId, e.classList = "comment-box", this.isShown || (e.classList += " comment-box-hidden"), e.style.height = this.height + "px", e; } } -const R_e = (t, e, r) => Et.widget({ - widget: new L_e(t, e, r), +const M_e = (t, e, r) => Et.widget({ + widget: new R_e(t, e, r), side: 1e4, inlineOrder: !1, block: r -}), M_e = (t, e) => t.lineNumber - e.lineNumber, D_e = (t) => t.docChanged || t.effects.some((e) => e.is(Ky)), N_e = (t) => [(e, { +}), D_e = (t, e) => t.lineNumber - e.lineNumber, N_e = (t) => t.docChanged || t.effects.some((e) => e.is(Ky)), I_e = (t) => [(e, { commentId: r, lineNumber: n, height: i, @@ -26199,12 +26199,12 @@ const R_e = (t, e, r) => Et.widget({ }) => { try { const a = t.newDoc.line(n).to; - e.add(a, a, R_e(i, r, s)); + e.add(a, a, M_e(i, r, s)); } catch (a) { console.warn(a), console.warn(`An error occured when rendering comment ${r}. Comment will not be shown.`); } return e; -}, new Hi()], I_e = (t, e) => { +}, new Hi()], P_e = (t, e) => { if (t.isUserEvent("input") || t.isUserEvent("delete")) { const r = t.state.doc.lines - t.startState.doc.lines; if (r != 0 && t.selection != null) { @@ -26212,14 +26212,14 @@ const R_e = (t, e, r) => Et.widget({ e.positions().shift(i, r, n, s); } } -}, P_e = $n.define({ +}, $_e = $n.define({ create() { return new Hi().finish(); }, update(t, e) { - if (D_e(e)) { - const r = e.state.facet(iT); - return I_e(e, r), r.iterComments().sort(M_e).reduce(...N_e(e)).finish(); + if (N_e(e)) { + const r = e.state.facet(sT); + return P_e(e, r), r.iterComments().sort(D_e).reduce(...I_e(e)).finish(); } return t; }, @@ -26229,7 +26229,7 @@ const R_e = (t, e, r) => Et.widget({ }), Sd = class extends Uo { constructor(e, r) { var n; - super(), this.gutterMarker = null, this.icon = null, r && e && (this.ycomments = r.state.facet(iT), this.lineNumber = r.state.doc.lineAt(e.to).number, this.commentId = (n = this.ycomments.findCommentOn(this.lineNumber)) == null ? void 0 : n.commentId); + super(), this.gutterMarker = null, this.icon = null, r && e && (this.ycomments = r.state.facet(sT), this.lineNumber = r.state.doc.lineAt(e.to).number, this.commentId = (n = this.ycomments.findCommentOn(this.lineNumber)) == null ? void 0 : n.commentId); } hasComments() { return Boolean(this.commentId); @@ -26251,11 +26251,11 @@ const R_e = (t, e, r) => Et.widget({ }; let vd = Sd; Or(vd, "MAIN_CLASS", "comment-gutter"), Or(vd, "ICON_CLASS", "comment-gutter-icon"), Or(vd, "COMMENT_IMAGE_CLASS", "comment-image"); -const $_e = (t, e, r) => { +const B_e = (t, e, r) => { var s; const n = t.state.doc.lineAt(e.to).number, i = (s = r.findCommentOn(n)) == null ? void 0 : s.commentId; return i || r.newComment(n); -}, B_e = $S({ +}, F_e = BS({ lineMarker(t, e) { return new vd(e, t); }, @@ -26263,13 +26263,13 @@ const $_e = (t, e, r) => { initialSpacer: () => new vd(null, null), domEventHandlers: { click(t, e) { - let r = t.state.facet(iT.reader), n = $_e(t, e, r); + let r = t.state.facet(sT.reader), n = B_e(t, e, r); r.display().switchVisibility(n), t.dispatch({ effects: Ky.of(null) }); } } -}), F_e = (t) => [iT.of(t), P_e, B_e, ht.updateListener.of((e) => t.syncComments(e))]; +}), z_e = (t) => [sT.of(t), $_e, F_e, ht.updateListener.of((e) => t.syncComments(e))]; class sh { constructor(e) { this.state = e; @@ -26278,42 +26278,42 @@ class sh { return []; } } -class z_e extends sh { +class V_e extends sh { run(e) { const r = new this.state.Token("code_inline", "code", 0); return r.content = e.content, [r]; } } -const V_e = { - raw: z_e -}, J7 = "math_inline"; -class U_e extends sh { +const U_e = { + raw: V_e +}, e8 = "math_inline"; +class q_e extends sh { run(e) { - const r = new this.state.Token(J7, "span", 0); + const r = new this.state.Token(e8, "span", 0); return r.attrSet("class", "math inline"), r.markup = "$", r.content = e.content, [r]; } } -function q_e(t, e) { +function Q_e(t, e) { var r; - !(!((r = e == null ? void 0 : e.roles) === null || r === void 0) && r.math) || t.renderer.rules[J7] || (t.renderer.rules[J7] = (n, i) => { + !(!((r = e == null ? void 0 : e.roles) === null || r === void 0) && r.math) || t.renderer.rules[e8] || (t.renderer.rules[e8] = (n, i) => { var s, a, o; const l = (o = (a = (s = e == null ? void 0 : e.opts) === null || s === void 0 ? void 0 : s.math) === null || a === void 0 ? void 0 : a.renderer) !== null && o !== void 0 ? o : (d) => t.utils.escapeHtml(d), u = n[i], h = u.content.trim(), f = l(h, { displayMode: !1 }); return `${f}`; }); } -const Q_e = { - math: U_e +const Y_e = { + math: q_e }; -function Tre(t, e) { - e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", Y_e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", G_e(e.roles || {})), t.renderer.rules.role = (r, n) => { +function Cre(t, e) { + e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", W_e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", H_e(e.roles || {})), t.renderer.rules.role = (r, n) => { const i = r[n]; return `${i.meta.name}${i.content}`; - }, q_e(t, e); + }, Q_e(t, e); } -function Y_e(t, e) { +function W_e(t, e) { if (t.src.charCodeAt(t.pos - 1) === 92) return !1; - const r = W_e.exec(t.src.slice(t.pos)); + const r = G_e.exec(t.src.slice(t.pos)); if (r == null) return !1; const [n, i, , s] = r; @@ -26323,14 +26323,14 @@ function Y_e(t, e) { } return !0; } -let e8; +let t8; try { - e8 = new RegExp("^\\{([a-zA-Z_\\-+:]{1,36})\\}(`+)(?!`)(.+?)(?]+)>$/; -class K_e extends sh { +const _re = /^(.+?)<([^<>]+)>$/; +class J_e extends sh { run(e) { const r = new this.state.Token("ref_open", "a", 1), n = new this.state.Token("text", "", 0), i = new this.state.Token("ref_close", "a", -1); - return WM(this.state, { open: r, content: n, close: i }, { kind: "eq", label: e.content }, { + return GM(this.state, { open: r, content: n, close: i }, { kind: "eq", label: e.content }, { kind: Jy.equation, contentFromTarget: (s) => `(${s.number})` }), [r, n, i]; } } -class J_e extends sh { +class eAe extends sh { run(e) { - const r = Ere.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); - return WM(this.state, { open: a, content: o, close: l }, { kind: "numref", label: i || e.content, value: s }, { + const r = _re.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); + return GM(this.state, { open: a, content: o, close: l }, { kind: "numref", label: i || e.content, value: s }, { contentFromTarget: (u) => r ? s.replace(/%s/g, String(u.number)).replace(/\{number\}/g, String(u.number)) : u.title.trim() }), [a, o, l]; } } -class eAe extends sh { +class tAe extends sh { run(e) { - const r = Ere.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); - return WM(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { + const r = _re.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); + return GM(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { contentFromTarget: (u) => s || u.title }), [a, o, l]; } } -const tAe = { - eq: K_e, - ref: eAe, - numref: J_e -}, rAe = Object.assign(Object.assign(Object.assign(Object.assign({}, V_e), X_e), Q_e), tAe); +const rAe = { + eq: J_e, + ref: tAe, + numref: eAe +}, nAe = Object.assign(Object.assign(Object.assign(Object.assign({}, U_e), Z_e), Y_e), rAe); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -function _re(t) { +function Are(t) { return typeof t > "u" || t === null; } -function nAe(t) { +function iAe(t) { return typeof t == "object" && t !== null; } -function iAe(t) { - return Array.isArray(t) ? t : _re(t) ? [] : [t]; +function sAe(t) { + return Array.isArray(t) ? t : Are(t) ? [] : [t]; } -function sAe(t, e) { +function aAe(t, e) { var r, n, i, s; if (e) for (s = Object.keys(e), r = 0, n = s.length; r < n; r += 1) i = s[r], t[i] = e[i]; return t; } -function aAe(t, e) { +function oAe(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -function oAe(t) { +function lAe(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -var lAe = _re, cAe = nAe, uAe = iAe, hAe = aAe, fAe = oAe, dAe = sAe, Ti = { - isNothing: lAe, - isObject: cAe, - toArray: uAe, - repeat: hAe, - isNegativeZero: fAe, - extend: dAe +var cAe = Are, uAe = iAe, hAe = sAe, fAe = oAe, dAe = lAe, pAe = aAe, Ti = { + isNothing: cAe, + isObject: uAe, + toArray: hAe, + repeat: fAe, + isNegativeZero: dAe, + extend: pAe }; -function Are(t, e) { +function Lre(t, e) { var r = "", n = t.reason || "(unknown reason)"; return t.mark ? (t.mark.name && (r += 'in "' + t.mark.name + '" '), r += "(" + (t.mark.line + 1) + ":" + (t.mark.column + 1) + ")", !e && t.mark.snippet && (r += ` ` + t.mark.snippet), n + " " + r) : n; } function e2(t, e) { - Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = Are(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; + Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = Lre(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } e2.prototype = Object.create(Error.prototype); e2.prototype.constructor = e2; e2.prototype.toString = function(e) { - return this.name + ": " + Are(this, e); + return this.name + ": " + Lre(this, e); }; var ea = e2; -function i6(t, e, r, n, i) { +function s6(t, e, r, n, i) { var s = "", a = "", o = Math.floor(i / 2) - 1; return n - e > o && (s = " ... ", e = n - o + s.length), r - n > o && (a = " ...", r = n + o - a.length), { str: s + t.slice(e, r).replace(/\t/g, "\u2192") + a, pos: n - e + s.length }; } -function s6(t, e) { +function a6(t, e) { return Ti.repeat(" ", e - t.length) + t; } -function pAe(t, e) { +function gAe(t, e) { if (e = Object.create(e || null), !t.buffer) return null; e.maxLength || (e.maxLength = 79), typeof e.indent != "number" && (e.indent = 1), typeof e.linesBefore != "number" && (e.linesBefore = 3), typeof e.linesAfter != "number" && (e.linesAfter = 2); @@ -26534,28 +26534,28 @@ function pAe(t, e) { a < 0 && (a = n.length - 1); var o = "", l, u, h = Math.min(t.line + e.linesAfter, i.length).toString().length, f = e.maxLength - (e.indent + h + 3); for (l = 1; l <= e.linesBefore && !(a - l < 0); l++) - u = i6( + u = s6( t.buffer, n[a - l], i[a - l], t.position - (n[a] - n[a - l]), f - ), o = Ti.repeat(" ", e.indent) + s6((t.line - l + 1).toString(), h) + " | " + u.str + ` + ), o = Ti.repeat(" ", e.indent) + a6((t.line - l + 1).toString(), h) + " | " + u.str + ` ` + o; - for (u = i6(t.buffer, n[a], i[a], t.position, f), o += Ti.repeat(" ", e.indent) + s6((t.line + 1).toString(), h) + " | " + u.str + ` + for (u = s6(t.buffer, n[a], i[a], t.position, f), o += Ti.repeat(" ", e.indent) + a6((t.line + 1).toString(), h) + " | " + u.str + ` `, o += Ti.repeat("-", e.indent + h + 3 + u.pos) + `^ `, l = 1; l <= e.linesAfter && !(a + l >= i.length); l++) - u = i6( + u = s6( t.buffer, n[a + l], i[a + l], t.position - (n[a] - n[a + l]), f - ), o += Ti.repeat(" ", e.indent) + s6((t.line + l + 1).toString(), h) + " | " + u.str + ` + ), o += Ti.repeat(" ", e.indent) + a6((t.line + l + 1).toString(), h) + " | " + u.str + ` `; return o.replace(/\n$/, ""); } -var gAe = pAe, mAe = [ +var mAe = gAe, vAe = [ "kind", "multi", "resolve", @@ -26566,12 +26566,12 @@ var gAe = pAe, mAe = [ "representName", "defaultStyle", "styleAliases" -], vAe = [ +], yAe = [ "scalar", "sequence", "mapping" ]; -function yAe(t) { +function bAe(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -26579,18 +26579,18 @@ function yAe(t) { }); }), e; } -function bAe(t, e) { +function xAe(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (mAe.indexOf(r) === -1) + if (vAe.indexOf(r) === -1) throw new ea('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = yAe(e.styleAliases || null), vAe.indexOf(this.kind) === -1) + }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = bAe(e.styleAliases || null), yAe.indexOf(this.kind) === -1) throw new ea('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -var hs = bAe; +var hs = xAe; function Jz(t, e) { var r = []; return t[e].forEach(function(n) { @@ -26600,7 +26600,7 @@ function Jz(t, e) { }), r[i] = n; }), r; } -function xAe() { +function wAe() { var t = { scalar: {}, sequence: {}, @@ -26620,10 +26620,10 @@ function xAe() { arguments[e].forEach(n); return t; } -function t8(t) { +function r8(t) { return this.extend(t); } -t8.prototype.extend = function(e) { +r8.prototype.extend = function(e) { var r = [], n = []; if (e instanceof hs) n.push(e); @@ -26644,48 +26644,48 @@ t8.prototype.extend = function(e) { if (!(s instanceof hs)) throw new ea("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); - var i = Object.create(t8.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = Jz(i, "implicit"), i.compiledExplicit = Jz(i, "explicit"), i.compiledTypeMap = xAe(i.compiledImplicit, i.compiledExplicit), i; + var i = Object.create(r8.prototype); + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = Jz(i, "implicit"), i.compiledExplicit = Jz(i, "explicit"), i.compiledTypeMap = wAe(i.compiledImplicit, i.compiledExplicit), i; }; -var Lre = t8, Rre = new hs("tag:yaml.org,2002:str", { +var Rre = r8, Mre = new hs("tag:yaml.org,2002:str", { kind: "scalar", construct: function(t) { return t !== null ? t : ""; } -}), Mre = new hs("tag:yaml.org,2002:seq", { +}), Dre = new hs("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(t) { return t !== null ? t : []; } -}), Dre = new hs("tag:yaml.org,2002:map", { +}), Nre = new hs("tag:yaml.org,2002:map", { kind: "mapping", construct: function(t) { return t !== null ? t : {}; } -}), Nre = new Lre({ +}), Ire = new Rre({ explicit: [ - Rre, Mre, - Dre + Dre, + Nre ] }); -function wAe(t) { +function OAe(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -function OAe() { +function kAe() { return null; } -function kAe(t) { +function SAe(t) { return t === null; } -var Ire = new hs("tag:yaml.org,2002:null", { +var Pre = new hs("tag:yaml.org,2002:null", { kind: "scalar", - resolve: wAe, - construct: OAe, - predicate: kAe, + resolve: OAe, + construct: kAe, + predicate: SAe, represent: { canonical: function() { return "~"; @@ -26705,23 +26705,23 @@ var Ire = new hs("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function SAe(t) { +function TAe(t) { if (t === null) return !1; var e = t.length; return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE"); } -function TAe(t) { +function CAe(t) { return t === "true" || t === "True" || t === "TRUE"; } -function CAe(t) { +function EAe(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -var Pre = new hs("tag:yaml.org,2002:bool", { +var $re = new hs("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: SAe, - construct: TAe, - predicate: CAe, + resolve: TAe, + construct: CAe, + predicate: EAe, represent: { lowercase: function(t) { return t ? "true" : "false"; @@ -26735,16 +26735,16 @@ var Pre = new hs("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function EAe(t) { +function _Ae(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -function _Ae(t) { +function AAe(t) { return 48 <= t && t <= 55; } -function AAe(t) { +function LAe(t) { return 48 <= t && t <= 57; } -function LAe(t) { +function RAe(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -26765,7 +26765,7 @@ function LAe(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!EAe(t.charCodeAt(r))) + if (!_Ae(t.charCodeAt(r))) return !1; n = !0; } @@ -26774,7 +26774,7 @@ function LAe(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!_Ae(t.charCodeAt(r))) + if (!AAe(t.charCodeAt(r))) return !1; n = !0; } @@ -26785,13 +26785,13 @@ function LAe(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!AAe(t.charCodeAt(r))) + if (!LAe(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -function RAe(t) { +function MAe(t) { var e = t, r = 1, n; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), n = e[0], (n === "-" || n === "+") && (n === "-" && (r = -1), e = e.slice(1), n = e[0]), e === "0") return 0; @@ -26805,14 +26805,14 @@ function RAe(t) { } return r * parseInt(e, 10); } -function MAe(t) { +function DAe(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Ti.isNegativeZero(t); } -var $re = new hs("tag:yaml.org,2002:int", { +var Bre = new hs("tag:yaml.org,2002:int", { kind: "scalar", - resolve: LAe, - construct: RAe, - predicate: MAe, + resolve: RAe, + construct: MAe, + predicate: DAe, represent: { binary: function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -26834,18 +26834,18 @@ var $re = new hs("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), DAe = new RegExp( +}), NAe = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function NAe(t) { - return !(t === null || !DAe.test(t) || t[t.length - 1] === "_"); -} function IAe(t) { + return !(t === null || !NAe.test(t) || t[t.length - 1] === "_"); +} +function PAe(t) { var e, r; return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } -var PAe = /^[-+]?[0-9]+e/; -function $Ae(t, e) { +var $Ae = /^[-+]?[0-9]+e/; +function BAe(t, e) { var r; if (isNaN(t)) switch (e) { @@ -26876,36 +26876,36 @@ function $Ae(t, e) { } else if (Ti.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), PAe.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), $Ae.test(r) ? r.replace("e", ".e") : r; } -function BAe(t) { +function FAe(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Ti.isNegativeZero(t)); } -var Bre = new hs("tag:yaml.org,2002:float", { +var Fre = new hs("tag:yaml.org,2002:float", { kind: "scalar", - resolve: NAe, - construct: IAe, - predicate: BAe, - represent: $Ae, + resolve: IAe, + construct: PAe, + predicate: FAe, + represent: BAe, defaultStyle: "lowercase" -}), Fre = Nre.extend({ +}), zre = Ire.extend({ implicit: [ - Ire, Pre, $re, - Bre + Bre, + Fre ] -}), zre = Fre, Vre = new RegExp( +}), Vre = zre, Ure = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), Ure = new RegExp( +), qre = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" ); -function FAe(t) { - return t === null ? !1 : Vre.exec(t) !== null || Ure.exec(t) !== null; -} function zAe(t) { + return t === null ? !1 : Ure.exec(t) !== null || qre.exec(t) !== null; +} +function VAe(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; - if (e = Vre.exec(t), e === null && (e = Ure.exec(t)), e === null) + if (e = Ure.exec(t), e === null && (e = qre.exec(t)), e === null) throw new Error("Date resolve error"); if (r = +e[1], n = +e[2] - 1, i = +e[3], !e[4]) return new Date(Date.UTC(r, n, i)); @@ -26916,28 +26916,28 @@ function zAe(t) { } return e[9] && (h = +e[10], f = +(e[11] || 0), u = (h * 60 + f) * 6e4, e[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, n, i, s, a, o, l)), u && d.setTime(d.getTime() - u), d; } -function VAe(t) { +function UAe(t) { return t.toISOString(); } -var qre = new hs("tag:yaml.org,2002:timestamp", { +var Qre = new hs("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: FAe, - construct: zAe, + resolve: zAe, + construct: VAe, instanceOf: Date, - represent: VAe + represent: UAe }); -function UAe(t) { +function qAe(t) { return t === "<<" || t === null; } -var Qre = new hs("tag:yaml.org,2002:merge", { +var Yre = new hs("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: UAe -}), GM = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= + resolve: qAe +}), HM = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function qAe(t) { +function QAe(t) { if (t === null) return !1; - var e, r, n = 0, i = t.length, s = GM; + var e, r, n = 0, i = t.length, s = HM; for (r = 0; r < i; r++) if (e = s.indexOf(t.charAt(r)), !(e > 64)) { if (e < 0) @@ -26946,37 +26946,37 @@ function qAe(t) { } return n % 8 === 0; } -function QAe(t) { - var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = GM, a = 0, o = []; +function YAe(t) { + var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = HM, a = 0, o = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)), a = a << 6 | s.indexOf(n.charAt(e)); return r = i % 4 * 6, r === 0 ? (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)) : r === 18 ? (o.push(a >> 10 & 255), o.push(a >> 2 & 255)) : r === 12 && o.push(a >> 4 & 255), new Uint8Array(o); } -function YAe(t) { - var e = "", r = 0, n, i, s = t.length, a = GM; +function WAe(t) { + var e = "", r = 0, n, i, s = t.length, a = HM; for (n = 0; n < s; n++) n % 3 === 0 && n && (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]), r = (r << 8) + t[n]; return i = s % 3, i === 0 ? (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]) : i === 2 ? (e += a[r >> 10 & 63], e += a[r >> 4 & 63], e += a[r << 2 & 63], e += a[64]) : i === 1 && (e += a[r >> 2 & 63], e += a[r << 4 & 63], e += a[64], e += a[64]), e; } -function WAe(t) { +function GAe(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -var Yre = new hs("tag:yaml.org,2002:binary", { +var Wre = new hs("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: qAe, - construct: QAe, - predicate: WAe, - represent: YAe -}), GAe = Object.prototype.hasOwnProperty, HAe = Object.prototype.toString; -function XAe(t) { + resolve: QAe, + construct: YAe, + predicate: GAe, + represent: WAe +}), HAe = Object.prototype.hasOwnProperty, XAe = Object.prototype.toString; +function ZAe(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, HAe.call(i) !== "[object Object]") + if (i = o[r], a = !1, XAe.call(i) !== "[object Object]") return !1; for (s in i) - if (GAe.call(i, s)) + if (HAe.call(i, s)) if (!a) a = !0; else @@ -26990,26 +26990,26 @@ function XAe(t) { } return !0; } -function ZAe(t) { +function jAe(t) { return t !== null ? t : []; } -var Wre = new hs("tag:yaml.org,2002:omap", { +var Gre = new hs("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: XAe, - construct: ZAe -}), jAe = Object.prototype.toString; -function KAe(t) { + resolve: ZAe, + construct: jAe +}), KAe = Object.prototype.toString; +function JAe(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], jAe.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], KAe.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } return !0; } -function JAe(t) { +function e7e(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -27017,39 +27017,39 @@ function JAe(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -var Gre = new hs("tag:yaml.org,2002:pairs", { +var Hre = new hs("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: KAe, - construct: JAe -}), e7e = Object.prototype.hasOwnProperty; -function t7e(t) { + resolve: JAe, + construct: e7e +}), t7e = Object.prototype.hasOwnProperty; +function r7e(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (e7e.call(r, e) && r[e] !== null) + if (t7e.call(r, e) && r[e] !== null) return !1; return !0; } -function r7e(t) { +function n7e(t) { return t !== null ? t : {}; } -var Hre = new hs("tag:yaml.org,2002:set", { +var Xre = new hs("tag:yaml.org,2002:set", { kind: "mapping", - resolve: t7e, - construct: r7e -}), HM = zre.extend({ + resolve: r7e, + construct: n7e +}), XM = Vre.extend({ implicit: [ - qre, - Qre + Qre, + Yre ], explicit: [ - Yre, Wre, Gre, - Hre + Hre, + Xre ] -}), pf = Object.prototype.hasOwnProperty, n3 = 1, Xre = 2, Zre = 3, i3 = 4, a6 = 1, n7e = 2, eV = 3, i7e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, s7e = /[\x85\u2028\u2029]/, a7e = /[,\[\]\{\}]/, jre = /^(?:!|!!|![a-z\-]+!)$/i, Kre = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +}), pf = Object.prototype.hasOwnProperty, n3 = 1, Zre = 2, jre = 3, i3 = 4, o6 = 1, i7e = 2, eV = 3, s7e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, a7e = /[\x85\u2028\u2029]/, o7e = /[,\[\]\{\}]/, Kre = /^(?:!|!!|![a-z\-]+!)$/i, Jre = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function tV(t) { return Object.prototype.toString.call(t); } @@ -27059,39 +27059,39 @@ function Rc(t) { function qd(t) { return t === 9 || t === 32; } -function Da(t) { +function Na(t) { return t === 9 || t === 32 || t === 10 || t === 13; } function Mp(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } -function o7e(t) { +function l7e(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -function l7e(t) { +function c7e(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -function c7e(t) { +function u7e(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } function rV(t) { return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? ` ` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "\x85" : t === 95 ? "\xA0" : t === 76 ? "\u2028" : t === 80 ? "\u2029" : ""; } -function u7e(t) { +function h7e(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } -var Jre = new Array(256), ene = new Array(256); +var ene = new Array(256), tne = new Array(256); for (var lp = 0; lp < 256; lp++) - Jre[lp] = rV(lp) ? 1 : 0, ene[lp] = rV(lp); -function h7e(t, e) { - this.input = t, this.filename = e.filename || null, this.schema = e.schema || HM, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; + ene[lp] = rV(lp) ? 1 : 0, tne[lp] = rV(lp); +function f7e(t, e) { + this.input = t, this.filename = e.filename || null, this.schema = e.schema || XM, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; } -function tne(t, e) { +function rne(t, e) { var r = { name: t.filename, buffer: t.input.slice(0, -1), @@ -27099,13 +27099,13 @@ function tne(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = gAe(r), new ea(e, r); + return r.snippet = mAe(r), new ea(e, r); } function Ut(t, e) { - throw tne(t, e); + throw rne(t, e); } function s3(t, e) { - t.onWarning && t.onWarning.call(null, tne(t, e)); + t.onWarning && t.onWarning.call(null, rne(t, e)); } var nV = { YAML: function(e, r, n) { @@ -27114,7 +27114,7 @@ var nV = { }, TAG: function(e, r, n) { var i, s; - n.length !== 2 && Ut(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], jre.test(i) || Ut(e, "ill-formed tag handle (first argument) of the TAG directive"), pf.call(e.tagMap, i) && Ut(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Kre.test(s) || Ut(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && Ut(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Kre.test(i) || Ut(e, "ill-formed tag handle (first argument) of the TAG directive"), pf.call(e.tagMap, i) && Ut(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Jre.test(s) || Ut(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -27130,7 +27130,7 @@ function Zh(t, e, r, n) { for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || Ut(t, "expected valid JSON character"); else - i7e.test(o) && Ut(t, "the stream contains non-printable characters"); + s7e.test(o) && Ut(t, "the stream contains non-printable characters"); t.result += o; } } @@ -27159,7 +27159,7 @@ function Dp(t, e, r, n, i, s, a, o, l) { }) : e[i] = s, delete r[i]; return e; } -function XM(t) { +function ZM(t) { var e; e = t.input.charCodeAt(t.position), e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : Ut(t, "a line break is expected"), t.line += 1, t.lineStart = t.position, t.firstTabInLine = -1; } @@ -27172,34 +27172,34 @@ function hi(t, e, r) { i = t.input.charCodeAt(++t.position); while (i !== 10 && i !== 13 && i !== 0); if (Rc(i)) - for (XM(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) + for (ZM(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) t.lineIndent++, i = t.input.charCodeAt(++t.position); else break; } return r !== -1 && n !== 0 && t.lineIndent < r && s3(t, "deficient indentation"), n; } -function aT(t) { +function oT(t) { var e = t.position, r; - return r = t.input.charCodeAt(e), !!((r === 45 || r === 46) && r === t.input.charCodeAt(e + 1) && r === t.input.charCodeAt(e + 2) && (e += 3, r = t.input.charCodeAt(e), r === 0 || Da(r))); + return r = t.input.charCodeAt(e), !!((r === 45 || r === 46) && r === t.input.charCodeAt(e + 1) && r === t.input.charCodeAt(e + 2) && (e += 3, r = t.input.charCodeAt(e), r === 0 || Na(r))); } -function ZM(t, e) { +function jM(t, e) { e === 1 ? t.result += " " : e > 1 && (t.result += Ti.repeat(` `, e - 1)); } -function f7e(t, e, r) { +function d7e(t, e, r) { var n, i, s, a, o, l, u, h, f = t.kind, d = t.result, p; - if (p = t.input.charCodeAt(t.position), Da(p) || Mp(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = t.input.charCodeAt(t.position + 1), Da(i) || r && Mp(i))) + if (p = t.input.charCodeAt(t.position), Na(p) || Mp(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = t.input.charCodeAt(t.position + 1), Na(i) || r && Mp(i))) return !1; for (t.kind = "scalar", t.result = "", s = a = t.position, o = !1; p !== 0; ) { if (p === 58) { - if (i = t.input.charCodeAt(t.position + 1), Da(i) || r && Mp(i)) + if (i = t.input.charCodeAt(t.position + 1), Na(i) || r && Mp(i)) break; } else if (p === 35) { - if (n = t.input.charCodeAt(t.position - 1), Da(n)) + if (n = t.input.charCodeAt(t.position - 1), Na(n)) break; } else { - if (t.position === t.lineStart && aT(t) || r && Mp(p)) + if (t.position === t.lineStart && oT(t) || r && Mp(p)) break; if (Rc(p)) if (l = t.line, u = t.lineStart, h = t.lineIndent, hi(t, !1, -1), t.lineIndent >= e) { @@ -27210,11 +27210,11 @@ function f7e(t, e, r) { break; } } - o && (Zh(t, s, a, !1), ZM(t, t.line - l), s = a = t.position, o = !1), qd(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (Zh(t, s, a, !1), jM(t, t.line - l), s = a = t.position, o = !1), qd(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } return Zh(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -function d7e(t, e) { +function p7e(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; @@ -27225,10 +27225,10 @@ function d7e(t, e) { else return !0; else - Rc(r) ? (Zh(t, n, i, !0), ZM(t, hi(t, !1, e)), n = i = t.position) : t.position === t.lineStart && aT(t) ? Ut(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); + Rc(r) ? (Zh(t, n, i, !0), jM(t, hi(t, !1, e)), n = i = t.position) : t.position === t.lineStart && oT(t) ? Ut(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); Ut(t, "unexpected end of the stream within a single quoted scalar"); } -function p7e(t, e) { +function g7e(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; @@ -27238,21 +27238,21 @@ function p7e(t, e) { if (o === 92) { if (Zh(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), Rc(o)) hi(t, !1, e); - else if (o < 256 && Jre[o]) - t.result += ene[o], t.position++; - else if ((a = l7e(o)) > 0) { + else if (o < 256 && ene[o]) + t.result += tne[o], t.position++; + else if ((a = c7e(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = o7e(o)) >= 0 ? s = (s << 4) + a : Ut(t, "expected hexadecimal character"); - t.result += u7e(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = l7e(o)) >= 0 ? s = (s << 4) + a : Ut(t, "expected hexadecimal character"); + t.result += h7e(s), t.position++; } else Ut(t, "unknown escape sequence"); r = n = t.position; } else - Rc(o) ? (Zh(t, r, n, !0), ZM(t, hi(t, !1, e)), r = n = t.position) : t.position === t.lineStart && aT(t) ? Ut(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); + Rc(o) ? (Zh(t, r, n, !0), jM(t, hi(t, !1, e)), r = n = t.position) : t.position === t.lineStart && oT(t) ? Ut(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); } Ut(t, "unexpected end of the stream within a double quoted scalar"); } -function g7e(t, e) { +function m7e(t, e) { var r = !0, n, i, s, a = t.tag, o, l = t.anchor, u, h, f, d, p, g = /* @__PURE__ */ Object.create(null), m, v, y, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, p = !1, o = []; @@ -27263,12 +27263,12 @@ function g7e(t, e) { for (t.anchor !== null && (t.anchorMap[t.anchor] = o), b = t.input.charCodeAt(++t.position); b !== 0; ) { if (hi(t, !0, e), b = t.input.charCodeAt(t.position), b === h) return t.position++, t.tag = a, t.anchor = l, t.kind = p ? "mapping" : "sequence", t.result = o, !0; - r ? b === 44 && Ut(t, "expected the node content, but found ','") : Ut(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), Da(u) && (f = d = !0, t.position++, hi(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, Vg(t, e, n3, !1, !0), v = t.tag, m = t.result, hi(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), hi(t, !0, e), Vg(t, e, n3, !1, !0), y = t.result), p ? Dp(t, o, g, v, m, y, n, i, s) : f ? o.push(Dp(t, null, g, v, m, y, n, i, s)) : o.push(m), hi(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; + r ? b === 44 && Ut(t, "expected the node content, but found ','") : Ut(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), Na(u) && (f = d = !0, t.position++, hi(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, Vg(t, e, n3, !1, !0), v = t.tag, m = t.result, hi(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), hi(t, !0, e), Vg(t, e, n3, !1, !0), y = t.result), p ? Dp(t, o, g, v, m, y, n, i, s) : f ? o.push(Dp(t, null, g, v, m, y, n, i, s)) : o.push(m), hi(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; } Ut(t, "unexpected end of the stream within a flow collection"); } -function m7e(t, e) { - var r, n, i = a6, s = !1, a = !1, o = e, l = 0, u = !1, h, f; +function v7e(t, e) { + var r, n, i = o6, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; else if (f === 62) @@ -27277,8 +27277,8 @@ function m7e(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - a6 === i ? i = f === 43 ? eV : n7e : Ut(t, "repeat of a chomping mode identifier"); - else if ((h = c7e(f)) >= 0) + o6 === i ? i = f === 43 ? eV : i7e : Ut(t, "repeat of a chomping mode identifier"); + else if ((h = u7e(f)) >= 0) h === 0 ? Ut(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Ut(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; @@ -27292,7 +27292,7 @@ function m7e(t, e) { while (!Rc(f) && f !== 0); } for (; f !== 0; ) { - for (XM(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) + for (ZM(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) t.lineIndent++, f = t.input.charCodeAt(++t.position); if (!a && t.lineIndent > o && (o = t.lineIndent), Rc(f)) { l++; @@ -27300,7 +27300,7 @@ function m7e(t, e) { } if (t.lineIndent < o) { i === eV ? t.result += Ti.repeat(` -`, s ? 1 + l : l) : i === a6 && s && (t.result += ` +`, s ? 1 + l : l) : i === o6 && s && (t.result += ` `); break; } @@ -27318,33 +27318,33 @@ function sV(t, e) { var r, n = t.tag, i = t.anchor, s = [], a, o = !1, l; if (t.firstTabInLine !== -1) return !1; - for (t.anchor !== null && (t.anchorMap[t.anchor] = s), l = t.input.charCodeAt(t.position); l !== 0 && (t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Ut(t, "tab characters must not be used in indentation")), !(l !== 45 || (a = t.input.charCodeAt(t.position + 1), !Da(a)))); ) { + for (t.anchor !== null && (t.anchorMap[t.anchor] = s), l = t.input.charCodeAt(t.position); l !== 0 && (t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Ut(t, "tab characters must not be used in indentation")), !(l !== 45 || (a = t.input.charCodeAt(t.position + 1), !Na(a)))); ) { if (o = !0, t.position++, hi(t, !0, -1) && t.lineIndent <= e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, Vg(t, e, Zre, !1, !0), s.push(t.result), hi(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) + if (r = t.line, Vg(t, e, jre, !1, !0), s.push(t.result), hi(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) Ut(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; } return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -function v7e(t, e, r) { +function y7e(t, e, r) { var n, i, s, a, o, l, u = t.tag, h = t.anchor, f = {}, d = /* @__PURE__ */ Object.create(null), p = null, g = null, m = null, v = !1, y = !1, b; if (t.firstTabInLine !== -1) return !1; for (t.anchor !== null && (t.anchorMap[t.anchor] = f), b = t.input.charCodeAt(t.position); b !== 0; ) { - if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Ut(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && Da(n)) + if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Ut(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && Na(n)) b === 63 ? (v && (Dp(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Ut(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = n; else { - if (a = t.line, o = t.lineStart, l = t.position, !Vg(t, r, Xre, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !Vg(t, r, Zre, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); qd(b); ) b = t.input.charCodeAt(++t.position); if (b === 58) - b = t.input.charCodeAt(++t.position), Da(b) || Ut(t, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Dp(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !1, i = !1, p = t.tag, g = t.result; + b = t.input.charCodeAt(++t.position), Na(b) || Ut(t, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Dp(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !1, i = !1, p = t.tag, g = t.result; else if (y) Ut(t, "can not read an implicit mapping pair; a colon is missed"); else @@ -27361,7 +27361,7 @@ function v7e(t, e, r) { } return v && Dp(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -function y7e(t) { +function b7e(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -27371,11 +27371,11 @@ function y7e(t) { while (a !== 0 && a !== 62); t.position < t.length ? (s = t.input.slice(e, t.position), a = t.input.charCodeAt(++t.position)) : Ut(t, "unexpected end of the stream within a verbatim tag"); } else { - for (; a !== 0 && !Da(a); ) - a === 33 && (n ? Ut(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), jre.test(i) || Ut(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), a7e.test(s) && Ut(t, "tag suffix cannot contain flow indicator characters"); + for (; a !== 0 && !Na(a); ) + a === 33 && (n ? Ut(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Kre.test(i) || Ut(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); + s = t.input.slice(e, t.position), o7e.test(s) && Ut(t, "tag suffix cannot contain flow indicator characters"); } - s && !Kre.test(s) && Ut(t, "tag name cannot contain such characters: " + s); + s && !Jre.test(s) && Ut(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -27383,28 +27383,28 @@ function y7e(t) { } return r ? t.tag = s : pf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Ut(t, 'undeclared tag handle "' + i + '"'), !0; } -function b7e(t) { +function x7e(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; - for (t.anchor !== null && Ut(t, "duplication of an anchor property"), r = t.input.charCodeAt(++t.position), e = t.position; r !== 0 && !Da(r) && !Mp(r); ) + for (t.anchor !== null && Ut(t, "duplication of an anchor property"), r = t.input.charCodeAt(++t.position), e = t.position; r !== 0 && !Na(r) && !Mp(r); ) r = t.input.charCodeAt(++t.position); return t.position === e && Ut(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -function x7e(t) { +function w7e(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; - for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !Da(n) && !Mp(n); ) + for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !Na(n) && !Mp(n); ) n = t.input.charCodeAt(++t.position); return t.position === e && Ut(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), pf.call(t.anchorMap, r) || Ut(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], hi(t, !0, -1), !0; } function Vg(t, e, r, n, i) { var s, a, o, l = 1, u = !1, h = !1, f, d, p, g, m, v; - if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = i3 === r || Zre === r, n && hi(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; y7e(t) || b7e(t); ) + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = i3 === r || jre === r, n && hi(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) + for (; b7e(t) || x7e(t); ) hi(t, !0, -1) ? (u = !0, o = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : o = !1; - if (o && (o = u || i), (l === 1 || i3 === r) && (n3 === r || Xre === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (sV(t, v) || v7e(t, v, m)) || g7e(t, m) ? h = !0 : (a && m7e(t, m) || d7e(t, m) || p7e(t, m) ? h = !0 : x7e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Ut(t, "alias node should not have any properties")) : f7e(t, m, n3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && sV(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || i3 === r) && (n3 === r || Zre === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (sV(t, v) || y7e(t, v, m)) || m7e(t, m) ? h = !0 : (a && v7e(t, m) || p7e(t, m) || g7e(t, m) ? h = !0 : w7e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Ut(t, "alias node should not have any properties")) : d7e(t, m, n3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && sV(t, v))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && Ut(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -27425,10 +27425,10 @@ function Vg(t, e, r, n, i) { } return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } -function w7e(t) { +function O7e(t) { var e = t.position, r, n, i, s = !1, a; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (a = t.input.charCodeAt(t.position)) !== 0 && (hi(t, !0, -1), a = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || a !== 37)); ) { - for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !Da(a); ) + for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !Na(a); ) a = t.input.charCodeAt(++t.position); for (n = t.input.slice(r, t.position), i = [], n.length < 1 && Ut(t, "directive name must not be less than one character in length"); a !== 0; ) { for (; qd(a); ) @@ -27441,13 +27441,13 @@ function w7e(t) { } if (Rc(a)) break; - for (r = t.position; a !== 0 && !Da(a); ) + for (r = t.position; a !== 0 && !Na(a); ) a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && XM(t), pf.call(nV, n) ? nV[n](t, n, i) : s3(t, 'unknown document directive "' + n + '"'); + a !== 0 && ZM(t), pf.call(nV, n) ? nV[n](t, n, i) : s3(t, 'unknown document directive "' + n + '"'); } - if (hi(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, hi(t, !0, -1)) : s && Ut(t, "directives end mark is expected"), Vg(t, t.lineIndent - 1, i3, !1, !0), hi(t, !0, -1), t.checkLineBreaks && s7e.test(t.input.slice(e, t.position)) && s3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && aT(t)) { + if (hi(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, hi(t, !0, -1)) : s && Ut(t, "directives end mark is expected"), Vg(t, t.lineIndent - 1, i3, !1, !0), hi(t, !0, -1), t.checkLineBreaks && a7e.test(t.input.slice(e, t.position)) && s3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && oT(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, hi(t, !0, -1)); return; } @@ -27456,36 +27456,36 @@ function w7e(t) { else return; } -function rne(t, e) { +function nne(t, e) { t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += ` `), t.charCodeAt(0) === 65279 && (t = t.slice(1))); - var r = new h7e(t, e), n = t.indexOf("\0"); + var r = new f7e(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, Ut(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - w7e(r); + O7e(r); return r.documents; } -function O7e(t, e, r) { +function k7e(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); - var n = rne(t, r); + var n = nne(t, r); if (typeof e != "function") return n; for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -function k7e(t, e) { - var r = rne(t, e); +function S7e(t, e) { + var r = nne(t, e); if (r.length !== 0) { if (r.length === 1) return r[0]; throw new ea("expected a single document in the stream, but found more"); } } -var S7e = O7e, T7e = k7e, nne = { - loadAll: S7e, - load: T7e -}, ine = Object.prototype.toString, sne = Object.prototype.hasOwnProperty, jM = 65279, C7e = 9, t2 = 10, E7e = 13, _7e = 32, A7e = 33, L7e = 34, r8 = 35, R7e = 37, M7e = 38, D7e = 39, N7e = 42, ane = 44, I7e = 45, a3 = 58, P7e = 61, $7e = 62, B7e = 63, F7e = 64, one = 91, lne = 93, z7e = 96, cne = 123, V7e = 124, une = 125, qs = {}; +var T7e = k7e, C7e = S7e, ine = { + loadAll: T7e, + load: C7e +}, sne = Object.prototype.toString, ane = Object.prototype.hasOwnProperty, KM = 65279, E7e = 9, t2 = 10, _7e = 13, A7e = 32, L7e = 33, R7e = 34, n8 = 35, M7e = 37, D7e = 38, N7e = 39, I7e = 42, one = 44, P7e = 45, a3 = 58, $7e = 61, B7e = 62, F7e = 63, z7e = 64, lne = 91, cne = 93, V7e = 96, une = 123, U7e = 124, hne = 125, qs = {}; qs[0] = "\\0"; qs[7] = "\\a"; qs[8] = "\\b"; @@ -27501,7 +27501,7 @@ qs[133] = "\\N"; qs[160] = "\\_"; qs[8232] = "\\L"; qs[8233] = "\\P"; -var U7e = [ +var q7e = [ "y", "Y", "yes", @@ -27518,16 +27518,16 @@ var U7e = [ "off", "Off", "OFF" -], q7e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function Q7e(t, e) { +], Q7e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function Y7e(t, e) { var r, n, i, s, a, o, l; if (e === null) return {}; for (r = {}, n = Object.keys(e), i = 0, s = n.length; i < s; i += 1) - a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && sne.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; + a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && ane.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -function Y7e(t) { +function W7e(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -27539,9 +27539,9 @@ function Y7e(t) { throw new ea("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Ti.repeat("0", n - e.length) + e; } -var W7e = 1, r2 = 2; -function G7e(t) { - this.schema = t.schema || HM, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ti.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Q7e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? r2 : W7e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +var G7e = 1, r2 = 2; +function H7e(t) { + this.schema = t.schema || XM, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ti.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Y7e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? r2 : G7e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } function aV(t, e) { for (var r = Ti.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) @@ -27550,11 +27550,11 @@ function aV(t, e) { ` && (s += r), s += a; return s; } -function n8(t, e) { +function i8(t, e) { return ` ` + Ti.repeat(" ", t.indent * e); } -function H7e(t, e) { +function X7e(t, e) { var r, n, i; for (r = 0, n = t.implicitTypes.length; r < n; r += 1) if (i = t.implicitTypes[r], i.resolve(e)) @@ -27562,35 +27562,35 @@ function H7e(t, e) { return !1; } function o3(t) { - return t === _7e || t === C7e; + return t === A7e || t === E7e; } function n2(t) { - return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== jM || 65536 <= t && t <= 1114111; + return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== KM || 65536 <= t && t <= 1114111; } function oV(t) { - return n2(t) && t !== jM && t !== E7e && t !== t2; + return n2(t) && t !== KM && t !== _7e && t !== t2; } function lV(t, e, r) { var n = oV(t), i = n && !o3(t); - return (r ? n : n && t !== ane && t !== one && t !== lne && t !== cne && t !== une) && t !== r8 && !(e === a3 && !i) || oV(e) && !o3(e) && t === r8 || e === a3 && i; -} -function X7e(t) { - return n2(t) && t !== jM && !o3(t) && t !== I7e && t !== B7e && t !== a3 && t !== ane && t !== one && t !== lne && t !== cne && t !== une && t !== r8 && t !== M7e && t !== N7e && t !== A7e && t !== V7e && t !== P7e && t !== $7e && t !== D7e && t !== L7e && t !== R7e && t !== F7e && t !== z7e; + return (r ? n : n && t !== one && t !== lne && t !== cne && t !== une && t !== hne) && t !== n8 && !(e === a3 && !i) || oV(e) && !o3(e) && t === n8 || e === a3 && i; } function Z7e(t) { + return n2(t) && t !== KM && !o3(t) && t !== P7e && t !== F7e && t !== a3 && t !== one && t !== lne && t !== cne && t !== une && t !== hne && t !== n8 && t !== D7e && t !== I7e && t !== L7e && t !== U7e && t !== $7e && t !== B7e && t !== N7e && t !== R7e && t !== M7e && t !== z7e && t !== V7e; +} +function j7e(t) { return !o3(t) && t !== a3; } function vv(t, e) { var r = t.charCodeAt(e), n; return r >= 55296 && r <= 56319 && e + 1 < t.length && (n = t.charCodeAt(e + 1), n >= 56320 && n <= 57343) ? (r - 55296) * 1024 + n - 56320 + 65536 : r; } -function hne(t) { +function fne(t) { var e = /^\n* /; return e.test(t); } -var fne = 1, i8 = 2, dne = 3, pne = 4, Tp = 5; -function j7e(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = X7e(vv(t, 0)) && Z7e(vv(t, t.length - 1)); +var dne = 1, s8 = 2, pne = 3, gne = 4, Tp = 5; +function K7e(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = Z7e(vv(t, 0)) && j7e(vv(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = vv(t, l), !n2(u)) @@ -27607,19 +27607,19 @@ function j7e(t, e, r, n, i, s, a, o) { } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? fne : s === r2 ? Tp : i8 : r > 9 && hne(t) ? Tp : a ? s === r2 ? Tp : i8 : d ? pne : dne; + return !f && !d ? m && !a && !i(t) ? dne : s === r2 ? Tp : s8 : r > 9 && fne(t) ? Tp : a ? s === r2 ? Tp : s8 : d ? gne : pne; } -function K7e(t, e, r, n, i) { +function J7e(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === r2 ? '""' : "''"; - if (!t.noCompatMode && (U7e.indexOf(e) !== -1 || q7e.test(e))) + if (!t.noCompatMode && (q7e.indexOf(e) !== -1 || Q7e.test(e))) return t.quotingType === r2 ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { - return H7e(t, u); + return X7e(t, u); } - switch (j7e( + switch (K7e( e, o, t.indent, @@ -27629,23 +27629,23 @@ function K7e(t, e, r, n, i) { t.forceQuotes && !n, i )) { - case fne: + case dne: return e; - case i8: + case s8: return "'" + e.replace(/'/g, "''") + "'"; - case dne: - return "|" + cV(e, t.indent) + uV(aV(e, s)); case pne: - return ">" + cV(e, t.indent) + uV(aV(J7e(e, a), s)); + return "|" + cV(e, t.indent) + uV(aV(e, s)); + case gne: + return ">" + cV(e, t.indent) + uV(aV(e8e(e, a), s)); case Tp: - return '"' + e8e(e) + '"'; + return '"' + t8e(e) + '"'; default: throw new ea("impossible error: invalid scalar style"); } }(); } function cV(t, e) { - var r = hne(t) ? String(e) : "", n = t[t.length - 1] === ` + var r = fne(t) ? String(e) : "", n = t[t.length - 1] === ` `, i = n && (t[t.length - 2] === ` ` || t === ` `), s = i ? "+" : n ? "" : "-"; @@ -27656,7 +27656,7 @@ function uV(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -function J7e(t, e) { +function e8e(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); @@ -27679,12 +27679,12 @@ function hV(t, e) { `, t.length - i > e && a > i ? l += t.slice(i, a) + ` ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } -function e8e(t) { +function t8e(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = vv(t, i), n = qs[r], !n && n2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || Y7e(r); + r = vv(t, i), n = qs[r], !n && n2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || W7e(r); return e; } -function t8e(t, e, r) { +function r8e(t, e, r) { var n = "", i = t.tag, s, a, o; for (s = 0, a = r.length; s < a; s += 1) o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), (Vu(t, e, o, !1, !1) || typeof o > "u" && Vu(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); @@ -27693,16 +27693,16 @@ function t8e(t, e, r) { function fV(t, e, r, n) { var i = "", s = t.tag, a, o, l; for (a = 0, o = r.length; a < o; a += 1) - l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (Vu(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && Vu(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += n8(t, e)), t.dump && t2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); + l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (Vu(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && Vu(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += i8(t, e)), t.dump && t2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -function r8e(t, e, r) { +function n8e(t, e, r) { var n = "", i = t.tag, s = Object.keys(r), a, o, l, u, h; for (a = 0, o = s.length; a < o; a += 1) h = "", n !== "" && (h += ", "), t.condenseFlow && (h += '"'), l = s[a], u = r[l], t.replacer && (u = t.replacer.call(r, l, u)), Vu(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), Vu(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -function n8e(t, e, r, n) { +function i8e(t, e, r, n) { var i = "", s = t.tag, a = Object.keys(r), o, l, u, h, f, d; if (t.sortKeys === !0) a.sort(); @@ -27711,7 +27711,7 @@ function n8e(t, e, r, n) { else if (t.sortKeys) throw new ea("sortKeys must be a boolean or a function"); for (o = 0, l = a.length; o < l; o += 1) - d = "", (!n || i !== "") && (d += n8(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), Vu(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && t2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += n8(t, e)), Vu(t, e + 1, h, !0, f) && (t.dump && t2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); + d = "", (!n || i !== "") && (d += i8(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), Vu(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && t2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += i8(t, e)), Vu(t, e + 1, h, !0, f) && (t.dump && t2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); t.tag = s, t.dump = i || "{}"; } function dV(t, e, r) { @@ -27719,9 +27719,9 @@ function dV(t, e, r) { for (i = r ? t.explicitTypes : t.implicitTypes, s = 0, a = i.length; s < a; s += 1) if (o = i[s], (o.instanceOf || o.predicate) && (!o.instanceOf || typeof e == "object" && e instanceof o.instanceOf) && (!o.predicate || o.predicate(e))) { if (r ? o.multi && o.representName ? t.tag = o.representName(e) : t.tag = o.tag : t.tag = "?", o.represent) { - if (l = t.styleMap[o.tag] || o.defaultStyle, ine.call(o.represent) === "[object Function]") + if (l = t.styleMap[o.tag] || o.defaultStyle, sne.call(o.represent) === "[object Function]") n = o.represent(e, l); - else if (sne.call(o.represent, l)) + else if (ane.call(o.represent, l)) n = o.represent[l](e, l); else throw new ea("!<" + o.tag + '> tag resolver accepts not "' + l + '" style'); @@ -27733,18 +27733,18 @@ function dV(t, e, r) { } function Vu(t, e, r, n, i, s, a) { t.tag = null, t.dump = r, dV(t, r, !1) || dV(t, r, !0); - var o = ine.call(t.dump), l = n, u; + var o = sne.call(t.dump), l = n, u; n && (n = t.flowLevel < 0 || t.flowLevel > e); var h = o === "[object Object]" || o === "[object Array]", f, d; if (h && (f = t.duplicates.indexOf(r), d = f !== -1), (t.tag !== null && t.tag !== "?" || d || t.indent !== 2 && e > 0) && (i = !1), d && t.usedDuplicates[f]) t.dump = "*ref_" + f; else { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") - n && Object.keys(t.dump).length !== 0 ? (n8e(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (r8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (i8e(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (n8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object Array]") - n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? fV(t, e - 1, t.dump, i) : fV(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (t8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? fV(t, e - 1, t.dump, i) : fV(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (r8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && K7e(t, t.dump, e, s, l); + t.tag !== "?" && J7e(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -27758,71 +27758,71 @@ function Vu(t, e, r, n, i, s, a) { } return !0; } -function i8e(t, e) { +function s8e(t, e) { var r = [], n = [], i, s; - for (s8(t, r, n), i = 0, s = n.length; i < s; i += 1) + for (a8(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); e.usedDuplicates = new Array(s); } -function s8(t, e, r) { +function a8(t, e, r) { var n, i, s; if (t !== null && typeof t == "object") if (i = e.indexOf(t), i !== -1) r.indexOf(i) === -1 && r.push(i); else if (e.push(t), Array.isArray(t)) for (i = 0, s = t.length; i < s; i += 1) - s8(t[i], e, r); + a8(t[i], e, r); else for (n = Object.keys(t), i = 0, s = n.length; i < s; i += 1) - s8(t[n[i]], e, r); + a8(t[n[i]], e, r); } -function s8e(t, e) { +function a8e(t, e) { e = e || {}; - var r = new G7e(e); - r.noRefs || i8e(t, r); + var r = new H7e(e); + r.noRefs || s8e(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), Vu(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -var a8e = s8e, o8e = { - dump: a8e +var o8e = a8e, l8e = { + dump: o8e }; -function KM(t, e) { +function JM(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -var l8e = hs, c8e = Lre, u8e = Nre, h8e = Fre, f8e = zre, d8e = HM, p8e = nne.load, g8e = nne.loadAll, m8e = o8e.dump, v8e = ea, y8e = { - binary: Yre, - float: Bre, - map: Dre, - null: Ire, - pairs: Gre, - set: Hre, - timestamp: qre, - bool: Pre, - int: $re, - merge: Qre, - omap: Wre, - seq: Mre, - str: Rre -}, b8e = KM("safeLoad", "load"), x8e = KM("safeLoadAll", "loadAll"), w8e = KM("safeDump", "dump"), O8e = { - Type: l8e, - Schema: c8e, - FAILSAFE_SCHEMA: u8e, - JSON_SCHEMA: h8e, - CORE_SCHEMA: f8e, - DEFAULT_SCHEMA: d8e, - load: p8e, - loadAll: g8e, - dump: m8e, - YAMLException: v8e, - types: y8e, - safeLoad: b8e, - safeLoadAll: x8e, - safeDump: w8e -}; -function k8e(t, e, r, n, i, s = !0) { +var c8e = hs, u8e = Rre, h8e = Ire, f8e = zre, d8e = Vre, p8e = XM, g8e = ine.load, m8e = ine.loadAll, v8e = l8e.dump, y8e = ea, b8e = { + binary: Wre, + float: Fre, + map: Nre, + null: Pre, + pairs: Hre, + set: Xre, + timestamp: Qre, + bool: $re, + int: Bre, + merge: Yre, + omap: Gre, + seq: Dre, + str: Mre +}, x8e = JM("safeLoad", "load"), w8e = JM("safeLoadAll", "loadAll"), O8e = JM("safeDump", "dump"), k8e = { + Type: c8e, + Schema: u8e, + FAILSAFE_SCHEMA: h8e, + JSON_SCHEMA: f8e, + CORE_SCHEMA: d8e, + DEFAULT_SCHEMA: p8e, + load: g8e, + loadAll: m8e, + dump: v8e, + YAMLException: y8e, + types: b8e, + safeLoad: x8e, + safeLoadAll: w8e, + safeDump: O8e +}; +function S8e(t, e, r, n, i, s = !0) { const a = []; for (const l of [...t.core.ruler.__rules__].reverse()) { if (l.name === e) { @@ -27862,7 +27862,7 @@ class $0 { return (i == null ? void 0 : i.content) !== void 0 && (s.content = i.content), (i == null ? void 0 : i.level) !== void 0 && (s.level = i.level), (i == null ? void 0 : i.map) !== void 0 && (s.map = i.map), (i == null ? void 0 : i.block) !== void 0 && (s.block = i.block), (i == null ? void 0 : i.info) !== void 0 && (s.info = i.info), (i == null ? void 0 : i.meta) !== void 0 && (s.meta = i.meta), (i == null ? void 0 : i.children) !== void 0 && (s.children = i.children), s; } nestedParse(e, r) { - return k8e(this.state.md, "run_directives", e, this.state.env, r, !0); + return S8e(this.state.md, "run_directives", e, this.state.env, r, !0); } } class Bh extends Error { @@ -27870,12 +27870,12 @@ class Bh extends Error { super(...arguments), this.name = "DirectiveParsingError"; } } -function S8e(t, e) { +function T8e(t, e) { const r = t.meta.arg || "", n = t.content; let i = n.trim() ? n.split(/\r?\n/) : [], s = 0, a = {}; - (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = gne(i, e)); + (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = mne(i, e)); let o = []; - if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = T8e(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) + if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = C8e(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) throw new Bh("Has content but content not allowed"); return { map: t.map ? t.map : [0, 0], @@ -27889,7 +27889,7 @@ function S8e(t, e) { ] : [0, 0] }; } -function gne(t, e) { +function mne(t, e) { let r = 1, n = {}, i = null; if (t.length && t[0].startsWith("---")) { r++; @@ -27919,7 +27919,7 @@ function gne(t, e) { } if (i !== null) try { - const s = O8e.load(i.join(` + const s = k8e.load(i.join(` `)); if (s !== null && typeof s == "object") n = s; @@ -27946,7 +27946,7 @@ ${u}`); } return [t, n, r]; } -function T8e(t, e) { +function C8e(t, e) { var r; let n = t.trim() ? (r = t.trim()) === null || r === void 0 ? void 0 : r.split(/\s+/) : []; const i = (e.required_arguments || 0) + (e.optional_arguments || 0); @@ -27960,10 +27960,10 @@ function T8e(t, e) { throw new Bh(`maximum ${i} argument(s) allowed, ${n.length} supplied`); return n; } -function C8e(t, e) { +function E8e(t, e) { var r; let n = e.directivesAfter || "block"; - (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", E8e), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", _8e(e.directives || {})), t.renderer.rules.directive = (i, s) => { + (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", _8e), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", A8e(e.directives || {})), t.renderer.rules.directive = (i, s) => { const a = i[s]; return ` `; }; } -function E8e(t) { +function _8e(t) { for (const e of t.tokens) if (e.type === "fence" || e.type === "colon_fence") { const r = e.info.match(/^\{([^\s}]+)\}\s*(.*)$/); @@ -27990,13 +27990,13 @@ function E8e(t) { } return !0; } -function _8e(t) { +function A8e(t) { function e(r) { const n = []; for (const i of r.tokens) if (i.type === "directive" && i.info in t) try { - const s = new t[i.info](r), a = S8e(i, s), [o, l] = gne(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); + const s = new t[i.info](r), a = T8e(i, s), [o, l] = mne(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); u.info = i.info, u.hidden = !0, u.content = o.join(` `).trim(), u.meta = { arg: i.meta.arg, @@ -28016,7 +28016,7 @@ function _8e(t) { } return e; } -function A8e(t) { +function L8e(t) { return t.toLowerCase().split(/\s+/).join("-").replace(/[^a-z0-9]+/, "-").replace(/^[-0-9]+|-+$/, ""); } class t0 extends Error { @@ -28024,16 +28024,16 @@ class t0 extends Error { super(...arguments), this.name = "OptionSpecError"; } } -const gf = (t) => t, a8 = (t) => { +const gf = (t) => t, o8 = (t) => { if (!t) throw new t0("Argument required but none supplied"); return t; -}, o8 = (t) => { +}, l8 = (t) => { if (t.trim()) throw new t0(`No argument is allowed: "${t}" supplied`); return null; -}, q1 = (t) => `${t || ""}`.split(/\s+/).map((e) => A8e(e)); -function mne(t) { +}, q1 = (t) => `${t || ""}`.split(/\s+/).map((e) => L8e(e)); +function vne(t) { if (!t) throw new t0("Value is not set"); const e = Number.parseFloat(t); @@ -28042,33 +28042,33 @@ function mne(t) { return e; } function l3(t) { - const e = mne(t); + const e = vne(t); if (e < 0) throw new t0(`Value "${t}" must be positive or zero`); return e; } -const vne = (t) => t ? l3(t) : null, L8e = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), l3(t)); -function yne(t, e) { +const yne = (t) => t ? l3(t) : null, R8e = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), l3(t)); +function bne(t, e) { const n = new RegExp(`^(?[0-9.]+)\\s*(?${e.join("|")})$`).exec(t); if (!n || !n.groups) throw new t0(`not a positive measure of one of the following units: ${e.join("|")}`); return n.groups.number + n.groups.units; } -const bne = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], xne = (t) => yne(t, [...bne, ""]), JM = (t, e = "") => { +const xne = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], wne = (t) => bne(t, [...xne, ""]), eD = (t, e = "") => { try { - return yne(t, [...bne, "%"]); + return bne(t, [...xne, "%"]); } catch { - return xne(t) + e; + return wne(t) + e; } -}, R8e = (t, e = "") => t.toLowerCase() === "image" ? "image" : JM(t, e); -function eD(t) { +}, M8e = (t, e = "") => t.toLowerCase() === "image" ? "image" : eD(t, e); +function tD(t) { return (e) => { if (e = e.toLowerCase().trim(), t.includes(e)) return e; throw new t0(`must be in: ${t.join("|")}`); }; } -const M8e = (t) => t; +const D8e = (t) => t; class Ql extends $0 { constructor() { super(...arguments), this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { @@ -28096,79 +28096,79 @@ class Ql extends $0 { return n.push(...o), n.push(this.createToken("admonition_close", "aside", -1, { block: !0 })), n; } } -class D8e extends Ql { +class N8e extends Ql { constructor() { super(...arguments), this.required_arguments = 1; } } -class N8e extends Ql { +class I8e extends Ql { constructor() { super(...arguments), this.title = "Attention", this.kind = "attention"; } } -class I8e extends Ql { +class P8e extends Ql { constructor() { super(...arguments), this.title = "Caution", this.kind = "caution"; } } -class P8e extends Ql { +class $8e extends Ql { constructor() { super(...arguments), this.title = "Danger", this.kind = "danger"; } } -class $8e extends Ql { +class B8e extends Ql { constructor() { super(...arguments), this.title = "Error", this.kind = "error"; } } -class B8e extends Ql { +class F8e extends Ql { constructor() { super(...arguments), this.title = "Important", this.kind = "important"; } } -class F8e extends Ql { +class z8e extends Ql { constructor() { super(...arguments), this.title = "Hint", this.kind = "hint"; } } -class z8e extends Ql { +class V8e extends Ql { constructor() { super(...arguments), this.title = "Note", this.kind = "note"; } } -class V8e extends Ql { +class U8e extends Ql { constructor() { super(...arguments), this.title = "See Also", this.kind = "seealso"; } } -class U8e extends Ql { +class q8e extends Ql { constructor() { super(...arguments), this.title = "Tip", this.kind = "tip"; } } -class q8e extends Ql { +class Q8e extends Ql { constructor() { super(...arguments), this.title = "Warning", this.kind = "warning"; } } -const Q8e = { - admonition: D8e, - attention: N8e, - caution: I8e, - danger: P8e, - error: $8e, - important: B8e, - hint: F8e, - note: z8e, - seealso: V8e, - tip: U8e, - warning: q8e -}; -class Y8e extends $0 { +const Y8e = { + admonition: N8e, + attention: I8e, + caution: P8e, + danger: $8e, + error: B8e, + important: F8e, + hint: z8e, + note: V8e, + seealso: U8e, + tip: q8e, + warning: Q8e +}; +class W8e extends $0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { - "number-lines": vne, - force: o8, + "number-lines": yne, + force: l8, name: gf, class: q1 }; @@ -28181,15 +28181,15 @@ class Y8e extends $0 { })]; } } -class W8e extends $0 { +class G8e extends $0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { - linenos: o8, - "lineno-start": mne, - dedent: vne, - "emphasize-lines": a8, - caption: a8, - force: o8, + linenos: l8, + "lineno-start": vne, + dedent: yne, + "emphasize-lines": o8, + caption: o8, + force: l8, name: gf, class: q1 }; @@ -28202,7 +28202,7 @@ class W8e extends $0 { })]; } } -class G8e extends $0 { +class H8e extends $0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.rawOptions = !0; } @@ -28214,25 +28214,25 @@ class G8e extends $0 { })]; } } -const H8e = { - code: Y8e, - "code-block": W8e, - "code-cell": G8e -}, wne = { +const X8e = { + code: W8e, + "code-block": G8e, + "code-cell": H8e +}, One = { alt: gf, - height: xne, - width: JM, - scale: L8e, - target: a8, + height: wne, + width: eD, + scale: R8e, + target: o8, class: q1, name: gf }; -class One extends $0 { +class kne extends $0 { constructor() { - super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, wne), { align: eD(["left", "center", "right", "top", "middle", "bottom"]) }); + super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, One), { align: tD(["left", "center", "right", "top", "middle", "bottom"]) }); } create_image(e) { - const r = M8e(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); + const r = D8e(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); n.attrSet("src", r), n.attrSet("alt", e.options.alt || ""); const i = []; return e.options.alt && this.state.md.inline.parse(e.options.alt, this.state.md, this.state.env, i), n.children = i, e.options.height && n.attrSet("height", e.options.height), e.options.width && n.attrSet("width", e.options.width), e.options.align && n.attrJoin("class", `align-${e.options.align}`), e.options.class && n.attrJoin("class", e.options.class.join(" ")), n; @@ -28241,9 +28241,9 @@ class One extends $0 { return [this.create_image(e)]; } } -class X8e extends One { +class Z8e extends kne { constructor() { - super(...arguments), this.option_spec = Object.assign(Object.assign({}, wne), { align: eD(["left", "center", "right"]), figwidth: R8e, figclass: q1 }), this.has_content = !0; + super(...arguments), this.option_spec = Object.assign(Object.assign({}, One), { align: tD(["left", "center", "right"]), figwidth: M8e, figclass: q1 }), this.has_content = !0; } run(e) { const r = this.createToken("figure_open", "figure", 1, { @@ -28252,7 +28252,7 @@ class X8e extends One { }); e.options.figclass && r.attrJoin("class", e.options.figclass.join(" ")), e.options.align && r.attrJoin("class", `align-${e.options.align}`), e.options.figwidth && e.options.figwidth !== "image" && r.attrSet("width", e.options.figwidth); let n; - e.options.name && (n = Cre( + e.options.name && (n = Ere( this.state, r, Jy.figure, @@ -28288,11 +28288,11 @@ class X8e extends One { return [r, i, ...s, ...a, o]; } } -const Z8e = { - image: One, - figure: X8e +const j8e = { + image: kne, + figure: Z8e }; -class tD { +class rD { constructor(e, r = !0) { if (this.children = [], this.children = [], r) { this._set_children_from_tokens(e); @@ -28328,7 +28328,7 @@ class tD { } } _add_child(e) { - const r = new tD(e, !1); + const r = new rD(e, !1); r.parent = this, this.children.push(r); } to_tokens() { @@ -28414,16 +28414,16 @@ class tD { return this.attribute_token().attrs; } } -class j8e extends $0 { +class K8e extends $0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { "header-rows": l3, "stub-columns": l3, - width: JM, + width: eD, widths: gf, class: q1, name: gf, - align: eD(["left", "center", "right"]) + align: tD(["left", "center", "right"]) }; } run(e) { @@ -28440,7 +28440,7 @@ class j8e extends $0 { let a = "th"; r ? (i.push(this.createToken("thead_open", "thead", 1, { level: 1 })), a = "th") : (i.push(this.createToken("tbody_open", "tbody", 1, { level: 1 })), a = "td"); let o, l = 0; - for (const u of new tD(n.slice(1, -1)).children) { + for (const u of new rD(n.slice(1, -1)).children) { l += 1, this.assert(u.type === "list_item", `list item ${l} not of type 'list_item': ${u.type}`), this.assert(u.children.length === 1 && u.children[0].type === "bullet_list", `list item ${l} content not a nested bullet list`); const h = u.children[0].children; o === void 0 ? o = h.length : this.assert(h.length === o, `list item ${l} does not contain the same number of columns as previous items`), r && l === r + 1 && (i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("tbody_open", "tbody", 1, { level: 1 })), a = "td"), i.push(this.createToken("tr_open", "tr", 1, { map: u.map, level: 2 })); @@ -28453,10 +28453,10 @@ class j8e extends $0 { return a === "td" ? i.push(this.createToken("tbody_close", "tbody", -1, { level: 1 })) : i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("table_close", "table", -1)), i; } } -const K8e = { - "list-table": j8e +const J8e = { + "list-table": K8e }; -class J8e extends $0 { +class eLe extends $0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 0, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { label: gf @@ -28471,18 +28471,18 @@ class J8e extends $0 { }); if (r.attrSet("class", "math block"), e.options.label) { r.attrSet("id", e.options.label); - const n = Cre(this.state, r, Jy.equation, e.options.label, ""); + const n = Ere(this.state, r, Jy.equation, e.options.label, ""); r.attrSet("number", `${n.number}`), r.info = e.options.label, r.meta = { label: e.options.label, numbered: !0, number: n.number }; } return [r]; } } -const eLe = { - math: J8e -}, tLe = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Q8e), Z8e), H8e), K8e), eLe); -function rLe(t) { +const tLe = { + math: eLe +}, rLe = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Y8e), j8e), X8e), J8e), tLe); +function nLe(t) { return (e) => { - const r = sT(e); + const r = aT(e); return r.references.forEach((n) => { const { label: i, tokens: s, contentFromTarget: a } = n, o = (u, h) => (s.open.attrJoin("class", "error"), s.open.tag = s.close.tag = "code", a && h ? s.content.content = a(h) : s.content.content = u, !0), l = r.targets[i]; if (!l) @@ -28498,20 +28498,20 @@ function rLe(t) { }), !0; }; } -function nLe(t, e) { - t.core.ruler.push("docutils_number", rLe()); +function iLe(t, e) { + t.core.ruler.push("docutils_number", nLe()); } -const iLe = { +const sLe = { parseRoles: !0, replaceFences: !0, rolesAfter: "inline", directivesAfter: "block", - directives: tLe, - roles: rAe + directives: rLe, + roles: nAe }; -function sLe(t, e) { - const r = Object.assign(Object.assign({}, iLe), e); - t.use(Tre, r), t.use(C8e, r), t.use(nLe, r); +function aLe(t, e) { + const r = Object.assign(Object.assign({}, sLe), e); + t.use(Cre, r), t.use(E8e, r), t.use(iLe, r); } /*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */ function Ah(t) { @@ -28521,12 +28521,12 @@ function Ah(t) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Ah(t); } -function l8(t, e) { - return l8 = Object.setPrototypeOf || function(n, i) { +function c8(t, e) { + return c8 = Object.setPrototypeOf || function(n, i) { return n.__proto__ = i, n; - }, l8(t, e); + }, c8(t, e); } -function aLe() { +function oLe() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -28539,46 +28539,46 @@ function aLe() { } } function w4(t, e, r) { - return aLe() ? w4 = Reflect.construct : w4 = function(i, s, a) { + return oLe() ? w4 = Reflect.construct : w4 = function(i, s, a) { var o = [null]; o.push.apply(o, s); var l = Function.bind.apply(i, o), u = new l(); - return a && l8(u, a.prototype), u; + return a && c8(u, a.prototype), u; }, w4.apply(null, arguments); } function sl(t) { - return oLe(t) || lLe(t) || cLe(t) || uLe(); + return lLe(t) || cLe(t) || uLe(t) || hLe(); } -function oLe(t) { +function lLe(t) { if (Array.isArray(t)) - return c8(t); + return u8(t); } -function lLe(t) { +function cLe(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } -function cLe(t, e) { +function uLe(t, e) { if (!!t) { if (typeof t == "string") - return c8(t, e); + return u8(t, e); var r = Object.prototype.toString.call(t).slice(8, -1); if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) - return c8(t, e); + return u8(t, e); } } -function c8(t, e) { +function u8(t, e) { (e == null || e > t.length) && (e = t.length); for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]; return n; } -function uLe() { +function hLe() { 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 hLe = Object.hasOwnProperty, pV = Object.setPrototypeOf, fLe = Object.isFrozen, dLe = Object.getPrototypeOf, pLe = Object.getOwnPropertyDescriptor, oa = Object.freeze, Pl = Object.seal, gLe = Object.create, kne = typeof Reflect < "u" && Reflect, c3 = kne.apply, u8 = kne.construct; +var fLe = Object.hasOwnProperty, pV = Object.setPrototypeOf, dLe = Object.isFrozen, pLe = Object.getPrototypeOf, gLe = Object.getOwnPropertyDescriptor, oa = Object.freeze, Pl = Object.seal, mLe = Object.create, Sne = typeof Reflect < "u" && Reflect, c3 = Sne.apply, h8 = Sne.construct; c3 || (c3 = function(e, r, n) { return e.apply(r, n); }); @@ -28588,10 +28588,10 @@ oa || (oa = function(e) { Pl || (Pl = function(e) { return e; }); -u8 || (u8 = function(e, r) { +h8 || (h8 = function(e, r) { return w4(e, sl(r)); }); -var mLe = qo(Array.prototype.forEach), gV = qo(Array.prototype.pop), Pm = qo(Array.prototype.push), O4 = qo(String.prototype.toLowerCase), o6 = qo(String.prototype.toString), vLe = qo(String.prototype.match), il = qo(String.prototype.replace), yLe = qo(String.prototype.indexOf), bLe = qo(String.prototype.trim), Xs = qo(RegExp.prototype.test), l6 = xLe(TypeError); +var vLe = qo(Array.prototype.forEach), gV = qo(Array.prototype.pop), Pm = qo(Array.prototype.push), O4 = qo(String.prototype.toLowerCase), l6 = qo(String.prototype.toString), yLe = qo(String.prototype.match), il = qo(String.prototype.replace), bLe = qo(String.prototype.indexOf), xLe = qo(String.prototype.trim), Xs = qo(RegExp.prototype.test), c6 = wLe(TypeError); function qo(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -28599,11 +28599,11 @@ function qo(t) { return c3(t, e, n); }; } -function xLe(t) { +function wLe(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; - return u8(t, r); + return h8(t, r); }; } function mr(t, e, r) { @@ -28613,41 +28613,41 @@ function mr(t, e, r) { var s = e[i]; if (typeof s == "string") { var a = r(s); - a !== s && (fLe(e) || (e[i] = a), s = a); + a !== s && (dLe(e) || (e[i] = a), s = a); } t[s] = !0; } return t; } function jf(t) { - var e = gLe(null), r; + var e = mLe(null), r; for (r in t) - c3(hLe, t, [r]) === !0 && (e[r] = t[r]); + c3(fLe, t, [r]) === !0 && (e[r] = t[r]); return e; } function Bw(t, e) { for (; t !== null; ) { - var r = pLe(t, e); + var r = gLe(t, e); if (r) { if (r.get) return qo(r.get); if (typeof r.value == "function") return qo(r.value); } - t = dLe(t); + t = pLe(t); } function n(i) { return console.warn("fallback value for", i), null; } return n; } -var mV = oa(["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"]), c6 = oa(["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"]), u6 = oa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), wLe = oa(["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"]), h6 = oa(["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"]), OLe = oa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vV = oa(["#text"]), yV = oa(["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"]), f6 = oa(["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"]), bV = oa(["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"]), Fw = oa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), kLe = Pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), SLe = Pl(/<%[\w\W]*|[\w\W]*%>/gm), TLe = Pl(/\${[\w\W]*}/gm), CLe = Pl(/^data-[\-\w.\u00B7-\uFFFF]/), ELe = Pl(/^aria-[\-\w]+$/), _Le = Pl( +var mV = oa(["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"]), u6 = oa(["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"]), h6 = oa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), OLe = oa(["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"]), f6 = oa(["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"]), kLe = oa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vV = oa(["#text"]), yV = oa(["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"]), d6 = oa(["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"]), bV = oa(["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"]), Fw = oa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), SLe = Pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), TLe = Pl(/<%[\w\W]*|[\w\W]*%>/gm), CLe = Pl(/\${[\w\W]*}/gm), ELe = Pl(/^data-[\-\w.\u00B7-\uFFFF]/), _Le = Pl(/^aria-[\-\w]+$/), ALe = Pl( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), ALe = Pl(/^(?:\w+script|data):/i), LLe = Pl( +), LLe = Pl(/^(?:\w+script|data):/i), RLe = Pl( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), RLe = Pl(/^html$/i), MLe = function() { +), MLe = Pl(/^html$/i), DLe = function() { return typeof window > "u" ? null : window; -}, DLe = function(e, r) { +}, NLe = function(e, r) { if (Ah(e) !== "object" || typeof e.createPolicy != "function") return null; var n = null, i = "data-tt-policy-suffix"; @@ -28666,9 +28666,9 @@ var mV = oa(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function Sne() { - var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : MLe(), e = function(te) { - return Sne(te); +function Tne() { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DLe(), e = function(te) { + return Tne(te); }; if (e.version = "2.4.7", e.removed = [], !t || !t.document || t.document.nodeType !== 9) return e.isSupported = !1, e; @@ -28677,14 +28677,14 @@ function Sne() { var w = n.createElement("template"); w.content && w.content.ownerDocument && (n = w.content.ownerDocument); } - var O = DLe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, L = C.createNodeIterator, E = C.createDocumentFragment, A = C.getElementsByTagName, _ = r.importNode, R = {}; + var O = NLe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, A = C.createNodeIterator, E = C.createDocumentFragment, L = C.getElementsByTagName, _ = r.importNode, R = {}; try { R = jf(n).documentMode ? n.documentMode : {}; } catch { } var $ = {}; e.isSupported = typeof b == "function" && T && T.createHTMLDocument !== void 0 && R !== 9; - var k = kLe, N = SLe, M = TLe, I = CLe, D = ELe, P = ALe, F = LLe, B = _Le, V = null, Q = mr({}, [].concat(sl(mV), sl(c6), sl(u6), sl(h6), sl(vV))), W = null, ee = mr({}, [].concat(sl(yV), sl(f6), sl(bV), sl(Fw))), Y = Object.seal(Object.create(null, { + var k = SLe, N = TLe, M = CLe, I = ELe, D = _Le, P = LLe, F = RLe, B = ALe, V = null, Q = mr({}, [].concat(sl(mV), sl(u6), sl(h6), sl(f6), sl(vV))), W = null, ee = mr({}, [].concat(sl(yV), sl(d6), sl(bV), sl(Fw))), Y = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -28703,10 +28703,10 @@ function Sne() { enumerable: !0, value: !1 } - })), ne = null, ie = null, U = !0, Z = !0, G = !1, j = !0, ae = !1, se = !1, K = !1, _e = !1, ce = !1, Ee = !1, Ae = !1, Ue = !0, Ge = !1, Ye = "user-content-", De = !0, he = !1, H = {}, oe = null, ve = mr({}, ["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"]), re = null, ue = mr({}, ["audio", "video", "img", "source", "image", "track"]), fe = null, de = mr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ge = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml", Ce = ke, Oe = !1, Me = null, Te = mr({}, [ge, xe, ke], o6), Xe, Ne = ["application/xhtml+xml", "text/html"], Ke = "text/html", je, ut = null, ft = n.createElement("form"), ot = function(te) { + })), ne = null, ie = null, U = !0, Z = !0, G = !1, j = !0, ae = !1, se = !1, K = !1, _e = !1, ce = !1, Ee = !1, Ae = !1, Ue = !0, Ge = !1, Ye = "user-content-", De = !0, he = !1, H = {}, oe = null, ve = mr({}, ["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"]), re = null, ue = mr({}, ["audio", "video", "img", "source", "image", "track"]), fe = null, de = mr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ge = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml", Ce = ke, Oe = !1, Me = null, Te = mr({}, [ge, xe, ke], l6), Xe, Ne = ["application/xhtml+xml", "text/html"], Ke = "text/html", je, ut = null, ft = n.createElement("form"), ot = function(te) { return te instanceof RegExp || te instanceof Function; }, We = function(te) { - ut && ut === te || ((!te || Ah(te) !== "object") && (te = {}), te = jf(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Xe = Ke : Xe = te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? o6 : O4, V = "ALLOWED_TAGS" in te ? mr({}, te.ALLOWED_TAGS, je) : Q, W = "ALLOWED_ATTR" in te ? mr({}, te.ALLOWED_ATTR, je) : ee, Me = "ALLOWED_NAMESPACES" in te ? mr({}, te.ALLOWED_NAMESPACES, o6) : Te, fe = "ADD_URI_SAFE_ATTR" in te ? mr( + ut && ut === te || ((!te || Ah(te) !== "object") && (te = {}), te = jf(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Xe = Ke : Xe = te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? l6 : O4, V = "ALLOWED_TAGS" in te ? mr({}, te.ALLOWED_TAGS, je) : Q, W = "ALLOWED_ATTR" in te ? mr({}, te.ALLOWED_ATTR, je) : ee, Me = "ALLOWED_NAMESPACES" in te ? mr({}, te.ALLOWED_NAMESPACES, l6) : Te, fe = "ADD_URI_SAFE_ATTR" in te ? mr( jf(de), te.ADD_URI_SAFE_ATTR, je @@ -28714,11 +28714,11 @@ function Sne() { jf(ue), te.ADD_DATA_URI_TAGS, je - ) : ue, oe = "FORBID_CONTENTS" in te ? mr({}, te.FORBID_CONTENTS, je) : ve, ne = "FORBID_TAGS" in te ? mr({}, te.FORBID_TAGS, je) : {}, ie = "FORBID_ATTR" in te ? mr({}, te.FORBID_ATTR, je) : {}, H = "USE_PROFILES" in te ? te.USE_PROFILES : !1, U = te.ALLOW_ARIA_ATTR !== !1, Z = te.ALLOW_DATA_ATTR !== !1, G = te.ALLOW_UNKNOWN_PROTOCOLS || !1, j = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ae = te.SAFE_FOR_TEMPLATES || !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, B = te.ALLOWED_URI_REGEXP || B, Ce = te.NAMESPACE || ke, Y = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ae && (Z = !1), Ee && (ce = !0), H && (V = mr({}, sl(vV)), W = [], H.html === !0 && (mr(V, mV), mr(W, yV)), H.svg === !0 && (mr(V, c6), mr(W, f6), mr(W, Fw)), H.svgFilters === !0 && (mr(V, u6), mr(W, f6), mr(W, Fw)), H.mathMl === !0 && (mr(V, h6), mr(W, bV), mr(W, Fw))), te.ADD_TAGS && (V === Q && (V = jf(V)), mr(V, te.ADD_TAGS, je)), te.ADD_ATTR && (W === ee && (W = jf(W)), mr(W, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && mr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = jf(oe)), mr(oe, te.FORBID_CONTENTS, je)), De && (V["#text"] = !0), se && mr(V, ["html", "head", "body"]), V.table && (mr(V, ["tbody"]), delete ne.tbody), oa && oa(te), ut = te); - }, Qe = mr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = mr({}, ["foreignobject", "desc", "title", "annotation-xml"]), tt = mr({}, ["title", "style", "font", "a", "script"]), He = mr({}, c6); - mr(He, u6), mr(He, wLe); - var kt = mr({}, h6); - mr(kt, OLe); + ) : ue, oe = "FORBID_CONTENTS" in te ? mr({}, te.FORBID_CONTENTS, je) : ve, ne = "FORBID_TAGS" in te ? mr({}, te.FORBID_TAGS, je) : {}, ie = "FORBID_ATTR" in te ? mr({}, te.FORBID_ATTR, je) : {}, H = "USE_PROFILES" in te ? te.USE_PROFILES : !1, U = te.ALLOW_ARIA_ATTR !== !1, Z = te.ALLOW_DATA_ATTR !== !1, G = te.ALLOW_UNKNOWN_PROTOCOLS || !1, j = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ae = te.SAFE_FOR_TEMPLATES || !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, B = te.ALLOWED_URI_REGEXP || B, Ce = te.NAMESPACE || ke, Y = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ae && (Z = !1), Ee && (ce = !0), H && (V = mr({}, sl(vV)), W = [], H.html === !0 && (mr(V, mV), mr(W, yV)), H.svg === !0 && (mr(V, u6), mr(W, d6), mr(W, Fw)), H.svgFilters === !0 && (mr(V, h6), mr(W, d6), mr(W, Fw)), H.mathMl === !0 && (mr(V, f6), mr(W, bV), mr(W, Fw))), te.ADD_TAGS && (V === Q && (V = jf(V)), mr(V, te.ADD_TAGS, je)), te.ADD_ATTR && (W === ee && (W = jf(W)), mr(W, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && mr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = jf(oe)), mr(oe, te.FORBID_CONTENTS, je)), De && (V["#text"] = !0), se && mr(V, ["html", "head", "body"]), V.table && (mr(V, ["tbody"]), delete ne.tbody), oa && oa(te), ut = te); + }, Qe = mr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = mr({}, ["foreignobject", "desc", "title", "annotation-xml"]), tt = mr({}, ["title", "style", "font", "a", "script"]), He = mr({}, u6); + mr(He, h6), mr(He, OLe); + var kt = mr({}, f6); + mr(kt, kLe); var st = function(te) { var Le = b(te); (!Le || !Le.tagName) && (Le = { @@ -28768,7 +28768,7 @@ function Sne() { if (_e) te = "" + te; else { - var Lt = vLe(te, /^[\r\n\t ]+/); + var Lt = yLe(te, /^[\r\n\t ]+/); ze = Lt && Lt[0]; } Xe === "application/xhtml+xml" && Ce === ke && (te = '' + te + ""); @@ -28786,9 +28786,9 @@ function Sne() { } } var Jt = Le.body || Le.documentElement; - return te && ze && Jt.insertBefore(n.createTextNode(ze), Jt.childNodes[0] || null), Ce === ke ? A.call(Le, se ? "html" : "body")[0] : se ? Le.documentElement : Jt; + return te && ze && Jt.insertBefore(n.createTextNode(ze), Jt.childNodes[0] || null), Ce === ke ? L.call(Le, se ? "html" : "body")[0] : se ? Le.documentElement : Jt; }, yr = function(te) { - return L.call( + return A.call( te.ownerDocument || te, te, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT, @@ -28800,7 +28800,7 @@ function Sne() { }, wr = function(te) { return Ah(a) === "object" ? te instanceof a : te && Ah(te) === "object" && typeof te.nodeType == "number" && typeof te.nodeName == "string"; }, tr = function(te, Le, ze) { - !$[te] || mLe($[te], function(Lt) { + !$[te] || vLe($[te], function(Lt) { Lt.call(e, Le, ze, ut); }); }, On = function(te) { @@ -28837,7 +28837,7 @@ function Sne() { return !1; } else if (!fe[Le]) { if (!Xs(B, il(ze, F, ""))) { - if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && yLe(ze, "data:") === 0 && re[te])) { + if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && bLe(ze, "data:") === 0 && re[te])) { if (!(G && !Xs(P, il(ze, F, "")))) { if (ze) return !1; @@ -28864,7 +28864,7 @@ function Sne() { for (cr = Jt.length; cr--; ) { Le = Jt[cr]; var St = Le, Tt = St.name, Je = St.namespaceURI; - if (ze = Tt === "value" ? Le.value : bLe(Le.value), Lt = je(Tt), rt.attrName = Lt, rt.attrValue = ze, rt.keepAttr = !0, rt.forceKeepAttr = void 0, tr("uponSanitizeAttribute", te, rt), ze = rt.attrValue, !rt.forceKeepAttr && (dt(Tt, te), !!rt.keepAttr)) { + if (ze = Tt === "value" ? Le.value : xLe(Le.value), Lt = je(Tt), rt.attrName = Lt, rt.attrValue = ze, rt.keepAttr = !0, rt.forceKeepAttr = void 0, tr("uponSanitizeAttribute", te, rt), ze = rt.attrValue, !rt.forceKeepAttr && (dt(Tt, te), !!rt.keepAttr)) { if (!j && Xs(/\/>/i, ze)) { dt(Tt, te); continue; @@ -28903,9 +28903,9 @@ function Sne() { if (Oe = !qe, Oe && (qe = ""), typeof qe != "string" && !wr(qe)) if (typeof qe.toString == "function") { if (qe = qe.toString(), typeof qe != "string") - throw l6("dirty is not a string, aborting"); + throw c6("dirty is not a string, aborting"); } else - throw l6("toString is not a function"); + throw c6("toString is not a function"); if (!e.isSupported) { if (Ah(t.toStaticHTML) === "object" || typeof t.toStaticHTML == "function") { if (typeof qe == "string") @@ -28919,7 +28919,7 @@ function Sne() { if (qe.nodeName) { var rt = je(qe.nodeName); if (!V[rt] || ne[rt]) - throw l6("root node is forbidden and cannot be sanitized in-place"); + throw c6("root node is forbidden and cannot be sanitized in-place"); } } else if (qe instanceof a) Le = zt(""), ze = Le.ownerDocument.importNode(qe, !0), ze.nodeType === 1 && ze.nodeName === "BODY" || ze.nodeName === "HTML" ? Le = ze : Le.appendChild(ze); @@ -28943,7 +28943,7 @@ function Sne() { return (W.shadowroot || W.shadowrootmod) && (Jt = _.call(r, Jt, !0)), Jt; } var Tt = se ? Le.outerHTML : Le.innerHTML; - return se && V["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Xs(RLe, Le.ownerDocument.doctype.name) && (Tt = " + return se && V["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Xs(MLe, Le.ownerDocument.doctype.name) && (Tt = " ` + Tt), ae && (Tt = il(Tt, k, " "), Tt = il(Tt, N, " "), Tt = il(Tt, M, " ")), O && Ae ? O.createHTML(Tt) : Tt; }, e.setConfig = function(qe) { We(qe), K = !0; @@ -28964,2140 +28964,2140 @@ function Sne() { $ = {}; }, e; } -var Tne = Sne(), Cne = { exports: {} }, Ir = {}, rD = { exports: {} }; -const NLe = "\xC1", ILe = "\xE1", PLe = "\u0102", $Le = "\u0103", BLe = "\u223E", FLe = "\u223F", zLe = "\u223E\u0333", VLe = "\xC2", ULe = "\xE2", qLe = "\xB4", QLe = "\u0410", YLe = "\u0430", WLe = "\xC6", GLe = "\xE6", HLe = "\u2061", XLe = "\u{1D504}", ZLe = "\u{1D51E}", jLe = "\xC0", KLe = "\xE0", JLe = "\u2135", e9e = "\u2135", t9e = "\u0391", r9e = "\u03B1", n9e = "\u0100", i9e = "\u0101", s9e = "\u2A3F", a9e = "&", o9e = "&", l9e = "\u2A55", c9e = "\u2A53", u9e = "\u2227", h9e = "\u2A5C", f9e = "\u2A58", d9e = "\u2A5A", p9e = "\u2220", g9e = "\u29A4", m9e = "\u2220", v9e = "\u29A8", y9e = "\u29A9", b9e = "\u29AA", x9e = "\u29AB", w9e = "\u29AC", O9e = "\u29AD", k9e = "\u29AE", S9e = "\u29AF", T9e = "\u2221", C9e = "\u221F", E9e = "\u22BE", _9e = "\u299D", A9e = "\u2222", L9e = "\xC5", R9e = "\u237C", M9e = "\u0104", D9e = "\u0105", N9e = "\u{1D538}", I9e = "\u{1D552}", P9e = "\u2A6F", $9e = "\u2248", B9e = "\u2A70", F9e = "\u224A", z9e = "\u224B", V9e = "'", U9e = "\u2061", q9e = "\u2248", Q9e = "\u224A", Y9e = "\xC5", W9e = "\xE5", G9e = "\u{1D49C}", H9e = "\u{1D4B6}", X9e = "\u2254", Z9e = "*", j9e = "\u2248", K9e = "\u224D", J9e = "\xC3", eRe = "\xE3", tRe = "\xC4", rRe = "\xE4", nRe = "\u2233", iRe = "\u2A11", sRe = "\u224C", aRe = "\u03F6", oRe = "\u2035", lRe = "\u223D", cRe = "\u22CD", uRe = "\u2216", hRe = "\u2AE7", fRe = "\u22BD", dRe = "\u2305", pRe = "\u2306", gRe = "\u2305", mRe = "\u23B5", vRe = "\u23B6", yRe = "\u224C", bRe = "\u0411", xRe = "\u0431", wRe = "\u201E", ORe = "\u2235", kRe = "\u2235", SRe = "\u2235", TRe = "\u29B0", CRe = "\u03F6", ERe = "\u212C", _Re = "\u212C", ARe = "\u0392", LRe = "\u03B2", RRe = "\u2136", MRe = "\u226C", DRe = "\u{1D505}", NRe = "\u{1D51F}", IRe = "\u22C2", PRe = "\u25EF", $Re = "\u22C3", BRe = "\u2A00", FRe = "\u2A01", zRe = "\u2A02", VRe = "\u2A06", URe = "\u2605", qRe = "\u25BD", QRe = "\u25B3", YRe = "\u2A04", WRe = "\u22C1", GRe = "\u22C0", HRe = "\u290D", XRe = "\u29EB", ZRe = "\u25AA", jRe = "\u25B4", KRe = "\u25BE", JRe = "\u25C2", eMe = "\u25B8", tMe = "\u2423", rMe = "\u2592", nMe = "\u2591", iMe = "\u2593", sMe = "\u2588", aMe = "=\u20E5", oMe = "\u2261\u20E5", lMe = "\u2AED", cMe = "\u2310", uMe = "\u{1D539}", hMe = "\u{1D553}", fMe = "\u22A5", dMe = "\u22A5", pMe = "\u22C8", gMe = "\u29C9", mMe = "\u2510", vMe = "\u2555", yMe = "\u2556", bMe = "\u2557", xMe = "\u250C", wMe = "\u2552", OMe = "\u2553", kMe = "\u2554", SMe = "\u2500", TMe = "\u2550", CMe = "\u252C", EMe = "\u2564", _Me = "\u2565", AMe = "\u2566", LMe = "\u2534", RMe = "\u2567", MMe = "\u2568", DMe = "\u2569", NMe = "\u229F", IMe = "\u229E", PMe = "\u22A0", $Me = "\u2518", BMe = "\u255B", FMe = "\u255C", zMe = "\u255D", VMe = "\u2514", UMe = "\u2558", qMe = "\u2559", QMe = "\u255A", YMe = "\u2502", WMe = "\u2551", GMe = "\u253C", HMe = "\u256A", XMe = "\u256B", ZMe = "\u256C", jMe = "\u2524", KMe = "\u2561", JMe = "\u2562", eDe = "\u2563", tDe = "\u251C", rDe = "\u255E", nDe = "\u255F", iDe = "\u2560", sDe = "\u2035", aDe = "\u02D8", oDe = "\u02D8", lDe = "\xA6", cDe = "\u{1D4B7}", uDe = "\u212C", hDe = "\u204F", fDe = "\u223D", dDe = "\u22CD", pDe = "\u29C5", gDe = "\\", mDe = "\u27C8", vDe = "\u2022", yDe = "\u2022", bDe = "\u224E", xDe = "\u2AAE", wDe = "\u224F", ODe = "\u224E", kDe = "\u224F", SDe = "\u0106", TDe = "\u0107", CDe = "\u2A44", EDe = "\u2A49", _De = "\u2A4B", ADe = "\u2229", LDe = "\u22D2", RDe = "\u2A47", MDe = "\u2A40", DDe = "\u2145", NDe = "\u2229\uFE00", IDe = "\u2041", PDe = "\u02C7", $De = "\u212D", BDe = "\u2A4D", FDe = "\u010C", zDe = "\u010D", VDe = "\xC7", UDe = "\xE7", qDe = "\u0108", QDe = "\u0109", YDe = "\u2230", WDe = "\u2A4C", GDe = "\u2A50", HDe = "\u010A", XDe = "\u010B", ZDe = "\xB8", jDe = "\xB8", KDe = "\u29B2", JDe = "\xA2", eNe = "\xB7", tNe = "\xB7", rNe = "\u{1D520}", nNe = "\u212D", iNe = "\u0427", sNe = "\u0447", aNe = "\u2713", oNe = "\u2713", lNe = "\u03A7", cNe = "\u03C7", uNe = "\u02C6", hNe = "\u2257", fNe = "\u21BA", dNe = "\u21BB", pNe = "\u229B", gNe = "\u229A", mNe = "\u229D", vNe = "\u2299", yNe = "\xAE", bNe = "\u24C8", xNe = "\u2296", wNe = "\u2295", ONe = "\u2297", kNe = "\u25CB", SNe = "\u29C3", TNe = "\u2257", CNe = "\u2A10", ENe = "\u2AEF", _Ne = "\u29C2", ANe = "\u2232", LNe = "\u201D", RNe = "\u2019", MNe = "\u2663", DNe = "\u2663", NNe = ":", INe = "\u2237", PNe = "\u2A74", $Ne = "\u2254", BNe = "\u2254", FNe = ",", zNe = "@", VNe = "\u2201", UNe = "\u2218", qNe = "\u2201", QNe = "\u2102", YNe = "\u2245", WNe = "\u2A6D", GNe = "\u2261", HNe = "\u222E", XNe = "\u222F", ZNe = "\u222E", jNe = "\u{1D554}", KNe = "\u2102", JNe = "\u2210", eIe = "\u2210", tIe = "\xA9", rIe = "\xA9", nIe = "\u2117", iIe = "\u2233", sIe = "\u21B5", aIe = "\u2717", oIe = "\u2A2F", lIe = "\u{1D49E}", cIe = "\u{1D4B8}", uIe = "\u2ACF", hIe = "\u2AD1", fIe = "\u2AD0", dIe = "\u2AD2", pIe = "\u22EF", gIe = "\u2938", mIe = "\u2935", vIe = "\u22DE", yIe = "\u22DF", bIe = "\u21B6", xIe = "\u293D", wIe = "\u2A48", OIe = "\u2A46", kIe = "\u224D", SIe = "\u222A", TIe = "\u22D3", CIe = "\u2A4A", EIe = "\u228D", _Ie = "\u2A45", AIe = "\u222A\uFE00", LIe = "\u21B7", RIe = "\u293C", MIe = "\u22DE", DIe = "\u22DF", NIe = "\u22CE", IIe = "\u22CF", PIe = "\xA4", $Ie = "\u21B6", BIe = "\u21B7", FIe = "\u22CE", zIe = "\u22CF", VIe = "\u2232", UIe = "\u2231", qIe = "\u232D", QIe = "\u2020", YIe = "\u2021", WIe = "\u2138", GIe = "\u2193", HIe = "\u21A1", XIe = "\u21D3", ZIe = "\u2010", jIe = "\u2AE4", KIe = "\u22A3", JIe = "\u290F", ePe = "\u02DD", tPe = "\u010E", rPe = "\u010F", nPe = "\u0414", iPe = "\u0434", sPe = "\u2021", aPe = "\u21CA", oPe = "\u2145", lPe = "\u2146", cPe = "\u2911", uPe = "\u2A77", hPe = "\xB0", fPe = "\u2207", dPe = "\u0394", pPe = "\u03B4", gPe = "\u29B1", mPe = "\u297F", vPe = "\u{1D507}", yPe = "\u{1D521}", bPe = "\u2965", xPe = "\u21C3", wPe = "\u21C2", OPe = "\xB4", kPe = "\u02D9", SPe = "\u02DD", TPe = "`", CPe = "\u02DC", EPe = "\u22C4", _Pe = "\u22C4", APe = "\u22C4", LPe = "\u2666", RPe = "\u2666", MPe = "\xA8", DPe = "\u2146", NPe = "\u03DD", IPe = "\u22F2", PPe = "\xF7", $Pe = "\xF7", BPe = "\u22C7", FPe = "\u22C7", zPe = "\u0402", VPe = "\u0452", UPe = "\u231E", qPe = "\u230D", QPe = "$", YPe = "\u{1D53B}", WPe = "\u{1D555}", GPe = "\xA8", HPe = "\u02D9", XPe = "\u20DC", ZPe = "\u2250", jPe = "\u2251", KPe = "\u2250", JPe = "\u2238", e$e = "\u2214", t$e = "\u22A1", r$e = "\u2306", n$e = "\u222F", i$e = "\xA8", s$e = "\u21D3", a$e = "\u21D0", o$e = "\u21D4", l$e = "\u2AE4", c$e = "\u27F8", u$e = "\u27FA", h$e = "\u27F9", f$e = "\u21D2", d$e = "\u22A8", p$e = "\u21D1", g$e = "\u21D5", m$e = "\u2225", v$e = "\u2913", y$e = "\u2193", b$e = "\u2193", x$e = "\u21D3", w$e = "\u21F5", O$e = "\u0311", k$e = "\u21CA", S$e = "\u21C3", T$e = "\u21C2", C$e = "\u2950", E$e = "\u295E", _$e = "\u2956", A$e = "\u21BD", L$e = "\u295F", R$e = "\u2957", M$e = "\u21C1", D$e = "\u21A7", N$e = "\u22A4", I$e = "\u2910", P$e = "\u231F", $$e = "\u230C", B$e = "\u{1D49F}", F$e = "\u{1D4B9}", z$e = "\u0405", V$e = "\u0455", U$e = "\u29F6", q$e = "\u0110", Q$e = "\u0111", Y$e = "\u22F1", W$e = "\u25BF", G$e = "\u25BE", H$e = "\u21F5", X$e = "\u296F", Z$e = "\u29A6", j$e = "\u040F", K$e = "\u045F", J$e = "\u27FF", eBe = "\xC9", tBe = "\xE9", rBe = "\u2A6E", nBe = "\u011A", iBe = "\u011B", sBe = "\xCA", aBe = "\xEA", oBe = "\u2256", lBe = "\u2255", cBe = "\u042D", uBe = "\u044D", hBe = "\u2A77", fBe = "\u0116", dBe = "\u0117", pBe = "\u2251", gBe = "\u2147", mBe = "\u2252", vBe = "\u{1D508}", yBe = "\u{1D522}", bBe = "\u2A9A", xBe = "\xC8", wBe = "\xE8", OBe = "\u2A96", kBe = "\u2A98", SBe = "\u2A99", TBe = "\u2208", CBe = "\u23E7", EBe = "\u2113", _Be = "\u2A95", ABe = "\u2A97", LBe = "\u0112", RBe = "\u0113", MBe = "\u2205", DBe = "\u2205", NBe = "\u25FB", IBe = "\u2205", PBe = "\u25AB", $Be = "\u2004", BBe = "\u2005", FBe = "\u2003", zBe = "\u014A", VBe = "\u014B", UBe = "\u2002", qBe = "\u0118", QBe = "\u0119", YBe = "\u{1D53C}", WBe = "\u{1D556}", GBe = "\u22D5", HBe = "\u29E3", XBe = "\u2A71", ZBe = "\u03B5", jBe = "\u0395", KBe = "\u03B5", JBe = "\u03F5", eFe = "\u2256", tFe = "\u2255", rFe = "\u2242", nFe = "\u2A96", iFe = "\u2A95", sFe = "\u2A75", aFe = "=", oFe = "\u2242", lFe = "\u225F", cFe = "\u21CC", uFe = "\u2261", hFe = "\u2A78", fFe = "\u29E5", dFe = "\u2971", pFe = "\u2253", gFe = "\u212F", mFe = "\u2130", vFe = "\u2250", yFe = "\u2A73", bFe = "\u2242", xFe = "\u0397", wFe = "\u03B7", OFe = "\xD0", kFe = "\xF0", SFe = "\xCB", TFe = "\xEB", CFe = "\u20AC", EFe = "!", _Fe = "\u2203", AFe = "\u2203", LFe = "\u2130", RFe = "\u2147", MFe = "\u2147", DFe = "\u2252", NFe = "\u0424", IFe = "\u0444", PFe = "\u2640", $Fe = "\uFB03", BFe = "\uFB00", FFe = "\uFB04", zFe = "\u{1D509}", VFe = "\u{1D523}", UFe = "\uFB01", qFe = "\u25FC", QFe = "\u25AA", YFe = "fj", WFe = "\u266D", GFe = "\uFB02", HFe = "\u25B1", XFe = "\u0192", ZFe = "\u{1D53D}", jFe = "\u{1D557}", KFe = "\u2200", JFe = "\u2200", eze = "\u22D4", tze = "\u2AD9", rze = "\u2131", nze = "\u2A0D", ize = "\xBD", sze = "\u2153", aze = "\xBC", oze = "\u2155", lze = "\u2159", cze = "\u215B", uze = "\u2154", hze = "\u2156", fze = "\xBE", dze = "\u2157", pze = "\u215C", gze = "\u2158", mze = "\u215A", vze = "\u215D", yze = "\u215E", bze = "\u2044", xze = "\u2322", wze = "\u{1D4BB}", Oze = "\u2131", kze = "\u01F5", Sze = "\u0393", Tze = "\u03B3", Cze = "\u03DC", Eze = "\u03DD", _ze = "\u2A86", Aze = "\u011E", Lze = "\u011F", Rze = "\u0122", Mze = "\u011C", Dze = "\u011D", Nze = "\u0413", Ize = "\u0433", Pze = "\u0120", $ze = "\u0121", Bze = "\u2265", Fze = "\u2267", zze = "\u2A8C", Vze = "\u22DB", Uze = "\u2265", qze = "\u2267", Qze = "\u2A7E", Yze = "\u2AA9", Wze = "\u2A7E", Gze = "\u2A80", Hze = "\u2A82", Xze = "\u2A84", Zze = "\u22DB\uFE00", jze = "\u2A94", Kze = "\u{1D50A}", Jze = "\u{1D524}", eVe = "\u226B", tVe = "\u22D9", rVe = "\u22D9", nVe = "\u2137", iVe = "\u0403", sVe = "\u0453", aVe = "\u2AA5", oVe = "\u2277", lVe = "\u2A92", cVe = "\u2AA4", uVe = "\u2A8A", hVe = "\u2A8A", fVe = "\u2A88", dVe = "\u2269", pVe = "\u2A88", gVe = "\u2269", mVe = "\u22E7", vVe = "\u{1D53E}", yVe = "\u{1D558}", bVe = "`", xVe = "\u2265", wVe = "\u22DB", OVe = "\u2267", kVe = "\u2AA2", SVe = "\u2277", TVe = "\u2A7E", CVe = "\u2273", EVe = "\u{1D4A2}", _Ve = "\u210A", AVe = "\u2273", LVe = "\u2A8E", RVe = "\u2A90", MVe = "\u2AA7", DVe = "\u2A7A", NVe = ">", IVe = ">", PVe = "\u226B", $Ve = "\u22D7", BVe = "\u2995", FVe = "\u2A7C", zVe = "\u2A86", VVe = "\u2978", UVe = "\u22D7", qVe = "\u22DB", QVe = "\u2A8C", YVe = "\u2277", WVe = "\u2273", GVe = "\u2269\uFE00", HVe = "\u2269\uFE00", XVe = "\u02C7", ZVe = "\u200A", jVe = "\xBD", KVe = "\u210B", JVe = "\u042A", eUe = "\u044A", tUe = "\u2948", rUe = "\u2194", nUe = "\u21D4", iUe = "\u21AD", sUe = "^", aUe = "\u210F", oUe = "\u0124", lUe = "\u0125", cUe = "\u2665", uUe = "\u2665", hUe = "\u2026", fUe = "\u22B9", dUe = "\u{1D525}", pUe = "\u210C", gUe = "\u210B", mUe = "\u2925", vUe = "\u2926", yUe = "\u21FF", bUe = "\u223B", xUe = "\u21A9", wUe = "\u21AA", OUe = "\u{1D559}", kUe = "\u210D", SUe = "\u2015", TUe = "\u2500", CUe = "\u{1D4BD}", EUe = "\u210B", _Ue = "\u210F", AUe = "\u0126", LUe = "\u0127", RUe = "\u224E", MUe = "\u224F", DUe = "\u2043", NUe = "\u2010", IUe = "\xCD", PUe = "\xED", $Ue = "\u2063", BUe = "\xCE", FUe = "\xEE", zUe = "\u0418", VUe = "\u0438", UUe = "\u0130", qUe = "\u0415", QUe = "\u0435", YUe = "\xA1", WUe = "\u21D4", GUe = "\u{1D526}", HUe = "\u2111", XUe = "\xCC", ZUe = "\xEC", jUe = "\u2148", KUe = "\u2A0C", JUe = "\u222D", eqe = "\u29DC", tqe = "\u2129", rqe = "\u0132", nqe = "\u0133", iqe = "\u012A", sqe = "\u012B", aqe = "\u2111", oqe = "\u2148", lqe = "\u2110", cqe = "\u2111", uqe = "\u0131", hqe = "\u2111", fqe = "\u22B7", dqe = "\u01B5", pqe = "\u21D2", gqe = "\u2105", mqe = "\u221E", vqe = "\u29DD", yqe = "\u0131", bqe = "\u22BA", xqe = "\u222B", wqe = "\u222C", Oqe = "\u2124", kqe = "\u222B", Sqe = "\u22BA", Tqe = "\u22C2", Cqe = "\u2A17", Eqe = "\u2A3C", _qe = "\u2063", Aqe = "\u2062", Lqe = "\u0401", Rqe = "\u0451", Mqe = "\u012E", Dqe = "\u012F", Nqe = "\u{1D540}", Iqe = "\u{1D55A}", Pqe = "\u0399", $qe = "\u03B9", Bqe = "\u2A3C", Fqe = "\xBF", zqe = "\u{1D4BE}", Vqe = "\u2110", Uqe = "\u2208", qqe = "\u22F5", Qqe = "\u22F9", Yqe = "\u22F4", Wqe = "\u22F3", Gqe = "\u2208", Hqe = "\u2062", Xqe = "\u0128", Zqe = "\u0129", jqe = "\u0406", Kqe = "\u0456", Jqe = "\xCF", eQe = "\xEF", tQe = "\u0134", rQe = "\u0135", nQe = "\u0419", iQe = "\u0439", sQe = "\u{1D50D}", aQe = "\u{1D527}", oQe = "\u0237", lQe = "\u{1D541}", cQe = "\u{1D55B}", uQe = "\u{1D4A5}", hQe = "\u{1D4BF}", fQe = "\u0408", dQe = "\u0458", pQe = "\u0404", gQe = "\u0454", mQe = "\u039A", vQe = "\u03BA", yQe = "\u03F0", bQe = "\u0136", xQe = "\u0137", wQe = "\u041A", OQe = "\u043A", kQe = "\u{1D50E}", SQe = "\u{1D528}", TQe = "\u0138", CQe = "\u0425", EQe = "\u0445", _Qe = "\u040C", AQe = "\u045C", LQe = "\u{1D542}", RQe = "\u{1D55C}", MQe = "\u{1D4A6}", DQe = "\u{1D4C0}", NQe = "\u21DA", IQe = "\u0139", PQe = "\u013A", $Qe = "\u29B4", BQe = "\u2112", FQe = "\u039B", zQe = "\u03BB", VQe = "\u27E8", UQe = "\u27EA", qQe = "\u2991", QQe = "\u27E8", YQe = "\u2A85", WQe = "\u2112", GQe = "\xAB", HQe = "\u21E4", XQe = "\u291F", ZQe = "\u2190", jQe = "\u219E", KQe = "\u21D0", JQe = "\u291D", eYe = "\u21A9", tYe = "\u21AB", rYe = "\u2939", nYe = "\u2973", iYe = "\u21A2", sYe = "\u2919", aYe = "\u291B", oYe = "\u2AAB", lYe = "\u2AAD", cYe = "\u2AAD\uFE00", uYe = "\u290C", hYe = "\u290E", fYe = "\u2772", dYe = "{", pYe = "[", gYe = "\u298B", mYe = "\u298F", vYe = "\u298D", yYe = "\u013D", bYe = "\u013E", xYe = "\u013B", wYe = "\u013C", OYe = "\u2308", kYe = "{", SYe = "\u041B", TYe = "\u043B", CYe = "\u2936", EYe = "\u201C", _Ye = "\u201E", AYe = "\u2967", LYe = "\u294B", RYe = "\u21B2", MYe = "\u2264", DYe = "\u2266", NYe = "\u27E8", IYe = "\u21E4", PYe = "\u2190", $Ye = "\u2190", BYe = "\u21D0", FYe = "\u21C6", zYe = "\u21A2", VYe = "\u2308", UYe = "\u27E6", qYe = "\u2961", QYe = "\u2959", YYe = "\u21C3", WYe = "\u230A", GYe = "\u21BD", HYe = "\u21BC", XYe = "\u21C7", ZYe = "\u2194", jYe = "\u2194", KYe = "\u21D4", JYe = "\u21C6", eWe = "\u21CB", tWe = "\u21AD", rWe = "\u294E", nWe = "\u21A4", iWe = "\u22A3", sWe = "\u295A", aWe = "\u22CB", oWe = "\u29CF", lWe = "\u22B2", cWe = "\u22B4", uWe = "\u2951", hWe = "\u2960", fWe = "\u2958", dWe = "\u21BF", pWe = "\u2952", gWe = "\u21BC", mWe = "\u2A8B", vWe = "\u22DA", yWe = "\u2264", bWe = "\u2266", xWe = "\u2A7D", wWe = "\u2AA8", OWe = "\u2A7D", kWe = "\u2A7F", SWe = "\u2A81", TWe = "\u2A83", CWe = "\u22DA\uFE00", EWe = "\u2A93", _We = "\u2A85", AWe = "\u22D6", LWe = "\u22DA", RWe = "\u2A8B", MWe = "\u22DA", DWe = "\u2266", NWe = "\u2276", IWe = "\u2276", PWe = "\u2AA1", $We = "\u2272", BWe = "\u2A7D", FWe = "\u2272", zWe = "\u297C", VWe = "\u230A", UWe = "\u{1D50F}", qWe = "\u{1D529}", QWe = "\u2276", YWe = "\u2A91", WWe = "\u2962", GWe = "\u21BD", HWe = "\u21BC", XWe = "\u296A", ZWe = "\u2584", jWe = "\u0409", KWe = "\u0459", JWe = "\u21C7", eGe = "\u226A", tGe = "\u22D8", rGe = "\u231E", nGe = "\u21DA", iGe = "\u296B", sGe = "\u25FA", aGe = "\u013F", oGe = "\u0140", lGe = "\u23B0", cGe = "\u23B0", uGe = "\u2A89", hGe = "\u2A89", fGe = "\u2A87", dGe = "\u2268", pGe = "\u2A87", gGe = "\u2268", mGe = "\u22E6", vGe = "\u27EC", yGe = "\u21FD", bGe = "\u27E6", xGe = "\u27F5", wGe = "\u27F5", OGe = "\u27F8", kGe = "\u27F7", SGe = "\u27F7", TGe = "\u27FA", CGe = "\u27FC", EGe = "\u27F6", _Ge = "\u27F6", AGe = "\u27F9", LGe = "\u21AB", RGe = "\u21AC", MGe = "\u2985", DGe = "\u{1D543}", NGe = "\u{1D55D}", IGe = "\u2A2D", PGe = "\u2A34", $Ge = "\u2217", BGe = "_", FGe = "\u2199", zGe = "\u2198", VGe = "\u25CA", UGe = "\u25CA", qGe = "\u29EB", QGe = "(", YGe = "\u2993", WGe = "\u21C6", GGe = "\u231F", HGe = "\u21CB", XGe = "\u296D", ZGe = "\u200E", jGe = "\u22BF", KGe = "\u2039", JGe = "\u{1D4C1}", eHe = "\u2112", tHe = "\u21B0", rHe = "\u21B0", nHe = "\u2272", iHe = "\u2A8D", sHe = "\u2A8F", aHe = "[", oHe = "\u2018", lHe = "\u201A", cHe = "\u0141", uHe = "\u0142", hHe = "\u2AA6", fHe = "\u2A79", dHe = "<", pHe = "<", gHe = "\u226A", mHe = "\u22D6", vHe = "\u22CB", yHe = "\u22C9", bHe = "\u2976", xHe = "\u2A7B", wHe = "\u25C3", OHe = "\u22B4", kHe = "\u25C2", SHe = "\u2996", THe = "\u294A", CHe = "\u2966", EHe = "\u2268\uFE00", _He = "\u2268\uFE00", AHe = "\xAF", LHe = "\u2642", RHe = "\u2720", MHe = "\u2720", DHe = "\u21A6", NHe = "\u21A6", IHe = "\u21A7", PHe = "\u21A4", $He = "\u21A5", BHe = "\u25AE", FHe = "\u2A29", zHe = "\u041C", VHe = "\u043C", UHe = "\u2014", qHe = "\u223A", QHe = "\u2221", YHe = "\u205F", WHe = "\u2133", GHe = "\u{1D510}", HHe = "\u{1D52A}", XHe = "\u2127", ZHe = "\xB5", jHe = "*", KHe = "\u2AF0", JHe = "\u2223", eXe = "\xB7", tXe = "\u229F", rXe = "\u2212", nXe = "\u2238", iXe = "\u2A2A", sXe = "\u2213", aXe = "\u2ADB", oXe = "\u2026", lXe = "\u2213", cXe = "\u22A7", uXe = "\u{1D544}", hXe = "\u{1D55E}", fXe = "\u2213", dXe = "\u{1D4C2}", pXe = "\u2133", gXe = "\u223E", mXe = "\u039C", vXe = "\u03BC", yXe = "\u22B8", bXe = "\u22B8", xXe = "\u2207", wXe = "\u0143", OXe = "\u0144", kXe = "\u2220\u20D2", SXe = "\u2249", TXe = "\u2A70\u0338", CXe = "\u224B\u0338", EXe = "\u0149", _Xe = "\u2249", AXe = "\u266E", LXe = "\u2115", RXe = "\u266E", MXe = "\xA0", DXe = "\u224E\u0338", NXe = "\u224F\u0338", IXe = "\u2A43", PXe = "\u0147", $Xe = "\u0148", BXe = "\u0145", FXe = "\u0146", zXe = "\u2247", VXe = "\u2A6D\u0338", UXe = "\u2A42", qXe = "\u041D", QXe = "\u043D", YXe = "\u2013", WXe = "\u2924", GXe = "\u2197", HXe = "\u21D7", XXe = "\u2197", ZXe = "\u2260", jXe = "\u2250\u0338", KXe = "\u200B", JXe = "\u200B", eZe = "\u200B", tZe = "\u200B", rZe = "\u2262", nZe = "\u2928", iZe = "\u2242\u0338", sZe = "\u226B", aZe = "\u226A", oZe = ` -`, lZe = "\u2204", cZe = "\u2204", uZe = "\u{1D511}", hZe = "\u{1D52B}", fZe = "\u2267\u0338", dZe = "\u2271", pZe = "\u2271", gZe = "\u2267\u0338", mZe = "\u2A7E\u0338", vZe = "\u2A7E\u0338", yZe = "\u22D9\u0338", bZe = "\u2275", xZe = "\u226B\u20D2", wZe = "\u226F", OZe = "\u226F", kZe = "\u226B\u0338", SZe = "\u21AE", TZe = "\u21CE", CZe = "\u2AF2", EZe = "\u220B", _Ze = "\u22FC", AZe = "\u22FA", LZe = "\u220B", RZe = "\u040A", MZe = "\u045A", DZe = "\u219A", NZe = "\u21CD", IZe = "\u2025", PZe = "\u2266\u0338", $Ze = "\u2270", BZe = "\u219A", FZe = "\u21CD", zZe = "\u21AE", VZe = "\u21CE", UZe = "\u2270", qZe = "\u2266\u0338", QZe = "\u2A7D\u0338", YZe = "\u2A7D\u0338", WZe = "\u226E", GZe = "\u22D8\u0338", HZe = "\u2274", XZe = "\u226A\u20D2", ZZe = "\u226E", jZe = "\u22EA", KZe = "\u22EC", JZe = "\u226A\u0338", eje = "\u2224", tje = "\u2060", rje = "\xA0", nje = "\u{1D55F}", ije = "\u2115", sje = "\u2AEC", aje = "\xAC", oje = "\u2262", lje = "\u226D", cje = "\u2226", uje = "\u2209", hje = "\u2260", fje = "\u2242\u0338", dje = "\u2204", pje = "\u226F", gje = "\u2271", mje = "\u2267\u0338", vje = "\u226B\u0338", yje = "\u2279", bje = "\u2A7E\u0338", xje = "\u2275", wje = "\u224E\u0338", Oje = "\u224F\u0338", kje = "\u2209", Sje = "\u22F5\u0338", Tje = "\u22F9\u0338", Cje = "\u2209", Eje = "\u22F7", _je = "\u22F6", Aje = "\u29CF\u0338", Lje = "\u22EA", Rje = "\u22EC", Mje = "\u226E", Dje = "\u2270", Nje = "\u2278", Ije = "\u226A\u0338", Pje = "\u2A7D\u0338", $je = "\u2274", Bje = "\u2AA2\u0338", Fje = "\u2AA1\u0338", zje = "\u220C", Vje = "\u220C", Uje = "\u22FE", qje = "\u22FD", Qje = "\u2280", Yje = "\u2AAF\u0338", Wje = "\u22E0", Gje = "\u220C", Hje = "\u29D0\u0338", Xje = "\u22EB", Zje = "\u22ED", jje = "\u228F\u0338", Kje = "\u22E2", Jje = "\u2290\u0338", eKe = "\u22E3", tKe = "\u2282\u20D2", rKe = "\u2288", nKe = "\u2281", iKe = "\u2AB0\u0338", sKe = "\u22E1", aKe = "\u227F\u0338", oKe = "\u2283\u20D2", lKe = "\u2289", cKe = "\u2241", uKe = "\u2244", hKe = "\u2247", fKe = "\u2249", dKe = "\u2224", pKe = "\u2226", gKe = "\u2226", mKe = "\u2AFD\u20E5", vKe = "\u2202\u0338", yKe = "\u2A14", bKe = "\u2280", xKe = "\u22E0", wKe = "\u2280", OKe = "\u2AAF\u0338", kKe = "\u2AAF\u0338", SKe = "\u2933\u0338", TKe = "\u219B", CKe = "\u21CF", EKe = "\u219D\u0338", _Ke = "\u219B", AKe = "\u21CF", LKe = "\u22EB", RKe = "\u22ED", MKe = "\u2281", DKe = "\u22E1", NKe = "\u2AB0\u0338", IKe = "\u{1D4A9}", PKe = "\u{1D4C3}", $Ke = "\u2224", BKe = "\u2226", FKe = "\u2241", zKe = "\u2244", VKe = "\u2244", UKe = "\u2224", qKe = "\u2226", QKe = "\u22E2", YKe = "\u22E3", WKe = "\u2284", GKe = "\u2AC5\u0338", HKe = "\u2288", XKe = "\u2282\u20D2", ZKe = "\u2288", jKe = "\u2AC5\u0338", KKe = "\u2281", JKe = "\u2AB0\u0338", eJe = "\u2285", tJe = "\u2AC6\u0338", rJe = "\u2289", nJe = "\u2283\u20D2", iJe = "\u2289", sJe = "\u2AC6\u0338", aJe = "\u2279", oJe = "\xD1", lJe = "\xF1", cJe = "\u2278", uJe = "\u22EA", hJe = "\u22EC", fJe = "\u22EB", dJe = "\u22ED", pJe = "\u039D", gJe = "\u03BD", mJe = "#", vJe = "\u2116", yJe = "\u2007", bJe = "\u224D\u20D2", xJe = "\u22AC", wJe = "\u22AD", OJe = "\u22AE", kJe = "\u22AF", SJe = "\u2265\u20D2", TJe = ">\u20D2", CJe = "\u2904", EJe = "\u29DE", _Je = "\u2902", AJe = "\u2264\u20D2", LJe = "<\u20D2", RJe = "\u22B4\u20D2", MJe = "\u2903", DJe = "\u22B5\u20D2", NJe = "\u223C\u20D2", IJe = "\u2923", PJe = "\u2196", $Je = "\u21D6", BJe = "\u2196", FJe = "\u2927", zJe = "\xD3", VJe = "\xF3", UJe = "\u229B", qJe = "\xD4", QJe = "\xF4", YJe = "\u229A", WJe = "\u041E", GJe = "\u043E", HJe = "\u229D", XJe = "\u0150", ZJe = "\u0151", jJe = "\u2A38", KJe = "\u2299", JJe = "\u29BC", eet = "\u0152", tet = "\u0153", ret = "\u29BF", net = "\u{1D512}", iet = "\u{1D52C}", set = "\u02DB", aet = "\xD2", oet = "\xF2", cet = "\u29C1", uet = "\u29B5", het = "\u03A9", fet = "\u222E", det = "\u21BA", pet = "\u29BE", get = "\u29BB", met = "\u203E", vet = "\u29C0", yet = "\u014C", bet = "\u014D", xet = "\u03A9", wet = "\u03C9", Oet = "\u039F", ket = "\u03BF", Tet = "\u29B6", Cet = "\u2296", Eet = "\u{1D546}", _et = "\u{1D560}", Aet = "\u29B7", Let = "\u201C", Ret = "\u2018", Met = "\u29B9", Det = "\u2295", Net = "\u21BB", Iet = "\u2A54", Pet = "\u2228", $et = "\u2A5D", Bet = "\u2134", Fet = "\u2134", zet = "\xAA", Vet = "\xBA", Uet = "\u22B6", qet = "\u2A56", Qet = "\u2A57", Yet = "\u2A5B", Wet = "\u24C8", Get = "\u{1D4AA}", Het = "\u2134", Xet = "\xD8", Zet = "\xF8", jet = "\u2298", Ket = "\xD5", Jet = "\xF5", ett = "\u2A36", ttt = "\u2A37", rtt = "\u2297", ntt = "\xD6", itt = "\xF6", stt = "\u233D", att = "\u203E", ott = "\u23DE", ltt = "\u23B4", ctt = "\u23DC", utt = "\xB6", htt = "\u2225", ftt = "\u2225", dtt = "\u2AF3", ptt = "\u2AFD", gtt = "\u2202", mtt = "\u2202", vtt = "\u041F", ytt = "\u043F", btt = "%", xtt = ".", wtt = "\u2030", Ott = "\u22A5", ktt = "\u2031", Stt = "\u{1D513}", Ttt = "\u{1D52D}", Ctt = "\u03A6", Ett = "\u03C6", _tt = "\u03D5", Att = "\u2133", Ltt = "\u260E", Rtt = "\u03A0", Mtt = "\u03C0", Dtt = "\u22D4", Ntt = "\u03D6", Itt = "\u210F", Ptt = "\u210E", $tt = "\u210F", Btt = "\u2A23", Ftt = "\u229E", ztt = "\u2A22", Vtt = "+", Utt = "\u2214", qtt = "\u2A25", Qtt = "\u2A72", Ytt = "\xB1", Wtt = "\xB1", Gtt = "\u2A26", Htt = "\u2A27", Xtt = "\xB1", Ztt = "\u210C", jtt = "\u2A15", Ktt = "\u{1D561}", Jtt = "\u2119", ert = "\xA3", trt = "\u2AB7", rrt = "\u2ABB", nrt = "\u227A", irt = "\u227C", srt = "\u2AB7", art = "\u227A", ort = "\u227C", lrt = "\u227A", crt = "\u2AAF", urt = "\u227C", hrt = "\u227E", frt = "\u2AAF", drt = "\u2AB9", prt = "\u2AB5", grt = "\u22E8", mrt = "\u2AAF", vrt = "\u2AB3", yrt = "\u227E", brt = "\u2032", xrt = "\u2033", wrt = "\u2119", Ort = "\u2AB9", krt = "\u2AB5", Srt = "\u22E8", Trt = "\u220F", Crt = "\u220F", Ert = "\u232E", _rt = "\u2312", Art = "\u2313", Lrt = "\u221D", Rrt = "\u221D", Mrt = "\u2237", Drt = "\u221D", Nrt = "\u227E", Irt = "\u22B0", Prt = "\u{1D4AB}", $rt = "\u{1D4C5}", Brt = "\u03A8", Frt = "\u03C8", zrt = "\u2008", Vrt = "\u{1D514}", Urt = "\u{1D52E}", qrt = "\u2A0C", Qrt = "\u{1D562}", Yrt = "\u211A", Wrt = "\u2057", Grt = "\u{1D4AC}", Hrt = "\u{1D4C6}", Xrt = "\u210D", Zrt = "\u2A16", jrt = "?", Krt = "\u225F", Jrt = '"', ent = '"', tnt = "\u21DB", rnt = "\u223D\u0331", nnt = "\u0154", int = "\u0155", snt = "\u221A", ant = "\u29B3", ont = "\u27E9", lnt = "\u27EB", cnt = "\u2992", unt = "\u29A5", hnt = "\u27E9", fnt = "\xBB", dnt = "\u2975", pnt = "\u21E5", gnt = "\u2920", mnt = "\u2933", vnt = "\u2192", ynt = "\u21A0", bnt = "\u21D2", xnt = "\u291E", wnt = "\u21AA", Ont = "\u21AC", knt = "\u2945", Snt = "\u2974", Tnt = "\u2916", Cnt = "\u21A3", Ent = "\u219D", _nt = "\u291A", Ant = "\u291C", Lnt = "\u2236", Rnt = "\u211A", Mnt = "\u290D", Dnt = "\u290F", Nnt = "\u2910", Int = "\u2773", Pnt = "}", $nt = "]", Bnt = "\u298C", Fnt = "\u298E", znt = "\u2990", Vnt = "\u0158", Unt = "\u0159", qnt = "\u0156", Qnt = "\u0157", Ynt = "\u2309", Wnt = "}", Gnt = "\u0420", Hnt = "\u0440", Xnt = "\u2937", Znt = "\u2969", jnt = "\u201D", Knt = "\u201D", Jnt = "\u21B3", eit = "\u211C", tit = "\u211B", rit = "\u211C", nit = "\u211D", iit = "\u211C", sit = "\u25AD", ait = "\xAE", oit = "\xAE", lit = "\u220B", cit = "\u21CB", uit = "\u296F", hit = "\u297D", fit = "\u230B", dit = "\u{1D52F}", pit = "\u211C", git = "\u2964", mit = "\u21C1", vit = "\u21C0", yit = "\u296C", bit = "\u03A1", xit = "\u03C1", wit = "\u03F1", Oit = "\u27E9", kit = "\u21E5", Sit = "\u2192", Tit = "\u2192", Cit = "\u21D2", Eit = "\u21C4", _it = "\u21A3", Ait = "\u2309", Lit = "\u27E7", Rit = "\u295D", Mit = "\u2955", Dit = "\u21C2", Nit = "\u230B", Iit = "\u21C1", Pit = "\u21C0", $it = "\u21C4", Bit = "\u21CC", Fit = "\u21C9", zit = "\u219D", Vit = "\u21A6", Uit = "\u22A2", qit = "\u295B", Qit = "\u22CC", Yit = "\u29D0", Wit = "\u22B3", Git = "\u22B5", Hit = "\u294F", Xit = "\u295C", Zit = "\u2954", jit = "\u21BE", Kit = "\u2953", Jit = "\u21C0", est = "\u02DA", tst = "\u2253", rst = "\u21C4", nst = "\u21CC", ist = "\u200F", sst = "\u23B1", ast = "\u23B1", ost = "\u2AEE", lst = "\u27ED", cst = "\u21FE", ust = "\u27E7", hst = "\u2986", fst = "\u{1D563}", dst = "\u211D", pst = "\u2A2E", gst = "\u2A35", mst = "\u2970", vst = ")", yst = "\u2994", bst = "\u2A12", xst = "\u21C9", wst = "\u21DB", Ost = "\u203A", kst = "\u{1D4C7}", Sst = "\u211B", Tst = "\u21B1", Cst = "\u21B1", Est = "]", _st = "\u2019", Ast = "\u2019", Lst = "\u22CC", Rst = "\u22CA", Mst = "\u25B9", Dst = "\u22B5", Nst = "\u25B8", Ist = "\u29CE", Pst = "\u29F4", $st = "\u2968", Bst = "\u211E", Fst = "\u015A", zst = "\u015B", Vst = "\u201A", Ust = "\u2AB8", qst = "\u0160", Qst = "\u0161", Yst = "\u2ABC", Wst = "\u227B", Gst = "\u227D", Hst = "\u2AB0", Xst = "\u2AB4", Zst = "\u015E", jst = "\u015F", Kst = "\u015C", Jst = "\u015D", eat = "\u2ABA", tat = "\u2AB6", rat = "\u22E9", nat = "\u2A13", iat = "\u227F", sat = "\u0421", aat = "\u0441", oat = "\u22A1", lat = "\u22C5", cat = "\u2A66", uat = "\u2925", hat = "\u2198", fat = "\u21D8", dat = "\u2198", pat = "\xA7", gat = ";", mat = "\u2929", vat = "\u2216", yat = "\u2216", bat = "\u2736", xat = "\u{1D516}", wat = "\u{1D530}", Oat = "\u2322", kat = "\u266F", Sat = "\u0429", Tat = "\u0449", Cat = "\u0428", Eat = "\u0448", _at = "\u2193", Aat = "\u2190", Lat = "\u2223", Rat = "\u2225", Mat = "\u2192", Dat = "\u2191", Nat = "\xAD", Iat = "\u03A3", Pat = "\u03C3", $at = "\u03C2", Bat = "\u03C2", Fat = "\u223C", zat = "\u2A6A", Vat = "\u2243", Uat = "\u2243", qat = "\u2A9E", Qat = "\u2AA0", Yat = "\u2A9D", Wat = "\u2A9F", Gat = "\u2246", Hat = "\u2A24", Xat = "\u2972", Zat = "\u2190", jat = "\u2218", Kat = "\u2216", Jat = "\u2A33", eot = "\u29E4", tot = "\u2223", rot = "\u2323", not = "\u2AAA", iot = "\u2AAC", sot = "\u2AAC\uFE00", aot = "\u042C", oot = "\u044C", lot = "\u233F", cot = "\u29C4", uot = "/", hot = "\u{1D54A}", fot = "\u{1D564}", dot = "\u2660", pot = "\u2660", got = "\u2225", mot = "\u2293", vot = "\u2293\uFE00", yot = "\u2294", bot = "\u2294\uFE00", xot = "\u221A", wot = "\u228F", Oot = "\u2291", kot = "\u228F", Sot = "\u2291", Tot = "\u2290", Cot = "\u2292", Eot = "\u2290", _ot = "\u2292", Aot = "\u25A1", Lot = "\u25A1", Rot = "\u2293", Mot = "\u228F", Dot = "\u2291", Not = "\u2290", Iot = "\u2292", Pot = "\u2294", $ot = "\u25AA", Bot = "\u25A1", Fot = "\u25AA", zot = "\u2192", Vot = "\u{1D4AE}", Uot = "\u{1D4C8}", qot = "\u2216", Qot = "\u2323", Yot = "\u22C6", Wot = "\u22C6", Got = "\u2606", Hot = "\u2605", Xot = "\u03F5", Zot = "\u03D5", jot = "\xAF", Kot = "\u2282", Jot = "\u22D0", elt = "\u2ABD", tlt = "\u2AC5", rlt = "\u2286", nlt = "\u2AC3", ilt = "\u2AC1", slt = "\u2ACB", alt = "\u228A", olt = "\u2ABF", llt = "\u2979", clt = "\u2282", ult = "\u22D0", hlt = "\u2286", flt = "\u2AC5", dlt = "\u2286", plt = "\u228A", glt = "\u2ACB", mlt = "\u2AC7", vlt = "\u2AD5", ylt = "\u2AD3", blt = "\u2AB8", xlt = "\u227B", wlt = "\u227D", Olt = "\u227B", klt = "\u2AB0", Slt = "\u227D", Tlt = "\u227F", Clt = "\u2AB0", Elt = "\u2ABA", _lt = "\u2AB6", Alt = "\u22E9", Llt = "\u227F", Rlt = "\u220B", Mlt = "\u2211", Dlt = "\u2211", Nlt = "\u266A", Ilt = "\xB9", Plt = "\xB2", $lt = "\xB3", Blt = "\u2283", Flt = "\u22D1", zlt = "\u2ABE", Vlt = "\u2AD8", Ult = "\u2AC6", qlt = "\u2287", Qlt = "\u2AC4", Ylt = "\u2283", Wlt = "\u2287", Glt = "\u27C9", Hlt = "\u2AD7", Xlt = "\u297B", Zlt = "\u2AC2", jlt = "\u2ACC", Klt = "\u228B", Jlt = "\u2AC0", ect = "\u2283", tct = "\u22D1", rct = "\u2287", nct = "\u2AC6", ict = "\u228B", sct = "\u2ACC", act = "\u2AC8", oct = "\u2AD4", lct = "\u2AD6", cct = "\u2926", uct = "\u2199", hct = "\u21D9", fct = "\u2199", dct = "\u292A", pct = "\xDF", gct = " ", mct = "\u2316", vct = "\u03A4", yct = "\u03C4", bct = "\u23B4", xct = "\u0164", wct = "\u0165", Oct = "\u0162", kct = "\u0163", Sct = "\u0422", Tct = "\u0442", Cct = "\u20DB", Ect = "\u2315", _ct = "\u{1D517}", Act = "\u{1D531}", Lct = "\u2234", Rct = "\u2234", Mct = "\u2234", Dct = "\u0398", Nct = "\u03B8", Ict = "\u03D1", Pct = "\u03D1", $ct = "\u2248", Bct = "\u223C", Fct = "\u205F\u200A", zct = "\u2009", Vct = "\u2009", Uct = "\u2248", qct = "\u223C", Qct = "\xDE", Yct = "\xFE", Wct = "\u02DC", Gct = "\u223C", Hct = "\u2243", Xct = "\u2245", Zct = "\u2248", jct = "\u2A31", Kct = "\u22A0", Jct = "\xD7", eut = "\u2A30", tut = "\u222D", rut = "\u2928", nut = "\u2336", iut = "\u2AF1", sut = "\u22A4", aut = "\u{1D54B}", out = "\u{1D565}", lut = "\u2ADA", cut = "\u2929", uut = "\u2034", hut = "\u2122", fut = "\u2122", dut = "\u25B5", put = "\u25BF", gut = "\u25C3", mut = "\u22B4", vut = "\u225C", yut = "\u25B9", but = "\u22B5", xut = "\u25EC", wut = "\u225C", Out = "\u2A3A", kut = "\u20DB", Sut = "\u2A39", Tut = "\u29CD", Cut = "\u2A3B", Eut = "\u23E2", _ut = "\u{1D4AF}", Aut = "\u{1D4C9}", Lut = "\u0426", Rut = "\u0446", Mut = "\u040B", Dut = "\u045B", Nut = "\u0166", Iut = "\u0167", Put = "\u226C", $ut = "\u219E", But = "\u21A0", Fut = "\xDA", zut = "\xFA", Vut = "\u2191", Uut = "\u219F", qut = "\u21D1", Qut = "\u2949", Yut = "\u040E", Wut = "\u045E", Gut = "\u016C", Hut = "\u016D", Xut = "\xDB", Zut = "\xFB", jut = "\u0423", Kut = "\u0443", Jut = "\u21C5", eht = "\u0170", tht = "\u0171", rht = "\u296E", nht = "\u297E", iht = "\u{1D518}", sht = "\u{1D532}", aht = "\xD9", oht = "\xF9", lht = "\u2963", cht = "\u21BF", uht = "\u21BE", hht = "\u2580", fht = "\u231C", dht = "\u231C", pht = "\u230F", ght = "\u25F8", mht = "\u016A", vht = "\u016B", yht = "\xA8", bht = "_", xht = "\u23DF", wht = "\u23B5", Oht = "\u23DD", kht = "\u22C3", Sht = "\u228E", Tht = "\u0172", Cht = "\u0173", Eht = "\u{1D54C}", _ht = "\u{1D566}", Aht = "\u2912", Lht = "\u2191", Rht = "\u2191", Mht = "\u21D1", Dht = "\u21C5", Nht = "\u2195", Iht = "\u2195", Pht = "\u21D5", $ht = "\u296E", Bht = "\u21BF", Fht = "\u21BE", zht = "\u228E", Vht = "\u2196", Uht = "\u2197", qht = "\u03C5", Qht = "\u03D2", Yht = "\u03D2", Wht = "\u03A5", Ght = "\u03C5", Hht = "\u21A5", Xht = "\u22A5", Zht = "\u21C8", jht = "\u231D", Kht = "\u231D", Jht = "\u230E", eft = "\u016E", tft = "\u016F", rft = "\u25F9", nft = "\u{1D4B0}", ift = "\u{1D4CA}", sft = "\u22F0", aft = "\u0168", oft = "\u0169", lft = "\u25B5", cft = "\u25B4", uft = "\u21C8", hft = "\xDC", fft = "\xFC", dft = "\u29A7", pft = "\u299C", gft = "\u03F5", mft = "\u03F0", vft = "\u2205", yft = "\u03D5", bft = "\u03D6", xft = "\u221D", wft = "\u2195", Oft = "\u21D5", kft = "\u03F1", Sft = "\u03C2", Tft = "\u228A\uFE00", Cft = "\u2ACB\uFE00", Eft = "\u228B\uFE00", _ft = "\u2ACC\uFE00", Aft = "\u03D1", Lft = "\u22B2", Rft = "\u22B3", Mft = "\u2AE8", Dft = "\u2AEB", Nft = "\u2AE9", Ift = "\u0412", Pft = "\u0432", $ft = "\u22A2", Bft = "\u22A8", Fft = "\u22A9", zft = "\u22AB", Vft = "\u2AE6", Uft = "\u22BB", qft = "\u2228", Qft = "\u22C1", Yft = "\u225A", Wft = "\u22EE", Gft = "|", Hft = "\u2016", Xft = "|", Zft = "\u2016", jft = "\u2223", Kft = "|", Jft = "\u2758", edt = "\u2240", tdt = "\u200A", rdt = "\u{1D519}", ndt = "\u{1D533}", idt = "\u22B2", sdt = "\u2282\u20D2", adt = "\u2283\u20D2", odt = "\u{1D54D}", ldt = "\u{1D567}", cdt = "\u221D", udt = "\u22B3", hdt = "\u{1D4B1}", fdt = "\u{1D4CB}", ddt = "\u2ACB\uFE00", pdt = "\u228A\uFE00", gdt = "\u2ACC\uFE00", mdt = "\u228B\uFE00", vdt = "\u22AA", ydt = "\u299A", bdt = "\u0174", xdt = "\u0175", wdt = "\u2A5F", Odt = "\u2227", kdt = "\u22C0", Sdt = "\u2259", Tdt = "\u2118", Cdt = "\u{1D51A}", Edt = "\u{1D534}", _dt = "\u{1D54E}", Adt = "\u{1D568}", Ldt = "\u2118", Rdt = "\u2240", Mdt = "\u2240", Ddt = "\u{1D4B2}", Ndt = "\u{1D4CC}", Idt = "\u22C2", Pdt = "\u25EF", $dt = "\u22C3", Bdt = "\u25BD", Fdt = "\u{1D51B}", zdt = "\u{1D535}", Vdt = "\u27F7", Udt = "\u27FA", qdt = "\u039E", Qdt = "\u03BE", Ydt = "\u27F5", Wdt = "\u27F8", Gdt = "\u27FC", Hdt = "\u22FB", Xdt = "\u2A00", Zdt = "\u{1D54F}", jdt = "\u{1D569}", Kdt = "\u2A01", Jdt = "\u2A02", e0t = "\u27F6", t0t = "\u27F9", r0t = "\u{1D4B3}", n0t = "\u{1D4CD}", i0t = "\u2A06", s0t = "\u2A04", a0t = "\u25B3", o0t = "\u22C1", l0t = "\u22C0", c0t = "\xDD", u0t = "\xFD", h0t = "\u042F", f0t = "\u044F", d0t = "\u0176", p0t = "\u0177", g0t = "\u042B", m0t = "\u044B", v0t = "\xA5", y0t = "\u{1D51C}", b0t = "\u{1D536}", x0t = "\u0407", w0t = "\u0457", O0t = "\u{1D550}", k0t = "\u{1D56A}", S0t = "\u{1D4B4}", T0t = "\u{1D4CE}", C0t = "\u042E", E0t = "\u044E", _0t = "\xFF", A0t = "\u0178", L0t = "\u0179", R0t = "\u017A", M0t = "\u017D", D0t = "\u017E", N0t = "\u0417", I0t = "\u0437", P0t = "\u017B", $0t = "\u017C", B0t = "\u2128", F0t = "\u200B", z0t = "\u0396", V0t = "\u03B6", U0t = "\u{1D537}", q0t = "\u2128", Q0t = "\u0416", Y0t = "\u0436", W0t = "\u21DD", G0t = "\u{1D56B}", H0t = "\u2124", X0t = "\u{1D4B5}", Z0t = "\u{1D4CF}", j0t = "\u200D", K0t = "\u200C", J0t = { - Aacute: NLe, - aacute: ILe, - Abreve: PLe, - abreve: $Le, - ac: BLe, - acd: FLe, - acE: zLe, - Acirc: VLe, - acirc: ULe, - acute: qLe, - Acy: QLe, - acy: YLe, - AElig: WLe, - aelig: GLe, - af: HLe, - Afr: XLe, - afr: ZLe, - Agrave: jLe, - agrave: KLe, - alefsym: JLe, - aleph: e9e, - Alpha: t9e, - alpha: r9e, - Amacr: n9e, - amacr: i9e, - amalg: s9e, - amp: a9e, - AMP: o9e, - andand: l9e, - And: c9e, - and: u9e, - andd: h9e, - andslope: f9e, - andv: d9e, - ang: p9e, - ange: g9e, - angle: m9e, - angmsdaa: v9e, - angmsdab: y9e, - angmsdac: b9e, - angmsdad: x9e, - angmsdae: w9e, - angmsdaf: O9e, - angmsdag: k9e, - angmsdah: S9e, - angmsd: T9e, - angrt: C9e, - angrtvb: E9e, - angrtvbd: _9e, - angsph: A9e, - angst: L9e, - angzarr: R9e, - Aogon: M9e, - aogon: D9e, - Aopf: N9e, - aopf: I9e, - apacir: P9e, - ap: $9e, - apE: B9e, - ape: F9e, - apid: z9e, - apos: V9e, - ApplyFunction: U9e, - approx: q9e, - approxeq: Q9e, - Aring: Y9e, - aring: W9e, - Ascr: G9e, - ascr: H9e, - Assign: X9e, - ast: Z9e, - asymp: j9e, - asympeq: K9e, - Atilde: J9e, - atilde: eRe, - Auml: tRe, - auml: rRe, - awconint: nRe, - awint: iRe, - backcong: sRe, - backepsilon: aRe, - backprime: oRe, - backsim: lRe, - backsimeq: cRe, - Backslash: uRe, - Barv: hRe, - barvee: fRe, - barwed: dRe, - Barwed: pRe, - barwedge: gRe, - bbrk: mRe, - bbrktbrk: vRe, - bcong: yRe, - Bcy: bRe, - bcy: xRe, - bdquo: wRe, - becaus: ORe, - because: kRe, - Because: SRe, - bemptyv: TRe, - bepsi: CRe, - bernou: ERe, - Bernoullis: _Re, - Beta: ARe, - beta: LRe, - beth: RRe, - between: MRe, - Bfr: DRe, - bfr: NRe, - bigcap: IRe, - bigcirc: PRe, - bigcup: $Re, - bigodot: BRe, - bigoplus: FRe, - bigotimes: zRe, - bigsqcup: VRe, - bigstar: URe, - bigtriangledown: qRe, - bigtriangleup: QRe, - biguplus: YRe, - bigvee: WRe, - bigwedge: GRe, - bkarow: HRe, - blacklozenge: XRe, - blacksquare: ZRe, - blacktriangle: jRe, - blacktriangledown: KRe, - blacktriangleleft: JRe, - blacktriangleright: eMe, - blank: tMe, - blk12: rMe, - blk14: nMe, - blk34: iMe, - block: sMe, - bne: aMe, - bnequiv: oMe, - bNot: lMe, - bnot: cMe, - Bopf: uMe, - bopf: hMe, - bot: fMe, - bottom: dMe, - bowtie: pMe, - boxbox: gMe, - boxdl: mMe, - boxdL: vMe, - boxDl: yMe, - boxDL: bMe, - boxdr: xMe, - boxdR: wMe, - boxDr: OMe, - boxDR: kMe, - boxh: SMe, - boxH: TMe, - boxhd: CMe, - boxHd: EMe, - boxhD: _Me, - boxHD: AMe, - boxhu: LMe, - boxHu: RMe, - boxhU: MMe, - boxHU: DMe, - boxminus: NMe, - boxplus: IMe, - boxtimes: PMe, - boxul: $Me, - boxuL: BMe, - boxUl: FMe, - boxUL: zMe, - boxur: VMe, - boxuR: UMe, - boxUr: qMe, - boxUR: QMe, - boxv: YMe, - boxV: WMe, - boxvh: GMe, - boxvH: HMe, - boxVh: XMe, - boxVH: ZMe, - boxvl: jMe, - boxvL: KMe, - boxVl: JMe, - boxVL: eDe, - boxvr: tDe, - boxvR: rDe, - boxVr: nDe, - boxVR: iDe, - bprime: sDe, - breve: aDe, - Breve: oDe, - brvbar: lDe, - bscr: cDe, - Bscr: uDe, - bsemi: hDe, - bsim: fDe, - bsime: dDe, - bsolb: pDe, - bsol: gDe, - bsolhsub: mDe, - bull: vDe, - bullet: yDe, - bump: bDe, - bumpE: xDe, - bumpe: wDe, - Bumpeq: ODe, - bumpeq: kDe, - Cacute: SDe, - cacute: TDe, - capand: CDe, - capbrcup: EDe, - capcap: _De, - cap: ADe, - Cap: LDe, - capcup: RDe, - capdot: MDe, - CapitalDifferentialD: DDe, - caps: NDe, - caret: IDe, - caron: PDe, - Cayleys: $De, - ccaps: BDe, - Ccaron: FDe, - ccaron: zDe, - Ccedil: VDe, - ccedil: UDe, - Ccirc: qDe, - ccirc: QDe, - Cconint: YDe, - ccups: WDe, - ccupssm: GDe, - Cdot: HDe, - cdot: XDe, - cedil: ZDe, - Cedilla: jDe, - cemptyv: KDe, - cent: JDe, - centerdot: eNe, - CenterDot: tNe, - cfr: rNe, - Cfr: nNe, - CHcy: iNe, - chcy: sNe, - check: aNe, - checkmark: oNe, - Chi: lNe, - chi: cNe, - circ: uNe, - circeq: hNe, - circlearrowleft: fNe, - circlearrowright: dNe, - circledast: pNe, - circledcirc: gNe, - circleddash: mNe, - CircleDot: vNe, - circledR: yNe, - circledS: bNe, - CircleMinus: xNe, - CirclePlus: wNe, - CircleTimes: ONe, - cir: kNe, - cirE: SNe, - cire: TNe, - cirfnint: CNe, - cirmid: ENe, - cirscir: _Ne, - ClockwiseContourIntegral: ANe, - CloseCurlyDoubleQuote: LNe, - CloseCurlyQuote: RNe, - clubs: MNe, - clubsuit: DNe, - colon: NNe, - Colon: INe, - Colone: PNe, - colone: $Ne, - coloneq: BNe, - comma: FNe, - commat: zNe, - comp: VNe, - compfn: UNe, - complement: qNe, - complexes: QNe, - cong: YNe, - congdot: WNe, - Congruent: GNe, - conint: HNe, - Conint: XNe, - ContourIntegral: ZNe, - copf: jNe, - Copf: KNe, - coprod: JNe, - Coproduct: eIe, - copy: tIe, - COPY: rIe, - copysr: nIe, - CounterClockwiseContourIntegral: iIe, - crarr: sIe, - cross: aIe, - Cross: oIe, - Cscr: lIe, - cscr: cIe, - csub: uIe, - csube: hIe, - csup: fIe, - csupe: dIe, - ctdot: pIe, - cudarrl: gIe, - cudarrr: mIe, - cuepr: vIe, - cuesc: yIe, - cularr: bIe, - cularrp: xIe, - cupbrcap: wIe, - cupcap: OIe, - CupCap: kIe, - cup: SIe, - Cup: TIe, - cupcup: CIe, - cupdot: EIe, - cupor: _Ie, - cups: AIe, - curarr: LIe, - curarrm: RIe, - curlyeqprec: MIe, - curlyeqsucc: DIe, - curlyvee: NIe, - curlywedge: IIe, - curren: PIe, - curvearrowleft: $Ie, - curvearrowright: BIe, - cuvee: FIe, - cuwed: zIe, - cwconint: VIe, - cwint: UIe, - cylcty: qIe, - dagger: QIe, - Dagger: YIe, - daleth: WIe, - darr: GIe, - Darr: HIe, - dArr: XIe, - dash: ZIe, - Dashv: jIe, - dashv: KIe, - dbkarow: JIe, - dblac: ePe, - Dcaron: tPe, - dcaron: rPe, - Dcy: nPe, - dcy: iPe, - ddagger: sPe, - ddarr: aPe, - DD: oPe, - dd: lPe, - DDotrahd: cPe, - ddotseq: uPe, - deg: hPe, - Del: fPe, - Delta: dPe, - delta: pPe, - demptyv: gPe, - dfisht: mPe, - Dfr: vPe, - dfr: yPe, - dHar: bPe, - dharl: xPe, - dharr: wPe, - DiacriticalAcute: OPe, - DiacriticalDot: kPe, - DiacriticalDoubleAcute: SPe, - DiacriticalGrave: TPe, - DiacriticalTilde: CPe, - diam: EPe, - diamond: _Pe, - Diamond: APe, - diamondsuit: LPe, - diams: RPe, - die: MPe, - DifferentialD: DPe, - digamma: NPe, - disin: IPe, - div: PPe, - divide: $Pe, - divideontimes: BPe, - divonx: FPe, - DJcy: zPe, - djcy: VPe, - dlcorn: UPe, - dlcrop: qPe, - dollar: QPe, - Dopf: YPe, - dopf: WPe, - Dot: GPe, - dot: HPe, - DotDot: XPe, - doteq: ZPe, - doteqdot: jPe, - DotEqual: KPe, - dotminus: JPe, - dotplus: e$e, - dotsquare: t$e, - doublebarwedge: r$e, - DoubleContourIntegral: n$e, - DoubleDot: i$e, - DoubleDownArrow: s$e, - DoubleLeftArrow: a$e, - DoubleLeftRightArrow: o$e, - DoubleLeftTee: l$e, - DoubleLongLeftArrow: c$e, - DoubleLongLeftRightArrow: u$e, - DoubleLongRightArrow: h$e, - DoubleRightArrow: f$e, - DoubleRightTee: d$e, - DoubleUpArrow: p$e, - DoubleUpDownArrow: g$e, - DoubleVerticalBar: m$e, - DownArrowBar: v$e, - downarrow: y$e, - DownArrow: b$e, - Downarrow: x$e, - DownArrowUpArrow: w$e, - DownBreve: O$e, - downdownarrows: k$e, - downharpoonleft: S$e, - downharpoonright: T$e, - DownLeftRightVector: C$e, - DownLeftTeeVector: E$e, - DownLeftVectorBar: _$e, - DownLeftVector: A$e, - DownRightTeeVector: L$e, - DownRightVectorBar: R$e, - DownRightVector: M$e, - DownTeeArrow: D$e, - DownTee: N$e, - drbkarow: I$e, - drcorn: P$e, - drcrop: $$e, - Dscr: B$e, - dscr: F$e, - DScy: z$e, - dscy: V$e, - dsol: U$e, - Dstrok: q$e, - dstrok: Q$e, - dtdot: Y$e, - dtri: W$e, - dtrif: G$e, - duarr: H$e, - duhar: X$e, - dwangle: Z$e, - DZcy: j$e, - dzcy: K$e, - dzigrarr: J$e, - Eacute: eBe, - eacute: tBe, - easter: rBe, - Ecaron: nBe, - ecaron: iBe, - Ecirc: sBe, - ecirc: aBe, - ecir: oBe, - ecolon: lBe, - Ecy: cBe, - ecy: uBe, - eDDot: hBe, - Edot: fBe, - edot: dBe, - eDot: pBe, - ee: gBe, - efDot: mBe, - Efr: vBe, - efr: yBe, - eg: bBe, - Egrave: xBe, - egrave: wBe, - egs: OBe, - egsdot: kBe, - el: SBe, - Element: TBe, - elinters: CBe, - ell: EBe, - els: _Be, - elsdot: ABe, - Emacr: LBe, - emacr: RBe, - empty: MBe, - emptyset: DBe, - EmptySmallSquare: NBe, - emptyv: IBe, - EmptyVerySmallSquare: PBe, - emsp13: $Be, - emsp14: BBe, - emsp: FBe, - ENG: zBe, - eng: VBe, - ensp: UBe, - Eogon: qBe, - eogon: QBe, - Eopf: YBe, - eopf: WBe, - epar: GBe, - eparsl: HBe, - eplus: XBe, - epsi: ZBe, - Epsilon: jBe, - epsilon: KBe, - epsiv: JBe, - eqcirc: eFe, - eqcolon: tFe, - eqsim: rFe, - eqslantgtr: nFe, - eqslantless: iFe, - Equal: sFe, - equals: aFe, - EqualTilde: oFe, - equest: lFe, - Equilibrium: cFe, - equiv: uFe, - equivDD: hFe, - eqvparsl: fFe, - erarr: dFe, - erDot: pFe, - escr: gFe, - Escr: mFe, - esdot: vFe, - Esim: yFe, - esim: bFe, - Eta: xFe, - eta: wFe, - ETH: OFe, - eth: kFe, - Euml: SFe, - euml: TFe, - euro: CFe, - excl: EFe, - exist: _Fe, - Exists: AFe, - expectation: LFe, - exponentiale: RFe, - ExponentialE: MFe, - fallingdotseq: DFe, - Fcy: NFe, - fcy: IFe, - female: PFe, - ffilig: $Fe, - fflig: BFe, - ffllig: FFe, - Ffr: zFe, - ffr: VFe, - filig: UFe, - FilledSmallSquare: qFe, - FilledVerySmallSquare: QFe, - fjlig: YFe, - flat: WFe, - fllig: GFe, - fltns: HFe, - fnof: XFe, - Fopf: ZFe, - fopf: jFe, - forall: KFe, - ForAll: JFe, - fork: eze, - forkv: tze, - Fouriertrf: rze, - fpartint: nze, - frac12: ize, - frac13: sze, - frac14: aze, - frac15: oze, - frac16: lze, - frac18: cze, - frac23: uze, - frac25: hze, - frac34: fze, - frac35: dze, - frac38: pze, - frac45: gze, - frac56: mze, - frac58: vze, - frac78: yze, - frasl: bze, - frown: xze, - fscr: wze, - Fscr: Oze, - gacute: kze, - Gamma: Sze, - gamma: Tze, - Gammad: Cze, - gammad: Eze, - gap: _ze, - Gbreve: Aze, - gbreve: Lze, - Gcedil: Rze, - Gcirc: Mze, - gcirc: Dze, - Gcy: Nze, - gcy: Ize, - Gdot: Pze, - gdot: $ze, - ge: Bze, - gE: Fze, - gEl: zze, - gel: Vze, - geq: Uze, - geqq: qze, - geqslant: Qze, - gescc: Yze, - ges: Wze, - gesdot: Gze, - gesdoto: Hze, - gesdotol: Xze, - gesl: Zze, - gesles: jze, - Gfr: Kze, - gfr: Jze, - gg: eVe, - Gg: tVe, - ggg: rVe, - gimel: nVe, - GJcy: iVe, - gjcy: sVe, - gla: aVe, - gl: oVe, - glE: lVe, - glj: cVe, - gnap: uVe, - gnapprox: hVe, - gne: fVe, - gnE: dVe, - gneq: pVe, - gneqq: gVe, - gnsim: mVe, - Gopf: vVe, - gopf: yVe, - grave: bVe, - GreaterEqual: xVe, - GreaterEqualLess: wVe, - GreaterFullEqual: OVe, - GreaterGreater: kVe, - GreaterLess: SVe, - GreaterSlantEqual: TVe, - GreaterTilde: CVe, - Gscr: EVe, - gscr: _Ve, - gsim: AVe, - gsime: LVe, - gsiml: RVe, - gtcc: MVe, - gtcir: DVe, - gt: NVe, - GT: IVe, - Gt: PVe, - gtdot: $Ve, - gtlPar: BVe, - gtquest: FVe, - gtrapprox: zVe, - gtrarr: VVe, - gtrdot: UVe, - gtreqless: qVe, - gtreqqless: QVe, - gtrless: YVe, - gtrsim: WVe, - gvertneqq: GVe, - gvnE: HVe, - Hacek: XVe, - hairsp: ZVe, - half: jVe, - hamilt: KVe, - HARDcy: JVe, - hardcy: eUe, - harrcir: tUe, - harr: rUe, - hArr: nUe, - harrw: iUe, - Hat: sUe, - hbar: aUe, - Hcirc: oUe, - hcirc: lUe, - hearts: cUe, - heartsuit: uUe, - hellip: hUe, - hercon: fUe, - hfr: dUe, - Hfr: pUe, - HilbertSpace: gUe, - hksearow: mUe, - hkswarow: vUe, - hoarr: yUe, - homtht: bUe, - hookleftarrow: xUe, - hookrightarrow: wUe, - hopf: OUe, - Hopf: kUe, - horbar: SUe, - HorizontalLine: TUe, - hscr: CUe, - Hscr: EUe, - hslash: _Ue, - Hstrok: AUe, - hstrok: LUe, - HumpDownHump: RUe, - HumpEqual: MUe, - hybull: DUe, - hyphen: NUe, - Iacute: IUe, - iacute: PUe, - ic: $Ue, - Icirc: BUe, - icirc: FUe, - Icy: zUe, - icy: VUe, - Idot: UUe, - IEcy: qUe, - iecy: QUe, - iexcl: YUe, - iff: WUe, - ifr: GUe, - Ifr: HUe, - Igrave: XUe, - igrave: ZUe, - ii: jUe, - iiiint: KUe, - iiint: JUe, - iinfin: eqe, - iiota: tqe, - IJlig: rqe, - ijlig: nqe, - Imacr: iqe, - imacr: sqe, - image: aqe, - ImaginaryI: oqe, - imagline: lqe, - imagpart: cqe, - imath: uqe, - Im: hqe, - imof: fqe, - imped: dqe, - Implies: pqe, - incare: gqe, +var Cne = Tne(), Ene = { exports: {} }, Ir = {}, nD = { exports: {} }; +const ILe = "\xC1", PLe = "\xE1", $Le = "\u0102", BLe = "\u0103", FLe = "\u223E", zLe = "\u223F", VLe = "\u223E\u0333", ULe = "\xC2", qLe = "\xE2", QLe = "\xB4", YLe = "\u0410", WLe = "\u0430", GLe = "\xC6", HLe = "\xE6", XLe = "\u2061", ZLe = "\u{1D504}", jLe = "\u{1D51E}", KLe = "\xC0", JLe = "\xE0", e9e = "\u2135", t9e = "\u2135", r9e = "\u0391", n9e = "\u03B1", i9e = "\u0100", s9e = "\u0101", a9e = "\u2A3F", o9e = "&", l9e = "&", c9e = "\u2A55", u9e = "\u2A53", h9e = "\u2227", f9e = "\u2A5C", d9e = "\u2A58", p9e = "\u2A5A", g9e = "\u2220", m9e = "\u29A4", v9e = "\u2220", y9e = "\u29A8", b9e = "\u29A9", x9e = "\u29AA", w9e = "\u29AB", O9e = "\u29AC", k9e = "\u29AD", S9e = "\u29AE", T9e = "\u29AF", C9e = "\u2221", E9e = "\u221F", _9e = "\u22BE", A9e = "\u299D", L9e = "\u2222", R9e = "\xC5", M9e = "\u237C", D9e = "\u0104", N9e = "\u0105", I9e = "\u{1D538}", P9e = "\u{1D552}", $9e = "\u2A6F", B9e = "\u2248", F9e = "\u2A70", z9e = "\u224A", V9e = "\u224B", U9e = "'", q9e = "\u2061", Q9e = "\u2248", Y9e = "\u224A", W9e = "\xC5", G9e = "\xE5", H9e = "\u{1D49C}", X9e = "\u{1D4B6}", Z9e = "\u2254", j9e = "*", K9e = "\u2248", J9e = "\u224D", eRe = "\xC3", tRe = "\xE3", rRe = "\xC4", nRe = "\xE4", iRe = "\u2233", sRe = "\u2A11", aRe = "\u224C", oRe = "\u03F6", lRe = "\u2035", cRe = "\u223D", uRe = "\u22CD", hRe = "\u2216", fRe = "\u2AE7", dRe = "\u22BD", pRe = "\u2305", gRe = "\u2306", mRe = "\u2305", vRe = "\u23B5", yRe = "\u23B6", bRe = "\u224C", xRe = "\u0411", wRe = "\u0431", ORe = "\u201E", kRe = "\u2235", SRe = "\u2235", TRe = "\u2235", CRe = "\u29B0", ERe = "\u03F6", _Re = "\u212C", ARe = "\u212C", LRe = "\u0392", RRe = "\u03B2", MRe = "\u2136", DRe = "\u226C", NRe = "\u{1D505}", IRe = "\u{1D51F}", PRe = "\u22C2", $Re = "\u25EF", BRe = "\u22C3", FRe = "\u2A00", zRe = "\u2A01", VRe = "\u2A02", URe = "\u2A06", qRe = "\u2605", QRe = "\u25BD", YRe = "\u25B3", WRe = "\u2A04", GRe = "\u22C1", HRe = "\u22C0", XRe = "\u290D", ZRe = "\u29EB", jRe = "\u25AA", KRe = "\u25B4", JRe = "\u25BE", eMe = "\u25C2", tMe = "\u25B8", rMe = "\u2423", nMe = "\u2592", iMe = "\u2591", sMe = "\u2593", aMe = "\u2588", oMe = "=\u20E5", lMe = "\u2261\u20E5", cMe = "\u2AED", uMe = "\u2310", hMe = "\u{1D539}", fMe = "\u{1D553}", dMe = "\u22A5", pMe = "\u22A5", gMe = "\u22C8", mMe = "\u29C9", vMe = "\u2510", yMe = "\u2555", bMe = "\u2556", xMe = "\u2557", wMe = "\u250C", OMe = "\u2552", kMe = "\u2553", SMe = "\u2554", TMe = "\u2500", CMe = "\u2550", EMe = "\u252C", _Me = "\u2564", AMe = "\u2565", LMe = "\u2566", RMe = "\u2534", MMe = "\u2567", DMe = "\u2568", NMe = "\u2569", IMe = "\u229F", PMe = "\u229E", $Me = "\u22A0", BMe = "\u2518", FMe = "\u255B", zMe = "\u255C", VMe = "\u255D", UMe = "\u2514", qMe = "\u2558", QMe = "\u2559", YMe = "\u255A", WMe = "\u2502", GMe = "\u2551", HMe = "\u253C", XMe = "\u256A", ZMe = "\u256B", jMe = "\u256C", KMe = "\u2524", JMe = "\u2561", eDe = "\u2562", tDe = "\u2563", rDe = "\u251C", nDe = "\u255E", iDe = "\u255F", sDe = "\u2560", aDe = "\u2035", oDe = "\u02D8", lDe = "\u02D8", cDe = "\xA6", uDe = "\u{1D4B7}", hDe = "\u212C", fDe = "\u204F", dDe = "\u223D", pDe = "\u22CD", gDe = "\u29C5", mDe = "\\", vDe = "\u27C8", yDe = "\u2022", bDe = "\u2022", xDe = "\u224E", wDe = "\u2AAE", ODe = "\u224F", kDe = "\u224E", SDe = "\u224F", TDe = "\u0106", CDe = "\u0107", EDe = "\u2A44", _De = "\u2A49", ADe = "\u2A4B", LDe = "\u2229", RDe = "\u22D2", MDe = "\u2A47", DDe = "\u2A40", NDe = "\u2145", IDe = "\u2229\uFE00", PDe = "\u2041", $De = "\u02C7", BDe = "\u212D", FDe = "\u2A4D", zDe = "\u010C", VDe = "\u010D", UDe = "\xC7", qDe = "\xE7", QDe = "\u0108", YDe = "\u0109", WDe = "\u2230", GDe = "\u2A4C", HDe = "\u2A50", XDe = "\u010A", ZDe = "\u010B", jDe = "\xB8", KDe = "\xB8", JDe = "\u29B2", eNe = "\xA2", tNe = "\xB7", rNe = "\xB7", nNe = "\u{1D520}", iNe = "\u212D", sNe = "\u0427", aNe = "\u0447", oNe = "\u2713", lNe = "\u2713", cNe = "\u03A7", uNe = "\u03C7", hNe = "\u02C6", fNe = "\u2257", dNe = "\u21BA", pNe = "\u21BB", gNe = "\u229B", mNe = "\u229A", vNe = "\u229D", yNe = "\u2299", bNe = "\xAE", xNe = "\u24C8", wNe = "\u2296", ONe = "\u2295", kNe = "\u2297", SNe = "\u25CB", TNe = "\u29C3", CNe = "\u2257", ENe = "\u2A10", _Ne = "\u2AEF", ANe = "\u29C2", LNe = "\u2232", RNe = "\u201D", MNe = "\u2019", DNe = "\u2663", NNe = "\u2663", INe = ":", PNe = "\u2237", $Ne = "\u2A74", BNe = "\u2254", FNe = "\u2254", zNe = ",", VNe = "@", UNe = "\u2201", qNe = "\u2218", QNe = "\u2201", YNe = "\u2102", WNe = "\u2245", GNe = "\u2A6D", HNe = "\u2261", XNe = "\u222E", ZNe = "\u222F", jNe = "\u222E", KNe = "\u{1D554}", JNe = "\u2102", eIe = "\u2210", tIe = "\u2210", rIe = "\xA9", nIe = "\xA9", iIe = "\u2117", sIe = "\u2233", aIe = "\u21B5", oIe = "\u2717", lIe = "\u2A2F", cIe = "\u{1D49E}", uIe = "\u{1D4B8}", hIe = "\u2ACF", fIe = "\u2AD1", dIe = "\u2AD0", pIe = "\u2AD2", gIe = "\u22EF", mIe = "\u2938", vIe = "\u2935", yIe = "\u22DE", bIe = "\u22DF", xIe = "\u21B6", wIe = "\u293D", OIe = "\u2A48", kIe = "\u2A46", SIe = "\u224D", TIe = "\u222A", CIe = "\u22D3", EIe = "\u2A4A", _Ie = "\u228D", AIe = "\u2A45", LIe = "\u222A\uFE00", RIe = "\u21B7", MIe = "\u293C", DIe = "\u22DE", NIe = "\u22DF", IIe = "\u22CE", PIe = "\u22CF", $Ie = "\xA4", BIe = "\u21B6", FIe = "\u21B7", zIe = "\u22CE", VIe = "\u22CF", UIe = "\u2232", qIe = "\u2231", QIe = "\u232D", YIe = "\u2020", WIe = "\u2021", GIe = "\u2138", HIe = "\u2193", XIe = "\u21A1", ZIe = "\u21D3", jIe = "\u2010", KIe = "\u2AE4", JIe = "\u22A3", ePe = "\u290F", tPe = "\u02DD", rPe = "\u010E", nPe = "\u010F", iPe = "\u0414", sPe = "\u0434", aPe = "\u2021", oPe = "\u21CA", lPe = "\u2145", cPe = "\u2146", uPe = "\u2911", hPe = "\u2A77", fPe = "\xB0", dPe = "\u2207", pPe = "\u0394", gPe = "\u03B4", mPe = "\u29B1", vPe = "\u297F", yPe = "\u{1D507}", bPe = "\u{1D521}", xPe = "\u2965", wPe = "\u21C3", OPe = "\u21C2", kPe = "\xB4", SPe = "\u02D9", TPe = "\u02DD", CPe = "`", EPe = "\u02DC", _Pe = "\u22C4", APe = "\u22C4", LPe = "\u22C4", RPe = "\u2666", MPe = "\u2666", DPe = "\xA8", NPe = "\u2146", IPe = "\u03DD", PPe = "\u22F2", $Pe = "\xF7", BPe = "\xF7", FPe = "\u22C7", zPe = "\u22C7", VPe = "\u0402", UPe = "\u0452", qPe = "\u231E", QPe = "\u230D", YPe = "$", WPe = "\u{1D53B}", GPe = "\u{1D555}", HPe = "\xA8", XPe = "\u02D9", ZPe = "\u20DC", jPe = "\u2250", KPe = "\u2251", JPe = "\u2250", e$e = "\u2238", t$e = "\u2214", r$e = "\u22A1", n$e = "\u2306", i$e = "\u222F", s$e = "\xA8", a$e = "\u21D3", o$e = "\u21D0", l$e = "\u21D4", c$e = "\u2AE4", u$e = "\u27F8", h$e = "\u27FA", f$e = "\u27F9", d$e = "\u21D2", p$e = "\u22A8", g$e = "\u21D1", m$e = "\u21D5", v$e = "\u2225", y$e = "\u2913", b$e = "\u2193", x$e = "\u2193", w$e = "\u21D3", O$e = "\u21F5", k$e = "\u0311", S$e = "\u21CA", T$e = "\u21C3", C$e = "\u21C2", E$e = "\u2950", _$e = "\u295E", A$e = "\u2956", L$e = "\u21BD", R$e = "\u295F", M$e = "\u2957", D$e = "\u21C1", N$e = "\u21A7", I$e = "\u22A4", P$e = "\u2910", $$e = "\u231F", B$e = "\u230C", F$e = "\u{1D49F}", z$e = "\u{1D4B9}", V$e = "\u0405", U$e = "\u0455", q$e = "\u29F6", Q$e = "\u0110", Y$e = "\u0111", W$e = "\u22F1", G$e = "\u25BF", H$e = "\u25BE", X$e = "\u21F5", Z$e = "\u296F", j$e = "\u29A6", K$e = "\u040F", J$e = "\u045F", eBe = "\u27FF", tBe = "\xC9", rBe = "\xE9", nBe = "\u2A6E", iBe = "\u011A", sBe = "\u011B", aBe = "\xCA", oBe = "\xEA", lBe = "\u2256", cBe = "\u2255", uBe = "\u042D", hBe = "\u044D", fBe = "\u2A77", dBe = "\u0116", pBe = "\u0117", gBe = "\u2251", mBe = "\u2147", vBe = "\u2252", yBe = "\u{1D508}", bBe = "\u{1D522}", xBe = "\u2A9A", wBe = "\xC8", OBe = "\xE8", kBe = "\u2A96", SBe = "\u2A98", TBe = "\u2A99", CBe = "\u2208", EBe = "\u23E7", _Be = "\u2113", ABe = "\u2A95", LBe = "\u2A97", RBe = "\u0112", MBe = "\u0113", DBe = "\u2205", NBe = "\u2205", IBe = "\u25FB", PBe = "\u2205", $Be = "\u25AB", BBe = "\u2004", FBe = "\u2005", zBe = "\u2003", VBe = "\u014A", UBe = "\u014B", qBe = "\u2002", QBe = "\u0118", YBe = "\u0119", WBe = "\u{1D53C}", GBe = "\u{1D556}", HBe = "\u22D5", XBe = "\u29E3", ZBe = "\u2A71", jBe = "\u03B5", KBe = "\u0395", JBe = "\u03B5", eFe = "\u03F5", tFe = "\u2256", rFe = "\u2255", nFe = "\u2242", iFe = "\u2A96", sFe = "\u2A95", aFe = "\u2A75", oFe = "=", lFe = "\u2242", cFe = "\u225F", uFe = "\u21CC", hFe = "\u2261", fFe = "\u2A78", dFe = "\u29E5", pFe = "\u2971", gFe = "\u2253", mFe = "\u212F", vFe = "\u2130", yFe = "\u2250", bFe = "\u2A73", xFe = "\u2242", wFe = "\u0397", OFe = "\u03B7", kFe = "\xD0", SFe = "\xF0", TFe = "\xCB", CFe = "\xEB", EFe = "\u20AC", _Fe = "!", AFe = "\u2203", LFe = "\u2203", RFe = "\u2130", MFe = "\u2147", DFe = "\u2147", NFe = "\u2252", IFe = "\u0424", PFe = "\u0444", $Fe = "\u2640", BFe = "\uFB03", FFe = "\uFB00", zFe = "\uFB04", VFe = "\u{1D509}", UFe = "\u{1D523}", qFe = "\uFB01", QFe = "\u25FC", YFe = "\u25AA", WFe = "fj", GFe = "\u266D", HFe = "\uFB02", XFe = "\u25B1", ZFe = "\u0192", jFe = "\u{1D53D}", KFe = "\u{1D557}", JFe = "\u2200", eze = "\u2200", tze = "\u22D4", rze = "\u2AD9", nze = "\u2131", ize = "\u2A0D", sze = "\xBD", aze = "\u2153", oze = "\xBC", lze = "\u2155", cze = "\u2159", uze = "\u215B", hze = "\u2154", fze = "\u2156", dze = "\xBE", pze = "\u2157", gze = "\u215C", mze = "\u2158", vze = "\u215A", yze = "\u215D", bze = "\u215E", xze = "\u2044", wze = "\u2322", Oze = "\u{1D4BB}", kze = "\u2131", Sze = "\u01F5", Tze = "\u0393", Cze = "\u03B3", Eze = "\u03DC", _ze = "\u03DD", Aze = "\u2A86", Lze = "\u011E", Rze = "\u011F", Mze = "\u0122", Dze = "\u011C", Nze = "\u011D", Ize = "\u0413", Pze = "\u0433", $ze = "\u0120", Bze = "\u0121", Fze = "\u2265", zze = "\u2267", Vze = "\u2A8C", Uze = "\u22DB", qze = "\u2265", Qze = "\u2267", Yze = "\u2A7E", Wze = "\u2AA9", Gze = "\u2A7E", Hze = "\u2A80", Xze = "\u2A82", Zze = "\u2A84", jze = "\u22DB\uFE00", Kze = "\u2A94", Jze = "\u{1D50A}", eVe = "\u{1D524}", tVe = "\u226B", rVe = "\u22D9", nVe = "\u22D9", iVe = "\u2137", sVe = "\u0403", aVe = "\u0453", oVe = "\u2AA5", lVe = "\u2277", cVe = "\u2A92", uVe = "\u2AA4", hVe = "\u2A8A", fVe = "\u2A8A", dVe = "\u2A88", pVe = "\u2269", gVe = "\u2A88", mVe = "\u2269", vVe = "\u22E7", yVe = "\u{1D53E}", bVe = "\u{1D558}", xVe = "`", wVe = "\u2265", OVe = "\u22DB", kVe = "\u2267", SVe = "\u2AA2", TVe = "\u2277", CVe = "\u2A7E", EVe = "\u2273", _Ve = "\u{1D4A2}", AVe = "\u210A", LVe = "\u2273", RVe = "\u2A8E", MVe = "\u2A90", DVe = "\u2AA7", NVe = "\u2A7A", IVe = ">", PVe = ">", $Ve = "\u226B", BVe = "\u22D7", FVe = "\u2995", zVe = "\u2A7C", VVe = "\u2A86", UVe = "\u2978", qVe = "\u22D7", QVe = "\u22DB", YVe = "\u2A8C", WVe = "\u2277", GVe = "\u2273", HVe = "\u2269\uFE00", XVe = "\u2269\uFE00", ZVe = "\u02C7", jVe = "\u200A", KVe = "\xBD", JVe = "\u210B", eUe = "\u042A", tUe = "\u044A", rUe = "\u2948", nUe = "\u2194", iUe = "\u21D4", sUe = "\u21AD", aUe = "^", oUe = "\u210F", lUe = "\u0124", cUe = "\u0125", uUe = "\u2665", hUe = "\u2665", fUe = "\u2026", dUe = "\u22B9", pUe = "\u{1D525}", gUe = "\u210C", mUe = "\u210B", vUe = "\u2925", yUe = "\u2926", bUe = "\u21FF", xUe = "\u223B", wUe = "\u21A9", OUe = "\u21AA", kUe = "\u{1D559}", SUe = "\u210D", TUe = "\u2015", CUe = "\u2500", EUe = "\u{1D4BD}", _Ue = "\u210B", AUe = "\u210F", LUe = "\u0126", RUe = "\u0127", MUe = "\u224E", DUe = "\u224F", NUe = "\u2043", IUe = "\u2010", PUe = "\xCD", $Ue = "\xED", BUe = "\u2063", FUe = "\xCE", zUe = "\xEE", VUe = "\u0418", UUe = "\u0438", qUe = "\u0130", QUe = "\u0415", YUe = "\u0435", WUe = "\xA1", GUe = "\u21D4", HUe = "\u{1D526}", XUe = "\u2111", ZUe = "\xCC", jUe = "\xEC", KUe = "\u2148", JUe = "\u2A0C", eqe = "\u222D", tqe = "\u29DC", rqe = "\u2129", nqe = "\u0132", iqe = "\u0133", sqe = "\u012A", aqe = "\u012B", oqe = "\u2111", lqe = "\u2148", cqe = "\u2110", uqe = "\u2111", hqe = "\u0131", fqe = "\u2111", dqe = "\u22B7", pqe = "\u01B5", gqe = "\u21D2", mqe = "\u2105", vqe = "\u221E", yqe = "\u29DD", bqe = "\u0131", xqe = "\u22BA", wqe = "\u222B", Oqe = "\u222C", kqe = "\u2124", Sqe = "\u222B", Tqe = "\u22BA", Cqe = "\u22C2", Eqe = "\u2A17", _qe = "\u2A3C", Aqe = "\u2063", Lqe = "\u2062", Rqe = "\u0401", Mqe = "\u0451", Dqe = "\u012E", Nqe = "\u012F", Iqe = "\u{1D540}", Pqe = "\u{1D55A}", $qe = "\u0399", Bqe = "\u03B9", Fqe = "\u2A3C", zqe = "\xBF", Vqe = "\u{1D4BE}", Uqe = "\u2110", qqe = "\u2208", Qqe = "\u22F5", Yqe = "\u22F9", Wqe = "\u22F4", Gqe = "\u22F3", Hqe = "\u2208", Xqe = "\u2062", Zqe = "\u0128", jqe = "\u0129", Kqe = "\u0406", Jqe = "\u0456", eQe = "\xCF", tQe = "\xEF", rQe = "\u0134", nQe = "\u0135", iQe = "\u0419", sQe = "\u0439", aQe = "\u{1D50D}", oQe = "\u{1D527}", lQe = "\u0237", cQe = "\u{1D541}", uQe = "\u{1D55B}", hQe = "\u{1D4A5}", fQe = "\u{1D4BF}", dQe = "\u0408", pQe = "\u0458", gQe = "\u0404", mQe = "\u0454", vQe = "\u039A", yQe = "\u03BA", bQe = "\u03F0", xQe = "\u0136", wQe = "\u0137", OQe = "\u041A", kQe = "\u043A", SQe = "\u{1D50E}", TQe = "\u{1D528}", CQe = "\u0138", EQe = "\u0425", _Qe = "\u0445", AQe = "\u040C", LQe = "\u045C", RQe = "\u{1D542}", MQe = "\u{1D55C}", DQe = "\u{1D4A6}", NQe = "\u{1D4C0}", IQe = "\u21DA", PQe = "\u0139", $Qe = "\u013A", BQe = "\u29B4", FQe = "\u2112", zQe = "\u039B", VQe = "\u03BB", UQe = "\u27E8", qQe = "\u27EA", QQe = "\u2991", YQe = "\u27E8", WQe = "\u2A85", GQe = "\u2112", HQe = "\xAB", XQe = "\u21E4", ZQe = "\u291F", jQe = "\u2190", KQe = "\u219E", JQe = "\u21D0", eYe = "\u291D", tYe = "\u21A9", rYe = "\u21AB", nYe = "\u2939", iYe = "\u2973", sYe = "\u21A2", aYe = "\u2919", oYe = "\u291B", lYe = "\u2AAB", cYe = "\u2AAD", uYe = "\u2AAD\uFE00", hYe = "\u290C", fYe = "\u290E", dYe = "\u2772", pYe = "{", gYe = "[", mYe = "\u298B", vYe = "\u298F", yYe = "\u298D", bYe = "\u013D", xYe = "\u013E", wYe = "\u013B", OYe = "\u013C", kYe = "\u2308", SYe = "{", TYe = "\u041B", CYe = "\u043B", EYe = "\u2936", _Ye = "\u201C", AYe = "\u201E", LYe = "\u2967", RYe = "\u294B", MYe = "\u21B2", DYe = "\u2264", NYe = "\u2266", IYe = "\u27E8", PYe = "\u21E4", $Ye = "\u2190", BYe = "\u2190", FYe = "\u21D0", zYe = "\u21C6", VYe = "\u21A2", UYe = "\u2308", qYe = "\u27E6", QYe = "\u2961", YYe = "\u2959", WYe = "\u21C3", GYe = "\u230A", HYe = "\u21BD", XYe = "\u21BC", ZYe = "\u21C7", jYe = "\u2194", KYe = "\u2194", JYe = "\u21D4", eWe = "\u21C6", tWe = "\u21CB", rWe = "\u21AD", nWe = "\u294E", iWe = "\u21A4", sWe = "\u22A3", aWe = "\u295A", oWe = "\u22CB", lWe = "\u29CF", cWe = "\u22B2", uWe = "\u22B4", hWe = "\u2951", fWe = "\u2960", dWe = "\u2958", pWe = "\u21BF", gWe = "\u2952", mWe = "\u21BC", vWe = "\u2A8B", yWe = "\u22DA", bWe = "\u2264", xWe = "\u2266", wWe = "\u2A7D", OWe = "\u2AA8", kWe = "\u2A7D", SWe = "\u2A7F", TWe = "\u2A81", CWe = "\u2A83", EWe = "\u22DA\uFE00", _We = "\u2A93", AWe = "\u2A85", LWe = "\u22D6", RWe = "\u22DA", MWe = "\u2A8B", DWe = "\u22DA", NWe = "\u2266", IWe = "\u2276", PWe = "\u2276", $We = "\u2AA1", BWe = "\u2272", FWe = "\u2A7D", zWe = "\u2272", VWe = "\u297C", UWe = "\u230A", qWe = "\u{1D50F}", QWe = "\u{1D529}", YWe = "\u2276", WWe = "\u2A91", GWe = "\u2962", HWe = "\u21BD", XWe = "\u21BC", ZWe = "\u296A", jWe = "\u2584", KWe = "\u0409", JWe = "\u0459", eGe = "\u21C7", tGe = "\u226A", rGe = "\u22D8", nGe = "\u231E", iGe = "\u21DA", sGe = "\u296B", aGe = "\u25FA", oGe = "\u013F", lGe = "\u0140", cGe = "\u23B0", uGe = "\u23B0", hGe = "\u2A89", fGe = "\u2A89", dGe = "\u2A87", pGe = "\u2268", gGe = "\u2A87", mGe = "\u2268", vGe = "\u22E6", yGe = "\u27EC", bGe = "\u21FD", xGe = "\u27E6", wGe = "\u27F5", OGe = "\u27F5", kGe = "\u27F8", SGe = "\u27F7", TGe = "\u27F7", CGe = "\u27FA", EGe = "\u27FC", _Ge = "\u27F6", AGe = "\u27F6", LGe = "\u27F9", RGe = "\u21AB", MGe = "\u21AC", DGe = "\u2985", NGe = "\u{1D543}", IGe = "\u{1D55D}", PGe = "\u2A2D", $Ge = "\u2A34", BGe = "\u2217", FGe = "_", zGe = "\u2199", VGe = "\u2198", UGe = "\u25CA", qGe = "\u25CA", QGe = "\u29EB", YGe = "(", WGe = "\u2993", GGe = "\u21C6", HGe = "\u231F", XGe = "\u21CB", ZGe = "\u296D", jGe = "\u200E", KGe = "\u22BF", JGe = "\u2039", eHe = "\u{1D4C1}", tHe = "\u2112", rHe = "\u21B0", nHe = "\u21B0", iHe = "\u2272", sHe = "\u2A8D", aHe = "\u2A8F", oHe = "[", lHe = "\u2018", cHe = "\u201A", uHe = "\u0141", hHe = "\u0142", fHe = "\u2AA6", dHe = "\u2A79", pHe = "<", gHe = "<", mHe = "\u226A", vHe = "\u22D6", yHe = "\u22CB", bHe = "\u22C9", xHe = "\u2976", wHe = "\u2A7B", OHe = "\u25C3", kHe = "\u22B4", SHe = "\u25C2", THe = "\u2996", CHe = "\u294A", EHe = "\u2966", _He = "\u2268\uFE00", AHe = "\u2268\uFE00", LHe = "\xAF", RHe = "\u2642", MHe = "\u2720", DHe = "\u2720", NHe = "\u21A6", IHe = "\u21A6", PHe = "\u21A7", $He = "\u21A4", BHe = "\u21A5", FHe = "\u25AE", zHe = "\u2A29", VHe = "\u041C", UHe = "\u043C", qHe = "\u2014", QHe = "\u223A", YHe = "\u2221", WHe = "\u205F", GHe = "\u2133", HHe = "\u{1D510}", XHe = "\u{1D52A}", ZHe = "\u2127", jHe = "\xB5", KHe = "*", JHe = "\u2AF0", eXe = "\u2223", tXe = "\xB7", rXe = "\u229F", nXe = "\u2212", iXe = "\u2238", sXe = "\u2A2A", aXe = "\u2213", oXe = "\u2ADB", lXe = "\u2026", cXe = "\u2213", uXe = "\u22A7", hXe = "\u{1D544}", fXe = "\u{1D55E}", dXe = "\u2213", pXe = "\u{1D4C2}", gXe = "\u2133", mXe = "\u223E", vXe = "\u039C", yXe = "\u03BC", bXe = "\u22B8", xXe = "\u22B8", wXe = "\u2207", OXe = "\u0143", kXe = "\u0144", SXe = "\u2220\u20D2", TXe = "\u2249", CXe = "\u2A70\u0338", EXe = "\u224B\u0338", _Xe = "\u0149", AXe = "\u2249", LXe = "\u266E", RXe = "\u2115", MXe = "\u266E", DXe = "\xA0", NXe = "\u224E\u0338", IXe = "\u224F\u0338", PXe = "\u2A43", $Xe = "\u0147", BXe = "\u0148", FXe = "\u0145", zXe = "\u0146", VXe = "\u2247", UXe = "\u2A6D\u0338", qXe = "\u2A42", QXe = "\u041D", YXe = "\u043D", WXe = "\u2013", GXe = "\u2924", HXe = "\u2197", XXe = "\u21D7", ZXe = "\u2197", jXe = "\u2260", KXe = "\u2250\u0338", JXe = "\u200B", eZe = "\u200B", tZe = "\u200B", rZe = "\u200B", nZe = "\u2262", iZe = "\u2928", sZe = "\u2242\u0338", aZe = "\u226B", oZe = "\u226A", lZe = ` +`, cZe = "\u2204", uZe = "\u2204", hZe = "\u{1D511}", fZe = "\u{1D52B}", dZe = "\u2267\u0338", pZe = "\u2271", gZe = "\u2271", mZe = "\u2267\u0338", vZe = "\u2A7E\u0338", yZe = "\u2A7E\u0338", bZe = "\u22D9\u0338", xZe = "\u2275", wZe = "\u226B\u20D2", OZe = "\u226F", kZe = "\u226F", SZe = "\u226B\u0338", TZe = "\u21AE", CZe = "\u21CE", EZe = "\u2AF2", _Ze = "\u220B", AZe = "\u22FC", LZe = "\u22FA", RZe = "\u220B", MZe = "\u040A", DZe = "\u045A", NZe = "\u219A", IZe = "\u21CD", PZe = "\u2025", $Ze = "\u2266\u0338", BZe = "\u2270", FZe = "\u219A", zZe = "\u21CD", VZe = "\u21AE", UZe = "\u21CE", qZe = "\u2270", QZe = "\u2266\u0338", YZe = "\u2A7D\u0338", WZe = "\u2A7D\u0338", GZe = "\u226E", HZe = "\u22D8\u0338", XZe = "\u2274", ZZe = "\u226A\u20D2", jZe = "\u226E", KZe = "\u22EA", JZe = "\u22EC", eje = "\u226A\u0338", tje = "\u2224", rje = "\u2060", nje = "\xA0", ije = "\u{1D55F}", sje = "\u2115", aje = "\u2AEC", oje = "\xAC", lje = "\u2262", cje = "\u226D", uje = "\u2226", hje = "\u2209", fje = "\u2260", dje = "\u2242\u0338", pje = "\u2204", gje = "\u226F", mje = "\u2271", vje = "\u2267\u0338", yje = "\u226B\u0338", bje = "\u2279", xje = "\u2A7E\u0338", wje = "\u2275", Oje = "\u224E\u0338", kje = "\u224F\u0338", Sje = "\u2209", Tje = "\u22F5\u0338", Cje = "\u22F9\u0338", Eje = "\u2209", _je = "\u22F7", Aje = "\u22F6", Lje = "\u29CF\u0338", Rje = "\u22EA", Mje = "\u22EC", Dje = "\u226E", Nje = "\u2270", Ije = "\u2278", Pje = "\u226A\u0338", $je = "\u2A7D\u0338", Bje = "\u2274", Fje = "\u2AA2\u0338", zje = "\u2AA1\u0338", Vje = "\u220C", Uje = "\u220C", qje = "\u22FE", Qje = "\u22FD", Yje = "\u2280", Wje = "\u2AAF\u0338", Gje = "\u22E0", Hje = "\u220C", Xje = "\u29D0\u0338", Zje = "\u22EB", jje = "\u22ED", Kje = "\u228F\u0338", Jje = "\u22E2", eKe = "\u2290\u0338", tKe = "\u22E3", rKe = "\u2282\u20D2", nKe = "\u2288", iKe = "\u2281", sKe = "\u2AB0\u0338", aKe = "\u22E1", oKe = "\u227F\u0338", lKe = "\u2283\u20D2", cKe = "\u2289", uKe = "\u2241", hKe = "\u2244", fKe = "\u2247", dKe = "\u2249", pKe = "\u2224", gKe = "\u2226", mKe = "\u2226", vKe = "\u2AFD\u20E5", yKe = "\u2202\u0338", bKe = "\u2A14", xKe = "\u2280", wKe = "\u22E0", OKe = "\u2280", kKe = "\u2AAF\u0338", SKe = "\u2AAF\u0338", TKe = "\u2933\u0338", CKe = "\u219B", EKe = "\u21CF", _Ke = "\u219D\u0338", AKe = "\u219B", LKe = "\u21CF", RKe = "\u22EB", MKe = "\u22ED", DKe = "\u2281", NKe = "\u22E1", IKe = "\u2AB0\u0338", PKe = "\u{1D4A9}", $Ke = "\u{1D4C3}", BKe = "\u2224", FKe = "\u2226", zKe = "\u2241", VKe = "\u2244", UKe = "\u2244", qKe = "\u2224", QKe = "\u2226", YKe = "\u22E2", WKe = "\u22E3", GKe = "\u2284", HKe = "\u2AC5\u0338", XKe = "\u2288", ZKe = "\u2282\u20D2", jKe = "\u2288", KKe = "\u2AC5\u0338", JKe = "\u2281", eJe = "\u2AB0\u0338", tJe = "\u2285", rJe = "\u2AC6\u0338", nJe = "\u2289", iJe = "\u2283\u20D2", sJe = "\u2289", aJe = "\u2AC6\u0338", oJe = "\u2279", lJe = "\xD1", cJe = "\xF1", uJe = "\u2278", hJe = "\u22EA", fJe = "\u22EC", dJe = "\u22EB", pJe = "\u22ED", gJe = "\u039D", mJe = "\u03BD", vJe = "#", yJe = "\u2116", bJe = "\u2007", xJe = "\u224D\u20D2", wJe = "\u22AC", OJe = "\u22AD", kJe = "\u22AE", SJe = "\u22AF", TJe = "\u2265\u20D2", CJe = ">\u20D2", EJe = "\u2904", _Je = "\u29DE", AJe = "\u2902", LJe = "\u2264\u20D2", RJe = "<\u20D2", MJe = "\u22B4\u20D2", DJe = "\u2903", NJe = "\u22B5\u20D2", IJe = "\u223C\u20D2", PJe = "\u2923", $Je = "\u2196", BJe = "\u21D6", FJe = "\u2196", zJe = "\u2927", VJe = "\xD3", UJe = "\xF3", qJe = "\u229B", QJe = "\xD4", YJe = "\xF4", WJe = "\u229A", GJe = "\u041E", HJe = "\u043E", XJe = "\u229D", ZJe = "\u0150", jJe = "\u0151", KJe = "\u2A38", JJe = "\u2299", eet = "\u29BC", tet = "\u0152", ret = "\u0153", net = "\u29BF", iet = "\u{1D512}", set = "\u{1D52C}", aet = "\u02DB", oet = "\xD2", cet = "\xF2", uet = "\u29C1", het = "\u29B5", fet = "\u03A9", det = "\u222E", pet = "\u21BA", get = "\u29BE", met = "\u29BB", vet = "\u203E", yet = "\u29C0", bet = "\u014C", xet = "\u014D", wet = "\u03A9", Oet = "\u03C9", ket = "\u039F", Tet = "\u03BF", Cet = "\u29B6", Eet = "\u2296", _et = "\u{1D546}", Aet = "\u{1D560}", Let = "\u29B7", Ret = "\u201C", Met = "\u2018", Det = "\u29B9", Net = "\u2295", Iet = "\u21BB", Pet = "\u2A54", $et = "\u2228", Bet = "\u2A5D", Fet = "\u2134", zet = "\u2134", Vet = "\xAA", Uet = "\xBA", qet = "\u22B6", Qet = "\u2A56", Yet = "\u2A57", Wet = "\u2A5B", Get = "\u24C8", Het = "\u{1D4AA}", Xet = "\u2134", Zet = "\xD8", jet = "\xF8", Ket = "\u2298", Jet = "\xD5", ett = "\xF5", ttt = "\u2A36", rtt = "\u2A37", ntt = "\u2297", itt = "\xD6", stt = "\xF6", att = "\u233D", ott = "\u203E", ltt = "\u23DE", ctt = "\u23B4", utt = "\u23DC", htt = "\xB6", ftt = "\u2225", dtt = "\u2225", ptt = "\u2AF3", gtt = "\u2AFD", mtt = "\u2202", vtt = "\u2202", ytt = "\u041F", btt = "\u043F", xtt = "%", wtt = ".", Ott = "\u2030", ktt = "\u22A5", Stt = "\u2031", Ttt = "\u{1D513}", Ctt = "\u{1D52D}", Ett = "\u03A6", _tt = "\u03C6", Att = "\u03D5", Ltt = "\u2133", Rtt = "\u260E", Mtt = "\u03A0", Dtt = "\u03C0", Ntt = "\u22D4", Itt = "\u03D6", Ptt = "\u210F", $tt = "\u210E", Btt = "\u210F", Ftt = "\u2A23", ztt = "\u229E", Vtt = "\u2A22", Utt = "+", qtt = "\u2214", Qtt = "\u2A25", Ytt = "\u2A72", Wtt = "\xB1", Gtt = "\xB1", Htt = "\u2A26", Xtt = "\u2A27", Ztt = "\xB1", jtt = "\u210C", Ktt = "\u2A15", Jtt = "\u{1D561}", ert = "\u2119", trt = "\xA3", rrt = "\u2AB7", nrt = "\u2ABB", irt = "\u227A", srt = "\u227C", art = "\u2AB7", ort = "\u227A", lrt = "\u227C", crt = "\u227A", urt = "\u2AAF", hrt = "\u227C", frt = "\u227E", drt = "\u2AAF", prt = "\u2AB9", grt = "\u2AB5", mrt = "\u22E8", vrt = "\u2AAF", yrt = "\u2AB3", brt = "\u227E", xrt = "\u2032", wrt = "\u2033", Ort = "\u2119", krt = "\u2AB9", Srt = "\u2AB5", Trt = "\u22E8", Crt = "\u220F", Ert = "\u220F", _rt = "\u232E", Art = "\u2312", Lrt = "\u2313", Rrt = "\u221D", Mrt = "\u221D", Drt = "\u2237", Nrt = "\u221D", Irt = "\u227E", Prt = "\u22B0", $rt = "\u{1D4AB}", Brt = "\u{1D4C5}", Frt = "\u03A8", zrt = "\u03C8", Vrt = "\u2008", Urt = "\u{1D514}", qrt = "\u{1D52E}", Qrt = "\u2A0C", Yrt = "\u{1D562}", Wrt = "\u211A", Grt = "\u2057", Hrt = "\u{1D4AC}", Xrt = "\u{1D4C6}", Zrt = "\u210D", jrt = "\u2A16", Krt = "?", Jrt = "\u225F", ent = '"', tnt = '"', rnt = "\u21DB", nnt = "\u223D\u0331", int = "\u0154", snt = "\u0155", ant = "\u221A", ont = "\u29B3", lnt = "\u27E9", cnt = "\u27EB", unt = "\u2992", hnt = "\u29A5", fnt = "\u27E9", dnt = "\xBB", pnt = "\u2975", gnt = "\u21E5", mnt = "\u2920", vnt = "\u2933", ynt = "\u2192", bnt = "\u21A0", xnt = "\u21D2", wnt = "\u291E", Ont = "\u21AA", knt = "\u21AC", Snt = "\u2945", Tnt = "\u2974", Cnt = "\u2916", Ent = "\u21A3", _nt = "\u219D", Ant = "\u291A", Lnt = "\u291C", Rnt = "\u2236", Mnt = "\u211A", Dnt = "\u290D", Nnt = "\u290F", Int = "\u2910", Pnt = "\u2773", $nt = "}", Bnt = "]", Fnt = "\u298C", znt = "\u298E", Vnt = "\u2990", Unt = "\u0158", qnt = "\u0159", Qnt = "\u0156", Ynt = "\u0157", Wnt = "\u2309", Gnt = "}", Hnt = "\u0420", Xnt = "\u0440", Znt = "\u2937", jnt = "\u2969", Knt = "\u201D", Jnt = "\u201D", eit = "\u21B3", tit = "\u211C", rit = "\u211B", nit = "\u211C", iit = "\u211D", sit = "\u211C", ait = "\u25AD", oit = "\xAE", lit = "\xAE", cit = "\u220B", uit = "\u21CB", hit = "\u296F", fit = "\u297D", dit = "\u230B", pit = "\u{1D52F}", git = "\u211C", mit = "\u2964", vit = "\u21C1", yit = "\u21C0", bit = "\u296C", xit = "\u03A1", wit = "\u03C1", Oit = "\u03F1", kit = "\u27E9", Sit = "\u21E5", Tit = "\u2192", Cit = "\u2192", Eit = "\u21D2", _it = "\u21C4", Ait = "\u21A3", Lit = "\u2309", Rit = "\u27E7", Mit = "\u295D", Dit = "\u2955", Nit = "\u21C2", Iit = "\u230B", Pit = "\u21C1", $it = "\u21C0", Bit = "\u21C4", Fit = "\u21CC", zit = "\u21C9", Vit = "\u219D", Uit = "\u21A6", qit = "\u22A2", Qit = "\u295B", Yit = "\u22CC", Wit = "\u29D0", Git = "\u22B3", Hit = "\u22B5", Xit = "\u294F", Zit = "\u295C", jit = "\u2954", Kit = "\u21BE", Jit = "\u2953", est = "\u21C0", tst = "\u02DA", rst = "\u2253", nst = "\u21C4", ist = "\u21CC", sst = "\u200F", ast = "\u23B1", ost = "\u23B1", lst = "\u2AEE", cst = "\u27ED", ust = "\u21FE", hst = "\u27E7", fst = "\u2986", dst = "\u{1D563}", pst = "\u211D", gst = "\u2A2E", mst = "\u2A35", vst = "\u2970", yst = ")", bst = "\u2994", xst = "\u2A12", wst = "\u21C9", Ost = "\u21DB", kst = "\u203A", Sst = "\u{1D4C7}", Tst = "\u211B", Cst = "\u21B1", Est = "\u21B1", _st = "]", Ast = "\u2019", Lst = "\u2019", Rst = "\u22CC", Mst = "\u22CA", Dst = "\u25B9", Nst = "\u22B5", Ist = "\u25B8", Pst = "\u29CE", $st = "\u29F4", Bst = "\u2968", Fst = "\u211E", zst = "\u015A", Vst = "\u015B", Ust = "\u201A", qst = "\u2AB8", Qst = "\u0160", Yst = "\u0161", Wst = "\u2ABC", Gst = "\u227B", Hst = "\u227D", Xst = "\u2AB0", Zst = "\u2AB4", jst = "\u015E", Kst = "\u015F", Jst = "\u015C", eat = "\u015D", tat = "\u2ABA", rat = "\u2AB6", nat = "\u22E9", iat = "\u2A13", sat = "\u227F", aat = "\u0421", oat = "\u0441", lat = "\u22A1", cat = "\u22C5", uat = "\u2A66", hat = "\u2925", fat = "\u2198", dat = "\u21D8", pat = "\u2198", gat = "\xA7", mat = ";", vat = "\u2929", yat = "\u2216", bat = "\u2216", xat = "\u2736", wat = "\u{1D516}", Oat = "\u{1D530}", kat = "\u2322", Sat = "\u266F", Tat = "\u0429", Cat = "\u0449", Eat = "\u0428", _at = "\u0448", Aat = "\u2193", Lat = "\u2190", Rat = "\u2223", Mat = "\u2225", Dat = "\u2192", Nat = "\u2191", Iat = "\xAD", Pat = "\u03A3", $at = "\u03C3", Bat = "\u03C2", Fat = "\u03C2", zat = "\u223C", Vat = "\u2A6A", Uat = "\u2243", qat = "\u2243", Qat = "\u2A9E", Yat = "\u2AA0", Wat = "\u2A9D", Gat = "\u2A9F", Hat = "\u2246", Xat = "\u2A24", Zat = "\u2972", jat = "\u2190", Kat = "\u2218", Jat = "\u2216", eot = "\u2A33", tot = "\u29E4", rot = "\u2223", not = "\u2323", iot = "\u2AAA", sot = "\u2AAC", aot = "\u2AAC\uFE00", oot = "\u042C", lot = "\u044C", cot = "\u233F", uot = "\u29C4", hot = "/", fot = "\u{1D54A}", dot = "\u{1D564}", pot = "\u2660", got = "\u2660", mot = "\u2225", vot = "\u2293", yot = "\u2293\uFE00", bot = "\u2294", xot = "\u2294\uFE00", wot = "\u221A", Oot = "\u228F", kot = "\u2291", Sot = "\u228F", Tot = "\u2291", Cot = "\u2290", Eot = "\u2292", _ot = "\u2290", Aot = "\u2292", Lot = "\u25A1", Rot = "\u25A1", Mot = "\u2293", Dot = "\u228F", Not = "\u2291", Iot = "\u2290", Pot = "\u2292", $ot = "\u2294", Bot = "\u25AA", Fot = "\u25A1", zot = "\u25AA", Vot = "\u2192", Uot = "\u{1D4AE}", qot = "\u{1D4C8}", Qot = "\u2216", Yot = "\u2323", Wot = "\u22C6", Got = "\u22C6", Hot = "\u2606", Xot = "\u2605", Zot = "\u03F5", jot = "\u03D5", Kot = "\xAF", Jot = "\u2282", elt = "\u22D0", tlt = "\u2ABD", rlt = "\u2AC5", nlt = "\u2286", ilt = "\u2AC3", slt = "\u2AC1", alt = "\u2ACB", olt = "\u228A", llt = "\u2ABF", clt = "\u2979", ult = "\u2282", hlt = "\u22D0", flt = "\u2286", dlt = "\u2AC5", plt = "\u2286", glt = "\u228A", mlt = "\u2ACB", vlt = "\u2AC7", ylt = "\u2AD5", blt = "\u2AD3", xlt = "\u2AB8", wlt = "\u227B", Olt = "\u227D", klt = "\u227B", Slt = "\u2AB0", Tlt = "\u227D", Clt = "\u227F", Elt = "\u2AB0", _lt = "\u2ABA", Alt = "\u2AB6", Llt = "\u22E9", Rlt = "\u227F", Mlt = "\u220B", Dlt = "\u2211", Nlt = "\u2211", Ilt = "\u266A", Plt = "\xB9", $lt = "\xB2", Blt = "\xB3", Flt = "\u2283", zlt = "\u22D1", Vlt = "\u2ABE", Ult = "\u2AD8", qlt = "\u2AC6", Qlt = "\u2287", Ylt = "\u2AC4", Wlt = "\u2283", Glt = "\u2287", Hlt = "\u27C9", Xlt = "\u2AD7", Zlt = "\u297B", jlt = "\u2AC2", Klt = "\u2ACC", Jlt = "\u228B", ect = "\u2AC0", tct = "\u2283", rct = "\u22D1", nct = "\u2287", ict = "\u2AC6", sct = "\u228B", act = "\u2ACC", oct = "\u2AC8", lct = "\u2AD4", cct = "\u2AD6", uct = "\u2926", hct = "\u2199", fct = "\u21D9", dct = "\u2199", pct = "\u292A", gct = "\xDF", mct = " ", vct = "\u2316", yct = "\u03A4", bct = "\u03C4", xct = "\u23B4", wct = "\u0164", Oct = "\u0165", kct = "\u0162", Sct = "\u0163", Tct = "\u0422", Cct = "\u0442", Ect = "\u20DB", _ct = "\u2315", Act = "\u{1D517}", Lct = "\u{1D531}", Rct = "\u2234", Mct = "\u2234", Dct = "\u2234", Nct = "\u0398", Ict = "\u03B8", Pct = "\u03D1", $ct = "\u03D1", Bct = "\u2248", Fct = "\u223C", zct = "\u205F\u200A", Vct = "\u2009", Uct = "\u2009", qct = "\u2248", Qct = "\u223C", Yct = "\xDE", Wct = "\xFE", Gct = "\u02DC", Hct = "\u223C", Xct = "\u2243", Zct = "\u2245", jct = "\u2248", Kct = "\u2A31", Jct = "\u22A0", eut = "\xD7", tut = "\u2A30", rut = "\u222D", nut = "\u2928", iut = "\u2336", sut = "\u2AF1", aut = "\u22A4", out = "\u{1D54B}", lut = "\u{1D565}", cut = "\u2ADA", uut = "\u2929", hut = "\u2034", fut = "\u2122", dut = "\u2122", put = "\u25B5", gut = "\u25BF", mut = "\u25C3", vut = "\u22B4", yut = "\u225C", but = "\u25B9", xut = "\u22B5", wut = "\u25EC", Out = "\u225C", kut = "\u2A3A", Sut = "\u20DB", Tut = "\u2A39", Cut = "\u29CD", Eut = "\u2A3B", _ut = "\u23E2", Aut = "\u{1D4AF}", Lut = "\u{1D4C9}", Rut = "\u0426", Mut = "\u0446", Dut = "\u040B", Nut = "\u045B", Iut = "\u0166", Put = "\u0167", $ut = "\u226C", But = "\u219E", Fut = "\u21A0", zut = "\xDA", Vut = "\xFA", Uut = "\u2191", qut = "\u219F", Qut = "\u21D1", Yut = "\u2949", Wut = "\u040E", Gut = "\u045E", Hut = "\u016C", Xut = "\u016D", Zut = "\xDB", jut = "\xFB", Kut = "\u0423", Jut = "\u0443", eht = "\u21C5", tht = "\u0170", rht = "\u0171", nht = "\u296E", iht = "\u297E", sht = "\u{1D518}", aht = "\u{1D532}", oht = "\xD9", lht = "\xF9", cht = "\u2963", uht = "\u21BF", hht = "\u21BE", fht = "\u2580", dht = "\u231C", pht = "\u231C", ght = "\u230F", mht = "\u25F8", vht = "\u016A", yht = "\u016B", bht = "\xA8", xht = "_", wht = "\u23DF", Oht = "\u23B5", kht = "\u23DD", Sht = "\u22C3", Tht = "\u228E", Cht = "\u0172", Eht = "\u0173", _ht = "\u{1D54C}", Aht = "\u{1D566}", Lht = "\u2912", Rht = "\u2191", Mht = "\u2191", Dht = "\u21D1", Nht = "\u21C5", Iht = "\u2195", Pht = "\u2195", $ht = "\u21D5", Bht = "\u296E", Fht = "\u21BF", zht = "\u21BE", Vht = "\u228E", Uht = "\u2196", qht = "\u2197", Qht = "\u03C5", Yht = "\u03D2", Wht = "\u03D2", Ght = "\u03A5", Hht = "\u03C5", Xht = "\u21A5", Zht = "\u22A5", jht = "\u21C8", Kht = "\u231D", Jht = "\u231D", eft = "\u230E", tft = "\u016E", rft = "\u016F", nft = "\u25F9", ift = "\u{1D4B0}", sft = "\u{1D4CA}", aft = "\u22F0", oft = "\u0168", lft = "\u0169", cft = "\u25B5", uft = "\u25B4", hft = "\u21C8", fft = "\xDC", dft = "\xFC", pft = "\u29A7", gft = "\u299C", mft = "\u03F5", vft = "\u03F0", yft = "\u2205", bft = "\u03D5", xft = "\u03D6", wft = "\u221D", Oft = "\u2195", kft = "\u21D5", Sft = "\u03F1", Tft = "\u03C2", Cft = "\u228A\uFE00", Eft = "\u2ACB\uFE00", _ft = "\u228B\uFE00", Aft = "\u2ACC\uFE00", Lft = "\u03D1", Rft = "\u22B2", Mft = "\u22B3", Dft = "\u2AE8", Nft = "\u2AEB", Ift = "\u2AE9", Pft = "\u0412", $ft = "\u0432", Bft = "\u22A2", Fft = "\u22A8", zft = "\u22A9", Vft = "\u22AB", Uft = "\u2AE6", qft = "\u22BB", Qft = "\u2228", Yft = "\u22C1", Wft = "\u225A", Gft = "\u22EE", Hft = "|", Xft = "\u2016", Zft = "|", jft = "\u2016", Kft = "\u2223", Jft = "|", edt = "\u2758", tdt = "\u2240", rdt = "\u200A", ndt = "\u{1D519}", idt = "\u{1D533}", sdt = "\u22B2", adt = "\u2282\u20D2", odt = "\u2283\u20D2", ldt = "\u{1D54D}", cdt = "\u{1D567}", udt = "\u221D", hdt = "\u22B3", fdt = "\u{1D4B1}", ddt = "\u{1D4CB}", pdt = "\u2ACB\uFE00", gdt = "\u228A\uFE00", mdt = "\u2ACC\uFE00", vdt = "\u228B\uFE00", ydt = "\u22AA", bdt = "\u299A", xdt = "\u0174", wdt = "\u0175", Odt = "\u2A5F", kdt = "\u2227", Sdt = "\u22C0", Tdt = "\u2259", Cdt = "\u2118", Edt = "\u{1D51A}", _dt = "\u{1D534}", Adt = "\u{1D54E}", Ldt = "\u{1D568}", Rdt = "\u2118", Mdt = "\u2240", Ddt = "\u2240", Ndt = "\u{1D4B2}", Idt = "\u{1D4CC}", Pdt = "\u22C2", $dt = "\u25EF", Bdt = "\u22C3", Fdt = "\u25BD", zdt = "\u{1D51B}", Vdt = "\u{1D535}", Udt = "\u27F7", qdt = "\u27FA", Qdt = "\u039E", Ydt = "\u03BE", Wdt = "\u27F5", Gdt = "\u27F8", Hdt = "\u27FC", Xdt = "\u22FB", Zdt = "\u2A00", jdt = "\u{1D54F}", Kdt = "\u{1D569}", Jdt = "\u2A01", e0t = "\u2A02", t0t = "\u27F6", r0t = "\u27F9", n0t = "\u{1D4B3}", i0t = "\u{1D4CD}", s0t = "\u2A06", a0t = "\u2A04", o0t = "\u25B3", l0t = "\u22C1", c0t = "\u22C0", u0t = "\xDD", h0t = "\xFD", f0t = "\u042F", d0t = "\u044F", p0t = "\u0176", g0t = "\u0177", m0t = "\u042B", v0t = "\u044B", y0t = "\xA5", b0t = "\u{1D51C}", x0t = "\u{1D536}", w0t = "\u0407", O0t = "\u0457", k0t = "\u{1D550}", S0t = "\u{1D56A}", T0t = "\u{1D4B4}", C0t = "\u{1D4CE}", E0t = "\u042E", _0t = "\u044E", A0t = "\xFF", L0t = "\u0178", R0t = "\u0179", M0t = "\u017A", D0t = "\u017D", N0t = "\u017E", I0t = "\u0417", P0t = "\u0437", $0t = "\u017B", B0t = "\u017C", F0t = "\u2128", z0t = "\u200B", V0t = "\u0396", U0t = "\u03B6", q0t = "\u{1D537}", Q0t = "\u2128", Y0t = "\u0416", W0t = "\u0436", G0t = "\u21DD", H0t = "\u{1D56B}", X0t = "\u2124", Z0t = "\u{1D4B5}", j0t = "\u{1D4CF}", K0t = "\u200D", J0t = "\u200C", ept = { + Aacute: ILe, + aacute: PLe, + Abreve: $Le, + abreve: BLe, + ac: FLe, + acd: zLe, + acE: VLe, + Acirc: ULe, + acirc: qLe, + acute: QLe, + Acy: YLe, + acy: WLe, + AElig: GLe, + aelig: HLe, + af: XLe, + Afr: ZLe, + afr: jLe, + Agrave: KLe, + agrave: JLe, + alefsym: e9e, + aleph: t9e, + Alpha: r9e, + alpha: n9e, + Amacr: i9e, + amacr: s9e, + amalg: a9e, + amp: o9e, + AMP: l9e, + andand: c9e, + And: u9e, + and: h9e, + andd: f9e, + andslope: d9e, + andv: p9e, + ang: g9e, + ange: m9e, + angle: v9e, + angmsdaa: y9e, + angmsdab: b9e, + angmsdac: x9e, + angmsdad: w9e, + angmsdae: O9e, + angmsdaf: k9e, + angmsdag: S9e, + angmsdah: T9e, + angmsd: C9e, + angrt: E9e, + angrtvb: _9e, + angrtvbd: A9e, + angsph: L9e, + angst: R9e, + angzarr: M9e, + Aogon: D9e, + aogon: N9e, + Aopf: I9e, + aopf: P9e, + apacir: $9e, + ap: B9e, + apE: F9e, + ape: z9e, + apid: V9e, + apos: U9e, + ApplyFunction: q9e, + approx: Q9e, + approxeq: Y9e, + Aring: W9e, + aring: G9e, + Ascr: H9e, + ascr: X9e, + Assign: Z9e, + ast: j9e, + asymp: K9e, + asympeq: J9e, + Atilde: eRe, + atilde: tRe, + Auml: rRe, + auml: nRe, + awconint: iRe, + awint: sRe, + backcong: aRe, + backepsilon: oRe, + backprime: lRe, + backsim: cRe, + backsimeq: uRe, + Backslash: hRe, + Barv: fRe, + barvee: dRe, + barwed: pRe, + Barwed: gRe, + barwedge: mRe, + bbrk: vRe, + bbrktbrk: yRe, + bcong: bRe, + Bcy: xRe, + bcy: wRe, + bdquo: ORe, + becaus: kRe, + because: SRe, + Because: TRe, + bemptyv: CRe, + bepsi: ERe, + bernou: _Re, + Bernoullis: ARe, + Beta: LRe, + beta: RRe, + beth: MRe, + between: DRe, + Bfr: NRe, + bfr: IRe, + bigcap: PRe, + bigcirc: $Re, + bigcup: BRe, + bigodot: FRe, + bigoplus: zRe, + bigotimes: VRe, + bigsqcup: URe, + bigstar: qRe, + bigtriangledown: QRe, + bigtriangleup: YRe, + biguplus: WRe, + bigvee: GRe, + bigwedge: HRe, + bkarow: XRe, + blacklozenge: ZRe, + blacksquare: jRe, + blacktriangle: KRe, + blacktriangledown: JRe, + blacktriangleleft: eMe, + blacktriangleright: tMe, + blank: rMe, + blk12: nMe, + blk14: iMe, + blk34: sMe, + block: aMe, + bne: oMe, + bnequiv: lMe, + bNot: cMe, + bnot: uMe, + Bopf: hMe, + bopf: fMe, + bot: dMe, + bottom: pMe, + bowtie: gMe, + boxbox: mMe, + boxdl: vMe, + boxdL: yMe, + boxDl: bMe, + boxDL: xMe, + boxdr: wMe, + boxdR: OMe, + boxDr: kMe, + boxDR: SMe, + boxh: TMe, + boxH: CMe, + boxhd: EMe, + boxHd: _Me, + boxhD: AMe, + boxHD: LMe, + boxhu: RMe, + boxHu: MMe, + boxhU: DMe, + boxHU: NMe, + boxminus: IMe, + boxplus: PMe, + boxtimes: $Me, + boxul: BMe, + boxuL: FMe, + boxUl: zMe, + boxUL: VMe, + boxur: UMe, + boxuR: qMe, + boxUr: QMe, + boxUR: YMe, + boxv: WMe, + boxV: GMe, + boxvh: HMe, + boxvH: XMe, + boxVh: ZMe, + boxVH: jMe, + boxvl: KMe, + boxvL: JMe, + boxVl: eDe, + boxVL: tDe, + boxvr: rDe, + boxvR: nDe, + boxVr: iDe, + boxVR: sDe, + bprime: aDe, + breve: oDe, + Breve: lDe, + brvbar: cDe, + bscr: uDe, + Bscr: hDe, + bsemi: fDe, + bsim: dDe, + bsime: pDe, + bsolb: gDe, + bsol: mDe, + bsolhsub: vDe, + bull: yDe, + bullet: bDe, + bump: xDe, + bumpE: wDe, + bumpe: ODe, + Bumpeq: kDe, + bumpeq: SDe, + Cacute: TDe, + cacute: CDe, + capand: EDe, + capbrcup: _De, + capcap: ADe, + cap: LDe, + Cap: RDe, + capcup: MDe, + capdot: DDe, + CapitalDifferentialD: NDe, + caps: IDe, + caret: PDe, + caron: $De, + Cayleys: BDe, + ccaps: FDe, + Ccaron: zDe, + ccaron: VDe, + Ccedil: UDe, + ccedil: qDe, + Ccirc: QDe, + ccirc: YDe, + Cconint: WDe, + ccups: GDe, + ccupssm: HDe, + Cdot: XDe, + cdot: ZDe, + cedil: jDe, + Cedilla: KDe, + cemptyv: JDe, + cent: eNe, + centerdot: tNe, + CenterDot: rNe, + cfr: nNe, + Cfr: iNe, + CHcy: sNe, + chcy: aNe, + check: oNe, + checkmark: lNe, + Chi: cNe, + chi: uNe, + circ: hNe, + circeq: fNe, + circlearrowleft: dNe, + circlearrowright: pNe, + circledast: gNe, + circledcirc: mNe, + circleddash: vNe, + CircleDot: yNe, + circledR: bNe, + circledS: xNe, + CircleMinus: wNe, + CirclePlus: ONe, + CircleTimes: kNe, + cir: SNe, + cirE: TNe, + cire: CNe, + cirfnint: ENe, + cirmid: _Ne, + cirscir: ANe, + ClockwiseContourIntegral: LNe, + CloseCurlyDoubleQuote: RNe, + CloseCurlyQuote: MNe, + clubs: DNe, + clubsuit: NNe, + colon: INe, + Colon: PNe, + Colone: $Ne, + colone: BNe, + coloneq: FNe, + comma: zNe, + commat: VNe, + comp: UNe, + compfn: qNe, + complement: QNe, + complexes: YNe, + cong: WNe, + congdot: GNe, + Congruent: HNe, + conint: XNe, + Conint: ZNe, + ContourIntegral: jNe, + copf: KNe, + Copf: JNe, + coprod: eIe, + Coproduct: tIe, + copy: rIe, + COPY: nIe, + copysr: iIe, + CounterClockwiseContourIntegral: sIe, + crarr: aIe, + cross: oIe, + Cross: lIe, + Cscr: cIe, + cscr: uIe, + csub: hIe, + csube: fIe, + csup: dIe, + csupe: pIe, + ctdot: gIe, + cudarrl: mIe, + cudarrr: vIe, + cuepr: yIe, + cuesc: bIe, + cularr: xIe, + cularrp: wIe, + cupbrcap: OIe, + cupcap: kIe, + CupCap: SIe, + cup: TIe, + Cup: CIe, + cupcup: EIe, + cupdot: _Ie, + cupor: AIe, + cups: LIe, + curarr: RIe, + curarrm: MIe, + curlyeqprec: DIe, + curlyeqsucc: NIe, + curlyvee: IIe, + curlywedge: PIe, + curren: $Ie, + curvearrowleft: BIe, + curvearrowright: FIe, + cuvee: zIe, + cuwed: VIe, + cwconint: UIe, + cwint: qIe, + cylcty: QIe, + dagger: YIe, + Dagger: WIe, + daleth: GIe, + darr: HIe, + Darr: XIe, + dArr: ZIe, + dash: jIe, + Dashv: KIe, + dashv: JIe, + dbkarow: ePe, + dblac: tPe, + Dcaron: rPe, + dcaron: nPe, + Dcy: iPe, + dcy: sPe, + ddagger: aPe, + ddarr: oPe, + DD: lPe, + dd: cPe, + DDotrahd: uPe, + ddotseq: hPe, + deg: fPe, + Del: dPe, + Delta: pPe, + delta: gPe, + demptyv: mPe, + dfisht: vPe, + Dfr: yPe, + dfr: bPe, + dHar: xPe, + dharl: wPe, + dharr: OPe, + DiacriticalAcute: kPe, + DiacriticalDot: SPe, + DiacriticalDoubleAcute: TPe, + DiacriticalGrave: CPe, + DiacriticalTilde: EPe, + diam: _Pe, + diamond: APe, + Diamond: LPe, + diamondsuit: RPe, + diams: MPe, + die: DPe, + DifferentialD: NPe, + digamma: IPe, + disin: PPe, + div: $Pe, + divide: BPe, + divideontimes: FPe, + divonx: zPe, + DJcy: VPe, + djcy: UPe, + dlcorn: qPe, + dlcrop: QPe, + dollar: YPe, + Dopf: WPe, + dopf: GPe, + Dot: HPe, + dot: XPe, + DotDot: ZPe, + doteq: jPe, + doteqdot: KPe, + DotEqual: JPe, + dotminus: e$e, + dotplus: t$e, + dotsquare: r$e, + doublebarwedge: n$e, + DoubleContourIntegral: i$e, + DoubleDot: s$e, + DoubleDownArrow: a$e, + DoubleLeftArrow: o$e, + DoubleLeftRightArrow: l$e, + DoubleLeftTee: c$e, + DoubleLongLeftArrow: u$e, + DoubleLongLeftRightArrow: h$e, + DoubleLongRightArrow: f$e, + DoubleRightArrow: d$e, + DoubleRightTee: p$e, + DoubleUpArrow: g$e, + DoubleUpDownArrow: m$e, + DoubleVerticalBar: v$e, + DownArrowBar: y$e, + downarrow: b$e, + DownArrow: x$e, + Downarrow: w$e, + DownArrowUpArrow: O$e, + DownBreve: k$e, + downdownarrows: S$e, + downharpoonleft: T$e, + downharpoonright: C$e, + DownLeftRightVector: E$e, + DownLeftTeeVector: _$e, + DownLeftVectorBar: A$e, + DownLeftVector: L$e, + DownRightTeeVector: R$e, + DownRightVectorBar: M$e, + DownRightVector: D$e, + DownTeeArrow: N$e, + DownTee: I$e, + drbkarow: P$e, + drcorn: $$e, + drcrop: B$e, + Dscr: F$e, + dscr: z$e, + DScy: V$e, + dscy: U$e, + dsol: q$e, + Dstrok: Q$e, + dstrok: Y$e, + dtdot: W$e, + dtri: G$e, + dtrif: H$e, + duarr: X$e, + duhar: Z$e, + dwangle: j$e, + DZcy: K$e, + dzcy: J$e, + dzigrarr: eBe, + Eacute: tBe, + eacute: rBe, + easter: nBe, + Ecaron: iBe, + ecaron: sBe, + Ecirc: aBe, + ecirc: oBe, + ecir: lBe, + ecolon: cBe, + Ecy: uBe, + ecy: hBe, + eDDot: fBe, + Edot: dBe, + edot: pBe, + eDot: gBe, + ee: mBe, + efDot: vBe, + Efr: yBe, + efr: bBe, + eg: xBe, + Egrave: wBe, + egrave: OBe, + egs: kBe, + egsdot: SBe, + el: TBe, + Element: CBe, + elinters: EBe, + ell: _Be, + els: ABe, + elsdot: LBe, + Emacr: RBe, + emacr: MBe, + empty: DBe, + emptyset: NBe, + EmptySmallSquare: IBe, + emptyv: PBe, + EmptyVerySmallSquare: $Be, + emsp13: BBe, + emsp14: FBe, + emsp: zBe, + ENG: VBe, + eng: UBe, + ensp: qBe, + Eogon: QBe, + eogon: YBe, + Eopf: WBe, + eopf: GBe, + epar: HBe, + eparsl: XBe, + eplus: ZBe, + epsi: jBe, + Epsilon: KBe, + epsilon: JBe, + epsiv: eFe, + eqcirc: tFe, + eqcolon: rFe, + eqsim: nFe, + eqslantgtr: iFe, + eqslantless: sFe, + Equal: aFe, + equals: oFe, + EqualTilde: lFe, + equest: cFe, + Equilibrium: uFe, + equiv: hFe, + equivDD: fFe, + eqvparsl: dFe, + erarr: pFe, + erDot: gFe, + escr: mFe, + Escr: vFe, + esdot: yFe, + Esim: bFe, + esim: xFe, + Eta: wFe, + eta: OFe, + ETH: kFe, + eth: SFe, + Euml: TFe, + euml: CFe, + euro: EFe, + excl: _Fe, + exist: AFe, + Exists: LFe, + expectation: RFe, + exponentiale: MFe, + ExponentialE: DFe, + fallingdotseq: NFe, + Fcy: IFe, + fcy: PFe, + female: $Fe, + ffilig: BFe, + fflig: FFe, + ffllig: zFe, + Ffr: VFe, + ffr: UFe, + filig: qFe, + FilledSmallSquare: QFe, + FilledVerySmallSquare: YFe, + fjlig: WFe, + flat: GFe, + fllig: HFe, + fltns: XFe, + fnof: ZFe, + Fopf: jFe, + fopf: KFe, + forall: JFe, + ForAll: eze, + fork: tze, + forkv: rze, + Fouriertrf: nze, + fpartint: ize, + frac12: sze, + frac13: aze, + frac14: oze, + frac15: lze, + frac16: cze, + frac18: uze, + frac23: hze, + frac25: fze, + frac34: dze, + frac35: pze, + frac38: gze, + frac45: mze, + frac56: vze, + frac58: yze, + frac78: bze, + frasl: xze, + frown: wze, + fscr: Oze, + Fscr: kze, + gacute: Sze, + Gamma: Tze, + gamma: Cze, + Gammad: Eze, + gammad: _ze, + gap: Aze, + Gbreve: Lze, + gbreve: Rze, + Gcedil: Mze, + Gcirc: Dze, + gcirc: Nze, + Gcy: Ize, + gcy: Pze, + Gdot: $ze, + gdot: Bze, + ge: Fze, + gE: zze, + gEl: Vze, + gel: Uze, + geq: qze, + geqq: Qze, + geqslant: Yze, + gescc: Wze, + ges: Gze, + gesdot: Hze, + gesdoto: Xze, + gesdotol: Zze, + gesl: jze, + gesles: Kze, + Gfr: Jze, + gfr: eVe, + gg: tVe, + Gg: rVe, + ggg: nVe, + gimel: iVe, + GJcy: sVe, + gjcy: aVe, + gla: oVe, + gl: lVe, + glE: cVe, + glj: uVe, + gnap: hVe, + gnapprox: fVe, + gne: dVe, + gnE: pVe, + gneq: gVe, + gneqq: mVe, + gnsim: vVe, + Gopf: yVe, + gopf: bVe, + grave: xVe, + GreaterEqual: wVe, + GreaterEqualLess: OVe, + GreaterFullEqual: kVe, + GreaterGreater: SVe, + GreaterLess: TVe, + GreaterSlantEqual: CVe, + GreaterTilde: EVe, + Gscr: _Ve, + gscr: AVe, + gsim: LVe, + gsime: RVe, + gsiml: MVe, + gtcc: DVe, + gtcir: NVe, + gt: IVe, + GT: PVe, + Gt: $Ve, + gtdot: BVe, + gtlPar: FVe, + gtquest: zVe, + gtrapprox: VVe, + gtrarr: UVe, + gtrdot: qVe, + gtreqless: QVe, + gtreqqless: YVe, + gtrless: WVe, + gtrsim: GVe, + gvertneqq: HVe, + gvnE: XVe, + Hacek: ZVe, + hairsp: jVe, + half: KVe, + hamilt: JVe, + HARDcy: eUe, + hardcy: tUe, + harrcir: rUe, + harr: nUe, + hArr: iUe, + harrw: sUe, + Hat: aUe, + hbar: oUe, + Hcirc: lUe, + hcirc: cUe, + hearts: uUe, + heartsuit: hUe, + hellip: fUe, + hercon: dUe, + hfr: pUe, + Hfr: gUe, + HilbertSpace: mUe, + hksearow: vUe, + hkswarow: yUe, + hoarr: bUe, + homtht: xUe, + hookleftarrow: wUe, + hookrightarrow: OUe, + hopf: kUe, + Hopf: SUe, + horbar: TUe, + HorizontalLine: CUe, + hscr: EUe, + Hscr: _Ue, + hslash: AUe, + Hstrok: LUe, + hstrok: RUe, + HumpDownHump: MUe, + HumpEqual: DUe, + hybull: NUe, + hyphen: IUe, + Iacute: PUe, + iacute: $Ue, + ic: BUe, + Icirc: FUe, + icirc: zUe, + Icy: VUe, + icy: UUe, + Idot: qUe, + IEcy: QUe, + iecy: YUe, + iexcl: WUe, + iff: GUe, + ifr: HUe, + Ifr: XUe, + Igrave: ZUe, + igrave: jUe, + ii: KUe, + iiiint: JUe, + iiint: eqe, + iinfin: tqe, + iiota: rqe, + IJlig: nqe, + ijlig: iqe, + Imacr: sqe, + imacr: aqe, + image: oqe, + ImaginaryI: lqe, + imagline: cqe, + imagpart: uqe, + imath: hqe, + Im: fqe, + imof: dqe, + imped: pqe, + Implies: gqe, + incare: mqe, in: "\u2208", - infin: mqe, - infintie: vqe, - inodot: yqe, - intcal: bqe, - int: xqe, - Int: wqe, - integers: Oqe, - Integral: kqe, - intercal: Sqe, - Intersection: Tqe, - intlarhk: Cqe, - intprod: Eqe, - InvisibleComma: _qe, - InvisibleTimes: Aqe, - IOcy: Lqe, - iocy: Rqe, - Iogon: Mqe, - iogon: Dqe, - Iopf: Nqe, - iopf: Iqe, - Iota: Pqe, - iota: $qe, - iprod: Bqe, - iquest: Fqe, - iscr: zqe, - Iscr: Vqe, - isin: Uqe, - isindot: qqe, - isinE: Qqe, - isins: Yqe, - isinsv: Wqe, - isinv: Gqe, - it: Hqe, - Itilde: Xqe, - itilde: Zqe, - Iukcy: jqe, - iukcy: Kqe, - Iuml: Jqe, - iuml: eQe, - Jcirc: tQe, - jcirc: rQe, - Jcy: nQe, - jcy: iQe, - Jfr: sQe, - jfr: aQe, - jmath: oQe, - Jopf: lQe, - jopf: cQe, - Jscr: uQe, - jscr: hQe, - Jsercy: fQe, - jsercy: dQe, - Jukcy: pQe, - jukcy: gQe, - Kappa: mQe, - kappa: vQe, - kappav: yQe, - Kcedil: bQe, - kcedil: xQe, - Kcy: wQe, - kcy: OQe, - Kfr: kQe, - kfr: SQe, - kgreen: TQe, - KHcy: CQe, - khcy: EQe, - KJcy: _Qe, - kjcy: AQe, - Kopf: LQe, - kopf: RQe, - Kscr: MQe, - kscr: DQe, - lAarr: NQe, - Lacute: IQe, - lacute: PQe, - laemptyv: $Qe, - lagran: BQe, - Lambda: FQe, - lambda: zQe, - lang: VQe, - Lang: UQe, - langd: qQe, - langle: QQe, - lap: YQe, - Laplacetrf: WQe, - laquo: GQe, - larrb: HQe, - larrbfs: XQe, - larr: ZQe, - Larr: jQe, - lArr: KQe, - larrfs: JQe, - larrhk: eYe, - larrlp: tYe, - larrpl: rYe, - larrsim: nYe, - larrtl: iYe, - latail: sYe, - lAtail: aYe, - lat: oYe, - late: lYe, - lates: cYe, - lbarr: uYe, - lBarr: hYe, - lbbrk: fYe, - lbrace: dYe, - lbrack: pYe, - lbrke: gYe, - lbrksld: mYe, - lbrkslu: vYe, - Lcaron: yYe, - lcaron: bYe, - Lcedil: xYe, - lcedil: wYe, - lceil: OYe, - lcub: kYe, - Lcy: SYe, - lcy: TYe, - ldca: CYe, - ldquo: EYe, - ldquor: _Ye, - ldrdhar: AYe, - ldrushar: LYe, - ldsh: RYe, - le: MYe, - lE: DYe, - LeftAngleBracket: NYe, - LeftArrowBar: IYe, - leftarrow: PYe, - LeftArrow: $Ye, - Leftarrow: BYe, - LeftArrowRightArrow: FYe, - leftarrowtail: zYe, - LeftCeiling: VYe, - LeftDoubleBracket: UYe, - LeftDownTeeVector: qYe, - LeftDownVectorBar: QYe, - LeftDownVector: YYe, - LeftFloor: WYe, - leftharpoondown: GYe, - leftharpoonup: HYe, - leftleftarrows: XYe, - leftrightarrow: ZYe, - LeftRightArrow: jYe, - Leftrightarrow: KYe, - leftrightarrows: JYe, - leftrightharpoons: eWe, - leftrightsquigarrow: tWe, - LeftRightVector: rWe, - LeftTeeArrow: nWe, - LeftTee: iWe, - LeftTeeVector: sWe, - leftthreetimes: aWe, - LeftTriangleBar: oWe, - LeftTriangle: lWe, - LeftTriangleEqual: cWe, - LeftUpDownVector: uWe, - LeftUpTeeVector: hWe, - LeftUpVectorBar: fWe, - LeftUpVector: dWe, - LeftVectorBar: pWe, - LeftVector: gWe, - lEg: mWe, - leg: vWe, - leq: yWe, - leqq: bWe, - leqslant: xWe, - lescc: wWe, - les: OWe, - lesdot: kWe, - lesdoto: SWe, - lesdotor: TWe, - lesg: CWe, - lesges: EWe, - lessapprox: _We, - lessdot: AWe, - lesseqgtr: LWe, - lesseqqgtr: RWe, - LessEqualGreater: MWe, - LessFullEqual: DWe, - LessGreater: NWe, - lessgtr: IWe, - LessLess: PWe, - lesssim: $We, - LessSlantEqual: BWe, - LessTilde: FWe, - lfisht: zWe, - lfloor: VWe, - Lfr: UWe, - lfr: qWe, - lg: QWe, - lgE: YWe, - lHar: WWe, - lhard: GWe, - lharu: HWe, - lharul: XWe, - lhblk: ZWe, - LJcy: jWe, - ljcy: KWe, - llarr: JWe, - ll: eGe, - Ll: tGe, - llcorner: rGe, - Lleftarrow: nGe, - llhard: iGe, - lltri: sGe, - Lmidot: aGe, - lmidot: oGe, - lmoustache: lGe, - lmoust: cGe, - lnap: uGe, - lnapprox: hGe, - lne: fGe, - lnE: dGe, - lneq: pGe, - lneqq: gGe, - lnsim: mGe, - loang: vGe, - loarr: yGe, - lobrk: bGe, - longleftarrow: xGe, - LongLeftArrow: wGe, - Longleftarrow: OGe, - longleftrightarrow: kGe, - LongLeftRightArrow: SGe, - Longleftrightarrow: TGe, - longmapsto: CGe, - longrightarrow: EGe, - LongRightArrow: _Ge, - Longrightarrow: AGe, - looparrowleft: LGe, - looparrowright: RGe, - lopar: MGe, - Lopf: DGe, - lopf: NGe, - loplus: IGe, - lotimes: PGe, - lowast: $Ge, - lowbar: BGe, - LowerLeftArrow: FGe, - LowerRightArrow: zGe, - loz: VGe, - lozenge: UGe, - lozf: qGe, - lpar: QGe, - lparlt: YGe, - lrarr: WGe, - lrcorner: GGe, - lrhar: HGe, - lrhard: XGe, - lrm: ZGe, - lrtri: jGe, - lsaquo: KGe, - lscr: JGe, - Lscr: eHe, - lsh: tHe, - Lsh: rHe, - lsim: nHe, - lsime: iHe, - lsimg: sHe, - lsqb: aHe, - lsquo: oHe, - lsquor: lHe, - Lstrok: cHe, - lstrok: uHe, - ltcc: hHe, - ltcir: fHe, - lt: dHe, - LT: pHe, - Lt: gHe, - ltdot: mHe, - lthree: vHe, - ltimes: yHe, - ltlarr: bHe, - ltquest: xHe, - ltri: wHe, - ltrie: OHe, - ltrif: kHe, - ltrPar: SHe, - lurdshar: THe, - luruhar: CHe, - lvertneqq: EHe, - lvnE: _He, - macr: AHe, - male: LHe, - malt: RHe, - maltese: MHe, + infin: vqe, + infintie: yqe, + inodot: bqe, + intcal: xqe, + int: wqe, + Int: Oqe, + integers: kqe, + Integral: Sqe, + intercal: Tqe, + Intersection: Cqe, + intlarhk: Eqe, + intprod: _qe, + InvisibleComma: Aqe, + InvisibleTimes: Lqe, + IOcy: Rqe, + iocy: Mqe, + Iogon: Dqe, + iogon: Nqe, + Iopf: Iqe, + iopf: Pqe, + Iota: $qe, + iota: Bqe, + iprod: Fqe, + iquest: zqe, + iscr: Vqe, + Iscr: Uqe, + isin: qqe, + isindot: Qqe, + isinE: Yqe, + isins: Wqe, + isinsv: Gqe, + isinv: Hqe, + it: Xqe, + Itilde: Zqe, + itilde: jqe, + Iukcy: Kqe, + iukcy: Jqe, + Iuml: eQe, + iuml: tQe, + Jcirc: rQe, + jcirc: nQe, + Jcy: iQe, + jcy: sQe, + Jfr: aQe, + jfr: oQe, + jmath: lQe, + Jopf: cQe, + jopf: uQe, + Jscr: hQe, + jscr: fQe, + Jsercy: dQe, + jsercy: pQe, + Jukcy: gQe, + jukcy: mQe, + Kappa: vQe, + kappa: yQe, + kappav: bQe, + Kcedil: xQe, + kcedil: wQe, + Kcy: OQe, + kcy: kQe, + Kfr: SQe, + kfr: TQe, + kgreen: CQe, + KHcy: EQe, + khcy: _Qe, + KJcy: AQe, + kjcy: LQe, + Kopf: RQe, + kopf: MQe, + Kscr: DQe, + kscr: NQe, + lAarr: IQe, + Lacute: PQe, + lacute: $Qe, + laemptyv: BQe, + lagran: FQe, + Lambda: zQe, + lambda: VQe, + lang: UQe, + Lang: qQe, + langd: QQe, + langle: YQe, + lap: WQe, + Laplacetrf: GQe, + laquo: HQe, + larrb: XQe, + larrbfs: ZQe, + larr: jQe, + Larr: KQe, + lArr: JQe, + larrfs: eYe, + larrhk: tYe, + larrlp: rYe, + larrpl: nYe, + larrsim: iYe, + larrtl: sYe, + latail: aYe, + lAtail: oYe, + lat: lYe, + late: cYe, + lates: uYe, + lbarr: hYe, + lBarr: fYe, + lbbrk: dYe, + lbrace: pYe, + lbrack: gYe, + lbrke: mYe, + lbrksld: vYe, + lbrkslu: yYe, + Lcaron: bYe, + lcaron: xYe, + Lcedil: wYe, + lcedil: OYe, + lceil: kYe, + lcub: SYe, + Lcy: TYe, + lcy: CYe, + ldca: EYe, + ldquo: _Ye, + ldquor: AYe, + ldrdhar: LYe, + ldrushar: RYe, + ldsh: MYe, + le: DYe, + lE: NYe, + LeftAngleBracket: IYe, + LeftArrowBar: PYe, + leftarrow: $Ye, + LeftArrow: BYe, + Leftarrow: FYe, + LeftArrowRightArrow: zYe, + leftarrowtail: VYe, + LeftCeiling: UYe, + LeftDoubleBracket: qYe, + LeftDownTeeVector: QYe, + LeftDownVectorBar: YYe, + LeftDownVector: WYe, + LeftFloor: GYe, + leftharpoondown: HYe, + leftharpoonup: XYe, + leftleftarrows: ZYe, + leftrightarrow: jYe, + LeftRightArrow: KYe, + Leftrightarrow: JYe, + leftrightarrows: eWe, + leftrightharpoons: tWe, + leftrightsquigarrow: rWe, + LeftRightVector: nWe, + LeftTeeArrow: iWe, + LeftTee: sWe, + LeftTeeVector: aWe, + leftthreetimes: oWe, + LeftTriangleBar: lWe, + LeftTriangle: cWe, + LeftTriangleEqual: uWe, + LeftUpDownVector: hWe, + LeftUpTeeVector: fWe, + LeftUpVectorBar: dWe, + LeftUpVector: pWe, + LeftVectorBar: gWe, + LeftVector: mWe, + lEg: vWe, + leg: yWe, + leq: bWe, + leqq: xWe, + leqslant: wWe, + lescc: OWe, + les: kWe, + lesdot: SWe, + lesdoto: TWe, + lesdotor: CWe, + lesg: EWe, + lesges: _We, + lessapprox: AWe, + lessdot: LWe, + lesseqgtr: RWe, + lesseqqgtr: MWe, + LessEqualGreater: DWe, + LessFullEqual: NWe, + LessGreater: IWe, + lessgtr: PWe, + LessLess: $We, + lesssim: BWe, + LessSlantEqual: FWe, + LessTilde: zWe, + lfisht: VWe, + lfloor: UWe, + Lfr: qWe, + lfr: QWe, + lg: YWe, + lgE: WWe, + lHar: GWe, + lhard: HWe, + lharu: XWe, + lharul: ZWe, + lhblk: jWe, + LJcy: KWe, + ljcy: JWe, + llarr: eGe, + ll: tGe, + Ll: rGe, + llcorner: nGe, + Lleftarrow: iGe, + llhard: sGe, + lltri: aGe, + Lmidot: oGe, + lmidot: lGe, + lmoustache: cGe, + lmoust: uGe, + lnap: hGe, + lnapprox: fGe, + lne: dGe, + lnE: pGe, + lneq: gGe, + lneqq: mGe, + lnsim: vGe, + loang: yGe, + loarr: bGe, + lobrk: xGe, + longleftarrow: wGe, + LongLeftArrow: OGe, + Longleftarrow: kGe, + longleftrightarrow: SGe, + LongLeftRightArrow: TGe, + Longleftrightarrow: CGe, + longmapsto: EGe, + longrightarrow: _Ge, + LongRightArrow: AGe, + Longrightarrow: LGe, + looparrowleft: RGe, + looparrowright: MGe, + lopar: DGe, + Lopf: NGe, + lopf: IGe, + loplus: PGe, + lotimes: $Ge, + lowast: BGe, + lowbar: FGe, + LowerLeftArrow: zGe, + LowerRightArrow: VGe, + loz: UGe, + lozenge: qGe, + lozf: QGe, + lpar: YGe, + lparlt: WGe, + lrarr: GGe, + lrcorner: HGe, + lrhar: XGe, + lrhard: ZGe, + lrm: jGe, + lrtri: KGe, + lsaquo: JGe, + lscr: eHe, + Lscr: tHe, + lsh: rHe, + Lsh: nHe, + lsim: iHe, + lsime: sHe, + lsimg: aHe, + lsqb: oHe, + lsquo: lHe, + lsquor: cHe, + Lstrok: uHe, + lstrok: hHe, + ltcc: fHe, + ltcir: dHe, + lt: pHe, + LT: gHe, + Lt: mHe, + ltdot: vHe, + lthree: yHe, + ltimes: bHe, + ltlarr: xHe, + ltquest: wHe, + ltri: OHe, + ltrie: kHe, + ltrif: SHe, + ltrPar: THe, + lurdshar: CHe, + luruhar: EHe, + lvertneqq: _He, + lvnE: AHe, + macr: LHe, + male: RHe, + malt: MHe, + maltese: DHe, Map: "\u2905", - map: DHe, - mapsto: NHe, - mapstodown: IHe, - mapstoleft: PHe, - mapstoup: $He, - marker: BHe, - mcomma: FHe, - Mcy: zHe, - mcy: VHe, - mdash: UHe, - mDDot: qHe, - measuredangle: QHe, - MediumSpace: YHe, - Mellintrf: WHe, - Mfr: GHe, - mfr: HHe, - mho: XHe, - micro: ZHe, - midast: jHe, - midcir: KHe, - mid: JHe, - middot: eXe, - minusb: tXe, - minus: rXe, - minusd: nXe, - minusdu: iXe, - MinusPlus: sXe, - mlcp: aXe, - mldr: oXe, - mnplus: lXe, - models: cXe, - Mopf: uXe, - mopf: hXe, - mp: fXe, - mscr: dXe, - Mscr: pXe, - mstpos: gXe, - Mu: mXe, - mu: vXe, - multimap: yXe, - mumap: bXe, - nabla: xXe, - Nacute: wXe, - nacute: OXe, - nang: kXe, - nap: SXe, - napE: TXe, - napid: CXe, - napos: EXe, - napprox: _Xe, - natural: AXe, - naturals: LXe, - natur: RXe, - nbsp: MXe, - nbump: DXe, - nbumpe: NXe, - ncap: IXe, - Ncaron: PXe, - ncaron: $Xe, - Ncedil: BXe, - ncedil: FXe, - ncong: zXe, - ncongdot: VXe, - ncup: UXe, - Ncy: qXe, - ncy: QXe, - ndash: YXe, - nearhk: WXe, - nearr: GXe, - neArr: HXe, - nearrow: XXe, - ne: ZXe, - nedot: jXe, - NegativeMediumSpace: KXe, - NegativeThickSpace: JXe, - NegativeThinSpace: eZe, - NegativeVeryThinSpace: tZe, - nequiv: rZe, - nesear: nZe, - nesim: iZe, - NestedGreaterGreater: sZe, - NestedLessLess: aZe, - NewLine: oZe, - nexist: lZe, - nexists: cZe, - Nfr: uZe, - nfr: hZe, - ngE: fZe, - nge: dZe, - ngeq: pZe, - ngeqq: gZe, - ngeqslant: mZe, - nges: vZe, - nGg: yZe, - ngsim: bZe, - nGt: xZe, - ngt: wZe, - ngtr: OZe, - nGtv: kZe, - nharr: SZe, - nhArr: TZe, - nhpar: CZe, - ni: EZe, - nis: _Ze, - nisd: AZe, - niv: LZe, - NJcy: RZe, - njcy: MZe, - nlarr: DZe, - nlArr: NZe, - nldr: IZe, - nlE: PZe, - nle: $Ze, - nleftarrow: BZe, - nLeftarrow: FZe, - nleftrightarrow: zZe, - nLeftrightarrow: VZe, - nleq: UZe, - nleqq: qZe, - nleqslant: QZe, - nles: YZe, - nless: WZe, - nLl: GZe, - nlsim: HZe, - nLt: XZe, - nlt: ZZe, - nltri: jZe, - nltrie: KZe, - nLtv: JZe, - nmid: eje, - NoBreak: tje, - NonBreakingSpace: rje, - nopf: nje, - Nopf: ije, - Not: sje, - not: aje, - NotCongruent: oje, - NotCupCap: lje, - NotDoubleVerticalBar: cje, - NotElement: uje, - NotEqual: hje, - NotEqualTilde: fje, - NotExists: dje, - NotGreater: pje, - NotGreaterEqual: gje, - NotGreaterFullEqual: mje, - NotGreaterGreater: vje, - NotGreaterLess: yje, - NotGreaterSlantEqual: bje, - NotGreaterTilde: xje, - NotHumpDownHump: wje, - NotHumpEqual: Oje, - notin: kje, - notindot: Sje, - notinE: Tje, - notinva: Cje, - notinvb: Eje, - notinvc: _je, - NotLeftTriangleBar: Aje, - NotLeftTriangle: Lje, - NotLeftTriangleEqual: Rje, - NotLess: Mje, - NotLessEqual: Dje, - NotLessGreater: Nje, - NotLessLess: Ije, - NotLessSlantEqual: Pje, - NotLessTilde: $je, - NotNestedGreaterGreater: Bje, - NotNestedLessLess: Fje, - notni: zje, - notniva: Vje, - notnivb: Uje, - notnivc: qje, - NotPrecedes: Qje, - NotPrecedesEqual: Yje, - NotPrecedesSlantEqual: Wje, - NotReverseElement: Gje, - NotRightTriangleBar: Hje, - NotRightTriangle: Xje, - NotRightTriangleEqual: Zje, - NotSquareSubset: jje, - NotSquareSubsetEqual: Kje, - NotSquareSuperset: Jje, - NotSquareSupersetEqual: eKe, - NotSubset: tKe, - NotSubsetEqual: rKe, - NotSucceeds: nKe, - NotSucceedsEqual: iKe, - NotSucceedsSlantEqual: sKe, - NotSucceedsTilde: aKe, - NotSuperset: oKe, - NotSupersetEqual: lKe, - NotTilde: cKe, - NotTildeEqual: uKe, - NotTildeFullEqual: hKe, - NotTildeTilde: fKe, - NotVerticalBar: dKe, - nparallel: pKe, - npar: gKe, - nparsl: mKe, - npart: vKe, - npolint: yKe, - npr: bKe, - nprcue: xKe, - nprec: wKe, - npreceq: OKe, - npre: kKe, - nrarrc: SKe, - nrarr: TKe, - nrArr: CKe, - nrarrw: EKe, - nrightarrow: _Ke, - nRightarrow: AKe, - nrtri: LKe, - nrtrie: RKe, - nsc: MKe, - nsccue: DKe, - nsce: NKe, - Nscr: IKe, - nscr: PKe, - nshortmid: $Ke, - nshortparallel: BKe, - nsim: FKe, - nsime: zKe, - nsimeq: VKe, - nsmid: UKe, - nspar: qKe, - nsqsube: QKe, - nsqsupe: YKe, - nsub: WKe, - nsubE: GKe, - nsube: HKe, - nsubset: XKe, - nsubseteq: ZKe, - nsubseteqq: jKe, - nsucc: KKe, - nsucceq: JKe, - nsup: eJe, - nsupE: tJe, - nsupe: rJe, - nsupset: nJe, - nsupseteq: iJe, - nsupseteqq: sJe, - ntgl: aJe, - Ntilde: oJe, - ntilde: lJe, - ntlg: cJe, - ntriangleleft: uJe, - ntrianglelefteq: hJe, - ntriangleright: fJe, - ntrianglerighteq: dJe, - Nu: pJe, - nu: gJe, - num: mJe, - numero: vJe, - numsp: yJe, - nvap: bJe, - nvdash: xJe, - nvDash: wJe, - nVdash: OJe, - nVDash: kJe, - nvge: SJe, - nvgt: TJe, - nvHarr: CJe, - nvinfin: EJe, - nvlArr: _Je, - nvle: AJe, - nvlt: LJe, - nvltrie: RJe, - nvrArr: MJe, - nvrtrie: DJe, - nvsim: NJe, - nwarhk: IJe, - nwarr: PJe, - nwArr: $Je, - nwarrow: BJe, - nwnear: FJe, - Oacute: zJe, - oacute: VJe, - oast: UJe, - Ocirc: qJe, - ocirc: QJe, - ocir: YJe, - Ocy: WJe, - ocy: GJe, - odash: HJe, - Odblac: XJe, - odblac: ZJe, - odiv: jJe, - odot: KJe, - odsold: JJe, - OElig: eet, - oelig: tet, - ofcir: ret, - Ofr: net, - ofr: iet, - ogon: set, - Ograve: aet, - ograve: oet, - ogt: cet, - ohbar: uet, - ohm: het, - oint: fet, - olarr: det, - olcir: pet, - olcross: get, - oline: met, - olt: vet, - Omacr: yet, - omacr: bet, - Omega: xet, - omega: wet, - Omicron: Oet, - omicron: ket, - omid: Tet, - ominus: Cet, - Oopf: Eet, - oopf: _et, - opar: Aet, - OpenCurlyDoubleQuote: Let, - OpenCurlyQuote: Ret, - operp: Met, - oplus: Det, - orarr: Net, - Or: Iet, - or: Pet, - ord: $et, - order: Bet, - orderof: Fet, - ordf: zet, - ordm: Vet, - origof: Uet, - oror: qet, - orslope: Qet, - orv: Yet, - oS: Wet, - Oscr: Get, - oscr: Het, - Oslash: Xet, - oslash: Zet, - osol: jet, - Otilde: Ket, - otilde: Jet, - otimesas: ett, - Otimes: ttt, - otimes: rtt, - Ouml: ntt, - ouml: itt, - ovbar: stt, - OverBar: att, - OverBrace: ott, - OverBracket: ltt, - OverParenthesis: ctt, - para: utt, - parallel: htt, - par: ftt, - parsim: dtt, - parsl: ptt, - part: gtt, - PartialD: mtt, - Pcy: vtt, - pcy: ytt, - percnt: btt, - period: xtt, - permil: wtt, - perp: Ott, - pertenk: ktt, - Pfr: Stt, - pfr: Ttt, - Phi: Ctt, - phi: Ett, - phiv: _tt, - phmmat: Att, - phone: Ltt, - Pi: Rtt, - pi: Mtt, - pitchfork: Dtt, - piv: Ntt, - planck: Itt, - planckh: Ptt, - plankv: $tt, - plusacir: Btt, - plusb: Ftt, - pluscir: ztt, - plus: Vtt, - plusdo: Utt, - plusdu: qtt, - pluse: Qtt, - PlusMinus: Ytt, - plusmn: Wtt, - plussim: Gtt, - plustwo: Htt, - pm: Xtt, - Poincareplane: Ztt, - pointint: jtt, - popf: Ktt, - Popf: Jtt, - pound: ert, - prap: trt, - Pr: rrt, - pr: nrt, - prcue: irt, - precapprox: srt, - prec: art, - preccurlyeq: ort, - Precedes: lrt, - PrecedesEqual: crt, - PrecedesSlantEqual: urt, - PrecedesTilde: hrt, - preceq: frt, - precnapprox: drt, - precneqq: prt, - precnsim: grt, - pre: mrt, - prE: vrt, - precsim: yrt, - prime: brt, - Prime: xrt, - primes: wrt, - prnap: Ort, - prnE: krt, - prnsim: Srt, - prod: Trt, - Product: Crt, - profalar: Ert, - profline: _rt, - profsurf: Art, - prop: Lrt, - Proportional: Rrt, - Proportion: Mrt, - propto: Drt, - prsim: Nrt, - prurel: Irt, - Pscr: Prt, - pscr: $rt, - Psi: Brt, - psi: Frt, - puncsp: zrt, - Qfr: Vrt, - qfr: Urt, - qint: qrt, - qopf: Qrt, - Qopf: Yrt, - qprime: Wrt, - Qscr: Grt, - qscr: Hrt, - quaternions: Xrt, - quatint: Zrt, - quest: jrt, - questeq: Krt, - quot: Jrt, - QUOT: ent, - rAarr: tnt, - race: rnt, - Racute: nnt, - racute: int, - radic: snt, - raemptyv: ant, - rang: ont, - Rang: lnt, - rangd: cnt, - range: unt, - rangle: hnt, - raquo: fnt, - rarrap: dnt, - rarrb: pnt, - rarrbfs: gnt, - rarrc: mnt, - rarr: vnt, - Rarr: ynt, - rArr: bnt, - rarrfs: xnt, - rarrhk: wnt, - rarrlp: Ont, - rarrpl: knt, - rarrsim: Snt, - Rarrtl: Tnt, - rarrtl: Cnt, - rarrw: Ent, - ratail: _nt, - rAtail: Ant, - ratio: Lnt, - rationals: Rnt, - rbarr: Mnt, - rBarr: Dnt, - RBarr: Nnt, - rbbrk: Int, - rbrace: Pnt, - rbrack: $nt, - rbrke: Bnt, - rbrksld: Fnt, - rbrkslu: znt, - Rcaron: Vnt, - rcaron: Unt, - Rcedil: qnt, - rcedil: Qnt, - rceil: Ynt, - rcub: Wnt, - Rcy: Gnt, - rcy: Hnt, - rdca: Xnt, - rdldhar: Znt, - rdquo: jnt, - rdquor: Knt, - rdsh: Jnt, - real: eit, - realine: tit, - realpart: rit, - reals: nit, - Re: iit, - rect: sit, - reg: ait, - REG: oit, - ReverseElement: lit, - ReverseEquilibrium: cit, - ReverseUpEquilibrium: uit, - rfisht: hit, - rfloor: fit, - rfr: dit, - Rfr: pit, - rHar: git, - rhard: mit, - rharu: vit, - rharul: yit, - Rho: bit, - rho: xit, - rhov: wit, - RightAngleBracket: Oit, - RightArrowBar: kit, - rightarrow: Sit, - RightArrow: Tit, - Rightarrow: Cit, - RightArrowLeftArrow: Eit, - rightarrowtail: _it, - RightCeiling: Ait, - RightDoubleBracket: Lit, - RightDownTeeVector: Rit, - RightDownVectorBar: Mit, - RightDownVector: Dit, - RightFloor: Nit, - rightharpoondown: Iit, - rightharpoonup: Pit, - rightleftarrows: $it, - rightleftharpoons: Bit, - rightrightarrows: Fit, - rightsquigarrow: zit, - RightTeeArrow: Vit, - RightTee: Uit, - RightTeeVector: qit, - rightthreetimes: Qit, - RightTriangleBar: Yit, - RightTriangle: Wit, - RightTriangleEqual: Git, - RightUpDownVector: Hit, - RightUpTeeVector: Xit, - RightUpVectorBar: Zit, - RightUpVector: jit, - RightVectorBar: Kit, - RightVector: Jit, - ring: est, - risingdotseq: tst, - rlarr: rst, - rlhar: nst, - rlm: ist, - rmoustache: sst, - rmoust: ast, - rnmid: ost, - roang: lst, - roarr: cst, - robrk: ust, - ropar: hst, - ropf: fst, - Ropf: dst, - roplus: pst, - rotimes: gst, - RoundImplies: mst, - rpar: vst, - rpargt: yst, - rppolint: bst, - rrarr: xst, - Rrightarrow: wst, - rsaquo: Ost, - rscr: kst, - Rscr: Sst, - rsh: Tst, - Rsh: Cst, - rsqb: Est, - rsquo: _st, - rsquor: Ast, - rthree: Lst, - rtimes: Rst, - rtri: Mst, - rtrie: Dst, - rtrif: Nst, - rtriltri: Ist, - RuleDelayed: Pst, - ruluhar: $st, - rx: Bst, - Sacute: Fst, - sacute: zst, - sbquo: Vst, - scap: Ust, - Scaron: qst, - scaron: Qst, - Sc: Yst, - sc: Wst, - sccue: Gst, - sce: Hst, - scE: Xst, - Scedil: Zst, - scedil: jst, - Scirc: Kst, - scirc: Jst, - scnap: eat, - scnE: tat, - scnsim: rat, - scpolint: nat, - scsim: iat, - Scy: sat, - scy: aat, - sdotb: oat, - sdot: lat, - sdote: cat, - searhk: uat, - searr: hat, - seArr: fat, - searrow: dat, - sect: pat, - semi: gat, - seswar: mat, - setminus: vat, - setmn: yat, - sext: bat, - Sfr: xat, - sfr: wat, - sfrown: Oat, - sharp: kat, - SHCHcy: Sat, - shchcy: Tat, - SHcy: Cat, - shcy: Eat, - ShortDownArrow: _at, - ShortLeftArrow: Aat, - shortmid: Lat, - shortparallel: Rat, - ShortRightArrow: Mat, - ShortUpArrow: Dat, - shy: Nat, - Sigma: Iat, - sigma: Pat, - sigmaf: $at, - sigmav: Bat, - sim: Fat, - simdot: zat, - sime: Vat, - simeq: Uat, - simg: qat, - simgE: Qat, - siml: Yat, - simlE: Wat, - simne: Gat, - simplus: Hat, - simrarr: Xat, - slarr: Zat, - SmallCircle: jat, - smallsetminus: Kat, - smashp: Jat, - smeparsl: eot, - smid: tot, - smile: rot, - smt: not, - smte: iot, - smtes: sot, - SOFTcy: aot, - softcy: oot, - solbar: lot, - solb: cot, - sol: uot, - Sopf: hot, - sopf: fot, - spades: dot, - spadesuit: pot, - spar: got, - sqcap: mot, - sqcaps: vot, - sqcup: yot, - sqcups: bot, - Sqrt: xot, - sqsub: wot, - sqsube: Oot, - sqsubset: kot, - sqsubseteq: Sot, - sqsup: Tot, - sqsupe: Cot, - sqsupset: Eot, - sqsupseteq: _ot, - square: Aot, - Square: Lot, - SquareIntersection: Rot, - SquareSubset: Mot, - SquareSubsetEqual: Dot, - SquareSuperset: Not, - SquareSupersetEqual: Iot, - SquareUnion: Pot, - squarf: $ot, - squ: Bot, - squf: Fot, - srarr: zot, - Sscr: Vot, - sscr: Uot, - ssetmn: qot, - ssmile: Qot, - sstarf: Yot, - Star: Wot, - star: Got, - starf: Hot, - straightepsilon: Xot, - straightphi: Zot, - strns: jot, - sub: Kot, - Sub: Jot, - subdot: elt, - subE: tlt, - sube: rlt, - subedot: nlt, - submult: ilt, - subnE: slt, - subne: alt, - subplus: olt, - subrarr: llt, - subset: clt, - Subset: ult, - subseteq: hlt, - subseteqq: flt, - SubsetEqual: dlt, - subsetneq: plt, - subsetneqq: glt, - subsim: mlt, - subsub: vlt, - subsup: ylt, - succapprox: blt, - succ: xlt, - succcurlyeq: wlt, - Succeeds: Olt, - SucceedsEqual: klt, - SucceedsSlantEqual: Slt, - SucceedsTilde: Tlt, - succeq: Clt, - succnapprox: Elt, - succneqq: _lt, - succnsim: Alt, - succsim: Llt, - SuchThat: Rlt, - sum: Mlt, - Sum: Dlt, - sung: Nlt, - sup1: Ilt, - sup2: Plt, - sup3: $lt, - sup: Blt, - Sup: Flt, - supdot: zlt, - supdsub: Vlt, - supE: Ult, - supe: qlt, - supedot: Qlt, - Superset: Ylt, - SupersetEqual: Wlt, - suphsol: Glt, - suphsub: Hlt, - suplarr: Xlt, - supmult: Zlt, - supnE: jlt, - supne: Klt, - supplus: Jlt, - supset: ect, - Supset: tct, - supseteq: rct, - supseteqq: nct, - supsetneq: ict, - supsetneqq: sct, - supsim: act, - supsub: oct, - supsup: lct, - swarhk: cct, - swarr: uct, - swArr: hct, - swarrow: fct, - swnwar: dct, - szlig: pct, - Tab: gct, - target: mct, - Tau: vct, - tau: yct, - tbrk: bct, - Tcaron: xct, - tcaron: wct, - Tcedil: Oct, - tcedil: kct, - Tcy: Sct, - tcy: Tct, - tdot: Cct, - telrec: Ect, - Tfr: _ct, - tfr: Act, - there4: Lct, - therefore: Rct, - Therefore: Mct, - Theta: Dct, - theta: Nct, - thetasym: Ict, - thetav: Pct, - thickapprox: $ct, - thicksim: Bct, - ThickSpace: Fct, - ThinSpace: zct, - thinsp: Vct, - thkap: Uct, - thksim: qct, - THORN: Qct, - thorn: Yct, - tilde: Wct, - Tilde: Gct, - TildeEqual: Hct, - TildeFullEqual: Xct, - TildeTilde: Zct, - timesbar: jct, - timesb: Kct, - times: Jct, - timesd: eut, - tint: tut, - toea: rut, - topbot: nut, - topcir: iut, - top: sut, - Topf: aut, - topf: out, - topfork: lut, - tosa: cut, - tprime: uut, - trade: hut, - TRADE: fut, - triangle: dut, - triangledown: put, - triangleleft: gut, - trianglelefteq: mut, - triangleq: vut, - triangleright: yut, - trianglerighteq: but, - tridot: xut, - trie: wut, - triminus: Out, - TripleDot: kut, - triplus: Sut, - trisb: Tut, - tritime: Cut, - trpezium: Eut, - Tscr: _ut, - tscr: Aut, - TScy: Lut, - tscy: Rut, - TSHcy: Mut, - tshcy: Dut, - Tstrok: Nut, - tstrok: Iut, - twixt: Put, - twoheadleftarrow: $ut, - twoheadrightarrow: But, - Uacute: Fut, - uacute: zut, - uarr: Vut, - Uarr: Uut, - uArr: qut, - Uarrocir: Qut, - Ubrcy: Yut, - ubrcy: Wut, - Ubreve: Gut, - ubreve: Hut, - Ucirc: Xut, - ucirc: Zut, - Ucy: jut, - ucy: Kut, - udarr: Jut, - Udblac: eht, - udblac: tht, - udhar: rht, - ufisht: nht, - Ufr: iht, - ufr: sht, - Ugrave: aht, - ugrave: oht, - uHar: lht, - uharl: cht, - uharr: uht, - uhblk: hht, - ulcorn: fht, - ulcorner: dht, - ulcrop: pht, - ultri: ght, - Umacr: mht, - umacr: vht, - uml: yht, - UnderBar: bht, - UnderBrace: xht, - UnderBracket: wht, - UnderParenthesis: Oht, - Union: kht, - UnionPlus: Sht, - Uogon: Tht, - uogon: Cht, - Uopf: Eht, - uopf: _ht, - UpArrowBar: Aht, - uparrow: Lht, - UpArrow: Rht, - Uparrow: Mht, - UpArrowDownArrow: Dht, - updownarrow: Nht, - UpDownArrow: Iht, - Updownarrow: Pht, - UpEquilibrium: $ht, - upharpoonleft: Bht, - upharpoonright: Fht, - uplus: zht, - UpperLeftArrow: Vht, - UpperRightArrow: Uht, - upsi: qht, - Upsi: Qht, - upsih: Yht, - Upsilon: Wht, - upsilon: Ght, - UpTeeArrow: Hht, - UpTee: Xht, - upuparrows: Zht, - urcorn: jht, - urcorner: Kht, - urcrop: Jht, - Uring: eft, - uring: tft, - urtri: rft, - Uscr: nft, - uscr: ift, - utdot: sft, - Utilde: aft, - utilde: oft, - utri: lft, - utrif: cft, - uuarr: uft, - Uuml: hft, - uuml: fft, - uwangle: dft, - vangrt: pft, - varepsilon: gft, - varkappa: mft, - varnothing: vft, - varphi: yft, - varpi: bft, - varpropto: xft, - varr: wft, - vArr: Oft, - varrho: kft, - varsigma: Sft, - varsubsetneq: Tft, - varsubsetneqq: Cft, - varsupsetneq: Eft, - varsupsetneqq: _ft, - vartheta: Aft, - vartriangleleft: Lft, - vartriangleright: Rft, - vBar: Mft, - Vbar: Dft, - vBarv: Nft, - Vcy: Ift, - vcy: Pft, - vdash: $ft, - vDash: Bft, - Vdash: Fft, - VDash: zft, - Vdashl: Vft, - veebar: Uft, - vee: qft, - Vee: Qft, - veeeq: Yft, - vellip: Wft, - verbar: Gft, - Verbar: Hft, - vert: Xft, - Vert: Zft, - VerticalBar: jft, - VerticalLine: Kft, - VerticalSeparator: Jft, - VerticalTilde: edt, - VeryThinSpace: tdt, - Vfr: rdt, - vfr: ndt, - vltri: idt, - vnsub: sdt, - vnsup: adt, - Vopf: odt, - vopf: ldt, - vprop: cdt, - vrtri: udt, - Vscr: hdt, - vscr: fdt, - vsubnE: ddt, - vsubne: pdt, - vsupnE: gdt, - vsupne: mdt, - Vvdash: vdt, - vzigzag: ydt, - Wcirc: bdt, - wcirc: xdt, - wedbar: wdt, - wedge: Odt, - Wedge: kdt, - wedgeq: Sdt, - weierp: Tdt, - Wfr: Cdt, - wfr: Edt, - Wopf: _dt, - wopf: Adt, - wp: Ldt, - wr: Rdt, - wreath: Mdt, - Wscr: Ddt, - wscr: Ndt, - xcap: Idt, - xcirc: Pdt, - xcup: $dt, - xdtri: Bdt, - Xfr: Fdt, - xfr: zdt, - xharr: Vdt, - xhArr: Udt, - Xi: qdt, - xi: Qdt, - xlarr: Ydt, - xlArr: Wdt, - xmap: Gdt, - xnis: Hdt, - xodot: Xdt, - Xopf: Zdt, - xopf: jdt, - xoplus: Kdt, - xotime: Jdt, - xrarr: e0t, - xrArr: t0t, - Xscr: r0t, - xscr: n0t, - xsqcup: i0t, - xuplus: s0t, - xutri: a0t, - xvee: o0t, - xwedge: l0t, - Yacute: c0t, - yacute: u0t, - YAcy: h0t, - yacy: f0t, - Ycirc: d0t, - ycirc: p0t, - Ycy: g0t, - ycy: m0t, - yen: v0t, - Yfr: y0t, - yfr: b0t, - YIcy: x0t, - yicy: w0t, - Yopf: O0t, - yopf: k0t, - Yscr: S0t, - yscr: T0t, - YUcy: C0t, - yucy: E0t, - yuml: _0t, - Yuml: A0t, - Zacute: L0t, - zacute: R0t, - Zcaron: M0t, - zcaron: D0t, - Zcy: N0t, - zcy: I0t, - Zdot: P0t, - zdot: $0t, - zeetrf: B0t, - ZeroWidthSpace: F0t, - Zeta: z0t, - zeta: V0t, - zfr: U0t, - Zfr: q0t, - ZHcy: Q0t, - zhcy: Y0t, - zigrarr: W0t, - zopf: G0t, - Zopf: H0t, - Zscr: X0t, - zscr: Z0t, - zwj: j0t, - zwnj: K0t + map: NHe, + mapsto: IHe, + mapstodown: PHe, + mapstoleft: $He, + mapstoup: BHe, + marker: FHe, + mcomma: zHe, + Mcy: VHe, + mcy: UHe, + mdash: qHe, + mDDot: QHe, + measuredangle: YHe, + MediumSpace: WHe, + Mellintrf: GHe, + Mfr: HHe, + mfr: XHe, + mho: ZHe, + micro: jHe, + midast: KHe, + midcir: JHe, + mid: eXe, + middot: tXe, + minusb: rXe, + minus: nXe, + minusd: iXe, + minusdu: sXe, + MinusPlus: aXe, + mlcp: oXe, + mldr: lXe, + mnplus: cXe, + models: uXe, + Mopf: hXe, + mopf: fXe, + mp: dXe, + mscr: pXe, + Mscr: gXe, + mstpos: mXe, + Mu: vXe, + mu: yXe, + multimap: bXe, + mumap: xXe, + nabla: wXe, + Nacute: OXe, + nacute: kXe, + nang: SXe, + nap: TXe, + napE: CXe, + napid: EXe, + napos: _Xe, + napprox: AXe, + natural: LXe, + naturals: RXe, + natur: MXe, + nbsp: DXe, + nbump: NXe, + nbumpe: IXe, + ncap: PXe, + Ncaron: $Xe, + ncaron: BXe, + Ncedil: FXe, + ncedil: zXe, + ncong: VXe, + ncongdot: UXe, + ncup: qXe, + Ncy: QXe, + ncy: YXe, + ndash: WXe, + nearhk: GXe, + nearr: HXe, + neArr: XXe, + nearrow: ZXe, + ne: jXe, + nedot: KXe, + NegativeMediumSpace: JXe, + NegativeThickSpace: eZe, + NegativeThinSpace: tZe, + NegativeVeryThinSpace: rZe, + nequiv: nZe, + nesear: iZe, + nesim: sZe, + NestedGreaterGreater: aZe, + NestedLessLess: oZe, + NewLine: lZe, + nexist: cZe, + nexists: uZe, + Nfr: hZe, + nfr: fZe, + ngE: dZe, + nge: pZe, + ngeq: gZe, + ngeqq: mZe, + ngeqslant: vZe, + nges: yZe, + nGg: bZe, + ngsim: xZe, + nGt: wZe, + ngt: OZe, + ngtr: kZe, + nGtv: SZe, + nharr: TZe, + nhArr: CZe, + nhpar: EZe, + ni: _Ze, + nis: AZe, + nisd: LZe, + niv: RZe, + NJcy: MZe, + njcy: DZe, + nlarr: NZe, + nlArr: IZe, + nldr: PZe, + nlE: $Ze, + nle: BZe, + nleftarrow: FZe, + nLeftarrow: zZe, + nleftrightarrow: VZe, + nLeftrightarrow: UZe, + nleq: qZe, + nleqq: QZe, + nleqslant: YZe, + nles: WZe, + nless: GZe, + nLl: HZe, + nlsim: XZe, + nLt: ZZe, + nlt: jZe, + nltri: KZe, + nltrie: JZe, + nLtv: eje, + nmid: tje, + NoBreak: rje, + NonBreakingSpace: nje, + nopf: ije, + Nopf: sje, + Not: aje, + not: oje, + NotCongruent: lje, + NotCupCap: cje, + NotDoubleVerticalBar: uje, + NotElement: hje, + NotEqual: fje, + NotEqualTilde: dje, + NotExists: pje, + NotGreater: gje, + NotGreaterEqual: mje, + NotGreaterFullEqual: vje, + NotGreaterGreater: yje, + NotGreaterLess: bje, + NotGreaterSlantEqual: xje, + NotGreaterTilde: wje, + NotHumpDownHump: Oje, + NotHumpEqual: kje, + notin: Sje, + notindot: Tje, + notinE: Cje, + notinva: Eje, + notinvb: _je, + notinvc: Aje, + NotLeftTriangleBar: Lje, + NotLeftTriangle: Rje, + NotLeftTriangleEqual: Mje, + NotLess: Dje, + NotLessEqual: Nje, + NotLessGreater: Ije, + NotLessLess: Pje, + NotLessSlantEqual: $je, + NotLessTilde: Bje, + NotNestedGreaterGreater: Fje, + NotNestedLessLess: zje, + notni: Vje, + notniva: Uje, + notnivb: qje, + notnivc: Qje, + NotPrecedes: Yje, + NotPrecedesEqual: Wje, + NotPrecedesSlantEqual: Gje, + NotReverseElement: Hje, + NotRightTriangleBar: Xje, + NotRightTriangle: Zje, + NotRightTriangleEqual: jje, + NotSquareSubset: Kje, + NotSquareSubsetEqual: Jje, + NotSquareSuperset: eKe, + NotSquareSupersetEqual: tKe, + NotSubset: rKe, + NotSubsetEqual: nKe, + NotSucceeds: iKe, + NotSucceedsEqual: sKe, + NotSucceedsSlantEqual: aKe, + NotSucceedsTilde: oKe, + NotSuperset: lKe, + NotSupersetEqual: cKe, + NotTilde: uKe, + NotTildeEqual: hKe, + NotTildeFullEqual: fKe, + NotTildeTilde: dKe, + NotVerticalBar: pKe, + nparallel: gKe, + npar: mKe, + nparsl: vKe, + npart: yKe, + npolint: bKe, + npr: xKe, + nprcue: wKe, + nprec: OKe, + npreceq: kKe, + npre: SKe, + nrarrc: TKe, + nrarr: CKe, + nrArr: EKe, + nrarrw: _Ke, + nrightarrow: AKe, + nRightarrow: LKe, + nrtri: RKe, + nrtrie: MKe, + nsc: DKe, + nsccue: NKe, + nsce: IKe, + Nscr: PKe, + nscr: $Ke, + nshortmid: BKe, + nshortparallel: FKe, + nsim: zKe, + nsime: VKe, + nsimeq: UKe, + nsmid: qKe, + nspar: QKe, + nsqsube: YKe, + nsqsupe: WKe, + nsub: GKe, + nsubE: HKe, + nsube: XKe, + nsubset: ZKe, + nsubseteq: jKe, + nsubseteqq: KKe, + nsucc: JKe, + nsucceq: eJe, + nsup: tJe, + nsupE: rJe, + nsupe: nJe, + nsupset: iJe, + nsupseteq: sJe, + nsupseteqq: aJe, + ntgl: oJe, + Ntilde: lJe, + ntilde: cJe, + ntlg: uJe, + ntriangleleft: hJe, + ntrianglelefteq: fJe, + ntriangleright: dJe, + ntrianglerighteq: pJe, + Nu: gJe, + nu: mJe, + num: vJe, + numero: yJe, + numsp: bJe, + nvap: xJe, + nvdash: wJe, + nvDash: OJe, + nVdash: kJe, + nVDash: SJe, + nvge: TJe, + nvgt: CJe, + nvHarr: EJe, + nvinfin: _Je, + nvlArr: AJe, + nvle: LJe, + nvlt: RJe, + nvltrie: MJe, + nvrArr: DJe, + nvrtrie: NJe, + nvsim: IJe, + nwarhk: PJe, + nwarr: $Je, + nwArr: BJe, + nwarrow: FJe, + nwnear: zJe, + Oacute: VJe, + oacute: UJe, + oast: qJe, + Ocirc: QJe, + ocirc: YJe, + ocir: WJe, + Ocy: GJe, + ocy: HJe, + odash: XJe, + Odblac: ZJe, + odblac: jJe, + odiv: KJe, + odot: JJe, + odsold: eet, + OElig: tet, + oelig: ret, + ofcir: net, + Ofr: iet, + ofr: set, + ogon: aet, + Ograve: oet, + ograve: cet, + ogt: uet, + ohbar: het, + ohm: fet, + oint: det, + olarr: pet, + olcir: get, + olcross: met, + oline: vet, + olt: yet, + Omacr: bet, + omacr: xet, + Omega: wet, + omega: Oet, + Omicron: ket, + omicron: Tet, + omid: Cet, + ominus: Eet, + Oopf: _et, + oopf: Aet, + opar: Let, + OpenCurlyDoubleQuote: Ret, + OpenCurlyQuote: Met, + operp: Det, + oplus: Net, + orarr: Iet, + Or: Pet, + or: $et, + ord: Bet, + order: Fet, + orderof: zet, + ordf: Vet, + ordm: Uet, + origof: qet, + oror: Qet, + orslope: Yet, + orv: Wet, + oS: Get, + Oscr: Het, + oscr: Xet, + Oslash: Zet, + oslash: jet, + osol: Ket, + Otilde: Jet, + otilde: ett, + otimesas: ttt, + Otimes: rtt, + otimes: ntt, + Ouml: itt, + ouml: stt, + ovbar: att, + OverBar: ott, + OverBrace: ltt, + OverBracket: ctt, + OverParenthesis: utt, + para: htt, + parallel: ftt, + par: dtt, + parsim: ptt, + parsl: gtt, + part: mtt, + PartialD: vtt, + Pcy: ytt, + pcy: btt, + percnt: xtt, + period: wtt, + permil: Ott, + perp: ktt, + pertenk: Stt, + Pfr: Ttt, + pfr: Ctt, + Phi: Ett, + phi: _tt, + phiv: Att, + phmmat: Ltt, + phone: Rtt, + Pi: Mtt, + pi: Dtt, + pitchfork: Ntt, + piv: Itt, + planck: Ptt, + planckh: $tt, + plankv: Btt, + plusacir: Ftt, + plusb: ztt, + pluscir: Vtt, + plus: Utt, + plusdo: qtt, + plusdu: Qtt, + pluse: Ytt, + PlusMinus: Wtt, + plusmn: Gtt, + plussim: Htt, + plustwo: Xtt, + pm: Ztt, + Poincareplane: jtt, + pointint: Ktt, + popf: Jtt, + Popf: ert, + pound: trt, + prap: rrt, + Pr: nrt, + pr: irt, + prcue: srt, + precapprox: art, + prec: ort, + preccurlyeq: lrt, + Precedes: crt, + PrecedesEqual: urt, + PrecedesSlantEqual: hrt, + PrecedesTilde: frt, + preceq: drt, + precnapprox: prt, + precneqq: grt, + precnsim: mrt, + pre: vrt, + prE: yrt, + precsim: brt, + prime: xrt, + Prime: wrt, + primes: Ort, + prnap: krt, + prnE: Srt, + prnsim: Trt, + prod: Crt, + Product: Ert, + profalar: _rt, + profline: Art, + profsurf: Lrt, + prop: Rrt, + Proportional: Mrt, + Proportion: Drt, + propto: Nrt, + prsim: Irt, + prurel: Prt, + Pscr: $rt, + pscr: Brt, + Psi: Frt, + psi: zrt, + puncsp: Vrt, + Qfr: Urt, + qfr: qrt, + qint: Qrt, + qopf: Yrt, + Qopf: Wrt, + qprime: Grt, + Qscr: Hrt, + qscr: Xrt, + quaternions: Zrt, + quatint: jrt, + quest: Krt, + questeq: Jrt, + quot: ent, + QUOT: tnt, + rAarr: rnt, + race: nnt, + Racute: int, + racute: snt, + radic: ant, + raemptyv: ont, + rang: lnt, + Rang: cnt, + rangd: unt, + range: hnt, + rangle: fnt, + raquo: dnt, + rarrap: pnt, + rarrb: gnt, + rarrbfs: mnt, + rarrc: vnt, + rarr: ynt, + Rarr: bnt, + rArr: xnt, + rarrfs: wnt, + rarrhk: Ont, + rarrlp: knt, + rarrpl: Snt, + rarrsim: Tnt, + Rarrtl: Cnt, + rarrtl: Ent, + rarrw: _nt, + ratail: Ant, + rAtail: Lnt, + ratio: Rnt, + rationals: Mnt, + rbarr: Dnt, + rBarr: Nnt, + RBarr: Int, + rbbrk: Pnt, + rbrace: $nt, + rbrack: Bnt, + rbrke: Fnt, + rbrksld: znt, + rbrkslu: Vnt, + Rcaron: Unt, + rcaron: qnt, + Rcedil: Qnt, + rcedil: Ynt, + rceil: Wnt, + rcub: Gnt, + Rcy: Hnt, + rcy: Xnt, + rdca: Znt, + rdldhar: jnt, + rdquo: Knt, + rdquor: Jnt, + rdsh: eit, + real: tit, + realine: rit, + realpart: nit, + reals: iit, + Re: sit, + rect: ait, + reg: oit, + REG: lit, + ReverseElement: cit, + ReverseEquilibrium: uit, + ReverseUpEquilibrium: hit, + rfisht: fit, + rfloor: dit, + rfr: pit, + Rfr: git, + rHar: mit, + rhard: vit, + rharu: yit, + rharul: bit, + Rho: xit, + rho: wit, + rhov: Oit, + RightAngleBracket: kit, + RightArrowBar: Sit, + rightarrow: Tit, + RightArrow: Cit, + Rightarrow: Eit, + RightArrowLeftArrow: _it, + rightarrowtail: Ait, + RightCeiling: Lit, + RightDoubleBracket: Rit, + RightDownTeeVector: Mit, + RightDownVectorBar: Dit, + RightDownVector: Nit, + RightFloor: Iit, + rightharpoondown: Pit, + rightharpoonup: $it, + rightleftarrows: Bit, + rightleftharpoons: Fit, + rightrightarrows: zit, + rightsquigarrow: Vit, + RightTeeArrow: Uit, + RightTee: qit, + RightTeeVector: Qit, + rightthreetimes: Yit, + RightTriangleBar: Wit, + RightTriangle: Git, + RightTriangleEqual: Hit, + RightUpDownVector: Xit, + RightUpTeeVector: Zit, + RightUpVectorBar: jit, + RightUpVector: Kit, + RightVectorBar: Jit, + RightVector: est, + ring: tst, + risingdotseq: rst, + rlarr: nst, + rlhar: ist, + rlm: sst, + rmoustache: ast, + rmoust: ost, + rnmid: lst, + roang: cst, + roarr: ust, + robrk: hst, + ropar: fst, + ropf: dst, + Ropf: pst, + roplus: gst, + rotimes: mst, + RoundImplies: vst, + rpar: yst, + rpargt: bst, + rppolint: xst, + rrarr: wst, + Rrightarrow: Ost, + rsaquo: kst, + rscr: Sst, + Rscr: Tst, + rsh: Cst, + Rsh: Est, + rsqb: _st, + rsquo: Ast, + rsquor: Lst, + rthree: Rst, + rtimes: Mst, + rtri: Dst, + rtrie: Nst, + rtrif: Ist, + rtriltri: Pst, + RuleDelayed: $st, + ruluhar: Bst, + rx: Fst, + Sacute: zst, + sacute: Vst, + sbquo: Ust, + scap: qst, + Scaron: Qst, + scaron: Yst, + Sc: Wst, + sc: Gst, + sccue: Hst, + sce: Xst, + scE: Zst, + Scedil: jst, + scedil: Kst, + Scirc: Jst, + scirc: eat, + scnap: tat, + scnE: rat, + scnsim: nat, + scpolint: iat, + scsim: sat, + Scy: aat, + scy: oat, + sdotb: lat, + sdot: cat, + sdote: uat, + searhk: hat, + searr: fat, + seArr: dat, + searrow: pat, + sect: gat, + semi: mat, + seswar: vat, + setminus: yat, + setmn: bat, + sext: xat, + Sfr: wat, + sfr: Oat, + sfrown: kat, + sharp: Sat, + SHCHcy: Tat, + shchcy: Cat, + SHcy: Eat, + shcy: _at, + ShortDownArrow: Aat, + ShortLeftArrow: Lat, + shortmid: Rat, + shortparallel: Mat, + ShortRightArrow: Dat, + ShortUpArrow: Nat, + shy: Iat, + Sigma: Pat, + sigma: $at, + sigmaf: Bat, + sigmav: Fat, + sim: zat, + simdot: Vat, + sime: Uat, + simeq: qat, + simg: Qat, + simgE: Yat, + siml: Wat, + simlE: Gat, + simne: Hat, + simplus: Xat, + simrarr: Zat, + slarr: jat, + SmallCircle: Kat, + smallsetminus: Jat, + smashp: eot, + smeparsl: tot, + smid: rot, + smile: not, + smt: iot, + smte: sot, + smtes: aot, + SOFTcy: oot, + softcy: lot, + solbar: cot, + solb: uot, + sol: hot, + Sopf: fot, + sopf: dot, + spades: pot, + spadesuit: got, + spar: mot, + sqcap: vot, + sqcaps: yot, + sqcup: bot, + sqcups: xot, + Sqrt: wot, + sqsub: Oot, + sqsube: kot, + sqsubset: Sot, + sqsubseteq: Tot, + sqsup: Cot, + sqsupe: Eot, + sqsupset: _ot, + sqsupseteq: Aot, + square: Lot, + Square: Rot, + SquareIntersection: Mot, + SquareSubset: Dot, + SquareSubsetEqual: Not, + SquareSuperset: Iot, + SquareSupersetEqual: Pot, + SquareUnion: $ot, + squarf: Bot, + squ: Fot, + squf: zot, + srarr: Vot, + Sscr: Uot, + sscr: qot, + ssetmn: Qot, + ssmile: Yot, + sstarf: Wot, + Star: Got, + star: Hot, + starf: Xot, + straightepsilon: Zot, + straightphi: jot, + strns: Kot, + sub: Jot, + Sub: elt, + subdot: tlt, + subE: rlt, + sube: nlt, + subedot: ilt, + submult: slt, + subnE: alt, + subne: olt, + subplus: llt, + subrarr: clt, + subset: ult, + Subset: hlt, + subseteq: flt, + subseteqq: dlt, + SubsetEqual: plt, + subsetneq: glt, + subsetneqq: mlt, + subsim: vlt, + subsub: ylt, + subsup: blt, + succapprox: xlt, + succ: wlt, + succcurlyeq: Olt, + Succeeds: klt, + SucceedsEqual: Slt, + SucceedsSlantEqual: Tlt, + SucceedsTilde: Clt, + succeq: Elt, + succnapprox: _lt, + succneqq: Alt, + succnsim: Llt, + succsim: Rlt, + SuchThat: Mlt, + sum: Dlt, + Sum: Nlt, + sung: Ilt, + sup1: Plt, + sup2: $lt, + sup3: Blt, + sup: Flt, + Sup: zlt, + supdot: Vlt, + supdsub: Ult, + supE: qlt, + supe: Qlt, + supedot: Ylt, + Superset: Wlt, + SupersetEqual: Glt, + suphsol: Hlt, + suphsub: Xlt, + suplarr: Zlt, + supmult: jlt, + supnE: Klt, + supne: Jlt, + supplus: ect, + supset: tct, + Supset: rct, + supseteq: nct, + supseteqq: ict, + supsetneq: sct, + supsetneqq: act, + supsim: oct, + supsub: lct, + supsup: cct, + swarhk: uct, + swarr: hct, + swArr: fct, + swarrow: dct, + swnwar: pct, + szlig: gct, + Tab: mct, + target: vct, + Tau: yct, + tau: bct, + tbrk: xct, + Tcaron: wct, + tcaron: Oct, + Tcedil: kct, + tcedil: Sct, + Tcy: Tct, + tcy: Cct, + tdot: Ect, + telrec: _ct, + Tfr: Act, + tfr: Lct, + there4: Rct, + therefore: Mct, + Therefore: Dct, + Theta: Nct, + theta: Ict, + thetasym: Pct, + thetav: $ct, + thickapprox: Bct, + thicksim: Fct, + ThickSpace: zct, + ThinSpace: Vct, + thinsp: Uct, + thkap: qct, + thksim: Qct, + THORN: Yct, + thorn: Wct, + tilde: Gct, + Tilde: Hct, + TildeEqual: Xct, + TildeFullEqual: Zct, + TildeTilde: jct, + timesbar: Kct, + timesb: Jct, + times: eut, + timesd: tut, + tint: rut, + toea: nut, + topbot: iut, + topcir: sut, + top: aut, + Topf: out, + topf: lut, + topfork: cut, + tosa: uut, + tprime: hut, + trade: fut, + TRADE: dut, + triangle: put, + triangledown: gut, + triangleleft: mut, + trianglelefteq: vut, + triangleq: yut, + triangleright: but, + trianglerighteq: xut, + tridot: wut, + trie: Out, + triminus: kut, + TripleDot: Sut, + triplus: Tut, + trisb: Cut, + tritime: Eut, + trpezium: _ut, + Tscr: Aut, + tscr: Lut, + TScy: Rut, + tscy: Mut, + TSHcy: Dut, + tshcy: Nut, + Tstrok: Iut, + tstrok: Put, + twixt: $ut, + twoheadleftarrow: But, + twoheadrightarrow: Fut, + Uacute: zut, + uacute: Vut, + uarr: Uut, + Uarr: qut, + uArr: Qut, + Uarrocir: Yut, + Ubrcy: Wut, + ubrcy: Gut, + Ubreve: Hut, + ubreve: Xut, + Ucirc: Zut, + ucirc: jut, + Ucy: Kut, + ucy: Jut, + udarr: eht, + Udblac: tht, + udblac: rht, + udhar: nht, + ufisht: iht, + Ufr: sht, + ufr: aht, + Ugrave: oht, + ugrave: lht, + uHar: cht, + uharl: uht, + uharr: hht, + uhblk: fht, + ulcorn: dht, + ulcorner: pht, + ulcrop: ght, + ultri: mht, + Umacr: vht, + umacr: yht, + uml: bht, + UnderBar: xht, + UnderBrace: wht, + UnderBracket: Oht, + UnderParenthesis: kht, + Union: Sht, + UnionPlus: Tht, + Uogon: Cht, + uogon: Eht, + Uopf: _ht, + uopf: Aht, + UpArrowBar: Lht, + uparrow: Rht, + UpArrow: Mht, + Uparrow: Dht, + UpArrowDownArrow: Nht, + updownarrow: Iht, + UpDownArrow: Pht, + Updownarrow: $ht, + UpEquilibrium: Bht, + upharpoonleft: Fht, + upharpoonright: zht, + uplus: Vht, + UpperLeftArrow: Uht, + UpperRightArrow: qht, + upsi: Qht, + Upsi: Yht, + upsih: Wht, + Upsilon: Ght, + upsilon: Hht, + UpTeeArrow: Xht, + UpTee: Zht, + upuparrows: jht, + urcorn: Kht, + urcorner: Jht, + urcrop: eft, + Uring: tft, + uring: rft, + urtri: nft, + Uscr: ift, + uscr: sft, + utdot: aft, + Utilde: oft, + utilde: lft, + utri: cft, + utrif: uft, + uuarr: hft, + Uuml: fft, + uuml: dft, + uwangle: pft, + vangrt: gft, + varepsilon: mft, + varkappa: vft, + varnothing: yft, + varphi: bft, + varpi: xft, + varpropto: wft, + varr: Oft, + vArr: kft, + varrho: Sft, + varsigma: Tft, + varsubsetneq: Cft, + varsubsetneqq: Eft, + varsupsetneq: _ft, + varsupsetneqq: Aft, + vartheta: Lft, + vartriangleleft: Rft, + vartriangleright: Mft, + vBar: Dft, + Vbar: Nft, + vBarv: Ift, + Vcy: Pft, + vcy: $ft, + vdash: Bft, + vDash: Fft, + Vdash: zft, + VDash: Vft, + Vdashl: Uft, + veebar: qft, + vee: Qft, + Vee: Yft, + veeeq: Wft, + vellip: Gft, + verbar: Hft, + Verbar: Xft, + vert: Zft, + Vert: jft, + VerticalBar: Kft, + VerticalLine: Jft, + VerticalSeparator: edt, + VerticalTilde: tdt, + VeryThinSpace: rdt, + Vfr: ndt, + vfr: idt, + vltri: sdt, + vnsub: adt, + vnsup: odt, + Vopf: ldt, + vopf: cdt, + vprop: udt, + vrtri: hdt, + Vscr: fdt, + vscr: ddt, + vsubnE: pdt, + vsubne: gdt, + vsupnE: mdt, + vsupne: vdt, + Vvdash: ydt, + vzigzag: bdt, + Wcirc: xdt, + wcirc: wdt, + wedbar: Odt, + wedge: kdt, + Wedge: Sdt, + wedgeq: Tdt, + weierp: Cdt, + Wfr: Edt, + wfr: _dt, + Wopf: Adt, + wopf: Ldt, + wp: Rdt, + wr: Mdt, + wreath: Ddt, + Wscr: Ndt, + wscr: Idt, + xcap: Pdt, + xcirc: $dt, + xcup: Bdt, + xdtri: Fdt, + Xfr: zdt, + xfr: Vdt, + xharr: Udt, + xhArr: qdt, + Xi: Qdt, + xi: Ydt, + xlarr: Wdt, + xlArr: Gdt, + xmap: Hdt, + xnis: Xdt, + xodot: Zdt, + Xopf: jdt, + xopf: Kdt, + xoplus: Jdt, + xotime: e0t, + xrarr: t0t, + xrArr: r0t, + Xscr: n0t, + xscr: i0t, + xsqcup: s0t, + xuplus: a0t, + xutri: o0t, + xvee: l0t, + xwedge: c0t, + Yacute: u0t, + yacute: h0t, + YAcy: f0t, + yacy: d0t, + Ycirc: p0t, + ycirc: g0t, + Ycy: m0t, + ycy: v0t, + yen: y0t, + Yfr: b0t, + yfr: x0t, + YIcy: w0t, + yicy: O0t, + Yopf: k0t, + yopf: S0t, + Yscr: T0t, + yscr: C0t, + YUcy: E0t, + yucy: _0t, + yuml: A0t, + Yuml: L0t, + Zacute: R0t, + zacute: M0t, + Zcaron: D0t, + zcaron: N0t, + Zcy: I0t, + zcy: P0t, + Zdot: $0t, + zdot: B0t, + zeetrf: F0t, + ZeroWidthSpace: z0t, + Zeta: V0t, + zeta: U0t, + zfr: q0t, + Zfr: Q0t, + ZHcy: Y0t, + zhcy: W0t, + zigrarr: G0t, + zopf: H0t, + Zopf: X0t, + Zscr: Z0t, + zscr: j0t, + zwj: K0t, + zwnj: J0t }; (function(t) { - t.exports = J0t; -})(rD); -var nD = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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\u09FD\u0A76\u0AF0\u0C84\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-\u2E4E\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]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Q1 = {}, xV = {}; -function ept(t) { + t.exports = ept; +})(nD); +var iD = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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\u09FD\u0A76\u0AF0\u0C84\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-\u2E4E\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]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Q1 = {}, xV = {}; +function tpt(t) { var e, r, n = xV[t]; if (n) return n; @@ -31107,9 +31107,9 @@ function ept(t) { n[t.charCodeAt(e)] = t[e]; return n; } -function oT(t, e, r) { +function lT(t, e, r) { var n, i, s, a, o, l = ""; - for (typeof e != "string" && (r = e, e = oT.defaultChars), typeof r > "u" && (r = !0), o = ept(e), n = 0, i = t.length; n < i; n++) { + for (typeof e != "string" && (r = e, e = lT.defaultChars), typeof r > "u" && (r = !0), o = tpt(e), n = 0, i = t.length; n < i; n++) { if (s = t.charCodeAt(n), r && s === 37 && n + 2 < i && /^[0-9a-f]{2}$/i.test(t.slice(n + 1, n + 3))) { l += t.slice(n, n + 3), n += 2; continue; @@ -31130,10 +31130,10 @@ function oT(t, e, r) { } return l; } -oT.defaultChars = ";/?:@&=+$,-_.!~*'()#"; -oT.componentChars = "-_.!~*'()"; -var tpt = oT, wV = {}; -function rpt(t) { +lT.defaultChars = ";/?:@&=+$,-_.!~*'()#"; +lT.componentChars = "-_.!~*'()"; +var rpt = lT, wV = {}; +function npt(t) { var e, r, n = wV[t]; if (n) return n; @@ -31143,9 +31143,9 @@ function rpt(t) { r = t.charCodeAt(e), n[r] = "%" + ("0" + r.toString(16).toUpperCase()).slice(-2); return n; } -function lT(t, e) { +function cT(t, e) { var r; - return typeof e != "string" && (e = lT.defaultChars), r = rpt(e), t.replace(/(%[a-f0-9]{2})+/gi, function(n) { + return typeof e != "string" && (e = cT.defaultChars), r = npt(e), t.replace(/(%[a-f0-9]{2})+/gi, function(n) { var i, s, a, o, l, u, h, f = ""; for (i = 0, s = n.length; i < s; i += 3) { if (a = parseInt(n.slice(i + 1, i + 3), 16), a < 128) { @@ -31169,17 +31169,17 @@ function lT(t, e) { return f; }); } -lT.defaultChars = ";/?:@&=+$,#"; -lT.componentChars = ""; -var npt = lT, ipt = function(e) { +cT.defaultChars = ";/?:@&=+$,#"; +cT.componentChars = ""; +var ipt = cT, spt = function(e) { var r = ""; return r += e.protocol || "", r += e.slashes ? "//" : "", r += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? r += "[" + e.hostname + "]" : r += e.hostname || "", r += e.port ? ":" + e.port : "", r += e.pathname || "", r += e.search || "", r += e.hash || "", r; }; function u3() { this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null; } -var spt = /^([a-z0-9.+-]+:)/i, apt = /:[0-9]*$/, opt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, lpt = ["<", ">", '"', "`", " ", "\r", ` -`, " "], cpt = ["{", "}", "|", "\\", "^", "`"].concat(lpt), upt = ["'"].concat(cpt), OV = ["%", "/", "?", ";", "#"].concat(upt), kV = ["/", "?", "#"], hpt = 255, SV = /^[+a-z0-9A-Z_-]{0,63}$/, fpt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, TV = { +var apt = /^([a-z0-9.+-]+:)/i, opt = /:[0-9]*$/, lpt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, cpt = ["<", ">", '"', "`", " ", "\r", ` +`, " "], upt = ["{", "}", "|", "\\", "^", "`"].concat(cpt), hpt = ["'"].concat(upt), OV = ["%", "/", "?", ";", "#"].concat(hpt), kV = ["/", "?", "#"], fpt = 255, SV = /^[+a-z0-9A-Z_-]{0,63}$/, dpt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, TV = { javascript: !0, "javascript:": !0 }, CV = { @@ -31194,7 +31194,7 @@ var spt = /^([a-z0-9.+-]+:)/i, apt = /:[0-9]*$/, opt = /^(\/\/?(?!\/)[^\?\s]*)(\ "gopher:": !0, "file:": !0 }; -function dpt(t, e) { +function ppt(t, e) { if (t && t instanceof u3) return t; var r = new u3(); @@ -31203,11 +31203,11 @@ function dpt(t, e) { u3.prototype.parse = function(t, e) { var r, n, i, s, a, o = t; if (o = o.trim(), !e && t.split("#").length === 1) { - var l = opt.exec(o); + var l = lpt.exec(o); if (l) return this.pathname = l[1], l[2] && (this.search = l[2]), this; } - var u = spt.exec(o); + var u = apt.exec(o); if (u && (u = u[0], i = u.toLowerCase(), this.protocol = u, o = o.substr(u.length)), (e || u || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (a = o.substr(0, 2) === "//", a && !(u && TV[u]) && (o = o.substr(2), this.slashes = !0)), !TV[u] && (a || u && !CV[u])) { var h = -1; for (r = 0; r < kV.length; r++) @@ -31227,48 +31227,48 @@ u3.prototype.parse = function(t, e) { for (var y = "", b = 0, w = v.length; b < w; b++) v.charCodeAt(b) > 127 ? y += "x" : y += v[b]; if (!y.match(SV)) { - var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(fpt); + var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(dpt); C && (O.push(C[1]), S.unshift(C[2])), S.length && (o = S.join(".") + o), this.hostname = O.join("."); break; } } } } - this.hostname.length > hpt && (this.hostname = ""), g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); + this.hostname.length > fpt && (this.hostname = ""), g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); } var T = o.indexOf("#"); T !== -1 && (this.hash = o.substr(T), o = o.slice(0, T)); - var L = o.indexOf("?"); - return L !== -1 && (this.search = o.substr(L), o = o.slice(0, L)), o && (this.pathname = o), CV[i] && this.hostname && !this.pathname && (this.pathname = ""), this; + var A = o.indexOf("?"); + return A !== -1 && (this.search = o.substr(A), o = o.slice(0, A)), o && (this.pathname = o), CV[i] && this.hostname && !this.pathname && (this.pathname = ""), this; }; u3.prototype.parseHost = function(t) { - var e = apt.exec(t); + var e = opt.exec(t); e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); }; -var ppt = dpt; -Q1.encode = tpt; -Q1.decode = npt; -Q1.format = ipt; -Q1.parse = ppt; -var Kf = {}, d6, EV; -function Ene() { - return EV || (EV = 1, d6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), d6; -} -var p6, _V; +var gpt = ppt; +Q1.encode = rpt; +Q1.decode = ipt; +Q1.format = spt; +Q1.parse = gpt; +var Kf = {}, p6, EV; function _ne() { - return _V || (_V = 1, p6 = /[\0-\x1F\x7F-\x9F]/), p6; -} -var g6, AV; -function gpt() { - return AV || (AV = 1, g6 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), g6; + return EV || (EV = 1, p6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), p6; } -var m6, LV; +var g6, _V; function Ane() { - return LV || (LV = 1, m6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), m6; + return _V || (_V = 1, g6 = /[\0-\x1F\x7F-\x9F]/), g6; } -var RV; +var m6, AV; function mpt() { - return RV || (RV = 1, Kf.Any = Ene(), Kf.Cc = _ne(), Kf.Cf = gpt(), Kf.P = nD, Kf.Z = Ane()), Kf; + return AV || (AV = 1, m6 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), m6; +} +var v6, LV; +function Lne() { + return LV || (LV = 1, v6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), v6; +} +var RV; +function vpt() { + return RV || (RV = 1, Kf.Any = _ne(), Kf.Cc = Ane(), Kf.Cf = mpt(), Kf.P = iD, Kf.Z = Lne()), Kf; } (function(t) { function e(k) { @@ -31307,7 +31307,7 @@ function mpt() { } return String.fromCharCode(k); } - var u = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, h = /&([a-z#][a-z0-9]{1,31});/gi, f = new RegExp(u.source + "|" + h.source, "gi"), d = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, p = rD.exports; + var u = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, h = /&([a-z#][a-z0-9]{1,31});/gi, f = new RegExp(u.source + "|" + h.source, "gi"), d = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, p = nD.exports; function g(k, N) { var M = 0; return i(p, N) ? p[N] : N.charCodeAt(0) === 35 && d.test(N) && (M = N[1].toLowerCase() === "x" ? parseInt(N.slice(2), 16) : parseInt(N.slice(1), 10), o(M)) ? l(M) : k; @@ -31336,7 +31336,7 @@ function mpt() { function T(k) { return k.replace(C, "\\$&"); } - function L(k) { + function A(k) { switch (k) { case 9: case 32: @@ -31363,9 +31363,9 @@ function mpt() { } return !1; } - var A = nD; + var L = iD; function _(k) { - return A.test(k); + return L.test(k); } function R(k) { switch (k) { @@ -31409,9 +31409,9 @@ function mpt() { function $(k) { return k = k.trim().replace(/\s+/g, " "), "\u1E9E".toLowerCase() === "\u1E7E" && (k = k.replace(/ẞ/g, "\xDF")), k.toLowerCase().toUpperCase(); } - t.lib = {}, t.lib.mdurl = Q1, t.lib.ucmicro = mpt(), t.assign = s, t.isString = r, t.has = i, t.unescapeMd = m, t.unescapeAll = v, t.isValidEntityCode = o, t.fromCodePoint = l, t.escapeHtml = S, t.arrayReplaceAt = a, t.isSpace = L, t.isWhiteSpace = E, t.isMdAsciiPunct = R, t.isPunctChar = _, t.escapeRE = T, t.normalizeReference = $; + t.lib = {}, t.lib.mdurl = Q1, t.lib.ucmicro = vpt(), t.assign = s, t.isString = r, t.has = i, t.unescapeMd = m, t.unescapeAll = v, t.isValidEntityCode = o, t.fromCodePoint = l, t.escapeHtml = S, t.arrayReplaceAt = a, t.isSpace = A, t.isWhiteSpace = E, t.isMdAsciiPunct = R, t.isPunctChar = _, t.escapeRE = T, t.normalizeReference = $; })(Ir); -var cT = {}, vpt = function(e, r, n) { +var uT = {}, ypt = function(e, r, n) { var i, s, a, o, l = -1, u = e.posMax, h = e.pos; for (e.pos = r + 1, i = 1; e.pos < u; ) { if (a = e.src.charCodeAt(e.pos), a === 93 && (i--, i === 0)) { @@ -31426,7 +31426,7 @@ var cT = {}, vpt = function(e, r, n) { } } return s && (l = e.pos), e.pos = h, l; -}, MV = Ir.unescapeAll, ypt = function(e, r, n) { +}, MV = Ir.unescapeAll, bpt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31464,7 +31464,7 @@ var cT = {}, vpt = function(e, r, n) { r++; } return o === r || s !== 0 || (l.str = MV(e.slice(o, r)), l.lines = a, l.pos = r, l.ok = !0), l; -}, bpt = Ir.unescapeAll, xpt = function(e, r, n) { +}, xpt = Ir.unescapeAll, wpt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31475,17 +31475,17 @@ var cT = {}, vpt = function(e, r, n) { return l; for (r++, s === 40 && (s = 41); r < n; ) { if (i = e.charCodeAt(r), i === s) - return l.pos = r + 1, l.lines = a, l.str = bpt(e.slice(o + 1, r)), l.ok = !0, l; + return l.pos = r + 1, l.lines = a, l.str = xpt(e.slice(o + 1, r)), l.ok = !0, l; if (i === 40 && s === 41) return l; i === 10 ? a++ : i === 92 && r + 1 < n && (r++, e.charCodeAt(r) === 10 && a++), r++; } return l; }; -cT.parseLinkLabel = vpt; -cT.parseLinkDestination = ypt; -cT.parseLinkTitle = xpt; -var wpt = Ir.assign, Opt = Ir.unescapeAll, r0 = Ir.escapeHtml, Gc = {}; +uT.parseLinkLabel = ypt; +uT.parseLinkDestination = bpt; +uT.parseLinkTitle = wpt; +var Opt = Ir.assign, kpt = Ir.unescapeAll, r0 = Ir.escapeHtml, Gc = {}; Gc.code_inline = function(t, e, r, n, i) { var s = t[e]; return "" + r0(t[e].content) + ""; @@ -31496,7 +31496,7 @@ Gc.code_block = function(t, e, r, n, i) { `; }; Gc.fence = function(t, e, r, n, i) { - var s = t[e], a = s.info ? Opt(s.info).trim() : "", o = "", l = "", u, h, f, d, p; + var s = t[e], a = s.info ? kpt(s.info).trim() : "", o = "", l = "", u, h, f, d, p; return a && (f = a.split(/(\s+)/g), o = f[0], l = f.slice(2).join("")), r.highlight ? u = r.highlight(s.content, o, l) || r0(s.content) : u = r0(s.content), u.indexOf("\s]/i.test(t); } -function Rpt(t) { +function Mpt(t) { return /^<\/a\s*>/i.test(t); } -var Mpt = function(e) { +var Dpt = function(e) { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b = e.tokens, w; if (!!e.md.options.linkify) { for (n = 0, i = b.length; n < i; n++) @@ -31684,42 +31684,42 @@ var Mpt = function(e) { r--; continue; } - if (o.type === "html_inline" && (Lpt(o.content) && g > 0 && g--, Rpt(o.content) && g++), !(g > 0) && o.type === "text" && e.md.linkify.test(o.content)) { + if (o.type === "html_inline" && (Rpt(o.content) && g > 0 && g--, Mpt(o.content) && g++), !(g > 0) && o.type === "text" && e.md.linkify.test(o.content)) { for (h = o.content, w = e.md.linkify.match(h), l = [], p = o.level, d = 0, u = 0; u < w.length; u++) m = w[u].url, v = e.md.normalizeLink(m), e.md.validateLink(v) && (y = w[u].text, w[u].schema ? w[u].schema === "mailto:" && !/^mailto:/i.test(y) ? y = e.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = e.md.normalizeLinkText(y) : y = e.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, ""), f = w[u].index, f > d && (a = new e.Token("text", "", 0), a.content = h.slice(d, f), a.level = p, l.push(a)), a = new e.Token("link_open", "a", 1), a.attrs = [["href", v]], a.level = p++, a.markup = "linkify", a.info = "auto", l.push(a), a = new e.Token("text", "", 0), a.content = y, a.level = p, l.push(a), a = new e.Token("link_close", "a", -1), a.level = --p, a.markup = "linkify", a.info = "auto", l.push(a), d = w[u].lastIndex); - d < h.length && (a = new e.Token("text", "", 0), a.content = h.slice(d), a.level = p, l.push(a)), b[n].children = s = Apt(s, r, l); + d < h.length && (a = new e.Token("text", "", 0), a.content = h.slice(d), a.level = p, l.push(a)), b[n].children = s = Lpt(s, r, l); } } } -}, Lne = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Dpt = /\((c|tm|r|p)\)/i, Npt = /\((c|tm|r|p)\)/ig, Ipt = { +}, Rne = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Npt = /\((c|tm|r|p)\)/i, Ipt = /\((c|tm|r|p)\)/ig, Ppt = { c: "\xA9", r: "\xAE", p: "\xA7", tm: "\u2122" }; -function Ppt(t, e) { - return Ipt[e.toLowerCase()]; +function $pt(t, e) { + return Ppt[e.toLowerCase()]; } -function $pt(t) { +function Bpt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) - r = t[e], r.type === "text" && !n && (r.content = r.content.replace(Npt, Ppt)), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; + r = t[e], r.type === "text" && !n && (r.content = r.content.replace(Ipt, $pt)), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; } -function Bpt(t) { +function Fpt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) - r = t[e], r.type === "text" && !n && Lne.test(r.content) && (r.content = r.content.replace(/\+-/g, "\xB1").replace(/\.{2,}/g, "\u2026").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1\u2014").replace(/(^|\s)--(?=\s|$)/mg, "$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1\u2013")), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; + r = t[e], r.type === "text" && !n && Rne.test(r.content) && (r.content = r.content.replace(/\+-/g, "\xB1").replace(/\.{2,}/g, "\u2026").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1\u2014").replace(/(^|\s)--(?=\s|$)/mg, "$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1\u2013")), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; } -var Fpt = function(e) { +var zpt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type === "inline" && (Dpt.test(e.tokens[r].content) && $pt(e.tokens[r].children), Lne.test(e.tokens[r].content) && Bpt(e.tokens[r].children)); -}, DV = Ir.isWhiteSpace, NV = Ir.isPunctChar, IV = Ir.isMdAsciiPunct, zpt = /['"]/, PV = /['"]/g, $V = "\u2019"; + e.tokens[r].type === "inline" && (Npt.test(e.tokens[r].content) && Bpt(e.tokens[r].children), Rne.test(e.tokens[r].content) && Fpt(e.tokens[r].children)); +}, DV = Ir.isWhiteSpace, NV = Ir.isPunctChar, IV = Ir.isMdAsciiPunct, Vpt = /['"]/, PV = /['"]/g, $V = "\u2019"; function zw(t, e, r) { return t.substr(0, e) + r + t.substr(e + 1); } -function Vpt(t, e) { +function Upt(t, e) { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C; for (O = [], r = 0; r < t.length; r++) { for (n = t[r], l = t[r].level, b = O.length - 1; b >= 0 && !(O[b].level <= l); b--) @@ -31769,11 +31769,11 @@ function Vpt(t, e) { } } } -var Upt = function(e) { +var qpt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type !== "inline" || !zpt.test(e.tokens[r].content) || Vpt(e.tokens[r].children, e); + e.tokens[r].type !== "inline" || !Vpt.test(e.tokens[r].content) || Upt(e.tokens[r].children, e); }; function W1(t, e, r) { this.type = t, this.tag = e, this.attrs = null, this.map = null, this.nesting = r, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1; @@ -31802,32 +31802,32 @@ W1.prototype.attrJoin = function(e, r) { var n = this.attrIndex(e); n < 0 ? this.attrPush([e, r]) : this.attrs[n][1] = this.attrs[n][1] + " " + r; }; -var sD = W1, qpt = sD; -function Rne(t, e, r) { +var aD = W1, Qpt = aD; +function Mne(t, e, r) { this.src = t, this.env = r, this.tokens = [], this.inlineMode = !1, this.md = e; } -Rne.prototype.Token = qpt; -var Qpt = Rne, Ypt = iD, v6 = [ - ["normalize", Cpt], - ["block", Ept], - ["inline", _pt], - ["linkify", Mpt], - ["replacements", Fpt], - ["smartquotes", Upt] +Mne.prototype.Token = Qpt; +var Ypt = Mne, Wpt = sD, y6 = [ + ["normalize", Ept], + ["block", _pt], + ["inline", Apt], + ["linkify", Dpt], + ["replacements", zpt], + ["smartquotes", qpt] ]; -function aD() { - this.ruler = new Ypt(); - for (var t = 0; t < v6.length; t++) - this.ruler.push(v6[t][0], v6[t][1]); +function oD() { + this.ruler = new Wpt(); + for (var t = 0; t < y6.length; t++) + this.ruler.push(y6[t][0], y6[t][1]); } -aD.prototype.process = function(t) { +oD.prototype.process = function(t) { var e, r, n; for (n = this.ruler.getRules(""), e = 0, r = n.length; e < r; e++) n[e](t); }; -aD.prototype.State = Qpt; -var Wpt = aD, y6 = Ir.isSpace; -function b6(t, e) { +oD.prototype.State = Ypt; +var Gpt = oD, b6 = Ir.isSpace; +function x6(t, e) { var r = t.bMarks[e] + t.tShift[e], n = t.eMarks[e]; return t.src.substr(r, n - r); } @@ -31837,16 +31837,16 @@ function BV(t) { i === 124 && (s ? (o += t.substring(a, r - 1), a = r) : (e.push(o + t.substring(a, r)), o = "", a = r + 1)), s = i === 92, r++, i = t.charCodeAt(r); return e.push(o + t.substring(a)), e; } -var Gpt = function(e, r, n, i) { +var Hpt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C; - if (r + 2 > n || (h = r + 1, e.sCount[h] < e.blkIndent) || e.sCount[h] - e.blkIndent >= 4 || (o = e.bMarks[h] + e.tShift[h], o >= e.eMarks[h]) || (S = e.src.charCodeAt(o++), S !== 124 && S !== 45 && S !== 58) || o >= e.eMarks[h] || (C = e.src.charCodeAt(o++), C !== 124 && C !== 45 && C !== 58 && !y6(C)) || S === 45 && y6(C)) + if (r + 2 > n || (h = r + 1, e.sCount[h] < e.blkIndent) || e.sCount[h] - e.blkIndent >= 4 || (o = e.bMarks[h] + e.tShift[h], o >= e.eMarks[h]) || (S = e.src.charCodeAt(o++), S !== 124 && S !== 45 && S !== 58) || o >= e.eMarks[h] || (C = e.src.charCodeAt(o++), C !== 124 && C !== 45 && C !== 58 && !b6(C)) || S === 45 && b6(C)) return !1; for (; o < e.eMarks[h]; ) { - if (s = e.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58 && !y6(s)) + if (s = e.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58 && !b6(s)) return !1; o++; } - for (a = b6(e, r + 1), f = a.split("|"), g = [], l = 0; l < f.length; l++) { + for (a = x6(e, r + 1), f = a.split("|"), g = [], l = 0; l < f.length; l++) { if (m = f[l].trim(), !m) { if (l === 0 || l === f.length - 1) continue; @@ -31856,7 +31856,7 @@ var Gpt = function(e, r, n, i) { return !1; m.charCodeAt(m.length - 1) === 58 ? g.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? g.push("left") : g.push(""); } - if (a = b6(e, r).trim(), a.indexOf("|") === -1 || e.sCount[r] - e.blkIndent >= 4 || (f = BV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), d = f.length, d === 0 || d !== g.length)) + if (a = x6(e, r).trim(), a.indexOf("|") === -1 || e.sCount[r] - e.blkIndent >= 4 || (f = BV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), d = f.length, d === 0 || d !== g.length)) return !1; if (i) return !0; @@ -31868,14 +31868,14 @@ var Gpt = function(e, r, n, i) { w = !0; break; } - if (w || (a = b6(e, h).trim(), !a) || e.sCount[h] - e.blkIndent >= 4) + if (w || (a = x6(e, h).trim(), !a) || e.sCount[h] - e.blkIndent >= 4) break; for (f = BV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), h === r + 2 && (p = e.push("tbody_open", "tbody", 1), p.map = y = [r + 2, 0]), p = e.push("tr_open", "tr", 1), p.map = [h, h + 1], l = 0; l < d; l++) p = e.push("td_open", "td", 1), g[l] && (p.attrs = [["style", "text-align:" + g[l]]]), p = e.push("inline", "", 0), p.content = f[l] ? f[l].trim() : "", p.children = [], p = e.push("td_close", "td", -1); p = e.push("tr_close", "tr", -1); } return y && (p = e.push("tbody_close", "tbody", -1), y[1] = h), p = e.push("table_close", "table", -1), v[1] = h, e.parentType = b, e.line = h, !0; -}, Hpt = function(e, r, n) { +}, Xpt = function(e, r, n) { var i, s, a; if (e.sCount[r] - e.blkIndent < 4) return !1; @@ -31892,7 +31892,7 @@ var Gpt = function(e, r, n, i) { } return e.line = s, a = e.push("code_block", "code", 0), a.content = e.getLines(r, s, 4 + e.blkIndent, !1) + ` `, a.map = [r, e.line], !0; -}, Xpt = function(e, r, n, i) { +}, Zpt = function(e, r, n, i) { var s, a, o, l, u, h, f, d = !1, p = e.bMarks[r] + e.tShift[r], g = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || p + 3 > g || (s = e.src.charCodeAt(p), s !== 126 && s !== 96) || (u = p, p = e.skipChars(p, s), a = p - u, a < 3) || (f = e.src.slice(u, p), o = e.src.slice(p, g), s === 96 && o.indexOf(String.fromCharCode(s)) >= 0)) return !1; @@ -31904,23 +31904,23 @@ var Gpt = function(e, r, n, i) { break; } return a = e.sCount[r], e.line = l + (d ? 1 : 0), h = e.push("fence", "code", 0), h.info = o, h.content = e.getLines(r + 1, l, a, !0), h.markup = f, h.map = [r, e.line], !0; -}, FV = Ir.isSpace, Zpt = function(e, r, n, i) { - var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, L, E = e.lineMax, A = e.bMarks[r] + e.tShift[r], _ = e.eMarks[r]; - if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(A++) !== 62) +}, FV = Ir.isSpace, jpt = function(e, r, n, i) { + var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, A, E = e.lineMax, L = e.bMarks[r] + e.tShift[r], _ = e.eMarks[r]; + if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(L++) !== 62) return !1; if (i) return !0; - for (l = p = e.sCount[r] + 1, e.src.charCodeAt(A) === 32 ? (A++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(A) === 9 ? (O = !0, (e.bsCount[r] + p) % 4 === 3 ? (A++, l++, p++, s = !1) : s = !0) : O = !1, g = [e.bMarks[r]], e.bMarks[r] = A; A < _ && (a = e.src.charCodeAt(A), FV(a)); ) { + for (l = p = e.sCount[r] + 1, e.src.charCodeAt(L) === 32 ? (L++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(L) === 9 ? (O = !0, (e.bsCount[r] + p) % 4 === 3 ? (L++, l++, p++, s = !1) : s = !0) : O = !1, g = [e.bMarks[r]], e.bMarks[r] = L; L < _ && (a = e.src.charCodeAt(L), FV(a)); ) { a === 9 ? p += 4 - (p + e.bsCount[r] + (s ? 1 : 0)) % 4 : p++; - A++; + L++; } - for (m = [e.bsCount[r]], e.bsCount[r] = e.sCount[r] + 1 + (O ? 1 : 0), h = A >= _, b = [e.sCount[r]], e.sCount[r] = p - l, w = [e.tShift[r]], e.tShift[r] = A - e.bMarks[r], C = e.md.block.ruler.getRules("blockquote"), y = e.parentType, e.parentType = "blockquote", d = r + 1; d < n && (L = e.sCount[d] < e.blkIndent, A = e.bMarks[d] + e.tShift[d], _ = e.eMarks[d], !(A >= _)); d++) { - if (e.src.charCodeAt(A++) === 62 && !L) { - for (l = p = e.sCount[d] + 1, e.src.charCodeAt(A) === 32 ? (A++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(A) === 9 ? (O = !0, (e.bsCount[d] + p) % 4 === 3 ? (A++, l++, p++, s = !1) : s = !0) : O = !1, g.push(e.bMarks[d]), e.bMarks[d] = A; A < _ && (a = e.src.charCodeAt(A), FV(a)); ) { + for (m = [e.bsCount[r]], e.bsCount[r] = e.sCount[r] + 1 + (O ? 1 : 0), h = L >= _, b = [e.sCount[r]], e.sCount[r] = p - l, w = [e.tShift[r]], e.tShift[r] = L - e.bMarks[r], C = e.md.block.ruler.getRules("blockquote"), y = e.parentType, e.parentType = "blockquote", d = r + 1; d < n && (A = e.sCount[d] < e.blkIndent, L = e.bMarks[d] + e.tShift[d], _ = e.eMarks[d], !(L >= _)); d++) { + if (e.src.charCodeAt(L++) === 62 && !A) { + for (l = p = e.sCount[d] + 1, e.src.charCodeAt(L) === 32 ? (L++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(L) === 9 ? (O = !0, (e.bsCount[d] + p) % 4 === 3 ? (L++, l++, p++, s = !1) : s = !0) : O = !1, g.push(e.bMarks[d]), e.bMarks[d] = L; L < _ && (a = e.src.charCodeAt(L), FV(a)); ) { a === 9 ? p += 4 - (p + e.bsCount[d] + (s ? 1 : 0)) % 4 : p++; - A++; + L++; } - h = A >= _, m.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (O ? 1 : 0), b.push(e.sCount[d]), e.sCount[d] = p - l, w.push(e.tShift[d]), e.tShift[d] = A - e.bMarks[d]; + h = L >= _, m.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (O ? 1 : 0), b.push(e.sCount[d]), e.sCount[d] = p - l, w.push(e.tShift[d]), e.tShift[d] = L - e.bMarks[d]; continue; } if (h) @@ -31939,20 +31939,20 @@ var Gpt = function(e, r, n, i) { for (v = e.blkIndent, e.blkIndent = 0, T = e.push("blockquote_open", "blockquote", 1), T.markup = ">", T.map = f = [r, 0], e.md.block.tokenize(e, r, d), T = e.push("blockquote_close", "blockquote", -1), T.markup = ">", e.lineMax = E, e.parentType = y, f[1] = e.line, o = 0; o < w.length; o++) e.bMarks[o + r] = g[o], e.tShift[o + r] = w[o], e.sCount[o + r] = b[o], e.bsCount[o + r] = m[o]; return e.blkIndent = v, !0; -}, jpt = Ir.isSpace, Kpt = function(e, r, n, i) { +}, Kpt = Ir.isSpace, Jpt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || (s = e.src.charCodeAt(u++), s !== 42 && s !== 45 && s !== 95)) return !1; for (a = 1; u < h; ) { - if (o = e.src.charCodeAt(u++), o !== s && !jpt(o)) + if (o = e.src.charCodeAt(u++), o !== s && !Kpt(o)) return !1; o === s && a++; } return a < 3 ? !1 : (i || (e.line = r + 1, l = e.push("hr", "hr", 0), l.map = [r, e.line], l.markup = Array(a + 1).join(String.fromCharCode(s))), !0); -}, Mne = Ir.isSpace; +}, Dne = Ir.isSpace; function zV(t, e) { var r, n, i, s; - return n = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], r = t.src.charCodeAt(n++), r !== 42 && r !== 45 && r !== 43 || n < i && (s = t.src.charCodeAt(n), !Mne(s)) ? -1 : n; + return n = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], r = t.src.charCodeAt(n++), r !== 42 && r !== 45 && r !== 43 || n < i && (s = t.src.charCodeAt(n), !Dne(s)) ? -1 : n; } function VV(t, e) { var r, n = t.bMarks[e] + t.tShift[e], i = n, s = t.eMarks[e]; @@ -31970,15 +31970,15 @@ function VV(t, e) { break; return -1; } - return i < s && (r = t.src.charCodeAt(i), !Mne(r)) ? -1 : i; + return i < s && (r = t.src.charCodeAt(i), !Dne(r)) ? -1 : i; } -function Jpt(t, e) { +function egt(t, e) { var r, n, i = t.level + 2; for (r = e + 2, n = t.tokens.length - 2; r < n; r++) t.tokens[r].level === i && t.tokens[r].type === "paragraph_open" && (t.tokens[r + 2].hidden = !0, t.tokens[r].hidden = !0, r += 2); } -var egt = function(e, r, n, i) { - var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, L, E, A, _, R, $, k, N, M, I = !1, D = !0; +var tgt = function(e, r, n, i) { + var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, A, E, L, _, R, $, k, N, M, I = !1, D = !0; if (e.sCount[r] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[r] - e.listIndent >= 4 && e.sCount[r] < e.blkIndent) return !1; if (i && e.parentType === "paragraph" && e.sCount[r] >= e.blkIndent && (I = !0), (_ = VV(e, r)) >= 0) { @@ -31993,16 +31993,16 @@ var egt = function(e, r, n, i) { if (v = e.src.charCodeAt(_ - 1), i) return !0; for (m = e.tokens.length, f ? (M = e.push("ordered_list_open", "ol", 1), y !== 1 && (M.attrs = [["start", y]])) : M = e.push("bullet_list_open", "ul", 1), M.map = g = [r, 0], M.markup = String.fromCharCode(v), w = r, R = !1, N = e.md.block.ruler.getRules("list"), C = e.parentType, e.parentType = "list"; w < n; ) { - for (A = _, b = e.eMarks[w], h = O = e.sCount[w] + _ - (e.bMarks[r] + e.tShift[r]); A < b; ) { - if (s = e.src.charCodeAt(A), s === 9) + for (L = _, b = e.eMarks[w], h = O = e.sCount[w] + _ - (e.bMarks[r] + e.tShift[r]); L < b; ) { + if (s = e.src.charCodeAt(L), s === 9) O += 4 - (O + e.bsCount[w]) % 4; else if (s === 32) O++; else break; - A++; + L++; } - if (a = A, a >= b ? u = 1 : u = O - h, u > 4 && (u = 1), l = h + u, M = e.push("list_item_open", "li", 1), M.markup = String.fromCharCode(v), M.map = d = [r, 0], f && (M.info = e.src.slice($, _ - 1)), E = e.tight, L = e.tShift[r], T = e.sCount[r], S = e.listIndent, e.listIndent = e.blkIndent, e.blkIndent = l, e.tight = !0, e.tShift[r] = a - e.bMarks[r], e.sCount[r] = O, a >= b && e.isEmpty(r + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, r, n, !0), (!e.tight || R) && (D = !1), R = e.line - r > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[r] = L, e.sCount[r] = T, e.tight = E, M = e.push("list_item_close", "li", -1), M.markup = String.fromCharCode(v), w = r = e.line, d[1] = w, a = e.bMarks[r], w >= n || e.sCount[w] < e.blkIndent || e.sCount[r] - e.blkIndent >= 4) + if (a = L, a >= b ? u = 1 : u = O - h, u > 4 && (u = 1), l = h + u, M = e.push("list_item_open", "li", 1), M.markup = String.fromCharCode(v), M.map = d = [r, 0], f && (M.info = e.src.slice($, _ - 1)), E = e.tight, A = e.tShift[r], T = e.sCount[r], S = e.listIndent, e.listIndent = e.blkIndent, e.blkIndent = l, e.tight = !0, e.tShift[r] = a - e.bMarks[r], e.sCount[r] = O, a >= b && e.isEmpty(r + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, r, n, !0), (!e.tight || R) && (D = !1), R = e.line - r > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[r] = A, e.sCount[r] = T, e.tight = E, M = e.push("list_item_close", "li", -1), M.markup = String.fromCharCode(v), w = r = e.line, d[1] = w, a = e.bMarks[r], w >= n || e.sCount[w] < e.blkIndent || e.sCount[r] - e.blkIndent >= 4) break; for (k = !1, o = 0, p = N.length; o < p; o++) if (N[o](e, w, n, !0)) { @@ -32020,9 +32020,9 @@ var egt = function(e, r, n, i) { if (v !== e.src.charCodeAt(_ - 1)) break; } - return f ? M = e.push("ordered_list_close", "ol", -1) : M = e.push("bullet_list_close", "ul", -1), M.markup = String.fromCharCode(v), g[1] = w, e.line = w, e.parentType = C, D && Jpt(e, m), !0; -}, tgt = Ir.normalizeReference, Vw = Ir.isSpace, rgt = function(e, r, n, i) { - var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S = 0, C = e.bMarks[r] + e.tShift[r], T = e.eMarks[r], L = r + 1; + return f ? M = e.push("ordered_list_close", "ol", -1) : M = e.push("bullet_list_close", "ul", -1), M.markup = String.fromCharCode(v), g[1] = w, e.line = w, e.parentType = C, D && egt(e, m), !0; +}, rgt = Ir.normalizeReference, Vw = Ir.isSpace, ngt = function(e, r, n, i) { + var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S = 0, C = e.bMarks[r] + e.tShift[r], T = e.eMarks[r], A = r + 1; if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(C) !== 91) return !1; for (; ++C < T; ) @@ -32031,17 +32031,17 @@ var egt = function(e, r, n, i) { return !1; break; } - for (l = e.lineMax, w = e.md.block.ruler.getRules("reference"), g = e.parentType, e.parentType = "reference"; L < l && !e.isEmpty(L); L++) - if (!(e.sCount[L] - e.blkIndent > 3) && !(e.sCount[L] < 0)) { + for (l = e.lineMax, w = e.md.block.ruler.getRules("reference"), g = e.parentType, e.parentType = "reference"; A < l && !e.isEmpty(A); A++) + if (!(e.sCount[A] - e.blkIndent > 3) && !(e.sCount[A] < 0)) { for (b = !1, h = 0, f = w.length; h < f; h++) - if (w[h](e, L, l, !0)) { + if (w[h](e, A, l, !0)) { b = !0; break; } if (b) break; } - for (y = e.getLines(r, L, e.blkIndent, !1).trim(), T = y.length, C = 1; C < T; C++) { + for (y = e.getLines(r, A, e.blkIndent, !1).trim(), T = y.length, C = 1; C < T; C++) { if (s = y.charCodeAt(C), s === 91) return !1; if (s === 93) { @@ -32069,8 +32069,8 @@ var egt = function(e, r, n, i) { if (C < T && y.charCodeAt(C) !== 10 && O) for (O = "", C = a, S = o; C < T && (s = y.charCodeAt(C), !!Vw(s)); ) C++; - return C < T && y.charCodeAt(C) !== 10 || (d = tgt(y.slice(1, p)), !d) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: O, href: u }), e.parentType = g, e.line = r + S + 1), !0); -}, ngt = [ + return C < T && y.charCodeAt(C) !== 10 || (d = rgt(y.slice(1, p)), !d) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: O, href: u }), e.parentType = g, e.line = r + S + 1), !0); +}, igt = [ "address", "article", "aside", @@ -32133,18 +32133,18 @@ var egt = function(e, r, n, i) { "tr", "track", "ul" -], uT = {}, igt = "[a-zA-Z_:][a-zA-Z0-9:._-]*", sgt = "[^\"'=<>`\\x00-\\x20]+", agt = "'[^']*'", ogt = '"[^"]*"', lgt = "(?:" + sgt + "|" + agt + "|" + ogt + ")", cgt = "(?:\\s+" + igt + "(?:\\s*=\\s*" + lgt + ")?)", Dne = "<[A-Za-z][A-Za-z0-9\\-]*" + cgt + "*\\s*\\/?>", Nne = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", ugt = "|", hgt = "<[?][\\s\\S]*?[?]>", fgt = "]*>", dgt = "", pgt = new RegExp("^(?:" + Dne + "|" + Nne + "|" + ugt + "|" + hgt + "|" + fgt + "|" + dgt + ")"), ggt = new RegExp("^(?:" + Dne + "|" + Nne + ")"); -uT.HTML_TAG_RE = pgt; -uT.HTML_OPEN_CLOSE_TAG_RE = ggt; -var mgt = ngt, vgt = uT.HTML_OPEN_CLOSE_TAG_RE, cp = [ +], hT = {}, sgt = "[a-zA-Z_:][a-zA-Z0-9:._-]*", agt = "[^\"'=<>`\\x00-\\x20]+", ogt = "'[^']*'", lgt = '"[^"]*"', cgt = "(?:" + agt + "|" + ogt + "|" + lgt + ")", ugt = "(?:\\s+" + sgt + "(?:\\s*=\\s*" + cgt + ")?)", Nne = "<[A-Za-z][A-Za-z0-9\\-]*" + ugt + "*\\s*\\/?>", Ine = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", hgt = "|", fgt = "<[?][\\s\\S]*?[?]>", dgt = "]*>", pgt = "", ggt = new RegExp("^(?:" + Nne + "|" + Ine + "|" + hgt + "|" + fgt + "|" + dgt + "|" + pgt + ")"), mgt = new RegExp("^(?:" + Nne + "|" + Ine + ")"); +hT.HTML_TAG_RE = ggt; +hT.HTML_OPEN_CLOSE_TAG_RE = mgt; +var vgt = igt, ygt = hT.HTML_OPEN_CLOSE_TAG_RE, cp = [ [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0], [/^/, !0], [/^<\?/, /\?>/, !0], [/^/, !0], [/^/, !0], - [new RegExp("^|$))", "i"), /^$/, !0], - [new RegExp(vgt.source + "\\s*$"), /^$/, !1] -], ygt = function(e, r, n, i) { + [new RegExp("^|$))", "i"), /^$/, !0], + [new RegExp(ygt.source + "\\s*$"), /^$/, !1] +], bgt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(u) !== 60) return !1; @@ -32162,14 +32162,14 @@ var mgt = ngt, vgt = uT.HTML_OPEN_CLOSE_TAG_RE, cp = [ } } return e.line = a, o = e.push("html_block", "", 0), o.map = [r, a], o.content = e.getLines(r, a, e.blkIndent, !0), !0; -}, UV = Ir.isSpace, bgt = function(e, r, n, i) { +}, UV = Ir.isSpace, xgt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || (s = e.src.charCodeAt(u), s !== 35 || u >= h)) return !1; for (a = 1, s = e.src.charCodeAt(++u); s === 35 && u < h && a <= 6; ) a++, s = e.src.charCodeAt(++u); return a > 6 || u < h && !UV(s) ? !1 : (i || (h = e.skipSpacesBack(h, u), o = e.skipCharsBack(h, 35, u), o > u && UV(e.src.charCodeAt(o - 1)) && (h = o), e.line = r + 1, l = e.push("heading_open", "h" + String(a), 1), l.markup = "########".slice(0, a), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = e.src.slice(u, h).trim(), l.map = [r, e.line], l.children = [], l = e.push("heading_close", "h" + String(a), -1), l.markup = "########".slice(0, a)), !0); -}, xgt = function(e, r, n) { +}, wgt = function(e, r, n) { var i, s, a, o, l, u, h, f, d, p = r + 1, g, m = e.md.block.ruler.getRules("paragraph"); if (e.sCount[r] - e.blkIndent >= 4) return !1; @@ -32190,7 +32190,7 @@ var mgt = ngt, vgt = uT.HTML_OPEN_CLOSE_TAG_RE, cp = [ } } return f ? (i = e.getLines(r, p, e.blkIndent, !1).trim(), e.line = p + 1, l = e.push("heading_open", "h" + String(f), 1), l.markup = String.fromCharCode(d), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = i, l.map = [r, e.line - 1], l.children = [], l = e.push("heading_close", "h" + String(f), -1), l.markup = String.fromCharCode(d), e.parentType = g, !0) : !1; -}, wgt = function(e, r) { +}, Ogt = function(e, r) { var n, i, s, a, o, l, u = r + 1, h = e.md.block.ruler.getRules("paragraph"), f = e.lineMax; for (l = e.parentType, e.parentType = "paragraph"; u < f && !e.isEmpty(u); u++) if (!(e.sCount[u] - e.blkIndent > 3) && !(e.sCount[u] < 0)) { @@ -32203,12 +32203,12 @@ var mgt = ngt, vgt = uT.HTML_OPEN_CLOSE_TAG_RE, cp = [ break; } return n = e.getLines(r, u, e.blkIndent, !1).trim(), e.line = u, o = e.push("paragraph_open", "p", 1), o.map = [r, e.line], o = e.push("inline", "", 0), o.content = n, o.map = [r, e.line], o.children = [], o = e.push("paragraph_close", "p", -1), e.parentType = l, !0; -}, Ine = sD, hT = Ir.isSpace; +}, Pne = aD, fT = Ir.isSpace; function Hc(t, e, r, n) { var i, s, a, o, l, u, h, f; for (this.src = t, this.md = e, this.env = r, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0, this.result = "", s = this.src, f = !1, a = o = u = h = 0, l = s.length; o < l; o++) { if (i = s.charCodeAt(o), !f) - if (hT(i)) { + if (fT(i)) { u++, i === 9 ? h += 4 - h % 4 : h++; continue; } else @@ -32218,7 +32218,7 @@ function Hc(t, e, r, n) { this.bMarks.push(s.length), this.eMarks.push(s.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1; } Hc.prototype.push = function(t, e, r) { - var n = new Ine(t, e, r); + var n = new Pne(t, e, r); return n.block = !0, r < 0 && this.level--, n.level = this.level, r > 0 && this.level++, this.tokens.push(n), n; }; Hc.prototype.isEmpty = function(e) { @@ -32230,7 +32230,7 @@ Hc.prototype.skipEmptyLines = function(e) { return e; }; Hc.prototype.skipSpaces = function(e) { - for (var r, n = this.src.length; e < n && (r = this.src.charCodeAt(e), !!hT(r)); e++) + for (var r, n = this.src.length; e < n && (r = this.src.charCodeAt(e), !!fT(r)); e++) ; return e; }; @@ -32238,7 +32238,7 @@ Hc.prototype.skipSpacesBack = function(e, r) { if (e <= r) return e; for (; e > r; ) - if (!hT(this.src.charCodeAt(--e))) + if (!fT(this.src.charCodeAt(--e))) return e + 1; return e; }; @@ -32261,7 +32261,7 @@ Hc.prototype.getLines = function(e, r, n, i) { return ""; for (h = new Array(r - e), s = 0; d < r; d++, s++) { for (a = 0, f = l = this.bMarks[d], d + 1 < r || i ? u = this.eMarks[d] + 1 : u = this.eMarks[d]; l < u && a < n; ) { - if (o = this.src.charCodeAt(l), hT(o)) + if (o = this.src.charCodeAt(l), fT(o)) o === 9 ? a += 4 - (a + this.bsCount[d]) % 4 : a++; else if (l - f < this.tShift[d]) a++; @@ -32273,26 +32273,26 @@ Hc.prototype.getLines = function(e, r, n, i) { } return h.join(""); }; -Hc.prototype.Token = Ine; -var Ogt = Hc, kgt = iD, Uw = [ - ["table", Gpt, ["paragraph", "reference"]], - ["code", Hpt], - ["fence", Xpt, ["paragraph", "reference", "blockquote", "list"]], - ["blockquote", Zpt, ["paragraph", "reference", "blockquote", "list"]], - ["hr", Kpt, ["paragraph", "reference", "blockquote", "list"]], - ["list", egt, ["paragraph", "reference", "blockquote"]], - ["reference", rgt], - ["html_block", ygt, ["paragraph", "reference", "blockquote"]], - ["heading", bgt, ["paragraph", "reference", "blockquote"]], - ["lheading", xgt], - ["paragraph", wgt] +Hc.prototype.Token = Pne; +var kgt = Hc, Sgt = sD, Uw = [ + ["table", Hpt, ["paragraph", "reference"]], + ["code", Xpt], + ["fence", Zpt, ["paragraph", "reference", "blockquote", "list"]], + ["blockquote", jpt, ["paragraph", "reference", "blockquote", "list"]], + ["hr", Jpt, ["paragraph", "reference", "blockquote", "list"]], + ["list", tgt, ["paragraph", "reference", "blockquote"]], + ["reference", ngt], + ["html_block", bgt, ["paragraph", "reference", "blockquote"]], + ["heading", xgt, ["paragraph", "reference", "blockquote"]], + ["lheading", wgt], + ["paragraph", Ogt] ]; -function fT() { - this.ruler = new kgt(); +function dT() { + this.ruler = new Sgt(); for (var t = 0; t < Uw.length; t++) this.ruler.push(Uw[t][0], Uw[t][1], { alt: (Uw[t][2] || []).slice() }); } -fT.prototype.tokenize = function(t, e, r) { +dT.prototype.tokenize = function(t, e, r) { for (var n, i, s = this.ruler.getRules(""), a = s.length, o = e, l = !1, u = t.md.options.maxNesting; o < r && (t.line = o = t.skipEmptyLines(o), !(o >= r || t.sCount[o] < t.blkIndent)); ) { if (t.level >= u) { t.line = r; @@ -32303,13 +32303,13 @@ fT.prototype.tokenize = function(t, e, r) { t.tight = !l, t.isEmpty(t.line - 1) && (l = !0), o = t.line, o < r && t.isEmpty(o) && (l = !0, o++, t.line = o); } }; -fT.prototype.parse = function(t, e, r, n) { +dT.prototype.parse = function(t, e, r, n) { var i; !t || (i = new this.State(t, e, r, n), this.tokenize(i, i.line, i.lineMax)); }; -fT.prototype.State = Ogt; -var Sgt = fT; -function Tgt(t) { +dT.prototype.State = kgt; +var Tgt = dT; +function Cgt(t) { switch (t) { case 10: case 33: @@ -32339,11 +32339,11 @@ function Tgt(t) { return !1; } } -var Cgt = function(e, r) { - for (var n = e.pos; n < e.posMax && !Tgt(e.src.charCodeAt(n)); ) +var Egt = function(e, r) { + for (var n = e.pos; n < e.posMax && !Cgt(e.src.charCodeAt(n)); ) n++; return n === e.pos ? !1 : (r || (e.pending += e.src.slice(e.pos, n)), e.pos = n, !0); -}, Egt = Ir.isSpace, _gt = function(e, r) { +}, _gt = Ir.isSpace, Agt = function(e, r) { var n, i, s, a = e.pos; if (e.src.charCodeAt(a) !== 10) return !1; @@ -32357,30 +32357,30 @@ var Cgt = function(e, r) { e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0); else e.push("softbreak", "br", 0); - for (a++; a < i && Egt(e.src.charCodeAt(a)); ) + for (a++; a < i && _gt(e.src.charCodeAt(a)); ) a++; return e.pos = a, !0; -}, Agt = Ir.isSpace, oD = []; +}, Lgt = Ir.isSpace, lD = []; for (var qV = 0; qV < 256; qV++) - oD.push(0); + lD.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) { - oD[t.charCodeAt(0)] = 1; + lD[t.charCodeAt(0)] = 1; }); -var Lgt = function(e, r) { +var Rgt = function(e, r) { var n, i = e.pos, s = e.posMax; if (e.src.charCodeAt(i) !== 92) return !1; if (i++, i < s) { - if (n = e.src.charCodeAt(i), n < 256 && oD[n] !== 0) + if (n = e.src.charCodeAt(i), n < 256 && lD[n] !== 0) return r || (e.pending += e.src[i]), e.pos += 2, !0; if (n === 10) { - for (r || e.push("hardbreak", "br", 0), i++; i < s && (n = e.src.charCodeAt(i), !!Agt(n)); ) + for (r || e.push("hardbreak", "br", 0), i++; i < s && (n = e.src.charCodeAt(i), !!Lgt(n)); ) i++; return e.pos = i, !0; } } return r || (e.pending += "\\"), e.pos++, !0; -}, Rgt = function(e, r) { +}, Mgt = function(e, r) { var n, i, s, a, o, l, u, h, f = e.pos, d = e.src.charCodeAt(f); if (d !== 96) return !1; @@ -32396,8 +32396,8 @@ var Lgt = function(e, r) { e.backticks[h] = o; } return e.backticksScanned = !0, r || (e.pending += s), e.pos += u, !0; -}, dT = {}; -dT.tokenize = function(e, r) { +}, pT = {}; +pT.tokenize = function(e, r) { var n, i, s, a, o, l = e.pos, u = e.src.charCodeAt(l); if (r || u !== 126 || (i = e.scanDelims(e.pos, !0), a = i.length, o = String.fromCharCode(u), a < 2)) return !1; @@ -32422,13 +32422,13 @@ function QV(t, e) { n--, r !== n && (a = t.tokens[n], t.tokens[n] = t.tokens[r], t.tokens[r] = a); } } -dT.postProcess = function(e) { +pT.postProcess = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; for (QV(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && QV(e, n[r].delimiters); }; -var pT = {}; -pT.tokenize = function(e, r) { +var gT = {}; +gT.tokenize = function(e, r) { var n, i, s, a = e.pos, o = e.src.charCodeAt(a); if (r || o !== 95 && o !== 42) return !1; @@ -32448,25 +32448,25 @@ function YV(t, e) { for (r = l - 1; r >= 0; r--) n = e[r], !(n.marker !== 95 && n.marker !== 42) && n.end !== -1 && (i = e[n.end], o = r > 0 && e[r - 1].end === n.end + 1 && e[r - 1].marker === n.marker && e[r - 1].token === n.token - 1 && e[n.end + 1].token === i.token + 1, a = String.fromCharCode(n.marker), s = t.tokens[n.token], s.type = o ? "strong_open" : "em_open", s.tag = o ? "strong" : "em", s.nesting = 1, s.markup = o ? a + a : a, s.content = "", s = t.tokens[i.token], s.type = o ? "strong_close" : "em_close", s.tag = o ? "strong" : "em", s.nesting = -1, s.markup = o ? a + a : a, s.content = "", o && (t.tokens[e[r - 1].token].content = "", t.tokens[e[n.end + 1].token].content = "", r--)); } -pT.postProcess = function(e) { +gT.postProcess = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; for (YV(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && YV(e, n[r].delimiters); }; -var Mgt = Ir.normalizeReference, x6 = Ir.isSpace, Dgt = function(e, r) { +var Dgt = Ir.normalizeReference, w6 = Ir.isSpace, Ngt = function(e, r) { var n, i, s, a, o, l, u, h, f, d = "", p = "", g = e.pos, m = e.posMax, v = e.pos, y = !0; if (e.src.charCodeAt(e.pos) !== 91 || (o = e.pos + 1, a = e.md.helpers.parseLinkLabel(e, e.pos, !0), a < 0)) return !1; if (l = a + 1, l < m && e.src.charCodeAt(l) === 40) { - for (y = !1, l++; l < m && (i = e.src.charCodeAt(l), !(!x6(i) && i !== 10)); l++) + for (y = !1, l++; l < m && (i = e.src.charCodeAt(l), !(!w6(i) && i !== 10)); l++) ; if (l >= m) return !1; if (v = l, u = e.md.helpers.parseLinkDestination(e.src, l, e.posMax), u.ok) { - for (d = e.md.normalizeLink(u.str), e.md.validateLink(d) ? l = u.pos : d = "", v = l; l < m && (i = e.src.charCodeAt(l), !(!x6(i) && i !== 10)); l++) + for (d = e.md.normalizeLink(u.str), e.md.validateLink(d) ? l = u.pos : d = "", v = l; l < m && (i = e.src.charCodeAt(l), !(!w6(i) && i !== 10)); l++) ; if (u = e.md.helpers.parseLinkTitle(e.src, l, e.posMax), l < m && v !== l && u.ok) - for (p = u.str, l = u.pos; l < m && (i = e.src.charCodeAt(l), !(!x6(i) && i !== 10)); l++) + for (p = u.str, l = u.pos; l < m && (i = e.src.charCodeAt(l), !(!w6(i) && i !== 10)); l++) ; } (l >= m || e.src.charCodeAt(l) !== 41) && (y = !0), l++; @@ -32474,24 +32474,24 @@ var Mgt = Ir.normalizeReference, x6 = Ir.isSpace, Dgt = function(e, r) { if (y) { if (typeof e.env.references > "u") return !1; - if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? s = e.src.slice(v, l++) : l = a + 1) : l = a + 1, s || (s = e.src.slice(o, a)), h = e.env.references[Mgt(s)], !h) + if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? s = e.src.slice(v, l++) : l = a + 1) : l = a + 1, s || (s = e.src.slice(o, a)), h = e.env.references[Dgt(s)], !h) return e.pos = g, !1; d = h.href, p = h.title; } return r || (e.pos = o, e.posMax = a, f = e.push("link_open", "a", 1), f.attrs = n = [["href", d]], p && n.push(["title", p]), e.md.inline.tokenize(e), f = e.push("link_close", "a", -1)), e.pos = l, e.posMax = m, !0; -}, Ngt = Ir.normalizeReference, w6 = Ir.isSpace, Igt = function(e, r) { +}, Igt = Ir.normalizeReference, O6 = Ir.isSpace, Pgt = function(e, r) { var n, i, s, a, o, l, u, h, f, d, p, g, m, v = "", y = e.pos, b = e.posMax; if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91 || (l = e.pos + 2, o = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1), o < 0)) return !1; if (u = o + 1, u < b && e.src.charCodeAt(u) === 40) { - for (u++; u < b && (i = e.src.charCodeAt(u), !(!w6(i) && i !== 10)); u++) + for (u++; u < b && (i = e.src.charCodeAt(u), !(!O6(i) && i !== 10)); u++) ; if (u >= b) return !1; - for (m = u, f = e.md.helpers.parseLinkDestination(e.src, u, e.posMax), f.ok && (v = e.md.normalizeLink(f.str), e.md.validateLink(v) ? u = f.pos : v = ""), m = u; u < b && (i = e.src.charCodeAt(u), !(!w6(i) && i !== 10)); u++) + for (m = u, f = e.md.helpers.parseLinkDestination(e.src, u, e.posMax), f.ok && (v = e.md.normalizeLink(f.str), e.md.validateLink(v) ? u = f.pos : v = ""), m = u; u < b && (i = e.src.charCodeAt(u), !(!O6(i) && i !== 10)); u++) ; if (f = e.md.helpers.parseLinkTitle(e.src, u, e.posMax), u < b && m !== u && f.ok) - for (d = f.str, u = f.pos; u < b && (i = e.src.charCodeAt(u), !(!w6(i) && i !== 10)); u++) + for (d = f.str, u = f.pos; u < b && (i = e.src.charCodeAt(u), !(!O6(i) && i !== 10)); u++) ; else d = ""; @@ -32501,7 +32501,7 @@ var Mgt = Ir.normalizeReference, x6 = Ir.isSpace, Dgt = function(e, r) { } else { if (typeof e.env.references > "u") return !1; - if (u < b && e.src.charCodeAt(u) === 91 ? (m = u + 1, u = e.md.helpers.parseLinkLabel(e, u), u >= 0 ? a = e.src.slice(m, u++) : u = o + 1) : u = o + 1, a || (a = e.src.slice(l, o)), h = e.env.references[Ngt(a)], !h) + if (u < b && e.src.charCodeAt(u) === 91 ? (m = u + 1, u = e.md.helpers.parseLinkLabel(e, u), u >= 0 ? a = e.src.slice(m, u++) : u = o + 1) : u = o + 1, a || (a = e.src.slice(l, o)), h = e.env.references[Igt(a)], !h) return e.pos = y, !1; v = h.href, d = h.title; } @@ -32511,7 +32511,7 @@ var Mgt = Ir.normalizeReference, x6 = Ir.isSpace, Dgt = function(e, r) { e.env, g = [] ), p = e.push("image", "img", 0), p.attrs = n = [["src", v], ["alt", ""]], p.children = g, p.content = s, d && n.push(["title", d])), e.pos = u, e.posMax = b, !0; -}, Pgt = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[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])?)*)$/, $gt = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, Bgt = function(e, r) { +}, $gt = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[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])?)*)$/, Bgt = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, Fgt = function(e, r) { var n, i, s, a, o, l, u = e.pos; if (e.src.charCodeAt(u) !== 60) return !1; @@ -32521,24 +32521,24 @@ var Mgt = Ir.normalizeReference, x6 = Ir.isSpace, Dgt = function(e, r) { if (a === 62) break; } - return n = e.src.slice(o + 1, u), $gt.test(n) ? (i = e.md.normalizeLink(n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : Pgt.test(n) ? (i = e.md.normalizeLink("mailto:" + n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : !1; -}, Fgt = uT.HTML_TAG_RE; -function zgt(t) { + return n = e.src.slice(o + 1, u), Bgt.test(n) ? (i = e.md.normalizeLink(n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : $gt.test(n) ? (i = e.md.normalizeLink("mailto:" + n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : !1; +}, zgt = hT.HTML_TAG_RE; +function Vgt(t) { var e = t | 32; return e >= 97 && e <= 122; } -var Vgt = function(e, r) { +var Ugt = function(e, r) { var n, i, s, a, o = e.pos; - return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(o) !== 60 || o + 2 >= s) || (n = e.src.charCodeAt(o + 1), n !== 33 && n !== 63 && n !== 47 && !zgt(n)) || (i = e.src.slice(o).match(Fgt), !i) ? !1 : (r || (a = e.push("html_inline", "", 0), a.content = e.src.slice(o, o + i[0].length)), e.pos += i[0].length, !0); -}, WV = rD.exports, Ugt = Ir.has, qgt = Ir.isValidEntityCode, GV = Ir.fromCodePoint, Qgt = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Ygt = /^&([a-z][a-z0-9]{1,31});/i, Wgt = function(e, r) { + return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(o) !== 60 || o + 2 >= s) || (n = e.src.charCodeAt(o + 1), n !== 33 && n !== 63 && n !== 47 && !Vgt(n)) || (i = e.src.slice(o).match(zgt), !i) ? !1 : (r || (a = e.push("html_inline", "", 0), a.content = e.src.slice(o, o + i[0].length)), e.pos += i[0].length, !0); +}, WV = nD.exports, qgt = Ir.has, Qgt = Ir.isValidEntityCode, GV = Ir.fromCodePoint, Ygt = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Wgt = /^&([a-z][a-z0-9]{1,31});/i, Ggt = function(e, r) { var n, i, s, a = e.pos, o = e.posMax; if (e.src.charCodeAt(a) !== 38) return !1; if (a + 1 < o) { if (n = e.src.charCodeAt(a + 1), n === 35) { - if (s = e.src.slice(a).match(Qgt), s) - return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += qgt(i) ? GV(i) : GV(65533)), e.pos += s[0].length, !0; - } else if (s = e.src.slice(a).match(Ygt), s && Ugt(WV, s[1])) + if (s = e.src.slice(a).match(Ygt), s) + return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += Qgt(i) ? GV(i) : GV(65533)), e.pos += s[0].length, !0; + } else if (s = e.src.slice(a).match(Wgt), s && qgt(WV, s[1])) return r || (e.pending += WV[s[1]]), e.pos += s[0].length, !0; } return r || (e.pending += "&"), e.pos++, !0; @@ -32558,26 +32558,26 @@ function HV(t, e) { } } } -var Ggt = function(e) { +var Hgt = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; for (HV(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && HV(e, n[r].delimiters); -}, Hgt = function(e) { +}, Xgt = function(e) { var r, n, i = 0, s = e.tokens, a = e.tokens.length; for (r = n = 0; r < a; r++) s[r].nesting < 0 && i--, s[r].level = i, s[r].nesting > 0 && i++, s[r].type === "text" && r + 1 < a && s[r + 1].type === "text" ? s[r + 1].content = s[r].content + s[r + 1].content : (r !== n && (s[n] = s[r]), n++); r !== n && (s.length = n); -}, lD = sD, XV = Ir.isWhiteSpace, ZV = Ir.isPunctChar, jV = Ir.isMdAsciiPunct; +}, cD = aD, XV = Ir.isWhiteSpace, ZV = Ir.isPunctChar, jV = Ir.isMdAsciiPunct; function ix(t, e, r, n) { this.src = t, this.env = r, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1; } ix.prototype.pushPending = function() { - var t = new lD("text", "", 0); + var t = new cD("text", "", 0); return t.content = this.pending, t.level = this.pendingLevel, this.tokens.push(t), this.pending = "", t; }; ix.prototype.push = function(t, e, r) { this.pending && this.pushPending(); - var n = new lD(t, e, r), i = null; + var n = new cD(t, e, r), i = null; return r < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, r > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], i = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(i), n; }; ix.prototype.scanDelims = function(t, e) { @@ -32590,31 +32590,31 @@ ix.prototype.scanDelims = function(t, e) { length: s }; }; -ix.prototype.Token = lD; -var Xgt = ix, KV = iD, O6 = [ - ["text", Cgt], - ["newline", _gt], - ["escape", Lgt], - ["backticks", Rgt], - ["strikethrough", dT.tokenize], - ["emphasis", pT.tokenize], - ["link", Dgt], - ["image", Igt], - ["autolink", Bgt], - ["html_inline", Vgt], - ["entity", Wgt] -], k6 = [ - ["balance_pairs", Ggt], - ["strikethrough", dT.postProcess], - ["emphasis", pT.postProcess], - ["text_collapse", Hgt] +ix.prototype.Token = cD; +var Zgt = ix, KV = sD, k6 = [ + ["text", Egt], + ["newline", Agt], + ["escape", Rgt], + ["backticks", Mgt], + ["strikethrough", pT.tokenize], + ["emphasis", gT.tokenize], + ["link", Ngt], + ["image", Pgt], + ["autolink", Fgt], + ["html_inline", Ugt], + ["entity", Ggt] +], S6 = [ + ["balance_pairs", Hgt], + ["strikethrough", pT.postProcess], + ["emphasis", gT.postProcess], + ["text_collapse", Xgt] ]; function sx() { var t; - for (this.ruler = new KV(), t = 0; t < O6.length; t++) - this.ruler.push(O6[t][0], O6[t][1]); - for (this.ruler2 = new KV(), t = 0; t < k6.length; t++) - this.ruler2.push(k6[t][0], k6[t][1]); + for (this.ruler = new KV(), t = 0; t < k6.length; t++) + this.ruler.push(k6[t][0], k6[t][1]); + for (this.ruler2 = new KV(), t = 0; t < S6.length; t++) + this.ruler2.push(S6[t][0], S6[t][1]); } sx.prototype.skipToken = function(t) { var e, r, n = t.pos, i = this.ruler.getRules(""), s = i.length, a = t.md.options.maxNesting, o = t.cache; @@ -32648,17 +32648,17 @@ sx.prototype.parse = function(t, e, r, n) { for (this.tokenize(o), s = this.ruler2.getRules(""), a = s.length, i = 0; i < a; i++) s[i](o); }; -sx.prototype.State = Xgt; -var Zgt = sx, S6, JV; -function jgt() { - return JV || (JV = 1, S6 = function(t) { +sx.prototype.State = Zgt; +var jgt = sx, T6, JV; +function Kgt() { + return JV || (JV = 1, T6 = function(t) { var e = {}; - e.src_Any = Ene().source, e.src_Cc = _ne().source, e.src_Z = Ane().source, e.src_P = nD.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); + e.src_Any = _ne().source, e.src_Cc = Ane().source, e.src_Z = Lne().source, e.src_P = iD.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); var r = "[><\uFF5C]"; return e.src_pseudo_letter = "(?:(?!" + r + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + r + "|" + e.src_ZPCc + ")(?!-|_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + r + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]).|" + (t && t["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + e.src_ZCc + ").|;(?!" + e.src_ZCc + ").|\\!+(?!" + e.src_ZCc + "|[!]).|\\?(?!" + e.src_ZCc + "|[?]).)+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = "(?:" + e.src_xn + "|" + e.src_pseudo_letter + "{1,63})", e.src_domain = "(?:" + e.src_xn + "|(?:" + e.src_pseudo_letter + ")|(?:" + e.src_pseudo_letter + "(?:-|" + e.src_pseudo_letter + "){0,61}" + e.src_pseudo_letter + "))", e.src_host = "(?:(?:(?:(?:" + e.src_domain + ")\\.)*" + e.src_domain + "))", e.tpl_host_fuzzy = "(?:" + e.src_ip4 + "|(?:(?:(?:" + e.src_domain + ")\\.)+(?:%TLDS%)))", e.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + e.src_domain + ")\\.)+(?:%TLDS%))", e.src_host_strict = e.src_host + e.src_host_terminator, e.tpl_host_fuzzy_strict = e.tpl_host_fuzzy + e.src_host_terminator, e.src_host_port_strict = e.src_host + e.src_port + e.src_host_terminator, e.tpl_host_port_fuzzy_strict = e.tpl_host_fuzzy + e.src_port + e.src_host_terminator, e.tpl_host_port_no_ip_fuzzy_strict = e.tpl_host_no_ip_fuzzy + e.src_port + e.src_host_terminator, e.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + e.src_ZPCc + "|>|$))", e.tpl_email_fuzzy = "(^|" + r + '|"|\\(|' + e.src_ZCc + ")(" + e.src_email_name + "@" + e.tpl_host_fuzzy_strict + ")", e.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|" + e.src_ZPCc + "))((?![$+<=>^`|\uFF5C])" + e.tpl_host_port_fuzzy_strict + e.src_path + ")", e.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|" + e.src_ZPCc + "))((?![$+<=>^`|\uFF5C])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e; - }), S6; + }), T6; } -function h8(t) { +function f8(t) { var e = Array.prototype.slice.call(arguments, 1); return e.forEach(function(r) { !r || Object.keys(r).forEach(function(n) { @@ -32666,35 +32666,35 @@ function h8(t) { }); }), t; } -function gT(t) { +function mT(t) { return Object.prototype.toString.call(t); } -function Kgt(t) { - return gT(t) === "[object String]"; -} function Jgt(t) { - return gT(t) === "[object Object]"; + return mT(t) === "[object String]"; } function e1t(t) { - return gT(t) === "[object RegExp]"; + return mT(t) === "[object Object]"; +} +function t1t(t) { + return mT(t) === "[object RegExp]"; } function eU(t) { - return gT(t) === "[object Function]"; + return mT(t) === "[object Function]"; } -function t1t(t) { +function r1t(t) { return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } -var Pne = { +var $ne = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 }; -function r1t(t) { +function n1t(t) { return Object.keys(t || {}).reduce(function(e, r) { - return e || Pne.hasOwnProperty(r); + return e || $ne.hasOwnProperty(r); }, !1); } -var n1t = { +var i1t = { "http:": { validate: function(t, e, r) { var n = t.slice(e); @@ -32724,11 +32724,11 @@ var n1t = { )), r.re.mailto.test(n) ? n.match(r.re.mailto)[0].length : 0; } } -}, i1t = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", s1t = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); -function a1t(t) { +}, s1t = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", a1t = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); +function o1t(t) { t.__index__ = -1, t.__text_cache__ = ""; } -function o1t(t) { +function l1t(t) { return function(e, r) { var n = e.slice(r); return t.test(n) ? n.match(t)[0].length : 0; @@ -32740,8 +32740,8 @@ function tU() { }; } function h3(t) { - var e = t.re = jgt()(t.__opts__), r = t.__tlds__.slice(); - t.onCompile(), t.__tlds_replaced__ || r.push(i1t), r.push(e.src_xn), e.src_tlds = r.join("|"); + var e = t.re = Kgt()(t.__opts__), r = t.__tlds__.slice(); + t.onCompile(), t.__tlds_replaced__ || r.push(s1t), r.push(e.src_xn), e.src_tlds = r.join("|"); function n(o) { return o.replace("%TLDS%", e.src_tlds); } @@ -32755,11 +32755,11 @@ function h3(t) { var l = t.__schemas__[o]; if (l !== null) { var u = { validate: null, link: null }; - if (t.__compiled__[o] = u, Jgt(l)) { - e1t(l.validate) ? u.validate = o1t(l.validate) : eU(l.validate) ? u.validate = l.validate : s(o, l), eU(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = tU(); + if (t.__compiled__[o] = u, e1t(l)) { + t1t(l.validate) ? u.validate = l1t(l.validate) : eU(l.validate) ? u.validate = l.validate : s(o, l), eU(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = tU(); return; } - if (Kgt(l)) { + if (Jgt(l)) { i.push(o); return; } @@ -32770,30 +32770,30 @@ function h3(t) { }), t.__compiled__[""] = { validate: null, normalize: tU() }; var a = Object.keys(t.__compiled__).filter(function(o) { return o.length > 0 && t.__compiled__[o]; - }).map(t1t).join("|"); + }).map(r1t).join("|"); t.re.schema_test = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + a + ")", "i"), t.re.schema_search = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + a + ")", "ig"), t.re.pretest = RegExp( "(" + t.re.schema_test.source + ")|(" + t.re.host_fuzzy_test.source + ")|@", "i" - ), a1t(t); + ), o1t(t); } -function l1t(t, e) { +function c1t(t, e) { var r = t.__index__, n = t.__last_index__, i = t.__text_cache__.slice(r, n); this.schema = t.__schema__.toLowerCase(), this.index = r + e, this.lastIndex = n + e, this.raw = i, this.text = i, this.url = i; } function rU(t, e) { - var r = new l1t(t, e); + var r = new c1t(t, e); return t.__compiled__[r.schema].normalize(r, t), r; } function Qo(t, e) { if (!(this instanceof Qo)) return new Qo(t, e); - e || r1t(t) && (e = t, t = {}), this.__opts__ = h8({}, Pne, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = h8({}, n1t, t), this.__compiled__ = {}, this.__tlds__ = s1t, this.__tlds_replaced__ = !1, this.re = {}, h3(this); + e || n1t(t) && (e = t, t = {}), this.__opts__ = f8({}, $ne, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = f8({}, i1t, t), this.__compiled__ = {}, this.__tlds__ = a1t, this.__tlds_replaced__ = !1, this.re = {}, h3(this); } Qo.prototype.add = function(e, r) { return this.__schemas__[e] = r, h3(this), this; }; Qo.prototype.set = function(e) { - return this.__opts__ = h8(this.__opts__, e), this; + return this.__opts__ = f8(this.__opts__, e), this; }; Qo.prototype.test = function(e) { if (this.__text_cache__ = e, this.__index__ = -1, !e.length) @@ -32831,30 +32831,30 @@ Qo.prototype.normalize = function(e) { }; Qo.prototype.onCompile = function() { }; -var c1t = Qo; -const eg = 2147483647, yc = 36, cD = 1, i2 = 26, u1t = 38, h1t = 700, $ne = 72, Bne = 128, Fne = "-", f1t = /^xn--/, d1t = /[^\0-\x7F]/, p1t = /[\x2E\u3002\uFF0E\uFF61]/g, g1t = { +var u1t = Qo; +const eg = 2147483647, yc = 36, uD = 1, i2 = 26, h1t = 38, f1t = 700, Bne = 72, Fne = 128, zne = "-", d1t = /^xn--/, p1t = /[^\0-\x7F]/, g1t = /[\x2E\u3002\uFF0E\uFF61]/g, m1t = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" -}, T6 = yc - cD, bc = Math.floor, C6 = String.fromCharCode; +}, C6 = yc - uD, bc = Math.floor, E6 = String.fromCharCode; function Th(t) { - throw new RangeError(g1t[t]); + throw new RangeError(m1t[t]); } -function m1t(t, e) { +function v1t(t, e) { const r = []; let n = t.length; for (; n--; ) r[n] = e(t[n]); return r; } -function zne(t, e) { +function Vne(t, e) { const r = t.split("@"); let n = ""; - r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(p1t, "."); - const i = t.split("."), s = m1t(i, e).join("."); + r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(g1t, "."); + const i = t.split("."), s = v1t(i, e).join("."); return n + s; } -function uD(t) { +function hD(t) { const e = []; let r = 0; const n = t.length; @@ -32868,18 +32868,18 @@ function uD(t) { } return e; } -const Vne = (t) => String.fromCodePoint(...t), v1t = function(t) { +const Une = (t) => String.fromCodePoint(...t), y1t = function(t) { return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : yc; }, nU = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); -}, Une = function(t, e, r) { +}, qne = function(t, e, r) { let n = 0; - for (t = r ? bc(t / h1t) : t >> 1, t += bc(t / e); t > T6 * i2 >> 1; n += yc) - t = bc(t / T6); - return bc(n + (T6 + 1) * t / (t + u1t)); -}, hD = function(t) { + for (t = r ? bc(t / f1t) : t >> 1, t += bc(t / e); t > C6 * i2 >> 1; n += yc) + t = bc(t / C6); + return bc(n + (C6 + 1) * t / (t + h1t)); +}, fD = function(t) { const e = [], r = t.length; - let n = 0, i = Bne, s = $ne, a = t.lastIndexOf(Fne); + let n = 0, i = Fne, s = Bne, a = t.lastIndexOf(zne); a < 0 && (a = 0); for (let o = 0; o < a; ++o) t.charCodeAt(o) >= 128 && Th("not-basic"), e.push(t.charCodeAt(o)); @@ -32887,28 +32887,28 @@ const Vne = (t) => String.fromCodePoint(...t), v1t = function(t) { const l = n; for (let h = 1, f = yc; ; f += yc) { o >= r && Th("invalid-input"); - const d = v1t(t.charCodeAt(o++)); + const d = y1t(t.charCodeAt(o++)); d >= yc && Th("invalid-input"), d > bc((eg - n) / h) && Th("overflow"), n += d * h; - const p = f <= s ? cD : f >= s + i2 ? i2 : f - s; + const p = f <= s ? uD : f >= s + i2 ? i2 : f - s; if (d < p) break; const g = yc - p; h > bc(eg / g) && Th("overflow"), h *= g; } const u = e.length + 1; - s = Une(n - l, u, l == 0), bc(n / u) > eg - i && Th("overflow"), i += bc(n / u), n %= u, e.splice(n++, 0, i); + s = qne(n - l, u, l == 0), bc(n / u) > eg - i && Th("overflow"), i += bc(n / u), n %= u, e.splice(n++, 0, i); } return String.fromCodePoint(...e); -}, fD = function(t) { +}, dD = function(t) { const e = []; - t = uD(t); + t = hD(t); const r = t.length; - let n = Bne, i = 0, s = $ne; + let n = Fne, i = 0, s = Bne; for (const l of t) - l < 128 && e.push(C6(l)); + l < 128 && e.push(E6(l)); const a = e.length; let o = a; - for (a && e.push(Fne); o < r; ) { + for (a && e.push(zne); o < r; ) { let l = eg; for (const h of t) h >= n && h < l && (l = h); @@ -32918,48 +32918,48 @@ const Vne = (t) => String.fromCodePoint(...t), v1t = function(t) { if (h < n && ++i > eg && Th("overflow"), h === n) { let f = i; for (let d = yc; ; d += yc) { - const p = d <= s ? cD : d >= s + i2 ? i2 : d - s; + const p = d <= s ? uD : d >= s + i2 ? i2 : d - s; if (f < p) break; const g = f - p, m = yc - p; e.push( - C6(nU(p + g % m, 0)) + E6(nU(p + g % m, 0)) ), f = bc(g / m); } - e.push(C6(nU(f, 0))), s = Une(i, u, o === a), i = 0, ++o; + e.push(E6(nU(f, 0))), s = qne(i, u, o === a), i = 0, ++o; } ++i, ++n; } return e.join(""); -}, qne = function(t) { - return zne(t, function(e) { - return f1t.test(e) ? hD(e.slice(4).toLowerCase()) : e; - }); }, Qne = function(t) { - return zne(t, function(e) { - return d1t.test(e) ? "xn--" + fD(e) : e; + return Vne(t, function(e) { + return d1t.test(e) ? fD(e.slice(4).toLowerCase()) : e; + }); +}, Yne = function(t) { + return Vne(t, function(e) { + return p1t.test(e) ? "xn--" + dD(e) : e; }); -}, y1t = { +}, b1t = { version: "2.3.1", ucs2: { - decode: uD, - encode: Vne - }, - decode: hD, - encode: fD, - toASCII: Qne, - toUnicode: qne -}, b1t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + decode: hD, + encode: Une + }, + decode: fD, + encode: dD, + toASCII: Yne, + toUnicode: Qne +}, x1t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ucs2decode: uD, - ucs2encode: Vne, - decode: hD, - encode: fD, - toASCII: Qne, - toUnicode: qne, - default: y1t -}, Symbol.toStringTag, { value: "Module" })), x1t = /* @__PURE__ */ EZ(b1t); -var w1t = { + ucs2decode: hD, + ucs2encode: Une, + decode: fD, + encode: dD, + toASCII: Yne, + toUnicode: Qne, + default: b1t +}, Symbol.toStringTag, { value: "Module" })), w1t = /* @__PURE__ */ _Z(x1t); +var O1t = { options: { html: !1, xhtmlOut: !1, @@ -32976,7 +32976,7 @@ var w1t = { block: {}, inline: {} } -}, O1t = { +}, k1t = { options: { html: !1, xhtmlOut: !1, @@ -33011,7 +33011,7 @@ var w1t = { ] } } -}, k1t = { +}, S1t = { options: { html: !0, xhtmlOut: !0, @@ -33065,30 +33065,30 @@ var w1t = { ] } } -}, Jv = Ir, S1t = cT, T1t = kpt, C1t = Wpt, E1t = Sgt, _1t = Zgt, A1t = c1t, Ld = Q1, Yne = x1t, L1t = { - default: w1t, - zero: O1t, - commonmark: k1t -}, R1t = /^(vbscript|javascript|file|data):/, M1t = /^data:image\/(gif|png|jpeg|webp);/; -function D1t(t) { +}, Jv = Ir, T1t = uT, C1t = Spt, E1t = Gpt, _1t = Tgt, A1t = jgt, L1t = u1t, Ld = Q1, Wne = w1t, R1t = { + default: O1t, + zero: k1t, + commonmark: S1t +}, M1t = /^(vbscript|javascript|file|data):/, D1t = /^data:image\/(gif|png|jpeg|webp);/; +function N1t(t) { var e = t.trim().toLowerCase(); - return R1t.test(e) ? !!M1t.test(e) : !0; + return M1t.test(e) ? !!D1t.test(e) : !0; } -var Wne = ["http:", "https:", "mailto:"]; -function N1t(t) { +var Gne = ["http:", "https:", "mailto:"]; +function I1t(t) { var e = Ld.parse(t, !0); - if (e.hostname && (!e.protocol || Wne.indexOf(e.protocol) >= 0)) + if (e.hostname && (!e.protocol || Gne.indexOf(e.protocol) >= 0)) try { - e.hostname = Yne.toASCII(e.hostname); + e.hostname = Wne.toASCII(e.hostname); } catch { } return Ld.encode(Ld.format(e)); } -function I1t(t) { +function P1t(t) { var e = Ld.parse(t, !0); - if (e.hostname && (!e.protocol || Wne.indexOf(e.protocol) >= 0)) + if (e.hostname && (!e.protocol || Gne.indexOf(e.protocol) >= 0)) try { - e.hostname = Yne.toUnicode(e.hostname); + e.hostname = Wne.toUnicode(e.hostname); } catch { } return Ld.decode(Ld.format(e), Ld.decode.defaultChars + "%"); @@ -33096,14 +33096,14 @@ function I1t(t) { function Yo(t, e) { if (!(this instanceof Yo)) return new Yo(t, e); - e || Jv.isString(t) || (e = t || {}, t = "default"), this.inline = new _1t(), this.block = new E1t(), this.core = new C1t(), this.renderer = new T1t(), this.linkify = new A1t(), this.validateLink = D1t, this.normalizeLink = N1t, this.normalizeLinkText = I1t, this.utils = Jv, this.helpers = Jv.assign({}, S1t), this.options = {}, this.configure(t), e && this.set(e); + e || Jv.isString(t) || (e = t || {}, t = "default"), this.inline = new A1t(), this.block = new _1t(), this.core = new E1t(), this.renderer = new C1t(), this.linkify = new L1t(), this.validateLink = N1t, this.normalizeLink = I1t, this.normalizeLinkText = P1t, this.utils = Jv, this.helpers = Jv.assign({}, T1t), this.options = {}, this.configure(t), e && this.set(e); } Yo.prototype.set = function(t) { return Jv.assign(this.options, t), this; }; Yo.prototype.configure = function(t) { var e = this, r; - if (Jv.isString(t) && (r = t, t = L1t[r], !t)) + if (Jv.isString(t) && (r = t, t = R1t[r], !t)) throw new Error('Wrong `markdown-it` preset "' + r + '", check name'); if (!t) throw new Error("Wrong `markdown-it` preset, can't be empty"); @@ -33155,12 +33155,12 @@ Yo.prototype.parseInline = function(t, e) { Yo.prototype.renderInline = function(t, e) { return e = e || {}, this.renderer.render(this.parseInline(t, e), this.options, e); }; -var P1t = Yo; +var $1t = Yo; (function(t) { - t.exports = P1t; -})(Cne); -const $1t = /* @__PURE__ */ CZ(Cne.exports); -async function Gne(t, e) { + t.exports = $1t; +})(Ene); +const B1t = /* @__PURE__ */ EZ(Ene.exports); +async function Hne(t, e) { return new Promise((r) => { const n = t.getElementById(e); if (n) { @@ -33177,11 +33177,11 @@ async function Gne(t, e) { }); }); } -const Hne = "myst-editor/", B1t = (t) => sessionStorage.getItem(Hne + t), iU = (t, e) => sessionStorage.setItem(Hne + t, e), Xne = () => { +const Xne = "myst-editor/", F1t = (t) => sessionStorage.getItem(Xne + t), iU = (t, e) => sessionStorage.setItem(Xne + t, e), Zne = () => { for (var t in sessionStorage) t.startsWith("myst-editor") && sessionStorage.removeItem(t); }; -class Zne { +class jne { constructor(e) { this.preview = e; } @@ -33195,7 +33195,7 @@ class Zne { } createTransformPlaceholder(e, r, n) { const i = "placeholder-" + Math.random().toString().slice(2); - return r.then(Gne(this.preview, i)).then((s) => { + return r.then(Hne(this.preview, i)).then((s) => { iU(e, s), this.fillPlaceholder(i, s); }).catch((s) => { console.error("Error in custom transform:", n, "Caused by input:", e, "Error:", s), this.cancelTransform(i), iU(e, e); @@ -33208,7 +33208,7 @@ class Zne { return { target: r, transform: (n) => { - const i = B1t(n); + const i = F1t(n); if (i) return i; let s = e(n); @@ -33217,16 +33217,16 @@ class Zne { }; } } -const F1t = (t, { +const z1t = (t, { transform: e, target: r -}) => t.replaceAll(r, e), z1t = (t, e) => (r) => { - const n = new Zne(e), i = r.renderer.rules.text; +}) => t.replaceAll(r, e), V1t = (t, e) => (r) => { + const n = new jne(e), i = r.renderer.rules.text; r.renderer.rules.text = function(...s) { const a = i(...s); - return t.map((o) => n.overloadTransform(o, e)).reduce(F1t, a); + return t.map((o) => n.overloadTransform(o, e)).reduce(z1t, a); }; -}, jne = "custom_role", V1t = ({ +}, Kne = "custom_role", U1t = ({ target: t, transform: e }) => ({ @@ -33235,20 +33235,20 @@ const F1t = (t, { run({ content: n }) { - const i = new this.state.Token(jne, "span", 1); + const i = new this.state.Token(Kne, "span", 1); return i.content = e(n), [i]; } } -}), U1t = (t, e) => (r) => { - const n = new Zne(e), i = t.map((s) => n.overloadTransform(s)).map(V1t).reduce((s, { +}), q1t = (t, e) => (r) => { + const n = new jne(e), i = t.map((s) => n.overloadTransform(s)).map(U1t).reduce((s, { name: a, role: o }) => (s[a] = o, s), {}); - r.renderer.rules[jne] = (s, a, o, l, u) => `${s[a].content}`, r.use(Tre, { + r.renderer.rules[Kne] = (s, a, o, l, u) => `${s[a].content}`, r.use(Cre, { roles: i }); }; -var Kne = { exports: {} }; +var Jne = { exports: {} }; /** * @preserve * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) @@ -33301,22 +33301,22 @@ var Kne = { exports: {} }; return this.h1 = typeof n == "number" ? n : 0, this.rem = this.k1 = this.len = 0, this; }, e = new r(), t.exports = r; })(); -})(Kne); -const f8 = Kne.exports; -function q1t(t) { +})(Jne); +const d8 = Jne.exports; +function Q1t(t) { const e = t.renderer.rules.text; t.renderer.rules.text = (r, n, i, s, a) => r[n].content === "\\" ? "
" : e(r, n, i, s, a); } -const Jne = "data-line-id", eie = () => Math.random().toString().replace(".", ""); -function Q1t(t) { - t.use(W1t), t.use(G1t), t.use(H1t), t.use(X1t); +const eie = "data-line-id", tie = () => Math.random().toString().replace(".", ""); +function Y1t(t) { + t.use(G1t), t.use(H1t), t.use(X1t), t.use(Z1t); const e = ["softbreak"], r = [...Object.keys(t.renderer.rules).filter((n) => !e.includes(n)), "paragraph_open", "heading_open", "admonition_open", "link_open", "list_item_open"]; for (const n of r) { const i = t.renderer.rules[n]; - t.renderer.rules[n] = Y1t(i); + t.renderer.rules[n] = W1t(i); } } -function Y1t(t) { +function W1t(t) { return (e, r, n, i, s) => { const a = t != null ? t : s.renderToken.bind(s); if (e[r].type === "list_item_open" && e[r + 1].type !== "list_item_close") @@ -33332,13 +33332,13 @@ function Y1t(t) { !h && !f.type.includes("_open") && (f.map = [e[r].map[0] + u, e[r].map[0] + u + 1], h = !0); } } else if (e[r].map) { - const l = e[r].map[0] + i.startLine - (i.chunkId !== 0), u = eie(); - i.lineMap.current.has(l) || (i.lineMap.current.set(l, u), e[r].attrSet(Jne, u)); + const l = e[r].map[0] + i.startLine - (i.chunkId !== 0), u = tie(); + i.lineMap.current.has(l) || (i.lineMap.current.set(l, u), e[r].attrSet(eie, u)); } return a(e, r, n, i, s); }; } -function W1t(t) { +function G1t(t) { function e(r) { return (n, i, s, a, o) => { const l = n[i]; @@ -33349,7 +33349,7 @@ function W1t(t) { } t.renderer.rules.directive = e(t.renderer.rules.directive), t.renderer.rules.directive_error = e(t.renderer.rules.directive_error); } -function G1t(t) { +function H1t(t) { const e = t.renderer.rules.role; t.renderer.rules.role = (r, n, i, s, a) => { let o = e(r, n, i, s, a); @@ -33357,14 +33357,14 @@ function G1t(t) { return o = o.slice(0, l) + a.renderAttrs(r[n]) + o.slice(l), o; }; } -function H1t(t) { +function X1t(t) { const e = t.renderer.rules.text; t.renderer.rules.text = (r, n, i, s, a) => { const o = r[n], l = e(r, n, i, s, a); return `${l}`; }; } -function X1t(t) { +function Z1t(t) { const e = t.renderer.rules.fence; t.renderer.rules.fence = (r, n, i, s, a) => { const o = e(r, n, i, s, a), l = r[n]; @@ -33373,26 +33373,26 @@ function X1t(t) { const u = Ir.escapeHtml(l.content), h = l.map[0] + s.startLine - (s.chunkId !== 0); let f = u.split(` `).filter((d, p, g) => p !== g.length - 1).map((d, p) => { - const g = eie(); - return s.lineMap.current.set(h + p + 1, g), `${d}`; + const g = tie(); + return s.lineMap.current.set(h + p + 1, g), `${d}`; }).join(` `); return `
${f}
`; }; } -function tie(t, e, r) { +function rie(t, e, r) { let n = null, i = null, s = t; for (; s >= 1 && (n = e.current.get(s), !(n && (i = r.querySelector(`[data-line-id="${n}"]`), i))); s--) ; return [i, s]; } -function rie(t, e) { +function nie(t, e) { for (const [r, n] of t.entries()) if (n === e) return r; } -var nie = { exports: {} }; +var iie = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -33419,7 +33419,7 @@ var nie = { exports: {} }; return k === void 0; } }, S = "en", C = {}; C[S] = b; - var T = "$isDayjsObject", L = function(k) { + var T = "$isDayjsObject", A = function(k) { return k instanceof R || !(!k || !k[T]); }, E = function k(N, M, I) { var D; @@ -33436,14 +33436,14 @@ var nie = { exports: {} }; C[B] = N, D = B; } return !I && D && (S = D), D || !I && S; - }, A = function(k, N) { - if (L(k)) + }, L = function(k, N) { + if (A(k)) return k.clone(); var M = typeof N == "object" ? N : {}; return M.date = k, M.args = arguments, new R(M); }, _ = O; - _.l = E, _.i = L, _.w = function(k, N) { - return A(k, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset }); + _.l = E, _.i = A, _.w = function(k, N) { + return L(k, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset }); }; var R = function() { function k(M) { @@ -33476,12 +33476,12 @@ var nie = { exports: {} }; }, N.isValid = function() { return this.$d.toString() !== m; }, N.isSame = function(M, I) { - var D = A(M); + var D = L(M); return this.startOf(I) <= D && D <= this.endOf(I); }, N.isAfter = function(M, I) { - return A(M) < this.startOf(I); + return L(M) < this.startOf(I); }, N.isBefore = function(M, I) { - return this.endOf(I) < A(M); + return this.endOf(I) < L(M); }, N.$g = function(M, I, D) { return _.u(M) ? this[I] : this.set(D, M); }, N.unix = function() { @@ -33533,7 +33533,7 @@ var nie = { exports: {} }; var D, P = this; M = Number(M); var F = _.p(I), B = function(W) { - var ee = A(P); + var ee = L(P); return _.w(ee.date(ee.date() + Math.round(W * M)), P); }; if (F === f) @@ -33618,7 +33618,7 @@ var nie = { exports: {} }; }, N.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, N.diff = function(M, I, D) { - var P, F = this, B = _.p(I), V = A(M), Q = (V.utcOffset() - this.utcOffset()) * n, W = this - V, ee = function() { + var P, F = this, B = _.p(I), V = L(M), Q = (V.utcOffset() - this.utcOffset()) * n, W = this - V, ee = function() { return _.m(F, V); }; switch (B) { @@ -33671,18 +33671,18 @@ var nie = { exports: {} }; return this.$d.toUTCString(); }, k; }(), $ = R.prototype; - return A.prototype = $, [["$ms", s], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", f], ["$y", p], ["$D", g]].forEach(function(k) { + return L.prototype = $, [["$ms", s], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", f], ["$y", p], ["$D", g]].forEach(function(k) { $[k[1]] = function(N) { return this.$g(N, k[0], k[1]); }; - }), A.extend = function(k, N) { - return k.$i || (k(N, R, A), k.$i = !0), A; - }, A.locale = E, A.isDayjs = L, A.unix = function(k) { - return A(1e3 * k); - }, A.en = C[S], A.Ls = C, A.p = {}, A; + }), L.extend = function(k, N) { + return k.$i || (k(N, R, L), k.$i = !0), L; + }, L.locale = E, L.isDayjs = A, L.unix = function(k) { + return L(1e3 * k); + }, L.en = C[S], L.Ls = C, L.p = {}, L; }); -})(nie); -const Ns = nie.exports, k4 = { +})(iie); +const Ns = iie.exports, k4 = { min: { r: 0, g: 0, @@ -33749,19 +33749,19 @@ const Ns = nie.exports, k4 = { return -1; } } -}, Z1t = k4, j1t = { +}, j1t = k4, K1t = { clamp: (t, e, r) => e > r ? Math.min(e, Math.max(r, t)) : Math.min(r, Math.max(e, t)), round: (t) => Math.round(t * 1e10) / 1e10 -}, K1t = j1t, J1t = { +}, J1t = K1t, emt = { dec2hex: (t) => { const e = Math.round(t).toString(16); return e.length > 1 ? e : `0${e}`; } -}, emt = J1t, tmt = { - channel: Z1t, - lang: K1t, - unit: emt -}, ir = tmt, Oh = {}; +}, tmt = emt, rmt = { + channel: j1t, + lang: J1t, + unit: tmt +}, ir = rmt, Oh = {}; for (let t = 0; t <= 255; t++) Oh[t] = ir.unit.dec2hex(t); const Ss = { @@ -33769,7 +33769,7 @@ const Ss = { RGB: 1, HSL: 2 }; -class rmt { +class nmt { constructor() { this.type = Ss.ALL; } @@ -33788,10 +33788,10 @@ class rmt { return this.type === e; } } -const nmt = rmt; -class imt { +const imt = nmt; +class smt { constructor(e, r) { - this.color = r, this.changed = !1, this.data = e, this.type = new nmt(); + this.color = r, this.changed = !1, this.data = e, this.type = new imt(); } set(e, r) { return this.color = r, this.changed = !1, this.data = e, this.type.type = Ss.ALL, this; @@ -33853,16 +33853,16 @@ class imt { this.changed = !0, this.data.a = e; } } -const smt = imt, amt = new smt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), mT = amt, iie = { +const amt = smt, omt = new amt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), vT = omt, sie = { re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, parse: (t) => { if (t.charCodeAt(0) !== 35) return; - const e = t.match(iie.re); + const e = t.match(sie.re); if (!e) return; const r = e[1], n = parseInt(r, 16), i = r.length, s = i % 4 === 0, a = i > 4, o = a ? 1 : 17, l = a ? 8 : 4, u = s ? 0 : -1, h = a ? 255 : 15; - return mT.set({ + return vT.set({ r: (n >> l * (u + 3) & h) * o, g: (n >> l * (u + 2) & h) * o, b: (n >> l * (u + 1) & h) * o, @@ -33873,7 +33873,7 @@ const smt = imt, amt = new smt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), mT = const { r: e, g: r, b: n, a: i } = t; return i < 1 ? `#${Oh[Math.round(e)]}${Oh[Math.round(r)]}${Oh[Math.round(n)]}${Oh[Math.round(i * 255)]}` : `#${Oh[Math.round(e)]}${Oh[Math.round(r)]}${Oh[Math.round(n)]}`; } -}, ey = iie, S4 = { +}, ey = sie, S4 = { re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i, hueRe: /^(.+?)(deg|grad|rad|turn)$/i, _hue2deg: (t) => { @@ -33899,7 +33899,7 @@ const smt = imt, amt = new smt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), mT = if (!r) return; const [, n, i, s, a, o] = r; - return mT.set({ + return vT.set({ h: S4._hue2deg(n), s: ir.channel.clamp.s(parseFloat(i)), l: ir.channel.clamp.l(parseFloat(s)), @@ -34072,17 +34072,17 @@ const smt = imt, amt = new smt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), mT = if (T4.colors[r] === e) return r; } -}, sU = T4, sie = { +}, sU = T4, aie = { re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i, parse: (t) => { const e = t.charCodeAt(0); if (e !== 114 && e !== 82) return; - const r = t.match(sie.re); + const r = t.match(aie.re); if (!r) return; const [, n, i, s, a, o, l, u, h] = r; - return mT.set({ + return vT.set({ r: ir.channel.clamp.r(i ? parseFloat(n) * 2.55 : parseFloat(n)), g: ir.channel.clamp.g(a ? parseFloat(s) * 2.55 : parseFloat(s)), b: ir.channel.clamp.b(l ? parseFloat(o) * 2.55 : parseFloat(o)), @@ -34093,7 +34093,7 @@ const smt = imt, amt = new smt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), mT = const { r: e, g: r, b: n, a: i } = t; return i < 1 ? `rgba(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)}, ${ir.lang.round(i)})` : `rgb(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)})`; } -}, Qw = sie, omt = { +}, Qw = aie, lmt = { format: { keyword: sU, hex: ey, @@ -34111,54 +34111,54 @@ const smt = imt, amt = new smt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), mT = throw new Error(`Unsupported color format: "${t}"`); }, stringify: (t) => !t.changed && t.color ? t.color : t.type.is(Ss.HSL) || t.data.r === void 0 ? qw.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? Qw.stringify(t) : ey.stringify(t) -}, $l = omt, lmt = (t, e) => { +}, $l = lmt, cmt = (t, e) => { const r = $l.parse(t); for (const n in e) r[n] = ir.channel.clamp[n](e[n]); return $l.stringify(r); -}, aie = lmt, cmt = (t, e, r = 0, n = 1) => { +}, oie = cmt, umt = (t, e, r = 0, n = 1) => { if (typeof t != "number") - return aie(t, { a: e }); - const i = mT.set({ + return oie(t, { a: e }); + const i = vT.set({ r: ir.channel.clamp.r(t), g: ir.channel.clamp.g(e), b: ir.channel.clamp.b(r), a: ir.channel.clamp.a(n) }); return $l.stringify(i); -}, Qd = cmt, umt = (t, e) => ir.lang.round($l.parse(t)[e]), oie = umt, hmt = (t) => { +}, Qd = umt, hmt = (t, e) => ir.lang.round($l.parse(t)[e]), lie = hmt, fmt = (t) => { const { r: e, g: r, b: n } = $l.parse(t), i = 0.2126 * ir.channel.toLinear(e) + 0.7152 * ir.channel.toLinear(r) + 0.0722 * ir.channel.toLinear(n); return ir.lang.round(i); -}, fmt = hmt, dmt = (t) => fmt(t) >= 0.5, pmt = dmt, gmt = (t) => !pmt(t), B0 = gmt, mmt = (t, e, r) => { +}, dmt = fmt, pmt = (t) => dmt(t) >= 0.5, gmt = pmt, mmt = (t) => !gmt(t), B0 = mmt, vmt = (t, e, r) => { const n = $l.parse(t), i = n[e], s = ir.channel.clamp[e](i + r); return i !== s && (n[e] = s), $l.stringify(n); -}, lie = mmt, vmt = (t, e) => lie(t, "l", e), Ft = vmt, ymt = (t, e) => lie(t, "l", -e), Yt = ymt, bmt = (t, e) => { +}, cie = vmt, ymt = (t, e) => cie(t, "l", e), Ft = ymt, bmt = (t, e) => cie(t, "l", -e), Yt = bmt, xmt = (t, e) => { const r = $l.parse(t), n = {}; for (const i in e) !e[i] || (n[i] = r[i] + e[i]); - return aie(t, n); -}, Pe = bmt, xmt = (t, e, r = 50) => { + return oie(t, n); +}, Pe = xmt, wmt = (t, e, r = 50) => { const { r: n, g: i, b: s, a } = $l.parse(t), { r: o, g: l, b: u, a: h } = $l.parse(e), f = r / 100, d = f * 2 - 1, p = a - h, m = ((d * p === -1 ? d : (d + p) / (1 + d * p)) + 1) / 2, v = 1 - m, y = n * m + o * v, b = i * m + l * v, w = s * m + u * v, O = a * f + h * (1 - f); return Qd(y, b, w, O); -}, wmt = xmt, Omt = (t, e = 100) => { +}, Omt = wmt, kmt = (t, e = 100) => { const r = $l.parse(t); - return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, wmt(r, t, e); -}, Ot = Omt; + return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Omt(r, t, e); +}, Ot = kmt; /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */ const { - entries: cie, + entries: uie, setPrototypeOf: aU, - isFrozen: kmt, - getPrototypeOf: Smt, - getOwnPropertyDescriptor: Tmt + isFrozen: Smt, + getPrototypeOf: Tmt, + getOwnPropertyDescriptor: Cmt } = Object; let { freeze: la, seal: Wo, - create: uie + create: hie } = Object, { - apply: d8, - construct: p8 + apply: p8, + construct: g8 } = typeof Reflect < "u" && Reflect; la || (la = function(e) { return e; @@ -34166,25 +34166,25 @@ la || (la = function(e) { Wo || (Wo = function(e) { return e; }); -d8 || (d8 = function(e, r, n) { +p8 || (p8 = function(e, r, n) { return e.apply(r, n); }); -p8 || (p8 = function(e, r) { +g8 || (g8 = function(e, r) { return new e(...r); }); -const Yw = co(Array.prototype.forEach), oU = co(Array.prototype.pop), $m = co(Array.prototype.push), C4 = co(String.prototype.toLowerCase), E6 = co(String.prototype.toString), lU = co(String.prototype.match), Bm = co(String.prototype.replace), Cmt = co(String.prototype.indexOf), Emt = co(String.prototype.trim), cl = co(Object.prototype.hasOwnProperty), Zs = co(RegExp.prototype.test), Fm = _mt(TypeError); +const Yw = co(Array.prototype.forEach), oU = co(Array.prototype.pop), $m = co(Array.prototype.push), C4 = co(String.prototype.toLowerCase), _6 = co(String.prototype.toString), lU = co(String.prototype.match), Bm = co(String.prototype.replace), Emt = co(String.prototype.indexOf), _mt = co(String.prototype.trim), cl = co(Object.prototype.hasOwnProperty), Zs = co(RegExp.prototype.test), Fm = Amt(TypeError); function co(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i]; - return d8(t, e, n); + return p8(t, e, n); }; } -function _mt(t) { +function Amt(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; - return p8(t, r); + return g8(t, r); }; } function kr(t, e) { @@ -34195,56 +34195,56 @@ function kr(t, e) { let i = e[n]; if (typeof i == "string") { const s = r(i); - s !== i && (kmt(e) || (e[n] = s), i = s); + s !== i && (Smt(e) || (e[n] = s), i = s); } t[i] = !0; } return t; } -function Amt(t) { +function Lmt(t) { for (let e = 0; e < t.length; e++) cl(t, e) || (t[e] = null); return t; } function sd(t) { - const e = uie(null); - for (const [r, n] of cie(t)) - cl(t, r) && (Array.isArray(n) ? e[r] = Amt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = sd(n) : e[r] = n); + const e = hie(null); + for (const [r, n] of uie(t)) + cl(t, r) && (Array.isArray(n) ? e[r] = Lmt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = sd(n) : e[r] = n); return e; } function zm(t, e) { for (; t !== null; ) { - const n = Tmt(t, e); + const n = Cmt(t, e); if (n) { if (n.get) return co(n.get); if (typeof n.value == "function") return co(n.value); } - t = Smt(t); + t = Tmt(t); } function r() { return null; } return r; } -const cU = la(["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"]), _6 = la(["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"]), A6 = la(["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"]), Lmt = la(["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"]), L6 = la(["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"]), Rmt = la(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), uU = la(["#text"]), hU = la(["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", "popover", "popovertarget", "popovertargetaction", "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", "wrap", "xmlns", "slot"]), R6 = la(["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"]), fU = la(["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"]), Ww = la(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Mmt = Wo(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dmt = Wo(/<%[\w\W]*|[\w\W]*%>/gm), Nmt = Wo(/\${[\w\W]*}/gm), Imt = Wo(/^data-[\-\w.\u00B7-\uFFFF]/), Pmt = Wo(/^aria-[\-\w]+$/), hie = Wo( +const cU = la(["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"]), A6 = la(["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"]), L6 = la(["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"]), Rmt = la(["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"]), R6 = la(["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"]), Mmt = la(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), uU = la(["#text"]), hU = la(["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", "popover", "popovertarget", "popovertargetaction", "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", "wrap", "xmlns", "slot"]), M6 = la(["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"]), fU = la(["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"]), Ww = la(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Dmt = Wo(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Nmt = Wo(/<%[\w\W]*|[\w\W]*%>/gm), Imt = Wo(/\${[\w\W]*}/gm), Pmt = Wo(/^data-[\-\w.\u00B7-\uFFFF]/), $mt = Wo(/^aria-[\-\w]+$/), fie = Wo( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), $mt = Wo(/^(?:\w+script|data):/i), Bmt = Wo( +), Bmt = Wo(/^(?:\w+script|data):/i), Fmt = Wo( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), fie = Wo(/^html$/i), Fmt = Wo(/^[a-z][.\w]*(-[.\w]+)+$/i); +), die = Wo(/^html$/i), zmt = Wo(/^[a-z][.\w]*(-[.\w]+)+$/i); var dU = /* @__PURE__ */ Object.freeze({ __proto__: null, - MUSTACHE_EXPR: Mmt, - ERB_EXPR: Dmt, - TMPLIT_EXPR: Nmt, - DATA_ATTR: Imt, - ARIA_ATTR: Pmt, - IS_ALLOWED_URI: hie, - IS_SCRIPT_OR_DATA: $mt, - ATTR_WHITESPACE: Bmt, - DOCTYPE_NAME: fie, - CUSTOM_ELEMENT: Fmt + MUSTACHE_EXPR: Dmt, + ERB_EXPR: Nmt, + TMPLIT_EXPR: Imt, + DATA_ATTR: Pmt, + ARIA_ATTR: $mt, + IS_ALLOWED_URI: fie, + IS_SCRIPT_OR_DATA: Bmt, + ATTR_WHITESPACE: Fmt, + DOCTYPE_NAME: die, + CUSTOM_ELEMENT: zmt }); const Vm = { element: 1, @@ -34259,9 +34259,9 @@ const Vm = { documentType: 10, documentFragment: 11, notation: 12 -}, zmt = function() { +}, Vmt = function() { return typeof window > "u" ? null : window; -}, Vmt = function(e, r) { +}, Umt = function(e, r) { if (typeof e != "object" || typeof e.createPolicy != "function") return null; let n = null; @@ -34281,9 +34281,9 @@ const Vm = { return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function die() { - let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zmt(); - const e = (qe) => die(qe); +function pie() { + let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Vmt(); + const e = (qe) => pie(qe); if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== Vm.document) return e.isSupported = !1, e; let { @@ -34308,13 +34308,13 @@ function die() { const { implementation: C, createNodeIterator: T, - createDocumentFragment: L, + createDocumentFragment: A, getElementsByTagName: E } = r, { - importNode: A + importNode: L } = n; let _ = {}; - e.isSupported = typeof cie == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0; + e.isSupported = typeof uie == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0; const { MUSTACHE_EXPR: R, ERB_EXPR: $, @@ -34328,10 +34328,10 @@ function die() { let { IS_ALLOWED_URI: F } = dU, B = null; - const V = kr({}, [...cU, ..._6, ...A6, ...L6, ...uU]); + const V = kr({}, [...cU, ...A6, ...L6, ...R6, ...uU]); let Q = null; - const W = kr({}, [...hU, ...R6, ...fU, ...Ww]); - let ee = Object.seal(uie(null, { + const W = kr({}, [...hU, ...M6, ...fU, ...Ww]); + let ee = Object.seal(hie(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -34359,7 +34359,7 @@ function die() { let fe = null; const de = kr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ge = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml"; let Ce = ke, Oe = !1, Me = null; - const Te = kr({}, [ge, xe, ke], E6); + const Te = kr({}, [ge, xe, ke], _6); let Xe = null; const Ne = ["application/xhtml+xml", "text/html"], Ke = "text/html"; let je = null, ut = null; @@ -34368,7 +34368,7 @@ function die() { }, We = function() { let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; if (!(ut && ut === te)) { - if ((!te || typeof te != "object") && (te = {}), te = sd(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Ke : te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? E6 : C4, B = cl(te, "ALLOWED_TAGS") ? kr({}, te.ALLOWED_TAGS, je) : V, Q = cl(te, "ALLOWED_ATTR") ? kr({}, te.ALLOWED_ATTR, je) : W, Me = cl(te, "ALLOWED_NAMESPACES") ? kr({}, te.ALLOWED_NAMESPACES, E6) : Te, fe = cl(te, "ADD_URI_SAFE_ATTR") ? kr( + if ((!te || typeof te != "object") && (te = {}), te = sd(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Ke : te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? _6 : C4, B = cl(te, "ALLOWED_TAGS") ? kr({}, te.ALLOWED_TAGS, je) : V, Q = cl(te, "ALLOWED_ATTR") ? kr({}, te.ALLOWED_ATTR, je) : W, Me = cl(te, "ALLOWED_NAMESPACES") ? kr({}, te.ALLOWED_NAMESPACES, _6) : Te, fe = cl(te, "ADD_URI_SAFE_ATTR") ? kr( sd(de), te.ADD_URI_SAFE_ATTR, je @@ -34376,17 +34376,17 @@ function die() { sd(ue), te.ADD_DATA_URI_TAGS, je - ) : ue, oe = cl(te, "FORBID_CONTENTS") ? kr({}, te.FORBID_CONTENTS, je) : ve, Y = cl(te, "FORBID_TAGS") ? kr({}, te.FORBID_TAGS, je) : {}, ne = cl(te, "FORBID_ATTR") ? kr({}, te.FORBID_ATTR, je) : {}, H = cl(te, "USE_PROFILES") ? te.USE_PROFILES : !1, ie = te.ALLOW_ARIA_ATTR !== !1, U = te.ALLOW_DATA_ATTR !== !1, Z = te.ALLOW_UNKNOWN_PROTOCOLS || !1, G = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = te.SAFE_FOR_TEMPLATES || !1, ae = te.SAFE_FOR_XML !== !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, F = te.ALLOWED_URI_REGEXP || hie, Ce = te.NAMESPACE || ke, ee = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (U = !1), Ee && (ce = !0), H && (B = kr({}, uU), Q = [], H.html === !0 && (kr(B, cU), kr(Q, hU)), H.svg === !0 && (kr(B, _6), kr(Q, R6), kr(Q, Ww)), H.svgFilters === !0 && (kr(B, A6), kr(Q, R6), kr(Q, Ww)), H.mathMl === !0 && (kr(B, L6), kr(Q, fU), kr(Q, Ww))), te.ADD_TAGS && (B === V && (B = sd(B)), kr(B, te.ADD_TAGS, je)), te.ADD_ATTR && (Q === W && (Q = sd(Q)), kr(Q, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && kr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = sd(oe)), kr(oe, te.FORBID_CONTENTS, je)), De && (B["#text"] = !0), se && kr(B, ["html", "head", "body"]), B.table && (kr(B, ["tbody"]), delete Y.tbody), te.TRUSTED_TYPES_POLICY) { + ) : ue, oe = cl(te, "FORBID_CONTENTS") ? kr({}, te.FORBID_CONTENTS, je) : ve, Y = cl(te, "FORBID_TAGS") ? kr({}, te.FORBID_TAGS, je) : {}, ne = cl(te, "FORBID_ATTR") ? kr({}, te.FORBID_ATTR, je) : {}, H = cl(te, "USE_PROFILES") ? te.USE_PROFILES : !1, ie = te.ALLOW_ARIA_ATTR !== !1, U = te.ALLOW_DATA_ATTR !== !1, Z = te.ALLOW_UNKNOWN_PROTOCOLS || !1, G = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = te.SAFE_FOR_TEMPLATES || !1, ae = te.SAFE_FOR_XML !== !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, F = te.ALLOWED_URI_REGEXP || fie, Ce = te.NAMESPACE || ke, ee = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (U = !1), Ee && (ce = !0), H && (B = kr({}, uU), Q = [], H.html === !0 && (kr(B, cU), kr(Q, hU)), H.svg === !0 && (kr(B, A6), kr(Q, M6), kr(Q, Ww)), H.svgFilters === !0 && (kr(B, L6), kr(Q, M6), kr(Q, Ww)), H.mathMl === !0 && (kr(B, R6), kr(Q, fU), kr(Q, Ww))), te.ADD_TAGS && (B === V && (B = sd(B)), kr(B, te.ADD_TAGS, je)), te.ADD_ATTR && (Q === W && (Q = sd(Q)), kr(Q, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && kr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = sd(oe)), kr(oe, te.FORBID_CONTENTS, je)), De && (B["#text"] = !0), se && kr(B, ["html", "head", "body"]), B.table && (kr(B, ["tbody"]), delete Y.tbody), te.TRUSTED_TYPES_POLICY) { if (typeof te.TRUSTED_TYPES_POLICY.createHTML != "function") throw Fm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); if (typeof te.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Fm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); O = te.TRUSTED_TYPES_POLICY, S = O.createHTML(""); } else - O === void 0 && (O = Vmt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); + O === void 0 && (O = Umt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); la && la(te), ut = te; } - }, Qe = kr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = kr({}, ["foreignobject", "annotation-xml"]), tt = kr({}, ["title", "style", "font", "a", "script"]), He = kr({}, [..._6, ...A6, ...Lmt]), kt = kr({}, [...L6, ...Rmt]), st = function(te) { + }, Qe = kr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = kr({}, ["foreignobject", "annotation-xml"]), tt = kr({}, ["title", "style", "font", "a", "script"]), He = kr({}, [...A6, ...L6, ...Rmt]), kt = kr({}, [...R6, ...Mmt]), st = function(te) { let Le = w(te); (!Le || !Le.tagName) && (Le = { namespaceURI: Ce, @@ -34505,7 +34505,7 @@ function die() { return !1; } else if (!fe[Le]) { if (!Zs(F, Bm(ze, D, ""))) { - if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && Cmt(ze, "data:") === 0 && re[te])) { + if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && Emt(ze, "data:") === 0 && re[te])) { if (!(Z && !Zs(I, Bm(ze, D, "")))) { if (ze) return !1; @@ -34538,7 +34538,7 @@ function die() { namespaceURI: rt, value: St } = cr, Tt = je(Jt); - let Je = Jt === "value" ? St : Emt(St); + let Je = Jt === "value" ? St : _mt(St); if (ze.attrName = Tt, ze.attrValue = Je, ze.keepAttr = !0, ze.forceKeepAttr = void 0, tr("uponSanitizeAttribute", te, ze), Je = ze.attrValue, ae && Zs(/((--!?|])>)|<\/(style|title)/i, Je)) { dt(Jt, te); continue; @@ -34611,14 +34611,14 @@ function die() { return qe; if (ce) { if (Ee) - for (cr = L.call(Le.ownerDocument); Le.firstChild; ) + for (cr = A.call(Le.ownerDocument); Le.firstChild; ) cr.appendChild(Le.firstChild); else cr = Le; - return (Q.shadowroot || Q.shadowrootmode) && (cr = A.call(n, cr, !0)), cr; + return (Q.shadowroot || Q.shadowrootmode) && (cr = L.call(n, cr, !0)), cr; } let rt = se ? Le.outerHTML : Le.innerHTML; - return se && B["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Zs(fie, Le.ownerDocument.doctype.name) && (rt = " + return se && B["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Zs(die, Le.ownerDocument.doctype.name) && (rt = " ` + rt), j && Yw([R, $, k], (St) => { rt = Bm(rt, St, " "); }), O && Ae ? O.createHTML(rt) : rt; @@ -34642,9 +34642,9 @@ function die() { _ = {}; }, e; } -var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { value: e, configurable: !0 }), gie = (t, e) => { +var Ug = pie(), gie = Object.defineProperty, x = (t, e) => gie(t, "name", { value: e, configurable: !0 }), mie = (t, e) => { for (var r in e) - pie(t, r, { get: e[r], enumerable: !0 }); + gie(t, r, { get: e[r], enumerable: !0 }); }, au = { trace: 0, debug: 1, @@ -34665,7 +34665,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu }, "error"), fatal: /* @__PURE__ */ x((...t) => { }, "fatal") -}, dD = /* @__PURE__ */ x(function(t = "fatal") { +}, pD = /* @__PURE__ */ x(function(t = "fatal") { let e = au.fatal; typeof t == "string" ? t.toLowerCase() in au && (e = au[t]) : typeof t == "number" && (e = t), X.trace = () => { }, X.debug = () => { @@ -34674,34 +34674,34 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu }, X.error = () => { }, X.fatal = () => { }, e <= au.fatal && (X.fatal = console.error ? console.error.bind(console, xo("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", xo("FATAL"))), e <= au.error && (X.error = console.error ? console.error.bind(console, xo("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", xo("ERROR"))), e <= au.warn && (X.warn = console.warn ? console.warn.bind(console, xo("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", xo("WARN"))), e <= au.info && (X.info = console.info ? console.info.bind(console, xo("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", xo("INFO"))), e <= au.debug && (X.debug = console.debug ? console.debug.bind(console, xo("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", xo("DEBUG"))), e <= au.trace && (X.trace = console.debug ? console.debug.bind(console, xo("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", xo("TRACE"))); -}, "setLogLevel"), xo = /* @__PURE__ */ x((t) => `%c${Ns().format("ss.SSS")} : ${t} : `, "format"), mie = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ty = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Umt = /\s*%%.*\n/gm, rb, vie = (rb = class extends Error { +}, "setLogLevel"), xo = /* @__PURE__ */ x((t) => `%c${Ns().format("ss.SSS")} : ${t} : `, "format"), vie = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ty = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, qmt = /\s*%%.*\n/gm, rb, yie = (rb = class extends Error { constructor(e) { super(e), this.name = "UnknownDiagramError"; } }, (() => { x(rb, "UnknownDiagramError"); -})(), rb), qg = {}, pD = /* @__PURE__ */ x(function(t, e) { - t = t.replace(mie, "").replace(ty, "").replace(Umt, ` +})(), rb), qg = {}, gD = /* @__PURE__ */ x(function(t, e) { + t = t.replace(vie, "").replace(ty, "").replace(qmt, ` `); for (const [r, { detector: n }] of Object.entries(qg)) if (n(t, e)) return r; - throw new vie( + throw new yie( `No diagram type detected matching given configuration for text: ${t}` ); -}, "detectType"), yie = /* @__PURE__ */ x((...t) => { +}, "detectType"), bie = /* @__PURE__ */ x((...t) => { for (const { id: e, detector: r, loader: n } of t) - bie(e, r, n); -}, "registerLazyLoadedDiagrams"), bie = /* @__PURE__ */ x((t, e, r) => { + xie(e, r, n); +}, "registerLazyLoadedDiagrams"), xie = /* @__PURE__ */ x((t, e, r) => { qg[t] && X.warn(`Detector with key ${t} already exists. Overwriting.`), qg[t] = { detector: e, loader: r }, X.debug(`Detector with key ${t} added${r ? " with loader" : ""}`); -}, "addDetector"), qmt = /* @__PURE__ */ x((t) => qg[t].loader, "getDiagramLoader"), g8 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { +}, "addDetector"), Qmt = /* @__PURE__ */ x((t) => qg[t].loader, "getDiagramLoader"), m8 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { const i = { depth: r, clobber: n }; - return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((s) => g8(t, s, i)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((s) => { + return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((s) => m8(t, s, i)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((s) => { t.includes(s) || t.push(s); }), t) : t === void 0 || r <= 0 ? t != null && typeof t == "object" && typeof e == "object" ? Object.assign(t, e) : e : (e !== void 0 && typeof t == "object" && typeof e == "object" && Object.keys(e).forEach((s) => { - typeof e[s] == "object" && (t[s] === void 0 || typeof t[s] == "object") ? (t[s] === void 0 && (t[s] = Array.isArray(e[s]) ? [] : {}), t[s] = g8(t[s], e[s], { depth: r - 1, clobber: n })) : (n || typeof t[s] != "object" && typeof e[s] != "object") && (t[s] = e[s]); + typeof e[s] == "object" && (t[s] === void 0 || typeof t[s] == "object") ? (t[s] === void 0 && (t[s] = Array.isArray(e[s]) ? [] : {}), t[s] = m8(t[s], e[s], { depth: r - 1, clobber: n })) : (n || typeof t[s] != "object" && typeof e[s] != "object") && (t[s] = e[s]); }), t); -}, "assignWithDepth"), Ci = g8, vT = "#ffffff", yT = "#f2f2f2", ta = /* @__PURE__ */ x((t, e) => e ? Pe(t, { s: -40, l: 10 }) : Pe(t, { s: -40, l: -10 }), "mkBorder"), nb, Qmt = (nb = class { +}, "assignWithDepth"), Ci = m8, yT = "#ffffff", bT = "#f2f2f2", ta = /* @__PURE__ */ x((t, e) => e ? Pe(t, { s: -40, l: 10 }) : Pe(t, { s: -40, l: -10 }), "mkBorder"), nb, Ymt = (nb = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px"; } @@ -34735,7 +34735,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu yAxisTickColor: ((h = this.xyChart) == null ? void 0 : h.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((d = this.xyChart) == null ? void 0 : d.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? Yt(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Yt(this.git0, 25), this.git1 = Yt(this.git1, 25), this.git2 = Yt(this.git2, 25), this.git3 = Yt(this.git3, 25), this.git4 = Yt(this.git4, 25), this.git5 = Yt(this.git5, 25), this.git6 = Yt(this.git6, 25), this.git7 = Yt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || vT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || yT; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? Yt(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Yt(this.git0, 25), this.git1 = Yt(this.git1, 25), this.git2 = Yt(this.git2, 25), this.git3 = Yt(this.git3, 25), this.git4 = Yt(this.git4, 25), this.git5 = Yt(this.git5, 25), this.git6 = Yt(this.git6, 25), this.git7 = Yt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || yT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || bT; } calculate(e) { if (typeof e != "object") { @@ -34751,10 +34751,10 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } }, (() => { x(nb, "Theme"); -})(), nb), Ymt = /* @__PURE__ */ x((t) => { - const e = new Qmt(); +})(), nb), Wmt = /* @__PURE__ */ x((t) => { + const e = new Ymt(); return e.calculate(t), e; -}, "getThemeVariables"), ib, Wmt = (ib = class { +}, "getThemeVariables"), ib, Gmt = (ib = class { constructor() { this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = Ft(this.primaryColor, 16), this.tertiaryColor = Pe(this.primaryColor, { h: -160 }), this.primaryBorderColor = Ot(this.background), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.tertiaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = Ft(Ot("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = Qd(255, 255, 255, 0.25), this.arrowheadColor = "calculated", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = Yt("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = Yt(this.sectionBkgColor, 10), this.taskBorderColor = Qd(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = Qd(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd"; } @@ -34807,10 +34807,10 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } }, (() => { x(ib, "Theme"); -})(), ib), Gmt = /* @__PURE__ */ x((t) => { - const e = new Wmt(); +})(), ib), Hmt = /* @__PURE__ */ x((t) => { + const e = new Gmt(); return e.calculate(t), e; -}, "getThemeVariables"), sb, Hmt = (sb = class { +}, "getThemeVariables"), sb, Xmt = (sb = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = Pe(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = Pe(this.primaryColor, { h: -160 }), this.primaryBorderColor = ta(this.primaryColor, this.darkMode), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.tertiaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.sectionBkgColor = Qd(102, 102, 255, 0.49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors(); } @@ -34840,7 +34840,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Yt(this.git0, 25), this.git1 = Yt(this.git1, 25), this.git2 = Yt(this.git2, 25), this.git3 = Yt(this.git3, 25), this.git4 = Yt(this.git4, 25), this.git5 = Yt(this.git5, 25), this.git6 = Yt(this.git6, 25), this.git7 = Yt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Yt(Ot(this.git0), 25), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || vT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || yT; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Yt(this.git0, 25), this.git1 = Yt(this.git1, 25), this.git2 = Yt(this.git2, 25), this.git3 = Yt(this.git3, 25), this.git4 = Yt(this.git4, 25), this.git5 = Yt(this.git5, 25), this.git6 = Yt(this.git6, 25), this.git7 = Yt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Yt(Ot(this.git0), 25), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || yT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || bT; } calculate(e) { if (typeof e != "object") { @@ -34856,10 +34856,10 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } }, (() => { x(sb, "Theme"); -})(), sb), gD = /* @__PURE__ */ x((t) => { - const e = new Hmt(); +})(), sb), mD = /* @__PURE__ */ x((t) => { + const e = new Xmt(); return e.calculate(t), e; -}, "getThemeVariables"), ab, Xmt = (ab = class { +}, "getThemeVariables"), ab, Zmt = (ab = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.tertiaryColor = Ft("#cde498", 10), this.primaryBorderColor = ta(this.primaryColor, this.darkMode), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.primaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222"; } @@ -34894,7 +34894,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Yt(this.git0, 25), this.git1 = Yt(this.git1, 25), this.git2 = Yt(this.git2, 25), this.git3 = Yt(this.git3, 25), this.git4 = Yt(this.git4, 25), this.git5 = Yt(this.git5, 25), this.git6 = Yt(this.git6, 25), this.git7 = Yt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || vT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || yT; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Yt(this.git0, 25), this.git1 = Yt(this.git1, 25), this.git2 = Yt(this.git2, 25), this.git3 = Yt(this.git3, 25), this.git4 = Yt(this.git4, 25), this.git5 = Yt(this.git5, 25), this.git6 = Yt(this.git6, 25), this.git7 = Yt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || yT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || bT; } calculate(e) { if (typeof e != "object") { @@ -34910,10 +34910,10 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } }, (() => { x(ab, "Theme"); -})(), ab), Zmt = /* @__PURE__ */ x((t) => { - const e = new Xmt(); +})(), ab), jmt = /* @__PURE__ */ x((t) => { + const e = new Zmt(); return e.calculate(t), e; -}, "getThemeVariables"), ob, jmt = (ob = class { +}, "getThemeVariables"), ob, Kmt = (ob = class { constructor() { this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = Ft(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = Pe(this.primaryColor, { h: -160 }), this.primaryBorderColor = ta(this.primaryColor, this.darkMode), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.tertiaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222"; } @@ -34944,7 +34944,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = Yt(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || Pe(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || vT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || yT; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = Yt(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || Pe(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || yT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || bT; } calculate(e) { if (typeof e != "object") { @@ -34960,24 +34960,24 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } }, (() => { x(ob, "Theme"); -})(), ob), Kmt = /* @__PURE__ */ x((t) => { - const e = new jmt(); +})(), ob), Jmt = /* @__PURE__ */ x((t) => { + const e = new Kmt(); return e.calculate(t), e; }, "getThemeVariables"), Au = { base: { - getThemeVariables: Ymt + getThemeVariables: Wmt }, dark: { - getThemeVariables: Gmt + getThemeVariables: Hmt }, default: { - getThemeVariables: gD + getThemeVariables: mD }, forest: { - getThemeVariables: Zmt + getThemeVariables: jmt }, neutral: { - getThemeVariables: Kmt + getThemeVariables: Jmt } }, gh = { flowchart: { @@ -35444,7 +35444,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu fontSize: 16, markdownAutoWrap: !0, suppressErrorRendering: !1 -}, xie = { +}, wie = { ...gh, deterministicIDSeed: void 0, elk: { @@ -35655,14 +35655,14 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu packet: { ...gh.packet } -}, wie = /* @__PURE__ */ x((t, e = "") => Object.keys(t).reduce((r, n) => Array.isArray(t[n]) ? r : typeof t[n] == "object" && t[n] !== null ? [...r, e + n, ...wie(t[n], "")] : [...r, e + n], []), "keyify"), Jmt = new Set(wie(xie, "")), jr = xie, f3 = /* @__PURE__ */ x((t) => { +}, Oie = /* @__PURE__ */ x((t, e = "") => Object.keys(t).reduce((r, n) => Array.isArray(t[n]) ? r : typeof t[n] == "object" && t[n] !== null ? [...r, e + n, ...Oie(t[n], "")] : [...r, e + n], []), "keyify"), evt = new Set(Oie(wie, "")), jr = wie, f3 = /* @__PURE__ */ x((t) => { if (X.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) { if (Array.isArray(t)) { t.forEach((e) => f3(e)); return; } for (const e of Object.keys(t)) { - if (X.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !Jmt.has(e) || t[e] == null) { + if (X.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !evt.has(e) || t[e] == null) { X.debug("sanitize deleting key: ", e), delete t[e]; continue; } @@ -35672,7 +35672,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } const r = ["themeCSS", "fontFamily", "altFontFamily"]; for (const n of r) - e.includes(n) && (X.debug("sanitizing css option", e), t[e] = evt(t[e])); + e.includes(n) && (X.debug("sanitizing css option", e), t[e] = tvt(t[e])); } if (t.themeVariables) for (const e of Object.keys(t.themeVariables)) { @@ -35681,7 +35681,7 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu } X.debug("After sanitization", t); } -}, "sanitizeDirective"), evt = /* @__PURE__ */ x((t) => { +}, "sanitizeDirective"), tvt = /* @__PURE__ */ x((t) => { let e = 0, r = 0; for (const n of t) { if (e < r) @@ -35689,50 +35689,50 @@ var Ug = die(), pie = Object.defineProperty, x = (t, e) => pie(t, "name", { valu n === "{" ? e++ : n === "}" && r++; } return e !== r ? "{ /* ERROR: Unbalanced CSS */ }" : t; -}, "sanitizeCss"), Qg = Object.freeze(jr), Sa = Ci({}, Qg), Oie, Yg = [], ry = Ci({}, Qg), bT = /* @__PURE__ */ x((t, e) => { +}, "sanitizeCss"), Qg = Object.freeze(jr), Sa = Ci({}, Qg), kie, Yg = [], ry = Ci({}, Qg), xT = /* @__PURE__ */ x((t, e) => { let r = Ci({}, t), n = {}; for (const i of e) - Tie(i), n = Ci(n, i); + Cie(i), n = Ci(n, i); if (r = Ci(r, n), n.theme && n.theme in Au) { - const i = Ci({}, Oie), s = Ci( + const i = Ci({}, kie), s = Ci( i.themeVariables || {}, n.themeVariables ); r.theme && r.theme in Au && (r.themeVariables = Au[r.theme].getThemeVariables(s)); } - return ry = r, Cie(ry), ry; -}, "updateCurrentConfig"), tvt = /* @__PURE__ */ x((t) => (Sa = Ci({}, Qg), Sa = Ci(Sa, t), t.theme && Au[t.theme] && (Sa.themeVariables = Au[t.theme].getThemeVariables(t.themeVariables)), bT(Sa, Yg), Sa), "setSiteConfig"), rvt = /* @__PURE__ */ x((t) => { - Oie = Ci({}, t); -}, "saveConfigFromInitialize"), nvt = /* @__PURE__ */ x((t) => (Sa = Ci(Sa, t), bT(Sa, Yg), Sa), "updateSiteConfig"), kie = /* @__PURE__ */ x(() => Ci({}, Sa), "getSiteConfig"), Sie = /* @__PURE__ */ x((t) => (Cie(t), Ci(ry, t), pi()), "setConfig"), pi = /* @__PURE__ */ x(() => Ci({}, ry), "getConfig"), Tie = /* @__PURE__ */ x((t) => { + return ry = r, Eie(ry), ry; +}, "updateCurrentConfig"), rvt = /* @__PURE__ */ x((t) => (Sa = Ci({}, Qg), Sa = Ci(Sa, t), t.theme && Au[t.theme] && (Sa.themeVariables = Au[t.theme].getThemeVariables(t.themeVariables)), xT(Sa, Yg), Sa), "setSiteConfig"), nvt = /* @__PURE__ */ x((t) => { + kie = Ci({}, t); +}, "saveConfigFromInitialize"), ivt = /* @__PURE__ */ x((t) => (Sa = Ci(Sa, t), xT(Sa, Yg), Sa), "updateSiteConfig"), Sie = /* @__PURE__ */ x(() => Ci({}, Sa), "getSiteConfig"), Tie = /* @__PURE__ */ x((t) => (Eie(t), Ci(ry, t), pi()), "setConfig"), pi = /* @__PURE__ */ x(() => Ci({}, ry), "getConfig"), Cie = /* @__PURE__ */ x((t) => { var e; !t || (["secure", ...(e = Sa.secure) != null ? e : []].forEach((r) => { Object.hasOwn(t, r) && (X.debug(`Denied attempt to modify a secure key ${r}`, t[r]), delete t[r]); }), Object.keys(t).forEach((r) => { r.startsWith("__") && delete t[r]; }), Object.keys(t).forEach((r) => { - typeof t[r] == "string" && (t[r].includes("<") || t[r].includes(">") || t[r].includes("url(data:")) && delete t[r], typeof t[r] == "object" && Tie(t[r]); + typeof t[r] == "string" && (t[r].includes("<") || t[r].includes(">") || t[r].includes("url(data:")) && delete t[r], typeof t[r] == "object" && Cie(t[r]); })); -}, "sanitize"), ivt = /* @__PURE__ */ x((t) => { +}, "sanitize"), svt = /* @__PURE__ */ x((t) => { var e; f3(t), t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables = { ...t.themeVariables, fontFamily: t.fontFamily - }), Yg.push(t), bT(Sa, Yg); + }), Yg.push(t), xT(Sa, Yg); }, "addDirective"), d3 = /* @__PURE__ */ x((t = Sa) => { - Yg = [], bT(t, Yg); -}, "reset"), svt = { + Yg = [], xT(t, Yg); +}, "reset"), avt = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." -}, pU = {}, avt = /* @__PURE__ */ x((t) => { - pU[t] || (X.warn(svt[t]), pU[t] = !0); -}, "issueWarning"), Cie = /* @__PURE__ */ x((t) => { - !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && avt("LAZY_LOAD_DEPRECATED"); -}, "checkConfig"), G1 = //gi, ovt = /* @__PURE__ */ x((t) => t ? Aie(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), lvt = /* @__PURE__ */ (() => { +}, pU = {}, ovt = /* @__PURE__ */ x((t) => { + pU[t] || (X.warn(avt[t]), pU[t] = !0); +}, "issueWarning"), Eie = /* @__PURE__ */ x((t) => { + !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && ovt("LAZY_LOAD_DEPRECATED"); +}, "checkConfig"), G1 = //gi, lvt = /* @__PURE__ */ x((t) => t ? Lie(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), cvt = /* @__PURE__ */ (() => { let t = !1; return () => { - t || (Eie(), t = !0); + t || (_ie(), t = !0); }; })(); -function Eie() { +function _ie() { const t = "data-temp-href-target"; Ug.addHook("beforeSanitizeAttributes", (e) => { var r; @@ -35742,23 +35742,23 @@ function Eie() { e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", (r = e.getAttribute(t)) != null ? r : ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener")); }); } -x(Eie, "setupDompurifyHooks"); -var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU = /* @__PURE__ */ x((t, e) => { +x(_ie, "setupDompurifyHooks"); +var Aie = /* @__PURE__ */ x((t) => (cvt(), Ug.sanitize(t)), "removeScript"), gU = /* @__PURE__ */ x((t, e) => { var r; if (((r = e.flowchart) == null ? void 0 : r.htmlLabels) !== !1) { const n = e.securityLevel; - n === "antiscript" || n === "strict" ? t = _ie(t) : n !== "loose" && (t = Aie(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = fvt(t)); + n === "antiscript" || n === "strict" ? t = Aie(t) : n !== "loose" && (t = Lie(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = dvt(t)); } return t; }, "sanitizeMore"), ni = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Ug.sanitize(gU(t, e), e.dompurifyConfig).toString() : t = Ug.sanitize(gU(t, e), { FORBID_TAGS: ["style"] -}).toString(), t), "sanitizeText"), cvt = /* @__PURE__ */ x((t, e) => typeof t == "string" ? ni(t, e) : t.flat().map((r) => ni(r, e)), "sanitizeTextOrArray"), uvt = /* @__PURE__ */ x((t) => G1.test(t), "hasBreaks"), hvt = /* @__PURE__ */ x((t) => t.split(G1), "splitBreaks"), fvt = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), Aie = /* @__PURE__ */ x((t) => t.replace(G1, "#br#"), "breakToPlaceholder"), dvt = /* @__PURE__ */ x((t) => { +}).toString(), t), "sanitizeText"), uvt = /* @__PURE__ */ x((t, e) => typeof t == "string" ? ni(t, e) : t.flat().map((r) => ni(r, e)), "sanitizeTextOrArray"), hvt = /* @__PURE__ */ x((t) => G1.test(t), "hasBreaks"), fvt = /* @__PURE__ */ x((t) => t.split(G1), "splitBreaks"), dvt = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), Lie = /* @__PURE__ */ x((t) => t.replace(G1, "#br#"), "breakToPlaceholder"), pvt = /* @__PURE__ */ x((t) => { let e = ""; return t && (e = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, e = e.replaceAll(/\(/g, "\\("), e = e.replaceAll(/\)/g, "\\)")), e; -}, "getUrl"), bn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), pvt = /* @__PURE__ */ x(function(...t) { +}, "getUrl"), bn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), gvt = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.max(...e); -}, "getMax"), gvt = /* @__PURE__ */ x(function(...t) { +}, "getMax"), mvt = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.min(...e); }, "getMin"), ny = /* @__PURE__ */ x(function(t) { @@ -35767,16 +35767,16 @@ var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU let i = e[n]; if (i === "," && n > 0 && n + 1 < e.length) { const s = e[n - 1], a = e[n + 1]; - mvt(s, a) && (i = s + "," + a, n++, r.pop()); + vvt(s, a) && (i = s + "," + a, n++, r.pop()); } - r.push(vvt(i)); + r.push(yvt(i)); } return r.join(""); -}, "parseGenericTypes"), m8 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), mvt = /* @__PURE__ */ x((t, e) => { - const r = m8(t, "~"), n = m8(e, "~"); +}, "parseGenericTypes"), v8 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), vvt = /* @__PURE__ */ x((t, e) => { + const r = v8(t, "~"), n = v8(e, "~"); return r === 1 && n === 1; -}, "shouldCombineSets"), vvt = /* @__PURE__ */ x((t) => { - const e = m8(t, "~"); +}, "shouldCombineSets"), yvt = /* @__PURE__ */ x((t) => { + const e = v8(t, "~"); let r = !1; if (e <= 1) return t; @@ -35786,9 +35786,9 @@ var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU for (; i !== -1 && s !== -1 && i !== s; ) n[i] = "<", n[s] = ">", i = n.indexOf("~"), s = n.lastIndexOf("~"); return r && n.unshift("~"), n.join(""); -}, "processSet"), mU = /* @__PURE__ */ x(() => window.MathMLElement !== void 0, "isMathMLSupported"), v8 = /\$\$(.*)\$\$/g, ca = /* @__PURE__ */ x((t) => { +}, "processSet"), mU = /* @__PURE__ */ x(() => window.MathMLElement !== void 0, "isMathMLSupported"), y8 = /\$\$(.*)\$\$/g, ca = /* @__PURE__ */ x((t) => { var e, r; - return ((r = (e = t.match(v8)) == null ? void 0 : e.length) != null ? r : 0) > 0; + return ((r = (e = t.match(y8)) == null ? void 0 : e.length) != null ? r : 0) > 0; }, "hasKatex"), ax = /* @__PURE__ */ x(async (t, e) => { t = await ox(t, e); const r = document.createElement("div"); @@ -35801,12 +35801,12 @@ var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU if (!ca(t)) return t; if (!(mU() || e.legacyMathML || e.forceLegacyMathML)) - return t.replace(v8, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => gLt), n = e.forceLegacyMathML || !mU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + return t.replace(y8, "MathML is unsupported in this environment."); + const { default: r } = await Promise.resolve().then(() => mLt), n = e.forceLegacyMathML || !mU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(G1).map( (i) => ca(i) ? `
${i}
` : `
${i}
` ).join("").replace( - v8, + y8, (i, s) => r.renderToString(s, { throwOnError: !0, displayMode: !0, @@ -35814,26 +35814,26 @@ var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU }).replace(/\n/g, " ").replace(//g, "") ); }, "renderKatex"), at = { - getRows: ovt, + getRows: lvt, sanitizeText: ni, - sanitizeTextOrArray: cvt, - hasBreaks: uvt, - splitBreaks: hvt, + sanitizeTextOrArray: uvt, + hasBreaks: hvt, + splitBreaks: fvt, lineBreakRegex: G1, - removeScript: _ie, - getUrl: dvt, + removeScript: Aie, + getUrl: pvt, evaluate: bn, - getMax: pvt, - getMin: gvt -}, yvt = /* @__PURE__ */ x(function(t, e) { + getMax: gvt, + getMin: mvt +}, bvt = /* @__PURE__ */ x(function(t, e) { for (let r of e) t.attr(r[0], r[1]); -}, "d3Attrs"), bvt = /* @__PURE__ */ x(function(t, e, r) { +}, "d3Attrs"), xvt = /* @__PURE__ */ x(function(t, e, r) { let n = /* @__PURE__ */ new Map(); return r ? (n.set("width", "100%"), n.set("style", `max-width: ${e}px;`)) : (n.set("height", t), n.set("width", e)), n; }, "calculateSvgSizeAttrs"), ms = /* @__PURE__ */ x(function(t, e, r, n) { - const i = bvt(e, r, n); - yvt(t, i); + const i = xvt(e, r, n); + bvt(t, i); }, "configureSvgSize"), H1 = /* @__PURE__ */ x(function(t, e, r, n) { const i = e.node().getBBox(), s = i.width, a = i.height; X.info(`SVG bounds: ${s}x${a}`, i); @@ -35841,7 +35841,7 @@ var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU X.info(`Graph bounds: ${o}x${l}`, t), o = s + r * 2, l = a + r * 2, X.info(`Calculated bounds: ${o}x${l}`), ms(e, l, o, n); const u = `${i.x - r} ${i.y - r} ${i.width + 2 * r} ${i.height + 2 * r}`; e.attr("viewBox", u); -}, "setupGraphViewbox"), E4 = {}, xvt = /* @__PURE__ */ x((t, e, r) => { +}, "setupGraphViewbox"), E4 = {}, wvt = /* @__PURE__ */ x((t, e, r) => { let n = ""; return t in E4 && E4[t] ? n = E4[t](r) : X.warn(`No theme found for ${t}`), ` & { font-family: ${r.fontFamily}; @@ -35899,10 +35899,10 @@ var _ie = /* @__PURE__ */ x((t) => (lvt(), Ug.sanitize(t)), "removeScript"), gU ${e} `; -}, "getStyles"), wvt = /* @__PURE__ */ x((t, e) => { +}, "getStyles"), Ovt = /* @__PURE__ */ x((t, e) => { e !== void 0 && (E4[t] = e); -}, "addStylesForDiagram"), Ovt = xvt, mD = {}; -gie(mD, { +}, "addStylesForDiagram"), kvt = wvt, vD = {}; +mie(vD, { clear: () => Xi, getAccDescription: () => bs, getAccTitle: () => vs, @@ -35911,40 +35911,40 @@ gie(mD, { setAccTitle: () => Zi, setDiagramTitle: () => fa }); -var vD = "", yD = "", bD = "", xD = /* @__PURE__ */ x((t) => ni(t, pi()), "sanitizeText"), Xi = /* @__PURE__ */ x(() => { - vD = "", bD = "", yD = ""; +var yD = "", bD = "", xD = "", wD = /* @__PURE__ */ x((t) => ni(t, pi()), "sanitizeText"), Xi = /* @__PURE__ */ x(() => { + yD = "", xD = "", bD = ""; }, "clear"), Zi = /* @__PURE__ */ x((t) => { - vD = xD(t).replace(/^\s+/g, ""); -}, "setAccTitle"), vs = /* @__PURE__ */ x(() => vD, "getAccTitle"), ys = /* @__PURE__ */ x((t) => { - bD = xD(t).replace(/\n\s+/g, ` + yD = wD(t).replace(/^\s+/g, ""); +}, "setAccTitle"), vs = /* @__PURE__ */ x(() => yD, "getAccTitle"), ys = /* @__PURE__ */ x((t) => { + xD = wD(t).replace(/\n\s+/g, ` `); -}, "setAccDescription"), bs = /* @__PURE__ */ x(() => bD, "getAccDescription"), fa = /* @__PURE__ */ x((t) => { - yD = xD(t); -}, "setDiagramTitle"), xs = /* @__PURE__ */ x(() => yD, "getDiagramTitle"), vU = X, kvt = dD, be = pi, yU = Sie, Lie = Qg, Svt = /* @__PURE__ */ x((t) => ni(t, be()), "sanitizeText"), Rie = H1, Tvt = /* @__PURE__ */ x(() => mD, "getCommonDb"), p3 = {}, g3 = /* @__PURE__ */ x((t, e, r) => { +}, "setAccDescription"), bs = /* @__PURE__ */ x(() => xD, "getAccDescription"), fa = /* @__PURE__ */ x((t) => { + bD = wD(t); +}, "setDiagramTitle"), xs = /* @__PURE__ */ x(() => bD, "getDiagramTitle"), vU = X, Svt = pD, be = pi, yU = Tie, Rie = Qg, Tvt = /* @__PURE__ */ x((t) => ni(t, be()), "sanitizeText"), Mie = H1, Cvt = /* @__PURE__ */ x(() => vD, "getCommonDb"), p3 = {}, g3 = /* @__PURE__ */ x((t, e, r) => { var n; - p3[t] && vU.warn(`Diagram with id ${t} already registered. Overwriting.`), p3[t] = e, r && bie(t, r), wvt(t, e.styles), (n = e.injectUtils) == null || n.call( + p3[t] && vU.warn(`Diagram with id ${t} already registered. Overwriting.`), p3[t] = e, r && xie(t, r), Ovt(t, e.styles), (n = e.injectUtils) == null || n.call( e, vU, - kvt, - be, Svt, - Rie, - Tvt(), + be, + Tvt, + Mie, + Cvt(), () => { } ); -}, "registerDiagram"), y8 = /* @__PURE__ */ x((t) => { +}, "registerDiagram"), b8 = /* @__PURE__ */ x((t) => { if (t in p3) return p3[t]; - throw new Cvt(t); -}, "getDiagram"), lb, Cvt = (lb = class extends Error { + throw new Evt(t); +}, "getDiagram"), lb, Evt = (lb = class extends Error { constructor(e) { super(`Diagram ${e} not found.`); } }, (() => { x(lb, "DiagramNotFoundError"); })(), lb); -const Evt = Object.freeze( +const _vt = Object.freeze( { left: 0, top: 0, @@ -35955,20 +35955,20 @@ const Evt = Object.freeze( rotate: 0, vFlip: !1, hFlip: !1 -}), Mie = Object.freeze({ - ...Evt, +}), Die = Object.freeze({ + ..._vt, ...m3 -}), _vt = Object.freeze({ - ...Mie, +}), Avt = Object.freeze({ + ...Die, body: "", hidden: !1 -}), Avt = Object.freeze({ +}), Lvt = Object.freeze({ width: null, height: null -}), Lvt = Object.freeze({ - ...Avt, +}), Rvt = Object.freeze({ + ...Lvt, ...m3 -}), M6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, Rvt = (t, e, r, n = "") => { +}), D6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, Mvt = (t, e, r, n = "") => { const i = t.split(":"); if (t.slice(0, 1) === "@") { if (i.length < 2 || i.length > 3) @@ -35983,7 +35983,7 @@ const Evt = Object.freeze( prefix: l, name: o }; - return e && !D6(u) ? null : u; + return e && !N6(u) ? null : u; } const s = i[0], a = s.split("-"); if (a.length > 1) { @@ -35992,7 +35992,7 @@ const Evt = Object.freeze( prefix: a.shift(), name: a.join("-") }; - return e && !D6(o) ? null : o; + return e && !N6(o) ? null : o; } if (r && n === "") { const o = { @@ -36000,23 +36000,23 @@ const Evt = Object.freeze( prefix: "", name: s }; - return e && !D6(o, r) ? null : o; + return e && !N6(o, r) ? null : o; } return null; -}, D6 = (t, e) => t ? !!((t.provider === "" || t.provider.match(M6)) && (e && t.prefix === "" || t.prefix.match(M6)) && t.name.match(M6)) : !1; -function Mvt(t, e) { +}, N6 = (t, e) => t ? !!((t.provider === "" || t.provider.match(D6)) && (e && t.prefix === "" || t.prefix.match(D6)) && t.name.match(D6)) : !1; +function Dvt(t, e) { const r = {}; !t.hFlip != !e.hFlip && (r.hFlip = !0), !t.vFlip != !e.vFlip && (r.vFlip = !0); const n = ((t.rotate || 0) + (e.rotate || 0)) % 4; return n && (r.rotate = n), r; } function bU(t, e) { - const r = Mvt(t, e); - for (const n in _vt) + const r = Dvt(t, e); + for (const n in Avt) n in m3 ? n in t && !(n in r) && (r[n] = m3[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]); return r; } -function Dvt(t, e) { +function Nvt(t, e) { const r = t.icons, n = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null); function s(a) { if (r[a]) @@ -36041,13 +36041,13 @@ function xU(t, e, r) { } return a(e), r.forEach(a), bU(t, s); } -function Nvt(t, e) { +function Ivt(t, e) { if (t.icons[e]) return xU(t, e, []); - const r = Dvt(t, [e])[e]; + const r = Nvt(t, [e])[e]; return r ? xU(t, e, r) : null; } -const Ivt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Pvt = /^-?[0-9.]*[0-9]+[0-9.]*$/g; +const Pvt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, $vt = /^-?[0-9.]*[0-9]+[0-9.]*$/g; function wU(t, e, r) { if (e === 1) return t; @@ -36055,11 +36055,11 @@ function wU(t, e, r) { return Math.ceil(t * e * r) / r; if (typeof t != "string") return t; - const n = t.split(Ivt); + const n = t.split(Pvt); if (n === null || !n.length) return t; const i = []; - let s = n.shift(), a = Pvt.test(s); + let s = n.shift(), a = $vt.test(s); for (; ; ) { if (a) { const o = parseFloat(s); @@ -36071,7 +36071,7 @@ function wU(t, e, r) { a = !a; } } -function $vt(t, e = "defs") { +function Bvt(t, e = "defs") { let r = ""; const n = t.indexOf("<" + e); for (; n >= 0; ) { @@ -36088,20 +36088,20 @@ function $vt(t, e = "defs") { content: t }; } -function Bvt(t, e) { +function Fvt(t, e) { return t ? "" + t + "" + e : e; } -function Fvt(t, e, r) { - const n = $vt(t); - return Bvt(n.defs, e + n.content + r); +function zvt(t, e, r) { + const n = Bvt(t); + return Fvt(n.defs, e + n.content + r); } -const zvt = (t) => t === "unset" || t === "undefined" || t === "none"; -function Vvt(t, e) { +const Vvt = (t) => t === "unset" || t === "undefined" || t === "none"; +function Uvt(t, e) { const r = { - ...Mie, + ...Die, ...t }, n = { - ...Lvt, + ...Rvt, ...e }, i = { left: r.left, @@ -36136,7 +36136,7 @@ function Vvt(t, e) { ); break; } - w % 2 === 1 && (i.left !== i.top && (O = i.left, i.left = i.top, i.top = O), i.width !== i.height && (O = i.width, i.width = i.height, i.height = O)), v.length && (s = Fvt( + w % 2 === 1 && (i.left !== i.top && (O = i.left, i.left = i.top, i.top = O), i.width !== i.height && (O = i.width, i.width = i.height, i.height = O)), v.length && (s = zvt( s, '', "" @@ -36146,7 +36146,7 @@ function Vvt(t, e) { let h, f; a === null ? (f = o === null ? "1em" : o === "auto" ? u : o, h = wU(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? wU(h, u / l) : o === "auto" ? u : o); const d = {}, p = (m, v) => { - zvt(v) || (d[m] = v.toString()); + Vvt(v) || (d[m] = v.toString()); }; p("width", h), p("height", f); const g = [i.left, i.top, l, u]; @@ -36156,78 +36156,78 @@ function Vvt(t, e) { body: s }; } -const Uvt = /\sid="(\S+)"/g, qvt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); -let Qvt = 0; -function Yvt(t, e = qvt) { +const qvt = /\sid="(\S+)"/g, Qvt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); +let Yvt = 0; +function Wvt(t, e = Qvt) { const r = []; let n; - for (; n = Uvt.exec(t); ) + for (; n = qvt.exec(t); ) r.push(n[1]); if (!r.length) return t; const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16); return r.forEach((s) => { - const a = typeof e == "function" ? e(s) : e + (Qvt++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const a = typeof e == "function" ? e(s) : e + (Yvt++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); t = t.replace( new RegExp('([#;"])(' + o + ')([")]|\\.[a-z])', "g"), "$1" + a + i + "$3" ); }), t = t.replace(new RegExp(i, "g"), ""), t; } -function Wvt(t, e) { +function Gvt(t, e) { let r = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"'; for (const n in e) r += " " + n + '="' + e[n] + '"'; return '" + t + ""; } -var Die = { +var Nie = { body: '?', height: 80, width: 80 -}, b8 = /* @__PURE__ */ new Map(), Nie = /* @__PURE__ */ new Map(), Iie = /* @__PURE__ */ x((t) => { +}, x8 = /* @__PURE__ */ new Map(), Iie = /* @__PURE__ */ new Map(), Pie = /* @__PURE__ */ x((t) => { for (const e of t) { if (!e.name) throw new Error( 'Invalid icon loader. Must have a "name" property with non-empty string value.' ); if (X.debug("Registering icon pack:", e.name), "loader" in e) - Nie.set(e.name, e.loader); + Iie.set(e.name, e.loader); else if ("icons" in e) - b8.set(e.name, e.icons); + x8.set(e.name, e.icons); else throw X.error("Invalid icon loader:", e), new Error('Invalid icon loader. Must have either "icons" or "loader" property.'); } -}, "registerIconPacks"), Gvt = /* @__PURE__ */ x(async (t, e) => { - const r = Rvt(t, !0, e !== void 0); +}, "registerIconPacks"), Hvt = /* @__PURE__ */ x(async (t, e) => { + const r = Mvt(t, !0, e !== void 0); if (!r) throw new Error(`Invalid icon name: ${t}`); const n = r.prefix || e; if (!n) throw new Error(`Icon name must contain a prefix: ${t}`); - let i = b8.get(n); + let i = x8.get(n); if (!i) { - const a = Nie.get(n); + const a = Iie.get(n); if (!a) throw new Error(`Icon set not found: ${r.prefix}`); try { - i = { ...await a(), prefix: n }, b8.set(n, i); + i = { ...await a(), prefix: n }, x8.set(n, i); } catch (o) { throw X.error(o), new Error(`Failed to load icon set: ${r.prefix}`); } } - const s = Nvt(i, r.name); + const s = Ivt(i, r.name); if (!s) throw new Error(`Icon not found: ${t}`); return s; -}, "getRegisteredIconData"), x8 = /* @__PURE__ */ x(async (t, e) => { +}, "getRegisteredIconData"), w8 = /* @__PURE__ */ x(async (t, e) => { let r; try { - r = await Gvt(t, e == null ? void 0 : e.fallbackPrefix); + r = await Hvt(t, e == null ? void 0 : e.fallbackPrefix); } catch (s) { - X.error(s), r = Die; + X.error(s), r = Nie; } - const n = Vvt(r, e); - return Wvt(Yvt(n.body), n.attributes); + const n = Uvt(r, e); + return Gvt(Wvt(n.body), n.attributes); }, "getIconSVG"), F0 = /* @__PURE__ */ x(({ flowchart: t }) => { @@ -36254,7 +36254,7 @@ function yv(t, e) { return { angle: Math.atan(o / a), deltaX: a, deltaY: o }; } x(yv, "calculateDeltaAndAngle"); -var v3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), Pie = /* @__PURE__ */ x((t) => ({ +var v3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), $ie = /* @__PURE__ */ x((t) => ({ x: /* @__PURE__ */ x(function(e, r, n) { let i = 0; if (r === 0 && Object.hasOwn(mh, t.arrowTypeStart)) { @@ -36283,29 +36283,29 @@ var v3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, " } return v3(e).y + i; }, "y") -}), "getLineFunctionsWithOffset"), wD = {}, qi = {}; -Object.defineProperty(qi, "__esModule", { value: !0 }); -qi.BLANK_URL = qi.relativeFirstCharacters = qi.whitespaceEscapeCharsRegex = qi.urlSchemeRegex = qi.ctrlCharactersRegex = qi.htmlCtrlEntityRegex = qi.htmlEntitiesRegex = qi.invalidProtocolRegex = void 0; -qi.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im; -qi.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g; -qi.htmlCtrlEntityRegex = /&(newline|tab);/gi; -qi.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim; -qi.urlSchemeRegex = /^.+(:|:)/gim; -qi.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g; -qi.relativeFirstCharacters = [".", "/"]; -qi.BLANK_URL = "about:blank"; -Object.defineProperty(wD, "__esModule", { value: !0 }); -var zf = wD.sanitizeUrl = void 0, Ts = qi; -function Hvt(t) { +}), "getLineFunctionsWithOffset"), OD = {}, Qi = {}; +Object.defineProperty(Qi, "__esModule", { value: !0 }); +Qi.BLANK_URL = Qi.relativeFirstCharacters = Qi.whitespaceEscapeCharsRegex = Qi.urlSchemeRegex = Qi.ctrlCharactersRegex = Qi.htmlCtrlEntityRegex = Qi.htmlEntitiesRegex = Qi.invalidProtocolRegex = void 0; +Qi.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im; +Qi.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g; +Qi.htmlCtrlEntityRegex = /&(newline|tab);/gi; +Qi.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim; +Qi.urlSchemeRegex = /^.+(:|:)/gim; +Qi.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g; +Qi.relativeFirstCharacters = [".", "/"]; +Qi.BLANK_URL = "about:blank"; +Object.defineProperty(OD, "__esModule", { value: !0 }); +var zf = OD.sanitizeUrl = void 0, Ts = Qi; +function Xvt(t) { return Ts.relativeFirstCharacters.indexOf(t[0]) > -1; } -function Xvt(t) { +function Zvt(t) { var e = t.replace(Ts.ctrlCharactersRegex, ""); return e.replace(Ts.htmlEntitiesRegex, function(r, n) { return String.fromCharCode(n); }); } -function Zvt(t) { +function jvt(t) { return URL.canParse(t); } function OU(t) { @@ -36315,17 +36315,17 @@ function OU(t) { return t; } } -function jvt(t) { +function Kvt(t) { if (!t) return Ts.BLANK_URL; var e, r = OU(t.trim()); do - r = Xvt(r).replace(Ts.htmlCtrlEntityRegex, "").replace(Ts.ctrlCharactersRegex, "").replace(Ts.whitespaceEscapeCharsRegex, "").trim(), r = OU(r), e = r.match(Ts.ctrlCharactersRegex) || r.match(Ts.htmlEntitiesRegex) || r.match(Ts.htmlCtrlEntityRegex) || r.match(Ts.whitespaceEscapeCharsRegex); + r = Zvt(r).replace(Ts.htmlCtrlEntityRegex, "").replace(Ts.ctrlCharactersRegex, "").replace(Ts.whitespaceEscapeCharsRegex, "").trim(), r = OU(r), e = r.match(Ts.ctrlCharactersRegex) || r.match(Ts.htmlEntitiesRegex) || r.match(Ts.htmlCtrlEntityRegex) || r.match(Ts.whitespaceEscapeCharsRegex); while (e && e.length > 0); var n = r; if (!n) return Ts.BLANK_URL; - if (Hvt(n)) + if (Xvt(n)) return n; var i = n.trimStart(), s = i.match(Ts.urlSchemeRegex); if (!s) @@ -36337,23 +36337,23 @@ function jvt(t) { if (a === "mailto:" || a.includes("://")) return o; if (a === "http:" || a === "https:") { - if (!Zvt(o)) + if (!jvt(o)) return Ts.BLANK_URL; var l = new URL(o); return l.protocol = l.protocol.toLowerCase(), l.hostname = l.hostname.toLowerCase(), l.toString(); } return o; } -zf = wD.sanitizeUrl = jvt; +zf = OD.sanitizeUrl = Kvt; function _4(t, e) { return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function Kvt(t, e) { +function Jvt(t, e) { return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function OD(t) { +function kD(t) { let e, r, n; - t.length !== 2 ? (e = _4, r = (o, l) => _4(t(o), l), n = (o, l) => t(o) - l) : (e = t === _4 || t === Kvt ? t : Jvt, r = t, n = t); + t.length !== 2 ? (e = _4, r = (o, l) => _4(t(o), l), n = (o, l) => t(o) - l) : (e = t === _4 || t === Jvt ? t : eyt, r = t, n = t); function i(o, l, u = 0, h = o.length) { if (u < h) { if (e(l, l) !== 0) @@ -36382,17 +36382,17 @@ function OD(t) { } return { left: i, center: a, right: s }; } -function Jvt() { +function eyt() { return 0; } -function eyt(t) { +function tyt(t) { return t === null ? NaN : +t; } -const tyt = OD(_4), ryt = tyt.right; -OD(eyt).center; -const nyt = ryt; +const ryt = kD(_4), nyt = ryt.right; +kD(tyt).center; +const iyt = nyt; class kU extends Map { - constructor(e, r = ayt) { + constructor(e, r = oyt) { if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: r } }), e != null) for (const [n, i] of e) this.set(n, i); @@ -36404,34 +36404,34 @@ class kU extends Map { return super.has(SU(this, e)); } set(e, r) { - return super.set(iyt(this, e), r); + return super.set(syt(this, e), r); } delete(e) { - return super.delete(syt(this, e)); + return super.delete(ayt(this, e)); } } function SU({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : r; } -function iyt({ _intern: t, _key: e }, r) { +function syt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : (t.set(n, r), r); } -function syt({ _intern: t, _key: e }, r) { +function ayt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) && (r = t.get(n), t.delete(n)), r; } -function ayt(t) { +function oyt(t) { return t !== null && typeof t == "object" ? t.valueOf() : t; } -const oyt = Math.sqrt(50), lyt = Math.sqrt(10), cyt = Math.sqrt(2); +const lyt = Math.sqrt(50), cyt = Math.sqrt(10), uyt = Math.sqrt(2); function y3(t, e, r) { - const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= oyt ? 10 : s >= lyt ? 5 : s >= cyt ? 2 : 1; + const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= lyt ? 10 : s >= cyt ? 5 : s >= uyt ? 2 : 1; let o, l, u; return i < 0 ? (u = Math.pow(10, -i) / a, o = Math.round(t * u), l = Math.round(e * u), o / u < t && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, i) * a, o = Math.round(t / u), l = Math.round(e / u), o * u < t && ++o, l * u > e && --l), l < o && 0.5 <= r && r < 2 ? y3(t, e, r * 2) : [o, l, u]; } -function uyt(t, e, r) { +function hyt(t, e, r) { if (e = +e, t = +t, r = +r, !(r > 0)) return []; if (t === e) @@ -36455,15 +36455,15 @@ function uyt(t, e, r) { l[u] = (i + u) * a; return l; } -function w8(t, e, r) { +function O8(t, e, r) { return e = +e, t = +t, r = +r, y3(t, e, r)[2]; } -function O8(t, e, r) { +function k8(t, e, r) { e = +e, t = +t, r = +r; - const n = e < t, i = n ? w8(e, t, r) : w8(t, e, r); + const n = e < t, i = n ? O8(e, t, r) : O8(t, e, r); return (n ? -1 : 1) * (i < 0 ? 1 / -i : i); } -function hyt(t, e) { +function fyt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36475,7 +36475,7 @@ function hyt(t, e) { } return r; } -function fyt(t, e) { +function dyt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36487,43 +36487,43 @@ function fyt(t, e) { } return r; } -function dyt(t, e, r) { +function pyt(t, e, r) { t = +t, e = +e, r = (i = arguments.length) < 2 ? (e = t, t = 0, 1) : i < 3 ? 1 : +r; for (var n = -1, i = Math.max(0, Math.ceil((e - t) / r)) | 0, s = new Array(i); ++n < i; ) s[n] = t + n * r; return s; } -function pyt(t) { +function gyt(t) { return t; } -var A4 = 1, N6 = 2, k8 = 3, Gw = 4, TU = 1e-6; -function gyt(t) { +var A4 = 1, I6 = 2, S8 = 3, Gw = 4, TU = 1e-6; +function myt(t) { return "translate(" + t + ",0)"; } -function myt(t) { +function vyt(t) { return "translate(0," + t + ")"; } -function vyt(t) { +function yyt(t) { return (e) => +t(e); } -function yyt(t, e) { +function byt(t, e) { return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (r) => +t(r) + e; } -function byt() { +function xyt() { return !this.__axis; } -function $ie(t, e) { - var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === A4 || t === Gw ? -1 : 1, h = t === Gw || t === N6 ? "x" : "y", f = t === A4 || t === k8 ? gyt : myt; +function Bie(t, e) { + var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === A4 || t === Gw ? -1 : 1, h = t === Gw || t === I6 ? "x" : "y", f = t === A4 || t === S8 ? myt : vyt; function d(p) { - var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : pyt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? yyt : vyt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), L = T.exit(), E = T.enter().append("g").attr("class", "tick"), A = T.select("line"), _ = T.select("text"); - C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), A = A.merge(E.append("line").attr("stroke", "currentColor").attr(h + "2", u * s)), _ = _.merge(E.append("text").attr("fill", "currentColor").attr(h, u * v).attr("dy", t === A4 ? "0em" : t === k8 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), A = A.transition(p), _ = _.transition(p), L = L.transition(p).attr("opacity", TU).attr("transform", function(R) { + var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : gyt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? byt : yyt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), A = T.exit(), E = T.enter().append("g").attr("class", "tick"), L = T.select("line"), _ = T.select("text"); + C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), L = L.merge(E.append("line").attr("stroke", "currentColor").attr(h + "2", u * s)), _ = _.merge(E.append("text").attr("fill", "currentColor").attr(h, u * v).attr("dy", t === A4 ? "0em" : t === S8 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), L = L.transition(p), _ = _.transition(p), A = A.transition(p).attr("opacity", TU).attr("transform", function(R) { return isFinite(R = O(R)) ? f(R + l) : this.getAttribute("transform"); }), E.attr("opacity", TU).attr("transform", function(R) { var $ = this.parentNode.__axis; return f(($ && isFinite($ = $(R)) ? $ : O(R)) + l); - })), L.remove(), C.attr("d", t === Gw || t === N6 ? a ? "M" + u * a + "," + b + "H" + l + "V" + w + "H" + u * a : "M" + l + "," + b + "V" + w : a ? "M" + b + "," + u * a + "V" + l + "H" + w + "V" + u * a : "M" + b + "," + l + "H" + w), T.attr("opacity", 1).attr("transform", function(R) { + })), A.remove(), C.attr("d", t === Gw || t === I6 ? a ? "M" + u * a + "," + b + "H" + l + "V" + w + "H" + u * a : "M" + l + "," + b + "V" + w : a ? "M" + b + "," + u * a + "V" + l + "H" + w + "V" + u * a : "M" + b + "," + l + "H" + w), T.attr("opacity", 1).attr("transform", function(R) { return f(O(R) + l); - }), A.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(byt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === N6 ? "start" : t === Gw ? "end" : "middle"), S.each(function() { + }), L.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(xyt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === I6 ? "start" : t === Gw ? "end" : "middle"), S.each(function() { this.__axis = O; }); } @@ -36549,15 +36549,15 @@ function $ie(t, e) { return arguments.length ? (l = +p, d) : l; }, d; } -function xyt(t) { - return $ie(A4, t); -} function wyt(t) { - return $ie(k8, t); + return Bie(A4, t); } -var Oyt = { value: () => { +function Oyt(t) { + return Bie(S8, t); +} +var kyt = { value: () => { } }; -function Bie() { +function Fie() { for (var t = 0, e = arguments.length, r = {}, n; t < e; ++t) { if (!(n = arguments[t] + "") || n in r || /[\s.]/.test(n)) throw new Error("illegal type: " + n); @@ -36568,7 +36568,7 @@ function Bie() { function L4(t) { this._ = t; } -function kyt(t, e) { +function Syt(t, e) { return t.trim().split(/^|\s+/).map(function(r) { var n = "", i = r.indexOf("."); if (i >= 0 && (n = r.slice(i + 1), r = r.slice(0, i)), r && !e.hasOwnProperty(r)) @@ -36576,13 +36576,13 @@ function kyt(t, e) { return { type: r, name: n }; }); } -L4.prototype = Bie.prototype = { +L4.prototype = Fie.prototype = { constructor: L4, on: function(t, e) { - var r = this._, n = kyt(t + "", r), i, s = -1, a = n.length; + var r = this._, n = Syt(t + "", r), i, s = -1, a = n.length; if (arguments.length < 2) { for (; ++s < a; ) - if ((i = (t = n[s]).type) && (i = Syt(r[i], t.name))) + if ((i = (t = n[s]).type) && (i = Tyt(r[i], t.name))) return i; return; } @@ -36618,7 +36618,7 @@ L4.prototype = Bie.prototype = { n[i].value.apply(e, r); } }; -function Syt(t, e) { +function Tyt(t, e) { for (var r = 0, n = t.length, i; r < n; ++r) if ((i = t[r]).name === e) return i.value; @@ -36626,121 +36626,121 @@ function Syt(t, e) { function CU(t, e, r) { for (var n = 0, i = t.length; n < i; ++n) if (t[n].name === e) { - t[n] = Oyt, t = t.slice(0, n).concat(t.slice(n + 1)); + t[n] = kyt, t = t.slice(0, n).concat(t.slice(n + 1)); break; } return r != null && t.push({ name: e, value: r }), t; } -var S8 = "http://www.w3.org/1999/xhtml"; +var T8 = "http://www.w3.org/1999/xhtml"; const EU = { svg: "http://www.w3.org/2000/svg", - xhtml: S8, + xhtml: T8, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }; -function xT(t) { +function wT(t) { var e = t += "", r = e.indexOf(":"); return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), EU.hasOwnProperty(e) ? { space: EU[e], local: t } : t; } -function Tyt(t) { +function Cyt(t) { return function() { var e = this.ownerDocument, r = this.namespaceURI; - return r === S8 && e.documentElement.namespaceURI === S8 ? e.createElement(t) : e.createElementNS(r, t); + return r === T8 && e.documentElement.namespaceURI === T8 ? e.createElement(t) : e.createElementNS(r, t); }; } -function Cyt(t) { +function Eyt(t) { return function() { return this.ownerDocument.createElementNS(t.space, t.local); }; } -function Fie(t) { - var e = xT(t); - return (e.local ? Cyt : Tyt)(e); +function zie(t) { + var e = wT(t); + return (e.local ? Eyt : Cyt)(e); } -function Eyt() { +function _yt() { } -function kD(t) { - return t == null ? Eyt : function() { +function SD(t) { + return t == null ? _yt : function() { return this.querySelector(t); }; } -function _yt(t) { - typeof t != "function" && (t = kD(t)); +function Ayt(t) { + typeof t != "function" && (t = SD(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = new Array(a), l, u, h = 0; h < a; ++h) (l = s[h]) && (u = t.call(l, l.__data__, h, s)) && ("__data__" in l && (u.__data__ = l.__data__), o[h] = u); return new uo(n, this._parents); } -function Ayt(t) { +function Lyt(t) { return t == null ? [] : Array.isArray(t) ? t : Array.from(t); } -function Lyt() { +function Ryt() { return []; } -function zie(t) { - return t == null ? Lyt : function() { +function Vie(t) { + return t == null ? Ryt : function() { return this.querySelectorAll(t); }; } -function Ryt(t) { +function Myt(t) { return function() { - return Ayt(t.apply(this, arguments)); + return Lyt(t.apply(this, arguments)); }; } -function Myt(t) { - typeof t == "function" ? t = Ryt(t) : t = zie(t); +function Dyt(t) { + typeof t == "function" ? t = Myt(t) : t = Vie(t); for (var e = this._groups, r = e.length, n = [], i = [], s = 0; s < r; ++s) for (var a = e[s], o = a.length, l, u = 0; u < o; ++u) (l = a[u]) && (n.push(t.call(l, l.__data__, u, a)), i.push(l)); return new uo(n, i); } -function Vie(t) { +function Uie(t) { return function() { return this.matches(t); }; } -function Uie(t) { +function qie(t) { return function(e) { return e.matches(t); }; } -var Dyt = Array.prototype.find; -function Nyt(t) { +var Nyt = Array.prototype.find; +function Iyt(t) { return function() { - return Dyt.call(this.children, t); + return Nyt.call(this.children, t); }; } -function Iyt() { +function Pyt() { return this.firstElementChild; } -function Pyt(t) { - return this.select(t == null ? Iyt : Nyt(typeof t == "function" ? t : Uie(t))); +function $yt(t) { + return this.select(t == null ? Pyt : Iyt(typeof t == "function" ? t : qie(t))); } -var $yt = Array.prototype.filter; -function Byt() { +var Byt = Array.prototype.filter; +function Fyt() { return Array.from(this.children); } -function Fyt(t) { +function zyt(t) { return function() { - return $yt.call(this.children, t); + return Byt.call(this.children, t); }; } -function zyt(t) { - return this.selectAll(t == null ? Byt : Fyt(typeof t == "function" ? t : Uie(t))); -} function Vyt(t) { - typeof t != "function" && (t = Vie(t)); + return this.selectAll(t == null ? Fyt : zyt(typeof t == "function" ? t : qie(t))); +} +function Uyt(t) { + typeof t != "function" && (t = Uie(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = [], l, u = 0; u < a; ++u) (l = s[u]) && t.call(l, l.__data__, u, s) && o.push(l); return new uo(n, this._parents); } -function qie(t) { +function Qie(t) { return new Array(t.length); } -function Uyt() { - return new uo(this._enter || this._groups.map(qie), this._parents); +function qyt() { + return new uo(this._enter || this._groups.map(Qie), this._parents); } function b3(t, e) { this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e; @@ -36760,18 +36760,18 @@ b3.prototype = { return this._parent.querySelectorAll(t); } }; -function qyt(t) { +function Qyt(t) { return function() { return t; }; } -function Qyt(t, e, r, n, i, s) { +function Yyt(t, e, r, n, i, s) { for (var a = 0, o, l = e.length, u = s.length; a < u; ++a) (o = e[a]) ? (o.__data__ = s[a], n[a] = o) : r[a] = new b3(t, s[a]); for (; a < l; ++a) (o = e[a]) && (i[a] = o); } -function Yyt(t, e, r, n, i, s, a) { +function Wyt(t, e, r, n, i, s, a) { var o, l, u = /* @__PURE__ */ new Map(), h = e.length, f = s.length, d = new Array(h), p; for (o = 0; o < h; ++o) (l = e[o]) && (d[o] = p = a.call(l, l.__data__, o, e) + "", u.has(p) ? i[o] = l : u.set(p, l)); @@ -36780,16 +36780,16 @@ function Yyt(t, e, r, n, i, s, a) { for (o = 0; o < h; ++o) (l = e[o]) && u.get(d[o]) === l && (i[o] = l); } -function Wyt(t) { +function Gyt(t) { return t.__data__; } -function Gyt(t, e) { +function Hyt(t, e) { if (!arguments.length) - return Array.from(this, Wyt); - var r = e ? Yyt : Qyt, n = this._parents, i = this._groups; - typeof t != "function" && (t = qyt(t)); + return Array.from(this, Gyt); + var r = e ? Wyt : Yyt, n = this._parents, i = this._groups; + typeof t != "function" && (t = Qyt(t)); for (var s = i.length, a = new Array(s), o = new Array(s), l = new Array(s), u = 0; u < s; ++u) { - var h = n[u], f = i[u], d = f.length, p = Hyt(t.call(h, h && h.__data__, u, n)), g = p.length, m = o[u] = new Array(g), v = a[u] = new Array(g), y = l[u] = new Array(d); + var h = n[u], f = i[u], d = f.length, p = Xyt(t.call(h, h && h.__data__, u, n)), g = p.length, m = o[u] = new Array(g), v = a[u] = new Array(g), y = l[u] = new Array(d); r(h, f, m, v, y, p, e); for (var b = 0, w = 0, O, S; b < g; ++b) if (O = m[b]) { @@ -36800,17 +36800,17 @@ function Gyt(t, e) { } return a = new uo(a, n), a._enter = o, a._exit = l, a; } -function Hyt(t) { +function Xyt(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function Xyt() { - return new uo(this._exit || this._groups.map(qie), this._parents); +function Zyt() { + return new uo(this._exit || this._groups.map(Qie), this._parents); } -function Zyt(t, e, r) { +function jyt(t, e, r) { var n = this.enter(), i = this, s = this.exit(); return typeof t == "function" ? (n = t(n), n && (n = n.selection())) : n = n.append(t + ""), e != null && (i = e(i), i && (i = i.selection())), r == null ? s.remove() : r(s), n && i ? n.merge(i).order() : i; } -function jyt(t) { +function Kyt(t) { for (var e = t.selection ? t.selection() : t, r = this._groups, n = e._groups, i = r.length, s = n.length, a = Math.min(i, s), o = new Array(i), l = 0; l < a; ++l) for (var u = r[l], h = n[l], f = u.length, d = o[l] = new Array(f), p, g = 0; g < f; ++g) (p = u[g] || h[g]) && (d[g] = p); @@ -36818,14 +36818,14 @@ function jyt(t) { o[l] = r[l]; return new uo(o, this._parents); } -function Kyt() { +function Jyt() { for (var t = this._groups, e = -1, r = t.length; ++e < r; ) for (var n = t[e], i = n.length - 1, s = n[i], a; --i >= 0; ) (a = n[i]) && (s && a.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(a, s), s = a); return this; } -function Jyt(t) { - t || (t = e2t); +function e2t(t) { + t || (t = t2t); function e(f, d) { return f && d ? t(f.__data__, d.__data__) : !f - !d; } @@ -36836,17 +36836,17 @@ function Jyt(t) { } return new uo(i, this._parents).order(); } -function e2t(t, e) { +function t2t(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function t2t() { +function r2t() { var t = arguments[0]; return arguments[0] = this, t.apply(null, arguments), this; } -function r2t() { +function n2t() { return Array.from(this); } -function n2t() { +function i2t() { for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, s = n.length; i < s; ++i) { var a = n[i]; @@ -36855,115 +36855,115 @@ function n2t() { } return null; } -function i2t() { +function s2t() { let t = 0; for (const e of this) ++t; return t; } -function s2t() { +function a2t() { return !this.node(); } -function a2t(t) { +function o2t(t) { for (var e = this._groups, r = 0, n = e.length; r < n; ++r) for (var i = e[r], s = 0, a = i.length, o; s < a; ++s) (o = i[s]) && t.call(o, o.__data__, s, i); return this; } -function o2t(t) { +function l2t(t) { return function() { this.removeAttribute(t); }; } -function l2t(t) { +function c2t(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function c2t(t, e) { +function u2t(t, e) { return function() { this.setAttribute(t, e); }; } -function u2t(t, e) { +function h2t(t, e) { return function() { this.setAttributeNS(t.space, t.local, e); }; } -function h2t(t, e) { +function f2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttribute(t) : this.setAttribute(t, r); }; } -function f2t(t, e) { +function d2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, r); }; } -function d2t(t, e) { - var r = xT(t); +function p2t(t, e) { + var r = wT(t); if (arguments.length < 2) { var n = this.node(); return r.local ? n.getAttributeNS(r.space, r.local) : n.getAttribute(r); } - return this.each((e == null ? r.local ? l2t : o2t : typeof e == "function" ? r.local ? f2t : h2t : r.local ? u2t : c2t)(r, e)); + return this.each((e == null ? r.local ? c2t : l2t : typeof e == "function" ? r.local ? d2t : f2t : r.local ? h2t : u2t)(r, e)); } -function Qie(t) { +function Yie(t) { return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView; } -function p2t(t) { +function g2t(t) { return function() { this.style.removeProperty(t); }; } -function g2t(t, e, r) { +function m2t(t, e, r) { return function() { this.style.setProperty(t, e, r); }; } -function m2t(t, e, r) { +function v2t(t, e, r) { return function() { var n = e.apply(this, arguments); n == null ? this.style.removeProperty(t) : this.style.setProperty(t, n, r); }; } -function v2t(t, e, r) { - return arguments.length > 1 ? this.each((e == null ? p2t : typeof e == "function" ? m2t : g2t)(t, e, r == null ? "" : r)) : Wg(this.node(), t); +function y2t(t, e, r) { + return arguments.length > 1 ? this.each((e == null ? g2t : typeof e == "function" ? v2t : m2t)(t, e, r == null ? "" : r)) : Wg(this.node(), t); } function Wg(t, e) { - return t.style.getPropertyValue(e) || Qie(t).getComputedStyle(t, null).getPropertyValue(e); + return t.style.getPropertyValue(e) || Yie(t).getComputedStyle(t, null).getPropertyValue(e); } -function y2t(t) { +function b2t(t) { return function() { delete this[t]; }; } -function b2t(t, e) { +function x2t(t, e) { return function() { this[t] = e; }; } -function x2t(t, e) { +function w2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? delete this[t] : this[t] = r; }; } -function w2t(t, e) { - return arguments.length > 1 ? this.each((e == null ? y2t : typeof e == "function" ? x2t : b2t)(t, e)) : this.node()[t]; +function O2t(t, e) { + return arguments.length > 1 ? this.each((e == null ? b2t : typeof e == "function" ? w2t : x2t)(t, e)) : this.node()[t]; } -function Yie(t) { +function Wie(t) { return t.trim().split(/^|\s+/); } -function SD(t) { - return t.classList || new Wie(t); +function TD(t) { + return t.classList || new Gie(t); } -function Wie(t) { - this._node = t, this._names = Yie(t.getAttribute("class") || ""); +function Gie(t) { + this._node = t, this._names = Wie(t.getAttribute("class") || ""); } -Wie.prototype = { +Gie.prototype = { add: function(t) { var e = this._names.indexOf(t); e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" "))); @@ -36976,133 +36976,133 @@ Wie.prototype = { return this._names.indexOf(t) >= 0; } }; -function Gie(t, e) { - for (var r = SD(t), n = -1, i = e.length; ++n < i; ) +function Hie(t, e) { + for (var r = TD(t), n = -1, i = e.length; ++n < i; ) r.add(e[n]); } -function Hie(t, e) { - for (var r = SD(t), n = -1, i = e.length; ++n < i; ) +function Xie(t, e) { + for (var r = TD(t), n = -1, i = e.length; ++n < i; ) r.remove(e[n]); } -function O2t(t) { - return function() { - Gie(this, t); - }; -} function k2t(t) { return function() { Hie(this, t); }; } -function S2t(t, e) { +function S2t(t) { return function() { - (e.apply(this, arguments) ? Gie : Hie)(this, t); + Xie(this, t); }; } function T2t(t, e) { - var r = Yie(t + ""); + return function() { + (e.apply(this, arguments) ? Hie : Xie)(this, t); + }; +} +function C2t(t, e) { + var r = Wie(t + ""); if (arguments.length < 2) { - for (var n = SD(this.node()), i = -1, s = r.length; ++i < s; ) + for (var n = TD(this.node()), i = -1, s = r.length; ++i < s; ) if (!n.contains(r[i])) return !1; return !0; } - return this.each((typeof e == "function" ? S2t : e ? O2t : k2t)(r, e)); + return this.each((typeof e == "function" ? T2t : e ? k2t : S2t)(r, e)); } -function C2t() { +function E2t() { this.textContent = ""; } -function E2t(t) { +function _2t(t) { return function() { this.textContent = t; }; } -function _2t(t) { +function A2t(t) { return function() { var e = t.apply(this, arguments); this.textContent = e == null ? "" : e; }; } -function A2t(t) { - return arguments.length ? this.each(t == null ? C2t : (typeof t == "function" ? _2t : E2t)(t)) : this.node().textContent; +function L2t(t) { + return arguments.length ? this.each(t == null ? E2t : (typeof t == "function" ? A2t : _2t)(t)) : this.node().textContent; } -function L2t() { +function R2t() { this.innerHTML = ""; } -function R2t(t) { +function M2t(t) { return function() { this.innerHTML = t; }; } -function M2t(t) { +function D2t(t) { return function() { var e = t.apply(this, arguments); this.innerHTML = e == null ? "" : e; }; } -function D2t(t) { - return arguments.length ? this.each(t == null ? L2t : (typeof t == "function" ? M2t : R2t)(t)) : this.node().innerHTML; -} -function N2t() { - this.nextSibling && this.parentNode.appendChild(this); +function N2t(t) { + return arguments.length ? this.each(t == null ? R2t : (typeof t == "function" ? D2t : M2t)(t)) : this.node().innerHTML; } function I2t() { - return this.each(N2t); + this.nextSibling && this.parentNode.appendChild(this); } function P2t() { - this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); + return this.each(I2t); } function $2t() { - return this.each(P2t); + this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); +} +function B2t() { + return this.each($2t); } -function B2t(t) { - var e = typeof t == "function" ? t : Fie(t); +function F2t(t) { + var e = typeof t == "function" ? t : zie(t); return this.select(function() { return this.appendChild(e.apply(this, arguments)); }); } -function F2t() { +function z2t() { return null; } -function z2t(t, e) { - var r = typeof t == "function" ? t : Fie(t), n = e == null ? F2t : typeof e == "function" ? e : kD(e); +function V2t(t, e) { + var r = typeof t == "function" ? t : zie(t), n = e == null ? z2t : typeof e == "function" ? e : SD(e); return this.select(function() { return this.insertBefore(r.apply(this, arguments), n.apply(this, arguments) || null); }); } -function V2t() { +function U2t() { var t = this.parentNode; t && t.removeChild(this); } -function U2t() { - return this.each(V2t); -} function q2t() { + return this.each(U2t); +} +function Q2t() { var t = this.cloneNode(!1), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function Q2t() { +function Y2t() { var t = this.cloneNode(!0), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function Y2t(t) { - return this.select(t ? Q2t : q2t); -} function W2t(t) { - return arguments.length ? this.property("__data__", t) : this.node().__data__; + return this.select(t ? Y2t : Q2t); } function G2t(t) { + return arguments.length ? this.property("__data__", t) : this.node().__data__; +} +function H2t(t) { return function(e) { t.call(this, e, this.__data__); }; } -function H2t(t) { +function X2t(t) { return t.trim().split(/^|\s+/).map(function(e) { var r = "", n = e.indexOf("."); return n >= 0 && (r = e.slice(n + 1), e = e.slice(0, n)), { type: e, name: r }; }); } -function X2t(t) { +function Z2t(t) { return function() { var e = this.__on; if (!!e) { @@ -37112,9 +37112,9 @@ function X2t(t) { } }; } -function Z2t(t, e, r) { +function j2t(t, e, r) { return function() { - var n = this.__on, i, s = G2t(e); + var n = this.__on, i, s = H2t(e); if (n) { for (var a = 0, o = n.length; a < o; ++a) if ((i = n[a]).type === t.type && i.name === t.name) { @@ -37125,8 +37125,8 @@ function Z2t(t, e, r) { this.addEventListener(t.type, s, r), i = { type: t.type, name: t.name, value: e, listener: s, options: r }, n ? n.push(i) : this.__on = [i]; }; } -function j2t(t, e, r) { - var n = H2t(t + ""), i, s = n.length, a; +function K2t(t, e, r) { + var n = X2t(t + ""), i, s = n.length, a; if (arguments.length < 2) { var o = this.node().__on; if (o) { @@ -37137,87 +37137,87 @@ function j2t(t, e, r) { } return; } - for (o = e ? Z2t : X2t, i = 0; i < s; ++i) + for (o = e ? j2t : Z2t, i = 0; i < s; ++i) this.each(o(n[i], e, r)); return this; } -function Xie(t, e, r) { - var n = Qie(t), i = n.CustomEvent; +function Zie(t, e, r) { + var n = Yie(t), i = n.CustomEvent; typeof i == "function" ? i = new i(e, r) : (i = n.document.createEvent("Event"), r ? (i.initEvent(e, r.bubbles, r.cancelable), i.detail = r.detail) : i.initEvent(e, !1, !1)), t.dispatchEvent(i); } -function K2t(t, e) { +function J2t(t, e) { return function() { - return Xie(this, t, e); + return Zie(this, t, e); }; } -function J2t(t, e) { +function ebt(t, e) { return function() { - return Xie(this, t, e.apply(this, arguments)); + return Zie(this, t, e.apply(this, arguments)); }; } -function ebt(t, e) { - return this.each((typeof e == "function" ? J2t : K2t)(t, e)); +function tbt(t, e) { + return this.each((typeof e == "function" ? ebt : J2t)(t, e)); } -function* tbt() { +function* rbt() { for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, s = n.length, a; i < s; ++i) (a = n[i]) && (yield a); } -var Zie = [null]; +var jie = [null]; function uo(t, e) { this._groups = t, this._parents = e; } function lx() { - return new uo([[document.documentElement]], Zie); + return new uo([[document.documentElement]], jie); } -function rbt() { +function nbt() { return this; } uo.prototype = lx.prototype = { constructor: uo, - select: _yt, - selectAll: Myt, - selectChild: Pyt, - selectChildren: zyt, - filter: Vyt, - data: Gyt, - enter: Uyt, - exit: Xyt, - join: Zyt, - merge: jyt, - selection: rbt, - order: Kyt, - sort: Jyt, - call: t2t, - nodes: r2t, - node: n2t, - size: i2t, - empty: s2t, - each: a2t, - attr: d2t, - style: v2t, - property: w2t, - classed: T2t, - text: A2t, - html: D2t, - raise: I2t, - lower: $2t, - append: B2t, - insert: z2t, - remove: U2t, - clone: Y2t, - datum: W2t, - on: j2t, - dispatch: ebt, - [Symbol.iterator]: tbt + select: Ayt, + selectAll: Dyt, + selectChild: $yt, + selectChildren: Vyt, + filter: Uyt, + data: Hyt, + enter: qyt, + exit: Zyt, + join: jyt, + merge: Kyt, + selection: nbt, + order: Jyt, + sort: e2t, + call: r2t, + nodes: n2t, + node: i2t, + size: s2t, + empty: a2t, + each: o2t, + attr: p2t, + style: y2t, + property: O2t, + classed: C2t, + text: L2t, + html: N2t, + raise: P2t, + lower: B2t, + append: F2t, + insert: V2t, + remove: q2t, + clone: W2t, + datum: G2t, + on: K2t, + dispatch: tbt, + [Symbol.iterator]: rbt }; function et(t) { - return typeof t == "string" ? new uo([[document.querySelector(t)]], [document.documentElement]) : new uo([[t]], Zie); + return typeof t == "string" ? new uo([[document.querySelector(t)]], [document.documentElement]) : new uo([[t]], jie); } function cx(t, e, r) { t.prototype = e.prototype = r, r.constructor = t; } -function wT(t, e) { +function OT(t, e) { var r = Object.create(t.prototype); for (var n in e) r[n] = e[n]; @@ -37225,7 +37225,7 @@ function wT(t, e) { } function z0() { } -var s2 = 0.7, x3 = 1 / s2, tg = "\\s*([+-]?\\d+)\\s*", a2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mc = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", nbt = /^#([0-9a-f]{3,8})$/, ibt = new RegExp(`^rgb\\(${tg},${tg},${tg}\\)$`), sbt = new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`), abt = new RegExp(`^rgba\\(${tg},${tg},${tg},${a2}\\)$`), obt = new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${a2}\\)$`), lbt = new RegExp(`^hsl\\(${a2},${Mc},${Mc}\\)$`), cbt = new RegExp(`^hsla\\(${a2},${Mc},${Mc},${a2}\\)$`), _U = { +var s2 = 0.7, x3 = 1 / s2, tg = "\\s*([+-]?\\d+)\\s*", a2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mc = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ibt = /^#([0-9a-f]{3,8})$/, sbt = new RegExp(`^rgb\\(${tg},${tg},${tg}\\)$`), abt = new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`), obt = new RegExp(`^rgba\\(${tg},${tg},${tg},${a2}\\)$`), lbt = new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${a2}\\)$`), cbt = new RegExp(`^hsl\\(${a2},${Mc},${Mc}\\)$`), ubt = new RegExp(`^hsla\\(${a2},${Mc},${Mc},${a2}\\)$`), _U = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -37384,26 +37384,26 @@ cx(z0, n0, { }, hex: AU, formatHex: AU, - formatHex8: ubt, - formatHsl: hbt, + formatHex8: hbt, + formatHsl: fbt, formatRgb: LU, toString: LU }); function AU() { return this.rgb().formatHex(); } -function ubt() { +function hbt() { return this.rgb().formatHex8(); } -function hbt() { - return Kie(this).formatHsl(); +function fbt() { + return Jie(this).formatHsl(); } function LU() { return this.rgb().formatRgb(); } function n0(t) { var e, r; - return t = (t + "").trim().toLowerCase(), (e = nbt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? RU(e) : r === 3 ? new Is(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? Hw(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? Hw(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = ibt.exec(t)) ? new Is(e[1], e[2], e[3], 1) : (e = sbt.exec(t)) ? new Is(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = abt.exec(t)) ? Hw(e[1], e[2], e[3], e[4]) : (e = obt.exec(t)) ? Hw(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = lbt.exec(t)) ? NU(e[1], e[2] / 100, e[3] / 100, 1) : (e = cbt.exec(t)) ? NU(e[1], e[2] / 100, e[3] / 100, e[4]) : _U.hasOwnProperty(t) ? RU(_U[t]) : t === "transparent" ? new Is(NaN, NaN, NaN, 0) : null; + return t = (t + "").trim().toLowerCase(), (e = ibt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? RU(e) : r === 3 ? new Is(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? Hw(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? Hw(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = sbt.exec(t)) ? new Is(e[1], e[2], e[3], 1) : (e = abt.exec(t)) ? new Is(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = obt.exec(t)) ? Hw(e[1], e[2], e[3], e[4]) : (e = lbt.exec(t)) ? Hw(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = cbt.exec(t)) ? NU(e[1], e[2] / 100, e[3] / 100, 1) : (e = ubt.exec(t)) ? NU(e[1], e[2] / 100, e[3] / 100, e[4]) : _U.hasOwnProperty(t) ? RU(_U[t]) : t === "transparent" ? new Is(NaN, NaN, NaN, 0) : null; } function RU(t) { return new Is(t >> 16 & 255, t >> 8 & 255, t & 255, 1); @@ -37411,16 +37411,16 @@ function RU(t) { function Hw(t, e, r, n) { return n <= 0 && (t = e = r = NaN), new Is(t, e, r, n); } -function jie(t) { +function Kie(t) { return t instanceof z0 || (t = n0(t)), t ? (t = t.rgb(), new Is(t.r, t.g, t.b, t.opacity)) : new Is(); } -function T8(t, e, r, n) { - return arguments.length === 1 ? jie(t) : new Is(t, e, r, n == null ? 1 : n); +function C8(t, e, r, n) { + return arguments.length === 1 ? Kie(t) : new Is(t, e, r, n == null ? 1 : n); } function Is(t, e, r, n) { this.r = +t, this.g = +e, this.b = +r, this.opacity = +n; } -cx(Is, T8, wT(z0, { +cx(Is, C8, OT(z0, { brighter(t) { return t = t == null ? x3 : Math.pow(x3, t), new Is(this.r * t, this.g * t, this.b * t, this.opacity); }, @@ -37438,14 +37438,14 @@ cx(Is, T8, wT(z0, { }, hex: MU, formatHex: MU, - formatHex8: fbt, + formatHex8: dbt, formatRgb: DU, toString: DU })); function MU() { return `#${Rd(this.r)}${Rd(this.g)}${Rd(this.b)}`; } -function fbt() { +function dbt() { return `#${Rd(this.r)}${Rd(this.g)}${Rd(this.b)}${Rd((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function DU() { @@ -37464,7 +37464,7 @@ function Rd(t) { function NU(t, e, r, n) { return n <= 0 ? t = e = r = NaN : r <= 0 || r >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new vl(t, e, r, n); } -function Kie(t) { +function Jie(t) { if (t instanceof vl) return new vl(t.h, t.s, t.l, t.opacity); if (t instanceof z0 || (t = n0(t)), !t) @@ -37475,13 +37475,13 @@ function Kie(t) { var e = t.r / 255, r = t.g / 255, n = t.b / 255, i = Math.min(e, r, n), s = Math.max(e, r, n), a = NaN, o = s - i, l = (s + i) / 2; return o ? (e === s ? a = (r - n) / o + (r < n) * 6 : r === s ? a = (n - e) / o + 2 : a = (e - r) / o + 4, o /= l < 0.5 ? s + i : 2 - s - i, a *= 60) : o = l > 0 && l < 1 ? 0 : a, new vl(a, o, l, t.opacity); } -function dbt(t, e, r, n) { - return arguments.length === 1 ? Kie(t) : new vl(t, e, r, n == null ? 1 : n); +function pbt(t, e, r, n) { + return arguments.length === 1 ? Jie(t) : new vl(t, e, r, n == null ? 1 : n); } function vl(t, e, r, n) { this.h = +t, this.s = +e, this.l = +r, this.opacity = +n; } -cx(vl, dbt, wT(z0, { +cx(vl, pbt, OT(z0, { brighter(t) { return t = t == null ? x3 : Math.pow(x3, t), new vl(this.h, this.s, this.l * t, this.opacity); }, @@ -37491,9 +37491,9 @@ cx(vl, dbt, wT(z0, { rgb() { var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, r = this.l, n = r + (r < 0.5 ? r : 1 - r) * e, i = 2 * r - n; return new Is( - I6(t >= 240 ? t - 240 : t + 120, i, n), - I6(t, i, n), - I6(t < 120 ? t + 240 : t - 120, i, n), + P6(t >= 240 ? t - 240 : t + 120, i, n), + P6(t, i, n), + P6(t < 120 ? t + 240 : t - 120, i, n), this.opacity ); }, @@ -37514,26 +37514,26 @@ function IU(t) { function Xw(t) { return Math.max(0, Math.min(1, t || 0)); } -function I6(t, e, r) { +function P6(t, e, r) { return (t < 60 ? e + (r - e) * t / 60 : t < 180 ? r : t < 240 ? e + (r - e) * (240 - t) / 60 : e) * 255; } -const pbt = Math.PI / 180, gbt = 180 / Math.PI, O3 = 18, Jie = 0.96422, ese = 1, tse = 0.82521, rse = 4 / 29, rg = 6 / 29, nse = 3 * rg * rg, mbt = rg * rg * rg; -function ise(t) { +const gbt = Math.PI / 180, mbt = 180 / Math.PI, O3 = 18, ese = 0.96422, tse = 1, rse = 0.82521, nse = 4 / 29, rg = 6 / 29, ise = 3 * rg * rg, vbt = rg * rg * rg; +function sse(t) { if (t instanceof Dc) return new Dc(t.l, t.a, t.b, t.opacity); if (t instanceof bu) - return sse(t); - t instanceof Is || (t = jie(t)); - var e = F6(t.r), r = F6(t.g), n = F6(t.b), i = P6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / ese), s, a; - return e === r && r === n ? s = a = i : (s = P6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / Jie), a = P6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / tse)), new Dc(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); + return ase(t); + t instanceof Is || (t = Kie(t)); + var e = z6(t.r), r = z6(t.g), n = z6(t.b), i = $6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / tse), s, a; + return e === r && r === n ? s = a = i : (s = $6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / ese), a = $6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / rse)), new Dc(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); } -function vbt(t, e, r, n) { - return arguments.length === 1 ? ise(t) : new Dc(t, e, r, n == null ? 1 : n); +function ybt(t, e, r, n) { + return arguments.length === 1 ? sse(t) : new Dc(t, e, r, n == null ? 1 : n); } function Dc(t, e, r, n) { this.l = +t, this.a = +e, this.b = +r, this.opacity = +n; } -cx(Dc, vbt, wT(z0, { +cx(Dc, ybt, OT(z0, { brighter(t) { return new Dc(this.l + O3 * (t == null ? 1 : t), this.a, this.b, this.opacity); }, @@ -37542,47 +37542,47 @@ cx(Dc, vbt, wT(z0, { }, rgb() { var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, r = isNaN(this.b) ? t : t - this.b / 200; - return e = Jie * $6(e), t = ese * $6(t), r = tse * $6(r), new Is( - B6(3.1338561 * e - 1.6168667 * t - 0.4906146 * r), - B6(-0.9787684 * e + 1.9161415 * t + 0.033454 * r), - B6(0.0719453 * e - 0.2289914 * t + 1.4052427 * r), + return e = ese * B6(e), t = tse * B6(t), r = rse * B6(r), new Is( + F6(3.1338561 * e - 1.6168667 * t - 0.4906146 * r), + F6(-0.9787684 * e + 1.9161415 * t + 0.033454 * r), + F6(0.0719453 * e - 0.2289914 * t + 1.4052427 * r), this.opacity ); } })); -function P6(t) { - return t > mbt ? Math.pow(t, 1 / 3) : t / nse + rse; -} function $6(t) { - return t > rg ? t * t * t : nse * (t - rse); + return t > vbt ? Math.pow(t, 1 / 3) : t / ise + nse; } function B6(t) { - return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055); + return t > rg ? t * t * t : ise * (t - nse); } function F6(t) { + return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055); +} +function z6(t) { return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4); } -function ybt(t) { +function bbt(t) { if (t instanceof bu) return new bu(t.h, t.c, t.l, t.opacity); - if (t instanceof Dc || (t = ise(t)), t.a === 0 && t.b === 0) + if (t instanceof Dc || (t = sse(t)), t.a === 0 && t.b === 0) return new bu(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); - var e = Math.atan2(t.b, t.a) * gbt; + var e = Math.atan2(t.b, t.a) * mbt; return new bu(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity); } -function C8(t, e, r, n) { - return arguments.length === 1 ? ybt(t) : new bu(t, e, r, n == null ? 1 : n); +function E8(t, e, r, n) { + return arguments.length === 1 ? bbt(t) : new bu(t, e, r, n == null ? 1 : n); } function bu(t, e, r, n) { this.h = +t, this.c = +e, this.l = +r, this.opacity = +n; } -function sse(t) { +function ase(t) { if (isNaN(t.h)) return new Dc(t.l, 0, 0, t.opacity); - var e = t.h * pbt; + var e = t.h * gbt; return new Dc(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity); } -cx(bu, C8, wT(z0, { +cx(bu, E8, OT(z0, { brighter(t) { return new bu(this.h, this.c, this.l + O3 * (t == null ? 1 : t), this.opacity); }, @@ -37590,44 +37590,44 @@ cx(bu, C8, wT(z0, { return new bu(this.h, this.c, this.l - O3 * (t == null ? 1 : t), this.opacity); }, rgb() { - return sse(this).rgb(); + return ase(this).rgb(); } })); -const OT = (t) => () => t; -function ase(t, e) { +const kT = (t) => () => t; +function ose(t, e) { return function(r) { return t + r * e; }; } -function bbt(t, e, r) { +function xbt(t, e, r) { return t = Math.pow(t, r), e = Math.pow(e, r) - t, r = 1 / r, function(n) { return Math.pow(t + n * e, r); }; } -function xbt(t, e) { +function wbt(t, e) { var r = e - t; - return r ? ase(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : OT(isNaN(t) ? e : t); + return r ? ose(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : kT(isNaN(t) ? e : t); } -function wbt(t) { +function Obt(t) { return (t = +t) == 1 ? iy : function(e, r) { - return r - e ? bbt(e, r, t) : OT(isNaN(e) ? r : e); + return r - e ? xbt(e, r, t) : kT(isNaN(e) ? r : e); }; } function iy(t, e) { var r = e - t; - return r ? ase(t, r) : OT(isNaN(t) ? e : t); + return r ? ose(t, r) : kT(isNaN(t) ? e : t); } const k3 = function t(e) { - var r = wbt(e); + var r = Obt(e); function n(i, s) { - var a = r((i = T8(i)).r, (s = T8(s)).r), o = r(i.g, s.g), l = r(i.b, s.b), u = iy(i.opacity, s.opacity); + var a = r((i = C8(i)).r, (s = C8(s)).r), o = r(i.g, s.g), l = r(i.b, s.b), u = iy(i.opacity, s.opacity); return function(h) { return i.r = a(h), i.g = o(h), i.b = l(h), i.opacity = u(h), i + ""; }; } return n.gamma = t, n; }(1); -function Obt(t, e) { +function kbt(t, e) { e || (e = []); var r = t ? Math.min(e.length, t.length) : 0, n = e.slice(), i; return function(s) { @@ -37636,13 +37636,13 @@ function Obt(t, e) { return n; }; } -function kbt(t) { +function Sbt(t) { return ArrayBuffer.isView(t) && !(t instanceof DataView); } -function Sbt(t, e) { +function Tbt(t, e) { var r = e ? e.length : 0, n = t ? Math.min(r, t.length) : 0, i = new Array(n), s = new Array(r), a; for (a = 0; a < n; ++a) - i[a] = TD(t[a], e[a]); + i[a] = CD(t[a], e[a]); for (; a < r; ++a) s[a] = e[a]; return function(o) { @@ -37651,7 +37651,7 @@ function Sbt(t, e) { return s; }; } -function Tbt(t, e) { +function Cbt(t, e) { var r = new Date(); return t = +t, e = +e, function(n) { return r.setTime(t * (1 - n) + e * n), r; @@ -37662,48 +37662,48 @@ function gl(t, e) { return t * (1 - r) + e * r; }; } -function Cbt(t, e) { +function Ebt(t, e) { var r = {}, n = {}, i; (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {}); for (i in e) - i in t ? r[i] = TD(t[i], e[i]) : n[i] = e[i]; + i in t ? r[i] = CD(t[i], e[i]) : n[i] = e[i]; return function(s) { for (i in r) n[i] = r[i](s); return n; }; } -var E8 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, z6 = new RegExp(E8.source, "g"); -function Ebt(t) { +var _8 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, V6 = new RegExp(_8.source, "g"); +function _bt(t) { return function() { return t; }; } -function _bt(t) { +function Abt(t) { return function(e) { return t(e) + ""; }; } -function ose(t, e) { - var r = E8.lastIndex = z6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; - for (t = t + "", e = e + ""; (n = E8.exec(t)) && (i = z6.exec(e)); ) - (s = i.index) > r && (s = e.slice(r, s), o[a] ? o[a] += s : o[++a] = s), (n = n[0]) === (i = i[0]) ? o[a] ? o[a] += i : o[++a] = i : (o[++a] = null, l.push({ i: a, x: gl(n, i) })), r = z6.lastIndex; - return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? _bt(l[0].x) : Ebt(e) : (e = l.length, function(u) { +function lse(t, e) { + var r = _8.lastIndex = V6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; + for (t = t + "", e = e + ""; (n = _8.exec(t)) && (i = V6.exec(e)); ) + (s = i.index) > r && (s = e.slice(r, s), o[a] ? o[a] += s : o[++a] = s), (n = n[0]) === (i = i[0]) ? o[a] ? o[a] += i : o[++a] = i : (o[++a] = null, l.push({ i: a, x: gl(n, i) })), r = V6.lastIndex; + return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? Abt(l[0].x) : _bt(e) : (e = l.length, function(u) { for (var h = 0, f; h < e; ++h) o[(f = l[h]).i] = f.x(u); return o.join(""); }); } -function TD(t, e) { +function CD(t, e) { var r = typeof e, n; - return e == null || r === "boolean" ? OT(e) : (r === "number" ? gl : r === "string" ? (n = n0(e)) ? (e = n, k3) : ose : e instanceof n0 ? k3 : e instanceof Date ? Tbt : kbt(e) ? Obt : Array.isArray(e) ? Sbt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Cbt : gl)(t, e); + return e == null || r === "boolean" ? kT(e) : (r === "number" ? gl : r === "string" ? (n = n0(e)) ? (e = n, k3) : lse : e instanceof n0 ? k3 : e instanceof Date ? Cbt : Sbt(e) ? kbt : Array.isArray(e) ? Tbt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Ebt : gl)(t, e); } -function Abt(t, e) { +function Lbt(t, e) { return t = +t, e = +e, function(r) { return Math.round(t * (1 - r) + e * r); }; } -var PU = 180 / Math.PI, _8 = { +var PU = 180 / Math.PI, A8 = { translateX: 0, translateY: 0, rotate: 0, @@ -37711,7 +37711,7 @@ var PU = 180 / Math.PI, _8 = { scaleX: 1, scaleY: 1 }; -function lse(t, e, r, n, i, s) { +function cse(t, e, r, n, i, s) { var a, o, l; return (a = Math.sqrt(t * t + e * e)) && (t /= a, e /= a), (l = t * r + e * n) && (r -= t * l, n -= e * l), (o = Math.sqrt(r * r + n * n)) && (r /= o, n /= o, l /= o), t * n < e * r && (t = -t, e = -e, l = -l, a = -a), { translateX: i, @@ -37723,14 +37723,14 @@ function lse(t, e, r, n, i, s) { }; } var Zw; -function Lbt(t) { +function Rbt(t) { const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + ""); - return e.isIdentity ? _8 : lse(e.a, e.b, e.c, e.d, e.e, e.f); + return e.isIdentity ? A8 : cse(e.a, e.b, e.c, e.d, e.e, e.f); } -function Rbt(t) { - return t == null || (Zw || (Zw = document.createElementNS("http://www.w3.org/2000/svg", "g")), Zw.setAttribute("transform", t), !(t = Zw.transform.baseVal.consolidate())) ? _8 : (t = t.matrix, lse(t.a, t.b, t.c, t.d, t.e, t.f)); +function Mbt(t) { + return t == null || (Zw || (Zw = document.createElementNS("http://www.w3.org/2000/svg", "g")), Zw.setAttribute("transform", t), !(t = Zw.transform.baseVal.consolidate())) ? A8 : (t = t.matrix, cse(t.a, t.b, t.c, t.d, t.e, t.f)); } -function cse(t, e, r, n) { +function use(t, e, r, n) { function i(u) { return u.length ? u.pop() + " " : ""; } @@ -37763,71 +37763,71 @@ function cse(t, e, r, n) { }; }; } -var Mbt = cse(Lbt, "px, ", "px)", "deg)"), Dbt = cse(Rbt, ", ", ")", ")"); -function Nbt(t) { +var Dbt = use(Rbt, "px, ", "px)", "deg)"), Nbt = use(Mbt, ", ", ")", ")"); +function Ibt(t) { return function(e, r) { - var n = t((e = C8(e)).h, (r = C8(r)).h), i = iy(e.c, r.c), s = iy(e.l, r.l), a = iy(e.opacity, r.opacity); + var n = t((e = E8(e)).h, (r = E8(r)).h), i = iy(e.c, r.c), s = iy(e.l, r.l), a = iy(e.opacity, r.opacity); return function(o) { return e.h = n(o), e.c = i(o), e.l = s(o), e.opacity = a(o), e + ""; }; }; } -const Ibt = Nbt(xbt); -var Gg = 0, bv = 0, Um = 0, use = 1e3, S3, xv, T3 = 0, i0 = 0, kT = 0, o2 = typeof performance == "object" && performance.now ? performance : Date, hse = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { +const Pbt = Ibt(wbt); +var Gg = 0, bv = 0, Um = 0, hse = 1e3, S3, xv, T3 = 0, i0 = 0, ST = 0, o2 = typeof performance == "object" && performance.now ? performance : Date, fse = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { setTimeout(t, 17); }; -function CD() { - return i0 || (hse(Pbt), i0 = o2.now() + kT); +function ED() { + return i0 || (fse($bt), i0 = o2.now() + ST); } -function Pbt() { +function $bt() { i0 = 0; } function C3() { this._call = this._time = this._next = null; } -C3.prototype = fse.prototype = { +C3.prototype = dse.prototype = { constructor: C3, restart: function(t, e, r) { if (typeof t != "function") throw new TypeError("callback is not a function"); - r = (r == null ? CD() : +r) + (e == null ? 0 : +e), !this._next && xv !== this && (xv ? xv._next = this : S3 = this, xv = this), this._call = t, this._time = r, A8(); + r = (r == null ? ED() : +r) + (e == null ? 0 : +e), !this._next && xv !== this && (xv ? xv._next = this : S3 = this, xv = this), this._call = t, this._time = r, L8(); }, stop: function() { - this._call && (this._call = null, this._time = 1 / 0, A8()); + this._call && (this._call = null, this._time = 1 / 0, L8()); } }; -function fse(t, e, r) { +function dse(t, e, r) { var n = new C3(); return n.restart(t, e, r), n; } -function $bt() { - CD(), ++Gg; +function Bbt() { + ED(), ++Gg; for (var t = S3, e; t; ) (e = i0 - t._time) >= 0 && t._call.call(void 0, e), t = t._next; --Gg; } function $U() { - i0 = (T3 = o2.now()) + kT, Gg = bv = 0; + i0 = (T3 = o2.now()) + ST, Gg = bv = 0; try { - $bt(); + Bbt(); } finally { - Gg = 0, Fbt(), i0 = 0; + Gg = 0, zbt(), i0 = 0; } } -function Bbt() { +function Fbt() { var t = o2.now(), e = t - T3; - e > use && (kT -= e, T3 = t); + e > hse && (ST -= e, T3 = t); } -function Fbt() { +function zbt() { for (var t, e = S3, r, n = 1 / 0; e; ) e._call ? (n > e._time && (n = e._time), t = e, e = e._next) : (r = e._next, e._next = null, e = t ? t._next = r : S3 = r); - xv = t, A8(n); + xv = t, L8(n); } -function A8(t) { +function L8(t) { if (!Gg) { bv && (bv = clearTimeout(bv)); var e = t - i0; - e > 24 ? (t < 1 / 0 && (bv = setTimeout($U, t - o2.now() - kT)), Um && (Um = clearInterval(Um))) : (Um || (T3 = o2.now(), Um = setInterval(Bbt, use)), Gg = 1, hse($U)); + e > 24 ? (t < 1 / 0 && (bv = setTimeout($U, t - o2.now() - ST)), Um && (Um = clearInterval(Um))) : (Um || (T3 = o2.now(), Um = setInterval(Fbt, hse)), Gg = 1, fse($U)); } } function BU(t, e, r) { @@ -37836,30 +37836,30 @@ function BU(t, e, r) { n.stop(), t(i + e); }, e, r), n; } -var zbt = Bie("start", "end", "cancel", "interrupt"), Vbt = [], dse = 0, FU = 1, L8 = 2, R4 = 3, zU = 4, R8 = 5, M4 = 6; -function ST(t, e, r, n, i, s) { +var Vbt = Fie("start", "end", "cancel", "interrupt"), Ubt = [], pse = 0, FU = 1, R8 = 2, R4 = 3, zU = 4, M8 = 5, M4 = 6; +function TT(t, e, r, n, i, s) { var a = t.__transition; if (!a) t.__transition = {}; else if (r in a) return; - Ubt(t, r, { + qbt(t, r, { name: e, index: n, group: i, - on: zbt, - tween: Vbt, + on: Vbt, + tween: Ubt, time: s.time, delay: s.delay, duration: s.duration, ease: s.ease, timer: null, - state: dse + state: pse }); } -function ED(t, e) { +function _D(t, e) { var r = Wl(t, e); - if (r.state > dse) + if (r.state > pse) throw new Error("too late; already scheduled"); return r; } @@ -37875,9 +37875,9 @@ function Wl(t, e) { throw new Error("transition not found"); return r; } -function Ubt(t, e, r) { +function qbt(t, e, r) { var n = t.__transition, i; - n[e] = r, r.timer = fse(s, 0, r.time); + n[e] = r, r.timer = dse(s, 0, r.time); function s(u) { r.state = FU, r.timer.restart(a, r.delay, r.time), r.delay <= u && a(u - r.delay); } @@ -37893,16 +37893,16 @@ function Ubt(t, e, r) { } if (BU(function() { r.state === R4 && (r.state = zU, r.timer.restart(o, r.delay, r.time), o(u)); - }), r.state = L8, r.on.call("start", t, t.__data__, r.index, r.group), r.state === L8) { + }), r.state = R8, r.on.call("start", t, t.__data__, r.index, r.group), r.state === R8) { for (r.state = R4, i = new Array(d = r.tween.length), h = 0, f = -1; h < d; ++h) (p = r.tween[h].value.call(t, t.__data__, r.index, r.group)) && (i[++f] = p); i.length = f + 1; } } function o(u) { - for (var h = u < r.duration ? r.ease.call(null, u / r.duration) : (r.timer.restart(l), r.state = R8, 1), f = -1, d = i.length; ++f < d; ) + for (var h = u < r.duration ? r.ease.call(null, u / r.duration) : (r.timer.restart(l), r.state = M8, 1), f = -1, d = i.length; ++f < d; ) i[f].call(t, h); - r.state === R8 && (r.on.call("end", t, t.__data__, r.index, r.group), l()); + r.state === M8 && (r.on.call("end", t, t.__data__, r.index, r.group), l()); } function l() { r.state = M4, r.timer.stop(), delete n[e]; @@ -37911,7 +37911,7 @@ function Ubt(t, e, r) { delete t.__transition; } } -function qbt(t, e) { +function Qbt(t, e) { var r = t.__transition, n, i, s = !0, a; if (!!r) { e = e == null ? null : e + ""; @@ -37920,17 +37920,17 @@ function qbt(t, e) { s = !1; continue; } - i = n.state > L8 && n.state < R8, n.state = M4, n.timer.stop(), n.on.call(i ? "interrupt" : "cancel", t, t.__data__, n.index, n.group), delete r[a]; + i = n.state > R8 && n.state < M8, n.state = M4, n.timer.stop(), n.on.call(i ? "interrupt" : "cancel", t, t.__data__, n.index, n.group), delete r[a]; } s && delete t.__transition; } } -function Qbt(t) { +function Ybt(t) { return this.each(function() { - qbt(this, t); + Qbt(this, t); }); } -function Ybt(t, e) { +function Wbt(t, e) { var r, n; return function() { var i = Xc(this, t), s = i.tween; @@ -37945,7 +37945,7 @@ function Ybt(t, e) { i.tween = n; }; } -function Wbt(t, e, r) { +function Gbt(t, e, r) { var n, i; if (typeof r != "function") throw new Error(); @@ -37963,7 +37963,7 @@ function Wbt(t, e, r) { s.tween = i; }; } -function Gbt(t, e) { +function Hbt(t, e) { var r = this._id; if (t += "", arguments.length < 2) { for (var n = Wl(this.node(), r).tween, i = 0, s = n.length, a; i < s; ++i) @@ -37971,9 +37971,9 @@ function Gbt(t, e) { return a.value; return null; } - return this.each((e == null ? Ybt : Wbt)(r, t, e)); + return this.each((e == null ? Wbt : Gbt)(r, t, e)); } -function _D(t, e, r) { +function AD(t, e, r) { var n = t._id; return t.each(function() { var i = Xc(this, n); @@ -37982,79 +37982,79 @@ function _D(t, e, r) { return Wl(i, n).value[e]; }; } -function pse(t, e) { +function gse(t, e) { var r; - return (typeof e == "number" ? gl : e instanceof n0 ? k3 : (r = n0(e)) ? (e = r, k3) : ose)(t, e); + return (typeof e == "number" ? gl : e instanceof n0 ? k3 : (r = n0(e)) ? (e = r, k3) : lse)(t, e); } -function Hbt(t) { +function Xbt(t) { return function() { this.removeAttribute(t); }; } -function Xbt(t) { +function Zbt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function Zbt(t, e, r) { +function jbt(t, e, r) { var n, i = r + "", s; return function() { var a = this.getAttribute(t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function jbt(t, e, r) { +function Kbt(t, e, r) { var n, i = r + "", s; return function() { var a = this.getAttributeNS(t.space, t.local); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function Kbt(t, e, r) { +function Jbt(t, e, r) { var n, i, s; return function() { var a, o = r(this), l; return o == null ? void this.removeAttribute(t) : (a = this.getAttribute(t), l = o + "", a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o))); }; } -function Jbt(t, e, r) { +function ext(t, e, r) { var n, i, s; return function() { var a, o = r(this), l; return o == null ? void this.removeAttributeNS(t.space, t.local) : (a = this.getAttributeNS(t.space, t.local), l = o + "", a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o))); }; } -function ext(t, e) { - var r = xT(t), n = r === "transform" ? Dbt : pse; - return this.attrTween(t, typeof e == "function" ? (r.local ? Jbt : Kbt)(r, n, _D(this, "attr." + t, e)) : e == null ? (r.local ? Xbt : Hbt)(r) : (r.local ? jbt : Zbt)(r, n, e)); -} function txt(t, e) { + var r = wT(t), n = r === "transform" ? Nbt : gse; + return this.attrTween(t, typeof e == "function" ? (r.local ? ext : Jbt)(r, n, AD(this, "attr." + t, e)) : e == null ? (r.local ? Zbt : Xbt)(r) : (r.local ? Kbt : jbt)(r, n, e)); +} +function rxt(t, e) { return function(r) { this.setAttribute(t, e.call(this, r)); }; } -function rxt(t, e) { +function nxt(t, e) { return function(r) { this.setAttributeNS(t.space, t.local, e.call(this, r)); }; } -function nxt(t, e) { +function ixt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && rxt(t, s)), r; + return s !== n && (r = (n = s) && nxt(t, s)), r; } return i._value = e, i; } -function ixt(t, e) { +function sxt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && txt(t, s)), r; + return s !== n && (r = (n = s) && rxt(t, s)), r; } return i._value = e, i; } -function sxt(t, e) { +function axt(t, e) { var r = "attr." + t; if (arguments.length < 2) return (r = this.tween(r)) && r._value; @@ -38062,49 +38062,49 @@ function sxt(t, e) { return this.tween(r, null); if (typeof e != "function") throw new Error(); - var n = xT(t); - return this.tween(r, (n.local ? nxt : ixt)(n, e)); + var n = wT(t); + return this.tween(r, (n.local ? ixt : sxt)(n, e)); } -function axt(t, e) { +function oxt(t, e) { return function() { - ED(this, t).delay = +e.apply(this, arguments); + _D(this, t).delay = +e.apply(this, arguments); }; } -function oxt(t, e) { +function lxt(t, e) { return e = +e, function() { - ED(this, t).delay = e; + _D(this, t).delay = e; }; } -function lxt(t) { +function cxt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? axt : oxt)(e, t)) : Wl(this.node(), e).delay; + return arguments.length ? this.each((typeof t == "function" ? oxt : lxt)(e, t)) : Wl(this.node(), e).delay; } -function cxt(t, e) { +function uxt(t, e) { return function() { Xc(this, t).duration = +e.apply(this, arguments); }; } -function uxt(t, e) { +function hxt(t, e) { return e = +e, function() { Xc(this, t).duration = e; }; } -function hxt(t) { +function fxt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? cxt : uxt)(e, t)) : Wl(this.node(), e).duration; + return arguments.length ? this.each((typeof t == "function" ? uxt : hxt)(e, t)) : Wl(this.node(), e).duration; } -function fxt(t, e) { +function dxt(t, e) { if (typeof e != "function") throw new Error(); return function() { Xc(this, t).ease = e; }; } -function dxt(t) { +function pxt(t) { var e = this._id; - return arguments.length ? this.each(fxt(e, t)) : Wl(this.node(), e).ease; + return arguments.length ? this.each(dxt(e, t)) : Wl(this.node(), e).ease; } -function pxt(t, e) { +function gxt(t, e) { return function() { var r = e.apply(this, arguments); if (typeof r != "function") @@ -38112,19 +38112,19 @@ function pxt(t, e) { Xc(this, t).ease = r; }; } -function gxt(t) { +function mxt(t) { if (typeof t != "function") throw new Error(); - return this.each(pxt(this._id, t)); + return this.each(gxt(this._id, t)); } -function mxt(t) { - typeof t != "function" && (t = Vie(t)); +function vxt(t) { + typeof t != "function" && (t = Uie(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = [], l, u = 0; u < a; ++u) (l = s[u]) && t.call(l, l.__data__, u, s) && o.push(l); return new Uu(n, this._parents, this._name, this._id); } -function vxt(t) { +function yxt(t) { if (t._id !== this._id) throw new Error(); for (var e = this._groups, r = t._groups, n = e.length, i = r.length, s = Math.min(n, i), a = new Array(n), o = 0; o < s; ++o) @@ -38134,24 +38134,24 @@ function vxt(t) { a[o] = e[o]; return new Uu(a, this._parents, this._name, this._id); } -function yxt(t) { +function bxt(t) { return (t + "").trim().split(/^|\s+/).every(function(e) { var r = e.indexOf("."); return r >= 0 && (e = e.slice(0, r)), !e || e === "start"; }); } -function bxt(t, e, r) { - var n, i, s = yxt(e) ? ED : Xc; +function xxt(t, e, r) { + var n, i, s = bxt(e) ? _D : Xc; return function() { var a = s(this, t), o = a.on; o !== n && (i = (n = o).copy()).on(e, r), a.on = i; }; } -function xxt(t, e) { +function wxt(t, e) { var r = this._id; - return arguments.length < 2 ? Wl(this.node(), r).on.on(t) : this.each(bxt(r, t, e)); + return arguments.length < 2 ? Wl(this.node(), r).on.on(t) : this.each(xxt(r, t, e)); } -function wxt(t) { +function Oxt(t) { return function() { var e = this.parentNode; for (var r in this.__transition) @@ -38160,84 +38160,84 @@ function wxt(t) { e && e.removeChild(this); }; } -function Oxt() { - return this.on("end.remove", wxt(this._id)); +function kxt() { + return this.on("end.remove", Oxt(this._id)); } -function kxt(t) { +function Sxt(t) { var e = this._name, r = this._id; - typeof t != "function" && (t = kD(t)); + typeof t != "function" && (t = SD(t)); for (var n = this._groups, i = n.length, s = new Array(i), a = 0; a < i; ++a) for (var o = n[a], l = o.length, u = s[a] = new Array(l), h, f, d = 0; d < l; ++d) - (h = o[d]) && (f = t.call(h, h.__data__, d, o)) && ("__data__" in h && (f.__data__ = h.__data__), u[d] = f, ST(u[d], e, r, d, u, Wl(h, r))); + (h = o[d]) && (f = t.call(h, h.__data__, d, o)) && ("__data__" in h && (f.__data__ = h.__data__), u[d] = f, TT(u[d], e, r, d, u, Wl(h, r))); return new Uu(s, this._parents, e, r); } -function Sxt(t) { +function Txt(t) { var e = this._name, r = this._id; - typeof t != "function" && (t = zie(t)); + typeof t != "function" && (t = Vie(t)); for (var n = this._groups, i = n.length, s = [], a = [], o = 0; o < i; ++o) for (var l = n[o], u = l.length, h, f = 0; f < u; ++f) if (h = l[f]) { for (var d = t.call(h, h.__data__, f, l), p, g = Wl(h, r), m = 0, v = d.length; m < v; ++m) - (p = d[m]) && ST(p, e, r, m, d, g); + (p = d[m]) && TT(p, e, r, m, d, g); s.push(d), a.push(h); } return new Uu(s, a, e, r); } -var Txt = lx.prototype.constructor; -function Cxt() { - return new Txt(this._groups, this._parents); +var Cxt = lx.prototype.constructor; +function Ext() { + return new Cxt(this._groups, this._parents); } -function Ext(t, e) { +function _xt(t, e) { var r, n, i; return function() { var s = Wg(this, t), a = (this.style.removeProperty(t), Wg(this, t)); return s === a ? null : s === r && a === n ? i : i = e(r = s, n = a); }; } -function gse(t) { +function mse(t) { return function() { this.style.removeProperty(t); }; } -function _xt(t, e, r) { +function Axt(t, e, r) { var n, i = r + "", s; return function() { var a = Wg(this, t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function Axt(t, e, r) { +function Lxt(t, e, r) { var n, i, s; return function() { var a = Wg(this, t), o = r(this), l = o + ""; return o == null && (l = o = (this.style.removeProperty(t), Wg(this, t))), a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o)); }; } -function Lxt(t, e) { +function Rxt(t, e) { var r, n, i, s = "style." + e, a = "end." + s, o; return function() { - var l = Xc(this, t), u = l.on, h = l.value[s] == null ? o || (o = gse(e)) : void 0; + var l = Xc(this, t), u = l.on, h = l.value[s] == null ? o || (o = mse(e)) : void 0; (u !== r || i !== h) && (n = (r = u).copy()).on(a, i = h), l.on = n; }; } -function Rxt(t, e, r) { - var n = (t += "") == "transform" ? Mbt : pse; - return e == null ? this.styleTween(t, Ext(t, n)).on("end.style." + t, gse(t)) : typeof e == "function" ? this.styleTween(t, Axt(t, n, _D(this, "style." + t, e))).each(Lxt(this._id, t)) : this.styleTween(t, _xt(t, n, e), r).on("end.style." + t, null); -} function Mxt(t, e, r) { + var n = (t += "") == "transform" ? Dbt : gse; + return e == null ? this.styleTween(t, _xt(t, n)).on("end.style." + t, mse(t)) : typeof e == "function" ? this.styleTween(t, Lxt(t, n, AD(this, "style." + t, e))).each(Rxt(this._id, t)) : this.styleTween(t, Axt(t, n, e), r).on("end.style." + t, null); +} +function Dxt(t, e, r) { return function(n) { this.style.setProperty(t, e.call(this, n), r); }; } -function Dxt(t, e, r) { +function Nxt(t, e, r) { var n, i; function s() { var a = e.apply(this, arguments); - return a !== i && (n = (i = a) && Mxt(t, a, r)), n; + return a !== i && (n = (i = a) && Dxt(t, a, r)), n; } return s._value = e, s; } -function Nxt(t, e, r) { +function Ixt(t, e, r) { var n = "style." + (t += ""); if (arguments.length < 2) return (n = this.tween(n)) && n._value; @@ -38245,36 +38245,36 @@ function Nxt(t, e, r) { return this.tween(n, null); if (typeof e != "function") throw new Error(); - return this.tween(n, Dxt(t, e, r == null ? "" : r)); + return this.tween(n, Nxt(t, e, r == null ? "" : r)); } -function Ixt(t) { +function Pxt(t) { return function() { this.textContent = t; }; } -function Pxt(t) { +function $xt(t) { return function() { var e = t(this); this.textContent = e == null ? "" : e; }; } -function $xt(t) { - return this.tween("text", typeof t == "function" ? Pxt(_D(this, "text", t)) : Ixt(t == null ? "" : t + "")); -} function Bxt(t) { + return this.tween("text", typeof t == "function" ? $xt(AD(this, "text", t)) : Pxt(t == null ? "" : t + "")); +} +function Fxt(t) { return function(e) { this.textContent = t.call(this, e); }; } -function Fxt(t) { +function zxt(t) { var e, r; function n() { var i = t.apply(this, arguments); - return i !== r && (e = (r = i) && Bxt(i)), e; + return i !== r && (e = (r = i) && Fxt(i)), e; } return n._value = t, n; } -function zxt(t) { +function Vxt(t) { var e = "text"; if (arguments.length < 1) return (e = this.tween(e)) && e._value; @@ -38282,14 +38282,14 @@ function zxt(t) { return this.tween(e, null); if (typeof t != "function") throw new Error(); - return this.tween(e, Fxt(t)); + return this.tween(e, zxt(t)); } -function Vxt() { - for (var t = this._name, e = this._id, r = mse(), n = this._groups, i = n.length, s = 0; s < i; ++s) +function Uxt() { + for (var t = this._name, e = this._id, r = vse(), n = this._groups, i = n.length, s = 0; s < i; ++s) for (var a = n[s], o = a.length, l, u = 0; u < o; ++u) if (l = a[u]) { var h = Wl(l, e); - ST(l, t, r, u, a, { + TT(l, t, r, u, a, { time: h.time + h.delay + h.duration, delay: 0, duration: h.duration, @@ -38298,7 +38298,7 @@ function Vxt() { } return new Uu(n, this._parents, t, r); } -function Uxt() { +function qxt() { var t, e, r = this, n = r._id, i = r.size(); return new Promise(function(s, a) { var o = { value: a }, l = { value: function() { @@ -38310,83 +38310,83 @@ function Uxt() { }), i === 0 && s(); }); } -var qxt = 0; +var Qxt = 0; function Uu(t, e, r, n) { this._groups = t, this._parents = e, this._name = r, this._id = n; } -function mse() { - return ++qxt; +function vse() { + return ++Qxt; } var ou = lx.prototype; Uu.prototype = { constructor: Uu, - select: kxt, - selectAll: Sxt, + select: Sxt, + selectAll: Txt, selectChild: ou.selectChild, selectChildren: ou.selectChildren, - filter: mxt, - merge: vxt, - selection: Cxt, - transition: Vxt, + filter: vxt, + merge: yxt, + selection: Ext, + transition: Uxt, call: ou.call, nodes: ou.nodes, node: ou.node, size: ou.size, empty: ou.empty, each: ou.each, - on: xxt, - attr: ext, - attrTween: sxt, - style: Rxt, - styleTween: Nxt, - text: $xt, - textTween: zxt, - remove: Oxt, - tween: Gbt, - delay: lxt, - duration: hxt, - ease: dxt, - easeVarying: gxt, - end: Uxt, + on: wxt, + attr: txt, + attrTween: axt, + style: Mxt, + styleTween: Ixt, + text: Bxt, + textTween: Vxt, + remove: kxt, + tween: Hbt, + delay: cxt, + duration: fxt, + ease: pxt, + easeVarying: mxt, + end: qxt, [Symbol.iterator]: ou[Symbol.iterator] }; -function Qxt(t) { +function Yxt(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } -var Yxt = { +var Wxt = { time: null, delay: 0, duration: 250, - ease: Qxt + ease: Yxt }; -function Wxt(t, e) { +function Gxt(t, e) { for (var r; !(r = t.__transition) || !(r = r[e]); ) if (!(t = t.parentNode)) throw new Error(`transition ${e} not found`); return r; } -function Gxt(t) { +function Hxt(t) { var e, r; - t instanceof Uu ? (e = t._id, t = t._name) : (e = mse(), (r = Yxt).time = CD(), t = t == null ? null : t + ""); + t instanceof Uu ? (e = t._id, t = t._name) : (e = vse(), (r = Wxt).time = ED(), t = t == null ? null : t + ""); for (var n = this._groups, i = n.length, s = 0; s < i; ++s) for (var a = n[s], o = a.length, l, u = 0; u < o; ++u) - (l = a[u]) && ST(l, t, e, u, a, r || Wxt(l, e)); + (l = a[u]) && TT(l, t, e, u, a, r || Gxt(l, e)); return new Uu(n, this._parents, t, e); } -lx.prototype.interrupt = Qbt; -lx.prototype.transition = Gxt; -const M8 = Math.PI, D8 = 2 * M8, ad = 1e-6, Hxt = D8 - ad; -function vse(t) { +lx.prototype.interrupt = Ybt; +lx.prototype.transition = Hxt; +const D8 = Math.PI, N8 = 2 * D8, ad = 1e-6, Xxt = N8 - ad; +function yse(t) { this._ += t[0]; for (let e = 1, r = t.length; e < r; ++e) this._ += arguments[e] + t[e]; } -function Xxt(t) { +function Zxt(t) { let e = Math.floor(t); if (!(e >= 0)) throw new Error(`invalid digits: ${t}`); if (e > 15) - return vse; + return yse; const r = 10 ** e; return function(n) { this._ += n[0]; @@ -38394,9 +38394,9 @@ function Xxt(t) { this._ += Math.round(arguments[i] * r) / r + n[i]; }; } -class Zxt { +class jxt { constructor(e) { - this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? vse : Xxt(e); + this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? yse : Zxt(e); } moveTo(e, r) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}`; @@ -38423,7 +38423,7 @@ class Zxt { if (!(Math.abs(f * l - u * h) > ad) || !s) this._append`L${this._x1 = e},${this._y1 = r}`; else { - let p = n - a, g = i - o, m = l * l + u * u, v = p * p + g * g, y = Math.sqrt(m), b = Math.sqrt(d), w = s * Math.tan((M8 - Math.acos((m + d - v) / (2 * y * b))) / 2), O = w / b, S = w / y; + let p = n - a, g = i - o, m = l * l + u * u, v = p * p + g * g, y = Math.sqrt(m), b = Math.sqrt(d), w = s * Math.tan((D8 - Math.acos((m + d - v) / (2 * y * b))) / 2), O = w / b, S = w / y; Math.abs(O - 1) > ad && this._append`L${e + O * h},${r + O * f}`, this._append`A${s},${s},0,0,${+(f * p > h * g)},${this._x1 = e + S * l},${this._y1 = r + S * u}`; } } @@ -38431,7 +38431,7 @@ class Zxt { if (e = +e, r = +r, n = +n, a = !!a, n < 0) throw new Error(`negative radius: ${n}`); let o = n * Math.cos(i), l = n * Math.sin(i), u = e + o, h = r + l, f = 1 ^ a, d = a ? i - s : s - i; - this._x1 === null ? this._append`M${u},${h}` : (Math.abs(this._x1 - u) > ad || Math.abs(this._y1 - h) > ad) && this._append`L${u},${h}`, n && (d < 0 && (d = d % D8 + D8), d > Hxt ? this._append`A${n},${n},0,1,${f},${e - o},${r - l}A${n},${n},0,1,${f},${this._x1 = u},${this._y1 = h}` : d > ad && this._append`A${n},${n},0,${+(d >= M8)},${f},${this._x1 = e + n * Math.cos(s)},${this._y1 = r + n * Math.sin(s)}`); + this._x1 === null ? this._append`M${u},${h}` : (Math.abs(this._x1 - u) > ad || Math.abs(this._y1 - h) > ad) && this._append`L${u},${h}`, n && (d < 0 && (d = d % N8 + N8), d > Xxt ? this._append`A${n},${n},0,1,${f},${e - o},${r - l}A${n},${n},0,1,${f},${this._x1 = u},${this._y1 = h}` : d > ad && this._append`A${n},${n},0,${+(d >= D8)},${f},${this._x1 = e + n * Math.cos(s)},${this._y1 = r + n * Math.sin(s)}`); } rect(e, r, n, i) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}h${n = +n}v${+i}h${-n}Z`; @@ -38440,7 +38440,7 @@ class Zxt { return this._; } } -function jxt(t) { +function Kxt(t) { return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10); } function E3(t, e) { @@ -38455,26 +38455,26 @@ function E3(t, e) { function Hg(t) { return t = E3(Math.abs(t)), t ? t[1] : NaN; } -function Kxt(t, e) { +function Jxt(t, e) { return function(r, n) { for (var i = r.length, s = [], a = 0, o = t[0], l = 0; i > 0 && o > 0 && (l + o + 1 > n && (o = Math.max(1, n - l)), s.push(r.substring(i -= o, i + o)), !((l += o + 1) > n)); ) o = t[a = (a + 1) % t.length]; return s.reverse().join(e); }; } -function Jxt(t) { +function ewt(t) { return function(e) { return e.replace(/[0-9]/g, function(r) { return t[+r]; }); }; } -var ewt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; +var twt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function _3(t) { - if (!(e = ewt.exec(t))) + if (!(e = twt.exec(t))) throw new Error("invalid format: " + t); var e; - return new AD({ + return new LD({ fill: e[1], align: e[2], sign: e[3], @@ -38487,14 +38487,14 @@ function _3(t) { type: e[10] }); } -_3.prototype = AD.prototype; -function AD(t) { +_3.prototype = LD.prototype; +function LD(t) { this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + ""; } -AD.prototype.toString = function() { +LD.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; -function twt(t) { +function rwt(t) { e: for (var e = t.length, r = 1, n = -1, i; r < e; ++r) switch (t[r]) { @@ -38512,12 +38512,12 @@ function twt(t) { } return n > 0 ? t.slice(0, n) + t.slice(i + 1) : t; } -var yse; -function rwt(t, e) { +var bse; +function nwt(t, e) { var r = E3(t, e); if (!r) return t + ""; - var n = r[0], i = r[1], s = i - (yse = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = n.length; + var n = r[0], i = r[1], s = i - (bse = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = n.length; return s === a ? n : s > a ? n + new Array(s - a + 1).join("0") : s > 0 ? n.slice(0, s) + "." + n.slice(s) : "0." + new Array(1 - s).join("0") + E3(t, Math.max(0, e + s - 1))[0]; } function VU(t, e) { @@ -38531,14 +38531,14 @@ const UU = { "%": (t, e) => (t * 100).toFixed(e), b: (t) => Math.round(t).toString(2), c: (t) => t + "", - d: jxt, + d: Kxt, e: (t, e) => t.toExponential(e), f: (t, e) => t.toFixed(e), g: (t, e) => t.toPrecision(e), o: (t) => Math.round(t).toString(8), p: (t, e) => VU(t * 100, e), r: VU, - s: rwt, + s: nwt, X: (t) => Math.round(t).toString(16).toUpperCase(), x: (t) => Math.round(t).toString(16) }; @@ -38546,22 +38546,22 @@ function qU(t) { return t; } var QU = Array.prototype.map, YU = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; -function nwt(t) { - var e = t.grouping === void 0 || t.thousands === void 0 ? qU : Kxt(QU.call(t.grouping, Number), t.thousands + ""), r = t.currency === void 0 ? "" : t.currency[0] + "", n = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? qU : Jxt(QU.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "\u2212" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + ""; +function iwt(t) { + var e = t.grouping === void 0 || t.thousands === void 0 ? qU : Jxt(QU.call(t.grouping, Number), t.thousands + ""), r = t.currency === void 0 ? "" : t.currency[0] + "", n = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? qU : ewt(QU.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "\u2212" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + ""; function u(f) { f = _3(f); var d = f.fill, p = f.align, g = f.sign, m = f.symbol, v = f.zero, y = f.width, b = f.comma, w = f.precision, O = f.trim, S = f.type; S === "n" ? (b = !0, S = "g") : UU[S] || (w === void 0 && (w = 12), O = !0, S = "g"), (v || d === "0" && p === "=") && (v = !0, d = "0", p = "="); - var C = m === "$" ? r : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", T = m === "$" ? n : /[%p]/.test(S) ? a : "", L = UU[S], E = /[defgprs%]/.test(S); + var C = m === "$" ? r : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", T = m === "$" ? n : /[%p]/.test(S) ? a : "", A = UU[S], E = /[defgprs%]/.test(S); w = w === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, w)) : Math.max(0, Math.min(20, w)); - function A(_) { + function L(_) { var R = C, $ = T, k, N, M; if (S === "c") - $ = L(_) + $, _ = ""; + $ = A(_) + $, _ = ""; else { _ = +_; var I = _ < 0 || 1 / _ < 0; - if (_ = isNaN(_) ? l : L(Math.abs(_), w), O && (_ = twt(_)), I && +_ == 0 && g !== "+" && (I = !1), R = (I ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + R, $ = (S === "s" ? YU[8 + yse / 3] : "") + $ + (I && g === "(" ? ")" : ""), E) { + if (_ = isNaN(_) ? l : A(Math.abs(_), w), O && (_ = rwt(_)), I && +_ == 0 && g !== "+" && (I = !1), R = (I ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + R, $ = (S === "s" ? YU[8 + bse / 3] : "") + $ + (I && g === "(" ? ")" : ""), E) { for (k = -1, N = _.length; ++k < N; ) if (M = _.charCodeAt(k), 48 > M || M > 57) { $ = (M === 46 ? i + _.slice(k + 1) : _.slice(k)) + $, _ = _.slice(0, k); @@ -38587,9 +38587,9 @@ function nwt(t) { } return s(_); } - return A.toString = function() { + return L.toString = function() { return f + ""; - }, A; + }, L; } function h(f, d) { var p = u((f = _3(f), f.type = "f", f)), g = Math.max(-8, Math.min(8, Math.floor(Hg(d) / 3))) * 3, m = Math.pow(10, -g), v = YU[8 + g / 3]; @@ -38602,25 +38602,25 @@ function nwt(t) { formatPrefix: h }; } -var jw, bse, xse; -iwt({ +var jw, xse, wse; +swt({ thousands: ",", grouping: [3], currency: ["$", ""] }); -function iwt(t) { - return jw = nwt(t), bse = jw.format, xse = jw.formatPrefix, jw; -} function swt(t) { + return jw = iwt(t), xse = jw.format, wse = jw.formatPrefix, jw; +} +function awt(t) { return Math.max(0, -Hg(Math.abs(t))); } -function awt(t, e) { +function owt(t, e) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Hg(e) / 3))) * 3 - Hg(Math.abs(t))); } -function owt(t, e) { +function lwt(t, e) { return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Hg(e) - Hg(t)) + 1; } -function TT(t, e) { +function CT(t, e) { switch (arguments.length) { case 0: break; @@ -38634,7 +38634,7 @@ function TT(t, e) { return this; } const WU = Symbol("implicit"); -function CT() { +function ET() { var t = new kU(), e = [], r = [], n = WU; function i(s) { let a = t.get(s); @@ -38657,16 +38657,16 @@ function CT() { }, i.unknown = function(s) { return arguments.length ? (n = s, i) : n; }, i.copy = function() { - return CT(e, r).unknown(n); - }, TT.apply(i, arguments), i; + return ET(e, r).unknown(n); + }, CT.apply(i, arguments), i; } -function N8() { - var t = CT().unknown(void 0), e = t.domain, r = t.range, n = 0, i = 1, s, a, o = !1, l = 0, u = 0, h = 0.5; +function I8() { + var t = ET().unknown(void 0), e = t.domain, r = t.range, n = 0, i = 1, s, a, o = !1, l = 0, u = 0, h = 0.5; delete t.unknown; function f() { var d = e().length, p = i < n, g = p ? i : n, m = p ? n : i; s = (m - g) / Math.max(1, d - l + u * 2), o && (s = Math.floor(s)), g += (m - g - s * (d - l)) * h, a = s * (1 - l), o && (g = Math.round(g), a = Math.round(a)); - var v = dyt(d).map(function(y) { + var v = pyt(d).map(function(y) { return g + s * y; }); return r(p ? v.reverse() : v); @@ -38692,55 +38692,55 @@ function N8() { }, t.align = function(d) { return arguments.length ? (h = Math.max(0, Math.min(1, d)), f()) : h; }, t.copy = function() { - return N8(e(), [n, i]).round(o).paddingInner(l).paddingOuter(u).align(h); - }, TT.apply(f(), arguments); + return I8(e(), [n, i]).round(o).paddingInner(l).paddingOuter(u).align(h); + }, CT.apply(f(), arguments); } -function lwt(t) { +function cwt(t) { return function() { return t; }; } -function cwt(t) { +function uwt(t) { return +t; } var GU = [0, 1]; function Np(t) { return t; } -function I8(t, e) { +function P8(t, e) { return (e -= t = +t) ? function(r) { return (r - t) / e; - } : lwt(isNaN(e) ? NaN : 0.5); + } : cwt(isNaN(e) ? NaN : 0.5); } -function uwt(t, e) { +function hwt(t, e) { var r; return t > e && (r = t, t = e, e = r), function(n) { return Math.max(t, Math.min(e, n)); }; } -function hwt(t, e, r) { +function fwt(t, e, r) { var n = t[0], i = t[1], s = e[0], a = e[1]; - return i < n ? (n = I8(i, n), s = r(a, s)) : (n = I8(n, i), s = r(s, a)), function(o) { + return i < n ? (n = P8(i, n), s = r(a, s)) : (n = P8(n, i), s = r(s, a)), function(o) { return s(n(o)); }; } -function fwt(t, e, r) { +function dwt(t, e, r) { var n = Math.min(t.length, e.length) - 1, i = new Array(n), s = new Array(n), a = -1; for (t[n] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < n; ) - i[a] = I8(t[a], t[a + 1]), s[a] = r(e[a], e[a + 1]); + i[a] = P8(t[a], t[a + 1]), s[a] = r(e[a], e[a + 1]); return function(o) { - var l = nyt(t, o, 1, n) - 1; + var l = iyt(t, o, 1, n) - 1; return s[l](i[l](o)); }; } -function wse(t, e) { +function Ose(t, e) { return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()); } -function dwt() { - var t = GU, e = GU, r = TD, n, i, s, a = Np, o, l, u; +function pwt() { + var t = GU, e = GU, r = CD, n, i, s, a = Np, o, l, u; function h() { var d = Math.min(t.length, e.length); - return a !== Np && (a = uwt(t[0], t[d - 1])), o = d > 2 ? fwt : hwt, l = u = null, f; + return a !== Np && (a = hwt(t[0], t[d - 1])), o = d > 2 ? dwt : fwt, l = u = null, f; } function f(d) { return d == null || isNaN(d = +d) ? s : (l || (l = o(t.map(n), e, r)))(n(a(d))); @@ -38748,11 +38748,11 @@ function dwt() { return f.invert = function(d) { return a(i((u || (u = o(e, t.map(n), gl)))(d))); }, f.domain = function(d) { - return arguments.length ? (t = Array.from(d, cwt), h()) : t.slice(); + return arguments.length ? (t = Array.from(d, uwt), h()) : t.slice(); }, f.range = function(d) { return arguments.length ? (e = Array.from(d), h()) : e.slice(); }, f.rangeRound = function(d) { - return e = Array.from(d), r = Abt, h(); + return e = Array.from(d), r = Lbt, h(); }, f.clamp = function(d) { return arguments.length ? (a = d ? !0 : Np, h()) : a !== Np; }, f.interpolate = function(d) { @@ -38763,45 +38763,45 @@ function dwt() { return n = d, i = p, h(); }; } -function Ose() { - return dwt()(Np, Np); +function kse() { + return pwt()(Np, Np); } -function pwt(t, e, r, n) { - var i = O8(t, e, r), s; +function gwt(t, e, r, n) { + var i = k8(t, e, r), s; switch (n = _3(n == null ? ",f" : n), n.type) { case "s": { var a = Math.max(Math.abs(t), Math.abs(e)); - return n.precision == null && !isNaN(s = awt(i, a)) && (n.precision = s), xse(n, a); + return n.precision == null && !isNaN(s = owt(i, a)) && (n.precision = s), wse(n, a); } case "": case "e": case "g": case "p": case "r": { - n.precision == null && !isNaN(s = owt(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); + n.precision == null && !isNaN(s = lwt(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); break; } case "f": case "%": { - n.precision == null && !isNaN(s = swt(i)) && (n.precision = s - (n.type === "%") * 2); + n.precision == null && !isNaN(s = awt(i)) && (n.precision = s - (n.type === "%") * 2); break; } } - return bse(n); + return xse(n); } -function gwt(t) { +function mwt(t) { var e = t.domain; return t.ticks = function(r) { var n = e(); - return uyt(n[0], n[n.length - 1], r == null ? 10 : r); + return hyt(n[0], n[n.length - 1], r == null ? 10 : r); }, t.tickFormat = function(r, n) { var i = e(); - return pwt(i[0], i[i.length - 1], r == null ? 10 : r, n); + return gwt(i[0], i[i.length - 1], r == null ? 10 : r, n); }, t.nice = function(r) { r == null && (r = 10); var n = e(), i = 0, s = n.length - 1, a = n[i], o = n[s], l, u, h = 10; for (o < a && (u = a, a = o, o = u, u = i, i = s, s = u); h-- > 0; ) { - if (u = w8(a, o, r), u === l) + if (u = O8(a, o, r), u === l) return n[i] = a, n[s] = o, e(n); if (u > 0) a = Math.floor(a / u) * u, o = Math.ceil(o / u) * u; @@ -38815,18 +38815,18 @@ function gwt(t) { }, t; } function Xg() { - var t = Ose(); + var t = kse(); return t.copy = function() { - return wse(t, Xg()); - }, TT.apply(t, arguments), gwt(t); + return Ose(t, Xg()); + }, CT.apply(t, arguments), mwt(t); } -function mwt(t, e) { +function vwt(t, e) { t = t.slice(); var r = 0, n = t.length - 1, i = t[r], s = t[n], a; return s < i && (a = r, r = n, n = a, a = i, i = s, s = a), t[r] = e.floor(i), t[n] = e.ceil(s), t; } -const V6 = new Date(), U6 = new Date(); -function Pi(t, e, r, n) { +const U6 = new Date(), q6 = new Date(); +function $i(t, e, r, n) { function i(s) { return t(s = arguments.length === 0 ? new Date() : new Date(+s)), s; } @@ -38842,7 +38842,7 @@ function Pi(t, e, r, n) { l.push(u = new Date(+s)), e(s, o), t(s); while (u < s && s < a); return l; - }, i.filter = (s) => Pi((a) => { + }, i.filter = (s) => $i((a) => { if (a >= a) for (; t(a), !s(a); ) a.setTime(a - 1); @@ -38856,132 +38856,132 @@ function Pi(t, e, r, n) { for (; --o >= 0; ) for (; e(a, 1), !s(a); ) ; - }), r && (i.count = (s, a) => (V6.setTime(+s), U6.setTime(+a), t(V6), t(U6), Math.floor(r(V6, U6))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(n ? (a) => n(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i; + }), r && (i.count = (s, a) => (U6.setTime(+s), q6.setTime(+a), t(U6), t(q6), Math.floor(r(U6, q6))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(n ? (a) => n(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i; } -const Zg = Pi(() => { +const Zg = $i(() => { }, (t, e) => { t.setTime(+t + e); }, (t, e) => e - t); -Zg.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? Pi((e) => { +Zg.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? $i((e) => { e.setTime(Math.floor(e / t) * t); }, (e, r) => { e.setTime(+e + r * t); }, (e, r) => (r - e) / t) : Zg); Zg.range; -const xu = 1e3, No = xu * 60, wu = No * 60, qu = wu * 24, LD = qu * 7, HU = qu * 30, q6 = qu * 365, Fh = Pi((t) => { +const xu = 1e3, No = xu * 60, wu = No * 60, qu = wu * 24, RD = qu * 7, HU = qu * 30, Q6 = qu * 365, Fh = $i((t) => { t.setTime(t - t.getMilliseconds()); }, (t, e) => { t.setTime(+t + e * xu); }, (t, e) => (e - t) / xu, (t) => t.getUTCSeconds()); Fh.range; -const l2 = Pi((t) => { +const l2 = $i((t) => { t.setTime(t - t.getMilliseconds() - t.getSeconds() * xu); }, (t, e) => { t.setTime(+t + e * No); }, (t, e) => (e - t) / No, (t) => t.getMinutes()); l2.range; -const kse = Pi((t) => { +const Sse = $i((t) => { t.setUTCSeconds(0, 0); }, (t, e) => { t.setTime(+t + e * No); }, (t, e) => (e - t) / No, (t) => t.getUTCMinutes()); -kse.range; -const c2 = Pi((t) => { +Sse.range; +const c2 = $i((t) => { t.setTime(t - t.getMilliseconds() - t.getSeconds() * xu - t.getMinutes() * No); }, (t, e) => { t.setTime(+t + e * wu); }, (t, e) => (e - t) / wu, (t) => t.getHours()); c2.range; -const Sse = Pi((t) => { +const Tse = $i((t) => { t.setUTCMinutes(0, 0, 0); }, (t, e) => { t.setTime(+t + e * wu); }, (t, e) => (e - t) / wu, (t) => t.getUTCHours()); -Sse.range; -const s0 = Pi( +Tse.range; +const s0 = $i( (t) => t.setHours(0, 0, 0, 0), (t, e) => t.setDate(t.getDate() + e), (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * No) / qu, (t) => t.getDate() - 1 ); s0.range; -const RD = Pi((t) => { +const MD = $i((t) => { t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCDate(t.getUTCDate() + e); }, (t, e) => (e - t) / qu, (t) => t.getUTCDate() - 1); -RD.range; -const Tse = Pi((t) => { +MD.range; +const Cse = $i((t) => { t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCDate(t.getUTCDate() + e); }, (t, e) => (e - t) / qu, (t) => Math.floor(t / qu)); -Tse.range; +Cse.range; function V0(t) { - return Pi((e) => { + return $i((e) => { e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0); }, (e, r) => { e.setDate(e.getDate() + r * 7); - }, (e, r) => (r - e - (r.getTimezoneOffset() - e.getTimezoneOffset()) * No) / LD); + }, (e, r) => (r - e - (r.getTimezoneOffset() - e.getTimezoneOffset()) * No) / RD); } -const ux = V0(0), u2 = V0(1), Cse = V0(2), Ese = V0(3), a0 = V0(4), _se = V0(5), Ase = V0(6); +const ux = V0(0), u2 = V0(1), Ese = V0(2), _se = V0(3), a0 = V0(4), Ase = V0(5), Lse = V0(6); ux.range; u2.range; -Cse.range; Ese.range; -a0.range; _se.range; +a0.range; Ase.range; +Lse.range; function U0(t) { - return Pi((e) => { + return $i((e) => { e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0); }, (e, r) => { e.setUTCDate(e.getUTCDate() + r * 7); - }, (e, r) => (r - e) / LD); + }, (e, r) => (r - e) / RD); } -const MD = U0(0), A3 = U0(1), vwt = U0(2), ywt = U0(3), jg = U0(4), bwt = U0(5), xwt = U0(6); -MD.range; +const DD = U0(0), A3 = U0(1), ywt = U0(2), bwt = U0(3), jg = U0(4), xwt = U0(5), wwt = U0(6); +DD.range; A3.range; -vwt.range; ywt.range; -jg.range; bwt.range; +jg.range; xwt.range; -const h2 = Pi((t) => { +wwt.range; +const h2 = $i((t) => { t.setDate(1), t.setHours(0, 0, 0, 0); }, (t, e) => { t.setMonth(t.getMonth() + e); }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth()); h2.range; -const Lse = Pi((t) => { +const Rse = $i((t) => { t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCMonth(t.getUTCMonth() + e); }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth()); -Lse.range; -const Qu = Pi((t) => { +Rse.range; +const Qu = $i((t) => { t.setMonth(0, 1), t.setHours(0, 0, 0, 0); }, (t, e) => { t.setFullYear(t.getFullYear() + e); }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear()); -Qu.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Pi((e) => { +Qu.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : $i((e) => { e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0); }, (e, r) => { e.setFullYear(e.getFullYear() + r * t); }); Qu.range; -const mf = Pi((t) => { +const mf = $i((t) => { t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCFullYear(t.getUTCFullYear() + e); }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear()); -mf.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Pi((e) => { +mf.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : $i((e) => { e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); }, (e, r) => { e.setUTCFullYear(e.getUTCFullYear() + r * t); }); mf.range; -function Rse(t, e, r, n, i, s) { +function Mse(t, e, r, n, i, s) { const a = [ [Fh, 1, xu], [Fh, 5, 5 * xu], @@ -38997,10 +38997,10 @@ function Rse(t, e, r, n, i, s) { [i, 12, 12 * wu], [n, 1, qu], [n, 2, 2 * qu], - [r, 1, LD], + [r, 1, RD], [e, 1, HU], [e, 3, 3 * HU], - [t, 1, q6] + [t, 1, Q6] ]; function o(u, h, f) { const d = h < u; @@ -39009,26 +39009,26 @@ function Rse(t, e, r, n, i, s) { return d ? g.reverse() : g; } function l(u, h, f) { - const d = Math.abs(h - u) / f, p = OD(([, , v]) => v).right(a, d); + const d = Math.abs(h - u) / f, p = kD(([, , v]) => v).right(a, d); if (p === a.length) - return t.every(O8(u / q6, h / q6, f)); + return t.every(k8(u / Q6, h / Q6, f)); if (p === 0) - return Zg.every(Math.max(O8(u, h, f), 1)); + return Zg.every(Math.max(k8(u, h, f), 1)); const [g, m] = a[d / a[p - 1][2] < a[p][2] / d ? p - 1 : p]; return g.every(m); } return [o, l]; } -Rse(mf, Lse, MD, Tse, Sse, kse); -const [wwt, Owt] = Rse(Qu, h2, ux, s0, c2, l2); -function Q6(t) { +Mse(mf, Rse, DD, Cse, Tse, Sse); +const [Owt, kwt] = Mse(Qu, h2, ux, s0, c2, l2); +function Y6(t) { if (0 <= t.y && t.y < 100) { var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); return e.setFullYear(t.y), e; } return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); } -function Y6(t) { +function W6(t) { if (0 <= t.y && t.y < 100) { var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); return e.setUTCFullYear(t.y), e; @@ -39038,7 +39038,7 @@ function Y6(t) { function qm(t, e, r) { return { y: t, m: e, d: r, H: 0, M: 0, S: 0, L: 0 }; } -function kwt(t) { +function Swt(t) { var e = t.dateTime, r = t.date, n = t.time, i = t.periods, s = t.days, a = t.shortDays, o = t.months, l = t.shortMonths, u = Qm(i), h = Ym(i), f = Qm(s), d = Ym(s), p = Qm(a), g = Ym(a), m = Qm(o), v = Ym(o), y = Qm(l), b = Ym(l), w = { a: I, A: D, @@ -39047,30 +39047,30 @@ function kwt(t) { c: null, d: eq, e: eq, - f: Wwt, - g: rOt, - G: iOt, - H: qwt, - I: Qwt, - j: Ywt, - L: Mse, - m: Gwt, - M: Hwt, + f: Gwt, + g: nOt, + G: sOt, + H: Qwt, + I: Ywt, + j: Wwt, + L: Dse, + m: Hwt, + M: Xwt, p: B, q: V, Q: nq, s: iq, - S: Xwt, - u: Zwt, - U: jwt, - V: Kwt, - w: Jwt, - W: eOt, + S: Zwt, + u: jwt, + U: Kwt, + V: Jwt, + w: eOt, + W: tOt, x: null, X: null, - y: tOt, - Y: nOt, - Z: sOt, + y: rOt, + Y: iOt, + Z: aOt, "%": rq }, O = { a: Q, @@ -39080,64 +39080,64 @@ function kwt(t) { c: null, d: tq, e: tq, - f: cOt, - g: bOt, - G: wOt, - H: aOt, - I: oOt, - j: lOt, - L: Nse, - m: uOt, - M: hOt, + f: uOt, + g: xOt, + G: OOt, + H: oOt, + I: lOt, + j: cOt, + L: Ise, + m: hOt, + M: fOt, p: ne, q: ie, Q: nq, s: iq, - S: fOt, - u: dOt, - U: pOt, - V: gOt, - w: mOt, - W: vOt, + S: dOt, + u: pOt, + U: gOt, + V: mOt, + w: vOt, + W: yOt, x: null, X: null, - y: yOt, - Y: xOt, - Z: OOt, + y: bOt, + Y: wOt, + Z: kOt, "%": rq }, S = { - a: A, + a: L, A: _, b: R, B: $, c: k, d: KU, e: KU, - f: Fwt, + f: zwt, g: jU, G: ZU, H: JU, I: JU, - j: Iwt, - L: Bwt, - m: Nwt, - M: Pwt, + j: Pwt, + L: Fwt, + m: Iwt, + M: $wt, p: E, - q: Dwt, - Q: Vwt, - s: Uwt, - S: $wt, - u: _wt, - U: Awt, - V: Lwt, - w: Ewt, - W: Rwt, + q: Nwt, + Q: Uwt, + s: qwt, + S: Bwt, + u: Awt, + U: Lwt, + V: Rwt, + w: _wt, + W: Mwt, x: N, X: M, y: jU, Y: ZU, - Z: Mwt, - "%": zwt + Z: Dwt, + "%": Vwt }; w.x = C(r, w), w.X = C(n, w), w.c = C(e, w), O.x = C(r, O), O.X = C(n, O), O.c = C(e, O); function C(U, Z) { @@ -39150,7 +39150,7 @@ function kwt(t) { } function T(U, Z) { return function(G) { - var j = qm(1900, void 0, 1), ae = L(j, U, G += "", 0), se, K; + var j = qm(1900, void 0, 1), ae = A(j, U, G += "", 0), se, K; if (ae != G.length) return null; if ("Q" in j) @@ -39160,13 +39160,13 @@ function kwt(t) { if (Z && !("Z" in j) && (j.Z = 0), "p" in j && (j.H = j.H % 12 + j.p * 12), j.m === void 0 && (j.m = "q" in j ? j.q : 0), "V" in j) { if (j.V < 1 || j.V > 53) return null; - "w" in j || (j.w = 1), "Z" in j ? (se = Y6(qm(j.y, 0, 1)), K = se.getUTCDay(), se = K > 4 || K === 0 ? A3.ceil(se) : A3(se), se = RD.offset(se, (j.V - 1) * 7), j.y = se.getUTCFullYear(), j.m = se.getUTCMonth(), j.d = se.getUTCDate() + (j.w + 6) % 7) : (se = Q6(qm(j.y, 0, 1)), K = se.getDay(), se = K > 4 || K === 0 ? u2.ceil(se) : u2(se), se = s0.offset(se, (j.V - 1) * 7), j.y = se.getFullYear(), j.m = se.getMonth(), j.d = se.getDate() + (j.w + 6) % 7); + "w" in j || (j.w = 1), "Z" in j ? (se = W6(qm(j.y, 0, 1)), K = se.getUTCDay(), se = K > 4 || K === 0 ? A3.ceil(se) : A3(se), se = MD.offset(se, (j.V - 1) * 7), j.y = se.getUTCFullYear(), j.m = se.getUTCMonth(), j.d = se.getUTCDate() + (j.w + 6) % 7) : (se = Y6(qm(j.y, 0, 1)), K = se.getDay(), se = K > 4 || K === 0 ? u2.ceil(se) : u2(se), se = s0.offset(se, (j.V - 1) * 7), j.y = se.getFullYear(), j.m = se.getMonth(), j.d = se.getDate() + (j.w + 6) % 7); } else - ("W" in j || "U" in j) && ("w" in j || (j.w = "u" in j ? j.u % 7 : "W" in j ? 1 : 0), K = "Z" in j ? Y6(qm(j.y, 0, 1)).getUTCDay() : Q6(qm(j.y, 0, 1)).getDay(), j.m = 0, j.d = "W" in j ? (j.w + 6) % 7 + j.W * 7 - (K + 5) % 7 : j.w + j.U * 7 - (K + 6) % 7); - return "Z" in j ? (j.H += j.Z / 100 | 0, j.M += j.Z % 100, Y6(j)) : Q6(j); + ("W" in j || "U" in j) && ("w" in j || (j.w = "u" in j ? j.u % 7 : "W" in j ? 1 : 0), K = "Z" in j ? W6(qm(j.y, 0, 1)).getUTCDay() : Y6(qm(j.y, 0, 1)).getDay(), j.m = 0, j.d = "W" in j ? (j.w + 6) % 7 + j.W * 7 - (K + 5) % 7 : j.w + j.U * 7 - (K + 6) % 7); + return "Z" in j ? (j.H += j.Z / 100 | 0, j.M += j.Z % 100, W6(j)) : Y6(j); }; } - function L(U, Z, G, j) { + function A(U, Z, G, j) { for (var ae = 0, se = Z.length, K = G.length, _e, ce; ae < se; ) { if (j >= K) return -1; @@ -39182,7 +39182,7 @@ function kwt(t) { var j = u.exec(Z.slice(G)); return j ? (U.p = h.get(j[0].toLowerCase()), G + j[0].length) : -1; } - function A(U, Z, G) { + function L(U, Z, G) { var j = p.exec(Z.slice(G)); return j ? (U.w = g.get(j[0].toLowerCase()), G + j[0].length) : -1; } @@ -39199,13 +39199,13 @@ function kwt(t) { return j ? (U.m = v.get(j[0].toLowerCase()), G + j[0].length) : -1; } function k(U, Z, G) { - return L(U, e, Z, G); + return A(U, e, Z, G); } function N(U, Z, G) { - return L(U, r, Z, G); + return A(U, r, Z, G); } function M(U, Z, G) { - return L(U, n, Z, G); + return A(U, n, Z, G); } function I(U) { return a[U.getDay()]; @@ -39270,37 +39270,37 @@ function kwt(t) { } }; } -var XU = { "-": "", _: " ", 0: "0" }, ji = /^\s*\d+/, Swt = /^%/, Twt = /[\\^$*+?|[\]().{}]/g; +var XU = { "-": "", _: " ", 0: "0" }, ji = /^\s*\d+/, Twt = /^%/, Cwt = /[\\^$*+?|[\]().{}]/g; function Nr(t, e, r) { var n = t < 0 ? "-" : "", i = (n ? -t : t) + "", s = i.length; return n + (s < r ? new Array(r - s + 1).join(e) + i : i); } -function Cwt(t) { - return t.replace(Twt, "\\$&"); +function Ewt(t) { + return t.replace(Cwt, "\\$&"); } function Qm(t) { - return new RegExp("^(?:" + t.map(Cwt).join("|") + ")", "i"); + return new RegExp("^(?:" + t.map(Ewt).join("|") + ")", "i"); } function Ym(t) { return new Map(t.map((e, r) => [e.toLowerCase(), r])); } -function Ewt(t, e, r) { +function _wt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.w = +n[0], r + n[0].length) : -1; } -function _wt(t, e, r) { +function Awt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.u = +n[0], r + n[0].length) : -1; } -function Awt(t, e, r) { +function Lwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.U = +n[0], r + n[0].length) : -1; } -function Lwt(t, e, r) { +function Rwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.V = +n[0], r + n[0].length) : -1; } -function Rwt(t, e, r) { +function Mwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.W = +n[0], r + n[0].length) : -1; } @@ -39312,15 +39312,15 @@ function jU(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), r + n[0].length) : -1; } -function Mwt(t, e, r) { +function Dwt(t, e, r) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r, r + 6)); return n ? (t.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), r + n[0].length) : -1; } -function Dwt(t, e, r) { +function Nwt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.q = n[0] * 3 - 3, r + n[0].length) : -1; } -function Nwt(t, e, r) { +function Iwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.m = n[0] - 1, r + n[0].length) : -1; } @@ -39328,7 +39328,7 @@ function KU(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.d = +n[0], r + n[0].length) : -1; } -function Iwt(t, e, r) { +function Pwt(t, e, r) { var n = ji.exec(e.slice(r, r + 3)); return n ? (t.m = 0, t.d = +n[0], r + n[0].length) : -1; } @@ -39336,159 +39336,159 @@ function JU(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.H = +n[0], r + n[0].length) : -1; } -function Pwt(t, e, r) { +function $wt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.M = +n[0], r + n[0].length) : -1; } -function $wt(t, e, r) { +function Bwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.S = +n[0], r + n[0].length) : -1; } -function Bwt(t, e, r) { +function Fwt(t, e, r) { var n = ji.exec(e.slice(r, r + 3)); return n ? (t.L = +n[0], r + n[0].length) : -1; } -function Fwt(t, e, r) { +function zwt(t, e, r) { var n = ji.exec(e.slice(r, r + 6)); return n ? (t.L = Math.floor(n[0] / 1e3), r + n[0].length) : -1; } -function zwt(t, e, r) { - var n = Swt.exec(e.slice(r, r + 1)); +function Vwt(t, e, r) { + var n = Twt.exec(e.slice(r, r + 1)); return n ? r + n[0].length : -1; } -function Vwt(t, e, r) { +function Uwt(t, e, r) { var n = ji.exec(e.slice(r)); return n ? (t.Q = +n[0], r + n[0].length) : -1; } -function Uwt(t, e, r) { +function qwt(t, e, r) { var n = ji.exec(e.slice(r)); return n ? (t.s = +n[0], r + n[0].length) : -1; } function eq(t, e) { return Nr(t.getDate(), e, 2); } -function qwt(t, e) { +function Qwt(t, e) { return Nr(t.getHours(), e, 2); } -function Qwt(t, e) { +function Ywt(t, e) { return Nr(t.getHours() % 12 || 12, e, 2); } -function Ywt(t, e) { +function Wwt(t, e) { return Nr(1 + s0.count(Qu(t), t), e, 3); } -function Mse(t, e) { +function Dse(t, e) { return Nr(t.getMilliseconds(), e, 3); } -function Wwt(t, e) { - return Mse(t, e) + "000"; -} function Gwt(t, e) { - return Nr(t.getMonth() + 1, e, 2); + return Dse(t, e) + "000"; } function Hwt(t, e) { - return Nr(t.getMinutes(), e, 2); + return Nr(t.getMonth() + 1, e, 2); } function Xwt(t, e) { + return Nr(t.getMinutes(), e, 2); +} +function Zwt(t, e) { return Nr(t.getSeconds(), e, 2); } -function Zwt(t) { +function jwt(t) { var e = t.getDay(); return e === 0 ? 7 : e; } -function jwt(t, e) { +function Kwt(t, e) { return Nr(ux.count(Qu(t) - 1, t), e, 2); } -function Dse(t) { +function Nse(t) { var e = t.getDay(); return e >= 4 || e === 0 ? a0(t) : a0.ceil(t); } -function Kwt(t, e) { - return t = Dse(t), Nr(a0.count(Qu(t), t) + (Qu(t).getDay() === 4), e, 2); +function Jwt(t, e) { + return t = Nse(t), Nr(a0.count(Qu(t), t) + (Qu(t).getDay() === 4), e, 2); } -function Jwt(t) { +function eOt(t) { return t.getDay(); } -function eOt(t, e) { - return Nr(u2.count(Qu(t) - 1, t), e, 2); -} function tOt(t, e) { - return Nr(t.getFullYear() % 100, e, 2); + return Nr(u2.count(Qu(t) - 1, t), e, 2); } function rOt(t, e) { - return t = Dse(t), Nr(t.getFullYear() % 100, e, 2); + return Nr(t.getFullYear() % 100, e, 2); } function nOt(t, e) { - return Nr(t.getFullYear() % 1e4, e, 4); + return t = Nse(t), Nr(t.getFullYear() % 100, e, 2); } function iOt(t, e) { + return Nr(t.getFullYear() % 1e4, e, 4); +} +function sOt(t, e) { var r = t.getDay(); return t = r >= 4 || r === 0 ? a0(t) : a0.ceil(t), Nr(t.getFullYear() % 1e4, e, 4); } -function sOt(t) { +function aOt(t) { var e = t.getTimezoneOffset(); return (e > 0 ? "-" : (e *= -1, "+")) + Nr(e / 60 | 0, "0", 2) + Nr(e % 60, "0", 2); } function tq(t, e) { return Nr(t.getUTCDate(), e, 2); } -function aOt(t, e) { +function oOt(t, e) { return Nr(t.getUTCHours(), e, 2); } -function oOt(t, e) { +function lOt(t, e) { return Nr(t.getUTCHours() % 12 || 12, e, 2); } -function lOt(t, e) { - return Nr(1 + RD.count(mf(t), t), e, 3); +function cOt(t, e) { + return Nr(1 + MD.count(mf(t), t), e, 3); } -function Nse(t, e) { +function Ise(t, e) { return Nr(t.getUTCMilliseconds(), e, 3); } -function cOt(t, e) { - return Nse(t, e) + "000"; -} function uOt(t, e) { - return Nr(t.getUTCMonth() + 1, e, 2); + return Ise(t, e) + "000"; } function hOt(t, e) { - return Nr(t.getUTCMinutes(), e, 2); + return Nr(t.getUTCMonth() + 1, e, 2); } function fOt(t, e) { + return Nr(t.getUTCMinutes(), e, 2); +} +function dOt(t, e) { return Nr(t.getUTCSeconds(), e, 2); } -function dOt(t) { +function pOt(t) { var e = t.getUTCDay(); return e === 0 ? 7 : e; } -function pOt(t, e) { - return Nr(MD.count(mf(t) - 1, t), e, 2); +function gOt(t, e) { + return Nr(DD.count(mf(t) - 1, t), e, 2); } -function Ise(t) { +function Pse(t) { var e = t.getUTCDay(); return e >= 4 || e === 0 ? jg(t) : jg.ceil(t); } -function gOt(t, e) { - return t = Ise(t), Nr(jg.count(mf(t), t) + (mf(t).getUTCDay() === 4), e, 2); +function mOt(t, e) { + return t = Pse(t), Nr(jg.count(mf(t), t) + (mf(t).getUTCDay() === 4), e, 2); } -function mOt(t) { +function vOt(t) { return t.getUTCDay(); } -function vOt(t, e) { - return Nr(A3.count(mf(t) - 1, t), e, 2); -} function yOt(t, e) { - return Nr(t.getUTCFullYear() % 100, e, 2); + return Nr(A3.count(mf(t) - 1, t), e, 2); } function bOt(t, e) { - return t = Ise(t), Nr(t.getUTCFullYear() % 100, e, 2); + return Nr(t.getUTCFullYear() % 100, e, 2); } function xOt(t, e) { - return Nr(t.getUTCFullYear() % 1e4, e, 4); + return t = Pse(t), Nr(t.getUTCFullYear() % 100, e, 2); } function wOt(t, e) { + return Nr(t.getUTCFullYear() % 1e4, e, 4); +} +function OOt(t, e) { var r = t.getUTCDay(); return t = r >= 4 || r === 0 ? jg(t) : jg.ceil(t), Nr(t.getUTCFullYear() % 1e4, e, 4); } -function OOt() { +function kOt() { return "+0000"; } function rq() { @@ -39501,7 +39501,7 @@ function iq(t) { return Math.floor(+t / 1e3); } var up, L3; -kOt({ +SOt({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", @@ -39511,24 +39511,24 @@ kOt({ 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"] }); -function kOt(t) { - return up = kwt(t), L3 = up.format, up.parse, up.utcFormat, up.utcParse, up; -} function SOt(t) { - return new Date(t); + return up = Swt(t), L3 = up.format, up.parse, up.utcFormat, up.utcParse, up; } function TOt(t) { + return new Date(t); +} +function COt(t) { return t instanceof Date ? +t : +new Date(+t); } -function Pse(t, e, r, n, i, s, a, o, l, u) { - var h = Ose(), f = h.invert, d = h.domain, p = u(".%L"), g = u(":%S"), m = u("%I:%M"), v = u("%I %p"), y = u("%a %d"), b = u("%b %d"), w = u("%B"), O = u("%Y"); +function $se(t, e, r, n, i, s, a, o, l, u) { + var h = kse(), f = h.invert, d = h.domain, p = u(".%L"), g = u(":%S"), m = u("%I:%M"), v = u("%I %p"), y = u("%a %d"), b = u("%b %d"), w = u("%B"), O = u("%Y"); function S(C) { return (l(C) < C ? p : o(C) < C ? g : a(C) < C ? m : s(C) < C ? v : n(C) < C ? i(C) < C ? y : b : r(C) < C ? w : O)(C); } return h.invert = function(C) { return new Date(f(C)); }, h.domain = function(C) { - return arguments.length ? d(Array.from(C, TOt)) : d().map(SOt); + return arguments.length ? d(Array.from(C, COt)) : d().map(TOt); }, h.ticks = function(C) { var T = d(); return t(T[0], T[T.length - 1], C == null ? 10 : C); @@ -39536,33 +39536,33 @@ function Pse(t, e, r, n, i, s, a, o, l, u) { return T == null ? S : u(T); }, h.nice = function(C) { var T = d(); - return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(mwt(T, C)) : h; + return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(vwt(T, C)) : h; }, h.copy = function() { - return wse(h, Pse(t, e, r, n, i, s, a, o, l, u)); + return Ose(h, $se(t, e, r, n, i, s, a, o, l, u)); }, h; } -function COt() { - return TT.apply(Pse(wwt, Owt, Qu, h2, ux, s0, c2, l2, Fh, L3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); +function EOt() { + return CT.apply($se(Owt, kwt, Qu, h2, ux, s0, c2, l2, Fh, L3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } -function EOt(t) { +function _Ot(t) { for (var e = t.length / 6 | 0, r = new Array(e), n = 0; n < e; ) r[n] = "#" + t.slice(n * 6, ++n * 6); return r; } -const _Ot = EOt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); +const AOt = _Ot("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); function Kn(t) { return function() { return t; }; } -const sq = Math.abs, ks = Math.atan2, Jf = Math.cos, AOt = Math.max, W6 = Math.min, tc = Math.sin, Ip = Math.sqrt, Cs = 1e-12, f2 = Math.PI, R3 = f2 / 2, D4 = 2 * f2; -function LOt(t) { +const sq = Math.abs, ks = Math.atan2, Jf = Math.cos, LOt = Math.max, G6 = Math.min, tc = Math.sin, Ip = Math.sqrt, Cs = 1e-12, f2 = Math.PI, R3 = f2 / 2, D4 = 2 * f2; +function ROt(t) { return t > 1 ? 0 : t < -1 ? f2 : Math.acos(t); } function aq(t) { return t >= 1 ? R3 : t <= -1 ? -R3 : Math.asin(t); } -function $se(t) { +function Bse(t) { let e = 3; return t.digits = function(r) { if (!arguments.length) @@ -39576,41 +39576,41 @@ function $se(t) { e = n; } return t; - }, () => new Zxt(e); + }, () => new jxt(e); } -function ROt(t) { +function MOt(t) { return t.innerRadius; } -function MOt(t) { +function DOt(t) { return t.outerRadius; } -function DOt(t) { +function NOt(t) { return t.startAngle; } -function NOt(t) { +function IOt(t) { return t.endAngle; } -function IOt(t) { +function POt(t) { return t && t.padAngle; } -function POt(t, e, r, n, i, s, a, o) { +function $Ot(t, e, r, n, i, s, a, o) { var l = r - t, u = n - e, h = a - i, f = o - s, d = f * l - h * u; if (!(d * d < Cs)) return d = (h * (e - s) - f * (t - i)) / d, [t + d * l, e + d * u]; } function Kw(t, e, r, n, i, s, a) { - var o = t - r, l = e - n, u = (a ? s : -s) / Ip(o * o + l * l), h = u * l, f = -u * o, d = t + h, p = e + f, g = r + h, m = n + f, v = (d + g) / 2, y = (p + m) / 2, b = g - d, w = m - p, O = b * b + w * w, S = i - s, C = d * m - g * p, T = (w < 0 ? -1 : 1) * Ip(AOt(0, S * S * O - C * C)), L = (C * w - b * T) / O, E = (-C * b - w * T) / O, A = (C * w + b * T) / O, _ = (-C * b + w * T) / O, R = L - v, $ = E - y, k = A - v, N = _ - y; - return R * R + $ * $ > k * k + N * N && (L = A, E = _), { - cx: L, + var o = t - r, l = e - n, u = (a ? s : -s) / Ip(o * o + l * l), h = u * l, f = -u * o, d = t + h, p = e + f, g = r + h, m = n + f, v = (d + g) / 2, y = (p + m) / 2, b = g - d, w = m - p, O = b * b + w * w, S = i - s, C = d * m - g * p, T = (w < 0 ? -1 : 1) * Ip(LOt(0, S * S * O - C * C)), A = (C * w - b * T) / O, E = (-C * b - w * T) / O, L = (C * w + b * T) / O, _ = (-C * b + w * T) / O, R = A - v, $ = E - y, k = L - v, N = _ - y; + return R * R + $ * $ > k * k + N * N && (A = L, E = _), { + cx: A, cy: E, x01: -h, y01: -f, - x11: L * (i / S - 1), + x11: A * (i / S - 1), y11: E * (i / S - 1) }; } function Kg() { - var t = ROt, e = MOt, r = Kn(0), n = null, i = DOt, s = NOt, a = IOt, o = null, l = $se(u); + var t = MOt, e = DOt, r = Kn(0), n = null, i = NOt, s = IOt, a = POt, o = null, l = Bse(u); function u() { var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - R3, m = s.apply(this, arguments) - R3, v = sq(m - g), y = m > g; if (o || (o = h = l()), p < d && (f = p, p = d, d = f), !(p > Cs)) @@ -39618,22 +39618,22 @@ function Kg() { else if (v > D4 - Cs) o.moveTo(p * Jf(g), p * tc(g)), o.arc(0, 0, p, g, m, !y), d > Cs && (o.moveTo(d * Jf(m), d * tc(m)), o.arc(0, 0, d, m, g, y)); else { - var b = g, w = m, O = g, S = m, C = v, T = v, L = a.apply(this, arguments) / 2, E = L > Cs && (n ? +n.apply(this, arguments) : Ip(d * d + p * p)), A = W6(sq(p - d) / 2, +r.apply(this, arguments)), _ = A, R = A, $, k; + var b = g, w = m, O = g, S = m, C = v, T = v, A = a.apply(this, arguments) / 2, E = A > Cs && (n ? +n.apply(this, arguments) : Ip(d * d + p * p)), L = G6(sq(p - d) / 2, +r.apply(this, arguments)), _ = L, R = L, $, k; if (E > Cs) { - var N = aq(E / d * tc(L)), M = aq(E / p * tc(L)); + var N = aq(E / d * tc(A)), M = aq(E / p * tc(A)); (C -= N * 2) > Cs ? (N *= y ? 1 : -1, O += N, S -= N) : (C = 0, O = S = (g + m) / 2), (T -= M * 2) > Cs ? (M *= y ? 1 : -1, b += M, w -= M) : (T = 0, b = w = (g + m) / 2); } var I = p * Jf(b), D = p * tc(b), P = d * Jf(S), F = d * tc(S); - if (A > Cs) { + if (L > Cs) { var B = p * Jf(w), V = p * tc(w), Q = d * Jf(O), W = d * tc(O), ee; if (v < f2) - if (ee = POt(I, D, Q, W, B, V, P, F)) { - var Y = I - ee[0], ne = D - ee[1], ie = B - ee[0], U = V - ee[1], Z = 1 / tc(LOt((Y * ie + ne * U) / (Ip(Y * Y + ne * ne) * Ip(ie * ie + U * U))) / 2), G = Ip(ee[0] * ee[0] + ee[1] * ee[1]); - _ = W6(A, (d - G) / (Z - 1)), R = W6(A, (p - G) / (Z + 1)); + if (ee = $Ot(I, D, Q, W, B, V, P, F)) { + var Y = I - ee[0], ne = D - ee[1], ie = B - ee[0], U = V - ee[1], Z = 1 / tc(ROt((Y * ie + ne * U) / (Ip(Y * Y + ne * ne) * Ip(ie * ie + U * U))) / 2), G = Ip(ee[0] * ee[0] + ee[1] * ee[1]); + _ = G6(L, (d - G) / (Z - 1)), R = G6(L, (p - G) / (Z + 1)); } else _ = R = 0; } - T > Cs ? R > Cs ? ($ = Kw(Q, W, I, D, p, R, y), k = Kw(B, V, P, F, p, R, y), o.moveTo($.cx + $.x01, $.cy + $.y01), R < A ? o.arc($.cx, $.cy, R, ks($.y01, $.x01), ks(k.y01, k.x01), !y) : (o.arc($.cx, $.cy, R, ks($.y01, $.x01), ks($.y11, $.x11), !y), o.arc(0, 0, p, ks($.cy + $.y11, $.cx + $.x11), ks(k.cy + k.y11, k.cx + k.x11), !y), o.arc(k.cx, k.cy, R, ks(k.y11, k.x11), ks(k.y01, k.x01), !y))) : (o.moveTo(I, D), o.arc(0, 0, p, b, w, !y)) : o.moveTo(I, D), !(d > Cs) || !(C > Cs) ? o.lineTo(P, F) : _ > Cs ? ($ = Kw(P, F, B, V, d, -_, y), k = Kw(I, D, Q, W, d, -_, y), o.lineTo($.cx + $.x01, $.cy + $.y01), _ < A ? o.arc($.cx, $.cy, _, ks($.y01, $.x01), ks(k.y01, k.x01), !y) : (o.arc($.cx, $.cy, _, ks($.y01, $.x01), ks($.y11, $.x11), !y), o.arc(0, 0, d, ks($.cy + $.y11, $.cx + $.x11), ks(k.cy + k.y11, k.cx + k.x11), y), o.arc(k.cx, k.cy, _, ks(k.y11, k.x11), ks(k.y01, k.x01), !y))) : o.arc(0, 0, d, S, O, y); + T > Cs ? R > Cs ? ($ = Kw(Q, W, I, D, p, R, y), k = Kw(B, V, P, F, p, R, y), o.moveTo($.cx + $.x01, $.cy + $.y01), R < L ? o.arc($.cx, $.cy, R, ks($.y01, $.x01), ks(k.y01, k.x01), !y) : (o.arc($.cx, $.cy, R, ks($.y01, $.x01), ks($.y11, $.x11), !y), o.arc(0, 0, p, ks($.cy + $.y11, $.cx + $.x11), ks(k.cy + k.y11, k.cx + k.x11), !y), o.arc(k.cx, k.cy, R, ks(k.y11, k.x11), ks(k.y01, k.x01), !y))) : (o.moveTo(I, D), o.arc(0, 0, p, b, w, !y)) : o.moveTo(I, D), !(d > Cs) || !(C > Cs) ? o.lineTo(P, F) : _ > Cs ? ($ = Kw(P, F, B, V, d, -_, y), k = Kw(I, D, Q, W, d, -_, y), o.lineTo($.cx + $.x01, $.cy + $.y01), _ < L ? o.arc($.cx, $.cy, _, ks($.y01, $.x01), ks(k.y01, k.x01), !y) : (o.arc($.cx, $.cy, _, ks($.y01, $.x01), ks($.y11, $.x11), !y), o.arc(0, 0, d, ks($.cy + $.y11, $.cx + $.x11), ks(k.cy + k.y11, k.cx + k.x11), y), o.arc(k.cx, k.cy, _, ks(k.y11, k.x11), ks(k.y01, k.x01), !y))) : o.arc(0, 0, d, S, O, y); } if (o.closePath(), h) return o = null, h + "" || null; @@ -39659,13 +39659,13 @@ function Kg() { return arguments.length ? (o = h == null ? null : h, u) : o; }, u; } -function Bse(t) { +function Fse(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function Fse(t) { +function zse(t) { this._context = t; } -Fse.prototype = { +zse.prototype = { areaStart: function() { this._line = 0; }, @@ -39691,20 +39691,20 @@ Fse.prototype = { } } }; -function ET(t) { - return new Fse(t); +function _T(t) { + return new zse(t); } -function $Ot(t) { +function BOt(t) { return t[0]; } -function BOt(t) { +function FOt(t) { return t[1]; } function vf(t, e) { - var r = Kn(!0), n = null, i = ET, s = null, a = $se(o); - t = typeof t == "function" ? t : t === void 0 ? $Ot : Kn(t), e = typeof e == "function" ? e : e === void 0 ? BOt : Kn(e); + var r = Kn(!0), n = null, i = _T, s = null, a = Bse(o); + t = typeof t == "function" ? t : t === void 0 ? BOt : Kn(t), e = typeof e == "function" ? e : e === void 0 ? FOt : Kn(e); function o(l) { - var u, h = (l = Bse(l)).length, f, d = !1, p; + var u, h = (l = Fse(l)).length, f, d = !1, p; for (n == null && (s = i(p = a())), u = 0; u <= h; ++u) !(u < h && r(f = l[u], u, l)) === d && ((d = !d) ? s.lineStart() : s.lineEnd()), d && s.point(+t(f, u, l), +e(f, u, l)); if (p) @@ -39722,16 +39722,16 @@ function vf(t, e) { return arguments.length ? (l == null ? n = s = null : s = i(n = l), o) : n; }, o; } -function FOt(t, e) { +function zOt(t, e) { return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function zOt(t) { +function VOt(t) { return t; } -function VOt() { - var t = zOt, e = FOt, r = null, n = Kn(0), i = Kn(D4), s = Kn(0); +function UOt() { + var t = VOt, e = zOt, r = null, n = Kn(0), i = Kn(D4), s = Kn(0); function a(o) { - var l, u = (o = Bse(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(D4, Math.max(-D4, i.apply(this, arguments) - m)), y, b = Math.min(Math.abs(v) / u, s.apply(this, arguments)), w = b * (v < 0 ? -1 : 1), O; + var l, u = (o = Fse(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(D4, Math.max(-D4, i.apply(this, arguments) - m)), y, b = Math.min(Math.abs(v) / u, s.apply(this, arguments)), w = b * (v < 0 ? -1 : 1), O; for (l = 0; l < u; ++l) (O = g[p[l] = l] = +t(o[l], l, o)) > 0 && (d += O); for (e != null ? p.sort(function(S, C) { @@ -39763,7 +39763,7 @@ function VOt() { return arguments.length ? (s = typeof o == "function" ? o : Kn(+o), a) : s; }, a; } -class zse { +class Vse { constructor(e, r) { this._context = e, this._x = r; } @@ -39795,11 +39795,11 @@ class zse { this._x0 = e, this._y0 = r; } } -function UOt(t) { - return new zse(t, !0); -} function qOt(t) { - return new zse(t, !1); + return new Vse(t, !0); +} +function QOt(t) { + return new Vse(t, !1); } function yf() { } @@ -39813,10 +39813,10 @@ function M3(t, e, r) { (t._y0 + 4 * t._y1 + r) / 6 ); } -function _T(t) { +function AT(t) { this._context = t; } -_T.prototype = { +AT.prototype = { areaStart: function() { this._line = 0; }, @@ -39854,12 +39854,12 @@ _T.prototype = { } }; function X1(t) { - return new _T(t); + return new AT(t); } -function Vse(t) { +function Use(t) { this._context = t; } -Vse.prototype = { +Use.prototype = { areaStart: yf, areaEnd: yf, lineStart: function() { @@ -39899,13 +39899,13 @@ Vse.prototype = { this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function QOt(t) { - return new Vse(t); +function YOt(t) { + return new Use(t); } -function Use(t) { +function qse(t) { this._context = t; } -Use.prototype = { +qse.prototype = { areaStart: function() { this._line = 0; }, @@ -39940,13 +39940,13 @@ Use.prototype = { this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function YOt(t) { - return new Use(t); +function WOt(t) { + return new qse(t); } -function qse(t, e) { - this._basis = new _T(t), this._beta = e; +function Qse(t, e) { + this._basis = new AT(t), this._beta = e; } -qse.prototype = { +Qse.prototype = { lineStart: function() { this._x = [], this._y = [], this._basis.lineStart(); }, @@ -39964,9 +39964,9 @@ qse.prototype = { this._x.push(+t), this._y.push(+e); } }; -const WOt = function t(e) { +const GOt = function t(e) { function r(n) { - return e === 1 ? new _T(n) : new qse(n, e); + return e === 1 ? new AT(n) : new Qse(n, e); } return r.beta = function(n) { return t(+n); @@ -39982,10 +39982,10 @@ function D3(t, e, r) { t._y2 ); } -function DD(t, e) { +function ND(t, e) { this._context = t, this._k = (1 - e) / 6; } -DD.prototype = { +ND.prototype = { areaStart: function() { this._line = 0; }, @@ -40023,18 +40023,18 @@ DD.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const GOt = function t(e) { +const HOt = function t(e) { function r(n) { - return new DD(n, e); + return new ND(n, e); } return r.tension = function(n) { return t(+n); }, r; }(0); -function ND(t, e) { +function ID(t, e) { this._context = t, this._k = (1 - e) / 6; } -ND.prototype = { +ID.prototype = { areaStart: yf, areaEnd: yf, lineStart: function() { @@ -40074,18 +40074,18 @@ ND.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const HOt = function t(e) { +const XOt = function t(e) { function r(n) { - return new ND(n, e); + return new ID(n, e); } return r.tension = function(n) { return t(+n); }, r; }(0); -function ID(t, e) { +function PD(t, e) { this._context = t, this._k = (1 - e) / 6; } -ID.prototype = { +PD.prototype = { areaStart: function() { this._line = 0; }, @@ -40118,15 +40118,15 @@ ID.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const XOt = function t(e) { +const ZOt = function t(e) { function r(n) { - return new ID(n, e); + return new PD(n, e); } return r.tension = function(n) { return t(+n); }, r; }(0); -function PD(t, e, r) { +function $D(t, e, r) { var n = t._x1, i = t._y1, s = t._x2, a = t._y2; if (t._l01_a > Cs) { var o = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, l = 3 * t._l01_a * (t._l01_a + t._l12_a); @@ -40138,10 +40138,10 @@ function PD(t, e, r) { } t._context.bezierCurveTo(n, i, s, a, t._x2, t._y2); } -function Qse(t, e) { +function Yse(t, e) { this._context = t, this._alpha = e; } -Qse.prototype = { +Yse.prototype = { areaStart: function() { this._line = 0; }, @@ -40177,24 +40177,24 @@ Qse.prototype = { case 2: this._point = 3; default: - PD(this, t, e); + $D(this, t, e); break; } 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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const ZOt = function t(e) { +const jOt = function t(e) { function r(n) { - return e ? new Qse(n, e) : new DD(n, 0); + return e ? new Yse(n, e) : new ND(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Yse(t, e) { +function Wse(t, e) { this._context = t, this._alpha = e; } -Yse.prototype = { +Wse.prototype = { areaStart: yf, areaEnd: yf, lineStart: function() { @@ -40232,24 +40232,24 @@ Yse.prototype = { this._point = 3, this._x5 = t, this._y5 = e; break; default: - PD(this, t, e); + $D(this, t, e); break; } 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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const jOt = function t(e) { +const KOt = function t(e) { function r(n) { - return e ? new Yse(n, e) : new ND(n, 0); + return e ? new Wse(n, e) : new ID(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Wse(t, e) { +function Gse(t, e) { this._context = t, this._alpha = e; } -Wse.prototype = { +Gse.prototype = { areaStart: function() { this._line = 0; }, @@ -40280,24 +40280,24 @@ Wse.prototype = { case 3: this._point = 4; default: - PD(this, t, e); + $D(this, t, e); break; } 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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const KOt = function t(e) { +const JOt = function t(e) { function r(n) { - return e ? new Wse(n, e) : new ID(n, 0); + return e ? new Gse(n, e) : new PD(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Gse(t) { +function Hse(t) { this._context = t; } -Gse.prototype = { +Hse.prototype = { areaStart: yf, areaEnd: yf, lineStart: function() { @@ -40310,8 +40310,8 @@ Gse.prototype = { t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e)); } }; -function JOt(t) { - return new Gse(t); +function e4t(t) { + return new Hse(t); } function oq(t) { return t < 0 ? -1 : 1; @@ -40324,7 +40324,7 @@ function cq(t, e) { var r = t._x1 - t._x0; return r ? (3 * (t._y1 - t._y0) / r - e) / 2 : e; } -function G6(t, e, r) { +function H6(t, e, r) { var n = t._x0, i = t._y0, s = t._x1, a = t._y1, o = (s - n) / 3; t._context.bezierCurveTo(n + o, i + o * e, s - o, a - o * r, s, a); } @@ -40347,7 +40347,7 @@ N3.prototype = { this._context.lineTo(this._x1, this._y1); break; case 3: - G6(this, this._t0, cq(this, this._t0)); + H6(this, this._t0, cq(this, this._t0)); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; @@ -40363,26 +40363,26 @@ N3.prototype = { this._point = 2; break; case 2: - this._point = 3, G6(this, cq(this, r = lq(this, t, e)), r); + this._point = 3, H6(this, cq(this, r = lq(this, t, e)), r); break; default: - G6(this, this._t0, r = lq(this, t, e)); + H6(this, this._t0, r = lq(this, t, e)); break; } this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = r; } } }; -function Hse(t) { - this._context = new Xse(t); +function Xse(t) { + this._context = new Zse(t); } -(Hse.prototype = Object.create(N3.prototype)).point = function(t, e) { +(Xse.prototype = Object.create(N3.prototype)).point = function(t, e) { N3.prototype.point.call(this, e, t); }; -function Xse(t) { +function Zse(t) { this._context = t; } -Xse.prototype = { +Zse.prototype = { moveTo: function(t, e) { this._context.moveTo(e, t); }, @@ -40396,16 +40396,16 @@ Xse.prototype = { this._context.bezierCurveTo(e, t, n, r, s, i); } }; -function e4t(t) { +function t4t(t) { return new N3(t); } -function t4t(t) { - return new Hse(t); +function r4t(t) { + return new Xse(t); } -function Zse(t) { +function jse(t) { this._context = t; } -Zse.prototype = { +jse.prototype = { areaStart: function() { this._line = 0; }, @@ -40441,13 +40441,13 @@ function uq(t) { s[e] = 2 * t[e + 1] - i[e + 1]; return [i, s]; } -function r4t(t) { - return new Zse(t); +function n4t(t) { + return new jse(t); } -function AT(t, e) { +function LT(t, e) { this._context = t, this._t = e; } -AT.prototype = { +LT.prototype = { areaStart: function() { this._line = 0; }, @@ -40480,14 +40480,14 @@ AT.prototype = { this._x = t, this._y = e; } }; -function n4t(t) { - return new AT(t, 0.5); -} function i4t(t) { - return new AT(t, 0); + return new LT(t, 0.5); } function s4t(t) { - return new AT(t, 1); + return new LT(t, 0); +} +function a4t(t) { + return new LT(t, 1); } function Pp(t, e, r) { this.k = t, this.x = e, this.y = r; @@ -40530,56 +40530,56 @@ Pp.prototype = { }; new Pp(1, 0, 0); Pp.prototype; -var a4t = typeof global == "object" && global && global.Object === Object && global; -const jse = a4t; -var o4t = typeof self == "object" && self && self.Object === Object && self, l4t = jse || o4t || Function("return this")(); -const Gl = l4t; -var c4t = Gl.Symbol; -const Go = c4t; -var Kse = Object.prototype, u4t = Kse.hasOwnProperty, h4t = Kse.toString, Wm = Go ? Go.toStringTag : void 0; -function f4t(t) { - var e = u4t.call(t, Wm), r = t[Wm]; +var o4t = typeof global == "object" && global && global.Object === Object && global; +const Kse = o4t; +var l4t = typeof self == "object" && self && self.Object === Object && self, c4t = Kse || l4t || Function("return this")(); +const Gl = c4t; +var u4t = Gl.Symbol; +const Go = u4t; +var Jse = Object.prototype, h4t = Jse.hasOwnProperty, f4t = Jse.toString, Wm = Go ? Go.toStringTag : void 0; +function d4t(t) { + var e = h4t.call(t, Wm), r = t[Wm]; try { t[Wm] = void 0; var n = !0; } catch { } - var i = h4t.call(t); + var i = f4t.call(t); return n && (e ? t[Wm] = r : delete t[Wm]), i; } -var d4t = Object.prototype, p4t = d4t.toString; -function g4t(t) { - return p4t.call(t); +var p4t = Object.prototype, g4t = p4t.toString; +function m4t(t) { + return g4t.call(t); } -var m4t = "[object Null]", v4t = "[object Undefined]", hq = Go ? Go.toStringTag : void 0; +var v4t = "[object Null]", y4t = "[object Undefined]", hq = Go ? Go.toStringTag : void 0; function ah(t) { - return t == null ? t === void 0 ? v4t : m4t : hq && hq in Object(t) ? f4t(t) : g4t(t); + return t == null ? t === void 0 ? y4t : v4t : hq && hq in Object(t) ? d4t(t) : m4t(t); } -function Pa(t) { +function $a(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var y4t = "[object AsyncFunction]", b4t = "[object Function]", x4t = "[object GeneratorFunction]", w4t = "[object Proxy]"; +var b4t = "[object AsyncFunction]", x4t = "[object Function]", w4t = "[object GeneratorFunction]", O4t = "[object Proxy]"; function Ho(t) { - if (!Pa(t)) + if (!$a(t)) return !1; var e = ah(t); - return e == b4t || e == x4t || e == y4t || e == w4t; + return e == x4t || e == w4t || e == b4t || e == O4t; } -var O4t = Gl["__core-js_shared__"]; -const H6 = O4t; +var k4t = Gl["__core-js_shared__"]; +const X6 = k4t; var fq = function() { - var t = /[^.]+$/.exec(H6 && H6.keys && H6.keys.IE_PROTO || ""); + var t = /[^.]+$/.exec(X6 && X6.keys && X6.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function k4t(t) { +function S4t(t) { return !!fq && fq in t; } -var S4t = Function.prototype, T4t = S4t.toString; +var T4t = Function.prototype, C4t = T4t.toString; function q0(t) { if (t != null) { try { - return T4t.call(t); + return C4t.call(t); } catch { } try { @@ -40589,49 +40589,49 @@ function q0(t) { } return ""; } -var C4t = /[\\^$.*+?()[\]{}|]/g, E4t = /^\[object .+?Constructor\]$/, _4t = Function.prototype, A4t = Object.prototype, L4t = _4t.toString, R4t = A4t.hasOwnProperty, M4t = RegExp( - "^" + L4t.call(R4t).replace(C4t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var E4t = /[\\^$.*+?()[\]{}|]/g, _4t = /^\[object .+?Constructor\]$/, A4t = Function.prototype, L4t = Object.prototype, R4t = A4t.toString, M4t = L4t.hasOwnProperty, D4t = RegExp( + "^" + R4t.call(M4t).replace(E4t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function D4t(t) { - if (!Pa(t) || k4t(t)) +function N4t(t) { + if (!$a(t) || S4t(t)) return !1; - var e = Ho(t) ? M4t : E4t; + var e = Ho(t) ? D4t : _4t; return e.test(q0(t)); } -function N4t(t, e) { +function I4t(t, e) { return t == null ? void 0 : t[e]; } function Q0(t, e) { - var r = N4t(t, e); - return D4t(r) ? r : void 0; + var r = I4t(t, e); + return N4t(r) ? r : void 0; } -var I4t = Q0(Object, "create"); -const d2 = I4t; -function P4t() { +var P4t = Q0(Object, "create"); +const d2 = P4t; +function $4t() { this.__data__ = d2 ? d2(null) : {}, this.size = 0; } -function $4t(t) { +function B4t(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var B4t = "__lodash_hash_undefined__", F4t = Object.prototype, z4t = F4t.hasOwnProperty; -function V4t(t) { +var F4t = "__lodash_hash_undefined__", z4t = Object.prototype, V4t = z4t.hasOwnProperty; +function U4t(t) { var e = this.__data__; if (d2) { var r = e[t]; - return r === B4t ? void 0 : r; + return r === F4t ? void 0 : r; } - return z4t.call(e, t) ? e[t] : void 0; + return V4t.call(e, t) ? e[t] : void 0; } -var U4t = Object.prototype, q4t = U4t.hasOwnProperty; -function Q4t(t) { +var q4t = Object.prototype, Q4t = q4t.hasOwnProperty; +function Y4t(t) { var e = this.__data__; - return d2 ? e[t] !== void 0 : q4t.call(e, t); + return d2 ? e[t] !== void 0 : Q4t.call(e, t); } -var Y4t = "__lodash_hash_undefined__"; -function W4t(t, e) { +var W4t = "__lodash_hash_undefined__"; +function G4t(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = d2 && e === void 0 ? Y4t : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = d2 && e === void 0 ? W4t : e, this; } function o0(t) { var e = -1, r = t == null ? 0 : t.length; @@ -40640,40 +40640,40 @@ function o0(t) { this.set(n[0], n[1]); } } -o0.prototype.clear = P4t; -o0.prototype.delete = $4t; -o0.prototype.get = V4t; -o0.prototype.has = Q4t; -o0.prototype.set = W4t; -function G4t() { +o0.prototype.clear = $4t; +o0.prototype.delete = B4t; +o0.prototype.get = U4t; +o0.prototype.has = Y4t; +o0.prototype.set = G4t; +function H4t() { this.__data__ = [], this.size = 0; } function Z1(t, e) { return t === e || t !== t && e !== e; } -function LT(t, e) { +function RT(t, e) { for (var r = t.length; r--; ) if (Z1(t[r][0], e)) return r; return -1; } -var H4t = Array.prototype, X4t = H4t.splice; -function Z4t(t) { - var e = this.__data__, r = LT(e, t); +var X4t = Array.prototype, Z4t = X4t.splice; +function j4t(t) { + var e = this.__data__, r = RT(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : X4t.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : Z4t.call(e, r, 1), --this.size, !0; } -function j4t(t) { - var e = this.__data__, r = LT(e, t); +function K4t(t) { + var e = this.__data__, r = RT(e, t); return r < 0 ? void 0 : e[r][1]; } -function K4t(t) { - return LT(this.__data__, t) > -1; +function J4t(t) { + return RT(this.__data__, t) > -1; } -function J4t(t, e) { - var r = this.__data__, n = LT(r, t); +function e5t(t, e) { + var r = this.__data__, n = RT(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } function oh(t) { @@ -40683,40 +40683,40 @@ function oh(t) { this.set(n[0], n[1]); } } -oh.prototype.clear = G4t; -oh.prototype.delete = Z4t; -oh.prototype.get = j4t; -oh.prototype.has = K4t; -oh.prototype.set = J4t; -var e5t = Q0(Gl, "Map"); -const p2 = e5t; -function t5t() { +oh.prototype.clear = H4t; +oh.prototype.delete = j4t; +oh.prototype.get = K4t; +oh.prototype.has = J4t; +oh.prototype.set = e5t; +var t5t = Q0(Gl, "Map"); +const p2 = t5t; +function r5t() { this.size = 0, this.__data__ = { hash: new o0(), map: new (p2 || oh)(), string: new o0() }; } -function r5t(t) { +function n5t(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -function RT(t, e) { +function MT(t, e) { var r = t.__data__; - return r5t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; -} -function n5t(t) { - var e = RT(this, t).delete(t); - return this.size -= e ? 1 : 0, e; + return n5t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } function i5t(t) { - return RT(this, t).get(t); + var e = MT(this, t).delete(t); + return this.size -= e ? 1 : 0, e; } function s5t(t) { - return RT(this, t).has(t); + return MT(this, t).get(t); +} +function a5t(t) { + return MT(this, t).has(t); } -function a5t(t, e) { - var r = RT(this, t), n = r.size; +function o5t(t, e) { + var r = MT(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } function lh(t) { @@ -40726,15 +40726,15 @@ function lh(t) { this.set(n[0], n[1]); } } -lh.prototype.clear = t5t; -lh.prototype.delete = n5t; -lh.prototype.get = i5t; -lh.prototype.has = s5t; -lh.prototype.set = a5t; -var o5t = "Expected a function"; +lh.prototype.clear = r5t; +lh.prototype.delete = i5t; +lh.prototype.get = s5t; +lh.prototype.has = a5t; +lh.prototype.set = o5t; +var l5t = "Expected a function"; function j1(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(o5t); + throw new TypeError(l5t); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -40745,25 +40745,25 @@ function j1(t, e) { return r.cache = new (j1.Cache || lh)(), r; } j1.Cache = lh; -function l5t() { +function c5t() { this.__data__ = new oh(), this.size = 0; } -function c5t(t) { +function u5t(t) { var e = this.__data__, r = e.delete(t); return this.size = e.size, r; } -function u5t(t) { +function h5t(t) { return this.__data__.get(t); } -function h5t(t) { +function f5t(t) { return this.__data__.has(t); } -var f5t = 200; -function d5t(t, e) { +var d5t = 200; +function p5t(t, e) { var r = this.__data__; if (r instanceof oh) { var n = r.__data__; - if (!p2 || n.length < f5t - 1) + if (!p2 || n.length < d5t - 1) return n.push([t, e]), this.size = ++r.size, this; r = this.__data__ = new lh(n); } @@ -40773,19 +40773,19 @@ function wl(t) { var e = this.__data__ = new oh(t); this.size = e.size; } -wl.prototype.clear = l5t; -wl.prototype.delete = c5t; -wl.prototype.get = u5t; -wl.prototype.has = h5t; -wl.prototype.set = d5t; -var p5t = function() { +wl.prototype.clear = c5t; +wl.prototype.delete = u5t; +wl.prototype.get = h5t; +wl.prototype.has = f5t; +wl.prototype.set = p5t; +var g5t = function() { try { var t = Q0(Object, "defineProperty"); return t({}, "", {}), t; } catch { } }(); -const I3 = p5t; +const I3 = g5t; function hx(t, e, r) { e == "__proto__" && I3 ? I3(t, e, { configurable: !0, @@ -40794,10 +40794,10 @@ function hx(t, e, r) { writable: !0 }) : t[e] = r; } -function P8(t, e, r) { +function $8(t, e, r) { (r !== void 0 && !Z1(t[e], r) || r === void 0 && !(e in t)) && hx(t, e, r); } -function g5t(t) { +function m5t(t) { return function(e, r, n) { for (var i = -1, s = Object(e), a = n(e), o = a.length; o--; ) { var l = a[t ? o : ++i]; @@ -40807,36 +40807,36 @@ function g5t(t) { return e; }; } -var m5t = g5t(); -const $D = m5t; -var Jse = typeof exports == "object" && exports && !exports.nodeType && exports, dq = Jse && typeof module == "object" && module && !module.nodeType && module, v5t = dq && dq.exports === Jse, pq = v5t ? Gl.Buffer : void 0, gq = pq ? pq.allocUnsafe : void 0; -function eae(t, e) { +var v5t = m5t(); +const BD = v5t; +var eae = typeof exports == "object" && exports && !exports.nodeType && exports, dq = eae && typeof module == "object" && module && !module.nodeType && module, y5t = dq && dq.exports === eae, pq = y5t ? Gl.Buffer : void 0, gq = pq ? pq.allocUnsafe : void 0; +function tae(t, e) { if (e) return t.slice(); var r = t.length, n = gq ? gq(r) : new t.constructor(r); return t.copy(n), n; } -var y5t = Gl.Uint8Array; -const P3 = y5t; -function BD(t) { +var b5t = Gl.Uint8Array; +const P3 = b5t; +function FD(t) { var e = new t.constructor(t.byteLength); return new P3(e).set(new P3(t)), e; } -function tae(t, e) { - var r = e ? BD(t.buffer) : t.buffer; +function rae(t, e) { + var r = e ? FD(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.length); } -function rae(t, e) { +function nae(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var mq = Object.create, b5t = function() { +var mq = Object.create, x5t = function() { function t() { } return function(e) { - if (!Pa(e)) + if (!$a(e)) return {}; if (mq) return mq(e); @@ -40845,91 +40845,91 @@ var mq = Object.create, b5t = function() { return t.prototype = void 0, r; }; }(); -const x5t = b5t; -function nae(t, e) { +const w5t = x5t; +function iae(t, e) { return function(r) { return t(e(r)); }; } -var w5t = nae(Object.getPrototypeOf, Object); -const FD = w5t; -var O5t = Object.prototype; +var O5t = iae(Object.getPrototypeOf, Object); +const zD = O5t; +var k5t = Object.prototype; function fx(t) { - var e = t && t.constructor, r = typeof e == "function" && e.prototype || O5t; + var e = t && t.constructor, r = typeof e == "function" && e.prototype || k5t; return t === r; } -function iae(t) { - return typeof t.constructor == "function" && !fx(t) ? x5t(FD(t)) : {}; +function sae(t) { + return typeof t.constructor == "function" && !fx(t) ? w5t(zD(t)) : {}; } function Xo(t) { return t != null && typeof t == "object"; } -var k5t = "[object Arguments]"; +var S5t = "[object Arguments]"; function vq(t) { - return Xo(t) && ah(t) == k5t; + return Xo(t) && ah(t) == S5t; } -var sae = Object.prototype, S5t = sae.hasOwnProperty, T5t = sae.propertyIsEnumerable, C5t = vq(function() { +var aae = Object.prototype, T5t = aae.hasOwnProperty, C5t = aae.propertyIsEnumerable, E5t = vq(function() { return arguments; }()) ? vq : function(t) { - return Xo(t) && S5t.call(t, "callee") && !T5t.call(t, "callee"); + return Xo(t) && T5t.call(t, "callee") && !C5t.call(t, "callee"); }; -const Jg = C5t; -var E5t = Array.isArray; -const Sr = E5t; -var _5t = 9007199254740991; -function zD(t) { - return typeof t == "number" && t > -1 && t % 1 == 0 && t <= _5t; +const Jg = E5t; +var _5t = Array.isArray; +const Sr = _5t; +var A5t = 9007199254740991; +function VD(t) { + return typeof t == "number" && t > -1 && t % 1 == 0 && t <= A5t; } function Zc(t) { - return t != null && zD(t.length) && !Ho(t); + return t != null && VD(t.length) && !Ho(t); } function $3(t) { return Xo(t) && Zc(t); } -function A5t() { +function L5t() { return !1; } -var aae = typeof exports == "object" && exports && !exports.nodeType && exports, yq = aae && typeof module == "object" && module && !module.nodeType && module, L5t = yq && yq.exports === aae, bq = L5t ? Gl.Buffer : void 0, R5t = bq ? bq.isBuffer : void 0, M5t = R5t || A5t; -const e1 = M5t; -var D5t = "[object Object]", N5t = Function.prototype, I5t = Object.prototype, oae = N5t.toString, P5t = I5t.hasOwnProperty, $5t = oae.call(Object); -function B5t(t) { - if (!Xo(t) || ah(t) != D5t) +var oae = typeof exports == "object" && exports && !exports.nodeType && exports, yq = oae && typeof module == "object" && module && !module.nodeType && module, R5t = yq && yq.exports === oae, bq = R5t ? Gl.Buffer : void 0, M5t = bq ? bq.isBuffer : void 0, D5t = M5t || L5t; +const e1 = D5t; +var N5t = "[object Object]", I5t = Function.prototype, P5t = Object.prototype, lae = I5t.toString, $5t = P5t.hasOwnProperty, B5t = lae.call(Object); +function F5t(t) { + if (!Xo(t) || ah(t) != N5t) return !1; - var e = FD(t); + var e = zD(t); if (e === null) return !0; - var r = P5t.call(e, "constructor") && e.constructor; - return typeof r == "function" && r instanceof r && oae.call(r) == $5t; + var r = $5t.call(e, "constructor") && e.constructor; + return typeof r == "function" && r instanceof r && lae.call(r) == B5t; } -var F5t = "[object Arguments]", z5t = "[object Array]", V5t = "[object Boolean]", U5t = "[object Date]", q5t = "[object Error]", Q5t = "[object Function]", Y5t = "[object Map]", W5t = "[object Number]", G5t = "[object Object]", H5t = "[object RegExp]", X5t = "[object Set]", Z5t = "[object String]", j5t = "[object WeakMap]", K5t = "[object ArrayBuffer]", J5t = "[object DataView]", e3t = "[object Float32Array]", t3t = "[object Float64Array]", r3t = "[object Int8Array]", n3t = "[object Int16Array]", i3t = "[object Int32Array]", s3t = "[object Uint8Array]", a3t = "[object Uint8ClampedArray]", o3t = "[object Uint16Array]", l3t = "[object Uint32Array]", gn = {}; -gn[e3t] = gn[t3t] = gn[r3t] = gn[n3t] = gn[i3t] = gn[s3t] = gn[a3t] = gn[o3t] = gn[l3t] = !0; -gn[F5t] = gn[z5t] = gn[K5t] = gn[V5t] = gn[J5t] = gn[U5t] = gn[q5t] = gn[Q5t] = gn[Y5t] = gn[W5t] = gn[G5t] = gn[H5t] = gn[X5t] = gn[Z5t] = gn[j5t] = !1; -function c3t(t) { - return Xo(t) && zD(t.length) && !!gn[ah(t)]; +var z5t = "[object Arguments]", V5t = "[object Array]", U5t = "[object Boolean]", q5t = "[object Date]", Q5t = "[object Error]", Y5t = "[object Function]", W5t = "[object Map]", G5t = "[object Number]", H5t = "[object Object]", X5t = "[object RegExp]", Z5t = "[object Set]", j5t = "[object String]", K5t = "[object WeakMap]", J5t = "[object ArrayBuffer]", e3t = "[object DataView]", t3t = "[object Float32Array]", r3t = "[object Float64Array]", n3t = "[object Int8Array]", i3t = "[object Int16Array]", s3t = "[object Int32Array]", a3t = "[object Uint8Array]", o3t = "[object Uint8ClampedArray]", l3t = "[object Uint16Array]", c3t = "[object Uint32Array]", gn = {}; +gn[t3t] = gn[r3t] = gn[n3t] = gn[i3t] = gn[s3t] = gn[a3t] = gn[o3t] = gn[l3t] = gn[c3t] = !0; +gn[z5t] = gn[V5t] = gn[J5t] = gn[U5t] = gn[e3t] = gn[q5t] = gn[Q5t] = gn[Y5t] = gn[W5t] = gn[G5t] = gn[H5t] = gn[X5t] = gn[Z5t] = gn[j5t] = gn[K5t] = !1; +function u3t(t) { + return Xo(t) && VD(t.length) && !!gn[ah(t)]; } function K1(t) { return function(e) { return t(e); }; } -var lae = typeof exports == "object" && exports && !exports.nodeType && exports, sy = lae && typeof module == "object" && module && !module.nodeType && module, u3t = sy && sy.exports === lae, X6 = u3t && jse.process, h3t = function() { +var cae = typeof exports == "object" && exports && !exports.nodeType && exports, sy = cae && typeof module == "object" && module && !module.nodeType && module, h3t = sy && sy.exports === cae, Z6 = h3t && Kse.process, f3t = function() { try { var t = sy && sy.require && sy.require("util").types; - return t || X6 && X6.binding && X6.binding("util"); + return t || Z6 && Z6.binding && Z6.binding("util"); } catch { } }(); -const bf = h3t; -var xq = bf && bf.isTypedArray, f3t = xq ? K1(xq) : c3t; -const MT = f3t; -function $8(t, e) { +const bf = f3t; +var xq = bf && bf.isTypedArray, d3t = xq ? K1(xq) : u3t; +const DT = d3t; +function B8(t, e) { if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__") return t[e]; } -var d3t = Object.prototype, p3t = d3t.hasOwnProperty; +var p3t = Object.prototype, g3t = p3t.hasOwnProperty; function dx(t, e, r) { var n = t[e]; - (!(p3t.call(t, e) && Z1(n, r)) || r === void 0 && !(e in t)) && hx(t, e, r); + (!(g3t.call(t, e) && Z1(n, r)) || r === void 0 && !(e in t)) && hx(t, e, r); } function J1(t, e, r, n) { var i = !r; @@ -40940,72 +40940,72 @@ function J1(t, e, r, n) { } return r; } -function g3t(t, e) { +function m3t(t, e) { for (var r = -1, n = Array(t); ++r < t; ) n[r] = e(r); return n; } -var m3t = 9007199254740991, v3t = /^(?:0|[1-9]\d*)$/; -function DT(t, e) { +var v3t = 9007199254740991, y3t = /^(?:0|[1-9]\d*)$/; +function NT(t, e) { var r = typeof t; - return e = e == null ? m3t : e, !!e && (r == "number" || r != "symbol" && v3t.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? v3t : e, !!e && (r == "number" || r != "symbol" && y3t.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var y3t = Object.prototype, b3t = y3t.hasOwnProperty; -function cae(t, e) { - var r = Sr(t), n = !r && Jg(t), i = !r && !n && e1(t), s = !r && !n && !i && MT(t), a = r || n || i || s, o = a ? g3t(t.length, String) : [], l = o.length; +var b3t = Object.prototype, x3t = b3t.hasOwnProperty; +function uae(t, e) { + var r = Sr(t), n = !r && Jg(t), i = !r && !n && e1(t), s = !r && !n && !i && DT(t), a = r || n || i || s, o = a ? m3t(t.length, String) : [], l = o.length; for (var u in t) - (e || b3t.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || DT(u, l))) && o.push(u); + (e || x3t.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || NT(u, l))) && o.push(u); return o; } -function x3t(t) { +function w3t(t) { var e = []; if (t != null) for (var r in Object(t)) e.push(r); return e; } -var w3t = Object.prototype, O3t = w3t.hasOwnProperty; -function k3t(t) { - if (!Pa(t)) - return x3t(t); +var O3t = Object.prototype, k3t = O3t.hasOwnProperty; +function S3t(t) { + if (!$a(t)) + return w3t(t); var e = fx(t), r = []; for (var n in t) - n == "constructor" && (e || !O3t.call(t, n)) || r.push(n); + n == "constructor" && (e || !k3t.call(t, n)) || r.push(n); return r; } function Y0(t) { - return Zc(t) ? cae(t, !0) : k3t(t); + return Zc(t) ? uae(t, !0) : S3t(t); } -function S3t(t) { +function T3t(t) { return J1(t, Y0(t)); } -function T3t(t, e, r, n, i, s, a) { - var o = $8(t, r), l = $8(e, r), u = a.get(l); +function C3t(t, e, r, n, i, s, a) { + var o = B8(t, r), l = B8(e, r), u = a.get(l); if (u) { - P8(t, r, u); + $8(t, r, u); return; } var h = s ? s(o, l, r + "", t, e, a) : void 0, f = h === void 0; if (f) { - var d = Sr(l), p = !d && e1(l), g = !d && !p && MT(l); - h = l, d || p || g ? Sr(o) ? h = o : $3(o) ? h = rae(o) : p ? (f = !1, h = eae(l, !0)) : g ? (f = !1, h = tae(l, !0)) : h = [] : B5t(l) || Jg(l) ? (h = o, Jg(o) ? h = S3t(o) : (!Pa(o) || Ho(o)) && (h = iae(l))) : f = !1; + var d = Sr(l), p = !d && e1(l), g = !d && !p && DT(l); + h = l, d || p || g ? Sr(o) ? h = o : $3(o) ? h = nae(o) : p ? (f = !1, h = tae(l, !0)) : g ? (f = !1, h = rae(l, !0)) : h = [] : F5t(l) || Jg(l) ? (h = o, Jg(o) ? h = T3t(o) : (!$a(o) || Ho(o)) && (h = sae(l))) : f = !1; } - f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), P8(t, r, h); + f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), $8(t, r, h); } -function uae(t, e, r, n, i) { - t !== e && $D(e, function(s, a) { - if (i || (i = new wl()), Pa(s)) - T3t(t, e, a, r, uae, n, i); +function hae(t, e, r, n, i) { + t !== e && BD(e, function(s, a) { + if (i || (i = new wl()), $a(s)) + C3t(t, e, a, r, hae, n, i); else { - var o = n ? n($8(t, a), s, a + "", t, e, i) : void 0; - o === void 0 && (o = s), P8(t, a, o); + var o = n ? n(B8(t, a), s, a + "", t, e, i) : void 0; + o === void 0 && (o = s), $8(t, a, o); } }, Y0); } function Yu(t) { return t; } -function C3t(t, e, r) { +function E3t(t, e, r) { switch (r.length) { case 0: return t.call(e); @@ -41019,14 +41019,14 @@ function C3t(t, e, r) { return t.apply(e, r); } var wq = Math.max; -function hae(t, e, r) { +function fae(t, e, r) { return e = wq(e === void 0 ? t.length - 1 : e, 0), function() { for (var n = arguments, i = -1, s = wq(n.length - e, 0), a = Array(s); ++i < s; ) a[i] = n[e + i]; i = -1; for (var o = Array(e + 1); ++i < e; ) o[i] = n[i]; - return o[e] = r(a), C3t(t, this, o); + return o[e] = r(a), E3t(t, this, o); }; } function $p(t) { @@ -41034,7 +41034,7 @@ function $p(t) { return t; }; } -var E3t = I3 ? function(t, e) { +var _3t = I3 ? function(t, e) { return I3(t, "toString", { configurable: !0, enumerable: !1, @@ -41042,32 +41042,32 @@ var E3t = I3 ? function(t, e) { writable: !0 }); } : Yu; -const _3t = E3t; -var A3t = 800, L3t = 16, R3t = Date.now; -function M3t(t) { +const A3t = _3t; +var L3t = 800, R3t = 16, M3t = Date.now; +function D3t(t) { var e = 0, r = 0; return function() { - var n = R3t(), i = L3t - (n - r); + var n = M3t(), i = R3t - (n - r); if (r = n, i > 0) { - if (++e >= A3t) + if (++e >= L3t) return arguments[0]; } else e = 0; return t.apply(void 0, arguments); }; } -var D3t = M3t(_3t); -const fae = D3t; +var N3t = D3t(A3t); +const dae = N3t; function px(t, e) { - return fae(hae(t, e, Yu), t + ""); + return dae(fae(t, e, Yu), t + ""); } function l0(t, e, r) { - if (!Pa(r)) + if (!$a(r)) return !1; var n = typeof e; - return (n == "number" ? Zc(r) && DT(e, r.length) : n == "string" && e in r) ? Z1(r[e], t) : !1; + return (n == "number" ? Zc(r) && NT(e, r.length) : n == "string" && e in r) ? Z1(r[e], t) : !1; } -function dae(t) { +function pae(t) { return px(function(e, r) { var n = -1, i = r.length, s = i > 1 ? r[i - 1] : void 0, a = i > 2 ? r[2] : void 0; for (s = t.length > 3 && typeof s == "function" ? (i--, s) : void 0, a && l0(r[0], r[1], a) && (s = i < 3 ? void 0 : s, i = 1), e = Object(e); ++n < i; ) { @@ -41077,33 +41077,33 @@ function dae(t) { return e; }); } -var N3t = dae(function(t, e, r) { - uae(t, e, r); +var I3t = pae(function(t, e, r) { + hae(t, e, r); }); -const B3 = N3t; -var pae = "\u200B", I3t = { +const B3 = I3t; +var gae = "\u200B", P3t = { curveBasis: X1, - curveBasisClosed: QOt, - curveBasisOpen: YOt, - curveBumpX: UOt, - curveBumpY: qOt, - curveBundle: WOt, - curveCardinalClosed: HOt, - curveCardinalOpen: XOt, - curveCardinal: GOt, - curveCatmullRomClosed: jOt, - curveCatmullRomOpen: KOt, - curveCatmullRom: ZOt, - curveLinear: ET, - curveLinearClosed: JOt, - curveMonotoneX: e4t, - curveMonotoneY: t4t, - curveNatural: r4t, - curveStep: n4t, - curveStepAfter: s4t, - curveStepBefore: i4t -}, P3t = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, $3t = /* @__PURE__ */ x(function(t, e) { - const r = gae(t, /(?:init\b)|(?:initialize\b)/); + curveBasisClosed: YOt, + curveBasisOpen: WOt, + curveBumpX: qOt, + curveBumpY: QOt, + curveBundle: GOt, + curveCardinalClosed: XOt, + curveCardinalOpen: ZOt, + curveCardinal: HOt, + curveCatmullRomClosed: KOt, + curveCatmullRomOpen: JOt, + curveCatmullRom: jOt, + curveLinear: _T, + curveLinearClosed: e4t, + curveMonotoneX: t4t, + curveMonotoneY: r4t, + curveNatural: n4t, + curveStep: i4t, + curveStepAfter: a4t, + curveStepBefore: s4t +}, $3t = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, B3t = /* @__PURE__ */ x(function(t, e) { + const r = mae(t, /(?:init\b)|(?:initialize\b)/); let n = {}; if (Array.isArray(r)) { const a = r.map((o) => o.args); @@ -41112,14 +41112,14 @@ var pae = "\u200B", I3t = { n = r.args; if (!n) return; - let i = pD(t, e); + let i = gD(t, e); const s = "config"; return n[s] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), n[i] = n[s], delete n[s]), n; -}, "detectInit"), gae = /* @__PURE__ */ x(function(t, e = null) { +}, "detectInit"), mae = /* @__PURE__ */ x(function(t, e = null) { var r, n; try { const i = new RegExp( - `[%]{2}(?![{]${P3t.source})(?=[}][%]{2}).* + `[%]{2}(?![{]${$3t.source})(?=[}][%]{2}).* `, "ig" ); @@ -41139,9 +41139,9 @@ var pae = "\u200B", I3t = { `ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'` ), { type: void 0, args: null }; } -}, "detectDirective"), B3t = /* @__PURE__ */ x(function(t) { +}, "detectDirective"), F3t = /* @__PURE__ */ x(function(t) { return t.replace(ty, ""); -}, "removeDirectives"), F3t = /* @__PURE__ */ x(function(t, e) { +}, "removeDirectives"), z3t = /* @__PURE__ */ x(function(t, e) { for (const [r, n] of e.entries()) if (n.match(t)) return r; @@ -41152,16 +41152,16 @@ function gx(t, e) { if (!t) return e; const r = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`; - return (n = I3t[r]) != null ? n : e; + return (n = P3t[r]) != null ? n : e; } x(gx, "interpolateToCurve"); -function mae(t, e) { +function vae(t, e) { const r = t.trim(); if (!!r) return e.securityLevel !== "loose" ? zf(r) : r; } -x(mae, "formatUrl"); -var z3t = /* @__PURE__ */ x((t, ...e) => { +x(vae, "formatUrl"); +var V3t = /* @__PURE__ */ x((t, ...e) => { const r = t.split("."), n = r.length - 1, i = r[n]; let s = window; for (let a = 0; a < n; a++) @@ -41171,31 +41171,31 @@ var z3t = /* @__PURE__ */ x((t, ...e) => { } s[i](...e); }, "runFunc"); -function VD(t, e) { +function UD(t, e) { return !t || !e ? 0 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); } -x(VD, "distance"); -function vae(t) { +x(UD, "distance"); +function yae(t) { let e, r = 0; t.forEach((i) => { - r += VD(i, e), e = i; + r += UD(i, e), e = i; }); const n = r / 2; - return UD(t, n); + return qD(t, n); } -x(vae, "traverseEdge"); -function yae(t) { - return t.length === 1 ? t[0] : vae(t); +x(yae, "traverseEdge"); +function bae(t) { + return t.length === 1 ? t[0] : yae(t); } -x(yae, "calcLabelPosition"); +x(bae, "calcLabelPosition"); var Oq = /* @__PURE__ */ x((t, e = 2) => { const r = Math.pow(10, e); return Math.round(t * r) / r; -}, "roundNumber"), UD = /* @__PURE__ */ x((t, e) => { +}, "roundNumber"), qD = /* @__PURE__ */ x((t, e) => { let r, n = e; for (const i of t) { if (r) { - const s = VD(i, r); + const s = UD(i, r); if (s < n) n -= s; else { @@ -41214,18 +41214,18 @@ var Oq = /* @__PURE__ */ x((t, e = 2) => { r = i; } throw new Error("Could not find a suitable point for the given distance"); -}, "calculatePoint"), V3t = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePoint"), U3t = /* @__PURE__ */ x((t, e, r) => { X.info(`our points ${JSON.stringify(e)}`), e[0] !== r && (e = e.reverse()); - const i = UD(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - i.y, e[0].x - i.x), o = { x: 0, y: 0 }; + const i = qD(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - i.y, e[0].x - i.x), o = { x: 0, y: 0 }; return o.x = Math.sin(a) * s + (e[0].x + i.x) / 2, o.y = -Math.cos(a) * s + (e[0].y + i.y) / 2, o; }, "calcCardinalityPosition"); -function bae(t, e, r) { +function xae(t, e, r) { const n = structuredClone(r); X.info("our points", n), e !== "start_left" && e !== "start_right" && n.reverse(); - const i = 25 + t, s = UD(n, i), a = 10 + t * 0.5, o = Math.atan2(n[0].y - s.y, n[0].x - s.x), l = { x: 0, y: 0 }; + const i = 25 + t, s = qD(n, i), a = 10 + t * 0.5, o = Math.atan2(n[0].y - s.y, n[0].x - s.x), l = { x: 0, y: 0 }; return e === "start_left" ? (l.x = Math.sin(o + Math.PI) * a + (n[0].x + s.x) / 2, l.y = -Math.cos(o + Math.PI) * a + (n[0].y + s.y) / 2) : e === "end_right" ? (l.x = Math.sin(o - Math.PI) * a + (n[0].x + s.x) / 2 - 5, l.y = -Math.cos(o - Math.PI) * a + (n[0].y + s.y) / 2 - 5) : e === "end_left" ? (l.x = Math.sin(o) * a + (n[0].x + s.x) / 2 - 5, l.y = -Math.cos(o) * a + (n[0].y + s.y) / 2 - 5) : (l.x = Math.sin(o) * a + (n[0].x + s.x) / 2, l.y = -Math.cos(o) * a + (n[0].y + s.y) / 2), l; } -x(bae, "calcTerminalLabelPosition"); +x(xae, "calcTerminalLabelPosition"); function mx(t) { let e = "", r = ""; for (const n of t) @@ -41233,16 +41233,16 @@ function mx(t) { return { style: e, labelStyle: r }; } x(mx, "getStylesFromArray"); -var kq = 0, xae = /* @__PURE__ */ x(() => (kq++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + kq), "generateId"); -function wae(t) { +var kq = 0, wae = /* @__PURE__ */ x(() => (kq++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + kq), "generateId"); +function Oae(t) { let e = ""; const r = "0123456789abcdef", n = r.length; for (let i = 0; i < t; i++) e += r.charAt(Math.floor(Math.random() * n)); return e; } -x(wae, "makeRandomHex"); -var Oae = /* @__PURE__ */ x((t) => wae(t.length), "random"), U3t = /* @__PURE__ */ x(function() { +x(Oae, "makeRandomHex"); +var kae = /* @__PURE__ */ x((t) => Oae(t.length), "random"), q3t = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -41257,12 +41257,12 @@ var Oae = /* @__PURE__ */ x((t) => wae(t.length), "random"), U3t = /* @__PURE__ valign: void 0, text: "" }; -}, "getTextObj"), q3t = /* @__PURE__ */ x(function(t, e) { +}, "getTextObj"), Q3t = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(at.lineBreakRegex, " "), [, n] = W0(e.fontSize), i = t.append("text"); i.attr("x", e.x), i.attr("y", e.y), i.style("text-anchor", e.anchor), i.style("font-family", e.fontFamily), i.style("font-size", n), i.style("font-weight", e.fontWeight), i.attr("fill", e.fill), e.class !== void 0 && i.attr("class", e.class); const s = i.append("tspan"); return s.attr("x", e.x + e.textMargin * 2), s.attr("fill", e.fill), s.text(r), i; -}, "drawSimpleText"), kae = j1( +}, "drawSimpleText"), Sae = j1( (t, e, r) => { if (!t || (r = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", joinWith: "
" }, @@ -41274,7 +41274,7 @@ var Oae = /* @__PURE__ */ x((t) => wae(t.length), "random"), U3t = /* @__PURE__ return n.forEach((a, o) => { const l = Ol(`${a} `, r), u = Ol(s, r); if (l > e) { - const { hyphenatedStrings: d, remainingWord: p } = Q3t(a, e, "-", r); + const { hyphenatedStrings: d, remainingWord: p } = Y3t(a, e, "-", r); i.push(s, ...d), s = p; } else u + l >= e ? (i.push(s), s = a) : s = [s, a].filter(Boolean).join(" "); @@ -41282,7 +41282,7 @@ var Oae = /* @__PURE__ */ x((t) => wae(t.length), "random"), U3t = /* @__PURE__ }), i.filter((a) => a !== "").join(r.joinWith); }, (t, e, r) => `${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}` -), Q3t = j1( +), Y3t = j1( (t, e, r = "-", n) => { n = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 }, @@ -41302,14 +41302,14 @@ var Oae = /* @__PURE__ */ x((t) => wae(t.length), "random"), U3t = /* @__PURE__ (t, e, r = "-", n) => `${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}` ); function F3(t, e) { - return qD(t, e).height; + return QD(t, e).height; } x(F3, "calculateTextHeight"); function Ol(t, e) { - return qD(t, e).width; + return QD(t, e).width; } x(Ol, "calculateTextWidth"); -var qD = j1( +var QD = j1( (t, e) => { const { fontSize: r = 12, fontFamily: n = "Arial", fontWeight: i = 400 } = e; if (!t) @@ -41322,9 +41322,9 @@ var qD = j1( let p = 0; const g = { width: 0, height: 0, lineHeight: 0 }; for (const m of o) { - const v = U3t(); - v.text = m || pae; - const y = q3t(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); + const v = q3t(); + v.text = m || gae; + const y = Q3t(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); if (b.width === 0 && b.height === 0) throw new Error("svg element not in render tree"); g.width = Math.round(Math.max(g.width, b.width)), p = Math.round(b.height), g.height += p, g.lineHeight = Math.round(Math.max(g.lineHeight, p)); @@ -41336,20 +41336,20 @@ var qD = j1( return l[f]; }, (t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}` -), cb, Y3t = (cb = class { +), cb, W3t = (cb = class { constructor(e = !1, r) { this.count = 0, this.count = r ? r.length : 0, this.next = e ? () => this.count++ : () => Date.now(); } }, (() => { x(cb, "InitIDGenerator"); -})(), cb), Jw, W3t = /* @__PURE__ */ x(function(t) { +})(), cb), Jw, G3t = /* @__PURE__ */ x(function(t) { return Jw = Jw || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Jw.innerHTML = t, unescape(Jw.textContent); }, "entityDecode"); -function QD(t) { +function YD(t) { return "str" in t; } -x(QD, "isDetailedError"); -var G3t = /* @__PURE__ */ x((t, e, r, n) => { +x(YD, "isDetailedError"); +var H3t = /* @__PURE__ */ x((t, e, r, n) => { var s; if (!n) return; @@ -41367,28 +41367,28 @@ function ch(t, e) { x(ch, "cleanAndMerge"); var sr = { assignWithDepth: Ci, - wrapLabel: kae, + wrapLabel: Sae, calculateTextHeight: F3, calculateTextWidth: Ol, - calculateTextDimensions: qD, + calculateTextDimensions: QD, cleanAndMerge: ch, - detectInit: $3t, - detectDirective: gae, - isSubstringInArray: F3t, + detectInit: B3t, + detectDirective: mae, + isSubstringInArray: z3t, interpolateToCurve: gx, - calcLabelPosition: yae, - calcCardinalityPosition: V3t, - calcTerminalLabelPosition: bae, - formatUrl: mae, + calcLabelPosition: bae, + calcCardinalityPosition: U3t, + calcTerminalLabelPosition: xae, + formatUrl: vae, getStylesFromArray: mx, - generateId: xae, - random: Oae, - runFunc: z3t, - entityDecode: W3t, - insertTitle: G3t, + generateId: wae, + random: kae, + runFunc: V3t, + entityDecode: G3t, + insertTitle: H3t, parseFontSize: W0, - InitIDGenerator: Y3t -}, H3t = /* @__PURE__ */ x(function(t) { + InitIDGenerator: W3t +}, X3t = /* @__PURE__ */ x(function(t) { let e = t; return e = e.replace(/style.*:\S*#.*;/g, function(r) { return r.substring(0, r.length - 1); @@ -41400,12 +41400,12 @@ var sr = { }), e; }, "encodeEntities"), c0 = /* @__PURE__ */ x(function(t) { return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";"); -}, "decodeEntities"), Sae = /* @__PURE__ */ x((t, e, { +}, "decodeEntities"), Tae = /* @__PURE__ */ x((t, e, { counter: r = 0, prefix: n, suffix: i }) => `${n ? `${n}_` : ""}${t}_${e}_${r}${i ? `_${i}` : ""}`, "getEdgeId"); -function YD() { +function WD() { return { async: !1, breaks: !1, @@ -41419,37 +41419,37 @@ function YD() { walkTokens: null }; } -let G0 = YD(); -function Tae(t) { +let G0 = WD(); +function Cae(t) { G0 = t; } -const Cae = /[&<>"']/, X3t = new RegExp(Cae.source, "g"), Eae = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Z3t = new RegExp(Eae.source, "g"), j3t = { +const Eae = /[&<>"']/, Z3t = new RegExp(Eae.source, "g"), _ae = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, j3t = new RegExp(_ae.source, "g"), K3t = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Sq = (t) => j3t[t]; -function Ka(t, e) { +}, Sq = (t) => K3t[t]; +function Ja(t, e) { if (e) { - if (Cae.test(t)) - return t.replace(X3t, Sq); - } else if (Eae.test(t)) - return t.replace(Z3t, Sq); + if (Eae.test(t)) + return t.replace(Z3t, Sq); + } else if (_ae.test(t)) + return t.replace(j3t, Sq); return t; } -const K3t = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; -function J3t(t) { - return t.replace(K3t, (e, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : "")); +const J3t = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; +function ekt(t) { + return t.replace(J3t, (e, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : "")); } -const ekt = /(^|[^\[])\^/g; +const tkt = /(^|[^\[])\^/g; function Jr(t, e) { let r = typeof t == "string" ? t : t.source; e = e || ""; const n = { replace: (i, s) => { let a = typeof s == "string" ? s : s.source; - return a = a.replace(ekt, "$1"), r = r.replace(i, a), n; + return a = a.replace(tkt, "$1"), r = r.replace(i, a), n; }, getRegex: () => new RegExp(r, e) }; @@ -41498,7 +41498,7 @@ function Gm(t, e, r) { } return t.slice(0, n - i); } -function tkt(t, e) { +function rkt(t, e) { if (t.indexOf(e[1]) === -1) return -1; let r = 0; @@ -41512,7 +41512,7 @@ function tkt(t, e) { return -1; } function Eq(t, e, r, n) { - const i = e.href, s = e.title ? Ka(e.title) : null, a = t[1].replace(/\\([\[\]])/g, "$1"); + const i = e.href, s = e.title ? Ja(e.title) : null, a = t[1].replace(/\\([\[\]])/g, "$1"); if (t[0].charAt(0) !== "!") { n.state.inLink = !0; const o = { @@ -41530,10 +41530,10 @@ function Eq(t, e, r, n) { raw: r, href: i, title: s, - text: Ka(a) + text: Ja(a) }; } -function rkt(t, e) { +function nkt(t, e) { const r = t.match(/^(\s+)(?:```)/); if (r === null) return e; @@ -41579,7 +41579,7 @@ class z3 { fences(e) { const r = this.rules.block.fences.exec(e); if (r) { - const n = r[0], i = rkt(n, r[3] || ""); + const n = r[0], i = nkt(n, r[3] || ""); return { type: "code", raw: n, @@ -41832,7 +41832,7 @@ ${f}` : f; return { type: "escape", raw: r[0], - text: Ka(r[1]) + text: Ja(r[1]) }; } tag(e) { @@ -41858,7 +41858,7 @@ ${f}` : f; if ((n.length - a.length) % 2 === 0) return; } else { - const a = tkt(r[2], "()"); + const a = rkt(r[2], "()"); if (a > -1) { const l = (r[0].indexOf("!") === 0 ? 5 : 4) + r[1].length + a; r[2] = r[2].substring(0, a), r[0] = r[0].substring(0, l).trim(), r[3] = ""; @@ -41937,7 +41937,7 @@ ${f}` : f; if (r) { let n = r[2].replace(/\n/g, " "); const i = /[^ ]/.test(n), s = /^ /.test(n) && / $/.test(n); - return i && s && (n = n.substring(1, n.length - 1)), n = Ka(n, !0), { + return i && s && (n = n.substring(1, n.length - 1)), n = Ja(n, !0), { type: "codespan", raw: r[0], text: n @@ -41966,7 +41966,7 @@ ${f}` : f; const r = this.rules.inline.autolink.exec(e); if (r) { let n, i; - return r[2] === "@" ? (n = Ka(r[1]), i = "mailto:" + n) : (n = Ka(r[1]), i = n), { + return r[2] === "@" ? (n = Ja(r[1]), i = "mailto:" + n) : (n = Ja(r[1]), i = n), { type: "link", raw: r[0], text: n, @@ -41987,13 +41987,13 @@ ${f}` : f; if (r = this.rules.inline.url.exec(e)) { let s, a; if (r[2] === "@") - s = Ka(r[0]), a = "mailto:" + s; + s = Ja(r[0]), a = "mailto:" + s; else { let o; do o = r[0], r[0] = (i = (n = this.rules.inline._backpedal.exec(r[0])) == null ? void 0 : n[0]) != null ? i : ""; while (o !== r[0]); - s = Ka(r[0]), r[1] === "www." ? a = "http://" + r[0] : a = r[0]; + s = Ja(r[0]), r[1] === "www." ? a = "http://" + r[0] : a = r[0]; } return { type: "link", @@ -42014,7 +42014,7 @@ ${f}` : f; const r = this.rules.inline.text.exec(e); if (r) { let n; - return this.lexer.state.inRawBlock ? n = r[0] : n = Ka(r[0]), { + return this.lexer.state.inRawBlock ? n = r[0] : n = Ja(r[0]), { type: "text", raw: r[0], text: n @@ -42022,77 +42022,77 @@ ${f}` : f; } } } -const nkt = /^(?: *(?:\n|$))+/, ikt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, skt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, vx = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, akt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, _ae = /(?:[*+-]|\d{1,9}[.)])/, Aae = Jr(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, _ae).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), WD = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, okt = /^[^\n]+/, GD = /(?!\s*\])(?:\\.|[^\[\]\\])+/, lkt = Jr(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", GD).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ckt = Jr(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, _ae).getRegex(), NT = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", HD = /|$))/, ukt = Jr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", HD).replace("tag", NT).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Lae = Jr(WD).replace("hr", vx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", NT).getRegex(), hkt = Jr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Lae).getRegex(), XD = { - blockquote: hkt, - code: ikt, - def: lkt, - fences: skt, - heading: akt, +const ikt = /^(?: *(?:\n|$))+/, skt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, akt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, vx = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, okt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Aae = /(?:[*+-]|\d{1,9}[.)])/, Lae = Jr(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Aae).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), GD = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, lkt = /^[^\n]+/, HD = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ckt = Jr(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", HD).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ukt = Jr(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Aae).getRegex(), IT = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", XD = /|$))/, hkt = Jr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", XD).replace("tag", IT).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Rae = Jr(GD).replace("hr", vx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", IT).getRegex(), fkt = Jr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Rae).getRegex(), ZD = { + blockquote: fkt, + code: skt, + def: ckt, + fences: akt, + heading: okt, hr: vx, - html: ukt, - lheading: Aae, - list: ckt, - newline: nkt, - paragraph: Lae, + html: hkt, + lheading: Lae, + list: ukt, + newline: ikt, + paragraph: Rae, table: ay, - text: okt -}, _q = Jr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", vx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", NT).getRegex(), fkt = { - ...XD, + text: lkt +}, _q = Jr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", vx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", IT).getRegex(), dkt = { + ...ZD, table: _q, - paragraph: Jr(WD).replace("hr", vx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", _q).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", NT).getRegex() -}, dkt = { - ...XD, - html: Jr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", HD).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), + paragraph: Jr(GD).replace("hr", vx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", _q).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", IT).getRegex() +}, pkt = { + ...ZD, + html: Jr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", XD).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: ay, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, - paragraph: Jr(WD).replace("hr", vx).replace("heading", ` *#{1,6} *[^ -]`).replace("lheading", Aae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, Rae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pkt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Mae = /^( {2,}|\\)\n(?!\s*$)/, gkt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, ykt = Jr(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, yx).getRegex(), bkt = Jr("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, yx).getRegex(), xkt = Jr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, yx).getRegex(), wkt = Jr(/\\([punct])/, "gu").replace(/punct/g, yx).getRegex(), Okt = Jr(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[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])?)+(?![-_])/).getRegex(), kkt = Jr(HD).replace("(?:-->|$)", "-->").getRegex(), Skt = Jr("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", kkt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), V3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Tkt = Jr(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", V3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Dae = Jr(/^!?\[(label)\]\[(ref)\]/).replace("label", V3).replace("ref", GD).getRegex(), Nae = Jr(/^!?\[(ref)\](?:\[\])?/).replace("ref", GD).getRegex(), Ckt = Jr("reflink|nolink(?!\\()", "g").replace("reflink", Dae).replace("nolink", Nae).getRegex(), ZD = { + paragraph: Jr(GD).replace("hr", vx).replace("heading", ` *#{1,6} *[^ +]`).replace("lheading", Lae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() +}, Mae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, gkt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Dae = /^( {2,}|\\)\n(?!\s*$)/, mkt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, bkt = Jr(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, yx).getRegex(), xkt = Jr("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, yx).getRegex(), wkt = Jr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, yx).getRegex(), Okt = Jr(/\\([punct])/, "gu").replace(/punct/g, yx).getRegex(), kkt = Jr(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[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])?)+(?![-_])/).getRegex(), Skt = Jr(XD).replace("(?:-->|$)", "-->").getRegex(), Tkt = Jr("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Skt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), V3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ckt = Jr(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", V3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Nae = Jr(/^!?\[(label)\]\[(ref)\]/).replace("label", V3).replace("ref", HD).getRegex(), Iae = Jr(/^!?\[(ref)\](?:\[\])?/).replace("ref", HD).getRegex(), Ekt = Jr("reflink|nolink(?!\\()", "g").replace("reflink", Nae).replace("nolink", Iae).getRegex(), jD = { _backpedal: ay, - anyPunctuation: wkt, - autolink: Okt, - blockSkip: vkt, - br: Mae, - code: pkt, + anyPunctuation: Okt, + autolink: kkt, + blockSkip: ykt, + br: Dae, + code: gkt, del: ay, - emStrongLDelim: ykt, - emStrongRDelimAst: bkt, - emStrongRDelimUnd: xkt, - escape: Rae, - link: Tkt, - nolink: Nae, - punctuation: mkt, - reflink: Dae, - reflinkSearch: Ckt, - tag: Skt, - text: gkt, + emStrongLDelim: bkt, + emStrongRDelimAst: xkt, + emStrongRDelimUnd: wkt, + escape: Mae, + link: Ckt, + nolink: Iae, + punctuation: vkt, + reflink: Nae, + reflinkSearch: Ekt, + tag: Tkt, + text: mkt, url: ay -}, Ekt = { - ...ZD, +}, _kt = { + ...jD, link: Jr(/^!?\[(label)\]\((.*?)\)/).replace("label", V3).getRegex(), reflink: Jr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", V3).getRegex() -}, B8 = { - ...ZD, - escape: Jr(Rae).replace("])", "~|])").getRegex(), +}, F8 = { + ...jD, + escape: Jr(Mae).replace("])", "~|])").getRegex(), url: Jr(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\' + (n ? s : Ka(s, !0)) + ` -` : "
" + (n ? s : Ka(s, !0)) + `
+ return i ? '
' + (n ? s : Ja(s, !0)) + `
+` : "
" + (n ? s : Ja(s, !0)) + `
`; } blockquote({ tokens: e }) { @@ -42431,7 +42431,7 @@ ${e} return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : e.text; } } -class jD { +class KD { strong({ text: e }) { return e; } @@ -42465,7 +42465,7 @@ class wc { Or(this, "options"); Or(this, "renderer"); Or(this, "textRenderer"); - this.options = e || G0, this.options.renderer = this.options.renderer || new U3(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new jD(); + this.options = e || G0, this.options.renderer = this.options.renderer || new U3(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new KD(); } static parse(e, r) { return new wc(r).parse(e); @@ -42630,19 +42630,19 @@ Or(oy, "passThroughHooks", /* @__PURE__ */ new Set([ "postprocess", "processAllTokens" ])); -var OS, Iae, ub, F8, kS, Pae; -class Akt { +var kS, Pae, ub, z8, SS, $ae; +class Lkt { constructor(...e) { - nw(this, OS); - nw(this, ub); nw(this, kS); - Or(this, "defaults", YD()); + nw(this, ub); + nw(this, SS); + Or(this, "defaults", WD()); Or(this, "options", this.setOptions); - Or(this, "parse", Tm(this, ub, F8).call(this, xc.lex, wc.parse)); - Or(this, "parseInline", Tm(this, ub, F8).call(this, xc.lexInline, wc.parseInline)); + Or(this, "parse", Tm(this, ub, z8).call(this, xc.lex, wc.parse)); + Or(this, "parseInline", Tm(this, ub, z8).call(this, xc.lexInline, wc.parseInline)); Or(this, "Parser", wc); Or(this, "Renderer", U3); - Or(this, "TextRenderer", jD); + Or(this, "TextRenderer", KD); Or(this, "Lexer", xc); Or(this, "Tokenizer", z3); Or(this, "Hooks", oy); @@ -42707,7 +42707,7 @@ class Akt { continue; const o = a; let l = n.renderer[o]; - n.useNewRenderer || (l = Tm(this, OS, Iae).call(this, l, o, s)); + n.useNewRenderer || (l = Tm(this, kS, Pae).call(this, l, o, s)); const u = s[o]; s[o] = (...h) => { let f = l.apply(s, h); @@ -42771,11 +42771,11 @@ class Akt { return wc.parse(e, r != null ? r : this.defaults); } } -OS = new WeakSet(), Iae = function(e, r, n) { +kS = new WeakSet(), Pae = function(e, r, n) { switch (r) { case "heading": return function(i) { - return !i.type || i.type !== r ? e.apply(this, arguments) : e.call(this, n.parser.parseInline(i.tokens), i.depth, J3t(n.parser.parseInline(i.tokens, n.parser.textRenderer))); + return !i.type || i.type !== r ? e.apply(this, arguments) : e.call(this, n.parser.parseInline(i.tokens), i.depth, ekt(n.parser.parseInline(i.tokens, n.parser.textRenderer))); }; case "code": return function(i) { @@ -42886,11 +42886,11 @@ OS = new WeakSet(), Iae = function(e, r, n) { }; } return e; -}, ub = new WeakSet(), F8 = function(e, r) { +}, ub = new WeakSet(), z8 = function(e, r) { return (n, i) => { const s = { ...i }, a = { ...this.defaults, ...s }; this.defaults.async === !0 && s.async === !1 && (a.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), a.async = !0); - const o = Tm(this, kS, Pae).call(this, !!a.silent, !!a.async); + const o = Tm(this, SS, $ae).call(this, !!a.silent, !!a.async); if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null")); if (typeof n != "string") @@ -42907,11 +42907,11 @@ OS = new WeakSet(), Iae = function(e, r, n) { return o(l); } }; -}, kS = new WeakSet(), Pae = function(e, r) { +}, SS = new WeakSet(), $ae = function(e, r) { return (n) => { if (n.message += ` Please report this to https://github.com/markedjs/marked.`, e) { - const i = "

An error occurred:

" + Ka(n.message + "", !0) + "
"; + const i = "

An error occurred:

" + Ja(n.message + "", !0) + "
"; return r ? Promise.resolve(i) : i; } if (r) @@ -42919,17 +42919,17 @@ Please report this to https://github.com/markedjs/marked.`, e) { throw n; }; }; -const u0 = new Akt(); +const u0 = new Lkt(); function Ur(t, e) { return u0.parse(t, e); } Ur.options = Ur.setOptions = function(t) { - return u0.setOptions(t), Ur.defaults = u0.defaults, Tae(Ur.defaults), Ur; + return u0.setOptions(t), Ur.defaults = u0.defaults, Cae(Ur.defaults), Ur; }; -Ur.getDefaults = YD; +Ur.getDefaults = WD; Ur.defaults = G0; Ur.use = function(...t) { - return u0.use(...t), Ur.defaults = u0.defaults, Tae(Ur.defaults), Ur; + return u0.use(...t), Ur.defaults = u0.defaults, Cae(Ur.defaults), Ur; }; Ur.walkTokens = function(t, e) { return u0.walkTokens(t, e); @@ -42938,7 +42938,7 @@ Ur.parseInline = u0.parseInline; Ur.Parser = wc; Ur.parser = wc.parse; Ur.Renderer = U3; -Ur.TextRenderer = jD; +Ur.TextRenderer = KD; Ur.Lexer = xc; Ur.lexer = xc.lex; Ur.Tokenizer = z3; @@ -42951,7 +42951,7 @@ Ur.walkTokens; Ur.parseInline; wc.parse; xc.lex; -function $ae(t) { +function Bae(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; var n = Array.from(typeof t == "string" ? [t] : t); @@ -42983,15 +42983,15 @@ function $ae(t) { `)), a += f + n[l + 1]; }), a; } -function Bae(t, { markdownAutoWrap: e }) { +function Fae(t, { markdownAutoWrap: e }) { const n = t.replace(//g, ` `).replace(/\n{2,}/g, ` -`), i = $ae(n); +`), i = Bae(n); return e === !1 ? i.replace(/ /g, " ") : i; } -x(Bae, "preprocessMarkdown"); -function Fae(t, e = {}) { - const r = Bae(t, e), n = Ur.lexer(r), i = [[]]; +x(Fae, "preprocessMarkdown"); +function zae(t, e = {}) { + const r = Fae(t, e), n = Ur.lexer(r), i = [[]]; let s = 0; function a(o, l = "normal") { o.type === "text" ? o.text.split(` @@ -43010,8 +43010,8 @@ function Fae(t, e = {}) { }) : o.type === "html" && i[s].push({ content: o.text, type: "normal" }); }), i; } -x(Fae, "markdownToLines"); -function zae(t, { markdownAutoWrap: e } = {}) { +x(zae, "markdownToLines"); +function Vae(t, { markdownAutoWrap: e } = {}) { const r = Ur.lexer(t); function n(i) { var s, a, o; @@ -43019,36 +43019,36 @@ function zae(t, { markdownAutoWrap: e } = {}) { } return x(n, "output"), r.map(n).join(""); } -x(zae, "markdownToHTML"); -function Vae(t) { +x(Vae, "markdownToHTML"); +function Uae(t) { return Intl.Segmenter ? [...new Intl.Segmenter().segment(t)].map((e) => e.segment) : [...t]; } -x(Vae, "splitTextToChars"); -function Uae(t, e) { - const r = Vae(e.content); - return KD(t, [], r, e.type); +x(Uae, "splitTextToChars"); +function qae(t, e) { + const r = Uae(e.content); + return JD(t, [], r, e.type); } -x(Uae, "splitWordToFitWidth"); -function KD(t, e, r, n) { +x(qae, "splitWordToFitWidth"); +function JD(t, e, r, n) { if (r.length === 0) return [ { content: e.join(""), type: n }, { content: "", type: n } ]; const [i, ...s] = r, a = [...e, i]; - return t([{ content: a.join(""), type: n }]) ? KD(t, a, s, n) : (e.length === 0 && i && (e.push(i), r.shift()), [ + return t([{ content: a.join(""), type: n }]) ? JD(t, a, s, n) : (e.length === 0 && i && (e.push(i), r.shift()), [ { content: e.join(""), type: n }, { content: r.join(""), type: n } ]); } -x(KD, "splitWordToFitWidthRecursion"); -function qae(t, e) { +x(JD, "splitWordToFitWidthRecursion"); +function Qae(t, e) { if (t.some(({ content: r }) => r.includes(` `))) throw new Error("splitLineToFitWidth does not support newlines in the line"); return q3(t, e); } -x(qae, "splitLineToFitWidth"); +x(Qae, "splitLineToFitWidth"); function q3(t, e, r = [], n = []) { var o; if (t.length === 0) @@ -43061,54 +43061,54 @@ function q3(t, e, r = [], n = []) { if (n.length > 0) r.push(n), t.unshift(s); else if (s.content) { - const [l, u] = Uae(e, s); + const [l, u] = qae(e, s); r.push([l]), u.content && t.unshift(u); } return q3(t, e, r); } x(q3, "splitLineToFitWidthRecursion"); -function z8(t, e) { +function V8(t, e) { e && t.attr("style", e); } -x(z8, "applyStyle"); -async function Qae(t, e, r, n, i = !1) { +x(V8, "applyStyle"); +async function Yae(t, e, r, n, i = !1) { const s = t.append("foreignObject"), a = s.append("xhtml:div"); let o = e.label; e.label && ca(e.label) && (o = await ox(e.label.replace(at.lineBreakRegex, ` `), be())); const l = e.isNode ? "nodeLabel" : "edgeLabel", u = a.append("span"); - u.html(o), z8(u, e.labelStyle), u.attr("class", `${l} ${n}`), z8(a, e.labelStyle), a.style("display", "table-cell"), a.style("white-space", "nowrap"), a.style("line-height", "1.5"), a.style("max-width", r + "px"), a.style("text-align", "center"), a.attr("xmlns", "http://www.w3.org/1999/xhtml"), i && a.attr("class", "labelBkg"); + u.html(o), V8(u, e.labelStyle), u.attr("class", `${l} ${n}`), V8(a, e.labelStyle), a.style("display", "table-cell"), a.style("white-space", "nowrap"), a.style("line-height", "1.5"), a.style("max-width", r + "px"), a.style("text-align", "center"), a.attr("xmlns", "http://www.w3.org/1999/xhtml"), i && a.attr("class", "labelBkg"); let h = a.node().getBoundingClientRect(); return h.width === r && (a.style("display", "table"), a.style("white-space", "break-spaces"), a.style("width", r + "px"), h = a.node().getBoundingClientRect()), s.node(); } -x(Qae, "addHtmlSpan"); -function IT(t, e, r) { +x(Yae, "addHtmlSpan"); +function PT(t, e, r) { return t.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", e * r - 0.1 + "em").attr("dy", r + "em"); } -x(IT, "createTspan"); -function Yae(t, e, r) { - const n = t.append("text"), i = IT(n, 1, e); - PT(i, r); +x(PT, "createTspan"); +function Wae(t, e, r) { + const n = t.append("text"), i = PT(n, 1, e); + $T(i, r); const s = i.node().getComputedTextLength(); return n.remove(), s; } -x(Yae, "computeWidthOfText"); -function Wae(t, e, r) { +x(Wae, "computeWidthOfText"); +function Gae(t, e, r) { var a; - const n = t.append("text"), i = IT(n, 1, e); - PT(i, [{ content: r, type: "normal" }]); + const n = t.append("text"), i = PT(n, 1, e); + $T(i, [{ content: r, type: "normal" }]); const s = (a = i.node()) == null ? void 0 : a.getBoundingClientRect(); return s && n.remove(), s; } -x(Wae, "computeDimensionOfText"); -function Gae(t, e, r, n = !1) { +x(Gae, "computeDimensionOfText"); +function Hae(t, e, r, n = !1) { const s = e.append("g"), a = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), o = s.append("text").attr("y", "-10.1"); let l = 0; for (const u of r) { - const h = /* @__PURE__ */ x((d) => Yae(s, 1.1, d) <= t, "checkWidth"), f = h(u) ? [u] : qae(u, h); + const h = /* @__PURE__ */ x((d) => Wae(s, 1.1, d) <= t, "checkWidth"), f = h(u) ? [u] : Qae(u, h); for (const d of f) { - const p = IT(o, l, 1.1); - PT(p, d), l++; + const p = PT(o, l, 1.1); + $T(p, d), l++; } } if (n) { @@ -43117,21 +43117,21 @@ function Gae(t, e, r, n = !1) { } else return o.node(); } -x(Gae, "createFormattedText"); -function PT(t, e) { +x(Hae, "createFormattedText"); +function $T(t, e) { t.text(""), e.forEach((r, n) => { const i = t.append("tspan").attr("font-style", r.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", r.type === "strong" ? "bold" : "normal"); n === 0 ? i.text(r.content) : i.text(" " + r.content); }); } -x(PT, "updateTextContentAndStyles"); -function JD(t) { +x($T, "updateTextContentAndStyles"); +function eN(t) { return t.replace( /fa[bklrs]?:fa-[\w-]+/g, (e) => `` ); } -x(JD, "replaceIconSubstring"); +x(eN, "replaceIconSubstring"); var jc = /* @__PURE__ */ x(async (t, e = "", { style: r = "", isTitle: n = !1, @@ -43152,14 +43152,14 @@ var jc = /* @__PURE__ */ x(async (t, e = "", { "addSvgBackground: ", l ), s) { - const h = zae(e, u), f = JD(c0(h)), d = e.replace(/\\\\/g, "\\"), p = { + const h = Vae(e, u), f = eN(c0(h)), d = e.replace(/\\\\/g, "\\"), p = { isNode: a, label: ca(e) ? d : f, labelStyle: r.replace("fill:", "color:") }; - return await Qae(t, p, o, i, l); + return await Yae(t, p, o, i, l); } else { - const h = e.replace(//g, "
"), f = Fae(h.replace("
", "
"), u), d = Gae( + const h = e.replace(//g, "
"), f = zae(h.replace("
", "
"), u), d = Hae( o, t, f, @@ -43178,7 +43178,7 @@ var jc = /* @__PURE__ */ x(async (t, e = "", { return d; } }, "createText"); -function Z6(t, e, r) { +function j6(t, e, r) { if (t && t.length) { const [n, i] = e, s = Math.PI / 180 * r, a = Math.cos(s), o = Math.sin(s); for (const l of t) { @@ -43187,19 +43187,19 @@ function Z6(t, e, r) { } } } -function Lkt(t, e) { +function Rkt(t, e) { return t[0] === e[0] && t[1] === e[1]; } -function Rkt(t, e, r, n = 1) { +function Mkt(t, e, r, n = 1) { const i = r, s = Math.max(e, 0.1), a = t[0] && t[0][0] && typeof t[0][0] == "number" ? [t] : t, o = [0, 0]; if (i) for (const u of a) - Z6(u, o, i); + j6(u, o, i); const l = function(u, h, f) { const d = []; for (const b of u) { const w = [...b]; - Lkt(w[0], w[w.length - 1]) || w.push([w[0][0], w[0][1]]), w.length > 2 && d.push(w); + Rkt(w[0], w[w.length - 1]) || w.push([w[0][0], w[0][1]]), w.length > 2 && d.push(w); } const p = []; h = Math.max(h, 0.1); @@ -43240,10 +43240,10 @@ function Rkt(t, e, r, n = 1) { }(a, s, n); if (i) { for (const u of a) - Z6(u, o, -i); + j6(u, o, -i); (function(u, h, f) { const d = []; - u.forEach((p) => d.push(...p)), Z6(d, h, f); + u.forEach((p) => d.push(...p)), j6(d, h, f); })(l, o, -i); } return l; @@ -43254,9 +43254,9 @@ function bx(t, e) { let i = e.hachureGap; i < 0 && (i = 4 * e.strokeWidth), i = Math.round(Math.max(i, 0.1)); let s = 1; - return e.roughness >= 1 && (((r = e.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (s = i), Rkt(t, i, n, s || 1); + return e.roughness >= 1 && (((r = e.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (s = i), Mkt(t, i, n, s || 1); } -class eN { +class tN { constructor(e) { this.helper = e; } @@ -43274,27 +43274,27 @@ class eN { return n; } } -function $T(t) { +function BT(t) { const e = t[0], r = t[1]; return Math.sqrt(Math.pow(e[0] - r[0], 2) + Math.pow(e[1] - r[1], 2)); } -class Mkt extends eN { +class Dkt extends tN { fillPolygons(e, r) { let n = r.hachureGap; n < 0 && (n = 4 * r.strokeWidth), n = Math.max(n, 0.1); const i = bx(e, Object.assign({}, r, { hachureGap: n })), s = Math.PI / 180 * r.hachureAngle, a = [], o = 0.5 * n * Math.cos(s), l = 0.5 * n * Math.sin(s); for (const [u, h] of i) - $T([u, h]) && a.push([[u[0] - o, u[1] + l], [...h]], [[u[0] + o, u[1] - l], [...h]]); + BT([u, h]) && a.push([[u[0] - o, u[1] + l], [...h]], [[u[0] + o, u[1] - l], [...h]]); return { type: "fillSketch", ops: this.renderLines(a, r) }; } } -class Dkt extends eN { +class Nkt extends tN { fillPolygons(e, r) { const n = this._fillPolygons(e, r), i = Object.assign({}, r, { hachureAngle: r.hachureAngle + 90 }), s = this._fillPolygons(e, i); return n.ops = n.ops.concat(s.ops), n; } } -class Nkt { +class Ikt { constructor(e) { this.helper = e; } @@ -43310,7 +43310,7 @@ class Nkt { s < 0 && (s = r.strokeWidth / 2); const a = i / 4; for (const o of e) { - const l = $T(o), u = l / i, h = Math.ceil(u) - 1, f = l - h * i, d = (o[0][0] + o[1][0]) / 2 - i / 4, p = Math.min(o[0][1], o[1][1]); + const l = BT(o), u = l / i, h = Math.ceil(u) - 1, f = l - h * i, d = (o[0][0] + o[1][0]) / 2 - i / 4, p = Math.min(o[0][1], o[1][1]); for (let g = 0; g < h; g++) { const m = p + f + g * i, v = d - a + 2 * Math.random() * a, y = m - a + 2 * Math.random() * a, b = this.helper.ellipse(v, y, s, s, r); n.push(...b.ops); @@ -43319,7 +43319,7 @@ class Nkt { return { type: "fillSketch", ops: n }; } } -class Ikt { +class Pkt { constructor(e) { this.helper = e; } @@ -43330,7 +43330,7 @@ class Ikt { dashedLine(e, r) { const n = r.dashOffset < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashOffset, i = r.dashGap < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashGap, s = []; return e.forEach((a) => { - const o = $T(a), l = Math.floor(o / (n + i)), u = (o + i - l * (n + i)) / 2; + const o = BT(a), l = Math.floor(o / (n + i)), u = (o + i - l * (n + i)) / 2; let h = a[0], f = a[1]; h[0] > f[0] && (h = a[1], f = a[0]); const d = Math.atan((f[1] - h[1]) / (f[0] - h[0])); @@ -43341,7 +43341,7 @@ class Ikt { }), s; } } -class Pkt { +class $kt { constructor(e) { this.helper = e; } @@ -43352,7 +43352,7 @@ class Pkt { zigzagLines(e, r, n) { const i = []; return e.forEach((s) => { - const a = $T(s), o = Math.round(a / (2 * r)); + const a = BT(s), o = Math.round(a / (2 * r)); let l = s[0], u = s[1]; l[0] > u[0] && (l = s[1], u = s[0]); const h = Math.atan((u[1] - l[1]) / (u[0] - l[0])); @@ -43364,7 +43364,7 @@ class Pkt { } } const va = {}; -class $kt { +class Bkt { constructor(e) { this.seed = e; } @@ -43372,40 +43372,40 @@ class $kt { return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random(); } } -const Bkt = 0, j6 = 1, Aq = 2, tO = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; -function K6(t, e) { +const Fkt = 0, K6 = 1, Aq = 2, tO = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; +function J6(t, e) { return t.type === e; } -function tN(t) { +function rN(t) { const e = [], r = function(a) { const o = new Array(); for (; a !== ""; ) if (a.match(/^([ \t\r\n,]+)/)) a = a.substr(RegExp.$1.length); else if (a.match(/^([aAcChHlLmMqQsStTvVzZ])/)) - o[o.length] = { type: Bkt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); + o[o.length] = { type: Fkt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); else { if (!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return []; - o[o.length] = { type: j6, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); + o[o.length] = { type: K6, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); } return o[o.length] = { type: Aq, text: "" }, o; }(t); let n = "BOD", i = 0, s = r[i]; - for (; !K6(s, Aq); ) { + for (; !J6(s, Aq); ) { let a = 0; const o = []; if (n === "BOD") { if (s.text !== "M" && s.text !== "m") - return tN("M0,0" + t); + return rN("M0,0" + t); i++, a = tO[s.text], n = s.text; } else - K6(s, j6) ? a = tO[n] : (i++, a = tO[s.text], n = s.text); + J6(s, K6) ? a = tO[n] : (i++, a = tO[s.text], n = s.text); if (!(i + a < r.length)) throw new Error("Path data ended short"); for (let l = i; l < i + a; l++) { const u = r[l]; - if (!K6(u, j6)) + if (!J6(u, K6)) throw new Error("Param not a number: " + n + "," + u.text); o[o.length] = +u.text; } @@ -43418,7 +43418,7 @@ function tN(t) { } return e; } -function Hae(t) { +function Xae(t) { let e = 0, r = 0, n = 0, i = 0; const s = []; for (const { key: a, data: o } of t) @@ -43489,7 +43489,7 @@ function Hae(t) { } return s; } -function Xae(t) { +function Zae(t) { const e = []; let r = "", n = 0, i = 0, s = 0, a = 0, o = 0, l = 0; for (const { key: u, data: h } of t) { @@ -43529,7 +43529,7 @@ function Xae(t) { } case "A": { const f = Math.abs(h[0]), d = Math.abs(h[1]), p = h[2], g = h[3], m = h[4], v = h[5], y = h[6]; - f === 0 || d === 0 ? (e.push({ key: "C", data: [n, i, v, y, v, y] }), n = v, i = y) : (n !== v || i !== y) && (Zae(n, i, v, y, f, d, p, g, m).forEach(function(b) { + f === 0 || d === 0 ? (e.push({ key: "C", data: [n, i, v, y, v, y] }), n = v, i = y) : (n !== v || i !== y) && (jae(n, i, v, y, f, d, p, g, m).forEach(function(b) { e.push({ key: "C", data: b }); }), n = v, i = y); break; @@ -43544,7 +43544,7 @@ function Xae(t) { function Xm(t, e, r) { return [t * Math.cos(r) - e * Math.sin(r), t * Math.sin(r) + e * Math.cos(r)]; } -function Zae(t, e, r, n, i, s, a, o, l, u) { +function jae(t, e, r, n, i, s, a, o, l, u) { const h = (f = a, Math.PI * f / 180); var f; let d = [], p = 0, g = 0, m = 0, v = 0; @@ -43561,14 +43561,14 @@ function Zae(t, e, r, n, i, s, a, o, l, u) { let y = g - p; if (Math.abs(y) > 120 * Math.PI / 180) { const $ = g, k = r, N = n; - g = l && g > p ? p + 120 * Math.PI / 180 * 1 : p + 120 * Math.PI / 180 * -1, d = Zae(r = m + i * Math.cos(g), n = v + s * Math.sin(g), k, N, i, s, a, 0, l, [g, $, m, v]); + g = l && g > p ? p + 120 * Math.PI / 180 * 1 : p + 120 * Math.PI / 180 * -1, d = jae(r = m + i * Math.cos(g), n = v + s * Math.sin(g), k, N, i, s, a, 0, l, [g, $, m, v]); } y = g - p; - const b = Math.cos(p), w = Math.sin(p), O = Math.cos(g), S = Math.sin(g), C = Math.tan(y / 4), T = 4 / 3 * i * C, L = 4 / 3 * s * C, E = [t, e], A = [t + T * w, e - L * b], _ = [r + T * S, n - L * O], R = [r, n]; - if (A[0] = 2 * E[0] - A[0], A[1] = 2 * E[1] - A[1], u) - return [A, _, R].concat(d); + const b = Math.cos(p), w = Math.sin(p), O = Math.cos(g), S = Math.sin(g), C = Math.tan(y / 4), T = 4 / 3 * i * C, A = 4 / 3 * s * C, E = [t, e], L = [t + T * w, e - A * b], _ = [r + T * S, n - A * O], R = [r, n]; + if (L[0] = 2 * E[0] - L[0], L[1] = 2 * E[1] - L[1], u) + return [L, _, R].concat(d); { - d = [A, _, R].concat(d); + d = [L, _, R].concat(d); const $ = []; for (let k = 0; k < d.length; k += 3) { const N = Xm(d[k][0], d[k][1], h), M = Xm(d[k + 1][0], d[k + 1][1], h), I = Xm(d[k + 2][0], d[k + 2][1], h); @@ -43577,17 +43577,17 @@ function Zae(t, e, r, n, i, s, a, o, l, u) { return $; } } -const Fkt = { randOffset: function(t, e) { +const zkt = { randOffset: function(t, e) { return jt(t, e); }, randOffsetWithRange: function(t, e, r) { return Q3(t, e, r); }, ellipse: function(t, e, r, n, i) { - const s = Kae(r, n, i); - return V8(t, e, i, s).opset; + const s = Jae(r, n, i); + return U8(t, e, i, s).opset; }, doubleLineOps: function(t, e, r, n, i) { return xf(t, e, r, n, i, !0); } }; -function jae(t, e, r, n, i) { +function Kae(t, e, r, n, i) { return { type: "path", ops: xf(t, e, r, n, i) }; } function N4(t, e, r) { @@ -43598,9 +43598,9 @@ function N4(t, e, r) { i.push(...xf(t[s][0], t[s][1], t[s + 1][0], t[s + 1][1], r)); return e && i.push(...xf(t[n - 1][0], t[n - 1][1], t[0][0], t[0][1], r)), { type: "path", ops: i }; } - return n === 2 ? jae(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; + return n === 2 ? Kae(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; } -function zkt(t, e, r, n, i) { +function Vkt(t, e, r, n, i) { return function(s, a) { return N4(s, !0, a); }([[t, e], [t + r, e], [t + r, e + n], [t, e + n]], i); @@ -43622,13 +43622,13 @@ function Lq(t, e) { } return { type: "path", ops: [] }; } -function Kae(t, e, r) { +function Jae(t, e, r) { const n = Math.sqrt(2 * Math.PI * Math.sqrt((Math.pow(t / 2, 2) + Math.pow(e / 2, 2)) / 2)), i = Math.ceil(Math.max(r.curveStepCount, r.curveStepCount / Math.sqrt(200) * n)), s = 2 * Math.PI / i; let a = Math.abs(t / 2), o = Math.abs(e / 2); const l = 1 - r.curveFitting; return a += jt(a * l, r), o += jt(o * l, r), { increment: s, rx: a, ry: o }; } -function V8(t, e, r, n) { +function U8(t, e, r, n) { const [i, s] = Nq(n.increment, t, e, n.rx, n.ry, 1, n.increment * Q3(0.1, Q3(0.4, 1, r), r), r); let a = Y3(i, null, r); if (!r.disableMultiStroke && r.roughness !== 0) { @@ -43653,7 +43653,7 @@ function Rq(t, e, r, n, i, s, a, o, l) { return a && (o ? y.push(...xf(u, h, u + f * Math.cos(p), h + d * Math.sin(p), l), ...xf(u, h, u + f * Math.cos(g), h + d * Math.sin(g), l)) : y.push({ op: "lineTo", data: [u, h] }, { op: "lineTo", data: [u + f * Math.cos(p), h + d * Math.sin(p)] })), { type: "path", ops: y }; } function Mq(t, e) { - const r = Xae(Hae(tN(t))), n = []; + const r = Zae(Xae(rN(t))), n = []; let i = [0, 0], s = [0, 0]; for (const { key: a, data: o } of r) switch (a) { @@ -43665,7 +43665,7 @@ function Mq(t, e) { break; case "C": { const [l, u, h, f, d, p] = o; - n.push(...Vkt(l, u, h, f, d, p, s, e)), s = [d, p]; + n.push(...Ukt(l, u, h, f, d, p, s, e)), s = [d, p]; break; } case "Z": @@ -43673,7 +43673,7 @@ function Mq(t, e) { } return { type: "path", ops: n }; } -function J6(t, e) { +function e_(t, e) { const r = []; for (const n of t) if (n.length) { @@ -43692,53 +43692,53 @@ function hp(t, e) { if (!va[i]) switch (i) { case "zigzag": - va[i] || (va[i] = new Mkt(n)); + va[i] || (va[i] = new Dkt(n)); break; case "cross-hatch": - va[i] || (va[i] = new Dkt(n)); + va[i] || (va[i] = new Nkt(n)); break; case "dots": - va[i] || (va[i] = new Nkt(n)); + va[i] || (va[i] = new Ikt(n)); break; case "dashed": - va[i] || (va[i] = new Ikt(n)); + va[i] || (va[i] = new Pkt(n)); break; case "zigzag-line": - va[i] || (va[i] = new Pkt(n)); + va[i] || (va[i] = new $kt(n)); break; default: - i = "hachure", va[i] || (va[i] = new eN(n)); + i = "hachure", va[i] || (va[i] = new tN(n)); } return va[i]; - }(e, Fkt).fillPolygons(t, e); + }(e, zkt).fillPolygons(t, e); } function Dq(t) { const e = Object.assign({}, t); return e.randomizer = void 0, t.seed && (e.seed = t.seed + 1), e; } -function Jae(t) { - return t.randomizer || (t.randomizer = new $kt(t.seed || 0)), t.randomizer.next(); +function eoe(t) { + return t.randomizer || (t.randomizer = new Bkt(t.seed || 0)), t.randomizer.next(); } function Q3(t, e, r, n = 1) { - return r.roughness * n * (Jae(r) * (e - t) + t); + return r.roughness * n * (eoe(r) * (e - t) + t); } function jt(t, e, r = 1) { return Q3(-t, t, e, r); } function xf(t, e, r, n, i, s = !1) { - const a = s ? i.disableMultiStrokeFill : i.disableMultiStroke, o = U8(t, e, r, n, i, !0, !1); + const a = s ? i.disableMultiStrokeFill : i.disableMultiStroke, o = q8(t, e, r, n, i, !0, !1); if (a) return o; - const l = U8(t, e, r, n, i, !0, !0); + const l = q8(t, e, r, n, i, !0, !0); return o.concat(l); } -function U8(t, e, r, n, i, s, a) { +function q8(t, e, r, n, i, s, a) { const o = Math.pow(t - r, 2) + Math.pow(e - n, 2), l = Math.sqrt(o); let u = 1; u = l < 200 ? 1 : l > 500 ? 0.4 : -16668e-7 * l + 1.233334; let h = i.maxRandomnessOffset || 0; h * h * 100 > o && (h = l / 10); - const f = h / 2, d = 0.2 + 0.2 * Jae(i); + const f = h / 2, d = 0.2 + 0.2 * eoe(i); let p = i.bowing * i.maxRandomnessOffset * (n - e) / 200, g = i.bowing * i.maxRandomnessOffset * (t - r) / 200; p = jt(p, i, u), g = jt(g, i, u); const m = [], v = () => jt(f, i, u), y = () => jt(h, i, u), b = i.preserveVertices; @@ -43767,7 +43767,7 @@ function Y3(t, e, r) { i.push({ op: "lineTo", data: [e[0] + jt(o, r), e[1] + jt(o, r)] }); } } else - n === 3 ? (i.push({ op: "move", data: [t[1][0], t[1][1]] }), i.push({ op: "bcurveTo", data: [t[1][0], t[1][1], t[2][0], t[2][1], t[2][0], t[2][1]] })) : n === 2 && i.push(...U8(t[0][0], t[0][1], t[1][0], t[1][1], r, !0, !0)); + n === 3 ? (i.push({ op: "move", data: [t[1][0], t[1][1]] }), i.push({ op: "bcurveTo", data: [t[1][0], t[1][1], t[2][0], t[2][1], t[2][0], t[2][1]] })) : n === 2 && i.push(...q8(t[0][0], t[0][1], t[1][0], t[1][1], r, !0, !0)); return i; } function Nq(t, e, r, n, i, s, a, o) { @@ -43798,7 +43798,7 @@ function Iq(t, e, r, n, i, s, a, o, l) { h.push([jt(o, l) + e + n * Math.cos(f), jt(o, l) + r + i * Math.sin(f)]); return h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), Y3(h, null, l); } -function Vkt(t, e, r, n, i, s, a, o) { +function Ukt(t, e, r, n, i, s, a, o) { const l = [], u = [o.maxRandomnessOffset || 1, (o.maxRandomnessOffset || 1) + 0.3]; let h = [0, 0]; const f = o.disableMultiStroke ? 1 : 2, d = o.preserveVertices; @@ -43833,7 +43833,7 @@ function Pq(t, e = 0) { function I4(t, e) { return Math.pow(t[0] - e[0], 2) + Math.pow(t[1] - e[1], 2); } -function Ukt(t, e, r) { +function qkt(t, e, r) { const n = I4(e, r); if (n === 0) return I4(t, e); @@ -43843,7 +43843,7 @@ function Ukt(t, e, r) { function od(t, e, r) { return [t[0] + (e[0] - t[0]) * r, t[1] + (e[1] - t[1]) * r]; } -function q8(t, e, r, n) { +function Q8(t, e, r, n) { const i = n || []; if (function(o, l) { const u = o[l + 0], h = o[l + 1], f = o[l + 2], d = o[l + 3]; @@ -43860,30 +43860,30 @@ function q8(t, e, r, n) { i.length ? (s = i[i.length - 1], a = o, Math.sqrt(I4(s, a)) > 1 && i.push(o)) : i.push(o), i.push(t[e + 3]); } else { const l = t[e + 0], u = t[e + 1], h = t[e + 2], f = t[e + 3], d = od(l, u, 0.5), p = od(u, h, 0.5), g = od(h, f, 0.5), m = od(d, p, 0.5), v = od(p, g, 0.5), y = od(m, v, 0.5); - q8([l, d, m, y], 0, r, i), q8([y, v, g, f], 0, r, i); + Q8([l, d, m, y], 0, r, i), Q8([y, v, g, f], 0, r, i); } var s, a; return i; } -function qkt(t, e) { +function Qkt(t, e) { return W3(t, 0, t.length, e); } function W3(t, e, r, n, i) { const s = i || [], a = t[e], o = t[r - 1]; let l = 0, u = 1; for (let h = e + 1; h < r - 1; ++h) { - const f = Ukt(t[h], a, o); + const f = qkt(t[h], a, o); f > l && (l = f, u = h); } return Math.sqrt(l) > n ? (W3(t, e, u + 1, n, s), W3(t, u, r, n, s)) : (s.length || s.push(a), s.push(o)), s; } -function e_(t, e = 0.15, r) { +function t_(t, e = 0.15, r) { const n = [], i = (t.length - 1) / 3; for (let s = 0; s < i; s++) - q8(t, 3 * s, e, n); + Q8(t, 3 * s, e, n); return r && r > 0 ? W3(n, 0, n.length, r) : n; } -const Xa = "none"; +const Za = "none"; class G3 { constructor(e) { this.defaultOptions = { maxRandomnessOffset: 2, roughness: 1, bowing: 1, stroke: "#000", strokeWidth: 1, curveTightness: 0, curveFitting: 0.95, curveStepCount: 9, fillStyle: "hachure", fillWeight: -1, hachureAngle: -41, hachureGap: -1, dashOffset: -1, dashGap: -1, zigzagOffset: -1, seed: 0, disableMultiStroke: !1, disableMultiStrokeFill: !1, preserveVertices: !1, fillShapeRoughnessGain: 0.8 }, this.config = e || {}, this.config.options && (this.defaultOptions = this._o(this.config.options)); @@ -43899,25 +43899,25 @@ class G3 { } line(e, r, n, i, s) { const a = this._o(s); - return this._d("line", [jae(e, r, n, i, a)], a); + return this._d("line", [Kae(e, r, n, i, a)], a); } rectangle(e, r, n, i, s) { - const a = this._o(s), o = [], l = zkt(e, r, n, i, a); + const a = this._o(s), o = [], l = Vkt(e, r, n, i, a); if (a.fill) { const u = [[e, r], [e + n, r], [e + n, r + i], [e, r + i]]; - a.fillStyle === "solid" ? o.push(J6([u], a)) : o.push(hp([u], a)); + a.fillStyle === "solid" ? o.push(e_([u], a)) : o.push(hp([u], a)); } - return a.stroke !== Xa && o.push(l), this._d("rectangle", o, a); + return a.stroke !== Za && o.push(l), this._d("rectangle", o, a); } ellipse(e, r, n, i, s) { - const a = this._o(s), o = [], l = Kae(n, i, a), u = V8(e, r, a, l); + const a = this._o(s), o = [], l = Jae(n, i, a), u = U8(e, r, a, l); if (a.fill) if (a.fillStyle === "solid") { - const h = V8(e, r, a, l).opset; + const h = U8(e, r, a, l).opset; h.type = "fillPath", o.push(h); } else o.push(hp([u.estimatedPoints], a)); - return a.stroke !== Xa && o.push(u.opset), this._d("ellipse", o, a); + return a.stroke !== Za && o.push(u.opset), this._d("ellipse", o, a); } circle(e, r, n, i) { const s = this.ellipse(e, r, n, n, i); @@ -43940,20 +43940,20 @@ class G3 { const w = d, O = p; let S = Math.abs(g / 2), C = Math.abs(m / 2); S += jt(0.01 * S, b), C += jt(0.01 * C, b); - let T = v, L = y; + let T = v, A = y; for (; T < 0; ) - T += 2 * Math.PI, L += 2 * Math.PI; - L - T > 2 * Math.PI && (T = 0, L = 2 * Math.PI); - const E = (L - T) / b.curveStepCount, A = []; - for (let _ = T; _ <= L; _ += E) - A.push([w + S * Math.cos(_), O + C * Math.sin(_)]); - return A.push([w + S * Math.cos(L), O + C * Math.sin(L)]), A.push([w, O]), hp([A], b); + T += 2 * Math.PI, A += 2 * Math.PI; + A - T > 2 * Math.PI && (T = 0, A = 2 * Math.PI); + const E = (A - T) / b.curveStepCount, L = []; + for (let _ = T; _ <= A; _ += E) + L.push([w + S * Math.cos(_), O + C * Math.sin(_)]); + return L.push([w + S * Math.cos(A), O + C * Math.sin(A)]), L.push([w, O]), hp([L], b); }(e, r, n, i, s, a, u)); - return u.stroke !== Xa && h.push(f), this._d("arc", h, u); + return u.stroke !== Za && h.push(f), this._d("arc", h, u); } curve(e, r) { const n = this._o(r), i = [], s = Lq(e, n); - if (n.fill && n.fill !== Xa) + if (n.fill && n.fill !== Za) if (n.fillStyle === "solid") { const a = Lq(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); i.push({ type: "fillPath", ops: this._mergedShape(a.ops) }); @@ -43962,26 +43962,26 @@ class G3 { if (o.length) { const l = typeof o[0][0] == "number" ? [o] : o; for (const u of l) - u.length < 3 ? a.push(...u) : u.length === 3 ? a.push(...e_(Pq([u[0], u[0], u[1], u[2]]), 10, (1 + n.roughness) / 2)) : a.push(...e_(Pq(u), 10, (1 + n.roughness) / 2)); + u.length < 3 ? a.push(...u) : u.length === 3 ? a.push(...t_(Pq([u[0], u[0], u[1], u[2]]), 10, (1 + n.roughness) / 2)) : a.push(...t_(Pq(u), 10, (1 + n.roughness) / 2)); } a.length && i.push(hp([a], n)); } - return n.stroke !== Xa && i.push(s), this._d("curve", i, n); + return n.stroke !== Za && i.push(s), this._d("curve", i, n); } polygon(e, r) { const n = this._o(r), i = [], s = N4(e, !0, n); - return n.fill && (n.fillStyle === "solid" ? i.push(J6([e], n)) : i.push(hp([e], n))), n.stroke !== Xa && i.push(s), this._d("polygon", i, n); + return n.fill && (n.fillStyle === "solid" ? i.push(e_([e], n)) : i.push(hp([e], n))), n.stroke !== Za && i.push(s), this._d("polygon", i, n); } path(e, r) { const n = this._o(r), i = []; if (!e) return this._d("path", i, n); e = (e || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " "); - const s = n.fill && n.fill !== "transparent" && n.fill !== Xa, a = n.stroke !== Xa, o = !!(n.simplification && n.simplification < 1), l = function(h, f, d) { - const p = Xae(Hae(tN(h))), g = []; + const s = n.fill && n.fill !== "transparent" && n.fill !== Za, a = n.stroke !== Za, o = !!(n.simplification && n.simplification < 1), l = function(h, f, d) { + const p = Zae(Xae(rN(h))), g = []; let m = [], v = [0, 0], y = []; const b = () => { - y.length >= 4 && m.push(...e_(y, f)), y = []; + y.length >= 4 && m.push(...t_(y, f)), y = []; }, w = () => { b(), m.length && (g.push(m), m = []); }; @@ -44007,7 +44007,7 @@ class G3 { return g; const O = []; for (const S of g) { - const C = qkt(S, d); + const C = Qkt(S, d); C.length && O.push(C); } return O; @@ -44018,7 +44018,7 @@ class G3 { const h = Mq(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); i.push({ type: "fillPath", ops: this._mergedShape(h.ops) }); } else - i.push(J6(l, n)); + i.push(e_(l, n)); else i.push(hp(l, n)); return a && (o ? l.forEach((h) => { @@ -44048,10 +44048,10 @@ class G3 { let a = null; switch (s.type) { case "path": - a = { d: this.opsToPath(s), stroke: n.stroke, strokeWidth: n.strokeWidth, fill: Xa }; + a = { d: this.opsToPath(s), stroke: n.stroke, strokeWidth: n.strokeWidth, fill: Za }; break; case "fillPath": - a = { d: this.opsToPath(s), stroke: Xa, strokeWidth: 0, fill: n.fill || Xa }; + a = { d: this.opsToPath(s), stroke: Za, strokeWidth: 0, fill: n.fill || Za }; break; case "fillSketch": a = this.fillSketch(s, n); @@ -44062,13 +44062,13 @@ class G3 { } fillSketch(e, r) { let n = r.fillWeight; - return n < 0 && (n = r.strokeWidth / 2), { d: this.opsToPath(e), stroke: r.fill || Xa, strokeWidth: n, fill: Xa }; + return n < 0 && (n = r.strokeWidth / 2), { d: this.opsToPath(e), stroke: r.fill || Za, strokeWidth: n, fill: Za }; } _mergedShape(e) { return e.filter((r, n) => n === 0 || r.op !== "move"); } } -class Qkt { +class Ykt { constructor(e, r) { this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.gen = new G3(r); } @@ -44154,7 +44154,7 @@ class Qkt { } } const nO = "http://www.w3.org/2000/svg"; -class Ykt { +class Wkt { constructor(e, r) { this.svg = e, this.gen = new G3(r); } @@ -44228,15 +44228,15 @@ class Ykt { return this.draw(n); } } -var Bn = { canvas: (t, e) => new Qkt(t, e), svg: (t, e) => new Ykt(t, e), generator: (t) => new G3(t), newSeed: () => G3.newSeed() }, Wkt = /* @__PURE__ */ x((t, e) => { +var Bn = { canvas: (t, e) => new Ykt(t, e), svg: (t, e) => new Wkt(t, e), generator: (t) => new G3(t), newSeed: () => G3.newSeed() }, Gkt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), xx = Wkt; -function eoe(t, e) { +}, "intersectRect"), xx = Gkt; +function toe(t, e) { e && t.attr("style", e); } -x(eoe, "applyStyle"); -async function toe(t) { +x(toe, "applyStyle"); +async function roe(t) { const e = et(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), r = e.append("xhtml:div"); let n = t.label; t.label && ca(t.label) && (n = await ox(t.label.replace(at.lineBreakRegex, ` @@ -44244,10 +44244,10 @@ async function toe(t) { const i = t.isNode ? "nodeLabel" : "edgeLabel"; return r.html( '" + n + "" - ), eoe(r, t.labelStyle), r.style("display", "inline-block"), r.style("padding-right", "1px"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); + ), toe(r, t.labelStyle), r.style("display", "inline-block"), r.style("padding-right", "1px"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } -x(toe, "addHtmlLabel"); -var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { +x(roe, "addHtmlLabel"); +var Hkt = /* @__PURE__ */ x(async (t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), bn(be().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), X.info("vertexText" + i); @@ -44259,7 +44259,7 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { ), labelStyle: e && e.replace("fill:", "color:") }; - return await toe(s); + return await roe(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -44271,7 +44271,7 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { } return s; } -}, "createLabel"), Md = Gkt, wx = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "createLabel"), Md = Hkt, wx = /* @__PURE__ */ x((t, e, r, n, i) => [ "M", t + i, e, @@ -44327,17 +44327,17 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { stroke: t, seed: e }; -}, "solidStateFill"), roe = /* @__PURE__ */ x((t) => { - const e = Hkt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); +}, "solidStateFill"), noe = /* @__PURE__ */ x((t) => { + const e = Xkt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); return { stylesMap: e, stylesArray: [...e] }; -}, "compileStyles"), Hkt = /* @__PURE__ */ x((t) => { +}, "compileStyles"), Xkt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Map(); return t.forEach((r) => { const [n, i] = r.split(":"); e.set(n.trim(), i == null ? void 0 : i.trim()); }), e; }, "styles2Map"), Qs = /* @__PURE__ */ x((t) => { - const { stylesArray: e } = roe(t), r = [], n = [], i = [], s = []; + const { stylesArray: e } = noe(t), r = [], n = [], i = [], s = []; return e.forEach((a) => { const o = a[0]; o === "color" || o === "font-size" || o === "font-family" || o === "font-weight" || o === "font-style" || o === "text-decoration" || o === "text-align" || o === "text-transform" || o === "line-height" || o === "letter-spacing" || o === "word-spacing" || o === "text-shadow" || o === "text-overflow" || o === "white-space" || o === "word-wrap" || o === "word-break" || o === "overflow-wrap" || o === "hyphens" ? r.push(a.join(":") + " !important") : (n.push(a.join(":") + " !important"), o.includes("stroke") && i.push(a.join(":") + " !important"), o === "fill" && s.push(a.join(":") + " !important")); @@ -44349,7 +44349,7 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { backgroundStyles: s }; }, "styles2String"), gs = /* @__PURE__ */ x((t, e) => { - const { themeVariables: r, handDrawnSeed: n } = be(), { nodeBorder: i, mainBkg: s } = r, { stylesMap: a } = roe(t); + const { themeVariables: r, handDrawnSeed: n } = be(), { nodeBorder: i, mainBkg: s } = r, { stylesMap: a } = noe(t); return Object.assign( { roughness: 0.7, @@ -44362,7 +44362,7 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { }, e ); -}, "userNodeOverrides"), noe = /* @__PURE__ */ x(async (t, e) => { +}, "userNodeOverrides"), ioe = /* @__PURE__ */ x(async (t, e) => { X.info("Creating subgraph rect for ", e.id, e); const r = be(), { themeVariables: n, handDrawnSeed: i } = r, { clusterBkg: s, clusterBorder: a } = n, { labelStyles: o, nodeStyles: l, borderStyles: u, backgroundStyles: h } = Qs(e), f = t.insert("g").attr("class", "cluster " + e.cssClasses).attr("id", e.id).attr("data-look", e.look), d = bn(r.flowchart.htmlLabels), p = f.insert("g").attr("class", "cluster-label "), g = await jc(p, e.label, { style: e.labelStyle, @@ -44371,8 +44371,8 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { }); let m = g.getBBox(); if (bn(r.flowchart.htmlLabels)) { - const T = g.children[0], L = et(g); - m = T.getBoundingClientRect(), L.attr("width", m.width), L.attr("height", m.height); + const T = g.children[0], A = et(g); + m = T.getBoundingClientRect(), A.attr("width", m.width), A.attr("height", m.height); } const v = e.width <= m.width + e.padding ? m.width + e.padding : e.width; e.width <= m.width + e.padding ? e.diff = (v - e.width) / 2 - e.padding : e.diff = -e.padding; @@ -44380,13 +44380,13 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { X.trace("Data ", e, JSON.stringify(e)); let O; if (e.look === "handDrawn") { - const T = Bn.svg(f), L = gs(e, { + const T = Bn.svg(f), A = gs(e, { roughness: 0.7, fill: s, stroke: a, fillWeight: 3, seed: i - }), E = T.path(wx(b, w, v, y, 0), L); + }), E = T.path(wx(b, w, v, y, 0), A); O = f.insert(() => (X.debug("Rough node insert CXC", E), E), ":first-child"), O.select("path:nth-child(2)").attr("style", u.join(";")), O.select("path").attr("style", h.join(";").replace("fill", "stroke")); } else O = f.insert("rect", ":first-child"), O.attr("style", l).attr("rx", e.rx).attr("ry", e.ry).attr("x", b).attr("y", w).attr("width", v).attr("height", y); @@ -44402,21 +44402,21 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.offsetX = 0, e.width = C.width, e.height = C.height, e.offsetY = m.height - e.padding / 2, e.intersect = function(T) { return xx(e, T); }, { cluster: f, labelBBox: m }; -}, "rect"), Xkt = /* @__PURE__ */ x((t, e) => { +}, "rect"), Zkt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return xx(e, o); }, { cluster: r, labelBBox: { width: 0, height: 0 } }; -}, "noteGroup"), Zkt = /* @__PURE__ */ x(async (t, e) => { +}, "noteGroup"), jkt = /* @__PURE__ */ x(async (t, e) => { const r = be(), { themeVariables: n, handDrawnSeed: i } = r, { altBackground: s, compositeBackground: a, compositeTitleBackground: o, nodeBorder: l } = n, u = t.insert("g").attr("class", e.cssClasses).attr("id", e.id).attr("data-id", e.id).attr("data-look", e.look), h = u.insert("g", ":first-child"), f = u.insert("g").attr("class", "cluster-label"); let d = u.append("rect"); const p = f.node().appendChild(await Md(e.label, e.labelStyle, void 0, !0)); let g = p.getBBox(); if (bn(r.flowchart.htmlLabels)) { - const E = p.children[0], A = et(p); - g = E.getBoundingClientRect(), A.attr("width", g.width), A.attr("height", g.height); + const E = p.children[0], L = et(p); + g = E.getBoundingClientRect(), L.attr("width", g.width), L.attr("height", g.height); } const m = 0 * e.padding, v = m / 2, y = (e.width <= g.width + e.padding ? g.width + e.padding : e.width) + m; e.width <= g.width + e.padding ? e.diff = (y - e.width) / 2 - e.padding : e.diff = -e.padding; @@ -44425,15 +44425,15 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { const C = e.y - e.height / 2 - v + g.height + 2; let T; if (e.look === "handDrawn") { - const E = e.cssClasses.includes("statediagram-cluster-alt"), A = Bn.svg(u), _ = e.rx || e.ry ? A.path(wx(O, S, y, b, 10), { + const E = e.cssClasses.includes("statediagram-cluster-alt"), L = Bn.svg(u), _ = e.rx || e.ry ? L.path(wx(O, S, y, b, 10), { roughness: 0.7, fill: o, fillStyle: "solid", stroke: l, seed: i - }) : A.rectangle(O, S, y, b, { seed: i }); + }) : L.rectangle(O, S, y, b, { seed: i }); T = u.insert(() => _, ":first-child"); - const R = A.rectangle(O, C, y, w, { + const R = L.rectangle(O, C, y, w, { fill: E ? s : a, fillStyle: E ? "hachure" : "solid", stroke: l, @@ -44449,11 +44449,11 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { "transform", `translate(${e.x - g.width / 2}, ${S + 1 - (bn(r.flowchart.htmlLabels) ? 0 : 3)})` ); - const L = T.node().getBBox(); - return e.height = L.height, e.offsetX = 0, e.offsetY = g.height - e.padding / 2, e.labelBBox = g, e.intersect = function(E) { + const A = T.node().getBBox(); + return e.height = A.height, e.offsetX = 0, e.offsetY = g.height - e.padding / 2, e.labelBBox = g, e.intersect = function(E) { return xx(e, E); }, { cluster: u, labelBBox: g }; -}, "roundedWithTitle"), jkt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), Kkt = /* @__PURE__ */ x((t, e) => { const r = be(), { themeVariables: n, handDrawnSeed: i } = r, { nodeBorder: s } = n, a = t.insert("g").attr("class", e.cssClasses).attr("id", e.id).attr("data-look", e.look), o = a.insert("g", ":first-child"), l = 0 * e.padding, u = e.width + l; e.diff = -e.padding; const h = e.height + l, f = e.x - u / 2, d = e.y - h / 2; @@ -44477,20 +44477,20 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = g.height, e.offsetX = 0, e.offsetY = 0, e.intersect = function(m) { return xx(e, m); }, { cluster: a, labelBBox: {} }; -}, "divider"), Kkt = noe, Jkt = { - rect: noe, - squareRect: Kkt, - roundedWithTitle: Zkt, - noteGroup: Xkt, - divider: jkt -}, ioe = /* @__PURE__ */ new Map(), soe = /* @__PURE__ */ x(async (t, e) => { - const r = e.shape || "rect", n = await Jkt[r](t, e); - return ioe.set(e.id, n), n; -}, "insertCluster"), eSt = /* @__PURE__ */ x(() => { - ioe = /* @__PURE__ */ new Map(); -}, "clear"), tSt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "divider"), Jkt = ioe, eSt = { + rect: ioe, + squareRect: Jkt, + roundedWithTitle: jkt, + noteGroup: Zkt, + divider: Kkt +}, soe = /* @__PURE__ */ new Map(), aoe = /* @__PURE__ */ x(async (t, e) => { + const r = e.shape || "rect", n = await eSt[r](t, e); + return soe.set(e.id, n), n; +}, "insertCluster"), tSt = /* @__PURE__ */ x(() => { + soe = /* @__PURE__ */ new Map(); +}, "clear"), rSt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && $q(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && $q(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), rSt = { +}, "addEdgeMarkers"), nSt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -44501,16 +44501,16 @@ var Gkt = /* @__PURE__ */ x(async (t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, $q = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = rSt[r]; + const a = nSt[r]; if (!a) { X.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), H3 = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new Map(), nSt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), H3 = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new Map(), iSt = /* @__PURE__ */ x(() => { H3.clear(), ts.clear(); -}, "clear"), jm = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), aoe = /* @__PURE__ */ x(async (t, e) => { +}, "clear"), jm = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), ooe = /* @__PURE__ */ x(async (t, e) => { let r = bn(be().flowchart.htmlLabels); const n = await jc(t, e.label, { style: jm(e.labelStyle), @@ -44564,7 +44564,7 @@ function wv(t, e) { be().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(wv, "setTerminalWidth"); -var ooe = /* @__PURE__ */ x((t, e) => { +var loe = /* @__PURE__ */ x((t, e) => { X.debug("Moving label abc88 ", t.id, t.label, H3.get(t.id), e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = be(), { subGraphTitleTotalMargin: i } = F0(n); @@ -44627,10 +44627,10 @@ var ooe = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), iSt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), sSt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), sSt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), aSt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -44655,8 +44655,8 @@ var ooe = /* @__PURE__ */ x((t, e) => { X.warn("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (X.info("abc88 checking point", s, e), !iSt(e, s) && !i) { - const a = sSt(e, n, s); + if (X.info("abc88 checking point", s, e), !sSt(e, s) && !i) { + const a = aSt(e, n, s); X.debug("abc88 inside", s, n, a), X.debug("abc88 intersection", a, e); let o = !1; r.forEach((l) => { @@ -44666,7 +44666,7 @@ var ooe = /* @__PURE__ */ x((t, e) => { X.warn("abc88 outside", s, n), n = s, i || r.push(s); }), X.debug("returning points", r), r; }, "cutPathAtIntersect"); -function loe(t) { +function coe(t) { const e = [], r = []; for (let n = 1; n < t.length - 1; n++) { const i = t[n - 1], s = t[n], a = t[n + 1]; @@ -44674,12 +44674,12 @@ function loe(t) { } return { cornerPoints: e, cornerPointPositions: r }; } -x(loe, "extractCornerPoints"); +x(coe, "extractCornerPoints"); var Fq = /* @__PURE__ */ x(function(t, e, r) { const n = e.x - t.x, i = e.y - t.y, s = Math.sqrt(n * n + i * i), a = r / s; return { x: e.x - a * n, y: e.y - a * i }; -}, "findAdjacentPoint"), aSt = /* @__PURE__ */ x(function(t) { - const { cornerPointPositions: e } = loe(t), r = []; +}, "findAdjacentPoint"), oSt = /* @__PURE__ */ x(function(t) { + const { cornerPointPositions: e } = coe(t), r = []; for (let n = 0; n < t.length; n++) if (e.includes(n)) { const i = t[n - 1], s = t[n + 1], a = t[n], o = Fq(i, a, 5), l = Fq(s, a, 5), u = l.x - o.x, h = l.y - o.y; @@ -44710,7 +44710,7 @@ var Fq = /* @__PURE__ */ x(function(t, e, r) { } else r.push(t[n]); return r; -}, "fixCorners"), coe = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "fixCorners"), uoe = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const { handDrawnSeed: o } = be(); let l = e.points, u = !1; const h = i; @@ -44728,17 +44728,17 @@ var Fq = /* @__PURE__ */ x(function(t, e, r) { r.get(e.fromCluster), JSON.stringify(l, null, 2) ), l = Bq(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); - let d = l.filter((L) => !Number.isNaN(L.y)); - d = aSt(d); + let d = l.filter((A) => !Number.isNaN(A.y)); + d = oSt(d); let p = d[d.length - 1]; if (d.length > 1) { p = d[d.length - 1]; - const L = d[d.length - 2], E = (p.x - L.x) / 2, A = (p.y - L.y) / 2, _ = { x: L.x + E, y: L.y + A }; + const A = d[d.length - 2], E = (p.x - A.x) / 2, L = (p.y - A.y) / 2, _ = { x: A.x + E, y: A.y + L }; d.splice(-1, 0, _); } let g = X1; e.curve && (g = e.curve); - const { x: m, y: v } = Pie(e), y = vf().x(m).y(v).curve(g); + const { x: m, y: v } = $ie(e), y = vf().x(m).y(v).curve(g); let b; switch (e.thickness) { case "normal": @@ -44769,54 +44769,54 @@ var Fq = /* @__PURE__ */ x(function(t, e, r) { let w, O = y(d); const S = Array.isArray(e.style) ? e.style : [e.style]; if (e.look === "handDrawn") { - const L = Bn.svg(t); + const A = Bn.svg(t); Object.assign([], d); - const E = L.path(O, { + const E = A.path(O, { roughness: 0.3, seed: o }); b += " transition", w = et(E).select("path").attr("id", e.id).attr("class", " " + b + (e.classes ? " " + e.classes : "")).attr("style", S ? S.reduce((_, R) => _ + ";" + R, "") : ""); - let A = w.attr("d"); - w.attr("d", A), t.node().appendChild(w.node()); + let L = w.attr("d"); + w.attr("d", L), t.node().appendChild(w.node()); } else - w = t.append("path").attr("d", O).attr("id", e.id).attr("class", " " + b + (e.classes ? " " + e.classes : "")).attr("style", S ? S.reduce((L, E) => L + ";" + E, "") : ""); + w = t.append("path").attr("d", O).attr("id", e.id).attr("class", " " + b + (e.classes ? " " + e.classes : "")).attr("style", S ? S.reduce((A, E) => A + ";" + E, "") : ""); let C = ""; - (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (C = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, C = C.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), X.info("arrowTypeStart", e.arrowTypeStart), X.info("arrowTypeEnd", e.arrowTypeEnd), tSt(w, e, C, a, n); + (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (C = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, C = C.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), X.info("arrowTypeStart", e.arrowTypeStart), X.info("arrowTypeEnd", e.arrowTypeEnd), rSt(w, e, C, a, n); let T = {}; return u && (T.updatedPath = l), T.originalPath = e.points, T; -}, "insertEdge"), oSt = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), lSt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - vSt[i](t, r, n); + ySt[i](t, r, n); }); -}, "insertMarkers"), lSt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), cSt = /* @__PURE__ */ x((t, e, r) => { X.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), cSt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), uSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), uSt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), hSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), hSt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), fSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), fSt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), dSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), dSt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), pSt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "point"), pSt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), gSt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "circle"), gSt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), mSt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"); -}, "cross"), mSt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), vSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), vSt = { - extension: lSt, - composition: cSt, - aggregation: uSt, - dependency: hSt, - lollipop: fSt, - point: dSt, - circle: pSt, - cross: gSt, - barb: mSt -}, uoe = oSt, Ys = /* @__PURE__ */ x(async (t, e, r) => { +}, "barb"), ySt = { + extension: cSt, + composition: uSt, + aggregation: hSt, + dependency: fSt, + lollipop: dSt, + point: pSt, + circle: gSt, + cross: mSt, + barb: vSt +}, hoe = lSt, Ys = /* @__PURE__ */ x(async (t, e, r) => { let n; const i = e.useHtmlLabels || bn(be().flowchart.htmlLabels); r ? n = r : n = "node default"; @@ -44861,43 +44861,43 @@ var Fq = /* @__PURE__ */ x(function(t, e, r) { const r = e.node().getBBox(); t.width = r.width, t.height = r.height; }, "updateNodeBounds"), fo = /* @__PURE__ */ x((t, e) => (t.look === "handDrawn" ? "rough-node" : "node") + " " + t.cssClasses + " " + (e || ""), "getNodeClasses"); -function hoe(t, e) { +function foe(t, e) { return t.intersect(e); } -x(hoe, "intersectNode"); -var ySt = hoe; -function foe(t, e, r, n) { +x(foe, "intersectNode"); +var bSt = foe; +function doe(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); var h = Math.abs(e * r * o / l); return n.y < s && (h = -h), { x: i + u, y: s + h }; } -x(foe, "intersectEllipse"); -var doe = foe; -function poe(t, e, r) { - return doe(t, e, e, r); +x(doe, "intersectEllipse"); +var poe = doe; +function goe(t, e, r) { + return poe(t, e, e, r); } -x(poe, "intersectCircle"); -var bSt = poe; -function goe(t, e, r, n) { +x(goe, "intersectCircle"); +var xSt = goe; +function moe(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; - if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && Q8(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && Q8(h, f)) && (g = i * o - s * a, g !== 0))) + if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && Y8(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && Y8(h, f)) && (g = i * o - s * a, g !== 0))) return m = Math.abs(g / 2), v = a * u - o * l, y = v < 0 ? (v - m) / g : (v + m) / g, v = s * l - i * u, b = v < 0 ? (v - m) / g : (v + m) / g, { x: y, y: b }; } -x(goe, "intersectLine"); -function Q8(t, e) { +x(moe, "intersectLine"); +function Y8(t, e) { return t * e > 0; } -x(Q8, "sameSign"); -var xSt = goe; -function moe(t, e, r) { +x(Y8, "sameSign"); +var wSt = moe; +function voe(t, e, r) { let n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(h) { a = Math.min(a, h.x), o = Math.min(o, h.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); let l = n - t.width / 2 - a, u = i - t.height / 2 - o; for (let h = 0; h < e.length; h++) { - let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = xSt( + let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = wSt( t, r, { x: l + f.x, y: u + f.y }, @@ -44910,14 +44910,14 @@ function moe(t, e, r) { return g < y ? -1 : g === y ? 0 : 1; }), s[0]) : t; } -x(moe, "intersectPolygon"); -var wSt = moe, si = { - node: ySt, - circle: bSt, - ellipse: doe, - polygon: wSt, +x(voe, "intersectPolygon"); +var OSt = voe, si = { + node: bSt, + circle: xSt, + ellipse: poe, + polygon: OSt, rect: xx -}, rN = /* @__PURE__ */ x(async (t, e, r) => { +}, nN = /* @__PURE__ */ x(async (t, e, r) => { const { labelStyles: n, nodeStyles: i } = Qs(e); e.labelStyle = n; const { shapeSvg: s, bbox: a } = await Ys(t, e, fo(e)), o = Math.max(a.width + r.labelPaddingX * 2, (e == null ? void 0 : e.width) || 0), l = Math.max(a.height + r.labelPaddingY * 2, (e == null ? void 0 : e.height) || 0), u = -o / 2, h = -l / 2; @@ -44931,11 +44931,11 @@ var wSt = moe, si = { return ii(e, f), e.intersect = function(m) { return si.rect(e, m); }, s; -}, "drawRect"), OSt = /* @__PURE__ */ x(async (t, e) => rN(t, e, { +}, "drawRect"), kSt = /* @__PURE__ */ x(async (t, e) => nN(t, e, { rx: 5, ry: 5, classes: "flowchart-node" -}), "state"), kSt = /* @__PURE__ */ x(async (t, e) => { +}), "state"), SSt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 5, ry: 5, @@ -44943,8 +44943,8 @@ var wSt = moe, si = { labelPaddingX: ((e == null ? void 0 : e.padding) || 0) * 1, labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; - return rN(t, e, r); -}, "roundedRect"), SSt = /* @__PURE__ */ x(async (t, e) => { + return nN(t, e, r); +}, "roundedRect"), TSt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 0, ry: 0, @@ -44952,8 +44952,8 @@ var wSt = moe, si = { labelPaddingX: ((e == null ? void 0 : e.padding) || 0) * 2, labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; - return rN(t, e, r); -}, "squareRect"), TSt = /* @__PURE__ */ x((t, e) => { + return nN(t, e, r); +}, "squareRect"), CSt = /* @__PURE__ */ x((t, e) => { const { themeVariables: r } = be(), { lineColor: n } = r, i = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let s; if (e.look === "handDrawn") { @@ -44964,7 +44964,7 @@ var wSt = moe, si = { return s.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), ii(e, s), e.intersect = function(a) { return si.circle(e, 7, a); }, i; -}, "stateStart"), CSt = /* @__PURE__ */ x((t, e) => { +}, "stateStart"), ESt = /* @__PURE__ */ x((t, e) => { const { themeVariables: r } = be(), { lineColor: n } = r, i = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let s, a; if (e.look === "handDrawn") { @@ -44991,7 +44991,7 @@ var wSt = moe, si = { return e.height && (f = e.height), e.width && (d = e.width), e.padding && (p = e.padding), e.height = f + p / 2, e.width = d + p / 2, e.intersect = function(g) { return si.rect(e, g); }, s; -}, "forkJoin"), ESt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), _St = /* @__PURE__ */ x((t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { themeVariables: i } = be(), { lineColor: s } = i, a = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), o = 28, l = [ @@ -45016,7 +45016,7 @@ var wSt = moe, si = { return u.attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28).attr("style", n), e.width = 28, e.height = 28, e.intersect = function(h) { return si.circle(e, 14, h); }, a; -}, "choice"), _St = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), ASt = /* @__PURE__ */ x(async (t, e) => { const { themeVariables: r, handDrawnSeed: n } = be(), { noteBorderColor: i, noteBkgColor: s } = r; e.useHtmlLabels || (e.centerLabel = !0); const { shapeSvg: o, bbox: l } = await Ys(t, e, "node " + e.cssClasses); @@ -45038,7 +45038,7 @@ var wSt = moe, si = { return ii(e, h), e.intersect = function(m) { return si.rect(e, m); }, o; -}, "note"), ASt = /* @__PURE__ */ x(async (t, e) => { +}, "note"), LSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.height + e.padding, o = s.width + a / 4 + e.padding; @@ -45052,17 +45052,17 @@ var wSt = moe, si = { return ii(e, l), e.intersect = function(h) { return si.rect(e, h); }, i; -}, "stadium"), LSt = /* @__PURE__ */ x(async (t, e) => { - var L, E; +}, "stadium"), RSt = /* @__PURE__ */ x(async (t, e) => { + var A, E; const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; let i; e.cssClasses ? i = "node " + e.cssClasses : i = "node default"; const s = t.insert("g").attr("class", i).attr("id", e.domId || e.id), a = s.insert("g"), o = s.insert("g").attr("class", "label").attr("style", n), l = e.description, u = e.label, h = o.node().appendChild(await Md(u, e.labelStyle, !0, !0)); let f = { width: 0, height: 0 }; - if (bn((E = (L = be()) == null ? void 0 : L.flowchart) == null ? void 0 : E.htmlLabels)) { - const A = h.children[0], _ = et(h); - f = A.getBoundingClientRect(), _.attr("width", f.width), _.attr("height", f.height); + if (bn((E = (A = be()) == null ? void 0 : A.flowchart) == null ? void 0 : E.htmlLabels)) { + const L = h.children[0], _ = et(h); + f = L.getBoundingClientRect(), _.attr("width", f.width), _.attr("height", f.height); } X.info("Text 2", l); const d = l || [], p = h.getBBox(), g = o.node().appendChild( @@ -45088,10 +45088,10 @@ var wSt = moe, si = { const b = f.width + (e.padding || 0), w = f.height + (e.padding || 0), O = -f.width / 2 - y, S = -f.height / 2 - y; let C, T; if (e.look === "handDrawn") { - const A = Bn.svg(s), _ = gs(e, {}), R = A.path( + const L = Bn.svg(s), _ = gs(e, {}), R = L.path( wx(O, S, b, w, e.rx || 0), _ - ), $ = A.line( + ), $ = L.line( -f.width / 2 - y, -f.height / 2 - y + p.height + y, f.width / 2 + y, @@ -45101,8 +45101,8 @@ var wSt = moe, si = { T = s.insert(() => (X.debug("Rough node insert CXC", R), $), ":first-child"), C = s.insert(() => (X.debug("Rough node insert CXC", R), R), ":first-child"); } else C = a.insert("rect", ":first-child"), T = a.insert("line"), C.attr("class", "outer title-state").attr("style", n).attr("x", -f.width / 2 - y).attr("y", -f.height / 2 - y).attr("width", f.width + (e.padding || 0)).attr("height", f.height + (e.padding || 0)), T.attr("class", "divider").attr("x1", -f.width / 2 - y).attr("x2", f.width / 2 + y).attr("y1", -f.height / 2 - y + p.height + y).attr("y2", -f.height / 2 - y + p.height + y); - return ii(e, C), e.intersect = function(A) { - return si.rect(e, A); + return ii(e, C), e.intersect = function(L) { + return si.rect(e, L); }, s; }, "rectWithTitle"); function uh(t, e, r, n) { @@ -45114,7 +45114,7 @@ function uh(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(uh, "insertPolygonShape"); -var RSt = /* @__PURE__ */ x(async (t, e) => { +var MSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = ((e == null ? void 0 : e.padding) || 0) / 2, o = s.width + e.padding, l = s.height + e.padding, u = -s.width / 2 - a, h = -s.height / 2 - a, f = [ @@ -45141,31 +45141,31 @@ var RSt = /* @__PURE__ */ x(async (t, e) => { return e.intersect = function(d) { return si.polygon(e, f, d); }, i; -}, "subroutine"), MSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +}, "subroutine"), DSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ `M${t},${e + s}`, `a${i},${s} 0,0,0 ${r},0`, `a${i},${s} 0,0,0 ${-r},0`, `l0,${n}`, `a${i},${s} 0,0,0 ${r},0`, `l0,${-n}` -].join(" "), "createCylinderPathD"), DSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +].join(" "), "createCylinderPathD"), NSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ `M${t},${e + s}`, `M${t + r},${e + s}`, `a${i},${s} 0,0,0 ${-r},0`, `l0,${n}`, `a${i},${s} 0,0,0 ${r},0`, `l0,${-n}` -].join(" "), "createOuterCylinderPathD"), NSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), ISt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createOuterCylinderPathD"), ISt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), PSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = a / 2, l = o / (2.5 + a / 50), u = s.height + l + e.padding; let h; const { cssStyles: f } = e; if (e.look === "handDrawn") { - const d = Bn.svg(i), p = DSt(0, 0, a, u, o, l), g = NSt(0, l, a, u, o, l), m = d.path(p, gs(e, {})), v = d.path(g, gs(e, { fill: "none" })); + const d = Bn.svg(i), p = NSt(0, 0, a, u, o, l), g = ISt(0, l, a, u, o, l), m = d.path(p, gs(e, {})), v = d.path(g, gs(e, { fill: "none" })); h = i.insert(() => v, ":first-child"), h = i.insert(() => m, ":first-child"), h.attr("class", "basic label-container"), f && h.attr("style", f); } else { - const d = MSt(0, 0, a, u, o, l); + const d = DSt(0, 0, a, u, o, l); h = i.insert("path", ":first-child").attr("d", d).attr("class", "basic label-container").attr("style", f).attr("style", n); } return h.attr("label-offset-y", l), h.attr("transform", `translate(${-a / 2}, ${-(u / 2 + l)})`), ii(e, h), e.intersect = function(d) { @@ -45177,7 +45177,7 @@ var RSt = /* @__PURE__ */ x(async (t, e) => { } return p; }, i; -}, "cylinder"), PSt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), $St = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s, halfPadding: a } = await Ys(t, e, fo(e)), o = s.width / 2 + a; @@ -45191,7 +45191,7 @@ var RSt = /* @__PURE__ */ x(async (t, e) => { return ii(e, l), e.intersect = function(h) { return X.info("Circle intersect", e, o, h), si.circle(e, o, h); }, i; -}, "circle"), $St = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), BSt = /* @__PURE__ */ x(async (t, e) => { var d, p; const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; @@ -45209,14 +45209,14 @@ var RSt = /* @__PURE__ */ x(async (t, e) => { return ii(e, h), e.intersect = function(g) { return X.info("DoubleCircle intersect", e, l, g), si.circle(e, l, g); }, i; -}, "doublecircle"), BSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "doublecircle"), FSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - n / 2},${e}`, `L${t + r},${e}`, `L${t + r},${e - n}`, `L${t - n / 2},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createPolygonPathD"), FSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createPolygonPathD"), zSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45229,20 +45229,20 @@ var RSt = /* @__PURE__ */ x(async (t, e) => { let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = BSt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = FSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a + o, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "rect_left_inv_arrow"), zSt = /* @__PURE__ */ x((t, e, r) => [ +}, "rect_left_inv_arrow"), VSt = /* @__PURE__ */ x((t, e, r) => [ `M${t + r / 2},${e}`, `L${t + r},${e - r / 2}`, `L${t + r / 2},${e - r}`, `L${t},${e - r / 2}`, "Z" -].join(" "), "createDecisionBoxPathD"), VSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createDecisionBoxPathD"), USt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = s.height + e.padding, l = a + o, u = [ @@ -45254,7 +45254,7 @@ var RSt = /* @__PURE__ */ x(async (t, e) => { let h; const { cssStyles: f } = e; if (e.look === "handDrawn") { - const d = Bn.svg(i), p = gs(e, {}), g = zSt(0, 0, l), m = d.path(g, p); + const d = Bn.svg(i), p = gs(e, {}), g = VSt(0, 0, l), m = d.path(g, p); h = i.insert(() => m, ":first-child").attr("transform", `translate(${-l / 2}, ${l / 2})`), f && h.attr("style", f); } else h = uh(i, l, l, u); @@ -45272,7 +45272,7 @@ res:`, si.polygon(e, u, d) ), si.polygon(e, u, d); }, i; -}, "question"), USt = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "question"), qSt = /* @__PURE__ */ x((t, e, r, n, i) => [ `M${t + i},${e}`, `L${t + r - i},${e}`, `L${t + r},${e - n / 2}`, @@ -45280,7 +45280,7 @@ res:`, `L${t + i},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createHexagonPathD"), qSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createHexagonPathD"), QSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = 4, o = s.height + e.padding, l = o / a, u = s.width + 2 * l + e.padding, h = [ @@ -45294,20 +45294,20 @@ res:`, let f; const { cssStyles: d } = e; if (e.look === "handDrawn") { - const p = Bn.svg(i), g = gs(e, {}), m = USt(0, 0, u, o, l), v = p.path(m, g); + const p = Bn.svg(i), g = gs(e, {}), m = qSt(0, 0, u, o, l), v = p.path(m, g); f = i.insert(() => v, ":first-child").attr("transform", `translate(${-u / 2}, ${o / 2})`), d && f.attr("style", d); } else f = uh(i, u, o, h); return n && f.attr("style", n), e.width = u, e.height = o, ii(e, f), e.intersect = function(p) { return si.polygon(e, h, p); }, i; -}, "hexagon"), QSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "hexagon"), YSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - 2 * n / 6},${e}`, `L${t + r - n / 6},${e}`, `L${t + r + 2 * n / 6},${e - n}`, `L${t + n / 6},${e - n}`, "Z" -].join(" "), "createLeanRightPathD"), YSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanRightPathD"), WSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45319,20 +45319,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = QSt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = YSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "lean_right"), WSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_right"), GSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t + 2 * n / 6},${e}`, `L${t + r + n / 6},${e}`, `L${t + r - 2 * n / 6},${e - n}`, `L${t - n / 6},${e - n}`, "Z" -].join(" "), "createLeanLeftPathD"), GSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanLeftPathD"), HSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45344,20 +45344,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = WSt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = GSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "lean_left"), HSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_left"), XSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - 2 * n / 6},${e}`, `L${t + r + 2 * n / 6},${e}`, `L${t + r - n / 6},${e - n}`, `L${t + n / 6},${e - n}`, "Z" -].join(" "), "createTrapezoidPathD"), XSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createTrapezoidPathD"), ZSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45369,20 +45369,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = HSt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = XSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "trapezoid"), ZSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "trapezoid"), jSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t + n / 6},${e}`, `L${t + r - n / 6},${e}`, `L${t + r + 2 * n / 6},${e - n}`, `L${t - 2 * n / 6},${e - n}`, "Z" -].join(" "), "createInvertedTrapezoidPathD"), jSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createInvertedTrapezoidPathD"), KSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Qs(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Ys(t, e, fo(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45394,43 +45394,43 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = ZSt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = jSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "inv_trapezoid"), KSt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), JSt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await Ys(t, e, "label"), n = r.insert("rect", ":first-child"), i = 0.1, s = 0.1; return n.attr("width", i).attr("height", s), r.attr("class", "label edgeLabel"), ii(e, n), e.intersect = function(a) { return si.rect(e, a); }, r; }, "labelRect"), Vq = { - state: OSt, - stateStart: TSt, - stateEnd: CSt, + state: kSt, + stateStart: CSt, + stateEnd: ESt, fork: zq, join: zq, - choice: ESt, - note: _St, - roundedRect: kSt, - rectWithTitle: LSt, - squareRect: SSt, - stadium: ASt, - subroutine: RSt, - cylinder: ISt, - circle: PSt, - doublecircle: $St, - odd: FSt, - diamond: VSt, - hexagon: qSt, - lean_right: YSt, - lean_left: GSt, - trapezoid: XSt, - inv_trapezoid: jSt, - labelRect: KSt -}, ng = /* @__PURE__ */ new Map(), voe = /* @__PURE__ */ x(async (t, e, r) => { + choice: _St, + note: ASt, + roundedRect: SSt, + rectWithTitle: RSt, + squareRect: TSt, + stadium: LSt, + subroutine: MSt, + cylinder: PSt, + circle: $St, + doublecircle: BSt, + odd: zSt, + diamond: USt, + hexagon: QSt, + lean_right: WSt, + lean_left: HSt, + trapezoid: ZSt, + inv_trapezoid: KSt, + labelRect: JSt +}, ng = /* @__PURE__ */ new Map(), yoe = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.shape === "rect" && (e.rx && e.ry ? e.shape = "roundedRect" : e.shape = "squareRect"), e.link) { let s; @@ -45438,9 +45438,9 @@ res:`, } else i = await Vq[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), ng.set(e.id, n), e.haveCallback && ng.get(e.id).attr("class", ng.get(e.id).attr("class") + " clickable"), n; -}, "insertNode"), JSt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), eTt = /* @__PURE__ */ x((t, e) => { ng.set(e.id, t); -}, "setNodeElem"), eTt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), tTt = /* @__PURE__ */ x(() => { ng.clear(); }, "clear"), Uq = /* @__PURE__ */ x((t) => { const e = ng.get(t.id); @@ -45455,44 +45455,44 @@ res:`, "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), tTt = { +}, "positionNode"), rTt = { common: at, getConfig: pi, - insertCluster: soe, - insertEdge: coe, - insertEdgeLabel: aoe, - insertMarkers: uoe, - insertNode: voe, + insertCluster: aoe, + insertEdge: uoe, + insertEdgeLabel: ooe, + insertMarkers: hoe, + insertNode: yoe, interpolateToCurve: gx, labelHelper: Ys, log: X, - positionEdgeLabel: ooe -}, m2 = {}, yoe = /* @__PURE__ */ x((t) => { + positionEdgeLabel: loe +}, m2 = {}, boe = /* @__PURE__ */ x((t) => { for (const e of t) m2[e.name] = e; -}, "registerLayoutLoaders"), rTt = /* @__PURE__ */ x(() => { - yoe([ +}, "registerLayoutLoaders"), nTt = /* @__PURE__ */ x(() => { + boe([ { name: "dagre", - loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => rIt), "loader") + loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => nIt), "loader") } ]); }, "registerDefaultLayoutLoaders"); -rTt(); -var boe = /* @__PURE__ */ x(async (t, e) => { +nTt(); +var xoe = /* @__PURE__ */ x(async (t, e) => { if (!(t.layoutAlgorithm in m2)) throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`); const r = m2[t.layoutAlgorithm]; - return (await r.loader()).render(t, e, tTt, { + return (await r.loader()).render(t, e, rTt, { algorithm: r.algorithm }); -}, "render"), nTt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { +}, "render"), iTt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { if (t in m2) return t; if (e in m2) return X.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`), e; throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`); -}, "getRegisteredLayoutAlgorithm"), Y8 = "11.2.0", H0 = /* @__PURE__ */ x((t) => { +}, "getRegisteredLayoutAlgorithm"), W8 = "11.2.0", H0 = /* @__PURE__ */ x((t) => { var i, s; const { securityLevel: e } = be(); let r = et("body"); @@ -45501,14 +45501,14 @@ var boe = /* @__PURE__ */ x(async (t, e) => { r = et(o.body); } return r.select(`#${t}`); -}, "selectSvgElement"), xoe = "comm", woe = "rule", Ooe = "decl", iTt = "@import", sTt = "@keyframes", aTt = "@layer", koe = Math.abs, nN = String.fromCharCode; -function Soe(t) { +}, "selectSvgElement"), woe = "comm", Ooe = "rule", koe = "decl", sTt = "@import", aTt = "@keyframes", oTt = "@layer", Soe = Math.abs, iN = String.fromCharCode; +function Toe(t) { return t.trim(); } function P4(t, e, r) { return t.replace(e, r); } -function oTt(t, e, r) { +function lTt(t, e, r) { return t.indexOf(e, r); } function v2(t, e) { @@ -45520,24 +45520,24 @@ function t1(t, e, r) { function ac(t) { return t.length; } -function lTt(t) { +function cTt(t) { return t.length; } function iO(t, e) { return e.push(t), t; } -var BT = 1, r1 = 1, Toe = 0, Zo = 0, ci = 0, em = ""; -function iN(t, e, r, n, i, s, a, o) { - return { value: t, root: e, parent: r, type: n, props: i, children: s, line: BT, column: r1, length: a, return: "", siblings: o }; +var FT = 1, r1 = 1, Coe = 0, Zo = 0, ci = 0, em = ""; +function sN(t, e, r, n, i, s, a, o) { + return { value: t, root: e, parent: r, type: n, props: i, children: s, line: FT, column: r1, length: a, return: "", siblings: o }; } -function cTt() { +function uTt() { return ci; } -function uTt() { - return ci = Zo > 0 ? v2(em, --Zo) : 0, r1--, ci === 10 && (r1 = 1, BT--), ci; +function hTt() { + return ci = Zo > 0 ? v2(em, --Zo) : 0, r1--, ci === 10 && (r1 = 1, FT--), ci; } function kl() { - return ci = Zo < Toe ? v2(em, Zo++) : 0, r1++, ci === 10 && (r1 = 1, BT++), ci; + return ci = Zo < Coe ? v2(em, Zo++) : 0, r1++, ci === 10 && (r1 = 1, FT++), ci; } function zh() { return v2(em, Zo); @@ -45545,7 +45545,7 @@ function zh() { function $4() { return Zo; } -function FT(t, e) { +function zT(t, e) { return t1(em, t, e); } function y2(t) { @@ -45580,36 +45580,36 @@ function y2(t) { } return 0; } -function hTt(t) { - return BT = r1 = 1, Toe = ac(em = t), Zo = 0, []; -} function fTt(t) { + return FT = r1 = 1, Coe = ac(em = t), Zo = 0, []; +} +function dTt(t) { return em = "", t; } -function t_(t) { - return Soe(FT(Zo - 1, W8(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); +function r_(t) { + return Toe(zT(Zo - 1, G8(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function dTt(t) { +function pTt(t) { for (; (ci = zh()) && ci < 33; ) kl(); return y2(t) > 2 || y2(ci) > 3 ? "" : " "; } -function pTt(t, e) { +function gTt(t, e) { for (; --e && kl() && !(ci < 48 || ci > 102 || ci > 57 && ci < 65 || ci > 70 && ci < 97); ) ; - return FT(t, $4() + (e < 6 && zh() == 32 && kl() == 32)); + return zT(t, $4() + (e < 6 && zh() == 32 && kl() == 32)); } -function W8(t) { +function G8(t) { for (; kl(); ) switch (ci) { case t: return Zo; case 34: case 39: - t !== 34 && t !== 39 && W8(ci); + t !== 34 && t !== 39 && G8(ci); break; case 40: - t === 41 && W8(t); + t === 41 && G8(t); break; case 92: kl(); @@ -45617,47 +45617,47 @@ function W8(t) { } return Zo; } -function gTt(t, e) { +function mTt(t, e) { for (; kl() && t + ci !== 47 + 10; ) if (t + ci === 42 + 42 && zh() === 47) break; - return "/*" + FT(e, Zo - 1) + "*" + nN(t === 47 ? t : kl()); + return "/*" + zT(e, Zo - 1) + "*" + iN(t === 47 ? t : kl()); } -function mTt(t) { +function vTt(t) { for (; !y2(zh()); ) kl(); - return FT(t, Zo); + return zT(t, Zo); } -function vTt(t) { - return fTt(B4("", null, null, null, [""], t = hTt(t), 0, [0], t)); +function yTt(t) { + return dTt(B4("", null, null, null, [""], t = fTt(t), 0, [0], t)); } function B4(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) switch (g = b, b = kl()) { case 40: if (g != 108 && v2(T, f - 1) == 58) { - oTt(T += P4(t_(b), "&", "&\f"), "&\f", koe(u ? o[u - 1] : 0)) != -1 && (y = -1); + lTt(T += P4(r_(b), "&", "&\f"), "&\f", Soe(u ? o[u - 1] : 0)) != -1 && (y = -1); break; } case 34: case 39: case 91: - T += t_(b); + T += r_(b); break; case 9: case 10: case 13: case 32: - T += dTt(g); + T += pTt(g); break; case 92: - T += pTt($4() - 1, 7); + T += gTt($4() - 1, 7); continue; case 47: switch (zh()) { case 42: case 47: - iO(yTt(gTt(kl(), $4()), e, r, l), l), (y2(g || 1) == 5 || y2(zh() || 1) == 5) && ac(T) && t1(T, -1, void 0) !== " " && (T += " "); + iO(bTt(mTt(kl(), $4()), e, r, l), l), (y2(g || 1) == 5 || y2(zh() || 1) == 5) && ac(T) && t1(T, -1, void 0) !== " " && (T += " "); break; default: T += "/"; @@ -45701,10 +45701,10 @@ function B4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && uTt() == 125) + else if (b == 125 && m++ == 0 && hTt() == 125) continue; } - switch (T += nN(b), b * m) { + switch (T += iN(b), b * m) { case 38: y = h > 0 ? 1 : (T += "\f", -1); break; @@ -45712,7 +45712,7 @@ function B4(t, e, r, n, i, s, a, o, l) { o[u++] = (ac(T) - 1) * y, y = 1; break; case 64: - zh() === 45 && (T += t_(kl())), d = zh(), h = f = ac(w = T += mTt($4())), b++; + zh() === 45 && (T += r_(kl())), d = zh(), h = f = ac(w = T += vTt($4())), b++; break; case 45: g === 45 && ac(T) == 2 && (m = 0); @@ -45721,232 +45721,232 @@ function B4(t, e, r, n, i, s, a, o, l) { return s; } function qq(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = lTt(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = t1(t, d + 1, d = koe(v = a[m])), O = t; b < g; ++b) - (O = Soe(v > 0 ? p[b] + " " + w : P4(w, /&\f/g, p[b]))) && (l[y++] = O); - return iN(t, e, r, i === 0 ? woe : o, l, u, h, f); + for (var d = i - 1, p = i === 0 ? s : [""], g = cTt(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var b = 0, w = t1(t, d + 1, d = Soe(v = a[m])), O = t; b < g; ++b) + (O = Toe(v > 0 ? p[b] + " " + w : P4(w, /&\f/g, p[b]))) && (l[y++] = O); + return sN(t, e, r, i === 0 ? Ooe : o, l, u, h, f); } -function yTt(t, e, r, n) { - return iN(t, e, r, xoe, nN(cTt()), t1(t, 2, -2), 0, n); +function bTt(t, e, r, n) { + return sN(t, e, r, woe, iN(uTt()), t1(t, 2, -2), 0, n); } function Qq(t, e, r, n, i) { - return iN(t, e, r, Ooe, t1(t, 0, n), t1(t, n + 1, -1), n, i); + return sN(t, e, r, koe, t1(t, 0, n), t1(t, n + 1, -1), n, i); } -function G8(t, e) { +function H8(t, e) { for (var r = "", n = 0; n < t.length; n++) r += e(t[n], n, t, e) || ""; return r; } -function bTt(t, e, r, n) { +function xTt(t, e, r, n) { switch (t.type) { - case aTt: + case oTt: if (t.children.length) break; - case iTt: - case Ooe: - return t.return = t.return || t.value; - case xoe: - return ""; case sTt: - return t.return = t.value + "{" + G8(t.children, n) + "}"; + case koe: + return t.return = t.return || t.value; case woe: + return ""; + case aTt: + return t.return = t.value + "{" + H8(t.children, n) + "}"; + case Ooe: if (!ac(t.value = t.props.join(","))) return ""; } - return ac(r = G8(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; + return ac(r = H8(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -var xTt = nae(Object.keys, Object); -const wTt = xTt; -var OTt = Object.prototype, kTt = OTt.hasOwnProperty; -function Coe(t) { +var wTt = iae(Object.keys, Object); +const OTt = wTt; +var kTt = Object.prototype, STt = kTt.hasOwnProperty; +function Eoe(t) { if (!fx(t)) - return wTt(t); + return OTt(t); var e = []; for (var r in Object(t)) - kTt.call(t, r) && r != "constructor" && e.push(r); + STt.call(t, r) && r != "constructor" && e.push(r); return e; } -var STt = Q0(Gl, "DataView"); -const H8 = STt; -var TTt = Q0(Gl, "Promise"); +var TTt = Q0(Gl, "DataView"); const X8 = TTt; -var CTt = Q0(Gl, "Set"); -const ig = CTt; -var ETt = Q0(Gl, "WeakMap"); -const Z8 = ETt; -var Yq = "[object Map]", _Tt = "[object Object]", Wq = "[object Promise]", Gq = "[object Set]", Hq = "[object WeakMap]", Xq = "[object DataView]", ATt = q0(H8), LTt = q0(p2), RTt = q0(X8), MTt = q0(ig), DTt = q0(Z8), ld = ah; -(H8 && ld(new H8(new ArrayBuffer(1))) != Xq || p2 && ld(new p2()) != Yq || X8 && ld(X8.resolve()) != Wq || ig && ld(new ig()) != Gq || Z8 && ld(new Z8()) != Hq) && (ld = function(t) { - var e = ah(t), r = e == _Tt ? t.constructor : void 0, n = r ? q0(r) : ""; +var CTt = Q0(Gl, "Promise"); +const Z8 = CTt; +var ETt = Q0(Gl, "Set"); +const ig = ETt; +var _Tt = Q0(Gl, "WeakMap"); +const j8 = _Tt; +var Yq = "[object Map]", ATt = "[object Object]", Wq = "[object Promise]", Gq = "[object Set]", Hq = "[object WeakMap]", Xq = "[object DataView]", LTt = q0(X8), RTt = q0(p2), MTt = q0(Z8), DTt = q0(ig), NTt = q0(j8), ld = ah; +(X8 && ld(new X8(new ArrayBuffer(1))) != Xq || p2 && ld(new p2()) != Yq || Z8 && ld(Z8.resolve()) != Wq || ig && ld(new ig()) != Gq || j8 && ld(new j8()) != Hq) && (ld = function(t) { + var e = ah(t), r = e == ATt ? t.constructor : void 0, n = r ? q0(r) : ""; if (n) switch (n) { - case ATt: - return Xq; case LTt: - return Yq; + return Xq; case RTt: - return Wq; + return Yq; case MTt: - return Gq; + return Wq; case DTt: + return Gq; + case NTt: return Hq; } return e; }); const n1 = ld; -var NTt = "[object Map]", ITt = "[object Set]", PTt = Object.prototype, $Tt = PTt.hasOwnProperty; +var ITt = "[object Map]", PTt = "[object Set]", $Tt = Object.prototype, BTt = $Tt.hasOwnProperty; function $r(t) { if (t == null) return !0; - if (Zc(t) && (Sr(t) || typeof t == "string" || typeof t.splice == "function" || e1(t) || MT(t) || Jg(t))) + if (Zc(t) && (Sr(t) || typeof t == "string" || typeof t.splice == "function" || e1(t) || DT(t) || Jg(t))) return !t.length; var e = n1(t); - if (e == NTt || e == ITt) + if (e == ITt || e == PTt) return !t.size; if (fx(t)) - return !Coe(t).length; + return !Eoe(t).length; for (var r in t) - if ($Tt.call(t, r)) + if (BTt.call(t, r)) return !1; return !0; } -var Eoe = "c4", BTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), FTt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => ePt); - return { id: Eoe, diagram: t }; -}, "loader"), zTt = { - id: Eoe, - detector: BTt, - loader: FTt -}, VTt = zTt, _oe = "flowchart", UTt = /* @__PURE__ */ x((t, e) => { +var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), zTt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => tPt); + return { id: _oe, diagram: t }; +}, "loader"), VTt = { + id: _oe, + detector: FTt, + loader: zTt +}, UTt = VTt, Aoe = "flowchart", qTt = /* @__PURE__ */ x((t, e) => { var r, n; return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" || ((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t); -}, "detector"), qTt = /* @__PURE__ */ x(async () => { +}, "detector"), QTt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => uI); - return { id: _oe, diagram: t }; -}, "loader"), QTt = { - id: _oe, - detector: UTt, - loader: qTt -}, YTt = QTt, Aoe = "flowchart-v2", WTt = /* @__PURE__ */ x((t, e) => { + return { id: Aoe, diagram: t }; +}, "loader"), YTt = { + id: Aoe, + detector: qTt, + loader: QTt +}, WTt = YTt, Loe = "flowchart-v2", GTt = /* @__PURE__ */ x((t, e) => { var r, n, i; return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-d3" ? !1 : (((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "elk" && (e.layout = "elk"), /^\s*graph/.test(t) && ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(t)); -}, "detector"), GTt = /* @__PURE__ */ x(async () => { +}, "detector"), HTt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => uI); - return { id: Aoe, diagram: t }; -}, "loader"), HTt = { - id: Aoe, - detector: WTt, - loader: GTt -}, XTt = HTt, Loe = "er", ZTt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), jTt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => nBt); return { id: Loe, diagram: t }; -}, "loader"), KTt = { +}, "loader"), XTt = { id: Loe, - detector: ZTt, - loader: jTt -}, JTt = KTt, Roe = "gitGraph", eCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), tCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => kYt); + detector: GTt, + loader: HTt +}, ZTt = XTt, Roe = "er", jTt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), KTt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => iBt); return { id: Roe, diagram: t }; -}, "loader"), rCt = { +}, "loader"), JTt = { id: Roe, - detector: eCt, - loader: tCt -}, nCt = rCt, Moe = "gantt", iCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), sCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => vWt); + detector: jTt, + loader: KTt +}, eCt = JTt, Moe = "gitGraph", tCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), rCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => SYt); return { id: Moe, diagram: t }; -}, "loader"), aCt = { +}, "loader"), nCt = { id: Moe, - detector: iCt, - loader: sCt -}, oCt = aCt, Doe = "info", lCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), cCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => TWt); + detector: tCt, + loader: rCt +}, iCt = nCt, Doe = "gantt", sCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), aCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => yWt); return { id: Doe, diagram: t }; -}, "loader"), uCt = { +}, "loader"), oCt = { id: Doe, - detector: lCt, - loader: cCt -}, Noe = "pie", hCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), fCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => VWt); + detector: sCt, + loader: aCt +}, lCt = oCt, Noe = "info", cCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), uCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => CWt); return { id: Noe, diagram: t }; -}, "loader"), dCt = { +}, "loader"), hCt = { id: Noe, - detector: hCt, - loader: fCt -}, Ioe = "quadrantChart", pCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), gCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => ZWt); + detector: cCt, + loader: uCt +}, Ioe = "pie", fCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), dCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => UWt); return { id: Ioe, diagram: t }; -}, "loader"), mCt = { +}, "loader"), pCt = { id: Ioe, - detector: pCt, - loader: gCt -}, vCt = mCt, Poe = "xychart", yCt = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), bCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => hGt); + detector: fCt, + loader: dCt +}, Poe = "quadrantChart", gCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), mCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => jWt); return { id: Poe, diagram: t }; -}, "loader"), xCt = { +}, "loader"), vCt = { id: Poe, - detector: yCt, - loader: bCt -}, wCt = xCt, $oe = "requirement", OCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), kCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => qGt); + detector: gCt, + loader: mCt +}, yCt = vCt, $oe = "xychart", bCt = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), xCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => fGt); return { id: $oe, diagram: t }; -}, "loader"), SCt = { +}, "loader"), wCt = { id: $oe, - detector: OCt, - loader: kCt -}, TCt = SCt, Boe = "sequence", CCt = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), ECt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => QHt); + detector: bCt, + loader: xCt +}, OCt = wCt, Boe = "requirement", kCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), SCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => QGt); return { id: Boe, diagram: t }; -}, "loader"), _Ct = { +}, "loader"), TCt = { id: Boe, - detector: CCt, - loader: ECt -}, ACt = _Ct, Foe = "class", LCt = /* @__PURE__ */ x((t, e) => { - var r; - return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); -}, "detector"), RCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => TXt); + detector: kCt, + loader: SCt +}, CCt = TCt, Foe = "sequence", ECt = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), _Ct = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => YHt); return { id: Foe, diagram: t }; -}, "loader"), MCt = { +}, "loader"), ACt = { id: Foe, - detector: LCt, - loader: RCt -}, DCt = MCt, zoe = "classDiagram", NCt = /* @__PURE__ */ x((t, e) => { + detector: ECt, + loader: _Ct +}, LCt = ACt, zoe = "class", RCt = /* @__PURE__ */ x((t, e) => { var r; - return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); -}, "detector"), ICt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => oZt); + return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); +}, "detector"), MCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => CXt); return { id: zoe, diagram: t }; -}, "loader"), PCt = { +}, "loader"), DCt = { id: zoe, - detector: NCt, - loader: ICt -}, $Ct = PCt, Voe = "state", BCt = /* @__PURE__ */ x((t, e) => { + detector: RCt, + loader: MCt +}, NCt = DCt, Voe = "classDiagram", ICt = /* @__PURE__ */ x((t, e) => { var r; - return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); -}, "detector"), FCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => yjt); + return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); +}, "detector"), PCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => lZt); return { id: Voe, diagram: t }; -}, "loader"), zCt = { +}, "loader"), $Ct = { id: Voe, - detector: BCt, - loader: FCt -}, VCt = zCt, Uoe = "stateDiagram", UCt = /* @__PURE__ */ x((t, e) => { + detector: ICt, + loader: PCt +}, BCt = $Ct, Uoe = "state", FCt = /* @__PURE__ */ x((t, e) => { var r; - return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); -}, "detector"), qCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => xjt); + return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); +}, "detector"), zCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => bjt); return { id: Uoe, diagram: t }; -}, "loader"), QCt = { +}, "loader"), VCt = { id: Uoe, - detector: UCt, - loader: qCt -}, YCt = QCt, qoe = "journey", WCt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), GCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Ujt); + detector: FCt, + loader: zCt +}, UCt = VCt, qoe = "stateDiagram", qCt = /* @__PURE__ */ x((t, e) => { + var r; + return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); +}, "detector"), QCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => wjt); return { id: qoe, diagram: t }; -}, "loader"), HCt = { +}, "loader"), YCt = { id: qoe, - detector: WCt, - loader: GCt -}, XCt = HCt, ZCt = /* @__PURE__ */ x((t, e, r) => { + detector: qCt, + loader: QCt +}, WCt = YCt, Qoe = "journey", GCt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), HCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => qjt); + return { id: Qoe, diagram: t }; +}, "loader"), XCt = { + id: Qoe, + detector: GCt, + loader: HCt +}, ZCt = XCt, jCt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering svg for syntax error `); const n = H0(e), i = n.append("g"); @@ -45969,67 +45969,67 @@ var Eoe = "c4", BTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp "d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z" ), i.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${r}`); -}, "draw"), Qoe = { draw: ZCt }, jCt = Qoe, KCt = { +}, "draw"), Yoe = { draw: jCt }, KCt = Yoe, JCt = { db: {}, - renderer: Qoe, + renderer: Yoe, parser: { parse: /* @__PURE__ */ x(() => { }, "parse") } -}, JCt = KCt, Yoe = "flowchart-elk", eEt = /* @__PURE__ */ x((t, e = {}) => { +}, eEt = JCt, Woe = "flowchart-elk", tEt = /* @__PURE__ */ x((t, e = {}) => { var r; return /^\s*flowchart-elk/.test(t) || /^\s*flowchart|graph/.test(t) && ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? (e.layout = "elk", !0) : !1; -}, "detector"), tEt = /* @__PURE__ */ x(async () => { +}, "detector"), rEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => uI); - return { id: Yoe, diagram: t }; -}, "loader"), rEt = { - id: Yoe, - detector: eEt, - loader: tEt -}, nEt = rEt, Woe = "timeline", iEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), sEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => uKt); return { id: Woe, diagram: t }; -}, "loader"), aEt = { +}, "loader"), nEt = { id: Woe, - detector: iEt, - loader: sEt -}, oEt = aEt, Goe = "mindmap", lEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), cEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Oar); + detector: tEt, + loader: rEt +}, iEt = nEt, Goe = "timeline", sEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), aEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => hKt); return { id: Goe, diagram: t }; -}, "loader"), uEt = { +}, "loader"), oEt = { id: Goe, - detector: lEt, - loader: cEt -}, hEt = uEt, Hoe = "sankey", fEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), dEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => ior); + detector: sEt, + loader: aEt +}, lEt = oEt, Hoe = "mindmap", cEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), uEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => kar); return { id: Hoe, diagram: t }; -}, "loader"), pEt = { +}, "loader"), hEt = { id: Hoe, - detector: fEt, - loader: dEt -}, gEt = pEt, Xoe = "packet", mEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), vEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wor); + detector: cEt, + loader: uEt +}, fEt = hEt, Xoe = "sankey", dEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), pEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => sor); return { id: Xoe, diagram: t }; -}, "loader"), yEt = { +}, "loader"), gEt = { id: Xoe, - detector: mEt, - loader: vEt -}, Zoe = "block", bEt = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), xEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Xor); + detector: dEt, + loader: pEt +}, mEt = gEt, Zoe = "packet", vEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), yEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Oor); return { id: Zoe, diagram: t }; -}, "loader"), wEt = { +}, "loader"), bEt = { id: Zoe, - detector: bEt, - loader: xEt -}, OEt = wEt, joe = "architecture", kEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), SEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Rlr); + detector: vEt, + loader: yEt +}, joe = "block", xEt = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), wEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Zor); return { id: joe, diagram: t }; -}, "loader"), TEt = { +}, "loader"), OEt = { id: joe, - detector: kEt, - loader: SEt -}, CEt = TEt, Zq = !1, zT = /* @__PURE__ */ x(() => { - Zq || (Zq = !0, g3("error", JCt, (t) => t.toLowerCase().trim() === "error"), g3( + detector: xEt, + loader: wEt +}, kEt = OEt, Koe = "architecture", SEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), TEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Mlr); + return { id: Koe, diagram: t }; +}, "loader"), CEt = { + id: Koe, + detector: SEt, + loader: TEt +}, EEt = CEt, Zq = !1, VT = /* @__PURE__ */ x(() => { + Zq || (Zq = !0, g3("error", eEt, (t) => t.toLowerCase().trim() === "error"), g3( "---", { db: { @@ -46051,39 +46051,39 @@ var Eoe = "c4", BTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp init: /* @__PURE__ */ x(() => null, "init") }, (t) => t.toLowerCase().trimStart().startsWith("---") - ), yie( - VTt, - $Ct, - DCt, - JTt, - oCt, - uCt, - dCt, - TCt, - ACt, - nEt, - XTt, - YTt, - hEt, - oEt, - nCt, - YCt, - VCt, - XCt, - vCt, - gEt, - yEt, - wCt, - OEt, - CEt + ), bie( + UTt, + BCt, + NCt, + eCt, + lCt, + hCt, + pCt, + CCt, + LCt, + iEt, + ZTt, + WTt, + fEt, + lEt, + iCt, + WCt, + UCt, + ZCt, + yCt, + mEt, + bEt, + OCt, + kEt, + EEt )); -}, "addDiagrams"), EEt = /* @__PURE__ */ x(async () => { +}, "addDiagrams"), _Et = /* @__PURE__ */ x(async () => { X.debug("Loading registered diagrams"); const e = (await Promise.allSettled( Object.entries(qg).map(async ([r, { detector: n, loader: i }]) => { if (i) try { - y8(r); + b8(r); } catch { try { const { diagram: s, id: a } = await i(); @@ -46100,12 +46100,12 @@ var Eoe = "c4", BTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp X.error(r); throw new Error(`Failed to load ${e.length} external diagrams`); } -}, "loadRegisteredDiagrams"), _Et = "graphics-document document"; -function Koe(t, e) { - t.attr("role", _Et), e !== "" && t.attr("aria-roledescription", e); +}, "loadRegisteredDiagrams"), AEt = "graphics-document document"; +function Joe(t, e) { + t.attr("role", AEt), e !== "" && t.attr("aria-roledescription", e); } -x(Koe, "setA11yDiagramInfo"); -function Joe(t, e, r, n) { +x(Joe, "setA11yDiagramInfo"); +function ele(t, e, r, n) { if (t.insert !== void 0) { if (r) { const i = `chart-desc-${n}`; @@ -46117,26 +46117,26 @@ function Joe(t, e, r, n) { } } } -x(Joe, "addSVGa11yTitleDescription"); -var L1, j8 = (L1 = class { +x(ele, "addSVGa11yTitleDescription"); +var L1, K8 = (L1 = class { constructor(e, r, n, i, s) { this.type = e, this.text = r, this.db = n, this.parser = i, this.renderer = s; } static async fromText(e, r = {}) { var u, h; - const n = pi(), i = pD(e, n); - e = H3t(e) + ` + const n = pi(), i = gD(e, n); + e = X3t(e) + ` `; try { - y8(i); + b8(i); } catch { - const f = qmt(i); + const f = Qmt(i); if (!f) - throw new vie(`Diagram ${i} not found.`); + throw new yie(`Diagram ${i} not found.`); const { id: d, diagram: p } = await f(); g3(d, p); } - const { db: s, parser: a, renderer: o, init: l } = y8(i); + const { db: s, parser: a, renderer: o, init: l } = b8(i); return a.parser && (a.parser.yy = s), (u = s.clear) == null || u.call(s), l == null || l(n), r.title && ((h = s.setDiagramTitle) == null || h.call(s, r.title)), await a.parse(e), new L1(i, e, s, a, o); } async render(e, r) { @@ -46150,65 +46150,65 @@ var L1, j8 = (L1 = class { } }, (() => { x(L1, "Diagram"); -})(), L1), jq = [], AEt = /* @__PURE__ */ x(() => { +})(), L1), jq = [], LEt = /* @__PURE__ */ x(() => { jq.forEach((t) => { t(); }), jq = []; -}, "attachFunctions"), LEt = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); -function sN(t) { +}, "attachFunctions"), REt = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); +function aN(t) { return typeof t > "u" || t === null; } -x(sN, "isNothing"); -function ele(t) { +x(aN, "isNothing"); +function tle(t) { return typeof t == "object" && t !== null; } -x(ele, "isObject"); -function tle(t) { - return Array.isArray(t) ? t : sN(t) ? [] : [t]; +x(tle, "isObject"); +function rle(t) { + return Array.isArray(t) ? t : aN(t) ? [] : [t]; } -x(tle, "toArray"); -function rle(t, e) { +x(rle, "toArray"); +function nle(t, e) { var r, n, i, s; if (e) for (s = Object.keys(e), r = 0, n = s.length; r < n; r += 1) i = s[r], t[i] = e[i]; return t; } -x(rle, "extend"); -function nle(t, e) { +x(nle, "extend"); +function ile(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -x(nle, "repeat"); -function ile(t) { +x(ile, "repeat"); +function sle(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -x(ile, "isNegativeZero"); -var REt = sN, MEt = ele, DEt = tle, NEt = nle, IEt = ile, PEt = rle, Ei = { - isNothing: REt, - isObject: MEt, - toArray: DEt, - repeat: NEt, - isNegativeZero: IEt, - extend: PEt +x(sle, "isNegativeZero"); +var MEt = aN, DEt = tle, NEt = rle, IEt = ile, PEt = sle, $Et = nle, Ei = { + isNothing: MEt, + isObject: DEt, + toArray: NEt, + repeat: IEt, + isNegativeZero: PEt, + extend: $Et }; -function aN(t, e) { +function oN(t, e) { var r = "", n = t.reason || "(unknown reason)"; return t.mark ? (t.mark.name && (r += 'in "' + t.mark.name + '" '), r += "(" + (t.mark.line + 1) + ":" + (t.mark.column + 1) + ")", !e && t.mark.snippet && (r += ` ` + t.mark.snippet), n + " " + r) : n; } -x(aN, "formatError"); +x(oN, "formatError"); function i1(t, e) { - Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = aN(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; + Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = oN(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } x(i1, "YAMLException$1"); i1.prototype = Object.create(Error.prototype); i1.prototype.constructor = i1; i1.prototype.toString = /* @__PURE__ */ x(function(e) { - return this.name + ": " + aN(this, e); + return this.name + ": " + oN(this, e); }, "toString"); var Ea = i1; function F4(t, e, r, n, i) { @@ -46223,7 +46223,7 @@ function z4(t, e) { return Ei.repeat(" ", e - t.length) + t; } x(z4, "padStart"); -function sle(t, e) { +function ale(t, e) { if (e = Object.create(e || null), !t.buffer) return null; e.maxLength || (e.maxLength = 79), typeof e.indent != "number" && (e.indent = 1), typeof e.linesBefore != "number" && (e.linesBefore = 3), typeof e.linesAfter != "number" && (e.linesAfter = 2); @@ -46253,8 +46253,8 @@ function sle(t, e) { `; return o.replace(/\n$/, ""); } -x(sle, "makeSnippet"); -var $Et = sle, BEt = [ +x(ale, "makeSnippet"); +var BEt = ale, FEt = [ "kind", "multi", "resolve", @@ -46265,12 +46265,12 @@ var $Et = sle, BEt = [ "representName", "defaultStyle", "styleAliases" -], FEt = [ +], zEt = [ "scalar", "sequence", "mapping" ]; -function ale(t) { +function ole(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -46278,21 +46278,21 @@ function ale(t) { }); }), e; } -x(ale, "compileStyleAliases"); -function ole(t, e) { +x(ole, "compileStyleAliases"); +function lle(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (BEt.indexOf(r) === -1) + if (FEt.indexOf(r) === -1) throw new Ea('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = ale(e.styleAliases || null), FEt.indexOf(this.kind) === -1) + }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = ole(e.styleAliases || null), zEt.indexOf(this.kind) === -1) throw new Ea('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -x(ole, "Type$1"); -var Bs = ole; -function K8(t, e) { +x(lle, "Type$1"); +var Bs = lle; +function J8(t, e) { var r = []; return t[e].forEach(function(n) { var i = r.length; @@ -46301,8 +46301,8 @@ function K8(t, e) { }), r[i] = n; }), r; } -x(K8, "compileList"); -function lle() { +x(J8, "compileList"); +function cle() { var t = { scalar: {}, sequence: {}, @@ -46322,7 +46322,7 @@ function lle() { arguments[e].forEach(n); return t; } -x(lle, "compileMap"); +x(cle, "compileMap"); function X3(t) { return this.extend(t); } @@ -46349,50 +46349,50 @@ X3.prototype.extend = /* @__PURE__ */ x(function(e) { throw new Ea("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); var i = Object.create(X3.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = K8(i, "implicit"), i.compiledExplicit = K8(i, "explicit"), i.compiledTypeMap = lle(i.compiledImplicit, i.compiledExplicit), i; + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = J8(i, "implicit"), i.compiledExplicit = J8(i, "explicit"), i.compiledTypeMap = cle(i.compiledImplicit, i.compiledExplicit), i; }, "extend"); -var zEt = X3, VEt = new Bs("tag:yaml.org,2002:str", { +var VEt = X3, UEt = new Bs("tag:yaml.org,2002:str", { kind: "scalar", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : ""; }, "construct") -}), UEt = new Bs("tag:yaml.org,2002:seq", { +}), qEt = new Bs("tag:yaml.org,2002:seq", { kind: "sequence", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : []; }, "construct") -}), qEt = new Bs("tag:yaml.org,2002:map", { +}), QEt = new Bs("tag:yaml.org,2002:map", { kind: "mapping", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : {}; }, "construct") -}), QEt = new zEt({ +}), YEt = new VEt({ explicit: [ - VEt, UEt, - qEt + qEt, + QEt ] }); -function cle(t) { +function ule(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -x(cle, "resolveYamlNull"); -function ule() { +x(ule, "resolveYamlNull"); +function hle() { return null; } -x(ule, "constructYamlNull"); -function hle(t) { +x(hle, "constructYamlNull"); +function fle(t) { return t === null; } -x(hle, "isNull"); -var YEt = new Bs("tag:yaml.org,2002:null", { +x(fle, "isNull"); +var WEt = new Bs("tag:yaml.org,2002:null", { kind: "scalar", - resolve: cle, - construct: ule, - predicate: hle, + resolve: ule, + construct: hle, + predicate: fle, represent: { canonical: /* @__PURE__ */ x(function() { return "~"; @@ -46412,26 +46412,26 @@ var YEt = new Bs("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function fle(t) { +function dle(t) { if (t === null) return !1; var e = t.length; return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE"); } -x(fle, "resolveYamlBoolean"); -function dle(t) { +x(dle, "resolveYamlBoolean"); +function ple(t) { return t === "true" || t === "True" || t === "TRUE"; } -x(dle, "constructYamlBoolean"); -function ple(t) { +x(ple, "constructYamlBoolean"); +function gle(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -x(ple, "isBoolean"); -var WEt = new Bs("tag:yaml.org,2002:bool", { +x(gle, "isBoolean"); +var GEt = new Bs("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: fle, - construct: dle, - predicate: ple, + resolve: dle, + construct: ple, + predicate: gle, represent: { lowercase: /* @__PURE__ */ x(function(t) { return t ? "true" : "false"; @@ -46445,19 +46445,19 @@ var WEt = new Bs("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function gle(t) { +function mle(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -x(gle, "isHexCode"); -function mle(t) { +x(mle, "isHexCode"); +function vle(t) { return 48 <= t && t <= 55; } -x(mle, "isOctCode"); -function vle(t) { +x(vle, "isOctCode"); +function yle(t) { return 48 <= t && t <= 57; } -x(vle, "isDecCode"); -function yle(t) { +x(yle, "isDecCode"); +function ble(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -46478,7 +46478,7 @@ function yle(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!gle(t.charCodeAt(r))) + if (!mle(t.charCodeAt(r))) return !1; n = !0; } @@ -46487,7 +46487,7 @@ function yle(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!mle(t.charCodeAt(r))) + if (!vle(t.charCodeAt(r))) return !1; n = !0; } @@ -46498,14 +46498,14 @@ function yle(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!vle(t.charCodeAt(r))) + if (!yle(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -x(yle, "resolveYamlInteger"); -function ble(t) { +x(ble, "resolveYamlInteger"); +function xle(t) { var e = t, r = 1, n; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), n = e[0], (n === "-" || n === "+") && (n === "-" && (r = -1), e = e.slice(1), n = e[0]), e === "0") return 0; @@ -46519,16 +46519,16 @@ function ble(t) { } return r * parseInt(e, 10); } -x(ble, "constructYamlInteger"); -function xle(t) { +x(xle, "constructYamlInteger"); +function wle(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Ei.isNegativeZero(t); } -x(xle, "isInteger"); -var GEt = new Bs("tag:yaml.org,2002:int", { +x(wle, "isInteger"); +var HEt = new Bs("tag:yaml.org,2002:int", { kind: "scalar", - resolve: yle, - construct: ble, - predicate: xle, + resolve: ble, + construct: xle, + predicate: wle, represent: { binary: /* @__PURE__ */ x(function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -46550,20 +46550,20 @@ var GEt = new Bs("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), HEt = new RegExp( +}), XEt = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function wle(t) { - return !(t === null || !HEt.test(t) || t[t.length - 1] === "_"); -} -x(wle, "resolveYamlFloat"); function Ole(t) { + return !(t === null || !XEt.test(t) || t[t.length - 1] === "_"); +} +x(Ole, "resolveYamlFloat"); +function kle(t) { var e, r; return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } -x(Ole, "constructYamlFloat"); -var XEt = /^[-+]?[0-9]+e/; -function kle(t, e) { +x(kle, "constructYamlFloat"); +var ZEt = /^[-+]?[0-9]+e/; +function Sle(t, e) { var r; if (isNaN(t)) switch (e) { @@ -46594,39 +46594,39 @@ function kle(t, e) { } else if (Ei.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), XEt.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), ZEt.test(r) ? r.replace("e", ".e") : r; } -x(kle, "representYamlFloat"); -function Sle(t) { +x(Sle, "representYamlFloat"); +function Tle(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Ei.isNegativeZero(t)); } -x(Sle, "isFloat"); -var ZEt = new Bs("tag:yaml.org,2002:float", { +x(Tle, "isFloat"); +var jEt = new Bs("tag:yaml.org,2002:float", { kind: "scalar", - resolve: wle, - construct: Ole, - predicate: Sle, - represent: kle, + resolve: Ole, + construct: kle, + predicate: Tle, + represent: Sle, defaultStyle: "lowercase" -}), Tle = QEt.extend({ +}), Cle = YEt.extend({ implicit: [ - YEt, WEt, GEt, - ZEt + HEt, + jEt ] -}), jEt = Tle, Cle = new RegExp( +}), KEt = Cle, Ele = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), Ele = new RegExp( +), _le = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" ); -function _le(t) { - return t === null ? !1 : Cle.exec(t) !== null || Ele.exec(t) !== null; -} -x(_le, "resolveYamlTimestamp"); function Ale(t) { + return t === null ? !1 : Ele.exec(t) !== null || _le.exec(t) !== null; +} +x(Ale, "resolveYamlTimestamp"); +function Lle(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; - if (e = Cle.exec(t), e === null && (e = Ele.exec(t)), e === null) + if (e = Ele.exec(t), e === null && (e = _le.exec(t)), e === null) throw new Error("Date resolve error"); if (r = +e[1], n = +e[2] - 1, i = +e[3], !e[4]) return new Date(Date.UTC(r, n, i)); @@ -46637,31 +46637,31 @@ function Ale(t) { } return e[9] && (h = +e[10], f = +(e[11] || 0), u = (h * 60 + f) * 6e4, e[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, n, i, s, a, o, l)), u && d.setTime(d.getTime() - u), d; } -x(Ale, "constructYamlTimestamp"); -function Lle(t) { +x(Lle, "constructYamlTimestamp"); +function Rle(t) { return t.toISOString(); } -x(Lle, "representYamlTimestamp"); -var KEt = new Bs("tag:yaml.org,2002:timestamp", { +x(Rle, "representYamlTimestamp"); +var JEt = new Bs("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: _le, - construct: Ale, + resolve: Ale, + construct: Lle, instanceOf: Date, - represent: Lle + represent: Rle }); -function Rle(t) { +function Mle(t) { return t === "<<" || t === null; } -x(Rle, "resolveYamlMerge"); -var JEt = new Bs("tag:yaml.org,2002:merge", { +x(Mle, "resolveYamlMerge"); +var e6t = new Bs("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: Rle -}), oN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= + resolve: Mle +}), lN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function Mle(t) { +function Dle(t) { if (t === null) return !1; - var e, r, n = 0, i = t.length, s = oN; + var e, r, n = 0, i = t.length, s = lN; for (r = 0; r < i; r++) if (e = s.indexOf(t.charAt(r)), !(e > 64)) { if (e < 0) @@ -46670,41 +46670,41 @@ function Mle(t) { } return n % 8 === 0; } -x(Mle, "resolveYamlBinary"); -function Dle(t) { - var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = oN, a = 0, o = []; +x(Dle, "resolveYamlBinary"); +function Nle(t) { + var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = lN, a = 0, o = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)), a = a << 6 | s.indexOf(n.charAt(e)); return r = i % 4 * 6, r === 0 ? (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)) : r === 18 ? (o.push(a >> 10 & 255), o.push(a >> 2 & 255)) : r === 12 && o.push(a >> 4 & 255), new Uint8Array(o); } -x(Dle, "constructYamlBinary"); -function Nle(t) { - var e = "", r = 0, n, i, s = t.length, a = oN; +x(Nle, "constructYamlBinary"); +function Ile(t) { + var e = "", r = 0, n, i, s = t.length, a = lN; for (n = 0; n < s; n++) n % 3 === 0 && n && (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]), r = (r << 8) + t[n]; return i = s % 3, i === 0 ? (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]) : i === 2 ? (e += a[r >> 10 & 63], e += a[r >> 4 & 63], e += a[r << 2 & 63], e += a[64]) : i === 1 && (e += a[r >> 2 & 63], e += a[r << 4 & 63], e += a[64], e += a[64]), e; } -x(Nle, "representYamlBinary"); -function Ile(t) { +x(Ile, "representYamlBinary"); +function Ple(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -x(Ile, "isBinary"); -var e6t = new Bs("tag:yaml.org,2002:binary", { +x(Ple, "isBinary"); +var t6t = new Bs("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: Mle, - construct: Dle, - predicate: Ile, - represent: Nle -}), t6t = Object.prototype.hasOwnProperty, r6t = Object.prototype.toString; -function Ple(t) { + resolve: Dle, + construct: Nle, + predicate: Ple, + represent: Ile +}), r6t = Object.prototype.hasOwnProperty, n6t = Object.prototype.toString; +function $le(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, r6t.call(i) !== "[object Object]") + if (i = o[r], a = !1, n6t.call(i) !== "[object Object]") return !1; for (s in i) - if (t6t.call(i, s)) + if (r6t.call(i, s)) if (!a) a = !0; else @@ -46718,29 +46718,29 @@ function Ple(t) { } return !0; } -x(Ple, "resolveYamlOmap"); -function $le(t) { +x($le, "resolveYamlOmap"); +function Ble(t) { return t !== null ? t : []; } -x($le, "constructYamlOmap"); -var n6t = new Bs("tag:yaml.org,2002:omap", { +x(Ble, "constructYamlOmap"); +var i6t = new Bs("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: Ple, - construct: $le -}), i6t = Object.prototype.toString; -function Ble(t) { + resolve: $le, + construct: Ble +}), s6t = Object.prototype.toString; +function Fle(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], i6t.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], s6t.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } return !0; } -x(Ble, "resolveYamlPairs"); -function Fle(t) { +x(Fle, "resolveYamlPairs"); +function zle(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -46748,46 +46748,46 @@ function Fle(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -x(Fle, "constructYamlPairs"); -var s6t = new Bs("tag:yaml.org,2002:pairs", { +x(zle, "constructYamlPairs"); +var a6t = new Bs("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: Ble, - construct: Fle -}), a6t = Object.prototype.hasOwnProperty; -function zle(t) { + resolve: Fle, + construct: zle +}), o6t = Object.prototype.hasOwnProperty; +function Vle(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (a6t.call(r, e) && r[e] !== null) + if (o6t.call(r, e) && r[e] !== null) return !1; return !0; } -x(zle, "resolveYamlSet"); -function Vle(t) { +x(Vle, "resolveYamlSet"); +function Ule(t) { return t !== null ? t : {}; } -x(Vle, "constructYamlSet"); -var o6t = new Bs("tag:yaml.org,2002:set", { +x(Ule, "constructYamlSet"); +var l6t = new Bs("tag:yaml.org,2002:set", { kind: "mapping", - resolve: zle, - construct: Vle -}), Ule = jEt.extend({ + resolve: Vle, + construct: Ule +}), qle = KEt.extend({ implicit: [ - KEt, - JEt + JEt, + e6t ], explicit: [ - e6t, - n6t, - s6t, - o6t + t6t, + i6t, + a6t, + l6t ] -}), wf = Object.prototype.hasOwnProperty, Z3 = 1, qle = 2, Qle = 3, j3 = 4, r_ = 1, l6t = 2, Kq = 3, c6t = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, u6t = /[\x85\u2028\u2029]/, h6t = /[,\[\]\{\}]/, Yle = /^(?:!|!!|![a-z\-]+!)$/i, Wle = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; -function J8(t) { +}), wf = Object.prototype.hasOwnProperty, Z3 = 1, Qle = 2, Yle = 3, j3 = 4, n_ = 1, c6t = 2, Kq = 3, u6t = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, h6t = /[\x85\u2028\u2029]/, f6t = /[,\[\]\{\}]/, Wle = /^(?:!|!!|![a-z\-]+!)$/i, Gle = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +function eL(t) { return Object.prototype.toString.call(t); } -x(J8, "_class"); +x(eL, "_class"); function Sl(t) { return t === 10 || t === 13; } @@ -46804,40 +46804,40 @@ function Dd(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } x(Dd, "is_FLOW_INDICATOR"); -function Gle(t) { +function Hle(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -x(Gle, "fromHexCode"); -function Hle(t) { +x(Hle, "fromHexCode"); +function Xle(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -x(Hle, "escapedHexLen"); -function Xle(t) { +x(Xle, "escapedHexLen"); +function Zle(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } -x(Xle, "fromDecimalCode"); -function eL(t) { +x(Zle, "fromDecimalCode"); +function tL(t) { return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? ` ` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "\x85" : t === 95 ? "\xA0" : t === 76 ? "\u2028" : t === 80 ? "\u2029" : ""; } -x(eL, "simpleEscapeSequence"); -function Zle(t) { +x(tL, "simpleEscapeSequence"); +function jle(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } -x(Zle, "charFromCodepoint"); -var jle = new Array(256), Kle = new Array(256); +x(jle, "charFromCodepoint"); +var Kle = new Array(256), Jle = new Array(256); for (ed = 0; ed < 256; ed++) - jle[ed] = eL(ed) ? 1 : 0, Kle[ed] = eL(ed); + Kle[ed] = tL(ed) ? 1 : 0, Jle[ed] = tL(ed); var ed; -function Jle(t, e) { - this.input = t, this.filename = e.filename || null, this.schema = e.schema || Ule, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; +function ece(t, e) { + this.input = t, this.filename = e.filename || null, this.schema = e.schema || qle, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; } -x(Jle, "State$1"); -function lN(t, e) { +x(ece, "State$1"); +function cN(t, e) { var r = { name: t.filename, buffer: t.input.slice(0, -1), @@ -46845,15 +46845,15 @@ function lN(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = $Et(r), new Ea(e, r); + return r.snippet = BEt(r), new Ea(e, r); } -x(lN, "generateError"); +x(cN, "generateError"); function Vt(t, e) { - throw lN(t, e); + throw cN(t, e); } x(Vt, "throwError"); function b2(t, e) { - t.onWarning && t.onWarning.call(null, lN(t, e)); + t.onWarning && t.onWarning.call(null, cN(t, e)); } x(b2, "throwWarning"); var Jq = { @@ -46863,7 +46863,7 @@ var Jq = { }, "handleYamlDirective"), TAG: /* @__PURE__ */ x(function(e, r, n) { var i, s; - n.length !== 2 && Vt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Yle.test(i) || Vt(e, "ill-formed tag handle (first argument) of the TAG directive"), wf.call(e.tagMap, i) && Vt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Wle.test(s) || Vt(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && Vt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Wle.test(i) || Vt(e, "ill-formed tag handle (first argument) of the TAG directive"), wf.call(e.tagMap, i) && Vt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Gle.test(s) || Vt(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -46879,28 +46879,28 @@ function Lu(t, e, r, n) { for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || Vt(t, "expected valid JSON character"); else - c6t.test(o) && Vt(t, "the stream contains non-printable characters"); + u6t.test(o) && Vt(t, "the stream contains non-printable characters"); t.result += o; } } x(Lu, "captureSegment"); -function tL(t, e, r, n) { +function rL(t, e, r, n) { var i, s, a, o; for (Ei.isObject(r) || Vt(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) s = i[a], wf.call(e, s) || (e[s] = r[s], n[s] = !0); } -x(tL, "mergeMappings"); +x(rL, "mergeMappings"); function Nd(t, e, r, n, i, s, a, o, l) { var u, h; if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), u = 0, h = i.length; u < h; u += 1) - Array.isArray(i[u]) && Vt(t, "nested arrays are not supported inside keys"), typeof i == "object" && J8(i[u]) === "[object Object]" && (i[u] = "[object Object]"); - if (typeof i == "object" && J8(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") + Array.isArray(i[u]) && Vt(t, "nested arrays are not supported inside keys"), typeof i == "object" && eL(i[u]) === "[object Object]" && (i[u] = "[object Object]"); + if (typeof i == "object" && eL(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") if (Array.isArray(s)) for (u = 0, h = s.length; u < h; u += 1) - tL(t, e, s[u], r); + rL(t, e, s[u], r); else - tL(t, e, s, r); + rL(t, e, s, r); else !t.json && !wf.call(r, i) && wf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, Vt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, @@ -46911,11 +46911,11 @@ function Nd(t, e, r, n, i, s, a, o, l) { return e; } x(Nd, "storeMappingPair"); -function VT(t) { +function UT(t) { var e; e = t.input.charCodeAt(t.position), e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : Vt(t, "a line break is expected"), t.line += 1, t.lineStart = t.position, t.firstTabInLine = -1; } -x(VT, "readLineBreak"); +x(UT, "readLineBreak"); function ei(t, e, r) { for (var n = 0, i = t.input.charCodeAt(t.position); i !== 0; ) { for (; jh(i); ) @@ -46925,7 +46925,7 @@ function ei(t, e, r) { i = t.input.charCodeAt(++t.position); while (i !== 10 && i !== 13 && i !== 0); if (Sl(i)) - for (VT(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) + for (UT(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) t.lineIndent++, i = t.input.charCodeAt(++t.position); else break; @@ -46938,12 +46938,12 @@ function Ox(t) { return r = t.input.charCodeAt(e), !!((r === 45 || r === 46) && r === t.input.charCodeAt(e + 1) && r === t.input.charCodeAt(e + 2) && (e += 3, r = t.input.charCodeAt(e), r === 0 || ra(r))); } x(Ox, "testDocumentSeparator"); -function UT(t, e) { +function qT(t, e) { e === 1 ? t.result += " " : e > 1 && (t.result += Ei.repeat(` `, e - 1)); } -x(UT, "writeFoldedLines"); -function ece(t, e, r) { +x(qT, "writeFoldedLines"); +function tce(t, e, r) { var n, i, s, a, o, l, u, h, f = t.kind, d = t.result, p; if (p = t.input.charCodeAt(t.position), ra(p) || Dd(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = t.input.charCodeAt(t.position + 1), ra(i) || r && Dd(i))) return !1; @@ -46966,12 +46966,12 @@ function ece(t, e, r) { break; } } - o && (Lu(t, s, a, !1), UT(t, t.line - l), s = a = t.position, o = !1), jh(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (Lu(t, s, a, !1), qT(t, t.line - l), s = a = t.position, o = !1), jh(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } return Lu(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -x(ece, "readPlainScalar"); -function tce(t, e) { +x(tce, "readPlainScalar"); +function rce(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; @@ -46982,11 +46982,11 @@ function tce(t, e) { else return !0; else - Sl(r) ? (Lu(t, n, i, !0), UT(t, ei(t, !1, e)), n = i = t.position) : t.position === t.lineStart && Ox(t) ? Vt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); + Sl(r) ? (Lu(t, n, i, !0), qT(t, ei(t, !1, e)), n = i = t.position) : t.position === t.lineStart && Ox(t) ? Vt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); Vt(t, "unexpected end of the stream within a single quoted scalar"); } -x(tce, "readSingleQuotedScalar"); -function rce(t, e) { +x(rce, "readSingleQuotedScalar"); +function nce(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; @@ -46996,22 +46996,22 @@ function rce(t, e) { if (o === 92) { if (Lu(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), Sl(o)) ei(t, !1, e); - else if (o < 256 && jle[o]) - t.result += Kle[o], t.position++; - else if ((a = Hle(o)) > 0) { + else if (o < 256 && Kle[o]) + t.result += Jle[o], t.position++; + else if ((a = Xle(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = Gle(o)) >= 0 ? s = (s << 4) + a : Vt(t, "expected hexadecimal character"); - t.result += Zle(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = Hle(o)) >= 0 ? s = (s << 4) + a : Vt(t, "expected hexadecimal character"); + t.result += jle(s), t.position++; } else Vt(t, "unknown escape sequence"); r = n = t.position; } else - Sl(o) ? (Lu(t, r, n, !0), UT(t, ei(t, !1, e)), r = n = t.position) : t.position === t.lineStart && Ox(t) ? Vt(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); + Sl(o) ? (Lu(t, r, n, !0), qT(t, ei(t, !1, e)), r = n = t.position) : t.position === t.lineStart && Ox(t) ? Vt(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); } Vt(t, "unexpected end of the stream within a double quoted scalar"); } -x(rce, "readDoubleQuotedScalar"); -function nce(t, e) { +x(nce, "readDoubleQuotedScalar"); +function ice(t, e) { var r = !0, n, i, s, a = t.tag, o, l = t.anchor, u, h, f, d, p, g = /* @__PURE__ */ Object.create(null), m, v, y, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, p = !1, o = []; @@ -47026,9 +47026,9 @@ function nce(t, e) { } Vt(t, "unexpected end of the stream within a flow collection"); } -x(nce, "readFlowCollection"); -function ice(t, e) { - var r, n, i = r_, s = !1, a = !1, o = e, l = 0, u = !1, h, f; +x(ice, "readFlowCollection"); +function sce(t, e) { + var r, n, i = n_, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; else if (f === 62) @@ -47037,8 +47037,8 @@ function ice(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - r_ === i ? i = f === 43 ? Kq : l6t : Vt(t, "repeat of a chomping mode identifier"); - else if ((h = Xle(f)) >= 0) + n_ === i ? i = f === 43 ? Kq : c6t : Vt(t, "repeat of a chomping mode identifier"); + else if ((h = Zle(f)) >= 0) h === 0 ? Vt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Vt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; @@ -47052,7 +47052,7 @@ function ice(t, e) { while (!Sl(f) && f !== 0); } for (; f !== 0; ) { - for (VT(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) + for (UT(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) t.lineIndent++, f = t.input.charCodeAt(++t.position); if (!a && t.lineIndent > o && (o = t.lineIndent), Sl(f)) { l++; @@ -47060,7 +47060,7 @@ function ice(t, e) { } if (t.lineIndent < o) { i === Kq ? t.result += Ei.repeat(` -`, s ? 1 + l : l) : i === r_ && s && (t.result += ` +`, s ? 1 + l : l) : i === n_ && s && (t.result += ` `); break; } @@ -47074,8 +47074,8 @@ function ice(t, e) { } return !0; } -x(ice, "readBlockScalar"); -function rL(t, e) { +x(sce, "readBlockScalar"); +function nL(t, e) { var r, n = t.tag, i = t.anchor, s = [], a, o = !1, l; if (t.firstTabInLine !== -1) return !1; @@ -47084,15 +47084,15 @@ function rL(t, e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, h0(t, e, Qle, !1, !0), s.push(t.result), ei(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) + if (r = t.line, h0(t, e, Yle, !1, !0), s.push(t.result), ei(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) Vt(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; } return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -x(rL, "readBlockSequence"); -function sce(t, e, r) { +x(nL, "readBlockSequence"); +function ace(t, e, r) { var n, i, s, a, o, l, u = t.tag, h = t.anchor, f = {}, d = /* @__PURE__ */ Object.create(null), p = null, g = null, m = null, v = !1, y = !1, b; if (t.firstTabInLine !== -1) return !1; @@ -47100,7 +47100,7 @@ function sce(t, e, r) { if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Vt(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && ra(n)) b === 63 ? (v && (Nd(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Vt(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = n; else { - if (a = t.line, o = t.lineStart, l = t.position, !h0(t, r, qle, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !h0(t, r, Qle, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); jh(b); ) @@ -47123,8 +47123,8 @@ function sce(t, e, r) { } return v && Nd(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -x(sce, "readBlockMapping"); -function ace(t) { +x(ace, "readBlockMapping"); +function oce(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -47135,10 +47135,10 @@ function ace(t) { t.position < t.length ? (s = t.input.slice(e, t.position), a = t.input.charCodeAt(++t.position)) : Vt(t, "unexpected end of the stream within a verbatim tag"); } else { for (; a !== 0 && !ra(a); ) - a === 33 && (n ? Vt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Yle.test(i) || Vt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), h6t.test(s) && Vt(t, "tag suffix cannot contain flow indicator characters"); + a === 33 && (n ? Vt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Wle.test(i) || Vt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); + s = t.input.slice(e, t.position), f6t.test(s) && Vt(t, "tag suffix cannot contain flow indicator characters"); } - s && !Wle.test(s) && Vt(t, "tag name cannot contain such characters: " + s); + s && !Gle.test(s) && Vt(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -47146,8 +47146,8 @@ function ace(t) { } return r ? t.tag = s : wf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Vt(t, 'undeclared tag handle "' + i + '"'), !0; } -x(ace, "readTagProperty"); -function oce(t) { +x(oce, "readTagProperty"); +function lce(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; @@ -47155,8 +47155,8 @@ function oce(t) { r = t.input.charCodeAt(++t.position); return t.position === e && Vt(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -x(oce, "readAnchorProperty"); -function lce(t) { +x(lce, "readAnchorProperty"); +function cce(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; @@ -47164,13 +47164,13 @@ function lce(t) { n = t.input.charCodeAt(++t.position); return t.position === e && Vt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), wf.call(t.anchorMap, r) || Vt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], ei(t, !0, -1), !0; } -x(lce, "readAlias"); +x(cce, "readAlias"); function h0(t, e, r, n, i) { var s, a, o, l = 1, u = !1, h = !1, f, d, p, g, m, v; - if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = j3 === r || Qle === r, n && ei(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; ace(t) || oce(t); ) + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = j3 === r || Yle === r, n && ei(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) + for (; oce(t) || lce(t); ) ei(t, !0, -1) ? (u = !0, o = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : o = !1; - if (o && (o = u || i), (l === 1 || j3 === r) && (Z3 === r || qle === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (rL(t, v) || sce(t, v, m)) || nce(t, m) ? h = !0 : (a && ice(t, m) || tce(t, m) || rce(t, m) ? h = !0 : lce(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Vt(t, "alias node should not have any properties")) : ece(t, m, Z3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && rL(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || j3 === r) && (Z3 === r || Qle === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (nL(t, v) || ace(t, v, m)) || ice(t, m) ? h = !0 : (a && sce(t, m) || rce(t, m) || nce(t, m) ? h = !0 : cce(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Vt(t, "alias node should not have any properties")) : tce(t, m, Z3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && nL(t, v))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && Vt(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -47192,7 +47192,7 @@ function h0(t, e, r, n, i) { return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } x(h0, "composeNode"); -function cce(t) { +function uce(t) { var e = t.position, r, n, i, s = !1, a; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (a = t.input.charCodeAt(t.position)) !== 0 && (ei(t, !0, -1), a = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || a !== 37)); ) { for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !ra(a); ) @@ -47212,9 +47212,9 @@ function cce(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && VT(t), wf.call(Jq, n) ? Jq[n](t, n, i) : b2(t, 'unknown document directive "' + n + '"'); + a !== 0 && UT(t), wf.call(Jq, n) ? Jq[n](t, n, i) : b2(t, 'unknown document directive "' + n + '"'); } - if (ei(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, ei(t, !0, -1)) : s && Vt(t, "directives end mark is expected"), h0(t, t.lineIndent - 1, j3, !1, !0), ei(t, !0, -1), t.checkLineBreaks && u6t.test(t.input.slice(e, t.position)) && b2(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && Ox(t)) { + if (ei(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, ei(t, !0, -1)) : s && Vt(t, "directives end mark is expected"), h0(t, t.lineIndent - 1, j3, !1, !0), ei(t, !0, -1), t.checkLineBreaks && h6t.test(t.input.slice(e, t.position)) && b2(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && Ox(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, ei(t, !0, -1)); return; } @@ -47223,40 +47223,40 @@ function cce(t) { else return; } -x(cce, "readDocument"); -function cN(t, e) { +x(uce, "readDocument"); +function uN(t, e) { t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += ` `), t.charCodeAt(0) === 65279 && (t = t.slice(1))); - var r = new Jle(t, e), n = t.indexOf("\0"); + var r = new ece(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, Vt(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - cce(r); + uce(r); return r.documents; } -x(cN, "loadDocuments"); -function uce(t, e, r) { +x(uN, "loadDocuments"); +function hce(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); - var n = cN(t, r); + var n = uN(t, r); if (typeof e != "function") return n; for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -x(uce, "loadAll$1"); -function hce(t, e) { - var r = cN(t, e); +x(hce, "loadAll$1"); +function fce(t, e) { + var r = uN(t, e); if (r.length !== 0) { if (r.length === 1) return r[0]; throw new Ea("expected a single document in the stream, but found more"); } } -x(hce, "load$1"); -var f6t = uce, d6t = hce, p6t = { - loadAll: f6t, - load: d6t -}, fce = Object.prototype.toString, dce = Object.prototype.hasOwnProperty, uN = 65279, g6t = 9, x2 = 10, m6t = 13, v6t = 32, y6t = 33, b6t = 34, nL = 35, x6t = 37, w6t = 38, O6t = 39, k6t = 42, pce = 44, S6t = 45, K3 = 58, T6t = 61, C6t = 62, E6t = 63, _6t = 64, gce = 91, mce = 93, A6t = 96, vce = 123, L6t = 124, yce = 125, Ws = {}; +x(fce, "load$1"); +var d6t = hce, p6t = fce, g6t = { + loadAll: d6t, + load: p6t +}, dce = Object.prototype.toString, pce = Object.prototype.hasOwnProperty, hN = 65279, m6t = 9, x2 = 10, v6t = 13, y6t = 32, b6t = 33, x6t = 34, iL = 35, w6t = 37, O6t = 38, k6t = 39, S6t = 42, gce = 44, T6t = 45, K3 = 58, C6t = 61, E6t = 62, _6t = 63, A6t = 64, mce = 91, vce = 93, L6t = 96, yce = 123, R6t = 124, bce = 125, Ws = {}; Ws[0] = "\\0"; Ws[7] = "\\a"; Ws[8] = "\\b"; @@ -47272,7 +47272,7 @@ Ws[133] = "\\N"; Ws[160] = "\\_"; Ws[8232] = "\\L"; Ws[8233] = "\\P"; -var R6t = [ +var M6t = [ "y", "Y", "yes", @@ -47289,17 +47289,17 @@ var R6t = [ "off", "Off", "OFF" -], M6t = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function bce(t, e) { +], D6t = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function xce(t, e) { var r, n, i, s, a, o, l; if (e === null) return {}; for (r = {}, n = Object.keys(e), i = 0, s = n.length; i < s; i += 1) - a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && dce.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; + a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && pce.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -x(bce, "compileStyleMap"); -function xce(t) { +x(xce, "compileStyleMap"); +function wce(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -47311,76 +47311,76 @@ function xce(t) { throw new Ea("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Ei.repeat("0", n - e.length) + e; } -x(xce, "encodeHex"); -var D6t = 1, w2 = 2; -function wce(t) { - this.schema = t.schema || Ule, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ei.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = bce(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? w2 : D6t, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +x(wce, "encodeHex"); +var N6t = 1, w2 = 2; +function Oce(t) { + this.schema = t.schema || qle, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ei.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = xce(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? w2 : N6t, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } -x(wce, "State"); -function iL(t, e) { +x(Oce, "State"); +function sL(t, e) { for (var r = Ei.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) i = t.indexOf(` `, n), i === -1 ? (a = t.slice(n), n = o) : (a = t.slice(n, i + 1), n = i + 1), a.length && a !== ` ` && (s += r), s += a; return s; } -x(iL, "indentString"); +x(sL, "indentString"); function J3(t, e) { return ` ` + Ei.repeat(" ", t.indent * e); } x(J3, "generateNextLine"); -function Oce(t, e) { +function kce(t, e) { var r, n, i; for (r = 0, n = t.implicitTypes.length; r < n; r += 1) if (i = t.implicitTypes[r], i.resolve(e)) return !0; return !1; } -x(Oce, "testImplicitResolving"); +x(kce, "testImplicitResolving"); function O2(t) { - return t === v6t || t === g6t; + return t === y6t || t === m6t; } x(O2, "isWhitespace"); function s1(t) { - return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== uN || 65536 <= t && t <= 1114111; + return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== hN || 65536 <= t && t <= 1114111; } x(s1, "isPrintable"); -function sL(t) { - return s1(t) && t !== uN && t !== m6t && t !== x2; +function aL(t) { + return s1(t) && t !== hN && t !== v6t && t !== x2; } -x(sL, "isNsCharOrWhitespace"); -function aL(t, e, r) { - var n = sL(t), i = n && !O2(t); - return (r ? n : n && t !== pce && t !== gce && t !== mce && t !== vce && t !== yce) && t !== nL && !(e === K3 && !i) || sL(e) && !O2(e) && t === nL || e === K3 && i; +x(aL, "isNsCharOrWhitespace"); +function oL(t, e, r) { + var n = aL(t), i = n && !O2(t); + return (r ? n : n && t !== gce && t !== mce && t !== vce && t !== yce && t !== bce) && t !== iL && !(e === K3 && !i) || aL(e) && !O2(e) && t === iL || e === K3 && i; } -x(aL, "isPlainSafe"); -function kce(t) { - return s1(t) && t !== uN && !O2(t) && t !== S6t && t !== E6t && t !== K3 && t !== pce && t !== gce && t !== mce && t !== vce && t !== yce && t !== nL && t !== w6t && t !== k6t && t !== y6t && t !== L6t && t !== T6t && t !== C6t && t !== O6t && t !== b6t && t !== x6t && t !== _6t && t !== A6t; -} -x(kce, "isPlainSafeFirst"); +x(oL, "isPlainSafe"); function Sce(t) { + return s1(t) && t !== hN && !O2(t) && t !== T6t && t !== _6t && t !== K3 && t !== gce && t !== mce && t !== vce && t !== yce && t !== bce && t !== iL && t !== O6t && t !== S6t && t !== b6t && t !== R6t && t !== C6t && t !== E6t && t !== k6t && t !== x6t && t !== w6t && t !== A6t && t !== L6t; +} +x(Sce, "isPlainSafeFirst"); +function Tce(t) { return !O2(t) && t !== K3; } -x(Sce, "isPlainSafeLast"); +x(Tce, "isPlainSafeLast"); function Bp(t, e) { var r = t.charCodeAt(e), n; return r >= 55296 && r <= 56319 && e + 1 < t.length && (n = t.charCodeAt(e + 1), n >= 56320 && n <= 57343) ? (r - 55296) * 1024 + n - 56320 + 65536 : r; } x(Bp, "codePointAt"); -function hN(t) { +function fN(t) { var e = /^\n* /; return e.test(t); } -x(hN, "needIndentIndicator"); -var Tce = 1, oL = 2, Cce = 3, Ece = 4, Cp = 5; -function _ce(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = kce(Bp(t, 0)) && Sce(Bp(t, t.length - 1)); +x(fN, "needIndentIndicator"); +var Cce = 1, lL = 2, Ece = 3, _ce = 4, Cp = 5; +function Ace(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = Sce(Bp(t, 0)) && Tce(Bp(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = Bp(t, l), !s1(u)) return Cp; - m = m && aL(u, h, o), h = u; + m = m && oL(u, h, o), h = u; } else { for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { @@ -47388,24 +47388,24 @@ function _ce(t, e, r, n, i, s, a, o) { f = !0, p && (d = d || l - g - 1 > n && t[g + 1] !== " ", g = l); else if (!s1(u)) return Cp; - m = m && aL(u, h, o), h = u; + m = m && oL(u, h, o), h = u; } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? Tce : s === w2 ? Cp : oL : r > 9 && hN(t) ? Cp : a ? s === w2 ? Cp : oL : d ? Ece : Cce; + return !f && !d ? m && !a && !i(t) ? Cce : s === w2 ? Cp : lL : r > 9 && fN(t) ? Cp : a ? s === w2 ? Cp : lL : d ? _ce : Ece; } -x(_ce, "chooseScalarStyle"); -function Ace(t, e, r, n, i) { +x(Ace, "chooseScalarStyle"); +function Lce(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === w2 ? '""' : "''"; - if (!t.noCompatMode && (R6t.indexOf(e) !== -1 || M6t.test(e))) + if (!t.noCompatMode && (M6t.indexOf(e) !== -1 || D6t.test(e))) return t.quotingType === w2 ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { - return Oce(t, u); + return kce(t, u); } - switch (x(l, "testAmbiguity"), _ce( + switch (x(l, "testAmbiguity"), Ace( e, o, t.indent, @@ -47415,51 +47415,51 @@ function Ace(t, e, r, n, i) { t.forceQuotes && !n, i )) { - case Tce: + case Cce: return e; - case oL: + case lL: return "'" + e.replace(/'/g, "''") + "'"; - case Cce: - return "|" + lL(e, t.indent) + cL(iL(e, s)); case Ece: - return ">" + lL(e, t.indent) + cL(iL(Lce(e, a), s)); + return "|" + cL(e, t.indent) + uL(sL(e, s)); + case _ce: + return ">" + cL(e, t.indent) + uL(sL(Rce(e, a), s)); case Cp: - return '"' + Rce(e) + '"'; + return '"' + Mce(e) + '"'; default: throw new Ea("impossible error: invalid scalar style"); } }(); } -x(Ace, "writeScalar"); -function lL(t, e) { - var r = hN(t) ? String(e) : "", n = t[t.length - 1] === ` +x(Lce, "writeScalar"); +function cL(t, e) { + var r = fN(t) ? String(e) : "", n = t[t.length - 1] === ` `, i = n && (t[t.length - 2] === ` ` || t === ` `), s = i ? "+" : n ? "" : "-"; return r + s + ` `; } -x(lL, "blockHeader"); -function cL(t) { +x(cL, "blockHeader"); +function uL(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -x(cL, "dropEndingNewline"); -function Lce(t, e) { +x(uL, "dropEndingNewline"); +function Rce(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); - return u = u !== -1 ? u : t.length, r.lastIndex = u, uL(t.slice(0, u), e); + return u = u !== -1 ? u : t.length, r.lastIndex = u, hL(t.slice(0, u), e); }(), i = t[0] === ` ` || t[0] === " ", s, a; a = r.exec(t); ) { var o = a[1], l = a[2]; s = l[0] === " ", n += o + (!i && !s && l !== "" ? ` -` : "") + uL(l, e), i = s; +` : "") + hL(l, e), i = s; } return n; } -x(Lce, "foldString"); -function uL(t, e) { +x(Rce, "foldString"); +function hL(t, e) { if (t === "" || t[0] === " ") return t; for (var r = / [^ ]/g, n, i = 0, s, a = 0, o = 0, l = ""; n = r.exec(t); ) @@ -47469,35 +47469,35 @@ function uL(t, e) { `, t.length - i > e && a > i ? l += t.slice(i, a) + ` ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } -x(uL, "foldLine"); -function Rce(t) { +x(hL, "foldLine"); +function Mce(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = Bp(t, i), n = Ws[r], !n && s1(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || xce(r); + r = Bp(t, i), n = Ws[r], !n && s1(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || wce(r); return e; } -x(Rce, "escapeString"); -function Mce(t, e, r) { +x(Mce, "escapeString"); +function Dce(t, e, r) { var n = "", i = t.tag, s, a, o; for (s = 0, a = r.length; s < a; s += 1) o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), (Pc(t, e, o, !1, !1) || typeof o > "u" && Pc(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); t.tag = i, t.dump = "[" + n + "]"; } -x(Mce, "writeFlowSequence"); -function hL(t, e, r, n) { +x(Dce, "writeFlowSequence"); +function fL(t, e, r, n) { var i = "", s = t.tag, a, o, l; for (a = 0, o = r.length; a < o; a += 1) l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (Pc(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && Pc(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += J3(t, e)), t.dump && x2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -x(hL, "writeBlockSequence"); -function Dce(t, e, r) { +x(fL, "writeBlockSequence"); +function Nce(t, e, r) { var n = "", i = t.tag, s = Object.keys(r), a, o, l, u, h; for (a = 0, o = s.length; a < o; a += 1) h = "", n !== "" && (h += ", "), t.condenseFlow && (h += '"'), l = s[a], u = r[l], t.replacer && (u = t.replacer.call(r, l, u)), Pc(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), Pc(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -x(Dce, "writeFlowMapping"); -function Nce(t, e, r, n) { +x(Nce, "writeFlowMapping"); +function Ice(t, e, r, n) { var i = "", s = t.tag, a = Object.keys(r), o, l, u, h, f, d; if (t.sortKeys === !0) a.sort(); @@ -47509,15 +47509,15 @@ function Nce(t, e, r, n) { d = "", (!n || i !== "") && (d += J3(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), Pc(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && x2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += J3(t, e)), Pc(t, e + 1, h, !0, f) && (t.dump && x2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); t.tag = s, t.dump = i || "{}"; } -x(Nce, "writeBlockMapping"); -function fL(t, e, r) { +x(Ice, "writeBlockMapping"); +function dL(t, e, r) { var n, i, s, a, o, l; for (i = r ? t.explicitTypes : t.implicitTypes, s = 0, a = i.length; s < a; s += 1) if (o = i[s], (o.instanceOf || o.predicate) && (!o.instanceOf || typeof e == "object" && e instanceof o.instanceOf) && (!o.predicate || o.predicate(e))) { if (r ? o.multi && o.representName ? t.tag = o.representName(e) : t.tag = o.tag : t.tag = "?", o.represent) { - if (l = t.styleMap[o.tag] || o.defaultStyle, fce.call(o.represent) === "[object Function]") + if (l = t.styleMap[o.tag] || o.defaultStyle, dce.call(o.represent) === "[object Function]") n = o.represent(e, l); - else if (dce.call(o.represent, l)) + else if (pce.call(o.represent, l)) n = o.represent[l](e, l); else throw new Ea("!<" + o.tag + '> tag resolver accepts not "' + l + '" style'); @@ -47527,21 +47527,21 @@ function fL(t, e, r) { } return !1; } -x(fL, "detectType"); +x(dL, "detectType"); function Pc(t, e, r, n, i, s, a) { - t.tag = null, t.dump = r, fL(t, r, !1) || fL(t, r, !0); - var o = fce.call(t.dump), l = n, u; + t.tag = null, t.dump = r, dL(t, r, !1) || dL(t, r, !0); + var o = dce.call(t.dump), l = n, u; n && (n = t.flowLevel < 0 || t.flowLevel > e); var h = o === "[object Object]" || o === "[object Array]", f, d; if (h && (f = t.duplicates.indexOf(r), d = f !== -1), (t.tag !== null && t.tag !== "?" || d || t.indent !== 2 && e > 0) && (i = !1), d && t.usedDuplicates[f]) t.dump = "*ref_" + f; else { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") - n && Object.keys(t.dump).length !== 0 ? (Nce(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Dce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (Ice(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Nce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object Array]") - n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? hL(t, e - 1, t.dump, i) : hL(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Mce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? fL(t, e - 1, t.dump, i) : fL(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Dce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && Ace(t, t.dump, e, s, l); + t.tag !== "?" && Lce(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -47556,13 +47556,13 @@ function Pc(t, e, r, n, i, s, a) { return !0; } x(Pc, "writeNode"); -function Ice(t, e) { +function Pce(t, e) { var r = [], n = [], i, s; for (ek(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); e.usedDuplicates = new Array(s); } -x(Ice, "getDuplicateReferences"); +x(Pce, "getDuplicateReferences"); function ek(t, e, r) { var n, i, s; if (t !== null && typeof t == "object") @@ -47576,32 +47576,32 @@ function ek(t, e, r) { ek(t[n[i]], e, r); } x(ek, "inspectNode"); -function N6t(t, e) { +function I6t(t, e) { e = e || {}; - var r = new wce(e); - r.noRefs || Ice(t, r); + var r = new Oce(e); + r.noRefs || Pce(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), Pc(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -x(N6t, "dump$1"); -function I6t(t, e) { +x(I6t, "dump$1"); +function P6t(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -x(I6t, "renamed"); -var P6t = Tle, $6t = p6t.load; -function Pce(t) { +x(P6t, "renamed"); +var $6t = Cle, B6t = g6t.load; +function $ce(t) { var i; - const e = t.match(mie); + const e = t.match(vie); if (!e) return { text: t, metadata: {} }; - let r = (i = $6t(e[1], { - schema: P6t + let r = (i = B6t(e[1], { + schema: $6t })) != null ? i : {}; r = typeof r == "object" && !Array.isArray(r) ? r : {}; const n = {}; @@ -47610,57 +47610,57 @@ function Pce(t) { metadata: n }; } -x(Pce, "extractFrontMatter"); -var B6t = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` +x($ce, "extractFrontMatter"); +var F6t = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` `).replace( /<(\w+)([^>]*)>/g, (e, r, n) => "<" + r + n.replace(/="([^"]*)"/g, "='$1'") + ">" -), "cleanupText"), F6t = /* @__PURE__ */ x((t) => { - const { text: e, metadata: r } = Pce(t), { displayMode: n, title: i, config: s = {} } = r; +), "cleanupText"), z6t = /* @__PURE__ */ x((t) => { + const { text: e, metadata: r } = $ce(t), { displayMode: n, title: i, config: s = {} } = r; return n && (s.gantt || (s.gantt = {}), s.gantt.displayMode = n), { title: i, config: s, text: e }; -}, "processFrontmatter"), z6t = /* @__PURE__ */ x((t) => { +}, "processFrontmatter"), V6t = /* @__PURE__ */ x((t) => { var n; const e = (n = sr.detectInit(t)) != null ? n : {}, r = sr.detectDirective(t, "wrap"); return Array.isArray(r) ? e.wrap = r.some(({ type: i }) => i === "wrap") : (r == null ? void 0 : r.type) === "wrap" && (e.wrap = !0), { - text: B3t(t), + text: F3t(t), directive: e }; }, "processDirectives"); -function fN(t) { - const e = B6t(t), r = F6t(e), n = z6t(r.text), i = ch(r.config, n.directive); - return t = LEt(n.text), { +function dN(t) { + const e = F6t(t), r = z6t(e), n = V6t(r.text), i = ch(r.config, n.directive); + return t = REt(n.text), { code: t, title: r.title, config: i }; } -x(fN, "preprocessDiagram"); -function $ce(t) { +x(dN, "preprocessDiagram"); +function Bce(t) { const e = new TextEncoder().encode(t), r = Array.from(e, (n) => String.fromCodePoint(n)).join(""); return btoa(r); } -x($ce, "toBase64"); -var V6t = 5e4, U6t = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", q6t = "sandbox", Q6t = "loose", Y6t = "http://www.w3.org/2000/svg", W6t = "http://www.w3.org/1999/xlink", G6t = "http://www.w3.org/1999/xhtml", H6t = "100%", X6t = "100%", Z6t = "border:0;margin:0;", j6t = "margin:0", K6t = "allow-top-navigation-by-user-activation allow-popups", J6t = 'The "iframe" tag is not supported by your browser.', e_t = ["foreignobject"], t_t = ["dominant-baseline"]; -function dN(t) { +x(Bce, "toBase64"); +var U6t = 5e4, q6t = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Q6t = "sandbox", Y6t = "loose", W6t = "http://www.w3.org/2000/svg", G6t = "http://www.w3.org/1999/xlink", H6t = "http://www.w3.org/1999/xhtml", X6t = "100%", Z6t = "100%", j6t = "border:0;margin:0;", K6t = "margin:0", J6t = "allow-top-navigation-by-user-activation allow-popups", e_t = 'The "iframe" tag is not supported by your browser.', t_t = ["foreignobject"], r_t = ["dominant-baseline"]; +function pN(t) { var r; - const e = fN(t); - return d3(), ivt((r = e.config) != null ? r : {}), e; + const e = dN(t); + return d3(), svt((r = e.config) != null ? r : {}), e; } -x(dN, "processAndSetConfigs"); -async function Bce(t, e) { - zT(); +x(pN, "processAndSetConfigs"); +async function Fce(t, e) { + VT(); try { - const { code: r, config: n } = dN(t); - return { diagramType: (await zce(r)).type, config: n }; + const { code: r, config: n } = pN(t); + return { diagramType: (await Vce(r)).type, config: n }; } catch (r) { if (e != null && e.suppressErrors) return !1; throw r; } } -x(Bce, "parse"); +x(Fce, "parse"); var eQ = /* @__PURE__ */ x((t, e, r = []) => ` -.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), r_t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { +.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), n_t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { var n, i; let r = ""; if (t.themeCSS !== void 0 && (r += ` @@ -47679,57 +47679,57 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += ` }); } return r; -}, "createCssStyles"), n_t = /* @__PURE__ */ x((t, e, r, n) => { - const i = r_t(t, r), s = Ovt(e, i, t.themeVariables); - return G8(vTt(`${n}{${s}}`), bTt); -}, "createUserStyles"), i_t = /* @__PURE__ */ x((t = "", e, r) => { +}, "createCssStyles"), i_t = /* @__PURE__ */ x((t, e, r, n) => { + const i = n_t(t, r), s = kvt(e, i, t.themeVariables); + return H8(yTt(`${n}{${s}}`), xTt); +}, "createUserStyles"), s_t = /* @__PURE__ */ x((t = "", e, r) => { let n = t; return !r && !e && (n = n.replace( /marker-end="url\([\d+./:=?A-Za-z-]*?#/g, 'marker-end="url(#' )), n = c0(n), n = n.replace(/
/g, "
"), n; -}, "cleanUpSvgCode"), s_t = /* @__PURE__ */ x((t = "", e) => { +}, "cleanUpSvgCode"), a_t = /* @__PURE__ */ x((t = "", e) => { var i, s; - const r = (s = (i = e == null ? void 0 : e.viewBox) == null ? void 0 : i.baseVal) != null && s.height ? e.viewBox.baseVal.height + "px" : X6t, n = $ce(`${t}`); - return ``; }, "putIntoIFrame"), tQ = /* @__PURE__ */ x((t, e, r, n, i) => { const s = t.append("div"); s.attr("id", r), n && s.attr("style", n); - const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", Y6t); + const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", W6t); return i && a.attr("xmlns:xlink", i), a.append("g"), t; }, "appendDivSvgG"); -function dL(t, e) { +function pL(t, e) { return t.append("iframe").attr("id", e).attr("style", "width: 100%; height: 100%;").attr("sandbox", ""); } -x(dL, "sandboxedIframe"); -var a_t = /* @__PURE__ */ x((t, e, r, n) => { +x(pL, "sandboxedIframe"); +var o_t = /* @__PURE__ */ x((t, e, r, n) => { var i, s, a; (i = t.getElementById(e)) == null || i.remove(), (s = t.getElementById(r)) == null || s.remove(), (a = t.getElementById(n)) == null || a.remove(); -}, "removeExistingElements"), o_t = /* @__PURE__ */ x(async function(t, e, r) { +}, "removeExistingElements"), l_t = /* @__PURE__ */ x(async function(t, e, r) { var R, $, k, N, M, I, D; - zT(); - const n = dN(e); + VT(); + const n = pN(e); e = n.code; const i = pi(); - X.debug(i), e.length > ((R = i == null ? void 0 : i.maxTextSize) != null ? R : V6t) && (e = U6t); + X.debug(i), e.length > ((R = i == null ? void 0 : i.maxTextSize) != null ? R : U6t) && (e = q6t); const s = "#" + t, a = "i" + t, o = "#" + a, l = "d" + t, u = "#" + l, h = /* @__PURE__ */ x(() => { const F = et(d ? o : u).node(); F && "remove" in F && F.remove(); }, "removeTempElements"); let f = et("body"); - const d = i.securityLevel === q6t, p = i.securityLevel === Q6t, g = i.fontFamily; + const d = i.securityLevel === Q6t, p = i.securityLevel === Y6t, g = i.fontFamily; if (r !== void 0) { if (r && (r.innerHTML = ""), d) { - const P = dL(et(r), a); + const P = pL(et(r), a); f = et(P.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = et(r); - tQ(f, t, l, `font-family: ${g}`, W6t); + tQ(f, t, l, `font-family: ${g}`, G6t); } else { - if (a_t(document, t, l, a), d) { - const P = dL(et("body"), a); + if (o_t(document, t, l, a), d) { + const P = pL(et("body"), a); f = et(P.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = et("body"); @@ -47737,31 +47737,31 @@ var a_t = /* @__PURE__ */ x((t, e, r, n) => { } let m, v; try { - m = await j8.fromText(e, { title: n.title }); + m = await K8.fromText(e, { title: n.title }); } catch (P) { if (i.suppressErrorRendering) throw h(), P; - m = await j8.fromText("error"), v = P; + m = await K8.fromText("error"), v = P; } - const y = f.select(u).node(), b = m.type, w = y.firstChild, O = w.firstChild, S = (k = ($ = m.renderer).getClasses) == null ? void 0 : k.call($, e, m), C = n_t(i, b, S, s), T = document.createElement("style"); + const y = f.select(u).node(), b = m.type, w = y.firstChild, O = w.firstChild, S = (k = ($ = m.renderer).getClasses) == null ? void 0 : k.call($, e, m), C = i_t(i, b, S, s), T = document.createElement("style"); T.innerHTML = C, w.insertBefore(T, O); try { - await m.renderer.draw(e, t, Y8, m); + await m.renderer.draw(e, t, W8, m); } catch (P) { - throw i.suppressErrorRendering ? h() : jCt.draw(e, t, Y8), P; + throw i.suppressErrorRendering ? h() : KCt.draw(e, t, W8), P; } - const L = f.select(`${u} svg`), E = (M = (N = m.db).getAccTitle) == null ? void 0 : M.call(N), A = (D = (I = m.db).getAccDescription) == null ? void 0 : D.call(I); - Vce(b, L, E, A), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", G6t); + const A = f.select(`${u} svg`), E = (M = (N = m.db).getAccTitle) == null ? void 0 : M.call(N), L = (D = (I = m.db).getAccDescription) == null ? void 0 : D.call(I); + Uce(b, A, E, L), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", H6t); let _ = f.select(u).node().innerHTML; - if (X.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = i_t(_, d, bn(i.arrowMarkerAbsolute)), d) { + if (X.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = s_t(_, d, bn(i.arrowMarkerAbsolute)), d) { const P = f.select(u + " svg").node(); - _ = s_t(_, P); + _ = a_t(_, P); } else p || (_ = Ug.sanitize(_, { - ADD_TAGS: e_t, - ADD_ATTR: t_t + ADD_TAGS: t_t, + ADD_ATTR: r_t })); - if (AEt(), v) + if (LEt(), v) throw v; return h(), { diagramType: b, @@ -47769,33 +47769,33 @@ var a_t = /* @__PURE__ */ x((t, e, r, n) => { bindFunctions: m.db.bindFunctions }; }, "render"); -function Fce(t = {}) { +function zce(t = {}) { var n; const e = Ci({}, t); - (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), rvt(e), (e == null ? void 0 : e.theme) && e.theme in Au ? e.themeVariables = Au[e.theme].getThemeVariables( + (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), nvt(e), (e == null ? void 0 : e.theme) && e.theme in Au ? e.themeVariables = Au[e.theme].getThemeVariables( e.themeVariables ) : e && (e.themeVariables = Au.default.getThemeVariables(e.themeVariables)); - const r = typeof e == "object" ? tvt(e) : kie(); - dD(r.logLevel), zT(); + const r = typeof e == "object" ? rvt(e) : Sie(); + pD(r.logLevel), VT(); } -x(Fce, "initialize"); -var zce = /* @__PURE__ */ x((t, e = {}) => { - const { code: r } = fN(t); - return j8.fromText(r, e); +x(zce, "initialize"); +var Vce = /* @__PURE__ */ x((t, e = {}) => { + const { code: r } = dN(t); + return K8.fromText(r, e); }, "getDiagramFromText"); -function Vce(t, e, r, n) { - Koe(e, t), Joe(e, r, n, e.attr("id")); +function Uce(t, e, r, n) { + Joe(e, t), ele(e, r, n, e.attr("id")); } -x(Vce, "addA11yInfo"); +x(Uce, "addA11yInfo"); var f0 = Object.freeze({ - render: o_t, - parse: Bce, - getDiagramFromText: zce, - initialize: Fce, + render: l_t, + parse: Fce, + getDiagramFromText: Vce, + initialize: zce, getConfig: pi, - setConfig: Sie, - getSiteConfig: kie, - updateSiteConfig: nvt, + setConfig: Tie, + getSiteConfig: Sie, + updateSiteConfig: ivt, reset: /* @__PURE__ */ x(() => { d3(); }, "reset"), @@ -47804,25 +47804,25 @@ var f0 = Object.freeze({ }, "globalReset"), defaultConfig: Qg }); -dD(pi().logLevel); +pD(pi().logLevel); d3(pi()); -var l_t = /* @__PURE__ */ x((t, e, r) => { - X.warn(t), QD(t) ? (r && r(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (r && r(t), t instanceof Error && e.push({ +var c_t = /* @__PURE__ */ x((t, e, r) => { + X.warn(t), YD(t) ? (r && r(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (r && r(t), t instanceof Error && e.push({ str: t.message, message: t.message, hash: t.name, error: t })); -}, "handleError"), Uce = /* @__PURE__ */ x(async function(t = { +}, "handleError"), qce = /* @__PURE__ */ x(async function(t = { querySelector: ".mermaid" }) { try { - await c_t(t); + await u_t(t); } catch (e) { - if (QD(e) && X.error(e.str), ao.parseError && ao.parseError(e), !t.suppressErrors) + if (YD(e) && X.error(e.str), ao.parseError && ao.parseError(e), !t.suppressErrors) throw X.error("Use the suppressErrors option to suppress these errors"), e; } -}, "run"), c_t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { +}, "run"), u_t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { querySelector: ".mermaid" }) { const n = f0.getConfig(); @@ -47843,40 +47843,40 @@ var l_t = /* @__PURE__ */ x((t, e, r) => { continue; l.setAttribute("data-processed", "true"); const u = `mermaid-${s.next()}`; - a = l.innerHTML, a = $ae(sr.entityDecode(a)).trim().replace(//gi, "
"); + a = l.innerHTML, a = Bae(sr.entityDecode(a)).trim().replace(//gi, "
"); const h = sr.detectInit(a); h && X.debug("Detected early reinit: ", h); try { - const { svg: f, bindFunctions: d } = await Wce(u, a, l); + const { svg: f, bindFunctions: d } = await Gce(u, a, l); l.innerHTML = f, t && await t(u), d && d(l); } catch (f) { - l_t(f, o, ao.parseError); + c_t(f, o, ao.parseError); } } if (o.length > 0) throw o[0]; -}, "runThrowsErrors"), qce = /* @__PURE__ */ x(function(t) { +}, "runThrowsErrors"), Qce = /* @__PURE__ */ x(function(t) { f0.initialize(t); -}, "initialize"), u_t = /* @__PURE__ */ x(async function(t, e, r) { - X.warn("mermaid.init is deprecated. Please use run instead."), t && qce(t); +}, "initialize"), h_t = /* @__PURE__ */ x(async function(t, e, r) { + X.warn("mermaid.init is deprecated. Please use run instead."), t && Qce(t); const n = { postRenderCallback: r, querySelector: ".mermaid" }; - typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await Uce(n); -}, "init"), h_t = /* @__PURE__ */ x(async (t, { + typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await qce(n); +}, "init"), f_t = /* @__PURE__ */ x(async (t, { lazyLoad: e = !0 } = {}) => { - zT(), yie(...t), e === !1 && await EEt(); -}, "registerExternalDiagrams"), Qce = /* @__PURE__ */ x(function() { + VT(), bie(...t), e === !1 && await _Et(); +}, "registerExternalDiagrams"), Yce = /* @__PURE__ */ x(function() { if (ao.startOnLoad) { const { startOnLoad: t } = f0.getConfig(); t && ao.run().catch((e) => X.error("Mermaid failed to initialize", e)); } }, "contentLoaded"); -typeof document < "u" && window.addEventListener("load", Qce, !1); -var f_t = /* @__PURE__ */ x(function(t) { +typeof document < "u" && window.addEventListener("load", Yce, !1); +var d_t = /* @__PURE__ */ x(function(t) { ao.parseError = t; -}, "setParseErrorHandler"), tk = [], n_ = !1, Yce = /* @__PURE__ */ x(async () => { - if (!n_) { - for (n_ = !0; tk.length > 0; ) { +}, "setParseErrorHandler"), tk = [], i_ = !1, Wce = /* @__PURE__ */ x(async () => { + if (!i_) { + for (i_ = !0; tk.length > 0; ) { const t = tk.shift(); if (t) try { @@ -47885,9 +47885,9 @@ var f_t = /* @__PURE__ */ x(function(t) { X.error("Error executing queue", e); } } - n_ = !1; + i_ = !1; } -}, "executeQueue"), d_t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { +}, "executeQueue"), p_t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { const i = /* @__PURE__ */ x(() => new Promise((s, a) => { f0.parse(t, e).then( (o) => { @@ -47899,8 +47899,8 @@ var f_t = /* @__PURE__ */ x(function(t) { } ); }), "performCall"); - tk.push(i), Yce().catch(n); -}), "parse"), Wce = /* @__PURE__ */ x((t, e, r) => new Promise((n, i) => { + tk.push(i), Wce().catch(n); +}), "parse"), Gce = /* @__PURE__ */ x((t, e, r) => new Promise((n, i) => { const s = /* @__PURE__ */ x(() => new Promise((a, o) => { f0.render(t, e, r).then( (l) => { @@ -47912,22 +47912,22 @@ var f_t = /* @__PURE__ */ x(function(t) { } ); }), "performCall"); - tk.push(s), Yce().catch(i); + tk.push(s), Wce().catch(i); }), "render"), ao = { startOnLoad: !0, mermaidAPI: f0, - parse: d_t, - render: Wce, - init: u_t, - run: Uce, - registerExternalDiagrams: h_t, - registerLayoutLoaders: yoe, - initialize: qce, + parse: p_t, + render: Gce, + init: h_t, + run: qce, + registerExternalDiagrams: f_t, + registerLayoutLoaders: boe, + initialize: Qce, parseError: void 0, - contentLoaded: Qce, - setParseErrorHandler: f_t, - detectType: pD, - registerIconPacks: Iie + contentLoaded: Yce, + setParseErrorHandler: d_t, + detectType: gD, + registerIconPacks: Pie }, rQ = ao; /*! Check if previously processed */ /*! @@ -47938,7 +47938,7 @@ var f_t = /* @__PURE__ */ x(function(t) { js-yaml/dist/js-yaml.mjs: (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) */ -const nQ = /* @__PURE__ */ new Map(), iQ = 42, sQ = /* @__PURE__ */ new Map(), p_t = (t, { +const nQ = /* @__PURE__ */ new Map(), iQ = 42, sQ = /* @__PURE__ */ new Map(), g_t = (t, { lineMap: e, parent: r }) => { @@ -47954,13 +47954,13 @@ const nQ = /* @__PURE__ */ new Map(), iQ = 42, sQ = /* @__PURE__ */ new Map(), p const u = i[s]; if (u.info !== "mermaid") return n(i, s, a, o, l); - const h = u.content.trim(), f = rie(e.current, u.attrGet("data-line-id")); + const h = u.content.trim(), f = nie(e.current, u.attrGet("data-line-id")); let d = nQ.get(f); - d || (d = sQ.get(new f8(h, iQ).result())); + d || (d = sQ.get(new d8(h, iQ).result())); const p = Math.random().toString().replace(".", ""); if (u.attrSet("id", `mermaid-${p}`), d && u.attrSet("class", "mermaid"), !d || d.code !== h) { const m = document.createElement("div"); - m.style.position = "fixed", m.style.visibility = "none", document.body.appendChild(m), Gne(r, `mermaid-${p}`).then((v) => { + m.style.position = "fixed", m.style.visibility = "none", document.body.appendChild(m), Hne(r, `mermaid-${p}`).then((v) => { rQ.render(`mermaid-${p}`, h, m).then(({ svg: y }) => { @@ -47968,7 +47968,7 @@ const nQ = /* @__PURE__ */ new Map(), iQ = 42, sQ = /* @__PURE__ */ new Map(), p svg: y, code: h }; - nQ.set(f, b), sQ.set(new f8(h, iQ).result(), b), v.innerHTML = y, v.className = "mermaid"; + nQ.set(f, b), sQ.set(new d8(h, iQ).result(), b), v.innerHTML = y, v.className = "mermaid"; }).catch((y) => { v.innerHTML = `Mermaid error: ${y}`, v.classList.remove("mermaid"); @@ -47979,9 +47979,9 @@ ${y}`, v.classList.remove("mermaid"); } return `
${(g = d == null ? void 0 : d.svg) != null ? g : h}
`; }; -}, g_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, m_t = (t) => () => { +}, m_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, v_t = (t) => () => { window.myst_editor || (window.myst_editor = {}), window.myst_editor.text = t; -}, v_t = (t) => { +}, y_t = (t) => { const r = new DOMParser().parseFromString(t, "text/html"); r.querySelectorAll("[data-line-id]").forEach((i) => i.removeAttribute("data-line-id")), r.querySelectorAll("span").forEach((i) => { i.attributes.length === 0 && (i.insertAdjacentHTML("afterend", i.innerHTML), i.remove()); @@ -47995,7 +47995,7 @@ ${y}`, v.classList.remove("mermaid"); type: "text/html" }) })]); -}, pN = Zt.define(), y_t = ({ +}, rk = Zt.define(), b_t = ({ initialText: t, transforms: e, customRoles: r, @@ -48006,54 +48006,52 @@ ${y}`, v.classList.remove("mermaid"); const [a, o] = Rn(t), [l, u] = Rn(!1), [h, f] = Rn(!1), [d, p] = Rn({ action: (O) => { } - }), g = io(/* @__PURE__ */ new Map()), [m, v] = TS((O, { + }), g = Ra(/* @__PURE__ */ new Map()), [m, v] = CS((O, { newMarkdown: S, force: C = !1, view: T }) => { - let L = {}; - C || (L = O.reduce((A, { + let A = {}; + C || (A = O.reduce((L, { hash: _, html: R - }) => (A[_] = R, A), {})); - const E = w(S, L); - return E.length !== O.length || C ? ([...n.current.childNodes].filter((_) => !_.classList || !_.classList.contains("cm-previewFocus")).forEach((_) => n.current.removeChild(_)), n.current.innerHTML += E.map((_) => `` + _.html + "").join(""), E) : (E.filter((A, _) => A.hash !== O[_].hash).forEach((A) => n.current.querySelector("html-chunk#html-chunk-" + A.id).innerHTML = A.html), T == null || T.dispatch({ - effects: pN.of(null) - }), E); + }) => (L[_] = R, L), {})); + const E = w(S, A); + return E.length !== O.length || C ? ([...n.current.childNodes].filter((_) => !_.classList || !_.classList.contains("cm-previewFocus")).forEach((_) => n.current.removeChild(_)), n.current.innerHTML += E.map((_) => `` + _.html + "").join(""), E) : (E.filter((L, _) => L.hash !== O[_].hash).forEach((L) => n.current.querySelector("html-chunk#html-chunk-" + L.id).innerHTML = L.html), E); }, []), y = Nn(() => { - const O = $1t({ + const O = B1t({ breaks: !0, linkify: !0 - }).use(sLe).use(z1t(e, s)).use(U1t(r, s)).use(p_t, { + }).use(aLe).use(V1t(e, s)).use(q1t(r, s)).use(g_t, { preview: n, lineMap: g, parent: s - }).use(Q1t); - return i && O.use(q1t), O; + }).use(Y1t); + return i && O.use(Q1t), O; }, []), b = p5((O) => { if (O.startState.doc.lines === O.state.doc.lines) return; let S = 0, C = 0; - O.changes.iterChangedRanges((L, E, A, _) => { - const R = O.startState.doc.lineAt(L).number, $ = O.startState.doc.lineAt(E).number, k = O.state.doc.lineAt(A).number, N = O.state.doc.lineAt(_).number; + O.changes.iterChangedRanges((A, E, L, _) => { + const R = O.startState.doc.lineAt(A).number, $ = O.startState.doc.lineAt(E).number, k = O.state.doc.lineAt(L).number, N = O.state.doc.lineAt(_).number; S = $, R === $ ? C = N - k : C = -($ - R); }); const T = new Map(g.current); - for (const [L, E] of g.current.entries()) - L < S || (E === T.get(L) && T.delete(L), T.set(L + C, E)); + for (const [A, E] of g.current.entries()) + A < S || (E === T.get(A) && T.delete(A), T.set(A + C, E)); g.current = T; }), w = p5((O, S = {}) => O.split(/(?=\n#{1,3} )/g).reduce( (C, T) => { - const L = C.length - 1, E = C[L], A = E ? E.startLine + E.md.trimLeft().split(` -`).length : 1, _ = A + T.trimLeft().split(` + const A = C.length - 1, E = C[A], L = E ? E.startLine + E.md.trimLeft().split(` +`).length : 1, _ = L + T.trimLeft().split(` `).length - 1; - return g_t(E == null ? void 0 : E.md, /\n```/g) % 2 != 0 ? C[L] = { + return m_t(E == null ? void 0 : E.md, /\n```/g) % 2 != 0 ? C[A] = { md: E.md + T, startLine: E.startLine, endLine: _ } : C.push({ md: T, - startLine: A, + startLine: L, endLine: _ }), C; }, @@ -48061,13 +48059,13 @@ ${y}`, v.classList.remove("mermaid"); ).map(({ md: C, startLine: T, - endLine: L + endLine: A }, E) => { - const A = new f8(C, 42).result(); - if (!S[A]) - for (let R = T; R <= L; R++) + const L = new d8(C, 42).result(); + if (!S[L]) + for (let R = T; R <= A; R++) g.current.delete(R); - const _ = S[A] || Tne.sanitize(y.render(C, { + const _ = S[L] || Cne.sanitize(y.render(C, { chunkId: E, startLine: T, lineMap: g @@ -48077,16 +48075,36 @@ ${y}`, v.classList.remove("mermaid"); }); return { md: C, - hash: A, + hash: L, id: E, html: _ }; }), [y]); - return Qi(() => l && v({ + return _i(() => l && v({ newMarkdown: a - }), [l]), Qi(m_t(a), [a]), Qi(() => { + }), [l]), _i(v_t(a), [a]), _i(() => { h && (d.action(a), f(!1)); - }, [h]), { + }, [h]), _i(() => { + if (n.current == null) + return; + const O = new ResizeObserver(() => { + window.myst_editor.main_editor.dispatch({ + effects: rk.of(null) + }); + }), S = new MutationObserver((C) => { + window.myst_editor.main_editor.dispatch({ + effects: rk.of(null) + }); + for (const T of C) + T.type === "childList" && ([...T.addedNodes].filter((A) => A.nodeName === "IMG").forEach((A) => O.observe(A)), [...T.removedNodes].filter((A) => A.nodeName === "IMG").forEach((A) => O.unobserve(A))); + }); + return S.observe(n.current, { + childList: !0, + subtree: !0 + }), () => { + S.disconnect(), O.disconnect(); + }; + }, [n.current]), { set(O, S) { S && b(S), o(O), setTimeout(() => { try { @@ -48124,31 +48142,31 @@ ${y}`, v.classList.remove("mermaid"); u(!0); }, copy() { - v_t(w(window.myst_editor.text, {}, []).map((O) => O.html).join(` + y_t(w(window.myst_editor.text, {}, []).map((O) => O.html).join(` `)); }, lineMap: g }; -}, Gce = 20, b_t = 100, x_t = (t, e) => { - let r; - return ht.updateListener.of((n) => { - const i = n.startState.doc.lineAt(n.startState.selection.main.head).number, s = n.state.doc.lineAt(n.state.selection.main.head).number, a = n.selectionSet && (i !== s || i === 1), o = n.transactions.some((h) => h.effects.some((f) => f.is(pN))), l = n.geometryChanged && !n.viewportChanged; - if (n.docChanged || !a && !o && !l) +}, Hce = 20, x_t = 100, aQ = 500, w_t = (t, e, r) => { + let n; + return ht.updateListener.of((i) => { + const s = i.startState.doc.lineAt(i.startState.selection.main.head).number, a = i.state.doc.lineAt(i.state.selection.main.head).number, o = i.selectionSet && (s !== a || s === 1), l = r.current === null ? aQ : performance.now() - r.current, u = i.transactions.some((d) => d.effects.some((p) => p.is(rk))) && l < aQ, h = i.geometryChanged && !i.viewportChanged; + if (i.docChanged || !o && !u && !h) return; - function u() { - const [h, f] = tie(s, t, e.current); - h && w_t({ - view: n.view, - matchingLine: f, - matchingElem: h, + function f() { + const [d, p] = rie(a, t, e.current); + d && O_t({ + view: i.view, + matchingLine: p, + matchingElem: d, behavior: "smooth", preview: e.current }); } - clearTimeout(r), r = setTimeout(u, b_t); + clearTimeout(n), n = setTimeout(f, x_t); }); }; -function w_t({ +function O_t({ view: t, matchingLine: e, matchingElem: r, @@ -48157,24 +48175,24 @@ function w_t({ }) { const s = t.lineBlockAt(t.state.doc.line(e).from), a = i.getBoundingClientRect(), o = t.dom.parentElement; let l = r.getBoundingClientRect(); - const u = s.top + Gce, h = l.top + i.scrollTop - u - a.top + o.scrollTop; + const u = s.top + Hce, h = l.top + i.scrollTop - u - a.top + o.scrollTop; i.scrollTo({ top: h, behavior: n }); } -function O_t(t, e, r) { +function k_t(t, e, r) { let n = t.target.getAttribute("data-line-id"), i = t.target; if (!n) for (; i.tagName !== "HTML-CHUNK"; ) { const h = i.parentElement; - if ([n, i] = k_t(i), n) + if ([n, i] = S_t(i), n) break; i = h; } if (!n) return; - const s = rie(e.current, n), a = window.myst_editor.main_editor.state.doc.line(s), o = window.myst_editor.main_editor.visibleRanges[0]; + const s = nie(e.current, n), a = window.myst_editor.main_editor.state.doc.line(s), o = window.myst_editor.main_editor.visibleRanges[0]; function l() { window.myst_editor.main_editor.dispatch({ selection: Ve.create([Ve.range(a.to, a.to)]) @@ -48184,7 +48202,7 @@ function O_t(t, e, r) { const { canScroll: h, editor: f - } = aQ(i, r, a); + } = oQ(i, r, a); h ? f.addEventListener("scrollend", u, { once: !0 }) : l(); @@ -48193,15 +48211,15 @@ function O_t(t, e, r) { const { canScroll: h, editor: f - } = aQ(i, r, a); + } = oQ(i, r, a); h ? f.addEventListener("scrollend", l, { once: !0 }) : l(); } else u(); } -function aQ(t, e, r) { - const n = window.myst_editor.main_editor.lineBlockAt(r.from), i = t.getBoundingClientRect(), s = e.current.getBoundingClientRect(), a = window.myst_editor.main_editor.dom.parentElement, o = i.top, l = n.top - o + s.top + Gce, u = Math.sign(a.scrollTop - l), h = 5, f = !(u === 1 && a.scrollTop === 0) && !(u === -1 && a.scrollTop + a.clientHeight >= a.scrollHeight) && Math.abs(a.scrollTop - l) > h; +function oQ(t, e, r) { + const n = window.myst_editor.main_editor.lineBlockAt(r.from), i = t.getBoundingClientRect(), s = e.current.getBoundingClientRect(), a = window.myst_editor.main_editor.dom.parentElement, o = i.top, l = n.top - o + s.top + Hce, u = Math.sign(a.scrollTop - l), h = 5, f = !(u === 1 && a.scrollTop === 0) && !(u === -1 && a.scrollTop + a.clientHeight >= a.scrollHeight) && Math.abs(a.scrollTop - l) > h; return a.scrollTo({ top: l, behavior: "smooth" @@ -48210,7 +48228,7 @@ function aQ(t, e, r) { editor: a }; } -function k_t(t) { +function S_t(t) { let e = t; for (; e != null; ) { const r = e.getAttribute("data-line-id"); @@ -48220,20 +48238,20 @@ function k_t(t) { } return [void 0, e]; } -const S_t = (t, e) => ht.updateListener.of((r) => { - const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((u) => u.effects.some((h) => h.is(pN))), o = r.geometryChanged && !r.viewportChanged; +const T_t = (t, e) => ht.updateListener.of((r) => { + const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((h) => h.effects.some((f) => f.is(rk))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; - const [l] = tie(i, t, e.current); + const [l] = rie(i, t, e.current), u = e.current.querySelector(".cm-previewFocus"); if (l) { - const u = e.current.getBoundingClientRect(); - let h = l.getBoundingClientRect(); - const f = e.current.querySelector(".cm-previewFocus"); - f.style.top = `${h.top - u.top + e.current.scrollTop}px`; - const d = h.left - u.left - 12.5 - (l.tagName === "LI" || l.parentElement.tagName === "LI" ? 17 : 0); - f.style.left = `${d}px`, f.style.height = `${h.height}px`; - } -}), T_t = F3e.filter((t, e) => e != 3), C_t = z3e.filter((t, e) => e != 1), E_t = (t) => { + const h = e.current.getBoundingClientRect(); + let f = l.getBoundingClientRect(); + u.style.top = `${f.top - h.top + e.current.scrollTop}px`; + const d = f.left - h.left - 12.5 - (l.tagName === "LI" || l.parentElement.tagName === "LI" ? 17 : 0); + u.style.left = `${d}px`, u.style.height = `${f.height}px`; + } else + u.style.height = "0px"; +}), C_t = z3e.filter((t, e) => e != 3), E_t = V3e.filter((t, e) => e != 1), __t = (t) => { const { from: e } = t.state.selection.main, r = t.state.doc.lineAt(e); @@ -48241,7 +48259,7 @@ const S_t = (t, e) => ht.updateListener.of((r) => { line: r.number - 1, ch: e - r.from }; -}, __t = (t, e) => { +}, A_t = (t, e) => { const { line: r, ch: n @@ -48253,20 +48271,20 @@ const S_t = (t, e) => ht.updateListener.of((r) => { }, scrollIntoView: !0 }); -}, pL = (t) => t.transactions.some((e) => e.effects.some((r) => r.is(Fu) || r.is(N0))); +}, gL = (t) => t.transactions.some((e) => e.effects.some((r) => r.is(Fu) || r.is(N0))); class Kh { constructor(e = []) { this.important = [dr.lineSeparator.of(` `)], this.base = e, this.extensions = Kh.defaultPlugins(); } static minimalSetup() { - return new Kh(C_t); + return new Kh(E_t); } static basicSetup() { - return new Kh(T_t); + return new Kh(C_t); } static defaultPlugins() { - return [ht.lineWrapping, V6e(), mK(), Tu.of([s5e, { + return [ht.lineWrapping, U6e(), vK(), Tu.of([a5e, { key: "Mod-Z", run: L5 }])]; @@ -48281,10 +48299,10 @@ class Kh { return this.extensions.push(ht.updateListener.of(e)), this; } useSpellcheck(e) { - return this.extensions.push(K6e(e)), this; + return this.extensions.push(J6e(e)), this; } useHighlighter(e) { - return this.extensions.push(UM(e)), this; + return this.extensions.push(qM(e)), this; } useCompartment(e, r) { return this.extensions.push(e.of(r)), this; @@ -48292,7 +48310,7 @@ class Kh { useComments({ ycomments: e }) { - return this.important.push(F_e(e)), this; + return this.important.push(z_e(e)), this; } useRemoveSelectionOnBlur() { return this.base.push(ht.domEventHandlers({ @@ -48307,25 +48325,26 @@ class Kh { })), this; } showCommentLineAuthors(e) { - return this.important.push(y_e(e)), this; + return this.important.push(b_e(e)), this; } readonly() { return this.extensions.push(ht.editable.of(!1), dr.readOnly.of(!0)), this; } useDefaultHistory() { - return this.base.push(eM()), this; + return this.base.push(tM()), this; } useSyncPreviewWithCursor({ lineMap: e, - preview: r + preview: r, + lastTyped: n }) { - return this.base.push(x_t(e, r)), this; + return this.base.push(w_t(e, r, n)), this; } useCursorIndicator({ lineMap: e, preview: r }) { - return this.base.push(S_t(e, r)), this; + return this.base.push(T_t(e, r)), this; } useCollaboration({ ytext: e, @@ -48333,12 +48352,12 @@ class Kh { undoManager: n, editorRef: i }) { - return this.extensions.push(HTe(e, r.awareness, { + return this.extensions.push(XTe(e, r.awareness, { undoManager: n })), n && (n.on("stack-item-added", (s) => { - s.stackItem.meta.set("cursor-location", E_t(i.current)); + s.stackItem.meta.set("cursor-location", __t(i.current)); }), n.on("stack-item-popped", (s) => { - __t(i.current, s.stackItem.meta.get("cursor-location")); + A_t(i.current, s.stackItem.meta.get("cursor-location")); }), this.extensions.push(Tu.of([{ key: "Mod-z", run: () => n.undo(), @@ -48357,11 +48376,11 @@ class Kh { ycomments: e, editorMountpoint: r }) { - return this.base.push(ht.updateListener.of((n) => k_e(n, e, r))), this; + return this.base.push(ht.updateListener.of((n) => S_e(n, e, r))), this; } useFixFoldingScroll(e) { return this.base.push(dr.transactionFilter.of((r) => (r.effects.some((n) => n.is(Fu) || n.is(N0)) && (e.current = window.scrollY), r)), ht.updateListener.of((r) => { - !pL(r) || e.current == null || (window.scrollTo({ + !gL(r) || e.current == null || (window.scrollTo({ top: e.current }), e.current = null); })), this; @@ -48382,14 +48401,14 @@ class Kh { } return e; }), ht.updateListener.of((e) => { - !pL(e) || e.view.focus(); + !gL(e) || e.view.focus(); })), this; } create() { return [...this.important, ...this.base, ...this.extensions]; } } -function A_t(t, e = 0) { +function L_t(t, e = 0) { let { state: r } = t, n = [], i = 0; @@ -48401,7 +48420,7 @@ function A_t(t, e = 0) { effects: n }); } -const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", R_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", M_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", D_t = er.div` +const R_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", M_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", D_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", N_t = er.div` position: absolute; top: ${(t) => t.top + 20}px; left: ${(t) => t.left + 19}px; @@ -48461,16 +48480,16 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM position: absolute; transform: translateX(-30px); } -`, N_t = ({ +`, I_t = ({ ycomments: t, commentId: e, collaboration: r }) => { - let n = io(null); + let n = Ra(null); const i = Nn(() => t.lineAuthors(e), [e]), s = p5((l) => l.heightChanged && l.view.requestMeasure({ read: (u) => t.updateHeight(e, u.dom.clientHeight) }), [e]), a = t.parentLineHeight(e) + 3.8; - Qi(() => { + _i(() => { if (!n.current) return; const l = t.getTextForComment(e), u = new ht({ @@ -48489,8 +48508,8 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM u.destroy(); }; }, [n]); - const o = io(null); - return Qi(() => { + const o = Ra(null); + return _i(() => { !o.current || (o.current.onmouseup = () => { t.display().switchVisibility(e), t.updateMainCodeMirror(); }, o.current.ondragstart = () => { @@ -48498,35 +48517,35 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM }, o.current.ondragend = () => { t.draggedComment = null, t.display().update(); }); - }, [o.current, t.commentWithPopup]), Bt` <${D_t} + }, [o.current, t.commentWithPopup]), Bt` <${N_t} left=${t.marginLeft()} top=${t.display().offset(e)} fade=${t.draggedComment == e} >
${t.commentWithPopup == e && Bt` - <${I_t} + <${P_t} left=${t.marginLeft()} shift=${a} onMouseLeave=${() => { t.commentWithPopup = null, t.updateMainCodeMirror(); }} > - + - <${oQ} icon=${R_t} bgOnHover=${"#e7473c15"} text="DELETE" onClick=${() => t.deleteComment(e)} /> - ${r.resolvingCommentsEnabled && Bt`<${oQ} icon=${M_t} bgOnHover=${"#AAE17320"} text="RESOLVE" onClick=${() => t.resolveComment(e)} />`} + <${lQ} icon=${M_t} bgOnHover=${"#e7473c15"} text="DELETE" onClick=${() => t.deleteComment(e)} /> + ${r.resolvingCommentsEnabled && Bt`<${lQ} icon=${D_t} bgOnHover=${"#AAE17320"} text="RESOLVE" onClick=${() => t.resolveComment(e)} />`} `}
`; -}, I_t = er.div` +}, P_t = er.div` width: fit-content; height: 25px; border-radius: 2px; @@ -48554,7 +48573,7 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM svg { box-sizing: content-box; } -`, P_t = er.div` +`, $_t = er.div` display: inline-flex; cursor: pointer; padding-left: 5px; @@ -48585,35 +48604,35 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM margin-left: 5px; box-sizing: content-box; } -`, oQ = ({ +`, lQ = ({ icon: t, onClick: e, text: r, bgOnHover: n }) => Bt` - <${P_t} bgOnHover=${n} onClick=${e}> + <${$_t} bgOnHover=${n} onClick=${e}> ${r} - `, $_t = ({ + `, B_t = ({ ycomments: t, collaboration: e }) => { let r = ({ commentId: a - }) => Bt`<${N_t} ...${{ + }) => Bt`<${I_t} ...${{ key: a, commentId: a, ycomments: t, collaboration: e }} />`, n = () => t.iterComments().map(r), [i, s] = Rn(n()); return t.display().onUpdate(() => s(n())), Bt` ${i} `; -}, B_t = ` +}, F_t = ` -`, F_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", Hce = er.div` +`, z_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", Xce = er.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -48643,7 +48662,7 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM position: absolute; display: inline; background-color: var(--gray-200); - background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(B_t)}"); + background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(F_t)}"); background-repeat: no-repeat; } @@ -48772,7 +48791,7 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM transform: translateX(-11px); } } -`, z_t = (t, e) => { +`, V_t = (t, e) => { t.dispatch({ changes: { from: 0, @@ -48780,7 +48799,7 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM insert: e } }); -}, V_t = ({ +}, U_t = ({ text: t, id: e, root: r, @@ -48792,12 +48811,12 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM syncScroll: l, unfoldedHeadings: u }) => { - const h = io(null), f = io(null), d = io(null); - return Qi(() => { - var p; + const h = Ra(null), f = Ra(null), d = Ra(null), p = Ra(null); + return _i(() => { + var g; if (a.opts.enabled && a.error) { - t.readyToRender(), (p = h.current) == null || p.destroy(); - const g = new ht({ + t.readyToRender(), (g = h.current) == null || g.destroy(); + const m = new ht({ root: r, state: dr.create({ doc: t.get(), @@ -48805,47 +48824,50 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM }), parent: f.current }); - g.dom.style.opacity = "0.5"; + m.dom.style.opacity = "0.5"; } - }, [a.error]), Qi(() => { - var m, v, y; + }, [a.error]), _i(() => { + var v, y, b; if (a.opts.enabled && !a.ready || h.current || a.error) return; - ((m = a.ytext) == null ? void 0 : m.toString().length) === 0 && t.get().length > 0 && (console.warn("[Collaboration] Remote state is empty, overriding with local state"), a.ytext.insert(0, t.get())), a.opts.enabled && t.set(a.ytext.toString()), t.readyToRender(); - const p = dr.create({ + ((v = a.ytext) == null ? void 0 : v.toString().length) === 0 && t.get().length > 0 && (console.warn("[Collaboration] Remote state is empty, overriding with local state"), a.ytext.insert(0, t.get())), a.opts.enabled && (t.set(a.ytext.toString()), a.ytext.observe((w, O) => { + !O.local || (p.current = performance.now()); + })), t.readyToRender(); + const g = dr.create({ root: r, doc: a.opts.enabled ? a.ytext.toString() : t.get(), - extensions: Kh.basicSetup().useHighlighter(s).useCompartment(Sre, UM([])).useSpellcheck(i).if(a.opts.enabled, (b) => b.useCollaboration({ + extensions: Kh.basicSetup().useHighlighter(s).useCompartment(Tre, qM([])).useSpellcheck(i).if(a.opts.enabled, (w) => w.useCollaboration({ ...a, editorRef: h - })).if(a.opts.commentsEnabled, (b) => b.useComments({ + })).if(a.opts.commentsEnabled, (w) => w.useComments({ ycomments: a.ycomments }).useSuggestionPopup({ ycomments: a.ycomments, editorMountpoint: f - })).addUpdateListener((b) => b.docChanged && t.set(g.state.doc.toString(), b)).useFixFoldingScroll(d).useMoveCursorAfterFold().useCursorIndicator({ + })).addUpdateListener((w) => w.docChanged && t.set(m.state.doc.toString(), w)).useFixFoldingScroll(d).useMoveCursorAfterFold().useCursorIndicator({ lineMap: t.lineMap, preview: o - }).if(l, (b) => b.useSyncPreviewWithCursor({ + }).if(l, (w) => w.useSyncPreviewWithCursor({ lineMap: t.lineMap, - preview: o + preview: o, + lastTyped: p })).create() - }), g = new ht({ - state: p, + }), m = new ht({ + state: g, parent: f.current }); - return h.current = g, window.myst_editor.main_editor = g, u != null && A_t(g, u), (v = a.ycomments) == null || v.registerCodeMirror(g), (y = a.provider) == null || y.watchCollabolators(a.setUsers), t.onSync((b) => z_t(g, b)), () => { - a.opts.enabled && (a.provider.disconnect(), a.ydoc.destroy()), g.destroy(); + return h.current = m, window.myst_editor.main_editor = m, u != null && L_t(m, u), (y = a.ycomments) == null || y.registerCodeMirror(m), (b = a.provider) == null || b.watchCollabolators(a.setUsers), t.onSync((w) => V_t(m, w)), () => { + a.opts.enabled && (a.provider.disconnect(), a.ydoc.destroy()), m.destroy(); }; }, [a.ready]), Bt` - <${Hce} className="myst-main-editor" ref=${f} $mode=${n} id="${e}-editor"> - ${a.opts.commentsEnabled && !a.error && Bt`<${$_t} ycomments=${a.ycomments} collaboration=${a.opts} />`} - ${a.opts.commentsEnabled && Bt`<${S_e} style="display: none" className="myst-add-suggestion" title="Suggest Changes"> - edit + <${Xce} className="myst-main-editor" ref=${f} $mode=${n} id="${e}-editor"> + ${a.opts.commentsEnabled && !a.error && Bt`<${B_t} ycomments=${a.ycomments} collaboration=${a.opts} />`} + ${a.opts.commentsEnabled && Bt`<${T_e} style="display: none" className="myst-add-suggestion" title="Suggest Changes"> + edit `} `; -}, Xce = er.div` +}, Zce = er.div` background-color: white; padding: 20px; box-sizing: border-box; @@ -49188,10 +49210,10 @@ const L_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM justify-content: center; } `; -Xce.defaultProps = { +Zce.defaultProps = { className: "myst-preview" }; -const U_t = er.div` +const q_t = er.div` position: absolute; width: 5px; background-color: var(--blue-200); @@ -49229,31 +49251,31 @@ function d0(t, e, r, n, i, s) { } if (l == 1 || u == 1) return [new Jn(e, r, i, s)]; - let h = Kce(t, e, r, n, i, s); + let h = Jce(t, e, r, n, i, s); if (h) { let [f, d, p] = h; return d0(t, e, f, n, i, d).concat(d0(t, f + p, r, n, d + p, s)); } - return q_t(t, e, r, n, i, s); + return Q_t(t, e, r, n, i, s); } let Ov = 1e9; -function q_t(t, e, r, n, i, s) { +function Q_t(t, e, r, n, i, s) { let a = r - e, o = s - i; if (Ov < 1e9 && Math.min(a, o) > Ov * 16) - return Math.min(a, o) > Ov * 64 ? [new Jn(e, r, i, s)] : lQ(t, e, r, n, i, s); + return Math.min(a, o) > Ov * 64 ? [new Jn(e, r, i, s)] : cQ(t, e, r, n, i, s); let l = Math.ceil((a + o) / 2); - i_.reset(l), s_.reset(l); - let u = (p, g) => t.charCodeAt(e + p) == n.charCodeAt(i + g), h = (p, g) => t.charCodeAt(r - p - 1) == n.charCodeAt(s - g - 1), f = (a - o) % 2 != 0 ? s_ : null, d = f ? null : i_; + s_.reset(l), a_.reset(l); + let u = (p, g) => t.charCodeAt(e + p) == n.charCodeAt(i + g), h = (p, g) => t.charCodeAt(r - p - 1) == n.charCodeAt(s - g - 1), f = (a - o) % 2 != 0 ? a_ : null, d = f ? null : s_; for (let p = 0; p < l; p++) { if (p > Ov) - return lQ(t, e, r, n, i, s); - let g = i_.advance(p, a, o, l, f, !1, u) || s_.advance(p, a, o, l, d, !0, h); + return cQ(t, e, r, n, i, s); + let g = s_.advance(p, a, o, l, f, !1, u) || a_.advance(p, a, o, l, d, !0, h); if (g) - return Q_t(t, e, r, e + g[0], n, i, s, i + g[1]); + return Y_t(t, e, r, e + g[0], n, i, s, i + g[1]); } return [new Jn(e, r, i, s)]; } -class Zce { +class jce { constructor() { this.vec = []; } @@ -49289,12 +49311,12 @@ class Zce { return null; } } -const i_ = /* @__PURE__ */ new Zce(), s_ = /* @__PURE__ */ new Zce(); -function Q_t(t, e, r, n, i, s, a, o) { +const s_ = /* @__PURE__ */ new jce(), a_ = /* @__PURE__ */ new jce(); +function Y_t(t, e, r, n, i, s, a, o) { let l = !1; return !a1(t, n) && ++n == r && (l = !0), !a1(i, o) && ++o == a && (l = !0), l ? [new Jn(e, r, s, a)] : d0(t, e, n, i, s, o).concat(d0(t, n, r, i, o, a)); } -function jce(t, e) { +function Kce(t, e) { let r = 1, n = Math.min(t, e); for (; r < n; ) r = r << 1; @@ -49303,7 +49325,7 @@ function jce(t, e) { function gN(t, e, r, n, i, s) { if (e == r || e == s || t.charCodeAt(e) != n.charCodeAt(i)) return 0; - let a = jce(r - e, s - i); + let a = Kce(r - e, s - i); for (let o = e, l = i; ; ) { let u = o + a, h = l + a; if (u > r || h > s || t.slice(o, u) != n.slice(l, h)) { @@ -49320,7 +49342,7 @@ function gN(t, e, r, n, i, s) { function mN(t, e, r, n, i, s) { if (e == r || i == s || t.charCodeAt(r - 1) != n.charCodeAt(s - 1)) return 0; - let a = jce(r - e, s - i); + let a = Kce(r - e, s - i); for (let o = r, l = s; ; ) { let u = o - a, h = l - a; if (u < e || h < i || t.slice(u, o) != n.slice(h, l)) { @@ -49334,7 +49356,7 @@ function mN(t, e, r, n, i, s) { } } } -function gL(t, e, r, n, i, s, a, o) { +function mL(t, e, r, n, i, s, a, o) { let l = n.slice(i, s), u = null; for (; ; ) { if (u || a < o) @@ -49356,35 +49378,35 @@ function gL(t, e, r, n, i, s, a, o) { a = a >> 1; } } -function Kce(t, e, r, n, i, s) { +function Jce(t, e, r, n, i, s) { let a = r - e, o = s - i; if (a < o) { - let l = Kce(n, i, s, t, e, r); + let l = Jce(n, i, s, t, e, r); return l && [l[1], l[0], l[2]]; } - return a < 4 || o * 2 < a ? null : gL(t, e, r, n, i, s, Math.floor(a / 4), -1); + return a < 4 || o * 2 < a ? null : mL(t, e, r, n, i, s, Math.floor(a / 4), -1); } -function lQ(t, e, r, n, i, s) { +function cQ(t, e, r, n, i, s) { let a = r - e, o = s - i, l; if (a < o) { - let d = gL(n, i, s, t, e, r, Math.floor(a / 6), 50); + let d = mL(n, i, s, t, e, r, Math.floor(a / 6), 50); l = d && [d[1], d[0], d[2]]; } else - l = gL(t, e, r, n, i, s, Math.floor(o / 6), 50); + l = mL(t, e, r, n, i, s, Math.floor(o / 6), 50); if (!l) return [new Jn(e, r, i, s)]; let [u, h, f] = l; return d0(t, e, u, n, i, h).concat(d0(t, u + f, r, n, h + f, s)); } -function Jce(t, e) { +function eue(t, e) { for (let r = 1; r < t.length; r++) { let n = t[r - 1], i = t[r]; n.toA > i.fromA - e && n.toB > i.fromB - e && (t[r - 1] = new Jn(n.fromA, i.toA, n.fromB, i.toB), t.splice(r--, 1)); } } -function Y_t(t, e, r) { +function W_t(t, e, r) { for (; ; ) { - Jce(r, 1); + eue(r, 1); let n = !1; for (let i = 0; i < r.length; i++) { let s = r[i], a, o; @@ -49403,63 +49425,63 @@ function Y_t(t, e, r) { } return r; } -function W_t(t, e, r) { +function G_t(t, e, r) { for (let n = 0, i = 0; i < t.length; i++) { let s = t[i], a = s.toA - s.fromA, o = s.toB - s.fromB; if (a && o || a > 3 || o > 3) { - let l = i == t.length - 1 ? e.length : t[i + 1].fromA, u = s.fromA - n, h = l - s.toA, f = uQ(e, s.fromA, Math.min(u, 5)), d = cQ(e, s.toA, Math.min(h, 5)), p = s.fromA - f, g = d - s.toA; + let l = i == t.length - 1 ? e.length : t[i + 1].fromA, u = s.fromA - n, h = l - s.toA, f = hQ(e, s.fromA, Math.min(u, 5)), d = uQ(e, s.toA, Math.min(h, 5)), p = s.fromA - f, g = d - s.toA; if (!a || !o) { let m = Math.max(a, o), [v, y, b] = a ? [e, s.fromA, s.toA] : [r, s.fromB, s.toB], w, O; - p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new Jn(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = cQ(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new Jn(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = uQ(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = G_t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new Jn(w, w + a, s.fromB - O, s.toB - O)); + p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new Jn(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = uQ(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new Jn(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = hQ(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = H_t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new Jn(w, w + a, s.fromB - O, s.toB - O)); } (p || g) && (s = t[i] = new Jn(s.fromA - p, s.toA + g, s.fromB - p, s.toB + g)), n = s.toA; } } - return Jce(t, 3), t; + return eue(t, 3), t; } let Wd; try { Wd = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}]", "u"); } catch { } -function eue(t) { +function tue(t) { return t > 48 && t < 58 || t > 64 && t < 91 || t > 96 && t < 123; } -function tue(t, e) { +function rue(t, e) { if (e == t.length) return 0; let r = t.charCodeAt(e); - return r < 192 ? eue(r) ? 1 : 0 : Wd ? !nue(r) || e == t.length - 1 ? Wd.test(String.fromCharCode(r)) ? 1 : 0 : Wd.test(t.slice(e, e + 2)) ? 2 : 0 : 0; + return r < 192 ? tue(r) ? 1 : 0 : Wd ? !iue(r) || e == t.length - 1 ? Wd.test(String.fromCharCode(r)) ? 1 : 0 : Wd.test(t.slice(e, e + 2)) ? 2 : 0 : 0; } -function rue(t, e) { +function nue(t, e) { if (!e) return 0; let r = t.charCodeAt(e - 1); - return r < 192 ? eue(r) ? 1 : 0 : Wd ? !iue(r) || e == 1 ? Wd.test(String.fromCharCode(r)) ? 1 : 0 : Wd.test(t.slice(e - 2, e)) ? 2 : 0 : 0; + return r < 192 ? tue(r) ? 1 : 0 : Wd ? !sue(r) || e == 1 ? Wd.test(String.fromCharCode(r)) ? 1 : 0 : Wd.test(t.slice(e - 2, e)) ? 2 : 0 : 0; } -function cQ(t, e, r) { - if (e == t.length || !rue(t, e)) +function uQ(t, e, r) { + if (e == t.length || !nue(t, e)) return e; for (let n = e, i = e + r; ; ) { - let s = tue(t, n); + let s = rue(t, n); if (!s) return n; if (n += s, n > i) return e; } } -function uQ(t, e, r) { - if (!e || !tue(t, e)) +function hQ(t, e, r) { + if (!e || !rue(t, e)) return e; for (let n = e, i = e - r; ; ) { - let s = rue(t, n); + let s = nue(t, n); if (!s) return n; if (n -= s, n < i) return e; } } -function G_t(t, e, r) { +function H_t(t, e, r) { for (let n = e, i = e - r; ; ) { let s = n ? t.charCodeAt(n - 1) : 10; if (s == 10) @@ -49468,26 +49490,26 @@ function G_t(t, e, r) { return e; } } -const nue = (t) => t >= 55296 && t <= 56319, iue = (t) => t >= 56320 && t <= 57343; +const iue = (t) => t >= 55296 && t <= 56319, sue = (t) => t >= 56320 && t <= 57343; function a1(t, e) { - return !e || e == t.length || !nue(t.charCodeAt(e - 1)) || !iue(t.charCodeAt(e)); + return !e || e == t.length || !iue(t.charCodeAt(e - 1)) || !sue(t.charCodeAt(e)); } -function H_t(t, e, r) { +function X_t(t, e, r) { var n; - return Ov = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, Y_t(t, e, d0(t, 0, t.length, e, 0, e.length)); + return Ov = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, W_t(t, e, d0(t, 0, t.length, e, 0, e.length)); } -function sue(t, e, r) { - return W_t(H_t(t, e, r), t, e); +function aue(t, e, r) { + return G_t(X_t(t, e, r), t, e); } const dc = /* @__PURE__ */ _t.define({ combine: (t) => t[0] -}), mL = /* @__PURE__ */ Zt.define(), o1 = /* @__PURE__ */ $n.define({ +}), vL = /* @__PURE__ */ Zt.define(), o1 = /* @__PURE__ */ $n.define({ create(t) { return null; }, update(t, e) { for (let r of e.effects) - r.is(mL) && (t = r.value); + r.is(vL) && (t = r.value); return t; } }); @@ -49505,39 +49527,39 @@ class sg { return Math.max(this.fromB, this.toB - 1); } static build(e, r, n) { - return aue(sue(e.toString(), r.toString(), n), e, r, 0, 0); + return oue(aue(e.toString(), r.toString(), n), e, r, 0, 0); } static updateA(e, r, n, i, s) { - return gQ(pQ(e, i, !0, n.length), e, r, n, s); + return mQ(gQ(e, i, !0, n.length), e, r, n, s); } static updateB(e, r, n, i, s) { - return gQ(pQ(e, i, !1, r.length), e, r, n, s); + return mQ(gQ(e, i, !1, r.length), e, r, n, s); } } -function hQ(t, e, r, n) { +function fQ(t, e, r, n) { let i = r.lineAt(t), s = n.lineAt(e); return i.to == t && s.to == e && t < r.length && e < n.length ? [t + 1, e + 1] : [i.from, s.from]; } -function fQ(t, e, r, n) { +function dQ(t, e, r, n) { let i = r.lineAt(t), s = n.lineAt(e); return i.from == t && s.from == e ? [t, e] : [i.to + 1, s.to + 1]; } -function aue(t, e, r, n, i) { +function oue(t, e, r, n, i) { let s = []; for (let a = 0; a < t.length; a++) { - let o = t[a], [l, u] = hQ(o.fromA + n, o.fromB + i, e, r), [h, f] = fQ(o.toA + n, o.toB + i, e, r), d = [o.offset(-l + n, -u + i)]; + let o = t[a], [l, u] = fQ(o.fromA + n, o.fromB + i, e, r), [h, f] = dQ(o.toA + n, o.toB + i, e, r), d = [o.offset(-l + n, -u + i)]; for (; a < t.length - 1; ) { - let p = t[a + 1], [g, m] = hQ(p.fromA + n, p.fromB + i, e, r); + let p = t[a + 1], [g, m] = fQ(p.fromA + n, p.fromB + i, e, r); if (g > h + 1 && m > f + 1) break; - d.push(p.offset(-l + n, -u + i)), [h, f] = fQ(p.toA + n, p.toB + i, e, r), a++; + d.push(p.offset(-l + n, -u + i)), [h, f] = dQ(p.toA + n, p.toB + i, e, r), a++; } s.push(new sg(d, l, Math.max(l, h), u, Math.max(u, f))); } return s; } const sO = 1e3; -function dQ(t, e, r, n) { +function pQ(t, e, r, n) { let i = 0, s = t.length; for (; ; ) { if (i == s) { @@ -49555,11 +49577,11 @@ function dQ(t, e, r, n) { return n ? [o.fromA, o.fromB] : [o.toA, o.toB]; } } -function pQ(t, e, r, n) { +function gQ(t, e, r, n) { let i = []; return e.iterChangedRanges((s, a, o, l) => { let u = 0, h = r ? e.length : n, f = 0, d = r ? n : e.length; - s > sO && ([u, f] = dQ(t, s - sO, r, !0)), a < e.length - sO && ([h, d] = dQ(t, a + sO, r, !1)); + s > sO && ([u, f] = pQ(t, s - sO, r, !0)), a < e.length - sO && ([h, d] = pQ(t, a + sO, r, !1)); let p = l - o - (a - s), g, [m, v] = r ? [p, 0] : [0, p]; i.length && (g = i[i.length - 1]).toA >= u ? i[i.length - 1] = { fromA: g.fromA, @@ -49571,7 +49593,7 @@ function pQ(t, e, r, n) { } : i.push({ fromA: u, toA: h, fromB: f, toB: d, diffA: m, diffB: v }); }), i; } -function gQ(t, e, r, n, i) { +function mQ(t, e, r, n, i) { if (!t.length) return e; let s = 0, a = 0, o = 0, l = []; @@ -49585,7 +49607,7 @@ function gQ(t, e, r, n, i) { break; s++; } - for (let g of aue(sue(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) + for (let g of oue(aue(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) l.push(g); a += u.diffA, o += u.diffB; } @@ -49593,47 +49615,47 @@ function gQ(t, e, r, n, i) { l.push(e[s++].offset(a, o)); return l; } -const oue = /* @__PURE__ */ an.fromClass(class { +const lue = /* @__PURE__ */ an.fromClass(class { constructor(t) { - ({ deco: this.deco, gutter: this.gutter } = yQ(t)); + ({ deco: this.deco, gutter: this.gutter } = bQ(t)); } update(t) { - (t.docChanged || t.viewportChanged || X_t(t.startState, t.state) || Z_t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = yQ(t.view)); + (t.docChanged || t.viewportChanged || Z_t(t.startState, t.state) || j_t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = bQ(t.view)); } }, { decorations: (t) => t.deco -}), aO = /* @__PURE__ */ zl.low(/* @__PURE__ */ $S({ +}), aO = /* @__PURE__ */ zl.low(/* @__PURE__ */ BS({ class: "cm-changeGutter", markers: (t) => { var e; - return ((e = t.plugin(oue)) === null || e === void 0 ? void 0 : e.gutter) || Er.empty; + return ((e = t.plugin(lue)) === null || e === void 0 ? void 0 : e.gutter) || Er.empty; } })); -function X_t(t, e) { +function Z_t(t, e) { return t.field(o1, !1) != e.field(o1, !1); } -function Z_t(t, e) { +function j_t(t, e) { return t.facet(dc) != e.facet(dc); } -const mQ = /* @__PURE__ */ Et.line({ class: "cm-changedLine" }), j_t = /* @__PURE__ */ Et.mark({ class: "cm-changedText" }), K_t = /* @__PURE__ */ Et.mark({ tagName: "ins", class: "cm-insertedLine" }), J_t = /* @__PURE__ */ Et.mark({ tagName: "del", class: "cm-deletedLine" }), vQ = /* @__PURE__ */ new class extends Uo { +const vQ = /* @__PURE__ */ Et.line({ class: "cm-changedLine" }), K_t = /* @__PURE__ */ Et.mark({ class: "cm-changedText" }), J_t = /* @__PURE__ */ Et.mark({ tagName: "ins", class: "cm-insertedLine" }), eAt = /* @__PURE__ */ Et.mark({ tagName: "del", class: "cm-deletedLine" }), yQ = /* @__PURE__ */ new class extends Uo { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } }(); -function eAt(t, e, r, n, i, s) { +function tAt(t, e, r, n, i, s) { let a = r ? t.fromA : t.fromB, o = r ? t.toA : t.toB, l = 0; if (a != o) { - i.add(a, a, mQ), i.add(a, o, r ? J_t : K_t), s && s.add(a, a, vQ); + i.add(a, a, vQ), i.add(a, o, r ? eAt : J_t), s && s.add(a, a, yQ); for (let u = e.iterRange(a, o - 1), h = a; !u.next().done; ) { if (u.lineBreak) { - h++, i.add(h, h, mQ), s && s.add(h, h, vQ); + h++, i.add(h, h, vQ), s && s.add(h, h, yQ); continue; } let f = h + u.value.length; if (n) for (; l < t.changes.length; ) { let d = t.changes[l], p = a + (r ? d.fromA : d.fromB), g = a + (r ? d.toA : d.toB), m = Math.max(h, p), v = Math.min(f, g); - if (m < v && i.add(m, v, j_t), g < f) + if (m < v && i.add(m, v, K_t), g < f) l++; else break; @@ -49642,16 +49664,16 @@ function eAt(t, e, r, n, i, s) { } } } -function yQ(t) { +function bQ(t) { let e = t.state.field(o1), { side: r, highlightChanges: n, markGutter: i } = t.state.facet(dc), s = r == "a", a = new Hi(), o = i ? new Hi() : null, { from: l, to: u } = t.viewport; for (let h of e) { if ((s ? h.fromA : h.fromB) >= u) break; - (s ? h.toA : h.toB) > l && eAt(h, t.state.doc, s, n, a, o); + (s ? h.toA : h.toB) > l && tAt(h, t.state.doc, s, n, a, o); } return { deco: a.finish(), gutter: o && o.finish() }; } -class oO extends za { +class oO extends Va { constructor(e) { super(), this.height = e; } @@ -49672,19 +49694,19 @@ class oO extends za { return !1; } } -const rk = /* @__PURE__ */ Zt.define({ +const nk = /* @__PURE__ */ Zt.define({ map: (t, e) => t.map(e) }), kv = /* @__PURE__ */ $n.define({ create: () => Et.none, update: (t, e) => { for (let r of e.effects) - if (r.is(rk)) + if (r.is(nk)) return r.value; return t.map(e.changes); }, provide: (t) => ht.decorations.from(t) }), lO = 0.01; -function tAt(t, e, r) { +function rAt(t, e, r) { let n = new Hi(), i = new Hi(), s = t.state.field(kv).iter(), a = e.state.field(kv).iter(), o = 0, l = 0, u = 0, h = 0; for (let g = 0; ; g++) { let m = g < r.length ? r[g] : null; @@ -49722,12 +49744,12 @@ function tAt(t, e, r) { side: 1 })); let d = n.finish(), p = i.finish(); - Er.eq([d], [t.state.field(kv)]) || t.dispatch({ effects: rk.of(d) }), Er.eq([p], [e.state.field(kv)]) || e.dispatch({ effects: rk.of(p) }); + Er.eq([d], [t.state.field(kv)]) || t.dispatch({ effects: nk.of(d) }), Er.eq([p], [e.state.field(kv)]) || e.dispatch({ effects: nk.of(p) }); } -const vL = /* @__PURE__ */ Zt.define({ +const yL = /* @__PURE__ */ Zt.define({ map: (t, e) => e.mapPos(t) }); -class rAt extends za { +class nAt extends Va { constructor(e) { super(), this.lines = e; } @@ -49738,9 +49760,9 @@ class rAt extends za { let r = document.createElement("div"); return r.className = "cm-collapsedLines", r.textContent = "\u299A " + e.state.phrase("$ unchanged lines", this.lines) + " \u299A", r.addEventListener("click", (n) => { let i = e.posAtDOM(n.target); - e.dispatch({ effects: vL.of(i) }); + e.dispatch({ effects: yL.of(i) }); let { side: s, sibling: a } = e.state.facet(dc); - a && a().dispatch({ effects: vL.of(nAt(i, e.state.field(o1), s == "a")) }); + a && a().dispatch({ effects: yL.of(iAt(i, e.state.field(o1), s == "a")) }); }), r; } ignoreEvent(e) { @@ -49750,7 +49772,7 @@ class rAt extends za { return 27; } } -function nAt(t, e, r) { +function iAt(t, e, r) { let n = 0, i = 0; for (let s = 0; ; s++) { let a = s < e.length ? e[s] : null; @@ -49759,27 +49781,27 @@ function nAt(t, e, r) { [n, i] = r ? [a.toA, a.toB] : [a.toB, a.toA]; } } -const iAt = /* @__PURE__ */ $n.define({ +const sAt = /* @__PURE__ */ $n.define({ create(t) { return Et.none; }, update(t, e) { t = t.map(e.changes); for (let r of e.effects) - r.is(vL) && (t = t.update({ filter: (n) => n != r.value })); + r.is(yL) && (t = t.update({ filter: (n) => n != r.value })); return t; }, provide: (t) => ht.decorations.from(t) }); -function bQ({ margin: t = 3, minSize: e = 4 }) { - return iAt.init((r) => sAt(r, t, e)); +function xQ({ margin: t = 3, minSize: e = 4 }) { + return sAt.init((r) => aAt(r, t, e)); } -function sAt(t, e, r) { +function aAt(t, e, r) { let n = new Hi(), i = t.facet(dc).side == "a", s = t.field(o1), a = 1; for (let o = 0; ; o++) { let l = o < s.length ? s[o] : null, u = o ? a + e : 1, h = l ? t.doc.lineAt(i ? l.fromA : l.fromB).number - 1 - e : t.doc.lines, f = h - u + 1; if (f >= r && n.add(t.doc.line(u).from, t.doc.line(h).to, Et.replace({ - widget: new rAt(f), + widget: new nAt(f), block: !0 })), !l) break; @@ -49787,7 +49809,7 @@ function sAt(t, e, r) { } return n.finish(); } -const aAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Iu({ +const oAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Iu({ ".cm-mergeView": { overflowY: "auto" }, @@ -49817,7 +49839,7 @@ const aAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Iu({ font: "inherit", cursor: "pointer" } -})), oAt = /* @__PURE__ */ ht.baseTheme({ +})), lAt = /* @__PURE__ */ ht.baseTheme({ ".cm-mergeView & .cm-scroller, .cm-mergeView &": { height: "auto !important", overflowY: "visible !important" @@ -49876,17 +49898,17 @@ const aAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Iu({ "&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter": { background: "#fa9" }, "&light.cm-merge-b .cm-changedLineGutter": { background: "#2b2" }, "&dark.cm-merge-b .cm-changedLineGutter": { background: "#8f8" } -}), xQ = /* @__PURE__ */ new D0(), cO = /* @__PURE__ */ new D0(); -class lAt { +}), wQ = /* @__PURE__ */ new D0(), cO = /* @__PURE__ */ new D0(); +class cAt { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let r = [ - zl.low(oue), + zl.low(lue), + lAt, oAt, - aAt, kv, ht.updateListener.of((f) => { - this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(rk))) && this.measure(); + this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(nk))) && this.measure(); }) ], n = [dc.of({ side: "a", @@ -49924,7 +49946,7 @@ class lAt { this.chunks = sg.build(i.doc, a.doc, this.diffConf); let o = [ o1.init(() => this.chunks), - xQ.of(e.collapseUnchanged ? bQ(e.collapseUnchanged) : []) + wQ.of(e.collapseUnchanged ? xQ(e.collapseUnchanged) : []) ]; i = i.update({ effects: Zt.appendConfig.of(o) }).state, a = a.update({ effects: Zt.appendConfig.of(o) }).state, this.dom = document.createElement("div"), this.dom.className = "cm-mergeView", this.editorDOM = this.dom.appendChild(document.createElement("div")), this.editorDOM.className = "cm-mergeViewEditors"; let l = e.orientation || "a-b", u = document.createElement("div"); @@ -49945,9 +49967,9 @@ class lAt { dispatch(e, r) { if (e.some((n) => n.docChanged)) { let n = e[e.length - 1], i = e.reduce((a, o) => a.compose(o.changes), ai.empty(e[0].startState.doc.length)); - this.chunks = r == this.a ? sg.updateA(this.chunks, n.newDoc, this.b.state.doc, i, this.diffConf) : sg.updateB(this.chunks, this.a.state.doc, n.newDoc, i, this.diffConf), r.update([...e, n.state.update({ effects: mL.of(this.chunks) })]); + this.chunks = r == this.a ? sg.updateA(this.chunks, n.newDoc, this.b.state.doc, i, this.diffConf) : sg.updateB(this.chunks, this.a.state.doc, n.newDoc, i, this.diffConf), r.update([...e, n.state.update({ effects: vL.of(this.chunks) })]); let s = r == this.a ? this.b : this.a; - s.update([s.state.update({ effects: mL.of(this.chunks) })]), this.scheduleMeasure(); + s.update([s.state.update({ effects: vL.of(this.chunks) })]), this.scheduleMeasure(); } else r.update(e); } @@ -49977,7 +49999,7 @@ class lAt { ])); } if (i) { - let o = xQ.reconfigure(e.collapseUnchanged ? bQ(e.collapseUnchanged) : []); + let o = wQ.reconfigure(e.collapseUnchanged ? xQ(e.collapseUnchanged) : []); s.push(o), a.push(o); } this.a.dispatch({ effects: s }), this.b.dispatch({ effects: a }); @@ -49996,7 +50018,7 @@ class lAt { } } measure() { - tAt(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); + rAt(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); } updateRevertButtons() { let e = this.revertDOM, r = e.firstChild, n = this.a.viewport, i = this.b.viewport; @@ -50008,11 +50030,11 @@ class lAt { continue; let o = this.a.lineBlockAt(a.fromA).top + "px"; for (; r && +r.dataset.chunk < s; ) - r = wQ(r); + r = OQ(r); r && r.dataset.chunk == String(s) ? (r.style.top != o && (r.style.top = o), r = r.nextSibling) : e.insertBefore(this.renderRevertButton(o, s), r); } for (; r; ) - r = wQ(r); + r = OQ(r); } renderRevertButton(e, r) { let n; @@ -50041,11 +50063,11 @@ class lAt { this.a.destroy(), this.b.destroy(), this.measuring > -1 && (this.dom.ownerDocument.defaultView || window).cancelAnimationFrame(this.measuring), this.dom.remove(); } } -function wQ(t) { +function OQ(t) { let e = t.nextSibling; return t.remove(), e; } -const cAt = er.div` +const uAt = er.div` display: grid; grid-auto-flow: column; grid-template-rows: max-content; @@ -50053,16 +50075,16 @@ const cAt = er.div` height: 100%; scrollbar-width: thin; overflow-y: auto; -`, OQ = er(Hce)` +`, kQ = er(Xce)` overflow-y: visible; display: block; -`, uAt = ({ +`, hAt = ({ old: t, current: e, root: r }) => { const n = Kh.basicSetup().readonly().create(); - return new lAt({ + return new cAt({ a: { doc: t, extensions: n @@ -50074,31 +50096,31 @@ const cAt = er.div` orientation: "b-a", root: r }); -}, lue = ({ +}, cue = ({ oldText: t, text: e, root: r }) => { - let n = io(null), i = io(null), s = io(null); - return Qi(() => { + let n = Ra(null), i = Ra(null), s = Ra(null); + return _i(() => { if (s.current) return !1; - s.current = uAt({ + s.current = hAt({ old: t, current: e.get(), root: r }), n.current.appendChild(s.current.b.dom), i.current.appendChild(s.current.a.dom); - }, []), Bt` <${cAt}> - <${OQ} ref=${n} /> - <${OQ} ref=${i} /> + }, []), Bt` <${uAt}> + <${kQ} ref=${n} /> + <${kQ} ref=${i} /> `; }; -lue.defaultProps = { +cue.defaultProps = { className: "diff" }; -const hAt = er.div` +const fAt = er.div` display: flex; -`, fAt = er(P0)` +`, dAt = er(P0)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--navbar-bg)"}; width: 40px; @@ -50119,15 +50141,15 @@ const hAt = er.div` &:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; } -`, dAt = ({ +`, pAt = ({ buttons: t, initialClickedId: e = 2 }) => { const [r, n] = Rn(e); - return Qi(() => { + return _i(() => { t[e].action(); - }, [e]), Bt` <${hAt}> - ${t.map((i, s) => Bt` <${fAt} + }, [e]), Bt` <${fAt}> + ${t.map((i, s) => Bt` <${dAt} className="icon radio-icon" type="button" key=${i.id} @@ -50141,7 +50163,7 @@ const hAt = er.div` ${typeof i.icon == "function" ? Bt`<${i.icon} />` : Bt``} `)} `; -}, a_ = 4, cue = er.div` +}, o_ = 4, uue = er.div` min-width: ${(t) => t.n * 35}px; .avatar { @@ -50170,30 +50192,30 @@ const hAt = er.div` background-color: var(--icon-bg); } } -`, uue = ({ +`, hue = ({ login: t, color: e, avatarUrl: r, userUrl: n }) => Bt``, pAt = ({ + />`, gAt = ({ n: t, usernames: e -}) => Bt` <${cue} title=${e}> +}) => Bt` <${uue} title=${e}> +${t} - `, gAt = ({ + `, mAt = ({ users: t }) => { - const e = t.length <= a_ ? t.length : 3; - return Bt` <${cue} n=${Math.min(t.length, a_)}> - ${e < t.length ? Bt`<${pAt} + const e = t.length <= o_ ? t.length : 3; + return Bt` <${uue} n=${Math.min(t.length, o_)}> + ${e < t.length ? Bt`<${gAt} n=${t.length - e} - usernames=${t.filter((r, n) => n >= a_).map((r) => r.login).join(", ")} + usernames=${t.filter((r, n) => n >= o_).map((r) => r.login).join(", ")} />` : ""} - ${t.slice(0, e).map((r) => Bt`<${uue} ...${r} />`)} + ${t.slice(0, e).map((r) => Bt`<${hue} ...${r} />`)} `; -}, mAt = er.section` +}, vAt = er.section` z-index: 2; display: flex; flex-direction: column; @@ -50208,13 +50230,13 @@ const hAt = er.div` background-color: var(--icon-bg); border: 1px solid var(--icon-border); border-radius: var(--border-radius); -`, vAt = er.h3` +`, yAt = er.h3` color: var(--gray-900); -`, yAt = er.div` +`, bAt = er.div` display: flex; align-items: center; justify-content: space-between; -`, kQ = er(P0)` +`, SQ = er(P0)` padding: 0 10px; margin-top: 0px; @@ -50222,25 +50244,25 @@ const hAt = er.div` background-color: ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; border: 1px solid ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; } -`, bAt = ({ +`, xAt = ({ changeDocumentTemplate: t, selectedTemplate: e, closeModal: r }) => Bt` - <${mAt}> - <${vAt}>Are you sure you want to change the current template? - <${yAt}> - <${kQ} type="button" onClick=${() => t(e)}>✓ Yes - <${kQ} $negative type="button" onClick=${r}>x Cancel + <${vAt}> + <${yAt}>Are you sure you want to change the current template? + <${bAt}> + <${SQ} type="button" onClick=${() => t(e)}>✓ Yes + <${SQ} $negative type="button" onClick=${r}>x Cancel - `, xAt = er.div` + `, wAt = er.div` position: absolute; ${(t) => t.$orientation == "left" && Uv` left: 0; `} transform: ${(t) => t.$orientation == "left" ? "translateX(-105%)" : "translate(-65%, 130%)"}; -`, wAt = er.div` +`, OAt = er.div` position: relative; background: var(--alert); color: var(--icon-color); @@ -50273,12 +50295,12 @@ const hAt = er.div` `} transform: ${(t) => t.$orientation == "left" ? "translate(50%, -50%)" : "translate(-50%, -100%)"}; } -`, OAt = ({ +`, kAt = ({ tooltipOrientation: t, errorMessage: e -}) => Bt` <${xAt} $orientation=${t}> - <${wAt} $orientation=${t}> ${e} - `, kAt = er.div` +}) => Bt` <${wAt} $orientation=${t}> + <${OAt} $orientation=${t}> ${e} + `, SAt = er.div` display: none; margin-left: 5px; margin-right: 5px; @@ -50290,19 +50312,19 @@ const hAt = er.div` background-color: var(--icon-bg); width: 210%; z-index: 20; -`, SQ = () => Bt` +`, TQ = () => Bt` - `, TQ = er(P0)` + `, CQ = er(P0)` width: 90%; color: var(--icon-color); border: 1px solid var(--icon-border); padding: 0 10px 0 10px; margin-top: 0px; text-wrap: wrap; -`, SAt = er.div` +`, TAt = er.div` position: relative; &:hover { div { @@ -50310,16 +50332,16 @@ const hAt = er.div` flex-direction: column; } } -`, TAt = er.div` +`, CAt = er.div` display: flex; flex-direction: row-reverse; border: 1px solid var(--gray-900); width: inherit; -`, CAt = er.div` +`, EAt = er.div` position: absolute; width: 100%; padding-top: 5px; -`, EAt = (t) => { +`, _At = (t) => { const e = ["id", "templatetext"]; for (const r in t) { for (let n of e) @@ -50327,7 +50349,7 @@ const hAt = er.div` t[r].errorMessage && console.error(t[r].errorMessage); } return t; -}, _At = ({ +}, AAt = ({ text: t, templatelist: e }) => { @@ -50354,42 +50376,42 @@ const hAt = er.div` for (const O in w) { const S = w[O].templatetext; await y(S).then((C) => w[O].templatetext = C).catch((C) => { - var T, L; - return (L = (T = w[O]).errorMessage) != null ? L : T.errorMessage = C.message; + var T, A; + return (A = (T = w[O]).errorMessage) != null ? A : T.errorMessage = C.message; }); } return w; }; - return Qi(() => v(e).then(EAt).then(b).then(s), []), d.error ? null : Object.keys(i).length == 0 ? Bt` <${yL} + return _i(() => v(e).then(_At).then(b).then(s), []), d.error ? null : Object.keys(i).length == 0 ? Bt` <${bL} type="button" title="Templates" template=${r} onMouseEnter=${() => f(!0)} onMouseLeave=${() => f(!1)} > - <${SQ} /> + <${TQ} /> ` : Bt` - ${l && Bt`<${bAt} + ${l && Bt`<${xAt} selectedTemplate=${a} closeModal=${() => { u(!1), o(!1); }} changeDocumentTemplate=${m} />`} - <${SAt}> - <${yL} className="icon" title="Templates" type="button"><${SQ} /> - <${CAt}> - <${kAt}> + <${TAt}> + <${bL} className="icon" title="Templates" type="button"><${TQ} /> + <${EAt}> + <${SAt}> ${Object.keys(i).map((w) => Bt` ${i[w].errorMessage ? Bt` - <${TAt}> - <${h === w && OAt} tooltipOrientation="left" errorMessage="${i[w].errorMessage}" /> - <${TQ} type="button" onMouseEnter=${() => f(w)} onMouseLeave=${() => f(!1)} + <${CAt}> + <${h === w && kAt} tooltipOrientation="left" errorMessage="${i[w].errorMessage}" /> + <${CQ} type="button" onMouseEnter=${() => f(w)} onMouseLeave=${() => f(!1)} >${i[w].id} ` : Bt` - <${TQ} + <${CQ} type="button" onClick=${() => { u(!0), o(w); @@ -50402,7 +50424,7 @@ const hAt = er.div` `; -}, AAt = (t) => [...t.matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), LAt = er.div` +}, LAt = (t) => [...t.matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), RAt = er.div` z-index: 10; position: sticky; top: 0; @@ -50440,7 +50462,7 @@ const hAt = er.div` display: none; } } -`, RAt = er.div` +`, MAt = er.div` font-size: large; white-space: nowrap; margin-left: 10px; @@ -50450,31 +50472,31 @@ const hAt = er.div` a { color: var(--blue-500); } -`, MAt = er(P0)` +`, DAt = er(P0)` padding: 0px 15px; margin: 5px; pointer-events: none; background-color: var(--alert); border: none; width: fit-content; -`, yL = er(P0)` +`, bL = er(P0)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; border: ${(t) => t.active ? "1px solid var(--icon-main-active)" : "1px solid var(--icon-border)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--icon-bg)"}; margin: 5px; width: 40px; -`, DAt = () => Bt` +`, NAt = () => Bt` - `, NAt = () => Bt` + `, IAt = () => Bt` - `, IAt = () => Bt` + `, PAt = () => Bt` - `, PAt = () => Bt` + `, $At = () => Bt` - `, $At = () => Bt` + `, BAt = () => Bt` - `, BAt = () => Bt` + `, FAt = () => Bt` - `, FAt = () => Bt` + `, zAt = () => Bt` - `, zAt = () => Bt` + `, VAt = () => Bt` - `, VAt = () => Bt` + `, UAt = () => Bt` - `, UAt = { - fullscreen: DAt, - "copy-html": $At, - refresh: NAt, - "print-to-pdf": zAt -}, qAt = ({ + `, qAt = { + fullscreen: NAt, + "copy-html": BAt, + refresh: IAt, + "print-to-pdf": VAt +}, QAt = ({ alert: t, users: e, text: r, @@ -50551,57 +50573,57 @@ const hAt = er.div` collaboration: o, initialMode: l }) => { - const u = Nn(() => Tne.sanitize(AAt(a || ""), [])), h = Nn(() => { + const u = Nn(() => Cne.sanitize(LAt(a || ""), [])), h = Nn(() => { const g = [{ id: "source", tooltip: "Source", action: () => n("Source"), - icon: PAt + icon: $At }, { id: "preview", tooltip: "Preview", action: () => n("Preview"), - icon: IAt + icon: PAt }, { id: "both", tooltip: "Dual Pane", action: () => n("Both"), - icon: BAt + icon: FAt }, { id: "diff", tooltip: "Diff View", action: () => n("Diff"), - icon: FAt + icon: zAt }]; return o.resolvingCommentsEnabled && g.push({ id: "resolved", tooltip: "Resolved Comments", action: () => n("Resolved"), - icon: VAt + icon: UAt }), g; }, []), f = Nn(() => h.findIndex((g) => g.id[0].toUpperCase() + g.id.slice(1) == l), [h, l]), d = Nn(() => s.map((g) => ({ ...g, - icon: g.icon || UAt[g.id] + icon: g.icon || qAt[g.id] })).filter((g) => g.icon), []), p = Nn(() => s.filter((g) => g.text && g.id !== "template-manager"), []); - return Bt` <${LAt}> + return Bt` <${RAt}>
${d.map((g) => Bt` - <${yL} className="icon" type="button" key=${g.id} title=${g.tooltip} name=${g.id} onClick=${g.action}> + <${bL} className="icon" type="button" key=${g.id} title=${g.tooltip} name=${g.id} onClick=${g.action}> ${typeof g.icon == "function" ? Bt`<${g.icon} />` : Bt``} `)} - ${s.find((g) => g.id === "template-manager") && i && Bt`<${_At} text=${r} templatelist=${i} />`} + ${s.find((g) => g.id === "template-manager") && i && Bt`<${AAt} text=${r} templatelist=${i} />`}
- ${t && Bt`<${MAt}> ${t} `} - <${RAt} dangerouslySetInnerHTML=${{ + ${t && Bt`<${DAt}> ${t} `} + <${MAt} dangerouslySetInnerHTML=${{ __html: u }} /> - <${gAt} users=${e} /> + <${mAt} users=${e} /> ${p.map((g) => Bt`<${P0} type="button" onClick=${g.action}>${g.text}`)} - <${dAt} buttons=${h} initialClickedId=${f} /> + <${pAt} buttons=${h} initialClickedId=${f} /> `; }; -Ore.prototype.watchCollabolators = function(t) { +kre.prototype.watchCollabolators = function(t) { this.awareness.on("change", ({ added: e, removed: r @@ -50617,11 +50639,11 @@ Ore.prototype.watchCollabolators = function(t) { } }); }; -function QAt(t) { +function YAt(t) { if (!t.enabled) return {}; const e = Nn(() => new V1(), []), [r, n] = Rn(!1), [i, s] = Rn(!1), [a, o] = Rn(!1); - Qi(() => { + _i(() => { const f = console.error, d = (p) => p == null ? void 0 : p.includes("Caught error while handling a Yjs update"); console.error = (...p) => { d(p[0]) && o("Collaboration error occured. Please check browser logs and restart the MyST Editor"), f(...p); @@ -50629,11 +50651,11 @@ function QAt(t) { }, []); const l = Nn(() => { var d; - const f = new Ore((d = t.wsUrl) != null ? d : "ws://localhost:4444", t.room, e, { + const f = new kre((d = t.wsUrl) != null ? d : "ws://localhost:4444", t.room, e, { connect: !0, params: {}, WebSocketPolyfill: WebSocket, - awareness: new yre(e), + awareness: new bre(e), maxBackoffTime: 2500 }); return f.awareness.setLocalStateField("user", { @@ -50642,11 +50664,11 @@ function QAt(t) { }), f.ws.onerror = () => o(!0), f.on("sync", n), f.on("status", ({ status: p }) => s(p == "connected")), f; - }, []), u = Nn(() => e.getText("codemirror"), []), h = Nn(() => new TM(u, { + }, []), u = Nn(() => e.getText("codemirror"), []), h = Nn(() => new CM(u, { trackedOrigins: /* @__PURE__ */ new Set([l.doc.clientID, null]), ignoreRemoteMapChanges: !0 }), []); - return Qi(() => !l.ws && o(!0), [i]), { + return _i(() => !l.ws && o(!0), [i]), { provider: l, undoManager: h, ytext: u, @@ -50655,13 +50677,13 @@ function QAt(t) { ready: r && i }; } -function YAt(t, e, r, n) { +function WAt(t, e, r, n) { return !t || !e ? null : Nn(() => { const i = new Kv(t, e, r, n); return window.myst_editor.ycomments = i, i; }, []); } -const WAt = er.p` +const GAt = er.p` font-size: 16px; padding: 10px 6px; margin-bottom: 0; @@ -50676,35 +50698,35 @@ const WAt = er.p` & > span { display: ${(t) => t.orphaned ? "none" : "block"}; } -`, GAt = er.div` +`, HAt = er.div` background-color: color-mix(in srgb, ${(t) => t.color}, white); border: 2px solid ${(t) => t.color}; padding-top: 10px; margin-left: -1px; width: calc(100% - 3px); -`, HAt = er.div` +`, XAt = er.div` display: flex; justify-content: space-between; align-items: center; line-height: 22px; padding: 0 6px; -`, XAt = er.h2` +`, ZAt = er.h2` font-weight: bold; font-size: 12px; margin: 0; -`, ZAt = er.p` +`, jAt = er.p` font-size: 12px; font-weight: 400; line-height: 14px; margin: 0; margin-right: 25px; -`, jAt = er.p` +`, KAt = er.p` margin: 0; margin-top: 3px; font-size: 16px; line-height: 22px; font-weight: 400; -`, CQ = er.div` +`, EQ = er.div` display: flex; align-items: center; @@ -50716,17 +50738,17 @@ const WAt = er.p` position: absolute; transform: translateX(calc(-100% - 12px)); } -`, KAt = er.span` +`, JAt = er.span` display: block; background-color: color-mix(in srgb, ${(t) => t.color}, white); margin: 0; padding: 10px 6px; white-space: pre-wrap; -`, JAt = er.span` +`, e7t = er.span` position: absolute; transform: translateX(calc(-100% - 24px)); color: var(--gray-700); -`, e7t = er.span` +`, t7t = er.span` margin-right: 6px; display: block; display: flex; @@ -50737,7 +50759,7 @@ const WAt = er.p` &:hover div { display: flex !important; } -`, t7t = er.div` +`, r7t = er.div` align-items: center; position: absolute; background-color: var(--gray-200); @@ -50752,7 +50774,7 @@ const WAt = er.p` color: var(--red-500); font-weight: 700; } -`, EQ = er.button` +`, _Q = er.button` background-color: transparent; border: none; display: flex; @@ -50776,7 +50798,7 @@ const WAt = er.p` color: var(--gray-900); } } -`, r7t = () => Bt` +`, n7t = () => Bt` -`, n7t = () => Bt` +`, i7t = () => Bt` @@ -50805,7 +50827,7 @@ const WAt = er.p` -`, i7t = () => Bt` +`, s7t = () => Bt` -`, s7t = new Intl.RelativeTimeFormat("en", { +`, a7t = new Intl.RelativeTimeFormat("en", { style: "long" -}), a7t = ({ +}), o7t = ({ c: t, authors: e, ycomments: r, @@ -50825,7 +50847,7 @@ const WAt = er.p` const [i, s] = Rn({ amount: 0, unit: "second" - }), a = io(null), o = Nn(() => { + }), a = Ra(null), o = Nn(() => { const h = n.split(` `), f = []; for (let d = 0; d < h.length; d++) @@ -50858,44 +50880,44 @@ const WAt = er.p` unit: "year" }); } - Qi(() => (a.current = setInterval(l, 1e3), () => { + _i(() => (a.current = setInterval(l, 1e3), () => { clearInterval(a.current); }), []); const u = Nn(() => t.orphaned ? "RESTORE ORPHANED" : t.occupied ? "RESTORE AND MERGE" : "RESTORE", [t]); return Bt`
- <${WAt} orphaned=${t.orphaned}> - <${JAt}>${t.lineNumber} + <${GAt} orphaned=${t.orphaned}> + <${e7t}>${t.lineNumber} ${t.resolvedLine} - <${GAt} className="resolved-comment" color=${e.get(1).color}> - <${HAt}> - <${CQ}> - <${uue} login=${e.get(1).name} color=${e.get(1).color} avatarUrl=${e.get(1).avatar} userUrl=${e.get(1).url} /> - <${XAt}>${e.get(1).name} + <${HAt} className="resolved-comment" color=${e.get(1).color}> + <${XAt}> + <${EQ}> + <${hue} login=${e.get(1).name} color=${e.get(1).color} avatarUrl=${e.get(1).avatar} userUrl=${e.get(1).url} /> + <${ZAt}>${e.get(1).name} - <${CQ}> - <${ZAt}>Comment resolved by @${t.resolvedBy.name} ${s7t.format(-i.amount, i.unit)} - <${e7t} className="myst-dropdown-toggle"> - <${r7t} /> - <${t7t}> - <${EQ} className="myst-restore-btn" onClick=${() => r.restoreComment(t)}> - <${i7t} /> + <${EQ}> + <${jAt}>Comment resolved by @${t.resolvedBy.name} ${a7t.format(-i.amount, i.unit)} + <${t7t} className="myst-dropdown-toggle"> + <${n7t} /> + <${r7t}> + <${_Q} className="myst-restore-btn" onClick=${() => r.restoreComment(t)}> + <${s7t} />

${u}

- <${EQ} className="myst-delete-btn" onClick=${() => r.resolver().delete(t.commentId)}> - <${n7t} /> + <${_Q} className="myst-delete-btn" onClick=${() => r.resolver().delete(t.commentId)}> + <${i7t} />

DELETE

- <${jAt}> ${o.map((h) => Bt` <${KAt} color=${h.author.color}>${h.text} `)} + <${KAt}> ${o.map((h) => Bt` <${JAt} color=${h.author.color}>${h.text} `)}
`; -}, o7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", hue = er.div` +}, l7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", fue = er.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -50912,13 +50934,13 @@ const WAt = er.p` padding-left: 100px; margin-bottom: 0; } -`, l7t = er.hr` +`, c7t = er.hr` border: none; height: 1px; background-color: var(--gray-600); margin-top: 20px; margin-bottom: 0; -`, c7t = er.div` +`, u7t = er.div` margin-left: 100px; border-left: 1px solid var(--gray-600); @@ -50926,7 +50948,7 @@ const WAt = er.p` p { margin-top: 0; } -`, u7t = er.p` +`, h7t = er.p` padding: 10px 6px; img { @@ -50941,27 +50963,27 @@ const WAt = er.p` margin: 0 5px; } `; -hue.defaultProps = { +fue.defaultProps = { className: "myst-resolved" }; -function o_(t, e) { +function l_(t, e) { return t.resolvedDate - e.resolvedDate; } -const h7t = ({ +const f7t = ({ ycomments: t }) => { - let [e, r] = Rn(t.resolver().resolved().sort(o_)), n = Nn(() => e.reduce((s, { + let [e, r] = Rn(t.resolver().resolved().sort(l_)), n = Nn(() => e.reduce((s, { commentId: a }) => (s[a] = t.getTextForComment(a).toString(), s), {}), [e]), i = Nn(() => e.map((s) => t.lineAuthors(s.commentId)), [e]); - return Qi(() => { - r(t.resolver().resolved().sort(o_)), t.resolver().onUpdate((s) => r(s.sort(o_))); - }, []), Bt` <${hue}> + return _i(() => { + r(t.resolver().resolved().sort(l_)), t.resolver().onUpdate((s) => r(s.sort(l_))); + }, []), Bt` <${fue}>

Resolved comments

- <${l7t} /> - <${c7t}> - ${e.length === 0 ? Bt`<${u7t} - >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${a7t} + <${c7t} /> + <${u7t}> + ${e.length === 0 ? Bt`<${h7t} + >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${o7t} key=${s.commentId} c=${s} authors=${i[a]} @@ -50971,11 +50993,11 @@ const h7t = ({ `; }; -var rZ; -(rZ = window.myst_editor) != null && rZ.isFresh || (Xne(), window.myst_editor = { +var nZ; +(nZ = window.myst_editor) != null && nZ.isFresh || (Zne(), window.myst_editor = { isFresh: !0 }); -const f7t = er.div` +const d7t = er.div` font-family: "Lato"; display: flex; flex-flow: row wrap; @@ -50998,7 +51020,7 @@ const f7t = er.div` return ""; } }} -`, fue = er.div` +`, due = er.div` padding: 20px; display: flex; box-sizing: border-box; @@ -51008,10 +51030,10 @@ const f7t = er.div` background-color: white; ${(t) => t.fullscreen && "box-sizing:border-box; height: calc(100vh - 60px);"} `; -fue.defaultProps = { +due.defaultProps = { className: "myst-editor-wrapper" }; -const _Q = er.div` +const AQ = er.div` height: 40px; position: sticky; z-index: 10; @@ -51031,14 +51053,14 @@ const _Q = er.div` & > * { min-height: 500px; } -`, d7t = (t) => { +`, p7t = (t) => { const e = (r, n, i) => { r.type == "rule" && (r.props[0] = r.props[0].split(",").map((s) => `${t} ${s}`).join(",")); }; return Object.defineProperty(e, "name", { value: `scope-${t}` }), e; -}, p7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", Km = { +}, g7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", Km = { printToPdf: { id: "print-to-pdf", tooltip: "Print document as pdf", @@ -51059,13 +51081,13 @@ const _Q = er.div` id: "refresh", tooltip: "Refresh issue links" } -}, g7t = [Km.fullscreen, Km.copyHtml, Km.refresh, Km.printToPdf, Km.templateManager], m7t = ({ +}, m7t = [Km.fullscreen, Km.copyHtml, Km.refresh, Km.printToPdf, Km.templateManager], v7t = ({ name: t = "myst_editor_textarea", id: e = "myst_editor_textarea", title: r = null, initialMode: n = "Both", initialText: i = "", - includeButtons: s = g7t, + includeButtons: s = m7t, topbar: a = !0, templatelist: o, collaboration: l = {}, @@ -51082,14 +51104,14 @@ const _Q = er.div` syncScroll: v = !1, unfoldedHeadings: y }) => { - const [b, w] = Rn(n), [O, S] = Rn(!1), C = io(null), T = y_t({ + const [b, w] = Rn(n), [O, S] = Rn(!1), C = Ra(null), T = b_t({ initialText: i, transforms: f, customRoles: h, preview: C, backslashLineBreak: g, parent: m - }), [L, E] = Rn(null), [A, _] = TS((V, Q) => Q.map((W) => ({ + }), [A, E] = Rn(null), [L, _] = CS((V, Q) => Q.map((W) => ({ ...W, avatarUrl: d(W.login), userUrl: p(W.login) @@ -51100,7 +51122,7 @@ const _Q = er.div` ydoc: N, ready: M, error: I - } = QAt(l), D = YAt(N, R, d, p), P = (V, Q) => { + } = YAt(l), D = WAt(N, R, d, p), P = (V, Q) => { E(V), setTimeout(() => E(null), Q * 1e3); }, F = { "copy-html": () => { @@ -51108,19 +51130,19 @@ const _Q = er.div` }, fullscreen: () => S((V) => !V), refresh: () => { - Xne(), P("Rich links refreshed!", 1), T.refresh(); + Zne(), P("Rich links refreshed!", 1), T.refresh(); } }, B = Nn(() => s.map((V) => ({ ...V, action: V.action || F[V.id] })), []); - return Qi(() => p7t(O), [O]), Bt`
- <${Z2e} target=${m} stylisPlugins=${[d7t("#myst-css-namespace")]}> - <${f7t} mode=${b} fullscreen=${O}> - ${a && Bt`<${qAt} + return _i(() => g7t(O), [O]), Bt`
+ <${j2e} target=${m} stylisPlugins=${[p7t("#myst-css-namespace")]}> + <${d7t} mode=${b} fullscreen=${O}> + ${a && Bt`<${QAt} ...${{ - alert: L, - users: A, + alert: A, + users: L, text: T, templatelist: o, buttons: B, @@ -51130,11 +51152,11 @@ const _Q = er.div` title: r }} />`} - ${I && Bt`<${_Q} error> ${typeof I == "string" ? I : "No connection to the collaboration server"} `} - ${l.enabled && !M && !I && Bt`<${_Q}>Connecting to the collaboration server ...`} - <${fue} fullscreen=${O}> + ${I && Bt`<${AQ} error> ${typeof I == "string" ? I : "No connection to the collaboration server"} `} + ${l.enabled && !M && !I && Bt`<${AQ}>Connecting to the collaboration server ...`} + <${due} fullscreen=${O}> <${uO} id="editor-wrapper"> - <${V_t} + <${U_t} ...${{ mode: b, text: T, @@ -51160,21 +51182,21 @@ const _Q = er.div` /> <${uO} id="preview-wrapper" - ><${Xce} + ><${Zce} ref=${C} mode=${b} onClick=${(V) => { - v && b == "Both" && O_t(V, T.lineMap, C); + v && b == "Both" && k_t(V, T.lineMap, C); }} - ><${U_t} className="cm-previewFocus" /><${q_t} className="cm-previewFocus" /> - ${b === "Diff" && Bt`<${uO}><${lue} root=${m} oldText=${i} text=${T} />`} - ${l.commentsEnabled && l.resolvingCommentsEnabled && !I && Bt`<${uO} id="resolved-wrapper"><${h7t} ycomments=${D} />`} + ${b === "Diff" && Bt`<${uO}><${cue} root=${m} oldText=${i} text=${T} />`} + ${l.commentsEnabled && l.resolvingCommentsEnabled && !I && Bt`<${uO} id="resolved-wrapper"><${f7t} ycomments=${D} />`}
`; -}, zlr = ({ +}, Vlr = ({ additionalStyles: t, ...e }, r) => { @@ -51182,7 +51204,7 @@ const _Q = er.div` mode: "open" }), t && r.shadowRoot.adoptedStyleSheets.push(...Array.isArray(t) ? t : [t]), e.parent = r.shadowRoot; const n = r.closest("form"); - n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), yg(Bt`<${m7t} ...${e} />`, r.shadowRoot); + n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), yg(Bt`<${v7t} ...${e} />`, r.shadowRoot); }; (function() { const e = document.createElement("link").relList; @@ -51208,12 +51230,12 @@ const _Q = er.div` fetch(i.href, s); } })(); -class Ja { +class eo { constructor(e, r, n) { this.lexer = void 0, this.start = void 0, this.end = void 0, this.lexer = e, this.start = r, this.end = n; } static range(e, r) { - return r ? !e || !e.loc || !r.loc || e.loc.lexer !== r.loc.lexer ? null : new Ja(e.loc.lexer, e.loc.start, r.loc.end) : e && e.loc; + return r ? !e || !e.loc || !r.loc || e.loc.lexer !== r.loc.lexer ? null : new eo(e.loc.lexer, e.loc.start, r.loc.end) : e && e.loc; } } class zo { @@ -51221,7 +51243,7 @@ class zo { this.text = void 0, this.loc = void 0, this.noexpand = void 0, this.treatAsRelax = void 0, this.text = e, this.loc = r; } range(e, r) { - return new zo(r, Ja.range(this, e)); + return new zo(r, eo.range(this, e)); } } class ct { @@ -51241,42 +51263,42 @@ class ct { } } ct.prototype.__proto__ = Error.prototype; -var v7t = function(e, r) { +var y7t = function(e, r) { return e.indexOf(r) !== -1; -}, y7t = function(e, r) { +}, b7t = function(e, r) { return e === void 0 ? r : e; -}, b7t = /([A-Z])/g, x7t = function(e) { - return e.replace(b7t, "-$1").toLowerCase(); -}, w7t = { +}, x7t = /([A-Z])/g, w7t = function(e) { + return e.replace(x7t, "-$1").toLowerCase(); +}, O7t = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, O7t = /[&><"']/g; -function k7t(t) { - return String(t).replace(O7t, (e) => w7t[e]); +}, k7t = /[&><"']/g; +function S7t(t) { + return String(t).replace(k7t, (e) => O7t[e]); } -var due = function t(e) { +var pue = function t(e) { return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e; -}, S7t = function(e) { - var r = due(e); - return r.type === "mathord" || r.type === "textord" || r.type === "atom"; }, T7t = function(e) { + var r = pue(e); + return r.type === "mathord" || r.type === "textord" || r.type === "atom"; +}, C7t = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, C7t = function(e) { +}, E7t = function(e) { var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e); return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative"; }, Gt = { - contains: v7t, - deflt: y7t, - escape: k7t, - hyphenate: x7t, - getBaseElem: due, - isCharacterBox: S7t, - protocolFromUrl: C7t + contains: y7t, + deflt: b7t, + escape: S7t, + hyphenate: w7t, + getBaseElem: pue, + isCharacterBox: T7t, + protocolFromUrl: E7t }, V4 = { displayMode: { type: "boolean", @@ -51364,7 +51386,7 @@ var due = function t(e) { cli: !1 } }; -function E7t(t) { +function _7t(t) { if (t.default) return t.default; var e = t.type, r = Array.isArray(e) ? e[0] : e; @@ -51387,7 +51409,7 @@ class vN { for (var r in V4) if (V4.hasOwnProperty(r)) { var n = V4[r]; - this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : E7t(n); + this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : _7t(n); } } reportNonstrict(e, r, n) { @@ -51424,33 +51446,33 @@ class vh { this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = r, this.cramped = n; } sup() { - return cc[_7t[this.id]]; + return cc[A7t[this.id]]; } sub() { - return cc[A7t[this.id]]; + return cc[L7t[this.id]]; } fracNum() { - return cc[L7t[this.id]]; + return cc[R7t[this.id]]; } fracDen() { - return cc[R7t[this.id]]; + return cc[M7t[this.id]]; } cramp() { - return cc[M7t[this.id]]; + return cc[D7t[this.id]]; } text() { - return cc[D7t[this.id]]; + return cc[N7t[this.id]]; } isTight() { return this.size >= 2; } } -var yN = 0, nk = 1, ag = 2, Ru = 3, k2 = 4, Io = 5, l1 = 6, na = 7, cc = [new vh(yN, 0, !1), new vh(nk, 0, !0), new vh(ag, 1, !1), new vh(Ru, 1, !0), new vh(k2, 2, !1), new vh(Io, 2, !0), new vh(l1, 3, !1), new vh(na, 3, !0)], _7t = [k2, Io, k2, Io, l1, na, l1, na], A7t = [Io, Io, Io, Io, na, na, na, na], L7t = [ag, Ru, k2, Io, l1, na, l1, na], R7t = [Ru, Ru, Io, Io, na, na, na, na], M7t = [nk, nk, Ru, Ru, Io, Io, na, na], D7t = [yN, nk, ag, Ru, ag, Ru, ag, Ru], Xt = { +var yN = 0, ik = 1, ag = 2, Ru = 3, k2 = 4, Io = 5, l1 = 6, na = 7, cc = [new vh(yN, 0, !1), new vh(ik, 0, !0), new vh(ag, 1, !1), new vh(Ru, 1, !0), new vh(k2, 2, !1), new vh(Io, 2, !0), new vh(l1, 3, !1), new vh(na, 3, !0)], A7t = [k2, Io, k2, Io, l1, na, l1, na], L7t = [Io, Io, Io, Io, na, na, na, na], R7t = [ag, Ru, k2, Io, l1, na, l1, na], M7t = [Ru, Ru, Io, Io, na, na, na, na], D7t = [ik, ik, Ru, Ru, Io, Io, na, na], N7t = [yN, ik, ag, Ru, ag, Ru, ag, Ru], Xt = { DISPLAY: cc[yN], TEXT: cc[ag], SCRIPT: cc[k2], SCRIPTSCRIPT: cc[l1] -}, bL = [{ +}, xL = [{ name: "latin", blocks: [ [256, 591], @@ -51479,9 +51501,9 @@ var yN = 0, nk = 1, ag = 2, Ru = 3, k2 = 4, Io = 5, l1 = 6, na = 7, cc = [new vh name: "hangul", blocks: [[44032, 55215]] }]; -function N7t(t) { - for (var e = 0; e < bL.length; e++) - for (var r = bL[e], n = 0; n < r.blocks.length; n++) { +function I7t(t) { + for (var e = 0; e < xL.length; e++) + for (var r = xL[e], n = 0; n < r.blocks.length; n++) { var i = r.blocks[n]; if (t >= i[0] && t <= i[1]) return r.name; @@ -51489,14 +51511,14 @@ function N7t(t) { return null; } var U4 = []; -bL.forEach((t) => t.blocks.forEach((e) => U4.push(...e))); -function pue(t) { +xL.forEach((t) => t.blocks.forEach((e) => U4.push(...e))); +function gue(t) { for (var e = 0; e < U4.length; e += 2) if (t >= U4[e] && t <= U4[e + 1]) return !0; return !1; } -var fp = 80, I7t = function(e, r) { +var fp = 80, P7t = function(e, r) { return "M95," + (622 + e + r) + ` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 @@ -51509,7 +51531,7 @@ H400000v` + (40 + e) + `H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M` + (834 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, P7t = function(e, r) { +}, $7t = function(e, r) { return "M263," + (601 + e + r) + `c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 @@ -51521,7 +51543,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, $7t = function(e, r) { +}, B7t = function(e, r) { return "M983 " + (10 + e + r) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -51532,7 +51554,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, B7t = function(e, r) { +}, F7t = function(e, r) { return "M424," + (2398 + e + r) + ` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 @@ -51544,7 +51566,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + r + ` h400000v` + (40 + e) + "h-400000z"; -}, F7t = function(e, r) { +}, z7t = function(e, r) { return "M473," + (2713 + e + r) + ` c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + ` c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7 @@ -51553,40 +51575,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "H1017.7z"; -}, z7t = function(e) { +}, V7t = function(e) { var r = e / 2; return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, V7t = function(e, r, n) { +}, U7t = function(e, r, n) { var i = n - 54 - r - e; return "M702 " + (e + r) + "H400000" + (40 + e) + ` H742v` + i + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 ` + r + "H400000v" + (40 + e) + "H742z"; -}, U7t = function(e, r, n) { +}, q7t = function(e, r, n) { r = 1e3 * r; var i = ""; switch (e) { case "sqrtMain": - i = I7t(r, fp); + i = P7t(r, fp); break; case "sqrtSize1": - i = P7t(r, fp); + i = $7t(r, fp); break; case "sqrtSize2": - i = $7t(r, fp); + i = B7t(r, fp); break; case "sqrtSize3": - i = B7t(r, fp); + i = F7t(r, fp); break; case "sqrtSize4": - i = F7t(r, fp); + i = z7t(r, fp); break; case "sqrtTall": - i = V7t(r, fp, n); + i = U7t(r, fp, n); } return i; -}, q7t = function(e, r) { +}, Q7t = function(e, r) { switch (e) { case "\u239C": return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z"; @@ -51609,7 +51631,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 default: return ""; } -}, AQ = { +}, LQ = { doubleleftarrow: `M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 @@ -51840,7 +51862,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z` -}, Q7t = function(e, r) { +}, Y7t = function(e, r) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84 @@ -54026,7 +54048,7 @@ var Oc = { arrayRuleWidth: [0.04, 0.04, 0.04], fboxsep: [0.3, 0.3, 0.3], fboxrule: [0.04, 0.04, 0.04] -}, LQ = { +}, RQ = { \u00C5: "A", \u00D0: "D", \u00DE: "o", @@ -54098,14 +54120,14 @@ var Oc = { \u044E: "m", \u044F: "r" }; -function Y7t(t, e) { +function W7t(t, e) { Oc[t] = e; } function bN(t, e, r) { if (!Oc[e]) throw new Error("Font metrics not found for font: " + e + "."); var n = t.charCodeAt(0), i = Oc[e][n]; - if (!i && t[0] in LQ && (n = LQ[t[0]].charCodeAt(0), i = Oc[e][n]), !i && r === "text" && pue(n) && (i = Oc[e][77]), i) + if (!i && t[0] in RQ && (n = RQ[t[0]].charCodeAt(0), i = Oc[e][n]), !i && r === "text" && gue(n) && (i = Oc[e][77]), i) return { depth: i[0], height: i[1], @@ -54114,19 +54136,19 @@ function bN(t, e, r) { width: i[4] }; } -var l_ = {}; -function W7t(t) { +var c_ = {}; +function G7t(t) { var e; - if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !l_[e]) { - var r = l_[e] = { + if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !c_[e]) { + var r = c_[e] = { cssEmPerMu: hO.quad[e] / 18 }; for (var n in hO) hO.hasOwnProperty(n) && (r[n] = hO[n][e]); } - return l_[e]; + return c_[e]; } -var G7t = [ +var H7t = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -54138,7 +54160,7 @@ var G7t = [ [9, 7, 6], [10, 8, 7], [11, 10, 9] -], RQ = [ +], MQ = [ 0.5, 0.6, 0.7, @@ -54150,12 +54172,12 @@ var G7t = [ 1.728, 2.074, 2.488 -], MQ = function(e, r) { - return r.size < 2 ? e : G7t[e - 1][r.size - 1]; +], DQ = function(e, r) { + return r.size < 2 ? e : H7t[e - 1][r.size - 1]; }; class pu { constructor(e) { - this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || pu.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = RQ[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; + this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || pu.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = MQ[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; } extend(e) { var r = { @@ -54178,7 +54200,7 @@ class pu { havingStyle(e) { return this.style === e ? this : this.extend({ style: e, - size: MQ(this.textSize, e) + size: DQ(this.textSize, e) }); } havingCrampedStyle() { @@ -54189,12 +54211,12 @@ class pu { style: this.style.text(), size: e, textSize: e, - sizeMultiplier: RQ[e - 1] + sizeMultiplier: MQ[e - 1] }); } havingBaseStyle(e) { e = e || this.style.text(); - var r = MQ(pu.BASESIZE, e); + var r = DQ(pu.BASESIZE, e); return this.size === r && this.textSize === pu.BASESIZE && this.style === e ? this : this.extend({ style: e, size: r @@ -54259,14 +54281,14 @@ class pu { return this.size !== pu.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + pu.BASESIZE] : []; } fontMetrics() { - return this._fontMetrics || (this._fontMetrics = W7t(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = G7t(this.size)), this._fontMetrics; } getColor() { return this.phantom ? "transparent" : this.color; } } pu.BASESIZE = 6; -var xL = { +var wL = { pt: 1, mm: 7227 / 2540, cm: 7227 / 254, @@ -54279,16 +54301,16 @@ var xL = { nc: 1370 / 107, sp: 1 / 65536, px: 803 / 800 -}, H7t = { +}, X7t = { ex: !0, em: !0, mu: !0 -}, gue = function(e) { - return typeof e != "string" && (e = e.unit), e in xL || e in H7t || e === "ex"; +}, mue = function(e) { + return typeof e != "string" && (e = e.unit), e in wL || e in X7t || e === "ex"; }, Mn = function(e, r) { var n; - if (e.unit in xL) - n = xL[e.unit] / r.fontMetrics().ptPerEm / r.sizeMultiplier; + if (e.unit in wL) + n = wL[e.unit] / r.fontMetrics().ptPerEm / r.sizeMultiplier; else if (e.unit === "mu") n = r.fontMetrics().cssEmPerMu; else { @@ -54306,13 +54328,13 @@ var xL = { return +e.toFixed(4) + "em"; }, Of = function(e) { return e.filter((r) => r).join(" "); -}, mue = function(e, r, n) { +}, vue = function(e, r, n) { if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = n || {}, r) { r.style.isTight() && this.classes.push("mtight"); var i = r.getColor(); i && (this.style.color = i); } -}, vue = function(e) { +}, yue = function(e) { var r = document.createElement(e); r.className = Of(this.classes); for (var n in this.style) @@ -54322,7 +54344,7 @@ var xL = { for (var s = 0; s < this.children.length; s++) r.appendChild(this.children[s].toNode()); return r; -}, yue = function(e) { +}, bue = function(e) { var r = "<" + e; this.classes.length && (r += ' class="' + Gt.escape(Of(this.classes)) + '"'); var n = ""; @@ -54338,7 +54360,7 @@ var xL = { }; class Sx { constructor(e, r, n, i) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, mue.call(this, e, n, i), this.children = r || []; + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, vue.call(this, e, n, i), this.children = r || []; } setAttribute(e, r) { this.attributes[e] = r; @@ -54347,15 +54369,15 @@ class Sx { return Gt.contains(this.classes, e); } toNode() { - return vue.call(this, "span"); + return yue.call(this, "span"); } toMarkup() { - return yue.call(this, "span"); + return bue.call(this, "span"); } } class xN { constructor(e, r, n, i) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, mue.call(this, r, i), this.children = n || [], this.setAttribute("href", e); + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, vue.call(this, r, i), this.children = n || [], this.setAttribute("href", e); } setAttribute(e, r) { this.attributes[e] = r; @@ -54364,13 +54386,13 @@ class xN { return Gt.contains(this.classes, e); } toNode() { - return vue.call(this, "a"); + return yue.call(this, "a"); } toMarkup() { - return yue.call(this, "a"); + return bue.call(this, "a"); } } -class X7t { +class Z7t { constructor(e, r, n) { this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n; } @@ -54391,7 +54413,7 @@ class X7t { return r && (e += ' style="' + Gt.escape(r) + '"'), e += "'/>", e; } } -var Z7t = { +var j7t = { \u00EE: "\u0131\u0302", \u00EF: "\u0131\u0308", \u00ED: "\u0131\u0301", @@ -54400,8 +54422,8 @@ var Z7t = { class jo { constructor(e, r, n, i, s, a, o, l) { this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = r || 0, this.depth = n || 0, this.italic = i || 0, this.skew = s || 0, this.width = a || 0, this.classes = o || [], this.style = l || {}, this.maxFontSize = 0; - var u = N7t(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Z7t[this.text]); + var u = I7t(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = j7t[this.text]); } hasClass(e) { return Gt.contains(this.classes, e); @@ -54453,13 +54475,13 @@ class kf { } toNode() { var e = "http://www.w3.org/2000/svg", r = document.createElementNS(e, "path"); - return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", AQ[this.pathName]), r; + return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", LQ[this.pathName]), r; } toMarkup() { - return this.alternate ? '' : ''; + return this.alternate ? '' : ''; } } -class wL { +class OL { constructor(e) { this.attributes = void 0, this.attributes = e || {}; } @@ -54476,24 +54498,24 @@ class wL { return e += "/>", e; } } -function DQ(t) { +function NQ(t) { if (t instanceof jo) return t; throw new Error("Expected symbolNode but got " + String(t) + "."); } -function j7t(t) { +function K7t(t) { if (t instanceof Sx) return t; throw new Error("Expected span but got " + String(t) + "."); } -var K7t = { +var J7t = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, J7t = { +}, e8t = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -54510,7 +54532,7 @@ function z(t, e, r, n, i, s) { replace: n }, s && n && (hn[t][n] = hn[t][i]); } -var q = "math", it = "text", J = "main", ye = "ams", Tn = "accent-token", At = "bin", da = "close", tm = "inner", Ht = "mathord", mi = "op-token", po = "open", qT = "punct", we = "rel", hh = "spacing", Re = "textord"; +var q = "math", it = "text", J = "main", ye = "ams", Tn = "accent-token", At = "bin", da = "close", tm = "inner", Ht = "mathord", mi = "op-token", po = "open", QT = "punct", we = "rel", hh = "spacing", Re = "textord"; z(q, J, we, "\u2261", "\\equiv", !0); z(q, J, we, "\u227A", "\\prec", !0); z(q, J, we, "\u227B", "\\succ", !0); @@ -54535,8 +54557,8 @@ z(q, J, we, "\u221D", "\\propto", !0); z(q, J, we, "\u22A2", "\\vdash", !0); z(q, J, we, "\u22A3", "\\dashv", !0); z(q, J, we, "\u220B", "\\owns"); -z(q, J, qT, ".", "\\ldotp"); -z(q, J, qT, "\u22C5", "\\cdotp"); +z(q, J, QT, ".", "\\ldotp"); +z(q, J, QT, "\u22C5", "\\cdotp"); z(q, J, Re, "#", "\\#"); z(it, J, Re, "#", "\\#"); z(q, J, Re, "&", "\\&"); @@ -54963,8 +54985,8 @@ z(it, J, hh, "\xA0", "\\space"); z(it, J, hh, "\xA0", "\\nobreakspace"); z(q, J, hh, null, "\\nobreak"); z(q, J, hh, null, "\\allowbreak"); -z(q, J, qT, ",", ","); -z(q, J, qT, ";", ";"); +z(q, J, QT, ",", ","); +z(q, J, QT, ";", ";"); z(q, ye, At, "\u22BC", "\\barwedge", !0); z(q, ye, At, "\u22BB", "\\veebar", !0); z(q, J, At, "\u2299", "\\odot", !0); @@ -55081,7 +55103,7 @@ z(it, J, Tn, "\u02C7", "\\v"); z(it, J, Tn, "\xA8", '\\"'); z(it, J, Tn, "\u02DD", "\\H"); z(it, J, Tn, "\u25EF", "\\textcircled"); -var bue = { +var xue = { "--": !0, "---": !0, "``": !0, @@ -55108,19 +55130,19 @@ z(it, J, Re, "\xA3", "\\pounds"); z(it, J, Re, "\xA3", "\\textsterling", !0); z(q, ye, Re, "\u2720", "\\maltese"); z(it, ye, Re, "\u2720", "\\maltese"); -var NQ = '0123456789/@."'; -for (var c_ = 0; c_ < NQ.length; c_++) { - var IQ = NQ.charAt(c_); - z(q, J, Re, IQ, IQ); -} -var PQ = '0123456789!@*()-=+";:?/.,'; -for (var u_ = 0; u_ < PQ.length; u_++) { - var $Q = PQ.charAt(u_); - z(it, J, Re, $Q, $Q); -} -var ik = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; -for (var h_ = 0; h_ < ik.length; h_++) { - var fO = ik.charAt(h_); +var IQ = '0123456789/@."'; +for (var u_ = 0; u_ < IQ.length; u_++) { + var PQ = IQ.charAt(u_); + z(q, J, Re, PQ, PQ); +} +var $Q = '0123456789!@*()-=+";:?/.,'; +for (var h_ = 0; h_ < $Q.length; h_++) { + var BQ = $Q.charAt(h_); + z(it, J, Re, BQ, BQ); +} +var sk = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; +for (var f_ = 0; f_ < sk.length; f_++) { + var fO = sk.charAt(f_); z(q, J, Ht, fO, fO), z(it, J, Re, fO, fO); } z(q, ye, Re, "C", "\u2102"); @@ -55140,8 +55162,8 @@ z(it, ye, Re, "Z", "\u2124"); z(q, J, Ht, "h", "\u210E"); z(it, J, Ht, "h", "\u210E"); var rr = ""; -for (var js = 0; js < ik.length; js++) { - var zn = ik.charAt(js); +for (var js = 0; js < sk.length; js++) { + var zn = sk.charAt(js); rr = String.fromCharCode(55349, 56320 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56372 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56424 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56580 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56684 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56736 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56788 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56840 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56944 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), js < 26 && (rr = String.fromCharCode(55349, 56632 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56476 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr)); } rr = String.fromCharCode(55349, 56668); @@ -55151,9 +55173,9 @@ for (var td = 0; td < 10; td++) { var yh = td.toString(); rr = String.fromCharCode(55349, 57294 + td), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr), rr = String.fromCharCode(55349, 57314 + td), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr), rr = String.fromCharCode(55349, 57324 + td), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr), rr = String.fromCharCode(55349, 57334 + td), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr); } -var OL = "\xD0\xDE\xFE"; -for (var f_ = 0; f_ < OL.length; f_++) { - var dO = OL.charAt(f_); +var kL = "\xD0\xDE\xFE"; +for (var d_ = 0; d_ < kL.length; d_++) { + var dO = kL.charAt(d_); z(q, J, Ht, dO, dO), z(it, J, Re, dO, dO); } var pO = [ @@ -55183,20 +55205,20 @@ var pO = [ ["", "", ""], ["mathtt", "texttt", "Typewriter-Regular"], ["mathtt", "texttt", "Typewriter-Regular"] -], BQ = [ +], FQ = [ ["mathbf", "textbf", "Main-Bold"], ["", "", ""], ["mathsf", "textsf", "SansSerif-Regular"], ["mathboldsf", "textboldsf", "SansSerif-Bold"], ["mathtt", "texttt", "Typewriter-Regular"] -], e8t = function(e, r) { +], t8t = function(e, r) { var n = e.charCodeAt(0), i = e.charCodeAt(1), s = (n - 55296) * 1024 + (i - 56320) + 65536, a = r === "math" ? 0 : 1; if (119808 <= s && s < 120484) { var o = Math.floor((s - 119808) / 26); return [pO[o][2], pO[o][a]]; } else if (120782 <= s && s <= 120831) { var l = Math.floor((s - 120782) / 10); - return [BQ[l][2], BQ[l][a]]; + return [FQ[l][2], FQ[l][a]]; } else { if (s === 120485 || s === 120486) return [pO[0][2], pO[0][a]]; @@ -55204,13 +55226,13 @@ var pO = [ return ["", ""]; throw new ct("Unsupported character: " + e); } -}, QT = function(e, r, n) { +}, YT = function(e, r, n) { return hn[n][e] && hn[n][e].replace && (e = hn[n][e].replace), { value: e, metrics: bN(e, r, n) }; }, hl = function(e, r, n, i, s) { - var a = QT(e, r, n), o = a.metrics; + var a = YT(e, r, n), o = a.metrics; e = a.value; var l; if (o) { @@ -55224,33 +55246,33 @@ var pO = [ h && (l.style.color = h); } return l; -}, t8t = function(e, r, n, i) { - return i === void 0 && (i = []), n.font === "boldsymbol" && QT(e, "Main-Bold", r).metrics ? hl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || hn[r][e].font === "main" ? hl(e, "Main-Regular", r, n, i) : hl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); -}, r8t = function(e, r, n, i, s) { - return s !== "textord" && QT(e, "Math-BoldItalic", r).metrics ? { +}, r8t = function(e, r, n, i) { + return i === void 0 && (i = []), n.font === "boldsymbol" && YT(e, "Main-Bold", r).metrics ? hl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || hn[r][e].font === "main" ? hl(e, "Main-Regular", r, n, i) : hl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); +}, n8t = function(e, r, n, i, s) { + return s !== "textord" && YT(e, "Math-BoldItalic", r).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" } : { fontName: "Main-Bold", fontClass: "mathbf" }; -}, n8t = function(e, r, n) { +}, i8t = function(e, r, n) { var i = e.mode, s = e.text, a = ["mord"], o = i === "math" || i === "text" && r.font, l = o ? r.font : r.fontFamily, u = "", h = ""; - if (s.charCodeAt(0) === 55349 && ([u, h] = e8t(s, i)), u.length > 0) + if (s.charCodeAt(0) === 55349 && ([u, h] = t8t(s, i)), u.length > 0) return hl(s, u, i, r, a.concat(h)); if (l) { var f, d; if (l === "boldsymbol") { - var p = r8t(s, i, r, a, n); + var p = n8t(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else - o ? (f = Oue[l].fontName, d = [l]) : (f = gO(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); - if (QT(s, f, i).metrics) + o ? (f = kue[l].fontName, d = [l]) : (f = gO(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); + if (YT(s, f, i).metrics) return hl(s, f, i, r, a.concat(d)); - if (bue.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { + if (xue.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { for (var g = [], m = 0; m < s.length; m++) g.push(hl(s[m], f, i, r, a.concat(d))); - return wue(g); + return Oue(g); } } if (n === "mathord") @@ -55269,7 +55291,7 @@ var pO = [ } } else throw new Error("unexpected type: " + n + " in makeOrd"); -}, i8t = (t, e) => { +}, s8t = (t, e) => { if (Of(t.classes) !== Of(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) return !1; if (t.classes.length === 1) { @@ -55284,10 +55306,10 @@ var pO = [ if (e.style.hasOwnProperty(i) && t.style[i] !== e.style[i]) return !1; return !0; -}, s8t = (t) => { +}, a8t = (t) => { for (var e = 0; e < t.length - 1; e++) { var r = t[e], n = t[e + 1]; - r instanceof jo && n instanceof jo && i8t(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); + r instanceof jo && n instanceof jo && s8t(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); } return t; }, wN = function(e) { @@ -55299,18 +55321,18 @@ var pO = [ }, ba = function(e, r, n, i) { var s = new Sx(e, r, n, i); return wN(s), s; -}, xue = (t, e, r, n) => new Sx(t, e, r, n), a8t = function(e, r, n) { +}, wue = (t, e, r, n) => new Sx(t, e, r, n), o8t = function(e, r, n) { var i = ba([e], [], r); return i.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), i.style.borderBottomWidth = vt(i.height), i.maxFontSize = 1, i; -}, o8t = function(e, r, n, i) { +}, l8t = function(e, r, n, i) { var s = new xN(e, r, n, i); return wN(s), s; -}, wue = function(e) { +}, Oue = function(e) { var r = new kx(e); return wN(r), r; -}, l8t = function(e, r) { +}, c8t = function(e, r) { return e instanceof kx ? ba([], [e], r) : e; -}, c8t = function(e) { +}, u8t = function(e) { if (e.positionType === "individualShift") { for (var r = e.children, n = [r[0]], i = -r[0].shift - r[0].elem.depth, s = i, a = 1; a < r.length; a++) { var o = -r[a].shift - s - r[a].elem.depth, l = o - (r[a - 1].elem.height + r[a - 1].elem.depth); @@ -55348,11 +55370,11 @@ var pO = [ children: e.children, depth: u }; -}, u8t = function(e, r) { +}, h8t = function(e, r) { for (var { children: n, depth: i - } = c8t(e), s = 0, a = 0; a < n.length; a++) { + } = u8t(e), s = 0, a = 0; a < n.length; a++) { var o = n[a]; if (o.type === "elem") { var l = o.elem; @@ -55378,13 +55400,13 @@ var pO = [ if (f < 0) { var C = ba([], []), T = ba(["vlist"], [C]); T.style.height = vt(-f); - var L = ba(["vlist-s"], [new jo("\u200B")]); - S = [ba(["vlist-r"], [O, L]), ba(["vlist-r"], [T])]; + var A = ba(["vlist-s"], [new jo("\u200B")]); + S = [ba(["vlist-r"], [O, A]), ba(["vlist-r"], [T])]; } else S = [ba(["vlist-r"], [O])]; var E = ba(["vlist-t"], S); return S.length === 2 && E.classes.push("vlist-t2"), E.height = d, E.depth = -f, E; -}, h8t = (t, e) => { +}, f8t = (t, e) => { var r = ba(["mspace"], [], e), n = Mn(t, e); return r.style.marginRight = vt(n), r; }, gO = function(e, r, n) { @@ -55407,7 +55429,7 @@ var pO = [ } var s; return r === "textbf" && n === "textit" ? s = "BoldItalic" : r === "textbf" ? s = "Bold" : r === "textit" ? s = "Italic" : s = "Regular", i + "-" + s; -}, Oue = { +}, kue = { mathbf: { variant: "bold", fontName: "Main-Bold" @@ -55452,37 +55474,37 @@ var pO = [ variant: "monospace", fontName: "Typewriter-Regular" } -}, kue = { +}, Sue = { vec: ["vec", 0.471, 0.714], oiintSize1: ["oiintSize1", 0.957, 0.499], oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, f8t = function(e, r) { - var [n, i, s] = kue[e], a = new kf(n), o = new Wu([a], { +}, d8t = function(e, r) { + var [n, i, s] = Sue[e], a = new kf(n), o = new Wu([a], { width: vt(i), height: vt(s), style: "width:" + vt(i), viewBox: "0 0 " + 1e3 * i + " " + 1e3 * s, preserveAspectRatio: "xMinYMin" - }), l = xue(["overlay"], [o], r); + }), l = wue(["overlay"], [o], r); return l.height = s, l.style.height = vt(s), l.style.width = vt(i), l; }, Be = { - fontMap: Oue, + fontMap: kue, makeSymbol: hl, - mathsym: t8t, + mathsym: r8t, makeSpan: ba, - makeSvgSpan: xue, - makeLineSpan: a8t, - makeAnchor: o8t, - makeFragment: wue, - wrapFragment: l8t, - makeVList: u8t, - makeOrd: n8t, - makeGlue: h8t, - staticSvg: f8t, - svgData: kue, - tryCombineChars: s8t + makeSvgSpan: wue, + makeLineSpan: o8t, + makeAnchor: l8t, + makeFragment: Oue, + wrapFragment: c8t, + makeVList: h8t, + makeOrd: i8t, + makeGlue: f8t, + staticSvg: d8t, + svgData: Sue, + tryCombineChars: a8t }, An = { number: 3, unit: "mu" @@ -55492,7 +55514,7 @@ var pO = [ }, lu = { number: 5, unit: "mu" -}, d8t = { +}, p8t = { mord: { mop: An, mbin: rd, @@ -55542,7 +55564,7 @@ var pO = [ mpunct: An, minner: An } -}, p8t = { +}, g8t = { mord: { mop: An }, @@ -55560,7 +55582,7 @@ var pO = [ minner: { mop: An } -}, Sue = {}, sk = {}, ak = {}; +}, Tue = {}, ak = {}, ok = {}; function Ct(t) { for (var { type: e, @@ -55581,8 +55603,8 @@ function Ct(t) { primitive: !!n.primitive, handler: i }, l = 0; l < r.length; ++l) - Sue[r[l]] = o; - e && (s && (sk[e] = s), a && (ak[e] = a)); + Tue[r[l]] = o; + e && (s && (ak[e] = s), a && (ok[e] = a)); } function X0(t) { var { @@ -55603,16 +55625,16 @@ function X0(t) { mathmlBuilder: n }); } -var ok = function(e) { +var lk = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; }, ri = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, Gu = Be.makeSpan, g8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], m8t = ["rightmost", "mrel", "mclose", "mpunct"], v8t = { +}, Gu = Be.makeSpan, m8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], v8t = ["rightmost", "mrel", "mclose", "mpunct"], y8t = { display: Xt.DISPLAY, text: Xt.TEXT, script: Xt.SCRIPT, scriptscript: Xt.SCRIPTSCRIPT -}, y8t = { +}, b8t = { mord: "mord", mop: "mop", mbin: "mbin", @@ -55621,7 +55643,7 @@ var ok = function(e) { mclose: "mclose", mpunct: "mpunct", minner: "minner" -}, Mi = function(e, r, n, i) { +}, Di = function(e, r, n, i) { i === void 0 && (i = [null, null]); for (var s = [], a = 0; a < e.length; a++) { var o = Lr(e[a], r); @@ -55636,25 +55658,25 @@ var ok = function(e) { var u = r; if (e.length === 1) { var h = e[0]; - h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(v8t[h.style])); + h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(y8t[h.style])); } var f = Gu([i[0] || "leftmost"], [], r), d = Gu([i[1] || "rightmost"], [], r), p = n === "root"; - return FQ(s, (g, m) => { + return zQ(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; - v === "mbin" && Gt.contains(m8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(g8t, v) && (g.classes[0] = "mord"); + v === "mbin" && Gt.contains(v8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(m8t, v) && (g.classes[0] = "mord"); }, { node: f - }, d, p), FQ(s, (g, m) => { - var v = kL(m), y = kL(g), b = v && y ? g.hasClass("mtight") ? p8t[v][y] : d8t[v][y] : null; + }, d, p), zQ(s, (g, m) => { + var v = SL(m), y = SL(g), b = v && y ? g.hasClass("mtight") ? g8t[v][y] : p8t[v][y] : null; if (b) return Be.makeGlue(b, u); }, { node: f }, d, p), s; -}, FQ = function t(e, r, n, i, s) { +}, zQ = function t(e, r, n, i, s) { i && e.push(i); for (var a = 0; a < e.length; a++) { - var o = e[a], l = Tue(o); + var o = e[a], l = Cue(o); if (l) { t(l.children, r, n, null, s); continue; @@ -55669,10 +55691,10 @@ var ok = function(e) { })(a); } i && e.pop(); -}, Tue = function(e) { +}, Cue = function(e) { return e instanceof kx || e instanceof xN || e instanceof Sx && e.hasClass("enclosing") ? e : null; -}, b8t = function t(e, r) { - var n = Tue(e); +}, x8t = function t(e, r) { + var n = Cue(e); if (n) { var i = n.children; if (i.length) { @@ -55683,16 +55705,16 @@ var ok = function(e) { } } return e; -}, kL = function(e, r) { - return e ? (r && (e = b8t(e, r)), y8t[e.classes[0]] || null) : null; +}, SL = function(e, r) { + return e ? (r && (e = x8t(e, r)), b8t[e.classes[0]] || null) : null; }, S2 = function(e, r) { var n = ["nulldelimiter"].concat(e.baseSizingClasses()); return Gu(r.concat(n)); }, Lr = function(e, r, n) { if (!e) return Gu(); - if (sk[e.type]) { - var i = sk[e.type](e, r); + if (ak[e.type]) { + var i = ak[e.type](e, r); if (n && r.size !== n.size) { i = Gu(r.sizingClasses(n), [i], r); var s = r.sizeMultiplier / n.sizeMultiplier; @@ -55706,10 +55728,10 @@ function mO(t, e) { var r = Gu(["base"], t, e), n = Gu(["strut"]); return n.style.height = vt(r.height + r.depth), r.depth && (n.style.verticalAlign = vt(-r.depth)), r.children.unshift(n), r; } -function SL(t, e) { +function TL(t, e) { var r = null; t.length === 1 && t[0].type === "tag" && (r = t[0].tag, t = t[0].body); - var n = Mi(t, e, "root"), i; + var n = Di(t, e, "root"), i; n.length === 2 && n[1].hasClass("tag") && (i = n.pop()); for (var s = [], a = [], o = 0; o < n.length; o++) if (a.push(n[o]), n[o].hasClass("mbin") || n[o].hasClass("mrel") || n[o].hasClass("allowbreak")) { @@ -55720,7 +55742,7 @@ function SL(t, e) { n[o].hasClass("newline") && (a.pop(), a.length > 0 && (s.push(mO(a, e)), a = []), s.push(n[o])); a.length > 0 && s.push(mO(a, e)); var u; - r ? (u = mO(Mi(r, e, !0)), u.classes = ["tag"], s.push(u)) : i && s.push(i); + r ? (u = mO(Di(r, e, !0)), u.classes = ["tag"], s.push(u)) : i && s.push(i); var h = Gu(["katex-html"], s); if (h.setAttribute("aria-hidden", "true"), u) { var f = u.children[0]; @@ -55728,7 +55750,7 @@ function SL(t, e) { } return h; } -function Cue(t) { +function Eue(t) { return new kx(t); } class Lo { @@ -55777,7 +55799,7 @@ class ly { return this.text; } } -class x8t { +class w8t { constructor(e) { this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = "\u200A" : e >= 0.1666 && e <= 0.1667 ? this.character = "\u2009" : e >= 0.2222 && e <= 0.2223 ? this.character = "\u2005" : e >= 0.2777 && e <= 0.2778 ? this.character = "\u2005\u200A" : e >= -0.05556 && e <= -0.05555 ? this.character = "\u200A\u2063" : e >= -0.1667 && e <= -0.1666 ? this.character = "\u2009\u2063" : e >= -0.2223 && e <= -0.2222 ? this.character = "\u205F\u2063" : e >= -0.2778 && e <= -0.2777 ? this.character = "\u2005\u2063" : this.character = null; } @@ -55797,10 +55819,10 @@ class x8t { var lt = { MathNode: Lo, TextNode: ly, - SpaceNode: x8t, - newDocumentFragment: Cue + SpaceNode: w8t, + newDocumentFragment: Eue }, Ko = function(e, r, n) { - return hn[r][e] && hn[r][e].replace && e.charCodeAt(0) !== 55349 && !(bue.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = hn[r][e].replace), new lt.TextNode(e); + return hn[r][e] && hn[r][e].replace && e.charCodeAt(0) !== 55349 && !(xue.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = hn[r][e].replace), new lt.TextNode(e); }, ON = function(e) { return e.length === 1 ? e[0] : new lt.MathNode("mrow", e); }, kN = function(e, r) { @@ -55840,7 +55862,7 @@ var lt = { hn[i][s] && hn[i][s].replace && (s = hn[i][s].replace); var a = Be.fontMap[n].fontName; return bN(s, a, i) ? Be.fontMap[n].variant : null; -}, Va = function(e, r, n) { +}, Ua = function(e, r, n) { if (e.length === 1) { var i = sn(e[0], r); return n && i instanceof Lo && i.type === "mo" && (i.setAttribute("lspace", "0em"), i.setAttribute("rspace", "0em")), [i]; @@ -55872,18 +55894,18 @@ var lt = { } return s; }, Sf = function(e, r, n) { - return ON(Va(e, r, n)); + return ON(Ua(e, r, n)); }, sn = function(e, r) { if (!e) return new lt.MathNode("mrow"); - if (ak[e.type]) { - var n = ak[e.type](e, r); + if (ok[e.type]) { + var n = ok[e.type](e, r); return n; } else throw new ct("Got group of unknown type: '" + e.type + "'"); }; -function zQ(t, e, r, n, i) { - var s = Va(t, r), a; +function VQ(t, e, r, n, i) { + var s = Ua(t, r), a; s.length === 1 && s[0] instanceof Lo && Gt.contains(["mrow", "mtable"], s[0].type) ? a = s[0] : a = new lt.MathNode("mrow", s); var o = new lt.MathNode("annotation", [new lt.TextNode(e)]); o.setAttribute("encoding", "application/x-tex"); @@ -55892,34 +55914,34 @@ function zQ(t, e, r, n, i) { var h = i ? "katex" : "katex-mathml"; return Be.makeSpan([h], [u]); } -var Eue = function(e) { +var _ue = function(e) { return new pu({ style: e.displayMode ? Xt.DISPLAY : Xt.TEXT, maxSize: e.maxSize, minRuleThickness: e.minRuleThickness }); -}, _ue = function(e, r) { +}, Aue = function(e, r) { if (r.displayMode) { var n = ["katex-display"]; r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Be.makeSpan(n, [e]); } return e; -}, w8t = function(e, r, n) { - var i = Eue(n), s; +}, O8t = function(e, r, n) { + var i = _ue(n), s; if (n.output === "mathml") - return zQ(e, r, i, n.displayMode, !0); + return VQ(e, r, i, n.displayMode, !0); if (n.output === "html") { - var a = SL(e, i); + var a = TL(e, i); s = Be.makeSpan(["katex"], [a]); } else { - var o = zQ(e, r, i, n.displayMode, !1), l = SL(e, i); + var o = VQ(e, r, i, n.displayMode, !1), l = TL(e, i); s = Be.makeSpan(["katex"], [o, l]); } - return _ue(s, n); -}, O8t = function(e, r, n) { - var i = Eue(n), s = SL(e, i), a = Be.makeSpan(["katex"], [s]); - return _ue(a, n); -}, k8t = { + return Aue(s, n); +}, k8t = function(e, r, n) { + var i = _ue(n), s = TL(e, i), a = Be.makeSpan(["katex"], [s]); + return Aue(a, n); +}, S8t = { widehat: "^", widecheck: "\u02C7", widetilde: "~", @@ -55962,10 +55984,10 @@ var Eue = function(e) { "\\cdrightarrow": "\u2192", "\\cdleftarrow": "\u2190", "\\cdlongequal": "=" -}, S8t = function(e) { - var r = new lt.MathNode("mo", [new lt.TextNode(k8t[e.replace(/^\\/, "")])]); +}, T8t = function(e) { + var r = new lt.MathNode("mo", [new lt.TextNode(S8t[e.replace(/^\\/, "")])]); return r.setAttribute("stretchy", "true"), r; -}, T8t = { +}, C8t = { overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], @@ -56006,13 +56028,13 @@ var Eue = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, C8t = function(e) { +}, E8t = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, E8t = function(e, r) { +}, _8t = function(e, r) { function n() { var o = 4e5, l = e.label.slice(1); if (Gt.contains(["widehat", "widecheck", "widetilde", "utilde"], l)) { - var u = e, h = C8t(u.base), f, d, p; + var u = e, h = E8t(u.base), f, d, p; if (h > 5) l === "widehat" || l === "widecheck" ? (f = 420, o = 2364, p = 0.42, d = l + "4") : (f = 312, o = 2340, p = 0.34, d = "tilde4"); else { @@ -56031,14 +56053,14 @@ var Eue = function(e) { height: p }; } else { - var y = [], b = T8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, L, E; + var y = [], b = C8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; if (T === 1) { - var A = b[3]; - L = ["hide-tail"], E = [A]; + var L = b[3]; + A = ["hide-tail"], E = [L]; } else if (T === 2) - L = ["halfarrow-left", "halfarrow-right"], E = ["xMinYMin", "xMaxYMin"]; + A = ["halfarrow-left", "halfarrow-right"], E = ["xMinYMin", "xMaxYMin"]; else if (T === 3) - L = ["brace-left", "brace-center", "brace-right"], E = ["xMinYMin", "xMidYMin", "xMaxYMin"]; + A = ["brace-left", "brace-center", "brace-right"], E = ["xMinYMin", "xMidYMin", "xMaxYMin"]; else throw new Error(`Correct katexImagesData or update code here to support ` + T + " children."); @@ -56048,7 +56070,7 @@ var Eue = function(e) { height: vt(C), viewBox: "0 0 " + o + " " + S, preserveAspectRatio: E[_] + " slice" - }), k = Be.makeSvgSpan([L[_]], [$], r); + }), k = Be.makeSvgSpan([A[_]], [$], r); if (T === 1) return { span: k, @@ -56070,7 +56092,7 @@ var Eue = function(e) { height: a } = n(); return i.height = a, i.style.height = vt(a), s > 0 && (i.style.minWidth = vt(s)), i; -}, _8t = function(e, r, n, i, s) { +}, A8t = function(e, r, n, i, s) { var a, o = e.height + e.depth + n + i; if (/fbox|color|angl/.test(r)) { if (a = Be.makeSpan(["stretchy", r], [], s), r === "fbox") { @@ -56079,13 +56101,13 @@ var Eue = function(e) { } } else { var u = []; - /^[bx]cancel$/.test(r) && u.push(new wL({ + /^[bx]cancel$/.test(r) && u.push(new OL({ x1: "0", y1: "0", x2: "100%", y2: "100%", "stroke-width": "0.046em" - })), /^x?cancel$/.test(r) && u.push(new wL({ + })), /^x?cancel$/.test(r) && u.push(new OL({ x1: "0", y1: "100%", x2: "100%", @@ -56100,9 +56122,9 @@ var Eue = function(e) { } return a.height = o, a.style.height = vt(o), a; }, Hu = { - encloseSpan: _8t, - mathMLnode: S8t, - svgSpan: E8t + encloseSpan: A8t, + mathMLnode: T8t, + svgSpan: _8t }; function gr(t, e) { if (!t || t.type !== e) @@ -56110,21 +56132,21 @@ function gr(t, e) { return t; } function SN(t) { - var e = YT(t); + var e = WT(t); if (!e) throw new Error("Expected node of symbol group type, but got " + (t ? "node of type " + t.type : String(t))); return e; } -function YT(t) { - return t && (t.type === "atom" || J7t.hasOwnProperty(t.type)) ? t : null; +function WT(t) { + return t && (t.type === "atom" || e8t.hasOwnProperty(t.type)) ? t : null; } var TN = (t, e) => { var r, n, i; - t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = j7t(Lr(t, e)), t.base = n) : (n = gr(t, "accent"), r = n.base); + t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = K7t(Lr(t, e)), t.base = n) : (n = gr(t, "accent"), r = n.base); var s = Lr(r, e.havingCrampedStyle()), a = n.isShifty && Gt.isCharacterBox(r), o = 0; if (a) { var l = Gt.getBaseElem(r), u = Lr(l, e.havingCrampedStyle()); - o = DQ(u).skew; + o = NQ(u).skew; } var h = n.label === "\\c", f = h ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), d; if (n.isStretchy) @@ -56148,7 +56170,7 @@ var TN = (t, e) => { n.label === "\\vec" ? (p = Be.staticSvg("vec", e), g = Be.svgData.vec[1]) : (p = Be.makeOrd({ mode: n.mode, text: n.label - }, e, "textord"), p = DQ(p), p.italic = 0, g = p.width, h && (f += p.depth)), d = Be.makeSpan(["accent-body"], [p]); + }, e, "textord"), p = NQ(p), p.italic = 0, g = p.width, h && (f += p.depth)), d = Be.makeSpan(["accent-body"], [p]); var m = n.label === "\\textcircled"; m && (d.classes.push("accent-full"), f = s.height); var v = o; @@ -56168,10 +56190,10 @@ var TN = (t, e) => { } var y = Be.makeSpan(["mord", "accent"], [d], e); return i ? (i.children[0] = y, i.height = Math.max(y.height, i.height), i.classes[0] = "mord", i) : y; -}, Aue = (t, e) => { +}, Lue = (t, e) => { var r = t.isStretchy ? Hu.mathMLnode(t.label) : new lt.MathNode("mo", [Ko(t.label, t.mode)]), n = new lt.MathNode("mover", [sn(t.base, e), r]); return n.setAttribute("accent", "true"), n; -}, A8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); +}, L8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); Ct({ type: "accent", names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"], @@ -56179,7 +56201,7 @@ Ct({ numArgs: 1 }, handler: (t, e) => { - var r = ok(e[0]), n = !A8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; + var r = lk(e[0]), n = !L8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; return { type: "accent", mode: t.parser.mode, @@ -56190,7 +56212,7 @@ Ct({ }; }, htmlBuilder: TN, - mathmlBuilder: Aue + mathmlBuilder: Lue }); Ct({ type: "accent", @@ -56213,7 +56235,7 @@ Ct({ }; }, htmlBuilder: TN, - mathmlBuilder: Aue + mathmlBuilder: Lue }); Ct({ type: "accentUnder", @@ -56366,13 +56388,13 @@ Ct({ return n; } }); -var L8t = Be.makeSpan; -function Lue(t, e) { - var r = Mi(t.body, e, !0); - return L8t([t.mclass], r, e); -} +var R8t = Be.makeSpan; function Rue(t, e) { - var r, n = Va(t.body, e); + var r = Di(t.body, e, !0); + return R8t([t.mclass], r, e); +} +function Mue(t, e) { + var r, n = Ua(t.body, e); return t.mclass === "minner" ? r = new lt.MathNode("mpadded", n) : t.mclass === "mord" ? t.isCharacterBox ? (r = n[0], r.type = "mi") : r = new lt.MathNode("mi", n) : (t.isCharacterBox ? (r = n[0], r.type = "mo") : r = new lt.MathNode("mo", n), t.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : t.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : t.mclass === "mopen" || t.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : t.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r; } Ct({ @@ -56395,10 +56417,10 @@ Ct({ isCharacterBox: Gt.isCharacterBox(i) }; }, - htmlBuilder: Lue, - mathmlBuilder: Rue + htmlBuilder: Rue, + mathmlBuilder: Mue }); -var WT = (t) => { +var GT = (t) => { var e = t.type === "ordgroup" && t.body.length ? t.body[0] : t; return e.type === "atom" && (e.family === "bin" || e.family === "rel") ? "m" + e.family : "mord"; }; @@ -56415,7 +56437,7 @@ Ct({ return { type: "mclass", mode: r.mode, - mclass: WT(e[0]), + mclass: GT(e[0]), body: ri(e[1]), isCharacterBox: Gt.isCharacterBox(e[1]) }; @@ -56432,7 +56454,7 @@ Ct({ parser: r, funcName: n } = t, i = e[1], s = e[0], a; - n !== "\\stackrel" ? a = WT(i) : a = "mrel"; + n !== "\\stackrel" ? a = GT(i) : a = "mrel"; var o = { type: "op", mode: i.mode, @@ -56457,8 +56479,8 @@ Ct({ isCharacterBox: Gt.isCharacterBox(l) }; }, - htmlBuilder: Lue, - mathmlBuilder: Rue + htmlBuilder: Rue, + mathmlBuilder: Mue }); Ct({ type: "pmb", @@ -56474,20 +56496,20 @@ Ct({ return { type: "pmb", mode: r.mode, - mclass: WT(e[0]), + mclass: GT(e[0]), body: ri(e[0]) }; }, htmlBuilder(t, e) { - var r = Mi(t.body, e, !0), n = Be.makeSpan([t.mclass], r, e); + var r = Di(t.body, e, !0), n = Be.makeSpan([t.mclass], r, e); return n.style.textShadow = "0.02em 0.01em 0.04px", n; }, mathmlBuilder(t, e) { - var r = Va(t.body, e), n = new lt.MathNode("mstyle", r); + var r = Ua(t.body, e), n = new lt.MathNode("mstyle", r); return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n; } }); -var R8t = { +var M8t = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -56495,14 +56517,14 @@ var R8t = { V: "\\downarrow", "|": "\\Vert", ".": "no arrow" -}, VQ = () => ({ +}, UQ = () => ({ type: "styling", body: [], mode: "math", style: "display" -}), UQ = (t) => t.type === "textord" && t.text === "@", M8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; -function D8t(t, e, r) { - var n = R8t[t]; +}), qQ = (t) => t.type === "textord" && t.text === "@", D8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +function N8t(t, e, r) { + var n = M8t[t]; switch (n) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -56539,7 +56561,7 @@ function D8t(t, e, r) { }; } } -function N8t(t) { +function I8t(t) { var e = []; for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) { e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup(); @@ -56553,8 +56575,8 @@ function N8t(t) { throw new ct("Expected \\\\ or \\cr or \\end", t.nextToken); } for (var n = [], i = [n], s = 0; s < e.length; s++) { - for (var a = e[s], o = VQ(), l = 0; l < a.length; l++) - if (!UQ(a[l])) + for (var a = e[s], o = UQ(), l = 0; l < a.length; l++) + if (!qQ(a[l])) o.body.push(a[l]); else { n.push(o), l += 1; @@ -56571,11 +56593,11 @@ function N8t(t) { if ("<>AV".indexOf(u) > -1) for (var f = 0; f < 2; f++) { for (var d = !0, p = l + 1; p < a.length; p++) { - if (M8t(a[p], u)) { + if (D8t(a[p], u)) { d = !1, l = p; break; } - if (UQ(a[p])) + if (qQ(a[p])) throw new ct("Missing a " + u + " character to complete a CD arrow.", a[p]); h[f].body.push(a[p]); } @@ -56584,13 +56606,13 @@ function N8t(t) { } else throw new ct('Expected one of "<>AV=|." after @', a[l]); - var g = D8t(u, h, t), m = { + var g = N8t(u, h, t), m = { type: "styling", body: [g], mode: "math", style: "display" }; - n.push(m), o = VQ(); + n.push(m), o = UQ(); } s % 2 === 0 ? n.push(o) : n.shift(), n = [], i.push(n); } @@ -56690,11 +56712,11 @@ Ct({ }; } }); -var Mue = (t, e) => { - var r = Mi(t.body, e.withColor(t.color), !1); +var Due = (t, e) => { + var r = Di(t.body, e.withColor(t.color), !1); return Be.makeFragment(r); -}, Due = (t, e) => { - var r = Va(t.body, e.withColor(t.color)), n = new lt.MathNode("mstyle", r); +}, Nue = (t, e) => { + var r = Ua(t.body, e.withColor(t.color)), n = new lt.MathNode("mstyle", r); return n.setAttribute("mathcolor", t.color), n; }; Ct({ @@ -56716,8 +56738,8 @@ Ct({ body: ri(i) }; }, - htmlBuilder: Mue, - mathmlBuilder: Due + htmlBuilder: Due, + mathmlBuilder: Nue }); Ct({ type: "color", @@ -56741,8 +56763,8 @@ Ct({ body: s }; }, - htmlBuilder: Mue, - mathmlBuilder: Due + htmlBuilder: Due, + mathmlBuilder: Nue }); Ct({ type: "cr", @@ -56772,7 +56794,7 @@ Ct({ return t.newLine && (r.setAttribute("linebreak", "newline"), t.size && r.setAttribute("height", vt(Mn(t.size, e)))), r; } }); -var TL = { +var CL = { "\\global": "\\global", "\\long": "\\\\globallong", "\\\\globallong": "\\\\globallong", @@ -56782,15 +56804,15 @@ var TL = { "\\xdef": "\\xdef", "\\let": "\\\\globallet", "\\futurelet": "\\\\globalfuture" -}, Nue = (t) => { +}, Iue = (t) => { var e = t.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new ct("Expected a control sequence", t); return e; -}, I8t = (t) => { +}, P8t = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; -}, Iue = (t, e, r, n) => { +}, Pue = (t, e, r, n) => { var i = t.gullet.macros.get(r.text); i == null && (r.noexpand = !0, i = { tokens: [r], @@ -56816,8 +56838,8 @@ Ct({ } = t; e.consumeSpaces(); var n = e.fetch(); - if (TL[n.text]) - return (r === "\\global" || r === "\\\\globallong") && (n.text = TL[n.text]), gr(e.parseFunction(), "internal"); + if (CL[n.text]) + return (r === "\\global" || r === "\\\\globallong") && (n.text = CL[n.text]), gr(e.parseFunction(), "internal"); throw new ct("Invalid token after macro prefix", n); } }); @@ -56859,7 +56881,7 @@ Ct({ tokens: l, numArgs: s, delimiters: o - }, r === TL[r]), { + }, r === CL[r]), { type: "internal", mode: e.mode }; @@ -56880,10 +56902,10 @@ Ct({ var { parser: e, funcName: r - } = t, n = Nue(e.gullet.popToken()); + } = t, n = Iue(e.gullet.popToken()); e.gullet.consumeSpaces(); - var i = I8t(e); - return Iue(e, n, i, r === "\\\\globallet"), { + var i = P8t(e); + return Pue(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode }; @@ -56904,8 +56926,8 @@ Ct({ var { parser: e, funcName: r - } = t, n = Nue(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); - return Iue(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { + } = t, n = Iue(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); + return Pue(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { type: "internal", mode: e.mode }; @@ -56919,18 +56941,18 @@ var Sv = function(e, r, n) { }, CN = function(e, r, n, i) { var s = n.havingBaseStyle(r), a = Be.makeSpan(i.concat(s.sizingClasses(n)), [e], n), o = s.sizeMultiplier / n.sizeMultiplier; return a.height *= o, a.depth *= o, a.maxFontSize = s.sizeMultiplier, a; -}, Pue = function(e, r, n) { +}, $ue = function(e, r, n) { var i = r.havingBaseStyle(n), s = (1 - r.sizeMultiplier / i.sizeMultiplier) * r.fontMetrics().axisHeight; e.classes.push("delimcenter"), e.style.top = vt(s), e.height -= s, e.depth += s; -}, P8t = function(e, r, n, i, s, a) { +}, $8t = function(e, r, n, i, s, a) { var o = Be.makeSymbol(e, "Main-Regular", s, i), l = CN(o, r, i, a); - return n && Pue(l, i, r), l; -}, $8t = function(e, r, n, i) { + return n && $ue(l, i, r), l; +}, B8t = function(e, r, n, i) { return Be.makeSymbol(e, "Size" + r + "-Regular", n, i); -}, $ue = function(e, r, n, i, s, a) { - var o = $8t(e, r, s, i), l = CN(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); - return n && Pue(l, i, Xt.TEXT), l; -}, d_ = function(e, r, n) { +}, Bue = function(e, r, n, i, s, a) { + var o = B8t(e, r, s, i), l = CN(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); + return n && $ue(l, i, Xt.TEXT), l; +}, p_ = function(e, r, n) { var i; r === "Size1-Regular" ? i = "delim-size1" : i = "delim-size4"; var s = Be.makeSpan(["delimsizinginner", i], [Be.makeSpan([], [Be.makeSymbol(e, r, n)])]); @@ -56938,8 +56960,8 @@ var Sv = function(e, r, n) { type: "elem", elem: s }; -}, p_ = function(e, r, n) { - var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new kf("inner", q7t(e, Math.round(1e3 * r))), a = new Wu([s], { +}, g_ = function(e, r, n) { + var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new kf("inner", Q7t(e, Math.round(1e3 * r))), a = new Wu([s], { width: vt(i), height: vt(r), style: "width:" + vt(i), @@ -56950,24 +56972,24 @@ var Sv = function(e, r, n) { type: "elem", elem: o }; -}, CL = 8e-3, yO = { +}, EL = 8e-3, yO = { type: "kern", - size: -1 * CL -}, B8t = ["|", "\\lvert", "\\rvert", "\\vert"], F8t = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Bue = function(e, r, n, i, s, a) { + size: -1 * EL +}, F8t = ["|", "\\lvert", "\\rvert", "\\vert"], z8t = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Fue = function(e, r, n, i, s, a) { var o, l, u, h, f = "", d = 0; o = u = h = e, l = null; var p = "Size1-Regular"; - e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : Gt.contains(B8t, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(F8t, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); + e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : Gt.contains(F8t, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(z8t, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); var g = Sv(o, p, s), m = g.height + g.depth, v = Sv(u, p, s), y = v.height + v.depth, b = Sv(h, p, s), w = b.height + b.depth, O = 0, S = 1; if (l !== null) { var C = Sv(l, p, s); O = C.height + C.depth, S = 2; } - var T = m + w + O, L = Math.max(0, Math.ceil((r - T) / (S * y))), E = T + L * S * y, A = i.fontMetrics().axisHeight; - n && (A *= i.sizeMultiplier); - var _ = E / 2 - A, R = []; + var T = m + w + O, A = Math.max(0, Math.ceil((r - T) / (S * y))), E = T + A * S * y, L = i.fontMetrics().axisHeight; + n && (L *= i.sizeMultiplier); + var _ = E / 2 - L, R = []; if (f.length > 0) { - var $ = E - m - w, k = Math.round(E * 1e3), N = Q7t(f, Math.round($ * 1e3)), M = new kf(f, N), I = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", P = new Wu([M], { + var $ = E - m - w, k = Math.round(E * 1e3), N = Y7t(f, Math.round($ * 1e3)), M = new kf(f, N), I = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", P = new Wu([M], { width: I, height: D, viewBox: "0 0 " + d + " " + k @@ -56977,14 +56999,14 @@ var Sv = function(e, r, n) { elem: F }); } else { - if (R.push(d_(h, p, s)), R.push(yO), l === null) { - var B = E - m - w + 2 * CL; - R.push(p_(u, B, i)); + if (R.push(p_(h, p, s)), R.push(yO), l === null) { + var B = E - m - w + 2 * EL; + R.push(g_(u, B, i)); } else { - var V = (E - m - w - O) / 2 + 2 * CL; - R.push(p_(u, V, i)), R.push(yO), R.push(d_(l, p, s)), R.push(yO), R.push(p_(u, V, i)); + var V = (E - m - w - O) / 2 + 2 * EL; + R.push(g_(u, V, i)), R.push(yO), R.push(p_(l, p, s)), R.push(yO), R.push(g_(u, V, i)); } - R.push(yO), R.push(d_(o, p, s)); + R.push(yO), R.push(p_(o, p, s)); } var Q = i.havingBaseStyle(Xt.TEXT), W = Be.makeVList({ positionType: "bottom", @@ -56992,28 +57014,28 @@ var Sv = function(e, r, n) { children: R }, Q); return CN(Be.makeSpan(["delimsizing", "mult"], [W], Q), Xt.TEXT, i, a); -}, g_ = 80, m_ = 0.08, v_ = function(e, r, n, i, s) { - var a = U7t(e, i, n), o = new kf(e, a), l = new Wu([o], { +}, m_ = 80, v_ = 0.08, y_ = function(e, r, n, i, s) { + var a = q7t(e, i, n), o = new kf(e, a), l = new Wu([o], { width: "400em", height: vt(r), viewBox: "0 0 400000 " + n, preserveAspectRatio: "xMinYMin slice" }); return Be.makeSvgSpan(["hide-tail"], [l], s); -}, z8t = function(e, r) { - var n = r.havingBaseSizing(), i = Uue("\\surd", e * n.sizeMultiplier, Vue, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; - return i.type === "small" ? (h = 1e3 + 1e3 * a + g_, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + m_) / s, u = (1 + a) / s, o = v_("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + g_) * cy[i.size], u = (cy[i.size] + a) / s, l = (cy[i.size] + a + m_) / s, o = v_("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + m_, u = e + a, h = Math.floor(1e3 * e + a) + g_, o = v_("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = vt(l), { +}, V8t = function(e, r) { + var n = r.havingBaseSizing(), i = que("\\surd", e * n.sizeMultiplier, Uue, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; + return i.type === "small" ? (h = 1e3 + 1e3 * a + m_, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + v_) / s, u = (1 + a) / s, o = y_("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + m_) * cy[i.size], u = (cy[i.size] + a) / s, l = (cy[i.size] + a + v_) / s, o = y_("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + v_, u = e + a, h = Math.floor(1e3 * e + a) + m_, o = y_("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = vt(l), { span: o, advanceWidth: f, ruleWidth: (r.fontMetrics().sqrtRuleThickness + a) * s }; -}, Fue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], V8t = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], zue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], cy = [0, 1.2, 1.8, 2.4, 3], U8t = function(e, r, n, i, s) { - if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), Gt.contains(Fue, e) || Gt.contains(zue, e)) - return $ue(e, r, !1, n, i, s); - if (Gt.contains(V8t, e)) - return Bue(e, cy[r], !1, n, i, s); +}, zue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], U8t = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Vue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], cy = [0, 1.2, 1.8, 2.4, 3], q8t = function(e, r, n, i, s) { + if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), Gt.contains(zue, e) || Gt.contains(Vue, e)) + return Bue(e, r, !1, n, i, s); + if (Gt.contains(U8t, e)) + return Fue(e, cy[r], !1, n, i, s); throw new ct("Illegal delimiter: '" + e + "'"); -}, q8t = [{ +}, Q8t = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57034,7 +57056,7 @@ var Sv = function(e, r, n) { }, { type: "large", size: 4 -}], Q8t = [{ +}], Y8t = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57045,7 +57067,7 @@ var Sv = function(e, r, n) { style: Xt.TEXT }, { type: "stack" -}], Vue = [{ +}], Uue = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57068,7 +57090,7 @@ var Sv = function(e, r, n) { size: 4 }, { type: "stack" -}], Y8t = function(e) { +}], W8t = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -57076,9 +57098,9 @@ var Sv = function(e, r, n) { if (e.type === "stack") return "Size4-Regular"; throw new Error("Add support for delim type '" + e.type + "' here."); -}, Uue = function(e, r, n, i) { +}, que = function(e, r, n, i) { for (var s = Math.min(2, 3 - i.style.size), a = s; a < n.length && n[a].type !== "stack"; a++) { - var o = Sv(e, Y8t(n[a]), "math"), l = o.height + o.depth; + var o = Sv(e, W8t(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { var u = i.havingBaseStyle(n[a].style); l *= u.sizeMultiplier; @@ -57087,25 +57109,25 @@ var Sv = function(e, r, n) { return n[a]; } return n[n.length - 1]; -}, que = function(e, r, n, i, s, a) { +}, Que = function(e, r, n, i, s, a) { e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"); var o; - Gt.contains(zue, e) ? o = q8t : Gt.contains(Fue, e) ? o = Vue : o = Q8t; - var l = Uue(e, r, o, i); - return l.type === "small" ? P8t(e, l.style, n, i, s, a) : l.type === "large" ? $ue(e, l.size, n, i, s, a) : Bue(e, r, n, i, s, a); -}, W8t = function(e, r, n, i, s, a) { + Gt.contains(Vue, e) ? o = Q8t : Gt.contains(zue, e) ? o = Uue : o = Y8t; + var l = que(e, r, o, i); + return l.type === "small" ? $8t(e, l.style, n, i, s, a) : l.type === "large" ? Bue(e, l.size, n, i, s, a) : Fue(e, r, n, i, s, a); +}, G8t = function(e, r, n, i, s, a) { var o = i.fontMetrics().axisHeight * i.sizeMultiplier, l = 901, u = 5 / i.fontMetrics().ptPerEm, h = Math.max(r - o, n + o), f = Math.max( h / 500 * l, 2 * h - u ); - return que(e, f, !0, i, s, a); + return Que(e, f, !0, i, s, a); }, Mu = { - sqrtImage: z8t, - sizedDelim: U8t, + sqrtImage: V8t, + sizedDelim: q8t, sizeToMaxHeight: cy, - customSizedDelim: que, - leftRightDelim: W8t -}, qQ = { + customSizedDelim: Que, + leftRightDelim: G8t +}, QQ = { "\\bigl": { mclass: "mopen", size: 1 @@ -57170,10 +57192,10 @@ var Sv = function(e, r, n) { mclass: "mord", size: 4 } -}, G8t = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; -function GT(t, e) { - var r = YT(t); - if (r && Gt.contains(G8t, r.text)) +}, H8t = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; +function HT(t, e) { + var r = WT(t); + if (r && Gt.contains(H8t, r.text)) return r; throw r ? new ct("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new ct("Invalid delimiter type '" + t.type + "'", t); } @@ -57185,12 +57207,12 @@ Ct({ argTypes: ["primitive"] }, handler: (t, e) => { - var r = GT(e[0], t); + var r = HT(e[0], t); return { type: "delimsizing", mode: t.parser.mode, - size: qQ[t.funcName].size, - mclass: qQ[t.funcName].mclass, + size: QQ[t.funcName].size, + mclass: QQ[t.funcName].mclass, delim: r.text }; }, @@ -57204,7 +57226,7 @@ Ct({ return r.setAttribute("minsize", n), r.setAttribute("maxsize", n), r; } }); -function QQ(t) { +function YQ(t) { if (!t.body) throw new Error("Bug: The leftright ParseNode wasn't fully parsed."); } @@ -57222,7 +57244,7 @@ Ct({ return { type: "leftright-right", mode: t.parser.mode, - delim: GT(e[0], t).text, + delim: HT(e[0], t).text, color: r }; } @@ -57235,7 +57257,7 @@ Ct({ primitive: !0 }, handler: (t, e) => { - var r = GT(e[0], t), n = t.parser; + var r = HT(e[0], t), n = t.parser; ++n.leftrightDepth; var i = n.parseExpression(!1); --n.leftrightDepth, n.expect("\\right", !1); @@ -57250,8 +57272,8 @@ Ct({ }; }, htmlBuilder: (t, e) => { - QQ(t); - for (var r = Mi(t.body, e, !0, ["mopen", "mclose"]), n = 0, i = 0, s = !1, a = 0; a < r.length; a++) + YQ(t); + for (var r = Di(t.body, e, !0, ["mopen", "mclose"]), n = 0, i = 0, s = !1, a = 0; a < r.length; a++) r[a].isMiddle ? s = !0 : (n = Math.max(r[a].height, n), i = Math.max(r[a].depth, i)); n *= e.sizeMultiplier, i *= e.sizeMultiplier; var o; @@ -57270,8 +57292,8 @@ Ct({ return r.push(f), Be.makeSpan(["minner"], r, e); }, mathmlBuilder: (t, e) => { - QQ(t); - var r = Va(t.body, e); + YQ(t); + var r = Ua(t.body, e); if (t.left !== ".") { var n = new lt.MathNode("mo", [Ko(t.left, t.mode)]); n.setAttribute("fence", "true"), r.unshift(n); @@ -57291,7 +57313,7 @@ Ct({ primitive: !0 }, handler: (t, e) => { - var r = GT(e[0], t); + var r = HT(e[0], t); if (!t.parser.leftrightDepth) throw new ct("\\middle without preceding \\left", r); return { @@ -57334,7 +57356,7 @@ var EN = (t, e) => { i = i / h.sizeMultiplier; var f = r.height + r.depth + l + u; r.style.paddingLeft = vt(f / 2 + l); - var d = Math.floor(1e3 * f * i), p = z7t(d), g = new Wu([new kf("phase", p)], { + var d = Math.floor(1e3 * f * i), p = V7t(d), g = new Wu([new kf("phase", p)], { width: "400em", height: vt(d / 1e3), viewBox: "0 0 400000 " + d, @@ -57533,7 +57555,7 @@ Ct({ }; } }); -var Que = {}; +var Yue = {}; function Kc(t) { for (var { type: e, @@ -57549,14 +57571,14 @@ function Kc(t) { numOptionalArgs: 0, handler: i }, l = 0; l < r.length; ++l) - Que[r[l]] = o; - s && (sk[e] = s), a && (ak[e] = a); + Yue[r[l]] = o; + s && (ak[e] = s), a && (ok[e] = a); } -var Yue = {}; +var Wue = {}; function le(t, e) { - Yue[t] = e; + Wue[t] = e; } -function YQ(t) { +function WQ(t) { var e = []; t.consumeSpaces(); var r = t.fetch().text; @@ -57564,7 +57586,7 @@ function YQ(t) { t.consume(), e.push(r === "\\hdashline"), t.consumeSpaces(), r = t.fetch().text; return e; } -var HT = (t) => { +var XT = (t) => { var e = t.parser.settings; if (!e.displayMode) throw new ct("{" + t.envName + "} can be used only in display mode."); @@ -57601,7 +57623,7 @@ function Vf(t, e, r) { function O() { b && (t.gullet.macros.get("\\df@tag") ? (b.push(t.subparse([new zo("\\df@tag")])), t.gullet.macros.set("\\df@tag", void 0, !0)) : b.push(Boolean(l) && t.gullet.macros.get("\\@eqnsw") === "1")); } - for (w(), y.push(YQ(t)); ; ) { + for (w(), y.push(WQ(t)); ; ) { var S = t.parseExpression(!1, u ? "\\end" : "\\\\"); t.gullet.endGroup(), t.gullet.beginGroup(), S = { type: "ordgroup", @@ -57627,7 +57649,7 @@ function Vf(t, e, r) { } else if (C === "\\\\") { t.consume(); var T = void 0; - t.gullet.future().text !== " " && (T = t.parseSizeGroup(!0)), v.push(T ? T.value : null), O(), y.push(YQ(t)), g = [], m.push(g), w(); + t.gullet.future().text !== " " && (T = t.parseSizeGroup(!0)), v.push(T ? T.value : null), O(), y.push(WQ(t)), g = [], m.push(g), w(); } else throw new ct("Expected & or \\\\ or \\cr or \\end", t.nextToken); } @@ -57672,19 +57694,19 @@ var Jc = function(e, r) { for (O(a[0]), n = 0; n < e.body.length; ++n) { var S = e.body[n], C = y, T = b; o < S.length && (o = S.length); - var L = new Array(S.length); + var A = new Array(S.length); for (i = 0; i < S.length; ++i) { var E = Lr(S[i], r); - T < E.depth && (T = E.depth), C < E.height && (C = E.height), L[i] = E; + T < E.depth && (T = E.depth), C < E.height && (C = E.height), A[i] = E; } - var A = e.rowGaps[n], _ = 0; - A && (_ = Mn(A, r), _ > 0 && (_ += b, T < _ && (T = _), _ = 0)), e.addJot && (T += m), L.height = C, L.depth = T, w += C, L.pos = w, w += T + _, l[n] = L, O(a[n + 1]); + var L = e.rowGaps[n], _ = 0; + L && (_ = Mn(L, r), _ > 0 && (_ += b, T < _ && (T = _), _ = 0)), e.addJot && (T += m), A.height = C, A.depth = T, w += C, A.pos = w, w += T + _, l[n] = A, O(a[n + 1]); } var R = w / 2 + r.fontMetrics().axisHeight, $ = e.cols || [], k = [], N, M, I = []; if (e.tags && e.tags.some((Ee) => Ee)) for (n = 0; n < s; ++n) { var D = l[n], P = D.pos - R, F = e.tags[n], B = void 0; - F === !0 ? B = Be.makeSpan(["eqn-num"], [], r) : F === !1 ? B = Be.makeSpan([], [], r) : B = Be.makeSpan([], Mi(F, r, !0), r), B.depth = D.depth, B.height = D.height, I.push({ + F === !0 ? B = Be.makeSpan(["eqn-num"], [], r) : F === !1 ? B = Be.makeSpan([], [], r) : B = Be.makeSpan([], Di(F, r, !0), r), B.depth = D.depth, B.height = D.height, I.push({ type: "elem", elem: B, shift: P @@ -57751,7 +57773,7 @@ var Jc = function(e, r) { children: I }, r); return ce = Be.makeSpan(["tag"], [ce], r), Be.makeFragment([l, ce]); -}, H8t = { +}, X8t = { c: "center ", l: "left ", r: "right " @@ -57768,7 +57790,7 @@ var Jc = function(e, r) { var g = e.cols, m = "", v = !1, y = 0, b = g.length; g[0].type === "separator" && (d += "top ", y = 1), g[g.length - 1].type === "separator" && (d += "bottom ", b -= 1); for (var w = y; w < b; w++) - g[w].type === "align" ? (p += H8t[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); + g[w].type === "align" ? (p += X8t[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); h.setAttribute("columnalign", p.trim()), /[sd]/.test(m) && h.setAttribute("columnlines", m.trim()); } if (e.colSeparationType === "align") { @@ -57777,13 +57799,13 @@ var Jc = function(e, r) { h.setAttribute("columnspacing", S.trim()); } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? h.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? h.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? h.setAttribute("columnspacing", "0.5em") : h.setAttribute("columnspacing", "1em"); - var T = "", L = e.hLinesBeforeRow; - d += L[0].length > 0 ? "left " : "", d += L[L.length - 1].length > 0 ? "right " : ""; - for (var E = 1; E < L.length - 1; E++) - T += L[E].length === 0 ? "none " : L[E][0] ? "dashed " : "solid "; + var T = "", A = e.hLinesBeforeRow; + d += A[0].length > 0 ? "left " : "", d += A[A.length - 1].length > 0 ? "right " : ""; + for (var E = 1; E < A.length - 1; E++) + T += A[E].length === 0 ? "none " : A[E][0] ? "dashed " : "solid "; return /[sd]/.test(T) && h.setAttribute("rowlines", T.trim()), d !== "" && (h = new lt.MathNode("menclose", [h]), h.setAttribute("notation", d.trim())), e.arraystretch && e.arraystretch < 1 && (h = new lt.MathNode("mstyle", [h]), h.setAttribute("scriptlevel", "1")), h; -}, Wue = function(e, r) { - e.envName.indexOf("ed") === -1 && HT(e); +}, Gue = function(e, r) { + e.envName.indexOf("ed") === -1 && XT(e); var n = [], i = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", a = Vf(e.parser, { cols: n, addJot: !0, @@ -57836,7 +57858,7 @@ Kc({ numArgs: 1 }, handler(t, e) { - var r = YT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { + var r = WT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { var o = SN(a), l = o.text; if ("lcr".indexOf(l) !== -1) return { @@ -57934,7 +57956,7 @@ Kc({ numArgs: 1 }, handler(t, e) { - var r = YT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { + var r = WT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { var o = SN(a), l = o.text; if ("lc".indexOf(l) !== -1) return { @@ -57996,7 +58018,7 @@ Kc({ props: { numArgs: 0 }, - handler: Wue, + handler: Gue, htmlBuilder: Jc, mathmlBuilder: eu }); @@ -58007,7 +58029,7 @@ Kc({ numArgs: 0 }, handler(t) { - Gt.contains(["gather", "gather*"], t.envName) && HT(t); + Gt.contains(["gather", "gather*"], t.envName) && XT(t); var e = { cols: [{ type: "align", @@ -58030,7 +58052,7 @@ Kc({ props: { numArgs: 1 }, - handler: Wue, + handler: Gue, htmlBuilder: Jc, mathmlBuilder: eu }); @@ -58041,7 +58063,7 @@ Kc({ numArgs: 0 }, handler(t) { - HT(t); + XT(t); var e = { autoTag: AN(t.envName), emptySingleRow: !0, @@ -58061,7 +58083,7 @@ Kc({ numArgs: 0 }, handler(t) { - return HT(t), N8t(t.parser); + return XT(t), I8t(t.parser); }, htmlBuilder: Jc, mathmlBuilder: eu @@ -58080,7 +58102,7 @@ Ct({ throw new ct(t.funcName + " valid only within array environment"); } }); -var WQ = Que; +var GQ = Yue; Ct({ type: "environment", names: ["\\begin", "\\end"], @@ -58098,9 +58120,9 @@ Ct({ for (var s = "", a = 0; a < i.body.length; ++a) s += gr(i.body[a], "textord").text; if (n === "\\begin") { - if (!WQ.hasOwnProperty(s)) + if (!GQ.hasOwnProperty(s)) throw new ct("No such environment: " + s, i); - var o = WQ[s], { + var o = GQ[s], { args: l, optArgs: u } = r.parseArguments("\\begin{" + s + "}", o), h = { @@ -58122,13 +58144,13 @@ Ct({ }; } }); -var Gue = (t, e) => { +var Hue = (t, e) => { var r = t.font, n = e.withFont(r); return Lr(t.body, n); -}, Hue = (t, e) => { +}, Xue = (t, e) => { var r = t.font, n = e.withFont(r); return sn(t.body, n); -}, GQ = { +}, HQ = { "\\Bbb": "\\mathbb", "\\bold": "\\mathbf", "\\frak": "\\mathfrak", @@ -58159,16 +58181,16 @@ Ct({ var { parser: r, funcName: n - } = t, i = ok(e[0]), s = n; - return s in GQ && (s = GQ[s]), { + } = t, i = lk(e[0]), s = n; + return s in HQ && (s = HQ[s]), { type: "font", mode: r.mode, font: s.slice(1), body: i }; }, - htmlBuilder: Gue, - mathmlBuilder: Hue + htmlBuilder: Hue, + mathmlBuilder: Xue }); Ct({ type: "mclass", @@ -58183,7 +58205,7 @@ Ct({ return { type: "mclass", mode: r.mode, - mclass: WT(n), + mclass: GT(n), body: [{ type: "font", mode: r.mode, @@ -58220,14 +58242,14 @@ Ct({ } }; }, - htmlBuilder: Gue, - mathmlBuilder: Hue + htmlBuilder: Hue, + mathmlBuilder: Xue }); -var Xue = (t, e) => { +var Zue = (t, e) => { var r = e; return t === "display" ? r = r.id >= Xt.SCRIPT.id ? r.text() : Xt.DISPLAY : t === "text" && r.size === Xt.DISPLAY.size ? r = Xt.TEXT : t === "script" ? r = Xt.SCRIPT : t === "scriptscript" && (r = Xt.SCRIPTSCRIPT), r; }, RN = (t, e) => { - var r = Xue(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; + var r = Zue(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; s = e.havingStyle(n); var a = Lr(t.numer, s, e); if (t.continued) { @@ -58288,7 +58310,7 @@ var Xue = (t, e) => { var n = Mn(t.barSize, e); r.setAttribute("linethickness", vt(n)); } - var i = Xue(t.size, e.style); + var i = Zue(t.size, e.style); if (i.size !== e.style.size) { r = new lt.MathNode("mstyle", [r]); var s = i.size === Xt.DISPLAY.size ? "true" : "false"; @@ -58444,7 +58466,7 @@ Ct({ }; } }); -var HQ = ["display", "text", "script", "scriptscript"], XQ = function(e) { +var XQ = ["display", "text", "script", "scriptscript"], ZQ = function(e) { var r = null; return e.length > 0 && (r = e, r = r === "." ? null : r), r; }; @@ -58459,16 +58481,16 @@ Ct({ handler(t, e) { var { parser: r - } = t, n = e[4], i = e[5], s = ok(e[0]), a = s.type === "atom" && s.family === "open" ? XQ(s.text) : null, o = ok(e[1]), l = o.type === "atom" && o.family === "close" ? XQ(o.text) : null, u = gr(e[2], "size"), h, f = null; + } = t, n = e[4], i = e[5], s = lk(e[0]), a = s.type === "atom" && s.family === "open" ? ZQ(s.text) : null, o = lk(e[1]), l = o.type === "atom" && o.family === "close" ? ZQ(o.text) : null, u = gr(e[2], "size"), h, f = null; u.isBlank ? h = !0 : (f = u.value, h = f.number > 0); var d = "auto", p = e[3]; if (p.type === "ordgroup") { if (p.body.length > 0) { var g = gr(p.body[0], "textord"); - d = HQ[Number(g.text)]; + d = XQ[Number(g.text)]; } } else - p = gr(p, "textord"), d = HQ[Number(p.text)]; + p = gr(p, "textord"), d = XQ[Number(p.text)]; return { type: "genfrac", mode: r.mode, @@ -58519,7 +58541,7 @@ Ct({ var { parser: r, funcName: n - } = t, i = e[0], s = T7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; + } = t, i = e[0], s = C7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; return { type: "genfrac", mode: r.mode, @@ -58536,7 +58558,7 @@ Ct({ htmlBuilder: RN, mathmlBuilder: MN }); -var Zue = (t, e) => { +var jue = (t, e) => { var r = e.style, n, i; t.type === "supsub" ? (n = t.sup ? Lr(t.sup, e.havingStyle(r.sup()), e) : Lr(t.sub, e.havingStyle(r.sub()), e), i = gr(t.base, "horizBrace")) : i = gr(t, "horizBrace"); var s = Lr(i.base, e.havingBaseStyle(Xt.DISPLAY)), a = Hu.svgSpan(i, e), o; @@ -58595,7 +58617,7 @@ var Zue = (t, e) => { }, e); } return Be.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], e); -}, X8t = (t, e) => { +}, Z8t = (t, e) => { var r = Hu.mathMLnode(t.label); return new lt.MathNode(t.isOver ? "mover" : "munder", [sn(t.base, e), r]); }; @@ -58618,8 +58640,8 @@ Ct({ base: e[0] }; }, - htmlBuilder: Zue, - mathmlBuilder: X8t + htmlBuilder: jue, + mathmlBuilder: Z8t }); Ct({ type: "href", @@ -58644,7 +58666,7 @@ Ct({ } : r.formatUnsupportedCmd("\\href"); }, htmlBuilder: (t, e) => { - var r = Mi(t.body, e, !1); + var r = Di(t.body, e, !1); return Be.makeAnchor(t.href, [], r, e); }, mathmlBuilder: (t, e) => { @@ -58711,11 +58733,11 @@ Ct({ }; }, htmlBuilder(t, e) { - var r = Mi(t.body, e, !1); + var r = Di(t.body, e, !1); return Be.makeFragment(r); }, mathmlBuilder(t, e) { - return new lt.MathNode("mrow", Va(t.body, e)); + return new lt.MathNode("mrow", Ua(t.body, e)); } }); Ct({ @@ -58777,7 +58799,7 @@ Ct({ } : r.formatUnsupportedCmd(n); }, htmlBuilder: (t, e) => { - var r = Mi(t.body, e, !1), n = ["enclosing"]; + var r = Di(t.body, e, !1), n = ["enclosing"]; t.attributes.class && n.push(...t.attributes.class.trim().split(/\s+/)); var i = Be.makeSpan(n, r, e); for (var s in t.attributes) @@ -58805,12 +58827,12 @@ Ct({ }; }, htmlBuilder: (t, e) => { - var r = Mi(t.html, e, !1); + var r = Di(t.html, e, !1); return Be.makeFragment(r); }, mathmlBuilder: (t, e) => Sf(t.mathml, e) }); -var y_ = function(e) { +var b_ = function(e) { if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e)) return { number: +e, @@ -58823,7 +58845,7 @@ var y_ = function(e) { number: +(r[1] + r[2]), unit: r[3] }; - if (!gue(n)) + if (!mue(n)) throw new ct("Invalid unit: '" + n.unit + "' in \\includegraphics."); return n; }; @@ -58859,13 +58881,13 @@ Ct({ o = d; break; case "width": - i = y_(d); + i = b_(d); break; case "height": - s = y_(d); + s = b_(d); break; case "totalheight": - a = y_(d); + a = b_(d); break; default: throw new ct("Invalid key: '" + f[0] + "' in \\includegraphics."); @@ -58895,7 +58917,7 @@ Ct({ height: vt(r + n) }; i > 0 && (s.width = vt(i)), n > 0 && (s.verticalAlign = vt(-n)); - var a = new X7t(t.src, t.alt, s); + var a = new Z7t(t.src, t.alt, s); return a.height = r, a.depth = n, a; }, mathmlBuilder: (t, e) => { @@ -59010,7 +59032,7 @@ Ct({ throw new ct("Mismatched " + t.funcName); } }); -var ZQ = (t, e) => { +var jQ = (t, e) => { switch (e.style.size) { case Xt.DISPLAY.size: return t.display; @@ -59045,15 +59067,15 @@ Ct({ }; }, htmlBuilder: (t, e) => { - var r = ZQ(t, e), n = Mi(r, e, !1); + var r = jQ(t, e), n = Di(r, e, !1); return Be.makeFragment(n); }, mathmlBuilder: (t, e) => { - var r = ZQ(t, e); + var r = jQ(t, e); return Sf(r, e); } }); -var jue = (t, e, r, n, i, s, a) => { +var Kue = (t, e, r, n, i, s, a) => { t = Be.makeSpan([], [t]); var o = r && Gt.isCharacterBox(r), l, u; if (e) { @@ -59149,11 +59171,11 @@ var jue = (t, e, r, n, i, s, a) => { y.style.marginRight = vt(s), v.unshift(y); } return Be.makeSpan(["mop", "op-limits"], v, n); -}, Kue = ["\\smallint"], rm = (t, e) => { +}, Jue = ["\\smallint"], rm = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = gr(t.base, "op"), i = !0) : s = gr(t, "op"); var a = e.style, o = !1; - a.size === Xt.DISPLAY.size && s.symbol && !Gt.contains(Kue, s.name) && (o = !0); + a.size === Xt.DISPLAY.size && s.symbol && !Gt.contains(Jue, s.name) && (o = !0); var l; if (s.symbol) { var u = o ? "Size2-Regular" : "Size1-Regular", h = ""; @@ -59173,7 +59195,7 @@ var jue = (t, e, r, n, i, s, a) => { }, e), s.name = "\\" + h, l.classes.unshift("mop"), l.italic = f; } } else if (s.body) { - var p = Mi(s.body, e, !0); + var p = Di(s.body, e, !0); p.length === 1 && p[0] instanceof jo ? (l = p[0], l.classes[0] = "mop") : l = Be.makeSpan(["mop"], p, e); } else { for (var g = [], m = 1; m < s.name.length; m++) @@ -59181,20 +59203,20 @@ var jue = (t, e, r, n, i, s, a) => { l = Be.makeSpan(["mop"], g, e); } var v = 0, y = 0; - return (l instanceof jo || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? jue(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = vt(v)), l); + return (l instanceof jo || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? Kue(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = vt(v)), l); }, Tx = (t, e) => { var r; if (t.symbol) - r = new Lo("mo", [Ko(t.name, t.mode)]), Gt.contains(Kue, t.name) && r.setAttribute("largeop", "false"); + r = new Lo("mo", [Ko(t.name, t.mode)]), Gt.contains(Jue, t.name) && r.setAttribute("largeop", "false"); else if (t.body) - r = new Lo("mo", Va(t.body, e)); + r = new Lo("mo", Ua(t.body, e)); else { r = new Lo("mi", [new ly(t.name.slice(1))]); var n = new Lo("mo", [Ko("\u2061", "text")]); - t.parentIsSupSub ? r = new Lo("mrow", [r, n]) : r = Cue([r, n]); + t.parentIsSupSub ? r = new Lo("mrow", [r, n]) : r = Eue([r, n]); } return r; -}, Z8t = { +}, j8t = { "\u220F": "\\prod", "\u2210": "\\coprod", "\u2211": "\\sum", @@ -59219,7 +59241,7 @@ Ct({ parser: r, funcName: n } = t, i = n; - return i.length === 1 && (i = Z8t[i]), { + return i.length === 1 && (i = j8t[i]), { type: "op", mode: r.mode, limits: !0, @@ -59254,7 +59276,7 @@ Ct({ htmlBuilder: rm, mathmlBuilder: Tx }); -var j8t = { +var K8t = { "\u222B": "\\int", "\u222C": "\\iint", "\u222D": "\\iiint", @@ -59319,7 +59341,7 @@ Ct({ parser: e, funcName: r } = t, n = r; - return n.length === 1 && (n = j8t[n]), { + return n.length === 1 && (n = K8t[n]), { type: "op", mode: e.mode, limits: !1, @@ -59331,7 +59353,7 @@ Ct({ htmlBuilder: rm, mathmlBuilder: Tx }); -var Jue = (t, e) => { +var ehe = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = gr(t.base, "operatorname"), i = !0) : s = gr(t, "operatorname"); var a; @@ -59343,16 +59365,16 @@ var Jue = (t, e) => { mode: f.mode, text: d } : f; - }), l = Mi(o, e.withFont("mathrm"), !0), u = 0; u < l.length; u++) { + }), l = Di(o, e.withFont("mathrm"), !0), u = 0; u < l.length; u++) { var h = l[u]; h instanceof jo && (h.text = h.text.replace(/\u2212/, "-").replace(/\u2217/, "*")); } a = Be.makeSpan(["mop"], l, e); } else a = Be.makeSpan(["mop"], [], e); - return i ? jue(a, r, n, e, e.style, 0, 0) : a; -}, K8t = (t, e) => { - for (var r = Va(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { + return i ? Kue(a, r, n, e, e.style, 0, 0) : a; +}, J8t = (t, e) => { + for (var r = Ua(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; if (!(s instanceof lt.SpaceNode)) if (s instanceof lt.MathNode) @@ -59403,14 +59425,14 @@ Ct({ parentIsSupSub: !1 }; }, - htmlBuilder: Jue, - mathmlBuilder: K8t + htmlBuilder: ehe, + mathmlBuilder: J8t }); le("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); X0({ type: "ordgroup", htmlBuilder(t, e) { - return t.semisimple ? Be.makeFragment(Mi(t.body, e, !1)) : Be.makeSpan(["mord"], Mi(t.body, e, !0), e); + return t.semisimple ? Be.makeFragment(Di(t.body, e, !1)) : Be.makeSpan(["mord"], Di(t.body, e, !0), e); }, mathmlBuilder(t, e) { return Sf(t.body, e, !0); @@ -59476,11 +59498,11 @@ Ct({ }; }, htmlBuilder: (t, e) => { - var r = Mi(t.body, e.withPhantom(), !1); + var r = Di(t.body, e.withPhantom(), !1); return Be.makeFragment(r); }, mathmlBuilder: (t, e) => { - var r = Va(t.body, e); + var r = Ua(t.body, e); return new lt.MathNode("mphantom", r); } }); @@ -59515,7 +59537,7 @@ Ct({ }, e), Be.makeSpan(["mord"], [r], e); }, mathmlBuilder: (t, e) => { - var r = Va(ri(t.body), e), n = new lt.MathNode("mphantom", r), i = new lt.MathNode("mpadded", [n]); + var r = Ua(ri(t.body), e), n = new lt.MathNode("mphantom", r), i = new lt.MathNode("mpadded", [n]); return i.setAttribute("height", "0px"), i.setAttribute("depth", "0px"), i; } }); @@ -59541,7 +59563,7 @@ Ct({ return Be.makeSpan(["mord", "rlap"], [r, n], e); }, mathmlBuilder: (t, e) => { - var r = Va(ri(t.body), e), n = new lt.MathNode("mphantom", r), i = new lt.MathNode("mpadded", [n]); + var r = Ua(ri(t.body), e), n = new lt.MathNode("mphantom", r), i = new lt.MathNode("mpadded", [n]); return i.setAttribute("width", "0px"), i; } }); @@ -59628,20 +59650,20 @@ Ct({ return i >= 0 ? o.setAttribute("height", vt(i)) : (o.setAttribute("height", vt(i)), o.setAttribute("depth", vt(-i))), o.setAttribute("voffset", vt(i)), o; } }); -function ehe(t, e, r) { - for (var n = Mi(t, e, !1), i = e.sizeMultiplier / r.sizeMultiplier, s = 0; s < n.length; s++) { +function the(t, e, r) { + for (var n = Di(t, e, !1), i = e.sizeMultiplier / r.sizeMultiplier, s = 0; s < n.length; s++) { var a = n[s].classes.indexOf("sizing"); a < 0 ? Array.prototype.push.apply(n[s].classes, e.sizingClasses(r)) : n[s].classes[a + 1] === "reset-size" + e.size && (n[s].classes[a + 1] = "reset-size" + r.size), n[s].height *= i, n[s].depth *= i; } return Be.makeFragment(n); } -var jQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], J8t = (t, e) => { +var KQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], eLt = (t, e) => { var r = e.havingSize(t.size); - return ehe(t.body, r, e); + return the(t.body, r, e); }; Ct({ type: "sizing", - names: jQ, + names: KQ, props: { numArgs: 0, allowedInText: !0 @@ -59655,13 +59677,13 @@ Ct({ return { type: "sizing", mode: i.mode, - size: jQ.indexOf(n) + 1, + size: KQ.indexOf(n) + 1, body: s }; }, - htmlBuilder: J8t, + htmlBuilder: eLt, mathmlBuilder: (t, e) => { - var r = e.havingSize(t.size), n = Va(t.body, r), i = new lt.MathNode("mstyle", n); + var r = e.havingSize(t.size), n = Ua(t.body, r), i = new lt.MathNode("mstyle", n); return i.setAttribute("mathsize", vt(r.sizeMultiplier)), i; } }); @@ -59793,7 +59815,7 @@ Ct({ return n ? new lt.MathNode("mroot", [sn(r, e), sn(n, e)]) : new lt.MathNode("msqrt", [sn(r, e)]); } }); -var KQ = { +var JQ = { display: Xt.DISPLAY, text: Xt.TEXT, script: Xt.SCRIPT, @@ -59821,11 +59843,11 @@ Ct({ }; }, htmlBuilder(t, e) { - var r = KQ[t.style], n = e.havingStyle(r).withFont(""); - return ehe(t.body, n, e); + var r = JQ[t.style], n = e.havingStyle(r).withFont(""); + return the(t.body, n, e); }, mathmlBuilder(t, e) { - var r = KQ[t.style], n = e.havingStyle(r), i = Va(t.body, n), s = new lt.MathNode("mstyle", i), a = { + var r = JQ[t.style], n = e.havingStyle(r), i = Ua(t.body, n), s = new lt.MathNode("mstyle", i), a = { display: ["0", "true"], text: ["0", "false"], script: ["1", "false"], @@ -59834,7 +59856,7 @@ Ct({ return s.setAttribute("scriptlevel", o[0]), s.setAttribute("displaystyle", o[1]), s; } }); -var eLt = function(e, r) { +var tLt = function(e, r) { var n = e.base; if (n) if (n.type === "op") { @@ -59842,13 +59864,13 @@ var eLt = function(e, r) { return i ? rm : null; } else if (n.type === "operatorname") { var s = n.alwaysHandleSupSub && (r.style.size === Xt.DISPLAY.size || n.limits); - return s ? Jue : null; + return s ? ehe : null; } else { if (n.type === "accent") return Gt.isCharacterBox(n.base) ? TN : null; if (n.type === "horizBrace") { var a = !e.sub; - return a === n.isOver ? Zue : null; + return a === n.isOver ? jue : null; } else return null; } @@ -59858,7 +59880,7 @@ var eLt = function(e, r) { X0({ type: "supsub", htmlBuilder(t, e) { - var r = eLt(t, e); + var r = tLt(t, e); if (r) return r(t, e); var { @@ -59890,7 +59912,7 @@ X0({ var T = 0.8 * u.xHeight - (h - o.depth); T > 0 && (h += T, f -= T); } - var L = [{ + var A = [{ type: "elem", elem: l, shift: f, @@ -59904,7 +59926,7 @@ X0({ }]; O = Be.makeVList({ positionType: "individualShift", - children: L + children: A }, e); } else if (l) { f = Math.max(f, u.sub1, l.height - 0.8 * u.xHeight); @@ -59931,8 +59953,8 @@ X0({ }, e); else throw new Error("supsub must have either sup or sub."); - var A = kL(a, "right") || "mord"; - return Be.makeSpan([A], [a, Be.makeSpan(["msupsub"], [O])], e); + var L = SL(a, "right") || "mord"; + return Be.makeSpan([L], [a, Be.makeSpan(["msupsub"], [O])], e); }, mathmlBuilder(t, e) { var r = !1, n, i; @@ -59972,7 +59994,7 @@ X0({ return r; } }); -var the = { +var rhe = { mi: "italic", mn: "normal", mtext: "normal" @@ -59984,7 +60006,7 @@ X0({ }, mathmlBuilder(t, e) { var r = new lt.MathNode("mi", [Ko(t.text, t.mode, e)]), n = kN(t, e) || "italic"; - return n !== the[r.type] && r.setAttribute("mathvariant", n), r; + return n !== rhe[r.type] && r.setAttribute("mathvariant", n), r; } }); X0({ @@ -59994,13 +60016,13 @@ X0({ }, mathmlBuilder(t, e) { var r = Ko(t.text, t.mode, e), n = kN(t, e) || "normal", i; - return t.mode === "text" ? i = new lt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new lt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new lt.MathNode("mo", [r]) : i = new lt.MathNode("mi", [r]), n !== the[i.type] && i.setAttribute("mathvariant", n), i; + return t.mode === "text" ? i = new lt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new lt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new lt.MathNode("mo", [r]) : i = new lt.MathNode("mi", [r]), n !== rhe[i.type] && i.setAttribute("mathvariant", n), i; } }); -var b_ = { +var x_ = { "\\nobreak": "nobreak", "\\allowbreak": "allowbreak" -}, x_ = { +}, w_ = { " ": {}, "\\ ": {}, "~": { @@ -60014,66 +60036,66 @@ var b_ = { X0({ type: "spacing", htmlBuilder(t, e) { - if (x_.hasOwnProperty(t.text)) { - var r = x_[t.text].className || ""; + if (w_.hasOwnProperty(t.text)) { + var r = w_[t.text].className || ""; if (t.mode === "text") { var n = Be.makeOrd(t, e, "textord"); return n.classes.push(r), n; } else return Be.makeSpan(["mspace", r], [Be.mathsym(t.text, t.mode, e)], e); } else { - if (b_.hasOwnProperty(t.text)) - return Be.makeSpan(["mspace", b_[t.text]], [], e); + if (x_.hasOwnProperty(t.text)) + return Be.makeSpan(["mspace", x_[t.text]], [], e); throw new ct('Unknown type of space "' + t.text + '"'); } }, mathmlBuilder(t, e) { var r; - if (x_.hasOwnProperty(t.text)) + if (w_.hasOwnProperty(t.text)) r = new lt.MathNode("mtext", [new lt.TextNode("\xA0")]); else { - if (b_.hasOwnProperty(t.text)) + if (x_.hasOwnProperty(t.text)) return new lt.MathNode("mspace"); throw new ct('Unknown type of space "' + t.text + '"'); } return r; } }); -var JQ = () => { +var eY = () => { var t = new lt.MathNode("mtd", []); return t.setAttribute("width", "50%"), t; }; X0({ type: "tag", mathmlBuilder(t, e) { - var r = new lt.MathNode("mtable", [new lt.MathNode("mtr", [JQ(), new lt.MathNode("mtd", [Sf(t.body, e)]), JQ(), new lt.MathNode("mtd", [Sf(t.tag, e)])])]); + var r = new lt.MathNode("mtable", [new lt.MathNode("mtr", [eY(), new lt.MathNode("mtd", [Sf(t.body, e)]), eY(), new lt.MathNode("mtd", [Sf(t.tag, e)])])]); return r.setAttribute("width", "100%"), r; } }); -var eY = { +var tY = { "\\text": void 0, "\\textrm": "textrm", "\\textsf": "textsf", "\\texttt": "texttt", "\\textnormal": "textrm" -}, tY = { +}, rY = { "\\textbf": "textbf", "\\textmd": "textmd" -}, tLt = { +}, rLt = { "\\textit": "textit", "\\textup": "textup" -}, rY = (t, e) => { +}, nY = (t, e) => { var r = t.font; if (r) { - if (eY[r]) - return e.withTextFontFamily(eY[r]); if (tY[r]) - return e.withTextFontWeight(tY[r]); + return e.withTextFontFamily(tY[r]); + if (rY[r]) + return e.withTextFontWeight(rY[r]); if (r === "\\emph") return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(tLt[r]); + return e.withTextFontShape(rLt[r]); }; Ct({ type: "text", @@ -60108,11 +60130,11 @@ Ct({ }; }, htmlBuilder(t, e) { - var r = rY(t, e), n = Mi(t.body, r, !0); + var r = nY(t, e), n = Di(t.body, r, !0); return Be.makeSpan(["mord", "text"], n, r); }, mathmlBuilder(t, e) { - var r = rY(t, e); + var r = nY(t, e); return Sf(t.body, r); } }); @@ -60204,24 +60226,24 @@ Ct({ throw new ct("\\verb ended by end of line instead of matching delimiter"); }, htmlBuilder(t, e) { - for (var r = nY(t), n = [], i = e.havingStyle(e.style.text()), s = 0; s < r.length; s++) { + for (var r = iY(t), n = [], i = e.havingStyle(e.style.text()), s = 0; s < r.length; s++) { var a = r[s]; a === "~" && (a = "\\textasciitilde"), n.push(Be.makeSymbol(a, "Typewriter-Regular", t.mode, i, ["mord", "texttt"])); } return Be.makeSpan(["mord", "text"].concat(i.sizingClasses(e)), Be.tryCombineChars(n), i); }, mathmlBuilder(t, e) { - var r = new lt.TextNode(nY(t)), n = new lt.MathNode("mtext", [r]); + var r = new lt.TextNode(iY(t)), n = new lt.MathNode("mtext", [r]); return n.setAttribute("mathvariant", "monospace"), n; } }); -var nY = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), Vh = Sue, rhe = `[ \r - ]`, rLt = "\\\\[a-zA-Z@]+", nLt = "\\\\[^\uD800-\uDFFF]", iLt = "(" + rLt + ")" + rhe + "*", sLt = `\\\\( +var iY = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), Vh = Tue, nhe = `[ \r + ]`, nLt = "\\\\[a-zA-Z@]+", iLt = "\\\\[^\uD800-\uDFFF]", sLt = "(" + nLt + ")" + nhe + "*", aLt = `\\\\( |[ \r ]+ -?)[ \r ]*`, EL = "[\u0300-\u036F]", aLt = new RegExp(EL + "+$"), oLt = "(" + rhe + "+)|" + (sLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (EL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (EL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + iLt) + ("|" + nLt + ")"); -class iY { +?)[ \r ]*`, _L = "[\u0300-\u036F]", oLt = new RegExp(_L + "+$"), lLt = "(" + nhe + "+)|" + (aLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (_L + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (_L + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + sLt) + ("|" + iLt + ")"); +class sY { constructor(e, r) { - this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(oLt, "g"), this.catcodes = { + this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(lLt, "g"), this.catcodes = { "%": 14, "~": 13 }; @@ -60232,20 +60254,20 @@ class iY { lex() { var e = this.input, r = this.tokenRegex.lastIndex; if (r === e.length) - return new zo("EOF", new Ja(this, r, r)); + return new zo("EOF", new eo(this, r, r)); var n = this.tokenRegex.exec(e); if (n === null || n.index !== r) - throw new ct("Unexpected character: '" + e[r] + "'", new zo(e[r], new Ja(this, r, r + 1))); + throw new ct("Unexpected character: '" + e[r] + "'", new zo(e[r], new eo(this, r, r + 1))); var i = n[6] || n[3] || (n[2] ? "\\ " : " "); if (this.catcodes[i] === 14) { var s = e.indexOf(` `, this.tokenRegex.lastIndex); return s === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = s + 1, this.lex(); } - return new zo(i, new Ja(this, r, this.tokenRegex.lastIndex)); + return new zo(i, new eo(this, r, this.tokenRegex.lastIndex)); } } -class lLt { +class cLt { constructor(e, r) { e === void 0 && (e = {}), r === void 0 && (r = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = r, this.builtins = e, this.undefStack = []; } @@ -60281,7 +60303,7 @@ class lLt { r == null ? delete this.current[e] : this.current[e] = r; } } -var cLt = Yue; +var uLt = Wue; le("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -60333,7 +60355,7 @@ le("\\TextOrMath", function(t) { numArgs: 0 }; }); -var sY = { +var aY = { 0: 0, 1: 1, 2: 2, @@ -60374,9 +60396,9 @@ le("\\char", function(t) { else r = 10; if (r) { - if (n = sY[e.text], n == null || n >= r) + if (n = aY[e.text], n == null || n >= r) throw new ct("Invalid base-" + r + " digit " + e.text); - for (var i; (i = sY[t.future().text]) != null && i < r; ) + for (var i; (i = aY[t.future().text]) != null && i < r; ) n *= r, n += i, t.popToken(); } return "\\@char{" + n + "}"; @@ -60492,7 +60514,7 @@ le("\\boxed", "\\fbox{$\\displaystyle{#1}$}"); le("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;"); le("\\implies", "\\DOTSB\\;\\Longrightarrow\\;"); le("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); -var aY = { +var oY = { ",": "\\dotsc", "\\not": "\\dotsb", "+": "\\dotsb", @@ -60543,7 +60565,7 @@ var aY = { }; le("\\dots", function(t) { var e = "\\dotso", r = t.expandAfterFuture().text; - return r in aY ? e = aY[r] : (r.slice(0, 4) === "\\not" || r in hn.math && Gt.contains(["bin", "rel"], hn.math[r].group)) && (e = "\\dotsb"), e; + return r in oY ? e = oY[r] : (r.slice(0, 4) === "\\not" || r in hn.math && Gt.contains(["bin", "rel"], hn.math[r].group)) && (e = "\\dotsb"), e; }); var NN = { ")": !0, @@ -60614,9 +60636,9 @@ le("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"); le("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"); le("\\newline", "\\\\\\relax"); le("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"); -var nhe = vt(Oc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Oc["Main-Regular"]["A".charCodeAt(0)][1]); -le("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + nhe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); -le("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + nhe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); +var ihe = vt(Oc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Oc["Main-Regular"]["A".charCodeAt(0)][1]); +le("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + ihe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); +le("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + ihe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); le("\\hspace", "\\@ifstar\\@hspacer\\@hspace"); le("\\@hspace", "\\hskip #1\\relax"); le("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"); @@ -60762,7 +60784,7 @@ le("\\ket", "\\mathinner{|{#1}\\rangle}"); le("\\braket", "\\mathinner{\\langle{#1}\\rangle}"); le("\\Bra", "\\left\\langle#1\\right|"); le("\\Ket", "\\left|#1\\right\\rangle"); -var ihe = (t) => (e) => { +var she = (t) => (e) => { var r = e.consumeArg().tokens, n = e.consumeArg().tokens, i = e.consumeArg().tokens, s = e.consumeArg().tokens, a = e.macros.get("|"), o = e.macros.get("\\|"); e.macros.beginGroup(); var l = (f) => (d) => { @@ -60788,8 +60810,8 @@ var ihe = (t) => (e) => { numArgs: 0 }; }; -le("\\bra@ket", ihe(!1)); -le("\\bra@set", ihe(!0)); +le("\\bra@ket", she(!1)); +le("\\bra@set", she(!0)); le("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"); le("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"); le("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"); @@ -60850,18 +60872,18 @@ le("\\grayH", "\\textcolor{##3b3e40}{#1}"); le("\\grayI", "\\textcolor{##21242c}{#1}"); le("\\kaBlue", "\\textcolor{##314453}{#1}"); le("\\kaGreen", "\\textcolor{##71B307}{#1}"); -var she = { +var ahe = { "^": !0, _: !0, "\\limits": !0, "\\nolimits": !0 }; -class uLt { +class hLt { constructor(e, r, n) { - this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new lLt(cLt, r.macros), this.mode = n, this.stack = []; + this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new cLt(uLt, r.macros), this.mode = n, this.stack = []; } feed(e) { - this.lexer = new iY(e, this.settings); + this.lexer = new sY(e, this.settings); } switchMode(e) { this.mode = e; @@ -61027,7 +61049,7 @@ class uLt { if (i.indexOf("#") !== -1) for (var a = i.replace(/##/g, ""); a.indexOf("#" + (s + 1)) !== -1; ) ++s; - for (var o = new iY(i, this.settings), l = [], u = o.lex(); u.text !== "EOF"; ) + for (var o = new sY(i, this.settings), l = [], u = o.lex(); u.text !== "EOF"; ) l.push(u), u = o.lex(); l.reverse(); var h = { @@ -61039,14 +61061,14 @@ class uLt { return i; } isDefined(e) { - return this.macros.has(e) || Vh.hasOwnProperty(e) || hn.math.hasOwnProperty(e) || hn.text.hasOwnProperty(e) || she.hasOwnProperty(e); + return this.macros.has(e) || Vh.hasOwnProperty(e) || hn.math.hasOwnProperty(e) || hn.text.hasOwnProperty(e) || ahe.hasOwnProperty(e); } isExpandable(e) { var r = this.macros.get(e); return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : Vh.hasOwnProperty(e) && !Vh[e].primitive; } } -var oY = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, bO = Object.freeze({ +var lY = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, bO = Object.freeze({ "\u208A": "+", "\u208B": "-", "\u208C": "=", @@ -61149,7 +61171,7 @@ var oY = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ "\u1D60": "\u03D5", "\u1D61": "\u03C7", "\u1DBF": "\u03B8" -}), w_ = { +}), O_ = { "\u0301": { text: "\\'", math: "\\acute" @@ -61196,7 +61218,7 @@ var oY = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ "\u0327": { text: "\\c" } -}, lY = { +}, cY = { \u00E1: "a\u0301", \u00E0: "a\u0300", \u00E4: "a\u0308", @@ -61542,9 +61564,9 @@ var oY = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ \u038F: "\u03A9\u0301", \u1FFA: "\u03A9\u0300" }; -class XT { +class ZT { constructor(e, r) { - this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new uLt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; + this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new hLt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; } expect(e, r) { if (r === void 0 && (r = !0), this.fetch().text !== e) @@ -61579,7 +61601,7 @@ class XT { for (var n = []; ; ) { this.mode === "math" && this.consumeSpaces(); var i = this.fetch(); - if (XT.endOfExpression.indexOf(i.text) !== -1 || r && i.text === r || e && Vh[i.text] && Vh[i.text].infix) + if (ZT.endOfExpression.indexOf(i.text) !== -1 || r && i.text === r || e && Vh[i.text] && Vh[i.text].infix) break; var s = this.parseAtom(r); if (s) { @@ -61681,10 +61703,10 @@ class XT { body: l }; } else if (bO[s.text]) { - var u = oY.test(s.text), h = []; + var u = lY.test(s.text), h = []; for (h.push(new zo(bO[s.text])), this.consume(); ; ) { var f = this.fetch().text; - if (!bO[f] || oY.test(f) !== u) + if (!bO[f] || lY.test(f) !== u) break; h.unshift(new zo(bO[f])), this.consume(); } @@ -61848,7 +61870,7 @@ class XT { number: +(i[1] + i[2]), unit: i[3] }; - if (!gue(s)) + if (!mue(s)) throw new ct("Invalid unit: '" + s.unit + "'", r); return { type: "size", @@ -61895,11 +61917,11 @@ class XT { this.expect(a), this.gullet.endGroup(), s = { type: "ordgroup", mode: this.mode, - loc: Ja.range(n, l), + loc: eo.range(n, l), body: o, semisimple: i === "\\begingroup" || void 0 }; - } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !she.hasOwnProperty(i)) { + } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !ahe.hasOwnProperty(i)) { if (this.settings.throwOnError) throw new ct("Undefined control sequence: " + i, n); s = this.formatUnsupportedCmd(i), this.consume(); @@ -61912,17 +61934,17 @@ class XT { s === "-" && e[n + 1].text === "-" && (n + 1 < r && e[n + 2].text === "-" ? (e.splice(n, 3, { type: "textord", mode: "text", - loc: Ja.range(i, e[n + 2]), + loc: eo.range(i, e[n + 2]), text: "---" }), r -= 2) : (e.splice(n, 2, { type: "textord", mode: "text", - loc: Ja.range(i, e[n + 1]), + loc: eo.range(i, e[n + 1]), text: "--" }), r -= 1)), (s === "'" || s === "`") && e[n + 1].text === s && (e.splice(n, 2, { type: "textord", mode: "text", - loc: Ja.range(i, e[n + 1]), + loc: eo.range(i, e[n + 1]), text: s + s }), r -= 1); } @@ -61942,14 +61964,14 @@ class XT { star: i }; } - lY.hasOwnProperty(r[0]) && !hn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = lY[r[0]] + r.slice(1)); - var s = aLt.exec(r); + cY.hasOwnProperty(r[0]) && !hn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = cY[r[0]] + r.slice(1)); + var s = oLt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; if (hn[this.mode][r]) { - this.settings.strict && this.mode === "math" && OL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); - var o = hn[this.mode][r].group, l = Ja.range(e), u; - if (K7t.hasOwnProperty(o)) { + this.settings.strict && this.mode === "math" && kL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); + var o = hn[this.mode][r].group, l = eo.range(e), u; + if (J7t.hasOwnProperty(o)) { var h = o; u = { type: "atom", @@ -61967,10 +61989,10 @@ class XT { }; a = u; } else if (r.charCodeAt(0) >= 128) - this.settings.strict && (pue(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), a = { + this.settings.strict && (gue(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), a = { type: "textord", mode: "text", - loc: Ja.range(e), + loc: eo.range(e), text: r }; else @@ -61978,15 +62000,15 @@ class XT { if (this.consume(), s) for (var f = 0; f < s[0].length; f++) { var d = s[0][f]; - if (!w_[d]) + if (!O_[d]) throw new ct("Unknown accent ' " + d + "'", e); - var p = w_[d][this.mode] || w_[d].text; + var p = O_[d][this.mode] || O_[d].text; if (!p) throw new ct("Accent " + d + " unsupported in " + this.mode + " mode", e); a = { type: "accent", mode: this.mode, - loc: Ja.range(e), + loc: eo.range(e), label: p, isStretchy: !1, isShifty: !0, @@ -61996,11 +62018,11 @@ class XT { return a; } } -XT.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"]; +ZT.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"]; var IN = function(e, r) { if (!(typeof e == "string" || e instanceof String)) throw new TypeError("KaTeX can only parse string typed expression"); - var n = new XT(e, r); + var n = new ZT(e, r); delete n.gullet.macros.current["\\df@tag"]; var i = n.parse(); if (delete n.gullet.macros.current["\\current@color"], delete n.gullet.macros.current["\\color"], n.gullet.macros.get("\\df@tag")) { @@ -62014,21 +62036,21 @@ var IN = function(e, r) { }]; } return i; -}, ahe = function(e, r, n) { +}, ohe = function(e, r, n) { r.textContent = ""; var i = PN(e, n).toNode(); r.appendChild(i); }; -typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ahe = function() { +typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ohe = function() { throw new ct("KaTeX doesn't work in quirks mode."); }); -var hLt = function(e, r) { +var fLt = function(e, r) { var n = PN(e, r).toMarkup(); return n; -}, fLt = function(e, r) { +}, dLt = function(e, r) { var n = new vN(r); return IN(e, n); -}, ohe = function(e, r, n) { +}, lhe = function(e, r, n) { if (n.throwOnError || !(e instanceof ct)) throw e; var i = Be.makeSpan(["katex-error"], [new jo(r)]); @@ -62037,28 +62059,28 @@ var hLt = function(e, r) { var n = new vN(r); try { var i = IN(e, n); - return w8t(i, e, n); + return O8t(i, e, n); } catch (s) { - return ohe(s, e, n); + return lhe(s, e, n); } -}, dLt = function(e, r) { +}, pLt = function(e, r) { var n = new vN(r); try { var i = IN(e, n); - return O8t(i, e, n); + return k8t(i, e, n); } catch (s) { - return ohe(s, e, n); + return lhe(s, e, n); } -}, pLt = { +}, gLt = { version: "0.16.11", - render: ahe, - renderToString: hLt, + render: ohe, + renderToString: fLt, ParseError: ct, SETTINGS_SCHEMA: V4, - __parse: fLt, + __parse: dLt, __renderToDomTree: PN, - __renderToHTMLTree: dLt, - __setFontMetrics: Y7t, + __renderToHTMLTree: pLt, + __setFontMetrics: W7t, __defineSymbol: z, __defineFunction: Ct, __defineMacro: le, @@ -62068,66 +62090,66 @@ var hLt = function(e, r) { SymbolNode: jo, SvgNode: Wu, PathNode: kf, - LineNode: wL + LineNode: OL } }; -const gLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const mLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: pLt + default: gLt }, Symbol.toStringTag, { value: "Module" })); -var mLt = "[object Symbol]"; +var vLt = "[object Symbol]"; function p0(t) { - return typeof t == "symbol" || Xo(t) && ah(t) == mLt; + return typeof t == "symbol" || Xo(t) && ah(t) == vLt; } function Jh(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var vLt = 1 / 0, cY = Go ? Go.prototype : void 0, uY = cY ? cY.toString : void 0; -function lhe(t) { +var yLt = 1 / 0, uY = Go ? Go.prototype : void 0, hY = uY ? uY.toString : void 0; +function che(t) { if (typeof t == "string") return t; if (Sr(t)) - return Jh(t, lhe) + ""; + return Jh(t, che) + ""; if (p0(t)) - return uY ? uY.call(t) : ""; + return hY ? hY.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -vLt ? "-0" : e; + return e == "0" && 1 / t == -yLt ? "-0" : e; } -var yLt = /\s/; -function bLt(t) { - for (var e = t.length; e-- && yLt.test(t.charAt(e)); ) +var bLt = /\s/; +function xLt(t) { + for (var e = t.length; e-- && bLt.test(t.charAt(e)); ) ; return e; } -var xLt = /^\s+/; -function wLt(t) { - return t && t.slice(0, bLt(t) + 1).replace(xLt, ""); +var wLt = /^\s+/; +function OLt(t) { + return t && t.slice(0, xLt(t) + 1).replace(wLt, ""); } -var hY = 0 / 0, OLt = /^[-+]0x[0-9a-f]+$/i, kLt = /^0b[01]+$/i, SLt = /^0o[0-7]+$/i, TLt = parseInt; -function CLt(t) { +var fY = 0 / 0, kLt = /^[-+]0x[0-9a-f]+$/i, SLt = /^0b[01]+$/i, TLt = /^0o[0-7]+$/i, CLt = parseInt; +function ELt(t) { if (typeof t == "number") return t; if (p0(t)) - return hY; - if (Pa(t)) { + return fY; + if ($a(t)) { var e = typeof t.valueOf == "function" ? t.valueOf() : t; - t = Pa(e) ? e + "" : e; + t = $a(e) ? e + "" : e; } if (typeof t != "string") return t === 0 ? t : +t; - t = wLt(t); - var r = kLt.test(t); - return r || SLt.test(t) ? TLt(t.slice(2), r ? 2 : 8) : OLt.test(t) ? hY : +t; + t = OLt(t); + var r = SLt.test(t); + return r || TLt.test(t) ? CLt(t.slice(2), r ? 2 : 8) : kLt.test(t) ? fY : +t; } -var fY = 1 / 0, ELt = 17976931348623157e292; +var dY = 1 / 0, _Lt = 17976931348623157e292; function q4(t) { if (!t) return t === 0 ? t : 0; - if (t = CLt(t), t === fY || t === -fY) { + if (t = ELt(t), t === dY || t === -dY) { var e = t < 0 ? -1 : 1; - return e * ELt; + return e * _Lt; } return t === t ? t : 0; } @@ -62137,87 +62159,87 @@ function Cx(t) { } function vi() { } -function che(t, e) { +function uhe(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; ) ; return t; } -function uhe(t, e, r, n) { +function hhe(t, e, r, n) { for (var i = t.length, s = r + (n ? 1 : -1); n ? s-- : ++s < i; ) if (e(t[s], s, t)) return s; return -1; } -function _Lt(t) { +function ALt(t) { return t !== t; } -function ALt(t, e, r) { +function LLt(t, e, r) { for (var n = r - 1, i = t.length; ++n < i; ) if (t[n] === e) return n; return -1; } function $N(t, e, r) { - return e === e ? ALt(t, e, r) : uhe(t, _Lt, r); + return e === e ? LLt(t, e, r) : hhe(t, ALt, r); } -function hhe(t, e) { +function fhe(t, e) { var r = t == null ? 0 : t.length; return !!r && $N(t, e, 0) > -1; } function ki(t) { - return Zc(t) ? cae(t) : Coe(t); + return Zc(t) ? uae(t) : Eoe(t); } -var LLt = Object.prototype, RLt = LLt.hasOwnProperty, MLt = dae(function(t, e) { +var RLt = Object.prototype, MLt = RLt.hasOwnProperty, DLt = pae(function(t, e) { if (fx(e) || Zc(e)) { J1(e, ki(e), t); return; } for (var r in e) - RLt.call(e, r) && dx(t, r, e[r]); + MLt.call(e, r) && dx(t, r, e[r]); }); -const ho = MLt; -var DLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, NLt = /^\w*$/; +const ho = DLt; +var NLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ILt = /^\w*$/; function BN(t, e) { if (Sr(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || p0(t) ? !0 : NLt.test(t) || !DLt.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || p0(t) ? !0 : ILt.test(t) || !NLt.test(t) || e != null && t in Object(e); } -var ILt = 500; -function PLt(t) { +var PLt = 500; +function $Lt(t) { var e = j1(t, function(n) { - return r.size === ILt && r.clear(), n; + return r.size === PLt && r.clear(), n; }), r = e.cache; return e; } -var $Lt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, BLt = /\\(\\)?/g, FLt = PLt(function(t) { +var BLt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, FLt = /\\(\\)?/g, zLt = $Lt(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace($Lt, function(r, n, i, s) { - e.push(i ? s.replace(BLt, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(BLt, function(r, n, i, s) { + e.push(i ? s.replace(FLt, "$1") : n || r); }), e; }); -const zLt = FLt; -function fhe(t) { - return t == null ? "" : lhe(t); +const VLt = zLt; +function dhe(t) { + return t == null ? "" : che(t); } -function ZT(t, e) { - return Sr(t) ? t : BN(t, e) ? [t] : zLt(fhe(t)); +function jT(t, e) { + return Sr(t) ? t : BN(t, e) ? [t] : VLt(dhe(t)); } -var VLt = 1 / 0; +var ULt = 1 / 0; function Ex(t) { if (typeof t == "string" || p0(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -VLt ? "-0" : e; + return e == "0" && 1 / t == -ULt ? "-0" : e; } -function jT(t, e) { - e = ZT(e, t); +function KT(t, e) { + e = jT(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[Ex(e[r++])]; return r && r == n ? t : void 0; } -function ULt(t, e, r) { - var n = t == null ? void 0 : jT(t, e); +function qLt(t, e, r) { + var n = t == null ? void 0 : KT(t, e); return n === void 0 ? r : n; } function FN(t, e) { @@ -62225,13 +62247,13 @@ function FN(t, e) { t[i + r] = e[r]; return t; } -var dY = Go ? Go.isConcatSpreadable : void 0; -function qLt(t) { - return Sr(t) || Jg(t) || !!(dY && t && t[dY]); +var pY = Go ? Go.isConcatSpreadable : void 0; +function QLt(t) { + return Sr(t) || Jg(t) || !!(pY && t && t[pY]); } function nm(t, e, r, n, i) { var s = -1, a = t.length; - for (r || (r = qLt), i || (i = []); ++s < a; ) { + for (r || (r = QLt), i || (i = []); ++s < a; ) { var o = t[s]; e > 0 && r(o) ? e > 1 ? nm(o, e - 1, r, n, i) : FN(i, o) : n || (i[i.length] = o); } @@ -62241,26 +62263,26 @@ function Yi(t) { var e = t == null ? 0 : t.length; return e ? nm(t, 1) : []; } -function QLt(t) { - return fae(hae(t, void 0, Yi), t + ""); +function YLt(t) { + return dae(fae(t, void 0, Yi), t + ""); } -function dhe(t, e, r) { +function phe(t, e, r) { var n = -1, i = t.length; e < 0 && (e = -e > i ? 0 : i + e), r = r > i ? i : r, r < 0 && (r += i), i = e > r ? 0 : r - e >>> 0, e >>>= 0; for (var s = Array(i); ++n < i; ) s[n] = t[n + e]; return s; } -function YLt(t, e, r, n) { +function WLt(t, e, r, n) { var i = -1, s = t == null ? 0 : t.length; for (n && s && (r = t[++i]); ++i < s; ) r = e(r, t[i], i, t); return r; } -function WLt(t, e) { +function GLt(t, e) { return t && J1(e, ki(e), t); } -function GLt(t, e) { +function HLt(t, e) { return t && J1(e, Y0(e), t); } function zN(t, e) { @@ -62270,67 +62292,66 @@ function zN(t, e) { } return s; } -function phe() { +function ghe() { return []; } -var HLt = Object.prototype, XLt = HLt.propertyIsEnumerable, pY = Object.getOwnPropertySymbols, ZLt = pY ? function(t) { - return t == null ? [] : (t = Object(t), zN(pY(t), function(e) { - return XLt.call(t, e); +var XLt = Object.prototype, ZLt = XLt.propertyIsEnumerable, gY = Object.getOwnPropertySymbols, jLt = gY ? function(t) { + return t == null ? [] : (t = Object(t), zN(gY(t), function(e) { + return ZLt.call(t, e); })); -} : phe; -const VN = ZLt; -function jLt(t, e) { +} : ghe; +const VN = jLt; +function KLt(t, e) { return J1(t, VN(t), e); } -var KLt = Object.getOwnPropertySymbols, JLt = KLt ? function(t) { +var JLt = Object.getOwnPropertySymbols, e9t = JLt ? function(t) { for (var e = []; t; ) - FN(e, VN(t)), t = FD(t); + FN(e, VN(t)), t = zD(t); return e; -} : phe; -const ghe = JLt; -function e9t(t, e) { - return J1(t, ghe(t), e); +} : ghe; +const mhe = e9t; +function t9t(t, e) { + return J1(t, mhe(t), e); } -function mhe(t, e, r) { +function vhe(t, e, r) { var n = e(t); return Sr(t) ? n : FN(n, r(t)); } -function _L(t) { - return mhe(t, ki, VN); +function AL(t) { + return vhe(t, ki, VN); } -function vhe(t) { - return mhe(t, Y0, ghe); +function yhe(t) { + return vhe(t, Y0, mhe); } -var t9t = Object.prototype, r9t = t9t.hasOwnProperty; -function n9t(t) { +var r9t = Object.prototype, n9t = r9t.hasOwnProperty; +function i9t(t) { var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && r9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; + return e && typeof t[0] == "string" && n9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; } -function i9t(t, e) { - var r = e ? BD(t.buffer) : t.buffer; +function s9t(t, e) { + var r = e ? FD(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.byteLength); } -var s9t = /\w*$/; -function a9t(t) { - var e = new t.constructor(t.source, s9t.exec(t)); +var a9t = /\w*$/; +function o9t(t) { + var e = new t.constructor(t.source, a9t.exec(t)); return e.lastIndex = t.lastIndex, e; } -var gY = Go ? Go.prototype : void 0, mY = gY ? gY.valueOf : void 0; -function o9t(t) { - return mY ? Object(mY.call(t)) : {}; +var mY = Go ? Go.prototype : void 0, vY = mY ? mY.valueOf : void 0; +function l9t(t) { + return vY ? Object(vY.call(t)) : {}; } -var l9t = "[object Boolean]", c9t = "[object Date]", u9t = "[object Map]", h9t = "[object Number]", f9t = "[object RegExp]", d9t = "[object Set]", p9t = "[object String]", g9t = "[object Symbol]", m9t = "[object ArrayBuffer]", v9t = "[object DataView]", y9t = "[object Float32Array]", b9t = "[object Float64Array]", x9t = "[object Int8Array]", w9t = "[object Int16Array]", O9t = "[object Int32Array]", k9t = "[object Uint8Array]", S9t = "[object Uint8ClampedArray]", T9t = "[object Uint16Array]", C9t = "[object Uint32Array]"; -function E9t(t, e, r) { +var c9t = "[object Boolean]", u9t = "[object Date]", h9t = "[object Map]", f9t = "[object Number]", d9t = "[object RegExp]", p9t = "[object Set]", g9t = "[object String]", m9t = "[object Symbol]", v9t = "[object ArrayBuffer]", y9t = "[object DataView]", b9t = "[object Float32Array]", x9t = "[object Float64Array]", w9t = "[object Int8Array]", O9t = "[object Int16Array]", k9t = "[object Int32Array]", S9t = "[object Uint8Array]", T9t = "[object Uint8ClampedArray]", C9t = "[object Uint16Array]", E9t = "[object Uint32Array]"; +function _9t(t, e, r) { var n = t.constructor; switch (e) { - case m9t: - return BD(t); - case l9t: + case v9t: + return FD(t); case c9t: + case u9t: return new n(+t); - case v9t: - return i9t(t, r); case y9t: + return s9t(t, r); case b9t: case x9t: case w9t: @@ -62339,79 +62360,80 @@ function E9t(t, e, r) { case S9t: case T9t: case C9t: - return tae(t, r); - case u9t: - return new n(); + case E9t: + return rae(t, r); case h9t: - case p9t: - return new n(t); - case f9t: - return a9t(t); - case d9t: return new n(); + case f9t: case g9t: + return new n(t); + case d9t: return o9t(t); + case p9t: + return new n(); + case m9t: + return l9t(t); } } -var _9t = "[object Map]"; -function A9t(t) { - return Xo(t) && n1(t) == _9t; +var A9t = "[object Map]"; +function L9t(t) { + return Xo(t) && n1(t) == A9t; } -var vY = bf && bf.isMap, L9t = vY ? K1(vY) : A9t; -const R9t = L9t; -var M9t = "[object Set]"; -function D9t(t) { - return Xo(t) && n1(t) == M9t; +var yY = bf && bf.isMap, R9t = yY ? K1(yY) : L9t; +const M9t = R9t; +var D9t = "[object Set]"; +function N9t(t) { + return Xo(t) && n1(t) == D9t; } -var yY = bf && bf.isSet, N9t = yY ? K1(yY) : D9t; -const I9t = N9t; -var P9t = 1, $9t = 2, B9t = 4, yhe = "[object Arguments]", F9t = "[object Array]", z9t = "[object Boolean]", V9t = "[object Date]", U9t = "[object Error]", bhe = "[object Function]", q9t = "[object GeneratorFunction]", Q9t = "[object Map]", Y9t = "[object Number]", xhe = "[object Object]", W9t = "[object RegExp]", G9t = "[object Set]", H9t = "[object String]", X9t = "[object Symbol]", Z9t = "[object WeakMap]", j9t = "[object ArrayBuffer]", K9t = "[object DataView]", J9t = "[object Float32Array]", eRt = "[object Float64Array]", tRt = "[object Int8Array]", rRt = "[object Int16Array]", nRt = "[object Int32Array]", iRt = "[object Uint8Array]", sRt = "[object Uint8ClampedArray]", aRt = "[object Uint16Array]", oRt = "[object Uint32Array]", ln = {}; -ln[yhe] = ln[F9t] = ln[j9t] = ln[K9t] = ln[z9t] = ln[V9t] = ln[J9t] = ln[eRt] = ln[tRt] = ln[rRt] = ln[nRt] = ln[Q9t] = ln[Y9t] = ln[xhe] = ln[W9t] = ln[G9t] = ln[H9t] = ln[X9t] = ln[iRt] = ln[sRt] = ln[aRt] = ln[oRt] = !0; -ln[U9t] = ln[bhe] = ln[Z9t] = !1; +var bY = bf && bf.isSet, I9t = bY ? K1(bY) : N9t; +const P9t = I9t; +var $9t = 1, B9t = 2, F9t = 4, bhe = "[object Arguments]", z9t = "[object Array]", V9t = "[object Boolean]", U9t = "[object Date]", q9t = "[object Error]", xhe = "[object Function]", Q9t = "[object GeneratorFunction]", Y9t = "[object Map]", W9t = "[object Number]", whe = "[object Object]", G9t = "[object RegExp]", H9t = "[object Set]", X9t = "[object String]", Z9t = "[object Symbol]", j9t = "[object WeakMap]", K9t = "[object ArrayBuffer]", J9t = "[object DataView]", eRt = "[object Float32Array]", tRt = "[object Float64Array]", rRt = "[object Int8Array]", nRt = "[object Int16Array]", iRt = "[object Int32Array]", sRt = "[object Uint8Array]", aRt = "[object Uint8ClampedArray]", oRt = "[object Uint16Array]", lRt = "[object Uint32Array]", ln = {}; +ln[bhe] = ln[z9t] = ln[K9t] = ln[J9t] = ln[V9t] = ln[U9t] = ln[eRt] = ln[tRt] = ln[rRt] = ln[nRt] = ln[iRt] = ln[Y9t] = ln[W9t] = ln[whe] = ln[G9t] = ln[H9t] = ln[X9t] = ln[Z9t] = ln[sRt] = ln[aRt] = ln[oRt] = ln[lRt] = !0; +ln[q9t] = ln[xhe] = ln[j9t] = !1; function uy(t, e, r, n, i, s) { - var a, o = e & P9t, l = e & $9t, u = e & B9t; + var a, o = e & $9t, l = e & B9t, u = e & F9t; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) return a; - if (!Pa(t)) + if (!$a(t)) return t; var h = Sr(t); if (h) { - if (a = n9t(t), !o) - return rae(t, a); + if (a = i9t(t), !o) + return nae(t, a); } else { - var f = n1(t), d = f == bhe || f == q9t; + var f = n1(t), d = f == xhe || f == Q9t; if (e1(t)) - return eae(t, o); - if (f == xhe || f == yhe || d && !i) { - if (a = l || d ? {} : iae(t), !o) - return l ? e9t(t, GLt(a, t)) : jLt(t, WLt(a, t)); + return tae(t, o); + if (f == whe || f == bhe || d && !i) { + if (a = l || d ? {} : sae(t), !o) + return l ? t9t(t, HLt(a, t)) : KLt(t, GLt(a, t)); } else { if (!ln[f]) return i ? t : {}; - a = E9t(t, f, o); + a = _9t(t, f, o); } } s || (s = new wl()); var p = s.get(t); if (p) return p; - s.set(t, a), I9t(t) ? t.forEach(function(v) { + s.set(t, a), P9t(t) ? t.forEach(function(v) { a.add(uy(v, e, r, v, t, s)); - }) : R9t(t) && t.forEach(function(v, y) { + }) : M9t(t) && t.forEach(function(v, y) { a.set(y, uy(v, e, r, y, t, s)); }); - var g = u ? l ? vhe : _L : l ? Y0 : ki, m = h ? void 0 : g(t); - return che(m || t, function(v, y) { + var g = u ? l ? yhe : AL : l ? Y0 : ki, m = h ? void 0 : g(t); + return uhe(m || t, function(v, y) { m && (y = v, v = t[y]), dx(a, y, uy(v, e, r, y, t, s)); }), a; } -var lRt = 4; -function Di(t) { - return uy(t, lRt); +var cRt = 4; +function Ni(t) { + return uy(t, cRt); } -var cRt = 1, uRt = 4; -function hRt(t) { - return uy(t, cRt | uRt); +var uRt = 1, hRt = 4; +function fRt(t) { + return uy(t, uRt | hRt); } function _x(t) { for (var e = -1, r = t == null ? 0 : t.length, n = 0, i = []; ++e < r; ) { @@ -62420,11 +62442,11 @@ function _x(t) { } return i; } -var fRt = "__lodash_hash_undefined__"; -function dRt(t) { - return this.__data__.set(t, fRt), this; -} +var dRt = "__lodash_hash_undefined__"; function pRt(t) { + return this.__data__.set(t, dRt), this; +} +function gRt(t) { return this.__data__.has(t); } function c1(t) { @@ -62432,9 +62454,9 @@ function c1(t) { for (this.__data__ = new lh(); ++e < r; ) this.add(t[e]); } -c1.prototype.add = c1.prototype.push = dRt; -c1.prototype.has = pRt; -function whe(t, e) { +c1.prototype.add = c1.prototype.push = pRt; +c1.prototype.has = gRt; +function Ohe(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) return !0; @@ -62443,15 +62465,15 @@ function whe(t, e) { function UN(t, e) { return t.has(e); } -var gRt = 1, mRt = 2; -function Ohe(t, e, r, n, i, s) { - var a = r & gRt, o = t.length, l = e.length; +var mRt = 1, vRt = 2; +function khe(t, e, r, n, i, s) { + var a = r & mRt, o = t.length, l = e.length; if (o != l && !(a && l > o)) return !1; var u = s.get(t), h = s.get(e); if (u && h) return u == e && h == t; - var f = -1, d = !0, p = r & mRt ? new c1() : void 0; + var f = -1, d = !0, p = r & vRt ? new c1() : void 0; for (s.set(t, e), s.set(e, t); ++f < o; ) { var g = t[f], m = e[f]; if (n) @@ -62463,7 +62485,7 @@ function Ohe(t, e, r, n, i, s) { break; } if (p) { - if (!whe(e, function(y, b) { + if (!Ohe(e, function(y, b) { if (!UN(p, b) && (g === y || i(g, y, r, n, s))) return p.push(b); })) { @@ -62477,7 +62499,7 @@ function Ohe(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), d; } -function vRt(t) { +function yRt(t) { var e = -1, r = Array(t.size); return t.forEach(function(n, i) { r[++e] = [i, n]; @@ -62489,50 +62511,50 @@ function qN(t) { r[++e] = n; }), r; } -var yRt = 1, bRt = 2, xRt = "[object Boolean]", wRt = "[object Date]", ORt = "[object Error]", kRt = "[object Map]", SRt = "[object Number]", TRt = "[object RegExp]", CRt = "[object Set]", ERt = "[object String]", _Rt = "[object Symbol]", ARt = "[object ArrayBuffer]", LRt = "[object DataView]", bY = Go ? Go.prototype : void 0, O_ = bY ? bY.valueOf : void 0; -function RRt(t, e, r, n, i, s, a) { +var bRt = 1, xRt = 2, wRt = "[object Boolean]", ORt = "[object Date]", kRt = "[object Error]", SRt = "[object Map]", TRt = "[object Number]", CRt = "[object RegExp]", ERt = "[object Set]", _Rt = "[object String]", ARt = "[object Symbol]", LRt = "[object ArrayBuffer]", RRt = "[object DataView]", xY = Go ? Go.prototype : void 0, k_ = xY ? xY.valueOf : void 0; +function MRt(t, e, r, n, i, s, a) { switch (r) { - case LRt: + case RRt: if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; t = t.buffer, e = e.buffer; - case ARt: + case LRt: return !(t.byteLength != e.byteLength || !s(new P3(t), new P3(e))); - case xRt: case wRt: - case SRt: - return Z1(+t, +e); case ORt: - return t.name == e.name && t.message == e.message; case TRt: - case ERt: - return t == e + ""; + return Z1(+t, +e); case kRt: - var o = vRt; + return t.name == e.name && t.message == e.message; case CRt: - var l = n & yRt; + case _Rt: + return t == e + ""; + case SRt: + var o = yRt; + case ERt: + var l = n & bRt; if (o || (o = qN), t.size != e.size && !l) return !1; var u = a.get(t); if (u) return u == e; - n |= bRt, a.set(t, e); - var h = Ohe(o(t), o(e), n, i, s, a); + n |= xRt, a.set(t, e); + var h = khe(o(t), o(e), n, i, s, a); return a.delete(t), h; - case _Rt: - if (O_) - return O_.call(t) == O_.call(e); + case ARt: + if (k_) + return k_.call(t) == k_.call(e); } return !1; } -var MRt = 1, DRt = Object.prototype, NRt = DRt.hasOwnProperty; -function IRt(t, e, r, n, i, s) { - var a = r & MRt, o = _L(t), l = o.length, u = _L(e), h = u.length; +var DRt = 1, NRt = Object.prototype, IRt = NRt.hasOwnProperty; +function PRt(t, e, r, n, i, s) { + var a = r & DRt, o = AL(t), l = o.length, u = AL(e), h = u.length; if (l != h && !a) return !1; for (var f = l; f--; ) { var d = o[f]; - if (!(a ? d in e : NRt.call(e, d))) + if (!(a ? d in e : IRt.call(e, d))) return !1; } var p = s.get(t), g = s.get(e); @@ -62557,10 +62579,10 @@ function IRt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var PRt = 1, xY = "[object Arguments]", wY = "[object Array]", xO = "[object Object]", $Rt = Object.prototype, OY = $Rt.hasOwnProperty; -function BRt(t, e, r, n, i, s) { - var a = Sr(t), o = Sr(e), l = a ? wY : n1(t), u = o ? wY : n1(e); - l = l == xY ? xO : l, u = u == xY ? xO : u; +var $Rt = 1, wY = "[object Arguments]", OY = "[object Array]", xO = "[object Object]", BRt = Object.prototype, kY = BRt.hasOwnProperty; +function FRt(t, e, r, n, i, s) { + var a = Sr(t), o = Sr(e), l = a ? OY : n1(t), u = o ? OY : n1(e); + l = l == wY ? xO : l, u = u == wY ? xO : u; var h = l == xO, f = u == xO, d = l == u; if (d && e1(t)) { if (!e1(e)) @@ -62568,21 +62590,21 @@ function BRt(t, e, r, n, i, s) { a = !0, h = !1; } if (d && !h) - return s || (s = new wl()), a || MT(t) ? Ohe(t, e, r, n, i, s) : RRt(t, e, l, r, n, i, s); - if (!(r & PRt)) { - var p = h && OY.call(t, "__wrapped__"), g = f && OY.call(e, "__wrapped__"); + return s || (s = new wl()), a || DT(t) ? khe(t, e, r, n, i, s) : MRt(t, e, l, r, n, i, s); + if (!(r & $Rt)) { + var p = h && kY.call(t, "__wrapped__"), g = f && kY.call(e, "__wrapped__"); if (p || g) { var m = p ? t.value() : t, v = g ? e.value() : e; return s || (s = new wl()), i(m, v, r, n, s); } } - return d ? (s || (s = new wl()), IRt(t, e, r, n, i, s)) : !1; + return d ? (s || (s = new wl()), PRt(t, e, r, n, i, s)) : !1; } function QN(t, e, r, n, i) { - return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : BRt(t, e, r, n, QN, i); + return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : FRt(t, e, r, n, QN, i); } -var FRt = 1, zRt = 2; -function VRt(t, e, r, n) { +var zRt = 1, VRt = 2; +function URt(t, e, r, n) { var i = r.length, s = i, a = !n; if (t == null) return !s; @@ -62601,73 +62623,73 @@ function VRt(t, e, r, n) { var f = new wl(); if (n) var d = n(u, h, l, t, e, f); - if (!(d === void 0 ? QN(h, u, FRt | zRt, n, f) : d)) + if (!(d === void 0 ? QN(h, u, zRt | VRt, n, f) : d)) return !1; } } return !0; } -function khe(t) { - return t === t && !Pa(t); +function She(t) { + return t === t && !$a(t); } -function URt(t) { +function qRt(t) { for (var e = ki(t), r = e.length; r--; ) { var n = e[r], i = t[n]; - e[r] = [n, i, khe(i)]; + e[r] = [n, i, She(i)]; } return e; } -function She(t, e) { +function The(t, e) { return function(r) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } -function qRt(t) { - var e = URt(t); - return e.length == 1 && e[0][2] ? She(e[0][0], e[0][1]) : function(r) { - return r === t || VRt(r, t, e); +function QRt(t) { + var e = qRt(t); + return e.length == 1 && e[0][2] ? The(e[0][0], e[0][1]) : function(r) { + return r === t || URt(r, t, e); }; } -function QRt(t, e) { +function YRt(t, e) { return t != null && e in Object(t); } -function The(t, e, r) { - e = ZT(e, t); +function Che(t, e, r) { + e = jT(e, t); for (var n = -1, i = e.length, s = !1; ++n < i; ) { var a = Ex(e[n]); if (!(s = t != null && r(t, a))) break; t = t[a]; } - return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && zD(i) && DT(a, i) && (Sr(t) || Jg(t))); + return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && VD(i) && NT(a, i) && (Sr(t) || Jg(t))); } -function Che(t, e) { - return t != null && The(t, e, QRt); +function Ehe(t, e) { + return t != null && Che(t, e, YRt); } -var YRt = 1, WRt = 2; -function GRt(t, e) { - return BN(t) && khe(e) ? She(Ex(t), e) : function(r) { - var n = ULt(r, t); - return n === void 0 && n === e ? Che(r, t) : QN(e, n, YRt | WRt); +var WRt = 1, GRt = 2; +function HRt(t, e) { + return BN(t) && She(e) ? The(Ex(t), e) : function(r) { + var n = qLt(r, t); + return n === void 0 && n === e ? Ehe(r, t) : QN(e, n, WRt | GRt); }; } -function HRt(t) { +function XRt(t) { return function(e) { return e == null ? void 0 : e[t]; }; } -function XRt(t) { +function ZRt(t) { return function(e) { - return jT(e, t); + return KT(e, t); }; } -function ZRt(t) { - return BN(t) ? HRt(Ex(t)) : XRt(t); +function jRt(t) { + return BN(t) ? XRt(Ex(t)) : ZRt(t); } -function Ua(t) { - return typeof t == "function" ? t : t == null ? Yu : typeof t == "object" ? Sr(t) ? GRt(t[0], t[1]) : qRt(t) : ZRt(t); +function qa(t) { + return typeof t == "function" ? t : t == null ? Yu : typeof t == "object" ? Sr(t) ? HRt(t[0], t[1]) : QRt(t) : jRt(t); } -function jRt(t, e, r, n) { +function KRt(t, e, r, n) { for (var i = -1, s = t == null ? 0 : t.length; ++i < s; ) { var a = t[i]; e(n, a, r(a), t); @@ -62675,9 +62697,9 @@ function jRt(t, e, r, n) { return n; } function YN(t, e) { - return t && $D(t, e, ki); + return t && BD(t, e, ki); } -function KRt(t, e) { +function JRt(t, e) { return function(r, n) { if (r == null) return r; @@ -62688,46 +62710,46 @@ function KRt(t, e) { return r; }; } -var JRt = KRt(YN); -const Z0 = JRt; -function eMt(t, e, r, n) { +var eMt = JRt(YN); +const Z0 = eMt; +function tMt(t, e, r, n) { return Z0(t, function(i, s, a) { e(n, i, r(i), a); }), n; } -function tMt(t, e) { +function rMt(t, e) { return function(r, n) { - var i = Sr(r) ? jRt : eMt, s = e ? e() : {}; - return i(r, t, Ua(n), s); + var i = Sr(r) ? KRt : tMt, s = e ? e() : {}; + return i(r, t, qa(n), s); }; } -var rMt = function() { +var nMt = function() { return Gl.Date.now(); }; -const kY = rMt; -var Ehe = Object.prototype, nMt = Ehe.hasOwnProperty, iMt = px(function(t, e) { +const SY = nMt; +var _he = Object.prototype, iMt = _he.hasOwnProperty, sMt = px(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && l0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = Y0(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || Z1(h, Ehe[u]) && !nMt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || Z1(h, _he[u]) && !iMt.call(t, u)) && (t[u] = s[u]); } return t; }); -const KT = iMt; -function _he(t, e, r) { +const JT = sMt; +function Ahe(t, e, r) { for (var n = -1, i = t == null ? 0 : t.length; ++n < i; ) if (r(e, t[n])) return !0; return !1; } -var sMt = 200; -function aMt(t, e, r, n) { - var i = -1, s = hhe, a = !0, o = t.length, l = [], u = e.length; +var aMt = 200; +function oMt(t, e, r, n) { + var i = -1, s = fhe, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = Jh(e, K1(r))), n ? (s = _he, a = !1) : e.length >= sMt && (s = UN, a = !1, e = new c1(e)); + r && (e = Jh(e, K1(r))), n ? (s = Ahe, a = !1) : e.length >= aMt && (s = UN, a = !1, e = new c1(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -62741,60 +62763,60 @@ function aMt(t, e, r, n) { } return l; } -var oMt = px(function(t, e) { - return $3(t) ? aMt(t, nm(e, 1, $3, !0)) : []; +var lMt = px(function(t, e) { + return $3(t) ? oMt(t, nm(e, 1, $3, !0)) : []; }); -const JT = oMt; +const eC = lMt; function $c(t) { var e = t == null ? 0 : t.length; return e ? t[e - 1] : void 0; } function es(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : Cx(e), dhe(t, e < 0 ? 0 : e, n)) : []; + return n ? (e = r || e === void 0 ? 1 : Cx(e), phe(t, e < 0 ? 0 : e, n)) : []; } function T2(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : Cx(e), e = n - e, dhe(t, 0, e < 0 ? 0 : e)) : []; + return n ? (e = r || e === void 0 ? 1 : Cx(e), e = n - e, phe(t, 0, e < 0 ? 0 : e)) : []; } function WN(t) { return typeof t == "function" ? t : Yu; } function $e(t, e) { - var r = Sr(t) ? che : Z0; + var r = Sr(t) ? uhe : Z0; return r(t, WN(e)); } -function lMt(t, e) { +function cMt(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (!e(t[r], r, t)) return !1; return !0; } -function cMt(t, e) { +function uMt(t, e) { var r = !0; return Z0(t, function(n, i, s) { return r = !!e(n, i, s), r; }), r; } function Tl(t, e, r) { - var n = Sr(t) ? lMt : cMt; - return r && l0(t, e, r) && (e = void 0), n(t, Ua(e)); + var n = Sr(t) ? cMt : uMt; + return r && l0(t, e, r) && (e = void 0), n(t, qa(e)); } -function Ahe(t, e) { +function Lhe(t, e) { var r = []; return Z0(t, function(n, i, s) { e(n, i, s) && r.push(n); }), r; } function Qn(t, e) { - var r = Sr(t) ? zN : Ahe; - return r(t, Ua(e)); + var r = Sr(t) ? zN : Lhe; + return r(t, qa(e)); } -function uMt(t) { +function hMt(t) { return function(e, r, n) { var i = Object(e); if (!Zc(e)) { - var s = Ua(r); + var s = qa(r); e = ki(e), r = function(o) { return s(i[o], o, i); }; @@ -62803,93 +62825,93 @@ function uMt(t) { return a > -1 ? i[s ? e[a] : a] : void 0; }; } -var hMt = Math.max; -function fMt(t, e, r) { +var fMt = Math.max; +function dMt(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Cx(r); - return i < 0 && (i = hMt(n + i, 0)), uhe(t, Ua(e), i); + return i < 0 && (i = fMt(n + i, 0)), hhe(t, qa(e), i); } -var dMt = uMt(fMt); -const Xu = dMt; +var pMt = hMt(dMt); +const Xu = pMt; function Bl(t) { return t && t.length ? t[0] : void 0; } -function Lhe(t, e) { +function Rhe(t, e) { var r = -1, n = Zc(t) ? Array(t.length) : []; return Z0(t, function(i, s, a) { n[++r] = e(i, s, a); }), n; } function gt(t, e) { - var r = Sr(t) ? Jh : Lhe; - return r(t, Ua(e)); + var r = Sr(t) ? Jh : Rhe; + return r(t, qa(e)); } function oo(t, e) { return nm(gt(t, e), 1); } -function pMt(t, e) { - return t == null ? t : $D(t, WN(e), Y0); -} function gMt(t, e) { + return t == null ? t : BD(t, WN(e), Y0); +} +function mMt(t, e) { return t && YN(t, WN(e)); } -var mMt = Object.prototype, vMt = mMt.hasOwnProperty, yMt = tMt(function(t, e, r) { - vMt.call(t, r) ? t[r].push(e) : hx(t, r, [e]); +var vMt = Object.prototype, yMt = vMt.hasOwnProperty, bMt = rMt(function(t, e, r) { + yMt.call(t, r) ? t[r].push(e) : hx(t, r, [e]); }); -const bMt = yMt; -function xMt(t, e) { +const xMt = bMt; +function wMt(t, e) { return t > e; } -var wMt = Object.prototype, OMt = wMt.hasOwnProperty; -function kMt(t, e) { - return t != null && OMt.call(t, e); +var OMt = Object.prototype, kMt = OMt.hasOwnProperty; +function SMt(t, e) { + return t != null && kMt.call(t, e); } function yt(t, e) { - return t != null && The(t, e, kMt); + return t != null && Che(t, e, SMt); } -var SMt = "[object String]"; -function $a(t) { - return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == SMt; +var TMt = "[object String]"; +function Ba(t) { + return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == TMt; } -function TMt(t, e) { +function CMt(t, e) { return Jh(e, function(r) { return t[r]; }); } function Kr(t) { - return t == null ? [] : TMt(t, ki(t)); + return t == null ? [] : CMt(t, ki(t)); } -var CMt = Math.max; +var EMt = Math.max; function pa(t, e, r, n) { t = Zc(t) ? t : Kr(t), r = r && !n ? Cx(r) : 0; var i = t.length; - return r < 0 && (r = CMt(i + r, 0)), $a(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && $N(t, e, r) > -1; + return r < 0 && (r = EMt(i + r, 0)), Ba(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && $N(t, e, r) > -1; } -var EMt = Math.max; -function SY(t, e, r) { +var _Mt = Math.max; +function TY(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Cx(r); - return i < 0 && (i = EMt(n + i, 0)), $N(t, e, i); + return i < 0 && (i = _Mt(n + i, 0)), $N(t, e, i); } -var _Mt = "[object RegExp]"; -function AMt(t) { - return Xo(t) && ah(t) == _Mt; +var AMt = "[object RegExp]"; +function LMt(t) { + return Xo(t) && ah(t) == AMt; } -var TY = bf && bf.isRegExp, LMt = TY ? K1(TY) : AMt; -const Zu = LMt; +var CY = bf && bf.isRegExp, RMt = CY ? K1(CY) : LMt; +const Zu = RMt; function qr(t) { return t === void 0; } -function Rhe(t, e) { +function Mhe(t, e) { return t < e; } -function eC(t, e) { +function tC(t, e) { var r = {}; - return e = Ua(e), YN(t, function(n, i, s) { + return e = qa(e), YN(t, function(n, i, s) { hx(r, i, e(n, i, s)); }), r; } @@ -62902,18 +62924,18 @@ function GN(t, e, r) { return l; } function g0(t) { - return t && t.length ? GN(t, Yu, xMt) : void 0; + return t && t.length ? GN(t, Yu, wMt) : void 0; } function u1(t) { - return t && t.length ? GN(t, Yu, Rhe) : void 0; + return t && t.length ? GN(t, Yu, Mhe) : void 0; } function HN(t, e) { - return t && t.length ? GN(t, Ua(e), Rhe) : void 0; + return t && t.length ? GN(t, qa(e), Mhe) : void 0; } -var RMt = "Expected a function"; -function MMt(t) { +var MMt = "Expected a function"; +function DMt(t) { if (typeof t != "function") - throw new TypeError(RMt); + throw new TypeError(MMt); return function() { var e = arguments; switch (e.length) { @@ -62929,46 +62951,46 @@ function MMt(t) { return !t.apply(this, e); }; } -function DMt(t, e, r, n) { - if (!Pa(t)) +function NMt(t, e, r, n) { + if (!$a(t)) return t; - e = ZT(e, t); + e = jT(e, t); for (var i = -1, s = e.length, a = s - 1, o = t; o != null && ++i < s; ) { var l = Ex(e[i]), u = r; if (l === "__proto__" || l === "constructor" || l === "prototype") return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = Pa(h) ? h : DT(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = $a(h) ? h : NT(e[i + 1]) ? [] : {}); } dx(o, l, u), o = o[l]; } return t; } -function Mhe(t, e, r) { +function Dhe(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { - var a = e[n], o = jT(t, a); - r(o, a) && DMt(s, ZT(a, t), o); + var a = e[n], o = KT(t, a); + r(o, a) && NMt(s, jT(a, t), o); } return s; } function Hl(t, e) { if (t == null) return {}; - var r = Jh(vhe(t), function(n) { + var r = Jh(yhe(t), function(n) { return [n]; }); - return e = Ua(e), Mhe(t, r, function(n, i) { + return e = qa(e), Dhe(t, r, function(n, i) { return e(n, i[0]); }); } -function NMt(t, e) { +function IMt(t, e) { var r = t.length; for (t.sort(e); r--; ) t[r] = t[r].value; return t; } -function IMt(t, e) { +function PMt(t, e) { if (t !== e) { var r = t !== void 0, n = t === null, i = t === t, s = p0(t), a = e !== void 0, o = e === null, l = e === e, u = p0(e); if (!o && !u && !s && t > e || s && a && l && !o && !u || n && a && l || !r && l || !i) @@ -62978,9 +63000,9 @@ function IMt(t, e) { } return 0; } -function PMt(t, e, r) { +function $Mt(t, e, r) { for (var n = -1, i = t.criteria, s = e.criteria, a = i.length, o = r.length; ++n < a; ) { - var l = IMt(i[n], s[n]); + var l = PMt(i[n], s[n]); if (l) { if (n >= o) return l; @@ -62990,87 +63012,87 @@ function PMt(t, e, r) { } return t.index - e.index; } -function $Mt(t, e, r) { +function BMt(t, e, r) { e.length ? e = Jh(e, function(s) { return Sr(s) ? function(a) { - return jT(a, s.length === 1 ? s[0] : s); + return KT(a, s.length === 1 ? s[0] : s); } : s; }) : e = [Yu]; var n = -1; - e = Jh(e, K1(Ua)); - var i = Lhe(t, function(s, a, o) { + e = Jh(e, K1(qa)); + var i = Rhe(t, function(s, a, o) { var l = Jh(e, function(u) { return u(s); }); return { criteria: l, index: ++n, value: s }; }); - return NMt(i, function(s, a) { - return PMt(s, a, r); + return IMt(i, function(s, a) { + return $Mt(s, a, r); }); } -function BMt(t, e) { - return Mhe(t, e, function(r, n) { - return Che(t, n); +function FMt(t, e) { + return Dhe(t, e, function(r, n) { + return Ehe(t, n); }); } -var FMt = QLt(function(t, e) { - return t == null ? {} : BMt(t, e); +var zMt = YLt(function(t, e) { + return t == null ? {} : FMt(t, e); }); -const lk = FMt; -var zMt = Math.ceil, VMt = Math.max; -function UMt(t, e, r, n) { - for (var i = -1, s = VMt(zMt((e - t) / (r || 1)), 0), a = Array(s); s--; ) +const ck = zMt; +var VMt = Math.ceil, UMt = Math.max; +function qMt(t, e, r, n) { + for (var i = -1, s = UMt(VMt((e - t) / (r || 1)), 0), a = Array(s); s--; ) a[n ? s : ++i] = t, t += r; return a; } -function qMt(t) { +function QMt(t) { return function(e, r, n) { - return n && typeof n != "number" && l0(e, r, n) && (r = n = void 0), e = q4(e), r === void 0 ? (r = e, e = 0) : r = q4(r), n = n === void 0 ? e < r ? 1 : -1 : q4(n), UMt(e, r, n, t); + return n && typeof n != "number" && l0(e, r, n) && (r = n = void 0), e = q4(e), r === void 0 ? (r = e, e = 0) : r = q4(r), n = n === void 0 ? e < r ? 1 : -1 : q4(n), qMt(e, r, n, t); }; } -var QMt = qMt(); -const h1 = QMt; -function YMt(t, e, r, n, i) { +var YMt = QMt(); +const h1 = YMt; +function WMt(t, e, r, n, i) { return i(t, function(s, a, o) { r = n ? (n = !1, s) : e(r, s, a, o); }), r; } function gi(t, e, r) { - var n = Sr(t) ? YLt : YMt, i = arguments.length < 3; - return n(t, Ua(e), r, i, Z0); + var n = Sr(t) ? WLt : WMt, i = arguments.length < 3; + return n(t, qa(e), r, i, Z0); } -function tC(t, e) { - var r = Sr(t) ? zN : Ahe; - return r(t, MMt(Ua(e))); +function rC(t, e) { + var r = Sr(t) ? zN : Lhe; + return r(t, DMt(qa(e))); } -function WMt(t, e) { +function GMt(t, e) { var r; return Z0(t, function(n, i, s) { return r = e(n, i, s), !r; }), !!r; } -function Dhe(t, e, r) { - var n = Sr(t) ? whe : WMt; - return r && l0(t, e, r) && (e = void 0), n(t, Ua(e)); +function Nhe(t, e, r) { + var n = Sr(t) ? Ohe : GMt; + return r && l0(t, e, r) && (e = void 0), n(t, qa(e)); } -var GMt = px(function(t, e) { +var HMt = px(function(t, e) { if (t == null) return []; var r = e.length; - return r > 1 && l0(t, e[0], e[1]) ? e = [] : r > 2 && l0(e[0], e[1], e[2]) && (e = [e[0]]), $Mt(t, nm(e, 1), []); + return r > 1 && l0(t, e[0], e[1]) ? e = [] : r > 2 && l0(e[0], e[1], e[2]) && (e = [e[0]]), BMt(t, nm(e, 1), []); }); -const Ax = GMt; -var HMt = 1 / 0, XMt = ig && 1 / qN(new ig([, -0]))[1] == HMt ? function(t) { +const Ax = HMt; +var XMt = 1 / 0, ZMt = ig && 1 / qN(new ig([, -0]))[1] == XMt ? function(t) { return new ig(t); } : vi; -const ZMt = XMt; -var jMt = 200; +const jMt = ZMt; +var KMt = 200; function XN(t, e, r) { - var n = -1, i = hhe, s = t.length, a = !0, o = [], l = o; + var n = -1, i = fhe, s = t.length, a = !0, o = [], l = o; if (r) - a = !1, i = _he; - else if (s >= jMt) { - var u = e ? null : ZMt(t); + a = !1, i = Ahe; + else if (s >= KMt) { + var u = e ? null : jMt(t); if (u) return qN(u); a = !1, i = UN, l = new c1(); @@ -63089,33 +63111,33 @@ function XN(t, e, r) { } return o; } -var KMt = px(function(t) { +var JMt = px(function(t) { return XN(nm(t, 1, $3, !0)); }); -const JMt = KMt; +const eDt = JMt; function ZN(t) { return t && t.length ? XN(t) : []; } -function eDt(t, e) { - return t && t.length ? XN(t, Ua(e)) : []; +function tDt(t, e) { + return t && t.length ? XN(t, qa(e)) : []; } -var tDt = 0; +var rDt = 0; function jN(t) { - var e = ++tDt; - return fhe(t) + e; + var e = ++rDt; + return dhe(t) + e; } -function rDt(t, e, r) { +function nDt(t, e, r) { for (var n = -1, i = t.length, s = e.length, a = {}; ++n < i; ) { var o = n < s ? e[n] : void 0; r(a, t[n], o); } return a; } -function nDt(t, e) { - return rDt(t || [], e || [], dx); +function iDt(t, e) { + return nDt(t || [], e || [], dx); } -var iDt = "\0", nd = "\0", CY = ""; -class $i { +var sDt = "\0", nd = "\0", EY = ""; +class Bi { constructor(e = {}) { this._isDirected = yt(e, "directed") ? e.directed : !0, this._isMultigraph = yt(e, "multigraph") ? e.multigraph : !1, this._isCompound = yt(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = $p(void 0), this._defaultEdgeLabelFn = $p(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[nd] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; } @@ -63231,7 +63253,7 @@ class $i { neighbors(e) { var r = this.predecessors(e); if (r) - return JMt(r, this.successors(e)); + return eDt(r, this.successors(e)); } isLeaf(e) { var r; @@ -63283,20 +63305,20 @@ class $i { if (!qr(n) && !this._isMultigraph) throw new Error("Cannot set a named edge when isMultigraph = false"); this.setNode(e), this.setNode(r), this._edgeLabels[o] = s ? i : this._defaultEdgeLabelFn(e, r, n); - var l = sDt(this._isDirected, e, r, n); - return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, EY(this._preds[r], e), EY(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; + var l = aDt(this._isDirected, e, r, n); + return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, _Y(this._preds[r], e), _Y(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; } edge(e, r, n) { - var i = arguments.length === 1 ? k_(this._isDirected, arguments[0]) : Tv(this._isDirected, e, r, n); + var i = arguments.length === 1 ? S_(this._isDirected, arguments[0]) : Tv(this._isDirected, e, r, n); return this._edgeLabels[i]; } hasEdge(e, r, n) { - var i = arguments.length === 1 ? k_(this._isDirected, arguments[0]) : Tv(this._isDirected, e, r, n); + var i = arguments.length === 1 ? S_(this._isDirected, arguments[0]) : Tv(this._isDirected, e, r, n); return yt(this._edgeLabels, i); } removeEdge(e, r, n) { - var i = arguments.length === 1 ? k_(this._isDirected, arguments[0]) : Tv(this._isDirected, e, r, n), s = this._edgeObjs[i]; - return s && (e = s.v, r = s.w, delete this._edgeLabels[i], delete this._edgeObjs[i], _Y(this._preds[r], e), _Y(this._sucs[e], r), delete this._in[r][i], delete this._out[e][i], this._edgeCount--), this; + var i = arguments.length === 1 ? S_(this._isDirected, arguments[0]) : Tv(this._isDirected, e, r, n), s = this._edgeObjs[i]; + return s && (e = s.v, r = s.w, delete this._edgeLabels[i], delete this._edgeObjs[i], AY(this._preds[r], e), AY(this._sucs[e], r), delete this._in[r][i], delete this._out[e][i], this._edgeCount--), this; } inEdges(e, r) { var n = this._in[e]; @@ -63322,12 +63344,12 @@ class $i { return n.concat(this.outEdges(e, r)); } } -$i.prototype._nodeCount = 0; -$i.prototype._edgeCount = 0; -function EY(t, e) { +Bi.prototype._nodeCount = 0; +Bi.prototype._edgeCount = 0; +function _Y(t, e) { t[e] ? t[e]++ : t[e] = 1; } -function _Y(t, e) { +function AY(t, e) { --t[e] || delete t[e]; } function Tv(t, e, r, n) { @@ -63336,9 +63358,9 @@ function Tv(t, e, r, n) { var a = i; i = s, s = a; } - return i + CY + s + CY + (qr(n) ? iDt : n); + return i + EY + s + EY + (qr(n) ? sDt : n); } -function sDt(t, e, r, n) { +function aDt(t, e, r, n) { var i = "" + e, s = "" + r; if (!t && i > s) { var a = i; @@ -63347,10 +63369,10 @@ function sDt(t, e, r, n) { var o = { v: i, w: s }; return n && (o.name = n), o; } -function k_(t, e) { +function S_(t, e) { return Tv(t, e.v, e.w, e.name); } -class aDt { +class oDt { constructor() { var e = {}; e._next = e._prev = e, this._sentinel = e; @@ -63358,64 +63380,64 @@ class aDt { dequeue() { var e = this._sentinel, r = e._prev; if (r !== e) - return AY(r), r; + return LY(r), r; } enqueue(e) { var r = this._sentinel; - e._prev && e._next && AY(e), e._next = r._next, r._next._prev = e, r._next = e, e._prev = r; + e._prev && e._next && LY(e), e._next = r._next, r._next._prev = e, r._next = e, e._prev = r; } toString() { for (var e = [], r = this._sentinel, n = r._prev; n !== r; ) - e.push(JSON.stringify(n, oDt)), n = n._prev; + e.push(JSON.stringify(n, lDt)), n = n._prev; return "[" + e.join(", ") + "]"; } } -function AY(t) { +function LY(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } -function oDt(t, e) { +function lDt(t, e) { if (t !== "_next" && t !== "_prev") return e; } -var lDt = $p(1); -function cDt(t, e) { +var cDt = $p(1); +function uDt(t, e) { if (t.nodeCount() <= 1) return []; - var r = hDt(t, e || lDt), n = uDt(r.graph, r.buckets, r.zeroIdx); + var r = fDt(t, e || cDt), n = hDt(r.graph, r.buckets, r.zeroIdx); return Yi( gt(n, function(i) { return t.outEdges(i.v, i.w); }) ); } -function uDt(t, e, r) { +function hDt(t, e, r) { for (var n = [], i = e[e.length - 1], s = e[0], a; t.nodeCount(); ) { for (; a = s.dequeue(); ) - S_(t, e, r, a); + T_(t, e, r, a); for (; a = i.dequeue(); ) - S_(t, e, r, a); + T_(t, e, r, a); if (t.nodeCount()) { for (var o = e.length - 2; o > 0; --o) if (a = e[o].dequeue(), a) { - n = n.concat(S_(t, e, r, a, !0)); + n = n.concat(T_(t, e, r, a, !0)); break; } } } return n; } -function S_(t, e, r, n, i) { +function T_(t, e, r, n, i) { var s = i ? [] : void 0; return $e(t.inEdges(n.v), function(a) { var o = t.edge(a), l = t.node(a.v); - i && s.push({ v: a.v, w: a.w }), l.out -= o, AL(e, r, l); + i && s.push({ v: a.v, w: a.w }), l.out -= o, LL(e, r, l); }), $e(t.outEdges(n.v), function(a) { var o = t.edge(a), l = a.w, u = t.node(l); - u.in -= o, AL(e, r, u); + u.in -= o, LL(e, r, u); }), t.removeNode(n.v), s; } -function hDt(t, e) { - var r = new $i(), n = 0, i = 0; +function fDt(t, e) { + var r = new Bi(), n = 0, i = 0; $e(t.nodes(), function(o) { r.setNode(o, { v: o, in: 0, out: 0 }); }), $e(t.edges(), function(o) { @@ -63423,17 +63445,17 @@ function hDt(t, e) { r.setEdge(o.v, o.w, h), i = Math.max(i, r.node(o.v).out += u), n = Math.max(n, r.node(o.w).in += u); }); var s = h1(i + n + 3).map(function() { - return new aDt(); + return new oDt(); }), a = n + 1; return $e(r.nodes(), function(o) { - AL(s, a, r.node(o)); + LL(s, a, r.node(o)); }), { graph: r, buckets: s, zeroIdx: a }; } -function AL(t, e, r) { +function LL(t, e, r) { r.out ? r.in ? t[r.out - r.in + e].enqueue(r) : t[t.length - 1].enqueue(r) : t[0].enqueue(r); } -function fDt(t) { - var e = t.graph().acyclicer === "greedy" ? cDt(t, r(t)) : dDt(t); +function dDt(t) { + var e = t.graph().acyclicer === "greedy" ? uDt(t, r(t)) : pDt(t); $e(e, function(n) { var i = t.edge(n); t.removeEdge(n), i.forwardName = n.name, i.reversed = !0, t.setEdge(n.w, n.v, i, jN("rev")); @@ -63444,7 +63466,7 @@ function fDt(t) { }; } } -function dDt(t) { +function pDt(t) { var e = [], r = {}, n = {}; function i(s) { yt(n, s) || (n[s] = !0, r[s] = !0, $e(t.outEdges(s), function(a) { @@ -63453,7 +63475,7 @@ function dDt(t) { } return $e(t.nodes(), i), e; } -function pDt(t) { +function gDt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.reversed) { @@ -63470,8 +63492,8 @@ function im(t, e, r, n) { while (t.hasNode(i)); return r.dummy = e, t.setNode(i, r), i; } -function gDt(t) { - var e = new $i().setGraph(t.graph()); +function mDt(t) { + var e = new Bi().setGraph(t.graph()); return $e(t.nodes(), function(r) { e.setNode(r, t.node(r)); }), $e(t.edges(), function(r) { @@ -63482,23 +63504,23 @@ function gDt(t) { }); }), e; } -function Nhe(t) { - var e = new $i({ multigraph: t.isMultigraph() }).setGraph(t.graph()); +function Ihe(t) { + var e = new Bi({ multigraph: t.isMultigraph() }).setGraph(t.graph()); return $e(t.nodes(), function(r) { t.children(r).length || e.setNode(r, t.node(r)); }), $e(t.edges(), function(r) { e.setEdge(r, t.edge(r)); }), e; } -function LY(t, e) { +function RY(t, e) { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2; if (!i && !s) throw new Error("Not possible to find intersection inside of the rectangle"); var l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = a * s / i), { x: r + l, y: n + u }; } -function rC(t) { - var e = gt(h1(Ihe(t) + 1), function() { +function nC(t) { + var e = gt(h1(Phe(t) + 1), function() { return []; }); return $e(t.nodes(), function(r) { @@ -63506,7 +63528,7 @@ function rC(t) { qr(i) || (e[i][n.order] = r); }), e; } -function mDt(t) { +function vDt(t) { var e = u1( gt(t.nodes(), function(r) { return t.node(r).rank; @@ -63517,7 +63539,7 @@ function mDt(t) { yt(n, "rank") && (n.rank -= e); }); } -function vDt(t) { +function yDt(t) { var e = u1( gt(t.nodes(), function(s) { return t.node(s).rank; @@ -63534,14 +63556,14 @@ function vDt(t) { }); }); } -function RY(t, e, r, n) { +function MY(t, e, r, n) { var i = { width: 0, height: 0 }; return arguments.length >= 4 && (i.rank = r, i.order = n), im(t, "border", i, e); } -function Ihe(t) { +function Phe(t) { return g0( gt(t.nodes(), function(e) { var r = t.node(e).rank; @@ -63550,86 +63572,86 @@ function Ihe(t) { }) ); } -function yDt(t, e) { +function bDt(t, e) { var r = { lhs: [], rhs: [] }; return $e(t, function(n) { e(n) ? r.lhs.push(n) : r.rhs.push(n); }), r; } -function bDt(t, e) { - var r = kY(); +function xDt(t, e) { + var r = SY(); try { return e(); } finally { - console.log(t + " time: " + (kY() - r) + "ms"); + console.log(t + " time: " + (SY() - r) + "ms"); } } -function xDt(t, e) { +function wDt(t, e) { return e(); } -function wDt(t) { +function ODt(t) { function e(r) { var n = t.children(r), i = t.node(r); if (n.length && $e(n, e), yt(i, "minRank")) { i.borderLeft = [], i.borderRight = []; for (var s = i.minRank, a = i.maxRank + 1; s < a; ++s) - MY(t, "borderLeft", "_bl", r, i, s), MY(t, "borderRight", "_br", r, i, s); + DY(t, "borderLeft", "_bl", r, i, s), DY(t, "borderRight", "_br", r, i, s); } } $e(t.children(), e); } -function MY(t, e, r, n, i, s) { +function DY(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = im(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } -function ODt(t) { +function kDt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "lr" || e === "rl") && Phe(t); + (e === "lr" || e === "rl") && $he(t); } -function kDt(t) { +function SDt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && SDt(t), (e === "lr" || e === "rl") && (TDt(t), Phe(t)); + (e === "bt" || e === "rl") && TDt(t), (e === "lr" || e === "rl") && (CDt(t), $he(t)); } -function Phe(t) { +function $he(t) { $e(t.nodes(), function(e) { - DY(t.node(e)); + NY(t.node(e)); }), $e(t.edges(), function(e) { - DY(t.edge(e)); + NY(t.edge(e)); }); } -function DY(t) { +function NY(t) { var e = t.width; t.width = t.height, t.height = e; } -function SDt(t) { +function TDt(t) { $e(t.nodes(), function(e) { - T_(t.node(e)); + C_(t.node(e)); }), $e(t.edges(), function(e) { var r = t.edge(e); - $e(r.points, T_), yt(r, "y") && T_(r); + $e(r.points, C_), yt(r, "y") && C_(r); }); } -function T_(t) { +function C_(t) { t.y = -t.y; } -function TDt(t) { +function CDt(t) { $e(t.nodes(), function(e) { - C_(t.node(e)); + E_(t.node(e)); }), $e(t.edges(), function(e) { var r = t.edge(e); - $e(r.points, C_), yt(r, "x") && C_(r); + $e(r.points, E_), yt(r, "x") && E_(r); }); } -function C_(t) { +function E_(t) { var e = t.x; t.x = t.y, t.y = e; } -function CDt(t) { +function EDt(t) { t.graph().dummyChains = [], $e(t.edges(), function(e) { - EDt(t, e); + _Dt(t, e); }); } -function EDt(t, e) { +function _Dt(t, e) { var r = e.v, n = t.node(r).rank, i = e.w, s = t.node(i).rank, a = e.name, o = t.edge(e), l = o.labelRank; if (s !== n + 1) { t.removeEdge(e); @@ -63645,7 +63667,7 @@ function EDt(t, e) { t.setEdge(r, i, { weight: o.weight }, a); } } -function _Dt(t) { +function ADt(t) { $e(t.graph().dummyChains, function(e) { var r = t.node(e), n = r.edgeLabel, i; for (t.setEdge(r.edgeObj, n); r.dummy; ) @@ -63671,14 +63693,14 @@ function KN(t) { function C2(t, e) { return t.node(e.w).rank - t.node(e.v).rank - t.edge(e).minlen; } -function $he(t) { - var e = new $i({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); +function Bhe(t) { + var e = new Bi({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); - for (var i, s; ADt(e, t) < n; ) - i = LDt(e, t), s = e.hasNode(i.v) ? C2(t, i) : -C2(t, i), RDt(e, t, s); + for (var i, s; LDt(e, t) < n; ) + i = RDt(e, t), s = e.hasNode(i.v) ? C2(t, i) : -C2(t, i), MDt(e, t, s); return e; } -function ADt(t, e) { +function LDt(t, e) { function r(n) { $e(e.nodeEdges(n), function(i) { var s = i.v, a = n === s ? i.w : s; @@ -63687,70 +63709,70 @@ function ADt(t, e) { } return $e(t.nodes(), r), t.nodeCount(); } -function LDt(t, e) { +function RDt(t, e) { return HN(e.edges(), function(r) { if (t.hasNode(r.v) !== t.hasNode(r.w)) return C2(e, r); }); } -function RDt(t, e, r) { +function MDt(t, e, r) { $e(t.nodes(), function(n) { e.node(n).rank += r; }); } -function MDt() { +function DDt() { } -MDt.prototype = new Error(); -function Bhe(t, e, r) { +DDt.prototype = new Error(); +function Fhe(t, e, r) { Sr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; return $e(e, function(a) { if (!t.hasNode(a)) throw new Error("Graph does not have node: " + a); - Fhe(t, a, r === "post", s, n, i); + zhe(t, a, r === "post", s, n, i); }), i; } -function Fhe(t, e, r, n, i, s) { +function zhe(t, e, r, n, i, s) { yt(n, e) || (n[e] = !0, r || s.push(e), $e(i(e), function(a) { - Fhe(t, a, r, n, i, s); + zhe(t, a, r, n, i, s); }), r && s.push(e)); } -function DDt(t, e) { - return Bhe(t, e, "post"); -} function NDt(t, e) { - return Bhe(t, e, "pre"); + return Fhe(t, e, "post"); +} +function IDt(t, e) { + return Fhe(t, e, "pre"); } j0.initLowLimValues = eI; j0.initCutValues = JN; -j0.calcCutValue = zhe; -j0.leaveEdge = Uhe; -j0.enterEdge = qhe; -j0.exchangeEdges = Qhe; +j0.calcCutValue = Vhe; +j0.leaveEdge = qhe; +j0.enterEdge = Qhe; +j0.exchangeEdges = Yhe; function j0(t) { - t = gDt(t), KN(t); - var e = $he(t); + t = mDt(t), KN(t); + var e = Bhe(t); eI(e), JN(e, t); - for (var r, n; r = Uhe(e); ) - n = qhe(e, t, r), Qhe(e, t, r, n); + for (var r, n; r = qhe(e); ) + n = Qhe(e, t, r), Yhe(e, t, r, n); } function JN(t, e) { - var r = DDt(t, t.nodes()); + var r = NDt(t, t.nodes()); r = r.slice(0, r.length - 1), $e(r, function(n) { - IDt(t, e, n); + PDt(t, e, n); }); } -function IDt(t, e, r) { +function PDt(t, e, r) { var n = t.node(r), i = n.parent; - t.edge(r, i).cutvalue = zhe(t, e, r); + t.edge(r, i).cutvalue = Vhe(t, e, r); } -function zhe(t, e, r) { +function Vhe(t, e, r) { var n = t.node(r), i = n.parent, s = !0, a = e.edge(r, i), o = 0; return a || (s = !1, a = e.edge(i, r)), o = a.weight, $e(e.nodeEdges(r), function(l) { var u = l.v === r, h = u ? l.w : l.v; if (h !== i) { var f = u === s, d = e.edge(l).weight; - if (o += f ? d : -d, $Dt(t, r, h)) { + if (o += f ? d : -d, BDt(t, r, h)) { var p = t.edge(r, h).cutvalue; o += f ? -p : p; } @@ -63758,91 +63780,91 @@ function zhe(t, e, r) { }), o; } function eI(t, e) { - arguments.length < 2 && (e = t.nodes()[0]), Vhe(t, {}, 1, e); + arguments.length < 2 && (e = t.nodes()[0]), Uhe(t, {}, 1, e); } -function Vhe(t, e, r, n, i) { +function Uhe(t, e, r, n, i) { var s = r, a = t.node(n); return e[n] = !0, $e(t.neighbors(n), function(o) { - yt(e, o) || (r = Vhe(t, e, r, o, n)); + yt(e, o) || (r = Uhe(t, e, r, o, n)); }), a.low = s, a.lim = r++, i ? a.parent = i : delete a.parent, r; } -function Uhe(t) { +function qhe(t) { return Xu(t.edges(), function(e) { return t.edge(e).cutvalue < 0; }); } -function qhe(t, e, r) { +function Qhe(t, e, r) { var n = r.v, i = r.w; e.hasEdge(n, i) || (n = r.w, i = r.v); var s = t.node(n), a = t.node(i), o = s, l = !1; s.lim > a.lim && (o = a, l = !0); var u = Qn(e.edges(), function(h) { - return l === NY(t, t.node(h.v), o) && l !== NY(t, t.node(h.w), o); + return l === IY(t, t.node(h.v), o) && l !== IY(t, t.node(h.w), o); }); return HN(u, function(h) { return C2(e, h); }); } -function Qhe(t, e, r, n) { +function Yhe(t, e, r, n) { var i = r.v, s = r.w; - t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), eI(t), JN(t, e), PDt(t, e); + t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), eI(t), JN(t, e), $Dt(t, e); } -function PDt(t, e) { +function $Dt(t, e) { var r = Xu(t.nodes(), function(i) { return !e.node(i).parent; - }), n = NDt(t, r); + }), n = IDt(t, r); n = n.slice(1), $e(n, function(i) { var s = t.node(i).parent, a = e.edge(i, s), o = !1; a || (a = e.edge(s, i), o = !0), e.node(i).rank = e.node(s).rank + (o ? a.minlen : -a.minlen); }); } -function $Dt(t, e, r) { +function BDt(t, e, r) { return t.hasEdge(e, r); } -function NY(t, e, r) { +function IY(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } -function BDt(t) { +function FDt(t) { switch (t.graph().ranker) { case "network-simplex": - IY(t); + PY(t); break; case "tight-tree": - zDt(t); + VDt(t); break; case "longest-path": - FDt(t); + zDt(t); break; default: - IY(t); + PY(t); } } -var FDt = KN; -function zDt(t) { - KN(t), $he(t); +var zDt = KN; +function VDt(t) { + KN(t), Bhe(t); } -function IY(t) { +function PY(t) { j0(t); } -function VDt(t) { - var e = im(t, "root", {}, "_root"), r = UDt(t), n = g0(Kr(r)) - 1, i = 2 * n + 1; +function UDt(t) { + var e = im(t, "root", {}, "_root"), r = qDt(t), n = g0(Kr(r)) - 1, i = 2 * n + 1; t.graph().nestingRoot = e, $e(t.edges(), function(a) { t.edge(a).minlen *= i; }); - var s = qDt(t) + 1; + var s = QDt(t) + 1; $e(t.children(), function(a) { - Yhe(t, e, i, s, n, r, a); + Whe(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; } -function Yhe(t, e, r, n, i, s, a) { +function Whe(t, e, r, n, i, s, a) { var o = t.children(a); if (!o.length) { a !== e && t.setEdge(e, a, { weight: 0, minlen: r }); return; } - var l = RY(t, "_bt"), u = RY(t, "_bb"), h = t.node(a); + var l = MY(t, "_bt"), u = MY(t, "_bb"), h = t.node(a); t.setParent(l, a), h.borderTop = l, t.setParent(u, a), h.borderBottom = u, $e(o, function(f) { - Yhe(t, e, r, n, i, s, f); + Whe(t, e, r, n, i, s, f); var d = t.node(f), p = d.borderTop ? d.borderTop : f, g = d.borderBottom ? d.borderBottom : f, m = d.borderTop ? n : 2 * n, v = p !== g ? 1 : i - s[a] + 1; t.setEdge(l, p, { weight: m, @@ -63855,7 +63877,7 @@ function Yhe(t, e, r, n, i, s, a) { }); }), t.parent(a) || t.setEdge(e, l, { weight: 0, minlen: i + s[a] }); } -function UDt(t) { +function qDt(t) { var e = {}; function r(n, i) { var s = t.children(n); @@ -63867,7 +63889,7 @@ function UDt(t) { r(n, 1); }), e; } -function qDt(t) { +function QDt(t) { return gi( t.edges(), function(e, r) { @@ -63876,14 +63898,14 @@ function qDt(t) { 0 ); } -function QDt(t) { +function YDt(t) { var e = t.graph(); t.removeNode(e.nestingRoot), delete e.nestingRoot, $e(t.edges(), function(r) { var n = t.edge(r); n.nestingEdge && t.removeEdge(r); }); } -function YDt(t, e, r) { +function WDt(t, e, r) { var n = {}, i; $e(r, function(s) { for (var a = t.parent(s), o, l; a; ) { @@ -63895,8 +63917,8 @@ function YDt(t, e, r) { } }); } -function WDt(t, e, r) { - var n = GDt(t), i = new $i({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { +function GDt(t, e, r) { + var n = HDt(t), i = new Bi({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { return t.node(s); }); return $e(t.nodes(), function(s) { @@ -63910,18 +63932,18 @@ function WDt(t, e, r) { })); }), i; } -function GDt(t) { +function HDt(t) { for (var e; t.hasNode(e = jN("_root")); ) ; return e; } -function HDt(t, e) { +function XDt(t, e) { for (var r = 0, n = 1; n < e.length; ++n) - r += XDt(t, e[n - 1], e[n]); + r += ZDt(t, e[n - 1], e[n]); return r; } -function XDt(t, e, r) { - for (var n = nDt( +function ZDt(t, e, r) { + for (var n = iDt( r, gt(r, function(u, h) { return h; @@ -63952,7 +63974,7 @@ function XDt(t, e, r) { }) ), l; } -function ZDt(t) { +function jDt(t) { var e = {}, r = Qn(t.nodes(), function(o) { return !t.children(o).length; }), n = g0( @@ -63974,7 +63996,7 @@ function ZDt(t) { }); return $e(a, s), i; } -function jDt(t, e) { +function KDt(t, e) { return gt(e, function(r) { var n = t.inEdges(r); if (n.length) { @@ -63998,7 +64020,7 @@ function jDt(t, e) { return { v: r }; }); } -function KDt(t, e) { +function JDt(t, e) { var r = {}; $e(t, function(i, s) { var a = r[i.v] = { @@ -64016,13 +64038,13 @@ function KDt(t, e) { var n = Qn(r, function(i) { return !i.indegree; }); - return JDt(n); + return eNt(n); } -function JDt(t) { +function eNt(t) { var e = []; function r(s) { return function(a) { - a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && eNt(s, a); + a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && tNt(s, a); }; } function n(s) { @@ -64039,58 +64061,58 @@ function JDt(t) { return !s.merged; }), function(s) { - return lk(s, ["vs", "i", "barycenter", "weight"]); + return ck(s, ["vs", "i", "barycenter", "weight"]); } ); } -function eNt(t, e) { +function tNt(t, e) { var r = 0, n = 0; t.weight && (r += t.barycenter * t.weight, n += t.weight), e.weight && (r += e.barycenter * e.weight, n += e.weight), t.vs = e.vs.concat(t.vs), t.barycenter = r / n, t.weight = n, t.i = Math.min(e.i, t.i), e.merged = !0; } -function tNt(t, e) { - var r = yDt(t, function(h) { +function rNt(t, e) { + var r = bDt(t, function(h) { return yt(h, "barycenter"); }), n = r.lhs, i = Ax(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(rNt(!!e)), l = PY(s, i, l), $e(n, function(h) { - l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = PY(s, i, l); + n.sort(nNt(!!e)), l = $Y(s, i, l), $e(n, function(h) { + l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = $Y(s, i, l); }); var u = { vs: Yi(s) }; return o && (u.barycenter = a / o, u.weight = o), u; } -function PY(t, e, r) { +function $Y(t, e, r) { for (var n; e.length && (n = $c(e)).i <= r; ) e.pop(), t.push(n.vs), r++; return r; } -function rNt(t) { +function nNt(t) { return function(e, r) { return e.barycenter < r.barycenter ? -1 : e.barycenter > r.barycenter ? 1 : t ? r.i - e.i : e.i - r.i; }; } -function Whe(t, e, r, n) { +function Ghe(t, e, r, n) { var i = t.children(e), s = t.node(e), a = s ? s.borderLeft : void 0, o = s ? s.borderRight : void 0, l = {}; a && (i = Qn(i, function(g) { return g !== a && g !== o; })); - var u = jDt(t, i); + var u = KDt(t, i); $e(u, function(g) { if (t.children(g.v).length) { - var m = Whe(t, g.v, r, n); - l[g.v] = m, yt(m, "barycenter") && iNt(g, m); + var m = Ghe(t, g.v, r, n); + l[g.v] = m, yt(m, "barycenter") && sNt(g, m); } }); - var h = KDt(u, r); - nNt(h, l); - var f = tNt(h, n); + var h = JDt(u, r); + iNt(h, l); + var f = rNt(h, n); if (a && (f.vs = Yi([a, f.vs, o]), t.predecessors(a).length)) { var d = t.node(t.predecessors(a)[0]), p = t.node(t.predecessors(o)[0]); yt(f, "barycenter") || (f.barycenter = 0, f.weight = 0), f.barycenter = (f.barycenter * f.weight + d.order + p.order) / (f.weight + 2), f.weight += 2; } return f; } -function nNt(t, e) { +function iNt(t, e) { $e(t, function(r) { r.vs = Yi( r.vs.map(function(n) { @@ -64099,44 +64121,44 @@ function nNt(t, e) { ); }); } -function iNt(t, e) { +function sNt(t, e) { qr(t.barycenter) ? (t.barycenter = e.barycenter, t.weight = e.weight) : (t.barycenter = (t.barycenter * t.weight + e.barycenter * e.weight) / (t.weight + e.weight), t.weight += e.weight); } -function sNt(t) { - var e = Ihe(t), r = $Y(t, h1(1, e + 1), "inEdges"), n = $Y(t, h1(e - 1, -1, -1), "outEdges"), i = ZDt(t); - BY(t, i); +function aNt(t) { + var e = Phe(t), r = BY(t, h1(1, e + 1), "inEdges"), n = BY(t, h1(e - 1, -1, -1), "outEdges"), i = jDt(t); + FY(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { - aNt(o % 2 ? r : n, o % 4 >= 2), i = rC(t); - var u = HDt(t, i); - u < s && (l = 0, a = hRt(i), s = u); + oNt(o % 2 ? r : n, o % 4 >= 2), i = nC(t); + var u = XDt(t, i); + u < s && (l = 0, a = fRt(i), s = u); } - BY(t, a); + FY(t, a); } -function $Y(t, e, r) { +function BY(t, e, r) { return gt(e, function(n) { - return WDt(t, n, r); + return GDt(t, n, r); }); } -function aNt(t, e) { - var r = new $i(); +function oNt(t, e) { + var r = new Bi(); $e(t, function(n) { - var i = n.graph().root, s = Whe(n, i, r, e); + var i = n.graph().root, s = Ghe(n, i, r, e); $e(s.vs, function(a, o) { n.node(a).order = o; - }), YDt(n, r, s.vs); + }), WDt(n, r, s.vs); }); } -function BY(t, e) { +function FY(t, e) { $e(e, function(r) { $e(r, function(n, i) { t.node(n).order = i; }); }); } -function oNt(t) { - var e = cNt(t); +function lNt(t) { + var e = uNt(t); $e(t.graph().dummyChains, function(r) { - for (var n = t.node(r), i = n.edgeObj, s = lNt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { + for (var n = t.node(r), i = n.edgeObj, s = cNt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { if (n = t.node(r), h) { for (; (u = a[l]) !== o && t.node(u).maxRank < n.rank; ) l++; @@ -64151,7 +64173,7 @@ function oNt(t) { } }); } -function lNt(t, e, r, n) { +function cNt(t, e, r, n) { var i = [], s = [], a = Math.min(e[r].low, e[n].low), o = Math.max(e[r].lim, e[n].lim), l, u; l = r; do @@ -64161,7 +64183,7 @@ function lNt(t, e, r, n) { s.push(l); return { path: i.concat(s.reverse()), lca: u }; } -function cNt(t) { +function uNt(t) { var e = {}, r = 0; function n(i) { var s = r; @@ -64169,30 +64191,30 @@ function cNt(t) { } return $e(t.children(), n), e; } -function uNt(t, e) { +function hNt(t, e) { var r = {}; function n(i, s) { var a = 0, o = 0, l = i.length, u = $c(s); return $e(s, function(h, f) { - var d = fNt(t, h), p = d ? t.node(d).order : l; + var d = dNt(t, h), p = d ? t.node(d).order : l; (d || h === u) && ($e(s.slice(o, f + 1), function(g) { $e(t.predecessors(g), function(m) { var v = t.node(m), y = v.order; - (y < a || p < y) && !(v.dummy && t.node(g).dummy) && Ghe(r, m, g); + (y < a || p < y) && !(v.dummy && t.node(g).dummy) && Hhe(r, m, g); }); }), o = f + 1, a = p); }), s; } return gi(e, n), r; } -function hNt(t, e) { +function fNt(t, e) { var r = {}; function n(s, a, o, l, u) { var h; $e(h1(a, o), function(f) { h = s[f], t.node(h).dummy && $e(t.predecessors(h), function(d) { var p = t.node(d); - p.dummy && (p.order < l || p.order > u) && Ghe(r, d, h); + p.dummy && (p.order < l || p.order > u) && Hhe(r, d, h); }); }); } @@ -64208,13 +64230,13 @@ function hNt(t, e) { } return gi(e, i), r; } -function fNt(t, e) { +function dNt(t, e) { if (t.node(e).dummy) return Xu(t.predecessors(e), function(r) { return t.node(r).dummy; }); } -function Ghe(t, e, r) { +function Hhe(t, e, r) { if (e > r) { var n = e; e = r, r = n; @@ -64222,14 +64244,14 @@ function Ghe(t, e, r) { var i = t[e]; i || (t[e] = i = {}), i[r] = !0; } -function dNt(t, e, r) { +function pNt(t, e, r) { if (e > r) { var n = e; e = r, r = n; } return yt(t[e], r); } -function pNt(t, e, r, n) { +function gNt(t, e, r, n) { var i = {}, s = {}, a = {}; return $e(e, function(o) { $e(o, function(l, u) { @@ -64245,14 +64267,14 @@ function pNt(t, e, r, n) { }); for (var f = (h.length - 1) / 2, d = Math.floor(f), p = Math.ceil(f); d <= p; ++d) { var g = h[d]; - s[u] === u && l < a[g] && !dNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); + s[u] === u && l < a[g] && !pNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); } } }); }), { root: i, align: s }; } -function gNt(t, e, r, n, i) { - var s = {}, a = mNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; +function mNt(t, e, r, n, i) { + var s = {}, a = vNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; function l(f, d) { for (var p = a.nodes(), g = p.pop(), m = {}; g; ) m[g] ? f(g) : (m[g] = !0, p.push(g), p = p.concat(d(g))), g = p.pop(); @@ -64272,8 +64294,8 @@ function gNt(t, e, r, n, i) { s[f] = s[r[f]]; }), s; } -function mNt(t, e, r, n) { - var i = new $i(), s = t.graph(), a = wNt(s.nodesep, s.edgesep, n); +function vNt(t, e, r, n) { + var i = new Bi(), s = t.graph(), a = ONt(s.nodesep, s.edgesep, n); return $e(e, function(o) { var l; $e(o, function(u) { @@ -64286,54 +64308,54 @@ function mNt(t, e, r, n) { }); }), i; } -function vNt(t, e) { +function yNt(t, e) { return HN(Kr(e), function(r) { var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return pMt(r, function(s, a) { - var o = ONt(t, a) / 2; + return gMt(r, function(s, a) { + var o = kNt(t, a) / 2; n = Math.max(s + o, n), i = Math.min(s - o, i); }), n - i; }); } -function yNt(t, e) { +function bNt(t, e) { var r = Kr(e), n = u1(r), i = g0(r); $e(["u", "d"], function(s) { $e(["l", "r"], function(a) { var o = s + a, l = t[o], u; if (l !== e) { var h = Kr(l); - u = a === "l" ? n - u1(h) : i - g0(h), u && (t[o] = eC(l, function(f) { + u = a === "l" ? n - u1(h) : i - g0(h), u && (t[o] = tC(l, function(f) { return f + u; })); } }); }); } -function bNt(t, e) { - return eC(t.ul, function(r, n) { +function xNt(t, e) { + return tC(t.ul, function(r, n) { if (e) return t[e.toLowerCase()][n]; var i = Ax(gt(t, n)); return (i[1] + i[2]) / 2; }); } -function xNt(t) { - var e = rC(t), r = B3(uNt(t, e), hNt(t, e)), n = {}, i; +function wNt(t) { + var e = nC(t), r = B3(hNt(t, e), fNt(t, e)), n = {}, i; $e(["u", "d"], function(a) { i = a === "u" ? e : Kr(e).reverse(), $e(["l", "r"], function(o) { o === "r" && (i = gt(i, function(f) { return Kr(f).reverse(); })); - var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = pNt(t, i, r, l), h = gNt(t, i, u.root, u.align, o === "r"); - o === "r" && (h = eC(h, function(f) { + var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = gNt(t, i, r, l), h = mNt(t, i, u.root, u.align, o === "r"); + o === "r" && (h = tC(h, function(f) { return -f; })), n[a + o] = h; }); }); - var s = vNt(t, n); - return yNt(n, s), bNt(n, t.graph().align); + var s = yNt(t, n); + return bNt(n, s), xNt(n, t.graph().align); } -function wNt(t, e, r) { +function ONt(t, e, r) { return function(n, i, s) { var a = n.node(i), o = n.node(s), l = 0, u; if (l += a.width / 2, yt(a, "labelpos")) @@ -64357,16 +64379,16 @@ function wNt(t, e, r) { return u && (l += r ? u : -u), u = 0, l; }; } -function ONt(t, e) { +function kNt(t, e) { return t.node(e).width; } -function kNt(t) { - t = Nhe(t), SNt(t), gMt(xNt(t), function(e, r) { +function SNt(t) { + t = Ihe(t), TNt(t), mMt(wNt(t), function(e, r) { t.node(r).x = e; }); } -function SNt(t) { - var e = rC(t), r = t.graph().ranksep, n = 0; +function TNt(t) { + var e = nC(t), r = t.graph().ranksep, n = 0; $e(e, function(i) { var s = g0( gt(i, function(a) { @@ -64379,76 +64401,76 @@ function SNt(t) { }); } function sm(t, e) { - var r = e && e.debugTiming ? bDt : xDt; + var r = e && e.debugTiming ? xDt : wDt; r("layout", function() { var n = r(" buildLayoutGraph", function() { - return INt(t); + return PNt(t); }); r(" runLayout", function() { - TNt(n, r); + CNt(n, r); }), r(" updateInputGraph", function() { - CNt(t, n); + ENt(t, n); }); }); } -function TNt(t, e) { +function CNt(t, e) { e(" makeSpaceForEdgeLabels", function() { - PNt(t); + $Nt(t); }), e(" removeSelfEdges", function() { - YNt(t); + WNt(t); }), e(" acyclic", function() { - fDt(t); + dDt(t); }), e(" nestingGraph.run", function() { - VDt(t); + UDt(t); }), e(" rank", function() { - BDt(Nhe(t)); + FDt(Ihe(t)); }), e(" injectEdgeLabelProxies", function() { - $Nt(t); + BNt(t); }), e(" removeEmptyRanks", function() { - vDt(t); + yDt(t); }), e(" nestingGraph.cleanup", function() { - QDt(t); + YDt(t); }), e(" normalizeRanks", function() { - mDt(t); + vDt(t); }), e(" assignRankMinMax", function() { - BNt(t); - }), e(" removeEdgeLabelProxies", function() { FNt(t); + }), e(" removeEdgeLabelProxies", function() { + zNt(t); }), e(" normalize.run", function() { - CDt(t); + EDt(t); }), e(" parentDummyChains", function() { - oNt(t); + lNt(t); }), e(" addBorderSegments", function() { - wDt(t); + ODt(t); }), e(" order", function() { - sNt(t); + aNt(t); }), e(" insertSelfEdges", function() { - WNt(t); + GNt(t); }), e(" adjustCoordinateSystem", function() { - ODt(t); + kDt(t); }), e(" position", function() { - kNt(t); + SNt(t); }), e(" positionSelfEdges", function() { - GNt(t); + HNt(t); }), e(" removeBorderNodes", function() { - QNt(t); + YNt(t); }), e(" normalize.undo", function() { - _Dt(t); + ADt(t); }), e(" fixupEdgeLabelCoords", function() { - UNt(t); + qNt(t); }), e(" undoCoordinateSystem", function() { - kDt(t); + SDt(t); }), e(" translateGraph", function() { - zNt(t); - }), e(" assignNodeIntersects", function() { VNt(t); + }), e(" assignNodeIntersects", function() { + UNt(t); }), e(" reversePoints", function() { - qNt(t); + QNt(t); }), e(" acyclic.undo", function() { - pDt(t); + gDt(t); }); } -function CNt(t, e) { +function ENt(t, e) { $e(t.nodes(), function(r) { var n = t.node(r), i = e.node(r); n && (n.x = i.x, n.y = i.y, e.children(r).length && (n.width = i.width, n.height = i.height)); @@ -64457,37 +64479,37 @@ function CNt(t, e) { n.points = i.points, yt(i, "x") && (n.x = i.x, n.y = i.y); }), t.graph().width = e.graph().width, t.graph().height = e.graph().height; } -var ENt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], _Nt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, ANt = ["acyclicer", "ranker", "rankdir", "align"], LNt = ["width", "height"], RNt = { width: 0, height: 0 }, MNt = ["minlen", "weight", "width", "height", "labeloffset"], DNt = { +var _Nt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], ANt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, LNt = ["acyclicer", "ranker", "rankdir", "align"], RNt = ["width", "height"], MNt = { width: 0, height: 0 }, DNt = ["minlen", "weight", "width", "height", "labeloffset"], NNt = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" -}, NNt = ["labelpos"]; -function INt(t) { - var e = new $i({ multigraph: !0, compound: !0 }), r = __(t.graph()); +}, INt = ["labelpos"]; +function PNt(t) { + var e = new Bi({ multigraph: !0, compound: !0 }), r = A_(t.graph()); return e.setGraph( - B3({}, _Nt, E_(r, ENt), lk(r, ANt)) + B3({}, ANt, __(r, _Nt), ck(r, LNt)) ), $e(t.nodes(), function(n) { - var i = __(t.node(n)); - e.setNode(n, KT(E_(i, LNt), RNt)), e.setParent(n, t.parent(n)); + var i = A_(t.node(n)); + e.setNode(n, JT(__(i, RNt), MNt)), e.setParent(n, t.parent(n)); }), $e(t.edges(), function(n) { - var i = __(t.edge(n)); + var i = A_(t.edge(n)); e.setEdge( n, - B3({}, DNt, E_(i, MNt), lk(i, NNt)) + B3({}, NNt, __(i, DNt), ck(i, INt)) ); }), e; } -function PNt(t) { +function $Nt(t) { var e = t.graph(); e.ranksep /= 2, $e(t.edges(), function(r) { var n = t.edge(r); n.minlen *= 2, n.labelpos.toLowerCase() !== "c" && (e.rankdir === "TB" || e.rankdir === "BT" ? n.width += n.labeloffset : n.height += n.labeloffset); }); } -function $Nt(t) { +function BNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.width && r.height) { @@ -64496,20 +64518,20 @@ function $Nt(t) { } }); } -function BNt(t) { +function FNt(t) { var e = 0; $e(t.nodes(), function(r) { var n = t.node(r); n.borderTop && (n.minRank = t.node(n.borderTop).rank, n.maxRank = t.node(n.borderBottom).rank, e = g0(e, n.maxRank)); }), t.graph().maxRank = e; } -function FNt(t) { +function zNt(t) { $e(t.nodes(), function(e) { var r = t.node(e); r.dummy === "edge-proxy" && (t.edge(r.e).labelRank = r.rank, t.removeNode(e)); }); } -function zNt(t) { +function VNt(t) { var e = Number.POSITIVE_INFINITY, r = 0, n = Number.POSITIVE_INFINITY, i = 0, s = t.graph(), a = s.marginx || 0, o = s.marginy || 0; function l(u) { var h = u.x, f = u.y, d = u.width, p = u.height; @@ -64530,13 +64552,13 @@ function zNt(t) { }), yt(h, "x") && (h.x -= e), yt(h, "y") && (h.y -= n); }), s.width = r - e + a, s.height = i - n + o; } -function VNt(t) { +function UNt(t) { $e(t.edges(), function(e) { var r = t.edge(e), n = t.node(e.v), i = t.node(e.w), s, a; - r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(LY(n, s)), r.points.push(LY(i, a)); + r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(RY(n, s)), r.points.push(RY(i, a)); }); } -function UNt(t) { +function qNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (yt(r, "x")) @@ -64550,13 +64572,13 @@ function UNt(t) { } }); } -function qNt(t) { +function QNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); r.reversed && r.points.reverse(); }); } -function QNt(t) { +function YNt(t) { $e(t.nodes(), function(e) { if (t.children(e).length) { var r = t.node(e), n = t.node(r.borderTop), i = t.node(r.borderBottom), s = t.node($c(r.borderLeft)), a = t.node($c(r.borderRight)); @@ -64566,7 +64588,7 @@ function QNt(t) { t.node(e).dummy === "border" && t.removeNode(e); }); } -function YNt(t) { +function WNt(t) { $e(t.edges(), function(e) { if (e.v === e.w) { var r = t.node(e.v); @@ -64574,8 +64596,8 @@ function YNt(t) { } }); } -function WNt(t) { - var e = rC(t); +function GNt(t) { + var e = nC(t); $e(e, function(r) { var n = 0; $e(r, function(i, s) { @@ -64598,7 +64620,7 @@ function WNt(t) { }); }); } -function GNt(t) { +function HNt(t) { $e(t.nodes(), function(e) { var r = t.node(e); if (r.dummy === "selfedge") { @@ -64613,10 +64635,10 @@ function GNt(t) { } }); } -function E_(t, e) { - return eC(lk(t, e), Number); +function __(t, e) { + return tC(ck(t, e), Number); } -function __(t) { +function A_(t) { var e = {}; return $e(t, function(r, n) { e[n.toLowerCase()] = r; @@ -64629,32 +64651,32 @@ function di(t) { multigraph: t.isMultigraph(), compound: t.isCompound() }, - nodes: HNt(t), - edges: XNt(t) + nodes: XNt(t), + edges: ZNt(t) }; - return qr(t.graph()) || (e.value = Di(t.graph())), e; + return qr(t.graph()) || (e.value = Ni(t.graph())), e; } -function HNt(t) { +function XNt(t) { return gt(t.nodes(), function(e) { var r = t.node(e), n = t.parent(e), i = { v: e }; return qr(r) || (i.value = r), qr(n) || (i.parent = n), i; }); } -function XNt(t) { +function ZNt(t) { return gt(t.edges(), function(e) { var r = t.edge(e), n = { v: e.v, w: e.w }; return qr(e.name) || (n.name = e.name), qr(r) || (n.value = r), n; }); } -var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__PURE__ */ new Map(), ZNt = /* @__PURE__ */ x(() => { - Id.clear(), Hhe.clear(), br.clear(); -}, "clear"), ck = /* @__PURE__ */ x((t, e) => { +var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__PURE__ */ new Map(), jNt = /* @__PURE__ */ x(() => { + Id.clear(), Xhe.clear(), br.clear(); +}, "clear"), uk = /* @__PURE__ */ x((t, e) => { const r = Id.get(e) || []; return X.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); -}, "isDescendant"), jNt = /* @__PURE__ */ x((t, e) => { +}, "isDescendant"), KNt = /* @__PURE__ */ x((t, e) => { const r = Id.get(e) || []; - return X.info("Descendants of ", e, " is ", r), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || ck(t.v, e) || ck(t.w, e) || r.includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1); -}, "edgeInCluster"), Xhe = /* @__PURE__ */ x((t, e, r, n) => { + return X.info("Descendants of ", e, " is ", r), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || uk(t.v, e) || uk(t.w, e) || r.includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1); +}, "edgeInCluster"), Zhe = /* @__PURE__ */ x((t, e, r, n) => { X.warn( "Copying children of ", t, @@ -64667,7 +64689,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ const i = e.children(t) || []; t !== n && i.push(t), X.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - Xhe(s, e, r, n); + Zhe(s, e, r, n); else { const a = e.node(s); X.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (X.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (X.debug("Setting parent", s, t), r.setParent(s, t)) : (X.info("In copy ", t, "root", n, "data", e.node(t), n), X.debug( @@ -64684,7 +64706,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - jNt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( + KNt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( "Skipping copy of edge ", l.v, "-->", @@ -64701,13 +64723,13 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ } X.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), Zhe = /* @__PURE__ */ x((t, e) => { +}, "copy"), jhe = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - Hhe.set(i, t), n = [...n, ...Zhe(i, e)]; + Xhe.set(i, t), n = [...n, ...jhe(i, e)]; return n; -}, "extractDescendants"), KNt = /* @__PURE__ */ x((t, e, r) => { +}, "extractDescendants"), JNt = /* @__PURE__ */ x((t, e, r) => { const n = t.edges().filter((l) => l.v === e || l.w === e), i = t.edges().filter((l) => l.v === r || l.w === r), s = n.map((l) => ({ v: l.v === e ? r : l.v, w: l.w === e ? e : l.w })), a = i.map((l) => ({ v: l.v, w: l.w })); return s.filter((l) => a.some((u) => l.v === u.v && l.w === u.w)); }, "findCommonEdges"), E2 = /* @__PURE__ */ x((t, e, r) => { @@ -64716,7 +64738,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ return t; let i; for (const s of n) { - const a = E2(s, e, r), o = KNt(e, r, a); + const a = E2(s, e, r), o = JNt(e, r, a); if (a) if (o.length > 0) i = a; @@ -64724,7 +64746,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ return a; } return i; -}, "findNonClusterChild"), FY = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), JNt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), zY = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), eIt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -64736,11 +64758,11 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ r, " Replacement id in edges: ", E2(r, t, r) - ), Id.set(r, Zhe(r, t)), br.set(r, { id: E2(r, t, r), clusterData: t.node(r) })); + ), Id.set(r, jhe(r, t)), br.set(r, { id: E2(r, t, r), clusterData: t.node(r) })); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (X.debug("Cluster identified", r, Id), i.forEach((s) => { - const a = ck(s.v, r), o = ck(s.w, r); + const a = uk(s.v, r), o = uk(s.w, r); a ^ o && (X.warn("Edge: ", s, " leaves cluster ", r), X.warn("Descendants of XXX ", r, ": ", Id.get(r)), br.get(r).externalConnections = !0); })) : X.debug("Not a cluster ", r, Id); }); @@ -64763,7 +64785,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ " --- ", br.get(r.w) ), br.get(r.v) || br.get(r.w)) { - if (X.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = FY(r.v), s = FY(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { + if (X.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = zY(r.v), s = zY(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { const a = t.parent(i); br.get(a).externalConnections = !0, n.fromCluster = r.v; } @@ -64773,8 +64795,8 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ } X.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), X.warn("Adjusted Graph", di(t)), jhe(t, 0), X.trace(br); -}, "adjustClustersAndEdges"), jhe = /* @__PURE__ */ x((t, e) => { + }), X.warn("Adjusted Graph", di(t)), Khe(t, 0), X.trace(br); +}, "adjustClustersAndEdges"), Khe = /* @__PURE__ */ x((t, e) => { var i, s; if (X.warn("extractor - ", e, di(t), t.children("D")), e > 10) { X.error("Bailing out"); @@ -64811,7 +64833,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ ); let l = t.graph().rankdir === "TB" ? "LR" : "TB"; (s = (i = br.get(a)) == null ? void 0 : i.clusterData) != null && s.dir && (l = br.get(a).clusterData.dir, X.warn("Fixing dir", br.get(a).clusterData.dir, l)); - const u = new $i({ + const u = new Bi({ multigraph: !0, compound: !0 }).setGraph({ @@ -64823,7 +64845,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ }).setDefaultEdgeLabel(function() { return {}; }); - X.warn("Old graph before copy", di(t)), Xhe(a, t, u, a), t.setNode(a, { + X.warn("Old graph before copy", di(t)), Zhe(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: br.get(a).clusterData, @@ -64846,17 +64868,17 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Hhe = /* @__ r = t.nodes(), X.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - X.warn(" Now next level", a, o), o != null && o.clusterNode && jhe(o.graph, e + 1); + X.warn(" Now next level", a, o), o != null && o.clusterNode && Khe(o.graph, e + 1); } -}, "extractor"), Khe = /* @__PURE__ */ x((t, e) => { +}, "extractor"), Jhe = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign([], e); return e.forEach((n) => { - const i = t.children(n), s = Khe(t, i); + const i = t.children(n), s = Jhe(t, i); r = [...r, ...s]; }), r; -}, "sorter"), eIt = /* @__PURE__ */ x((t) => Khe(t, t.children()), "sortNodesByHierarchy"), Jhe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), tIt = /* @__PURE__ */ x((t) => Jhe(t, t.children()), "sortNodesByHierarchy"), efe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.warn("Graph in recursive render:XAX", di(e), i); const a = e.graph().rankdir; X.trace("Dir in recursive render - dir:", a); @@ -64888,7 +64910,7 @@ Parent cluster`, ranksep: y + 25, nodesep: b }); - const w = await Jhe( + const w = await efe( f, v.graph, r, @@ -64903,7 +64925,7 @@ Parent cluster`, v.width, "height", v.height - ), JSt(O, v); + ), eTt(O, v); } else e.children(m).length > 0 ? (X.trace( "Cluster - the non recursive path XBX", @@ -64913,7 +64935,7 @@ Parent cluster`, v.width, "Graph:", e - ), X.trace(E2(v.id, e)), br.set(v.id, { id: E2(v.id, e), node: v })) : (X.trace("Node - the non recursive path XAX", m, f, e.node(m), a), await voe(f, e.node(m), a)); + ), X.trace(E2(v.id, e)), br.set(v.id, { id: E2(v.id, e), node: v })) : (X.trace("Node - the non recursive path XAX", m, f, e.node(m), a), await yoe(f, e.node(m), a)); }) ), await (/* @__PURE__ */ x(async () => { const m = e.edges().map(async function(v) { @@ -64927,13 +64949,13 @@ Parent cluster`, "Translating: ", br.get(v.v), br.get(v.w) - ), await aoe(h, y); + ), await ooe(h, y); }); await Promise.all(m); }, "processEdges"))(), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("############################################# XXX"), X.info("### Layout ### XXX"), X.info("############################################# XXX"), sm(e), X.info("Graph after layout:", JSON.stringify(di(e))); let p = 0, { subGraphTitleTotalMargin: g } = F0(s); return await Promise.all( - eIt(e).map(async function(m) { + tIt(e).map(async function(m) { var y; const v = e.node(m); if (X.info( @@ -64966,7 +64988,7 @@ Parent cluster`, e.parent(m) ), v.height += g, e.node(v.parentId); const b = (v == null ? void 0 : v.padding) / 2 || 0, w = ((y = v == null ? void 0 : v.labelBBox) == null ? void 0 : y.height) || 0, O = w - b || 0; - X.debug("OffsetY", O, "labelHeight", w, "halfPadding", b), await soe(l, v), br.get(v.id).node = v; + X.debug("OffsetY", O, "labelHeight", w, "halfPadding", b), await aoe(l, v), br.get(v.id).node = v; } else { const b = e.node(v.parentId); v.y += g / 2, X.info( @@ -64992,15 +65014,15 @@ Parent cluster`, X.info("Edge " + m.v + " -> " + m.w + ": " + JSON.stringify(v), v), v.points.forEach((O) => O.y += g / 2); const y = e.node(m.v); var b = e.node(m.w); - const w = coe(u, v, br, r, y, b, n); - ooe(v, w); + const w = uoe(u, v, br, r, y, b, n); + loe(v, w); }), e.nodes().forEach(function(m) { const v = e.node(m); X.info(m, v.type, v.diff), v.isGroup && (p = v.diff); }), X.warn("Returning from recursive render XAX", o, p), { elem: o, diff: p }; -}, "recursiveRender"), tIt = /* @__PURE__ */ x(async (t, e) => { +}, "recursiveRender"), rIt = /* @__PURE__ */ x(async (t, e) => { var s, a, o, l, u, h; - const r = new $i({ + const r = new Bi({ multigraph: !0, compound: !0 }).setGraph({ @@ -65012,7 +65034,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - uoe(n, t.markers, t.type, t.diagramId), eTt(), nSt(), eSt(), ZNt(), t.nodes.forEach((f) => { + hoe(n, t.markers, t.type, t.diagramId), tTt(), iSt(), tSt(), jNt(), t.nodes.forEach((f) => { r.setNode(f.id, { ...f }), f.parentId && r.setParent(f.id, f.parentId); }), X.debug("Edges:", t.edges), t.edges.forEach((f) => { if (f.start === f.end) { @@ -65044,9 +65066,9 @@ Parent cluster`, v.label = "", v.arrowTypeEnd = "none", v.id = d + "-cyclic-special-1", y.arrowTypeEnd = "none", y.id = d + "-cyclic-special-mid", b.label = "", m.isGroup && (v.fromCluster = d, b.toCluster = d), b.id = d + "-cyclic-special-2", r.setEdge(d, p, v, d + "-cyclic-special-0"), r.setEdge(p, g, y, d + "-cyclic-special-1"), r.setEdge(g, d, b, d + "-cyc { +var iC = /* @__PURE__ */ x((t, e) => { const r = t.append("rect"); if (r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), e.name && r.attr("name", e.name), e.rx && r.attr("rx", e.rx), e.ry && r.attr("ry", e.ry), e.attrs !== void 0) for (const n in e.attrs) r.attr(n, e.attrs[n]); return e.class && r.attr("class", e.class), r; -}, "drawRect"), efe = /* @__PURE__ */ x((t, e) => { +}, "drawRect"), tfe = /* @__PURE__ */ x((t, e) => { const r = { x: e.startx, y: e.starty, @@ -65075,18 +65097,18 @@ var nC = /* @__PURE__ */ x((t, e) => { stroke: e.stroke, class: "rect" }; - nC(t, r).lower(); -}, "drawBackgroundRect"), nIt = /* @__PURE__ */ x((t, e) => { + iC(t, r).lower(); +}, "drawBackgroundRect"), iIt = /* @__PURE__ */ x((t, e) => { const r = e.text.replace(G1, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), iIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawText"), sIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("image"); i.attr("x", e), i.attr("y", r); const s = zf(n); i.attr("xlink:href", s); -}, "drawImage"), sIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawImage"), aIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("use"); i.attr("x", e), i.attr("y", r); const s = zf(n); @@ -65112,12 +65134,12 @@ var nC = /* @__PURE__ */ x((t, e) => { rx: 0, ry: 0, tspan: !0 -}), "getTextObj"), uk = function() { +}), "getTextObj"), hk = function() { var t = /* @__PURE__ */ x(function(De, he, H, oe) { for (H = H || {}, oe = De.length; oe--; H[De[oe]] = he) ; return H; - }, "o"), e = [1, 24], r = [1, 25], n = [1, 26], i = [1, 27], s = [1, 28], a = [1, 63], o = [1, 64], l = [1, 65], u = [1, 66], h = [1, 67], f = [1, 68], d = [1, 69], p = [1, 29], g = [1, 30], m = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], w = [1, 35], O = [1, 36], S = [1, 37], C = [1, 38], T = [1, 39], L = [1, 40], E = [1, 41], A = [1, 42], _ = [1, 43], R = [1, 44], $ = [1, 45], k = [1, 46], N = [1, 47], M = [1, 48], I = [1, 50], D = [1, 51], P = [1, 52], F = [1, 53], B = [1, 54], V = [1, 55], Q = [1, 56], W = [1, 57], ee = [1, 58], Y = [1, 59], ne = [1, 60], ie = [14, 42], U = [14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Z = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], G = [1, 82], j = [1, 83], ae = [1, 84], se = [1, 85], K = [12, 14, 42], _e = [12, 14, 33, 42], ce = [12, 14, 33, 42, 76, 77, 79, 80], Ee = [12, 33], Ae = [34, 36, 37, 38, 39, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Ue = { + }, "o"), e = [1, 24], r = [1, 25], n = [1, 26], i = [1, 27], s = [1, 28], a = [1, 63], o = [1, 64], l = [1, 65], u = [1, 66], h = [1, 67], f = [1, 68], d = [1, 69], p = [1, 29], g = [1, 30], m = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], w = [1, 35], O = [1, 36], S = [1, 37], C = [1, 38], T = [1, 39], A = [1, 40], E = [1, 41], L = [1, 42], _ = [1, 43], R = [1, 44], $ = [1, 45], k = [1, 46], N = [1, 47], M = [1, 48], I = [1, 50], D = [1, 51], P = [1, 52], F = [1, 53], B = [1, 54], V = [1, 55], Q = [1, 56], W = [1, 57], ee = [1, 58], Y = [1, 59], ne = [1, 60], ie = [14, 42], U = [14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Z = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], G = [1, 82], j = [1, 83], ae = [1, 84], se = [1, 85], K = [12, 14, 42], _e = [12, 14, 33, 42], ce = [12, 14, 33, 42, 76, 77, 79, 80], Ee = [12, 33], Ae = [34, 36, 37, 38, 39, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Ue = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -65295,7 +65317,7 @@ var nC = /* @__PURE__ */ x((t, e) => { break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 14: [1, 74] }, t(ie, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }), t(ie, [2, 14]), t(U, [2, 16], { 12: [1, 76] }), t(ie, [2, 36], { 12: [1, 77] }), t(Z, [2, 19]), t(Z, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, t(Z, [2, 23]), { 35: 80, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 86, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 87, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 88, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 89, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 90, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 91, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 92, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 93, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 94, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 95, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 96, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 97, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 98, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 99, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 100, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 101, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 102, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 103, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 104, 75: 81, 76: G, 77: j, 79: ae, 80: se }, t(K, [2, 59]), { 35: 105, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 106, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 107, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 108, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 109, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 110, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 111, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 112, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 113, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 114, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 115, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 120, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 121, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 122, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 123, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 124, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 125, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, t(ie, [2, 15]), t(U, [2, 17], { 21: 22, 19: 130, 22: e, 23: r, 24: n, 26: i, 28: s }), t(ie, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: e, 23: r, 24: n, 26: i, 28: s, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: L, 56: E, 57: A, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }), t(Z, [2, 21]), t(Z, [2, 22]), t(K, [2, 39]), t(_e, [2, 71], { 75: 81, 35: 132, 76: G, 77: j, 79: ae, 80: se }), t(ce, [2, 73]), { 78: [1, 133] }, t(ce, [2, 75]), t(ce, [2, 76]), t(K, [2, 40]), t(K, [2, 41]), t(K, [2, 42]), t(K, [2, 43]), t(K, [2, 44]), t(K, [2, 45]), t(K, [2, 46]), t(K, [2, 47]), t(K, [2, 48]), t(K, [2, 49]), t(K, [2, 50]), t(K, [2, 51]), t(K, [2, 52]), t(K, [2, 53]), t(K, [2, 54]), t(K, [2, 55]), t(K, [2, 56]), t(K, [2, 57]), t(K, [2, 58]), t(K, [2, 60]), t(K, [2, 61]), t(K, [2, 62]), t(K, [2, 63]), t(K, [2, 64]), t(K, [2, 65]), t(K, [2, 66]), t(K, [2, 67]), t(K, [2, 68]), t(K, [2, 69]), t(K, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, t(Ee, [2, 28]), t(Ee, [2, 29]), t(Ee, [2, 30]), t(Ee, [2, 31]), t(Ee, [2, 32]), t(Ee, [2, 33]), t(Ee, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, t(U, [2, 18]), t(ie, [2, 38]), t(_e, [2, 72]), t(ce, [2, 74]), t(K, [2, 24]), t(K, [2, 35]), t(Ae, [2, 25]), t(Ae, [2, 26], { 12: [1, 138] }), t(Ae, [2, 27])], + table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: e, 23: r, 24: n, 26: i, 28: s, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 14: [1, 74] }, t(ie, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }), t(ie, [2, 14]), t(U, [2, 16], { 12: [1, 76] }), t(ie, [2, 36], { 12: [1, 77] }), t(Z, [2, 19]), t(Z, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, t(Z, [2, 23]), { 35: 80, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 86, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 87, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 88, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 89, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 90, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 91, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 92, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 93, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 94, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 95, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 96, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 97, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 98, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 99, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 100, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 101, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 102, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 103, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 104, 75: 81, 76: G, 77: j, 79: ae, 80: se }, t(K, [2, 59]), { 35: 105, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 106, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 107, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 108, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 109, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 110, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 111, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 112, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 113, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 114, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 115, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 43: 23, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 120, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 121, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 122, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 123, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 124, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 35: 125, 75: 81, 76: G, 77: j, 79: ae, 80: se }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, t(ie, [2, 15]), t(U, [2, 17], { 21: 22, 19: 130, 22: e, 23: r, 24: n, 26: i, 28: s }), t(ie, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: e, 23: r, 24: n, 26: i, 28: s, 34: a, 36: o, 37: l, 38: u, 39: h, 40: f, 41: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w, 51: O, 52: S, 53: C, 54: T, 55: A, 56: E, 57: L, 58: _, 59: R, 60: $, 61: k, 62: N, 63: M, 64: I, 65: D, 66: P, 67: F, 68: B, 69: V, 70: Q, 71: W, 72: ee, 73: Y, 74: ne }), t(Z, [2, 21]), t(Z, [2, 22]), t(K, [2, 39]), t(_e, [2, 71], { 75: 81, 35: 132, 76: G, 77: j, 79: ae, 80: se }), t(ce, [2, 73]), { 78: [1, 133] }, t(ce, [2, 75]), t(ce, [2, 76]), t(K, [2, 40]), t(K, [2, 41]), t(K, [2, 42]), t(K, [2, 43]), t(K, [2, 44]), t(K, [2, 45]), t(K, [2, 46]), t(K, [2, 47]), t(K, [2, 48]), t(K, [2, 49]), t(K, [2, 50]), t(K, [2, 51]), t(K, [2, 52]), t(K, [2, 53]), t(K, [2, 54]), t(K, [2, 55]), t(K, [2, 56]), t(K, [2, 57]), t(K, [2, 58]), t(K, [2, 60]), t(K, [2, 61]), t(K, [2, 62]), t(K, [2, 63]), t(K, [2, 64]), t(K, [2, 65]), t(K, [2, 66]), t(K, [2, 67]), t(K, [2, 68]), t(K, [2, 69]), t(K, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, t(Ee, [2, 28]), t(Ee, [2, 29]), t(Ee, [2, 30]), t(Ee, [2, 31]), t(Ee, [2, 32]), t(Ee, [2, 33]), t(Ee, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, t(U, [2, 18]), t(ie, [2, 38]), t(_e, [2, 72]), t(ce, [2, 74]), t(K, [2, 24]), t(K, [2, 35]), t(Ae, [2, 25]), t(Ae, [2, 26], { 12: [1, 138] }), t(Ae, [2, 27])], defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] }, parseError: /* @__PURE__ */ x(function(he, H) { if (H.recoverable) @@ -65721,8 +65743,8 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[ft] || ft) + "'" : Ze } return x(Ye, "Parser"), Ye.prototype = Ue, Ue.Parser = Ye, new Ye(); }(); -uk.parser = uk; -var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ +hk.parser = hk; +var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ { alias: "global", label: { text: "global" }, @@ -65731,11 +65753,11 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ link: null, parentBoundary: "" } -], _2 = [], rI = "", nI = !1, hk = 4, fk = 2, tfe, oIt = /* @__PURE__ */ x(function() { - return tfe; -}, "getC4Type"), lIt = /* @__PURE__ */ x(function(t) { - tfe = ni(t, be()); -}, "setC4Type"), cIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { +], _2 = [], rI = "", nI = !1, fk = 4, dk = 2, rfe, lIt = /* @__PURE__ */ x(function() { + return rfe; +}, "getC4Type"), cIt = /* @__PURE__ */ x(function(t) { + rfe = ni(t, be()); +}, "setC4Type"), uIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { if (t == null || e === void 0 || e === null || r === void 0 || r === null || n === void 0 || n === null) return; let u = {}; @@ -65770,7 +65792,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else u.link = l; u.wrap = Uf(); -}, "addRel"), uIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "addRel"), hIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { if (e === null || r === null) return; let o = {}; @@ -65798,7 +65820,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else o.link = a; o.typeC4Shape = { text: t }, o.parentBoundary = aa, o.wrap = Uf(); -}, "addPersonOrSystem"), hIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addPersonOrSystem"), fIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -65833,7 +65855,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else l.link = o; l.wrap = Uf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addContainer"), fIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainer"), dIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -65868,7 +65890,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else l.link = o; l.wrap = Uf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addComponent"), dIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addComponent"), pIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -65891,7 +65913,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Uf(), Cl = aa, aa = t, ef.push(Cl); -}, "addPersonOrSystemBoundary"), pIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addPersonOrSystemBoundary"), gIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -65914,7 +65936,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Uf(), Cl = aa, aa = t, ef.push(Cl); -}, "addContainerBoundary"), gIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainerBoundary"), mIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -65944,9 +65966,9 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else l.link = o; l.nodeType = t, l.parentBoundary = aa, l.wrap = Uf(), Cl = aa, aa = e, ef.push(Cl); -}, "addDeploymentNode"), mIt = /* @__PURE__ */ x(function() { +}, "addDeploymentNode"), vIt = /* @__PURE__ */ x(function() { aa = Cl, ef.pop(), Cl = ef.pop(), ef.push(Cl); -}, "popBoundaryParseStack"), vIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "popBoundaryParseStack"), yIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { let f = Fl.find((d) => d.alias === e); if (!(f === void 0 && (f = Bc.find((d) => d.alias === e), f === void 0))) { if (r != null) @@ -66004,7 +66026,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else f.legendSprite = h; } -}, "updateElStyle"), yIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "updateElStyle"), bIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const o = _2.find((l) => l.from === e && l.to === r); if (o !== void 0) { if (n != null) @@ -66032,8 +66054,8 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else o.offsetY = parseInt(a); } -}, "updateRelStyle"), bIt = /* @__PURE__ */ x(function(t, e, r) { - let n = hk, i = fk; +}, "updateRelStyle"), xIt = /* @__PURE__ */ x(function(t, e, r) { + let n = fk, i = dk; if (typeof e == "object") { const s = Object.values(e)[0]; n = parseInt(s); @@ -66044,32 +66066,32 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ i = parseInt(s); } else i = parseInt(r); - n >= 1 && (hk = n), i >= 1 && (fk = i); -}, "updateLayoutConfig"), xIt = /* @__PURE__ */ x(function() { - return hk; -}, "getC4ShapeInRow"), wIt = /* @__PURE__ */ x(function() { + n >= 1 && (fk = n), i >= 1 && (dk = i); +}, "updateLayoutConfig"), wIt = /* @__PURE__ */ x(function() { return fk; -}, "getC4BoundaryInRow"), OIt = /* @__PURE__ */ x(function() { +}, "getC4ShapeInRow"), OIt = /* @__PURE__ */ x(function() { + return dk; +}, "getC4BoundaryInRow"), kIt = /* @__PURE__ */ x(function() { return aa; -}, "getCurrentBoundaryParse"), kIt = /* @__PURE__ */ x(function() { +}, "getCurrentBoundaryParse"), SIt = /* @__PURE__ */ x(function() { return Cl; -}, "getParentBoundaryParse"), rfe = /* @__PURE__ */ x(function(t) { +}, "getParentBoundaryParse"), nfe = /* @__PURE__ */ x(function(t) { return t == null ? Fl : Fl.filter((e) => e.parentBoundary === t); -}, "getC4ShapeArray"), SIt = /* @__PURE__ */ x(function(t) { +}, "getC4ShapeArray"), TIt = /* @__PURE__ */ x(function(t) { return Fl.find((e) => e.alias === t); -}, "getC4Shape"), TIt = /* @__PURE__ */ x(function(t) { - return Object.keys(rfe(t)); -}, "getC4ShapeKeys"), nfe = /* @__PURE__ */ x(function(t) { +}, "getC4Shape"), CIt = /* @__PURE__ */ x(function(t) { + return Object.keys(nfe(t)); +}, "getC4ShapeKeys"), ife = /* @__PURE__ */ x(function(t) { return t == null ? Bc : Bc.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), CIt = nfe, EIt = /* @__PURE__ */ x(function() { +}, "getBoundaries"), EIt = ife, _It = /* @__PURE__ */ x(function() { return _2; -}, "getRels"), _It = /* @__PURE__ */ x(function() { +}, "getRels"), AIt = /* @__PURE__ */ x(function() { return rI; -}, "getTitle"), AIt = /* @__PURE__ */ x(function(t) { +}, "getTitle"), LIt = /* @__PURE__ */ x(function(t) { nI = t; }, "setWrap"), Uf = /* @__PURE__ */ x(function() { return nI; -}, "autoWrap"), LIt = /* @__PURE__ */ x(function() { +}, "autoWrap"), RIt = /* @__PURE__ */ x(function() { Fl = [], Bc = [ { alias: "global", @@ -66079,8 +66101,8 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ link: null, parentBoundary: "" } - ], Cl = "", aa = "global", ef = [""], _2 = [], ef = [""], rI = "", nI = !1, hk = 4, fk = 2; -}, "clear"), RIt = { + ], Cl = "", aa = "global", ef = [""], _2 = [], ef = [""], rI = "", nI = !1, fk = 4, dk = 2; +}, "clear"), MIt = { SOLID: 0, DOTTED: 1, NOTE: 2, @@ -66104,60 +66126,60 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 -}, MIt = { +}, DIt = { FILLED: 0, OPEN: 1 -}, DIt = { +}, NIt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, NIt = /* @__PURE__ */ x(function(t) { +}, IIt = /* @__PURE__ */ x(function(t) { rI = ni(t, be()); -}, "setTitle"), LL = { - addPersonOrSystem: uIt, - addPersonOrSystemBoundary: dIt, - addContainer: hIt, - addContainerBoundary: pIt, - addComponent: fIt, - addDeploymentNode: gIt, - popBoundaryParseStack: mIt, - addRel: cIt, - updateElStyle: vIt, - updateRelStyle: yIt, - updateLayoutConfig: bIt, +}, "setTitle"), RL = { + addPersonOrSystem: hIt, + addPersonOrSystemBoundary: pIt, + addContainer: fIt, + addContainerBoundary: gIt, + addComponent: dIt, + addDeploymentNode: mIt, + popBoundaryParseStack: vIt, + addRel: uIt, + updateElStyle: yIt, + updateRelStyle: bIt, + updateLayoutConfig: xIt, autoWrap: Uf, - setWrap: AIt, - getC4ShapeArray: rfe, - getC4Shape: SIt, - getC4ShapeKeys: TIt, - getBoundaries: nfe, - getBoundarys: CIt, - getCurrentBoundaryParse: OIt, - getParentBoundaryParse: kIt, - getRels: EIt, - getTitle: _It, - getC4Type: oIt, - getC4ShapeInRow: xIt, - getC4BoundaryInRow: wIt, + setWrap: LIt, + getC4ShapeArray: nfe, + getC4Shape: TIt, + getC4ShapeKeys: CIt, + getBoundaries: ife, + getBoundarys: EIt, + getCurrentBoundaryParse: kIt, + getParentBoundaryParse: SIt, + getRels: _It, + getTitle: AIt, + getC4Type: lIt, + getC4ShapeInRow: wIt, + getC4BoundaryInRow: OIt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().c4, "getConfig"), - clear: LIt, - LINETYPE: RIt, - ARROWTYPE: MIt, - PLACEMENT: DIt, - setTitle: NIt, - setC4Type: lIt + clear: RIt, + LINETYPE: MIt, + ARROWTYPE: DIt, + PLACEMENT: NIt, + setTitle: IIt, + setC4Type: cIt }, iI = /* @__PURE__ */ x(function(t, e) { - return nC(t, e); -}, "drawRect"), ife = /* @__PURE__ */ x(function(t, e, r, n, i, s) { + return iC(t, e); +}, "drawRect"), sfe = /* @__PURE__ */ x(function(t, e, r, n, i, s) { const a = t.append("image"); a.attr("width", e), a.attr("height", r), a.attr("x", n), a.attr("y", i); let o = s.startsWith("data:image/png;base64") ? s : zf(s); a.attr("xlink:href", o); -}, "drawImage"), IIt = /* @__PURE__ */ x((t, e, r) => { +}, "drawImage"), PIt = /* @__PURE__ */ x((t, e, r) => { const n = t.append("g"); let i = 0; for (let s of e) { @@ -66196,7 +66218,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ f )); } -}, "drawRels"), PIt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawRels"), $It = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"); let i = e.bgColor ? e.bgColor : "none", s = e.borderColor ? e.borderColor : "#444444", a = e.fontColor ? e.fontColor : "black", o = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" }; e.nodeType && (o = { "stroke-width": 1 }); @@ -66241,7 +66263,7 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ { fill: "#444444" }, u )); -}, "drawBoundary"), $It = /* @__PURE__ */ x(function(t, e, r) { +}, "drawBoundary"), BIt = /* @__PURE__ */ x(function(t, e, r) { var f; let n = e.bgColor ? e.bgColor : r[e.typeC4Shape.text + "_bg_color"], i = e.borderColor ? e.borderColor : r[e.typeC4Shape.text + "_border_color"], s = e.fontColor ? e.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII="; switch (e.typeC4Shape.text) { @@ -66295,11 +66317,11 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ ); break; } - let u = WIt(r, e.typeC4Shape.text); + let u = GIt(r, e.typeC4Shape.text); switch (o.append("text").attr("fill", s).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", e.typeC4Shape.width).attr("x", e.x + e.width / 2 - e.typeC4Shape.width / 2).attr("y", e.y + e.typeC4Shape.Y).text("<<" + e.typeC4Shape.text + ">>"), e.typeC4Shape.text) { case "person": case "external_person": - ife( + sfe( o, 48, 48, @@ -66347,33 +66369,33 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ { fill: s }, h )), e.height; -}, "drawC4Shape"), BIt = /* @__PURE__ */ x(function(t) { +}, "drawC4Shape"), FIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), FIt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), zIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), zIt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), VIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), VIt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), UIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), UIt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), qIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z"); -}, "insertArrowEnd"), qIt = /* @__PURE__ */ x(function(t) { +}, "insertArrowEnd"), QIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), QIt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), YIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertDynamicNumber"), YIt = /* @__PURE__ */ x(function(t) { +}, "insertDynamicNumber"), WIt = /* @__PURE__ */ x(function(t) { const r = t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4); r.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), r.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7"); -}, "insertArrowCrossHead"), WIt = /* @__PURE__ */ x((t, e) => ({ +}, "insertArrowCrossHead"), GIt = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] @@ -66405,23 +66427,23 @@ var aIt = uk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ }; }(), oc = { drawRect: iI, - drawBoundary: PIt, - drawC4Shape: $It, - drawRels: IIt, - drawImage: ife, - insertArrowHead: VIt, - insertArrowEnd: UIt, - insertArrowFilledHead: qIt, - insertDynamicNumber: QIt, - insertArrowCrossHead: YIt, - insertDatabaseIcon: BIt, - insertComputerIcon: FIt, - insertClockIcon: zIt -}, dk = 0, pk = 0, sfe = 4, RL = 2; -uk.yy = LL; -var Nt = {}, hb, afe = (hb = class { + drawBoundary: $It, + drawC4Shape: BIt, + drawRels: PIt, + drawImage: sfe, + insertArrowHead: UIt, + insertArrowEnd: qIt, + insertArrowFilledHead: QIt, + insertDynamicNumber: YIt, + insertArrowCrossHead: WIt, + insertDatabaseIcon: FIt, + insertComputerIcon: zIt, + insertClockIcon: VIt +}, pk = 0, gk = 0, afe = 4, ML = 2; +hk.yy = RL; +var Nt = {}, hb, ofe = (hb = class { constructor(e) { - this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ML(e.db.getConfig()); + this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, DL(e.db.getConfig()); } setData(e, r, n, i) { this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = r, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = i; @@ -66432,7 +66454,7 @@ var Nt = {}, hb, afe = (hb = class { insert(e) { this.nextData.cnt = this.nextData.cnt + 1; let r = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, n = r + e.width, i = this.nextData.starty + e.margin * 2, s = i + e.height; - (r >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > sfe) && (r = this.nextData.startx + e.margin + Nt.nextLinePaddingX, i = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = s = i + e.height, this.nextData.cnt = 1), e.x = r, e.y = i, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", i, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", s, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", i, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", s, Math.max); + (r >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > afe) && (r = this.nextData.startx + e.margin + Nt.nextLinePaddingX, i = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = s = i + e.height, this.nextData.cnt = 1), e.x = r, e.y = i, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", i, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", s, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", i, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", s, Math.max); } init(e) { this.name = "", this.data = { @@ -66447,14 +66469,14 @@ var Nt = {}, hb, afe = (hb = class { starty: void 0, stopy: void 0, cnt: 0 - }, ML(e.db.getConfig()); + }, DL(e.db.getConfig()); } bumpLastMargin(e) { this.data.stopx += e, this.data.stopy += e; } }, (() => { x(hb, "Bounds"); -})(), hb), ML = /* @__PURE__ */ x(function(t) { +})(), hb), DL = /* @__PURE__ */ x(function(t) { Ci(Nt, t), t.fontFamily && (Nt.personFontFamily = Nt.systemFontFamily = Nt.messageFontFamily = t.fontFamily), t.fontSize && (Nt.personFontSize = Nt.systemFontSize = Nt.messageFontSize = t.fontSize), t.fontWeight && (Nt.personFontWeight = Nt.systemFontWeight = Nt.messageFontWeight = t.fontWeight); }, "setConf"), Jm = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], @@ -66464,7 +66486,7 @@ var Nt = {}, hb, afe = (hb = class { fontFamily: t.boundaryFontFamily, fontSize: t.boundaryFontSize, fontWeight: t.boundaryFontWeight -}), "boundaryFont"), GIt = /* @__PURE__ */ x((t) => ({ +}), "boundaryFont"), HIt = /* @__PURE__ */ x((t) => ({ fontFamily: t.messageFontFamily, fontSize: t.messageFontSize, fontWeight: t.messageFontWeight @@ -66472,7 +66494,7 @@ var Nt = {}, hb, afe = (hb = class { function Po(t, e, r, n, i) { if (!e[t].width) if (r) - e[t].text = kae(e[t].text, i, n), e[t].textLines = e[t].text.split(at.lineBreakRegex).length, e[t].width = i, e[t].height = F3(e[t].text, n); + e[t].text = Sae(e[t].text, i, n), e[t].textLines = e[t].text.split(at.lineBreakRegex).length, e[t].width = i, e[t].height = F3(e[t].text, n); else { let s = e[t].text.split(at.lineBreakRegex); e[t].textLines = s.length; @@ -66486,13 +66508,13 @@ function Po(t, e, r, n, i) { } } x(Po, "calcC4ShapeTextWH"); -var ofe = /* @__PURE__ */ x(function(t, e, r) { +var lfe = /* @__PURE__ */ x(function(t, e, r) { e.x = r.data.startx, e.y = r.data.starty, e.width = r.data.stopx - r.data.startx, e.height = r.data.stopy - r.data.starty, e.label.y = Nt.c4ShapeMargin - 35; let n = e.wrap && Nt.wrap, i = Q4(Nt); i.fontSize = i.fontSize + 2, i.fontWeight = "bold"; let s = Ol(e.label.text, i); Po("label", e, n, i, s), oc.drawBoundary(t, e, Nt); -}, "drawBoundary"), lfe = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawBoundary"), cfe = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (const s of n) { i = 0; @@ -66532,7 +66554,7 @@ var ofe = /* @__PURE__ */ x(function(t, e, r) { } }, (() => { x(fb, "Point"); -})(), fb), zY = /* @__PURE__ */ x(function(t, e) { +})(), fb), VY = /* @__PURE__ */ x(function(t, e) { let r = t.x, n = t.y, i = e.x, s = e.y, a = r + t.width / 2, o = n + t.height / 2, l = Math.abs(r - i), u = Math.abs(n - s), h = u / l, f = t.height / t.width, d = null; return n == s && r < i ? d = new wo(r + t.width, o) : n == s && r > i ? d = new wo(r, o) : r == i && n < s ? d = new wo(a, n + t.height) : r == i && n > s && (d = new wo(a, n)), r > i && n < s ? f >= h ? d = new wo(r, o + h * t.width / 2) : d = new wo( a - l / u * t.height / 2, @@ -66541,29 +66563,29 @@ var ofe = /* @__PURE__ */ x(function(t, e, r) { a + l / u * t.height / 2, n + t.height ) : r < i && n > s ? f >= h ? d = new wo(r + t.width, o - h * t.width / 2) : d = new wo(a + t.height / 2 * l / u, n) : r > i && n > s && (f >= h ? d = new wo(r, o - t.width / 2 * h) : d = new wo(a - t.height / 2 * l / u, n)), d; -}, "getIntersectPoint"), HIt = /* @__PURE__ */ x(function(t, e) { +}, "getIntersectPoint"), XIt = /* @__PURE__ */ x(function(t, e) { let r = { x: 0, y: 0 }; r.x = e.x + e.width / 2, r.y = e.y + e.height / 2; - let n = zY(t, r); + let n = VY(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; - let i = zY(e, r); + let i = VY(e, r); return { startPoint: n, endPoint: i }; -}, "getIntersectPoints"), XIt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getIntersectPoints"), ZIt = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (let s of e) { i = i + 1; - let a = s.wrap && Nt.wrap, o = GIt(Nt); + let a = s.wrap && Nt.wrap, o = HIt(Nt); n.db.getC4Type() === "C4Dynamic" && (s.label.text = i + ": " + s.label.text); let u = Ol(s.label.text, o); Po("label", s, a, o, u), s.techn && s.techn.text !== "" && (u = Ol(s.techn.text, o), Po("techn", s, a, o, u)), s.descr && s.descr.text !== "" && (u = Ol(s.descr.text, o), Po("descr", s, a, o, u)); - let h = r(s.from), f = r(s.to), d = HIt(h, f); + let h = r(s.from), f = r(s.to), d = XIt(h, f); s.startPoint = d.startPoint, s.endPoint = d.endPoint; } oc.drawRels(t, e, Nt); }, "drawRels"); function sI(t, e, r, n, i) { - let s = new afe(i); - s.data.widthLimit = r.data.widthLimit / Math.min(RL, n.length); + let s = new ofe(i); + s.data.widthLimit = r.data.widthLimit / Math.min(ML, n.length); for (let [a, o] of n.entries()) { let l = 0; o.image = { width: 0, height: 0, Y: 0 }, o.sprite && (o.image.width = 48, o.image.height = 48, o.image.Y = l, l = o.image.Y + o.image.height); @@ -66595,7 +66617,7 @@ function sI(t, e, r, n, i) { s.data.widthLimit ), o.descr.Y = l + 20, l = o.descr.Y + o.descr.height; } - if (a == 0 || a % RL === 0) { + if (a == 0 || a % ML === 0) { let g = r.data.startx + Nt.diagramMarginX, m = r.data.stopy + Nt.diagramMarginY + l; s.setData(g, g, m, m); } else { @@ -66604,7 +66626,7 @@ function sI(t, e, r, n, i) { } s.name = o.alias; let f = i.db.getC4ShapeArray(o.alias), d = i.db.getC4ShapeKeys(o.alias); - d.length > 0 && lfe( + d.length > 0 && cfe( s, t, f, @@ -66617,36 +66639,36 @@ function sI(t, e, r, n, i) { s, p, i - ), o.alias !== "global" && ofe(t, o, s), r.data.stopy = Math.max( + ), o.alias !== "global" && lfe(t, o, s), r.data.stopy = Math.max( s.data.stopy + Nt.c4ShapeMargin, r.data.stopy ), r.data.stopx = Math.max( s.data.stopx + Nt.c4ShapeMargin, r.data.stopx - ), dk = Math.max(dk, r.data.stopx), pk = Math.max(pk, r.data.stopy); + ), pk = Math.max(pk, r.data.stopx), gk = Math.max(gk, r.data.stopy); } } x(sI, "drawInsideBoundary"); -var ZIt = /* @__PURE__ */ x(function(t, e, r, n) { +var jIt = /* @__PURE__ */ x(function(t, e, r, n) { Nt = be().c4; const i = be().securityLevel; let s; i === "sandbox" && (s = et("#i" + e)); const a = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"); let o = n.db; - n.db.setWrap(Nt.wrap), sfe = o.getC4ShapeInRow(), RL = o.getC4BoundaryInRow(), X.debug(`C:${JSON.stringify(Nt, null, 2)}`); + n.db.setWrap(Nt.wrap), afe = o.getC4ShapeInRow(), ML = o.getC4BoundaryInRow(), X.debug(`C:${JSON.stringify(Nt, null, 2)}`); const l = i === "sandbox" ? a.select(`[id="${e}"]`) : et(`[id="${e}"]`); oc.insertComputerIcon(l), oc.insertDatabaseIcon(l), oc.insertClockIcon(l); - let u = new afe(n); + let u = new ofe(n); u.setData( Nt.diagramMarginX, Nt.diagramMarginX, Nt.diagramMarginY, Nt.diagramMarginY - ), u.data.widthLimit = screen.availWidth, dk = Nt.diagramMarginX, pk = Nt.diagramMarginY; + ), u.data.widthLimit = screen.availWidth, pk = Nt.diagramMarginX, gk = Nt.diagramMarginY; const h = n.db.getTitle(); let f = n.db.getBoundarys(""); - sI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), XIt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = dk, u.data.stopy = pk; + sI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), ZIt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = pk, u.data.stopy = gk; const d = u.data; let g = d.stopy - d.starty + 2 * Nt.diagramMarginY; const v = d.stopx - d.startx + 2 * Nt.diagramMarginX; @@ -66656,38 +66678,38 @@ var ZIt = /* @__PURE__ */ x(function(t, e, r, n) { "viewBox", d.startx - Nt.diagramMarginX + " -" + (Nt.diagramMarginY + y) + " " + v + " " + (g + y) ), X.debug("models:", d); -}, "draw"), VY = { - drawPersonOrSystemArray: lfe, - drawBoundary: ofe, - setConf: ML, - draw: ZIt -}, jIt = /* @__PURE__ */ x((t) => `.person { +}, "draw"), UY = { + drawPersonOrSystemArray: cfe, + drawBoundary: lfe, + setConf: DL, + draw: jIt +}, KIt = /* @__PURE__ */ x((t) => `.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`, "getStyles"), KIt = jIt, JIt = { - parser: aIt, - db: LL, - renderer: VY, - styles: KIt, +`, "getStyles"), JIt = KIt, ePt = { + parser: oIt, + db: RL, + renderer: UY, + styles: JIt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { - VY.setConf(t), LL.setWrap(e); + UY.setConf(t), RL.setWrap(e); }, "init") }; -const ePt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const tPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: JIt + diagram: ePt }, Symbol.toStringTag, { value: "Module" })); -var cfe = /* @__PURE__ */ x((t, e) => { +var ufe = /* @__PURE__ */ x((t, e) => { let r; return e === "sandbox" && (r = et("#i" + t)), et(e === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`); -}, "getDiagramElement"), ufe = /* @__PURE__ */ x((t, e, r, n) => { +}, "getDiagramElement"), hfe = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); - const { width: i, height: s, x: a, y: o } = tPt(t, e); + const { width: i, height: s, x: a, y: o } = rPt(t, e); ms(t, s, i, n); - const l = rPt(a, o, i, s, e); + const l = nPt(a, o, i, s, e); t.attr("viewBox", l), X.debug(`viewBox configured: ${l} with padding: ${e}`); -}, "setupViewPortForSVG"), tPt = /* @__PURE__ */ x((t, e) => { +}, "setupViewPortForSVG"), rPt = /* @__PURE__ */ x((t, e) => { var n; const r = ((n = t.node()) == null ? void 0 : n.getBBox()) || { width: 0, height: 0, x: 0, y: 0 }; return { @@ -66696,26 +66718,26 @@ var cfe = /* @__PURE__ */ x((t, e) => { x: r.x, y: r.y }; -}, "calculateDimensionsWithPadding"), rPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); -function DL(t, e) { +}, "calculateDimensionsWithPadding"), nPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); +function NL(t, e) { e && t.attr("style", e); } -x(DL, "applyStyle"); -function hfe(t) { +x(NL, "applyStyle"); +function ffe(t) { const e = et(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), r = e.append("xhtml:div"), n = t.label, i = t.isNode ? "nodeLabel" : "edgeLabel", s = r.append("span"); - return s.html(n), DL(s, t.labelStyle), s.attr("class", i), DL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); + return s.html(n), NL(s, t.labelStyle), s.attr("class", i), NL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } -x(hfe, "addHtmlLabel"); -var nPt = /* @__PURE__ */ x((t, e, r, n) => { +x(ffe, "addHtmlLabel"); +var iPt = /* @__PURE__ */ x((t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), bn(be().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), X.debug("vertexText" + i); const s = { isNode: n, - label: JD(c0(i)), + label: eN(c0(i)), labelStyle: e.replace("fill:", "color:") }; - return hfe(s); + return ffe(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -66727,7 +66749,7 @@ var nPt = /* @__PURE__ */ x((t, e, r, n) => { } return s; } -}, "createLabel"), _a = nPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { +}, "createLabel"), _a = iPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { const i = be(); let s; const a = e.useHtmlLabels || bn(i.flowchart.htmlLabels); @@ -66789,7 +66811,7 @@ function Xl(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(Xl, "insertPolygonShape"); -var iPt = /* @__PURE__ */ x((t) => { +var sPt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Set(); for (const r of t) switch (r) { @@ -66804,8 +66826,8 @@ var iPt = /* @__PURE__ */ x((t) => { break; } return e; -}, "expandAndDeduplicateDirections"), sPt = /* @__PURE__ */ x((t, e, r) => { - const n = iPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; +}, "expandAndDeduplicateDirections"), aPt = /* @__PURE__ */ x((t, e, r) => { + const n = sPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; return n.has("right") && n.has("left") && n.has("up") && n.has("down") ? [ { x: 0, y: 0 }, { x: a, y: 0 }, @@ -66919,42 +66941,42 @@ var iPt = /* @__PURE__ */ x((t) => { { x: o, y: -l } ] : [{ x: 0, y: 0 }]; }, "getArrowPoints"); -function ffe(t, e) { +function dfe(t, e) { return t.intersect(e); } -x(ffe, "intersectNode"); -var aPt = ffe; -function dfe(t, e, r, n) { +x(dfe, "intersectNode"); +var oPt = dfe; +function pfe(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); var h = Math.abs(e * r * o / l); return n.y < s && (h = -h), { x: i + u, y: s + h }; } -x(dfe, "intersectEllipse"); -var pfe = dfe; -function gfe(t, e, r) { - return pfe(t, e, e, r); +x(pfe, "intersectEllipse"); +var gfe = pfe; +function mfe(t, e, r) { + return gfe(t, e, e, r); } -x(gfe, "intersectCircle"); -var oPt = gfe; -function mfe(t, e, r, n) { +x(mfe, "intersectCircle"); +var lPt = mfe; +function vfe(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; - if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && NL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && NL(h, f)) && (g = i * o - s * a, g !== 0))) + if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && IL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && IL(h, f)) && (g = i * o - s * a, g !== 0))) return m = Math.abs(g / 2), v = a * u - o * l, y = v < 0 ? (v - m) / g : (v + m) / g, v = s * l - i * u, b = v < 0 ? (v - m) / g : (v + m) / g, { x: y, y: b }; } -x(mfe, "intersectLine"); -function NL(t, e) { +x(vfe, "intersectLine"); +function IL(t, e) { return t * e > 0; } -x(NL, "sameSign"); -var lPt = mfe, cPt = vfe; -function vfe(t, e, r) { +x(IL, "sameSign"); +var cPt = vfe, uPt = yfe; +function yfe(t, e, r) { var n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(g) { a = Math.min(a, g.x), o = Math.min(o, g.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); for (var l = n - t.width / 2 - a, u = i - t.height / 2 - o, h = 0; h < e.length; h++) { - var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = lPt( + var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = cPt( t, r, { x: l + f.x, y: u + f.y }, @@ -66967,17 +66989,17 @@ function vfe(t, e, r) { return b < S ? -1 : b === S ? 0 : 1; }), s[0]) : t; } -x(vfe, "intersectPolygon"); -var uPt = /* @__PURE__ */ x((t, e) => { +x(yfe, "intersectPolygon"); +var hPt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), Lx = uPt, Cn = { - node: aPt, - circle: oPt, - ellipse: pfe, - polygon: cPt, +}, "intersectRect"), Lx = hPt, Cn = { + node: oPt, + circle: lPt, + ellipse: gfe, + polygon: uPt, rect: Lx -}, hPt = /* @__PURE__ */ x(async (t, e) => { +}, fPt = /* @__PURE__ */ x(async (t, e) => { e.useHtmlLabels || be().flowchart.htmlLabels || (e.centerLabel = !0); const { shapeSvg: n, bbox: i, halfPadding: s } = await Ki( t, @@ -66990,9 +67012,9 @@ var uPt = /* @__PURE__ */ x((t, e) => { return a.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - s).attr("y", -i.height / 2 - s).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, n; -}, "note"), fPt = hPt, UY = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), go = /* @__PURE__ */ x((t, e) => `${e || "node default"}${UY(t.classes)} ${UY( +}, "note"), dPt = fPt, qY = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), go = /* @__PURE__ */ x((t, e) => `${e || "node default"}${qY(t.classes)} ${qY( t.class -)}`, "getClassesFromNode"), qY = /* @__PURE__ */ x(async (t, e) => { +)}`, "getClassesFromNode"), QY = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67009,7 +67031,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return l.attr("style", e.style), Fn(e, l), e.intersect = function(u) { return X.warn("Intersect called"), Cn.polygon(e, o, u); }, r; -}, "question"), dPt = /* @__PURE__ */ x((t, e) => { +}, "question"), pPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = 28, i = [ { x: 0, y: n / 2 }, { x: n / 2, y: 0 }, @@ -67024,7 +67046,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), e.width = 28, e.height = 28, e.intersect = function(a) { return Cn.circle(e, 14, a); }, r; -}, "choice"), pPt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), gPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67041,12 +67063,12 @@ var uPt = /* @__PURE__ */ x((t, e) => { return u.attr("style", e.style), Fn(e, u), e.intersect = function(h) { return Cn.polygon(e, l, h); }, r; -}, "hexagon"), gPt = /* @__PURE__ */ x(async (t, e) => { - const { shapeSvg: r, bbox: n } = await Ki(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = sPt(e.directions, n, e), u = Xl(r, o, s, l); +}, "hexagon"), mPt = /* @__PURE__ */ x(async (t, e) => { + const { shapeSvg: r, bbox: n } = await Ki(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = aPt(e.directions, n, e), u = Xl(r, o, s, l); return u.attr("style", e.style), Fn(e, u), e.intersect = function(h) { return Cn.polygon(e, l, h); }, r; -}, "block_arrow"), mPt = /* @__PURE__ */ x(async (t, e) => { +}, "block_arrow"), vPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67062,7 +67084,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return Xl(r, i, s, a).attr("style", e.style), e.width = i + s, e.height = s, e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "rect_left_inv_arrow"), vPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_left_inv_arrow"), yPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki(t, e, go(e), !0), i = n.width + e.padding, s = n.height + e.padding, a = [ { x: -2 * s / 6, y: 0 }, { x: i - s / 6, y: 0 }, @@ -67072,7 +67094,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "lean_right"), yPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_right"), bPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67087,7 +67109,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "lean_left"), bPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_left"), xPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67102,7 +67124,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "trapezoid"), xPt = /* @__PURE__ */ x(async (t, e) => { +}, "trapezoid"), wPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67117,7 +67139,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "inv_trapezoid"), wPt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), OPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67133,7 +67155,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "rect_right_inv_arrow"), OPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_right_inv_arrow"), kPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67148,7 +67170,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { } return f; }, r; -}, "cylinder"), kPt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), SPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67157,14 +67179,14 @@ var uPt = /* @__PURE__ */ x((t, e) => { ), s = r.insert("rect", ":first-child"), a = e.positioned ? e.width : n.width + e.padding, o = e.positioned ? e.height : n.height + e.padding, l = e.positioned ? -a / 2 : -n.width / 2 - i, u = e.positioned ? -o / 2 : -n.height / 2 - i; if (s.attr("class", "basic label-container").attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("x", l).attr("y", u).attr("width", a).attr("height", o), e.props) { const h = new Set(Object.keys(e.props)); - e.props.borders && (iC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { + e.props.borders && (sC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { X.warn(`Unknown node property ${f}`); }); } return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "rect"), SPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect"), TPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67173,20 +67195,20 @@ var uPt = /* @__PURE__ */ x((t, e) => { ), s = r.insert("rect", ":first-child"), a = e.positioned ? e.width : n.width + e.padding, o = e.positioned ? e.height : n.height + e.padding, l = e.positioned ? -a / 2 : -n.width / 2 - i, u = e.positioned ? -o / 2 : -n.height / 2 - i; if (s.attr("class", "basic cluster composite label-container").attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("x", l).attr("y", u).attr("width", a).attr("height", o), e.props) { const h = new Set(Object.keys(e.props)); - e.props.borders && (iC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { + e.props.borders && (sC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { X.warn(`Unknown node property ${f}`); }); } return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "composite"), TPt = /* @__PURE__ */ x(async (t, e) => { +}, "composite"), CPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await Ki(t, e, "label", !0); X.trace("Classes = ", e.class); const n = r.insert("rect", ":first-child"), i = 0, s = 0; if (n.attr("width", i).attr("height", s), r.attr("class", "label edgeLabel"), e.props) { const a = new Set(Object.keys(e.props)); - e.props.borders && (iC(n, e.props.borders, i, s), a.delete("borders")), a.forEach((o) => { + e.props.borders && (sC(n, e.props.borders, i, s), a.delete("borders")), a.forEach((o) => { X.warn(`Unknown node property ${o}`); }); } @@ -67194,7 +67216,7 @@ var uPt = /* @__PURE__ */ x((t, e) => { return Cn.rect(e, a); }, r; }, "labelRect"); -function iC(t, e, r, n) { +function sC(t, e, r, n) { const i = [], s = /* @__PURE__ */ x((o) => { i.push(o, 0); }, "addBorder"), a = /* @__PURE__ */ x((o) => { @@ -67202,8 +67224,8 @@ function iC(t, e, r, n) { }, "skipBorder"); e.includes("t") ? (X.debug("add top border"), s(r)) : a(r), e.includes("r") ? (X.debug("add right border"), s(n)) : a(n), e.includes("b") ? (X.debug("add bottom border"), s(r)) : a(r), e.includes("l") ? (X.debug("add left border"), s(n)) : a(n), t.attr("stroke-dasharray", i.join(" ")); } -x(iC, "applyNodePropertyBorders"); -var CPt = /* @__PURE__ */ x((t, e) => { +x(sC, "applyNodePropertyBorders"); +var EPt = /* @__PURE__ */ x((t, e) => { let r; e.classes ? r = "node " + e.classes : r = "node default"; const n = t.insert("g").attr("class", r).attr("id", e.domId || e.id), i = n.insert("rect", ":first-child"), s = n.insert("line"), a = n.insert("g").attr("class", "label"), o = e.labelText.flat ? e.labelText.flat() : e.labelText; @@ -67238,7 +67260,7 @@ var CPt = /* @__PURE__ */ x((t, e) => { ), i.attr("class", "outer title-state").attr("x", -h.width / 2 - g).attr("y", -h.height / 2 - g).attr("width", h.width + e.padding).attr("height", h.height + e.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - g).attr("x2", h.width / 2 + g).attr("y1", -h.height / 2 - g + d.height + g).attr("y2", -h.height / 2 - g + d.height + g), Fn(e, i), e.intersect = function(m) { return Cn.rect(e, m); }, n; -}, "rectWithTitle"), EPt = /* @__PURE__ */ x(async (t, e) => { +}, "rectWithTitle"), _Pt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67248,7 +67270,7 @@ var CPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, r; -}, "stadium"), _Pt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), APt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67258,7 +67280,7 @@ var CPt = /* @__PURE__ */ x((t, e) => { return s.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), X.info("Circle main"), Fn(e, s), e.intersect = function(a) { return X.info("Circle intersect", e, n.width / 2 + i, a), Cn.circle(e, n.width / 2 + i, a); }, r; -}, "circle"), APt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), LPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67268,7 +67290,7 @@ var CPt = /* @__PURE__ */ x((t, e) => { return a.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + s).attr("width", n.width + e.padding + s * 2).attr("height", n.height + e.padding + s * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), X.info("DoubleCircle main"), Fn(e, o), e.intersect = function(u) { return X.info("DoubleCircle intersect", e, n.width / 2 + i + s, u), Cn.circle(e, n.width / 2 + i + s, u); }, r; -}, "doublecircle"), LPt = /* @__PURE__ */ x(async (t, e) => { +}, "doublecircle"), RPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67289,12 +67311,12 @@ var CPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "subroutine"), RPt = /* @__PURE__ */ x((t, e) => { +}, "subroutine"), MPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"); return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Fn(e, n), e.intersect = function(i) { return Cn.circle(e, 7, i); }, r; -}, "start"), QY = /* @__PURE__ */ x((t, e, r) => { +}, "start"), YY = /* @__PURE__ */ x((t, e, r) => { const n = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let i = 70, s = 10; r === "LR" && (i = 10, s = 70); @@ -67302,13 +67324,13 @@ var CPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) { return Cn.rect(e, o); }, n; -}, "forkJoin"), MPt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), DPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"), i = r.insert("circle", ":first-child"); return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), n.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), Fn(e, i), e.intersect = function(s) { return Cn.circle(e, 7, s); }, r; -}, "end"), DPt = /* @__PURE__ */ x((t, e) => { - var L; +}, "end"), NPt = /* @__PURE__ */ x((t, e) => { + var A; const r = e.padding / 2, n = 4, i = 8; let s; e.classes ? s = "node " + e.classes : s = "node default"; @@ -67316,11 +67338,11 @@ var CPt = /* @__PURE__ */ x((t, e) => { let h = 0, f = n; const d = a.insert("g").attr("class", "label"); let p = 0; - const g = (L = e.classData.annotations) == null ? void 0 : L[0], m = e.classData.annotations[0] ? "\xAB" + e.classData.annotations[0] + "\xBB" : "", v = d.node().appendChild(_a(m, e.labelStyle, !0, !0)); + const g = (A = e.classData.annotations) == null ? void 0 : A[0], m = e.classData.annotations[0] ? "\xAB" + e.classData.annotations[0] + "\xBB" : "", v = d.node().appendChild(_a(m, e.labelStyle, !0, !0)); let y = v.getBBox(); if (bn(be().flowchart.htmlLabels)) { - const E = v.children[0], A = et(v); - y = E.getBoundingClientRect(), A.attr("width", y.width), A.attr("height", y.height); + const E = v.children[0], L = et(v); + y = E.getBoundingClientRect(), L.attr("width", y.width), L.attr("height", y.height); } e.classData.annotations[0] && (f += y.height + n, h += y.width); let b = e.classData.label; @@ -67329,19 +67351,19 @@ var CPt = /* @__PURE__ */ x((t, e) => { et(w).attr("class", "classTitle"); let O = w.getBBox(); if (bn(be().flowchart.htmlLabels)) { - const E = w.children[0], A = et(w); - O = E.getBoundingClientRect(), A.attr("width", O.width), A.attr("height", O.height); + const E = w.children[0], L = et(w); + O = E.getBoundingClientRect(), L.attr("width", O.width), L.attr("height", O.height); } f += O.height + n, O.width > h && (h = O.width); const S = []; e.classData.members.forEach((E) => { - const A = E.getDisplayDetails(); - let _ = A.displayText; + const L = E.getDisplayDetails(); + let _ = L.displayText; be().flowchart.htmlLabels && (_ = _.replace(//g, ">")); const R = d.node().appendChild( _a( _, - A.cssStyle ? A.cssStyle : e.labelStyle, + L.cssStyle ? L.cssStyle : e.labelStyle, !0, !0 ) @@ -67355,13 +67377,13 @@ var CPt = /* @__PURE__ */ x((t, e) => { }), f += i; const C = []; if (e.classData.methods.forEach((E) => { - const A = E.getDisplayDetails(); - let _ = A.displayText; + const L = E.getDisplayDetails(); + let _ = L.displayText; be().flowchart.htmlLabels && (_ = _.replace(//g, ">")); const R = d.node().appendChild( _a( _, - A.cssStyle ? A.cssStyle : e.labelStyle, + L.cssStyle ? L.cssStyle : e.labelStyle, !0, !0 ) @@ -67389,59 +67411,59 @@ var CPt = /* @__PURE__ */ x((t, e) => { "transform", "translate( " + -h / 2 + ", " + (-1 * f / 2 + p + i / 2) + ")" ); - const A = E == null ? void 0 : E.getBBox(); - p += ((_ = A == null ? void 0 : A.height) != null ? _ : 0) + n; + const L = E == null ? void 0 : E.getBBox(); + p += ((_ = L == null ? void 0 : L.height) != null ? _ : 0) + n; }), p += i, u.attr("class", "divider").attr("x1", -h / 2 - r).attr("x2", h / 2 + r).attr("y1", -f / 2 - r + i + p).attr("y2", -f / 2 - r + i + p), p += i, C.forEach((E) => { var _; et(E).attr( "transform", "translate( " + -h / 2 + ", " + (-1 * f / 2 + p) + ")" ); - const A = E == null ? void 0 : E.getBBox(); - p += ((_ = A == null ? void 0 : A.height) != null ? _ : 0) + n; + const L = E == null ? void 0 : E.getBBox(); + p += ((_ = L == null ? void 0 : L.height) != null ? _ : 0) + n; }), o.attr("style", e.style).attr("class", "outer title-state").attr("x", -h / 2 - r).attr("y", -(f / 2) - r).attr("width", h + e.padding).attr("height", f + e.padding), Fn(e, o), e.intersect = function(E) { return Cn.rect(e, E); }, a; -}, "class_box"), YY = { - rhombus: qY, - composite: SPt, - question: qY, - rect: kPt, - labelRect: TPt, - rectWithTitle: CPt, - choice: dPt, - circle: _Pt, - doublecircle: APt, - stadium: EPt, - hexagon: pPt, - block_arrow: gPt, - rect_left_inv_arrow: mPt, - lean_right: vPt, - lean_left: yPt, - trapezoid: bPt, - inv_trapezoid: xPt, - rect_right_inv_arrow: wPt, - cylinder: OPt, - start: RPt, - end: MPt, - note: fPt, - subroutine: LPt, - fork: QY, - join: QY, - class_box: DPt +}, "class_box"), WY = { + rhombus: QY, + composite: TPt, + question: QY, + rect: SPt, + labelRect: CPt, + rectWithTitle: EPt, + choice: pPt, + circle: APt, + doublecircle: LPt, + stadium: _Pt, + hexagon: gPt, + block_arrow: mPt, + rect_left_inv_arrow: vPt, + lean_right: yPt, + lean_left: bPt, + trapezoid: xPt, + inv_trapezoid: wPt, + rect_right_inv_arrow: OPt, + cylinder: kPt, + start: MPt, + end: DPt, + note: dPt, + subroutine: RPt, + fork: YY, + join: YY, + class_box: NPt }, og = {}, aI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { let s; - be().securityLevel === "sandbox" ? s = "_top" : e.linkTarget && (s = e.linkTarget || "_blank"), n = t.insert("svg:a").attr("xlink:href", e.link).attr("target", s), i = await YY[e.shape](n, e, r); + be().securityLevel === "sandbox" ? s = "_top" : e.linkTarget && (s = e.linkTarget || "_blank"), n = t.insert("svg:a").attr("xlink:href", e.link).attr("target", s), i = await WY[e.shape](n, e, r); } else - i = await YY[e.shape](t, e, r), n = i; + i = await WY[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), og[e.id] = n, e.haveCallback && og[e.id].attr("class", og[e.id].attr("class") + " clickable"), n; -}, "insertNode"), NPt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), IPt = /* @__PURE__ */ x((t, e) => { og[e.id] = t; -}, "setNodeElem"), IPt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), PPt = /* @__PURE__ */ x(() => { og = {}; -}, "clear"), IL = /* @__PURE__ */ x((t) => { +}, "clear"), PL = /* @__PURE__ */ x((t) => { const e = og[t.id]; X.trace( "Transforming node", @@ -67454,32 +67476,32 @@ var CPt = /* @__PURE__ */ x((t, e) => { "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), PPt = "flowchart-", WY = 0, f1 = be(), Tf = /* @__PURE__ */ new Map(), xa = [], A2 = /* @__PURE__ */ new Map(), ju = [], oI = /* @__PURE__ */ new Map(), lI = /* @__PURE__ */ new Map(), Y4 = 0, PL = !0, Oo, sC, aC = [], oC = /* @__PURE__ */ x((t) => at.sanitizeText(t, f1), "sanitizeText"), lC = /* @__PURE__ */ x(function(t) { +}, "positionNode"), $Pt = "flowchart-", GY = 0, f1 = be(), Tf = /* @__PURE__ */ new Map(), xa = [], A2 = /* @__PURE__ */ new Map(), ju = [], oI = /* @__PURE__ */ new Map(), lI = /* @__PURE__ */ new Map(), Y4 = 0, $L = !0, Oo, aC, oC = [], lC = /* @__PURE__ */ x((t) => at.sanitizeText(t, f1), "sanitizeText"), cC = /* @__PURE__ */ x(function(t) { for (const e of Tf.values()) if (e.id === t) return e.domId; return t; -}, "lookUpDomId"), $Pt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { +}, "lookUpDomId"), BPt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { if (!t || t.trim().length === 0) return; let o, l = Tf.get(t); l === void 0 && (l = { id: t, labelType: "text", - domId: PPt + t + "-" + WY, + domId: $Pt + t + "-" + GY, styles: [], classes: [] - }, Tf.set(t, l)), WY++, e !== void 0 ? (f1 = be(), o = oC(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { + }, Tf.set(t, l)), GY++, e !== void 0 ? (f1 = be(), o = lC(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { l.styles.push(u); }), i != null && i.forEach(function(u) { l.classes.push(u); }), s !== void 0 && (l.dir = s), l.props === void 0 ? l.props = a : a !== void 0 && Object.assign(l.props, a); -}, "addVertex"), BPt = /* @__PURE__ */ x(function(t, e, r) { +}, "addVertex"), FPt = /* @__PURE__ */ x(function(t, e, r) { var o; const s = { start: t, end: e, type: void 0, text: "", labelType: "text" }; X.info("abc78 Got edge...", s); const a = r.text; - if (a !== void 0 && (s.text = oC(a.text.trim()), s.text.startsWith('"') && s.text.endsWith('"') && (s.text = s.text.substring(1, s.text.length - 1)), s.labelType = a.type), r !== void 0 && (s.type = r.type, s.stroke = r.stroke, s.length = r.length > 10 ? 10 : r.length), xa.length < ((o = f1.maxEdges) != null ? o : 500)) + if (a !== void 0 && (s.text = lC(a.text.trim()), s.text.startsWith('"') && s.text.endsWith('"') && (s.text = s.text.substring(1, s.text.length - 1)), s.labelType = a.type), r !== void 0 && (s.type = r.type, s.stroke = r.stroke, s.length = r.length > 10 ? 10 : r.length), xa.length < ((o = f1.maxEdges) != null ? o : 500)) X.info("Pushing edge..."), xa.push(s); else throw new Error( @@ -67489,16 +67511,16 @@ Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.` ); -}, "addSingleLink"), FPt = /* @__PURE__ */ x(function(t, e, r) { +}, "addSingleLink"), zPt = /* @__PURE__ */ x(function(t, e, r) { X.info("addLink", t, e, r); for (const n of t) for (const i of e) - BPt(n, i, r); -}, "addLink"), zPt = /* @__PURE__ */ x(function(t, e) { + FPt(n, i, r); +}, "addLink"), VPt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { r === "default" ? xa.defaultInterpolate = e : xa[r].interpolate = e; }); -}, "updateLinkInterpolate"), VPt = /* @__PURE__ */ x(function(t, e) { +}, "updateLinkInterpolate"), UPt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { var n, i, s, a, o, l, u; if (typeof r == "number" && r >= xa.length) @@ -67507,7 +67529,7 @@ You have to call mermaid.initialize.` ); r === "default" ? xa.defaultStyle = e : (xa[r].style = e, ((s = (i = (n = xa[r]) == null ? void 0 : n.style) == null ? void 0 : i.length) != null ? s : 0) > 0 && !((o = (a = xa[r]) == null ? void 0 : a.style) != null && o.some((h) => h == null ? void 0 : h.startsWith("fill"))) && ((u = (l = xa[r]) == null ? void 0 : l.style) == null || u.push("fill:none"))); }); -}, "updateLink"), UPt = /* @__PURE__ */ x(function(t, e) { +}, "updateLink"), qPt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = A2.get(r); n === void 0 && (n = { id: r, styles: [], textStyles: [] }, A2.set(r, n)), e != null && e.forEach(function(i) { @@ -67518,7 +67540,7 @@ You have to call mermaid.initialize.` n.styles.push(i); }); }); -}, "addClass"), qPt = /* @__PURE__ */ x(function(t) { +}, "addClass"), QPt = /* @__PURE__ */ x(function(t) { Oo = t, /.*/.exec(Oo) && (Oo = "LR"), /.*v/.exec(Oo) && (Oo = "TB"), Oo === "TD" && (Oo = "TB"); }, "setDirection"), cI = /* @__PURE__ */ x(function(t, e) { for (const r of t.split(",")) { @@ -67527,14 +67549,14 @@ You have to call mermaid.initialize.` const i = oI.get(r); i && i.classes.push(e); } -}, "setClass"), QPt = /* @__PURE__ */ x(function(t, e) { +}, "setClass"), YPt = /* @__PURE__ */ x(function(t, e) { if (e !== void 0) { - e = oC(e); + e = lC(e); for (const r of t.split(",")) - lI.set(sC === "gen-1" ? lC(r) : r, e); + lI.set(aC === "gen-1" ? cC(r) : r, e); } -}, "setTooltip"), YPt = /* @__PURE__ */ x(function(t, e, r) { - const n = lC(t); +}, "setTooltip"), WPt = /* @__PURE__ */ x(function(t, e, r) { + const n = cC(t); if (be().securityLevel !== "loose" || e === void 0) return; let i = []; @@ -67547,7 +67569,7 @@ You have to call mermaid.initialize.` } i.length === 0 && i.push(t); const s = Tf.get(t); - s && (s.haveCallback = !0, aC.push(function() { + s && (s.haveCallback = !0, oC.push(function() { const a = document.querySelector(`[id="${n}"]`); a !== null && a.addEventListener( "click", @@ -67557,30 +67579,30 @@ You have to call mermaid.initialize.` !1 ); })); -}, "setClickFun"), WPt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickFun"), GPt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { const i = Tf.get(n); i !== void 0 && (i.link = sr.formatUrl(e, f1), i.linkTarget = r); }), cI(t, "clickable"); -}, "setLink"), yfe = /* @__PURE__ */ x(function(t) { +}, "setLink"), bfe = /* @__PURE__ */ x(function(t) { return lI.get(t); -}, "getTooltip"), GPt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), HPt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - YPt(n, e, r); + WPt(n, e, r); }), cI(t, "clickable"); -}, "setClickEvent"), HPt = /* @__PURE__ */ x(function(t) { - aC.forEach(function(e) { +}, "setClickEvent"), XPt = /* @__PURE__ */ x(function(t) { + oC.forEach(function(e) { e(t); }); -}, "bindFunctions"), bfe = /* @__PURE__ */ x(function() { +}, "bindFunctions"), xfe = /* @__PURE__ */ x(function() { return Oo.trim(); -}, "getDirection"), xfe = /* @__PURE__ */ x(function() { +}, "getDirection"), wfe = /* @__PURE__ */ x(function() { return Tf; -}, "getVertices"), wfe = /* @__PURE__ */ x(function() { +}, "getVertices"), Ofe = /* @__PURE__ */ x(function() { return xa; -}, "getEdges"), XPt = /* @__PURE__ */ x(function() { +}, "getEdges"), ZPt = /* @__PURE__ */ x(function() { return A2; -}, "getClasses"), Ofe = /* @__PURE__ */ x(function(t) { +}, "getClasses"), kfe = /* @__PURE__ */ x(function(t) { let e = et(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = et("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), et(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = et(this); @@ -67592,14 +67614,14 @@ You have to call mermaid.initialize.` e.transition().duration(500).style("opacity", 0), et(this).classed("hover", !1); }); }, "setupToolTips"); -aC.push(Ofe); -var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { - Tf = /* @__PURE__ */ new Map(), A2 = /* @__PURE__ */ new Map(), xa = [], aC = [Ofe], ju = [], oI = /* @__PURE__ */ new Map(), Y4 = 0, lI = /* @__PURE__ */ new Map(), PL = !0, sC = t, f1 = be(), Xi(); -}, "clear"), jPt = /* @__PURE__ */ x((t) => { - sC = t || "gen-2"; -}, "setGen"), KPt = /* @__PURE__ */ x(function() { +oC.push(kfe); +var jPt = /* @__PURE__ */ x(function(t = "gen-1") { + Tf = /* @__PURE__ */ new Map(), A2 = /* @__PURE__ */ new Map(), xa = [], oC = [kfe], ju = [], oI = /* @__PURE__ */ new Map(), Y4 = 0, lI = /* @__PURE__ */ new Map(), $L = !0, aC = t, f1 = be(), Xi(); +}, "clear"), KPt = /* @__PURE__ */ x((t) => { + aC = t || "gen-2"; +}, "setGen"), JPt = /* @__PURE__ */ x(function() { return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"; -}, "defaultStyle"), JPt = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultStyle"), e$t = /* @__PURE__ */ x(function(t, e, r) { let n = t.text.trim(), i = r.text; t === r && /\s/.exec(r.text) && (n = void 0); function s(u) { @@ -67612,10 +67634,10 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { } x(s, "uniq"); const { nodeList: a, dir: o } = s(e.flat()); - if (sC === "gen-1") + if (aC === "gen-1") for (let u = 0; u < a.length; u++) - a[u] = lC(a[u]); - n = n != null ? n : "subGraph" + Y4, i = i || "", i = oC(i), Y4 = Y4 + 1; + a[u] = cC(a[u]); + n = n != null ? n : "subGraph" + Y4, i = i || "", i = lC(i), Y4 = Y4 + 1; const l = { id: n, nodes: a, @@ -67624,29 +67646,29 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { dir: o, labelType: r.type }; - return X.info("Adding", l.id, l.nodes, l.dir), l.nodes = Efe(l, ju).nodes, ju.push(l), oI.set(n, l), n; -}, "addSubGraph"), e$t = /* @__PURE__ */ x(function(t) { + return X.info("Adding", l.id, l.nodes, l.dir), l.nodes = _fe(l, ju).nodes, ju.push(l), oI.set(n, l), n; +}, "addSubGraph"), t$t = /* @__PURE__ */ x(function(t) { for (const [e, r] of ju.entries()) if (r.id === t) return e; return -1; -}, "getPosForId"), Cv = -1, kfe = [], Sfe = /* @__PURE__ */ x(function(t, e) { +}, "getPosForId"), Cv = -1, Sfe = [], Tfe = /* @__PURE__ */ x(function(t, e) { const r = ju[e].nodes; if (Cv = Cv + 1, Cv > 2e3) return { result: !1, count: 0 }; - if (kfe[Cv] = e, ju[e].id === t) + if (Sfe[Cv] = e, ju[e].id === t) return { result: !0, count: 0 }; let n = 0, i = 1; for (; n < r.length; ) { - const s = e$t(r[n]); + const s = t$t(r[n]); if (s >= 0) { - const a = Sfe(t, s); + const a = Tfe(t, s); if (a.result) return { result: !0, @@ -67660,13 +67682,13 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { result: !1, count: i }; -}, "indexNodes2"), t$t = /* @__PURE__ */ x(function(t) { - return kfe[t]; -}, "getDepthFirstPos"), r$t = /* @__PURE__ */ x(function() { - Cv = -1, ju.length > 0 && Sfe("none", ju.length - 1); -}, "indexNodes"), Tfe = /* @__PURE__ */ x(function() { +}, "indexNodes2"), r$t = /* @__PURE__ */ x(function(t) { + return Sfe[t]; +}, "getDepthFirstPos"), n$t = /* @__PURE__ */ x(function() { + Cv = -1, ju.length > 0 && Tfe("none", ju.length - 1); +}, "indexNodes"), Cfe = /* @__PURE__ */ x(function() { return ju; -}, "getSubGraphs"), n$t = /* @__PURE__ */ x(() => PL ? (PL = !1, !0) : !1, "firstGraph"), i$t = /* @__PURE__ */ x((t) => { +}, "getSubGraphs"), i$t = /* @__PURE__ */ x(() => $L ? ($L = !1, !0) : !1, "firstGraph"), s$t = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; switch (e[0]) { case "<": @@ -67681,13 +67703,13 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { } let n = "normal"; return e.includes("=") && (n = "thick"), e.includes(".") && (n = "dotted"), { type: r, stroke: n }; -}, "destructStartLink"), s$t = /* @__PURE__ */ x((t, e) => { +}, "destructStartLink"), a$t = /* @__PURE__ */ x((t, e) => { const r = e.length; let n = 0; for (let i = 0; i < r; ++i) e[i] === t && ++n; return n; -}, "countChar"), a$t = /* @__PURE__ */ x((t) => { +}, "countChar"), o$t = /* @__PURE__ */ x((t) => { const e = t.trim(); let r = e.slice(0, -1), n = "arrow_open"; switch (e.slice(-1)) { @@ -67703,13 +67725,13 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { } let i = "normal", s = r.length - 1; r.startsWith("=") && (i = "thick"), r.startsWith("~") && (i = "invisible"); - const a = s$t(".", r); + const a = a$t(".", r); return a && (i = "dotted", s = a), { type: n, stroke: i, length: s }; -}, "destructEndLink"), o$t = /* @__PURE__ */ x((t, e) => { - const r = a$t(t); +}, "destructEndLink"), l$t = /* @__PURE__ */ x((t, e) => { + const r = o$t(t); let n; if (e) { - if (n = i$t(e), n.stroke !== r.stroke) + if (n = s$t(e), n.stroke !== r.stroke) return { type: "INVALID", stroke: "INVALID" }; if (n.type === "arrow_open") n.type = r.type; @@ -67721,22 +67743,22 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = r.length, n; } return r; -}, "destructLink"), Cfe = /* @__PURE__ */ x((t, e) => { +}, "destructLink"), Efe = /* @__PURE__ */ x((t, e) => { for (const r of t) if (r.nodes.includes(e)) return !0; return !1; -}, "exists"), Efe = /* @__PURE__ */ x((t, e) => { +}, "exists"), _fe = /* @__PURE__ */ x((t, e) => { const r = []; return t.nodes.forEach((n, i) => { - Cfe(e, n) || r.push(t.nodes[i]); + Efe(e, n) || r.push(t.nodes[i]); }), { nodes: r }; -}, "makeUniq"), l$t = { - firstGraph: n$t -}, c$t = /* @__PURE__ */ x((t) => { +}, "makeUniq"), c$t = { + firstGraph: i$t +}, u$t = /* @__PURE__ */ x((t) => { var e; return t.type === "square" ? "squareRect" : t.type === "round" ? "roundedRect" : (e = t.type) != null ? e : "squareRect"; -}, "getTypeFromVertex"), u$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), h$t = /* @__PURE__ */ x((t) => { +}, "getTypeFromVertex"), h$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), f$t = /* @__PURE__ */ x((t) => { let e = "none", r = "arrow_point"; switch (t) { case "arrow_point": @@ -67751,29 +67773,29 @@ var ZPt = /* @__PURE__ */ x(function(t = "gen-1") { break; } return { arrowTypeStart: e, arrowTypeEnd: r }; -}, "destructEdgeType"), f$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "destructEdgeType"), d$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { var u, h; - const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = u$t(e, t.id); - l ? (l.cssStyles = t.styles, l.cssCompiledStyles = gk(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ + const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = h$t(e, t.id); + l ? (l.cssStyles = t.styles, l.cssCompiledStyles = mk(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ id: t.id, label: t.text, labelStyle: "", parentId: a, padding: ((h = i.flowchart) == null ? void 0 : h.padding) || 8, cssStyles: t.styles, - cssCompiledStyles: gk(["default", "node", ...t.classes]), + cssCompiledStyles: mk(["default", "node", ...t.classes]), cssClasses: "default " + t.classes.join(" "), - shape: c$t(t), + shape: u$t(t), dir: t.dir, domId: t.domId, isGroup: o, look: s, link: t.link, linkTarget: t.linkTarget, - tooltip: yfe(t.id) + tooltip: bfe(t.id) }); }, "addNodeFromVertex"); -function gk(t) { +function mk(t) { var r, n; let e = []; for (const i of t) { @@ -67782,9 +67804,9 @@ function gk(t) { } return e; } -x(gk, "getCompiledStyles"); -var d$t = /* @__PURE__ */ x(() => { - const t = be(), e = [], r = [], n = Tfe(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); +x(mk, "getCompiledStyles"); +var p$t = /* @__PURE__ */ x(() => { + const t = be(), e = [], r = [], n = Cfe(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); for (let l = n.length - 1; l >= 0; l--) { const u = n[l]; u.nodes.length > 0 && s.set(u.id, !0); @@ -67799,7 +67821,7 @@ var d$t = /* @__PURE__ */ x(() => { labelStyle: "", parentId: i.get(u.id), padding: 8, - cssCompiledStyles: gk(u.classes), + cssCompiledStyles: mk(u.classes), cssClasses: u.classes.join(" "), shape: "rect", dir: u.dir, @@ -67807,16 +67829,16 @@ var d$t = /* @__PURE__ */ x(() => { look: t.look }); } - xfe().forEach((l) => { - f$t(l, e, i, s, t, t.look || "classic"); + wfe().forEach((l) => { + d$t(l, e, i, s, t, t.look || "classic"); }); - const o = wfe(); + const o = Ofe(); return o.forEach((l, u) => { var g, m; - const { arrowTypeStart: h, arrowTypeEnd: f } = h$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; + const { arrowTypeStart: h, arrowTypeEnd: f } = f$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { - id: Sae(l.start, l.end, { counter: u, prefix: "L" }), + id: Tae(l.start, l.end, { counter: u, prefix: "L" }), start: l.start, end: l.end, type: (m = l.type) != null ? m : "normal", @@ -67835,46 +67857,46 @@ var d$t = /* @__PURE__ */ x(() => { }; r.push(p); }), { nodes: e, edges: r, other: {}, config: t }; -}, "getData"), A_ = { - defaultConfig: /* @__PURE__ */ x(() => Lie.flowchart, "defaultConfig"), +}, "getData"), L_ = { + defaultConfig: /* @__PURE__ */ x(() => Rie.flowchart, "defaultConfig"), setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, - getData: d$t, + getData: p$t, setAccDescription: ys, - addVertex: $Pt, - lookUpDomId: lC, - addLink: FPt, - updateLinkInterpolate: zPt, - updateLink: VPt, - addClass: UPt, - setDirection: qPt, + addVertex: BPt, + lookUpDomId: cC, + addLink: zPt, + updateLinkInterpolate: VPt, + updateLink: UPt, + addClass: qPt, + setDirection: QPt, setClass: cI, - setTooltip: QPt, - getTooltip: yfe, - setClickEvent: GPt, - setLink: WPt, - bindFunctions: HPt, - getDirection: bfe, - getVertices: xfe, - getEdges: wfe, - getClasses: XPt, - clear: ZPt, - setGen: jPt, - defaultStyle: KPt, - addSubGraph: JPt, - getDepthFirstPos: t$t, - indexNodes: r$t, - getSubGraphs: Tfe, - destructLink: o$t, - lex: l$t, - exists: Cfe, - makeUniq: Efe, + setTooltip: YPt, + getTooltip: bfe, + setClickEvent: HPt, + setLink: GPt, + bindFunctions: XPt, + getDirection: xfe, + getVertices: wfe, + getEdges: Ofe, + getClasses: ZPt, + clear: jPt, + setGen: KPt, + defaultStyle: JPt, + addSubGraph: e$t, + getDepthFirstPos: r$t, + indexNodes: n$t, + getSubGraphs: Cfe, + destructLink: l$t, + lex: c$t, + exists: Efe, + makeUniq: _fe, setDiagramTitle: fa, getDiagramTitle: xs -}, p$t = /* @__PURE__ */ x(function(t, e) { +}, g$t = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), g$t = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), m$t = /* @__PURE__ */ x(async function(t, e, r, n) { var p, g; X.info("REF0:"), X.info("Drawing state diagram (v2)", e); const { securityLevel: i, flowchart: s, layout: a } = be(); @@ -67884,17 +67906,17 @@ var d$t = /* @__PURE__ */ x(() => { X.debug("Before getData: "); const u = n.db.getData(); X.debug("Data: ", u); - const h = cfe(e, i), f = bfe(); - u.type = n.type, u.layoutAlgorithm = nTt(a), u.layoutAlgorithm === "dagre" && a === "elk" && X.warn( + const h = ufe(e, i), f = xfe(); + u.type = n.type, u.layoutAlgorithm = iTt(a), u.layoutAlgorithm === "dagre" && a === "elk" && X.warn( "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback." - ), u.direction = f, u.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, u.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, u.markers = ["point", "circle", "cross"], u.diagramId = e, X.debug("REF1:", u), await boe(u, h); + ), u.direction = f, u.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, u.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, u.markers = ["point", "circle", "cross"], u.diagramId = e, X.debug("REF1:", u), await xoe(u, h); const d = (g = (p = u.config.flowchart) == null ? void 0 : p.diagramPadding) != null ? g : 8; sr.insertTitle( h, "flowchartTitleText", (s == null ? void 0 : s.titleTopMargin) || 0, n.db.getDiagramTitle() - ), ufe(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); + ), hfe(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); for (const m of u.nodes) { const v = et(`#${e} [id="${m.id}"]`); if (!v || !m.link) @@ -67912,15 +67934,15 @@ var d$t = /* @__PURE__ */ x(() => { return O.node(); }); } -}, "draw"), m$t = { - getClasses: p$t, - draw: g$t -}, $L = function() { +}, "draw"), v$t = { + getClasses: g$t, + draw: m$t +}, BL = function() { var t = /* @__PURE__ */ x(function(Jt, rt, St, Tt) { for (St = St || {}, Tt = Jt.length; Tt--; St[Jt[Tt]] = rt) ; return St; - }, "o"), e = [1, 4], r = [1, 3], n = [1, 5], i = [1, 8, 9, 10, 11, 27, 34, 36, 38, 42, 58, 81, 82, 83, 84, 85, 86, 99, 102, 103, 106, 108, 111, 112, 113, 118, 119, 120, 121], s = [2, 2], a = [1, 13], o = [1, 14], l = [1, 15], u = [1, 16], h = [1, 23], f = [1, 25], d = [1, 26], p = [1, 27], g = [1, 49], m = [1, 48], v = [1, 29], y = [1, 30], b = [1, 31], w = [1, 32], O = [1, 33], S = [1, 44], C = [1, 46], T = [1, 42], L = [1, 47], E = [1, 43], A = [1, 50], _ = [1, 45], R = [1, 51], $ = [1, 52], k = [1, 34], N = [1, 35], M = [1, 36], I = [1, 37], D = [1, 57], P = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 42, 58, 81, 82, 83, 84, 85, 86, 99, 102, 103, 106, 108, 111, 112, 113, 118, 119, 120, 121], F = [1, 61], B = [1, 60], V = [1, 62], Q = [8, 9, 11, 73, 75], W = [1, 88], ee = [1, 93], Y = [1, 92], ne = [1, 89], ie = [1, 85], U = [1, 91], Z = [1, 87], G = [1, 94], j = [1, 90], ae = [1, 95], se = [1, 86], K = [8, 9, 10, 11, 73, 75], _e = [8, 9, 10, 11, 44, 73, 75], ce = [8, 9, 10, 11, 29, 42, 44, 46, 48, 50, 52, 54, 56, 58, 61, 63, 65, 66, 68, 73, 75, 86, 99, 102, 103, 106, 108, 111, 112, 113], Ee = [8, 9, 11, 42, 58, 73, 75, 86, 99, 102, 103, 106, 108, 111, 112, 113], Ae = [42, 58, 86, 99, 102, 103, 106, 108, 111, 112, 113], Ue = [1, 121], Ge = [1, 120], Ye = [1, 128], De = [1, 142], he = [1, 143], H = [1, 144], oe = [1, 145], ve = [1, 130], re = [1, 132], ue = [1, 136], fe = [1, 137], de = [1, 138], ge = [1, 139], xe = [1, 140], ke = [1, 141], Ce = [1, 146], Oe = [1, 147], Me = [1, 126], Te = [1, 127], Xe = [1, 134], Ne = [1, 129], Ke = [1, 133], je = [1, 131], ut = [8, 9, 10, 11, 27, 32, 34, 36, 38, 42, 58, 81, 82, 83, 84, 85, 86, 99, 102, 103, 106, 108, 111, 112, 113, 118, 119, 120, 121], ft = [1, 149], ot = [8, 9, 11], We = [8, 9, 10, 11, 14, 42, 58, 86, 102, 103, 106, 108, 111, 112, 113], Qe = [1, 169], pt = [1, 165], tt = [1, 166], He = [1, 170], kt = [1, 167], st = [1, 168], Ze = [75, 113, 116], dt = [8, 9, 10, 11, 12, 14, 27, 29, 32, 42, 58, 73, 81, 82, 83, 84, 85, 86, 87, 102, 106, 108, 111, 112, 113], zt = [10, 103], yr = [31, 47, 49, 51, 53, 55, 60, 62, 64, 65, 67, 69, 113, 114, 115], Qt = [1, 235], wr = [1, 233], tr = [1, 237], On = [1, 231], Br = [1, 232], Xr = [1, 234], xr = [1, 236], En = [1, 238], qe = [1, 255], te = [8, 9, 11, 103], Le = [8, 9, 10, 11, 58, 81, 102, 103, 106, 107, 108, 109], ze = { + }, "o"), e = [1, 4], r = [1, 3], n = [1, 5], i = [1, 8, 9, 10, 11, 27, 34, 36, 38, 42, 58, 81, 82, 83, 84, 85, 86, 99, 102, 103, 106, 108, 111, 112, 113, 118, 119, 120, 121], s = [2, 2], a = [1, 13], o = [1, 14], l = [1, 15], u = [1, 16], h = [1, 23], f = [1, 25], d = [1, 26], p = [1, 27], g = [1, 49], m = [1, 48], v = [1, 29], y = [1, 30], b = [1, 31], w = [1, 32], O = [1, 33], S = [1, 44], C = [1, 46], T = [1, 42], A = [1, 47], E = [1, 43], L = [1, 50], _ = [1, 45], R = [1, 51], $ = [1, 52], k = [1, 34], N = [1, 35], M = [1, 36], I = [1, 37], D = [1, 57], P = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 42, 58, 81, 82, 83, 84, 85, 86, 99, 102, 103, 106, 108, 111, 112, 113, 118, 119, 120, 121], F = [1, 61], B = [1, 60], V = [1, 62], Q = [8, 9, 11, 73, 75], W = [1, 88], ee = [1, 93], Y = [1, 92], ne = [1, 89], ie = [1, 85], U = [1, 91], Z = [1, 87], G = [1, 94], j = [1, 90], ae = [1, 95], se = [1, 86], K = [8, 9, 10, 11, 73, 75], _e = [8, 9, 10, 11, 44, 73, 75], ce = [8, 9, 10, 11, 29, 42, 44, 46, 48, 50, 52, 54, 56, 58, 61, 63, 65, 66, 68, 73, 75, 86, 99, 102, 103, 106, 108, 111, 112, 113], Ee = [8, 9, 11, 42, 58, 73, 75, 86, 99, 102, 103, 106, 108, 111, 112, 113], Ae = [42, 58, 86, 99, 102, 103, 106, 108, 111, 112, 113], Ue = [1, 121], Ge = [1, 120], Ye = [1, 128], De = [1, 142], he = [1, 143], H = [1, 144], oe = [1, 145], ve = [1, 130], re = [1, 132], ue = [1, 136], fe = [1, 137], de = [1, 138], ge = [1, 139], xe = [1, 140], ke = [1, 141], Ce = [1, 146], Oe = [1, 147], Me = [1, 126], Te = [1, 127], Xe = [1, 134], Ne = [1, 129], Ke = [1, 133], je = [1, 131], ut = [8, 9, 10, 11, 27, 32, 34, 36, 38, 42, 58, 81, 82, 83, 84, 85, 86, 99, 102, 103, 106, 108, 111, 112, 113, 118, 119, 120, 121], ft = [1, 149], ot = [8, 9, 11], We = [8, 9, 10, 11, 14, 42, 58, 86, 102, 103, 106, 108, 111, 112, 113], Qe = [1, 169], pt = [1, 165], tt = [1, 166], He = [1, 170], kt = [1, 167], st = [1, 168], Ze = [75, 113, 116], dt = [8, 9, 10, 11, 12, 14, 27, 29, 32, 42, 58, 73, 81, 82, 83, 84, 85, 86, 87, 102, 106, 108, 111, 112, 113], zt = [10, 103], yr = [31, 47, 49, 51, 53, 55, 60, 62, 64, 65, 67, 69, 113, 114, 115], Qt = [1, 235], wr = [1, 233], tr = [1, 237], On = [1, 231], Br = [1, 232], Xr = [1, 234], xr = [1, 236], En = [1, 238], qe = [1, 255], te = [8, 9, 11, 103], Le = [8, 9, 10, 11, 58, 81, 102, 103, 106, 107, 108, 109], ze = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -68201,7 +68223,7 @@ var d$t = /* @__PURE__ */ x(() => { break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 9: e, 10: r, 12: n }, { 1: [3] }, t(i, s, { 5: 6 }), { 4: 7, 9: e, 10: r, 12: n }, { 4: 8, 9: e, 10: r, 12: n }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, t(i, [2, 9]), t(i, [2, 10]), t(i, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: D, 15: 53, 18: 56 }, t(P, [2, 3]), t(P, [2, 4]), t(P, [2, 5]), t(P, [2, 6]), t(P, [2, 7]), t(P, [2, 8]), { 8: F, 9: B, 11: V, 21: 58, 39: 59, 70: 63, 73: [1, 64], 75: [1, 65] }, { 8: F, 9: B, 11: V, 21: 66 }, { 8: F, 9: B, 11: V, 21: 67 }, { 8: F, 9: B, 11: V, 21: 68 }, { 8: F, 9: B, 11: V, 21: 69 }, { 8: F, 9: B, 11: V, 21: 70 }, { 8: F, 9: B, 10: [1, 71], 11: V, 21: 72 }, t(P, [2, 36]), { 35: [1, 73] }, { 37: [1, 74] }, t(P, [2, 39]), t(Q, [2, 46], { 18: 75, 10: D }), { 10: [1, 76] }, { 10: [1, 77] }, { 10: [1, 78] }, { 10: [1, 79] }, { 14: W, 42: ee, 58: Y, 77: [1, 83], 86: ne, 92: [1, 80], 94: [1, 81], 98: 82, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se, 117: 84 }, t(P, [2, 178]), t(P, [2, 179]), t(P, [2, 180]), t(P, [2, 181]), t(K, [2, 47]), t(K, [2, 49], { 44: [1, 96] }), t(_e, [2, 67], { 110: 109, 29: [1, 97], 42: g, 46: [1, 98], 48: [1, 99], 50: [1, 100], 52: [1, 101], 54: [1, 102], 56: [1, 103], 58: m, 61: [1, 104], 63: [1, 105], 65: [1, 106], 66: [1, 107], 68: [1, 108], 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 111: _, 112: R, 113: $ }), t(ce, [2, 174]), t(ce, [2, 135]), t(ce, [2, 136]), t(ce, [2, 137]), t(ce, [2, 138]), t(ce, [2, 139]), t(ce, [2, 140]), t(ce, [2, 141]), t(ce, [2, 142]), t(ce, [2, 143]), t(ce, [2, 144]), t(ce, [2, 145]), t(i, [2, 12]), t(i, [2, 18]), t(i, [2, 19]), { 9: [1, 110] }, t(Ee, [2, 26], { 18: 111, 10: D }), t(P, [2, 27]), { 40: 112, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, t(P, [2, 40]), t(P, [2, 41]), t(P, [2, 42]), t(Ae, [2, 71], { 71: 113, 60: [1, 115], 72: [1, 114] }), { 74: 116, 76: 117, 77: [1, 118], 78: [1, 119], 113: Ue, 116: Ge }, t([42, 58, 60, 72, 86, 99, 102, 103, 106, 108, 111, 112, 113], [2, 77]), t(P, [2, 28]), t(P, [2, 29]), t(P, [2, 30]), t(P, [2, 31]), t(P, [2, 32]), { 10: Ye, 12: De, 14: he, 27: H, 28: 122, 32: oe, 42: ve, 58: re, 73: ue, 77: [1, 124], 78: [1, 125], 80: 135, 81: fe, 82: de, 83: ge, 84: xe, 85: ke, 86: Ce, 87: Oe, 88: 123, 102: Me, 106: Te, 108: Xe, 111: Ne, 112: Ke, 113: je }, t(ut, s, { 5: 148 }), t(P, [2, 37]), t(P, [2, 38]), t(Q, [2, 45], { 42: ft }), { 42: g, 45: 150, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, { 99: [1, 151], 100: 152, 102: [1, 153] }, { 42: g, 45: 154, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, { 42: g, 45: 155, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, t(ot, [2, 100], { 10: [1, 156], 93: [1, 157] }), { 77: [1, 158] }, t(ot, [2, 108], { 117: 160, 10: [1, 159], 14: W, 42: ee, 58: Y, 86: ne, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se }), t(ot, [2, 110], { 10: [1, 161] }), t(We, [2, 176]), t(We, [2, 163]), t(We, [2, 164]), t(We, [2, 165]), t(We, [2, 166]), t(We, [2, 167]), t(We, [2, 168]), t(We, [2, 169]), t(We, [2, 170]), t(We, [2, 171]), t(We, [2, 172]), t(We, [2, 173]), { 42: g, 45: 162, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, { 30: 163, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 171, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 173, 48: [1, 172], 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 174, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 175, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 176, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 106: [1, 177] }, { 30: 178, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 179, 63: [1, 180], 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 181, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 182, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 183, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, t(ce, [2, 175]), t(i, [2, 20]), t(Ee, [2, 25]), t(Q, [2, 43], { 18: 184, 10: D }), t(Ae, [2, 68], { 10: [1, 185] }), { 10: [1, 186] }, { 30: 187, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 75: [1, 188], 76: 189, 113: Ue, 116: Ge }, t(Ze, [2, 73]), t(Ze, [2, 75]), t(Ze, [2, 76]), t(Ze, [2, 161]), t(Ze, [2, 162]), { 8: F, 9: B, 10: Ye, 11: V, 12: De, 14: he, 21: 191, 27: H, 29: [1, 190], 32: oe, 42: ve, 58: re, 73: ue, 80: 135, 81: fe, 82: de, 83: ge, 84: xe, 85: ke, 86: Ce, 87: Oe, 88: 192, 102: Me, 106: Te, 108: Xe, 111: Ne, 112: Ke, 113: je }, t(dt, [2, 94]), t(dt, [2, 96]), t(dt, [2, 97]), t(dt, [2, 150]), t(dt, [2, 151]), t(dt, [2, 152]), t(dt, [2, 153]), t(dt, [2, 154]), t(dt, [2, 155]), t(dt, [2, 156]), t(dt, [2, 157]), t(dt, [2, 158]), t(dt, [2, 159]), t(dt, [2, 160]), t(dt, [2, 83]), t(dt, [2, 84]), t(dt, [2, 85]), t(dt, [2, 86]), t(dt, [2, 87]), t(dt, [2, 88]), t(dt, [2, 89]), t(dt, [2, 90]), t(dt, [2, 91]), t(dt, [2, 92]), t(dt, [2, 93]), { 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 32: [1, 193], 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, { 10: D, 18: 194 }, { 10: [1, 195], 42: g, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 109, 111: _, 112: R, 113: $ }, { 10: [1, 196] }, { 10: [1, 197], 103: [1, 198] }, t(zt, [2, 121]), { 10: [1, 199], 42: g, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 109, 111: _, 112: R, 113: $ }, { 10: [1, 200], 42: g, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 109, 111: _, 112: R, 113: $ }, { 77: [1, 201] }, t(ot, [2, 102], { 10: [1, 202] }), t(ot, [2, 104], { 10: [1, 203] }), { 77: [1, 204] }, t(We, [2, 177]), { 77: [1, 205], 95: [1, 206] }, t(K, [2, 50], { 110: 109, 42: g, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 111: _, 112: R, 113: $ }), { 31: [1, 207], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(yr, [2, 79]), t(yr, [2, 81]), t(yr, [2, 82]), t(yr, [2, 146]), t(yr, [2, 147]), t(yr, [2, 148]), t(yr, [2, 149]), { 47: [1, 209], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 30: 210, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 49: [1, 211], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 51: [1, 212], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 53: [1, 213], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 55: [1, 214], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 58: [1, 215] }, { 62: [1, 216], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 64: [1, 217], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 30: 218, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 31: [1, 219], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 65: Qe, 67: [1, 220], 69: [1, 221], 79: 208, 113: He, 114: kt, 115: st }, { 65: Qe, 67: [1, 223], 69: [1, 222], 79: 208, 113: He, 114: kt, 115: st }, t(Q, [2, 44], { 42: ft }), t(Ae, [2, 70]), t(Ae, [2, 69]), { 60: [1, 224], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(Ae, [2, 72]), t(Ze, [2, 74]), { 30: 225, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, t(ut, s, { 5: 226 }), t(dt, [2, 95]), t(P, [2, 35]), { 41: 227, 42: g, 43: 39, 45: 40, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, { 10: Qt, 58: wr, 81: tr, 89: 228, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 10: Qt, 58: wr, 81: tr, 89: 239, 101: [1, 240], 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 10: Qt, 58: wr, 81: tr, 89: 241, 101: [1, 242], 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 102: [1, 243] }, { 10: Qt, 58: wr, 81: tr, 89: 244, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 42: g, 45: 245, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $ }, t(ot, [2, 101]), { 77: [1, 246] }, { 77: [1, 247], 95: [1, 248] }, t(ot, [2, 109]), t(ot, [2, 111], { 10: [1, 249] }), t(ot, [2, 112]), t(_e, [2, 51]), t(yr, [2, 80]), t(_e, [2, 52]), { 49: [1, 250], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(_e, [2, 59]), t(_e, [2, 54]), t(_e, [2, 55]), t(_e, [2, 56]), { 106: [1, 251] }, t(_e, [2, 58]), t(_e, [2, 60]), { 64: [1, 252], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(_e, [2, 62]), t(_e, [2, 63]), t(_e, [2, 65]), t(_e, [2, 64]), t(_e, [2, 66]), t([10, 42, 58, 86, 99, 102, 103, 106, 108, 111, 112, 113], [2, 78]), { 31: [1, 253], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 32: [1, 254], 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, t(K, [2, 48]), t(ot, [2, 114], { 103: qe }), t(te, [2, 123], { 105: 256, 10: Qt, 58: wr, 81: tr, 102: On, 106: Br, 107: Xr, 108: xr, 109: En }), t(Le, [2, 125]), t(Le, [2, 127]), t(Le, [2, 128]), t(Le, [2, 129]), t(Le, [2, 130]), t(Le, [2, 131]), t(Le, [2, 132]), t(Le, [2, 133]), t(Le, [2, 134]), t(ot, [2, 115], { 103: qe }), { 10: [1, 257] }, t(ot, [2, 116], { 103: qe }), { 10: [1, 258] }, t(zt, [2, 122]), t(ot, [2, 98], { 103: qe }), t(ot, [2, 99], { 110: 109, 42: g, 58: m, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 111: _, 112: R, 113: $ }), t(ot, [2, 103]), t(ot, [2, 105], { 10: [1, 259] }), t(ot, [2, 106]), { 95: [1, 260] }, { 49: [1, 261] }, { 60: [1, 262] }, { 64: [1, 263] }, { 8: F, 9: B, 11: V, 21: 264 }, t(P, [2, 34]), { 10: Qt, 58: wr, 81: tr, 102: On, 104: 265, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, t(Le, [2, 126]), { 14: W, 42: ee, 58: Y, 86: ne, 98: 266, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se, 117: 84 }, { 14: W, 42: ee, 58: Y, 86: ne, 98: 267, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se, 117: 84 }, { 95: [1, 268] }, t(ot, [2, 113]), t(_e, [2, 53]), { 30: 269, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, t(_e, [2, 61]), t(ut, s, { 5: 270 }), t(te, [2, 124], { 105: 256, 10: Qt, 58: wr, 81: tr, 102: On, 106: Br, 107: Xr, 108: xr, 109: En }), t(ot, [2, 119], { 117: 160, 10: [1, 271], 14: W, 42: ee, 58: Y, 86: ne, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se }), t(ot, [2, 120], { 117: 160, 10: [1, 272], 14: W, 42: ee, 58: Y, 86: ne, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se }), t(ot, [2, 107]), { 31: [1, 273], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 32: [1, 274], 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: L, 106: E, 108: A, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, { 10: Qt, 58: wr, 81: tr, 89: 275, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 10: Qt, 58: wr, 81: tr, 89: 276, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, t(_e, [2, 57]), t(P, [2, 33]), t(ot, [2, 117], { 103: qe }), t(ot, [2, 118], { 103: qe })], + table: [{ 3: 1, 4: 2, 9: e, 10: r, 12: n }, { 1: [3] }, t(i, s, { 5: 6 }), { 4: 7, 9: e, 10: r, 12: n }, { 4: 8, 9: e, 10: r, 12: n }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, t(i, [2, 9]), t(i, [2, 10]), t(i, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: D, 15: 53, 18: 56 }, t(P, [2, 3]), t(P, [2, 4]), t(P, [2, 5]), t(P, [2, 6]), t(P, [2, 7]), t(P, [2, 8]), { 8: F, 9: B, 11: V, 21: 58, 39: 59, 70: 63, 73: [1, 64], 75: [1, 65] }, { 8: F, 9: B, 11: V, 21: 66 }, { 8: F, 9: B, 11: V, 21: 67 }, { 8: F, 9: B, 11: V, 21: 68 }, { 8: F, 9: B, 11: V, 21: 69 }, { 8: F, 9: B, 11: V, 21: 70 }, { 8: F, 9: B, 10: [1, 71], 11: V, 21: 72 }, t(P, [2, 36]), { 35: [1, 73] }, { 37: [1, 74] }, t(P, [2, 39]), t(Q, [2, 46], { 18: 75, 10: D }), { 10: [1, 76] }, { 10: [1, 77] }, { 10: [1, 78] }, { 10: [1, 79] }, { 14: W, 42: ee, 58: Y, 77: [1, 83], 86: ne, 92: [1, 80], 94: [1, 81], 98: 82, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se, 117: 84 }, t(P, [2, 178]), t(P, [2, 179]), t(P, [2, 180]), t(P, [2, 181]), t(K, [2, 47]), t(K, [2, 49], { 44: [1, 96] }), t(_e, [2, 67], { 110: 109, 29: [1, 97], 42: g, 46: [1, 98], 48: [1, 99], 50: [1, 100], 52: [1, 101], 54: [1, 102], 56: [1, 103], 58: m, 61: [1, 104], 63: [1, 105], 65: [1, 106], 66: [1, 107], 68: [1, 108], 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 111: _, 112: R, 113: $ }), t(ce, [2, 174]), t(ce, [2, 135]), t(ce, [2, 136]), t(ce, [2, 137]), t(ce, [2, 138]), t(ce, [2, 139]), t(ce, [2, 140]), t(ce, [2, 141]), t(ce, [2, 142]), t(ce, [2, 143]), t(ce, [2, 144]), t(ce, [2, 145]), t(i, [2, 12]), t(i, [2, 18]), t(i, [2, 19]), { 9: [1, 110] }, t(Ee, [2, 26], { 18: 111, 10: D }), t(P, [2, 27]), { 40: 112, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, t(P, [2, 40]), t(P, [2, 41]), t(P, [2, 42]), t(Ae, [2, 71], { 71: 113, 60: [1, 115], 72: [1, 114] }), { 74: 116, 76: 117, 77: [1, 118], 78: [1, 119], 113: Ue, 116: Ge }, t([42, 58, 60, 72, 86, 99, 102, 103, 106, 108, 111, 112, 113], [2, 77]), t(P, [2, 28]), t(P, [2, 29]), t(P, [2, 30]), t(P, [2, 31]), t(P, [2, 32]), { 10: Ye, 12: De, 14: he, 27: H, 28: 122, 32: oe, 42: ve, 58: re, 73: ue, 77: [1, 124], 78: [1, 125], 80: 135, 81: fe, 82: de, 83: ge, 84: xe, 85: ke, 86: Ce, 87: Oe, 88: 123, 102: Me, 106: Te, 108: Xe, 111: Ne, 112: Ke, 113: je }, t(ut, s, { 5: 148 }), t(P, [2, 37]), t(P, [2, 38]), t(Q, [2, 45], { 42: ft }), { 42: g, 45: 150, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, { 99: [1, 151], 100: 152, 102: [1, 153] }, { 42: g, 45: 154, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, { 42: g, 45: 155, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, t(ot, [2, 100], { 10: [1, 156], 93: [1, 157] }), { 77: [1, 158] }, t(ot, [2, 108], { 117: 160, 10: [1, 159], 14: W, 42: ee, 58: Y, 86: ne, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se }), t(ot, [2, 110], { 10: [1, 161] }), t(We, [2, 176]), t(We, [2, 163]), t(We, [2, 164]), t(We, [2, 165]), t(We, [2, 166]), t(We, [2, 167]), t(We, [2, 168]), t(We, [2, 169]), t(We, [2, 170]), t(We, [2, 171]), t(We, [2, 172]), t(We, [2, 173]), { 42: g, 45: 162, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, { 30: 163, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 171, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 173, 48: [1, 172], 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 174, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 175, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 176, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 106: [1, 177] }, { 30: 178, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 179, 63: [1, 180], 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 181, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 182, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 30: 183, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, t(ce, [2, 175]), t(i, [2, 20]), t(Ee, [2, 25]), t(Q, [2, 43], { 18: 184, 10: D }), t(Ae, [2, 68], { 10: [1, 185] }), { 10: [1, 186] }, { 30: 187, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 75: [1, 188], 76: 189, 113: Ue, 116: Ge }, t(Ze, [2, 73]), t(Ze, [2, 75]), t(Ze, [2, 76]), t(Ze, [2, 161]), t(Ze, [2, 162]), { 8: F, 9: B, 10: Ye, 11: V, 12: De, 14: he, 21: 191, 27: H, 29: [1, 190], 32: oe, 42: ve, 58: re, 73: ue, 80: 135, 81: fe, 82: de, 83: ge, 84: xe, 85: ke, 86: Ce, 87: Oe, 88: 192, 102: Me, 106: Te, 108: Xe, 111: Ne, 112: Ke, 113: je }, t(dt, [2, 94]), t(dt, [2, 96]), t(dt, [2, 97]), t(dt, [2, 150]), t(dt, [2, 151]), t(dt, [2, 152]), t(dt, [2, 153]), t(dt, [2, 154]), t(dt, [2, 155]), t(dt, [2, 156]), t(dt, [2, 157]), t(dt, [2, 158]), t(dt, [2, 159]), t(dt, [2, 160]), t(dt, [2, 83]), t(dt, [2, 84]), t(dt, [2, 85]), t(dt, [2, 86]), t(dt, [2, 87]), t(dt, [2, 88]), t(dt, [2, 89]), t(dt, [2, 90]), t(dt, [2, 91]), t(dt, [2, 92]), t(dt, [2, 93]), { 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 32: [1, 193], 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, { 10: D, 18: 194 }, { 10: [1, 195], 42: g, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 109, 111: _, 112: R, 113: $ }, { 10: [1, 196] }, { 10: [1, 197], 103: [1, 198] }, t(zt, [2, 121]), { 10: [1, 199], 42: g, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 109, 111: _, 112: R, 113: $ }, { 10: [1, 200], 42: g, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 109, 111: _, 112: R, 113: $ }, { 77: [1, 201] }, t(ot, [2, 102], { 10: [1, 202] }), t(ot, [2, 104], { 10: [1, 203] }), { 77: [1, 204] }, t(We, [2, 177]), { 77: [1, 205], 95: [1, 206] }, t(K, [2, 50], { 110: 109, 42: g, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 111: _, 112: R, 113: $ }), { 31: [1, 207], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(yr, [2, 79]), t(yr, [2, 81]), t(yr, [2, 82]), t(yr, [2, 146]), t(yr, [2, 147]), t(yr, [2, 148]), t(yr, [2, 149]), { 47: [1, 209], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 30: 210, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 49: [1, 211], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 51: [1, 212], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 53: [1, 213], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 55: [1, 214], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 58: [1, 215] }, { 62: [1, 216], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 64: [1, 217], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 30: 218, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, { 31: [1, 219], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 65: Qe, 67: [1, 220], 69: [1, 221], 79: 208, 113: He, 114: kt, 115: st }, { 65: Qe, 67: [1, 223], 69: [1, 222], 79: 208, 113: He, 114: kt, 115: st }, t(Q, [2, 44], { 42: ft }), t(Ae, [2, 70]), t(Ae, [2, 69]), { 60: [1, 224], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(Ae, [2, 72]), t(Ze, [2, 74]), { 30: 225, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, t(ut, s, { 5: 226 }), t(dt, [2, 95]), t(P, [2, 35]), { 41: 227, 42: g, 43: 39, 45: 40, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, { 10: Qt, 58: wr, 81: tr, 89: 228, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 10: Qt, 58: wr, 81: tr, 89: 239, 101: [1, 240], 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 10: Qt, 58: wr, 81: tr, 89: 241, 101: [1, 242], 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 102: [1, 243] }, { 10: Qt, 58: wr, 81: tr, 89: 244, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 42: g, 45: 245, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $ }, t(ot, [2, 101]), { 77: [1, 246] }, { 77: [1, 247], 95: [1, 248] }, t(ot, [2, 109]), t(ot, [2, 111], { 10: [1, 249] }), t(ot, [2, 112]), t(_e, [2, 51]), t(yr, [2, 80]), t(_e, [2, 52]), { 49: [1, 250], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(_e, [2, 59]), t(_e, [2, 54]), t(_e, [2, 55]), t(_e, [2, 56]), { 106: [1, 251] }, t(_e, [2, 58]), t(_e, [2, 60]), { 64: [1, 252], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, t(_e, [2, 62]), t(_e, [2, 63]), t(_e, [2, 65]), t(_e, [2, 64]), t(_e, [2, 66]), t([10, 42, 58, 86, 99, 102, 103, 106, 108, 111, 112, 113], [2, 78]), { 31: [1, 253], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 32: [1, 254], 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, t(K, [2, 48]), t(ot, [2, 114], { 103: qe }), t(te, [2, 123], { 105: 256, 10: Qt, 58: wr, 81: tr, 102: On, 106: Br, 107: Xr, 108: xr, 109: En }), t(Le, [2, 125]), t(Le, [2, 127]), t(Le, [2, 128]), t(Le, [2, 129]), t(Le, [2, 130]), t(Le, [2, 131]), t(Le, [2, 132]), t(Le, [2, 133]), t(Le, [2, 134]), t(ot, [2, 115], { 103: qe }), { 10: [1, 257] }, t(ot, [2, 116], { 103: qe }), { 10: [1, 258] }, t(zt, [2, 122]), t(ot, [2, 98], { 103: qe }), t(ot, [2, 99], { 110: 109, 42: g, 58: m, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 111: _, 112: R, 113: $ }), t(ot, [2, 103]), t(ot, [2, 105], { 10: [1, 259] }), t(ot, [2, 106]), { 95: [1, 260] }, { 49: [1, 261] }, { 60: [1, 262] }, { 64: [1, 263] }, { 8: F, 9: B, 11: V, 21: 264 }, t(P, [2, 34]), { 10: Qt, 58: wr, 81: tr, 102: On, 104: 265, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, t(Le, [2, 126]), { 14: W, 42: ee, 58: Y, 86: ne, 98: 266, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se, 117: 84 }, { 14: W, 42: ee, 58: Y, 86: ne, 98: 267, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se, 117: 84 }, { 95: [1, 268] }, t(ot, [2, 113]), t(_e, [2, 53]), { 30: 269, 65: Qe, 77: pt, 78: tt, 79: 164, 113: He, 114: kt, 115: st }, t(_e, [2, 61]), t(ut, s, { 5: 270 }), t(te, [2, 124], { 105: 256, 10: Qt, 58: wr, 81: tr, 102: On, 106: Br, 107: Xr, 108: xr, 109: En }), t(ot, [2, 119], { 117: 160, 10: [1, 271], 14: W, 42: ee, 58: Y, 86: ne, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se }), t(ot, [2, 120], { 117: 160, 10: [1, 272], 14: W, 42: ee, 58: Y, 86: ne, 102: ie, 103: U, 106: Z, 108: G, 111: j, 112: ae, 113: se }), t(ot, [2, 107]), { 31: [1, 273], 65: Qe, 79: 208, 113: He, 114: kt, 115: st }, { 6: 11, 7: 12, 8: a, 9: o, 10: l, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: h, 32: [1, 274], 33: 24, 34: f, 36: d, 38: p, 40: 28, 41: 38, 42: g, 43: 39, 45: 40, 58: m, 81: v, 82: y, 83: b, 84: w, 85: O, 86: S, 99: C, 102: T, 103: A, 106: E, 108: L, 110: 41, 111: _, 112: R, 113: $, 118: k, 119: N, 120: M, 121: I }, { 10: Qt, 58: wr, 81: tr, 89: 275, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, { 10: Qt, 58: wr, 81: tr, 89: 276, 102: On, 104: 229, 105: 230, 106: Br, 107: Xr, 108: xr, 109: En }, t(_e, [2, 57]), t(P, [2, 33]), t(ot, [2, 117], { 103: qe }), t(ot, [2, 118], { 103: qe })], defaultActions: {}, parseError: /* @__PURE__ */ x(function(rt, St) { if (St.recoverable) @@ -68212,36 +68234,36 @@ var d$t = /* @__PURE__ */ x(() => { } }, "parseError"), parse: /* @__PURE__ */ x(function(rt) { - var St = this, Tt = [0], Je = [], ar = [null], me = [], _n = this.table, pe = "", ur = 0, nl = 0, ga = 2, a$ = 1, Xve = me.slice.call(arguments, 1), Fi = Object.create(this.lexer), Gf = { yy: {} }; - for (var eE in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, eE) && (Gf.yy[eE] = this.yy[eE]); - Fi.setInput(rt, Gf.yy), Gf.yy.lexer = Fi, Gf.yy.parser = this, typeof Fi.yylloc > "u" && (Fi.yylloc = {}); - var tE = Fi.yylloc; - me.push(tE); - var Zve = Fi.options && Fi.options.ranges; + var St = this, Tt = [0], Je = [], ar = [null], me = [], _n = this.table, pe = "", ur = 0, nl = 0, ga = 2, a$ = 1, Zve = me.slice.call(arguments, 1), zi = Object.create(this.lexer), Gf = { yy: {} }; + for (var tE in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, tE) && (Gf.yy[tE] = this.yy[tE]); + zi.setInput(rt, Gf.yy), Gf.yy.lexer = zi, Gf.yy.parser = this, typeof zi.yylloc > "u" && (zi.yylloc = {}); + var rE = zi.yylloc; + me.push(rE); + var jve = zi.options && zi.options.ranges; typeof Gf.yy.parseError == "function" ? this.parseError = Gf.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function jve(Ya) { - Tt.length = Tt.length - 2 * Ya, ar.length = ar.length - Ya, me.length = me.length - Ya; + function Kve(Wa) { + Tt.length = Tt.length - 2 * Wa, ar.length = ar.length - Wa, me.length = me.length - Wa; } - x(jve, "popStack"); + x(Kve, "popStack"); function o$() { - var Ya; - return Ya = Je.pop() || Fi.lex() || a$, typeof Ya != "number" && (Ya instanceof Array && (Je = Ya, Ya = Je.pop()), Ya = St.symbols_[Ya] || Ya), Ya; + var Wa; + return Wa = Je.pop() || zi.lex() || a$, typeof Wa != "number" && (Wa instanceof Array && (Je = Wa, Wa = Je.pop()), Wa = St.symbols_[Wa] || Wa), Wa; } x(o$, "lex"); - for (var ma, Hf, bo, rE, sp = {}, tw, su, l$, rw; ; ) { + for (var ma, Hf, bo, nE, sp = {}, tw, su, l$, rw; ; ) { if (Hf = Tt[Tt.length - 1], this.defaultActions[Hf] ? bo = this.defaultActions[Hf] : ((ma === null || typeof ma > "u") && (ma = o$()), bo = _n[Hf] && _n[Hf][ma]), typeof bo > "u" || !bo.length || !bo[0]) { - var nE = ""; + var iE = ""; rw = []; for (tw in _n[Hf]) this.terminals_[tw] && tw > ga && rw.push("'" + this.terminals_[tw] + "'"); - Fi.showPosition ? nE = "Parse error on line " + (ur + 1) + `: -` + Fi.showPosition() + ` -Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : nE = "Parse error on line " + (ur + 1) + ": Unexpected " + (ma == a$ ? "end of input" : "'" + (this.terminals_[ma] || ma) + "'"), this.parseError(nE, { - text: Fi.match, + zi.showPosition ? iE = "Parse error on line " + (ur + 1) + `: +` + zi.showPosition() + ` +Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : iE = "Parse error on line " + (ur + 1) + ": Unexpected " + (ma == a$ ? "end of input" : "'" + (this.terminals_[ma] || ma) + "'"), this.parseError(iE, { + text: zi.match, token: this.terminals_[ma] || ma, - line: Fi.yylineno, - loc: tE, + line: zi.yylineno, + loc: rE, expected: rw }); } @@ -68249,7 +68271,7 @@ Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : nE throw new Error("Parse Error: multiple actions possible at state: " + Hf + ", token: " + ma); switch (bo[0]) { case 1: - Tt.push(ma), ar.push(Fi.yytext), me.push(Fi.yylloc), Tt.push(bo[1]), ma = null, nl = Fi.yyleng, pe = Fi.yytext, ur = Fi.yylineno, tE = Fi.yylloc; + Tt.push(ma), ar.push(zi.yytext), me.push(zi.yylloc), Tt.push(bo[1]), ma = null, nl = zi.yyleng, pe = zi.yytext, ur = zi.yylineno, rE = zi.yylloc; break; case 2: if (su = this.productions_[bo[1]][1], sp.$ = ar[ar.length - su], sp._$ = { @@ -68257,10 +68279,10 @@ Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : nE last_line: me[me.length - 1].last_line, first_column: me[me.length - (su || 1)].first_column, last_column: me[me.length - 1].last_column - }, Zve && (sp._$.range = [ + }, jve && (sp._$.range = [ me[me.length - (su || 1)].range[0], me[me.length - 1].range[1] - ]), rE = this.performAction.apply(sp, [ + ]), nE = this.performAction.apply(sp, [ pe, nl, ur, @@ -68268,8 +68290,8 @@ Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : nE bo[1], ar, me - ].concat(Xve)), typeof rE < "u") - return rE; + ].concat(Zve)), typeof nE < "u") + return nE; su && (Tt = Tt.slice(0, -1 * su * 2), ar = ar.slice(0, -1 * su), me = me.slice(0, -1 * su)), Tt.push(this.productions_[bo[1]][0]), ar.push(sp.$), me.push(sp._$), l$ = _n[Tt[Tt.length - 2]][Tt[Tt.length - 1]], Tt.push(l$); break; case 3: @@ -68683,11 +68705,11 @@ Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : nE } return x(cr, "Parser"), cr.prototype = ze, ze.Parser = cr, new cr(); }(); -$L.parser = $L; -var v$t = $L, y$t = /* @__PURE__ */ x((t, e) => { - const r = oie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); +BL.parser = BL; +var y$t = BL, b$t = /* @__PURE__ */ x((t, e) => { + const r = lie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), b$t = /* @__PURE__ */ x((t) => `.label { +}, "fade"), x$t = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -68767,7 +68789,7 @@ var v$t = $L, y$t = /* @__PURE__ */ x((t, e) => { /* For html labels only */ .labelBkg { - background-color: ${y$t(t.edgeLabelBackground, 0.5)}; + background-color: ${b$t(t.edgeLabelBackground, 0.5)}; // background-color: } @@ -68807,47 +68829,47 @@ var v$t = $L, y$t = /* @__PURE__ */ x((t, e) => { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), x$t = b$t, w$t = { - parser: v$t, - db: A_, - renderer: m$t, - styles: x$t, +`, "getStyles"), w$t = x$t, O$t = { + parser: y$t, + db: L_, + renderer: v$t, + styles: w$t, init: /* @__PURE__ */ x((t) => { - t.flowchart || (t.flowchart = {}), t.layout && yU({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yU({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), A_.clear(), A_.setGen("gen-2"); + t.flowchart || (t.flowchart = {}), t.layout && yU({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yU({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), L_.clear(), L_.setGen("gen-2"); }, "init") }; const uI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: w$t -}, Symbol.toStringTag, { value: "Module" })), O$t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -function k$t(t) { - return typeof t == "string" && O$t.test(t); + diagram: O$t +}, Symbol.toStringTag, { value: "Module" })), k$t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +function S$t(t) { + return typeof t == "string" && k$t.test(t); } const Ji = []; for (let t = 0; t < 256; ++t) Ji.push((t + 256).toString(16).slice(1)); -function S$t(t, e = 0) { +function T$t(t, e = 0) { return Ji[t[e + 0]] + Ji[t[e + 1]] + Ji[t[e + 2]] + Ji[t[e + 3]] + "-" + Ji[t[e + 4]] + Ji[t[e + 5]] + "-" + Ji[t[e + 6]] + Ji[t[e + 7]] + "-" + Ji[t[e + 8]] + Ji[t[e + 9]] + "-" + Ji[t[e + 10]] + Ji[t[e + 11]] + Ji[t[e + 12]] + Ji[t[e + 13]] + Ji[t[e + 14]] + Ji[t[e + 15]]; } -function T$t(t) { - if (!k$t(t)) +function C$t(t) { + if (!S$t(t)) throw TypeError("Invalid UUID"); let e; const r = new Uint8Array(16); return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r; } -function C$t(t) { +function E$t(t) { t = unescape(encodeURIComponent(t)); const e = []; for (let r = 0; r < t.length; ++r) e.push(t.charCodeAt(r)); return e; } -const E$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", _$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function A$t(t, e, r) { +const _$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", A$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +function L$t(t, e, r) { function n(i, s, a, o) { var l; - if (typeof i == "string" && (i = C$t(i)), typeof s == "string" && (s = T$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) + if (typeof i == "string" && (i = E$t(i)), typeof s == "string" && (s = C$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); let u = new Uint8Array(16 + i.length); if (u.set(s), u.set(i, s.length), u = r(u), u[6] = u[6] & 15 | e, u[8] = u[8] & 63 | 128, a) { @@ -68856,15 +68878,15 @@ function A$t(t, e, r) { a[o + h] = u[h]; return a; } - return S$t(u); + return T$t(u); } try { n.name = t; } catch { } - return n.DNS = E$t, n.URL = _$t, n; + return n.DNS = _$t, n.URL = A$t, n; } -function L$t(t, e, r, n) { +function R$t(t, e, r, n) { switch (t) { case 0: return e & r ^ ~e & n; @@ -68876,10 +68898,10 @@ function L$t(t, e, r, n) { return e ^ r ^ n; } } -function L_(t, e) { +function R_(t, e) { return t << e | t >>> 32 - e; } -function R$t(t) { +function M$t(t) { const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; if (typeof t == "string") { const a = unescape(encodeURIComponent(t)); @@ -68902,22 +68924,22 @@ function R$t(t) { for (let p = 0; p < 16; ++p) o[p] = s[a][p]; for (let p = 16; p < 80; ++p) - o[p] = L_(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); + o[p] = R_(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); let l = r[0], u = r[1], h = r[2], f = r[3], d = r[4]; for (let p = 0; p < 80; ++p) { - const g = Math.floor(p / 20), m = L_(l, 5) + L$t(g, u, h, f) + d + e[g] + o[p] >>> 0; - d = f, f = h, h = L_(u, 30) >>> 0, u = l, l = m; + const g = Math.floor(p / 20), m = R_(l, 5) + R$t(g, u, h, f) + d + e[g] + o[p] >>> 0; + d = f, f = h, h = R_(u, 30) >>> 0, u = l, l = m; } r[0] = r[0] + l >>> 0, r[1] = r[1] + u >>> 0, r[2] = r[2] + h >>> 0, r[3] = r[3] + f >>> 0, r[4] = r[4] + d >>> 0; } return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255]; } -const M$t = A$t("v5", 80, R$t), D$t = M$t; -var BL = function() { - var t = /* @__PURE__ */ x(function(L, E, A, _) { - for (A = A || {}, _ = L.length; _--; A[L[_]] = E) +const D$t = L$t("v5", 80, M$t), N$t = D$t; +var FL = function() { + var t = /* @__PURE__ */ x(function(A, E, L, _) { + for (L = L || {}, _ = A.length; _--; L[A[_]] = E) ; - return A; + return L; }, "o"), e = [6, 8, 10, 20, 22, 24, 26, 27, 28], r = [1, 10], n = [1, 11], i = [1, 12], s = [1, 13], a = [1, 14], o = [1, 15], l = [1, 21], u = [1, 22], h = [1, 23], f = [1, 24], d = [1, 25], p = [6, 8, 10, 13, 15, 18, 19, 20, 22, 24, 26, 27, 28, 41, 42, 43, 44, 45], g = [1, 34], m = [27, 28, 46, 47], v = [41, 42, 43, 44, 45], y = [17, 34], b = [1, 54], w = [1, 53], O = [17, 34, 36, 38], S = { trace: /* @__PURE__ */ x(function() { }, "trace"), @@ -68925,7 +68947,7 @@ var BL = function() { symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, ":": 13, role: 14, BLOCK_START: 15, attributes: 16, BLOCK_STOP: 17, SQS: 18, SQE: 19, title: 20, title_value: 21, acc_title: 22, acc_title_value: 23, acc_descr: 24, acc_descr_value: 25, acc_descr_multiline_value: 26, ALPHANUM: 27, ENTITY_NAME: 28, attribute: 29, attributeType: 30, attributeName: 31, attributeKeyTypeList: 32, attributeComment: 33, ATTRIBUTE_WORD: 34, attributeKeyType: 35, COMMA: 36, ATTRIBUTE_KEY: 37, COMMENT: 38, cardinality: 39, relType: 40, ZERO_OR_ONE: 41, ZERO_OR_MORE: 42, ONE_OR_MORE: 43, ONLY_ONE: 44, MD_PARENT: 45, NON_IDENTIFYING: 46, IDENTIFYING: 47, WORD: 48, $accept: 0, $end: 1 }, terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: ":", 15: "BLOCK_START", 17: "BLOCK_STOP", 18: "SQS", 19: "SQE", 20: "title", 21: "title_value", 22: "acc_title", 23: "acc_title_value", 24: "acc_descr", 25: "acc_descr_value", 26: "acc_descr_multiline_value", 27: "ALPHANUM", 28: "ENTITY_NAME", 34: "ATTRIBUTE_WORD", 36: "COMMA", 37: "ATTRIBUTE_KEY", 38: "COMMENT", 41: "ZERO_OR_ONE", 42: "ZERO_OR_MORE", 43: "ONE_OR_MORE", 44: "ONLY_ONE", 45: "MD_PARENT", 46: "NON_IDENTIFYING", 47: "IDENTIFYING", 48: "WORD" }, productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 4], [9, 3], [9, 1], [9, 7], [9, 6], [9, 4], [9, 2], [9, 2], [9, 2], [9, 1], [11, 1], [11, 1], [16, 1], [16, 2], [29, 2], [29, 3], [29, 3], [29, 4], [30, 1], [31, 1], [32, 1], [32, 3], [35, 1], [33, 1], [12, 3], [39, 1], [39, 1], [39, 1], [39, 1], [39, 1], [40, 1], [40, 1], [14, 1], [14, 1], [14, 1]], - performAction: /* @__PURE__ */ x(function(E, A, _, R, $, k, N) { + performAction: /* @__PURE__ */ x(function(E, L, _, R, $, k, N) { var M = k.length - 1; switch ($) { case 1: @@ -69040,16 +69062,16 @@ var BL = function() { }, "anonymous"), table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 20: r, 22: n, 24: i, 26: s, 27: a, 28: o }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 16, 11: 9, 20: r, 22: n, 24: i, 26: s, 27: a, 28: o }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 11], { 12: 17, 39: 20, 15: [1, 18], 18: [1, 19], 41: l, 42: u, 43: h, 44: f, 45: d }), { 21: [1, 26] }, { 23: [1, 27] }, { 25: [1, 28] }, t(e, [2, 18]), t(p, [2, 19]), t(p, [2, 20]), t(e, [2, 4]), { 11: 29, 27: a, 28: o }, { 16: 30, 17: [1, 31], 29: 32, 30: 33, 34: g }, { 11: 35, 27: a, 28: o }, { 40: 36, 46: [1, 37], 47: [1, 38] }, t(m, [2, 34]), t(m, [2, 35]), t(m, [2, 36]), t(m, [2, 37]), t(m, [2, 38]), t(e, [2, 15]), t(e, [2, 16]), t(e, [2, 17]), { 13: [1, 39] }, { 17: [1, 40] }, t(e, [2, 10]), { 16: 41, 17: [2, 21], 29: 32, 30: 33, 34: g }, { 31: 42, 34: [1, 43] }, { 34: [2, 27] }, { 19: [1, 44] }, { 39: 45, 41: l, 42: u, 43: h, 44: f, 45: d }, t(v, [2, 39]), t(v, [2, 40]), { 14: 46, 27: [1, 49], 28: [1, 48], 48: [1, 47] }, t(e, [2, 9]), { 17: [2, 22] }, t(y, [2, 23], { 32: 50, 33: 51, 35: 52, 37: b, 38: w }), t([17, 34, 37, 38], [2, 28]), t(e, [2, 14], { 15: [1, 55] }), t([27, 28], [2, 33]), t(e, [2, 8]), t(e, [2, 41]), t(e, [2, 42]), t(e, [2, 43]), t(y, [2, 24], { 33: 56, 36: [1, 57], 38: w }), t(y, [2, 25]), t(O, [2, 29]), t(y, [2, 32]), t(O, [2, 31]), { 16: 58, 17: [1, 59], 29: 32, 30: 33, 34: g }, t(y, [2, 26]), { 35: 60, 37: b }, { 17: [1, 61] }, t(e, [2, 13]), t(O, [2, 30]), t(e, [2, 12])], defaultActions: { 34: [2, 27], 41: [2, 22] }, - parseError: /* @__PURE__ */ x(function(E, A) { - if (A.recoverable) + parseError: /* @__PURE__ */ x(function(E, L) { + if (L.recoverable) this.trace(E); else { var _ = new Error(E); - throw _.hash = A, _; + throw _.hash = L, _; } }, "parseError"), parse: /* @__PURE__ */ x(function(E) { - var A = this, _ = [0], R = [], $ = [null], k = [], N = this.table, M = "", I = 0, D = 0, P = 2, F = 1, B = k.slice.call(arguments, 1), V = Object.create(this.lexer), Q = { yy: {} }; + var L = this, _ = [0], R = [], $ = [null], k = [], N = this.table, M = "", I = 0, D = 0, P = 2, F = 1, B = k.slice.call(arguments, 1), V = Object.create(this.lexer), Q = { yy: {} }; for (var W in this.yy) Object.prototype.hasOwnProperty.call(this.yy, W) && (Q.yy[W] = this.yy[W]); V.setInput(E, Q.yy), Q.yy.lexer = V, Q.yy.parser = this, typeof V.yylloc > "u" && (V.yylloc = {}); @@ -69063,7 +69085,7 @@ var BL = function() { x(ne, "popStack"); function ie() { var Ae; - return Ae = R.pop() || V.lex() || F, typeof Ae != "number" && (Ae instanceof Array && (R = Ae, Ae = R.pop()), Ae = A.symbols_[Ae] || Ae), Ae; + return Ae = R.pop() || V.lex() || F, typeof Ae != "number" && (Ae instanceof Array && (R = Ae, Ae = R.pop()), Ae = L.symbols_[Ae] || Ae), Ae; } x(ie, "lex"); for (var U, Z, G, j, ae = {}, se, K, _e, ce; ; ) { @@ -69116,16 +69138,16 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = return !0; }, "parse") }, C = /* @__PURE__ */ function() { - var L = { + var A = { EOF: 1, - parseError: /* @__PURE__ */ x(function(A, _) { + parseError: /* @__PURE__ */ x(function(L, _) { if (this.yy.parser) - this.yy.parser.parseError(A, _); + this.yy.parser.parseError(L, _); else - throw new Error(A); + throw new Error(L); }, "parseError"), - setInput: /* @__PURE__ */ x(function(E, A) { - return this.yy = A || this.yy || {}, this._input = E, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { + setInput: /* @__PURE__ */ x(function(E, L) { + return this.yy = L || this.yy || {}, this._input = E, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, @@ -69135,12 +69157,12 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = input: /* @__PURE__ */ x(function() { var E = this._input[0]; this.yytext += E, this.yyleng++, this.offset++, this.match += E, this.matched += E; - var A = E.match(/(?:\r\n?|\n).*/g); - return A ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), E; + var L = E.match(/(?:\r\n?|\n).*/g); + return L ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), E; }, "input"), unput: /* @__PURE__ */ x(function(E) { - var A = E.length, _ = E.split(/(?:\r\n?|\n)/g); - this._input = E + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - A), this.offset -= A; + var L = E.length, _ = E.split(/(?:\r\n?|\n)/g); + this._input = E + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - L), this.offset -= L; var R = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), _.length - 1 && (this.yylineno -= _.length - 1); var $ = this.yylloc.range; @@ -69148,8 +69170,8 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, - last_column: _ ? (_.length === R.length ? this.yylloc.first_column : 0) + R[R.length - _.length].length - _[0].length : this.yylloc.first_column - A - }, this.options.ranges && (this.yylloc.range = [$[0], $[0] + this.yyleng - A]), this.yyleng = this.yytext.length, this; + last_column: _ ? (_.length === R.length ? this.yylloc.first_column : 0) + R[R.length - _.length].length - _[0].length : this.yylloc.first_column - L + }, this.options.ranges && (this.yylloc.range = [$[0], $[0] + this.yyleng - L]), this.yyleng = this.yytext.length, this; }, "unput"), more: /* @__PURE__ */ x(function() { return this._more = !0, this; @@ -69178,11 +69200,11 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = return E.length < 20 && (E += this._input.substr(0, 20 - E.length)), (E.substr(0, 20) + (E.length > 20 ? "..." : "")).replace(/\n/g, ""); }, "upcomingInput"), showPosition: /* @__PURE__ */ x(function() { - var E = this.pastInput(), A = new Array(E.length + 1).join("-"); + var E = this.pastInput(), L = new Array(E.length + 1).join("-"); return E + this.upcomingInput() + ` -` + A + "^"; +` + L + "^"; }, "showPosition"), - test_match: /* @__PURE__ */ x(function(E, A) { + test_match: /* @__PURE__ */ x(function(E, L) { var _, R, $; if (this.options.backtrack_lexer && ($ = { yylineno: this.yylineno, @@ -69208,7 +69230,7 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: R ? R[R.length - 1].length - R[R.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + E[0].length - }, this.yytext += E[0], this.match += E[0], this.matches = E, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(E[0].length), this.matched += E[0], _ = this.performAction.call(this, this.yy, this, A, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), _) + }, this.yytext += E[0], this.match += E[0], this.matches = E, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(E[0].length), this.matched += E[0], _ = this.performAction.call(this, this.yy, this, L, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), _) return _; if (this._backtrack) { for (var k in $) @@ -69221,22 +69243,22 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = if (this.done) return this.EOF; this._input || (this.done = !0); - var E, A, _, R; + var E, L, _, R; this._more || (this.yytext = "", this.match = ""); for (var $ = this._currentRules(), k = 0; k < $.length; k++) - if (_ = this._input.match(this.rules[$[k]]), _ && (!A || _[0].length > A[0].length)) { - if (A = _, R = k, this.options.backtrack_lexer) { + if (_ = this._input.match(this.rules[$[k]]), _ && (!L || _[0].length > L[0].length)) { + if (L = _, R = k, this.options.backtrack_lexer) { if (E = this.test_match(_, $[k]), E !== !1) return E; if (this._backtrack) { - A = !1; + L = !1; continue; } else return !1; } else if (!this.options.flex) break; } - return A ? (E = this.test_match(A, $[R]), E !== !1 ? E : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. + return L ? (E = this.test_match(L, $[R]), E !== !1 ? E : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. ` + this.showPosition(), { text: "", token: null, @@ -69244,30 +69266,30 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = }); }, "next"), lex: /* @__PURE__ */ x(function() { - var A = this.next(); - return A || this.lex(); + var L = this.next(); + return L || this.lex(); }, "lex"), - begin: /* @__PURE__ */ x(function(A) { - this.conditionStack.push(A); + begin: /* @__PURE__ */ x(function(L) { + this.conditionStack.push(L); }, "begin"), popState: /* @__PURE__ */ x(function() { - var A = this.conditionStack.length - 1; - return A > 0 ? this.conditionStack.pop() : this.conditionStack[0]; + var L = this.conditionStack.length - 1; + return L > 0 ? this.conditionStack.pop() : this.conditionStack[0]; }, "popState"), _currentRules: /* @__PURE__ */ x(function() { return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules; }, "_currentRules"), - topState: /* @__PURE__ */ x(function(A) { - return A = this.conditionStack.length - 1 - Math.abs(A || 0), A >= 0 ? this.conditionStack[A] : "INITIAL"; + topState: /* @__PURE__ */ x(function(L) { + return L = this.conditionStack.length - 1 - Math.abs(L || 0), L >= 0 ? this.conditionStack[L] : "INITIAL"; }, "topState"), - pushState: /* @__PURE__ */ x(function(A) { - this.begin(A); + pushState: /* @__PURE__ */ x(function(L) { + this.begin(L); }, "pushState"), stateStackSize: /* @__PURE__ */ x(function() { return this.conditionStack.length; }, "stateStackSize"), options: { "case-insensitive": !0 }, - performAction: /* @__PURE__ */ x(function(A, _, R, $) { + performAction: /* @__PURE__ */ x(function(L, _, R, $) { switch (R) { case 0: return this.begin("acc_title"), 22; @@ -69388,7 +69410,7 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:,)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:(.*?)[~](.*?)*[~])/i, /^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i, /^(?:.)/i, /^(?:$)/i], conditions: { acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [14, 15, 16, 17, 18, 19, 20, 21, 22], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55], inclusive: !0 } } }; - return L; + return A; }(); S.lexer = C; function T() { @@ -69396,23 +69418,23 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = } return x(T, "Parser"), T.prototype = S, S.Parser = T, new T(); }(); -BL.parser = BL; -var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { +FL.parser = FL; +var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { ZERO_OR_ONE: "ZERO_OR_ONE", ZERO_OR_MORE: "ZERO_OR_MORE", ONE_OR_MORE: "ONE_OR_MORE", ONLY_ONE: "ONLY_ONE", MD_PARENT: "MD_PARENT" -}, P$t = { +}, $$t = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" -}, _fe = /* @__PURE__ */ x(function(t, e = void 0) { +}, Afe = /* @__PURE__ */ x(function(t, e = void 0) { return yd.has(t) ? !yd.get(t).alias && e && (yd.get(t).alias = e, X.info(`Add alias '${e}' to entity '${t}'`)) : (yd.set(t, { attributes: [], alias: e }), X.info("Added new entity :", t)), yd.get(t); -}, "addEntity"), $$t = /* @__PURE__ */ x(() => yd, "getEntities"), B$t = /* @__PURE__ */ x(function(t, e) { - let r = _fe(t), n; +}, "addEntity"), B$t = /* @__PURE__ */ x(() => yd, "getEntities"), F$t = /* @__PURE__ */ x(function(t, e) { + let r = Afe(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), X.debug("Added attribute ", e[n].attributeName); -}, "addAttributes"), F$t = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addAttributes"), z$t = /* @__PURE__ */ x(function(t, e, r, n) { let i = { entityA: t, roleA: e, @@ -69420,18 +69442,18 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { relSpec: n }; hI.push(i), X.debug("Added new relationship :", i); -}, "addRelationship"), z$t = /* @__PURE__ */ x(() => hI, "getRelationships"), V$t = /* @__PURE__ */ x(function() { +}, "addRelationship"), V$t = /* @__PURE__ */ x(() => hI, "getRelationships"), U$t = /* @__PURE__ */ x(function() { yd = /* @__PURE__ */ new Map(), hI = [], Xi(); -}, "clear"), U$t = { - Cardinality: I$t, - Identification: P$t, +}, "clear"), q$t = { + Cardinality: P$t, + Identification: $$t, getConfig: /* @__PURE__ */ x(() => be().er, "getConfig"), - addEntity: _fe, - addAttributes: B$t, - getEntities: $$t, - addRelationship: F$t, - getRelationships: z$t, - clear: V$t, + addEntity: Afe, + addAttributes: F$t, + getEntities: B$t, + addRelationship: z$t, + getRelationships: V$t, + clear: U$t, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, @@ -69449,17 +69471,17 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { ZERO_OR_MORE_END: "ZERO_OR_MORE_END", MD_PARENT_END: "MD_PARENT_END", MD_PARENT_START: "MD_PARENT_START" -}, q$t = /* @__PURE__ */ x(function(t, e) { +}, Q$t = /* @__PURE__ */ x(function(t, e) { let r; t.append("defs").append("marker").attr("id", al.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", al.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", al.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", al.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", al.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", al.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18"); }, "insertMarkers"), ol = { ERMarkers: al, - insertMarkers: q$t -}, Q$t = /[^\dA-Za-z](\W)*/g, wi = {}, L2 = /* @__PURE__ */ new Map(), Y$t = /* @__PURE__ */ x(function(t) { + insertMarkers: Q$t +}, Y$t = /[^\dA-Za-z](\W)*/g, wi = {}, L2 = /* @__PURE__ */ new Map(), W$t = /* @__PURE__ */ x(function(t) { const e = Object.keys(t); for (const r of e) wi[r] = t[r]; -}, "setConf"), W$t = /* @__PURE__ */ x((t, e, r) => { +}, "setConf"), G$t = /* @__PURE__ */ x((t, e, r) => { const n = wi.entityPadding / 3, i = wi.entityPadding / 3, s = wi.fontSize * 0.85, a = e.node().getBBox(), o = []; let l = !1, u = !1, h = 0, f = 0, d = 0, p = 0, g = a.height + n * 2, m = 1; r.forEach((w) => { @@ -69467,10 +69489,10 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { }), r.forEach((w) => { const O = `${e.node().id}-attr-${m}`; let S = 0; - const C = ny(w.attributeType), T = t.append("text").classed("er entityLabel", !0).attr("id", `${O}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", be().fontFamily).style("font-size", s + "px").text(C), L = t.append("text").classed("er entityLabel", !0).attr("id", `${O}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", be().fontFamily).style("font-size", s + "px").text(w.attributeName), E = {}; - E.tn = T, E.nn = L; - const A = T.node().getBBox(), _ = L.node().getBBox(); - if (h = Math.max(h, A.width), f = Math.max(f, _.width), S = Math.max(A.height, _.height), l) { + const C = ny(w.attributeType), T = t.append("text").classed("er entityLabel", !0).attr("id", `${O}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", be().fontFamily).style("font-size", s + "px").text(C), A = t.append("text").classed("er entityLabel", !0).attr("id", `${O}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", be().fontFamily).style("font-size", s + "px").text(w.attributeName), E = {}; + E.tn = T, E.nn = A; + const L = T.node().getBBox(), _ = A.node().getBBox(); + if (h = Math.max(h, L.width), f = Math.max(f, _.width), S = Math.max(L.height, _.height), l) { const R = w.attributeKeyTypeList !== void 0 ? w.attributeKeyTypeList.join(",") : "", $ = t.append("text").classed("er entityLabel", !0).attr("id", `${O}-key`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", be().fontFamily).style("font-size", s + "px").text(R); E.kn = $; const k = $.node().getBBox(); @@ -69509,13 +69531,13 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { o.forEach((C) => { const T = O + n + C.height / 2; C.tn.attr("transform", "translate(" + i + "," + T + ")"); - const L = t.insert("rect", "#" + C.tn.node().id).classed(`er ${S}`, !0).attr("x", 0).attr("y", O).attr("width", h + i * 2 + w).attr("height", C.height + n * 2), E = parseFloat(L.attr("x")) + parseFloat(L.attr("width")); + const A = t.insert("rect", "#" + C.tn.node().id).classed(`er ${S}`, !0).attr("x", 0).attr("y", O).attr("width", h + i * 2 + w).attr("height", C.height + n * 2), E = parseFloat(A.attr("x")) + parseFloat(A.attr("width")); C.nn.attr( "transform", "translate(" + (E + i) + "," + T + ")" ); - const A = t.insert("rect", "#" + C.nn.node().id).classed(`er ${S}`, !0).attr("x", E).attr("y", O).attr("width", f + i * 2 + w).attr("height", C.height + n * 2); - let _ = parseFloat(A.attr("x")) + parseFloat(A.attr("width")); + const L = t.insert("rect", "#" + C.nn.node().id).classed(`er ${S}`, !0).attr("x", E).attr("y", O).attr("width", f + i * 2 + w).attr("height", C.height + n * 2); + let _ = parseFloat(L.attr("x")) + parseFloat(L.attr("width")); if (l) { C.kn.attr( "transform", @@ -69532,16 +69554,16 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { } else b.height = Math.max(wi.minEntityHeight, g), e.attr("transform", "translate(" + b.width / 2 + "," + b.height / 2 + ")"); return b; -}, "drawAttributes"), G$t = /* @__PURE__ */ x(function(t, e, r) { +}, "drawAttributes"), H$t = /* @__PURE__ */ x(function(t, e, r) { const n = [...e.keys()]; let i; return n.forEach(function(s) { var g; - const a = Lfe(s, "entity"); + const a = Rfe(s, "entity"); L2.set(s, a); const o = t.append("g").attr("id", a); i = i === void 0 ? a : i; - const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = W$t( + const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = G$t( o, u, e.get(s).attributes @@ -69553,30 +69575,30 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { id: a }); }), i; -}, "drawEntities"), H$t = /* @__PURE__ */ x(function(t, e) { +}, "drawEntities"), X$t = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" ); }); -}, "adjustEntities"), Afe = /* @__PURE__ */ x(function(t) { +}, "adjustEntities"), Lfe = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); -}, "getEdgeName"), X$t = /* @__PURE__ */ x(function(t, e) { +}, "getEdgeName"), Z$t = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { e.setEdge( L2.get(r.entityA), L2.get(r.entityB), { relationship: r }, - Afe(r) + Lfe(r) ); }), t; -}, "addRelationships"), GY = 0, Z$t = /* @__PURE__ */ x(function(t, e, r, n, i) { - GY++; +}, "addRelationships"), HY = 0, j$t = /* @__PURE__ */ x(function(t, e, r, n, i) { + HY++; const s = r.edge( L2.get(e.entityA), L2.get(e.entityB), - Afe(e) + Lfe(e) ), a = vf().x(function(m) { return m.x; }).y(function(m) { @@ -69627,7 +69649,7 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { o.attr("marker-start", "url(" + l + "#" + ol.ERMarkers.MD_PARENT_START + ")"); break; } - const u = o.node().getTotalLength(), h = o.node().getPointAtLength(u * 0.5), f = "rel" + GY, d = e.roleA.split(/
/g), p = t.append("text").classed("er relationshipLabel", !0).attr("id", f).attr("x", h.x).attr("y", h.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px"); + const u = o.node().getTotalLength(), h = o.node().getPointAtLength(u * 0.5), f = "rel" + HY, d = e.roleA.split(/
/g), p = t.append("text").classed("er relationshipLabel", !0).attr("id", f).attr("x", h.x).attr("y", h.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px"); if (d.length == 1) p.text(e.roleA); else { @@ -69638,7 +69660,7 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { } const g = p.node().getBBox(); t.insert("rect", "#" + f).classed("er relationshipLabelBox", !0).attr("x", h.x - g.width / 2).attr("y", h.y - g.height / 2).attr("width", g.width).attr("height", g.height); -}, "drawRelationshipFromLayout"), j$t = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawRelationshipFromLayout"), K$t = /* @__PURE__ */ x(function(t, e, r, n) { wi = be().er, X.info("Drawing ER diagram"); const i = be().securityLevel; let s; @@ -69646,7 +69668,7 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { const o = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body").select(`[id='${e}']`); ol.insertMarkers(o, wi); let l; - l = new $i({ + l = new Bi({ multigraph: !0, directed: !0, compound: !1 @@ -69660,31 +69682,31 @@ var N$t = BL, yd = /* @__PURE__ */ new Map(), hI = [], I$t = { }).setDefaultEdgeLabel(function() { return {}; }); - const u = G$t(o, n.db.getEntities(), l), h = X$t(n.db.getRelationships(), l); - sm(l), H$t(o, l), h.forEach(function(m) { - Z$t(o, m, l, u, n); + const u = H$t(o, n.db.getEntities(), l), h = Z$t(n.db.getRelationships(), l); + sm(l), X$t(o, l), h.forEach(function(m) { + j$t(o, m, l, u, n); }); const f = wi.diagramPadding; sr.insertTitle(o, "entityTitleText", wi.titleTopMargin, n.db.getDiagramTitle()); const d = o.node().getBBox(), p = d.width + f * 2, g = d.height + f * 2; ms(o, g, p, wi.useMaxWidth), o.attr("viewBox", `${d.x - f} ${d.y - f} ${p} ${g}`); -}, "draw"), K$t = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; -function Lfe(t = "", e = "") { - const r = t.replace(Q$t, ""); - return `${FL(e)}${FL(r)}${D$t( +}, "draw"), J$t = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; +function Rfe(t = "", e = "") { + const r = t.replace(Y$t, ""); + return `${zL(e)}${zL(r)}${N$t( t, - K$t + J$t )}`; } -x(Lfe, "generateId"); -function FL(t = "") { +x(Rfe, "generateId"); +function zL(t = "") { return t.length > 0 ? `${t}-` : ""; } -x(FL, "strWithHyphen"); -var J$t = { - setConf: Y$t, - draw: j$t -}, eBt = /* @__PURE__ */ x((t) => ` +x(zL, "strWithHyphen"); +var eBt = { + setConf: W$t, + draw: K$t +}, tBt = /* @__PURE__ */ x((t) => ` .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -69729,15 +69751,15 @@ var J$t = { stroke-width: 1; } -`, "getStyles"), tBt = eBt, rBt = { - parser: N$t, - db: U$t, - renderer: J$t, - styles: tBt +`, "getStyles"), rBt = tBt, nBt = { + parser: I$t, + db: q$t, + renderer: eBt, + styles: rBt }; -const nBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const iBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: rBt + diagram: nBt }, Symbol.toStringTag, { value: "Module" })); function Rx(t, e) { var r, n, i; @@ -69760,13 +69782,13 @@ function Ps(t) { function kc(t) { return typeof t == "object" && t !== null && typeof t.$refText == "string"; } -function iBt(t) { +function sBt(t) { return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; } function W4(t) { return typeof t == "object" && t !== null && Ps(t.container) && kc(t.reference) && typeof t.message == "string"; } -class Rfe { +class Mfe { constructor() { this.subtypes = {}, this.allSubtypes = {}; } @@ -69801,10 +69823,10 @@ class Rfe { function d1(t) { return typeof t == "object" && t !== null && Array.isArray(t.content); } -function Mfe(t) { +function Dfe(t) { return typeof t == "object" && t !== null && typeof t.tokenType == "object"; } -function Dfe(t) { +function Nfe(t) { return d1(t) && typeof t.fullText == "string"; } class Ls { @@ -69876,7 +69898,7 @@ class Ls { const r = this.iterator(); let n = "", i, s = !1; do - i = r.next(), i.done || (s && (n += e), n += sBt(i.value)), s = !0; + i = r.next(), i.done || (s && (n += e), n += aBt(i.value)), s = !0; while (!i.done); return n; } @@ -69994,7 +70016,7 @@ class Ls { const { done: n, value: i } = this.nextFn(r.this); if (!n) { const s = e(i); - if (mk(s)) + if (vk(s)) r.iterator = s[Symbol.iterator](); else return { done: !1, value: s }; @@ -70018,7 +70040,7 @@ class Ls { } const { done: i, value: s } = r.nextFn(n.this); if (!i) - if (mk(s)) + if (vk(s)) n.iterator = s[Symbol.iterator](); else return { done: !1, value: s }; @@ -70062,20 +70084,20 @@ class Ls { }); } } -function sBt(t) { +function aBt(t) { return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); } -function mk(t) { +function vk(t) { return !!t && typeof t[Symbol.iterator] == "function"; } -const aBt = new Ls(() => { +const oBt = new Ls(() => { }, () => To), To = Object.freeze({ done: !0, value: void 0 }); function os(...t) { if (t.length === 1) { const e = t[0]; if (e instanceof Ls) return e; - if (mk(e)) + if (vk(e)) return new Ls(() => e[Symbol.iterator](), (r) => r.next()); if (typeof e.length == "number") return new Ls(() => ({ index: 0 }), (r) => r.index < e.length ? { done: !1, value: e[r.index++] } : To); @@ -70095,13 +70117,13 @@ function os(...t) { } if (e.collIndex < t.length) { const r = t[e.collIndex++]; - mk(r) ? e.iterator = r[Symbol.iterator]() : r && typeof r.length == "number" && (e.array = r); + vk(r) ? e.iterator = r[Symbol.iterator]() : r && typeof r.length == "number" && (e.array = r); } } while (e.iterator || e.array || e.collIndex < t.length); return To; - }) : aBt; + }) : oBt; } -class vk extends Ls { +class yk extends Ls { constructor(e, r, n) { super(() => ({ iterators: n != null && n.includeRoot ? [[e][Symbol.iterator]()] : [r(e)[Symbol.iterator]()], @@ -70129,7 +70151,7 @@ class vk extends Ls { return e; } } -var zL; +var VL; (function(t) { function e(s) { return s.reduce((a, o) => a + o, 0); @@ -70147,17 +70169,17 @@ var zL; return s.reduce((a, o) => Math.max(a, o)); } t.max = i; -})(zL || (zL = {})); -function VL(t) { - return new vk(t, (e) => d1(e) ? e.content : [], { includeRoot: !0 }); +})(VL || (VL = {})); +function UL(t) { + return new yk(t, (e) => d1(e) ? e.content : [], { includeRoot: !0 }); } -function oBt(t, e) { +function lBt(t, e) { for (; t.container; ) if (t = t.container, t === e) return !0; return !1; } -function UL(t) { +function qL(t) { return { start: { character: t.startColumn - 1, @@ -70169,7 +70191,7 @@ function UL(t) { } }; } -function yk(t) { +function bk(t) { if (!t) return; const { offset: e, end: r, range: n } = t; @@ -70184,7 +70206,7 @@ var Lh; (function(t) { t[t.Before = 0] = "Before", t[t.After = 1] = "After", t[t.OverlapFront = 2] = "OverlapFront", t[t.OverlapBack = 3] = "OverlapBack", t[t.Inside = 4] = "Inside"; })(Lh || (Lh = {})); -function lBt(t, e) { +function cBt(t, e) { if (t.end.line < e.start.line || t.end.line === e.start.line && t.end.character < t.start.character) return Lh.Before; if (t.start.line > e.end.line || t.start.line === e.end.line && t.start.character > e.end.character) @@ -70192,29 +70214,29 @@ function lBt(t, e) { const r = t.start.line > e.start.line || t.start.line === e.start.line && t.start.character >= e.start.character, n = t.end.line < e.end.line || t.end.line === e.end.line && t.end.character <= e.end.character; return r && n ? Lh.Inside : r ? Lh.OverlapBack : Lh.OverlapFront; } -function cBt(t, e) { - return lBt(t, e) > Lh.After; +function uBt(t, e) { + return cBt(t, e) > Lh.After; } -const uBt = /^[\w\p{L}]$/u; -function hBt(t, e) { +const hBt = /^[\w\p{L}]$/u; +function fBt(t, e) { if (t) { - const r = fBt(t, !0); - if (r && HY(r, e)) + const r = dBt(t, !0); + if (r && XY(r, e)) return r; - if (Dfe(t)) { + if (Nfe(t)) { const n = t.content.findIndex((i) => !i.hidden); for (let i = n - 1; i >= 0; i--) { const s = t.content[i]; - if (HY(s, e)) + if (XY(s, e)) return s; } } } } -function HY(t, e) { - return Mfe(t) && e.includes(t.tokenType.name); +function XY(t, e) { + return Dfe(t) && e.includes(t.tokenType.name); } -function fBt(t, e = !0) { +function dBt(t, e = !0) { for (; t.container; ) { const r = t.container; let n = r.content.indexOf(t); @@ -70227,143 +70249,142 @@ function fBt(t, e = !0) { t = r; } } -class Nfe extends Error { +class Ife extends Error { constructor(e, r) { super(e ? `${r} at ${e.range.start.line}:${e.range.start.character}` : r); } } -function cC(t) { +function uC(t) { throw new Error("Error! The input value was not handled."); } -const R_ = "AbstractRule", M_ = "AbstractType", XY = "Condition", dBt = "TypeDefinition", ZY = "ValueLiteral", Ife = "AbstractElement"; -function pBt(t) { - return Wr.isInstance(t, Ife); -} -const gBt = "ArrayLiteral", mBt = "ArrayType", Pfe = "BooleanLiteral"; -function vBt(t) { +const M_ = "AbstractRule", D_ = "AbstractType", ZY = "Condition", pBt = "TypeDefinition", jY = "ValueLiteral", Pfe = "AbstractElement"; +function gBt(t) { return Wr.isInstance(t, Pfe); } -const $fe = "Conjunction"; +const mBt = "ArrayLiteral", vBt = "ArrayType", $fe = "BooleanLiteral"; function yBt(t) { return Wr.isInstance(t, $fe); } -const Bfe = "Disjunction"; +const Bfe = "Conjunction"; function bBt(t) { return Wr.isInstance(t, Bfe); } -const xBt = "Grammar", Ffe = "InferredType"; -function zfe(t) { +const Ffe = "Disjunction"; +function xBt(t) { return Wr.isInstance(t, Ffe); } -const Vfe = "Interface"; -function Ufe(t) { - return Wr.isInstance(t, Vfe); +const wBt = "Grammar", zfe = "InferredType"; +function Vfe(t) { + return Wr.isInstance(t, zfe); } -const qfe = "Negation"; -function wBt(t) { - return Wr.isInstance(t, qfe); +const Ufe = "Interface"; +function qfe(t) { + return Wr.isInstance(t, Ufe); } -const OBt = "NumberLiteral", kBt = "Parameter", Qfe = "ParameterReference"; -function SBt(t) { +const Qfe = "Negation"; +function OBt(t) { return Wr.isInstance(t, Qfe); } -const Yfe = "ParserRule"; -function Jo(t) { +const kBt = "NumberLiteral", SBt = "Parameter", Yfe = "ParameterReference"; +function TBt(t) { return Wr.isInstance(t, Yfe); } -const TBt = "ReferenceType", CBt = "ReturnType"; -function EBt(t) { - return Wr.isInstance(t, CBt); -} -const Wfe = "SimpleType"; -function _Bt(t) { +const Wfe = "ParserRule"; +function Jo(t) { return Wr.isInstance(t, Wfe); } -const ABt = "StringLiteral", qL = "TerminalRule"; -function J0(t) { - return Wr.isInstance(t, qL); +const CBt = "ReferenceType", EBt = "ReturnType"; +function _Bt(t) { + return Wr.isInstance(t, EBt); } -const Gfe = "Type"; -function Hfe(t) { +const Gfe = "SimpleType"; +function ABt(t) { return Wr.isInstance(t, Gfe); } -const LBt = "UnionType", Xfe = "Action"; -function uC(t) { - return Wr.isInstance(t, Xfe); +const LBt = "StringLiteral", QL = "TerminalRule"; +function J0(t) { + return Wr.isInstance(t, QL); } -const Zfe = "Alternatives"; -function jfe(t) { +const Hfe = "Type"; +function Xfe(t) { + return Wr.isInstance(t, Hfe); +} +const RBt = "UnionType", Zfe = "Action"; +function hC(t) { return Wr.isInstance(t, Zfe); } -const Kfe = "Assignment"; -function m0(t) { - return Wr.isInstance(t, Kfe); +const jfe = "Alternatives"; +function Kfe(t) { + return Wr.isInstance(t, jfe); } -const Jfe = "CharacterRange"; -function RBt(t) { +const Jfe = "Assignment"; +function m0(t) { return Wr.isInstance(t, Jfe); } -const ede = "CrossReference"; -function dI(t) { +const ede = "CharacterRange"; +function MBt(t) { return Wr.isInstance(t, ede); } -const tde = "EndOfFile"; -function MBt(t) { +const tde = "CrossReference"; +function dI(t) { return Wr.isInstance(t, tde); } -const rde = "Group"; -function pI(t) { +const rde = "EndOfFile"; +function DBt(t) { return Wr.isInstance(t, rde); } -const nde = "Keyword"; -function v0(t) { +const nde = "Group"; +function pI(t) { return Wr.isInstance(t, nde); } -const ide = "NegatedToken"; -function DBt(t) { +const ide = "Keyword"; +function v0(t) { return Wr.isInstance(t, ide); } -const sde = "RegexToken"; +const sde = "NegatedToken"; function NBt(t) { return Wr.isInstance(t, sde); } -const ade = "RuleCall"; -function y0(t) { +const ade = "RegexToken"; +function IBt(t) { return Wr.isInstance(t, ade); } -const ode = "TerminalAlternatives"; -function IBt(t) { +const ode = "RuleCall"; +function y0(t) { return Wr.isInstance(t, ode); } -const lde = "TerminalGroup"; +const lde = "TerminalAlternatives"; function PBt(t) { return Wr.isInstance(t, lde); } -const cde = "TerminalRuleCall"; -function ude(t) { +const cde = "TerminalGroup"; +function $Bt(t) { return Wr.isInstance(t, cde); } -const hde = "UnorderedGroup"; -function fde(t) { - return Wr.isInstance(t, hde); +const ude = "TerminalRuleCall"; +function hde(t) { + return Wr.isInstance(t, ude); } -const dde = "UntilToken"; -function $Bt(t) { - return Wr.isInstance(t, dde); +const fde = "UnorderedGroup"; +function dde(t) { + return Wr.isInstance(t, fde); } -const pde = "Wildcard"; +const pde = "UntilToken"; function BBt(t) { return Wr.isInstance(t, pde); } -class gde extends Rfe { +const gde = "Wildcard"; +function FBt(t) { + return Wr.isInstance(t, gde); +} +class mde extends Mfe { getAllTypes() { return ["AbstractElement", "AbstractRule", "AbstractType", "Action", "Alternatives", "ArrayLiteral", "ArrayType", "Assignment", "BooleanLiteral", "CharacterRange", "Condition", "Conjunction", "CrossReference", "Disjunction", "EndOfFile", "Grammar", "GrammarImport", "Group", "InferredType", "Interface", "Keyword", "NamedArgument", "NegatedToken", "Negation", "NumberLiteral", "Parameter", "ParameterReference", "ParserRule", "ReferenceType", "RegexToken", "ReturnType", "RuleCall", "SimpleType", "StringLiteral", "TerminalAlternatives", "TerminalGroup", "TerminalRule", "TerminalRuleCall", "Type", "TypeAttribute", "TypeDefinition", "UnionType", "UnorderedGroup", "UntilToken", "ValueLiteral", "Wildcard"]; } computeIsSubtype(e, r) { switch (e) { - case Xfe: case Zfe: - case Kfe: + case jfe: case Jfe: case ede: case tde: @@ -70375,34 +70396,35 @@ class gde extends Rfe { case ode: case lde: case cde: - case hde: - case dde: + case ude: + case fde: case pde: - return this.isSubtype(Ife, r); - case gBt: - case OBt: - case ABt: - return this.isSubtype(ZY, r); + case gde: + return this.isSubtype(Pfe, r); case mBt: - case TBt: - case Wfe: + case kBt: case LBt: - return this.isSubtype(dBt, r); - case Pfe: - return this.isSubtype(XY, r) || this.isSubtype(ZY, r); + return this.isSubtype(jY, r); + case vBt: + case CBt: + case Gfe: + case RBt: + return this.isSubtype(pBt, r); case $fe: + return this.isSubtype(ZY, r) || this.isSubtype(jY, r); case Bfe: - case qfe: - case Qfe: - return this.isSubtype(XY, r); case Ffe: - case Vfe: - case Gfe: - return this.isSubtype(M_, r); + case Qfe: case Yfe: - return this.isSubtype(R_, r) || this.isSubtype(M_, r); - case qL: - return this.isSubtype(R_, r); + return this.isSubtype(ZY, r); + case zfe: + case Ufe: + case Hfe: + return this.isSubtype(D_, r); + case Wfe: + return this.isSubtype(M_, r) || this.isSubtype(D_, r); + case QL: + return this.isSubtype(M_, r); default: return !1; } @@ -70415,18 +70437,18 @@ class gde extends Rfe { case "Interface:superTypes": case "ParserRule:returnType": case "SimpleType:typeRef": - return M_; + return D_; case "Grammar:hiddenTokens": case "ParserRule:hiddenTokens": case "RuleCall:rule": - return R_; + return M_; case "Grammar:usedGrammars": - return xBt; + return wBt; case "NamedArgument:parameter": case "ParameterReference:parameter": - return kBt; + return SBt; case "TerminalRuleCall:rule": - return qL; + return QL; default: throw new Error(`${r} is not a valid reference id.`); } @@ -70805,14 +70827,14 @@ class gde extends Rfe { } } } -const Wr = new gde(); -function FBt(t) { +const Wr = new mde(); +function zBt(t) { for (const [e, r] of Object.entries(t)) e.startsWith("$") || (Array.isArray(r) ? r.forEach((n, i) => { Ps(n) && (n.$container = t, n.$containerProperty = e, n.$containerIndex = i); }) : Ps(r) && (r.$container = t, r.$containerProperty = e)); } -function hC(t, e) { +function fC(t, e) { let r = t; for (; r; ) { if (e(r)) @@ -70821,12 +70843,12 @@ function hC(t, e) { } } function Fc(t) { - const r = zBt(t).$document; + const r = VBt(t).$document; if (!r) throw new Error("AST node has no document."); return r; } -function zBt(t) { +function VBt(t) { for (; t.$container; ) t = t.$container; return t; @@ -70845,12 +70867,12 @@ function gI(t, e) { if (!i.startsWith("$")) { const s = t[i]; if (Ps(s)) { - if (n.keyIndex++, QL(s, r)) + if (n.keyIndex++, YL(s, r)) return { done: !1, value: s }; } else if (Array.isArray(s)) { for (; n.arrayIndex < s.length; ) { const a = n.arrayIndex++, o = s[a]; - if (Ps(o) && QL(o, r)) + if (Ps(o) && YL(o, r)) return { done: !1, value: o }; } n.arrayIndex = 0; @@ -70864,24 +70886,24 @@ function gI(t, e) { function Mx(t, e) { if (!t) throw new Error("Root node must be an AstNode."); - return new vk(t, (r) => gI(r, e)); + return new yk(t, (r) => gI(r, e)); } function lg(t, e) { if (t) { - if ((e == null ? void 0 : e.range) && !QL(t, e.range)) - return new vk(t, () => []); + if ((e == null ? void 0 : e.range) && !YL(t, e.range)) + return new yk(t, () => []); } else throw new Error("Root node must be an AstNode."); - return new vk(t, (r) => gI(r, e), { includeRoot: !0 }); + return new yk(t, (r) => gI(r, e), { includeRoot: !0 }); } -function QL(t, e) { +function YL(t, e) { var r; if (!e) return !0; const n = (r = t.$cstNode) === null || r === void 0 ? void 0 : r.range; - return n ? cBt(n, e) : !1; + return n ? uBt(n, e) : !1; } -function mde(t) { +function vde(t) { return new Ls(() => ({ keys: Object.keys(t), keyIndex: 0, @@ -70907,18 +70929,18 @@ function mde(t) { return To; }); } -function VBt(t, e) { +function UBt(t, e) { const r = t.getTypeMetaData(e.$type), n = e; for (const i of r.properties) - i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = vde(i.defaultValue)); + i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = yde(i.defaultValue)); } -function vde(t) { - return Array.isArray(t) ? [...t.map(vde)] : t; +function yde(t) { + return Array.isArray(t) ? [...t.map(yde)] : t; } function nr(t) { return t.charCodeAt(0); } -function D_(t, e) { +function N_(t, e) { Array.isArray(t) ? t.forEach(function(r) { e.push(r); }) : e.push(t); @@ -70933,21 +70955,21 @@ function dp(t) { throw Error("Internal Error - Should never get here!"); return !0; } -function UBt() { +function qBt() { throw Error("Internal Error - Should never get here!"); } -function jY(t) { +function KY(t) { return t.type === "Character"; } -const bk = []; +const xk = []; for (let t = nr("0"); t <= nr("9"); t++) - bk.push(t); -const xk = [nr("_")].concat(bk); -for (let t = nr("a"); t <= nr("z"); t++) xk.push(t); +const wk = [nr("_")].concat(xk); +for (let t = nr("a"); t <= nr("z"); t++) + wk.push(t); for (let t = nr("A"); t <= nr("Z"); t++) - xk.push(t); -const KY = [ + wk.push(t); +const JY = [ nr(" "), nr("\f"), nr(` @@ -70975,8 +70997,8 @@ const KY = [ nr("\u205F"), nr("\u3000"), nr("\uFEFF") -], qBt = /[0-9a-fA-F]/, wO = /[0-9]/, QBt = /[1-9]/; -class yde { +], QBt = /[0-9a-fA-F]/, wO = /[0-9]/, YBt = /[1-9]/; +class bde { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; } @@ -71088,7 +71110,7 @@ class yde { loc: this.loc(e) }; } - return UBt(); + return qBt(); } quantifier(e = !1) { let r; @@ -71212,22 +71234,22 @@ class yde { let e, r = !1; switch (this.popChar()) { case "d": - e = bk; + e = xk; break; case "D": - e = bk, r = !0; + e = xk, r = !0; break; case "s": - e = KY; + e = JY; break; case "S": - e = KY, r = !0; + e = JY, r = !0; break; case "w": - e = xk; + e = wk; break; case "W": - e = xk, r = !0; + e = wk, r = !0; break; } if (dp(e)) @@ -71296,17 +71318,17 @@ class yde { let r = !1; for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), r = !0); this.isClassAtom(); ) { const n = this.classAtom(); - if (n.type, jY(n) && this.isRangeDash()) { + if (n.type, KY(n) && this.isRangeDash()) { this.consumeChar("-"); const i = this.classAtom(); - if (i.type, jY(i)) { + if (i.type, KY(i)) { if (i.value < n.value) throw Error("Range out of order in character class"); e.push({ from: n.value, to: i.value }); } else - D_(n.value, e), e.push(nr("-")), D_(i.value, e); + N_(n.value, e), e.push(nr("-")), N_(i.value, e); } else - D_(n.value, e); + N_(n.value, e); } return this.consumeChar("]"), { type: "Set", complement: r, value: e }; } @@ -71375,7 +71397,7 @@ class yde { } positiveInteger() { let e = this.popChar(); - if (QBt.test(e) === !1) + if (YBt.test(e) === !1) throw Error("Expecting a positive integer"); for (; wO.test(this.peekChar(0)); ) e += this.popChar(); @@ -71517,7 +71539,7 @@ class yde { let r = ""; for (let i = 0; i < e; i++) { const s = this.popChar(); - if (qBt.test(s) === !1) + if (QBt.test(s) === !1) throw Error("Expecting a HexDecimal digits"); r += s; } @@ -71541,7 +71563,7 @@ class yde { return { begin: e, end: this.idx }; } } -class fC { +class dC { visitChildren(e) { for (const r in e) { const n = e[r]; @@ -71631,8 +71653,8 @@ class fC { visitQuantifier(e) { } } -const YBt = /\r?\n/gm, WBt = new yde(); -class GBt extends fC { +const WBt = /\r?\n/gm, GBt = new bde(); +class HBt extends dC { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; } @@ -71651,7 +71673,7 @@ class GBt extends fC { ` && (this.multiline = !0), e.quantifier) this.isStarting = !1, this.endRegexpStack = []; else { - const n = dC(r); + const n = pC(r); this.endRegexpStack.push(n), this.isStarting && (this.startRegexp += n); } } @@ -71672,28 +71694,28 @@ class GBt extends fC { e.type === "Group" && e.quantifier || super.visitChildren(e); } } -const N_ = new GBt(); -function HBt(t) { +const I_ = new HBt(); +function XBt(t) { try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), N_.reset(t), N_.visit(WBt.pattern(t)), N_.multiline; + return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), I_.reset(t), I_.visit(GBt.pattern(t)), I_.multiline; } catch { return !1; } } -function JY(t) { +function eW(t) { return (typeof t == "string" ? new RegExp(t) : t).test(" "); } -function dC(t) { +function pC(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function XBt(t) { - return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : dC(e)).join(""); +function ZBt(t) { + return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : pC(e)).join(""); } -function ZBt(t, e) { - const r = jBt(t), n = e.match(r); +function jBt(t, e) { + const r = KBt(t), n = e.match(r); return !!n && n[0].length > 0; } -function jBt(t) { +function KBt(t) { typeof t == "string" && (t = new RegExp(t)); const e = t, r = t.source; let n = 0; @@ -71781,47 +71803,47 @@ function jBt(t) { } return new RegExp(i(), t.flags); } -function KBt(t) { +function JBt(t) { return t.rules.find((e) => Jo(e) && e.entry); } -function JBt(t) { +function eFt(t) { return t.rules.filter((e) => J0(e) && e.hidden); } -function bde(t, e) { - const r = /* @__PURE__ */ new Set(), n = KBt(t); +function xde(t, e) { + const r = /* @__PURE__ */ new Set(), n = JBt(t); if (!n) return new Set(t.rules); - const i = [n].concat(JBt(t)); + const i = [n].concat(eFt(t)); for (const a of i) - xde(a, r, e); + wde(a, r, e); const s = /* @__PURE__ */ new Set(); for (const a of t.rules) (r.has(a.name) || J0(a) && a.hidden) && s.add(a); return s; } -function xde(t, e, r) { +function wde(t, e, r) { e.add(t.name), Mx(t).forEach((n) => { - if (y0(n) || r && ude(n)) { + if (y0(n) || r && hde(n)) { const i = n.rule.ref; - i && !e.has(i.name) && xde(i, e, r); + i && !e.has(i.name) && wde(i, e, r); } }); } -function eFt(t) { +function tFt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { - const e = Ode(t.type.ref); + const e = kde(t.type.ref); return e == null ? void 0 : e.terminal; } } -function tFt(t) { +function rFt(t) { return t.hidden && !yI(t).test(" "); } -function rFt(t, e) { +function nFt(t, e) { return !t || !e ? [] : mI(t, e, t.astNode, !0); } -function wde(t, e, r) { +function Ode(t, e, r) { if (!t || !e) return; const n = mI(t, e, t.astNode, !0); @@ -71830,25 +71852,25 @@ function wde(t, e, r) { } function mI(t, e, r, n) { if (!n) { - const i = hC(t.grammarSource, m0); + const i = fC(t.grammarSource, m0); if (i && i.feature === e) return [t]; } return d1(t) && t.astNode === r ? t.content.flatMap((i) => mI(i, e, r, !1)) : []; } -function nFt(t, e, r) { +function iFt(t, e, r) { if (!t) return; - const n = iFt(t, e, t == null ? void 0 : t.astNode); + const n = sFt(t, e, t == null ? void 0 : t.astNode); if (n.length !== 0) return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; } -function iFt(t, e, r) { +function sFt(t, e, r) { if (t.astNode !== r) return []; if (v0(t.grammarSource) && t.grammarSource.value === e) return [t]; - const n = VL(t).iterator(); + const n = UL(t).iterator(); let i; const s = []; do @@ -71859,25 +71881,25 @@ function iFt(t, e, r) { while (!i.done); return s; } -function sFt(t) { +function aFt(t) { var e; const r = t.astNode; for (; r === ((e = t.container) === null || e === void 0 ? void 0 : e.astNode); ) { - const n = hC(t.grammarSource, m0); + const n = fC(t.grammarSource, m0); if (n) return n; t = t.container; } } -function Ode(t) { +function kde(t) { let e = t; - return zfe(e) && (uC(e.$container) ? e = e.$container.$container : Jo(e.$container) ? e = e.$container : cC(e.$container)), kde(t, e, /* @__PURE__ */ new Map()); + return Vfe(e) && (hC(e.$container) ? e = e.$container.$container : Jo(e.$container) ? e = e.$container : uC(e.$container)), Sde(t, e, /* @__PURE__ */ new Map()); } -function kde(t, e, r) { +function Sde(t, e, r) { var n; function i(s, a) { let o; - return hC(s, m0) || (o = kde(a, a, r)), r.set(t, o), o; + return fC(s, m0) || (o = Sde(a, a, r)), r.set(t, o), o; } if (r.has(t)) return r.get(t); @@ -71887,30 +71909,30 @@ function kde(t, e, r) { return r.set(t, s), s; if (y0(s) && Jo(s.rule.ref)) return i(s, s.rule.ref); - if (_Bt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) + if (ABt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) return i(s, s.typeRef.ref); } } function vI(t) { - return Sde(t, /* @__PURE__ */ new Set()); + return Tde(t, /* @__PURE__ */ new Set()); } -function Sde(t, e) { +function Tde(t, e) { if (e.has(t)) return !0; e.add(t); for (const r of Mx(t)) if (y0(r)) { - if (!r.rule.ref || Jo(r.rule.ref) && !Sde(r.rule.ref, e)) + if (!r.rule.ref || Jo(r.rule.ref) && !Tde(r.rule.ref, e)) return !1; } else { if (m0(r)) return !1; - if (uC(r)) + if (hC(r)) return !1; } return Boolean(t.definition); } -function Tde(t) { +function Cde(t) { if (t.inferredType) return t.inferredType.name; if (t.dataType) @@ -71920,35 +71942,35 @@ function Tde(t) { if (e) { if (Jo(e)) return e.name; - if (Ufe(e) || Hfe(e)) + if (qfe(e) || Xfe(e)) return e.name; } } } -function pC(t) { +function gC(t) { var e; if (Jo(t)) - return vI(t) ? t.name : (e = Tde(t)) !== null && e !== void 0 ? e : t.name; - if (Ufe(t) || Hfe(t) || EBt(t)) + return vI(t) ? t.name : (e = Cde(t)) !== null && e !== void 0 ? e : t.name; + if (qfe(t) || Xfe(t) || _Bt(t)) return t.name; - if (uC(t)) { - const r = aFt(t); + if (hC(t)) { + const r = oFt(t); if (r) return r; - } else if (zfe(t)) + } else if (Vfe(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } -function aFt(t) { +function oFt(t) { var e; if (t.inferredType) return t.inferredType.name; if (!((e = t.type) === null || e === void 0) && e.ref) - return pC(t.type.ref); + return gC(t.type.ref); } -function oFt(t) { +function lFt(t) { var e, r, n; - return J0(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : vI(t) ? t.name : (n = Tde(t)) !== null && n !== void 0 ? n : t.name; + return J0(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : vI(t) ? t.name : (n = Cde(t)) !== null && n !== void 0 ? n : t.name; } function yI(t) { const e = { @@ -71960,13 +71982,13 @@ function yI(t) { } const bI = /[\s\S]/.source; function am(t, e) { - if (IBt(t)) - return lFt(t); if (PBt(t)) return cFt(t); - if (RBt(t)) - return fFt(t); - if (ude(t)) { + if ($Bt(t)) + return uFt(t); + if (MBt(t)) + return dFt(t); + if (hde(t)) { const r = t.rule.ref; if (!r) throw new Error("Missing rule reference."); @@ -71975,11 +71997,11 @@ function am(t, e) { lookahead: t.lookahead }); } else { - if (DBt(t)) + if (NBt(t)) + return fFt(t); + if (BBt(t)) return hFt(t); - if ($Bt(t)) - return uFt(t); - if (NBt(t)) { + if (IBt(t)) { const r = t.regex.lastIndexOf("/"), n = t.regex.substring(1, r), i = t.regex.substring(r + 1); return e && (e.i = i.includes("i"), e.s = i.includes("s"), e.u = i.includes("u")), Du(n, { cardinality: t.cardinality, @@ -71987,7 +72009,7 @@ function am(t, e) { wrap: !1 }); } else { - if (BBt(t)) + if (FBt(t)) return Du(bI, { cardinality: t.cardinality, lookahead: t.lookahead @@ -71996,68 +72018,68 @@ function am(t, e) { } } } -function lFt(t) { +function cFt(t) { return Du(t.elements.map((e) => am(e)).join("|"), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function cFt(t) { +function uFt(t) { return Du(t.elements.map((e) => am(e)).join(""), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function uFt(t) { +function hFt(t) { return Du(`${bI}*?${am(t.terminal)}`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function hFt(t) { +function fFt(t) { return Du(`(?!${am(t.terminal)})${bI}*?`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function fFt(t) { - return t.right ? Du(`[${I_(t.left)}-${I_(t.right)}]`, { +function dFt(t) { + return t.right ? Du(`[${P_(t.left)}-${P_(t.right)}]`, { cardinality: t.cardinality, lookahead: t.lookahead, wrap: !1 - }) : Du(I_(t.left), { + }) : Du(P_(t.left), { cardinality: t.cardinality, lookahead: t.lookahead, wrap: !1 }); } -function I_(t) { - return dC(t.value); +function P_(t) { + return pC(t.value); } function Du(t, e) { var r; return (e.wrap !== !1 || e.lookahead) && (t = `(${(r = e.lookahead) !== null && r !== void 0 ? r : ""}${t})`), e.cardinality ? `${t}${e.cardinality}` : t; } -function dFt(t) { +function pFt(t) { const e = [], r = t.Grammar; for (const n of r.rules) - J0(n) && tFt(n) && HBt(yI(n)) && e.push(n.name); + J0(n) && rFt(n) && XBt(yI(n)) && e.push(n.name); return { multilineCommentRules: e, - nameRegexp: uBt + nameRegexp: hBt }; } -function YL(t) { +function WL(t) { console && console.error && console.error(`Error: ${t}`); } -function Cde(t) { +function Ede(t) { console && console.warn && console.warn(`Warning: ${t}`); } -function Ede(t) { +function _de(t) { const e = new Date().getTime(), r = t(); return { time: new Date().getTime() - e, value: r }; } -function _de(t) { +function Ade(t) { function e() { } e.prototype = t; @@ -72067,11 +72089,11 @@ function _de(t) { } return n(), n(), t; } -function pFt(t) { - return gFt(t) ? t.LABEL : t.name; -} function gFt(t) { - return $a(t.LABEL) && t.LABEL !== ""; + return mFt(t) ? t.LABEL : t.name; +} +function mFt(t) { + return Ba(t.LABEL) && t.LABEL !== ""; } class tu { get definition() { @@ -72107,7 +72129,7 @@ class om extends tu { super(e.definition), this.orgText = "", ho(this, Hl(e, (r) => r !== void 0)); } } -class Ba extends tu { +class Fa extends tu { constructor(e) { super(e.definition), this.ignoreAmbiguities = !1, ho(this, Hl(e, (r) => r !== void 0)); } @@ -72132,12 +72154,12 @@ class Un extends tu { super(e.definition), this.idx = 1, ho(this, Hl(e, (r) => r !== void 0)); } } -class qa extends tu { +class Qa extends tu { constructor(e) { super(e.definition), this.idx = 1, ho(this, Hl(e, (r) => r !== void 0)); } } -class Qa extends tu { +class Ya extends tu { get definition() { return this._definition; } @@ -72156,7 +72178,7 @@ class wn { e.visit(this); } } -function mFt(t) { +function vFt(t) { return gt(t, G4); } function G4(t) { @@ -72169,9 +72191,9 @@ function G4(t) { name: t.nonTerminalName, idx: t.idx }; - return $a(t.label) && (r.label = t.label), r; + return Ba(t.label) && (r.label = t.label), r; } else { - if (t instanceof Ba) + if (t instanceof Fa) return { type: "Alternative", definition: e(t.definition) @@ -72195,7 +72217,7 @@ function G4(t) { separator: G4(new wn({ terminalType: t.separator })), definition: e(t.definition) }; - if (t instanceof qa) + if (t instanceof Qa) return { type: "RepetitionWithSeparator", idx: t.idx, @@ -72208,7 +72230,7 @@ function G4(t) { idx: t.idx, definition: e(t.definition) }; - if (t instanceof Qa) + if (t instanceof Ya) return { type: "Alternation", idx: t.idx, @@ -72218,10 +72240,10 @@ function G4(t) { const r = { type: "Terminal", name: t.terminalType.name, - label: pFt(t.terminalType), + label: gFt(t.terminalType), idx: t.idx }; - $a(t.label) && (r.terminalLabel = t.label); + Ba(t.label) && (r.terminalLabel = t.label); const n = t.terminalType.PATTERN; return t.terminalType.PATTERN && (r.pattern = Zu(n) ? n.source : n), r; } else { @@ -72242,7 +72264,7 @@ class lm { switch (r.constructor) { case ua: return this.visitNonTerminal(r); - case Ba: + case Fa: return this.visitAlternative(r); case fs: return this.visitOption(r); @@ -72250,11 +72272,11 @@ class lm { return this.visitRepetitionMandatory(r); case vo: return this.visitRepetitionMandatoryWithSeparator(r); - case qa: + case Qa: return this.visitRepetitionWithSeparator(r); case Un: return this.visitRepetition(r); - case Qa: + case Ya: return this.visitAlternation(r); case wn: return this.visitTerminal(r); @@ -72285,27 +72307,27 @@ class lm { visitRule(e) { } } -function vFt(t) { - return t instanceof Ba || t instanceof fs || t instanceof Un || t instanceof mo || t instanceof vo || t instanceof qa || t instanceof wn || t instanceof om; +function yFt(t) { + return t instanceof Fa || t instanceof fs || t instanceof Un || t instanceof mo || t instanceof vo || t instanceof Qa || t instanceof wn || t instanceof om; } -function wk(t, e = []) { - return t instanceof fs || t instanceof Un || t instanceof qa ? !0 : t instanceof Qa ? Dhe(t.definition, (n) => wk(n, e)) : t instanceof ua && pa(e, t) ? !1 : t instanceof tu ? (t instanceof ua && e.push(t), Tl(t.definition, (n) => wk(n, e))) : !1; +function Ok(t, e = []) { + return t instanceof fs || t instanceof Un || t instanceof Qa ? !0 : t instanceof Ya ? Nhe(t.definition, (n) => Ok(n, e)) : t instanceof ua && pa(e, t) ? !1 : t instanceof tu ? (t instanceof ua && e.push(t), Tl(t.definition, (n) => Ok(n, e))) : !1; } -function yFt(t) { - return t instanceof Qa; +function bFt(t) { + return t instanceof Ya; } function uc(t) { if (t instanceof ua) return "SUBRULE"; if (t instanceof fs) return "OPTION"; - if (t instanceof Qa) + if (t instanceof Ya) return "OR"; if (t instanceof mo) return "AT_LEAST_ONE"; if (t instanceof vo) return "AT_LEAST_ONE_SEP"; - if (t instanceof qa) + if (t instanceof Qa) return "MANY_SEP"; if (t instanceof Un) return "MANY"; @@ -72313,7 +72335,7 @@ function uc(t) { return "CONSUME"; throw Error("non exhaustive match"); } -class gC { +class mC { walk(e, r = []) { $e(e.definition, (n, i) => { const s = es(e.definition, i + 1); @@ -72321,7 +72343,7 @@ class gC { this.walkProdRef(n, s, r); else if (n instanceof wn) this.walkTerminal(n, s, r); - else if (n instanceof Ba) + else if (n instanceof Fa) this.walkFlat(n, s, r); else if (n instanceof fs) this.walkOption(n, s, r); @@ -72329,11 +72351,11 @@ class gC { this.walkAtLeastOne(n, s, r); else if (n instanceof vo) this.walkAtLeastOneSep(n, s, r); - else if (n instanceof qa) + else if (n instanceof Qa) this.walkManySep(n, s, r); else if (n instanceof Un) this.walkMany(n, s, r); - else if (n instanceof Qa) + else if (n instanceof Ya) this.walkOr(n, s, r); else throw Error("non exhaustive match"); @@ -72358,7 +72380,7 @@ class gC { this.walk(e, i); } walkAtLeastOneSep(e, r, n) { - const i = eW(e, r, n); + const i = tW(e, r, n); this.walk(e, i); } walkMany(e, r, n) { @@ -72368,18 +72390,18 @@ class gC { this.walk(e, i); } walkManySep(e, r, n) { - const i = eW(e, r, n); + const i = tW(e, r, n); this.walk(e, i); } walkOr(e, r, n) { const i = r.concat(n); $e(e.definition, (s) => { - const a = new Ba({ definition: [s] }); + const a = new Fa({ definition: [s] }); this.walk(a, i); }); } } -function eW(t, e, r) { +function tW(t, e, r) { return [ new fs({ definition: [ @@ -72392,30 +72414,30 @@ function Dx(t) { if (t instanceof ua) return Dx(t.referencedRule); if (t instanceof wn) - return wFt(t); - if (vFt(t)) - return bFt(t); + return OFt(t); if (yFt(t)) return xFt(t); + if (bFt(t)) + return wFt(t); throw Error("non exhaustive match"); } -function bFt(t) { +function xFt(t) { let e = []; const r = t.definition; let n = 0, i = r.length > n, s, a = !0; for (; i && a; ) - s = r[n], a = wk(s), e = e.concat(Dx(s)), n = n + 1, i = r.length > n; + s = r[n], a = Ok(s), e = e.concat(Dx(s)), n = n + 1, i = r.length > n; return ZN(e); } -function xFt(t) { +function wFt(t) { const e = gt(t.definition, (r) => Dx(r)); return ZN(Yi(e)); } -function wFt(t) { +function OFt(t) { return [t.terminalType]; } -const Ade = "_~IN~_"; -class OFt extends gC { +const Lde = "_~IN~_"; +class kFt extends mC { constructor(e) { super(), this.topProd = e, this.follows = {}; } @@ -72425,43 +72447,43 @@ class OFt extends gC { walkTerminal(e, r, n) { } walkProdRef(e, r, n) { - const i = SFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Ba({ definition: s }), o = Dx(a); + const i = TFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Fa({ definition: s }), o = Dx(a); this.follows[i] = o; } } -function kFt(t) { +function SFt(t) { const e = {}; return $e(t, (r) => { - const n = new OFt(r).startWalking(); + const n = new kFt(r).startWalking(); ho(e, n); }), e; } -function SFt(t, e) { - return t.name + e + Ade; +function TFt(t, e) { + return t.name + e + Lde; } let H4 = {}; -const TFt = new yde(); -function mC(t) { +const CFt = new bde(); +function vC(t) { const e = t.toString(); if (H4.hasOwnProperty(e)) return H4[e]; { - const r = TFt.pattern(e); + const r = CFt.pattern(e); return H4[e] = r, r; } } -function CFt() { +function EFt() { H4 = {}; } -const Lde = "Complement Sets are not supported for first char optimization", Ok = `Unable to use "first char" lexer optimizations: +const Rde = "Complement Sets are not supported for first char optimization", kk = `Unable to use "first char" lexer optimizations: `; -function EFt(t, e = !1) { +function _Ft(t, e = !1) { try { - const r = mC(t); - return WL(r.value, {}, r.flags.ignoreCase); + const r = vC(t); + return GL(r.value, {}, r.flags.ignoreCase); } catch (r) { - if (r.message === Lde) - e && Cde(`${Ok} Unable to optimize: < ${t.toString()} > + if (r.message === Rde) + e && Ede(`${kk} Unable to optimize: < ${t.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`); @@ -72469,7 +72491,7 @@ function EFt(t, e = !1) { let n = ""; e && (n = ` This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`), YL(`${Ok} + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`), WL(`${kk} Failed parsing: < ${t.toString()} > Using the @chevrotain/regexp-to-ast library Please open an issue at: https://github.com/chevrotain/chevrotain/issues` + n); @@ -72477,11 +72499,11 @@ function EFt(t, e = !1) { } return []; } -function WL(t, e, r) { +function GL(t, e, r) { switch (t.type) { case "Disjunction": for (let i = 0; i < t.value.length; i++) - WL(t.value[i], e, r); + GL(t.value[i], e, r); break; case "Alternative": const n = t.value; @@ -72504,7 +72526,7 @@ function WL(t, e, r) { break; case "Set": if (a.complement === !0) - throw Error(Lde); + throw Error(Rde); $e(a.value, (l) => { if (typeof l == "number") OO(l, e, r); @@ -72526,13 +72548,13 @@ function WL(t, e, r) { }); break; case "Group": - WL(a.value, e, r); + GL(a.value, e, r); break; default: throw Error("Non Exhaustive Match"); } const o = a.quantifier !== void 0 && a.quantifier.atLeast === 0; - if (a.type === "Group" && GL(a) === !1 || a.type !== "Group" && o === !1) + if (a.type === "Group" && HL(a) === !1 || a.type !== "Group" && o === !1) break; } break; @@ -72543,9 +72565,9 @@ function WL(t, e, r) { } function OO(t, e, r) { const n = Cf(t); - e[n] = n, r === !0 && _Ft(t, e); + e[n] = n, r === !0 && AFt(t, e); } -function _Ft(t, e) { +function AFt(t, e) { const r = String.fromCharCode(t), n = r.toUpperCase(); if (n !== r) { const i = Cf(n.charCodeAt(0)); @@ -72558,7 +72580,7 @@ function _Ft(t, e) { } } } -function tW(t, e) { +function rW(t, e) { return Xu(t.value, (r) => { if (typeof r == "number") return pa(e, r); @@ -72568,11 +72590,11 @@ function tW(t, e) { } }); } -function GL(t) { +function HL(t) { const e = t.quantifier; - return e && e.atLeast === 0 ? !0 : t.value ? Sr(t.value) ? Tl(t.value, GL) : GL(t.value) : !1; + return e && e.atLeast === 0 ? !0 : t.value ? Sr(t.value) ? Tl(t.value, HL) : HL(t.value) : !1; } -class AFt extends fC { +class LFt extends dC { constructor(e) { super(), this.targetCharCodes = e, this.found = !1; } @@ -72593,21 +72615,21 @@ class AFt extends fC { pa(this.targetCharCodes, e.value) && (this.found = !0); } visitSet(e) { - e.complement ? tW(e, this.targetCharCodes) === void 0 && (this.found = !0) : tW(e, this.targetCharCodes) !== void 0 && (this.found = !0); + e.complement ? rW(e, this.targetCharCodes) === void 0 && (this.found = !0) : rW(e, this.targetCharCodes) !== void 0 && (this.found = !0); } } function xI(t, e) { if (e instanceof RegExp) { - const r = mC(e), n = new AFt(t); + const r = vC(e), n = new LFt(t); return n.visit(r), n.found; } else return Xu(e, (r) => pa(t, r.charCodeAt(0))) !== void 0; } const b0 = "PATTERN", Ev = "defaultMode", kO = "modes"; -let Rde = typeof new RegExp("(?:)").sticky == "boolean"; -function LFt(t, e) { - e = KT(e, { - useSticky: Rde, +let Mde = typeof new RegExp("(?:)").sticky == "boolean"; +function RFt(t, e) { + e = JT(e, { + useSticky: Mde, debug: !1, safeMode: !1, positionTracking: "full", @@ -72617,11 +72639,11 @@ function LFt(t, e) { }); const r = e.tracer; r("initCharCodeToOptimizedIndexMap", () => { - JFt(); + ezt(); }); let n; r("Reject Lexer.NA", () => { - n = tC(t, (b) => b[b0] === Na.NA); + n = rC(t, (b) => b[b0] === Ia.NA); }); let i = !1, s; r("Transform Patterns", () => { @@ -72646,7 +72668,7 @@ function LFt(t, e) { "v", "w", "W" - ], O[1]) ? O[1] : e.useSticky ? nW(w) : rW(w); + ], O[1]) ? O[1] : e.useSticky ? iW(w) : nW(w); } else { if (Ho(w)) return i = !0, { exec: w }; @@ -72657,7 +72679,7 @@ function LFt(t, e) { return w; { const O = w.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), S = new RegExp(O); - return e.useSticky ? nW(S) : rW(S); + return e.useSticky ? iW(S) : nW(S); } } else throw Error("non exhaustive match"); @@ -72668,8 +72690,8 @@ function LFt(t, e) { r("misc mapping", () => { a = gt(n, (b) => b.tokenTypeIdx), o = gt(n, (b) => { const w = b.GROUP; - if (w !== Na.SKIPPED) { - if ($a(w)) + if (w !== Ia.SKIPPED) { + if (Ba(w)) return w; if (qr(w)) return !1; @@ -72678,19 +72700,19 @@ function LFt(t, e) { }), l = gt(n, (b) => { const w = b.LONGER_ALT; if (w) - return Sr(w) ? gt(w, (S) => SY(n, S)) : [SY(n, w)]; + return Sr(w) ? gt(w, (S) => TY(n, S)) : [TY(n, w)]; }), u = gt(n, (b) => b.PUSH_MODE), h = gt(n, (b) => yt(b, "POP_MODE")); }); let f; r("Line Terminator Handling", () => { - const b = Nde(e.lineTerminatorCharacters); - f = gt(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = gt(n, (w) => yt(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Dde(w, b) === !1 && xI(b, w.PATTERN))); + const b = Ide(e.lineTerminatorCharacters); + f = gt(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = gt(n, (w) => yt(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Nde(w, b) === !1 && xI(b, w.PATTERN))); }); let d, p, g, m; r("Misc Mapping #2", () => { - d = gt(n, Mde), p = gt(s, ZFt), g = gi(n, (b, w) => { + d = gt(n, Dde), p = gt(s, jFt), g = gi(n, (b, w) => { const O = w.GROUP; - return $a(O) && O !== Na.SKIPPED && (b[O] = []), b; + return Ba(O) && O !== Ia.SKIPPED && (b[O] = []), b; }, {}), m = gt(s, (b, w) => ({ pattern: s[w], longerAlt: l[w], @@ -72709,27 +72731,27 @@ function LFt(t, e) { y = gi(n, (b, w, O) => { if (typeof w.PATTERN == "string") { const S = w.PATTERN.charCodeAt(0), C = Cf(S); - P_(b, C, m[O]); + $_(b, C, m[O]); } else if (Sr(w.START_CHARS_HINT)) { let S; $e(w.START_CHARS_HINT, (C) => { - const T = typeof C == "string" ? C.charCodeAt(0) : C, L = Cf(T); - S !== L && (S = L, P_(b, L, m[O])); + const T = typeof C == "string" ? C.charCodeAt(0) : C, A = Cf(T); + S !== A && (S = A, $_(b, A, m[O])); }); } else if (Zu(w.PATTERN)) if (w.PATTERN.unicode) - v = !1, e.ensureOptimizations && YL(`${Ok} Unable to analyze < ${w.PATTERN.toString()} > pattern. + v = !1, e.ensureOptimizations && WL(`${kk} Unable to analyze < ${w.PATTERN.toString()} > pattern. The regexp unicode flag is not currently supported by the regexp-to-ast library. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`); else { - const S = EFt(w.PATTERN, e.ensureOptimizations); + const S = _Ft(w.PATTERN, e.ensureOptimizations); $r(S) && (v = !1), $e(S, (C) => { - P_(b, C, m[O]); + $_(b, C, m[O]); }); } else - e.ensureOptimizations && YL(`${Ok} TokenType: <${w.name}> is using a custom token pattern without providing parameter. + e.ensureOptimizations && WL(`${kk} TokenType: <${w.name}> is using a custom token pattern without providing parameter. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`), v = !1; return b; @@ -72742,40 +72764,40 @@ function LFt(t, e) { canBeOptimized: v }; } -function RFt(t, e) { +function MFt(t, e) { let r = []; - const n = DFt(t); + const n = NFt(t); r = r.concat(n.errors); - const i = NFt(n.valid), s = i.valid; - return r = r.concat(i.errors), r = r.concat(MFt(s)), r = r.concat(UFt(s)), r = r.concat(qFt(s, e)), r = r.concat(QFt(s)), r; + const i = IFt(n.valid), s = i.valid; + return r = r.concat(i.errors), r = r.concat(DFt(s)), r = r.concat(qFt(s)), r = r.concat(QFt(s, e)), r = r.concat(YFt(s)), r; } -function MFt(t) { +function DFt(t) { let e = []; const r = Qn(t, (n) => Zu(n[b0])); - return e = e.concat(PFt(r)), e = e.concat(FFt(r)), e = e.concat(zFt(r)), e = e.concat(VFt(r)), e = e.concat($Ft(r)), e; + return e = e.concat($Ft(r)), e = e.concat(zFt(r)), e = e.concat(VFt(r)), e = e.concat(UFt(r)), e = e.concat(BFt(r)), e; } -function DFt(t) { +function NFt(t) { const e = Qn(t, (i) => !yt(i, b0)), r = gt(e, (i) => ({ message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", type: qn.MISSING_PATTERN, tokenTypes: [i] - })), n = JT(t, e); + })), n = eC(t, e); return { errors: r, valid: n }; } -function NFt(t) { +function IFt(t) { const e = Qn(t, (i) => { const s = i[b0]; - return !Zu(s) && !Ho(s) && !yt(s, "exec") && !$a(s); + return !Zu(s) && !Ho(s) && !yt(s, "exec") && !Ba(s); }), r = gt(e, (i) => ({ message: "Token Type: ->" + i.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.", type: qn.INVALID_PATTERN, tokenTypes: [i] - })), n = JT(t, e); + })), n = eC(t, e); return { errors: r, valid: n }; } -const IFt = /[^\\][$]/; -function PFt(t) { - class e extends fC { +const PFt = /[^\\][$]/; +function $Ft(t) { + class e extends dC { constructor() { super(...arguments), this.found = !1; } @@ -72786,10 +72808,10 @@ function PFt(t) { const r = Qn(t, (i) => { const s = i.PATTERN; try { - const a = mC(s), o = new e(); + const a = vC(s), o = new e(); return o.visit(a), o.found; } catch { - return IFt.test(s.source); + return PFt.test(s.source); } }); return gt(r, (i) => ({ @@ -72800,7 +72822,7 @@ function PFt(t) { tokenTypes: [i] })); } -function $Ft(t) { +function BFt(t) { const e = Qn(t, (n) => n.PATTERN.test("")); return gt(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", @@ -72808,9 +72830,9 @@ function $Ft(t) { tokenTypes: [n] })); } -const BFt = /[^\\[][\^]|^\^/; -function FFt(t) { - class e extends fC { +const FFt = /[^\\[][\^]|^\^/; +function zFt(t) { + class e extends dC { constructor() { super(...arguments), this.found = !1; } @@ -72821,10 +72843,10 @@ function FFt(t) { const r = Qn(t, (i) => { const s = i.PATTERN; try { - const a = mC(s), o = new e(); + const a = vC(s), o = new e(); return o.visit(a), o.found; } catch { - return BFt.test(s.source); + return FFt.test(s.source); } }); return gt(r, (i) => ({ @@ -72835,7 +72857,7 @@ function FFt(t) { tokenTypes: [i] })); } -function zFt(t) { +function VFt(t) { const e = Qn(t, (n) => { const i = n[b0]; return i instanceof RegExp && (i.multiline || i.global); @@ -72846,9 +72868,9 @@ function zFt(t) { tokenTypes: [n] })); } -function VFt(t) { +function UFt(t) { const e = []; - let r = gt(t, (s) => gi(t, (a, o) => (s.PATTERN.source === o.PATTERN.source && !pa(e, o) && o.PATTERN !== Na.NA && (e.push(o), a.push(o)), a), [])); + let r = gt(t, (s) => gi(t, (a, o) => (s.PATTERN.source === o.PATTERN.source && !pa(e, o) && o.PATTERN !== Ia.NA && (e.push(o), a.push(o)), a), [])); r = _x(r); const n = Qn(r, (s) => s.length > 1); return gt(n, (s) => { @@ -72860,12 +72882,12 @@ function VFt(t) { }; }); } -function UFt(t) { +function qFt(t) { const e = Qn(t, (n) => { if (!yt(n, "GROUP")) return !1; const i = n.GROUP; - return i !== Na.SKIPPED && i !== Na.NA && !$a(i); + return i !== Ia.SKIPPED && i !== Ia.NA && !Ba(i); }); return gt(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String", @@ -72873,7 +72895,7 @@ function UFt(t) { tokenTypes: [n] })); } -function qFt(t, e) { +function QFt(t, e) { const r = Qn(t, (i) => i.PUSH_MODE !== void 0 && !pa(e, i.PUSH_MODE)); return gt(r, (i) => ({ message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`, @@ -72881,14 +72903,14 @@ function qFt(t, e) { tokenTypes: [i] })); } -function QFt(t) { +function YFt(t) { const e = [], r = gi(t, (n, i, s) => { const a = i.PATTERN; - return a === Na.NA || ($a(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && WFt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; + return a === Ia.NA || (Ba(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && GFt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; }, []); return $e(t, (n, i) => { $e(r, ({ str: s, idx: a, tokenType: o }) => { - if (i < a && YFt(s, n.PATTERN)) { + if (i < a && WFt(s, n.PATTERN)) { const l = `Token: ->${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; @@ -72901,7 +72923,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; }); }), e; } -function YFt(t, e) { +function WFt(t, e) { if (Zu(e)) { const r = e.exec(t); return r !== null && r.index === 0; @@ -72915,7 +72937,7 @@ function YFt(t, e) { throw Error("non exhaustive match"); } } -function WFt(t) { +function GFt(t) { return Xu([ ".", "\\", @@ -72932,15 +72954,15 @@ function WFt(t) { "{" ], (r) => t.source.indexOf(r) !== -1) === void 0; } -function rW(t) { +function nW(t) { const e = t.ignoreCase ? "i" : ""; return new RegExp(`^(?:${t.source})`, e); } -function nW(t) { +function iW(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } -function GFt(t, e, r) { +function HFt(t, e, r) { const n = []; return yt(t, Ev) || n.push({ message: "A MultiMode Lexer cannot be initialized without a <" + Ev + `> property in its definition @@ -72975,15 +72997,15 @@ function GFt(t, e, r) { }); }), n; } -function HFt(t, e, r) { +function XFt(t, e, r) { const n = []; let i = !1; - const s = _x(Yi(Kr(t.modes))), a = tC(s, (l) => l[b0] === Na.NA), o = Nde(r); + const s = _x(Yi(Kr(t.modes))), a = rC(s, (l) => l[b0] === Ia.NA), o = Ide(r); return e && $e(a, (l) => { - const u = Dde(l, o); + const u = Nde(l, o); if (u !== !1) { const f = { - message: KFt(l, u), + message: JFt(l, u), type: u.issue, tokenType: l }; @@ -72999,7 +73021,7 @@ function HFt(t, e, r) { type: qn.NO_LINE_BREAKS_FLAGS }), n; } -function XFt(t) { +function ZFt(t) { const e = {}, r = ki(t); return $e(r, (n) => { const i = t[n]; @@ -73009,7 +73031,7 @@ function XFt(t) { throw Error("non exhaustive match"); }), e; } -function Mde(t) { +function Dde(t) { const e = t.PATTERN; if (Zu(e)) return !1; @@ -73017,14 +73039,14 @@ function Mde(t) { return !0; if (yt(e, "exec")) return !0; - if ($a(e)) + if (Ba(e)) return !1; throw Error("non exhaustive match"); } -function ZFt(t) { - return $a(t) && t.length === 1 ? t.charCodeAt(0) : !1; +function jFt(t) { + return Ba(t) && t.length === 1 ? t.charCodeAt(0) : !1; } -const jFt = { +const KFt = { test: function(t) { const e = t.length; for (let r = this.lastIndex; r < e; r++) { @@ -73038,7 +73060,7 @@ const jFt = { }, lastIndex: 0 }; -function Dde(t, e) { +function Nde(t, e) { if (yt(t, "LINE_BREAKS")) return !1; if (Zu(t.PATTERN)) { @@ -73052,14 +73074,14 @@ function Dde(t, e) { } return !1; } else { - if ($a(t.PATTERN)) + if (Ba(t.PATTERN)) return !1; - if (Mde(t)) + if (Dde(t)) return { issue: qn.CUSTOM_LINE_BREAK }; throw Error("non exhaustive match"); } } -function KFt(t, e) { +function JFt(t, e) { if (e.issue === qn.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern. The problem is in the <${t.name}> Token Type @@ -73071,10 +73093,10 @@ function KFt(t, e) { For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`; throw Error("non exhaustive match"); } -function Nde(t) { - return gt(t, (r) => $a(r) ? r.charCodeAt(0) : r); +function Ide(t) { + return gt(t, (r) => Ba(r) ? r.charCodeAt(0) : r); } -function P_(t, e, r) { +function $_(t, e, r) { t[e] === void 0 ? t[e] = [r] : t[e].push(r); } const _v = 256; @@ -73082,7 +73104,7 @@ let X4 = []; function Cf(t) { return t < _v ? t : X4[t]; } -function JFt() { +function ezt() { if ($r(X4)) { X4 = new Array(65536); for (let t = 0; t < 65536; t++) @@ -73093,67 +73115,67 @@ function Nx(t, e) { const r = t.tokenTypeIdx; return r === e.tokenTypeIdx ? !0 : e.isParent === !0 && e.categoryMatchesMap[r] === !0; } -function kk(t, e) { +function Sk(t, e) { return t.tokenTypeIdx === e.tokenTypeIdx; } -let iW = 1; -const Ide = {}; +let sW = 1; +const Pde = {}; function Ix(t) { - const e = ezt(t); - tzt(e), nzt(e), rzt(e), $e(e, (r) => { + const e = tzt(t); + rzt(e), izt(e), nzt(e), $e(e, (r) => { r.isParent = r.categoryMatches.length > 0; }); } -function ezt(t) { - let e = Di(t), r = t, n = !0; +function tzt(t) { + let e = Ni(t), r = t, n = !0; for (; n; ) { r = _x(Yi(gt(r, (s) => s.CATEGORIES))); - const i = JT(r, e); + const i = eC(r, e); e = e.concat(i), $r(i) ? n = !1 : r = i; } return e; } -function tzt(t) { +function rzt(t) { $e(t, (e) => { - $de(e) || (Ide[iW] = e, e.tokenTypeIdx = iW++), sW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), sW(e) || (e.CATEGORIES = []), izt(e) || (e.categoryMatches = []), szt(e) || (e.categoryMatchesMap = {}); + Bde(e) || (Pde[sW] = e, e.tokenTypeIdx = sW++), aW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), aW(e) || (e.CATEGORIES = []), szt(e) || (e.categoryMatches = []), azt(e) || (e.categoryMatchesMap = {}); }); } -function rzt(t) { +function nzt(t) { $e(t, (e) => { e.categoryMatches = [], $e(e.categoryMatchesMap, (r, n) => { - e.categoryMatches.push(Ide[n].tokenTypeIdx); + e.categoryMatches.push(Pde[n].tokenTypeIdx); }); }); } -function nzt(t) { +function izt(t) { $e(t, (e) => { - Pde([], e); + $de([], e); }); } -function Pde(t, e) { +function $de(t, e) { $e(t, (r) => { e.categoryMatchesMap[r.tokenTypeIdx] = !0; }), $e(e.CATEGORIES, (r) => { const n = t.concat(e); - pa(n, r) || Pde(n, r); + pa(n, r) || $de(n, r); }); } -function $de(t) { +function Bde(t) { return yt(t, "tokenTypeIdx"); } -function sW(t) { +function aW(t) { return yt(t, "CATEGORIES"); } -function izt(t) { +function szt(t) { return yt(t, "categoryMatches"); } -function szt(t) { +function azt(t) { return yt(t, "categoryMatchesMap"); } -function azt(t) { +function ozt(t) { return yt(t, "tokenTypeIdx"); } -const ozt = { +const lzt = { buildUnableToPopLexerModeMessage(t) { return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; }, @@ -73173,20 +73195,20 @@ const Av = { `, "\r"], ensureOptimizations: !1, safeMode: !1, - errorMessageProvider: ozt, + errorMessageProvider: lzt, traceInitPerf: !1, skipValidations: !1, recoveryEnabled: !0 }; Object.freeze(Av); -class Na { +class Ia { constructor(e, r = Av) { if (this.lexerDefinition = e, this.lexerDefinitionErrors = [], this.lexerDefinitionWarning = [], this.patternIdxToConfig = {}, this.charCodeToPatternIdxToConfig = {}, this.modes = [], this.emptyGroups = {}, this.trackStartLines = !0, this.trackEndLines = !0, this.hasCustom = !1, this.canModeBeOptimized = {}, this.TRACE_INIT = (i, s) => { if (this.traceInitPerf === !0) { this.traceInitIndent++; const a = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${a}--> <${i}>`); - const { time: o, value: l } = Ede(s), u = o > 10 ? console.warn : console.log; + const { time: o, value: l } = _de(s), u = o > 10 ? console.warn : console.log; return this.traceInitIndent < this.traceInitMaxIdent && u(`${a}<-- <${i}> time: ${o}ms`), this.traceInitIndent--, l; } else return s(); @@ -73199,33 +73221,33 @@ a boolean 2nd argument is no longer supported`); let i, s = !0; this.TRACE_INIT("Lexer Config handling", () => { if (this.config.lineTerminatorsPattern === Av.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = jFt; + this.config.lineTerminatorsPattern = KFt; else if (this.config.lineTerminatorCharacters === Av.lineTerminatorCharacters) throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`); if (r.safeMode && r.ensureOptimizations) throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.'); this.trackStartLines = /full|onlyStart/i.test(this.config.positionTracking), this.trackEndLines = /full/i.test(this.config.positionTracking), Sr(e) ? i = { - modes: { defaultMode: Di(e) }, + modes: { defaultMode: Ni(e) }, defaultMode: Ev - } : (s = !1, i = Di(e)); + } : (s = !1, i = Ni(e)); }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(GFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(HFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(HFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(XFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); })), i.modes = i.modes ? i.modes : {}, $e(i.modes, (o, l) => { - i.modes[l] = tC(o, (u) => qr(u)); + i.modes[l] = rC(o, (u) => qr(u)); }); const a = ki(i.modes); if ($e(i.modes, (o, l) => { this.TRACE_INIT(`Mode: <${l}> processing`, () => { if (this.modes.push(l), this.config.skipValidations === !1 && this.TRACE_INIT("validatePatterns", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(RFt(o, a)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(MFt(o, a)); }), $r(this.lexerDefinitionErrors)) { Ix(o); let u; this.TRACE_INIT("analyzeTokenTypes", () => { - u = LFt(o, { + u = RFt(o, { lineTerminatorCharacters: this.config.lineTerminatorCharacters, positionTracking: r.positionTracking, ensureOptimizations: r.ensureOptimizations, @@ -73242,9 +73264,9 @@ a boolean 2nd argument is no longer supported`); ` + l); } $e(this.lexerDefinitionWarning, (o) => { - Cde(o.message); + Ede(o.message); }), this.TRACE_INIT("Choosing sub-methods implementations", () => { - if (Rde ? (this.chopInput = Yu, this.match = this.matchWithTest) : (this.updateLastIndex = vi, this.match = this.matchWithExec), s && (this.handleModes = vi), this.trackStartLines === !1 && (this.computeNewColumn = Yu), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = vi), /full/i.test(this.config.positionTracking)) + if (Mde ? (this.chopInput = Yu, this.match = this.matchWithTest) : (this.updateLastIndex = vi, this.match = this.matchWithExec), s && (this.handleModes = vi), this.trackStartLines === !1 && (this.computeNewColumn = Yu), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = vi), /full/i.test(this.config.positionTracking)) this.createTokenInstance = this.createFullToken; else if (/onlyStart/i.test(this.config.positionTracking)) this.createTokenInstance = this.createStartOnlyToken; @@ -73260,9 +73282,9 @@ a boolean 2nd argument is no longer supported`); Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`); }), this.TRACE_INIT("clearRegExpParserCache", () => { - CFt(); + EFt(); }), this.TRACE_INIT("toFastProperties", () => { - _de(this); + Ade(this); }); }); } @@ -73279,9 +73301,9 @@ a boolean 2nd argument is no longer supported`); let n, i, s, a, o, l, u, h, f, d, p, g, m, v, y; const b = e, w = b.length; let O = 0, S = 0; - const C = this.hasCustom ? 0 : Math.floor(e.length / 10), T = new Array(C), L = []; - let E = this.trackStartLines ? 1 : void 0, A = this.trackStartLines ? 1 : void 0; - const _ = XFt(this.emptyGroups), R = this.trackStartLines, $ = this.config.lineTerminatorsPattern; + const C = this.hasCustom ? 0 : Math.floor(e.length / 10), T = new Array(C), A = []; + let E = this.trackStartLines ? 1 : void 0, L = this.trackStartLines ? 1 : void 0; + const _ = ZFt(this.emptyGroups), R = this.trackStartLines, $ = this.config.lineTerminatorsPattern; let k = 0, N = [], M = []; const I = [], D = []; Object.freeze(D); @@ -73296,7 +73318,7 @@ a boolean 2nd argument is no longer supported`); const V = (Y) => { if (I.length === 1 && Y.tokenType.PUSH_MODE === void 0) { const ne = this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Y); - L.push({ + A.push({ offset: Y.startOffset, line: Y.startLine, column: Y.startColumn, @@ -73342,17 +73364,17 @@ a boolean 2nd argument is no longer supported`); } } if (l !== null) { - if (f = l.length, d = W.group, d !== void 0 && (p = W.tokenTypeIdx, g = this.createTokenInstance(l, O, p, W.tokenType, E, A, f), this.handlePayload(g, u), d === !1 ? S = this.addToken(T, S, g) : _[d].push(g)), e = this.chopInput(e, f), O = O + f, A = this.computeNewColumn(A, f), R === !0 && W.canLineTerminator === !0) { + if (f = l.length, d = W.group, d !== void 0 && (p = W.tokenTypeIdx, g = this.createTokenInstance(l, O, p, W.tokenType, E, L, f), this.handlePayload(g, u), d === !1 ? S = this.addToken(T, S, g) : _[d].push(g)), e = this.chopInput(e, f), O = O + f, L = this.computeNewColumn(L, f), R === !0 && W.canLineTerminator === !0) { let U = 0, Z, G; $.lastIndex = 0; do Z = $.test(l), Z === !0 && (G = $.lastIndex - 1, U++); while (Z === !0); - U !== 0 && (E = E + U, A = f - G, this.updateTokenEndLineColumnLocation(g, d, G, U, E, A, f)); + U !== 0 && (E = E + U, L = f - G, this.updateTokenEndLineColumnLocation(g, d, G, U, E, L, f)); } this.handleModes(W, V, Q, g); } else { - const U = O, Z = E, G = A; + const U = O, Z = E, G = L; let j = ee === !1; for (; j === !1 && O < w; ) for (e = this.chopInput(e, 1), O++, i = 0; i < k; i++) { @@ -73360,7 +73382,7 @@ a boolean 2nd argument is no longer supported`); if (K !== !1 ? b.charCodeAt(O) === K && (j = !0) : ae.isCustom === !0 ? j = se.exec(b, O, T, _) !== null : (this.updateLastIndex(se, O), j = se.exec(e) !== null), j === !0) break; } - if (m = O - U, A = this.computeNewColumn(A, m), v = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(b, U, m, Z, G), L.push({ + if (m = O - U, L = this.computeNewColumn(L, m), v = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(b, U, m, Z, G), A.push({ offset: U, line: Z, column: G, @@ -73373,7 +73395,7 @@ a boolean 2nd argument is no longer supported`); return this.hasCustom || (T.length = S), { tokens: T, groups: _, - errors: L + errors: A }; } handleModes(e, r, n, i) { @@ -73446,26 +73468,26 @@ a boolean 2nd argument is no longer supported`); return n !== null ? n[0] : null; } } -Na.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; -Na.NA = /NOT_APPLICABLE/; +Ia.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; +Ia.NA = /NOT_APPLICABLE/; function cg(t) { - return Bde(t) ? t.LABEL : t.name; + return Fde(t) ? t.LABEL : t.name; } -function Bde(t) { - return $a(t.LABEL) && t.LABEL !== ""; -} -const lzt = "parent", aW = "categories", oW = "label", lW = "group", cW = "push_mode", uW = "pop_mode", hW = "longer_alt", fW = "line_breaks", dW = "start_chars_hint"; function Fde(t) { - return czt(t); + return Ba(t.LABEL) && t.LABEL !== ""; } -function czt(t) { +const czt = "parent", oW = "categories", lW = "label", cW = "group", uW = "push_mode", hW = "pop_mode", fW = "longer_alt", dW = "line_breaks", pW = "start_chars_hint"; +function zde(t) { + return uzt(t); +} +function uzt(t) { const e = t.pattern, r = {}; - if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, lzt)) + if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, czt)) throw `The parent property is no longer supported. See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; - return yt(t, aW) && (r.CATEGORIES = t[aW]), Ix([r]), yt(t, oW) && (r.LABEL = t[oW]), yt(t, lW) && (r.GROUP = t[lW]), yt(t, uW) && (r.POP_MODE = t[uW]), yt(t, cW) && (r.PUSH_MODE = t[cW]), yt(t, hW) && (r.LONGER_ALT = t[hW]), yt(t, fW) && (r.LINE_BREAKS = t[fW]), yt(t, dW) && (r.START_CHARS_HINT = t[dW]), r; + return yt(t, oW) && (r.CATEGORIES = t[oW]), Ix([r]), yt(t, lW) && (r.LABEL = t[lW]), yt(t, cW) && (r.GROUP = t[cW]), yt(t, hW) && (r.POP_MODE = t[hW]), yt(t, uW) && (r.PUSH_MODE = t[uW]), yt(t, fW) && (r.LONGER_ALT = t[fW]), yt(t, dW) && (r.LINE_BREAKS = t[dW]), yt(t, pW) && (r.START_CHARS_HINT = t[pW]), r; } -const Ef = Fde({ name: "EOF", pattern: Na.NA }); +const Ef = zde({ name: "EOF", pattern: Ia.NA }); Ix([Ef]); function wI(t, e, r, n, i, s, a, o) { return { @@ -73480,12 +73502,12 @@ function wI(t, e, r, n, i, s, a, o) { tokenType: t }; } -function zde(t, e) { +function Vde(t, e) { return Nx(t, e); } const Fp = { buildMismatchTokenMessage({ expected: t, actual: e, previous: r, ruleName: n }) { - return `Expecting ${Bde(t) ? `--> ${cg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; + return `Expecting ${Fde(t) ? `--> ${cg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; }, buildNotAllInputParsedMessage({ firstRedundant: t, ruleName: e }) { return "Redundant input, expecting EOF but found: " + t.image; @@ -73515,7 +73537,7 @@ but found: '` + Bl(e).image + "'"; } }; Object.freeze(Fp); -const uzt = { +const hzt = { buildRuleNotFoundError(t, e) { return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- inside top level rule: ->` + t.name + "<-"; @@ -73590,11 +73612,11 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`; return t.topLevelRule instanceof om ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; } }; -function hzt(t, e) { - const r = new fzt(t, e); +function fzt(t, e) { + const r = new dzt(t, e); return r.resolveRefs(), r.errors; } -class fzt extends lm { +class dzt extends lm { constructor(e, r) { super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; } @@ -73618,14 +73640,14 @@ class fzt extends lm { } } } -class dzt extends gC { +class pzt extends mC { constructor(e, r) { super(), this.topProd = e, this.path = r, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1; } startWalking() { if (this.found = !1, this.path.ruleStack[0] !== this.topProd.name) throw Error("The path does not start with the walker's top Rule!"); - return this.ruleStack = Di(this.path.ruleStack).reverse(), this.occurrenceStack = Di(this.path.occurrenceStack).reverse(), this.ruleStack.pop(), this.occurrenceStack.pop(), this.updateExpectedNext(), this.walk(this.topProd), this.possibleTokTypes; + return this.ruleStack = Ni(this.path.ruleStack).reverse(), this.occurrenceStack = Ni(this.path.occurrenceStack).reverse(), this.ruleStack.pop(), this.occurrenceStack.pop(), this.updateExpectedNext(), this.walk(this.topProd), this.possibleTokTypes; } walk(e, r = []) { this.found || super.walk(e, r); @@ -73640,18 +73662,18 @@ class dzt extends gC { $r(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); } } -class pzt extends dzt { +class gzt extends pzt { constructor(e, r) { super(e, r), this.path = r, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence; } walkTerminal(e, r, n) { if (this.isAtEndOfPath && e.terminalType.name === this.nextTerminalName && e.idx === this.nextTerminalOccurrence && !this.found) { - const i = r.concat(n), s = new Ba({ definition: i }); + const i = r.concat(n), s = new Fa({ definition: i }); this.possibleTokTypes = Dx(s), this.found = !0; } } } -class vC extends gC { +class yC extends mC { constructor(e, r) { super(), this.topRule = e, this.occurrence = r, this.result = { token: void 0, @@ -73663,7 +73685,7 @@ class vC extends gC { return this.walk(this.topRule), this.result; } } -class gzt extends vC { +class mzt extends yC { walkMany(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73672,7 +73694,7 @@ class gzt extends vC { super.walkMany(e, r, n); } } -class pW extends vC { +class gW extends yC { walkManySep(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73681,7 +73703,7 @@ class pW extends vC { super.walkManySep(e, r, n); } } -class mzt extends vC { +class vzt extends yC { walkAtLeastOne(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73690,7 +73712,7 @@ class mzt extends vC { super.walkAtLeastOne(e, r, n); } } -class gW extends vC { +class mW extends yC { walkAtLeastOneSep(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73699,19 +73721,19 @@ class gW extends vC { super.walkAtLeastOneSep(e, r, n); } } -function HL(t, e, r = []) { - r = Di(r); +function XL(t, e, r = []) { + r = Ni(r); let n = [], i = 0; function s(o) { return o.concat(es(t, i + 1)); } function a(o) { - const l = HL(s(o), e, r); + const l = XL(s(o), e, r); return n.concat(l); } for (; r.length < e && i < t.length; ) { const o = t[i]; - if (o instanceof Ba) + if (o instanceof Fa) return a(o.definition); if (o instanceof ua) return a(o.definition); @@ -73726,13 +73748,13 @@ function HL(t, e, r = []) { return a(l); } else if (o instanceof vo) { const l = [ - new Ba({ definition: o.definition }), + new Fa({ definition: o.definition }), new Un({ definition: [new wn({ terminalType: o.separator })].concat(o.definition) }) ]; return a(l); - } else if (o instanceof qa) { + } else if (o instanceof Qa) { const l = o.definition.concat([ new Un({ definition: [new wn({ terminalType: o.separator })].concat(o.definition) @@ -73747,7 +73769,7 @@ function HL(t, e, r = []) { ]); n = a(l); } else { - if (o instanceof Qa) + if (o instanceof Ya) return $e(o.definition, (l) => { $r(l.definition) === !1 && (n = a(l.definition)); }), n; @@ -73763,7 +73785,7 @@ function HL(t, e, r = []) { suffixDef: es(t, i) }), n; } -function Vde(t, e, r, n) { +function Ude(t, e, r, n) { const i = "EXIT_NONE_TERMINAL", s = [i], a = "EXIT_ALTERNATIVE"; let o = !1; const l = e.length, u = l - n - 1, h = [], f = []; @@ -73812,9 +73834,9 @@ function Vde(t, e, r, n) { else throw Error("non exhaustive match"); else if (y instanceof ua) { - const b = Di(m); + const b = Ni(m); b.push(y.nonTerminalName); - const w = Di(v); + const w = Ni(v); w.push(y.idx); const O = { idx: g, @@ -73862,7 +73884,7 @@ function Vde(t, e, r, n) { occurrenceStack: v }; f.push(S); - } else if (y instanceof qa) { + } else if (y instanceof Qa) { const b = { idx: g, def: es(p), @@ -73900,7 +73922,7 @@ function Vde(t, e, r, n) { occurrenceStack: v }; f.push(S); - } else if (y instanceof Qa) + } else if (y instanceof Ya) for (let b = y.definition.length - 1; b >= 0; b--) { const w = y.definition[b], O = { idx: g, @@ -73910,7 +73932,7 @@ function Vde(t, e, r, n) { }; f.push(O), f.push(a); } - else if (y instanceof Ba) + else if (y instanceof Fa) f.push({ idx: g, def: y.definition.concat(es(p)), @@ -73918,16 +73940,16 @@ function Vde(t, e, r, n) { occurrenceStack: v }); else if (y instanceof om) - f.push(vzt(y, g, m, v)); + f.push(yzt(y, g, m, v)); else throw Error("non exhaustive match"); } return h; } -function vzt(t, e, r, n) { - const i = Di(r); +function yzt(t, e, r, n) { + const i = Ni(r); i.push(t.name); - const s = Di(n); + const s = Ni(n); return s.push(1), { idx: e, def: t.definition, @@ -73948,25 +73970,25 @@ function OI(t) { return Dn.REPETITION_MANDATORY; if (t instanceof vo || t === "RepetitionMandatoryWithSeparator") return Dn.REPETITION_MANDATORY_WITH_SEPARATOR; - if (t instanceof qa || t === "RepetitionWithSeparator") + if (t instanceof Qa || t === "RepetitionWithSeparator") return Dn.REPETITION_WITH_SEPARATOR; - if (t instanceof Qa || t === "Alternation") + if (t instanceof Ya || t === "Alternation") return Dn.ALTERNATION; throw Error("non exhaustive match"); } -function mW(t) { +function vW(t) { const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = OI(n); - return s === Dn.ALTERNATION ? yC(e, r, i) : bC(e, r, s, i); + return s === Dn.ALTERNATION ? bC(e, r, i) : xC(e, r, s, i); } -function yzt(t, e, r, n, i, s) { - const a = yC(t, e, r), o = Qde(a) ? kk : Nx; +function bzt(t, e, r, n, i, s) { + const a = bC(t, e, r), o = Yde(a) ? Sk : Nx; return s(a, n, o, i); } -function bzt(t, e, r, n, i, s) { - const a = bC(t, e, i, r), o = Qde(a) ? kk : Nx; +function xzt(t, e, r, n, i, s) { + const a = xC(t, e, i, r), o = Yde(a) ? Sk : Nx; return s(a[0], o, n); } -function xzt(t, e, r, n) { +function wzt(t, e, r, n) { const i = t.length, s = Tl(t, (a) => Tl(a, (o) => o.length === 1)); if (e) return function(a) { @@ -74014,7 +74036,7 @@ function xzt(t, e, r, n) { } }; } -function wzt(t, e, r) { +function Ozt(t, e, r) { const n = Tl(t, (s) => s.length === 1), i = t.length; if (n && !r) { const s = Yi(t); @@ -74047,7 +74069,7 @@ function wzt(t, e, r) { return !1; }; } -class Ozt extends gC { +class kzt extends mC { constructor(e, r, n) { super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; } @@ -74073,7 +74095,7 @@ class Ozt extends gC { this.checkIsTarget(e, Dn.REPETITION_WITH_SEPARATOR, r, n) || super.walkOption(e, r, n); } } -class Ude extends lm { +class qde extends lm { constructor(e, r, n) { super(), this.targetOccurrence = e, this.targetProdType = r, this.targetRef = n, this.result = []; } @@ -74099,13 +74121,13 @@ class Ude extends lm { this.checkIsTarget(e, Dn.ALTERNATION); } } -function vW(t) { +function yW(t) { const e = new Array(t); for (let r = 0; r < t; r++) e[r] = []; return e; } -function $_(t) { +function B_(t) { let e = [""]; for (let r = 0; r < t.length; r++) { const n = t[r], i = []; @@ -74121,7 +74143,7 @@ function $_(t) { } return e; } -function kzt(t, e, r) { +function Szt(t, e, r) { for (let n = 0; n < t.length; n++) { if (n === r) continue; @@ -74134,11 +74156,11 @@ function kzt(t, e, r) { } return !0; } -function qde(t, e) { - const r = gt(t, (a) => HL([a], 1)), n = vW(r.length), i = gt(r, (a) => { +function Qde(t, e) { + const r = gt(t, (a) => XL([a], 1)), n = yW(r.length), i = gt(r, (a) => { const o = {}; return $e(a, (l) => { - const u = $_(l.partialPath); + const u = B_(l.partialPath); $e(u, (h) => { o[h] = !0; }); @@ -74147,14 +74169,14 @@ function qde(t, e) { let s = r; for (let a = 1; a <= e; a++) { const o = s; - s = vW(o.length); + s = yW(o.length); for (let l = 0; l < o.length; l++) { const u = o[l]; for (let h = 0; h < u.length; h++) { - const f = u[h].partialPath, d = u[h].suffixDef, p = $_(f); - if (kzt(i, p, l) || $r(d) || f.length === e) { + const f = u[h].partialPath, d = u[h].suffixDef, p = B_(f); + if (Szt(i, p, l) || $r(d) || f.length === e) { const m = n[l]; - if (XL(m, f) === !1) { + if (ZL(m, f) === !1) { m.push(f); for (let v = 0; v < p.length; v++) { const y = p[v]; @@ -74162,9 +74184,9 @@ function qde(t, e) { } } } else { - const m = HL(d, a + 1, f); + const m = XL(d, a + 1, f); s[l] = s[l].concat(m), $e(m, (v) => { - const y = $_(v.partialPath); + const y = B_(v.partialPath); $e(y, (b) => { i[l][b] = !0; }); @@ -74175,17 +74197,17 @@ function qde(t, e) { } return n; } -function yC(t, e, r, n) { - const i = new Ude(t, Dn.ALTERNATION, n); - return e.accept(i), qde(i.result, r); -} function bC(t, e, r, n) { - const i = new Ude(t, r); + const i = new qde(t, Dn.ALTERNATION, n); + return e.accept(i), Qde(i.result, r); +} +function xC(t, e, r, n) { + const i = new qde(t, r); e.accept(i); - const s = i.result, o = new Ozt(e, t, r).startWalking(), l = new Ba({ definition: s }), u = new Ba({ definition: o }); - return qde([l, u], n); + const s = i.result, o = new kzt(e, t, r).startWalking(), l = new Fa({ definition: s }), u = new Fa({ definition: o }); + return Qde([l, u], n); } -function XL(t, e) { +function ZL(t, e) { e: for (let r = 0; r < t.length; r++) { const n = t[r]; @@ -74200,16 +74222,16 @@ function XL(t, e) { } return !1; } -function Szt(t, e) { +function Tzt(t, e) { return t.length < e.length && Tl(t, (r, n) => { const i = e[n]; return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; }); } -function Qde(t) { +function Yde(t) { return Tl(t, (e) => Tl(e, (r) => Tl(r, (n) => $r(n.categoryMatches)))); } -function Tzt(t) { +function Czt(t) { const e = t.lookaheadStrategy.validate({ rules: t.rules, tokenTypes: t.tokenTypes, @@ -74217,14 +74239,14 @@ function Tzt(t) { }); return gt(e, (r) => Object.assign({ type: ha.CUSTOM_LOOKAHEAD_VALIDATION }, r)); } -function Czt(t, e, r, n) { - const i = oo(t, (l) => Ezt(l, r)), s = Fzt(t, e, r), a = oo(t, (l) => Izt(l, r)), o = oo(t, (l) => Lzt(l, t, n, r)); +function Ezt(t, e, r, n) { + const i = oo(t, (l) => _zt(l, r)), s = zzt(t, e, r), a = oo(t, (l) => Pzt(l, r)), o = oo(t, (l) => Rzt(l, t, n, r)); return i.concat(s, a, o); } -function Ezt(t, e) { - const r = new Azt(); +function _zt(t, e) { + const r = new Lzt(); t.accept(r); - const n = r.allProductions, i = bMt(n, _zt), s = Hl(i, (o) => o.length > 1); + const n = r.allProductions, i = xMt(n, Azt), s = Hl(i, (o) => o.length > 1); return gt(Kr(s), (o) => { const l = Bl(o), u = e.buildDuplicateFoundError(t, o), h = uc(l), f = { message: u, @@ -74232,17 +74254,17 @@ function Ezt(t, e) { ruleName: t.name, dslName: h, occurrence: l.idx - }, d = Yde(l); + }, d = Wde(l); return d && (f.parameter = d), f; }); } -function _zt(t) { - return `${uc(t)}_#_${t.idx}_#_${Yde(t)}`; +function Azt(t) { + return `${uc(t)}_#_${t.idx}_#_${Wde(t)}`; } -function Yde(t) { +function Wde(t) { return t instanceof wn ? t.terminalType.name : t instanceof ua ? t.nonTerminalName : ""; } -class Azt extends lm { +class Lzt extends lm { constructor() { super(...arguments), this.allProductions = []; } @@ -74271,7 +74293,7 @@ class Azt extends lm { this.allProductions.push(e); } } -function Lzt(t, e, r, n) { +function Rzt(t, e, r, n) { const i = []; if (gi(e, (a, o) => o.name === t.name ? a + 1 : a, 0) > 1) { const a = n.buildDuplicateRuleNameError({ @@ -74286,7 +74308,7 @@ function Lzt(t, e, r, n) { } return i; } -function Rzt(t, e, r) { +function Mzt(t, e, r) { const n = []; let i; return pa(e, t) || (i = `Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `, n.push({ @@ -74295,7 +74317,7 @@ function Rzt(t, e, r) { ruleName: t })), n; } -function Wde(t, e, r, n = []) { +function Gde(t, e, r, n = []) { const i = [], s = Z4(e.definition); if ($r(s)) return []; @@ -74309,9 +74331,9 @@ function Wde(t, e, r, n = []) { type: ha.LEFT_RECURSION, ruleName: a }); - const l = JT(s, n.concat([t])), u = oo(l, (h) => { - const f = Di(n); - return f.push(h), Wde(t, h, r, f); + const l = eC(s, n.concat([t])), u = oo(l, (h) => { + const f = Ni(n); + return f.push(h), Gde(t, h, r, f); }); return i.concat(u); } @@ -74323,13 +74345,13 @@ function Z4(t) { const r = Bl(t); if (r instanceof ua) e.push(r.referencedRule); - else if (r instanceof Ba || r instanceof fs || r instanceof mo || r instanceof vo || r instanceof qa || r instanceof Un) + else if (r instanceof Fa || r instanceof fs || r instanceof mo || r instanceof vo || r instanceof Qa || r instanceof Un) e = e.concat(Z4(r.definition)); - else if (r instanceof Qa) + else if (r instanceof Ya) e = Yi(gt(r.definition, (s) => Z4(s.definition))); else if (!(r instanceof wn)) throw Error("non exhaustive match"); - const n = wk(r), i = t.length > 1; + const n = Ok(r), i = t.length > 1; if (n && i) { const s = es(t); return e.concat(Z4(s)); @@ -74344,14 +74366,14 @@ class kI extends lm { this.alternations.push(e); } } -function Mzt(t, e) { +function Dzt(t, e) { const r = new kI(); t.accept(r); const n = r.alternations; return oo(n, (s) => { const a = T2(s.definition); return oo(a, (o, l) => { - const u = Vde([o], [], Nx, 1); + const u = Ude([o], [], Nx, 1); return $r(u) ? [ { message: e.buildEmptyAlternationError({ @@ -74368,16 +74390,16 @@ function Mzt(t, e) { }); }); } -function Dzt(t, e, r) { +function Nzt(t, e, r) { const n = new kI(); t.accept(n); let i = n.alternations; - return i = tC(i, (a) => a.ignoreAmbiguities === !0), oo(i, (a) => { - const o = a.idx, l = a.maxLookahead || e, u = yC(o, t, l, a), h = $zt(u, a, t, r), f = Bzt(u, a, t, r); + return i = rC(i, (a) => a.ignoreAmbiguities === !0), oo(i, (a) => { + const o = a.idx, l = a.maxLookahead || e, u = bC(o, t, l, a), h = Bzt(u, a, t, r), f = Fzt(u, a, t, r); return h.concat(f); }); } -class Nzt extends lm { +class Izt extends lm { constructor() { super(...arguments), this.allProductions = []; } @@ -74394,7 +74416,7 @@ class Nzt extends lm { this.allProductions.push(e); } } -function Izt(t, e) { +function Pzt(t, e) { const r = new kI(); t.accept(r); const n = r.alternations; @@ -74410,14 +74432,14 @@ function Izt(t, e) { } ] : []); } -function Pzt(t, e, r) { +function $zt(t, e, r) { const n = []; return $e(t, (i) => { - const s = new Nzt(); + const s = new Izt(); i.accept(s); const a = s.allProductions; $e(a, (o) => { - const l = OI(o), u = o.maxLookahead || e, h = o.idx, d = bC(h, i, l, u)[0]; + const l = OI(o), u = o.maxLookahead || e, h = o.idx, d = xC(h, i, l, u)[0]; if ($r(Yi(d))) { const p = r.buildEmptyRepetitionError({ topLevelRule: i, @@ -74432,12 +74454,12 @@ function Pzt(t, e, r) { }); }), n; } -function $zt(t, e, r, n) { +function Bzt(t, e, r, n) { const i = [], s = gi(t, (o, l, u) => (e.definition[u].ignoreAmbiguities === !0 || $e(l, (h) => { const f = [u]; $e(t, (d, p) => { - u !== p && XL(d, h) && e.definition[p].ignoreAmbiguities !== !0 && f.push(p); - }), f.length > 1 && !XL(i, h) && (i.push(h), o.push({ + u !== p && ZL(d, h) && e.definition[p].ignoreAmbiguities !== !0 && f.push(p); + }), f.length > 1 && !ZL(i, h) && (i.push(h), o.push({ alts: f, path: h })); @@ -74458,7 +74480,7 @@ function $zt(t, e, r, n) { }; }); } -function Bzt(t, e, r, n) { +function Fzt(t, e, r, n) { const i = gi(t, (a, o, l) => { const u = gt(o, (h) => ({ idx: l, path: h })); return a.concat(u); @@ -74466,7 +74488,7 @@ function Bzt(t, e, r, n) { return _x(oo(i, (a) => { if (e.definition[a.idx].ignoreAmbiguities === !0) return []; - const l = a.idx, u = a.path, h = Qn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Szt(d.path, u)); + const l = a.idx, u = a.path, h = Qn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Tzt(d.path, u)); return gt(h, (d) => { const p = [d.idx + 1, l + 1], g = e.idx === 0 ? "" : e.idx; return { @@ -74484,7 +74506,7 @@ function Bzt(t, e, r, n) { }); })); } -function Fzt(t, e, r) { +function zzt(t, e, r) { const n = [], i = gt(e, (s) => s.name); return $e(t, (s) => { const a = s.name; @@ -74498,63 +74520,63 @@ function Fzt(t, e, r) { } }), n; } -function zzt(t) { - const e = KT(t, { - errMsgProvider: uzt +function Vzt(t) { + const e = JT(t, { + errMsgProvider: hzt }), r = {}; return $e(t.rules, (n) => { r[n.name] = n; - }), hzt(r, e.errMsgProvider); + }), fzt(r, e.errMsgProvider); } -function Vzt(t) { - return t = KT(t, { +function Uzt(t) { + return t = JT(t, { errMsgProvider: Pd - }), Czt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); + }), Ezt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } -const Gde = "MismatchedTokenException", Hde = "NoViableAltException", Xde = "EarlyExitException", Zde = "NotAllInputParsedException", jde = [ - Gde, +const Hde = "MismatchedTokenException", Xde = "NoViableAltException", Zde = "EarlyExitException", jde = "NotAllInputParsedException", Kde = [ Hde, Xde, - Zde + Zde, + jde ]; -Object.freeze(jde); -function Sk(t) { - return pa(jde, t.name); +Object.freeze(Kde); +function Tk(t) { + return pa(Kde, t.name); } -class xC extends Error { +class wC extends Error { constructor(e, r) { super(e), this.token = r, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); } } -class Kde extends xC { +class Jde extends wC { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Gde; + super(e, r), this.previousToken = n, this.name = Hde; } } -class Uzt extends xC { +class qzt extends wC { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Hde; + super(e, r), this.previousToken = n, this.name = Xde; } } -class qzt extends xC { +class Qzt extends wC { constructor(e, r) { - super(e, r), this.name = Zde; + super(e, r), this.name = jde; } } -class Qzt extends xC { +class Yzt extends wC { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Xde; + super(e, r), this.previousToken = n, this.name = Zde; } } -const B_ = {}, Jde = "InRuleRecoveryException"; -class Yzt extends Error { +const F_ = {}, e0e = "InRuleRecoveryException"; +class Wzt extends Error { constructor(e) { - super(e), this.name = Jde; + super(e), this.name = e0e; } } -class Wzt { +class Gzt { initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = Gzt); + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = Hzt); } getTokenToInsert(e) { const r = wI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); @@ -74577,7 +74599,7 @@ class Wzt { actual: u, previous: d, ruleName: this.getCurrRuleFullName() - }), g = new Kde(p, u, this.LA(0)); + }), g = new Jde(p, u, this.LA(0)); g.resyncedTokens = T2(o), this.SAVE_ERROR(g); }; for (; !l; ) @@ -74605,7 +74627,7 @@ class Wzt { const n = this.SKIP_TOKEN(); return this.consumeToken(), n; } - throw new Yzt("sad sad panda"); + throw new Wzt("sad sad panda"); } canPerformInRuleRecovery(e, r) { return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); @@ -74627,7 +74649,7 @@ class Wzt { const e = this.flattenFollowSet(); let r = this.LA(1), n = 2; for (; ; ) { - const i = Xu(e, (s) => zde(r, s)); + const i = Xu(e, (s) => Vde(r, s)); if (i !== void 0) return i; r = this.LA(n), n++; @@ -74635,7 +74657,7 @@ class Wzt { } getCurrFollowKey() { if (this.RULE_STACK.length === 1) - return B_; + return F_; const e = this.getLastExplicitRuleShortName(), r = this.getLastExplicitRuleOccurrenceIndex(), n = this.getPreviousExplicitRuleShortName(); return { ruleName: this.shortRuleNameToFullName(e), @@ -74645,7 +74667,7 @@ class Wzt { } buildFullFollowKeyStack() { const e = this.RULE_STACK, r = this.RULE_OCCURRENCE_STACK; - return gt(e, (n, i) => i === 0 ? B_ : { + return gt(e, (n, i) => i === 0 ? F_ : { ruleName: this.shortRuleNameToFullName(n), idxInCallingRule: r[i], inRule: this.shortRuleNameToFullName(e[i - 1]) @@ -74656,9 +74678,9 @@ class Wzt { return Yi(e); } getFollowSetFromFollowKey(e) { - if (e === B_) + if (e === F_) return [Ef]; - const r = e.ruleName + e.idxInCallingRule + Ade + e.inRule; + const r = e.ruleName + e.idxInCallingRule + Lde + e.inRule; return this.resyncFollows[r]; } addToResyncTokens(e, r) { @@ -74674,7 +74696,7 @@ class Wzt { attemptInRepetitionRecovery(e, r, n, i, s, a, o) { } getCurrentGrammarPath(e, r) { - const n = this.getHumanReadableRuleStack(), i = Di(this.RULE_OCCURRENCE_STACK); + const n = this.getHumanReadableRuleStack(), i = Ni(this.RULE_OCCURRENCE_STACK); return { ruleStack: n, occurrenceStack: i, @@ -74686,7 +74708,7 @@ class Wzt { return gt(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); } } -function Gzt(t, e, r, n, i, s, a) { +function Hzt(t, e, r, n, i, s, a) { const o = this.getKeyForAutomaticLookahead(n, i); let l = this.firstAfterRepMap[o]; if (l === void 0) { @@ -74697,8 +74719,8 @@ function Gzt(t, e, r, n, i, s, a) { const f = l.isEndOfRule; this.RULE_STACK.length === 1 && f && u === void 0 && (u = Ef, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const Hzt = 4, qf = 8, e0e = 1 << qf, t0e = 2 << qf, ZL = 3 << qf, jL = 4 << qf, KL = 5 << qf, j4 = 6 << qf; -function F_(t, e, r) { +const Xzt = 4, qf = 8, t0e = 1 << qf, r0e = 2 << qf, jL = 3 << qf, KL = 4 << qf, JL = 5 << qf, j4 = 6 << qf; +function z_(t, e, r) { return r | e | t; } class SI { @@ -74720,32 +74742,32 @@ class SI { return r; } validateNoLeftRecursion(e) { - return oo(e, (r) => Wde(r, r, Pd)); + return oo(e, (r) => Gde(r, r, Pd)); } validateEmptyOrAlternatives(e) { - return oo(e, (r) => Mzt(r, Pd)); + return oo(e, (r) => Dzt(r, Pd)); } validateAmbiguousAlternationAlternatives(e, r) { - return oo(e, (n) => Dzt(n, r, Pd)); + return oo(e, (n) => Nzt(n, r, Pd)); } validateSomeNonEmptyLookaheadPath(e, r) { - return Pzt(e, r, Pd); + return $zt(e, r, Pd); } buildLookaheadForAlternation(e) { - return yzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, xzt); + return bzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, wzt); } buildLookaheadForOptional(e) { - return bzt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, OI(e.prodType), wzt); + return xzt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, OI(e.prodType), Ozt); } } -class Xzt { +class Zzt { initLooksAhead(e) { this.dynamicTokensEnabled = yt(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Ku.dynamicTokensEnabled, this.maxLookahead = yt(e, "maxLookahead") ? e.maxLookahead : Ku.maxLookahead, this.lookaheadStrategy = yt(e, "lookaheadStrategy") ? e.lookaheadStrategy : new SI({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); } preComputeLookaheadFunctions(e) { $e(e, (r) => { this.TRACE_INIT(`${r.name} Rule Lookahead`, () => { - const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = jzt(r); + const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = Kzt(r); $e(n, (u) => { const h = u.idx === 0 ? "" : u.idx; this.TRACE_INIT(`${uc(u)}${h}`, () => { @@ -74755,19 +74777,19 @@ class Xzt { maxLookahead: u.maxLookahead || this.maxLookahead, hasPredicates: u.hasPredicates, dynamicTokensEnabled: this.dynamicTokensEnabled - }), d = F_(this.fullRuleNameToShort[r.name], e0e, u.idx); + }), d = z_(this.fullRuleNameToShort[r.name], t0e, u.idx); this.setLaFuncCache(d, f); }); }), $e(i, (u) => { - this.computeLookaheadFunc(r, u.idx, ZL, "Repetition", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, jL, "Repetition", u.maxLookahead, uc(u)); }), $e(s, (u) => { - this.computeLookaheadFunc(r, u.idx, t0e, "Option", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, r0e, "Option", u.maxLookahead, uc(u)); }), $e(a, (u) => { - this.computeLookaheadFunc(r, u.idx, jL, "RepetitionMandatory", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, KL, "RepetitionMandatory", u.maxLookahead, uc(u)); }), $e(o, (u) => { this.computeLookaheadFunc(r, u.idx, j4, "RepetitionMandatoryWithSeparator", u.maxLookahead, uc(u)); }), $e(l, (u) => { - this.computeLookaheadFunc(r, u.idx, KL, "RepetitionWithSeparator", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, JL, "RepetitionWithSeparator", u.maxLookahead, uc(u)); }); }); }); @@ -74780,13 +74802,13 @@ class Xzt { maxLookahead: s || this.maxLookahead, dynamicTokensEnabled: this.dynamicTokensEnabled, prodType: i - }), l = F_(this.fullRuleNameToShort[e.name], n, r); + }), l = z_(this.fullRuleNameToShort[e.name], n, r); this.setLaFuncCache(l, o); }); } getKeyForAutomaticLookahead(e, r) { const n = this.getLastExplicitRuleShortName(); - return F_(n, e, r); + return z_(n, e, r); } getLaFuncFromCache(e) { return this.lookAheadFuncsCache.get(e); @@ -74795,7 +74817,7 @@ class Xzt { this.lookAheadFuncsCache.set(e, r); } } -class Zzt extends lm { +class jzt extends lm { constructor() { super(...arguments), this.dslMethods = { option: [], @@ -74835,34 +74857,34 @@ class Zzt extends lm { this.dslMethods.alternation.push(e); } } -const SO = new Zzt(); -function jzt(t) { +const SO = new jzt(); +function Kzt(t) { SO.reset(), t.accept(SO); const e = SO.dslMethods; return SO.reset(), e; } -function yW(t, e) { +function bW(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.endOffset = e.endOffset) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset); } -function bW(t, e) { +function xW(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine); } -function Kzt(t, e, r) { +function Jzt(t, e, r) { t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); } -function Jzt(t, e, r) { +function eVt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } -const eVt = "name"; -function r0e(t, e) { - Object.defineProperty(t, eVt, { +const tVt = "name"; +function n0e(t, e) { + Object.defineProperty(t, tVt, { enumerable: !1, configurable: !0, writable: !1, value: e }); } -function tVt(t, e) { +function rVt(t, e) { const r = ki(t), n = r.length; for (let i = 0; i < n; i++) { const s = r[i], a = t[s], o = a.length; @@ -74872,17 +74894,17 @@ function tVt(t, e) { } } } -function rVt(t, e) { +function nVt(t, e) { const r = function() { }; - r0e(r, t + "BaseSemantics"); + n0e(r, t + "BaseSemantics"); const n = { visit: function(i, s) { if (Sr(i) && (i = i[0]), !qr(i)) return this[i.name](i.children, s); }, validateVisitor: function() { - const i = iVt(this, e); + const i = sVt(this, e); if (!$r(i)) { const s = gt(i, (a) => a.msg); throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: @@ -74895,38 +74917,38 @@ function rVt(t, e) { }; return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; } -function nVt(t, e, r) { +function iVt(t, e, r) { const n = function() { }; - r0e(n, t + "BaseSemanticsWithDefaults"); + n0e(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return $e(e, (s) => { - i[s] = tVt; + i[s] = rVt; }), n.prototype = i, n.prototype.constructor = n, n; } -var JL; +var e9; (function(t) { t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; -})(JL || (JL = {})); -function iVt(t, e) { - return sVt(t, e); -} +})(e9 || (e9 = {})); function sVt(t, e) { + return aVt(t, e); +} +function aVt(t, e) { const r = Qn(e, (i) => Ho(t[i]) === !1), n = gt(r, (i) => ({ msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, - type: JL.MISSING_METHOD, + type: e9.MISSING_METHOD, methodName: i })); return _x(n); } -class aVt { +class oVt { initTreeBuilder(e) { if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = yt(e, "nodeLocationTracking") ? e.nodeLocationTracking : Ku.nodeLocationTracking, !this.outputCst) this.cstInvocationStateUpdate = vi, this.cstFinallyStateUpdate = vi, this.cstPostTerminal = vi, this.cstPostNonTerminal = vi, this.cstPostRule = vi; else if (/full/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = bW, this.setNodeLocationFromNode = bW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); + this.recoveryEnabled ? (this.setNodeLocationFromToken = xW, this.setNodeLocationFromNode = xW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); else if (/onlyOffset/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = yW, this.setNodeLocationFromNode = yW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); + this.recoveryEnabled ? (this.setNodeLocationFromToken = bW, this.setNodeLocationFromNode = bW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); else if (/none/i.test(this.nodeLocationTracking)) this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = vi, this.setInitialNodeLocation = vi; else @@ -74985,22 +75007,22 @@ class aVt { } cstPostTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - Kzt(n, r, e), this.setNodeLocationFromToken(n.location, r); + Jzt(n, r, e), this.setNodeLocationFromToken(n.location, r); } cstPostNonTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - Jzt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); + eVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); } getBaseCstVisitorConstructor() { if (qr(this.baseCstVisitorConstructor)) { - const e = rVt(this.className, ki(this.gastProductionsCache)); + const e = nVt(this.className, ki(this.gastProductionsCache)); return this.baseCstVisitorConstructor = e, e; } return this.baseCstVisitorConstructor; } getBaseCstVisitorConstructorWithDefaults() { if (qr(this.baseCstVisitorWithDefaultsConstructor)) { - const e = nVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + const e = iVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); return this.baseCstVisitorWithDefaultsConstructor = e, e; } return this.baseCstVisitorWithDefaultsConstructor; @@ -75018,7 +75040,7 @@ class aVt { return e[e.length - 1]; } } -class oVt { +class lVt { initLexerAdapter() { this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1; } @@ -75031,11 +75053,11 @@ class oVt { return this.tokVector; } SKIP_TOKEN() { - return this.currIdx <= this.tokVector.length - 2 ? (this.consumeToken(), this.LA(1)) : Ck; + return this.currIdx <= this.tokVector.length - 2 ? (this.consumeToken(), this.LA(1)) : Ek; } LA(e) { const r = this.currIdx + e; - return r < 0 || this.tokVectorLength <= r ? Ck : this.tokVector[r]; + return r < 0 || this.tokVectorLength <= r ? Ek : this.tokVector[r]; } consumeToken() { this.currIdx++; @@ -75056,7 +75078,7 @@ class oVt { return this.exportLexerState(); } } -class lVt { +class cVt { ACTION(e) { return e.call(this); } @@ -75318,7 +75340,7 @@ class lVt { AT_LEAST_ONE_SEP9(e) { this.atLeastOneSepFirstInternal(9, e); } - RULE(e, r, n = Ek) { + RULE(e, r, n = _k) { if (pa(this.definedRulesNames, e)) { const a = { message: Pd.buildDuplicateRuleNameError({ @@ -75334,8 +75356,8 @@ class lVt { const i = this.defineRule(e, r, n); return this[e] = i, i; } - OVERRIDE_RULE(e, r, n = Ek) { - const i = Rzt(e, this.definedRulesNames, this.className); + OVERRIDE_RULE(e, r, n = _k) { + const i = Mzt(e, this.definedRulesNames, this.className); this.definitionErrors = this.definitionErrors.concat(i); const s = this.defineRule(e, r, n); return this[e] = s, s; @@ -75347,7 +75369,7 @@ class lVt { try { return e.apply(this, r), !0; } catch (i) { - if (Sk(i)) + if (Tk(i)) return !1; throw i; } finally { @@ -75359,12 +75381,12 @@ class lVt { return this.gastProductionsCache; } getSerializedGastProductions() { - return mFt(Kr(this.gastProductionsCache)); + return vFt(Kr(this.gastProductionsCache)); } } -class cVt { +class uVt { initRecognizerEngine(e, r) { - if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = kk, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, yt(r, "serializedGrammar")) + if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = Sk, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, yt(r, "serializedGrammar")) throw Error(`The Parser's configuration can no longer contain a property. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 For Further details.`); @@ -75380,22 +75402,22 @@ class cVt { } if (Sr(e)) this.tokensMap = gi(e, (s, a) => (s[a.name] = a, s), {}); - else if (yt(e, "modes") && Tl(Yi(Kr(e.modes)), azt)) { + else if (yt(e, "modes") && Tl(Yi(Kr(e.modes)), ozt)) { const s = Yi(Kr(e.modes)), a = ZN(s); this.tokensMap = gi(a, (o, l) => (o[l.name] = l, o), {}); - } else if (Pa(e)) - this.tokensMap = Di(e); + } else if ($a(e)) + this.tokensMap = Ni(e); else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition"); this.tokensMap.EOF = Ef; const n = yt(e, "modes") ? Yi(Kr(e.modes)) : Kr(e), i = Tl(n, (s) => $r(s.categoryMatches)); - this.tokenMatcher = i ? kk : Nx, Ix(Kr(this.tokensMap)); + this.tokenMatcher = i ? Sk : Nx, Ix(Kr(this.tokensMap)); } defineRule(e, r, n) { if (this.selfAnalysisDone) throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`); - const i = yt(n, "resyncEnabled") ? n.resyncEnabled : Ek.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : Ek.recoveryValueFunc, a = this.ruleShortNameIdx << Hzt + qf; + const i = yt(n, "resyncEnabled") ? n.resyncEnabled : _k.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : _k.recoveryValueFunc, a = this.ruleShortNameIdx << Xzt + qf; this.ruleShortNameIdx++, this.shortRuleNameToFull[a] = e, this.fullRuleNameToShort[e] = a; let o; return this.outputCst === !0 ? o = function(...h) { @@ -75420,7 +75442,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis } invokeRuleCatch(e, r, n) { const i = this.RULE_STACK.length === 1, s = r && !this.isBackTracking() && this.recoveryEnabled; - if (Sk(e)) { + if (Tk(e)) { const a = e; if (s) { const o = this.findReSyncTokenType(); @@ -75446,7 +75468,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis throw e; } optionInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(t0e, r); + const n = this.getKeyForAutomaticLookahead(r0e, r); return this.optionInternalLogic(e, r, n); } optionInternalLogic(e, r, n) { @@ -75464,7 +75486,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis return s.call(this); } atLeastOneInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(jL, e); + const n = this.getKeyForAutomaticLookahead(KL, e); return this.atLeastOneInternalLogic(e, r, n); } atLeastOneInternalLogic(e, r, n) { @@ -75484,7 +75506,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis a = this.doSingleRepetition(s); } else throw this.raiseEarlyExitException(e, Dn.REPETITION_MANDATORY, r.ERR_MSG); - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, jL, e, mzt); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, KL, e, vzt); } atLeastOneSepFirstInternal(e, r) { const n = this.getKeyForAutomaticLookahead(j4, e); @@ -75502,13 +75524,13 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis s, o, i, - gW - ], o, j4, e, gW); + mW + ], o, j4, e, mW); } else throw this.raiseEarlyExitException(e, Dn.REPETITION_MANDATORY_WITH_SEPARATOR, r.ERR_MSG); } manyInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(ZL, e); + const n = this.getKeyForAutomaticLookahead(jL, e); return this.manyInternalLogic(e, r, n); } manyInternalLogic(e, r, n) { @@ -75529,14 +75551,14 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis this.manyInternal, [e, r], i, - ZL, + jL, e, - gzt, + mzt, a ); } manySepFirstInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(KL, e); + const n = this.getKeyForAutomaticLookahead(JL, e); this.manySepFirstInternalLogic(e, r, n); } manySepFirstInternalLogic(e, r, n) { @@ -75551,8 +75573,8 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis s, o, i, - pW - ], o, KL, e, pW); + gW + ], o, JL, e, gW); } } repetitionSepSecondInternal(e, r, n, i, s) { @@ -75571,7 +75593,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis return e.call(this), this.getLexerPosition() > r; } orInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(e0e, r), i = Sr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); + const n = this.getKeyForAutomaticLookahead(t0e, r), i = Sr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); if (a !== void 0) return i[a].ALT.call(this); this.raiseNoAltException(r, e.ERR_MSG); @@ -75582,7 +75604,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis firstRedundant: e, ruleName: this.getCurrRuleFullName() }); - this.SAVE_ERROR(new qzt(r, e)); + this.SAVE_ERROR(new Qzt(r, e)); } } subruleInternal(e, r, n) { @@ -75595,7 +75617,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis } } subruleInternalError(e, r, n) { - throw Sk(e) && e.partialCstResult !== void 0 && (this.cstPostNonTerminal(e.partialCstResult, r !== void 0 && r.LABEL !== void 0 ? r.LABEL : n), delete e.partialCstResult), e; + throw Tk(e) && e.partialCstResult !== void 0 && (this.cstPostNonTerminal(e.partialCstResult, r !== void 0 && r.LABEL !== void 0 ? r.LABEL : n), delete e.partialCstResult), e; } consumeInternal(e, r, n) { let i; @@ -75615,7 +75637,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis actual: r, previous: s, ruleName: this.getCurrRuleFullName() - }), this.SAVE_ERROR(new Kde(i, r, s)); + }), this.SAVE_ERROR(new Jde(i, r, s)); } consumeInternalRecovery(e, r, n) { if (this.recoveryEnabled && n.name === "MismatchedTokenException" && !this.isBackTracking()) { @@ -75623,13 +75645,13 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis try { return this.tryInRuleRecovery(e, i); } catch (s) { - throw s.name === Jde ? n : s; + throw s.name === e0e ? n : s; } } else throw n; } saveRecogState() { - const e = this.errors, r = Di(this.RULE_STACK); + const e = this.errors, r = Ni(this.RULE_STACK); return { errors: e, lexerState: this.exportLexerState(), @@ -75660,26 +75682,26 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis this.resetLexerState(), this.subruleIdx = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK = [], this.CST_STACK = [], this.RULE_OCCURRENCE_STACK = []; } } -class uVt { +class hVt { initErrorHandler(e) { this._errors = [], this.errorMessageProvider = yt(e, "errorMessageProvider") ? e.errorMessageProvider : Ku.errorMessageProvider; } SAVE_ERROR(e) { - if (Sk(e)) + if (Tk(e)) return e.context = { ruleStack: this.getHumanReadableRuleStack(), - ruleOccurrenceStack: Di(this.RULE_OCCURRENCE_STACK) + ruleOccurrenceStack: Ni(this.RULE_OCCURRENCE_STACK) }, this._errors.push(e), e; throw Error("Trying to save an Error which is not a RecognitionException"); } get errors() { - return Di(this._errors); + return Ni(this._errors); } set errors(e) { this._errors = e; } raiseEarlyExitException(e, r, n) { - const i = this.getCurrRuleFullName(), s = this.getGAstProductions()[i], o = bC(e, s, r, this.maxLookahead)[0], l = []; + const i = this.getCurrRuleFullName(), s = this.getGAstProductions()[i], o = xC(e, s, r, this.maxLookahead)[0], l = []; for (let h = 1; h <= this.maxLookahead; h++) l.push(this.LA(h)); const u = this.errorMessageProvider.buildEarlyExitMessage({ @@ -75689,10 +75711,10 @@ class uVt { customUserDescription: n, ruleName: i }); - throw this.SAVE_ERROR(new Qzt(u, this.LA(1), this.LA(0))); + throw this.SAVE_ERROR(new Yzt(u, this.LA(1), this.LA(0))); } raiseNoAltException(e, r) { - const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = yC(e, i, this.maxLookahead), a = []; + const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = bC(e, i, this.maxLookahead), a = []; for (let u = 1; u <= this.maxLookahead; u++) a.push(this.LA(u)); const o = this.LA(0), l = this.errorMessageProvider.buildNoViableAltMessage({ @@ -75702,31 +75724,31 @@ class uVt { customUserDescription: r, ruleName: this.getCurrRuleFullName() }); - throw this.SAVE_ERROR(new Uzt(l, this.LA(1), o)); + throw this.SAVE_ERROR(new qzt(l, this.LA(1), o)); } } -class hVt { +class fVt { initContentAssist() { } computeContentAssist(e, r) { const n = this.gastProductionsCache[e]; if (qr(n)) throw Error(`Rule ->${e}<- does not exist in this grammar.`); - return Vde([n], r, this.tokenMatcher, this.maxLookahead); + return Ude([n], r, this.tokenMatcher, this.maxLookahead); } getNextPossibleTokenTypes(e) { const r = Bl(e.ruleStack), i = this.getGAstProductions()[r]; - return new pzt(i, e).startWalking(); + return new gzt(i, e).startWalking(); } } -const wC = { +const OC = { description: "This Object indicates the Parser is during Recording Phase" }; -Object.freeze(wC); -const xW = !0, wW = Math.pow(2, qf) - 1, n0e = Fde({ name: "RECORDING_PHASE_TOKEN", pattern: Na.NA }); -Ix([n0e]); -const i0e = wI( - n0e, +Object.freeze(OC); +const wW = !0, OW = Math.pow(2, qf) - 1, i0e = zde({ name: "RECORDING_PHASE_TOKEN", pattern: Ia.NA }); +Ix([i0e]); +const s0e = wI( + i0e, `This IToken indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, -1, @@ -75736,13 +75758,13 @@ const i0e = wI( -1, -1 ); -Object.freeze(i0e); -const fVt = { +Object.freeze(s0e); +const dVt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} }; -class dVt { +class pVt { initGastRecorder(e) { this.recordingProdStack = [], this.RECORDING_PHASE = !1; } @@ -75799,7 +75821,7 @@ class dVt { return () => !0; } LA_RECORD(e) { - return Ck; + return Ek; } topLevelRuleRecord(e, r) { try { @@ -75824,20 +75846,20 @@ class dVt { tv.call(this, mo, r, e); } atLeastOneSepFirstInternalRecord(e, r) { - tv.call(this, vo, r, e, xW); + tv.call(this, vo, r, e, wW); } manyInternalRecord(e, r) { tv.call(this, Un, r, e); } manySepFirstInternalRecord(e, r) { - tv.call(this, qa, r, e, xW); + tv.call(this, Qa, r, e, wW); } orInternalRecord(e, r) { - return pVt.call(this, e, r); + return gVt.call(this, e, r); } subruleInternalRecord(e, r, n) { - if (Tk(r), !e || yt(e, "ruleName") === !1) { - const o = new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + if (Ck(r), !e || yt(e, "ruleName") === !1) { + const o = new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`); throw o.KNOWN_RECORDER_ERROR = !0, o; } @@ -75847,11 +75869,11 @@ class dVt { label: n == null ? void 0 : n.LABEL, referencedRule: void 0 }); - return i.definition.push(a), this.outputCst ? fVt : wC; + return i.definition.push(a), this.outputCst ? dVt : OC; } consumeInternalRecord(e, r, n) { - if (Tk(r), !$de(e)) { - const a = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + if (Ck(r), !Bde(e)) { + const a = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`); throw a.KNOWN_RECORDER_ERROR = !0, a; } @@ -75860,41 +75882,41 @@ class dVt { terminalType: e, label: n == null ? void 0 : n.LABEL }); - return i.definition.push(s), i0e; + return i.definition.push(s), s0e; } } function tv(t, e, r, n = !1) { - Tk(r); + Ck(r); const i = $c(this.recordingProdStack), s = Ho(e) ? e : e.DEF, a = new t({ definition: [], idx: r }); - return n && (a.separator = e.SEP), yt(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), wC; + return n && (a.separator = e.SEP), yt(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), OC; } -function pVt(t, e) { - Tk(e); - const r = $c(this.recordingProdStack), n = Sr(t) === !1, i = n === !1 ? t : t.DEF, s = new Qa({ +function gVt(t, e) { + Ck(e); + const r = $c(this.recordingProdStack), n = Sr(t) === !1, i = n === !1 ? t : t.DEF, s = new Ya({ definition: [], idx: e, ignoreAmbiguities: n && t.IGNORE_AMBIGUITIES === !0 }); yt(t, "MAX_LOOKAHEAD") && (s.maxLookahead = t.MAX_LOOKAHEAD); - const a = Dhe(i, (o) => Ho(o.GATE)); + const a = Nhe(i, (o) => Ho(o.GATE)); return s.hasPredicates = a, r.definition.push(s), $e(i, (o) => { - const l = new Ba({ definition: [] }); + const l = new Fa({ definition: [] }); s.definition.push(l), yt(o, "IGNORE_AMBIGUITIES") ? l.ignoreAmbiguities = o.IGNORE_AMBIGUITIES : yt(o, "GATE") && (l.ignoreAmbiguities = !0), this.recordingProdStack.push(l), o.ALT.call(this), this.recordingProdStack.pop(); - }), wC; + }), OC; } -function OW(t) { +function kW(t) { return t === 0 ? "" : `${t}`; } -function Tk(t) { - if (t < 0 || t > wW) { +function Ck(t) { + if (t < 0 || t > OW) { const e = new Error( `Invalid DSL Method idx value: <${t}> - Idx value must be a none negative value smaller than ${wW + 1}` + Idx value must be a none negative value smaller than ${OW + 1}` ); throw e.KNOWN_RECORDER_ERROR = !0, e; } } -class gVt { +class mVt { initPerformanceTracer(e) { if (yt(e, "traceInitPerf")) { const r = e.traceInitPerf, n = typeof r == "number"; @@ -75908,13 +75930,13 @@ class gVt { this.traceInitIndent++; const n = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--> <${e}>`); - const { time: i, value: s } = Ede(r), a = i > 10 ? console.warn : console.log; + const { time: i, value: s } = _de(r), a = i > 10 ? console.warn : console.log; return this.traceInitIndent < this.traceInitMaxIdent && a(`${n}<-- <${e}> time: ${i}ms`), this.traceInitIndent--, s; } else return r(); } } -function mVt(t, e) { +function vVt(t, e) { e.forEach((r) => { const n = r.prototype; Object.getOwnPropertyNames(n).forEach((i) => { @@ -75925,8 +75947,8 @@ function mVt(t, e) { }); }); } -const Ck = wI(Ef, "", NaN, NaN, NaN, NaN, NaN, NaN); -Object.freeze(Ck); +const Ek = wI(Ef, "", NaN, NaN, NaN, NaN, NaN, NaN); +Object.freeze(Ek); const Ku = Object.freeze({ recoveryEnabled: !1, maxLookahead: 3, @@ -75936,7 +75958,7 @@ const Ku = Object.freeze({ nodeLocationTracking: "none", traceInitPerf: !1, skipValidations: !1 -}), Ek = Object.freeze({ +}), _k = Object.freeze({ recoveryValueFunc: () => { }, resyncEnabled: !0 @@ -75945,7 +75967,7 @@ var ha; (function(t) { t[t.INVALID_RULE_NAME = 0] = "INVALID_RULE_NAME", t[t.DUPLICATE_RULE_NAME = 1] = "DUPLICATE_RULE_NAME", t[t.INVALID_RULE_OVERRIDE = 2] = "INVALID_RULE_OVERRIDE", t[t.DUPLICATE_PRODUCTIONS = 3] = "DUPLICATE_PRODUCTIONS", t[t.UNRESOLVED_SUBRULE_REF = 4] = "UNRESOLVED_SUBRULE_REF", t[t.LEFT_RECURSION = 5] = "LEFT_RECURSION", t[t.NONE_LAST_EMPTY_ALT = 6] = "NONE_LAST_EMPTY_ALT", t[t.AMBIGUOUS_ALTS = 7] = "AMBIGUOUS_ALTS", t[t.CONFLICT_TOKENS_RULES_NAMESPACE = 8] = "CONFLICT_TOKENS_RULES_NAMESPACE", t[t.INVALID_TOKEN_NAME = 9] = "INVALID_TOKEN_NAME", t[t.NO_NON_EMPTY_LOOKAHEAD = 10] = "NO_NON_EMPTY_LOOKAHEAD", t[t.AMBIGUOUS_PREFIX_ALTS = 11] = "AMBIGUOUS_PREFIX_ALTS", t[t.TOO_MANY_ALTS = 12] = "TOO_MANY_ALTS", t[t.CUSTOM_LOOKAHEAD_VALIDATION = 13] = "CUSTOM_LOOKAHEAD_VALIDATION"; })(ha || (ha = {})); -function kW(t = void 0) { +function SW(t = void 0) { return function() { return t; }; @@ -75960,7 +75982,7 @@ class Px { this.selfAnalysisDone = !0; const r = this.className; this.TRACE_INIT("toFastProps", () => { - _de(this); + Ade(this); }), this.TRACE_INIT("Grammar Recording", () => { try { this.enableRecording(), $e(this.definedRulesNames, (i) => { @@ -75976,17 +75998,17 @@ class Px { }); let n = []; if (this.TRACE_INIT("Grammar Resolving", () => { - n = zzt({ + n = Vzt({ rules: Kr(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(n); }), this.TRACE_INIT("Grammar Validations", () => { if ($r(n) && this.skipValidations === !1) { - const i = Vzt({ + const i = Uzt({ rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), errMsgProvider: Pd, grammarName: r - }), s = Tzt({ + }), s = Czt({ lookaheadStrategy: this.lookaheadStrategy, rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), @@ -75995,7 +76017,7 @@ class Px { this.definitionErrors = this.definitionErrors.concat(i, s); } }), $r(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = kFt(Kr(this.gastProductionsCache)); + const i = SFt(Kr(this.gastProductionsCache)); this.resyncFollows = i; }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { var i, s; @@ -76021,28 +76043,28 @@ class Px { } } Px.DEFER_DEFINITION_ERRORS_HANDLING = !1; -mVt(Px, [ - Wzt, - Xzt, - aVt, +vVt(Px, [ + Gzt, + Zzt, oVt, - cVt, lVt, uVt, + cVt, hVt, - dVt, - gVt + fVt, + pVt, + mVt ]); -class vVt extends Px { +class yVt extends Px { constructor(e, r = Ku) { - const n = Di(r); + const n = Ni(r); n.outputCst = !1, super(e, n); } } function p1(t, e, r) { return `${t.name}_${e}_${r}`; } -const _f = 1, yVt = 2, s0e = 4, a0e = 5, $x = 7, bVt = 8, xVt = 9, wVt = 10, OVt = 11, o0e = 12; +const _f = 1, bVt = 2, a0e = 4, o0e = 5, $x = 7, xVt = 8, wVt = 9, OVt = 10, kVt = 11, l0e = 12; class TI { constructor(e) { this.target = e; @@ -76056,7 +76078,7 @@ class CI extends TI { super(e), this.tokenType = r; } } -class l0e extends TI { +class c0e extends TI { constructor(e) { super(e); } @@ -76072,7 +76094,7 @@ class EI extends TI { return !0; } } -function kVt(t) { +function SVt(t) { const e = { decisionMap: {}, decisionStates: [], @@ -76080,109 +76102,109 @@ function kVt(t) { ruleToStopState: /* @__PURE__ */ new Map(), states: [] }; - SVt(e, t); + TVt(e, t); const r = t.length; for (let n = 0; n < r; n++) { const i = t[n], s = ep(e, i, i); - s !== void 0 && IVt(e, i, s); + s !== void 0 && PVt(e, i, s); } return e; } -function SVt(t, e) { +function TVt(t, e) { const r = e.length; for (let n = 0; n < r; n++) { const i = e[n], s = Wi(t, i, void 0, { - type: yVt + type: bVt }), a = Wi(t, i, void 0, { type: $x }); s.stop = a, t.ruleToStartState.set(i, s), t.ruleToStopState.set(i, a); } } -function c0e(t, e, r) { - return r instanceof wn ? _I(t, e, r.terminalType, r) : r instanceof ua ? NVt(t, e, r) : r instanceof Qa ? AVt(t, e, r) : r instanceof fs ? LVt(t, e, r) : r instanceof Un ? TVt(t, e, r) : r instanceof qa ? CVt(t, e, r) : r instanceof mo ? EVt(t, e, r) : r instanceof vo ? _Vt(t, e, r) : ep(t, e, r); +function u0e(t, e, r) { + return r instanceof wn ? _I(t, e, r.terminalType, r) : r instanceof ua ? IVt(t, e, r) : r instanceof Ya ? LVt(t, e, r) : r instanceof fs ? RVt(t, e, r) : r instanceof Un ? CVt(t, e, r) : r instanceof Qa ? EVt(t, e, r) : r instanceof mo ? _Vt(t, e, r) : r instanceof vo ? AVt(t, e, r) : ep(t, e, r); } -function TVt(t, e, r) { +function CVt(t, e, r) { const n = Wi(t, e, r, { - type: a0e + type: o0e }); Qf(t, n); const i = cm(t, e, n, r, ep(t, e, r)); - return h0e(t, e, r, i); + return f0e(t, e, r, i); } -function CVt(t, e, r) { +function EVt(t, e, r) { const n = Wi(t, e, r, { - type: a0e + type: o0e }); Qf(t, n); const i = cm(t, e, n, r, ep(t, e, r)), s = _I(t, e, r.separator, r); - return h0e(t, e, r, i, s); + return f0e(t, e, r, i, s); } -function EVt(t, e, r) { +function _Vt(t, e, r) { const n = Wi(t, e, r, { - type: s0e + type: a0e }); Qf(t, n); const i = cm(t, e, n, r, ep(t, e, r)); - return u0e(t, e, r, i); + return h0e(t, e, r, i); } -function _Vt(t, e, r) { +function AVt(t, e, r) { const n = Wi(t, e, r, { - type: s0e + type: a0e }); Qf(t, n); const i = cm(t, e, n, r, ep(t, e, r)), s = _I(t, e, r.separator, r); - return u0e(t, e, r, i, s); + return h0e(t, e, r, i, s); } -function AVt(t, e, r) { +function LVt(t, e, r) { const n = Wi(t, e, r, { type: _f }); Qf(t, n); - const i = gt(r.definition, (a) => c0e(t, e, a)); + const i = gt(r.definition, (a) => u0e(t, e, a)); return cm(t, e, n, r, ...i); } -function LVt(t, e, r) { +function RVt(t, e, r) { const n = Wi(t, e, r, { type: _f }); Qf(t, n); const i = cm(t, e, n, r, ep(t, e, r)); - return RVt(t, e, r, i); + return MVt(t, e, r, i); } function ep(t, e, r) { - const n = Qn(gt(r.definition, (i) => c0e(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : DVt(t, n); + const n = Qn(gt(r.definition, (i) => u0e(t, e, i)), (i) => i !== void 0); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : NVt(t, n); } -function u0e(t, e, r, n, i) { +function h0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: OVt + type: kVt }); Qf(t, o); const l = Wi(t, e, r, { - type: o0e + type: l0e }); return s.loopback = o, l.loopback = o, t.decisionMap[p1(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, oi(a, o), i === void 0 ? (oi(o, s), oi(o, l)) : (oi(o, l), oi(o, i.left), oi(i.right, s)), { left: s, right: l }; } -function h0e(t, e, r, n, i) { +function f0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: wVt + type: OVt }); Qf(t, o); const l = Wi(t, e, r, { - type: o0e + type: l0e }), u = Wi(t, e, r, { - type: xVt + type: wVt }); return o.loopback = u, l.loopback = u, oi(o, s), oi(o, l), oi(a, u), i !== void 0 ? (oi(u, l), oi(u, i.left), oi(i.right, s)) : oi(u, o), t.decisionMap[p1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { left: o, right: l }; } -function RVt(t, e, r, n) { +function MVt(t, e, r, n) { const i = n.left, s = n.right; return oi(i, s), t.decisionMap[p1(e, "Option", r.idx)] = i, n; } @@ -76191,7 +76213,7 @@ function Qf(t, e) { } function cm(t, e, r, n, ...i) { const s = Wi(t, e, n, { - type: bVt, + type: xVt, start: r }); r.end = s; @@ -76201,16 +76223,16 @@ function cm(t, e, r, n, ...i) { left: r, right: s }; - return t.decisionMap[p1(e, MVt(n), n.idx)] = r, a; + return t.decisionMap[p1(e, DVt(n), n.idx)] = r, a; } -function MVt(t) { - if (t instanceof Qa) +function DVt(t) { + if (t instanceof Ya) return "Alternation"; if (t instanceof fs) return "Option"; if (t instanceof Un) return "Repetition"; - if (t instanceof qa) + if (t instanceof Qa) return "RepetitionWithSeparator"; if (t instanceof mo) return "RepetitionMandatory"; @@ -76218,14 +76240,14 @@ function MVt(t) { return "RepetitionMandatoryWithSeparator"; throw new Error("Invalid production type encountered"); } -function DVt(t, e) { +function NVt(t, e) { const r = e.length; for (let s = 0; s < r - 1; s++) { const a = e[s]; let o; a.left.transitions.length === 1 && (o = a.left.transitions[0]); const l = o instanceof EI, u = o, h = e[s + 1].left; - a.left.type === _f && a.right.type === _f && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, PVt(t, a.right)) : oi(a.right, h); + a.left.type === _f && a.right.type === _f && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, $Vt(t, a.right)) : oi(a.right, h); } const n = e[0], i = e[r - 1]; return { @@ -76244,7 +76266,7 @@ function _I(t, e, r, n) { right: s }; } -function NVt(t, e, r) { +function IVt(t, e, r) { const n = r.referencedRule, i = t.ruleToStartState.get(n), s = Wi(t, e, r, { type: _f }), a = Wi(t, e, r, { @@ -76255,7 +76277,7 @@ function NVt(t, e, r) { right: a }; } -function IVt(t, e, r) { +function PVt(t, e, r) { const n = t.ruleToStartState.get(e); oi(n, r.left); const i = t.ruleToStopState.get(e); @@ -76265,7 +76287,7 @@ function IVt(t, e, r) { }; } function oi(t, e) { - const r = new l0e(e); + const r = new c0e(e); AI(t, r); } function Wi(t, e, r, n) { @@ -76283,11 +76305,11 @@ function Wi(t, e, r, n) { function AI(t, e) { t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); } -function PVt(t, e) { +function $Vt(t, e) { t.states.splice(t.states.indexOf(e), 1); } -const _k = {}; -class e9 { +const Ak = {}; +class t9 { constructor() { this.map = {}, this.configs = []; } @@ -76298,7 +76320,7 @@ class e9 { this.map = {}; } add(e) { - const r = f0e(e); + const r = d0e(e); r in this.map || (this.map[r] = this.configs.length, this.configs.push(e)); } get elements() { @@ -76314,10 +76336,10 @@ class e9 { return e; } } -function f0e(t, e = !0) { +function d0e(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } -function $Vt(t, e) { +function BVt(t, e) { const r = {}; return (n) => { const i = n.toString(); @@ -76329,7 +76351,7 @@ function $Vt(t, e) { }, r[i] = s), s; }; } -class d0e { +class p0e { constructor() { this.predicates = []; } @@ -76347,14 +76369,14 @@ class d0e { return e; } } -const SW = new d0e(); -class BVt extends SI { +const TW = new p0e(); +class FVt extends SI { constructor(e) { var r; super(), this.logging = (r = e == null ? void 0 : e.logging) !== null && r !== void 0 ? r : (n) => console.log(n); } initialize(e) { - this.atn = kVt(e.rules), this.dfas = FVt(this.atn); + this.atn = SVt(e.rules), this.dfas = zVt(this.atn); } validateAmbiguousAlternationAlternatives() { return []; @@ -76363,13 +76385,13 @@ class BVt extends SI { return []; } buildLookaheadForAlternation(e) { - const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = p1(n, "Alternation", r), h = this.atn.decisionMap[l].decision, f = gt(mW({ + const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = p1(n, "Alternation", r), h = this.atn.decisionMap[l].decision, f = gt(vW({ maxLookahead: 1, occurrence: r, prodType: "Alternation", rule: n }), (d) => gt(d, (p) => p[0])); - if (TW(f, !1) && !s) { + if (CW(f, !1) && !s) { const d = gi(f, (p, g, m) => ($e(g, (v) => { v && (p[v.tokenTypeIdx] = m, $e(v.categoryMatches, (y) => { p[y] = m; @@ -76390,26 +76412,26 @@ class BVt extends SI { }; } else return i ? function(d) { - const p = new d0e(), g = d === void 0 ? 0 : d.length; + const p = new p0e(), g = d === void 0 ? 0 : d.length; for (let v = 0; v < g; v++) { const y = d == null ? void 0 : d[v].GATE; p.set(v, y === void 0 || y.call(this)); } - const m = z_.call(this, a, h, p, o); + const m = V_.call(this, a, h, p, o); return typeof m == "number" ? m : void 0; } : function() { - const d = z_.call(this, a, h, SW, o); + const d = V_.call(this, a, h, TW, o); return typeof d == "number" ? d : void 0; }; } buildLookaheadForOptional(e) { - const { prodOccurrence: r, rule: n, prodType: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = p1(n, i, r), h = this.atn.decisionMap[l].decision, f = gt(mW({ + const { prodOccurrence: r, rule: n, prodType: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = p1(n, i, r), h = this.atn.decisionMap[l].decision, f = gt(vW({ maxLookahead: 1, occurrence: r, prodType: i, rule: n }), (d) => gt(d, (p) => p[0])); - if (TW(f) && f[0][0] && !s) { + if (CW(f) && f[0][0] && !s) { const d = f[0], p = Yi(d); if (p.length === 1 && $r(p[0].categoryMatches)) { const m = p[0].tokenTypeIdx; @@ -76427,12 +76449,12 @@ class BVt extends SI { } } return function() { - const d = z_.call(this, a, h, SW, o); + const d = V_.call(this, a, h, TW, o); return typeof d == "object" ? !1 : d === 0; }; } } -function TW(t, e = !0) { +function CW(t, e = !0) { const r = /* @__PURE__ */ new Set(); for (const n of t) { const i = /* @__PURE__ */ new Set(); @@ -76453,53 +76475,53 @@ function TW(t, e = !0) { } return !0; } -function FVt(t) { +function zVt(t) { const e = t.decisionStates.length, r = Array(e); for (let n = 0; n < e; n++) - r[n] = $Vt(t.decisionStates[n], n); + r[n] = BVt(t.decisionStates[n], n); return r; } -function z_(t, e, r, n) { +function V_(t, e, r, n) { const i = t[e](r); let s = i.start; if (s === void 0) { - const o = ZVt(i.atnStartState); - s = g0e(i, p0e(o)), i.start = s; + const o = jVt(i.atnStartState); + s = m0e(i, g0e(o)), i.start = s; } - return zVt.apply(this, [i, s, r, n]); + return VVt.apply(this, [i, s, r, n]); } -function zVt(t, e, r, n) { +function VVt(t, e, r, n) { let i = e, s = 1; const a = []; let o = this.LA(s++); for (; ; ) { - let l = WVt(i, o); - if (l === void 0 && (l = VVt.apply(this, [t, i, o, s, r, n])), l === _k) - return YVt(a, i, o); + let l = GVt(i, o); + if (l === void 0 && (l = UVt.apply(this, [t, i, o, s, r, n])), l === Ak) + return WVt(a, i, o); if (l.isAcceptState === !0) return l.prediction; i = l, a.push(o), o = this.LA(s++); } } -function VVt(t, e, r, n, i, s) { - const a = GVt(e.configs, r, i); +function UVt(t, e, r, n, i, s) { + const a = HVt(e.configs, r, i); if (a.size === 0) - return CW(t, e, r, _k), _k; - let o = p0e(a); - const l = XVt(a, i); + return EW(t, e, r, Ak), Ak; + let o = g0e(a); + const l = ZVt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (eUt(a)) { + else if (tUt(a)) { const u = u1(a.alts); - o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, UVt.apply(this, [t, n, a.alts, s]); + o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, qVt.apply(this, [t, n, a.alts, s]); } - return o = CW(t, e, r, o), o; + return o = EW(t, e, r, o), o; } -function UVt(t, e, r, n) { +function qVt(t, e, r, n) { const i = []; for (let u = 1; u <= e; u++) i.push(this.LA(u).tokenType); - const s = t.atnStartState, a = s.rule, o = s.production, l = qVt({ + const s = t.atnStartState, a = s.rule, o = s.production, l = QVt({ topLevelRule: a, ambiguityIndices: r, production: o, @@ -76507,26 +76529,26 @@ function UVt(t, e, r, n) { }); n(l); } -function qVt(t) { +function QVt(t) { const e = gt(t.prefixPath, (i) => cg(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${QVt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${YVt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, <${e}> may appears as a prefix path in all these alternatives. `; return n = n + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`, n; } -function QVt(t) { +function YVt(t) { if (t instanceof ua) return "SUBRULE"; if (t instanceof fs) return "OPTION"; - if (t instanceof Qa) + if (t instanceof Ya) return "OR"; if (t instanceof mo) return "AT_LEAST_ONE"; if (t instanceof vo) return "AT_LEAST_ONE_SEP"; - if (t instanceof qa) + if (t instanceof Qa) return "MANY_SEP"; if (t instanceof Un) return "MANY"; @@ -76534,19 +76556,19 @@ function QVt(t) { return "CONSUME"; throw Error("non exhaustive match"); } -function YVt(t, e, r) { - const n = oo(e.configs.elements, (s) => s.state.transitions), i = eDt(n.filter((s) => s instanceof CI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); +function WVt(t, e, r) { + const n = oo(e.configs.elements, (s) => s.state.transitions), i = tDt(n.filter((s) => s instanceof CI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); return { actualToken: r, possibleTokenTypes: i, tokenPath: t }; } -function WVt(t, e) { +function GVt(t, e) { return t.edges[e.tokenTypeIdx]; } -function GVt(t, e, r) { - const n = new e9(), i = []; +function HVt(t, e, r) { + const n = new t9(), i = []; for (const a of t.elements) { if (r.is(a.alt) === !1) continue; @@ -76556,7 +76578,7 @@ function GVt(t, e, r) { } const o = a.state.transitions.length; for (let l = 0; l < o; l++) { - const u = a.state.transitions[l], h = HVt(u, e); + const u = a.state.transitions[l], h = XVt(u, e); h !== void 0 && n.add({ state: h, alt: a.alt, @@ -76566,20 +76588,20 @@ function GVt(t, e, r) { } let s; if (i.length === 0 && n.size === 1 && (s = n), s === void 0) { - s = new e9(); + s = new t9(); for (const a of n.elements) - Ak(a, s); + Lk(a, s); } - if (i.length > 0 && !KVt(s)) + if (i.length > 0 && !JVt(s)) for (const a of i) s.add(a); return s; } -function HVt(t, e) { - if (t instanceof CI && zde(e, t.tokenType)) +function XVt(t, e) { + if (t instanceof CI && Vde(e, t.tokenType)) return t.target; } -function XVt(t, e) { +function ZVt(t, e) { let r; for (const n of t.elements) if (e.is(n.alt) === !0) { @@ -76590,7 +76612,7 @@ function XVt(t, e) { } return r; } -function p0e(t) { +function g0e(t) { return { configs: t, edges: {}, @@ -76598,28 +76620,28 @@ function p0e(t) { prediction: -1 }; } -function CW(t, e, r, n) { - return n = g0e(t, n), e.edges[r.tokenTypeIdx] = n, n; +function EW(t, e, r, n) { + return n = m0e(t, n), e.edges[r.tokenTypeIdx] = n, n; } -function g0e(t, e) { - if (e === _k) +function m0e(t, e) { + if (e === Ak) return e; const r = e.configs.key, n = t.states[r]; return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); } -function ZVt(t) { - const e = new e9(), r = t.transitions.length; +function jVt(t) { + const e = new t9(), r = t.transitions.length; for (let n = 0; n < r; n++) { const s = { state: t.transitions[n].target, alt: n, stack: [] }; - Ak(s, e); + Lk(s, e); } return e; } -function Ak(t, e) { +function Lk(t, e) { const r = t.state; if (r.type === $x) { if (t.stack.length > 0) { @@ -76628,7 +76650,7 @@ function Ak(t, e) { alt: t.alt, stack: i }; - Ak(a, e); + Lk(a, e); } else e.add(t); return; @@ -76636,12 +76658,12 @@ function Ak(t, e) { r.epsilonOnlyTransitions || e.add(t); const n = r.transitions.length; for (let i = 0; i < n; i++) { - const s = r.transitions[i], a = jVt(t, s); - a !== void 0 && Ak(a, e); + const s = r.transitions[i], a = KVt(t, s); + a !== void 0 && Lk(a, e); } } -function jVt(t, e) { - if (e instanceof l0e) +function KVt(t, e) { + if (e instanceof c0e) return { state: e.target, alt: t.alt, @@ -76656,79 +76678,79 @@ function jVt(t, e) { }; } } -function KVt(t) { +function JVt(t) { for (const e of t.elements) if (e.state.type === $x) return !0; return !1; } -function JVt(t) { +function eUt(t) { for (const e of t.elements) if (e.state.type !== $x) return !1; return !0; } -function eUt(t) { - if (JVt(t)) +function tUt(t) { + if (eUt(t)) return !0; - const e = tUt(t.elements); - return rUt(e) && !nUt(e); + const e = rUt(t.elements); + return nUt(e) && !iUt(e); } -function tUt(t) { +function rUt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { - const n = f0e(r, !1); + const n = d0e(r, !1); let i = e.get(n); i === void 0 && (i = {}, e.set(n, i)), i[r.alt] = !0; } return e; } -function rUt(t) { +function nUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length > 1) return !0; return !1; } -function nUt(t) { +function iUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length === 1) return !0; return !1; } -var EW; +var _W; (function(t) { function e(r) { return typeof r == "string"; } t.is = e; -})(EW || (EW = {})); -var t9; +})(_W || (_W = {})); +var r9; (function(t) { function e(r) { return typeof r == "string"; } t.is = e; -})(t9 || (t9 = {})); -var _W; +})(r9 || (r9 = {})); +var AW; (function(t) { t.MIN_VALUE = -2147483648, t.MAX_VALUE = 2147483647; function e(r) { return typeof r == "number" && t.MIN_VALUE <= r && r <= t.MAX_VALUE; } t.is = e; -})(_W || (_W = {})); -var Lk; +})(AW || (AW = {})); +var Rk; (function(t) { t.MIN_VALUE = 0, t.MAX_VALUE = 2147483647; function e(r) { return typeof r == "number" && t.MIN_VALUE <= r && r <= t.MAX_VALUE; } t.is = e; -})(Lk || (Lk = {})); +})(Rk || (Rk = {})); var zr; (function(t) { function e(n, i) { - return n === Number.MAX_VALUE && (n = Lk.MAX_VALUE), i === Number.MAX_VALUE && (i = Lk.MAX_VALUE), { line: n, character: i }; + return n === Number.MAX_VALUE && (n = Rk.MAX_VALUE), i === Number.MAX_VALUE && (i = Rk.MAX_VALUE), { line: n, character: i }; } t.create = e; function r(n) { @@ -76753,7 +76775,7 @@ var Cr; } t.is = r; })(Cr || (Cr = {})); -var Rk; +var Mk; (function(t) { function e(n, i) { return { uri: n, range: i }; @@ -76764,8 +76786,8 @@ var Rk; return Fe.objectLiteral(i) && Cr.is(i.range) && (Fe.string(i.uri) || Fe.undefined(i.uri)); } t.is = r; -})(Rk || (Rk = {})); -var AW; +})(Mk || (Mk = {})); +var LW; (function(t) { function e(n, i, s, a) { return { targetUri: n, targetRange: i, targetSelectionRange: s, originSelectionRange: a }; @@ -76776,8 +76798,8 @@ var AW; return Fe.objectLiteral(i) && Cr.is(i.targetRange) && Fe.string(i.targetUri) && Cr.is(i.targetSelectionRange) && (Cr.is(i.originSelectionRange) || Fe.undefined(i.originSelectionRange)); } t.is = r; -})(AW || (AW = {})); -var r9; +})(LW || (LW = {})); +var n9; (function(t) { function e(n, i, s, a) { return { @@ -76793,8 +76815,8 @@ var r9; return Fe.objectLiteral(i) && Fe.numberRange(i.red, 0, 1) && Fe.numberRange(i.green, 0, 1) && Fe.numberRange(i.blue, 0, 1) && Fe.numberRange(i.alpha, 0, 1); } t.is = r; -})(r9 || (r9 = {})); -var LW; +})(n9 || (n9 = {})); +var RW; (function(t) { function e(n, i) { return { @@ -76805,11 +76827,11 @@ var LW; t.create = e; function r(n) { const i = n; - return Fe.objectLiteral(i) && Cr.is(i.range) && r9.is(i.color); + return Fe.objectLiteral(i) && Cr.is(i.range) && n9.is(i.color); } t.is = r; -})(LW || (LW = {})); -var RW; +})(RW || (RW = {})); +var MW; (function(t) { function e(n, i, s) { return { @@ -76824,12 +76846,12 @@ var RW; return Fe.objectLiteral(i) && Fe.string(i.label) && (Fe.undefined(i.textEdit) || m1.is(i)) && (Fe.undefined(i.additionalTextEdits) || Fe.typedArray(i.additionalTextEdits, m1.is)); } t.is = r; -})(RW || (RW = {})); -var MW; -(function(t) { - t.Comment = "comment", t.Imports = "imports", t.Region = "region"; })(MW || (MW = {})); var DW; +(function(t) { + t.Comment = "comment", t.Imports = "imports", t.Region = "region"; +})(DW || (DW = {})); +var NW; (function(t) { function e(n, i, s, a, o, l) { const u = { @@ -76844,8 +76866,8 @@ var DW; return Fe.objectLiteral(i) && Fe.uinteger(i.startLine) && Fe.uinteger(i.startLine) && (Fe.undefined(i.startCharacter) || Fe.uinteger(i.startCharacter)) && (Fe.undefined(i.endCharacter) || Fe.uinteger(i.endCharacter)) && (Fe.undefined(i.kind) || Fe.string(i.kind)); } t.is = r; -})(DW || (DW = {})); -var n9; +})(NW || (NW = {})); +var i9; (function(t) { function e(n, i) { return { @@ -76856,27 +76878,27 @@ var n9; t.create = e; function r(n) { let i = n; - return Fe.defined(i) && Rk.is(i.location) && Fe.string(i.message); + return Fe.defined(i) && Mk.is(i.location) && Fe.string(i.message); } t.is = r; -})(n9 || (n9 = {})); -var NW; -(function(t) { - t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; -})(NW || (NW = {})); +})(i9 || (i9 = {})); var IW; (function(t) { - t.Unnecessary = 1, t.Deprecated = 2; + t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; })(IW || (IW = {})); var PW; +(function(t) { + t.Unnecessary = 1, t.Deprecated = 2; +})(PW || (PW = {})); +var $W; (function(t) { function e(r) { const n = r; return Fe.objectLiteral(n) && Fe.string(n.href); } t.is = e; -})(PW || (PW = {})); -var Mk; +})($W || ($W = {})); +var Dk; (function(t) { function e(n, i, s, a, o, l) { let u = { range: n, message: i }; @@ -76886,10 +76908,10 @@ var Mk; function r(n) { var i; let s = n; - return Fe.defined(s) && Cr.is(s.range) && Fe.string(s.message) && (Fe.number(s.severity) || Fe.undefined(s.severity)) && (Fe.integer(s.code) || Fe.string(s.code) || Fe.undefined(s.code)) && (Fe.undefined(s.codeDescription) || Fe.string((i = s.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (Fe.string(s.source) || Fe.undefined(s.source)) && (Fe.undefined(s.relatedInformation) || Fe.typedArray(s.relatedInformation, n9.is)); + return Fe.defined(s) && Cr.is(s.range) && Fe.string(s.message) && (Fe.number(s.severity) || Fe.undefined(s.severity)) && (Fe.integer(s.code) || Fe.string(s.code) || Fe.undefined(s.code)) && (Fe.undefined(s.codeDescription) || Fe.string((i = s.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (Fe.string(s.source) || Fe.undefined(s.source)) && (Fe.undefined(s.relatedInformation) || Fe.typedArray(s.relatedInformation, i9.is)); } t.is = r; -})(Mk || (Mk = {})); +})(Dk || (Dk = {})); var g1; (function(t) { function e(n, i, ...s) { @@ -76923,7 +76945,7 @@ var m1; } t.is = i; })(m1 || (m1 = {})); -var i9; +var s9; (function(t) { function e(n, i, s) { const a = { label: n }; @@ -76935,7 +76957,7 @@ var i9; return Fe.objectLiteral(i) && Fe.string(i.label) && (Fe.boolean(i.needsConfirmation) || i.needsConfirmation === void 0) && (Fe.string(i.description) || i.description === void 0); } t.is = r; -})(i9 || (i9 = {})); +})(s9 || (s9 = {})); var v1; (function(t) { function e(r) { @@ -76944,7 +76966,7 @@ var v1; } t.is = e; })(v1 || (v1 = {})); -var $W; +var BW; (function(t) { function e(s, a, o) { return { range: s, newText: a, annotationId: o }; @@ -76960,11 +76982,11 @@ var $W; t.del = n; function i(s) { const a = s; - return m1.is(a) && (i9.is(a.annotationId) || v1.is(a.annotationId)); + return m1.is(a) && (s9.is(a.annotationId) || v1.is(a.annotationId)); } t.is = i; -})($W || ($W = {})); -var s9; +})(BW || (BW = {})); +var a9; (function(t) { function e(n, i) { return { textDocument: n, edits: i }; @@ -76972,11 +76994,11 @@ var s9; t.create = e; function r(n) { let i = n; - return Fe.defined(i) && u9.is(i.textDocument) && Array.isArray(i.edits); + return Fe.defined(i) && h9.is(i.textDocument) && Array.isArray(i.edits); } t.is = r; -})(s9 || (s9 = {})); -var a9; +})(a9 || (a9 = {})); +var o9; (function(t) { function e(n, i, s) { let a = { @@ -76991,8 +77013,8 @@ var a9; return i && i.kind === "create" && Fe.string(i.uri) && (i.options === void 0 || (i.options.overwrite === void 0 || Fe.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || Fe.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || v1.is(i.annotationId)); } t.is = r; -})(a9 || (a9 = {})); -var o9; +})(o9 || (o9 = {})); +var l9; (function(t) { function e(n, i, s, a) { let o = { @@ -77008,8 +77030,8 @@ var o9; return i && i.kind === "rename" && Fe.string(i.oldUri) && Fe.string(i.newUri) && (i.options === void 0 || (i.options.overwrite === void 0 || Fe.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || Fe.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || v1.is(i.annotationId)); } t.is = r; -})(o9 || (o9 = {})); -var l9; +})(l9 || (l9 = {})); +var c9; (function(t) { function e(n, i, s) { let a = { @@ -77024,16 +77046,16 @@ var l9; return i && i.kind === "delete" && Fe.string(i.uri) && (i.options === void 0 || (i.options.recursive === void 0 || Fe.boolean(i.options.recursive)) && (i.options.ignoreIfNotExists === void 0 || Fe.boolean(i.options.ignoreIfNotExists))) && (i.annotationId === void 0 || v1.is(i.annotationId)); } t.is = r; -})(l9 || (l9 = {})); -var c9; +})(c9 || (c9 = {})); +var u9; (function(t) { function e(r) { let n = r; - return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((i) => Fe.string(i.kind) ? a9.is(i) || o9.is(i) || l9.is(i) : s9.is(i))); + return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((i) => Fe.string(i.kind) ? o9.is(i) || l9.is(i) || c9.is(i) : a9.is(i))); } t.is = e; -})(c9 || (c9 = {})); -var BW; +})(u9 || (u9 = {})); +var FW; (function(t) { function e(n) { return { uri: n }; @@ -77044,8 +77066,8 @@ var BW; return Fe.defined(i) && Fe.string(i.uri); } t.is = r; -})(BW || (BW = {})); -var FW; +})(FW || (FW = {})); +var zW; (function(t) { function e(n, i) { return { uri: n, version: i }; @@ -77056,8 +77078,8 @@ var FW; return Fe.defined(i) && Fe.string(i.uri) && Fe.integer(i.version); } t.is = r; -})(FW || (FW = {})); -var u9; +})(zW || (zW = {})); +var h9; (function(t) { function e(n, i) { return { uri: n, version: i }; @@ -77068,8 +77090,8 @@ var u9; return Fe.defined(i) && Fe.string(i.uri) && (i.version === null || Fe.integer(i.version)); } t.is = r; -})(u9 || (u9 = {})); -var zW; +})(h9 || (h9 = {})); +var VW; (function(t) { function e(n, i, s, a) { return { uri: n, languageId: i, version: s, text: a }; @@ -77080,8 +77102,8 @@ var zW; return Fe.defined(i) && Fe.string(i.uri) && Fe.string(i.languageId) && Fe.integer(i.version) && Fe.string(i.text); } t.is = r; -})(zW || (zW = {})); -var h9; +})(VW || (VW = {})); +var f9; (function(t) { t.PlainText = "plaintext", t.Markdown = "markdown"; function e(r) { @@ -77089,28 +77111,28 @@ var h9; return n === t.PlainText || n === t.Markdown; } t.is = e; -})(h9 || (h9 = {})); +})(f9 || (f9 = {})); var R2; (function(t) { function e(r) { const n = r; - return Fe.objectLiteral(r) && h9.is(n.kind) && Fe.string(n.value); + return Fe.objectLiteral(r) && f9.is(n.kind) && Fe.string(n.value); } t.is = e; })(R2 || (R2 = {})); -var VW; -(function(t) { - t.Text = 1, t.Method = 2, t.Function = 3, t.Constructor = 4, t.Field = 5, t.Variable = 6, t.Class = 7, t.Interface = 8, t.Module = 9, t.Property = 10, t.Unit = 11, t.Value = 12, t.Enum = 13, t.Keyword = 14, t.Snippet = 15, t.Color = 16, t.File = 17, t.Reference = 18, t.Folder = 19, t.EnumMember = 20, t.Constant = 21, t.Struct = 22, t.Event = 23, t.Operator = 24, t.TypeParameter = 25; -})(VW || (VW = {})); var UW; (function(t) { - t.PlainText = 1, t.Snippet = 2; + t.Text = 1, t.Method = 2, t.Function = 3, t.Constructor = 4, t.Field = 5, t.Variable = 6, t.Class = 7, t.Interface = 8, t.Module = 9, t.Property = 10, t.Unit = 11, t.Value = 12, t.Enum = 13, t.Keyword = 14, t.Snippet = 15, t.Color = 16, t.File = 17, t.Reference = 18, t.Folder = 19, t.EnumMember = 20, t.Constant = 21, t.Struct = 22, t.Event = 23, t.Operator = 24, t.TypeParameter = 25; })(UW || (UW = {})); var qW; (function(t) { - t.Deprecated = 1; + t.PlainText = 1, t.Snippet = 2; })(qW || (qW = {})); var QW; +(function(t) { + t.Deprecated = 1; +})(QW || (QW = {})); +var YW; (function(t) { function e(n, i, s) { return { newText: n, insert: i, replace: s }; @@ -77121,34 +77143,34 @@ var QW; return i && Fe.string(i.newText) && Cr.is(i.insert) && Cr.is(i.replace); } t.is = r; -})(QW || (QW = {})); -var YW; -(function(t) { - t.asIs = 1, t.adjustIndentation = 2; })(YW || (YW = {})); var WW; +(function(t) { + t.asIs = 1, t.adjustIndentation = 2; +})(WW || (WW = {})); +var GW; (function(t) { function e(r) { const n = r; return n && (Fe.string(n.detail) || n.detail === void 0) && (Fe.string(n.description) || n.description === void 0); } t.is = e; -})(WW || (WW = {})); -var GW; +})(GW || (GW = {})); +var HW; (function(t) { function e(r) { return { label: r }; } t.create = e; -})(GW || (GW = {})); -var HW; +})(HW || (HW = {})); +var XW; (function(t) { function e(r, n) { return { items: r || [], isIncomplete: !!n }; } t.create = e; -})(HW || (HW = {})); -var Dk; +})(XW || (XW = {})); +var Nk; (function(t) { function e(n) { return n.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); @@ -77159,51 +77181,51 @@ var Dk; return Fe.string(i) || Fe.objectLiteral(i) && Fe.string(i.language) && Fe.string(i.value); } t.is = r; -})(Dk || (Dk = {})); -var XW; +})(Nk || (Nk = {})); +var ZW; (function(t) { function e(r) { let n = r; - return !!n && Fe.objectLiteral(n) && (R2.is(n.contents) || Dk.is(n.contents) || Fe.typedArray(n.contents, Dk.is)) && (r.range === void 0 || Cr.is(r.range)); + return !!n && Fe.objectLiteral(n) && (R2.is(n.contents) || Nk.is(n.contents) || Fe.typedArray(n.contents, Nk.is)) && (r.range === void 0 || Cr.is(r.range)); } t.is = e; -})(XW || (XW = {})); -var ZW; +})(ZW || (ZW = {})); +var jW; (function(t) { function e(r, n) { return n ? { label: r, documentation: n } : { label: r }; } t.create = e; -})(ZW || (ZW = {})); -var jW; +})(jW || (jW = {})); +var KW; (function(t) { function e(r, n, ...i) { let s = { label: r }; return Fe.defined(n) && (s.documentation = n), Fe.defined(i) ? s.parameters = i : s.parameters = [], s; } t.create = e; -})(jW || (jW = {})); -var KW; -(function(t) { - t.Text = 1, t.Read = 2, t.Write = 3; })(KW || (KW = {})); var JW; +(function(t) { + t.Text = 1, t.Read = 2, t.Write = 3; +})(JW || (JW = {})); +var eG; (function(t) { function e(r, n) { let i = { range: r }; return Fe.number(n) && (i.kind = n), i; } t.create = e; -})(JW || (JW = {})); -var eG; -(function(t) { - t.File = 1, t.Module = 2, t.Namespace = 3, t.Package = 4, t.Class = 5, t.Method = 6, t.Property = 7, t.Field = 8, t.Constructor = 9, t.Enum = 10, t.Interface = 11, t.Function = 12, t.Variable = 13, t.Constant = 14, t.String = 15, t.Number = 16, t.Boolean = 17, t.Array = 18, t.Object = 19, t.Key = 20, t.Null = 21, t.EnumMember = 22, t.Struct = 23, t.Event = 24, t.Operator = 25, t.TypeParameter = 26; })(eG || (eG = {})); var tG; (function(t) { - t.Deprecated = 1; + t.File = 1, t.Module = 2, t.Namespace = 3, t.Package = 4, t.Class = 5, t.Method = 6, t.Property = 7, t.Field = 8, t.Constructor = 9, t.Enum = 10, t.Interface = 11, t.Function = 12, t.Variable = 13, t.Constant = 14, t.String = 15, t.Number = 16, t.Boolean = 17, t.Array = 18, t.Object = 19, t.Key = 20, t.Null = 21, t.EnumMember = 22, t.Struct = 23, t.Event = 24, t.Operator = 25, t.TypeParameter = 26; })(tG || (tG = {})); var rG; +(function(t) { + t.Deprecated = 1; +})(rG || (rG = {})); +var nG; (function(t) { function e(r, n, i, s, a) { let o = { @@ -77214,15 +77236,15 @@ var rG; return a && (o.containerName = a), o; } t.create = e; -})(rG || (rG = {})); -var nG; +})(nG || (nG = {})); +var iG; (function(t) { function e(r, n, i, s) { return s !== void 0 ? { name: r, kind: n, location: { uri: i, range: s } } : { name: r, kind: n, location: { uri: i } }; } t.create = e; -})(nG || (nG = {})); -var iG; +})(iG || (iG = {})); +var sG; (function(t) { function e(n, i, s, a, o, l) { let u = { @@ -77240,16 +77262,16 @@ var iG; return i && Fe.string(i.name) && Fe.number(i.kind) && Cr.is(i.range) && Cr.is(i.selectionRange) && (i.detail === void 0 || Fe.string(i.detail)) && (i.deprecated === void 0 || Fe.boolean(i.deprecated)) && (i.children === void 0 || Array.isArray(i.children)) && (i.tags === void 0 || Array.isArray(i.tags)); } t.is = r; -})(iG || (iG = {})); -var sG; +})(sG || (sG = {})); +var aG; (function(t) { t.Empty = "", t.QuickFix = "quickfix", t.Refactor = "refactor", t.RefactorExtract = "refactor.extract", t.RefactorInline = "refactor.inline", t.RefactorRewrite = "refactor.rewrite", t.Source = "source", t.SourceOrganizeImports = "source.organizeImports", t.SourceFixAll = "source.fixAll"; -})(sG || (sG = {})); -var Nk; +})(aG || (aG = {})); +var Ik; (function(t) { t.Invoked = 1, t.Automatic = 2; -})(Nk || (Nk = {})); -var aG; +})(Ik || (Ik = {})); +var oG; (function(t) { function e(n, i, s) { let a = { diagnostics: n }; @@ -77258,11 +77280,11 @@ var aG; t.create = e; function r(n) { let i = n; - return Fe.defined(i) && Fe.typedArray(i.diagnostics, Mk.is) && (i.only === void 0 || Fe.typedArray(i.only, Fe.string)) && (i.triggerKind === void 0 || i.triggerKind === Nk.Invoked || i.triggerKind === Nk.Automatic); + return Fe.defined(i) && Fe.typedArray(i.diagnostics, Dk.is) && (i.only === void 0 || Fe.typedArray(i.only, Fe.string)) && (i.triggerKind === void 0 || i.triggerKind === Ik.Invoked || i.triggerKind === Ik.Automatic); } t.is = r; -})(aG || (aG = {})); -var oG; +})(oG || (oG = {})); +var lG; (function(t) { function e(n, i, s) { let a = { title: n }, o = !0; @@ -77271,11 +77293,11 @@ var oG; t.create = e; function r(n) { let i = n; - return i && Fe.string(i.title) && (i.diagnostics === void 0 || Fe.typedArray(i.diagnostics, Mk.is)) && (i.kind === void 0 || Fe.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || g1.is(i.command)) && (i.isPreferred === void 0 || Fe.boolean(i.isPreferred)) && (i.edit === void 0 || c9.is(i.edit)); + return i && Fe.string(i.title) && (i.diagnostics === void 0 || Fe.typedArray(i.diagnostics, Dk.is)) && (i.kind === void 0 || Fe.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || g1.is(i.command)) && (i.isPreferred === void 0 || Fe.boolean(i.isPreferred)) && (i.edit === void 0 || u9.is(i.edit)); } t.is = r; -})(oG || (oG = {})); -var lG; +})(lG || (lG = {})); +var cG; (function(t) { function e(n, i) { let s = { range: n }; @@ -77287,8 +77309,8 @@ var lG; return Fe.defined(i) && Cr.is(i.range) && (Fe.undefined(i.command) || g1.is(i.command)); } t.is = r; -})(lG || (lG = {})); -var cG; +})(cG || (cG = {})); +var uG; (function(t) { function e(n, i) { return { tabSize: n, insertSpaces: i }; @@ -77299,8 +77321,8 @@ var cG; return Fe.defined(i) && Fe.uinteger(i.tabSize) && Fe.boolean(i.insertSpaces); } t.is = r; -})(cG || (cG = {})); -var uG; +})(uG || (uG = {})); +var hG; (function(t) { function e(n, i, s) { return { range: n, target: i, data: s }; @@ -77311,8 +77333,8 @@ var uG; return Fe.defined(i) && Cr.is(i.range) && (Fe.undefined(i.target) || Fe.string(i.target)); } t.is = r; -})(uG || (uG = {})); -var hG; +})(hG || (hG = {})); +var fG; (function(t) { function e(n, i) { return { range: n, parent: i }; @@ -77323,24 +77345,24 @@ var hG; return Fe.objectLiteral(i) && Cr.is(i.range) && (i.parent === void 0 || t.is(i.parent)); } t.is = r; -})(hG || (hG = {})); -var fG; -(function(t) { - t.namespace = "namespace", t.type = "type", t.class = "class", t.enum = "enum", t.interface = "interface", t.struct = "struct", t.typeParameter = "typeParameter", t.parameter = "parameter", t.variable = "variable", t.property = "property", t.enumMember = "enumMember", t.event = "event", t.function = "function", t.method = "method", t.macro = "macro", t.keyword = "keyword", t.modifier = "modifier", t.comment = "comment", t.string = "string", t.number = "number", t.regexp = "regexp", t.operator = "operator", t.decorator = "decorator"; })(fG || (fG = {})); var dG; (function(t) { - t.declaration = "declaration", t.definition = "definition", t.readonly = "readonly", t.static = "static", t.deprecated = "deprecated", t.abstract = "abstract", t.async = "async", t.modification = "modification", t.documentation = "documentation", t.defaultLibrary = "defaultLibrary"; + t.namespace = "namespace", t.type = "type", t.class = "class", t.enum = "enum", t.interface = "interface", t.struct = "struct", t.typeParameter = "typeParameter", t.parameter = "parameter", t.variable = "variable", t.property = "property", t.enumMember = "enumMember", t.event = "event", t.function = "function", t.method = "method", t.macro = "macro", t.keyword = "keyword", t.modifier = "modifier", t.comment = "comment", t.string = "string", t.number = "number", t.regexp = "regexp", t.operator = "operator", t.decorator = "decorator"; })(dG || (dG = {})); var pG; +(function(t) { + t.declaration = "declaration", t.definition = "definition", t.readonly = "readonly", t.static = "static", t.deprecated = "deprecated", t.abstract = "abstract", t.async = "async", t.modification = "modification", t.documentation = "documentation", t.defaultLibrary = "defaultLibrary"; +})(pG || (pG = {})); +var gG; (function(t) { function e(r) { const n = r; return Fe.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number"); } t.is = e; -})(pG || (pG = {})); -var gG; +})(gG || (gG = {})); +var mG; (function(t) { function e(n, i) { return { range: n, text: i }; @@ -77351,8 +77373,8 @@ var gG; return i != null && Cr.is(i.range) && Fe.string(i.text); } t.is = r; -})(gG || (gG = {})); -var mG; +})(mG || (mG = {})); +var vG; (function(t) { function e(n, i, s) { return { range: n, variableName: i, caseSensitiveLookup: s }; @@ -77363,8 +77385,8 @@ var mG; return i != null && Cr.is(i.range) && Fe.boolean(i.caseSensitiveLookup) && (Fe.string(i.variableName) || i.variableName === void 0); } t.is = r; -})(mG || (mG = {})); -var vG; +})(vG || (vG = {})); +var yG; (function(t) { function e(n, i) { return { range: n, expression: i }; @@ -77375,8 +77397,8 @@ var vG; return i != null && Cr.is(i.range) && (Fe.string(i.expression) || i.expression === void 0); } t.is = r; -})(vG || (vG = {})); -var yG; +})(yG || (yG = {})); +var bG; (function(t) { function e(n, i) { return { frameId: n, stoppedLocation: i }; @@ -77387,16 +77409,16 @@ var yG; return Fe.defined(i) && Cr.is(n.stoppedLocation); } t.is = r; -})(yG || (yG = {})); -var f9; +})(bG || (bG = {})); +var d9; (function(t) { t.Type = 1, t.Parameter = 2; function e(r) { return r === 1 || r === 2; } t.is = e; -})(f9 || (f9 = {})); -var d9; +})(d9 || (d9 = {})); +var p9; (function(t) { function e(n) { return { value: n }; @@ -77404,11 +77426,11 @@ var d9; t.create = e; function r(n) { const i = n; - return Fe.objectLiteral(i) && (i.tooltip === void 0 || Fe.string(i.tooltip) || R2.is(i.tooltip)) && (i.location === void 0 || Rk.is(i.location)) && (i.command === void 0 || g1.is(i.command)); + return Fe.objectLiteral(i) && (i.tooltip === void 0 || Fe.string(i.tooltip) || R2.is(i.tooltip)) && (i.location === void 0 || Mk.is(i.location)) && (i.command === void 0 || g1.is(i.command)); } t.is = r; -})(d9 || (d9 = {})); -var bG; +})(p9 || (p9 = {})); +var xG; (function(t) { function e(n, i, s) { const a = { position: n, label: i }; @@ -77417,61 +77439,61 @@ var bG; t.create = e; function r(n) { const i = n; - return Fe.objectLiteral(i) && zr.is(i.position) && (Fe.string(i.label) || Fe.typedArray(i.label, d9.is)) && (i.kind === void 0 || f9.is(i.kind)) && i.textEdits === void 0 || Fe.typedArray(i.textEdits, m1.is) && (i.tooltip === void 0 || Fe.string(i.tooltip) || R2.is(i.tooltip)) && (i.paddingLeft === void 0 || Fe.boolean(i.paddingLeft)) && (i.paddingRight === void 0 || Fe.boolean(i.paddingRight)); + return Fe.objectLiteral(i) && zr.is(i.position) && (Fe.string(i.label) || Fe.typedArray(i.label, p9.is)) && (i.kind === void 0 || d9.is(i.kind)) && i.textEdits === void 0 || Fe.typedArray(i.textEdits, m1.is) && (i.tooltip === void 0 || Fe.string(i.tooltip) || R2.is(i.tooltip)) && (i.paddingLeft === void 0 || Fe.boolean(i.paddingLeft)) && (i.paddingRight === void 0 || Fe.boolean(i.paddingRight)); } t.is = r; -})(bG || (bG = {})); -var xG; +})(xG || (xG = {})); +var wG; (function(t) { function e(r) { return { kind: "snippet", value: r }; } t.createSnippet = e; -})(xG || (xG = {})); -var wG; +})(wG || (wG = {})); +var OG; (function(t) { function e(r, n, i, s) { return { insertText: r, filterText: n, range: i, command: s }; } t.create = e; -})(wG || (wG = {})); -var OG; +})(OG || (OG = {})); +var kG; (function(t) { function e(r) { return { items: r }; } t.create = e; -})(OG || (OG = {})); -var kG; -(function(t) { - t.Invoked = 0, t.Automatic = 1; })(kG || (kG = {})); var SG; +(function(t) { + t.Invoked = 0, t.Automatic = 1; +})(SG || (SG = {})); +var TG; (function(t) { function e(r, n) { return { range: r, text: n }; } t.create = e; -})(SG || (SG = {})); -var TG; +})(TG || (TG = {})); +var CG; (function(t) { function e(r, n) { return { triggerKind: r, selectedCompletionInfo: n }; } t.create = e; -})(TG || (TG = {})); -var CG; +})(CG || (CG = {})); +var EG; (function(t) { function e(r) { const n = r; - return Fe.objectLiteral(n) && t9.is(n.uri) && Fe.string(n.name); + return Fe.objectLiteral(n) && r9.is(n.uri) && Fe.string(n.name); } t.is = e; -})(CG || (CG = {})); -var EG; +})(EG || (EG = {})); +var _G; (function(t) { function e(s, a, o, l) { - return new iUt(s, a, o, l); + return new sUt(s, a, o, l); } t.create = e; function r(s) { @@ -77509,8 +77531,8 @@ var EG; s[d++] = u[f++]; return s; } -})(EG || (EG = {})); -class iUt { +})(_G || (_G = {})); +class sUt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; } @@ -77620,7 +77642,7 @@ var Fe; } t.typedArray = d; })(Fe || (Fe = {})); -class sUt { +class aUt { constructor() { this.nodeStack = []; } @@ -77628,14 +77650,14 @@ class sUt { return this.nodeStack[this.nodeStack.length - 1]; } buildRootNode(e) { - return this.rootNode = new v0e(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; + return this.rootNode = new y0e(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; } buildCompositeNode(e) { const r = new LI(); return r.grammarSource = e, r.root = this.rootNode, this.current.content.push(r), this.nodeStack.push(r), r; } buildLeafNode(e, r) { - const n = new p9(e.startOffset, e.image.length, UL(e), e.tokenType, !1); + const n = new g9(e.startOffset, e.image.length, qL(e), e.tokenType, !1); return n.grammarSource = r, n.root = this.rootNode, this.current.content.push(n), n; } removeNode(e) { @@ -77653,7 +77675,7 @@ class sUt { } addHiddenTokens(e) { for (const r of e) { - const n = new p9(r.startOffset, r.image.length, UL(r), r.tokenType, !0); + const n = new g9(r.startOffset, r.image.length, qL(r), r.tokenType, !0); n.root = this.rootNode, this.addHiddenToken(this.rootNode, n); } } @@ -77672,7 +77694,7 @@ class sUt { e.content.push(r); } } -class m0e { +class v0e { get parent() { return this.container; } @@ -77699,7 +77721,7 @@ class m0e { return this.root.fullText.substring(this.offset, this.end); } } -class p9 extends m0e { +class g9 extends v0e { get offset() { return this._offset; } @@ -77722,7 +77744,7 @@ class p9 extends m0e { super(), this._hidden = s, this._offset = e, this._tokenType = i, this._length = r, this._range = n; } } -class LI extends m0e { +class LI extends v0e { constructor() { super(...arguments), this.content = new RI(this); } @@ -77784,7 +77806,7 @@ class RI extends Array { r.container = this.parent; } } -class v0e extends LI { +class y0e extends LI { get text() { return this._text.substring(this.offset, this.end); } @@ -77795,16 +77817,16 @@ class v0e extends LI { super(), this._text = "", this._text = e != null ? e : ""; } } -const g9 = Symbol("Datatype"); -function V_(t) { - return t.$type === g9; +const m9 = Symbol("Datatype"); +function U_(t) { + return t.$type === m9; } -const _G = "\u200B", y0e = (t) => t.endsWith(_G) ? t : t + _G; -class b0e { +const AG = "\u200B", b0e = (t) => t.endsWith(AG) ? t : t + AG; +class x0e { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; - this.wrapper = new uUt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); + this.wrapper = new hUt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); } alternatives(e, r) { this.wrapper.wrapOr(e, r); @@ -77831,15 +77853,15 @@ class b0e { this.wrapper.wrapSelfAnalysis(); } } -class aUt extends b0e { +class oUt extends x0e { get current() { return this.stack[this.stack.length - 1]; } constructor(e) { - super(e), this.nodeBuilder = new sUt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; + super(e), this.nodeBuilder = new aUt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; } rule(e, r) { - const n = e.fragment ? void 0 : vI(e) ? g9 : pC(e), i = this.wrapper.DEFINE_RULE(y0e(e.name), this.startImplementation(n, r).bind(this)); + const n = e.fragment ? void 0 : vI(e) ? m9 : gC(e), i = this.wrapper.DEFINE_RULE(b0e(e.name), this.startImplementation(n, r).bind(this)); return e.entry && (this.mainRule = i), i; } parse(e) { @@ -77857,7 +77879,7 @@ class aUt extends b0e { return (n) => { if (!this.isRecording()) { const s = { $type: e }; - this.stack.push(s), e === g9 && (s.value = ""); + this.stack.push(s), e === m9 && (s.value = ""); } let i; try { @@ -77875,7 +77897,7 @@ class aUt extends b0e { if (a) { const u = v0(n) ? i.image : this.converter.convert(i.image, s); this.assign(a.operator, a.feature, u, s, o); - } else if (V_(l)) { + } else if (U_(l)) { let u = i.image; v0(n) || (u = this.converter.convert(u, s).toString()), l.value += u; } @@ -77896,7 +77918,7 @@ class aUt extends b0e { this.assign(i.operator, i.feature, e, n, s); else if (!i) { const a = this.current; - if (V_(a)) + if (U_(a)) a.value += e.toString(); else if (typeof e == "object" && e) { const o = e.$type, l = this.assignWithoutOverride(e, a); @@ -77922,11 +77944,11 @@ class aUt extends b0e { if (this.isRecording()) return; const r = this.current; - return FBt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), V_(r) ? this.converter.convert(r.value, r.$cstNode) : (VBt(this.astReflection, r), r); + return zBt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), U_(r) ? this.converter.convert(r.value, r.$cstNode) : (UBt(this.astReflection, r), r); } getAssignment(e) { if (!this.assignmentMap.has(e)) { - const r = hC(e, m0); + const r = fC(e, m0); this.assignmentMap.set(e, { assignment: r, isCrossRef: r ? dI(r.terminal) : !1 @@ -77961,7 +77983,7 @@ class aUt extends b0e { return this.wrapper.definitionErrors; } } -class oUt { +class lUt { buildMismatchTokenMessage(e) { return Fp.buildMismatchTokenMessage(e); } @@ -77975,7 +77997,7 @@ class oUt { return Fp.buildEarlyExitMessage(e); } } -class x0e extends oUt { +class w0e extends lUt { buildMismatchTokenMessage({ expected: e, actual: r }) { return `Expecting ${e.LABEL ? "`" + e.LABEL + "`" : e.name.endsWith(":KW") ? `keyword '${e.name.substring(0, e.name.length - 3)}'` : `token of type '${e.name}'`} but found \`${r.image}\`.`; } @@ -77983,7 +78005,7 @@ class x0e extends oUt { return `Expecting end of file but found \`${e.image}\`.`; } } -class lUt extends b0e { +class cUt extends x0e { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -78001,7 +78023,7 @@ class lUt extends b0e { }; } rule(e, r) { - const n = this.wrapper.DEFINE_RULE(y0e(e.name), this.startImplementation(r).bind(this)); + const n = this.wrapper.DEFINE_RULE(b0e(e.name), this.startImplementation(r).bind(this)); return e.entry && (this.mainRule = n), n; } resetState() { @@ -78046,16 +78068,16 @@ class lUt extends b0e { return this.wrapper.currIdx; } } -const cUt = { +const uUt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, - errorMessageProvider: new x0e() + errorMessageProvider: new w0e() }; -class uUt extends vVt { +class hUt extends yVt { constructor(e, r) { const n = r && "maxLookahead" in r; - super(e, Object.assign(Object.assign(Object.assign({}, cUt), { lookaheadStrategy: n ? new SI({ maxLookahead: r.maxLookahead }) : new BVt() }), r)); + super(e, Object.assign(Object.assign(Object.assign({}, uUt), { lookaheadStrategy: n ? new SI({ maxLookahead: r.maxLookahead }) : new FVt() }), r)); } get IS_RECORDING() { return this.RECORDING_PHASE; @@ -78087,16 +78109,16 @@ class uUt extends vVt { this.atLeastOne(e, r); } } -function w0e(t, e, r) { - return hUt({ +function O0e(t, e, r) { + return fUt({ parser: e, tokens: r, rules: /* @__PURE__ */ new Map(), ruleNames: /* @__PURE__ */ new Map() }, t), e; } -function hUt(t, e) { - const r = bde(e, !1), n = os(e.rules).filter(Jo).filter((i) => r.has(i)); +function fUt(t, e) { + const r = xde(e, !1), n = os(e.rules).filter(Jo).filter((i) => r.has(i)); for (const i of n) { const s = Object.assign(Object.assign({}, t), { consume: 1, optional: 1, subrule: 1, many: 1, or: 1 }); s.rules.set(i.name, t.parser.rule(i, x0(s, i.definition))); @@ -78105,46 +78127,46 @@ function hUt(t, e) { function x0(t, e, r = !1) { let n; if (v0(e)) - n = yUt(t, e); - else if (uC(e)) - n = fUt(t, e); + n = bUt(t, e); + else if (hC(e)) + n = dUt(t, e); else if (m0(e)) n = x0(t, e.terminal); else if (dI(e)) - n = O0e(t, e); + n = k0e(t, e); else if (y0(e)) - n = dUt(t, e); - else if (jfe(e)) - n = gUt(t, e); - else if (fde(e)) + n = pUt(t, e); + else if (Kfe(e)) n = mUt(t, e); - else if (pI(e)) + else if (dde(e)) n = vUt(t, e); - else if (MBt(e)) { + else if (pI(e)) + n = yUt(t, e); + else if (DBt(e)) { const i = t.consume++; n = () => t.parser.consume(i, Ef, e); } else - throw new Nfe(e.$cstNode, `Unexpected element type: ${e.$type}`); - return k0e(t, r ? void 0 : Ik(e), n, e.cardinality); + throw new Ife(e.$cstNode, `Unexpected element type: ${e.$type}`); + return S0e(t, r ? void 0 : Pk(e), n, e.cardinality); } -function fUt(t, e) { - const r = pC(e); +function dUt(t, e) { + const r = gC(e); return () => t.parser.action(r, e); } -function dUt(t, e) { +function pUt(t, e) { const r = e.rule.ref; if (Jo(r)) { - const n = t.subrule++, i = e.arguments.length > 0 ? pUt(r, e.arguments) : () => ({}); - return (s) => t.parser.subrule(n, S0e(t, r), e, i(s)); + const n = t.subrule++, i = e.arguments.length > 0 ? gUt(r, e.arguments) : () => ({}); + return (s) => t.parser.subrule(n, T0e(t, r), e, i(s)); } else if (J0(r)) { - const n = t.consume++, i = m9(t, r.name); + const n = t.consume++, i = v9(t, r.name); return () => t.parser.consume(n, i, e); } else if (r) - cC(); + uC(); else - throw new Nfe(e.$cstNode, `Undefined rule type: ${e.$type}`); + throw new Ife(e.$cstNode, `Undefined rule type: ${e.$type}`); } -function pUt(t, e) { +function gUt(t, e) { const r = e.map((n) => mu(n.value)); return (n) => { const i = {}; @@ -78156,25 +78178,25 @@ function pUt(t, e) { }; } function mu(t) { - if (bBt(t)) { + if (xBt(t)) { const e = mu(t.left), r = mu(t.right); return (n) => e(n) || r(n); - } else if (yBt(t)) { + } else if (bBt(t)) { const e = mu(t.left), r = mu(t.right); return (n) => e(n) && r(n); - } else if (wBt(t)) { + } else if (OBt(t)) { const e = mu(t.value); return (r) => !e(r); - } else if (SBt(t)) { + } else if (TBt(t)) { const e = t.parameter.ref.name; return (r) => r !== void 0 && r[e] === !0; - } else if (vBt(t)) { + } else if (yBt(t)) { const e = Boolean(t.true); return () => e; } - cC(); + uC(); } -function gUt(t, e) { +function mUt(t, e) { if (e.elements.length === 1) return x0(t, e.elements[0]); { @@ -78182,7 +78204,7 @@ function gUt(t, e) { for (const i of e.elements) { const s = { ALT: x0(t, i, !0) - }, a = Ik(i); + }, a = Pk(i); a && (s.GATE = mu(a)), r.push(s); } const n = t.or++; @@ -78194,14 +78216,14 @@ function gUt(t, e) { })); } } -function mUt(t, e) { +function vUt(t, e) { if (e.elements.length === 1) return x0(t, e.elements[0]); const r = []; for (const o of e.elements) { const l = { ALT: x0(t, o, !0) - }, u = Ik(o); + }, u = Pk(o); u && (l.GATE = mu(u)), r.push(l); } const n = t.or++, i = (o, l) => { @@ -78222,48 +78244,48 @@ function mUt(t, e) { const p = f.unorderedGroups.get(i(n, f)); return !(p != null && p[u]); }, h; - })), a = k0e(t, Ik(e), s, "*"); + })), a = S0e(t, Pk(e), s, "*"); return (o) => { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; } -function vUt(t, e) { +function yUt(t, e) { const r = e.elements.map((n) => x0(t, n)); return (n) => r.forEach((i) => i(n)); } -function Ik(t) { +function Pk(t) { if (pI(t)) return t.guardCondition; } -function O0e(t, e, r = e.terminal) { +function k0e(t, e, r = e.terminal) { if (r) if (y0(r) && Jo(r.rule.ref)) { const n = t.subrule++; - return (i) => t.parser.subrule(n, S0e(t, r.rule.ref), e, i); + return (i) => t.parser.subrule(n, T0e(t, r.rule.ref), e, i); } else if (y0(r) && J0(r.rule.ref)) { - const n = t.consume++, i = m9(t, r.rule.ref.name); + const n = t.consume++, i = v9(t, r.rule.ref.name); return () => t.parser.consume(n, i, e); } else if (v0(r)) { - const n = t.consume++, i = m9(t, r.value); + const n = t.consume++, i = v9(t, r.value); return () => t.parser.consume(n, i, e); } else throw new Error("Could not build cross reference parser"); else { if (!e.type.ref) throw new Error("Could not resolve reference to type: " + e.type.$refText); - const n = Ode(e.type.ref), i = n == null ? void 0 : n.terminal; + const n = kde(e.type.ref), i = n == null ? void 0 : n.terminal; if (!i) - throw new Error("Could not find name assignment for type: " + pC(e.type.ref)); - return O0e(t, e, i); + throw new Error("Could not find name assignment for type: " + gC(e.type.ref)); + return k0e(t, e, i); } } -function yUt(t, e) { +function bUt(t, e) { const r = t.consume++, n = t.tokens[e.value]; if (!n) throw new Error("Could not find token for keyword: " + e.value); return () => t.parser.consume(r, n, e); } -function k0e(t, e, r, n) { +function S0e(t, e, r, n) { const i = e && mu(e); if (!n) if (i) { @@ -78274,7 +78296,7 @@ function k0e(t, e, r, n) { GATE: () => i(a) }, { - ALT: kW(), + ALT: SW(), GATE: () => !i(a) } ]); @@ -78298,7 +78320,7 @@ function k0e(t, e, r, n) { GATE: () => i(o) }, { - ALT: kW(), + ALT: SW(), GATE: () => !i(o) } ]); @@ -78313,15 +78335,15 @@ function k0e(t, e, r, n) { GATE: i ? () => i(a) : void 0 }); } else - cC(); + uC(); } -function S0e(t, e) { - const r = bUt(t, e), n = t.rules.get(r); +function T0e(t, e) { + const r = xUt(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); return n; } -function bUt(t, e) { +function xUt(t, e) { if (Jo(e)) return e.name; if (t.ruleNames.has(e)) @@ -78329,34 +78351,34 @@ function bUt(t, e) { { let r = e, n = r.$container, i = e.$type; for (; !Jo(n); ) - (pI(n) || jfe(n) || fde(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; + (pI(n) || Kfe(n) || dde(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; return i = n.name + ":" + i, t.ruleNames.set(e, i), i; } } -function m9(t, e) { +function v9(t, e) { const r = t.tokens[e]; if (!r) throw new Error(`Token "${e}" not found."`); return r; } -function xUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new lUt(t); - return w0e(e, n, r.definition), n.finalize(), n; -} function wUt(t) { - const e = OUt(t); - return e.finalize(), e; + const e = t.Grammar, r = t.parser.Lexer, n = new cUt(t); + return O0e(e, n, r.definition), n.finalize(), n; } function OUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new aUt(t); - return w0e(e, n, r.definition); + const e = kUt(t); + return e.finalize(), e; } -class T0e { +function kUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new oUt(t); + return O0e(e, n, r.definition); +} +class C0e { buildTokens(e, r) { - const n = os(bde(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); + const n = os(xde(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); return i.forEach((a) => { const o = a.PATTERN; - typeof o == "object" && o && "test" in o && JY(o) ? s.unshift(a) : s.push(a); + typeof o == "object" && o && "test" in o && eW(o) ? s.unshift(a) : s.push(a); }), s; } buildTerminalTokens(e) { @@ -78368,7 +78390,7 @@ class T0e { PATTERN: n, LINE_BREAKS: !0 }; - return e.hidden && (i.GROUP = JY(r) ? Na.SKIPPED : "hidden"), i; + return e.hidden && (i.GROUP = eW(r) ? Ia.SKIPPED : "hidden"), i; } requiresCustomPattern(e) { return e.flags.includes("u") ? !0 : !!(e.source.includes("?<=") || e.source.includes("? { const s = i == null ? void 0 : i.PATTERN; - return (s == null ? void 0 : s.source) && ZBt("^" + s.source + "$", e.value) && n.push(i), n; + return (s == null ? void 0 : s.source) && jBt("^" + s.source + "$", e.value) && n.push(i), n; }, []); } } -class C0e { +class E0e { convert(e, r) { let n = r.grammarSource; - if (dI(n) && (n = eFt(n)), y0(n)) { + if (dI(n) && (n = tFt(n)), y0(n)) { const i = n.rule.ref; if (!i) throw new Error("This cst node was not parsed by a rule."); @@ -78418,7 +78440,7 @@ class C0e { case "ID": return fu.convertID(r); } - switch ((i = oFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { + switch ((i = lFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { case "number": return fu.convertNumber(r); case "boolean": @@ -78493,67 +78515,67 @@ var fu; } t.convertBoolean = l; })(fu || (fu = {})); -var M2 = {}, OC = {}; -Object.defineProperty(OC, "__esModule", { value: !0 }); -let v9; -function y9() { - if (v9 === void 0) +var M2 = {}, kC = {}; +Object.defineProperty(kC, "__esModule", { value: !0 }); +let y9; +function b9() { + if (y9 === void 0) throw new Error("No runtime abstraction layer installed"); - return v9; + return y9; } (function(t) { function e(r) { if (r === void 0) throw new Error("No runtime abstraction layer provided"); - v9 = r; + y9 = r; } t.install = e; -})(y9 || (y9 = {})); -OC.default = y9; +})(b9 || (b9 = {})); +kC.default = b9; var Rs = {}; Object.defineProperty(Rs, "__esModule", { value: !0 }); Rs.stringArray = Rs.array = Rs.func = Rs.error = Rs.number = Rs.string = Rs.boolean = void 0; -function kUt(t) { +function SUt(t) { return t === !0 || t === !1; } -Rs.boolean = kUt; -function E0e(t) { +Rs.boolean = SUt; +function _0e(t) { return typeof t == "string" || t instanceof String; } -Rs.string = E0e; -function SUt(t) { +Rs.string = _0e; +function TUt(t) { return typeof t == "number" || t instanceof Number; } -Rs.number = SUt; -function TUt(t) { +Rs.number = TUt; +function CUt(t) { return t instanceof Error; } -Rs.error = TUt; -function CUt(t) { +Rs.error = CUt; +function EUt(t) { return typeof t == "function"; } -Rs.func = CUt; -function _0e(t) { +Rs.func = EUt; +function A0e(t) { return Array.isArray(t); } -Rs.array = _0e; -function EUt(t) { - return _0e(t) && t.every((e) => E0e(e)); +Rs.array = A0e; +function _Ut(t) { + return A0e(t) && t.every((e) => _0e(e)); } -Rs.stringArray = EUt; +Rs.stringArray = _Ut; var y1 = {}; Object.defineProperty(y1, "__esModule", { value: !0 }); y1.Emitter = y1.Event = void 0; -const _Ut = OC; -var AG; +const AUt = kC; +var LG; (function(t) { const e = { dispose() { } }; t.None = function() { return e; }; -})(AG || (y1.Event = AG = {})); -class AUt { +})(LG || (y1.Event = LG = {})); +class LUt { add(e, r = null, n) { this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(r), Array.isArray(n) && n.push({ dispose: () => this.remove(e, r) }); } @@ -78579,7 +78601,7 @@ class AUt { try { r.push(n[s].apply(i[s], e)); } catch (o) { - (0, _Ut.default)().console.error(o); + (0, AUt.default)().console.error(o); } return r; } @@ -78590,16 +78612,16 @@ class AUt { this._callbacks = void 0, this._contexts = void 0; } } -class kC { +class SC { constructor(e) { this._options = e; } get event() { return this._event || (this._event = (e, r, n) => { - this._callbacks || (this._callbacks = new AUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); + this._callbacks || (this._callbacks = new LUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); const i = { dispose: () => { - !this._callbacks || (this._callbacks.remove(e, r), i.dispose = kC._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); + !this._callbacks || (this._callbacks.remove(e, r), i.dispose = SC._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); } }; return Array.isArray(n) && n.push(i), i; @@ -78612,35 +78634,35 @@ class kC { this._callbacks && (this._callbacks.dispose(), this._callbacks = void 0); } } -y1.Emitter = kC; -kC._noop = function() { +y1.Emitter = SC; +SC._noop = function() { }; var Gi; Object.defineProperty(M2, "__esModule", { value: !0 }); -var b9 = M2.CancellationTokenSource = Gi = M2.CancellationToken = void 0; -const LUt = OC, RUt = Rs, x9 = y1; -var Pk; +var x9 = M2.CancellationTokenSource = Gi = M2.CancellationToken = void 0; +const RUt = kC, MUt = Rs, w9 = y1; +var $k; (function(t) { t.None = Object.freeze({ isCancellationRequested: !1, - onCancellationRequested: x9.Event.None + onCancellationRequested: w9.Event.None }), t.Cancelled = Object.freeze({ isCancellationRequested: !0, - onCancellationRequested: x9.Event.None + onCancellationRequested: w9.Event.None }); function e(r) { const n = r; - return n && (n === t.None || n === t.Cancelled || RUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); + return n && (n === t.None || n === t.Cancelled || MUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); } t.is = e; -})(Pk || (Gi = M2.CancellationToken = Pk = {})); -const MUt = Object.freeze(function(t, e) { - const r = (0, LUt.default)().timer.setTimeout(t.bind(e), 0); +})($k || (Gi = M2.CancellationToken = $k = {})); +const DUt = Object.freeze(function(t, e) { + const r = (0, RUt.default)().timer.setTimeout(t.bind(e), 0); return { dispose() { r.dispose(); } }; }); -class LG { +class RG { constructor() { this._isCancelled = !1; } @@ -78651,40 +78673,40 @@ class LG { return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? MUt : (this._emitter || (this._emitter = new x9.Emitter()), this._emitter.event); + return this._isCancelled ? DUt : (this._emitter || (this._emitter = new w9.Emitter()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = void 0); } } -class DUt { +class NUt { get token() { - return this._token || (this._token = new LG()), this._token; + return this._token || (this._token = new RG()), this._token; } cancel() { - this._token ? this._token.cancel() : this._token = Pk.Cancelled; + this._token ? this._token.cancel() : this._token = $k.Cancelled; } dispose() { - this._token ? this._token instanceof LG && this._token.dispose() : this._token = Pk.None; + this._token ? this._token instanceof RG && this._token.dispose() : this._token = $k.None; } } -b9 = M2.CancellationTokenSource = DUt; -function NUt() { +x9 = M2.CancellationTokenSource = NUt; +function IUt() { return new Promise((t) => { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let RG = 0, IUt = 10; -const $k = Symbol("OperationCancelled"); +let MG = 0, PUt = 10; +const Bk = Symbol("OperationCancelled"); function MI(t) { - return t === $k; + return t === Bk; } async function El(t) { if (t === Gi.None) return; const e = Date.now(); - if (e - RG >= IUt && (RG = e, await NUt()), t.isCancellationRequested) - throw $k; + if (e - MG >= PUt && (MG = e, await IUt()), t.isCancellationRequested) + throw Bk; } class DI { constructor() { @@ -78716,11 +78738,11 @@ class D2 { update(e, r) { for (const n of e) if (D2.isIncremental(n)) { - const i = L0e(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); + const i = R0e(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); this._content = this._content.substring(0, s) + n.text + this._content.substring(a, this._content.length); const o = Math.max(i.start.line, 0), l = Math.max(i.end.line, 0); let u = this._lineOffsets; - const h = MG(n.text, !1, s); + const h = DG(n.text, !1, s); if (l - o === h.length) for (let d = 0, p = h.length; d < p; d++) u[d + o + 1] = h[d]; @@ -78737,7 +78759,7 @@ class D2 { this._version = r; } getLineOffsets() { - return this._lineOffsets === void 0 && (this._lineOffsets = MG(this._content, !0)), this._lineOffsets; + return this._lineOffsets === void 0 && (this._lineOffsets = DG(this._content, !0)), this._lineOffsets; } positionAt(e) { e = Math.max(Math.min(e, this._content.length), 0); @@ -78765,7 +78787,7 @@ class D2 { return this.ensureBeforeEOL(s, n); } ensureBeforeEOL(e, r) { - for (; e > r && A0e(this._content.charCodeAt(e - 1)); ) + for (; e > r && L0e(this._content.charCodeAt(e - 1)); ) e--; return e; } @@ -78781,7 +78803,7 @@ class D2 { return r != null && typeof r.text == "string" && r.range === void 0 && r.rangeLength === void 0; } } -var w9; +var O9; (function(t) { function e(i, s, a, o) { return new D2(i, s, a, o); @@ -78794,7 +78816,7 @@ var w9; } t.update = r; function n(i, s) { - const a = i.getText(), o = O9(s.map(PUt), (h, f) => { + const a = i.getText(), o = k9(s.map($Ut), (h, f) => { const d = h.range.start.line - f.range.start.line; return d === 0 ? h.range.start.character - f.range.start.character : d; }); @@ -78809,12 +78831,12 @@ var w9; return u.push(a.substr(l)), u.join(""); } t.applyEdits = n; -})(w9 || (w9 = {})); -function O9(t, e) { +})(O9 || (O9 = {})); +function k9(t, e) { if (t.length <= 1) return t; const r = t.length / 2 | 0, n = t.slice(0, r), i = t.slice(r); - O9(n, e), O9(i, e); + k9(n, e), k9(i, e); let s = 0, a = 0, o = 0; for (; s < n.length && a < i.length; ) e(n[s], i[a]) <= 0 ? t[o++] = n[s++] : t[o++] = i[a++]; @@ -78824,26 +78846,26 @@ function O9(t, e) { t[o++] = i[a++]; return t; } -function MG(t, e, r = 0) { +function DG(t, e, r = 0) { const n = e ? [r] : []; for (let i = 0; i < t.length; i++) { const s = t.charCodeAt(i); - A0e(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); + L0e(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); } return n; } -function A0e(t) { +function L0e(t) { return t === 13 || t === 10; } -function L0e(t) { +function R0e(t) { const e = t.start, r = t.end; return e.line > r.line || e.line === r.line && e.character > r.character ? { start: r, end: e } : t; } -function PUt(t) { - const e = L0e(t.range); +function $Ut(t) { + const e = R0e(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } -var R0e; +var M0e; (() => { var t = { 470: (i) => { function s(l) { @@ -79028,7 +79050,7 @@ var R0e; var n = {}; (() => { let i; - r.r(n), r.d(n, { URI: () => d, Utils: () => A }), typeof process == "object" ? i = process.platform === "win32" : typeof navigator == "object" && (i = navigator.userAgent.indexOf("Windows") >= 0); + r.r(n), r.d(n, { URI: () => d, Utils: () => L }), typeof process == "object" ? i = process.platform === "win32" : typeof navigator == "object" && (i = navigator.userAgent.indexOf("Windows") >= 0); const s = /^\w[\w\d+.-]*$/, a = /^\//, o = /^\/\//; function l(_, R) { if (!_.scheme && R) @@ -79189,30 +79211,30 @@ var R0e; return _.match(S) ? _.replace(S, (R) => O(R)) : _; } var T = r(470); - const L = T.posix || T, E = "/"; - var A; + const A = T.posix || T, E = "/"; + var L; (function(_) { _.joinPath = function(R, ...$) { - return R.with({ path: L.join(R.path, ...$) }); + return R.with({ path: A.join(R.path, ...$) }); }, _.resolvePath = function(R, ...$) { let k = R.path, N = !1; k[0] !== E && (k = E + k, N = !0); - let M = L.resolve(k, ...$); + let M = A.resolve(k, ...$); return N && M[0] === E && !R.authority && (M = M.substring(1)), R.with({ path: M }); }, _.dirname = function(R) { if (R.path.length === 0 || R.path === E) return R; - let $ = L.dirname(R.path); + let $ = A.dirname(R.path); return $.length === 1 && $.charCodeAt(0) === 46 && ($ = ""), R.with({ path: $ }); }, _.basename = function(R) { - return L.basename(R.path); + return A.basename(R.path); }, _.extname = function(R) { - return L.extname(R.path); + return A.extname(R.path); }; - })(A || (A = {})); - })(), R0e = n; + })(L || (L = {})); + })(), M0e = n; })(); -const { URI: b1, Utils: rv } = R0e; +const { URI: b1, Utils: rv } = M0e; var Af; (function(t) { t.basename = rv.basename, t.dirname = rv.dirname, t.extname = rv.extname, t.joinPath = rv.joinPath, t.resolvePath = rv.resolvePath; @@ -79234,7 +79256,7 @@ var kn; (function(t) { t[t.Changed = 0] = "Changed", t[t.Parsed = 1] = "Parsed", t[t.IndexedContent = 2] = "IndexedContent", t[t.ComputedScopes = 3] = "ComputedScopes", t[t.Linked = 4] = "Linked", t[t.IndexedReferences = 5] = "IndexedReferences", t[t.Validated = 6] = "Validated"; })(kn || (kn = {})); -class $Ut { +class BUt { constructor(e) { this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; } @@ -79320,10 +79342,10 @@ class $Ut { createTextDocumentGetter(e, r) { const n = this.serviceRegistry; let i; - return () => i != null ? i : i = w9.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); + return () => i != null ? i : i = O9.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); } } -class BUt { +class FUt { constructor(e) { this.documentMap = /* @__PURE__ */ new Map(), this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory; } @@ -79364,13 +79386,13 @@ class BUt { return n && (n.state = kn.Changed, this.documentMap.delete(r)), n; } } -class FUt { +class zUt { constructor(e) { this.reflection = e.shared.AstReflection, this.langiumDocuments = () => e.shared.workspace.LangiumDocuments, this.scopeProvider = e.references.ScopeProvider, this.astNodeLocator = e.workspace.AstNodeLocator; } async link(e, r = Gi.None) { for (const n of lg(e.parseResult.value)) - await El(r), mde(n).forEach((i) => this.doLink(i, e)); + await El(r), vde(n).forEach((i) => this.doLink(i, e)); } doLink(e, r) { const n = e.reference; @@ -79405,7 +79427,7 @@ class FUt { var o; if (Ps(this._ref)) return this._ref; - if (iBt(this._nodeDescription)) { + if (sBt(this._nodeDescription)) { const l = s.loadAstNode(this._nodeDescription); this._ref = l != null ? l : s.createLinkingError({ reference: a, container: e, property: r }, this._nodeDescription); } else if (this._ref === void 0) { @@ -79455,25 +79477,25 @@ class FUt { return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, targetDescription: r }); } } -function zUt(t) { +function VUt(t) { return typeof t.name == "string"; } -class VUt { +class UUt { getName(e) { - if (zUt(e)) + if (VUt(e)) return e.name; } getNameNode(e) { - return wde(e.$cstNode, "name"); + return Ode(e.$cstNode, "name"); } } -class UUt { +class qUt { constructor(e) { this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator; } findDeclaration(e) { if (e) { - const r = sFt(e), n = e.astNode; + const r = aFt(e), n = e.astNode; if (r && n) { const i = n[r.feature]; if (kc(i)) @@ -79486,7 +79508,7 @@ class UUt { } if (n) { const i = this.nameProvider.getNameNode(n); - if (i && (i === e || oBt(e, i))) + if (i && (i === e || lBt(e, i))) return n; } } @@ -79516,7 +79538,7 @@ class UUt { sourcePath: i, targetUri: n.uri, targetPath: i, - segment: yk(r), + segment: bk(r), local: !0 }; } @@ -79529,7 +79551,7 @@ class NI { this.add(r, n); } get size() { - return zL.sum(os(this.map.values()).map((e) => e.length)); + return VL.sum(os(this.map.values()).map((e) => e.length)); } clear() { this.map.clear(); @@ -79584,7 +79606,7 @@ class NI { return os(this.map.entries()); } } -class DG { +class NG { get size() { return this.map.size; } @@ -79610,7 +79632,7 @@ class DG { return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; } } -class qUt { +class QUt { constructor(e) { this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; } @@ -79642,7 +79664,7 @@ class qUt { } } } -class NG { +class IG { constructor(e, r, n) { var i; this.elements = e, this.outerScope = r, this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -79658,7 +79680,7 @@ class NG { return this.outerScope.getElement(e); } } -class QUt { +class YUt { constructor(e, r, n) { var i; this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -79680,7 +79702,7 @@ class QUt { return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; } } -class M0e { +class D0e { constructor() { this.toDispose = [], this.isDisposed = !1; } @@ -79695,7 +79717,7 @@ class M0e { throw new Error("This cache has already been disposed"); } } -class YUt extends M0e { +class WUt extends D0e { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -79721,7 +79743,7 @@ class YUt extends M0e { this.throwIfDisposed(), this.cache.clear(); } } -class WUt extends M0e { +class GUt extends D0e { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -79758,16 +79780,16 @@ class WUt extends M0e { return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; } } -class GUt extends YUt { +class HUt extends WUt { constructor(e) { super(), this.onDispose(e.workspace.DocumentBuilder.onUpdate(() => { this.clear(); })); } } -class HUt { +class XUt { constructor(e) { - this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new GUt(e.shared); + this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new HUt(e.shared); } getScope(e) { const r = [], n = this.reflection.getReferenceType(e), i = Fc(e.container).precomputedScopes; @@ -79784,7 +79806,7 @@ class HUt { return s; } createScope(e, r, n) { - return new NG(os(e), r, n); + return new IG(os(e), r, n); } createScopeForNodes(e, r, n) { const i = os(e).map((s) => { @@ -79792,19 +79814,19 @@ class HUt { if (a) return this.descriptions.createDescription(s, a); }).nonNullable(); - return new NG(i, r, n); + return new IG(i, r, n); } getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new QUt(this.indexManager.allElements(e))); + return this.globalScopeCache.get(e, () => new YUt(this.indexManager.allElements(e))); } } -function XUt(t) { +function ZUt(t) { return typeof t.$comment == "string"; } -function IG(t) { +function PG(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } -class ZUt { +class jUt { constructor(e) { this.ignoreProperties = /* @__PURE__ */ new Set(["$container", "$containerProperty", "$containerIndex", "$document", "$cstNode"]), this.langiumDocuments = e.shared.workspace.LangiumDocuments, this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider, this.commentProvider = e.documentation.CommentProvider; } @@ -79860,7 +79882,7 @@ class ZUt { if (e.$cstNode) { const n = e.$textRegion = r(e.$cstNode), i = n.assignments = {}; return Object.keys(e).filter((s) => !s.startsWith("$")).forEach((s) => { - const a = rFt(e.$cstNode, s).map(r); + const a = nFt(e.$cstNode, s).map(r); a.length !== 0 && (i[s] = a); }), e; } @@ -79870,10 +79892,10 @@ class ZUt { if (Array.isArray(u)) for (let h = 0; h < u.length; h++) { const f = u[h]; - IG(f) ? u[h] = this.reviveReference(e, l, r, f, n) : Ps(f) && this.linkNode(f, r, n, e, l, h); + PG(f) ? u[h] = this.reviveReference(e, l, r, f, n) : Ps(f) && this.linkNode(f, r, n, e, l, h); } else - IG(u) ? e[l] = this.reviveReference(e, l, r, u, n) : Ps(u) && this.linkNode(u, r, n, e, l); + PG(u) ? e[l] = this.reviveReference(e, l, r, u, n) : Ps(u) && this.linkNode(u, r, n, e, l); const o = e; o.$container = i, o.$containerProperty = s, o.$containerIndex = a; } @@ -79924,7 +79946,7 @@ class ZUt { } } } -class jUt { +class KUt { register(e) { if (!this.singleton && !this.map) { this.singleton = e; @@ -79952,14 +79974,14 @@ class jUt { return this.singleton !== void 0 ? [this.singleton] : this.map !== void 0 ? Object.values(this.map) : []; } } -function PG(t) { +function $G(t) { return { code: t }; } -var Bk; +var Fk; (function(t) { t.all = ["fast", "slow", "built-in"]; -})(Bk || (Bk = {})); -class KUt { +})(Fk || (Fk = {})); +class JUt { constructor(e) { this.entries = new NI(), this.reflection = e.shared.AstReflection; } @@ -80011,7 +80033,7 @@ class KUt { return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); } } -class JUt { +class eqt { constructor(e) { this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData; } @@ -80040,7 +80062,7 @@ class JUt { processLexingErrors(e, r, n) { for (const i of e.lexerErrors) { const s = { - severity: U_("error"), + severity: q_("error"), range: { start: { line: i.line - 1, @@ -80052,7 +80074,7 @@ class JUt { } }, message: i.message, - data: PG(Ch.LexingError), + data: $G(Ch.LexingError), source: this.getSource() }; r.push(s); @@ -80073,13 +80095,13 @@ class JUt { } } } else - s = UL(i.token); + s = qL(i.token); if (s) { const a = { - severity: U_("error"), + severity: q_("error"), range: s, message: i.message, - data: PG(Ch.ParsingError), + data: $G(Ch.ParsingError), source: this.getSource() }; r.push(a); @@ -80119,8 +80141,8 @@ class JUt { toDiagnostic(e, r, n) { return { message: r, - range: eqt(n), - severity: U_(e), + range: tqt(n), + severity: q_(e), code: n.code, codeDescription: n.codeDescription, tags: n.tags, @@ -80133,16 +80155,16 @@ class JUt { return this.metadata.languageId; } } -function eqt(t) { +function tqt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = wde(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = nFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = Ode(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = iFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }; } -function U_(t) { +function q_(t) { switch (t) { case "error": return 1; @@ -80160,7 +80182,7 @@ var Ch; (function(t) { t.LexingError = "lexing-error", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; })(Ch || (Ch = {})); -class tqt { +class rqt { constructor(e) { this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; } @@ -80172,7 +80194,7 @@ class tqt { let s; const a = () => { var o; - return s != null ? s : s = yk((o = this.nameProvider.getNameNode(e)) !== null && o !== void 0 ? o : e.$cstNode); + return s != null ? s : s = bk((o = this.nameProvider.getNameNode(e)) !== null && o !== void 0 ? o : e.$cstNode); }; return { node: e, @@ -80180,21 +80202,21 @@ class tqt { get nameSegment() { return a(); }, - selectionSegment: yk(e.$cstNode), + selectionSegment: bk(e.$cstNode), type: e.$type, documentUri: n.uri, path: i }; } } -class rqt { +class nqt { constructor(e) { this.nodeLocator = e.workspace.AstNodeLocator; } async createDescriptions(e, r = Gi.None) { const n = [], i = e.parseResult.value; for (const s of lg(i)) - await El(r), mde(s).filter((a) => !W4(a)).forEach((a) => { + await El(r), vde(s).filter((a) => !W4(a)).forEach((a) => { const o = this.createDescription(a); o && n.push(o); }); @@ -80210,12 +80232,12 @@ class rqt { sourcePath: this.nodeLocator.getAstNodePath(e.container), targetUri: r.documentUri, targetPath: r.path, - segment: yk(n), + segment: bk(n), local: Af.equals(r.documentUri, i) }; } } -class nqt { +class iqt { constructor() { this.segmentSeparator = "/", this.indexSeparator = "@"; } @@ -80244,7 +80266,7 @@ class nqt { }, e); } } -class iqt { +class sqt { constructor(e) { this._ready = new DI(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; } @@ -80292,7 +80314,7 @@ class iqt { return `${e}`; } } -var Fk; +var zk; (function(t) { function e(r) { return { @@ -80300,8 +80322,8 @@ var Fk; }; } t.create = e; -})(Fk || (Fk = {})); -class sqt { +})(zk || (zk = {})); +class aqt { constructor(e) { this.updateBuildOptions = { validation: { @@ -80319,7 +80341,7 @@ class sqt { else if (typeof r.validation == "object") { const l = this.buildState.get(o), u = (i = l == null ? void 0 : l.result) === null || i === void 0 ? void 0 : i.validationChecks; if (u) { - const f = ((s = r.validation.categories) !== null && s !== void 0 ? s : Bk.all).filter((d) => !u.includes(d)); + const f = ((s = r.validation.categories) !== null && s !== void 0 ? s : Fk.all).filter((d) => !u.includes(d)); f.length > 0 && (this.buildState.set(o, { completed: !1, options: { @@ -80362,7 +80384,7 @@ class sqt { return e.references.some((n) => n.error !== void 0) ? !0 : this.indexManager.isAffected(e, r); } onUpdate(e) { - return this.updateListeners.push(e), Fk.create(() => { + return this.updateListeners.push(e), zk.create(() => { const r = this.updateListeners.indexOf(e); r >= 0 && this.updateListeners.splice(r, 1); }); @@ -80396,7 +80418,7 @@ class sqt { await this.notifyBuildPhase(s, r, n), this.currentState = r; } onBuildPhase(e, r) { - return this.buildPhaseListeners.add(e, r), Fk.create(() => { + return this.buildPhaseListeners.add(e, r), zk.create(() => { this.buildPhaseListeners.delete(e, r); }); } @@ -80407,7 +80429,7 @@ class sqt { if (s && s.state > e) return Promise.resolve(i); } - return this.currentState >= e ? Promise.resolve(void 0) : n.isCancellationRequested ? Promise.reject($k) : new Promise((s, a) => { + return this.currentState >= e ? Promise.resolve(void 0) : n.isCancellationRequested ? Promise.reject(Bk) : new Promise((s, a) => { const o = this.onBuildPhase(e, () => { if (o.dispose(), l.dispose(), i) { const u = this.langiumDocuments.getDocument(i); @@ -80415,7 +80437,7 @@ class sqt { } else s(void 0); }), l = n.onCancellationRequested(() => { - o.dispose(), l.dispose(), a($k); + o.dispose(), l.dispose(), a(Bk); }); }); } @@ -80436,7 +80458,7 @@ class sqt { const u = this.buildState.get(e.uri.toString()); if (u) { (n = u.result) !== null && n !== void 0 || (u.result = {}); - const h = (i = o == null ? void 0 : o.categories) !== null && i !== void 0 ? i : Bk.all; + const h = (i = o == null ? void 0 : o.categories) !== null && i !== void 0 ? i : Fk.all; u.result.validationChecks ? u.result.validationChecks.push(...h) : u.result.validationChecks = [...h]; } } @@ -80445,9 +80467,9 @@ class sqt { return (n = (r = this.buildState.get(e.uri.toString())) === null || r === void 0 ? void 0 : r.options) !== null && n !== void 0 ? n : {}; } } -class aqt { +class oqt { constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new WUt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; + this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new GUt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; } findAllReferences(e, r) { const n = Fc(e).uri, i = []; @@ -80485,7 +80507,7 @@ class aqt { return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; } } -class oqt { +class lqt { constructor(e) { this.initialBuildOptions = {}, this._ready = new DI(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; } @@ -80544,14 +80566,14 @@ class oqt { return !1; } } -class lqt { +class cqt { constructor(e) { const r = e.parser.TokenBuilder.buildTokens(e.Grammar, { caseInsensitive: e.LanguageMetaData.caseInsensitive }); this.tokenTypes = this.toTokenTypeDictionary(r); - const n = $G(r) ? Object.values(r) : r; - this.chevrotainLexer = new Na(n, { + const n = BG(r) ? Object.values(r) : r; + this.chevrotainLexer = new Ia(n, { positionTracking: "full" }); } @@ -80568,48 +80590,48 @@ class lqt { }; } toTokenTypeDictionary(e) { - if ($G(e)) + if (BG(e)) return e; - const r = D0e(e) ? Object.values(e.modes).flat() : e, n = {}; + const r = N0e(e) ? Object.values(e.modes).flat() : e, n = {}; return r.forEach((i) => n[i.name] = i), n; } } -function cqt(t) { +function uqt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } -function D0e(t) { +function N0e(t) { return t && "modes" in t && "defaultMode" in t; } -function $G(t) { - return !cqt(t) && !D0e(t); +function BG(t) { + return !uqt(t) && !N0e(t); } -function uqt(t, e, r) { +function hqt(t, e, r) { let n, i; typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = zr.create(0, 0)); - const s = N0e(t), a = II(n), o = dqt({ + const s = I0e(t), a = II(n), o = pqt({ lines: s, position: i, options: a }); - return yqt({ + return bqt({ index: 0, tokens: o, position: i }); } -function hqt(t, e) { - const r = II(e), n = N0e(t); +function fqt(t, e) { + const r = II(e), n = I0e(t); if (n.length === 0) return !1; const i = n[0], s = n[n.length - 1], a = r.start, o = r.end; return Boolean(a == null ? void 0 : a.exec(i)) && Boolean(o == null ? void 0 : o.exec(s)); } -function N0e(t) { +function I0e(t) { let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split(YBt); + return typeof t == "string" ? e = t : e = t.text, e.split(WBt); } -const BG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, fqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function dqt(t) { +const FG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, dqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function pqt(t) { var e, r, n; const i = []; let s = t.position.line, a = t.position.character; @@ -80627,7 +80649,7 @@ function dqt(t) { const p = (n = t.options.end) === null || n === void 0 ? void 0 : n.exec(h); p && (h = h.substring(0, p.index)); } - if (h = h.substring(0, vqt(h)), k9(h, f) >= h.length) { + if (h = h.substring(0, yqt(h)), S9(h, f) >= h.length) { if (i.length > 0) { const p = zr.create(s, a); i.push({ @@ -80637,26 +80659,26 @@ function dqt(t) { }); } } else { - BG.lastIndex = f; - const p = BG.exec(h); + FG.lastIndex = f; + const p = FG.exec(h); if (p) { const g = p[0], m = p[1], v = zr.create(s, a + f), y = zr.create(s, a + f + g.length); i.push({ type: "tag", content: m, range: Cr.create(v, y) - }), f += g.length, f = k9(h, f); + }), f += g.length, f = S9(h, f); } if (f < h.length) { - const g = h.substring(f), m = Array.from(g.matchAll(fqt)); - i.push(...pqt(m, g, s, a + f)); + const g = h.substring(f), m = Array.from(g.matchAll(dqt)); + i.push(...gqt(m, g, s, a + f)); } } s++, a = 0; } return i.length > 0 && i[i.length - 1].type === "break" ? i.slice(0, -1) : i; } -function pqt(t, e, r, n) { +function gqt(t, e, r, n) { const i = []; if (t.length === 0) { const s = zr.create(r, n), a = zr.create(r, n + e.length); @@ -80705,73 +80727,73 @@ function pqt(t, e, r, n) { } return i; } -const gqt = /\S/, mqt = /\s*$/; -function k9(t, e) { - const r = t.substring(e).match(gqt); +const mqt = /\S/, vqt = /\s*$/; +function S9(t, e) { + const r = t.substring(e).match(mqt); return r ? e + r.index : t.length; } -function vqt(t) { - const e = t.match(mqt); +function yqt(t) { + const e = t.match(vqt); if (e && typeof e.index == "number") return e.index; } -function yqt(t) { +function bqt(t) { var e, r, n, i; const s = zr.create(t.position.line, t.position.character); if (t.tokens.length === 0) - return new FG([], Cr.create(s, s)); + return new zG([], Cr.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { - const u = bqt(t, a[a.length - 1]); + const u = xqt(t, a[a.length - 1]); u && a.push(u); } const o = (r = (e = a[0]) === null || e === void 0 ? void 0 : e.range.start) !== null && r !== void 0 ? r : s, l = (i = (n = a[a.length - 1]) === null || n === void 0 ? void 0 : n.range.end) !== null && i !== void 0 ? i : s; - return new FG(a, Cr.create(o, l)); + return new zG(a, Cr.create(o, l)); } -function bqt(t, e) { +function xqt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") - return P0e(t, !1); + return $0e(t, !1); if (r.type === "text" || r.type === "inline-tag") - return I0e(t); - xqt(r, e), t.index++; + return P0e(t); + wqt(r, e), t.index++; } -function xqt(t, e) { +function wqt(t, e) { if (e) { - const r = new B0e("", t.range); + const r = new F0e("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); } } -function I0e(t) { +function P0e(t) { let e = t.tokens[t.index]; const r = e; let n = e; const i = []; for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(wqt(t)), n = e, e = t.tokens[t.index]; - return new S9(i, Cr.create(r.range.start, n.range.end)); + i.push(Oqt(t)), n = e, e = t.tokens[t.index]; + return new T9(i, Cr.create(r.range.start, n.range.end)); } -function wqt(t) { - return t.tokens[t.index].type === "inline-tag" ? P0e(t, !0) : $0e(t); +function Oqt(t) { + return t.tokens[t.index].type === "inline-tag" ? $0e(t, !0) : B0e(t); } -function P0e(t, e) { +function $0e(t, e) { const r = t.tokens[t.index++], n = r.content.substring(1), i = t.tokens[t.index]; if ((i == null ? void 0 : i.type) === "text") if (e) { - const s = $0e(t); - return new Q_(n, new S9([s], s.range), e, Cr.create(r.range.start, s.range.end)); + const s = B0e(t); + return new Y_(n, new T9([s], s.range), e, Cr.create(r.range.start, s.range.end)); } else { - const s = I0e(t); - return new Q_(n, s, e, Cr.create(r.range.start, s.range.end)); + const s = P0e(t); + return new Y_(n, s, e, Cr.create(r.range.start, s.range.end)); } else { const s = r.range; - return new Q_(n, new S9([], s), e, s); + return new Y_(n, new T9([], s), e, s); } } -function $0e(t) { +function B0e(t) { const e = t.tokens[t.index++]; - return new B0e(e.content, e.range); + return new F0e(e.content, e.range); } function II(t) { if (!t) @@ -80782,19 +80804,19 @@ function II(t) { }); const { start: e, end: r, line: n } = t; return { - start: q_(e, !0), - end: q_(r, !1), - line: q_(n, !0) + start: Q_(e, !0), + end: Q_(r, !1), + line: Q_(n, !0) }; } -function q_(t, e) { +function Q_(t, e) { if (typeof t == "string" || typeof t == "object") { - const r = typeof t == "string" ? dC(t) : t.source; + const r = typeof t == "string" ? pC(t) : t.source; return e ? new RegExp(`^\\s*${r}`) : new RegExp(`\\s*${r}\\s*$`); } else return t; } -class FG { +class zG { constructor(e, r) { this.elements = e, this.range = r; } @@ -80814,7 +80836,7 @@ class FG { e = r.toString(); else { const n = r.toString(); - e += zG(e) + n; + e += VG(e) + n; } return e.trim(); } @@ -80825,12 +80847,12 @@ class FG { r = n.toMarkdown(e); else { const i = n.toMarkdown(e); - r += zG(r) + i; + r += VG(r) + i; } return r.trim(); } } -class Q_ { +class Y_ { constructor(e, r, n, i) { this.name = e, this.content = r, this.inline = n, this.range = i; } @@ -80847,7 +80869,7 @@ ${r}`), this.inline ? `{${e}}` : e; toMarkdownDefault(e) { const r = this.content.toMarkdown(e); if (this.inline) { - const s = Oqt(this.name, r, e != null ? e : {}); + const s = kqt(this.name, r, e != null ? e : {}); if (typeof s == "string") return s; } @@ -80858,26 +80880,26 @@ ${r}`), this.inline ? `{${e}}` : e; ${r}`), this.inline ? `{${i}}` : i; } } -function Oqt(t, e, r) { +function kqt(t, e, r) { var n, i; if (t === "linkplain" || t === "linkcode" || t === "link") { const s = e.indexOf(" "); let a = e; if (s > 0) { - const l = k9(e, s); + const l = S9(e, s); a = e.substring(l), e = e.substring(0, s); } - return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : kqt(e, a); + return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : Sqt(e, a); } } -function kqt(t, e) { +function Sqt(t, e) { try { return b1.parse(t, !0), `[${e}](${t})`; } catch { return t; } } -class S9 { +class T9 { constructor(e, r) { this.inlines = e, this.range = r; } @@ -80900,7 +80922,7 @@ class S9 { return r; } } -class B0e { +class F0e { constructor(e, r) { this.text = e, this.range = r; } @@ -80911,21 +80933,21 @@ class B0e { return this.text; } } -function zG(t) { +function VG(t) { return t.endsWith(` `) ? ` ` : ` `; } -class Sqt { +class Tqt { constructor(e) { this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; } getDocumentation(e) { const r = this.commentProvider.getComment(e); - if (r && hqt(r)) - return uqt(r).toMarkdown({ + if (r && fqt(r)) + return hqt(r).toMarkdown({ renderLink: (i, s) => this.documentationLinkRenderer(e, i, s), renderTag: (i) => this.documentationTagRenderer(e, i) }); @@ -80957,16 +80979,16 @@ class Sqt { return this.indexManager.allElements().find((i) => i.name === r); } } -class Tqt { +class Cqt { constructor(e) { this.grammarConfig = () => e.parser.GrammarConfig; } getComment(e) { var r; - return XUt(e) ? e.$comment : (r = hBt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; + return ZUt(e) ? e.$comment : (r = fBt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; } } -class Cqt { +class Eqt { constructor(e) { this.syncParser = e.parser.LangiumParser; } @@ -80974,13 +80996,13 @@ class Cqt { return Promise.resolve(this.syncParser.parse(e)); } } -class Eqt { +class _qt { constructor() { - this.previousTokenSource = new b9(), this.writeQueue = [], this.readQueue = [], this.done = !0; + this.previousTokenSource = new x9(), this.writeQueue = [], this.readQueue = [], this.done = !0; } write(e) { this.cancelWrite(); - const r = new b9(); + const r = new x9(); return this.previousTokenSource = r, this.enqueue(this.writeQueue, e, r.token); } read(e) { @@ -81017,9 +81039,9 @@ class Eqt { this.previousTokenSource.cancel(); } } -class _qt { +class Aqt { constructor(e) { - this.grammarElementIdMap = new DG(), this.tokenTypeIdMap = new DG(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; + this.grammarElementIdMap = new NG(), this.tokenTypeIdMap = new NG(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } dehydrate(e) { return { @@ -81033,7 +81055,7 @@ class _qt { for (const i of lg(e)) r.set(i, {}); if (e.$cstNode) - for (const i of VL(e.$cstNode)) + for (const i of UL(e.$cstNode)) n.set(i, {}); return { astNodes: r, @@ -81060,7 +81082,7 @@ class _qt { } dehydrateCstNode(e, r) { const n = r.cstNodes.get(e); - return Dfe(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), d1(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : Mfe(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; + return Nfe(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), d1(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : Dfe(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; } hydrate(e) { const r = e.value, n = this.createHydrationContext(r); @@ -81076,9 +81098,9 @@ class _qt { r.set(s, {}); let i; if (e.$cstNode) - for (const s of VL(e.$cstNode)) { + for (const s of UL(e.$cstNode)) { let a; - "fullText" in s ? (a = new v0e(s.fullText), i = a) : "content" in s ? a = new LI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); + "fullText" in s ? (a = new y0e(s.fullText), i = a) : "content" in s ? a = new LI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); } return { astNodes: r, @@ -81116,7 +81138,7 @@ class _qt { } hydrateCstLeafNode(e) { const r = this.getTokenType(e.tokenType), n = e.offset, i = e.length, s = e.startLine, a = e.startColumn, o = e.endLine, l = e.endColumn, u = e.hidden; - return new p9(n, i, { + return new g9(n, i, { start: { line: s, character: a @@ -81143,95 +81165,95 @@ class _qt { createGrammarElementIdMap() { let e = 0; for (const r of lg(this.grammar)) - pBt(r) && this.grammarElementIdMap.set(r, e++); + gBt(r) && this.grammarElementIdMap.set(r, e++); } } function um(t) { return { documentation: { - CommentProvider: (e) => new Tqt(e), - DocumentationProvider: (e) => new Sqt(e) + CommentProvider: (e) => new Cqt(e), + DocumentationProvider: (e) => new Tqt(e) }, parser: { - AsyncParser: (e) => new Cqt(e), - GrammarConfig: (e) => dFt(e), - LangiumParser: (e) => wUt(e), - CompletionParser: (e) => xUt(e), - ValueConverter: () => new C0e(), - TokenBuilder: () => new T0e(), - Lexer: (e) => new lqt(e), - ParserErrorMessageProvider: () => new x0e() + AsyncParser: (e) => new Eqt(e), + GrammarConfig: (e) => pFt(e), + LangiumParser: (e) => OUt(e), + CompletionParser: (e) => wUt(e), + ValueConverter: () => new E0e(), + TokenBuilder: () => new C0e(), + Lexer: (e) => new cqt(e), + ParserErrorMessageProvider: () => new w0e() }, workspace: { - AstNodeLocator: () => new nqt(), - AstNodeDescriptionProvider: (e) => new tqt(e), - ReferenceDescriptionProvider: (e) => new rqt(e) + AstNodeLocator: () => new iqt(), + AstNodeDescriptionProvider: (e) => new rqt(e), + ReferenceDescriptionProvider: (e) => new nqt(e) }, references: { - Linker: (e) => new FUt(e), - NameProvider: () => new VUt(), - ScopeProvider: (e) => new HUt(e), - ScopeComputation: (e) => new qUt(e), - References: (e) => new UUt(e) + Linker: (e) => new zUt(e), + NameProvider: () => new UUt(), + ScopeProvider: (e) => new XUt(e), + ScopeComputation: (e) => new QUt(e), + References: (e) => new qUt(e) }, serializer: { - Hydrator: (e) => new _qt(e), - JsonSerializer: (e) => new ZUt(e) + Hydrator: (e) => new Aqt(e), + JsonSerializer: (e) => new jUt(e) }, validation: { - DocumentValidator: (e) => new JUt(e), - ValidationRegistry: (e) => new KUt(e) + DocumentValidator: (e) => new eqt(e), + ValidationRegistry: (e) => new JUt(e) }, shared: () => t.shared }; } function hm(t) { return { - ServiceRegistry: () => new jUt(), + ServiceRegistry: () => new KUt(), workspace: { - LangiumDocuments: (e) => new BUt(e), - LangiumDocumentFactory: (e) => new $Ut(e), - DocumentBuilder: (e) => new sqt(e), - IndexManager: (e) => new aqt(e), - WorkspaceManager: (e) => new oqt(e), + LangiumDocuments: (e) => new FUt(e), + LangiumDocumentFactory: (e) => new BUt(e), + DocumentBuilder: (e) => new aqt(e), + IndexManager: (e) => new oqt(e), + WorkspaceManager: (e) => new lqt(e), FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new Eqt(), - ConfigurationProvider: (e) => new iqt(e) + WorkspaceLock: () => new _qt(), + ConfigurationProvider: (e) => new sqt(e) } }; } -var VG; +var UG; (function(t) { - t.merge = (e, r) => zk(zk({}, e), r); -})(VG || (VG = {})); + t.merge = (e, r) => Vk(Vk({}, e), r); +})(UG || (UG = {})); function el(t, e, r, n, i, s, a, o, l) { - const u = [t, e, r, n, i, s, a, o, l].reduce(zk, {}); - return F0e(u); + const u = [t, e, r, n, i, s, a, o, l].reduce(Vk, {}); + return z0e(u); } -const UG = Symbol("isProxy"); -function F0e(t, e) { +const qG = Symbol("isProxy"); +function z0e(t, e) { const r = new Proxy({}, { deleteProperty: () => !1, - get: (n, i) => QG(n, i, t, e || r), - getOwnPropertyDescriptor: (n, i) => (QG(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), + get: (n, i) => YG(n, i, t, e || r), + getOwnPropertyDescriptor: (n, i) => (YG(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), has: (n, i) => i in t, - ownKeys: () => [...Reflect.ownKeys(t), UG] + ownKeys: () => [...Reflect.ownKeys(t), qG] }); - return r[UG] = !0, r; + return r[qG] = !0, r; } -const qG = Symbol(); -function QG(t, e, r, n) { +const QG = Symbol(); +function YG(t, e, r, n) { if (e in t) { if (t[e] instanceof Error) throw new Error("Construction failure. Please make sure that your dependencies are constructable.", { cause: t[e] }); - if (t[e] === qG) + if (t[e] === QG) throw new Error('Cycle detected. Please make "' + String(e) + '" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies'); return t[e]; } else if (e in r) { const i = r[e]; - t[e] = qG; + t[e] = QG; try { - t[e] = typeof i == "function" ? i(n) : F0e(i, n); + t[e] = typeof i == "function" ? i(n) : z0e(i, n); } catch (s) { throw t[e] = s instanceof Error ? s : void 0, s; } @@ -81239,17 +81261,17 @@ function QG(t, e, r, n) { } else return; } -function zk(t, e) { +function Vk(t, e) { if (e) { for (const [r, n] of Object.entries(e)) if (n !== void 0) { const i = t[r]; - i !== null && n !== null && typeof i == "object" && typeof n == "object" ? t[r] = zk(i, n) : t[r] = n; + i !== null && n !== null && typeof i == "object" && typeof n == "object" ? t[r] = Vk(i, n) : t[r] = n; } } return t; } -class Aqt { +class Lqt { readFile() { throw new Error("No file system is available."); } @@ -81258,8 +81280,8 @@ class Aqt { } } const fm = { - fileSystemProvider: () => new Aqt() -}, Lqt = { + fileSystemProvider: () => new Lqt() +}, Rqt = { Grammar: () => { }, LanguageMetaData: () => ({ @@ -81267,87 +81289,87 @@ const fm = { fileExtensions: [".langium"], languageId: "langium" }) -}, Rqt = { - AstReflection: () => new gde() +}, Mqt = { + AstReflection: () => new mde() }; -function Mqt() { - const t = el(hm(fm), Rqt), e = el(um({ shared: t }), Lqt); +function Dqt() { + const t = el(hm(fm), Mqt), e = el(um({ shared: t }), Rqt); return t.ServiceRegistry.register(e), e; } function Bx(t) { var e; - const r = Mqt(), n = r.serializer.JsonSerializer.deserialize(t); + const r = Dqt(), n = r.serializer.JsonSerializer.deserialize(t); return r.shared.workspace.LangiumDocumentFactory.fromModel(n, b1.parse(`memory://${(e = n.name) !== null && e !== void 0 ? e : "grammar"}.langium`)), n; } -var Dqt = Object.defineProperty, Dt = (t, e) => Dqt(t, "name", { value: e, configurable: !0 }), Nqt = "Statement", Iqt = "Architecture"; -function Pqt(t) { - return Zl.isInstance(t, Iqt); -} -Dt(Pqt, "isArchitecture"); -var z0e = "Branch"; +var Nqt = Object.defineProperty, Dt = (t, e) => Nqt(t, "name", { value: e, configurable: !0 }), Iqt = "Statement", Pqt = "Architecture"; function $qt(t) { - return Zl.isInstance(t, z0e); + return Zl.isInstance(t, Pqt); } -Dt($qt, "isBranch"); -var Bqt = "Checkout", Fqt = "CherryPicking", V0e = "Commit"; -function zqt(t) { +Dt($qt, "isArchitecture"); +var V0e = "Branch"; +function Bqt(t) { return Zl.isInstance(t, V0e); } -Dt(zqt, "isCommit"); -var Vqt = "Common"; -function Uqt(t) { - return Zl.isInstance(t, Vqt); -} -Dt(Uqt, "isCommon"); -var U0e = "GitGraph"; -function qqt(t) { +Dt(Bqt, "isBranch"); +var Fqt = "Checkout", zqt = "CherryPicking", U0e = "Commit"; +function Vqt(t) { return Zl.isInstance(t, U0e); } -Dt(qqt, "isGitGraph"); -var Qqt = "Info"; -function Yqt(t) { - return Zl.isInstance(t, Qqt); +Dt(Vqt, "isCommit"); +var Uqt = "Common"; +function qqt(t) { + return Zl.isInstance(t, Uqt); } -Dt(Yqt, "isInfo"); -var q0e = "Merge"; -function Wqt(t) { +Dt(qqt, "isCommon"); +var q0e = "GitGraph"; +function Qqt(t) { return Zl.isInstance(t, q0e); } -Dt(Wqt, "isMerge"); -var Gqt = "Packet"; -function Hqt(t) { - return Zl.isInstance(t, Gqt); -} -Dt(Hqt, "isPacket"); -var Xqt = "PacketBlock"; -function Zqt(t) { - return Zl.isInstance(t, Xqt); -} -Dt(Zqt, "isPacketBlock"); -var jqt = "Pie"; -function Kqt(t) { - return Zl.isInstance(t, jqt); -} -Dt(Kqt, "isPie"); -var Jqt = "PieSection"; -function eQt(t) { - return Zl.isInstance(t, Jqt); -} -Dt(eQt, "isPieSection"); -var tQt = "Direction", pb, Q0e = (pb = class extends Rfe { +Dt(Qqt, "isGitGraph"); +var Yqt = "Info"; +function Wqt(t) { + return Zl.isInstance(t, Yqt); +} +Dt(Wqt, "isInfo"); +var Q0e = "Merge"; +function Gqt(t) { + return Zl.isInstance(t, Q0e); +} +Dt(Gqt, "isMerge"); +var Hqt = "Packet"; +function Xqt(t) { + return Zl.isInstance(t, Hqt); +} +Dt(Xqt, "isPacket"); +var Zqt = "PacketBlock"; +function jqt(t) { + return Zl.isInstance(t, Zqt); +} +Dt(jqt, "isPacketBlock"); +var Kqt = "Pie"; +function Jqt(t) { + return Zl.isInstance(t, Kqt); +} +Dt(Jqt, "isPie"); +var eQt = "PieSection"; +function tQt(t) { + return Zl.isInstance(t, eQt); +} +Dt(tQt, "isPieSection"); +var rQt = "Direction", pb, Y0e = (pb = class extends Mfe { getAllTypes() { return ["Architecture", "Branch", "Checkout", "CherryPicking", "Commit", "Common", "Direction", "Edge", "GitGraph", "Group", "Info", "Junction", "Merge", "Packet", "PacketBlock", "Pie", "PieSection", "Service", "Statement"]; } computeIsSubtype(e, r) { switch (e) { - case z0e: - case Bqt: - case Fqt: case V0e: - case q0e: - return this.isSubtype(Nqt, r); - case tQt: - return this.isSubtype(U0e, r); + case Fqt: + case zqt: + case U0e: + case Q0e: + return this.isSubtype(Iqt, r); + case rQt: + return this.isSubtype(q0e, r); default: return !1; } @@ -81548,32 +81570,28 @@ var tQt = "Direction", pb, Q0e = (pb = class extends Rfe { } }, (() => { Dt(pb, "MermaidAstReflection"); -})(), pb), Zl = new Q0e(), TO, rQt = /* @__PURE__ */ Dt(() => TO != null ? TO : TO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), CO, nQt = /* @__PURE__ */ Dt(() => CO != null ? CO : CO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), EO, iQt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), _O, sQt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Bx('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), AO, aQt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), oQt = { +})(), pb), Zl = new Y0e(), TO, nQt = /* @__PURE__ */ Dt(() => TO != null ? TO : TO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), CO, iQt = /* @__PURE__ */ Dt(() => CO != null ? CO : CO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), EO, sQt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), _O, aQt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Bx('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), AO, oQt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), lQt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, lQt = { +}, cQt = { languageId: "packet", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, cQt = { +}, uQt = { languageId: "pie", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, uQt = { +}, hQt = { languageId: "architecture", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, hQt = { +}, fQt = { languageId: "gitGraph", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, Fx = { - AstReflection: /* @__PURE__ */ Dt(() => new Q0e(), "AstReflection") -}, fQt = { - Grammar: /* @__PURE__ */ Dt(() => rQt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ Dt(() => oQt, "LanguageMetaData"), - parser: {} + AstReflection: /* @__PURE__ */ Dt(() => new Y0e(), "AstReflection") }, dQt = { Grammar: /* @__PURE__ */ Dt(() => nQt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => lQt, "LanguageMetaData"), @@ -81590,17 +81608,21 @@ var tQt = "Direction", pb, Q0e = (pb = class extends Rfe { Grammar: /* @__PURE__ */ Dt(() => aQt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => hQt, "LanguageMetaData"), parser: {} -}, vQt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, yQt = /accTitle[\t ]*:([^\n\r]*)/, bQt = /title([\t ][^\n\r]*|)/, xQt = { - ACC_DESCR: vQt, - ACC_TITLE: yQt, - TITLE: bQt -}, gb, PI = (gb = class extends C0e { +}, vQt = { + Grammar: /* @__PURE__ */ Dt(() => oQt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ Dt(() => fQt, "LanguageMetaData"), + parser: {} +}, yQt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, bQt = /accTitle[\t ]*:([^\n\r]*)/, xQt = /title([\t ][^\n\r]*|)/, wQt = { + ACC_DESCR: yQt, + ACC_TITLE: bQt, + TITLE: xQt +}, gb, PI = (gb = class extends E0e { runConverter(e, r, n) { let i = this.runCommonConverter(e, r, n); return i === void 0 && (i = this.runCustomConverter(e, r, n)), i === void 0 ? super.runConverter(e, r, n) : i; } runCommonConverter(e, r, n) { - const i = xQt[e.name]; + const i = wQt[e.name]; if (i === void 0) return; const s = i.exec(r); @@ -81619,7 +81641,7 @@ var tQt = "Direction", pb, Q0e = (pb = class extends Rfe { } }, (() => { Dt(mb, "CommonValueConverter"); -})(), mb), vb, dm = (vb = class extends T0e { +})(), mb), vb, dm = (vb = class extends C0e { constructor(e) { super(), this.keywords = new Set(e); } @@ -81634,116 +81656,116 @@ var tQt = "Direction", pb, Q0e = (pb = class extends Rfe { })(), vb), yb; yb = class extends dm { }, Dt(yb, "CommonTokenBuilder"); -var bb, wQt = (bb = class extends dm { +var bb, OQt = (bb = class extends dm { constructor() { super(["gitGraph"]); } }, (() => { Dt(bb, "GitGraphTokenBuilder"); -})(), bb), Y0e = { +})(), bb), W0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new wQt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new OQt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new $I(), "ValueConverter") } }; -function W0e(t = fm) { +function G0e(t = fm) { const e = el( hm(t), Fx ), r = el( um({ shared: e }), - mQt, - Y0e + vQt, + W0e ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } -Dt(W0e, "createGitGraphServices"); -var xb, OQt = (xb = class extends dm { +Dt(G0e, "createGitGraphServices"); +var xb, kQt = (xb = class extends dm { constructor() { super(["info", "showInfo"]); } }, (() => { Dt(xb, "InfoTokenBuilder"); -})(), xb), G0e = { +})(), xb), H0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new OQt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new kQt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new $I(), "ValueConverter") } }; -function H0e(t = fm) { +function X0e(t = fm) { const e = el( hm(t), Fx ), r = el( um({ shared: e }), - fQt, - G0e + dQt, + H0e ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } -Dt(H0e, "createInfoServices"); -var wb, kQt = (wb = class extends dm { +Dt(X0e, "createInfoServices"); +var wb, SQt = (wb = class extends dm { constructor() { super(["packet-beta"]); } }, (() => { Dt(wb, "PacketTokenBuilder"); -})(), wb), X0e = { +})(), wb), Z0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new kQt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new SQt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new $I(), "ValueConverter") } }; -function Z0e(t = fm) { +function j0e(t = fm) { const e = el( hm(t), Fx ), r = el( um({ shared: e }), - dQt, - X0e + pQt, + Z0e ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } -Dt(Z0e, "createPacketServices"); -var Ob, SQt = (Ob = class extends dm { +Dt(j0e, "createPacketServices"); +var Ob, TQt = (Ob = class extends dm { constructor() { super(["pie", "showData"]); } }, (() => { Dt(Ob, "PieTokenBuilder"); -})(), Ob), kb, TQt = (kb = class extends PI { +})(), Ob), kb, CQt = (kb = class extends PI { runCustomConverter(e, r, n) { if (e.name === "PIE_SECTION_LABEL") return r.replace(/"/g, "").trim(); } }, (() => { Dt(kb, "PieValueConverter"); -})(), kb), j0e = { +})(), kb), K0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new SQt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new TQt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new TQt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new CQt(), "ValueConverter") } }; -function K0e(t = fm) { +function J0e(t = fm) { const e = el( hm(t), Fx ), r = el( um({ shared: e }), - pQt, - j0e + gQt, + K0e ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } -Dt(K0e, "createPieServices"); -var Sb, CQt = (Sb = class extends dm { +Dt(J0e, "createPieServices"); +var Sb, EQt = (Sb = class extends dm { constructor() { super(["architecture"]); } }, (() => { Dt(Sb, "ArchitectureTokenBuilder"); -})(), Sb), Tb, EQt = (Tb = class extends PI { +})(), Sb), Tb, _Qt = (Tb = class extends PI { runCustomConverter(e, r, n) { if (e.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim(); @@ -81754,58 +81776,58 @@ var Sb, CQt = (Sb = class extends dm { } }, (() => { Dt(Tb, "ArchitectureValueConverter"); -})(), Tb), J0e = { +})(), Tb), epe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new CQt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new EQt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new EQt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new _Qt(), "ValueConverter") } }; -function epe(t = fm) { +function tpe(t = fm) { const e = el( hm(t), Fx ), r = el( um({ shared: e }), - gQt, - J0e + mQt, + epe ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } -Dt(epe, "createArchitectureServices"); -var bd = {}, _Qt = { +Dt(tpe, "createArchitectureServices"); +var bd = {}, AQt = { info: /* @__PURE__ */ Dt(async () => { - const { createInfoServices: t } = await Promise.resolve().then(() => Mlr), e = t().Info.parser.LangiumParser; + const { createInfoServices: t } = await Promise.resolve().then(() => Dlr), e = t().Info.parser.LangiumParser; bd.info = e; }, "info"), packet: /* @__PURE__ */ Dt(async () => { - const { createPacketServices: t } = await Promise.resolve().then(() => Dlr), e = t().Packet.parser.LangiumParser; + const { createPacketServices: t } = await Promise.resolve().then(() => Nlr), e = t().Packet.parser.LangiumParser; bd.packet = e; }, "packet"), pie: /* @__PURE__ */ Dt(async () => { - const { createPieServices: t } = await Promise.resolve().then(() => Nlr), e = t().Pie.parser.LangiumParser; + const { createPieServices: t } = await Promise.resolve().then(() => Ilr), e = t().Pie.parser.LangiumParser; bd.pie = e; }, "pie"), architecture: /* @__PURE__ */ Dt(async () => { - const { createArchitectureServices: t } = await Promise.resolve().then(() => Ilr), e = t().Architecture.parser.LangiumParser; + const { createArchitectureServices: t } = await Promise.resolve().then(() => Plr), e = t().Architecture.parser.LangiumParser; bd.architecture = e; }, "architecture"), gitGraph: /* @__PURE__ */ Dt(async () => { - const { createGitGraphServices: t } = await Promise.resolve().then(() => Plr), e = t().GitGraph.parser.LangiumParser; + const { createGitGraphServices: t } = await Promise.resolve().then(() => $lr), e = t().GitGraph.parser.LangiumParser; bd.gitGraph = e; }, "gitGraph") }; async function pm(t, e) { - const r = _Qt[t]; + const r = AQt[t]; if (!r) throw new Error(`Unknown diagram type: ${t}`); bd[t] || await r(); const i = bd[t].parse(e); if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new AQt(i); + throw new LQt(i); return i.value; } Dt(pm, "parse"); -var Cb, AQt = (Cb = class extends Error { +var Cb, LQt = (Cb = class extends Error { constructor(e) { const r = e.lexerErrors.map((i) => i.message).join(` `), n = e.parserErrors.map((i) => i.message).join(` @@ -81820,8 +81842,8 @@ var Cb, AQt = (Cb = class extends Error { HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 -}, LQt = jr.gitGraph, tp = /* @__PURE__ */ x(() => ch({ - ...LQt, +}, RQt = jr.gitGraph, tp = /* @__PURE__ */ x(() => ch({ + ...RQt, ...pi().gitGraph }), "getConfig"), wt = new fI(() => { const t = tp(), e = t.mainBranchName, r = t.mainBranchOrder; @@ -81837,30 +81859,30 @@ var Cb, AQt = (Cb = class extends Error { options: {} }; }); -function SC() { - return Oae({ length: 7 }); +function TC() { + return kae({ length: 7 }); } -x(SC, "getID"); -function tpe(t, e) { +x(TC, "getID"); +function rpe(t, e) { const r = /* @__PURE__ */ Object.create(null); return t.reduce((n, i) => { const s = e(i); return r[s] || (r[s] = !0, n.push(i)), n; }, []); } -x(tpe, "uniqBy"); -var RQt = /* @__PURE__ */ x(function(t) { +x(rpe, "uniqBy"); +var MQt = /* @__PURE__ */ x(function(t) { wt.records.direction = t; -}, "setDirection"), MQt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), DQt = /* @__PURE__ */ x(function(t) { X.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}"; try { wt.records.options = JSON.parse(t); } catch (e) { X.error("error while parsing gitGraph options", e.message); } -}, "setOptions"), DQt = /* @__PURE__ */ x(function() { +}, "setOptions"), NQt = /* @__PURE__ */ x(function() { return wt.records.options; -}, "getOptions"), NQt = /* @__PURE__ */ x(function(t) { +}, "getOptions"), IQt = /* @__PURE__ */ x(function(t) { let e = t.msg, r = t.id; const n = t.type; let i = t.tags; @@ -81868,7 +81890,7 @@ var RQt = /* @__PURE__ */ x(function(t) { const s = tp(); r = at.sanitizeText(r, s), e = at.sanitizeText(e, s), i = i == null ? void 0 : i.map((o) => at.sanitizeText(o, s)); const a = { - id: r || wt.records.seq + "-" + SC(), + id: r || wt.records.seq + "-" + TC(), message: e, seq: wt.records.seq++, type: n != null ? n : Hr.NORMAL, @@ -81877,15 +81899,15 @@ var RQt = /* @__PURE__ */ x(function(t) { branch: wt.records.currBranch }; wt.records.head = a, X.info("main branch", s.mainBranchName), wt.records.commits.set(a.id, a), wt.records.branches.set(wt.records.currBranch, a.id), X.debug("in pushCommit " + a.id); -}, "commit"), IQt = /* @__PURE__ */ x(function(t) { +}, "commit"), PQt = /* @__PURE__ */ x(function(t) { let e = t.name; const r = t.order; if (e = at.sanitizeText(e, tp()), wt.records.branches.has(e)) throw new Error( `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")` ); - wt.records.branches.set(e, wt.records.head != null ? wt.records.head.id : null), wt.records.branchConfig.set(e, { name: e, order: r }), rpe(e), X.debug("in createBranch"); -}, "branch"), PQt = /* @__PURE__ */ x((t) => { + wt.records.branches.set(e, wt.records.head != null ? wt.records.head.id : null), wt.records.branchConfig.set(e, { name: e, order: r }), npe(e), X.debug("in createBranch"); +}, "branch"), $Qt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = tp(); e = at.sanitizeText(e, s), r && (r = at.sanitizeText(r, s)); @@ -81951,7 +81973,7 @@ var RQt = /* @__PURE__ */ x(function(t) { }, d; } const h = o || "", f = { - id: r || `${wt.records.seq}-${SC()}`, + id: r || `${wt.records.seq}-${TC()}`, message: `merged branch ${e} into ${wt.records.currBranch}`, seq: wt.records.seq++, parents: wt.records.head == null ? [] : [wt.records.head.id, h], @@ -81962,7 +81984,7 @@ var RQt = /* @__PURE__ */ x(function(t) { tags: i != null ? i : [] }; wt.records.head = f, wt.records.commits.set(f.id, f), wt.records.branches.set(wt.records.currBranch, f.id), X.debug(wt.records.branches), X.debug("in mergeBranch"); -}, "merge"), $Qt = /* @__PURE__ */ x(function(t) { +}, "merge"), BQt = /* @__PURE__ */ x(function(t) { let e = t.id, r = t.targetId, n = t.tags, i = t.parent; X.debug("Entering cherryPick:", e, r, n); const s = tp(); @@ -82022,7 +82044,7 @@ var RQt = /* @__PURE__ */ x(function(t) { }, f; } const h = { - id: wt.records.seq + "-" + SC(), + id: wt.records.seq + "-" + TC(), message: `cherry-picked ${a == null ? void 0 : a.message} into ${wt.records.currBranch}`, seq: wt.records.seq++, parents: wt.records.head == null ? [] : [wt.records.head.id, a.id], @@ -82034,7 +82056,7 @@ var RQt = /* @__PURE__ */ x(function(t) { }; wt.records.head = h, wt.records.commits.set(h.id, h), wt.records.branches.set(wt.records.currBranch, h.id), X.debug(wt.records.branches), X.debug("in cherryPick"); } -}, "cherryPick"), rpe = /* @__PURE__ */ x(function(t) { +}, "cherryPick"), npe = /* @__PURE__ */ x(function(t) { var e; if (t = at.sanitizeText(t, tp()), wt.records.branches.has(t)) { wt.records.currBranch = t; @@ -82051,11 +82073,11 @@ var RQt = /* @__PURE__ */ x(function(t) { }, r; } }, "checkout"); -function T9(t, e, r) { +function C9(t, e, r) { const n = t.indexOf(e); n === -1 ? t.push(r) : t.splice(n, 1, r); } -x(T9, "upsert"); +x(C9, "upsert"); function BI(t) { const e = t.reduce((i, s) => i.seq > s.seq ? i : s, t[0]); let r = ""; @@ -82067,25 +82089,25 @@ function BI(t) { wt.records.branches.get(i) === e.id && n.push(i); if (X.debug(n.join(" ")), e.parents && e.parents.length == 2 && e.parents[0] && e.parents[1]) { const i = wt.records.commits.get(e.parents[0]); - T9(t, e, i), e.parents[1] && t.push(wt.records.commits.get(e.parents[1])); + C9(t, e, i), e.parents[1] && t.push(wt.records.commits.get(e.parents[1])); } else { if (e.parents.length == 0) return; if (e.parents[0]) { const i = wt.records.commits.get(e.parents[0]); - T9(t, e, i); + C9(t, e, i); } } - t = tpe(t, (i) => i.id), BI(t); + t = rpe(t, (i) => i.id), BI(t); } x(BI, "prettyPrintCommitHistory"); -var BQt = /* @__PURE__ */ x(function() { +var FQt = /* @__PURE__ */ x(function() { X.debug(wt.records.commits); - const t = npe()[0]; + const t = ipe()[0]; BI([t]); -}, "prettyPrint"), FQt = /* @__PURE__ */ x(function() { +}, "prettyPrint"), zQt = /* @__PURE__ */ x(function() { wt.reset(), Xi(); -}, "clear"), zQt = /* @__PURE__ */ x(function() { +}, "clear"), VQt = /* @__PURE__ */ x(function() { return [...wt.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : { ...e, order: parseFloat(`0.${r}`) @@ -82093,61 +82115,61 @@ var BQt = /* @__PURE__ */ x(function() { var n, i; return ((n = e.order) != null ? n : 0) - ((i = r.order) != null ? i : 0); }).map(({ name: e }) => ({ name: e })); -}, "getBranchesAsObjArray"), VQt = /* @__PURE__ */ x(function() { +}, "getBranchesAsObjArray"), UQt = /* @__PURE__ */ x(function() { return wt.records.branches; -}, "getBranches"), UQt = /* @__PURE__ */ x(function() { +}, "getBranches"), qQt = /* @__PURE__ */ x(function() { return wt.records.commits; -}, "getCommits"), npe = /* @__PURE__ */ x(function() { +}, "getCommits"), ipe = /* @__PURE__ */ x(function() { const t = [...wt.records.commits.values()]; return t.forEach(function(e) { X.debug(e.id); }), t.sort((e, r) => e.seq - r.seq), t; -}, "getCommitsArray"), qQt = /* @__PURE__ */ x(function() { +}, "getCommitsArray"), QQt = /* @__PURE__ */ x(function() { return wt.records.currBranch; -}, "getCurrentBranch"), QQt = /* @__PURE__ */ x(function() { +}, "getCurrentBranch"), YQt = /* @__PURE__ */ x(function() { return wt.records.direction; -}, "getDirection"), YQt = /* @__PURE__ */ x(function() { +}, "getDirection"), WQt = /* @__PURE__ */ x(function() { return wt.records.head; -}, "getHead"), ipe = { +}, "getHead"), spe = { commitType: Hr, getConfig: tp, - setDirection: RQt, - setOptions: MQt, - getOptions: DQt, - commit: NQt, - branch: IQt, - merge: PQt, - cherryPick: $Qt, - checkout: rpe, - prettyPrint: BQt, - clear: FQt, - getBranchesAsObjArray: zQt, - getBranches: VQt, - getCommits: UQt, - getCommitsArray: npe, - getCurrentBranch: qQt, - getDirection: QQt, - getHead: YQt, + setDirection: MQt, + setOptions: DQt, + getOptions: NQt, + commit: IQt, + branch: PQt, + merge: $Qt, + cherryPick: BQt, + checkout: npe, + prettyPrint: FQt, + clear: zQt, + getBranchesAsObjArray: VQt, + getBranches: UQt, + getCommits: qQt, + getCommitsArray: ipe, + getCurrentBranch: QQt, + getDirection: YQt, + getHead: WQt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, setDiagramTitle: fa, getDiagramTitle: xs -}, WQt = /* @__PURE__ */ x((t, e) => { +}, GQt = /* @__PURE__ */ x((t, e) => { Rx(t, e), t.dir && e.setDirection(t.dir); for (const r of t.statements) - GQt(r, e); -}, "populate"), GQt = /* @__PURE__ */ x((t, e) => { + HQt(r, e); +}, "populate"), HQt = /* @__PURE__ */ x((t, e) => { const n = { - Commit: /* @__PURE__ */ x((i) => e.commit(HQt(i)), "Commit"), - Branch: /* @__PURE__ */ x((i) => e.branch(XQt(i)), "Branch"), - Merge: /* @__PURE__ */ x((i) => e.merge(ZQt(i)), "Merge"), - Checkout: /* @__PURE__ */ x((i) => e.checkout(jQt(i)), "Checkout"), - CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(KQt(i)), "CherryPicking") + Commit: /* @__PURE__ */ x((i) => e.commit(XQt(i)), "Commit"), + Branch: /* @__PURE__ */ x((i) => e.branch(ZQt(i)), "Branch"), + Merge: /* @__PURE__ */ x((i) => e.merge(jQt(i)), "Merge"), + Checkout: /* @__PURE__ */ x((i) => e.checkout(KQt(i)), "Checkout"), + CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(JQt(i)), "CherryPicking") }[t.$type]; n ? n(t) : X.error(`Unknown statement type: ${t.$type}`); -}, "parseStatement"), HQt = /* @__PURE__ */ x((t) => { +}, "parseStatement"), XQt = /* @__PURE__ */ x((t) => { var r, n; return { id: t.id, @@ -82155,13 +82177,13 @@ var BQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : Hr.NORMAL, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseCommit"), XQt = /* @__PURE__ */ x((t) => { +}, "parseCommit"), ZQt = /* @__PURE__ */ x((t) => { var r; return { name: t.name, order: (r = t.order) != null ? r : 0 }; -}, "parseBranch"), ZQt = /* @__PURE__ */ x((t) => { +}, "parseBranch"), jQt = /* @__PURE__ */ x((t) => { var r, n; return { branch: t.branch, @@ -82169,7 +82191,7 @@ var BQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : void 0, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseMerge"), jQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), KQt = /* @__PURE__ */ x((t) => { +}, "parseMerge"), KQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), JQt = /* @__PURE__ */ x((t) => { var r; return { id: t.id, @@ -82177,73 +82199,73 @@ var BQt = /* @__PURE__ */ x(function() { tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags, parent: t.parent }; -}, "parseCherryPicking"), JQt = { +}, "parseCherryPicking"), eYt = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("gitGraph", t); - X.debug(e), WQt(e, ipe); + X.debug(e), GQt(e, spe); }, "parse") -}, Y_ = be(), ui = Y_ == null ? void 0 : Y_.gitGraph, Uh = 10, qh = 40, sc = 4, gu = 2, xd = 8, Aa = /* @__PURE__ */ new Map(), Ia = /* @__PURE__ */ new Map(), Vk = 30, Lv = /* @__PURE__ */ new Map(), Uk = [], Rh = 0, Tr = "LR", eYt = /* @__PURE__ */ x(() => { - Aa.clear(), Ia.clear(), Lv.clear(), Rh = 0, Uk = [], Tr = "LR"; -}, "clear"), spe = /* @__PURE__ */ x((t) => { +}, W_ = be(), ui = W_ == null ? void 0 : W_.gitGraph, Uh = 10, qh = 40, sc = 4, gu = 2, xd = 8, Aa = /* @__PURE__ */ new Map(), Pa = /* @__PURE__ */ new Map(), Uk = 30, Lv = /* @__PURE__ */ new Map(), qk = [], Rh = 0, Tr = "LR", tYt = /* @__PURE__ */ x(() => { + Aa.clear(), Pa.clear(), Lv.clear(), Rh = 0, qk = [], Tr = "LR"; +}, "clear"), ape = /* @__PURE__ */ x((t) => { const e = document.createElementNS("http://www.w3.org/2000/svg", "text"); return (typeof t == "string" ? t.split(/\\n|\n|/gi) : t).forEach((n) => { const i = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); i.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), i.setAttribute("dy", "1em"), i.setAttribute("x", "0"), i.setAttribute("class", "row"), i.textContent = n.trim(), e.appendChild(i); }), e; -}, "drawText"), ape = /* @__PURE__ */ x((t) => { +}, "drawText"), ope = /* @__PURE__ */ x((t) => { let e, r, n; return Tr === "BT" ? (r = /* @__PURE__ */ x((i, s) => i <= s, "comparisonFunc"), n = 1 / 0) : (r = /* @__PURE__ */ x((i, s) => i >= s, "comparisonFunc"), n = 0), t.forEach((i) => { var a, o; - const s = Tr === "TB" || Tr == "BT" ? (a = Ia.get(i)) == null ? void 0 : a.y : (o = Ia.get(i)) == null ? void 0 : o.x; + const s = Tr === "TB" || Tr == "BT" ? (a = Pa.get(i)) == null ? void 0 : a.y : (o = Pa.get(i)) == null ? void 0 : o.x; s !== void 0 && r(s, n) && (e = i, n = s); }), e; -}, "findClosestParent"), tYt = /* @__PURE__ */ x((t) => { +}, "findClosestParent"), rYt = /* @__PURE__ */ x((t) => { let e = "", r = 1 / 0; return t.forEach((n) => { - const i = Ia.get(n).y; + const i = Pa.get(n).y; i <= r && (e = n, r = i); }), e || void 0; -}, "findClosestParentBT"), rYt = /* @__PURE__ */ x((t, e, r) => { +}, "findClosestParentBT"), nYt = /* @__PURE__ */ x((t, e, r) => { let n = r, i = r; const s = []; t.forEach((a) => { const o = e.get(a); if (!o) throw new Error(`Commit not found for key ${a}`); - o.parents.length ? (n = iYt(o), i = Math.max(n, i)) : s.push(o), sYt(o, n); + o.parents.length ? (n = sYt(o), i = Math.max(n, i)) : s.push(o), aYt(o, n); }), n = i, s.forEach((a) => { - aYt(a, n, r); + oYt(a, n, r); }), t.forEach((a) => { const o = e.get(a); if (o != null && o.parents.length) { - const l = tYt(o.parents); - n = Ia.get(l).y - qh, n <= i && (i = n); + const l = rYt(o.parents); + n = Pa.get(l).y - qh, n <= i && (i = n); const u = Aa.get(o.branch).pos, h = n - Uh; - Ia.set(o.id, { x: u, y: h }); + Pa.set(o.id, { x: u, y: h }); } }); -}, "setParallelBTPos"), nYt = /* @__PURE__ */ x((t) => { +}, "setParallelBTPos"), iYt = /* @__PURE__ */ x((t) => { var n; - const e = ape(t.parents.filter((i) => i !== null)); + const e = ope(t.parents.filter((i) => i !== null)); if (!e) throw new Error(`Closest parent not found for commit ${t.id}`); - const r = (n = Ia.get(e)) == null ? void 0 : n.y; + const r = (n = Pa.get(e)) == null ? void 0 : n.y; if (r === void 0) throw new Error(`Closest parent position not found for commit ${t.id}`); return r; -}, "findClosestParentPos"), iYt = /* @__PURE__ */ x((t) => nYt(t) + qh, "calculateCommitPosition"), sYt = /* @__PURE__ */ x((t, e) => { +}, "findClosestParentPos"), sYt = /* @__PURE__ */ x((t) => iYt(t) + qh, "calculateCommitPosition"), aYt = /* @__PURE__ */ x((t, e) => { const r = Aa.get(t.branch); if (!r) throw new Error(`Branch not found for commit ${t.id}`); const n = r.pos, i = e + Uh; - return Ia.set(t.id, { x: n, y: i }), { x: n, y: i }; -}, "setCommitPosition"), aYt = /* @__PURE__ */ x((t, e, r) => { + return Pa.set(t.id, { x: n, y: i }), { x: n, y: i }; +}, "setCommitPosition"), oYt = /* @__PURE__ */ x((t, e, r) => { const n = Aa.get(t.branch); if (!n) throw new Error(`Branch not found for commit ${t.id}`); const i = e + r, s = n.pos; - Ia.set(t.id, { x: s, y: i }); -}, "setRootPosition"), oYt = /* @__PURE__ */ x((t, e, r, n, i, s) => { + Pa.set(t.id, { x: s, y: i }); +}, "setRootPosition"), lYt = /* @__PURE__ */ x((t, e, r, n, i, s) => { if (s === Hr.HIGHLIGHT) t.append("rect").attr("x", r.x - 10).attr("y", r.y - 10).attr("width", 20).attr("height", 20).attr( "class", @@ -82268,7 +82290,7 @@ var BQt = /* @__PURE__ */ x(function() { `M ${r.x - 5},${r.y - 5}L${r.x + 5},${r.y + 5}M${r.x - 5},${r.y + 5}L${r.x + 5},${r.y - 5}` ).attr("class", `commit ${n} ${e.id} commit${i % xd}`); } -}, "drawCommitBullet"), lYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitBullet"), cYt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.type !== Hr.CHERRY_PICK && (e.customId && e.type === Hr.MERGE || e.type !== Hr.MERGE) && (ui == null ? void 0 : ui.showCommitLabel)) { const s = t.append("g"), a = s.insert("rect").attr("class", "commit-label-bkg"), o = s.append("text").attr("x", n).attr("y", r.y + 25).attr("class", "commit-label").text(e.id), l = (i = o.node()) == null ? void 0 : i.getBBox(); @@ -82289,7 +82311,7 @@ var BQt = /* @__PURE__ */ x(function() { ); } } -}, "drawCommitLabel"), cYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitLabel"), uYt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.tags.length > 0) { let s = 0, a = 0, o = 0; @@ -82331,7 +82353,7 @@ var BQt = /* @__PURE__ */ x(function() { } } } -}, "drawCommitTags"), uYt = /* @__PURE__ */ x((t) => { +}, "drawCommitTags"), hYt = /* @__PURE__ */ x((t) => { var r; switch ((r = t.customType) != null ? r : t.type) { case Hr.NORMAL: @@ -82347,66 +82369,66 @@ var BQt = /* @__PURE__ */ x(function() { default: return "commit-normal"; } -}, "getCommitClassType"), hYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "getCommitClassType"), fYt = /* @__PURE__ */ x((t, e, r, n) => { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { - const l = ape(t.parents); + const l = ope(t.parents); if (l) { const u = (s = n.get(l)) != null ? s : i; return e === "TB" ? u.y + qh : e === "BT" ? ((a = n.get(t.id)) != null ? a : i).y - qh : u.x + qh; } } else - return e === "TB" ? Vk : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - qh : 0; + return e === "TB" ? Uk : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - qh : 0; return 0; -}, "calculatePosition"), fYt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePosition"), dYt = /* @__PURE__ */ x((t, e, r) => { var a, o; const n = Tr === "BT" && r ? e : e + Uh, i = Tr === "TB" || Tr === "BT" ? n : (a = Aa.get(t.branch)) == null ? void 0 : a.pos, s = Tr === "TB" || Tr === "BT" ? (o = Aa.get(t.branch)) == null ? void 0 : o.pos : n; if (s === void 0 || i === void 0) throw new Error(`Position were undefined for commit ${t.id}`); return { x: s, y: i, posWithOffset: n }; -}, "getCommitPosition"), YG = /* @__PURE__ */ x((t, e, r) => { +}, "getCommitPosition"), WG = /* @__PURE__ */ x((t, e, r) => { var h; if (!ui) throw new Error("GitGraph config not found"); const n = t.append("g").attr("class", "commit-bullets"), i = t.append("g").attr("class", "commit-labels"); - let s = Tr === "TB" || Tr === "BT" ? Vk : 0; + let s = Tr === "TB" || Tr === "BT" ? Uk : 0; const a = [...e.keys()], o = (h = ui == null ? void 0 : ui.parallelCommits) != null ? h : !1, l = /* @__PURE__ */ x((f, d) => { var m, v; const p = (m = e.get(f)) == null ? void 0 : m.seq, g = (v = e.get(d)) == null ? void 0 : v.seq; return p !== void 0 && g !== void 0 ? p - g : 0; }, "sortKeys"); let u = a.sort(l); - Tr === "BT" && (o && rYt(u, e, s), u = u.reverse()), u.forEach((f) => { + Tr === "BT" && (o && nYt(u, e, s), u = u.reverse()), u.forEach((f) => { var g, m, v; const d = e.get(f); if (!d) throw new Error(`Commit not found for key ${f}`); - o && (s = hYt(d, Tr, s, Ia)); - const p = fYt(d, s, o); + o && (s = fYt(d, Tr, s, Pa)); + const p = dYt(d, s, o); if (r) { - const y = uYt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; - oYt(n, d, p, y, w, b), lYt(i, d, p, s), cYt(i, d, p, s); + const y = hYt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; + lYt(n, d, p, y, w, b), cYt(i, d, p, s), uYt(i, d, p, s); } - Tr === "TB" || Tr === "BT" ? Ia.set(d.id, { x: p.x, y: p.posWithOffset }) : Ia.set(d.id, { x: p.posWithOffset, y: p.y }), s = Tr === "BT" && o ? s + qh : s + qh + Uh, s > Rh && (Rh = s); + Tr === "TB" || Tr === "BT" ? Pa.set(d.id, { x: p.x, y: p.posWithOffset }) : Pa.set(d.id, { x: p.posWithOffset, y: p.y }), s = Tr === "BT" && o ? s + qh : s + qh + Uh, s > Rh && (Rh = s); }); -}, "drawCommits"), dYt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "drawCommits"), pYt = /* @__PURE__ */ x((t, e, r, n, i) => { const a = (Tr === "TB" || Tr === "BT" ? r.x < n.x : r.y < n.y) ? e.branch : t.branch, o = /* @__PURE__ */ x((u) => u.branch === a, "isOnBranchToGetCurve"), l = /* @__PURE__ */ x((u) => u.seq > t.seq && u.seq < e.seq, "isBetweenCommits"); return [...i.values()].some((u) => l(u) && o(u)); }, "shouldRerouteArrow"), Rv = /* @__PURE__ */ x((t, e, r = 0) => { const n = t + Math.abs(t - e) / 2; if (r > 5) return n; - if (Uk.every((a) => Math.abs(a - n) >= 10)) - return Uk.push(n), n; + if (qk.every((a) => Math.abs(a - n) >= 10)) + return qk.push(n), n; const s = Math.abs(t - e); return Rv(t, e - s / 5, r + 1); -}, "findLane"), pYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "findLane"), gYt = /* @__PURE__ */ x((t, e, r, n) => { var p, g, m, v, y; - const i = Ia.get(e.id), s = Ia.get(r.id); + const i = Pa.get(e.id), s = Pa.get(r.id); if (i === void 0 || s === void 0) throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`); - const a = dYt(e, r, i, s, n); + const a = pYt(e, r, i, s, n); let o = "", l = "", u = 0, h = 0, f = (p = Aa.get(r.branch)) == null ? void 0 : p.index; r.type === Hr.MERGE && e.id !== r.parents[0] && (f = (g = Aa.get(e.branch)) == null ? void 0 : g.index); let d; @@ -82419,15 +82441,15 @@ var BQt = /* @__PURE__ */ x(function() { if (d === void 0) throw new Error("Line definition not found"); t.append("path").attr("d", d).attr("class", "arrow arrow" + f % xd); -}, "drawArrow"), gYt = /* @__PURE__ */ x((t, e) => { +}, "drawArrow"), mYt = /* @__PURE__ */ x((t, e) => { const r = t.append("g").attr("class", "commit-arrows"); [...e.keys()].forEach((n) => { const i = e.get(n); i.parents && i.parents.length > 0 && i.parents.forEach((s) => { - pYt(r, e.get(s), i, e); + gYt(r, e.get(s), i, e); }); }); -}, "drawArrows"), mYt = /* @__PURE__ */ x((t, e) => { +}, "drawArrows"), vYt = /* @__PURE__ */ x((t, e) => { const r = t.append("g"); e.forEach((n, i) => { var g; @@ -82435,8 +82457,8 @@ var BQt = /* @__PURE__ */ x(function() { if (a === void 0) throw new Error(`Position not found for branch ${n.name}`); const o = r.append("line"); - o.attr("x1", 0), o.attr("y1", a), o.attr("x2", Rh), o.attr("y2", a), o.attr("class", "branch branch" + s), Tr === "TB" ? (o.attr("y1", Vk), o.attr("x1", a), o.attr("y2", Rh), o.attr("x2", a)) : Tr === "BT" && (o.attr("y1", Rh), o.attr("x1", a), o.attr("y2", Vk), o.attr("x2", a)), Uk.push(a); - const l = n.name, u = spe(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); + o.attr("x1", 0), o.attr("y1", a), o.attr("x2", Rh), o.attr("y2", a), o.attr("class", "branch branch" + s), Tr === "TB" ? (o.attr("y1", Uk), o.attr("x1", a), o.attr("y2", Rh), o.attr("x2", a)) : Tr === "BT" && (o.attr("y1", Rh), o.attr("x1", a), o.attr("y2", Uk), o.attr("x2", a)), qk.push(a); + const l = n.name, u = ape(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); d.node().appendChild(u); const p = u.getBBox(); h.attr("class", "branchLabelBkg label" + s).attr("rx", 4).attr("ry", 4).attr("x", -p.width - 4 - ((ui == null ? void 0 : ui.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -p.height / 2 + 8).attr("width", p.width + 18).attr("height", p.height + 4), d.attr( @@ -82444,11 +82466,11 @@ var BQt = /* @__PURE__ */ x(function() { "translate(" + (-p.width - 14 - ((ui == null ? void 0 : ui.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (a - p.height / 2 - 1) + ")" ), Tr === "TB" ? (h.attr("x", a - p.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", 0)")) : Tr === "BT" ? (h.attr("x", a - p.width / 2 - 10).attr("y", Rh), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", " + Rh + ")")) : h.attr("transform", "translate(-19, " + (a - p.height / 2) + ")"); }); -}, "drawBranches"), vYt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawBranches"), yYt = /* @__PURE__ */ x(function(t, e, r, n, i) { return Aa.set(t, { pos: e, index: r }), e += 50 + (i ? 40 : 0) + (Tr === "TB" || Tr === "BT" ? n.width / 2 : 0), e; -}, "setBranchPosition"), yYt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setBranchPosition"), bYt = /* @__PURE__ */ x(function(t, e, r, n) { var u, h; - if (eYt(), X.debug("in gitgraph renderer", t + ` + if (tYt(), X.debug("in gitgraph renderer", t + ` `, "id:", e, r), !ui) throw new Error("GitGraph config not found"); const i = (u = ui.rotateCommitLabel) != null ? u : !1, s = n.db; @@ -82459,24 +82481,24 @@ var BQt = /* @__PURE__ */ x(function() { let l = 0; a.forEach((f, d) => { var b; - const p = spe(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); + const p = ape(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); (b = v.node()) == null || b.appendChild(p); const y = p.getBBox(); - l = vYt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), YG(o, Lv, !1), ui.showBranches && mYt(o, a), gYt(o, Lv), YG(o, Lv, !0), sr.insertTitle( + l = yYt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); + }), WG(o, Lv, !1), ui.showBranches && vYt(o, a), mYt(o, Lv), WG(o, Lv, !0), sr.insertTitle( o, "gitTitleText", (h = ui.titleTopMargin) != null ? h : 0, s.getDiagramTitle() - ), Rie( + ), Mie( void 0, o, ui.diagramPadding, ui.useMaxWidth ); -}, "draw"), bYt = { - draw: yYt -}, xYt = /* @__PURE__ */ x((t) => ` +}, "draw"), xYt = { + draw: bYt +}, wYt = /* @__PURE__ */ x((t) => ` .commit-id, .commit-msg, .branch-label { @@ -82529,17 +82551,17 @@ var BQt = /* @__PURE__ */ x(function() { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), wYt = xYt, OYt = { - parser: JQt, - db: ipe, - renderer: bYt, - styles: wYt +`, "getStyles"), OYt = wYt, kYt = { + parser: eYt, + db: spe, + renderer: xYt, + styles: OYt }; -const kYt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const SYt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: OYt + diagram: kYt }, Symbol.toStringTag, { value: "Module" })); -var ope = { exports: {} }; +var lpe = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -82566,9 +82588,9 @@ var ope = { exports: {} }; }; }; }); -})(ope); -const SYt = ope.exports; -var lpe = { exports: {} }; +})(lpe); +const TYt = lpe.exports; +var cpe = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -82635,23 +82657,23 @@ var lpe = { exports: {} }; function m(v) { var y, b; y = v, b = l && l.formats; - for (var w = (v = y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(A, _, R) { + for (var w = (v = y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(L, _, R) { var $ = R && R.toUpperCase(); return _ || b[R] || r[R] || b[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(k, N, M) { return N || M.slice(1); }); })).match(n), O = w.length, S = 0; S < O; S += 1) { - var C = w[S], T = g[C], L = T && T[0], E = T && T[1]; - w[S] = E ? { regex: L, parser: E } : C.replace(/^\[|\]$/g, ""); + var C = w[S], T = g[C], A = T && T[0], E = T && T[1]; + w[S] = E ? { regex: A, parser: E } : C.replace(/^\[|\]$/g, ""); } - return function(A) { + return function(L) { for (var _ = {}, R = 0, $ = 0; R < O; R += 1) { var k = w[R]; if (typeof k == "string") $ += k.length; else { - var N = k.regex, M = k.parser, I = A.slice($), D = N.exec(I)[0]; - M.call(_, D), A = A.replace(D, ""); + var N = k.regex, M = k.parser, I = L.slice($), D = N.exec(I)[0]; + M.call(_, D), L = L.replace(D, ""); } } return function(P) { @@ -82667,12 +82689,12 @@ var lpe = { exports: {} }; b.p.customParseFormat = !0, v && v.parseTwoDigitYear && (u = v.parseTwoDigitYear); var w = y.prototype, O = w.parse; w.parse = function(S) { - var C = S.date, T = S.utc, L = S.args; + var C = S.date, T = S.utc, A = S.args; this.$u = T; - var E = L[1]; + var E = A[1]; if (typeof E == "string") { - var A = L[2] === !0, _ = L[3] === !0, R = A || _, $ = L[2]; - _ && ($ = L[2]), l = this.$locale(), !A && $ && (l = b.Ls[$]), this.$d = function(I, D, P, F) { + var L = A[2] === !0, _ = A[3] === !0, R = L || _, $ = A[2]; + _ && ($ = A[2]), l = this.$locale(), !L && $ && (l = b.Ls[$]), this.$d = function(I, D, P, F) { try { if (["x", "X"].indexOf(D) > -1) return new Date((D === "X" ? 1e3 : 1) * I); @@ -82686,8 +82708,8 @@ var lpe = { exports: {} }; }(C, E, T, b), this.init(), $ && $ !== !0 && (this.$L = this.locale($).$L), R && C != this.format(E) && (this.$d = new Date("")), l = {}; } else if (E instanceof Array) for (var k = E.length, N = 1; N <= k; N += 1) { - L[1] = E[N - 1]; - var M = b.apply(this, L); + A[1] = E[N - 1]; + var M = b.apply(this, A); if (M.isValid()) { this.$d = M.$d, this.$L = M.$L, this.init(); break; @@ -82699,9 +82721,9 @@ var lpe = { exports: {} }; }; }; }); -})(lpe); -const TYt = lpe.exports; -var cpe = { exports: {} }; +})(cpe); +const CYt = cpe.exports; +var upe = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -82749,14 +82771,14 @@ var cpe = { exports: {} }; }; }; }); -})(cpe); -const CYt = cpe.exports; -var C9 = function() { +})(upe); +const EYt = upe.exports; +var E9 = function() { var t = /* @__PURE__ */ x(function($, k, N, M) { for (N = N || {}, M = $.length; M--; N[$[M]] = k) ; return N; - }, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], r = [1, 26], n = [1, 27], i = [1, 28], s = [1, 29], a = [1, 30], o = [1, 31], l = [1, 32], u = [1, 33], h = [1, 34], f = [1, 9], d = [1, 10], p = [1, 11], g = [1, 12], m = [1, 13], v = [1, 14], y = [1, 15], b = [1, 16], w = [1, 19], O = [1, 20], S = [1, 21], C = [1, 22], T = [1, 23], L = [1, 25], E = [1, 35], A = { + }, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], r = [1, 26], n = [1, 27], i = [1, 28], s = [1, 29], a = [1, 30], o = [1, 31], l = [1, 32], u = [1, 33], h = [1, 34], f = [1, 9], d = [1, 10], p = [1, 11], g = [1, 12], m = [1, 13], v = [1, 14], y = [1, 15], b = [1, 16], w = [1, 19], O = [1, 20], S = [1, 21], C = [1, 22], T = [1, 23], A = [1, 25], E = [1, 35], L = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -82885,7 +82907,7 @@ var C9 = function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: r, 13: n, 14: i, 15: s, 16: a, 17: o, 18: l, 19: 18, 20: u, 21: h, 22: f, 23: d, 24: p, 25: g, 26: m, 27: v, 28: y, 29: b, 30: w, 31: O, 33: S, 35: C, 36: T, 37: 24, 38: L, 40: E }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: r, 13: n, 14: i, 15: s, 16: a, 17: o, 18: l, 19: 18, 20: u, 21: h, 22: f, 23: d, 24: p, 25: g, 26: m, 27: v, 28: y, 29: b, 30: w, 31: O, 33: S, 35: C, 36: T, 37: 24, 38: L, 40: E }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])], + table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: r, 13: n, 14: i, 15: s, 16: a, 17: o, 18: l, 19: 18, 20: u, 21: h, 22: f, 23: d, 24: p, 25: g, 26: m, 27: v, 28: y, 29: b, 30: w, 31: O, 33: S, 35: C, 36: T, 37: 24, 38: A, 40: E }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: r, 13: n, 14: i, 15: s, 16: a, 17: o, 18: l, 19: 18, 20: u, 21: h, 22: f, 23: d, 24: p, 25: g, 26: m, 27: v, 28: y, 29: b, 30: w, 31: O, 33: S, 35: C, 36: T, 37: 24, 38: A, 40: E }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])], defaultActions: {}, parseError: /* @__PURE__ */ x(function(k, N) { if (N.recoverable) @@ -83239,84 +83261,84 @@ Expecting ` + Ye.join(", ") + ", got '" + (this.terminals_[se] || se) + "'" : De }; return $; }(); - A.lexer = _; + L.lexer = _; function R() { this.yy = {}; } - return x(R, "Parser"), R.prototype = A, A.Parser = R, new R(); + return x(R, "Parser"), R.prototype = L, L.Parser = R, new R(); }(); -C9.parser = C9; -var EYt = C9; -Ns.extend(SYt); +E9.parser = E9; +var _Yt = E9; Ns.extend(TYt); Ns.extend(CYt); -var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx = [], Vx = [], UI = /* @__PURE__ */ new Map(), qI = [], qk = [], x1 = "", QI = "", upe = ["active", "done", "crit", "milestone"], YI = [], Ux = !1, WI = !1, GI = "sunday", Qk = "saturday", E9 = 0, _Yt = /* @__PURE__ */ x(function() { - qI = [], qk = [], x1 = "", YI = [], K4 = 0, A9 = void 0, J4 = void 0, yi = [], Sc = "", FI = "", QI = "", zI = void 0, VI = "", zx = [], Vx = [], Ux = !1, WI = !1, E9 = 0, UI = /* @__PURE__ */ new Map(), Xi(), GI = "sunday", Qk = "saturday"; -}, "clear"), AYt = /* @__PURE__ */ x(function(t) { +Ns.extend(EYt); +var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx = [], Vx = [], UI = /* @__PURE__ */ new Map(), qI = [], Qk = [], x1 = "", QI = "", hpe = ["active", "done", "crit", "milestone"], YI = [], Ux = !1, WI = !1, GI = "sunday", Yk = "saturday", _9 = 0, AYt = /* @__PURE__ */ x(function() { + qI = [], Qk = [], x1 = "", YI = [], K4 = 0, L9 = void 0, J4 = void 0, yi = [], Sc = "", FI = "", QI = "", zI = void 0, VI = "", zx = [], Vx = [], Ux = !1, WI = !1, _9 = 0, UI = /* @__PURE__ */ new Map(), Xi(), GI = "sunday", Yk = "saturday"; +}, "clear"), LYt = /* @__PURE__ */ x(function(t) { FI = t; -}, "setAxisFormat"), LYt = /* @__PURE__ */ x(function() { +}, "setAxisFormat"), RYt = /* @__PURE__ */ x(function() { return FI; -}, "getAxisFormat"), RYt = /* @__PURE__ */ x(function(t) { +}, "getAxisFormat"), MYt = /* @__PURE__ */ x(function(t) { zI = t; -}, "setTickInterval"), MYt = /* @__PURE__ */ x(function() { +}, "setTickInterval"), DYt = /* @__PURE__ */ x(function() { return zI; -}, "getTickInterval"), DYt = /* @__PURE__ */ x(function(t) { +}, "getTickInterval"), NYt = /* @__PURE__ */ x(function(t) { VI = t; -}, "setTodayMarker"), NYt = /* @__PURE__ */ x(function() { +}, "setTodayMarker"), IYt = /* @__PURE__ */ x(function() { return VI; -}, "getTodayMarker"), IYt = /* @__PURE__ */ x(function(t) { +}, "getTodayMarker"), PYt = /* @__PURE__ */ x(function(t) { Sc = t; -}, "setDateFormat"), PYt = /* @__PURE__ */ x(function() { +}, "setDateFormat"), $Yt = /* @__PURE__ */ x(function() { Ux = !0; -}, "enableInclusiveEndDates"), $Yt = /* @__PURE__ */ x(function() { +}, "enableInclusiveEndDates"), BYt = /* @__PURE__ */ x(function() { return Ux; -}, "endDatesAreInclusive"), BYt = /* @__PURE__ */ x(function() { +}, "endDatesAreInclusive"), FYt = /* @__PURE__ */ x(function() { WI = !0; -}, "enableTopAxis"), FYt = /* @__PURE__ */ x(function() { +}, "enableTopAxis"), zYt = /* @__PURE__ */ x(function() { return WI; -}, "topAxisEnabled"), zYt = /* @__PURE__ */ x(function(t) { +}, "topAxisEnabled"), VYt = /* @__PURE__ */ x(function(t) { QI = t; -}, "setDisplayMode"), VYt = /* @__PURE__ */ x(function() { +}, "setDisplayMode"), UYt = /* @__PURE__ */ x(function() { return QI; -}, "getDisplayMode"), UYt = /* @__PURE__ */ x(function() { +}, "getDisplayMode"), qYt = /* @__PURE__ */ x(function() { return Sc; -}, "getDateFormat"), qYt = /* @__PURE__ */ x(function(t) { +}, "getDateFormat"), QYt = /* @__PURE__ */ x(function(t) { zx = t.toLowerCase().split(/[\s,]+/); -}, "setIncludes"), QYt = /* @__PURE__ */ x(function() { +}, "setIncludes"), YYt = /* @__PURE__ */ x(function() { return zx; -}, "getIncludes"), YYt = /* @__PURE__ */ x(function(t) { +}, "getIncludes"), WYt = /* @__PURE__ */ x(function(t) { Vx = t.toLowerCase().split(/[\s,]+/); -}, "setExcludes"), WYt = /* @__PURE__ */ x(function() { +}, "setExcludes"), GYt = /* @__PURE__ */ x(function() { return Vx; -}, "getExcludes"), GYt = /* @__PURE__ */ x(function() { +}, "getExcludes"), HYt = /* @__PURE__ */ x(function() { return UI; -}, "getLinks"), HYt = /* @__PURE__ */ x(function(t) { +}, "getLinks"), XYt = /* @__PURE__ */ x(function(t) { x1 = t, qI.push(t); -}, "addSection"), XYt = /* @__PURE__ */ x(function() { +}, "addSection"), ZYt = /* @__PURE__ */ x(function() { return qI; -}, "getSections"), ZYt = /* @__PURE__ */ x(function() { - let t = GG(); +}, "getSections"), jYt = /* @__PURE__ */ x(function() { + let t = HG(); const e = 10; let r = 0; for (; !t && r < e; ) - t = GG(), r++; - return qk = yi, qk; -}, "getTasks"), hpe = /* @__PURE__ */ x(function(t, e, r, n) { - return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === WG[Qk] || t.isoWeekday() === WG[Qk] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); -}, "isInvalidDate"), jYt = /* @__PURE__ */ x(function(t) { + t = HG(), r++; + return Qk = yi, Qk; +}, "getTasks"), fpe = /* @__PURE__ */ x(function(t, e, r, n) { + return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === GG[Yk] || t.isoWeekday() === GG[Yk] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); +}, "isInvalidDate"), KYt = /* @__PURE__ */ x(function(t) { GI = t; -}, "setWeekday"), KYt = /* @__PURE__ */ x(function() { +}, "setWeekday"), JYt = /* @__PURE__ */ x(function() { return GI; -}, "getWeekday"), JYt = /* @__PURE__ */ x(function(t) { - Qk = t; -}, "setWeekend"), fpe = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getWeekday"), eWt = /* @__PURE__ */ x(function(t) { + Yk = t; +}, "setWeekend"), dpe = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) return; let i; t.startTime instanceof Date ? i = Ns(t.startTime) : i = Ns(t.startTime, e, !0), i = i.add(1, "d"); let s; t.endTime instanceof Date ? s = Ns(t.endTime) : s = Ns(t.endTime, e, !0); - const [a, o] = eWt( + const [a, o] = tWt( i, s, e, @@ -83324,12 +83346,12 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx n ); t.endTime = a.toDate(), t.renderEndTime = o; -}, "checkTaskDates"), eWt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "checkTaskDates"), tWt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) - s || (a = e.toDate()), s = hpe(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); + s || (a = e.toDate()), s = fpe(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); return [e, a]; -}, "fixTaskDates"), _9 = /* @__PURE__ */ x(function(t, e, r) { +}, "fixTaskDates"), A9 = /* @__PURE__ */ x(function(t, e, r) { r = r.trim(); const i = /^after\s+(?[\d\w- ]+)/.exec(r); if (i !== null) { @@ -83353,10 +83375,10 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx throw new Error("Invalid date:" + r); return a; } -}, "getStartDate"), dpe = /* @__PURE__ */ x(function(t) { +}, "getStartDate"), ppe = /* @__PURE__ */ x(function(t) { const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()); return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"]; -}, "parseDuration"), ppe = /* @__PURE__ */ x(function(t, e, r, n = !1) { +}, "parseDuration"), gpe = /* @__PURE__ */ x(function(t, e, r, n = !1) { r = r.trim(); const s = /^until\s+(?[\d\w- ]+)/.exec(r); if (s !== null) { @@ -83374,7 +83396,7 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx if (a.isValid()) return n && (a = a.add(1, "d")), a.toDate(); let o = Ns(t); - const [l, u] = dpe(r); + const [l, u] = ppe(r); if (!Number.isNaN(l)) { const h = o.add(l, u); h.isValid() && (o = h); @@ -83382,11 +83404,11 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx return o.toDate(); }, "getEndDate"), K4 = 0, ug = /* @__PURE__ */ x(function(t) { return t === void 0 ? (K4 = K4 + 1, "task" + K4) : t; -}, "parseId"), tWt = /* @__PURE__ */ x(function(t, e) { +}, "parseId"), rWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - HI(n, i, upe); + HI(n, i, hpe); for (let a = 0; a < n.length; a++) n[a] = n[a].trim(); let s = ""; @@ -83395,18 +83417,18 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx i.id = ug(), i.startTime = t.endTime, s = n[0]; break; case 2: - i.id = ug(), i.startTime = _9(void 0, Sc, n[0]), s = n[1]; + i.id = ug(), i.startTime = A9(void 0, Sc, n[0]), s = n[1]; break; case 3: - i.id = ug(n[0]), i.startTime = _9(void 0, Sc, n[1]), s = n[2]; + i.id = ug(n[0]), i.startTime = A9(void 0, Sc, n[1]), s = n[2]; break; } - return s && (i.endTime = ppe(i.startTime, Sc, s, Ux), i.manualEndTime = Ns(s, "YYYY-MM-DD", !0).isValid(), fpe(i, Sc, Vx, zx)), i; -}, "compileData"), rWt = /* @__PURE__ */ x(function(t, e) { + return s && (i.endTime = gpe(i.startTime, Sc, s, Ux), i.manualEndTime = Ns(s, "YYYY-MM-DD", !0).isValid(), dpe(i, Sc, Vx, zx)), i; +}, "compileData"), nWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - HI(n, i, upe); + HI(n, i, hpe); for (let s = 0; s < n.length; s++) n[s] = n[s].trim(); switch (n.length) { @@ -83436,7 +83458,7 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx break; } return i; -}, "parseData"), A9, J4, yi = [], gpe = {}, nWt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), L9, J4, yi = [], mpe = {}, iWt = /* @__PURE__ */ x(function(t, e) { const r = { section: x1, type: x1, @@ -83446,23 +83468,23 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx raw: { data: e }, task: t, classes: [] - }, n = rWt(J4, e); - r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = J4, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = E9, E9++; + }, n = nWt(J4, e); + r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = J4, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = _9, _9++; const i = yi.push(r); - J4 = r.id, gpe[r.id] = i - 1; + J4 = r.id, mpe[r.id] = i - 1; }, "addTask"), rp = /* @__PURE__ */ x(function(t) { - const e = gpe[t]; + const e = mpe[t]; return yi[e]; -}, "findTaskById"), iWt = /* @__PURE__ */ x(function(t, e) { +}, "findTaskById"), sWt = /* @__PURE__ */ x(function(t, e) { const r = { section: x1, type: x1, description: t, task: t, classes: [] - }, n = tWt(A9, e); - r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, A9 = r, qk.push(r); -}, "addTaskOrg"), GG = /* @__PURE__ */ x(function() { + }, n = rWt(L9, e); + r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, L9 = r, Qk.push(r); +}, "addTaskOrg"), HG = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { const n = yi[r]; let i = ""; @@ -83473,10 +83495,10 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx break; } case "getStartDate": - i = _9(void 0, Sc, yi[r].raw.startTime.startData), i && (yi[r].startTime = i); + i = A9(void 0, Sc, yi[r].raw.startTime.startData), i && (yi[r].startTime = i); break; } - return yi[r].startTime && (yi[r].endTime = ppe( + return yi[r].startTime && (yi[r].endTime = gpe( yi[r].startTime, Sc, yi[r].raw.endTime.data, @@ -83485,25 +83507,25 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx yi[r].raw.endTime.data, "YYYY-MM-DD", !0 - ).isValid(), fpe(yi[r], Sc, Vx, zx))), yi[r].processed; + ).isValid(), dpe(yi[r], Sc, Vx, zx))), yi[r].processed; }, "compileTask"); let e = !0; for (const [r, n] of yi.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), sWt = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), aWt = /* @__PURE__ */ x(function(t, e) { let r = e; be().securityLevel !== "loose" && (r = zf(e)), t.split(",").forEach(function(n) { - rp(n) !== void 0 && (vpe(n, () => { + rp(n) !== void 0 && (ype(n, () => { window.open(r, "_self"); }), UI.set(n, r)); - }), mpe(t, "clickable"); -}, "setLink"), mpe = /* @__PURE__ */ x(function(t, e) { + }), vpe(t, "clickable"); +}, "setLink"), vpe = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = rp(r); n !== void 0 && n.classes.push(e); }); -}, "setClass"), aWt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClass"), oWt = /* @__PURE__ */ x(function(t, e, r) { if (be().securityLevel !== "loose" || e === void 0) return; let n = []; @@ -83514,10 +83536,10 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx a.startsWith('"') && a.endsWith('"') && (a = a.substr(1, a.length - 2)), n[s] = a; } } - n.length === 0 && n.push(t), rp(t) !== void 0 && vpe(t, () => { + n.length === 0 && n.push(t), rp(t) !== void 0 && ype(t, () => { sr.runFunc(e, ...n); }); -}, "setClickFun"), vpe = /* @__PURE__ */ x(function(t, e) { +}, "setClickFun"), ype = /* @__PURE__ */ x(function(t, e) { YI.push( function() { const r = document.querySelector(`[id="${t}"]`); @@ -83532,56 +83554,56 @@ var WG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx }); } ); -}, "pushFun"), oWt = /* @__PURE__ */ x(function(t, e, r) { +}, "pushFun"), lWt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - aWt(n, e, r); - }), mpe(t, "clickable"); -}, "setClickEvent"), lWt = /* @__PURE__ */ x(function(t) { + oWt(n, e, r); + }), vpe(t, "clickable"); +}, "setClickEvent"), cWt = /* @__PURE__ */ x(function(t) { YI.forEach(function(e) { e(t); }); -}, "bindFunctions"), cWt = { +}, "bindFunctions"), uWt = { getConfig: /* @__PURE__ */ x(() => be().gantt, "getConfig"), - clear: _Yt, - setDateFormat: IYt, - getDateFormat: UYt, - enableInclusiveEndDates: PYt, - endDatesAreInclusive: $Yt, - enableTopAxis: BYt, - topAxisEnabled: FYt, - setAxisFormat: AYt, - getAxisFormat: LYt, - setTickInterval: RYt, - getTickInterval: MYt, - setTodayMarker: DYt, - getTodayMarker: NYt, + clear: AYt, + setDateFormat: PYt, + getDateFormat: qYt, + enableInclusiveEndDates: $Yt, + endDatesAreInclusive: BYt, + enableTopAxis: FYt, + topAxisEnabled: zYt, + setAxisFormat: LYt, + getAxisFormat: RYt, + setTickInterval: MYt, + getTickInterval: DYt, + setTodayMarker: NYt, + getTodayMarker: IYt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, - setDisplayMode: zYt, - getDisplayMode: VYt, + setDisplayMode: VYt, + getDisplayMode: UYt, setAccDescription: ys, getAccDescription: bs, - addSection: HYt, - getSections: XYt, - getTasks: ZYt, - addTask: nWt, + addSection: XYt, + getSections: ZYt, + getTasks: jYt, + addTask: iWt, findTaskById: rp, - addTaskOrg: iWt, - setIncludes: qYt, - getIncludes: QYt, - setExcludes: YYt, - getExcludes: WYt, - setClickEvent: oWt, - setLink: sWt, - getLinks: GYt, - bindFunctions: lWt, - parseDuration: dpe, - isInvalidDate: hpe, - setWeekday: jYt, - getWeekday: KYt, - setWeekend: JYt + addTaskOrg: sWt, + setIncludes: QYt, + getIncludes: YYt, + setExcludes: WYt, + getExcludes: GYt, + setClickEvent: lWt, + setLink: aWt, + getLinks: HYt, + bindFunctions: cWt, + parseDuration: ppe, + isInvalidDate: fpe, + setWeekday: KYt, + getWeekday: JYt, + setWeekend: eWt }; function HI(t, e, r) { let n = !0; @@ -83592,17 +83614,17 @@ function HI(t, e, r) { }); } x(HI, "getTaskTags"); -var uWt = /* @__PURE__ */ x(function() { +var hWt = /* @__PURE__ */ x(function() { X.debug("Something is calling, setConf, remove the call"); -}, "setConf"), HG = { +}, "setConf"), XG = { monday: u2, - tuesday: Cse, - wednesday: Ese, + tuesday: Ese, + wednesday: _se, thursday: a0, - friday: _se, - saturday: Ase, + friday: Ase, + saturday: Lse, sunday: ux -}, hWt = /* @__PURE__ */ x((t, e) => { +}, fWt = /* @__PURE__ */ x((t, e) => { let r = [...t].map(() => -1 / 0), n = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0; for (const s of n) for (let a = 0; a < r.length; a++) @@ -83611,7 +83633,7 @@ var uWt = /* @__PURE__ */ x(function() { break; } return i; -}, "getMaxIntersections"), cu, fWt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getMaxIntersections"), cu, dWt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().gantt, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -83619,58 +83641,58 @@ var uWt = /* @__PURE__ */ x(function() { cu = u.parentElement.offsetWidth, cu === void 0 && (cu = 1200), i.useWidth !== void 0 && (cu = i.useWidth); const h = n.db.getTasks(); let f = []; - for (const L of h) - f.push(L.type); + for (const A of h) + f.push(A.type); f = T(f); const d = {}; let p = 2 * i.topPadding; if (n.db.getDisplayMode() === "compact" || i.displayMode === "compact") { - const L = {}; - for (const A of h) - L[A.section] === void 0 ? L[A.section] = [A] : L[A.section].push(A); + const A = {}; + for (const L of h) + A[L.section] === void 0 ? A[L.section] = [L] : A[L.section].push(L); let E = 0; - for (const A of Object.keys(L)) { - const _ = hWt(L[A], E) + 1; - E += _, p += _ * (i.barHeight + i.barGap), d[A] = _; + for (const L of Object.keys(A)) { + const _ = fWt(A[L], E) + 1; + E += _, p += _ * (i.barHeight + i.barGap), d[L] = _; } } else { p += h.length * (i.barHeight + i.barGap); - for (const L of f) - d[L] = h.filter((E) => E.type === L).length; + for (const A of f) + d[A] = h.filter((E) => E.type === A).length; } u.setAttribute("viewBox", "0 0 " + cu + " " + p); - const g = o.select(`[id="${e}"]`), m = COt().domain([ - fyt(h, function(L) { - return L.startTime; + const g = o.select(`[id="${e}"]`), m = EOt().domain([ + dyt(h, function(A) { + return A.startTime; }), - hyt(h, function(L) { - return L.endTime; + fyt(h, function(A) { + return A.endTime; }) ]).rangeRound([0, cu - i.leftPadding - i.rightPadding]); - function v(L, E) { - const A = L.startTime, _ = E.startTime; + function v(A, E) { + const L = A.startTime, _ = E.startTime; let R = 0; - return A > _ ? R = 1 : A < _ && (R = -1), R; + return L > _ ? R = 1 : L < _ && (R = -1), R; } x(v, "taskCompare"), h.sort(v), y(h, cu, p), ms(g, p, cu, i.useMaxWidth), g.append("text").text(n.db.getDiagramTitle()).attr("x", cu / 2).attr("y", i.titleTopMargin).attr("class", "titleText"); - function y(L, E, A) { - const _ = i.barHeight, R = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, N = Xg().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Ibt); + function y(A, E, L) { + const _ = i.barHeight, R = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, N = Xg().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Pbt); w( R, $, k, E, - A, L, + A, n.db.getExcludes(), n.db.getIncludes() - ), O(k, $, E, A), b(L, R, $, k, _, N, E), S(R, $), C(k, $, E, A); + ), O(k, $, E, L), b(A, R, $, k, _, N, E), S(R, $), C(k, $, E, L); } x(y, "makeGantt"); - function b(L, E, A, _, R, $, k) { - const M = [...new Set(L.map((F) => F.order))].map((F) => L.find((B) => B.order === F)); + function b(A, E, L, _, R, $, k) { + const M = [...new Set(A.map((F) => F.order))].map((F) => A.find((B) => B.order === F)); g.append("g").selectAll("rect").data(M).enter().append("rect").attr("x", 0).attr("y", function(F, B) { - return B = F.order, B * E + A - 2; + return B = F.order, B * E + L - 2; }).attr("width", function() { return k - i.rightPadding / 2; }).attr("height", E).attr("class", function(F) { @@ -83679,17 +83701,17 @@ var uWt = /* @__PURE__ */ x(function() { return "section section" + B % i.numberSectionStyles; return "section section0"; }); - const I = g.append("g").selectAll("rect").data(L).enter(), D = n.db.getLinks(); + const I = g.append("g").selectAll("rect").data(A).enter(), D = n.db.getLinks(); if (I.append("rect").attr("id", function(F) { return F.id; }).attr("rx", 3).attr("ry", 3).attr("x", function(F) { return F.milestone ? m(F.startTime) + _ + 0.5 * (m(F.endTime) - m(F.startTime)) - 0.5 * R : m(F.startTime) + _; }).attr("y", function(F, B) { - return B = F.order, B * E + A; + return B = F.order, B * E + L; }).attr("width", function(F) { return F.milestone ? R : m(F.renderEndTime || F.endTime) - m(F.startTime); }).attr("height", R).attr("transform-origin", function(F, B) { - return B = F.order, (m(F.startTime) + _ + 0.5 * (m(F.endTime) - m(F.startTime))).toString() + "px " + (B * E + A + 0.5 * R).toString() + "px"; + return B = F.order, (m(F.startTime) + _ + 0.5 * (m(F.endTime) - m(F.startTime))).toString() + "px " + (B * E + L + 0.5 * R).toString() + "px"; }).attr("class", function(F) { const B = "task"; let V = ""; @@ -83709,7 +83731,7 @@ var uWt = /* @__PURE__ */ x(function() { const Q = this.getBBox().width; return Q > V - B ? V + Q + 1.5 * i.leftPadding > k ? B + _ - 5 : V + _ + 5 : (V - B) / 2 + B + _; }).attr("y", function(F, B) { - return B = F.order, B * E + i.barHeight / 2 + (i.fontSize / 2 - 2) + A; + return B = F.order, B * E + i.barHeight / 2 + (i.fontSize / 2 - 2) + L; }).attr("text-height", R).attr("class", function(F) { const B = m(F.startTime); let V = m(F.endTime); @@ -83737,7 +83759,7 @@ var uWt = /* @__PURE__ */ x(function() { } } x(b, "drawRects"); - function w(L, E, A, _, R, $, k, N) { + function w(A, E, L, _, R, $, k, N) { if (k.length === 0 && N.length === 0) return; let M, I; @@ -83761,17 +83783,17 @@ var uWt = /* @__PURE__ */ x(function() { g.append("g").selectAll("rect").data(P).enter().append("rect").attr("id", function(Q) { return "exclude-" + Q.start.format("YYYY-MM-DD"); }).attr("x", function(Q) { - return m(Q.start) + A; + return m(Q.start) + L; }).attr("y", i.gridLineStartPadding).attr("width", function(Q) { const W = Q.end.add(1, "day"); return m(W) - m(Q.start); }).attr("height", R - E - i.gridLineStartPadding).attr("transform-origin", function(Q, W) { - return (m(Q.start) + A + 0.5 * (m(Q.end) - m(Q.start))).toString() + "px " + (W * L + 0.5 * R).toString() + "px"; + return (m(Q.start) + L + 0.5 * (m(Q.end) - m(Q.start))).toString() + "px " + (W * A + 0.5 * R).toString() + "px"; }).attr("class", "exclude-range"); } x(w, "drawExcludeDays"); - function O(L, E, A, _) { - let R = wyt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(L3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + function O(A, E, L, _) { + let R = Oyt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(L3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); const k = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec( n.db.getTickInterval() || i.tickInterval ); @@ -83794,15 +83816,15 @@ var uWt = /* @__PURE__ */ x(function() { R.ticks(s0.every(N)); break; case "week": - R.ticks(HG[I].every(N)); + R.ticks(XG[I].every(N)); break; case "month": R.ticks(h2.every(N)); break; } } - if (g.append("g").attr("class", "grid").attr("transform", "translate(" + L + ", " + (_ - 50) + ")").call(R).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), n.db.topAxisEnabled() || i.topAxis) { - let N = xyt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(L3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + if (g.append("g").attr("class", "grid").attr("transform", "translate(" + A + ", " + (_ - 50) + ")").call(R).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), n.db.topAxisEnabled() || i.topAxis) { + let N = wyt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(L3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); if (k !== null) { const M = k[1], I = k[2], D = n.db.getWeekday() || i.weekday; switch (I) { @@ -83822,19 +83844,19 @@ var uWt = /* @__PURE__ */ x(function() { N.ticks(s0.every(M)); break; case "week": - N.ticks(HG[D].every(M)); + N.ticks(XG[D].every(M)); break; case "month": N.ticks(h2.every(M)); break; } } - g.append("g").attr("class", "grid").attr("transform", "translate(" + L + ", " + E + ")").call(N).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10); + g.append("g").attr("class", "grid").attr("transform", "translate(" + A + ", " + E + ")").call(N).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10); } } x(O, "makeGrid"); - function S(L, E) { - let A = 0; + function S(A, E) { + let L = 0; const _ = Object.keys(d).map((R) => [R, d[R]]); g.append("g").selectAll("text").data(_).enter().append(function(R) { const $ = R[0].split(at.lineBreakRegex), k = -($.length - 1) / 2, N = l.createElementNS("http://www.w3.org/2000/svg", "text"); @@ -83847,9 +83869,9 @@ var uWt = /* @__PURE__ */ x(function() { }).attr("x", 10).attr("y", function(R, $) { if ($ > 0) for (let k = 0; k < $; k++) - return A += _[$ - 1][1], R[1] * L / 2 + A * L + E; + return L += _[$ - 1][1], R[1] * A / 2 + L * A + E; else - return R[1] * L / 2 + E; + return R[1] * A / 2 + E; }).attr("font-size", i.sectionFontSize).attr("class", function(R) { for (const [$, k] of f.entries()) if (R[0] === k) @@ -83858,25 +83880,25 @@ var uWt = /* @__PURE__ */ x(function() { }); } x(S, "vertLabels"); - function C(L, E, A, _) { + function C(A, E, L, _) { const R = n.db.getTodayMarker(); if (R === "off") return; const $ = g.append("g").attr("class", "today"), k = /* @__PURE__ */ new Date(), N = $.append("line"); - N.attr("x1", m(k) + L).attr("x2", m(k) + L).attr("y1", i.titleTopMargin).attr("y2", _ - i.titleTopMargin).attr("class", "today"), R !== "" && N.attr("style", R.replace(/,/g, ";")); + N.attr("x1", m(k) + A).attr("x2", m(k) + A).attr("y1", i.titleTopMargin).attr("y2", _ - i.titleTopMargin).attr("class", "today"), R !== "" && N.attr("style", R.replace(/,/g, ";")); } x(C, "drawToday"); - function T(L) { - const E = {}, A = []; - for (let _ = 0, R = L.length; _ < R; ++_) - Object.prototype.hasOwnProperty.call(E, L[_]) || (E[L[_]] = !0, A.push(L[_])); - return A; + function T(A) { + const E = {}, L = []; + for (let _ = 0, R = A.length; _ < R; ++_) + Object.prototype.hasOwnProperty.call(E, A[_]) || (E[A[_]] = !0, L.push(A[_])); + return L; } x(T, "checkUnique"); -}, "draw"), dWt = { - setConf: uWt, - draw: fWt -}, pWt = /* @__PURE__ */ x((t) => ` +}, "draw"), pWt = { + setConf: hWt, + draw: dWt +}, gWt = /* @__PURE__ */ x((t) => ` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -84127,68 +84149,68 @@ var uWt = /* @__PURE__ */ x(function() { fill: ${t.titleColor || t.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`, "getStyles"), gWt = pWt, mWt = { - parser: EYt, - db: cWt, - renderer: dWt, - styles: gWt +`, "getStyles"), mWt = gWt, vWt = { + parser: _Yt, + db: uWt, + renderer: pWt, + styles: mWt }; -const vWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const yWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: mWt + diagram: vWt }, Symbol.toStringTag, { value: "Module" })); -var yWt = { +var bWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("info", t); X.debug(e); }, "parse") -}, bWt = { version: Y8 }, xWt = /* @__PURE__ */ x(() => bWt.version, "getVersion"), wWt = { - getVersion: xWt -}, OWt = /* @__PURE__ */ x((t, e, r) => { +}, xWt = { version: W8 }, wWt = /* @__PURE__ */ x(() => xWt.version, "getVersion"), OWt = { + getVersion: wWt +}, kWt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering info diagram ` + t); const n = H0(e); ms(n, 100, 400, !0), n.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${r}`); -}, "draw"), kWt = { draw: OWt }, SWt = { - parser: yWt, - db: wWt, - renderer: kWt +}, "draw"), SWt = { draw: kWt }, TWt = { + parser: bWt, + db: OWt, + renderer: SWt }; -const TWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const CWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: SWt + diagram: TWt }, Symbol.toStringTag, { value: "Module" })); -var ype = jr.pie, XI = { +var bpe = jr.pie, XI = { sections: /* @__PURE__ */ new Map(), showData: !1, - config: ype -}, Yk = XI.sections, ZI = XI.showData, CWt = structuredClone(ype), EWt = /* @__PURE__ */ x(() => structuredClone(CWt), "getConfig"), _Wt = /* @__PURE__ */ x(() => { - Yk = /* @__PURE__ */ new Map(), ZI = XI.showData, Xi(); -}, "clear"), AWt = /* @__PURE__ */ x(({ label: t, value: e }) => { - Yk.has(t) || (Yk.set(t, e), X.debug(`added new section: ${t}, with value: ${e}`)); -}, "addSection"), LWt = /* @__PURE__ */ x(() => Yk, "getSections"), RWt = /* @__PURE__ */ x((t) => { + config: bpe +}, Wk = XI.sections, ZI = XI.showData, EWt = structuredClone(bpe), _Wt = /* @__PURE__ */ x(() => structuredClone(EWt), "getConfig"), AWt = /* @__PURE__ */ x(() => { + Wk = /* @__PURE__ */ new Map(), ZI = XI.showData, Xi(); +}, "clear"), LWt = /* @__PURE__ */ x(({ label: t, value: e }) => { + Wk.has(t) || (Wk.set(t, e), X.debug(`added new section: ${t}, with value: ${e}`)); +}, "addSection"), RWt = /* @__PURE__ */ x(() => Wk, "getSections"), MWt = /* @__PURE__ */ x((t) => { ZI = t; -}, "setShowData"), MWt = /* @__PURE__ */ x(() => ZI, "getShowData"), bpe = { - getConfig: EWt, - clear: _Wt, +}, "setShowData"), DWt = /* @__PURE__ */ x(() => ZI, "getShowData"), xpe = { + getConfig: _Wt, + clear: AWt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: AWt, - getSections: LWt, - setShowData: RWt, - getShowData: MWt -}, DWt = /* @__PURE__ */ x((t, e) => { + addSection: LWt, + getSections: RWt, + setShowData: MWt, + getShowData: DWt +}, NWt = /* @__PURE__ */ x((t, e) => { Rx(t, e), e.setShowData(t.showData), t.sections.map(e.addSection); -}, "populateDb"), NWt = { +}, "populateDb"), IWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("pie", t); - X.debug(e), DWt(e, bpe); + X.debug(e), NWt(e, xpe); }, "parse") -}, IWt = /* @__PURE__ */ x((t) => ` +}, PWt = /* @__PURE__ */ x((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -84216,15 +84238,15 @@ var ype = jr.pie, XI = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), PWt = IWt, $Wt = /* @__PURE__ */ x((t) => { +`, "getStyles"), $Wt = PWt, BWt = /* @__PURE__ */ x((t) => { const e = [...t.entries()].map((n) => ({ label: n[0], value: n[1] })).sort((n, i) => i.value - n.value); - return VOt().value( + return UOt().value( (n) => n.value )(e); -}, "createPieArcs"), BWt = /* @__PURE__ */ x((t, e, r, n) => { +}, "createPieArcs"), FWt = /* @__PURE__ */ x((t, e, r, n) => { X.debug(`rendering pie chart ` + t); const i = n.db, s = be(), a = ch(i.getConfig(), s.pie), o = 40, l = 18, u = 4, h = 450, f = h, d = H0(e), p = d.append("g"); @@ -84234,7 +84256,7 @@ var ype = jr.pie, XI = { m != null || (m = 2); const v = a.textPosition, y = Math.min(f, h) / 2 - o, b = Kg().innerRadius(0).outerRadius(y), w = Kg().innerRadius(y * v).outerRadius(y * v); p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", y + m / 2).attr("class", "pieOuterCircle"); - const O = i.getSections(), S = $Wt(O), C = [ + const O = i.getSections(), S = BWt(O), C = [ g.pie1, g.pie2, g.pie3, @@ -84247,12 +84269,12 @@ var ype = jr.pie, XI = { g.pie10, g.pie11, g.pie12 - ], T = CT(C); + ], T = ET(C); p.selectAll("mySlices").data(S).enter().append("path").attr("d", b).attr("fill", (R) => T(R.data.label)).attr("class", "pieCircle"); - let L = 0; + let A = 0; O.forEach((R) => { - L += R; - }), p.selectAll("mySlices").data(S).enter().append("text").text((R) => (R.data.value / L * 100).toFixed(0) + "%").attr("transform", (R) => "translate(" + w.centroid(R) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(i.getDiagramTitle()).attr("x", 0).attr("y", -(h - 50) / 2).attr("class", "pieTitleText"); + A += R; + }), p.selectAll("mySlices").data(S).enter().append("text").text((R) => (R.data.value / A * 100).toFixed(0) + "%").attr("transform", (R) => "translate(" + w.centroid(R) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(i.getDiagramTitle()).attr("x", 0).attr("y", -(h - 50) / 2).attr("class", "pieTitleText"); const E = p.selectAll(".legend").data(T.domain()).enter().append("g").attr("class", "legend").attr("transform", (R, $) => { const k = l + u, N = k * T.domain().length / 2, M = 12 * l, I = $ * k - N; return "translate(" + M + "," + I + ")"; @@ -84261,29 +84283,29 @@ var ype = jr.pie, XI = { const { label: $, value: k } = R.data; return i.getShowData() ? `${$} [${k}]` : $; }); - const A = Math.max( + const L = Math.max( ...E.selectAll("text").nodes().map((R) => { var $; return ($ = R == null ? void 0 : R.getBoundingClientRect().width) != null ? $ : 0; }) - ), _ = f + o + l + u + A; + ), _ = f + o + l + u + L; d.attr("viewBox", `0 0 ${_} ${h}`), ms(d, h, _, a.useMaxWidth); -}, "draw"), FWt = { draw: BWt }, zWt = { - parser: NWt, - db: bpe, - renderer: FWt, - styles: PWt +}, "draw"), zWt = { draw: FWt }, VWt = { + parser: IWt, + db: xpe, + renderer: zWt, + styles: $Wt }; -const VWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const UWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: zWt + diagram: VWt }, Symbol.toStringTag, { value: "Module" })); -var L9 = function() { +var R9 = function() { var t = /* @__PURE__ */ x(function(ge, xe, ke, Ce) { for (ke = ke || {}, Ce = ge.length; Ce--; ke[ge[Ce]] = xe) ; return ke; - }, "o"), e = [1, 3], r = [1, 4], n = [1, 5], i = [1, 6], s = [1, 7], a = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], o = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], l = [55, 56, 57], u = [2, 36], h = [1, 37], f = [1, 36], d = [1, 38], p = [1, 35], g = [1, 43], m = [1, 41], v = [1, 14], y = [1, 23], b = [1, 18], w = [1, 19], O = [1, 20], S = [1, 21], C = [1, 22], T = [1, 24], L = [1, 25], E = [1, 26], A = [1, 27], _ = [1, 28], R = [1, 29], $ = [1, 32], k = [1, 33], N = [1, 34], M = [1, 39], I = [1, 40], D = [1, 42], P = [1, 44], F = [1, 62], B = [1, 61], V = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Q = [1, 65], W = [1, 66], ee = [1, 67], Y = [1, 68], ne = [1, 69], ie = [1, 70], U = [1, 71], Z = [1, 72], G = [1, 73], j = [1, 74], ae = [1, 75], se = [1, 76], K = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], _e = [1, 90], ce = [1, 91], Ee = [1, 92], Ae = [1, 99], Ue = [1, 93], Ge = [1, 96], Ye = [1, 94], De = [1, 95], he = [1, 97], H = [1, 98], oe = [1, 102], ve = [10, 55, 56, 57], re = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], ue = { + }, "o"), e = [1, 3], r = [1, 4], n = [1, 5], i = [1, 6], s = [1, 7], a = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], o = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], l = [55, 56, 57], u = [2, 36], h = [1, 37], f = [1, 36], d = [1, 38], p = [1, 35], g = [1, 43], m = [1, 41], v = [1, 14], y = [1, 23], b = [1, 18], w = [1, 19], O = [1, 20], S = [1, 21], C = [1, 22], T = [1, 24], A = [1, 25], E = [1, 26], L = [1, 27], _ = [1, 28], R = [1, 29], $ = [1, 32], k = [1, 33], N = [1, 34], M = [1, 39], I = [1, 40], D = [1, 42], P = [1, 44], F = [1, 62], B = [1, 61], V = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Q = [1, 65], W = [1, 66], ee = [1, 67], Y = [1, 68], ne = [1, 69], ie = [1, 70], U = [1, 71], Z = [1, 72], G = [1, 73], j = [1, 74], ae = [1, 75], se = [1, 76], K = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], _e = [1, 90], ce = [1, 91], Ee = [1, 92], Ae = [1, 99], Ue = [1, 93], Ge = [1, 96], Ye = [1, 94], De = [1, 95], he = [1, 97], H = [1, 98], oe = [1, 102], ve = [10, 55, 56, 57], re = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], ue = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -84389,7 +84411,7 @@ var L9 = function() { break; } }, "anonymous"), - table: [{ 18: e, 26: 1, 27: 2, 28: r, 55: n, 56: i, 57: s }, { 1: [3] }, { 18: e, 26: 8, 27: 2, 28: r, 55: n, 56: i, 57: s }, { 18: e, 26: 9, 27: 2, 28: r, 55: n, 56: i, 57: s }, t(a, [2, 33], { 29: 10 }), t(o, [2, 61]), t(o, [2, 62]), t(o, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(l, u, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 18: v, 25: y, 35: b, 37: w, 39: O, 41: S, 42: C, 48: T, 50: L, 51: E, 52: A, 53: _, 54: R, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), t(a, [2, 34]), { 27: 45, 55: n, 56: i, 57: s }, t(l, [2, 37]), t(l, u, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 18: v, 25: y, 35: b, 37: w, 39: O, 41: S, 42: C, 48: T, 50: L, 51: E, 52: A, 53: _, 54: R, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 39]), t(l, [2, 40]), t(l, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(l, [2, 45]), t(l, [2, 46]), { 18: [1, 50] }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 51, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 52, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 53, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 54, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 55, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 56, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: N, 64: M, 65: I, 66: D, 67: P }, t(V, [2, 64]), t(V, [2, 66]), t(V, [2, 67]), t(V, [2, 70]), t(V, [2, 71]), t(V, [2, 72]), t(V, [2, 73]), t(V, [2, 74]), t(V, [2, 75]), t(V, [2, 76]), t(V, [2, 77]), t(V, [2, 78]), t(V, [2, 79]), t(V, [2, 80]), t(a, [2, 35]), t(l, [2, 38]), t(l, [2, 42]), t(l, [2, 43]), t(l, [2, 44]), { 3: 64, 4: Q, 5: W, 6: ee, 7: Y, 8: ne, 9: ie, 10: U, 11: Z, 12: G, 13: j, 14: ae, 15: se, 21: 63 }, t(l, [2, 53], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 49: [1, 77], 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 56], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 49: [1, 78], 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 57], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 58], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 59], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 60], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), { 45: [1, 79] }, { 44: [1, 80] }, t(V, [2, 65]), t(V, [2, 81]), t(V, [2, 82]), t(V, [2, 83]), { 3: 82, 4: Q, 5: W, 6: ee, 7: Y, 8: ne, 9: ie, 10: U, 11: Z, 12: G, 13: j, 14: ae, 15: se, 18: [1, 81] }, t(K, [2, 23]), t(K, [2, 1]), t(K, [2, 2]), t(K, [2, 3]), t(K, [2, 4]), t(K, [2, 5]), t(K, [2, 6]), t(K, [2, 7]), t(K, [2, 8]), t(K, [2, 9]), t(K, [2, 10]), t(K, [2, 11]), t(K, [2, 12]), t(l, [2, 52], { 58: 31, 43: 83, 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 55], { 58: 31, 43: 84, 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 16: 89, 17: Ye, 18: De, 19: he, 20: H, 22: 88, 23: 87 }, t(K, [2, 24]), t(l, [2, 51], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 54], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 47], { 22: 88, 16: 89, 23: 100, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H }), { 46: [1, 101] }, t(l, [2, 29], { 10: oe }), t(ve, [2, 27], { 16: 103, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H }), t(re, [2, 25]), t(re, [2, 13]), t(re, [2, 14]), t(re, [2, 15]), t(re, [2, 16]), t(re, [2, 17]), t(re, [2, 18]), t(re, [2, 19]), t(re, [2, 20]), t(re, [2, 21]), t(re, [2, 22]), t(l, [2, 49], { 10: oe }), t(l, [2, 48], { 22: 88, 16: 89, 23: 104, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H }), { 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 16: 89, 17: Ye, 18: De, 19: he, 20: H, 22: 105 }, t(re, [2, 26]), t(l, [2, 50], { 10: oe }), t(ve, [2, 28], { 16: 103, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H })], + table: [{ 18: e, 26: 1, 27: 2, 28: r, 55: n, 56: i, 57: s }, { 1: [3] }, { 18: e, 26: 8, 27: 2, 28: r, 55: n, 56: i, 57: s }, { 18: e, 26: 9, 27: 2, 28: r, 55: n, 56: i, 57: s }, t(a, [2, 33], { 29: 10 }), t(o, [2, 61]), t(o, [2, 62]), t(o, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(l, u, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 18: v, 25: y, 35: b, 37: w, 39: O, 41: S, 42: C, 48: T, 50: A, 51: E, 52: L, 53: _, 54: R, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), t(a, [2, 34]), { 27: 45, 55: n, 56: i, 57: s }, t(l, [2, 37]), t(l, u, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 18: v, 25: y, 35: b, 37: w, 39: O, 41: S, 42: C, 48: T, 50: A, 51: E, 52: L, 53: _, 54: R, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 39]), t(l, [2, 40]), t(l, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(l, [2, 45]), t(l, [2, 46]), { 18: [1, 50] }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 51, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 52, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 53, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 54, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 55, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 43: 56, 58: 31, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }, { 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: N, 64: M, 65: I, 66: D, 67: P }, t(V, [2, 64]), t(V, [2, 66]), t(V, [2, 67]), t(V, [2, 70]), t(V, [2, 71]), t(V, [2, 72]), t(V, [2, 73]), t(V, [2, 74]), t(V, [2, 75]), t(V, [2, 76]), t(V, [2, 77]), t(V, [2, 78]), t(V, [2, 79]), t(V, [2, 80]), t(a, [2, 35]), t(l, [2, 38]), t(l, [2, 42]), t(l, [2, 43]), t(l, [2, 44]), { 3: 64, 4: Q, 5: W, 6: ee, 7: Y, 8: ne, 9: ie, 10: U, 11: Z, 12: G, 13: j, 14: ae, 15: se, 21: 63 }, t(l, [2, 53], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 49: [1, 77], 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 56], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 49: [1, 78], 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 57], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 58], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 59], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 60], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), { 45: [1, 79] }, { 44: [1, 80] }, t(V, [2, 65]), t(V, [2, 81]), t(V, [2, 82]), t(V, [2, 83]), { 3: 82, 4: Q, 5: W, 6: ee, 7: Y, 8: ne, 9: ie, 10: U, 11: Z, 12: G, 13: j, 14: ae, 15: se, 18: [1, 81] }, t(K, [2, 23]), t(K, [2, 1]), t(K, [2, 2]), t(K, [2, 3]), t(K, [2, 4]), t(K, [2, 5]), t(K, [2, 6]), t(K, [2, 7]), t(K, [2, 8]), t(K, [2, 9]), t(K, [2, 10]), t(K, [2, 11]), t(K, [2, 12]), t(l, [2, 52], { 58: 31, 43: 83, 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 55], { 58: 31, 43: 84, 4: h, 5: f, 10: d, 12: p, 13: g, 14: m, 60: $, 61: k, 63: N, 64: M, 65: I, 66: D, 67: P }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 16: 89, 17: Ye, 18: De, 19: he, 20: H, 22: 88, 23: 87 }, t(K, [2, 24]), t(l, [2, 51], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 54], { 59: 59, 58: 60, 4: h, 5: f, 8: F, 10: d, 12: p, 13: g, 14: m, 18: B, 63: N, 64: M, 65: I, 66: D, 67: P }), t(l, [2, 47], { 22: 88, 16: 89, 23: 100, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H }), { 46: [1, 101] }, t(l, [2, 29], { 10: oe }), t(ve, [2, 27], { 16: 103, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H }), t(re, [2, 25]), t(re, [2, 13]), t(re, [2, 14]), t(re, [2, 15]), t(re, [2, 16]), t(re, [2, 17]), t(re, [2, 18]), t(re, [2, 19]), t(re, [2, 20]), t(re, [2, 21]), t(re, [2, 22]), t(l, [2, 49], { 10: oe }), t(l, [2, 48], { 22: 88, 16: 89, 23: 104, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H }), { 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 16: 89, 17: Ye, 18: De, 19: he, 20: H, 22: 105 }, t(re, [2, 26]), t(l, [2, 50], { 10: oe }), t(ve, [2, 28], { 16: 103, 4: _e, 5: ce, 6: Ee, 8: Ae, 11: Ue, 13: Ge, 17: Ye, 18: De, 19: he, 20: H })], defaultActions: { 8: [2, 30], 9: [2, 31] }, parseError: /* @__PURE__ */ x(function(xe, ke) { if (ke.recoverable) @@ -84746,8 +84768,8 @@ Expecting ` + Br.join(", ") + ", got '" + (this.terminals_[Ze] || Ze) + "'" : Xr } return x(de, "Parser"), de.prototype = ue, ue.Parser = de, new de(); }(); -L9.parser = L9; -var UWt = L9, Ks = gD(), Eb, qWt = (Eb = class { +R9.parser = R9; +var qWt = R9, Ks = mD(), Eb, QWt = (Eb = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -85091,74 +85113,74 @@ var UWt = L9, Ks = gD(), Eb, qWt = (Eb = class { }, (() => { x(_b, "InvalidStyleError"); })(), _b); -function R9(t) { +function M9(t) { return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t); } -x(R9, "validateHexCode"); -function xpe(t) { +x(M9, "validateHexCode"); +function wpe(t) { return !/^\d+$/.test(t); } -x(xpe, "validateNumber"); -function wpe(t) { +x(wpe, "validateNumber"); +function Ope(t) { return !/^\d+px$/.test(t); } -x(wpe, "validateSizeInPixels"); -var QWt = be(); +x(Ope, "validateSizeInPixels"); +var YWt = be(); function ru(t) { - return ni(t.trim(), QWt); + return ni(t.trim(), YWt); } x(ru, "textSanitizer"); -var cs = new qWt(); -function Ope(t) { +var cs = new QWt(); +function kpe(t) { cs.setData({ quadrant1Text: ru(t.text) }); } -x(Ope, "setQuadrant1Text"); -function kpe(t) { +x(kpe, "setQuadrant1Text"); +function Spe(t) { cs.setData({ quadrant2Text: ru(t.text) }); } -x(kpe, "setQuadrant2Text"); -function Spe(t) { +x(Spe, "setQuadrant2Text"); +function Tpe(t) { cs.setData({ quadrant3Text: ru(t.text) }); } -x(Spe, "setQuadrant3Text"); -function Tpe(t) { +x(Tpe, "setQuadrant3Text"); +function Cpe(t) { cs.setData({ quadrant4Text: ru(t.text) }); } -x(Tpe, "setQuadrant4Text"); -function Cpe(t) { +x(Cpe, "setQuadrant4Text"); +function Epe(t) { cs.setData({ xAxisLeftText: ru(t.text) }); } -x(Cpe, "setXAxisLeftText"); -function Epe(t) { +x(Epe, "setXAxisLeftText"); +function _pe(t) { cs.setData({ xAxisRightText: ru(t.text) }); } -x(Epe, "setXAxisRightText"); -function _pe(t) { +x(_pe, "setXAxisRightText"); +function Ape(t) { cs.setData({ yAxisTopText: ru(t.text) }); } -x(_pe, "setYAxisTopText"); -function Ape(t) { +x(Ape, "setYAxisTopText"); +function Lpe(t) { cs.setData({ yAxisBottomText: ru(t.text) }); } -x(Ape, "setYAxisBottomText"); -function TC(t) { +x(Lpe, "setYAxisBottomText"); +function CC(t) { const e = {}; for (const r of t) { const [n, i] = r.trim().split(/\s*:\s*/); if (n === "radius") { - if (xpe(i)) + if (wpe(i)) throw new LO(n, i, "number"); e.radius = parseInt(i); } else if (n === "color") { - if (R9(i)) + if (M9(i)) throw new LO(n, i, "hex code"); e.color = i; } else if (n === "stroke-color") { - if (R9(i)) + if (M9(i)) throw new LO(n, i, "hex code"); e.strokeColor = i; } else if (n === "stroke-width") { - if (wpe(i)) + if (Ope(i)) throw new LO(n, i, "number of pixels (eg. 10px)"); e.strokeWidth = i; } else @@ -85166,9 +85188,9 @@ function TC(t) { } return e; } -x(TC, "parseStyles"); -function Lpe(t, e, r, n, i) { - const s = TC(i); +x(CC, "parseStyles"); +function Rpe(t, e, r, n, i) { + const s = CC(i); cs.addPoints([ { x: r, @@ -85179,20 +85201,20 @@ function Lpe(t, e, r, n, i) { } ]); } -x(Lpe, "addPoint"); -function Rpe(t, e) { - cs.addClass(t, TC(e)); +x(Rpe, "addPoint"); +function Mpe(t, e) { + cs.addClass(t, CC(e)); } -x(Rpe, "addClass"); -function Mpe(t) { +x(Mpe, "addClass"); +function Dpe(t) { cs.setConfig({ chartWidth: t }); } -x(Mpe, "setWidth"); -function Dpe(t) { +x(Dpe, "setWidth"); +function Npe(t) { cs.setConfig({ chartHeight: t }); } -x(Dpe, "setHeight"); -function Npe() { +x(Npe, "setHeight"); +function Ipe() { const t = be(), { themeVariables: e, quadrantChart: r } = t; return r && cs.setConfig(r), cs.setThemeConfig({ quadrant1Fill: e.quadrant1Fill, @@ -85212,33 +85234,33 @@ function Npe() { quadrantTitleFill: e.quadrantTitleFill }), cs.setData({ titleText: xs() }), cs.build(); } -x(Npe, "getQuadrantData"); -var YWt = /* @__PURE__ */ x(function() { +x(Ipe, "getQuadrantData"); +var WWt = /* @__PURE__ */ x(function() { cs.clear(), Xi(); -}, "clear"), WWt = { - setWidth: Mpe, - setHeight: Dpe, - setQuadrant1Text: Ope, - setQuadrant2Text: kpe, - setQuadrant3Text: Spe, - setQuadrant4Text: Tpe, - setXAxisLeftText: Cpe, - setXAxisRightText: Epe, - setYAxisTopText: _pe, - setYAxisBottomText: Ape, - parseStyles: TC, - addPoint: Lpe, - addClass: Rpe, - getQuadrantData: Npe, - clear: YWt, +}, "clear"), GWt = { + setWidth: Dpe, + setHeight: Npe, + setQuadrant1Text: kpe, + setQuadrant2Text: Spe, + setQuadrant3Text: Tpe, + setQuadrant4Text: Cpe, + setXAxisLeftText: Epe, + setXAxisRightText: _pe, + setYAxisTopText: Ape, + setYAxisBottomText: Lpe, + parseStyles: CC, + addPoint: Rpe, + addClass: Mpe, + getQuadrantData: Ipe, + clear: WWt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, GWt = /* @__PURE__ */ x((t, e, r, n) => { - var L, E, A, _, R, $; +}, HWt = /* @__PURE__ */ x((t, e, r, n) => { + var A, E, L, _, R, $; function i(k) { return k === "top" ? "hanging" : "middle"; } @@ -85257,7 +85279,7 @@ var YWt = /* @__PURE__ */ x(function() { const l = o.securityLevel; let u; l === "sandbox" && (u = et("#i" + e)); - const f = et(l === "sandbox" ? u.nodes()[0].contentDocument.body : "body").select(`[id="${e}"]`), d = f.append("g").attr("class", "main"), p = (E = (L = o.quadrantChart) == null ? void 0 : L.chartWidth) != null ? E : 500, g = (_ = (A = o.quadrantChart) == null ? void 0 : A.chartHeight) != null ? _ : 500; + const f = et(l === "sandbox" ? u.nodes()[0].contentDocument.body : "body").select(`[id="${e}"]`), d = f.append("g").attr("class", "main"), p = (E = (A = o.quadrantChart) == null ? void 0 : A.chartWidth) != null ? E : 500, g = (_ = (L = o.quadrantChart) == null ? void 0 : L.chartHeight) != null ? _ : 500; ms(f, g, p, ($ = (R = o.quadrantChart) == null ? void 0 : R.useMaxWidth) != null ? $ : !0), f.attr("viewBox", "0 0 " + p + " " + g), n.db.setHeight(g), n.db.setWidth(p); const m = n.db.getQuadrantData(), v = d.append("g").attr("class", "quadrants"), y = d.append("g").attr("class", "border"), b = d.append("g").attr("class", "data-points"), w = d.append("g").attr("class", "labels"), O = d.append("g").attr("class", "title"); m.title && O.append("text").attr("x", 0).attr("y", 0).attr("fill", m.title.fill).attr("font-size", m.title.fontSize).attr("dominant-baseline", i(m.title.horizontalPos)).attr("text-anchor", s(m.title.verticalPos)).attr("transform", a(m.title)).text(m.title.text), m.borderLines && y.selectAll("line").data(m.borderLines).enter().append("line").attr("x1", (k) => k.x1).attr("y1", (k) => k.y1).attr("x2", (k) => k.x2).attr("y2", (k) => k.y2).style("stroke", (k) => k.strokeFill).style("stroke-width", (k) => k.strokeWidth); @@ -85271,24 +85293,24 @@ var YWt = /* @__PURE__ */ x(function() { "dominant-baseline", (k) => i(k.text.horizontalPos) ).attr("text-anchor", (k) => s(k.text.verticalPos)).attr("transform", (k) => a(k.text)); -}, "draw"), HWt = { - draw: GWt -}, XWt = { - parser: UWt, - db: WWt, - renderer: HWt, +}, "draw"), XWt = { + draw: HWt +}, ZWt = { + parser: qWt, + db: GWt, + renderer: XWt, styles: /* @__PURE__ */ x(() => "", "styles") }; -const ZWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const jWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: XWt + diagram: ZWt }, Symbol.toStringTag, { value: "Module" })); -var M9 = function() { +var D9 = function() { var t = /* @__PURE__ */ x(function(N, M, I, D) { for (I = I || {}, D = N.length; D--; I[N[D]] = M) ; return I; - }, "o"), e = [1, 10, 12, 14, 16, 18, 19, 21, 23], r = [2, 6], n = [1, 3], i = [1, 5], s = [1, 6], a = [1, 7], o = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], l = [1, 25], u = [1, 26], h = [1, 28], f = [1, 29], d = [1, 30], p = [1, 31], g = [1, 32], m = [1, 33], v = [1, 34], y = [1, 35], b = [1, 36], w = [1, 37], O = [1, 43], S = [1, 42], C = [1, 47], T = [1, 50], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], E = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], A = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], _ = [1, 64], R = { + }, "o"), e = [1, 10, 12, 14, 16, 18, 19, 21, 23], r = [2, 6], n = [1, 3], i = [1, 5], s = [1, 6], a = [1, 7], o = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], l = [1, 25], u = [1, 26], h = [1, 28], f = [1, 29], d = [1, 30], p = [1, 31], g = [1, 32], m = [1, 33], v = [1, 34], y = [1, 35], b = [1, 36], w = [1, 37], O = [1, 43], S = [1, 42], C = [1, 47], T = [1, 50], A = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], E = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], _ = [1, 64], R = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -85385,7 +85407,7 @@ var M9 = function() { break; } }, "anonymous"), - table: [t(e, r, { 3: 1, 4: 2, 7: 4, 5: n, 34: i, 35: s, 36: a }), { 1: [3] }, t(e, r, { 4: 2, 7: 4, 3: 8, 5: n, 34: i, 35: s, 36: a }), t(e, r, { 4: 2, 7: 4, 6: 9, 3: 10, 5: n, 8: [1, 11], 34: i, 35: s, 36: a }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(o, [2, 34]), t(o, [2, 35]), t(o, [2, 36]), { 1: [2, 1] }, t(e, r, { 4: 2, 7: 4, 3: 21, 5: n, 34: i, 35: s, 36: a }), { 1: [2, 3] }, t(o, [2, 5]), t(e, [2, 7], { 4: 22, 34: i, 35: s, 36: a }), { 11: 23, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 39, 13: 38, 24: O, 27: S, 29: 40, 30: 41, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 45, 15: 44, 27: C, 33: 46, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 49, 17: 48, 24: T, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 52, 17: 51, 24: T, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 20: [1, 53] }, { 22: [1, 54] }, t(L, [2, 18]), { 1: [2, 2] }, t(L, [2, 8]), t(L, [2, 9]), t(E, [2, 37], { 40: 55, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }), t(E, [2, 38]), t(E, [2, 39]), t(A, [2, 40]), t(A, [2, 42]), t(A, [2, 43]), t(A, [2, 44]), t(A, [2, 45]), t(A, [2, 46]), t(A, [2, 47]), t(A, [2, 48]), t(A, [2, 49]), t(A, [2, 50]), t(A, [2, 51]), t(L, [2, 10]), t(L, [2, 22], { 30: 41, 29: 56, 24: O, 27: S }), t(L, [2, 24]), t(L, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, t(L, [2, 11]), t(L, [2, 30], { 33: 60, 27: C }), t(L, [2, 32]), { 31: [1, 61] }, t(L, [2, 12]), { 17: 62, 24: T }, { 25: 63, 27: _ }, t(L, [2, 14]), { 17: 65, 24: T }, t(L, [2, 16]), t(L, [2, 17]), t(A, [2, 41]), t(L, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(L, [2, 31]), { 27: [1, 69] }, t(L, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(L, [2, 15]), t(L, [2, 26]), t(L, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, t(L, [2, 33]), t(L, [2, 19]), { 25: 73, 27: _ }, { 26: [2, 28] }, { 26: [2, 20] }], + table: [t(e, r, { 3: 1, 4: 2, 7: 4, 5: n, 34: i, 35: s, 36: a }), { 1: [3] }, t(e, r, { 4: 2, 7: 4, 3: 8, 5: n, 34: i, 35: s, 36: a }), t(e, r, { 4: 2, 7: 4, 6: 9, 3: 10, 5: n, 8: [1, 11], 34: i, 35: s, 36: a }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(o, [2, 34]), t(o, [2, 35]), t(o, [2, 36]), { 1: [2, 1] }, t(e, r, { 4: 2, 7: 4, 3: 21, 5: n, 34: i, 35: s, 36: a }), { 1: [2, 3] }, t(o, [2, 5]), t(e, [2, 7], { 4: 22, 34: i, 35: s, 36: a }), { 11: 23, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 39, 13: 38, 24: O, 27: S, 29: 40, 30: 41, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 45, 15: 44, 27: C, 33: 46, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 49, 17: 48, 24: T, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 11: 52, 17: 51, 24: T, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, { 20: [1, 53] }, { 22: [1, 54] }, t(A, [2, 18]), { 1: [2, 2] }, t(A, [2, 8]), t(A, [2, 9]), t(E, [2, 37], { 40: 55, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }), t(E, [2, 38]), t(E, [2, 39]), t(L, [2, 40]), t(L, [2, 42]), t(L, [2, 43]), t(L, [2, 44]), t(L, [2, 45]), t(L, [2, 46]), t(L, [2, 47]), t(L, [2, 48]), t(L, [2, 49]), t(L, [2, 50]), t(L, [2, 51]), t(A, [2, 10]), t(A, [2, 22], { 30: 41, 29: 56, 24: O, 27: S }), t(A, [2, 24]), t(A, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, t(A, [2, 11]), t(A, [2, 30], { 33: 60, 27: C }), t(A, [2, 32]), { 31: [1, 61] }, t(A, [2, 12]), { 17: 62, 24: T }, { 25: 63, 27: _ }, t(A, [2, 14]), { 17: 65, 24: T }, t(A, [2, 16]), t(A, [2, 17]), t(L, [2, 41]), t(A, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(A, [2, 31]), { 27: [1, 69] }, t(A, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(A, [2, 15]), t(A, [2, 26]), t(A, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: l, 39: u, 40: 27, 41: h, 42: f, 43: d, 44: p, 45: g, 46: m, 47: v, 48: y, 49: b, 50: w }, t(A, [2, 33]), t(A, [2, 19]), { 25: 73, 27: _ }, { 26: [2, 28] }, { 26: [2, 20] }], defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] }, parseError: /* @__PURE__ */ x(function(M, I) { if (I.recoverable) @@ -85726,12 +85748,12 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[_e] || _e) + "'" : H } return x(k, "Parser"), k.prototype = R, R.Parser = k, new k(); }(); -M9.parser = M9; -var jWt = M9; -function D9(t) { +D9.parser = D9; +var KWt = D9; +function N9(t) { return t.type === "bar"; } -x(D9, "isBarPlot"); +x(N9, "isBarPlot"); function jI(t) { return t.type === "band"; } @@ -85740,7 +85762,7 @@ function hg(t) { return t.type === "linear"; } x(hg, "isLinearAxisData"); -var Ab, Ipe = (Ab = class { +var Ab, Ppe = (Ab = class { constructor(e) { this.parentGroup = e; } @@ -85755,14 +85777,14 @@ var Ab, Ipe = (Ab = class { height: 0 }, i = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", r); for (const s of e) { - const a = Wae(i, 1, s), o = a ? a.width : s.length * r, l = a ? a.height : r; + const a = Gae(i, 1, s), o = a ? a.width : s.length * r, l = a ? a.height : r; n.width = Math.max(n.width, o), n.height = Math.max(n.height, l); } return i.remove(), n; } }, (() => { x(Ab, "TextDimensionCalculatorWithFont"); -})(), Ab), XG = 0.7, ZG = 0.2, Lb, Ppe = (Lb = class { +})(), Ab), ZG = 0.7, jG = 0.2, Lb, $pe = (Lb = class { constructor(e, r, n, i) { this.axisConfig = e, this.title = r, this.textDimensionCalculator = n, this.axisThemeConfig = i, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left"; } @@ -85789,12 +85811,12 @@ var Ab, Ipe = (Ab = class { ); } recalculateOuterPaddingToDrawBar() { - XG * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(XG * this.getTickDistance() / 2)), this.recalculateScale(); + ZG * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(ZG * this.getTickDistance() / 2)), this.recalculateScale(); } calculateSpaceIfDrawnHorizontally(e) { let r = e.height; if (this.axisConfig.showAxisLine && r > this.axisConfig.axisLineWidth && (r -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) { - const n = this.getLabelDimension(), i = ZG * e.width; + const n = this.getLabelDimension(), i = jG * e.width; this.outerPadding = Math.min(n.width / 2, i); const s = n.height + this.axisConfig.labelPadding * 2; this.labelTextHeight = n.height, s <= r && (r -= s, this.showLabel = !0); @@ -85811,7 +85833,7 @@ var Ab, Ipe = (Ab = class { calculateSpaceIfDrawnVertical(e) { let r = e.width; if (this.axisConfig.showAxisLine && r > this.axisConfig.axisLineWidth && (r -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) { - const n = this.getLabelDimension(), i = ZG * e.height; + const n = this.getLabelDimension(), i = jG * e.height; this.outerPadding = Math.min(n.height / 2, i); const s = n.width + this.axisConfig.labelPadding * 2; s <= r && (r -= s, this.showLabel = !0); @@ -86017,15 +86039,15 @@ var Ab, Ipe = (Ab = class { } }, (() => { x(Lb, "BaseAxis"); -})(), Lb), Rb, KWt = (Rb = class extends Ppe { +})(), Lb), Rb, JWt = (Rb = class extends $pe { constructor(e, r, n, i, s) { - super(e, i, s, r), this.categories = n, this.scale = N8().domain(this.categories).range(this.getRange()); + super(e, i, s, r), this.categories = n, this.scale = I8().domain(this.categories).range(this.getRange()); } setRange(e) { super.setRange(e); } recalculateScale() { - this.scale = N8().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), X.trace("BandAxis axis final categories, range: ", this.categories, this.getRange()); + this.scale = I8().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), X.trace("BandAxis axis final categories, range: ", this.categories, this.getRange()); } getTickValues() { return this.categories; @@ -86036,7 +86058,7 @@ var Ab, Ipe = (Ab = class { } }, (() => { x(Rb, "BandAxis"); -})(), Rb), Mb, JWt = (Mb = class extends Ppe { +})(), Rb), Mb, eGt = (Mb = class extends $pe { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = Xg().domain(this.domain).range(this.getRange()); } @@ -86053,15 +86075,15 @@ var Ab, Ipe = (Ab = class { }, (() => { x(Mb, "LinearAxis"); })(), Mb); -function N9(t, e, r, n) { - const i = new Ipe(n); - return jI(t) ? new KWt( +function I9(t, e, r, n) { + const i = new Ppe(n); + return jI(t) ? new JWt( e, r, t.categories, t.title, i - ) : new JWt( + ) : new eGt( e, r, [t.min, t.max], @@ -86069,8 +86091,8 @@ function N9(t, e, r, n) { i ); } -x(N9, "getAxis"); -var Db, eGt = (Db = class { +x(I9, "getAxis"); +var Db, tGt = (Db = class { constructor(e, r, n, i) { this.textDimensionCalculator = e, this.chartConfig = r, this.chartData = n, this.chartThemeConfig = i, this.boundingRect = { x: 0, @@ -86114,12 +86136,12 @@ var Db, eGt = (Db = class { }, (() => { x(Db, "ChartTitle"); })(), Db); -function $pe(t, e, r, n) { - const i = new Ipe(n); - return new eGt(i, t, e, r); +function Bpe(t, e, r, n) { + const i = new Ppe(n); + return new tGt(i, t, e, r); } -x($pe, "getChartTitleComponent"); -var Nb, tGt = (Nb = class { +x(Bpe, "getChartTitleComponent"); +var Nb, rGt = (Nb = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; } @@ -86145,7 +86167,7 @@ var Nb, tGt = (Nb = class { } }, (() => { x(Nb, "LinePlot"); -})(), Nb), Ib, rGt = (Ib = class { +})(), Nb), Ib, nGt = (Ib = class { constructor(e, r, n, i, s, a) { this.barData = e, this.boundingRect = r, this.xAxis = n, this.yAxis = i, this.orientation = s, this.plotIndex = a; } @@ -86186,7 +86208,7 @@ var Nb, tGt = (Nb = class { } }, (() => { x(Ib, "BarPlot"); -})(), Ib), Pb, nGt = (Pb = class { +})(), Ib), Pb, iGt = (Pb = class { constructor(e, r, n) { this.chartConfig = e, this.chartData = r, this.chartThemeConfig = n, this.boundingRect = { x: 0, @@ -86215,7 +86237,7 @@ var Nb, tGt = (Nb = class { switch (n.type) { case "line": { - const i = new tGt( + const i = new rGt( n, this.xAxis, this.yAxis, @@ -86227,7 +86249,7 @@ var Nb, tGt = (Nb = class { break; case "bar": { - const i = new rGt( + const i = new nGt( n, this.boundingRect, this.xAxis, @@ -86244,16 +86266,16 @@ var Nb, tGt = (Nb = class { }, (() => { x(Pb, "BasePlot"); })(), Pb); -function Bpe(t, e, r) { - return new nGt(t, e, r); +function Fpe(t, e, r) { + return new iGt(t, e, r); } -x(Bpe, "getPlotComponent"); -var $b, iGt = ($b = class { +x(Fpe, "getPlotComponent"); +var $b, sGt = ($b = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { - title: $pe(e, r, n, i), - plot: Bpe(e, r, n), - xAxis: N9( + title: Bpe(e, r, n, i), + plot: Fpe(e, r, n), + xAxis: I9( r.xAxis, e.xAxis, { @@ -86264,7 +86286,7 @@ var $b, iGt = ($b = class { }, i ), - yAxis: N9( + yAxis: I9( r.yAxis, e.yAxis, { @@ -86296,7 +86318,7 @@ var $b, iGt = ($b = class { }), n = o.width, e -= o.width, e > 0 && (s += e, e = 0), r > 0 && (a += r, r = 0), this.componentStore.plot.calculateSpace({ width: s, height: a - }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: i }), this.componentStore.xAxis.setRange([n, n + s]), this.componentStore.xAxis.setBoundingBoxXY({ x: n, y: i + a }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: i }), this.chartData.plots.some((l) => D9(l)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); + }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: i }), this.componentStore.xAxis.setRange([n, n + s]), this.componentStore.xAxis.setBoundingBoxXY({ x: n, y: i + a }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: i }), this.chartData.plots.some((l) => N9(l)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); } calculateHorizontalSpace() { let e = this.chartConfig.width, r = this.chartConfig.height, n = 0, i = 0, s = 0, a = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), o = Math.floor( @@ -86317,7 +86339,7 @@ var $b, iGt = ($b = class { }), r -= l.height, s = n + l.height, e > 0 && (a += e, e = 0), r > 0 && (o += r, r = 0), this.componentStore.plot.calculateSpace({ width: a, height: o - }), this.componentStore.plot.setBoundingBoxXY({ x: i, y: s }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: i, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((u) => D9(u)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); + }), this.componentStore.plot.setBoundingBoxXY({ x: i, y: s }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: i, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((u) => N9(u)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); } calculateSpace() { this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace(); @@ -86332,15 +86354,15 @@ var $b, iGt = ($b = class { } }, (() => { x($b, "Orchestrator"); -})(), $b), Bb, sGt = (Bb = class { +})(), $b), Bb, aGt = (Bb = class { static build(e, r, n, i) { - return new iGt(e, r, n, i).getDrawableElement(); + return new sGt(e, r, n, i).getDrawableElement(); } }, (() => { x(Bb, "XYChartBuilder"); -})(), Bb), N2 = 0, Fpe, I2 = eP(), P2 = JI(), Gr = tP(), I9 = P2.plotColorPalette.split(",").map((t) => t.trim()), CC = !1, KI = !1; +})(), Bb), N2 = 0, zpe, I2 = eP(), P2 = JI(), Gr = tP(), P9 = P2.plotColorPalette.split(",").map((t) => t.trim()), EC = !1, KI = !1; function JI() { - const t = gD(), e = pi(); + const t = mD(), e = pi(); return ch(t.xyChart, e.themeVariables.xyChart); } x(JI, "getChartDefaultThemeConfig"); @@ -86370,44 +86392,44 @@ function tP() { }; } x(tP, "getChartDefaultData"); -function EC(t) { +function _C(t) { const e = pi(); return ni(t.trim(), e); } -x(EC, "textSanitizer"); -function zpe(t) { - Fpe = t; -} -x(zpe, "setTmpSVGG"); +x(_C, "textSanitizer"); function Vpe(t) { - t === "horizontal" ? I2.chartOrientation = "horizontal" : I2.chartOrientation = "vertical"; + zpe = t; } -x(Vpe, "setOrientation"); +x(Vpe, "setTmpSVGG"); function Upe(t) { - Gr.xAxis.title = EC(t.text); + t === "horizontal" ? I2.chartOrientation = "horizontal" : I2.chartOrientation = "vertical"; } -x(Upe, "setXAxisTitle"); +x(Upe, "setOrientation"); +function qpe(t) { + Gr.xAxis.title = _C(t.text); +} +x(qpe, "setXAxisTitle"); function rP(t, e) { - Gr.xAxis = { type: "linear", title: Gr.xAxis.title, min: t, max: e }, CC = !0; + Gr.xAxis = { type: "linear", title: Gr.xAxis.title, min: t, max: e }, EC = !0; } x(rP, "setXAxisRangeData"); -function qpe(t) { +function Qpe(t) { Gr.xAxis = { type: "band", title: Gr.xAxis.title, - categories: t.map((e) => EC(e.text)) - }, CC = !0; + categories: t.map((e) => _C(e.text)) + }, EC = !0; } -x(qpe, "setXAxisBand"); -function Qpe(t) { - Gr.yAxis.title = EC(t.text); +x(Qpe, "setXAxisBand"); +function Ype(t) { + Gr.yAxis.title = _C(t.text); } -x(Qpe, "setYAxisTitle"); -function Ype(t, e) { +x(Ype, "setYAxisTitle"); +function Wpe(t, e) { Gr.yAxis = { type: "linear", title: Gr.yAxis.title, min: t, max: e }, KI = !0; } -x(Ype, "setYAxisRangeData"); -function Wpe(t) { +x(Wpe, "setYAxisRangeData"); +function Gpe(t) { const e = Math.min(...t), r = Math.max(...t), n = hg(Gr.yAxis) ? Gr.yAxis.min : 1 / 0, i = hg(Gr.yAxis) ? Gr.yAxis.max : -1 / 0; Gr.yAxis = { type: "linear", @@ -86416,16 +86438,16 @@ function Wpe(t) { max: Math.max(i, r) }; } -x(Wpe, "setYAxisRangeFromPlotData"); +x(Gpe, "setYAxisRangeFromPlotData"); function nP(t) { let e = []; if (t.length === 0) return e; - if (!CC) { + if (!EC) { const r = hg(Gr.xAxis) ? Gr.xAxis.min : 1 / 0, n = hg(Gr.xAxis) ? Gr.xAxis.max : -1 / 0; rP(Math.min(r, 1), Math.max(n, t.length)); } - if (KI || Wpe(t), jI(Gr.xAxis) && (e = Gr.xAxis.categories.map((r, n) => [r, t[n]])), hg(Gr.xAxis)) { + if (KI || Gpe(t), jI(Gr.xAxis) && (e = Gr.xAxis.categories.map((r, n) => [r, t[n]])), hg(Gr.xAxis)) { const r = Gr.xAxis.min, n = Gr.xAxis.max, i = (n - r) / (t.length - 1), s = []; for (let a = r; a <= n; a += i) s.push(`${a}`); @@ -86435,10 +86457,10 @@ function nP(t) { } x(nP, "transformDataWithoutCategory"); function iP(t) { - return I9[t === 0 ? 0 : t % I9.length]; + return P9[t === 0 ? 0 : t % P9.length]; } x(iP, "getPlotColorFromPalette"); -function Gpe(t, e) { +function Hpe(t, e) { const r = nP(e); Gr.plots.push({ type: "line", @@ -86447,8 +86469,8 @@ function Gpe(t, e) { data: r }), N2++; } -x(Gpe, "setLineData"); -function Hpe(t, e) { +x(Hpe, "setLineData"); +function Xpe(t, e) { const r = nP(e); Gr.plots.push({ type: "bar", @@ -86456,44 +86478,44 @@ function Hpe(t, e) { data: r }), N2++; } -x(Hpe, "setBarData"); -function Xpe() { +x(Xpe, "setBarData"); +function Zpe() { if (Gr.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return Gr.title = xs(), sGt.build(I2, Gr, P2, Fpe); + return Gr.title = xs(), aGt.build(I2, Gr, P2, zpe); } -x(Xpe, "getDrawableElem"); -function Zpe() { +x(Zpe, "getDrawableElem"); +function jpe() { return P2; } -x(Zpe, "getChartThemeConfig"); -function jpe() { +x(jpe, "getChartThemeConfig"); +function Kpe() { return I2; } -x(jpe, "getChartConfig"); -var aGt = /* @__PURE__ */ x(function() { - Xi(), N2 = 0, I2 = eP(), Gr = tP(), P2 = JI(), I9 = P2.plotColorPalette.split(",").map((t) => t.trim()), CC = !1, KI = !1; -}, "clear"), oGt = { - getDrawableElem: Xpe, - clear: aGt, +x(Kpe, "getChartConfig"); +var oGt = /* @__PURE__ */ x(function() { + Xi(), N2 = 0, I2 = eP(), Gr = tP(), P2 = JI(), P9 = P2.plotColorPalette.split(",").map((t) => t.trim()), EC = !1, KI = !1; +}, "clear"), lGt = { + getDrawableElem: Zpe, + clear: oGt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys, - setOrientation: Vpe, - setXAxisTitle: Upe, + setOrientation: Upe, + setXAxisTitle: qpe, setXAxisRangeData: rP, - setXAxisBand: qpe, - setYAxisTitle: Qpe, - setYAxisRangeData: Ype, - setLineData: Gpe, - setBarData: Hpe, - setTmpSVGG: zpe, - getChartThemeConfig: Zpe, - getChartConfig: jpe -}, lGt = /* @__PURE__ */ x((t, e, r, n) => { + setXAxisBand: Qpe, + setYAxisTitle: Ype, + setYAxisRangeData: Wpe, + setLineData: Hpe, + setBarData: Xpe, + setTmpSVGG: Vpe, + getChartThemeConfig: jpe, + getChartConfig: Kpe +}, cGt = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getChartThemeConfig(), a = i.getChartConfig(); function o(v) { return v === "top" ? "text-before-edge" : "middle"; @@ -86536,23 +86558,23 @@ var aGt = /* @__PURE__ */ x(function() { break; } } -}, "draw"), cGt = { - draw: lGt -}, uGt = { - parser: jWt, - db: oGt, - renderer: cGt +}, "draw"), uGt = { + draw: cGt +}, hGt = { + parser: KWt, + db: lGt, + renderer: uGt }; -const hGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const fGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: uGt + diagram: hGt }, Symbol.toStringTag, { value: "Module" })); -var P9 = function() { +var $9 = function() { var t = /* @__PURE__ */ x(function(ee, Y, ne, ie) { for (ne = ne || {}, ie = ee.length; ie--; ne[ee[ie]] = Y) ; return ne; - }, "o"), e = [1, 3], r = [1, 4], n = [1, 5], i = [1, 6], s = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], a = [1, 18], o = [2, 7], l = [1, 22], u = [1, 23], h = [1, 24], f = [1, 25], d = [1, 26], p = [1, 27], g = [1, 20], m = [1, 28], v = [1, 29], y = [62, 63], b = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], w = [1, 47], O = [1, 48], S = [1, 49], C = [1, 50], T = [1, 51], L = [1, 52], E = [1, 53], A = [53, 54], _ = [1, 64], R = [1, 60], $ = [1, 61], k = [1, 62], N = [1, 63], M = [1, 65], I = [1, 69], D = [1, 70], P = [1, 67], F = [1, 68], B = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], V = { + }, "o"), e = [1, 3], r = [1, 4], n = [1, 5], i = [1, 6], s = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], a = [1, 18], o = [2, 7], l = [1, 22], u = [1, 23], h = [1, 24], f = [1, 25], d = [1, 26], p = [1, 27], g = [1, 20], m = [1, 28], v = [1, 29], y = [62, 63], b = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], w = [1, 47], O = [1, 48], S = [1, 49], C = [1, 50], T = [1, 51], A = [1, 52], E = [1, 53], L = [53, 54], _ = [1, 64], R = [1, 60], $ = [1, 61], k = [1, 62], N = [1, 63], M = [1, 65], I = [1, 69], D = [1, 70], P = [1, 67], F = [1, 68], B = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], V = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -86664,7 +86686,7 @@ var P9 = function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 6: e, 9: r, 11: n, 13: i }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: e, 9: r, 11: n, 13: i }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, t(s, [2, 6]), { 3: 12, 4: 2, 6: e, 9: r, 11: n, 13: i }, { 1: [2, 2] }, { 4: 17, 5: a, 7: 13, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, t(s, [2, 4]), t(s, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: a, 7: 31, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 32, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 33, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 34, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 35, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, t(y, [2, 20]), t(y, [2, 21]), t(y, [2, 22]), t(y, [2, 23]), t(y, [2, 24]), t(y, [2, 25]), t(b, [2, 49]), t(b, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: w, 56: O, 57: S, 58: C, 59: T, 60: L, 61: E }, { 52: 54, 55: w, 56: O, 57: S, 58: C, 59: T, 60: L, 61: E }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, t(A, [2, 40]), t(A, [2, 41]), t(A, [2, 42]), t(A, [2, 43]), t(A, [2, 44]), t(A, [2, 45]), t(A, [2, 46]), { 54: [1, 58] }, { 5: _, 20: 59, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: I, 30: D, 46: 66, 47: P, 49: F }, { 23: 71, 62: m, 63: v }, { 23: 72, 62: m, 63: v }, t(B, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: _, 20: 77, 21: R, 24: $, 26: k, 28: N, 30: M }, t(B, [2, 19]), t(B, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: I, 30: D, 46: 80, 47: P, 49: F }, t(B, [2, 37]), t(B, [2, 38]), t(B, [2, 39]), { 23: 81, 62: m, 63: v }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, t(B, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, t(B, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: _, 20: 106, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: _, 20: 107, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: _, 20: 108, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: _, 20: 109, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: I, 30: D, 46: 110, 47: P, 49: F }, { 5: I, 30: D, 46: 111, 47: P, 49: F }, t(B, [2, 14]), t(B, [2, 15]), t(B, [2, 16]), t(B, [2, 17]), t(B, [2, 34]), t(B, [2, 35])], + table: [{ 3: 1, 4: 2, 6: e, 9: r, 11: n, 13: i }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: e, 9: r, 11: n, 13: i }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, t(s, [2, 6]), { 3: 12, 4: 2, 6: e, 9: r, 11: n, 13: i }, { 1: [2, 2] }, { 4: 17, 5: a, 7: 13, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, t(s, [2, 4]), t(s, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: a, 7: 31, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 32, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 33, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 34, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 4: 17, 5: a, 7: 35, 8: o, 9: r, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: l, 32: u, 33: h, 34: f, 35: d, 36: p, 44: g, 62: m, 63: v }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, t(y, [2, 20]), t(y, [2, 21]), t(y, [2, 22]), t(y, [2, 23]), t(y, [2, 24]), t(y, [2, 25]), t(b, [2, 49]), t(b, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: w, 56: O, 57: S, 58: C, 59: T, 60: A, 61: E }, { 52: 54, 55: w, 56: O, 57: S, 58: C, 59: T, 60: A, 61: E }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, t(L, [2, 40]), t(L, [2, 41]), t(L, [2, 42]), t(L, [2, 43]), t(L, [2, 44]), t(L, [2, 45]), t(L, [2, 46]), { 54: [1, 58] }, { 5: _, 20: 59, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: I, 30: D, 46: 66, 47: P, 49: F }, { 23: 71, 62: m, 63: v }, { 23: 72, 62: m, 63: v }, t(B, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: _, 20: 77, 21: R, 24: $, 26: k, 28: N, 30: M }, t(B, [2, 19]), t(B, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: I, 30: D, 46: 80, 47: P, 49: F }, t(B, [2, 37]), t(B, [2, 38]), t(B, [2, 39]), { 23: 81, 62: m, 63: v }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, t(B, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, t(B, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: _, 20: 106, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: _, 20: 107, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: _, 20: 108, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: _, 20: 109, 21: R, 24: $, 26: k, 28: N, 30: M }, { 5: I, 30: D, 46: 110, 47: P, 49: F }, { 5: I, 30: D, 46: 111, 47: P, 49: F }, t(B, [2, 14]), t(B, [2, 15]), t(B, [2, 16]), t(B, [2, 17]), t(B, [2, 34]), t(B, [2, 35])], defaultActions: { 8: [2, 2], 12: [2, 1], 30: [2, 3], 31: [2, 8], 32: [2, 9], 33: [2, 10], 34: [2, 11], 35: [2, 12], 37: [2, 47], 38: [2, 48], 40: [2, 53], 41: [2, 54], 83: [2, 51], 84: [2, 52], 86: [2, 26], 87: [2, 27], 88: [2, 28], 90: [2, 29], 91: [2, 30], 92: [2, 31], 93: [2, 32], 95: [2, 55], 96: [2, 56], 98: [2, 57], 99: [2, 58] }, parseError: /* @__PURE__ */ x(function(Y, ne) { if (ne.recoverable) @@ -87014,24 +87036,24 @@ Expecting ` + ke.join(", ") + ", got '" + (this.terminals_[oe] || oe) + "'" : Ce } return x(W, "Parser"), W.prototype = V, V.Parser = W, new W(); }(); -P9.parser = P9; -var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* @__PURE__ */ new Map(), dGt = { +$9.parser = $9; +var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* @__PURE__ */ new Map(), pGt = { REQUIREMENT: "Requirement", FUNCTIONAL_REQUIREMENT: "Functional Requirement", INTERFACE_REQUIREMENT: "Interface Requirement", PERFORMANCE_REQUIREMENT: "Performance Requirement", PHYSICAL_REQUIREMENT: "Physical Requirement", DESIGN_CONSTRAINT: "Design Constraint" -}, pGt = { +}, gGt = { LOW_RISK: "Low", MED_RISK: "Medium", HIGH_RISK: "High" -}, gGt = { +}, mGt = { VERIFY_ANALYSIS: "Analysis", VERIFY_DEMONSTRATION: "Demonstration", VERIFY_INSPECTION: "Inspection", VERIFY_TEST: "Test" -}, mGt = { +}, vGt = { CONTAINS: "contains", COPIES: "copies", DERIVES: "derives", @@ -87039,61 +87061,61 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* VERIFIES: "verifies", REFINES: "refines", TRACES: "traces" -}, vGt = /* @__PURE__ */ x((t, e) => (hy.has(t) || hy.set(t, { +}, yGt = /* @__PURE__ */ x((t, e) => (hy.has(t) || hy.set(t, { name: t, type: e, id: La.id, text: La.text, risk: La.risk, verifyMethod: La.verifyMethod -}), La = {}, hy.get(t)), "addRequirement"), yGt = /* @__PURE__ */ x(() => hy, "getRequirements"), bGt = /* @__PURE__ */ x((t) => { +}), La = {}, hy.get(t)), "addRequirement"), bGt = /* @__PURE__ */ x(() => hy, "getRequirements"), xGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.id = t); -}, "setNewReqId"), xGt = /* @__PURE__ */ x((t) => { +}, "setNewReqId"), wGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.text = t); -}, "setNewReqText"), wGt = /* @__PURE__ */ x((t) => { +}, "setNewReqText"), OGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.risk = t); -}, "setNewReqRisk"), OGt = /* @__PURE__ */ x((t) => { +}, "setNewReqRisk"), kGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.verifyMethod = t); -}, "setNewReqVerifyMethod"), kGt = /* @__PURE__ */ x((t) => (fy.has(t) || (fy.set(t, { +}, "setNewReqVerifyMethod"), SGt = /* @__PURE__ */ x((t) => (fy.has(t) || (fy.set(t, { name: t, type: tf.type, docRef: tf.docRef -}), X.info("Added new requirement: ", t)), tf = {}, fy.get(t)), "addElement"), SGt = /* @__PURE__ */ x(() => fy, "getElements"), TGt = /* @__PURE__ */ x((t) => { +}), X.info("Added new requirement: ", t)), tf = {}, fy.get(t)), "addElement"), TGt = /* @__PURE__ */ x(() => fy, "getElements"), CGt = /* @__PURE__ */ x((t) => { tf !== void 0 && (tf.type = t); -}, "setNewElementType"), CGt = /* @__PURE__ */ x((t) => { +}, "setNewElementType"), EGt = /* @__PURE__ */ x((t) => { tf !== void 0 && (tf.docRef = t); -}, "setNewElementDocRef"), EGt = /* @__PURE__ */ x((t, e, r) => { +}, "setNewElementDocRef"), _Gt = /* @__PURE__ */ x((t, e, r) => { sP.push({ type: t, src: e, dst: r }); -}, "addRelationship"), _Gt = /* @__PURE__ */ x(() => sP, "getRelationships"), AGt = /* @__PURE__ */ x(() => { +}, "addRelationship"), AGt = /* @__PURE__ */ x(() => sP, "getRelationships"), LGt = /* @__PURE__ */ x(() => { sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), LGt = { - RequirementType: dGt, - RiskLevel: pGt, - VerifyType: gGt, - Relationships: mGt, +}, "clear"), RGt = { + RequirementType: pGt, + RiskLevel: gGt, + VerifyType: mGt, + Relationships: vGt, getConfig: /* @__PURE__ */ x(() => be().req, "getConfig"), - addRequirement: vGt, - getRequirements: yGt, - setNewReqId: bGt, - setNewReqText: xGt, - setNewReqRisk: wGt, - setNewReqVerifyMethod: OGt, + addRequirement: yGt, + getRequirements: bGt, + setNewReqId: xGt, + setNewReqText: wGt, + setNewReqRisk: OGt, + setNewReqVerifyMethod: kGt, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addElement: kGt, - getElements: SGt, - setNewElementType: TGt, - setNewElementDocRef: CGt, - addRelationship: EGt, - getRelationships: _Gt, - clear: AGt -}, RGt = /* @__PURE__ */ x((t) => ` + addElement: SGt, + getElements: TGt, + setNewElementType: CGt, + setNewElementDocRef: EGt, + addRelationship: _Gt, + getRelationships: AGt, + clear: LGt +}, MGt = /* @__PURE__ */ x((t) => ` marker { fill: ${t.relationColor}; @@ -87136,22 +87158,22 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* fill: ${t.relationLabelColor}; } -`, "getStyles"), MGt = RGt, $9 = { +`, "getStyles"), DGt = MGt, B9 = { CONTAINS: "contains", ARROW: "arrow" -}, DGt = /* @__PURE__ */ x((t, e) => { - let r = t.append("defs").append("marker").attr("id", $9.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); - r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", $9.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( +}, NGt = /* @__PURE__ */ x((t, e) => { + let r = t.append("defs").append("marker").attr("id", B9.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); + r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", B9.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( "d", `M0,0 L${e.line_height},${e.line_height / 2} M${e.line_height},${e.line_height / 2} L0,${e.line_height}` ).attr("stroke-width", 1); -}, "insertLineEndings"), Kpe = { - ReqMarkers: $9, - insertLineEndings: DGt -}, Vn = {}, jG = 0, Jpe = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Vn.rect_min_width + "px").attr("height", Vn.rect_min_height + "px"), "newRectNode"), ege = /* @__PURE__ */ x((t, e, r) => { +}, "insertLineEndings"), Jpe = { + ReqMarkers: B9, + insertLineEndings: NGt +}, Vn = {}, KG = 0, ege = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Vn.rect_min_width + "px").attr("height", Vn.rect_min_height + "px"), "newRectNode"), tge = /* @__PURE__ */ x((t, e, r) => { let n = Vn.rect_min_width / 2, i = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", e).attr("x", n).attr("y", Vn.rect_padding).attr("dominant-baseline", "hanging"), s = 0; r.forEach((u) => { s == 0 ? i.append("tspan").attr("text-anchor", "middle").attr("x", Vn.rect_min_width / 2).attr("dy", 0).text(u) : i.append("tspan").attr("text-anchor", "middle").attr("x", Vn.rect_min_width / 2).attr("dy", Vn.line_height * 0.75).text(u), s++; @@ -87161,7 +87183,7 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* titleNode: i, y: l }; -}, "newTitleNode"), tge = /* @__PURE__ */ x((t, e, r, n) => { +}, "newTitleNode"), rge = /* @__PURE__ */ x((t, e, r, n) => { let i = t.append("text").attr("class", "req reqLabel").attr("id", e).attr("x", Vn.rect_padding).attr("y", n).attr("dominant-baseline", "hanging"), s = 0; const a = 30; let o = []; @@ -87180,12 +87202,12 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* }), o.forEach((l) => { i.append("tspan").attr("x", Vn.rect_padding).attr("dy", Vn.line_height).text(l); }), i; -}, "newBodyNode"), NGt = /* @__PURE__ */ x((t, e, r, n) => { - const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + jG; - jG++; +}, "newBodyNode"), IGt = /* @__PURE__ */ x((t, e, r, n) => { + const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + KG; + KG++; const l = t.append("text").attr("class", "req relationshipLabel").attr("id", a).attr("x", s.x).attr("y", s.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(n).node().getBBox(); t.insert("rect", "#" + a).attr("class", "req reqLabelBox").attr("x", s.x - l.width / 2).attr("y", s.y - l.height / 2).attr("width", l.width).attr("height", l.height).attr("fill", "white").attr("fill-opacity", "85%"); -}, "addEdgeLabel"), IGt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addEdgeLabel"), PGt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = r.edge(w1(e.src), w1(e.dst)), a = vf().x(function(l) { return l.x; }).y(function(l) { @@ -87196,18 +87218,18 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + e.type + "_line_ending)" ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", - "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + Kpe.ReqMarkers.ARROW + "_line_ending)" - )), NGt(t, o, Vn, `<<${e.type}>>`); -}, "drawRelationshipFromLayout"), PGt = /* @__PURE__ */ x((t, e, r) => { + "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + Jpe.ReqMarkers.ARROW + "_line_ending)" + )), IGt(t, o, Vn, `<<${e.type}>>`); +}, "drawRelationshipFromLayout"), $Gt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = w1(i), X.info("Added new requirement: ", i); - const s = r.append("g").attr("id", i), a = "req-" + i, o = Jpe(s, a); - let l = [], u = ege(s, i + "_title", [ + const s = r.append("g").attr("id", i), a = "req-" + i, o = ege(s, a); + let l = [], u = tge(s, i + "_title", [ `<<${n.type}>>`, `${n.name}` ]); l.push(u.titleNode); - let h = tge( + let h = rge( s, i + "_body", [ @@ -87227,12 +87249,12 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* id: i }); }); -}, "drawReqs"), $Gt = /* @__PURE__ */ x((t, e, r) => { +}, "drawReqs"), BGt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { - const s = w1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = Jpe(a, o); - let u = [], h = ege(a, o + "_title", ["<>", `${i}`]); + const s = w1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = ege(a, o); + let u = [], h = tge(a, o + "_title", ["<>", `${i}`]); u.push(h.titleNode); - let f = tge( + let f = rge( a, o + "_body", [`Type: ${n.type || "Not Specified"}`, `Doc Ref: ${n.docRef || "None"}`], @@ -87247,24 +87269,24 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* id: s }); }); -}, "drawElements"), BGt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { +}, "drawElements"), FGt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { let n = w1(r.src), i = w1(r.dst); e.setEdge(n, i, { relationship: r }); -}), t), "addRelationships"), FGt = /* @__PURE__ */ x(function(t, e) { +}), t), "addRelationships"), zGt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && (t.select("#" + r), t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" )); }); -}, "adjustEntities"), w1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), zGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "adjustEntities"), w1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), VGt = /* @__PURE__ */ x((t, e, r, n) => { Vn = be().requirement; const i = Vn.securityLevel; let s; i === "sandbox" && (s = et("#i" + e)); const o = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body").select(`[id='${e}']`); - Kpe.insertLineEndings(o, Vn); - const l = new $i({ + Jpe.insertLineEndings(o, Vn); + const l = new Bi({ multigraph: !1, compound: !1, directed: !0 @@ -87279,29 +87301,29 @@ var fGt = P9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* return {}; }); let u = n.db.getRequirements(), h = n.db.getElements(), f = n.db.getRelationships(); - PGt(u, l, o), $Gt(h, l, o), BGt(f, l), sm(l), FGt(o, l), f.forEach(function(v) { - IGt(o, v, l, e, n); + $Gt(u, l, o), BGt(h, l, o), FGt(f, l), sm(l), zGt(o, l), f.forEach(function(v) { + PGt(o, v, l, e, n); }); const d = Vn.rect_padding, p = o.node().getBBox(), g = p.width + d * 2, m = p.height + d * 2; ms(o, m, g, Vn.useMaxWidth), o.attr("viewBox", `${p.x - d} ${p.y - d} ${g} ${m}`); -}, "draw"), VGt = { - draw: zGt -}, UGt = { - parser: fGt, - db: LGt, - renderer: VGt, - styles: MGt -}; -const qGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, "draw"), UGt = { + draw: VGt +}, qGt = { + parser: dGt, + db: RGt, + renderer: UGt, + styles: DGt +}; +const QGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: UGt + diagram: qGt }, Symbol.toStringTag, { value: "Module" })); -var B9 = function() { +var F9 = function() { var t = /* @__PURE__ */ x(function(U, Z, G, j) { for (G = G || {}, j = U.length; j--; G[U[j]] = Z) ; return G; - }, "o"), e = [1, 2], r = [1, 3], n = [1, 4], i = [2, 4], s = [1, 9], a = [1, 11], o = [1, 13], l = [1, 14], u = [1, 16], h = [1, 17], f = [1, 18], d = [1, 24], p = [1, 25], g = [1, 26], m = [1, 27], v = [1, 28], y = [1, 29], b = [1, 30], w = [1, 31], O = [1, 32], S = [1, 33], C = [1, 34], T = [1, 35], L = [1, 36], E = [1, 37], A = [1, 38], _ = [1, 39], R = [1, 41], $ = [1, 42], k = [1, 43], N = [1, 44], M = [1, 45], I = [1, 46], D = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], P = [4, 5, 16, 50, 52, 53], F = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], B = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], V = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], Q = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], W = [68, 69, 70], ee = [1, 122], Y = { + }, "o"), e = [1, 2], r = [1, 3], n = [1, 4], i = [2, 4], s = [1, 9], a = [1, 11], o = [1, 13], l = [1, 14], u = [1, 16], h = [1, 17], f = [1, 18], d = [1, 24], p = [1, 25], g = [1, 26], m = [1, 27], v = [1, 28], y = [1, 29], b = [1, 30], w = [1, 31], O = [1, 32], S = [1, 33], C = [1, 34], T = [1, 35], A = [1, 36], E = [1, 37], L = [1, 38], _ = [1, 39], R = [1, 41], $ = [1, 42], k = [1, 43], N = [1, 44], M = [1, 45], I = [1, 46], D = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], P = [4, 5, 16, 50, 52, 53], F = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], B = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], V = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], Q = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], W = [68, 69, 70], ee = [1, 122], Y = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -87503,7 +87525,7 @@ var B9 = function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: e, 5: r, 6: n }, { 1: [3] }, { 3: 5, 4: e, 5: r, 6: n }, { 3: 6, 4: e, 5: r, 6: n }, t([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, t(D, [2, 5]), { 9: 47, 12: 12, 13: o, 14: l, 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, t(D, [2, 7]), t(D, [2, 8]), t(D, [2, 14]), { 12: 48, 50: E, 52: A, 53: _ }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: I }, { 22: 55, 70: I }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(D, [2, 29]), t(D, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(D, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: I }, { 22: 72, 70: I }, { 22: 73, 70: I }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82], 79: [1, 83], 80: [1, 84] }, { 55: 85, 57: [1, 86], 65: [1, 87], 66: [1, 88] }, { 22: 89, 70: I }, { 22: 90, 70: I }, { 22: 91, 70: I }, { 22: 92, 70: I }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81], [2, 68]), t(D, [2, 6]), t(D, [2, 15]), t(P, [2, 9], { 10: 93 }), t(D, [2, 17]), { 5: [1, 95], 19: [1, 94] }, { 5: [1, 96] }, t(D, [2, 21]), { 5: [1, 97] }, { 5: [1, 98] }, t(D, [2, 24]), t(D, [2, 25]), t(D, [2, 26]), t(D, [2, 27]), t(D, [2, 28]), t(D, [2, 31]), t(D, [2, 32]), t(F, i, { 7: 99 }), t(F, i, { 7: 100 }), t(F, i, { 7: 101 }), t(B, i, { 40: 102, 7: 103 }), t(V, i, { 42: 104, 7: 105 }), t(V, i, { 7: 105, 42: 106 }), t(Q, i, { 45: 107, 7: 108 }), t(F, i, { 7: 109 }), { 5: [1, 111], 51: [1, 110] }, { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, { 22: 117, 68: [1, 115], 69: [1, 116], 70: I }, t(W, [2, 69]), t(W, [2, 70]), t(W, [2, 71]), t(W, [2, 72]), t(W, [2, 73]), t(W, [2, 74]), t(W, [2, 75]), t(W, [2, 76]), t(W, [2, 77]), t(W, [2, 78]), { 22: 118, 70: I }, { 22: 120, 58: 119, 70: I }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 121, 81: ee }, { 56: 123, 81: ee }, { 56: 124, 81: ee }, { 56: 125, 81: ee }, { 4: [1, 128], 5: [1, 130], 11: 127, 12: 129, 16: [1, 126], 50: E, 52: A, 53: _ }, { 5: [1, 131] }, t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 22]), t(D, [2, 23]), { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 132], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 133], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 134], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 16: [1, 135] }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [2, 46], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 49: [1, 136], 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 16: [1, 137] }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [2, 44], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 48: [1, 138], 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 16: [1, 139] }, { 16: [1, 140] }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [2, 42], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 47: [1, 141], 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 142], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: L, 50: E, 52: A, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 15: [1, 143] }, t(D, [2, 49]), { 15: [1, 144] }, t(D, [2, 51]), t(D, [2, 52]), { 22: 145, 70: I }, { 22: 146, 70: I }, { 56: 147, 81: ee }, { 56: 148, 81: ee }, { 56: 149, 81: ee }, { 64: [1, 150], 81: [2, 62] }, { 5: [2, 55] }, { 5: [2, 79] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(D, [2, 16]), t(P, [2, 10]), { 12: 151, 50: E, 52: A, 53: _ }, t(P, [2, 12]), t(P, [2, 13]), t(D, [2, 18]), t(D, [2, 34]), t(D, [2, 35]), t(D, [2, 36]), t(D, [2, 37]), { 15: [1, 152] }, t(D, [2, 38]), { 15: [1, 153] }, t(D, [2, 39]), t(D, [2, 40]), { 15: [1, 154] }, t(D, [2, 41]), { 5: [1, 155] }, { 5: [1, 156] }, { 56: 157, 81: ee }, { 56: 158, 81: ee }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 159, 70: I }, t(P, [2, 11]), t(B, i, { 7: 103, 40: 160 }), t(V, i, { 7: 105, 42: 161 }), t(Q, i, { 7: 108, 45: 162 }), t(D, [2, 48]), t(D, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 81: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }], + table: [{ 3: 1, 4: e, 5: r, 6: n }, { 1: [3] }, { 3: 5, 4: e, 5: r, 6: n }, { 3: 6, 4: e, 5: r, 6: n }, t([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, t(D, [2, 5]), { 9: 47, 12: 12, 13: o, 14: l, 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, t(D, [2, 7]), t(D, [2, 8]), t(D, [2, 14]), { 12: 48, 50: E, 52: L, 53: _ }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: I }, { 22: 55, 70: I }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(D, [2, 29]), t(D, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(D, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: I }, { 22: 72, 70: I }, { 22: 73, 70: I }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82], 79: [1, 83], 80: [1, 84] }, { 55: 85, 57: [1, 86], 65: [1, 87], 66: [1, 88] }, { 22: 89, 70: I }, { 22: 90, 70: I }, { 22: 91, 70: I }, { 22: 92, 70: I }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81], [2, 68]), t(D, [2, 6]), t(D, [2, 15]), t(P, [2, 9], { 10: 93 }), t(D, [2, 17]), { 5: [1, 95], 19: [1, 94] }, { 5: [1, 96] }, t(D, [2, 21]), { 5: [1, 97] }, { 5: [1, 98] }, t(D, [2, 24]), t(D, [2, 25]), t(D, [2, 26]), t(D, [2, 27]), t(D, [2, 28]), t(D, [2, 31]), t(D, [2, 32]), t(F, i, { 7: 99 }), t(F, i, { 7: 100 }), t(F, i, { 7: 101 }), t(B, i, { 40: 102, 7: 103 }), t(V, i, { 42: 104, 7: 105 }), t(V, i, { 7: 105, 42: 106 }), t(Q, i, { 45: 107, 7: 108 }), t(F, i, { 7: 109 }), { 5: [1, 111], 51: [1, 110] }, { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, { 22: 117, 68: [1, 115], 69: [1, 116], 70: I }, t(W, [2, 69]), t(W, [2, 70]), t(W, [2, 71]), t(W, [2, 72]), t(W, [2, 73]), t(W, [2, 74]), t(W, [2, 75]), t(W, [2, 76]), t(W, [2, 77]), t(W, [2, 78]), { 22: 118, 70: I }, { 22: 120, 58: 119, 70: I }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 121, 81: ee }, { 56: 123, 81: ee }, { 56: 124, 81: ee }, { 56: 125, 81: ee }, { 4: [1, 128], 5: [1, 130], 11: 127, 12: 129, 16: [1, 126], 50: E, 52: L, 53: _ }, { 5: [1, 131] }, t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 22]), t(D, [2, 23]), { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 132], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 133], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 134], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 16: [1, 135] }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [2, 46], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 49: [1, 136], 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 16: [1, 137] }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [2, 44], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 48: [1, 138], 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 16: [1, 139] }, { 16: [1, 140] }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [2, 42], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 47: [1, 141], 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 4: s, 5: a, 8: 8, 9: 10, 12: 12, 13: o, 14: l, 16: [1, 142], 17: 15, 18: u, 21: h, 22: 40, 23: f, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: d, 30: p, 31: g, 33: m, 35: v, 36: y, 37: b, 38: w, 39: O, 41: S, 43: C, 44: T, 46: A, 50: E, 52: L, 53: _, 54: R, 59: $, 60: k, 61: N, 62: M, 70: I }, { 15: [1, 143] }, t(D, [2, 49]), { 15: [1, 144] }, t(D, [2, 51]), t(D, [2, 52]), { 22: 145, 70: I }, { 22: 146, 70: I }, { 56: 147, 81: ee }, { 56: 148, 81: ee }, { 56: 149, 81: ee }, { 64: [1, 150], 81: [2, 62] }, { 5: [2, 55] }, { 5: [2, 79] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(D, [2, 16]), t(P, [2, 10]), { 12: 151, 50: E, 52: L, 53: _ }, t(P, [2, 12]), t(P, [2, 13]), t(D, [2, 18]), t(D, [2, 34]), t(D, [2, 35]), t(D, [2, 36]), t(D, [2, 37]), { 15: [1, 152] }, t(D, [2, 38]), { 15: [1, 153] }, t(D, [2, 39]), t(D, [2, 40]), { 15: [1, 154] }, t(D, [2, 41]), { 5: [1, 155] }, { 5: [1, 156] }, { 56: 157, 81: ee }, { 56: 158, 81: ee }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 159, 70: I }, t(P, [2, 11]), t(B, i, { 7: 103, 40: 160 }), t(V, i, { 7: 105, 42: 161 }), t(Q, i, { 7: 108, 45: 162 }), t(D, [2, 48]), t(D, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 81: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }], defaultActions: { 5: [2, 1], 6: [2, 2], 87: [2, 63], 88: [2, 64], 121: [2, 55], 122: [2, 79], 123: [2, 56], 124: [2, 57], 125: [2, 58], 147: [2, 67], 148: [2, 53], 149: [2, 54], 157: [2, 65], 158: [2, 66], 159: [2, 61], 160: [2, 47], 161: [2, 45], 162: [2, 43] }, parseError: /* @__PURE__ */ x(function(Z, G) { if (G.recoverable) @@ -87885,8 +87907,8 @@ Expecting ` + Te.join(", ") + ", got '" + (this.terminals_[fe] || fe) + "'" : Xe } return x(ie, "Parser"), ie.prototype = Y, Y.Parser = ie, new ie(); }(); -B9.parser = B9; -var QGt = B9, It = new fI(() => ({ +F9.parser = F9; +var YGt = F9, It = new fI(() => ({ prevActor: void 0, actors: /* @__PURE__ */ new Map(), createdActors: /* @__PURE__ */ new Map(), @@ -87899,7 +87921,7 @@ var QGt = B9, It = new fI(() => ({ currentBox: void 0, lastCreated: void 0, lastDestroyed: void 0 -})), YGt = /* @__PURE__ */ x(function(t) { +})), WGt = /* @__PURE__ */ x(function(t) { var e; It.records.boxes.push({ name: t.text, @@ -87907,7 +87929,7 @@ var QGt = B9, It = new fI(() => ({ fill: t.color, actorKeys: [] }), It.records.currentBox = It.records.boxes.slice(-1)[0]; -}, "addBox"), F9 = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addBox"), z9 = /* @__PURE__ */ x(function(t, e, r, n) { var a; let i = It.records.currentBox; const s = It.records.actors.get(t); @@ -87935,14 +87957,14 @@ var QGt = B9, It = new fI(() => ({ o && (o.nextActor = t); } It.records.currentBox && It.records.currentBox.actorKeys.push(t), It.records.prevActor = t; -}, "addActor"), WGt = /* @__PURE__ */ x((t) => { +}, "addActor"), GGt = /* @__PURE__ */ x((t) => { let e, r = 0; if (!t) return 0; for (e = 0; e < It.records.messages.length; e++) It.records.messages[e].type === $2.ACTIVE_START && It.records.messages[e].from === t && r++, It.records.messages[e].type === $2.ACTIVE_END && It.records.messages[e].from === t && r--; return r; -}, "activationCount"), GGt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "activationCount"), HGt = /* @__PURE__ */ x(function(t, e, r, n) { var i; It.records.messages.push({ from: t, @@ -87953,7 +87975,7 @@ var QGt = B9, It = new fI(() => ({ }); }, "addMessage"), Gn = /* @__PURE__ */ x(function(t, e, r, n, i = !1) { var s, a; - if (n === $2.ACTIVE_END && WGt(t != null ? t : "") < 1) { + if (n === $2.ACTIVE_END && GGt(t != null ? t : "") < 1) { const l = new Error("Trying to inactivate an inactive participant (" + t + ")"); throw l.hash = { text: "->>-", @@ -87971,31 +87993,31 @@ var QGt = B9, It = new fI(() => ({ type: n, activate: i }), !0; -}, "addSignal"), HGt = /* @__PURE__ */ x(function() { +}, "addSignal"), XGt = /* @__PURE__ */ x(function() { return It.records.boxes.length > 0; -}, "hasAtLeastOneBox"), XGt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBox"), ZGt = /* @__PURE__ */ x(function() { return It.records.boxes.some((t) => t.name); -}, "hasAtLeastOneBoxWithTitle"), ZGt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBoxWithTitle"), jGt = /* @__PURE__ */ x(function() { return It.records.messages; -}, "getMessages"), jGt = /* @__PURE__ */ x(function() { +}, "getMessages"), KGt = /* @__PURE__ */ x(function() { return It.records.boxes; -}, "getBoxes"), KGt = /* @__PURE__ */ x(function() { +}, "getBoxes"), JGt = /* @__PURE__ */ x(function() { return It.records.actors; -}, "getActors"), JGt = /* @__PURE__ */ x(function() { +}, "getActors"), eHt = /* @__PURE__ */ x(function() { return It.records.createdActors; -}, "getCreatedActors"), eHt = /* @__PURE__ */ x(function() { +}, "getCreatedActors"), tHt = /* @__PURE__ */ x(function() { return It.records.destroyedActors; }, "getDestroyedActors"), qx = /* @__PURE__ */ x(function(t) { return It.records.actors.get(t); -}, "getActor"), tHt = /* @__PURE__ */ x(function() { +}, "getActor"), rHt = /* @__PURE__ */ x(function() { return [...It.records.actors.keys()]; -}, "getActorKeys"), rHt = /* @__PURE__ */ x(function() { +}, "getActorKeys"), nHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !0; -}, "enableSequenceNumbers"), nHt = /* @__PURE__ */ x(function() { +}, "enableSequenceNumbers"), iHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !1; -}, "disableSequenceNumbers"), iHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), sHt = /* @__PURE__ */ x(function(t) { +}, "disableSequenceNumbers"), sHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), aHt = /* @__PURE__ */ x(function(t) { It.records.wrapEnabled = t; -}, "setWrap"), rge = /* @__PURE__ */ x((t) => { +}, "setWrap"), nge = /* @__PURE__ */ x((t) => { if (t === void 0) return {}; t = t.trim(); @@ -88004,15 +88026,15 @@ var QGt = B9, It = new fI(() => ({ }, "extractWrap"), w0 = /* @__PURE__ */ x(() => { var t, e; return It.records.wrapEnabled !== void 0 ? It.records.wrapEnabled : (e = (t = be().sequence) == null ? void 0 : t.wrap) != null ? e : !1; -}, "autoWrap"), aHt = /* @__PURE__ */ x(function() { +}, "autoWrap"), oHt = /* @__PURE__ */ x(function() { It.reset(), Xi(); -}, "clear"), oHt = /* @__PURE__ */ x(function(t) { - const e = t.trim(), { wrap: r, cleanedText: n } = rge(e), i = { +}, "clear"), lHt = /* @__PURE__ */ x(function(t) { + const e = t.trim(), { wrap: r, cleanedText: n } = nge(e), i = { text: n, wrap: r }; return X.debug(`parseMessage: ${JSON.stringify(i)}`), i; -}, "parseMessage"), lHt = /* @__PURE__ */ x(function(t) { +}, "parseMessage"), cHt = /* @__PURE__ */ x(function(t) { const e = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t); let r = e != null && e[1] ? e[1].trim() : "transparent", n = e != null && e[2] ? e[2].trim() : void 0; if (window != null && window.CSS) @@ -88021,7 +88043,7 @@ var QGt = B9, It = new fI(() => ({ const a = new Option().style; a.color = r, a.color !== r && (r = "transparent", n = t.trim()); } - const { wrap: i, cleanedText: s } = rge(n); + const { wrap: i, cleanedText: s } = nge(n); return { text: s ? ni(s, be()) : void 0, color: r, @@ -88060,14 +88082,14 @@ var QGt = B9, It = new fI(() => ({ PAR_OVER_START: 32, BIDIRECTIONAL_SOLID: 33, BIDIRECTIONAL_DOTTED: 34 -}, cHt = { +}, uHt = { FILLED: 0, OPEN: 1 -}, uHt = { +}, hHt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, nge = /* @__PURE__ */ x(function(t, e, r) { +}, ige = /* @__PURE__ */ x(function(t, e, r) { var s, a; const n = { actor: t, @@ -88083,17 +88105,17 @@ var QGt = B9, It = new fI(() => ({ type: $2.NOTE, placement: e }); -}, "addNote"), ige = /* @__PURE__ */ x(function(t, e) { +}, "addNote"), sge = /* @__PURE__ */ x(function(t, e) { const r = qx(t); try { let n = ni(e.text, be()); n = n.replace(/&/g, "&"), n = n.replace(/=/g, "="); const i = JSON.parse(n); - _C(r, i); + AC(r, i); } catch (n) { X.error("error while parsing actor link text", n); } -}, "addLinks"), hHt = /* @__PURE__ */ x(function(t, e) { +}, "addLinks"), fHt = /* @__PURE__ */ x(function(t, e) { const r = qx(t); try { const n = {}; @@ -88101,20 +88123,20 @@ var QGt = B9, It = new fI(() => ({ const s = i.indexOf("@"); i = i.replace(/&/g, "&"), i = i.replace(/=/g, "="); const a = i.slice(0, s - 1).trim(), o = i.slice(s + 1).trim(); - n[a] = o, _C(r, n); + n[a] = o, AC(r, n); } catch (n) { X.error("error while parsing actor link text", n); } }, "addALink"); -function _C(t, e) { +function AC(t, e) { if (t.links == null) t.links = e; else for (const r in e) t.links[r] = e[r]; } -x(_C, "insertLinks"); -var sge = /* @__PURE__ */ x(function(t, e) { +x(AC, "insertLinks"); +var age = /* @__PURE__ */ x(function(t, e) { const r = qx(t); try { const n = ni(e.text, be()), i = JSON.parse(n); @@ -88131,25 +88153,25 @@ function aP(t, e) { t.properties[r] = e[r]; } x(aP, "insertProperties"); -function age() { +function oge() { It.records.currentBox = void 0; } -x(age, "boxEnd"); -var oge = /* @__PURE__ */ x(function(t, e) { +x(oge, "boxEnd"); +var lge = /* @__PURE__ */ x(function(t, e) { const r = qx(t), n = document.getElementById(e.text); try { const i = n.innerHTML, s = JSON.parse(i); - s.properties && aP(r, s.properties), s.links && _C(r, s.links); + s.properties && aP(r, s.properties), s.links && AC(r, s.links); } catch (i) { X.error("error while parsing actor details text", i); } -}, "addDetails"), fHt = /* @__PURE__ */ x(function(t, e) { +}, "addDetails"), dHt = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; -}, "getActorProperty"), lge = /* @__PURE__ */ x(function(t) { +}, "getActorProperty"), cge = /* @__PURE__ */ x(function(t) { if (Array.isArray(t)) t.forEach(function(e) { - lge(e); + cge(e); }); else switch (t.type) { @@ -88167,14 +88189,14 @@ var oge = /* @__PURE__ */ x(function(t, e) { }); break; case "addParticipant": - F9(t.actor, t.actor, t.description, t.draw); + z9(t.actor, t.actor, t.description, t.draw); break; case "createParticipant": if (It.records.actors.has(t.actor)) throw new Error( "It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior" ); - It.records.lastCreated = t.actor, F9(t.actor, t.actor, t.description, t.draw), It.records.createdActors.set(t.actor, It.records.messages.length); + It.records.lastCreated = t.actor, z9(t.actor, t.actor, t.description, t.draw), It.records.createdActors.set(t.actor, It.records.messages.length); break; case "destroyParticipant": It.records.lastDestroyed = t.actor, It.records.destroyedActors.set(t.actor, It.records.messages.length); @@ -88186,19 +88208,19 @@ var oge = /* @__PURE__ */ x(function(t, e) { Gn(t.actor, void 0, void 0, t.signalType); break; case "addNote": - nge(t.actor, t.placement, t.text); + ige(t.actor, t.placement, t.text); break; case "addLinks": - ige(t.actor, t.text); + sge(t.actor, t.text); break; case "addALink": - hHt(t.actor, t.text); + fHt(t.actor, t.text); break; case "addProperties": - sge(t.actor, t.text); + age(t.actor, t.text); break; case "addDetails": - oge(t.actor, t.text); + lge(t.actor, t.text); break; case "addMessage": if (It.records.lastCreated) { @@ -88217,10 +88239,10 @@ var oge = /* @__PURE__ */ x(function(t, e) { Gn(t.from, t.to, t.msg, t.signalType, t.activate); break; case "boxStart": - YGt(t.boxData); + WGt(t.boxData); break; case "boxEnd": - age(); + oge(); break; case "loopStart": Gn(void 0, void 0, t.loopText, t.signalType); @@ -88277,44 +88299,44 @@ var oge = /* @__PURE__ */ x(function(t, e) { Gn(void 0, void 0, void 0, t.signalType); break; } -}, "apply"), KG = { - addActor: F9, - addMessage: GGt, +}, "apply"), JG = { + addActor: z9, + addMessage: HGt, addSignal: Gn, - addLinks: ige, - addDetails: oge, - addProperties: sge, + addLinks: sge, + addDetails: lge, + addProperties: age, autoWrap: w0, - setWrap: sHt, - enableSequenceNumbers: rHt, - disableSequenceNumbers: nHt, - showSequenceNumbers: iHt, - getMessages: ZGt, - getActors: KGt, - getCreatedActors: JGt, - getDestroyedActors: eHt, + setWrap: aHt, + enableSequenceNumbers: nHt, + disableSequenceNumbers: iHt, + showSequenceNumbers: sHt, + getMessages: jGt, + getActors: JGt, + getCreatedActors: eHt, + getDestroyedActors: tHt, getActor: qx, - getActorKeys: tHt, - getActorProperty: fHt, + getActorKeys: rHt, + getActorProperty: dHt, getAccTitle: vs, - getBoxes: jGt, + getBoxes: KGt, getDiagramTitle: xs, setDiagramTitle: fa, getConfig: /* @__PURE__ */ x(() => be().sequence, "getConfig"), - clear: aHt, - parseMessage: oHt, - parseBoxData: lHt, + clear: oHt, + parseMessage: lHt, + parseBoxData: cHt, LINETYPE: $2, - ARROWTYPE: cHt, - PLACEMENT: uHt, - addNote: nge, + ARROWTYPE: uHt, + PLACEMENT: hHt, + addNote: ige, setAccTitle: Zi, - apply: lge, + apply: cge, setAccDescription: ys, getAccDescription: bs, - hasAtLeastOneBox: HGt, - hasAtLeastOneBoxWithTitle: XGt -}, dHt = /* @__PURE__ */ x((t) => `.actor { + hasAtLeastOneBox: XGt, + hasAtLeastOneBoxWithTitle: ZGt +}, pHt = /* @__PURE__ */ x((t) => `.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; } @@ -88430,9 +88452,9 @@ var oge = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), pHt = dHt, $d = 18 * 2, cge = "actor-top", uge = "actor-bottom", gHt = "actor-box", JG = "actor-man", oP = /* @__PURE__ */ x(function(t, e) { - return nC(t, e); -}, "drawRect"), mHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), gHt = pHt, $d = 18 * 2, uge = "actor-top", hge = "actor-bottom", mHt = "actor-box", eH = "actor-man", oP = /* @__PURE__ */ x(function(t, e) { + return iC(t, e); +}, "drawRect"), vHt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) return { height: 0, width: 0 }; const s = e.links, a = e.actorCnt, o = e.rectData; @@ -88448,7 +88470,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { var p = 20; for (let v in s) { var g = u.append("a"), m = zf(s[v]); - g.attr("xlink:href", m), g.attr("target", "_blank"), DHt(n)( + g.attr("xlink:href", m), g.attr("target", "_blank"), NHt(n)( v, g, o.x + 10, @@ -88461,9 +88483,9 @@ var oge = /* @__PURE__ */ x(function(t, e) { } } return d.attr("height", p), { height: o.height + p, width: f }; -}, "drawPopup"), vHt = /* @__PURE__ */ x(function(t) { +}, "drawPopup"), yHt = /* @__PURE__ */ x(function(t) { return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; -}, "popupMenuToggle"), Wk = /* @__PURE__ */ x(async function(t, e, r = null) { +}, "popupMenuToggle"), Gk = /* @__PURE__ */ x(async function(t, e, r = null) { let n = t.append("foreignObject"); const i = await ox(e.text, pi()), a = n.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect(); if (n.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), e.class === "noteText") { @@ -88520,7 +88542,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { e.textMargin !== void 0 && e.textMargin === 0 && s !== void 0 && (l = h * s); const d = t.append("text"); d.attr("x", e.x), d.attr("y", u()), e.anchor !== void 0 && d.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && d.style("font-family", e.fontFamily), a !== void 0 && d.style("font-size", a), e.fontWeight !== void 0 && d.style("font-weight", e.fontWeight), e.fill !== void 0 && d.attr("fill", e.fill), e.class !== void 0 && d.attr("class", e.class), e.dy !== void 0 ? d.attr("dy", e.dy) : l !== 0 && d.attr("dy", l); - const p = f || pae; + const p = f || gae; if (e.tspan) { const g = d.append("tspan"); g.attr("x", e.x), e.fill !== void 0 && g.attr("fill", e.fill), g.text(p); @@ -88529,30 +88551,30 @@ var oge = /* @__PURE__ */ x(function(t, e) { e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (n += (d._groups || d)[0][0].getBBox().height, r = n), o.push(d); } return o; -}, "drawText"), hge = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), fge = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); return n.attr("points", r(e.x, e.y, e.width, e.height, 7)), n.attr("class", "labelBox"), e.y = e.y + e.height / 2, O1(t, e), n; -}, "drawLabel"), pc = -1, fge = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawLabel"), pc = -1, dge = /* @__PURE__ */ x((t, e, r, n) => { !t.select || r.forEach((i) => { const s = e.get(i), a = t.select("#actor" + s.actorCnt); !n.mirrorActors && s.stopy ? a.attr("y2", s.stopy + s.height / 2) : n.mirrorActors && a.attr("y2", s.stopy); }); -}, "fixLifeLineHeights"), yHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "fixLifeLineHeights"), bHt = /* @__PURE__ */ x(function(t, e, r, n) { var p, g; const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 5, o = t.append("g").lower(); var l = o; - n || (pc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", vHt(`actor${pc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = pc, e.links != null && l.attr("id", "root-" + pc)); + n || (pc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", yHt(`actor${pc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = pc, e.links != null && l.attr("id", "root-" + pc)); const u = K0(); var h = "actor"; - (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${uge}` : h += ` ${cge}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; + (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${hge}` : h += ` ${uge}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; const f = oP(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); - m.charAt(0) === "@" ? sIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : iIt(l, u.x + u.width - 20, u.y + 10, m); + m.charAt(0) === "@" ? aIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : sIt(l, u.x + u.width - 20, u.y + 10, m); } lP(r, ca(e.description))( e.description, @@ -88561,7 +88583,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { u.y, u.width, u.height, - { class: `actor ${gHt}` }, + { class: `actor ${mHt}` }, r ); let d = e.height; @@ -88570,12 +88592,12 @@ var oge = /* @__PURE__ */ x(function(t, e) { e.height = m.height, d = m.height; } return d; -}, "drawActorTypeParticipant"), bHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActorTypeParticipant"), xHt = /* @__PURE__ */ x(function(t, e, r, n) { const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 80, o = t.append("g").lower(); n || (pc++, o.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = pc); const l = t.append("g"); - let u = JG; - n ? u += ` ${uge}` : u += ` ${cge}`, l.attr("class", u), l.attr("name", e.name); + let u = eH; + n ? u += ` ${hge}` : u += ` ${uge}`, l.attr("class", u), l.attr("name", e.name); const h = K0(); h.x = e.x, h.y = i, h.fill = "#eaeaea", h.width = e.width, h.height = e.height, h.class = "actor", h.rx = 3, h.ry = 3, l.append("line").attr("id", "actor-man-torso" + pc).attr("x1", s).attr("y1", i + 25).attr("x2", s).attr("y2", i + 45), l.append("line").attr("id", "actor-man-arms" + pc).attr("x1", s - $d / 2).attr("y1", i + 33).attr("x2", s + $d / 2).attr("y2", i + 33), l.append("line").attr("x1", s - $d / 2).attr("y1", i + 60).attr("x2", s).attr("y2", i + 45), l.append("line").attr("x1", s).attr("y1", i + 45).attr("x2", s + $d / 2 - 2).attr("y2", i + 60); const f = l.append("circle"); @@ -88588,19 +88610,19 @@ var oge = /* @__PURE__ */ x(function(t, e) { h.y + 35, h.width, h.height, - { class: `actor ${JG}` }, + { class: `actor ${eH}` }, r ), e.height; -}, "drawActorTypeActor"), xHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActorTypeActor"), wHt = /* @__PURE__ */ x(async function(t, e, r, n) { switch (e.type) { case "actor": - return await bHt(t, e, r, n); + return await xHt(t, e, r, n); case "participant": - return await yHt(t, e, r, n); + return await bHt(t, e, r, n); } -}, "drawActor"), wHt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawActor"), OHt = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); - dge(i, e), e.name && lP(r)( + pge(i, e), e.name && lP(r)( e.name, i, e.x, @@ -88610,12 +88632,12 @@ var oge = /* @__PURE__ */ x(function(t, e) { { class: "text" }, r ), i.lower(); -}, "drawBox"), OHt = /* @__PURE__ */ x(function(t) { +}, "drawBox"), kHt = /* @__PURE__ */ x(function(t) { return t.append("g"); -}, "anchorElement"), kHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "anchorElement"), SHt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = K0(), a = e.anchored; s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = r - e.starty, oP(a, s); -}, "drawActivation"), SHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActivation"), THt = /* @__PURE__ */ x(async function(t, e, r, n) { const { boxMargin: i, boxTextMargin: s, @@ -88634,12 +88656,12 @@ var oge = /* @__PURE__ */ x(function(t, e) { ); }); let p = tI(); - p.text = r, p.x = e.startx, p.y = e.starty, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = o || 50, p.height = a || 20, p.textMargin = s, p.class = "labelText", hge(f, p), p = pge(), p.text = e.title, p.x = e.startx + o / 2 + (e.stopx - e.startx) / 2, p.y = e.starty + i + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = !0; - let g = ca(p.text) ? await Wk(f, p, e) : O1(f, p); + p.text = r, p.x = e.startx, p.y = e.starty, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = o || 50, p.height = a || 20, p.textMargin = s, p.class = "labelText", fge(f, p), p = gge(), p.text = e.title, p.x = e.startx + o / 2 + (e.stopx - e.startx) / 2, p.y = e.starty + i + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = !0; + let g = ca(p.text) ? await Gk(f, p, e) : O1(f, p); if (e.sectionTitles !== void 0) { for (const [m, v] of Object.entries(e.sectionTitles)) if (v.message) { - p.text = v.message, p.x = e.startx + (e.stopx - e.startx) / 2, p.y = e.sections[m].y + i + s, p.class = "loopText", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = e.wrap, ca(p.text) ? (e.starty = e.sections[m].y, await Wk(f, p, e)) : O1(f, p); + p.text = v.message, p.x = e.startx + (e.stopx - e.startx) / 2, p.y = e.sections[m].y + i + s, p.class = "loopText", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = e.wrap, ca(p.text) ? (e.starty = e.sections[m].y, await Gk(f, p, e)) : O1(f, p); let y = Math.round( g.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, w) => b + w) ); @@ -88647,32 +88669,32 @@ var oge = /* @__PURE__ */ x(function(t, e) { } } return e.height = Math.round(e.stopy - e.starty), f; -}, "drawLoop"), dge = /* @__PURE__ */ x(function(t, e) { - efe(t, e); -}, "drawBackgroundRect"), THt = /* @__PURE__ */ x(function(t) { +}, "drawLoop"), pge = /* @__PURE__ */ x(function(t, e) { + tfe(t, e); +}, "drawBackgroundRect"), CHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), CHt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), EHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), EHt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), _Ht = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), _Ht = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), AHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), AHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), LHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), LHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), RHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertSequenceNumber"), RHt = /* @__PURE__ */ x(function(t) { +}, "insertSequenceNumber"), MHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7"); -}, "insertArrowCrossHead"), pge = /* @__PURE__ */ x(function() { +}, "insertArrowCrossHead"), gge = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -88687,7 +88709,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { tspan: !0, valign: void 0 }; -}, "getTextObj"), MHt = /* @__PURE__ */ x(function() { +}, "getTextObj"), DHt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -88730,7 +88752,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { return x(i, "_setTextAttrs"), function(s, a = !1) { return a ? n : s.textPlacement === "fo" ? r : s.textPlacement === "old" ? t : e; }; -}(), DHt = /* @__PURE__ */ function() { +}(), NHt = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h) { const f = s.append("text").attr("x", a).attr("y", o).style("text-anchor", "start").text(i); n(f, h); @@ -88759,24 +88781,24 @@ var oge = /* @__PURE__ */ x(function(t, e) { }(), Hn = { drawRect: oP, drawText: O1, - drawLabel: hge, - drawActor: xHt, - drawBox: wHt, - drawPopup: mHt, - anchorElement: OHt, - drawActivation: kHt, - drawLoop: SHt, - drawBackgroundRect: dge, - insertArrowHead: _Ht, - insertArrowFilledHead: AHt, - insertSequenceNumber: LHt, - insertArrowCrossHead: RHt, - insertDatabaseIcon: THt, - insertComputerIcon: CHt, - insertClockIcon: EHt, - getTextObj: pge, - getNoteRect: MHt, - fixLifeLineHeights: fge, + drawLabel: fge, + drawActor: wHt, + drawBox: OHt, + drawPopup: vHt, + anchorElement: kHt, + drawActivation: SHt, + drawLoop: THt, + drawBackgroundRect: pge, + insertArrowHead: AHt, + insertArrowFilledHead: LHt, + insertSequenceNumber: RHt, + insertArrowCrossHead: MHt, + insertDatabaseIcon: CHt, + insertComputerIcon: EHt, + insertClockIcon: _Ht, + getTextObj: gge, + getNoteRect: DHt, + fixLifeLineHeights: dge, sanitizeUrl: zf }, Ie = {}, nt = { data: { @@ -88837,7 +88859,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { stopx: void 0, starty: void 0, stopy: void 0 - }, this.verticalPos = 0, vge(be()); + }, this.verticalPos = 0, yge(be()); }, "init"), updateVal: /* @__PURE__ */ x(function(t, e, r, n) { t[e] === void 0 ? t[e] = r : t[e] = n(r, t[e]); @@ -88859,7 +88881,7 @@ var oge = /* @__PURE__ */ x(function(t, e) { this.updateVal(nt.data, "startx", i, Math.min), this.updateVal(nt.data, "starty", a, Math.min), this.updateVal(nt.data, "stopx", s, Math.max), this.updateVal(nt.data, "stopy", o, Math.max), this.updateBounds(i, a, s, o); }, "insert"), newActivation: /* @__PURE__ */ x(function(t, e, r) { - const n = r.get(t.from), i = AC(t.from).length || 0, s = n.x + n.width / 2 + (i - 1) * Ie.activationWidth / 2; + const n = r.get(t.from), i = LC(t.from).length || 0, s = n.x + n.width / 2 + (i - 1) * Ie.activationWidth / 2; this.activations.push({ startx: s, starty: this.verticalPos + 2, @@ -88916,13 +88938,13 @@ var oge = /* @__PURE__ */ x(function(t, e) { getBounds: /* @__PURE__ */ x(function() { return { bounds: this.data, models: this.models }; }, "getBounds") -}, NHt = /* @__PURE__ */ x(async function(t, e) { +}, IHt = /* @__PURE__ */ x(async function(t, e) { nt.bumpVerticalPos(Ie.boxMargin), e.height = Ie.boxMargin, e.starty = nt.getVerticalPos(); const r = K0(); r.x = e.startx, r.y = e.starty, r.width = e.width || Ie.width, r.class = "note"; const n = t.append("g"), i = Hn.drawRect(n, r), s = tI(); s.x = e.startx, s.y = e.starty, s.width = r.width, s.dy = "1em", s.text = e.message, s.class = "noteText", s.fontFamily = Ie.noteFontFamily, s.fontSize = Ie.noteFontSize, s.fontWeight = Ie.noteFontWeight, s.anchor = Ie.noteAlign, s.textMargin = Ie.noteMargin, s.valign = "center"; - const a = ca(s.text) ? await Wk(n, s) : O1(n, s), o = Math.round( + const a = ca(s.text) ? await Gk(n, s) : O1(n, s), o = Math.round( a.map((l) => (l._groups || l)[0][0].getBBox().height).reduce((l, u) => l + u) ); i.attr("height", o + 2 * Ie.noteMargin), e.height += o + 2 * Ie.noteMargin, nt.bumpVerticalPos(o + 2 * Ie.noteMargin), e.stopy = e.starty + o + 2 * Ie.noteMargin, e.stopx = e.startx + r.width, nt.insert(e.startx, e.starty, e.stopx, e.stopy), nt.models.addNote(e); @@ -88934,12 +88956,12 @@ var oge = /* @__PURE__ */ x(function(t, e) { fontFamily: t.noteFontFamily, fontSize: t.noteFontSize, fontWeight: t.noteFontWeight -}), "noteFont"), z9 = /* @__PURE__ */ x((t) => ({ +}), "noteFont"), V9 = /* @__PURE__ */ x((t) => ({ fontFamily: t.actorFontFamily, fontSize: t.actorFontSize, fontWeight: t.actorFontWeight }), "actorFont"); -async function gge(t, e) { +async function mge(t, e) { nt.bumpVerticalPos(10); const { startx: r, stopx: n, message: i } = e, s = at.splitBreaks(i).length, a = ca(i), o = a ? await ax(i, be()) : sr.calculateTextDimensions(i, O0(Ie)); if (!a) { @@ -88961,10 +88983,10 @@ async function gge(t, e) { u += Ie.boxMargin, l = nt.getVerticalPos() + u, nt.insert(r, l - 10, n, l); return nt.bumpVerticalPos(u), e.height += u, e.stopy = e.starty + e.height, nt.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), l; } -x(gge, "boundMessage"); -var IHt = /* @__PURE__ */ x(async function(t, e, r, n) { +x(mge, "boundMessage"); +var PHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = sr.calculateTextDimensions(o, O0(Ie)), d = tI(); - d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Ie.messageFontFamily, d.fontSize = Ie.messageFontSize, d.fontWeight = Ie.messageFontWeight, d.anchor = Ie.messageAlign, d.valign = "center", d.textMargin = Ie.wrapPadding, d.tspan = !1, ca(d.text) ? await Wk(t, d, { startx: i, stopx: s, starty: r }) : O1(t, d); + d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Ie.messageFontFamily, d.fontSize = Ie.messageFontSize, d.fontWeight = Ie.messageFontWeight, d.anchor = Ie.messageAlign, d.valign = "center", d.textMargin = Ie.wrapPadding, d.tspan = !1, ca(d.text) ? await Gk(t, d, { startx: i, stopx: s, starty: r }) : O1(t, d); const p = f.width; let g; i === s ? Ie.rightAngles ? g = t.append("path").attr( @@ -88976,14 +88998,14 @@ var IHt = /* @__PURE__ */ x(async function(t, e, r, n) { ) : (g = t.append("line"), g.attr("x1", i), g.attr("y1", r), g.attr("x2", s), g.attr("y2", r)), l === n.db.LINETYPE.DOTTED || l === n.db.LINETYPE.DOTTED_CROSS || l === n.db.LINETYPE.DOTTED_POINT || l === n.db.LINETYPE.DOTTED_OPEN || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (g.style("stroke-dasharray", "3, 3"), g.attr("class", "messageLine1")) : g.attr("class", "messageLine0"); let m = ""; Ie.arrowMarkerAbsolute && (m = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, m = m.replace(/\(/g, "\\("), m = m.replace(/\)/g, "\\)")), g.attr("stroke-width", 2), g.attr("stroke", "none"), g.style("fill", "none"), (l === n.db.LINETYPE.SOLID || l === n.db.LINETYPE.DOTTED) && g.attr("marker-end", "url(" + m + "#arrowhead)"), (l === n.db.LINETYPE.BIDIRECTIONAL_SOLID || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (g.attr("marker-start", "url(" + m + "#arrowhead)"), g.attr("marker-end", "url(" + m + "#arrowhead)")), (l === n.db.LINETYPE.SOLID_POINT || l === n.db.LINETYPE.DOTTED_POINT) && g.attr("marker-end", "url(" + m + "#filled-head)"), (l === n.db.LINETYPE.SOLID_CROSS || l === n.db.LINETYPE.DOTTED_CROSS) && g.attr("marker-end", "url(" + m + "#crosshead)"), (h || Ie.showSequenceNumbers) && (g.attr("marker-start", "url(" + m + "#sequencenumber)"), t.append("text").attr("x", i).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(u)); -}, "drawMessage"), PHt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "drawMessage"), $Ht = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = 0, l = 0, u, h = 0; for (const f of n) { const d = e.get(f), p = d.box; u && u != p && (a || nt.models.addBox(u), l += Ie.boxMargin + u.margin), p && p != u && (a || (p.x = o + l, p.y = i), l += p.margin), d.width = d.width || Ie.width, d.height = at.getMax(d.height || Ie.height, Ie.height), d.margin = d.margin || Ie.actorMargin, h = at.getMax(h, d.height), r.get(d.name) && (l += d.width / 2), d.x = o + l, d.starty = nt.getVerticalPos(), nt.insert(d.x, i, d.x + d.width, d.height), o += d.width + l, d.box && (d.box.width = o + p.margin - d.box.x), l = d.margin, u = d.box, nt.models.addActor(d); } u && !a && nt.models.addBox(u), nt.bumpVerticalPos(h); -}, "addActorRenderingData"), V9 = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "addActorRenderingData"), U9 = /* @__PURE__ */ x(async function(t, e, r, n) { if (n) { let i = 0; nt.bumpVerticalPos(Ie.boxMargin * 2); @@ -88999,10 +89021,10 @@ var IHt = /* @__PURE__ */ x(async function(t, e, r, n) { const s = e.get(i); await Hn.drawActor(t, s, Ie, !1); } -}, "drawActors"), mge = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActors"), vge = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { - const o = e.get(a), l = BHt(o), u = Hn.drawPopup( + const o = e.get(a), l = FHt(o), u = Hn.drawPopup( t, o, l, @@ -89013,14 +89035,14 @@ var IHt = /* @__PURE__ */ x(async function(t, e, r, n) { u.height > i && (i = u.height), u.width + o.x > s && (s = u.width + o.x); } return { maxHeight: i, maxWidth: s }; -}, "drawActorsPopup"), vge = /* @__PURE__ */ x(function(t) { +}, "drawActorsPopup"), yge = /* @__PURE__ */ x(function(t) { Ci(Ie, t), t.fontFamily && (Ie.actorFontFamily = Ie.noteFontFamily = Ie.messageFontFamily = t.fontFamily), t.fontSize && (Ie.actorFontSize = Ie.noteFontSize = Ie.messageFontSize = t.fontSize), t.fontWeight && (Ie.actorFontWeight = Ie.noteFontWeight = Ie.messageFontWeight = t.fontWeight); -}, "setConf"), AC = /* @__PURE__ */ x(function(t) { +}, "setConf"), LC = /* @__PURE__ */ x(function(t) { return nt.activations.filter(function(e) { return e.actor === t; }); -}, "actorActivations"), eH = /* @__PURE__ */ x(function(t, e) { - const r = e.get(t), n = AC(t), i = n.reduce( +}, "actorActivations"), tH = /* @__PURE__ */ x(function(t, e) { + const r = e.get(t), n = LC(t), i = n.reduce( function(a, o) { return at.getMin(a, o.startx); }, @@ -89045,7 +89067,7 @@ function ll(t, e, r, n, i) { i(e), nt.bumpVerticalPos(s); } x(ll, "adjustLoopHeightForWrap"); -function yge(t, e, r, n, i, s, a) { +function bge(t, e, r, n, i, s, a) { function o(u, h) { u.x < i.get(t.from).x ? (nt.insert( e.stopx - h, @@ -89092,8 +89114,8 @@ function yge(t, e, r, n, i, s, a) { u.stopy = r - u.height / 2, nt.bumpVerticalPos(u.height / 2); } } -x(yge, "adjustCreatedDestroyedData"); -var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { +x(bge, "adjustCreatedDestroyedData"); +var BHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = be(); Ie = s; let a; @@ -89102,15 +89124,15 @@ var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { nt.init(), X.debug(n.db); const u = i === "sandbox" ? o.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = n.db.getActors(), f = n.db.getCreatedActors(), d = n.db.getDestroyedActors(), p = n.db.getBoxes(); let g = n.db.getActorKeys(); - const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await bge(h, m, n); - if (Ie.height = await xge(h, w, p), Hn.insertComputerIcon(u), Hn.insertDatabaseIcon(u), Hn.insertClockIcon(u), y && (nt.bumpVerticalPos(Ie.boxMargin), b && nt.bumpVerticalPos(p[0].textMaxHeight)), Ie.hideUnusedParticipants === !0) { + const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await xge(h, m, n); + if (Ie.height = await wge(h, w, p), Hn.insertComputerIcon(u), Hn.insertDatabaseIcon(u), Hn.insertClockIcon(u), y && (nt.bumpVerticalPos(Ie.boxMargin), b && nt.bumpVerticalPos(p[0].textMaxHeight)), Ie.hideUnusedParticipants === !0) { const D = /* @__PURE__ */ new Set(); m.forEach((P) => { D.add(P.from), D.add(P.to); }), g = g.filter((P) => D.has(P)); } - PHt(u, h, f, g, 0, m, !1); - const O = await VHt(m, h, w, n); + $Ht(u, h, f, g, 0, m, !1); + const O = await UHt(m, h, w, n); Hn.insertArrowHead(u), Hn.insertArrowCrossHead(u), Hn.insertArrowFilledHead(u), Hn.insertSequenceNumber(u); function S(D, P) { const F = nt.endActivation(D); @@ -89119,18 +89141,18 @@ var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { F, P, Ie, - AC(D.from).length + LC(D.from).length ), nt.insert(F.startx, P - 10, F.stopx, P); } x(S, "activeEnd"); let C = 1, T = 1; - const L = [], E = []; - let A = 0; + const A = [], E = []; + let L = 0; for (const D of m) { let P, F, B; switch (D.type) { case n.db.LINETYPE.NOTE: - nt.resetVerticalPos(), F = D.noteModel, await NHt(u, F); + nt.resetVerticalPos(), F = D.noteModel, await IHt(u, F); break; case n.db.LINETYPE.ACTIVE_START: nt.newActivation(D, u, h); @@ -89256,16 +89278,16 @@ var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { default: try { B = D.msgModel, B.starty = nt.getVerticalPos(), B.sequenceIndex = C, B.sequenceVisible = n.db.showSequenceNumbers(); - const V = await gge(u, B); - yge( + const V = await mge(u, B); + bge( D, B, V, - A, + L, h, f, d - ), L.push({ messageModel: B, lineStartY: V }), nt.models.addMessage(B); + ), A.push({ messageModel: B, lineStartY: V }), nt.models.addMessage(B); } catch (V) { X.error("error while drawing message", V); } @@ -89281,16 +89303,16 @@ var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { n.db.LINETYPE.DOTTED_POINT, n.db.LINETYPE.BIDIRECTIONAL_SOLID, n.db.LINETYPE.BIDIRECTIONAL_DOTTED - ].includes(D.type) && (C = C + T), A++; + ].includes(D.type) && (C = C + T), L++; } - X.debug("createdActors", f), X.debug("destroyedActors", d), await V9(u, h, g, !1); - for (const D of L) - await IHt(u, D.messageModel, D.lineStartY, n); - Ie.mirrorActors && await V9(u, h, g, !0), E.forEach((D) => Hn.drawBackgroundRect(u, D)), fge(u, h, g, Ie); + X.debug("createdActors", f), X.debug("destroyedActors", d), await U9(u, h, g, !1); + for (const D of A) + await PHt(u, D.messageModel, D.lineStartY, n); + Ie.mirrorActors && await U9(u, h, g, !0), E.forEach((D) => Hn.drawBackgroundRect(u, D)), dge(u, h, g, Ie); for (const D of nt.models.boxes) D.height = nt.getVerticalPos() - D.y, nt.insert(D.x, D.y, D.x + D.width, D.height), D.startx = D.x, D.starty = D.y, D.stopx = D.startx + D.width, D.stopy = D.starty + D.height, D.stroke = "rgb(0,0,0, 0.5)", Hn.drawBox(u, D, Ie); y && nt.bumpVerticalPos(Ie.boxMargin); - const _ = mge(u, h, g, l), { bounds: R } = nt.getBounds(); + const _ = vge(u, h, g, l), { bounds: R } = nt.getBounds(); R.startx === void 0 && (R.startx = 0), R.starty === void 0 && (R.starty = 0), R.stopx === void 0 && (R.stopx = 0), R.stopy === void 0 && (R.stopy = 0); let $ = R.stopy - R.starty; $ < _.maxHeight && ($ = _.maxHeight); @@ -89306,7 +89328,7 @@ var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { R.startx - Ie.diagramMarginX + " -" + (Ie.diagramMarginY + I) + " " + M + " " + (k + I) ), X.debug("models:", nt.models); }, "draw"); -async function bge(t, e, r) { +async function xge(t, e, r) { const n = {}; for (const i of e) if (t.get(i.to) && t.get(i.from)) { @@ -89342,26 +89364,26 @@ async function bge(t, e, r) { } return X.debug("maxMessageWidthPerActor:", n), n; } -x(bge, "getMaxMessageWidthPerActor"); -var BHt = /* @__PURE__ */ x(function(t) { +x(xge, "getMaxMessageWidthPerActor"); +var FHt = /* @__PURE__ */ x(function(t) { let e = 0; - const r = z9(Ie); + const r = V9(Ie); for (const n in t.links) { const s = sr.calculateTextDimensions(n, r).width + 2 * Ie.wrapPadding + 2 * Ie.boxMargin; e < s && (e = s); } return e; }, "getRequiredPopupWidth"); -async function xge(t, e, r) { +async function wge(t, e, r) { let n = 0; for (const s of t.keys()) { const a = t.get(s); a.wrap && (a.description = sr.wrapLabel( a.description, Ie.width - 2 * Ie.wrapPadding, - z9(Ie) + V9(Ie) )); - const o = ca(a.description) ? await ax(a.description, be()) : sr.calculateTextDimensions(a.description, z9(Ie)); + const o = ca(a.description) ? await ax(a.description, be()) : sr.calculateTextDimensions(a.description, V9(Ie)); a.width = a.wrap ? Ie.width : at.getMax(Ie.width, o.width + 2 * Ie.wrapPadding), a.height = a.wrap ? at.getMax(o.height, Ie.height) : Ie.height, n = at.getMax(n, a.height); } for (const s in e) { @@ -89391,8 +89413,8 @@ async function xge(t, e, r) { } }), r.forEach((s) => s.textMaxHeight = i), at.getMax(n, Ie.height); } -x(xge, "calculateActorMargins"); -var FHt = /* @__PURE__ */ x(async function(t, e, r) { +x(wge, "calculateActorMargins"); +var zHt = /* @__PURE__ */ x(async function(t, e, r) { const n = e.get(t.from), i = e.get(t.to), s = n.x, a = i.x, o = t.wrap && t.message; let l = ca(t.message) ? await ax(t.message, be()) : sr.calculateTextDimensions( o ? sr.wrapLabel(t.message, Ie.width, Ep(Ie)) : t.message, @@ -89423,7 +89445,7 @@ var FHt = /* @__PURE__ */ x(async function(t, e, r) { )), X.debug( `NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]` ), u; -}, "buildNoteModel"), zHt = /* @__PURE__ */ x(function(t, e, r) { +}, "buildNoteModel"), VHt = /* @__PURE__ */ x(function(t, e, r) { if (![ r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN, @@ -89437,7 +89459,7 @@ var FHt = /* @__PURE__ */ x(async function(t, e, r) { r.db.LINETYPE.BIDIRECTIONAL_DOTTED ].includes(t.type)) return {}; - const [n, i] = eH(t.from, e), [s, a] = eH(t.to, e), o = n <= s; + const [n, i] = tH(t.from, e), [s, a] = tH(t.to, e), o = n <= s; let l = o ? i : n, u = o ? s : a; const h = Math.abs(s - a) > 2, f = /* @__PURE__ */ x((m) => o ? -m : m, "adjustValue"); t.from === t.to ? u = l : (t.activate && !h && (u += f(Ie.activationWidth / 2 - 1)), [r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (u += f(3)), [r.db.LINETYPE.BIDIRECTIONAL_SOLID, r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes( @@ -89467,7 +89489,7 @@ var FHt = /* @__PURE__ */ x(async function(t, e, r) { fromBounds: Math.min.apply(null, d), toBounds: Math.max.apply(null, d) }; -}, "buildMessageModel"), VHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "buildMessageModel"), UHt = /* @__PURE__ */ x(async function(t, e, r, n) { const i = {}, s = []; let a, o, l; for (const u of t) { @@ -89502,7 +89524,7 @@ var FHt = /* @__PURE__ */ x(async function(t, e, r) { break; case n.db.LINETYPE.ACTIVE_START: { - const f = e.get(u.from ? u.from : u.to.actor), d = AC(u.from ? u.from : u.to.actor).length, p = f.x + f.width / 2 + (d - 1) * Ie.activationWidth / 2, g = { + const f = e.get(u.from ? u.from : u.to.actor), d = LC(u.from ? u.from : u.to.actor).length, p = f.x + f.width / 2 + (d - 1) * Ie.activationWidth / 2, g = { startx: p, stopx: p + Ie.activationWidth, actor: u.from, @@ -89518,9 +89540,9 @@ var FHt = /* @__PURE__ */ x(async function(t, e, r) { } break; } - u.placement !== void 0 ? (o = await FHt(u, e, n), u.noteModel = o, s.forEach((f) => { + u.placement !== void 0 ? (o = await zHt(u, e, n), u.noteModel = o, s.forEach((f) => { a = f, a.from = at.getMin(a.from, o.startx), a.to = at.getMax(a.to, o.startx + o.width), a.width = at.getMax(a.width, Math.abs(a.from - a.to)) - Ie.labelBoxWidth; - })) : (l = zHt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { + })) : (l = VHt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { if (a = f, l.startx === l.stopx) { const d = e.get(u.from), p = e.get(u.to); a.from = at.getMin( @@ -89537,31 +89559,31 @@ var FHt = /* @__PURE__ */ x(async function(t, e, r) { })); } return nt.activations = [], X.debug("Loop type widths:", i), i; -}, "calculateLoopBounds"), UHt = { +}, "calculateLoopBounds"), qHt = { bounds: nt, - drawActors: V9, - drawActorsPopup: mge, - setConf: vge, - draw: $Ht -}, qHt = { - parser: QGt, - db: KG, - renderer: UHt, - styles: pHt, + drawActors: U9, + drawActorsPopup: vge, + setConf: yge, + draw: BHt +}, QHt = { + parser: YGt, + db: JG, + renderer: qHt, + styles: gHt, init: /* @__PURE__ */ x(({ wrap: t }) => { - KG.setWrap(t); + JG.setWrap(t); }, "init") }; -const QHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const YHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: qHt + diagram: QHt }, Symbol.toStringTag, { value: "Module" })); -var U9 = function() { +var q9 = function() { var t = /* @__PURE__ */ x(function(Ye, De, he, H) { for (he = he || {}, H = Ye.length; H--; he[Ye[H]] = De) ; return he; - }, "o"), e = [1, 17], r = [1, 18], n = [1, 19], i = [1, 39], s = [1, 40], a = [1, 25], o = [1, 23], l = [1, 24], u = [1, 31], h = [1, 32], f = [1, 33], d = [1, 34], p = [1, 35], g = [1, 36], m = [1, 26], v = [1, 27], y = [1, 28], b = [1, 29], w = [1, 43], O = [1, 30], S = [1, 42], C = [1, 44], T = [1, 41], L = [1, 45], E = [1, 9], A = [1, 8, 9], _ = [1, 56], R = [1, 57], $ = [1, 58], k = [1, 59], N = [1, 60], M = [1, 61], I = [1, 62], D = [1, 8, 9, 39], P = [1, 74], F = [1, 8, 9, 12, 13, 21, 37, 39, 42, 59, 60, 61, 62, 63, 64, 65, 70, 72], B = [1, 8, 9, 12, 13, 19, 21, 37, 39, 42, 46, 59, 60, 61, 62, 63, 64, 65, 70, 72, 74, 80, 95, 97, 98], V = [13, 74, 80, 95, 97, 98], Q = [13, 64, 65, 74, 80, 95, 97, 98], W = [13, 59, 60, 61, 62, 63, 74, 80, 95, 97, 98], ee = [1, 93], Y = [1, 110], ne = [1, 108], ie = [1, 102], U = [1, 103], Z = [1, 104], G = [1, 105], j = [1, 106], ae = [1, 107], se = [1, 109], K = [1, 8, 9, 37, 39, 42], _e = [1, 8, 9, 21], ce = [1, 8, 9, 78], Ee = [1, 8, 9, 21, 73, 74, 78, 80, 81, 82, 83, 84, 85], Ae = { + }, "o"), e = [1, 17], r = [1, 18], n = [1, 19], i = [1, 39], s = [1, 40], a = [1, 25], o = [1, 23], l = [1, 24], u = [1, 31], h = [1, 32], f = [1, 33], d = [1, 34], p = [1, 35], g = [1, 36], m = [1, 26], v = [1, 27], y = [1, 28], b = [1, 29], w = [1, 43], O = [1, 30], S = [1, 42], C = [1, 44], T = [1, 41], A = [1, 45], E = [1, 9], L = [1, 8, 9], _ = [1, 56], R = [1, 57], $ = [1, 58], k = [1, 59], N = [1, 60], M = [1, 61], I = [1, 62], D = [1, 8, 9, 39], P = [1, 74], F = [1, 8, 9, 12, 13, 21, 37, 39, 42, 59, 60, 61, 62, 63, 64, 65, 70, 72], B = [1, 8, 9, 12, 13, 19, 21, 37, 39, 42, 46, 59, 60, 61, 62, 63, 64, 65, 70, 72, 74, 80, 95, 97, 98], V = [13, 74, 80, 95, 97, 98], Q = [13, 64, 65, 74, 80, 95, 97, 98], W = [13, 59, 60, 61, 62, 63, 74, 80, 95, 97, 98], ee = [1, 93], Y = [1, 110], ne = [1, 108], ie = [1, 102], U = [1, 103], Z = [1, 104], G = [1, 105], j = [1, 106], ae = [1, 107], se = [1, 109], K = [1, 8, 9, 37, 39, 42], _e = [1, 8, 9, 21], ce = [1, 8, 9, 78], Ee = [1, 8, 9, 21, 73, 74, 78, 80, 81, 82, 83, 84, 85], Ae = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -89769,7 +89791,7 @@ var U9 = function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 37, 17: 20, 18: 38, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: 16, 31: e, 33: r, 35: n, 36: 21, 40: i, 41: 22, 44: s, 45: a, 47: o, 48: l, 50: u, 52: h, 53: f, 54: d, 55: p, 56: g, 66: m, 67: v, 69: y, 73: b, 74: w, 76: O, 80: S, 95: C, 97: T, 98: L }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, t(E, [2, 5], { 8: [1, 46] }), { 8: [1, 47] }, t(A, [2, 16], { 21: [1, 48] }), t(A, [2, 18]), t(A, [2, 19]), t(A, [2, 20]), t(A, [2, 21]), t(A, [2, 22]), t(A, [2, 23]), t(A, [2, 24]), t(A, [2, 25]), t(A, [2, 26]), { 32: [1, 49] }, { 34: [1, 50] }, t(A, [2, 29]), t(A, [2, 45], { 49: 51, 57: 54, 58: 55, 13: [1, 52], 21: [1, 53], 59: _, 60: R, 61: $, 62: k, 63: N, 64: M, 65: I }), { 37: [1, 63] }, t(D, [2, 36], { 37: [1, 65], 42: [1, 64] }), t(A, [2, 47]), t(A, [2, 48]), { 16: 66, 74: w, 80: S, 95: C, 97: T }, { 16: 37, 17: 67, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, { 16: 37, 17: 68, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, { 16: 37, 17: 69, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, { 74: [1, 70] }, { 13: [1, 71] }, { 16: 37, 17: 72, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, { 13: P, 51: 73 }, t(A, [2, 55]), t(A, [2, 56]), t(A, [2, 57]), t(A, [2, 58]), t(F, [2, 11], { 16: 37, 18: 38, 17: 75, 19: [1, 76], 74: w, 80: S, 95: C, 97: T, 98: L }), t(F, [2, 12], { 19: [1, 77] }), { 15: 78, 16: 79, 74: w, 80: S, 95: C, 97: T }, { 16: 37, 17: 80, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, t(B, [2, 112]), t(B, [2, 113]), t(B, [2, 114]), t(B, [2, 115]), t([1, 8, 9, 12, 13, 19, 21, 37, 39, 42, 59, 60, 61, 62, 63, 64, 65, 70, 72], [2, 116]), t(E, [2, 6], { 10: 5, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: 16, 17: 20, 36: 21, 41: 22, 16: 37, 18: 38, 5: 81, 31: e, 33: r, 35: n, 40: i, 44: s, 45: a, 47: o, 48: l, 50: u, 52: h, 53: f, 54: d, 55: p, 56: g, 66: m, 67: v, 69: y, 73: b, 74: w, 76: O, 80: S, 95: C, 97: T, 98: L }), { 5: 82, 10: 5, 16: 37, 17: 20, 18: 38, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: 16, 31: e, 33: r, 35: n, 36: 21, 40: i, 41: 22, 44: s, 45: a, 47: o, 48: l, 50: u, 52: h, 53: f, 54: d, 55: p, 56: g, 66: m, 67: v, 69: y, 73: b, 74: w, 76: O, 80: S, 95: C, 97: T, 98: L }, t(A, [2, 17]), t(A, [2, 27]), t(A, [2, 28]), { 13: [1, 84], 16: 37, 17: 83, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, { 49: 85, 57: 54, 58: 55, 59: _, 60: R, 61: $, 62: k, 63: N, 64: M, 65: I }, t(A, [2, 46]), { 58: 86, 64: M, 65: I }, t(V, [2, 62], { 57: 87, 59: _, 60: R, 61: $, 62: k, 63: N }), t(Q, [2, 63]), t(Q, [2, 64]), t(Q, [2, 65]), t(Q, [2, 66]), t(Q, [2, 67]), t(W, [2, 68]), t(W, [2, 69]), { 8: [1, 89], 23: 90, 38: 88, 41: 22, 44: s }, { 16: 91, 74: w, 80: S, 95: C, 97: T }, { 43: 92, 47: ee }, { 46: [1, 94] }, { 13: [1, 95] }, { 13: [1, 96] }, { 70: [1, 97], 72: [1, 98] }, { 21: Y, 73: ne, 74: ie, 75: 99, 77: 100, 79: 101, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }, { 74: [1, 111] }, { 13: P, 51: 112 }, t(A, [2, 54]), t(A, [2, 117]), t(F, [2, 13]), t(F, [2, 14]), t(F, [2, 15]), { 37: [2, 32] }, { 15: 113, 16: 79, 37: [2, 9], 74: w, 80: S, 95: C, 97: T }, t(K, [2, 40], { 11: 114, 12: [1, 115] }), t(E, [2, 7]), { 9: [1, 116] }, t(_e, [2, 49]), { 16: 37, 17: 117, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, { 13: [1, 119], 16: 37, 17: 118, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, t(V, [2, 61], { 57: 120, 59: _, 60: R, 61: $, 62: k, 63: N }), t(V, [2, 60]), { 39: [1, 121] }, { 23: 90, 38: 122, 41: 22, 44: s }, { 8: [1, 123], 39: [2, 33] }, t(D, [2, 37], { 37: [1, 124] }), { 39: [1, 125] }, { 39: [2, 43], 43: 126, 47: ee }, { 16: 37, 17: 127, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, t(A, [2, 70], { 13: [1, 128] }), t(A, [2, 72], { 13: [1, 130], 68: [1, 129] }), t(A, [2, 76], { 13: [1, 131], 71: [1, 132] }), { 13: [1, 133] }, t(A, [2, 84], { 78: [1, 134] }), t(ce, [2, 86], { 79: 135, 21: Y, 73: ne, 74: ie, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }), t(Ee, [2, 88]), t(Ee, [2, 90]), t(Ee, [2, 91]), t(Ee, [2, 92]), t(Ee, [2, 93]), t(Ee, [2, 94]), t(Ee, [2, 95]), t(Ee, [2, 96]), t(Ee, [2, 97]), t(Ee, [2, 98]), t(A, [2, 85]), t(A, [2, 53]), { 37: [2, 10] }, t(K, [2, 41]), { 13: [1, 136] }, { 1: [2, 4] }, t(_e, [2, 51]), t(_e, [2, 50]), { 16: 37, 17: 137, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: L }, t(V, [2, 59]), t(A, [2, 30]), { 39: [1, 138] }, { 23: 90, 38: 139, 39: [2, 34], 41: 22, 44: s }, { 43: 140, 47: ee }, t(D, [2, 38]), { 39: [2, 44] }, t(A, [2, 42]), t(A, [2, 71]), t(A, [2, 73]), t(A, [2, 74], { 68: [1, 141] }), t(A, [2, 77]), t(A, [2, 78], { 13: [1, 142] }), t(A, [2, 80], { 13: [1, 144], 68: [1, 143] }), { 21: Y, 73: ne, 74: ie, 77: 145, 79: 101, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }, t(Ee, [2, 89]), { 14: [1, 146] }, t(_e, [2, 52]), t(A, [2, 31]), { 39: [2, 35] }, { 39: [1, 147] }, t(A, [2, 75]), t(A, [2, 79]), t(A, [2, 81]), t(A, [2, 82], { 68: [1, 148] }), t(ce, [2, 87], { 79: 135, 21: Y, 73: ne, 74: ie, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }), t(K, [2, 8]), t(D, [2, 39]), t(A, [2, 83])], + table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 37, 17: 20, 18: 38, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: 16, 31: e, 33: r, 35: n, 36: 21, 40: i, 41: 22, 44: s, 45: a, 47: o, 48: l, 50: u, 52: h, 53: f, 54: d, 55: p, 56: g, 66: m, 67: v, 69: y, 73: b, 74: w, 76: O, 80: S, 95: C, 97: T, 98: A }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, t(E, [2, 5], { 8: [1, 46] }), { 8: [1, 47] }, t(L, [2, 16], { 21: [1, 48] }), t(L, [2, 18]), t(L, [2, 19]), t(L, [2, 20]), t(L, [2, 21]), t(L, [2, 22]), t(L, [2, 23]), t(L, [2, 24]), t(L, [2, 25]), t(L, [2, 26]), { 32: [1, 49] }, { 34: [1, 50] }, t(L, [2, 29]), t(L, [2, 45], { 49: 51, 57: 54, 58: 55, 13: [1, 52], 21: [1, 53], 59: _, 60: R, 61: $, 62: k, 63: N, 64: M, 65: I }), { 37: [1, 63] }, t(D, [2, 36], { 37: [1, 65], 42: [1, 64] }), t(L, [2, 47]), t(L, [2, 48]), { 16: 66, 74: w, 80: S, 95: C, 97: T }, { 16: 37, 17: 67, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, { 16: 37, 17: 68, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, { 16: 37, 17: 69, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, { 74: [1, 70] }, { 13: [1, 71] }, { 16: 37, 17: 72, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, { 13: P, 51: 73 }, t(L, [2, 55]), t(L, [2, 56]), t(L, [2, 57]), t(L, [2, 58]), t(F, [2, 11], { 16: 37, 18: 38, 17: 75, 19: [1, 76], 74: w, 80: S, 95: C, 97: T, 98: A }), t(F, [2, 12], { 19: [1, 77] }), { 15: 78, 16: 79, 74: w, 80: S, 95: C, 97: T }, { 16: 37, 17: 80, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, t(B, [2, 112]), t(B, [2, 113]), t(B, [2, 114]), t(B, [2, 115]), t([1, 8, 9, 12, 13, 19, 21, 37, 39, 42, 59, 60, 61, 62, 63, 64, 65, 70, 72], [2, 116]), t(E, [2, 6], { 10: 5, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: 16, 17: 20, 36: 21, 41: 22, 16: 37, 18: 38, 5: 81, 31: e, 33: r, 35: n, 40: i, 44: s, 45: a, 47: o, 48: l, 50: u, 52: h, 53: f, 54: d, 55: p, 56: g, 66: m, 67: v, 69: y, 73: b, 74: w, 76: O, 80: S, 95: C, 97: T, 98: A }), { 5: 82, 10: 5, 16: 37, 17: 20, 18: 38, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: 16, 31: e, 33: r, 35: n, 36: 21, 40: i, 41: 22, 44: s, 45: a, 47: o, 48: l, 50: u, 52: h, 53: f, 54: d, 55: p, 56: g, 66: m, 67: v, 69: y, 73: b, 74: w, 76: O, 80: S, 95: C, 97: T, 98: A }, t(L, [2, 17]), t(L, [2, 27]), t(L, [2, 28]), { 13: [1, 84], 16: 37, 17: 83, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, { 49: 85, 57: 54, 58: 55, 59: _, 60: R, 61: $, 62: k, 63: N, 64: M, 65: I }, t(L, [2, 46]), { 58: 86, 64: M, 65: I }, t(V, [2, 62], { 57: 87, 59: _, 60: R, 61: $, 62: k, 63: N }), t(Q, [2, 63]), t(Q, [2, 64]), t(Q, [2, 65]), t(Q, [2, 66]), t(Q, [2, 67]), t(W, [2, 68]), t(W, [2, 69]), { 8: [1, 89], 23: 90, 38: 88, 41: 22, 44: s }, { 16: 91, 74: w, 80: S, 95: C, 97: T }, { 43: 92, 47: ee }, { 46: [1, 94] }, { 13: [1, 95] }, { 13: [1, 96] }, { 70: [1, 97], 72: [1, 98] }, { 21: Y, 73: ne, 74: ie, 75: 99, 77: 100, 79: 101, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }, { 74: [1, 111] }, { 13: P, 51: 112 }, t(L, [2, 54]), t(L, [2, 117]), t(F, [2, 13]), t(F, [2, 14]), t(F, [2, 15]), { 37: [2, 32] }, { 15: 113, 16: 79, 37: [2, 9], 74: w, 80: S, 95: C, 97: T }, t(K, [2, 40], { 11: 114, 12: [1, 115] }), t(E, [2, 7]), { 9: [1, 116] }, t(_e, [2, 49]), { 16: 37, 17: 117, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, { 13: [1, 119], 16: 37, 17: 118, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, t(V, [2, 61], { 57: 120, 59: _, 60: R, 61: $, 62: k, 63: N }), t(V, [2, 60]), { 39: [1, 121] }, { 23: 90, 38: 122, 41: 22, 44: s }, { 8: [1, 123], 39: [2, 33] }, t(D, [2, 37], { 37: [1, 124] }), { 39: [1, 125] }, { 39: [2, 43], 43: 126, 47: ee }, { 16: 37, 17: 127, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, t(L, [2, 70], { 13: [1, 128] }), t(L, [2, 72], { 13: [1, 130], 68: [1, 129] }), t(L, [2, 76], { 13: [1, 131], 71: [1, 132] }), { 13: [1, 133] }, t(L, [2, 84], { 78: [1, 134] }), t(ce, [2, 86], { 79: 135, 21: Y, 73: ne, 74: ie, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }), t(Ee, [2, 88]), t(Ee, [2, 90]), t(Ee, [2, 91]), t(Ee, [2, 92]), t(Ee, [2, 93]), t(Ee, [2, 94]), t(Ee, [2, 95]), t(Ee, [2, 96]), t(Ee, [2, 97]), t(Ee, [2, 98]), t(L, [2, 85]), t(L, [2, 53]), { 37: [2, 10] }, t(K, [2, 41]), { 13: [1, 136] }, { 1: [2, 4] }, t(_e, [2, 51]), t(_e, [2, 50]), { 16: 37, 17: 137, 18: 38, 74: w, 80: S, 95: C, 97: T, 98: A }, t(V, [2, 59]), t(L, [2, 30]), { 39: [1, 138] }, { 23: 90, 38: 139, 39: [2, 34], 41: 22, 44: s }, { 43: 140, 47: ee }, t(D, [2, 38]), { 39: [2, 44] }, t(L, [2, 42]), t(L, [2, 71]), t(L, [2, 73]), t(L, [2, 74], { 68: [1, 141] }), t(L, [2, 77]), t(L, [2, 78], { 13: [1, 142] }), t(L, [2, 80], { 13: [1, 144], 68: [1, 143] }), { 21: Y, 73: ne, 74: ie, 77: 145, 79: 101, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }, t(Ee, [2, 89]), { 14: [1, 146] }, t(_e, [2, 52]), t(L, [2, 31]), { 39: [2, 35] }, { 39: [1, 147] }, t(L, [2, 75]), t(L, [2, 79]), t(L, [2, 81]), t(L, [2, 82], { 68: [1, 148] }), t(ce, [2, 87], { 79: 135, 21: Y, 73: ne, 74: ie, 80: U, 81: Z, 82: G, 83: j, 84: ae, 85: se }), t(K, [2, 8]), t(D, [2, 39]), t(L, [2, 83])], defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 78: [2, 32], 113: [2, 10], 116: [2, 4], 126: [2, 44], 139: [2, 35] }, parseError: /* @__PURE__ */ x(function(De, he) { if (he.recoverable) @@ -90219,8 +90241,8 @@ Expecting ` + kt.join(", ") + ", got '" + (this.terminals_[ut] || ut) + "'" : st } return x(Ge, "Parser"), Ge.prototype = Ae, Ae.Parser = Ge, new Ge(); }(); -U9.parser = U9; -var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { +q9.parser = q9; +var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { constructor(e, r) { this.memberType = r, this.visibility = "", this.classifier = ""; const n = ni(e, be()); @@ -90241,14 +90263,14 @@ var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { const i = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e); if (i) { const s = i[1] ? i[1].trim() : ""; - if (tH.includes(s) && (this.visibility = s), this.id = i[2].trim(), this.parameters = i[3] ? i[3].trim() : "", r = i[4] ? i[4].trim() : "", this.returnType = i[5] ? i[5].trim() : "", r === "") { + if (rH.includes(s) && (this.visibility = s), this.id = i[2].trim(), this.parameters = i[3] ? i[3].trim() : "", r = i[4] ? i[4].trim() : "", this.returnType = i[5] ? i[5].trim() : "", r === "") { const a = this.returnType.substring(this.returnType.length - 1); /[$*]/.exec(a) && (r = a, this.returnType = this.returnType.substring(0, this.returnType.length - 1)); } } } else { const n = e.length, i = e.substring(0, 1), s = e.substring(n - 1); - tH.includes(i) && (this.visibility = i), /[$*]/.exec(s) && (r = s), this.id = e.substring( + rH.includes(i) && (this.visibility = i), /[$*]/.exec(s) && (r = s), this.id = e.substring( this.visibility === "" ? 0 : 1, r === "" ? n : n - 1 ); @@ -90267,7 +90289,7 @@ var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { } }, (() => { x(Fb, "ClassMember"); -})(), Fb), LC = "classId-", cP = [], Ni = /* @__PURE__ */ new Map(), Gk = [], nH = 0, Ju = /* @__PURE__ */ new Map(), q9 = 0, B2 = [], k0 = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), S0 = /* @__PURE__ */ x(function(t) { +})(), Fb), RC = "classId-", cP = [], Ii = /* @__PURE__ */ new Map(), Hk = [], iH = 0, Ju = /* @__PURE__ */ new Map(), Q9 = 0, B2 = [], k0 = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), S0 = /* @__PURE__ */ x(function(t) { const e = at.sanitizeText(t, be()); let r = "", n = e; if (e.indexOf("~") > 0) { @@ -90275,17 +90297,17 @@ var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { n = k0(i[0]), r = k0(i[1]); } return { className: n, type: r }; -}, "splitClassNameAndType"), YHt = /* @__PURE__ */ x(function(t, e) { +}, "splitClassNameAndType"), WHt = /* @__PURE__ */ x(function(t, e) { const r = at.sanitizeText(t, be()); e && (e = k0(e)); const { className: n } = S0(r); - Ni.get(n).label = e; -}, "setClassLabel"), Hk = /* @__PURE__ */ x(function(t) { + Ii.get(n).label = e; +}, "setClassLabel"), Xk = /* @__PURE__ */ x(function(t) { const e = at.sanitizeText(t, be()), { className: r, type: n } = S0(e); - if (Ni.has(r)) + if (Ii.has(r)) return; const i = at.sanitizeText(r, be()); - Ni.set(i, { + Ii.set(i, { id: i, type: n, label: i, @@ -90294,78 +90316,78 @@ var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { members: [], annotations: [], styles: [], - domId: LC + i + "-" + nH - }), nH++; -}, "addClass"), Oge = /* @__PURE__ */ x(function(t) { + domId: RC + i + "-" + iH + }), iH++; +}, "addClass"), kge = /* @__PURE__ */ x(function(t) { const e = at.sanitizeText(t, be()); - if (Ni.has(e)) - return Ni.get(e).domId; + if (Ii.has(e)) + return Ii.get(e).domId; throw new Error("Class not found: " + e); -}, "lookUpDomId"), WHt = /* @__PURE__ */ x(function() { - cP = [], Ni = /* @__PURE__ */ new Map(), Gk = [], B2 = [], B2.push(Sge), Ju = /* @__PURE__ */ new Map(), q9 = 0, hP = "TB", Xi(); -}, "clear"), GHt = /* @__PURE__ */ x(function(t) { - return Ni.get(t); -}, "getClass"), HHt = /* @__PURE__ */ x(function() { - return Ni; -}, "getClasses"), XHt = /* @__PURE__ */ x(function() { +}, "lookUpDomId"), GHt = /* @__PURE__ */ x(function() { + cP = [], Ii = /* @__PURE__ */ new Map(), Hk = [], B2 = [], B2.push(Tge), Ju = /* @__PURE__ */ new Map(), Q9 = 0, hP = "TB", Xi(); +}, "clear"), HHt = /* @__PURE__ */ x(function(t) { + return Ii.get(t); +}, "getClass"), XHt = /* @__PURE__ */ x(function() { + return Ii; +}, "getClasses"), ZHt = /* @__PURE__ */ x(function() { return cP; -}, "getRelations"), ZHt = /* @__PURE__ */ x(function() { - return Gk; -}, "getNotes"), jHt = /* @__PURE__ */ x(function(t) { - X.debug("Adding relation: " + JSON.stringify(t)), Hk(t.id1), Hk(t.id2), t.id1 = S0(t.id1).className, t.id2 = S0(t.id2).className, t.relationTitle1 = at.sanitizeText(t.relationTitle1.trim(), be()), t.relationTitle2 = at.sanitizeText(t.relationTitle2.trim(), be()), cP.push(t); -}, "addRelation"), KHt = /* @__PURE__ */ x(function(t, e) { +}, "getRelations"), jHt = /* @__PURE__ */ x(function() { + return Hk; +}, "getNotes"), KHt = /* @__PURE__ */ x(function(t) { + X.debug("Adding relation: " + JSON.stringify(t)), Xk(t.id1), Xk(t.id2), t.id1 = S0(t.id1).className, t.id2 = S0(t.id2).className, t.relationTitle1 = at.sanitizeText(t.relationTitle1.trim(), be()), t.relationTitle2 = at.sanitizeText(t.relationTitle2.trim(), be()), cP.push(t); +}, "addRelation"), JHt = /* @__PURE__ */ x(function(t, e) { const r = S0(t).className; - Ni.get(r).annotations.push(e); -}, "addAnnotation"), kge = /* @__PURE__ */ x(function(t, e) { - Hk(t); - const r = S0(t).className, n = Ni.get(r); + Ii.get(r).annotations.push(e); +}, "addAnnotation"), Sge = /* @__PURE__ */ x(function(t, e) { + Xk(t); + const r = S0(t).className, n = Ii.get(r); if (typeof e == "string") { const i = e.trim(); - i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(k0(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new rH(i, "method")) : i && n.members.push(new rH(i, "attribute")); + i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(k0(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new nH(i, "method")) : i && n.members.push(new nH(i, "attribute")); } -}, "addMember"), JHt = /* @__PURE__ */ x(function(t, e) { - Array.isArray(e) && (e.reverse(), e.forEach((r) => kge(t, r))); -}, "addMembers"), eXt = /* @__PURE__ */ x(function(t, e) { +}, "addMember"), eXt = /* @__PURE__ */ x(function(t, e) { + Array.isArray(e) && (e.reverse(), e.forEach((r) => Sge(t, r))); +}, "addMembers"), tXt = /* @__PURE__ */ x(function(t, e) { const r = { - id: `note${Gk.length}`, + id: `note${Hk.length}`, class: e, text: t }; - Gk.push(r); -}, "addNote"), tXt = /* @__PURE__ */ x(function(t) { + Hk.push(r); +}, "addNote"), rXt = /* @__PURE__ */ x(function(t) { return t.startsWith(":") && (t = t.substring(1)), k0(t.trim()); }, "cleanupLabel"), uP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = r; - /\d/.exec(r[0]) && (n = LC + n); - const i = Ni.get(n); + /\d/.exec(r[0]) && (n = RC + n); + const i = Ii.get(n); i && i.cssClasses.push(e); }); -}, "setCssClass"), rXt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), nXt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { - e !== void 0 && (Ni.get(r).tooltip = k0(e)); + e !== void 0 && (Ii.get(r).tooltip = k0(e)); }); -}, "setTooltip"), nXt = /* @__PURE__ */ x(function(t, e) { - return e && Ju.has(e) ? Ju.get(e).classes.get(t).tooltip : Ni.get(t).tooltip; -}, "getTooltip"), iXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setTooltip"), iXt = /* @__PURE__ */ x(function(t, e) { + return e && Ju.has(e) ? Ju.get(e).classes.get(t).tooltip : Ii.get(t).tooltip; +}, "getTooltip"), sXt = /* @__PURE__ */ x(function(t, e, r) { const n = be(); t.split(",").forEach(function(i) { let s = i; - /\d/.exec(i[0]) && (s = LC + s); - const a = Ni.get(s); + /\d/.exec(i[0]) && (s = RC + s); + const a = Ii.get(s); a && (a.link = sr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = k0(r) : a.linkTarget = "_blank"); }), uP(t, "clickable"); -}, "setLink"), sXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setLink"), aXt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - aXt(n, e, r), Ni.get(n).haveCallback = !0; + oXt(n, e, r), Ii.get(n).haveCallback = !0; }), uP(t, "clickable"); -}, "setClickEvent"), aXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickEvent"), oXt = /* @__PURE__ */ x(function(t, e, r) { const n = at.sanitizeText(t, be()); if (be().securityLevel !== "loose" || e === void 0) return; const s = n; - if (Ni.has(s)) { - const a = Oge(s); + if (Ii.has(s)) { + const a = kge(s); let o = []; if (typeof r == "string") { o = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); @@ -90385,20 +90407,20 @@ var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { ); }); } -}, "setClickFunc"), oXt = /* @__PURE__ */ x(function(t) { +}, "setClickFunc"), lXt = /* @__PURE__ */ x(function(t) { B2.forEach(function(e) { e(t); }); -}, "bindFunctions"), lXt = { +}, "bindFunctions"), cXt = { LINE: 0, DOTTED_LINE: 1 -}, cXt = { +}, uXt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3, LOLLIPOP: 4 -}, Sge = /* @__PURE__ */ x(function(t) { +}, Tge = /* @__PURE__ */ x(function(t) { let e = et(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = et("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), et(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = et(this); @@ -90410,69 +90432,69 @@ var wge = U9, tH = ["#", "+", "~", "-", ""], Fb, rH = (Fb = class { e.transition().duration(500).style("opacity", 0), et(this).classed("hover", !1); }); }, "setupToolTips"); -B2.push(Sge); -var hP = "TB", uXt = /* @__PURE__ */ x(() => hP, "getDirection"), hXt = /* @__PURE__ */ x((t) => { +B2.push(Tge); +var hP = "TB", hXt = /* @__PURE__ */ x(() => hP, "getDirection"), fXt = /* @__PURE__ */ x((t) => { hP = t; -}, "setDirection"), fXt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), dXt = /* @__PURE__ */ x(function(t) { Ju.has(t) || (Ju.set(t, { id: t, classes: /* @__PURE__ */ new Map(), children: {}, - domId: LC + t + "-" + q9 - }), q9++); -}, "addNamespace"), dXt = /* @__PURE__ */ x(function(t) { + domId: RC + t + "-" + Q9 + }), Q9++); +}, "addNamespace"), pXt = /* @__PURE__ */ x(function(t) { return Ju.get(t); -}, "getNamespace"), pXt = /* @__PURE__ */ x(function() { +}, "getNamespace"), gXt = /* @__PURE__ */ x(function() { return Ju; -}, "getNamespaces"), gXt = /* @__PURE__ */ x(function(t, e) { +}, "getNamespaces"), mXt = /* @__PURE__ */ x(function(t, e) { if (!!Ju.has(t)) for (const r of e) { const { className: n } = S0(r); - Ni.get(n).parent = t, Ju.get(t).classes.set(n, Ni.get(n)); + Ii.get(n).parent = t, Ju.get(t).classes.set(n, Ii.get(n)); } -}, "addClassesToNamespace"), mXt = /* @__PURE__ */ x(function(t, e) { - const r = Ni.get(t); +}, "addClassesToNamespace"), vXt = /* @__PURE__ */ x(function(t, e) { + const r = Ii.get(t); if (!(!e || !r)) for (const n of e) n.includes(",") ? r.styles.push(...n.split(",")) : r.styles.push(n); -}, "setCssStyle"), Xk = { +}, "setCssStyle"), Zk = { setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().class, "getConfig"), - addClass: Hk, - bindFunctions: oXt, - clear: WHt, - getClass: GHt, - getClasses: HHt, - getNotes: ZHt, - addAnnotation: KHt, - addNote: eXt, - getRelations: XHt, - addRelation: jHt, - getDirection: uXt, - setDirection: hXt, - addMember: kge, - addMembers: JHt, - cleanupLabel: tXt, - lineType: lXt, - relationType: cXt, - setClickEvent: sXt, + addClass: Xk, + bindFunctions: lXt, + clear: GHt, + getClass: HHt, + getClasses: XHt, + getNotes: jHt, + addAnnotation: JHt, + addNote: tXt, + getRelations: ZHt, + addRelation: KHt, + getDirection: hXt, + setDirection: fXt, + addMember: Sge, + addMembers: eXt, + cleanupLabel: rXt, + lineType: cXt, + relationType: uXt, + setClickEvent: aXt, setCssClass: uP, - setLink: iXt, - getTooltip: nXt, - setTooltip: rXt, - lookUpDomId: Oge, + setLink: sXt, + getTooltip: iXt, + setTooltip: nXt, + lookUpDomId: kge, setDiagramTitle: fa, getDiagramTitle: xs, - setClassLabel: YHt, - addNamespace: fXt, - addClassesToNamespace: gXt, - getNamespace: dXt, - getNamespaces: pXt, - setCssStyle: mXt -}, vXt = /* @__PURE__ */ x((t) => `g.classGroup text { + setClassLabel: WHt, + addNamespace: dXt, + addClassesToNamespace: mXt, + getNamespace: pXt, + getNamespaces: gXt, + setCssStyle: vXt +}, yXt = /* @__PURE__ */ x((t) => `g.classGroup text { fill: ${t.nodeBorder || t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -90626,7 +90648,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Tge = vXt, iH = 0, yXt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), Cge = yXt, sH = 0, bXt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -90646,7 +90668,7 @@ g.classGroup line { return b.x; }).y(function(b) { return b.y; - }).curve(X1), l = t.append("path").attr("d", o(a)).attr("id", "edge" + iH).attr("class", "relation"); + }).curve(X1), l = t.append("path").attr("d", o(a)).attr("id", "edge" + sH).attr("class", "relation"); let u = ""; n.arrowMarkerAbsolute && (u = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, u = u.replace(/\(/g, "\\("), u = u.replace(/\)/g, "\\)")), r.relation.lineType == 1 && l.attr("class", "relation dashed-line"), r.relation.lineType == 10 && l.attr("class", "relation dotted-line"), r.relation.type1 !== "none" && l.attr( "marker-start", @@ -90678,8 +90700,8 @@ g.classGroup line { const O = w.node().getBBox(); b.insert("rect", ":first-child").attr("class", "box").attr("x", O.x - n.padding / 2).attr("y", O.y - n.padding / 2).attr("width", O.width + n.padding).attr("height", O.height + n.padding); } - X.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), iH++; -}, "drawEdge"), bXt = /* @__PURE__ */ x(function(t, e, r, n) { + X.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), sH++; +}, "drawEdge"), xXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering class ", e, r); const i = e.id, s = { id: i, @@ -90694,7 +90716,7 @@ g.classGroup line { const O = o.append("tspan").text("\xAB" + w + "\xBB"); l || O.attr("dy", r.textHeight), l = !1; }); - let u = Cge(e); + let u = Ege(e); const h = o.append("tspan").text(u).attr("class", "title"); l || h.attr("dy", r.textHeight); const f = o.node().getBBox().height; @@ -90703,14 +90725,14 @@ g.classGroup line { d = a.append("line").attr("x1", 0).attr("y1", r.padding + f + r.dividerMargin / 2).attr("y2", r.padding + f + r.dividerMargin / 2); const w = a.append("text").attr("x", r.padding).attr("y", f + r.dividerMargin + r.textHeight).attr("fill", "white").attr("class", "classText"); l = !0, e.members.forEach(function(O) { - sH(w, O, l, r), l = !1; + aH(w, O, l, r), l = !1; }), p = w.node().getBBox(); } if (e.methods.length > 0) { g = a.append("line").attr("x1", 0).attr("y1", r.padding + f + r.dividerMargin + p.height).attr("y2", r.padding + f + r.dividerMargin + p.height); const w = a.append("text").attr("x", r.padding).attr("y", f + 2 * r.dividerMargin + p.height + r.textHeight).attr("fill", "white").attr("class", "classText"); l = !0, e.methods.forEach(function(O) { - sH(w, O, l, r), l = !1; + aH(w, O, l, r), l = !1; }); } const m = a.node().getBBox(); @@ -90720,10 +90742,10 @@ g.classGroup line { return o.node().childNodes.forEach(function(w) { w.setAttribute("x", (b - w.getBBox().width) / 2); }), e.tooltip && o.insert("title").text(e.tooltip), d && d.attr("x2", b), g && g.attr("x2", b), s.width = b, s.height = m.height + r.padding + 0.5 * r.dividerMargin, s; -}, "drawClass"), Cge = /* @__PURE__ */ x(function(t) { +}, "drawClass"), Ege = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + ny(t.type) + ">"), e; -}, "getClassTitleString"), xXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getClassTitleString"), wXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering note ", e, r); const i = e.id, s = { id: i, @@ -90744,29 +90766,29 @@ g.classGroup line { return o.node().childNodes.forEach(function(d) { d.setAttribute("x", (f - d.getBBox().width) / 2); }), s.width = f, s.height = u.height + l.length * r.textHeight + r.padding + 0.5 * r.dividerMargin, s; -}, "drawNote"), sH = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawNote"), aH = /* @__PURE__ */ x(function(t, e, r, n) { const { displayText: i, cssStyle: s } = e.getDisplayDetails(), a = t.append("tspan").attr("x", n.padding).text(i); s !== "" && a.attr("style", e.cssStyle), r || a.attr("dy", n.textHeight); -}, "addTspan"), W_ = { - getClassTitleString: Cge, - drawClass: bXt, - drawEdge: yXt, - drawNote: xXt +}, "addTspan"), G_ = { + getClassTitleString: Ege, + drawClass: xXt, + drawEdge: bXt, + drawNote: wXt }, e5 = {}, RO = 20, nv = /* @__PURE__ */ x(function(t) { const e = Object.entries(e5).find((r) => r[1].label === t); if (e) return e[0]; -}, "getGraphId"), wXt = /* @__PURE__ */ x(function(t) { +}, "getGraphId"), OXt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), t.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), OXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), kXt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().class; e5 = {}, X.info("Rendering diagram " + t); const s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); const o = et(s === "sandbox" ? a.nodes()[0].contentDocument.body : "body"), l = o.select(`[id='${e}']`); - wXt(l); - const u = new $i({ + OXt(l); + const u = new Bi({ multigraph: !0 }); u.setGraph({ @@ -90776,7 +90798,7 @@ g.classGroup line { }); const h = n.db.getClasses(), f = [...h.keys()]; for (const b of f) { - const w = h.get(b), O = W_.drawClass(l, w, i, n); + const w = h.get(b), O = G_.drawClass(l, w, i, n); e5[O.id] = O, u.setNode(O.id, O), X.info("Org height: " + O.height); } n.db.getRelations().forEach(function(b) { @@ -90792,7 +90814,7 @@ g.classGroup line { ); }), n.db.getNotes().forEach(function(b) { X.debug(`Adding note: ${JSON.stringify(b)}`); - const w = W_.drawNote(l, b, i, n); + const w = G_.drawNote(l, b, i, n); e5[w.id] = w, u.setNode(w.id, w), b.class && h.has(b.class) && u.setEdge( b.id, nv(b.class), @@ -90815,62 +90837,62 @@ g.classGroup line { "translate(" + (u.node(b).x - u.node(b).width / 2) + "," + (u.node(b).y - u.node(b).height / 2) + " )" )); }), u.edges().forEach(function(b) { - b !== void 0 && u.edge(b) !== void 0 && (X.debug("Edge " + b.v + " -> " + b.w + ": " + JSON.stringify(u.edge(b))), W_.drawEdge(l, u.edge(b), u.edge(b).relation, i, n)); + b !== void 0 && u.edge(b) !== void 0 && (X.debug("Edge " + b.v + " -> " + b.w + ": " + JSON.stringify(u.edge(b))), G_.drawEdge(l, u.edge(b), u.edge(b).relation, i, n)); }); const g = l.node().getBBox(), m = g.width + RO * 2, v = g.height + RO * 2; ms(l, v, m, i.useMaxWidth); const y = `${g.x - RO} ${g.y - RO} ${m} ${v}`; X.debug(`viewBox ${y}`), l.attr("viewBox", y); -}, "draw"), kXt = { - draw: OXt -}, SXt = { - parser: wge, - db: Xk, - renderer: kXt, - styles: Tge, +}, "draw"), SXt = { + draw: kXt +}, TXt = { + parser: Oge, + db: Zk, + renderer: SXt, + styles: Cge, init: /* @__PURE__ */ x((t) => { - t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Xk.clear(); + t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Zk.clear(); }, "init") }; -const TXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const CXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: SXt + diagram: TXt }, Symbol.toStringTag, { value: "Module" })); -var CXt = /* @__PURE__ */ x((t, e, r, n) => { +var EXt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - PXt[i](t, r, n); + $Xt[i](t, r, n); }); -}, "insertMarkers"), EXt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), _Xt = /* @__PURE__ */ x((t, e, r) => { X.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), _Xt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), AXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), AXt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), LXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), LXt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), RXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), RXt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), MXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), MXt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), DXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "point"), DXt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), NXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "circle"), NXt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), IXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"); -}, "cross"), IXt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), PXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), PXt = { - extension: EXt, - composition: _Xt, - aggregation: AXt, - dependency: LXt, - lollipop: RXt, - point: MXt, - circle: DXt, - cross: NXt, - barb: IXt -}, Ege = CXt, $Xt = /* @__PURE__ */ x((t, e, r, n, i) => { - e.arrowTypeStart && aH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && aH(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), BXt = { +}, "barb"), $Xt = { + extension: _Xt, + composition: AXt, + aggregation: LXt, + dependency: RXt, + lollipop: MXt, + point: DXt, + circle: NXt, + cross: IXt, + barb: PXt +}, _ge = EXt, BXt = /* @__PURE__ */ x((t, e, r, n, i) => { + e.arrowTypeStart && oH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && oH(t, "end", e.arrowTypeEnd, r, n, i); +}, "addEdgeMarkers"), FXt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -90880,17 +90902,17 @@ var CXt = /* @__PURE__ */ x((t, e, r, n) => { composition: "composition", dependency: "dependency", lollipop: "lollipop" -}, aH = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = BXt[r]; +}, oH = /* @__PURE__ */ x((t, e, r, n, i, s) => { + const a = FXt[r]; if (!a) { X.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), Zk = {}, rs = {}, FXt = /* @__PURE__ */ x(() => { - Zk = {}, rs = {}; -}, "clear"), _ge = /* @__PURE__ */ x((t, e) => { +}, "addEdgeMarker"), jk = {}, rs = {}, zXt = /* @__PURE__ */ x(() => { + jk = {}, rs = {}; +}, "clear"), Age = /* @__PURE__ */ x((t, e) => { const r = be(), n = bn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? jc( t, e.label, @@ -90907,7 +90929,7 @@ var CXt = /* @__PURE__ */ x((t, e, r, n) => { const u = i.children[0], h = et(i); o = u.getBoundingClientRect(), h.attr("width", o.width), h.attr("height", o.height); } - a.attr("transform", "translate(" + -o.width / 2 + ", " + -o.height / 2 + ")"), Zk[e.id] = s, e.width = o.width, e.height = o.height; + a.attr("transform", "translate(" + -o.width / 2 + ", " + -o.height / 2 + ")"), jk[e.id] = s, e.width = o.width, e.height = o.height; let l; if (e.startLabelLeft) { const u = _a(e.startLabelLeft, e.labelStyle), h = t.insert("g").attr("class", "edgeTerminals"), f = h.insert("g").attr("class", "inner"); @@ -90939,12 +90961,12 @@ function Mv(t, e) { be().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(Mv, "setTerminalWidth"); -var Age = /* @__PURE__ */ x((t, e) => { - X.debug("Moving label abc88 ", t.id, t.label, Zk[t.id], e); +var Lge = /* @__PURE__ */ x((t, e) => { + X.debug("Moving label abc88 ", t.id, t.label, jk[t.id], e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = be(), { subGraphTitleTotalMargin: i } = F0(n); if (t.label) { - const s = Zk[t.id]; + const s = jk[t.id]; let a = t.x, o = t.y; if (r) { const l = sr.calcLabelPosition(r); @@ -91002,10 +91024,10 @@ var Age = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), zXt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), VXt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), VXt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), UXt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -91026,12 +91048,12 @@ var Age = /* @__PURE__ */ x((t, e) => { let f = u * o / h, d = r.x < e.x ? r.x + h - o : r.x - h + o, p = r.y < e.y ? r.y + f : r.y - f; return X.debug(`sides calc abc89, Q ${u}, q ${f}, R ${h}, r ${o}`, { _x: d, _y: p }), o === 0 && (d = e.x, p = e.y), h === 0 && (d = e.x), u === 0 && (p = e.y), { x: d, y: p }; } -}, "intersection"), oH = /* @__PURE__ */ x((t, e) => { +}, "intersection"), lH = /* @__PURE__ */ x((t, e) => { X.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (!zXt(e, s) && !i) { - const a = VXt(e, n, s); + if (!VXt(e, s) && !i) { + const a = UXt(e, n, s); let o = !1; r.forEach((l) => { o = o || l.x === a.x && l.y === a.y; @@ -91039,17 +91061,17 @@ var Age = /* @__PURE__ */ x((t, e) => { } else n = s, i || r.push(s); }), r; -}, "cutPathAtIntersect"), Lge = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "cutPathAtIntersect"), Rge = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = r.points; X.debug("abc88 InsertEdge: edge=", r, "e=", e); let l = !1; const u = s.node(e.v); var h = s.node(e.w); - (h == null ? void 0 : h.intersect) && (u == null ? void 0 : u.intersect) && (o = o.slice(1, r.points.length - 1), o.unshift(u.intersect(o[0])), o.push(h.intersect(o[o.length - 1]))), r.toCluster && (X.debug("to cluster abc88", n[r.toCluster]), o = oH(r.points, n[r.toCluster].node), l = !0), r.fromCluster && (X.debug("from cluster abc88", n[r.fromCluster]), o = oH(o.reverse(), n[r.fromCluster].node).reverse(), l = !0); + (h == null ? void 0 : h.intersect) && (u == null ? void 0 : u.intersect) && (o = o.slice(1, r.points.length - 1), o.unshift(u.intersect(o[0])), o.push(h.intersect(o[o.length - 1]))), r.toCluster && (X.debug("to cluster abc88", n[r.toCluster]), o = lH(r.points, n[r.toCluster].node), l = !0), r.fromCluster && (X.debug("from cluster abc88", n[r.fromCluster]), o = lH(o.reverse(), n[r.fromCluster].node).reverse(), l = !0); const f = o.filter((O) => !Number.isNaN(O.y)); let d = X1; r.curve && (i === "graph" || i === "flowchart") && (d = r.curve); - const { x: p, y: g } = Pie(r), m = vf().x(p).y(g).curve(d); + const { x: p, y: g } = $ie(r), m = vf().x(p).y(g).curve(d); let v; switch (r.thickness) { case "normal": @@ -91077,12 +91099,12 @@ var Age = /* @__PURE__ */ x((t, e) => { } const y = t.append("path").attr("d", m(f)).attr("id", r.id).attr("class", " " + v + (r.classes ? " " + r.classes : "")).attr("style", r.style); let b = ""; - (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), $Xt(y, r, b, a, i); + (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), BXt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), hr = {}, yl = {}, Rge = {}, UXt = /* @__PURE__ */ x(() => { - yl = {}, Rge = {}, hr = {}; -}, "clear"), jk = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), qXt = /* @__PURE__ */ x((t, e) => (X.info("Descendants of ", e, " is ", yl[e]), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : yl[e] ? yl[e].includes(t.v) || jk(t.v, e) || jk(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), Mge = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), hr = {}, yl = {}, Mge = {}, qXt = /* @__PURE__ */ x(() => { + yl = {}, Mge = {}, hr = {}; +}, "clear"), Kk = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), QXt = /* @__PURE__ */ x((t, e) => (X.info("Descendants of ", e, " is ", yl[e]), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : yl[e] ? yl[e].includes(t.v) || Kk(t.v, e) || Kk(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), Dge = /* @__PURE__ */ x((t, e, r, n) => { X.warn( "Copying children of ", t, @@ -91095,7 +91117,7 @@ var Age = /* @__PURE__ */ x((t, e) => { const i = e.children(t) || []; t !== n && i.push(t), X.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - Mge(s, e, r, n); + Dge(s, e, r, n); else { const a = e.node(s); X.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (X.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (X.debug("Setting parent", s, t), r.setParent(s, t)) : (X.info("In copy ", t, "root", n, "data", e.node(t), n), X.debug( @@ -91112,7 +91134,7 @@ var Age = /* @__PURE__ */ x((t, e) => { const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - qXt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( + QXt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( "Skipping copy of edge ", l.v, "-->", @@ -91129,11 +91151,11 @@ var Age = /* @__PURE__ */ x((t, e) => { } X.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), Dge = /* @__PURE__ */ x((t, e) => { +}, "copy"), Nge = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - Rge[i] = t, n = [...n, ...Dge(i, e)]; + Mge[i] = t, n = [...n, ...Nge(i, e)]; return n; }, "extractDescendants"), F2 = /* @__PURE__ */ x((t, e) => { X.trace("Searching", t); @@ -91145,7 +91167,7 @@ var Age = /* @__PURE__ */ x((t, e) => { if (i) return X.trace("Found replacement for", t, " => ", i), i; } -}, "findNonClusterChild"), MO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), QXt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), MO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), YXt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -91157,12 +91179,12 @@ var Age = /* @__PURE__ */ x((t, e) => { r, " Replacement id in edges: ", F2(r, t) - ), yl[r] = Dge(r, t), hr[r] = { id: F2(r, t), clusterData: t.node(r) }); + ), yl[r] = Nge(r, t), hr[r] = { id: F2(r, t), clusterData: t.node(r) }); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (X.debug("Cluster identified", r, yl), i.forEach((s) => { if (s.v !== r && s.w !== r) { - const a = jk(s.v, r), o = jk(s.w, r); + const a = Kk(s.v, r), o = Kk(s.w, r); a ^ o && (X.warn("Edge: ", s, " leaves cluster ", r), X.warn("Descendants of XXX ", r, ": ", yl[r]), hr[r].externalConnections = !0); } })) : X.debug("Not a cluster ", r, yl); @@ -91210,8 +91232,8 @@ var Age = /* @__PURE__ */ x((t, e) => { } X.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), X.warn("Adjusted Graph", di(t)), Nge(t, 0), X.trace(hr); -}, "adjustClustersAndEdges"), Nge = /* @__PURE__ */ x((t, e) => { + }), X.warn("Adjusted Graph", di(t)), Ige(t, 0), X.trace(hr); +}, "adjustClustersAndEdges"), Ige = /* @__PURE__ */ x((t, e) => { var i, s; if (X.warn("extractor - ", e, di(t), t.children("D")), e > 10) { X.error("Bailing out"); @@ -91248,7 +91270,7 @@ var Age = /* @__PURE__ */ x((t, e) => { ); let l = t.graph().rankdir === "TB" ? "LR" : "TB"; (s = (i = hr[a]) == null ? void 0 : i.clusterData) != null && s.dir && (l = hr[a].clusterData.dir, X.warn("Fixing dir", hr[a].clusterData.dir, l)); - const u = new $i({ + const u = new Bi({ multigraph: !0, compound: !0 }).setGraph({ @@ -91260,7 +91282,7 @@ var Age = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }); - X.warn("Old graph before copy", di(t)), Mge(a, t, u, a), t.setNode(a, { + X.warn("Old graph before copy", di(t)), Dge(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: hr[a].clusterData, @@ -91283,17 +91305,17 @@ var Age = /* @__PURE__ */ x((t, e) => { r = t.nodes(), X.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - X.warn(" Now next level", a, o), o.clusterNode && Nge(o.graph, e + 1); + X.warn(" Now next level", a, o), o.clusterNode && Ige(o.graph, e + 1); } -}, "extractor"), Ige = /* @__PURE__ */ x((t, e) => { +}, "extractor"), Pge = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign(e); return e.forEach((n) => { - const i = t.children(n), s = Ige(t, i); + const i = t.children(n), s = Pge(t, i); r = [...r, ...s]; }), r; -}, "sorter"), YXt = /* @__PURE__ */ x((t) => Ige(t, t.children()), "sortNodesByHierarchy"), WXt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), WXt = /* @__PURE__ */ x((t) => Pge(t, t.children()), "sortNodesByHierarchy"), GXt = /* @__PURE__ */ x((t, e) => { X.info("Creating subgraph rect for ", e.id, e); const r = be(), n = t.insert("g").attr("class", "cluster" + (e.class ? " " + e.class : "")).attr("id", e.id), i = n.insert("rect", ":first-child"), s = bn(r.flowchart.htmlLabels), a = n.insert("g").attr("class", "cluster-label"), o = e.labelType === "markdown" ? jc(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -91315,14 +91337,14 @@ var Age = /* @__PURE__ */ x((t, e) => { return e.width = p.width, e.height = p.height, e.intersect = function(g) { return Lx(e, g); }, n; -}, "rect"), GXt = /* @__PURE__ */ x((t, e) => { +}, "rect"), HXt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return Lx(e, o); }, r; -}, "noteGroup"), HXt = /* @__PURE__ */ x((t, e) => { +}, "noteGroup"), XXt = /* @__PURE__ */ x((t, e) => { const r = be(), n = t.insert("g").attr("class", e.classes).attr("id", e.id), i = n.insert("rect", ":first-child"), s = n.insert("g").attr("class", "cluster-label"), a = n.append("rect"), o = s.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); if (bn(r.flowchart.htmlLabels)) { @@ -91341,20 +91363,20 @@ var Age = /* @__PURE__ */ x((t, e) => { return e.height = p.height, e.intersect = function(g) { return Lx(e, g); }, n; -}, "roundedWithTitle"), XXt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), ZXt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", e.classes).attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("class", "divider").attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2).attr("width", e.width + i).attr("height", e.height + i); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.diff = -e.padding / 2, e.intersect = function(o) { return Lx(e, o); }, r; -}, "divider"), ZXt = { rect: WXt, roundedWithTitle: HXt, noteGroup: GXt, divider: XXt }, Pge = {}, jXt = /* @__PURE__ */ x((t, e) => { +}, "divider"), jXt = { rect: GXt, roundedWithTitle: XXt, noteGroup: HXt, divider: ZXt }, $ge = {}, KXt = /* @__PURE__ */ x((t, e) => { X.trace("Inserting cluster"); const r = e.shape || "rect"; - Pge[e.id] = ZXt[r](t, e); -}, "insertCluster"), KXt = /* @__PURE__ */ x(() => { - Pge = {}; -}, "clear"), $ge = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { + $ge[e.id] = jXt[r](t, e); +}, "insertCluster"), JXt = /* @__PURE__ */ x(() => { + $ge = {}; +}, "clear"), Bge = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.info("Graph in recursive render: XXX", di(e), i); const a = e.graph().rankdir; X.trace("Dir in recursive render - dir:", a); @@ -91376,7 +91398,7 @@ var Age = /* @__PURE__ */ x((t, e) => { ranksep: v, nodesep: y }); - const b = await $ge( + const b = await Bge( f, m.graph, r, @@ -91384,19 +91406,19 @@ var Age = /* @__PURE__ */ x((t, e) => { e.node(g), s ), w = b.elem; - Fn(m, w), m.diff = b.diff || 0, X.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), NPt(w, m), X.warn("Recursive render complete ", w, m); + Fn(m, w), m.diff = b.diff || 0, X.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), IPt(w, m), X.warn("Recursive render complete ", w, m); } else e.children(g).length > 0 ? (X.info("Cluster - the non recursive path XXX", g, m.id, m, e), X.info(F2(m.id, e)), hr[m.id] = { id: F2(m.id, e), node: m }) : (X.info("Node - the non recursive path", g, m.id, m), await aI(f, e.node(g), a)); }) ), e.edges().forEach(async function(g) { const m = e.edge(g.v, g.w, g.name); - X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), X.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), X.info("Fix", hr, "ids:", g.v, g.w, "Translating: ", hr[g.v], hr[g.w]), await _ge(h, m); + X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), X.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), X.info("Fix", hr, "ids:", g.v, g.w, "Translating: ", hr[g.v], hr[g.w]), await Age(h, m); }), e.edges().forEach(function(g) { X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)); }), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("#############################################"), X.info("### Layout ###"), X.info("#############################################"), X.info(e), sm(e), X.info("Graph after layout:", JSON.stringify(di(e))); let d = 0; const { subGraphTitleTotalMargin: p } = F0(s); - return YXt(e).forEach(function(g) { + return WXt(e).forEach(function(g) { const m = e.node(g); X.info("Position " + g + ": " + JSON.stringify(e.node(g))), X.info( "Position " + g + ": (" + m.x, @@ -91405,26 +91427,26 @@ var Age = /* @__PURE__ */ x((t, e) => { m.width, " height: ", m.height - ), m != null && m.clusterNode ? (m.y += p, IL(m)) : e.children(g).length > 0 ? (m.height += p, jXt(l, m), hr[m.id].node = m) : (m.y += p / 2, IL(m)); + ), m != null && m.clusterNode ? (m.y += p, PL(m)) : e.children(g).length > 0 ? (m.height += p, KXt(l, m), hr[m.id].node = m) : (m.y += p / 2, PL(m)); }), e.edges().forEach(function(g) { const m = e.edge(g); X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(m), m), m.points.forEach((y) => y.y += p / 2); - const v = Lge(u, g, m, hr, r, e, n); - Age(m, v); + const v = Rge(u, g, m, hr, r, e, n); + Lge(m, v); }), e.nodes().forEach(function(g) { const m = e.node(g); X.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; -}, "recursiveRender"), JXt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - Ege(t, r, n, i), IPt(), FXt(), KXt(), UXt(), X.warn("Graph at first:", JSON.stringify(di(e))), QXt(e), X.warn("Graph after:", JSON.stringify(di(e))); +}, "recursiveRender"), eZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { + _ge(t, r, n, i), PPt(), zXt(), JXt(), qXt(), X.warn("Graph at first:", JSON.stringify(di(e))), YXt(e), X.warn("Graph after:", JSON.stringify(di(e))); const s = be(); - await $ge(t, e, n, i, void 0, s); -}, "render"), fP = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), Q9 = { + await Bge(t, e, n, i, void 0, s); +}, "render"), fP = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), Y9 = { dividerMargin: 10, padding: 5, textHeight: 10, curve: void 0 -}, eZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, tZt = /* @__PURE__ */ x(function(t, e, r, n) { X.info("keys:", [...t.keys()]), X.info(t), t.forEach(function(i) { var o, l, u; const a = { @@ -91436,9 +91458,9 @@ var Age = /* @__PURE__ */ x((t, e) => { style: "fill: none; stroke: black", padding: (u = (o = be().flowchart) == null ? void 0 : o.padding) != null ? u : (l = be().class) == null ? void 0 : l.padding }; - e.setNode(i.id, a), Bge(i.classes, e, r, n, i.id), X.info("setNode", a); + e.setNode(i.id, a), Fge(i.classes, e, r, n, i.id), X.info("setNode", a); }); -}, "addNamespaces"), Bge = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addNamespaces"), Fge = /* @__PURE__ */ x(function(t, e, r, n, i) { X.info("keys:", [...t.keys()]), X.info(t), [...t.values()].filter((s) => s.parent === i).forEach(function(s) { var d, p, g, m; const a = s.cssClasses.join(" "), o = mx(s.styles), l = (d = s.label) != null ? d : s.id, u = 0, h = "class_box", f = { @@ -91461,7 +91483,7 @@ var Age = /* @__PURE__ */ x((t, e) => { }; e.setNode(s.id, f), i && e.setParent(s.id, i), X.info("setNode", f); }); -}, "addClasses"), tZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addClasses"), rZt = /* @__PURE__ */ x(function(t, e, r, n) { X.info(t), t.forEach(function(i, s) { var m, v, y; const a = i, o = "", l = { labelStyle: "", style: "" }, u = a.text, h = 0, f = "note", d = { @@ -91492,11 +91514,11 @@ var Age = /* @__PURE__ */ x((t, e) => { arrowTypeEnd: "none", style: "fill:none", labelStyle: "", - curve: gx(Q9.curve, ET) + curve: gx(Y9.curve, _T) }; e.setEdge(a.id, a.class, g, p); }); -}, "addNotes"), rZt = /* @__PURE__ */ x(function(t, e) { +}, "addNotes"), nZt = /* @__PURE__ */ x(function(t, e) { const r = be().flowchart; let n = 0; t.forEach(function(i) { @@ -91505,18 +91527,18 @@ var Age = /* @__PURE__ */ x((t, e) => { const s = { classes: "relation", pattern: i.relation.lineType == 1 ? "dashed" : "solid", - id: Sae(i.id1, i.id2, { + id: Tae(i.id1, i.id2, { prefix: "id", counter: n }), arrowhead: i.type === "arrow_open" ? "none" : "normal", startLabelRight: i.relationTitle1 === "none" ? "" : i.relationTitle1, endLabelLeft: i.relationTitle2 === "none" ? "" : i.relationTitle2, - arrowTypeStart: Y9(i.relation.type1), - arrowTypeEnd: Y9(i.relation.type2), + arrowTypeStart: W9(i.relation.type1), + arrowTypeEnd: W9(i.relation.type2), style: "fill:none", labelStyle: "", - curve: gx(r == null ? void 0 : r.curve, ET) + curve: gx(r == null ? void 0 : r.curve, _T) }; if (X.info(s, i), i.style !== void 0) { const l = mx(i.style); @@ -91525,17 +91547,17 @@ var Age = /* @__PURE__ */ x((t, e) => { i.text = i.title, i.text === void 0 ? i.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((o = (a = be().flowchart) == null ? void 0 : a.htmlLabels) != null ? o : be().htmlLabels) ? (s.labelType = "html", s.label = '' + i.text + "") : (s.labelType = "text", s.label = i.text.replace(at.lineBreakRegex, ` `), i.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(i.id1, i.id2, s, n); }); -}, "addRelations"), nZt = /* @__PURE__ */ x(function(t) { - Q9 = { - ...Q9, +}, "addRelations"), iZt = /* @__PURE__ */ x(function(t) { + Y9 = { + ...Y9, ...t }; -}, "setConf"), iZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "setConf"), sZt = /* @__PURE__ */ x(async function(t, e, r, n) { var y, b, w, O; X.info("Drawing class - ", e); const i = (y = be().flowchart) != null ? y : be().class, s = be().securityLevel; X.info("config:", i); - const a = (b = i == null ? void 0 : i.nodeSpacing) != null ? b : 50, o = (w = i == null ? void 0 : i.rankSpacing) != null ? w : 50, l = new $i({ + const a = (b = i == null ? void 0 : i.nodeSpacing) != null ? b : 50, o = (w = i == null ? void 0 : i.rankSpacing) != null ? w : 50, l = new Bi({ multigraph: !0, compound: !0 }).setGraph({ @@ -91547,11 +91569,11 @@ var Age = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }), u = n.db.getNamespaces(), h = n.db.getClasses(), f = n.db.getRelations(), d = n.db.getNotes(); - X.info(f), eZt(u, l, e, n), Bge(h, l, e, n), rZt(f, l), tZt(d, l, f.length + 1, h); + X.info(f), tZt(u, l, e, n), Fge(h, l, e, n), nZt(f, l), rZt(d, l, f.length + 1, h); let p; s === "sandbox" && (p = et("#i" + e)); const g = et(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), m = g.select(`[id="${e}"]`), v = g.select("#" + e + " g"); - if (await JXt( + if (await eZt( v, l, ["aggregation", "extension", "composition", "dependency", "lollipop"], @@ -91560,12 +91582,12 @@ var Age = /* @__PURE__ */ x((t, e) => { ), sr.insertTitle(m, "classTitleText", (O = i == null ? void 0 : i.titleTopMargin) != null ? O : 5, n.db.getDiagramTitle()), H1(l, m, i == null ? void 0 : i.diagramPadding, i == null ? void 0 : i.useMaxWidth), !(i != null && i.htmlLabels)) { const S = s === "sandbox" ? p.nodes()[0].contentDocument : document, C = S.querySelectorAll('[id="' + e + '"] .edgeLabel .label'); for (const T of C) { - const L = T.getBBox(), E = S.createElementNS("http://www.w3.org/2000/svg", "rect"); - E.setAttribute("rx", 0), E.setAttribute("ry", 0), E.setAttribute("width", L.width), E.setAttribute("height", L.height), T.insertBefore(E, T.firstChild); + const A = T.getBBox(), E = S.createElementNS("http://www.w3.org/2000/svg", "rect"); + E.setAttribute("rx", 0), E.setAttribute("ry", 0), E.setAttribute("width", A.width), E.setAttribute("height", A.height), T.insertBefore(E, T.firstChild); } } }, "draw"); -function Y9(t) { +function W9(t) { let e; switch (t) { case 0: @@ -91588,29 +91610,29 @@ function Y9(t) { } return e; } -x(Y9, "getArrowMarker"); -var sZt = { - setConf: nZt, - draw: iZt -}, aZt = { - parser: wge, - db: Xk, - renderer: sZt, - styles: Tge, +x(W9, "getArrowMarker"); +var aZt = { + setConf: iZt, + draw: sZt +}, oZt = { + parser: Oge, + db: Zk, + renderer: aZt, + styles: Cge, init: /* @__PURE__ */ x((t) => { - t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Xk.clear(); + t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Zk.clear(); }, "init") }; -const oZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const lZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: aZt + diagram: oZt }, Symbol.toStringTag, { value: "Module" })); -var W9 = function() { +var G9 = function() { var t = /* @__PURE__ */ x(function(D, P, F, B) { for (F = F || {}, B = D.length; B--; F[D[B]] = P) ; return F; - }, "o"), e = [1, 2], r = [1, 3], n = [1, 4], i = [2, 4], s = [1, 9], a = [1, 11], o = [1, 16], l = [1, 17], u = [1, 18], h = [1, 19], f = [1, 32], d = [1, 20], p = [1, 21], g = [1, 22], m = [1, 23], v = [1, 24], y = [1, 26], b = [1, 27], w = [1, 28], O = [1, 29], S = [1, 30], C = [1, 31], T = [1, 34], L = [1, 35], E = [1, 36], A = [1, 37], _ = [1, 33], R = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], $ = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], k = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], N = { + }, "o"), e = [1, 2], r = [1, 3], n = [1, 4], i = [2, 4], s = [1, 9], a = [1, 11], o = [1, 16], l = [1, 17], u = [1, 18], h = [1, 19], f = [1, 32], d = [1, 20], p = [1, 21], g = [1, 22], m = [1, 23], v = [1, 24], y = [1, 26], b = [1, 27], w = [1, 28], O = [1, 29], S = [1, 30], C = [1, 31], T = [1, 34], A = [1, 35], E = [1, 36], L = [1, 37], _ = [1, 33], R = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], $ = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], k = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], N = { trace: /* @__PURE__ */ x(function() { }, "trace"), yy: {}, @@ -91719,7 +91741,7 @@ var W9 = function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: e, 5: r, 6: n }, { 1: [3] }, { 3: 5, 4: e, 5: r, 6: n }, { 3: 6, 4: e, 5: r, 6: n }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: s, 5: a, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: L, 50: E, 51: A, 54: _ }, t(R, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: L, 50: E, 51: A, 54: _ }, t(R, [2, 7]), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(R, [2, 11]), t(R, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(R, [2, 16]), { 18: [1, 41] }, t(R, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(R, [2, 22]), t(R, [2, 23]), t(R, [2, 24]), t(R, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(R, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(R, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t($, [2, 42], { 55: [1, 54] }), t($, [2, 43], { 55: [1, 55] }), t(R, [2, 36]), t(R, [2, 37]), t(R, [2, 38]), t(R, [2, 39]), t(R, [2, 6]), t(R, [2, 13]), { 13: 56, 24: f, 54: _ }, t(R, [2, 17]), t(k, i, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(R, [2, 29]), t(R, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(R, [2, 14], { 14: [1, 67] }), { 4: s, 5: a, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 21: [1, 68], 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: L, 50: E, 51: A, 54: _ }, t(R, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(R, [2, 32]), t(R, [2, 33]), t(R, [2, 34]), t(R, [2, 35]), t($, [2, 44]), t($, [2, 45]), t(R, [2, 15]), t(R, [2, 19]), t(k, i, { 7: 72 }), t(R, [2, 26]), t(R, [2, 27]), { 4: s, 5: a, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 21: [1, 73], 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: L, 50: E, 51: A, 54: _ }, t(R, [2, 21])], + table: [{ 3: 1, 4: e, 5: r, 6: n }, { 1: [3] }, { 3: 5, 4: e, 5: r, 6: n }, { 3: 6, 4: e, 5: r, 6: n }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: s, 5: a, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: A, 50: E, 51: L, 54: _ }, t(R, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: A, 50: E, 51: L, 54: _ }, t(R, [2, 7]), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(R, [2, 11]), t(R, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(R, [2, 16]), { 18: [1, 41] }, t(R, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(R, [2, 22]), t(R, [2, 23]), t(R, [2, 24]), t(R, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(R, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(R, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t($, [2, 42], { 55: [1, 54] }), t($, [2, 43], { 55: [1, 55] }), t(R, [2, 36]), t(R, [2, 37]), t(R, [2, 38]), t(R, [2, 39]), t(R, [2, 6]), t(R, [2, 13]), { 13: 56, 24: f, 54: _ }, t(R, [2, 17]), t(k, i, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(R, [2, 29]), t(R, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(R, [2, 14], { 14: [1, 67] }), { 4: s, 5: a, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 21: [1, 68], 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: A, 50: E, 51: L, 54: _ }, t(R, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(R, [2, 32]), t(R, [2, 33]), t(R, [2, 34]), t(R, [2, 35]), t($, [2, 44]), t($, [2, 45]), t(R, [2, 15]), t(R, [2, 19]), t(k, i, { 7: 72 }), t(R, [2, 26]), t(R, [2, 27]), { 4: s, 5: a, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: o, 17: l, 19: u, 21: [1, 73], 22: h, 24: f, 25: d, 26: p, 27: g, 28: m, 29: v, 32: 25, 33: y, 35: b, 37: w, 38: O, 42: S, 45: C, 48: T, 49: A, 50: E, 51: L, 54: _ }, t(R, [2, 21])], defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] }, parseError: /* @__PURE__ */ x(function(P, F) { if (F.recoverable) @@ -92130,44 +92152,44 @@ Expecting ` + ve.join(", ") + ", got '" + (this.terminals_[Ae] || Ae) + "'" : re } return x(I, "Parser"), I.prototype = N, N.Parser = I, new I(); }(); -W9.parser = W9; -var Fge = W9, lZt = "LR", zge = "TB", Kk = "state", dP = "relation", cZt = "classDef", uZt = "style", hZt = "applyClass", Qx = "default", Vge = "divider", Uge = "fill:none", qge = "fill: #333", Qge = "c", Yge = "text", Wge = "normal", G_ = "rect", H_ = "rectWithTitle", fZt = "stateStart", dZt = "stateEnd", lH = "divider", cH = "roundedWithTitle", pZt = "note", gZt = "noteGroup", Yx = "statediagram", mZt = "state", vZt = `${Yx}-${mZt}`, Gge = "transition", yZt = "note", bZt = "note-edge", xZt = `${Gge} ${bZt}`, wZt = `${Yx}-${yZt}`, OZt = "cluster", kZt = `${Yx}-${OZt}`, SZt = "cluster-alt", TZt = `${Yx}-${SZt}`, Hge = "parent", Xge = "note", CZt = "state", pP = "----", EZt = `${pP}${Xge}`, uH = `${pP}${Hge}`, Zge = /* @__PURE__ */ x((t, e = zge) => { +G9.parser = G9; +var zge = G9, cZt = "LR", Vge = "TB", Jk = "state", dP = "relation", uZt = "classDef", hZt = "style", fZt = "applyClass", Qx = "default", Uge = "divider", qge = "fill:none", Qge = "fill: #333", Yge = "c", Wge = "text", Gge = "normal", H_ = "rect", X_ = "rectWithTitle", dZt = "stateStart", pZt = "stateEnd", cH = "divider", uH = "roundedWithTitle", gZt = "note", mZt = "noteGroup", Yx = "statediagram", vZt = "state", yZt = `${Yx}-${vZt}`, Hge = "transition", bZt = "note", xZt = "note-edge", wZt = `${Hge} ${xZt}`, OZt = `${Yx}-${bZt}`, kZt = "cluster", SZt = `${Yx}-${kZt}`, TZt = "cluster-alt", CZt = `${Yx}-${TZt}`, Xge = "parent", Zge = "note", EZt = "state", pP = "----", _Zt = `${pP}${Zge}`, hH = `${pP}${Xge}`, jge = /* @__PURE__ */ x((t, e = Vge) => { if (!t.doc) return e; let r = e; for (const n of t.doc) n.stmt === "dir" && (r = n.value); return r; -}, "getDir"), _Zt = /* @__PURE__ */ x(function(t, e) { +}, "getDir"), AZt = /* @__PURE__ */ x(function(t, e) { return e.db.extract(e.db.getRootDocV2()), e.db.getClasses(); -}, "getClasses"), AZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), LZt = /* @__PURE__ */ x(async function(t, e, r, n) { var h, f; X.info("REF0:"), X.info("Drawing state diagram (v2)", e); const { securityLevel: i, state: s, layout: a } = be(); n.db.extract(n.db.getRootDocV2()); - const o = n.db.getData(), l = cfe(e, i); - o.type = n.type, o.layoutAlgorithm = a, o.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, o.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, o.markers = ["barb"], o.diagramId = e, await boe(o, l); + const o = n.db.getData(), l = ufe(e, i); + o.type = n.type, o.layoutAlgorithm = a, o.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, o.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, o.markers = ["barb"], o.diagramId = e, await xoe(o, l); const u = 8; sr.insertTitle( l, "statediagramTitleText", (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() - ), ufe(l, u, Yx, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); -}, "draw"), LZt = { - getClasses: _Zt, - draw: AZt, - getDir: Zge + ), hfe(l, u, Yx, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); +}, "draw"), RZt = { + getClasses: AZt, + draw: LZt, + getDir: jge }, t5 = /* @__PURE__ */ new Map(), Mh = 0; function r5(t = "", e = 0, r = "", n = pP) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; - return `${CZt}-${t}${i}-${e}`; + return `${EZt}-${t}${i}-${e}`; } x(r5, "stateDomId"); -var RZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { +var MZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { X.trace("items", e), e.forEach((l) => { switch (l.stmt) { - case Kk: + case Jk: Nv(t, l, r, n, i, s, a, o); break; case Qx: @@ -92200,14 +92222,14 @@ var RZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: l.state2.id, arrowhead: "normal", arrowTypeEnd: "arrow_barb", - style: Uge, + style: qge, labelStyle: "", label: at.sanitizeText(l.description, be()), - arrowheadStyle: qge, - labelpos: Qge, - labelType: Yge, - thickness: Wge, - classes: Gge, + arrowheadStyle: Qge, + labelpos: Yge, + labelType: Wge, + thickness: Gge, + classes: Hge, look: a }; i.push(u), Mh++; @@ -92215,7 +92237,7 @@ var RZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { break; } }); -}, "setupDoc"), hH = /* @__PURE__ */ x((t, e = zge) => { +}, "setupDoc"), fH = /* @__PURE__ */ x((t, e = Vge) => { let r = e; if (t.doc) for (const n of t.doc) @@ -92235,30 +92257,30 @@ function Dv(t, e, r) { n ? Object.assign(n, e) : t.push(e); } x(Dv, "insertOrUpdateNode"); -function jge(t) { +function Kge(t) { var e, r; return (r = (e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) != null ? r : ""; } -x(jge, "getClassesFromDbInfo"); -function Kge(t) { +x(Kge, "getClassesFromDbInfo"); +function Jge(t) { var e; return (e = t == null ? void 0 : t.styles) != null ? e : []; } -x(Kge, "getStylesFromDbInfo"); +x(Jge, "getStylesFromDbInfo"); var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { var d, p; - const l = e.id, u = r.get(l), h = jge(u), f = Kge(u); + const l = e.id, u = r.get(l), h = Kge(u), f = Jge(u); if (X.info("dataFetcher parsedItem", e, u, f), l !== "root") { - let g = G_; - e.start === !0 ? g = fZt : e.start === !1 && (g = dZt), e.type !== Qx && (g = e.type), t5.get(l) || t5.set(l, { + let g = H_; + e.start === !0 ? g = dZt : e.start === !1 && (g = pZt), e.type !== Qx && (g = e.type), t5.get(l) || t5.set(l, { id: l, shape: g, description: at.sanitizeText(l, be()), - cssClasses: `${h} ${vZt}`, + cssClasses: `${h} ${yZt}`, cssStyles: f }); const m = t5.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = H_, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = H_, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = G_, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === H_ && (m.type === "group" ? m.shape = cH : m.shape = G_), !m.type && e.doc && (X.info("Setting cluster for XCX", l, hH(e)), m.type = "group", m.isGroup = !0, m.dir = hH(e), m.shape = e.type === Vge ? lH : cH, m.cssClasses = `${m.cssClasses} ${kZt} ${s ? TZt : ""}`); + e.description && (Array.isArray(m.description) ? (m.shape = X_, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = X_, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = H_, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === X_ && (m.type === "group" ? m.shape = uH : m.shape = H_), !m.type && e.doc && (X.info("Setting cluster for XCX", l, fH(e)), m.type = "group", m.isGroup = !0, m.dir = fH(e), m.shape = e.type === Uge ? cH : uH, m.cssClasses = `${m.cssClasses} ${SZt} ${s ? CZt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -92276,29 +92298,29 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { ry: 10, look: a }; - if (v.shape === lH && (v.label = ""), t && t.id !== "root" && (X.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { + if (v.shape === cH && (v.label = ""), t && t.id !== "root" && (X.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { const y = { labelStyle: "", - shape: pZt, + shape: gZt, label: e.note.text, - cssClasses: wZt, + cssClasses: OZt, cssStyles: [], cssCompilesStyles: [], - id: l + EZt + "-" + Mh, - domId: r5(l, Mh, Xge), + id: l + _Zt + "-" + Mh, + domId: r5(l, Mh, Zge), type: m.type, isGroup: m.type === "group", padding: be().flowchart.padding, look: a, position: e.note.position - }, b = l + uH, w = { + }, b = l + hH, w = { labelStyle: "", - shape: gZt, + shape: mZt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], - id: l + uH, - domId: r5(l, Mh, Hge), + id: l + hH, + domId: r5(l, Mh, Xge), type: "group", isGroup: !0, padding: 16, @@ -92313,58 +92335,58 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: S, arrowhead: "none", arrowTypeEnd: "", - style: Uge, + style: qge, labelStyle: "", - classes: xZt, - arrowheadStyle: qge, - labelpos: Qge, - labelType: Yge, - thickness: Wge, + classes: wZt, + arrowheadStyle: Qge, + labelpos: Yge, + labelType: Wge, + thickness: Gge, look: a }); } else Dv(n, v, o); } - e.doc && (X.trace("Adding nodes children "), RZt(e, e.doc, r, n, i, !s, a, o)); -}, "dataFetcher"), MZt = /* @__PURE__ */ x(() => { + e.doc && (X.trace("Adding nodes children "), MZt(e, e.doc, r, n, i, !s, a, o)); +}, "dataFetcher"), DZt = /* @__PURE__ */ x(() => { t5.clear(), Mh = 0; -}, "reset"), gP = "[*]", Jge = "start", e1e = gP, t1e = "end", fH = "color", dH = "fill", DZt = "bgFill", NZt = ","; +}, "reset"), gP = "[*]", e1e = "start", t1e = gP, r1e = "end", dH = "color", pH = "fill", NZt = "bgFill", IZt = ","; function mP() { return /* @__PURE__ */ new Map(); } x(mP, "newClassesList"); -var Jk = [], vP = [], r1e = lZt, eS = [], fg = mP(), n1e = /* @__PURE__ */ x(() => ({ +var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} -}), "newDoc"), tS = { - root: n1e() -}, wa = tS.root, z2 = 0, pH = 0, IZt = { +}), "newDoc"), rS = { + root: i1e() +}, wa = rS.root, z2 = 0, gH = 0, PZt = { LINE: 0, DOTTED_LINE: 1 -}, PZt = { +}, $Zt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3 -}, DO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), $Zt = /* @__PURE__ */ x((t) => { - X.info("Setting root doc", t), eS = t; -}, "setRootDoc"), BZt = /* @__PURE__ */ x(() => eS, "getRootDoc"), n5 = /* @__PURE__ */ x((t, e, r) => { +}, DO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), BZt = /* @__PURE__ */ x((t) => { + X.info("Setting root doc", t), tS = t; +}, "setRootDoc"), FZt = /* @__PURE__ */ x(() => tS, "getRootDoc"), n5 = /* @__PURE__ */ x((t, e, r) => { if (e.stmt === dP) n5(t, e.state1, !0), n5(t, e.state2, !1); - else if (e.stmt === Kk && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { + else if (e.stmt === Jk && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { const n = []; let i = [], s; for (s = 0; s < e.doc.length; s++) - if (e.doc[s].type === Vge) { + if (e.doc[s].type === Uge) { const a = DO(e.doc[s]); a.doc = DO(i), n.push(a), i = []; } else i.push(e.doc[s]); if (n.length > 0 && i.length > 0) { const a = { - stmt: Kk, - id: xae(), + stmt: Jk, + id: wae(), type: "divider", doc: DO(i) }; @@ -92372,11 +92394,11 @@ var Jk = [], vP = [], r1e = lZt, eS = [], fg = mP(), n1e = /* @__PURE__ */ x(() } e.doc.forEach((a) => n5(e, a, !0)); } -}, "docTranslator"), yP = /* @__PURE__ */ x(() => (n5({ id: "root" }, { id: "root", doc: eS }, !0), { id: "root", doc: eS }), "getRootDocV2"), FZt = /* @__PURE__ */ x((t) => { +}, "docTranslator"), yP = /* @__PURE__ */ x(() => (n5({ id: "root" }, { id: "root", doc: tS }, !0), { id: "root", doc: tS }), "getRootDocV2"), zZt = /* @__PURE__ */ x((t) => { let e; - t.doc ? e = t.doc : e = t, X.info(e), i1e(!0), X.info("Extract initial document:", e), e.forEach((s) => { + t.doc ? e = t.doc : e = t, X.info(e), s1e(!0), X.info("Extract initial document:", e), e.forEach((s) => { switch (X.warn("Statement", s.stmt), s.stmt) { - case Kk: + case Jk: Lf( s.id.trim(), s.type, @@ -92389,12 +92411,12 @@ var Jk = [], vP = [], r1e = lZt, eS = [], fg = mP(), n1e = /* @__PURE__ */ x(() ); break; case dP: - c1e(s.state1, s.state2, s.description); - break; - case cZt: - u1e(s.id.trim(), s.classes); + u1e(s.state1, s.state2, s.description); break; case uZt: + h1e(s.id.trim(), s.classes); + break; + case hZt: { const a = s.id.trim().split(","), o = s.styleClass.split(","); a.forEach((l) => { @@ -92410,13 +92432,13 @@ var Jk = [], vP = [], r1e = lZt, eS = [], fg = mP(), n1e = /* @__PURE__ */ x(() }); } break; - case hZt: + case fZt: bP(s.id.trim(), s.styleClass); break; } }); - const r = s1e(), i = be().look; - MZt(), Nv(void 0, yP(), r, Jk, vP, !0, i, fg), Jk.forEach((s) => { + const r = a1e(), i = be().look; + DZt(), Nv(void 0, yP(), r, eS, vP, !0, i, fg), eS.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error( @@ -92436,44 +92458,44 @@ var Jk = [], vP = [], r1e = lZt, eS = [], fg = mP(), n1e = /* @__PURE__ */ x(() classes: [], styles: [], textStyles: [] - })), n && (X.info("Setting state description", l, n), typeof n == "string" && G9(l, n.trim()), typeof n == "object" && n.forEach((u) => G9(l, u.trim()))), i) { + })), n && (X.info("Setting state description", l, n), typeof n == "string" && H9(l, n.trim()), typeof n == "object" && n.forEach((u) => H9(l, u.trim()))), i) { const u = wa.states.get(l); u.note = i, u.note.text = at.sanitizeText(u.note.text, be()); } - s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => bP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => YZt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => WZt(l, h.trim()))); -}, "addState"), i1e = /* @__PURE__ */ x(function(t) { - Jk = [], vP = [], tS = { - root: n1e() - }, wa = tS.root, z2 = 0, fg = mP(), t || Xi(); + s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => bP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => WZt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => GZt(l, h.trim()))); +}, "addState"), s1e = /* @__PURE__ */ x(function(t) { + eS = [], vP = [], rS = { + root: i1e() + }, wa = rS.root, z2 = 0, fg = mP(), t || Xi(); }, "clear"), T0 = /* @__PURE__ */ x(function(t) { return wa.states.get(t); -}, "getState"), s1e = /* @__PURE__ */ x(function() { +}, "getState"), a1e = /* @__PURE__ */ x(function() { return wa.states; -}, "getStates"), zZt = /* @__PURE__ */ x(function() { - X.info("Documents = ", tS); -}, "logDocuments"), VZt = /* @__PURE__ */ x(function() { +}, "getStates"), VZt = /* @__PURE__ */ x(function() { + X.info("Documents = ", rS); +}, "logDocuments"), UZt = /* @__PURE__ */ x(function() { return wa.relations; }, "getRelations"); -function rS(t = "") { +function nS(t = "") { let e = t; - return t === gP && (z2++, e = `${Jge}${z2}`), e; + return t === gP && (z2++, e = `${e1e}${z2}`), e; } -x(rS, "startIdIfNeeded"); -function nS(t = "", e = Qx) { - return t === gP ? Jge : e; +x(nS, "startIdIfNeeded"); +function iS(t = "", e = Qx) { + return t === gP ? e1e : e; } -x(nS, "startTypeIfNeeded"); -function a1e(t = "") { +x(iS, "startTypeIfNeeded"); +function o1e(t = "") { let e = t; - return t === e1e && (z2++, e = `${t1e}${z2}`), e; + return t === t1e && (z2++, e = `${r1e}${z2}`), e; } -x(a1e, "endIdIfNeeded"); -function o1e(t = "", e = Qx) { - return t === e1e ? t1e : e; +x(o1e, "endIdIfNeeded"); +function l1e(t = "", e = Qx) { + return t === t1e ? r1e : e; } -x(o1e, "endTypeIfNeeded"); -function l1e(t, e, r) { - let n = rS(t.id.trim()), i = nS(t.id.trim(), t.type), s = rS(e.id.trim()), a = nS(e.id.trim(), e.type); +x(l1e, "endTypeIfNeeded"); +function c1e(t, e, r) { + let n = nS(t.id.trim()), i = iS(t.id.trim(), t.type), s = nS(e.id.trim()), a = iS(e.id.trim(), e.type); Lf( n, i, @@ -92498,35 +92520,35 @@ function l1e(t, e, r) { relationTitle: at.sanitizeText(r, be()) }); } -x(l1e, "addRelationObjs"); -var c1e = /* @__PURE__ */ x(function(t, e, r) { +x(c1e, "addRelationObjs"); +var u1e = /* @__PURE__ */ x(function(t, e, r) { if (typeof t == "object") - l1e(t, e, r); + c1e(t, e, r); else { - const n = rS(t.trim()), i = nS(t), s = a1e(e.trim()), a = o1e(e); + const n = nS(t.trim()), i = iS(t), s = o1e(e.trim()), a = l1e(e); Lf(n, i), Lf(s, a), wa.relations.push({ id1: n, id2: s, title: at.sanitizeText(r, be()) }); } -}, "addRelation"), G9 = /* @__PURE__ */ x(function(t, e) { +}, "addRelation"), H9 = /* @__PURE__ */ x(function(t, e) { const r = wa.states.get(t), n = e.startsWith(":") ? e.replace(":", "").trim() : e; r.descriptions.push(at.sanitizeText(n, be())); -}, "addDescription"), UZt = /* @__PURE__ */ x(function(t) { +}, "addDescription"), qZt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), qZt = /* @__PURE__ */ x(() => (pH++, "divider-id-" + pH), "getDividerId"), u1e = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), QZt = /* @__PURE__ */ x(() => (gH++, "divider-id-" + gH), "getDividerId"), h1e = /* @__PURE__ */ x(function(t, e = "") { fg.has(t) || fg.set(t, { id: t, styles: [], textStyles: [] }); const r = fg.get(t); - e != null && e.split(NZt).forEach((n) => { + e != null && e.split(IZt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); - if (RegExp(fH).exec(n)) { - const a = i.replace(dH, DZt).replace(fH, dH); + if (RegExp(dH).exec(n)) { + const a = i.replace(pH, NZt).replace(dH, pH); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), QZt = /* @__PURE__ */ x(function() { +}, "addStyleClass"), YZt = /* @__PURE__ */ x(function() { return fg; }, "getClasses"), bP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -92537,49 +92559,49 @@ var c1e = /* @__PURE__ */ x(function(t, e, r) { } n.classes.push(e); }); -}, "setCssClass"), YZt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), WZt = /* @__PURE__ */ x(function(t, e) { const r = T0(t); r !== void 0 && r.styles.push(e); -}, "setStyle"), WZt = /* @__PURE__ */ x(function(t, e) { +}, "setStyle"), GZt = /* @__PURE__ */ x(function(t, e) { const r = T0(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), GZt = /* @__PURE__ */ x(() => r1e, "getDirection"), HZt = /* @__PURE__ */ x((t) => { - r1e = t; -}, "setDirection"), XZt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), ZZt = /* @__PURE__ */ x(() => { +}, "setTextStyle"), HZt = /* @__PURE__ */ x(() => n1e, "getDirection"), XZt = /* @__PURE__ */ x((t) => { + n1e = t; +}, "setDirection"), ZZt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), jZt = /* @__PURE__ */ x(() => { const t = be(); - return { nodes: Jk, edges: vP, other: {}, config: t, direction: Zge(yP()) }; + return { nodes: eS, edges: vP, other: {}, config: t, direction: jge(yP()) }; }, "getData"), vu = { getConfig: /* @__PURE__ */ x(() => be().state, "getConfig"), - getData: ZZt, + getData: jZt, addState: Lf, - clear: i1e, + clear: s1e, getState: T0, - getStates: s1e, - getRelations: VZt, - getClasses: QZt, - getDirection: GZt, - addRelation: c1e, - getDividerId: qZt, - setDirection: HZt, - cleanupLabel: UZt, - lineType: IZt, - relationType: PZt, - logDocuments: zZt, - getRootDoc: BZt, - setRootDoc: $Zt, + getStates: a1e, + getRelations: UZt, + getClasses: YZt, + getDirection: HZt, + addRelation: u1e, + getDividerId: QZt, + setDirection: XZt, + cleanupLabel: qZt, + lineType: PZt, + relationType: $Zt, + logDocuments: VZt, + getRootDoc: FZt, + setRootDoc: BZt, getRootDocV2: yP, - extract: FZt, - trimColon: XZt, + extract: zZt, + trimColon: ZZt, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, setAccDescription: ys, - addStyleClass: u1e, + addStyleClass: h1e, setCssClass: bP, - addDescription: G9, + addDescription: H9, setDiagramTitle: fa, getDiagramTitle: xs -}, jZt = /* @__PURE__ */ x((t) => ` +}, KZt = /* @__PURE__ */ x((t) => ` defs #statediagram-barbEnd { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -92793,17 +92815,17 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), h1e = jZt, xP = {}, KZt = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), f1e = KZt, xP = {}, JZt = /* @__PURE__ */ x((t, e) => { xP[t] = e; -}, "set"), JZt = /* @__PURE__ */ x((t) => xP[t], "get"), f1e = /* @__PURE__ */ x(() => Object.keys(xP), "keys"), ejt = /* @__PURE__ */ x(() => f1e().length, "size"), tjt = { - get: JZt, - set: KZt, - keys: f1e, - size: ejt -}, rjt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit).attr("cy", be().state.padding + be().state.sizeUnit), "drawStartState"), njt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", be().state.textHeight).attr("class", "divider").attr("x2", be().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), ijt = /* @__PURE__ */ x((t, e) => { +}, "set"), ejt = /* @__PURE__ */ x((t) => xP[t], "get"), d1e = /* @__PURE__ */ x(() => Object.keys(xP), "keys"), tjt = /* @__PURE__ */ x(() => d1e().length, "size"), rjt = { + get: ejt, + set: JZt, + keys: d1e, + size: tjt +}, njt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit).attr("cy", be().state.padding + be().state.sizeUnit), "drawStartState"), ijt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", be().state.textHeight).attr("class", "divider").attr("x2", be().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), sjt = /* @__PURE__ */ x((t, e) => { const r = t.append("text").attr("x", 2 * be().state.padding).attr("y", be().state.textHeight + 2 * be().state.padding).attr("font-size", be().state.fontSize).attr("class", "state-title").text(e.id), n = r.node().getBBox(); return t.insert("rect", ":first-child").attr("x", be().state.padding).attr("y", be().state.padding).attr("width", n.width + 2 * be().state.padding).attr("height", n.height + 2 * be().state.padding).attr("rx", be().state.radius), r; -}, "drawSimpleState"), sjt = /* @__PURE__ */ x((t, e) => { +}, "drawSimpleState"), ajt = /* @__PURE__ */ x((t, e) => { const r = /* @__PURE__ */ x(function(d, p, g) { const m = d.append("tspan").attr("x", 2 * be().state.padding).text(p); g || m.attr("dy", be().state.textHeight); @@ -92817,7 +92839,7 @@ g.stateGroup line { }); const u = t.append("line").attr("x1", be().state.padding).attr("y1", be().state.padding + s + be().state.dividerMargin / 2).attr("y2", be().state.padding + s + be().state.dividerMargin / 2).attr("class", "descr-divider"), h = a.node().getBBox(), f = Math.max(h.width, i.width); return u.attr("x2", f + 3 * be().state.padding), t.insert("rect", ":first-child").attr("x", be().state.padding).attr("y", be().state.padding).attr("width", f + 2 * be().state.padding).attr("height", h.height + s + 2 * be().state.padding).attr("rx", be().state.radius), t; -}, "drawDescrState"), ajt = /* @__PURE__ */ x((t, e, r) => { +}, "drawDescrState"), ojt = /* @__PURE__ */ x((t, e, r) => { const n = be().state.padding, i = 2 * be().state.padding, s = t.node().getBBox(), a = s.width, o = s.x, l = t.append("text").attr("x", 0).attr("y", be().state.titleShift).attr("font-size", be().state.fontSize).attr("class", "state-title").text(e.id), h = l.node().getBBox().width + i; let f = Math.max(h, a); f === a && (f = f + i); @@ -92835,20 +92857,20 @@ g.stateGroup line { "y", be().state.titleShift - be().state.textHeight - be().state.padding ).attr("width", f).attr("height", p.height + 3 + 2 * be().state.textHeight).attr("rx", be().state.radius), t; -}, "addTitleAndBox"), ojt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( +}, "addTitleAndBox"), ljt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( "cx", be().state.padding + be().state.sizeUnit + be().state.miniPadding ).attr( "cy", be().state.padding + be().state.sizeUnit + be().state.miniPadding -), t.append("circle").attr("class", "end-state-inner").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit + 2).attr("cy", be().state.padding + be().state.sizeUnit + 2)), "drawEndState"), ljt = /* @__PURE__ */ x((t, e) => { +), t.append("circle").attr("class", "end-state-inner").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit + 2).attr("cy", be().state.padding + be().state.sizeUnit + 2)), "drawEndState"), cjt = /* @__PURE__ */ x((t, e) => { let r = be().state.forkWidth, n = be().state.forkHeight; if (e.parentId) { let i = r; r = n, n = i; } return t.append("rect").style("stroke", "black").style("fill", "black").attr("width", r).attr("height", n).attr("x", be().state.padding).attr("y", be().state.padding); -}, "drawForkJoinState"), cjt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawForkJoinState"), ujt = /* @__PURE__ */ x((t, e, r, n) => { let i = 0; const s = n.append("text"); s.style("text-anchor", "start"), s.attr("class", "noteText"); @@ -92868,21 +92890,21 @@ g.stateGroup line { } } return { textWidth: s.node().getBBox().width, textHeight: i }; -}, "_drawLongText"), ujt = /* @__PURE__ */ x((t, e) => { +}, "_drawLongText"), hjt = /* @__PURE__ */ x((t, e) => { e.attr("class", "state-note"); - const r = e.append("rect").attr("x", 0).attr("y", be().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = cjt(t, 0, 0, n); + const r = e.append("rect").attr("x", 0).attr("y", be().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = ujt(t, 0, 0, n); return r.attr("height", s + 2 * be().state.noteMargin), r.attr("width", i + be().state.noteMargin * 2), r; -}, "drawNote"), gH = /* @__PURE__ */ x(function(t, e) { +}, "drawNote"), mH = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { id: r, label: e.id, width: 0, height: 0 }, i = t.append("g").attr("id", r).attr("class", "stateGroup"); - e.type === "start" && rjt(i), e.type === "end" && ojt(i), (e.type === "fork" || e.type === "join") && ljt(i, e), e.type === "note" && ujt(e.note.text, i), e.type === "divider" && njt(i), e.type === "default" && e.descriptions.length === 0 && ijt(i, e), e.type === "default" && e.descriptions.length > 0 && sjt(i, e); + e.type === "start" && njt(i), e.type === "end" && ljt(i), (e.type === "fork" || e.type === "join") && cjt(i, e), e.type === "note" && hjt(e.note.text, i), e.type === "divider" && ijt(i), e.type === "default" && e.descriptions.length === 0 && sjt(i, e), e.type === "default" && e.descriptions.length > 0 && ajt(i, e); const s = i.node().getBBox(); - return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, tjt.set(r, n), n; -}, "drawState"), mH = 0, hjt = /* @__PURE__ */ x(function(t, e, r) { + return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, rjt.set(r, n), n; +}, "drawState"), vH = 0, fjt = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case vu.relationType.AGGREGATION: @@ -92900,7 +92922,7 @@ g.stateGroup line { return l.x; }).y(function(l) { return l.y; - }).curve(X1), a = t.append("path").attr("d", s(i)).attr("id", "edge" + mH).attr("class", "transition"); + }).curve(X1), a = t.append("path").attr("d", s(i)).attr("id", "edge" + vH).attr("class", "transition"); let o = ""; if (be().state.arrowMarkerAbsolute && (o = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, o = o.replace(/\(/g, "\\("), o = o.replace(/\)/g, "\\)")), a.attr( "marker-end", @@ -92922,28 +92944,28 @@ g.stateGroup line { const y = l.node().getBBox(); l.insert("rect", ":first-child").attr("class", "box").attr("x", u - g / 2 - be().state.padding / 2).attr("y", h - v / 2 - be().state.padding / 2 - 3.5).attr("width", g + be().state.padding).attr("height", v + be().state.padding), X.info(y); } - mH++; -}, "drawEdge"), eo, X_ = {}, fjt = /* @__PURE__ */ x(function() { -}, "setConf"), djt = /* @__PURE__ */ x(function(t) { + vH++; +}, "drawEdge"), to, Z_ = {}, djt = /* @__PURE__ */ x(function() { +}, "setConf"), pjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), pjt = /* @__PURE__ */ x(function(t, e, r, n) { - eo = be().state; +}, "insertMarkers"), gjt = /* @__PURE__ */ x(function(t, e, r, n) { + to = be().state; const i = be().securityLevel; let s; i === "sandbox" && (s = et("#i" + e)); const a = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), o = i === "sandbox" ? s.nodes()[0].contentDocument : document; X.debug("Rendering diagram " + t); const l = a.select(`[id='${e}']`); - djt(l); + pjt(l); const u = n.db.getRootDoc(); - d1e(u, l, void 0, !1, a, o, n); - const h = eo.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; - ms(l, p, g, eo.useMaxWidth), l.attr( + p1e(u, l, void 0, !1, a, o, n); + const h = to.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; + ms(l, p, g, to.useMaxWidth), l.attr( "viewBox", - `${f.x - eo.padding} ${f.y - eo.padding} ` + d + " " + p + `${f.x - to.padding} ${f.y - to.padding} ` + d + " " + p ); -}, "draw"), gjt = /* @__PURE__ */ x((t) => t ? t.length * eo.fontSizeFactor : 1, "getLabelWidth"), d1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { - const o = new $i({ +}, "draw"), mjt = /* @__PURE__ */ x((t) => t ? t.length * to.fontSizeFactor : 1, "getLabelWidth"), p1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { + const o = new Bi({ compound: !0, multigraph: !0 }); @@ -92958,14 +92980,14 @@ g.stateGroup line { multigraph: !0, compound: !0, ranker: "tight-tree", - ranksep: u ? 1 : eo.edgeLengthFactor, + ranksep: u ? 1 : to.edgeLengthFactor, nodeSep: u ? 1 : 50, isMultiGraph: !0 }) : o.setGraph({ rankdir: "TB", multigraph: !0, compound: !0, - ranksep: u ? 1 : eo.edgeLengthFactor, + ranksep: u ? 1 : to.edgeLengthFactor, nodeSep: u ? 1 : 50, ranker: "tight-tree", isMultiGraph: !0 @@ -92979,21 +93001,21 @@ g.stateGroup line { let w; if (b.doc) { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); - w = d1e(b.doc, O, b.id, !n, i, s, a); + w = p1e(b.doc, O, b.id, !n, i, s, a); { - O = ajt(O, b, n); + O = ojt(O, b, n); let S = O.node().getBBox(); - w.width = S.width, w.height = S.height + eo.padding / 2, X_[b.id] = { y: eo.compositTitleSize }; + w.width = S.width, w.height = S.height + to.padding / 2, Z_[b.id] = { y: to.compositTitleSize }; } } else - w = gH(e, b, o); + w = mH(e, b, o); if (b.note) { const O = { descriptions: [], id: b.id + "-note", note: b.note, type: "note" - }, S = gH(e, O, o); + }, S = mH(e, O, o); b.note.position === "left of" ? (o.setNode(w.id + "-note", S), o.setNode(w.id, w)) : (o.setNode(w.id, w), o.setNode(w.id + "-note", S)), o.setParent(w.id, w.id + "-group"), o.setParent(w.id + "-note", w.id + "-group"); } else o.setNode(w.id, w); @@ -93006,8 +93028,8 @@ g.stateGroup line { y.id2, { relation: y, - width: gjt(y.title), - height: eo.labelHeight * at.getRows(y.title).length, + width: mjt(y.title), + height: to.labelHeight * at.getRows(y.title).length, labelpos: "c" }, "id" + p @@ -93017,7 +93039,7 @@ g.stateGroup line { o.nodes().forEach(function(y) { y !== void 0 && o.node(y) !== void 0 ? (X.warn("Node " + y + ": " + JSON.stringify(o.node(y))), i.select("#" + g.id + " #" + y).attr( "transform", - "translate(" + (o.node(y).x - o.node(y).width / 2) + "," + (o.node(y).y + (X_[y] ? X_[y].y : 0) - o.node(y).height / 2) + " )" + "translate(" + (o.node(y).x - o.node(y).width / 2) + "," + (o.node(y).y + (Z_[y] ? Z_[y].y : 0) - o.node(y).height / 2) + " )" ), i.select("#" + g.id + " #" + y).attr("data-x-shift", o.node(y).x - o.node(y).width / 2), s.querySelectorAll("#" + g.id + " #" + y + " .divider").forEach((w) => { const O = w.parentElement; let S = 0, C = 0; @@ -93026,7 +93048,7 @@ g.stateGroup line { }); let m = g.getBBox(); o.edges().forEach(function(y) { - y !== void 0 && o.edge(y) !== void 0 && (X.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), hjt(e, o.edge(y), o.edge(y).relation)); + y !== void 0 && o.edge(y) !== void 0 && (X.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), fjt(e, o.edge(y), o.edge(y).relation)); }), m = g.getBBox(); const v = { id: r || "root", @@ -93034,37 +93056,37 @@ g.stateGroup line { width: 0, height: 0 }; - return v.width = m.width + 2 * eo.padding, v.height = m.height + 2 * eo.padding, X.debug("Doc rendered", v, o), v; -}, "renderDoc"), mjt = { - setConf: fjt, - draw: pjt -}, vjt = { - parser: Fge, + return v.width = m.width + 2 * to.padding, v.height = m.height + 2 * to.padding, X.debug("Doc rendered", v, o), v; +}, "renderDoc"), vjt = { + setConf: djt, + draw: gjt +}, yjt = { + parser: zge, db: vu, - renderer: mjt, - styles: h1e, + renderer: vjt, + styles: f1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, vu.clear(); }, "init") }; -const yjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const bjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: vjt + diagram: yjt }, Symbol.toStringTag, { value: "Module" })); -var bjt = { - parser: Fge, +var xjt = { + parser: zge, db: vu, - renderer: LZt, - styles: h1e, + renderer: RZt, + styles: f1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, vu.clear(); }, "init") }; -const xjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const wjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: bjt + diagram: xjt }, Symbol.toStringTag, { value: "Module" })); -var H9 = function() { +var X9 = function() { var t = /* @__PURE__ */ x(function(f, d, p, g) { for (p = p || {}, g = f.length; g--; p[f[g]] = d) ; @@ -93124,14 +93146,14 @@ var H9 = function() { } }, "parseError"), parse: /* @__PURE__ */ x(function(d) { - var p = this, g = [0], m = [], v = [null], y = [], b = this.table, w = "", O = 0, S = 0, C = 2, T = 1, L = y.slice.call(arguments, 1), E = Object.create(this.lexer), A = { yy: {} }; + var p = this, g = [0], m = [], v = [null], y = [], b = this.table, w = "", O = 0, S = 0, C = 2, T = 1, A = y.slice.call(arguments, 1), E = Object.create(this.lexer), L = { yy: {} }; for (var _ in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, _) && (A.yy[_] = this.yy[_]); - E.setInput(d, A.yy), A.yy.lexer = E, A.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {}); + Object.prototype.hasOwnProperty.call(this.yy, _) && (L.yy[_] = this.yy[_]); + E.setInput(d, L.yy), L.yy.lexer = E, L.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {}); var R = E.yylloc; y.push(R); var $ = E.options && E.options.ranges; - typeof A.yy.parseError == "function" ? this.parseError = A.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function k(Y) { g.length = g.length - 2 * Y, v.length = v.length - Y, y.length = y.length - Y; } @@ -93176,11 +93198,11 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ee = w, S, O, - A.yy, + L.yy, D[1], v, y - ].concat(L)), typeof P < "u") + ].concat(A)), typeof P < "u") return P; V && (g = g.slice(0, -1 * V * 2), v = v.slice(0, -1 * V), y = y.slice(0, -1 * V)), g.push(this.productions_[D[1]][0]), v.push(F.$), y.push(F._$), Q = b[g[g.length - 2]][g[g.length - 1]], g.push(Q); break; @@ -93399,26 +93421,26 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ee = } return x(h, "Parser"), h.prototype = l, l.Parser = h, new h(); }(); -H9.parser = H9; -var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(function() { +X9.parser = X9; +var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(function() { wP.length = 0, V2.length = 0, k1 = "", U2.length = 0, Xi(); -}, "clear"), kjt = /* @__PURE__ */ x(function(t) { +}, "clear"), Sjt = /* @__PURE__ */ x(function(t) { k1 = t, wP.push(t); -}, "addSection"), Sjt = /* @__PURE__ */ x(function() { +}, "addSection"), Tjt = /* @__PURE__ */ x(function() { return wP; -}, "getSections"), Tjt = /* @__PURE__ */ x(function() { - let t = vH(); +}, "getSections"), Cjt = /* @__PURE__ */ x(function() { + let t = yH(); const e = 100; let r = 0; for (; !t && r < e; ) - t = vH(), r++; + t = yH(), r++; return V2.push(...U2), V2; -}, "getTasks"), Cjt = /* @__PURE__ */ x(function() { +}, "getTasks"), Ejt = /* @__PURE__ */ x(function() { const t = []; return V2.forEach((r) => { r.people && t.push(...r.people); }), [...new Set(t)].sort(); -}, "updateActors"), Ejt = /* @__PURE__ */ x(function(t, e) { +}, "updateActors"), _jt = /* @__PURE__ */ x(function(t, e) { const r = e.substr(1).split(":"); let n = 0, i = []; r.length === 1 ? (n = Number(r[0]), i = []) : (n = Number(r[0]), i = r[1].split(",")); @@ -93430,7 +93452,7 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi score: n }; U2.push(a); -}, "addTask"), _jt = /* @__PURE__ */ x(function(t) { +}, "addTask"), Ajt = /* @__PURE__ */ x(function(t) { const e = { section: k1, type: k1, @@ -93439,7 +93461,7 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi classes: [] }; V2.push(e); -}, "addTaskOrg"), vH = /* @__PURE__ */ x(function() { +}, "addTaskOrg"), yH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { return U2[r].processed; }, "compileTask"); @@ -93447,24 +93469,24 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi for (const [r, n] of U2.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Ajt = /* @__PURE__ */ x(function() { - return Cjt(); -}, "getActors"), yH = { +}, "compileTasks"), Ljt = /* @__PURE__ */ x(function() { + return Ejt(); +}, "getActors"), bH = { getConfig: /* @__PURE__ */ x(() => be().journey, "getConfig"), - clear: Ojt, + clear: kjt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: kjt, - getSections: Sjt, - getTasks: Tjt, - addTask: Ejt, - addTaskOrg: _jt, - getActors: Ajt -}, Ljt = /* @__PURE__ */ x((t) => `.label { + addSection: Sjt, + getSections: Tjt, + getTasks: Cjt, + addTask: _jt, + addTaskOrg: Ajt, + getActors: Ljt +}, Rjt = /* @__PURE__ */ x((t) => `.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${t.textColor}; @@ -93597,9 +93619,9 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi .actor-5 { ${t.actor5 ? `fill: ${t.actor5}` : ""}; } -`, "getStyles"), Rjt = Ljt, OP = /* @__PURE__ */ x(function(t, e) { - return nC(t, e); -}, "drawRect"), Mjt = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), Mjt = Rjt, OP = /* @__PURE__ */ x(function(t, e) { + return iC(t, e); +}, "drawRect"), Djt = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -93616,21 +93638,21 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), p1e = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), g1e = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; -}, "drawCircle"), g1e = /* @__PURE__ */ x(function(t, e) { - return nIt(t, e); -}, "drawText"), Djt = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), m1e = /* @__PURE__ */ x(function(t, e) { + return iIt(t, e); +}, "drawText"), Njt = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); - n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, g1e(t, e); -}, "drawLabel"), Njt = /* @__PURE__ */ x(function(t, e, r) { + n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, m1e(t, e); +}, "drawLabel"), Ijt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = K0(); - i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, OP(n, i), m1e(r)( + i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, OP(n, i), v1e(r)( e.text, n, i.x, @@ -93641,11 +93663,11 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), bH = -1, Ijt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), xH = -1, Pjt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); - bH++; + xH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + bH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Mjt(i, { + i.append("line").attr("id", "task" + xH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Djt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -93663,8 +93685,8 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi title: l, pos: e.actors[l].position }; - p1e(i, h), o += 10; - }), m1e(r)( + g1e(i, h), o += 10; + }), v1e(r)( e.task, i, a.x, @@ -93675,9 +93697,9 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawTask"), Pjt = /* @__PURE__ */ x(function(t, e) { - efe(t, e); -}, "drawBackgroundRect"), m1e = /* @__PURE__ */ function() { +}, "drawTask"), $jt = /* @__PURE__ */ x(function(t, e) { + tfe(t, e); +}, "drawBackgroundRect"), v1e = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { const d = s.append("text").attr("x", a + l / 2).attr("y", o + u / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i); n(d, h); @@ -93703,23 +93725,23 @@ var wjt = H9, k1 = "", wP = [], V2 = [], U2 = [], Ojt = /* @__PURE__ */ x(functi return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), $jt = /* @__PURE__ */ x(function(t) { +}(), Bjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"), q2 = { drawRect: OP, - drawCircle: p1e, - drawSection: Njt, - drawText: g1e, - drawLabel: Djt, - drawTask: Ijt, - drawBackgroundRect: Pjt, - initGraphics: $jt -}, Bjt = /* @__PURE__ */ x(function(t) { + drawCircle: g1e, + drawSection: Ijt, + drawText: m1e, + drawLabel: Njt, + drawTask: Pjt, + drawBackgroundRect: $jt, + initGraphics: Bjt +}, Fjt = /* @__PURE__ */ x(function(t) { Object.keys(t).forEach(function(r) { - RC[r] = t[r]; + MC[r] = t[r]; }); }, "setConf"), ku = {}; -function v1e(t) { +function y1e(t) { const e = be().journey; let r = 60; Object.keys(ku).forEach((n) => { @@ -93742,8 +93764,8 @@ function v1e(t) { q2.drawText(t, a), r += 20; }); } -x(v1e, "drawActorLegend"); -var RC = be().journey, wd = RC.leftMargin, Fjt = /* @__PURE__ */ x(function(t, e, r, n) { +x(y1e, "drawActorLegend"); +var MC = be().journey, wd = MC.leftMargin, zjt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().journey, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -93760,7 +93782,7 @@ var RC = be().journey, wd = RC.leftMargin, Fjt = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), v1e(l), So.insert(0, 0, wd, Object.keys(ku).length * 50), zjt(l, u, 0); + }), y1e(l), So.insert(0, 0, wd, Object.keys(ku).length * 50), Vjt(l, u, 0); const p = So.getBounds(); h && l.append("text").text(h).attr("x", wd).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = wd + p.stopx + 2 * i.diagramMarginX; @@ -93812,14 +93834,14 @@ var RC = be().journey, wd = RC.leftMargin, Fjt = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, Z_ = RC.sectionFills, xH = RC.sectionColours, zjt = /* @__PURE__ */ x(function(t, e, r) { +}, j_ = MC.sectionFills, wH = MC.sectionColours, Vjt = /* @__PURE__ */ x(function(t, e, r) { const n = be().journey; let i = ""; const s = n.height * 2 + n.diagramMarginY, a = r + s; let o = 0, l = "#CCC", u = "black", h = 0; for (const [f, d] of e.entries()) { if (i !== d.section) { - l = Z_[o % Z_.length], h = o % Z_.length, u = xH[o % xH.length]; + l = j_[o % j_.length], h = o % j_.length, u = wH[o % wH.length]; let g = 0; const m = d.section; for (let y = f; y < e.length && e[y].section == m; y++) @@ -93838,23 +93860,23 @@ var RC = be().journey, wd = RC.leftMargin, Fjt = /* @__PURE__ */ x(function(t, e const p = d.people.reduce((g, m) => (ku[m] && (g[m] = ku[m]), g), {}); d.x = f * n.taskMargin + f * n.width + wd, d.y = a, d.width = n.diagramMarginX, d.height = n.diagramMarginY, d.colour = u, d.fill = l, d.num = h, d.actors = p, q2.drawTask(t, d, n), So.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } -}, "drawTasks"), wH = { - setConf: Bjt, - draw: Fjt -}, Vjt = { - parser: wjt, - db: yH, - renderer: wH, - styles: Rjt, +}, "drawTasks"), OH = { + setConf: Fjt, + draw: zjt +}, Ujt = { + parser: Ojt, + db: bH, + renderer: OH, + styles: Mjt, init: /* @__PURE__ */ x((t) => { - wH.setConf(t.journey), yH.clear(); + OH.setConf(t.journey), bH.clear(); }, "init") }; -const Ujt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const qjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Vjt + diagram: Ujt }, Symbol.toStringTag, { value: "Module" })); -var X9 = function() { +var Z9 = function() { var t = /* @__PURE__ */ x(function(d, p, g, m) { for (g = g || {}, m = d.length; m--; g[d[m]] = p) ; @@ -93917,13 +93939,13 @@ var X9 = function() { } }, "parseError"), parse: /* @__PURE__ */ x(function(p) { - var g = this, m = [0], v = [], y = [null], b = [], w = this.table, O = "", S = 0, C = 0, T = 2, L = 1, E = b.slice.call(arguments, 1), A = Object.create(this.lexer), _ = { yy: {} }; + var g = this, m = [0], v = [], y = [null], b = [], w = this.table, O = "", S = 0, C = 0, T = 2, A = 1, E = b.slice.call(arguments, 1), L = Object.create(this.lexer), _ = { yy: {} }; for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (_.yy[R] = this.yy[R]); - A.setInput(p, _.yy), _.yy.lexer = A, _.yy.parser = this, typeof A.yylloc > "u" && (A.yylloc = {}); - var $ = A.yylloc; + L.setInput(p, _.yy), _.yy.lexer = L, _.yy.parser = this, typeof L.yylloc > "u" && (L.yylloc = {}); + var $ = L.yylloc; b.push($); - var k = A.options && A.options.ranges; + var k = L.options && L.options.ranges; typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function N(ne) { m.length = m.length - 2 * ne, y.length = y.length - ne, b.length = b.length - ne; @@ -93931,7 +93953,7 @@ var X9 = function() { x(N, "popStack"); function M() { var ne; - return ne = v.pop() || A.lex() || L, typeof ne != "number" && (ne instanceof Array && (v = ne, ne = v.pop()), ne = g.symbols_[ne] || ne), ne; + return ne = v.pop() || L.lex() || A, typeof ne != "number" && (ne instanceof Array && (v = ne, ne = v.pop()), ne = g.symbols_[ne] || ne), ne; } x(M, "lex"); for (var I, D, P, F, B = {}, V, Q, W, ee; ; ) { @@ -93940,12 +93962,12 @@ var X9 = function() { ee = []; for (V in w[D]) this.terminals_[V] && V > T && ee.push("'" + this.terminals_[V] + "'"); - A.showPosition ? Y = "Parse error on line " + (S + 1) + `: -` + A.showPosition() + ` -Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Y = "Parse error on line " + (S + 1) + ": Unexpected " + (I == L ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Y, { - text: A.match, + L.showPosition ? Y = "Parse error on line " + (S + 1) + `: +` + L.showPosition() + ` +Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Y = "Parse error on line " + (S + 1) + ": Unexpected " + (I == A ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Y, { + text: L.match, token: this.terminals_[I] || I, - line: A.yylineno, + line: L.yylineno, loc: $, expected: ee }); @@ -93954,7 +93976,7 @@ Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Y = throw new Error("Parse Error: multiple actions possible at state: " + D + ", token: " + I); switch (P[0]) { case 1: - m.push(I), y.push(A.yytext), b.push(A.yylloc), m.push(P[1]), I = null, C = A.yyleng, O = A.yytext, S = A.yylineno, $ = A.yylloc; + m.push(I), y.push(L.yytext), b.push(L.yylloc), m.push(P[1]), I = null, C = L.yyleng, O = L.yytext, S = L.yylineno, $ = L.yylloc; break; case 2: if (Q = this.productions_[P[1]][1], B.$ = y[y.length - Q], B._$ = { @@ -94190,35 +94212,35 @@ Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Y = } return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); -X9.parser = X9; -var qjt = X9, y1e = {}; -gie(y1e, { - addEvent: () => C1e, - addSection: () => O1e, - addTask: () => T1e, - addTaskOrg: () => E1e, - clear: () => w1e, - default: () => Qjt, - getCommonDb: () => x1e, - getSections: () => k1e, - getTasks: () => S1e +Z9.parser = Z9; +var Qjt = Z9, b1e = {}; +mie(b1e, { + addEvent: () => E1e, + addSection: () => k1e, + addTask: () => C1e, + addTaskOrg: () => _1e, + clear: () => O1e, + default: () => Yjt, + getCommonDb: () => w1e, + getSections: () => S1e, + getTasks: () => T1e }); -var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => mD, "getCommonDb"), w1e = /* @__PURE__ */ x(function() { - kP.length = 0, iS.length = 0, S1 = "", T1.length = 0, Xi(); -}, "clear"), O1e = /* @__PURE__ */ x(function(t) { +var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => vD, "getCommonDb"), O1e = /* @__PURE__ */ x(function() { + kP.length = 0, sS.length = 0, S1 = "", T1.length = 0, Xi(); +}, "clear"), k1e = /* @__PURE__ */ x(function(t) { S1 = t, kP.push(t); -}, "addSection"), k1e = /* @__PURE__ */ x(function() { +}, "addSection"), S1e = /* @__PURE__ */ x(function() { return kP; -}, "getSections"), S1e = /* @__PURE__ */ x(function() { - let t = OH(); +}, "getSections"), T1e = /* @__PURE__ */ x(function() { + let t = kH(); const e = 100; let r = 0; for (; !t && r < e; ) - t = OH(), r++; - return iS.push(...T1), iS; -}, "getTasks"), T1e = /* @__PURE__ */ x(function(t, e, r) { + t = kH(), r++; + return sS.push(...T1), sS; +}, "getTasks"), C1e = /* @__PURE__ */ x(function(t, e, r) { const n = { - id: b1e++, + id: x1e++, section: S1, type: S1, task: t, @@ -94226,9 +94248,9 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m events: r ? [r] : [] }; T1.push(n); -}, "addTask"), C1e = /* @__PURE__ */ x(function(t) { - T1.find((r) => r.id === b1e - 1).events.push(t); -}, "addEvent"), E1e = /* @__PURE__ */ x(function(t) { +}, "addTask"), E1e = /* @__PURE__ */ x(function(t) { + T1.find((r) => r.id === x1e - 1).events.push(t); +}, "addEvent"), _1e = /* @__PURE__ */ x(function(t) { const e = { section: S1, type: S1, @@ -94236,8 +94258,8 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m task: t, classes: [] }; - iS.push(e); -}, "addTaskOrg"), OH = /* @__PURE__ */ x(function() { + sS.push(e); +}, "addTaskOrg"), kH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { return T1[r].processed; }, "compileTask"); @@ -94245,19 +94267,19 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m for (const [r, n] of T1.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Qjt = { - clear: w1e, - getCommonDb: x1e, - addSection: O1e, - getSections: k1e, - getTasks: S1e, - addTask: T1e, - addTaskOrg: E1e, - addEvent: C1e -}, Yjt = 12, MC = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), Yjt = { + clear: O1e, + getCommonDb: w1e, + addSection: k1e, + getSections: S1e, + getTasks: T1e, + addTask: C1e, + addTaskOrg: _1e, + addEvent: E1e +}, Wjt = 12, DC = /* @__PURE__ */ x(function(t, e) { const r = t.append("rect"); return r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), r.attr("rx", e.rx), r.attr("ry", e.ry), e.class !== void 0 && r.attr("class", e.class), r; -}, "drawRect"), Wjt = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Gjt = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -94274,24 +94296,24 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), Gjt = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), Hjt = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; -}, "drawCircle"), _1e = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), A1e = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(//gi, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class !== void 0 && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), Hjt = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), Xjt = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); - n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, _1e(t, e); -}, "drawLabel"), Xjt = /* @__PURE__ */ x(function(t, e, r) { + n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, A1e(t, e); +}, "drawLabel"), Zjt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = SP(); - i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, MC(n, i), A1e(r)( + i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, DC(n, i), L1e(r)( e.text, n, i.x, @@ -94302,17 +94324,17 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m r, e.colour ); -}, "drawSection"), kH = -1, Zjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), SH = -1, jjt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); - kH++; + SH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + kH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Wjt(i, { + i.append("line").attr("id", "task" + SH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Gjt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score }); const a = SP(); - a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, MC(i, a), A1e(r)( + a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, DC(i, a), L1e(r)( e.task, i, a.x, @@ -94323,8 +94345,8 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m r, e.colour ); -}, "drawTask"), jjt = /* @__PURE__ */ x(function(t, e) { - MC(t, { +}, "drawTask"), Kjt = /* @__PURE__ */ x(function(t, e) { + DC(t, { x: e.startx, y: e.starty, width: e.stopx - e.startx, @@ -94332,7 +94354,7 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m fill: e.fill, class: "rect" }).lower(); -}, "drawBackgroundRect"), Kjt = /* @__PURE__ */ x(function() { +}, "drawBackgroundRect"), Jjt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -94354,7 +94376,7 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m rx: 0, ry: 0 }; -}, "getNoteRect"), A1e = /* @__PURE__ */ function() { +}, "getNoteRect"), L1e = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { const d = s.append("text").attr("x", a + l / 2).attr("y", o + u / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i); n(d, h); @@ -94380,7 +94402,7 @@ var S1 = "", b1e = 0, kP = [], iS = [], T1 = [], x1e = /* @__PURE__ */ x(() => m return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), Jjt = /* @__PURE__ */ x(function(t) { +}(), eKt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"); function TP(t, e) { @@ -94391,39 +94413,39 @@ function TP(t, e) { }); } x(TP, "wrap"); -var eKt = /* @__PURE__ */ x(function(t, e, r, n) { +var tKt = /* @__PURE__ */ x(function(t, e, r, n) { var f; - const i = r % Yjt - 1, s = t.append("g"); + const i = r % Wjt - 1, s = t.append("g"); e.section = i, s.attr( "class", (e.class ? e.class + " " : "") + "timeline-node " + ("section-" + i) ); const a = s.append("g"), o = s.append("g"), u = o.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(TP, e.width).node().getBBox(), h = (f = n.fontSize) != null && f.replace ? n.fontSize.replace("px", "") : n.fontSize; - return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), rKt(a, e, i, n), e; -}, "drawNode"), tKt = /* @__PURE__ */ x(function(t, e, r) { + return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), nKt(a, e, i, n), e; +}, "drawNode"), rKt = /* @__PURE__ */ x(function(t, e, r) { var o; const n = t.append("g"), s = n.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(TP, e.width).node().getBBox(), a = (o = r.fontSize) != null && o.replace ? r.fontSize.replace("px", "") : r.fontSize; return n.remove(), s.height + a * 1.1 * 0.5 + e.padding; -}, "getVirtualNodeHeight"), rKt = /* @__PURE__ */ x(function(t, e, r) { +}, "getVirtualNodeHeight"), nKt = /* @__PURE__ */ x(function(t, e, r) { t.append("path").attr("id", "node-" + e.id).attr("class", "node-bkg node-" + e.type).attr( "d", `M0 ${e.height - 5} v${-e.height + 2 * 5} q0,-5 5,-5 h${e.width - 2 * 5} q5,0 5,5 v${e.height - 5} H0 Z` ), t.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", e.height).attr("x2", e.width).attr("y2", e.height); }, "defaultBkg"), Od = { - drawRect: MC, - drawCircle: Gjt, - drawSection: Xjt, - drawText: _1e, - drawLabel: Hjt, - drawTask: Zjt, - drawBackgroundRect: jjt, - getTextObj: Kjt, + drawRect: DC, + drawCircle: Hjt, + drawSection: Zjt, + drawText: A1e, + drawLabel: Xjt, + drawTask: jjt, + drawBackgroundRect: Kjt, + getTextObj: Jjt, getNoteRect: SP, - initGraphics: Jjt, - drawNode: eKt, - getVirtualNodeHeight: tKt -}, nKt = /* @__PURE__ */ x(function(t, e, r, n) { - var E, A, _, R, $; + initGraphics: eKt, + drawNode: tKt, + getVirtualNodeHeight: rKt +}, iKt = /* @__PURE__ */ x(function(t, e, r, n) { + var E, L, _, R, $; const i = be(), s = (E = i.leftMargin) != null ? E : 50; X.debug("timeline", n.db); const a = i.securityLevel; @@ -94486,7 +94508,7 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { }; X.debug("sectionNode", M); const I = u.append("g"), D = Od.drawNode(I, M, w, i); - X.debug("sectionNode output", D), I.attr("transform", `translate(${y}, ${v})`), b += p + 50, N.length > 0 && SH( + X.debug("sectionNode output", D), I.attr("transform", `translate(${y}, ${v})`), b += p + 50, N.length > 0 && TH( u, N, w, @@ -94499,7 +94521,7 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { p, !1 ), y += 200 * Math.max(N.length, 1), b = v, w++; - }) : (O = !1, SH( + }) : (O = !1, TH( u, h, w, @@ -94516,10 +94538,10 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("bounds", T), f && u.append("text").text(f).attr("x", T.width / 2 - s).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), m = O ? p + g + 150 : g + 100, u.append("g").attr("class", "lineWrapper").append("line").attr("x1", s).attr("y1", m).attr("x2", T.width + 3 * s).attr("y2", m).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), H1( void 0, u, - (_ = (A = i.timeline) == null ? void 0 : A.padding) != null ? _ : 50, + (_ = (L = i.timeline) == null ? void 0 : L.padding) != null ? _ : 50, ($ = (R = i.timeline) == null ? void 0 : R.useMaxWidth) != null ? $ : !1 ); -}, "draw"), SH = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "draw"), TH = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { var f; for (const d of e) { const p = { @@ -94535,7 +94557,7 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { if (X.debug("taskHeight after draw", v), g.attr("transform", `translate(${n}, ${i})`), s = Math.max(s, v), d.events) { const y = t.append("g").attr("class", "lineWrapper"); let b = s; - i += 100, b = b + iKt(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( + i += 100, b = b + sKt(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( "y2", i + s + (h ? s : u) + l + 120 ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"); @@ -94543,7 +94565,7 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { n = n + 200, h && !((f = a.timeline) != null && f.disableMulticolor) && r++; } i = i - 10; -}, "drawTasks"), iKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawTasks"), sKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { let a = 0; const o = i; i = i + 100; @@ -94561,11 +94583,11 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { a = a + d, h.attr("transform", `translate(${n}, ${i})`), i = i + 10 + d; } return i = o, a; -}, "drawEvents"), sKt = { +}, "drawEvents"), aKt = { setConf: /* @__PURE__ */ x(() => { }, "setConf"), - draw: nKt -}, aKt = /* @__PURE__ */ x((t) => { + draw: iKt +}, oKt = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], B0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Yt(t["lineColor" + r], 20); @@ -94606,11 +94628,11 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { `; } return e; -}, "genSections"), oKt = /* @__PURE__ */ x((t) => ` +}, "genSections"), lKt = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${aKt(t)} + ${oKt(t)} .section-root rect, .section-root path, .section-root circle { fill: ${t.git0}; } @@ -94629,39 +94651,39 @@ var eKt = /* @__PURE__ */ x(function(t, e, r, n) { .eventWrapper { filter: brightness(120%); } -`, "getStyles"), lKt = oKt, cKt = { - db: y1e, - renderer: sKt, - parser: qjt, - styles: lKt +`, "getStyles"), cKt = lKt, uKt = { + db: b1e, + renderer: aKt, + parser: Qjt, + styles: cKt }; -const uKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const hKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: cKt + diagram: uKt }, Symbol.toStringTag, { value: "Module" })); -function Ii(t) { - return Ii = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { +function Pi(t) { + return Pi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; - }, Ii(t); + }, Pi(t); } function CP(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function TH(t, e) { +function CH(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n); } } function EP(t, e, r) { - return e && TH(t.prototype, e), r && TH(t, r), Object.defineProperty(t, "prototype", { + return e && CH(t.prototype, e), r && CH(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t; } -function L1e(t, e, r) { +function R1e(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, @@ -94670,13 +94692,13 @@ function L1e(t, e, r) { }) : t[e] = r, t; } function ul(t, e) { - return hKt(t) || fKt(t, e) || R1e(t, e) || dKt(); + return fKt(t) || dKt(t, e) || M1e(t, e) || pKt(); } -function hKt(t) { +function fKt(t) { if (Array.isArray(t)) return t; } -function fKt(t, e) { +function dKt(t, e) { var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (r != null) { var n = [], i = !0, s = !1, a, o; @@ -94696,31 +94718,31 @@ function fKt(t, e) { return n; } } -function R1e(t, e) { +function M1e(t, e) { if (!!t) { if (typeof t == "string") - return CH(t, e); + return EH(t, e); var r = Object.prototype.toString.call(t).slice(8, -1); if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) - return CH(t, e); + return EH(t, e); } } -function CH(t, e) { +function EH(t, e) { (e == null || e > t.length) && (e = t.length); for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]; return n; } -function dKt() { +function pKt() { 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 M1e(t, e) { +function D1e(t, e) { var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (!r) { - if (Array.isArray(t) || (r = R1e(t)) || e && t && typeof t.length == "number") { + if (Array.isArray(t) || (r = M1e(t)) || e && t && typeof t.length == "number") { r && (t = r); var n = 0, i = function() { }; @@ -94765,50 +94787,50 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; } -var xi = typeof window > "u" ? null : window, EH = xi ? xi.navigator : null; +var xi = typeof window > "u" ? null : window, _H = xi ? xi.navigator : null; xi && xi.document; -var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { -}), mKt = typeof HTMLElement > "u" ? "undefined" : Ii(HTMLElement), Wx = function(e) { +var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { +}), vKt = typeof HTMLElement > "u" ? "undefined" : Pi(HTMLElement), Wx = function(e) { return e && e.instanceString && Pn(e.instanceString) ? e.instanceString() : null; }, qt = function(e) { - return e != null && Ii(e) == pKt; + return e != null && Pi(e) == gKt; }, Pn = function(e) { - return e != null && Ii(e) === gKt; + return e != null && Pi(e) === mKt; }, nn = function(e) { return !lo(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, Ar = function(e) { - return e != null && Ii(e) === D1e && !nn(e) && e.constructor === Object; -}, vKt = function(e) { - return e != null && Ii(e) === D1e; -}, bt = function(e) { - return e != null && Ii(e) === Ii(1) && !isNaN(e); + return e != null && Pi(e) === N1e && !nn(e) && e.constructor === Object; }, yKt = function(e) { + return e != null && Pi(e) === N1e; +}, bt = function(e) { + return e != null && Pi(e) === Pi(1) && !isNaN(e); +}, bKt = function(e) { return bt(e) && Math.floor(e) === e; -}, sS = function(e) { - if (mKt !== "undefined") +}, aS = function(e) { + if (vKt !== "undefined") return e != null && e instanceof HTMLElement; }, lo = function(e) { - return Gx(e) || N1e(e); + return Gx(e) || I1e(e); }, Gx = function(e) { return Wx(e) === "collection" && e._private.single; -}, N1e = function(e) { +}, I1e = function(e) { return Wx(e) === "collection" && !e._private.single; }, _P = function(e) { return Wx(e) === "core"; -}, I1e = function(e) { +}, P1e = function(e) { return Wx(e) === "stylesheet"; -}, bKt = function(e) { +}, xKt = function(e) { return Wx(e) === "event"; }, Rf = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, xKt = function(e) { - return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, wKt = function(e) { - return Ar(e) && bt(e.x1) && bt(e.x2) && bt(e.y1) && bt(e.y2); + return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, OKt = function(e) { - return vKt(e) && Pn(e.then); -}, kKt = function() { - return EH && EH.userAgent.match(/msie|trident|edge/i); + return Ar(e) && bt(e.x1) && bt(e.x2) && bt(e.y1) && bt(e.y2); +}, kKt = function(e) { + return yKt(e) && Pn(e.then); +}, SKt = function() { + return _H && _H.userAgent.match(/msie|trident|edge/i); }, Q2 = function(e, r) { r || (r = function() { if (arguments.length === 1) @@ -94828,20 +94850,20 @@ var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { return t.replace(/([A-Z])/g, function(e) { return "-" + e.toLowerCase(); }); -}), DC = Q2(function(t) { +}), NC = Q2(function(t) { return t.replace(/(-\w)/g, function(e) { return e[1].toUpperCase(); }); -}), P1e = Q2(function(t, e) { +}), $1e = Q2(function(t, e) { return t + e[0].toUpperCase() + e.substring(1); }, function(t, e) { return t + "$" + e; -}), _H = function(e) { +}), AH = function(e) { return Rf(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, _i = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", SKt = "rgb[a]?\\((" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)(?:\\s*,\\s*(" + _i + "))?\\)", TKt = "rgb[a]?\\((?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)(?:\\s*,\\s*(?:" + _i + "))?\\)", CKt = "hsl[a]?\\((" + _i + ")\\s*,\\s*(" + _i + "[%])\\s*,\\s*(" + _i + "[%])(?:\\s*,\\s*(" + _i + "))?\\)", EKt = "hsl[a]?\\((?:" + _i + ")\\s*,\\s*(?:" + _i + "[%])\\s*,\\s*(?:" + _i + "[%])(?:\\s*,\\s*(?:" + _i + "))?\\)", _Kt = "\\#[0-9a-fA-F]{3}", AKt = "\\#[0-9a-fA-F]{6}", $1e = function(e, r) { +}, Ai = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", TKt = "rgb[a]?\\((" + Ai + "[%]?)\\s*,\\s*(" + Ai + "[%]?)\\s*,\\s*(" + Ai + "[%]?)(?:\\s*,\\s*(" + Ai + "))?\\)", CKt = "rgb[a]?\\((?:" + Ai + "[%]?)\\s*,\\s*(?:" + Ai + "[%]?)\\s*,\\s*(?:" + Ai + "[%]?)(?:\\s*,\\s*(?:" + Ai + "))?\\)", EKt = "hsl[a]?\\((" + Ai + ")\\s*,\\s*(" + Ai + "[%])\\s*,\\s*(" + Ai + "[%])(?:\\s*,\\s*(" + Ai + "))?\\)", _Kt = "hsl[a]?\\((?:" + Ai + ")\\s*,\\s*(?:" + Ai + "[%])\\s*,\\s*(?:" + Ai + "[%])(?:\\s*,\\s*(?:" + Ai + "))?\\)", AKt = "\\#[0-9a-fA-F]{3}", LKt = "\\#[0-9a-fA-F]{6}", B1e = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; -}, LKt = function(e, r) { - return -1 * $1e(e, r); +}, RKt = function(e, r) { + return -1 * B1e(e, r); }, Kt = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { var n = e[r]; @@ -94852,17 +94874,17 @@ var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { } } return t; -}, RKt = function(e) { +}, MKt = function(e) { if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) { var r = e.length === 4, n, i, s, a = 16; return r ? (n = parseInt(e[1] + e[1], a), i = parseInt(e[2] + e[2], a), s = parseInt(e[3] + e[3], a)) : (n = parseInt(e[1] + e[2], a), i = parseInt(e[3] + e[4], a), s = parseInt(e[5] + e[6], a)), [n, i, s]; } -}, MKt = function(e) { +}, DKt = function(e) { var r, n, i, s, a, o, l, u; function h(g, m, v) { return v < 0 && (v += 1), v > 1 && (v -= 1), v < 1 / 6 ? g + (m - g) * 6 * v : v < 1 / 2 ? m : v < 2 / 3 ? g + (m - g) * (2 / 3 - v) * 6 : g; } - var f = new RegExp("^" + CKt + "$").exec(e); + var f = new RegExp("^" + EKt + "$").exec(e); if (f) { if (n = parseInt(f[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, i = parseFloat(f[2]), i < 0 || i > 100 || (i = i / 100, s = parseFloat(f[3]), s < 0 || s > 100) || (s = s / 100, a = f[4], a !== void 0 && (a = parseFloat(a), a < 0 || a > 1))) return; @@ -94875,8 +94897,8 @@ var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { r = [o, l, u, a]; } return r; -}, DKt = function(e) { - var r, n = new RegExp("^" + SKt + "$").exec(e); +}, NKt = function(e) { + var r, n = new RegExp("^" + TKt + "$").exec(e); if (n) { r = []; for (var i = [], s = 1; s <= 3; s++) { @@ -94896,11 +94918,11 @@ var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { } } return r; -}, NKt = function(e) { - return PKt[e.toLowerCase()]; }, IKt = function(e) { - return (nn(e) ? e : null) || NKt(e) || RKt(e) || DKt(e) || MKt(e); -}, PKt = { + return $Kt[e.toLowerCase()]; +}, PKt = function(e) { + return (nn(e) ? e : null) || IKt(e) || MKt(e) || NKt(e) || DKt(e); +}, $Kt = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], @@ -95049,14 +95071,14 @@ var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] -}, B1e = function(e) { +}, F1e = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (Ar(a)) throw Error("Tried to set map with object key"); s < n.length - 1 ? (r[a] == null && (r[a] = {}), r = r[a]) : r[a] = e.value; } -}, F1e = function(e) { +}, z1e = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (Ar(a)) @@ -95066,92 +95088,92 @@ var pKt = Ii(""), D1e = Ii({}), gKt = Ii(function() { } return r; }; -function $Kt(t) { +function BKt(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var C0 = $Kt, Iv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function BKt(t, e) { +var C0 = BKt, Iv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function FKt(t, e) { return e = { exports: {} }, t(e, e.exports), e.exports; } -var FKt = typeof Iv == "object" && Iv && Iv.Object === Object && Iv, zKt = FKt, VKt = typeof self == "object" && self && self.Object === Object && self, UKt = zKt || VKt || Function("return this")(), NC = UKt, qKt = function() { - return NC.Date.now(); -}, j_ = qKt, QKt = /\s/; -function YKt(t) { - for (var e = t.length; e-- && QKt.test(t.charAt(e)); ) +var zKt = typeof Iv == "object" && Iv && Iv.Object === Object && Iv, VKt = zKt, UKt = typeof self == "object" && self && self.Object === Object && self, qKt = VKt || UKt || Function("return this")(), IC = qKt, QKt = function() { + return IC.Date.now(); +}, K_ = QKt, YKt = /\s/; +function WKt(t) { + for (var e = t.length; e-- && YKt.test(t.charAt(e)); ) ; return e; } -var WKt = YKt, GKt = /^\s+/; -function HKt(t) { - return t && t.slice(0, WKt(t) + 1).replace(GKt, ""); +var GKt = WKt, HKt = /^\s+/; +function XKt(t) { + return t && t.slice(0, GKt(t) + 1).replace(HKt, ""); } -var XKt = HKt, ZKt = NC.Symbol, C1 = ZKt, z1e = Object.prototype, jKt = z1e.hasOwnProperty, KKt = z1e.toString, iv = C1 ? C1.toStringTag : void 0; -function JKt(t) { - var e = jKt.call(t, iv), r = t[iv]; +var ZKt = XKt, jKt = IC.Symbol, C1 = jKt, V1e = Object.prototype, KKt = V1e.hasOwnProperty, JKt = V1e.toString, iv = C1 ? C1.toStringTag : void 0; +function eJt(t) { + var e = KKt.call(t, iv), r = t[iv]; try { t[iv] = void 0; var n = !0; } catch { } - var i = KKt.call(t); + var i = JKt.call(t); return n && (e ? t[iv] = r : delete t[iv]), i; } -var eJt = JKt, tJt = Object.prototype, rJt = tJt.toString; -function nJt(t) { - return rJt.call(t); -} -var iJt = nJt, sJt = "[object Null]", aJt = "[object Undefined]", AH = C1 ? C1.toStringTag : void 0; -function oJt(t) { - return t == null ? t === void 0 ? aJt : sJt : AH && AH in Object(t) ? eJt(t) : iJt(t); +var tJt = eJt, rJt = Object.prototype, nJt = rJt.toString; +function iJt(t) { + return nJt.call(t); } -var V1e = oJt; +var sJt = iJt, aJt = "[object Null]", oJt = "[object Undefined]", LH = C1 ? C1.toStringTag : void 0; function lJt(t) { + return t == null ? t === void 0 ? oJt : aJt : LH && LH in Object(t) ? tJt(t) : sJt(t); +} +var U1e = lJt; +function cJt(t) { return t != null && typeof t == "object"; } -var cJt = lJt, uJt = "[object Symbol]"; -function hJt(t) { - return typeof t == "symbol" || cJt(t) && V1e(t) == uJt; +var uJt = cJt, hJt = "[object Symbol]"; +function fJt(t) { + return typeof t == "symbol" || uJt(t) && U1e(t) == hJt; } -var Hx = hJt, LH = 0 / 0, fJt = /^[-+]0x[0-9a-f]+$/i, dJt = /^0b[01]+$/i, pJt = /^0o[0-7]+$/i, gJt = parseInt; -function mJt(t) { +var Hx = fJt, RH = 0 / 0, dJt = /^[-+]0x[0-9a-f]+$/i, pJt = /^0b[01]+$/i, gJt = /^0o[0-7]+$/i, mJt = parseInt; +function vJt(t) { if (typeof t == "number") return t; if (Hx(t)) - return LH; + return RH; if (C0(t)) { var e = typeof t.valueOf == "function" ? t.valueOf() : t; t = C0(e) ? e + "" : e; } if (typeof t != "string") return t === 0 ? t : +t; - t = XKt(t); - var r = dJt.test(t); - return r || pJt.test(t) ? gJt(t.slice(2), r ? 2 : 8) : fJt.test(t) ? LH : +t; + t = ZKt(t); + var r = pJt.test(t); + return r || gJt.test(t) ? mJt(t.slice(2), r ? 2 : 8) : dJt.test(t) ? RH : +t; } -var RH = mJt, vJt = "Expected a function", yJt = Math.max, bJt = Math.min; -function xJt(t, e, r) { +var MH = vJt, yJt = "Expected a function", bJt = Math.max, xJt = Math.min; +function wJt(t, e, r) { var n, i, s, a, o, l, u = 0, h = !1, f = !1, d = !0; if (typeof t != "function") - throw new TypeError(vJt); - e = RH(e) || 0, C0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? yJt(RH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + throw new TypeError(yJt); + e = MH(e) || 0, C0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? bJt(MH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); function p(C) { - var T = n, L = i; - return n = i = void 0, u = C, a = t.apply(L, T), a; + var T = n, A = i; + return n = i = void 0, u = C, a = t.apply(A, T), a; } function g(C) { return u = C, o = setTimeout(y, e), h ? p(C) : a; } function m(C) { - var T = C - l, L = C - u, E = e - T; - return f ? bJt(E, s - L) : E; + var T = C - l, A = C - u, E = e - T; + return f ? xJt(E, s - A) : E; } function v(C) { - var T = C - l, L = C - u; - return l === void 0 || T >= e || T < 0 || f && L >= s; + var T = C - l, A = C - u; + return l === void 0 || T >= e || T < 0 || f && A >= s; } function y() { - var C = j_(); + var C = K_(); if (v(C)) return b(C); o = setTimeout(y, m(C)); @@ -95163,10 +95185,10 @@ function xJt(t, e, r) { o !== void 0 && clearTimeout(o), u = 0, n = l = i = o = void 0; } function O() { - return o === void 0 ? a : b(j_()); + return o === void 0 ? a : b(K_()); } function S() { - var C = j_(), T = v(C); + var C = K_(), T = v(C); if (n = arguments, i = this, l = C, T) { if (o === void 0) return g(l); @@ -95177,11 +95199,11 @@ function xJt(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { - return K_.now(); +var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { + return J_.now(); } : function() { return Date.now(); -}, wJt = function() { +}, OJt = function() { if (xi) { if (xi.requestAnimationFrame) return function(t) { @@ -95202,28 +95224,28 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { } return function(t) { t && setTimeout(function() { - t(U1e()); + t(q1e()); }, 1e3 / 60); }; -}(), aS = function(e) { - return wJt(e); -}, eh = U1e, zp = 9261, q1e = 65599, Pv = 5381, Q1e = function(e) { +}(), oS = function(e) { + return OJt(e); +}, eh = q1e, zp = 9261, Q1e = 65599, Pv = 5381, Y1e = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zp, n = r, i; i = e.next(), !i.done; ) - n = n * q1e + i.value | 0; + n = n * Q1e + i.value | 0; return n; }, Y2 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zp; - return r * q1e + e | 0; + return r * Q1e + e | 0; }, W2 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Pv; return (r << 5) + r + e | 0; -}, OJt = function(e, r) { +}, kJt = function(e, r) { return e * 2097152 + r; }, bh = function(e) { return e[0] * 2097152 + e[1]; }, NO = function(e, r) { return [Y2(e[0], r[0]), W2(e[1], r[1])]; -}, kJt = function(e, r) { +}, SJt = function(e, r) { var n = { value: 0, done: !1 @@ -95232,7 +95254,7 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { return i < s ? n.value = e[i++] : n.done = !0, n; } }; - return Q1e(a, r); + return Y1e(a, r); }, E0 = function(e, r) { var n = { value: 0, @@ -95242,43 +95264,43 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { return i < s ? n.value = e.charCodeAt(i++) : n.done = !0, n; } }; - return Q1e(a, r); -}, Y1e = function() { - return SJt(arguments); -}, SJt = function(e) { + return Y1e(a, r); +}, W1e = function() { + return TJt(arguments); +}, TJt = function(e) { for (var r, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? r = E0(i) : r = E0(i, r); } return r; -}, MH = !0, TJt = console.warn != null, CJt = console.trace != null, LP = Number.MAX_SAFE_INTEGER || 9007199254740991, W1e = function() { +}, DH = !0, CJt = console.warn != null, EJt = console.trace != null, LP = Number.MAX_SAFE_INTEGER || 9007199254740991, G1e = function() { return !0; -}, oS = function() { +}, lS = function() { return !1; -}, DH = function() { +}, NH = function() { return 0; }, RP = function() { }, Yn = function(e) { throw new Error(e); -}, G1e = function(e) { +}, H1e = function(e) { if (e !== void 0) - MH = !!e; + DH = !!e; else - return MH; + return DH; }, Qr = function(e) { - !G1e() || (TJt ? console.warn(e) : (console.log(e), CJt && console.trace())); -}, EJt = function(e) { + !H1e() || (CJt ? console.warn(e) : (console.log(e), EJt && console.trace())); +}, _Jt = function(e) { return Kt({}, e); }, Tc = function(e) { - return e == null ? e : nn(e) ? e.slice() : Ar(e) ? EJt(e) : e; -}, _Jt = function(e) { + return e == null ? e : nn(e) ? e.slice() : Ar(e) ? _Jt(e) : e; +}, AJt = function(e) { return e.slice(); -}, H1e = function(e, r) { +}, X1e = function(e, r) { for (r = e = ""; e++ < 36; r += e * 51 & 52 ? (e ^ 15 ? 8 ^ Math.random() * (e ^ 20 ? 16 : 4) : 4).toString(16) : "-") ; return r; -}, AJt = {}, X1e = function() { - return AJt; +}, LJt = {}, Z1e = function() { + return LJt; }, ws = function(e) { var r = Object.keys(e); return function(n) { @@ -95293,16 +95315,16 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { ; }, MP = function(e) { e.splice(0, e.length); -}, LJt = function(e, r) { +}, RJt = function(e, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; e.push(i); } }, ml = function(e, r, n) { - return n && (r = P1e(n, r)), e[r]; + return n && (r = $1e(n, r)), e[r]; }, Dh = function(e, r, n, i) { - n && (r = P1e(n, r)), e[r] = i; -}, RJt = /* @__PURE__ */ function() { + n && (r = $1e(n, r)), e[r] = i; +}, MJt = /* @__PURE__ */ function() { function t() { CP(this, t), this._obj = {}; } @@ -95332,7 +95354,7 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { return this._obj[r]; } }]), t; -}(), Cc = typeof Map < "u" ? Map : RJt, MJt = "undefined", DJt = /* @__PURE__ */ function() { +}(), Cc = typeof Map < "u" ? Map : MJt, DJt = "undefined", NJt = /* @__PURE__ */ function() { function t(e) { if (CP(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var r; @@ -95382,7 +95404,7 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { return this.toArray().forEach(r, n); } }]), t; -}(), gm = (typeof Set > "u" ? "undefined" : Ii(Set)) !== MJt ? Set : DJt, PC = function(e, r) { +}(), gm = (typeof Set > "u" ? "undefined" : Pi(Set)) !== DJt ? Set : NJt, $C = function(e, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (e === void 0 || r === void 0 || !_P(e)) { Yn("An element must have a core reference and parameters set"); @@ -95468,7 +95490,7 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { this.createEmitter(); var p = r.style || r.css; p && (Qr("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."), this.style(p)), (n === void 0 || n) && this.restore(); -}, NH = function(e) { +}, IH = function(e) { return e = { bfs: e.bfs || !e.dfs, dfs: e.dfs || !e.bfs @@ -95505,26 +95527,26 @@ var IC = xJt, K_ = xi ? xi.performance : null, U1e = K_ && K_.now ? function() { if (T !== "continue" && T === "break") break; } - for (var L = o.collection(), E = 0; E < h.length; E++) { - var A = h[E], _ = f[A.id()]; - _ != null && L.push(_), L.push(A); + for (var A = o.collection(), E = 0; E < h.length; E++) { + var L = h[E], _ = f[L.id()]; + _ != null && A.push(_), A.push(L); } return { - path: o.collection(L), + path: o.collection(A), found: o.collection(m) }; }; }, G2 = { - breadthFirstSearch: NH({ + breadthFirstSearch: IH({ bfs: !0 }), - depthFirstSearch: NH({ + depthFirstSearch: IH({ dfs: !0 }) }; G2.bfs = G2.breadthFirstSearch; G2.dfs = G2.depthFirstSearch; -var NJt = BKt(function(t, e) { +var IJt = FKt(function(t, e) { (function() { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v; i = Math.floor, f = Math.min, n = function(y, b) { @@ -95548,12 +95570,12 @@ var NJt = BKt(function(t, e) { var O; return w == null && (w = n), y.length && w(y[0], b) < 0 && (O = [y[0], b], b = O[0], y[0] = O[1], v(y, 0, w)), b; }, s = function(y, b) { - var w, O, S, C, T, L; + var w, O, S, C, T, A; for (b == null && (b = n), C = function() { - L = []; - for (var E = 0, A = i(y.length / 2); 0 <= A ? E < A : E > A; 0 <= A ? E++ : E--) - L.push(E); - return L; + A = []; + for (var E = 0, L = i(y.length / 2); 0 <= L ? E < L : E > L; 0 <= L ? E++ : E--) + A.push(E); + return A; }.apply(this).reverse(), T = [], O = 0, S = C.length; O < S; O++) w = C[O], T.push(v(y, w, b)); return T; @@ -95562,22 +95584,22 @@ var NJt = BKt(function(t, e) { if (w == null && (w = n), O = y.indexOf(b), O !== -1) return m(y, 0, O, w), v(y, O, w); }, d = function(y, b, w) { - var O, S, C, T, L; + var O, S, C, T, A; if (w == null && (w = n), S = y.slice(0, b), !S.length) return S; - for (s(S, w), L = y.slice(b), C = 0, T = L.length; C < T; C++) - O = L[C], l(S, O, w); + for (s(S, w), A = y.slice(b), C = 0, T = A.length; C < T; C++) + O = A[C], l(S, O, w); return S.sort(w).reverse(); }, p = function(y, b, w) { - var O, S, C, T, L, E, A, _, R; + var O, S, C, T, A, E, L, _, R; if (w == null && (w = n), b * 10 <= y.length) { if (C = y.slice(0, b).sort(w), !C.length) return C; - for (S = C[C.length - 1], A = y.slice(b), T = 0, E = A.length; T < E; T++) - O = A[T], w(O, S) < 0 && (h(C, O, 0, null, w), C.pop(), S = C[C.length - 1]); + for (S = C[C.length - 1], L = y.slice(b), T = 0, E = L.length; T < E; T++) + O = L[T], w(O, S) < 0 && (h(C, O, 0, null, w), C.pop(), S = C[C.length - 1]); return C; } - for (s(y, w), R = [], L = 0, _ = f(b, y.length); 0 <= _ ? L < _ : L > _; 0 <= _ ? ++L : --L) + for (s(y, w), R = [], A = 0, _ = f(b, y.length); 0 <= _ ? A < _ : A > _; 0 <= _ ? ++A : --A) R.push(a(y, w)); return R; }, m = function(y, b, w, O) { @@ -95591,10 +95613,10 @@ var NJt = BKt(function(t, e) { } return y[w] = S; }, v = function(y, b, w) { - var O, S, C, T, L; - for (w == null && (w = n), S = y.length, L = b, C = y[b], O = 2 * b + 1; O < S; ) + var O, S, C, T, A; + for (w == null && (w = n), S = y.length, A = b, C = y[b], O = 2 * b + 1; O < S; ) T = O + 1, T < S && !(w(y[O], y[T]) < 0) && (O = T), y[b] = y[O], b = O, O = 2 * b + 1; - return y[b] = C, m(y, L, b, w); + return y[b] = C, m(y, A, b, w); }, r = function() { y.push = o, y.pop = a, y.replace = u, y.pushpop = l, y.heapify = s, y.updateItem = g, y.nlargest = d, y.nsmallest = p; function y(b) { @@ -95634,13 +95656,13 @@ var NJt = BKt(function(t, e) { return r; }); }).call(Iv); -}), Xx = NJt, IJt = ws({ +}), Xx = IJt, PJt = ws({ root: null, weight: function(e) { return 1; }, directed: !1 -}), PJt = { +}), $Jt = { dijkstra: function(e) { if (!Ar(e)) { var r = arguments; @@ -95650,7 +95672,7 @@ var NJt = BKt(function(t, e) { directed: r[2] }; } - var n = IJt(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = qt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; + var n = PJt(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = qt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; m.unmergeBy(function(N) { return N.isLoop(); }); @@ -95674,10 +95696,10 @@ var NJt = BKt(function(t, e) { dist: P }; }; b.size() > 0; ) { - var C = b.pop(), T = v(C), L = C.id(); - if (d[L] = T, T !== 1 / 0) - for (var E = C.neighborhood().intersect(g), A = 0; A < E.length; A++) { - var _ = E[A], R = _.id(), $ = S(C, _), k = T + $.dist; + var C = b.pop(), T = v(C), A = C.id(); + if (d[A] = T, T !== 1 / 0) + for (var E = C.neighborhood().intersect(g), L = 0; L < E.length; L++) { + var _ = E[L], R = _.id(), $ = S(C, _), k = T + $.dist; k < v(_) && (y(_, k), f[R] = { node: C, edge: $.edge @@ -95700,7 +95722,7 @@ var NJt = BKt(function(t, e) { } }; } -}, $Jt = { +}, BJt = { kruskal: function(e) { e = e || function(w) { return 1; @@ -95721,7 +95743,7 @@ var NJt = BKt(function(t, e) { } return o; } -}, BJt = ws({ +}, FJt = ws({ root: null, goal: null, weight: function(e) { @@ -95731,9 +95753,9 @@ var NJt = BKt(function(t, e) { return 0; }, directed: !1 -}), FJt = { +}), zJt = { aStar: function(e) { - var r = this.cy(), n = BJt(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; + var r = this.cy(), n = FJt(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; i = r.collection(i)[0], s = r.collection(s)[0]; var u = i.id(), h = s.id(), f = {}, d = {}, p = {}, g = new Xx(function(F, B) { return d[F.id()] - d[B.id()]; @@ -95747,12 +95769,12 @@ var NJt = BKt(function(t, e) { b(i, u), f[u] = 0, d[u] = a(i); for (var T = 0; g.size() > 0; ) { if (S(), T++, O === h) { - for (var L = [], E = s, A = h, _ = y[A]; L.unshift(E), _ != null && L.unshift(_), E = v[A], E != null; ) - A = E.id(), _ = y[A]; + for (var A = [], E = s, L = h, _ = y[L]; A.unshift(E), _ != null && A.unshift(_), E = v[L], E != null; ) + L = E.id(), _ = y[L]; return { found: !0, distance: f[O], - path: this.spawn(L), + path: this.spawn(A), steps: T }; } @@ -95779,14 +95801,14 @@ var NJt = BKt(function(t, e) { steps: T }; } -}, zJt = ws({ +}, VJt = ws({ weight: function(e) { return 1; }, directed: !1 -}), VJt = { +}), UJt = { floydWarshall: function(e) { - for (var r = this.cy(), n = zJt(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Q) { + for (var r = this.cy(), n = VJt(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Q) { return l.indexOf(Q); }, p = function(Q) { return l[Q]; @@ -95797,10 +95819,10 @@ var NJt = BKt(function(t, e) { for (var b = new Array(f), w = new Array(f), O = 0; O < u.length; O++) { var S = u[O], C = S.source()[0], T = S.target()[0]; if (C !== T) { - var L = d(C), E = d(T), A = L * h + E, _ = a(S); - if (g[A] > _ && (g[A] = _, b[A] = E, w[A] = S), !s) { - var R = E * h + L; - !s && g[R] > _ && (g[R] = _, b[R] = L, w[R] = S); + var A = d(C), E = d(T), L = A * h + E, _ = a(S); + if (g[L] > _ && (g[L] = _, b[L] = E, w[L] = S), !s) { + var R = E * h + A; + !s && g[R] > _ && (g[R] = _, b[R] = A, w[R] = S); } } } @@ -95833,15 +95855,15 @@ var NJt = BKt(function(t, e) { }; return B; } -}, UJt = ws({ +}, qJt = ws({ weight: function(e) { return 1; }, directed: !1, root: null -}), qJt = { +}), QJt = { bellmanFord: function(e) { - var r = this, n = UJt(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Cc(), m = !1, v = []; + var r = this, n = qJt(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Cc(), m = !1, v = []; a = u.collection(a)[0], f.unmergeBy(function(ce) { return ce.isLoop(); }); @@ -95863,17 +95885,17 @@ var NJt = BKt(function(t, e) { } return l.spawn(Ge); }, C = 0; C < p; C++) { - var T = d[C], L = b(T); - T.same(a) ? L.dist = 0 : L.dist = 1 / 0, L.pred = null, L.edge = null; + var T = d[C], A = b(T); + T.same(a) ? A.dist = 0 : A.dist = 1 / 0, A.pred = null, A.edge = null; } - for (var E = !1, A = function(Ee, Ae, Ue, Ge, Ye, De) { + for (var E = !1, L = function(Ee, Ae, Ue, Ge, Ye, De) { var he = Ge.dist + De; he < Ye.dist && !Ue.same(Ge.edge) && (Ye.dist = he, Ye.pred = Ee, Ye.edge = Ue, E = !0); }, _ = 1; _ < p; _++) { E = !1; for (var R = 0; R < y; R++) { var $ = f[R], k = $.source(), N = $.target(), M = o($), I = b(k), D = b(N); - A(k, N, $, I, D, M), s || A(N, k, $, D, I, M); + L(k, N, $, I, D, M), s || L(N, k, $, D, I, M); } if (!E) break; @@ -95909,7 +95931,7 @@ var NJt = BKt(function(t, e) { negativeWeightCycles: v }; } -}, QJt = Math.sqrt(2), YJt = function(e, r, n) { +}, YJt = Math.sqrt(2), WJt = function(e, r, n) { n.length === 0 && Yn("Karger-Stein must be run on a connected (sub)graph"); for (var i = n[e], s = i[1], a = i[2], o = r[s], l = r[a], u = n, h = u.length - 1; h >= 0; h--) { var f = u[h], d = f[1], p = f[2]; @@ -95922,19 +95944,19 @@ var NJt = BKt(function(t, e) { for (var v = 0; v < r.length; v++) r[v] === l && (r[v] = o); return u; -}, J_ = function(e, r, n, i) { +}, eA = function(e, r, n, i) { for (; n > i; ) { var s = Math.floor(Math.random() * r.length); - r = YJt(s, e, r), n--; + r = WJt(s, e, r), n--; } return r; -}, WJt = { +}, GJt = { kargerStein: function() { var e = this, r = this.byGroup(), n = r.nodes, i = r.edges; i.unmergeBy(function(D) { return D.isLoop(); }); - var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / QJt); + var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / YJt); if (s < 2) { Yn("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -95949,43 +95971,43 @@ var NJt = BKt(function(t, e) { }, b = 0; b <= o; b++) { for (var w = 0; w < s; w++) m[w] = w; - var O = J_(m, u.slice(), s, l), S = O.slice(); + var O = eA(m, u.slice(), s, l), S = O.slice(); y(m, v); - var C = J_(m, O, l, 2), T = J_(v, S, l, 2); + var C = eA(m, O, l, 2), T = eA(v, S, l, 2); C.length <= T.length && C.length < d ? (d = C.length, p = C, y(m, g)) : T.length <= C.length && T.length < d && (d = T.length, p = T, y(v, g)); } - for (var L = this.spawn(p.map(function(D) { + for (var A = this.spawn(p.map(function(D) { return i[D[0]]; - })), E = this.spawn(), A = this.spawn(), _ = g[0], R = 0; R < g.length; R++) { + })), E = this.spawn(), L = this.spawn(), _ = g[0], R = 0; R < g.length; R++) { var $ = g[R], k = n[R]; - $ === _ ? E.merge(k) : A.merge(k); + $ === _ ? E.merge(k) : L.merge(k); } var N = function(P) { var F = e.spawn(); return P.forEach(function(B) { F.merge(B), B.connectedEdges().forEach(function(V) { - e.contains(V) && !L.contains(V) && F.merge(V); + e.contains(V) && !A.contains(V) && F.merge(V); }); }), F; - }, M = [N(E), N(A)], I = { - cut: L, + }, M = [N(E), N(L)], I = { + cut: A, components: M, partition1: E, - partition2: A + partition2: L }; return I; } -}, GJt = function(e) { +}, HJt = function(e) { return { x: e.x, y: e.y }; -}, $C = function(e, r, n) { +}, BC = function(e, r, n) { return { x: e.x * r + n.x, y: e.y * r + n.y }; -}, Z1e = function(e, r, n) { +}, j1e = function(e, r, n) { return { x: (e.x - n.x) / r, y: (e.y - n.y) / r @@ -95995,25 +96017,25 @@ var NJt = BKt(function(t, e) { x: e[0], y: e[1] }; -}, HJt = function(e) { +}, XJt = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.min(a, i)); } return i; -}, XJt = function(e) { +}, ZJt = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = -1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.max(a, i)); } return i; -}, ZJt = function(e) { +}, jJt = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 0, s = 0, a = r; a < n; a++) { var o = e[a]; isFinite(o) && (i += o, s++); } return i / s; -}, jJt = function(e) { +}, KJt = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0; i ? e = e.slice(r, n) : (n < e.length && e.splice(n, e.length - n), r > 0 && e.splice(0, r)); for (var o = 0, l = e.length - 1; l >= 0; l--) { @@ -96025,33 +96047,33 @@ var NJt = BKt(function(t, e) { }); var h = e.length, f = Math.floor(h / 2); return h % 2 !== 0 ? e[f + 1 + o] : (e[f - 1 + o] + e[f + o]) / 2; -}, KJt = function(e) { +}, JJt = function(e) { return Math.PI * e / 180; }, IO = function(e, r) { return Math.atan2(r, e) - Math.PI / 2; }, DP = Math.log2 || function(t) { return Math.log(t) / Math.log(2); -}, j1e = function(e) { +}, K1e = function(e) { return e > 0 ? 1 : e < 0 ? -1 : 0; }, _0 = function(e, r) { return Math.sqrt(cd(e, r)); }, cd = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return n * n + i * i; -}, JJt = function(e) { +}, eer = function(e) { for (var r = e.length, n = 0, i = 0; i < r; i++) n += e[i]; for (var s = 0; s < r; s++) e[s] = e[s] / n; return e; -}, zi = function(e, r, n, i) { +}, Vi = function(e, r, n, i) { return (1 - i) * (1 - i) * e + 2 * (1 - i) * i * r + i * i * n; }, dg = function(e, r, n, i) { return { - x: zi(e.x, r.x, n.x, i), - y: zi(e.y, r.y, n.y, i) + x: Vi(e.x, r.x, n.x, i), + y: Vi(e.y, r.y, n.y, i) }; -}, eer = function(e, r, n, i) { +}, ter = function(e, r, n, i) { var s = { x: r.x - e.x, y: r.y - e.y @@ -96065,7 +96087,7 @@ var NJt = BKt(function(t, e) { }; }, H2 = function(e, r, n) { return Math.max(e, Math.min(n, r)); -}, Fa = function(e) { +}, za = function(e) { if (e == null) return { x1: 1 / 0, @@ -96095,7 +96117,7 @@ var NJt = BKt(function(t, e) { h: e.h }; } -}, ter = function(e) { +}, rer = function(e) { return { x1: e.x1, x2: e.x2, @@ -96104,9 +96126,9 @@ var NJt = BKt(function(t, e) { y2: e.y2, h: e.h }; -}, rer = function(e) { +}, ner = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, ner = function(e, r, n) { +}, ier = function(e, r, n) { return { x1: e.x1 + r, x2: e.x2 + r, @@ -96115,9 +96137,9 @@ var NJt = BKt(function(t, e) { w: e.w, h: e.h }; -}, K1e = function(e, r) { +}, J1e = function(e, r) { e.x1 = Math.min(e.x1, r.x1), e.x2 = Math.max(e.x2, r.x2), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, r.y1), e.y2 = Math.max(e.y2, r.y2), e.h = e.y2 - e.y1; -}, ier = function(e, r, n) { +}, ser = function(e, r, n) { e.x1 = Math.min(e.x1, r), e.x2 = Math.max(e.x2, r), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, n), e.y2 = Math.max(e.y2, n), e.h = e.y2 - e.y1; }, i5 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; @@ -96133,17 +96155,17 @@ var NJt = BKt(function(t, e) { n = o[0], i = o[1], s = o[2], a = o[3]; } return e.x1 -= a, e.x2 += i, e.y1 -= n, e.y2 += s, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1, e; -}, IH = function(e, r) { +}, PH = function(e, r) { e.x1 = r.x1, e.y1 = r.y1, e.x2 = r.x2, e.y2 = r.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1; }, NP = function(e, r) { return !(e.x1 > r.x2 || r.x1 > e.x2 || e.x2 < r.x1 || r.x2 < e.x1 || e.y2 < r.y1 || r.y2 < e.y1 || e.y1 > r.y2 || r.y1 > e.y2); }, E1 = function(e, r, n) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; -}, ser = function(e, r) { +}, aer = function(e, r) { return E1(e, r.x, r.y); -}, J1e = function(e, r) { +}, eme = function(e, r) { return E1(e, r.x1, r.y1) && E1(e, r.x2, r.y2); -}, eme = function(e, r, n, i, s, a, o) { +}, tme = function(e, r, n, i, s, a, o) { var l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : "auto", u = l === "auto" ? A0(s, a) : l, h = s / 2, f = a / 2; u = Math.min(u, h, f); var d = u !== h, p = u !== f, g; @@ -96158,8 +96180,8 @@ var NJt = BKt(function(t, e) { return g; } if (d) { - var T = n - h + u - o, L = i + f + o, E = n + h - u + o, A = L; - if (g = Qh(e, r, n, i, T, L, E, A, !1), g.length > 0) + var T = n - h + u - o, A = i + f + o, E = n + h - u + o, L = A; + if (g = Qh(e, r, n, i, T, A, E, L, !1), g.length > 0) return g; } if (p) { @@ -96189,10 +96211,10 @@ var NJt = BKt(function(t, e) { return [N[0], N[1]]; } return []; -}, aer = function(e, r, n, i, s, a, o) { +}, oer = function(e, r, n, i, s, a, o) { var l = o, u = Math.min(n, s), h = Math.max(n, s), f = Math.min(i, a), d = Math.max(i, a); return u - l <= e && e <= h + l && f - l <= r && r <= d + l; -}, oer = function(e, r, n, i, s, a, o, l, u) { +}, ler = function(e, r, n, i, s, a, o, l, u) { var h = { x1: Math.min(n, o, s) - u, x2: Math.max(n, o, s) + u, @@ -96200,14 +96222,14 @@ var NJt = BKt(function(t, e) { y2: Math.max(i, l, a) + u }; return !(e < h.x1 || e > h.x2 || r < h.y1 || r > h.y2); -}, ler = function(e, r, n, i) { +}, cer = function(e, r, n, i) { n -= i; var s = r * r - 4 * e * n; if (s < 0) return []; var a = Math.sqrt(s), o = 2 * e, l = (-r + a) / o, u = (-r - a) / o; return [l, u]; -}, cer = function(e, r, n, i, s) { +}, uer = function(e, r, n, i, s) { var a = 1e-5; e === 0 && (e = a), r /= e, n /= e, i /= e; var o, l, u, h, f, d, p, g; @@ -96220,16 +96242,16 @@ var NJt = BKt(function(t, e) { return; } l = -l, h = l * l * l, h = Math.acos(u / Math.sqrt(h)), g = 2 * Math.sqrt(l), s[0] = -p + g * Math.cos(h / 3), s[2] = -p + g * Math.cos((h + 2 * Math.PI) / 3), s[4] = -p + g * Math.cos((h + 4 * Math.PI) / 3); -}, uer = function(e, r, n, i, s, a, o, l) { +}, her = function(e, r, n, i, s, a, o, l) { var u = 1 * n * n - 4 * n * s + 2 * n * o + 4 * s * s - 4 * s * o + o * o + i * i - 4 * i * a + 2 * i * l + 4 * a * a - 4 * a * l + l * l, h = 1 * 9 * n * s - 3 * n * n - 3 * n * o - 6 * s * s + 3 * s * o + 9 * i * a - 3 * i * i - 3 * i * l - 6 * a * a + 3 * a * l, f = 1 * 3 * n * n - 6 * n * s + n * o - n * e + 2 * s * s + 2 * s * e - o * e + 3 * i * i - 6 * i * a + i * l - i * r + 2 * a * a + 2 * a * r - l * r, d = 1 * n * s - n * n + n * e - s * e + i * a - i * i + i * r - a * r, p = []; - cer(u, h, f, d, p); + uer(u, h, f, d, p); for (var g = 1e-7, m = [], v = 0; v < 6; v += 2) Math.abs(p[v + 1]) < g && p[v] >= 0 && p[v] <= 1 && m.push(p[v]); m.push(1), m.push(0); for (var y = -1, b, w, O, S = 0; S < m.length; S++) b = Math.pow(1 - m[S], 2) * n + 2 * (1 - m[S]) * m[S] * s + m[S] * m[S] * o, w = Math.pow(1 - m[S], 2) * i + 2 * (1 - m[S]) * m[S] * a + m[S] * m[S] * l, O = Math.pow(b - e, 2) + Math.pow(w - r, 2), y >= 0 ? O < y && (y = O) : y = O; return y; -}, her = function(e, r, n, i, s, a) { +}, fer = function(e, r, n, i, s, a) { var o = [e - n, r - i], l = [s - n, a - i], u = l[0] * l[0] + l[1] * l[1], h = o[0] * o[0] + o[1] * o[1], f = o[0] * l[0] + o[1] * l[1], d = f * f / u; return f < 0 ? h : d > u ? (e - s) * (e - s) + (r - a) * (r - a) : h - d; }, Ta = function(e, r, n) { @@ -96247,12 +96269,12 @@ var NJt = BKt(function(t, e) { h[g * 2] = a / 2 * (n[g * 2] * d - n[g * 2 + 1] * p), h[g * 2 + 1] = o / 2 * (n[g * 2 + 1] * d + n[g * 2] * p), h[g * 2] += i, h[g * 2 + 1] += s; var m; if (u > 0) { - var v = cS(h, -u); - m = lS(v); + var v = uS(h, -u); + m = cS(v); } else m = h; return Ta(e, r, m); -}, fer = function(e, r, n, i, s, a, o, l) { +}, der = function(e, r, n, i, s, a, o, l) { for (var u = new Array(n.length * 2), h = 0; h < l.length; h++) { var f = l[h]; u[h * 4 + 0] = f.startX, u[h * 4 + 1] = f.startY, u[h * 4 + 2] = f.stopX, u[h * 4 + 3] = f.stopY; @@ -96261,21 +96283,21 @@ var NJt = BKt(function(t, e) { return !0; } return Ta(e, r, u); -}, lS = function(e) { +}, cS = function(e) { for (var r = new Array(e.length / 2), n, i, s, a, o, l, u, h, f = 0; f < e.length / 4; f++) { n = e[f * 4], i = e[f * 4 + 1], s = e[f * 4 + 2], a = e[f * 4 + 3], f < e.length / 4 - 1 ? (o = e[(f + 1) * 4], l = e[(f + 1) * 4 + 1], u = e[(f + 1) * 4 + 2], h = e[(f + 1) * 4 + 3]) : (o = e[0], l = e[1], u = e[2], h = e[3]); var d = Qh(n, i, s, a, o, l, u, h, !0); r[f * 2] = d[0], r[f * 2 + 1] = d[1]; } return r; -}, cS = function(e, r) { +}, uS = function(e, r) { for (var n = new Array(e.length * 2), i, s, a, o, l = 0; l < e.length / 2; l++) { i = e[l * 2], s = e[l * 2 + 1], l < e.length / 2 - 1 ? (a = e[(l + 1) * 2], o = e[(l + 1) * 2 + 1]) : (a = e[0], o = e[1]); var u = o - s, h = -(a - i), f = Math.sqrt(u * u + h * h), d = u / f, p = h / f; n[l * 4] = i + d * r, n[l * 4 + 1] = s + p * r, n[l * 4 + 2] = a + d * r, n[l * 4 + 3] = o + p * r; } return n; -}, der = function(e, r, n, i, s, a) { +}, per = function(e, r, n, i, s, a) { var o = n - e, l = i - r; o /= s, l /= a; var u = Math.sqrt(o * o + l * l), h = u - 1; @@ -96300,7 +96322,7 @@ var NJt = BKt(function(t, e) { return [w, O, S, C]; } else return [w, O]; -}, eA = function(e, r, n) { +}, tA = function(e, r, n) { return r <= e && e <= n || n <= e && e <= r ? e : e <= r && r <= n || n <= r && r <= e ? r : n; }, Qh = function(e, r, n, i, s, a, o, l, u) { var h = e - s, f = n - e, d = o - s, p = r - a, g = i - r, m = l - a, v = d * p - m * h, y = f * p - g * h, b = m * f - d * g; @@ -96308,7 +96330,7 @@ var NJt = BKt(function(t, e) { var w = v / b, O = y / b, S = 1e-3, C = 0 - S, T = 1 + S; return C <= w && w <= T && C <= O && O <= T ? [e + w * f, r + w * g] : u ? [e + w * f, r + w * g] : []; } else - return v === 0 || y === 0 ? eA(e, n, o) === o ? [o, l] : eA(e, n, s) === s ? [s, a] : eA(s, o, n) === n ? [n, i] : [] : []; + return v === 0 || y === 0 ? tA(e, n, o) === o ? [o, l] : tA(e, n, s) === s ? [s, a] : tA(s, o, n) === n ? [n, i] : [] : []; }, X2 = function(e, r, n, i, s, a, o, l) { var u = [], h, f = new Array(n.length), d = !0; a == null && (d = !1); @@ -96317,8 +96339,8 @@ var NJt = BKt(function(t, e) { for (var g = 0; g < f.length / 2; g++) f[g * 2] = n[g * 2] * a + i, f[g * 2 + 1] = n[g * 2 + 1] * o + s; if (l > 0) { - var m = cS(f, -l); - p = lS(m); + var m = uS(f, -l); + p = cS(m); } else p = f; } else @@ -96326,7 +96348,7 @@ var NJt = BKt(function(t, e) { for (var v, y, b, w, O = 0; O < p.length / 2; O++) v = p[O * 2], y = p[O * 2 + 1], O < p.length / 2 - 1 ? (b = p[(O + 1) * 2], w = p[(O + 1) * 2 + 1]) : (b = p[0], w = p[1]), h = Qh(e, r, i, s, v, y, b, w), h.length !== 0 && u.push(h[0], h[1]); return u; -}, per = function(e, r, n, i, s, a, o, l, u) { +}, ger = function(e, r, n, i, s, a, o, l, u) { var h = [], f, d = new Array(n.length * 2); u.forEach(function(b, w) { w === 0 ? (d[d.length - 2] = b.startX, d[d.length - 1] = b.startY) : (d[w * 4 - 2] = b.startX, d[w * 4 - 1] = b.startY), d[w * 4] = b.stopX, d[w * 4 + 1] = b.stopY, f = $v(e, r, i, s, b.cx, b.cy, b.radius), f.length !== 0 && h.push(f[0], f[1]); @@ -96345,9 +96367,9 @@ var NJt = BKt(function(t, e) { var i = [e[0] - r[0], e[1] - r[1]], s = Math.sqrt(i[0] * i[0] + i[1] * i[1]), a = (s - n) / s; return a < 0 && (a = 1e-5), [r[0] + a * i[0], r[1] + a * i[1]]; }, Js = function(e, r) { - var n = Z9(e, r); - return n = tme(n), n; -}, tme = function(e) { + var n = j9(e, r); + return n = rme(n), n; +}, rme = function(e) { for (var r, n, i = e.length / 2, s = 1 / 0, a = 1 / 0, o = -1 / 0, l = -1 / 0, u = 0; u < i; u++) r = e[2 * u], n = e[2 * u + 1], s = Math.min(s, r), o = Math.max(o, r), a = Math.min(a, n), l = Math.max(l, n); for (var h = 2 / (o - s), f = 2 / (l - a), d = 0; d < i; d++) @@ -96356,7 +96378,7 @@ var NJt = BKt(function(t, e) { for (var p = 0; p < i; p++) n = e[2 * p + 1] = e[2 * p + 1] + (-1 - a); return e; -}, Z9 = function(e, r) { +}, j9 = function(e, r) { var n = 1 / e * 2 * Math.PI, i = e % 2 === 0 ? Math.PI / 2 + n / 2 : Math.PI / 2; i += r; for (var s = new Array(e * 2), a, o = 0; o < e; o++) @@ -96364,28 +96386,28 @@ var NJt = BKt(function(t, e) { return s; }, A0 = function(e, r) { return Math.min(e / 4, r / 4, 8); -}, rme = function(e, r) { +}, nme = function(e, r) { return Math.min(e / 10, r / 10, 8); }, IP = function() { return 8; -}, ger = function(e, r, n) { +}, mer = function(e, r, n) { return [e - 2 * r + n, 2 * (r - e), e]; -}, j9 = function(e, r) { +}, K9 = function(e, r) { return { heightOffset: Math.min(15, 0.05 * r), widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; -}, mer = ws({ +}, ver = ws({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), ver = { +}), yer = { pageRank: function(e) { - for (var r = mer(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { + for (var r = ver(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { for (var b = 0; b < f; b++) { var w = y * f + b; g[w] = 0; @@ -96395,8 +96417,8 @@ var NJt = BKt(function(t, e) { for (var O = 0; O < p; O++) { var S = h[O], C = S.data("source"), T = S.data("target"); if (C !== T) { - var L = u.indexOfId(C), E = u.indexOfId(T), A = a(S), _ = E * f + L; - g[_] += A, m[L] += A; + var A = u.indexOfId(C), E = u.indexOfId(T), L = a(S), _ = E * f + A; + g[_] += L, m[A] += L; } } for (var R = 1 / f + v, $ = 0; $ < f; $++) @@ -96420,7 +96442,7 @@ var NJt = BKt(function(t, e) { var Y = W * f + ee; P[W] += g[Y] * D[ee]; } - JJt(P), F = D, D = P, P = F; + eer(P), F = D, D = P, P = F; for (var ne = 0, ie = 0; ie < f; ie++) { var U = F[ie] - D[ie]; ne += U * U; @@ -96435,7 +96457,7 @@ var NJt = BKt(function(t, e) { }; return Z; } -}, PH = ws({ +}, $H = ws({ root: null, weight: function(e) { return 1; @@ -96444,7 +96466,7 @@ var NJt = BKt(function(t, e) { alpha: 0 }), pg = { degreeCentralityNormalized: function(e) { - e = PH(e); + e = $H(e); var r = this.cy(), n = this.nodes(), i = n.length; if (e.directed) { for (var h = {}, f = {}, d = 0, p = 0, g = 0; g < i; g++) { @@ -96476,7 +96498,7 @@ var NJt = BKt(function(t, e) { } }, degreeCentrality: function(e) { - e = PH(e); + e = $H(e); var r = this.cy(), n = this, i = e, s = i.root, a = i.weight, o = i.directed, l = i.alpha; if (s = r.collection(s)[0], o) { for (var p = s.connectedEdges(), g = p.filter(function(C) { @@ -96502,7 +96524,7 @@ var NJt = BKt(function(t, e) { }; pg.dc = pg.degreeCentrality; pg.dcn = pg.degreeCentralityNormalised = pg.degreeCentralityNormalized; -var $H = ws({ +var BH = ws({ harmonic: !0, weight: function() { return 1; @@ -96511,7 +96533,7 @@ var $H = ws({ root: null }), gg = { closenessCentralityNormalized: function(e) { - for (var r = $H(e), n = r.harmonic, i = r.weight, s = r.directed, a = this.cy(), o = {}, l = 0, u = this.nodes(), h = this.floydWarshall({ + for (var r = BH(e), n = r.harmonic, i = r.weight, s = r.directed, a = this.cy(), o = {}, l = 0, u = this.nodes(), h = this.floydWarshall({ weight: i, directed: s }), f = 0; f < u.length; f++) { @@ -96529,7 +96551,7 @@ var $H = ws({ }; }, closenessCentrality: function(e) { - var r = $H(e), n = r.root, i = r.weight, s = r.directed, a = r.harmonic; + var r = BH(e), n = r.root, i = r.weight, s = r.directed, a = r.harmonic; n = this.filter(n)[0]; for (var o = this.dijkstra({ root: n, @@ -96547,12 +96569,12 @@ var $H = ws({ }; gg.cc = gg.closenessCentrality; gg.ccn = gg.closenessCentralityNormalised = gg.closenessCentralityNormalized; -var yer = ws({ +var ber = ws({ weight: null, directed: !1 -}), K9 = { +}), J9 = { betweennessCentrality: function(e) { - for (var r = yer(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { + for (var r = ber(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { set: function(w, O) { u[w] = O, O > h && (h = O); }, @@ -96564,25 +96586,25 @@ var yer = ws({ n ? l[g] = p.outgoers().nodes() : l[g] = p.openNeighborhood().nodes(), f.set(g, 0); } for (var m = function(w) { - for (var O = o[w].id(), S = [], C = {}, T = {}, L = {}, E = new Xx(function(ee, Y) { - return L[ee] - L[Y]; - }), A = 0; A < o.length; A++) { - var _ = o[A].id(); - C[_] = [], T[_] = 0, L[_] = 1 / 0; + for (var O = o[w].id(), S = [], C = {}, T = {}, A = {}, E = new Xx(function(ee, Y) { + return A[ee] - A[Y]; + }), L = 0; L < o.length; L++) { + var _ = o[L].id(); + C[_] = [], T[_] = 0, A[_] = 1 / 0; } - for (T[O] = 1, L[O] = 0, E.push(O); !E.empty(); ) { + for (T[O] = 1, A[O] = 0, E.push(O); !E.empty(); ) { var R = E.pop(); if (S.push(R), s) for (var $ = 0; $ < l[R].length; $++) { var k = l[R][$], N = a.getElementById(R), M = void 0; N.edgesTo(k).length > 0 ? M = N.edgesTo(k)[0] : M = k.edgesTo(N)[0]; var I = i(M); - k = k.id(), L[k] > L[R] + I && (L[k] = L[R] + I, E.nodes.indexOf(k) < 0 ? E.push(k) : E.updateItem(k), T[k] = 0, C[k] = []), L[k] == L[R] + I && (T[k] = T[k] + T[R], C[k].push(R)); + k = k.id(), A[k] > A[R] + I && (A[k] = A[R] + I, E.nodes.indexOf(k) < 0 ? E.push(k) : E.updateItem(k), T[k] = 0, C[k] = []), A[k] == A[R] + I && (T[k] = T[k] + T[R], C[k].push(R)); } else for (var D = 0; D < l[R].length; D++) { var P = l[R][D].id(); - L[P] == 1 / 0 && (E.push(P), L[P] = L[R] + 1), L[P] == L[R] + 1 && (T[P] = T[P] + T[R], C[P].push(R)); + A[P] == 1 / 0 && (E.push(P), A[P] = A[R] + 1), A[P] == A[R] + 1 && (T[P] = T[P] + T[R], C[P].push(R)); } } for (var F = {}, B = 0; B < o.length; B++) @@ -96611,8 +96633,8 @@ var yer = ws({ return y.betweennessNormalised = y.betweennessNormalized, y; } }; -K9.bc = K9.betweennessCentrality; -var ber = ws({ +J9.bc = J9.betweennessCentrality; +var xer = ws({ expandFactor: 2, inflateFactor: 2, multFactor: 1, @@ -96622,16 +96644,16 @@ var ber = ws({ return 1; } ] -}), xer = function(e) { - return ber(e); -}, wer = function(e, r) { +}), wer = function(e) { + return xer(e); +}, Oer = function(e, r) { for (var n = 0, i = 0; i < r.length; i++) n += r[i](e); return n; -}, Oer = function(e, r, n) { +}, ker = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; -}, nme = function(e, r) { +}, ime = function(e, r) { for (var n, i = 0; i < r; i++) { n = 0; for (var s = 0; s < r; s++) @@ -96639,7 +96661,7 @@ var ber = ws({ for (var a = 0; a < r; a++) e[a * r + i] = e[a * r + i] / n; } -}, ker = function(e, r, n) { +}, Ser = function(e, r, n) { for (var i = new Array(n * n), s = 0; s < n; s++) { for (var a = 0; a < n; a++) i[s * n + a] = 0; @@ -96648,92 +96670,92 @@ var ber = ws({ i[s * n + l] += e[s * n + o] * r[o * n + l]; } return i; -}, Ser = function(e, r, n) { +}, Ter = function(e, r, n) { for (var i = e.slice(0), s = 1; s < n; s++) - e = ker(e, i, r); + e = Ser(e, i, r); return e; -}, Ter = function(e, r, n) { +}, Cer = function(e, r, n) { for (var i = new Array(r * r), s = 0; s < r * r; s++) i[s] = Math.pow(e[s], n); - return nme(i, r), i; -}, Cer = function(e, r, n, i) { + return ime(i, r), i; +}, Eer = function(e, r, n, i) { for (var s = 0; s < n; s++) { var a = Math.round(e[s] * Math.pow(10, i)) / Math.pow(10, i), o = Math.round(r[s] * Math.pow(10, i)) / Math.pow(10, i); if (a !== o) return !1; } return !0; -}, Eer = function(e, r, n, i) { +}, _er = function(e, r, n, i) { for (var s = [], a = 0; a < r; a++) { for (var o = [], l = 0; l < r; l++) Math.round(e[a * r + l] * 1e3) / 1e3 > 0 && o.push(n[l]); o.length !== 0 && s.push(i.collection(o)); } return s; -}, _er = function(e, r) { +}, Aer = function(e, r) { for (var n = 0; n < e.length; n++) if (!r[n] || e[n].id() !== r[n].id()) return !1; return !0; -}, Aer = function(e) { +}, Ler = function(e) { for (var r = 0; r < e.length; r++) for (var n = 0; n < e.length; n++) - r != n && _er(e[r], e[n]) && e.splice(n, 1); + r != n && Aer(e[r], e[n]) && e.splice(n, 1); return e; -}, BH = function(e) { - for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = xer(e), a = {}, o = 0; o < r.length; o++) +}, FH = function(e) { + for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = wer(e), a = {}, o = 0; o < r.length; o++) a[r[o].id()] = o; for (var l = r.length, u = l * l, h = new Array(u), f, d = 0; d < u; d++) h[d] = 0; for (var p = 0; p < n.length; p++) { - var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = wer(g, s.attributes); + var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = Oer(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - Oer(h, l, s.multFactor), nme(h, l); + ker(h, l, s.multFactor), ime(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) - b = !1, f = Ser(h, l, s.expandFactor), h = Ter(f, l, s.inflateFactor), Cer(h, f, u, 4) || (b = !0), w++; - var O = Eer(h, l, r, i); - return O = Aer(O), O; -}, Ler = { - markovClustering: BH, - mcl: BH -}, Rer = function(e) { + b = !1, f = Ter(h, l, s.expandFactor), h = Cer(f, l, s.inflateFactor), Eer(h, f, u, 4) || (b = !0), w++; + var O = _er(h, l, r, i); + return O = Ler(O), O; +}, Rer = { + markovClustering: FH, + mcl: FH +}, Mer = function(e) { return e; -}, ime = function(e, r) { +}, sme = function(e, r) { return Math.abs(r - e); -}, FH = function(e, r, n) { - return e + ime(r, n); }, zH = function(e, r, n) { + return e + sme(r, n); +}, VH = function(e, r, n) { return e + Math.pow(n - r, 2); -}, Mer = function(e) { +}, Der = function(e) { return Math.sqrt(e); -}, Der = function(e, r, n) { - return Math.max(e, ime(r, n)); +}, Ner = function(e, r, n) { + return Math.max(e, sme(r, n)); }, sv = function(e, r, n, i, s) { - for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Rer, o = i, l, u, h = 0; h < e; h++) + for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Mer, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, _1 = { euclidean: function(e, r, n) { - return e >= 2 ? sv(e, r, n, 0, zH, Mer) : sv(e, r, n, 0, FH); + return e >= 2 ? sv(e, r, n, 0, VH, Der) : sv(e, r, n, 0, zH); }, squaredEuclidean: function(e, r, n) { - return sv(e, r, n, 0, zH); + return sv(e, r, n, 0, VH); }, manhattan: function(e, r, n) { - return sv(e, r, n, 0, FH); + return sv(e, r, n, 0, zH); }, max: function(e, r, n) { - return sv(e, r, n, -1 / 0, Der); + return sv(e, r, n, -1 / 0, Ner); } }; _1["squared-euclidean"] = _1.squaredEuclidean; _1.squaredeuclidean = _1.squaredEuclidean; -function BC(t, e, r, n, i, s) { +function FC(t, e, r, n, i, s) { var a; return Pn(t) ? a = t : a = _1[t] || _1.euclidean, e === 0 && Pn(t) ? a(i, s) : a(e, r, n, i, s); } -var Ner = ws({ +var Ier = ws({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -96743,8 +96765,8 @@ var Ner = ws({ testMode: !1, testCentroids: null }), PP = function(e) { - return Ner(e); -}, uS = function(e, r, n, i, s) { + return Ier(e); +}, hS = function(e, r, n, i, s) { var a = s !== "kMedoids", o = a ? function(f) { return n[f]; } : function(f) { @@ -96752,8 +96774,8 @@ var Ner = ws({ }, l = function(d) { return i[d](r); }, u = n, h = r; - return BC(e, i.length, o, l, u, h); -}, tA = function(e, r, n) { + return FC(e, i.length, o, l, u, h); +}, rA = function(e, r, n) { for (var i = n.length, s = new Array(i), a = new Array(i), o = new Array(r), l = null, u = 0; u < i; u++) s[u] = e.min(n[u]).value, a[u] = e.max(n[u]).value; for (var h = 0; h < r; h++) { @@ -96763,19 +96785,19 @@ var Ner = ws({ o[h] = l; } return o; -}, sme = function(e, r, n, i, s) { +}, ame = function(e, r, n, i, s) { for (var a = 1 / 0, o = 0, l = 0; l < r.length; l++) { - var u = uS(n, e, r[l], i, s); + var u = hS(n, e, r[l], i, s); u < a && (a = u, o = l); } return o; -}, ame = function(e, r, n) { +}, ome = function(e, r, n) { for (var i = [], s = null, a = 0; a < r.length; a++) s = r[a], n[s.id()] === e && i.push(s); return i; -}, Ier = function(e, r, n) { - return Math.abs(r - e) <= n; }, Per = function(e, r, n) { + return Math.abs(r - e) <= n; +}, $er = function(e, r, n) { for (var i = 0; i < e.length; i++) for (var s = 0; s < e[i].length; s++) { var a = Math.abs(e[i][s] - r[i][s]); @@ -96783,16 +96805,16 @@ var Ner = ws({ return !1; } return !0; -}, $er = function(e, r, n) { +}, Ber = function(e, r, n) { for (var i = 0; i < n; i++) if (e === r[i]) return !0; return !1; -}, VH = function(e, r) { +}, UH = function(e, r) { var n = new Array(r); if (e.length < 50) for (var i = 0; i < r; i++) { - for (var s = e[Math.floor(Math.random() * e.length)]; $er(s, n, i); ) + for (var s = e[Math.floor(Math.random() * e.length)]; Ber(s, n, i); ) s = e[Math.floor(Math.random() * e.length)]; n[i] = s; } @@ -96800,25 +96822,25 @@ var Ner = ws({ for (var a = 0; a < r; a++) n[a] = e[Math.floor(Math.random() * e.length)]; return n; -}, UH = function(e, r, n) { +}, qH = function(e, r, n) { for (var i = 0, s = 0; s < r.length; s++) - i += uS("manhattan", r[s], e, n, "kMedoids"); + i += hS("manhattan", r[s], e, n, "kMedoids"); return i; -}, Ber = function(e) { +}, Fer = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = PP(e), a = new Array(s.k), o = {}, l; - s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = tA(n, s.k, s.attributes)) : Ii(s.testCentroids) === "object" ? l = s.testCentroids : l = tA(n, s.k, s.attributes) : l = tA(n, s.k, s.attributes); + s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = rA(n, s.k, s.attributes)) : Pi(s.testCentroids) === "object" ? l = s.testCentroids : l = rA(n, s.k, s.attributes) : l = rA(n, s.k, s.attributes); for (var u = !0, h = 0; u && h < s.maxIterations; ) { for (var f = 0; f < n.length; f++) - i = n[f], o[i.id()] = sme(i, l, s.distance, s.attributes, "kMeans"); + i = n[f], o[i.id()] = ame(i, l, s.distance, s.attributes, "kMeans"); u = !1; for (var d = 0; d < s.k; d++) { - var p = ame(d, n, o); + var p = ome(d, n, o); if (p.length !== 0) { for (var g = s.attributes.length, m = l[d], v = new Array(g), y = new Array(g), b = 0; b < g; b++) { y[b] = 0; for (var w = 0; w < p.length; w++) i = p[w], y[b] += s.attributes[b](i); - v[b] = y[b] / p.length, Ier(v[b], m[b], s.sensitivityThreshold) || (u = !0); + v[b] = y[b] / p.length, Per(v[b], m[b], s.sensitivityThreshold) || (u = !0); } l[d] = v, a[d] = r.collection(p); } @@ -96826,26 +96848,26 @@ var Ner = ws({ h++; } return a; -}, Fer = function(e) { +}, zer = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = PP(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); - s.testMode ? typeof s.testCentroids == "number" || (Ii(s.testCentroids) === "object" ? o = s.testCentroids : o = VH(n, s.k)) : o = VH(n, s.k); + s.testMode ? typeof s.testCentroids == "number" || (Pi(s.testCentroids) === "object" ? o = s.testCentroids : o = UH(n, s.k)) : o = UH(n, s.k); for (var f = !0, d = 0; f && d < s.maxIterations; ) { for (var p = 0; p < n.length; p++) - i = n[p], l[i.id()] = sme(i, o, s.distance, s.attributes, "kMedoids"); + i = n[p], l[i.id()] = ame(i, o, s.distance, s.attributes, "kMedoids"); f = !1; for (var g = 0; g < o.length; g++) { - var m = ame(g, n, l); + var m = ome(g, n, l); if (m.length !== 0) { - h[g] = UH(o[g], m, s.attributes); + h[g] = qH(o[g], m, s.attributes); for (var v = 0; v < m.length; v++) - u = UH(m[v], m, s.attributes), u < h[g] && (h[g] = u, o[g] = m[v], f = !0); + u = qH(m[v], m, s.attributes), u < h[g] && (h[g] = u, o[g] = m[v], f = !0); a[g] = r.collection(m); } } d++; } return a; -}, zer = function(e, r, n, i, s) { +}, Ver = function(e, r, n, i, s) { for (var a, o, l = 0; l < r.length; l++) for (var u = 0; u < e.length; u++) i[l][u] = Math.pow(n[l][u], s.m); @@ -96856,17 +96878,17 @@ var Ner = ws({ a += i[d][h] * s.attributes[f](r[d]), o += i[d][h]; e[h][f] = a / o; } -}, Ver = function(e, r, n, i, s) { +}, Uer = function(e, r, n, i, s) { for (var a = 0; a < e.length; a++) r[a] = e[a].slice(); for (var o, l, u, h = 2 / (s.m - 1), f = 0; f < n.length; f++) for (var d = 0; d < i.length; d++) { o = 0; for (var p = 0; p < n.length; p++) - l = uS(s.distance, i[d], n[f], s.attributes, "cmeans"), u = uS(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); + l = hS(s.distance, i[d], n[f], s.attributes, "cmeans"), u = hS(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); e[d][f] = 1 / o; } -}, Uer = function(e, r, n, i) { +}, qer = function(e, r, n, i) { for (var s = new Array(n.k), a = 0; a < s.length; a++) s[a] = []; for (var o, l, u = 0; u < r.length; u++) { @@ -96878,7 +96900,7 @@ var Ner = ws({ for (var f = 0; f < s.length; f++) s[f] = i.collection(s[f]); return s; -}, qH = function(e) { +}, QH = function(e) { var r = this.cy(), n = this.nodes(), i = PP(e), s, a, o, l, u; l = new Array(n.length); for (var h = 0; h < n.length; h++) @@ -96899,17 +96921,17 @@ var Ner = ws({ for (var y = 0; y < n.length; y++) u[y] = new Array(i.k); for (var b = !0, w = 0; b && w < i.maxIterations; ) - b = !1, zer(a, n, o, u, i), Ver(o, l, a, n, i), Per(o, l, i.sensitivityThreshold) || (b = !0), w++; - return s = Uer(n, o, i, r), { + b = !1, Ver(a, n, o, u, i), Uer(o, l, a, n, i), $er(o, l, i.sensitivityThreshold) || (b = !0), w++; + return s = qer(n, o, i, r), { clusters: s, degreeOfMembership: o }; -}, qer = { - kMeans: Ber, - kMedoids: Fer, - fuzzyCMeans: qH, - fcm: qH -}, Qer = ws({ +}, Qer = { + kMeans: Fer, + kMedoids: zer, + fuzzyCMeans: QH, + fcm: QH +}, Yer = ws({ distance: "euclidean", linkage: "min", mode: "threshold", @@ -96917,19 +96939,19 @@ var Ner = ws({ addDendrogram: !1, dendrogramDepth: 0, attributes: [] -}), Yer = { +}), Wer = { single: "min", complete: "max" -}, Wer = function(e) { - var r = Qer(e), n = Yer[r.linkage]; +}, Ger = function(e) { + var r = Yer(e), n = Wer[r.linkage]; return n != null && (r.linkage = n), r; -}, QH = function(e, r, n, i, s) { - for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, A) { - return BC(s.distance, u.length, function(_) { +}, YH = function(e, r, n, i, s) { + for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, L) { + return FC(s.distance, u.length, function(_) { return u[_](E); }, function(_) { - return u[_](A); - }, E, A); + return u[_](L); + }, E, L); }, f = 0; f < e.length; f++) { var d = e[f].key, p = n[d][i[d]]; p < o && (a = d, o = p); @@ -96963,7 +96985,7 @@ var Ner = ws({ return g.key = m.key = g.index = m.index = null, !0; }, $O = function t(e, r, n) { !e || (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r))); -}, Ger = function t(e, r) { +}, Her = function t(e, r) { if (!e) return ""; if (e.left && e.right) { @@ -96988,14 +97010,14 @@ var Ner = ws({ }), s.id(); } else if (e.value) return e.value.id(); -}, Her = function t(e, r, n) { +}, Xer = function t(e, r, n) { if (!e) return []; var i = [], s = [], a = []; return r === 0 ? (e.left && $O(e.left, i), e.right && $O(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && $O(e.left, i), e.right && $O(e.right, s), [n.collection(i), n.collection(s)]) : e.value ? [n.collection(e.value)] : (e.left && (i = t(e.left, r - 1, n)), e.right && (s = t(e.right, r - 1, n)), i.concat(s)); -}, YH = function(e) { - for (var r = this.cy(), n = this.nodes(), i = Wer(e), s = i.attributes, a = function(w, O) { - return BC(i.distance, s.length, function(S) { +}, WH = function(e) { + for (var r = this.cy(), n = this.nodes(), i = Ger(e), s = i.attributes, a = function(w, O) { + return FC(i.distance, s.length, function(S) { return s[S](w); }, function(S) { return s[S](O); @@ -97013,23 +97035,23 @@ var Ner = ws({ var m = void 0; i.mode === "dendrogram" ? m = p === g ? 1 / 0 : a(o[p].value, o[g].value) : m = p === g ? 1 / 0 : a(o[p].value[0], o[g].value[0]), l[p][g] = m, l[g][p] = m, m < l[p][u[p]] && (u[p] = g); } - for (var v = QH(o, h, l, u, i); v; ) - v = QH(o, h, l, u, i); + for (var v = YH(o, h, l, u, i); v; ) + v = YH(o, h, l, u, i); var y; - return i.mode === "dendrogram" ? (y = Her(o[0], i.dendrogramDepth, r), i.addDendrogram && Ger(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { + return i.mode === "dendrogram" ? (y = Xer(o[0], i.dendrogramDepth, r), i.addDendrogram && Her(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { b.key = b.index = null, y[w] = r.collection(b.value); })), y; -}, Xer = { - hierarchicalClustering: YH, - hca: YH -}, Zer = ws({ +}, Zer = { + hierarchicalClustering: WH, + hca: WH +}, jer = ws({ distance: "euclidean", preference: "median", damping: 0.8, maxIterations: 1e3, minIterations: 100, attributes: [] -}), jer = function(e) { +}), Ker = function(e) { var r = e.damping, n = e.preference; 0.5 <= r && r < 1 || Yn("Damping must range on [0.5, 1). Got: ".concat(r)); var i = ["median", "mean", "min", "max"]; @@ -97037,24 +97059,24 @@ var Ner = ws({ return s === n; }) || bt(n) || Yn("Preference must be one of [".concat(i.map(function(s) { return "'".concat(s, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), Zer(e); -}, Ker = function(e, r, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), jer(e); +}, Jer = function(e, r, n, i) { var s = function(o, l) { return i[l](o); }; - return -BC(e, i.length, function(a) { + return -FC(e, i.length, function(a) { return s(r, a); }, function(a) { return s(n, a); }, r, n); -}, Jer = function(e, r) { +}, etr = function(e, r) { var n = null; - return r === "median" ? n = jJt(e) : r === "mean" ? n = ZJt(e) : r === "min" ? n = HJt(e) : r === "max" ? n = XJt(e) : n = r, n; -}, etr = function(e, r, n) { + return r === "median" ? n = KJt(e) : r === "mean" ? n = jJt(e) : r === "min" ? n = XJt(e) : r === "max" ? n = ZJt(e) : n = r, n; +}, ttr = function(e, r, n) { for (var i = [], s = 0; s < e; s++) r[s * e + s] + n[s * e + s] > 0 && i.push(s); return i; -}, WH = function(e, r, n) { +}, GH = function(e, r, n) { for (var i = [], s = 0; s < e; s++) { for (var a = -1, o = -1 / 0, l = 0; l < n.length; l++) { var u = n[l]; @@ -97065,8 +97087,8 @@ var Ner = ws({ for (var h = 0; h < n.length; h++) i[n[h]] = n[h]; return i; -}, ttr = function(e, r, n) { - for (var i = WH(e, r, n), s = 0; s < n.length; s++) { +}, rtr = function(e, r, n) { + for (var i = GH(e, r, n), s = 0; s < n.length; s++) { for (var a = [], o = 0; o < i.length; o++) i[o] === n[s] && a.push(o); for (var l = -1, u = -1 / 0, h = 0; h < a.length; h++) { @@ -97076,9 +97098,9 @@ var Ner = ws({ } n[s] = a[l]; } - return i = WH(e, r, n), i; -}, GH = function(e) { - for (var r = this.cy(), n = this.nodes(), i = jer(e), s = {}, a = 0; a < n.length; a++) + return i = GH(e, r, n), i; +}, HH = function(e) { + for (var r = this.cy(), n = this.nodes(), i = Ker(e), s = {}, a = 0; a < n.length; a++) s[n[a].id()] = a; var o, l, u, h, f, d; o = n.length, l = o * o, u = new Array(l); @@ -97086,8 +97108,8 @@ var Ner = ws({ u[p] = -1 / 0; for (var g = 0; g < o; g++) for (var m = 0; m < o; m++) - g !== m && (u[g * o + m] = Ker(i.distance, n[g], n[m], i.attributes)); - h = Jer(u, i.preference); + g !== m && (u[g * o + m] = Jer(i.distance, n[g], n[m], i.attributes)); + h = etr(u, i.preference); for (var v = 0; v < o; v++) u[v * o + v] = h; f = new Array(l); @@ -97098,16 +97120,16 @@ var Ner = ws({ d[b] = 0; for (var w = new Array(o), O = new Array(o), S = new Array(o), C = 0; C < o; C++) w[C] = 0, O[C] = 0, S[C] = 0; - for (var T = new Array(o * i.minIterations), L = 0; L < T.length; L++) - T[L] = 0; + for (var T = new Array(o * i.minIterations), A = 0; A < T.length; A++) + T[A] = 0; var E; for (E = 0; E < i.maxIterations; E++) { - for (var A = 0; A < o; A++) { + for (var L = 0; L < o; L++) { for (var _ = -1 / 0, R = -1 / 0, $ = -1, k = 0, N = 0; N < o; N++) - w[N] = f[A * o + N], k = d[A * o + N] + u[A * o + N], k >= _ ? (R = _, _ = k, $ = N) : k > R && (R = k); + w[N] = f[L * o + N], k = d[L * o + N] + u[L * o + N], k >= _ ? (R = _, _ = k, $ = N) : k > R && (R = k); for (var M = 0; M < o; M++) - f[A * o + M] = (1 - i.damping) * (u[A * o + M] - _) + i.damping * w[M]; - f[A * o + $] = (1 - i.damping) * (u[A * o + $] - R) + i.damping * w[$]; + f[L * o + M] = (1 - i.damping) * (u[L * o + M] - _) + i.damping * w[M]; + f[L * o + $] = (1 - i.damping) * (u[L * o + $] - R) + i.damping * w[$]; } for (var I = 0; I < o; I++) { for (var D = 0, P = 0; P < o; P++) @@ -97132,7 +97154,7 @@ var Ner = ws({ break; } } - for (var ne = etr(o, f, d), ie = ttr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) + for (var ne = ttr(o, f, d), ie = rtr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) U[ne[Z]] = []; for (var G = 0; G < n.length; G++) { var j = s[n[G].id()], ae = ie[j]; @@ -97141,13 +97163,13 @@ var Ner = ws({ for (var se = new Array(ne.length), K = 0; K < ne.length; K++) se[K] = r.collection(U[ne[K]]); return se; -}, rtr = { - affinityPropagation: GH, - ap: GH -}, ntr = ws({ +}, ntr = { + affinityPropagation: HH, + ap: HH +}, itr = ws({ root: void 0, directed: !1 -}), itr = { +}), str = { hierholzer: function(e) { if (!Ar(e)) { var r = arguments; @@ -97156,15 +97178,15 @@ var Ner = ws({ directed: r[1] }; } - var n = ntr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; + var n = itr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; i && (h = qt(i) ? this.filter(i)[0].id() : i[0].id()); var f = {}, d = {}; s ? a.forEach(function(b) { var w = b.id(); if (b.isNode()) { var O = b.indegree(!0), S = b.outdegree(!0), C = O - S, T = S - O; - C == 1 ? l ? o = !0 : l = w : T == 1 ? u ? o = !0 : u = w : (T > 1 || C > 1) && (o = !0), f[w] = [], b.outgoers().forEach(function(L) { - L.isEdge() && f[w].push(L.id()); + C == 1 ? l ? o = !0 : l = w : T == 1 ? u ? o = !0 : u = w : (T > 1 || C > 1) && (o = !0), f[w] = [], b.outgoers().forEach(function(A) { + A.isEdge() && f[w].push(A.id()); }); } else d[w] = [void 0, b.target().id()]; @@ -97197,10 +97219,10 @@ var Ner = ws({ else h || (h = a[0].id()); var g = function(w) { - for (var O = w, S = [w], C, T, L; f[O].length; ) - C = f[O].shift(), T = d[C][0], L = d[C][1], O != L ? (f[L] = f[L].filter(function(E) { + for (var O = w, S = [w], C, T, A; f[O].length; ) + C = f[O].shift(), T = d[C][0], A = d[C][1], O != A ? (f[A] = f[A].filter(function(E) { return E != C; - }), O = L) : !s && O != T && (f[T] = f[T].filter(function(E) { + }), O = A) : !s && O != T && (f[T] = f[T].filter(function(E) { return E != C; }), O = T), S.unshift(C), S.unshift(O); return S; @@ -97261,7 +97283,7 @@ var Ner = ws({ cut: e.spawn(h), components: s }; -}, str = { +}, atr = { hopcroftTarjanBiconnected: BO, htbc: BO, htb: BO, @@ -97296,44 +97318,44 @@ var Ner = ws({ cut: a, components: i }; -}, atr = { +}, otr = { tarjanStronglyConnected: FO, tsc: FO, tscc: FO, tarjanStronglyConnectedComponents: FO -}, ome = {}; -[G2, PJt, $Jt, FJt, VJt, qJt, WJt, ver, pg, gg, K9, Ler, qer, Xer, rtr, itr, str, atr].forEach(function(t) { - Kt(ome, t); +}, lme = {}; +[G2, $Jt, BJt, zJt, UJt, QJt, GJt, yer, pg, gg, J9, Rer, Qer, Zer, ntr, str, atr, otr].forEach(function(t) { + Kt(lme, t); }); /*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) */ -var lme = 0, cme = 1, ume = 2, rh = function t(e) { +var cme = 0, ume = 1, hme = 2, rh = function t(e) { if (!(this instanceof t)) return new t(e); - this.id = "Thenable/1.0.7", this.state = lme, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { + this.id = "Thenable/1.0.7", this.state = cme, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { then: this.then.bind(this) }, typeof e == "function" && e.call(this, this.fulfill.bind(this), this.reject.bind(this)); }; rh.prototype = { fulfill: function(e) { - return HH(this, cme, "fulfillValue", e); + return XH(this, ume, "fulfillValue", e); }, reject: function(e) { - return HH(this, ume, "rejectReason", e); + return XH(this, hme, "rejectReason", e); }, then: function(e, r) { var n = this, i = new rh(); - return n.onFulfilled.push(ZH(e, i, "fulfill")), n.onRejected.push(ZH(r, i, "reject")), hme(n), i.proxy; + return n.onFulfilled.push(jH(e, i, "fulfill")), n.onRejected.push(jH(r, i, "reject")), fme(n), i.proxy; } }; -var HH = function(e, r, n, i) { - return e.state === lme && (e.state = r, e[n] = i, hme(e)), e; -}, hme = function(e) { - e.state === cme ? XH(e, "onFulfilled", e.fulfillValue) : e.state === ume && XH(e, "onRejected", e.rejectReason); -}, XH = function(e, r, n) { +var XH = function(e, r, n, i) { + return e.state === cme && (e.state = r, e[n] = i, fme(e)), e; +}, fme = function(e) { + e.state === ume ? ZH(e, "onFulfilled", e.fulfillValue) : e.state === hme && ZH(e, "onRejected", e.rejectReason); +}, ZH = function(e, r, n) { if (e[r].length !== 0) { var i = e[r]; e[r] = []; @@ -97343,7 +97365,7 @@ var HH = function(e, r, n, i) { }; typeof setImmediate == "function" ? setImmediate(s) : setTimeout(s, 0); } -}, ZH = function(e, r, n) { +}, jH = function(e, r, n) { return function(i) { if (typeof e != "function") r[n].call(r, i); @@ -97355,16 +97377,16 @@ var HH = function(e, r, n, i) { r.reject(a); return; } - otr(r, s); + ltr(r, s); } }; -}, otr = function t(e, r) { +}, ltr = function t(e, r) { if (e === r || e.proxy === r) { e.reject(new TypeError("cannot resolve promise with itself")); return; } var n; - if (Ii(r) === "object" && r !== null || typeof r == "function") + if (Pi(r) === "object" && r !== null || typeof r == "function") try { n = r.then; } catch (s) { @@ -97420,7 +97442,7 @@ rh.reject = function(t) { r(t); }); }; -var mm = typeof Promise < "u" ? Promise : rh, J9 = function(e, r, n) { +var mm = typeof Promise < "u" ? Promise : rh, eR = function(e, r, n) { var i = _P(e), s = !i, a = this._private = Kt({ duration: 1e3 }, r, n); @@ -97439,7 +97461,7 @@ var mm = typeof Promise < "u" ? Promise : rh, J9 = function(e, r, n) { }, a.startZoom = e.zoom(); } this.length = 1, this[0] = this; -}, L0 = J9.prototype; +}, L0 = eR.prototype; Kt(L0, { instanceString: function() { return "animation"; @@ -97526,7 +97548,7 @@ Kt(L0, { L0.complete = L0.completed; L0.run = L0.play; L0.running = L0.playing; -var ltr = { +var ctr = { animated: function() { return function() { var r = this, n = r.length !== void 0, i = n ? r : [r], s = this._private.cy || this; @@ -97578,7 +97600,7 @@ var ltr = { r = Kt({}, r, n); var f = Object.keys(r).length === 0; if (f) - return new J9(a[0], r); + return new eR(a[0], r); switch (r.duration === void 0 && (r.duration = 400), r.duration) { case "slow": r.duration = 600; @@ -97589,7 +97611,7 @@ var ltr = { } if (u && (r.style = h.getPropsList(r.style || r.css), r.css = void 0), u && r.renderedPosition != null) { var d = r.renderedPosition, p = o.pan(), g = o.zoom(); - r.position = Z1e(d, g, p); + r.position = j1e(d, g, p); } if (l && r.panBy != null) { var m = r.panBy, v = o.pan(); @@ -97611,7 +97633,7 @@ var ltr = { var S = o.getZoomedViewport(r.zoom); S != null ? (S.zoomed && (r.zoom = S.zoom), S.panned && (r.pan = S.pan)) : r.zoom = null; } - return new J9(a[0], r); + return new eR(a[0], r); }; }, animate: function() { @@ -97644,32 +97666,32 @@ var ltr = { return o.notify("draw"), this; }; } -}, ctr = Array.isArray, FC = ctr, utr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, htr = /^\w*$/; -function ftr(t, e) { - if (FC(t)) +}, utr = Array.isArray, zC = utr, htr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ftr = /^\w*$/; +function dtr(t, e) { + if (zC(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || Hx(t) ? !0 : htr.test(t) || !utr.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || Hx(t) ? !0 : ftr.test(t) || !htr.test(t) || e != null && t in Object(e); } -var dtr = ftr, ptr = "[object AsyncFunction]", gtr = "[object Function]", mtr = "[object GeneratorFunction]", vtr = "[object Proxy]"; -function ytr(t) { +var ptr = dtr, gtr = "[object AsyncFunction]", mtr = "[object Function]", vtr = "[object GeneratorFunction]", ytr = "[object Proxy]"; +function btr(t) { if (!C0(t)) return !1; - var e = V1e(t); - return e == gtr || e == mtr || e == ptr || e == vtr; + var e = U1e(t); + return e == mtr || e == vtr || e == gtr || e == ytr; } -var btr = ytr, xtr = NC["__core-js_shared__"], rA = xtr, jH = function() { - var t = /[^.]+$/.exec(rA && rA.keys && rA.keys.IE_PROTO || ""); +var xtr = btr, wtr = IC["__core-js_shared__"], nA = wtr, KH = function() { + var t = /[^.]+$/.exec(nA && nA.keys && nA.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function wtr(t) { - return !!jH && jH in t; +function Otr(t) { + return !!KH && KH in t; } -var Otr = wtr, ktr = Function.prototype, Str = ktr.toString; -function Ttr(t) { +var ktr = Otr, Str = Function.prototype, Ttr = Str.toString; +function Ctr(t) { if (t != null) { try { - return Str.call(t); + return Ttr.call(t); } catch { } try { @@ -97679,53 +97701,53 @@ function Ttr(t) { } return ""; } -var Ctr = Ttr, Etr = /[\\^$.*+?()[\]{}|]/g, _tr = /^\[object .+?Constructor\]$/, Atr = Function.prototype, Ltr = Object.prototype, Rtr = Atr.toString, Mtr = Ltr.hasOwnProperty, Dtr = RegExp( - "^" + Rtr.call(Mtr).replace(Etr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var Etr = Ctr, _tr = /[\\^$.*+?()[\]{}|]/g, Atr = /^\[object .+?Constructor\]$/, Ltr = Function.prototype, Rtr = Object.prototype, Mtr = Ltr.toString, Dtr = Rtr.hasOwnProperty, Ntr = RegExp( + "^" + Mtr.call(Dtr).replace(_tr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function Ntr(t) { - if (!C0(t) || Otr(t)) +function Itr(t) { + if (!C0(t) || ktr(t)) return !1; - var e = btr(t) ? Dtr : _tr; - return e.test(Ctr(t)); + var e = xtr(t) ? Ntr : Atr; + return e.test(Etr(t)); } -var Itr = Ntr; -function Ptr(t, e) { +var Ptr = Itr; +function $tr(t, e) { return t == null ? void 0 : t[e]; } -var $tr = Ptr; -function Btr(t, e) { - var r = $tr(t, e); - return Itr(r) ? r : void 0; +var Btr = $tr; +function Ftr(t, e) { + var r = Btr(t, e); + return Ptr(r) ? r : void 0; } -var $P = Btr, Ftr = $P(Object, "create"), Z2 = Ftr; -function ztr() { +var $P = Ftr, ztr = $P(Object, "create"), Z2 = ztr; +function Vtr() { this.__data__ = Z2 ? Z2(null) : {}, this.size = 0; } -var Vtr = ztr; -function Utr(t) { +var Utr = Vtr; +function qtr(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var qtr = Utr, Qtr = "__lodash_hash_undefined__", Ytr = Object.prototype, Wtr = Ytr.hasOwnProperty; -function Gtr(t) { +var Qtr = qtr, Ytr = "__lodash_hash_undefined__", Wtr = Object.prototype, Gtr = Wtr.hasOwnProperty; +function Htr(t) { var e = this.__data__; if (Z2) { var r = e[t]; - return r === Qtr ? void 0 : r; + return r === Ytr ? void 0 : r; } - return Wtr.call(e, t) ? e[t] : void 0; + return Gtr.call(e, t) ? e[t] : void 0; } -var Htr = Gtr, Xtr = Object.prototype, Ztr = Xtr.hasOwnProperty; -function jtr(t) { +var Xtr = Htr, Ztr = Object.prototype, jtr = Ztr.hasOwnProperty; +function Ktr(t) { var e = this.__data__; - return Z2 ? e[t] !== void 0 : Ztr.call(e, t); + return Z2 ? e[t] !== void 0 : jtr.call(e, t); } -var Ktr = jtr, Jtr = "__lodash_hash_undefined__"; -function err(t, e) { +var Jtr = Ktr, err = "__lodash_hash_undefined__"; +function trr(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = Z2 && e === void 0 ? Jtr : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = Z2 && e === void 0 ? err : e, this; } -var trr = err; +var rrr = trr; function vm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97733,49 +97755,49 @@ function vm(t) { this.set(n[0], n[1]); } } -vm.prototype.clear = Vtr; -vm.prototype.delete = qtr; -vm.prototype.get = Htr; -vm.prototype.has = Ktr; -vm.prototype.set = trr; -var KH = vm; -function rrr() { +vm.prototype.clear = Utr; +vm.prototype.delete = Qtr; +vm.prototype.get = Xtr; +vm.prototype.has = Jtr; +vm.prototype.set = rrr; +var JH = vm; +function nrr() { this.__data__ = [], this.size = 0; } -var nrr = rrr; -function irr(t, e) { +var irr = nrr; +function srr(t, e) { return t === e || t !== t && e !== e; } -var fme = irr; -function srr(t, e) { +var dme = srr; +function arr(t, e) { for (var r = t.length; r--; ) - if (fme(t[r][0], e)) + if (dme(t[r][0], e)) return r; return -1; } -var zC = srr, arr = Array.prototype, orr = arr.splice; -function lrr(t) { - var e = this.__data__, r = zC(e, t); +var VC = arr, orr = Array.prototype, lrr = orr.splice; +function crr(t) { + var e = this.__data__, r = VC(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : orr.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : lrr.call(e, r, 1), --this.size, !0; } -var crr = lrr; -function urr(t) { - var e = this.__data__, r = zC(e, t); +var urr = crr; +function hrr(t) { + var e = this.__data__, r = VC(e, t); return r < 0 ? void 0 : e[r][1]; } -var hrr = urr; -function frr(t) { - return zC(this.__data__, t) > -1; +var frr = hrr; +function drr(t) { + return VC(this.__data__, t) > -1; } -var drr = frr; -function prr(t, e) { - var r = this.__data__, n = zC(r, t); +var prr = drr; +function grr(t, e) { + var r = this.__data__, n = VC(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -var grr = prr; +var mrr = grr; function ym(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97783,48 +97805,48 @@ function ym(t) { this.set(n[0], n[1]); } } -ym.prototype.clear = nrr; -ym.prototype.delete = crr; -ym.prototype.get = hrr; -ym.prototype.has = drr; -ym.prototype.set = grr; -var mrr = ym, vrr = $P(NC, "Map"), yrr = vrr; -function brr() { +ym.prototype.clear = irr; +ym.prototype.delete = urr; +ym.prototype.get = frr; +ym.prototype.has = prr; +ym.prototype.set = mrr; +var vrr = ym, yrr = $P(IC, "Map"), brr = yrr; +function xrr() { this.size = 0, this.__data__ = { - hash: new KH(), - map: new (yrr || mrr)(), - string: new KH() + hash: new JH(), + map: new (brr || vrr)(), + string: new JH() }; } -var xrr = brr; -function wrr(t) { +var wrr = xrr; +function Orr(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -var Orr = wrr; -function krr(t, e) { +var krr = Orr; +function Srr(t, e) { var r = t.__data__; - return Orr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return krr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -var VC = krr; -function Srr(t) { - var e = VC(this, t).delete(t); +var UC = Srr; +function Trr(t) { + var e = UC(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -var Trr = Srr; -function Crr(t) { - return VC(this, t).get(t); +var Crr = Trr; +function Err(t) { + return UC(this, t).get(t); } -var Err = Crr; -function _rr(t) { - return VC(this, t).has(t); +var _rr = Err; +function Arr(t) { + return UC(this, t).has(t); } -var Arr = _rr; -function Lrr(t, e) { - var r = VC(this, t), n = r.size; +var Lrr = Arr; +function Rrr(t, e) { + var r = UC(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -var Rrr = Lrr; +var Mrr = Rrr; function bm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97832,15 +97854,15 @@ function bm(t) { this.set(n[0], n[1]); } } -bm.prototype.clear = xrr; -bm.prototype.delete = Trr; -bm.prototype.get = Err; -bm.prototype.has = Arr; -bm.prototype.set = Rrr; -var dme = bm, Mrr = "Expected a function"; +bm.prototype.clear = wrr; +bm.prototype.delete = Crr; +bm.prototype.get = _rr; +bm.prototype.has = Lrr; +bm.prototype.set = Mrr; +var pme = bm, Drr = "Expected a function"; function BP(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(Mrr); + throw new TypeError(Drr); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -97848,123 +97870,123 @@ function BP(t, e) { var a = t.apply(this, n); return r.cache = s.set(i, a) || s, a; }; - return r.cache = new (BP.Cache || dme)(), r; + return r.cache = new (BP.Cache || pme)(), r; } -BP.Cache = dme; -var Drr = BP, Nrr = 500; -function Irr(t) { - var e = Drr(t, function(n) { - return r.size === Nrr && r.clear(), n; +BP.Cache = pme; +var Nrr = BP, Irr = 500; +function Prr(t) { + var e = Nrr(t, function(n) { + return r.size === Irr && r.clear(), n; }), r = e.cache; return e; } -var Prr = Irr, $rr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Brr = /\\(\\)?/g, Frr = Prr(function(t) { +var $rr = Prr, Brr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Frr = /\\(\\)?/g, zrr = $rr(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace($rr, function(r, n, i, s) { - e.push(i ? s.replace(Brr, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(Brr, function(r, n, i, s) { + e.push(i ? s.replace(Frr, "$1") : n || r); }), e; -}), pme = Frr; -function zrr(t, e) { +}), gme = zrr; +function Vrr(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var gme = zrr, Vrr = 1 / 0, JH = C1 ? C1.prototype : void 0, eX = JH ? JH.toString : void 0; -function mme(t) { +var mme = Vrr, Urr = 1 / 0, eX = C1 ? C1.prototype : void 0, tX = eX ? eX.toString : void 0; +function vme(t) { if (typeof t == "string") return t; - if (FC(t)) - return gme(t, mme) + ""; + if (zC(t)) + return mme(t, vme) + ""; if (Hx(t)) - return eX ? eX.call(t) : ""; + return tX ? tX.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -Vrr ? "-0" : e; + return e == "0" && 1 / t == -Urr ? "-0" : e; } -var Urr = mme; -function qrr(t) { - return t == null ? "" : Urr(t); +var qrr = vme; +function Qrr(t) { + return t == null ? "" : qrr(t); } -var vme = qrr; -function Qrr(t, e) { - return FC(t) ? t : dtr(t, e) ? [t] : pme(vme(t)); +var yme = Qrr; +function Yrr(t, e) { + return zC(t) ? t : ptr(t, e) ? [t] : gme(yme(t)); } -var yme = Qrr, Yrr = 1 / 0; -function Wrr(t) { +var bme = Yrr, Wrr = 1 / 0; +function Grr(t) { if (typeof t == "string" || Hx(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -Yrr ? "-0" : e; + return e == "0" && 1 / t == -Wrr ? "-0" : e; } -var FP = Wrr; -function Grr(t, e) { - e = yme(e, t); +var FP = Grr; +function Hrr(t, e) { + e = bme(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[FP(e[r++])]; return r && r == n ? t : void 0; } -var Hrr = Grr; -function Xrr(t, e, r) { - var n = t == null ? void 0 : Hrr(t, e); +var Xrr = Hrr; +function Zrr(t, e, r) { + var n = t == null ? void 0 : Xrr(t, e); return n === void 0 ? r : n; } -var Zrr = Xrr, jrr = function() { +var jrr = Zrr, Krr = function() { try { var t = $P(Object, "defineProperty"); return t({}, "", {}), t; } catch { } -}(), tX = jrr; -function Krr(t, e, r) { - e == "__proto__" && tX ? tX(t, e, { +}(), rX = Krr; +function Jrr(t, e, r) { + e == "__proto__" && rX ? rX(t, e, { configurable: !0, enumerable: !0, value: r, writable: !0 }) : t[e] = r; } -var Jrr = Krr, enr = Object.prototype, tnr = enr.hasOwnProperty; -function rnr(t, e, r) { +var enr = Jrr, tnr = Object.prototype, rnr = tnr.hasOwnProperty; +function nnr(t, e, r) { var n = t[e]; - (!(tnr.call(t, e) && fme(n, r)) || r === void 0 && !(e in t)) && Jrr(t, e, r); + (!(rnr.call(t, e) && dme(n, r)) || r === void 0 && !(e in t)) && enr(t, e, r); } -var nnr = rnr, inr = 9007199254740991, snr = /^(?:0|[1-9]\d*)$/; -function anr(t, e) { +var inr = nnr, snr = 9007199254740991, anr = /^(?:0|[1-9]\d*)$/; +function onr(t, e) { var r = typeof t; - return e = e == null ? inr : e, !!e && (r == "number" || r != "symbol" && snr.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? snr : e, !!e && (r == "number" || r != "symbol" && anr.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var onr = anr; -function lnr(t, e, r, n) { +var lnr = onr; +function cnr(t, e, r, n) { if (!C0(t)) return t; - e = yme(e, t); + e = bme(e, t); for (var i = -1, s = e.length, a = s - 1, o = t; o != null && ++i < s; ) { var l = FP(e[i]), u = r; if (l === "__proto__" || l === "constructor" || l === "prototype") return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = C0(h) ? h : onr(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = C0(h) ? h : lnr(e[i + 1]) ? [] : {}); } - nnr(o, l, u), o = o[l]; + inr(o, l, u), o = o[l]; } return t; } -var cnr = lnr; -function unr(t, e, r) { - return t == null ? t : cnr(t, e, r); +var unr = cnr; +function hnr(t, e, r) { + return t == null ? t : unr(t, e, r); } -var hnr = unr; -function fnr(t, e) { +var fnr = hnr; +function dnr(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var dnr = fnr; -function pnr(t) { - return FC(t) ? gme(t, FP) : Hx(t) ? [t] : dnr(pme(vme(t))); +var pnr = dnr; +function gnr(t) { + return zC(t) ? mme(t, FP) : Hx(t) ? [t] : pnr(gme(yme(t))); } -var gnr = pnr, mnr = { +var mnr = gnr, vnr = { data: function(e) { var r = { field: "data", @@ -97990,18 +98012,18 @@ var gnr = pnr, mnr = { return e = Kt({}, r, e), function(i, s) { var a = e, o = this, l = o.length !== void 0, u = l ? o : [o], h = l ? o[0] : o; if (qt(i)) { - var f = i.indexOf(".") !== -1, d = f && gnr(i); + var f = i.indexOf(".") !== -1, d = f && mnr(i); if (a.allowGetting && s === void 0) { var p; - return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = Zrr(h._private[a.field], d) : p = h._private[a.field][i]), p; + return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = jrr(h._private[a.field], d) : p = h._private[a.field][i]), p; } else if (a.allowSetting && s !== void 0) { var g = !a.immutableKeys[i]; if (g) { - var m = L1e({}, i, s); + var m = R1e({}, i, s); a.beforeSet(o, m); for (var v = 0, y = u.length; v < y; v++) { var b = u[v]; - a.canSet(b) && (d && h._private[a.field][i] === void 0 ? hnr(b._private[a.field], d, s) : b._private[a.field][i] = s); + a.canSet(b) && (d && h._private[a.field][i] === void 0 ? fnr(b._private[a.field], d, s) : b._private[a.field][i] = s); } a.updateStyle && o.updateStyle(), a.onSet(o), a.settingTriggersEvent && o[a.triggerFnName](a.settingEvent); } @@ -98011,11 +98033,11 @@ var gnr = pnr, mnr = { a.beforeSet(o, w); for (var T = 0; T < C.length; T++) { O = C[T], S = w[O]; - var L = !a.immutableKeys[O]; - if (L) + var A = !a.immutableKeys[O]; + if (A) for (var E = 0; E < u.length; E++) { - var A = u[E]; - a.canSet(A) && (A._private[a.field][O] = S); + var L = u[E]; + a.canSet(L) && (L._private[a.field][O] = S); } } a.updateStyle && o.updateStyle(), a.onSet(o), a.settingTriggersEvent && o[a.triggerFnName](a.settingEvent); @@ -98061,7 +98083,7 @@ var gnr = pnr, mnr = { return a; }; } -}, vnr = { +}, ynr = { eventAliasesOn: function(e) { var r = e; r.addListener = r.listen = r.bind = r.on, r.unlisten = r.unbind = r.off = r.removeListener, r.trigger = r.emit, r.pon = r.promiseOn = function(n, i) { @@ -98075,10 +98097,10 @@ var gnr = pnr, mnr = { }; } }, Vr = {}; -[ltr, mnr, vnr].forEach(function(t) { +[ctr, vnr, ynr].forEach(function(t) { Kt(Vr, t); }); -var ynr = { +var bnr = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -98144,7 +98166,7 @@ var _r = { comparatorOp: "=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=", boolOp: "\\?|\\!|\\^", string: `"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`, - number: _i, + number: Ai, meta: "degree|indegree|outdegree", separator: "\\s*,\\s*", descendant: "\\s+", @@ -98191,7 +98213,7 @@ var Zr = function() { ANCESTOR: 18, COMPOUND_SPLIT: 19, TRUE: 20 -}, eR = [{ +}, tR = [{ selector: ":selected", matches: function(e) { return e.selected(); @@ -98337,14 +98359,14 @@ var Zr = function() { return !e.backgrounding(); } }].sort(function(t, e) { - return LKt(t.selector, e.selector); -}), bnr = function() { - for (var t = {}, e, r = 0; r < eR.length; r++) - e = eR[r], t[e.selector] = e.matches; + return RKt(t.selector, e.selector); +}), xnr = function() { + for (var t = {}, e, r = 0; r < tR.length; r++) + e = tR[r], t[e.selector] = e.matches; return t; -}(), xnr = function(e, r) { - return bnr[e](r); -}, wnr = "(" + eR.map(function(t) { +}(), wnr = function(e, r) { + return xnr[e](r); +}, Onr = "(" + tR.map(function(t) { return t.selector; }).join("|") + ")", pp = function(e) { return e.replace(new RegExp("\\\\(" + _r.metaChar + ")", "g"), function(r, n) { @@ -98352,7 +98374,7 @@ var Zr = function() { }); }, xh = function(e, r, n) { e[e.length - 1] = n; -}, tR = [{ +}, rR = [{ name: "group", query: !0, regex: "(" + _r.group + ")", @@ -98366,7 +98388,7 @@ var Zr = function() { }, { name: "state", query: !0, - regex: wnr, + regex: Onr, populate: function(e, r, n) { var i = ul(n, 1), s = i[0]; r.checks.push({ @@ -98582,12 +98604,12 @@ var Zr = function() { s === Rt.DIRECTED_EDGE ? i.type = Rt.NODE_TARGET : s === Rt.UNDIRECTED_EDGE && (i.type = Rt.NODE_NEIGHBOR, i.node = i.nodes[1], i.neighbor = i.nodes[0], i.nodes = null); } }]; -tR.forEach(function(t) { +rR.forEach(function(t) { return t.regexObj = new RegExp("^" + t.regex); }); -var Onr = function(e) { - for (var r, n, i, s = 0; s < tR.length; s++) { - var a = tR[s], o = a.name, l = e.match(a.regexObj); +var knr = function(e) { + for (var r, n, i, s = 0; s < rR.length; s++) { + var a = rR[s], o = a.name, l = e.match(a.regexObj); if (l != null) { n = l, r = a, i = o; var u = l[0]; @@ -98601,17 +98623,17 @@ var Onr = function(e) { name: i, remaining: e }; -}, knr = function(e) { +}, Snr = function(e) { var r = e.match(/^\s+/); if (r) { var n = r[0]; e = e.substring(n.length); } return e; -}, Snr = function(e) { +}, Tnr = function(e) { var r = this, n = r.inputText = e, i = r[0] = Zr(); - for (r.length = 1, n = knr(n); ; ) { - var s = Onr(n); + for (r.length = 1, n = Snr(n); ; ) { + var s = knr(n); if (s.expr == null) return Qr("The selector `" + e + "`is invalid"), !1; var a = s.match.slice(1), o = s.expr.populate(r, i, a); @@ -98631,7 +98653,7 @@ var Onr = function(e) { h.edgeCount === 1 && Qr("The selector `" + e + "` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes."); } return !0; -}, Tnr = function() { +}, Cnr = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(h) { @@ -98676,8 +98698,8 @@ var Onr = function(e) { case Rt.DESCENDANT: return s(h.ancestor, f) + " " + s(h.descendant, f); case Rt.COMPOUND_SPLIT: { - var C = s(h.left, f), T = s(h.subject, f), L = s(h.right, f); - return C + (C.length > 0 ? " " : "") + T + L; + var C = s(h.left, f), T = s(h.subject, f), A = s(h.right, f); + return C + (C.length > 0 ? " " : "") + T + A; } case Rt.TRUE: return ""; @@ -98691,10 +98713,10 @@ var Onr = function(e) { a += s(l, l.subject), this.length > 1 && o < this.length - 1 && (a += ", "); } return this.toStringCache = a, a; -}, Cnr = { - parse: Snr, - toString: Tnr -}, bme = function(e, r, n) { +}, Enr = { + parse: Tnr, + toString: Cnr +}, xme = function(e, r, n) { var i, s = qt(e), a = bt(e), o = qt(n), l, u, h = !1, f = !1, d = !1; switch (r.indexOf("!") >= 0 && (r = r.replace("!", ""), f = !0), r.indexOf("@") >= 0 && (r = r.replace("@", ""), h = !0), (s || o || h) && (l = !s && !a ? "" : "" + e, u = "" + n), h && (e = l = l.toLowerCase(), n = u = u.toLowerCase()), r) { case "*=": @@ -98726,7 +98748,7 @@ var Onr = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, Enr = function(e, r) { +}, _nr = function(e, r) { switch (r) { case "?": return !!e; @@ -98735,11 +98757,11 @@ var Onr = function(e) { case "^": return e === void 0; } -}, _nr = function(e) { +}, Anr = function(e) { return e !== void 0; }, zP = function(e, r) { return e.data(r); -}, Anr = function(e, r) { +}, Lnr = function(e, r) { return e[r](); }, Wn = [], xn = function(e, r) { return e.checks.every(function(n) { @@ -98752,7 +98774,7 @@ Wn[Rt.GROUP] = function(t, e) { }; Wn[Rt.STATE] = function(t, e) { var r = t.value; - return xnr(r, e); + return wnr(r, e); }; Wn[Rt.ID] = function(t, e) { var r = t.value; @@ -98764,19 +98786,19 @@ Wn[Rt.CLASS] = function(t, e) { }; Wn[Rt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return bme(Anr(e, r), n, i); + return xme(Lnr(e, r), n, i); }; Wn[Rt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return bme(zP(e, r), n, i); + return xme(zP(e, r), n, i); }; Wn[Rt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; - return Enr(zP(e, r), n); + return _nr(zP(e, r), n); }; Wn[Rt.DATA_EXIST] = function(t, e) { var r = t.field; - return t.operator, _nr(zP(e, r)); + return t.operator, Anr(zP(e, r)); }; Wn[Rt.UNDIRECTED_EDGE] = function(t, e) { var r = t.nodes[0], n = t.nodes[1], i = e.source(), s = e.target(); @@ -98832,7 +98854,7 @@ Wn[Rt.FILTER] = function(t, e) { var r = t.value; return r(e); }; -var Lnr = function(e) { +var Rnr = function(e) { var r = this; if (r.length === 1 && r[0].checks.length === 1 && r[0].checks[0].type === Rt.ID) return e.getElementById(r[0].checks[0].value).collection(); @@ -98847,16 +98869,16 @@ var Lnr = function(e) { return r.text() == null && (n = function() { return !0; }), e.filter(n); -}, Rnr = function(e) { +}, Mnr = function(e) { for (var r = this, n = 0; n < r.length; n++) { var i = r[n]; if (xn(i, e)) return !0; } return !1; -}, Mnr = { - matches: Rnr, - filter: Lnr +}, Dnr = { + matches: Mnr, + filter: Rnr }, Df = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || qt(e) && e.match(/^\s*$/) || (lo(e) ? this.addQuery({ checks: [{ @@ -98870,7 +98892,7 @@ var Lnr = function(e) { }] }) : qt(e) ? this.parse(e) || (this.invalid = !0) : Yn("A selector must be created from a string; found ")); }, Nf = Df.prototype; -[Cnr, Mnr].forEach(function(t) { +[Enr, Dnr].forEach(function(t) { return Kt(Nf, t); }); Nf.text = function() { @@ -99051,7 +99073,7 @@ function VP(t, e, r, n) { } return t; } -function xme(t, e, r) { +function wme(t, e, r) { if (r.isParent()) for (var n = r._private.children, i = 0; i < n.length; i++) { var s = n[i]; @@ -99060,9 +99082,9 @@ function xme(t, e, r) { } A1.forEachDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return VP(this, t, e, xme); + return VP(this, t, e, wme); }; -function wme(t, e, r) { +function Ome(t, e, r) { if (r.isChild()) { var n = r._private.parent; e.has(n.id()) || t.push(n); @@ -99070,18 +99092,18 @@ function wme(t, e, r) { } A1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return VP(this, t, e, wme); + return VP(this, t, e, Ome); }; -function Dnr(t, e, r) { - wme(t, e, r), xme(t, e, r); +function Nnr(t, e, r) { + Ome(t, e, r), wme(t, e, r); } A1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return VP(this, t, e, Dnr); + return VP(this, t, e, Nnr); }; A1.ancestors = A1.parents; -var j2, Ome; -j2 = Ome = { +var j2, kme; +j2 = kme = { data: Vr.data({ field: "data", bindingEvent: "data", @@ -99149,8 +99171,8 @@ j2 = Ome = { }; j2.attr = j2.data; j2.removeAttr = j2.removeData; -var Nnr = Ome, UC = {}; -function nA(t) { +var Inr = kme, qC = {}; +function iA(t) { return function(e) { var r = this; if (e === void 0 && (e = !0), r.length !== 0) @@ -99164,14 +99186,14 @@ function nA(t) { return; }; } -Kt(UC, { - degree: nA(function(t, e) { +Kt(qC, { + degree: iA(function(t, e) { return e.source().same(e.target()) ? 2 : 1; }), - indegree: nA(function(t, e) { + indegree: iA(function(t, e) { return e.target().same(t) ? 1 : 0; }), - outdegree: nA(function(t, e) { + outdegree: iA(function(t, e) { return e.source().same(t) ? 1 : 0; }) }); @@ -99184,7 +99206,7 @@ function gp(t, e) { return n; }; } -Kt(UC, { +Kt(qC, { minDegree: gp("degree", function(t, e) { return t < e; }), @@ -99204,14 +99226,14 @@ Kt(UC, { return t > e; }) }); -Kt(UC, { +Kt(qC, { totalDegree: function(e) { for (var r = 0, n = this.nodes(), i = 0; i < n.length; i++) r += n[i].degree(e); return r; } }); -var _l, kme, Sme = function(e, r, n) { +var _l, Sme, Tme = function(e, r, n) { for (var i = 0; i < e.length; i++) { var s = e[i]; if (!s.locked()) { @@ -99222,7 +99244,7 @@ var _l, kme, Sme = function(e, r, n) { s.isParent() && !(o.x === 0 && o.y === 0) && s.children().shift(o, n), s.dirtyBoundingBoxCache(); } } -}, rX = { +}, nX = { field: "position", bindingEvent: "position", allowBinding: !0, @@ -99236,7 +99258,7 @@ var _l, kme, Sme = function(e, r, n) { e.updateCompoundBounds(); }, beforeSet: function(e, r) { - Sme(e, r, !1); + Tme(e, r, !1); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -99245,15 +99267,15 @@ var _l, kme, Sme = function(e, r, n) { return !e.locked(); } }; -_l = kme = { - position: Vr.data(rX), - silentPosition: Vr.data(Kt({}, rX, { +_l = Sme = { + position: Vr.data(nX), + silentPosition: Vr.data(Kt({}, nX, { allowBinding: !1, allowSetting: !0, settingTriggersEvent: !1, allowGetting: !1, beforeSet: function(e, r) { - Sme(e, r, !0); + Tme(e, r, !0); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -99310,11 +99332,11 @@ _l = kme = { if (l) for (var u = 0; u < this.length; u++) { var h = this[u]; - r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(Z1e(o, s, a)); + r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(j1e(o, s, a)); } else { var f = n.position(); - return o = $C(f, s, a), e === void 0 ? o : o[e]; + return o = BC(f, s, a), e === void 0 ? o : o[e]; } else if (!l) return; @@ -99357,7 +99379,7 @@ _l.modelPosition = _l.point = _l.position; _l.modelPositions = _l.points = _l.positions; _l.renderedPoint = _l.renderedPosition; _l.relativePoint = _l.relativePosition; -var Inr = kme, mg, Yf; +var Pnr = Sme, mg, Yf; mg = Yf = {}; Yf.renderedBoundingBox = function(t) { var e = this.boundingBox(t), r = this.cy(), n = r.zoom(), i = r.pan(), s = e.x1 * n + i.x, a = e.x2 * n + i.x, o = e.y1 * n + i.y, l = e.y2 * n + i.y; @@ -99408,26 +99430,26 @@ Yf.updateCompoundBounds = function() { w: a.pstyle("width").pfValue, h: a.pstyle("height").pfValue }, f.x1 = d.x - f.w / 2, f.x2 = d.x + f.w / 2, f.y1 = d.y - f.h / 2, f.y2 = d.y + f.h / 2); - function p(E, A, _) { - var R = 0, $ = 0, k = A + _; - return E > 0 && k > 0 && (R = A / k * E, $ = _ / k * E), { + function p(E, L, _) { + var R = 0, $ = 0, k = L + _; + return E > 0 && k > 0 && (R = L / k * E, $ = _ / k * E), { biasDiff: R, biasComplementDiff: $ }; } - function g(E, A, _, R) { + function g(E, L, _, R) { if (_.units === "%") switch (R) { case "width": return E > 0 ? _.pfValue * E : 0; case "height": - return A > 0 ? _.pfValue * A : 0; + return L > 0 ? _.pfValue * L : 0; case "average": - return E > 0 && A > 0 ? _.pfValue * (E + A) / 2 : 0; + return E > 0 && L > 0 ? _.pfValue * (E + L) / 2 : 0; case "min": - return E > 0 && A > 0 ? E > A ? _.pfValue * A : _.pfValue * E : 0; + return E > 0 && L > 0 ? E > L ? _.pfValue * L : _.pfValue * E : 0; case "max": - return E > 0 && A > 0 ? E > A ? _.pfValue * E : _.pfValue * A : 0; + return E > 0 && L > 0 ? E > L ? _.pfValue * E : _.pfValue * L : 0; default: return 0; } @@ -99442,8 +99464,8 @@ Yf.updateCompoundBounds = function() { h.height.top.units === "px" && h.height.val > 0 && (y = y * 100 / h.height.val); var b = h.height.bottom.value; h.height.bottom.units === "px" && h.height.val > 0 && (b = b * 100 / h.height.val); - var w = p(h.width.val - f.w, m, v), O = w.biasDiff, S = w.biasComplementDiff, C = p(h.height.val - f.h, y, b), T = C.biasDiff, L = C.biasComplementDiff; - o.autoPadding = g(f.w, f.h, a.pstyle("padding"), a.pstyle("padding-relative-to").value), o.autoWidth = Math.max(f.w, h.width.val), d.x = (-O + f.x1 + f.x2 + S) / 2, o.autoHeight = Math.max(f.h, h.height.val), d.y = (-T + f.y1 + f.y2 + L) / 2; + var w = p(h.width.val - f.w, m, v), O = w.biasDiff, S = w.biasComplementDiff, C = p(h.height.val - f.h, y, b), T = C.biasDiff, A = C.biasComplementDiff; + o.autoPadding = g(f.w, f.h, a.pstyle("padding"), a.pstyle("padding-relative-to").value), o.autoWidth = Math.max(f.w, h.width.val), d.x = (-O + f.x1 + f.x2 + S) / 2, o.autoHeight = Math.max(f.h, h.height.val), d.y = (-T + f.y1 + f.y2 + A) / 2; } for (var n = 0; n < this.length; n++) { var i = this[n], s = i._private; @@ -99468,25 +99490,25 @@ var Co = function(e) { f.x1 = l - a, f.y1 = u - a, f.x2 = l + a, f.y2 = u + a, f.w = f.x2 - f.x1, f.h = f.y2 - f.y1, i5(f, 1), fl(e, f.x1, f.y1, f.x2, f.y2); } } -}, iA = function(e, r, n) { +}, sA = function(e, r, n) { if (!r.cy().headless()) { var i; n ? i = n + "-" : i = ""; var s = r._private, a = s.rstyle, o = r.pstyle(i + "label").strValue; if (o) { - var l = r.pstyle("text-halign"), u = r.pstyle("text-valign"), h = av(a, "labelWidth", n), f = av(a, "labelHeight", n), d = av(a, "labelX", n), p = av(a, "labelY", n), g = r.pstyle(i + "text-margin-x").pfValue, m = r.pstyle(i + "text-margin-y").pfValue, v = r.isEdge(), y = r.pstyle(i + "text-rotation"), b = r.pstyle("text-outline-width").pfValue, w = r.pstyle("text-border-width").pfValue, O = w / 2, S = r.pstyle("text-background-padding").pfValue, C = 2, T = f, L = h, E = L / 2, A = T / 2, _, R, $, k; + var l = r.pstyle("text-halign"), u = r.pstyle("text-valign"), h = av(a, "labelWidth", n), f = av(a, "labelHeight", n), d = av(a, "labelX", n), p = av(a, "labelY", n), g = r.pstyle(i + "text-margin-x").pfValue, m = r.pstyle(i + "text-margin-y").pfValue, v = r.isEdge(), y = r.pstyle(i + "text-rotation"), b = r.pstyle("text-outline-width").pfValue, w = r.pstyle("text-border-width").pfValue, O = w / 2, S = r.pstyle("text-background-padding").pfValue, C = 2, T = f, A = h, E = A / 2, L = T / 2, _, R, $, k; if (v) - _ = d - E, R = d + E, $ = p - A, k = p + A; + _ = d - E, R = d + E, $ = p - L, k = p + L; else { switch (l.value) { case "left": - _ = d - L, R = d; + _ = d - A, R = d; break; case "center": _ = d - E, R = d + E; break; case "right": - _ = d, R = d + L; + _ = d, R = d + A; break; } switch (u.value) { @@ -99494,7 +99516,7 @@ var Co = function(e) { $ = p - T, k = p; break; case "center": - $ = p - A, k = p + A; + $ = p - L, k = p + L; break; case "bottom": $ = p, k = p + T; @@ -99538,7 +99560,7 @@ var Co = function(e) { } return e; } -}, Pnr = function(e, r) { +}, $nr = function(e, r) { if (!r.cy().headless()) { var n = r.pstyle("outline-opacity").value, i = r.pstyle("outline-width").value; if (n > 0 && i > 0) { @@ -99546,13 +99568,13 @@ var Co = function(e) { ["diamond", "pentagon", "round-triangle"].includes(a) ? (l = (e.w + o * 2.4) / e.w, f = -o / 3.6) : ["concave-hexagon", "rhomboid", "right-rhomboid"].includes(a) ? l = (e.w + o * 2.4) / e.w : a === "star" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.6) / e.h, f = -o / 3.8) : a === "triangle" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.4) / e.h, f = -o / 1.4) : a === "vee" && (l = (e.w + o * 4.4) / e.w, u = (e.h + o * 3.8) / e.h, f = -o * 0.5); var d = e.h * u - e.h, p = e.w * l - e.w; if (s5(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { - var g = ner(e, h, f); - K1e(e, g); + var g = ier(e, h, f); + J1e(e, g); } } } -}, $nr = function(e, r) { - var n = e._private.cy, i = n.styleEnabled(), s = n.headless(), a = Fa(), o = e._private, l = e.isNode(), u = e.isEdge(), h, f, d, p, g, m, v = o.rstyle, y = l && i ? e.pstyle("bounds-expansion").pfValue : [0], b = function(_e) { +}, Bnr = function(e, r) { + var n = e._private.cy, i = n.styleEnabled(), s = n.headless(), a = za(), o = e._private, l = e.isNode(), u = e.isEdge(), h, f, d, p, g, m, v = o.rstyle, y = l && i ? e.pstyle("bounds-expansion").pfValue : [0], b = function(_e) { return _e.pstyle("display").value !== "none"; }, w = !i || b(e) && (!u || b(e.source()) && b(e.target())); if (w) { @@ -99560,16 +99582,16 @@ var Co = function(e) { i && r.includeOverlays && (O = e.pstyle("overlay-opacity").value, O !== 0 && (S = e.pstyle("overlay-padding").value)); var C = 0, T = 0; i && r.includeUnderlays && (C = e.pstyle("underlay-opacity").value, C !== 0 && (T = e.pstyle("underlay-padding").value)); - var L = Math.max(S, T), E = 0, A = 0; - if (i && (E = e.pstyle("width").pfValue, A = E / 2), l && r.includeNodes) { + var A = Math.max(S, T), E = 0, L = 0; + if (i && (E = e.pstyle("width").pfValue, L = E / 2), l && r.includeNodes) { var _ = e.position(); g = _.x, m = _.y; var R = e.outerWidth(), $ = R / 2, k = e.outerHeight(), N = k / 2; - h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && Pnr(a, e); + h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && $nr(a, e); } else if (u && r.includeEdges) if (i && !s) { var M = e.pstyle("curve-style").strValue; - if (h = Math.min(v.srcX, v.midX, v.tgtX), f = Math.max(v.srcX, v.midX, v.tgtX), d = Math.min(v.srcY, v.midY, v.tgtY), p = Math.max(v.srcY, v.midY, v.tgtY), h -= A, f += A, d -= A, p += A, fl(a, h, d, f, p), M === "haystack") { + if (h = Math.min(v.srcX, v.midX, v.tgtX), f = Math.max(v.srcX, v.midX, v.tgtX), d = Math.min(v.srcY, v.midY, v.tgtY), p = Math.max(v.srcY, v.midY, v.tgtY), h -= L, f += L, d -= L, p += L, fl(a, h, d, f, p), M === "haystack") { var I = v.haystackPts; if (I && I.length === 2) { if (h = I[0].x, d = I[0].y, f = I[1].x, p = I[1].y, h > f) { @@ -99580,7 +99602,7 @@ var Co = function(e) { var P = d; d = p, p = P; } - fl(a, h - A, d - A, f + A, p + A); + fl(a, h - L, d - L, f + L, p + L); } } else if (M === "bezier" || M === "unbundled-bezier" || M.endsWith("segments") || M.endsWith("taxi")) { var F; @@ -99599,7 +99621,7 @@ var Co = function(e) { if (F != null) for (var B = 0; B < F.length; B++) { var V = F[B]; - h = V.x - A, f = V.x + A, d = V.y - A, p = V.y + A, fl(a, h, d, f, p); + h = V.x - L, f = V.x + L, d = V.y - L, p = V.y + L, fl(a, h, d, f, p); } } } else { @@ -99612,7 +99634,7 @@ var Co = function(e) { var ie = d; d = p, p = ie; } - h -= A, f += A, d -= A, p += A, fl(a, h, d, f, p); + h -= L, f += L, d -= L, p += L, fl(a, h, d, f, p); } if (i && r.includeEdges && u && (zO(a, e, "mid-source"), zO(a, e, "mid-target"), zO(a, e, "source"), zO(a, e, "target")), i) { var U = e.pstyle("ghost").value === "yes"; @@ -99622,33 +99644,33 @@ var Co = function(e) { } } var j = o.bodyBounds = o.bodyBounds || {}; - IH(j, a), s5(j, y), i5(j, 1), i && (h = a.x1, f = a.x2, d = a.y1, p = a.y2, fl(a, h - L, d - L, f + L, p + L)); + PH(j, a), s5(j, y), i5(j, 1), i && (h = a.x1, f = a.x2, d = a.y1, p = a.y2, fl(a, h - A, d - A, f + A, p + A)); var ae = o.overlayBounds = o.overlayBounds || {}; - IH(ae, a), s5(ae, y), i5(ae, 1); + PH(ae, a), s5(ae, y), i5(ae, 1); var se = o.labelBounds = o.labelBounds || {}; - se.all != null ? rer(se.all) : se.all = Fa(), i && r.includeLabels && (r.includeMainLabels && iA(a, e, null), u && (r.includeSourceLabels && iA(a, e, "source"), r.includeTargetLabels && iA(a, e, "target"))); + se.all != null ? ner(se.all) : se.all = za(), i && r.includeLabels && (r.includeMainLabels && sA(a, e, null), u && (r.includeSourceLabels && sA(a, e, "source"), r.includeTargetLabels && sA(a, e, "target"))); } return a.x1 = Co(a.x1), a.y1 = Co(a.y1), a.x2 = Co(a.x2), a.y2 = Co(a.y2), a.w = Co(a.x2 - a.x1), a.h = Co(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (s5(a, y), i5(a, 1)), a; -}, Tme = function(e) { +}, Cme = function(e) { var r = 0, n = function(a) { return (a ? 1 : 0) << r++; }, i = 0; return i += n(e.incudeNodes), i += n(e.includeEdges), i += n(e.includeLabels), i += n(e.includeMainLabels), i += n(e.includeSourceLabels), i += n(e.includeTargetLabels), i += n(e.includeOverlays), i += n(e.includeOutlines), i; -}, Cme = function(e) { +}, Eme = function(e) { if (e.isEdge()) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); }; - return kJt([i(r.x), i(r.y), i(n.x), i(n.y)]); + return SJt([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; -}, nX = function(e, r) { - var n = e._private, i, s = e.isEdge(), a = r == null ? iX : Tme(r), o = a === iX, l = Cme(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { +}, iX = function(e, r) { + var n = e._private, i, s = e.isEdge(), a = r == null ? sX : Cme(r), o = a === sX, l = Eme(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { return m._private.bbCache == null || m._private.styleDirty; }, d = !h || f(e) || s && f(e.source()) || f(e.target()); - if (d ? (u || e.recalculateRenderedStyle(h), i = $nr(e, K2), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { + if (d ? (u || e.recalculateRenderedStyle(h), i = Bnr(e, K2), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { var p = e.isNode(); - i = Fa(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? ud(i, n.overlayBounds) : ud(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? ud(i, n.labelBounds.all) : (r.includeMainLabels && ud(i, n.labelBounds.mainRot), r.includeSourceLabels && ud(i, n.labelBounds.sourceRot), r.includeTargetLabels && ud(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; + i = za(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? ud(i, n.overlayBounds) : ud(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? ud(i, n.labelBounds.all) : (r.includeMainLabels && ud(i, n.labelBounds.mainRot), r.includeSourceLabels && ud(i, n.labelBounds.sourceRot), r.includeTargetLabels && ud(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } return i; }, K2 = { @@ -99662,23 +99684,23 @@ var Co = function(e) { includeUnderlays: !0, includeOutlines: !0, useCache: !0 -}, iX = Tme(K2), sX = ws(K2); +}, sX = Cme(K2), aX = ws(K2); Yf.boundingBox = function(t) { var e; if (this.length === 1 && this[0]._private.bbCache != null && !this[0]._private.styleDirty && (t === void 0 || t.useCache === void 0 || t.useCache === !0)) - t === void 0 ? t = K2 : t = sX(t), e = nX(this[0], t); + t === void 0 ? t = K2 : t = aX(t), e = iX(this[0], t); else { - e = Fa(), t = t || K2; - var r = sX(t), n = this, i = n.cy(), s = i.styleEnabled(); + e = za(), t = t || K2; + var r = aX(t), n = this, i = n.cy(), s = i.styleEnabled(); if (s) for (var a = 0; a < n.length; a++) { - var o = n[a], l = o._private, u = Cme(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; + var o = n[a], l = o._private, u = Eme(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; o.recalculateRenderedStyle(f); } this.updateCompoundBounds(!t.useCache); for (var d = 0; d < n.length; d++) { var p = n[d]; - ud(e, nX(p, r)); + ud(e, iX(p, r)); } } return e.x1 = Co(e.x1), e.y1 = Co(e.y1), e.x2 = Co(e.x2), e.y2 = Co(e.y2), e.w = Co(e.x2 - e.x1), e.h = Co(e.y2 - e.y1), e; @@ -99706,17 +99728,17 @@ Yf.boundingBoxAt = function(t) { return h._private.bbAtOldPos; }; r.startBatch(), e.forEach(a).silentPositions(t), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var l = ter(this.boundingBox({ + var l = rer(this.boundingBox({ useCache: !1 })); return e.silentPositions(o), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), r.endBatch(), l; }; mg.boundingbox = mg.bb = mg.boundingBox; mg.renderedBoundingbox = mg.renderedBoundingBox; -var Bnr = Yf, Bv, Zx; +var Fnr = Yf, Bv, Zx; Bv = Zx = {}; -var Eme = function(e) { - e.uppercaseName = _H(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = _H(e.outerName), Bv[e.name] = function() { +var _me = function(e) { + e.uppercaseName = AH(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = AH(e.outerName), Bv[e.name] = function() { var n = this[0], i = n._private, s = i.cy, a = s._private.styleEnabled; if (n) if (a) { @@ -99753,10 +99775,10 @@ var Eme = function(e) { } }; }; -Eme({ +_me({ name: "width" }); -Eme({ +_me({ name: "height" }); Zx.padding = function() { @@ -99771,61 +99793,61 @@ Zx.paddedWidth = function() { var t = this[0]; return t.width() + 2 * t.padding(); }; -var Fnr = Zx, znr = function(e, r) { +var znr = Zx, Vnr = function(e, r) { if (e.isEdge()) return r(e); -}, Vnr = function(e, r) { +}, Unr = function(e, r) { if (e.isEdge()) { var n = e.cy(); - return $C(r(e), n.zoom(), n.pan()); + return BC(r(e), n.zoom(), n.pan()); } -}, Unr = function(e, r) { +}, qnr = function(e, r) { if (e.isEdge()) { var n = e.cy(), i = n.pan(), s = n.zoom(); return r(e).map(function(a) { - return $C(a, s, i); + return BC(a, s, i); }); } -}, qnr = function(e) { - return e.renderer().getControlPoints(e); }, Qnr = function(e) { - return e.renderer().getSegmentPoints(e); + return e.renderer().getControlPoints(e); }, Ynr = function(e) { - return e.renderer().getSourceEndpoint(e); + return e.renderer().getSegmentPoints(e); }, Wnr = function(e) { - return e.renderer().getTargetEndpoint(e); + return e.renderer().getSourceEndpoint(e); }, Gnr = function(e) { + return e.renderer().getTargetEndpoint(e); +}, Hnr = function(e) { return e.renderer().getEdgeMidpoint(e); -}, aX = { +}, oX = { controlPoints: { - get: qnr, + get: Qnr, mult: !0 }, segmentPoints: { - get: Qnr, + get: Ynr, mult: !0 }, sourceEndpoint: { - get: Ynr + get: Wnr }, targetEndpoint: { - get: Wnr + get: Gnr }, midpoint: { - get: Gnr + get: Hnr } -}, Hnr = function(e) { +}, Xnr = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, Xnr = Object.keys(aX).reduce(function(t, e) { - var r = aX[e], n = Hnr(e); +}, Znr = Object.keys(oX).reduce(function(t, e) { + var r = oX[e], n = Xnr(e); return t[e] = function() { - return znr(this, r.get); + return Vnr(this, r.get); }, r.mult ? t[n] = function() { - return Unr(this, r.get); + return qnr(this, r.get); } : t[n] = function() { - return Vnr(this, r.get); + return Unr(this, r.get); }, t; -}, {}), Znr = Kt({}, Inr, Bnr, Fnr, Xnr); +}, {}), jnr = Kt({}, Pnr, Fnr, znr, Znr); /*! Event object based on jQuery events, MIT license @@ -99833,7 +99855,7 @@ https://jquery.org/license/ https://tldrlegal.com/license/mit-license https://github.com/jquery/jquery/blob/master/src/event.js */ -var _me = function(e, r) { +var Ame = function(e, r) { this.recycle(e, r); }; function ov() { @@ -99842,7 +99864,7 @@ function ov() { function VO() { return !0; } -_me.prototype = { +Ame.prototype = { instanceString: function() { return "event"; }, @@ -99873,7 +99895,7 @@ _me.prototype = { isPropagationStopped: ov, isImmediatePropagationStopped: ov }; -var Ame = /^([^.]+)(\.(?:[^.]+))?$/, jnr = ".*", Lme = { +var Lme = /^([^.]+)(\.(?:[^.]+))?$/, Knr = ".*", Rme = { qualifierCompare: function(e, r) { return e === r; }, @@ -99896,20 +99918,20 @@ var Ame = /^([^.]+)(\.(?:[^.]+))?$/, jnr = ".*", Lme = { return null; }, context: null -}, oX = Object.keys(Lme), Knr = {}; -function qC() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Knr, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < oX.length; r++) { - var n = oX[r]; - this[n] = t[n] || Lme[n]; +}, lX = Object.keys(Rme), Jnr = {}; +function QC() { + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Jnr, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < lX.length; r++) { + var n = lX[r]; + this[n] = t[n] || Rme[n]; } this.context = e || this.context, this.listeners = [], this.emitting = 0; } -var If = qC.prototype, Rme = function(e, r, n, i, s, a, o) { +var If = QC.prototype, Mme = function(e, r, n, i, s, a, o) { Pn(i) && (s = i, i = null), o && (a == null ? a = o : a = Kt({}, a, o)); for (var l = nn(n) ? n : n.split(/\s+/), u = 0; u < l.length; u++) { var h = l[u]; if (!Rf(h)) { - var f = h.match(Ame); + var f = h.match(Lme); if (f) { var d = f[1], p = f[2] ? f[2] : null, g = r(e, h, d, p, i, s, a); if (g === !1) @@ -99917,22 +99939,22 @@ var If = qC.prototype, Rme = function(e, r, n, i, s, a, o) { } } } -}, lX = function(e, r) { - return e.addEventFields(e.context, r), new _me(r.type, r); -}, Jnr = function(e, r, n) { - if (bKt(n)) { +}, cX = function(e, r) { + return e.addEventFields(e.context, r), new Ame(r.type, r); +}, eir = function(e, r, n) { + if (xKt(n)) { r(e, n); return; } else if (Ar(n)) { - r(e, lX(e, n)); + r(e, cX(e, n)); return; } for (var i = nn(n) ? n : n.split(/\s+/), s = 0; s < i.length; s++) { var a = i[s]; if (!Rf(a)) { - var o = a.match(Ame); + var o = a.match(Lme); if (o) { - var l = o[1], u = o[2] ? o[2] : null, h = lX(e, { + var l = o[1], u = o[2] ? o[2] : null, h = cX(e, { type: l, namespace: u, target: e.context @@ -99943,7 +99965,7 @@ var If = qC.prototype, Rme = function(e, r, n, i, s, a, o) { } }; If.on = If.addListener = function(t, e, r, n, i) { - return Rme(this, function(s, a, o, l, u, h, f) { + return Mme(this, function(s, a, o, l, u, h, f) { Pn(h) && s.listeners.push({ event: a, callback: h, @@ -99961,10 +99983,10 @@ If.one = function(t, e, r, n) { }; If.removeListener = If.off = function(t, e, r, n) { var i = this; - this.emitting !== 0 && (this.listeners = _Jt(this.listeners)); + this.emitting !== 0 && (this.listeners = AJt(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; - Rme(i, function(f, d, p, g, m, v) { + Mme(i, function(f, d, p, g, m, v) { if ((h.type === p || t === "*") && (!g && h.namespace !== ".*" || h.namespace === g) && (!m || f.qualifierCompare(h.qualifier, m)) && (!v || h.callback === v)) return s.splice(u, 1), !1; }, t, e, r, n); @@ -99977,7 +99999,7 @@ If.removeAllListeners = function() { }; If.emit = If.trigger = function(t, e, r) { var n = this.listeners, i = n.length; - return this.emitting++, nn(e) || (e = [e]), Jnr(this, function(s, a) { + return this.emitting++, nn(e) || (e = [e]), eir(this, function(s, a) { r != null && (n = [{ event: a.event, type: a.type, @@ -99986,9 +100008,9 @@ If.emit = If.trigger = function(t, e, r) { }], i = n.length); for (var o = function(h) { var f = n[h]; - if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === jnr) && s.eventMatches(s.context, f, a)) { + if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === Knr) && s.eventMatches(s.context, f, a)) { var d = [a]; - e != null && LJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { + e != null && RJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { return m !== f; })); var p = s.callbackContext(s.context, f, a), g = f.callback.apply(p, d); @@ -99999,7 +100021,7 @@ If.emit = If.trigger = function(t, e, r) { s.bubble(s.context) && !a.isPropagationStopped() && s.parent(s.context).emit(a, e); }, t), this.emitting--, this; }; -var eir = { +var tir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -100024,11 +100046,11 @@ var eir = { } }, UO = function(e) { return qt(e) ? new Df(e) : e; -}, Mme = { +}, Dme = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; - n.emitter || (n.emitter = new qC(eir, r)); + n.emitter || (n.emitter = new QC(tir, r)); } return this; }, @@ -100084,8 +100106,8 @@ var eir = { return this.cy().notify(e, this), this.emit(e, r), this; } }; -Vr.eventAliasesOn(Mme); -var Dme = { +Vr.eventAliasesOn(Dme); +var Nme = { nodes: function(e) { return this.filter(function(r) { return r.isNode(); @@ -100278,14 +100300,14 @@ var Dme = { ele: i }; } -}, Mr = Dme; +}, Mr = Nme; Mr.u = Mr["|"] = Mr["+"] = Mr.union = Mr.or = Mr.add; Mr["\\"] = Mr["!"] = Mr["-"] = Mr.difference = Mr.relativeComplement = Mr.subtract = Mr.not; Mr.n = Mr["&"] = Mr["."] = Mr.and = Mr.intersection = Mr.intersect; Mr["^"] = Mr["(+)"] = Mr["(-)"] = Mr.symmetricDifference = Mr.symdiff = Mr.xor; Mr.fnFilter = Mr.filterFn = Mr.stdFilter = Mr.filter; Mr.complement = Mr.abscomp = Mr.absoluteComplement; -var tir = { +var rir = { isNode: function() { return this.group() === "nodes"; }, @@ -100303,7 +100325,7 @@ var tir = { if (e) return e._private.group; } -}, Nme = function(e, r) { +}, Ime = function(e, r) { var n = e.cy(), i = n.hasCompoundNodes(); function s(h) { var f = h.pstyle("z-compound-depth"); @@ -100321,7 +100343,7 @@ var tir = { return l; var u = e.pstyle("z-index").value - r.pstyle("z-index").value; return u !== 0 ? u : e.poolIndex() - r.poolIndex(); -}, hS = { +}, fS = { forEach: function(e, r) { if (Pn(e)) for (var n = this.length, i = 0; i < n; i++) { @@ -100368,7 +100390,7 @@ var tir = { return this.spawn(r); }, sortByZIndex: function() { - return this.sort(Nme); + return this.sort(Ime); }, zDepth: function() { var e = this[0]; @@ -100384,15 +100406,15 @@ var tir = { } } }; -hS.each = hS.forEach; -var rir = function() { - var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : Ii(Symbol)) != e && Ii(Symbol.iterator) != e; - r && (hS[Symbol.iterator] = function() { +fS.each = fS.forEach; +var nir = function() { + var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : Pi(Symbol)) != e && Pi(Symbol.iterator) != e; + r && (fS[Symbol.iterator] = function() { var n = this, i = { value: void 0, done: !1 }, s = 0, a = this.length; - return L1e({ + return R1e({ next: function() { return s < a ? i.value = n[s++] : (i.value = void 0, i.done = !0), i; } @@ -100401,12 +100423,12 @@ var rir = function() { }); }); }; -rir(); -var nir = ws({ +nir(); +var iir = ws({ nodeDimensionsIncludeLabels: !1 }), o5 = { layoutDimensions: function(e) { - e = nir(e); + e = iir(e); var r; if (!this.takesUpSpace()) r = { @@ -100436,31 +100458,31 @@ var nir = ws({ type: "layoutstart", layout: e }), e.animations = []; - var u = function(C, T, L) { + var u = function(C, T, A) { var E = { x: T.x1 + T.w / 2, y: T.y1 + T.h / 2 - }, A = { - x: (L.x - E.x) * C, - y: (L.y - E.y) * C + }, L = { + x: (A.x - E.x) * C, + y: (A.y - E.y) * C }; return { - x: E.x + A.x, - y: E.y + A.y + x: E.x + L.x, + y: E.y + L.y }; }, h = r.spacingFactor && r.spacingFactor !== 1, f = function() { if (!h) return null; - for (var C = Fa(), T = 0; T < i.length; T++) { - var L = i[T], E = l(L, T); - ier(C, E.x, E.y); + for (var C = za(), T = 0; T < i.length; T++) { + var A = i[T], E = l(A, T); + ser(C, E.x, E.y); } return C; }, d = f(), p = Q2(function(S, C) { var T = l(S, C); if (h) { - var L = Math.abs(r.spacingFactor); - T = u(L, d, T); + var A = Math.abs(r.spacingFactor); + T = u(A, d, T); } return r.transform != null && (T = r.transform(S, T)), T; }, o); @@ -100527,16 +100549,16 @@ var nir = ws({ } }; o5.createLayout = o5.makeLayout = o5.layout; -function Ime(t, e, r) { +function Pme(t, e, r) { var n = r._private, i = n.styleCache = n.styleCache || [], s; return (s = i[t]) != null || (s = i[t] = e(r)), s; } -function QC(t, e) { +function YC(t, e) { return t = E0(t), function(n) { - return Ime(t, e, n); + return Pme(t, e, n); }; } -function YC(t, e) { +function WC(t, e) { t = E0(t); var r = function(i) { return e.call(i); @@ -100544,7 +100566,7 @@ function YC(t, e) { return function() { var i = this[0]; if (i) - return Ime(t, r, i); + return Pme(t, r, i); }; } var ds = { @@ -100695,7 +100717,7 @@ var ds = { return !!r._private.backgrounding; } }; -function sA(t, e) { +function aA(t, e) { var r = t._private, n = r.data.parent ? t.parents() : null; if (n) for (var i = 0; i < n.length; i++) { @@ -100717,26 +100739,26 @@ function UP(t) { if (!e(s)) return !1; if (s.isNode()) - return !a || sA(s, n); + return !a || aA(s, n); var l = o.source, u = o.target; - return r(l) && (!a || sA(l, r)) && (l === u || r(u) && (!a || sA(u, r))); + return r(l) && (!a || aA(l, r)) && (l === u || r(u) && (!a || aA(u, r))); } }; } -var xm = QC("eleTakesUpSpace", function(t) { +var xm = YC("eleTakesUpSpace", function(t) { return t.pstyle("display").value === "element" && t.width() !== 0 && (t.isNode() ? t.height() !== 0 : !0); }); -ds.takesUpSpace = YC("takesUpSpace", UP({ +ds.takesUpSpace = WC("takesUpSpace", UP({ ok: xm })); -var iir = QC("eleInteractive", function(t) { +var sir = YC("eleInteractive", function(t) { return t.pstyle("events").value === "yes" && t.pstyle("visibility").value === "visible" && xm(t); -}), sir = QC("parentInteractive", function(t) { +}), air = YC("parentInteractive", function(t) { return t.pstyle("visibility").value === "visible" && xm(t); }); -ds.interactive = YC("interactive", UP({ - ok: iir, - parentOk: sir, +ds.interactive = WC("interactive", UP({ + ok: sir, + parentOk: air, edgeOkViaNode: xm })); ds.noninteractive = function() { @@ -100744,19 +100766,19 @@ ds.noninteractive = function() { if (t) return !t.interactive(); }; -var air = QC("eleVisible", function(t) { +var oir = YC("eleVisible", function(t) { return t.pstyle("visibility").value === "visible" && t.pstyle("opacity").pfValue !== 0 && xm(t); -}), oir = xm; -ds.visible = YC("visible", UP({ - ok: air, - edgeOkViaNode: oir +}), lir = xm; +ds.visible = WC("visible", UP({ + ok: oir, + edgeOkViaNode: lir })); ds.hidden = function() { var t = this[0]; if (t) return !t.visible(); }; -ds.isBundledBezier = YC("isBundledBezier", function() { +ds.isBundledBezier = WC("isBundledBezier", function() { return this.cy().styleEnabled() ? !this.removed() && this.pstyle("curve-style").value === "bezier" && this.takesUpSpace() : !1; }); ds.bypass = ds.css = ds.style; @@ -100764,7 +100786,7 @@ ds.renderedCss = ds.renderedStyle; ds.removeBypass = ds.removeCss = ds.removeStyle; ds.pstyle = ds.parsedStyle; var nf = {}; -function cX(t) { +function uX(t) { return function() { var e = arguments, r = []; if (e.length === 2) { @@ -100800,13 +100822,13 @@ function wm(t) { } return e._private[t.field]; } - }, nf[t.on] = cX({ + }, nf[t.on] = uX({ event: t.on, field: t.field, ableField: t.ableField, overrideAble: t.overrideAble, value: !0 - }), nf[t.off] = cX({ + }), nf[t.off] = uX({ event: t.off, field: t.field, ableField: t.ableField, @@ -100868,7 +100890,7 @@ nf.inactive = function() { if (t) return !t._private.active; }; -var zs = {}, uX = function(e) { +var zs = {}, hX = function(e) { return function(n) { for (var i = this, s = [], a = 0; a < i.length; a++) { var o = i[a]; @@ -100885,7 +100907,7 @@ var zs = {}, uX = function(e) { } return this.spawn(s, !0).filter(n); }; -}, hX = function(e) { +}, fX = function(e) { return function(r) { for (var n = this, i = [], s = 0; s < n.length; s++) { var a = n[s]; @@ -100897,7 +100919,7 @@ var zs = {}, uX = function(e) { } return this.spawn(i, !0).filter(r); }; -}, fX = function(e) { +}, dX = function(e) { return function(r) { for (var n = this, i = [], s = {}; ; ) { var a = e.outgoing ? n.outgoers() : n.incomers(); @@ -100919,22 +100941,22 @@ zs.clearTraversalCache = function() { this[t]._private.traversalCache = null; }; Kt(zs, { - roots: uX({ + roots: hX({ noIncomingEdges: !0 }), - leaves: uX({ + leaves: hX({ noOutgoingEdges: !0 }), - outgoers: $o(hX({ + outgoers: $o(fX({ outgoing: !0 }), "outgoers"), - successors: fX({ + successors: dX({ outgoing: !0 }), - incomers: $o(hX({ + incomers: $o(fX({ incoming: !0 }), "incomers"), - predecessors: fX({ + predecessors: dX({ incoming: !0 }) }); @@ -100966,14 +100988,14 @@ Kt(zs, { var r = this[0], n; return r && (n = r._private.target || r.cy().collection()), n && e ? n.filter(e) : n; }, "target"), - sources: dX({ + sources: pX({ attr: "source" }), - targets: dX({ + targets: pX({ attr: "target" }) }); -function dX(t) { +function pX(t) { return function(r) { for (var n = [], i = 0; i < this.length; i++) { var s = this[i], a = s._private[t.attr]; @@ -100983,12 +101005,12 @@ function dX(t) { }; } Kt(zs, { - edgesWith: $o(pX(), "edgesWith"), - edgesTo: $o(pX({ + edgesWith: $o(gX(), "edgesWith"), + edgesTo: $o(gX({ thisIsSrc: !0 }), "edgesTo") }); -function pX(t) { +function gX(t) { return function(r) { var n = [], i = this._private.cy, s = t || {}; qt(r) && (r = i.$(r)); @@ -101019,12 +101041,12 @@ Kt(zs, { } return this.spawn(e, !0).filter(t); }, "connectedNodes"), - parallelEdges: $o(gX(), "parallelEdges"), - codirectedEdges: $o(gX({ + parallelEdges: $o(mX(), "parallelEdges"), + codirectedEdges: $o(mX({ codirected: !0 }), "codirectedEdges") }); -function gX(t) { +function mX(t) { var e = { codirected: !1 }; @@ -101089,10 +101111,10 @@ var ps = function(e, r) { f.data == null && (f.data = {}); var d = f.data; if (d.id == null) - d.id = H1e(); + d.id = X1e(); else if (e.hasElementWithId(d.id) || l.has(d.id)) continue; - var p = new PC(e, f, !1); + var p = new $C(e, f, !1); o.push(p), l.add(d.id); } r = o; @@ -101127,7 +101149,7 @@ var ps = function(e, r) { } } }, n && (this._private.map = s), a && !i && this.restore(); -}, dn = PC.prototype = ps.prototype = Object.create(Array.prototype); +}, dn = $C.prototype = ps.prototype = Object.create(Array.prototype); dn.instanceString = function() { return "collection"; }; @@ -101147,7 +101169,7 @@ dn.element = function() { return this[0]; }; dn.collection = function() { - return N1e(this) ? this : new ps(this._private.cy, [this]); + return I1e(this) ? this : new ps(this._private.cy, [this]); }; dn.unique = function() { return new ps(this._private.cy, this, !0); @@ -101228,7 +101250,7 @@ dn.jsons = function() { }; dn.clone = function() { for (var t = this.cy(), e = [], r = 0; r < this.length; r++) { - var n = this[r], i = n.json(), s = new PC(t, i, !1); + var n = this[r], i = n.json(), s = new $C(t, i, !1); e.push(s); } return new ps(t, e); @@ -101247,7 +101269,7 @@ dn.restore = function() { var p = o[f], g = p._private, m = g.data; if (p.clearTraversalCache(), !(!e && !g.removed)) { if (m.id === void 0) - m.id = H1e(); + m.id = X1e(); else if (bt(m.id)) m.id = "" + m.id; else if (Rf(m.id) || !qt(m.id)) { @@ -101265,15 +101287,15 @@ dn.restore = function() { } if (p.isEdge()) { for (var b = p, w = ["source", "target"], O = w.length, S = !1, C = 0; C < O; C++) { - var T = w[C], L = m[T]; - bt(L) && (L = m[T] = "" + m[T]), L == null || L === "" ? (Yn("Can not create edge `" + v + "` with unspecified " + T), S = !0) : n.hasElementWithId(L) || (Yn("Can not create edge `" + v + "` with nonexistant " + T + " `" + L + "`"), S = !0); + var T = w[C], A = m[T]; + bt(A) && (A = m[T] = "" + m[T]), A == null || A === "" ? (Yn("Can not create edge `" + v + "` with unspecified " + T), S = !0) : n.hasElementWithId(A) || (Yn("Can not create edge `" + v + "` with nonexistant " + T + " `" + A + "`"), S = !0); } if (S) { d(); continue; } - var E = n.getElementById(m.source), A = n.getElementById(m.target); - E.same(A) ? E._private.edges.push(b) : (E._private.edges.push(b), A._private.edges.push(b)), b._private.source = E, b._private.target = A; + var E = n.getElementById(m.source), L = n.getElementById(m.target); + E.same(L) ? E._private.edges.push(b) : (E._private.edges.push(b), L._private.edges.push(b)), b._private.source = E, b._private.target = L; } g.map = new Cc(), g.map.set(v, { ele: p, @@ -101368,11 +101390,11 @@ dn.remove = function() { } e && (y._private.removed = !0); } - var L = s._private.elements; + var A = s._private.elements; s._private.hasCompoundNodes = !1; - for (var E = 0; E < L.length; E++) { - var A = L[E]; - if (A.isParent()) { + for (var E = 0; E < A.length; E++) { + var L = A[E]; + if (L.isParent()) { s._private.hasCompoundNodes = !0; break; } @@ -101416,10 +101438,10 @@ dn.move = function(t) { } return this; }; -[ome, ynr, a5, rf, A1, Nnr, UC, Znr, Mme, Dme, tir, hS, o5, ds, nf, zs].forEach(function(t) { +[lme, bnr, a5, rf, A1, Inr, qC, jnr, Dme, Nme, rir, fS, o5, ds, nf, zs].forEach(function(t) { Kt(dn, t); }); -var lir = { +var cir = { add: function(e) { var r, n = this; if (lo(e)) { @@ -101450,7 +101472,7 @@ var lir = { r = new ps(n, h); } else { var w = e; - r = new PC(n, w).collection(); + r = new $C(n, w).collection(); } return r; }, @@ -101465,7 +101487,7 @@ var lir = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function cir(t, e, r, n) { +function uir(t, e, r, n) { var i = 4, s = 1e-3, a = 1e-7, o = 10, l = 11, u = 1 / (l - 1), h = typeof Float32Array < "u"; if (arguments.length !== 4) return !1; @@ -101474,57 +101496,57 @@ function cir(t, e, r, n) { return !1; t = Math.min(t, 1), r = Math.min(r, 1), t = Math.max(t, 0), r = Math.max(r, 0); var d = h ? new Float32Array(l) : new Array(l); - function p(A, _) { - return 1 - 3 * _ + 3 * A; + function p(L, _) { + return 1 - 3 * _ + 3 * L; } - function g(A, _) { - return 3 * _ - 6 * A; + function g(L, _) { + return 3 * _ - 6 * L; } - function m(A) { - return 3 * A; + function m(L) { + return 3 * L; } - function v(A, _, R) { - return ((p(_, R) * A + g(_, R)) * A + m(_)) * A; + function v(L, _, R) { + return ((p(_, R) * L + g(_, R)) * L + m(_)) * L; } - function y(A, _, R) { - return 3 * p(_, R) * A * A + 2 * g(_, R) * A + m(_); + function y(L, _, R) { + return 3 * p(_, R) * L * L + 2 * g(_, R) * L + m(_); } - function b(A, _) { + function b(L, _) { for (var R = 0; R < i; ++R) { var $ = y(_, t, r); if ($ === 0) return _; - var k = v(_, t, r) - A; + var k = v(_, t, r) - L; _ -= k / $; } return _; } function w() { - for (var A = 0; A < l; ++A) - d[A] = v(A * u, t, r); + for (var L = 0; L < l; ++L) + d[L] = v(L * u, t, r); } - function O(A, _, R) { + function O(L, _, R) { var $, k, N = 0; do - k = _ + (R - _) / 2, $ = v(k, t, r) - A, $ > 0 ? R = k : _ = k; + k = _ + (R - _) / 2, $ = v(k, t, r) - L, $ > 0 ? R = k : _ = k; while (Math.abs($) > a && ++N < o); return k; } - function S(A) { - for (var _ = 0, R = 1, $ = l - 1; R !== $ && d[R] <= A; ++R) + function S(L) { + for (var _ = 0, R = 1, $ = l - 1; R !== $ && d[R] <= L; ++R) _ += u; --R; - var k = (A - d[R]) / (d[R + 1] - d[R]), N = _ + k * u, M = y(N, t, r); - return M >= s ? b(A, N) : M === 0 ? N : O(A, _, _ + u); + var k = (L - d[R]) / (d[R + 1] - d[R]), N = _ + k * u, M = y(N, t, r); + return M >= s ? b(L, N) : M === 0 ? N : O(L, _, _ + u); } var C = !1; function T() { C = !0, (t !== e || r !== n) && w(); } - var L = function(_) { + var A = function(_) { return C || T(), t === e && r === n ? _ : _ === 0 ? 0 : _ === 1 ? 1 : v(S(_), e, n); }; - L.getControlPoints = function() { + A.getControlPoints = function() { return [{ x: t, y: e @@ -101534,12 +101556,12 @@ function cir(t, e, r, n) { }]; }; var E = "generateBezier(" + [t, e, r, n] + ")"; - return L.toString = function() { + return A.toString = function() { return E; - }, L; + }, A; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var uir = function() { +var hir = function() { function t(n) { return -n.tension * n.x - n.friction * n.v; } @@ -101576,7 +101598,7 @@ var uir = function() { } : u; }; }(), on = function(e, r, n, i) { - var s = cir(e, r, n, i); + var s = uir(e, r, n, i); return function(a, o, l) { return a + (o - a) * s(l); }; @@ -101612,33 +101634,33 @@ var uir = function() { spring: function(e, r, n) { if (n === 0) return l5.linear; - var i = uir(e, r, n); + var i = hir(e, r, n); return function(s, a, o) { return s + (a - s) * i(o); }; }, "cubic-bezier": on }; -function mX(t, e, r, n, i) { +function vX(t, e, r, n, i) { if (n === 1 || e === r) return r; var s = i(e, r, n); return t == null || ((t.roundValue || t.color) && (s = Math.round(s)), t.min !== void 0 && (s = Math.max(s, t.min)), t.max !== void 0 && (s = Math.min(s, t.max))), s; } -function vX(t, e) { +function yX(t, e) { return t.pfValue != null || t.value != null ? t.pfValue != null && (e == null || e.type.units !== "%") ? t.pfValue : t.value : t; } function mp(t, e, r, n, i) { var s = i != null ? i.type : null; r < 0 ? r = 0 : r > 1 && (r = 1); - var a = vX(t, i), o = vX(e, i); + var a = yX(t, i), o = yX(e, i); if (bt(a) && bt(o)) - return mX(s, a, o, r, n); + return vX(s, a, o, r, n); if (nn(a) && nn(o)) { for (var l = [], u = 0; u < o.length; u++) { var h = a[u], f = o[u]; if (h != null && f != null) { - var d = mX(s, h, f, r, n); + var d = vX(s, h, f, r, n); l.push(d); } else l.push(f); @@ -101646,7 +101668,7 @@ function mp(t, e, r, n, i) { return l; } } -function hir(t, e, r, n) { +function fir(t, e, r, n) { var i = !n, s = t._private, a = e._private, o = a.easing, l = a.startTime, u = n ? t : t.cy(), h = u.style(); if (!a.easingImpl) if (o == null) @@ -101672,8 +101694,8 @@ function hir(t, e, r, n) { } var O = a.startPan, S = a.pan, C = s.pan, T = S != null && n; T && (lv(O.x, S.x) && (C.x = mp(O.x, S.x, v, m)), lv(O.y, S.y) && (C.y = mp(O.y, S.y, v, m)), t.emit("pan")); - var L = a.startZoom, E = a.zoom, A = E != null && n; - A && (lv(L, E) && (s.zoom = H2(s.minZoom, mp(L, E, v, m), s.maxZoom)), t.emit("zoom")), (T || A) && t.emit("viewport"); + var A = a.startZoom, E = a.zoom, L = E != null && n; + L && (lv(A, E) && (s.zoom = H2(s.minZoom, mp(A, E, v, m), s.maxZoom)), t.emit("zoom")), (T || L) && t.emit("viewport"); var _ = a.style; if (_ && _.length > 0 && i) { for (var R = 0; R < _.length; R++) { @@ -101688,11 +101710,11 @@ function hir(t, e, r, n) { function lv(t, e) { return t == null || e == null ? !1 : bt(t) && bt(e) ? !0 : !!(t && e); } -function fir(t, e, r, n) { +function dir(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } -function yX(t, e) { +function bX(t, e) { var r = e._private.aniEles, n = []; function i(h, f) { var d = h._private, p = d.animation.current, g = d.animation.queue, m = !1; @@ -101702,8 +101724,8 @@ function yX(t, e) { } for (var y = function(C) { for (var T = C.length - 1; T >= 0; T--) { - var L = C[T]; - L(); + var A = C[T]; + A(); } C.splice(0, C.length); }, b = p.length - 1; b >= 0; b--) { @@ -101712,7 +101734,7 @@ function yX(t, e) { p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.frames); continue; } - !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || fir(h, w, t), hir(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); + !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || dir(h, w, t), fir(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); } return !f && p.length === 0 && g.length === 0 && n.push(h), m; } @@ -101723,7 +101745,7 @@ function yX(t, e) { var u = i(e, !0); (s || u) && (r.length > 0 ? e.notify("draw", r) : e.notify("draw")), r.unmerge(n), e.emit("step"); } -var dir = { +var pir = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -101743,16 +101765,16 @@ var dir = { if (e._private.animationsRunning = !0, !e.styleEnabled()) return; function r() { - !e._private.animationsRunning || aS(function(s) { - yX(s, e), r(); + !e._private.animationsRunning || oS(function(s) { + bX(s, e), r(); }); } var n = e.renderer(); n && n.beforeRender ? n.beforeRender(function(s, a) { - yX(a, e); + bX(a, e); }, n.beforeRenderPriorities.animations) : r(); } -}, pir = { +}, gir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -101768,10 +101790,10 @@ var dir = { } }, qO = function(e) { return qt(e) ? new Df(e) : e; -}, Pme = { +}, $me = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new qC(pir, this)), this; + return e.emitter || (e.emitter = new QC(gir, this)), this; }, emitter: function() { return this._private.emitter; @@ -101798,8 +101820,8 @@ var dir = { return this.emit(e), this.notify(e, r), this; } }; -Vr.eventAliasesOn(Pme); -var rR = { +Vr.eventAliasesOn($me); +var nR = { png: function(e) { var r = this._private.renderer; return e = e || {}, r.png(e); @@ -101809,7 +101831,7 @@ var rR = { return e = e || {}, e.bg = e.bg || "#fff", r.jpg(e); } }; -rR.jpeg = rR.jpg; +nR.jpeg = nR.jpg; var c5 = { layout: function(e) { var r = this; @@ -101836,7 +101858,7 @@ var c5 = { } }; c5.createLayout = c5.makeLayout = c5.layout; -var gir = { +var mir = { notify: function(e, r) { var n = this._private; if (this.batching()) { @@ -101890,7 +101912,7 @@ var gir = { } }); } -}, mir = ws({ +}, vir = ws({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -101901,7 +101923,7 @@ var gir = { wheelSensitivity: 1, debug: !1, showFps: !1 -}), nR = { +}), iR = { renderTo: function(e, r, n, i) { var s = this._private.renderer; return s.renderTo(e, r, n, i), this; @@ -101922,7 +101944,7 @@ var gir = { return; } e.wheelSensitivity !== void 0 && Qr("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine."); - var i = mir(e); + var i = vir(e); i.cy = r, r._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -101944,7 +101966,7 @@ var gir = { return this.off("render", e); } }; -nR.invalidateDimensions = nR.resize; +iR.invalidateDimensions = iR.resize; var u5 = { collection: function(e, r) { return qt(e) ? this.$(e) : lo(e) ? e.collection() : nn(e) ? (r || (r = {}), new ps(this, e, r.unique, r.removed)) : new ps(this); @@ -101970,7 +101992,7 @@ var u5 = { } }; u5.elements = u5.filter = u5.$; -var Gs = {}, dy = "t", vir = "f"; +var Gs = {}, dy = "t", yir = "f"; Gs.apply = function(t) { for (var e = this, r = e._private, n = r.cy, i = n.collection(), s = 0; s < t.length; s++) { var a = t[s], o = e.getContextMeta(a); @@ -102007,7 +102029,7 @@ Gs.getPropertiesDiff = function(t, e) { Gs.getContextMeta = function(t) { for (var e = this, r = "", n, i = t._private.styleCxtKey || "", s = 0; s < e.length; s++) { var a = e[s], o = a.selector && a.selector.matches(t); - o ? r += dy : r += vir; + o ? r += dy : r += yir; } return n = e.getPropertiesDiff(i, r), t._private.styleCxtKey = r, { key: r, @@ -102093,9 +102115,9 @@ Gs.updateStyleHints = function(t) { if (w != null) { var O = this.properties[b], S = O.type, C = O.groupKey, T = void 0; O.hashOverride != null ? T = O.hashOverride(t, w) : w.pfValue != null && (T = w.pfValue); - var L = O.enums == null ? w.value : null, E = T != null, A = L != null, _ = E || A, R = w.units; + var A = O.enums == null ? w.value : null, E = T != null, L = A != null, _ = E || L, R = w.units; if (S.number && _ && !S.multiple) { - var $ = E ? T : L; + var $ = E ? T : A; p(v($), C), !E && R != null && g(R, C); } else g(w.strValue, C); @@ -102105,7 +102127,7 @@ Gs.updateStyleHints = function(t) { var M = i[N], I = e.styleKeys[M]; k[0] = Y2(I[0], k[0]), k[1] = W2(I[1], k[1]); } - e.styleKey = OJt(k[0], k[1]); + e.styleKey = kJt(k[0], k[1]); var D = e.styleKeys; e.labelDimsKey = bh(D.labelDimensions); var P = s(t, ["label"], D.labelDimensions); @@ -102158,7 +102180,7 @@ Gs.applyParsedProperty = function(t, e) { } else return Qr("Do not use continuous mappers without specifying numeric data (i.e. `" + n.field + ": " + y + "` for `" + t.id() + "` is non-numeric)"), !1; if (O < 0 ? O = 0 : O > 1 && (O = 1), o.color) { - var C = n.valueMin[0], T = n.valueMax[0], L = n.valueMin[1], E = n.valueMax[1], A = n.valueMin[2], _ = n.valueMax[2], R = n.valueMin[3] == null ? 1 : n.valueMin[3], $ = n.valueMax[3] == null ? 1 : n.valueMax[3], k = [Math.round(C + (T - C) * O), Math.round(L + (E - L) * O), Math.round(A + (_ - A) * O), Math.round(R + ($ - R) * O)]; + var C = n.valueMin[0], T = n.valueMax[0], A = n.valueMin[1], E = n.valueMax[1], L = n.valueMin[2], _ = n.valueMax[2], R = n.valueMin[3] == null ? 1 : n.valueMin[3], $ = n.valueMax[3] == null ? 1 : n.valueMax[3], k = [Math.round(C + (T - C) * O), Math.round(A + (E - A) * O), Math.round(L + (_ - L) * O), Math.round(R + ($ - R) * O)]; s = { bypass: n.bypass, name: n.name, @@ -102287,7 +102309,7 @@ jx.applyBypass = function(t, e, r, n) { n = r; for (var p = Object.keys(d), g = 0; g < p.length; g++) { var m = p[g], v = d[m]; - if (v === void 0 && (v = d[DC(m)]), v !== void 0) { + if (v === void 0 && (v = d[NC(m)]), v !== void 0) { var y = this.parse(m, v, !0); y && s.push(y); } @@ -102298,14 +102320,14 @@ jx.applyBypass = function(t, e, r, n) { return !1; for (var b = !1, w = 0; w < t.length; w++) { for (var O = t[w], S = {}, C = void 0, T = 0; T < s.length; T++) { - var L = s[T]; + var A = s[T]; if (n) { - var E = O.pstyle(L.name); - C = S[L.name] = { + var E = O.pstyle(A.name); + C = S[A.name] = { prev: E }; } - b = this.applyParsedProperty(O, Tc(L)) || b, n && (C.next = O.pstyle(L.name)); + b = this.applyParsedProperty(O, Tc(A)) || b, n && (C.next = O.pstyle(A.name)); } b && this.updateStyleHints(O), n && this.updateTransitions(O, S, a); } @@ -102354,7 +102376,7 @@ zc.getRawStyle = function(t, e) { if (t = t[0], t) { for (var n = {}, i = 0; i < r.properties.length; i++) { var s = r.properties[i], a = r.getStylePropertyValue(t, s.name, e); - a != null && (n[s.name] = a, n[DC(s.name)] = a); + a != null && (n[s.name] = a, n[NC(s.name)] = a); } return n; } @@ -102418,8 +102440,8 @@ zc.getNonDefaultPropertiesHash = function(t, e, r) { return n; }; zc.getPropertiesHash = zc.getNonDefaultPropertiesHash; -var WC = {}; -WC.appendFromJson = function(t) { +var GC = {}; +GC.appendFromJson = function(t) { for (var e = this, r = 0; r < t.length; r++) { var n = t[r], i = n.selector, s = n.style || n.css, a = Object.keys(s); e.selector(i); @@ -102430,11 +102452,11 @@ WC.appendFromJson = function(t) { } return e; }; -WC.fromJson = function(t) { +GC.fromJson = function(t) { var e = this; return e.resetToDefault(), e.appendFromJson(t), e; }; -WC.json = function() { +GC.json = function() { for (var t = [], e = this.defaultLength; e < this.length; e++) { for (var r = this[e], n = r.selector, i = r.properties, s = {}, a = 0; a < i.length; a++) { var o = i[a]; @@ -102521,7 +102543,7 @@ QP.fromString = function(t) { }; var ns = {}; (function() { - var t = _i, e = TKt, r = EKt, n = _Kt, i = AKt, s = function(U) { + var t = Ai, e = CKt, r = _Kt, n = AKt, i = LKt, s = function(U) { return "^" + U + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, a = function(U) { var Z = t + "|\\w+|" + e + "|" + r + "|" + n + "|" + i; @@ -103234,7 +103256,7 @@ var ns = {}; name: "outline-offset", type: u.size, triggersBounds: l.any - }], L = [{ + }], A = [{ name: "background-image", type: u.urls }, { @@ -103314,7 +103336,7 @@ var ns = {}; name: "min-height-bias-bottom", type: u.sizeMaybePercent, triggersBounds: l.any - }], A = [{ + }], L = [{ name: "line-style", type: u.lineStyle }, { @@ -103514,7 +103536,7 @@ var ns = {}; }); }); }, {}); - var I = ns.properties = [].concat(m, w, v, y, b, _, g, p, h, f, d, S, C, T, L, $, E, A, N, R), D = ns.propertyGroups = { + var I = ns.properties = [].concat(m, w, v, y, b, _, g, p, h, f, d, S, C, T, A, $, E, L, N, R), D = ns.propertyGroups = { behavior: m, transition: w, visibility: v, @@ -103529,10 +103551,10 @@ var ns = {}; nodeBody: S, nodeBorder: C, nodeOutline: T, - backgroundImage: L, + backgroundImage: A, pie: $, compound: E, - edgeLine: A, + edgeLine: L, edgeArrow: N, core: R }, P = ns.propertyGroupNames = {}, F = ns.propertyGroupKeys = Object.keys(D); @@ -103836,19 +103858,19 @@ ns.addDefaultStylesheet = function() { "overlay-opacity": 0.25 }), this.defaultLength = this.length; }; -var GC = {}; -GC.parse = function(t, e, r, n) { +var HC = {}; +HC.parse = function(t, e, r, n) { var i = this; if (Pn(e)) return i.parseImplWarn(t, e, r, n); - var s = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, a = r ? "t" : "f", o = "" + e, l = Y1e(t, o, a, s), u = i.propCache = i.propCache || [], h; + var s = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, a = r ? "t" : "f", o = "" + e, l = W1e(t, o, a, s), u = i.propCache = i.propCache || [], h; return (h = u[l]) || (h = u[l] = i.parseImplWarn(t, e, r, n)), (r || n === "mapping") && (h = Tc(h), h && (h.value = Tc(h.value))), h; }; -GC.parseImplWarn = function(t, e, r, n) { +HC.parseImplWarn = function(t, e, r, n) { var i = this.parseImpl(t, e, r, n); return !i && e != null && Qr("The style property `".concat(t, ": ").concat(e, "` is invalid")), i && (i.name === "width" || i.name === "height") && e === "label" && Qr("The style value of `label` is deprecated for `" + i.name + "`"), i; }; -GC.parseImpl = function(t, e, r, n) { +HC.parseImpl = function(t, e, r, n) { var i = this; t = AP(t); var s = i.properties[t], a = e, o = i.types; @@ -103926,11 +103948,11 @@ GC.parseImpl = function(t, e, r, n) { var w; if (l ? w = e.split(/\s+/) : nn(e) ? w = e : w = [e], u.evenMultiple && w.length % 2 !== 0) return null; - for (var O = [], S = [], C = [], T = "", L = !1, E = 0; E < w.length; E++) { - var A = i.parse(t, w[E], r, "multiple"); - L = L || qt(A.value), O.push(A.value), C.push(A.pfValue != null ? A.pfValue : A.value), S.push(A.units), T += (E > 0 ? " " : "") + A.strValue; + for (var O = [], S = [], C = [], T = "", A = !1, E = 0; E < w.length; E++) { + var L = i.parse(t, w[E], r, "multiple"); + A = A || qt(L.value), O.push(L.value), C.push(L.pfValue != null ? L.pfValue : L.value), S.push(L.units), T += (E > 0 ? " " : "") + L.strValue; } - return u.validate && !u.validate(O, S) ? null : u.singleEnum && L ? O.length === 1 && qt(O[0]) ? { + return u.validate && !u.validate(O, S) ? null : u.singleEnum && A ? O.length === 1 && qt(O[0]) ? { name: t, value: O[0], strValue: O[0], @@ -103963,7 +103985,7 @@ GC.parseImpl = function(t, e, r, n) { if (l) { var k = "px|em" + (u.allowPercent ? "|\\%" : ""); R && (k = R); - var N = e.match("^(" + _i + ")(" + k + ")?$"); + var N = e.match("^(" + Ai + ")(" + k + ")?$"); N && (e = N[1], R = N[2] || $); } else (!R || u.implicitUnits) && (R = $); @@ -103971,7 +103993,7 @@ GC.parseImpl = function(t, e, r, n) { return null; if (isNaN(e) && u.enums !== void 0) return e = a, _(); - if (u.integer && !yKt(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) + if (u.integer && !bKt(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) return null; var M = { name: t, @@ -103980,7 +104002,7 @@ GC.parseImpl = function(t, e, r, n) { units: R, bypass: r }; - return u.unitless || R !== "px" && R !== "em" ? M.pfValue = e : M.pfValue = R === "px" || !R ? e : this.getEmSizeInPixels() * e, (R === "ms" || R === "s") && (M.pfValue = R === "ms" ? e : 1e3 * e), (R === "deg" || R === "rad") && (M.pfValue = R === "rad" ? e : KJt(e)), R === "%" && (M.pfValue = e / 100), M; + return u.unitless || R !== "px" && R !== "em" ? M.pfValue = e : M.pfValue = R === "px" || !R ? e : this.getEmSizeInPixels() * e, (R === "ms" || R === "s") && (M.pfValue = R === "ms" ? e : 1e3 * e), (R === "deg" || R === "rad") && (M.pfValue = R === "rad" ? e : JJt(e)), R === "%" && (M.pfValue = e / 100), M; } else if (u.propList) { var I = [], D = "" + e; if (D !== "none") { @@ -103998,7 +104020,7 @@ GC.parseImpl = function(t, e, r, n) { bypass: r }; } else if (u.color) { - var V = IKt(e); + var V = PKt(e); return V ? { name: t, value: V, @@ -104074,7 +104096,7 @@ Vs.css = function() { if (e.length === 1) for (var r = e[0], n = 0; n < t.properties.length; n++) { var i = t.properties[n], s = r[i.name]; - s === void 0 && (s = r[DC(i.name)]), s !== void 0 && this.cssRule(i.name, s); + s === void 0 && (s = r[NC(i.name)]), s !== void 0 && this.cssRule(i.name, s); } else e.length === 2 && this.cssRule(e[0], e[1]); @@ -104092,7 +104114,7 @@ Vs.cssRule = function(t, e) { return this; }; Vs.append = function(t) { - return I1e(t) ? t.appendToStyle(this) : nn(t) ? this.appendFromJson(t) : qt(t) && this.appendFromString(t), this; + return P1e(t) ? t.appendToStyle(this) : nn(t) ? this.appendFromJson(t) : qt(t) && this.appendFromString(t), this; }; Fs.fromJson = function(t, e) { var r = new Fs(t); @@ -104101,7 +104123,7 @@ Fs.fromJson = function(t, e) { Fs.fromString = function(t, e) { return new Fs(t).fromString(e); }; -[Gs, jx, qP, zc, WC, QP, ns, GC].forEach(function(t) { +[Gs, jx, qP, zc, GC, QP, ns, HC].forEach(function(t) { Kt(Vs, t); }); Fs.types = Vs.types; @@ -104109,7 +104131,7 @@ Fs.properties = Vs.properties; Fs.propertyGroups = Vs.propertyGroups; Fs.propertyGroupNames = Vs.propertyGroupNames; Fs.propertyGroupKeys = Vs.propertyGroupKeys; -var yir = { +var bir = { style: function(e) { if (e) { var r = this.setStyle(e); @@ -104119,12 +104141,12 @@ var yir = { }, setStyle: function(e) { var r = this._private; - return I1e(e) ? r.style = e.generateStyle(this) : nn(e) ? r.style = Fs.fromJson(this, e) : qt(e) ? r.style = Fs.fromString(this, e) : r.style = Fs(this), r.style; + return P1e(e) ? r.style = e.generateStyle(this) : nn(e) ? r.style = Fs.fromJson(this, e) : qt(e) ? r.style = Fs.fromString(this, e) : r.style = Fs(this), r.style; }, updateStyle: function() { this.mutableElements().updateStyle(); } -}, bir = "single", R0 = { +}, xir = "single", R0 = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -104148,7 +104170,7 @@ var yir = { }, selectionType: function(e) { var r = this._private; - if (r.selectionType == null && (r.selectionType = bir), e !== void 0) + if (r.selectionType == null && (r.selectionType = xir), e !== void 0) (e === "additive" || e === "single") && (r.selectionType = e); else return r.selectionType; @@ -104239,7 +104261,7 @@ var yir = { if (qt(e)) { var i = e; e = this.$(i); - } else if (wKt(e)) { + } else if (OKt(e)) { var s = e; n = { x1: s.x1, @@ -104286,7 +104308,7 @@ var yir = { }, getZoomedViewport: function(e) { var r = this._private, n = r.pan, i = r.zoom, s, a, o = !1; - if (r.zoomingEnabled || (o = !0), bt(e) ? a = e : Ar(e) && (a = e.level, e.position != null ? s = $C(e.position, i, n) : e.renderedPosition != null && (s = e.renderedPosition), s != null && !r.panningEnabled && (o = !0)), a = a > r.maxZoom ? r.maxZoom : a, a = a < r.minZoom ? r.minZoom : a, o || !bt(a) || a === i || s != null && (!bt(s.x) || !bt(s.y))) + if (r.zoomingEnabled || (o = !0), bt(e) ? a = e : Ar(e) && (a = e.level, e.position != null ? s = BC(e.position, i, n) : e.renderedPosition != null && (s = e.renderedPosition), s != null && !r.panningEnabled && (o = !0)), a = a > r.maxZoom ? r.maxZoom : a, a = a < r.minZoom ? r.minZoom : a, o || !bt(a) || a === i || s != null && (!bt(s.x) || !bt(s.y))) return null; if (s != null) { var l = n, u = i, h = a, f = { @@ -104459,7 +104481,7 @@ var eb = function(e) { var r = this; e = Kt({}, e); var n = e.container; - n && !sS(n) && sS(n[0]) && (n = n[0]); + n && !aS(n) && aS(n[0]) && (n = n[0]); var i = n ? n._cyreg : null; i = i || {}, i && i.cy && (i.cy.destroy(), i = {}); var s = i.readies = i.readies || []; @@ -104513,7 +104535,7 @@ var eb = function(e) { max: o.maxZoom }); var h = function(g, m) { - var v = g.some(OKt); + var v = g.some(kKt); if (v) return mm.all(g).then(m); m(g); @@ -104543,8 +104565,8 @@ var eb = function(e) { i && (i.readies = []), r.emit("ready"); }, o.done); }); -}, fS = eb.prototype; -Kt(fS, { +}, dS = eb.prototype; +Kt(dS, { instanceString: function() { return "core"; }, @@ -104596,7 +104618,7 @@ Kt(fS, { mount: function(e) { if (e != null) { var r = this, n = r._private, i = n.options; - return !sS(e) && sS(e[0]) && (e = e[0]), r.stopAnimationLoop(), r.destroyRenderer(), n.container = e, n.styleEnabled = !0, r.invalidateSize(), r.initRenderer(Kt({}, i, i.renderer, { + return !aS(e) && aS(e[0]) && (e = e[0]), r.stopAnimationLoop(), r.destroyRenderer(), n.container = e, n.styleEnabled = !0, r.invalidateSize(), r.initRenderer(Kt({}, i, i.renderer, { name: i.renderer.name === "null" ? "canvas" : i.renderer.name })), r.startAnimationLoop(), r.style(i.style), r.emit("mount"), r; } @@ -104617,14 +104639,14 @@ Kt(fS, { if (Ar(e)) { if (r.startBatch(), e.elements) { var a = {}, o = function(O, S) { - for (var C = [], T = [], L = 0; L < O.length; L++) { - var E = O[L]; + for (var C = [], T = [], A = 0; A < O.length; A++) { + var E = O[A]; if (!E.data.id) { Qr("cy.json() cannot handle elements without an ID attribute"); continue; } - var A = "" + E.data.id, _ = r.getElementById(A); - a[A] = !0, _.length !== 0 ? T.push({ + var L = "" + E.data.id, _ = r.getElementById(L); + a[L] = !0, _.length !== 0 ? T.push({ ele: _, json: E }) : (S && (E.group = S), C.push(E)); @@ -104674,11 +104696,11 @@ Kt(fS, { } } }); -fS.$id = fS.getElementById; -[lir, dir, Pme, rR, c5, gir, nR, u5, yir, R0, J2].forEach(function(t) { - Kt(fS, t); +dS.$id = dS.getElementById; +[cir, pir, $me, nR, c5, mir, iR, u5, bir, R0, J2].forEach(function(t) { + Kt(dS, t); }); -var xir = { +var wir = { fit: !0, directed: !1, padding: 30, @@ -104701,21 +104723,21 @@ var xir = { transform: function(e, r) { return r; } -}, wir = { +}, Oir = { maximal: !1, acyclic: !1 }, vp = function(e) { return e.scratch("breadthfirst"); -}, bX = function(e, r) { +}, xX = function(e, r) { return e.scratch("breadthfirst", r); }; -function $me(t) { - this.options = Kt({}, xir, wir, t); +function Bme(t) { + this.options = Kt({}, wir, Oir, t); } -$me.prototype.run = function() { +Bme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(se) { return !se.isParent(); - }), s = n, a = e.directed, o = e.acyclic || e.maximal || e.maximalAdjustments > 0, l = Fa(e.boundingBox ? e.boundingBox : { + }), s = n, a = e.directed, o = e.acyclic || e.maximal || e.maximalAdjustments > 0, l = za(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, w: r.width(), @@ -104747,7 +104769,7 @@ $me.prototype.run = function() { var y = [], b = {}, w = function(K, _e) { y[_e] == null && (y[_e] = []); var ce = y[_e].length; - y[_e].push(K), bX(K, { + y[_e].push(K), xX(K, { index: ce, depth: _e }); @@ -104767,22 +104789,22 @@ $me.prototype.run = function() { var T = i[C]; b[T.id()] || S.push(T); } - var L = function(K) { + var A = function(K) { for (var _e = y[K], ce = 0; ce < _e.length; ce++) { var Ee = _e[ce]; if (Ee == null) { _e.splice(ce, 1), ce--; continue; } - bX(Ee, { + xX(Ee, { depth: K, index: ce }); } }, E = function() { for (var K = 0; K < y.length; K++) - L(K); - }, A = function(K, _e) { + A(K); + }, L = function(K, _e) { for (var ce = vp(K), Ee = K.incomers().filter(function(H) { return H.isNode() && n.has(H); }), Ae = -1, Ue = K.id(), Ge = 0; Ge < Ee.length; Ge++) { @@ -104806,7 +104828,7 @@ $me.prototype.run = function() { for (i.forEach(function(se) { return _.push(se); }); _.length > 0; ) { - var N = k(), M = A(N, R); + var N = k(), M = L(N, R); if (M) N.outgoers().filter(function(se) { return se.isNode() && n.has(se); @@ -104843,11 +104865,11 @@ $me.prototype.run = function() { return Ae = Math.max(1, Ae), Ee = Ee / Ae, Ae === 0 && (Ee = 0), Q[K.id()] = Ee, Ee; }, ee = function(K, _e) { var ce = W(K), Ee = W(_e), Ae = ce - Ee; - return Ae === 0 ? $1e(K.id(), _e.id()) : Ae; + return Ae === 0 ? B1e(K.id(), _e.id()) : Ae; }; e.depthSort !== void 0 && (ee = e.depthSort); for (var Y = 0; Y < y.length; Y++) - y[Y].sort(ee), L(Y); + y[Y].sort(ee), A(Y); for (var ne = [], ie = 0; ie < S.length; ie++) ne.push(S[ie]); y.unshift(ne), E(); @@ -104876,7 +104898,7 @@ $me.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, ae), this; }; -var Oir = { +var kir = { fit: !0, padding: 30, boundingBox: void 0, @@ -104900,13 +104922,13 @@ var Oir = { return r; } }; -function Bme(t) { - this.options = Kt({}, Oir, t); +function Fme(t) { + this.options = Kt({}, kir, t); } -Bme.prototype.run = function() { +Fme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, s = n.nodes().not(":parent"); e.sort && (s = s.sort(e.sort)); - for (var a = Fa(e.boundingBox ? e.boundingBox : { + for (var a = za(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, w: r.width(), @@ -104924,15 +104946,15 @@ Bme.prototype.run = function() { h = Math.max(w, h); } var O = function(C, T) { - var L = e.startAngle + T * u * (i ? 1 : -1), E = h * Math.cos(L), A = h * Math.sin(L), _ = { + var A = e.startAngle + T * u * (i ? 1 : -1), E = h * Math.cos(A), L = h * Math.sin(A), _ = { x: o.x + E, - y: o.y + A + y: o.y + L }; return _; }; return n.nodes().layoutPositions(this, e, O), this; }; -var kir = { +var Sir = { fit: !0, padding: 30, startAngle: 3 / 2 * Math.PI, @@ -104964,11 +104986,11 @@ var kir = { return r; } }; -function Fme(t) { - this.options = Kt({}, kir, t); +function zme(t) { + this.options = Kt({}, Sir, t); } -Fme.prototype.run = function() { - for (var t = this.options, e = t, r = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = t.cy, i = e.eles, s = i.nodes().not(":parent"), a = Fa(e.boundingBox ? e.boundingBox : { +zme.prototype.run = function() { + for (var t = this.options, e = t, r = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = t.cy, i = e.eles, s = i.nodes().not(":parent"), a = za(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, w: n.width(), @@ -105001,16 +105023,16 @@ Fme.prototype.run = function() { } var C = u + e.minNodeSpacing; if (!e.avoidOverlap) { - var T = y.length > 0 && y[0].length > 1, L = Math.min(a.w, a.h) / 2 - C, E = L / (y.length + T ? 1 : 0); + var T = y.length > 0 && y[0].length > 1, A = Math.min(a.w, a.h) / 2 - C, E = A / (y.length + T ? 1 : 0); C = Math.min(C, E); } - for (var A = 0, _ = 0; _ < y.length; _++) { + for (var L = 0, _ = 0; _ < y.length; _++) { var R = y[_], $ = e.sweep === void 0 ? 2 * Math.PI - 2 * Math.PI / R.length : e.sweep, k = R.dTheta = $ / Math.max(1, R.length - 1); if (R.length > 1 && e.avoidOverlap) { var N = Math.cos(k) - Math.cos(0), M = Math.sin(k) - Math.sin(0), I = Math.sqrt(C * C / (N * N + M * M)); - A = Math.max(I, A); + L = Math.max(I, L); } - R.r = A, A += C; + R.r = L, L += C; } if (e.equidistant) { for (var D = 0, P = 0, F = 0; F < y.length; F++) { @@ -105036,7 +105058,7 @@ Fme.prototype.run = function() { return ee[K]; }), this; }; -var aA, Sir = { +var oA, Tir = { ready: function() { }, stop: function() { @@ -105072,8 +105094,8 @@ var aA, Sir = { coolingFactor: 0.99, minTemp: 1 }; -function HC(t) { - this.options = Kt({}, Sir, t), this.options.layout = this; +function XC(t) { + this.options = Kt({}, Tir, t), this.options.layout = this; var e = this.options.eles.nodes(), r = this.options.eles.edges(), n = r.filter(function(i) { var s = i.source().data("id"), a = i.target().data("id"), o = e.some(function(u) { return u.data("id") === s; @@ -105084,18 +105106,18 @@ function HC(t) { }); this.options.eles = this.options.eles.not(n); } -HC.prototype.run = function() { +XC.prototype.run = function() { var t = this.options, e = t.cy, r = this; r.stopped = !1, (t.animate === !0 || t.animate === !1) && r.emit({ type: "layoutstart", layout: r - }), t.debug === !0 ? aA = !0 : aA = !1; - var n = Tir(e, r, t); - aA && _ir(n), t.randomize && Air(n); + }), t.debug === !0 ? oA = !0 : oA = !1; + var n = Cir(e, r, t); + oA && Air(n), t.randomize && Lir(n); var i = eh(), s = function() { - Lir(n, e, t), t.fit === !0 && e.fit(t.padding); + Rir(n, e, t), t.fit === !0 && e.fit(t.padding); }, a = function(d) { - return !(r.stopped || d >= t.numIter || (Rir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); + return !(r.stopped || d >= t.numIter || (Mir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); }, o = function() { if (t.animate === !0 || t.animate === !1) s(), r.one("layoutstop", t.stop), r.emit({ @@ -105103,7 +105125,7 @@ HC.prototype.run = function() { layout: r }); else { - var d = t.eles.nodes(), p = zme(n, t, d); + var d = t.eles.nodes(), p = Vme(n, t, d); d.layoutPositions(r, t, p); } }, l = 0, u = !0; @@ -105112,28 +105134,28 @@ HC.prototype.run = function() { for (var d = 0; u && d < t.refresh; ) u = a(l), l++, d++; if (!u) - wX(n, t), o(); + OX(n, t), o(); else { var p = eh(); - p - i >= t.animationThreshold && s(), aS(f); + p - i >= t.animationThreshold && s(), oS(f); } }; h(); } else { for (; u; ) u = a(l), l++; - wX(n, t), o(); + OX(n, t), o(); } return this; }; -HC.prototype.stop = function() { +XC.prototype.stop = function() { return this.stopped = !0, this.thread && this.thread.stop(), this.emit("layoutstop"), this; }; -HC.prototype.destroy = function() { +XC.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var Tir = function(e, r, n) { - for (var i = n.eles.edges(), s = n.eles.nodes(), a = Fa(n.boundingBox ? n.boundingBox : { +var Cir = function(e, r, n) { + for (var i = n.eles.edges(), s = n.eles.nodes(), a = za(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, w: e.width(), @@ -105165,24 +105187,24 @@ var Tir = function(e, r, n) { S != null ? o.layoutNodes[o.idToIndex[S]].children.push(g.id) : (y[++w] = g.id, O.push(g.id)); } for (o.graphSet.push(O); b <= w; ) { - var C = y[b++], T = o.idToIndex[C], p = o.layoutNodes[T], L = p.children; - if (L.length > 0) { - o.graphSet.push(L); - for (var h = 0; h < L.length; h++) - y[++w] = L[h]; + var C = y[b++], T = o.idToIndex[C], p = o.layoutNodes[T], A = p.children; + if (A.length > 0) { + o.graphSet.push(A); + for (var h = 0; h < A.length; h++) + y[++w] = A[h]; } } for (var h = 0; h < o.graphSet.length; h++) for (var E = o.graphSet[h], d = 0; d < E.length; d++) { - var A = o.idToIndex[E[d]]; - o.indexToGraph[A] = h; + var L = o.idToIndex[E[d]]; + o.indexToGraph[L] = h; } for (var h = 0; h < o.edgeSize; h++) { var _ = i[h], R = {}; R.id = _.data("id"), R.sourceId = _.data("source"), R.targetId = _.data("target"); var $ = Pn(n.idealEdgeLength) ? n.idealEdgeLength(_) : n.idealEdgeLength, k = Pn(n.edgeElasticity) ? n.edgeElasticity(_) : n.edgeElasticity, N = o.idToIndex[R.sourceId], M = o.idToIndex[R.targetId], I = o.indexToGraph[N], D = o.indexToGraph[M]; if (I != D) { - for (var P = Cir(R.sourceId, R.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) + for (var P = Eir(R.sourceId, R.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; for (v = o.layoutNodes[M]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; @@ -105191,10 +105213,10 @@ var Tir = function(e, r, n) { R.idealLength = $, R.elasticity = k, o.layoutEdges.push(R); } return o; -}, Cir = function(e, r, n) { - var i = Eir(e, r, 0, n); +}, Eir = function(e, r, n) { + var i = _ir(e, r, 0, n); return 2 > i.count ? 0 : i.graph; -}, Eir = function t(e, r, n, i) { +}, _ir = function t(e, r, n, i) { var s = i.graphSet[n]; if (-1 < s.indexOf(e) && -1 < s.indexOf(r)) return { @@ -105217,12 +105239,12 @@ var Tir = function(e, r, n) { count: a, graph: n }; -}, _ir, Air = function(e, r) { +}, Air, Lir = function(e, r) { for (var n = e.clientWidth, i = e.clientHeight, s = 0; s < e.nodeSize; s++) { var a = e.layoutNodes[s]; a.children.length === 0 && !a.isLocked && (a.positionX = Math.random() * n, a.positionY = Math.random() * i); } -}, zme = function(e, r, n) { +}, Vme = function(e, r, n) { var i = e.boundingBox, s = { x1: 1 / 0, x2: -1 / 0, @@ -105246,36 +105268,36 @@ var Tir = function(e, r, n) { y: l.positionY }; }; -}, Lir = function(e, r, n) { - var i = n.layout, s = n.eles.nodes(), a = zme(e, n, s); +}, Rir = function(e, r, n) { + var i = n.layout, s = n.eles.nodes(), a = Vme(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, Rir = function(e, r, n) { - Mir(e, r), Iir(e), Pir(e, r), $ir(e), Bir(e); -}, Mir = function(e, r) { +}, Mir = function(e, r, n) { + Dir(e, r), Pir(e), $ir(e, r), Bir(e), Fir(e); +}, Dir = function(e, r) { for (var n = 0; n < e.graphSet.length; n++) for (var i = e.graphSet[n], s = i.length, a = 0; a < s; a++) for (var o = e.layoutNodes[e.idToIndex[i[a]]], l = a + 1; l < s; l++) { var u = e.layoutNodes[e.idToIndex[i[l]]]; - Dir(o, u, e, r); + Nir(o, u, e, r); } -}, xX = function(e) { +}, wX = function(e) { return -e + 2 * e * Math.random(); -}, Dir = function(e, r, n, i) { +}, Nir = function(e, r, n, i) { var s = e.cmptId, a = r.cmptId; if (!(s !== a && !n.isCompound)) { var o = r.positionX - e.positionX, l = r.positionY - e.positionY, u = 1; - o === 0 && l === 0 && (o = xX(u), l = xX(u)); - var h = Nir(e, r, o, l); + o === 0 && l === 0 && (o = wX(u), l = wX(u)); + var h = Iir(e, r, o, l); if (h > 0) var f = i.nodeOverlap * h, d = Math.sqrt(o * o + l * l), p = f * o / d, g = f * l / d; else - var m = dS(e, o, l), v = dS(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; + var m = pS(e, o, l), v = pS(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; e.isLocked || (e.offsetX -= p, e.offsetY -= g), r.isLocked || (r.offsetX += p, r.offsetY += g); } -}, Nir = function(e, r, n, i) { +}, Iir = function(e, r, n, i) { if (n > 0) var s = e.maxX - r.minX; else @@ -105285,14 +105307,14 @@ var Tir = function(e, r, n) { else var a = r.maxY - e.minY; return s >= 0 && a >= 0 ? Math.sqrt(s * s + a * a) : 0; -}, dS = function(e, r, n) { +}, pS = function(e, r, n) { var i = e.positionX, s = e.positionY, a = e.height || 1, o = e.width || 1, l = n / r, u = a / o, h = {}; return r === 0 && 0 < n || r === 0 && 0 > n ? (h.x = i, h.y = s + a / 2, h) : 0 < r && -1 * u <= l && l <= u ? (h.x = i + o / 2, h.y = s + o * n / 2 / r, h) : 0 > r && -1 * u <= l && l <= u ? (h.x = i - o / 2, h.y = s - o * n / 2 / r, h) : 0 < n && (l <= -1 * u || l >= u) ? (h.x = i + a * r / 2 / n, h.y = s + a / 2, h) : (0 > n && (l <= -1 * u || l >= u) && (h.x = i - a * r / 2 / n, h.y = s - a / 2), h); -}, Iir = function(e, r) { +}, Pir = function(e, r) { for (var n = 0; n < e.edgeSize; n++) { var i = e.layoutEdges[n], s = e.idToIndex[i.sourceId], a = e.layoutNodes[s], o = e.idToIndex[i.targetId], l = e.layoutNodes[o], u = l.positionX - a.positionX, h = l.positionY - a.positionY; if (!(u === 0 && h === 0)) { - var f = dS(a, u, h), d = dS(l, -1 * u, -1 * h), p = d.x - f.x, g = d.y - f.y, m = Math.sqrt(p * p + g * g), v = Math.pow(i.idealLength - m, 2) / i.elasticity; + var f = pS(a, u, h), d = pS(l, -1 * u, -1 * h), p = d.x - f.x, g = d.y - f.y, m = Math.sqrt(p * p + g * g), v = Math.pow(i.idealLength - m, 2) / i.elasticity; if (m !== 0) var y = v * p / m, b = v * g / m; else @@ -105300,7 +105322,7 @@ var Tir = function(e, r, n) { a.isLocked || (a.offsetX += y, a.offsetY += b), l.isLocked || (l.offsetX -= y, l.offsetY -= b); } } -}, Pir = function(e, r) { +}, $ir = function(e, r) { if (r.gravity !== 0) for (var n = 1, i = 0; i < e.graphSet.length; i++) { var s = e.graphSet[i], a = s.length; @@ -105319,7 +105341,7 @@ var Tir = function(e, r, n) { } } } -}, $ir = function(e, r) { +}, Bir = function(e, r) { var n = [], i = 0, s = -1; for (n.push.apply(n, e.graphSet[0]), s += e.graphSet[0].length; i <= s; ) { var a = n[i++], o = e.idToIndex[a], l = e.layoutNodes[o], u = l.children; @@ -105331,7 +105353,7 @@ var Tir = function(e, r, n) { l.offsetX = 0, l.offsetY = 0; } } -}, Bir = function(e, r) { +}, Fir = function(e, r) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && (i.maxX = void 0, i.minX = void 0, i.maxY = void 0, i.minY = void 0); @@ -105339,15 +105361,15 @@ var Tir = function(e, r, n) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; if (!(0 < i.children.length || i.isLocked)) { - var s = Fir(i.offsetX, i.offsetY, e.temperature); - i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, zir(i, e); + var s = zir(i.offsetX, i.offsetY, e.temperature); + i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, Vir(i, e); } } for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && !i.isLocked && (i.positionX = (i.maxX + i.minX) / 2, i.positionY = (i.maxY + i.minY) / 2, i.width = i.maxX - i.minX, i.height = i.maxY - i.minY); } -}, Fir = function(e, r, n) { +}, zir = function(e, r, n) { var i = Math.sqrt(e * e + r * r); if (i > n) var s = { @@ -105360,14 +105382,14 @@ var Tir = function(e, r, n) { y: r }; return s; -}, zir = function t(e, r) { +}, Vir = function t(e, r) { var n = e.parentId; if (n != null) { var i = r.layoutNodes[r.idToIndex[n]], s = !1; if ((i.maxX == null || e.maxX + i.padRight > i.maxX) && (i.maxX = e.maxX + i.padRight, s = !0), (i.minX == null || e.minX - i.padLeft < i.minX) && (i.minX = e.minX - i.padLeft, s = !0), (i.maxY == null || e.maxY + i.padBottom > i.maxY) && (i.maxY = e.maxY + i.padBottom, s = !0), (i.minY == null || e.minY - i.padTop < i.minY) && (i.minY = e.minY - i.padTop, s = !0), s) return t(i, r); } -}, wX = function(e, r) { +}, OX = function(e, r) { for (var n = e.layoutNodes, i = [], s = 0; s < n.length; s++) { var a = n[s], o = a.cmptId, l = i[o] = i[o] || []; l.push(a); @@ -105396,7 +105418,7 @@ var Tir = function(e, r, n) { p += h.w + r.componentSpacing, m += h.w + r.componentSpacing, v = Math.max(v, h.h), m > y && (g += v + r.componentSpacing, p = 0, m = 0, v = 0); } } -}, Vir = { +}, Uir = { fit: !0, padding: 30, boundingBox: void 0, @@ -105422,13 +105444,13 @@ var Tir = function(e, r, n) { return r; } }; -function Vme(t) { - this.options = Kt({}, Vir, t); +function Ume(t) { + this.options = Kt({}, Uir, t); } -Vme.prototype.run = function() { +Ume.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().not(":parent"); e.sort && (i = i.sort(e.sort)); - var s = Fa(e.boundingBox ? e.boundingBox : { + var s = za(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, w: r.width(), @@ -105472,8 +105494,8 @@ Vme.prototype.run = function() { for (var O = 0; O < i.length; O++) { var S = i[O], C = S._private.position; (C.x == null || C.y == null) && (C.x = 0, C.y = 0); - var T = S.layoutDimensions(e), L = e.avoidOverlapPadding, E = T.w + L, A = T.h + L; - b = Math.max(b, E), w = Math.max(w, A); + var T = S.layoutDimensions(e), A = e.avoidOverlapPadding, E = T.w + A, L = T.h + A; + b = Math.max(b, E), w = Math.max(w, L); } for (var _ = {}, R = function(W, ee) { return !!_["c-" + W + "-" + ee]; @@ -105518,14 +105540,14 @@ Vme.prototype.run = function() { } return this; }; -var Uir = { +var qir = { ready: function() { }, stop: function() { } }; function YP(t) { - this.options = Kt({}, Uir, t); + this.options = Kt({}, qir, t); } YP.prototype.run = function() { var t = this.options, e = t.eles, r = this; @@ -105539,7 +105561,7 @@ YP.prototype.run = function() { YP.prototype.stop = function() { return this; }; -var qir = { +var Qir = { positions: void 0, zoom: void 0, pan: void 0, @@ -105558,14 +105580,14 @@ var qir = { return r; } }; -function Ume(t) { - this.options = Kt({}, qir, t); +function qme(t) { + this.options = Kt({}, Qir, t); } -Ume.prototype.run = function() { +qme.prototype.run = function() { var t = this.options, e = t.eles, r = e.nodes(), n = Pn(t.positions); function i(s) { if (t.positions == null) - return GJt(s.position()); + return HJt(s.position()); if (n) return t.positions(s); var a = t.positions[s._private.data.id]; @@ -105576,7 +105598,7 @@ Ume.prototype.run = function() { return s.locked() || o == null ? !1 : o; }), this; }; -var Qir = { +var Yir = { fit: !0, padding: 30, boundingBox: void 0, @@ -105592,11 +105614,11 @@ var Qir = { return r; } }; -function qme(t) { - this.options = Kt({}, Qir, t); +function Qme(t) { + this.options = Kt({}, Yir, t); } -qme.prototype.run = function() { - var t = this.options, e = t.cy, r = t.eles, n = Fa(t.boundingBox ? t.boundingBox : { +Qme.prototype.run = function() { + var t = this.options, e = t.cy, r = t.eles, n = za(t.boundingBox ? t.boundingBox : { x1: 0, y1: 0, w: e.width(), @@ -105609,49 +105631,49 @@ qme.prototype.run = function() { }; return r.nodes().layoutPositions(this, t, i), this; }; -var Yir = [{ +var Wir = [{ name: "breadthfirst", - impl: $me + impl: Bme }, { name: "circle", - impl: Bme + impl: Fme }, { name: "concentric", - impl: Fme + impl: zme }, { name: "cose", - impl: HC + impl: XC }, { name: "grid", - impl: Vme + impl: Ume }, { name: "null", impl: YP }, { name: "preset", - impl: Ume + impl: qme }, { name: "random", - impl: qme + impl: Qme }]; -function Qme(t) { +function Yme(t) { this.options = t, this.notifications = 0; } -var OX = function() { -}, kX = function() { +var kX = function() { +}, SX = function() { throw new Error("A headless instance can not render images"); }; -Qme.prototype = { - recalculateRenderedStyle: OX, +Yme.prototype = { + recalculateRenderedStyle: kX, notify: function() { this.notifications++; }, - init: OX, + init: kX, isHeadless: function() { return !0; }, - png: kX, - jpg: kX + png: SX, + jpg: SX }; var WP = {}; WP.arrowShapeWidth = 0.3; @@ -105699,11 +105721,11 @@ WP.registerArrowShapes = function() { }, h); }; o("none", { - collide: oS, - roughCollide: oS, + collide: lS, + roughCollide: lS, draw: RP, - spacing: DH, - gap: DH + spacing: NH, + gap: NH }), o("triangle", { points: [-0.15, -0.3, 0, 0, 0.15, -0.3] }), o("arrow", "triangle"), o("triangle-backcurve", { @@ -105837,44 +105859,44 @@ np.findNearestElement = function(t, e, r, n) { np.findNearestElements = function(t, e, r, n) { var i = this, s = this, a = s.getCachedZSortedEles(), o = [], l = s.cy.zoom(), u = s.cy.hasCompoundNodes(), h = (n ? 24 : 8) / l, f = (n ? 8 : 2) / l, d = (n ? 8 : 2) / l, p = 1 / 0, g, m; r && (a = a.interactive); - function v(T, L) { + function v(T, A) { if (T.isNode()) { if (m) return; m = T, o.push(T); } - if (T.isEdge() && (L == null || L < p)) + if (T.isEdge() && (A == null || A < p)) if (g) { if (g.pstyle("z-compound-depth").value === T.pstyle("z-compound-depth").value && g.pstyle("z-compound-depth").value === T.pstyle("z-compound-depth").value) { for (var E = 0; E < o.length; E++) if (o[E].isEdge()) { - o[E] = T, g = T, p = L != null ? L : p; + o[E] = T, g = T, p = A != null ? A : p; break; } } } else - o.push(T), g = T, p = L != null ? L : p; + o.push(T), g = T, p = A != null ? A : p; } function y(T) { - var L = T.outerWidth() + 2 * f, E = T.outerHeight() + 2 * f, A = L / 2, _ = E / 2, R = T.position(), $ = T.pstyle("corner-radius").value === "auto" ? "auto" : T.pstyle("corner-radius").pfValue, k = T._private.rscratch; - if (R.x - A <= t && t <= R.x + A && R.y - _ <= e && e <= R.y + _) { + var A = T.outerWidth() + 2 * f, E = T.outerHeight() + 2 * f, L = A / 2, _ = E / 2, R = T.position(), $ = T.pstyle("corner-radius").value === "auto" ? "auto" : T.pstyle("corner-radius").pfValue, k = T._private.rscratch; + if (R.x - L <= t && t <= R.x + L && R.y - _ <= e && e <= R.y + _) { var N = s.nodeShapes[i.getNodeShape(T)]; - if (N.checkPoint(t, e, 0, L, E, R.x, R.y, $, k)) + if (N.checkPoint(t, e, 0, A, E, R.x, R.y, $, k)) return v(T, 0), !0; } } function b(T) { - var L = T._private, E = L.rscratch, A = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, R = A / 2 + h, $ = R * R, k = R * 2, D = L.source, P = L.target, N; + var A = T._private, E = A.rscratch, L = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, R = L / 2 + h, $ = R * R, k = R * 2, D = A.source, P = A.target, N; if (E.edgeType === "segments" || E.edgeType === "straight" || E.edgeType === "haystack") { for (var M = E.allpts, I = 0; I + 3 < M.length; I += 2) - if (aer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = her(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) + if (oer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = fer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) return v(T, N), !0; } else if (E.edgeType === "bezier" || E.edgeType === "multibezier" || E.edgeType === "self" || E.edgeType === "compound") { for (var M = E.allpts, I = 0; I + 5 < E.allpts.length; I += 4) - if (oer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = uer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) + if (ler(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = her(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) return v(T, N), !0; } - for (var D = D || L.source, P = P || L.target, F = i.getArrowWidth(A, _), B = [{ + for (var D = D || A.source, P = P || A.target, F = i.getArrowWidth(L, _), B = [{ name: "source", x: E.arrowStartX, y: E.arrowStartY, @@ -105907,15 +105929,15 @@ np.findNearestElements = function(t, e, r, n) { } u && o.length > 0 && (y(D), y(P)); } - function w(T, L, E) { - return ml(T, L, E); + function w(T, A, E) { + return ml(T, A, E); } - function O(T, L) { - var E = T._private, A = d, _; - L ? _ = L + "-" : _ = "", T.boundingBox(); - var R = E.labelBounds[L || "main"], $ = T.pstyle(_ + "label").value, k = T.pstyle("text-events").strValue === "yes"; + function O(T, A) { + var E = T._private, L = d, _; + A ? _ = A + "-" : _ = "", T.boundingBox(); + var R = E.labelBounds[A || "main"], $ = T.pstyle(_ + "label").value, k = T.pstyle("text-events").strValue === "yes"; if (!(!k || !$)) { - var N = w(E.rscratch, "labelX", L), M = w(E.rscratch, "labelY", L), I = w(E.rscratch, "labelAngle", L), D = T.pstyle(_ + "text-margin-x").pfValue, P = T.pstyle(_ + "text-margin-y").pfValue, F = R.x1 - A - D, B = R.x2 + A - D, V = R.y1 - A - P, Q = R.y2 + A - P; + var N = w(E.rscratch, "labelX", A), M = w(E.rscratch, "labelY", A), I = w(E.rscratch, "labelAngle", A), D = T.pstyle(_ + "text-margin-x").pfValue, P = T.pstyle(_ + "text-margin-y").pfValue, F = R.x1 - L - D, B = R.x2 + L - D, V = R.y1 - L - P, Q = R.y2 + L - P; if (I) { var W = Math.cos(I), ee = Math.sin(I), Y = function(ae, se) { return ae = ae - N, se = se - M, { @@ -105947,7 +105969,7 @@ np.findNearestElements = function(t, e, r, n) { np.getAllInBox = function(t, e, r, n) { var i = this.getCachedZSortedEles().interactive, s = [], a = Math.min(t, r), o = Math.max(t, r), l = Math.min(e, n), u = Math.max(e, n); t = a, r = o, e = l, n = u; - for (var h = Fa({ + for (var h = za({ x1: t, y1: e, x2: r, @@ -105960,14 +105982,14 @@ np.getAllInBox = function(t, e, r, n) { includeEdges: !1, includeLabels: !1 }); - NP(h, g) && !J1e(g, h) && s.push(p); + NP(h, g) && !eme(g, h) && s.push(p); } else { var m = d, v = m._private, y = v.rscratch; if (y.startX != null && y.startY != null && !E1(h, y.startX, y.startY) || y.endX != null && y.endY != null && !E1(h, y.endX, y.endY)) continue; if (y.edgeType === "bezier" || y.edgeType === "multibezier" || y.edgeType === "self" || y.edgeType === "compound" || y.edgeType === "segments" || y.edgeType === "haystack") { for (var b = v.rstyle.bezierPts || v.rstyle.linePts || v.rstyle.haystackPts, w = !0, O = 0; O < b.length; O++) - if (!ser(h, b[O])) { + if (!aer(h, b[O])) { w = !1; break; } @@ -105978,13 +106000,13 @@ np.getAllInBox = function(t, e, r, n) { } return s; }; -var pS = {}; -pS.calculateArrowAngles = function(t) { +var gS = {}; +gS.calculateArrowAngles = function(t) { var e = t._private.rscratch, r = e.edgeType === "haystack", n = e.edgeType === "bezier", i = e.edgeType === "multibezier", s = e.edgeType === "segments", a = e.edgeType === "compound", o = e.edgeType === "self", l, u, h, f, d, p, y, b; if (r ? (h = e.haystackPts[0], f = e.haystackPts[1], d = e.haystackPts[2], p = e.haystackPts[3]) : (h = e.arrowStartX, f = e.arrowStartY, d = e.arrowEndX, p = e.arrowEndY), y = e.midX, b = e.midY, s) l = h - e.segpts[0], u = f - e.segpts[1]; else if (i || a || o || n) { - var g = e.allpts, m = zi(g[0], g[2], g[4], 0.1), v = zi(g[1], g[3], g[5], 0.1); + var g = e.allpts, m = Vi(g[0], g[2], g[4], 0.1), v = Vi(g[1], g[3], g[5], 0.1); l = h - m, u = f - v; } else l = h - y, u = f - b; @@ -106002,15 +106024,15 @@ pS.calculateArrowAngles = function(t) { l = g[w] - g[O], u = g[w + 1] - g[O + 1]; } } else if (i || a || o) { - var g = e.allpts, S = e.ctrlpts, C, T, L, E; + var g = e.allpts, S = e.ctrlpts, C, T, A, E; if (S.length / 2 % 2 === 0) { - var A = g.length / 2 - 1, _ = A + 2, R = _ + 2; - C = zi(g[A], g[_], g[R], 0), T = zi(g[A + 1], g[_ + 1], g[R + 1], 0), L = zi(g[A], g[_], g[R], 1e-4), E = zi(g[A + 1], g[_ + 1], g[R + 1], 1e-4); + var L = g.length / 2 - 1, _ = L + 2, R = _ + 2; + C = Vi(g[L], g[_], g[R], 0), T = Vi(g[L + 1], g[_ + 1], g[R + 1], 0), A = Vi(g[L], g[_], g[R], 1e-4), E = Vi(g[L + 1], g[_ + 1], g[R + 1], 1e-4); } else { - var _ = g.length / 2 - 1, A = _ - 2, R = _ + 2; - C = zi(g[A], g[_], g[R], 0.4999), T = zi(g[A + 1], g[_ + 1], g[R + 1], 0.4999), L = zi(g[A], g[_], g[R], 0.5), E = zi(g[A + 1], g[_ + 1], g[R + 1], 0.5); + var _ = g.length / 2 - 1, L = _ - 2, R = _ + 2; + C = Vi(g[L], g[_], g[R], 0.4999), T = Vi(g[L + 1], g[_ + 1], g[R + 1], 0.4999), A = Vi(g[L], g[_], g[R], 0.5), E = Vi(g[L + 1], g[_ + 1], g[R + 1], 0.5); } - l = L - C, u = E - T; + l = A - C, u = E - T; } if (e.midtgtArrowAngle = IO(l, u), e.midDispX = l, e.midDispY = u, l *= -1, u *= -1, s) { var g = e.allpts; @@ -106024,28 +106046,28 @@ pS.calculateArrowAngles = function(t) { if (e.midsrcArrowAngle = IO(l, u), s) l = d - e.segpts[e.segpts.length - 2], u = p - e.segpts[e.segpts.length - 1]; else if (i || a || o || n) { - var g = e.allpts, k = g.length, m = zi(g[k - 6], g[k - 4], g[k - 2], 0.9), v = zi(g[k - 5], g[k - 3], g[k - 1], 0.9); + var g = e.allpts, k = g.length, m = Vi(g[k - 6], g[k - 4], g[k - 2], 0.9), v = Vi(g[k - 5], g[k - 3], g[k - 1], 0.9); l = d - m, u = p - v; } else l = d - y, u = p - b; e.tgtArrowAngle = IO(l, u); }; -pS.getArrowWidth = pS.getArrowHeight = function(t, e) { +gS.getArrowWidth = gS.getArrowHeight = function(t, e) { var r = this.arrowWidthCache = this.arrowWidthCache || {}, n = r[t + ", " + e]; return n || (n = Math.max(Math.pow(t * 13.37, 0.9), 29) * e, r[t + ", " + e] = n, n); }; -var iR, sR, ic = {}, ko = {}, SX, TX, kd, h5, uu, id, hd, rc, yp, QO, Yme, Wme, aR, oR, CX, EX = function(e, r, n) { +var sR, aR, ic = {}, ko = {}, TX, CX, kd, h5, uu, id, hd, rc, yp, QO, Wme, Gme, oR, lR, EX, _X = function(e, r, n) { n.x = r.x - e.x, n.y = r.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); -}, Wir = function(e, r) { +}, Gir = function(e, r) { r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; -}, Gir = function(e, r, n, i, s) { - if (e !== CX ? EX(r, e, ic) : Wir(ko, ic), EX(r, n, ko), SX = ic.nx * ko.ny - ic.ny * ko.nx, TX = ic.nx * ko.nx - ic.ny * -ko.ny, uu = Math.asin(Math.max(-1, Math.min(1, SX))), Math.abs(uu) < 1e-6) { - iR = r.x, sR = r.y, hd = yp = 0; +}, Hir = function(e, r, n, i, s) { + if (e !== EX ? _X(r, e, ic) : Gir(ko, ic), _X(r, n, ko), TX = ic.nx * ko.ny - ic.ny * ko.nx, CX = ic.nx * ko.nx - ic.ny * -ko.ny, uu = Math.asin(Math.max(-1, Math.min(1, TX))), Math.abs(uu) < 1e-6) { + sR = r.x, aR = r.y, hd = yp = 0; return; } - kd = 1, h5 = !1, TX < 0 ? uu < 0 ? uu = Math.PI + uu : (uu = Math.PI - uu, kd = -1, h5 = !0) : uu > 0 && (kd = -1, h5 = !0), r.radius !== void 0 ? yp = r.radius : yp = i, id = uu / 2, QO = Math.min(ic.len / 2, ko.len / 2), s ? (rc = Math.abs(Math.cos(id) * yp / Math.sin(id)), rc > QO ? (rc = QO, hd = Math.abs(rc * Math.sin(id) / Math.cos(id))) : hd = yp) : (rc = Math.min(QO, yp), hd = Math.abs(rc * Math.sin(id) / Math.cos(id))), aR = r.x + ko.nx * rc, oR = r.y + ko.ny * rc, iR = aR - ko.ny * hd * kd, sR = oR + ko.nx * hd * kd, Yme = r.x + ic.nx * rc, Wme = r.y + ic.ny * rc, CX = r; + kd = 1, h5 = !1, CX < 0 ? uu < 0 ? uu = Math.PI + uu : (uu = Math.PI - uu, kd = -1, h5 = !0) : uu > 0 && (kd = -1, h5 = !0), r.radius !== void 0 ? yp = r.radius : yp = i, id = uu / 2, QO = Math.min(ic.len / 2, ko.len / 2), s ? (rc = Math.abs(Math.cos(id) * yp / Math.sin(id)), rc > QO ? (rc = QO, hd = Math.abs(rc * Math.sin(id) / Math.cos(id))) : hd = yp) : (rc = Math.min(QO, yp), hd = Math.abs(rc * Math.sin(id) / Math.cos(id))), oR = r.x + ko.nx * rc, lR = r.y + ko.ny * rc, sR = oR - ko.ny * hd * kd, aR = lR + ko.nx * hd * kd, Wme = r.x + ic.nx * rc, Gme = r.y + ic.ny * rc, EX = r; }; -function Gme(t, e) { +function Hme(t, e) { e.radius === 0 ? t.lineTo(e.cx, e.cy) : t.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise); } function GP(t, e, r, n) { @@ -106061,14 +106083,14 @@ function GP(t, e, r, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (Gir(t, e, r, n, i), { - cx: iR, - cy: sR, + } : (Hir(t, e, r, n, i), { + cx: sR, + cy: aR, radius: hd, - startX: Yme, - startY: Wme, - stopX: aR, - stopY: oR, + startX: Wme, + startY: Gme, + stopX: oR, + stopY: lR, startAngle: ic.ang + Math.PI / 2 * kd, endAngle: ko.ang - Math.PI / 2 * kd, counterClockwise: h5 @@ -106076,11 +106098,11 @@ function GP(t, e, r, n) { } var Hs = {}; Hs.findMidptPtsEtc = function(t, e) { - var r = e.posPts, n = e.intersectionPts, i = e.vectorNormInverse, s, a = t.pstyle("source-endpoint"), o = t.pstyle("target-endpoint"), l = a.units != null && o.units != null, u = function(S, C, T, L) { - var E = L - C, A = T - S, _ = Math.sqrt(A * A + E * E); + var r = e.posPts, n = e.intersectionPts, i = e.vectorNormInverse, s, a = t.pstyle("source-endpoint"), o = t.pstyle("target-endpoint"), l = a.units != null && o.units != null, u = function(S, C, T, A) { + var E = A - C, L = T - S, _ = Math.sqrt(L * L + E * E); return { x: -E / _, - y: A / _ + y: L / _ }; }, h = t.pstyle("edge-distances").value; switch (h) { @@ -106169,7 +106191,7 @@ Hs.findBezierPoints = function(t, e, r, n, i) { var s = t._private.rscratch, a = t.pstyle("control-point-step-size").pfValue, o = t.pstyle("control-point-distances"), l = t.pstyle("control-point-weights"), u = o && l ? Math.min(o.value.length, l.value.length) : 1, h = o ? o.pfValue[0] : void 0, f = l.value[0], d = n; s.edgeType = d ? "multibezier" : "bezier", s.ctrlpts = []; for (var p = 0; p < u; p++) { - var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = j1e(g); + var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = K1e(g); d && (h = o ? o.pfValue[p] : a, f = l.value[p]), n ? m = h : m = h !== void 0 ? v * h : void 0; var y = m !== void 0 ? m : g, b = 1 - f, w = f, O = this.findMidptPtsEtc(t, e), S = O.midptPts, C = O.vectorNormInverse, T = { x: S.x1 * b + S.x2 * w, @@ -106181,11 +106203,11 @@ Hs.findBezierPoints = function(t, e, r, n, i) { Hs.findTaxiPoints = function(t, e) { var r = t._private.rscratch; r.edgeType = "segments"; - var n = "vertical", i = "horizontal", s = "leftward", a = "rightward", o = "downward", l = "upward", u = "auto", h = e.posPts, f = e.srcW, d = e.srcH, p = e.tgtW, g = e.tgtH, m = t.pstyle("edge-distances").value, v = m !== "node-position", y = t.pstyle("taxi-direction").value, b = y, w = t.pstyle("taxi-turn"), O = w.units === "%", S = w.pfValue, C = S < 0, T = t.pstyle("taxi-turn-min-distance").pfValue, L = v ? (f + p) / 2 : 0, E = v ? (d + g) / 2 : 0, A = h.x2 - h.x1, _ = h.y2 - h.y1, R = function(xe, ke) { + var n = "vertical", i = "horizontal", s = "leftward", a = "rightward", o = "downward", l = "upward", u = "auto", h = e.posPts, f = e.srcW, d = e.srcH, p = e.tgtW, g = e.tgtH, m = t.pstyle("edge-distances").value, v = m !== "node-position", y = t.pstyle("taxi-direction").value, b = y, w = t.pstyle("taxi-turn"), O = w.units === "%", S = w.pfValue, C = S < 0, T = t.pstyle("taxi-turn-min-distance").pfValue, A = v ? (f + p) / 2 : 0, E = v ? (d + g) / 2 : 0, L = h.x2 - h.x1, _ = h.y2 - h.y1, R = function(xe, ke) { return xe > 0 ? Math.max(xe - ke, 0) : Math.min(xe + ke, 0); - }, $ = R(A, L), k = R(_, E), N = !1; + }, $ = R(L, A), k = R(_, E), N = !1; b === u ? y = Math.abs($) > Math.abs(k) ? i : n : b === l || b === o ? (y = n, N = !0) : (b === s || b === a) && (y = i, N = !0); - var M = y === n, I = M ? k : $, D = M ? _ : A, P = j1e(D), F = !1; + var M = y === n, I = M ? k : $, D = M ? _ : L, P = K1e(D), F = !1; !(N && (O || C)) && (b === o && D < 0 || b === l && D > 0 || b === s && D > 0 || b === a && D < 0) && (P *= -1, I = P * Math.abs(I), F = !0); var B; if (O) { @@ -106200,7 +106222,7 @@ Hs.findTaxiPoints = function(t, e) { }, ee = W(B), Y = W(Math.abs(I) - Math.abs(B)), ne = ee || Y; if (ne && !F) if (M) { - var ie = Math.abs(D) <= d / 2, U = Math.abs(A) <= p / 2; + var ie = Math.abs(D) <= d / 2, U = Math.abs(L) <= p / 2; if (ie) { var Z = (h.x1 + h.x2) / 2, G = h.y1, j = h.y2; r.segpts = [Z, G, Z, j]; @@ -106241,15 +106263,15 @@ Hs.tryToCorrectInvalidPoints = function(t, e) { }, { x: r.startX, y: r.startY - }), T = C < S, L = _0({ + }), T = C < S, A = _0({ x: r.ctrlpts[0], y: r.ctrlpts[1] }, { x: r.endX, y: r.endY - }), E = L < S, A = !1; + }), E = A < S, L = !1; if (m || v || T) { - A = !0; + L = !0; var _ = { x: r.ctrlpts[0] - n.x, y: r.ctrlpts[1] - n.y @@ -106263,7 +106285,7 @@ Hs.tryToCorrectInvalidPoints = function(t, e) { T ? (r.ctrlpts[0] = r.ctrlpts[0] + $.x * (S - C), r.ctrlpts[1] = r.ctrlpts[1] + $.y * (S - C)) : (r.ctrlpts[0] = M[0] + $.x * S, r.ctrlpts[1] = M[1] + $.y * S); } if (y || b || E) { - A = !0; + L = !0; var I = { x: r.ctrlpts[0] - i.x, y: r.ctrlpts[1] - i.y @@ -106274,9 +106296,9 @@ Hs.tryToCorrectInvalidPoints = function(t, e) { x: r.ctrlpts[0] + P.x * 2 * F, y: r.ctrlpts[1] + P.y * 2 * F }, V = h.intersectLine(i.x, i.y, o, l, B.x, B.y, 0, d, g); - E ? (r.ctrlpts[0] = r.ctrlpts[0] + P.x * (S - L), r.ctrlpts[1] = r.ctrlpts[1] + P.y * (S - L)) : (r.ctrlpts[0] = V[0] + P.x * S, r.ctrlpts[1] = V[1] + P.y * S); + E ? (r.ctrlpts[0] = r.ctrlpts[0] + P.x * (S - A), r.ctrlpts[1] = r.ctrlpts[1] + P.y * (S - A)) : (r.ctrlpts[0] = V[0] + P.x * S, r.ctrlpts[1] = V[1] + P.y * S); } - A && this.findEndpoints(t); + L && this.findEndpoints(t); } }; Hs.storeAllpts = function(t) { @@ -106287,7 +106309,7 @@ Hs.storeAllpts = function(t) { e.allpts.push(e.ctrlpts[r], e.ctrlpts[r + 1]), r + 3 < e.ctrlpts.length && e.allpts.push((e.ctrlpts[r] + e.ctrlpts[r + 2]) / 2, (e.ctrlpts[r + 1] + e.ctrlpts[r + 3]) / 2); e.allpts.push(e.endX, e.endY); var n, i; - e.ctrlpts.length / 2 % 2 === 0 ? (n = e.allpts.length / 2 - 1, e.midX = e.allpts[n], e.midY = e.allpts[n + 1]) : (n = e.allpts.length / 2 - 3, i = 0.5, e.midX = zi(e.allpts[n], e.allpts[n + 2], e.allpts[n + 4], i), e.midY = zi(e.allpts[n + 1], e.allpts[n + 3], e.allpts[n + 5], i)); + e.ctrlpts.length / 2 % 2 === 0 ? (n = e.allpts.length / 2 - 1, e.midX = e.allpts[n], e.midY = e.allpts[n + 1]) : (n = e.allpts.length / 2 - 3, i = 0.5, e.midX = Vi(e.allpts[n], e.allpts[n + 2], e.allpts[n + 4], i), e.midY = Vi(e.allpts[n + 1], e.allpts[n + 3], e.allpts[n + 5], i)); } else if (e.edgeType === "straight") e.allpts = [e.startX, e.startY, e.endX, e.endY], e.midX = (e.startX + e.endX + e.arrowStartX + e.arrowEndX) / 4, e.midY = (e.startY + e.endY + e.arrowStartY + e.arrowEndY) / 4; else if (e.edgeType === "segments") { @@ -106337,12 +106359,12 @@ Hs.findEdgeControlPoints = function(t) { for (var r = this, n = r.cy, i = n.hasCompoundNodes(), s = { map: new Cc(), get: function(T) { - var L = this.map.get(T[0]); - return L != null ? L.get(T[1]) : null; + var A = this.map.get(T[0]); + return A != null ? A.get(T[1]) : null; }, - set: function(T, L) { + set: function(T, A) { var E = this.map.get(T[0]); - E == null && (E = new Cc(), this.map.set(T[0], E)), E.set(T[1], L); + E == null && (E = new Cc(), this.map.set(T[0], E)), E.set(T[1], A); } }, a = [], o = [], l = 0; l < t.length; l++) { var u = t[l], h = u._private, f = u.pstyle("curve-style").value; @@ -106358,7 +106380,7 @@ Hs.findEdgeControlPoints = function(t) { } } for (var O = function(T) { - var L = a[T], E = s.get(L), A = void 0; + var A = a[T], E = s.get(A), L = void 0; if (!E.hasUnbundled) { var _ = E.eles[0].parallelEdges().filter(function(ve) { return ve.isBundledBezier(); @@ -106409,7 +106431,7 @@ Hs.findEdgeControlPoints = function(t) { x: -he.y, y: he.x }; - E.nodesOverlap = !bt(Ye) || Q.checkPoint(se[0], se[1], 0, F, B, I.x, I.y, ee, Y) || V.checkPoint(_e[0], _e[1], 0, D, P, M.x, M.y, W, ne), E.vectorNormInverse = H, A = { + E.nodesOverlap = !bt(Ye) || Q.checkPoint(se[0], se[1], 0, F, B, I.x, I.y, ee, Y) || V.checkPoint(_e[0], _e[1], 0, D, P, M.x, M.y, W, ne), E.vectorNormInverse = H, L = { nodesOverlap: E.nodesOverlap, dirCounts: E.dirCounts, calculatedIntersection: !0, @@ -106452,7 +106474,7 @@ Hs.findEdgeControlPoints = function(t) { } }; } - var oe = ae ? A : E; + var oe = ae ? L : E; Z.nodesOverlap = oe.nodesOverlap, Z.srcIntn = oe.srcIntn, Z.tgtIntn = oe.tgtIntn, Z.isRound = G.startsWith("round"), i && ($.isParent() || $.isChild() || k.isParent() || k.isChild()) && ($.parents().anySame(k) || k.parents().anySame($) || $.same(k) && $.isParent()) ? e.findCompoundLoopPoints(U, oe, ie, j) : $ === k ? e.findLoopPoints(U, oe, ie, j) : G.endsWith("segments") ? e.findSegmentsPoints(U, oe) : G.endsWith("taxi") ? e.findTaxiPoints(U, oe) : G === "straight" || !j && E.eles.length % 2 === 1 && ie === Math.floor(E.eles.length / 2) ? e.findStraightEdgePoints(U) : e.findBezierPoints(U, oe, ie, j, ae), e.findEndpoints(U), e.tryToCorrectInvalidPoints(U, oe), e.checkForInvalidEdgeWarning(U), e.storeAllpts(U), e.storeEdgeProjections(U), e.calculateArrowAngles(U), e.recalculateEdgeLabelProjections(U), e.calculateLabelAngles(U); } }, S = 0; S < a.length; S++) @@ -106460,7 +106482,7 @@ Hs.findEdgeControlPoints = function(t) { this.findHaystackPoints(o); } }; -function Hme(t) { +function Xme(t) { var e = []; if (t != null) { for (var r = 0; r < t.length; r += 2) { @@ -106476,12 +106498,12 @@ function Hme(t) { Hs.getSegmentPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "segments") - return this.recalculateRenderedStyle(t), Hme(e.segpts); + return this.recalculateRenderedStyle(t), Xme(e.segpts); }; Hs.getControlPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "bezier" || r === "multibezier" || r === "self" || r === "compound") - return this.recalculateRenderedStyle(t), Hme(e.ctrlpts); + return this.recalculateRenderedStyle(t), Xme(e.ctrlpts); }; Hs.getEdgeMidpoint = function(t) { var e = t[0]._private.rscratch; @@ -106504,8 +106526,8 @@ Kx.manualEndptToPx = function(t, e) { } }; Kx.findEndpoints = function(t) { - var e = this, r, n = t.source()[0], i = t.target()[0], s = n.position(), a = i.position(), o = t.pstyle("target-arrow-shape").value, l = t.pstyle("source-arrow-shape").value, u = t.pstyle("target-distance-from-node").pfValue, h = t.pstyle("source-distance-from-node").pfValue, f = n._private.rscratch, d = i._private.rscratch, p = t.pstyle("curve-style").value, g = t._private.rscratch, m = g.edgeType, v = p === "taxi", y = m === "self" || m === "compound", b = m === "bezier" || m === "multibezier" || y, w = m !== "bezier", O = m === "straight" || m === "segments", S = m === "segments", C = b || w || O, T = y || v, L = t.pstyle("source-endpoint"), E = T ? "outside-to-node" : L.value, A = n.pstyle("corner-radius").value === "auto" ? "auto" : n.pstyle("corner-radius").pfValue, _ = t.pstyle("target-endpoint"), R = T ? "outside-to-node" : _.value, $ = i.pstyle("corner-radius").value === "auto" ? "auto" : i.pstyle("corner-radius").pfValue; - g.srcManEndpt = L, g.tgtManEndpt = _; + var e = this, r, n = t.source()[0], i = t.target()[0], s = n.position(), a = i.position(), o = t.pstyle("target-arrow-shape").value, l = t.pstyle("source-arrow-shape").value, u = t.pstyle("target-distance-from-node").pfValue, h = t.pstyle("source-distance-from-node").pfValue, f = n._private.rscratch, d = i._private.rscratch, p = t.pstyle("curve-style").value, g = t._private.rscratch, m = g.edgeType, v = p === "taxi", y = m === "self" || m === "compound", b = m === "bezier" || m === "multibezier" || y, w = m !== "bezier", O = m === "straight" || m === "segments", S = m === "segments", C = b || w || O, T = y || v, A = t.pstyle("source-endpoint"), E = T ? "outside-to-node" : A.value, L = n.pstyle("corner-radius").value === "auto" ? "auto" : n.pstyle("corner-radius").pfValue, _ = t.pstyle("target-endpoint"), R = T ? "outside-to-node" : _.value, $ = i.pstyle("corner-radius").value === "auto" ? "auto" : i.pstyle("corner-radius").pfValue; + g.srcManEndpt = A, g.tgtManEndpt = _; var k, N, M, I; if (b) { var D = [g.ctrlpts[0], g.ctrlpts[1]], P = w ? [g.ctrlpts[g.ctrlpts.length - 2], g.ctrlpts[g.ctrlpts.length - 1]] : D; @@ -106540,11 +106562,11 @@ Kx.findEndpoints = function(t) { var ce = PO(r, k, e.arrowShapes[o].spacing(t) + u), Ee = PO(r, k, e.arrowShapes[o].gap(t) + u); if (g.endX = Ee[0], g.endY = Ee[1], g.arrowEndX = ce[0], g.arrowEndY = ce[1], E === "inside-to-node") r = [s.x, s.y]; - else if (L.units) - r = this.manualEndptToPx(n, L); + else if (A.units) + r = this.manualEndptToPx(n, A); else if (E === "outside-to-line") r = g.srcIntn; - else if (E === "outside-to-node" || E === "outside-to-node-or-label" ? I = N : (E === "outside-to-line" || E === "outside-to-line-or-label") && (I = [a.x, a.y]), r = e.nodeShapes[this.getNodeShape(n)].intersectLine(s.x, s.y, n.outerWidth(), n.outerHeight(), I[0], I[1], 0, A, f), E === "outside-to-node-or-label" || E === "outside-to-line-or-label") { + else if (E === "outside-to-node" || E === "outside-to-node-or-label" ? I = N : (E === "outside-to-line" || E === "outside-to-line-or-label") && (I = [a.x, a.y]), r = e.nodeShapes[this.getNodeShape(n)].intersectLine(s.x, s.y, n.outerWidth(), n.outerHeight(), I[0], I[1], 0, L, f), E === "outside-to-node-or-label" || E === "outside-to-line-or-label") { var Ae = n._private.rscratch, Ue = Ae.labelWidth, Ge = Ae.labelHeight, Ye = Ae.labelX, De = Ae.labelY, he = Ue / 2, H = Ge / 2, oe = n.pstyle("text-valign").value; oe === "top" ? De -= H : oe === "bottom" && (De += H); var ve = n.pstyle("text-halign").value; @@ -106595,9 +106617,9 @@ Kx.getTargetEndpoint = function(t) { } }; var HP = {}; -function Hir(t, e, r) { +function Xir(t, e, r) { for (var n = function(u, h, f, d) { - return zi(u, h, f, d); + return Vi(u, h, f, d); }, i = e._private, s = i.rstyle.bezierPts, a = 0; a < t.bezierProjPcts.length; a++) { var o = t.bezierProjPcts[a]; s.push({ @@ -106611,7 +106633,7 @@ HP.storeEdgeProjections = function(t) { if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; for (var i = 0; i + 5 < r.allpts.length; i += 4) - Hir(this, t, r.allpts.slice(i, i + 6)); + Xir(this, t, r.allpts.slice(i, i + 6)); } else if (n === "segments") for (var s = e.rstyle.linePts = [], i = 0; i + 1 < r.allpts.length; i += 2) s.push({ @@ -106661,15 +106683,15 @@ nu.recalculateNodeLabelProjection = function(t) { f.labelX = r, f.labelY = n, d.labelX = r, d.labelY = n, this.calculateLabelAngles(t), this.applyLabelDimensions(t); } }; -var Xme = function(e, r) { +var Zme = function(e, r) { var n = Math.atan(r / e); return e === 0 && n < 0 && (n = n * -1), n; -}, Zme = function(e, r) { +}, jme = function(e, r) { var n = r.x - e.x, i = r.y - e.y; - return Xme(n, i); -}, Xir = function(e, r, n, i) { + return Zme(n, i); +}, Zir = function(e, r, n, i) { var s = H2(0, i - 1e-3, 1), a = H2(0, i + 1e-3, 1), o = dg(e, r, n, s), l = dg(e, r, n, a); - return Zme(o, l); + return jme(o, l); }; nu.recalculateEdgeLabelProjections = function(t) { var e, r = t._private, n = r.rscratch, i = this, s = { @@ -106686,7 +106708,7 @@ nu.recalculateEdgeLabelProjections = function(t) { Dh(r.rscratch, f, d, p), Dh(r.rstyle, f, d, p); }; a("labelX", null, e.x), a("labelY", null, e.y); - var o = Xme(n.midDispX, n.midDispY); + var o = Zme(n.midDispX, n.midDispY); a("labelAutoAngle", null, o); var l = function h() { if (h.cache) @@ -106712,11 +106734,11 @@ nu.recalculateEdgeLabelProjections = function(t) { }); } var v = r.rstyle.bezierPts, y = i.bezierProjPcts.length; - function b(T, L, E, A, _) { - var R = _0(L, E), $ = T.segments[T.segments.length - 1], k = { - p0: L, + function b(T, A, E, L, _) { + var R = _0(A, E), $ = T.segments[T.segments.length - 1], k = { + p0: A, p1: E, - t0: A, + t0: L, t1: _, startDist: $ ? $.startDist + $.length : 0, length: R @@ -106754,8 +106776,8 @@ nu.recalculateEdgeLabelProjections = function(t) { if (v) break; } - var L = v.cp, E = v.segment, A = (g - y) / E.length, _ = E.t1 - E.t0, R = p ? E.t0 + _ * A : E.t1 - _ * A; - R = H2(0, R, 1), e = dg(L.p0, L.p1, L.p2, R), d = Xir(L.p0, L.p1, L.p2, R); + var A = v.cp, E = v.segment, L = (g - y) / E.length, _ = E.t1 - E.t0, R = p ? E.t0 + _ * L : E.t1 - _ * L; + R = H2(0, R, 1), e = dg(A.p0, A.p1, A.p2, R), d = Zir(A.p0, A.p1, A.p2, R); break; } case "straight": @@ -106776,7 +106798,7 @@ nu.recalculateEdgeLabelProjections = function(t) { }), k = _0(M, I), N = $, $ += k, !($ >= g)); P += 2) ; var F = g - N, B = F / k; - B = H2(0, B, 1), e = eer(M, I, B), d = Zme(M, I); + B = H2(0, B, 1), e = ter(M, I, B), d = jme(M, I); break; } } @@ -106813,18 +106835,18 @@ nu.getLabelText = function(t, e) { y = O; } if (w > f) { - var S = y.matchAll(m), C = "", T = 0, L = M1e(S), E; + var S = y.matchAll(m), C = "", T = 0, A = D1e(S), E; try { - for (L.s(); !(E = L.n()).done; ) { - var A = E.value, _ = A[0], R = y.substring(T, A.index); - T = A.index + _.length; + for (A.s(); !(E = A.n()).done; ) { + var L = E.value, _ = L[0], R = y.substring(T, L.index); + T = L.index + _.length; var $ = C.length === 0 ? R : C + R + _, k = this.calculateLabelDimensions(t, $), N = k.width; N <= f ? C += R + _ : (C && g.push(C), C = R + _); } } catch (V) { - L.e(V); + A.e(V); } finally { - L.f(); + A.f(); } C.match(/^[\s\u200b]+$/) || g.push(C); } else @@ -106892,11 +106914,11 @@ nu.calculateLabelAngles = function(t) { var e = this, r = t.isEdge(), n = t._private, i = n.rscratch; i.labelAngle = e.calculateLabelAngle(t), r && (i.sourceLabelAngle = e.calculateLabelAngle(t, "source"), i.targetLabelAngle = e.calculateLabelAngle(t, "target")); }; -var jme = {}, _X = 28, AX = !1; -jme.getNodeShape = function(t) { +var Kme = {}, AX = 28, LX = !1; +Kme.getNodeShape = function(t) { var e = this, r = t.pstyle("shape").value; - if (r === "cutrectangle" && (t.width() < _X || t.height() < _X)) - return AX || (Qr("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), AX = !0), "rectangle"; + if (r === "cutrectangle" && (t.width() < AX || t.height() < AX)) + return LX || (Qr("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), LX = !0), "rectangle"; if (t.isParent()) return r === "rectangle" || r === "roundrectangle" || r === "round-rectangle" || r === "cutrectangle" || r === "cut-rectangle" || r === "barrel" ? r : "rectangle"; if (r === "polygon") { @@ -106905,8 +106927,8 @@ jme.getNodeShape = function(t) { } return r; }; -var XC = {}; -XC.registerCalculationListeners = function() { +var ZC = {}; +ZC.registerCalculationListeners = function() { var t = this.cy, e = t.collection(), r = this, n = function(a) { var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; if (e.merge(a), o) @@ -106942,11 +106964,11 @@ XC.registerCalculationListeners = function() { i(!0); }, r.beforeRender(i, r.beforeRenderPriorities.eleCalcs); }; -XC.onUpdateEleCalcs = function(t) { +ZC.onUpdateEleCalcs = function(t) { var e = this.onUpdateEleCalcsFns = this.onUpdateEleCalcsFns || []; e.push(t); }; -XC.recalculateRenderedStyle = function(t, e) { +ZC.recalculateRenderedStyle = function(t, e) { var r = function(O) { return O._private.rstyle.cleanConnected; }, n = [], i = []; @@ -106967,8 +106989,8 @@ XC.recalculateRenderedStyle = function(t, e) { } } }; -var ZC = {}; -ZC.updateCachedGrabbedEles = function() { +var jC = {}; +jC.updateCachedGrabbedEles = function() { var t = this.cachedZSortedEles; if (!!t) { t.drag = [], t.nondrag = []; @@ -106982,25 +107004,25 @@ ZC.updateCachedGrabbedEles = function() { } } }; -ZC.invalidateCachedZSortedEles = function() { +jC.invalidateCachedZSortedEles = function() { this.cachedZSortedEles = null; }; -ZC.getCachedZSortedEles = function(t) { +jC.getCachedZSortedEles = function(t) { if (t || !this.cachedZSortedEles) { var e = this.cy.mutableElements().toArray(); - e.sort(Nme), e.interactive = e.filter(function(r) { + e.sort(Ime), e.interactive = e.filter(function(r) { return r.interactive(); }), this.cachedZSortedEles = e, this.updateCachedGrabbedEles(); } else e = this.cachedZSortedEles; return e; }; -var Kme = {}; -[np, pS, Hs, Kx, HP, nu, jme, XC, ZC].forEach(function(t) { - Kt(Kme, t); -}); var Jme = {}; -Jme.getCachedImage = function(t, e, r) { +[np, gS, Hs, Kx, HP, nu, Kme, ZC, jC].forEach(function(t) { + Kt(Jme, t); +}); +var eve = {}; +eve.getCachedImage = function(t, e, r) { var n = this, i = n.imageCache = n.imageCache || {}, s = i[t]; if (s) return s.image.complete || s.image.addEventListener("load", r), s.image; @@ -107018,7 +107040,7 @@ Om.registerBinding = function(t, e, r, n) { return s.on.apply(s, i); }; Om.binder = function(t) { - var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || xKt(t); + var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || wKt(t); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -107148,7 +107170,7 @@ Om.load = function() { })) : t.registerBinding(t.container, "DOMNodeRemoved", function(he) { t.destroy(); }); - var S = IC(function() { + var S = PC(function() { t.cy.resize(); }, 100); w && (t.styleObserver = new MutationObserver(S), t.styleObserver.observe(t.container, { @@ -107165,7 +107187,7 @@ Om.load = function() { }), t.registerBinding(t.container, "contextmenu", function(he) { he.preventDefault(); }); - var L = function() { + var A = function() { return t.selection[4] !== 0; }, E = function(H) { for (var oe = t.findContainerClientCoords(), ve = oe[0], re = oe[1], ue = oe[2], fe = oe[3], de = H.touches ? H.touches : [H], ge = !1, xe = 0; xe < de.length; xe++) { @@ -107384,7 +107406,7 @@ Om.load = function() { return H.stopPropagation && H.stopPropagation(), H.preventDefault && H.preventDefault(), !1; } }, !1); - var A, _, R; + var L, _, R; t.registerBinding(e, "mouseup", function(H) { if (!(t.hoverData.which === 1 && H.which !== 1 && t.hoverData.capture)) { var oe = t.hoverData.capture; @@ -107419,10 +107441,10 @@ Om.load = function() { }), !t.dragData.didDrag && !t.hoverData.dragged && !t.hoverData.selecting && !t.hoverData.isOverThresholdDrag && (n(ge, ["click", "tap", "vclick"], H, { x: re[0], y: re[1] - }), _ = !1, H.timeStamp - R <= ve.multiClickDebounceTime() ? (A && clearTimeout(A), _ = !0, R = null, n(ge, ["dblclick", "dbltap", "vdblclick"], H, { + }), _ = !1, H.timeStamp - R <= ve.multiClickDebounceTime() ? (L && clearTimeout(L), _ = !0, R = null, n(ge, ["dblclick", "dbltap", "vdblclick"], H, { x: re[0], y: re[1] - })) : (A = setTimeout(function() { + })) : (L = setTimeout(function() { _ || n(ge, ["oneclick", "onetap", "voneclick"], H, { x: re[0], y: re[1] @@ -107455,7 +107477,7 @@ Om.load = function() { var $ = function(H) { if (!t.scrollingPage) { var oe = t.cy, ve = oe.zoom(), re = oe.pan(), ue = t.projectIntoViewport(H.clientX, H.clientY), fe = [ue[0] * ve + re.x, ue[1] * ve + re.y]; - if (t.hoverData.draggingEles || t.hoverData.dragging || t.hoverData.cxtStarted || L()) { + if (t.hoverData.draggingEles || t.hoverData.dragging || t.hoverData.cxtStarted || A()) { H.preventDefault(); return; } @@ -107969,7 +107991,7 @@ fh.generateEllipse = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return der(s, a, e, r, n / 2 + o, i / 2 + o); + return per(s, a, e, r, n / 2 + o, i / 2 + o); }, checkPoint: function(e, r, n, i, s, a, o, l) { return Bd(e, r, i, s, a, o, n); @@ -107986,7 +108008,7 @@ fh.generateRoundPolygon = function(t, e) { return l[u]; l[u] = new Array(e.length / 2), l[u + "-cx"] = n, l[u + "-cy"] = i; var h = s / 2, f = a / 2; - o = o === "auto" ? rme(s, a) : o; + o = o === "auto" ? nme(s, a) : o; for (var d = new Array(e.length / 2), p = 0; p < e.length / 2; p++) d[p] = { x: n + h * e[p * 2], @@ -108001,10 +108023,10 @@ fh.generateRoundPolygon = function(t, e) { this.renderer.nodeShapeImpl("round-polygon", n, i, s, a, o, this.points, this.getOrCreateCorners(i, s, a, o, l, u, "drawCorners")); }, intersectLine: function(n, i, s, a, o, l, u, h, f) { - return per(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); + return ger(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); }, checkPoint: function(n, i, s, a, o, l, u, h, f) { - return fer(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); + return der(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); } }; }; @@ -108017,7 +108039,7 @@ fh.generateRoundRectangle = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s, this.points, a); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return eme(s, a, e, r, n, i, o, l); + return tme(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { var u = i / 2, h = s / 2; @@ -108101,7 +108123,7 @@ fh.generateBarrel = function() { return X2(s, a, g, e, r); }, generateBarrelBezierPts: function(e, r, n, i) { - var s = r / 2, a = e / 2, o = n - a, l = n + a, u = i - s, h = i + s, f = j9(e, r), d = f.heightOffset, p = f.widthOffset, g = f.ctrlPtOffsetPct * e, m = { + var s = r / 2, a = e / 2, o = n - a, l = n + a, u = i - s, h = i + s, f = K9(e, r), d = f.heightOffset, p = f.widthOffset, g = f.ctrlPtOffsetPct * e, m = { topLeft: [o, u + d, o + g, u, o + p, u], topRight: [l - p, u, l - g, u, l, u + d], bottomRight: [l, h - d, l - g, h, l - p, h], @@ -108110,13 +108132,13 @@ fh.generateBarrel = function() { return m.topLeft.isTop = !0, m.topRight.isTop = !0, m.bottomLeft.isBottom = !0, m.bottomRight.isBottom = !0, m; }, checkPoint: function(e, r, n, i, s, a, o, l) { - var u = j9(i, s), h = u.heightOffset, f = u.widthOffset; + var u = K9(i, s), h = u.heightOffset, f = u.widthOffset; if (th(e, r, this.points, a, o, i, s - 2 * h, [0, -1], n) || th(e, r, this.points, a, o, i - 2 * f, s, [0, -1], n)) return !0; - for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(L, E, A) { - var _ = A[4], R = A[2], $ = A[0], k = A[5], N = A[1], M = Math.min(_, $), I = Math.max(_, $), D = Math.min(k, N), P = Math.max(k, N); - if (M <= L && L <= I && D <= E && E <= P) { - var F = ger(_, R, $), B = ler(F[0], F[1], F[2], L), V = B.filter(function(Q) { + for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(A, E, L) { + var _ = L[4], R = L[2], $ = L[0], k = L[5], N = L[1], M = Math.min(_, $), I = Math.max(_, $), D = Math.min(k, N), P = Math.max(k, N); + if (M <= A && A <= I && D <= E && E <= P) { + var F = mer(_, R, $), B = cer(F[0], F[1], F[2], A), V = B.filter(function(Q) { return 0 <= Q && Q <= 1; }); if (V.length > 0) @@ -108126,7 +108148,7 @@ fh.generateBarrel = function() { }, g = Object.keys(d), m = 0; m < g.length; m++) { var v = g[m], y = d[v], b = p(e, r, y); if (b != null) { - var w = y[5], O = y[3], S = y[1], C = zi(w, O, S, b); + var w = y[5], O = y[3], S = y[1], C = Vi(w, O, S, b); if (y.isTop && C <= r || y.isBottom && r <= C) return !0; } @@ -108145,7 +108167,7 @@ fh.generateBottomRoundrectangle = function() { }, intersectLine: function(e, r, n, i, s, a, o, l) { var u = e - (n / 2 + o), h = r - (i / 2 + o), f = h, d = e + (n / 2 + o), p = Qh(s, a, e, r, u, h, d, f, !1); - return p.length > 0 ? p : eme(s, a, e, r, n, i, o, l); + return p.length > 0 ? p : tme(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { l = l === "auto" ? A0(i, s) : l; @@ -108167,14 +108189,14 @@ fh.registerNodeShapes = function() { this.generatePolygon("pentagon", Js(5, 0)), this.generateRoundPolygon("round-pentagon", Js(5, 0)), this.generatePolygon("hexagon", Js(6, 0)), this.generateRoundPolygon("round-hexagon", Js(6, 0)), this.generatePolygon("heptagon", Js(7, 0)), this.generateRoundPolygon("round-heptagon", Js(7, 0)), this.generatePolygon("octagon", Js(8, 0)), this.generateRoundPolygon("round-octagon", Js(8, 0)); var n = new Array(20); { - var i = Z9(5, 0), s = Z9(5, Math.PI / 5), a = 0.5 * (3 - Math.sqrt(5)); + var i = j9(5, 0), s = j9(5, Math.PI / 5), a = 0.5 * (3 - Math.sqrt(5)); a *= 1.57; for (var o = 0; o < s.length / 2; o++) s[o * 2] *= a, s[o * 2 + 1] *= a; for (var o = 0; o < 20 / 4; o++) n[o * 4] = i[o * 2], n[o * 4 + 1] = i[o * 2 + 1], n[o * 4 + 2] = s[o * 2], n[o * 4 + 3] = s[o * 2 + 1]; } - n = tme(n), this.generatePolygon("star", n), this.generatePolygon("vee", [-1, -1, 0, -0.333, 1, -1, 0, 1]), this.generatePolygon("rhomboid", [-1, -1, 0.333, -1, 1, 1, -0.333, 1]), this.generatePolygon("right-rhomboid", [-0.333, -1, 1, -1, 0.333, 1, -1, 1]), this.nodeShapes.concavehexagon = this.generatePolygon("concave-hexagon", [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]); + n = rme(n), this.generatePolygon("star", n), this.generatePolygon("vee", [-1, -1, 0, -0.333, 1, -1, 0, 1]), this.generatePolygon("rhomboid", [-1, -1, 0.333, -1, 1, 1, -0.333, 1]), this.generatePolygon("right-rhomboid", [-0.333, -1, 1, -1, 0.333, 1, -1, 1]), this.nodeShapes.concavehexagon = this.generatePolygon("concave-hexagon", [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]); { var l = [-1, -1, 0.25, -1, 1, 0, 0.25, 1, -1, 1]; this.generatePolygon("tag", l), this.generateRoundPolygon("round-tag", l); @@ -108189,7 +108211,7 @@ Jx.timeToRender = function() { return this.redrawTotalTime / this.redrawCount; }; Jx.redraw = function(t) { - t = t || X1e(); + t = t || Z1e(); var e = this; e.averageRedrawTime === void 0 && (e.averageRedrawTime = 0), e.lastRedrawTime === void 0 && (e.lastRedrawTime = 0), e.lastDrawTime === void 0 && (e.lastDrawTime = 0), e.requestedFrame = !0, e.renderOptions = t; }; @@ -108205,7 +108227,7 @@ Jx.beforeRender = function(t, e) { }); } }; -var LX = function(e, r, n) { +var RX = function(e, r, n) { for (var i = e.beforeRenderCallbacks, s = 0; s < i.length; s++) i[s].fn(r, n); }; @@ -108217,7 +108239,7 @@ Jx.startRenderLoop = function() { if (!t.destroyed) { if (!e.batching()) if (t.requestedFrame && !t.skipFrame) { - LX(t, !0, i); + RX(t, !0, i); var s = eh(); t.render(t.renderOptions); var a = t.lastDrawTime = eh(); @@ -108225,16 +108247,16 @@ Jx.startRenderLoop = function() { var o = a - s; t.redrawTotalTime += o, t.lastRedrawTime = o, t.averageRedrawTime = t.averageRedrawTime / 2 + o / 2, t.requestedFrame = !1; } else - LX(t, !1, i); - t.skipFrame = !1, aS(n); + RX(t, !1, i); + t.skipFrame = !1, oS(n); } }; - aS(r); + oS(r); } }; -var Zir = function(e) { +var jir = function(e) { this.init(e); -}, eve = Zir, km = eve.prototype; +}, tve = jir, km = tve.prototype; km.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; km.init = function(t) { var e = this; @@ -108305,29 +108327,29 @@ km.destroy = function() { km.isHeadless = function() { return !1; }; -[WP, Kme, Jme, Om, fh, Jx].forEach(function(t) { +[WP, Jme, eve, Om, fh, Jx].forEach(function(t) { Kt(km, t); }); -var oA = 1e3 / 60, tve = { +var lA = 1e3 / 60, rve = { setupDequeueing: function(e) { return function() { var n = this, i = this.renderer; if (!n.dequeueingSetup) { n.dequeueingSetup = !0; - var s = IC(function() { + var s = PC(function() { i.redrawHint("eles", !0), i.redrawHint("drag", !0), i.redraw(); }, e.deqRedrawThreshold), a = function(u, h) { var f = eh(), d = i.averageRedrawTime, p = i.lastRedrawTime, g = [], m = i.cy.extent(), v = i.getPixelRatio(); for (u || i.flushRenderedStyleQueue(); ; ) { var y = eh(), b = y - f, w = y - h; - if (p < oA) { - var O = oA - (u ? d : 0); + if (p < lA) { + var O = lA - (u ? d : 0); if (w >= e.deqFastCost * O) break; } else if (u) { if (b >= e.deqCost * p || b >= e.deqAvgCost * d) break; - } else if (w >= e.deqNoDrawCost * oA) + } else if (w >= e.deqNoDrawCost * lA) break; var S = e.deq(n, v, m); if (S.length > 0) @@ -108342,9 +108364,9 @@ var oA = 1e3 / 60, tve = { } }; } -}, jir = /* @__PURE__ */ function() { +}, Kir = /* @__PURE__ */ function() { function t(e) { - var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : oS; + var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lS; CP(this, t), this.idsByKey = new Cc(), this.keyForId = new Cc(), this.cachesByLvl = new Cc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; } return EP(t, [{ @@ -108465,52 +108487,52 @@ var oA = 1e3 / 60, tve = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), RX = 25, YO = 50, f5 = -4, lR = 3, Kir = 7.99, Jir = 8, esr = 1024, tsr = 1024, rsr = 1024, nsr = 0.2, isr = 0.8, ssr = 10, asr = 0.15, osr = 0.1, lsr = 0.9, csr = 0.9, usr = 100, hsr = 1, Up = { +}(), MX = 25, YO = 50, f5 = -4, cR = 3, Jir = 7.99, esr = 8, tsr = 1024, rsr = 1024, nsr = 1024, isr = 0.2, ssr = 0.8, asr = 10, osr = 0.15, lsr = 0.1, csr = 0.9, usr = 0.9, hsr = 100, fsr = 1, Up = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, fsr = ws({ +}, dsr = ws({ getKey: null, - doesEleInvalidateKey: oS, + doesEleInvalidateKey: lS, drawElement: null, getBoundingBox: null, getRotationPoint: null, getRotationOffset: null, - isVisible: W1e, + isVisible: G1e, allowEdgeTxrCaching: !0, allowParentTxrCaching: !0 }), Fv = function(e, r) { var n = this; n.renderer = e, n.onDequeues = []; - var i = fsr(r); - Kt(n, i), n.lookup = new jir(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); -}, Bi = Fv.prototype; -Bi.reasons = Up; -Bi.getTextureQueue = function(t) { + var i = dsr(r); + Kt(n, i), n.lookup = new Kir(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); +}, Fi = Fv.prototype; +Fi.reasons = Up; +Fi.getTextureQueue = function(t) { var e = this; return e.eleImgCaches = e.eleImgCaches || {}, e.eleImgCaches[t] = e.eleImgCaches[t] || []; }; -Bi.getRetiredTextureQueue = function(t) { +Fi.getRetiredTextureQueue = function(t) { var e = this, r = e.eleImgCaches.retired = e.eleImgCaches.retired || {}, n = r[t] = r[t] || []; return n; }; -Bi.getElementQueue = function() { +Fi.getElementQueue = function() { var t = this, e = t.eleCacheQueue = t.eleCacheQueue || new Xx(function(r, n) { return n.reqs - r.reqs; }); return e; }; -Bi.getElementKeyToQueue = function() { +Fi.getElementKeyToQueue = function() { var t = this, e = t.eleKeyToCacheQueue = t.eleKeyToCacheQueue || {}; return e; }; -Bi.getElement = function(t, e, r, n, i) { +Fi.getElement = function(t, e, r, n, i) { var s = this, a = this.renderer, o = a.cy.zoom(), l = this.lookup; if (!e || e.w === 0 || e.h === 0 || isNaN(e.w) || isNaN(e.h) || !t.visible() || t.removed() || !s.allowEdgeTxrCaching && t.isEdge() || !s.allowParentTxrCaching && t.isParent()) return null; if (n == null && (n = Math.ceil(DP(o * r))), n < f5) n = f5; - else if (o >= Kir || n > lR) + else if (o >= Jir || n > cR) return null; var u = Math.pow(2, n), h = e.h * u, f = e.w * u, d = a.eleTextBiggerThanMin(t, u); if (!this.isVisible(t, d)) @@ -108519,7 +108541,7 @@ Bi.getElement = function(t, e, r, n, i) { if (p && p.invalidated && (p.invalidated = !1, p.texture.invalidatedWidth -= p.width), p) return p; var g; - if (h <= RX ? g = RX : h <= YO ? g = YO : g = Math.ceil(h / YO) * YO, h > rsr || f > tsr) + if (h <= MX ? g = MX : h <= YO ? g = YO : g = Math.ceil(h / YO) * YO, h > nsr || f > rsr) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -108527,23 +108549,23 @@ Bi.getElement = function(t, e, r, n, i) { v || (v = m[m.length - 1]), v || (v = y()), v.width - v.usedWidth < f && (v = y()); for (var b = function(M) { return M && M.scaledLabelShown === d; - }, w = i && i === Up.dequeue, O = i && i === Up.highQuality, S = i && i === Up.downscale, C, T = n + 1; T <= lR; T++) { - var L = l.get(t, T); - if (L) { - C = L; + }, w = i && i === Up.dequeue, O = i && i === Up.highQuality, S = i && i === Up.downscale, C, T = n + 1; T <= cR; T++) { + var A = l.get(t, T); + if (A) { + C = A; break; } } - var E = C && C.level === n + 1 ? C : null, A = function() { + var E = C && C.level === n + 1 ? C : null, L = function() { v.context.drawImage(E.texture.canvas, E.x, 0, E.width, E.height, v.usedWidth, 0, f, h); }; if (v.context.setTransform(1, 0, 0, 1, 0, 0), v.context.clearRect(v.usedWidth, 0, f, g), b(E)) - A(); + L(); else if (b(C)) if (O) { for (var _ = C.level; _ > n; _--) E = s.getElement(t, e, r, _, Up.downscale); - A(); + L(); } else return s.queueElement(t, C.level - 1), C; else { @@ -108568,16 +108590,16 @@ Bi.getElement = function(t, e, r, n, i) { width: f, height: h, scaledLabelShown: d - }, v.usedWidth += Math.ceil(f + Jir), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; + }, v.usedWidth += Math.ceil(f + esr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; }; -Bi.invalidateElements = function(t) { +Fi.invalidateElements = function(t) { for (var e = 0; e < t.length; e++) this.invalidateElement(t[e]); }; -Bi.invalidateElement = function(t) { +Fi.invalidateElement = function(t) { var e = this, r = e.lookup, n = [], i = r.isInvalid(t); if (!!i) { - for (var s = f5; s <= lR; s++) { + for (var s = f5; s <= cR; s++) { var a = r.getForCachedKey(t, s); a && n.push(a); } @@ -108590,14 +108612,14 @@ Bi.invalidateElement = function(t) { e.removeFromQueue(t); } }; -Bi.checkTextureUtility = function(t) { - t.invalidatedWidth >= nsr * t.width && this.retireTexture(t); +Fi.checkTextureUtility = function(t) { + t.invalidatedWidth >= isr * t.width && this.retireTexture(t); }; -Bi.checkTextureFullness = function(t) { +Fi.checkTextureFullness = function(t) { var e = this, r = e.getTextureQueue(t.height); - t.usedWidth / t.width > isr && t.fullnessChecks >= ssr ? Mf(r, t) : t.fullnessChecks++; + t.usedWidth / t.width > ssr && t.fullnessChecks >= asr ? Mf(r, t) : t.fullnessChecks++; }; -Bi.retireTexture = function(t) { +Fi.retireTexture = function(t) { var e = this, r = t.height, n = e.getTextureQueue(r), i = this.lookup; Mf(n, t), t.retired = !0; for (var s = t.eleCaches, a = 0; a < s.length; a++) { @@ -108608,18 +108630,18 @@ Bi.retireTexture = function(t) { var l = e.getRetiredTextureQueue(r); l.push(t); }; -Bi.addTexture = function(t, e) { +Fi.addTexture = function(t, e) { var r = this, n = r.getTextureQueue(t), i = {}; - return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(esr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; + return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(tsr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; }; -Bi.recycleTexture = function(t, e) { +Fi.recycleTexture = function(t, e) { for (var r = this, n = r.getTextureQueue(t), i = r.getRetiredTextureQueue(t), s = 0; s < i.length; s++) { var a = i[s]; if (a.width >= e) return a.retired = !1, a.usedWidth = 0, a.invalidatedWidth = 0, a.fullnessChecks = 0, MP(a.eleCaches), a.context.setTransform(1, 0, 0, 1, 0, 0), a.context.clearRect(0, 0, a.width, a.height), Mf(i, a), n.push(a), a; } }; -Bi.queueElement = function(t, e) { +Fi.queueElement = function(t, e) { var r = this, n = r.getElementQueue(), i = r.getElementKeyToQueue(), s = this.getKey(t), a = i[s]; if (a) a.level = Math.max(a.level, e), a.eles.merge(t), a.reqs++, n.updateItem(a); @@ -108633,8 +108655,8 @@ Bi.queueElement = function(t, e) { n.push(o), i[s] = o; } }; -Bi.dequeue = function(t) { - for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < hsr && r.size() > 0; a++) { +Fi.dequeue = function(t) { + for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < fsr && r.size() > 0; a++) { var o = r.pop(), l = o.key, u = o.eles[0], h = s.hasCache(u, o.level); if (n[l] = null, h) continue; @@ -108644,22 +108666,22 @@ Bi.dequeue = function(t) { } return i; }; -Bi.removeFromQueue = function(t) { +Fi.removeFromQueue = function(t) { var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = this.getKey(t), s = n[i]; s != null && (s.eles.length === 1 ? (s.reqs = LP, r.updateItem(s), r.pop(), n[i] = null) : s.eles.unmerge(t)); }; -Bi.onDequeue = function(t) { +Fi.onDequeue = function(t) { this.onDequeues.push(t); }; -Bi.offDequeue = function(t) { +Fi.offDequeue = function(t) { Mf(this.onDequeues, t); }; -Bi.setupDequeueing = tve.setupDequeueing({ - deqRedrawThreshold: usr, - deqCost: asr, - deqAvgCost: osr, - deqNoDrawCost: lsr, - deqFastCost: csr, +Fi.setupDequeueing = rve.setupDequeueing({ + deqRedrawThreshold: hsr, + deqCost: osr, + deqAvgCost: lsr, + deqNoDrawCost: csr, + deqFastCost: usr, deq: function(e, r, n) { return e.dequeue(r, n); }, @@ -108682,21 +108704,21 @@ Bi.setupDequeueing = tve.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var dsr = 1, py = -4, gS = 2, psr = 3.99, gsr = 50, msr = 50, vsr = 0.15, ysr = 0.1, bsr = 0.9, xsr = 0.9, wsr = 1, MX = 250, Osr = 4e3 * 4e3, ksr = !0, rve = function(e) { +var psr = 1, py = -4, mS = 2, gsr = 3.99, msr = 50, vsr = 50, ysr = 0.15, bsr = 0.1, xsr = 0.9, wsr = 0.9, Osr = 1, DX = 250, ksr = 4e3 * 4e3, Ssr = !0, nve = function(e) { var r = this, n = r.renderer = e, i = n.cy; - r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = eh() - 2 * MX, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = IC(function() { + r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = eh() - 2 * DX, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = PC(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); - }, msr), n.beforeRender(function(a, o) { - o - r.lastInvalidationTime <= MX ? r.skipping = !0 : r.skipping = !1; + }, vsr), n.beforeRender(function(a, o) { + o - r.lastInvalidationTime <= DX ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Xx(s), r.setupDequeueing(); -}, Os = rve.prototype, DX = 0, Ssr = Math.pow(2, 53) - 1; +}, Os = nve.prototype, NX = 0, Tsr = Math.pow(2, 53) - 1; Os.makeLayer = function(t, e) { var r = Math.pow(2, e), n = Math.ceil(t.w * r), i = Math.ceil(t.h * r), s = this.renderer.makeOffscreenCanvas(n, i), a = { - id: DX = ++DX % Ssr, + id: NX = ++NX % Tsr, bb: t, level: e, width: n, @@ -108714,17 +108736,17 @@ Os.getLayers = function(t, e, r) { if (n.firstGet = !1, r == null) { if (r = Math.ceil(DP(a * e)), r < py) r = py; - else if (a >= psr || r > gS) + else if (a >= gsr || r > mS) return null; } n.validateLayersElesOrdering(r, t); var l = n.layersByLevel, u = Math.pow(2, r), h = l[r] = l[r] || [], f, d = n.levelIsComplete(r, t), p, g = function() { - var A = function(N) { + var L = function(N) { if (n.validateLayersElesOrdering(N, t), n.levelIsComplete(N, t)) return p = l[N], !0; }, _ = function(N) { if (!p) - for (var M = r + N; py <= M && M <= gS && !A(M); M += N) + for (var M = r + N; py <= M && M <= mS && !L(M); M += N) ; }; _(1), _(-1); @@ -108739,35 +108761,35 @@ Os.getLayers = function(t, e, r) { return h; var m = function() { if (!f) { - f = Fa(); - for (var A = 0; A < t.length; A++) - K1e(f, t[A].boundingBox()); + f = za(); + for (var L = 0; L < t.length; L++) + J1e(f, t[L].boundingBox()); } return f; - }, v = function(A) { - A = A || {}; - var _ = A.after; + }, v = function(L) { + L = L || {}; + var _ = L.after; m(); var R = f.w * u * (f.h * u); - if (R > Osr) + if (R > ksr) return null; var $ = n.makeLayer(f, r); if (_ != null) { var k = h.indexOf(_) + 1; h.splice(k, 0, $); } else - (A.insert === void 0 || A.insert) && h.unshift($); + (L.insert === void 0 || L.insert) && h.unshift($); return $; }; if (n.skipping && !o) return null; - for (var y = null, b = t.length / dsr, w = !o, O = 0; O < t.length; O++) { - var S = t[O], C = S._private.rscratch, T = C.imgLayerCaches = C.imgLayerCaches || {}, L = T[r]; - if (L) { - y = L; + for (var y = null, b = t.length / psr, w = !o, O = 0; O < t.length; O++) { + var S = t[O], C = S._private.rscratch, T = C.imgLayerCaches = C.imgLayerCaches || {}, A = T[r]; + if (A) { + y = A; continue; } - if ((!y || y.eles.length >= b || !J1e(y.bb, S.boundingBox())) && (y = v({ + if ((!y || y.eles.length >= b || !eme(y.bb, S.boundingBox())) && (y = v({ insert: !0, after: y }), !y)) @@ -108781,7 +108803,7 @@ Os.getEleLevelForLayerLevel = function(t, e) { }; Os.drawEleInLayer = function(t, e, r, n) { var i = this, s = this.renderer, a = t.context, o = e.boundingBox(); - o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, ksr), s.setImgSmoothing(a, !0)); + o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Ssr), s.setImgSmoothing(a, !0)); }; Os.levelIsComplete = function(t, e) { var r = this, n = r.layersByLevel[t]; @@ -108817,13 +108839,13 @@ Os.validateLayersElesOrdering = function(t, e) { }; Os.updateElementsInLayers = function(t, e) { for (var r = this, n = Gx(t[0]), i = 0; i < t.length; i++) - for (var s = n ? null : t[i], a = n ? t[i] : t[i].ele, o = a._private.rscratch, l = o.imgLayerCaches = o.imgLayerCaches || {}, u = py; u <= gS; u++) { + for (var s = n ? null : t[i], a = n ? t[i] : t[i].ele, o = a._private.rscratch, l = o.imgLayerCaches = o.imgLayerCaches || {}, u = py; u <= mS; u++) { var h = l[u]; !h || s && r.getEleLevelForLayerLevel(h.level) !== s.level || e(h, a, s); } }; Os.haveLayers = function() { - for (var t = this, e = !1, r = py; r <= gS; r++) { + for (var t = this, e = !1, r = py; r <= mS; r++) { var n = t.layersByLevel[r]; if (n && n.length > 0) { e = !0; @@ -108872,7 +108894,7 @@ Os.queueLayer = function(t, e) { } }; Os.dequeue = function(t) { - for (var e = this, r = e.layersQueue, n = [], i = 0; i < wsr && r.size() !== 0; ) { + for (var e = this, r = e.layersQueue, n = [], i = 0; i < Osr && r.size() !== 0; ) { var s = r.peek(); if (s.replacement) { r.pop(); @@ -108902,40 +108924,40 @@ Os.applyLayerReplacement = function(t) { e.requestRedraw(); } }; -Os.requestRedraw = IC(function() { +Os.requestRedraw = PC(function() { var t = this.renderer; t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); -Os.setupDequeueing = tve.setupDequeueing({ - deqRedrawThreshold: gsr, - deqCost: vsr, - deqAvgCost: ysr, - deqNoDrawCost: bsr, - deqFastCost: xsr, +Os.setupDequeueing = rve.setupDequeueing({ + deqRedrawThreshold: msr, + deqCost: ysr, + deqAvgCost: bsr, + deqNoDrawCost: xsr, + deqFastCost: wsr, deq: function(e, r) { return e.dequeue(r); }, onDeqd: RP, - shouldRedraw: W1e, + shouldRedraw: G1e, priority: function(e) { return e.renderer.beforeRenderPriorities.lyrTxrDeq; } }); -var nve = {}, NX; -function Tsr(t, e) { +var ive = {}, IX; +function Csr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; t.lineTo(n.x, n.y); } } -function Csr(t, e, r) { +function Esr(t, e, r) { for (var n, i = 0; i < e.length; i++) { var s = e[i]; i === 0 && (n = s), t.lineTo(s.x, s.y); } t.quadraticCurveTo(r.x, r.y, n.x, n.y); } -function IX(t, e, r) { +function PX(t, e, r) { t.beginPath && t.beginPath(); for (var n = e, i = 0; i < n.length; i++) { var s = n[i]; @@ -108949,7 +108971,7 @@ function IX(t, e, r) { } t.closePath && t.closePath(); } -function Esr(t, e, r, n, i) { +function _sr(t, e, r, n, i) { t.beginPath && t.beginPath(), t.arc(r, n, i, 0, Math.PI * 2, !1); var s = e, a = s[0]; t.moveTo(a.x, a.y); @@ -108959,17 +108981,17 @@ function Esr(t, e, r, n, i) { } t.closePath && t.closePath(); } -function _sr(t, e, r, n) { +function Asr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } -nve.arrowShapeImpl = function(t) { - return (NX || (NX = { - polygon: Tsr, - "triangle-backcurve": Csr, - "triangle-tee": IX, - "circle-triangle": Esr, - "triangle-cross": IX, - circle: _sr +ive.arrowShapeImpl = function(t) { + return (IX || (IX = { + polygon: Csr, + "triangle-backcurve": Esr, + "triangle-tee": PX, + "circle-triangle": _sr, + "triangle-cross": PX, + circle: Asr }))[t]; }; var iu = {}; @@ -109001,30 +109023,30 @@ iu.drawCachedElementPortion = function(t, e, r, n, i, s, a, o) { y = T.x, b = T.y; } else y = p, b = g; - var L; - f !== 1 && (L = t.globalAlpha, t.globalAlpha = L * f), t.drawImage(h.texture.canvas, h.x, 0, h.width, h.height, y, b, m, v), f !== 1 && (t.globalAlpha = L), d !== 0 && (t.rotate(-d), t.translate(-w, -O), S || l.setImgSmoothing(t, !1)); + var A; + f !== 1 && (A = t.globalAlpha, t.globalAlpha = A * f), t.drawImage(h.texture.canvas, h.x, 0, h.width, h.height, y, b, m, v), f !== 1 && (t.globalAlpha = A), d !== 0 && (t.rotate(-d), t.translate(-w, -O), S || l.setImgSmoothing(t, !1)); } else r.drawElement(t, e); } }; -var Asr = function() { +var Lsr = function() { return 0; -}, Lsr = function(e, r) { - return e.getTextAngle(r, null); }, Rsr = function(e, r) { - return e.getTextAngle(r, "source"); + return e.getTextAngle(r, null); }, Msr = function(e, r) { - return e.getTextAngle(r, "target"); + return e.getTextAngle(r, "source"); }, Dsr = function(e, r) { + return e.getTextAngle(r, "target"); +}, Nsr = function(e, r) { return r.effectiveOpacity(); -}, lA = function(e, r) { +}, cA = function(e, r) { return r.pstyle("text-opacity").pfValue * r.effectiveOpacity(); }; iu.drawCachedElement = function(t, e, r, n, i, s) { var a = this, o = a.data, l = o.eleTxrCache, u = o.lblTxrCache, h = o.slbTxrCache, f = o.tlbTxrCache, d = e.boundingBox(), p = s === !0 ? l.reasons.highQuality : null; if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || NP(d, n))) { var g = e.isEdge(), m = e.element()._private.rscratch.badLine; - a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Asr, Dsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Lsr, lA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Rsr, lA), a.drawCachedElementPortion(t, e, f, r, i, p, Msr, lA)), a.drawElementOverlay(t, e); + a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Lsr, Nsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Rsr, cA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Msr, cA), a.drawCachedElementPortion(t, e, f, r, i, p, Dsr, cA)), a.drawElementOverlay(t, e); } }; iu.drawElements = function(t, e) { @@ -109080,20 +109102,20 @@ dh.drawEdge = function(t, e, r) { }, T = function() { var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : b; a.drawArrowheads(t, e, N); - }, L = function() { + }, A = function() { a.drawElementText(t, e, null, n); }; t.lineJoin = "round"; var E = e.pstyle("ghost").value === "yes"; if (E) { - var A = e.pstyle("ghost-offset-x").pfValue, _ = e.pstyle("ghost-offset-y").pfValue, R = e.pstyle("ghost-opacity").value, $ = y * R; - t.translate(A, _), w($), T($), t.translate(-A, -_); + var L = e.pstyle("ghost-offset-x").pfValue, _ = e.pstyle("ghost-offset-y").pfValue, R = e.pstyle("ghost-opacity").value, $ = y * R; + t.translate(L, _), w($), T($), t.translate(-L, -_); } else O(); - C(), w(), T(), S(), L(), r && t.translate(l.x1, l.y1); + C(), w(), T(), S(), A(), r && t.translate(l.x1, l.y1); } }; -var ive = function(e) { +var sve = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n) { @@ -109106,8 +109128,8 @@ var ive = function(e) { } }; }; -dh.drawEdgeOverlay = ive("overlay"); -dh.drawEdgeUnderlay = ive("underlay"); +dh.drawEdgeOverlay = sve("overlay"); +dh.drawEdgeUnderlay = sve("underlay"); dh.drawEdgePath = function(t, e, r, n) { var i = t._private.rscratch, s = e, a, o = !1, l = this.usePaths(), u = t.pstyle("line-dash-pattern").pfValue, h = t.pstyle("line-dash-offset").pfValue; if (l) { @@ -109142,11 +109164,11 @@ dh.drawEdgePath = function(t, e, r, n) { break; case "segments": if (i.isRound) { - var m = M1e(i.roundCorners), v; + var m = D1e(i.roundCorners), v; try { for (m.s(); !(v = m.n()).done; ) { var y = v.value; - Gme(e, y); + Hme(e, y); } } catch (w) { m.e(w); @@ -109213,21 +109235,21 @@ XP.safeDrawImage = function(t, e, r, n, i, s, a, o, l, u) { XP.drawInscribedImage = function(t, e, r, n, i) { var s = this, a = r.position(), o = a.x, l = a.y, u = r.cy().style(), h = u.getIndexedStyle.bind(u), f = h(r, "background-fit", "value", n), d = h(r, "background-repeat", "value", n), p = r.width(), g = r.height(), m = r.padding() * 2, v = p + (h(r, "background-width-relative-to", "value", n) === "inner" ? 0 : m), y = g + (h(r, "background-height-relative-to", "value", n) === "inner" ? 0 : m), b = r._private.rscratch, w = h(r, "background-clip", "value", n), O = w === "node", S = h(r, "background-image-opacity", "value", n) * i, C = h(r, "background-image-smoothing", "value", n), T = r.pstyle("corner-radius").value; T !== "auto" && (T = r.pstyle("corner-radius").pfValue); - var L = e.width || e.cachedW, E = e.height || e.cachedH; - (L == null || E == null) && (document.body.appendChild(e), L = e.cachedW = e.width || e.offsetWidth, E = e.cachedH = e.height || e.offsetHeight, document.body.removeChild(e)); - var A = L, _ = E; - if (h(r, "background-width", "value", n) !== "auto" && (h(r, "background-width", "units", n) === "%" ? A = h(r, "background-width", "pfValue", n) * v : A = h(r, "background-width", "pfValue", n)), h(r, "background-height", "value", n) !== "auto" && (h(r, "background-height", "units", n) === "%" ? _ = h(r, "background-height", "pfValue", n) * y : _ = h(r, "background-height", "pfValue", n)), !(A === 0 || _ === 0)) { + var A = e.width || e.cachedW, E = e.height || e.cachedH; + (A == null || E == null) && (document.body.appendChild(e), A = e.cachedW = e.width || e.offsetWidth, E = e.cachedH = e.height || e.offsetHeight, document.body.removeChild(e)); + var L = A, _ = E; + if (h(r, "background-width", "value", n) !== "auto" && (h(r, "background-width", "units", n) === "%" ? L = h(r, "background-width", "pfValue", n) * v : L = h(r, "background-width", "pfValue", n)), h(r, "background-height", "value", n) !== "auto" && (h(r, "background-height", "units", n) === "%" ? _ = h(r, "background-height", "pfValue", n) * y : _ = h(r, "background-height", "pfValue", n)), !(L === 0 || _ === 0)) { if (f === "contain") { - var R = Math.min(v / A, y / _); - A *= R, _ *= R; + var R = Math.min(v / L, y / _); + L *= R, _ *= R; } else if (f === "cover") { - var R = Math.max(v / A, y / _); - A *= R, _ *= R; + var R = Math.max(v / L, y / _); + L *= R, _ *= R; } var $ = o - v / 2, k = h(r, "background-position-x", "units", n), N = h(r, "background-position-x", "pfValue", n); - k === "%" ? $ += (v - A) * N : $ += N; + k === "%" ? $ += (v - L) * N : $ += N; var M = h(r, "background-offset-x", "units", n), I = h(r, "background-offset-x", "pfValue", n); - M === "%" ? $ += (v - A) * I : $ += I; + M === "%" ? $ += (v - L) * I : $ += I; var D = l - y / 2, P = h(r, "background-position-y", "units", n), F = h(r, "background-position-y", "pfValue", n); P === "%" ? D += (y - _) * F : D += F; var B = h(r, "background-offset-y", "units", n), V = h(r, "background-offset-y", "pfValue", n); @@ -109236,7 +109258,7 @@ XP.drawInscribedImage = function(t, e, r, n, i) { t.globalAlpha = S; var W = s.getImgSmoothing(t), ee = !1; if (C === "no" && W ? (s.setImgSmoothing(t, !1), ee = !0) : C === "yes" && !W && (s.setImgSmoothing(t, !0), ee = !0), d === "no-repeat") - O && (t.save(), b.pathCache ? t.clip(b.pathCache) : (s.nodeShapes[s.getNodeShape(r)].draw(t, o, l, v, y, T, b), t.clip())), s.safeDrawImage(t, e, 0, 0, L, E, $, D, A, _), O && t.restore(); + O && (t.save(), b.pathCache ? t.clip(b.pathCache) : (s.nodeShapes[s.getNodeShape(r)].draw(t, o, l, v, y, T, b), t.clip())), s.safeDrawImage(t, e, 0, 0, A, E, $, D, L, _), O && t.restore(); else { var Y = t.createPattern(e, d); t.fillStyle = Y, s.nodeShapes[s.getNodeShape(r)].draw(t, o, l, v, y, T, b), t.translate($, D), t.fill(), t.translate(-$, -D); @@ -109289,7 +109311,7 @@ ip.setupTextStyle = function(t, e) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, n = e.pstyle("font-style").strValue, i = e.pstyle("font-size").pfValue + "px", s = e.pstyle("font-family").strValue, a = e.pstyle("font-weight").strValue, o = r ? e.effectiveOpacity() * e.pstyle("text-opacity").value : 1, l = e.pstyle("text-outline-opacity").value * o, u = e.pstyle("color").value, h = e.pstyle("text-outline-color").value; t.font = n + " " + a + " " + i + " " + s, t.lineJoin = "round", this.colorFillStyle(t, u[0], u[1], u[2], o), this.colorStrokeStyle(t, h[0], h[1], h[2], l); }; -function cA(t, e, r, n, i) { +function uA(t, e, r, n, i) { var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 5, a = arguments.length > 6 ? arguments[6] : void 0; t.beginPath(), t.moveTo(e + s, r), t.lineTo(e + n - s, r), t.quadraticCurveTo(e + n, r, e + n, r + s), t.lineTo(e + n, r + i - s), t.quadraticCurveTo(e + n, r + i, e + n - s, r + i), t.lineTo(e + s, r + i), t.quadraticCurveTo(e, r + i, e, r + i - s), t.lineTo(e, r + s), t.quadraticCurveTo(e, r, e + s, r), t.closePath(), a ? t.stroke() : t.fill(); } @@ -109317,8 +109339,8 @@ ip.drawText = function(t, e, r) { u += m; break; } - var C = e.pstyle("text-background-opacity").value, T = e.pstyle("text-border-opacity").value, L = e.pstyle("text-border-width").pfValue, E = e.pstyle("text-background-padding").pfValue, A = e.pstyle("text-background-shape").strValue, _ = A.indexOf("round") === 0, R = 2; - if (C > 0 || L > 0 && T > 0) { + var C = e.pstyle("text-background-opacity").value, T = e.pstyle("text-border-opacity").value, A = e.pstyle("text-border-width").pfValue, E = e.pstyle("text-background-padding").pfValue, L = e.pstyle("text-background-shape").strValue, _ = L.indexOf("round") === 0, R = 2; + if (C > 0 || A > 0 && T > 0) { var $ = l - E; switch (w) { case "left": @@ -109331,11 +109353,11 @@ ip.drawText = function(t, e, r) { var k = u - m - E, N = g + 2 * E, M = m + 2 * E; if (C > 0) { var I = t.fillStyle, D = e.pstyle("text-background-color").value; - t.fillStyle = "rgba(" + D[0] + "," + D[1] + "," + D[2] + "," + C * o + ")", _ ? cA(t, $, k, N, M, R) : t.fillRect($, k, N, M), t.fillStyle = I; + t.fillStyle = "rgba(" + D[0] + "," + D[1] + "," + D[2] + "," + C * o + ")", _ ? uA(t, $, k, N, M, R) : t.fillRect($, k, N, M), t.fillStyle = I; } - if (L > 0 && T > 0) { + if (A > 0 && T > 0) { var P = t.strokeStyle, F = t.lineWidth, B = e.pstyle("text-border-color").value, V = e.pstyle("text-border-style").value; - if (t.strokeStyle = "rgba(" + B[0] + "," + B[1] + "," + B[2] + "," + T * o + ")", t.lineWidth = L, t.setLineDash) + if (t.strokeStyle = "rgba(" + B[0] + "," + B[1] + "," + B[2] + "," + T * o + ")", t.lineWidth = A, t.setLineDash) switch (V) { case "dotted": t.setLineDash([1, 1]); @@ -109344,15 +109366,15 @@ ip.drawText = function(t, e, r) { t.setLineDash([4, 2]); break; case "double": - t.lineWidth = L / 4, t.setLineDash([]); + t.lineWidth = A / 4, t.setLineDash([]); break; case "solid": t.setLineDash([]); break; } - if (_ ? cA(t, $, k, N, M, R, "stroke") : t.strokeRect($, k, N, M), V === "double") { - var Q = L / 2; - _ ? cA(t, $ + Q, k + Q, N - Q * 2, M - Q * 2, R, "stroke") : t.strokeRect($ + Q, k + Q, N - Q * 2, M - Q * 2); + if (_ ? uA(t, $, k, N, M, R, "stroke") : t.strokeRect($, k, N, M), V === "double") { + var Q = A / 2; + _ ? uA(t, $ + Q, k + Q, N - Q * 2, M - Q * 2, R, "stroke") : t.strokeRect($ + Q, k + Q, N - Q * 2, M - Q * 2); } t.setLineDash && t.setLineDash([]), t.lineWidth = F, t.strokeStyle = P; } @@ -109386,10 +109408,10 @@ Sm.drawNode = function(t, e, r) { var y; r && (y = r, t.translate(-y.x1, -y.y1)); for (var b = e.pstyle("background-image"), w = b.value, O = new Array(w.length), S = new Array(w.length), C = 0, T = 0; T < w.length; T++) { - var L = w[T], E = O[T] = L != null && L !== "none"; + var A = w[T], E = O[T] = A != null && A !== "none"; if (E) { - var A = e.cy().style().getIndexedStyle(e, "background-image-crossorigin", "value", T); - C++, S[T] = a.getCachedImage(L, A, function() { + var L = e.cy().style().getIndexedStyle(e, "background-image-crossorigin", "value", T); + C++, S[T] = a.getCachedImage(A, L, function() { u.backgroundTimestamp = Date.now(), e.emitAndNotify("background"); }); } @@ -109406,7 +109428,7 @@ Sm.drawNode = function(t, e, r) { var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ee; a.colorStrokeStyle(t, Q[0], Q[1], Q[2], fe); }, G = function(fe, de, ge, xe) { - var ke = a.nodePathCache = a.nodePathCache || [], Ce = Y1e(ge === "polygon" ? ge + "," + xe.join(",") : ge, "" + de, "" + fe, "" + ne), Oe = ke[Ce], Me, Te = !1; + var ke = a.nodePathCache = a.nodePathCache || [], Ce = W1e(ge === "polygon" ? ge + "," + xe.join(",") : ge, "" + de, "" + fe, "" + ne), Oe = ke[Ce], Me, Te = !1; return Oe != null ? (Me = Oe, Te = !0, h.pathCache = Me) : (Me = new Path2D(), ke[Ce] = h.pathCache = Me), { path: Me, cacheHit: Te @@ -109505,7 +109527,7 @@ Sm.drawNode = function(t, e, r) { a.drawEllipsePath(Te || t, fe.x, fe.y, Ce, Oe); else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(de)) { var Ne = 0, Ke = 0, je = 0; - de === "round-diamond" ? Ne = (ge + Y + V) * 1.4 : de === "round-heptagon" ? (Ne = (ge + Y + V) * 1.075, je = -(ge / 2 + Y + V) / 35) : de === "round-hexagon" ? Ne = (ge + Y + V) * 1.12 : de === "round-pentagon" ? (Ne = (ge + Y + V) * 1.13, je = -(ge / 2 + Y + V) / 15) : de === "round-tag" ? (Ne = (ge + Y + V) * 1.12, Ke = (ge / 2 + V + Y) * 0.07) : de === "round-triangle" && (Ne = (ge + Y + V) * (Math.PI / 2), je = -(ge + Y / 2 + V) / Math.PI), Ne !== 0 && (xe = (o + Ne) / o, Ce = o * xe, ["round-hexagon", "round-tag"].includes(de) || (ke = (l + Ne) / l, Oe = l * ke)), ne = ne === "auto" ? rme(Ce, Oe) : ne; + de === "round-diamond" ? Ne = (ge + Y + V) * 1.4 : de === "round-heptagon" ? (Ne = (ge + Y + V) * 1.075, je = -(ge / 2 + Y + V) / 35) : de === "round-hexagon" ? Ne = (ge + Y + V) * 1.12 : de === "round-pentagon" ? (Ne = (ge + Y + V) * 1.13, je = -(ge / 2 + Y + V) / 15) : de === "round-tag" ? (Ne = (ge + Y + V) * 1.12, Ke = (ge / 2 + V + Y) * 0.07) : de === "round-triangle" && (Ne = (ge + Y + V) * (Math.PI / 2), je = -(ge + Y / 2 + V) / Math.PI), Ne !== 0 && (xe = (o + Ne) / o, Ce = o * xe, ["round-hexagon", "round-tag"].includes(de) || (ke = (l + Ne) / l, Oe = l * ke)), ne = ne === "auto" ? nme(Ce, Oe) : ne; for (var ut = Ce / 2, ft = Oe / 2, ot = ne + (ge + V + Y) / 2, We = new Array(Me.length / 2), Qe = new Array(Me.length / 2), pt = 0; pt < Me.length / 2; pt++) We[pt] = { x: fe.x + Ke + ut * Me[pt * 2], @@ -109525,10 +109547,10 @@ Sm.drawNode = function(t, e, r) { a.drawBarrelPath(Te || t, fe.x, fe.y, Ce, Oe); else if (de.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(de)) { var dt = (ge + V + Y) / o; - Me = lS(cS(Me, dt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); + Me = cS(uS(Me, dt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); } else { var zt = (ge + V + Y) / o; - Me = lS(cS(Me, -zt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); + Me = cS(uS(Me, -zt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); } if (p ? t.stroke(Te) : t.stroke(), W === "double") { t.lineWidth = ge / 3; @@ -109551,7 +109573,7 @@ Sm.drawNode = function(t, e, r) { p && t.translate(-f.x, -f.y), Ye(), p && t.translate(f.x, f.y), Z(), Ue(), ie(), K(), _e(d, !0), U(), Ae(), ce(_ !== 0 || R !== 0), _e(d, !1), Ee(), p && t.translate(-f.x, -f.y), De(), Ge(), r && t.translate(y.x1, y.y1); } }; -var sve = function(e) { +var ave = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n, i, s, a) { @@ -109568,8 +109590,8 @@ var sve = function(e) { } }; }; -Sm.drawNodeOverlay = sve("overlay"); -Sm.drawNodeUnderlay = sve("underlay"); +Sm.drawNodeOverlay = ave("overlay"); +Sm.drawNodeUnderlay = ave("underlay"); Sm.hasPie = function(t) { return t = t[0], t._private.hasPie; }; @@ -109584,7 +109606,7 @@ Sm.drawPie = function(t, e, r, n) { g === 0 || f >= 1 || f + y > 1 || (t.beginPath(), t.moveTo(a, o), t.arc(a, o, h, b, O), t.closePath(), this.colorFillStyle(t, m[0], m[1], m[2], v), t.fill(), f += y); } }; -var yo = {}, Nsr = 100; +var yo = {}, Isr = 100; yo.getPixelRatio = function() { var t = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -109622,8 +109644,8 @@ yo.createGradientStyleFor = function(t, e, r, n, i) { var w = a ? { x: 0, y: 0 - } : r.position(), O = r.paddedWidth(), S = r.paddedHeight(), C = O / 2, T = S / 2, L = r.pstyle("background-gradient-direction").value; - switch (L) { + } : r.position(), O = r.paddedWidth(), S = r.paddedHeight(), C = O / 2, T = S / 2, A = r.pstyle("background-gradient-direction").value; + switch (A) { case "to-bottom": s = t.createLinearGradient(w.x, w.y - T, w.x, w.y + T); break; @@ -109656,8 +109678,8 @@ yo.createGradientStyleFor = function(t, e, r, n, i) { } if (!s) return null; - for (var E = l.length === o.length, A = o.length, _ = 0; _ < A; _++) - s.addColorStop(E ? l[_] : _ / (A - 1), "rgba(" + o[_][0] + "," + o[_][1] + "," + o[_][2] + "," + i + ")"); + for (var E = l.length === o.length, L = o.length, _ = 0; _ < L; _++) + s.addColorStop(E ? l[_] : _ / (L - 1), "rgba(" + o[_][0] + "," + o[_][1] + "," + o[_][2] + "," + i + ")"); return s; }; yo.gradientFillStyle = function(t, e, r, n) { @@ -109721,7 +109743,7 @@ yo.renderTo = function(t, e, r, n) { }); }; yo.render = function(t) { - t = t || X1e(); + t = t || Z1e(); var e = t.forcedContext, r = t.drawAllLayers, n = t.drawOnlyNodeLayer, i = t.forcedZoom, s = t.forcedPan, a = this, o = t.forcedPxRatio === void 0 ? this.getPixelRatio() : t.forcedPxRatio, l = a.cy, u = a.data, h = u.canvasNeedsRedraw, f = a.textureOnViewport && !e && (a.pinching || a.hoverData.dragging || a.swipePanning || a.data.wheelZooming), d = t.motionBlur !== void 0 ? t.motionBlur : a.motionBlur, p = a.motionBlurPxRatio, g = l.hasCompoundNodes(), m = a.hoverData.draggingEles, v = !!(a.hoverData.selecting || a.touchData.selecting); d = d && !e && a.motionBlurEnabled && !v; var y = d; @@ -109735,9 +109757,9 @@ yo.render = function(t) { x: S.x, y: S.y } - }, L = a.prevViewport, E = L === void 0 || T.zoom !== L.zoom || T.pan.x !== L.pan.x || T.pan.y !== L.pan.y; + }, A = a.prevViewport, E = A === void 0 || T.zoom !== A.zoom || T.pan.x !== A.pan.x || T.pan.y !== A.pan.y; !E && !(m && !g) && (a.motionBlurPxRatio = 1), s && (C = s), O *= o, C.x *= o, C.y *= o; - var A = a.getCachedZSortedEles(); + var L = a.getCachedZSortedEles(); function _(se, K, _e, ce, Ee) { var Ae = se.globalCompositeOperation; se.globalCompositeOperation = "destination-out", a.colorFillStyle(se, 255, 255, 255, a.motionBlurTransparency), se.fillRect(K, _e, ce, Ee), se.globalCompositeOperation = Ae; @@ -109781,11 +109803,11 @@ yo.render = function(t) { var D = l.extent(), P = a.pinching || a.hoverData.dragging || a.swipePanning || a.data.wheelZooming || a.hoverData.draggingEles || a.cy.animated(), F = a.hideEdgesOnViewport && P, B = []; if (B[a.NODE] = !h[a.NODE] && d && !a.clearedForMotionBlur[a.NODE] || a.clearingMotionBlur, B[a.NODE] && (a.clearedForMotionBlur[a.NODE] = !0), B[a.DRAG] = !h[a.DRAG] && d && !a.clearedForMotionBlur[a.DRAG] || a.clearingMotionBlur, B[a.DRAG] && (a.clearedForMotionBlur[a.DRAG] = !0), h[a.NODE] || r || n || B[a.NODE]) { var V = d && !B[a.NODE] && p !== 1, k = e || (V ? a.data.bufferContexts[a.MOTIONBLUR_BUFFER_NODE] : u.contexts[a.NODE]), Q = d && !V ? "motionBlur" : void 0; - R(k, Q), F ? a.drawCachedNodes(k, A.nondrag, o, D) : a.drawLayeredElements(k, A.nondrag, o, D), a.debug && a.drawDebugPoints(k, A.nondrag), !r && !d && (h[a.NODE] = !1); + R(k, Q), F ? a.drawCachedNodes(k, L.nondrag, o, D) : a.drawLayeredElements(k, L.nondrag, o, D), a.debug && a.drawDebugPoints(k, L.nondrag), !r && !d && (h[a.NODE] = !1); } if (!n && (h[a.DRAG] || r || B[a.DRAG])) { var V = d && !B[a.DRAG] && p !== 1, k = e || (V ? a.data.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG] : u.contexts[a.DRAG]); - R(k, d && !V ? "motionBlur" : void 0), F ? a.drawCachedNodes(k, A.drag, o, D) : a.drawCachedElements(k, A.drag, o, D), a.debug && a.drawDebugPoints(k, A.drag), !r && !d && (h[a.DRAG] = !1); + R(k, d && !V ? "motionBlur" : void 0), F ? a.drawCachedNodes(k, L.drag, o, D) : a.drawCachedElements(k, L.drag, o, D), a.debug && a.drawDebugPoints(k, L.drag), !r && !d && (h[a.DRAG] = !1); } if (a.showFps || !n && h[a.SELECT_BOX] && !r) { var k = e || u.contexts[a.SELECT_BOX]; @@ -109827,7 +109849,7 @@ yo.render = function(t) { } a.prevViewport = T, a.clearingMotionBlur && (a.clearingMotionBlur = !1, a.motionBlurCleared = !0, a.motionBlur = !0), d && (a.motionBlurTimeout = setTimeout(function() { a.motionBlurTimeout = null, a.clearedForMotionBlur[a.NODE] = !1, a.clearedForMotionBlur[a.DRAG] = !1, a.motionBlur = !1, a.clearingMotionBlur = !f, a.mbFrames = 0, h[a.NODE] = !0, h[a.DRAG] = !0, a.redraw(); - }, Nsr)), e || l.emit("render"); + }, Isr)), e || l.emit("render"); }; var Wf = {}; Wf.drawPolygonPath = function(t, e, r, n, i, s) { @@ -109839,7 +109861,7 @@ Wf.drawPolygonPath = function(t, e, r, n, i, s) { }; Wf.drawRoundPolygonPath = function(t, e, r, n, i, s, a) { a.forEach(function(o) { - return Gme(t, o); + return Hme(t, o); }), t.closePath(); }; Wf.drawRoundRectanglePath = function(t, e, r, n, i, s) { @@ -109855,18 +109877,18 @@ Wf.drawCutRectanglePath = function(t, e, r, n, i, s, a) { t.beginPath && t.beginPath(), t.moveTo(e - o + u, r - l), t.lineTo(e + o - u, r - l), t.lineTo(e + o, r - l + u), t.lineTo(e + o, r + l - u), t.lineTo(e + o - u, r + l), t.lineTo(e - o + u, r + l), t.lineTo(e - o, r + l - u), t.lineTo(e - o, r - l + u), t.closePath(); }; Wf.drawBarrelPath = function(t, e, r, n, i) { - var s = n / 2, a = i / 2, o = e - s, l = e + s, u = r - a, h = r + a, f = j9(n, i), d = f.widthOffset, p = f.heightOffset, g = f.ctrlPtOffsetPct * d; + var s = n / 2, a = i / 2, o = e - s, l = e + s, u = r - a, h = r + a, f = K9(n, i), d = f.widthOffset, p = f.heightOffset, g = f.ctrlPtOffsetPct * d; t.beginPath && t.beginPath(), t.moveTo(o, u + p), t.lineTo(o, h - p), t.quadraticCurveTo(o + g, h, o + d, h), t.lineTo(l - d, h), t.quadraticCurveTo(l - g, h, l, h - p), t.lineTo(l, u + p), t.quadraticCurveTo(l - g, u, l - d, u), t.lineTo(o + d, u), t.quadraticCurveTo(o + g, u, o, u + p), t.closePath(); }; -var PX = Math.sin(0), $X = Math.cos(0), cR = {}, uR = {}, ave = Math.PI / 40; -for (var bp = 0 * Math.PI; bp < 2 * Math.PI; bp += ave) - cR[bp] = Math.sin(bp), uR[bp] = Math.cos(bp); +var $X = Math.sin(0), BX = Math.cos(0), uR = {}, hR = {}, ove = Math.PI / 40; +for (var bp = 0 * Math.PI; bp < 2 * Math.PI; bp += ove) + uR[bp] = Math.sin(bp), hR[bp] = Math.cos(bp); Wf.drawEllipsePath = function(t, e, r, n, i) { if (t.beginPath && t.beginPath(), t.ellipse) t.ellipse(e, r, n / 2, i / 2, 0, 0, 2 * Math.PI); else - for (var s, a, o = n / 2, l = i / 2, u = 0 * Math.PI; u < 2 * Math.PI; u += ave) - s = e - o * cR[u] * PX + o * uR[u] * $X, a = r + l * uR[u] * PX + l * cR[u] * $X, u === 0 ? t.moveTo(s, a) : t.lineTo(s, a); + for (var s, a, o = n / 2, l = i / 2, u = 0 * Math.PI; u < 2 * Math.PI; u += ove) + s = e - o * uR[u] * $X + o * hR[u] * BX, a = r + l * hR[u] * $X + l * uR[u] * BX, u === 0 ? t.moveTo(s, a) : t.lineTo(s, a); t.closePath(); }; var ew = {}; @@ -109902,18 +109924,18 @@ ew.bufferCanvasImage = function(t) { } return d; }; -function Isr(t, e) { +function Psr(t, e) { for (var r = atob(t), n = new ArrayBuffer(r.length), i = new Uint8Array(n), s = 0; s < r.length; s++) i[s] = r.charCodeAt(s); return new Blob([n], { type: e }); } -function BX(t) { +function FX(t) { var e = t.indexOf(","); return t.substr(e + 1); } -function ove(t, e, r) { +function lve(t, e, r) { var n = function() { return e.toDataURL(r, t.quality); }; @@ -109929,22 +109951,22 @@ function ove(t, e, r) { } }); case "blob": - return Isr(BX(n()), r); + return Psr(FX(n()), r); case "base64": - return BX(n()); + return FX(n()); case "base64uri": default: return n(); } } ew.png = function(t) { - return ove(t, this.bufferCanvasImage(t), "image/png"); + return lve(t, this.bufferCanvasImage(t), "image/png"); }; ew.jpg = function(t) { - return ove(t, this.bufferCanvasImage(t), "image/jpeg"); + return lve(t, this.bufferCanvasImage(t), "image/jpeg"); }; -var lve = {}; -lve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { +var cve = {}; +cve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { switch (t) { case "ellipse": return this.drawEllipsePath(e, r, n, i, s); @@ -109965,7 +109987,7 @@ lve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var Psr = cve, Rr = cve.prototype; +var $sr = uve, Rr = uve.prototype; Rr.CANVAS_LAYERS = 3; Rr.SELECT_BOX = 0; Rr.DRAG = 1; @@ -109974,7 +109996,7 @@ Rr.BUFFER_COUNT = 3; Rr.TEXTURE_BUFFER = 0; Rr.MOTIONBLUR_BUFFER_NODE = 1; Rr.MOTIONBLUR_BUFFER_DRAG = 2; -function cve(t) { +function uve(t) { var e = this, r = e.cy.window(), n = r.document; e.data = { canvases: new Array(Rr.CANVAS_LAYERS), @@ -109996,7 +110018,7 @@ function cve(t) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - kKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); + SKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); for (var u = 0; u < Rr.CANVAS_LAYERS; u++) { var h = e.data.canvases[u] = n.createElement("canvas"); e.data.contexts[u] = h.getContext("2d"), Object.keys(l).forEach(function(ie) { @@ -110007,7 +110029,7 @@ function cve(t) { for (var u = 0; u < Rr.BUFFER_COUNT; u++) e.data.bufferCanvases[u] = n.createElement("canvas"), e.data.bufferContexts[u] = e.data.bufferCanvases[u].getContext("2d"), e.data.bufferCanvases[u].style.position = "absolute", e.data.bufferCanvases[u].setAttribute("data-id", "buffer" + u), e.data.bufferCanvases[u].style.zIndex = String(-u - 1), e.data.bufferCanvases[u].style.visibility = "hidden"; e.pathsEnabled = !0; - var f = Fa(), d = function(U) { + var f = za(), d = function(U) { return { x: (U.x1 + U.x2) / 2, y: (U.y1 + U.y2) / 2 @@ -110038,11 +110060,11 @@ function cve(t) { return e.drawElementText(U, Z, G, j, "target", ae); }, T = function(U) { return U.boundingBox(), U[0]._private.bodyBounds; - }, L = function(U) { + }, A = function(U) { return U.boundingBox(), U[0]._private.labelBounds.main || f; }, E = function(U) { return U.boundingBox(), U[0]._private.labelBounds.source || f; - }, A = function(U) { + }, L = function(U) { return U.boundingBox(), U[0]._private.labelBounds.target || f; }, _ = function(U, Z) { return Z; @@ -110071,9 +110093,9 @@ function cve(t) { }, P = function(U) { return p(E(U)); }, F = function(U) { - return p(A(U)); + return p(L(U)); }, B = function(U) { - var Z = L(U), G = p(L(U)); + var Z = A(U), G = p(A(U)); if (U.isNode()) { switch (U.pstyle("text-halign").value) { case "left": @@ -110105,7 +110127,7 @@ function cve(t) { }), Q = e.data.lblTxrCache = new Fv(e, { getKey: v, drawElement: O, - getBoundingBox: L, + getBoundingBox: A, getRotationPoint: N, getRotationOffset: B, isVisible: _ @@ -110119,11 +110141,11 @@ function cve(t) { }), ee = e.data.tlbTxrCache = new Fv(e, { getKey: b, drawElement: C, - getBoundingBox: A, + getBoundingBox: L, getRotationPoint: I, getRotationOffset: F, isVisible: _ - }), Y = e.data.lyrTxrCache = new rve(e); + }), Y = e.data.lyrTxrCache = new nve(e); e.onUpdateEleCalcs(function(U, Z) { V.invalidateElements(Z), Q.invalidateElements(Z), W.invalidateElements(Z), ee.invalidateElements(Z), Y.invalidateElements(Z); for (var G = 0; G < Z.length; G++) { @@ -110151,14 +110173,14 @@ Rr.redrawHint = function(t, e) { break; } }; -var $sr = typeof Path2D < "u"; +var Bsr = typeof Path2D < "u"; Rr.path2dEnabled = function(t) { if (t === void 0) return this.pathsEnabled; this.pathsEnabled = !!t; }; Rr.usePaths = function() { - return $sr && this.pathsEnabled; + return Bsr && this.pathsEnabled; }; Rr.setImgSmoothing = function(t, e) { t.imageSmoothingEnabled != null ? t.imageSmoothingEnabled = e : (t.webkitImageSmoothingEnabled = e, t.mozImageSmoothingEnabled = e, t.msImageSmoothingEnabled = e); @@ -110168,7 +110190,7 @@ Rr.getImgSmoothing = function(t) { }; Rr.makeOffscreenCanvas = function(t, e) { var r; - if ((typeof OffscreenCanvas > "u" ? "undefined" : Ii(OffscreenCanvas)) !== "undefined") + if ((typeof OffscreenCanvas > "u" ? "undefined" : Pi(OffscreenCanvas)) !== "undefined") r = new OffscreenCanvas(t, e); else { var n = this.cy.window(), i = n.document; @@ -110176,28 +110198,28 @@ Rr.makeOffscreenCanvas = function(t, e) { } return r; }; -[nve, iu, dh, XP, ip, Sm, yo, Wf, ew, lve].forEach(function(t) { +[ive, iu, dh, XP, ip, Sm, yo, Wf, ew, cve].forEach(function(t) { Kt(Rr, t); }); -var Bsr = [{ +var Fsr = [{ name: "null", - impl: Qme + impl: Yme }, { name: "base", - impl: eve + impl: tve }, { name: "canvas", - impl: Psr -}], Fsr = [{ + impl: $sr +}], zsr = [{ type: "layout", - extensions: Yir + extensions: Wir }, { type: "renderer", - extensions: Bsr -}], uve = {}, hve = {}; -function fve(t, e, r) { - var n = r, i = function(L) { - Qr("Can not register `" + e + "` for `" + t + "` since `" + L + "` already exists in the prototype and can not be overridden"); + extensions: Fsr +}], hve = {}, fve = {}; +function dve(t, e, r) { + var n = r, i = function(A) { + Qr("Can not register `" + e + "` for `" + t + "` since `" + A + "` already exists in the prototype and can not be overridden"); }; if (t === "core") { if (eb.prototype[e]) @@ -110208,8 +110230,8 @@ function fve(t, e, r) { return i(e); ps.prototype[e] = r; } else if (t === "layout") { - for (var s = function(L) { - this.options = L, r.call(this, L), Ar(this._private) || (this._private = {}), this._private.cy = L.cy, this._private.listeners = [], this.createEmitter(); + for (var s = function(A) { + this.options = A, r.call(this, A), Ar(this._private) || (this._private = {}), this._private.cy = A.cy, this._private.listeners = [], this.createEmitter(); }, a = s.prototype = Object.create(r.prototype), o = [], l = 0; l < o.length; l++) { var u = o[l]; a[u] = a[u] || function() { @@ -110225,10 +110247,10 @@ function fve(t, e, r) { a.stop = function() { var T = this.options; if (T && T.animate) { - var L = this.animations; - if (L) - for (var E = 0; E < L.length; E++) - L[E].stop(); + var A = this.animations; + if (A) + for (var E = 0; E < A.length; E++) + A[E].stop(); } return h ? h.call(this) : this.emit("layoutstop"), this; }, a.destroy || (a.destroy = function() { @@ -110236,47 +110258,47 @@ function fve(t, e, r) { }), a.cy = function() { return this._private.cy; }; - var f = function(L) { - return L._private.cy; + var f = function(A) { + return A._private.cy; }, d = { - addEventFields: function(L, E) { - E.layout = L, E.cy = f(L), E.target = L; + addEventFields: function(A, E) { + E.layout = A, E.cy = f(A), E.target = A; }, bubble: function() { return !0; }, - parent: function(L) { - return f(L); + parent: function(A) { + return f(A); } }; Kt(a, { createEmitter: function() { - return this._private.emitter = new qC(d, this), this; + return this._private.emitter = new QC(d, this), this; }, emitter: function() { return this._private.emitter; }, - on: function(L, E) { - return this.emitter().on(L, E), this; + on: function(A, E) { + return this.emitter().on(A, E), this; }, - one: function(L, E) { - return this.emitter().one(L, E), this; + one: function(A, E) { + return this.emitter().one(A, E), this; }, - once: function(L, E) { - return this.emitter().one(L, E), this; + once: function(A, E) { + return this.emitter().one(A, E), this; }, - removeListener: function(L, E) { - return this.emitter().removeListener(L, E), this; + removeListener: function(A, E) { + return this.emitter().removeListener(A, E), this; }, removeAllListeners: function() { return this.emitter().removeAllListeners(), this; }, - emit: function(L, E) { - return this.emitter().emit(L, E), this; + emit: function(A, E) { + return this.emitter().emit(A, E), this; } }), Vr.eventAliasesOn(a), n = s; } else if (t === "renderer" && e !== "null" && e !== "base") { - var p = dve("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { + var p = pve("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { p.apply(this, arguments), m.apply(this, arguments); }, b = y.prototype; for (var w in g) { @@ -110294,53 +110316,53 @@ function fve(t, e, r) { }), n = y; } else if (t === "__proto__" || t === "constructor" || t === "prototype") return Yn(t + " is an illegal type to be registered, possibly lead to prototype pollutions"); - return B1e({ - map: uve, + return F1e({ + map: hve, keys: [t, e], value: n }); } -function dve(t, e) { - return F1e({ - map: uve, +function pve(t, e) { + return z1e({ + map: hve, keys: [t, e] }); } -function zsr(t, e, r, n, i) { - return B1e({ - map: hve, +function Vsr(t, e, r, n, i) { + return F1e({ + map: fve, keys: [t, e, r, n], value: i }); } -function Vsr(t, e, r, n) { - return F1e({ - map: hve, +function Usr(t, e, r, n) { + return z1e({ + map: fve, keys: [t, e, r, n] }); } -var hR = function() { +var fR = function() { if (arguments.length === 2) - return dve.apply(null, arguments); + return pve.apply(null, arguments); if (arguments.length === 3) - return fve.apply(null, arguments); + return dve.apply(null, arguments); if (arguments.length === 4) - return Vsr.apply(null, arguments); + return Usr.apply(null, arguments); if (arguments.length === 5) - return zsr.apply(null, arguments); + return Vsr.apply(null, arguments); Yn("Invalid extension access syntax"); }; -eb.prototype.extension = hR; -Fsr.forEach(function(t) { +eb.prototype.extension = fR; +zsr.forEach(function(t) { t.extensions.forEach(function(e) { - fve(t.type, e.name, e.impl); + dve(t.type, e.name, e.impl); }); }); -var pve = function t() { +var gve = function t() { if (!(this instanceof t)) return new t(); this.length = 0; -}, M0 = pve.prototype; +}, M0 = gve.prototype; M0.instanceString = function() { return "stylesheet"; }; @@ -110362,7 +110384,7 @@ M0.css = function(t, e) { for (var n = t, i = Object.keys(n), s = 0; s < i.length; s++) { var a = i[s], o = n[a]; if (o != null) { - var l = Fs.properties[a] || Fs.properties[DC(a)]; + var l = Fs.properties[a] || Fs.properties[NC(a)]; if (l != null) { var u = l.name, h = o; this[r].properties.push({ @@ -110390,24 +110412,24 @@ M0.appendToStyle = function(t) { } return t; }; -var Usr = "3.30.2", Vc = function(e) { +var qsr = "3.30.2", Vc = function(e) { if (e === void 0 && (e = {}), Ar(e)) return new eb(e); if (qt(e)) - return hR.apply(hR, arguments); + return fR.apply(fR, arguments); }; Vc.use = function(t) { var e = Array.prototype.slice.call(arguments, 1); return e.unshift(Vc), t.apply(null, e), this; }; Vc.warnings = function(t) { - return G1e(t); + return H1e(t); }; -Vc.version = Usr; -Vc.stylesheet = Vc.Stylesheet = pve; -var gve = { exports: {} }, uA = { exports: {} }, hA = { exports: {} }, FX; -function qsr() { - return FX || (FX = 1, function(t, e) { +Vc.version = qsr; +Vc.stylesheet = Vc.Stylesheet = gve; +var mve = { exports: {} }, hA = { exports: {} }, fA = { exports: {} }, zX; +function Qsr() { + return zX || (zX = 1, function(t, e) { (function(n, i) { t.exports = i(); })(Uc, function() { @@ -110717,10 +110739,10 @@ function qsr() { throw "Source and/or target is null!"; if (!(w.source.owner != null && w.target.owner != null && w.source.owner == this && w.target.owner == this)) throw "Source and/or target owner is invalid!"; - var T = w.source.edges.indexOf(w), L = w.target.edges.indexOf(w); - if (!(T > -1 && L > -1)) + var T = w.source.edges.indexOf(w), A = w.target.edges.indexOf(w); + if (!(T > -1 && A > -1)) throw "Source and/or target doesn't know this edge!"; - w.source.edges.splice(T, 1), w.target != w.source && w.target.edges.splice(L, 1); + w.source.edges.splice(T, 1), w.target != w.source && w.target.edges.splice(A, 1); var C = w.source.owner.getEdges().indexOf(w); if (C == -1) throw "Not in owner's edge list!"; @@ -110728,21 +110750,21 @@ function qsr() { } }, g.prototype.updateLeftTop = function() { for (var v = a.MAX_VALUE, y = a.MAX_VALUE, b, w, O, S = this.getNodes(), C = S.length, T = 0; T < C; T++) { - var L = S[T]; - b = L.getTop(), w = L.getLeft(), v > b && (v = b), y > w && (y = w); + var A = S[T]; + b = A.getTop(), w = A.getLeft(), v > b && (v = b), y > w && (y = w); } return v == a.MAX_VALUE ? null : (S[0].getParent().paddingLeft != null ? O = S[0].getParent().paddingLeft : O = this.margin, this.left = y - O, this.top = v - O, new d(this.left, this.top)); }, g.prototype.updateBounds = function(v) { - for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, L, E, A = this.nodes, _ = A.length, R = 0; R < _; R++) { - var $ = A[R]; - v && $.child != null && $.updateBounds(), S = $.getLeft(), C = $.getRight(), T = $.getTop(), L = $.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < L && (O = L); + for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, A, E, L = this.nodes, _ = L.length, R = 0; R < _; R++) { + var $ = L[R]; + v && $.child != null && $.updateBounds(), S = $.getLeft(), C = $.getRight(), T = $.getTop(), A = $.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < A && (O = A); } var k = new f(y, w, b - y, O - w); - y == a.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), A[0].getParent().paddingLeft != null ? E = A[0].getParent().paddingLeft : E = this.margin, this.left = k.x - E, this.right = k.x + k.width + E, this.top = k.y - E, this.bottom = k.y + k.height + E; + y == a.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), L[0].getParent().paddingLeft != null ? E = L[0].getParent().paddingLeft : E = this.margin, this.left = k.x - E, this.right = k.x + k.width + E, this.top = k.y - E, this.bottom = k.y + k.height + E; }, g.calculateBounds = function(v) { - for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, L, E = v.length, A = 0; A < E; A++) { - var _ = v[A]; - S = _.getLeft(), C = _.getRight(), T = _.getTop(), L = _.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < L && (O = L); + for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, A, E = v.length, L = 0; L < E; L++) { + var _ = v[L]; + S = _.getLeft(), C = _.getRight(), T = _.getTop(), A = _.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < A && (O = A); } var R = new f(y, w, b - y, O - w); return R; @@ -110769,11 +110791,11 @@ function qsr() { y.push(R), b.add(R); }); y.length !== 0; ) { w = y.shift(), O = w.getEdges(); - for (var T = O.length, L = 0; L < T; L++) { - var E = O[L]; + for (var T = O.length, A = 0; A < T; A++) { + var E = O[A]; if (S = E.getOtherEndInGraph(w, this), S != null && !b.has(S)) { - var A = S.withChildren(); - A.forEach(function(R) { + var L = S.withChildren(); + L.forEach(function(R) { y.push(R), b.add(R); }); } @@ -111007,20 +111029,20 @@ function qsr() { var h = o.getCenterX(), f = o.getCenterY(), d = l.getCenterX(), p = l.getCenterY(); if (o.intersects(l)) return u[0] = h, u[1] = f, u[2] = d, u[3] = p, !0; - var g = o.getX(), m = o.getY(), v = o.getRight(), y = o.getX(), b = o.getBottom(), w = o.getRight(), O = o.getWidthHalf(), S = o.getHeightHalf(), C = l.getX(), T = l.getY(), L = l.getRight(), E = l.getX(), A = l.getBottom(), _ = l.getRight(), R = l.getWidthHalf(), $ = l.getHeightHalf(), k = !1, N = !1; + var g = o.getX(), m = o.getY(), v = o.getRight(), y = o.getX(), b = o.getBottom(), w = o.getRight(), O = o.getWidthHalf(), S = o.getHeightHalf(), C = l.getX(), T = l.getY(), A = l.getRight(), E = l.getX(), L = l.getBottom(), _ = l.getRight(), R = l.getWidthHalf(), $ = l.getHeightHalf(), k = !1, N = !1; if (h === d) { if (f > p) - return u[0] = h, u[1] = m, u[2] = d, u[3] = A, !1; + return u[0] = h, u[1] = m, u[2] = d, u[3] = L, !1; if (f < p) return u[0] = h, u[1] = b, u[2] = d, u[3] = T, !1; } else if (f === p) { if (h > d) - return u[0] = g, u[1] = f, u[2] = L, u[3] = p, !1; + return u[0] = g, u[1] = f, u[2] = A, u[3] = p, !1; if (h < d) return u[0] = v, u[1] = f, u[2] = C, u[3] = p, !1; } else { var M = o.height / o.width, I = l.height / l.width, D = (p - f) / (d - h), P = void 0, F = void 0, B = void 0, V = void 0, Q = void 0, W = void 0; - if (-M === D ? h > d ? (u[0] = y, u[1] = b, k = !0) : (u[0] = v, u[1] = m, k = !0) : M === D && (h > d ? (u[0] = g, u[1] = m, k = !0) : (u[0] = w, u[1] = b, k = !0)), -I === D ? d > h ? (u[2] = E, u[3] = A, N = !0) : (u[2] = L, u[3] = T, N = !0) : I === D && (d > h ? (u[2] = C, u[3] = T, N = !0) : (u[2] = _, u[3] = A, N = !0)), k && N) + if (-M === D ? h > d ? (u[0] = y, u[1] = b, k = !0) : (u[0] = v, u[1] = m, k = !0) : M === D && (h > d ? (u[0] = g, u[1] = m, k = !0) : (u[0] = w, u[1] = b, k = !0)), -I === D ? d > h ? (u[2] = E, u[3] = L, N = !0) : (u[2] = A, u[3] = T, N = !0) : I === D && (d > h ? (u[2] = C, u[3] = T, N = !0) : (u[2] = _, u[3] = L, N = !0)), k && N) return !1; if (h > d ? f > p ? (P = this.getCardinalDirection(M, D, 4), F = this.getCardinalDirection(I, D, 2)) : (P = this.getCardinalDirection(-M, D, 3), F = this.getCardinalDirection(-I, D, 1)) : f > p ? (P = this.getCardinalDirection(-M, D, 1), F = this.getCardinalDirection(-I, D, 3)) : (P = this.getCardinalDirection(M, D, 2), F = this.getCardinalDirection(I, D, 4)), !k) switch (P) { @@ -111046,7 +111068,7 @@ function qsr() { Q = _, W = p + R * D, u[2] = Q, u[3] = W; break; case 3: - W = A, Q = d + $ / D, u[2] = Q, u[3] = W; + W = L, Q = d + $ / D, u[2] = Q, u[3] = W; break; case 4: Q = E, W = p + -R * D, u[2] = Q, u[3] = W; @@ -111059,8 +111081,8 @@ function qsr() { }, a.getIntersection = function(o, l, u, h) { if (h == null) return this.getIntersection2(o, l, u); - var f = o.x, d = o.y, p = l.x, g = l.y, m = u.x, v = u.y, y = h.x, b = h.y, w = void 0, O = void 0, S = void 0, C = void 0, T = void 0, L = void 0, E = void 0, A = void 0, _ = void 0; - return S = g - d, T = f - p, E = p * d - f * g, C = b - v, L = m - y, A = y * v - m * b, _ = S * L - C * T, _ === 0 ? null : (w = (T * A - L * E) / _, O = (C * E - S * A) / _, new s(w, O)); + var f = o.x, d = o.y, p = l.x, g = l.y, m = u.x, v = u.y, y = h.x, b = h.y, w = void 0, O = void 0, S = void 0, C = void 0, T = void 0, A = void 0, E = void 0, L = void 0, _ = void 0; + return S = g - d, T = f - p, E = p * d - f * g, C = b - v, A = m - y, L = y * v - m * b, _ = S * A - C * T, _ === 0 ? null : (w = (T * L - A * E) / _, O = (C * E - S * L) / _, new s(w, O)); }, a.angleOfVector = function(o, l, u, h) { var f = void 0; return o !== u ? (f = Math.atan((h - l) / (u - o)), u < o ? f += Math.PI : h < l && (f += this.TWO_PI)) : h < l ? f = this.ONE_AND_HALF_PI : f = this.HALF_PI, f; @@ -111385,13 +111407,13 @@ function qsr() { var O = /* @__PURE__ */ new Set(), S = [], C = /* @__PURE__ */ new Map(), T = []; for (T = T.concat(y); T.length > 0 && v; ) { for (S.push(T[0]); S.length > 0 && v; ) { - var L = S[0]; - S.splice(0, 1), O.add(L); - for (var E = L.getEdges(), w = 0; w < E.length; w++) { - var A = E[w].getOtherEnd(L); - if (C.get(L) != A) - if (!O.has(A)) - S.push(A), C.set(A, L); + var A = S[0]; + S.splice(0, 1), O.add(A); + for (var E = A.getEdges(), w = 0; w < E.length; w++) { + var L = E[w].getOtherEnd(A); + if (C.get(A) != L) + if (!O.has(L)) + S.push(L), C.set(L, A); else { v = !1; break; @@ -111457,22 +111479,22 @@ function qsr() { var C = v[S], T = C.getNeighborsList().size; b.set(C, C.getNeighborsList().size), T == 1 && y.push(C); } - var L = []; - for (L = L.concat(y); !w; ) { + var A = []; + for (A = A.concat(y); !w; ) { var E = []; - E = E.concat(L), L = []; + E = E.concat(A), A = []; for (var S = 0; S < v.length; S++) { - var C = v[S], A = v.indexOf(C); - A >= 0 && v.splice(A, 1); + var C = v[S], L = v.indexOf(C); + L >= 0 && v.splice(L, 1); var _ = C.getNeighborsList(); _.forEach(function(k) { if (y.indexOf(k) < 0) { var N = b.get(k), M = N - 1; - M == 1 && L.push(k), b.set(k, M); + M == 1 && A.push(k), b.set(k, M); } }); } - y = y.concat(L), (v.length == 1 || v.length == 2) && (w = !0, O = v[0]); + y = y.concat(A), (v.length == 1 || v.length == 2) && (w = !0, O = v[0]); } return O; }, g.prototype.setGraphManager = function(m) { @@ -111590,13 +111612,13 @@ function qsr() { return; y = p.getLength(), y != 0 && (b = this.springConstant * (y - g), w = b * (p.lengthX / y), O = b * (p.lengthY / y), m.springForceX += w, m.springForceY += O, v.springForceX -= w, v.springForceY -= O); }, f.prototype.calcRepulsionForce = function(p, g) { - var m = p.getRect(), v = g.getRect(), y = new Array(2), b = new Array(4), w, O, S, C, T, L, E; + var m = p.getRect(), v = g.getRect(), y = new Array(2), b = new Array(4), w, O, S, C, T, A, E; if (m.intersects(v)) { - u.calcSeparationAmount(m, v, y, o.DEFAULT_EDGE_LENGTH / 2), L = 2 * y[0], E = 2 * y[1]; - var A = p.noOfChildren * g.noOfChildren / (p.noOfChildren + g.noOfChildren); - p.repulsionForceX -= A * L, p.repulsionForceY -= A * E, g.repulsionForceX += A * L, g.repulsionForceY += A * E; + u.calcSeparationAmount(m, v, y, o.DEFAULT_EDGE_LENGTH / 2), A = 2 * y[0], E = 2 * y[1]; + var L = p.noOfChildren * g.noOfChildren / (p.noOfChildren + g.noOfChildren); + p.repulsionForceX -= L * A, p.repulsionForceY -= L * E, g.repulsionForceX += L * A, g.repulsionForceY += L * E; } else - this.uniformLeafNodeSizes && p.getChild() == null && g.getChild() == null ? (w = v.getCenterX() - m.getCenterX(), O = v.getCenterY() - m.getCenterY()) : (u.getIntersection(m, v, b), w = b[2] - b[0], O = b[3] - b[1]), Math.abs(w) < o.MIN_REPULSION_DIST && (w = h.sign(w) * o.MIN_REPULSION_DIST), Math.abs(O) < o.MIN_REPULSION_DIST && (O = h.sign(O) * o.MIN_REPULSION_DIST), S = w * w + O * O, C = Math.sqrt(S), T = this.repulsionConstant * p.noOfChildren * g.noOfChildren / S, L = T * w / C, E = T * O / C, p.repulsionForceX -= L, p.repulsionForceY -= E, g.repulsionForceX += L, g.repulsionForceY += E; + this.uniformLeafNodeSizes && p.getChild() == null && g.getChild() == null ? (w = v.getCenterX() - m.getCenterX(), O = v.getCenterY() - m.getCenterY()) : (u.getIntersection(m, v, b), w = b[2] - b[0], O = b[3] - b[1]), Math.abs(w) < o.MIN_REPULSION_DIST && (w = h.sign(w) * o.MIN_REPULSION_DIST), Math.abs(O) < o.MIN_REPULSION_DIST && (O = h.sign(O) * o.MIN_REPULSION_DIST), S = w * w + O * O, C = Math.sqrt(S), T = this.repulsionConstant * p.noOfChildren * g.noOfChildren / S, A = T * w / C, E = T * O / C, p.repulsionForceX -= A, p.repulsionForceY -= E, g.repulsionForceX += A, g.repulsionForceY += E; }, f.prototype.calcGravitationalForce = function(p) { var g, m, v, y, b, w, O, S; g = p.getOwner(), m = (g.getRight() + g.getLeft()) / 2, v = (g.getTop() + g.getBottom()) / 2, y = p.getCenterX() - m, b = p.getCenterY() - v, w = Math.abs(y) + p.getWidth() / 2, O = Math.abs(b) + p.getHeight() / 2, p.getOwner() == this.graphManager.getRoot() ? (S = g.getEstimatedSize() * this.gravityRangeFactor, (w > S || O > S) && (p.gravitationForceX = -this.gravityConstant * y, p.gravitationForceY = -this.gravityConstant * b)) : (S = g.getEstimatedSize() * this.compoundGravityRangeFactor, (w > S || O > S) && (p.gravitationForceX = -this.gravityConstant * y * this.compoundGravityConstant, p.gravitationForceY = -this.gravityConstant * b * this.compoundGravityConstant)); @@ -111636,8 +111658,8 @@ function qsr() { if (!(O < 0 || S < 0 || O >= w.length || S >= w[0].length)) { for (var C = 0; C < w[O][S].length; C++) if (b = w[O][S][C], !(p.getOwner() != b.getOwner() || p == b) && !g.has(b) && !y.has(b)) { - var T = Math.abs(p.getCenterX() - b.getCenterX()) - (p.getWidth() / 2 + b.getWidth() / 2), L = Math.abs(p.getCenterY() - b.getCenterY()) - (p.getHeight() / 2 + b.getHeight() / 2); - T <= this.repulsionRange && L <= this.repulsionRange && y.add(b); + var T = Math.abs(p.getCenterX() - b.getCenterX()) - (p.getWidth() / 2 + b.getWidth() / 2), A = Math.abs(p.getCenterY() - b.getCenterY()) - (p.getHeight() / 2 + b.getHeight() / 2); + T <= this.repulsionRange && A <= this.repulsionRange && y.add(b); } } p.surrounding = [].concat(s(y)); @@ -111933,13 +111955,13 @@ function qsr() { } ]); }); - }(hA)), hA.exports; + }(fA)), fA.exports; } -var zX; -function Qsr() { - return zX || (zX = 1, function(t, e) { +var VX; +function Ysr() { + return VX || (VX = 1, function(t, e) { (function(n, i) { - t.exports = i(qsr()); + t.exports = i(Qsr()); })(Uc, function(r) { return function(n) { var i = {}; @@ -112069,8 +112091,8 @@ function Qsr() { if (this.nodesWithGravity = this.calculateNodesToApplyGravitationTo(), this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity), this.calcNoOfChildrenForAllNodes(), this.graphManager.calcLowestCommonAncestors(), this.graphManager.calcInclusionTreeDepths(), this.graphManager.getRoot().calcEstimatedSize(), this.calcIdealEdgeLengths(), this.incremental) { if (f.TREE_REDUCTION_ON_INCREMENTAL) { this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation(); - var L = new Set(this.getAllNodes()), E = this.nodesWithGravity.filter(function(R) { - return L.has(R); + var A = new Set(this.getAllNodes()), E = this.nodesWithGravity.filter(function(R) { + return A.has(R); }); this.graphManager.setAllNodesToApplyGravitation(E); } @@ -112080,8 +112102,8 @@ function Qsr() { this.positionNodesRadially(T); else { this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation(); - var L = new Set(this.getAllNodes()), E = this.nodesWithGravity.filter(function(A) { - return L.has(A); + var A = new Set(this.getAllNodes()), E = this.nodesWithGravity.filter(function(L) { + return A.has(L); }); this.graphManager.setAllNodesToApplyGravitation(E), this.positionNodesRandomly(); } @@ -112105,10 +112127,10 @@ function Qsr() { if (this.growTreeIterations % 10 == 0) if (this.prunedNodesAll.length > 0) { this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation(); - var T = new Set(this.getAllNodes()), L = this.nodesWithGravity.filter(function(_) { + var T = new Set(this.getAllNodes()), A = this.nodesWithGravity.filter(function(_) { return T.has(_); }); - this.graphManager.setAllNodesToApplyGravitation(L), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL; + this.graphManager.setAllNodesToApplyGravitation(A), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL; } else this.isTreeGrowing = !1, this.isGrowthFinished = !0; this.growTreeIterations++; @@ -112118,20 +112140,20 @@ function Qsr() { return !0; this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++; } - var E = !this.isTreeGrowing && !this.isGrowthFinished, A = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished; - return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(E, A), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1; + var E = !this.isTreeGrowing && !this.isGrowthFinished, L = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished; + return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(E, L), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1; }, S.prototype.getPositionsData = function() { - for (var T = this.graphManager.getAllNodes(), L = {}, E = 0; E < T.length; E++) { - var A = T[E].rect, _ = T[E].id; - L[_] = { + for (var T = this.graphManager.getAllNodes(), A = {}, E = 0; E < T.length; E++) { + var L = T[E].rect, _ = T[E].id; + A[_] = { id: _, - x: A.getCenterX(), - y: A.getCenterY(), - w: A.width, - h: A.height + x: L.getCenterX(), + y: L.getCenterY(), + w: L.width, + h: L.height }; } - return L; + return A; }, S.prototype.runSpringEmbedder = function() { this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod; var T = !1; @@ -112143,23 +112165,23 @@ function Qsr() { this.graphManager.updateBounds(); } }, S.prototype.calculateNodesToApplyGravitationTo = function() { - var T = [], L, E = this.graphManager.getGraphs(), A = E.length, _; - for (_ = 0; _ < A; _++) - L = E[_], L.updateConnected(), L.isConnected || (T = T.concat(L.getNodes())); + var T = [], A, E = this.graphManager.getGraphs(), L = E.length, _; + for (_ = 0; _ < L; _++) + A = E[_], A.updateConnected(), A.isConnected || (T = T.concat(A.getNodes())); return T; }, S.prototype.createBendpoints = function() { var T = []; T = T.concat(this.graphManager.getAllEdges()); - var L = /* @__PURE__ */ new Set(), E; + var A = /* @__PURE__ */ new Set(), E; for (E = 0; E < T.length; E++) { - var A = T[E]; - if (!L.has(A)) { - var _ = A.getSource(), R = A.getTarget(); + var L = T[E]; + if (!A.has(L)) { + var _ = L.getSource(), R = L.getTarget(); if (_ == R) - A.getBendpoints().push(new m()), A.getBendpoints().push(new m()), this.createDummyNodesForBendpoints(A), L.add(A); + L.getBendpoints().push(new m()), L.getBendpoints().push(new m()), this.createDummyNodesForBendpoints(L), A.add(L); else { var $ = []; - if ($ = $.concat(_.getEdgeListToNode(R)), $ = $.concat(R.getEdgeListToNode(_)), !L.has($[0])) { + if ($ = $.concat(_.getEdgeListToNode(R)), $ = $.concat(R.getEdgeListToNode(_)), !A.has($[0])) { if ($.length > 1) { var k; for (k = 0; k < $.length; k++) { @@ -112168,24 +112190,24 @@ function Qsr() { } } $.forEach(function(M) { - L.add(M); + A.add(M); }); } } } - if (L.size == T.length) + if (A.size == T.length) break; } }, S.prototype.positionNodesRadially = function(T) { - for (var L = new g(0, 0), E = Math.ceil(Math.sqrt(T.length)), A = 0, _ = 0, R = 0, $ = new m(0, 0), k = 0; k < T.length; k++) { - k % E == 0 && (R = 0, _ = A, k != 0 && (_ += f.DEFAULT_COMPONENT_SEPERATION), A = 0); + for (var A = new g(0, 0), E = Math.ceil(Math.sqrt(T.length)), L = 0, _ = 0, R = 0, $ = new m(0, 0), k = 0; k < T.length; k++) { + k % E == 0 && (R = 0, _ = L, k != 0 && (_ += f.DEFAULT_COMPONENT_SEPERATION), L = 0); var N = T[k], M = v.findCenterOfTree(N); - L.x = R, L.y = _, $ = S.radialLayout(N, M, L), $.y > A && (A = Math.floor($.y)), R = Math.floor($.x + f.DEFAULT_COMPONENT_SEPERATION); + A.x = R, A.y = _, $ = S.radialLayout(N, M, A), $.y > L && (L = Math.floor($.y)), R = Math.floor($.x + f.DEFAULT_COMPONENT_SEPERATION); } this.transform(new m(p.WORLD_CENTER_X - $.x / 2, p.WORLD_CENTER_Y - $.y / 2)); - }, S.radialLayout = function(T, L, E) { - var A = Math.max(this.maxDiagonalInTree(T), f.DEFAULT_RADIAL_SEPARATION); - S.branchRadialLayout(L, null, 0, 359, 0, A); + }, S.radialLayout = function(T, A, E) { + var L = Math.max(this.maxDiagonalInTree(T), f.DEFAULT_RADIAL_SEPARATION); + S.branchRadialLayout(A, null, 0, 359, 0, L); var _ = w.calculateBounds(T), R = new O(); R.setDeviceOrgX(_.getMinX()), R.setDeviceOrgY(_.getMinY()), R.setWorldOrgX(E.x), R.setWorldOrgY(E.y); for (var $ = 0; $ < T.length; $++) { @@ -112194,205 +112216,205 @@ function Qsr() { } var N = new m(_.getMaxX(), _.getMaxY()); return R.inverseTransformPoint(N); - }, S.branchRadialLayout = function(T, L, E, A, _, R) { - var $ = (A - E + 1) / 2; + }, S.branchRadialLayout = function(T, A, E, L, _, R) { + var $ = (L - E + 1) / 2; $ < 0 && ($ += 180); var k = ($ + E) % 360, N = k * b.TWO_PI / 360, M = _ * Math.cos(N), I = _ * Math.sin(N); T.setCenter(M, I); var D = []; D = D.concat(T.getEdges()); var P = D.length; - L != null && P--; - for (var F = 0, B = D.length, V, Q = T.getEdgesBetween(L); Q.length > 1; ) { + A != null && P--; + for (var F = 0, B = D.length, V, Q = T.getEdgesBetween(A); Q.length > 1; ) { var W = Q[0]; Q.splice(0, 1); var ee = D.indexOf(W); ee >= 0 && D.splice(ee, 1), B--, P--; } - L != null ? V = (D.indexOf(Q[0]) + 1) % B : V = 0; - for (var Y = Math.abs(A - E) / P, ne = V; F != P; ne = ++ne % B) { + A != null ? V = (D.indexOf(Q[0]) + 1) % B : V = 0; + for (var Y = Math.abs(L - E) / P, ne = V; F != P; ne = ++ne % B) { var ie = D[ne].getOtherEnd(T); - if (ie != L) { + if (ie != A) { var U = (E + F * Y) % 360, Z = (U + Y) % 360; S.branchRadialLayout(ie, T, U, Z, _ + R, R), F++; } } }, S.maxDiagonalInTree = function(T) { - for (var L = y.MIN_VALUE, E = 0; E < T.length; E++) { - var A = T[E], _ = A.getDiagonal(); - _ > L && (L = _); + for (var A = y.MIN_VALUE, E = 0; E < T.length; E++) { + var L = T[E], _ = L.getDiagonal(); + _ > A && (A = _); } - return L; + return A; }, S.prototype.calcRepulsionRange = function() { return 2 * (this.level + 1) * this.idealEdgeLength; }, S.prototype.groupZeroDegreeMembers = function() { - var T = this, L = {}; + var T = this, A = {}; this.memberGroups = {}, this.idToDummyNode = {}; - for (var E = [], A = this.graphManager.getAllNodes(), _ = 0; _ < A.length; _++) { - var R = A[_], $ = R.getParent(); + for (var E = [], L = this.graphManager.getAllNodes(), _ = 0; _ < L.length; _++) { + var R = L[_], $ = R.getParent(); this.getNodeDegreeWithChildren(R) === 0 && ($.id == null || !this.getToBeTiled($)) && E.push(R); } for (var _ = 0; _ < E.length; _++) { var R = E[_], k = R.getParent().id; - typeof L[k] > "u" && (L[k] = []), L[k] = L[k].concat(R); + typeof A[k] > "u" && (A[k] = []), A[k] = A[k].concat(R); } - Object.keys(L).forEach(function(N) { - if (L[N].length > 1) { + Object.keys(A).forEach(function(N) { + if (A[N].length > 1) { var M = "DummyCompound_" + N; - T.memberGroups[M] = L[N]; - var I = L[N][0].getParent(), D = new u(T.graphManager); + T.memberGroups[M] = A[N]; + var I = A[N][0].getParent(), D = new u(T.graphManager); D.id = M, D.paddingLeft = I.paddingLeft || 0, D.paddingRight = I.paddingRight || 0, D.paddingBottom = I.paddingBottom || 0, D.paddingTop = I.paddingTop || 0, T.idToDummyNode[M] = D; var P = T.getGraphManager().add(T.newGraph(), D), F = I.getChild(); F.add(D); - for (var B = 0; B < L[N].length; B++) { - var V = L[N][B]; + for (var B = 0; B < A[N].length; B++) { + var V = A[N][B]; F.remove(V), P.add(V); } } }); }, S.prototype.clearCompounds = function() { - var T = {}, L = {}; + var T = {}, A = {}; this.performDFSOnCompounds(); for (var E = 0; E < this.compoundOrder.length; E++) - L[this.compoundOrder[E].id] = this.compoundOrder[E], T[this.compoundOrder[E].id] = [].concat(this.compoundOrder[E].getChild().getNodes()), this.graphManager.remove(this.compoundOrder[E].getChild()), this.compoundOrder[E].child = null; - this.graphManager.resetAllNodes(), this.tileCompoundMembers(T, L); + A[this.compoundOrder[E].id] = this.compoundOrder[E], T[this.compoundOrder[E].id] = [].concat(this.compoundOrder[E].getChild().getNodes()), this.graphManager.remove(this.compoundOrder[E].getChild()), this.compoundOrder[E].child = null; + this.graphManager.resetAllNodes(), this.tileCompoundMembers(T, A); }, S.prototype.clearZeroDegreeMembers = function() { - var T = this, L = this.tiledZeroDegreePack = []; + var T = this, A = this.tiledZeroDegreePack = []; Object.keys(this.memberGroups).forEach(function(E) { - var A = T.idToDummyNode[E]; - L[E] = T.tileNodes(T.memberGroups[E], A.paddingLeft + A.paddingRight), A.rect.width = L[E].width, A.rect.height = L[E].height; + var L = T.idToDummyNode[E]; + A[E] = T.tileNodes(T.memberGroups[E], L.paddingLeft + L.paddingRight), L.rect.width = A[E].width, L.rect.height = A[E].height; }); }, S.prototype.repopulateCompounds = function() { for (var T = this.compoundOrder.length - 1; T >= 0; T--) { - var L = this.compoundOrder[T], E = L.id, A = L.paddingLeft, _ = L.paddingTop; - this.adjustLocations(this.tiledMemberPack[E], L.rect.x, L.rect.y, A, _); + var A = this.compoundOrder[T], E = A.id, L = A.paddingLeft, _ = A.paddingTop; + this.adjustLocations(this.tiledMemberPack[E], A.rect.x, A.rect.y, L, _); } }, S.prototype.repopulateZeroDegreeMembers = function() { - var T = this, L = this.tiledZeroDegreePack; - Object.keys(L).forEach(function(E) { - var A = T.idToDummyNode[E], _ = A.paddingLeft, R = A.paddingTop; - T.adjustLocations(L[E], A.rect.x, A.rect.y, _, R); + var T = this, A = this.tiledZeroDegreePack; + Object.keys(A).forEach(function(E) { + var L = T.idToDummyNode[E], _ = L.paddingLeft, R = L.paddingTop; + T.adjustLocations(A[E], L.rect.x, L.rect.y, _, R); }); }, S.prototype.getToBeTiled = function(T) { - var L = T.id; - if (this.toBeTiled[L] != null) - return this.toBeTiled[L]; + var A = T.id; + if (this.toBeTiled[A] != null) + return this.toBeTiled[A]; var E = T.getChild(); if (E == null) - return this.toBeTiled[L] = !1, !1; - for (var A = E.getNodes(), _ = 0; _ < A.length; _++) { - var R = A[_]; + return this.toBeTiled[A] = !1, !1; + for (var L = E.getNodes(), _ = 0; _ < L.length; _++) { + var R = L[_]; if (this.getNodeDegree(R) > 0) - return this.toBeTiled[L] = !1, !1; + return this.toBeTiled[A] = !1, !1; if (R.getChild() == null) { this.toBeTiled[R.id] = !1; continue; } if (!this.getToBeTiled(R)) - return this.toBeTiled[L] = !1, !1; + return this.toBeTiled[A] = !1, !1; } - return this.toBeTiled[L] = !0, !0; + return this.toBeTiled[A] = !0, !0; }, S.prototype.getNodeDegree = function(T) { T.id; - for (var L = T.getEdges(), E = 0, A = 0; A < L.length; A++) { - var _ = L[A]; + for (var A = T.getEdges(), E = 0, L = 0; L < A.length; L++) { + var _ = A[L]; _.getSource().id !== _.getTarget().id && (E = E + 1); } return E; }, S.prototype.getNodeDegreeWithChildren = function(T) { - var L = this.getNodeDegree(T); + var A = this.getNodeDegree(T); if (T.getChild() == null) - return L; - for (var E = T.getChild().getNodes(), A = 0; A < E.length; A++) { - var _ = E[A]; - L += this.getNodeDegreeWithChildren(_); + return A; + for (var E = T.getChild().getNodes(), L = 0; L < E.length; L++) { + var _ = E[L]; + A += this.getNodeDegreeWithChildren(_); } - return L; + return A; }, S.prototype.performDFSOnCompounds = function() { this.compoundOrder = [], this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes()); }, S.prototype.fillCompexOrderByDFS = function(T) { - for (var L = 0; L < T.length; L++) { - var E = T[L]; + for (var A = 0; A < T.length; A++) { + var E = T[A]; E.getChild() != null && this.fillCompexOrderByDFS(E.getChild().getNodes()), this.getToBeTiled(E) && this.compoundOrder.push(E); } - }, S.prototype.adjustLocations = function(T, L, E, A, _) { - L += A, E += _; - for (var R = L, $ = 0; $ < T.rows.length; $++) { + }, S.prototype.adjustLocations = function(T, A, E, L, _) { + A += L, E += _; + for (var R = A, $ = 0; $ < T.rows.length; $++) { var k = T.rows[$]; - L = R; + A = R; for (var N = 0, M = 0; M < k.length; M++) { var I = k[M]; - I.rect.x = L, I.rect.y = E, L += I.rect.width + T.horizontalPadding, I.rect.height > N && (N = I.rect.height); + I.rect.x = A, I.rect.y = E, A += I.rect.width + T.horizontalPadding, I.rect.height > N && (N = I.rect.height); } E += N + T.verticalPadding; } - }, S.prototype.tileCompoundMembers = function(T, L) { + }, S.prototype.tileCompoundMembers = function(T, A) { var E = this; - this.tiledMemberPack = [], Object.keys(T).forEach(function(A) { - var _ = L[A]; - E.tiledMemberPack[A] = E.tileNodes(T[A], _.paddingLeft + _.paddingRight), _.rect.width = E.tiledMemberPack[A].width, _.rect.height = E.tiledMemberPack[A].height; + this.tiledMemberPack = [], Object.keys(T).forEach(function(L) { + var _ = A[L]; + E.tiledMemberPack[L] = E.tileNodes(T[L], _.paddingLeft + _.paddingRight), _.rect.width = E.tiledMemberPack[L].width, _.rect.height = E.tiledMemberPack[L].height; }); - }, S.prototype.tileNodes = function(T, L) { - var E = f.TILING_PADDING_VERTICAL, A = f.TILING_PADDING_HORIZONTAL, _ = { + }, S.prototype.tileNodes = function(T, A) { + var E = f.TILING_PADDING_VERTICAL, L = f.TILING_PADDING_HORIZONTAL, _ = { rows: [], rowWidth: [], rowHeight: [], width: 0, - height: L, + height: A, verticalPadding: E, - horizontalPadding: A + horizontalPadding: L }; T.sort(function(k, N) { return k.rect.width * k.rect.height > N.rect.width * N.rect.height ? -1 : k.rect.width * k.rect.height < N.rect.width * N.rect.height ? 1 : 0; }); for (var R = 0; R < T.length; R++) { var $ = T[R]; - _.rows.length == 0 ? this.insertNodeToRow(_, $, 0, L) : this.canAddHorizontal(_, $.rect.width, $.rect.height) ? this.insertNodeToRow(_, $, this.getShortestRowIndex(_), L) : this.insertNodeToRow(_, $, _.rows.length, L), this.shiftToLastRow(_); + _.rows.length == 0 ? this.insertNodeToRow(_, $, 0, A) : this.canAddHorizontal(_, $.rect.width, $.rect.height) ? this.insertNodeToRow(_, $, this.getShortestRowIndex(_), A) : this.insertNodeToRow(_, $, _.rows.length, A), this.shiftToLastRow(_); } return _; - }, S.prototype.insertNodeToRow = function(T, L, E, A) { - var _ = A; + }, S.prototype.insertNodeToRow = function(T, A, E, L) { + var _ = L; if (E == T.rows.length) { var R = []; T.rows.push(R), T.rowWidth.push(_), T.rowHeight.push(0); } - var $ = T.rowWidth[E] + L.rect.width; + var $ = T.rowWidth[E] + A.rect.width; T.rows[E].length > 0 && ($ += T.horizontalPadding), T.rowWidth[E] = $, T.width < $ && (T.width = $); - var k = L.rect.height; + var k = A.rect.height; E > 0 && (k += T.verticalPadding); var N = 0; - k > T.rowHeight[E] && (N = T.rowHeight[E], T.rowHeight[E] = k, N = T.rowHeight[E] - N), T.height += N, T.rows[E].push(L); + k > T.rowHeight[E] && (N = T.rowHeight[E], T.rowHeight[E] = k, N = T.rowHeight[E] - N), T.height += N, T.rows[E].push(A); }, S.prototype.getShortestRowIndex = function(T) { - for (var L = -1, E = Number.MAX_VALUE, A = 0; A < T.rows.length; A++) - T.rowWidth[A] < E && (L = A, E = T.rowWidth[A]); - return L; + for (var A = -1, E = Number.MAX_VALUE, L = 0; L < T.rows.length; L++) + T.rowWidth[L] < E && (A = L, E = T.rowWidth[L]); + return A; }, S.prototype.getLongestRowIndex = function(T) { - for (var L = -1, E = Number.MIN_VALUE, A = 0; A < T.rows.length; A++) - T.rowWidth[A] > E && (L = A, E = T.rowWidth[A]); - return L; - }, S.prototype.canAddHorizontal = function(T, L, E) { - var A = this.getShortestRowIndex(T); - if (A < 0) + for (var A = -1, E = Number.MIN_VALUE, L = 0; L < T.rows.length; L++) + T.rowWidth[L] > E && (A = L, E = T.rowWidth[L]); + return A; + }, S.prototype.canAddHorizontal = function(T, A, E) { + var L = this.getShortestRowIndex(T); + if (L < 0) return !0; - var _ = T.rowWidth[A]; - if (_ + T.horizontalPadding + L <= T.width) + var _ = T.rowWidth[L]; + if (_ + T.horizontalPadding + A <= T.width) return !0; var R = 0; - T.rowHeight[A] < E && A > 0 && (R = E + T.verticalPadding - T.rowHeight[A]); + T.rowHeight[L] < E && L > 0 && (R = E + T.verticalPadding - T.rowHeight[L]); var $; - T.width - _ >= L + T.horizontalPadding ? $ = (T.height + R) / (_ + L + T.horizontalPadding) : $ = (T.height + R) / T.width, R = E + T.verticalPadding; + T.width - _ >= A + T.horizontalPadding ? $ = (T.height + R) / (_ + A + T.horizontalPadding) : $ = (T.height + R) / T.width, R = E + T.verticalPadding; var k; - return T.width < L ? k = (T.height + R) / L : k = (T.height + R) / T.width, k < 1 && (k = 1 / k), $ < 1 && ($ = 1 / $), $ < k; + return T.width < A ? k = (T.height + R) / A : k = (T.height + R) / T.width, k < 1 && (k = 1 / k), $ < 1 && ($ = 1 / $), $ < k; }, S.prototype.shiftToLastRow = function(T) { - var L = this.getLongestRowIndex(T), E = T.rowWidth.length - 1, A = T.rows[L], _ = A[A.length - 1], R = _.width + T.horizontalPadding; - if (T.width - T.rowWidth[E] > R && L != E) { - A.splice(-1, 1), T.rows[E].push(_), T.rowWidth[L] = T.rowWidth[L] - R, T.rowWidth[E] = T.rowWidth[E] + R, T.width = T.rowWidth[instance.getLongestRowIndex(T)]; - for (var $ = Number.MIN_VALUE, k = 0; k < A.length; k++) - A[k].height > $ && ($ = A[k].height); - L > 0 && ($ += T.verticalPadding); - var N = T.rowHeight[L] + T.rowHeight[E]; - T.rowHeight[L] = $, T.rowHeight[E] < _.height + T.verticalPadding && (T.rowHeight[E] = _.height + T.verticalPadding); - var M = T.rowHeight[L] + T.rowHeight[E]; + var A = this.getLongestRowIndex(T), E = T.rowWidth.length - 1, L = T.rows[A], _ = L[L.length - 1], R = _.width + T.horizontalPadding; + if (T.width - T.rowWidth[E] > R && A != E) { + L.splice(-1, 1), T.rows[E].push(_), T.rowWidth[A] = T.rowWidth[A] - R, T.rowWidth[E] = T.rowWidth[E] + R, T.width = T.rowWidth[instance.getLongestRowIndex(T)]; + for (var $ = Number.MIN_VALUE, k = 0; k < L.length; k++) + L[k].height > $ && ($ = L[k].height); + A > 0 && ($ += T.verticalPadding); + var N = T.rowHeight[A] + T.rowHeight[E]; + T.rowHeight[A] = $, T.rowHeight[E] < _.height + T.verticalPadding && (T.rowHeight[E] = _.height + T.verticalPadding); + var M = T.rowHeight[A] + T.rowHeight[E]; T.height += M - N, this.shiftToLastRow(T); } }, S.prototype.tilingPreLayout = function() { @@ -112400,12 +112422,12 @@ function Qsr() { }, S.prototype.tilingPostLayout = function() { f.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds()); }, S.prototype.reduceTrees = function() { - for (var T = [], L = !0, E; L; ) { - var A = this.graphManager.getAllNodes(), _ = []; - L = !1; - for (var R = 0; R < A.length; R++) - E = A[R], E.getEdges().length == 1 && !E.getEdges()[0].isInterGraph && E.getChild() == null && (_.push([E, E.getEdges()[0], E.getOwner()]), L = !0); - if (L == !0) { + for (var T = [], A = !0, E; A; ) { + var L = this.graphManager.getAllNodes(), _ = []; + A = !1; + for (var R = 0; R < L.length; R++) + E = L[R], E.getEdges().length == 1 && !E.getEdges()[0].isInterGraph && E.getChild() == null && (_.push([E, E.getEdges()[0], E.getOwner()]), A = !0); + if (A == !0) { for (var $ = [], k = 0; k < _.length; k++) _[k][0].getEdges().length == 1 && ($.push(_[k]), _[k][0].getOwner().remove(_[k][0])); T.push($), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges(); @@ -112413,12 +112435,12 @@ function Qsr() { } this.prunedNodesAll = T; }, S.prototype.growTree = function(T) { - for (var L = T.length, E = T[L - 1], A, _ = 0; _ < E.length; _++) - A = E[_], this.findPlaceforPrunedNode(A), A[2].add(A[0]), A[2].add(A[1], A[1].source, A[1].target); + for (var A = T.length, E = T[A - 1], L, _ = 0; _ < E.length; _++) + L = E[_], this.findPlaceforPrunedNode(L), L[2].add(L[0]), L[2].add(L[1], L[1].source, L[1].target); T.splice(T.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges(); }, S.prototype.findPlaceforPrunedNode = function(T) { - var L, E, A = T[0]; - A == T[1].source ? E = T[1].target : E = T[1].source; + var A, E, L = T[0]; + L == T[1].source ? E = T[1].target : E = T[1].source; var _ = E.startX, R = E.finishX, $ = E.startY, k = E.finishY, N = 0, M = 0, I = 0, D = 0, P = [N, I, M, D]; if ($ > 0) for (var F = _; F <= R; F++) @@ -112435,16 +112457,16 @@ function Qsr() { for (var B = y.MAX_VALUE, V, Q, W = 0; W < P.length; W++) P[W] < B ? (B = P[W], V = 1, Q = W) : P[W] == B && V++; if (V == 3 && B == 0) - P[0] == 0 && P[1] == 0 && P[2] == 0 ? L = 1 : P[0] == 0 && P[1] == 0 && P[3] == 0 ? L = 0 : P[0] == 0 && P[2] == 0 && P[3] == 0 ? L = 3 : P[1] == 0 && P[2] == 0 && P[3] == 0 && (L = 2); + P[0] == 0 && P[1] == 0 && P[2] == 0 ? A = 1 : P[0] == 0 && P[1] == 0 && P[3] == 0 ? A = 0 : P[0] == 0 && P[2] == 0 && P[3] == 0 ? A = 3 : P[1] == 0 && P[2] == 0 && P[3] == 0 && (A = 2); else if (V == 2 && B == 0) { var ee = Math.floor(Math.random() * 2); - P[0] == 0 && P[1] == 0 ? ee == 0 ? L = 0 : L = 1 : P[0] == 0 && P[2] == 0 ? ee == 0 ? L = 0 : L = 2 : P[0] == 0 && P[3] == 0 ? ee == 0 ? L = 0 : L = 3 : P[1] == 0 && P[2] == 0 ? ee == 0 ? L = 1 : L = 2 : P[1] == 0 && P[3] == 0 ? ee == 0 ? L = 1 : L = 3 : ee == 0 ? L = 2 : L = 3; + P[0] == 0 && P[1] == 0 ? ee == 0 ? A = 0 : A = 1 : P[0] == 0 && P[2] == 0 ? ee == 0 ? A = 0 : A = 2 : P[0] == 0 && P[3] == 0 ? ee == 0 ? A = 0 : A = 3 : P[1] == 0 && P[2] == 0 ? ee == 0 ? A = 1 : A = 2 : P[1] == 0 && P[3] == 0 ? ee == 0 ? A = 1 : A = 3 : ee == 0 ? A = 2 : A = 3; } else if (V == 4 && B == 0) { var ee = Math.floor(Math.random() * 4); - L = ee; + A = ee; } else - L = Q; - L == 0 ? A.setCenter(E.getCenterX(), E.getCenterY() - E.getHeight() / 2 - d.DEFAULT_EDGE_LENGTH - A.getHeight() / 2) : L == 1 ? A.setCenter(E.getCenterX() + E.getWidth() / 2 + d.DEFAULT_EDGE_LENGTH + A.getWidth() / 2, E.getCenterY()) : L == 2 ? A.setCenter(E.getCenterX(), E.getCenterY() + E.getHeight() / 2 + d.DEFAULT_EDGE_LENGTH + A.getHeight() / 2) : A.setCenter(E.getCenterX() - E.getWidth() / 2 - d.DEFAULT_EDGE_LENGTH - A.getWidth() / 2, E.getCenterY()); + A = Q; + A == 0 ? L.setCenter(E.getCenterX(), E.getCenterY() - E.getHeight() / 2 - d.DEFAULT_EDGE_LENGTH - L.getHeight() / 2) : A == 1 ? L.setCenter(E.getCenterX() + E.getWidth() / 2 + d.DEFAULT_EDGE_LENGTH + L.getWidth() / 2, E.getCenterY()) : A == 2 ? L.setCenter(E.getCenterX(), E.getCenterY() + E.getHeight() / 2 + d.DEFAULT_EDGE_LENGTH + L.getHeight() / 2) : L.setCenter(E.getCenterX() - E.getWidth() / 2 - d.DEFAULT_EDGE_LENGTH - L.getWidth() / 2, E.getCenterY()); }, n.exports = S; }, function(n, i, s) { @@ -112453,11 +112475,11 @@ function Qsr() { } ]); }); - }(uA)), uA.exports; + }(hA)), hA.exports; } (function(t, e) { (function(n, i) { - t.exports = i(Qsr()); + t.exports = i(Ysr()); })(Uc, function(r) { return function(n) { var i = {}; @@ -112542,10 +112564,10 @@ function Qsr() { C.stopped = !1, this.cy = this.options.cy, this.cy.trigger({ type: "layoutstart", layout: this }); var T = S.newGraphManager(); this.gm = T; - var L = this.options.eles.nodes(), E = this.options.eles.edges(); - this.root = T.addRoot(), this.processChildrenList(this.root, this.getTopMostNodes(L), S); - for (var A = 0; A < E.length; A++) { - var _ = E[A], R = this.idToLNode[_.data("source")], $ = this.idToLNode[_.data("target")]; + var A = this.options.eles.nodes(), E = this.options.eles.edges(); + this.root = T.addRoot(), this.processChildrenList(this.root, this.getTopMostNodes(A), S); + for (var L = 0; L < E.length; L++) { + var _ = E[L], R = this.idToLNode[_.data("source")], $ = this.idToLNode[_.data("target")]; if (R !== $ && R.getEdgesBetween($).length == 0) { var k = T.add(S.newEdge(), R, $); k.id = _.id(); @@ -112590,26 +112612,26 @@ function Qsr() { w[b[O].id()] = !0; var S = b.filter(function(C, T) { typeof C == "number" && (C = T); - for (var L = C.parent()[0]; L != null; ) { - if (w[L.id()]) + for (var A = C.parent()[0]; A != null; ) { + if (w[A.id()]) return !1; - L = L.parent()[0]; + A = A.parent()[0]; } return !0; }); return S; }, m.prototype.processChildrenList = function(b, w, O) { for (var S = w.length, C = 0; C < S; C++) { - var T = w[C], L = T.children(), E, A = T.layoutDimensions({ + var T = w[C], A = T.children(), E, L = T.layoutDimensions({ nodeDimensionsIncludeLabels: this.options.nodeDimensionsIncludeLabels }); - if (T.outerWidth() != null && T.outerHeight() != null ? E = b.add(new h(O.graphManager, new f(T.position("x") - A.w / 2, T.position("y") - A.h / 2), new d(parseFloat(A.w), parseFloat(A.h)))) : E = b.add(new h(this.graphManager)), E.id = T.data("id"), E.paddingLeft = parseInt(T.css("padding")), E.paddingTop = parseInt(T.css("padding")), E.paddingRight = parseInt(T.css("padding")), E.paddingBottom = parseInt(T.css("padding")), this.options.nodeDimensionsIncludeLabels && T.isParent()) { + if (T.outerWidth() != null && T.outerHeight() != null ? E = b.add(new h(O.graphManager, new f(T.position("x") - L.w / 2, T.position("y") - L.h / 2), new d(parseFloat(L.w), parseFloat(L.h)))) : E = b.add(new h(this.graphManager)), E.id = T.data("id"), E.paddingLeft = parseInt(T.css("padding")), E.paddingTop = parseInt(T.css("padding")), E.paddingRight = parseInt(T.css("padding")), E.paddingBottom = parseInt(T.css("padding")), this.options.nodeDimensionsIncludeLabels && T.isParent()) { var _ = T.boundingBox({ includeLabels: !0, includeNodes: !1 }).w, R = T.boundingBox({ includeLabels: !0, includeNodes: !1 }).h, $ = T.css("text-halign"); E.labelWidth = _, E.labelHeight = R, E.labelPos = $; } - if (this.idToLNode[T.data("id")] = E, isNaN(E.rect.x) && (E.rect.x = 0), isNaN(E.rect.y) && (E.rect.y = 0), L != null && L.length > 0) { + if (this.idToLNode[T.data("id")] = E, isNaN(E.rect.x) && (E.rect.x = 0), isNaN(E.rect.y) && (E.rect.y = 0), A != null && A.length > 0) { var k; - k = O.getGraphManager().add(O.newGraph(), E), this.processChildrenList(k, L, O); + k = O.getGraphManager().add(O.newGraph(), E), this.processChildrenList(k, A, O); } } }, m.prototype.stop = function() { @@ -112622,9 +112644,9 @@ function Qsr() { } ]); }); -})(gve); -const Ysr = /* @__PURE__ */ CZ(gve.exports); -var fR = function() { +})(mve); +const Wsr = /* @__PURE__ */ EZ(mve.exports); +var dR = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) ; @@ -112636,51 +112658,51 @@ var fR = function() { symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 }, terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" }, productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]], - performAction: /* @__PURE__ */ x(function(S, C, T, L, E, A, _) { - var R = A.length - 1; + performAction: /* @__PURE__ */ x(function(S, C, T, A, E, L, _) { + var R = L.length - 1; switch (E) { case 6: case 7: - return L; + return A; case 8: - L.getLogger().trace("Stop NL "); + A.getLogger().trace("Stop NL "); break; case 9: - L.getLogger().trace("Stop EOF "); + A.getLogger().trace("Stop EOF "); break; case 11: - L.getLogger().trace("Stop NL2 "); + A.getLogger().trace("Stop NL2 "); break; case 12: - L.getLogger().trace("Stop EOF2 "); + A.getLogger().trace("Stop EOF2 "); break; case 15: - L.getLogger().info("Node: ", A[R].id), L.addNode(A[R - 1].length, A[R].id, A[R].descr, A[R].type); + A.getLogger().info("Node: ", L[R].id), A.addNode(L[R - 1].length, L[R].id, L[R].descr, L[R].type); break; case 16: - L.getLogger().trace("Icon: ", A[R]), L.decorateNode({ icon: A[R] }); + A.getLogger().trace("Icon: ", L[R]), A.decorateNode({ icon: L[R] }); break; case 17: case 21: - L.decorateNode({ class: A[R] }); + A.decorateNode({ class: L[R] }); break; case 18: - L.getLogger().trace("SPACELIST"); + A.getLogger().trace("SPACELIST"); break; case 19: - L.getLogger().trace("Node: ", A[R].id), L.addNode(0, A[R].id, A[R].descr, A[R].type); + A.getLogger().trace("Node: ", L[R].id), A.addNode(0, L[R].id, L[R].descr, L[R].type); break; case 20: - L.decorateNode({ icon: A[R] }); + A.decorateNode({ icon: L[R] }); break; case 25: - L.getLogger().trace("node found ..", A[R - 2]), this.$ = { id: A[R - 1], descr: A[R - 1], type: L.getType(A[R - 2], A[R]) }; + A.getLogger().trace("node found ..", L[R - 2]), this.$ = { id: L[R - 1], descr: L[R - 1], type: A.getType(L[R - 2], L[R]) }; break; case 26: - this.$ = { id: A[R], descr: A[R], type: L.nodeType.DEFAULT }; + this.$ = { id: L[R], descr: L[R], type: A.nodeType.DEFAULT }; break; case 27: - L.getLogger().trace("node found ..", A[R - 3]), this.$ = { id: A[R - 3], descr: A[R - 1], type: L.getType(A[R - 2], A[R]) }; + A.getLogger().trace("node found ..", L[R - 3]), this.$ = { id: L[R - 3], descr: L[R - 1], type: A.getType(L[R - 2], L[R]) }; break; } }, "anonymous"), @@ -112695,21 +112717,21 @@ var fR = function() { } }, "parseError"), parse: /* @__PURE__ */ x(function(S) { - var C = this, T = [0], L = [], E = [null], A = [], _ = this.table, R = "", $ = 0, k = 0, N = 2, M = 1, I = A.slice.call(arguments, 1), D = Object.create(this.lexer), P = { yy: {} }; + var C = this, T = [0], A = [], E = [null], L = [], _ = this.table, R = "", $ = 0, k = 0, N = 2, M = 1, I = L.slice.call(arguments, 1), D = Object.create(this.lexer), P = { yy: {} }; for (var F in this.yy) Object.prototype.hasOwnProperty.call(this.yy, F) && (P.yy[F] = this.yy[F]); D.setInput(S, P.yy), P.yy.lexer = D, P.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {}); var B = D.yylloc; - A.push(B); + L.push(B); var V = D.options && D.options.ranges; typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function Q(K) { - T.length = T.length - 2 * K, E.length = E.length - K, A.length = A.length - K; + T.length = T.length - 2 * K, E.length = E.length - K, L.length = L.length - K; } x(Q, "popStack"); function W() { var K; - return K = L.pop() || D.lex() || M, typeof K != "number" && (K instanceof Array && (L = K, K = L.pop()), K = C.symbols_[K] || K), K; + return K = A.pop() || D.lex() || M, typeof K != "number" && (K instanceof Array && (A = K, K = A.pop()), K = C.symbols_[K] || K), K; } x(W, "lex"); for (var ee, Y, ne, ie, U = {}, Z, G, j, ae; ; ) { @@ -112732,17 +112754,17 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se throw new Error("Parse Error: multiple actions possible at state: " + Y + ", token: " + ee); switch (ne[0]) { case 1: - T.push(ee), E.push(D.yytext), A.push(D.yylloc), T.push(ne[1]), ee = null, k = D.yyleng, R = D.yytext, $ = D.yylineno, B = D.yylloc; + T.push(ee), E.push(D.yytext), L.push(D.yylloc), T.push(ne[1]), ee = null, k = D.yyleng, R = D.yytext, $ = D.yylineno, B = D.yylloc; break; case 2: if (G = this.productions_[ne[1]][1], U.$ = E[E.length - G], U._$ = { - first_line: A[A.length - (G || 1)].first_line, - last_line: A[A.length - 1].last_line, - first_column: A[A.length - (G || 1)].first_column, - last_column: A[A.length - 1].last_column + first_line: L[L.length - (G || 1)].first_line, + last_line: L[L.length - 1].last_line, + first_column: L[L.length - (G || 1)].first_column, + last_column: L[L.length - 1].last_column }, V && (U._$.range = [ - A[A.length - (G || 1)].range[0], - A[A.length - 1].range[1] + L[L.length - (G || 1)].range[0], + L[L.length - 1].range[1] ]), ie = this.performAction.apply(U, [ R, k, @@ -112750,10 +112772,10 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se P.yy, ne[1], E, - A + L ].concat(I)), typeof ie < "u") return ie; - G && (T = T.slice(0, -1 * G * 2), E = E.slice(0, -1 * G), A = A.slice(0, -1 * G)), T.push(this.productions_[ne[1]][0]), E.push(U.$), A.push(U._$), j = _[T[T.length - 2]][T[T.length - 1]], T.push(j); + G && (T = T.slice(0, -1 * G * 2), E = E.slice(0, -1 * G), L = L.slice(0, -1 * G)), T.push(this.productions_[ne[1]][0]), E.push(U.$), L.push(U._$), j = _[T[T.length - 2]][T[T.length - 1]], T.push(j); break; case 3: return !0; @@ -112787,14 +112809,14 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se unput: /* @__PURE__ */ x(function(S) { var C = S.length, T = S.split(/(?:\r\n?|\n)/g); this._input = S + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - C), this.offset -= C; - var L = this.match.split(/(?:\r\n?|\n)/g); + var A = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), T.length - 1 && (this.yylineno -= T.length - 1); var E = this.yylloc.range; return this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, - last_column: T ? (T.length === L.length ? this.yylloc.first_column : 0) + L[L.length - T.length].length - T[0].length : this.yylloc.first_column - C + last_column: T ? (T.length === A.length ? this.yylloc.first_column : 0) + A[A.length - T.length].length - T[0].length : this.yylloc.first_column - C }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - C]), this.yyleng = this.yytext.length, this; }, "unput"), more: /* @__PURE__ */ x(function() { @@ -112829,7 +112851,7 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se ` + C + "^"; }, "showPosition"), test_match: /* @__PURE__ */ x(function(S, C) { - var T, L, E; + var T, A, E; if (this.options.backtrack_lexer && (E = { yylineno: this.yylineno, yylloc: { @@ -112849,16 +112871,16 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done - }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), L = S[0].match(/(?:\r\n?|\n).*/g), L && (this.yylineno += L.length), this.yylloc = { + }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), A = S[0].match(/(?:\r\n?|\n).*/g), A && (this.yylineno += A.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, - last_column: L ? L[L.length - 1].length - L[L.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + S[0].length + last_column: A ? A[A.length - 1].length - A[A.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + S[0].length }, this.yytext += S[0], this.match += S[0], this.matches = S, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(S[0].length), this.matched += S[0], T = this.performAction.call(this, this.yy, this, C, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), T) return T; if (this._backtrack) { - for (var A in E) - this[A] = E[A]; + for (var L in E) + this[L] = E[L]; return !1; } return !1; @@ -112867,12 +112889,12 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se if (this.done) return this.EOF; this._input || (this.done = !0); - var S, C, T, L; + var S, C, T, A; this._more || (this.yytext = "", this.match = ""); - for (var E = this._currentRules(), A = 0; A < E.length; A++) - if (T = this._input.match(this.rules[E[A]]), T && (!C || T[0].length > C[0].length)) { - if (C = T, L = A, this.options.backtrack_lexer) { - if (S = this.test_match(T, E[A]), S !== !1) + for (var E = this._currentRules(), L = 0; L < E.length; L++) + if (T = this._input.match(this.rules[E[L]]), T && (!C || T[0].length > C[0].length)) { + if (C = T, A = L, this.options.backtrack_lexer) { + if (S = this.test_match(T, E[L]), S !== !1) return S; if (this._backtrack) { C = !1; @@ -112882,7 +112904,7 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se } else if (!this.options.flex) break; } - return C ? (S = this.test_match(C, E[L]), S !== !1 ? S : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. + return C ? (S = this.test_match(C, E[A]), S !== !1 ? S : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. ` + this.showPosition(), { text: "", token: null, @@ -112913,8 +112935,8 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se return this.conditionStack.length; }, "stateStackSize"), options: { "case-insensitive": !0 }, - performAction: /* @__PURE__ */ x(function(C, T, L, E) { - switch (L) { + performAction: /* @__PURE__ */ x(function(C, T, A, E) { + switch (A) { case 0: return C.getLogger().trace("Found comment", T.yytext), 6; case 1: @@ -113010,15 +113032,15 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se } return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); -fR.parser = fR; -var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { - Al = [], mve = 0, ZP = {}; -}, "clear"), Hsr = /* @__PURE__ */ x(function(t) { +dR.parser = dR; +var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { + Al = [], vve = 0, ZP = {}; +}, "clear"), Xsr = /* @__PURE__ */ x(function(t) { for (let e = Al.length - 1; e >= 0; e--) if (Al[e].level < t) return Al[e]; return null; -}, "getParent"), Xsr = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), Zsr = /* @__PURE__ */ x((t, e, r, n) => { +}, "getParent"), Zsr = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), jsr = /* @__PURE__ */ x((t, e, r, n) => { var l, u, h, f; X.info("addNode", t, e, r, n); const i = be(); @@ -113030,7 +113052,7 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { s *= 2; } const a = { - id: mve++, + id: vve++, nodeId: ni(e, i), level: t, descr: ni(r, i), @@ -113038,7 +113060,7 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { children: [], width: (f = (h = i.mindmap) == null ? void 0 : h.maxNodeWidth) != null ? f : jr.mindmap.maxNodeWidth, padding: s - }, o = Hsr(t); + }, o = Xsr(t); if (o) o.children.push(a), Al.push(a); else if (Al.length === 0) @@ -113056,7 +113078,7 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, jsr = /* @__PURE__ */ x((t, e) => { +}, Ksr = /* @__PURE__ */ x((t, e) => { switch (X.debug("In get type", t, e), t) { case "[": return Oi.RECT; @@ -113073,14 +113095,14 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { default: return Oi.DEFAULT; } -}, "getType"), Ksr = /* @__PURE__ */ x((t, e) => { +}, "getType"), Jsr = /* @__PURE__ */ x((t, e) => { ZP[t] = e; -}, "setElementForId"), Jsr = /* @__PURE__ */ x((t) => { +}, "setElementForId"), ear = /* @__PURE__ */ x((t) => { if (!t) return; const e = be(), r = Al[Al.length - 1]; t.icon && (r.icon = ni(t.icon, e)), t.class && (r.class = ni(t.class, e)); -}, "decorateNode"), ear = /* @__PURE__ */ x((t) => { +}, "decorateNode"), tar = /* @__PURE__ */ x((t) => { switch (t) { case Oi.DEFAULT: return "no-border"; @@ -113099,25 +113121,25 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { default: return "no-border"; } -}, "type2Str"), tar = /* @__PURE__ */ x(() => X, "getLogger"), rar = /* @__PURE__ */ x((t) => ZP[t], "getElementById"), nar = { - clear: Gsr, - addNode: Zsr, - getMindmap: Xsr, +}, "type2Str"), rar = /* @__PURE__ */ x(() => X, "getLogger"), nar = /* @__PURE__ */ x((t) => ZP[t], "getElementById"), iar = { + clear: Hsr, + addNode: jsr, + getMindmap: Zsr, nodeType: Oi, - getType: jsr, - setElementForId: Ksr, - decorateNode: Jsr, - type2Str: ear, - getLogger: tar, - getElementById: rar -}, iar = nar, sar = 12, aar = /* @__PURE__ */ x(function(t, e, r, n) { + getType: Ksr, + setElementForId: Jsr, + decorateNode: ear, + type2Str: tar, + getLogger: rar, + getElementById: nar +}, sar = iar, aar = 12, oar = /* @__PURE__ */ x(function(t, e, r, n) { e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", `M0 ${r.height - 5} v${-r.height + 2 * 5} q0,-5 5,-5 h${r.width - 2 * 5} q5,0 5,5 v${r.height - 5} H0 Z` ), e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", r.height).attr("x2", r.width).attr("y2", r.height); -}, "defaultBkg"), oar = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultBkg"), lar = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("width", r.width); -}, "rectBkg"), lar = /* @__PURE__ */ x(function(t, e, r) { +}, "rectBkg"), car = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n, a = 0.25 * n, o = 0.35 * n, l = 0.2 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -113137,7 +113159,7 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "cloudBkg"), car = /* @__PURE__ */ x(function(t, e, r) { +}, "cloudBkg"), uar = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -113161,10 +113183,10 @@ var Wsr = fR, Al = [], mve = 0, ZP = {}, Gsr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "bangBkg"), uar = /* @__PURE__ */ x(function(t, e, r) { +}, "bangBkg"), har = /* @__PURE__ */ x(function(t, e, r) { e.append("circle").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("r", r.width / 2); }, "circleBkg"); -function vve(t, e, r, n, i) { +function yve(t, e, r, n, i) { return t.insert("polygon", ":first-child").attr( "points", n.map(function(s) { @@ -113172,8 +113194,8 @@ function vve(t, e, r, n, i) { }).join(" ") ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } -x(vve, "insertPolygonShape"); -var har = /* @__PURE__ */ x(function(t, e, r) { +x(yve, "insertPolygonShape"); +var far = /* @__PURE__ */ x(function(t, e, r) { const n = r.height, s = n / 4, a = r.width - r.padding + 2 * s, o = [ { x: s, y: 0 }, { x: a - s, y: 0 }, @@ -113182,11 +113204,11 @@ var har = /* @__PURE__ */ x(function(t, e, r) { { x: s, y: -n }, { x: 0, y: -n / 2 } ]; - vve(e, a, n, o, r); -}, "hexagonBkg"), far = /* @__PURE__ */ x(function(t, e, r) { + yve(e, a, n, o, r); +}, "hexagonBkg"), dar = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width); -}, "roundedRectBkg"), dar = /* @__PURE__ */ x(async function(t, e, r, n, i) { - const s = i.htmlLabels, a = n % (sar - 1), o = e.append("g"); +}, "roundedRectBkg"), par = /* @__PURE__ */ x(async function(t, e, r, n, i) { + const s = i.htmlLabels, a = n % (aar - 1), o = e.append("g"); r.section = a; let l = "section-" + a; a < 0 && (l += " section-root"), o.attr("class", (r.class ? r.class + " " : "") + "mindmap-node " + l); @@ -113228,42 +113250,42 @@ var har = /* @__PURE__ */ x(function(t, e, r) { } switch (r.type) { case t.nodeType.DEFAULT: - aar(t, u, r, a); + oar(t, u, r, a); break; case t.nodeType.ROUNDED_RECT: - far(t, u, r, a); + dar(t, u, r, a); break; case t.nodeType.RECT: - oar(t, u, r, a); + lar(t, u, r, a); break; case t.nodeType.CIRCLE: - u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), uar(t, u, r, a); + u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), har(t, u, r, a); break; case t.nodeType.CLOUD: - lar(t, u, r, a); + car(t, u, r, a); break; case t.nodeType.BANG: - car(t, u, r, a); + uar(t, u, r, a); break; case t.nodeType.HEXAGON: - har(t, u, r, a); + far(t, u, r, a); break; } return t.setElementForId(r.id, o), r.height; -}, "drawNode"), par = /* @__PURE__ */ x(function(t, e) { +}, "drawNode"), gar = /* @__PURE__ */ x(function(t, e) { const r = t.getElementById(e.id), n = e.x || 0, i = e.y || 0; r.attr("transform", "translate(" + n + "," + i + ")"); }, "positionNode"); -Vc.use(Ysr); +Vc.use(Wsr); async function jP(t, e, r, n, i) { - await dar(t, e, r, n, i), r.children && await Promise.all( + await par(t, e, r, n, i), r.children && await Promise.all( r.children.map( (s, a) => jP(t, e, s, n < 0 ? a : n, i) ) ); } x(jP, "drawNodes"); -function yve(t, e) { +function bve(t, e) { e.edges().map((r, n) => { const i = r.data(); if (r[0]._private.bodyBounds) { @@ -113275,7 +113297,7 @@ function yve(t, e) { } }); } -x(yve, "drawEdges"); +x(bve, "drawEdges"); function KP(t, e, r, n) { e.add({ group: "nodes", @@ -113307,7 +113329,7 @@ function KP(t, e, r, n) { }); } x(KP, "addNodes"); -function bve(t, e) { +function xve(t, e) { return new Promise((r) => { const n = et("body").append("div").attr("id", "cy").attr("style", "display:none"), i = Vc({ container: document.getElementById("cy"), @@ -113335,11 +113357,11 @@ function bve(t, e) { }); }); } -x(bve, "layoutMindmap"); -function xve(t, e) { +x(xve, "layoutMindmap"); +function wve(t, e) { e.nodes().map((r, n) => { const i = r.data(); - i.x = r.position().x, i.y = r.position().y, par(t, i); + i.x = r.position().x, i.y = r.position().y, gar(t, i); const s = t.getElementById(i.nodeId); X.info("Id:", n, "Position: (", r.position().x, ", ", r.position().y, ")", i), s.attr( "transform", @@ -113347,8 +113369,8 @@ function xve(t, e) { ), s.attr("attr", `apa-${n})`); }); } -x(xve, "positionNodes"); -var gar = /* @__PURE__ */ x(async (t, e, r, n) => { +x(wve, "positionNodes"); +var mar = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; X.debug(`Rendering mindmap diagram ` + t); @@ -113361,16 +113383,16 @@ var gar = /* @__PURE__ */ x(async (t, e, r, n) => { l.attr("class", "mindmap-edges"); const u = o.append("g"); u.attr("class", "mindmap-nodes"), await jP(i, u, s, -1, a); - const h = await bve(s, a); - yve(l, h), xve(i, h), H1( + const h = await xve(s, a); + bve(l, h), wve(i, h), H1( void 0, o, (d = (f = a.mindmap) == null ? void 0 : f.padding) != null ? d : jr.mindmap.padding, (g = (p = a.mindmap) == null ? void 0 : p.useMaxWidth) != null ? g : jr.mindmap.useMaxWidth ); -}, "draw"), mar = { - draw: gar -}, yar = /* @__PURE__ */ x((t) => { +}, "draw"), yar = { + draw: mar +}, bar = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], B0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Yt(t["lineColor" + r], 20); @@ -113407,11 +113429,11 @@ var gar = /* @__PURE__ */ x(async (t, e, r, n) => { `; } return e; -}, "genSections"), bar = /* @__PURE__ */ x((t) => ` +}, "genSections"), xar = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${yar(t)} + ${bar(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -113434,17 +113456,17 @@ var gar = /* @__PURE__ */ x(async (t, e, r, n) => { dominant-baseline: middle; text-align: center; } -`, "getStyles"), xar = bar, war = { - db: iar, - renderer: mar, - parser: Wsr, - styles: xar +`, "getStyles"), war = xar, Oar = { + db: sar, + renderer: yar, + parser: Gsr, + styles: war }; -const Oar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const kar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: war + diagram: Oar }, Symbol.toStringTag, { value: "Module" })); -function VX(t, e) { +function UX(t, e) { let r; if (e === void 0) for (const n of t) @@ -113456,7 +113478,7 @@ function VX(t, e) { } return r; } -function wve(t, e) { +function Ove(t, e) { let r; if (e === void 0) for (const n of t) @@ -113468,7 +113490,7 @@ function wve(t, e) { } return r; } -function fA(t, e) { +function dA(t, e) { let r = 0; if (e === void 0) for (let n of t) @@ -113480,54 +113502,54 @@ function fA(t, e) { } return r; } -function kar(t) { +function Sar(t) { return t.target.depth; } -function Sar(t) { +function Tar(t) { return t.depth; } -function Tar(t, e) { +function Car(t, e) { return e - 1 - t.height; } -function Ove(t, e) { +function kve(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } -function Car(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? wve(t.sourceLinks, kar) - 1 : 0; +function Ear(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Ove(t.sourceLinks, Sar) - 1 : 0; } function WO(t) { return function() { return t; }; } -function UX(t, e) { - return mS(t.source, e.source) || t.index - e.index; -} function qX(t, e) { - return mS(t.target, e.target) || t.index - e.index; + return vS(t.source, e.source) || t.index - e.index; +} +function QX(t, e) { + return vS(t.target, e.target) || t.index - e.index; } -function mS(t, e) { +function vS(t, e) { return t.y0 - e.y0; } -function dA(t) { +function pA(t) { return t.value; } -function Ear(t) { +function _ar(t) { return t.index; } -function _ar(t) { +function Aar(t) { return t.nodes; } -function Aar(t) { +function Lar(t) { return t.links; } -function QX(t, e) { +function YX(t, e) { const r = t.get(e); if (!r) throw new Error("missing: " + e); return r; } -function YX({ nodes: t }) { +function WX({ nodes: t }) { for (const e of t) { let r = e.y0, n = r; for (const i of e.sourceLinks) @@ -113536,14 +113558,14 @@ function YX({ nodes: t }) { i.y1 = n + i.width / 2, n += i.width; } } -function Lar() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Ear, l = Ove, u, h, f = _ar, d = Aar, p = 6; +function Rar() { + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = _ar, l = kve, u, h, f = Aar, d = Lar, p = 6; function g() { const N = { nodes: f.apply(null, arguments), links: d.apply(null, arguments) }; - return m(N), v(N), y(N), b(N), S(N), YX(N), N; + return m(N), v(N), y(N), b(N), S(N), WX(N), N; } g.update = function(N) { - return YX(N), N; + return WX(N), N; }, g.nodeId = function(N) { return arguments.length ? (o = typeof N == "function" ? N : WO(N), g) : o; }, g.nodeAlign = function(N) { @@ -113574,7 +113596,7 @@ function Lar() { for (const [D, P] of M.entries()) { P.index = D; let { source: F, target: B } = P; - typeof F != "object" && (F = P.source = QX(I, F)), typeof B != "object" && (B = P.target = QX(I, B)), F.sourceLinks.push(P), B.targetLinks.push(P); + typeof F != "object" && (F = P.source = YX(I, F)), typeof B != "object" && (B = P.target = YX(I, B)), F.sourceLinks.push(P), B.targetLinks.push(P); } if (h != null) for (const { sourceLinks: D, targetLinks: P } of N) @@ -113582,7 +113604,7 @@ function Lar() { } function v({ nodes: N }) { for (const M of N) - M.value = M.fixedValue === void 0 ? Math.max(fA(M.sourceLinks, dA), fA(M.targetLinks, dA)) : M.fixedValue; + M.value = M.fixedValue === void 0 ? Math.max(dA(M.sourceLinks, pA), dA(M.targetLinks, pA)) : M.fixedValue; } function y({ nodes: N }) { const M = N.length; @@ -113613,7 +113635,7 @@ function Lar() { } } function w({ nodes: N }) { - const M = VX(N, (P) => P.depth) + 1, I = (r - t - i) / (M - 1), D = new Array(M); + const M = UX(N, (P) => P.depth) + 1, I = (r - t - i) / (M - 1), D = new Array(M); for (const P of N) { const F = Math.max(0, Math.min(M - 1, Math.floor(l.call(null, P, M)))); P.layer = F, P.x0 = t + F * I, P.x1 = P.x0 + i, D[F] ? D[F].push(P) : D[F] = [P]; @@ -113624,7 +113646,7 @@ function Lar() { return D; } function O(N) { - const M = wve(N, (I) => (n - e - (I.length - 1) * a) / fA(I, dA)); + const M = Ove(N, (I) => (n - e - (I.length - 1) * a) / dA(I, pA)); for (const I of N) { let D = e; for (const P of I) { @@ -113642,7 +113664,7 @@ function Lar() { } function S(N) { const M = w(N); - a = Math.min(s, (n - e) / (VX(M, (I) => I.length) - 1)), O(M); + a = Math.min(s, (n - e) / (UX(M, (I) => I.length) - 1)), O(M); for (let I = 0; I < p; ++I) { const D = Math.pow(0.99, I), P = Math.max(1 - D, (I + 1) / p); T(M, D, P), C(M, D, P); @@ -113662,7 +113684,7 @@ function Lar() { let W = (V / Q - B.y0) * M; B.y0 += W, B.y1 += W, _(B); } - u === void 0 && F.sort(mS), L(F, I); + u === void 0 && F.sort(vS), A(F, I); } } function T(N, M, I) { @@ -113679,12 +113701,12 @@ function Lar() { let W = (V / Q - B.y0) * M; B.y0 += W, B.y1 += W, _(B); } - u === void 0 && F.sort(mS), L(F, I); + u === void 0 && F.sort(vS), A(F, I); } } - function L(N, M) { + function A(N, M) { const I = N.length >> 1, D = N[I]; - A(N, D.y0 - a, I - 1, M), E(N, D.y1 + a, I + 1, M), A(N, n, N.length - 1, M), E(N, e, 0, M); + L(N, D.y0 - a, I - 1, M), E(N, D.y1 + a, I + 1, M), L(N, n, N.length - 1, M), E(N, e, 0, M); } function E(N, M, I, D) { for (; I < N.length; ++I) { @@ -113692,7 +113714,7 @@ function Lar() { F > 1e-6 && (P.y0 += F, P.y1 += F), M = P.y1 + a; } } - function A(N, M, I, D) { + function L(N, M, I, D) { for (; I >= 0; --I) { const P = N[I], F = (P.y1 - M) * D; F > 1e-6 && (P.y0 -= F, P.y1 -= F), M = P.y0 - a; @@ -113701,15 +113723,15 @@ function Lar() { function _({ sourceLinks: N, targetLinks: M }) { if (h === void 0) { for (const { source: { sourceLinks: I } } of M) - I.sort(qX); + I.sort(QX); for (const { target: { targetLinks: I } } of N) - I.sort(UX); + I.sort(qX); } } function R(N) { if (h === void 0) for (const { sourceLinks: M, targetLinks: I } of N) - M.sort(qX), I.sort(UX); + M.sort(QX), I.sort(qX); } function $(N, M) { let I = N.y0 - (N.sourceLinks.length - 1) * a / 2; @@ -113741,15 +113763,15 @@ function Lar() { } return g; } -var dR = Math.PI, pR = 2 * dR, fd = 1e-6, Rar = pR - fd; -function gR() { +var pR = Math.PI, gR = 2 * pR, fd = 1e-6, Mar = gR - fd; +function mR() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } -function kve() { - return new gR(); +function Sve() { + return new mR(); } -gR.prototype = kve.prototype = { - constructor: gR, +mR.prototype = Sve.prototype = { + constructor: mR, moveTo: function(t, e) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e); }, @@ -113776,7 +113798,7 @@ gR.prototype = kve.prototype = { if (!(Math.abs(h * o - l * u) > fd) || !i) this._ += "L" + (this._x1 = t) + "," + (this._y1 = e); else { - var d = r - s, p = n - a, g = o * o + l * l, m = d * d + p * p, v = Math.sqrt(g), y = Math.sqrt(f), b = i * Math.tan((dR - Math.acos((g + f - m) / (2 * v * y))) / 2), w = b / y, O = b / v; + var d = r - s, p = n - a, g = o * o + l * l, m = d * d + p * p, v = Math.sqrt(g), y = Math.sqrt(f), b = i * Math.tan((pR - Math.acos((g + f - m) / (2 * v * y))) / 2), w = b / y, O = b / v; Math.abs(w - 1) > fd && (this._ += "L" + (t + w * u) + "," + (e + w * h)), this._ += "A" + i + "," + i + ",0,0," + +(h * d > u * p) + "," + (this._x1 = t + O * o) + "," + (this._y1 = e + O * l); } }, @@ -113785,7 +113807,7 @@ gR.prototype = kve.prototype = { var a = r * Math.cos(n), o = r * Math.sin(n), l = t + a, u = e + o, h = 1 ^ s, f = s ? n - i : i - n; if (r < 0) throw new Error("negative radius: " + r); - this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > fd || Math.abs(this._y1 - u) > fd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % pR + pR), f > Rar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > fd && (this._ += "A" + r + "," + r + ",0," + +(f >= dR) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); + this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > fd || Math.abs(this._y1 - u) > fd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % gR + gR), f > Mar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > fd && (this._ += "A" + r + "," + r + ",0," + +(f >= pR) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); }, rect: function(t, e, r, n) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +r + "v" + +n + "h" + -r + "Z"; @@ -113794,29 +113816,29 @@ gR.prototype = kve.prototype = { return this._; } }; -function WX(t) { +function GX(t) { return function() { return t; }; } -function Mar(t) { +function Dar(t) { return t[0]; } -function Dar(t) { +function Nar(t) { return t[1]; } -var Nar = Array.prototype.slice; -function Iar(t) { +var Iar = Array.prototype.slice; +function Par(t) { return t.source; } -function Par(t) { +function $ar(t) { return t.target; } -function $ar(t) { - var e = Iar, r = Par, n = Mar, i = Dar, s = null; +function Bar(t) { + var e = Par, r = $ar, n = Dar, i = Nar, s = null; function a() { - var o, l = Nar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); - if (s || (s = o = kve()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) + var o, l = Iar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); + if (s || (s = o = Sve()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) return s = null, o + "" || null; } return a.source = function(o) { @@ -113824,29 +113846,29 @@ function $ar(t) { }, a.target = function(o) { return arguments.length ? (r = o, a) : r; }, a.x = function(o) { - return arguments.length ? (n = typeof o == "function" ? o : WX(+o), a) : n; + return arguments.length ? (n = typeof o == "function" ? o : GX(+o), a) : n; }, a.y = function(o) { - return arguments.length ? (i = typeof o == "function" ? o : WX(+o), a) : i; + return arguments.length ? (i = typeof o == "function" ? o : GX(+o), a) : i; }, a.context = function(o) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; } -function Bar(t, e, r, n, i) { +function Far(t, e, r, n, i) { t.moveTo(e, r), t.bezierCurveTo(e = (e + n) / 2, r, e, i, n, i); } -function Far() { - return $ar(Bar); +function zar() { + return Bar(Far); } -function zar(t) { +function Var(t) { return [t.source.x1, t.y0]; } -function Var(t) { +function Uar(t) { return [t.target.x0, t.y1]; } -function Uar() { - return Far().source(zar).target(Var); +function qar() { + return zar().source(Var).target(Uar); } -var mR = function() { +var vR = function() { var t = /* @__PURE__ */ x(function(o, l, u, h) { for (u = u || {}, h = o.length; h--; u[o[h]] = l) ; @@ -113890,14 +113912,14 @@ var mR = function() { for (var T in this.yy) Object.prototype.hasOwnProperty.call(this.yy, T) && (C.yy[T] = this.yy[T]); S.setInput(l, C.yy), C.yy.lexer = S, C.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {}); - var L = S.yylloc; - p.push(L); + var A = S.yylloc; + p.push(A); var E = S.options && S.options.ranges; typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function A(V) { + function L(V) { h.length = h.length - 2 * V, d.length = d.length - V, p.length = p.length - V; } - x(A, "popStack"); + x(L, "popStack"); function _() { var V; return V = f.pop() || S.lex() || w, typeof V != "number" && (V instanceof Array && (f = V, V = f.pop()), V = u.symbols_[V] || V), V; @@ -113915,7 +113937,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[R] || R) + "'" : B = " text: S.match, token: this.terminals_[R] || R, line: S.yylineno, - loc: L, + loc: A, expected: F }); } @@ -113923,7 +113945,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[R] || R) + "'" : B = " throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + R); switch (k[0]) { case 1: - h.push(R), d.push(S.yytext), p.push(S.yylloc), h.push(k[1]), R = null, y = S.yyleng, m = S.yytext, v = S.yylineno, L = S.yylloc; + h.push(R), d.push(S.yytext), p.push(S.yylloc), h.push(k[1]), R = null, y = S.yyleng, m = S.yytext, v = S.yylineno, A = S.yylloc; break; case 2: if (D = this.productions_[k[1]][1], M.$ = d[d.length - D], M._$ = { @@ -114135,50 +114157,50 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[R] || R) + "'" : B = " } return x(a, "Parser"), a.prototype = i, i.Parser = a, new a(); }(); -mR.parser = mR; -var vS = mR, jC = [], KC = [], yS = /* @__PURE__ */ new Map(), qar = /* @__PURE__ */ x(() => { - jC = [], KC = [], yS = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), zb, Qar = (zb = class { +vR.parser = vR; +var yS = vR, KC = [], JC = [], bS = /* @__PURE__ */ new Map(), Qar = /* @__PURE__ */ x(() => { + KC = [], JC = [], bS = /* @__PURE__ */ new Map(), Xi(); +}, "clear"), zb, Yar = (zb = class { constructor(e, r, n = 0) { this.source = e, this.target = r, this.value = n; } }, (() => { x(zb, "SankeyLink"); -})(), zb), Yar = /* @__PURE__ */ x((t, e, r) => { - jC.push(new Qar(t, e, r)); -}, "addLink"), Vb, War = (Vb = class { +})(), zb), War = /* @__PURE__ */ x((t, e, r) => { + KC.push(new Yar(t, e, r)); +}, "addLink"), Vb, Gar = (Vb = class { constructor(e) { this.ID = e; } }, (() => { x(Vb, "SankeyNode"); -})(), Vb), Gar = /* @__PURE__ */ x((t) => { +})(), Vb), Har = /* @__PURE__ */ x((t) => { t = at.sanitizeText(t, be()); - let e = yS.get(t); - return e === void 0 && (e = new War(t), yS.set(t, e), KC.push(e)), e; -}, "findOrCreateNode"), Har = /* @__PURE__ */ x(() => KC, "getNodes"), Xar = /* @__PURE__ */ x(() => jC, "getLinks"), Zar = /* @__PURE__ */ x(() => ({ - nodes: KC.map((t) => ({ id: t.ID })), - links: jC.map((t) => ({ + let e = bS.get(t); + return e === void 0 && (e = new Gar(t), bS.set(t, e), JC.push(e)), e; +}, "findOrCreateNode"), Xar = /* @__PURE__ */ x(() => JC, "getNodes"), Zar = /* @__PURE__ */ x(() => KC, "getLinks"), jar = /* @__PURE__ */ x(() => ({ + nodes: JC.map((t) => ({ id: t.ID })), + links: KC.map((t) => ({ source: t.source.ID, target: t.target.ID, value: t.value })) -}), "getGraph"), jar = { - nodesMap: yS, +}), "getGraph"), Kar = { + nodesMap: bS, getConfig: /* @__PURE__ */ x(() => be().sankey, "getConfig"), - getNodes: Har, - getLinks: Xar, - getGraph: Zar, - addLink: Yar, - findOrCreateNode: Gar, + getNodes: Xar, + getLinks: Zar, + getGraph: jar, + addLink: War, + findOrCreateNode: Har, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, setAccDescription: ys, getDiagramTitle: xs, setDiagramTitle: fa, - clear: qar -}, Yh, GX = (Yh = class { + clear: Qar +}, Yh, HX = (Yh = class { static next(e) { return new Yh(e + ++Yh.count); } @@ -114192,35 +114214,35 @@ var vS = mR, jC = [], KC = [], yS = /* @__PURE__ */ new Map(), qar = /* @__PURE_ x(Yh, "Uid"); })(), (() => { Yh.count = 0; -})(), Yh), Kar = { - left: Sar, - right: Tar, - center: Car, - justify: Ove -}, Jar = /* @__PURE__ */ x(function(t, e, r, n) { - var A, _, R, $, k, N, M, I; - const { securityLevel: i, sankey: s } = be(), a = Lie.sankey; +})(), Yh), Jar = { + left: Tar, + right: Car, + center: Ear, + justify: kve +}, eor = /* @__PURE__ */ x(function(t, e, r, n) { + var L, _, R, $, k, N, M, I; + const { securityLevel: i, sankey: s } = be(), a = Rie.sankey; let o; i === "sandbox" && (o = et("#i" + e)); - const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = (A = s == null ? void 0 : s.width) != null ? A : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (R = s == null ? void 0 : s.useMaxWidth) != null ? R : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = Kar[p], w = 10; - Lar().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ + const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = (L = s == null ? void 0 : s.width) != null ? L : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (R = s == null ? void 0 : s.useMaxWidth) != null ? R : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = Jar[p], w = 10; + Rar().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ [0, 0], [h, f] ])(y); - const S = CT(_Ot); - u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = GX.next("node-")).id).attr("transform", function(D) { + const S = ET(AOt); + u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = HX.next("node-")).id).attr("transform", function(D) { return "translate(" + D.x0 + "," + D.y0 + ")"; }).attr("x", (D) => D.x0).attr("y", (D) => D.y0).append("rect").attr("height", (D) => D.y1 - D.y0).attr("width", (D) => D.x1 - D.x0).attr("fill", (D) => S(D.id)); const C = /* @__PURE__ */ x(({ id: D, value: P }) => v ? `${D} ${g}${Math.round(P * 100) / 100}${m}` : D, "getText"); u.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(y.nodes).join("text").attr("x", (D) => D.x0 < h / 2 ? D.x1 + 6 : D.x0 - 6).attr("y", (D) => (D.y1 + D.y0) / 2).attr("dy", `${v ? "0" : "0.35"}em`).attr("text-anchor", (D) => D.x0 < h / 2 ? "start" : "end").text(C); - const T = u.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(y.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), L = (I = s == null ? void 0 : s.linkColor) != null ? I : "gradient"; - if (L === "gradient") { - const D = T.append("linearGradient").attr("id", (P) => (P.uid = GX.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (P) => P.source.x1).attr("x2", (P) => P.target.x0); + const T = u.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(y.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), A = (I = s == null ? void 0 : s.linkColor) != null ? I : "gradient"; + if (A === "gradient") { + const D = T.append("linearGradient").attr("id", (P) => (P.uid = HX.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (P) => P.source.x1).attr("x2", (P) => P.target.x0); D.append("stop").attr("offset", "0%").attr("stop-color", (P) => S(P.source.id)), D.append("stop").attr("offset", "100%").attr("stop-color", (P) => S(P.target.id)); } let E; - switch (L) { + switch (A) { case "gradient": E = /* @__PURE__ */ x((D) => D.uid, "coloring"); break; @@ -114231,47 +114253,47 @@ ${g}${Math.round(P * 100) / 100}${m}` : D, "getText"); E = /* @__PURE__ */ x((D) => S(D.target.id), "coloring"); break; default: - E = L; - } - T.append("path").attr("d", Uar()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), H1(void 0, u, 0, d); -}, "draw"), eor = { - draw: Jar -}, tor = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), ror = vS.parse.bind(vS); -vS.parse = (t) => ror(tor(t)); -var nor = { - parser: vS, - db: jar, - renderer: eor -}; -const ior = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + E = A; + } + T.append("path").attr("d", qar()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), H1(void 0, u, 0, d); +}, "draw"), tor = { + draw: eor +}, ror = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), nor = yS.parse.bind(yS); +yS.parse = (t) => nor(ror(t)); +var ior = { + parser: yS, + db: Kar, + renderer: tor +}; +const sor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: nor + diagram: ior }, Symbol.toStringTag, { value: "Module" })); -var Sve = { +var Tve = { packet: [] -}, JP = structuredClone(Sve), sor = jr.packet, aor = /* @__PURE__ */ x(() => { +}, JP = structuredClone(Tve), aor = jr.packet, oor = /* @__PURE__ */ x(() => { const t = ch({ - ...sor, + ...aor, ...pi().packet }); return t.showBits && (t.paddingY += 10), t; -}, "getConfig"), oor = /* @__PURE__ */ x(() => JP.packet, "getPacket"), lor = /* @__PURE__ */ x((t) => { +}, "getConfig"), lor = /* @__PURE__ */ x(() => JP.packet, "getPacket"), cor = /* @__PURE__ */ x((t) => { t.length > 0 && JP.packet.push(t); -}, "pushWord"), cor = /* @__PURE__ */ x(() => { - Xi(), JP = structuredClone(Sve); +}, "pushWord"), uor = /* @__PURE__ */ x(() => { + Xi(), JP = structuredClone(Tve); }, "clear"), _p = { - pushWord: lor, - getPacket: oor, - getConfig: aor, - clear: cor, + pushWord: cor, + getPacket: lor, + getConfig: oor, + clear: uor, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, uor = 1e4, hor = /* @__PURE__ */ x((t) => { +}, hor = 1e4, dor = /* @__PURE__ */ x((t) => { Rx(t, _p); let e = -1, r = [], n = 1; const { bitsPerRow: i } = _p.getConfig(); @@ -114282,15 +114304,15 @@ var Sve = { throw new Error( `Packet block ${s} - ${a != null ? a : s} is not contiguous. It should start from ${e + 1}.` ); - for (e = a != null ? a : s, X.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && _p.getPacket().length < uor; ) { - const [l, u] = dor({ start: s, end: a, label: o }, n, i); + for (e = a != null ? a : s, X.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && _p.getPacket().length < hor; ) { + const [l, u] = por({ start: s, end: a, label: o }, n, i); if (r.push(l), l.end + 1 === n * i && (_p.pushWord(r), r = [], n++), !u) break; ({ start: s, end: a, label: o } = u); } } _p.pushWord(r); -}, "populate"), dor = /* @__PURE__ */ x((t, e, r) => { +}, "populate"), por = /* @__PURE__ */ x((t, e, r) => { if (t.end === void 0 && (t.end = t.start), t.start > t.end) throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`); return t.end + 1 <= e * r ? [t, void 0] : [ @@ -114305,18 +114327,18 @@ var Sve = { label: t.label } ]; -}, "getNextFittingBlock"), por = { +}, "getNextFittingBlock"), gor = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("packet", t); - X.debug(e), hor(e); + X.debug(e), dor(e); }, "parse") -}, gor = /* @__PURE__ */ x((t, e, r, n) => { +}, mor = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getConfig(), { rowHeight: a, paddingY: o, bitWidth: l, bitsPerRow: u } = s, h = i.getPacket(), f = i.getDiagramTitle(), d = a + o, p = d * (h.length + 1) - (f ? 0 : a), g = l * u + 2, m = H0(e); m.attr("viewbox", `0 0 ${g} ${p}`), ms(m, p, g, s.useMaxWidth); for (const [v, y] of h.entries()) - mor(m, y, v, s); + vor(m, y, v, s); m.append("text").text(f).attr("x", g / 2).attr("y", p - d / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle"); -}, "draw"), mor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { +}, "draw"), vor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { const u = t.append("g"), h = r * (n + s) + s; for (const f of e) { const d = f.start % o * a + 1, p = (f.end - f.start + 1) * a - i; @@ -114325,7 +114347,7 @@ var Sve = { const g = f.end === f.start, m = h - 2; u.append("text").attr("x", d + (g ? p / 2 : 0)).attr("y", m).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", g ? "middle" : "start").text(f.start), g || u.append("text").attr("x", d + p).attr("y", m).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(f.end); } -}, "drawWord"), vor = { draw: gor }, yor = { +}, "drawWord"), yor = { draw: mor }, bor = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -114336,8 +114358,8 @@ var Sve = { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, bor = /* @__PURE__ */ x(({ packet: t } = {}) => { - const e = ch(yor, t); +}, xor = /* @__PURE__ */ x(({ packet: t } = {}) => { + const e = ch(bor, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -114362,17 +114384,17 @@ var Sve = { fill: ${e.blockFillColor}; } `; -}, "styles"), xor = { - parser: por, +}, "styles"), wor = { + parser: gor, db: _p, - renderer: vor, - styles: bor + renderer: yor, + styles: xor }; -const wor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Oor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: xor + diagram: wor }, Symbol.toStringTag, { value: "Module" })); -var vR = function() { +var yR = function() { var t = /* @__PURE__ */ x(function(w, O, S, C) { for (S = S || {}, C = w.length; C--; S[w[C]] = O) ; @@ -114384,9 +114406,9 @@ var vR = function() { symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 }, terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" }, productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]], - performAction: /* @__PURE__ */ x(function(O, S, C, T, L, E, A) { + performAction: /* @__PURE__ */ x(function(O, S, C, T, A, E, L) { var _ = E.length - 1; - switch (L) { + switch (A) { case 4: T.getLogger().debug("Rule: separator (NL) "); break; @@ -114494,7 +114516,7 @@ var vR = function() { } }, "parseError"), parse: /* @__PURE__ */ x(function(O) { - var S = this, C = [0], T = [], L = [null], E = [], A = this.table, _ = "", R = 0, $ = 0, k = 2, N = 1, M = E.slice.call(arguments, 1), I = Object.create(this.lexer), D = { yy: {} }; + var S = this, C = [0], T = [], A = [null], E = [], L = this.table, _ = "", R = 0, $ = 0, k = 2, N = 1, M = E.slice.call(arguments, 1), I = Object.create(this.lexer), D = { yy: {} }; for (var P in this.yy) Object.prototype.hasOwnProperty.call(this.yy, P) && (D.yy[P] = this.yy[P]); I.setInput(O, D.yy), D.yy.lexer = I, D.yy.parser = this, typeof I.yylloc > "u" && (I.yylloc = {}); @@ -114503,7 +114525,7 @@ var vR = function() { var B = I.options && I.options.ranges; typeof D.yy.parseError == "function" ? this.parseError = D.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function V(se) { - C.length = C.length - 2 * se, L.length = L.length - se, E.length = E.length - se; + C.length = C.length - 2 * se, A.length = A.length - se, E.length = E.length - se; } x(V, "popStack"); function Q() { @@ -114512,10 +114534,10 @@ var vR = function() { } x(Q, "lex"); for (var W, ee, Y, ne, ie = {}, U, Z, G, j; ; ) { - if (ee = C[C.length - 1], this.defaultActions[ee] ? Y = this.defaultActions[ee] : ((W === null || typeof W > "u") && (W = Q()), Y = A[ee] && A[ee][W]), typeof Y > "u" || !Y.length || !Y[0]) { + if (ee = C[C.length - 1], this.defaultActions[ee] ? Y = this.defaultActions[ee] : ((W === null || typeof W > "u") && (W = Q()), Y = L[ee] && L[ee][W]), typeof Y > "u" || !Y.length || !Y[0]) { var ae = ""; j = []; - for (U in A[ee]) + for (U in L[ee]) this.terminals_[U] && U > k && j.push("'" + this.terminals_[U] + "'"); I.showPosition ? ae = "Parse error on line " + (R + 1) + `: ` + I.showPosition() + ` @@ -114531,10 +114553,10 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = throw new Error("Parse Error: multiple actions possible at state: " + ee + ", token: " + W); switch (Y[0]) { case 1: - C.push(W), L.push(I.yytext), E.push(I.yylloc), C.push(Y[1]), W = null, $ = I.yyleng, _ = I.yytext, R = I.yylineno, F = I.yylloc; + C.push(W), A.push(I.yytext), E.push(I.yylloc), C.push(Y[1]), W = null, $ = I.yyleng, _ = I.yytext, R = I.yylineno, F = I.yylloc; break; case 2: - if (Z = this.productions_[Y[1]][1], ie.$ = L[L.length - Z], ie._$ = { + if (Z = this.productions_[Y[1]][1], ie.$ = A[A.length - Z], ie._$ = { first_line: E[E.length - (Z || 1)].first_line, last_line: E[E.length - 1].last_line, first_column: E[E.length - (Z || 1)].first_column, @@ -114548,11 +114570,11 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = R, D.yy, Y[1], - L, + A, E ].concat(M)), typeof ne < "u") return ne; - Z && (C = C.slice(0, -1 * Z * 2), L = L.slice(0, -1 * Z), E = E.slice(0, -1 * Z)), C.push(this.productions_[Y[1]][0]), L.push(ie.$), E.push(ie._$), G = A[C[C.length - 2]][C[C.length - 1]], C.push(G); + Z && (C = C.slice(0, -1 * Z * 2), A = A.slice(0, -1 * Z), E = E.slice(0, -1 * Z)), C.push(this.productions_[Y[1]][0]), A.push(ie.$), E.push(ie._$), G = L[C[C.length - 2]][C[C.length - 1]], C.push(G); break; case 3: return !0; @@ -114588,13 +114610,13 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = this._input = O + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S; var T = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1); - var L = this.yylloc.range; + var A = this.yylloc.range; return this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: C ? (C.length === T.length ? this.yylloc.first_column : 0) + T[T.length - C.length].length - C[0].length : this.yylloc.first_column - S - }, this.options.ranges && (this.yylloc.range = [L[0], L[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this; + }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this; }, "unput"), more: /* @__PURE__ */ x(function() { return this._more = !0, this; @@ -114628,8 +114650,8 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = ` + S + "^"; }, "showPosition"), test_match: /* @__PURE__ */ x(function(O, S) { - var C, T, L; - if (this.options.backtrack_lexer && (L = { + var C, T, A; + if (this.options.backtrack_lexer && (A = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, @@ -114648,7 +114670,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done - }, this.options.ranges && (L.yylloc.range = this.yylloc.range.slice(0))), T = O[0].match(/(?:\r\n?|\n).*/g), T && (this.yylineno += T.length), this.yylloc = { + }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), T = O[0].match(/(?:\r\n?|\n).*/g), T && (this.yylineno += T.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, @@ -114656,8 +114678,8 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = }, this.yytext += O[0], this.match += O[0], this.matches = O, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(O[0].length), this.matched += O[0], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C; if (this._backtrack) { - for (var E in L) - this[E] = L[E]; + for (var E in A) + this[E] = A[E]; return !1; } return !1; @@ -114668,10 +114690,10 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = this._input || (this.done = !0); var O, S, C, T; this._more || (this.yytext = "", this.match = ""); - for (var L = this._currentRules(), E = 0; E < L.length; E++) - if (C = this._input.match(this.rules[L[E]]), C && (!S || C[0].length > S[0].length)) { + for (var A = this._currentRules(), E = 0; E < A.length; E++) + if (C = this._input.match(this.rules[A[E]]), C && (!S || C[0].length > S[0].length)) { if (S = C, T = E, this.options.backtrack_lexer) { - if (O = this.test_match(C, L[E]), O !== !1) + if (O = this.test_match(C, A[E]), O !== !1) return O; if (this._backtrack) { S = !1; @@ -114681,7 +114703,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = } else if (!this.options.flex) break; } - return S ? (O = this.test_match(S, L[T]), O !== !1 ? O : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. + return S ? (O = this.test_match(S, A[T]), O !== !1 ? O : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. ` + this.showPosition(), { text: "", token: null, @@ -114712,7 +114734,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = return this.conditionStack.length; }, "stateStackSize"), options: {}, - performAction: /* @__PURE__ */ x(function(S, C, T, L) { + performAction: /* @__PURE__ */ x(function(S, C, T, A) { switch (T) { case 0: return 10; @@ -114955,21 +114977,21 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = } return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); -vR.parser = vR; -var Oor = vR, Ll = /* @__PURE__ */ new Map(), e$ = [], yR = /* @__PURE__ */ new Map(), HX = "color", XX = "fill", kor = "bgFill", Tve = ",", Sor = be(), bS = /* @__PURE__ */ new Map(), Tor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Sor), "sanitizeText"), Cor = /* @__PURE__ */ x(function(t, e = "") { - let r = bS.get(t); - r || (r = { id: t, styles: [], textStyles: [] }, bS.set(t, r)), e != null && e.split(Tve).forEach((n) => { +yR.parser = yR; +var kor = yR, Ll = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new Map(), XX = "color", ZX = "fill", Sor = "bgFill", Cve = ",", Tor = be(), xS = /* @__PURE__ */ new Map(), Cor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Tor), "sanitizeText"), Eor = /* @__PURE__ */ x(function(t, e = "") { + let r = xS.get(t); + r || (r = { id: t, styles: [], textStyles: [] }, xS.set(t, r)), e != null && e.split(Cve).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); - if (RegExp(HX).exec(n)) { - const a = i.replace(XX, kor).replace(HX, XX); + if (RegExp(XX).exec(n)) { + const a = i.replace(ZX, Sor).replace(XX, ZX); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), Eor = /* @__PURE__ */ x(function(t, e = "") { +}, "addStyleClass"), _or = /* @__PURE__ */ x(function(t, e = "") { const r = Ll.get(t); - e != null && (r.styles = e.split(Tve)); -}, "addStyle2Node"), _or = /* @__PURE__ */ x(function(t, e) { + e != null && (r.styles = e.split(Cve)); +}, "addStyle2Node"), Aor = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = Ll.get(r); if (n === void 0) { @@ -114978,34 +115000,34 @@ var Oor = vR, Ll = /* @__PURE__ */ new Map(), e$ = [], yR = /* @__PURE__ */ new } n.classes || (n.classes = []), n.classes.push(e); }); -}, "setCssClass"), Cve = /* @__PURE__ */ x((t, e) => { +}, "setCssClass"), Eve = /* @__PURE__ */ x((t, e) => { var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { - if (l.label && (l.label = Tor(l.label)), l.type === "classDef") { - Cor(l.id, l.css); + if (l.label && (l.label = Cor(l.label)), l.type === "classDef") { + Eor(l.id, l.css); continue; } if (l.type === "applyClass") { - _or(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); + Aor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); continue; } if (l.type === "applyStyles") { - l != null && l.stylesStr && Eor(l.id, l == null ? void 0 : l.stylesStr); + l != null && l.stylesStr && _or(l.id, l == null ? void 0 : l.stylesStr); continue; } if (l.type === "column-setting") e.columns = (s = l.columns) != null ? s : -1; else if (l.type === "edge") { - const u = ((a = yR.get(l.id)) != null ? a : 0) + 1; - yR.set(l.id, u), l.id = u + "-" + l.id, e$.push(l); + const u = ((a = bR.get(l.id)) != null ? a : 0) + 1; + bR.set(l.id, u), l.id = u + "-" + l.id, e$.push(l); } else { l.label || (l.type === "composite" ? l.label = "" : l.label = l.id); const u = Ll.get(l.id); - if (u === void 0 ? Ll.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && Cve(l.children, l), l.type === "space") { + if (u === void 0 ? Ll.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && Eve(l.children, l), l.type === "space") { const h = (o = l.width) != null ? o : 1; for (let f = 0; f < h; f++) { - const d = Di(l); + const d = Ni(l); d.id = d.id + "-" + f, Ll.set(d.id, d), n.push(d); } } else @@ -115013,10 +115035,10 @@ var Oor = vR, Ll = /* @__PURE__ */ new Map(), e$ = [], yR = /* @__PURE__ */ new } } e.children = n; -}, "populateBlockDatabase"), t$ = [], gy = { id: "root", type: "composite", children: [], columns: -1 }, Aor = /* @__PURE__ */ x(() => { - X.debug("Clear called"), Xi(), gy = { id: "root", type: "composite", children: [], columns: -1 }, Ll = /* @__PURE__ */ new Map([["root", gy]]), t$ = [], bS = /* @__PURE__ */ new Map(), e$ = [], yR = /* @__PURE__ */ new Map(); +}, "populateBlockDatabase"), t$ = [], gy = { id: "root", type: "composite", children: [], columns: -1 }, Lor = /* @__PURE__ */ x(() => { + X.debug("Clear called"), Xi(), gy = { id: "root", type: "composite", children: [], columns: -1 }, Ll = /* @__PURE__ */ new Map([["root", gy]]), t$ = [], xS = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new Map(); }, "clear"); -function Eve(t) { +function _ve(t) { switch (X.debug("typeStr2Type", t), t) { case "[]": return "square"; @@ -115052,8 +115074,8 @@ function Eve(t) { return "na"; } } -x(Eve, "typeStr2Type"); -function _ve(t) { +x(_ve, "typeStr2Type"); +function Ave(t) { switch (X.debug("typeStr2Type", t), t) { case "==": return "thick"; @@ -115061,8 +115083,8 @@ function _ve(t) { return "normal"; } } -x(_ve, "edgeTypeStr2Type"); -function Ave(t) { +x(Ave, "edgeTypeStr2Type"); +function Lve(t) { switch (t.trim()) { case "--x": return "arrow_cross"; @@ -115072,36 +115094,36 @@ function Ave(t) { return "arrow_point"; } } -x(Ave, "edgeStrToEdgeData"); -var ZX = 0, Lor = /* @__PURE__ */ x(() => (ZX++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ZX), "generateId"), Ror = /* @__PURE__ */ x((t) => { - gy.children = t, Cve(t, gy), t$ = gy.children; -}, "setHierarchy"), Mor = /* @__PURE__ */ x((t) => { +x(Lve, "edgeStrToEdgeData"); +var jX = 0, Ror = /* @__PURE__ */ x(() => (jX++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + jX), "generateId"), Mor = /* @__PURE__ */ x((t) => { + gy.children = t, Eve(t, gy), t$ = gy.children; +}, "setHierarchy"), Dor = /* @__PURE__ */ x((t) => { const e = Ll.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; -}, "getColumns"), Dor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Nor = /* @__PURE__ */ x(() => t$ || [], "getBlocks"), Ior = /* @__PURE__ */ x(() => e$, "getEdges"), Por = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), $or = /* @__PURE__ */ x((t) => { +}, "getColumns"), Nor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Ior = /* @__PURE__ */ x(() => t$ || [], "getBlocks"), Por = /* @__PURE__ */ x(() => e$, "getEdges"), $or = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), Bor = /* @__PURE__ */ x((t) => { Ll.set(t.id, t); -}, "setBlock"), Bor = /* @__PURE__ */ x(() => console, "getLogger"), For = /* @__PURE__ */ x(function() { - return bS; -}, "getClasses"), zor = { +}, "setBlock"), For = /* @__PURE__ */ x(() => console, "getLogger"), zor = /* @__PURE__ */ x(function() { + return xS; +}, "getClasses"), Vor = { getConfig: /* @__PURE__ */ x(() => pi().block, "getConfig"), - typeStr2Type: Eve, - edgeTypeStr2Type: _ve, - edgeStrToEdgeData: Ave, - getLogger: Bor, - getBlocksFlat: Dor, - getBlocks: Nor, - getEdges: Ior, - setHierarchy: Ror, - getBlock: Por, - setBlock: $or, - getColumns: Mor, - getClasses: For, - clear: Aor, - generateId: Lor -}, Vor = zor, GO = /* @__PURE__ */ x((t, e) => { - const r = oie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); + typeStr2Type: _ve, + edgeTypeStr2Type: Ave, + edgeStrToEdgeData: Lve, + getLogger: For, + getBlocksFlat: Nor, + getBlocks: Ior, + getEdges: Por, + setHierarchy: Mor, + getBlock: $or, + setBlock: Bor, + getColumns: Dor, + getClasses: zor, + clear: Lor, + generateId: Ror +}, Uor = Vor, GO = /* @__PURE__ */ x((t, e) => { + const r = lie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), Uor = /* @__PURE__ */ x((t) => `.label { +}, "fade"), qor = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -115213,8 +115235,8 @@ var ZX = 0, Lor = /* @__PURE__ */ x(() => (ZX++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), qor = Uor, nZ, iZ, sZ, Xn = (sZ = (iZ = (nZ = be()) == null ? void 0 : nZ.block) == null ? void 0 : iZ.padding) != null ? sZ : 8; -function Lve(t, e) { +`, "getStyles"), Qor = qor, iZ, sZ, aZ, Xn = (aZ = (sZ = (iZ = be()) == null ? void 0 : iZ.block) == null ? void 0 : sZ.padding) != null ? aZ : 8; +function Rve(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); if (e < 0 || !Number.isInteger(e)) @@ -115226,8 +115248,8 @@ function Lve(t, e) { const r = e % t, n = Math.floor(e / t); return { px: r, py: n }; } -x(Lve, "calculateBlockPosition"); -var Qor = /* @__PURE__ */ x((t) => { +x(Rve, "calculateBlockPosition"); +var Yor = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; for (const s of t.children) { @@ -115248,7 +115270,7 @@ var Qor = /* @__PURE__ */ x((t) => { } return { width: e, height: r }; }, "getMaxChildSize"); -function xS(t, e, r = 0, n = 0) { +function wS(t, e, r = 0, n = 0) { var a, o, l, u, h, f, d, p, g, m, v, y, b, w, O; X.debug( "setBlockSizes abc95 (start)", @@ -115267,8 +115289,8 @@ function xS(t, e, r = 0, n = 0) { let i = 0, s = 0; if (((l = t.children) == null ? void 0 : l.length) > 0) { for (const R of t.children) - xS(R, e); - const S = Qor(t); + wS(R, e); + const S = Yor(t); i = S.width, s = S.height, X.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", i, s); for (const R of t.children) R.size && (X.debug( @@ -115277,38 +115299,38 @@ function xS(t, e, r = 0, n = 0) { `abc95 updating size of ${t.id} children child:${R.id} maxWidth:${i} maxHeight:${s}` )); for (const R of t.children) - xS(R, e, i, s); + wS(R, e, i, s); const C = (f = t.columns) != null ? f : -1; let T = 0; for (const R of t.children) T += (d = R.widthInColumns) != null ? d : 1; - let L = t.children.length; - C > 0 && C < T && (L = C); - const E = Math.ceil(T / L); - let A = L * (i + Xn) + Xn, _ = E * (s + Xn) + Xn; - if (A < r) { + let A = t.children.length; + C > 0 && C < T && (A = C); + const E = Math.ceil(T / A); + let L = A * (i + Xn) + Xn, _ = E * (s + Xn) + Xn; + if (L < r) { X.debug( - `Detected to small siebling: abc95 ${t.id} sieblingWidth ${r} sieblingHeight ${n} width ${A}` - ), A = r, _ = n; - const R = (r - L * Xn - Xn) / L, $ = (n - E * Xn - Xn) / E; - X.debug("Size indata abc88", t.id, "childWidth", R, "maxWidth", i), X.debug("Size indata abc88", t.id, "childHeight", $, "maxHeight", s), X.debug("Size indata abc88 xSize", L, "padding", Xn); + `Detected to small siebling: abc95 ${t.id} sieblingWidth ${r} sieblingHeight ${n} width ${L}` + ), L = r, _ = n; + const R = (r - A * Xn - Xn) / A, $ = (n - E * Xn - Xn) / E; + X.debug("Size indata abc88", t.id, "childWidth", R, "maxWidth", i), X.debug("Size indata abc88", t.id, "childHeight", $, "maxHeight", s), X.debug("Size indata abc88 xSize", A, "padding", Xn); for (const k of t.children) k.size && (k.size.width = R, k.size.height = $, k.size.x = 0, k.size.y = 0); } if (X.debug( - `abc95 (finale calc) ${t.id} xSize ${L} ySize ${E} columns ${C}${t.children.length} width=${Math.max(A, ((p = t.size) == null ? void 0 : p.width) || 0)}` - ), A < (((g = t == null ? void 0 : t.size) == null ? void 0 : g.width) || 0)) { - A = ((m = t == null ? void 0 : t.size) == null ? void 0 : m.width) || 0; + `abc95 (finale calc) ${t.id} xSize ${A} ySize ${E} columns ${C}${t.children.length} width=${Math.max(L, ((p = t.size) == null ? void 0 : p.width) || 0)}` + ), L < (((g = t == null ? void 0 : t.size) == null ? void 0 : g.width) || 0)) { + L = ((m = t == null ? void 0 : t.size) == null ? void 0 : m.width) || 0; const R = C > 0 ? Math.min(t.children.length, C) : t.children.length; if (R > 0) { - const $ = (A - R * Xn - Xn) / R; - X.debug("abc95 (growing to fit) width", t.id, A, (v = t.size) == null ? void 0 : v.width, $); + const $ = (L - R * Xn - Xn) / R; + X.debug("abc95 (growing to fit) width", t.id, L, (v = t.size) == null ? void 0 : v.width, $); for (const k of t.children) k.size && (k.size.width = $); } } t.size = { - width: A, + width: L, height: _, x: 0, y: 0 @@ -115323,16 +115345,16 @@ function xS(t, e, r = 0, n = 0) { (O = t == null ? void 0 : t.size) == null ? void 0 : O.height ); } -x(xS, "setBlockSizes"); +x(wS, "setBlockSizes"); function r$(t, e) { - var n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, L; + var n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, A; X.debug( `abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${(n = t == null ? void 0 : t.size) == null ? void 0 : n.x} y: ${(i = t == null ? void 0 : t.size) == null ? void 0 : i.y} width: ${(s = t == null ? void 0 : t.size) == null ? void 0 : s.width}` ); const r = (a = t.columns) != null ? a : -1; if (X.debug("layoutBlocks columns abc95", t.id, "=>", r, t), t.children && t.children.length > 0) { - const E = (u = (l = (o = t == null ? void 0 : t.children[0]) == null ? void 0 : o.size) == null ? void 0 : l.width) != null ? u : 0, A = t.children.length * E + (t.children.length - 1) * Xn; - X.debug("widthOfChildren 88", A, "posX"); + const E = (u = (l = (o = t == null ? void 0 : t.children[0]) == null ? void 0 : o.size) == null ? void 0 : l.width) != null ? u : 0, L = t.children.length * E + (t.children.length - 1) * Xn; + X.debug("widthOfChildren 88", L, "posX"); let _ = 0; X.debug("abc91 block?.size?.x", t.id, (h = t == null ? void 0 : t.size) == null ? void 0 : h.x); let R = (f = t == null ? void 0 : t.size) != null && f.x ? ((d = t == null ? void 0 : t.size) == null ? void 0 : d.x) + (-((p = t == null ? void 0 : t.size) == null ? void 0 : p.width) / 2 || 0) : -Xn, $ = 0; @@ -115340,7 +115362,7 @@ function r$(t, e) { const N = t; if (!k.size) continue; - const { width: M, height: I } = k.size, { px: D, py: P } = Lve(r, _); + const { width: M, height: I } = k.size, { px: D, py: P } = Rve(r, _); if (P != $ && ($ = P, R = (g = t == null ? void 0 : t.size) != null && g.x ? ((m = t == null ? void 0 : t.size) == null ? void 0 : m.x) + (-((v = t == null ? void 0 : t.size) == null ? void 0 : v.width) / 2 || 0) : -Xn, X.debug("New row in layout for block", t.id, " and child ", k.id, $)), X.debug( `abc89 layout blocks (child) id: ${k.id} Pos: ${_} (px, py) ${D},${P} (${(y = N == null ? void 0 : N.size) == null ? void 0 : y.x},${(b = N == null ? void 0 : N.size) == null ? void 0 : b.y}) parent: ${N.id} width: ${M}${Xn}` ), N.size) { @@ -115355,7 +115377,7 @@ function r$(t, e) { } } X.debug( - `layout blocks (<==layoutBlocks) ${t.id} x: ${(C = t == null ? void 0 : t.size) == null ? void 0 : C.x} y: ${(T = t == null ? void 0 : t.size) == null ? void 0 : T.y} width: ${(L = t == null ? void 0 : t.size) == null ? void 0 : L.width}` + `layout blocks (<==layoutBlocks) ${t.id} x: ${(C = t == null ? void 0 : t.size) == null ? void 0 : C.x} y: ${(T = t == null ? void 0 : t.size) == null ? void 0 : T.y} width: ${(A = t == null ? void 0 : t.size) == null ? void 0 : A.width}` ); } x(r$, "layoutBlocks"); @@ -115370,15 +115392,15 @@ function n$(t, { minX: e, minY: r, maxX: n, maxY: i } = { minX: 0, minY: 0, maxX return { minX: e, minY: r, maxX: n, maxY: i }; } x(n$, "findBounds"); -function Rve(t) { +function Mve(t) { const e = t.getBlock("root"); if (!e) return; - xS(e, t, 0, 0), r$(e), X.debug("getBlocks", JSON.stringify(e, null, 2)); + wS(e, t, 0, 0), r$(e), X.debug("getBlocks", JSON.stringify(e, null, 2)); const { minX: r, minY: n, maxX: i, maxY: s } = n$(e), a = s - n, o = i - r; return { x: r, y: n, width: o, height: a }; } -x(Rve, "layout"); +x(Mve, "layout"); function i$(t, e, r = !1) { var d, p, g, m, v, y, b; const n = t; @@ -115468,34 +115490,34 @@ function i$(t, e, r = !1) { }; } x(i$, "getNodeFromBlock"); -async function Mve(t, e, r) { +async function Dve(t, e, r) { const n = i$(e, r, !1); if (n.type === "group") return; const i = await aI(t, n), s = i.node().getBBox(), a = r.getBlock(n.id); a.size = { width: s.width, height: s.height, x: 0, y: 0, node: i }, r.setBlock(a), i.remove(); } -x(Mve, "calculateBlockSize"); -async function Dve(t, e, r) { +x(Dve, "calculateBlockSize"); +async function Nve(t, e, r) { const n = i$(e, r, !0); - r.getBlock(n.id).type !== "space" && (await aI(t, n), e.intersect = n == null ? void 0 : n.intersect, IL(n)); + r.getBlock(n.id).type !== "space" && (await aI(t, n), e.intersect = n == null ? void 0 : n.intersect, PL(n)); } -x(Dve, "insertBlockPositioned"); -async function JC(t, e, r, n) { +x(Nve, "insertBlockPositioned"); +async function eE(t, e, r, n) { for (const i of e) - await n(t, i, r), i.children && await JC(t, i.children, r, n); -} -x(JC, "performOperations"); -async function Nve(t, e, r) { - await JC(t, e, r, Mve); + await n(t, i, r), i.children && await eE(t, i.children, r, n); } -x(Nve, "calculateBlockSizes"); +x(eE, "performOperations"); async function Ive(t, e, r) { - await JC(t, e, r, Dve); + await eE(t, e, r, Dve); +} +x(Ive, "calculateBlockSizes"); +async function Pve(t, e, r) { + await eE(t, e, r, Nve); } -x(Ive, "insertBlocks"); -async function Pve(t, e, r, n, i) { - const s = new $i({ +x(Pve, "insertBlocks"); +async function $ve(t, e, r, n, i) { + const s = new Bi({ multigraph: !0, compound: !0 }); @@ -115521,7 +115543,7 @@ async function Pve(t, e, r, n, i) { { x: u.x + (h.x - u.x) / 2, y: u.y + (h.y - u.y) / 2 }, { x: h.x, y: h.y } ]; - Lge( + Rge( t, { v: a.start, w: a.end, name: a.id }, { @@ -115535,7 +115557,7 @@ async function Pve(t, e, r, n, i) { "block", s, i - ), a.label && (await _ge(t, { + ), a.label && (await Age(t, { ...a, label: a.label, labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;", @@ -115543,7 +115565,7 @@ async function Pve(t, e, r, n, i) { arrowTypeStart: a.arrowTypeStart, points: f, classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1" - }), Age( + }), Lge( { ...a, x: f[1].x, y: f[1].y }, { originalPath: f @@ -115552,41 +115574,41 @@ async function Pve(t, e, r, n, i) { } } } -x(Pve, "insertEdges"); -var Yor = /* @__PURE__ */ x(function(t, e) { +x($ve, "insertEdges"); +var Wor = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), Wor = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), Gor = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, block: s } = pi(), a = n.db; let o; i === "sandbox" && (o = et("#i" + e)); const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`); - Ege(u, ["point", "circle", "cross"], n.type, e); + _ge(u, ["point", "circle", "cross"], n.type, e); const f = a.getBlocks(), d = a.getBlocksFlat(), p = a.getEdges(), g = u.insert("g").attr("class", "block"); - await Nve(g, f, a); - const m = Rve(a); - if (await Ive(g, f, a), await Pve(g, p, d, a, e), m) { + await Ive(g, f, a); + const m = Mve(a); + if (await Pve(g, f, a), await $ve(g, p, d, a, e), m) { const v = m, y = Math.max(1, Math.round(0.125 * (v.width / v.height))), b = v.height + y + 10, w = v.width + 10, { useMaxWidth: O } = s; ms(u, b, w, !!O), X.debug("Here Bounds", m, v), u.attr( "viewBox", `${v.x - 5} ${v.y - 5} ${v.width + 10} ${v.height + 10}` ); } -}, "draw"), Gor = { - draw: Wor, - getClasses: Yor -}, Hor = { - parser: Oor, - db: Vor, - renderer: Gor, - styles: qor +}, "draw"), Hor = { + draw: Gor, + getClasses: Wor +}, Xor = { + parser: kor, + db: Uor, + renderer: Hor, + styles: Qor }; -const Xor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Zor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Hor + diagram: Xor }, Symbol.toStringTag, { value: "Module" })); -var $ve = { exports: {} }, pA = { exports: {} }, gA = { exports: {} }, jX; -function Zor() { - return jX || (jX = 1, function(t, e) { +var Bve = { exports: {} }, gA = { exports: {} }, mA = { exports: {} }, KX; +function jor() { + return KX || (KX = 1, function(t, e) { (function(n, i) { t.exports = i(); })(Uc, function() { @@ -115904,10 +115926,10 @@ function Zor() { throw "Source and/or target is null!"; if (!(w.source.owner != null && w.target.owner != null && w.source.owner == this && w.target.owner == this)) throw "Source and/or target owner is invalid!"; - var T = w.source.edges.indexOf(w), L = w.target.edges.indexOf(w); - if (!(T > -1 && L > -1)) + var T = w.source.edges.indexOf(w), A = w.target.edges.indexOf(w); + if (!(T > -1 && A > -1)) throw "Source and/or target doesn't know this edge!"; - w.source.edges.splice(T, 1), w.target != w.source && w.target.edges.splice(L, 1); + w.source.edges.splice(T, 1), w.target != w.source && w.target.edges.splice(A, 1); var C = w.source.owner.getEdges().indexOf(w); if (C == -1) throw "Not in owner's edge list!"; @@ -115915,21 +115937,21 @@ function Zor() { } }, g.prototype.updateLeftTop = function() { for (var v = a.MAX_VALUE, y = a.MAX_VALUE, b, w, O, S = this.getNodes(), C = S.length, T = 0; T < C; T++) { - var L = S[T]; - b = L.getTop(), w = L.getLeft(), v > b && (v = b), y > w && (y = w); + var A = S[T]; + b = A.getTop(), w = A.getLeft(), v > b && (v = b), y > w && (y = w); } return v == a.MAX_VALUE ? null : (S[0].getParent().paddingLeft != null ? O = S[0].getParent().paddingLeft : O = this.margin, this.left = y - O, this.top = v - O, new d(this.left, this.top)); }, g.prototype.updateBounds = function(v) { - for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, L, E, A = this.nodes, _ = A.length, R = 0; R < _; R++) { - var $ = A[R]; - v && $.child != null && $.updateBounds(), S = $.getLeft(), C = $.getRight(), T = $.getTop(), L = $.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < L && (O = L); + for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, A, E, L = this.nodes, _ = L.length, R = 0; R < _; R++) { + var $ = L[R]; + v && $.child != null && $.updateBounds(), S = $.getLeft(), C = $.getRight(), T = $.getTop(), A = $.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < A && (O = A); } var k = new f(y, w, b - y, O - w); - y == a.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), A[0].getParent().paddingLeft != null ? E = A[0].getParent().paddingLeft : E = this.margin, this.left = k.x - E, this.right = k.x + k.width + E, this.top = k.y - E, this.bottom = k.y + k.height + E; + y == a.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), L[0].getParent().paddingLeft != null ? E = L[0].getParent().paddingLeft : E = this.margin, this.left = k.x - E, this.right = k.x + k.width + E, this.top = k.y - E, this.bottom = k.y + k.height + E; }, g.calculateBounds = function(v) { - for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, L, E = v.length, A = 0; A < E; A++) { - var _ = v[A]; - S = _.getLeft(), C = _.getRight(), T = _.getTop(), L = _.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < L && (O = L); + for (var y = a.MAX_VALUE, b = -a.MAX_VALUE, w = a.MAX_VALUE, O = -a.MAX_VALUE, S, C, T, A, E = v.length, L = 0; L < E; L++) { + var _ = v[L]; + S = _.getLeft(), C = _.getRight(), T = _.getTop(), A = _.getBottom(), y > S && (y = S), b < C && (b = C), w > T && (w = T), O < A && (O = A); } var R = new f(y, w, b - y, O - w); return R; @@ -115956,11 +115978,11 @@ function Zor() { y.push(R), b.add(R); }); y.length !== 0; ) { w = y.shift(), O = w.getEdges(); - for (var T = O.length, L = 0; L < T; L++) { - var E = O[L]; + for (var T = O.length, A = 0; A < T; A++) { + var E = O[A]; if (S = E.getOtherEndInGraph(w, this), S != null && !b.has(S)) { - var A = S.withChildren(); - A.forEach(function(R) { + var L = S.withChildren(); + L.forEach(function(R) { y.push(R), b.add(R); }); } @@ -116187,20 +116209,20 @@ function Zor() { var h = o.getCenterX(), f = o.getCenterY(), d = l.getCenterX(), p = l.getCenterY(); if (o.intersects(l)) return u[0] = h, u[1] = f, u[2] = d, u[3] = p, !0; - var g = o.getX(), m = o.getY(), v = o.getRight(), y = o.getX(), b = o.getBottom(), w = o.getRight(), O = o.getWidthHalf(), S = o.getHeightHalf(), C = l.getX(), T = l.getY(), L = l.getRight(), E = l.getX(), A = l.getBottom(), _ = l.getRight(), R = l.getWidthHalf(), $ = l.getHeightHalf(), k = !1, N = !1; + var g = o.getX(), m = o.getY(), v = o.getRight(), y = o.getX(), b = o.getBottom(), w = o.getRight(), O = o.getWidthHalf(), S = o.getHeightHalf(), C = l.getX(), T = l.getY(), A = l.getRight(), E = l.getX(), L = l.getBottom(), _ = l.getRight(), R = l.getWidthHalf(), $ = l.getHeightHalf(), k = !1, N = !1; if (h === d) { if (f > p) - return u[0] = h, u[1] = m, u[2] = d, u[3] = A, !1; + return u[0] = h, u[1] = m, u[2] = d, u[3] = L, !1; if (f < p) return u[0] = h, u[1] = b, u[2] = d, u[3] = T, !1; } else if (f === p) { if (h > d) - return u[0] = g, u[1] = f, u[2] = L, u[3] = p, !1; + return u[0] = g, u[1] = f, u[2] = A, u[3] = p, !1; if (h < d) return u[0] = v, u[1] = f, u[2] = C, u[3] = p, !1; } else { var M = o.height / o.width, I = l.height / l.width, D = (p - f) / (d - h), P = void 0, F = void 0, B = void 0, V = void 0, Q = void 0, W = void 0; - if (-M === D ? h > d ? (u[0] = y, u[1] = b, k = !0) : (u[0] = v, u[1] = m, k = !0) : M === D && (h > d ? (u[0] = g, u[1] = m, k = !0) : (u[0] = w, u[1] = b, k = !0)), -I === D ? d > h ? (u[2] = E, u[3] = A, N = !0) : (u[2] = L, u[3] = T, N = !0) : I === D && (d > h ? (u[2] = C, u[3] = T, N = !0) : (u[2] = _, u[3] = A, N = !0)), k && N) + if (-M === D ? h > d ? (u[0] = y, u[1] = b, k = !0) : (u[0] = v, u[1] = m, k = !0) : M === D && (h > d ? (u[0] = g, u[1] = m, k = !0) : (u[0] = w, u[1] = b, k = !0)), -I === D ? d > h ? (u[2] = E, u[3] = L, N = !0) : (u[2] = A, u[3] = T, N = !0) : I === D && (d > h ? (u[2] = C, u[3] = T, N = !0) : (u[2] = _, u[3] = L, N = !0)), k && N) return !1; if (h > d ? f > p ? (P = this.getCardinalDirection(M, D, 4), F = this.getCardinalDirection(I, D, 2)) : (P = this.getCardinalDirection(-M, D, 3), F = this.getCardinalDirection(-I, D, 1)) : f > p ? (P = this.getCardinalDirection(-M, D, 1), F = this.getCardinalDirection(-I, D, 3)) : (P = this.getCardinalDirection(M, D, 2), F = this.getCardinalDirection(I, D, 4)), !k) switch (P) { @@ -116226,7 +116248,7 @@ function Zor() { Q = _, W = p + R * D, u[2] = Q, u[3] = W; break; case 3: - W = A, Q = d + $ / D, u[2] = Q, u[3] = W; + W = L, Q = d + $ / D, u[2] = Q, u[3] = W; break; case 4: Q = E, W = p + -R * D, u[2] = Q, u[3] = W; @@ -116239,8 +116261,8 @@ function Zor() { }, a.getIntersection = function(o, l, u, h) { if (h == null) return this.getIntersection2(o, l, u); - var f = o.x, d = o.y, p = l.x, g = l.y, m = u.x, v = u.y, y = h.x, b = h.y, w = void 0, O = void 0, S = void 0, C = void 0, T = void 0, L = void 0, E = void 0, A = void 0, _ = void 0; - return S = g - d, T = f - p, E = p * d - f * g, C = b - v, L = m - y, A = y * v - m * b, _ = S * L - C * T, _ === 0 ? null : (w = (T * A - L * E) / _, O = (C * E - S * A) / _, new s(w, O)); + var f = o.x, d = o.y, p = l.x, g = l.y, m = u.x, v = u.y, y = h.x, b = h.y, w = void 0, O = void 0, S = void 0, C = void 0, T = void 0, A = void 0, E = void 0, L = void 0, _ = void 0; + return S = g - d, T = f - p, E = p * d - f * g, C = b - v, A = m - y, L = y * v - m * b, _ = S * A - C * T, _ === 0 ? null : (w = (T * L - A * E) / _, O = (C * E - S * L) / _, new s(w, O)); }, a.angleOfVector = function(o, l, u, h) { var f = void 0; return o !== u ? (f = Math.atan((h - l) / (u - o)), u < o ? f += Math.PI : h < l && (f += this.TWO_PI)) : h < l ? f = this.ONE_AND_HALF_PI : f = this.HALF_PI, f; @@ -116572,13 +116594,13 @@ function Zor() { var O = /* @__PURE__ */ new Set(), S = [], C = /* @__PURE__ */ new Map(), T = []; for (T = T.concat(y); T.length > 0 && v; ) { for (S.push(T[0]); S.length > 0 && v; ) { - var L = S[0]; - S.splice(0, 1), O.add(L); - for (var E = L.getEdges(), w = 0; w < E.length; w++) { - var A = E[w].getOtherEnd(L); - if (C.get(L) != A) - if (!O.has(A)) - S.push(A), C.set(A, L); + var A = S[0]; + S.splice(0, 1), O.add(A); + for (var E = A.getEdges(), w = 0; w < E.length; w++) { + var L = E[w].getOtherEnd(A); + if (C.get(A) != L) + if (!O.has(L)) + S.push(L), C.set(L, A); else { v = !1; break; @@ -116644,22 +116666,22 @@ function Zor() { var C = v[S], T = C.getNeighborsList().size; b.set(C, C.getNeighborsList().size), T == 1 && y.push(C); } - var L = []; - for (L = L.concat(y); !w; ) { + var A = []; + for (A = A.concat(y); !w; ) { var E = []; - E = E.concat(L), L = []; + E = E.concat(A), A = []; for (var S = 0; S < v.length; S++) { - var C = v[S], A = v.indexOf(C); - A >= 0 && v.splice(A, 1); + var C = v[S], L = v.indexOf(C); + L >= 0 && v.splice(L, 1); var _ = C.getNeighborsList(); _.forEach(function(k) { if (y.indexOf(k) < 0) { var N = b.get(k), M = N - 1; - M == 1 && L.push(k), b.set(k, M); + M == 1 && A.push(k), b.set(k, M); } }); } - y = y.concat(L), (v.length == 1 || v.length == 2) && (w = !0, O = v[0]); + y = y.concat(A), (v.length == 1 || v.length == 2) && (w = !0, O = v[0]); } return O; }, g.prototype.setGraphManager = function(m) { @@ -116777,13 +116799,13 @@ function Zor() { return; y = p.getLength(), y != 0 && (b = p.edgeElasticity * (y - g), w = b * (p.lengthX / y), O = b * (p.lengthY / y), m.springForceX += w, m.springForceY += O, v.springForceX -= w, v.springForceY -= O); }, f.prototype.calcRepulsionForce = function(p, g) { - var m = p.getRect(), v = g.getRect(), y = new Array(2), b = new Array(4), w, O, S, C, T, L, E; + var m = p.getRect(), v = g.getRect(), y = new Array(2), b = new Array(4), w, O, S, C, T, A, E; if (m.intersects(v)) { - u.calcSeparationAmount(m, v, y, o.DEFAULT_EDGE_LENGTH / 2), L = 2 * y[0], E = 2 * y[1]; - var A = p.noOfChildren * g.noOfChildren / (p.noOfChildren + g.noOfChildren); - p.repulsionForceX -= A * L, p.repulsionForceY -= A * E, g.repulsionForceX += A * L, g.repulsionForceY += A * E; + u.calcSeparationAmount(m, v, y, o.DEFAULT_EDGE_LENGTH / 2), A = 2 * y[0], E = 2 * y[1]; + var L = p.noOfChildren * g.noOfChildren / (p.noOfChildren + g.noOfChildren); + p.repulsionForceX -= L * A, p.repulsionForceY -= L * E, g.repulsionForceX += L * A, g.repulsionForceY += L * E; } else - this.uniformLeafNodeSizes && p.getChild() == null && g.getChild() == null ? (w = v.getCenterX() - m.getCenterX(), O = v.getCenterY() - m.getCenterY()) : (u.getIntersection(m, v, b), w = b[2] - b[0], O = b[3] - b[1]), Math.abs(w) < o.MIN_REPULSION_DIST && (w = h.sign(w) * o.MIN_REPULSION_DIST), Math.abs(O) < o.MIN_REPULSION_DIST && (O = h.sign(O) * o.MIN_REPULSION_DIST), S = w * w + O * O, C = Math.sqrt(S), T = (p.nodeRepulsion / 2 + g.nodeRepulsion / 2) * p.noOfChildren * g.noOfChildren / S, L = T * w / C, E = T * O / C, p.repulsionForceX -= L, p.repulsionForceY -= E, g.repulsionForceX += L, g.repulsionForceY += E; + this.uniformLeafNodeSizes && p.getChild() == null && g.getChild() == null ? (w = v.getCenterX() - m.getCenterX(), O = v.getCenterY() - m.getCenterY()) : (u.getIntersection(m, v, b), w = b[2] - b[0], O = b[3] - b[1]), Math.abs(w) < o.MIN_REPULSION_DIST && (w = h.sign(w) * o.MIN_REPULSION_DIST), Math.abs(O) < o.MIN_REPULSION_DIST && (O = h.sign(O) * o.MIN_REPULSION_DIST), S = w * w + O * O, C = Math.sqrt(S), T = (p.nodeRepulsion / 2 + g.nodeRepulsion / 2) * p.noOfChildren * g.noOfChildren / S, A = T * w / C, E = T * O / C, p.repulsionForceX -= A, p.repulsionForceY -= E, g.repulsionForceX += A, g.repulsionForceY += E; }, f.prototype.calcGravitationalForce = function(p) { var g, m, v, y, b, w, O, S; g = p.getOwner(), m = (g.getRight() + g.getLeft()) / 2, v = (g.getTop() + g.getBottom()) / 2, y = p.getCenterX() - m, b = p.getCenterY() - v, w = Math.abs(y) + p.getWidth() / 2, O = Math.abs(b) + p.getHeight() / 2, p.getOwner() == this.graphManager.getRoot() ? (S = g.getEstimatedSize() * this.gravityRangeFactor, (w > S || O > S) && (p.gravitationForceX = -this.gravityConstant * y, p.gravitationForceY = -this.gravityConstant * b)) : (S = g.getEstimatedSize() * this.compoundGravityRangeFactor, (w > S || O > S) && (p.gravitationForceX = -this.gravityConstant * y * this.compoundGravityConstant, p.gravitationForceY = -this.gravityConstant * b * this.compoundGravityConstant)); @@ -116823,8 +116845,8 @@ function Zor() { if (!(O < 0 || S < 0 || O >= w.length || S >= w[0].length)) { for (var C = 0; C < w[O][S].length; C++) if (b = w[O][S][C], !(p.getOwner() != b.getOwner() || p == b) && !g.has(b) && !y.has(b)) { - var T = Math.abs(p.getCenterX() - b.getCenterX()) - (p.getWidth() / 2 + b.getWidth() / 2), L = Math.abs(p.getCenterY() - b.getCenterY()) - (p.getHeight() / 2 + b.getHeight() / 2); - T <= this.repulsionRange && L <= this.repulsionRange && y.add(b); + var T = Math.abs(p.getCenterX() - b.getCenterX()) - (p.getWidth() / 2 + b.getWidth() / 2), A = Math.abs(p.getCenterY() - b.getCenterY()) - (p.getHeight() / 2 + b.getHeight() / 2); + T <= this.repulsionRange && A <= this.repulsionRange && y.add(b); } } p.surrounding = [].concat(s(y)); @@ -117133,12 +117155,12 @@ function Zor() { }(p + 1 < this.m, l[p] !== 0)) { for (var T = p + 1; T < this.m; T++) u[T] = 0; - for (var L = p + 1; L < this.n; L++) - for (var E = p + 1; E < this.m; E++) - u[E] += l[L] * a[E][L]; for (var A = p + 1; A < this.n; A++) - for (var _ = -l[A] / l[p + 1], R = p + 1; R < this.m; R++) - a[R][A] += _ * u[R]; + for (var E = p + 1; E < this.m; E++) + u[E] += l[A] * a[E][A]; + for (var L = p + 1; L < this.n; L++) + for (var _ = -l[L] / l[p + 1], R = p + 1; R < this.m; R++) + a[R][L] += _ * u[R]; } for (var $ = p + 1; $ < this.n; $++) this.V[$][p] = l[$]; @@ -117412,13 +117434,13 @@ function Zor() { } ]); }); - }(gA)), gA.exports; + }(mA)), mA.exports; } -var KX; -function jor() { - return KX || (KX = 1, function(t, e) { +var JX; +function Kor() { + return JX || (JX = 1, function(t, e) { (function(n, i) { - t.exports = i(Zor()); + t.exports = i(jor()); })(Uc, function(r) { return (() => { var n = { @@ -117465,7 +117487,7 @@ function jor() { o.exports = f; }, 765: (o, l, u) => { - var h = u(551).FDLayout, f = u(578), d = u(880), p = u(991), g = u(767), m = u(806), v = u(902), y = u(551).FDLayoutConstants, b = u(551).LayoutConstants, w = u(551).Point, O = u(551).PointD, S = u(551).DimensionD, C = u(551).Layout, T = u(551).Integer, L = u(551).IGeometry, E = u(551).LGraph, A = u(551).Transform, _ = u(551).LinkedList; + var h = u(551).FDLayout, f = u(578), d = u(880), p = u(991), g = u(767), m = u(806), v = u(902), y = u(551).FDLayoutConstants, b = u(551).LayoutConstants, w = u(551).Point, O = u(551).PointD, S = u(551).DimensionD, C = u(551).Layout, T = u(551).Integer, A = u(551).IGeometry, E = u(551).LGraph, L = u(551).Transform, _ = u(551).LinkedList; function R() { h.call(this), this.toBeTiled = {}, this.constraints = {}; } @@ -117807,7 +117829,7 @@ function jor() { }, R.radialLayout = function(k, N, M) { var I = Math.max(this.maxDiagonalInTree(k), m.DEFAULT_RADIAL_SEPARATION); R.branchRadialLayout(N, null, 0, 359, 0, I); - var D = E.calculateBounds(k), P = new A(); + var D = E.calculateBounds(k), P = new L(); P.setDeviceOrgX(D.getMinX()), P.setDeviceOrgY(D.getMinY()), P.setWorldOrgX(M.x), P.setWorldOrgY(M.y); for (var F = 0; F < k.length; F++) { var B = k[F]; @@ -117818,7 +117840,7 @@ function jor() { }, R.branchRadialLayout = function(k, N, M, I, D, P) { var F = (I - M + 1) / 2; F < 0 && (F += 180); - var B = (F + M) % 360, V = B * L.TWO_PI / 360, Q = D * Math.cos(V), W = D * Math.sin(V); + var B = (F + M) % 360, V = B * A.TWO_PI / 360, Q = D * Math.cos(V), W = D * Math.sin(V); k.setCenter(Q, W); var ee = []; ee = ee.concat(k.getEdges()); @@ -118172,14 +118194,14 @@ function jor() { m.handleConstraints = function(v) { var y = {}; y.fixedNodeConstraint = v.constraints.fixedNodeConstraint, y.alignmentConstraint = v.constraints.alignmentConstraint, y.relativePlacementConstraint = v.constraints.relativePlacementConstraint; - for (var b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), O = [], S = [], C = v.getAllNodes(), T = 0, L = 0; L < C.length; L++) { - var E = C[L]; + for (var b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), O = [], S = [], C = v.getAllNodes(), T = 0, A = 0; A < C.length; A++) { + var E = C[A]; E.getChild() == null && (w.set(E.id, T++), O.push(E.getCenterX()), S.push(E.getCenterY()), b.set(E.id, E)); } y.relativePlacementConstraint && y.relativePlacementConstraint.forEach(function(ge) { !ge.gap && ge.gap != 0 && (ge.left ? ge.gap = f.DEFAULT_EDGE_LENGTH + b.get(ge.left).getWidth() / 2 + b.get(ge.right).getWidth() / 2 : ge.gap = f.DEFAULT_EDGE_LENGTH + b.get(ge.top).getHeight() / 2 + b.get(ge.bottom).getHeight() / 2); }); - var A = function(xe, ke) { + var L = function(xe, ke) { return { x: xe.x - ke.x, y: xe.y - ke.y }; }, _ = function(xe) { var ke = 0, Ce = 0; @@ -118454,7 +118476,7 @@ function jor() { if (y.fixedNodeConstraint && y.fixedNodeConstraint.length > 0) { var De = { x: 0, y: 0 }; y.fixedNodeConstraint.forEach(function(ge, xe) { - var ke = { x: O[w.get(ge.nodeId)], y: S[w.get(ge.nodeId)] }, Ce = ge.position, Oe = A(Ce, ke); + var ke = { x: O[w.get(ge.nodeId)], y: S[w.get(ge.nodeId)] }, Ce = ge.position, Oe = L(Ce, ke); De.x += Oe.x, De.y += Oe.y; }), De.x /= y.fixedNodeConstraint.length, De.y /= y.fixedNodeConstraint.length, O.forEach(function(ge, xe) { O[xe] += De.x; @@ -118610,11 +118632,11 @@ function jor() { return a; })(); }); - }(pA)), pA.exports; + }(gA)), gA.exports; } (function(t, e) { (function(n, i) { - t.exports = i(jor()); + t.exports = i(Kor()); })(Uc, function(r) { return (() => { var n = { @@ -118670,9 +118692,9 @@ function jor() { }); return v; }, d.connectComponents = function(p, g, m, v) { - var y = new f(), b = /* @__PURE__ */ new Set(), w = [], O = void 0, S = void 0, C = void 0, T = !1, L = 1, E = [], A = [], _ = function() { + var y = new f(), b = /* @__PURE__ */ new Set(), w = [], O = void 0, S = void 0, C = void 0, T = !1, A = 1, E = [], L = [], _ = function() { var $ = p.collection(); - A.push($); + L.push($); var k = m[0], N = p.collection(); N.merge(k).merge(k.descendants().intersection(g)), w.push(k), N.forEach(function(D) { y.push(D), b.add(D), $.merge(D); @@ -118698,28 +118720,28 @@ function jor() { g.intersection(D.connectedEdges()).forEach(function(P) { $.has(P.source()) && $.has(P.target()) && $.merge(P); }); - }), w.length == m.length && (T = !0), !T || T && L > 1) { + }), w.length == m.length && (T = !0), !T || T && A > 1) { S = w[0], C = S.connectedEdges().length, w.forEach(function(D) { D.connectedEdges().length < C && (C = D.connectedEdges().length, S = D); }), E.push(S.id()); var I = p.collection(); I.merge(w[0]), w.forEach(function(D) { I.merge(D); - }), w = [], m = m.difference(I), L++; + }), w = [], m = m.difference(I), A++; } }; do _(); while (!T); - return v && E.length > 0 && v.set("dummy" + (v.size + 1), E), A; + return v && E.length > 0 && v.set("dummy" + (v.size + 1), E), L; }, d.relocateComponent = function(p, g, m) { if (!m.fixedNodeConstraint) { var v = Number.POSITIVE_INFINITY, y = Number.NEGATIVE_INFINITY, b = Number.POSITIVE_INFINITY, w = Number.NEGATIVE_INFINITY; if (m.quality == "draft") { var O = !0, S = !1, C = void 0; try { - for (var T = g.nodeIndexes[Symbol.iterator](), L; !(O = (L = T.next()).done); O = !0) { - var E = L.value, A = h(E, 2), _ = A[0], R = A[1], $ = m.cy.getElementById(_); + for (var T = g.nodeIndexes[Symbol.iterator](), A; !(O = (A = T.next()).done); O = !0) { + var E = A.value, L = h(E, 2), _ = L[0], R = L[1], $ = m.cy.getElementById(_); if ($) { var k = $.boundingBox(), N = g.xCoords[R] - k.w / 2, M = g.xCoords[R] + k.w / 2, I = g.yCoords[R] - k.h / 2, D = g.yCoords[R] + k.h / 2; N < v && (v = N), M > y && (y = M), I < b && (b = I), D > w && (w = D); @@ -118754,9 +118776,9 @@ function jor() { } } }, d.calcBoundingBox = function(p, g, m, v) { - for (var y = Number.MAX_SAFE_INTEGER, b = Number.MIN_SAFE_INTEGER, w = Number.MAX_SAFE_INTEGER, O = Number.MIN_SAFE_INTEGER, S = void 0, C = void 0, T = void 0, L = void 0, E = p.descendants().not(":parent"), A = E.length, _ = 0; _ < A; _++) { + for (var y = Number.MAX_SAFE_INTEGER, b = Number.MIN_SAFE_INTEGER, w = Number.MAX_SAFE_INTEGER, O = Number.MIN_SAFE_INTEGER, S = void 0, C = void 0, T = void 0, A = void 0, E = p.descendants().not(":parent"), L = E.length, _ = 0; _ < L; _++) { var R = E[_]; - S = g[v.get(R.id())] - R.width() / 2, C = g[v.get(R.id())] + R.width() / 2, T = m[v.get(R.id())] - R.height() / 2, L = m[v.get(R.id())] + R.height() / 2, y > S && (y = S), b < C && (b = C), w > T && (w = T), O < L && (O = L); + S = g[v.get(R.id())] - R.width() / 2, C = g[v.get(R.id())] + R.width() / 2, T = m[v.get(R.id())] - R.height() / 2, A = m[v.get(R.id())] + R.height() / 2, y > S && (y = S), b < C && (b = C), w > T && (w = T), O < A && (O = A); } var $ = {}; return $.topLeftX = y, $.topLeftY = w, $.width = b - y, $.height = O - w, $; @@ -118772,8 +118794,8 @@ function jor() { }, 816: (o, l, u) => { var h = u(548), f = u(140).CoSELayout, d = u(140).CoSENode, p = u(140).layoutBase.PointD, g = u(140).layoutBase.DimensionD, m = u(140).layoutBase.LayoutConstants, v = u(140).layoutBase.FDLayoutConstants, y = u(140).CoSEConstants, b = function(O, S) { - var C = O.cy, T = O.eles, L = T.nodes(), E = T.edges(), A = void 0, _ = void 0, R = void 0, $ = {}; - O.randomize && (A = S.nodeIndexes, _ = S.xCoords, R = S.yCoords); + var C = O.cy, T = O.eles, A = T.nodes(), E = T.edges(), L = void 0, _ = void 0, R = void 0, $ = {}; + O.randomize && (L = S.nodeIndexes, _ = S.xCoords, R = S.yCoords); var k = function(Q) { return typeof Q == "function"; }, N = function(Q, W) { @@ -118788,9 +118810,9 @@ function jor() { if (U.outerWidth() != null && U.outerHeight() != null) if (Y.randomize) if (!U.isParent()) - G = Q.add(new d(ee.graphManager, new p(_[A.get(U.id())] - j.w / 2, R[A.get(U.id())] - j.h / 2), new g(parseFloat(j.w), parseFloat(j.h)))); + G = Q.add(new d(ee.graphManager, new p(_[L.get(U.id())] - j.w / 2, R[L.get(U.id())] - j.h / 2), new g(parseFloat(j.w), parseFloat(j.h)))); else { - var ae = h.calcBoundingBox(U, _, R, A); + var ae = h.calcBoundingBox(U, _, R, L); U.intersection(M).length == 0 ? G = Q.add(new d(ee.graphManager, new p(ae.topLeftX, ae.topLeftY), new g(ae.width, ae.height))) : G = Q.add(new d(ee.graphManager, new p(ae.topLeftX, ae.topLeftY), new g(parseFloat(j.w), parseFloat(j.h)))); } else @@ -118816,7 +118838,7 @@ function jor() { }; O.nestingFactor != null && (y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = v.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = O.nestingFactor), O.gravity != null && (y.DEFAULT_GRAVITY_STRENGTH = v.DEFAULT_GRAVITY_STRENGTH = O.gravity), O.numIter != null && (y.MAX_ITERATIONS = v.MAX_ITERATIONS = O.numIter), O.gravityRange != null && (y.DEFAULT_GRAVITY_RANGE_FACTOR = v.DEFAULT_GRAVITY_RANGE_FACTOR = O.gravityRange), O.gravityCompound != null && (y.DEFAULT_COMPOUND_GRAVITY_STRENGTH = v.DEFAULT_COMPOUND_GRAVITY_STRENGTH = O.gravityCompound), O.gravityRangeCompound != null && (y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = O.gravityRangeCompound), O.initialEnergyOnIncremental != null && (y.DEFAULT_COOLING_FACTOR_INCREMENTAL = v.DEFAULT_COOLING_FACTOR_INCREMENTAL = O.initialEnergyOnIncremental), O.tilingCompareBy != null && (y.TILING_COMPARE_BY = O.tilingCompareBy), O.quality == "proof" ? m.QUALITY = 2 : m.QUALITY = 0, y.NODE_DIMENSIONS_INCLUDE_LABELS = v.NODE_DIMENSIONS_INCLUDE_LABELS = m.NODE_DIMENSIONS_INCLUDE_LABELS = O.nodeDimensionsIncludeLabels, y.DEFAULT_INCREMENTAL = v.DEFAULT_INCREMENTAL = m.DEFAULT_INCREMENTAL = !O.randomize, y.ANIMATE = v.ANIMATE = m.ANIMATE = O.animate, y.TILE = O.tile, y.TILING_PADDING_VERTICAL = typeof O.tilingPaddingVertical == "function" ? O.tilingPaddingVertical.call() : O.tilingPaddingVertical, y.TILING_PADDING_HORIZONTAL = typeof O.tilingPaddingHorizontal == "function" ? O.tilingPaddingHorizontal.call() : O.tilingPaddingHorizontal, y.DEFAULT_INCREMENTAL = v.DEFAULT_INCREMENTAL = m.DEFAULT_INCREMENTAL = !0, y.PURE_INCREMENTAL = !O.randomize, m.DEFAULT_UNIFORM_LEAF_NODE_SIZES = O.uniformNodeDimensions, O.step == "transformed" && (y.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, y.ENFORCE_CONSTRAINTS = !1, y.APPLY_LAYOUT = !1), O.step == "enforced" && (y.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, y.ENFORCE_CONSTRAINTS = !0, y.APPLY_LAYOUT = !1), O.step == "cose" && (y.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, y.ENFORCE_CONSTRAINTS = !1, y.APPLY_LAYOUT = !0), O.step == "all" && (O.randomize ? y.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : y.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, y.ENFORCE_CONSTRAINTS = !0, y.APPLY_LAYOUT = !0), O.fixedNodeConstraint || O.alignmentConstraint || O.relativePlacementConstraint ? y.TREE_REDUCTION_ON_INCREMENTAL = !1 : y.TREE_REDUCTION_ON_INCREMENTAL = !0; var F = new f(), B = F.newGraphManager(); - return I(B.addRoot(), h.getTopMostNodes(L), F, O), D(F, B, E), P(F, O), F.runLayout(), $; + return I(B.addRoot(), h.getTopMostNodes(A), F, O), D(F, B, E), P(F, O), F.runLayout(), $; }; o.exports = { coseLayout: b }; }, @@ -118824,8 +118846,8 @@ function jor() { var h = function() { function O(S, C) { for (var T = 0; T < C.length; T++) { - var L = C[T]; - L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(S, L.key, L); + var A = C[T]; + A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(S, A.key, A); } } return function(S, C, T) { @@ -118886,21 +118908,21 @@ function jor() { return h(O, [{ key: "run", value: function() { - var C = this, T = this.options, L = T.cy, E = T.eles, A = [], _ = [], R = void 0, $ = []; + var C = this, T = this.options, A = T.cy, E = T.eles, L = [], _ = [], R = void 0, $ = []; T.fixedNodeConstraint && (!Array.isArray(T.fixedNodeConstraint) || T.fixedNodeConstraint.length == 0) && (T.fixedNodeConstraint = void 0), T.alignmentConstraint && (T.alignmentConstraint.vertical && (!Array.isArray(T.alignmentConstraint.vertical) || T.alignmentConstraint.vertical.length == 0) && (T.alignmentConstraint.vertical = void 0), T.alignmentConstraint.horizontal && (!Array.isArray(T.alignmentConstraint.horizontal) || T.alignmentConstraint.horizontal.length == 0) && (T.alignmentConstraint.horizontal = void 0)), T.relativePlacementConstraint && (!Array.isArray(T.relativePlacementConstraint) || T.relativePlacementConstraint.length == 0) && (T.relativePlacementConstraint = void 0); var k = T.fixedNodeConstraint || T.alignmentConstraint || T.relativePlacementConstraint; k && (T.tile = !1, T.packComponents = !1); var N = void 0, M = !1; - if (L.layoutUtilities && T.packComponents && (N = L.layoutUtilities("get"), N || (N = L.layoutUtilities()), M = !0), E.nodes().length > 0) + if (A.layoutUtilities && T.packComponents && (N = A.layoutUtilities("get"), N || (N = A.layoutUtilities()), M = !0), E.nodes().length > 0) if (M) { var P = p.getTopMostNodes(T.eles.nodes()); - if (R = p.connectComponents(L, T.eles, P), R.forEach(function(ce) { + if (R = p.connectComponents(A, T.eles, P), R.forEach(function(ce) { var Ee = ce.boundingBox(); $.push({ x: Ee.x1 + Ee.w / 2, y: Ee.y1 + Ee.h / 2 }); }), T.randomize && R.forEach(function(ce) { - T.eles = ce, A.push(m(T)); + T.eles = ce, L.push(m(T)); }), T.quality == "default" || T.quality == "proof") { - var F = L.collection(); + var F = A.collection(); if (T.tile) { var B = /* @__PURE__ */ new Map(), V = [], Q = [], W = 0, ee = { nodeIndexes: B, xCoords: V, yCoords: Q }, Y = []; if (R.forEach(function(ce, Ee) { @@ -118909,17 +118931,17 @@ function jor() { }), Y.push(Ee)); }), F.length > 1) { var ne = F.boundingBox(); - $.push({ x: ne.x1 + ne.w / 2, y: ne.y1 + ne.h / 2 }), R.push(F), A.push(ee); + $.push({ x: ne.x1 + ne.w / 2, y: ne.y1 + ne.h / 2 }), R.push(F), L.push(ee); for (var ie = Y.length - 1; ie >= 0; ie--) - R.splice(Y[ie], 1), A.splice(Y[ie], 1), $.splice(Y[ie], 1); + R.splice(Y[ie], 1), L.splice(Y[ie], 1), $.splice(Y[ie], 1); } } R.forEach(function(ce, Ee) { - T.eles = ce, _.push(y(T, A[Ee])), p.relocateComponent($[Ee], _[Ee], T); + T.eles = ce, _.push(y(T, L[Ee])), p.relocateComponent($[Ee], _[Ee], T); }); } else R.forEach(function(ce, Ee) { - p.relocateComponent($[Ee], A[Ee], T); + p.relocateComponent($[Ee], L[Ee], T); }); var U = /* @__PURE__ */ new Set(); if (R.length > 1) { @@ -118928,16 +118950,16 @@ function jor() { }); R.forEach(function(ce, Ee) { var Ae = void 0; - if (T.quality == "draft" && (Ae = A[Ee].nodeIndexes), ce.nodes().not(G).length > 0) { + if (T.quality == "draft" && (Ae = L[Ee].nodeIndexes), ce.nodes().not(G).length > 0) { var Ue = {}; Ue.edges = [], Ue.nodes = []; var Ge = void 0; ce.nodes().not(G).forEach(function(Ye) { if (T.quality == "draft") if (!Ye.isParent()) - Ge = Ae.get(Ye.id()), Ue.nodes.push({ x: A[Ee].xCoords[Ge] - Ye.boundingbox().w / 2, y: A[Ee].yCoords[Ge] - Ye.boundingbox().h / 2, width: Ye.boundingbox().w, height: Ye.boundingbox().h }); + Ge = Ae.get(Ye.id()), Ue.nodes.push({ x: L[Ee].xCoords[Ge] - Ye.boundingbox().w / 2, y: L[Ee].yCoords[Ge] - Ye.boundingbox().h / 2, width: Ye.boundingbox().w, height: Ye.boundingbox().h }); else { - var De = p.calcBoundingBox(Ye, A[Ee].xCoords, A[Ee].yCoords, Ae); + var De = p.calcBoundingBox(Ye, L[Ee].xCoords, L[Ee].yCoords, Ae); Ue.nodes.push({ x: De.topLeftX, y: De.topLeftY, width: De.width, height: De.height }); } else @@ -118948,15 +118970,15 @@ function jor() { if (T.quality == "draft") { var H = Ae.get(De.id()), oe = Ae.get(he.id()), ve = [], re = []; if (De.isParent()) { - var ue = p.calcBoundingBox(De, A[Ee].xCoords, A[Ee].yCoords, Ae); + var ue = p.calcBoundingBox(De, L[Ee].xCoords, L[Ee].yCoords, Ae); ve.push(ue.topLeftX + ue.width / 2), ve.push(ue.topLeftY + ue.height / 2); } else - ve.push(A[Ee].xCoords[H]), ve.push(A[Ee].yCoords[H]); + ve.push(L[Ee].xCoords[H]), ve.push(L[Ee].yCoords[H]); if (he.isParent()) { - var fe = p.calcBoundingBox(he, A[Ee].xCoords, A[Ee].yCoords, Ae); + var fe = p.calcBoundingBox(he, L[Ee].xCoords, L[Ee].yCoords, Ae); re.push(fe.topLeftX + fe.width / 2), re.push(fe.topLeftY + fe.height / 2); } else - re.push(A[Ee].xCoords[oe]), re.push(A[Ee].yCoords[oe]); + re.push(L[Ee].xCoords[oe]), re.push(L[Ee].yCoords[oe]); Ue.edges.push({ startX: ve[0], startY: ve[1], endX: re[0], endY: re[1] }); } else _[Ee][De.id()] && _[Ee][he.id()] && Ue.edges.push({ startX: _[Ee][De.id()].getCenterX(), startY: _[Ee][De.id()].getCenterY(), endX: _[Ee][he.id()].getCenterX(), endY: _[Ee][he.id()].getCenterY() }); @@ -118965,7 +118987,7 @@ function jor() { }); var j = N.packComponents(Z, T.randomize).shifts; if (T.quality == "draft") - A.forEach(function(ce, Ee) { + L.forEach(function(ce, Ee) { var Ae = ce.xCoords.map(function(Ge) { return Ge + j[Ee].dx; }), Ue = ce.yCoords.map(function(Ge) { @@ -118987,9 +119009,9 @@ function jor() { var I = T.eles.boundingBox(); if ($.push({ x: I.x1 + I.w / 2, y: I.y1 + I.h / 2 }), T.randomize) { var D = m(T); - A.push(D); + L.push(D); } - T.quality == "default" || T.quality == "proof" ? (_.push(y(T, A[0])), p.relocateComponent($[0], _[0], T)) : p.relocateComponent($[0], A[0], T); + T.quality == "default" || T.quality == "proof" ? (_.push(y(T, L[0])), p.relocateComponent($[0], _[0], T)) : p.relocateComponent($[0], L[0], T); } var se = function(Ee, Ae) { if (T.quality == "default" || T.quality == "proof") { @@ -119003,7 +119025,7 @@ function jor() { }; } else { var De = void 0; - return A.forEach(function(he) { + return L.forEach(function(he) { var H = he.nodeIndexes.get(Ee.id()); H != null && (De = { x: he.xCoords[H], y: he.yCoords[H] }); }), De == null && (De = { x: Ee.position("x"), y: Ee.position("y") }), { @@ -119013,7 +119035,7 @@ function jor() { } }; if (T.quality == "default" || T.quality == "proof" || T.randomize) { - var K = p.calcParentsWithoutChildren(L, E), _e = E.filter(function(ce) { + var K = p.calcParentsWithoutChildren(A, E), _e = E.filter(function(ce) { return ce.css("display") == "none"; }); T.eles = E.not(_e), E.nodes().not(":parent").not(_e).layoutPositions(C, T, se), K.length > 0 && K.forEach(function(ce) { @@ -119028,16 +119050,16 @@ function jor() { }, 657: (o, l, u) => { var h = u(548), f = u(140).layoutBase.Matrix, d = u(140).layoutBase.SVD, p = function(m) { - var v = m.cy, y = m.eles, b = y.nodes(), w = y.nodes(":parent"), O = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), T = [], L = [], E = [], A = [], _ = [], R = [], $ = [], k = [], N = void 0, M = 1e8, I = 1e-9, D = m.piTol, P = m.samplingType, F = m.nodeSeparation, B = void 0, V = function() { + var v = m.cy, y = m.eles, b = y.nodes(), w = y.nodes(":parent"), O = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), T = [], A = [], E = [], L = [], _ = [], R = [], $ = [], k = [], N = void 0, M = 1e8, I = 1e-9, D = m.piTol, P = m.samplingType, F = m.nodeSeparation, B = void 0, V = function() { for (var xe = 0, ke = 0, Ce = !1; ke < B; ) { xe = Math.floor(Math.random() * N), Ce = !1; for (var Oe = 0; Oe < ke; Oe++) - if (A[Oe] == xe) { + if (L[Oe] == xe) { Ce = !0; break; } if (!Ce) - A[ke] = xe, ke++; + L[ke] = xe, ke++; else continue; } @@ -119064,11 +119086,11 @@ function jor() { for (var Oe = 0; Oe < N; Oe++) _[Oe] = M; for (var Me = 0; Me < B; Me++) - A[Me] = ke, ke = Q(ke, Me, xe); + L[Me] = ke, ke = Q(ke, Me, xe); } else { V(); for (var Ce = 0; Ce < B; Ce++) - Q(A[Ce], Ce, xe); + Q(L[Ce], Ce, xe); } for (var Te = 0; Te < N; Te++) for (var Xe = 0; Xe < B; Xe++) @@ -119077,7 +119099,7 @@ function jor() { $[Ne] = []; for (var Ke = 0; Ke < B; Ke++) for (var je = 0; je < B; je++) - $[Ke][je] = R[A[je]][Ke]; + $[Ke][je] = R[L[je]][Ke]; }, ee = function() { for (var xe = d.svd($), ke = xe.S, Ce = xe.U, Oe = xe.V, Me = ke[0] * ke[0] * ke[0], Te = [], Xe = 0; Xe < B; Xe++) { Te[Xe] = []; @@ -119107,7 +119129,7 @@ function jor() { } for (var We = 0; We < N; We++) Te[We] = Oe[We]; - L = f.multCons(Me, Math.sqrt(Math.abs(xe))), E = f.multCons(Te, Math.sqrt(Math.abs(ke))); + A = f.multCons(Me, Math.sqrt(Math.abs(xe))), E = f.multCons(Te, Math.sqrt(Math.abs(ke))); }; h.connectComponents(v, y, h.getTopMostNodes(b), O), w.forEach(function(ge) { h.connectComponents(v, y, h.getTopMostNodes(ge.descendants().intersection(y)), O); @@ -119174,16 +119196,16 @@ function jor() { R[he] = []; for (var H = 0; H < B; H++) k[H] = []; - return m.quality == "draft" || m.step == "all" ? (W(P), ee(), Y(), De = { nodeIndexes: S, xCoords: L, yCoords: E }) : (S.forEach(function(ge, xe) { - L.push(v.getElementById(xe).position("x")), E.push(v.getElementById(xe).position("y")); - }), De = { nodeIndexes: S, xCoords: L, yCoords: E }), De; + return m.quality == "draft" || m.step == "all" ? (W(P), ee(), Y(), De = { nodeIndexes: S, xCoords: A, yCoords: E }) : (S.forEach(function(ge, xe) { + A.push(v.getElementById(xe).position("x")), E.push(v.getElementById(xe).position("y")); + }), De = { nodeIndexes: S, xCoords: A, yCoords: E }), De; } else { var oe = S.keys(), ve = v.getElementById(oe.next().value), re = ve.position(), ue = ve.outerWidth(); - if (L.push(re.x), E.push(re.y), N == 2) { + if (A.push(re.x), E.push(re.y), N == 2) { var fe = v.getElementById(oe.next().value), de = fe.outerWidth(); - L.push(re.x + ue / 2 + de / 2 + m.idealEdgeLength), E.push(re.y); + A.push(re.x + ue / 2 + de / 2 + m.idealEdgeLength), E.push(re.y); } - return De = { nodeIndexes: S, xCoords: L, yCoords: E }, De; + return De = { nodeIndexes: S, xCoords: A, yCoords: E }, De; } }; o.exports = { spectralLayout: p }; @@ -119211,14 +119233,14 @@ function jor() { return a; })(); }); -})($ve); -const Kor = $ve.exports; -var JX = { +})(Bve); +const Jor = Bve.exports; +var eZ = { L: "left", R: "right", T: "top", B: "bottom" -}, eZ = { +}, tZ = { L: /* @__PURE__ */ x((t) => `${t},${t / 2} 0,${t} 0,0`, "L"), R: /* @__PURE__ */ x((t) => `0,${t / 2} ${t},0 ${t},${t}`, "R"), T: /* @__PURE__ */ x((t) => `0,0 ${t},0 ${t / 2},${t}`, "T"), @@ -119228,9 +119250,9 @@ var JX = { R: /* @__PURE__ */ x((t, e) => t - 2, "R"), T: /* @__PURE__ */ x((t, e) => t - e + 2, "T"), B: /* @__PURE__ */ x((t, e) => t - 2, "B") -}, Jor = /* @__PURE__ */ x(function(t) { +}, elr = /* @__PURE__ */ x(function(t) { return Oa(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; -}, "getOppositeArchitectureDirection"), tZ = /* @__PURE__ */ x(function(t) { +}, "getOppositeArchitectureDirection"), rZ = /* @__PURE__ */ x(function(t) { const e = t; return e === "L" || e === "R" || e === "T" || e === "B"; }, "isArchitectureDirection"), Oa = /* @__PURE__ */ x(function(t) { @@ -119239,37 +119261,37 @@ var JX = { }, "isArchitectureDirectionX"), Pf = /* @__PURE__ */ x(function(t) { const e = t; return e === "T" || e === "B"; -}, "isArchitectureDirectionY"), Bve = /* @__PURE__ */ x(function(t, e) { +}, "isArchitectureDirectionY"), Fve = /* @__PURE__ */ x(function(t, e) { const r = Oa(t) && Pf(e), n = Pf(t) && Oa(e); return r || n; -}, "isArchitectureDirectionXY"), elr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureDirectionXY"), tlr = /* @__PURE__ */ x(function(t) { const e = t[0], r = t[1], n = Oa(e) && Pf(r), i = Pf(e) && Oa(r); return n || i; -}, "isArchitecturePairXY"), tlr = /* @__PURE__ */ x(function(t) { +}, "isArchitecturePairXY"), rlr = /* @__PURE__ */ x(function(t) { return t !== "LL" && t !== "RR" && t !== "TT" && t !== "BB"; -}, "isValidArchitectureDirectionPair"), bR = /* @__PURE__ */ x(function(t, e) { +}, "isValidArchitectureDirectionPair"), xR = /* @__PURE__ */ x(function(t, e) { const r = `${t}${e}`; - return tlr(r) ? r : void 0; -}, "getArchitectureDirectionPair"), rlr = /* @__PURE__ */ x(function([t, e], r) { + return rlr(r) ? r : void 0; +}, "getArchitectureDirectionPair"), nlr = /* @__PURE__ */ x(function([t, e], r) { const n = r[0], i = r[1]; return Oa(n) ? Pf(i) ? [t + (n === "L" ? -1 : 1), e + (i === "T" ? 1 : -1)] : [t + (n === "L" ? -1 : 1), e] : Oa(i) ? [t + (i === "L" ? 1 : -1), e + (n === "T" ? 1 : -1)] : [t, e + (n === "T" ? 1 : -1)]; -}, "shiftPositionByArchitectureDirectionPair"), nlr = /* @__PURE__ */ x(function(t) { +}, "shiftPositionByArchitectureDirectionPair"), ilr = /* @__PURE__ */ x(function(t) { return t === "LT" || t === "TL" ? [1, 1] : t === "BL" || t === "LB" ? [1, -1] : t === "BR" || t === "RB" ? [-1, -1] : [-1, 1]; -}, "getArchitectureDirectionXYFactors"), ilr = /* @__PURE__ */ x(function(t) { +}, "getArchitectureDirectionXYFactors"), slr = /* @__PURE__ */ x(function(t) { return t.type === "service"; -}, "isArchitectureService"), slr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureService"), alr = /* @__PURE__ */ x(function(t) { return t.type === "junction"; -}, "isArchitectureJunction"), Fve = /* @__PURE__ */ x((t) => t.data(), "edgeData"), qp = /* @__PURE__ */ x((t) => t.data(), "nodeData"), zve = jr.architecture, fr = new fI(() => ({ +}, "isArchitectureJunction"), zve = /* @__PURE__ */ x((t) => t.data(), "edgeData"), qp = /* @__PURE__ */ x((t) => t.data(), "nodeData"), Vve = jr.architecture, fr = new fI(() => ({ nodes: {}, groups: {}, edges: [], registeredIds: {}, - config: zve, + config: Vve, dataStructures: void 0, elements: {} -})), alr = /* @__PURE__ */ x(() => { +})), olr = /* @__PURE__ */ x(() => { fr.reset(), Xi(); -}, "clear"), olr = /* @__PURE__ */ x(function({ +}, "clear"), llr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, @@ -119299,14 +119321,14 @@ var JX = { edges: [], in: r }; -}, "addService"), llr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(ilr), "getServices"), clr = /* @__PURE__ */ x(function({ id: t, in: e }) { +}, "addService"), clr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(slr), "getServices"), ulr = /* @__PURE__ */ x(function({ id: t, in: e }) { fr.records.registeredIds[t] = "node", fr.records.nodes[t] = { id: t, type: "junction", edges: [], in: e }; -}, "addJunction"), ulr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(slr), "getJunctions"), hlr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), flr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), dlr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { +}, "addJunction"), hlr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(alr), "getJunctions"), flr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), dlr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), plr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { if (fr.records.registeredIds[t] !== void 0) throw new Error( `The group id [${t}] is already in use by another ${fr.records.registeredIds[t]}` @@ -119327,7 +119349,7 @@ var JX = { title: n, in: r }; -}, "addGroup"), plr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), glr = /* @__PURE__ */ x(function({ +}, "addGroup"), glr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), mlr = /* @__PURE__ */ x(function({ lhsId: t, rhsId: e, lhsDir: r, @@ -119338,11 +119360,11 @@ var JX = { rhsGroup: o, title: l }) { - if (!tZ(r)) + if (!rZ(r)) throw new Error( `Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${r}` ); - if (!tZ(n)) + if (!rZ(n)) throw new Error( `Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${n}` ); @@ -119375,14 +119397,14 @@ var JX = { title: l }; fr.records.edges.push(f), fr.records.nodes[t] && fr.records.nodes[e] && (fr.records.nodes[t].edges.push(fr.records.edges[fr.records.edges.length - 1]), fr.records.nodes[e].edges.push(fr.records.edges[fr.records.edges.length - 1])); -}, "addEdge"), mlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), vlr = /* @__PURE__ */ x(() => { +}, "addEdge"), vlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), ylr = /* @__PURE__ */ x(() => { if (fr.records.dataStructures === void 0) { const t = Object.entries(fr.records.nodes).reduce((a, [o, l]) => (a[o] = l.edges.reduce((u, h) => { if (h.lhsId === o) { - const f = bR(h.lhsDir, h.rhsDir); + const f = xR(h.lhsDir, h.rhsDir); f && (u[f] = h.rhsId); } else { - const f = bR(h.rhsDir, h.lhsDir); + const f = xR(h.rhsDir, h.lhsDir); f && (u[f] = h.lhsId); } return u; @@ -119397,7 +119419,7 @@ var JX = { r[u] = 1, delete n[u]; const h = t[u], [f, d] = o[u]; Object.entries(h).forEach(([p, g]) => { - r[g] || (o[g] = rlr( + r[g] || (o[g] = nlr( [f, d], p ), l.push(g)); @@ -119414,43 +119436,43 @@ var JX = { }; } return fr.records.dataStructures; -}, "getDataStructures"), ylr = /* @__PURE__ */ x((t, e) => { +}, "getDataStructures"), blr = /* @__PURE__ */ x((t, e) => { fr.records.elements[t] = e; -}, "setElementForId"), blr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), wS = { - clear: alr, +}, "setElementForId"), xlr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), OS = { + clear: olr, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addService: olr, - getServices: llr, - addJunction: clr, - getJunctions: ulr, - getNodes: hlr, - getNode: flr, - addGroup: dlr, - getGroups: plr, - addEdge: glr, - getEdges: mlr, - setElementForId: ylr, - getElementById: blr, - getDataStructures: vlr -}; -function Ai(t) { + addService: llr, + getServices: clr, + addJunction: ulr, + getJunctions: hlr, + getNodes: flr, + getNode: dlr, + addGroup: plr, + getGroups: glr, + addEdge: mlr, + getEdges: vlr, + setElementForId: blr, + getElementById: xlr, + getDataStructures: ylr +}; +function Li(t) { const e = be().architecture; - return e != null && e[t] ? e[t] : zve[t]; + return e != null && e[t] ? e[t] : Vve[t]; } -x(Ai, "getConfigField"); -var xlr = /* @__PURE__ */ x((t, e) => { +x(Li, "getConfigField"); +var wlr = /* @__PURE__ */ x((t, e) => { Rx(t, e), t.groups.map(e.addGroup), t.services.map((r) => e.addService({ ...r, type: "service" })), t.junctions.map((r) => e.addJunction({ ...r, type: "junction" })), t.edges.map(e.addEdge); -}, "populateDb"), wlr = { +}, "populateDb"), Olr = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("architecture", t); - X.debug(e), xlr(e, wS); + X.debug(e), wlr(e, OS); }, "parse") -}, Olr = /* @__PURE__ */ x((t) => ` +}, klr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -119481,7 +119503,7 @@ var xlr = /* @__PURE__ */ x((t, e) => { display: -webkit-box; -webkit-box-orient: vertical; } -`, "getStyles"), klr = Olr, xp = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), tb = { +`, "getStyles"), Slr = klr, xp = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), tb = { prefix: "mermaid-architecture", height: 80, width: 80, @@ -119511,16 +119533,16 @@ var xlr = /* @__PURE__ */ x((t, e) => { '' ) }, - unknown: Die, + unknown: Nie, blank: { body: xp("") } } -}, Slr = /* @__PURE__ */ x(async function(t, e) { - const r = Ai("padding"), n = Ai("iconSize"), i = n / 2, s = n / 6, a = s / 2; +}, Tlr = /* @__PURE__ */ x(async function(t, e) { + const r = Li("padding"), n = Li("iconSize"), i = n / 2, s = n / 6, a = s / 2; await Promise.all( e.edges().map(async (o) => { - var L, E; + var A, E; const { source: l, sourceDir: u, @@ -119531,26 +119553,26 @@ var xlr = /* @__PURE__ */ x((t, e) => { targetArrow: g, targetGroup: m, label: v - } = Fve(o); + } = zve(o); let { x: y, y: b } = o[0].sourceEndpoint(); const { x: w, y: O } = o[0].midpoint(); let { x: S, y: C } = o[0].targetEndpoint(); const T = r + 4; - if (f && (Oa(u) ? y += u === "L" ? -T : T : b += u === "T" ? -T : T + 18), m && (Oa(p) ? S += p === "L" ? -T : T : C += p === "T" ? -T : T + 18), !f && ((L = wS.getNode(l)) == null ? void 0 : L.type) === "junction" && (Oa(u) ? y += u === "L" ? i : -i : b += u === "T" ? i : -i), !m && ((E = wS.getNode(d)) == null ? void 0 : E.type) === "junction" && (Oa(p) ? S += p === "L" ? i : -i : C += p === "T" ? i : -i), o[0]._private.rscratch) { - const A = t.insert("g"); - if (A.insert("path").attr("d", `M ${y},${b} L ${w},${O} L${S},${C} `).attr("class", "edge"), h) { + if (f && (Oa(u) ? y += u === "L" ? -T : T : b += u === "T" ? -T : T + 18), m && (Oa(p) ? S += p === "L" ? -T : T : C += p === "T" ? -T : T + 18), !f && ((A = OS.getNode(l)) == null ? void 0 : A.type) === "junction" && (Oa(u) ? y += u === "L" ? i : -i : b += u === "T" ? i : -i), !m && ((E = OS.getNode(d)) == null ? void 0 : E.type) === "junction" && (Oa(p) ? S += p === "L" ? i : -i : C += p === "T" ? i : -i), o[0]._private.rscratch) { + const L = t.insert("g"); + if (L.insert("path").attr("d", `M ${y},${b} L ${w},${O} L${S},${C} `).attr("class", "edge"), h) { const _ = Oa(u) ? HO[u](y, s) : y - a, R = Pf(u) ? HO[u](b, s) : b - a; - A.insert("polygon").attr("points", eZ[u](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); + L.insert("polygon").attr("points", tZ[u](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); } if (g) { const _ = Oa(p) ? HO[p](S, s) : S - a, R = Pf(p) ? HO[p](C, s) : C - a; - A.insert("polygon").attr("points", eZ[p](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); + L.insert("polygon").attr("points", tZ[p](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); } if (v) { - const _ = Bve(u, p) ? "XY" : Oa(u) ? "X" : "Y"; + const _ = Fve(u, p) ? "XY" : Oa(u) ? "X" : "Y"; let R = 0; _ === "X" ? R = Math.abs(y - S) : _ === "Y" ? R = Math.abs(b - C) / 1.5 : R = Math.abs(y - S) / 2; - const $ = A.append("g"); + const $ = L.append("g"); if (await jc( $, v, @@ -119565,9 +119587,9 @@ var xlr = /* @__PURE__ */ x((t, e) => { else if (_ === "Y") $.attr("transform", "translate(" + w + ", " + O + ") rotate(-90)"); else if (_ === "XY") { - const k = bR(u, p); - if (k && elr(k)) { - const N = $.node().getBoundingClientRect(), [M, I] = nlr(k); + const k = xR(u, p); + if (k && tlr(k)) { + const N = $.node().getBoundingClientRect(), [M, I] = ilr(k); $.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * M * I * 45})`); const D = $.node().getBoundingClientRect(); $.attr( @@ -119584,8 +119606,8 @@ var xlr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawEdges"), Tlr = /* @__PURE__ */ x(async function(t, e) { - const n = Ai("padding") * 0.75, i = Ai("fontSize"), a = Ai("iconSize") / 2; +}, "drawEdges"), Clr = /* @__PURE__ */ x(async function(t, e) { + const n = Li("padding") * 0.75, i = Li("fontSize"), a = Li("iconSize") / 2; await Promise.all( e.nodes().map(async (o) => { const l = qp(o); @@ -119597,7 +119619,7 @@ var xlr = /* @__PURE__ */ x((t, e) => { if (l.icon) { const v = p.append("g"); v.html( - `${await x8(l.icon, { height: n, width: n, fallbackPrefix: tb.prefix })}` + `${await w8(l.icon, { height: n, width: n, fallbackPrefix: tb.prefix })}` ), v.attr( "transform", "translate(" + (g + a + 1) + ", " + (m + a + 1) + ")" @@ -119622,10 +119644,10 @@ var xlr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawGroups"), Clr = /* @__PURE__ */ x(async function(t, e, r) { +}, "drawGroups"), Elr = /* @__PURE__ */ x(async function(t, e, r) { var n; for (const i of r) { - const s = e.append("g"), a = Ai("iconSize"); + const s = e.append("g"), a = Li("iconSize"); if (i.title) { const h = s.append("g"); await jc( @@ -119642,11 +119664,11 @@ var xlr = /* @__PURE__ */ x((t, e) => { const o = s.append("g"); if (i.icon) o.html( - `${await x8(i.icon, { height: a, width: a, fallbackPrefix: tb.prefix })}` + `${await w8(i.icon, { height: a, width: a, fallbackPrefix: tb.prefix })}` ); else if (i.iconText) { o.html( - `${await x8("blank", { height: a, width: a, fallbackPrefix: tb.prefix })}` + `${await w8("blank", { height: a, width: a, fallbackPrefix: tb.prefix })}` ); const d = o.append("g").append("foreignObject").attr("width", a).attr("height", a).append("div").attr("class", "node-icon-text").attr("style", `height: ${a}px;`).append("div").html(i.iconText), p = (n = parseInt( window.getComputedStyle(d.node(), null).getPropertyValue("font-size").replace(/\D/g, "") @@ -119662,22 +119684,22 @@ var xlr = /* @__PURE__ */ x((t, e) => { i.width = l, i.height = u, t.setElementForId(i.id, s); } return 0; -}, "drawServices"), Elr = /* @__PURE__ */ x(function(t, e, r) { +}, "drawServices"), _lr = /* @__PURE__ */ x(function(t, e, r) { r.forEach((n) => { - const i = e.append("g"), s = Ai("iconSize"); + const i = e.append("g"), s = Li("iconSize"); i.append("g").append("rect").attr("id", "node-" + n.id).attr("fill-opacity", "0").attr("width", s).attr("height", s), i.attr("class", "architecture-junction"); const { width: o, height: l } = i._groups[0][0].getBBox(); i.width = o, i.height = l, t.setElementForId(n.id, i); }); }, "drawJunctions"); -Iie([ +Pie([ { name: tb.prefix, icons: tb } ]); -Vc.use(Kor); -function Vve(t, e) { +Vc.use(Jor); +function Uve(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -119687,15 +119709,15 @@ function Vve(t, e) { icon: r.icon, label: r.title, parent: r.in, - width: Ai("iconSize"), - height: Ai("iconSize") + width: Li("iconSize"), + height: Li("iconSize") }, classes: "node-service" }); }); } -x(Vve, "addServices"); -function Uve(t, e) { +x(Uve, "addServices"); +function qve(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -119703,15 +119725,15 @@ function Uve(t, e) { type: "junction", id: r.id, parent: r.in, - width: Ai("iconSize"), - height: Ai("iconSize") + width: Li("iconSize"), + height: Li("iconSize") }, classes: "node-junction" }); }); } -x(Uve, "addJunctions"); -function qve(t, e) { +x(qve, "addJunctions"); +function Qve(t, e) { e.nodes().map((r) => { const n = qp(r); if (n.type === "group") @@ -119719,8 +119741,8 @@ function qve(t, e) { n.x = r.position().x, n.y = r.position().y, t.getElementById(n.id).attr("transform", "translate(" + (n.x || 0) + "," + (n.y || 0) + ")"); }); } -x(qve, "positionNodes"); -function Qve(t, e) { +x(Qve, "positionNodes"); +function Yve(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -119735,10 +119757,10 @@ function Qve(t, e) { }); }); } -x(Qve, "addGroups"); -function Yve(t, e) { +x(Yve, "addGroups"); +function Wve(t, e) { t.forEach((r) => { - const { lhsId: n, rhsId: i, lhsInto: s, lhsGroup: a, rhsInto: o, lhsDir: l, rhsDir: u, rhsGroup: h, title: f } = r, d = Bve(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { + const { lhsId: n, rhsId: i, lhsInto: s, lhsGroup: a, rhsInto: o, lhsDir: l, rhsDir: u, rhsGroup: h, title: f } = r, d = Fve(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { id: `${n}-${i}`, label: f, source: n, @@ -119759,8 +119781,8 @@ function Yve(t, e) { }); }); } -x(Yve, "addEdges"); -function Wve(t) { +x(Wve, "addEdges"); +function Gve(t) { const e = t.map((i) => { const s = {}, a = {}; return Object.entries(i).forEach(([o, [l, u]]) => { @@ -119781,8 +119803,8 @@ function Wve(t) { vertical: n }; } -x(Wve, "getAlignments"); -function Gve(t) { +x(Gve, "getAlignments"); +function Hve(t) { const e = [], r = /* @__PURE__ */ x((i) => `${i[0]},${i[1]}`, "posToStr"), n = /* @__PURE__ */ x((i) => i.split(",").map((s) => parseInt(s)), "strToPos"); return t.forEach((i) => { const s = Object.fromEntries( @@ -119803,9 +119825,9 @@ function Gve(t) { Object.entries(l).forEach(([d, p]) => { const g = r([f[0] + p[0], f[1] + p[1]]), m = s[g]; m && !o[g] && (a.push(g), e.push({ - [JX[d]]: m, - [JX[Jor(d)]]: h, - gap: 1.5 * Ai("iconSize") + [eZ[d]]: m, + [eZ[elr(d)]]: h, + gap: 1.5 * Li("iconSize") })); }); } @@ -119813,8 +119835,8 @@ function Gve(t) { } }), e; } -x(Gve, "getRelativeConstraints"); -function Hve(t, e, r, n, { spatialMaps: i }) { +x(Hve, "getRelativeConstraints"); +function Xve(t, e, r, n, { spatialMaps: i }) { return new Promise((s) => { const a = et("body").append("div").attr("id", "cy").attr("style", "display:none"), o = Vc({ container: document.getElementById("cy"), @@ -119850,7 +119872,7 @@ function Hve(t, e, r, n, { spatialMaps: i }) { style: { "text-valign": "bottom", "text-halign": "center", - "font-size": `${Ai("fontSize")}px` + "font-size": `${Li("fontSize")}px` } }, { @@ -119871,13 +119893,13 @@ function Hve(t, e, r, n, { spatialMaps: i }) { { selector: ".node-group", style: { - padding: `${Ai("padding")}px` + padding: `${Li("padding")}px` } } ] }); - a.remove(), Qve(r, o), Vve(t, o), Uve(e, o), Yve(n, o); - const l = Wve(i), u = Gve(i), h = o.layout({ + a.remove(), Yve(r, o), Uve(t, o), qve(e, o), Wve(n, o); + const l = Gve(i), u = Hve(i), h = o.layout({ name: "fcose", quality: "proof", styleEnabled: !1, @@ -119885,7 +119907,7 @@ function Hve(t, e, r, n, { spatialMaps: i }) { nodeDimensionsIncludeLabels: !1, idealEdgeLength(f) { const [d, p] = f.connectedNodes(), { parent: g } = qp(d), { parent: m } = qp(p); - return g === m ? 1.5 * Ai("iconSize") : 0.5 * Ai("iconSize"); + return g === m ? 1.5 * Li("iconSize") : 0.5 * Li("iconSize"); }, edgeElasticity(f) { const [d, p] = f.connectedNodes(), { parent: g } = qp(d), { parent: m } = qp(p); @@ -119902,13 +119924,13 @@ function Hve(t, e, r, n, { spatialMaps: i }) { b = (v - O + (w - m) * (O - C) / (w - S)) / Math.sqrt(1 + Math.pow((O - C) / (w - S), 2)), y = Math.sqrt(Math.pow(v - O, 2) + Math.pow(m - w, 2) - Math.pow(b, 2)); const T = Math.sqrt(Math.pow(S - w, 2) + Math.pow(C - O, 2)); y = y / T; - let L = (S - w) * (v - O) - (C - O) * (m - w); + let A = (S - w) * (v - O) - (C - O) * (m - w); switch (!0) { - case L >= 0: - L = 1; + case A >= 0: + A = 1; break; - case L < 0: - L = -1; + case A < 0: + A = -1; break; } let E = (S - w) * (m - w) + (C - O) * (v - O); @@ -119920,7 +119942,7 @@ function Hve(t, e, r, n, { spatialMaps: i }) { E = -1; break; } - return b = Math.abs(b) * L, y = y * E, { + return b = Math.abs(b) * A, y = y * E, { distances: b, weights: y }; @@ -119930,8 +119952,8 @@ function Hve(t, e, r, n, { spatialMaps: i }) { if ((d = p.data) != null && d.call(p)) { const { x: g, y: m } = p.source().position(), { x: v, y } = p.target().position(); if (g !== v && m !== y) { - const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = Fve(p), [S, C] = Pf(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: L } = f(b, w, S, C); - p.style("segment-distances", L), p.style("segment-weights", T); + const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = zve(p), [S, C] = Pf(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: A } = f(b, w, S, C); + p.style("segment-distances", A), p.style("segment-weights", T); } } o.endBatch(), h.run(); @@ -119940,48 +119962,48 @@ function Hve(t, e, r, n, { spatialMaps: i }) { }); }); } -x(Hve, "layoutArchitecture"); -var _lr = /* @__PURE__ */ x(async (t, e, r, n) => { +x(Xve, "layoutArchitecture"); +var Alr = /* @__PURE__ */ x(async (t, e, r, n) => { const i = n.db, s = i.getServices(), a = i.getJunctions(), o = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), h = H0(e), f = h.append("g"); f.attr("class", "architecture-edges"); const d = h.append("g"); d.attr("class", "architecture-services"); const p = h.append("g"); - p.attr("class", "architecture-groups"), await Clr(i, d, s), Elr(i, d, a); - const g = await Hve(s, a, o, l, u); - await Slr(f, g), await Tlr(p, g), qve(i, g), H1(void 0, h, Ai("padding"), Ai("useMaxWidth")); -}, "draw"), Alr = { draw: _lr }, Llr = { - parser: wlr, - db: wS, - renderer: Alr, - styles: klr -}; -const Rlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + p.attr("class", "architecture-groups"), await Elr(i, d, s), _lr(i, d, a); + const g = await Xve(s, a, o, l, u); + await Tlr(f, g), await Clr(p, g), Qve(i, g), H1(void 0, h, Li("padding"), Li("useMaxWidth")); +}, "draw"), Llr = { draw: Alr }, Rlr = { + parser: Olr, + db: OS, + renderer: Llr, + styles: Slr +}; +const Mlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Llr -}, Symbol.toStringTag, { value: "Module" })), Mlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - InfoModule: G0e, - createInfoServices: H0e + diagram: Rlr }, Symbol.toStringTag, { value: "Module" })), Dlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PacketModule: X0e, - createPacketServices: Z0e + InfoModule: H0e, + createInfoServices: X0e }, Symbol.toStringTag, { value: "Module" })), Nlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PieModule: j0e, - createPieServices: K0e + PacketModule: Z0e, + createPacketServices: j0e }, Symbol.toStringTag, { value: "Module" })), Ilr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ArchitectureModule: J0e, - createArchitectureServices: epe + PieModule: K0e, + createPieServices: J0e }, Symbol.toStringTag, { value: "Module" })), Plr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - GitGraphModule: Y0e, - createGitGraphServices: W0e + ArchitectureModule: epe, + createArchitectureServices: tpe +}, Symbol.toStringTag, { value: "Module" })), $lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + GitGraphModule: W0e, + createGitGraphServices: G0e }, Symbol.toStringTag, { value: "Module" })); export { - zlr as default, - g7t as defaultButtons, + Vlr as default, + m7t as defaultButtons, Km as predefinedButtons }; diff --git a/docs/collaboration.html b/docs/collaboration.html index e45fc93..710c98f 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -472,7 +472,7 @@

Other Collaborative Features0703f452 + df5b86c3 @ main

diff --git a/docs/comments.html b/docs/comments.html index 8870380..c91136d 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -622,7 +622,7 @@

Suggestions - 0703f452 + df5b86c3 @ main diff --git a/docs/genindex.html b/docs/genindex.html index 96025c6..c66ef1e 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -367,7 +367,7 @@ - 0703f452 + df5b86c3 @ main diff --git a/docs/index.html b/docs/index.html index bf7f89a..0d4f356 100644 --- a/docs/index.html +++ b/docs/index.html @@ -426,7 +426,7 @@

MyST Editor - User Manual - 0703f452 + df5b86c3 @ main diff --git a/docs/introduction.html b/docs/introduction.html index eb55a82..4f6ccfa 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -426,7 +426,7 @@

Introduction - 0703f452 + df5b86c3 @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index d50ae50..a5052bc 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -430,7 +430,7 @@

Mermaid Diagrams0703f452 + df5b86c3 @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index bf1a074..0ffd3d1 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -506,7 +506,7 @@

View Mode Buttons0703f452 + df5b86c3 @ main