diff --git a/MystEditor.js b/MystEditor.js index 5c23eba..94ab722 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -33267,7 +33267,7 @@ const Z1t = (t, { name: a, role: o }) => (s[a] = o, s), {}); - r.renderer.rules[sie] = (s, a) => s[a].content, r.use(Dre, { + r.renderer.rules[sie] = (s, a, o, l, u) => `${s[a].content}`, r.use(Dre, { roles: i }); }; @@ -33342,30 +33342,33 @@ function lie(t, e) { return r; } function tmt(t, e = (r, n, i) => n) { - t.use(nmt), t.use(imt), t.use(smt); - const r = ["softbreak"], n = [...Object.keys(t.renderer.rules).filter((i) => !r.includes(i)), "paragraph_open", "heading_open", "admonition_open", "link_open"]; + t.use(nmt), t.use(imt), t.use(smt), t.use(amt); + const r = ["softbreak"], n = [...Object.keys(t.renderer.rules).filter((i) => !r.includes(i)), "paragraph_open", "heading_open", "admonition_open", "link_open", "list_item_open"]; for (const i of n) { const s = t.renderer.rules[i]; - t.renderer.rules[i] = rmt(s, e); + t.renderer.rules[i] = rmt(s); } } function rmt(t, e) { return (r, n, i, s, a) => { + const o = t != null ? t : a.renderToken.bind(a); + if (r[n].type === "list_item_open" && r[n + 1].type !== "list_item_close") + return o(r, n, i, s, a); if (["paragraph_open", "heading_open"].includes(r[n].type)) { - const l = r[n + 1]; - let u = 0, h = !1; - for (const f of l.children) { - if (f.type === "softbreak") { - u++, h = !1; + const u = r[n + 1]; + let h = 0, f = !1; + for (const d of u.children) { + if (d.type === "softbreak") { + h++, f = !1; continue; } - h || (f.map = [r[n].map[0] + u, r[n].map[0] + u + 1], h = !0); + !f && !d.type.includes("_open") && (d.map = [r[n].map[0] + h, r[n].map[0] + h + 1], f = !0); } } else if (r[n].map) { - const l = lie(r[n], s), u = oie(); - s.lineMap.current.has(l) || (s.lineMap.current.set(l, u), r[n].attrSet(kD, u)); + const u = lie(r[n], s), h = oie(); + s.lineMap.current.has(u) || (s.lineMap.current.set(u, h), r[n].attrSet(kD, h)); } - return t ? e(r[n], t(r, n, i, s, a), s) : e(r[n], a.renderToken(r, n, i), s); + return o(r, n, i, s, a); }; } function nmt(t) { @@ -33380,13 +33383,21 @@ function nmt(t) { t.renderer.rules.directive = e(t.renderer.rules.directive), t.renderer.rules.directive_error = e(t.renderer.rules.directive_error); } function imt(t) { + const e = t.renderer.rules.role; + t.renderer.rules.role = (r, n, i, s, a) => { + let o = e(r, n, i, s, a); + const l = o.indexOf(">"); + return o = o.slice(0, l) + a.renderAttrs(r[n]) + o.slice(l), o; + }; +} +function smt(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 smt(t) { +function amt(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]; @@ -33771,19 +33782,19 @@ const Ns = cie.exports, T4 = { return -1; } } -}, amt = T4, omt = { +}, omt = T4, lmt = { 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 -}, lmt = omt, cmt = { +}, cmt = lmt, umt = { dec2hex: (t) => { const e = Math.round(t).toString(16); return e.length > 1 ? e : `0${e}`; } -}, umt = cmt, hmt = { - channel: amt, - lang: lmt, - unit: umt -}, ir = hmt, Oh = {}; +}, hmt = umt, fmt = { + channel: omt, + lang: cmt, + unit: hmt +}, ir = fmt, Oh = {}; for (let t = 0; t <= 255; t++) Oh[t] = ir.unit.dec2hex(t); const Ss = { @@ -33791,7 +33802,7 @@ const Ss = { RGB: 1, HSL: 2 }; -class fmt { +class dmt { constructor() { this.type = Ss.ALL; } @@ -33810,10 +33821,10 @@ class fmt { return this.type === e; } } -const dmt = fmt; -class pmt { +const pmt = dmt; +class gmt { constructor(e, r) { - this.color = r, this.changed = !1, this.data = e, this.type = new dmt(); + this.color = r, this.changed = !1, this.data = e, this.type = new pmt(); } set(e, r) { return this.color = r, this.changed = !1, this.data = e, this.type.type = Ss.ALL, this; @@ -33875,7 +33886,7 @@ class pmt { this.changed = !0, this.data.a = e; } } -const gmt = pmt, mmt = new gmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = mmt, uie = { +const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = vmt, uie = { re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, parse: (t) => { if (t.charCodeAt(0) !== 35) @@ -34115,7 +34126,7 @@ const gmt = pmt, mmt = new gmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = 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 = hie, vmt = { +}, Qw = hie, ymt = { format: { keyword: mU, hex: ry, @@ -34133,12 +34144,12 @@ const gmt = pmt, mmt = new gmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = 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 ? Yw.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? Qw.stringify(t) : ry.stringify(t) -}, $l = vmt, ymt = (t, e) => { +}, $l = ymt, bmt = (t, e) => { const r = $l.parse(t); for (const n in e) r[n] = ir.channel.clamp[n](e[n]); return $l.stringify(r); -}, fie = ymt, bmt = (t, e, r = 0, n = 1) => { +}, fie = bmt, xmt = (t, e, r = 0, n = 1) => { if (typeof t != "number") return fie(t, { a: e }); const i = kT.set({ @@ -34148,31 +34159,31 @@ const gmt = pmt, mmt = new gmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = a: ir.channel.clamp.a(n) }); return $l.stringify(i); -}, Qd = bmt, xmt = (t, e) => ir.lang.round($l.parse(t)[e]), die = xmt, wmt = (t) => { +}, Qd = xmt, wmt = (t, e) => ir.lang.round($l.parse(t)[e]), die = wmt, Omt = (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); -}, Omt = wmt, kmt = (t) => Omt(t) >= 0.5, Smt = kmt, Tmt = (t) => !Smt(t), z0 = Tmt, Cmt = (t, e, r) => { +}, kmt = Omt, Smt = (t) => kmt(t) >= 0.5, Tmt = Smt, Cmt = (t) => !Tmt(t), z0 = Cmt, Emt = (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); -}, pie = Cmt, Emt = (t, e) => pie(t, "l", e), Ft = Emt, _mt = (t, e) => pie(t, "l", -e), Qt = _mt, Amt = (t, e) => { +}, pie = Emt, _mt = (t, e) => pie(t, "l", e), Ft = _mt, Amt = (t, e) => pie(t, "l", -e), Qt = Amt, Lmt = (t, e) => { const r = $l.parse(t), n = {}; for (const i in e) !e[i] || (n[i] = r[i] + e[i]); return fie(t, n); -}, Pe = Amt, Lmt = (t, e, r = 50) => { +}, Pe = Lmt, Rmt = (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); -}, Rmt = Lmt, Mmt = (t, e = 100) => { +}, Mmt = Rmt, Dmt = (t, e = 100) => { const r = $l.parse(t); - return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Rmt(r, t, e); -}, Ot = Mmt; + return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Mmt(r, t, e); +}, Ot = Dmt; /*! @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: gie, setPrototypeOf: vU, - isFrozen: Dmt, - getPrototypeOf: Nmt, - getOwnPropertyDescriptor: Imt + isFrozen: Nmt, + getPrototypeOf: Imt, + getOwnPropertyDescriptor: Pmt } = Object; let { freeze: la, @@ -34194,7 +34205,7 @@ x8 || (x8 = function(e, r, n) { w8 || (w8 = function(e, r) { return new e(...r); }); -const Ww = uo(Array.prototype.forEach), yU = uo(Array.prototype.pop), Fm = uo(Array.prototype.push), _4 = uo(String.prototype.toLowerCase), N6 = uo(String.prototype.toString), bU = uo(String.prototype.match), zm = uo(String.prototype.replace), Pmt = uo(String.prototype.indexOf), $mt = uo(String.prototype.trim), cl = uo(Object.prototype.hasOwnProperty), Zs = uo(RegExp.prototype.test), Vm = Bmt(TypeError); +const Ww = uo(Array.prototype.forEach), yU = uo(Array.prototype.pop), Fm = uo(Array.prototype.push), _4 = uo(String.prototype.toLowerCase), N6 = uo(String.prototype.toString), bU = uo(String.prototype.match), zm = uo(String.prototype.replace), $mt = uo(String.prototype.indexOf), Bmt = uo(String.prototype.trim), cl = uo(Object.prototype.hasOwnProperty), Zs = uo(RegExp.prototype.test), Vm = Fmt(TypeError); function uo(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -34202,7 +34213,7 @@ function uo(t) { return x8(t, e, n); }; } -function Bmt(t) { +function Fmt(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; @@ -34217,13 +34228,13 @@ function kr(t, e) { let i = e[n]; if (typeof i == "string") { const s = r(i); - s !== i && (Dmt(e) || (e[n] = s), i = s); + s !== i && (Nmt(e) || (e[n] = s), i = s); } t[i] = !0; } return t; } -function Fmt(t) { +function zmt(t) { for (let e = 0; e < t.length; e++) cl(t, e) || (t[e] = null); return t; @@ -34231,42 +34242,42 @@ function Fmt(t) { function od(t) { const e = mie(null); for (const [r, n] of gie(t)) - cl(t, r) && (Array.isArray(n) ? e[r] = Fmt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = od(n) : e[r] = n); + cl(t, r) && (Array.isArray(n) ? e[r] = zmt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = od(n) : e[r] = n); return e; } function Um(t, e) { for (; t !== null; ) { - const n = Imt(t, e); + const n = Pmt(t, e); if (n) { if (n.get) return uo(n.get); if (typeof n.value == "function") return uo(n.value); } - t = Nmt(t); + t = Imt(t); } function r() { return null; } return r; } -const xU = 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"]), I6 = 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"]), P6 = 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"]), zmt = 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"]), $6 = 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"]), Vmt = la(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wU = la(["#text"]), OU = 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"]), B6 = 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"]), kU = 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"]), Gw = la(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Umt = Wo(/\{\{[\w\W]*|[\w\W]*\}\}/gm), qmt = Wo(/<%[\w\W]*|[\w\W]*%>/gm), Ymt = Wo(/\${[\w\W]*}/gm), Qmt = Wo(/^data-[\-\w.\u00B7-\uFFFF]/), Wmt = Wo(/^aria-[\-\w]+$/), vie = Wo( +const xU = 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"]), I6 = 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"]), P6 = 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"]), Vmt = 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"]), $6 = 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"]), Umt = la(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wU = la(["#text"]), OU = 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"]), B6 = 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"]), kU = 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"]), Gw = la(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), qmt = Wo(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ymt = Wo(/<%[\w\W]*|[\w\W]*%>/gm), Qmt = Wo(/\${[\w\W]*}/gm), Wmt = Wo(/^data-[\-\w.\u00B7-\uFFFF]/), Gmt = Wo(/^aria-[\-\w]+$/), vie = Wo( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), Gmt = Wo(/^(?:\w+script|data):/i), Hmt = Wo( +), Hmt = Wo(/^(?:\w+script|data):/i), Xmt = Wo( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), yie = Wo(/^html$/i), Xmt = Wo(/^[a-z][.\w]*(-[.\w]+)+$/i); +), yie = Wo(/^html$/i), Zmt = Wo(/^[a-z][.\w]*(-[.\w]+)+$/i); var SU = /* @__PURE__ */ Object.freeze({ __proto__: null, - MUSTACHE_EXPR: Umt, - ERB_EXPR: qmt, - TMPLIT_EXPR: Ymt, - DATA_ATTR: Qmt, - ARIA_ATTR: Wmt, + MUSTACHE_EXPR: qmt, + ERB_EXPR: Ymt, + TMPLIT_EXPR: Qmt, + DATA_ATTR: Wmt, + ARIA_ATTR: Gmt, IS_ALLOWED_URI: vie, - IS_SCRIPT_OR_DATA: Gmt, - ATTR_WHITESPACE: Hmt, + IS_SCRIPT_OR_DATA: Hmt, + ATTR_WHITESPACE: Xmt, DOCTYPE_NAME: yie, - CUSTOM_ELEMENT: Xmt + CUSTOM_ELEMENT: Zmt }); const qm = { element: 1, @@ -34281,9 +34292,9 @@ const qm = { documentType: 10, documentFragment: 11, notation: 12 -}, Zmt = function() { +}, jmt = function() { return typeof window > "u" ? null : window; -}, jmt = function(e, r) { +}, Kmt = function(e, r) { if (typeof e != "object" || typeof e.createPolicy != "function") return null; let n = null; @@ -34304,7 +34315,7 @@ const qm = { } }; function bie() { - let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Zmt(); + let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : jmt(); const e = (qe) => bie(qe); if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== qm.document) return e.isSupported = !1, e; @@ -34405,10 +34416,10 @@ function bie() { throw Vm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); O = te.TRUSTED_TYPES_POLICY, S = O.createHTML(""); } else - O === void 0 && (O = jmt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); + O === void 0 && (O = Kmt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); la && la(te), ut = te; } - }, Ye = kr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = kr({}, ["foreignobject", "annotation-xml"]), tt = kr({}, ["title", "style", "font", "a", "script"]), He = kr({}, [...I6, ...P6, ...zmt]), kt = kr({}, [...$6, ...Vmt]), st = function(te) { + }, Ye = kr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = kr({}, ["foreignobject", "annotation-xml"]), tt = kr({}, ["title", "style", "font", "a", "script"]), He = kr({}, [...I6, ...P6, ...Vmt]), kt = kr({}, [...$6, ...Umt]), st = function(te) { let Le = w(te); (!Le || !Le.tagName) && (Le = { namespaceURI: Ce, @@ -34527,7 +34538,7 @@ function bie() { return !1; } else if (!fe[Le]) { if (!Zs(F, zm(ze, D, ""))) { - if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && Pmt(ze, "data:") === 0 && re[te])) { + if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && $mt(ze, "data:") === 0 && re[te])) { if (!(Z && !Zs(I, zm(ze, D, "")))) { if (ze) return !1; @@ -34560,7 +34571,7 @@ function bie() { namespaceURI: rt, value: St } = cr, Tt = je(Jt); - let Je = Jt === "value" ? St : $mt(St); + let Je = Jt === "value" ? St : Bmt(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; @@ -34696,14 +34707,14 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu }, X.error = () => { }, X.fatal = () => { }, e <= ou.fatal && (X.fatal = console.error ? console.error.bind(console, wo("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", wo("FATAL"))), e <= ou.error && (X.error = console.error ? console.error.bind(console, wo("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", wo("ERROR"))), e <= ou.warn && (X.warn = console.warn ? console.warn.bind(console, wo("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", wo("WARN"))), e <= ou.info && (X.info = console.info ? console.info.bind(console, wo("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", wo("INFO"))), e <= ou.debug && (X.debug = console.debug ? console.debug.bind(console, wo("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", wo("DEBUG"))), e <= ou.trace && (X.trace = console.debug ? console.debug.bind(console, wo("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", wo("TRACE"))); -}, "setLogLevel"), wo = /* @__PURE__ */ x((t) => `%c${Ns().format("ss.SSS")} : ${t} : `, "format"), Oie = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ny = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Kmt = /\s*%%.*\n/gm, ib, kie = (ib = class extends Error { +}, "setLogLevel"), wo = /* @__PURE__ */ x((t) => `%c${Ns().format("ss.SSS")} : ${t} : `, "format"), Oie = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ny = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Jmt = /\s*%%.*\n/gm, ib, kie = (ib = class extends Error { constructor(e) { super(e), this.name = "UnknownDiagramError"; } }, (() => { x(ib, "UnknownDiagramError"); })(), ib), Qg = {}, TD = /* @__PURE__ */ x(function(t, e) { - t = t.replace(Oie, "").replace(ny, "").replace(Kmt, ` + t = t.replace(Oie, "").replace(ny, "").replace(Jmt, ` `); for (const [r, { detector: n }] of Object.entries(Qg)) if (n(t, e)) @@ -34716,14 +34727,14 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu Tie(e, r, n); }, "registerLazyLoadedDiagrams"), Tie = /* @__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"), Jmt = /* @__PURE__ */ x((t) => Qg[t].loader, "getDiagramLoader"), O8 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { +}, "addDetector"), evt = /* @__PURE__ */ x((t) => Qg[t].loader, "getDiagramLoader"), O8 = /* @__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) => O8(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] = O8(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 = O8, ST = "#ffffff", TT = "#f2f2f2", ta = /* @__PURE__ */ x((t, e) => e ? Pe(t, { s: -40, l: 10 }) : Pe(t, { s: -40, l: -10 }), "mkBorder"), sb, evt = (sb = class { +}, "assignWithDepth"), Ci = O8, ST = "#ffffff", TT = "#f2f2f2", ta = /* @__PURE__ */ x((t, e) => e ? Pe(t, { s: -40, l: 10 }) : Pe(t, { s: -40, l: -10 }), "mkBorder"), sb, tvt = (sb = 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"; } @@ -34773,10 +34784,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(sb, "Theme"); -})(), sb), tvt = /* @__PURE__ */ x((t) => { - const e = new evt(); +})(), sb), rvt = /* @__PURE__ */ x((t) => { + const e = new tvt(); return e.calculate(t), e; -}, "getThemeVariables"), ab, rvt = (ab = class { +}, "getThemeVariables"), ab, nvt = (ab = 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 = Qt("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = Qt(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"; } @@ -34829,10 +34840,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(ab, "Theme"); -})(), ab), nvt = /* @__PURE__ */ x((t) => { - const e = new rvt(); +})(), ab), ivt = /* @__PURE__ */ x((t) => { + const e = new nvt(); return e.calculate(t), e; -}, "getThemeVariables"), ob, ivt = (ob = class { +}, "getThemeVariables"), ob, svt = (ob = 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(); } @@ -34879,9 +34890,9 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu }, (() => { x(ob, "Theme"); })(), ob), CD = /* @__PURE__ */ x((t) => { - const e = new ivt(); + const e = new svt(); return e.calculate(t), e; -}, "getThemeVariables"), lb, svt = (lb = class { +}, "getThemeVariables"), lb, avt = (lb = 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"; } @@ -34932,10 +34943,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(lb, "Theme"); -})(), lb), avt = /* @__PURE__ */ x((t) => { - const e = new svt(); +})(), lb), ovt = /* @__PURE__ */ x((t) => { + const e = new avt(); return e.calculate(t), e; -}, "getThemeVariables"), cb, ovt = (cb = class { +}, "getThemeVariables"), cb, lvt = (cb = 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"; } @@ -34982,24 +34993,24 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(cb, "Theme"); -})(), cb), lvt = /* @__PURE__ */ x((t) => { - const e = new ovt(); +})(), cb), cvt = /* @__PURE__ */ x((t) => { + const e = new lvt(); return e.calculate(t), e; }, "getThemeVariables"), Lu = { base: { - getThemeVariables: tvt + getThemeVariables: rvt }, dark: { - getThemeVariables: nvt + getThemeVariables: ivt }, default: { getThemeVariables: CD }, forest: { - getThemeVariables: avt + getThemeVariables: ovt }, neutral: { - getThemeVariables: lvt + getThemeVariables: cvt } }, gh = { flowchart: { @@ -35677,14 +35688,14 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu packet: { ...gh.packet } -}, Eie = /* @__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, ...Eie(t[n], "")] : [...r, e + n], []), "keyify"), cvt = new Set(Eie(Cie, "")), jr = Cie, p3 = /* @__PURE__ */ x((t) => { +}, Eie = /* @__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, ...Eie(t[n], "")] : [...r, e + n], []), "keyify"), uvt = new Set(Eie(Cie, "")), jr = Cie, p3 = /* @__PURE__ */ x((t) => { if (X.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) { if (Array.isArray(t)) { t.forEach((e) => p3(e)); return; } for (const e of Object.keys(t)) { - if (X.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !cvt.has(e) || t[e] == null) { + if (X.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !uvt.has(e) || t[e] == null) { X.debug("sanitize deleting key: ", e), delete t[e]; continue; } @@ -35694,7 +35705,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } const r = ["themeCSS", "fontFamily", "altFontFamily"]; for (const n of r) - e.includes(n) && (X.debug("sanitizing css option", e), t[e] = uvt(t[e])); + e.includes(n) && (X.debug("sanitizing css option", e), t[e] = hvt(t[e])); } if (t.themeVariables) for (const e of Object.keys(t.themeVariables)) { @@ -35703,7 +35714,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } X.debug("After sanitization", t); } -}, "sanitizeDirective"), uvt = /* @__PURE__ */ x((t) => { +}, "sanitizeDirective"), hvt = /* @__PURE__ */ x((t) => { let e = 0, r = 0; for (const n of t) { if (e < r) @@ -35723,9 +35734,9 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu r.theme && r.theme in Lu && (r.themeVariables = Lu[r.theme].getThemeVariables(s)); } return iy = r, Mie(iy), iy; -}, "updateCurrentConfig"), hvt = /* @__PURE__ */ x((t) => (Sa = Ci({}, Wg), Sa = Ci(Sa, t), t.theme && Lu[t.theme] && (Sa.themeVariables = Lu[t.theme].getThemeVariables(t.themeVariables)), CT(Sa, Gg), Sa), "setSiteConfig"), fvt = /* @__PURE__ */ x((t) => { +}, "updateCurrentConfig"), fvt = /* @__PURE__ */ x((t) => (Sa = Ci({}, Wg), Sa = Ci(Sa, t), t.theme && Lu[t.theme] && (Sa.themeVariables = Lu[t.theme].getThemeVariables(t.themeVariables)), CT(Sa, Gg), Sa), "setSiteConfig"), dvt = /* @__PURE__ */ x((t) => { _ie = Ci({}, t); -}, "saveConfigFromInitialize"), dvt = /* @__PURE__ */ x((t) => (Sa = Ci(Sa, t), CT(Sa, Gg), Sa), "updateSiteConfig"), Aie = /* @__PURE__ */ x(() => Ci({}, Sa), "getSiteConfig"), Lie = /* @__PURE__ */ x((t) => (Mie(t), Ci(iy, t), pi()), "setConfig"), pi = /* @__PURE__ */ x(() => Ci({}, iy), "getConfig"), Rie = /* @__PURE__ */ x((t) => { +}, "saveConfigFromInitialize"), pvt = /* @__PURE__ */ x((t) => (Sa = Ci(Sa, t), CT(Sa, Gg), Sa), "updateSiteConfig"), Aie = /* @__PURE__ */ x(() => Ci({}, Sa), "getSiteConfig"), Lie = /* @__PURE__ */ x((t) => (Mie(t), Ci(iy, t), pi()), "setConfig"), pi = /* @__PURE__ */ x(() => Ci({}, iy), "getConfig"), Rie = /* @__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]); @@ -35734,7 +35745,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu }), 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" && Rie(t[r]); })); -}, "sanitize"), pvt = /* @__PURE__ */ x((t) => { +}, "sanitize"), gvt = /* @__PURE__ */ x((t) => { var e; p3(t), t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables = { ...t.themeVariables, @@ -35742,13 +35753,13 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu }), Gg.push(t), CT(Sa, Gg); }, "addDirective"), g3 = /* @__PURE__ */ x((t = Sa) => { Gg = [], CT(t, Gg); -}, "reset"), gvt = { +}, "reset"), mvt = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." -}, TU = {}, mvt = /* @__PURE__ */ x((t) => { - TU[t] || (X.warn(gvt[t]), TU[t] = !0); +}, TU = {}, vvt = /* @__PURE__ */ x((t) => { + TU[t] || (X.warn(mvt[t]), TU[t] = !0); }, "issueWarning"), Mie = /* @__PURE__ */ x((t) => { - !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && mvt("LAZY_LOAD_DEPRECATED"); -}, "checkConfig"), X1 = //gi, vvt = /* @__PURE__ */ x((t) => t ? Iie(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), yvt = /* @__PURE__ */ (() => { + !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && vvt("LAZY_LOAD_DEPRECATED"); +}, "checkConfig"), X1 = //gi, yvt = /* @__PURE__ */ x((t) => t ? Iie(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), bvt = /* @__PURE__ */ (() => { let t = !1; return () => { t || (Die(), t = !0); @@ -35765,22 +35776,22 @@ function Die() { }); } x(Die, "setupDompurifyHooks"); -var Nie = /* @__PURE__ */ x((t) => (yvt(), Yg.sanitize(t)), "removeScript"), CU = /* @__PURE__ */ x((t, e) => { +var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU = /* @__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 = Nie(t) : n !== "loose" && (t = Iie(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = Ovt(t)); + n === "antiscript" || n === "strict" ? t = Nie(t) : n !== "loose" && (t = Iie(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = kvt(t)); } return t; }, "sanitizeMore"), ni = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Yg.sanitize(CU(t, e), e.dompurifyConfig).toString() : t = Yg.sanitize(CU(t, e), { FORBID_TAGS: ["style"] -}).toString(), t), "sanitizeText"), bvt = /* @__PURE__ */ x((t, e) => typeof t == "string" ? ni(t, e) : t.flat().map((r) => ni(r, e)), "sanitizeTextOrArray"), xvt = /* @__PURE__ */ x((t) => X1.test(t), "hasBreaks"), wvt = /* @__PURE__ */ x((t) => t.split(X1), "splitBreaks"), Ovt = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), Iie = /* @__PURE__ */ x((t) => t.replace(X1, "#br#"), "breakToPlaceholder"), kvt = /* @__PURE__ */ x((t) => { +}).toString(), t), "sanitizeText"), xvt = /* @__PURE__ */ x((t, e) => typeof t == "string" ? ni(t, e) : t.flat().map((r) => ni(r, e)), "sanitizeTextOrArray"), wvt = /* @__PURE__ */ x((t) => X1.test(t), "hasBreaks"), Ovt = /* @__PURE__ */ x((t) => t.split(X1), "splitBreaks"), kvt = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), Iie = /* @__PURE__ */ x((t) => t.replace(X1, "#br#"), "breakToPlaceholder"), Svt = /* @__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"), Svt = /* @__PURE__ */ x(function(...t) { +}, "getUrl"), bn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), Tvt = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.max(...e); -}, "getMax"), Tvt = /* @__PURE__ */ x(function(...t) { +}, "getMax"), Cvt = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.min(...e); }, "getMin"), sy = /* @__PURE__ */ x(function(t) { @@ -35789,15 +35800,15 @@ var Nie = /* @__PURE__ */ x((t) => (yvt(), Yg.sanitize(t)), "removeScript"), CU let i = e[n]; if (i === "," && n > 0 && n + 1 < e.length) { const s = e[n - 1], a = e[n + 1]; - Cvt(s, a) && (i = s + "," + a, n++, r.pop()); + Evt(s, a) && (i = s + "," + a, n++, r.pop()); } - r.push(Evt(i)); + r.push(_vt(i)); } return r.join(""); -}, "parseGenericTypes"), k8 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), Cvt = /* @__PURE__ */ x((t, e) => { +}, "parseGenericTypes"), k8 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), Evt = /* @__PURE__ */ x((t, e) => { const r = k8(t, "~"), n = k8(e, "~"); return r === 1 && n === 1; -}, "shouldCombineSets"), Evt = /* @__PURE__ */ x((t) => { +}, "shouldCombineSets"), _vt = /* @__PURE__ */ x((t) => { const e = k8(t, "~"); let r = !1; if (e <= 1) @@ -35824,7 +35835,7 @@ var Nie = /* @__PURE__ */ x((t) => (yvt(), Yg.sanitize(t)), "removeScript"), CU return t; if (!(EU() || e.legacyMathML || e.forceLegacyMathML)) return t.replace(S8, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => MLt), n = e.forceLegacyMathML || !EU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + const { default: r } = await Promise.resolve().then(() => DLt), n = e.forceLegacyMathML || !EU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(X1).map( (i) => ca(i) ? `
${i}
` : `
${i}
` ).join("").replace( @@ -35836,26 +35847,26 @@ var Nie = /* @__PURE__ */ x((t) => (yvt(), Yg.sanitize(t)), "removeScript"), CU }).replace(/\n/g, " ").replace(//g, "") ); }, "renderKatex"), at = { - getRows: vvt, + getRows: yvt, sanitizeText: ni, - sanitizeTextOrArray: bvt, - hasBreaks: xvt, - splitBreaks: wvt, + sanitizeTextOrArray: xvt, + hasBreaks: wvt, + splitBreaks: Ovt, lineBreakRegex: X1, removeScript: Nie, - getUrl: kvt, + getUrl: Svt, evaluate: bn, - getMax: Svt, - getMin: Tvt -}, _vt = /* @__PURE__ */ x(function(t, e) { + getMax: Tvt, + getMin: Cvt +}, Avt = /* @__PURE__ */ x(function(t, e) { for (let r of e) t.attr(r[0], r[1]); -}, "d3Attrs"), Avt = /* @__PURE__ */ x(function(t, e, r) { +}, "d3Attrs"), Lvt = /* @__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 = Avt(e, r, n); - _vt(t, i); + const i = Lvt(e, r, n); + Avt(t, i); }, "configureSvgSize"), Z1 = /* @__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); @@ -35863,7 +35874,7 @@ var Nie = /* @__PURE__ */ x((t) => (yvt(), Yg.sanitize(t)), "removeScript"), CU 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"), A4 = {}, Lvt = /* @__PURE__ */ x((t, e, r) => { +}, "setupGraphViewbox"), A4 = {}, Rvt = /* @__PURE__ */ x((t, e, r) => { let n = ""; return t in A4 && A4[t] ? n = A4[t](r) : X.warn(`No theme found for ${t}`), ` & { font-family: ${r.fontFamily}; @@ -35921,9 +35932,9 @@ var Nie = /* @__PURE__ */ x((t) => (yvt(), Yg.sanitize(t)), "removeScript"), CU ${e} `; -}, "getStyles"), Rvt = /* @__PURE__ */ x((t, e) => { +}, "getStyles"), Mvt = /* @__PURE__ */ x((t, e) => { e !== void 0 && (A4[t] = e); -}, "addStylesForDiagram"), Mvt = Lvt, ED = {}; +}, "addStylesForDiagram"), Dvt = Rvt, ED = {}; wie(ED, { clear: () => Xi, getAccDescription: () => bs, @@ -35942,31 +35953,31 @@ var _D = "", AD = "", LD = "", RD = /* @__PURE__ */ x((t) => ni(t, pi()), "sanit `); }, "setAccDescription"), bs = /* @__PURE__ */ x(() => LD, "getAccDescription"), fa = /* @__PURE__ */ x((t) => { AD = RD(t); -}, "setDiagramTitle"), xs = /* @__PURE__ */ x(() => AD, "getDiagramTitle"), _U = X, Dvt = SD, be = pi, AU = Lie, Pie = Wg, Nvt = /* @__PURE__ */ x((t) => ni(t, be()), "sanitizeText"), $ie = Z1, Ivt = /* @__PURE__ */ x(() => ED, "getCommonDb"), m3 = {}, v3 = /* @__PURE__ */ x((t, e, r) => { +}, "setDiagramTitle"), xs = /* @__PURE__ */ x(() => AD, "getDiagramTitle"), _U = X, Nvt = SD, be = pi, AU = Lie, Pie = Wg, Ivt = /* @__PURE__ */ x((t) => ni(t, be()), "sanitizeText"), $ie = Z1, Pvt = /* @__PURE__ */ x(() => ED, "getCommonDb"), m3 = {}, v3 = /* @__PURE__ */ x((t, e, r) => { var n; - m3[t] && _U.warn(`Diagram with id ${t} already registered. Overwriting.`), m3[t] = e, r && Tie(t, r), Rvt(t, e.styles), (n = e.injectUtils) == null || n.call( + m3[t] && _U.warn(`Diagram with id ${t} already registered. Overwriting.`), m3[t] = e, r && Tie(t, r), Mvt(t, e.styles), (n = e.injectUtils) == null || n.call( e, _U, - Dvt, - be, Nvt, + be, + Ivt, $ie, - Ivt(), + Pvt(), () => { } ); }, "registerDiagram"), T8 = /* @__PURE__ */ x((t) => { if (t in m3) return m3[t]; - throw new Pvt(t); -}, "getDiagram"), ub, Pvt = (ub = class extends Error { + throw new $vt(t); +}, "getDiagram"), ub, $vt = (ub = class extends Error { constructor(e) { super(`Diagram ${e} not found.`); } }, (() => { x(ub, "DiagramNotFoundError"); })(), ub); -const $vt = Object.freeze( +const Bvt = Object.freeze( { left: 0, top: 0, @@ -35978,19 +35989,19 @@ const $vt = Object.freeze( vFlip: !1, hFlip: !1 }), Bie = Object.freeze({ - ...$vt, + ...Bvt, ...y3 -}), Bvt = Object.freeze({ +}), Fvt = Object.freeze({ ...Bie, body: "", hidden: !1 -}), Fvt = Object.freeze({ +}), zvt = Object.freeze({ width: null, height: null -}), zvt = Object.freeze({ - ...Fvt, +}), Vvt = Object.freeze({ + ...zvt, ...y3 -}), F6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, Vvt = (t, e, r, n = "") => { +}), F6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, Uvt = (t, e, r, n = "") => { const i = t.split(":"); if (t.slice(0, 1) === "@") { if (i.length < 2 || i.length > 3) @@ -36026,19 +36037,19 @@ const $vt = Object.freeze( } return null; }, z6 = (t, e) => t ? !!((t.provider === "" || t.provider.match(F6)) && (e && t.prefix === "" || t.prefix.match(F6)) && t.name.match(F6)) : !1; -function Uvt(t, e) { +function qvt(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 LU(t, e) { - const r = Uvt(t, e); - for (const n in Bvt) + const r = qvt(t, e); + for (const n in Fvt) n in y3 ? n in t && !(n in r) && (r[n] = y3[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]); return r; } -function qvt(t, e) { +function Yvt(t, e) { const r = t.icons, n = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null); function s(a) { if (r[a]) @@ -36063,13 +36074,13 @@ function RU(t, e, r) { } return a(e), r.forEach(a), LU(t, s); } -function Yvt(t, e) { +function Qvt(t, e) { if (t.icons[e]) return RU(t, e, []); - const r = qvt(t, [e])[e]; + const r = Yvt(t, [e])[e]; return r ? RU(t, e, r) : null; } -const Qvt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Wvt = /^-?[0-9.]*[0-9]+[0-9.]*$/g; +const Wvt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Gvt = /^-?[0-9.]*[0-9]+[0-9.]*$/g; function MU(t, e, r) { if (e === 1) return t; @@ -36077,11 +36088,11 @@ function MU(t, e, r) { return Math.ceil(t * e * r) / r; if (typeof t != "string") return t; - const n = t.split(Qvt); + const n = t.split(Wvt); if (n === null || !n.length) return t; const i = []; - let s = n.shift(), a = Wvt.test(s); + let s = n.shift(), a = Gvt.test(s); for (; ; ) { if (a) { const o = parseFloat(s); @@ -36093,7 +36104,7 @@ function MU(t, e, r) { a = !a; } } -function Gvt(t, e = "defs") { +function Hvt(t, e = "defs") { let r = ""; const n = t.indexOf("<" + e); for (; n >= 0; ) { @@ -36110,20 +36121,20 @@ function Gvt(t, e = "defs") { content: t }; } -function Hvt(t, e) { +function Xvt(t, e) { return t ? "" + t + "" + e : e; } -function Xvt(t, e, r) { - const n = Gvt(t); - return Hvt(n.defs, e + n.content + r); +function Zvt(t, e, r) { + const n = Hvt(t); + return Xvt(n.defs, e + n.content + r); } -const Zvt = (t) => t === "unset" || t === "undefined" || t === "none"; -function jvt(t, e) { +const jvt = (t) => t === "unset" || t === "undefined" || t === "none"; +function Kvt(t, e) { const r = { ...Bie, ...t }, n = { - ...zvt, + ...Vvt, ...e }, i = { left: r.left, @@ -36158,7 +36169,7 @@ function jvt(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 = Xvt( + 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, '', "" @@ -36168,7 +36179,7 @@ function jvt(t, e) { let h, f; a === null ? (f = o === null ? "1em" : o === "auto" ? u : o, h = MU(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? MU(h, u / l) : o === "auto" ? u : o); const d = {}, p = (m, v) => { - Zvt(v) || (d[m] = v.toString()); + jvt(v) || (d[m] = v.toString()); }; p("width", h), p("height", f); const g = [i.left, i.top, l, u]; @@ -36178,25 +36189,25 @@ function jvt(t, e) { body: s }; } -const Kvt = /\sid="(\S+)"/g, Jvt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); -let eyt = 0; -function tyt(t, e = Jvt) { +const Jvt = /\sid="(\S+)"/g, eyt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); +let tyt = 0; +function ryt(t, e = eyt) { const r = []; let n; - for (; n = Kvt.exec(t); ) + for (; n = Jvt.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 + (eyt++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const a = typeof e == "function" ? e(s) : e + (tyt++).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 ryt(t, e) { +function nyt(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] + '"'; @@ -36219,8 +36230,8 @@ var Fie = { else throw X.error("Invalid icon loader:", e), new Error('Invalid icon loader. Must have either "icons" or "loader" property.'); } -}, "registerIconPacks"), nyt = /* @__PURE__ */ x(async (t, e) => { - const r = Vvt(t, !0, e !== void 0); +}, "registerIconPacks"), iyt = /* @__PURE__ */ x(async (t, e) => { + const r = Uvt(t, !0, e !== void 0); if (!r) throw new Error(`Invalid icon name: ${t}`); const n = r.prefix || e; @@ -36237,19 +36248,19 @@ var Fie = { throw X.error(o), new Error(`Failed to load icon set: ${r.prefix}`); } } - const s = Yvt(i, r.name); + const s = Qvt(i, r.name); if (!s) throw new Error(`Icon not found: ${t}`); return s; }, "getRegisteredIconData"), E8 = /* @__PURE__ */ x(async (t, e) => { let r; try { - r = await nyt(t, e == null ? void 0 : e.fallbackPrefix); + r = await iyt(t, e == null ? void 0 : e.fallbackPrefix); } catch (s) { X.error(s), r = Fie; } - const n = jvt(r, e); - return ryt(tyt(n.body), n.attributes); + const n = Kvt(r, e); + return nyt(ryt(n.body), n.attributes); }, "getIconSVG"), V0 = /* @__PURE__ */ x(({ flowchart: t }) => { @@ -36318,16 +36329,16 @@ qi.relativeFirstCharacters = [".", "/"]; qi.BLANK_URL = "about:blank"; Object.defineProperty(MD, "__esModule", { value: !0 }); var Uf = MD.sanitizeUrl = void 0, Ts = qi; -function iyt(t) { +function syt(t) { return Ts.relativeFirstCharacters.indexOf(t[0]) > -1; } -function syt(t) { +function ayt(t) { var e = t.replace(Ts.ctrlCharactersRegex, ""); return e.replace(Ts.htmlEntitiesRegex, function(r, n) { return String.fromCharCode(n); }); } -function ayt(t) { +function oyt(t) { return URL.canParse(t); } function DU(t) { @@ -36337,17 +36348,17 @@ function DU(t) { return t; } } -function oyt(t) { +function lyt(t) { if (!t) return Ts.BLANK_URL; var e, r = DU(t.trim()); do - r = syt(r).replace(Ts.htmlCtrlEntityRegex, "").replace(Ts.ctrlCharactersRegex, "").replace(Ts.whitespaceEscapeCharsRegex, "").trim(), r = DU(r), e = r.match(Ts.ctrlCharactersRegex) || r.match(Ts.htmlEntitiesRegex) || r.match(Ts.htmlCtrlEntityRegex) || r.match(Ts.whitespaceEscapeCharsRegex); + r = ayt(r).replace(Ts.htmlCtrlEntityRegex, "").replace(Ts.ctrlCharactersRegex, "").replace(Ts.whitespaceEscapeCharsRegex, "").trim(), r = DU(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 (iyt(n)) + if (syt(n)) return n; var i = n.trimStart(), s = i.match(Ts.urlSchemeRegex); if (!s) @@ -36359,23 +36370,23 @@ function oyt(t) { if (a === "mailto:" || a.includes("://")) return o; if (a === "http:" || a === "https:") { - if (!ayt(o)) + if (!oyt(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; } -Uf = MD.sanitizeUrl = oyt; +Uf = MD.sanitizeUrl = lyt; function L4(t, e) { return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function lyt(t, e) { +function cyt(t, e) { return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } function DD(t) { let e, r, n; - t.length !== 2 ? (e = L4, r = (o, l) => L4(t(o), l), n = (o, l) => t(o) - l) : (e = t === L4 || t === lyt ? t : cyt, r = t, n = t); + t.length !== 2 ? (e = L4, r = (o, l) => L4(t(o), l), n = (o, l) => t(o) - l) : (e = t === L4 || t === cyt ? t : uyt, r = t, n = t); function i(o, l, u = 0, h = o.length) { if (u < h) { if (e(l, l) !== 0) @@ -36404,17 +36415,17 @@ function DD(t) { } return { left: i, center: a, right: s }; } -function cyt() { +function uyt() { return 0; } -function uyt(t) { +function hyt(t) { return t === null ? NaN : +t; } -const hyt = DD(L4), fyt = hyt.right; -DD(uyt).center; -const dyt = fyt; +const fyt = DD(L4), dyt = fyt.right; +DD(hyt).center; +const pyt = dyt; class NU extends Map { - constructor(e, r = myt) { + constructor(e, r = vyt) { 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); @@ -36426,34 +36437,34 @@ class NU extends Map { return super.has(IU(this, e)); } set(e, r) { - return super.set(pyt(this, e), r); + return super.set(gyt(this, e), r); } delete(e) { - return super.delete(gyt(this, e)); + return super.delete(myt(this, e)); } } function IU({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : r; } -function pyt({ _intern: t, _key: e }, r) { +function gyt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : (t.set(n, r), r); } -function gyt({ _intern: t, _key: e }, r) { +function myt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) && (r = t.get(n), t.delete(n)), r; } -function myt(t) { +function vyt(t) { return t !== null && typeof t == "object" ? t.valueOf() : t; } -const vyt = Math.sqrt(50), yyt = Math.sqrt(10), byt = Math.sqrt(2); +const yyt = Math.sqrt(50), byt = Math.sqrt(10), xyt = Math.sqrt(2); function x3(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 >= vyt ? 10 : s >= yyt ? 5 : s >= byt ? 2 : 1; + const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= yyt ? 10 : s >= byt ? 5 : s >= xyt ? 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 ? x3(t, e, r * 2) : [o, l, u]; } -function xyt(t, e, r) { +function wyt(t, e, r) { if (e = +e, t = +t, r = +r, !(r > 0)) return []; if (t === e) @@ -36485,7 +36496,7 @@ function A8(t, e, r) { const n = e < t, i = n ? _8(e, t, r) : _8(t, e, r); return (n ? -1 : 1) * (i < 0 ? 1 / -i : i); } -function wyt(t, e) { +function Oyt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36497,7 +36508,7 @@ function wyt(t, e) { } return r; } -function Oyt(t, e) { +function kyt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36509,35 +36520,35 @@ function Oyt(t, e) { } return r; } -function kyt(t, e, r) { +function Syt(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 Syt(t) { +function Tyt(t) { return t; } var R4 = 1, V6 = 2, L8 = 3, Hw = 4, PU = 1e-6; -function Tyt(t) { +function Cyt(t) { return "translate(" + t + ",0)"; } -function Cyt(t) { +function Eyt(t) { return "translate(0," + t + ")"; } -function Eyt(t) { +function _yt(t) { return (e) => +t(e); } -function _yt(t, e) { +function Ayt(t, e) { return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (r) => +t(r) + e; } -function Ayt() { +function Lyt() { return !this.__axis; } function qie(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 === R4 || t === Hw ? -1 : 1, h = t === Hw || t === V6 ? "x" : "y", f = t === R4 || t === L8 ? Tyt : Cyt; + var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === R4 || t === Hw ? -1 : 1, h = t === Hw || t === V6 ? "x" : "y", f = t === R4 || t === L8 ? Cyt : Eyt; 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) : Syt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? _yt : Eyt)(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"), R = T.select("line"), _ = T.select("text"); + var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : Tyt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? Ayt : _yt)(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"), R = T.select("line"), _ = T.select("text"); C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), R = R.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 === R4 ? "0em" : t === L8 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), R = R.transition(p), _ = _.transition(p), L = L.transition(p).attr("opacity", PU).attr("transform", function(A) { return isFinite(A = O(A)) ? f(A + l) : this.getAttribute("transform"); }), E.attr("opacity", PU).attr("transform", function(A) { @@ -36545,7 +36556,7 @@ function qie(t, e) { return f(($ && isFinite($ = $(A)) ? $ : O(A)) + l); })), L.remove(), C.attr("d", t === Hw || t === V6 ? 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(A) { return f(O(A) + l); - }), R.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(Ayt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === V6 ? "start" : t === Hw ? "end" : "middle"), S.each(function() { + }), R.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(Lyt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === V6 ? "start" : t === Hw ? "end" : "middle"), S.each(function() { this.__axis = O; }); } @@ -36571,13 +36582,13 @@ function qie(t, e) { return arguments.length ? (l = +p, d) : l; }, d; } -function Lyt(t) { +function Ryt(t) { return qie(R4, t); } -function Ryt(t) { +function Myt(t) { return qie(L8, t); } -var Myt = { value: () => { +var Dyt = { value: () => { } }; function Yie() { for (var t = 0, e = arguments.length, r = {}, n; t < e; ++t) { @@ -36590,7 +36601,7 @@ function Yie() { function M4(t) { this._ = t; } -function Dyt(t, e) { +function Nyt(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)) @@ -36601,10 +36612,10 @@ function Dyt(t, e) { M4.prototype = Yie.prototype = { constructor: M4, on: function(t, e) { - var r = this._, n = Dyt(t + "", r), i, s = -1, a = n.length; + var r = this._, n = Nyt(t + "", r), i, s = -1, a = n.length; if (arguments.length < 2) { for (; ++s < a; ) - if ((i = (t = n[s]).type) && (i = Nyt(r[i], t.name))) + if ((i = (t = n[s]).type) && (i = Iyt(r[i], t.name))) return i; return; } @@ -36640,7 +36651,7 @@ M4.prototype = Yie.prototype = { n[i].value.apply(e, r); } }; -function Nyt(t, e) { +function Iyt(t, e) { for (var r = 0, n = t.length, i; r < n; ++r) if ((i = t[r]).name === e) return i.value; @@ -36648,7 +36659,7 @@ function Nyt(t, e) { function $U(t, e, r) { for (var n = 0, i = t.length; n < i; ++n) if (t[n].name === e) { - t[n] = Myt, t = t.slice(0, n).concat(t.slice(n + 1)); + t[n] = Dyt, t = t.slice(0, n).concat(t.slice(n + 1)); break; } return r != null && t.push({ name: e, value: r }), t; @@ -36665,53 +36676,53 @@ function ET(t) { var e = t += "", r = e.indexOf(":"); return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), BU.hasOwnProperty(e) ? { space: BU[e], local: t } : t; } -function Iyt(t) { +function Pyt(t) { return function() { var e = this.ownerDocument, r = this.namespaceURI; return r === R8 && e.documentElement.namespaceURI === R8 ? e.createElement(t) : e.createElementNS(r, t); }; } -function Pyt(t) { +function $yt(t) { return function() { return this.ownerDocument.createElementNS(t.space, t.local); }; } function Qie(t) { var e = ET(t); - return (e.local ? Pyt : Iyt)(e); + return (e.local ? $yt : Pyt)(e); } -function $yt() { +function Byt() { } function ND(t) { - return t == null ? $yt : function() { + return t == null ? Byt : function() { return this.querySelector(t); }; } -function Byt(t) { +function Fyt(t) { typeof t != "function" && (t = ND(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 ho(n, this._parents); } -function Fyt(t) { +function zyt(t) { return t == null ? [] : Array.isArray(t) ? t : Array.from(t); } -function zyt() { +function Vyt() { return []; } function Wie(t) { - return t == null ? zyt : function() { + return t == null ? Vyt : function() { return this.querySelectorAll(t); }; } -function Vyt(t) { +function Uyt(t) { return function() { - return Fyt(t.apply(this, arguments)); + return zyt(t.apply(this, arguments)); }; } -function Uyt(t) { - typeof t == "function" ? t = Vyt(t) : t = Wie(t); +function qyt(t) { + typeof t == "function" ? t = Uyt(t) : t = Wie(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)); @@ -36727,31 +36738,31 @@ function Hie(t) { return e.matches(t); }; } -var qyt = Array.prototype.find; -function Yyt(t) { +var Yyt = Array.prototype.find; +function Qyt(t) { return function() { - return qyt.call(this.children, t); + return Yyt.call(this.children, t); }; } -function Qyt() { +function Wyt() { return this.firstElementChild; } -function Wyt(t) { - return this.select(t == null ? Qyt : Yyt(typeof t == "function" ? t : Hie(t))); +function Gyt(t) { + return this.select(t == null ? Wyt : Qyt(typeof t == "function" ? t : Hie(t))); } -var Gyt = Array.prototype.filter; -function Hyt() { +var Hyt = Array.prototype.filter; +function Xyt() { return Array.from(this.children); } -function Xyt(t) { +function Zyt(t) { return function() { - return Gyt.call(this.children, t); + return Hyt.call(this.children, t); }; } -function Zyt(t) { - return this.selectAll(t == null ? Hyt : Xyt(typeof t == "function" ? t : Hie(t))); -} function jyt(t) { + return this.selectAll(t == null ? Xyt : Zyt(typeof t == "function" ? t : Hie(t))); +} +function Kyt(t) { typeof t != "function" && (t = Gie(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) @@ -36761,7 +36772,7 @@ function jyt(t) { function Xie(t) { return new Array(t.length); } -function Kyt() { +function Jyt() { return new ho(this._enter || this._groups.map(Xie), this._parents); } function w3(t, e) { @@ -36782,18 +36793,18 @@ w3.prototype = { return this._parent.querySelectorAll(t); } }; -function Jyt(t) { +function e2t(t) { return function() { return t; }; } -function e2t(t, e, r, n, i, s) { +function t2t(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 w3(t, s[a]); for (; a < l; ++a) (o = e[a]) && (i[a] = o); } -function t2t(t, e, r, n, i, s, a) { +function r2t(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)); @@ -36802,16 +36813,16 @@ function t2t(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 r2t(t) { +function n2t(t) { return t.__data__; } -function n2t(t, e) { +function i2t(t, e) { if (!arguments.length) - return Array.from(this, r2t); - var r = e ? t2t : e2t, n = this._parents, i = this._groups; - typeof t != "function" && (t = Jyt(t)); + return Array.from(this, n2t); + var r = e ? r2t : t2t, n = this._parents, i = this._groups; + typeof t != "function" && (t = e2t(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 = i2t(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 = s2t(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]) { @@ -36822,17 +36833,17 @@ function n2t(t, e) { } return a = new ho(a, n), a._enter = o, a._exit = l, a; } -function i2t(t) { +function s2t(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function s2t() { +function a2t() { return new ho(this._exit || this._groups.map(Xie), this._parents); } -function a2t(t, e, r) { +function o2t(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 o2t(t) { +function l2t(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); @@ -36840,14 +36851,14 @@ function o2t(t) { o[l] = r[l]; return new ho(o, this._parents); } -function l2t() { +function c2t() { 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 c2t(t) { - t || (t = u2t); +function u2t(t) { + t || (t = h2t); function e(f, d) { return f && d ? t(f.__data__, d.__data__) : !f - !d; } @@ -36858,17 +36869,17 @@ function c2t(t) { } return new ho(i, this._parents).order(); } -function u2t(t, e) { +function h2t(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function h2t() { +function f2t() { var t = arguments[0]; return arguments[0] = this, t.apply(null, arguments), this; } -function f2t() { +function d2t() { return Array.from(this); } -function d2t() { +function p2t() { 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]; @@ -36877,104 +36888,104 @@ function d2t() { } return null; } -function p2t() { +function g2t() { let t = 0; for (const e of this) ++t; return t; } -function g2t() { +function m2t() { return !this.node(); } -function m2t(t) { +function v2t(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 v2t(t) { +function y2t(t) { return function() { this.removeAttribute(t); }; } -function y2t(t) { +function b2t(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function b2t(t, e) { +function x2t(t, e) { return function() { this.setAttribute(t, e); }; } -function x2t(t, e) { +function w2t(t, e) { return function() { this.setAttributeNS(t.space, t.local, e); }; } -function w2t(t, e) { +function O2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttribute(t) : this.setAttribute(t, r); }; } -function O2t(t, e) { +function k2t(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 k2t(t, e) { +function S2t(t, e) { var r = ET(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 ? y2t : v2t : typeof e == "function" ? r.local ? O2t : w2t : r.local ? x2t : b2t)(r, e)); + return this.each((e == null ? r.local ? b2t : y2t : typeof e == "function" ? r.local ? k2t : O2t : r.local ? w2t : x2t)(r, e)); } function Zie(t) { return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView; } -function S2t(t) { +function T2t(t) { return function() { this.style.removeProperty(t); }; } -function T2t(t, e, r) { +function C2t(t, e, r) { return function() { this.style.setProperty(t, e, r); }; } -function C2t(t, e, r) { +function E2t(t, e, r) { return function() { var n = e.apply(this, arguments); n == null ? this.style.removeProperty(t) : this.style.setProperty(t, n, r); }; } -function E2t(t, e, r) { - return arguments.length > 1 ? this.each((e == null ? S2t : typeof e == "function" ? C2t : T2t)(t, e, r == null ? "" : r)) : Hg(this.node(), t); +function _2t(t, e, r) { + return arguments.length > 1 ? this.each((e == null ? T2t : typeof e == "function" ? E2t : C2t)(t, e, r == null ? "" : r)) : Hg(this.node(), t); } function Hg(t, e) { return t.style.getPropertyValue(e) || Zie(t).getComputedStyle(t, null).getPropertyValue(e); } -function _2t(t) { +function A2t(t) { return function() { delete this[t]; }; } -function A2t(t, e) { +function L2t(t, e) { return function() { this[t] = e; }; } -function L2t(t, e) { +function R2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? delete this[t] : this[t] = r; }; } -function R2t(t, e) { - return arguments.length > 1 ? this.each((e == null ? _2t : typeof e == "function" ? L2t : A2t)(t, e)) : this.node()[t]; +function M2t(t, e) { + return arguments.length > 1 ? this.each((e == null ? A2t : typeof e == "function" ? R2t : L2t)(t, e)) : this.node()[t]; } function jie(t) { return t.trim().split(/^|\s+/); @@ -37006,22 +37017,22 @@ function ese(t, e) { for (var r = ID(t), n = -1, i = e.length; ++n < i; ) r.remove(e[n]); } -function M2t(t) { +function D2t(t) { return function() { Jie(this, t); }; } -function D2t(t) { +function N2t(t) { return function() { ese(this, t); }; } -function N2t(t, e) { +function I2t(t, e) { return function() { (e.apply(this, arguments) ? Jie : ese)(this, t); }; } -function I2t(t, e) { +function P2t(t, e) { var r = jie(t + ""); if (arguments.length < 2) { for (var n = ID(this.node()), i = -1, s = r.length; ++i < s; ) @@ -37029,102 +37040,102 @@ function I2t(t, e) { return !1; return !0; } - return this.each((typeof e == "function" ? N2t : e ? M2t : D2t)(r, e)); + return this.each((typeof e == "function" ? I2t : e ? D2t : N2t)(r, e)); } -function P2t() { +function $2t() { this.textContent = ""; } -function $2t(t) { +function B2t(t) { return function() { this.textContent = t; }; } -function B2t(t) { +function F2t(t) { return function() { var e = t.apply(this, arguments); this.textContent = e == null ? "" : e; }; } -function F2t(t) { - return arguments.length ? this.each(t == null ? P2t : (typeof t == "function" ? B2t : $2t)(t)) : this.node().textContent; +function z2t(t) { + return arguments.length ? this.each(t == null ? $2t : (typeof t == "function" ? F2t : B2t)(t)) : this.node().textContent; } -function z2t() { +function V2t() { this.innerHTML = ""; } -function V2t(t) { +function U2t(t) { return function() { this.innerHTML = t; }; } -function U2t(t) { +function q2t(t) { return function() { var e = t.apply(this, arguments); this.innerHTML = e == null ? "" : e; }; } -function q2t(t) { - return arguments.length ? this.each(t == null ? z2t : (typeof t == "function" ? U2t : V2t)(t)) : this.node().innerHTML; -} -function Y2t() { - this.nextSibling && this.parentNode.appendChild(this); +function Y2t(t) { + return arguments.length ? this.each(t == null ? V2t : (typeof t == "function" ? q2t : U2t)(t)) : this.node().innerHTML; } function Q2t() { - return this.each(Y2t); + this.nextSibling && this.parentNode.appendChild(this); } function W2t() { - this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); + return this.each(Q2t); } function G2t() { - return this.each(W2t); + this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); +} +function H2t() { + return this.each(G2t); } -function H2t(t) { +function X2t(t) { var e = typeof t == "function" ? t : Qie(t); return this.select(function() { return this.appendChild(e.apply(this, arguments)); }); } -function X2t() { +function Z2t() { return null; } -function Z2t(t, e) { - var r = typeof t == "function" ? t : Qie(t), n = e == null ? X2t : typeof e == "function" ? e : ND(e); +function j2t(t, e) { + var r = typeof t == "function" ? t : Qie(t), n = e == null ? Z2t : typeof e == "function" ? e : ND(e); return this.select(function() { return this.insertBefore(r.apply(this, arguments), n.apply(this, arguments) || null); }); } -function j2t() { +function K2t() { var t = this.parentNode; t && t.removeChild(this); } -function K2t() { - return this.each(j2t); -} function J2t() { + return this.each(K2t); +} +function ebt() { var t = this.cloneNode(!1), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function ebt() { +function tbt() { var t = this.cloneNode(!0), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function tbt(t) { - return this.select(t ? ebt : J2t); -} function rbt(t) { - return arguments.length ? this.property("__data__", t) : this.node().__data__; + return this.select(t ? tbt : ebt); } function nbt(t) { + return arguments.length ? this.property("__data__", t) : this.node().__data__; +} +function ibt(t) { return function(e) { t.call(this, e, this.__data__); }; } -function ibt(t) { +function sbt(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 sbt(t) { +function abt(t) { return function() { var e = this.__on; if (!!e) { @@ -37134,9 +37145,9 @@ function sbt(t) { } }; } -function abt(t, e, r) { +function obt(t, e, r) { return function() { - var n = this.__on, i, s = nbt(e); + var n = this.__on, i, s = ibt(e); if (n) { for (var a = 0, o = n.length; a < o; ++a) if ((i = n[a]).type === t.type && i.name === t.name) { @@ -37147,8 +37158,8 @@ function abt(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 obt(t, e, r) { - var n = ibt(t + ""), i, s = n.length, a; +function lbt(t, e, r) { + var n = sbt(t + ""), i, s = n.length, a; if (arguments.length < 2) { var o = this.node().__on; if (o) { @@ -37159,7 +37170,7 @@ function obt(t, e, r) { } return; } - for (o = e ? abt : sbt, i = 0; i < s; ++i) + for (o = e ? obt : abt, i = 0; i < s; ++i) this.each(o(n[i], e, r)); return this; } @@ -37167,20 +37178,20 @@ function tse(t, e, r) { var n = Zie(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 lbt(t, e) { +function cbt(t, e) { return function() { return tse(this, t, e); }; } -function cbt(t, e) { +function ubt(t, e) { return function() { return tse(this, t, e.apply(this, arguments)); }; } -function ubt(t, e) { - return this.each((typeof e == "function" ? cbt : lbt)(t, e)); +function hbt(t, e) { + return this.each((typeof e == "function" ? ubt : cbt)(t, e)); } -function* hbt() { +function* fbt() { 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); @@ -37192,46 +37203,46 @@ function ho(t, e) { function cx() { return new ho([[document.documentElement]], rse); } -function fbt() { +function dbt() { return this; } ho.prototype = cx.prototype = { constructor: ho, - select: Byt, - selectAll: Uyt, - selectChild: Wyt, - selectChildren: Zyt, - filter: jyt, - data: n2t, - enter: Kyt, - exit: s2t, - join: a2t, - merge: o2t, - selection: fbt, - order: l2t, - sort: c2t, - call: h2t, - nodes: f2t, - node: d2t, - size: p2t, - empty: g2t, - each: m2t, - attr: k2t, - style: E2t, - property: R2t, - classed: I2t, - text: F2t, - html: q2t, - raise: Q2t, - lower: G2t, - append: H2t, - insert: Z2t, - remove: K2t, - clone: tbt, - datum: rbt, - on: obt, - dispatch: ubt, - [Symbol.iterator]: hbt + select: Fyt, + selectAll: qyt, + selectChild: Gyt, + selectChildren: jyt, + filter: Kyt, + data: i2t, + enter: Jyt, + exit: a2t, + join: o2t, + merge: l2t, + selection: dbt, + order: c2t, + sort: u2t, + call: f2t, + nodes: d2t, + node: p2t, + size: g2t, + empty: m2t, + each: v2t, + attr: S2t, + style: _2t, + property: M2t, + classed: P2t, + text: z2t, + html: Y2t, + raise: W2t, + lower: H2t, + append: X2t, + insert: j2t, + remove: J2t, + clone: rbt, + datum: nbt, + on: lbt, + dispatch: hbt, + [Symbol.iterator]: fbt }; function et(t) { return typeof t == "string" ? new ho([[document.querySelector(t)]], [document.documentElement]) : new ho([[t]], rse); @@ -37247,7 +37258,7 @@ function _T(t, e) { } function U0() { } -var o2 = 0.7, O3 = 1 / o2, ng = "\\s*([+-]?\\d+)\\s*", l2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mc = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", dbt = /^#([0-9a-f]{3,8})$/, pbt = new RegExp(`^rgb\\(${ng},${ng},${ng}\\)$`), gbt = new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`), mbt = new RegExp(`^rgba\\(${ng},${ng},${ng},${l2}\\)$`), vbt = new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${l2}\\)$`), ybt = new RegExp(`^hsl\\(${l2},${Mc},${Mc}\\)$`), bbt = new RegExp(`^hsla\\(${l2},${Mc},${Mc},${l2}\\)$`), FU = { +var o2 = 0.7, O3 = 1 / o2, ng = "\\s*([+-]?\\d+)\\s*", l2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mc = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", pbt = /^#([0-9a-f]{3,8})$/, gbt = new RegExp(`^rgb\\(${ng},${ng},${ng}\\)$`), mbt = new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`), vbt = new RegExp(`^rgba\\(${ng},${ng},${ng},${l2}\\)$`), ybt = new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${l2}\\)$`), bbt = new RegExp(`^hsl\\(${l2},${Mc},${Mc}\\)$`), xbt = new RegExp(`^hsla\\(${l2},${Mc},${Mc},${l2}\\)$`), FU = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -37406,18 +37417,18 @@ ux(U0, s0, { }, hex: zU, formatHex: zU, - formatHex8: xbt, - formatHsl: wbt, + formatHex8: wbt, + formatHsl: Obt, formatRgb: VU, toString: VU }); function zU() { return this.rgb().formatHex(); } -function xbt() { +function wbt() { return this.rgb().formatHex8(); } -function wbt() { +function Obt() { return ise(this).formatHsl(); } function VU() { @@ -37425,7 +37436,7 @@ function VU() { } function s0(t) { var e, r; - return t = (t + "").trim().toLowerCase(), (e = dbt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? UU(e) : r === 3 ? new Is(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? Xw(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? Xw(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 = pbt.exec(t)) ? new Is(e[1], e[2], e[3], 1) : (e = gbt.exec(t)) ? new Is(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = mbt.exec(t)) ? Xw(e[1], e[2], e[3], e[4]) : (e = vbt.exec(t)) ? Xw(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = ybt.exec(t)) ? QU(e[1], e[2] / 100, e[3] / 100, 1) : (e = bbt.exec(t)) ? QU(e[1], e[2] / 100, e[3] / 100, e[4]) : FU.hasOwnProperty(t) ? UU(FU[t]) : t === "transparent" ? new Is(NaN, NaN, NaN, 0) : null; + return t = (t + "").trim().toLowerCase(), (e = pbt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? UU(e) : r === 3 ? new Is(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? Xw(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? Xw(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 = gbt.exec(t)) ? new Is(e[1], e[2], e[3], 1) : (e = mbt.exec(t)) ? new Is(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = vbt.exec(t)) ? Xw(e[1], e[2], e[3], e[4]) : (e = ybt.exec(t)) ? Xw(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = bbt.exec(t)) ? QU(e[1], e[2] / 100, e[3] / 100, 1) : (e = xbt.exec(t)) ? QU(e[1], e[2] / 100, e[3] / 100, e[4]) : FU.hasOwnProperty(t) ? UU(FU[t]) : t === "transparent" ? new Is(NaN, NaN, NaN, 0) : null; } function UU(t) { return new Is(t >> 16 & 255, t >> 8 & 255, t & 255, 1); @@ -37460,14 +37471,14 @@ ux(Is, M8, _T(U0, { }, hex: qU, formatHex: qU, - formatHex8: Obt, + formatHex8: kbt, formatRgb: YU, toString: YU })); function qU() { return `#${Md(this.r)}${Md(this.g)}${Md(this.b)}`; } -function Obt() { +function kbt() { return `#${Md(this.r)}${Md(this.g)}${Md(this.b)}${Md((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function YU() { @@ -37497,13 +37508,13 @@ function ise(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 kbt(t, e, r, n) { +function Sbt(t, e, r, n) { return arguments.length === 1 ? ise(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; } -ux(vl, kbt, _T(U0, { +ux(vl, Sbt, _T(U0, { brighter(t) { return t = t == null ? O3 : Math.pow(O3, t), new vl(this.h, this.s, this.l * t, this.opacity); }, @@ -37539,7 +37550,7 @@ function Zw(t) { function U6(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 Sbt = Math.PI / 180, Tbt = 180 / Math.PI, S3 = 18, sse = 0.96422, ase = 1, ose = 0.82521, lse = 4 / 29, ig = 6 / 29, cse = 3 * ig * ig, Cbt = ig * ig * ig; +const Tbt = Math.PI / 180, Cbt = 180 / Math.PI, S3 = 18, sse = 0.96422, ase = 1, ose = 0.82521, lse = 4 / 29, ig = 6 / 29, cse = 3 * ig * ig, Ebt = ig * ig * ig; function use(t) { if (t instanceof Dc) return new Dc(t.l, t.a, t.b, t.opacity); @@ -37549,13 +37560,13 @@ function use(t) { var e = W6(t.r), r = W6(t.g), n = W6(t.b), i = q6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / ase), s, a; return e === r && r === n ? s = a = i : (s = q6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / sse), a = q6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / ose)), new Dc(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); } -function Ebt(t, e, r, n) { +function _bt(t, e, r, n) { return arguments.length === 1 ? use(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; } -ux(Dc, Ebt, _T(U0, { +ux(Dc, _bt, _T(U0, { brighter(t) { return new Dc(this.l + S3 * (t == null ? 1 : t), this.a, this.b, this.opacity); }, @@ -37573,7 +37584,7 @@ ux(Dc, Ebt, _T(U0, { } })); function q6(t) { - return t > Cbt ? Math.pow(t, 1 / 3) : t / cse + lse; + return t > Ebt ? Math.pow(t, 1 / 3) : t / cse + lse; } function Y6(t) { return t > ig ? t * t * t : cse * (t - lse); @@ -37584,16 +37595,16 @@ function Q6(t) { function W6(t) { return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4); } -function _bt(t) { +function Abt(t) { if (t instanceof xu) return new xu(t.h, t.c, t.l, t.opacity); if (t instanceof Dc || (t = use(t)), t.a === 0 && t.b === 0) return new xu(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); - var e = Math.atan2(t.b, t.a) * Tbt; + var e = Math.atan2(t.b, t.a) * Cbt; return new xu(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity); } function D8(t, e, r, n) { - return arguments.length === 1 ? _bt(t) : new xu(t, e, r, n == null ? 1 : n); + return arguments.length === 1 ? Abt(t) : new xu(t, e, r, n == null ? 1 : n); } function xu(t, e, r, n) { this.h = +t, this.c = +e, this.l = +r, this.opacity = +n; @@ -37601,7 +37612,7 @@ function xu(t, e, r, n) { function hse(t) { if (isNaN(t.h)) return new Dc(t.l, 0, 0, t.opacity); - var e = t.h * Sbt; + var e = t.h * Tbt; return new Dc(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity); } ux(xu, D8, _T(U0, { @@ -37621,18 +37632,18 @@ function fse(t, e) { return t + r * e; }; } -function Abt(t, e, r) { +function Lbt(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 Lbt(t, e) { +function Rbt(t, e) { var r = e - t; return r ? fse(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : AT(isNaN(t) ? e : t); } -function Rbt(t) { +function Mbt(t) { return (t = +t) == 1 ? ay : function(e, r) { - return r - e ? Abt(e, r, t) : AT(isNaN(e) ? r : e); + return r - e ? Lbt(e, r, t) : AT(isNaN(e) ? r : e); }; } function ay(t, e) { @@ -37640,7 +37651,7 @@ function ay(t, e) { return r ? fse(t, r) : AT(isNaN(t) ? e : t); } const T3 = function t(e) { - var r = Rbt(e); + var r = Mbt(e); function n(i, s) { var a = r((i = M8(i)).r, (s = M8(s)).r), o = r(i.g, s.g), l = r(i.b, s.b), u = ay(i.opacity, s.opacity); return function(h) { @@ -37649,7 +37660,7 @@ const T3 = function t(e) { } return n.gamma = t, n; }(1); -function Mbt(t, e) { +function Dbt(t, e) { e || (e = []); var r = t ? Math.min(e.length, t.length) : 0, n = e.slice(), i; return function(s) { @@ -37658,10 +37669,10 @@ function Mbt(t, e) { return n; }; } -function Dbt(t) { +function Nbt(t) { return ArrayBuffer.isView(t) && !(t instanceof DataView); } -function Nbt(t, e) { +function Ibt(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] = PD(t[a], e[a]); @@ -37673,7 +37684,7 @@ function Nbt(t, e) { return s; }; } -function Ibt(t, e) { +function Pbt(t, e) { var r = new Date(); return t = +t, e = +e, function(n) { return r.setTime(t * (1 - n) + e * n), r; @@ -37684,7 +37695,7 @@ function gl(t, e) { return t * (1 - r) + e * r; }; } -function Pbt(t, e) { +function $bt(t, e) { var r = {}, n = {}, i; (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {}); for (i in e) @@ -37696,12 +37707,12 @@ function Pbt(t, e) { }; } var N8 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, G6 = new RegExp(N8.source, "g"); -function $bt(t) { +function Bbt(t) { return function() { return t; }; } -function Bbt(t) { +function Fbt(t) { return function(e) { return t(e) + ""; }; @@ -37710,7 +37721,7 @@ function dse(t, e) { var r = N8.lastIndex = G6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; for (t = t + "", e = e + ""; (n = N8.exec(t)) && (i = G6.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 = G6.lastIndex; - return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? Bbt(l[0].x) : $bt(e) : (e = l.length, function(u) { + return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? Fbt(l[0].x) : Bbt(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(""); @@ -37718,9 +37729,9 @@ function dse(t, e) { } function PD(t, e) { var r = typeof e, n; - return e == null || r === "boolean" ? AT(e) : (r === "number" ? gl : r === "string" ? (n = s0(e)) ? (e = n, T3) : dse : e instanceof s0 ? T3 : e instanceof Date ? Ibt : Dbt(e) ? Mbt : Array.isArray(e) ? Nbt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Pbt : gl)(t, e); + return e == null || r === "boolean" ? AT(e) : (r === "number" ? gl : r === "string" ? (n = s0(e)) ? (e = n, T3) : dse : e instanceof s0 ? T3 : e instanceof Date ? Pbt : Nbt(e) ? Dbt : Array.isArray(e) ? Ibt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? $bt : gl)(t, e); } -function Fbt(t, e) { +function zbt(t, e) { return t = +t, e = +e, function(r) { return Math.round(t * (1 - r) + e * r); }; @@ -37745,11 +37756,11 @@ function pse(t, e, r, n, i, s) { }; } var jw; -function zbt(t) { +function Vbt(t) { const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + ""); return e.isIdentity ? I8 : pse(e.a, e.b, e.c, e.d, e.e, e.f); } -function Vbt(t) { +function Ubt(t) { return t == null || (jw || (jw = document.createElementNS("http://www.w3.org/2000/svg", "g")), jw.setAttribute("transform", t), !(t = jw.transform.baseVal.consolidate())) ? I8 : (t = t.matrix, pse(t.a, t.b, t.c, t.d, t.e, t.f)); } function gse(t, e, r, n) { @@ -37785,8 +37796,8 @@ function gse(t, e, r, n) { }; }; } -var Ubt = gse(zbt, "px, ", "px)", "deg)"), qbt = gse(Vbt, ", ", ")", ")"); -function Ybt(t) { +var qbt = gse(Vbt, "px, ", "px)", "deg)"), Ybt = gse(Ubt, ", ", ")", ")"); +function Qbt(t) { return function(e, r) { var n = t((e = D8(e)).h, (r = D8(r)).h), i = ay(e.c, r.c), s = ay(e.l, r.l), a = ay(e.opacity, r.opacity); return function(o) { @@ -37794,14 +37805,14 @@ function Ybt(t) { }; }; } -const Qbt = Ybt(Lbt); +const Wbt = Qbt(Rbt); var Xg = 0, wv = 0, Ym = 0, mse = 1e3, C3, Ov, E3 = 0, a0 = 0, LT = 0, c2 = typeof performance == "object" && performance.now ? performance : Date, vse = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { setTimeout(t, 17); }; function $D() { - return a0 || (vse(Wbt), a0 = c2.now() + LT); + return a0 || (vse(Gbt), a0 = c2.now() + LT); } -function Wbt() { +function Gbt() { a0 = 0; } function _3() { @@ -37822,7 +37833,7 @@ function yse(t, e, r) { var n = new _3(); return n.restart(t, e, r), n; } -function Gbt() { +function Hbt() { $D(), ++Xg; for (var t = C3, e; t; ) (e = a0 - t._time) >= 0 && t._call.call(void 0, e), t = t._next; @@ -37831,16 +37842,16 @@ function Gbt() { function HU() { a0 = (E3 = c2.now()) + LT, Xg = wv = 0; try { - Gbt(); + Hbt(); } finally { - Xg = 0, Xbt(), a0 = 0; + Xg = 0, Zbt(), a0 = 0; } } -function Hbt() { +function Xbt() { var t = c2.now(), e = t - E3; e > mse && (LT -= e, E3 = t); } -function Xbt() { +function Zbt() { for (var t, e = C3, 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 : C3 = r); Ov = t, P8(n); @@ -37849,7 +37860,7 @@ function P8(t) { if (!Xg) { wv && (wv = clearTimeout(wv)); var e = t - a0; - e > 24 ? (t < 1 / 0 && (wv = setTimeout(HU, t - c2.now() - LT)), Ym && (Ym = clearInterval(Ym))) : (Ym || (E3 = c2.now(), Ym = setInterval(Hbt, mse)), Xg = 1, vse(HU)); + e > 24 ? (t < 1 / 0 && (wv = setTimeout(HU, t - c2.now() - LT)), Ym && (Ym = clearInterval(Ym))) : (Ym || (E3 = c2.now(), Ym = setInterval(Xbt, mse)), Xg = 1, vse(HU)); } } function XU(t, e, r) { @@ -37858,19 +37869,19 @@ function XU(t, e, r) { n.stop(), t(i + e); }, e, r), n; } -var Zbt = Yie("start", "end", "cancel", "interrupt"), jbt = [], bse = 0, ZU = 1, $8 = 2, D4 = 3, jU = 4, B8 = 5, N4 = 6; +var jbt = Yie("start", "end", "cancel", "interrupt"), Kbt = [], bse = 0, ZU = 1, $8 = 2, D4 = 3, jU = 4, B8 = 5, N4 = 6; function RT(t, e, r, n, i, s) { var a = t.__transition; if (!a) t.__transition = {}; else if (r in a) return; - Kbt(t, r, { + Jbt(t, r, { name: e, index: n, group: i, - on: Zbt, - tween: jbt, + on: jbt, + tween: Kbt, time: s.time, delay: s.delay, duration: s.duration, @@ -37897,7 +37908,7 @@ function Wl(t, e) { throw new Error("transition not found"); return r; } -function Kbt(t, e, r) { +function Jbt(t, e, r) { var n = t.__transition, i; n[e] = r, r.timer = yse(s, 0, r.time); function s(u) { @@ -37933,7 +37944,7 @@ function Kbt(t, e, r) { delete t.__transition; } } -function Jbt(t, e) { +function ext(t, e) { var r = t.__transition, n, i, s = !0, a; if (!!r) { e = e == null ? null : e + ""; @@ -37947,12 +37958,12 @@ function Jbt(t, e) { s && delete t.__transition; } } -function ext(t) { +function txt(t) { return this.each(function() { - Jbt(this, t); + ext(this, t); }); } -function txt(t, e) { +function rxt(t, e) { var r, n; return function() { var i = Zc(this, t), s = i.tween; @@ -37967,7 +37978,7 @@ function txt(t, e) { i.tween = n; }; } -function rxt(t, e, r) { +function nxt(t, e, r) { var n, i; if (typeof r != "function") throw new Error(); @@ -37985,7 +37996,7 @@ function rxt(t, e, r) { s.tween = i; }; } -function nxt(t, e) { +function ixt(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) @@ -37993,7 +38004,7 @@ function nxt(t, e) { return a.value; return null; } - return this.each((e == null ? txt : rxt)(r, t, e)); + return this.each((e == null ? rxt : nxt)(r, t, e)); } function FD(t, e, r) { var n = t._id; @@ -38008,75 +38019,75 @@ function xse(t, e) { var r; return (typeof e == "number" ? gl : e instanceof s0 ? T3 : (r = s0(e)) ? (e = r, T3) : dse)(t, e); } -function ixt(t) { +function sxt(t) { return function() { this.removeAttribute(t); }; } -function sxt(t) { +function axt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function axt(t, e, r) { +function oxt(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 oxt(t, e, r) { +function lxt(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 lxt(t, e, r) { +function cxt(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 cxt(t, e, r) { +function uxt(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 uxt(t, e) { - var r = ET(t), n = r === "transform" ? qbt : xse; - return this.attrTween(t, typeof e == "function" ? (r.local ? cxt : lxt)(r, n, FD(this, "attr." + t, e)) : e == null ? (r.local ? sxt : ixt)(r) : (r.local ? oxt : axt)(r, n, e)); -} function hxt(t, e) { + var r = ET(t), n = r === "transform" ? Ybt : xse; + return this.attrTween(t, typeof e == "function" ? (r.local ? uxt : cxt)(r, n, FD(this, "attr." + t, e)) : e == null ? (r.local ? axt : sxt)(r) : (r.local ? lxt : oxt)(r, n, e)); +} +function fxt(t, e) { return function(r) { this.setAttribute(t, e.call(this, r)); }; } -function fxt(t, e) { +function dxt(t, e) { return function(r) { this.setAttributeNS(t.space, t.local, e.call(this, r)); }; } -function dxt(t, e) { +function pxt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && fxt(t, s)), r; + return s !== n && (r = (n = s) && dxt(t, s)), r; } return i._value = e, i; } -function pxt(t, e) { +function gxt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && hxt(t, s)), r; + return s !== n && (r = (n = s) && fxt(t, s)), r; } return i._value = e, i; } -function gxt(t, e) { +function mxt(t, e) { var r = "attr." + t; if (arguments.length < 2) return (r = this.tween(r)) && r._value; @@ -38085,48 +38096,48 @@ function gxt(t, e) { if (typeof e != "function") throw new Error(); var n = ET(t); - return this.tween(r, (n.local ? dxt : pxt)(n, e)); + return this.tween(r, (n.local ? pxt : gxt)(n, e)); } -function mxt(t, e) { +function vxt(t, e) { return function() { BD(this, t).delay = +e.apply(this, arguments); }; } -function vxt(t, e) { +function yxt(t, e) { return e = +e, function() { BD(this, t).delay = e; }; } -function yxt(t) { +function bxt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? mxt : vxt)(e, t)) : Wl(this.node(), e).delay; + return arguments.length ? this.each((typeof t == "function" ? vxt : yxt)(e, t)) : Wl(this.node(), e).delay; } -function bxt(t, e) { +function xxt(t, e) { return function() { Zc(this, t).duration = +e.apply(this, arguments); }; } -function xxt(t, e) { +function wxt(t, e) { return e = +e, function() { Zc(this, t).duration = e; }; } -function wxt(t) { +function Oxt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? bxt : xxt)(e, t)) : Wl(this.node(), e).duration; + return arguments.length ? this.each((typeof t == "function" ? xxt : wxt)(e, t)) : Wl(this.node(), e).duration; } -function Oxt(t, e) { +function kxt(t, e) { if (typeof e != "function") throw new Error(); return function() { Zc(this, t).ease = e; }; } -function kxt(t) { +function Sxt(t) { var e = this._id; - return arguments.length ? this.each(Oxt(e, t)) : Wl(this.node(), e).ease; + return arguments.length ? this.each(kxt(e, t)) : Wl(this.node(), e).ease; } -function Sxt(t, e) { +function Txt(t, e) { return function() { var r = e.apply(this, arguments); if (typeof r != "function") @@ -38134,19 +38145,19 @@ function Sxt(t, e) { Zc(this, t).ease = r; }; } -function Txt(t) { +function Cxt(t) { if (typeof t != "function") throw new Error(); - return this.each(Sxt(this._id, t)); + return this.each(Txt(this._id, t)); } -function Cxt(t) { +function Ext(t) { typeof t != "function" && (t = Gie(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 Ext(t) { +function _xt(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) @@ -38156,24 +38167,24 @@ function Ext(t) { a[o] = e[o]; return new Uu(a, this._parents, this._name, this._id); } -function _xt(t) { +function Axt(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 Axt(t, e, r) { - var n, i, s = _xt(e) ? BD : Zc; +function Lxt(t, e, r) { + var n, i, s = Axt(e) ? BD : Zc; return function() { var a = s(this, t), o = a.on; o !== n && (i = (n = o).copy()).on(e, r), a.on = i; }; } -function Lxt(t, e) { +function Rxt(t, e) { var r = this._id; - return arguments.length < 2 ? Wl(this.node(), r).on.on(t) : this.each(Axt(r, t, e)); + return arguments.length < 2 ? Wl(this.node(), r).on.on(t) : this.each(Lxt(r, t, e)); } -function Rxt(t) { +function Mxt(t) { return function() { var e = this.parentNode; for (var r in this.__transition) @@ -38182,10 +38193,10 @@ function Rxt(t) { e && e.removeChild(this); }; } -function Mxt() { - return this.on("end.remove", Rxt(this._id)); +function Dxt() { + return this.on("end.remove", Mxt(this._id)); } -function Dxt(t) { +function Nxt(t) { var e = this._name, r = this._id; typeof t != "function" && (t = ND(t)); for (var n = this._groups, i = n.length, s = new Array(i), a = 0; a < i; ++a) @@ -38193,7 +38204,7 @@ function Dxt(t) { (h = o[d]) && (f = t.call(h, h.__data__, d, o)) && ("__data__" in h && (f.__data__ = h.__data__), u[d] = f, RT(u[d], e, r, d, u, Wl(h, r))); return new Uu(s, this._parents, e, r); } -function Nxt(t) { +function Ixt(t) { var e = this._name, r = this._id; typeof t != "function" && (t = Wie(t)); for (var n = this._groups, i = n.length, s = [], a = [], o = 0; o < i; ++o) @@ -38205,11 +38216,11 @@ function Nxt(t) { } return new Uu(s, a, e, r); } -var Ixt = cx.prototype.constructor; -function Pxt() { - return new Ixt(this._groups, this._parents); +var Pxt = cx.prototype.constructor; +function $xt() { + return new Pxt(this._groups, this._parents); } -function $xt(t, e) { +function Bxt(t, e) { var r, n, i; return function() { var s = Hg(this, t), a = (this.style.removeProperty(t), Hg(this, t)); @@ -38221,45 +38232,45 @@ function wse(t) { this.style.removeProperty(t); }; } -function Bxt(t, e, r) { +function Fxt(t, e, r) { var n, i = r + "", s; return function() { var a = Hg(this, t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function Fxt(t, e, r) { +function zxt(t, e, r) { var n, i, s; return function() { var a = Hg(this, t), o = r(this), l = o + ""; return o == null && (l = o = (this.style.removeProperty(t), Hg(this, t))), a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o)); }; } -function zxt(t, e) { +function Vxt(t, e) { var r, n, i, s = "style." + e, a = "end." + s, o; return function() { var l = Zc(this, t), u = l.on, h = l.value[s] == null ? o || (o = wse(e)) : void 0; (u !== r || i !== h) && (n = (r = u).copy()).on(a, i = h), l.on = n; }; } -function Vxt(t, e, r) { - var n = (t += "") == "transform" ? Ubt : xse; - return e == null ? this.styleTween(t, $xt(t, n)).on("end.style." + t, wse(t)) : typeof e == "function" ? this.styleTween(t, Fxt(t, n, FD(this, "style." + t, e))).each(zxt(this._id, t)) : this.styleTween(t, Bxt(t, n, e), r).on("end.style." + t, null); -} function Uxt(t, e, r) { + var n = (t += "") == "transform" ? qbt : xse; + return e == null ? this.styleTween(t, Bxt(t, n)).on("end.style." + t, wse(t)) : typeof e == "function" ? this.styleTween(t, zxt(t, n, FD(this, "style." + t, e))).each(Vxt(this._id, t)) : this.styleTween(t, Fxt(t, n, e), r).on("end.style." + t, null); +} +function qxt(t, e, r) { return function(n) { this.style.setProperty(t, e.call(this, n), r); }; } -function qxt(t, e, r) { +function Yxt(t, e, r) { var n, i; function s() { var a = e.apply(this, arguments); - return a !== i && (n = (i = a) && Uxt(t, a, r)), n; + return a !== i && (n = (i = a) && qxt(t, a, r)), n; } return s._value = e, s; } -function Yxt(t, e, r) { +function Qxt(t, e, r) { var n = "style." + (t += ""); if (arguments.length < 2) return (n = this.tween(n)) && n._value; @@ -38267,36 +38278,36 @@ function Yxt(t, e, r) { return this.tween(n, null); if (typeof e != "function") throw new Error(); - return this.tween(n, qxt(t, e, r == null ? "" : r)); + return this.tween(n, Yxt(t, e, r == null ? "" : r)); } -function Qxt(t) { +function Wxt(t) { return function() { this.textContent = t; }; } -function Wxt(t) { +function Gxt(t) { return function() { var e = t(this); this.textContent = e == null ? "" : e; }; } -function Gxt(t) { - return this.tween("text", typeof t == "function" ? Wxt(FD(this, "text", t)) : Qxt(t == null ? "" : t + "")); -} function Hxt(t) { + return this.tween("text", typeof t == "function" ? Gxt(FD(this, "text", t)) : Wxt(t == null ? "" : t + "")); +} +function Xxt(t) { return function(e) { this.textContent = t.call(this, e); }; } -function Xxt(t) { +function Zxt(t) { var e, r; function n() { var i = t.apply(this, arguments); - return i !== r && (e = (r = i) && Hxt(i)), e; + return i !== r && (e = (r = i) && Xxt(i)), e; } return n._value = t, n; } -function Zxt(t) { +function jxt(t) { var e = "text"; if (arguments.length < 1) return (e = this.tween(e)) && e._value; @@ -38304,9 +38315,9 @@ function Zxt(t) { return this.tween(e, null); if (typeof t != "function") throw new Error(); - return this.tween(e, Xxt(t)); + return this.tween(e, Zxt(t)); } -function jxt() { +function Kxt() { for (var t = this._name, e = this._id, r = Ose(), 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]) { @@ -38320,7 +38331,7 @@ function jxt() { } return new Uu(n, this._parents, t, r); } -function Kxt() { +function Jxt() { var t, e, r = this, n = r._id, i = r.size(); return new Promise(function(s, a) { var o = { value: a }, l = { value: function() { @@ -38332,78 +38343,78 @@ function Kxt() { }), i === 0 && s(); }); } -var Jxt = 0; +var ewt = 0; function Uu(t, e, r, n) { this._groups = t, this._parents = e, this._name = r, this._id = n; } function Ose() { - return ++Jxt; + return ++ewt; } var lu = cx.prototype; Uu.prototype = { constructor: Uu, - select: Dxt, - selectAll: Nxt, + select: Nxt, + selectAll: Ixt, selectChild: lu.selectChild, selectChildren: lu.selectChildren, - filter: Cxt, - merge: Ext, - selection: Pxt, - transition: jxt, + filter: Ext, + merge: _xt, + selection: $xt, + transition: Kxt, call: lu.call, nodes: lu.nodes, node: lu.node, size: lu.size, empty: lu.empty, each: lu.each, - on: Lxt, - attr: uxt, - attrTween: gxt, - style: Vxt, - styleTween: Yxt, - text: Gxt, - textTween: Zxt, - remove: Mxt, - tween: nxt, - delay: yxt, - duration: wxt, - ease: kxt, - easeVarying: Txt, - end: Kxt, + on: Rxt, + attr: hxt, + attrTween: mxt, + style: Uxt, + styleTween: Qxt, + text: Hxt, + textTween: jxt, + remove: Dxt, + tween: ixt, + delay: bxt, + duration: Oxt, + ease: Sxt, + easeVarying: Cxt, + end: Jxt, [Symbol.iterator]: lu[Symbol.iterator] }; -function ewt(t) { +function twt(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } -var twt = { +var rwt = { time: null, delay: 0, duration: 250, - ease: ewt + ease: twt }; -function rwt(t, e) { +function nwt(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 nwt(t) { +function iwt(t) { var e, r; - t instanceof Uu ? (e = t._id, t = t._name) : (e = Ose(), (r = twt).time = $D(), t = t == null ? null : t + ""); + t instanceof Uu ? (e = t._id, t = t._name) : (e = Ose(), (r = rwt).time = $D(), 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]) && RT(l, t, e, u, a, r || rwt(l, e)); + (l = a[u]) && RT(l, t, e, u, a, r || nwt(l, e)); return new Uu(n, this._parents, t, e); } -cx.prototype.interrupt = ext; -cx.prototype.transition = nwt; -const F8 = Math.PI, z8 = 2 * F8, ld = 1e-6, iwt = z8 - ld; +cx.prototype.interrupt = txt; +cx.prototype.transition = iwt; +const F8 = Math.PI, z8 = 2 * F8, ld = 1e-6, swt = z8 - ld; function kse(t) { this._ += t[0]; for (let e = 1, r = t.length; e < r; ++e) this._ += arguments[e] + t[e]; } -function swt(t) { +function awt(t) { let e = Math.floor(t); if (!(e >= 0)) throw new Error(`invalid digits: ${t}`); @@ -38416,9 +38427,9 @@ function swt(t) { this._ += Math.round(arguments[i] * r) / r + n[i]; }; } -class awt { +class owt { constructor(e) { - this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? kse : swt(e); + this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? kse : awt(e); } moveTo(e, r) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}`; @@ -38453,7 +38464,7 @@ class awt { 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) > ld || Math.abs(this._y1 - h) > ld) && this._append`L${u},${h}`, n && (d < 0 && (d = d % z8 + z8), d > iwt ? 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 > ld && this._append`A${n},${n},0,${+(d >= F8)},${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) > ld || Math.abs(this._y1 - h) > ld) && this._append`L${u},${h}`, n && (d < 0 && (d = d % z8 + z8), d > swt ? 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 > ld && this._append`A${n},${n},0,${+(d >= F8)},${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`; @@ -38462,7 +38473,7 @@ class awt { return this._; } } -function owt(t) { +function lwt(t) { return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10); } function A3(t, e) { @@ -38477,23 +38488,23 @@ function A3(t, e) { function Zg(t) { return t = A3(Math.abs(t)), t ? t[1] : NaN; } -function lwt(t, e) { +function cwt(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 cwt(t) { +function uwt(t) { return function(e) { return e.replace(/[0-9]/g, function(r) { return t[+r]; }); }; } -var uwt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; +var hwt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function L3(t) { - if (!(e = uwt.exec(t))) + if (!(e = hwt.exec(t))) throw new Error("invalid format: " + t); var e; return new zD({ @@ -38516,7 +38527,7 @@ function zD(t) { zD.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 hwt(t) { +function fwt(t) { e: for (var e = t.length, r = 1, n = -1, i; r < e; ++r) switch (t[r]) { @@ -38535,7 +38546,7 @@ function hwt(t) { return n > 0 ? t.slice(0, n) + t.slice(i + 1) : t; } var Sse; -function fwt(t, e) { +function dwt(t, e) { var r = A3(t, e); if (!r) return t + ""; @@ -38553,14 +38564,14 @@ const JU = { "%": (t, e) => (t * 100).toFixed(e), b: (t) => Math.round(t).toString(2), c: (t) => t + "", - d: owt, + d: lwt, 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) => KU(t * 100, e), r: KU, - s: fwt, + s: dwt, X: (t) => Math.round(t).toString(16).toUpperCase(), x: (t) => Math.round(t).toString(16) }; @@ -38568,8 +38579,8 @@ function eq(t) { return t; } var tq = Array.prototype.map, rq = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; -function dwt(t) { - var e = t.grouping === void 0 || t.thousands === void 0 ? eq : lwt(tq.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 ? eq : cwt(tq.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 pwt(t) { + var e = t.grouping === void 0 || t.thousands === void 0 ? eq : cwt(tq.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 ? eq : uwt(tq.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 = L3(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; @@ -38583,7 +38594,7 @@ function dwt(t) { else { _ = +_; var I = _ < 0 || 1 / _ < 0; - if (_ = isNaN(_) ? l : L(Math.abs(_), w), O && (_ = hwt(_)), I && +_ == 0 && g !== "+" && (I = !1), A = (I ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + A, $ = (S === "s" ? rq[8 + Sse / 3] : "") + $ + (I && g === "(" ? ")" : ""), E) { + if (_ = isNaN(_) ? l : L(Math.abs(_), w), O && (_ = fwt(_)), I && +_ == 0 && g !== "+" && (I = !1), A = (I ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + A, $ = (S === "s" ? rq[8 + Sse / 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); @@ -38625,21 +38636,21 @@ function dwt(t) { }; } var Kw, Tse, Cse; -pwt({ +gwt({ thousands: ",", grouping: [3], currency: ["$", ""] }); -function pwt(t) { - return Kw = dwt(t), Tse = Kw.format, Cse = Kw.formatPrefix, Kw; -} function gwt(t) { + return Kw = pwt(t), Tse = Kw.format, Cse = Kw.formatPrefix, Kw; +} +function mwt(t) { return Math.max(0, -Zg(Math.abs(t))); } -function mwt(t, e) { +function vwt(t, e) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Zg(e) / 3))) * 3 - Zg(Math.abs(t))); } -function vwt(t, e) { +function ywt(t, e) { return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Zg(e) - Zg(t)) + 1; } function MT(t, e) { @@ -38688,7 +38699,7 @@ function V8() { 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 = kyt(d).map(function(y) { + var v = Syt(d).map(function(y) { return g + s * y; }); return r(p ? v.reverse() : v); @@ -38717,12 +38728,12 @@ function V8() { return V8(e(), [n, i]).round(o).paddingInner(l).paddingOuter(u).align(h); }, MT.apply(f(), arguments); } -function ywt(t) { +function bwt(t) { return function() { return t; }; } -function bwt(t) { +function xwt(t) { return +t; } var iq = [0, 1]; @@ -38732,37 +38743,37 @@ function Pp(t) { function U8(t, e) { return (e -= t = +t) ? function(r) { return (r - t) / e; - } : ywt(isNaN(e) ? NaN : 0.5); + } : bwt(isNaN(e) ? NaN : 0.5); } -function xwt(t, e) { +function wwt(t, e) { var r; return t > e && (r = t, t = e, e = r), function(n) { return Math.max(t, Math.min(e, n)); }; } -function wwt(t, e, r) { +function Owt(t, e, r) { var n = t[0], i = t[1], s = e[0], a = e[1]; return i < n ? (n = U8(i, n), s = r(a, s)) : (n = U8(n, i), s = r(s, a)), function(o) { return s(n(o)); }; } -function Owt(t, e, r) { +function kwt(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] = U8(t[a], t[a + 1]), s[a] = r(e[a], e[a + 1]); return function(o) { - var l = dyt(t, o, 1, n) - 1; + var l = pyt(t, o, 1, n) - 1; return s[l](i[l](o)); }; } function Ese(t, e) { return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()); } -function kwt() { +function Swt() { var t = iq, e = iq, r = PD, n, i, s, a = Pp, o, l, u; function h() { var d = Math.min(t.length, e.length); - return a !== Pp && (a = xwt(t[0], t[d - 1])), o = d > 2 ? Owt : wwt, l = u = null, f; + return a !== Pp && (a = wwt(t[0], t[d - 1])), o = d > 2 ? kwt : Owt, 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))); @@ -38770,11 +38781,11 @@ function kwt() { 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, bwt), h()) : t.slice(); + return arguments.length ? (t = Array.from(d, xwt), 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 = Fbt, h(); + return e = Array.from(d), r = zbt, h(); }, f.clamp = function(d) { return arguments.length ? (a = d ? !0 : Pp, h()) : a !== Pp; }, f.interpolate = function(d) { @@ -38786,39 +38797,39 @@ function kwt() { }; } function _se() { - return kwt()(Pp, Pp); + return Swt()(Pp, Pp); } -function Swt(t, e, r, n) { +function Twt(t, e, r, n) { var i = A8(t, e, r), s; switch (n = L3(n == null ? ",f" : n), n.type) { case "s": { var a = Math.max(Math.abs(t), Math.abs(e)); - return n.precision == null && !isNaN(s = mwt(i, a)) && (n.precision = s), Cse(n, a); + return n.precision == null && !isNaN(s = vwt(i, a)) && (n.precision = s), Cse(n, a); } case "": case "e": case "g": case "p": case "r": { - n.precision == null && !isNaN(s = vwt(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); + n.precision == null && !isNaN(s = ywt(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); break; } case "f": case "%": { - n.precision == null && !isNaN(s = gwt(i)) && (n.precision = s - (n.type === "%") * 2); + n.precision == null && !isNaN(s = mwt(i)) && (n.precision = s - (n.type === "%") * 2); break; } } return Tse(n); } -function Twt(t) { +function Cwt(t) { var e = t.domain; return t.ticks = function(r) { var n = e(); - return xyt(n[0], n[n.length - 1], r == null ? 10 : r); + return wyt(n[0], n[n.length - 1], r == null ? 10 : r); }, t.tickFormat = function(r, n) { var i = e(); - return Swt(i[0], i[i.length - 1], r == null ? 10 : r, n); + return Twt(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; @@ -38840,9 +38851,9 @@ function jg() { var t = _se(); return t.copy = function() { return Ese(t, jg()); - }, MT.apply(t, arguments), Twt(t); + }, MT.apply(t, arguments), Cwt(t); } -function Cwt(t, e) { +function Ewt(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; @@ -38961,14 +38972,14 @@ function Y0(t) { e.setUTCDate(e.getUTCDate() + r * 7); }, (e, r) => (r - e) / VD); } -const qD = Y0(0), R3 = Y0(1), Ewt = Y0(2), _wt = Y0(3), Jg = Y0(4), Awt = Y0(5), Lwt = Y0(6); +const qD = Y0(0), R3 = Y0(1), _wt = Y0(2), Awt = Y0(3), Jg = Y0(4), Lwt = Y0(5), Rwt = Y0(6); qD.range; R3.range; -Ewt.range; _wt.range; -Jg.range; Awt.range; +Jg.range; Lwt.range; +Rwt.range; const d2 = Pi((t) => { t.setDate(1), t.setHours(0, 0, 0, 0); }, (t, e) => { @@ -39042,7 +39053,7 @@ function $se(t, e, r, n, i, s) { return [o, l]; } $se(vf, Pse, qD, Rse, Lse, Ase); -const [Rwt, Mwt] = $se(Yu, d2, hx, o0, h2, u2); +const [Mwt, Dwt] = $se(Yu, d2, hx, o0, h2, u2); function j6(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); @@ -39060,7 +39071,7 @@ function K6(t) { function Qm(t, e, r) { return { y: t, m: e, d: r, H: 0, M: 0, S: 0, L: 0 }; } -function Dwt(t) { +function Nwt(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 = Wm(i), h = Gm(i), f = Wm(s), d = Gm(s), p = Wm(a), g = Gm(a), m = Wm(o), v = Gm(o), y = Wm(l), b = Gm(l), w = { a: I, A: D, @@ -39069,30 +39080,30 @@ function Dwt(t) { c: null, d: hq, e: hq, - f: rOt, - g: fOt, - G: pOt, - H: Jwt, - I: eOt, - j: tOt, + f: nOt, + g: dOt, + G: gOt, + H: eOt, + I: tOt, + j: rOt, L: Bse, - m: nOt, - M: iOt, + m: iOt, + M: sOt, p: B, q: V, Q: pq, s: gq, - S: sOt, - u: aOt, - U: oOt, - V: lOt, - w: cOt, - W: uOt, + S: aOt, + u: oOt, + U: lOt, + V: cOt, + w: uOt, + W: hOt, x: null, X: null, - y: hOt, - Y: dOt, - Z: gOt, + y: fOt, + Y: pOt, + Z: mOt, "%": dq }, O = { a: Y, @@ -39102,30 +39113,30 @@ function Dwt(t) { c: null, d: fq, e: fq, - f: bOt, - g: AOt, - G: ROt, - H: mOt, - I: vOt, - j: yOt, + f: xOt, + g: LOt, + G: MOt, + H: vOt, + I: yOt, + j: bOt, L: zse, - m: xOt, - M: wOt, + m: wOt, + M: OOt, p: ne, q: ie, Q: pq, s: gq, - S: OOt, - u: kOt, - U: SOt, - V: TOt, - w: COt, - W: EOt, + S: kOt, + u: SOt, + U: TOt, + V: COt, + w: EOt, + W: _Ot, x: null, X: null, - y: _Ot, - Y: LOt, - Z: MOt, + y: AOt, + Y: ROt, + Z: DOt, "%": dq }, S = { a: R, @@ -39135,31 +39146,31 @@ function Dwt(t) { c: k, d: cq, e: cq, - f: Xwt, + f: Zwt, g: lq, G: oq, H: uq, I: uq, - j: Qwt, - L: Hwt, - m: Ywt, - M: Wwt, + j: Wwt, + L: Xwt, + m: Qwt, + M: Gwt, p: E, - q: qwt, - Q: jwt, - s: Kwt, - S: Gwt, - u: Bwt, - U: Fwt, - V: zwt, - w: $wt, - W: Vwt, + q: Ywt, + Q: Kwt, + s: Jwt, + S: Hwt, + u: Fwt, + U: zwt, + V: Vwt, + w: Bwt, + W: Uwt, x: N, X: M, y: lq, Y: oq, - Z: Uwt, - "%": Zwt + Z: qwt, + "%": jwt }; 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) { @@ -39292,37 +39303,37 @@ function Dwt(t) { } }; } -var aq = { "-": "", _: " ", 0: "0" }, ji = /^\s*\d+/, Nwt = /^%/, Iwt = /[\\^$*+?|[\]().{}]/g; +var aq = { "-": "", _: " ", 0: "0" }, ji = /^\s*\d+/, Iwt = /^%/, Pwt = /[\\^$*+?|[\]().{}]/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 Pwt(t) { - return t.replace(Iwt, "\\$&"); +function $wt(t) { + return t.replace(Pwt, "\\$&"); } function Wm(t) { - return new RegExp("^(?:" + t.map(Pwt).join("|") + ")", "i"); + return new RegExp("^(?:" + t.map($wt).join("|") + ")", "i"); } function Gm(t) { return new Map(t.map((e, r) => [e.toLowerCase(), r])); } -function $wt(t, e, r) { +function Bwt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.w = +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 + 1)); return n ? (t.u = +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 + 2)); return n ? (t.U = +n[0], r + n[0].length) : -1; } -function zwt(t, e, r) { +function Vwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.V = +n[0], r + n[0].length) : -1; } -function Vwt(t, e, r) { +function Uwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.W = +n[0], r + n[0].length) : -1; } @@ -39334,15 +39345,15 @@ function lq(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 Uwt(t, e, r) { +function qwt(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 qwt(t, e, r) { +function Ywt(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 Ywt(t, e, r) { +function Qwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.m = n[0] - 1, r + n[0].length) : -1; } @@ -39350,7 +39361,7 @@ function cq(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.d = +n[0], r + n[0].length) : -1; } -function Qwt(t, e, r) { +function Wwt(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; } @@ -39358,159 +39369,159 @@ function uq(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.H = +n[0], r + n[0].length) : -1; } -function Wwt(t, e, r) { +function Gwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.M = +n[0], r + n[0].length) : -1; } -function Gwt(t, e, r) { +function Hwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.S = +n[0], r + n[0].length) : -1; } -function Hwt(t, e, r) { +function Xwt(t, e, r) { var n = ji.exec(e.slice(r, r + 3)); return n ? (t.L = +n[0], r + n[0].length) : -1; } -function Xwt(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 = Nwt.exec(e.slice(r, r + 1)); +function jwt(t, e, r) { + var n = Iwt.exec(e.slice(r, r + 1)); return n ? r + n[0].length : -1; } -function jwt(t, e, r) { +function Kwt(t, e, r) { var n = ji.exec(e.slice(r)); return n ? (t.Q = +n[0], r + n[0].length) : -1; } -function Kwt(t, e, r) { +function Jwt(t, e, r) { var n = ji.exec(e.slice(r)); return n ? (t.s = +n[0], r + n[0].length) : -1; } function hq(t, e) { return Nr(t.getDate(), e, 2); } -function Jwt(t, e) { +function eOt(t, e) { return Nr(t.getHours(), e, 2); } -function eOt(t, e) { +function tOt(t, e) { return Nr(t.getHours() % 12 || 12, e, 2); } -function tOt(t, e) { +function rOt(t, e) { return Nr(1 + o0.count(Yu(t), t), e, 3); } function Bse(t, e) { return Nr(t.getMilliseconds(), e, 3); } -function rOt(t, e) { +function nOt(t, e) { return Bse(t, e) + "000"; } -function nOt(t, e) { +function iOt(t, e) { return Nr(t.getMonth() + 1, e, 2); } -function iOt(t, e) { +function sOt(t, e) { return Nr(t.getMinutes(), e, 2); } -function sOt(t, e) { +function aOt(t, e) { return Nr(t.getSeconds(), e, 2); } -function aOt(t) { +function oOt(t) { var e = t.getDay(); return e === 0 ? 7 : e; } -function oOt(t, e) { +function lOt(t, e) { return Nr(hx.count(Yu(t) - 1, t), e, 2); } function Fse(t) { var e = t.getDay(); return e >= 4 || e === 0 ? l0(t) : l0.ceil(t); } -function lOt(t, e) { +function cOt(t, e) { return t = Fse(t), Nr(l0.count(Yu(t), t) + (Yu(t).getDay() === 4), e, 2); } -function cOt(t) { +function uOt(t) { return t.getDay(); } -function uOt(t, e) { +function hOt(t, e) { return Nr(f2.count(Yu(t) - 1, t), e, 2); } -function hOt(t, e) { +function fOt(t, e) { return Nr(t.getFullYear() % 100, e, 2); } -function fOt(t, e) { +function dOt(t, e) { return t = Fse(t), Nr(t.getFullYear() % 100, e, 2); } -function dOt(t, e) { +function pOt(t, e) { return Nr(t.getFullYear() % 1e4, e, 4); } -function pOt(t, e) { +function gOt(t, e) { var r = t.getDay(); return t = r >= 4 || r === 0 ? l0(t) : l0.ceil(t), Nr(t.getFullYear() % 1e4, e, 4); } -function gOt(t) { +function mOt(t) { var e = t.getTimezoneOffset(); return (e > 0 ? "-" : (e *= -1, "+")) + Nr(e / 60 | 0, "0", 2) + Nr(e % 60, "0", 2); } function fq(t, e) { return Nr(t.getUTCDate(), e, 2); } -function mOt(t, e) { +function vOt(t, e) { return Nr(t.getUTCHours(), e, 2); } -function vOt(t, e) { +function yOt(t, e) { return Nr(t.getUTCHours() % 12 || 12, e, 2); } -function yOt(t, e) { +function bOt(t, e) { return Nr(1 + UD.count(vf(t), t), e, 3); } function zse(t, e) { return Nr(t.getUTCMilliseconds(), e, 3); } -function bOt(t, e) { +function xOt(t, e) { return zse(t, e) + "000"; } -function xOt(t, e) { +function wOt(t, e) { return Nr(t.getUTCMonth() + 1, e, 2); } -function wOt(t, e) { +function OOt(t, e) { return Nr(t.getUTCMinutes(), e, 2); } -function OOt(t, e) { +function kOt(t, e) { return Nr(t.getUTCSeconds(), e, 2); } -function kOt(t) { +function SOt(t) { var e = t.getUTCDay(); return e === 0 ? 7 : e; } -function SOt(t, e) { +function TOt(t, e) { return Nr(qD.count(vf(t) - 1, t), e, 2); } function Vse(t) { var e = t.getUTCDay(); return e >= 4 || e === 0 ? Jg(t) : Jg.ceil(t); } -function TOt(t, e) { +function COt(t, e) { return t = Vse(t), Nr(Jg.count(vf(t), t) + (vf(t).getUTCDay() === 4), e, 2); } -function COt(t) { +function EOt(t) { return t.getUTCDay(); } -function EOt(t, e) { +function _Ot(t, e) { return Nr(R3.count(vf(t) - 1, t), e, 2); } -function _Ot(t, e) { +function AOt(t, e) { return Nr(t.getUTCFullYear() % 100, e, 2); } -function AOt(t, e) { +function LOt(t, e) { return t = Vse(t), Nr(t.getUTCFullYear() % 100, e, 2); } -function LOt(t, e) { +function ROt(t, e) { return Nr(t.getUTCFullYear() % 1e4, e, 4); } -function ROt(t, e) { +function MOt(t, e) { var r = t.getUTCDay(); return t = r >= 4 || r === 0 ? Jg(t) : Jg.ceil(t), Nr(t.getUTCFullYear() % 1e4, e, 4); } -function MOt() { +function DOt() { return "+0000"; } function dq() { @@ -39523,7 +39534,7 @@ function gq(t) { return Math.floor(+t / 1e3); } var fp, M3; -DOt({ +NOt({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", @@ -39533,13 +39544,13 @@ DOt({ 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 DOt(t) { - return fp = Dwt(t), M3 = fp.format, fp.parse, fp.utcFormat, fp.utcParse, fp; -} function NOt(t) { - return new Date(t); + return fp = Nwt(t), M3 = fp.format, fp.parse, fp.utcFormat, fp.utcParse, fp; } function IOt(t) { + return new Date(t); +} +function POt(t) { return t instanceof Date ? +t : +new Date(+t); } function Use(t, e, r, n, i, s, a, o, l, u) { @@ -39550,7 +39561,7 @@ function Use(t, e, r, n, i, s, a, o, l, u) { return h.invert = function(C) { return new Date(f(C)); }, h.domain = function(C) { - return arguments.length ? d(Array.from(C, IOt)) : d().map(NOt); + return arguments.length ? d(Array.from(C, POt)) : d().map(IOt); }, h.ticks = function(C) { var T = d(); return t(T[0], T[T.length - 1], C == null ? 10 : C); @@ -39558,27 +39569,27 @@ function Use(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(Cwt(T, C)) : h; + return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(Ewt(T, C)) : h; }, h.copy = function() { return Ese(h, Use(t, e, r, n, i, s, a, o, l, u)); }, h; } -function POt() { - return MT.apply(Use(Rwt, Mwt, Yu, d2, hx, o0, h2, u2, zh, M3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); +function $Ot() { + return MT.apply(Use(Mwt, Dwt, Yu, d2, hx, o0, h2, u2, zh, M3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } -function $Ot(t) { +function BOt(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 BOt = $Ot("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); +const FOt = BOt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); function Kn(t) { return function() { return t; }; } -const mq = Math.abs, ks = Math.atan2, td = Math.cos, FOt = Math.max, J6 = Math.min, tc = Math.sin, $p = Math.sqrt, Cs = 1e-12, p2 = Math.PI, D3 = p2 / 2, I4 = 2 * p2; -function zOt(t) { +const mq = Math.abs, ks = Math.atan2, td = Math.cos, zOt = Math.max, J6 = Math.min, tc = Math.sin, $p = Math.sqrt, Cs = 1e-12, p2 = Math.PI, D3 = p2 / 2, I4 = 2 * p2; +function VOt(t) { return t > 1 ? 0 : t < -1 ? p2 : Math.acos(t); } function vq(t) { @@ -39598,30 +39609,30 @@ function qse(t) { e = n; } return t; - }, () => new awt(e); + }, () => new owt(e); } -function VOt(t) { +function UOt(t) { return t.innerRadius; } -function UOt(t) { +function qOt(t) { return t.outerRadius; } -function qOt(t) { +function YOt(t) { return t.startAngle; } -function YOt(t) { +function QOt(t) { return t.endAngle; } -function QOt(t) { +function WOt(t) { return t && t.padAngle; } -function WOt(t, e, r, n, i, s, a, o) { +function GOt(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 Jw(t, e, r, n, i, s, a) { - var o = t - r, l = e - n, u = (a ? s : -s) / $p(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) * $p(FOt(0, S * S * O - C * C)), L = (C * w - b * T) / O, E = (-C * b - w * T) / O, R = (C * w + b * T) / O, _ = (-C * b + w * T) / O, A = L - v, $ = E - y, k = R - v, N = _ - y; + var o = t - r, l = e - n, u = (a ? s : -s) / $p(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) * $p(zOt(0, S * S * O - C * C)), L = (C * w - b * T) / O, E = (-C * b - w * T) / O, R = (C * w + b * T) / O, _ = (-C * b + w * T) / O, A = L - v, $ = E - y, k = R - v, N = _ - y; return A * A + $ * $ > k * k + N * N && (L = R, E = _), { cx: L, cy: E, @@ -39632,7 +39643,7 @@ function Jw(t, e, r, n, i, s, a) { }; } function e1() { - var t = VOt, e = UOt, r = Kn(0), n = null, i = qOt, s = YOt, a = QOt, o = null, l = qse(u); + var t = UOt, e = qOt, r = Kn(0), n = null, i = YOt, s = QOt, a = WOt, o = null, l = qse(u); function u() { var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - D3, m = s.apply(this, arguments) - D3, v = mq(m - g), y = m > g; if (o || (o = h = l()), p < d && (f = p, p = d, d = f), !(p > Cs)) @@ -39649,8 +39660,8 @@ function e1() { if (R > Cs) { var B = p * td(w), V = p * tc(w), Y = d * td(O), G = d * tc(O), ee; if (v < p2) - if (ee = WOt(I, D, Y, G, B, V, P, F)) { - var Q = I - ee[0], ne = D - ee[1], ie = B - ee[0], U = V - ee[1], Z = 1 / tc(zOt((Q * ie + ne * U) / ($p(Q * Q + ne * ne) * $p(ie * ie + U * U))) / 2), W = $p(ee[0] * ee[0] + ee[1] * ee[1]); + if (ee = GOt(I, D, Y, G, B, V, P, F)) { + var Q = I - ee[0], ne = D - ee[1], ie = B - ee[0], U = V - ee[1], Z = 1 / tc(VOt((Q * ie + ne * U) / ($p(Q * Q + ne * ne) * $p(ie * ie + U * U))) / 2), W = $p(ee[0] * ee[0] + ee[1] * ee[1]); _ = J6(R, (d - W) / (Z - 1)), A = J6(R, (p - W) / (Z + 1)); } else _ = A = 0; @@ -39716,15 +39727,15 @@ Qse.prototype = { function NT(t) { return new Qse(t); } -function GOt(t) { +function HOt(t) { return t[0]; } -function HOt(t) { +function XOt(t) { return t[1]; } function yf(t, e) { var r = Kn(!0), n = null, i = NT, s = null, a = qse(o); - t = typeof t == "function" ? t : t === void 0 ? GOt : Kn(t), e = typeof e == "function" ? e : e === void 0 ? HOt : Kn(e); + t = typeof t == "function" ? t : t === void 0 ? HOt : Kn(t), e = typeof e == "function" ? e : e === void 0 ? XOt : Kn(e); function o(l) { var u, h = (l = Yse(l)).length, f, d = !1, p; for (n == null && (s = i(p = a())), u = 0; u <= h; ++u) @@ -39744,14 +39755,14 @@ function yf(t, e) { return arguments.length ? (l == null ? n = s = null : s = i(n = l), o) : n; }, o; } -function XOt(t, e) { +function ZOt(t, e) { return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function ZOt(t) { +function jOt(t) { return t; } -function jOt() { - var t = ZOt, e = XOt, r = null, n = Kn(0), i = Kn(I4), s = Kn(0); +function KOt() { + var t = jOt, e = ZOt, r = null, n = Kn(0), i = Kn(I4), s = Kn(0); function a(o) { var l, u = (o = Yse(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(I4, Math.max(-I4, 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) @@ -39817,10 +39828,10 @@ class Wse { this._x0 = e, this._y0 = r; } } -function KOt(t) { +function JOt(t) { return new Wse(t, !0); } -function JOt(t) { +function e4t(t) { return new Wse(t, !1); } function bf() { @@ -39921,7 +39932,7 @@ Gse.prototype = { this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function e4t(t) { +function t4t(t) { return new Gse(t); } function Hse(t) { @@ -39962,7 +39973,7 @@ Hse.prototype = { this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function t4t(t) { +function r4t(t) { return new Hse(t); } function Xse(t, e) { @@ -39986,7 +39997,7 @@ Xse.prototype = { this._x.push(+t), this._y.push(+e); } }; -const r4t = function t(e) { +const n4t = function t(e) { function r(n) { return e === 1 ? new IT(n) : new Xse(n, e); } @@ -40045,7 +40056,7 @@ YD.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const n4t = function t(e) { +const i4t = function t(e) { function r(n) { return new YD(n, e); } @@ -40096,7 +40107,7 @@ QD.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const i4t = function t(e) { +const s4t = function t(e) { function r(n) { return new QD(n, e); } @@ -40140,7 +40151,7 @@ WD.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const s4t = function t(e) { +const a4t = function t(e) { function r(n) { return new WD(n, e); } @@ -40205,7 +40216,7 @@ Zse.prototype = { 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 a4t = function t(e) { +const o4t = function t(e) { function r(n) { return e ? new Zse(n, e) : new YD(n, 0); } @@ -40260,7 +40271,7 @@ jse.prototype = { 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 o4t = function t(e) { +const l4t = function t(e) { function r(n) { return e ? new jse(n, e) : new QD(n, 0); } @@ -40308,7 +40319,7 @@ Kse.prototype = { 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 l4t = function t(e) { +const c4t = function t(e) { function r(n) { return e ? new Kse(n, e) : new WD(n, 0); } @@ -40332,7 +40343,7 @@ Jse.prototype = { t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e)); } }; -function c4t(t) { +function u4t(t) { return new Jse(t); } function yq(t) { @@ -40418,10 +40429,10 @@ tae.prototype = { this._context.bezierCurveTo(e, t, n, r, s, i); } }; -function u4t(t) { +function h4t(t) { return new P3(t); } -function h4t(t) { +function f4t(t) { return new eae(t); } function rae(t) { @@ -40463,7 +40474,7 @@ function wq(t) { s[e] = 2 * t[e + 1] - i[e + 1]; return [i, s]; } -function f4t(t) { +function d4t(t) { return new rae(t); } function PT(t, e) { @@ -40502,13 +40513,13 @@ PT.prototype = { this._x = t, this._y = e; } }; -function d4t(t) { +function p4t(t) { return new PT(t, 0.5); } -function p4t(t) { +function g4t(t) { return new PT(t, 0); } -function g4t(t) { +function m4t(t) { return new PT(t, 1); } function Bp(t, e, r) { @@ -40552,56 +40563,56 @@ Bp.prototype = { }; new Bp(1, 0, 0); Bp.prototype; -var m4t = typeof global == "object" && global && global.Object === Object && global; -const nae = m4t; -var v4t = typeof self == "object" && self && self.Object === Object && self, y4t = nae || v4t || Function("return this")(); -const Gl = y4t; -var b4t = Gl.Symbol; -const Go = b4t; -var iae = Object.prototype, x4t = iae.hasOwnProperty, w4t = iae.toString, Hm = Go ? Go.toStringTag : void 0; -function O4t(t) { - var e = x4t.call(t, Hm), r = t[Hm]; +var v4t = typeof global == "object" && global && global.Object === Object && global; +const nae = v4t; +var y4t = typeof self == "object" && self && self.Object === Object && self, b4t = nae || y4t || Function("return this")(); +const Gl = b4t; +var x4t = Gl.Symbol; +const Go = x4t; +var iae = Object.prototype, w4t = iae.hasOwnProperty, O4t = iae.toString, Hm = Go ? Go.toStringTag : void 0; +function k4t(t) { + var e = w4t.call(t, Hm), r = t[Hm]; try { t[Hm] = void 0; var n = !0; } catch { } - var i = w4t.call(t); + var i = O4t.call(t); return n && (e ? t[Hm] = r : delete t[Hm]), i; } -var k4t = Object.prototype, S4t = k4t.toString; -function T4t(t) { - return S4t.call(t); +var S4t = Object.prototype, T4t = S4t.toString; +function C4t(t) { + return T4t.call(t); } -var C4t = "[object Null]", E4t = "[object Undefined]", Oq = Go ? Go.toStringTag : void 0; +var E4t = "[object Null]", _4t = "[object Undefined]", Oq = Go ? Go.toStringTag : void 0; function ah(t) { - return t == null ? t === void 0 ? E4t : C4t : Oq && Oq in Object(t) ? O4t(t) : T4t(t); + return t == null ? t === void 0 ? _4t : E4t : Oq && Oq in Object(t) ? k4t(t) : C4t(t); } function Pa(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var _4t = "[object AsyncFunction]", A4t = "[object Function]", L4t = "[object GeneratorFunction]", R4t = "[object Proxy]"; +var A4t = "[object AsyncFunction]", L4t = "[object Function]", R4t = "[object GeneratorFunction]", M4t = "[object Proxy]"; function Ho(t) { if (!Pa(t)) return !1; var e = ah(t); - return e == A4t || e == L4t || e == _4t || e == R4t; + return e == L4t || e == R4t || e == A4t || e == M4t; } -var M4t = Gl["__core-js_shared__"]; -const t_ = M4t; +var D4t = Gl["__core-js_shared__"]; +const t_ = D4t; var kq = function() { var t = /[^.]+$/.exec(t_ && t_.keys && t_.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function D4t(t) { +function N4t(t) { return !!kq && kq in t; } -var N4t = Function.prototype, I4t = N4t.toString; +var I4t = Function.prototype, P4t = I4t.toString; function Q0(t) { if (t != null) { try { - return I4t.call(t); + return P4t.call(t); } catch { } try { @@ -40611,49 +40622,49 @@ function Q0(t) { } return ""; } -var P4t = /[\\^$.*+?()[\]{}|]/g, $4t = /^\[object .+?Constructor\]$/, B4t = Function.prototype, F4t = Object.prototype, z4t = B4t.toString, V4t = F4t.hasOwnProperty, U4t = RegExp( - "^" + z4t.call(V4t).replace(P4t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var $4t = /[\\^$.*+?()[\]{}|]/g, B4t = /^\[object .+?Constructor\]$/, F4t = Function.prototype, z4t = Object.prototype, V4t = F4t.toString, U4t = z4t.hasOwnProperty, q4t = RegExp( + "^" + V4t.call(U4t).replace($4t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function q4t(t) { - if (!Pa(t) || D4t(t)) +function Y4t(t) { + if (!Pa(t) || N4t(t)) return !1; - var e = Ho(t) ? U4t : $4t; + var e = Ho(t) ? q4t : B4t; return e.test(Q0(t)); } -function Y4t(t, e) { +function Q4t(t, e) { return t == null ? void 0 : t[e]; } function W0(t, e) { - var r = Y4t(t, e); - return q4t(r) ? r : void 0; + var r = Q4t(t, e); + return Y4t(r) ? r : void 0; } -var Q4t = W0(Object, "create"); -const g2 = Q4t; -function W4t() { +var W4t = W0(Object, "create"); +const g2 = W4t; +function G4t() { this.__data__ = g2 ? g2(null) : {}, this.size = 0; } -function G4t(t) { +function H4t(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var H4t = "__lodash_hash_undefined__", X4t = Object.prototype, Z4t = X4t.hasOwnProperty; -function j4t(t) { +var X4t = "__lodash_hash_undefined__", Z4t = Object.prototype, j4t = Z4t.hasOwnProperty; +function K4t(t) { var e = this.__data__; if (g2) { var r = e[t]; - return r === H4t ? void 0 : r; + return r === X4t ? void 0 : r; } - return Z4t.call(e, t) ? e[t] : void 0; + return j4t.call(e, t) ? e[t] : void 0; } -var K4t = Object.prototype, J4t = K4t.hasOwnProperty; -function e5t(t) { +var J4t = Object.prototype, e5t = J4t.hasOwnProperty; +function t5t(t) { var e = this.__data__; - return g2 ? e[t] !== void 0 : J4t.call(e, t); + return g2 ? e[t] !== void 0 : e5t.call(e, t); } -var t5t = "__lodash_hash_undefined__"; -function r5t(t, e) { +var r5t = "__lodash_hash_undefined__"; +function n5t(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = g2 && e === void 0 ? t5t : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = g2 && e === void 0 ? r5t : e, this; } function c0(t) { var e = -1, r = t == null ? 0 : t.length; @@ -40662,12 +40673,12 @@ function c0(t) { this.set(n[0], n[1]); } } -c0.prototype.clear = W4t; -c0.prototype.delete = G4t; -c0.prototype.get = j4t; -c0.prototype.has = e5t; -c0.prototype.set = r5t; -function n5t() { +c0.prototype.clear = G4t; +c0.prototype.delete = H4t; +c0.prototype.get = K4t; +c0.prototype.has = t5t; +c0.prototype.set = n5t; +function i5t() { this.__data__ = [], this.size = 0; } function K1(t, e) { @@ -40679,22 +40690,22 @@ function $T(t, e) { return r; return -1; } -var i5t = Array.prototype, s5t = i5t.splice; -function a5t(t) { +var s5t = Array.prototype, a5t = s5t.splice; +function o5t(t) { var e = this.__data__, r = $T(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : s5t.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : a5t.call(e, r, 1), --this.size, !0; } -function o5t(t) { +function l5t(t) { var e = this.__data__, r = $T(e, t); return r < 0 ? void 0 : e[r][1]; } -function l5t(t) { +function c5t(t) { return $T(this.__data__, t) > -1; } -function c5t(t, e) { +function u5t(t, e) { var r = this.__data__, n = $T(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } @@ -40705,39 +40716,39 @@ function oh(t) { this.set(n[0], n[1]); } } -oh.prototype.clear = n5t; -oh.prototype.delete = a5t; -oh.prototype.get = o5t; -oh.prototype.has = l5t; -oh.prototype.set = c5t; -var u5t = W0(Gl, "Map"); -const m2 = u5t; -function h5t() { +oh.prototype.clear = i5t; +oh.prototype.delete = o5t; +oh.prototype.get = l5t; +oh.prototype.has = c5t; +oh.prototype.set = u5t; +var h5t = W0(Gl, "Map"); +const m2 = h5t; +function f5t() { this.size = 0, this.__data__ = { hash: new c0(), map: new (m2 || oh)(), string: new c0() }; } -function f5t(t) { +function d5t(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } function BT(t, e) { var r = t.__data__; - return f5t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return d5t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -function d5t(t) { +function p5t(t) { var e = BT(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -function p5t(t) { +function g5t(t) { return BT(this, t).get(t); } -function g5t(t) { +function m5t(t) { return BT(this, t).has(t); } -function m5t(t, e) { +function v5t(t, e) { var r = BT(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } @@ -40748,15 +40759,15 @@ function lh(t) { this.set(n[0], n[1]); } } -lh.prototype.clear = h5t; -lh.prototype.delete = d5t; -lh.prototype.get = p5t; -lh.prototype.has = g5t; -lh.prototype.set = m5t; -var v5t = "Expected a function"; +lh.prototype.clear = f5t; +lh.prototype.delete = p5t; +lh.prototype.get = g5t; +lh.prototype.has = m5t; +lh.prototype.set = v5t; +var y5t = "Expected a function"; function J1(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(v5t); + throw new TypeError(y5t); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -40767,25 +40778,25 @@ function J1(t, e) { return r.cache = new (J1.Cache || lh)(), r; } J1.Cache = lh; -function y5t() { +function b5t() { this.__data__ = new oh(), this.size = 0; } -function b5t(t) { +function x5t(t) { var e = this.__data__, r = e.delete(t); return this.size = e.size, r; } -function x5t(t) { +function w5t(t) { return this.__data__.get(t); } -function w5t(t) { +function O5t(t) { return this.__data__.has(t); } -var O5t = 200; -function k5t(t, e) { +var k5t = 200; +function S5t(t, e) { var r = this.__data__; if (r instanceof oh) { var n = r.__data__; - if (!m2 || n.length < O5t - 1) + if (!m2 || n.length < k5t - 1) return n.push([t, e]), this.size = ++r.size, this; r = this.__data__ = new lh(n); } @@ -40795,19 +40806,19 @@ function wl(t) { var e = this.__data__ = new oh(t); this.size = e.size; } -wl.prototype.clear = y5t; -wl.prototype.delete = b5t; -wl.prototype.get = x5t; -wl.prototype.has = w5t; -wl.prototype.set = k5t; -var S5t = function() { +wl.prototype.clear = b5t; +wl.prototype.delete = x5t; +wl.prototype.get = w5t; +wl.prototype.has = O5t; +wl.prototype.set = S5t; +var T5t = function() { try { var t = W0(Object, "defineProperty"); return t({}, "", {}), t; } catch { } }(); -const $3 = S5t; +const $3 = T5t; function fx(t, e, r) { e == "__proto__" && $3 ? $3(t, e, { configurable: !0, @@ -40819,7 +40830,7 @@ function fx(t, e, r) { function q8(t, e, r) { (r !== void 0 && !K1(t[e], r) || r === void 0 && !(e in t)) && fx(t, e, r); } -function T5t(t) { +function C5t(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]; @@ -40829,17 +40840,17 @@ function T5t(t) { return e; }; } -var C5t = T5t(); -const HD = C5t; -var sae = typeof exports == "object" && exports && !exports.nodeType && exports, Sq = sae && typeof module == "object" && module && !module.nodeType && module, E5t = Sq && Sq.exports === sae, Tq = E5t ? Gl.Buffer : void 0, Cq = Tq ? Tq.allocUnsafe : void 0; +var E5t = C5t(); +const HD = E5t; +var sae = typeof exports == "object" && exports && !exports.nodeType && exports, Sq = sae && typeof module == "object" && module && !module.nodeType && module, _5t = Sq && Sq.exports === sae, Tq = _5t ? Gl.Buffer : void 0, Cq = Tq ? Tq.allocUnsafe : void 0; function aae(t, e) { if (e) return t.slice(); var r = t.length, n = Cq ? Cq(r) : new t.constructor(r); return t.copy(n), n; } -var _5t = Gl.Uint8Array; -const B3 = _5t; +var A5t = Gl.Uint8Array; +const B3 = A5t; function XD(t) { var e = new t.constructor(t.byteLength); return new B3(e).set(new B3(t)), e; @@ -40854,7 +40865,7 @@ function lae(t, e) { e[r] = t[r]; return e; } -var Eq = Object.create, A5t = function() { +var Eq = Object.create, L5t = function() { function t() { } return function(e) { @@ -40867,40 +40878,40 @@ var Eq = Object.create, A5t = function() { return t.prototype = void 0, r; }; }(); -const L5t = A5t; +const R5t = L5t; function cae(t, e) { return function(r) { return t(e(r)); }; } -var R5t = cae(Object.getPrototypeOf, Object); -const ZD = R5t; -var M5t = Object.prototype; +var M5t = cae(Object.getPrototypeOf, Object); +const ZD = M5t; +var D5t = Object.prototype; function dx(t) { - var e = t && t.constructor, r = typeof e == "function" && e.prototype || M5t; + var e = t && t.constructor, r = typeof e == "function" && e.prototype || D5t; return t === r; } function uae(t) { - return typeof t.constructor == "function" && !dx(t) ? L5t(ZD(t)) : {}; + return typeof t.constructor == "function" && !dx(t) ? R5t(ZD(t)) : {}; } function Xo(t) { return t != null && typeof t == "object"; } -var D5t = "[object Arguments]"; +var N5t = "[object Arguments]"; function _q(t) { - return Xo(t) && ah(t) == D5t; + return Xo(t) && ah(t) == N5t; } -var hae = Object.prototype, N5t = hae.hasOwnProperty, I5t = hae.propertyIsEnumerable, P5t = _q(function() { +var hae = Object.prototype, I5t = hae.hasOwnProperty, P5t = hae.propertyIsEnumerable, $5t = _q(function() { return arguments; }()) ? _q : function(t) { - return Xo(t) && N5t.call(t, "callee") && !I5t.call(t, "callee"); + return Xo(t) && I5t.call(t, "callee") && !P5t.call(t, "callee"); }; -const t1 = P5t; -var $5t = Array.isArray; -const Sr = $5t; -var B5t = 9007199254740991; +const t1 = $5t; +var B5t = Array.isArray; +const Sr = B5t; +var F5t = 9007199254740991; function jD(t) { - return typeof t == "number" && t > -1 && t % 1 == 0 && t <= B5t; + return typeof t == "number" && t > -1 && t % 1 == 0 && t <= F5t; } function jc(t) { return t != null && jD(t.length) && !Ho(t); @@ -40908,25 +40919,25 @@ function jc(t) { function F3(t) { return Xo(t) && jc(t); } -function F5t() { +function z5t() { return !1; } -var fae = typeof exports == "object" && exports && !exports.nodeType && exports, Aq = fae && typeof module == "object" && module && !module.nodeType && module, z5t = Aq && Aq.exports === fae, Lq = z5t ? Gl.Buffer : void 0, V5t = Lq ? Lq.isBuffer : void 0, U5t = V5t || F5t; -const r1 = U5t; -var q5t = "[object Object]", Y5t = Function.prototype, Q5t = Object.prototype, dae = Y5t.toString, W5t = Q5t.hasOwnProperty, G5t = dae.call(Object); -function H5t(t) { - if (!Xo(t) || ah(t) != q5t) +var fae = typeof exports == "object" && exports && !exports.nodeType && exports, Aq = fae && typeof module == "object" && module && !module.nodeType && module, V5t = Aq && Aq.exports === fae, Lq = V5t ? Gl.Buffer : void 0, U5t = Lq ? Lq.isBuffer : void 0, q5t = U5t || z5t; +const r1 = q5t; +var Y5t = "[object Object]", Q5t = Function.prototype, W5t = Object.prototype, dae = Q5t.toString, G5t = W5t.hasOwnProperty, H5t = dae.call(Object); +function X5t(t) { + if (!Xo(t) || ah(t) != Y5t) return !1; var e = ZD(t); if (e === null) return !0; - var r = W5t.call(e, "constructor") && e.constructor; - return typeof r == "function" && r instanceof r && dae.call(r) == G5t; + var r = G5t.call(e, "constructor") && e.constructor; + return typeof r == "function" && r instanceof r && dae.call(r) == H5t; } -var X5t = "[object Arguments]", Z5t = "[object Array]", j5t = "[object Boolean]", K5t = "[object Date]", J5t = "[object Error]", e3t = "[object Function]", t3t = "[object Map]", r3t = "[object Number]", n3t = "[object Object]", i3t = "[object RegExp]", s3t = "[object Set]", a3t = "[object String]", o3t = "[object WeakMap]", l3t = "[object ArrayBuffer]", c3t = "[object DataView]", u3t = "[object Float32Array]", h3t = "[object Float64Array]", f3t = "[object Int8Array]", d3t = "[object Int16Array]", p3t = "[object Int32Array]", g3t = "[object Uint8Array]", m3t = "[object Uint8ClampedArray]", v3t = "[object Uint16Array]", y3t = "[object Uint32Array]", gn = {}; -gn[u3t] = gn[h3t] = gn[f3t] = gn[d3t] = gn[p3t] = gn[g3t] = gn[m3t] = gn[v3t] = gn[y3t] = !0; -gn[X5t] = gn[Z5t] = gn[l3t] = gn[j5t] = gn[c3t] = gn[K5t] = gn[J5t] = gn[e3t] = gn[t3t] = gn[r3t] = gn[n3t] = gn[i3t] = gn[s3t] = gn[a3t] = gn[o3t] = !1; -function b3t(t) { +var Z5t = "[object Arguments]", j5t = "[object Array]", K5t = "[object Boolean]", J5t = "[object Date]", e3t = "[object Error]", t3t = "[object Function]", r3t = "[object Map]", n3t = "[object Number]", i3t = "[object Object]", s3t = "[object RegExp]", a3t = "[object Set]", o3t = "[object String]", l3t = "[object WeakMap]", c3t = "[object ArrayBuffer]", u3t = "[object DataView]", h3t = "[object Float32Array]", f3t = "[object Float64Array]", d3t = "[object Int8Array]", p3t = "[object Int16Array]", g3t = "[object Int32Array]", m3t = "[object Uint8Array]", v3t = "[object Uint8ClampedArray]", y3t = "[object Uint16Array]", b3t = "[object Uint32Array]", gn = {}; +gn[h3t] = gn[f3t] = gn[d3t] = gn[p3t] = gn[g3t] = gn[m3t] = gn[v3t] = gn[y3t] = gn[b3t] = !0; +gn[Z5t] = gn[j5t] = gn[c3t] = gn[K5t] = gn[u3t] = gn[J5t] = gn[e3t] = gn[t3t] = gn[r3t] = gn[n3t] = gn[i3t] = gn[s3t] = gn[a3t] = gn[o3t] = gn[l3t] = !1; +function x3t(t) { return Xo(t) && jD(t.length) && !!gn[ah(t)]; } function em(t) { @@ -40934,24 +40945,24 @@ function em(t) { return t(e); }; } -var pae = typeof exports == "object" && exports && !exports.nodeType && exports, oy = pae && typeof module == "object" && module && !module.nodeType && module, x3t = oy && oy.exports === pae, r_ = x3t && nae.process, w3t = function() { +var pae = typeof exports == "object" && exports && !exports.nodeType && exports, oy = pae && typeof module == "object" && module && !module.nodeType && module, w3t = oy && oy.exports === pae, r_ = w3t && nae.process, O3t = function() { try { var t = oy && oy.require && oy.require("util").types; return t || r_ && r_.binding && r_.binding("util"); } catch { } }(); -const xf = w3t; -var Rq = xf && xf.isTypedArray, O3t = Rq ? em(Rq) : b3t; -const FT = O3t; +const xf = O3t; +var Rq = xf && xf.isTypedArray, k3t = Rq ? em(Rq) : x3t; +const FT = k3t; function Y8(t, e) { if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__") return t[e]; } -var k3t = Object.prototype, S3t = k3t.hasOwnProperty; +var S3t = Object.prototype, T3t = S3t.hasOwnProperty; function px(t, e, r) { var n = t[e]; - (!(S3t.call(t, e) && K1(n, r)) || r === void 0 && !(e in t)) && fx(t, e, r); + (!(T3t.call(t, e) && K1(n, r)) || r === void 0 && !(e in t)) && fx(t, e, r); } function tm(t, e, r, n) { var i = !r; @@ -40962,46 +40973,46 @@ function tm(t, e, r, n) { } return r; } -function T3t(t, e) { +function C3t(t, e) { for (var r = -1, n = Array(t); ++r < t; ) n[r] = e(r); return n; } -var C3t = 9007199254740991, E3t = /^(?:0|[1-9]\d*)$/; +var E3t = 9007199254740991, _3t = /^(?:0|[1-9]\d*)$/; function zT(t, e) { var r = typeof t; - return e = e == null ? C3t : e, !!e && (r == "number" || r != "symbol" && E3t.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? E3t : e, !!e && (r == "number" || r != "symbol" && _3t.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var _3t = Object.prototype, A3t = _3t.hasOwnProperty; +var A3t = Object.prototype, L3t = A3t.hasOwnProperty; function gae(t, e) { - var r = Sr(t), n = !r && t1(t), i = !r && !n && r1(t), s = !r && !n && !i && FT(t), a = r || n || i || s, o = a ? T3t(t.length, String) : [], l = o.length; + var r = Sr(t), n = !r && t1(t), i = !r && !n && r1(t), s = !r && !n && !i && FT(t), a = r || n || i || s, o = a ? C3t(t.length, String) : [], l = o.length; for (var u in t) - (e || A3t.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || zT(u, l))) && o.push(u); + (e || L3t.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || zT(u, l))) && o.push(u); return o; } -function L3t(t) { +function R3t(t) { var e = []; if (t != null) for (var r in Object(t)) e.push(r); return e; } -var R3t = Object.prototype, M3t = R3t.hasOwnProperty; -function D3t(t) { +var M3t = Object.prototype, D3t = M3t.hasOwnProperty; +function N3t(t) { if (!Pa(t)) - return L3t(t); + return R3t(t); var e = dx(t), r = []; for (var n in t) - n == "constructor" && (e || !M3t.call(t, n)) || r.push(n); + n == "constructor" && (e || !D3t.call(t, n)) || r.push(n); return r; } function G0(t) { - return jc(t) ? gae(t, !0) : D3t(t); + return jc(t) ? gae(t, !0) : N3t(t); } -function N3t(t) { +function I3t(t) { return tm(t, G0(t)); } -function I3t(t, e, r, n, i, s, a) { +function P3t(t, e, r, n, i, s, a) { var o = Y8(t, r), l = Y8(e, r), u = a.get(l); if (u) { q8(t, r, u); @@ -41010,14 +41021,14 @@ function I3t(t, e, r, n, i, s, a) { var h = s ? s(o, l, r + "", t, e, a) : void 0, f = h === void 0; if (f) { var d = Sr(l), p = !d && r1(l), g = !d && !p && FT(l); - h = l, d || p || g ? Sr(o) ? h = o : F3(o) ? h = lae(o) : p ? (f = !1, h = aae(l, !0)) : g ? (f = !1, h = oae(l, !0)) : h = [] : H5t(l) || t1(l) ? (h = o, t1(o) ? h = N3t(o) : (!Pa(o) || Ho(o)) && (h = uae(l))) : f = !1; + h = l, d || p || g ? Sr(o) ? h = o : F3(o) ? h = lae(o) : p ? (f = !1, h = aae(l, !0)) : g ? (f = !1, h = oae(l, !0)) : h = [] : X5t(l) || t1(l) ? (h = o, t1(o) ? h = I3t(o) : (!Pa(o) || Ho(o)) && (h = uae(l))) : f = !1; } f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), q8(t, r, h); } function mae(t, e, r, n, i) { t !== e && HD(e, function(s, a) { if (i || (i = new wl()), Pa(s)) - I3t(t, e, a, r, mae, n, i); + P3t(t, e, a, r, mae, n, i); else { var o = n ? n(Y8(t, a), s, a + "", t, e, i) : void 0; o === void 0 && (o = s), q8(t, a, o); @@ -41027,7 +41038,7 @@ function mae(t, e, r, n, i) { function Qu(t) { return t; } -function P3t(t, e, r) { +function $3t(t, e, r) { switch (r.length) { case 0: return t.call(e); @@ -41048,7 +41059,7 @@ function vae(t, e, r) { i = -1; for (var o = Array(e + 1); ++i < e; ) o[i] = n[i]; - return o[e] = r(a), P3t(t, this, o); + return o[e] = r(a), $3t(t, this, o); }; } function Fp(t) { @@ -41056,7 +41067,7 @@ function Fp(t) { return t; }; } -var $3t = $3 ? function(t, e) { +var B3t = $3 ? function(t, e) { return $3(t, "toString", { configurable: !0, enumerable: !1, @@ -41064,22 +41075,22 @@ var $3t = $3 ? function(t, e) { writable: !0 }); } : Qu; -const B3t = $3t; -var F3t = 800, z3t = 16, V3t = Date.now; -function U3t(t) { +const F3t = B3t; +var z3t = 800, V3t = 16, U3t = Date.now; +function q3t(t) { var e = 0, r = 0; return function() { - var n = V3t(), i = z3t - (n - r); + var n = U3t(), i = V3t - (n - r); if (r = n, i > 0) { - if (++e >= F3t) + if (++e >= z3t) return arguments[0]; } else e = 0; return t.apply(void 0, arguments); }; } -var q3t = U3t(B3t); -const yae = q3t; +var Y3t = q3t(F3t); +const yae = Y3t; function gx(t, e) { return yae(vae(t, e, Qu), t + ""); } @@ -41099,32 +41110,32 @@ function bae(t) { return e; }); } -var Y3t = bae(function(t, e, r) { +var Q3t = bae(function(t, e, r) { mae(t, e, r); }); -const z3 = Y3t; -var xae = "\u200B", Q3t = { +const z3 = Q3t; +var xae = "\u200B", W3t = { curveBasis: j1, - curveBasisClosed: e4t, - curveBasisOpen: t4t, - curveBumpX: KOt, - curveBumpY: JOt, - curveBundle: r4t, - curveCardinalClosed: i4t, - curveCardinalOpen: s4t, - curveCardinal: n4t, - curveCatmullRomClosed: o4t, - curveCatmullRomOpen: l4t, - curveCatmullRom: a4t, + curveBasisClosed: t4t, + curveBasisOpen: r4t, + curveBumpX: JOt, + curveBumpY: e4t, + curveBundle: n4t, + curveCardinalClosed: s4t, + curveCardinalOpen: a4t, + curveCardinal: i4t, + curveCatmullRomClosed: l4t, + curveCatmullRomOpen: c4t, + curveCatmullRom: o4t, curveLinear: NT, - curveLinearClosed: c4t, - curveMonotoneX: u4t, - curveMonotoneY: h4t, - curveNatural: f4t, - curveStep: d4t, - curveStepAfter: g4t, - curveStepBefore: p4t -}, W3t = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, G3t = /* @__PURE__ */ x(function(t, e) { + curveLinearClosed: u4t, + curveMonotoneX: h4t, + curveMonotoneY: f4t, + curveNatural: d4t, + curveStep: p4t, + curveStepAfter: m4t, + curveStepBefore: g4t +}, G3t = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, H3t = /* @__PURE__ */ x(function(t, e) { const r = wae(t, /(?:init\b)|(?:initialize\b)/); let n = {}; if (Array.isArray(r)) { @@ -41141,7 +41152,7 @@ var xae = "\u200B", Q3t = { var r, n; try { const i = new RegExp( - `[%]{2}(?![{]${W3t.source})(?=[}][%]{2}).* + `[%]{2}(?![{]${G3t.source})(?=[}][%]{2}).* `, "ig" ); @@ -41161,9 +41172,9 @@ var xae = "\u200B", Q3t = { `ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'` ), { type: void 0, args: null }; } -}, "detectDirective"), H3t = /* @__PURE__ */ x(function(t) { +}, "detectDirective"), X3t = /* @__PURE__ */ x(function(t) { return t.replace(ny, ""); -}, "removeDirectives"), X3t = /* @__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; @@ -41174,7 +41185,7 @@ function mx(t, e) { if (!t) return e; const r = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`; - return (n = Q3t[r]) != null ? n : e; + return (n = W3t[r]) != null ? n : e; } x(mx, "interpolateToCurve"); function Oae(t, e) { @@ -41183,7 +41194,7 @@ function Oae(t, e) { return e.securityLevel !== "loose" ? Uf(r) : r; } x(Oae, "formatUrl"); -var Z3t = /* @__PURE__ */ x((t, ...e) => { +var j3t = /* @__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++) @@ -41236,7 +41247,7 @@ var Dq = /* @__PURE__ */ x((t, e = 2) => { r = i; } throw new Error("Could not find a suitable point for the given distance"); -}, "calculatePoint"), j3t = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePoint"), K3t = /* @__PURE__ */ x((t, e, r) => { X.info(`our points ${JSON.stringify(e)}`), e[0] !== r && (e = e.reverse()); const i = JD(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; @@ -41264,7 +41275,7 @@ function Eae(t) { return e; } x(Eae, "makeRandomHex"); -var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), K3t = /* @__PURE__ */ x(function() { +var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), J3t = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -41279,7 +41290,7 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), K3t = /* @__PURE__ valign: void 0, text: "" }; -}, "getTextObj"), J3t = /* @__PURE__ */ x(function(t, e) { +}, "getTextObj"), ekt = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(at.lineBreakRegex, " "), [, n] = H0(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"); @@ -41296,7 +41307,7 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), K3t = /* @__PURE__ return n.forEach((a, o) => { const l = Ol(`${a} `, r), u = Ol(s, r); if (l > e) { - const { hyphenatedStrings: d, remainingWord: p } = ekt(a, e, "-", r); + const { hyphenatedStrings: d, remainingWord: p } = tkt(a, e, "-", r); i.push(s, ...d), s = p; } else u + l >= e ? (i.push(s), s = a) : s = [s, a].filter(Boolean).join(" "); @@ -41304,7 +41315,7 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), K3t = /* @__PURE__ }), i.filter((a) => a !== "").join(r.joinWith); }, (t, e, r) => `${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}` -), ekt = J1( +), tkt = J1( (t, e, r = "-", n) => { n = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 }, @@ -41344,9 +41355,9 @@ var eN = J1( let p = 0; const g = { width: 0, height: 0, lineHeight: 0 }; for (const m of o) { - const v = K3t(); + const v = J3t(); v.text = m || xae; - const y = J3t(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); + const y = ekt(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)); @@ -41358,20 +41369,20 @@ var eN = J1( return l[f]; }, (t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}` -), hb, tkt = (hb = class { +), hb, rkt = (hb = class { constructor(e = !1, r) { this.count = 0, this.count = r ? r.length : 0, this.next = e ? () => this.count++ : () => Date.now(); } }, (() => { x(hb, "InitIDGenerator"); -})(), hb), eO, rkt = /* @__PURE__ */ x(function(t) { +})(), hb), eO, nkt = /* @__PURE__ */ x(function(t) { return eO = eO || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), eO.innerHTML = t, unescape(eO.textContent); }, "entityDecode"); function tN(t) { return "str" in t; } x(tN, "isDetailedError"); -var nkt = /* @__PURE__ */ x((t, e, r, n) => { +var ikt = /* @__PURE__ */ x((t, e, r, n) => { var s; if (!n) return; @@ -41394,23 +41405,23 @@ var sr = { calculateTextWidth: Ol, calculateTextDimensions: eN, cleanAndMerge: ch, - detectInit: G3t, + detectInit: H3t, detectDirective: wae, - isSubstringInArray: X3t, + isSubstringInArray: Z3t, interpolateToCurve: mx, calcLabelPosition: Sae, - calcCardinalityPosition: j3t, + calcCardinalityPosition: K3t, calcTerminalLabelPosition: Tae, formatUrl: Oae, getStylesFromArray: vx, generateId: Cae, random: _ae, - runFunc: Z3t, - entityDecode: rkt, - insertTitle: nkt, + runFunc: j3t, + entityDecode: nkt, + insertTitle: ikt, parseFontSize: H0, - InitIDGenerator: tkt -}, ikt = /* @__PURE__ */ x(function(t) { + InitIDGenerator: rkt +}, skt = /* @__PURE__ */ x(function(t) { let e = t; return e = e.replace(/style.*:\S*#.*;/g, function(r) { return r.substring(0, r.length - 1); @@ -41445,33 +41456,33 @@ let X0 = rN(); function Rae(t) { X0 = t; } -const Mae = /[&<>"']/, skt = new RegExp(Mae.source, "g"), Dae = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, akt = new RegExp(Dae.source, "g"), okt = { +const Mae = /[&<>"']/, akt = new RegExp(Mae.source, "g"), Dae = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, okt = new RegExp(Dae.source, "g"), lkt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Iq = (t) => okt[t]; +}, Iq = (t) => lkt[t]; function Ka(t, e) { if (e) { if (Mae.test(t)) - return t.replace(skt, Iq); + return t.replace(akt, Iq); } else if (Dae.test(t)) - return t.replace(akt, Iq); + return t.replace(okt, Iq); return t; } -const lkt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; -function ckt(t) { - return t.replace(lkt, (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 ckt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; +function ukt(t) { + return t.replace(ckt, (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 ukt = /(^|[^\[])\^/g; +const hkt = /(^|[^\[])\^/g; function en(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(ukt, "$1"), r = r.replace(i, a), n; + return a = a.replace(hkt, "$1"), r = r.replace(i, a), n; }, getRegex: () => new RegExp(r, e) }; @@ -41520,7 +41531,7 @@ function Xm(t, e, r) { } return t.slice(0, n - i); } -function hkt(t, e) { +function fkt(t, e) { if (t.indexOf(e[1]) === -1) return -1; let r = 0; @@ -41555,7 +41566,7 @@ function Bq(t, e, r, n) { text: Ka(a) }; } -function fkt(t, e) { +function dkt(t, e) { const r = t.match(/^(\s+)(?:```)/); if (r === null) return e; @@ -41601,7 +41612,7 @@ class U3 { fences(e) { const r = this.rules.block.fences.exec(e); if (r) { - const n = r[0], i = fkt(n, r[3] || ""); + const n = r[0], i = dkt(n, r[3] || ""); return { type: "code", raw: n, @@ -41880,7 +41891,7 @@ ${f}` : f; if ((n.length - a.length) % 2 === 0) return; } else { - const a = hkt(r[2], "()"); + const a = fkt(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] = ""; @@ -42044,25 +42055,25 @@ ${f}` : f; } } } -const dkt = /^(?: *(?:\n|$))+/, pkt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, gkt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yx = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, mkt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Nae = /(?:[*+-]|\d{1,9}[.)])/, Iae = en(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Nae).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(), nN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, vkt = /^[^\n]+/, iN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ykt = en(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", iN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), bkt = en(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Nae).getRegex(), VT = "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", sN = /|$))/, xkt = en("^ {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", sN).replace("tag", VT).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Pae = en(nN).replace("hr", yx).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", VT).getRegex(), wkt = en(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Pae).getRegex(), aN = { - blockquote: wkt, - code: pkt, - def: ykt, - fences: gkt, - heading: mkt, +const pkt = /^(?: *(?:\n|$))+/, gkt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, mkt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yx = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, vkt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Nae = /(?:[*+-]|\d{1,9}[.)])/, Iae = en(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Nae).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(), nN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ykt = /^[^\n]+/, iN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, bkt = en(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", iN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), xkt = en(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Nae).getRegex(), VT = "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", sN = /|$))/, wkt = en("^ {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", sN).replace("tag", VT).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Pae = en(nN).replace("hr", yx).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", VT).getRegex(), Okt = en(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Pae).getRegex(), aN = { + blockquote: Okt, + code: gkt, + def: bkt, + fences: mkt, + heading: vkt, hr: yx, - html: xkt, + html: wkt, lheading: Iae, - list: bkt, - newline: dkt, + list: xkt, + newline: pkt, paragraph: Pae, table: ly, - text: vkt -}, Fq = en("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", yx).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", VT).getRegex(), Okt = { + text: ykt +}, Fq = en("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", yx).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", VT).getRegex(), kkt = { ...aN, table: Fq, paragraph: en(nN).replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Fq).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", VT).getRegex() -}, kkt = { +}, Skt = { ...aN, html: en(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", sN).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+|$)/, @@ -42071,27 +42082,27 @@ const dkt = /^(?: *(?:\n|$))+/, pkt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, gk lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: en(nN).replace("hr", yx).replace("heading", ` *#{1,6} *[^ ]`).replace("lheading", Iae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, $ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Skt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Bae = /^( {2,}|\\)\n(?!\s*$)/, Tkt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, _kt = en(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, bx).getRegex(), Akt = en("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, bx).getRegex(), Lkt = en("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, bx).getRegex(), Rkt = en(/\\([punct])/, "gu").replace(/punct/g, bx).getRegex(), Mkt = en(/^<(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(), Dkt = en(sN).replace("(?:-->|$)", "-->").getRegex(), Nkt = en("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Dkt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ikt = en(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", q3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Fae = en(/^!?\[(label)\]\[(ref)\]/).replace("label", q3).replace("ref", iN).getRegex(), zae = en(/^!?\[(ref)\](?:\[\])?/).replace("ref", iN).getRegex(), Pkt = en("reflink|nolink(?!\\()", "g").replace("reflink", Fae).replace("nolink", zae).getRegex(), oN = { +}, $ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Tkt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Bae = /^( {2,}|\\)\n(?!\s*$)/, Ckt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Akt = en(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, bx).getRegex(), Lkt = en("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, bx).getRegex(), Rkt = en("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, bx).getRegex(), Mkt = en(/\\([punct])/, "gu").replace(/punct/g, bx).getRegex(), Dkt = en(/^<(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(), Nkt = en(sN).replace("(?:-->|$)", "-->").getRegex(), Ikt = en("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Nkt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Pkt = en(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", q3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Fae = en(/^!?\[(label)\]\[(ref)\]/).replace("label", q3).replace("ref", iN).getRegex(), zae = en(/^!?\[(ref)\](?:\[\])?/).replace("ref", iN).getRegex(), $kt = en("reflink|nolink(?!\\()", "g").replace("reflink", Fae).replace("nolink", zae).getRegex(), oN = { _backpedal: ly, - anyPunctuation: Rkt, - autolink: Mkt, - blockSkip: Ekt, + anyPunctuation: Mkt, + autolink: Dkt, + blockSkip: _kt, br: Bae, - code: Skt, + code: Tkt, del: ly, - emStrongLDelim: _kt, - emStrongRDelimAst: Akt, - emStrongRDelimUnd: Lkt, + emStrongLDelim: Akt, + emStrongRDelimAst: Lkt, + emStrongRDelimUnd: Rkt, escape: $ae, - link: Ikt, + link: Pkt, nolink: zae, - punctuation: Ckt, + punctuation: Ekt, reflink: Fae, - reflinkSearch: Pkt, - tag: Nkt, - text: Tkt, + reflinkSearch: $kt, + tag: Ikt, + text: Ckt, url: ly -}, $kt = { +}, Bkt = { ...oN, link: en(/^!?\[(label)\]\((.*?)\)/).replace("label", q3).getRegex(), reflink: en(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q3).getRegex() @@ -42102,19 +42113,19 @@ const dkt = /^(?: *(?:\n|$))+/, pkt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, gk _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ 2 && d.push(w); + Vkt(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); @@ -43276,7 +43287,7 @@ function xx(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), Vkt(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), Ukt(t, i, n, s || 1); } class hN { constructor(e) { @@ -43300,7 +43311,7 @@ function YT(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 Ukt extends hN { +class qkt extends hN { fillPolygons(e, r) { let n = r.hachureGap; n < 0 && (n = 4 * r.strokeWidth), n = Math.max(n, 0.1); @@ -43310,13 +43321,13 @@ class Ukt extends hN { return { type: "fillSketch", ops: this.renderLines(a, r) }; } } -class qkt extends hN { +class Ykt extends hN { 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 Ykt { +class Qkt { constructor(e) { this.helper = e; } @@ -43341,7 +43352,7 @@ class Ykt { return { type: "fillSketch", ops: n }; } } -class Qkt { +class Wkt { constructor(e) { this.helper = e; } @@ -43363,7 +43374,7 @@ class Qkt { }), s; } } -class Wkt { +class Gkt { constructor(e) { this.helper = e; } @@ -43386,7 +43397,7 @@ class Wkt { } } const va = {}; -class Gkt { +class Hkt { constructor(e) { this.seed = e; } @@ -43394,7 +43405,7 @@ class Gkt { return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random(); } } -const Hkt = 0, i_ = 1, zq = 2, rO = { 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 }; +const Xkt = 0, i_ = 1, zq = 2, rO = { 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 s_(t, e) { return t.type === e; } @@ -43405,7 +43416,7 @@ function fN(t) { if (a.match(/^([ \t\r\n,]+)/)) a = a.substr(RegExp.$1.length); else if (a.match(/^([aAcChHlLmMqQsStTvVzZ])/)) - o[o.length] = { type: Hkt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); + o[o.length] = { type: Xkt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); else { if (!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return []; @@ -43599,7 +43610,7 @@ function roe(t, e, r, n, i, s, a, o, l, u) { return $; } } -const Xkt = { randOffset: function(t, e) { +const Zkt = { randOffset: function(t, e) { return jt(t, e); }, randOffsetWithRange: function(t, e, r) { return W3(t, e, r); @@ -43622,7 +43633,7 @@ function P4(t, e, r) { } return n === 2 ? noe(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; } -function Zkt(t, e, r, n, i) { +function jkt(t, e, r, n, i) { return function(s, a) { return P4(s, !0, a); }([[t, e], [t + r, e], [t + r, e + n], [t, e + n]], i); @@ -43687,7 +43698,7 @@ function qq(t, e) { break; case "C": { const [l, u, h, f, d, p] = o; - n.push(...jkt(l, u, h, f, d, p, s, e)), s = [d, p]; + n.push(...Kkt(l, u, h, f, d, p, s, e)), s = [d, p]; break; } case "Z": @@ -43714,32 +43725,32 @@ function dp(t, e) { if (!va[i]) switch (i) { case "zigzag": - va[i] || (va[i] = new Ukt(n)); + va[i] || (va[i] = new qkt(n)); break; case "cross-hatch": - va[i] || (va[i] = new qkt(n)); + va[i] || (va[i] = new Ykt(n)); break; case "dots": - va[i] || (va[i] = new Ykt(n)); + va[i] || (va[i] = new Qkt(n)); break; case "dashed": - va[i] || (va[i] = new Qkt(n)); + va[i] || (va[i] = new Wkt(n)); break; case "zigzag-line": - va[i] || (va[i] = new Wkt(n)); + va[i] || (va[i] = new Gkt(n)); break; default: i = "hachure", va[i] || (va[i] = new hN(n)); } return va[i]; - }(e, Xkt).fillPolygons(t, e); + }(e, Zkt).fillPolygons(t, e); } function Yq(t) { const e = Object.assign({}, t); return e.randomizer = void 0, t.seed && (e.seed = t.seed + 1), e; } function soe(t) { - return t.randomizer || (t.randomizer = new Gkt(t.seed || 0)), t.randomizer.next(); + return t.randomizer || (t.randomizer = new Hkt(t.seed || 0)), t.randomizer.next(); } function W3(t, e, r, n = 1) { return r.roughness * n * (soe(r) * (e - t) + t); @@ -43820,7 +43831,7 @@ function Wq(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)]), G3(h, null, l); } -function jkt(t, e, r, n, i, s, a, o) { +function Kkt(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; @@ -43855,7 +43866,7 @@ function Gq(t, e = 0) { function $4(t, e) { return Math.pow(t[0] - e[0], 2) + Math.pow(t[1] - e[1], 2); } -function Kkt(t, e, r) { +function Jkt(t, e, r) { const n = $4(e, r); if (n === 0) return $4(t, e); @@ -43887,14 +43898,14 @@ function Z8(t, e, r, n) { var s, a; return i; } -function Jkt(t, e) { +function eSt(t, e) { return H3(t, 0, t.length, e); } function H3(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 = Kkt(t[h], a, o); + const f = Jkt(t[h], a, o); f > l && (l = f, u = h); } return Math.sqrt(l) > n ? (H3(t, e, u + 1, n, s), H3(t, u, r, n, s)) : (s.length || s.push(a), s.push(o)), s; @@ -43924,7 +43935,7 @@ class X3 { return this._d("line", [noe(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 = jkt(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(a_([u], a)) : o.push(dp([u], a)); @@ -44029,7 +44040,7 @@ class X3 { return g; const O = []; for (const S of g) { - const C = Jkt(S, d); + const C = eSt(S, d); C.length && O.push(C); } return O; @@ -44090,7 +44101,7 @@ class X3 { return e.filter((r, n) => n === 0 || r.op !== "move"); } } -class eSt { +class tSt { constructor(e, r) { this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.gen = new X3(r); } @@ -44176,7 +44187,7 @@ class eSt { } } const iO = "http://www.w3.org/2000/svg"; -class tSt { +class rSt { constructor(e, r) { this.svg = e, this.gen = new X3(r); } @@ -44250,10 +44261,10 @@ class tSt { return this.draw(n); } } -var Bn = { canvas: (t, e) => new eSt(t, e), svg: (t, e) => new tSt(t, e), generator: (t) => new X3(t), newSeed: () => X3.newSeed() }, rSt = /* @__PURE__ */ x((t, e) => { +var Bn = { canvas: (t, e) => new tSt(t, e), svg: (t, e) => new rSt(t, e), generator: (t) => new X3(t), newSeed: () => X3.newSeed() }, nSt = /* @__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"), wx = rSt; +}, "intersectRect"), wx = nSt; function aoe(t, e) { e && t.attr("style", e); } @@ -44269,7 +44280,7 @@ async function ooe(t) { ), aoe(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(ooe, "addHtmlLabel"); -var nSt = /* @__PURE__ */ x(async (t, e, r, n) => { +var iSt = /* @__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); @@ -44293,7 +44304,7 @@ var nSt = /* @__PURE__ */ x(async (t, e, r, n) => { } return s; } -}, "createLabel"), Dd = nSt, Ox = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "createLabel"), Dd = iSt, Ox = /* @__PURE__ */ x((t, e, r, n, i) => [ "M", t + i, e, @@ -44350,9 +44361,9 @@ var nSt = /* @__PURE__ */ x(async (t, e, r, n) => { seed: e }; }, "solidStateFill"), loe = /* @__PURE__ */ x((t) => { - const e = iSt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); + const e = sSt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); return { stylesMap: e, stylesArray: [...e] }; -}, "compileStyles"), iSt = /* @__PURE__ */ x((t) => { +}, "compileStyles"), sSt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Map(); return t.forEach((r) => { const [n, i] = r.split(":"); @@ -44424,14 +44435,14 @@ var nSt = /* @__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 wx(e, T); }, { cluster: f, labelBBox: m }; -}, "rect"), sSt = /* @__PURE__ */ x((t, e) => { +}, "rect"), aSt = /* @__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 wx(e, o); }, { cluster: r, labelBBox: { width: 0, height: 0 } }; -}, "noteGroup"), aSt = /* @__PURE__ */ x(async (t, e) => { +}, "noteGroup"), oSt = /* @__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 Dd(e.label, e.labelStyle, void 0, !0)); @@ -44475,7 +44486,7 @@ var nSt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = L.height, e.offsetX = 0, e.offsetY = g.height - e.padding / 2, e.labelBBox = g, e.intersect = function(E) { return wx(e, E); }, { cluster: u, labelBBox: g }; -}, "roundedWithTitle"), oSt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), lSt = /* @__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; @@ -44499,20 +44510,20 @@ var nSt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = g.height, e.offsetX = 0, e.offsetY = 0, e.intersect = function(m) { return wx(e, m); }, { cluster: a, labelBBox: {} }; -}, "divider"), lSt = coe, cSt = { +}, "divider"), cSt = coe, uSt = { rect: coe, - squareRect: lSt, - roundedWithTitle: aSt, - noteGroup: sSt, - divider: oSt + squareRect: cSt, + roundedWithTitle: oSt, + noteGroup: aSt, + divider: lSt }, uoe = /* @__PURE__ */ new Map(), hoe = /* @__PURE__ */ x(async (t, e) => { - const r = e.shape || "rect", n = await cSt[r](t, e); + const r = e.shape || "rect", n = await uSt[r](t, e); return uoe.set(e.id, n), n; -}, "insertCluster"), uSt = /* @__PURE__ */ x(() => { +}, "insertCluster"), hSt = /* @__PURE__ */ x(() => { uoe = /* @__PURE__ */ new Map(); -}, "clear"), hSt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "clear"), fSt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && Hq(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && Hq(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), fSt = { +}, "addEdgeMarkers"), dSt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -44523,14 +44534,14 @@ var nSt = /* @__PURE__ */ x(async (t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, Hq = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = fSt[r]; + const a = dSt[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"), Z3 = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new Map(), dSt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), Z3 = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new Map(), pSt = /* @__PURE__ */ x(() => { Z3.clear(), ts.clear(); }, "clear"), Jm = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), foe = /* @__PURE__ */ x(async (t, e) => { let r = bn(be().flowchart.htmlLabels); @@ -44649,10 +44660,10 @@ var doe = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), pSt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), gSt = /* @__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"), gSt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), mSt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -44677,8 +44688,8 @@ var doe = /* @__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), !pSt(e, s) && !i) { - const a = gSt(e, n, s); + if (X.info("abc88 checking point", s, e), !gSt(e, s) && !i) { + const a = mSt(e, n, s); X.debug("abc88 inside", s, n, a), X.debug("abc88 intersection", a, e); let o = !1; r.forEach((l) => { @@ -44700,7 +44711,7 @@ x(poe, "extractCornerPoints"); var Zq = /* @__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"), mSt = /* @__PURE__ */ x(function(t) { +}, "findAdjacentPoint"), vSt = /* @__PURE__ */ x(function(t) { const { cornerPointPositions: e } = poe(t), r = []; for (let n = 0; n < t.length; n++) if (e.includes(n)) { @@ -44751,7 +44762,7 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { JSON.stringify(l, null, 2) ), l = Xq(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); let d = l.filter((L) => !Number.isNaN(L.y)); - d = mSt(d); + d = vSt(d); let p = d[d.length - 1]; if (d.length > 1) { p = d[d.length - 1]; @@ -44803,42 +44814,42 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { } 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, "") : ""); 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), hSt(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), fSt(w, e, C, a, n); let T = {}; return u && (T.updatedPath = l), T.originalPath = e.points, T; -}, "insertEdge"), vSt = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), ySt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - ESt[i](t, r, n); + _St[i](t, r, n); }); -}, "insertMarkers"), ySt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), bSt = /* @__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"), bSt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), xSt = /* @__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"), xSt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), wSt = /* @__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"), wSt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), OSt = /* @__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"), OSt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), kSt = /* @__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"), kSt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), SSt = /* @__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"), SSt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), TSt = /* @__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"), TSt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), CSt = /* @__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"), CSt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), ESt = /* @__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"), ESt = { - extension: ySt, - composition: bSt, - aggregation: xSt, - dependency: wSt, - lollipop: OSt, - point: kSt, - circle: SSt, - cross: TSt, - barb: CSt -}, moe = vSt, Qs = /* @__PURE__ */ x(async (t, e, r) => { +}, "barb"), _St = { + extension: bSt, + composition: xSt, + aggregation: wSt, + dependency: OSt, + lollipop: kSt, + point: SSt, + circle: TSt, + cross: CSt, + barb: ESt +}, moe = ySt, Qs = /* @__PURE__ */ x(async (t, e, r) => { let n; const i = e.useHtmlLabels || bn(be().flowchart.htmlLabels); r ? n = r : n = "node default"; @@ -44887,7 +44898,7 @@ function voe(t, e) { return t.intersect(e); } x(voe, "intersectNode"); -var _St = voe; +var ASt = voe; function yoe(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); @@ -44900,7 +44911,7 @@ function xoe(t, e, r) { return boe(t, e, e, r); } x(xoe, "intersectCircle"); -var ASt = xoe; +var LSt = xoe; function woe(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 && j8(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 && j8(h, f)) && (g = i * o - s * a, g !== 0))) @@ -44911,7 +44922,7 @@ function j8(t, e) { return t * e > 0; } x(j8, "sameSign"); -var LSt = woe; +var RSt = woe; function Ooe(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) { @@ -44919,7 +44930,7 @@ function Ooe(t, e, r) { }) : (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 = LSt( + let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = RSt( t, r, { x: l + f.x, y: u + f.y }, @@ -44933,11 +44944,11 @@ function Ooe(t, e, r) { }), s[0]) : t; } x(Ooe, "intersectPolygon"); -var RSt = Ooe, si = { - node: _St, - circle: ASt, +var MSt = Ooe, si = { + node: ASt, + circle: LSt, ellipse: boe, - polygon: RSt, + polygon: MSt, rect: wx }, dN = /* @__PURE__ */ x(async (t, e, r) => { const { labelStyles: n, nodeStyles: i } = Ys(e); @@ -44953,11 +44964,11 @@ var RSt = Ooe, si = { return ii(e, f), e.intersect = function(m) { return si.rect(e, m); }, s; -}, "drawRect"), MSt = /* @__PURE__ */ x(async (t, e) => dN(t, e, { +}, "drawRect"), DSt = /* @__PURE__ */ x(async (t, e) => dN(t, e, { rx: 5, ry: 5, classes: "flowchart-node" -}), "state"), DSt = /* @__PURE__ */ x(async (t, e) => { +}), "state"), NSt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 5, ry: 5, @@ -44966,7 +44977,7 @@ var RSt = Ooe, si = { labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; return dN(t, e, r); -}, "roundedRect"), NSt = /* @__PURE__ */ x(async (t, e) => { +}, "roundedRect"), ISt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 0, ry: 0, @@ -44975,7 +44986,7 @@ var RSt = Ooe, si = { labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; return dN(t, e, r); -}, "squareRect"), ISt = /* @__PURE__ */ x((t, e) => { +}, "squareRect"), PSt = /* @__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") { @@ -44986,7 +44997,7 @@ var RSt = Ooe, 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"), PSt = /* @__PURE__ */ x((t, e) => { +}, "stateStart"), $St = /* @__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") { @@ -45013,7 +45024,7 @@ var RSt = Ooe, 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"), $St = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), BSt = /* @__PURE__ */ x((t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(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 = [ @@ -45038,7 +45049,7 @@ var RSt = Ooe, 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"), BSt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), FSt = /* @__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 Qs(t, e, "node " + e.cssClasses); @@ -45060,7 +45071,7 @@ var RSt = Ooe, si = { return ii(e, h), e.intersect = function(m) { return si.rect(e, m); }, o; -}, "note"), FSt = /* @__PURE__ */ x(async (t, e) => { +}, "note"), zSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.height + e.padding, o = s.width + a / 4 + e.padding; @@ -45074,7 +45085,7 @@ var RSt = Ooe, si = { return ii(e, l), e.intersect = function(h) { return si.rect(e, h); }, i; -}, "stadium"), zSt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), VSt = /* @__PURE__ */ x(async (t, e) => { var L, E; const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; @@ -45136,7 +45147,7 @@ function uh(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(uh, "insertPolygonShape"); -var VSt = /* @__PURE__ */ x(async (t, e) => { +var USt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(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 = [ @@ -45163,31 +45174,31 @@ var VSt = /* @__PURE__ */ x(async (t, e) => { return e.intersect = function(d) { return si.polygon(e, f, d); }, i; -}, "subroutine"), USt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +}, "subroutine"), qSt = /* @__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"), qSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +].join(" "), "createCylinderPathD"), YSt = /* @__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"), YSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), QSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createOuterCylinderPathD"), QSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), WSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(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 = qSt(0, 0, a, u, o, l), g = YSt(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 = YSt(0, 0, a, u, o, l), g = QSt(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 = USt(0, 0, a, u, o, l); + const d = qSt(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) { @@ -45199,7 +45210,7 @@ var VSt = /* @__PURE__ */ x(async (t, e) => { } return p; }, i; -}, "cylinder"), WSt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), GSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s, halfPadding: a } = await Qs(t, e, po(e)), o = s.width / 2 + a; @@ -45213,7 +45224,7 @@ var VSt = /* @__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"), GSt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), HSt = /* @__PURE__ */ x(async (t, e) => { var d, p; const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; @@ -45231,14 +45242,14 @@ var VSt = /* @__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"), HSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "doublecircle"), XSt = /* @__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"), XSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createPolygonPathD"), ZSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45251,20 +45262,20 @@ var VSt = /* @__PURE__ */ x(async (t, e) => { 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 + 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"), jSt = /* @__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"), jSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createDecisionBoxPathD"), KSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = a + o, u = [ @@ -45276,7 +45287,7 @@ var VSt = /* @__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 = jSt(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); @@ -45294,7 +45305,7 @@ res:`, si.polygon(e, u, d) ), si.polygon(e, u, d); }, i; -}, "question"), KSt = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "question"), JSt = /* @__PURE__ */ x((t, e, r, n, i) => [ `M${t + i},${e}`, `L${t + r - i},${e}`, `L${t + r},${e - n / 2}`, @@ -45302,7 +45313,7 @@ res:`, `L${t + i},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createHexagonPathD"), JSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createHexagonPathD"), eTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = 4, o = s.height + e.padding, l = o / a, u = s.width + 2 * l + e.padding, h = [ @@ -45316,20 +45327,20 @@ res:`, let f; const { cssStyles: d } = e; if (e.look === "handDrawn") { - const p = Bn.svg(i), g = gs(e, {}), m = KSt(0, 0, u, o, l), v = p.path(m, g); + const p = Bn.svg(i), g = gs(e, {}), m = JSt(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"), eTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "hexagon"), tTt = /* @__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"), tTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanRightPathD"), rTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45341,20 +45352,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = eTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = tTt(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"), rTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_right"), nTt = /* @__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"), nTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanLeftPathD"), iTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45366,20 +45377,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = rTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = nTt(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"), iTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_left"), sTt = /* @__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"), sTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createTrapezoidPathD"), aTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45391,20 +45402,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = iTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = sTt(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"), aTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "trapezoid"), oTt = /* @__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"), oTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createInvertedTrapezoidPathD"), lTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45416,42 +45427,42 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = aTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = oTt(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"), lTt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), cTt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await Qs(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"), Kq = { - state: MSt, - stateStart: ISt, - stateEnd: PSt, + state: DSt, + stateStart: PSt, + stateEnd: $St, fork: jq, join: jq, - choice: $St, - note: BSt, - roundedRect: DSt, - rectWithTitle: zSt, - squareRect: NSt, - stadium: FSt, - subroutine: VSt, - cylinder: QSt, - circle: WSt, - doublecircle: GSt, - odd: XSt, - diamond: jSt, - hexagon: JSt, - lean_right: tTt, - lean_left: nTt, - trapezoid: sTt, - inv_trapezoid: oTt, - labelRect: lTt + choice: BSt, + note: FSt, + roundedRect: NSt, + rectWithTitle: VSt, + squareRect: ISt, + stadium: zSt, + subroutine: USt, + cylinder: WSt, + circle: GSt, + doublecircle: HSt, + odd: ZSt, + diamond: KSt, + hexagon: eTt, + lean_right: rTt, + lean_left: iTt, + trapezoid: aTt, + inv_trapezoid: lTt, + labelRect: cTt }, sg = /* @__PURE__ */ new Map(), koe = /* @__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) { @@ -45460,9 +45471,9 @@ res:`, } else i = await Kq[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), sg.set(e.id, n), e.haveCallback && sg.get(e.id).attr("class", sg.get(e.id).attr("class") + " clickable"), n; -}, "insertNode"), cTt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), uTt = /* @__PURE__ */ x((t, e) => { sg.set(e.id, t); -}, "setNodeElem"), uTt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), hTt = /* @__PURE__ */ x(() => { sg.clear(); }, "clear"), Jq = /* @__PURE__ */ x((t) => { const e = sg.get(t.id); @@ -45477,7 +45488,7 @@ 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"), hTt = { +}, "positionNode"), fTt = { common: at, getConfig: pi, insertCluster: hoe, @@ -45492,23 +45503,23 @@ res:`, }, y2 = {}, Soe = /* @__PURE__ */ x((t) => { for (const e of t) y2[e.name] = e; -}, "registerLayoutLoaders"), fTt = /* @__PURE__ */ x(() => { +}, "registerLayoutLoaders"), dTt = /* @__PURE__ */ x(() => { Soe([ { name: "dagre", - loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => bIt), "loader") + loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => xIt), "loader") } ]); }, "registerDefaultLayoutLoaders"); -fTt(); +dTt(); var Toe = /* @__PURE__ */ x(async (t, e) => { if (!(t.layoutAlgorithm in y2)) throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`); const r = y2[t.layoutAlgorithm]; - return (await r.loader()).render(t, e, hTt, { + return (await r.loader()).render(t, e, fTt, { algorithm: r.algorithm }); -}, "render"), dTt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { +}, "render"), pTt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { if (t in y2) return t; if (e in y2) @@ -45523,14 +45534,14 @@ var Toe = /* @__PURE__ */ x(async (t, e) => { r = et(o.body); } return r.select(`#${t}`); -}, "selectSvgElement"), Coe = "comm", Eoe = "rule", _oe = "decl", pTt = "@import", gTt = "@keyframes", mTt = "@layer", Aoe = Math.abs, pN = String.fromCharCode; +}, "selectSvgElement"), Coe = "comm", Eoe = "rule", _oe = "decl", gTt = "@import", mTt = "@keyframes", vTt = "@layer", Aoe = Math.abs, pN = String.fromCharCode; function Loe(t) { return t.trim(); } function B4(t, e, r) { return t.replace(e, r); } -function vTt(t, e, r) { +function yTt(t, e, r) { return t.indexOf(e, r); } function b2(t, e) { @@ -45542,7 +45553,7 @@ function n1(t, e, r) { function ac(t) { return t.length; } -function yTt(t) { +function bTt(t) { return t.length; } function sO(t, e) { @@ -45552,10 +45563,10 @@ var QT = 1, i1 = 1, Roe = 0, Zo = 0, ci = 0, rm = ""; function gN(t, e, r, n, i, s, a, o) { return { value: t, root: e, parent: r, type: n, props: i, children: s, line: QT, column: i1, length: a, return: "", siblings: o }; } -function bTt() { +function xTt() { return ci; } -function xTt() { +function wTt() { return ci = Zo > 0 ? b2(rm, --Zo) : 0, i1--, ci === 10 && (i1 = 1, QT--), ci; } function kl() { @@ -45602,21 +45613,21 @@ function x2(t) { } return 0; } -function wTt(t) { +function OTt(t) { return QT = i1 = 1, Roe = ac(rm = t), Zo = 0, []; } -function OTt(t) { +function kTt(t) { return rm = "", t; } function l_(t) { return Loe(WT(Zo - 1, J8(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function kTt(t) { +function STt(t) { for (; (ci = Vh()) && ci < 33; ) kl(); return x2(t) > 2 || x2(ci) > 3 ? "" : " "; } -function STt(t, e) { +function TTt(t, e) { for (; --e && kl() && !(ci < 48 || ci > 102 || ci > 57 && ci < 65 || ci > 70 && ci < 97); ) ; return WT(t, F4() + (e < 6 && Vh() == 32 && kl() == 32)); @@ -45639,26 +45650,26 @@ function J8(t) { } return Zo; } -function TTt(t, e) { +function CTt(t, e) { for (; kl() && t + ci !== 47 + 10; ) if (t + ci === 42 + 42 && Vh() === 47) break; return "/*" + WT(e, Zo - 1) + "*" + pN(t === 47 ? t : kl()); } -function CTt(t) { +function ETt(t) { for (; !x2(Vh()); ) kl(); return WT(t, Zo); } -function ETt(t) { - return OTt(z4("", null, null, null, [""], t = wTt(t), 0, [0], t)); +function _Tt(t) { + return kTt(z4("", null, null, null, [""], t = OTt(t), 0, [0], t)); } function z4(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 && b2(T, f - 1) == 58) { - vTt(T += B4(l_(b), "&", "&\f"), "&\f", Aoe(u ? o[u - 1] : 0)) != -1 && (y = -1); + yTt(T += B4(l_(b), "&", "&\f"), "&\f", Aoe(u ? o[u - 1] : 0)) != -1 && (y = -1); break; } case 34: @@ -45670,16 +45681,16 @@ function z4(t, e, r, n, i, s, a, o, l) { case 10: case 13: case 32: - T += kTt(g); + T += STt(g); break; case 92: - T += STt(F4() - 1, 7); + T += TTt(F4() - 1, 7); continue; case 47: switch (Vh()) { case 42: case 47: - sO(_Tt(TTt(kl(), F4()), e, r, l), l), (x2(g || 1) == 5 || x2(Vh() || 1) == 5) && ac(T) && n1(T, -1, void 0) !== " " && (T += " "); + sO(ATt(CTt(kl(), F4()), e, r, l), l), (x2(g || 1) == 5 || x2(Vh() || 1) == 5) && ac(T) && n1(T, -1, void 0) !== " " && (T += " "); break; default: T += "/"; @@ -45723,7 +45734,7 @@ function z4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && xTt() == 125) + else if (b == 125 && m++ == 0 && wTt() == 125) continue; } switch (T += pN(b), b * m) { @@ -45734,7 +45745,7 @@ function z4(t, e, r, n, i, s, a, o, l) { o[u++] = (ac(T) - 1) * y, y = 1; break; case 64: - Vh() === 45 && (T += l_(kl())), d = Vh(), h = f = ac(w = T += CTt(F4())), b++; + Vh() === 45 && (T += l_(kl())), d = Vh(), h = f = ac(w = T += ETt(F4())), b++; break; case 45: g === 45 && ac(T) == 2 && (m = 0); @@ -45743,13 +45754,13 @@ function z4(t, e, r, n, i, s, a, o, l) { return s; } function eY(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = yTt(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var d = i - 1, p = i === 0 ? s : [""], g = bTt(p), m = 0, v = 0, y = 0; m < n; ++m) for (var b = 0, w = n1(t, d + 1, d = Aoe(v = a[m])), O = t; b < g; ++b) (O = Loe(v > 0 ? p[b] + " " + w : B4(w, /&\f/g, p[b]))) && (l[y++] = O); return gN(t, e, r, i === 0 ? Eoe : o, l, u, h, f); } -function _Tt(t, e, r, n) { - return gN(t, e, r, Coe, pN(bTt()), n1(t, 2, -2), 0, n); +function ATt(t, e, r, n) { + return gN(t, e, r, Coe, pN(xTt()), n1(t, 2, -2), 0, n); } function tY(t, e, r, n, i) { return gN(t, e, r, _oe, n1(t, 0, n), n1(t, n + 1, -1), n, i); @@ -45759,17 +45770,17 @@ function eL(t, e) { r += e(t[n], n, t, e) || ""; return r; } -function ATt(t, e, r, n) { +function LTt(t, e, r, n) { switch (t.type) { - case mTt: + case vTt: if (t.children.length) break; - case pTt: + case gTt: case _oe: return t.return = t.return || t.value; case Coe: return ""; - case gTt: + case mTt: return t.return = t.value + "{" + eL(t.children, n) + "}"; case Eoe: if (!ac(t.value = t.props.join(","))) @@ -45777,198 +45788,198 @@ function ATt(t, e, r, n) { } return ac(r = eL(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -var LTt = cae(Object.keys, Object); -const RTt = LTt; -var MTt = Object.prototype, DTt = MTt.hasOwnProperty; +var RTt = cae(Object.keys, Object); +const MTt = RTt; +var DTt = Object.prototype, NTt = DTt.hasOwnProperty; function Moe(t) { if (!dx(t)) - return RTt(t); + return MTt(t); var e = []; for (var r in Object(t)) - DTt.call(t, r) && r != "constructor" && e.push(r); + NTt.call(t, r) && r != "constructor" && e.push(r); return e; } -var NTt = W0(Gl, "DataView"); -const tL = NTt; -var ITt = W0(Gl, "Promise"); -const rL = ITt; -var PTt = W0(Gl, "Set"); -const ag = PTt; -var $Tt = W0(Gl, "WeakMap"); -const nL = $Tt; -var rY = "[object Map]", BTt = "[object Object]", nY = "[object Promise]", iY = "[object Set]", sY = "[object WeakMap]", aY = "[object DataView]", FTt = Q0(tL), zTt = Q0(m2), VTt = Q0(rL), UTt = Q0(ag), qTt = Q0(nL), ud = ah; +var ITt = W0(Gl, "DataView"); +const tL = ITt; +var PTt = W0(Gl, "Promise"); +const rL = PTt; +var $Tt = W0(Gl, "Set"); +const ag = $Tt; +var BTt = W0(Gl, "WeakMap"); +const nL = BTt; +var rY = "[object Map]", FTt = "[object Object]", nY = "[object Promise]", iY = "[object Set]", sY = "[object WeakMap]", aY = "[object DataView]", zTt = Q0(tL), VTt = Q0(m2), UTt = Q0(rL), qTt = Q0(ag), YTt = Q0(nL), ud = ah; (tL && ud(new tL(new ArrayBuffer(1))) != aY || m2 && ud(new m2()) != rY || rL && ud(rL.resolve()) != nY || ag && ud(new ag()) != iY || nL && ud(new nL()) != sY) && (ud = function(t) { - var e = ah(t), r = e == BTt ? t.constructor : void 0, n = r ? Q0(r) : ""; + var e = ah(t), r = e == FTt ? t.constructor : void 0, n = r ? Q0(r) : ""; if (n) switch (n) { - case FTt: - return aY; case zTt: - return rY; + return aY; case VTt: - return nY; + return rY; case UTt: - return iY; + return nY; case qTt: + return iY; + case YTt: return sY; } return e; }); const s1 = ud; -var YTt = "[object Map]", QTt = "[object Set]", WTt = Object.prototype, GTt = WTt.hasOwnProperty; +var QTt = "[object Map]", WTt = "[object Set]", GTt = Object.prototype, HTt = GTt.hasOwnProperty; function $r(t) { if (t == null) return !0; if (jc(t) && (Sr(t) || typeof t == "string" || typeof t.splice == "function" || r1(t) || FT(t) || t1(t))) return !t.length; var e = s1(t); - if (e == YTt || e == QTt) + if (e == QTt || e == WTt) return !t.size; if (dx(t)) return !Moe(t).length; for (var r in t) - if (GTt.call(t, r)) + if (HTt.call(t, r)) return !1; return !0; } -var Doe = "c4", HTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), XTt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => vPt); +var Doe = "c4", XTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), ZTt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => yPt); return { id: Doe, diagram: t }; -}, "loader"), ZTt = { +}, "loader"), jTt = { id: Doe, - detector: HTt, - loader: XTt -}, jTt = ZTt, Noe = "flowchart", KTt = /* @__PURE__ */ x((t, e) => { + detector: XTt, + loader: ZTt +}, KTt = jTt, Noe = "flowchart", JTt = /* @__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"), JTt = /* @__PURE__ */ x(async () => { +}, "detector"), eCt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => wI); return { id: Noe, diagram: t }; -}, "loader"), eCt = { +}, "loader"), tCt = { id: Noe, - detector: KTt, - loader: JTt -}, tCt = eCt, Ioe = "flowchart-v2", rCt = /* @__PURE__ */ x((t, e) => { + detector: JTt, + loader: eCt +}, rCt = tCt, Ioe = "flowchart-v2", nCt = /* @__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"), nCt = /* @__PURE__ */ x(async () => { +}, "detector"), iCt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => wI); return { id: Ioe, diagram: t }; -}, "loader"), iCt = { +}, "loader"), sCt = { id: Ioe, - detector: rCt, - loader: nCt -}, sCt = iCt, Poe = "er", aCt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), oCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => xBt); + detector: nCt, + loader: iCt +}, aCt = sCt, Poe = "er", oCt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), lCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => wBt); return { id: Poe, diagram: t }; -}, "loader"), lCt = { +}, "loader"), cCt = { id: Poe, - detector: aCt, - loader: oCt -}, cCt = lCt, $oe = "gitGraph", uCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), hCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => zQt); + detector: oCt, + loader: lCt +}, uCt = cCt, $oe = "gitGraph", hCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), fCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => VQt); return { id: $oe, diagram: t }; -}, "loader"), fCt = { +}, "loader"), dCt = { id: $oe, - detector: uCt, - loader: hCt -}, dCt = fCt, Boe = "gantt", pCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), gCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => NWt); + detector: hCt, + loader: fCt +}, pCt = dCt, Boe = "gantt", gCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), mCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => IWt); return { id: Boe, diagram: t }; -}, "loader"), mCt = { +}, "loader"), vCt = { id: Boe, - detector: pCt, - loader: gCt -}, vCt = mCt, Foe = "info", yCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), bCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => UWt); + detector: gCt, + loader: mCt +}, yCt = vCt, Foe = "info", bCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), xCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => qWt); return { id: Foe, diagram: t }; -}, "loader"), xCt = { +}, "loader"), wCt = { id: Foe, - detector: yCt, - loader: bCt -}, zoe = "pie", wCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), OCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => iGt); + detector: bCt, + loader: xCt +}, zoe = "pie", OCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), kCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => sGt); return { id: zoe, diagram: t }; -}, "loader"), kCt = { +}, "loader"), SCt = { id: zoe, - detector: wCt, - loader: OCt -}, Voe = "quadrantChart", SCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), TCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => dGt); + detector: OCt, + loader: kCt +}, Voe = "quadrantChart", TCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), CCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => pGt); return { id: Voe, diagram: t }; -}, "loader"), CCt = { +}, "loader"), ECt = { id: Voe, - detector: SCt, - loader: TCt -}, ECt = CCt, Uoe = "xychart", _Ct = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), ACt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => _Gt); + detector: TCt, + loader: CCt +}, _Ct = ECt, Uoe = "xychart", ACt = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), LCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => AGt); return { id: Uoe, diagram: t }; -}, "loader"), LCt = { +}, "loader"), RCt = { id: Uoe, - detector: _Ct, - loader: ACt -}, RCt = LCt, qoe = "requirement", MCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), DCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => aHt); + detector: ACt, + loader: LCt +}, MCt = RCt, qoe = "requirement", DCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), NCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => oHt); return { id: qoe, diagram: t }; -}, "loader"), NCt = { +}, "loader"), ICt = { id: qoe, - detector: MCt, - loader: DCt -}, ICt = NCt, Yoe = "sequence", PCt = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), $Ct = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => oXt); + detector: DCt, + loader: NCt +}, PCt = ICt, Yoe = "sequence", $Ct = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), BCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => lXt); return { id: Yoe, diagram: t }; -}, "loader"), BCt = { +}, "loader"), FCt = { id: Yoe, - detector: PCt, - loader: $Ct -}, FCt = BCt, Qoe = "class", zCt = /* @__PURE__ */ x((t, e) => { + detector: $Ct, + loader: BCt +}, zCt = FCt, Qoe = "class", VCt = /* @__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"), VCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => UXt); +}, "detector"), UCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => qXt); return { id: Qoe, diagram: t }; -}, "loader"), UCt = { +}, "loader"), qCt = { id: Qoe, - detector: zCt, - loader: VCt -}, qCt = UCt, Woe = "classDiagram", YCt = /* @__PURE__ */ x((t, e) => { + detector: VCt, + loader: UCt +}, YCt = qCt, Woe = "classDiagram", QCt = /* @__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"), QCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => SZt); +}, "detector"), WCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => TZt); return { id: Woe, diagram: t }; -}, "loader"), WCt = { +}, "loader"), GCt = { id: Woe, - detector: YCt, - loader: QCt -}, GCt = WCt, Goe = "state", HCt = /* @__PURE__ */ x((t, e) => { + detector: QCt, + loader: WCt +}, HCt = GCt, Goe = "state", XCt = /* @__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"), XCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Ijt); +}, "detector"), ZCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Pjt); return { id: Goe, diagram: t }; -}, "loader"), ZCt = { +}, "loader"), jCt = { id: Goe, - detector: HCt, - loader: XCt -}, jCt = ZCt, Hoe = "stateDiagram", KCt = /* @__PURE__ */ x((t, e) => { + detector: XCt, + loader: ZCt +}, KCt = jCt, Hoe = "stateDiagram", JCt = /* @__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"), JCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => $jt); +}, "detector"), eEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Bjt); return { id: Hoe, diagram: t }; -}, "loader"), eEt = { +}, "loader"), tEt = { id: Hoe, - detector: KCt, - loader: JCt -}, tEt = eEt, Xoe = "journey", rEt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), nEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => sKt); + detector: JCt, + loader: eEt +}, rEt = tEt, Xoe = "journey", nEt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), iEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => aKt); return { id: Xoe, diagram: t }; -}, "loader"), iEt = { +}, "loader"), sEt = { id: Xoe, - detector: rEt, - loader: nEt -}, sEt = iEt, aEt = /* @__PURE__ */ x((t, e, r) => { + detector: nEt, + loader: iEt +}, aEt = sEt, oEt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering svg for syntax error `); const n = Z0(e), i = n.append("g"); @@ -45991,67 +46002,67 @@ var Doe = "c4", HTt = /* @__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"), Zoe = { draw: aEt }, oEt = Zoe, lEt = { +}, "draw"), Zoe = { draw: oEt }, lEt = Zoe, cEt = { db: {}, renderer: Zoe, parser: { parse: /* @__PURE__ */ x(() => { }, "parse") } -}, cEt = lEt, joe = "flowchart-elk", uEt = /* @__PURE__ */ x((t, e = {}) => { +}, uEt = cEt, joe = "flowchart-elk", hEt = /* @__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"), hEt = /* @__PURE__ */ x(async () => { +}, "detector"), fEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => wI); return { id: joe, diagram: t }; -}, "loader"), fEt = { +}, "loader"), dEt = { id: joe, - detector: uEt, - loader: hEt -}, dEt = fEt, Koe = "timeline", pEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), gEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => EKt); + detector: hEt, + loader: fEt +}, pEt = dEt, Koe = "timeline", gEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), mEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => _Kt); return { id: Koe, diagram: t }; -}, "loader"), mEt = { +}, "loader"), vEt = { id: Koe, - detector: pEt, - loader: gEt -}, vEt = mEt, Joe = "mindmap", yEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), bEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Far); + detector: gEt, + loader: mEt +}, yEt = vEt, Joe = "mindmap", bEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), xEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => zar); return { id: Joe, diagram: t }; -}, "loader"), xEt = { +}, "loader"), wEt = { id: Joe, - detector: yEt, - loader: bEt -}, wEt = xEt, ele = "sankey", OEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), kEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Oor); + detector: bEt, + loader: xEt +}, OEt = wEt, ele = "sankey", kEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), SEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => kor); return { id: ele, diagram: t }; -}, "loader"), SEt = { +}, "loader"), TEt = { id: ele, - detector: OEt, - loader: kEt -}, TEt = SEt, tle = "packet", CEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), EEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Bor); + detector: kEt, + loader: SEt +}, CEt = TEt, tle = "packet", EEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), _Et = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => For); return { id: tle, diagram: t }; -}, "loader"), _Et = { +}, "loader"), AEt = { id: tle, - detector: CEt, - loader: EEt -}, rle = "block", AEt = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), LEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => flr); + detector: EEt, + loader: _Et +}, rle = "block", LEt = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), REt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => dlr); return { id: rle, diagram: t }; -}, "loader"), REt = { +}, "loader"), MEt = { id: rle, - detector: AEt, - loader: LEt -}, MEt = REt, nle = "architecture", DEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), NEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Hlr); + detector: LEt, + loader: REt +}, DEt = MEt, nle = "architecture", NEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), IEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Xlr); return { id: nle, diagram: t }; -}, "loader"), IEt = { +}, "loader"), PEt = { id: nle, - detector: DEt, - loader: NEt -}, PEt = IEt, oY = !1, GT = /* @__PURE__ */ x(() => { - oY || (oY = !0, v3("error", cEt, (t) => t.toLowerCase().trim() === "error"), v3( + detector: NEt, + loader: IEt +}, $Et = PEt, oY = !1, GT = /* @__PURE__ */ x(() => { + oY || (oY = !0, v3("error", uEt, (t) => t.toLowerCase().trim() === "error"), v3( "---", { db: { @@ -46074,32 +46085,32 @@ var Doe = "c4", HTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp }, (t) => t.toLowerCase().trimStart().startsWith("---") ), Sie( - jTt, - GCt, - qCt, - cCt, - vCt, - xCt, - kCt, - ICt, - FCt, - dEt, - sCt, - tCt, - wEt, - vEt, - dCt, - tEt, - jCt, - sEt, - ECt, - TEt, - _Et, - RCt, - MEt, - PEt + KTt, + HCt, + YCt, + uCt, + yCt, + wCt, + SCt, + PCt, + zCt, + pEt, + aCt, + rCt, + OEt, + yEt, + pCt, + rEt, + KCt, + aEt, + _Ct, + CEt, + AEt, + MCt, + DEt, + $Et )); -}, "addDiagrams"), $Et = /* @__PURE__ */ x(async () => { +}, "addDiagrams"), BEt = /* @__PURE__ */ x(async () => { X.debug("Loading registered diagrams"); const e = (await Promise.allSettled( Object.entries(Qg).map(async ([r, { detector: n, loader: i }]) => { @@ -46122,9 +46133,9 @@ var Doe = "c4", HTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp X.error(r); throw new Error(`Failed to load ${e.length} external diagrams`); } -}, "loadRegisteredDiagrams"), BEt = "graphics-document document"; +}, "loadRegisteredDiagrams"), FEt = "graphics-document document"; function ile(t, e) { - t.attr("role", BEt), e !== "" && t.attr("aria-roledescription", e); + t.attr("role", FEt), e !== "" && t.attr("aria-roledescription", e); } x(ile, "setA11yDiagramInfo"); function sle(t, e, r, n) { @@ -46147,12 +46158,12 @@ var M1, iL = (M1 = class { static async fromText(e, r = {}) { var u, h; const n = pi(), i = TD(e, n); - e = ikt(e) + ` + e = skt(e) + ` `; try { T8(i); } catch { - const f = Jmt(i); + const f = evt(i); if (!f) throw new kie(`Diagram ${i} not found.`); const { id: d, diagram: p } = await f(); @@ -46172,11 +46183,11 @@ var M1, iL = (M1 = class { } }, (() => { x(M1, "Diagram"); -})(), M1), lY = [], FEt = /* @__PURE__ */ x(() => { +})(), M1), lY = [], zEt = /* @__PURE__ */ x(() => { lY.forEach((t) => { t(); }), lY = []; -}, "attachFunctions"), zEt = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); +}, "attachFunctions"), VEt = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); function mN(t) { return typeof t > "u" || t === null; } @@ -46208,13 +46219,13 @@ function ule(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } x(ule, "isNegativeZero"); -var VEt = mN, UEt = ale, qEt = ole, YEt = cle, QEt = ule, WEt = lle, Ei = { - isNothing: VEt, - isObject: UEt, - toArray: qEt, - repeat: YEt, - isNegativeZero: QEt, - extend: WEt +var UEt = mN, qEt = ale, YEt = ole, QEt = cle, WEt = ule, GEt = lle, Ei = { + isNothing: UEt, + isObject: qEt, + toArray: YEt, + repeat: QEt, + isNegativeZero: WEt, + extend: GEt }; function vN(t, e) { var r = "", n = t.reason || "(unknown reason)"; @@ -46276,7 +46287,7 @@ function hle(t, e) { return o.replace(/\n$/, ""); } x(hle, "makeSnippet"); -var GEt = hle, HEt = [ +var HEt = hle, XEt = [ "kind", "multi", "resolve", @@ -46287,7 +46298,7 @@ var GEt = hle, HEt = [ "representName", "defaultStyle", "styleAliases" -], XEt = [ +], ZEt = [ "scalar", "sequence", "mapping" @@ -46303,13 +46314,13 @@ function fle(t) { x(fle, "compileStyleAliases"); function dle(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (HEt.indexOf(r) === -1) + if (XEt.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 = fle(e.styleAliases || null), XEt.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 = fle(e.styleAliases || null), ZEt.indexOf(this.kind) === -1) throw new Ea('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } x(dle, "Type$1"); @@ -46373,26 +46384,26 @@ j3.prototype.extend = /* @__PURE__ */ x(function(e) { var i = Object.create(j3.prototype); return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = sL(i, "implicit"), i.compiledExplicit = sL(i, "explicit"), i.compiledTypeMap = ple(i.compiledImplicit, i.compiledExplicit), i; }, "extend"); -var ZEt = j3, jEt = new Bs("tag:yaml.org,2002:str", { +var jEt = j3, KEt = new Bs("tag:yaml.org,2002:str", { kind: "scalar", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : ""; }, "construct") -}), KEt = new Bs("tag:yaml.org,2002:seq", { +}), JEt = new Bs("tag:yaml.org,2002:seq", { kind: "sequence", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : []; }, "construct") -}), JEt = new Bs("tag:yaml.org,2002:map", { +}), e6t = new Bs("tag:yaml.org,2002:map", { kind: "mapping", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : {}; }, "construct") -}), e6t = new ZEt({ +}), t6t = new jEt({ explicit: [ - jEt, KEt, - JEt + JEt, + e6t ] }); function gle(t) { @@ -46410,7 +46421,7 @@ function vle(t) { return t === null; } x(vle, "isNull"); -var t6t = new Bs("tag:yaml.org,2002:null", { +var r6t = new Bs("tag:yaml.org,2002:null", { kind: "scalar", resolve: gle, construct: mle, @@ -46449,7 +46460,7 @@ function xle(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } x(xle, "isBoolean"); -var r6t = new Bs("tag:yaml.org,2002:bool", { +var n6t = new Bs("tag:yaml.org,2002:bool", { kind: "scalar", resolve: yle, construct: ble, @@ -46546,7 +46557,7 @@ function Cle(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Ei.isNegativeZero(t); } x(Cle, "isInteger"); -var n6t = new Bs("tag:yaml.org,2002:int", { +var i6t = new Bs("tag:yaml.org,2002:int", { kind: "scalar", resolve: Sle, construct: Tle, @@ -46572,11 +46583,11 @@ var n6t = new Bs("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), i6t = new RegExp( +}), s6t = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); function Ele(t) { - return !(t === null || !i6t.test(t) || t[t.length - 1] === "_"); + return !(t === null || !s6t.test(t) || t[t.length - 1] === "_"); } x(Ele, "resolveYamlFloat"); function _le(t) { @@ -46584,7 +46595,7 @@ function _le(t) { 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(_le, "constructYamlFloat"); -var s6t = /^[-+]?[0-9]+e/; +var a6t = /^[-+]?[0-9]+e/; function Ale(t, e) { var r; if (isNaN(t)) @@ -46616,28 +46627,28 @@ function Ale(t, e) { } else if (Ei.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), s6t.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), a6t.test(r) ? r.replace("e", ".e") : r; } x(Ale, "representYamlFloat"); function Lle(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Ei.isNegativeZero(t)); } x(Lle, "isFloat"); -var a6t = new Bs("tag:yaml.org,2002:float", { +var o6t = new Bs("tag:yaml.org,2002:float", { kind: "scalar", resolve: Ele, construct: _le, predicate: Lle, represent: Ale, defaultStyle: "lowercase" -}), Rle = e6t.extend({ +}), Rle = t6t.extend({ implicit: [ - t6t, r6t, n6t, - a6t + i6t, + o6t ] -}), o6t = Rle, Mle = new RegExp( +}), l6t = Rle, Mle = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" ), Dle = 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]))?))?$" @@ -46664,7 +46675,7 @@ function Ple(t) { return t.toISOString(); } x(Ple, "representYamlTimestamp"); -var l6t = new Bs("tag:yaml.org,2002:timestamp", { +var c6t = new Bs("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: Nle, construct: Ile, @@ -46675,7 +46686,7 @@ function $le(t) { return t === "<<" || t === null; } x($le, "resolveYamlMerge"); -var c6t = new Bs("tag:yaml.org,2002:merge", { +var u6t = new Bs("tag:yaml.org,2002:merge", { kind: "scalar", resolve: $le }), yN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= @@ -46711,22 +46722,22 @@ function Vle(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } x(Vle, "isBinary"); -var u6t = new Bs("tag:yaml.org,2002:binary", { +var h6t = new Bs("tag:yaml.org,2002:binary", { kind: "scalar", resolve: Ble, construct: Fle, predicate: Vle, represent: zle -}), h6t = Object.prototype.hasOwnProperty, f6t = Object.prototype.toString; +}), f6t = Object.prototype.hasOwnProperty, d6t = Object.prototype.toString; function Ule(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, f6t.call(i) !== "[object Object]") + if (i = o[r], a = !1, d6t.call(i) !== "[object Object]") return !1; for (s in i) - if (h6t.call(i, s)) + if (f6t.call(i, s)) if (!a) a = !0; else @@ -46745,17 +46756,17 @@ function qle(t) { return t !== null ? t : []; } x(qle, "constructYamlOmap"); -var d6t = new Bs("tag:yaml.org,2002:omap", { +var p6t = new Bs("tag:yaml.org,2002:omap", { kind: "sequence", resolve: Ule, construct: qle -}), p6t = Object.prototype.toString; +}), g6t = Object.prototype.toString; function Yle(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], p6t.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], g6t.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } @@ -46771,17 +46782,17 @@ function Qle(t) { return s; } x(Qle, "constructYamlPairs"); -var g6t = new Bs("tag:yaml.org,2002:pairs", { +var m6t = new Bs("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: Yle, construct: Qle -}), m6t = Object.prototype.hasOwnProperty; +}), v6t = Object.prototype.hasOwnProperty; function Wle(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (m6t.call(r, e) && r[e] !== null) + if (v6t.call(r, e) && r[e] !== null) return !1; return !0; } @@ -46790,22 +46801,22 @@ function Gle(t) { return t !== null ? t : {}; } x(Gle, "constructYamlSet"); -var v6t = new Bs("tag:yaml.org,2002:set", { +var y6t = new Bs("tag:yaml.org,2002:set", { kind: "mapping", resolve: Wle, construct: Gle -}), Hle = o6t.extend({ +}), Hle = l6t.extend({ implicit: [ - l6t, - c6t + c6t, + u6t ], explicit: [ - u6t, - d6t, - g6t, - v6t + h6t, + p6t, + m6t, + y6t ] -}), Of = Object.prototype.hasOwnProperty, K3 = 1, Xle = 2, Zle = 3, J3 = 4, c_ = 1, y6t = 2, cY = 3, b6t = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, x6t = /[\x85\u2028\u2029]/, w6t = /[,\[\]\{\}]/, jle = /^(?:!|!!|![a-z\-]+!)$/i, Kle = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +}), Of = Object.prototype.hasOwnProperty, K3 = 1, Xle = 2, Zle = 3, J3 = 4, c_ = 1, b6t = 2, cY = 3, x6t = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, w6t = /[\x85\u2028\u2029]/, O6t = /[,\[\]\{\}]/, jle = /^(?:!|!!|![a-z\-]+!)$/i, Kle = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function aL(t) { return Object.prototype.toString.call(t); } @@ -46867,7 +46878,7 @@ function bN(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = GEt(r), new Ea(e, r); + return r.snippet = HEt(r), new Ea(e, r); } x(bN, "generateError"); function Vt(t, e) { @@ -46901,7 +46912,7 @@ function Ru(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 - b6t.test(o) && Vt(t, "the stream contains non-printable characters"); + x6t.test(o) && Vt(t, "the stream contains non-printable characters"); t.result += o; } } @@ -47059,7 +47070,7 @@ function uce(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - c_ === i ? i = f === 43 ? cY : y6t : Vt(t, "repeat of a chomping mode identifier"); + c_ === i ? i = f === 43 ? cY : b6t : Vt(t, "repeat of a chomping mode identifier"); else if ((h = tce(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 @@ -47158,7 +47169,7 @@ function fce(t) { } 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), jle.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), w6t.test(s) && Vt(t, "tag suffix cannot contain flow indicator characters"); + s = t.input.slice(e, t.position), O6t.test(s) && Vt(t, "tag suffix cannot contain flow indicator characters"); } s && !Kle.test(s) && Vt(t, "tag name cannot contain such characters: " + s); try { @@ -47236,7 +47247,7 @@ function gce(t) { } a !== 0 && HT(t), Of.call(uY, n) ? uY[n](t, n, i) : w2(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"), d0(t, t.lineIndent - 1, J3, !1, !0), ei(t, !0, -1), t.checkLineBreaks && x6t.test(t.input.slice(e, t.position)) && w2(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && kx(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"), d0(t, t.lineIndent - 1, J3, !1, !0), ei(t, !0, -1), t.checkLineBreaks && w6t.test(t.input.slice(e, t.position)) && w2(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && kx(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, ei(t, !0, -1)); return; } @@ -47275,10 +47286,10 @@ function vce(t, e) { } } x(vce, "load$1"); -var O6t = mce, k6t = vce, S6t = { - loadAll: O6t, - load: k6t -}, yce = Object.prototype.toString, bce = Object.prototype.hasOwnProperty, wN = 65279, T6t = 9, O2 = 10, C6t = 13, E6t = 32, _6t = 33, A6t = 34, uL = 35, L6t = 37, R6t = 38, M6t = 39, D6t = 42, xce = 44, N6t = 45, ek = 58, I6t = 61, P6t = 62, $6t = 63, B6t = 64, wce = 91, Oce = 93, F6t = 96, kce = 123, z6t = 124, Sce = 125, Ws = {}; +var k6t = mce, S6t = vce, T6t = { + loadAll: k6t, + load: S6t +}, yce = Object.prototype.toString, bce = Object.prototype.hasOwnProperty, wN = 65279, C6t = 9, O2 = 10, E6t = 13, _6t = 32, A6t = 33, L6t = 34, uL = 35, R6t = 37, M6t = 38, D6t = 39, N6t = 42, xce = 44, I6t = 45, ek = 58, P6t = 61, $6t = 62, B6t = 63, F6t = 64, wce = 91, Oce = 93, z6t = 96, kce = 123, V6t = 124, Sce = 125, Ws = {}; Ws[0] = "\\0"; Ws[7] = "\\a"; Ws[8] = "\\b"; @@ -47294,7 +47305,7 @@ Ws[133] = "\\N"; Ws[160] = "\\_"; Ws[8232] = "\\L"; Ws[8233] = "\\P"; -var V6t = [ +var U6t = [ "y", "Y", "yes", @@ -47311,7 +47322,7 @@ var V6t = [ "off", "Off", "OFF" -], U6t = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +], q6t = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; function Tce(t, e) { var r, n, i, s, a, o, l; if (e === null) @@ -47334,9 +47345,9 @@ function Cce(t) { return "\\" + r + Ei.repeat("0", n - e.length) + e; } x(Cce, "encodeHex"); -var q6t = 1, k2 = 2; +var Y6t = 1, k2 = 2; function Ece(t) { - this.schema = t.schema || Hle, 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 = Tce(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 === '"' ? k2 : q6t, 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; + this.schema = t.schema || Hle, 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 = Tce(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 === '"' ? k2 : Y6t, 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(Ece, "State"); function hL(t, e) { @@ -47361,7 +47372,7 @@ function _ce(t, e) { } x(_ce, "testImplicitResolving"); function S2(t) { - return t === E6t || t === T6t; + return t === _6t || t === C6t; } x(S2, "isWhitespace"); function o1(t) { @@ -47369,7 +47380,7 @@ function o1(t) { } x(o1, "isPrintable"); function fL(t) { - return o1(t) && t !== wN && t !== C6t && t !== O2; + return o1(t) && t !== wN && t !== E6t && t !== O2; } x(fL, "isNsCharOrWhitespace"); function dL(t, e, r) { @@ -47378,7 +47389,7 @@ function dL(t, e, r) { } x(dL, "isPlainSafe"); function Ace(t) { - return o1(t) && t !== wN && !S2(t) && t !== N6t && t !== $6t && t !== ek && t !== xce && t !== wce && t !== Oce && t !== kce && t !== Sce && t !== uL && t !== R6t && t !== D6t && t !== _6t && t !== z6t && t !== I6t && t !== P6t && t !== M6t && t !== A6t && t !== L6t && t !== B6t && t !== F6t; + return o1(t) && t !== wN && !S2(t) && t !== I6t && t !== B6t && t !== ek && t !== xce && t !== wce && t !== Oce && t !== kce && t !== Sce && t !== uL && t !== M6t && t !== N6t && t !== A6t && t !== V6t && t !== P6t && t !== $6t && t !== D6t && t !== L6t && t !== R6t && t !== F6t && t !== z6t; } x(Ace, "isPlainSafeFirst"); function Lce(t) { @@ -47421,7 +47432,7 @@ function Ice(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === k2 ? '""' : "''"; - if (!t.noCompatMode && (V6t.indexOf(e) !== -1 || U6t.test(e))) + if (!t.noCompatMode && (U6t.indexOf(e) !== -1 || q6t.test(e))) return t.quotingType === k2 ? '"' + 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) { @@ -47598,7 +47609,7 @@ function rk(t, e, r) { rk(t[n[i]], e, r); } x(rk, "inspectNode"); -function Y6t(t, e) { +function Q6t(t, e) { e = e || {}; var r = new Ece(e); r.noRefs || Vce(t, r); @@ -47606,14 +47617,14 @@ function Y6t(t, e) { return r.replacer && (n = r.replacer.call({ "": n }, "", n)), $c(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -x(Y6t, "dump$1"); -function Q6t(t, e) { +x(Q6t, "dump$1"); +function W6t(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(Q6t, "renamed"); -var W6t = Rle, G6t = S6t.load; +x(W6t, "renamed"); +var G6t = Rle, H6t = T6t.load; function Uce(t) { var i; const e = t.match(Oie); @@ -47622,8 +47633,8 @@ function Uce(t) { text: t, metadata: {} }; - let r = (i = G6t(e[1], { - schema: W6t + let r = (i = H6t(e[1], { + schema: G6t })) != null ? i : {}; r = typeof r == "object" && !Array.isArray(r) ? r : {}; const n = {}; @@ -47633,24 +47644,24 @@ function Uce(t) { }; } x(Uce, "extractFrontMatter"); -var H6t = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` +var X6t = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` `).replace( /<(\w+)([^>]*)>/g, (e, r, n) => "<" + r + n.replace(/="([^"]*)"/g, "='$1'") + ">" -), "cleanupText"), X6t = /* @__PURE__ */ x((t) => { +), "cleanupText"), Z6t = /* @__PURE__ */ x((t) => { const { text: e, metadata: r } = Uce(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"), j6t = /* @__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: H3t(t), + text: X3t(t), directive: e }; }, "processDirectives"); function kN(t) { - const e = H6t(t), r = X6t(e), n = Z6t(r.text), i = ch(r.config, n.directive); - return t = zEt(n.text), { + const e = X6t(t), r = Z6t(e), n = j6t(r.text), i = ch(r.config, n.directive); + return t = VEt(n.text), { code: t, title: r.title, config: i @@ -47662,11 +47673,11 @@ function qce(t) { return btoa(r); } x(qce, "toBase64"); -var j6t = 5e4, K6t = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", J6t = "sandbox", e_t = "loose", t_t = "http://www.w3.org/2000/svg", r_t = "http://www.w3.org/1999/xlink", n_t = "http://www.w3.org/1999/xhtml", i_t = "100%", s_t = "100%", a_t = "border:0;margin:0;", o_t = "margin:0", l_t = "allow-top-navigation-by-user-activation allow-popups", c_t = 'The "iframe" tag is not supported by your browser.', u_t = ["foreignobject"], h_t = ["dominant-baseline"]; +var K6t = 5e4, J6t = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", e_t = "sandbox", t_t = "loose", r_t = "http://www.w3.org/2000/svg", n_t = "http://www.w3.org/1999/xlink", i_t = "http://www.w3.org/1999/xhtml", s_t = "100%", a_t = "100%", o_t = "border:0;margin:0;", l_t = "margin:0", c_t = "allow-top-navigation-by-user-activation allow-popups", u_t = 'The "iframe" tag is not supported by your browser.', h_t = ["foreignobject"], f_t = ["dominant-baseline"]; function SN(t) { var r; const e = kN(t); - return g3(), pvt((r = e.config) != null ? r : {}), e; + return g3(), gvt((r = e.config) != null ? r : {}), e; } x(SN, "processAndSetConfigs"); async function Yce(t, e) { @@ -47682,7 +47693,7 @@ async function Yce(t, e) { } x(Yce, "parse"); var hY = /* @__PURE__ */ x((t, e, r = []) => ` -.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), f_t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { +.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), d_t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { var n, i; let r = ""; if (t.themeCSS !== void 0 && (r += ` @@ -47701,56 +47712,56 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += ` }); } return r; -}, "createCssStyles"), d_t = /* @__PURE__ */ x((t, e, r, n) => { - const i = f_t(t, r), s = Mvt(e, i, t.themeVariables); - return eL(ETt(`${n}{${s}}`), ATt); -}, "createUserStyles"), p_t = /* @__PURE__ */ x((t = "", e, r) => { +}, "createCssStyles"), p_t = /* @__PURE__ */ x((t, e, r, n) => { + const i = d_t(t, r), s = Dvt(e, i, t.themeVariables); + return eL(_Tt(`${n}{${s}}`), LTt); +}, "createUserStyles"), g_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 = h0(n), n = n.replace(/
/g, "
"), n; -}, "cleanUpSvgCode"), g_t = /* @__PURE__ */ x((t = "", e) => { +}, "cleanUpSvgCode"), m_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" : s_t, n = qce(`${t}`); - return ``; }, "putIntoIFrame"), fY = /* @__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", t_t); + const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", r_t); return i && a.attr("xmlns:xlink", i), a.append("g"), t; }, "appendDivSvgG"); function xL(t, e) { return t.append("iframe").attr("id", e).attr("style", "width: 100%; height: 100%;").attr("sandbox", ""); } x(xL, "sandboxedIframe"); -var m_t = /* @__PURE__ */ x((t, e, r, n) => { +var v_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"), v_t = /* @__PURE__ */ x(async function(t, e, r) { +}, "removeExistingElements"), y_t = /* @__PURE__ */ x(async function(t, e, r) { var A, $, k, N, M, I, D; GT(); const n = SN(e); e = n.code; const i = pi(); - X.debug(i), e.length > ((A = i == null ? void 0 : i.maxTextSize) != null ? A : j6t) && (e = K6t); + X.debug(i), e.length > ((A = i == null ? void 0 : i.maxTextSize) != null ? A : K6t) && (e = J6t); 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 === J6t, p = i.securityLevel === e_t, g = i.fontFamily; + const d = i.securityLevel === e_t, p = i.securityLevel === t_t, g = i.fontFamily; if (r !== void 0) { if (r && (r.innerHTML = ""), d) { const P = xL(et(r), a); f = et(P.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = et(r); - fY(f, t, l, `font-family: ${g}`, r_t); + fY(f, t, l, `font-family: ${g}`, n_t); } else { - if (m_t(document, t, l, a), d) { + if (v_t(document, t, l, a), d) { const P = xL(et("body"), a); f = et(P.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else @@ -47765,25 +47776,25 @@ var m_t = /* @__PURE__ */ x((t, e, r, n) => { throw h(), P; m = await iL.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 = d_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 = p_t(i, b, S, s), T = document.createElement("style"); T.innerHTML = C, w.insertBefore(T, O); try { await m.renderer.draw(e, t, K8, m); } catch (P) { - throw i.suppressErrorRendering ? h() : oEt.draw(e, t, K8), P; + throw i.suppressErrorRendering ? h() : lEt.draw(e, t, K8), P; } const L = f.select(`${u} svg`), E = (M = (N = m.db).getAccTitle) == null ? void 0 : M.call(N), R = (D = (I = m.db).getAccDescription) == null ? void 0 : D.call(I); - Gce(b, L, E, R), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", n_t); + Gce(b, L, E, R), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", i_t); let _ = f.select(u).node().innerHTML; - if (X.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = p_t(_, d, bn(i.arrowMarkerAbsolute)), d) { + if (X.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = g_t(_, d, bn(i.arrowMarkerAbsolute)), d) { const P = f.select(u + " svg").node(); - _ = g_t(_, P); + _ = m_t(_, P); } else p || (_ = Yg.sanitize(_, { - ADD_TAGS: u_t, - ADD_ATTR: h_t + ADD_TAGS: h_t, + ADD_ATTR: f_t })); - if (FEt(), v) + if (zEt(), v) throw v; return h(), { diagramType: b, @@ -47794,10 +47805,10 @@ var m_t = /* @__PURE__ */ x((t, e, r, n) => { function Qce(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), fvt(e), (e == null ? void 0 : e.theme) && e.theme in Lu ? e.themeVariables = Lu[e.theme].getThemeVariables( + (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), dvt(e), (e == null ? void 0 : e.theme) && e.theme in Lu ? e.themeVariables = Lu[e.theme].getThemeVariables( e.themeVariables ) : e && (e.themeVariables = Lu.default.getThemeVariables(e.themeVariables)); - const r = typeof e == "object" ? hvt(e) : Aie(); + const r = typeof e == "object" ? fvt(e) : Aie(); SD(r.logLevel), GT(); } x(Qce, "initialize"); @@ -47810,14 +47821,14 @@ function Gce(t, e, r, n) { } x(Gce, "addA11yInfo"); var p0 = Object.freeze({ - render: v_t, + render: y_t, parse: Yce, getDiagramFromText: Wce, initialize: Qce, getConfig: pi, setConfig: Lie, getSiteConfig: Aie, - updateSiteConfig: dvt, + updateSiteConfig: pvt, reset: /* @__PURE__ */ x(() => { g3(); }, "reset"), @@ -47828,7 +47839,7 @@ var p0 = Object.freeze({ }); SD(pi().logLevel); g3(pi()); -var y_t = /* @__PURE__ */ x((t, e, r) => { +var b_t = /* @__PURE__ */ x((t, e, r) => { X.warn(t), tN(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, @@ -47839,12 +47850,12 @@ var y_t = /* @__PURE__ */ x((t, e, r) => { querySelector: ".mermaid" }) { try { - await b_t(t); + await x_t(t); } catch (e) { if (tN(e) && X.error(e.str), oo.parseError && oo.parseError(e), !t.suppressErrors) throw X.error("Use the suppressErrors option to suppress these errors"), e; } -}, "run"), b_t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { +}, "run"), x_t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { querySelector: ".mermaid" }) { const n = p0.getConfig(); @@ -47872,21 +47883,21 @@ var y_t = /* @__PURE__ */ x((t, e, r) => { const { svg: f, bindFunctions: d } = await Kce(u, a, l); l.innerHTML = f, t && await t(u), d && d(l); } catch (f) { - y_t(f, o, oo.parseError); + b_t(f, o, oo.parseError); } } if (o.length > 0) throw o[0]; }, "runThrowsErrors"), Xce = /* @__PURE__ */ x(function(t) { p0.initialize(t); -}, "initialize"), x_t = /* @__PURE__ */ x(async function(t, e, r) { +}, "initialize"), w_t = /* @__PURE__ */ x(async function(t, e, r) { X.warn("mermaid.init is deprecated. Please use run instead."), t && Xce(t); const n = { postRenderCallback: r, querySelector: ".mermaid" }; typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await Hce(n); -}, "init"), w_t = /* @__PURE__ */ x(async (t, { +}, "init"), O_t = /* @__PURE__ */ x(async (t, { lazyLoad: e = !0 } = {}) => { - GT(), Sie(...t), e === !1 && await $Et(); + GT(), Sie(...t), e === !1 && await BEt(); }, "registerExternalDiagrams"), Zce = /* @__PURE__ */ x(function() { if (oo.startOnLoad) { const { startOnLoad: t } = p0.getConfig(); @@ -47894,7 +47905,7 @@ var y_t = /* @__PURE__ */ x((t, e, r) => { } }, "contentLoaded"); typeof document < "u" && window.addEventListener("load", Zce, !1); -var O_t = /* @__PURE__ */ x(function(t) { +var k_t = /* @__PURE__ */ x(function(t) { oo.parseError = t; }, "setParseErrorHandler"), nk = [], u_ = !1, jce = /* @__PURE__ */ x(async () => { if (!u_) { @@ -47909,7 +47920,7 @@ var O_t = /* @__PURE__ */ x(function(t) { } u_ = !1; } -}, "executeQueue"), k_t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { +}, "executeQueue"), S_t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { const i = /* @__PURE__ */ x(() => new Promise((s, a) => { p0.parse(t, e).then( (o) => { @@ -47938,16 +47949,16 @@ var O_t = /* @__PURE__ */ x(function(t) { }), "render"), oo = { startOnLoad: !0, mermaidAPI: p0, - parse: k_t, + parse: S_t, render: Kce, - init: x_t, + init: w_t, run: Hce, - registerExternalDiagrams: w_t, + registerExternalDiagrams: O_t, registerLayoutLoaders: Soe, initialize: Xce, parseError: void 0, contentLoaded: Zce, - setParseErrorHandler: O_t, + setParseErrorHandler: k_t, detectType: TD, registerIconPacks: Vie }, dY = oo; @@ -47960,7 +47971,7 @@ var O_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 pY = /* @__PURE__ */ new Map(), gY = 42, mY = /* @__PURE__ */ new Map(), S_t = (t, { +const pY = /* @__PURE__ */ new Map(), gY = 42, mY = /* @__PURE__ */ new Map(), T_t = (t, { lineMap: e, parent: r }) => { @@ -48002,7 +48013,7 @@ ${y}`, v.classList.remove("mermaid"); return `
${(g = d == null ? void 0 : d.svg) != null ? g : h}
`; }; }; -function T_t(t, e, r) { +function C_t(t, e, r) { const n = t.attrGet(kD); if (n) { const i = OT(r.lineMap.current, n), s = window.myst_editor.main_editor.state.doc.line(i), a = Kd(window.myst_editor.main_editor.state, s.from, s.to); @@ -48011,17 +48022,17 @@ function T_t(t, e, r) { let l = !1; return o.between(a.from, a.to, (u, h) => { u === a.from && h === a.to && (l = !0); - }), l ? E_t(e, n) : C_t(e, n); + }), l ? __t(e, n) : E_t(e, n); } } return e; } -const C_t = (t, e) => `` + t, E_t = (t, e) => { +const E_t = (t, e) => `` + t, __t = (t, e) => { const r = ``, n = ``; return t.endsWith(` `) ? r + t.slice(0, t.indexOf("")) + n + "" : r + t + n; }; -function __t(t, e) { +function A_t(t, e) { let r = t.target.classList.contains("fold") ? t.target : t.target.parentElement; if (!r.classList.contains("fold")) return; @@ -48033,7 +48044,7 @@ function __t(t, e) { } }), qOe(window.myst_editor.main_editor); } -const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, e) => { +const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, e) => { const r = sM(e.state), n = [], i = r.iter(); for (let o = i; o.value != null; i.next()) n.push({ @@ -48053,9 +48064,9 @@ const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, end: e.state.doc.lineAt(o.to).number })); return [s, a]; -}, L_t = (t) => () => { +}, R_t = (t) => () => { window.myst_editor || (window.myst_editor = {}), window.myst_editor.text = t; -}, R_t = (t) => { +}, M_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()); @@ -48069,7 +48080,7 @@ const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, type: "text/html" }) })]); -}, TN = Zt.define(), M_t = ({ +}, TN = Zt.define(), D_t = ({ initialText: t, transforms: e, customRoles: r, @@ -48099,10 +48110,10 @@ const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, const O = H1t({ breaks: !0, linkify: !0 - }).use(mLe).use(j1t(e, s)).use(J1t(r, s)).use(S_t, { + }).use(mLe).use(j1t(e, s)).use(J1t(r, s)).use(T_t, { lineMap: g, parent: s - }).use(tmt, T_t); + }).use(tmt, C_t); return i && O.use(emt), O; }, []), b = m5((O) => { if (O.startState.doc.lines === O.state.doc.lines) @@ -48121,7 +48132,7 @@ const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, const E = T.length - 1, R = T[E], _ = R ? R.startLine + R.md.trimLeft().split(` `).length : 1, A = _ + L.trimLeft().split(` `).length - 1; - return A_t(R == null ? void 0 : R.md, /\n```/g) % 2 != 0 ? T[E] = { + return L_t(R == null ? void 0 : R.md, /\n```/g) % 2 != 0 ? T[E] = { md: R.md + L, startLine: R.startLine, endLine: A @@ -48163,7 +48174,7 @@ const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, }), [y]); return Yi(() => l && v({ newMarkdown: a - }), [l]), Yi(L_t(a), [a]), Yi(() => { + }), [l]), Yi(R_t(a), [a]), Yi(() => { h && (d.action(a), f(!1)); }, [h]), { set(O, S) { @@ -48209,12 +48220,12 @@ const A_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, u(!0); }, copy() { - R_t(w(window.myst_editor.text, {}, []).map((O) => O.html).join(` + M_t(w(window.myst_editor.text, {}, []).map((O) => O.html).join(` `)); }, lineMap: g }; -}, wL = 20, D_t = (t, e) => ht.updateListener.of((r) => { +}, wL = 20, N_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(TN))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; @@ -48237,12 +48248,12 @@ function Jce({ 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 + wL, h = l.top + i.scrollTop - u - a.top + o.scrollTop; - n == "smooth" ? P_t(i, h) : i.scrollTo({ + n == "smooth" ? $_t(i, h) : i.scrollTo({ top: h, behavior: n }); } -const N_t = (t, e) => { +const I_t = (t, e) => { let r = !1, n = !1, i; return ht.domEventHandlers({ wheel: () => { @@ -48263,7 +48274,7 @@ const N_t = (t, e) => { } }); }; -function I_t(t, e, r) { +function P_t(t, e, r) { let n = !1, i = !1, s; t.onwheel = () => { clearTimeout(s), i = !0, s = setTimeout(() => { @@ -48304,7 +48315,7 @@ function I_t(t, e, r) { }; } const aO = /* @__PURE__ */ new Map(); -function P_t(t, e) { +function $_t(t, e) { const r = t.scrollTop, n = e - r; let i; aO.has(t.className) && cancelAnimationFrame(aO.get(t.className)); @@ -48325,7 +48336,7 @@ function P_t(t, e) { }); aO.set(t.className, a); } -const $_t = (t, e) => ht.updateListener.of((r) => { +const B_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(TN))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; @@ -48335,7 +48346,7 @@ const $_t = (t, e) => ht.updateListener.of((r) => { 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.parentElement.tagName === "LI" ? 17 : 0); + 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`; } }), eue = VS({ @@ -48345,7 +48356,7 @@ const $_t = (t, e) => ht.updateListener.of((r) => { close: "-->" } } -}), tue = new or(), rue = new or(), B_t = Ate.configure({ +}), tue = new or(), rue = new or(), F_t = Ate.configure({ props: [P0.add((t) => !t.is("Block") || t.is("FencedCode") || t.is("Document") || OL(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to @@ -48364,7 +48375,7 @@ const nue = qS.of((t, e, r) => { let i = n.type.prop(tue); if (i == null) continue; - let s = F_t(n, i); + let s = z_t(n, i); if (s > r) return { from: r, @@ -48373,7 +48384,7 @@ const nue = qS.of((t, e, r) => { } return null; }); -function F_t(t, e) { +function z_t(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; @@ -48383,12 +48394,12 @@ function F_t(t, e) { } return r.to; } -const z_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r) => { +const V_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r) => { for (let n = Jr(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { if (n.type.prop(rue) == !1) continue; const s = t.doc.lineAt(n.from), a = t.doc.line(t.doc.lineAt(n.to).number - 1).to; - for (const o of z_t) + for (const o of V_t) if (s.text.includes(o)) return; return { @@ -48397,7 +48408,7 @@ const z_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r }; } return null; -}), V_t = new no(eue, B_t, [nue, iue], "markdown"), U_t = j3e.filter((t, e) => e != 3), q_t = K3e.filter((t, e) => e != 1), Y_t = (t) => { +}), U_t = new no(eue, F_t, [nue, iue], "markdown"), q_t = j3e.filter((t, e) => e != 3), Y_t = K3e.filter((t, e) => e != 1), Q_t = (t) => { const { from: e } = t.state.selection.main, r = t.state.doc.lineAt(e); @@ -48405,7 +48416,7 @@ const z_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r line: r.number - 1, ch: e - r.from }; -}, Q_t = (t, e) => { +}, W_t = (t, e) => { const { line: r, ch: n @@ -48424,14 +48435,14 @@ class Jh { `)], this.base = e, this.extensions = Jh.defaultPlugins(); } static minimalSetup() { - return new Jh(q_t); + return new Jh(Y_t); } static basicSetup() { - return new Jh(U_t); + return new Jh(q_t); } static defaultPlugins() { return [ht.lineWrapping, K6e({ - base: V_t + base: U_t }), EK(), nue, iue, Cu.of([v5e, { key: "Mod-Z", run: M5 @@ -48485,13 +48496,13 @@ class Jh { lineMap: e, preview: r }) { - return this.base.push([D_t(e, r), N_t(e, r)]), this; + return this.base.push([N_t(e, r), I_t(e, r)]), this; } useCursorIndicator({ lineMap: e, preview: r }) { - return this.base.push($_t(e, r)), this; + return this.base.push(B_t(e, r)), this; } useCollaboration({ ytext: e, @@ -48502,9 +48513,9 @@ class Jh { return this.extensions.push(aCe(e, r.awareness, { undoManager: n })), n && (n.on("stack-item-added", (s) => { - s.stackItem.meta.set("cursor-location", Y_t(i.current)); + s.stackItem.meta.set("cursor-location", Q_t(i.current)); }), n.on("stack-item-popped", (s) => { - Q_t(i.current, s.stackItem.meta.get("cursor-location")); + W_t(i.current, s.stackItem.meta.get("cursor-location")); }), this.extensions.push(Cu.of([{ key: "Mod-z", run: () => n.undo(), @@ -48555,7 +48566,7 @@ class Jh { return [...this.important, ...this.base, ...this.extensions]; } } -function W_t(t, e = 0) { +function G_t(t, e = 0) { let { state: r } = t, n = [], i = 0; @@ -48567,7 +48578,7 @@ function W_t(t, e = 0) { effects: n }); } -const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", H_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", X_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", Z_t = er.div` +const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", X_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", Z_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", j_t = er.div` position: absolute; top: ${(t) => t.top + 20}px; left: ${(t) => t.left + 19}px; @@ -48627,7 +48638,7 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM position: absolute; transform: translateX(-30px); } -`, j_t = ({ +`, K_t = ({ ycomments: t, commentId: e, collaboration: r @@ -48664,35 +48675,35 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM }, o.current.ondragend = () => { t.draggedComment = null, t.display().update(); }); - }, [o.current, t.commentWithPopup]), Bt` <${Z_t} + }, [o.current, t.commentWithPopup]), Bt` <${j_t} left=${t.marginLeft()} top=${t.display().offset(e)} fade=${t.draggedComment == e} >
${t.commentWithPopup == e && Bt` - <${K_t} + <${J_t} left=${t.marginLeft()} shift=${a} onMouseLeave=${() => { t.commentWithPopup = null, t.updateMainCodeMirror(); }} > - + - <${yY} icon=${H_t} bgOnHover=${"#e7473c15"} text="DELETE" onClick=${() => t.deleteComment(e)} /> - ${r.resolvingCommentsEnabled && Bt`<${yY} icon=${X_t} bgOnHover=${"#AAE17320"} text="RESOLVE" onClick=${() => t.resolveComment(e)} />`} + <${yY} icon=${X_t} bgOnHover=${"#e7473c15"} text="DELETE" onClick=${() => t.deleteComment(e)} /> + ${r.resolvingCommentsEnabled && Bt`<${yY} icon=${Z_t} bgOnHover=${"#AAE17320"} text="RESOLVE" onClick=${() => t.resolveComment(e)} />`} `}
`; -}, K_t = er.div` +}, J_t = er.div` width: fit-content; height: 25px; border-radius: 2px; @@ -48720,7 +48731,7 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM svg { box-sizing: content-box; } -`, J_t = er.div` +`, eAt = er.div` display: inline-flex; cursor: pointer; padding-left: 5px; @@ -48757,29 +48768,29 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM text: r, bgOnHover: n }) => Bt` - <${J_t} bgOnHover=${n} onClick=${e}> + <${eAt} bgOnHover=${n} onClick=${e}> ${r} - `, eAt = ({ + `, tAt = ({ ycomments: t, collaboration: e }) => { let r = ({ commentId: a - }) => Bt`<${j_t} ...${{ + }) => Bt`<${K_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} `; -}, tAt = ` +}, rAt = ` -`, rAt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", sue = er.div` +`, nAt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", sue = er.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -48809,7 +48820,7 @@ const G_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(tAt)}"); + background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(rAt)}"); background-repeat: no-repeat; } @@ -48920,7 +48931,7 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM .cm-gutterElement span[title="Unfold line"] { user-select: none; } -`, nAt = (t, e) => { +`, iAt = (t, e) => { t.dispatch({ changes: { from: 0, @@ -48928,7 +48939,7 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM insert: e } }); -}, iAt = ({ +}, sAt = ({ text: t, id: e, root: r, @@ -48982,14 +48993,14 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM state: p, parent: f.current }); - return h.current = g, window.myst_editor.main_editor = g, u != null && W_t(g, u), l && I_t(o.current, t.lineMap, g), (v = a.ycomments) == null || v.registerCodeMirror(g), (y = a.provider) == null || y.watchCollabolators(a.setUsers), t.onSync((b) => nAt(g, b)), () => { + return h.current = g, window.myst_editor.main_editor = g, u != null && G_t(g, u), l && P_t(o.current, t.lineMap, g), (v = a.ycomments) == null || v.registerCodeMirror(g), (y = a.provider) == null || y.watchCollabolators(a.setUsers), t.onSync((b) => iAt(g, b)), () => { a.opts.enabled && (a.provider.disconnect(), a.ydoc.destroy()), g.destroy(); }; }, [a.ready]), Bt` <${sue} className="myst-main-editor" ref=${f} $mode=${n} id="${e}-editor"> - ${a.opts.commentsEnabled && !a.error && Bt`<${eAt} ycomments=${a.ycomments} collaboration=${a.opts} />`} + ${a.opts.commentsEnabled && !a.error && Bt`<${tAt} ycomments=${a.ycomments} collaboration=${a.opts} />`} ${a.opts.commentsEnabled && Bt`<${I_e} style="display: none" className="myst-add-suggestion" title="Suggest Changes"> - edit + edit `} `; @@ -49405,7 +49416,7 @@ const G_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM aue.defaultProps = { className: "myst-preview" }; -const sAt = er.div` +const aAt = er.div` position: absolute; width: 5px; background-color: var(--blue-200); @@ -49448,10 +49459,10 @@ function g0(t, e, r, n, i, s) { let [f, d, p] = h; return g0(t, e, f, n, i, d).concat(g0(t, f + p, r, n, d + p, s)); } - return aAt(t, e, r, n, i, s); + return oAt(t, e, r, n, i, s); } let Sv = 1e9; -function aAt(t, e, r, n, i, s) { +function oAt(t, e, r, n, i, s) { let a = r - e, o = s - i; if (Sv < 1e9 && Math.min(a, o) > Sv * 16) return Math.min(a, o) > Sv * 64 ? [new Jn(e, r, i, s)] : bY(t, e, r, n, i, s); @@ -49463,7 +49474,7 @@ function aAt(t, e, r, n, i, s) { return bY(t, e, r, n, i, s); let g = h_.advance(p, a, o, l, f, !1, u) || f_.advance(p, a, o, l, d, !0, h); if (g) - return oAt(t, e, r, e + g[0], n, i, s, i + g[1]); + return lAt(t, e, r, e + g[0], n, i, s, i + g[1]); } return [new Jn(e, r, i, s)]; } @@ -49504,7 +49515,7 @@ class oue { } } const h_ = /* @__PURE__ */ new oue(), f_ = /* @__PURE__ */ new oue(); -function oAt(t, e, r, n, i, s, a, o) { +function lAt(t, e, r, n, i, s, a, o) { let l = !1; return !l1(t, n) && ++n == r && (l = !0), !l1(i, o) && ++o == a && (l = !0), l ? [new Jn(e, r, s, a)] : g0(t, e, n, i, s, o).concat(g0(t, n, r, i, o, a)); } @@ -49596,7 +49607,7 @@ function uue(t, e) { 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 lAt(t, e, r) { +function cAt(t, e, r) { for (; ; ) { uue(r, 1); let n = !1; @@ -49617,14 +49628,14 @@ function lAt(t, e, r) { } return r; } -function cAt(t, e, r) { +function uAt(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 = wY(e, s.fromA, Math.min(u, 5)), d = xY(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 = xY(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 = wY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = uAt(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 = xY(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 = wY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = hAt(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; } @@ -49673,7 +49684,7 @@ function wY(t, e, r) { return e; } } -function uAt(t, e, r) { +function hAt(t, e, r) { for (let n = e, i = e - r; ; ) { let s = n ? t.charCodeAt(n - 1) : 10; if (s == 10) @@ -49686,12 +49697,12 @@ const pue = (t) => t >= 55296 && t <= 56319, gue = (t) => t >= 56320 && t <= 573 function l1(t, e) { return !e || e == t.length || !pue(t.charCodeAt(e - 1)) || !gue(t.charCodeAt(e)); } -function hAt(t, e, r) { +function fAt(t, e, r) { var n; - return Sv = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, lAt(t, e, g0(t, 0, t.length, e, 0, e.length)); + return Sv = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, cAt(t, e, g0(t, 0, t.length, e, 0, e.length)); } function mue(t, e, r) { - return cAt(hAt(t, e, r), t, e); + return uAt(fAt(t, e, r), t, e); } const dc = /* @__PURE__ */ _t.define({ combine: (t) => t[0] @@ -49812,7 +49823,7 @@ const yue = /* @__PURE__ */ on.fromClass(class { ({ deco: this.deco, gutter: this.gutter } = AY(t)); } update(t) { - (t.docChanged || t.viewportChanged || fAt(t.startState, t.state) || dAt(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = AY(t.view)); + (t.docChanged || t.viewportChanged || dAt(t.startState, t.state) || pAt(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = AY(t.view)); } }, { decorations: (t) => t.deco @@ -49823,21 +49834,21 @@ const yue = /* @__PURE__ */ on.fromClass(class { return ((e = t.plugin(yue)) === null || e === void 0 ? void 0 : e.gutter) || Er.empty; } })); -function fAt(t, e) { +function dAt(t, e) { return t.field(c1, !1) != e.field(c1, !1); } -function dAt(t, e) { +function pAt(t, e) { return t.facet(dc) != e.facet(dc); } -const EY = /* @__PURE__ */ Et.line({ class: "cm-changedLine" }), pAt = /* @__PURE__ */ Et.mark({ class: "cm-changedText" }), gAt = /* @__PURE__ */ Et.mark({ tagName: "ins", class: "cm-insertedLine" }), mAt = /* @__PURE__ */ Et.mark({ tagName: "del", class: "cm-deletedLine" }), _Y = /* @__PURE__ */ new class extends Uo { +const EY = /* @__PURE__ */ Et.line({ class: "cm-changedLine" }), gAt = /* @__PURE__ */ Et.mark({ class: "cm-changedText" }), mAt = /* @__PURE__ */ Et.mark({ tagName: "ins", class: "cm-insertedLine" }), vAt = /* @__PURE__ */ Et.mark({ tagName: "del", class: "cm-deletedLine" }), _Y = /* @__PURE__ */ new class extends Uo { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } }(); -function vAt(t, e, r, n, i, s) { +function yAt(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, EY), i.add(a, o, r ? mAt : gAt), s && s.add(a, a, _Y); + i.add(a, a, EY), i.add(a, o, r ? vAt : mAt), s && s.add(a, a, _Y); for (let u = e.iterRange(a, o - 1), h = a; !u.next().done; ) { if (u.lineBreak) { h++, i.add(h, h, EY), s && s.add(h, h, _Y); @@ -49847,7 +49858,7 @@ function vAt(t, e, r, n, i, s) { 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, pAt), g < f) + if (m < v && i.add(m, v, gAt), g < f) l++; else break; @@ -49861,7 +49872,7 @@ function AY(t) { for (let h of e) { if ((s ? h.fromA : h.fromB) >= u) break; - (s ? h.toA : h.toB) > l && vAt(h, t.state.doc, s, n, a, o); + (s ? h.toA : h.toB) > l && yAt(h, t.state.doc, s, n, a, o); } return { deco: a.finish(), gutter: o && o.finish() }; } @@ -49898,7 +49909,7 @@ const sk = /* @__PURE__ */ Zt.define({ }, provide: (t) => ht.decorations.from(t) }), uO = 0.01; -function yAt(t, e, r) { +function bAt(t, e, r) { let n = new Hi(), i = new Hi(), s = t.state.field(Tv).iter(), a = e.state.field(Tv).iter(), o = 0, l = 0, u = 0, h = 0; for (let g = 0; ; g++) { let m = g < r.length ? r[g] : null; @@ -49941,7 +49952,7 @@ function yAt(t, e, r) { const TL = /* @__PURE__ */ Zt.define({ map: (t, e) => e.mapPos(t) }); -class bAt extends za { +class xAt extends za { constructor(e) { super(), this.lines = e; } @@ -49954,7 +49965,7 @@ class bAt extends za { let i = e.posAtDOM(n.target); e.dispatch({ effects: TL.of(i) }); let { side: s, sibling: a } = e.state.facet(dc); - a && a().dispatch({ effects: TL.of(xAt(i, e.state.field(c1), s == "a")) }); + a && a().dispatch({ effects: TL.of(wAt(i, e.state.field(c1), s == "a")) }); }), r; } ignoreEvent(e) { @@ -49964,7 +49975,7 @@ class bAt extends za { return 27; } } -function xAt(t, e, r) { +function wAt(t, e, r) { let n = 0, i = 0; for (let s = 0; ; s++) { let a = s < e.length ? e[s] : null; @@ -49973,7 +49984,7 @@ function xAt(t, e, r) { [n, i] = r ? [a.toA, a.toB] : [a.toB, a.toA]; } } -const wAt = /* @__PURE__ */ $n.define({ +const OAt = /* @__PURE__ */ $n.define({ create(t) { return Et.none; }, @@ -49986,14 +49997,14 @@ const wAt = /* @__PURE__ */ $n.define({ provide: (t) => ht.decorations.from(t) }); function LY({ margin: t = 3, minSize: e = 4 }) { - return wAt.init((r) => OAt(r, t, e)); + return OAt.init((r) => kAt(r, t, e)); } -function OAt(t, e, r) { +function kAt(t, e, r) { let n = new Hi(), i = t.facet(dc).side == "a", s = t.field(c1), 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 bAt(f), + widget: new xAt(f), block: !0 })), !l) break; @@ -50001,7 +50012,7 @@ function OAt(t, e, r) { } return n.finish(); } -const kAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ +const SAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ ".cm-mergeView": { overflowY: "auto" }, @@ -50031,7 +50042,7 @@ const kAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ font: "inherit", cursor: "pointer" } -})), SAt = /* @__PURE__ */ ht.baseTheme({ +})), TAt = /* @__PURE__ */ ht.baseTheme({ ".cm-mergeView & .cm-scroller, .cm-mergeView &": { height: "auto !important", overflowY: "visible !important" @@ -50091,13 +50102,13 @@ const kAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ "&light.cm-merge-b .cm-changedLineGutter": { background: "#2b2" }, "&dark.cm-merge-b .cm-changedLineGutter": { background: "#8f8" } }), RY = /* @__PURE__ */ new I0(), hO = /* @__PURE__ */ new I0(); -class TAt { +class CAt { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let r = [ zl.low(yue), + TAt, SAt, - kAt, Tv, ht.updateListener.of((f) => { this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(sk))) && this.measure(); @@ -50210,7 +50221,7 @@ class TAt { } } measure() { - yAt(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); + bAt(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; @@ -50259,7 +50270,7 @@ function MY(t) { let e = t.nextSibling; return t.remove(), e; } -const CAt = er.div` +const EAt = er.div` display: grid; grid-auto-flow: column; grid-template-rows: max-content; @@ -50270,13 +50281,13 @@ const CAt = er.div` `, DY = er(sue)` overflow-y: visible; display: block; -`, EAt = ({ +`, _At = ({ old: t, current: e, root: r }) => { const n = Jh.basicSetup().readonly().create(); - return new TAt({ + return new CAt({ a: { doc: t, extensions: n @@ -50297,12 +50308,12 @@ const CAt = er.div` return Yi(() => { if (s.current) return !1; - s.current = EAt({ + s.current = _At({ old: t, current: e.get(), root: r }), n.current.appendChild(s.current.b.dom), i.current.appendChild(s.current.a.dom); - }, []), Bt` <${CAt}> + }, []), Bt` <${EAt}> <${DY} ref=${n} /> <${DY} ref=${i} /> `; @@ -50310,9 +50321,9 @@ const CAt = er.div` bue.defaultProps = { className: "diff" }; -const _At = er.div` +const AAt = er.div` display: flex; -`, AAt = er(B0)` +`, LAt = er(B0)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--navbar-bg)"}; width: 40px; @@ -50333,15 +50344,15 @@ const _At = er.div` &:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; } -`, LAt = ({ +`, RAt = ({ buttons: t, initialClickedId: e = 2 }) => { const [r, n] = Rn(e); return Yi(() => { t[e].action(); - }, [e]), Bt` <${_At}> - ${t.map((i, s) => Bt` <${AAt} + }, [e]), Bt` <${AAt}> + ${t.map((i, s) => Bt` <${LAt} className="icon radio-icon" type="button" key=${i.id} @@ -50388,23 +50399,23 @@ const _At = er.div` login: t, color: e, avatarUrl: r -}) => Bt` `, RAt = ({ +}) => Bt` `, MAt = ({ n: t, usernames: e }) => Bt` <${xue} title=${e}> +${t} - `, MAt = ({ + `, DAt = ({ users: t }) => { const e = t.length <= d_ ? t.length : 3; return Bt` <${xue} n=${Math.min(t.length, d_)}> - ${e < t.length ? Bt`<${RAt} + ${e < t.length ? Bt`<${MAt} n=${t.length - e} usernames=${t.filter((r, n) => n >= d_).map((r) => r.login).join(", ")} />` : ""} ${t.slice(0, e).map((r) => Bt`<${wue} ...${r} />`)} `; -}, DAt = er.section` +}, NAt = er.section` z-index: 2; display: flex; flex-direction: column; @@ -50419,9 +50430,9 @@ const _At = er.div` background-color: var(--icon-bg); border: 1px solid var(--icon-border); border-radius: var(--border-radius); -`, NAt = er.h3` +`, IAt = er.h3` color: var(--gray-900); -`, IAt = er.div` +`, PAt = er.div` display: flex; align-items: center; justify-content: space-between; @@ -50433,25 +50444,25 @@ const _At = 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; } -`, PAt = ({ +`, $At = ({ changeDocumentTemplate: t, selectedTemplate: e, closeModal: r }) => Bt` - <${DAt}> - <${NAt}>Are you sure you want to change the current template? - <${IAt}> + <${NAt}> + <${IAt}>Are you sure you want to change the current template? + <${PAt}> <${NY} type="button" onClick=${() => t(e)}>✓ Yes <${NY} $negative type="button" onClick=${r}>x Cancel - `, $At = er.div` + `, BAt = er.div` position: absolute; ${(t) => t.$orientation == "left" && Yv` left: 0; `} transform: ${(t) => t.$orientation == "left" ? "translateX(-105%)" : "translate(-65%, 130%)"}; -`, BAt = er.div` +`, FAt = er.div` position: relative; background: var(--alert); color: var(--icon-color); @@ -50484,12 +50495,12 @@ const _At = er.div` `} transform: ${(t) => t.$orientation == "left" ? "translate(50%, -50%)" : "translate(-50%, -100%)"}; } -`, FAt = ({ +`, zAt = ({ tooltipOrientation: t, errorMessage: e -}) => Bt` <${$At} $orientation=${t}> - <${BAt} $orientation=${t}> ${e} - `, zAt = er.div` +}) => Bt` <${BAt} $orientation=${t}> + <${FAt} $orientation=${t}> ${e} + `, VAt = er.div` display: none; margin-left: 5px; margin-right: 5px; @@ -50513,7 +50524,7 @@ const _At = er.div` padding: 0 10px 0 10px; margin-top: 0px; text-wrap: wrap; -`, VAt = er.div` +`, UAt = er.div` position: relative; &:hover { div { @@ -50521,16 +50532,16 @@ const _At = er.div` flex-direction: column; } } -`, UAt = er.div` +`, qAt = er.div` display: flex; flex-direction: row-reverse; border: 1px solid var(--gray-900); width: inherit; -`, qAt = er.div` +`, YAt = er.div` position: absolute; width: 100%; padding-top: 5px; -`, YAt = (t) => { +`, QAt = (t) => { const e = ["id", "templatetext"]; for (const r in t) { for (let n of e) @@ -50538,7 +50549,7 @@ const _At = er.div` t[r].errorMessage && console.error(t[r].errorMessage); } return t; -}, QAt = ({ +}, WAt = ({ text: t, templatelist: e }) => { @@ -50571,7 +50582,7 @@ const _At = er.div` } return w; }; - return Yi(() => v(e).then(YAt).then(b).then(s), []), d.error ? null : Object.keys(i).length == 0 ? Bt` <${CL} + return Yi(() => v(e).then(QAt).then(b).then(s), []), d.error ? null : Object.keys(i).length == 0 ? Bt` <${CL} type="button" title="Templates" template=${r} @@ -50580,21 +50591,21 @@ const _At = er.div` > <${IY} /> ` : Bt` - ${l && Bt`<${PAt} + ${l && Bt`<${$At} selectedTemplate=${a} closeModal=${() => { u(!1), o(!1); }} changeDocumentTemplate=${m} />`} - <${VAt}> + <${UAt}> <${CL} className="icon" title="Templates" type="button"><${IY} /> - <${qAt}> - <${zAt}> + <${YAt}> + <${VAt}> ${Object.keys(i).map((w) => Bt` ${i[w].errorMessage ? Bt` - <${UAt}> - <${h === w && FAt} tooltipOrientation="left" errorMessage="${i[w].errorMessage}" /> + <${qAt}> + <${h === w && zAt} tooltipOrientation="left" errorMessage="${i[w].errorMessage}" /> <${PY} type="button" onMouseEnter=${() => f(w)} onMouseLeave=${() => f(!1)} >${i[w].id} @@ -50613,7 +50624,7 @@ const _At = er.div` `; -}, WAt = (t) => [...t.matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), GAt = er.div` +}, GAt = (t) => [...t.matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), HAt = er.div` z-index: 10; position: sticky; top: 0; @@ -50651,7 +50662,7 @@ const _At = er.div` display: none; } } -`, HAt = er.div` +`, XAt = er.div` font-size: large; white-space: nowrap; margin-left: 10px; @@ -50661,7 +50672,7 @@ const _At = er.div` a { color: var(--blue-500); } -`, XAt = er(B0)` +`, ZAt = er(B0)` padding: 0px 15px; margin: 5px; pointer-events: none; @@ -50674,18 +50685,18 @@ const _At = er.div` background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--icon-bg)"}; margin: 5px; width: 40px; -`, ZAt = () => Bt` +`, jAt = () => Bt` - `, jAt = () => Bt` + `, KAt = () => Bt` - `, KAt = () => Bt` + `, JAt = () => Bt` - `, JAt = () => Bt` + `, e7t = () => Bt` - `, e7t = () => Bt` + `, t7t = () => Bt` - `, t7t = () => Bt` + `, r7t = () => Bt` - `, r7t = () => Bt` + `, n7t = () => Bt` - `, n7t = () => Bt` + `, i7t = () => Bt` - `, i7t = () => Bt` + `, s7t = () => Bt` - `, s7t = { - fullscreen: ZAt, - "copy-html": e7t, - refresh: jAt, - "print-to-pdf": n7t -}, a7t = ({ + `, a7t = { + fullscreen: jAt, + "copy-html": t7t, + refresh: KAt, + "print-to-pdf": i7t +}, o7t = ({ alert: t, users: e, text: r, @@ -50762,54 +50773,54 @@ const _At = er.div` collaboration: o, initialMode: l }) => { - const u = Nn(() => Dne.sanitize(WAt(a || ""), [])), h = Nn(() => { + const u = Nn(() => Dne.sanitize(GAt(a || ""), [])), h = Nn(() => { const g = [{ id: "source", tooltip: "Source", action: () => n("Source"), - icon: JAt + icon: e7t }, { id: "preview", tooltip: "Preview", action: () => n("Preview"), - icon: KAt + icon: JAt }, { id: "both", tooltip: "Dual Pane", action: () => n("Both"), - icon: t7t + icon: r7t }, { id: "diff", tooltip: "Diff View", action: () => n("Diff"), - icon: r7t + icon: n7t }]; return o.resolvingCommentsEnabled && g.push({ id: "resolved", tooltip: "Resolved Comments", action: () => n("Resolved"), - icon: i7t + icon: s7t }), 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 || s7t[g.id] + icon: g.icon || a7t[g.id] })).filter((g) => g.icon), []), p = Nn(() => s.filter((g) => g.text && g.id !== "template-manager"), []); - return Bt` <${GAt}> + return Bt` <${HAt}>
${d.map((g) => Bt` <${CL} 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`<${QAt} text=${r} templatelist=${i} />`} + ${s.find((g) => g.id === "template-manager") && i && Bt`<${WAt} text=${r} templatelist=${i} />`}
- ${t && Bt`<${XAt}> ${t} `} - <${HAt} dangerouslySetInnerHTML=${{ + ${t && Bt`<${ZAt}> ${t} `} + <${XAt} dangerouslySetInnerHTML=${{ __html: u }} /> - <${MAt} users=${e} /> + <${DAt} users=${e} /> ${p.map((g) => Bt`<${B0} type="button" onClick=${g.action}>${g.text}`)} - <${LAt} buttons=${h} initialClickedId=${f} /> + <${RAt} buttons=${h} initialClickedId=${f} /> `; }; Lre.prototype.watchCollabolators = function(t) { @@ -50828,7 +50839,7 @@ Lre.prototype.watchCollabolators = function(t) { } }); }; -function o7t(t) { +function l7t(t) { if (!t.enabled) return {}; const e = Nn(() => new q1(), []), [r, n] = Rn(!1), [i, s] = Rn(!1), [a, o] = Rn(!1); @@ -50866,13 +50877,13 @@ function o7t(t) { ready: r && i }; } -function l7t(t, e, r) { +function c7t(t, e, r) { return !t || !e ? null : Nn(() => { const n = new ey(t, e, r); return window.myst_editor.ycomments = n, n; }, []); } -const c7t = er.p` +const u7t = er.p` font-size: 16px; padding: 10px 6px; margin-bottom: 0; @@ -50887,29 +50898,29 @@ const c7t = er.p` & > span { display: ${(t) => t.orphaned ? "none" : "block"}; } -`, u7t = er.div` +`, h7t = 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); -`, h7t = er.div` +`, f7t = er.div` display: flex; justify-content: space-between; align-items: center; line-height: 22px; padding: 0 6px; -`, f7t = er.h2` +`, d7t = er.h2` font-weight: bold; font-size: 12px; margin: 0; -`, d7t = er.p` +`, p7t = er.p` font-size: 12px; font-weight: 400; line-height: 14px; margin: 0; margin-right: 25px; -`, p7t = er.p` +`, g7t = er.p` margin: 0; margin-top: 3px; font-size: 16px; @@ -50927,17 +50938,17 @@ const c7t = er.p` position: absolute; transform: translateX(calc(-100% - 12px)); } -`, g7t = er.span` +`, m7t = er.span` display: block; background-color: color-mix(in srgb, ${(t) => t.color}, white); margin: 0; padding: 10px 6px; white-space: pre-wrap; -`, m7t = er.span` +`, v7t = er.span` position: absolute; transform: translateX(calc(-100% - 24px)); color: var(--gray-700); -`, v7t = er.span` +`, y7t = er.span` margin-right: 6px; display: block; display: flex; @@ -50948,7 +50959,7 @@ const c7t = er.p` &:hover div { display: flex !important; } -`, y7t = er.div` +`, b7t = er.div` align-items: center; position: absolute; background-color: var(--gray-200); @@ -50987,7 +50998,7 @@ const c7t = er.p` color: var(--gray-900); } } -`, b7t = () => Bt` +`, x7t = () => Bt` -`, x7t = () => Bt` +`, w7t = () => Bt` @@ -51016,7 +51027,7 @@ const c7t = er.p` -`, w7t = () => Bt` +`, O7t = () => Bt` -`, O7t = new Intl.RelativeTimeFormat("en", { +`, k7t = new Intl.RelativeTimeFormat("en", { style: "long" -}), k7t = ({ +}), S7t = ({ c: t, authors: e, ycomments: r, @@ -51075,38 +51086,38 @@ const c7t = er.p` const u = Nn(() => t.orphaned ? "RESTORE ORPHANED" : t.occupied ? "RESTORE AND MERGE" : "RESTORE", [t]); return Bt`
- <${c7t} orphaned=${t.orphaned}> - <${m7t}>${t.lineNumber} + <${u7t} orphaned=${t.orphaned}> + <${v7t}>${t.lineNumber} ${t.resolvedLine} - <${u7t} className="resolved-comment" color=${e.get(1).color}> - <${h7t}> + <${h7t} className="resolved-comment" color=${e.get(1).color}> + <${f7t}> <${$Y}> <${wue} login=${e.get(1).name} color=${e.get(1).color} avatarUrl=${e.get(1).avatar} /> - <${f7t}>${e.get(1).name} + <${d7t}>${e.get(1).name} <${$Y}> - <${d7t}>Comment resolved by @${t.resolvedBy.name} ${O7t.format(-i.amount, i.unit)} - <${v7t} className="myst-dropdown-toggle"> - <${b7t} /> - <${y7t}> + <${p7t}>Comment resolved by @${t.resolvedBy.name} ${k7t.format(-i.amount, i.unit)} + <${y7t} className="myst-dropdown-toggle"> + <${x7t} /> + <${b7t}> <${BY} className="myst-restore-btn" onClick=${() => r.restoreComment(t)}> - <${w7t} /> + <${O7t} />

${u}

<${BY} className="myst-delete-btn" onClick=${() => r.resolver().delete(t.commentId)}> - <${x7t} /> + <${w7t} />

DELETE

- <${p7t}> ${o.map((h) => Bt` <${g7t} color=${h.author.color}>${h.text} `)} + <${g7t}> ${o.map((h) => Bt` <${m7t} color=${h.author.color}>${h.text} `)}
`; -}, S7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", Oue = er.div` +}, T7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", Oue = er.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -51123,13 +51134,13 @@ const c7t = er.p` padding-left: 100px; margin-bottom: 0; } -`, T7t = er.hr` +`, C7t = er.hr` border: none; height: 1px; background-color: var(--gray-600); margin-top: 20px; margin-bottom: 0; -`, C7t = er.div` +`, E7t = er.div` margin-left: 100px; border-left: 1px solid var(--gray-600); @@ -51137,7 +51148,7 @@ const c7t = er.p` p { margin-top: 0; } -`, E7t = er.p` +`, _7t = er.p` padding: 10px 6px; img { @@ -51158,7 +51169,7 @@ Oue.defaultProps = { function p_(t, e) { return t.resolvedDate - e.resolvedDate; } -const _7t = ({ +const A7t = ({ ycomments: t }) => { let [e, r] = Rn(t.resolver().resolved().sort(p_)), n = Nn(() => e.reduce((s, { @@ -51168,11 +51179,11 @@ const _7t = ({ r(t.resolver().resolved().sort(p_)), t.resolver().onUpdate((s) => r(s.sort(p_))); }, []), Bt` <${Oue}>

Resolved comments

- <${T7t} /> - <${C7t}> - ${e.length === 0 ? Bt`<${E7t} - >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${k7t} + <${C7t} /> + <${E7t}> + ${e.length === 0 ? Bt`<${_7t} + >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${S7t} key=${s.commentId} c=${s} authors=${i[a]} @@ -51186,7 +51197,7 @@ var dZ; (dZ = window.myst_editor) != null && dZ.isFresh || (nie(), window.myst_editor = { isFresh: !0 }); -const A7t = er.div` +const L7t = er.div` font-family: "Lato"; display: flex; flex-flow: row wrap; @@ -51238,14 +51249,14 @@ const FY = er.div` flex: 1; height: 100%; min-height: 500px; -`, L7t = (t) => { +`, R7t = (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; -}, R7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", ev = { +}, M7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", ev = { printToPdf: { id: "print-to-pdf", tooltip: "Print document as pdf", @@ -51266,13 +51277,13 @@ const FY = er.div` id: "refresh", tooltip: "Refresh issue links" } -}, M7t = [ev.fullscreen, ev.copyHtml, ev.refresh, ev.printToPdf, ev.templateManager], D7t = ({ +}, D7t = [ev.fullscreen, ev.copyHtml, ev.refresh, ev.printToPdf, ev.templateManager], N7t = ({ name: t = "myst_editor_textarea", id: e = "myst_editor_textarea", title: r = null, initialMode: n = "Both", initialText: i = "", - includeButtons: s = M7t, + includeButtons: s = D7t, topbar: a = !0, templatelist: o, collaboration: l = {}, @@ -51288,7 +51299,7 @@ const FY = er.div` syncScroll: m = !1, unfoldedHeadings: v }) => { - const [y, b] = Rn(n), [w, O] = Rn(!1), S = so(null), C = M_t({ + const [y, b] = Rn(n), [w, O] = Rn(!1), S = so(null), C = D_t({ initialText: i, transforms: f, customRoles: h, @@ -51305,7 +51316,7 @@ const FY = er.div` ydoc: k, ready: N, error: M - } = o7t(l), I = l7t(k, _, d), D = (B, V) => { + } = l7t(l), I = c7t(k, _, d), D = (B, V) => { L(B), setTimeout(() => L(null), V * 1e3); }, P = { "copy-html": () => { @@ -51319,10 +51330,10 @@ const FY = er.div` ...B, action: B.action || P[B.id] })), []); - return Yi(() => R7t(w), [w]), Bt`
- <${obe} target=${g} stylisPlugins=${[L7t("#myst-css-namespace")]}> - <${A7t} mode=${y} fullscreen=${w}> - ${a && Bt`<${a7t} + return Yi(() => M7t(w), [w]), Bt`
+ <${obe} target=${g} stylisPlugins=${[R7t("#myst-css-namespace")]}> + <${L7t} mode=${y} fullscreen=${w}> + ${a && Bt`<${o7t} ...${{ alert: T, users: E, @@ -51339,7 +51350,7 @@ const FY = er.div` ${l.enabled && !N && !M && Bt`<${FY}>Connecting to the collaboration server ...`} <${kue} fullscreen=${w}> <${fO} id="editor-wrapper"> - <${iAt} + <${sAt} ...${{ mode: y, text: C, @@ -51365,16 +51376,16 @@ const FY = er.div` /> <${fO} id="preview-wrapper" - ><${aue} ref=${S} mode=${y} onClick=${(B) => __t(B, C.lineMap)} - ><${sAt} className="cm-previewFocus" /><${aue} ref=${S} mode=${y} onClick=${(B) => A_t(B, C.lineMap)} + ><${aAt} className="cm-previewFocus" /> ${y === "Diff" && Bt`<${fO}><${bue} root=${g} oldText=${i} text=${C} />`} - ${l.commentsEnabled && l.resolvingCommentsEnabled && !M && Bt`<${fO} id="resolved-wrapper"><${_7t} ycomments=${I} />`} + ${l.commentsEnabled && l.resolvingCommentsEnabled && !M && Bt`<${fO} id="resolved-wrapper"><${A7t} ycomments=${I} />`}
`; -}, ncr = ({ +}, icr = ({ additionalStyles: t, ...e }, r) => { @@ -51382,7 +51393,7 @@ const FY = 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)), xg(Bt`<${D7t} ...${e} />`, r.shadowRoot); + n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), xg(Bt`<${N7t} ...${e} />`, r.shadowRoot); }; (function() { const e = document.createElement("link").relList; @@ -51441,42 +51452,42 @@ class ct { } } ct.prototype.__proto__ = Error.prototype; -var N7t = function(e, r) { +var I7t = function(e, r) { return e.indexOf(r) !== -1; -}, I7t = function(e, r) { +}, P7t = function(e, r) { return e === void 0 ? r : e; -}, P7t = /([A-Z])/g, $7t = function(e) { - return e.replace(P7t, "-$1").toLowerCase(); -}, B7t = { +}, $7t = /([A-Z])/g, B7t = function(e) { + return e.replace($7t, "-$1").toLowerCase(); +}, F7t = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, F7t = /[&><"']/g; -function z7t(t) { - return String(t).replace(F7t, (e) => B7t[e]); +}, z7t = /[&><"']/g; +function V7t(t) { + return String(t).replace(z7t, (e) => F7t[e]); } var Sue = 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; -}, V7t = function(e) { +}, U7t = function(e) { var r = Sue(e); return r.type === "mathord" || r.type === "textord" || r.type === "atom"; -}, U7t = function(e) { +}, q7t = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, q7t = function(e) { +}, Y7t = 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: N7t, - deflt: I7t, - escape: z7t, - hyphenate: $7t, + contains: I7t, + deflt: P7t, + escape: V7t, + hyphenate: B7t, getBaseElem: Sue, - isCharacterBox: V7t, - protocolFromUrl: q7t + isCharacterBox: U7t, + protocolFromUrl: Y7t }, q4 = { displayMode: { type: "boolean", @@ -51564,7 +51575,7 @@ var Sue = function t(e) { cli: !1 } }; -function Y7t(t) { +function Q7t(t) { if (t.default) return t.default; var e = t.type, r = Array.isArray(e) ? e[0] : e; @@ -51587,7 +51598,7 @@ class _N { for (var r in q4) if (q4.hasOwnProperty(r)) { var n = q4[r]; - this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : Y7t(n); + this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : Q7t(n); } } reportNonstrict(e, r, n) { @@ -51624,28 +51635,28 @@ 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[Q7t[this.id]]; + return cc[W7t[this.id]]; } sub() { - return cc[W7t[this.id]]; + return cc[G7t[this.id]]; } fracNum() { - return cc[G7t[this.id]]; + return cc[H7t[this.id]]; } fracDen() { - return cc[H7t[this.id]]; + return cc[X7t[this.id]]; } cramp() { - return cc[X7t[this.id]]; + return cc[Z7t[this.id]]; } text() { - return cc[Z7t[this.id]]; + return cc[j7t[this.id]]; } isTight() { return this.size >= 2; } } -var AN = 0, ak = 1, lg = 2, Mu = 3, T2 = 4, Io = 5, u1 = 6, na = 7, cc = [new vh(AN, 0, !1), new vh(ak, 0, !0), new vh(lg, 1, !1), new vh(Mu, 1, !0), new vh(T2, 2, !1), new vh(Io, 2, !0), new vh(u1, 3, !1), new vh(na, 3, !0)], Q7t = [T2, Io, T2, Io, u1, na, u1, na], W7t = [Io, Io, Io, Io, na, na, na, na], G7t = [lg, Mu, T2, Io, u1, na, u1, na], H7t = [Mu, Mu, Io, Io, na, na, na, na], X7t = [ak, ak, Mu, Mu, Io, Io, na, na], Z7t = [AN, ak, lg, Mu, lg, Mu, lg, Mu], Xt = { +var AN = 0, ak = 1, lg = 2, Mu = 3, T2 = 4, Io = 5, u1 = 6, na = 7, cc = [new vh(AN, 0, !1), new vh(ak, 0, !0), new vh(lg, 1, !1), new vh(Mu, 1, !0), new vh(T2, 2, !1), new vh(Io, 2, !0), new vh(u1, 3, !1), new vh(na, 3, !0)], W7t = [T2, Io, T2, Io, u1, na, u1, na], G7t = [Io, Io, Io, Io, na, na, na, na], H7t = [lg, Mu, T2, Io, u1, na, u1, na], X7t = [Mu, Mu, Io, Io, na, na, na, na], Z7t = [ak, ak, Mu, Mu, Io, Io, na, na], j7t = [AN, ak, lg, Mu, lg, Mu, lg, Mu], Xt = { DISPLAY: cc[AN], TEXT: cc[lg], SCRIPT: cc[T2], @@ -51679,7 +51690,7 @@ var AN = 0, ak = 1, lg = 2, Mu = 3, T2 = 4, Io = 5, u1 = 6, na = 7, cc = [new vh name: "hangul", blocks: [[44032, 55215]] }]; -function j7t(t) { +function K7t(t) { for (var e = 0; e < EL.length; e++) for (var r = EL[e], n = 0; n < r.blocks.length; n++) { var i = r.blocks[n]; @@ -51696,7 +51707,7 @@ function Tue(t) { return !0; return !1; } -var pp = 80, K7t = function(e, r) { +var pp = 80, J7t = 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 @@ -51709,7 +51720,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"; -}, J7t = function(e, r) { +}, e8t = 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 @@ -51721,7 +51732,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"; -}, e8t = function(e, r) { +}, t8t = function(e, r) { return "M983 " + (10 + e + r) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -51732,7 +51743,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"; -}, t8t = function(e, r) { +}, r8t = 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 @@ -51744,7 +51755,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"; -}, r8t = function(e, r) { +}, n8t = 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 @@ -51753,40 +51764,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"; -}, n8t = function(e) { +}, i8t = function(e) { var r = e / 2; return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, i8t = function(e, r, n) { +}, s8t = 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"; -}, s8t = function(e, r, n) { +}, a8t = function(e, r, n) { r = 1e3 * r; var i = ""; switch (e) { case "sqrtMain": - i = K7t(r, pp); + i = J7t(r, pp); break; case "sqrtSize1": - i = J7t(r, pp); + i = e8t(r, pp); break; case "sqrtSize2": - i = e8t(r, pp); + i = t8t(r, pp); break; case "sqrtSize3": - i = t8t(r, pp); + i = r8t(r, pp); break; case "sqrtSize4": - i = r8t(r, pp); + i = n8t(r, pp); break; case "sqrtTall": - i = i8t(r, pp, n); + i = s8t(r, pp, n); } return i; -}, a8t = function(e, r) { +}, o8t = function(e, r) { switch (e) { case "\u239C": return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z"; @@ -52040,7 +52051,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` -}, o8t = function(e, r) { +}, l8t = function(e, r) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84 @@ -54298,7 +54309,7 @@ var Oc = { \u044E: "m", \u044F: "r" }; -function l8t(t, e) { +function c8t(t, e) { Oc[t] = e; } function LN(t, e, r) { @@ -54315,7 +54326,7 @@ function LN(t, e, r) { }; } var g_ = {}; -function c8t(t) { +function u8t(t) { var e; if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !g_[e]) { var r = g_[e] = { @@ -54326,7 +54337,7 @@ function c8t(t) { } return g_[e]; } -var u8t = [ +var h8t = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -54351,7 +54362,7 @@ var u8t = [ 2.074, 2.488 ], qY = function(e, r) { - return r.size < 2 ? e : u8t[e - 1][r.size - 1]; + return r.size < 2 ? e : h8t[e - 1][r.size - 1]; }; class gu { constructor(e) { @@ -54459,7 +54470,7 @@ class gu { return this.size !== gu.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + gu.BASESIZE] : []; } fontMetrics() { - return this._fontMetrics || (this._fontMetrics = c8t(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = u8t(this.size)), this._fontMetrics; } getColor() { return this.phantom ? "transparent" : this.color; @@ -54479,12 +54490,12 @@ var _L = { nc: 1370 / 107, sp: 1 / 65536, px: 803 / 800 -}, h8t = { +}, f8t = { ex: !0, em: !0, mu: !0 }, Cue = function(e) { - return typeof e != "string" && (e = e.unit), e in _L || e in h8t || e === "ex"; + return typeof e != "string" && (e = e.unit), e in _L || e in f8t || e === "ex"; }, Mn = function(e, r) { var n; if (e.unit in _L) @@ -54570,7 +54581,7 @@ class RN { return Aue.call(this, "a"); } } -class f8t { +class d8t { 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; } @@ -54591,7 +54602,7 @@ class f8t { return r && (e += ' style="' + Gt.escape(r) + '"'), e += "'/>", e; } } -var d8t = { +var p8t = { \u00EE: "\u0131\u0302", \u00EF: "\u0131\u0308", \u00ED: "\u0131\u0301", @@ -54600,8 +54611,8 @@ var d8t = { 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 = j7t(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = d8t[this.text]); + var u = K7t(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = p8t[this.text]); } hasClass(e) { return Gt.contains(this.classes, e); @@ -54681,19 +54692,19 @@ function YY(t) { return t; throw new Error("Expected symbolNode but got " + String(t) + "."); } -function p8t(t) { +function g8t(t) { if (t instanceof Tx) return t; throw new Error("Expected span but got " + String(t) + "."); } -var g8t = { +var m8t = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, m8t = { +}, v8t = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -55389,7 +55400,7 @@ var mO = [ ["mathsf", "textsf", "SansSerif-Regular"], ["mathboldsf", "textboldsf", "SansSerif-Bold"], ["mathtt", "texttt", "Typewriter-Regular"] -], v8t = function(e, r) { +], y8t = 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); @@ -55424,9 +55435,9 @@ var mO = [ h && (l.style.color = h); } return l; -}, y8t = function(e, r, n, i) { +}, b8t = function(e, r, n, i) { return i === void 0 && (i = []), n.font === "boldsymbol" && jT(e, "Main-Bold", r).metrics ? hl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || fn[r][e].font === "main" ? hl(e, "Main-Regular", r, n, i) : hl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); -}, b8t = function(e, r, n, i, s) { +}, x8t = function(e, r, n, i, s) { return s !== "textord" && jT(e, "Math-BoldItalic", r).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" @@ -55434,14 +55445,14 @@ var mO = [ fontName: "Main-Bold", fontClass: "mathbf" }; -}, x8t = function(e, r, n) { +}, w8t = 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] = v8t(s, i)), u.length > 0) + if (s.charCodeAt(0) === 55349 && ([u, h] = y8t(s, i)), u.length > 0) return hl(s, u, i, r, a.concat(h)); if (l) { var f, d; if (l === "boldsymbol") { - var p = b8t(s, i, r, a, n); + var p = x8t(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else o ? (f = Due[l].fontName, d = [l]) : (f = vO(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); @@ -55469,7 +55480,7 @@ var mO = [ } } else throw new Error("unexpected type: " + n + " in makeOrd"); -}, w8t = (t, e) => { +}, O8t = (t, e) => { if (kf(t.classes) !== kf(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) return !1; if (t.classes.length === 1) { @@ -55484,10 +55495,10 @@ var mO = [ if (e.style.hasOwnProperty(i) && t.style[i] !== e.style[i]) return !1; return !0; -}, O8t = (t) => { +}, k8t = (t) => { for (var e = 0; e < t.length - 1; e++) { var r = t[e], n = t[e + 1]; - r instanceof jo && n instanceof jo && w8t(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 && O8t(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; }, MN = function(e) { @@ -55499,18 +55510,18 @@ var mO = [ }, ba = function(e, r, n, i) { var s = new Tx(e, r, n, i); return MN(s), s; -}, Rue = (t, e, r, n) => new Tx(t, e, r, n), k8t = function(e, r, n) { +}, Rue = (t, e, r, n) => new Tx(t, e, r, n), S8t = 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; -}, S8t = function(e, r, n, i) { +}, T8t = function(e, r, n, i) { var s = new RN(e, r, n, i); return MN(s), s; }, Mue = function(e) { var r = new Sx(e); return MN(r), r; -}, T8t = function(e, r) { +}, C8t = function(e, r) { return e instanceof Sx ? ba([], [e], r) : e; -}, C8t = function(e) { +}, E8t = 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); @@ -55548,11 +55559,11 @@ var mO = [ children: e.children, depth: u }; -}, E8t = function(e, r) { +}, _8t = function(e, r) { for (var { children: n, depth: i - } = C8t(e), s = 0, a = 0; a < n.length; a++) { + } = E8t(e), s = 0, a = 0; a < n.length; a++) { var o = n[a]; if (o.type === "elem") { var l = o.elem; @@ -55584,7 +55595,7 @@ var mO = [ 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; -}, _8t = (t, e) => { +}, A8t = (t, e) => { var r = ba(["mspace"], [], e), n = Mn(t, e); return r.style.marginRight = vt(n), r; }, vO = function(e, r, n) { @@ -55658,7 +55669,7 @@ var mO = [ oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, A8t = function(e, r) { +}, L8t = function(e, r) { var [n, i, s] = Nue[e], a = new Sf(n), o = new Wu([a], { width: vt(i), height: vt(s), @@ -55670,19 +55681,19 @@ var mO = [ }, Be = { fontMap: Due, makeSymbol: hl, - mathsym: y8t, + mathsym: b8t, makeSpan: ba, makeSvgSpan: Rue, - makeLineSpan: k8t, - makeAnchor: S8t, + makeLineSpan: S8t, + makeAnchor: T8t, makeFragment: Mue, - wrapFragment: T8t, - makeVList: E8t, - makeOrd: x8t, - makeGlue: _8t, - staticSvg: A8t, + wrapFragment: C8t, + makeVList: _8t, + makeOrd: w8t, + makeGlue: A8t, + staticSvg: L8t, svgData: Nue, - tryCombineChars: O8t + tryCombineChars: k8t }, An = { number: 3, unit: "mu" @@ -55692,7 +55703,7 @@ var mO = [ }, cu = { number: 5, unit: "mu" -}, L8t = { +}, R8t = { mord: { mop: An, mbin: id, @@ -55742,7 +55753,7 @@ var mO = [ mpunct: An, minner: An } -}, R8t = { +}, M8t = { mord: { mop: An }, @@ -55807,12 +55818,12 @@ var uk = 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, M8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], D8t = ["rightmost", "mrel", "mclose", "mpunct"], N8t = { +}, Gu = Be.makeSpan, D8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], N8t = ["rightmost", "mrel", "mclose", "mpunct"], I8t = { display: Xt.DISPLAY, text: Xt.TEXT, script: Xt.SCRIPT, scriptscript: Xt.SCRIPTSCRIPT -}, I8t = { +}, P8t = { mord: "mord", mop: "mop", mbin: "mbin", @@ -55836,16 +55847,16 @@ var uk = 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(N8t[h.style])); + h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(I8t[h.style])); } var f = Gu([i[0] || "leftmost"], [], r), d = Gu([i[1] || "rightmost"], [], r), p = n === "root"; return ZY(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; - v === "mbin" && Gt.contains(D8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(M8t, v) && (g.classes[0] = "mord"); + v === "mbin" && Gt.contains(N8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(D8t, v) && (g.classes[0] = "mord"); }, { node: f }, d, p), ZY(s, (g, m) => { - var v = RL(m), y = RL(g), b = v && y ? g.hasClass("mtight") ? R8t[v][y] : L8t[v][y] : null; + var v = RL(m), y = RL(g), b = v && y ? g.hasClass("mtight") ? M8t[v][y] : R8t[v][y] : null; if (b) return Be.makeGlue(b, u); }, { @@ -55871,7 +55882,7 @@ var uk = function(e) { i && e.pop(); }, Pue = function(e) { return e instanceof Sx || e instanceof RN || e instanceof Tx && e.hasClass("enclosing") ? e : null; -}, P8t = function t(e, r) { +}, $8t = function t(e, r) { var n = Pue(e); if (n) { var i = n.children; @@ -55884,7 +55895,7 @@ var uk = function(e) { } return e; }, RL = function(e, r) { - return e ? (r && (e = P8t(e, r)), I8t[e.classes[0]] || null) : null; + return e ? (r && (e = $8t(e, r)), P8t[e.classes[0]] || null) : null; }, C2 = function(e, r) { var n = ["nulldelimiter"].concat(e.baseSizingClasses()); return Gu(r.concat(n)); @@ -55977,7 +55988,7 @@ class uy { return this.text; } } -class $8t { +class B8t { 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; } @@ -55997,7 +56008,7 @@ class $8t { var lt = { MathNode: Ro, TextNode: uy, - SpaceNode: $8t, + SpaceNode: B8t, newDocumentFragment: $ue }, Ko = function(e, r, n) { return fn[r][e] && fn[r][e].replace && e.charCodeAt(0) !== 55349 && !(Lue.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = fn[r][e].replace), new lt.TextNode(e); @@ -56104,7 +56115,7 @@ var Bue = function(e) { r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Be.makeSpan(n, [e]); } return e; -}, B8t = function(e, r, n) { +}, F8t = function(e, r, n) { var i = Bue(n), s; if (n.output === "mathml") return jY(e, r, i, n.displayMode, !0); @@ -56116,10 +56127,10 @@ var Bue = function(e) { s = Be.makeSpan(["katex"], [o, l]); } return Fue(s, n); -}, F8t = function(e, r, n) { +}, z8t = function(e, r, n) { var i = Bue(n), s = ML(e, i), a = Be.makeSpan(["katex"], [s]); return Fue(a, n); -}, z8t = { +}, V8t = { widehat: "^", widecheck: "\u02C7", widetilde: "~", @@ -56162,10 +56173,10 @@ var Bue = function(e) { "\\cdrightarrow": "\u2192", "\\cdleftarrow": "\u2190", "\\cdlongequal": "=" -}, V8t = function(e) { - var r = new lt.MathNode("mo", [new lt.TextNode(z8t[e.replace(/^\\/, "")])]); +}, U8t = function(e) { + var r = new lt.MathNode("mo", [new lt.TextNode(V8t[e.replace(/^\\/, "")])]); return r.setAttribute("stretchy", "true"), r; -}, U8t = { +}, q8t = { overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], @@ -56206,13 +56217,13 @@ var Bue = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, q8t = function(e) { +}, Y8t = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, Y8t = function(e, r) { +}, Q8t = 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 = q8t(u.base), f, d, p; + var u = e, h = Y8t(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 { @@ -56231,7 +56242,7 @@ var Bue = function(e) { height: p }; } else { - var y = [], b = U8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, L, E; + var y = [], b = q8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, L, E; if (T === 1) { var R = b[3]; L = ["hide-tail"], E = [R]; @@ -56270,7 +56281,7 @@ var Bue = function(e) { height: a } = n(); return i.height = a, i.style.height = vt(a), s > 0 && (i.style.minWidth = vt(s)), i; -}, Q8t = function(e, r, n, i, s) { +}, W8t = 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") { @@ -56300,9 +56311,9 @@ var Bue = function(e) { } return a.height = o, a.style.height = vt(o), a; }, Hu = { - encloseSpan: Q8t, - mathMLnode: V8t, - svgSpan: Y8t + encloseSpan: W8t, + mathMLnode: U8t, + svgSpan: Q8t }; function gr(t, e) { if (!t || t.type !== e) @@ -56316,11 +56327,11 @@ function IN(t) { return e; } function KT(t) { - return t && (t.type === "atom" || m8t.hasOwnProperty(t.type)) ? t : null; + return t && (t.type === "atom" || v8t.hasOwnProperty(t.type)) ? t : null; } var PN = (t, e) => { var r, n, i; - t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = p8t(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 = g8t(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()); @@ -56371,7 +56382,7 @@ var PN = (t, e) => { }, zue = (t, e) => { var r = t.isStretchy ? Hu.mathMLnode(t.label) : new lt.MathNode("mo", [Ko(t.label, t.mode)]), n = new lt.MathNode("mover", [an(t.base, e), r]); return n.setAttribute("accent", "true"), n; -}, W8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); +}, G8t = 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"], @@ -56379,7 +56390,7 @@ Ct({ numArgs: 1 }, handler: (t, e) => { - var r = uk(e[0]), n = !W8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; + var r = uk(e[0]), n = !G8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; return { type: "accent", mode: t.parser.mode, @@ -56566,10 +56577,10 @@ Ct({ return n; } }); -var G8t = Be.makeSpan; +var H8t = Be.makeSpan; function Vue(t, e) { var r = Mi(t.body, e, !0); - return G8t([t.mclass], r, e); + return H8t([t.mclass], r, e); } function Uue(t, e) { var r, n = Va(t.body, e); @@ -56687,7 +56698,7 @@ Ct({ return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n; } }); -var H8t = { +var X8t = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -56700,9 +56711,9 @@ var H8t = { body: [], mode: "math", style: "display" -}), JY = (t) => t.type === "textord" && t.text === "@", X8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; -function Z8t(t, e, r) { - var n = H8t[t]; +}), JY = (t) => t.type === "textord" && t.text === "@", Z8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +function j8t(t, e, r) { + var n = X8t[t]; switch (n) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -56739,7 +56750,7 @@ function Z8t(t, e, r) { }; } } -function j8t(t) { +function K8t(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(); @@ -56771,7 +56782,7 @@ function j8t(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 (X8t(a[p], u)) { + if (Z8t(a[p], u)) { d = !1, l = p; break; } @@ -56784,7 +56795,7 @@ function j8t(t) { } else throw new ct('Expected one of "<>AV=|." after @', a[l]); - var g = Z8t(u, h, t), m = { + var g = j8t(u, h, t), m = { type: "styling", body: [g], mode: "math", @@ -56987,7 +56998,7 @@ var DL = { if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new ct("Expected a control sequence", t); return e; -}, K8t = (t) => { +}, J8t = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; }, Wue = (t, e, r, n) => { @@ -57082,7 +57093,7 @@ Ct({ funcName: r } = t, n = Que(e.gullet.popToken()); e.gullet.consumeSpaces(); - var i = K8t(e); + var i = J8t(e); return Wue(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode @@ -57122,13 +57133,13 @@ var Cv = function(e, r, n) { }, Gue = 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; -}, J8t = function(e, r, n, i, s, a) { +}, eLt = function(e, r, n, i, s, a) { var o = Be.makeSymbol(e, "Main-Regular", s, i), l = $N(o, r, i, a); return n && Gue(l, i, r), l; -}, eLt = function(e, r, n, i) { +}, tLt = function(e, r, n, i) { return Be.makeSymbol(e, "Size" + r + "-Regular", n, i); }, Hue = function(e, r, n, i, s, a) { - var o = eLt(e, r, s, i), l = $N(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); + var o = tLt(e, r, s, i), l = $N(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); return n && Gue(l, i, Xt.TEXT), l; }, x_ = function(e, r, n) { var i; @@ -57139,7 +57150,7 @@ var Cv = function(e, r, n) { elem: s }; }, w_ = 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 Sf("inner", a8t(e, Math.round(1e3 * r))), a = new Wu([s], { + var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new Sf("inner", o8t(e, Math.round(1e3 * r))), a = new Wu([s], { width: vt(i), height: vt(r), style: "width:" + vt(i), @@ -57153,11 +57164,11 @@ var Cv = function(e, r, n) { }, NL = 8e-3, xO = { type: "kern", size: -1 * NL -}, tLt = ["|", "\\lvert", "\\rvert", "\\vert"], rLt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Xue = function(e, r, n, i, s, a) { +}, rLt = ["|", "\\lvert", "\\rvert", "\\vert"], nLt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Xue = 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(tLt, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(rLt, 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(rLt, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(nLt, 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 = Cv(o, p, s), m = g.height + g.depth, v = Cv(u, p, s), y = v.height + v.depth, b = Cv(h, p, s), w = b.height + b.depth, O = 0, S = 1; if (l !== null) { var C = Cv(l, p, s); @@ -57167,7 +57178,7 @@ var Cv = function(e, r, n) { n && (R *= i.sizeMultiplier); var _ = E / 2 - R, A = []; if (f.length > 0) { - var $ = E - m - w, k = Math.round(E * 1e3), N = o8t(f, Math.round($ * 1e3)), M = new Sf(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 = l8t(f, Math.round($ * 1e3)), M = new Sf(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 @@ -57193,27 +57204,27 @@ var Cv = function(e, r, n) { }, Y); return $N(Be.makeSpan(["delimsizing", "mult"], [G], Y), Xt.TEXT, i, a); }, O_ = 80, k_ = 0.08, S_ = function(e, r, n, i, s) { - var a = s8t(e, i, n), o = new Sf(e, a), l = new Wu([o], { + var a = a8t(e, i, n), o = new Sf(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); -}, nLt = function(e, r) { +}, iLt = function(e, r) { var n = r.havingBaseSizing(), i = Jue("\\surd", e * n.sizeMultiplier, Kue, 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 + O_, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + k_) / s, u = (1 + a) / s, o = S_("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + O_) * hy[i.size], u = (hy[i.size] + a) / s, l = (hy[i.size] + a + k_) / s, o = S_("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + k_, u = e + a, h = Math.floor(1e3 * e + a) + O_, o = S_("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 }; -}, Zue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], iLt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], jue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], hy = [0, 1.2, 1.8, 2.4, 3], sLt = function(e, r, n, i, s) { +}, Zue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], sLt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], jue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], hy = [0, 1.2, 1.8, 2.4, 3], aLt = 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(jue, e)) return Hue(e, r, !1, n, i, s); - if (Gt.contains(iLt, e)) + if (Gt.contains(sLt, e)) return Xue(e, hy[r], !1, n, i, s); throw new ct("Illegal delimiter: '" + e + "'"); -}, aLt = [{ +}, oLt = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57234,7 +57245,7 @@ var Cv = function(e, r, n) { }, { type: "large", size: 4 -}], oLt = [{ +}], lLt = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57268,7 +57279,7 @@ var Cv = function(e, r, n) { size: 4 }, { type: "stack" -}], lLt = function(e) { +}], cLt = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -57278,7 +57289,7 @@ var Cv = function(e, r, n) { throw new Error("Add support for delim type '" + e.type + "' here."); }, Jue = 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 = Cv(e, lLt(n[a]), "math"), l = o.height + o.depth; + var o = Cv(e, cLt(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { var u = i.havingBaseStyle(n[a].style); l *= u.sizeMultiplier; @@ -57290,21 +57301,21 @@ var Cv = function(e, r, n) { }, ehe = 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(jue, e) ? o = aLt : Gt.contains(Zue, e) ? o = Kue : o = oLt; + Gt.contains(jue, e) ? o = oLt : Gt.contains(Zue, e) ? o = Kue : o = lLt; var l = Jue(e, r, o, i); - return l.type === "small" ? J8t(e, l.style, n, i, s, a) : l.type === "large" ? Hue(e, l.size, n, i, s, a) : Xue(e, r, n, i, s, a); -}, cLt = function(e, r, n, i, s, a) { + return l.type === "small" ? eLt(e, l.style, n, i, s, a) : l.type === "large" ? Hue(e, l.size, n, i, s, a) : Xue(e, r, n, i, s, a); +}, uLt = 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 ehe(e, f, !0, i, s, a); }, Du = { - sqrtImage: nLt, - sizedDelim: sLt, + sqrtImage: iLt, + sizedDelim: aLt, sizeToMaxHeight: hy, customSizedDelim: ehe, - leftRightDelim: cLt + leftRightDelim: uLt }, eQ = { "\\bigl": { mclass: "mopen", @@ -57370,10 +57381,10 @@ var Cv = function(e, r, n) { mclass: "mord", size: 4 } -}, uLt = ["(", "\\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", "."]; +}, hLt = ["(", "\\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 eC(t, e) { var r = KT(t); - if (r && Gt.contains(uLt, r.text)) + if (r && Gt.contains(hLt, r.text)) return r; throw r ? new ct("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new ct("Invalid delimiter type '" + t.type + "'", t); } @@ -57534,7 +57545,7 @@ var BN = (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 = n8t(d), g = new Wu([new Sf("phase", p)], { + var d = Math.floor(1e3 * f * i), p = i8t(d), g = new Wu([new Sf("phase", p)], { width: "400em", height: vt(d / 1e3), viewBox: "0 0 400000 " + d, @@ -57951,7 +57962,7 @@ var eu = function(e, r) { children: I }, r); return ce = Be.makeSpan(["tag"], [ce], r), Be.makeFragment([l, ce]); -}, hLt = { +}, fLt = { c: "center ", l: "left ", r: "right " @@ -57968,7 +57979,7 @@ var eu = 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 += hLt[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 += fLt[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") { @@ -58261,7 +58272,7 @@ Jc({ numArgs: 0 }, handler(t) { - return tC(t), j8t(t.parser); + return tC(t), K8t(t.parser); }, htmlBuilder: eu, mathmlBuilder: tu @@ -58719,7 +58730,7 @@ Ct({ var { parser: r, funcName: n - } = t, i = e[0], s = U7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; + } = t, i = e[0], s = q7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; return { type: "genfrac", mode: r.mode, @@ -58795,7 +58806,7 @@ var ohe = (t, e) => { }, e); } return Be.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], e); -}, fLt = (t, e) => { +}, dLt = (t, e) => { var r = Hu.mathMLnode(t.label); return new lt.MathNode(t.isOver ? "mover" : "munder", [an(t.base, e), r]); }; @@ -58819,7 +58830,7 @@ Ct({ }; }, htmlBuilder: ohe, - mathmlBuilder: fLt + mathmlBuilder: dLt }); Ct({ type: "href", @@ -59095,7 +59106,7 @@ Ct({ height: vt(r + n) }; i > 0 && (s.width = vt(i)), n > 0 && (s.verticalAlign = vt(-n)); - var a = new f8t(t.src, t.alt, s); + var a = new d8t(t.src, t.alt, s); return a.height = r, a.depth = n, a; }, mathmlBuilder: (t, e) => { @@ -59394,7 +59405,7 @@ var lhe = (t, e, r, n, i, s, a) => { t.parentIsSupSub ? r = new Ro("mrow", [r, n]) : r = $ue([r, n]); } return r; -}, dLt = { +}, pLt = { "\u220F": "\\prod", "\u2210": "\\coprod", "\u2211": "\\sum", @@ -59419,7 +59430,7 @@ Ct({ parser: r, funcName: n } = t, i = n; - return i.length === 1 && (i = dLt[i]), { + return i.length === 1 && (i = pLt[i]), { type: "op", mode: r.mode, limits: !0, @@ -59454,7 +59465,7 @@ Ct({ htmlBuilder: im, mathmlBuilder: Cx }); -var pLt = { +var gLt = { "\u222B": "\\int", "\u222C": "\\iint", "\u222D": "\\iiint", @@ -59519,7 +59530,7 @@ Ct({ parser: e, funcName: r } = t, n = r; - return n.length === 1 && (n = pLt[n]), { + return n.length === 1 && (n = gLt[n]), { type: "op", mode: e.mode, limits: !1, @@ -59551,7 +59562,7 @@ var uhe = (t, e) => { } else a = Be.makeSpan(["mop"], [], e); return i ? lhe(a, r, n, e, e.style, 0, 0) : a; -}, gLt = (t, e) => { +}, mLt = (t, e) => { for (var r = Va(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; if (!(s instanceof lt.SpaceNode)) @@ -59604,7 +59615,7 @@ Ct({ }; }, htmlBuilder: uhe, - mathmlBuilder: gLt + mathmlBuilder: mLt }); le("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); j0({ @@ -59835,7 +59846,7 @@ function hhe(t, e, r) { } return Be.makeFragment(n); } -var lQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], mLt = (t, e) => { +var lQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], vLt = (t, e) => { var r = e.havingSize(t.size); return hhe(t.body, r, e); }; @@ -59859,7 +59870,7 @@ Ct({ body: s }; }, - htmlBuilder: mLt, + htmlBuilder: vLt, mathmlBuilder: (t, e) => { var r = e.havingSize(t.size), n = Va(t.body, r), i = new lt.MathNode("mstyle", n); return i.setAttribute("mathsize", vt(r.sizeMultiplier)), i; @@ -60034,7 +60045,7 @@ Ct({ return s.setAttribute("scriptlevel", o[0]), s.setAttribute("displaystyle", o[1]), s; } }); -var vLt = function(e, r) { +var yLt = function(e, r) { var n = e.base; if (n) if (n.type === "op") { @@ -60058,7 +60069,7 @@ var vLt = function(e, r) { j0({ type: "supsub", htmlBuilder(t, e) { - var r = vLt(t, e); + var r = yLt(t, e); if (r) return r(t, e); var { @@ -60259,7 +60270,7 @@ var hQ = { }, fQ = { "\\textbf": "textbf", "\\textmd": "textmd" -}, yLt = { +}, bLt = { "\\textit": "textit", "\\textup": "textup" }, dQ = (t, e) => { @@ -60273,7 +60284,7 @@ var hQ = { return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(yLt[r]); + return e.withTextFontShape(bLt[r]); }; Ct({ type: "text", @@ -60416,12 +60427,12 @@ Ct({ } }); var pQ = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), Uh = Iue, dhe = `[ \r - ]`, bLt = "\\\\[a-zA-Z@]+", xLt = "\\\\[^\uD800-\uDFFF]", wLt = "(" + bLt + ")" + dhe + "*", OLt = `\\\\( + ]`, xLt = "\\\\[a-zA-Z@]+", wLt = "\\\\[^\uD800-\uDFFF]", OLt = "(" + xLt + ")" + dhe + "*", kLt = `\\\\( |[ \r ]+ -?)[ \r ]*`, IL = "[\u0300-\u036F]", kLt = new RegExp(IL + "+$"), SLt = "(" + dhe + "+)|" + (OLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (IL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (IL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + wLt) + ("|" + xLt + ")"); +?)[ \r ]*`, IL = "[\u0300-\u036F]", SLt = new RegExp(IL + "+$"), TLt = "(" + dhe + "+)|" + (kLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (IL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (IL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + OLt) + ("|" + wLt + ")"); class gQ { 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(SLt, "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(TLt, "g"), this.catcodes = { "%": 14, "~": 13 }; @@ -60445,7 +60456,7 @@ class gQ { return new zo(i, new Ja(this, r, this.tokenRegex.lastIndex)); } } -class TLt { +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 = []; } @@ -60481,7 +60492,7 @@ class TLt { r == null ? delete this.current[e] : this.current[e] = r; } } -var CLt = rhe; +var ELt = rhe; le("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -61056,9 +61067,9 @@ var mhe = { "\\limits": !0, "\\nolimits": !0 }; -class ELt { +class _Lt { 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 TLt(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(ELt, r.macros), this.mode = n, this.stack = []; } feed(e) { this.lexer = new gQ(e, this.settings); @@ -61744,7 +61755,7 @@ var yQ = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ }; class rC { 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 ELt(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 _Lt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; } expect(e, r) { if (r === void 0 && (r = !0), this.fetch().text !== e) @@ -62143,13 +62154,13 @@ class rC { }; } bQ.hasOwnProperty(r[0]) && !fn[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 = bQ[r[0]] + r.slice(1)); - var s = kLt.exec(r); + var s = SLt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; if (fn[this.mode][r]) { this.settings.strict && this.mode === "math" && LL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); var o = fn[this.mode][r].group, l = Ja.range(e), u; - if (g8t.hasOwnProperty(o)) { + if (m8t.hasOwnProperty(o)) { var h = o; u = { type: "atom", @@ -62222,10 +62233,10 @@ var WN = function(e, r) { 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."), vhe = function() { throw new ct("KaTeX doesn't work in quirks mode."); }); -var _Lt = function(e, r) { +var ALt = function(e, r) { var n = GN(e, r).toMarkup(); return n; -}, ALt = function(e, r) { +}, LLt = function(e, r) { var n = new _N(r); return WN(e, n); }, yhe = function(e, r, n) { @@ -62237,28 +62248,28 @@ var _Lt = function(e, r) { var n = new _N(r); try { var i = WN(e, n); - return B8t(i, e, n); + return F8t(i, e, n); } catch (s) { return yhe(s, e, n); } -}, LLt = function(e, r) { +}, RLt = function(e, r) { var n = new _N(r); try { var i = WN(e, n); - return F8t(i, e, n); + return z8t(i, e, n); } catch (s) { return yhe(s, e, n); } -}, RLt = { +}, MLt = { version: "0.16.11", render: vhe, - renderToString: _Lt, + renderToString: ALt, ParseError: ct, SETTINGS_SCHEMA: q4, - __parse: ALt, + __parse: LLt, __renderToDomTree: GN, - __renderToHTMLTree: LLt, - __setFontMetrics: l8t, + __renderToHTMLTree: RLt, + __setFontMetrics: c8t, __defineSymbol: z, __defineFunction: Ct, __defineMacro: le, @@ -62271,20 +62282,20 @@ var _Lt = function(e, r) { LineNode: AL } }; -const MLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const DLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: RLt + default: MLt }, Symbol.toStringTag, { value: "Module" })); -var DLt = "[object Symbol]"; +var NLt = "[object Symbol]"; function m0(t) { - return typeof t == "symbol" || Xo(t) && ah(t) == DLt; + return typeof t == "symbol" || Xo(t) && ah(t) == NLt; } function ef(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 NLt = 1 / 0, xQ = Go ? Go.prototype : void 0, wQ = xQ ? xQ.toString : void 0; +var ILt = 1 / 0, xQ = Go ? Go.prototype : void 0, wQ = xQ ? xQ.toString : void 0; function bhe(t) { if (typeof t == "string") return t; @@ -62293,20 +62304,20 @@ function bhe(t) { if (m0(t)) return wQ ? wQ.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -NLt ? "-0" : e; + return e == "0" && 1 / t == -ILt ? "-0" : e; } -var ILt = /\s/; -function PLt(t) { - for (var e = t.length; e-- && ILt.test(t.charAt(e)); ) +var PLt = /\s/; +function $Lt(t) { + for (var e = t.length; e-- && PLt.test(t.charAt(e)); ) ; return e; } -var $Lt = /^\s+/; -function BLt(t) { - return t && t.slice(0, PLt(t) + 1).replace($Lt, ""); +var BLt = /^\s+/; +function FLt(t) { + return t && t.slice(0, $Lt(t) + 1).replace(BLt, ""); } -var OQ = 0 / 0, FLt = /^[-+]0x[0-9a-f]+$/i, zLt = /^0b[01]+$/i, VLt = /^0o[0-7]+$/i, ULt = parseInt; -function qLt(t) { +var OQ = 0 / 0, zLt = /^[-+]0x[0-9a-f]+$/i, VLt = /^0b[01]+$/i, ULt = /^0o[0-7]+$/i, qLt = parseInt; +function YLt(t) { if (typeof t == "number") return t; if (m0(t)) @@ -62317,17 +62328,17 @@ function qLt(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = BLt(t); - var r = zLt.test(t); - return r || VLt.test(t) ? ULt(t.slice(2), r ? 2 : 8) : FLt.test(t) ? OQ : +t; + t = FLt(t); + var r = VLt.test(t); + return r || ULt.test(t) ? qLt(t.slice(2), r ? 2 : 8) : zLt.test(t) ? OQ : +t; } -var kQ = 1 / 0, YLt = 17976931348623157e292; +var kQ = 1 / 0, QLt = 17976931348623157e292; function Q4(t) { if (!t) return t === 0 ? t : 0; - if (t = qLt(t), t === kQ || t === -kQ) { + if (t = YLt(t), t === kQ || t === -kQ) { var e = t < 0 ? -1 : 1; - return e * YLt; + return e * QLt; } return t === t ? t : 0; } @@ -62348,17 +62359,17 @@ function whe(t, e, r, n) { return s; return -1; } -function QLt(t) { +function WLt(t) { return t !== t; } -function WLt(t, e, r) { +function GLt(t, e, r) { for (var n = r - 1, i = t.length; ++n < i; ) if (t[n] === e) return n; return -1; } function HN(t, e, r) { - return e === e ? WLt(t, e, r) : whe(t, QLt, r); + return e === e ? GLt(t, e, r) : whe(t, WLt, r); } function Ohe(t, e) { var r = t == null ? 0 : t.length; @@ -62367,48 +62378,48 @@ function Ohe(t, e) { function ki(t) { return jc(t) ? gae(t) : Moe(t); } -var GLt = Object.prototype, HLt = GLt.hasOwnProperty, XLt = bae(function(t, e) { +var HLt = Object.prototype, XLt = HLt.hasOwnProperty, ZLt = bae(function(t, e) { if (dx(e) || jc(e)) { tm(e, ki(e), t); return; } for (var r in e) - HLt.call(e, r) && px(t, r, e[r]); + XLt.call(e, r) && px(t, r, e[r]); }); -const fo = XLt; -var ZLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jLt = /^\w*$/; +const fo = ZLt; +var jLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, KLt = /^\w*$/; function XN(t, e) { if (Sr(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || m0(t) ? !0 : jLt.test(t) || !ZLt.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || m0(t) ? !0 : KLt.test(t) || !jLt.test(t) || e != null && t in Object(e); } -var KLt = 500; -function JLt(t) { +var JLt = 500; +function e9t(t) { var e = J1(t, function(n) { - return r.size === KLt && r.clear(), n; + return r.size === JLt && r.clear(), n; }), r = e.cache; return e; } -var e9t = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t9t = /\\(\\)?/g, r9t = JLt(function(t) { +var t9t = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, r9t = /\\(\\)?/g, n9t = e9t(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(e9t, function(r, n, i, s) { - e.push(i ? s.replace(t9t, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(t9t, function(r, n, i, s) { + e.push(i ? s.replace(r9t, "$1") : n || r); }), e; }); -const n9t = r9t; +const i9t = n9t; function khe(t) { return t == null ? "" : bhe(t); } function nC(t, e) { - return Sr(t) ? t : XN(t, e) ? [t] : n9t(khe(t)); + return Sr(t) ? t : XN(t, e) ? [t] : i9t(khe(t)); } -var i9t = 1 / 0; +var s9t = 1 / 0; function _x(t) { if (typeof t == "string" || m0(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -i9t ? "-0" : e; + return e == "0" && 1 / t == -s9t ? "-0" : e; } function iC(t, e) { e = nC(e, t); @@ -62416,7 +62427,7 @@ function iC(t, e) { t = t[_x(e[r++])]; return r && r == n ? t : void 0; } -function s9t(t, e, r) { +function a9t(t, e, r) { var n = t == null ? void 0 : iC(t, e); return n === void 0 ? r : n; } @@ -62426,12 +62437,12 @@ function ZN(t, e) { return t; } var SQ = Go ? Go.isConcatSpreadable : void 0; -function a9t(t) { +function o9t(t) { return Sr(t) || t1(t) || !!(SQ && t && t[SQ]); } function sm(t, e, r, n, i) { var s = -1, a = t.length; - for (r || (r = a9t), i || (i = []); ++s < a; ) { + for (r || (r = o9t), i || (i = []); ++s < a; ) { var o = t[s]; e > 0 && r(o) ? e > 1 ? sm(o, e - 1, r, n, i) : ZN(i, o) : n || (i[i.length] = o); } @@ -62441,7 +62452,7 @@ function Qi(t) { var e = t == null ? 0 : t.length; return e ? sm(t, 1) : []; } -function o9t(t) { +function l9t(t) { return yae(vae(t, void 0, Qi), t + ""); } function She(t, e, r) { @@ -62451,16 +62462,16 @@ function She(t, e, r) { s[n] = t[n + e]; return s; } -function l9t(t, e, r, n) { +function c9t(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 c9t(t, e) { +function u9t(t, e) { return t && tm(e, ki(e), t); } -function u9t(t, e) { +function h9t(t, e) { return t && tm(e, G0(e), t); } function jN(t, e) { @@ -62473,22 +62484,22 @@ function jN(t, e) { function The() { return []; } -var h9t = Object.prototype, f9t = h9t.propertyIsEnumerable, TQ = Object.getOwnPropertySymbols, d9t = TQ ? function(t) { +var f9t = Object.prototype, d9t = f9t.propertyIsEnumerable, TQ = Object.getOwnPropertySymbols, p9t = TQ ? function(t) { return t == null ? [] : (t = Object(t), jN(TQ(t), function(e) { - return f9t.call(t, e); + return d9t.call(t, e); })); } : The; -const KN = d9t; -function p9t(t, e) { +const KN = p9t; +function g9t(t, e) { return tm(t, KN(t), e); } -var g9t = Object.getOwnPropertySymbols, m9t = g9t ? function(t) { +var m9t = Object.getOwnPropertySymbols, v9t = m9t ? function(t) { for (var e = []; t; ) ZN(e, KN(t)), t = ZD(t); return e; } : The; -const Che = m9t; -function v9t(t, e) { +const Che = v9t; +function y9t(t, e) { return tm(t, Che(t), e); } function Ehe(t, e, r) { @@ -62501,36 +62512,35 @@ function PL(t) { function _he(t) { return Ehe(t, G0, Che); } -var y9t = Object.prototype, b9t = y9t.hasOwnProperty; -function x9t(t) { +var b9t = Object.prototype, x9t = b9t.hasOwnProperty; +function w9t(t) { var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && b9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; + return e && typeof t[0] == "string" && x9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; } -function w9t(t, e) { +function O9t(t, e) { var r = e ? XD(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.byteLength); } -var O9t = /\w*$/; -function k9t(t) { - var e = new t.constructor(t.source, O9t.exec(t)); +var k9t = /\w*$/; +function S9t(t) { + var e = new t.constructor(t.source, k9t.exec(t)); return e.lastIndex = t.lastIndex, e; } var CQ = Go ? Go.prototype : void 0, EQ = CQ ? CQ.valueOf : void 0; -function S9t(t) { +function T9t(t) { return EQ ? Object(EQ.call(t)) : {}; } -var T9t = "[object Boolean]", C9t = "[object Date]", E9t = "[object Map]", _9t = "[object Number]", A9t = "[object RegExp]", L9t = "[object Set]", R9t = "[object String]", M9t = "[object Symbol]", D9t = "[object ArrayBuffer]", N9t = "[object DataView]", I9t = "[object Float32Array]", P9t = "[object Float64Array]", $9t = "[object Int8Array]", B9t = "[object Int16Array]", F9t = "[object Int32Array]", z9t = "[object Uint8Array]", V9t = "[object Uint8ClampedArray]", U9t = "[object Uint16Array]", q9t = "[object Uint32Array]"; -function Y9t(t, e, r) { +var C9t = "[object Boolean]", E9t = "[object Date]", _9t = "[object Map]", A9t = "[object Number]", L9t = "[object RegExp]", R9t = "[object Set]", M9t = "[object String]", D9t = "[object Symbol]", N9t = "[object ArrayBuffer]", I9t = "[object DataView]", P9t = "[object Float32Array]", $9t = "[object Float64Array]", B9t = "[object Int8Array]", F9t = "[object Int16Array]", z9t = "[object Int32Array]", V9t = "[object Uint8Array]", U9t = "[object Uint8ClampedArray]", q9t = "[object Uint16Array]", Y9t = "[object Uint32Array]"; +function Q9t(t, e, r) { var n = t.constructor; switch (e) { - case D9t: + case N9t: return XD(t); - case T9t: case C9t: + case E9t: return new n(+t); - case N9t: - return w9t(t, r); case I9t: + return O9t(t, r); case P9t: case $9t: case B9t: @@ -62539,65 +62549,66 @@ function Y9t(t, e, r) { case V9t: case U9t: case q9t: + case Y9t: return oae(t, r); - case E9t: - return new n(); case _9t: - case R9t: - return new n(t); - case A9t: - return k9t(t); - case L9t: return new n(); + case A9t: case M9t: + return new n(t); + case L9t: return S9t(t); + case R9t: + return new n(); + case D9t: + return T9t(t); } } -var Q9t = "[object Map]"; -function W9t(t) { - return Xo(t) && s1(t) == Q9t; +var W9t = "[object Map]"; +function G9t(t) { + return Xo(t) && s1(t) == W9t; } -var _Q = xf && xf.isMap, G9t = _Q ? em(_Q) : W9t; -const H9t = G9t; -var X9t = "[object Set]"; -function Z9t(t) { - return Xo(t) && s1(t) == X9t; +var _Q = xf && xf.isMap, H9t = _Q ? em(_Q) : G9t; +const X9t = H9t; +var Z9t = "[object Set]"; +function j9t(t) { + return Xo(t) && s1(t) == Z9t; } -var AQ = xf && xf.isSet, j9t = AQ ? em(AQ) : Z9t; -const K9t = j9t; -var J9t = 1, eRt = 2, tRt = 4, Ahe = "[object Arguments]", rRt = "[object Array]", nRt = "[object Boolean]", iRt = "[object Date]", sRt = "[object Error]", Lhe = "[object Function]", aRt = "[object GeneratorFunction]", oRt = "[object Map]", lRt = "[object Number]", Rhe = "[object Object]", cRt = "[object RegExp]", uRt = "[object Set]", hRt = "[object String]", fRt = "[object Symbol]", dRt = "[object WeakMap]", pRt = "[object ArrayBuffer]", gRt = "[object DataView]", mRt = "[object Float32Array]", vRt = "[object Float64Array]", yRt = "[object Int8Array]", bRt = "[object Int16Array]", xRt = "[object Int32Array]", wRt = "[object Uint8Array]", ORt = "[object Uint8ClampedArray]", kRt = "[object Uint16Array]", SRt = "[object Uint32Array]", cn = {}; -cn[Ahe] = cn[rRt] = cn[pRt] = cn[gRt] = cn[nRt] = cn[iRt] = cn[mRt] = cn[vRt] = cn[yRt] = cn[bRt] = cn[xRt] = cn[oRt] = cn[lRt] = cn[Rhe] = cn[cRt] = cn[uRt] = cn[hRt] = cn[fRt] = cn[wRt] = cn[ORt] = cn[kRt] = cn[SRt] = !0; -cn[sRt] = cn[Lhe] = cn[dRt] = !1; +var AQ = xf && xf.isSet, K9t = AQ ? em(AQ) : j9t; +const J9t = K9t; +var eRt = 1, tRt = 2, rRt = 4, Ahe = "[object Arguments]", nRt = "[object Array]", iRt = "[object Boolean]", sRt = "[object Date]", aRt = "[object Error]", Lhe = "[object Function]", oRt = "[object GeneratorFunction]", lRt = "[object Map]", cRt = "[object Number]", Rhe = "[object Object]", uRt = "[object RegExp]", hRt = "[object Set]", fRt = "[object String]", dRt = "[object Symbol]", pRt = "[object WeakMap]", gRt = "[object ArrayBuffer]", mRt = "[object DataView]", vRt = "[object Float32Array]", yRt = "[object Float64Array]", bRt = "[object Int8Array]", xRt = "[object Int16Array]", wRt = "[object Int32Array]", ORt = "[object Uint8Array]", kRt = "[object Uint8ClampedArray]", SRt = "[object Uint16Array]", TRt = "[object Uint32Array]", cn = {}; +cn[Ahe] = cn[nRt] = cn[gRt] = cn[mRt] = cn[iRt] = cn[sRt] = cn[vRt] = cn[yRt] = cn[bRt] = cn[xRt] = cn[wRt] = cn[lRt] = cn[cRt] = cn[Rhe] = cn[uRt] = cn[hRt] = cn[fRt] = cn[dRt] = cn[ORt] = cn[kRt] = cn[SRt] = cn[TRt] = !0; +cn[aRt] = cn[Lhe] = cn[pRt] = !1; function fy(t, e, r, n, i, s) { - var a, o = e & J9t, l = e & eRt, u = e & tRt; + var a, o = e & eRt, l = e & tRt, u = e & rRt; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) return a; if (!Pa(t)) return t; var h = Sr(t); if (h) { - if (a = x9t(t), !o) + if (a = w9t(t), !o) return lae(t, a); } else { - var f = s1(t), d = f == Lhe || f == aRt; + var f = s1(t), d = f == Lhe || f == oRt; if (r1(t)) return aae(t, o); if (f == Rhe || f == Ahe || d && !i) { if (a = l || d ? {} : uae(t), !o) - return l ? v9t(t, u9t(a, t)) : p9t(t, c9t(a, t)); + return l ? y9t(t, h9t(a, t)) : g9t(t, u9t(a, t)); } else { if (!cn[f]) return i ? t : {}; - a = Y9t(t, f, o); + a = Q9t(t, f, o); } } s || (s = new wl()); var p = s.get(t); if (p) return p; - s.set(t, a), K9t(t) ? t.forEach(function(v) { + s.set(t, a), J9t(t) ? t.forEach(function(v) { a.add(fy(v, e, r, v, t, s)); - }) : H9t(t) && t.forEach(function(v, y) { + }) : X9t(t) && t.forEach(function(v, y) { a.set(y, fy(v, e, r, y, t, s)); }); var g = u ? l ? _he : PL : l ? G0 : ki, m = h ? void 0 : g(t); @@ -62605,13 +62616,13 @@ function fy(t, e, r, n, i, s) { m && (y = v, v = t[y]), px(a, y, fy(v, e, r, y, t, s)); }), a; } -var TRt = 4; +var CRt = 4; function Di(t) { - return fy(t, TRt); + return fy(t, CRt); } -var CRt = 1, ERt = 4; -function _Rt(t) { - return fy(t, CRt | ERt); +var ERt = 1, _Rt = 4; +function ARt(t) { + return fy(t, ERt | _Rt); } function Ax(t) { for (var e = -1, r = t == null ? 0 : t.length, n = 0, i = []; ++e < r; ) { @@ -62620,11 +62631,11 @@ function Ax(t) { } return i; } -var ARt = "__lodash_hash_undefined__"; -function LRt(t) { - return this.__data__.set(t, ARt), this; -} +var LRt = "__lodash_hash_undefined__"; function RRt(t) { + return this.__data__.set(t, LRt), this; +} +function MRt(t) { return this.__data__.has(t); } function h1(t) { @@ -62632,8 +62643,8 @@ function h1(t) { for (this.__data__ = new lh(); ++e < r; ) this.add(t[e]); } -h1.prototype.add = h1.prototype.push = LRt; -h1.prototype.has = RRt; +h1.prototype.add = h1.prototype.push = RRt; +h1.prototype.has = MRt; function Mhe(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) @@ -62643,15 +62654,15 @@ function Mhe(t, e) { function JN(t, e) { return t.has(e); } -var MRt = 1, DRt = 2; +var DRt = 1, NRt = 2; function Dhe(t, e, r, n, i, s) { - var a = r & MRt, o = t.length, l = e.length; + var a = r & DRt, 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 & DRt ? new h1() : void 0; + var f = -1, d = !0, p = r & NRt ? new h1() : void 0; for (s.set(t, e), s.set(e, t); ++f < o; ) { var g = t[f], m = e[f]; if (n) @@ -62677,7 +62688,7 @@ function Dhe(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), d; } -function NRt(t) { +function IRt(t) { var e = -1, r = Array(t.size); return t.forEach(function(n, i) { r[++e] = [i, n]; @@ -62689,50 +62700,50 @@ function eI(t) { r[++e] = n; }), r; } -var IRt = 1, PRt = 2, $Rt = "[object Boolean]", BRt = "[object Date]", FRt = "[object Error]", zRt = "[object Map]", VRt = "[object Number]", URt = "[object RegExp]", qRt = "[object Set]", YRt = "[object String]", QRt = "[object Symbol]", WRt = "[object ArrayBuffer]", GRt = "[object DataView]", LQ = Go ? Go.prototype : void 0, A_ = LQ ? LQ.valueOf : void 0; -function HRt(t, e, r, n, i, s, a) { +var PRt = 1, $Rt = 2, BRt = "[object Boolean]", FRt = "[object Date]", zRt = "[object Error]", VRt = "[object Map]", URt = "[object Number]", qRt = "[object RegExp]", YRt = "[object Set]", QRt = "[object String]", WRt = "[object Symbol]", GRt = "[object ArrayBuffer]", HRt = "[object DataView]", LQ = Go ? Go.prototype : void 0, A_ = LQ ? LQ.valueOf : void 0; +function XRt(t, e, r, n, i, s, a) { switch (r) { - case GRt: + case HRt: if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; t = t.buffer, e = e.buffer; - case WRt: + case GRt: return !(t.byteLength != e.byteLength || !s(new B3(t), new B3(e))); - case $Rt: case BRt: - case VRt: - return K1(+t, +e); case FRt: - return t.name == e.name && t.message == e.message; case URt: - case YRt: - return t == e + ""; + return K1(+t, +e); case zRt: - var o = NRt; + return t.name == e.name && t.message == e.message; case qRt: - var l = n & IRt; + case QRt: + return t == e + ""; + case VRt: + var o = IRt; + case YRt: + var l = n & PRt; if (o || (o = eI), t.size != e.size && !l) return !1; var u = a.get(t); if (u) return u == e; - n |= PRt, a.set(t, e); + n |= $Rt, a.set(t, e); var h = Dhe(o(t), o(e), n, i, s, a); return a.delete(t), h; - case QRt: + case WRt: if (A_) return A_.call(t) == A_.call(e); } return !1; } -var XRt = 1, ZRt = Object.prototype, jRt = ZRt.hasOwnProperty; -function KRt(t, e, r, n, i, s) { - var a = r & XRt, o = PL(t), l = o.length, u = PL(e), h = u.length; +var ZRt = 1, jRt = Object.prototype, KRt = jRt.hasOwnProperty; +function JRt(t, e, r, n, i, s) { + var a = r & ZRt, o = PL(t), l = o.length, u = PL(e), h = u.length; if (l != h && !a) return !1; for (var f = l; f--; ) { var d = o[f]; - if (!(a ? d in e : jRt.call(e, d))) + if (!(a ? d in e : KRt.call(e, d))) return !1; } var p = s.get(t), g = s.get(e); @@ -62757,8 +62768,8 @@ function KRt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var JRt = 1, RQ = "[object Arguments]", MQ = "[object Array]", OO = "[object Object]", eMt = Object.prototype, DQ = eMt.hasOwnProperty; -function tMt(t, e, r, n, i, s) { +var eMt = 1, RQ = "[object Arguments]", MQ = "[object Array]", OO = "[object Object]", tMt = Object.prototype, DQ = tMt.hasOwnProperty; +function rMt(t, e, r, n, i, s) { var a = Sr(t), o = Sr(e), l = a ? MQ : s1(t), u = o ? MQ : s1(e); l = l == RQ ? OO : l, u = u == RQ ? OO : u; var h = l == OO, f = u == OO, d = l == u; @@ -62768,21 +62779,21 @@ function tMt(t, e, r, n, i, s) { a = !0, h = !1; } if (d && !h) - return s || (s = new wl()), a || FT(t) ? Dhe(t, e, r, n, i, s) : HRt(t, e, l, r, n, i, s); - if (!(r & JRt)) { + return s || (s = new wl()), a || FT(t) ? Dhe(t, e, r, n, i, s) : XRt(t, e, l, r, n, i, s); + if (!(r & eMt)) { var p = h && DQ.call(t, "__wrapped__"), g = f && DQ.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()), KRt(t, e, r, n, i, s)) : !1; + return d ? (s || (s = new wl()), JRt(t, e, r, n, i, s)) : !1; } function tI(t, e, r, n, i) { - return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : tMt(t, e, r, n, tI, i); + return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : rMt(t, e, r, n, tI, i); } -var rMt = 1, nMt = 2; -function iMt(t, e, r, n) { +var nMt = 1, iMt = 2; +function sMt(t, e, r, n) { var i = r.length, s = i, a = !n; if (t == null) return !s; @@ -62801,7 +62812,7 @@ function iMt(t, e, r, n) { var f = new wl(); if (n) var d = n(u, h, l, t, e, f); - if (!(d === void 0 ? tI(h, u, rMt | nMt, n, f) : d)) + if (!(d === void 0 ? tI(h, u, nMt | iMt, n, f) : d)) return !1; } } @@ -62810,7 +62821,7 @@ function iMt(t, e, r, n) { function Nhe(t) { return t === t && !Pa(t); } -function sMt(t) { +function aMt(t) { for (var e = ki(t), r = e.length; r--; ) { var n = e[r], i = t[n]; e[r] = [n, i, Nhe(i)]; @@ -62822,13 +62833,13 @@ function Ihe(t, e) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } -function aMt(t) { - var e = sMt(t); +function oMt(t) { + var e = aMt(t); return e.length == 1 && e[0][2] ? Ihe(e[0][0], e[0][1]) : function(r) { - return r === t || iMt(r, t, e); + return r === t || sMt(r, t, e); }; } -function oMt(t, e) { +function lMt(t, e) { return t != null && e in Object(t); } function Phe(t, e, r) { @@ -62842,32 +62853,32 @@ function Phe(t, e, r) { return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && jD(i) && zT(a, i) && (Sr(t) || t1(t))); } function $he(t, e) { - return t != null && Phe(t, e, oMt); + return t != null && Phe(t, e, lMt); } -var lMt = 1, cMt = 2; -function uMt(t, e) { +var cMt = 1, uMt = 2; +function hMt(t, e) { return XN(t) && Nhe(e) ? Ihe(_x(t), e) : function(r) { - var n = s9t(r, t); - return n === void 0 && n === e ? $he(r, t) : tI(e, n, lMt | cMt); + var n = a9t(r, t); + return n === void 0 && n === e ? $he(r, t) : tI(e, n, cMt | uMt); }; } -function hMt(t) { +function fMt(t) { return function(e) { return e == null ? void 0 : e[t]; }; } -function fMt(t) { +function dMt(t) { return function(e) { return iC(e, t); }; } -function dMt(t) { - return XN(t) ? hMt(_x(t)) : fMt(t); +function pMt(t) { + return XN(t) ? fMt(_x(t)) : dMt(t); } function Ua(t) { - return typeof t == "function" ? t : t == null ? Qu : typeof t == "object" ? Sr(t) ? uMt(t[0], t[1]) : aMt(t) : dMt(t); + return typeof t == "function" ? t : t == null ? Qu : typeof t == "object" ? Sr(t) ? hMt(t[0], t[1]) : oMt(t) : pMt(t); } -function pMt(t, e, r, n) { +function gMt(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); @@ -62877,7 +62888,7 @@ function pMt(t, e, r, n) { function rI(t, e) { return t && HD(t, e, ki); } -function gMt(t, e) { +function mMt(t, e) { return function(r, n) { if (r == null) return r; @@ -62888,46 +62899,46 @@ function gMt(t, e) { return r; }; } -var mMt = gMt(rI); -const K0 = mMt; -function vMt(t, e, r, n) { +var vMt = mMt(rI); +const K0 = vMt; +function yMt(t, e, r, n) { return K0(t, function(i, s, a) { e(n, i, r(i), a); }), n; } -function yMt(t, e) { +function bMt(t, e) { return function(r, n) { - var i = Sr(r) ? pMt : vMt, s = e ? e() : {}; + var i = Sr(r) ? gMt : yMt, s = e ? e() : {}; return i(r, t, Ua(n), s); }; } -var bMt = function() { +var xMt = function() { return Gl.Date.now(); }; -const NQ = bMt; -var Bhe = Object.prototype, xMt = Bhe.hasOwnProperty, wMt = gx(function(t, e) { +const NQ = xMt; +var Bhe = Object.prototype, wMt = Bhe.hasOwnProperty, OMt = gx(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && u0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = G0(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || K1(h, Bhe[u]) && !xMt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || K1(h, Bhe[u]) && !wMt.call(t, u)) && (t[u] = s[u]); } return t; }); -const sC = wMt; +const sC = OMt; function Fhe(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 OMt = 200; -function kMt(t, e, r, n) { +var kMt = 200; +function SMt(t, e, r, n) { var i = -1, s = Ohe, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = ef(e, em(r))), n ? (s = Fhe, a = !1) : e.length >= OMt && (s = JN, a = !1, e = new h1(e)); + r && (e = ef(e, em(r))), n ? (s = Fhe, a = !1) : e.length >= kMt && (s = JN, a = !1, e = new h1(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -62941,10 +62952,10 @@ function kMt(t, e, r, n) { } return l; } -var SMt = gx(function(t, e) { - return F3(t) ? kMt(t, sm(e, 1, F3, !0)) : []; +var TMt = gx(function(t, e) { + return F3(t) ? SMt(t, sm(e, 1, F3, !0)) : []; }); -const aC = SMt; +const aC = TMt; function Bc(t) { var e = t == null ? 0 : t.length; return e ? t[e - 1] : void 0; @@ -62964,20 +62975,20 @@ function $e(t, e) { var r = Sr(t) ? xhe : K0; return r(t, nI(e)); } -function TMt(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 EMt(t, e) { var r = !0; return K0(t, function(n, i, s) { return r = !!e(n, i, s), r; }), r; } function Tl(t, e, r) { - var n = Sr(t) ? TMt : CMt; + var n = Sr(t) ? CMt : EMt; return r && u0(t, e, r) && (e = void 0), n(t, Ua(e)); } function zhe(t, e) { @@ -62990,7 +63001,7 @@ function Yn(t, e) { var r = Sr(t) ? jN : zhe; return r(t, Ua(e)); } -function EMt(t) { +function _Mt(t) { return function(e, r, n) { var i = Object(e); if (!jc(e)) { @@ -63003,16 +63014,16 @@ function EMt(t) { return a > -1 ? i[s ? e[a] : a] : void 0; }; } -var _Mt = Math.max; -function AMt(t, e, r) { +var AMt = Math.max; +function LMt(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Ex(r); - return i < 0 && (i = _Mt(n + i, 0)), whe(t, Ua(e), i); + return i < 0 && (i = AMt(n + i, 0)), whe(t, Ua(e), i); } -var LMt = EMt(AMt); -const Xu = LMt; +var RMt = _Mt(LMt); +const Xu = RMt; function Bl(t) { return t && t.length ? t[0] : void 0; } @@ -63029,58 +63040,58 @@ function gt(t, e) { function lo(t, e) { return sm(gt(t, e), 1); } -function RMt(t, e) { +function MMt(t, e) { return t == null ? t : HD(t, nI(e), G0); } -function MMt(t, e) { +function DMt(t, e) { return t && rI(t, nI(e)); } -var DMt = Object.prototype, NMt = DMt.hasOwnProperty, IMt = yMt(function(t, e, r) { - NMt.call(t, r) ? t[r].push(e) : fx(t, r, [e]); +var NMt = Object.prototype, IMt = NMt.hasOwnProperty, PMt = bMt(function(t, e, r) { + IMt.call(t, r) ? t[r].push(e) : fx(t, r, [e]); }); -const PMt = IMt; -function $Mt(t, e) { +const $Mt = PMt; +function BMt(t, e) { return t > e; } -var BMt = Object.prototype, FMt = BMt.hasOwnProperty; -function zMt(t, e) { - return t != null && FMt.call(t, e); +var FMt = Object.prototype, zMt = FMt.hasOwnProperty; +function VMt(t, e) { + return t != null && zMt.call(t, e); } function yt(t, e) { - return t != null && Phe(t, e, zMt); + return t != null && Phe(t, e, VMt); } -var VMt = "[object String]"; +var UMt = "[object String]"; function $a(t) { - return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == VMt; + return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == UMt; } -function UMt(t, e) { +function qMt(t, e) { return ef(e, function(r) { return t[r]; }); } function Kr(t) { - return t == null ? [] : UMt(t, ki(t)); + return t == null ? [] : qMt(t, ki(t)); } -var qMt = Math.max; +var YMt = Math.max; function pa(t, e, r, n) { t = jc(t) ? t : Kr(t), r = r && !n ? Ex(r) : 0; var i = t.length; - return r < 0 && (r = qMt(i + r, 0)), $a(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && HN(t, e, r) > -1; + return r < 0 && (r = YMt(i + r, 0)), $a(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && HN(t, e, r) > -1; } -var YMt = Math.max; +var QMt = Math.max; function IQ(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Ex(r); - return i < 0 && (i = YMt(n + i, 0)), HN(t, e, i); + return i < 0 && (i = QMt(n + i, 0)), HN(t, e, i); } -var QMt = "[object RegExp]"; -function WMt(t) { - return Xo(t) && ah(t) == QMt; +var WMt = "[object RegExp]"; +function GMt(t) { + return Xo(t) && ah(t) == WMt; } -var PQ = xf && xf.isRegExp, GMt = PQ ? em(PQ) : WMt; -const Zu = GMt; +var PQ = xf && xf.isRegExp, HMt = PQ ? em(PQ) : GMt; +const Zu = HMt; function qr(t) { return t === void 0; } @@ -63102,7 +63113,7 @@ function iI(t, e, r) { return l; } function v0(t) { - return t && t.length ? iI(t, Qu, $Mt) : void 0; + return t && t.length ? iI(t, Qu, BMt) : void 0; } function f1(t) { return t && t.length ? iI(t, Qu, Uhe) : void 0; @@ -63110,10 +63121,10 @@ function f1(t) { function sI(t, e) { return t && t.length ? iI(t, Ua(e), Uhe) : void 0; } -var HMt = "Expected a function"; -function XMt(t) { +var XMt = "Expected a function"; +function ZMt(t) { if (typeof t != "function") - throw new TypeError(HMt); + throw new TypeError(XMt); return function() { var e = arguments; switch (e.length) { @@ -63129,7 +63140,7 @@ function XMt(t) { return !t.apply(this, e); }; } -function ZMt(t, e, r, n) { +function jMt(t, e, r, n) { if (!Pa(t)) return t; e = nC(e, t); @@ -63148,7 +63159,7 @@ function ZMt(t, e, r, n) { function qhe(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { var a = e[n], o = iC(t, a); - r(o, a) && ZMt(s, nC(a, t), o); + r(o, a) && jMt(s, nC(a, t), o); } return s; } @@ -63162,13 +63173,13 @@ function Hl(t, e) { return e(n, i[0]); }); } -function jMt(t, e) { +function KMt(t, e) { var r = t.length; for (t.sort(e); r--; ) t[r] = t[r].value; return t; } -function KMt(t, e) { +function JMt(t, e) { if (t !== e) { var r = t !== void 0, n = t === null, i = t === t, s = m0(t), a = e !== void 0, o = e === null, l = e === e, u = m0(e); if (!o && !u && !s && t > e || s && a && l && !o && !u || n && a && l || !r && l || !i) @@ -63178,9 +63189,9 @@ function KMt(t, e) { } return 0; } -function JMt(t, e, r) { +function eDt(t, e, r) { for (var n = -1, i = t.criteria, s = e.criteria, a = i.length, o = r.length; ++n < a; ) { - var l = KMt(i[n], s[n]); + var l = JMt(i[n], s[n]); if (l) { if (n >= o) return l; @@ -63190,7 +63201,7 @@ function JMt(t, e, r) { } return t.index - e.index; } -function eDt(t, e, r) { +function tDt(t, e, r) { e.length ? e = ef(e, function(s) { return Sr(s) ? function(a) { return iC(a, s.length === 1 ? s[0] : s); @@ -63204,73 +63215,73 @@ function eDt(t, e, r) { }); return { criteria: l, index: ++n, value: s }; }); - return jMt(i, function(s, a) { - return JMt(s, a, r); + return KMt(i, function(s, a) { + return eDt(s, a, r); }); } -function tDt(t, e) { +function rDt(t, e) { return qhe(t, e, function(r, n) { return $he(t, n); }); } -var rDt = o9t(function(t, e) { - return t == null ? {} : tDt(t, e); +var nDt = l9t(function(t, e) { + return t == null ? {} : rDt(t, e); }); -const hk = rDt; -var nDt = Math.ceil, iDt = Math.max; -function sDt(t, e, r, n) { - for (var i = -1, s = iDt(nDt((e - t) / (r || 1)), 0), a = Array(s); s--; ) +const hk = nDt; +var iDt = Math.ceil, sDt = Math.max; +function aDt(t, e, r, n) { + for (var i = -1, s = sDt(iDt((e - t) / (r || 1)), 0), a = Array(s); s--; ) a[n ? s : ++i] = t, t += r; return a; } -function aDt(t) { +function oDt(t) { return function(e, r, n) { - return n && typeof n != "number" && u0(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), sDt(e, r, n, t); + return n && typeof n != "number" && u0(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), aDt(e, r, n, t); }; } -var oDt = aDt(); -const d1 = oDt; -function lDt(t, e, r, n, i) { +var lDt = oDt(); +const d1 = lDt; +function cDt(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) ? l9t : lDt, i = arguments.length < 3; + var n = Sr(t) ? c9t : cDt, i = arguments.length < 3; return n(t, Ua(e), r, i, K0); } function lC(t, e) { var r = Sr(t) ? jN : zhe; - return r(t, XMt(Ua(e))); + return r(t, ZMt(Ua(e))); } -function cDt(t, e) { +function uDt(t, e) { var r; return K0(t, function(n, i, s) { return r = e(n, i, s), !r; }), !!r; } function Yhe(t, e, r) { - var n = Sr(t) ? Mhe : cDt; + var n = Sr(t) ? Mhe : uDt; return r && u0(t, e, r) && (e = void 0), n(t, Ua(e)); } -var uDt = gx(function(t, e) { +var hDt = gx(function(t, e) { if (t == null) return []; var r = e.length; - return r > 1 && u0(t, e[0], e[1]) ? e = [] : r > 2 && u0(e[0], e[1], e[2]) && (e = [e[0]]), eDt(t, sm(e, 1), []); + return r > 1 && u0(t, e[0], e[1]) ? e = [] : r > 2 && u0(e[0], e[1], e[2]) && (e = [e[0]]), tDt(t, sm(e, 1), []); }); -const Lx = uDt; -var hDt = 1 / 0, fDt = ag && 1 / eI(new ag([, -0]))[1] == hDt ? function(t) { +const Lx = hDt; +var fDt = 1 / 0, dDt = ag && 1 / eI(new ag([, -0]))[1] == fDt ? function(t) { return new ag(t); } : vi; -const dDt = fDt; -var pDt = 200; +const pDt = dDt; +var gDt = 200; function aI(t, e, r) { var n = -1, i = Ohe, s = t.length, a = !0, o = [], l = o; if (r) a = !1, i = Fhe; - else if (s >= pDt) { - var u = e ? null : dDt(t); + else if (s >= gDt) { + var u = e ? null : pDt(t); if (u) return eI(u); a = !1, i = JN, l = new h1(); @@ -63289,32 +63300,32 @@ function aI(t, e, r) { } return o; } -var gDt = gx(function(t) { +var mDt = gx(function(t) { return aI(sm(t, 1, F3, !0)); }); -const mDt = gDt; +const vDt = mDt; function oI(t) { return t && t.length ? aI(t) : []; } -function vDt(t, e) { +function yDt(t, e) { return t && t.length ? aI(t, Ua(e)) : []; } -var yDt = 0; +var bDt = 0; function lI(t) { - var e = ++yDt; + var e = ++bDt; return khe(t) + e; } -function bDt(t, e, r) { +function xDt(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 xDt(t, e) { - return bDt(t || [], e || [], px); +function wDt(t, e) { + return xDt(t || [], e || [], px); } -var wDt = "\0", sd = "\0", $Q = ""; +var ODt = "\0", sd = "\0", $Q = ""; class $i { 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 = Fp(void 0), this._defaultEdgeLabelFn = Fp(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[sd] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -63431,7 +63442,7 @@ class $i { neighbors(e) { var r = this.predecessors(e); if (r) - return mDt(r, this.successors(e)); + return vDt(r, this.successors(e)); } isLeaf(e) { var r; @@ -63483,7 +63494,7 @@ 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 = ODt(this._isDirected, e, r, n); + var l = kDt(this._isDirected, e, r, n); return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, BQ(this._preds[r], e), BQ(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; } edge(e, r, n) { @@ -63536,9 +63547,9 @@ function Ev(t, e, r, n) { var a = i; i = s, s = a; } - return i + $Q + s + $Q + (qr(n) ? wDt : n); + return i + $Q + s + $Q + (qr(n) ? ODt : n); } -function ODt(t, e, r, n) { +function kDt(t, e, r, n) { var i = "" + e, s = "" + r; if (!t && i > s) { var a = i; @@ -63550,7 +63561,7 @@ function ODt(t, e, r, n) { function L_(t, e) { return Ev(t, e.v, e.w, e.name); } -class kDt { +class SDt { constructor() { var e = {}; e._next = e._prev = e, this._sentinel = e; @@ -63566,29 +63577,29 @@ class kDt { } toString() { for (var e = [], r = this._sentinel, n = r._prev; n !== r; ) - e.push(JSON.stringify(n, SDt)), n = n._prev; + e.push(JSON.stringify(n, TDt)), n = n._prev; return "[" + e.join(", ") + "]"; } } function zQ(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } -function SDt(t, e) { +function TDt(t, e) { if (t !== "_next" && t !== "_prev") return e; } -var TDt = Fp(1); -function CDt(t, e) { +var CDt = Fp(1); +function EDt(t, e) { if (t.nodeCount() <= 1) return []; - var r = _Dt(t, e || TDt), n = EDt(r.graph, r.buckets, r.zeroIdx); + var r = ADt(t, e || CDt), n = _Dt(r.graph, r.buckets, r.zeroIdx); return Qi( gt(n, function(i) { return t.outEdges(i.v, i.w); }) ); } -function EDt(t, e, r) { +function _Dt(t, e, r) { for (var n = [], i = e[e.length - 1], s = e[0], a; t.nodeCount(); ) { for (; a = s.dequeue(); ) R_(t, e, r, a); @@ -63614,7 +63625,7 @@ function R_(t, e, r, n, i) { u.in -= o, $L(e, r, u); }), t.removeNode(n.v), s; } -function _Dt(t, e) { +function ADt(t, e) { var r = new $i(), n = 0, i = 0; $e(t.nodes(), function(o) { r.setNode(o, { v: o, in: 0, out: 0 }); @@ -63623,7 +63634,7 @@ function _Dt(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 = d1(i + n + 3).map(function() { - return new kDt(); + return new SDt(); }), a = n + 1; return $e(r.nodes(), function(o) { $L(s, a, r.node(o)); @@ -63632,8 +63643,8 @@ function _Dt(t, e) { function $L(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 ADt(t) { - var e = t.graph().acyclicer === "greedy" ? CDt(t, r(t)) : LDt(t); +function LDt(t) { + var e = t.graph().acyclicer === "greedy" ? EDt(t, r(t)) : RDt(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, lI("rev")); @@ -63644,7 +63655,7 @@ function ADt(t) { }; } } -function LDt(t) { +function RDt(t) { var e = [], r = {}, n = {}; function i(s) { yt(n, s) || (n[s] = !0, r[s] = !0, $e(t.outEdges(s), function(a) { @@ -63653,7 +63664,7 @@ function LDt(t) { } return $e(t.nodes(), i), e; } -function RDt(t) { +function MDt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.reversed) { @@ -63670,7 +63681,7 @@ function am(t, e, r, n) { while (t.hasNode(i)); return r.dummy = e, t.setNode(i, r), i; } -function MDt(t) { +function DDt(t) { var e = new $i().setGraph(t.graph()); return $e(t.nodes(), function(r) { e.setNode(r, t.node(r)); @@ -63706,7 +63717,7 @@ function cC(t) { qr(i) || (e[i][n.order] = r); }), e; } -function DDt(t) { +function NDt(t) { var e = f1( gt(t.nodes(), function(r) { return t.node(r).rank; @@ -63717,7 +63728,7 @@ function DDt(t) { yt(n, "rank") && (n.rank -= e); }); } -function NDt(t) { +function IDt(t) { var e = f1( gt(t.nodes(), function(s) { return t.node(s).rank; @@ -63750,13 +63761,13 @@ function Whe(t) { }) ); } -function IDt(t, e) { +function PDt(t, e) { var r = { lhs: [], rhs: [] }; return $e(t, function(n) { e(n) ? r.lhs.push(n) : r.rhs.push(n); }), r; } -function PDt(t, e) { +function $Dt(t, e) { var r = NQ(); try { return e(); @@ -63764,10 +63775,10 @@ function PDt(t, e) { console.log(t + " time: " + (NQ() - r) + "ms"); } } -function $Dt(t, e) { +function BDt(t, e) { return e(); } -function BDt(t) { +function FDt(t) { function e(r) { var n = t.children(r), i = t.node(r); if (n.length && $e(n, e), yt(i, "minRank")) { @@ -63782,13 +63793,13 @@ function qQ(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = am(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } -function FDt(t) { +function zDt(t) { var e = t.graph().rankdir.toLowerCase(); (e === "lr" || e === "rl") && Ghe(t); } -function zDt(t) { +function VDt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && VDt(t), (e === "lr" || e === "rl") && (UDt(t), Ghe(t)); + (e === "bt" || e === "rl") && UDt(t), (e === "lr" || e === "rl") && (qDt(t), Ghe(t)); } function Ghe(t) { $e(t.nodes(), function(e) { @@ -63801,7 +63812,7 @@ function YQ(t) { var e = t.width; t.width = t.height, t.height = e; } -function VDt(t) { +function UDt(t) { $e(t.nodes(), function(e) { M_(t.node(e)); }), $e(t.edges(), function(e) { @@ -63812,7 +63823,7 @@ function VDt(t) { function M_(t) { t.y = -t.y; } -function UDt(t) { +function qDt(t) { $e(t.nodes(), function(e) { D_(t.node(e)); }), $e(t.edges(), function(e) { @@ -63824,12 +63835,12 @@ function D_(t) { var e = t.x; t.x = t.y, t.y = e; } -function qDt(t) { +function YDt(t) { t.graph().dummyChains = [], $e(t.edges(), function(e) { - YDt(t, e); + QDt(t, e); }); } -function YDt(t, e) { +function QDt(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); @@ -63845,7 +63856,7 @@ function YDt(t, e) { t.setEdge(r, i, { weight: o.weight }, a); } } -function QDt(t) { +function WDt(t) { $e(t.graph().dummyChains, function(e) { var r = t.node(e), n = r.edgeLabel, i; for (t.setEdge(r.edgeObj, n); r.dummy; ) @@ -63874,11 +63885,11 @@ function _2(t, e) { function Hhe(t) { var e = new $i({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); - for (var i, s; WDt(e, t) < n; ) - i = GDt(e, t), s = e.hasNode(i.v) ? _2(t, i) : -_2(t, i), HDt(e, t, s); + for (var i, s; GDt(e, t) < n; ) + i = HDt(e, t), s = e.hasNode(i.v) ? _2(t, i) : -_2(t, i), XDt(e, t, s); return e; } -function WDt(t, e) { +function GDt(t, e) { function r(n) { $e(e.nodeEdges(n), function(i) { var s = i.v, a = n === s ? i.w : s; @@ -63887,20 +63898,20 @@ function WDt(t, e) { } return $e(t.nodes(), r), t.nodeCount(); } -function GDt(t, e) { +function HDt(t, e) { return sI(e.edges(), function(r) { if (t.hasNode(r.v) !== t.hasNode(r.w)) return _2(e, r); }); } -function HDt(t, e, r) { +function XDt(t, e, r) { $e(t.nodes(), function(n) { e.node(n).rank += r; }); } -function XDt() { +function ZDt() { } -XDt.prototype = new Error(); +ZDt.prototype = new Error(); function Xhe(t, e, r) { Sr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; @@ -63915,10 +63926,10 @@ function Zhe(t, e, r, n, i, s) { Zhe(t, a, r, n, i, s); }), r && s.push(e)); } -function ZDt(t, e) { +function jDt(t, e) { return Xhe(t, e, "post"); } -function jDt(t, e) { +function KDt(t, e) { return Xhe(t, e, "pre"); } J0.initLowLimValues = hI; @@ -63928,19 +63939,19 @@ J0.leaveEdge = Jhe; J0.enterEdge = efe; J0.exchangeEdges = tfe; function J0(t) { - t = MDt(t), cI(t); + t = DDt(t), cI(t); var e = Hhe(t); hI(e), uI(e, t); for (var r, n; r = Jhe(e); ) n = efe(e, t, r), tfe(e, t, r, n); } function uI(t, e) { - var r = ZDt(t, t.nodes()); + var r = jDt(t, t.nodes()); r = r.slice(0, r.length - 1), $e(r, function(n) { - KDt(t, e, n); + JDt(t, e, n); }); } -function KDt(t, e, r) { +function JDt(t, e, r) { var n = t.node(r), i = n.parent; t.edge(r, i).cutvalue = jhe(t, e, r); } @@ -63950,7 +63961,7 @@ function jhe(t, e, r) { 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, eNt(t, r, h)) { + if (o += f ? d : -d, tNt(t, r, h)) { var p = t.edge(r, h).cutvalue; o += f ? -p : p; } @@ -63985,51 +63996,51 @@ function efe(t, e, r) { } function tfe(t, e, r, n) { var i = r.v, s = r.w; - t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), hI(t), uI(t, e), JDt(t, e); + t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), hI(t), uI(t, e), eNt(t, e); } -function JDt(t, e) { +function eNt(t, e) { var r = Xu(t.nodes(), function(i) { return !e.node(i).parent; - }), n = jDt(t, r); + }), n = KDt(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 eNt(t, e, r) { +function tNt(t, e, r) { return t.hasEdge(e, r); } function QQ(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } -function tNt(t) { +function rNt(t) { switch (t.graph().ranker) { case "network-simplex": WQ(t); break; case "tight-tree": - nNt(t); + iNt(t); break; case "longest-path": - rNt(t); + nNt(t); break; default: WQ(t); } } -var rNt = cI; -function nNt(t) { +var nNt = cI; +function iNt(t) { cI(t), Hhe(t); } function WQ(t) { J0(t); } -function iNt(t) { - var e = am(t, "root", {}, "_root"), r = sNt(t), n = v0(Kr(r)) - 1, i = 2 * n + 1; +function sNt(t) { + var e = am(t, "root", {}, "_root"), r = aNt(t), n = v0(Kr(r)) - 1, i = 2 * n + 1; t.graph().nestingRoot = e, $e(t.edges(), function(a) { t.edge(a).minlen *= i; }); - var s = aNt(t) + 1; + var s = oNt(t) + 1; $e(t.children(), function(a) { rfe(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; @@ -64055,7 +64066,7 @@ function rfe(t, e, r, n, i, s, a) { }); }), t.parent(a) || t.setEdge(e, l, { weight: 0, minlen: i + s[a] }); } -function sNt(t) { +function aNt(t) { var e = {}; function r(n, i) { var s = t.children(n); @@ -64067,7 +64078,7 @@ function sNt(t) { r(n, 1); }), e; } -function aNt(t) { +function oNt(t) { return gi( t.edges(), function(e, r) { @@ -64076,14 +64087,14 @@ function aNt(t) { 0 ); } -function oNt(t) { +function lNt(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 lNt(t, e, r) { +function cNt(t, e, r) { var n = {}, i; $e(r, function(s) { for (var a = t.parent(s), o, l; a; ) { @@ -64095,8 +64106,8 @@ function lNt(t, e, r) { } }); } -function cNt(t, e, r) { - var n = uNt(t), i = new $i({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { +function uNt(t, e, r) { + var n = hNt(t), i = new $i({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { return t.node(s); }); return $e(t.nodes(), function(s) { @@ -64110,18 +64121,18 @@ function cNt(t, e, r) { })); }), i; } -function uNt(t) { +function hNt(t) { for (var e; t.hasNode(e = lI("_root")); ) ; return e; } -function hNt(t, e) { +function fNt(t, e) { for (var r = 0, n = 1; n < e.length; ++n) - r += fNt(t, e[n - 1], e[n]); + r += dNt(t, e[n - 1], e[n]); return r; } -function fNt(t, e, r) { - for (var n = xDt( +function dNt(t, e, r) { + for (var n = wDt( r, gt(r, function(u, h) { return h; @@ -64152,7 +64163,7 @@ function fNt(t, e, r) { }) ), l; } -function dNt(t) { +function pNt(t) { var e = {}, r = Yn(t.nodes(), function(o) { return !t.children(o).length; }), n = v0( @@ -64174,7 +64185,7 @@ function dNt(t) { }); return $e(a, s), i; } -function pNt(t, e) { +function gNt(t, e) { return gt(e, function(r) { var n = t.inEdges(r); if (n.length) { @@ -64198,7 +64209,7 @@ function pNt(t, e) { return { v: r }; }); } -function gNt(t, e) { +function mNt(t, e) { var r = {}; $e(t, function(i, s) { var a = r[i.v] = { @@ -64216,13 +64227,13 @@ function gNt(t, e) { var n = Yn(r, function(i) { return !i.indegree; }); - return mNt(n); + return vNt(n); } -function mNt(t) { +function vNt(t) { var e = []; function r(s) { return function(a) { - a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && vNt(s, a); + a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && yNt(s, a); }; } function n(s) { @@ -64243,17 +64254,17 @@ function mNt(t) { } ); } -function vNt(t, e) { +function yNt(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 yNt(t, e) { - var r = IDt(t, function(h) { +function bNt(t, e) { + var r = PDt(t, function(h) { return yt(h, "barycenter"); }), n = r.lhs, i = Lx(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(bNt(!!e)), l = GQ(s, i, l), $e(n, function(h) { + n.sort(xNt(!!e)), l = GQ(s, i, l), $e(n, function(h) { l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = GQ(s, i, l); }); var u = { vs: Qi(s) }; @@ -64264,7 +64275,7 @@ function GQ(t, e, r) { e.pop(), t.push(n.vs), r++; return r; } -function bNt(t) { +function xNt(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; }; @@ -64274,23 +64285,23 @@ function nfe(t, e, r, n) { a && (i = Yn(i, function(g) { return g !== a && g !== o; })); - var u = pNt(t, i); + var u = gNt(t, i); $e(u, function(g) { if (t.children(g.v).length) { var m = nfe(t, g.v, r, n); - l[g.v] = m, yt(m, "barycenter") && wNt(g, m); + l[g.v] = m, yt(m, "barycenter") && ONt(g, m); } }); - var h = gNt(u, r); - xNt(h, l); - var f = yNt(h, n); + var h = mNt(u, r); + wNt(h, l); + var f = bNt(h, n); if (a && (f.vs = Qi([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 xNt(t, e) { +function wNt(t, e) { $e(t, function(r) { r.vs = Qi( r.vs.map(function(n) { @@ -64299,31 +64310,31 @@ function xNt(t, e) { ); }); } -function wNt(t, e) { +function ONt(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 ONt(t) { - var e = Whe(t), r = HQ(t, d1(1, e + 1), "inEdges"), n = HQ(t, d1(e - 1, -1, -1), "outEdges"), i = dNt(t); +function kNt(t) { + var e = Whe(t), r = HQ(t, d1(1, e + 1), "inEdges"), n = HQ(t, d1(e - 1, -1, -1), "outEdges"), i = pNt(t); XQ(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { - kNt(o % 2 ? r : n, o % 4 >= 2), i = cC(t); - var u = hNt(t, i); - u < s && (l = 0, a = _Rt(i), s = u); + SNt(o % 2 ? r : n, o % 4 >= 2), i = cC(t); + var u = fNt(t, i); + u < s && (l = 0, a = ARt(i), s = u); } XQ(t, a); } function HQ(t, e, r) { return gt(e, function(n) { - return cNt(t, n, r); + return uNt(t, n, r); }); } -function kNt(t, e) { +function SNt(t, e) { var r = new $i(); $e(t, function(n) { var i = n.graph().root, s = nfe(n, i, r, e); $e(s.vs, function(a, o) { n.node(a).order = o; - }), lNt(n, r, s.vs); + }), cNt(n, r, s.vs); }); } function XQ(t, e) { @@ -64333,10 +64344,10 @@ function XQ(t, e) { }); }); } -function SNt(t) { - var e = CNt(t); +function TNt(t) { + var e = ENt(t); $e(t.graph().dummyChains, function(r) { - for (var n = t.node(r), i = n.edgeObj, s = TNt(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++; @@ -64351,7 +64362,7 @@ function SNt(t) { } }); } -function TNt(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 @@ -64361,7 +64372,7 @@ function TNt(t, e, r, n) { s.push(l); return { path: i.concat(s.reverse()), lca: u }; } -function CNt(t) { +function ENt(t) { var e = {}, r = 0; function n(i) { var s = r; @@ -64369,12 +64380,12 @@ function CNt(t) { } return $e(t.children(), n), e; } -function ENt(t, e) { +function _Nt(t, e) { var r = {}; function n(i, s) { var a = 0, o = 0, l = i.length, u = Bc(s); return $e(s, function(h, f) { - var d = ANt(t, h), p = d ? t.node(d).order : l; + var d = LNt(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; @@ -64385,7 +64396,7 @@ function ENt(t, e) { } return gi(e, n), r; } -function _Nt(t, e) { +function ANt(t, e) { var r = {}; function n(s, a, o, l, u) { var h; @@ -64408,7 +64419,7 @@ function _Nt(t, e) { } return gi(e, i), r; } -function ANt(t, e) { +function LNt(t, e) { if (t.node(e).dummy) return Xu(t.predecessors(e), function(r) { return t.node(r).dummy; @@ -64422,14 +64433,14 @@ function ife(t, e, r) { var i = t[e]; i || (t[e] = i = {}), i[r] = !0; } -function LNt(t, e, r) { +function RNt(t, e, r) { if (e > r) { var n = e; e = r, r = n; } return yt(t[e], r); } -function RNt(t, e, r, n) { +function MNt(t, e, r, n) { var i = {}, s = {}, a = {}; return $e(e, function(o) { $e(o, function(l, u) { @@ -64445,14 +64456,14 @@ function RNt(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] && !LNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); + s[u] === u && l < a[g] && !RNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); } } }); }), { root: i, align: s }; } -function MNt(t, e, r, n, i) { - var s = {}, a = DNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; +function DNt(t, e, r, n, i) { + var s = {}, a = NNt(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(); @@ -64472,8 +64483,8 @@ function MNt(t, e, r, n, i) { s[f] = s[r[f]]; }), s; } -function DNt(t, e, r, n) { - var i = new $i(), s = t.graph(), a = BNt(s.nodesep, s.edgesep, n); +function NNt(t, e, r, n) { + var i = new $i(), s = t.graph(), a = FNt(s.nodesep, s.edgesep, n); return $e(e, function(o) { var l; $e(o, function(u) { @@ -64486,16 +64497,16 @@ function DNt(t, e, r, n) { }); }), i; } -function NNt(t, e) { +function INt(t, e) { return sI(Kr(e), function(r) { var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return RMt(r, function(s, a) { - var o = FNt(t, a) / 2; + return MMt(r, function(s, a) { + var o = zNt(t, a) / 2; n = Math.max(s + o, n), i = Math.min(s - o, i); }), n - i; }); } -function INt(t, e) { +function PNt(t, e) { var r = Kr(e), n = f1(r), i = v0(r); $e(["u", "d"], function(s) { $e(["l", "r"], function(a) { @@ -64509,7 +64520,7 @@ function INt(t, e) { }); }); } -function PNt(t, e) { +function $Nt(t, e) { return oC(t.ul, function(r, n) { if (e) return t[e.toLowerCase()][n]; @@ -64517,23 +64528,23 @@ function PNt(t, e) { return (i[1] + i[2]) / 2; }); } -function $Nt(t) { - var e = cC(t), r = z3(ENt(t, e), _Nt(t, e)), n = {}, i; +function BNt(t) { + var e = cC(t), r = z3(_Nt(t, e), ANt(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 = RNt(t, i, r, l), h = MNt(t, i, u.root, u.align, o === "r"); + var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = MNt(t, i, r, l), h = DNt(t, i, u.root, u.align, o === "r"); o === "r" && (h = oC(h, function(f) { return -f; })), n[a + o] = h; }); }); - var s = NNt(t, n); - return INt(n, s), PNt(n, t.graph().align); + var s = INt(t, n); + return PNt(n, s), $Nt(n, t.graph().align); } -function BNt(t, e, r) { +function FNt(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")) @@ -64557,15 +64568,15 @@ function BNt(t, e, r) { return u && (l += r ? u : -u), u = 0, l; }; } -function FNt(t, e) { +function zNt(t, e) { return t.node(e).width; } -function zNt(t) { - t = Qhe(t), VNt(t), MMt($Nt(t), function(e, r) { +function VNt(t) { + t = Qhe(t), UNt(t), DMt(BNt(t), function(e, r) { t.node(r).x = e; }); } -function VNt(t) { +function UNt(t) { var e = cC(t), r = t.graph().ranksep, n = 0; $e(e, function(i) { var s = v0( @@ -64579,76 +64590,76 @@ function VNt(t) { }); } function om(t, e) { - var r = e && e.debugTiming ? PDt : $Dt; + var r = e && e.debugTiming ? $Dt : BDt; r("layout", function() { var n = r(" buildLayoutGraph", function() { - return KNt(t); + return JNt(t); }); r(" runLayout", function() { - UNt(n, r); + qNt(n, r); }), r(" updateInputGraph", function() { - qNt(t, n); + YNt(t, n); }); }); } -function UNt(t, e) { +function qNt(t, e) { e(" makeSpaceForEdgeLabels", function() { - JNt(t); + eIt(t); }), e(" removeSelfEdges", function() { - lIt(t); + cIt(t); }), e(" acyclic", function() { - ADt(t); + LDt(t); }), e(" nestingGraph.run", function() { - iNt(t); + sNt(t); }), e(" rank", function() { - tNt(Qhe(t)); + rNt(Qhe(t)); }), e(" injectEdgeLabelProxies", function() { - eIt(t); + tIt(t); }), e(" removeEmptyRanks", function() { - NDt(t); + IDt(t); }), e(" nestingGraph.cleanup", function() { - oNt(t); + lNt(t); }), e(" normalizeRanks", function() { - DDt(t); + NDt(t); }), e(" assignRankMinMax", function() { - tIt(t); - }), e(" removeEdgeLabelProxies", function() { rIt(t); + }), e(" removeEdgeLabelProxies", function() { + nIt(t); }), e(" normalize.run", function() { - qDt(t); + YDt(t); }), e(" parentDummyChains", function() { - SNt(t); + TNt(t); }), e(" addBorderSegments", function() { - BDt(t); + FDt(t); }), e(" order", function() { - ONt(t); + kNt(t); }), e(" insertSelfEdges", function() { - cIt(t); + uIt(t); }), e(" adjustCoordinateSystem", function() { - FDt(t); + zDt(t); }), e(" position", function() { - zNt(t); + VNt(t); }), e(" positionSelfEdges", function() { - uIt(t); + hIt(t); }), e(" removeBorderNodes", function() { - oIt(t); + lIt(t); }), e(" normalize.undo", function() { - QDt(t); + WDt(t); }), e(" fixupEdgeLabelCoords", function() { - sIt(t); + aIt(t); }), e(" undoCoordinateSystem", function() { - zDt(t); + VDt(t); }), e(" translateGraph", function() { - nIt(t); - }), e(" assignNodeIntersects", function() { iIt(t); + }), e(" assignNodeIntersects", function() { + sIt(t); }), e(" reversePoints", function() { - aIt(t); + oIt(t); }), e(" acyclic.undo", function() { - RDt(t); + MDt(t); }); } -function qNt(t, e) { +function YNt(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)); @@ -64657,37 +64668,37 @@ function qNt(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 YNt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], QNt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, WNt = ["acyclicer", "ranker", "rankdir", "align"], GNt = ["width", "height"], HNt = { width: 0, height: 0 }, XNt = ["minlen", "weight", "width", "height", "labeloffset"], ZNt = { +var QNt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], WNt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, GNt = ["acyclicer", "ranker", "rankdir", "align"], HNt = ["width", "height"], XNt = { width: 0, height: 0 }, ZNt = ["minlen", "weight", "width", "height", "labeloffset"], jNt = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" -}, jNt = ["labelpos"]; -function KNt(t) { +}, KNt = ["labelpos"]; +function JNt(t) { var e = new $i({ multigraph: !0, compound: !0 }), r = I_(t.graph()); return e.setGraph( - z3({}, QNt, N_(r, YNt), hk(r, WNt)) + z3({}, WNt, N_(r, QNt), hk(r, GNt)) ), $e(t.nodes(), function(n) { var i = I_(t.node(n)); - e.setNode(n, sC(N_(i, GNt), HNt)), e.setParent(n, t.parent(n)); + e.setNode(n, sC(N_(i, HNt), XNt)), e.setParent(n, t.parent(n)); }), $e(t.edges(), function(n) { var i = I_(t.edge(n)); e.setEdge( n, - z3({}, ZNt, N_(i, XNt), hk(i, jNt)) + z3({}, jNt, N_(i, ZNt), hk(i, KNt)) ); }), e; } -function JNt(t) { +function eIt(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 eIt(t) { +function tIt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.width && r.height) { @@ -64696,20 +64707,20 @@ function eIt(t) { } }); } -function tIt(t) { +function rIt(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 = v0(e, n.maxRank)); }), t.graph().maxRank = e; } -function rIt(t) { +function nIt(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 nIt(t) { +function iIt(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; @@ -64730,13 +64741,13 @@ function nIt(t) { }), yt(h, "x") && (h.x -= e), yt(h, "y") && (h.y -= n); }), s.width = r - e + a, s.height = i - n + o; } -function iIt(t) { +function sIt(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(VQ(n, s)), r.points.push(VQ(i, a)); }); } -function sIt(t) { +function aIt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (yt(r, "x")) @@ -64750,13 +64761,13 @@ function sIt(t) { } }); } -function aIt(t) { +function oIt(t) { $e(t.edges(), function(e) { var r = t.edge(e); r.reversed && r.points.reverse(); }); } -function oIt(t) { +function lIt(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(Bc(r.borderLeft)), a = t.node(Bc(r.borderRight)); @@ -64766,7 +64777,7 @@ function oIt(t) { t.node(e).dummy === "border" && t.removeNode(e); }); } -function lIt(t) { +function cIt(t) { $e(t.edges(), function(e) { if (e.v === e.w) { var r = t.node(e.v); @@ -64774,7 +64785,7 @@ function lIt(t) { } }); } -function cIt(t) { +function uIt(t) { var e = cC(t); $e(e, function(r) { var n = 0; @@ -64798,7 +64809,7 @@ function cIt(t) { }); }); } -function uIt(t) { +function hIt(t) { $e(t.nodes(), function(e) { var r = t.node(e); if (r.dummy === "selfedge") { @@ -64829,29 +64840,29 @@ function di(t) { multigraph: t.isMultigraph(), compound: t.isCompound() }, - nodes: hIt(t), - edges: fIt(t) + nodes: fIt(t), + edges: dIt(t) }; return qr(t.graph()) || (e.value = Di(t.graph())), e; } -function hIt(t) { +function fIt(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 fIt(t) { +function dIt(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(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__PURE__ */ new Map(), dIt = /* @__PURE__ */ x(() => { +var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__PURE__ */ new Map(), pIt = /* @__PURE__ */ x(() => { Pd.clear(), sfe.clear(), br.clear(); }, "clear"), fk = /* @__PURE__ */ x((t, e) => { const r = Pd.get(e) || []; return X.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); -}, "isDescendant"), pIt = /* @__PURE__ */ x((t, e) => { +}, "isDescendant"), gIt = /* @__PURE__ */ x((t, e) => { const r = Pd.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) || fk(t.v, e) || fk(t.w, e) || r.includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1); }, "edgeInCluster"), afe = /* @__PURE__ */ x((t, e, r, n) => { @@ -64884,7 +64895,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - pIt(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( + gIt(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, "-->", @@ -64907,7 +64918,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ for (const i of r) sfe.set(i, t), n = [...n, ...ofe(i, e)]; return n; -}, "extractDescendants"), gIt = /* @__PURE__ */ x((t, e, r) => { +}, "extractDescendants"), mIt = /* @__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"), A2 = /* @__PURE__ */ x((t, e, r) => { @@ -64916,7 +64927,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ return t; let i; for (const s of n) { - const a = A2(s, e, r), o = gIt(e, r, a); + const a = A2(s, e, r), o = mIt(e, r, a); if (a) if (o.length > 0) i = a; @@ -64924,7 +64935,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ return a; } return i; -}, "findNonClusterChild"), ZQ = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), mIt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), ZQ = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), vIt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -65056,7 +65067,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ const i = t.children(n), s = cfe(t, i); r = [...r, ...s]; }), r; -}, "sorter"), vIt = /* @__PURE__ */ x((t) => cfe(t, t.children()), "sortNodesByHierarchy"), ufe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), yIt = /* @__PURE__ */ x((t) => cfe(t, t.children()), "sortNodesByHierarchy"), ufe = /* @__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); @@ -65103,7 +65114,7 @@ Parent cluster`, v.width, "height", v.height - ), cTt(O, v); + ), uTt(O, v); } else e.children(m).length > 0 ? (X.trace( "Cluster - the non recursive path XBX", @@ -65133,7 +65144,7 @@ Parent cluster`, }, "processEdges"))(), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("############################################# XXX"), X.info("### Layout ### XXX"), X.info("############################################# XXX"), om(e), X.info("Graph after layout:", JSON.stringify(di(e))); let p = 0, { subGraphTitleTotalMargin: g } = V0(s); return await Promise.all( - vIt(e).map(async function(m) { + yIt(e).map(async function(m) { var y; const v = e.node(m); if (X.info( @@ -65198,7 +65209,7 @@ Parent cluster`, 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"), yIt = /* @__PURE__ */ x(async (t, e) => { +}, "recursiveRender"), bIt = /* @__PURE__ */ x(async (t, e) => { var s, a, o, l, u, h; const r = new $i({ multigraph: !0, @@ -65212,7 +65223,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - moe(n, t.markers, t.type, t.diagramId), uTt(), dSt(), uSt(), dIt(), t.nodes.forEach((f) => { + moe(n, t.markers, t.type, t.diagramId), hTt(), pSt(), hSt(), pIt(), 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) { @@ -65244,7 +65255,7 @@ 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 { const r = t.append("rect"); @@ -65276,17 +65287,17 @@ var uC = /* @__PURE__ */ x((t, e) => { class: "rect" }; uC(t, r).lower(); -}, "drawBackgroundRect"), xIt = /* @__PURE__ */ x((t, e) => { +}, "drawBackgroundRect"), wIt = /* @__PURE__ */ x((t, e) => { const r = e.text.replace(X1, " "), 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"), wIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawText"), OIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("image"); i.attr("x", e), i.attr("y", r); const s = Uf(n); i.attr("xlink:href", s); -}, "drawImage"), OIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawImage"), kIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("use"); i.attr("x", e), i.attr("y", r); const s = Uf(n); @@ -65922,7 +65933,7 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[ft] || ft) + "'" : Ze return x(Qe, "Parser"), Qe.prototype = Ue, Ue.Parser = Qe, new Qe(); }(); dk.parser = dk; -var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ +var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ { alias: "global", label: { text: "global" }, @@ -65931,11 +65942,11 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ link: null, parentBoundary: "" } -], L2 = [], dI = "", pI = !1, pk = 4, gk = 2, ffe, SIt = /* @__PURE__ */ x(function() { +], L2 = [], dI = "", pI = !1, pk = 4, gk = 2, ffe, TIt = /* @__PURE__ */ x(function() { return ffe; -}, "getC4Type"), TIt = /* @__PURE__ */ x(function(t) { +}, "getC4Type"), CIt = /* @__PURE__ */ x(function(t) { ffe = ni(t, be()); -}, "setC4Type"), CIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { +}, "setC4Type"), EIt = /* @__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 = {}; @@ -65970,7 +65981,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else u.link = l; u.wrap = Yf(); -}, "addRel"), EIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "addRel"), _It = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { if (e === null || r === null) return; let o = {}; @@ -65998,7 +66009,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else o.link = a; o.typeC4Shape = { text: t }, o.parentBoundary = aa, o.wrap = Yf(); -}, "addPersonOrSystem"), _It = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addPersonOrSystem"), AIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -66033,7 +66044,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else l.link = o; l.wrap = Yf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addContainer"), AIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainer"), LIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -66068,7 +66079,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else l.link = o; l.wrap = Yf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addComponent"), LIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addComponent"), RIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -66091,7 +66102,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Yf(), Cl = aa, aa = t, tf.push(Cl); -}, "addPersonOrSystemBoundary"), RIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addPersonOrSystemBoundary"), MIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -66114,7 +66125,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Yf(), Cl = aa, aa = t, tf.push(Cl); -}, "addContainerBoundary"), MIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainerBoundary"), DIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -66144,9 +66155,9 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else l.link = o; l.nodeType = t, l.parentBoundary = aa, l.wrap = Yf(), Cl = aa, aa = e, tf.push(Cl); -}, "addDeploymentNode"), DIt = /* @__PURE__ */ x(function() { +}, "addDeploymentNode"), NIt = /* @__PURE__ */ x(function() { aa = Cl, tf.pop(), Cl = tf.pop(), tf.push(Cl); -}, "popBoundaryParseStack"), NIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "popBoundaryParseStack"), IIt = /* @__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 = Fc.find((d) => d.alias === e), f === void 0))) { if (r != null) @@ -66204,7 +66215,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else f.legendSprite = h; } -}, "updateElStyle"), IIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "updateElStyle"), PIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const o = L2.find((l) => l.from === e && l.to === r); if (o !== void 0) { if (n != null) @@ -66232,7 +66243,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else o.offsetY = parseInt(a); } -}, "updateRelStyle"), PIt = /* @__PURE__ */ x(function(t, e, r) { +}, "updateRelStyle"), $It = /* @__PURE__ */ x(function(t, e, r) { let n = pk, i = gk; if (typeof e == "object") { const s = Object.values(e)[0]; @@ -66245,31 +66256,31 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else i = parseInt(r); n >= 1 && (pk = n), i >= 1 && (gk = i); -}, "updateLayoutConfig"), $It = /* @__PURE__ */ x(function() { +}, "updateLayoutConfig"), BIt = /* @__PURE__ */ x(function() { return pk; -}, "getC4ShapeInRow"), BIt = /* @__PURE__ */ x(function() { +}, "getC4ShapeInRow"), FIt = /* @__PURE__ */ x(function() { return gk; -}, "getC4BoundaryInRow"), FIt = /* @__PURE__ */ x(function() { +}, "getC4BoundaryInRow"), zIt = /* @__PURE__ */ x(function() { return aa; -}, "getCurrentBoundaryParse"), zIt = /* @__PURE__ */ x(function() { +}, "getCurrentBoundaryParse"), VIt = /* @__PURE__ */ x(function() { return Cl; }, "getParentBoundaryParse"), dfe = /* @__PURE__ */ x(function(t) { return t == null ? Fl : Fl.filter((e) => e.parentBoundary === t); -}, "getC4ShapeArray"), VIt = /* @__PURE__ */ x(function(t) { +}, "getC4ShapeArray"), UIt = /* @__PURE__ */ x(function(t) { return Fl.find((e) => e.alias === t); -}, "getC4Shape"), UIt = /* @__PURE__ */ x(function(t) { +}, "getC4Shape"), qIt = /* @__PURE__ */ x(function(t) { return Object.keys(dfe(t)); }, "getC4ShapeKeys"), pfe = /* @__PURE__ */ x(function(t) { return t == null ? Fc : Fc.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), qIt = pfe, YIt = /* @__PURE__ */ x(function() { +}, "getBoundaries"), YIt = pfe, QIt = /* @__PURE__ */ x(function() { return L2; -}, "getRels"), QIt = /* @__PURE__ */ x(function() { +}, "getRels"), WIt = /* @__PURE__ */ x(function() { return dI; -}, "getTitle"), WIt = /* @__PURE__ */ x(function(t) { +}, "getTitle"), GIt = /* @__PURE__ */ x(function(t) { pI = t; }, "setWrap"), Yf = /* @__PURE__ */ x(function() { return pI; -}, "autoWrap"), GIt = /* @__PURE__ */ x(function() { +}, "autoWrap"), HIt = /* @__PURE__ */ x(function() { Fl = [], Fc = [ { alias: "global", @@ -66280,7 +66291,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ parentBoundary: "" } ], Cl = "", aa = "global", tf = [""], L2 = [], tf = [""], dI = "", pI = !1, pk = 4, gk = 2; -}, "clear"), HIt = { +}, "clear"), XIt = { SOLID: 0, DOTTED: 1, NOTE: 2, @@ -66304,52 +66315,52 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 -}, XIt = { +}, ZIt = { FILLED: 0, OPEN: 1 -}, ZIt = { +}, jIt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, jIt = /* @__PURE__ */ x(function(t) { +}, KIt = /* @__PURE__ */ x(function(t) { dI = ni(t, be()); }, "setTitle"), BL = { - addPersonOrSystem: EIt, - addPersonOrSystemBoundary: LIt, - addContainer: _It, - addContainerBoundary: RIt, - addComponent: AIt, - addDeploymentNode: MIt, - popBoundaryParseStack: DIt, - addRel: CIt, - updateElStyle: NIt, - updateRelStyle: IIt, - updateLayoutConfig: PIt, + addPersonOrSystem: _It, + addPersonOrSystemBoundary: RIt, + addContainer: AIt, + addContainerBoundary: MIt, + addComponent: LIt, + addDeploymentNode: DIt, + popBoundaryParseStack: NIt, + addRel: EIt, + updateElStyle: IIt, + updateRelStyle: PIt, + updateLayoutConfig: $It, autoWrap: Yf, - setWrap: WIt, + setWrap: GIt, getC4ShapeArray: dfe, - getC4Shape: VIt, - getC4ShapeKeys: UIt, + getC4Shape: UIt, + getC4ShapeKeys: qIt, getBoundaries: pfe, - getBoundarys: qIt, - getCurrentBoundaryParse: FIt, - getParentBoundaryParse: zIt, - getRels: YIt, - getTitle: QIt, - getC4Type: SIt, - getC4ShapeInRow: $It, - getC4BoundaryInRow: BIt, + getBoundarys: YIt, + getCurrentBoundaryParse: zIt, + getParentBoundaryParse: VIt, + getRels: QIt, + getTitle: WIt, + getC4Type: TIt, + getC4ShapeInRow: BIt, + getC4BoundaryInRow: FIt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().c4, "getConfig"), - clear: GIt, - LINETYPE: HIt, - ARROWTYPE: XIt, - PLACEMENT: ZIt, - setTitle: jIt, - setC4Type: TIt + clear: HIt, + LINETYPE: XIt, + ARROWTYPE: ZIt, + PLACEMENT: jIt, + setTitle: KIt, + setC4Type: CIt }, gI = /* @__PURE__ */ x(function(t, e) { return uC(t, e); }, "drawRect"), gfe = /* @__PURE__ */ x(function(t, e, r, n, i, s) { @@ -66357,7 +66368,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ 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 : Uf(s); a.attr("xlink:href", o); -}, "drawImage"), KIt = /* @__PURE__ */ x((t, e, r) => { +}, "drawImage"), JIt = /* @__PURE__ */ x((t, e, r) => { const n = t.append("g"); let i = 0; for (let s of e) { @@ -66396,7 +66407,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ f )); } -}, "drawRels"), JIt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawRels"), ePt = /* @__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 }); @@ -66441,7 +66452,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ { fill: "#444444" }, u )); -}, "drawBoundary"), ePt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawBoundary"), tPt = /* @__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) { @@ -66495,7 +66506,7 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ ); break; } - let u = cPt(r, e.typeC4Shape.text); + let u = uPt(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": @@ -66547,33 +66558,33 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ { fill: s }, h )), e.height; -}, "drawC4Shape"), tPt = /* @__PURE__ */ x(function(t) { +}, "drawC4Shape"), rPt = /* @__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"), rPt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), nPt = /* @__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"), nPt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), iPt = /* @__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"), iPt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), sPt = /* @__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"), sPt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), aPt = /* @__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"), aPt = /* @__PURE__ */ x(function(t) { +}, "insertArrowEnd"), oPt = /* @__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"), oPt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), lPt = /* @__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"), lPt = /* @__PURE__ */ x(function(t) { +}, "insertDynamicNumber"), cPt = /* @__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"), cPt = /* @__PURE__ */ x((t, e) => ({ +}, "insertArrowCrossHead"), uPt = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] @@ -66605,18 +66616,18 @@ var kIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ }; }(), oc = { drawRect: gI, - drawBoundary: JIt, - drawC4Shape: ePt, - drawRels: KIt, + drawBoundary: ePt, + drawC4Shape: tPt, + drawRels: JIt, drawImage: gfe, - insertArrowHead: iPt, - insertArrowEnd: sPt, - insertArrowFilledHead: aPt, - insertDynamicNumber: oPt, - insertArrowCrossHead: lPt, - insertDatabaseIcon: tPt, - insertComputerIcon: rPt, - insertClockIcon: nPt + insertArrowHead: sPt, + insertArrowEnd: aPt, + insertArrowFilledHead: oPt, + insertDynamicNumber: lPt, + insertArrowCrossHead: cPt, + insertDatabaseIcon: rPt, + insertComputerIcon: nPt, + insertClockIcon: iPt }, mk = 0, vk = 0, mfe = 4, FL = 2; dk.yy = BL; var Nt = {}, db, vfe = (db = class { @@ -66664,7 +66675,7 @@ var Nt = {}, db, vfe = (db = class { fontFamily: t.boundaryFontFamily, fontSize: t.boundaryFontSize, fontWeight: t.boundaryFontWeight -}), "boundaryFont"), uPt = /* @__PURE__ */ x((t) => ({ +}), "boundaryFont"), hPt = /* @__PURE__ */ x((t) => ({ fontFamily: t.messageFontFamily, fontSize: t.messageFontSize, fontWeight: t.messageFontWeight @@ -66741,22 +66752,22 @@ var yfe = /* @__PURE__ */ x(function(t, e, r) { a + l / u * t.height / 2, n + t.height ) : r < i && n > s ? f >= h ? d = new Oo(r + t.width, o - h * t.width / 2) : d = new Oo(a + t.height / 2 * l / u, n) : r > i && n > s && (f >= h ? d = new Oo(r, o - t.width / 2 * h) : d = new Oo(a - t.height / 2 * l / u, n)), d; -}, "getIntersectPoint"), hPt = /* @__PURE__ */ x(function(t, e) { +}, "getIntersectPoint"), fPt = /* @__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 = jQ(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; let i = jQ(e, r); return { startPoint: n, endPoint: i }; -}, "getIntersectPoints"), fPt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getIntersectPoints"), dPt = /* @__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 = uPt(Nt); + let a = s.wrap && Nt.wrap, o = hPt(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 = hPt(h, f); + let h = r(s.from), f = r(s.to), d = fPt(h, f); s.startPoint = d.startPoint, s.endPoint = d.endPoint; } oc.drawRels(t, e, Nt); @@ -66827,7 +66838,7 @@ function mI(t, e, r, n, i) { } } x(mI, "drawInsideBoundary"); -var dPt = /* @__PURE__ */ x(function(t, e, r, n) { +var pPt = /* @__PURE__ */ x(function(t, e, r, n) { Nt = be().c4; const i = be().securityLevel; let s; @@ -66846,7 +66857,7 @@ var dPt = /* @__PURE__ */ x(function(t, e, r, n) { ), u.data.widthLimit = screen.availWidth, mk = Nt.diagramMarginX, vk = Nt.diagramMarginY; const h = n.db.getTitle(); let f = n.db.getBoundarys(""); - mI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), fPt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = mk, u.data.stopy = vk; + mI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), dPt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = mk, u.data.stopy = vk; const d = u.data; let g = d.stopy - d.starty + 2 * Nt.diagramMarginY; const v = d.stopx - d.startx + 2 * Nt.diagramMarginX; @@ -66860,34 +66871,34 @@ var dPt = /* @__PURE__ */ x(function(t, e, r, n) { drawPersonOrSystemArray: bfe, drawBoundary: yfe, setConf: zL, - draw: dPt -}, pPt = /* @__PURE__ */ x((t) => `.person { + draw: pPt +}, gPt = /* @__PURE__ */ x((t) => `.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`, "getStyles"), gPt = pPt, mPt = { - parser: kIt, +`, "getStyles"), mPt = gPt, vPt = { + parser: SIt, db: BL, renderer: KQ, - styles: gPt, + styles: mPt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { KQ.setConf(t), BL.setWrap(e); }, "init") }; -const vPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const yPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: mPt + diagram: vPt }, Symbol.toStringTag, { value: "Module" })); var xfe = /* @__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"), wfe = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); - const { width: i, height: s, x: a, y: o } = yPt(t, e); + const { width: i, height: s, x: a, y: o } = bPt(t, e); ms(t, s, i, n); - const l = bPt(a, o, i, s, e); + const l = xPt(a, o, i, s, e); t.attr("viewBox", l), X.debug(`viewBox configured: ${l} with padding: ${e}`); -}, "setupViewPortForSVG"), yPt = /* @__PURE__ */ x((t, e) => { +}, "setupViewPortForSVG"), bPt = /* @__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 { @@ -66896,7 +66907,7 @@ var xfe = /* @__PURE__ */ x((t, e) => { x: r.x, y: r.y }; -}, "calculateDimensionsWithPadding"), bPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); +}, "calculateDimensionsWithPadding"), xPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); function VL(t, e) { e && t.attr("style", e); } @@ -66906,7 +66917,7 @@ function Ofe(t) { return s.html(n), VL(s, t.labelStyle), s.attr("class", i), VL(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(Ofe, "addHtmlLabel"); -var xPt = /* @__PURE__ */ x((t, e, r, n) => { +var wPt = /* @__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); @@ -66927,7 +66938,7 @@ var xPt = /* @__PURE__ */ x((t, e, r, n) => { } return s; } -}, "createLabel"), _a = xPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { +}, "createLabel"), _a = wPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { const i = be(); let s; const a = e.useHtmlLabels || bn(i.flowchart.htmlLabels); @@ -66989,7 +67000,7 @@ function Xl(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(Xl, "insertPolygonShape"); -var wPt = /* @__PURE__ */ x((t) => { +var OPt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Set(); for (const r of t) switch (r) { @@ -67004,8 +67015,8 @@ var wPt = /* @__PURE__ */ x((t) => { break; } return e; -}, "expandAndDeduplicateDirections"), OPt = /* @__PURE__ */ x((t, e, r) => { - const n = wPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; +}, "expandAndDeduplicateDirections"), kPt = /* @__PURE__ */ x((t, e, r) => { + const n = OPt(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 }, @@ -67123,7 +67134,7 @@ function kfe(t, e) { return t.intersect(e); } x(kfe, "intersectNode"); -var kPt = kfe; +var SPt = kfe; function Sfe(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); @@ -67136,7 +67147,7 @@ function Cfe(t, e, r) { return Tfe(t, e, e, r); } x(Cfe, "intersectCircle"); -var SPt = Cfe; +var TPt = Cfe; function Efe(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 && UL(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 && UL(h, f)) && (g = i * o - s * a, g !== 0))) @@ -67147,14 +67158,14 @@ function UL(t, e) { return t * e > 0; } x(UL, "sameSign"); -var TPt = Efe, CPt = _fe; +var CPt = Efe, EPt = _fe; function _fe(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 = TPt( + 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 }, @@ -67168,16 +67179,16 @@ function _fe(t, e, r) { }), s[0]) : t; } x(_fe, "intersectPolygon"); -var EPt = /* @__PURE__ */ x((t, e) => { +var _Pt = /* @__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"), Rx = EPt, Cn = { - node: kPt, - circle: SPt, +}, "intersectRect"), Rx = _Pt, Cn = { + node: SPt, + circle: TPt, ellipse: Tfe, - polygon: CPt, + polygon: EPt, rect: Rx -}, _Pt = /* @__PURE__ */ x(async (t, e) => { +}, APt = /* @__PURE__ */ x(async (t, e) => { e.useHtmlLabels || be().flowchart.htmlLabels || (e.centerLabel = !0); const { shapeSvg: n, bbox: i, halfPadding: s } = await Ki( t, @@ -67190,7 +67201,7 @@ var EPt = /* @__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"), APt = _Pt, JQ = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), mo = /* @__PURE__ */ x((t, e) => `${e || "node default"}${JQ(t.classes)} ${JQ( +}, "note"), LPt = APt, JQ = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), mo = /* @__PURE__ */ x((t, e) => `${e || "node default"}${JQ(t.classes)} ${JQ( t.class )}`, "getClassesFromNode"), eW = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( @@ -67209,7 +67220,7 @@ var EPt = /* @__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"), LPt = /* @__PURE__ */ x((t, e) => { +}, "question"), RPt = /* @__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 }, @@ -67224,7 +67235,7 @@ var EPt = /* @__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"), RPt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), MPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67241,12 +67252,12 @@ var EPt = /* @__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"), 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 = OPt(e.directions, n, e), u = Xl(r, o, s, l); +}, "hexagon"), DPt = /* @__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 = kPt(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"), DPt = /* @__PURE__ */ x(async (t, e) => { +}, "block_arrow"), NPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67262,7 +67273,7 @@ var EPt = /* @__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"), NPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_left_inv_arrow"), IPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki(t, e, mo(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 }, @@ -67272,7 +67283,7 @@ var EPt = /* @__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"), IPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_right"), PPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67287,7 +67298,7 @@ var EPt = /* @__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"), PPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_left"), $Pt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67302,7 +67313,7 @@ var EPt = /* @__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"), $Pt = /* @__PURE__ */ x(async (t, e) => { +}, "trapezoid"), BPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67317,7 +67328,7 @@ var EPt = /* @__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"), BPt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), FPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67333,7 +67344,7 @@ var EPt = /* @__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"), FPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_right_inv_arrow"), zPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67348,7 +67359,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { } return f; }, r; -}, "cylinder"), zPt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), VPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67364,7 +67375,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "rect"), VPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect"), UPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67380,7 +67391,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "composite"), UPt = /* @__PURE__ */ x(async (t, e) => { +}, "composite"), qPt = /* @__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; @@ -67403,7 +67414,7 @@ function hC(t, e, r, n) { 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(hC, "applyNodePropertyBorders"); -var qPt = /* @__PURE__ */ x((t, e) => { +var YPt = /* @__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; @@ -67438,7 +67449,7 @@ var qPt = /* @__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"), YPt = /* @__PURE__ */ x(async (t, e) => { +}, "rectWithTitle"), QPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67448,7 +67459,7 @@ var qPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, r; -}, "stadium"), QPt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), WPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67458,7 +67469,7 @@ var qPt = /* @__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"), WPt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), GPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67468,7 +67479,7 @@ var qPt = /* @__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"), GPt = /* @__PURE__ */ x(async (t, e) => { +}, "doublecircle"), HPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67489,7 +67500,7 @@ var qPt = /* @__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"), HPt = /* @__PURE__ */ x((t, e) => { +}, "subroutine"), XPt = /* @__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); @@ -67502,12 +67513,12 @@ var qPt = /* @__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"), XPt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), ZPt = /* @__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"), ZPt = /* @__PURE__ */ x((t, e) => { +}, "end"), jPt = /* @__PURE__ */ x((t, e) => { var L; const r = e.padding / 2, n = 4, i = 8; let s; @@ -67604,31 +67615,31 @@ var qPt = /* @__PURE__ */ x((t, e) => { }, a; }, "class_box"), rW = { rhombus: eW, - composite: VPt, + composite: UPt, question: eW, - rect: zPt, - labelRect: UPt, - rectWithTitle: qPt, - choice: LPt, - circle: QPt, - doublecircle: WPt, - stadium: YPt, - hexagon: RPt, - block_arrow: MPt, - rect_left_inv_arrow: DPt, - lean_right: NPt, - lean_left: IPt, - trapezoid: PPt, - inv_trapezoid: $Pt, - rect_right_inv_arrow: BPt, - cylinder: FPt, - start: HPt, - end: XPt, - note: APt, - subroutine: GPt, + rect: VPt, + labelRect: qPt, + rectWithTitle: YPt, + choice: RPt, + circle: WPt, + doublecircle: GPt, + stadium: QPt, + hexagon: MPt, + block_arrow: DPt, + rect_left_inv_arrow: NPt, + lean_right: IPt, + lean_left: PPt, + trapezoid: $Pt, + inv_trapezoid: BPt, + rect_right_inv_arrow: FPt, + cylinder: zPt, + start: XPt, + end: ZPt, + note: LPt, + subroutine: HPt, fork: tW, join: tW, - class_box: ZPt + class_box: jPt }, cg = {}, vI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { @@ -67637,9 +67648,9 @@ var qPt = /* @__PURE__ */ x((t, e) => { } else i = await rW[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), cg[e.id] = n, e.haveCallback && cg[e.id].attr("class", cg[e.id].attr("class") + " clickable"), n; -}, "insertNode"), jPt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), KPt = /* @__PURE__ */ x((t, e) => { cg[e.id] = t; -}, "setNodeElem"), KPt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), JPt = /* @__PURE__ */ x(() => { cg = {}; }, "clear"), qL = /* @__PURE__ */ x((t) => { const e = cg[t.id]; @@ -67654,19 +67665,19 @@ var qPt = /* @__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"), JPt = "flowchart-", nW = 0, p1 = be(), Cf = /* @__PURE__ */ new Map(), xa = [], R2 = /* @__PURE__ */ new Map(), ju = [], yI = /* @__PURE__ */ new Map(), bI = /* @__PURE__ */ new Map(), G4 = 0, YL = !0, ko, fC, dC = [], pC = /* @__PURE__ */ x((t) => at.sanitizeText(t, p1), "sanitizeText"), gC = /* @__PURE__ */ x(function(t) { +}, "positionNode"), e$t = "flowchart-", nW = 0, p1 = be(), Cf = /* @__PURE__ */ new Map(), xa = [], R2 = /* @__PURE__ */ new Map(), ju = [], yI = /* @__PURE__ */ new Map(), bI = /* @__PURE__ */ new Map(), G4 = 0, YL = !0, ko, fC, dC = [], pC = /* @__PURE__ */ x((t) => at.sanitizeText(t, p1), "sanitizeText"), gC = /* @__PURE__ */ x(function(t) { for (const e of Cf.values()) if (e.id === t) return e.domId; return t; -}, "lookUpDomId"), e$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { +}, "lookUpDomId"), t$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { if (!t || t.trim().length === 0) return; let o, l = Cf.get(t); l === void 0 && (l = { id: t, labelType: "text", - domId: JPt + t + "-" + nW, + domId: e$t + t + "-" + nW, styles: [], classes: [] }, Cf.set(t, l)), nW++, e !== void 0 ? (p1 = be(), o = pC(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) { @@ -67674,7 +67685,7 @@ var qPt = /* @__PURE__ */ x((t, e) => { }), 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"), t$t = /* @__PURE__ */ x(function(t, e, r) { +}, "addVertex"), r$t = /* @__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); @@ -67689,16 +67700,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"), r$t = /* @__PURE__ */ x(function(t, e, r) { +}, "addSingleLink"), n$t = /* @__PURE__ */ x(function(t, e, r) { X.info("addLink", t, e, r); for (const n of t) for (const i of e) - t$t(n, i, r); -}, "addLink"), n$t = /* @__PURE__ */ x(function(t, e) { + r$t(n, i, r); +}, "addLink"), i$t = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { r === "default" ? xa.defaultInterpolate = e : xa[r].interpolate = e; }); -}, "updateLinkInterpolate"), i$t = /* @__PURE__ */ x(function(t, e) { +}, "updateLinkInterpolate"), s$t = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { var n, i, s, a, o, l, u; if (typeof r == "number" && r >= xa.length) @@ -67707,7 +67718,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"), s$t = /* @__PURE__ */ x(function(t, e) { +}, "updateLink"), a$t = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = R2.get(r); n === void 0 && (n = { id: r, styles: [], textStyles: [] }, R2.set(r, n)), e != null && e.forEach(function(i) { @@ -67718,7 +67729,7 @@ You have to call mermaid.initialize.` n.styles.push(i); }); }); -}, "addClass"), a$t = /* @__PURE__ */ x(function(t) { +}, "addClass"), o$t = /* @__PURE__ */ x(function(t) { ko = t, /.*/.exec(ko) && (ko = "LR"), /.*v/.exec(ko) && (ko = "TB"), ko === "TD" && (ko = "TB"); }, "setDirection"), xI = /* @__PURE__ */ x(function(t, e) { for (const r of t.split(",")) { @@ -67727,13 +67738,13 @@ You have to call mermaid.initialize.` const i = yI.get(r); i && i.classes.push(e); } -}, "setClass"), o$t = /* @__PURE__ */ x(function(t, e) { +}, "setClass"), l$t = /* @__PURE__ */ x(function(t, e) { if (e !== void 0) { e = pC(e); for (const r of t.split(",")) bI.set(fC === "gen-1" ? gC(r) : r, e); } -}, "setTooltip"), l$t = /* @__PURE__ */ x(function(t, e, r) { +}, "setTooltip"), c$t = /* @__PURE__ */ x(function(t, e, r) { const n = gC(t); if (be().securityLevel !== "loose" || e === void 0) return; @@ -67757,18 +67768,18 @@ You have to call mermaid.initialize.` !1 ); })); -}, "setClickFun"), c$t = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickFun"), u$t = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { const i = Cf.get(n); i !== void 0 && (i.link = sr.formatUrl(e, p1), i.linkTarget = r); }), xI(t, "clickable"); }, "setLink"), Afe = /* @__PURE__ */ x(function(t) { return bI.get(t); -}, "getTooltip"), u$t = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), h$t = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - l$t(n, e, r); + c$t(n, e, r); }), xI(t, "clickable"); -}, "setClickEvent"), h$t = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), f$t = /* @__PURE__ */ x(function(t) { dC.forEach(function(e) { e(t); }); @@ -67778,7 +67789,7 @@ You have to call mermaid.initialize.` return Cf; }, "getVertices"), Mfe = /* @__PURE__ */ x(function() { return xa; -}, "getEdges"), f$t = /* @__PURE__ */ x(function() { +}, "getEdges"), d$t = /* @__PURE__ */ x(function() { return R2; }, "getClasses"), Dfe = /* @__PURE__ */ x(function(t) { let e = et(".mermaidTooltip"); @@ -67793,13 +67804,13 @@ You have to call mermaid.initialize.` }); }, "setupToolTips"); dC.push(Dfe); -var d$t = /* @__PURE__ */ x(function(t = "gen-1") { +var p$t = /* @__PURE__ */ x(function(t = "gen-1") { Cf = /* @__PURE__ */ new Map(), R2 = /* @__PURE__ */ new Map(), xa = [], dC = [Dfe], ju = [], yI = /* @__PURE__ */ new Map(), G4 = 0, bI = /* @__PURE__ */ new Map(), YL = !0, fC = t, p1 = be(), Xi(); -}, "clear"), p$t = /* @__PURE__ */ x((t) => { +}, "clear"), g$t = /* @__PURE__ */ x((t) => { fC = t || "gen-2"; -}, "setGen"), g$t = /* @__PURE__ */ x(function() { +}, "setGen"), m$t = /* @__PURE__ */ x(function() { return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"; -}, "defaultStyle"), m$t = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultStyle"), v$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) { @@ -67825,7 +67836,7 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { labelType: r.type }; return X.info("Adding", l.id, l.nodes, l.dir), l.nodes = Bfe(l, ju).nodes, ju.push(l), yI.set(n, l), n; -}, "addSubGraph"), v$t = /* @__PURE__ */ x(function(t) { +}, "addSubGraph"), y$t = /* @__PURE__ */ x(function(t) { for (const [e, r] of ju.entries()) if (r.id === t) return e; @@ -67844,7 +67855,7 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { }; let n = 0, i = 1; for (; n < r.length; ) { - const s = v$t(r[n]); + const s = y$t(r[n]); if (s >= 0) { const a = Ife(t, s); if (a.result) @@ -67860,13 +67871,13 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { result: !1, count: i }; -}, "indexNodes2"), y$t = /* @__PURE__ */ x(function(t) { +}, "indexNodes2"), b$t = /* @__PURE__ */ x(function(t) { return Nfe[t]; -}, "getDepthFirstPos"), b$t = /* @__PURE__ */ x(function() { +}, "getDepthFirstPos"), x$t = /* @__PURE__ */ x(function() { _v = -1, ju.length > 0 && Ife("none", ju.length - 1); }, "indexNodes"), Pfe = /* @__PURE__ */ x(function() { return ju; -}, "getSubGraphs"), x$t = /* @__PURE__ */ x(() => YL ? (YL = !1, !0) : !1, "firstGraph"), w$t = /* @__PURE__ */ x((t) => { +}, "getSubGraphs"), w$t = /* @__PURE__ */ x(() => YL ? (YL = !1, !0) : !1, "firstGraph"), O$t = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; switch (e[0]) { case "<": @@ -67881,13 +67892,13 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { } let n = "normal"; return e.includes("=") && (n = "thick"), e.includes(".") && (n = "dotted"), { type: r, stroke: n }; -}, "destructStartLink"), O$t = /* @__PURE__ */ x((t, e) => { +}, "destructStartLink"), k$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"), k$t = /* @__PURE__ */ x((t) => { +}, "countChar"), S$t = /* @__PURE__ */ x((t) => { const e = t.trim(); let r = e.slice(0, -1), n = "arrow_open"; switch (e.slice(-1)) { @@ -67903,13 +67914,13 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { } let i = "normal", s = r.length - 1; r.startsWith("=") && (i = "thick"), r.startsWith("~") && (i = "invisible"); - const a = O$t(".", r); + const a = k$t(".", r); return a && (i = "dotted", s = a), { type: n, stroke: i, length: s }; -}, "destructEndLink"), S$t = /* @__PURE__ */ x((t, e) => { - const r = k$t(t); +}, "destructEndLink"), T$t = /* @__PURE__ */ x((t, e) => { + const r = S$t(t); let n; if (e) { - if (n = w$t(e), n.stroke !== r.stroke) + if (n = O$t(e), n.stroke !== r.stroke) return { type: "INVALID", stroke: "INVALID" }; if (n.type === "arrow_open") n.type = r.type; @@ -67931,12 +67942,12 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { return t.nodes.forEach((n, i) => { $fe(e, n) || r.push(t.nodes[i]); }), { nodes: r }; -}, "makeUniq"), T$t = { - firstGraph: x$t -}, C$t = /* @__PURE__ */ x((t) => { +}, "makeUniq"), C$t = { + firstGraph: w$t +}, E$t = /* @__PURE__ */ x((t) => { var e; return t.type === "square" ? "squareRect" : t.type === "round" ? "roundedRect" : (e = t.type) != null ? e : "squareRect"; -}, "getTypeFromVertex"), E$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), _$t = /* @__PURE__ */ x((t) => { +}, "getTypeFromVertex"), _$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), A$t = /* @__PURE__ */ x((t) => { let e = "none", r = "arrow_point"; switch (t) { case "arrow_point": @@ -67951,9 +67962,9 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { break; } return { arrowTypeStart: e, arrowTypeEnd: r }; -}, "destructEdgeType"), A$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "destructEdgeType"), L$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 = E$t(e, t.id); + const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = _$t(e, t.id); l ? (l.cssStyles = t.styles, l.cssCompiledStyles = yk(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ id: t.id, label: t.text, @@ -67963,7 +67974,7 @@ var d$t = /* @__PURE__ */ x(function(t = "gen-1") { cssStyles: t.styles, cssCompiledStyles: yk(["default", "node", ...t.classes]), cssClasses: "default " + t.classes.join(" "), - shape: C$t(t), + shape: E$t(t), dir: t.dir, domId: t.domId, isGroup: o, @@ -67983,7 +67994,7 @@ function yk(t) { return e; } x(yk, "getCompiledStyles"); -var L$t = /* @__PURE__ */ x(() => { +var R$t = /* @__PURE__ */ x(() => { const t = be(), e = [], r = [], n = Pfe(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); for (let l = n.length - 1; l >= 0; l--) { const u = n[l]; @@ -68008,12 +68019,12 @@ var L$t = /* @__PURE__ */ x(() => { }); } Rfe().forEach((l) => { - A$t(l, e, i, s, t, t.look || "classic"); + L$t(l, e, i, s, t, t.look || "classic"); }); const o = Mfe(); return o.forEach((l, u) => { var g, m; - const { arrowTypeStart: h, arrowTypeEnd: f } = _$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; + const { arrowTypeStart: h, arrowTypeEnd: f } = A$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { id: Lae(l.start, l.end, { counter: u, prefix: "L" }), @@ -68040,41 +68051,41 @@ var L$t = /* @__PURE__ */ x(() => { setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, - getData: L$t, + getData: R$t, setAccDescription: ys, - addVertex: e$t, + addVertex: t$t, lookUpDomId: gC, - addLink: r$t, - updateLinkInterpolate: n$t, - updateLink: i$t, - addClass: s$t, - setDirection: a$t, + addLink: n$t, + updateLinkInterpolate: i$t, + updateLink: s$t, + addClass: a$t, + setDirection: o$t, setClass: xI, - setTooltip: o$t, + setTooltip: l$t, getTooltip: Afe, - setClickEvent: u$t, - setLink: c$t, - bindFunctions: h$t, + setClickEvent: h$t, + setLink: u$t, + bindFunctions: f$t, getDirection: Lfe, getVertices: Rfe, getEdges: Mfe, - getClasses: f$t, - clear: d$t, - setGen: p$t, - defaultStyle: g$t, - addSubGraph: m$t, - getDepthFirstPos: y$t, - indexNodes: b$t, + getClasses: d$t, + clear: p$t, + setGen: g$t, + defaultStyle: m$t, + addSubGraph: v$t, + getDepthFirstPos: b$t, + indexNodes: x$t, getSubGraphs: Pfe, - destructLink: S$t, - lex: T$t, + destructLink: T$t, + lex: C$t, exists: $fe, makeUniq: Bfe, setDiagramTitle: fa, getDiagramTitle: xs -}, R$t = /* @__PURE__ */ x(function(t, e) { +}, M$t = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), M$t = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), D$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(); @@ -68085,7 +68096,7 @@ var L$t = /* @__PURE__ */ x(() => { const u = n.db.getData(); X.debug("Data: ", u); const h = xfe(e, i), f = Lfe(); - u.type = n.type, u.layoutAlgorithm = dTt(a), u.layoutAlgorithm === "dagre" && a === "elk" && X.warn( + u.type = n.type, u.layoutAlgorithm = pTt(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 Toe(u, h); const d = (g = (p = u.config.flowchart) == null ? void 0 : p.diagramPadding) != null ? g : 8; @@ -68112,9 +68123,9 @@ var L$t = /* @__PURE__ */ x(() => { return O.node(); }); } -}, "draw"), D$t = { - getClasses: R$t, - draw: M$t +}, "draw"), N$t = { + getClasses: M$t, + draw: D$t }, QL = function() { var t = /* @__PURE__ */ x(function(Jt, rt, St, Tt) { for (St = St || {}, Tt = Jt.length; Tt--; St[Jt[Tt]] = rt) @@ -68884,10 +68895,10 @@ Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : uE return x(cr, "Parser"), cr.prototype = ze, ze.Parser = cr, new cr(); }(); QL.parser = QL; -var N$t = QL, I$t = /* @__PURE__ */ x((t, e) => { +var I$t = QL, P$t = /* @__PURE__ */ x((t, e) => { const r = die, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), P$t = /* @__PURE__ */ x((t) => `.label { +}, "fade"), $$t = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -68967,7 +68978,7 @@ var N$t = QL, I$t = /* @__PURE__ */ x((t, e) => { /* For html labels only */ .labelBkg { - background-color: ${I$t(t.edgeLabelBackground, 0.5)}; + background-color: ${P$t(t.edgeLabelBackground, 0.5)}; // background-color: } @@ -69007,47 +69018,47 @@ var N$t = QL, I$t = /* @__PURE__ */ x((t, e) => { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), $$t = P$t, B$t = { - parser: N$t, +`, "getStyles"), B$t = $$t, F$t = { + parser: I$t, db: P_, - renderer: D$t, - styles: $$t, + renderer: N$t, + styles: B$t, init: /* @__PURE__ */ x((t) => { t.flowchart || (t.flowchart = {}), t.layout && AU({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, AU({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), P_.clear(), P_.setGen("gen-2"); }, "init") }; const wI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: B$t -}, Symbol.toStringTag, { value: "Module" })), F$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 z$t(t) { - return typeof t == "string" && F$t.test(t); + diagram: F$t +}, Symbol.toStringTag, { value: "Module" })), z$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 V$t(t) { + return typeof t == "string" && z$t.test(t); } const Ji = []; for (let t = 0; t < 256; ++t) Ji.push((t + 256).toString(16).slice(1)); -function V$t(t, e = 0) { +function U$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 U$t(t) { - if (!z$t(t)) +function q$t(t) { + if (!V$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 q$t(t) { +function Y$t(t) { t = unescape(encodeURIComponent(t)); const e = []; for (let r = 0; r < t.length; ++r) e.push(t.charCodeAt(r)); return e; } -const Y$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Q$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function W$t(t, e, r) { +const Q$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +function G$t(t, e, r) { function n(i, s, a, o) { var l; - if (typeof i == "string" && (i = q$t(i)), typeof s == "string" && (s = U$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) + if (typeof i == "string" && (i = Y$t(i)), typeof s == "string" && (s = q$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) { @@ -69056,15 +69067,15 @@ function W$t(t, e, r) { a[o + h] = u[h]; return a; } - return V$t(u); + return U$t(u); } try { n.name = t; } catch { } - return n.DNS = Y$t, n.URL = Q$t, n; + return n.DNS = Q$t, n.URL = W$t, n; } -function G$t(t, e, r, n) { +function H$t(t, e, r, n) { switch (t) { case 0: return e & r ^ ~e & n; @@ -69079,7 +69090,7 @@ function G$t(t, e, r, n) { function $_(t, e) { return t << e | t >>> 32 - e; } -function H$t(t) { +function X$t(t) { const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; if (typeof t == "string") { const a = unescape(encodeURIComponent(t)); @@ -69105,14 +69116,14 @@ function H$t(t) { o[p] = $_(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, 5) + G$t(g, u, h, f) + d + e[g] + o[p] >>> 0; + const g = Math.floor(p / 20), m = $_(l, 5) + H$t(g, u, h, f) + d + e[g] + o[p] >>> 0; d = f, f = h, h = $_(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 X$t = W$t("v5", 80, H$t), Z$t = X$t; +const Z$t = G$t("v5", 80, X$t), j$t = Z$t; var WL = function() { var t = /* @__PURE__ */ x(function(L, E, R, _) { for (R = R || {}, _ = L.length; _--; R[L[_]] = E) @@ -69597,22 +69608,22 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = return x(T, "Parser"), T.prototype = S, S.Parser = T, new T(); }(); WL.parser = WL; -var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { +var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$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" -}, J$t = { +}, eBt = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" }, Ffe = /* @__PURE__ */ x(function(t, e = void 0) { return xd.has(t) ? !xd.get(t).alias && e && (xd.get(t).alias = e, X.info(`Add alias '${e}' to entity '${t}'`)) : (xd.set(t, { attributes: [], alias: e }), X.info("Added new entity :", t)), xd.get(t); -}, "addEntity"), eBt = /* @__PURE__ */ x(() => xd, "getEntities"), tBt = /* @__PURE__ */ x(function(t, e) { +}, "addEntity"), tBt = /* @__PURE__ */ x(() => xd, "getEntities"), rBt = /* @__PURE__ */ x(function(t, e) { let r = Ffe(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), X.debug("Added attribute ", e[n].attributeName); -}, "addAttributes"), rBt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addAttributes"), nBt = /* @__PURE__ */ x(function(t, e, r, n) { let i = { entityA: t, roleA: e, @@ -69620,18 +69631,18 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { relSpec: n }; OI.push(i), X.debug("Added new relationship :", i); -}, "addRelationship"), nBt = /* @__PURE__ */ x(() => OI, "getRelationships"), iBt = /* @__PURE__ */ x(function() { +}, "addRelationship"), iBt = /* @__PURE__ */ x(() => OI, "getRelationships"), sBt = /* @__PURE__ */ x(function() { xd = /* @__PURE__ */ new Map(), OI = [], Xi(); -}, "clear"), sBt = { - Cardinality: K$t, - Identification: J$t, +}, "clear"), aBt = { + Cardinality: J$t, + Identification: eBt, getConfig: /* @__PURE__ */ x(() => be().er, "getConfig"), addEntity: Ffe, - addAttributes: tBt, - getEntities: eBt, - addRelationship: rBt, - getRelationships: nBt, - clear: iBt, + addAttributes: rBt, + getEntities: tBt, + addRelationship: nBt, + getRelationships: iBt, + clear: sBt, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, @@ -69649,17 +69660,17 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { ZERO_OR_MORE_END: "ZERO_OR_MORE_END", MD_PARENT_END: "MD_PARENT_END", MD_PARENT_START: "MD_PARENT_START" -}, aBt = /* @__PURE__ */ x(function(t, e) { +}, oBt = /* @__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: aBt -}, oBt = /[^\dA-Za-z](\W)*/g, wi = {}, M2 = /* @__PURE__ */ new Map(), lBt = /* @__PURE__ */ x(function(t) { + insertMarkers: oBt +}, lBt = /[^\dA-Za-z](\W)*/g, wi = {}, M2 = /* @__PURE__ */ new Map(), cBt = /* @__PURE__ */ x(function(t) { const e = Object.keys(t); for (const r of e) wi[r] = t[r]; -}, "setConf"), cBt = /* @__PURE__ */ x((t, e, r) => { +}, "setConf"), uBt = /* @__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) => { @@ -69732,7 +69743,7 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { } else b.height = Math.max(wi.minEntityHeight, g), e.attr("transform", "translate(" + b.width / 2 + "," + b.height / 2 + ")"); return b; -}, "drawAttributes"), uBt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawAttributes"), hBt = /* @__PURE__ */ x(function(t, e, r) { const n = [...e.keys()]; let i; return n.forEach(function(s) { @@ -69741,7 +69752,7 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { M2.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 } = cBt( + 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 } = uBt( o, u, e.get(s).attributes @@ -69753,7 +69764,7 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { id: a }); }), i; -}, "drawEntities"), hBt = /* @__PURE__ */ x(function(t, e) { +}, "drawEntities"), fBt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr( "transform", @@ -69762,7 +69773,7 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { }); }, "adjustEntities"), zfe = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); -}, "getEdgeName"), fBt = /* @__PURE__ */ x(function(t, e) { +}, "getEdgeName"), dBt = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { e.setEdge( M2.get(r.entityA), @@ -69771,7 +69782,7 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { zfe(r) ); }), t; -}, "addRelationships"), iW = 0, dBt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addRelationships"), iW = 0, pBt = /* @__PURE__ */ x(function(t, e, r, n, i) { iW++; const s = r.edge( M2.get(e.entityA), @@ -69838,7 +69849,7 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$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"), pBt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawRelationshipFromLayout"), gBt = /* @__PURE__ */ x(function(t, e, r, n) { wi = be().er, X.info("Drawing ER diagram"); const i = be().securityLevel; let s; @@ -69860,20 +69871,20 @@ var j$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], K$t = { }).setDefaultEdgeLabel(function() { return {}; }); - const u = uBt(o, n.db.getEntities(), l), h = fBt(n.db.getRelationships(), l); - om(l), hBt(o, l), h.forEach(function(m) { - dBt(o, m, l, u, n); + const u = hBt(o, n.db.getEntities(), l), h = dBt(n.db.getRelationships(), l); + om(l), fBt(o, l), h.forEach(function(m) { + pBt(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"), gBt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; +}, "draw"), mBt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; function Vfe(t = "", e = "") { - const r = t.replace(oBt, ""); - return `${GL(e)}${GL(r)}${Z$t( + const r = t.replace(lBt, ""); + return `${GL(e)}${GL(r)}${j$t( t, - gBt + mBt )}`; } x(Vfe, "generateId"); @@ -69881,10 +69892,10 @@ function GL(t = "") { return t.length > 0 ? `${t}-` : ""; } x(GL, "strWithHyphen"); -var mBt = { - setConf: lBt, - draw: pBt -}, vBt = /* @__PURE__ */ x((t) => ` +var vBt = { + setConf: cBt, + draw: gBt +}, yBt = /* @__PURE__ */ x((t) => ` .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -69929,15 +69940,15 @@ var mBt = { stroke-width: 1; } -`, "getStyles"), yBt = vBt, bBt = { - parser: j$t, - db: sBt, - renderer: mBt, - styles: yBt +`, "getStyles"), bBt = yBt, xBt = { + parser: K$t, + db: aBt, + renderer: vBt, + styles: bBt }; -const xBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const wBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: bBt + diagram: xBt }, Symbol.toStringTag, { value: "Module" })); function Mx(t, e) { var r, n, i; @@ -69960,7 +69971,7 @@ function Ps(t) { function kc(t) { return typeof t == "object" && t !== null && typeof t.$refText == "string"; } -function wBt(t) { +function OBt(t) { return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; } function H4(t) { @@ -70076,7 +70087,7 @@ class Ls { const r = this.iterator(); let n = "", i, s = !1; do - i = r.next(), i.done || (s && (n += e), n += OBt(i.value)), s = !0; + i = r.next(), i.done || (s && (n += e), n += kBt(i.value)), s = !0; while (!i.done); return n; } @@ -70262,13 +70273,13 @@ class Ls { }); } } -function OBt(t) { +function kBt(t) { return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); } function bk(t) { return !!t && typeof t[Symbol.iterator] == "function"; } -const kBt = new Ls(() => { +const SBt = new Ls(() => { }, () => Co), Co = Object.freeze({ done: !0, value: void 0 }); function os(...t) { if (t.length === 1) { @@ -70299,7 +70310,7 @@ function os(...t) { } } while (e.iterator || e.array || e.collIndex < t.length); return Co; - }) : kBt; + }) : SBt; } class xk extends Ls { constructor(e, r, n) { @@ -70351,7 +70362,7 @@ var HL; function XL(t) { return new xk(t, (e) => g1(e) ? e.content : [], { includeRoot: !0 }); } -function SBt(t, e) { +function TBt(t, e) { for (; t.container; ) if (t = t.container, t === e) return !0; @@ -70384,7 +70395,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 TBt(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) @@ -70392,13 +70403,13 @@ function TBt(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 TBt(t, e) > Lh.After; +function EBt(t, e) { + return CBt(t, e) > Lh.After; } -const EBt = /^[\w\p{L}]$/u; -function _Bt(t, e) { +const _Bt = /^[\w\p{L}]$/u; +function ABt(t, e) { if (t) { - const r = ABt(t, !0); + const r = LBt(t, !0); if (r && sW(r, e)) return r; if (Yfe(t)) { @@ -70414,7 +70425,7 @@ function _Bt(t, e) { function sW(t, e) { return qfe(t) && e.includes(t.tokenType.name); } -function ABt(t, e = !0) { +function LBt(t, e = !0) { for (; t.container; ) { const r = t.container; let n = r.content.indexOf(t); @@ -70435,23 +70446,23 @@ class Qfe extends Error { function mC(t) { throw new Error("Error! The input value was not handled."); } -const B_ = "AbstractRule", F_ = "AbstractType", aW = "Condition", LBt = "TypeDefinition", oW = "ValueLiteral", Wfe = "AbstractElement"; -function RBt(t) { +const B_ = "AbstractRule", F_ = "AbstractType", aW = "Condition", RBt = "TypeDefinition", oW = "ValueLiteral", Wfe = "AbstractElement"; +function MBt(t) { return Wr.isInstance(t, Wfe); } -const MBt = "ArrayLiteral", DBt = "ArrayType", Gfe = "BooleanLiteral"; -function NBt(t) { +const DBt = "ArrayLiteral", NBt = "ArrayType", Gfe = "BooleanLiteral"; +function IBt(t) { return Wr.isInstance(t, Gfe); } const Hfe = "Conjunction"; -function IBt(t) { +function PBt(t) { return Wr.isInstance(t, Hfe); } const Xfe = "Disjunction"; -function PBt(t) { +function $Bt(t) { return Wr.isInstance(t, Xfe); } -const $Bt = "Grammar", Zfe = "InferredType"; +const BBt = "Grammar", Zfe = "InferredType"; function jfe(t) { return Wr.isInstance(t, Zfe); } @@ -70460,26 +70471,26 @@ function Jfe(t) { return Wr.isInstance(t, Kfe); } const ede = "Negation"; -function BBt(t) { +function FBt(t) { return Wr.isInstance(t, ede); } -const FBt = "NumberLiteral", zBt = "Parameter", tde = "ParameterReference"; -function VBt(t) { +const zBt = "NumberLiteral", VBt = "Parameter", tde = "ParameterReference"; +function UBt(t) { return Wr.isInstance(t, tde); } const rde = "ParserRule"; function Jo(t) { return Wr.isInstance(t, rde); } -const UBt = "ReferenceType", qBt = "ReturnType"; -function YBt(t) { - return Wr.isInstance(t, qBt); +const qBt = "ReferenceType", YBt = "ReturnType"; +function QBt(t) { + return Wr.isInstance(t, YBt); } const nde = "SimpleType"; -function QBt(t) { +function WBt(t) { return Wr.isInstance(t, nde); } -const WBt = "StringLiteral", jL = "TerminalRule"; +const GBt = "StringLiteral", jL = "TerminalRule"; function tp(t) { return Wr.isInstance(t, jL); } @@ -70487,7 +70498,7 @@ const ide = "Type"; function sde(t) { return Wr.isInstance(t, ide); } -const GBt = "UnionType", ade = "Action"; +const HBt = "UnionType", ade = "Action"; function vC(t) { return Wr.isInstance(t, ade); } @@ -70500,7 +70511,7 @@ function y0(t) { return Wr.isInstance(t, cde); } const ude = "CharacterRange"; -function HBt(t) { +function XBt(t) { return Wr.isInstance(t, ude); } const hde = "CrossReference"; @@ -70508,7 +70519,7 @@ function SI(t) { return Wr.isInstance(t, hde); } const fde = "EndOfFile"; -function XBt(t) { +function ZBt(t) { return Wr.isInstance(t, fde); } const dde = "Group"; @@ -70520,11 +70531,11 @@ function b0(t) { return Wr.isInstance(t, pde); } const gde = "NegatedToken"; -function ZBt(t) { +function jBt(t) { return Wr.isInstance(t, gde); } const mde = "RegexToken"; -function jBt(t) { +function KBt(t) { return Wr.isInstance(t, mde); } const vde = "RuleCall"; @@ -70532,11 +70543,11 @@ function x0(t) { return Wr.isInstance(t, vde); } const yde = "TerminalAlternatives"; -function KBt(t) { +function JBt(t) { return Wr.isInstance(t, yde); } const bde = "TerminalGroup"; -function JBt(t) { +function eFt(t) { return Wr.isInstance(t, bde); } const xde = "TerminalRuleCall"; @@ -70548,11 +70559,11 @@ function kde(t) { return Wr.isInstance(t, Ode); } const Sde = "UntilToken"; -function eFt(t) { +function tFt(t) { return Wr.isInstance(t, Sde); } const Tde = "Wildcard"; -function tFt(t) { +function rFt(t) { return Wr.isInstance(t, Tde); } class Cde extends Ufe { @@ -70579,15 +70590,15 @@ class Cde extends Ufe { case Sde: case Tde: return this.isSubtype(Wfe, r); - case MBt: - case FBt: - case WBt: - return this.isSubtype(oW, r); case DBt: - case UBt: - case nde: + case zBt: case GBt: - return this.isSubtype(LBt, r); + return this.isSubtype(oW, r); + case NBt: + case qBt: + case nde: + case HBt: + return this.isSubtype(RBt, r); case Gfe: return this.isSubtype(aW, r) || this.isSubtype(oW, r); case Hfe: @@ -70621,10 +70632,10 @@ class Cde extends Ufe { case "RuleCall:rule": return B_; case "Grammar:usedGrammars": - return $Bt; + return BBt; case "NamedArgument:parameter": case "ParameterReference:parameter": - return zBt; + return VBt; case "TerminalRuleCall:rule": return jL; default: @@ -71006,7 +71017,7 @@ class Cde extends Ufe { } } const Wr = new Cde(); -function rFt(t) { +function nFt(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); @@ -71021,12 +71032,12 @@ function yC(t, e) { } } function zc(t) { - const r = nFt(t).$document; + const r = iFt(t).$document; if (!r) throw new Error("AST node has no document."); return r; } -function nFt(t) { +function iFt(t) { for (; t.$container; ) t = t.$container; return t; @@ -71079,7 +71090,7 @@ function KL(t, e) { 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 ? EBt(n, e) : !1; } function Ede(t) { return new Ls(() => ({ @@ -71107,7 +71118,7 @@ function Ede(t) { return Co; }); } -function iFt(t, e) { +function sFt(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] = _de(i.defaultValue)); @@ -71133,7 +71144,7 @@ function gp(t) { throw Error("Internal Error - Should never get here!"); return !0; } -function sFt() { +function aFt() { throw Error("Internal Error - Should never get here!"); } function lW(t) { @@ -71175,7 +71186,7 @@ const cW = [ nr("\u205F"), nr("\u3000"), nr("\uFEFF") -], aFt = /[0-9a-fA-F]/, kO = /[0-9]/, oFt = /[1-9]/; +], oFt = /[0-9a-fA-F]/, kO = /[0-9]/, lFt = /[1-9]/; class Ade { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; @@ -71288,7 +71299,7 @@ class Ade { loc: this.loc(e) }; } - return sFt(); + return aFt(); } quantifier(e = !1) { let r; @@ -71575,7 +71586,7 @@ class Ade { } positiveInteger() { let e = this.popChar(); - if (oFt.test(e) === !1) + if (lFt.test(e) === !1) throw Error("Expecting a positive integer"); for (; kO.test(this.peekChar(0)); ) e += this.popChar(); @@ -71717,7 +71728,7 @@ class Ade { let r = ""; for (let i = 0; i < e; i++) { const s = this.popChar(); - if (aFt.test(s) === !1) + if (oFt.test(s) === !1) throw Error("Expecting a HexDecimal digits"); r += s; } @@ -71831,8 +71842,8 @@ class bC { visitQuantifier(e) { } } -const lFt = /\r?\n/gm, cFt = new Ade(); -class uFt extends bC { +const cFt = /\r?\n/gm, uFt = new Ade(); +class hFt extends bC { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; } @@ -71872,10 +71883,10 @@ class uFt extends bC { e.type === "Group" && e.quantifier || super.visitChildren(e); } } -const V_ = new uFt(); -function hFt(t) { +const V_ = new hFt(); +function fFt(t) { try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), V_.reset(t), V_.visit(cFt.pattern(t)), V_.multiline; + return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), V_.reset(t), V_.visit(uFt.pattern(t)), V_.multiline; } catch { return !1; } @@ -71886,14 +71897,14 @@ function uW(t) { function xC(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function fFt(t) { +function dFt(t) { return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : xC(e)).join(""); } -function dFt(t, e) { - const r = pFt(t), n = e.match(r); +function pFt(t, e) { + const r = gFt(t), n = e.match(r); return !!n && n[0].length > 0; } -function pFt(t) { +function gFt(t) { typeof t == "string" && (t = new RegExp(t)); const e = t, r = t.source; let n = 0; @@ -71981,17 +71992,17 @@ function pFt(t) { } return new RegExp(i(), t.flags); } -function gFt(t) { +function mFt(t) { return t.rules.find((e) => Jo(e) && e.entry); } -function mFt(t) { +function vFt(t) { return t.rules.filter((e) => tp(e) && e.hidden); } function Lde(t, e) { - const r = /* @__PURE__ */ new Set(), n = gFt(t); + const r = /* @__PURE__ */ new Set(), n = mFt(t); if (!n) return new Set(t.rules); - const i = [n].concat(mFt(t)); + const i = [n].concat(vFt(t)); for (const a of i) Rde(a, r, e); const s = /* @__PURE__ */ new Set(); @@ -72007,7 +72018,7 @@ function Rde(t, e, r) { } }); } -function vFt(t) { +function yFt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { @@ -72015,10 +72026,10 @@ function vFt(t) { return e == null ? void 0 : e.terminal; } } -function yFt(t) { +function bFt(t) { return t.hidden && !AI(t).test(" "); } -function bFt(t, e) { +function xFt(t, e) { return !t || !e ? [] : EI(t, e, t.astNode, !0); } function Mde(t, e, r) { @@ -72036,14 +72047,14 @@ function EI(t, e, r, n) { } return g1(t) && t.astNode === r ? t.content.flatMap((i) => EI(i, e, r, !1)) : []; } -function xFt(t, e, r) { +function wFt(t, e, r) { if (!t) return; - const n = wFt(t, e, t == null ? void 0 : t.astNode); + const n = OFt(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 wFt(t, e, r) { +function OFt(t, e, r) { if (t.astNode !== r) return []; if (b0(t.grammarSource) && t.grammarSource.value === e) @@ -72059,7 +72070,7 @@ function wFt(t, e, r) { while (!i.done); return s; } -function OFt(t) { +function kFt(t) { var e; const r = t.astNode; for (; r === ((e = t.container) === null || e === void 0 ? void 0 : e.astNode); ) { @@ -72087,7 +72098,7 @@ function Nde(t, e, r) { return r.set(t, s), s; if (x0(s) && Jo(s.rule.ref)) return i(s, s.rule.ref); - if (QBt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) + if (WBt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) return i(s, s.typeRef.ref); } } @@ -72129,24 +72140,24 @@ function wC(t) { var e; if (Jo(t)) return _I(t) ? t.name : (e = Pde(t)) !== null && e !== void 0 ? e : t.name; - if (Jfe(t) || sde(t) || YBt(t)) + if (Jfe(t) || sde(t) || QBt(t)) return t.name; if (vC(t)) { - const r = kFt(t); + const r = SFt(t); if (r) return r; } else if (jfe(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } -function kFt(t) { +function SFt(t) { var e; if (t.inferredType) return t.inferredType.name; if (!((e = t.type) === null || e === void 0) && e.ref) return wC(t.type.ref); } -function SFt(t) { +function TFt(t) { var e, r, n; return tp(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : _I(t) ? t.name : (n = Pde(t)) !== null && n !== void 0 ? n : t.name; } @@ -72160,12 +72171,12 @@ function AI(t) { } const LI = /[\s\S]/.source; function lm(t, e) { - if (KBt(t)) - return TFt(t); if (JBt(t)) return CFt(t); - if (HBt(t)) - return AFt(t); + if (eFt(t)) + return EFt(t); + if (XBt(t)) + return LFt(t); if (wde(t)) { const r = t.rule.ref; if (!r) @@ -72175,11 +72186,11 @@ function lm(t, e) { lookahead: t.lookahead }); } else { - if (ZBt(t)) + if (jBt(t)) + return AFt(t); + if (tFt(t)) return _Ft(t); - if (eFt(t)) - return EFt(t); - if (jBt(t)) { + if (KBt(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")), Nu(n, { cardinality: t.cardinality, @@ -72187,7 +72198,7 @@ function lm(t, e) { wrap: !1 }); } else { - if (tFt(t)) + if (rFt(t)) return Nu(LI, { cardinality: t.cardinality, lookahead: t.lookahead @@ -72196,31 +72207,31 @@ function lm(t, e) { } } } -function TFt(t) { +function CFt(t) { return Nu(t.elements.map((e) => lm(e)).join("|"), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function CFt(t) { +function EFt(t) { return Nu(t.elements.map((e) => lm(e)).join(""), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function EFt(t) { +function _Ft(t) { return Nu(`${LI}*?${lm(t.terminal)}`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function _Ft(t) { +function AFt(t) { return Nu(`(?!${lm(t.terminal)})${LI}*?`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function AFt(t) { +function LFt(t) { return t.right ? Nu(`[${U_(t.left)}-${U_(t.right)}]`, { cardinality: t.cardinality, lookahead: t.lookahead, @@ -72238,13 +72249,13 @@ function Nu(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 LFt(t) { +function RFt(t) { const e = [], r = t.Grammar; for (const n of r.rules) - tp(n) && yFt(n) && hFt(AI(n)) && e.push(n.name); + tp(n) && bFt(n) && fFt(AI(n)) && e.push(n.name); return { multilineCommentRules: e, - nameRegexp: EBt + nameRegexp: _Bt }; } function JL(t) { @@ -72267,10 +72278,10 @@ function Fde(t) { } return n(), n(), t; } -function RFt(t) { - return MFt(t) ? t.LABEL : t.name; -} function MFt(t) { + return DFt(t) ? t.LABEL : t.name; +} +function DFt(t) { return $a(t.LABEL) && t.LABEL !== ""; } class ru { @@ -72356,7 +72367,7 @@ class wn { e.visit(this); } } -function DFt(t) { +function NFt(t) { return gt(t, X4); } function X4(t) { @@ -72418,7 +72429,7 @@ function X4(t) { const r = { type: "Terminal", name: t.terminalType.name, - label: RFt(t.terminalType), + label: MFt(t.terminalType), idx: t.idx }; $a(t.label) && (r.terminalLabel = t.label); @@ -72485,13 +72496,13 @@ class um { visitRule(e) { } } -function NFt(t) { +function IFt(t) { return t instanceof Ba || t instanceof fs || t instanceof Un || t instanceof vo || t instanceof yo || t instanceof qa || t instanceof wn || t instanceof cm; } function Sk(t, e = []) { return t instanceof fs || t instanceof Un || t instanceof qa ? !0 : t instanceof Ya ? Yhe(t.definition, (n) => Sk(n, e)) : t instanceof ua && pa(e, t) ? !1 : t instanceof ru ? (t instanceof ua && e.push(t), Tl(t.definition, (n) => Sk(n, e))) : !1; } -function IFt(t) { +function PFt(t) { return t instanceof Ya; } function uc(t) { @@ -72592,14 +72603,14 @@ function Nx(t) { if (t instanceof ua) return Nx(t.referencedRule); if (t instanceof wn) - return BFt(t); - if (NFt(t)) - return PFt(t); + return FFt(t); if (IFt(t)) return $Ft(t); + if (PFt(t)) + return BFt(t); throw Error("non exhaustive match"); } -function PFt(t) { +function $Ft(t) { let e = []; const r = t.definition; let n = 0, i = r.length > n, s, a = !0; @@ -72607,15 +72618,15 @@ function PFt(t) { s = r[n], a = Sk(s), e = e.concat(Nx(s)), n = n + 1, i = r.length > n; return oI(e); } -function $Ft(t) { +function BFt(t) { const e = gt(t.definition, (r) => Nx(r)); return oI(Qi(e)); } -function BFt(t) { +function FFt(t) { return [t.terminalType]; } const zde = "_~IN~_"; -class FFt extends OC { +class zFt extends OC { constructor(e) { super(), this.topProd = e, this.follows = {}; } @@ -72625,37 +72636,37 @@ class FFt extends OC { walkTerminal(e, r, n) { } walkProdRef(e, r, n) { - const i = VFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Ba({ definition: s }), o = Nx(a); + const i = UFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Ba({ definition: s }), o = Nx(a); this.follows[i] = o; } } -function zFt(t) { +function VFt(t) { const e = {}; return $e(t, (r) => { - const n = new FFt(r).startWalking(); + const n = new zFt(r).startWalking(); fo(e, n); }), e; } -function VFt(t, e) { +function UFt(t, e) { return t.name + e + zde; } let Z4 = {}; -const UFt = new Ade(); +const qFt = new Ade(); function kC(t) { const e = t.toString(); if (Z4.hasOwnProperty(e)) return Z4[e]; { - const r = UFt.pattern(e); + const r = qFt.pattern(e); return Z4[e] = r, r; } } -function qFt() { +function YFt() { Z4 = {}; } const Vde = "Complement Sets are not supported for first char optimization", Tk = `Unable to use "first char" lexer optimizations: `; -function YFt(t, e = !1) { +function QFt(t, e = !1) { try { const r = kC(t); return e9(r.value, {}, r.flags.ignoreCase); @@ -72743,9 +72754,9 @@ function e9(t, e, r) { } function SO(t, e, r) { const n = Ef(t); - e[n] = n, r === !0 && QFt(t, e); + e[n] = n, r === !0 && WFt(t, e); } -function QFt(t, e) { +function WFt(t, e) { const r = String.fromCharCode(t), n = r.toUpperCase(); if (n !== r) { const i = Ef(n.charCodeAt(0)); @@ -72772,7 +72783,7 @@ function t9(t) { const e = t.quantifier; return e && e.atLeast === 0 ? !0 : t.value ? Sr(t.value) ? Tl(t.value, t9) : t9(t.value) : !1; } -class WFt extends bC { +class GFt extends bC { constructor(e) { super(), this.targetCharCodes = e, this.found = !1; } @@ -72798,14 +72809,14 @@ class WFt extends bC { } function RI(t, e) { if (e instanceof RegExp) { - const r = kC(e), n = new WFt(t); + const r = kC(e), n = new GFt(t); return n.visit(r), n.found; } else return Xu(e, (r) => pa(t, r.charCodeAt(0))) !== void 0; } const w0 = "PATTERN", Av = "defaultMode", TO = "modes"; let Ude = typeof new RegExp("(?:)").sticky == "boolean"; -function GFt(t, e) { +function HFt(t, e) { e = sC(e, { useSticky: Ude, debug: !1, @@ -72817,7 +72828,7 @@ function GFt(t, e) { }); const r = e.tracer; r("initCharCodeToOptimizedIndexMap", () => { - mzt(); + vzt(); }); let n; r("Reject Lexer.NA", () => { @@ -72888,7 +72899,7 @@ function GFt(t, e) { }); let d, p, g, m; r("Misc Mapping #2", () => { - d = gt(n, qde), p = gt(s, dzt), g = gi(n, (b, w) => { + d = gt(n, qde), p = gt(s, pzt), g = gi(n, (b, w) => { const O = w.GROUP; return $a(O) && O !== Na.SKIPPED && (b[O] = []), b; }, {}), m = gt(s, (b, w) => ({ @@ -72923,7 +72934,7 @@ function GFt(t, e) { 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 = YFt(w.PATTERN, e.ensureOptimizations); + const S = QFt(w.PATTERN, e.ensureOptimizations); $r(S) && (v = !1), $e(S, (C) => { q_(b, C, m[O]); }); @@ -72942,19 +72953,19 @@ function GFt(t, e) { canBeOptimized: v }; } -function HFt(t, e) { +function XFt(t, e) { let r = []; - const n = ZFt(t); + const n = jFt(t); r = r.concat(n.errors); - const i = jFt(n.valid), s = i.valid; - return r = r.concat(i.errors), r = r.concat(XFt(s)), r = r.concat(szt(s)), r = r.concat(azt(s, e)), r = r.concat(ozt(s)), r; + const i = KFt(n.valid), s = i.valid; + return r = r.concat(i.errors), r = r.concat(ZFt(s)), r = r.concat(azt(s)), r = r.concat(ozt(s, e)), r = r.concat(lzt(s)), r; } -function XFt(t) { +function ZFt(t) { let e = []; const r = Yn(t, (n) => Zu(n[w0])); - return e = e.concat(JFt(r)), e = e.concat(rzt(r)), e = e.concat(nzt(r)), e = e.concat(izt(r)), e = e.concat(ezt(r)), e; + return e = e.concat(ezt(r)), e = e.concat(nzt(r)), e = e.concat(izt(r)), e = e.concat(szt(r)), e = e.concat(tzt(r)), e; } -function ZFt(t) { +function jFt(t) { const e = Yn(t, (i) => !yt(i, w0)), r = gt(e, (i) => ({ message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", type: qn.MISSING_PATTERN, @@ -72962,7 +72973,7 @@ function ZFt(t) { })), n = aC(t, e); return { errors: r, valid: n }; } -function jFt(t) { +function KFt(t) { const e = Yn(t, (i) => { const s = i[w0]; return !Zu(s) && !Ho(s) && !yt(s, "exec") && !$a(s); @@ -72973,8 +72984,8 @@ function jFt(t) { })), n = aC(t, e); return { errors: r, valid: n }; } -const KFt = /[^\\][$]/; -function JFt(t) { +const JFt = /[^\\][$]/; +function ezt(t) { class e extends bC { constructor() { super(...arguments), this.found = !1; @@ -72989,7 +73000,7 @@ function JFt(t) { const a = kC(s), o = new e(); return o.visit(a), o.found; } catch { - return KFt.test(s.source); + return JFt.test(s.source); } }); return gt(r, (i) => ({ @@ -73000,7 +73011,7 @@ function JFt(t) { tokenTypes: [i] })); } -function ezt(t) { +function tzt(t) { const e = Yn(t, (n) => n.PATTERN.test("")); return gt(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", @@ -73008,8 +73019,8 @@ function ezt(t) { tokenTypes: [n] })); } -const tzt = /[^\\[][\^]|^\^/; -function rzt(t) { +const rzt = /[^\\[][\^]|^\^/; +function nzt(t) { class e extends bC { constructor() { super(...arguments), this.found = !1; @@ -73024,7 +73035,7 @@ function rzt(t) { const a = kC(s), o = new e(); return o.visit(a), o.found; } catch { - return tzt.test(s.source); + return rzt.test(s.source); } }); return gt(r, (i) => ({ @@ -73035,7 +73046,7 @@ function rzt(t) { tokenTypes: [i] })); } -function nzt(t) { +function izt(t) { const e = Yn(t, (n) => { const i = n[w0]; return i instanceof RegExp && (i.multiline || i.global); @@ -73046,7 +73057,7 @@ function nzt(t) { tokenTypes: [n] })); } -function izt(t) { +function szt(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), [])); r = Ax(r); @@ -73060,7 +73071,7 @@ function izt(t) { }; }); } -function szt(t) { +function azt(t) { const e = Yn(t, (n) => { if (!yt(n, "GROUP")) return !1; @@ -73073,7 +73084,7 @@ function szt(t) { tokenTypes: [n] })); } -function azt(t, e) { +function ozt(t, e) { const r = Yn(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`, @@ -73081,14 +73092,14 @@ function azt(t, e) { tokenTypes: [i] })); } -function ozt(t) { +function lzt(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) && czt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; + return a === Na.NA || ($a(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && uzt(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 && lzt(s, n.PATTERN)) { + if (i < a && czt(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`; @@ -73101,7 +73112,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; }); }), e; } -function lzt(t, e) { +function czt(t, e) { if (Zu(e)) { const r = e.exec(t); return r !== null && r.index === 0; @@ -73115,7 +73126,7 @@ function lzt(t, e) { throw Error("non exhaustive match"); } } -function czt(t) { +function uzt(t) { return Xu([ ".", "\\", @@ -73140,7 +73151,7 @@ function pW(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } -function uzt(t, e, r) { +function hzt(t, e, r) { const n = []; return yt(t, Av) || n.push({ message: "A MultiMode Lexer cannot be initialized without a <" + Av + `> property in its definition @@ -73175,7 +73186,7 @@ function uzt(t, e, r) { }); }), n; } -function hzt(t, e, r) { +function fzt(t, e, r) { const n = []; let i = !1; const s = Ax(Qi(Kr(t.modes))), a = lC(s, (l) => l[w0] === Na.NA), o = Qde(r); @@ -73183,7 +73194,7 @@ function hzt(t, e, r) { const u = Yde(l, o); if (u !== !1) { const f = { - message: gzt(l, u), + message: mzt(l, u), type: u.issue, tokenType: l }; @@ -73199,7 +73210,7 @@ function hzt(t, e, r) { type: qn.NO_LINE_BREAKS_FLAGS }), n; } -function fzt(t) { +function dzt(t) { const e = {}, r = ki(t); return $e(r, (n) => { const i = t[n]; @@ -73221,10 +73232,10 @@ function qde(t) { return !1; throw Error("non exhaustive match"); } -function dzt(t) { +function pzt(t) { return $a(t) && t.length === 1 ? t.charCodeAt(0) : !1; } -const pzt = { +const gzt = { test: function(t) { const e = t.length; for (let r = this.lastIndex; r < e; r++) { @@ -73259,7 +73270,7 @@ function Yde(t, e) { throw Error("non exhaustive match"); } } -function gzt(t, e) { +function mzt(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 @@ -73282,7 +73293,7 @@ let j4 = []; function Ef(t) { return t < Lv ? t : j4[t]; } -function mzt() { +function vzt() { if ($r(j4)) { j4 = new Array(65536); for (let t = 0; t < 65536; t++) @@ -73299,12 +73310,12 @@ function Ck(t, e) { let gW = 1; const Wde = {}; function Px(t) { - const e = vzt(t); - yzt(e), xzt(e), bzt(e), $e(e, (r) => { + const e = yzt(t); + bzt(e), wzt(e), xzt(e), $e(e, (r) => { r.isParent = r.categoryMatches.length > 0; }); } -function vzt(t) { +function yzt(t) { let e = Di(t), r = t, n = !0; for (; n; ) { r = Ax(Qi(gt(r, (s) => s.CATEGORIES))); @@ -73313,19 +73324,19 @@ function vzt(t) { } return e; } -function yzt(t) { +function bzt(t) { $e(t, (e) => { - Hde(e) || (Wde[gW] = e, e.tokenTypeIdx = gW++), mW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), mW(e) || (e.CATEGORIES = []), wzt(e) || (e.categoryMatches = []), Ozt(e) || (e.categoryMatchesMap = {}); + Hde(e) || (Wde[gW] = e, e.tokenTypeIdx = gW++), mW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), mW(e) || (e.CATEGORIES = []), Ozt(e) || (e.categoryMatches = []), kzt(e) || (e.categoryMatchesMap = {}); }); } -function bzt(t) { +function xzt(t) { $e(t, (e) => { e.categoryMatches = [], $e(e.categoryMatchesMap, (r, n) => { e.categoryMatches.push(Wde[n].tokenTypeIdx); }); }); } -function xzt(t) { +function wzt(t) { $e(t, (e) => { Gde([], e); }); @@ -73344,16 +73355,16 @@ function Hde(t) { function mW(t) { return yt(t, "CATEGORIES"); } -function wzt(t) { +function Ozt(t) { return yt(t, "categoryMatches"); } -function Ozt(t) { +function kzt(t) { return yt(t, "categoryMatchesMap"); } -function kzt(t) { +function Szt(t) { return yt(t, "tokenTypeIdx"); } -const Szt = { +const Tzt = { buildUnableToPopLexerModeMessage(t) { return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; }, @@ -73373,7 +73384,7 @@ const Rv = { `, "\r"], ensureOptimizations: !1, safeMode: !1, - errorMessageProvider: Szt, + errorMessageProvider: Tzt, traceInitPerf: !1, skipValidations: !1, recoveryEnabled: !0 @@ -73399,7 +73410,7 @@ a boolean 2nd argument is no longer supported`); let i, s = !0; this.TRACE_INIT("Lexer Config handling", () => { if (this.config.lineTerminatorsPattern === Rv.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = pzt; + this.config.lineTerminatorsPattern = gzt; else if (this.config.lineTerminatorCharacters === Rv.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`); @@ -73410,9 +73421,9 @@ a boolean 2nd argument is no longer supported`); defaultMode: Av } : (s = !1, i = Di(e)); }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(uzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(hzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(hzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(fzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); })), i.modes = i.modes ? i.modes : {}, $e(i.modes, (o, l) => { i.modes[l] = lC(o, (u) => qr(u)); }); @@ -73420,12 +73431,12 @@ a boolean 2nd argument is no longer supported`); 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(HFt(o, a)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(XFt(o, a)); }), $r(this.lexerDefinitionErrors)) { Px(o); let u; this.TRACE_INIT("analyzeTokenTypes", () => { - u = GFt(o, { + u = HFt(o, { lineTerminatorCharacters: this.config.lineTerminatorCharacters, positionTracking: r.positionTracking, ensureOptimizations: r.ensureOptimizations, @@ -73460,7 +73471,7 @@ 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", () => { - qFt(); + YFt(); }), this.TRACE_INIT("toFastProperties", () => { Fde(this); }); @@ -73481,7 +73492,7 @@ a boolean 2nd argument is no longer supported`); 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, R = this.trackStartLines ? 1 : void 0; - const _ = fzt(this.emptyGroups), A = this.trackStartLines, $ = this.config.lineTerminatorsPattern; + const _ = dzt(this.emptyGroups), A = this.trackStartLines, $ = this.config.lineTerminatorsPattern; let k = 0, N = [], M = []; const I = [], D = []; Object.freeze(D); @@ -73654,13 +73665,13 @@ function hg(t) { function Xde(t) { return $a(t.LABEL) && t.LABEL !== ""; } -const Tzt = "parent", vW = "categories", yW = "label", bW = "group", xW = "push_mode", wW = "pop_mode", OW = "longer_alt", kW = "line_breaks", SW = "start_chars_hint"; +const Czt = "parent", vW = "categories", yW = "label", bW = "group", xW = "push_mode", wW = "pop_mode", OW = "longer_alt", kW = "line_breaks", SW = "start_chars_hint"; function Zde(t) { - return Czt(t); + return Ezt(t); } -function Czt(t) { +function Ezt(t) { const e = t.pattern, r = {}; - if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, Tzt)) + 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, vW) && (r.CATEGORIES = t[vW]), Px([r]), yt(t, yW) && (r.LABEL = t[yW]), yt(t, bW) && (r.GROUP = t[bW]), yt(t, wW) && (r.POP_MODE = t[wW]), yt(t, xW) && (r.PUSH_MODE = t[xW]), yt(t, OW) && (r.LONGER_ALT = t[OW]), yt(t, kW) && (r.LINE_BREAKS = t[kW]), yt(t, SW) && (r.START_CHARS_HINT = t[SW]), r; @@ -73715,7 +73726,7 @@ but found: '` + Bl(e).image + "'"; } }; Object.freeze(Vp); -const Ezt = { +const _zt = { buildRuleNotFoundError(t, e) { return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- inside top level rule: ->` + t.name + "<-"; @@ -73790,11 +73801,11 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`; return t.topLevelRule instanceof cm ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; } }; -function _zt(t, e) { - const r = new Azt(t, e); +function Azt(t, e) { + const r = new Lzt(t, e); return r.resolveRefs(), r.errors; } -class Azt extends um { +class Lzt extends um { constructor(e, r) { super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; } @@ -73818,7 +73829,7 @@ class Azt extends um { } } } -class Lzt extends OC { +class Rzt extends OC { constructor(e, r) { super(), this.topProd = e, this.path = r, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1; } @@ -73840,7 +73851,7 @@ class Lzt extends OC { $r(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); } } -class Rzt extends Lzt { +class Mzt extends Rzt { 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; } @@ -73863,7 +73874,7 @@ class SC extends OC { return this.walk(this.topRule), this.result; } } -class Mzt extends SC { +class Dzt extends SC { walkMany(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73881,7 +73892,7 @@ class TW extends SC { super.walkManySep(e, r, n); } } -class Dzt extends SC { +class Nzt extends SC { walkAtLeastOne(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -74118,13 +74129,13 @@ function Kde(t, e, r, n) { occurrenceStack: v }); else if (y instanceof cm) - f.push(Nzt(y, g, m, v)); + f.push(Izt(y, g, m, v)); else throw Error("non exhaustive match"); } return h; } -function Nzt(t, e, r, n) { +function Izt(t, e, r, n) { const i = Di(r); i.push(t.name); const s = Di(n); @@ -74158,15 +74169,15 @@ function EW(t) { const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = DI(n); return s === Dn.ALTERNATION ? TC(e, r, i) : CC(e, r, s, i); } -function Izt(t, e, r, n, i, s) { +function Pzt(t, e, r, n, i, s) { const a = TC(t, e, r), o = t0e(a) ? Ck : Ix; return s(a, n, o, i); } -function Pzt(t, e, r, n, i, s) { +function $zt(t, e, r, n, i, s) { const a = CC(t, e, i, r), o = t0e(a) ? Ck : Ix; return s(a[0], o, n); } -function $zt(t, e, r, n) { +function Bzt(t, e, r, n) { const i = t.length, s = Tl(t, (a) => Tl(a, (o) => o.length === 1)); if (e) return function(a) { @@ -74214,7 +74225,7 @@ function $zt(t, e, r, n) { } }; } -function Bzt(t, e, r) { +function Fzt(t, e, r) { const n = Tl(t, (s) => s.length === 1), i = t.length; if (n && !r) { const s = Qi(t); @@ -74247,7 +74258,7 @@ function Bzt(t, e, r) { return !1; }; } -class Fzt extends OC { +class zzt extends OC { constructor(e, r, n) { super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; } @@ -74321,7 +74332,7 @@ function Y_(t) { } return e; } -function zzt(t, e, r) { +function Vzt(t, e, r) { for (let n = 0; n < t.length; n++) { if (n === r) continue; @@ -74352,7 +74363,7 @@ function e0e(t, e) { const u = o[l]; for (let h = 0; h < u.length; h++) { const f = u[h].partialPath, d = u[h].suffixDef, p = Y_(f); - if (zzt(i, p, l) || $r(d) || f.length === e) { + if (Vzt(i, p, l) || $r(d) || f.length === e) { const m = n[l]; if (n9(m, f) === !1) { m.push(f); @@ -74382,7 +74393,7 @@ function TC(t, e, r, n) { function CC(t, e, r, n) { const i = new Jde(t, r); e.accept(i); - const s = i.result, o = new Fzt(e, t, r).startWalking(), l = new Ba({ definition: s }), u = new Ba({ definition: o }); + const s = i.result, o = new zzt(e, t, r).startWalking(), l = new Ba({ definition: s }), u = new Ba({ definition: o }); return e0e([l, u], n); } function n9(t, e) { @@ -74400,7 +74411,7 @@ function n9(t, e) { } return !1; } -function Vzt(t, e) { +function Uzt(t, e) { return t.length < e.length && Tl(t, (r, n) => { const i = e[n]; return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; @@ -74409,7 +74420,7 @@ function Vzt(t, e) { function t0e(t) { return Tl(t, (e) => Tl(e, (r) => Tl(r, (n) => $r(n.categoryMatches)))); } -function Uzt(t) { +function qzt(t) { const e = t.lookaheadStrategy.validate({ rules: t.rules, tokenTypes: t.tokenTypes, @@ -74417,14 +74428,14 @@ function Uzt(t) { }); return gt(e, (r) => Object.assign({ type: ha.CUSTOM_LOOKAHEAD_VALIDATION }, r)); } -function qzt(t, e, r, n) { - const i = lo(t, (l) => Yzt(l, r)), s = rVt(t, e, r), a = lo(t, (l) => Kzt(l, r)), o = lo(t, (l) => Gzt(l, t, n, r)); +function Yzt(t, e, r, n) { + const i = lo(t, (l) => Qzt(l, r)), s = nVt(t, e, r), a = lo(t, (l) => Jzt(l, r)), o = lo(t, (l) => Hzt(l, t, n, r)); return i.concat(s, a, o); } -function Yzt(t, e) { - const r = new Wzt(); +function Qzt(t, e) { + const r = new Gzt(); t.accept(r); - const n = r.allProductions, i = PMt(n, Qzt), s = Hl(i, (o) => o.length > 1); + const n = r.allProductions, i = $Mt(n, Wzt), 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, @@ -74436,13 +74447,13 @@ function Yzt(t, e) { return d && (f.parameter = d), f; }); } -function Qzt(t) { +function Wzt(t) { return `${uc(t)}_#_${t.idx}_#_${r0e(t)}`; } function r0e(t) { return t instanceof wn ? t.terminalType.name : t instanceof ua ? t.nonTerminalName : ""; } -class Wzt extends um { +class Gzt extends um { constructor() { super(...arguments), this.allProductions = []; } @@ -74471,7 +74482,7 @@ class Wzt extends um { this.allProductions.push(e); } } -function Gzt(t, e, r, n) { +function Hzt(t, e, r, n) { const i = []; if (gi(e, (a, o) => o.name === t.name ? a + 1 : a, 0) > 1) { const a = n.buildDuplicateRuleNameError({ @@ -74486,7 +74497,7 @@ function Gzt(t, e, r, n) { } return i; } -function Hzt(t, e, r) { +function Xzt(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({ @@ -74544,7 +74555,7 @@ class NI extends um { this.alternations.push(e); } } -function Xzt(t, e) { +function Zzt(t, e) { const r = new NI(); t.accept(r); const n = r.alternations; @@ -74568,16 +74579,16 @@ function Xzt(t, e) { }); }); } -function Zzt(t, e, r) { +function jzt(t, e, r) { const n = new NI(); t.accept(n); let i = n.alternations; return i = lC(i, (a) => a.ignoreAmbiguities === !0), lo(i, (a) => { - const o = a.idx, l = a.maxLookahead || e, u = TC(o, t, l, a), h = eVt(u, a, t, r), f = tVt(u, a, t, r); + const o = a.idx, l = a.maxLookahead || e, u = TC(o, t, l, a), h = tVt(u, a, t, r), f = rVt(u, a, t, r); return h.concat(f); }); } -class jzt extends um { +class Kzt extends um { constructor() { super(...arguments), this.allProductions = []; } @@ -74594,7 +74605,7 @@ class jzt extends um { this.allProductions.push(e); } } -function Kzt(t, e) { +function Jzt(t, e) { const r = new NI(); t.accept(r); const n = r.alternations; @@ -74610,10 +74621,10 @@ function Kzt(t, e) { } ] : []); } -function Jzt(t, e, r) { +function eVt(t, e, r) { const n = []; return $e(t, (i) => { - const s = new jzt(); + const s = new Kzt(); i.accept(s); const a = s.allProductions; $e(a, (o) => { @@ -74632,7 +74643,7 @@ function Jzt(t, e, r) { }); }), n; } -function eVt(t, e, r, n) { +function tVt(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) => { @@ -74658,7 +74669,7 @@ function eVt(t, e, r, n) { }; }); } -function tVt(t, e, r, n) { +function rVt(t, e, r, n) { const i = gi(t, (a, o, l) => { const u = gt(o, (h) => ({ idx: l, path: h })); return a.concat(u); @@ -74666,7 +74677,7 @@ function tVt(t, e, r, n) { return Ax(lo(i, (a) => { if (e.definition[a.idx].ignoreAmbiguities === !0) return []; - const l = a.idx, u = a.path, h = Yn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Vzt(d.path, u)); + const l = a.idx, u = a.path, h = Yn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Uzt(d.path, u)); return gt(h, (d) => { const p = [d.idx + 1, l + 1], g = e.idx === 0 ? "" : e.idx; return { @@ -74684,7 +74695,7 @@ function tVt(t, e, r, n) { }); })); } -function rVt(t, e, r) { +function nVt(t, e, r) { const n = [], i = gt(e, (s) => s.name); return $e(t, (s) => { const a = s.name; @@ -74698,18 +74709,18 @@ function rVt(t, e, r) { } }), n; } -function nVt(t) { +function iVt(t) { const e = sC(t, { - errMsgProvider: Ezt + errMsgProvider: _zt }), r = {}; return $e(t.rules, (n) => { r[n.name] = n; - }), _zt(r, e.errMsgProvider); + }), Azt(r, e.errMsgProvider); } -function iVt(t) { +function sVt(t) { return t = sC(t, { errMsgProvider: $d - }), qzt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); + }), Yzt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } const i0e = "MismatchedTokenException", s0e = "NoViableAltException", a0e = "EarlyExitException", o0e = "NotAllInputParsedException", l0e = [ i0e, @@ -74731,30 +74742,30 @@ class c0e extends EC { super(e, r), this.previousToken = n, this.name = i0e; } } -class sVt extends EC { +class aVt extends EC { constructor(e, r, n) { super(e, r), this.previousToken = n, this.name = s0e; } } -class aVt extends EC { +class oVt extends EC { constructor(e, r) { super(e, r), this.name = o0e; } } -class oVt extends EC { +class lVt extends EC { constructor(e, r, n) { super(e, r), this.previousToken = n, this.name = a0e; } } const Q_ = {}, u0e = "InRuleRecoveryException"; -class lVt extends Error { +class cVt extends Error { constructor(e) { super(e), this.name = u0e; } } -class cVt { +class uVt { initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = uVt); + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = hVt); } getTokenToInsert(e) { const r = MI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); @@ -74805,7 +74816,7 @@ class cVt { const n = this.SKIP_TOKEN(); return this.consumeToken(), n; } - throw new lVt("sad sad panda"); + throw new cVt("sad sad panda"); } canPerformInRuleRecovery(e, r) { return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); @@ -74886,7 +74897,7 @@ class cVt { return gt(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); } } -function uVt(t, e, r, n, i, s, a) { +function hVt(t, e, r, n, i, s, a) { const o = this.getKeyForAutomaticLookahead(n, i); let l = this.firstAfterRepMap[o]; if (l === void 0) { @@ -74897,7 +74908,7 @@ function uVt(t, e, r, n, i, s, a) { const f = l.isEndOfRule; this.RULE_STACK.length === 1 && f && u === void 0 && (u = _f, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const hVt = 4, Qf = 8, h0e = 1 << Qf, f0e = 2 << Qf, i9 = 3 << Qf, s9 = 4 << Qf, a9 = 5 << Qf, J4 = 6 << Qf; +const fVt = 4, Qf = 8, h0e = 1 << Qf, f0e = 2 << Qf, i9 = 3 << Qf, s9 = 4 << Qf, a9 = 5 << Qf, J4 = 6 << Qf; function W_(t, e, r) { return r | e | t; } @@ -74923,29 +74934,29 @@ class II { return lo(e, (r) => n0e(r, r, $d)); } validateEmptyOrAlternatives(e) { - return lo(e, (r) => Xzt(r, $d)); + return lo(e, (r) => Zzt(r, $d)); } validateAmbiguousAlternationAlternatives(e, r) { - return lo(e, (n) => Zzt(n, r, $d)); + return lo(e, (n) => jzt(n, r, $d)); } validateSomeNonEmptyLookaheadPath(e, r) { - return Jzt(e, r, $d); + return eVt(e, r, $d); } buildLookaheadForAlternation(e) { - return Izt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, $zt); + return Pzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, Bzt); } buildLookaheadForOptional(e) { - return Pzt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, DI(e.prodType), Bzt); + return $zt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, DI(e.prodType), Fzt); } } -class fVt { +class dVt { 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 II({ 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 } = pVt(r); + const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = gVt(r); $e(n, (u) => { const h = u.idx === 0 ? "" : u.idx; this.TRACE_INIT(`${uc(u)}${h}`, () => { @@ -74995,7 +75006,7 @@ class fVt { this.lookAheadFuncsCache.set(e, r); } } -class dVt extends um { +class pVt extends um { constructor() { super(...arguments), this.dslMethods = { option: [], @@ -75035,8 +75046,8 @@ class dVt extends um { this.dslMethods.alternation.push(e); } } -const CO = new dVt(); -function pVt(t) { +const CO = new pVt(); +function gVt(t) { CO.reset(), t.accept(CO); const e = CO.dslMethods; return CO.reset(), e; @@ -75047,22 +75058,22 @@ function AW(t, e) { function LW(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 gVt(t, e, r) { +function mVt(t, e, r) { t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); } -function mVt(t, e, r) { +function vVt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } -const vVt = "name"; +const yVt = "name"; function d0e(t, e) { - Object.defineProperty(t, vVt, { + Object.defineProperty(t, yVt, { enumerable: !1, configurable: !0, writable: !1, value: e }); } -function yVt(t, e) { +function bVt(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; @@ -75072,7 +75083,7 @@ function yVt(t, e) { } } } -function bVt(t, e) { +function xVt(t, e) { const r = function() { }; d0e(r, t + "BaseSemantics"); @@ -75082,7 +75093,7 @@ function bVt(t, e) { return this[i.name](i.children, s); }, validateVisitor: function() { - const i = wVt(this, e); + const i = OVt(this, e); if (!$r(i)) { const s = gt(i, (a) => a.msg); throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: @@ -75095,23 +75106,23 @@ function bVt(t, e) { }; return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; } -function xVt(t, e, r) { +function wVt(t, e, r) { const n = function() { }; d0e(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return $e(e, (s) => { - i[s] = yVt; + i[s] = bVt; }), n.prototype = i, n.prototype.constructor = n, n; } var o9; (function(t) { t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; })(o9 || (o9 = {})); -function wVt(t, e) { - return OVt(t, e); -} function OVt(t, e) { + return kVt(t, e); +} +function kVt(t, e) { const r = Yn(e, (i) => Ho(t[i]) === !1), n = gt(r, (i) => ({ msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, type: o9.MISSING_METHOD, @@ -75119,7 +75130,7 @@ function OVt(t, e) { })); return Ax(n); } -class kVt { +class SVt { 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; @@ -75185,22 +75196,22 @@ class kVt { } cstPostTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - gVt(n, r, e), this.setNodeLocationFromToken(n.location, r); + mVt(n, r, e), this.setNodeLocationFromToken(n.location, r); } cstPostNonTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - mVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); + vVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); } getBaseCstVisitorConstructor() { if (qr(this.baseCstVisitorConstructor)) { - const e = bVt(this.className, ki(this.gastProductionsCache)); + const e = xVt(this.className, ki(this.gastProductionsCache)); return this.baseCstVisitorConstructor = e, e; } return this.baseCstVisitorConstructor; } getBaseCstVisitorConstructorWithDefaults() { if (qr(this.baseCstVisitorWithDefaultsConstructor)) { - const e = xVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + const e = wVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); return this.baseCstVisitorWithDefaultsConstructor = e, e; } return this.baseCstVisitorWithDefaultsConstructor; @@ -75218,7 +75229,7 @@ class kVt { return e[e.length - 1]; } } -class SVt { +class TVt { initLexerAdapter() { this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1; } @@ -75256,7 +75267,7 @@ class SVt { return this.exportLexerState(); } } -class TVt { +class CVt { ACTION(e) { return e.call(this); } @@ -75535,7 +75546,7 @@ class TVt { return this[e] = i, i; } OVERRIDE_RULE(e, r, n = Lk) { - const i = Hzt(e, this.definedRulesNames, this.className); + const i = Xzt(e, this.definedRulesNames, this.className); this.definitionErrors = this.definitionErrors.concat(i); const s = this.defineRule(e, r, n); return this[e] = s, s; @@ -75559,10 +75570,10 @@ class TVt { return this.gastProductionsCache; } getSerializedGastProductions() { - return DFt(Kr(this.gastProductionsCache)); + return NFt(Kr(this.gastProductionsCache)); } } -class CVt { +class EVt { initRecognizerEngine(e, r) { if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = Ck, 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. @@ -75580,7 +75591,7 @@ class CVt { } if (Sr(e)) this.tokensMap = gi(e, (s, a) => (s[a.name] = a, s), {}); - else if (yt(e, "modes") && Tl(Qi(Kr(e.modes)), kzt)) { + else if (yt(e, "modes") && Tl(Qi(Kr(e.modes)), Szt)) { const s = Qi(Kr(e.modes)), a = oI(s); this.tokensMap = gi(a, (o, l) => (o[l.name] = l, o), {}); } else if (Pa(e)) @@ -75595,7 +75606,7 @@ class CVt { 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 : Lk.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : Lk.recoveryValueFunc, a = this.ruleShortNameIdx << hVt + Qf; + const i = yt(n, "resyncEnabled") ? n.resyncEnabled : Lk.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : Lk.recoveryValueFunc, a = this.ruleShortNameIdx << fVt + Qf; this.ruleShortNameIdx++, this.shortRuleNameToFull[a] = e, this.fullRuleNameToShort[e] = a; let o; return this.outputCst === !0 ? o = function(...h) { @@ -75684,7 +75695,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, s9, e, Dzt); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, s9, e, Nzt); } atLeastOneSepFirstInternal(e, r) { const n = this.getKeyForAutomaticLookahead(J4, e); @@ -75731,7 +75742,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis i, i9, e, - Mzt, + Dzt, a ); } @@ -75782,7 +75793,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis firstRedundant: e, ruleName: this.getCurrRuleFullName() }); - this.SAVE_ERROR(new aVt(r, e)); + this.SAVE_ERROR(new oVt(r, e)); } } subruleInternal(e, r, n) { @@ -75860,7 +75871,7 @@ 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 EVt { +class _Vt { initErrorHandler(e) { this._errors = [], this.errorMessageProvider = yt(e, "errorMessageProvider") ? e.errorMessageProvider : Ku.errorMessageProvider; } @@ -75889,7 +75900,7 @@ class EVt { customUserDescription: n, ruleName: i }); - throw this.SAVE_ERROR(new oVt(u, this.LA(1), this.LA(0))); + throw this.SAVE_ERROR(new lVt(u, this.LA(1), this.LA(0))); } raiseNoAltException(e, r) { const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = TC(e, i, this.maxLookahead), a = []; @@ -75902,10 +75913,10 @@ class EVt { customUserDescription: r, ruleName: this.getCurrRuleFullName() }); - throw this.SAVE_ERROR(new sVt(l, this.LA(1), o)); + throw this.SAVE_ERROR(new aVt(l, this.LA(1), o)); } } -class _Vt { +class AVt { initContentAssist() { } computeContentAssist(e, r) { @@ -75916,7 +75927,7 @@ class _Vt { } getNextPossibleTokenTypes(e) { const r = Bl(e.ruleStack), i = this.getGAstProductions()[r]; - return new Rzt(i, e).startWalking(); + return new Mzt(i, e).startWalking(); } } const _C = { @@ -75937,12 +75948,12 @@ const g0e = MI( -1 ); Object.freeze(g0e); -const AVt = { +const LVt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} }; -class LVt { +class RVt { initGastRecorder(e) { this.recordingProdStack = [], this.RECORDING_PHASE = !1; } @@ -76033,7 +76044,7 @@ class LVt { nv.call(this, qa, r, e, RW); } orInternalRecord(e, r) { - return RVt.call(this, e, r); + return MVt.call(this, e, r); } subruleInternalRecord(e, r, n) { if (_k(r), !e || yt(e, "ruleName") === !1) { @@ -76047,7 +76058,7 @@ class LVt { label: n == null ? void 0 : n.LABEL, referencedRule: void 0 }); - return i.definition.push(a), this.outputCst ? AVt : _C; + return i.definition.push(a), this.outputCst ? LVt : _C; } consumeInternalRecord(e, r, n) { if (_k(r), !Hde(e)) { @@ -76068,7 +76079,7 @@ function nv(t, e, r, n = !1) { const i = Bc(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(), _C; } -function RVt(t, e) { +function MVt(t, e) { _k(e); const r = Bc(this.recordingProdStack), n = Sr(t) === !1, i = n === !1 ? t : t.DEF, s = new Ya({ definition: [], @@ -76094,7 +76105,7 @@ function _k(t) { throw e.KNOWN_RECORDER_ERROR = !0, e; } } -class MVt { +class DVt { initPerformanceTracer(e) { if (yt(e, "traceInitPerf")) { const r = e.traceInitPerf, n = typeof r == "number"; @@ -76114,7 +76125,7 @@ class MVt { return r(); } } -function DVt(t, e) { +function NVt(t, e) { e.forEach((r) => { const n = r.prototype; Object.getOwnPropertyNames(n).forEach((i) => { @@ -76176,17 +76187,17 @@ class $x { }); let n = []; if (this.TRACE_INIT("Grammar Resolving", () => { - n = nVt({ + n = iVt({ rules: Kr(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(n); }), this.TRACE_INIT("Grammar Validations", () => { if ($r(n) && this.skipValidations === !1) { - const i = iVt({ + const i = sVt({ rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), errMsgProvider: $d, grammarName: r - }), s = Uzt({ + }), s = qzt({ lookaheadStrategy: this.lookaheadStrategy, rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), @@ -76195,7 +76206,7 @@ class $x { this.definitionErrors = this.definitionErrors.concat(i, s); } }), $r(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = zFt(Kr(this.gastProductionsCache)); + const i = VFt(Kr(this.gastProductionsCache)); this.resyncFollows = i; }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { var i, s; @@ -76221,19 +76232,19 @@ class $x { } } $x.DEFER_DEFINITION_ERRORS_HANDLING = !1; -DVt($x, [ - cVt, - fVt, - kVt, +NVt($x, [ + uVt, + dVt, SVt, - CVt, TVt, EVt, + CVt, _Vt, - LVt, - MVt + AVt, + RVt, + DVt ]); -class NVt extends $x { +class IVt extends $x { constructor(e, r = Ku) { const n = Di(r); n.outputCst = !1, super(e, n); @@ -76242,7 +76253,7 @@ class NVt extends $x { function m1(t, e, r) { return `${t.name}_${e}_${r}`; } -const Af = 1, IVt = 2, m0e = 4, v0e = 5, Bx = 7, PVt = 8, $Vt = 9, BVt = 10, FVt = 11, y0e = 12; +const Af = 1, PVt = 2, m0e = 4, v0e = 5, Bx = 7, $Vt = 8, BVt = 9, FVt = 10, zVt = 11, y0e = 12; class PI { constructor(e) { this.target = e; @@ -76272,7 +76283,7 @@ class BI extends PI { return !0; } } -function zVt(t) { +function VVt(t) { const e = { decisionMap: {}, decisionStates: [], @@ -76280,19 +76291,19 @@ function zVt(t) { ruleToStopState: /* @__PURE__ */ new Map(), states: [] }; - VVt(e, t); + UVt(e, t); const r = t.length; for (let n = 0; n < r; n++) { const i = t[n], s = rp(e, i, i); - s !== void 0 && KVt(e, i, s); + s !== void 0 && JVt(e, i, s); } return e; } -function VVt(t, e) { +function UVt(t, e) { const r = e.length; for (let n = 0; n < r; n++) { const i = e[n], s = Wi(t, i, void 0, { - type: IVt + type: PVt }), a = Wi(t, i, void 0, { type: Bx }); @@ -76300,9 +76311,9 @@ function VVt(t, e) { } } function x0e(t, e, r) { - return r instanceof wn ? FI(t, e, r.terminalType, r) : r instanceof ua ? jVt(t, e, r) : r instanceof Ya ? WVt(t, e, r) : r instanceof fs ? GVt(t, e, r) : r instanceof Un ? UVt(t, e, r) : r instanceof qa ? qVt(t, e, r) : r instanceof vo ? YVt(t, e, r) : r instanceof yo ? QVt(t, e, r) : rp(t, e, r); + return r instanceof wn ? FI(t, e, r.terminalType, r) : r instanceof ua ? KVt(t, e, r) : r instanceof Ya ? GVt(t, e, r) : r instanceof fs ? HVt(t, e, r) : r instanceof Un ? qVt(t, e, r) : r instanceof qa ? YVt(t, e, r) : r instanceof vo ? QVt(t, e, r) : r instanceof yo ? WVt(t, e, r) : rp(t, e, r); } -function UVt(t, e, r) { +function qVt(t, e, r) { const n = Wi(t, e, r, { type: v0e }); @@ -76310,7 +76321,7 @@ function UVt(t, e, r) { const i = hm(t, e, n, r, rp(t, e, r)); return O0e(t, e, r, i); } -function qVt(t, e, r) { +function YVt(t, e, r) { const n = Wi(t, e, r, { type: v0e }); @@ -76318,7 +76329,7 @@ function qVt(t, e, r) { const i = hm(t, e, n, r, rp(t, e, r)), s = FI(t, e, r.separator, r); return O0e(t, e, r, i, s); } -function YVt(t, e, r) { +function QVt(t, e, r) { const n = Wi(t, e, r, { type: m0e }); @@ -76326,7 +76337,7 @@ function YVt(t, e, r) { const i = hm(t, e, n, r, rp(t, e, r)); return w0e(t, e, r, i); } -function QVt(t, e, r) { +function WVt(t, e, r) { const n = Wi(t, e, r, { type: m0e }); @@ -76334,7 +76345,7 @@ function QVt(t, e, r) { const i = hm(t, e, n, r, rp(t, e, r)), s = FI(t, e, r.separator, r); return w0e(t, e, r, i, s); } -function WVt(t, e, r) { +function GVt(t, e, r) { const n = Wi(t, e, r, { type: Af }); @@ -76342,21 +76353,21 @@ function WVt(t, e, r) { const i = gt(r.definition, (a) => x0e(t, e, a)); return hm(t, e, n, r, ...i); } -function GVt(t, e, r) { +function HVt(t, e, r) { const n = Wi(t, e, r, { type: Af }); Wf(t, n); const i = hm(t, e, n, r, rp(t, e, r)); - return HVt(t, e, r, i); + return XVt(t, e, r, i); } function rp(t, e, r) { const n = Yn(gt(r.definition, (i) => x0e(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : ZVt(t, n); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : jVt(t, n); } function w0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: FVt + type: zVt }); Wf(t, o); const l = Wi(t, e, r, { @@ -76369,20 +76380,20 @@ function w0e(t, e, r, n, i) { } function O0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: BVt + type: FVt }); Wf(t, o); const l = Wi(t, e, r, { type: y0e }), u = Wi(t, e, r, { - type: $Vt + type: BVt }); 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[m1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { left: o, right: l }; } -function HVt(t, e, r, n) { +function XVt(t, e, r, n) { const i = n.left, s = n.right; return oi(i, s), t.decisionMap[m1(e, "Option", r.idx)] = i, n; } @@ -76391,7 +76402,7 @@ function Wf(t, e) { } function hm(t, e, r, n, ...i) { const s = Wi(t, e, n, { - type: PVt, + type: $Vt, start: r }); r.end = s; @@ -76401,9 +76412,9 @@ function hm(t, e, r, n, ...i) { left: r, right: s }; - return t.decisionMap[m1(e, XVt(n), n.idx)] = r, a; + return t.decisionMap[m1(e, ZVt(n), n.idx)] = r, a; } -function XVt(t) { +function ZVt(t) { if (t instanceof Ya) return "Alternation"; if (t instanceof fs) @@ -76418,14 +76429,14 @@ function XVt(t) { return "RepetitionMandatoryWithSeparator"; throw new Error("Invalid production type encountered"); } -function ZVt(t, e) { +function jVt(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 BI, u = o, h = e[s + 1].left; - a.left.type === Af && a.right.type === Af && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, JVt(t, a.right)) : oi(a.right, h); + a.left.type === Af && a.right.type === Af && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, eUt(t, a.right)) : oi(a.right, h); } const n = e[0], i = e[r - 1]; return { @@ -76444,7 +76455,7 @@ function FI(t, e, r, n) { right: s }; } -function jVt(t, e, r) { +function KVt(t, e, r) { const n = r.referencedRule, i = t.ruleToStartState.get(n), s = Wi(t, e, r, { type: Af }), a = Wi(t, e, r, { @@ -76455,7 +76466,7 @@ function jVt(t, e, r) { right: a }; } -function KVt(t, e, r) { +function JVt(t, e, r) { const n = t.ruleToStartState.get(e); oi(n, r.left); const i = t.ruleToStopState.get(e); @@ -76483,7 +76494,7 @@ function Wi(t, e, r, n) { function zI(t, e) { t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); } -function JVt(t, e) { +function eUt(t, e) { t.states.splice(t.states.indexOf(e), 1); } const Rk = {}; @@ -76517,7 +76528,7 @@ class l9 { function k0e(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } -function eUt(t, e) { +function tUt(t, e) { const r = {}; return (n) => { const i = n.toString(); @@ -76548,13 +76559,13 @@ class S0e { } } const IW = new S0e(); -class tUt extends II { +class rUt extends II { 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 = zVt(e.rules), this.dfas = rUt(this.atn); + this.atn = VVt(e.rules), this.dfas = nUt(this.atn); } validateAmbiguousAlternationAlternatives() { return []; @@ -76653,53 +76664,53 @@ function PW(t, e = !0) { } return !0; } -function rUt(t) { +function nUt(t) { const e = t.decisionStates.length, r = Array(e); for (let n = 0; n < e; n++) - r[n] = eUt(t.decisionStates[n], n); + r[n] = tUt(t.decisionStates[n], n); return r; } function G_(t, e, r, n) { const i = t[e](r); let s = i.start; if (s === void 0) { - const o = dUt(i.atnStartState); + const o = pUt(i.atnStartState); s = C0e(i, T0e(o)), i.start = s; } - return nUt.apply(this, [i, s, r, n]); + return iUt.apply(this, [i, s, r, n]); } -function nUt(t, e, r, n) { +function iUt(t, e, r, n) { let i = e, s = 1; const a = []; let o = this.LA(s++); for (; ; ) { - let l = cUt(i, o); - if (l === void 0 && (l = iUt.apply(this, [t, i, o, s, r, n])), l === Rk) - return lUt(a, i, o); + let l = uUt(i, o); + if (l === void 0 && (l = sUt.apply(this, [t, i, o, s, r, n])), l === Rk) + return cUt(a, i, o); if (l.isAcceptState === !0) return l.prediction; i = l, a.push(o), o = this.LA(s++); } } -function iUt(t, e, r, n, i, s) { - const a = uUt(e.configs, r, i); +function sUt(t, e, r, n, i, s) { + const a = hUt(e.configs, r, i); if (a.size === 0) return $W(t, e, r, Rk), Rk; let o = T0e(a); - const l = fUt(a, i); + const l = dUt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (vUt(a)) { + else if (yUt(a)) { const u = f1(a.alts); - o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, sUt.apply(this, [t, n, a.alts, s]); + o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, aUt.apply(this, [t, n, a.alts, s]); } return o = $W(t, e, r, o), o; } -function sUt(t, e, r, n) { +function aUt(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 = aUt({ + const s = t.atnStartState, a = s.rule, o = s.production, l = oUt({ topLevelRule: a, ambiguityIndices: r, production: o, @@ -76707,15 +76718,15 @@ function sUt(t, e, r, n) { }); n(l); } -function aUt(t) { +function oUt(t) { const e = gt(t.prefixPath, (i) => hg(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${oUt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${lUt(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 oUt(t) { +function lUt(t) { if (t instanceof ua) return "SUBRULE"; if (t instanceof fs) @@ -76734,18 +76745,18 @@ function oUt(t) { return "CONSUME"; throw Error("non exhaustive match"); } -function lUt(t, e, r) { - const n = lo(e.configs.elements, (s) => s.state.transitions), i = vDt(n.filter((s) => s instanceof $I).map((s) => s.tokenType), (s) => s.tokenTypeIdx); +function cUt(t, e, r) { + const n = lo(e.configs.elements, (s) => s.state.transitions), i = yDt(n.filter((s) => s instanceof $I).map((s) => s.tokenType), (s) => s.tokenTypeIdx); return { actualToken: r, possibleTokenTypes: i, tokenPath: t }; } -function cUt(t, e) { +function uUt(t, e) { return t.edges[e.tokenTypeIdx]; } -function uUt(t, e, r) { +function hUt(t, e, r) { const n = new l9(), i = []; for (const a of t.elements) { if (r.is(a.alt) === !1) @@ -76756,7 +76767,7 @@ function uUt(t, e, r) { } const o = a.state.transitions.length; for (let l = 0; l < o; l++) { - const u = a.state.transitions[l], h = hUt(u, e); + const u = a.state.transitions[l], h = fUt(u, e); h !== void 0 && n.add({ state: h, alt: a.alt, @@ -76770,16 +76781,16 @@ function uUt(t, e, r) { for (const a of n.elements) Mk(a, s); } - if (i.length > 0 && !gUt(s)) + if (i.length > 0 && !mUt(s)) for (const a of i) s.add(a); return s; } -function hUt(t, e) { +function fUt(t, e) { if (t instanceof $I && jde(e, t.tokenType)) return t.target; } -function fUt(t, e) { +function dUt(t, e) { let r; for (const n of t.elements) if (e.is(n.alt) === !0) { @@ -76807,7 +76818,7 @@ function C0e(t, e) { const r = e.configs.key, n = t.states[r]; return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); } -function dUt(t) { +function pUt(t) { const e = new l9(), r = t.transitions.length; for (let n = 0; n < r; n++) { const s = { @@ -76836,11 +76847,11 @@ function Mk(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 = pUt(t, s); + const s = r.transitions[i], a = gUt(t, s); a !== void 0 && Mk(a, e); } } -function pUt(t, e) { +function gUt(t, e) { if (e instanceof b0e) return { state: e.target, @@ -76856,25 +76867,25 @@ function pUt(t, e) { }; } } -function gUt(t) { +function mUt(t) { for (const e of t.elements) if (e.state.type === Bx) return !0; return !1; } -function mUt(t) { +function vUt(t) { for (const e of t.elements) if (e.state.type !== Bx) return !1; return !0; } -function vUt(t) { - if (mUt(t)) +function yUt(t) { + if (vUt(t)) return !0; - const e = yUt(t.elements); - return bUt(e) && !xUt(e); + const e = bUt(t.elements); + return xUt(e) && !wUt(e); } -function yUt(t) { +function bUt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { const n = k0e(r, !1); @@ -76883,13 +76894,13 @@ function yUt(t) { } return e; } -function bUt(t) { +function xUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length > 1) return !0; return !1; } -function xUt(t) { +function wUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length === 1) return !0; @@ -77671,7 +77682,7 @@ var $G; var BG; (function(t) { function e(s, a, o, l) { - return new wUt(s, a, o, l); + return new OUt(s, a, o, l); } t.create = e; function r(s) { @@ -77710,7 +77721,7 @@ var BG; return s; } })(BG || (BG = {})); -class wUt { +class OUt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; } @@ -77820,7 +77831,7 @@ var Fe; } t.typedArray = d; })(Fe || (Fe = {})); -class OUt { +class kUt { constructor() { this.nodeStack = []; } @@ -78004,7 +78015,7 @@ class L0e { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; - this.wrapper = new EUt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); + this.wrapper = new _Ut(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); } alternatives(e, r) { this.wrapper.wrapOr(e, r); @@ -78031,12 +78042,12 @@ class L0e { this.wrapper.wrapSelfAnalysis(); } } -class kUt extends L0e { +class SUt extends L0e { get current() { return this.stack[this.stack.length - 1]; } constructor(e) { - super(e), this.nodeBuilder = new OUt(), 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 kUt(), 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 : _I(e) ? k9 : wC(e), i = this.wrapper.DEFINE_RULE(A0e(e.name), this.startImplementation(n, r).bind(this)); @@ -78122,7 +78133,7 @@ class kUt extends L0e { if (this.isRecording()) return; const r = this.current; - return rFt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), H_(r) ? this.converter.convert(r.value, r.$cstNode) : (iFt(this.astReflection, r), r); + return nFt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), H_(r) ? this.converter.convert(r.value, r.$cstNode) : (sFt(this.astReflection, r), r); } getAssignment(e) { if (!this.assignmentMap.has(e)) { @@ -78161,7 +78172,7 @@ class kUt extends L0e { return this.wrapper.definitionErrors; } } -class SUt { +class TUt { buildMismatchTokenMessage(e) { return Vp.buildMismatchTokenMessage(e); } @@ -78175,7 +78186,7 @@ class SUt { return Vp.buildEarlyExitMessage(e); } } -class R0e extends SUt { +class R0e extends TUt { 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}\`.`; } @@ -78183,7 +78194,7 @@ class R0e extends SUt { return `Expecting end of file but found \`${e.image}\`.`; } } -class TUt extends L0e { +class CUt extends L0e { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -78246,16 +78257,16 @@ class TUt extends L0e { return this.wrapper.currIdx; } } -const CUt = { +const EUt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, errorMessageProvider: new R0e() }; -class EUt extends NVt { +class _Ut extends IVt { constructor(e, r) { const n = r && "maxLookahead" in r; - super(e, Object.assign(Object.assign(Object.assign({}, CUt), { lookaheadStrategy: n ? new II({ maxLookahead: r.maxLookahead }) : new tUt() }), r)); + super(e, Object.assign(Object.assign(Object.assign({}, EUt), { lookaheadStrategy: n ? new II({ maxLookahead: r.maxLookahead }) : new rUt() }), r)); } get IS_RECORDING() { return this.RECORDING_PHASE; @@ -78288,14 +78299,14 @@ class EUt extends NVt { } } function M0e(t, e, r) { - return _Ut({ + return AUt({ parser: e, tokens: r, rules: /* @__PURE__ */ new Map(), ruleNames: /* @__PURE__ */ new Map() }, t), e; } -function _Ut(t, e) { +function AUt(t, e) { const r = Lde(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 }); @@ -78305,36 +78316,36 @@ function _Ut(t, e) { function O0(t, e, r = !1) { let n; if (b0(e)) - n = IUt(t, e); + n = PUt(t, e); else if (vC(e)) - n = AUt(t, e); + n = LUt(t, e); else if (y0(e)) n = O0(t, e.terminal); else if (SI(e)) n = D0e(t, e); else if (x0(e)) - n = LUt(t, e); + n = RUt(t, e); else if (lde(e)) - n = MUt(t, e); - else if (kde(e)) n = DUt(t, e); - else if (TI(e)) + else if (kde(e)) n = NUt(t, e); - else if (XBt(e)) { + else if (TI(e)) + n = IUt(t, e); + else if (ZBt(e)) { const i = t.consume++; n = () => t.parser.consume(i, _f, e); } else throw new Qfe(e.$cstNode, `Unexpected element type: ${e.$type}`); return N0e(t, r ? void 0 : Bk(e), n, e.cardinality); } -function AUt(t, e) { +function LUt(t, e) { const r = wC(e); return () => t.parser.action(r, e); } -function LUt(t, e) { +function RUt(t, e) { const r = e.rule.ref; if (Jo(r)) { - const n = t.subrule++, i = e.arguments.length > 0 ? RUt(r, e.arguments) : () => ({}); + const n = t.subrule++, i = e.arguments.length > 0 ? MUt(r, e.arguments) : () => ({}); return (s) => t.parser.subrule(n, I0e(t, r), e, i(s)); } else if (tp(r)) { const n = t.consume++, i = S9(t, r.name); @@ -78344,7 +78355,7 @@ function LUt(t, e) { else throw new Qfe(e.$cstNode, `Undefined rule type: ${e.$type}`); } -function RUt(t, e) { +function MUt(t, e) { const r = e.map((n) => vu(n.value)); return (n) => { const i = {}; @@ -78356,25 +78367,25 @@ function RUt(t, e) { }; } function vu(t) { - if (PBt(t)) { + if ($Bt(t)) { const e = vu(t.left), r = vu(t.right); return (n) => e(n) || r(n); - } else if (IBt(t)) { + } else if (PBt(t)) { const e = vu(t.left), r = vu(t.right); return (n) => e(n) && r(n); - } else if (BBt(t)) { + } else if (FBt(t)) { const e = vu(t.value); return (r) => !e(r); - } else if (VBt(t)) { + } else if (UBt(t)) { const e = t.parameter.ref.name; return (r) => r !== void 0 && r[e] === !0; - } else if (NBt(t)) { + } else if (IBt(t)) { const e = Boolean(t.true); return () => e; } mC(); } -function MUt(t, e) { +function DUt(t, e) { if (e.elements.length === 1) return O0(t, e.elements[0]); { @@ -78394,7 +78405,7 @@ function MUt(t, e) { })); } } -function DUt(t, e) { +function NUt(t, e) { if (e.elements.length === 1) return O0(t, e.elements[0]); const r = []; @@ -78427,7 +78438,7 @@ function DUt(t, e) { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; } -function NUt(t, e) { +function IUt(t, e) { const r = e.elements.map((n) => O0(t, n)); return (n) => r.forEach((i) => i(n)); } @@ -78457,7 +78468,7 @@ function D0e(t, e, r = e.terminal) { return D0e(t, e, i); } } -function IUt(t, e) { +function PUt(t, e) { const r = t.consume++, n = t.tokens[e.value]; if (!n) throw new Error("Could not find token for keyword: " + e.value); @@ -78516,12 +78527,12 @@ function N0e(t, e, r, n) { mC(); } function I0e(t, e) { - const r = PUt(t, e), n = t.rules.get(r); + const r = $Ut(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); return n; } -function PUt(t, e) { +function $Ut(t, e) { if (Jo(e)) return e.name; if (t.ruleNames.has(e)) @@ -78539,16 +78550,16 @@ function S9(t, e) { throw new Error(`Token "${e}" not found."`); return r; } -function $Ut(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new TUt(t); +function BUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new CUt(t); return M0e(e, n, r.definition), n.finalize(), n; } -function BUt(t) { - const e = FUt(t); +function FUt(t) { + const e = zUt(t); return e.finalize(), e; } -function FUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new kUt(t); +function zUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new SUt(t); return M0e(e, n, r.definition); } class P0e { @@ -78588,19 +78599,19 @@ class P0e { }; } buildKeywordPattern(e, r) { - return r ? new RegExp(fFt(e.value)) : e.value; + return r ? new RegExp(dFt(e.value)) : e.value; } findLongerAlt(e, r) { return r.reduce((n, i) => { const s = i == null ? void 0 : i.PATTERN; - return (s == null ? void 0 : s.source) && dFt("^" + s.source + "$", e.value) && n.push(i), n; + return (s == null ? void 0 : s.source) && pFt("^" + s.source + "$", e.value) && n.push(i), n; }, []); } } class $0e { convert(e, r) { let n = r.grammarSource; - if (SI(n) && (n = vFt(n)), x0(n)) { + if (SI(n) && (n = yFt(n)), x0(n)) { const i = n.rule.ref; if (!i) throw new Error("This cst node was not parsed by a rule."); @@ -78618,7 +78629,7 @@ class $0e { case "ID": return du.convertID(r); } - switch ((i = SFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { + switch ((i = TFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { case "number": return du.convertNumber(r); case "boolean": @@ -78713,38 +78724,38 @@ AC.default = C9; 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 zUt(t) { +function VUt(t) { return t === !0 || t === !1; } -Rs.boolean = zUt; +Rs.boolean = VUt; function B0e(t) { return typeof t == "string" || t instanceof String; } Rs.string = B0e; -function VUt(t) { +function UUt(t) { return typeof t == "number" || t instanceof Number; } -Rs.number = VUt; -function UUt(t) { +Rs.number = UUt; +function qUt(t) { return t instanceof Error; } -Rs.error = UUt; -function qUt(t) { +Rs.error = qUt; +function YUt(t) { return typeof t == "function"; } -Rs.func = qUt; +Rs.func = YUt; function F0e(t) { return Array.isArray(t); } Rs.array = F0e; -function YUt(t) { +function QUt(t) { return F0e(t) && t.every((e) => B0e(e)); } -Rs.stringArray = YUt; +Rs.stringArray = QUt; var x1 = {}; Object.defineProperty(x1, "__esModule", { value: !0 }); x1.Emitter = x1.Event = void 0; -const QUt = AC; +const WUt = AC; var zG; (function(t) { const e = { dispose() { @@ -78753,7 +78764,7 @@ var zG; return e; }; })(zG || (x1.Event = zG = {})); -class WUt { +class GUt { 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) }); } @@ -78779,7 +78790,7 @@ class WUt { try { r.push(n[s].apply(i[s], e)); } catch (o) { - (0, QUt.default)().console.error(o); + (0, WUt.default)().console.error(o); } return r; } @@ -78796,7 +78807,7 @@ class LC { } get event() { return this._event || (this._event = (e, r, n) => { - this._callbacks || (this._callbacks = new WUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); + this._callbacks || (this._callbacks = new GUt()), 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 = LC._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); @@ -78818,7 +78829,7 @@ LC._noop = function() { var Gi; Object.defineProperty(N2, "__esModule", { value: !0 }); var E9 = N2.CancellationTokenSource = Gi = N2.CancellationToken = void 0; -const GUt = AC, HUt = Rs, _9 = x1; +const HUt = AC, XUt = Rs, _9 = x1; var Fk; (function(t) { t.None = Object.freeze({ @@ -78830,12 +78841,12 @@ var Fk; }); function e(r) { const n = r; - return n && (n === t.None || n === t.Cancelled || HUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); + return n && (n === t.None || n === t.Cancelled || XUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); } t.is = e; })(Fk || (Gi = N2.CancellationToken = Fk = {})); -const XUt = Object.freeze(function(t, e) { - const r = (0, GUt.default)().timer.setTimeout(t.bind(e), 0); +const ZUt = Object.freeze(function(t, e) { + const r = (0, HUt.default)().timer.setTimeout(t.bind(e), 0); return { dispose() { r.dispose(); } }; @@ -78851,13 +78862,13 @@ class VG { return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? XUt : (this._emitter || (this._emitter = new _9.Emitter()), this._emitter.event); + return this._isCancelled ? ZUt : (this._emitter || (this._emitter = new _9.Emitter()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = void 0); } } -class ZUt { +class jUt { get token() { return this._token || (this._token = new VG()), this._token; } @@ -78868,13 +78879,13 @@ class ZUt { this._token ? this._token instanceof VG && this._token.dispose() : this._token = Fk.None; } } -E9 = N2.CancellationTokenSource = ZUt; -function jUt() { +E9 = N2.CancellationTokenSource = jUt; +function KUt() { return new Promise((t) => { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let UG = 0, KUt = 10; +let UG = 0, JUt = 10; const zk = Symbol("OperationCancelled"); function qI(t) { return t === zk; @@ -78883,7 +78894,7 @@ async function El(t) { if (t === Gi.None) return; const e = Date.now(); - if (e - UG >= KUt && (UG = e, await jUt()), t.isCancellationRequested) + if (e - UG >= JUt && (UG = e, await KUt()), t.isCancellationRequested) throw zk; } class YI { @@ -78994,7 +79005,7 @@ var A9; } t.update = r; function n(i, s) { - const a = i.getText(), o = L9(s.map(JUt), (h, f) => { + const a = i.getText(), o = L9(s.map(eqt), (h, f) => { const d = h.range.start.line - f.range.start.line; return d === 0 ? h.range.start.character - f.range.start.character : d; }); @@ -79039,7 +79050,7 @@ function V0e(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 JUt(t) { +function eqt(t) { const e = V0e(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } @@ -79434,7 +79445,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 eqt { +class tqt { constructor(e) { this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; } @@ -79523,7 +79534,7 @@ class eqt { return () => i != null ? i : i = A9.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); } } -class tqt { +class rqt { constructor(e) { this.documentMap = /* @__PURE__ */ new Map(), this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory; } @@ -79564,7 +79575,7 @@ class tqt { return n && (n.state = kn.Changed, this.documentMap.delete(r)), n; } } -class rqt { +class nqt { constructor(e) { this.reflection = e.shared.AstReflection, this.langiumDocuments = () => e.shared.workspace.LangiumDocuments, this.scopeProvider = e.references.ScopeProvider, this.astNodeLocator = e.workspace.AstNodeLocator; } @@ -79605,7 +79616,7 @@ class rqt { var o; if (Ps(this._ref)) return this._ref; - if (wBt(this._nodeDescription)) { + if (OBt(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) { @@ -79655,25 +79666,25 @@ class rqt { return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, targetDescription: r }); } } -function nqt(t) { +function iqt(t) { return typeof t.name == "string"; } -class iqt { +class sqt { getName(e) { - if (nqt(e)) + if (iqt(e)) return e.name; } getNameNode(e) { return Mde(e.$cstNode, "name"); } } -class sqt { +class aqt { constructor(e) { this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator; } findDeclaration(e) { if (e) { - const r = OFt(e), n = e.astNode; + const r = kFt(e), n = e.astNode; if (r && n) { const i = n[r.feature]; if (kc(i)) @@ -79686,7 +79697,7 @@ class sqt { } if (n) { const i = this.nameProvider.getNameNode(n); - if (i && (i === e || SBt(e, i))) + if (i && (i === e || TBt(e, i))) return n; } } @@ -79810,7 +79821,7 @@ class YG { return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; } } -class aqt { +class oqt { constructor(e) { this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; } @@ -79858,7 +79869,7 @@ class QG { return this.outerScope.getElement(e); } } -class oqt { +class lqt { 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; @@ -79895,7 +79906,7 @@ class q0e { throw new Error("This cache has already been disposed"); } } -class lqt extends q0e { +class cqt extends q0e { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -79921,7 +79932,7 @@ class lqt extends q0e { this.throwIfDisposed(), this.cache.clear(); } } -class cqt extends q0e { +class uqt extends q0e { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -79958,16 +79969,16 @@ class cqt extends q0e { return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; } } -class uqt extends lqt { +class hqt extends cqt { constructor(e) { super(), this.onDispose(e.workspace.DocumentBuilder.onUpdate(() => { this.clear(); })); } } -class hqt { +class fqt { 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 uqt(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 hqt(e.shared); } getScope(e) { const r = [], n = this.reflection.getReferenceType(e), i = zc(e.container).precomputedScopes; @@ -79995,16 +80006,16 @@ class hqt { return new QG(i, r, n); } getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new oqt(this.indexManager.allElements(e))); + return this.globalScopeCache.get(e, () => new lqt(this.indexManager.allElements(e))); } } -function fqt(t) { +function dqt(t) { return typeof t.$comment == "string"; } function WG(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } -class dqt { +class pqt { 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; } @@ -80060,7 +80071,7 @@ class dqt { 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 = bFt(e.$cstNode, s).map(r); + const a = xFt(e.$cstNode, s).map(r); a.length !== 0 && (i[s] = a); }), e; } @@ -80124,7 +80135,7 @@ class dqt { } } } -class pqt { +class gqt { register(e) { if (!this.singleton && !this.map) { this.singleton = e; @@ -80159,7 +80170,7 @@ var Vk; (function(t) { t.all = ["fast", "slow", "built-in"]; })(Vk || (Vk = {})); -class gqt { +class mqt { constructor(e) { this.entries = new QI(), this.reflection = e.shared.AstReflection; } @@ -80211,7 +80222,7 @@ class gqt { return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); } } -class mqt { +class vqt { constructor(e) { this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData; } @@ -80319,7 +80330,7 @@ class mqt { toDiagnostic(e, r, n) { return { message: r, - range: vqt(n), + range: yqt(n), severity: X_(e), code: n.code, codeDescription: n.codeDescription, @@ -80333,11 +80344,11 @@ class mqt { return this.metadata.languageId; } } -function vqt(t) { +function yqt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = Mde(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = xFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = Mde(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = wFt(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 } }; @@ -80360,7 +80371,7 @@ var Ch; (function(t) { t.LexingError = "lexing-error", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; })(Ch || (Ch = {})); -class yqt { +class bqt { constructor(e) { this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; } @@ -80387,7 +80398,7 @@ class yqt { }; } } -class bqt { +class xqt { constructor(e) { this.nodeLocator = e.workspace.AstNodeLocator; } @@ -80415,7 +80426,7 @@ class bqt { }; } } -class xqt { +class wqt { constructor() { this.segmentSeparator = "/", this.indexSeparator = "@"; } @@ -80444,7 +80455,7 @@ class xqt { }, e); } } -class wqt { +class Oqt { constructor(e) { this._ready = new YI(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; } @@ -80501,7 +80512,7 @@ var Uk; } t.create = e; })(Uk || (Uk = {})); -class Oqt { +class kqt { constructor(e) { this.updateBuildOptions = { validation: { @@ -80645,9 +80656,9 @@ class Oqt { return (n = (r = this.buildState.get(e.uri.toString())) === null || r === void 0 ? void 0 : r.options) !== null && n !== void 0 ? n : {}; } } -class kqt { +class Sqt { constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new cqt(), 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 uqt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; } findAllReferences(e, r) { const n = zc(e).uri, i = []; @@ -80685,7 +80696,7 @@ class kqt { return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; } } -class Sqt { +class Tqt { constructor(e) { this.initialBuildOptions = {}, this._ready = new YI(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; } @@ -80744,7 +80755,7 @@ class Sqt { return !1; } } -class Tqt { +class Cqt { constructor(e) { const r = e.parser.TokenBuilder.buildTokens(e.Grammar, { caseInsensitive: e.LanguageMetaData.caseInsensitive @@ -80774,30 +80785,30 @@ class Tqt { return r.forEach((i) => n[i.name] = i), n; } } -function Cqt(t) { +function Eqt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } function Y0e(t) { return t && "modes" in t && "defaultMode" in t; } function HG(t) { - return !Cqt(t) && !Y0e(t); + return !Eqt(t) && !Y0e(t); } -function Eqt(t, e, r) { +function _qt(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 = Q0e(t), a = WI(n), o = Lqt({ + const s = Q0e(t), a = WI(n), o = Rqt({ lines: s, position: i, options: a }); - return Iqt({ + return Pqt({ index: 0, tokens: o, position: i }); } -function _qt(t, e) { +function Aqt(t, e) { const r = WI(e), n = Q0e(t); if (n.length === 0) return !1; @@ -80806,10 +80817,10 @@ function _qt(t, e) { } function Q0e(t) { let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split(lFt); + return typeof t == "string" ? e = t : e = t.text, e.split(cFt); } -const XG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, Aqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function Lqt(t) { +const XG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, Lqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function Rqt(t) { var e, r, n; const i = []; let s = t.position.line, a = t.position.character; @@ -80827,7 +80838,7 @@ function Lqt(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, Nqt(h)), R9(h, f) >= h.length) { + if (h = h.substring(0, Iqt(h)), R9(h, f) >= h.length) { if (i.length > 0) { const p = zr.create(s, a); i.push({ @@ -80848,15 +80859,15 @@ function Lqt(t) { }), f += g.length, f = R9(h, f); } if (f < h.length) { - const g = h.substring(f), m = Array.from(g.matchAll(Aqt)); - i.push(...Rqt(m, g, s, a + f)); + const g = h.substring(f), m = Array.from(g.matchAll(Lqt)); + i.push(...Mqt(m, g, s, a + f)); } } s++, a = 0; } return i.length > 0 && i[i.length - 1].type === "break" ? i.slice(0, -1) : i; } -function Rqt(t, e, r, n) { +function Mqt(t, e, r, n) { const i = []; if (t.length === 0) { const s = zr.create(r, n), a = zr.create(r, n + e.length); @@ -80905,38 +80916,38 @@ function Rqt(t, e, r, n) { } return i; } -const Mqt = /\S/, Dqt = /\s*$/; +const Dqt = /\S/, Nqt = /\s*$/; function R9(t, e) { - const r = t.substring(e).match(Mqt); + const r = t.substring(e).match(Dqt); return r ? e + r.index : t.length; } -function Nqt(t) { - const e = t.match(Dqt); +function Iqt(t) { + const e = t.match(Nqt); if (e && typeof e.index == "number") return e.index; } -function Iqt(t) { +function Pqt(t) { var e, r, n, i; const s = zr.create(t.position.line, t.position.character); if (t.tokens.length === 0) return new ZG([], Cr.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { - const u = Pqt(t, a[a.length - 1]); + const u = $qt(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 ZG(a, Cr.create(o, l)); } -function Pqt(t, e) { +function $qt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") return G0e(t, !1); if (r.type === "text" || r.type === "inline-tag") return W0e(t); - $qt(r, e), t.index++; + Bqt(r, e), t.index++; } -function $qt(t, e) { +function Bqt(t, e) { if (e) { const r = new X0e("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); @@ -80948,10 +80959,10 @@ function W0e(t) { let n = e; const i = []; for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(Bqt(t)), n = e, e = t.tokens[t.index]; + i.push(Fqt(t)), n = e, e = t.tokens[t.index]; return new M9(i, Cr.create(r.range.start, n.range.end)); } -function Bqt(t) { +function Fqt(t) { return t.tokens[t.index].type === "inline-tag" ? G0e(t, !0) : H0e(t); } function G0e(t, e) { @@ -81047,7 +81058,7 @@ ${r}`), this.inline ? `{${e}}` : e; toMarkdownDefault(e) { const r = this.content.toMarkdown(e); if (this.inline) { - const s = Fqt(this.name, r, e != null ? e : {}); + const s = zqt(this.name, r, e != null ? e : {}); if (typeof s == "string") return s; } @@ -81058,7 +81069,7 @@ ${r}`), this.inline ? `{${e}}` : e; ${r}`), this.inline ? `{${i}}` : i; } } -function Fqt(t, e, r) { +function zqt(t, e, r) { var n, i; if (t === "linkplain" || t === "linkcode" || t === "link") { const s = e.indexOf(" "); @@ -81067,10 +81078,10 @@ function Fqt(t, e, r) { const l = R9(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 : zqt(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 : Vqt(e, a); } } -function zqt(t, e) { +function Vqt(t, e) { try { return w1.parse(t, !0), `[${e}](${t})`; } catch { @@ -81118,14 +81129,14 @@ function jG(t) { `; } -class Vqt { +class Uqt { constructor(e) { this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; } getDocumentation(e) { const r = this.commentProvider.getComment(e); - if (r && _qt(r)) - return Eqt(r).toMarkdown({ + if (r && Aqt(r)) + return _qt(r).toMarkdown({ renderLink: (i, s) => this.documentationLinkRenderer(e, i, s), renderTag: (i) => this.documentationTagRenderer(e, i) }); @@ -81157,16 +81168,16 @@ class Vqt { return this.indexManager.allElements().find((i) => i.name === r); } } -class Uqt { +class qqt { constructor(e) { this.grammarConfig = () => e.parser.GrammarConfig; } getComment(e) { var r; - return fqt(e) ? e.$comment : (r = _Bt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; + return dqt(e) ? e.$comment : (r = ABt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; } } -class qqt { +class Yqt { constructor(e) { this.syncParser = e.parser.LangiumParser; } @@ -81174,7 +81185,7 @@ class qqt { return Promise.resolve(this.syncParser.parse(e)); } } -class Yqt { +class Qqt { constructor() { this.previousTokenSource = new E9(), this.writeQueue = [], this.readQueue = [], this.done = !0; } @@ -81217,7 +81228,7 @@ class Yqt { this.previousTokenSource.cancel(); } } -class Qqt { +class Wqt { constructor(e) { this.grammarElementIdMap = new YG(), this.tokenTypeIdMap = new YG(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } @@ -81343,60 +81354,60 @@ class Qqt { createGrammarElementIdMap() { let e = 0; for (const r of ug(this.grammar)) - RBt(r) && this.grammarElementIdMap.set(r, e++); + MBt(r) && this.grammarElementIdMap.set(r, e++); } } function fm(t) { return { documentation: { - CommentProvider: (e) => new Uqt(e), - DocumentationProvider: (e) => new Vqt(e) + CommentProvider: (e) => new qqt(e), + DocumentationProvider: (e) => new Uqt(e) }, parser: { - AsyncParser: (e) => new qqt(e), - GrammarConfig: (e) => LFt(e), - LangiumParser: (e) => BUt(e), - CompletionParser: (e) => $Ut(e), + AsyncParser: (e) => new Yqt(e), + GrammarConfig: (e) => RFt(e), + LangiumParser: (e) => FUt(e), + CompletionParser: (e) => BUt(e), ValueConverter: () => new $0e(), TokenBuilder: () => new P0e(), - Lexer: (e) => new Tqt(e), + Lexer: (e) => new Cqt(e), ParserErrorMessageProvider: () => new R0e() }, workspace: { - AstNodeLocator: () => new xqt(), - AstNodeDescriptionProvider: (e) => new yqt(e), - ReferenceDescriptionProvider: (e) => new bqt(e) + AstNodeLocator: () => new wqt(), + AstNodeDescriptionProvider: (e) => new bqt(e), + ReferenceDescriptionProvider: (e) => new xqt(e) }, references: { - Linker: (e) => new rqt(e), - NameProvider: () => new iqt(), - ScopeProvider: (e) => new hqt(e), - ScopeComputation: (e) => new aqt(e), - References: (e) => new sqt(e) + Linker: (e) => new nqt(e), + NameProvider: () => new sqt(), + ScopeProvider: (e) => new fqt(e), + ScopeComputation: (e) => new oqt(e), + References: (e) => new aqt(e) }, serializer: { - Hydrator: (e) => new Qqt(e), - JsonSerializer: (e) => new dqt(e) + Hydrator: (e) => new Wqt(e), + JsonSerializer: (e) => new pqt(e) }, validation: { - DocumentValidator: (e) => new mqt(e), - ValidationRegistry: (e) => new gqt(e) + DocumentValidator: (e) => new vqt(e), + ValidationRegistry: (e) => new mqt(e) }, shared: () => t.shared }; } function dm(t) { return { - ServiceRegistry: () => new pqt(), + ServiceRegistry: () => new gqt(), workspace: { - LangiumDocuments: (e) => new tqt(e), - LangiumDocumentFactory: (e) => new eqt(e), - DocumentBuilder: (e) => new Oqt(e), - IndexManager: (e) => new kqt(e), - WorkspaceManager: (e) => new Sqt(e), + LangiumDocuments: (e) => new rqt(e), + LangiumDocumentFactory: (e) => new tqt(e), + DocumentBuilder: (e) => new kqt(e), + IndexManager: (e) => new Sqt(e), + WorkspaceManager: (e) => new Tqt(e), FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new Yqt(), - ConfigurationProvider: (e) => new wqt(e) + WorkspaceLock: () => new Qqt(), + ConfigurationProvider: (e) => new Oqt(e) } }; } @@ -81449,7 +81460,7 @@ function qk(t, e) { } return t; } -class Wqt { +class Gqt { readFile() { throw new Error("No file system is available."); } @@ -81458,8 +81469,8 @@ class Wqt { } } const pm = { - fileSystemProvider: () => new Wqt() -}, Gqt = { + fileSystemProvider: () => new Gqt() +}, Hqt = { Grammar: () => { }, LanguageMetaData: () => ({ @@ -81467,86 +81478,86 @@ const pm = { fileExtensions: [".langium"], languageId: "langium" }) -}, Hqt = { +}, Xqt = { AstReflection: () => new Cde() }; -function Xqt() { - const t = el(dm(pm), Hqt), e = el(fm({ shared: t }), Gqt); +function Zqt() { + const t = el(dm(pm), Xqt), e = el(fm({ shared: t }), Hqt); return t.ServiceRegistry.register(e), e; } function Fx(t) { var e; - const r = Xqt(), n = r.serializer.JsonSerializer.deserialize(t); + const r = Zqt(), n = r.serializer.JsonSerializer.deserialize(t); return r.shared.workspace.LangiumDocumentFactory.fromModel(n, w1.parse(`memory://${(e = n.name) !== null && e !== void 0 ? e : "grammar"}.langium`)), n; } -var Zqt = Object.defineProperty, Dt = (t, e) => Zqt(t, "name", { value: e, configurable: !0 }), jqt = "Statement", Kqt = "Architecture"; -function Jqt(t) { - return Zl.isInstance(t, Kqt); +var jqt = Object.defineProperty, Dt = (t, e) => jqt(t, "name", { value: e, configurable: !0 }), Kqt = "Statement", Jqt = "Architecture"; +function eYt(t) { + return Zl.isInstance(t, Jqt); } -Dt(Jqt, "isArchitecture"); +Dt(eYt, "isArchitecture"); var j0e = "Branch"; -function eYt(t) { +function tYt(t) { return Zl.isInstance(t, j0e); } -Dt(eYt, "isBranch"); -var tYt = "Checkout", rYt = "CherryPicking", K0e = "Commit"; -function nYt(t) { +Dt(tYt, "isBranch"); +var rYt = "Checkout", nYt = "CherryPicking", K0e = "Commit"; +function iYt(t) { return Zl.isInstance(t, K0e); } -Dt(nYt, "isCommit"); -var iYt = "Common"; -function sYt(t) { - return Zl.isInstance(t, iYt); +Dt(iYt, "isCommit"); +var sYt = "Common"; +function aYt(t) { + return Zl.isInstance(t, sYt); } -Dt(sYt, "isCommon"); +Dt(aYt, "isCommon"); var J0e = "GitGraph"; -function aYt(t) { +function oYt(t) { return Zl.isInstance(t, J0e); } -Dt(aYt, "isGitGraph"); -var oYt = "Info"; -function lYt(t) { - return Zl.isInstance(t, oYt); +Dt(oYt, "isGitGraph"); +var lYt = "Info"; +function cYt(t) { + return Zl.isInstance(t, lYt); } -Dt(lYt, "isInfo"); +Dt(cYt, "isInfo"); var epe = "Merge"; -function cYt(t) { +function uYt(t) { return Zl.isInstance(t, epe); } -Dt(cYt, "isMerge"); -var uYt = "Packet"; -function hYt(t) { - return Zl.isInstance(t, uYt); +Dt(uYt, "isMerge"); +var hYt = "Packet"; +function fYt(t) { + return Zl.isInstance(t, hYt); } -Dt(hYt, "isPacket"); -var fYt = "PacketBlock"; -function dYt(t) { - return Zl.isInstance(t, fYt); +Dt(fYt, "isPacket"); +var dYt = "PacketBlock"; +function pYt(t) { + return Zl.isInstance(t, dYt); } -Dt(dYt, "isPacketBlock"); -var pYt = "Pie"; -function gYt(t) { - return Zl.isInstance(t, pYt); +Dt(pYt, "isPacketBlock"); +var gYt = "Pie"; +function mYt(t) { + return Zl.isInstance(t, gYt); } -Dt(gYt, "isPie"); -var mYt = "PieSection"; -function vYt(t) { - return Zl.isInstance(t, mYt); +Dt(mYt, "isPie"); +var vYt = "PieSection"; +function yYt(t) { + return Zl.isInstance(t, vYt); } -Dt(vYt, "isPieSection"); -var yYt = "Direction", mb, tpe = (mb = class extends Ufe { +Dt(yYt, "isPieSection"); +var bYt = "Direction", mb, tpe = (mb = class extends Ufe { 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 j0e: - case tYt: case rYt: + case nYt: case K0e: case epe: - return this.isSubtype(jqt, r); - case yYt: + return this.isSubtype(Kqt, r); + case bYt: return this.isSubtype(J0e, r); default: return !1; @@ -81748,32 +81759,28 @@ var yYt = "Direction", mb, tpe = (mb = class extends Ufe { } }, (() => { Dt(mb, "MermaidAstReflection"); -})(), mb), Zl = new tpe(), EO, bYt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Fx('{"$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"), _O, xYt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Fx(`{"$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"), AO, wYt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Fx('{"$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"), LO, OYt = /* @__PURE__ */ Dt(() => LO != null ? LO : LO = Fx('{"$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"), RO, kYt = /* @__PURE__ */ Dt(() => RO != null ? RO : RO = Fx(`{"$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"), SYt = { +})(), mb), Zl = new tpe(), EO, xYt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Fx('{"$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"), _O, wYt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Fx(`{"$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"), AO, OYt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Fx('{"$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"), LO, kYt = /* @__PURE__ */ Dt(() => LO != null ? LO : LO = Fx('{"$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"), RO, SYt = /* @__PURE__ */ Dt(() => RO != null ? RO : RO = Fx(`{"$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"), TYt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, TYt = { +}, CYt = { languageId: "packet", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, CYt = { +}, EYt = { languageId: "pie", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, EYt = { +}, _Yt = { languageId: "architecture", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, _Yt = { +}, AYt = { languageId: "gitGraph", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, zx = { AstReflection: /* @__PURE__ */ Dt(() => new tpe(), "AstReflection") -}, AYt = { - Grammar: /* @__PURE__ */ Dt(() => bYt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ Dt(() => SYt, "LanguageMetaData"), - parser: {} }, LYt = { Grammar: /* @__PURE__ */ Dt(() => xYt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => TYt, "LanguageMetaData"), @@ -81790,17 +81797,21 @@ var yYt = "Direction", mb, tpe = (mb = class extends Ufe { Grammar: /* @__PURE__ */ Dt(() => kYt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => _Yt, "LanguageMetaData"), parser: {} -}, NYt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, IYt = /accTitle[\t ]*:([^\n\r]*)/, PYt = /title([\t ][^\n\r]*|)/, $Yt = { - ACC_DESCR: NYt, - ACC_TITLE: IYt, - TITLE: PYt +}, NYt = { + Grammar: /* @__PURE__ */ Dt(() => SYt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ Dt(() => AYt, "LanguageMetaData"), + parser: {} +}, IYt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, PYt = /accTitle[\t ]*:([^\n\r]*)/, $Yt = /title([\t ][^\n\r]*|)/, BYt = { + ACC_DESCR: IYt, + ACC_TITLE: PYt, + TITLE: $Yt }, vb, GI = (vb = class extends $0e { 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 = $Yt[e.name]; + const i = BYt[e.name]; if (i === void 0) return; const s = i.exec(r); @@ -81834,7 +81845,7 @@ var yYt = "Direction", mb, tpe = (mb = class extends Ufe { })(), bb), xb; xb = class extends gm { }, Dt(xb, "CommonTokenBuilder"); -var wb, BYt = (wb = class extends gm { +var wb, FYt = (wb = class extends gm { constructor() { super(["gitGraph"]); } @@ -81842,7 +81853,7 @@ var wb, BYt = (wb = class extends gm { Dt(wb, "GitGraphTokenBuilder"); })(), wb), rpe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new BYt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new FYt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new HI(), "ValueConverter") } }; @@ -81852,13 +81863,13 @@ function npe(t = pm) { zx ), r = el( fm({ shared: e }), - DYt, + NYt, rpe ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } Dt(npe, "createGitGraphServices"); -var Ob, FYt = (Ob = class extends gm { +var Ob, zYt = (Ob = class extends gm { constructor() { super(["info", "showInfo"]); } @@ -81866,7 +81877,7 @@ var Ob, FYt = (Ob = class extends gm { Dt(Ob, "InfoTokenBuilder"); })(), Ob), ipe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new FYt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new zYt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new HI(), "ValueConverter") } }; @@ -81876,13 +81887,13 @@ function spe(t = pm) { zx ), r = el( fm({ shared: e }), - AYt, + LYt, ipe ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } Dt(spe, "createInfoServices"); -var kb, zYt = (kb = class extends gm { +var kb, VYt = (kb = class extends gm { constructor() { super(["packet-beta"]); } @@ -81890,7 +81901,7 @@ var kb, zYt = (kb = class extends gm { Dt(kb, "PacketTokenBuilder"); })(), kb), ape = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new zYt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new VYt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new HI(), "ValueConverter") } }; @@ -81900,19 +81911,19 @@ function ope(t = pm) { zx ), r = el( fm({ shared: e }), - LYt, + RYt, ape ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } Dt(ope, "createPacketServices"); -var Sb, VYt = (Sb = class extends gm { +var Sb, UYt = (Sb = class extends gm { constructor() { super(["pie", "showData"]); } }, (() => { Dt(Sb, "PieTokenBuilder"); -})(), Sb), Tb, UYt = (Tb = class extends GI { +})(), Sb), Tb, qYt = (Tb = class extends GI { runCustomConverter(e, r, n) { if (e.name === "PIE_SECTION_LABEL") return r.replace(/"/g, "").trim(); @@ -81921,8 +81932,8 @@ var Sb, VYt = (Sb = class extends gm { Dt(Tb, "PieValueConverter"); })(), Tb), lpe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new VYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new UYt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new UYt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new qYt(), "ValueConverter") } }; function cpe(t = pm) { @@ -81931,19 +81942,19 @@ function cpe(t = pm) { zx ), r = el( fm({ shared: e }), - RYt, + MYt, lpe ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } Dt(cpe, "createPieServices"); -var Cb, qYt = (Cb = class extends gm { +var Cb, YYt = (Cb = class extends gm { constructor() { super(["architecture"]); } }, (() => { Dt(Cb, "ArchitectureTokenBuilder"); -})(), Cb), Eb, YYt = (Eb = class extends GI { +})(), Cb), Eb, QYt = (Eb = class extends GI { runCustomConverter(e, r, n) { if (e.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim(); @@ -81956,8 +81967,8 @@ var Cb, qYt = (Cb = class extends gm { Dt(Eb, "ArchitectureValueConverter"); })(), Eb), upe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new qYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new YYt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new YYt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new QYt(), "ValueConverter") } }; function hpe(t = pm) { @@ -81966,46 +81977,46 @@ function hpe(t = pm) { zx ), r = el( fm({ shared: e }), - MYt, + DYt, upe ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } Dt(hpe, "createArchitectureServices"); -var wd = {}, QYt = { +var wd = {}, WYt = { info: /* @__PURE__ */ Dt(async () => { - const { createInfoServices: t } = await Promise.resolve().then(() => Xlr), e = t().Info.parser.LangiumParser; + const { createInfoServices: t } = await Promise.resolve().then(() => Zlr), e = t().Info.parser.LangiumParser; wd.info = e; }, "info"), packet: /* @__PURE__ */ Dt(async () => { - const { createPacketServices: t } = await Promise.resolve().then(() => Zlr), e = t().Packet.parser.LangiumParser; + const { createPacketServices: t } = await Promise.resolve().then(() => jlr), e = t().Packet.parser.LangiumParser; wd.packet = e; }, "packet"), pie: /* @__PURE__ */ Dt(async () => { - const { createPieServices: t } = await Promise.resolve().then(() => jlr), e = t().Pie.parser.LangiumParser; + const { createPieServices: t } = await Promise.resolve().then(() => Klr), e = t().Pie.parser.LangiumParser; wd.pie = e; }, "pie"), architecture: /* @__PURE__ */ Dt(async () => { - const { createArchitectureServices: t } = await Promise.resolve().then(() => Klr), e = t().Architecture.parser.LangiumParser; + const { createArchitectureServices: t } = await Promise.resolve().then(() => Jlr), e = t().Architecture.parser.LangiumParser; wd.architecture = e; }, "architecture"), gitGraph: /* @__PURE__ */ Dt(async () => { - const { createGitGraphServices: t } = await Promise.resolve().then(() => Jlr), e = t().GitGraph.parser.LangiumParser; + const { createGitGraphServices: t } = await Promise.resolve().then(() => ecr), e = t().GitGraph.parser.LangiumParser; wd.gitGraph = e; }, "gitGraph") }; async function mm(t, e) { - const r = QYt[t]; + const r = WYt[t]; if (!r) throw new Error(`Unknown diagram type: ${t}`); wd[t] || await r(); const i = wd[t].parse(e); if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new WYt(i); + throw new GYt(i); return i.value; } Dt(mm, "parse"); -var _b, WYt = (_b = class extends Error { +var _b, GYt = (_b = class extends Error { constructor(e) { const r = e.lexerErrors.map((i) => i.message).join(` `), n = e.parserErrors.map((i) => i.message).join(` @@ -82020,8 +82031,8 @@ var _b, WYt = (_b = class extends Error { HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 -}, GYt = jr.gitGraph, np = /* @__PURE__ */ x(() => ch({ - ...GYt, +}, HYt = jr.gitGraph, np = /* @__PURE__ */ x(() => ch({ + ...HYt, ...pi().gitGraph }), "getConfig"), wt = new kI(() => { const t = np(), e = t.mainBranchName, r = t.mainBranchOrder; @@ -82049,18 +82060,18 @@ function fpe(t, e) { }, []); } x(fpe, "uniqBy"); -var HYt = /* @__PURE__ */ x(function(t) { +var XYt = /* @__PURE__ */ x(function(t) { wt.records.direction = t; -}, "setDirection"), XYt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), ZYt = /* @__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"), ZYt = /* @__PURE__ */ x(function() { +}, "setOptions"), jYt = /* @__PURE__ */ x(function() { return wt.records.options; -}, "getOptions"), jYt = /* @__PURE__ */ x(function(t) { +}, "getOptions"), KYt = /* @__PURE__ */ x(function(t) { let e = t.msg, r = t.id; const n = t.type; let i = t.tags; @@ -82077,7 +82088,7 @@ var HYt = /* @__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"), KYt = /* @__PURE__ */ x(function(t) { +}, "commit"), JYt = /* @__PURE__ */ x(function(t) { let e = t.name; const r = t.order; if (e = at.sanitizeText(e, np()), wt.records.branches.has(e)) @@ -82085,7 +82096,7 @@ var HYt = /* @__PURE__ */ x(function(t) { `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 }), dpe(e), X.debug("in createBranch"); -}, "branch"), JYt = /* @__PURE__ */ x((t) => { +}, "branch"), eQt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = np(); e = at.sanitizeText(e, s), r && (r = at.sanitizeText(r, s)); @@ -82162,7 +82173,7 @@ var HYt = /* @__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"), eQt = /* @__PURE__ */ x(function(t) { +}, "merge"), tQt = /* @__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 = np(); @@ -82279,13 +82290,13 @@ function XI(t) { t = fpe(t, (i) => i.id), XI(t); } x(XI, "prettyPrintCommitHistory"); -var tQt = /* @__PURE__ */ x(function() { +var rQt = /* @__PURE__ */ x(function() { X.debug(wt.records.commits); const t = ppe()[0]; XI([t]); -}, "prettyPrint"), rQt = /* @__PURE__ */ x(function() { +}, "prettyPrint"), nQt = /* @__PURE__ */ x(function() { wt.reset(), Xi(); -}, "clear"), nQt = /* @__PURE__ */ x(function() { +}, "clear"), iQt = /* @__PURE__ */ x(function() { return [...wt.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : { ...e, order: parseFloat(`0.${r}`) @@ -82293,61 +82304,61 @@ var tQt = /* @__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"), iQt = /* @__PURE__ */ x(function() { +}, "getBranchesAsObjArray"), sQt = /* @__PURE__ */ x(function() { return wt.records.branches; -}, "getBranches"), sQt = /* @__PURE__ */ x(function() { +}, "getBranches"), aQt = /* @__PURE__ */ x(function() { return wt.records.commits; }, "getCommits"), ppe = /* @__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"), aQt = /* @__PURE__ */ x(function() { +}, "getCommitsArray"), oQt = /* @__PURE__ */ x(function() { return wt.records.currBranch; -}, "getCurrentBranch"), oQt = /* @__PURE__ */ x(function() { +}, "getCurrentBranch"), lQt = /* @__PURE__ */ x(function() { return wt.records.direction; -}, "getDirection"), lQt = /* @__PURE__ */ x(function() { +}, "getDirection"), cQt = /* @__PURE__ */ x(function() { return wt.records.head; }, "getHead"), gpe = { commitType: Hr, getConfig: np, - setDirection: HYt, - setOptions: XYt, - getOptions: ZYt, - commit: jYt, - branch: KYt, - merge: JYt, - cherryPick: eQt, + setDirection: XYt, + setOptions: ZYt, + getOptions: jYt, + commit: KYt, + branch: JYt, + merge: eQt, + cherryPick: tQt, checkout: dpe, - prettyPrint: tQt, - clear: rQt, - getBranchesAsObjArray: nQt, - getBranches: iQt, - getCommits: sQt, + prettyPrint: rQt, + clear: nQt, + getBranchesAsObjArray: iQt, + getBranches: sQt, + getCommits: aQt, getCommitsArray: ppe, - getCurrentBranch: aQt, - getDirection: oQt, - getHead: lQt, + getCurrentBranch: oQt, + getDirection: lQt, + getHead: cQt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, setDiagramTitle: fa, getDiagramTitle: xs -}, cQt = /* @__PURE__ */ x((t, e) => { +}, uQt = /* @__PURE__ */ x((t, e) => { Mx(t, e), t.dir && e.setDirection(t.dir); for (const r of t.statements) - uQt(r, e); -}, "populate"), uQt = /* @__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(fQt(i)), "Branch"), - Merge: /* @__PURE__ */ x((i) => e.merge(dQt(i)), "Merge"), - Checkout: /* @__PURE__ */ x((i) => e.checkout(pQt(i)), "Checkout"), - CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(gQt(i)), "CherryPicking") + Commit: /* @__PURE__ */ x((i) => e.commit(fQt(i)), "Commit"), + Branch: /* @__PURE__ */ x((i) => e.branch(dQt(i)), "Branch"), + Merge: /* @__PURE__ */ x((i) => e.merge(pQt(i)), "Merge"), + Checkout: /* @__PURE__ */ x((i) => e.checkout(gQt(i)), "Checkout"), + CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(mQt(i)), "CherryPicking") }[t.$type]; n ? n(t) : X.error(`Unknown statement type: ${t.$type}`); -}, "parseStatement"), hQt = /* @__PURE__ */ x((t) => { +}, "parseStatement"), fQt = /* @__PURE__ */ x((t) => { var r, n; return { id: t.id, @@ -82355,13 +82366,13 @@ var tQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : Hr.NORMAL, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseCommit"), fQt = /* @__PURE__ */ x((t) => { +}, "parseCommit"), dQt = /* @__PURE__ */ x((t) => { var r; return { name: t.name, order: (r = t.order) != null ? r : 0 }; -}, "parseBranch"), dQt = /* @__PURE__ */ x((t) => { +}, "parseBranch"), pQt = /* @__PURE__ */ x((t) => { var r, n; return { branch: t.branch, @@ -82369,7 +82380,7 @@ var tQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : void 0, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseMerge"), pQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), gQt = /* @__PURE__ */ x((t) => { +}, "parseMerge"), gQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), mQt = /* @__PURE__ */ x((t) => { var r; return { id: t.id, @@ -82377,12 +82388,12 @@ var tQt = /* @__PURE__ */ x(function() { tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags, parent: t.parent }; -}, "parseCherryPicking"), mQt = { +}, "parseCherryPicking"), vQt = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("gitGraph", t); - X.debug(e), cQt(e, gpe); + X.debug(e), uQt(e, gpe); }, "parse") -}, K_ = be(), ui = K_ == null ? void 0 : K_.gitGraph, qh = 10, Yh = 40, sc = 4, mu = 2, Od = 8, Aa = /* @__PURE__ */ new Map(), Ia = /* @__PURE__ */ new Map(), Yk = 30, Mv = /* @__PURE__ */ new Map(), Qk = [], Rh = 0, Tr = "LR", vQt = /* @__PURE__ */ x(() => { +}, K_ = be(), ui = K_ == null ? void 0 : K_.gitGraph, qh = 10, Yh = 40, sc = 4, mu = 2, Od = 8, Aa = /* @__PURE__ */ new Map(), Ia = /* @__PURE__ */ new Map(), Yk = 30, Mv = /* @__PURE__ */ new Map(), Qk = [], Rh = 0, Tr = "LR", yQt = /* @__PURE__ */ x(() => { Aa.clear(), Ia.clear(), Mv.clear(), Rh = 0, Qk = [], Tr = "LR"; }, "clear"), mpe = /* @__PURE__ */ x((t) => { const e = document.createElementNS("http://www.w3.org/2000/svg", "text"); @@ -82397,32 +82408,32 @@ var tQt = /* @__PURE__ */ x(function() { const s = Tr === "TB" || Tr == "BT" ? (a = Ia.get(i)) == null ? void 0 : a.y : (o = Ia.get(i)) == null ? void 0 : o.x; s !== void 0 && r(s, n) && (e = i, n = s); }), e; -}, "findClosestParent"), yQt = /* @__PURE__ */ x((t) => { +}, "findClosestParent"), bQt = /* @__PURE__ */ x((t) => { let e = "", r = 1 / 0; return t.forEach((n) => { const i = Ia.get(n).y; i <= r && (e = n, r = i); }), e || void 0; -}, "findClosestParentBT"), bQt = /* @__PURE__ */ x((t, e, r) => { +}, "findClosestParentBT"), xQt = /* @__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 = wQt(o), i = Math.max(n, i)) : s.push(o), OQt(o, n); + o.parents.length ? (n = OQt(o), i = Math.max(n, i)) : s.push(o), kQt(o, n); }), n = i, s.forEach((a) => { - kQt(a, n, r); + SQt(a, n, r); }), t.forEach((a) => { const o = e.get(a); if (o != null && o.parents.length) { - const l = yQt(o.parents); + const l = bQt(o.parents); n = Ia.get(l).y - Yh, n <= i && (i = n); const u = Aa.get(o.branch).pos, h = n - qh; Ia.set(o.id, { x: u, y: h }); } }); -}, "setParallelBTPos"), xQt = /* @__PURE__ */ x((t) => { +}, "setParallelBTPos"), wQt = /* @__PURE__ */ x((t) => { var n; const e = vpe(t.parents.filter((i) => i !== null)); if (!e) @@ -82431,19 +82442,19 @@ var tQt = /* @__PURE__ */ x(function() { if (r === void 0) throw new Error(`Closest parent position not found for commit ${t.id}`); return r; -}, "findClosestParentPos"), wQt = /* @__PURE__ */ x((t) => xQt(t) + Yh, "calculateCommitPosition"), OQt = /* @__PURE__ */ x((t, e) => { +}, "findClosestParentPos"), OQt = /* @__PURE__ */ x((t) => wQt(t) + Yh, "calculateCommitPosition"), kQt = /* @__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 + qh; return Ia.set(t.id, { x: n, y: i }), { x: n, y: i }; -}, "setCommitPosition"), kQt = /* @__PURE__ */ x((t, e, r) => { +}, "setCommitPosition"), SQt = /* @__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"), SQt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "setRootPosition"), TQt = /* @__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", @@ -82468,7 +82479,7 @@ var tQt = /* @__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 % Od}`); } -}, "drawCommitBullet"), TQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitBullet"), CQt = /* @__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(); @@ -82489,7 +82500,7 @@ var tQt = /* @__PURE__ */ x(function() { ); } } -}, "drawCommitLabel"), CQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitLabel"), EQt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.tags.length > 0) { let s = 0, a = 0, o = 0; @@ -82531,7 +82542,7 @@ var tQt = /* @__PURE__ */ x(function() { } } } -}, "drawCommitTags"), EQt = /* @__PURE__ */ x((t) => { +}, "drawCommitTags"), _Qt = /* @__PURE__ */ x((t) => { var r; switch ((r = t.customType) != null ? r : t.type) { case Hr.NORMAL: @@ -82547,7 +82558,7 @@ var tQt = /* @__PURE__ */ x(function() { default: return "commit-normal"; } -}, "getCommitClassType"), _Qt = /* @__PURE__ */ x((t, e, r, n) => { +}, "getCommitClassType"), AQt = /* @__PURE__ */ x((t, e, r, n) => { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { @@ -82559,7 +82570,7 @@ var tQt = /* @__PURE__ */ x(function() { } else return e === "TB" ? Yk : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - Yh : 0; return 0; -}, "calculatePosition"), AQt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePosition"), LQt = /* @__PURE__ */ x((t, e, r) => { var a, o; const n = Tr === "BT" && r ? e : e + qh, 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) @@ -82577,20 +82588,20 @@ var tQt = /* @__PURE__ */ x(function() { return p !== void 0 && g !== void 0 ? p - g : 0; }, "sortKeys"); let u = a.sort(l); - Tr === "BT" && (o && bQt(u, e, s), u = u.reverse()), u.forEach((f) => { + Tr === "BT" && (o && xQt(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 = _Qt(d, Tr, s, Ia)); - const p = AQt(d, s, o); + o && (s = AQt(d, Tr, s, Ia)); + const p = LQt(d, s, o); if (r) { - const y = EQt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; - SQt(n, d, p, y, w, b), TQt(i, d, p, s), CQt(i, d, p, s); + const y = _Qt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; + TQt(n, d, p, y, w, b), CQt(i, d, p, s), EQt(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 + Yh : s + Yh + qh, s > Rh && (Rh = s); }); -}, "drawCommits"), LQt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "drawCommits"), RQt = /* @__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"), Dv = /* @__PURE__ */ x((t, e, r = 0) => { @@ -82601,12 +82612,12 @@ var tQt = /* @__PURE__ */ x(function() { return Qk.push(n), n; const s = Math.abs(t - e); return Dv(t, e - s / 5, r + 1); -}, "findLane"), RQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "findLane"), MQt = /* @__PURE__ */ x((t, e, r, n) => { var p, g, m, v, y; const i = Ia.get(e.id), s = Ia.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 = LQt(e, r, i, s, n); + const a = RQt(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; @@ -82619,15 +82630,15 @@ var tQt = /* @__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 % Od); -}, "drawArrow"), MQt = /* @__PURE__ */ x((t, e) => { +}, "drawArrow"), DQt = /* @__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) => { - RQt(r, e.get(s), i, e); + MQt(r, e.get(s), i, e); }); }); -}, "drawArrows"), DQt = /* @__PURE__ */ x((t, e) => { +}, "drawArrows"), NQt = /* @__PURE__ */ x((t, e) => { const r = t.append("g"); e.forEach((n, i) => { var g; @@ -82644,11 +82655,11 @@ var tQt = /* @__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"), NQt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawBranches"), IQt = /* @__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"), IQt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setBranchPosition"), PQt = /* @__PURE__ */ x(function(t, e, r, n) { var u, h; - if (vQt(), X.debug("in gitgraph renderer", t + ` + if (yQt(), 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; @@ -82662,8 +82673,8 @@ var tQt = /* @__PURE__ */ x(function() { const p = mpe(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 = NQt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), rH(o, Mv, !1), ui.showBranches && DQt(o, a), MQt(o, Mv), rH(o, Mv, !0), sr.insertTitle( + l = IQt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); + }), rH(o, Mv, !1), ui.showBranches && NQt(o, a), DQt(o, Mv), rH(o, Mv, !0), sr.insertTitle( o, "gitTitleText", (h = ui.titleTopMargin) != null ? h : 0, @@ -82674,9 +82685,9 @@ var tQt = /* @__PURE__ */ x(function() { ui.diagramPadding, ui.useMaxWidth ); -}, "draw"), PQt = { - draw: IQt -}, $Qt = /* @__PURE__ */ x((t) => ` +}, "draw"), $Qt = { + draw: PQt +}, BQt = /* @__PURE__ */ x((t) => ` .commit-id, .commit-msg, .branch-label { @@ -82729,15 +82740,15 @@ var tQt = /* @__PURE__ */ x(function() { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), BQt = $Qt, FQt = { - parser: mQt, +`, "getStyles"), FQt = BQt, zQt = { + parser: vQt, db: gpe, - renderer: PQt, - styles: BQt + renderer: $Qt, + styles: FQt }; -const zQt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const VQt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: FQt + diagram: zQt }, Symbol.toStringTag, { value: "Module" })); var ype = { exports: {} }; (function(t, e) { @@ -82767,7 +82778,7 @@ var ype = { exports: {} }; }; }); })(ype); -const VQt = ype.exports; +const UQt = ype.exports; var bpe = { exports: {} }; (function(t, e) { (function(r, n) { @@ -82900,7 +82911,7 @@ var bpe = { exports: {} }; }; }); })(bpe); -const UQt = bpe.exports; +const qQt = bpe.exports; var xpe = { exports: {} }; (function(t, e) { (function(r, n) { @@ -82950,7 +82961,7 @@ var xpe = { exports: {} }; }; }); })(xpe); -const qQt = xpe.exports; +const YQt = xpe.exports; var N9 = function() { var t = /* @__PURE__ */ x(function($, k, N, M) { for (N = N || {}, M = $.length; M--; N[$[M]] = k) @@ -83446,55 +83457,55 @@ Expecting ` + Qe.join(", ") + ", got '" + (this.terminals_[se] || se) + "'" : De return x(A, "Parser"), A.prototype = R, R.Parser = A, new A(); }(); N9.parser = N9; -var YQt = N9; -Ns.extend(VQt); +var QQt = N9; Ns.extend(UQt); Ns.extend(qQt); -var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx = [], Ux = [], JI = /* @__PURE__ */ new Map(), eP = [], Wk = [], O1 = "", tP = "", wpe = ["active", "done", "crit", "milestone"], rP = [], qx = !1, nP = !1, iP = "sunday", Gk = "saturday", I9 = 0, QQt = /* @__PURE__ */ x(function() { +Ns.extend(YQt); +var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx = [], Ux = [], JI = /* @__PURE__ */ new Map(), eP = [], Wk = [], O1 = "", tP = "", wpe = ["active", "done", "crit", "milestone"], rP = [], qx = !1, nP = !1, iP = "sunday", Gk = "saturday", I9 = 0, WQt = /* @__PURE__ */ x(function() { eP = [], Wk = [], O1 = "", rP = [], e5 = 0, $9 = void 0, t5 = void 0, yi = [], Sc = "", ZI = "", tP = "", jI = void 0, KI = "", Vx = [], Ux = [], qx = !1, nP = !1, I9 = 0, JI = /* @__PURE__ */ new Map(), Xi(), iP = "sunday", Gk = "saturday"; -}, "clear"), WQt = /* @__PURE__ */ x(function(t) { +}, "clear"), GQt = /* @__PURE__ */ x(function(t) { ZI = t; -}, "setAxisFormat"), GQt = /* @__PURE__ */ x(function() { +}, "setAxisFormat"), HQt = /* @__PURE__ */ x(function() { return ZI; -}, "getAxisFormat"), HQt = /* @__PURE__ */ x(function(t) { +}, "getAxisFormat"), XQt = /* @__PURE__ */ x(function(t) { jI = t; -}, "setTickInterval"), XQt = /* @__PURE__ */ x(function() { +}, "setTickInterval"), ZQt = /* @__PURE__ */ x(function() { return jI; -}, "getTickInterval"), ZQt = /* @__PURE__ */ x(function(t) { +}, "getTickInterval"), jQt = /* @__PURE__ */ x(function(t) { KI = t; -}, "setTodayMarker"), jQt = /* @__PURE__ */ x(function() { +}, "setTodayMarker"), KQt = /* @__PURE__ */ x(function() { return KI; -}, "getTodayMarker"), KQt = /* @__PURE__ */ x(function(t) { +}, "getTodayMarker"), JQt = /* @__PURE__ */ x(function(t) { Sc = t; -}, "setDateFormat"), JQt = /* @__PURE__ */ x(function() { +}, "setDateFormat"), eWt = /* @__PURE__ */ x(function() { qx = !0; -}, "enableInclusiveEndDates"), eWt = /* @__PURE__ */ x(function() { +}, "enableInclusiveEndDates"), tWt = /* @__PURE__ */ x(function() { return qx; -}, "endDatesAreInclusive"), tWt = /* @__PURE__ */ x(function() { +}, "endDatesAreInclusive"), rWt = /* @__PURE__ */ x(function() { nP = !0; -}, "enableTopAxis"), rWt = /* @__PURE__ */ x(function() { +}, "enableTopAxis"), nWt = /* @__PURE__ */ x(function() { return nP; -}, "topAxisEnabled"), nWt = /* @__PURE__ */ x(function(t) { +}, "topAxisEnabled"), iWt = /* @__PURE__ */ x(function(t) { tP = t; -}, "setDisplayMode"), iWt = /* @__PURE__ */ x(function() { +}, "setDisplayMode"), sWt = /* @__PURE__ */ x(function() { return tP; -}, "getDisplayMode"), sWt = /* @__PURE__ */ x(function() { +}, "getDisplayMode"), aWt = /* @__PURE__ */ x(function() { return Sc; -}, "getDateFormat"), aWt = /* @__PURE__ */ x(function(t) { +}, "getDateFormat"), oWt = /* @__PURE__ */ x(function(t) { Vx = t.toLowerCase().split(/[\s,]+/); -}, "setIncludes"), oWt = /* @__PURE__ */ x(function() { +}, "setIncludes"), lWt = /* @__PURE__ */ x(function() { return Vx; -}, "getIncludes"), lWt = /* @__PURE__ */ x(function(t) { +}, "getIncludes"), cWt = /* @__PURE__ */ x(function(t) { Ux = t.toLowerCase().split(/[\s,]+/); -}, "setExcludes"), cWt = /* @__PURE__ */ x(function() { +}, "setExcludes"), uWt = /* @__PURE__ */ x(function() { return Ux; -}, "getExcludes"), uWt = /* @__PURE__ */ x(function() { +}, "getExcludes"), hWt = /* @__PURE__ */ x(function() { return JI; -}, "getLinks"), hWt = /* @__PURE__ */ x(function(t) { +}, "getLinks"), fWt = /* @__PURE__ */ x(function(t) { O1 = t, eP.push(t); -}, "addSection"), fWt = /* @__PURE__ */ x(function() { +}, "addSection"), dWt = /* @__PURE__ */ x(function() { return eP; -}, "getSections"), dWt = /* @__PURE__ */ x(function() { +}, "getSections"), pWt = /* @__PURE__ */ x(function() { let t = iH(); const e = 10; let r = 0; @@ -83503,11 +83514,11 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx return Wk = yi, Wk; }, "getTasks"), Ope = /* @__PURE__ */ x(function(t, e, r, n) { return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === nH[Gk] || t.isoWeekday() === nH[Gk] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); -}, "isInvalidDate"), pWt = /* @__PURE__ */ x(function(t) { +}, "isInvalidDate"), gWt = /* @__PURE__ */ x(function(t) { iP = t; -}, "setWeekday"), gWt = /* @__PURE__ */ x(function() { +}, "setWeekday"), mWt = /* @__PURE__ */ x(function() { return iP; -}, "getWeekday"), mWt = /* @__PURE__ */ x(function(t) { +}, "getWeekday"), vWt = /* @__PURE__ */ x(function(t) { Gk = t; }, "setWeekend"), kpe = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) @@ -83516,7 +83527,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx 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] = vWt( + const [a, o] = yWt( i, s, e, @@ -83524,7 +83535,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx n ); t.endTime = a.toDate(), t.renderEndTime = o; -}, "checkTaskDates"), vWt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "checkTaskDates"), yWt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) s || (a = e.toDate()), s = Ope(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); @@ -83582,7 +83593,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx return o.toDate(); }, "getEndDate"), e5 = 0, fg = /* @__PURE__ */ x(function(t) { return t === void 0 ? (e5 = e5 + 1, "task" + e5) : t; -}, "parseId"), yWt = /* @__PURE__ */ x(function(t, e) { +}, "parseId"), bWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; @@ -83602,7 +83613,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx break; } return s && (i.endTime = Tpe(i.startTime, Sc, s, qx), i.manualEndTime = Ns(s, "YYYY-MM-DD", !0).isValid(), kpe(i, Sc, Ux, Vx)), i; -}, "compileData"), bWt = /* @__PURE__ */ x(function(t, e) { +}, "compileData"), xWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; @@ -83636,7 +83647,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx break; } return i; -}, "parseData"), $9, t5, yi = [], Cpe = {}, xWt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), $9, t5, yi = [], Cpe = {}, wWt = /* @__PURE__ */ x(function(t, e) { const r = { section: O1, type: O1, @@ -83646,21 +83657,21 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx raw: { data: e }, task: t, classes: [] - }, n = bWt(t5, e); + }, n = xWt(t5, e); r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = t5, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = I9, I9++; const i = yi.push(r); t5 = r.id, Cpe[r.id] = i - 1; }, "addTask"), ip = /* @__PURE__ */ x(function(t) { const e = Cpe[t]; return yi[e]; -}, "findTaskById"), wWt = /* @__PURE__ */ x(function(t, e) { +}, "findTaskById"), OWt = /* @__PURE__ */ x(function(t, e) { const r = { section: O1, type: O1, description: t, task: t, classes: [] - }, n = yWt($9, e); + }, n = bWt($9, 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, $9 = r, Wk.push(r); }, "addTaskOrg"), iH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { @@ -83691,7 +83702,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx for (const [r, n] of yi.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), OWt = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), kWt = /* @__PURE__ */ x(function(t, e) { let r = e; be().securityLevel !== "loose" && (r = Uf(e)), t.split(",").forEach(function(n) { ip(n) !== void 0 && (_pe(n, () => { @@ -83703,7 +83714,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx let n = ip(r); n !== void 0 && n.classes.push(e); }); -}, "setClass"), kWt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClass"), SWt = /* @__PURE__ */ x(function(t, e, r) { if (be().securityLevel !== "loose" || e === void 0) return; let n = []; @@ -83732,56 +83743,56 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx }); } ); -}, "pushFun"), SWt = /* @__PURE__ */ x(function(t, e, r) { +}, "pushFun"), TWt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - kWt(n, e, r); + SWt(n, e, r); }), Epe(t, "clickable"); -}, "setClickEvent"), TWt = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), CWt = /* @__PURE__ */ x(function(t) { rP.forEach(function(e) { e(t); }); -}, "bindFunctions"), CWt = { +}, "bindFunctions"), EWt = { getConfig: /* @__PURE__ */ x(() => be().gantt, "getConfig"), - clear: QQt, - setDateFormat: KQt, - getDateFormat: sWt, - enableInclusiveEndDates: JQt, - endDatesAreInclusive: eWt, - enableTopAxis: tWt, - topAxisEnabled: rWt, - setAxisFormat: WQt, - getAxisFormat: GQt, - setTickInterval: HQt, - getTickInterval: XQt, - setTodayMarker: ZQt, - getTodayMarker: jQt, + clear: WQt, + setDateFormat: JQt, + getDateFormat: aWt, + enableInclusiveEndDates: eWt, + endDatesAreInclusive: tWt, + enableTopAxis: rWt, + topAxisEnabled: nWt, + setAxisFormat: GQt, + getAxisFormat: HQt, + setTickInterval: XQt, + getTickInterval: ZQt, + setTodayMarker: jQt, + getTodayMarker: KQt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, - setDisplayMode: nWt, - getDisplayMode: iWt, + setDisplayMode: iWt, + getDisplayMode: sWt, setAccDescription: ys, getAccDescription: bs, - addSection: hWt, - getSections: fWt, - getTasks: dWt, - addTask: xWt, + addSection: fWt, + getSections: dWt, + getTasks: pWt, + addTask: wWt, findTaskById: ip, - addTaskOrg: wWt, - setIncludes: aWt, - getIncludes: oWt, - setExcludes: lWt, - getExcludes: cWt, - setClickEvent: SWt, - setLink: OWt, - getLinks: uWt, - bindFunctions: TWt, + addTaskOrg: OWt, + setIncludes: oWt, + getIncludes: lWt, + setExcludes: cWt, + getExcludes: uWt, + setClickEvent: TWt, + setLink: kWt, + getLinks: hWt, + bindFunctions: CWt, parseDuration: Spe, isInvalidDate: Ope, - setWeekday: pWt, - getWeekday: gWt, - setWeekend: mWt + setWeekday: gWt, + getWeekday: mWt, + setWeekend: vWt }; function sP(t, e, r) { let n = !0; @@ -83792,7 +83803,7 @@ function sP(t, e, r) { }); } x(sP, "getTaskTags"); -var EWt = /* @__PURE__ */ x(function() { +var _Wt = /* @__PURE__ */ x(function() { X.debug("Something is calling, setConf, remove the call"); }, "setConf"), sH = { monday: f2, @@ -83802,7 +83813,7 @@ var EWt = /* @__PURE__ */ x(function() { friday: Nse, saturday: Ise, sunday: hx -}, _Wt = /* @__PURE__ */ x((t, e) => { +}, AWt = /* @__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++) @@ -83811,7 +83822,7 @@ var EWt = /* @__PURE__ */ x(function() { break; } return i; -}, "getMaxIntersections"), uu, AWt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getMaxIntersections"), uu, LWt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().gantt, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -83830,7 +83841,7 @@ var EWt = /* @__PURE__ */ x(function() { L[R.section] === void 0 ? L[R.section] = [R] : L[R.section].push(R); let E = 0; for (const R of Object.keys(L)) { - const _ = _Wt(L[R], E) + 1; + const _ = AWt(L[R], E) + 1; E += _, p += _ * (i.barHeight + i.barGap), d[R] = _; } } else { @@ -83839,11 +83850,11 @@ var EWt = /* @__PURE__ */ x(function() { d[L] = h.filter((E) => E.type === L).length; } u.setAttribute("viewBox", "0 0 " + uu + " " + p); - const g = o.select(`[id="${e}"]`), m = POt().domain([ - Oyt(h, function(L) { + const g = o.select(`[id="${e}"]`), m = $Ot().domain([ + kyt(h, function(L) { return L.startTime; }), - wyt(h, function(L) { + Oyt(h, function(L) { return L.endTime; }) ]).rangeRound([0, uu - i.leftPadding - i.rightPadding]); @@ -83854,7 +83865,7 @@ var EWt = /* @__PURE__ */ x(function() { } x(v, "taskCompare"), h.sort(v), y(h, uu, p), ms(g, p, uu, i.useMaxWidth), g.append("text").text(n.db.getDiagramTitle()).attr("x", uu / 2).attr("y", i.titleTopMargin).attr("class", "titleText"); function y(L, E, R) { - const _ = i.barHeight, A = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, N = jg().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Qbt); + const _ = i.barHeight, A = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, N = jg().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Wbt); w( A, $, @@ -83971,7 +83982,7 @@ var EWt = /* @__PURE__ */ x(function() { } x(w, "drawExcludeDays"); function O(L, E, R, _) { - let A = Ryt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(M3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + let A = Myt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(M3(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 ); @@ -84002,7 +84013,7 @@ var EWt = /* @__PURE__ */ x(function() { } } if (g.append("g").attr("class", "grid").attr("transform", "translate(" + L + ", " + (_ - 50) + ")").call(A).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 = Lyt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(M3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + let N = Ryt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(M3(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) { @@ -84073,10 +84084,10 @@ var EWt = /* @__PURE__ */ x(function() { return R; } x(T, "checkUnique"); -}, "draw"), LWt = { - setConf: EWt, - draw: AWt -}, RWt = /* @__PURE__ */ x((t) => ` +}, "draw"), RWt = { + setConf: _Wt, + draw: LWt +}, MWt = /* @__PURE__ */ x((t) => ` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -84327,68 +84338,68 @@ var EWt = /* @__PURE__ */ x(function() { fill: ${t.titleColor || t.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`, "getStyles"), MWt = RWt, DWt = { - parser: YQt, - db: CWt, - renderer: LWt, - styles: MWt +`, "getStyles"), DWt = MWt, NWt = { + parser: QQt, + db: EWt, + renderer: RWt, + styles: DWt }; -const NWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const IWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: DWt + diagram: NWt }, Symbol.toStringTag, { value: "Module" })); -var IWt = { +var PWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("info", t); X.debug(e); }, "parse") -}, PWt = { version: K8 }, $Wt = /* @__PURE__ */ x(() => PWt.version, "getVersion"), BWt = { - getVersion: $Wt -}, FWt = /* @__PURE__ */ x((t, e, r) => { +}, $Wt = { version: K8 }, BWt = /* @__PURE__ */ x(() => $Wt.version, "getVersion"), FWt = { + getVersion: BWt +}, zWt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering info diagram ` + t); const n = Z0(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"), zWt = { draw: FWt }, VWt = { - parser: IWt, - db: BWt, - renderer: zWt +}, "draw"), VWt = { draw: zWt }, UWt = { + parser: PWt, + db: FWt, + renderer: VWt }; -const UWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const qWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: VWt + diagram: UWt }, Symbol.toStringTag, { value: "Module" })); var Ape = jr.pie, aP = { sections: /* @__PURE__ */ new Map(), showData: !1, config: Ape -}, Hk = aP.sections, oP = aP.showData, qWt = structuredClone(Ape), YWt = /* @__PURE__ */ x(() => structuredClone(qWt), "getConfig"), QWt = /* @__PURE__ */ x(() => { +}, Hk = aP.sections, oP = aP.showData, YWt = structuredClone(Ape), QWt = /* @__PURE__ */ x(() => structuredClone(YWt), "getConfig"), WWt = /* @__PURE__ */ x(() => { Hk = /* @__PURE__ */ new Map(), oP = aP.showData, Xi(); -}, "clear"), WWt = /* @__PURE__ */ x(({ label: t, value: e }) => { +}, "clear"), GWt = /* @__PURE__ */ x(({ label: t, value: e }) => { Hk.has(t) || (Hk.set(t, e), X.debug(`added new section: ${t}, with value: ${e}`)); -}, "addSection"), GWt = /* @__PURE__ */ x(() => Hk, "getSections"), HWt = /* @__PURE__ */ x((t) => { +}, "addSection"), HWt = /* @__PURE__ */ x(() => Hk, "getSections"), XWt = /* @__PURE__ */ x((t) => { oP = t; -}, "setShowData"), XWt = /* @__PURE__ */ x(() => oP, "getShowData"), Lpe = { - getConfig: YWt, - clear: QWt, +}, "setShowData"), ZWt = /* @__PURE__ */ x(() => oP, "getShowData"), Lpe = { + getConfig: QWt, + clear: WWt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: WWt, - getSections: GWt, - setShowData: HWt, - getShowData: XWt -}, ZWt = /* @__PURE__ */ x((t, e) => { + addSection: GWt, + getSections: HWt, + setShowData: XWt, + getShowData: ZWt +}, jWt = /* @__PURE__ */ x((t, e) => { Mx(t, e), e.setShowData(t.showData), t.sections.map(e.addSection); -}, "populateDb"), jWt = { +}, "populateDb"), KWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("pie", t); - X.debug(e), ZWt(e, Lpe); + X.debug(e), jWt(e, Lpe); }, "parse") -}, KWt = /* @__PURE__ */ x((t) => ` +}, JWt = /* @__PURE__ */ x((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -84416,15 +84427,15 @@ var Ape = jr.pie, aP = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), JWt = KWt, eGt = /* @__PURE__ */ x((t) => { +`, "getStyles"), eGt = JWt, tGt = /* @__PURE__ */ x((t) => { const e = [...t.entries()].map((n) => ({ label: n[0], value: n[1] })).sort((n, i) => i.value - n.value); - return jOt().value( + return KOt().value( (n) => n.value )(e); -}, "createPieArcs"), tGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "createPieArcs"), rGt = /* @__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 = Z0(e), p = d.append("g"); @@ -84434,7 +84445,7 @@ var Ape = jr.pie, aP = { m != null || (m = 2); const v = a.textPosition, y = Math.min(f, h) / 2 - o, b = e1().innerRadius(0).outerRadius(y), w = e1().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 = eGt(O), C = [ + const O = i.getSections(), S = tGt(O), C = [ g.pie1, g.pie2, g.pie3, @@ -84468,15 +84479,15 @@ var Ape = jr.pie, aP = { }) ), _ = f + o + l + u + R; d.attr("viewBox", `0 0 ${_} ${h}`), ms(d, h, _, a.useMaxWidth); -}, "draw"), rGt = { draw: tGt }, nGt = { - parser: jWt, +}, "draw"), nGt = { draw: rGt }, iGt = { + parser: KWt, db: Lpe, - renderer: rGt, - styles: JWt + renderer: nGt, + styles: eGt }; -const iGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const sGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: nGt + diagram: iGt }, Symbol.toStringTag, { value: "Module" })); var B9 = function() { var t = /* @__PURE__ */ x(function(ge, xe, ke, Ce) { @@ -84947,7 +84958,7 @@ Expecting ` + Br.join(", ") + ", got '" + (this.terminals_[Ze] || Ze) + "'" : Xr return x(de, "Parser"), de.prototype = ue, ue.Parser = de, new de(); }(); B9.parser = B9; -var sGt = B9, Ks = CD(), Ab, aGt = (Ab = class { +var aGt = B9, Ks = CD(), Ab, oGt = (Ab = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -85303,12 +85314,12 @@ function Mpe(t) { return !/^\d+px$/.test(t); } x(Mpe, "validateSizeInPixels"); -var oGt = be(); +var lGt = be(); function nu(t) { - return ni(t.trim(), oGt); + return ni(t.trim(), lGt); } x(nu, "textSanitizer"); -var cs = new aGt(); +var cs = new oGt(); function Dpe(t) { cs.setData({ quadrant1Text: nu(t.text) }); } @@ -85413,9 +85424,9 @@ function Qpe() { }), cs.setData({ titleText: xs() }), cs.build(); } x(Qpe, "getQuadrantData"); -var lGt = /* @__PURE__ */ x(function() { +var cGt = /* @__PURE__ */ x(function() { cs.clear(), Xi(); -}, "clear"), cGt = { +}, "clear"), uGt = { setWidth: qpe, setHeight: Ype, setQuadrant1Text: Dpe, @@ -85430,14 +85441,14 @@ var lGt = /* @__PURE__ */ x(function() { addPoint: Vpe, addClass: Upe, getQuadrantData: Qpe, - clear: lGt, + clear: cGt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, uGt = /* @__PURE__ */ x((t, e, r, n) => { +}, hGt = /* @__PURE__ */ x((t, e, r, n) => { var L, E, R, _, A, $; function i(k) { return k === "top" ? "hanging" : "middle"; @@ -85471,17 +85482,17 @@ var lGt = /* @__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"), hGt = { - draw: uGt -}, fGt = { - parser: sGt, - db: cGt, - renderer: hGt, +}, "draw"), fGt = { + draw: hGt +}, dGt = { + parser: aGt, + db: uGt, + renderer: fGt, styles: /* @__PURE__ */ x(() => "", "styles") }; -const dGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const pGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: fGt + diagram: dGt }, Symbol.toStringTag, { value: "Module" })); var z9 = function() { var t = /* @__PURE__ */ x(function(N, M, I, D) { @@ -85927,7 +85938,7 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[_e] || _e) + "'" : H return x(k, "Parser"), k.prototype = A, A.Parser = k, new k(); }(); z9.parser = z9; -var pGt = z9; +var gGt = z9; function V9(t) { return t.type === "bar"; } @@ -86217,7 +86228,7 @@ var Rb, Wpe = (Rb = class { } }, (() => { x(Mb, "BaseAxis"); -})(), Mb), Db, gGt = (Db = class extends Gpe { +})(), Mb), Db, mGt = (Db = class extends Gpe { constructor(e, r, n, i, s) { super(e, i, s, r), this.categories = n, this.scale = V8().domain(this.categories).range(this.getRange()); } @@ -86236,7 +86247,7 @@ var Rb, Wpe = (Rb = class { } }, (() => { x(Db, "BandAxis"); -})(), Db), Nb, mGt = (Nb = class extends Gpe { +})(), Db), Nb, vGt = (Nb = class extends Gpe { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = jg().domain(this.domain).range(this.getRange()); } @@ -86255,13 +86266,13 @@ var Rb, Wpe = (Rb = class { })(), Nb); function U9(t, e, r, n) { const i = new Wpe(n); - return lP(t) ? new gGt( + return lP(t) ? new mGt( e, r, t.categories, t.title, i - ) : new mGt( + ) : new vGt( e, r, [t.min, t.max], @@ -86270,7 +86281,7 @@ function U9(t, e, r, n) { ); } x(U9, "getAxis"); -var Ib, vGt = (Ib = class { +var Ib, yGt = (Ib = class { constructor(e, r, n, i) { this.textDimensionCalculator = e, this.chartConfig = r, this.chartData = n, this.chartThemeConfig = i, this.boundingRect = { x: 0, @@ -86316,10 +86327,10 @@ var Ib, vGt = (Ib = class { })(), Ib); function Hpe(t, e, r, n) { const i = new Wpe(n); - return new vGt(i, t, e, r); + return new yGt(i, t, e, r); } x(Hpe, "getChartTitleComponent"); -var Pb, yGt = (Pb = class { +var Pb, bGt = (Pb = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; } @@ -86345,7 +86356,7 @@ var Pb, yGt = (Pb = class { } }, (() => { x(Pb, "LinePlot"); -})(), Pb), $b, bGt = ($b = class { +})(), Pb), $b, xGt = ($b = 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; } @@ -86386,7 +86397,7 @@ var Pb, yGt = (Pb = class { } }, (() => { x($b, "BarPlot"); -})(), $b), Bb, xGt = (Bb = class { +})(), $b), Bb, wGt = (Bb = class { constructor(e, r, n) { this.chartConfig = e, this.chartData = r, this.chartThemeConfig = n, this.boundingRect = { x: 0, @@ -86415,7 +86426,7 @@ var Pb, yGt = (Pb = class { switch (n.type) { case "line": { - const i = new yGt( + const i = new bGt( n, this.xAxis, this.yAxis, @@ -86427,7 +86438,7 @@ var Pb, yGt = (Pb = class { break; case "bar": { - const i = new bGt( + const i = new xGt( n, this.boundingRect, this.xAxis, @@ -86445,10 +86456,10 @@ var Pb, yGt = (Pb = class { x(Bb, "BasePlot"); })(), Bb); function Xpe(t, e, r) { - return new xGt(t, e, r); + return new wGt(t, e, r); } x(Xpe, "getPlotComponent"); -var Fb, wGt = (Fb = class { +var Fb, OGt = (Fb = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { title: Hpe(e, r, n, i), @@ -86532,9 +86543,9 @@ var Fb, wGt = (Fb = class { } }, (() => { x(Fb, "Orchestrator"); -})(), Fb), zb, OGt = (zb = class { +})(), Fb), zb, kGt = (zb = class { static build(e, r, n, i) { - return new wGt(e, r, n, i).getDrawableElement(); + return new OGt(e, r, n, i).getDrawableElement(); } }, (() => { x(zb, "XYChartBuilder"); @@ -86660,7 +86671,7 @@ x(sge, "setBarData"); function age() { if (Gr.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return Gr.title = xs(), OGt.build($2, Gr, B2, Zpe); + return Gr.title = xs(), kGt.build($2, Gr, B2, Zpe); } x(age, "getDrawableElem"); function oge() { @@ -86671,11 +86682,11 @@ function lge() { return $2; } x(lge, "getChartConfig"); -var kGt = /* @__PURE__ */ x(function() { +var SGt = /* @__PURE__ */ x(function() { Xi(), P2 = 0, $2 = hP(), Gr = fP(), B2 = uP(), q9 = B2.plotColorPalette.split(",").map((t) => t.trim()), DC = !1, cP = !1; -}, "clear"), SGt = { +}, "clear"), TGt = { getDrawableElem: age, - clear: kGt, + clear: SGt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, @@ -86693,7 +86704,7 @@ var kGt = /* @__PURE__ */ x(function() { setTmpSVGG: jpe, getChartThemeConfig: oge, getChartConfig: lge -}, TGt = /* @__PURE__ */ x((t, e, r, n) => { +}, 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"; @@ -86736,16 +86747,16 @@ var kGt = /* @__PURE__ */ x(function() { break; } } -}, "draw"), CGt = { - draw: TGt -}, EGt = { - parser: pGt, - db: SGt, - renderer: CGt +}, "draw"), EGt = { + draw: CGt +}, _Gt = { + parser: gGt, + db: TGt, + renderer: EGt }; -const _Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const AGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: EGt + diagram: _Gt }, Symbol.toStringTag, { value: "Module" })); var Y9 = function() { var t = /* @__PURE__ */ x(function(ee, Q, ne, ie) { @@ -87215,23 +87226,23 @@ Expecting ` + ke.join(", ") + ", got '" + (this.terminals_[oe] || oe) + "'" : Ce return x(G, "Parser"), G.prototype = V, V.Parser = G, new G(); }(); Y9.parser = Y9; -var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), LGt = { +var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), RGt = { REQUIREMENT: "Requirement", FUNCTIONAL_REQUIREMENT: "Functional Requirement", INTERFACE_REQUIREMENT: "Interface Requirement", PERFORMANCE_REQUIREMENT: "Performance Requirement", PHYSICAL_REQUIREMENT: "Physical Requirement", DESIGN_CONSTRAINT: "Design Constraint" -}, RGt = { +}, MGt = { LOW_RISK: "Low", MED_RISK: "Medium", HIGH_RISK: "High" -}, MGt = { +}, DGt = { VERIFY_ANALYSIS: "Analysis", VERIFY_DEMONSTRATION: "Demonstration", VERIFY_INSPECTION: "Inspection", VERIFY_TEST: "Test" -}, DGt = { +}, NGt = { CONTAINS: "contains", COPIES: "copies", DERIVES: "derives", @@ -87239,61 +87250,61 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* VERIFIES: "verifies", REFINES: "refines", TRACES: "traces" -}, NGt = /* @__PURE__ */ x((t, e) => (dy.has(t) || dy.set(t, { +}, IGt = /* @__PURE__ */ x((t, e) => (dy.has(t) || dy.set(t, { name: t, type: e, id: La.id, text: La.text, risk: La.risk, verifyMethod: La.verifyMethod -}), La = {}, dy.get(t)), "addRequirement"), IGt = /* @__PURE__ */ x(() => dy, "getRequirements"), PGt = /* @__PURE__ */ x((t) => { +}), La = {}, dy.get(t)), "addRequirement"), PGt = /* @__PURE__ */ x(() => dy, "getRequirements"), $Gt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.id = t); -}, "setNewReqId"), $Gt = /* @__PURE__ */ x((t) => { +}, "setNewReqId"), BGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.text = t); -}, "setNewReqText"), BGt = /* @__PURE__ */ x((t) => { +}, "setNewReqText"), FGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.risk = t); -}, "setNewReqRisk"), FGt = /* @__PURE__ */ x((t) => { +}, "setNewReqRisk"), zGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.verifyMethod = t); -}, "setNewReqVerifyMethod"), zGt = /* @__PURE__ */ x((t) => (py.has(t) || (py.set(t, { +}, "setNewReqVerifyMethod"), VGt = /* @__PURE__ */ x((t) => (py.has(t) || (py.set(t, { name: t, type: rf.type, docRef: rf.docRef -}), X.info("Added new requirement: ", t)), rf = {}, py.get(t)), "addElement"), VGt = /* @__PURE__ */ x(() => py, "getElements"), UGt = /* @__PURE__ */ x((t) => { +}), X.info("Added new requirement: ", t)), rf = {}, py.get(t)), "addElement"), UGt = /* @__PURE__ */ x(() => py, "getElements"), qGt = /* @__PURE__ */ x((t) => { rf !== void 0 && (rf.type = t); -}, "setNewElementType"), qGt = /* @__PURE__ */ x((t) => { +}, "setNewElementType"), YGt = /* @__PURE__ */ x((t) => { rf !== void 0 && (rf.docRef = t); -}, "setNewElementDocRef"), YGt = /* @__PURE__ */ x((t, e, r) => { +}, "setNewElementDocRef"), QGt = /* @__PURE__ */ x((t, e, r) => { mP.push({ type: t, src: e, dst: r }); -}, "addRelationship"), QGt = /* @__PURE__ */ x(() => mP, "getRelationships"), WGt = /* @__PURE__ */ x(() => { +}, "addRelationship"), WGt = /* @__PURE__ */ x(() => mP, "getRelationships"), GGt = /* @__PURE__ */ x(() => { mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), GGt = { - RequirementType: LGt, - RiskLevel: RGt, - VerifyType: MGt, - Relationships: DGt, +}, "clear"), HGt = { + RequirementType: RGt, + RiskLevel: MGt, + VerifyType: DGt, + Relationships: NGt, getConfig: /* @__PURE__ */ x(() => be().req, "getConfig"), - addRequirement: NGt, - getRequirements: IGt, - setNewReqId: PGt, - setNewReqText: $Gt, - setNewReqRisk: BGt, - setNewReqVerifyMethod: FGt, + addRequirement: IGt, + getRequirements: PGt, + setNewReqId: $Gt, + setNewReqText: BGt, + setNewReqRisk: FGt, + setNewReqVerifyMethod: zGt, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addElement: zGt, - getElements: VGt, - setNewElementType: UGt, - setNewElementDocRef: qGt, - addRelationship: YGt, - getRelationships: QGt, - clear: WGt -}, HGt = /* @__PURE__ */ x((t) => ` + addElement: VGt, + getElements: UGt, + setNewElementType: qGt, + setNewElementDocRef: YGt, + addRelationship: QGt, + getRelationships: WGt, + clear: GGt +}, XGt = /* @__PURE__ */ x((t) => ` marker { fill: ${t.relationColor}; @@ -87336,10 +87347,10 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* fill: ${t.relationLabelColor}; } -`, "getStyles"), XGt = HGt, Q9 = { +`, "getStyles"), ZGt = XGt, Q9 = { CONTAINS: "contains", ARROW: "arrow" -}, ZGt = /* @__PURE__ */ x((t, e) => { +}, jGt = /* @__PURE__ */ x((t, e) => { let r = t.append("defs").append("marker").attr("id", Q9.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", Q9.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", @@ -87350,7 +87361,7 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* ).attr("stroke-width", 1); }, "insertLineEndings"), cge = { ReqMarkers: Q9, - insertLineEndings: ZGt + insertLineEndings: jGt }, Vn = {}, lH = 0, uge = /* @__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"), hge = /* @__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) => { @@ -87380,12 +87391,12 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* }), o.forEach((l) => { i.append("tspan").attr("x", Vn.rect_padding).attr("dy", Vn.line_height).text(l); }), i; -}, "newBodyNode"), jGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "newBodyNode"), KGt = /* @__PURE__ */ x((t, e, r, n) => { const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + lH; lH++; 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"), KGt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addEdgeLabel"), JGt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = r.edge(k1(e.src), k1(e.dst)), a = yf().x(function(l) { return l.x; }).y(function(l) { @@ -87397,8 +87408,8 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + cge.ReqMarkers.ARROW + "_line_ending)" - )), jGt(t, o, Vn, `<<${e.type}>>`); -}, "drawRelationshipFromLayout"), JGt = /* @__PURE__ */ x((t, e, r) => { + )), KGt(t, o, Vn, `<<${e.type}>>`); +}, "drawRelationshipFromLayout"), eHt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = k1(i), X.info("Added new requirement: ", i); const s = r.append("g").attr("id", i), a = "req-" + i, o = uge(s, a); @@ -87427,7 +87438,7 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* id: i }); }); -}, "drawReqs"), eHt = /* @__PURE__ */ x((t, e, r) => { +}, "drawReqs"), tHt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { const s = k1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = uge(a, o); let u = [], h = hge(a, o + "_title", ["<>", `${i}`]); @@ -87447,17 +87458,17 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* id: s }); }); -}, "drawElements"), tHt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { +}, "drawElements"), rHt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { let n = k1(r.src), i = k1(r.dst); e.setEdge(n, i, { relationship: r }); -}), t), "addRelationships"), rHt = /* @__PURE__ */ x(function(t, e) { +}), t), "addRelationships"), nHt = /* @__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"), k1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), nHt = /* @__PURE__ */ x((t, e, r, n) => { +}, "adjustEntities"), k1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), iHt = /* @__PURE__ */ x((t, e, r, n) => { Vn = be().requirement; const i = Vn.securityLevel; let s; @@ -87479,22 +87490,22 @@ var AGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* return {}; }); let u = n.db.getRequirements(), h = n.db.getElements(), f = n.db.getRelationships(); - JGt(u, l, o), eHt(h, l, o), tHt(f, l), om(l), rHt(o, l), f.forEach(function(v) { - KGt(o, v, l, e, n); + eHt(u, l, o), tHt(h, l, o), rHt(f, l), om(l), nHt(o, l), f.forEach(function(v) { + JGt(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"), iHt = { - draw: nHt -}, sHt = { - parser: AGt, - db: GGt, - renderer: iHt, - styles: XGt -}; -const aHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, "draw"), sHt = { + draw: iHt +}, aHt = { + parser: LGt, + db: HGt, + renderer: sHt, + styles: ZGt +}; +const oHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: sHt + diagram: aHt }, Symbol.toStringTag, { value: "Module" })); var W9 = function() { var t = /* @__PURE__ */ x(function(U, Z, W, j) { @@ -88086,7 +88097,7 @@ Expecting ` + Te.join(", ") + ", got '" + (this.terminals_[fe] || fe) + "'" : Xe return x(ie, "Parser"), ie.prototype = Q, Q.Parser = ie, new ie(); }(); W9.parser = W9; -var oHt = W9, It = new kI(() => ({ +var lHt = W9, It = new kI(() => ({ prevActor: void 0, actors: /* @__PURE__ */ new Map(), createdActors: /* @__PURE__ */ new Map(), @@ -88099,7 +88110,7 @@ var oHt = W9, It = new kI(() => ({ currentBox: void 0, lastCreated: void 0, lastDestroyed: void 0 -})), lHt = /* @__PURE__ */ x(function(t) { +})), cHt = /* @__PURE__ */ x(function(t) { var e; It.records.boxes.push({ name: t.text, @@ -88135,14 +88146,14 @@ var oHt = W9, It = new kI(() => ({ o && (o.nextActor = t); } It.records.currentBox && It.records.currentBox.actorKeys.push(t), It.records.prevActor = t; -}, "addActor"), cHt = /* @__PURE__ */ x((t) => { +}, "addActor"), uHt = /* @__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 === F2.ACTIVE_START && It.records.messages[e].from === t && r++, It.records.messages[e].type === F2.ACTIVE_END && It.records.messages[e].from === t && r--; return r; -}, "activationCount"), uHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "activationCount"), hHt = /* @__PURE__ */ x(function(t, e, r, n) { var i; It.records.messages.push({ from: t, @@ -88153,7 +88164,7 @@ var oHt = W9, It = new kI(() => ({ }); }, "addMessage"), Gn = /* @__PURE__ */ x(function(t, e, r, n, i = !1) { var s, a; - if (n === F2.ACTIVE_END && cHt(t != null ? t : "") < 1) { + if (n === F2.ACTIVE_END && uHt(t != null ? t : "") < 1) { const l = new Error("Trying to inactivate an inactive participant (" + t + ")"); throw l.hash = { text: "->>-", @@ -88171,29 +88182,29 @@ var oHt = W9, It = new kI(() => ({ type: n, activate: i }), !0; -}, "addSignal"), hHt = /* @__PURE__ */ x(function() { +}, "addSignal"), fHt = /* @__PURE__ */ x(function() { return It.records.boxes.length > 0; -}, "hasAtLeastOneBox"), fHt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBox"), dHt = /* @__PURE__ */ x(function() { return It.records.boxes.some((t) => t.name); -}, "hasAtLeastOneBoxWithTitle"), dHt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBoxWithTitle"), pHt = /* @__PURE__ */ x(function() { return It.records.messages; -}, "getMessages"), pHt = /* @__PURE__ */ x(function() { +}, "getMessages"), gHt = /* @__PURE__ */ x(function() { return It.records.boxes; -}, "getBoxes"), gHt = /* @__PURE__ */ x(function() { +}, "getBoxes"), mHt = /* @__PURE__ */ x(function() { return It.records.actors; -}, "getActors"), mHt = /* @__PURE__ */ x(function() { +}, "getActors"), vHt = /* @__PURE__ */ x(function() { return It.records.createdActors; -}, "getCreatedActors"), vHt = /* @__PURE__ */ x(function() { +}, "getCreatedActors"), yHt = /* @__PURE__ */ x(function() { return It.records.destroyedActors; }, "getDestroyedActors"), Yx = /* @__PURE__ */ x(function(t) { return It.records.actors.get(t); -}, "getActor"), yHt = /* @__PURE__ */ x(function() { +}, "getActor"), bHt = /* @__PURE__ */ x(function() { return [...It.records.actors.keys()]; -}, "getActorKeys"), bHt = /* @__PURE__ */ x(function() { +}, "getActorKeys"), xHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !0; -}, "enableSequenceNumbers"), xHt = /* @__PURE__ */ x(function() { +}, "enableSequenceNumbers"), wHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !1; -}, "disableSequenceNumbers"), wHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), OHt = /* @__PURE__ */ x(function(t) { +}, "disableSequenceNumbers"), OHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), kHt = /* @__PURE__ */ x(function(t) { It.records.wrapEnabled = t; }, "setWrap"), dge = /* @__PURE__ */ x((t) => { if (t === void 0) @@ -88204,15 +88215,15 @@ var oHt = W9, It = new kI(() => ({ }, "extractWrap"), k0 = /* @__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"), kHt = /* @__PURE__ */ x(function() { +}, "autoWrap"), SHt = /* @__PURE__ */ x(function() { It.reset(), Xi(); -}, "clear"), SHt = /* @__PURE__ */ x(function(t) { +}, "clear"), THt = /* @__PURE__ */ x(function(t) { const e = t.trim(), { wrap: r, cleanedText: n } = dge(e), i = { text: n, wrap: r }; return X.debug(`parseMessage: ${JSON.stringify(i)}`), i; -}, "parseMessage"), THt = /* @__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) @@ -88260,10 +88271,10 @@ var oHt = W9, It = new kI(() => ({ PAR_OVER_START: 32, BIDIRECTIONAL_SOLID: 33, BIDIRECTIONAL_DOTTED: 34 -}, CHt = { +}, EHt = { FILLED: 0, OPEN: 1 -}, EHt = { +}, _Ht = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 @@ -88293,7 +88304,7 @@ var oHt = W9, It = new kI(() => ({ } catch (n) { X.error("error while parsing actor link text", n); } -}, "addLinks"), _Ht = /* @__PURE__ */ x(function(t, e) { +}, "addLinks"), AHt = /* @__PURE__ */ x(function(t, e) { const r = Yx(t); try { const n = {}; @@ -88343,7 +88354,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { } catch (i) { X.error("error while parsing actor details text", i); } -}, "addDetails"), AHt = /* @__PURE__ */ x(function(t, e) { +}, "addDetails"), LHt = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; }, "getActorProperty"), bge = /* @__PURE__ */ x(function(t) { @@ -88392,7 +88403,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { gge(t.actor, t.text); break; case "addALink": - _Ht(t.actor, t.text); + AHt(t.actor, t.text); break; case "addProperties": mge(t.actor, t.text); @@ -88417,7 +88428,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { Gn(t.from, t.to, t.msg, t.signalType, t.activate); break; case "boxStart": - lHt(t.boxData); + cHt(t.boxData); break; case "boxEnd": vge(); @@ -88479,42 +88490,42 @@ var yge = /* @__PURE__ */ x(function(t, e) { } }, "apply"), cH = { addActor: G9, - addMessage: uHt, + addMessage: hHt, addSignal: Gn, addLinks: gge, addDetails: yge, addProperties: mge, autoWrap: k0, - setWrap: OHt, - enableSequenceNumbers: bHt, - disableSequenceNumbers: xHt, - showSequenceNumbers: wHt, - getMessages: dHt, - getActors: gHt, - getCreatedActors: mHt, - getDestroyedActors: vHt, + setWrap: kHt, + enableSequenceNumbers: xHt, + disableSequenceNumbers: wHt, + showSequenceNumbers: OHt, + getMessages: pHt, + getActors: mHt, + getCreatedActors: vHt, + getDestroyedActors: yHt, getActor: Yx, - getActorKeys: yHt, - getActorProperty: AHt, + getActorKeys: bHt, + getActorProperty: LHt, getAccTitle: vs, - getBoxes: pHt, + getBoxes: gHt, getDiagramTitle: xs, setDiagramTitle: fa, getConfig: /* @__PURE__ */ x(() => be().sequence, "getConfig"), - clear: kHt, - parseMessage: SHt, - parseBoxData: THt, + clear: SHt, + parseMessage: THt, + parseBoxData: CHt, LINETYPE: F2, - ARROWTYPE: CHt, - PLACEMENT: EHt, + ARROWTYPE: EHt, + PLACEMENT: _Ht, addNote: pge, setAccTitle: Zi, apply: bge, setAccDescription: ys, getAccDescription: bs, - hasAtLeastOneBox: hHt, - hasAtLeastOneBoxWithTitle: fHt -}, LHt = /* @__PURE__ */ x((t) => `.actor { + hasAtLeastOneBox: fHt, + hasAtLeastOneBoxWithTitle: dHt +}, RHt = /* @__PURE__ */ x((t) => `.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; } @@ -88630,9 +88641,9 @@ var yge = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), RHt = LHt, Bd = 18 * 2, xge = "actor-top", wge = "actor-bottom", MHt = "actor-box", uH = "actor-man", yP = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), MHt = RHt, Bd = 18 * 2, xge = "actor-top", wge = "actor-bottom", DHt = "actor-box", uH = "actor-man", yP = /* @__PURE__ */ x(function(t, e) { return uC(t, e); -}, "drawRect"), DHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawRect"), NHt = /* @__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; @@ -88648,7 +88659,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { var p = 20; for (let v in s) { var g = u.append("a"), m = Uf(s[v]); - g.attr("xlink:href", m), g.attr("target", "_blank"), ZHt(n)( + g.attr("xlink:href", m), g.attr("target", "_blank"), jHt(n)( v, g, o.x + 10, @@ -88661,7 +88672,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { } } return d.attr("height", p), { height: o.height + p, width: f }; -}, "drawPopup"), NHt = /* @__PURE__ */ x(function(t) { +}, "drawPopup"), IHt = /* @__PURE__ */ x(function(t) { return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; }, "popupMenuToggle"), Xk = /* @__PURE__ */ x(async function(t, e, r = null) { let n = t.append("foreignObject"); @@ -88741,18 +88752,18 @@ var yge = /* @__PURE__ */ x(function(t, e) { 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"), IHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "fixLifeLineHeights"), PHt = /* @__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", NHt(`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", IHt(`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 = ep(); var h = "actor"; (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${wge}` : h += ` ${xge}`, 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 = yP(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); - m.charAt(0) === "@" ? OIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : wIt(l, u.x + u.width - 20, u.y + 10, m); + m.charAt(0) === "@" ? kIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : OIt(l, u.x + u.width - 20, u.y + 10, m); } bP(r, ca(e.description))( e.description, @@ -88761,7 +88772,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { u.y, u.width, u.height, - { class: `actor ${MHt}` }, + { class: `actor ${DHt}` }, r ); let d = e.height; @@ -88770,7 +88781,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { e.height = m.height, d = m.height; } return d; -}, "drawActorTypeParticipant"), PHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActorTypeParticipant"), $Ht = /* @__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"); @@ -88791,14 +88802,14 @@ var yge = /* @__PURE__ */ x(function(t, e) { { class: `actor ${uH}` }, r ), e.height; -}, "drawActorTypeActor"), $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActorTypeActor"), BHt = /* @__PURE__ */ x(async function(t, e, r, n) { switch (e.type) { case "actor": - return await PHt(t, e, r, n); + return await $Ht(t, e, r, n); case "participant": - return await IHt(t, e, r, n); + return await PHt(t, e, r, n); } -}, "drawActor"), BHt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawActor"), FHt = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); Sge(i, e), e.name && bP(r)( e.name, @@ -88810,12 +88821,12 @@ var yge = /* @__PURE__ */ x(function(t, e) { { class: "text" }, r ), i.lower(); -}, "drawBox"), FHt = /* @__PURE__ */ x(function(t) { +}, "drawBox"), zHt = /* @__PURE__ */ x(function(t) { return t.append("g"); -}, "anchorElement"), zHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "anchorElement"), VHt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = ep(), 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, yP(a, s); -}, "drawActivation"), VHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActivation"), UHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { boxMargin: i, boxTextMargin: s, @@ -88849,28 +88860,28 @@ var yge = /* @__PURE__ */ x(function(t, e) { return e.height = Math.round(e.stopy - e.starty), f; }, "drawLoop"), Sge = /* @__PURE__ */ x(function(t, e) { hfe(t, e); -}, "drawBackgroundRect"), UHt = /* @__PURE__ */ x(function(t) { +}, "drawBackgroundRect"), qHt = /* @__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"), qHt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), YHt = /* @__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"), YHt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), QHt = /* @__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"), QHt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), WHt = /* @__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"), WHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), GHt = /* @__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"), GHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), HHt = /* @__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"), HHt = /* @__PURE__ */ x(function(t) { +}, "insertSequenceNumber"), XHt = /* @__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"), Tge = /* @__PURE__ */ x(function() { return { @@ -88887,7 +88898,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { tspan: !0, valign: void 0 }; -}, "getTextObj"), XHt = /* @__PURE__ */ x(function() { +}, "getTextObj"), ZHt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -88930,7 +88941,7 @@ var yge = /* @__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; }; -}(), ZHt = /* @__PURE__ */ function() { +}(), jHt = /* @__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); @@ -88960,22 +88971,22 @@ var yge = /* @__PURE__ */ x(function(t, e) { drawRect: yP, drawText: S1, drawLabel: Oge, - drawActor: $Ht, - drawBox: BHt, - drawPopup: DHt, - anchorElement: FHt, - drawActivation: zHt, - drawLoop: VHt, + drawActor: BHt, + drawBox: FHt, + drawPopup: NHt, + anchorElement: zHt, + drawActivation: VHt, + drawLoop: UHt, drawBackgroundRect: Sge, - insertArrowHead: QHt, - insertArrowFilledHead: WHt, - insertSequenceNumber: GHt, - insertArrowCrossHead: HHt, - insertDatabaseIcon: UHt, - insertComputerIcon: qHt, - insertClockIcon: YHt, + insertArrowHead: WHt, + insertArrowFilledHead: GHt, + insertSequenceNumber: HHt, + insertArrowCrossHead: XHt, + insertDatabaseIcon: qHt, + insertComputerIcon: YHt, + insertClockIcon: QHt, getTextObj: Tge, - getNoteRect: XHt, + getNoteRect: ZHt, fixLifeLineHeights: kge, sanitizeUrl: Uf }, Ie = {}, nt = { @@ -89116,7 +89127,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { getBounds: /* @__PURE__ */ x(function() { return { bounds: this.data, models: this.models }; }, "getBounds") -}, jHt = /* @__PURE__ */ x(async function(t, e) { +}, KHt = /* @__PURE__ */ x(async function(t, e) { nt.bumpVerticalPos(Ie.boxMargin), e.height = Ie.boxMargin, e.starty = nt.getVerticalPos(); const r = ep(); r.x = e.startx, r.y = e.starty, r.width = e.width || Ie.width, r.class = "note"; @@ -89162,7 +89173,7 @@ async function Cge(t, e) { 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(Cge, "boundMessage"); -var KHt = /* @__PURE__ */ x(async function(t, e, r, n) { +var JHt = /* @__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, S0(Ie)), d = fI(); 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 Xk(t, d, { startx: i, stopx: s, starty: r }) : S1(t, d); const p = f.width; @@ -89176,7 +89187,7 @@ var KHt = /* @__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"), JHt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "drawMessage"), eXt = /* @__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; @@ -89202,7 +89213,7 @@ var KHt = /* @__PURE__ */ x(async function(t, e, r, n) { }, "drawActors"), Ege = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { - const o = e.get(a), l = tXt(o), u = Hn.drawPopup( + const o = e.get(a), l = rXt(o), u = Hn.drawPopup( t, o, l, @@ -89293,7 +89304,7 @@ function Age(t, e, r, n, i, s, a) { } } x(Age, "adjustCreatedDestroyedData"); -var eXt = /* @__PURE__ */ x(async function(t, e, r, n) { +var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = be(); Ie = s; let a; @@ -89309,8 +89320,8 @@ var eXt = /* @__PURE__ */ x(async function(t, e, r, n) { D.add(P.from), D.add(P.to); }), g = g.filter((P) => D.has(P)); } - JHt(u, h, f, g, 0, m, !1); - const O = await iXt(m, h, w, n); + eXt(u, h, f, g, 0, m, !1); + const O = await sXt(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); @@ -89330,7 +89341,7 @@ var eXt = /* @__PURE__ */ x(async function(t, e, r, n) { let P, F, B; switch (D.type) { case n.db.LINETYPE.NOTE: - nt.resetVerticalPos(), F = D.noteModel, await jHt(u, F); + nt.resetVerticalPos(), F = D.noteModel, await KHt(u, F); break; case n.db.LINETYPE.ACTIVE_START: nt.newActivation(D, u, h); @@ -89485,7 +89496,7 @@ var eXt = /* @__PURE__ */ x(async function(t, e, r, n) { } X.debug("createdActors", f), X.debug("destroyedActors", d), await X9(u, h, g, !1); for (const D of L) - await KHt(u, D.messageModel, D.lineStartY, n); + await JHt(u, D.messageModel, D.lineStartY, n); Ie.mirrorActors && await X9(u, h, g, !0), E.forEach((D) => Hn.drawBackgroundRect(u, D)), kge(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); @@ -89543,7 +89554,7 @@ async function Lge(t, e, r) { return X.debug("maxMessageWidthPerActor:", n), n; } x(Lge, "getMaxMessageWidthPerActor"); -var tXt = /* @__PURE__ */ x(function(t) { +var rXt = /* @__PURE__ */ x(function(t) { let e = 0; const r = H9(Ie); for (const n in t.links) { @@ -89592,7 +89603,7 @@ async function Rge(t, e, r) { }), r.forEach((s) => s.textMaxHeight = i), at.getMax(n, Ie.height); } x(Rge, "calculateActorMargins"); -var rXt = /* @__PURE__ */ x(async function(t, e, r) { +var nXt = /* @__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 ox(t.message, be()) : sr.calculateTextDimensions( o ? sr.wrapLabel(t.message, Ie.width, Ap(Ie)) : t.message, @@ -89623,7 +89634,7 @@ var rXt = /* @__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"), nXt = /* @__PURE__ */ x(function(t, e, r) { +}, "buildNoteModel"), iXt = /* @__PURE__ */ x(function(t, e, r) { if (![ r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN, @@ -89667,7 +89678,7 @@ var rXt = /* @__PURE__ */ x(async function(t, e, r) { fromBounds: Math.min.apply(null, d), toBounds: Math.max.apply(null, d) }; -}, "buildMessageModel"), iXt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "buildMessageModel"), sXt = /* @__PURE__ */ x(async function(t, e, r, n) { const i = {}, s = []; let a, o, l; for (const u of t) { @@ -89718,9 +89729,9 @@ var rXt = /* @__PURE__ */ x(async function(t, e, r) { } break; } - u.placement !== void 0 ? (o = await rXt(u, e, n), u.noteModel = o, s.forEach((f) => { + u.placement !== void 0 ? (o = await nXt(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 = nXt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { + })) : (l = iXt(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( @@ -89737,24 +89748,24 @@ var rXt = /* @__PURE__ */ x(async function(t, e, r) { })); } return nt.activations = [], X.debug("Loop type widths:", i), i; -}, "calculateLoopBounds"), sXt = { +}, "calculateLoopBounds"), aXt = { bounds: nt, drawActors: X9, drawActorsPopup: Ege, setConf: _ge, - draw: eXt -}, aXt = { - parser: oHt, + draw: tXt +}, oXt = { + parser: lHt, db: cH, - renderer: sXt, - styles: RHt, + renderer: aXt, + styles: MHt, init: /* @__PURE__ */ x(({ wrap: t }) => { cH.setWrap(t); }, "init") }; -const oXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const lXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: aXt + diagram: oXt }, Symbol.toStringTag, { value: "Module" })); var Z9 = function() { var t = /* @__PURE__ */ x(function(Qe, De, he, H) { @@ -90475,7 +90486,7 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { n = T0(i[0]), r = T0(i[1]); } return { className: n, type: r }; -}, "splitClassNameAndType"), lXt = /* @__PURE__ */ x(function(t, e) { +}, "splitClassNameAndType"), cXt = /* @__PURE__ */ x(function(t, e) { const r = at.sanitizeText(t, be()); e && (e = T0(e)); const { className: n } = C0(r); @@ -90501,19 +90512,19 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { if (Ni.has(e)) return Ni.get(e).domId; throw new Error("Class not found: " + e); -}, "lookUpDomId"), cXt = /* @__PURE__ */ x(function() { +}, "lookUpDomId"), uXt = /* @__PURE__ */ x(function() { xP = [], Ni = /* @__PURE__ */ new Map(), Zk = [], z2 = [], z2.push(Ige), Ju = /* @__PURE__ */ new Map(), j9 = 0, OP = "TB", Xi(); -}, "clear"), uXt = /* @__PURE__ */ x(function(t) { +}, "clear"), hXt = /* @__PURE__ */ x(function(t) { return Ni.get(t); -}, "getClass"), hXt = /* @__PURE__ */ x(function() { +}, "getClass"), fXt = /* @__PURE__ */ x(function() { return Ni; -}, "getClasses"), fXt = /* @__PURE__ */ x(function() { +}, "getClasses"), dXt = /* @__PURE__ */ x(function() { return xP; -}, "getRelations"), dXt = /* @__PURE__ */ x(function() { +}, "getRelations"), pXt = /* @__PURE__ */ x(function() { return Zk; -}, "getNotes"), pXt = /* @__PURE__ */ x(function(t) { +}, "getNotes"), gXt = /* @__PURE__ */ x(function(t) { X.debug("Adding relation: " + JSON.stringify(t)), jk(t.id1), jk(t.id2), t.id1 = C0(t.id1).className, t.id2 = C0(t.id2).className, t.relationTitle1 = at.sanitizeText(t.relationTitle1.trim(), be()), t.relationTitle2 = at.sanitizeText(t.relationTitle2.trim(), be()), xP.push(t); -}, "addRelation"), gXt = /* @__PURE__ */ x(function(t, e) { +}, "addRelation"), mXt = /* @__PURE__ */ x(function(t, e) { const r = C0(t).className; Ni.get(r).annotations.push(e); }, "addAnnotation"), Nge = /* @__PURE__ */ x(function(t, e) { @@ -90523,16 +90534,16 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { const i = e.trim(); i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(T0(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new dH(i, "method")) : i && n.members.push(new dH(i, "attribute")); } -}, "addMember"), mXt = /* @__PURE__ */ x(function(t, e) { +}, "addMember"), vXt = /* @__PURE__ */ x(function(t, e) { Array.isArray(e) && (e.reverse(), e.forEach((r) => Nge(t, r))); -}, "addMembers"), vXt = /* @__PURE__ */ x(function(t, e) { +}, "addMembers"), yXt = /* @__PURE__ */ x(function(t, e) { const r = { id: `note${Zk.length}`, class: e, text: t }; Zk.push(r); -}, "addNote"), yXt = /* @__PURE__ */ x(function(t) { +}, "addNote"), bXt = /* @__PURE__ */ x(function(t) { return t.startsWith(":") && (t = t.substring(1)), T0(t.trim()); }, "cleanupLabel"), wP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -90541,13 +90552,13 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { const i = Ni.get(n); i && i.cssClasses.push(e); }); -}, "setCssClass"), bXt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), xXt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { e !== void 0 && (Ni.get(r).tooltip = T0(e)); }); -}, "setTooltip"), xXt = /* @__PURE__ */ x(function(t, e) { +}, "setTooltip"), wXt = /* @__PURE__ */ x(function(t, e) { return e && Ju.has(e) ? Ju.get(e).classes.get(t).tooltip : Ni.get(t).tooltip; -}, "getTooltip"), wXt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), OXt = /* @__PURE__ */ x(function(t, e, r) { const n = be(); t.split(",").forEach(function(i) { let s = i; @@ -90555,11 +90566,11 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { const a = Ni.get(s); a && (a.link = sr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = T0(r) : a.linkTarget = "_blank"); }), wP(t, "clickable"); -}, "setLink"), OXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setLink"), kXt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - kXt(n, e, r), Ni.get(n).haveCallback = !0; + SXt(n, e, r), Ni.get(n).haveCallback = !0; }), wP(t, "clickable"); -}, "setClickEvent"), kXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickEvent"), SXt = /* @__PURE__ */ x(function(t, e, r) { const n = at.sanitizeText(t, be()); if (be().securityLevel !== "loose" || e === void 0) return; @@ -90585,14 +90596,14 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { ); }); } -}, "setClickFunc"), SXt = /* @__PURE__ */ x(function(t) { +}, "setClickFunc"), TXt = /* @__PURE__ */ x(function(t) { z2.forEach(function(e) { e(t); }); -}, "bindFunctions"), TXt = { +}, "bindFunctions"), CXt = { LINE: 0, DOTTED_LINE: 1 -}, CXt = { +}, EXt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, @@ -90611,26 +90622,26 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { }); }, "setupToolTips"); z2.push(Ige); -var OP = "TB", EXt = /* @__PURE__ */ x(() => OP, "getDirection"), _Xt = /* @__PURE__ */ x((t) => { +var OP = "TB", _Xt = /* @__PURE__ */ x(() => OP, "getDirection"), AXt = /* @__PURE__ */ x((t) => { OP = t; -}, "setDirection"), AXt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), LXt = /* @__PURE__ */ x(function(t) { Ju.has(t) || (Ju.set(t, { id: t, classes: /* @__PURE__ */ new Map(), children: {}, domId: $C + t + "-" + j9 }), j9++); -}, "addNamespace"), LXt = /* @__PURE__ */ x(function(t) { +}, "addNamespace"), RXt = /* @__PURE__ */ x(function(t) { return Ju.get(t); -}, "getNamespace"), RXt = /* @__PURE__ */ x(function() { +}, "getNamespace"), MXt = /* @__PURE__ */ x(function() { return Ju; -}, "getNamespaces"), MXt = /* @__PURE__ */ x(function(t, e) { +}, "getNamespaces"), DXt = /* @__PURE__ */ x(function(t, e) { if (!!Ju.has(t)) for (const r of e) { const { className: n } = C0(r); Ni.get(n).parent = t, Ju.get(t).classes.set(n, Ni.get(n)); } -}, "addClassesToNamespace"), DXt = /* @__PURE__ */ x(function(t, e) { +}, "addClassesToNamespace"), NXt = /* @__PURE__ */ x(function(t, e) { const r = Ni.get(t); if (!(!e || !r)) for (const n of e) @@ -90642,37 +90653,37 @@ var OP = "TB", EXt = /* @__PURE__ */ x(() => OP, "getDirection"), _Xt = /* @__PU setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().class, "getConfig"), addClass: jk, - bindFunctions: SXt, - clear: cXt, - getClass: uXt, - getClasses: hXt, - getNotes: dXt, - addAnnotation: gXt, - addNote: vXt, - getRelations: fXt, - addRelation: pXt, - getDirection: EXt, - setDirection: _Xt, + bindFunctions: TXt, + clear: uXt, + getClass: hXt, + getClasses: fXt, + getNotes: pXt, + addAnnotation: mXt, + addNote: yXt, + getRelations: dXt, + addRelation: gXt, + getDirection: _Xt, + setDirection: AXt, addMember: Nge, - addMembers: mXt, - cleanupLabel: yXt, - lineType: TXt, - relationType: CXt, - setClickEvent: OXt, + addMembers: vXt, + cleanupLabel: bXt, + lineType: CXt, + relationType: EXt, + setClickEvent: kXt, setCssClass: wP, - setLink: wXt, - getTooltip: xXt, - setTooltip: bXt, + setLink: OXt, + getTooltip: wXt, + setTooltip: xXt, lookUpDomId: Dge, setDiagramTitle: fa, getDiagramTitle: xs, - setClassLabel: lXt, - addNamespace: AXt, - addClassesToNamespace: MXt, - getNamespace: LXt, - getNamespaces: RXt, - setCssStyle: DXt -}, NXt = /* @__PURE__ */ x((t) => `g.classGroup text { + setClassLabel: cXt, + addNamespace: LXt, + addClassesToNamespace: DXt, + getNamespace: RXt, + getNamespaces: MXt, + setCssStyle: NXt +}, IXt = /* @__PURE__ */ x((t) => `g.classGroup text { fill: ${t.nodeBorder || t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -90826,7 +90837,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Pge = NXt, gH = 0, IXt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), Pge = IXt, gH = 0, PXt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -90879,7 +90890,7 @@ g.classGroup line { 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), gH++; -}, "drawEdge"), PXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawEdge"), $Xt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering class ", e, r); const i = e.id, s = { id: i, @@ -90923,7 +90934,7 @@ g.classGroup line { }, "drawClass"), $ge = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + sy(t.type) + ">"), e; -}, "getClassTitleString"), $Xt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getClassTitleString"), BXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering note ", e, r); const i = e.id, s = { id: i, @@ -90949,23 +90960,23 @@ g.classGroup line { s !== "" && a.attr("style", e.cssStyle), r || a.attr("dy", n.textHeight); }, "addTspan"), J_ = { getClassTitleString: $ge, - drawClass: PXt, - drawEdge: IXt, - drawNote: $Xt + drawClass: $Xt, + drawEdge: PXt, + drawNote: BXt }, r5 = {}, DO = 20, sv = /* @__PURE__ */ x(function(t) { const e = Object.entries(r5).find((r) => r[1].label === t); if (e) return e[0]; -}, "getGraphId"), BXt = /* @__PURE__ */ x(function(t) { +}, "getGraphId"), FXt = /* @__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"), FXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), zXt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().class; r5 = {}, 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}']`); - BXt(l); + FXt(l); const u = new $i({ multigraph: !0 }); @@ -91021,56 +91032,56 @@ g.classGroup line { ms(l, v, m, i.useMaxWidth); const y = `${g.x - DO} ${g.y - DO} ${m} ${v}`; X.debug(`viewBox ${y}`), l.attr("viewBox", y); -}, "draw"), zXt = { - draw: FXt -}, VXt = { +}, "draw"), VXt = { + draw: zXt +}, UXt = { parser: Mge, db: Kk, - renderer: zXt, + renderer: VXt, styles: Pge, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Kk.clear(); }, "init") }; -const UXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const qXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: VXt + diagram: UXt }, Symbol.toStringTag, { value: "Module" })); -var qXt = /* @__PURE__ */ x((t, e, r, n) => { +var YXt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - JXt[i](t, r, n); + eZt[i](t, r, n); }); -}, "insertMarkers"), YXt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), QXt = /* @__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"), QXt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), WXt = /* @__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"), WXt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), GXt = /* @__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"), GXt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), HXt = /* @__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"), HXt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), XXt = /* @__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"), XXt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), ZXt = /* @__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"), ZXt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), jXt = /* @__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"), jXt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), KXt = /* @__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"), KXt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), JXt = /* @__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"), JXt = { - extension: YXt, - composition: QXt, - aggregation: WXt, - dependency: GXt, - lollipop: HXt, - point: XXt, - circle: ZXt, - cross: jXt, - barb: KXt -}, Bge = qXt, eZt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "barb"), eZt = { + extension: QXt, + composition: WXt, + aggregation: GXt, + dependency: HXt, + lollipop: XXt, + point: ZXt, + circle: jXt, + cross: KXt, + barb: JXt +}, Bge = YXt, tZt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && vH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && vH(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), tZt = { +}, "addEdgeMarkers"), rZt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -91081,14 +91092,14 @@ var qXt = /* @__PURE__ */ x((t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, vH = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = tZt[r]; + const a = rZt[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"), Jk = {}, rs = {}, rZt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), Jk = {}, rs = {}, nZt = /* @__PURE__ */ x(() => { Jk = {}, rs = {}; }, "clear"), Fge = /* @__PURE__ */ x((t, e) => { const r = be(), n = bn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? Kc( @@ -91202,10 +91213,10 @@ var zge = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), nZt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), iZt = /* @__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"), iZt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), sZt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -91230,8 +91241,8 @@ var zge = /* @__PURE__ */ x((t, e) => { X.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (!nZt(e, s) && !i) { - const a = iZt(e, n, s); + if (!iZt(e, s) && !i) { + const a = sZt(e, n, s); let o = !1; r.forEach((l) => { o = o || l.x === a.x && l.y === a.y; @@ -91277,12 +91288,12 @@ var zge = /* @__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, "\\)")), eZt(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, "\\)")), tZt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), hr = {}, yl = {}, Uge = {}, sZt = /* @__PURE__ */ x(() => { +}, "insertEdge"), hr = {}, yl = {}, Uge = {}, aZt = /* @__PURE__ */ x(() => { yl = {}, Uge = {}, hr = {}; -}, "clear"), eS = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), aZt = /* @__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) || eS(t.v, e) || eS(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), qge = /* @__PURE__ */ x((t, e, r, n) => { +}, "clear"), eS = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), oZt = /* @__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) || eS(t.v, e) || eS(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), qge = /* @__PURE__ */ x((t, e, r, n) => { X.warn( "Copying children of ", t, @@ -91312,7 +91323,7 @@ var zge = /* @__PURE__ */ x((t, e) => { const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - aZt(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( + oZt(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, "-->", @@ -91345,7 +91356,7 @@ var zge = /* @__PURE__ */ x((t, e) => { if (i) return X.trace("Found replacement for", t, " => ", i), i; } -}, "findNonClusterChild"), NO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), oZt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), NO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), lZt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -91493,7 +91504,7 @@ var zge = /* @__PURE__ */ x((t, e) => { const i = t.children(n), s = Wge(t, i); r = [...r, ...s]; }), r; -}, "sorter"), lZt = /* @__PURE__ */ x((t) => Wge(t, t.children()), "sortNodesByHierarchy"), cZt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), cZt = /* @__PURE__ */ x((t) => Wge(t, t.children()), "sortNodesByHierarchy"), uZt = /* @__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" ? Kc(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -91515,14 +91526,14 @@ var zge = /* @__PURE__ */ x((t, e) => { return e.width = p.width, e.height = p.height, e.intersect = function(g) { return Rx(e, g); }, n; -}, "rect"), uZt = /* @__PURE__ */ x((t, e) => { +}, "rect"), hZt = /* @__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 Rx(e, o); }, r; -}, "noteGroup"), hZt = /* @__PURE__ */ x((t, e) => { +}, "noteGroup"), fZt = /* @__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)) { @@ -91541,18 +91552,18 @@ var zge = /* @__PURE__ */ x((t, e) => { return e.height = p.height, e.intersect = function(g) { return Rx(e, g); }, n; -}, "roundedWithTitle"), fZt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), dZt = /* @__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 Rx(e, o); }, r; -}, "divider"), dZt = { rect: cZt, roundedWithTitle: hZt, noteGroup: uZt, divider: fZt }, Gge = {}, pZt = /* @__PURE__ */ x((t, e) => { +}, "divider"), pZt = { rect: uZt, roundedWithTitle: fZt, noteGroup: hZt, divider: dZt }, Gge = {}, gZt = /* @__PURE__ */ x((t, e) => { X.trace("Inserting cluster"); const r = e.shape || "rect"; - Gge[e.id] = dZt[r](t, e); -}, "insertCluster"), gZt = /* @__PURE__ */ x(() => { + Gge[e.id] = pZt[r](t, e); +}, "insertCluster"), mZt = /* @__PURE__ */ x(() => { Gge = {}; }, "clear"), Hge = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.info("Graph in recursive render: XXX", di(e), i); @@ -91584,7 +91595,7 @@ var zge = /* @__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), jPt(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), KPt(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(V2(m.id, e)), hr[m.id] = { id: V2(m.id, e), node: m }) : (X.info("Node - the non recursive path", g, m.id, m), await vI(f, e.node(g), a)); }) @@ -91596,7 +91607,7 @@ var zge = /* @__PURE__ */ x((t, e) => { }), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("#############################################"), X.info("### Layout ###"), X.info("#############################################"), X.info(e), om(e), X.info("Graph after layout:", JSON.stringify(di(e))); let d = 0; const { subGraphTitleTotalMargin: p } = V0(s); - return lZt(e).forEach(function(g) { + return cZt(e).forEach(function(g) { const m = e.node(g); X.info("Position " + g + ": " + JSON.stringify(e.node(g))), X.info( "Position " + g + ": (" + m.x, @@ -91605,7 +91616,7 @@ var zge = /* @__PURE__ */ x((t, e) => { m.width, " height: ", m.height - ), m != null && m.clusterNode ? (m.y += p, qL(m)) : e.children(g).length > 0 ? (m.height += p, pZt(l, m), hr[m.id].node = m) : (m.y += p / 2, qL(m)); + ), m != null && m.clusterNode ? (m.y += p, qL(m)) : e.children(g).length > 0 ? (m.height += p, gZt(l, m), hr[m.id].node = m) : (m.y += p / 2, qL(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); @@ -91615,8 +91626,8 @@ var zge = /* @__PURE__ */ x((t, e) => { const m = e.node(g); X.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; -}, "recursiveRender"), mZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - Bge(t, r, n, i), KPt(), rZt(), gZt(), sZt(), X.warn("Graph at first:", JSON.stringify(di(e))), oZt(e), X.warn("Graph after:", JSON.stringify(di(e))); +}, "recursiveRender"), vZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { + Bge(t, r, n, i), JPt(), nZt(), mZt(), aZt(), X.warn("Graph at first:", JSON.stringify(di(e))), lZt(e), X.warn("Graph after:", JSON.stringify(di(e))); const s = be(); await Hge(t, e, n, i, void 0, s); }, "render"), kP = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), K9 = { @@ -91624,7 +91635,7 @@ var zge = /* @__PURE__ */ x((t, e) => { padding: 5, textHeight: 10, curve: void 0 -}, vZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, yZt = /* @__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 = { @@ -91661,7 +91672,7 @@ var zge = /* @__PURE__ */ x((t, e) => { }; e.setNode(s.id, f), i && e.setParent(s.id, i), X.info("setNode", f); }); -}, "addClasses"), yZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addClasses"), bZt = /* @__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 = { @@ -91696,7 +91707,7 @@ var zge = /* @__PURE__ */ x((t, e) => { }; e.setEdge(a.id, a.class, g, p); }); -}, "addNotes"), bZt = /* @__PURE__ */ x(function(t, e) { +}, "addNotes"), xZt = /* @__PURE__ */ x(function(t, e) { const r = be().flowchart; let n = 0; t.forEach(function(i) { @@ -91725,12 +91736,12 @@ var zge = /* @__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"), xZt = /* @__PURE__ */ x(function(t) { +}, "addRelations"), wZt = /* @__PURE__ */ x(function(t) { K9 = { ...K9, ...t }; -}, "setConf"), wZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "setConf"), OZt = /* @__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; @@ -91747,11 +91758,11 @@ var zge = /* @__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), vZt(u, l, e, n), Xge(h, l, e, n), bZt(f, l), yZt(d, l, f.length + 1, h); + X.info(f), yZt(u, l, e, n), Xge(h, l, e, n), xZt(f, l), bZt(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 mZt( + if (await vZt( v, l, ["aggregation", "extension", "composition", "dependency", "lollipop"], @@ -91789,21 +91800,21 @@ function J9(t) { return e; } x(J9, "getArrowMarker"); -var OZt = { - setConf: xZt, - draw: wZt -}, kZt = { +var kZt = { + setConf: wZt, + draw: OZt +}, SZt = { parser: Mge, db: Kk, - renderer: OZt, + renderer: kZt, styles: Pge, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Kk.clear(); }, "init") }; -const SZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const TZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: kZt + diagram: SZt }, Symbol.toStringTag, { value: "Module" })); var eR = function() { var t = /* @__PURE__ */ x(function(D, P, F, B) { @@ -92331,16 +92342,16 @@ Expecting ` + ve.join(", ") + ", got '" + (this.terminals_[Ae] || Ae) + "'" : re return x(I, "Parser"), I.prototype = N, N.Parser = I, new I(); }(); eR.parser = eR; -var Zge = eR, TZt = "LR", jge = "TB", tS = "state", SP = "relation", CZt = "classDef", EZt = "style", _Zt = "applyClass", Qx = "default", Kge = "divider", Jge = "fill:none", e1e = "fill: #333", t1e = "c", r1e = "text", n1e = "normal", eA = "rect", tA = "rectWithTitle", AZt = "stateStart", LZt = "stateEnd", bH = "divider", xH = "roundedWithTitle", RZt = "note", MZt = "noteGroup", Wx = "statediagram", DZt = "state", NZt = `${Wx}-${DZt}`, i1e = "transition", IZt = "note", PZt = "note-edge", $Zt = `${i1e} ${PZt}`, BZt = `${Wx}-${IZt}`, FZt = "cluster", zZt = `${Wx}-${FZt}`, VZt = "cluster-alt", UZt = `${Wx}-${VZt}`, s1e = "parent", a1e = "note", qZt = "state", TP = "----", YZt = `${TP}${a1e}`, wH = `${TP}${s1e}`, o1e = /* @__PURE__ */ x((t, e = jge) => { +var Zge = eR, CZt = "LR", jge = "TB", tS = "state", SP = "relation", EZt = "classDef", _Zt = "style", AZt = "applyClass", Qx = "default", Kge = "divider", Jge = "fill:none", e1e = "fill: #333", t1e = "c", r1e = "text", n1e = "normal", eA = "rect", tA = "rectWithTitle", LZt = "stateStart", RZt = "stateEnd", bH = "divider", xH = "roundedWithTitle", MZt = "note", DZt = "noteGroup", Wx = "statediagram", NZt = "state", IZt = `${Wx}-${NZt}`, i1e = "transition", PZt = "note", $Zt = "note-edge", BZt = `${i1e} ${$Zt}`, FZt = `${Wx}-${PZt}`, zZt = "cluster", VZt = `${Wx}-${zZt}`, UZt = "cluster-alt", qZt = `${Wx}-${UZt}`, s1e = "parent", a1e = "note", YZt = "state", TP = "----", QZt = `${TP}${a1e}`, wH = `${TP}${s1e}`, o1e = /* @__PURE__ */ x((t, e = jge) => { if (!t.doc) return e; let r = e; for (const n of t.doc) n.stmt === "dir" && (r = n.value); return r; -}, "getDir"), QZt = /* @__PURE__ */ x(function(t, e) { +}, "getDir"), WZt = /* @__PURE__ */ x(function(t, e) { return e.db.extract(e.db.getRootDocV2()), e.db.getClasses(); -}, "getClasses"), WZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), GZt = /* @__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(); @@ -92354,17 +92365,17 @@ var Zge = eR, TZt = "LR", jge = "TB", tS = "state", SP = "relation", CZt = "clas (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() ), wfe(l, u, Wx, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); -}, "draw"), GZt = { - getClasses: QZt, - draw: WZt, +}, "draw"), HZt = { + getClasses: WZt, + draw: GZt, getDir: o1e }, n5 = /* @__PURE__ */ new Map(), Mh = 0; function i5(t = "", e = 0, r = "", n = TP) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; - return `${qZt}-${t}${i}-${e}`; + return `${YZt}-${t}${i}-${e}`; } x(i5, "stateDomId"); -var HZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { +var XZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { X.trace("items", e), e.forEach((l) => { switch (l.stmt) { case tS: @@ -92450,15 +92461,15 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { const l = e.id, u = r.get(l), h = l1e(u), f = c1e(u); if (X.info("dataFetcher parsedItem", e, u, f), l !== "root") { let g = eA; - e.start === !0 ? g = AZt : e.start === !1 && (g = LZt), e.type !== Qx && (g = e.type), n5.get(l) || n5.set(l, { + e.start === !0 ? g = LZt : e.start === !1 && (g = RZt), e.type !== Qx && (g = e.type), n5.get(l) || n5.set(l, { id: l, shape: g, description: at.sanitizeText(l, be()), - cssClasses: `${h} ${NZt}`, + cssClasses: `${h} ${IZt}`, cssStyles: f }); const m = n5.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = tA, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = tA, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = eA, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === tA && (m.type === "group" ? m.shape = xH : m.shape = eA), !m.type && e.doc && (X.info("Setting cluster for XCX", l, OH(e)), m.type = "group", m.isGroup = !0, m.dir = OH(e), m.shape = e.type === Kge ? bH : xH, m.cssClasses = `${m.cssClasses} ${zZt} ${s ? UZt : ""}`); + e.description && (Array.isArray(m.description) ? (m.shape = tA, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = tA, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = eA, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === tA && (m.type === "group" ? m.shape = xH : m.shape = eA), !m.type && e.doc && (X.info("Setting cluster for XCX", l, OH(e)), m.type = "group", m.isGroup = !0, m.dir = OH(e), m.shape = e.type === Kge ? bH : xH, m.cssClasses = `${m.cssClasses} ${VZt} ${s ? qZt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -92479,12 +92490,12 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { if (v.shape === bH && (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: RZt, + shape: MZt, label: e.note.text, - cssClasses: BZt, + cssClasses: FZt, cssStyles: [], cssCompilesStyles: [], - id: l + YZt + "-" + Mh, + id: l + QZt + "-" + Mh, domId: i5(l, Mh, a1e), type: m.type, isGroup: m.type === "group", @@ -92493,7 +92504,7 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { position: e.note.position }, b = l + wH, w = { labelStyle: "", - shape: MZt, + shape: DZt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], @@ -92515,7 +92526,7 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { arrowTypeEnd: "", style: Jge, labelStyle: "", - classes: $Zt, + classes: BZt, arrowheadStyle: e1e, labelpos: t1e, labelType: r1e, @@ -92525,31 +92536,31 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { } else Iv(n, v, o); } - e.doc && (X.trace("Adding nodes children "), HZt(e, e.doc, r, n, i, !s, a, o)); -}, "dataFetcher"), XZt = /* @__PURE__ */ x(() => { + e.doc && (X.trace("Adding nodes children "), XZt(e, e.doc, r, n, i, !s, a, o)); +}, "dataFetcher"), ZZt = /* @__PURE__ */ x(() => { n5.clear(), Mh = 0; -}, "reset"), CP = "[*]", u1e = "start", h1e = CP, f1e = "end", kH = "color", SH = "fill", ZZt = "bgFill", jZt = ","; +}, "reset"), CP = "[*]", u1e = "start", h1e = CP, f1e = "end", kH = "color", SH = "fill", jZt = "bgFill", KZt = ","; function EP() { return /* @__PURE__ */ new Map(); } x(EP, "newClassesList"); -var rS = [], _P = [], d1e = TZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() => ({ +var rS = [], _P = [], d1e = CZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} }), "newDoc"), iS = { root: p1e() -}, wa = iS.root, U2 = 0, TH = 0, KZt = { +}, wa = iS.root, U2 = 0, TH = 0, JZt = { LINE: 0, DOTTED_LINE: 1 -}, JZt = { +}, ejt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3 -}, IO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), ejt = /* @__PURE__ */ x((t) => { +}, IO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), tjt = /* @__PURE__ */ x((t) => { X.info("Setting root doc", t), nS = t; -}, "setRootDoc"), tjt = /* @__PURE__ */ x(() => nS, "getRootDoc"), s5 = /* @__PURE__ */ x((t, e, r) => { +}, "setRootDoc"), rjt = /* @__PURE__ */ x(() => nS, "getRootDoc"), s5 = /* @__PURE__ */ x((t, e, r) => { if (e.stmt === SP) s5(t, e.state1, !0), s5(t, e.state2, !1); else if (e.stmt === tS && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { @@ -92572,7 +92583,7 @@ var rS = [], _P = [], d1e = TZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() } e.doc.forEach((a) => s5(e, a, !0)); } -}, "docTranslator"), AP = /* @__PURE__ */ x(() => (s5({ id: "root" }, { id: "root", doc: nS }, !0), { id: "root", doc: nS }), "getRootDocV2"), rjt = /* @__PURE__ */ x((t) => { +}, "docTranslator"), AP = /* @__PURE__ */ x(() => (s5({ id: "root" }, { id: "root", doc: nS }, !0), { id: "root", doc: nS }), "getRootDocV2"), njt = /* @__PURE__ */ x((t) => { let e; t.doc ? e = t.doc : e = t, X.info(e), g1e(!0), X.info("Extract initial document:", e), e.forEach((s) => { switch (X.warn("Statement", s.stmt), s.stmt) { @@ -92591,10 +92602,10 @@ var rS = [], _P = [], d1e = TZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() case SP: x1e(s.state1, s.state2, s.description); break; - case CZt: + case EZt: w1e(s.id.trim(), s.classes); break; - case EZt: + case _Zt: { const a = s.id.trim().split(","), o = s.styleClass.split(","); a.forEach((l) => { @@ -92610,13 +92621,13 @@ var rS = [], _P = [], d1e = TZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() }); } break; - case _Zt: + case AZt: LP(s.id.trim(), s.styleClass); break; } }); const r = m1e(), i = be().look; - XZt(), Pv(void 0, AP(), r, rS, _P, !0, i, pg), rS.forEach((s) => { + ZZt(), Pv(void 0, AP(), r, rS, _P, !0, i, pg), rS.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error( @@ -92640,7 +92651,7 @@ var rS = [], _P = [], d1e = TZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() 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) => LP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => ljt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => cjt(l, h.trim()))); + s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => LP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => cjt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => ujt(l, h.trim()))); }, "addState"), g1e = /* @__PURE__ */ x(function(t) { rS = [], _P = [], iS = { root: p1e() @@ -92649,9 +92660,9 @@ var rS = [], _P = [], d1e = TZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() return wa.states.get(t); }, "getState"), m1e = /* @__PURE__ */ x(function() { return wa.states; -}, "getStates"), njt = /* @__PURE__ */ x(function() { +}, "getStates"), ijt = /* @__PURE__ */ x(function() { X.info("Documents = ", iS); -}, "logDocuments"), ijt = /* @__PURE__ */ x(function() { +}, "logDocuments"), sjt = /* @__PURE__ */ x(function() { return wa.relations; }, "getRelations"); function sS(t = "") { @@ -92713,20 +92724,20 @@ var x1e = /* @__PURE__ */ x(function(t, e, r) { }, "addRelation"), tR = /* @__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"), sjt = /* @__PURE__ */ x(function(t) { +}, "addDescription"), ajt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), ajt = /* @__PURE__ */ x(() => (TH++, "divider-id-" + TH), "getDividerId"), w1e = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), ojt = /* @__PURE__ */ x(() => (TH++, "divider-id-" + TH), "getDividerId"), w1e = /* @__PURE__ */ x(function(t, e = "") { pg.has(t) || pg.set(t, { id: t, styles: [], textStyles: [] }); const r = pg.get(t); - e != null && e.split(jZt).forEach((n) => { + e != null && e.split(KZt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(kH).exec(n)) { - const a = i.replace(SH, ZZt).replace(kH, SH); + const a = i.replace(SH, jZt).replace(kH, SH); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), ojt = /* @__PURE__ */ x(function() { +}, "addStyleClass"), ljt = /* @__PURE__ */ x(function() { return pg; }, "getClasses"), LP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -92737,39 +92748,39 @@ var x1e = /* @__PURE__ */ x(function(t, e, r) { } n.classes.push(e); }); -}, "setCssClass"), ljt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), cjt = /* @__PURE__ */ x(function(t, e) { const r = E0(t); r !== void 0 && r.styles.push(e); -}, "setStyle"), cjt = /* @__PURE__ */ x(function(t, e) { +}, "setStyle"), ujt = /* @__PURE__ */ x(function(t, e) { const r = E0(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), ujt = /* @__PURE__ */ x(() => d1e, "getDirection"), hjt = /* @__PURE__ */ x((t) => { +}, "setTextStyle"), hjt = /* @__PURE__ */ x(() => d1e, "getDirection"), fjt = /* @__PURE__ */ x((t) => { d1e = t; -}, "setDirection"), fjt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), djt = /* @__PURE__ */ x(() => { +}, "setDirection"), djt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), pjt = /* @__PURE__ */ x(() => { const t = be(); return { nodes: rS, edges: _P, other: {}, config: t, direction: o1e(AP()) }; }, "getData"), yu = { getConfig: /* @__PURE__ */ x(() => be().state, "getConfig"), - getData: djt, + getData: pjt, addState: Rf, clear: g1e, getState: E0, getStates: m1e, - getRelations: ijt, - getClasses: ojt, - getDirection: ujt, + getRelations: sjt, + getClasses: ljt, + getDirection: hjt, addRelation: x1e, - getDividerId: ajt, - setDirection: hjt, - cleanupLabel: sjt, - lineType: KZt, - relationType: JZt, - logDocuments: njt, - getRootDoc: tjt, - setRootDoc: ejt, + getDividerId: ojt, + setDirection: fjt, + cleanupLabel: ajt, + lineType: JZt, + relationType: ejt, + logDocuments: ijt, + getRootDoc: rjt, + setRootDoc: tjt, getRootDocV2: AP, - extract: rjt, - trimColon: fjt, + extract: njt, + trimColon: djt, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, @@ -92779,7 +92790,7 @@ var x1e = /* @__PURE__ */ x(function(t, e, r) { addDescription: tR, setDiagramTitle: fa, getDiagramTitle: xs -}, pjt = /* @__PURE__ */ x((t) => ` +}, gjt = /* @__PURE__ */ x((t) => ` defs #statediagram-barbEnd { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -92993,17 +93004,17 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), O1e = pjt, RP = {}, gjt = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), O1e = gjt, RP = {}, mjt = /* @__PURE__ */ x((t, e) => { RP[t] = e; -}, "set"), mjt = /* @__PURE__ */ x((t) => RP[t], "get"), k1e = /* @__PURE__ */ x(() => Object.keys(RP), "keys"), vjt = /* @__PURE__ */ x(() => k1e().length, "size"), yjt = { - get: mjt, - set: gjt, +}, "set"), vjt = /* @__PURE__ */ x((t) => RP[t], "get"), k1e = /* @__PURE__ */ x(() => Object.keys(RP), "keys"), yjt = /* @__PURE__ */ x(() => k1e().length, "size"), bjt = { + get: vjt, + set: mjt, keys: k1e, - size: vjt -}, bjt = /* @__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"), xjt = /* @__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"), wjt = /* @__PURE__ */ x((t, e) => { + size: yjt +}, xjt = /* @__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"), wjt = /* @__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"), Ojt = /* @__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"), Ojt = /* @__PURE__ */ x((t, e) => { +}, "drawSimpleState"), kjt = /* @__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); @@ -93017,7 +93028,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"), kjt = /* @__PURE__ */ x((t, e, r) => { +}, "drawDescrState"), Sjt = /* @__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); @@ -93035,20 +93046,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"), Sjt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( +}, "addTitleAndBox"), Tjt = /* @__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"), Tjt = /* @__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"), Ejt = /* @__PURE__ */ x((t, e, r, n) => { let i = 0; const s = n.append("text"); s.style("text-anchor", "start"), s.attr("class", "noteText"); @@ -93068,9 +93079,9 @@ g.stateGroup line { } } return { textWidth: s.node().getBBox().width, textHeight: i }; -}, "_drawLongText"), Ejt = /* @__PURE__ */ x((t, e) => { +}, "_drawLongText"), _jt = /* @__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 } = Ejt(t, 0, 0, n); return r.attr("height", s + 2 * be().state.noteMargin), r.attr("width", i + be().state.noteMargin * 2), r; }, "drawNote"), CH = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { @@ -93079,10 +93090,10 @@ g.stateGroup line { width: 0, height: 0 }, i = t.append("g").attr("id", r).attr("class", "stateGroup"); - e.type === "start" && bjt(i), e.type === "end" && Sjt(i), (e.type === "fork" || e.type === "join") && Tjt(i, e), e.type === "note" && Ejt(e.note.text, i), e.type === "divider" && xjt(i), e.type === "default" && e.descriptions.length === 0 && wjt(i, e), e.type === "default" && e.descriptions.length > 0 && Ojt(i, e); + e.type === "start" && xjt(i), e.type === "end" && Tjt(i), (e.type === "fork" || e.type === "join") && Cjt(i, e), e.type === "note" && _jt(e.note.text, i), e.type === "divider" && wjt(i), e.type === "default" && e.descriptions.length === 0 && Ojt(i, e), e.type === "default" && e.descriptions.length > 0 && kjt(i, e); const s = i.node().getBBox(); - return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, yjt.set(r, n), n; -}, "drawState"), EH = 0, _jt = /* @__PURE__ */ x(function(t, e, r) { + return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, bjt.set(r, n), n; +}, "drawState"), EH = 0, Ajt = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case yu.relationType.AGGREGATION: @@ -93123,10 +93134,10 @@ g.stateGroup line { 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); } EH++; -}, "drawEdge"), eo, rA = {}, Ajt = /* @__PURE__ */ x(function() { -}, "setConf"), Ljt = /* @__PURE__ */ x(function(t) { +}, "drawEdge"), eo, rA = {}, Ljt = /* @__PURE__ */ x(function() { +}, "setConf"), Rjt = /* @__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"), Rjt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), Mjt = /* @__PURE__ */ x(function(t, e, r, n) { eo = be().state; const i = be().securityLevel; let s; @@ -93134,7 +93145,7 @@ g.stateGroup line { 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}']`); - Ljt(l); + Rjt(l); const u = n.db.getRootDoc(); S1e(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; @@ -93142,7 +93153,7 @@ g.stateGroup line { "viewBox", `${f.x - eo.padding} ${f.y - eo.padding} ` + d + " " + p ); -}, "draw"), Mjt = /* @__PURE__ */ x((t) => t ? t.length * eo.fontSizeFactor : 1, "getLabelWidth"), S1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { +}, "draw"), Djt = /* @__PURE__ */ x((t) => t ? t.length * eo.fontSizeFactor : 1, "getLabelWidth"), S1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { const o = new $i({ compound: !0, multigraph: !0 @@ -93181,7 +93192,7 @@ g.stateGroup line { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); w = S1e(b.doc, O, b.id, !n, i, s, a); { - O = kjt(O, b, n); + O = Sjt(O, b, n); let S = O.node().getBBox(); w.width = S.width, w.height = S.height + eo.padding / 2, rA[b.id] = { y: eo.compositTitleSize }; } @@ -93206,7 +93217,7 @@ g.stateGroup line { y.id2, { relation: y, - width: Mjt(y.title), + width: Djt(y.title), height: eo.labelHeight * at.getRows(y.title).length, labelpos: "c" }, @@ -93226,7 +93237,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))), _jt(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))), Ajt(e, o.edge(y), o.edge(y).relation)); }), m = g.getBBox(); const v = { id: r || "root", @@ -93235,34 +93246,34 @@ g.stateGroup line { 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"), Djt = { - setConf: Ajt, - draw: Rjt -}, Njt = { +}, "renderDoc"), Njt = { + setConf: Ljt, + draw: Mjt +}, Ijt = { parser: Zge, db: yu, - renderer: Djt, + renderer: Njt, styles: O1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yu.clear(); }, "init") }; -const Ijt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Pjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Njt + diagram: Ijt }, Symbol.toStringTag, { value: "Module" })); -var Pjt = { +var $jt = { parser: Zge, db: yu, - renderer: GZt, + renderer: HZt, styles: O1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yu.clear(); }, "init") }; -const $jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Bjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Pjt + diagram: $jt }, Symbol.toStringTag, { value: "Module" })); var rR = function() { var t = /* @__PURE__ */ x(function(f, d, p, g) { @@ -93600,25 +93611,25 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ee = return x(h, "Parser"), h.prototype = l, l.Parser = h, new h(); }(); rR.parser = rR; -var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(function() { +var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(function() { MP.length = 0, q2.length = 0, T1 = "", Y2.length = 0, Xi(); -}, "clear"), zjt = /* @__PURE__ */ x(function(t) { +}, "clear"), Vjt = /* @__PURE__ */ x(function(t) { T1 = t, MP.push(t); -}, "addSection"), Vjt = /* @__PURE__ */ x(function() { +}, "addSection"), Ujt = /* @__PURE__ */ x(function() { return MP; -}, "getSections"), Ujt = /* @__PURE__ */ x(function() { +}, "getSections"), qjt = /* @__PURE__ */ x(function() { let t = _H(); const e = 100; let r = 0; for (; !t && r < e; ) t = _H(), r++; return q2.push(...Y2), q2; -}, "getTasks"), qjt = /* @__PURE__ */ x(function() { +}, "getTasks"), Yjt = /* @__PURE__ */ x(function() { const t = []; return q2.forEach((r) => { r.people && t.push(...r.people); }), [...new Set(t)].sort(); -}, "updateActors"), Yjt = /* @__PURE__ */ x(function(t, e) { +}, "updateActors"), Qjt = /* @__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(",")); @@ -93630,7 +93641,7 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi score: n }; Y2.push(a); -}, "addTask"), Qjt = /* @__PURE__ */ x(function(t) { +}, "addTask"), Wjt = /* @__PURE__ */ x(function(t) { const e = { section: T1, type: T1, @@ -93647,24 +93658,24 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi for (const [r, n] of Y2.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Wjt = /* @__PURE__ */ x(function() { - return qjt(); +}, "compileTasks"), Gjt = /* @__PURE__ */ x(function() { + return Yjt(); }, "getActors"), AH = { getConfig: /* @__PURE__ */ x(() => be().journey, "getConfig"), - clear: Fjt, + clear: zjt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: zjt, - getSections: Vjt, - getTasks: Ujt, - addTask: Yjt, - addTaskOrg: Qjt, - getActors: Wjt -}, Gjt = /* @__PURE__ */ x((t) => `.label { + addSection: Vjt, + getSections: Ujt, + getTasks: qjt, + addTask: Qjt, + addTaskOrg: Wjt, + getActors: Gjt +}, Hjt = /* @__PURE__ */ x((t) => `.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${t.textColor}; @@ -93797,9 +93808,9 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi .actor-5 { ${t.actor5 ? `fill: ${t.actor5}` : ""}; } -`, "getStyles"), Hjt = Gjt, DP = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), Xjt = Hjt, DP = /* @__PURE__ */ x(function(t, e) { return uC(t, e); -}, "drawRect"), Xjt = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Zjt = /* @__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) { @@ -93820,15 +93831,15 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi 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"), C1e = /* @__PURE__ */ x(function(t, e) { - return xIt(t, e); -}, "drawText"), Zjt = /* @__PURE__ */ x(function(t, e) { + return wIt(t, e); +}, "drawText"), jjt = /* @__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, C1e(t, e); -}, "drawLabel"), jjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawLabel"), Kjt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = ep(); 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, DP(n, i), E1e(r)( e.text, @@ -93841,11 +93852,11 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), LH = -1, Kjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), LH = -1, Jjt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); LH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + LH).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"), Xjt(i, { + i.append("line").attr("id", "task" + LH).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"), Zjt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -93875,7 +93886,7 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawTask"), Jjt = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), eKt = /* @__PURE__ */ x(function(t, e) { hfe(t, e); }, "drawBackgroundRect"), E1e = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { @@ -93903,18 +93914,18 @@ var Bjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], Fjt = /* @__PURE__ */ x(functi return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), eKt = /* @__PURE__ */ x(function(t) { +}(), tKt = /* @__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: DP, drawCircle: T1e, - drawSection: jjt, + drawSection: Kjt, drawText: C1e, - drawLabel: Zjt, - drawTask: Kjt, - drawBackgroundRect: Jjt, - initGraphics: eKt -}, tKt = /* @__PURE__ */ x(function(t) { + drawLabel: jjt, + drawTask: Jjt, + drawBackgroundRect: eKt, + initGraphics: tKt +}, rKt = /* @__PURE__ */ x(function(t) { Object.keys(t).forEach(function(r) { BC[r] = t[r]; }); @@ -93943,7 +93954,7 @@ function _1e(t) { }); } x(_1e, "drawActorLegend"); -var BC = be().journey, kd = BC.leftMargin, rKt = /* @__PURE__ */ x(function(t, e, r, n) { +var BC = be().journey, kd = BC.leftMargin, nKt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().journey, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -93960,7 +93971,7 @@ var BC = be().journey, kd = BC.leftMargin, rKt = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), _1e(l), To.insert(0, 0, kd, Object.keys(Su).length * 50), nKt(l, u, 0); + }), _1e(l), To.insert(0, 0, kd, Object.keys(Su).length * 50), iKt(l, u, 0); const p = To.getBounds(); h && l.append("text").text(h).attr("x", kd).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = kd + p.stopx + 2 * i.diagramMarginX; @@ -94012,7 +94023,7 @@ var BC = be().journey, kd = BC.leftMargin, rKt = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, nA = BC.sectionFills, RH = BC.sectionColours, nKt = /* @__PURE__ */ x(function(t, e, r) { +}, nA = BC.sectionFills, RH = BC.sectionColours, iKt = /* @__PURE__ */ x(function(t, e, r) { const n = be().journey; let i = ""; const s = n.height * 2 + n.diagramMarginY, a = r + s; @@ -94039,20 +94050,20 @@ var BC = be().journey, kd = BC.leftMargin, rKt = /* @__PURE__ */ x(function(t, e d.x = f * n.taskMargin + f * n.width + kd, 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), To.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } }, "drawTasks"), MH = { - setConf: tKt, - draw: rKt -}, iKt = { - parser: Bjt, + setConf: rKt, + draw: nKt +}, sKt = { + parser: Fjt, db: AH, renderer: MH, - styles: Hjt, + styles: Xjt, init: /* @__PURE__ */ x((t) => { MH.setConf(t.journey), AH.clear(); }, "init") }; -const sKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const aKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: iKt + diagram: sKt }, Symbol.toStringTag, { value: "Module" })); var nR = function() { var t = /* @__PURE__ */ x(function(d, p, g, m) { @@ -94391,14 +94402,14 @@ Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Q = return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); nR.parser = nR; -var aKt = nR, A1e = {}; +var oKt = nR, A1e = {}; wie(A1e, { addEvent: () => $1e, addSection: () => D1e, addTask: () => P1e, addTaskOrg: () => B1e, clear: () => M1e, - default: () => oKt, + default: () => lKt, getCommonDb: () => R1e, getSections: () => N1e, getTasks: () => I1e @@ -94445,7 +94456,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E for (const [r, n] of E1.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), oKt = { +}, "compileTasks"), lKt = { clear: M1e, getCommonDb: R1e, addSection: D1e, @@ -94454,10 +94465,10 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E addTask: P1e, addTaskOrg: B1e, addEvent: $1e -}, lKt = 12, FC = /* @__PURE__ */ x(function(t, e) { +}, cKt = 12, FC = /* @__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"), cKt = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), uKt = /* @__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) { @@ -94474,7 +94485,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E 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"), uKt = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), hKt = /* @__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"), F1e = /* @__PURE__ */ x(function(t, e) { @@ -94482,14 +94493,14 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E 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"), hKt = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), fKt = /* @__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, F1e(t, e); -}, "drawLabel"), fKt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawLabel"), dKt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = IP(); 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, FC(n, i), z1e(r)( e.text, @@ -94502,11 +94513,11 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E r, e.colour ); -}, "drawSection"), NH = -1, dKt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), NH = -1, pKt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); NH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + NH).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"), cKt(i, { + i.append("line").attr("id", "task" + NH).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"), uKt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -94523,7 +94534,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E r, e.colour ); -}, "drawTask"), pKt = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), gKt = /* @__PURE__ */ x(function(t, e) { FC(t, { x: e.startx, y: e.starty, @@ -94532,7 +94543,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E fill: e.fill, class: "rect" }).lower(); -}, "drawBackgroundRect"), gKt = /* @__PURE__ */ x(function() { +}, "drawBackgroundRect"), mKt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -94580,7 +94591,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), mKt = /* @__PURE__ */ x(function(t) { +}(), vKt = /* @__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 PP(t, e) { @@ -94591,38 +94602,38 @@ function PP(t, e) { }); } x(PP, "wrap"); -var vKt = /* @__PURE__ */ x(function(t, e, r, n) { +var yKt = /* @__PURE__ */ x(function(t, e, r, n) { var f; - const i = r % lKt - 1, s = t.append("g"); + const i = r % cKt - 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(PP, 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 + ")"), bKt(a, e, i, n), e; -}, "drawNode"), yKt = /* @__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 + ")"), xKt(a, e, i, n), e; +}, "drawNode"), bKt = /* @__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(PP, 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"), bKt = /* @__PURE__ */ x(function(t, e, r) { +}, "getVirtualNodeHeight"), xKt = /* @__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"), Sd = { drawRect: FC, - drawCircle: uKt, - drawSection: fKt, + drawCircle: hKt, + drawSection: dKt, drawText: F1e, - drawLabel: hKt, - drawTask: dKt, - drawBackgroundRect: pKt, - getTextObj: gKt, + drawLabel: fKt, + drawTask: pKt, + drawBackgroundRect: gKt, + getTextObj: mKt, getNoteRect: IP, - initGraphics: mKt, - drawNode: vKt, - getVirtualNodeHeight: yKt -}, xKt = /* @__PURE__ */ x(function(t, e, r, n) { + initGraphics: vKt, + drawNode: yKt, + getVirtualNodeHeight: bKt +}, wKt = /* @__PURE__ */ x(function(t, e, r, n) { var E, R, _, A, $; const i = be(), s = (E = i.leftMargin) != null ? E : 50; X.debug("timeline", n.db); @@ -94735,7 +94746,7 @@ var vKt = /* @__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 + wKt(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 + OKt(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"); @@ -94743,7 +94754,7 @@ var vKt = /* @__PURE__ */ x(function(t, e, r, n) { n = n + 200, h && !((f = a.timeline) != null && f.disableMulticolor) && r++; } i = i - 10; -}, "drawTasks"), wKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawTasks"), OKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { let a = 0; const o = i; i = i + 100; @@ -94761,11 +94772,11 @@ var vKt = /* @__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"), OKt = { +}, "drawEvents"), kKt = { setConf: /* @__PURE__ */ x(() => { }, "setConf"), - draw: xKt -}, kKt = /* @__PURE__ */ x((t) => { + draw: wKt +}, SKt = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], z0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Qt(t["lineColor" + r], 20); @@ -94806,11 +94817,11 @@ var vKt = /* @__PURE__ */ x(function(t, e, r, n) { `; } return e; -}, "genSections"), SKt = /* @__PURE__ */ x((t) => ` +}, "genSections"), TKt = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${kKt(t)} + ${SKt(t)} .section-root rect, .section-root path, .section-root circle { fill: ${t.git0}; } @@ -94829,15 +94840,15 @@ var vKt = /* @__PURE__ */ x(function(t, e, r, n) { .eventWrapper { filter: brightness(120%); } -`, "getStyles"), TKt = SKt, CKt = { +`, "getStyles"), CKt = TKt, EKt = { db: A1e, - renderer: OKt, - parser: aKt, - styles: TKt + renderer: kKt, + parser: oKt, + styles: CKt }; -const EKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const _Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: CKt + diagram: EKt }, Symbol.toStringTag, { value: "Module" })); function Ii(t) { return Ii = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -94870,13 +94881,13 @@ function V1e(t, e, r) { }) : t[e] = r, t; } function ul(t, e) { - return _Kt(t) || AKt(t, e) || U1e(t, e) || LKt(); + return AKt(t) || LKt(t, e) || U1e(t, e) || RKt(); } -function _Kt(t) { +function AKt(t) { if (Array.isArray(t)) return t; } -function AKt(t, e) { +function LKt(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; @@ -94913,7 +94924,7 @@ function $H(t, e) { n[r] = t[r]; return n; } -function LKt() { +function RKt() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } @@ -94967,25 +94978,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var xi = typeof window > "u" ? null : window, BH = xi ? xi.navigator : null; xi && xi.document; -var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { -}), DKt = typeof HTMLElement > "u" ? "undefined" : Ii(HTMLElement), Gx = function(e) { +var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { +}), NKt = typeof HTMLElement > "u" ? "undefined" : Ii(HTMLElement), Gx = function(e) { return e && e.instanceString && Pn(e.instanceString) ? e.instanceString() : null; }, qt = function(e) { - return e != null && Ii(e) == RKt; + return e != null && Ii(e) == MKt; }, Pn = function(e) { - return e != null && Ii(e) === MKt; + return e != null && Ii(e) === DKt; }, sn = function(e) { return !co(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, Ar = function(e) { return e != null && Ii(e) === Y1e && !sn(e) && e.constructor === Object; -}, NKt = function(e) { +}, IKt = function(e) { return e != null && Ii(e) === Y1e; }, bt = function(e) { return e != null && Ii(e) === Ii(1) && !isNaN(e); -}, IKt = function(e) { +}, PKt = function(e) { return bt(e) && Math.floor(e) === e; }, lS = function(e) { - if (DKt !== "undefined") + if (NKt !== "undefined") return e != null && e instanceof HTMLElement; }, co = function(e) { return Hx(e) || Q1e(e); @@ -94997,17 +95008,17 @@ var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { return Gx(e) === "core"; }, W1e = function(e) { return Gx(e) === "stylesheet"; -}, PKt = function(e) { +}, $Kt = function(e) { return Gx(e) === "event"; }, Mf = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, $Kt = function(e) { - return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, BKt = 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; }, FKt = function(e) { - return NKt(e) && Pn(e.then); -}, zKt = function() { + return Ar(e) && bt(e.x1) && bt(e.x2) && bt(e.y1) && bt(e.y2); +}, zKt = function(e) { + return IKt(e) && Pn(e.then); +}, VKt = function() { return BH && BH.userAgent.match(/msie|trident|edge/i); }, W2 = function(e, r) { r || (r = function() { @@ -95038,9 +95049,9 @@ var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { return t + "$" + e; }), FH = function(e) { return Mf(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, _i = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", VKt = "rgb[a]?\\((" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)(?:\\s*,\\s*(" + _i + "))?\\)", UKt = "rgb[a]?\\((?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)(?:\\s*,\\s*(?:" + _i + "))?\\)", qKt = "hsl[a]?\\((" + _i + ")\\s*,\\s*(" + _i + "[%])\\s*,\\s*(" + _i + "[%])(?:\\s*,\\s*(" + _i + "))?\\)", YKt = "hsl[a]?\\((?:" + _i + ")\\s*,\\s*(?:" + _i + "[%])\\s*,\\s*(?:" + _i + "[%])(?:\\s*,\\s*(?:" + _i + "))?\\)", QKt = "\\#[0-9a-fA-F]{3}", WKt = "\\#[0-9a-fA-F]{6}", H1e = function(e, r) { +}, _i = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", UKt = "rgb[a]?\\((" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)(?:\\s*,\\s*(" + _i + "))?\\)", qKt = "rgb[a]?\\((?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)(?:\\s*,\\s*(?:" + _i + "))?\\)", YKt = "hsl[a]?\\((" + _i + ")\\s*,\\s*(" + _i + "[%])\\s*,\\s*(" + _i + "[%])(?:\\s*,\\s*(" + _i + "))?\\)", QKt = "hsl[a]?\\((?:" + _i + ")\\s*,\\s*(?:" + _i + "[%])\\s*,\\s*(?:" + _i + "[%])(?:\\s*,\\s*(?:" + _i + "))?\\)", WKt = "\\#[0-9a-fA-F]{3}", GKt = "\\#[0-9a-fA-F]{6}", H1e = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; -}, GKt = function(e, r) { +}, HKt = function(e, r) { return -1 * H1e(e, r); }, Kt = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { @@ -95052,17 +95063,17 @@ var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { } } return t; -}, HKt = function(e) { +}, XKt = 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]; } -}, XKt = function(e) { +}, ZKt = 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("^" + qKt + "$").exec(e); + var f = new RegExp("^" + YKt + "$").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; @@ -95075,8 +95086,8 @@ var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { r = [o, l, u, a]; } return r; -}, ZKt = function(e) { - var r, n = new RegExp("^" + VKt + "$").exec(e); +}, jKt = function(e) { + var r, n = new RegExp("^" + UKt + "$").exec(e); if (n) { r = []; for (var i = [], s = 1; s <= 3; s++) { @@ -95096,11 +95107,11 @@ var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { } } return r; -}, jKt = function(e) { - return JKt[e.toLowerCase()]; }, KKt = function(e) { - return (sn(e) ? e : null) || jKt(e) || HKt(e) || ZKt(e) || XKt(e); -}, JKt = { + return eJt[e.toLowerCase()]; +}, JKt = function(e) { + return (sn(e) ? e : null) || KKt(e) || XKt(e) || jKt(e) || ZKt(e); +}, eJt = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], @@ -95266,55 +95277,55 @@ var RKt = Ii(""), Y1e = Ii({}), MKt = Ii(function() { } return r; }; -function eJt(t) { +function tJt(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var _0 = eJt, $v = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function tJt(t, e) { +var _0 = tJt, $v = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function rJt(t, e) { return e = { exports: {} }, t(e, e.exports), e.exports; } -var rJt = typeof $v == "object" && $v && $v.Object === Object && $v, nJt = rJt, iJt = typeof self == "object" && self && self.Object === Object && self, sJt = nJt || iJt || Function("return this")(), VC = sJt, aJt = function() { +var nJt = typeof $v == "object" && $v && $v.Object === Object && $v, iJt = nJt, sJt = typeof self == "object" && self && self.Object === Object && self, aJt = iJt || sJt || Function("return this")(), VC = aJt, oJt = function() { return VC.Date.now(); -}, iA = aJt, oJt = /\s/; -function lJt(t) { - for (var e = t.length; e-- && oJt.test(t.charAt(e)); ) +}, iA = oJt, lJt = /\s/; +function cJt(t) { + for (var e = t.length; e-- && lJt.test(t.charAt(e)); ) ; return e; } -var cJt = lJt, uJt = /^\s+/; -function hJt(t) { - return t && t.slice(0, cJt(t) + 1).replace(uJt, ""); +var uJt = cJt, hJt = /^\s+/; +function fJt(t) { + return t && t.slice(0, uJt(t) + 1).replace(hJt, ""); } -var fJt = hJt, dJt = VC.Symbol, _1 = dJt, j1e = Object.prototype, pJt = j1e.hasOwnProperty, gJt = j1e.toString, av = _1 ? _1.toStringTag : void 0; -function mJt(t) { - var e = pJt.call(t, av), r = t[av]; +var dJt = fJt, pJt = VC.Symbol, _1 = pJt, j1e = Object.prototype, gJt = j1e.hasOwnProperty, mJt = j1e.toString, av = _1 ? _1.toStringTag : void 0; +function vJt(t) { + var e = gJt.call(t, av), r = t[av]; try { t[av] = void 0; var n = !0; } catch { } - var i = gJt.call(t); + var i = mJt.call(t); return n && (e ? t[av] = r : delete t[av]), i; } -var vJt = mJt, yJt = Object.prototype, bJt = yJt.toString; -function xJt(t) { - return bJt.call(t); +var yJt = vJt, bJt = Object.prototype, xJt = bJt.toString; +function wJt(t) { + return xJt.call(t); } -var wJt = xJt, OJt = "[object Null]", kJt = "[object Undefined]", zH = _1 ? _1.toStringTag : void 0; -function SJt(t) { - return t == null ? t === void 0 ? kJt : OJt : zH && zH in Object(t) ? vJt(t) : wJt(t); -} -var K1e = SJt; +var OJt = wJt, kJt = "[object Null]", SJt = "[object Undefined]", zH = _1 ? _1.toStringTag : void 0; function TJt(t) { + return t == null ? t === void 0 ? SJt : kJt : zH && zH in Object(t) ? yJt(t) : OJt(t); +} +var K1e = TJt; +function CJt(t) { return t != null && typeof t == "object"; } -var CJt = TJt, EJt = "[object Symbol]"; -function _Jt(t) { - return typeof t == "symbol" || CJt(t) && K1e(t) == EJt; +var EJt = CJt, _Jt = "[object Symbol]"; +function AJt(t) { + return typeof t == "symbol" || EJt(t) && K1e(t) == _Jt; } -var Xx = _Jt, VH = 0 / 0, AJt = /^[-+]0x[0-9a-f]+$/i, LJt = /^0b[01]+$/i, RJt = /^0o[0-7]+$/i, MJt = parseInt; -function DJt(t) { +var Xx = AJt, VH = 0 / 0, LJt = /^[-+]0x[0-9a-f]+$/i, RJt = /^0b[01]+$/i, MJt = /^0o[0-7]+$/i, DJt = parseInt; +function NJt(t) { if (typeof t == "number") return t; if (Xx(t)) @@ -95325,16 +95336,16 @@ function DJt(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = fJt(t); - var r = LJt.test(t); - return r || RJt.test(t) ? MJt(t.slice(2), r ? 2 : 8) : AJt.test(t) ? VH : +t; + t = dJt(t); + var r = RJt.test(t); + return r || MJt.test(t) ? DJt(t.slice(2), r ? 2 : 8) : LJt.test(t) ? VH : +t; } -var UH = DJt, NJt = "Expected a function", IJt = Math.max, PJt = Math.min; -function $Jt(t, e, r) { +var UH = NJt, IJt = "Expected a function", PJt = Math.max, $Jt = Math.min; +function BJt(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(NJt); - e = UH(e) || 0, _0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? IJt(UH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + throw new TypeError(IJt); + e = UH(e) || 0, _0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? PJt(UH(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; @@ -95344,7 +95355,7 @@ function $Jt(t, e, r) { } function m(C) { var T = C - l, L = C - u, E = e - T; - return f ? PJt(E, s - L) : E; + return f ? $Jt(E, s - L) : E; } function v(C) { var T = C - l, L = C - u; @@ -95377,11 +95388,11 @@ function $Jt(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { +var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return sA.now(); } : function() { return Date.now(); -}, BJt = function() { +}, FJt = function() { if (xi) { if (xi.requestAnimationFrame) return function(t) { @@ -95406,7 +95417,7 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { }, 1e3 / 60); }; }(), cS = function(e) { - return BJt(e); + return FJt(e); }, eh = J1e, Up = 9261, eme = 65599, Bv = 5381, tme = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Up, n = r, i; i = e.next(), !i.done; ) n = n * eme + i.value | 0; @@ -95417,13 +95428,13 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { }, H2 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Bv; return (r << 5) + r + e | 0; -}, FJt = function(e, r) { +}, zJt = function(e, r) { return e * 2097152 + r; }, bh = function(e) { return e[0] * 2097152 + e[1]; }, PO = function(e, r) { return [G2(e[0], r[0]), H2(e[1], r[1])]; -}, zJt = function(e, r) { +}, VJt = function(e, r) { var n = { value: 0, done: !1 @@ -95444,14 +95455,14 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { }; return tme(a, r); }, rme = function() { - return VJt(arguments); -}, VJt = function(e) { + return UJt(arguments); +}, UJt = function(e) { for (var r, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? r = A0(i) : r = A0(i, r); } return r; -}, qH = !0, UJt = console.warn != null, qJt = console.trace != null, VP = Number.MAX_SAFE_INTEGER || 9007199254740991, nme = function() { +}, qH = !0, qJt = console.warn != null, YJt = console.trace != null, VP = Number.MAX_SAFE_INTEGER || 9007199254740991, nme = function() { return !0; }, uS = function() { return !1; @@ -95466,19 +95477,19 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { else return qH; }, Yr = function(e) { - !ime() || (UJt ? console.warn(e) : (console.log(e), qJt && console.trace())); -}, YJt = function(e) { + !ime() || (qJt ? console.warn(e) : (console.log(e), YJt && console.trace())); +}, QJt = function(e) { return Kt({}, e); }, Tc = function(e) { - return e == null ? e : sn(e) ? e.slice() : Ar(e) ? YJt(e) : e; -}, QJt = function(e) { + return e == null ? e : sn(e) ? e.slice() : Ar(e) ? QJt(e) : e; +}, WJt = function(e) { return e.slice(); }, sme = 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; -}, WJt = {}, ame = function() { - return WJt; +}, GJt = {}, ame = function() { + return GJt; }, ws = function(e) { var r = Object.keys(e); return function(n) { @@ -95493,7 +95504,7 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { ; }, qP = function(e) { e.splice(0, e.length); -}, GJt = function(e, r) { +}, HJt = function(e, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; e.push(i); @@ -95502,7 +95513,7 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return n && (r = G1e(n, r)), e[r]; }, Dh = function(e, r, n, i) { n && (r = G1e(n, r)), e[r] = i; -}, HJt = /* @__PURE__ */ function() { +}, XJt = /* @__PURE__ */ function() { function t() { $P(this, t), this._obj = {}; } @@ -95532,7 +95543,7 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return this._obj[r]; } }]), t; -}(), Cc = typeof Map < "u" ? Map : HJt, XJt = "undefined", ZJt = /* @__PURE__ */ function() { +}(), Cc = typeof Map < "u" ? Map : XJt, ZJt = "undefined", jJt = /* @__PURE__ */ function() { function t(e) { if ($P(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var r; @@ -95582,7 +95593,7 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return this.toArray().forEach(r, n); } }]), t; -}(), vm = (typeof Set > "u" ? "undefined" : Ii(Set)) !== XJt ? Set : ZJt, qC = function(e, r) { +}(), vm = (typeof Set > "u" ? "undefined" : Ii(Set)) !== ZJt ? Set : jJt, qC = function(e, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (e === void 0 || r === void 0 || !FP(e)) { Qn("An element must have a core reference and parameters set"); @@ -95724,7 +95735,7 @@ var UC = $Jt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { }; X2.bfs = X2.breadthFirstSearch; X2.dfs = X2.depthFirstSearch; -var jJt = tJt(function(t, e) { +var KJt = rJt(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) { @@ -95834,13 +95845,13 @@ var jJt = tJt(function(t, e) { return r; }); }).call($v); -}), Zx = jJt, KJt = ws({ +}), Zx = KJt, JJt = ws({ root: null, weight: function(e) { return 1; }, directed: !1 -}), JJt = { +}), eer = { dijkstra: function(e) { if (!Ar(e)) { var r = arguments; @@ -95850,7 +95861,7 @@ var jJt = tJt(function(t, e) { directed: r[2] }; } - var n = KJt(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 = JJt(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(); }); @@ -95900,7 +95911,7 @@ var jJt = tJt(function(t, e) { } }; } -}, eer = { +}, ter = { kruskal: function(e) { e = e || function(w) { return 1; @@ -95921,7 +95932,7 @@ var jJt = tJt(function(t, e) { } return o; } -}, ter = ws({ +}, rer = ws({ root: null, goal: null, weight: function(e) { @@ -95931,9 +95942,9 @@ var jJt = tJt(function(t, e) { return 0; }, directed: !1 -}), rer = { +}), ner = { aStar: function(e) { - var r = this.cy(), n = ter(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; + var r = this.cy(), n = rer(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 Zx(function(F, B) { return d[F.id()] - d[B.id()]; @@ -95979,14 +95990,14 @@ var jJt = tJt(function(t, e) { steps: T }; } -}, ner = ws({ +}, ier = ws({ weight: function(e) { return 1; }, directed: !1 -}), ier = { +}), ser = { floydWarshall: function(e) { - for (var r = this.cy(), n = ner(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(Y) { + for (var r = this.cy(), n = ier(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(Y) { return l.indexOf(Y); }, p = function(Y) { return l[Y]; @@ -96033,15 +96044,15 @@ var jJt = tJt(function(t, e) { }; return B; } -}, ser = ws({ +}, aer = ws({ weight: function(e) { return 1; }, directed: !1, root: null -}), aer = { +}), oer = { bellmanFord: function(e) { - var r = this, n = ser(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 = aer(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(); }); @@ -96109,7 +96120,7 @@ var jJt = tJt(function(t, e) { negativeWeightCycles: v }; } -}, oer = Math.sqrt(2), ler = function(e, r, n) { +}, ler = Math.sqrt(2), cer = function(e, r, n) { n.length === 0 && Qn("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]; @@ -96125,16 +96136,16 @@ var jJt = tJt(function(t, e) { }, aA = function(e, r, n, i) { for (; n > i; ) { var s = Math.floor(Math.random() * r.length); - r = ler(s, e, r), n--; + r = cer(s, e, r), n--; } return r; -}, cer = { +}, uer = { 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 / oer); + var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / ler); if (s < 2) { Qn("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -96175,7 +96186,7 @@ var jJt = tJt(function(t, e) { }; return I; } -}, uer = function(e) { +}, her = function(e) { return { x: e.x, y: e.y @@ -96195,25 +96206,25 @@ var jJt = tJt(function(t, e) { x: e[0], y: e[1] }; -}, her = function(e) { +}, fer = 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; -}, fer = function(e) { +}, der = 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; -}, der = function(e) { +}, per = 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; -}, per = function(e) { +}, ger = 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--) { @@ -96225,7 +96236,7 @@ var jJt = tJt(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; -}, ger = function(e) { +}, mer = function(e) { return Math.PI * e / 180; }, $O = function(e, r) { return Math.atan2(r, e) - Math.PI / 2; @@ -96238,7 +96249,7 @@ var jJt = tJt(function(t, e) { }, hd = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return n * n + i * i; -}, mer = function(e) { +}, ver = function(e) { for (var r = e.length, n = 0, i = 0; i < r; i++) n += e[i]; for (var s = 0; s < r; s++) @@ -96251,7 +96262,7 @@ var jJt = tJt(function(t, e) { x: zi(e.x, r.x, n.x, i), y: zi(e.y, r.y, n.y, i) }; -}, ver = function(e, r, n, i) { +}, yer = function(e, r, n, i) { var s = { x: r.x - e.x, y: r.y - e.y @@ -96295,7 +96306,7 @@ var jJt = tJt(function(t, e) { h: e.h }; } -}, yer = function(e) { +}, ber = function(e) { return { x1: e.x1, x2: e.x2, @@ -96304,9 +96315,9 @@ var jJt = tJt(function(t, e) { y2: e.y2, h: e.h }; -}, ber = function(e) { +}, xer = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, xer = function(e, r, n) { +}, wer = function(e, r, n) { return { x1: e.x1 + r, x2: e.x2 + r, @@ -96317,7 +96328,7 @@ var jJt = tJt(function(t, e) { }; }, cme = 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; -}, wer = function(e, r, n) { +}, Oer = 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; }, a5 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; @@ -96339,7 +96350,7 @@ var jJt = tJt(function(t, e) { 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); }, A1 = function(e, r, n) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; -}, Oer = function(e, r) { +}, ker = function(e, r) { return A1(e, r.x, r.y); }, ume = function(e, r) { return A1(e, r.x1, r.y1) && A1(e, r.x2, r.y2); @@ -96389,10 +96400,10 @@ var jJt = tJt(function(t, e) { return [N[0], N[1]]; } return []; -}, ker = function(e, r, n, i, s, a, o) { +}, Ser = 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; -}, Ser = function(e, r, n, i, s, a, o, l, u) { +}, Ter = 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, @@ -96400,14 +96411,14 @@ var jJt = tJt(function(t, e) { y2: Math.max(i, l, a) + u }; return !(e < h.x1 || e > h.x2 || r < h.y1 || r > h.y2); -}, Ter = 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) { +}, Eer = 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; @@ -96420,16 +96431,16 @@ var jJt = tJt(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); -}, Eer = function(e, r, n, i, s, a, o, l) { +}, _er = 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); + Eer(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; -}, _er = function(e, r, n, i, s, a) { +}, Aer = 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) { @@ -96452,7 +96463,7 @@ var jJt = tJt(function(t, e) { } else m = h; return Ta(e, r, m); -}, Aer = function(e, r, n, i, s, a, o, l) { +}, Ler = 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; @@ -96475,7 +96486,7 @@ var jJt = tJt(function(t, e) { 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; -}, Ler = function(e, r, n, i, s, a) { +}, Rer = 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; @@ -96526,7 +96537,7 @@ var jJt = tJt(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; -}, Rer = function(e, r, n, i, s, a, o, l, u) { +}, Mer = 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 = Fv(e, r, i, s, b.cx, b.cy, b.radius), f.length !== 0 && h.push(f[0], f[1]); @@ -96568,7 +96579,7 @@ var jJt = tJt(function(t, e) { return Math.min(e / 10, r / 10, 8); }, WP = function() { return 8; -}, Mer = function(e, r, n) { +}, Der = function(e, r, n) { return [e - 2 * r + n, 2 * (r - e), e]; }, sR = function(e, r) { return { @@ -96576,16 +96587,16 @@ var jJt = tJt(function(t, e) { widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; -}, Der = ws({ +}, Ner = ws({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), Ner = { +}), Ier = { pageRank: function(e) { - for (var r = Der(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 = Ner(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; @@ -96620,7 +96631,7 @@ var jJt = tJt(function(t, e) { var Q = G * f + ee; P[G] += g[Q] * D[ee]; } - mer(P), F = D, D = P, P = F; + ver(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; @@ -96747,12 +96758,12 @@ var HH = ws({ }; vg.cc = vg.closenessCentrality; vg.ccn = vg.closenessCentralityNormalised = vg.closenessCentralityNormalized; -var Ier = ws({ +var Per = ws({ weight: null, directed: !1 }), aR = { betweennessCentrality: function(e) { - for (var r = Ier(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { + for (var r = Per(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); }, @@ -96812,7 +96823,7 @@ var Ier = ws({ } }; aR.bc = aR.betweennessCentrality; -var Per = ws({ +var $er = ws({ expandFactor: 2, inflateFactor: 2, multFactor: 1, @@ -96822,13 +96833,13 @@ var Per = ws({ return 1; } ] -}), $er = function(e) { - return Per(e); -}, Ber = function(e, r) { +}), Ber = function(e) { + return $er(e); +}, Fer = function(e, r) { for (var n = 0, i = 0; i < r.length; i++) n += r[i](e); return n; -}, Fer = function(e, r, n) { +}, zer = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; }, pme = function(e, r) { @@ -96839,7 +96850,7 @@ var Per = ws({ for (var a = 0; a < r; a++) e[a * r + i] = e[a * r + i] / n; } -}, zer = function(e, r, n) { +}, Ver = 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; @@ -96848,56 +96859,56 @@ var Per = ws({ i[s * n + l] += e[s * n + o] * r[o * n + l]; } return i; -}, Ver = function(e, r, n) { +}, Uer = function(e, r, n) { for (var i = e.slice(0), s = 1; s < n; s++) - e = zer(e, i, r); + e = Ver(e, i, r); return e; -}, Uer = function(e, r, n) { +}, qer = 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 pme(i, r), i; -}, qer = function(e, r, n, i) { +}, Yer = 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; -}, Yer = function(e, r, n, i) { +}, Qer = 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; -}, Qer = function(e, r) { +}, Wer = function(e, r) { for (var n = 0; n < e.length; n++) if (!r[n] || e[n].id() !== r[n].id()) return !1; return !0; -}, Wer = function(e) { +}, Ger = function(e) { for (var r = 0; r < e.length; r++) for (var n = 0; n < e.length; n++) - r != n && Qer(e[r], e[n]) && e.splice(n, 1); + r != n && Wer(e[r], e[n]) && e.splice(n, 1); return e; }, XH = function(e) { - for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = $er(e), a = {}, o = 0; o < r.length; o++) + for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = Ber(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 = Ber(g, s.attributes); + var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = Fer(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - Fer(h, l, s.multFactor), pme(h, l); + zer(h, l, s.multFactor), pme(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) - b = !1, f = Ver(h, l, s.expandFactor), h = Uer(f, l, s.inflateFactor), qer(h, f, u, 4) || (b = !0), w++; - var O = Yer(h, l, r, i); - return O = Wer(O), O; -}, Ger = { + b = !1, f = Uer(h, l, s.expandFactor), h = qer(f, l, s.inflateFactor), Yer(h, f, u, 4) || (b = !0), w++; + var O = Qer(h, l, r, i); + return O = Ger(O), O; +}, Her = { markovClustering: XH, mcl: XH -}, Her = function(e) { +}, Xer = function(e) { return e; }, gme = function(e, r) { return Math.abs(r - e); @@ -96905,17 +96916,17 @@ var Per = ws({ return e + gme(r, n); }, jH = function(e, r, n) { return e + Math.pow(n - r, 2); -}, Xer = function(e) { +}, Zer = function(e) { return Math.sqrt(e); -}, Zer = function(e, r, n) { +}, jer = function(e, r, n) { return Math.max(e, gme(r, n)); }, ov = function(e, r, n, i, s) { - for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Her, o = i, l, u, h = 0; h < e; h++) + for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Xer, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, L1 = { euclidean: function(e, r, n) { - return e >= 2 ? ov(e, r, n, 0, jH, Xer) : ov(e, r, n, 0, ZH); + return e >= 2 ? ov(e, r, n, 0, jH, Zer) : ov(e, r, n, 0, ZH); }, squaredEuclidean: function(e, r, n) { return ov(e, r, n, 0, jH); @@ -96924,7 +96935,7 @@ var Per = ws({ return ov(e, r, n, 0, ZH); }, max: function(e, r, n) { - return ov(e, r, n, -1 / 0, Zer); + return ov(e, r, n, -1 / 0, jer); } }; L1["squared-euclidean"] = L1.squaredEuclidean; @@ -96933,7 +96944,7 @@ function QC(t, e, r, n, i, s) { var a; return Pn(t) ? a = t : a = L1[t] || L1.euclidean, e === 0 && Pn(t) ? a(i, s) : a(e, r, n, i, s); } -var jer = ws({ +var Ker = ws({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -96943,7 +96954,7 @@ var jer = ws({ testMode: !1, testCentroids: null }), GP = function(e) { - return jer(e); + return Ker(e); }, dS = function(e, r, n, i, s) { var a = s !== "kMedoids", o = a ? function(f) { return n[f]; @@ -96973,9 +96984,9 @@ var jer = ws({ for (var i = [], s = null, a = 0; a < r.length; a++) s = r[a], n[s.id()] === e && i.push(s); return i; -}, Ker = function(e, r, n) { - return Math.abs(r - e) <= n; }, Jer = function(e, r, n) { + return Math.abs(r - e) <= n; +}, etr = 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]); @@ -96983,7 +96994,7 @@ var jer = ws({ return !1; } return !0; -}, etr = function(e, r, n) { +}, ttr = function(e, r, n) { for (var i = 0; i < n; i++) if (e === r[i]) return !0; @@ -96992,7 +97003,7 @@ var jer = ws({ 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)]; etr(s, n, i); ) + for (var s = e[Math.floor(Math.random() * e.length)]; ttr(s, n, i); ) s = e[Math.floor(Math.random() * e.length)]; n[i] = s; } @@ -97004,7 +97015,7 @@ var jer = ws({ for (var i = 0, s = 0; s < r.length; s++) i += dS("manhattan", r[s], e, n, "kMedoids"); return i; -}, ttr = function(e) { +}, rtr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = GP(e), a = new Array(s.k), o = {}, l; s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = lA(n, s.k, s.attributes)) : Ii(s.testCentroids) === "object" ? l = s.testCentroids : l = lA(n, s.k, s.attributes) : l = lA(n, s.k, s.attributes); for (var u = !0, h = 0; u && h < s.maxIterations; ) { @@ -97018,7 +97029,7 @@ var jer = ws({ 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, Ker(v[b], m[b], s.sensitivityThreshold) || (u = !0); + v[b] = y[b] / p.length, Jer(v[b], m[b], s.sensitivityThreshold) || (u = !0); } l[d] = v, a[d] = r.collection(p); } @@ -97026,7 +97037,7 @@ var jer = ws({ h++; } return a; -}, rtr = function(e) { +}, ntr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = GP(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 = KH(n, s.k)) : o = KH(n, s.k); for (var f = !0, d = 0; f && d < s.maxIterations; ) { @@ -97045,7 +97056,7 @@ var jer = ws({ d++; } return a; -}, ntr = function(e, r, n, i, s) { +}, itr = 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); @@ -97056,7 +97067,7 @@ var jer = ws({ a += i[d][h] * s.attributes[f](r[d]), o += i[d][h]; e[h][f] = a / o; } -}, itr = function(e, r, n, i, s) { +}, str = 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++) @@ -97066,7 +97077,7 @@ var jer = ws({ l = dS(s.distance, i[d], n[f], s.attributes, "cmeans"), u = dS(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); e[d][f] = 1 / o; } -}, str = function(e, r, n, i) { +}, atr = 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++) { @@ -97099,17 +97110,17 @@ var jer = 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, ntr(a, n, o, u, i), itr(o, l, a, n, i), Jer(o, l, i.sensitivityThreshold) || (b = !0), w++; - return s = str(n, o, i, r), { + b = !1, itr(a, n, o, u, i), str(o, l, a, n, i), etr(o, l, i.sensitivityThreshold) || (b = !0), w++; + return s = atr(n, o, i, r), { clusters: s, degreeOfMembership: o }; -}, atr = { - kMeans: ttr, - kMedoids: rtr, +}, otr = { + kMeans: rtr, + kMedoids: ntr, fuzzyCMeans: eX, fcm: eX -}, otr = ws({ +}, ltr = ws({ distance: "euclidean", linkage: "min", mode: "threshold", @@ -97117,11 +97128,11 @@ var jer = ws({ addDendrogram: !1, dendrogramDepth: 0, attributes: [] -}), ltr = { +}), ctr = { single: "min", complete: "max" -}, ctr = function(e) { - var r = otr(e), n = ltr[r.linkage]; +}, utr = function(e) { + var r = ltr(e), n = ctr[r.linkage]; return n != null && (r.linkage = n), r; }, tX = function(e, r, n, i, s) { for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, R) { @@ -97163,7 +97174,7 @@ var jer = ws({ return g.key = m.key = g.index = m.index = null, !0; }, FO = function t(e, r, n) { !e || (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r))); -}, utr = function t(e, r) { +}, htr = function t(e, r) { if (!e) return ""; if (e.left && e.right) { @@ -97188,13 +97199,13 @@ var jer = ws({ }), s.id(); } else if (e.value) return e.value.id(); -}, htr = function t(e, r, n) { +}, ftr = function t(e, r, n) { if (!e) return []; var i = [], s = [], a = []; return r === 0 ? (e.left && FO(e.left, i), e.right && FO(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && FO(e.left, i), e.right && FO(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)); }, rX = function(e) { - for (var r = this.cy(), n = this.nodes(), i = ctr(e), s = i.attributes, a = function(w, O) { + for (var r = this.cy(), n = this.nodes(), i = utr(e), s = i.attributes, a = function(w, O) { return QC(i.distance, s.length, function(S) { return s[S](w); }, function(S) { @@ -97216,20 +97227,20 @@ var jer = ws({ for (var v = tX(o, h, l, u, i); v; ) v = tX(o, h, l, u, i); var y; - return i.mode === "dendrogram" ? (y = htr(o[0], i.dendrogramDepth, r), i.addDendrogram && utr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { + return i.mode === "dendrogram" ? (y = ftr(o[0], i.dendrogramDepth, r), i.addDendrogram && htr(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; -}, ftr = { +}, dtr = { hierarchicalClustering: rX, hca: rX -}, dtr = ws({ +}, ptr = ws({ distance: "euclidean", preference: "median", damping: 0.8, maxIterations: 1e3, minIterations: 100, attributes: [] -}), ptr = function(e) { +}), gtr = function(e) { var r = e.damping, n = e.preference; 0.5 <= r && r < 1 || Qn("Damping must range on [0.5, 1). Got: ".concat(r)); var i = ["median", "mean", "min", "max"]; @@ -97237,8 +97248,8 @@ var jer = ws({ return s === n; }) || bt(n) || Qn("Preference must be one of [".concat(i.map(function(s) { return "'".concat(s, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), dtr(e); -}, gtr = function(e, r, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), ptr(e); +}, mtr = function(e, r, n, i) { var s = function(o, l) { return i[l](o); }; @@ -97247,10 +97258,10 @@ var jer = ws({ }, function(a) { return s(n, a); }, r, n); -}, mtr = function(e, r) { +}, vtr = function(e, r) { var n = null; - return r === "median" ? n = per(e) : r === "mean" ? n = der(e) : r === "min" ? n = her(e) : r === "max" ? n = fer(e) : n = r, n; -}, vtr = function(e, r, n) { + return r === "median" ? n = ger(e) : r === "mean" ? n = per(e) : r === "min" ? n = fer(e) : r === "max" ? n = der(e) : n = r, n; +}, ytr = 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; @@ -97265,7 +97276,7 @@ var jer = ws({ for (var h = 0; h < n.length; h++) i[n[h]] = n[h]; return i; -}, ytr = function(e, r, n) { +}, btr = function(e, r, n) { for (var i = nX(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); @@ -97278,7 +97289,7 @@ var jer = ws({ } return i = nX(e, r, n), i; }, iX = function(e) { - for (var r = this.cy(), n = this.nodes(), i = ptr(e), s = {}, a = 0; a < n.length; a++) + for (var r = this.cy(), n = this.nodes(), i = gtr(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); @@ -97286,8 +97297,8 @@ var jer = 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] = gtr(i.distance, n[g], n[m], i.attributes)); - h = mtr(u, i.preference); + g !== m && (u[g * o + m] = mtr(i.distance, n[g], n[m], i.attributes)); + h = vtr(u, i.preference); for (var v = 0; v < o; v++) u[v * o + v] = h; f = new Array(l); @@ -97332,7 +97343,7 @@ var jer = ws({ break; } } - for (var ne = vtr(o, f, d), ie = ytr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) + for (var ne = ytr(o, f, d), ie = btr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) U[ne[Z]] = []; for (var W = 0; W < n.length; W++) { var j = s[n[W].id()], ae = ie[j]; @@ -97341,13 +97352,13 @@ var jer = ws({ for (var se = new Array(ne.length), K = 0; K < ne.length; K++) se[K] = r.collection(U[ne[K]]); return se; -}, btr = { +}, xtr = { affinityPropagation: iX, ap: iX -}, xtr = ws({ +}, wtr = ws({ root: void 0, directed: !1 -}), wtr = { +}), Otr = { hierholzer: function(e) { if (!Ar(e)) { var r = arguments; @@ -97356,7 +97367,7 @@ var jer = ws({ directed: r[1] }; } - var n = xtr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; + var n = wtr(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) { @@ -97461,7 +97472,7 @@ var jer = ws({ cut: e.spawn(h), components: s }; -}, Otr = { +}, ktr = { hopcroftTarjanBiconnected: zO, htbc: zO, htb: zO, @@ -97496,13 +97507,13 @@ var jer = ws({ cut: a, components: i }; -}, ktr = { +}, Str = { tarjanStronglyConnected: VO, tsc: VO, tscc: VO, tarjanStronglyConnectedComponents: VO }, yme = {}; -[X2, JJt, eer, rer, ier, aer, cer, Ner, mg, vg, aR, Ger, atr, ftr, btr, wtr, Otr, ktr].forEach(function(t) { +[X2, eer, ter, ner, ser, oer, uer, Ier, mg, vg, aR, Her, otr, dtr, xtr, Otr, ktr, Str].forEach(function(t) { Kt(yme, t); }); /*! @@ -97555,10 +97566,10 @@ var sX = function(e, r, n, i) { r.reject(a); return; } - Str(r, s); + Ttr(r, s); } }; -}, Str = function t(e, r) { +}, Ttr = function t(e, r) { if (e === r || e.proxy === r) { e.reject(new TypeError("cannot resolve promise with itself")); return; @@ -97726,7 +97737,7 @@ Kt(M0, { M0.complete = M0.completed; M0.run = M0.play; M0.running = M0.playing; -var Ttr = { +var Ctr = { animated: function() { return function() { var r = this, n = r.length !== void 0, i = n ? r : [r], s = this._private.cy || this; @@ -97844,32 +97855,32 @@ var Ttr = { return o.notify("draw"), this; }; } -}, Ctr = Array.isArray, WC = Ctr, Etr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _tr = /^\w*$/; -function Atr(t, e) { +}, Etr = Array.isArray, WC = Etr, _tr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Atr = /^\w*$/; +function Ltr(t, e) { if (WC(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || Xx(t) ? !0 : _tr.test(t) || !Etr.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || Xx(t) ? !0 : Atr.test(t) || !_tr.test(t) || e != null && t in Object(e); } -var Ltr = Atr, Rtr = "[object AsyncFunction]", Mtr = "[object Function]", Dtr = "[object GeneratorFunction]", Ntr = "[object Proxy]"; -function Itr(t) { +var Rtr = Ltr, Mtr = "[object AsyncFunction]", Dtr = "[object Function]", Ntr = "[object GeneratorFunction]", Itr = "[object Proxy]"; +function Ptr(t) { if (!_0(t)) return !1; var e = K1e(t); - return e == Mtr || e == Dtr || e == Rtr || e == Ntr; + return e == Dtr || e == Ntr || e == Mtr || e == Itr; } -var Ptr = Itr, $tr = VC["__core-js_shared__"], cA = $tr, lX = function() { +var $tr = Ptr, Btr = VC["__core-js_shared__"], cA = Btr, lX = function() { var t = /[^.]+$/.exec(cA && cA.keys && cA.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function Btr(t) { +function Ftr(t) { return !!lX && lX in t; } -var Ftr = Btr, ztr = Function.prototype, Vtr = ztr.toString; -function Utr(t) { +var ztr = Ftr, Vtr = Function.prototype, Utr = Vtr.toString; +function qtr(t) { if (t != null) { try { - return Vtr.call(t); + return Utr.call(t); } catch { } try { @@ -97879,53 +97890,53 @@ function Utr(t) { } return ""; } -var qtr = Utr, Ytr = /[\\^$.*+?()[\]{}|]/g, Qtr = /^\[object .+?Constructor\]$/, Wtr = Function.prototype, Gtr = Object.prototype, Htr = Wtr.toString, Xtr = Gtr.hasOwnProperty, Ztr = RegExp( - "^" + Htr.call(Xtr).replace(Ytr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var Ytr = qtr, Qtr = /[\\^$.*+?()[\]{}|]/g, Wtr = /^\[object .+?Constructor\]$/, Gtr = Function.prototype, Htr = Object.prototype, Xtr = Gtr.toString, Ztr = Htr.hasOwnProperty, jtr = RegExp( + "^" + Xtr.call(Ztr).replace(Qtr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function jtr(t) { - if (!_0(t) || Ftr(t)) +function Ktr(t) { + if (!_0(t) || ztr(t)) return !1; - var e = Ptr(t) ? Ztr : Qtr; - return e.test(qtr(t)); + var e = $tr(t) ? jtr : Wtr; + return e.test(Ytr(t)); } -var Ktr = jtr; -function Jtr(t, e) { +var Jtr = Ktr; +function err(t, e) { return t == null ? void 0 : t[e]; } -var err = Jtr; -function trr(t, e) { - var r = err(t, e); - return Ktr(r) ? r : void 0; +var trr = err; +function rrr(t, e) { + var r = trr(t, e); + return Jtr(r) ? r : void 0; } -var HP = trr, rrr = HP(Object, "create"), K2 = rrr; -function nrr() { +var HP = rrr, nrr = HP(Object, "create"), K2 = nrr; +function irr() { this.__data__ = K2 ? K2(null) : {}, this.size = 0; } -var irr = nrr; -function srr(t) { +var srr = irr; +function arr(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var arr = srr, orr = "__lodash_hash_undefined__", lrr = Object.prototype, crr = lrr.hasOwnProperty; -function urr(t) { +var orr = arr, lrr = "__lodash_hash_undefined__", crr = Object.prototype, urr = crr.hasOwnProperty; +function hrr(t) { var e = this.__data__; if (K2) { var r = e[t]; - return r === orr ? void 0 : r; + return r === lrr ? void 0 : r; } - return crr.call(e, t) ? e[t] : void 0; + return urr.call(e, t) ? e[t] : void 0; } -var hrr = urr, frr = Object.prototype, drr = frr.hasOwnProperty; -function prr(t) { +var frr = hrr, drr = Object.prototype, prr = drr.hasOwnProperty; +function grr(t) { var e = this.__data__; - return K2 ? e[t] !== void 0 : drr.call(e, t); + return K2 ? e[t] !== void 0 : prr.call(e, t); } -var grr = prr, mrr = "__lodash_hash_undefined__"; -function vrr(t, e) { +var mrr = grr, vrr = "__lodash_hash_undefined__"; +function yrr(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = K2 && e === void 0 ? mrr : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = K2 && e === void 0 ? vrr : e, this; } -var yrr = vrr; +var brr = yrr; function bm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97933,49 +97944,49 @@ function bm(t) { this.set(n[0], n[1]); } } -bm.prototype.clear = irr; -bm.prototype.delete = arr; -bm.prototype.get = hrr; -bm.prototype.has = grr; -bm.prototype.set = yrr; +bm.prototype.clear = srr; +bm.prototype.delete = orr; +bm.prototype.get = frr; +bm.prototype.has = mrr; +bm.prototype.set = brr; var cX = bm; -function brr() { +function xrr() { this.__data__ = [], this.size = 0; } -var xrr = brr; -function wrr(t, e) { +var wrr = xrr; +function Orr(t, e) { return t === e || t !== t && e !== e; } -var kme = wrr; -function Orr(t, e) { +var kme = Orr; +function krr(t, e) { for (var r = t.length; r--; ) if (kme(t[r][0], e)) return r; return -1; } -var GC = Orr, krr = Array.prototype, Srr = krr.splice; -function Trr(t) { +var GC = krr, Srr = Array.prototype, Trr = Srr.splice; +function Crr(t) { var e = this.__data__, r = GC(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : Srr.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : Trr.call(e, r, 1), --this.size, !0; } -var Crr = Trr; -function Err(t) { +var Err = Crr; +function _rr(t) { var e = this.__data__, r = GC(e, t); return r < 0 ? void 0 : e[r][1]; } -var _rr = Err; -function Arr(t) { +var Arr = _rr; +function Lrr(t) { return GC(this.__data__, t) > -1; } -var Lrr = Arr; -function Rrr(t, e) { +var Rrr = Lrr; +function Mrr(t, e) { var r = this.__data__, n = GC(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -var Mrr = Rrr; +var Drr = Mrr; function xm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97983,48 +97994,48 @@ function xm(t) { this.set(n[0], n[1]); } } -xm.prototype.clear = xrr; -xm.prototype.delete = Crr; -xm.prototype.get = _rr; -xm.prototype.has = Lrr; -xm.prototype.set = Mrr; -var Drr = xm, Nrr = HP(VC, "Map"), Irr = Nrr; -function Prr() { +xm.prototype.clear = wrr; +xm.prototype.delete = Err; +xm.prototype.get = Arr; +xm.prototype.has = Rrr; +xm.prototype.set = Drr; +var Nrr = xm, Irr = HP(VC, "Map"), Prr = Irr; +function $rr() { this.size = 0, this.__data__ = { hash: new cX(), - map: new (Irr || Drr)(), + map: new (Prr || Nrr)(), string: new cX() }; } -var $rr = Prr; -function Brr(t) { +var Brr = $rr; +function Frr(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -var Frr = Brr; -function zrr(t, e) { +var zrr = Frr; +function Vrr(t, e) { var r = t.__data__; - return Frr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return zrr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -var HC = zrr; -function Vrr(t) { +var HC = Vrr; +function Urr(t) { var e = HC(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -var Urr = Vrr; -function qrr(t) { +var qrr = Urr; +function Yrr(t) { return HC(this, t).get(t); } -var Yrr = qrr; -function Qrr(t) { +var Qrr = Yrr; +function Wrr(t) { return HC(this, t).has(t); } -var Wrr = Qrr; -function Grr(t, e) { +var Grr = Wrr; +function Hrr(t, e) { var r = HC(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -var Hrr = Grr; +var Xrr = Hrr; function wm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -98032,15 +98043,15 @@ function wm(t) { this.set(n[0], n[1]); } } -wm.prototype.clear = $rr; -wm.prototype.delete = Urr; -wm.prototype.get = Yrr; -wm.prototype.has = Wrr; -wm.prototype.set = Hrr; -var Sme = wm, Xrr = "Expected a function"; +wm.prototype.clear = Brr; +wm.prototype.delete = qrr; +wm.prototype.get = Qrr; +wm.prototype.has = Grr; +wm.prototype.set = Xrr; +var Sme = wm, Zrr = "Expected a function"; function XP(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(Xrr); + throw new TypeError(Zrr); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -98051,25 +98062,25 @@ function XP(t, e) { return r.cache = new (XP.Cache || Sme)(), r; } XP.Cache = Sme; -var Zrr = XP, jrr = 500; -function Krr(t) { - var e = Zrr(t, function(n) { - return r.size === jrr && r.clear(), n; +var jrr = XP, Krr = 500; +function Jrr(t) { + var e = jrr(t, function(n) { + return r.size === Krr && r.clear(), n; }), r = e.cache; return e; } -var Jrr = Krr, enr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, tnr = /\\(\\)?/g, rnr = Jrr(function(t) { +var enr = Jrr, tnr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, rnr = /\\(\\)?/g, nnr = enr(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(enr, function(r, n, i, s) { - e.push(i ? s.replace(tnr, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(tnr, function(r, n, i, s) { + e.push(i ? s.replace(rnr, "$1") : n || r); }), e; -}), Tme = rnr; -function nnr(t, e) { +}), Tme = nnr; +function inr(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 Cme = nnr, inr = 1 / 0, uX = _1 ? _1.prototype : void 0, hX = uX ? uX.toString : void 0; +var Cme = inr, snr = 1 / 0, uX = _1 ? _1.prototype : void 0, hX = uX ? uX.toString : void 0; function Eme(t) { if (typeof t == "string") return t; @@ -98078,43 +98089,43 @@ function Eme(t) { if (Xx(t)) return hX ? hX.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -inr ? "-0" : e; + return e == "0" && 1 / t == -snr ? "-0" : e; } -var snr = Eme; -function anr(t) { - return t == null ? "" : snr(t); +var anr = Eme; +function onr(t) { + return t == null ? "" : anr(t); } -var _me = anr; -function onr(t, e) { - return WC(t) ? t : Ltr(t, e) ? [t] : Tme(_me(t)); +var _me = onr; +function lnr(t, e) { + return WC(t) ? t : Rtr(t, e) ? [t] : Tme(_me(t)); } -var Ame = onr, lnr = 1 / 0; -function cnr(t) { +var Ame = lnr, cnr = 1 / 0; +function unr(t) { if (typeof t == "string" || Xx(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -lnr ? "-0" : e; + return e == "0" && 1 / t == -cnr ? "-0" : e; } -var ZP = cnr; -function unr(t, e) { +var ZP = unr; +function hnr(t, e) { e = Ame(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[ZP(e[r++])]; return r && r == n ? t : void 0; } -var hnr = unr; -function fnr(t, e, r) { - var n = t == null ? void 0 : hnr(t, e); +var fnr = hnr; +function dnr(t, e, r) { + var n = t == null ? void 0 : fnr(t, e); return n === void 0 ? r : n; } -var dnr = fnr, pnr = function() { +var pnr = dnr, gnr = function() { try { var t = HP(Object, "defineProperty"); return t({}, "", {}), t; } catch { } -}(), fX = pnr; -function gnr(t, e, r) { +}(), fX = gnr; +function mnr(t, e, r) { e == "__proto__" && fX ? fX(t, e, { configurable: !0, enumerable: !0, @@ -98122,18 +98133,18 @@ function gnr(t, e, r) { writable: !0 }) : t[e] = r; } -var mnr = gnr, vnr = Object.prototype, ynr = vnr.hasOwnProperty; -function bnr(t, e, r) { +var vnr = mnr, ynr = Object.prototype, bnr = ynr.hasOwnProperty; +function xnr(t, e, r) { var n = t[e]; - (!(ynr.call(t, e) && kme(n, r)) || r === void 0 && !(e in t)) && mnr(t, e, r); + (!(bnr.call(t, e) && kme(n, r)) || r === void 0 && !(e in t)) && vnr(t, e, r); } -var xnr = bnr, wnr = 9007199254740991, Onr = /^(?:0|[1-9]\d*)$/; -function knr(t, e) { +var wnr = xnr, Onr = 9007199254740991, knr = /^(?:0|[1-9]\d*)$/; +function Snr(t, e) { var r = typeof t; - return e = e == null ? wnr : e, !!e && (r == "number" || r != "symbol" && Onr.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? Onr : e, !!e && (r == "number" || r != "symbol" && knr.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var Snr = knr; -function Tnr(t, e, r, n) { +var Tnr = Snr; +function Cnr(t, e, r, n) { if (!_0(t)) return t; e = Ame(e, t); @@ -98143,28 +98154,28 @@ function Tnr(t, e, r, n) { return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = _0(h) ? h : Snr(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = _0(h) ? h : Tnr(e[i + 1]) ? [] : {}); } - xnr(o, l, u), o = o[l]; + wnr(o, l, u), o = o[l]; } return t; } -var Cnr = Tnr; -function Enr(t, e, r) { - return t == null ? t : Cnr(t, e, r); +var Enr = Cnr; +function _nr(t, e, r) { + return t == null ? t : Enr(t, e, r); } -var _nr = Enr; -function Anr(t, e) { +var Anr = _nr; +function Lnr(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var Lnr = Anr; -function Rnr(t) { - return WC(t) ? Cme(t, ZP) : Xx(t) ? [t] : Lnr(Tme(_me(t))); +var Rnr = Lnr; +function Mnr(t) { + return WC(t) ? Cme(t, ZP) : Xx(t) ? [t] : Rnr(Tme(_me(t))); } -var Mnr = Rnr, Dnr = { +var Dnr = Mnr, Nnr = { data: function(e) { var r = { field: "data", @@ -98190,10 +98201,10 @@ var Mnr = Rnr, Dnr = { 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 && Mnr(i); + var f = i.indexOf(".") !== -1, d = f && Dnr(i); if (a.allowGetting && s === void 0) { var p; - return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = dnr(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 = pnr(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) { @@ -98201,7 +98212,7 @@ var Mnr = Rnr, Dnr = { 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 ? _nr(b._private[a.field], d, s) : b._private[a.field][i] = s); + a.canSet(b) && (d && h._private[a.field][i] === void 0 ? Anr(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); } @@ -98261,7 +98272,7 @@ var Mnr = Rnr, Dnr = { return a; }; } -}, Nnr = { +}, Inr = { 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) { @@ -98275,10 +98286,10 @@ var Mnr = Rnr, Dnr = { }; } }, Vr = {}; -[Ttr, Dnr, Nnr].forEach(function(t) { +[Ctr, Nnr, Inr].forEach(function(t) { Kt(Vr, t); }); -var Inr = { +var Pnr = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -98537,14 +98548,14 @@ var Zr = function() { return !e.backgrounding(); } }].sort(function(t, e) { - return GKt(t.selector, e.selector); -}), Pnr = function() { + return HKt(t.selector, e.selector); +}), $nr = function() { for (var t = {}, e, r = 0; r < lR.length; r++) e = lR[r], t[e.selector] = e.matches; return t; -}(), $nr = function(e, r) { - return Pnr[e](r); -}, Bnr = "(" + lR.map(function(t) { +}(), Bnr = function(e, r) { + return $nr[e](r); +}, Fnr = "(" + lR.map(function(t) { return t.selector; }).join("|") + ")", mp = function(e) { return e.replace(new RegExp("\\\\(" + _r.metaChar + ")", "g"), function(r, n) { @@ -98566,7 +98577,7 @@ var Zr = function() { }, { name: "state", query: !0, - regex: Bnr, + regex: Fnr, populate: function(e, r, n) { var i = ul(n, 1), s = i[0]; r.checks.push({ @@ -98785,7 +98796,7 @@ var Zr = function() { cR.forEach(function(t) { return t.regexObj = new RegExp("^" + t.regex); }); -var Fnr = function(e) { +var znr = function(e) { for (var r, n, i, s = 0; s < cR.length; s++) { var a = cR[s], o = a.name, l = e.match(a.regexObj); if (l != null) { @@ -98801,17 +98812,17 @@ var Fnr = function(e) { name: i, remaining: e }; -}, znr = function(e) { +}, Vnr = function(e) { var r = e.match(/^\s+/); if (r) { var n = r[0]; e = e.substring(n.length); } return e; -}, Vnr = function(e) { +}, Unr = function(e) { var r = this, n = r.inputText = e, i = r[0] = Zr(); - for (r.length = 1, n = znr(n); ; ) { - var s = Fnr(n); + for (r.length = 1, n = Vnr(n); ; ) { + var s = znr(n); if (s.expr == null) return Yr("The selector `" + e + "`is invalid"), !1; var a = s.match.slice(1), o = s.expr.populate(r, i, a); @@ -98831,7 +98842,7 @@ var Fnr = function(e) { h.edgeCount === 1 && Yr("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; -}, Unr = function() { +}, qnr = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(h) { @@ -98891,9 +98902,9 @@ var Fnr = function(e) { a += s(l, l.subject), this.length > 1 && o < this.length - 1 && (a += ", "); } return this.toStringCache = a, a; -}, qnr = { - parse: Vnr, - toString: Unr +}, Ynr = { + parse: Unr, + toString: qnr }, Lme = 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) { @@ -98926,7 +98937,7 @@ var Fnr = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, Ynr = function(e, r) { +}, Qnr = function(e, r) { switch (r) { case "?": return !!e; @@ -98935,11 +98946,11 @@ var Fnr = function(e) { case "^": return e === void 0; } -}, Qnr = function(e) { +}, Wnr = function(e) { return e !== void 0; }, jP = function(e, r) { return e.data(r); -}, Wnr = function(e, r) { +}, Gnr = function(e, r) { return e[r](); }, Wn = [], xn = function(e, r) { return e.checks.every(function(n) { @@ -98952,7 +98963,7 @@ Wn[Rt.GROUP] = function(t, e) { }; Wn[Rt.STATE] = function(t, e) { var r = t.value; - return $nr(r, e); + return Bnr(r, e); }; Wn[Rt.ID] = function(t, e) { var r = t.value; @@ -98964,7 +98975,7 @@ Wn[Rt.CLASS] = function(t, e) { }; Wn[Rt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return Lme(Wnr(e, r), n, i); + return Lme(Gnr(e, r), n, i); }; Wn[Rt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; @@ -98972,11 +98983,11 @@ Wn[Rt.DATA_COMPARE] = function(t, e) { }; Wn[Rt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; - return Ynr(jP(e, r), n); + return Qnr(jP(e, r), n); }; Wn[Rt.DATA_EXIST] = function(t, e) { var r = t.field; - return t.operator, Qnr(jP(e, r)); + return t.operator, Wnr(jP(e, r)); }; Wn[Rt.UNDIRECTED_EDGE] = function(t, e) { var r = t.nodes[0], n = t.nodes[1], i = e.source(), s = e.target(); @@ -99032,7 +99043,7 @@ Wn[Rt.FILTER] = function(t, e) { var r = t.value; return r(e); }; -var Gnr = function(e) { +var Hnr = 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(); @@ -99047,16 +99058,16 @@ var Gnr = function(e) { return r.text() == null && (n = function() { return !0; }), e.filter(n); -}, Hnr = function(e) { +}, Xnr = function(e) { for (var r = this, n = 0; n < r.length; n++) { var i = r[n]; if (xn(i, e)) return !0; } return !1; -}, Xnr = { - matches: Hnr, - filter: Gnr +}, Znr = { + matches: Xnr, + filter: Hnr }, Nf = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || qt(e) && e.match(/^\s*$/) || (co(e) ? this.addQuery({ checks: [{ @@ -99070,7 +99081,7 @@ var Gnr = function(e) { }] }) : qt(e) ? this.parse(e) || (this.invalid = !0) : Qn("A selector must be created from a string; found ")); }, If = Nf.prototype; -[qnr, Xnr].forEach(function(t) { +[Ynr, Znr].forEach(function(t) { return Kt(If, t); }); If.text = function() { @@ -99272,12 +99283,12 @@ R1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; return KP(this, t, e, Mme); }; -function Znr(t, e, r) { +function jnr(t, e, r) { Mme(t, e, r), Rme(t, e, r); } R1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return KP(this, t, e, Znr); + return KP(this, t, e, jnr); }; R1.ancestors = R1.parents; var J2, Dme; @@ -99349,7 +99360,7 @@ J2 = Dme = { }; J2.attr = J2.data; J2.removeAttr = J2.removeData; -var jnr = Dme, XC = {}; +var Knr = Dme, XC = {}; function uA(t) { return function(e) { var r = this; @@ -99557,7 +99568,7 @@ _l.modelPosition = _l.point = _l.position; _l.modelPositions = _l.points = _l.positions; _l.renderedPoint = _l.renderedPosition; _l.relativePoint = _l.relativePosition; -var Knr = Nme, yg, Gf; +var Jnr = Nme, yg, Gf; yg = Gf = {}; Gf.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; @@ -99738,7 +99749,7 @@ var Eo = function(e) { } return e; } -}, Jnr = function(e, r) { +}, eir = 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) { @@ -99746,12 +99757,12 @@ var Eo = 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 (o5(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { - var g = xer(e, h, f); + var g = wer(e, h, f); cme(e, g); } } } -}, eir = function(e, r) { +}, tir = 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) { return _e.pstyle("display").value !== "none"; }, w = !i || b(e) && (!u || b(e.source()) && b(e.target())); @@ -99765,7 +99776,7 @@ var Eo = function(e) { var _ = e.position(); g = _.x, m = _.y; var A = e.outerWidth(), $ = A / 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 && Jnr(a, e); + h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && eir(a, e); } else if (u && r.includeEdges) if (i && !s) { var M = e.pstyle("curve-style").strValue; @@ -99826,7 +99837,7 @@ var Eo = function(e) { var ae = o.overlayBounds = o.overlayBounds || {}; WH(ae, a), o5(ae, y), a5(ae, 1); var se = o.labelBounds = o.labelBounds || {}; - se.all != null ? ber(se.all) : se.all = Fa(), i && r.includeLabels && (r.includeMainLabels && hA(a, e, null), u && (r.includeSourceLabels && hA(a, e, "source"), r.includeTargetLabels && hA(a, e, "target"))); + se.all != null ? xer(se.all) : se.all = Fa(), i && r.includeLabels && (r.includeMainLabels && hA(a, e, null), u && (r.includeSourceLabels && hA(a, e, "source"), r.includeTargetLabels && hA(a, e, "target"))); } return a.x1 = Eo(a.x1), a.y1 = Eo(a.y1), a.x2 = Eo(a.x2), a.y2 = Eo(a.y2), a.w = Eo(a.x2 - a.x1), a.h = Eo(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (o5(a, y), a5(a, 1)), a; }, Pme = function(e) { @@ -99839,14 +99850,14 @@ var Eo = function(e) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); }; - return zJt([i(r.x), i(r.y), i(n.x), i(n.y)]); + return VJt([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; }, pX = function(e, r) { var n = e._private, i, s = e.isEdge(), a = r == null ? gX : Pme(r), o = a === gX, l = $me(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 = eir(e, eb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { + if (d ? (u || e.recalculateRenderedStyle(h), i = tir(e, eb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { var p = e.isNode(); i = Fa(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? fd(i, n.overlayBounds) : fd(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? fd(i, n.labelBounds.all) : (r.includeMainLabels && fd(i, n.labelBounds.mainRot), r.includeSourceLabels && fd(i, n.labelBounds.sourceRot), r.includeTargetLabels && fd(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } @@ -99906,14 +99917,14 @@ Gf.boundingBoxAt = function(t) { return h._private.bbAtOldPos; }; r.startBatch(), e.forEach(a).silentPositions(t), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var l = yer(this.boundingBox({ + var l = ber(this.boundingBox({ useCache: !1 })); return e.silentPositions(o), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), r.endBatch(), l; }; yg.boundingbox = yg.bb = yg.boundingBox; yg.renderedBoundingbox = yg.renderedBoundingBox; -var tir = Gf, zv, jx; +var rir = Gf, zv, jx; zv = jx = {}; var Bme = function(e) { e.uppercaseName = FH(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = FH(e.outerName), zv[e.name] = function() { @@ -99971,61 +99982,61 @@ jx.paddedWidth = function() { var t = this[0]; return t.width() + 2 * t.padding(); }; -var rir = jx, nir = function(e, r) { +var nir = jx, iir = function(e, r) { if (e.isEdge()) return r(e); -}, iir = function(e, r) { +}, sir = function(e, r) { if (e.isEdge()) { var n = e.cy(); return YC(r(e), n.zoom(), n.pan()); } -}, sir = function(e, r) { +}, air = function(e, r) { if (e.isEdge()) { var n = e.cy(), i = n.pan(), s = n.zoom(); return r(e).map(function(a) { return YC(a, s, i); }); } -}, air = function(e) { - return e.renderer().getControlPoints(e); }, oir = function(e) { - return e.renderer().getSegmentPoints(e); + return e.renderer().getControlPoints(e); }, lir = function(e) { - return e.renderer().getSourceEndpoint(e); + return e.renderer().getSegmentPoints(e); }, cir = function(e) { - return e.renderer().getTargetEndpoint(e); + return e.renderer().getSourceEndpoint(e); }, uir = function(e) { + return e.renderer().getTargetEndpoint(e); +}, hir = function(e) { return e.renderer().getEdgeMidpoint(e); }, vX = { controlPoints: { - get: air, + get: oir, mult: !0 }, segmentPoints: { - get: oir, + get: lir, mult: !0 }, sourceEndpoint: { - get: lir + get: cir }, targetEndpoint: { - get: cir + get: uir }, midpoint: { - get: uir + get: hir } -}, hir = function(e) { +}, fir = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, fir = Object.keys(vX).reduce(function(t, e) { - var r = vX[e], n = hir(e); +}, dir = Object.keys(vX).reduce(function(t, e) { + var r = vX[e], n = fir(e); return t[e] = function() { - return nir(this, r.get); + return iir(this, r.get); }, r.mult ? t[n] = function() { - return sir(this, r.get); + return air(this, r.get); } : t[n] = function() { - return iir(this, r.get); + return sir(this, r.get); }, t; -}, {}), dir = Kt({}, Knr, tir, rir, fir); +}, {}), pir = Kt({}, Jnr, rir, nir, dir); /*! Event object based on jQuery events, MIT license @@ -100073,7 +100084,7 @@ Fme.prototype = { isPropagationStopped: cv, isImmediatePropagationStopped: cv }; -var zme = /^([^.]+)(\.(?:[^.]+))?$/, pir = ".*", Vme = { +var zme = /^([^.]+)(\.(?:[^.]+))?$/, gir = ".*", Vme = { qualifierCompare: function(e, r) { return e === r; }, @@ -100096,9 +100107,9 @@ var zme = /^([^.]+)(\.(?:[^.]+))?$/, pir = ".*", Vme = { return null; }, context: null -}, yX = Object.keys(Vme), gir = {}; +}, yX = Object.keys(Vme), mir = {}; function ZC() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gir, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < yX.length; r++) { + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mir, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < yX.length; r++) { var n = yX[r]; this[n] = t[n] || Vme[n]; } @@ -100119,8 +100130,8 @@ var Pf = ZC.prototype, Ume = function(e, r, n, i, s, a, o) { } }, bX = function(e, r) { return e.addEventFields(e.context, r), new Fme(r.type, r); -}, mir = function(e, r, n) { - if (PKt(n)) { +}, vir = function(e, r, n) { + if ($Kt(n)) { r(e, n); return; } else if (Ar(n)) { @@ -100161,7 +100172,7 @@ Pf.one = function(t, e, r, n) { }; Pf.removeListener = Pf.off = function(t, e, r, n) { var i = this; - this.emitting !== 0 && (this.listeners = QJt(this.listeners)); + this.emitting !== 0 && (this.listeners = WJt(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; Ume(i, function(f, d, p, g, m, v) { @@ -100177,7 +100188,7 @@ Pf.removeAllListeners = function() { }; Pf.emit = Pf.trigger = function(t, e, r) { var n = this.listeners, i = n.length; - return this.emitting++, sn(e) || (e = [e]), mir(this, function(s, a) { + return this.emitting++, sn(e) || (e = [e]), vir(this, function(s, a) { r != null && (n = [{ event: a.event, type: a.type, @@ -100186,9 +100197,9 @@ Pf.emit = Pf.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 === pir) && s.eventMatches(s.context, f, a)) { + if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === gir) && s.eventMatches(s.context, f, a)) { var d = [a]; - e != null && GJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { + e != null && HJt(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); @@ -100199,7 +100210,7 @@ Pf.emit = Pf.trigger = function(t, e, r) { s.bubble(s.context) && !a.isPropagationStopped() && s.parent(s.context).emit(a, e); }, t), this.emitting--, this; }; -var vir = { +var yir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -100228,7 +100239,7 @@ var vir = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; - n.emitter || (n.emitter = new ZC(vir, r)); + n.emitter || (n.emitter = new ZC(yir, r)); } return this; }, @@ -100485,7 +100496,7 @@ 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 yir = { +var bir = { isNode: function() { return this.group() === "nodes"; }, @@ -100585,7 +100596,7 @@ var yir = { } }; pS.each = pS.forEach; -var bir = function() { +var xir = function() { var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : Ii(Symbol)) != e && Ii(Symbol.iterator) != e; r && (pS[Symbol.iterator] = function() { var n = this, i = { @@ -100601,12 +100612,12 @@ var bir = function() { }); }); }; -bir(); -var xir = ws({ +xir(); +var wir = ws({ nodeDimensionsIncludeLabels: !1 }), c5 = { layoutDimensions: function(e) { - e = xir(e); + e = wir(e); var r; if (!this.takesUpSpace()) r = { @@ -100653,7 +100664,7 @@ var xir = ws({ return null; for (var C = Fa(), T = 0; T < i.length; T++) { var L = i[T], E = l(L, T); - wer(C, E.x, E.y); + Oer(C, E.x, E.y); } return C; }, d = f(), p = W2(function(S, C) { @@ -100929,14 +100940,14 @@ var Om = jC("eleTakesUpSpace", function(t) { ds.takesUpSpace = KC("takesUpSpace", JP({ ok: Om })); -var wir = jC("eleInteractive", function(t) { +var Oir = jC("eleInteractive", function(t) { return t.pstyle("events").value === "yes" && t.pstyle("visibility").value === "visible" && Om(t); -}), Oir = jC("parentInteractive", function(t) { +}), kir = jC("parentInteractive", function(t) { return t.pstyle("visibility").value === "visible" && Om(t); }); ds.interactive = KC("interactive", JP({ - ok: wir, - parentOk: Oir, + ok: Oir, + parentOk: kir, edgeOkViaNode: Om })); ds.noninteractive = function() { @@ -100944,12 +100955,12 @@ ds.noninteractive = function() { if (t) return !t.interactive(); }; -var kir = jC("eleVisible", function(t) { +var Sir = jC("eleVisible", function(t) { return t.pstyle("visibility").value === "visible" && t.pstyle("opacity").pfValue !== 0 && Om(t); -}), Sir = Om; +}), Tir = Om; ds.visible = KC("visible", JP({ - ok: kir, - edgeOkViaNode: Sir + ok: Sir, + edgeOkViaNode: Tir })); ds.hidden = function() { var t = this[0]; @@ -101616,10 +101627,10 @@ dn.move = function(t) { } return this; }; -[yme, Inr, l5, nf, R1, jnr, XC, dir, qme, Yme, yir, pS, c5, ds, sf, zs].forEach(function(t) { +[yme, Pnr, l5, nf, R1, Knr, XC, pir, qme, Yme, bir, pS, c5, ds, sf, zs].forEach(function(t) { Kt(dn, t); }); -var Tir = { +var Cir = { add: function(e) { var r, n = this; if (co(e)) { @@ -101665,7 +101676,7 @@ var Tir = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function Cir(t, e, r, n) { +function Eir(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; @@ -101739,7 +101750,7 @@ function Cir(t, e, r, n) { }, L; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var Eir = function() { +var _ir = function() { function t(n) { return -n.tension * n.x - n.friction * n.v; } @@ -101776,7 +101787,7 @@ var Eir = function() { } : u; }; }(), ln = function(e, r, n, i) { - var s = Cir(e, r, n, i); + var s = Eir(e, r, n, i); return function(a, o, l) { return a + (o - a) * s(l); }; @@ -101812,7 +101823,7 @@ var Eir = function() { spring: function(e, r, n) { if (n === 0) return u5.linear; - var i = Eir(e, r, n); + var i = _ir(e, r, n); return function(s, a, o) { return s + (a - s) * i(o); }; @@ -101846,7 +101857,7 @@ function yp(t, e, r, n, i) { return l; } } -function _ir(t, e, r, n) { +function Air(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) @@ -101888,7 +101899,7 @@ function _ir(t, e, r, n) { function uv(t, e) { return t == null || e == null ? !1 : bt(t) && bt(e) ? !0 : !!(t && e); } -function Air(t, e, r, n) { +function Lir(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } @@ -101912,7 +101923,7 @@ function AX(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 || Air(h, w, t), _ir(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 || Lir(h, w, t), Air(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; } @@ -101923,7 +101934,7 @@ function AX(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 Lir = { +var Rir = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -101952,7 +101963,7 @@ var Lir = { AX(a, e); }, n.beforeRenderPriorities.animations) : r(); } -}, Rir = { +}, Mir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -101971,7 +101982,7 @@ var Lir = { }, Gme = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new ZC(Rir, this)), this; + return e.emitter || (e.emitter = new ZC(Mir, this)), this; }, emitter: function() { return this._private.emitter; @@ -102036,7 +102047,7 @@ var h5 = { } }; h5.createLayout = h5.makeLayout = h5.layout; -var Mir = { +var Dir = { notify: function(e, r) { var n = this._private; if (this.batching()) { @@ -102090,7 +102101,7 @@ var Mir = { } }); } -}, Dir = ws({ +}, Nir = ws({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -102122,7 +102133,7 @@ var Mir = { return; } e.wheelSensitivity !== void 0 && Yr("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 = Dir(e); + var i = Nir(e); i.cy = r, r._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -102170,7 +102181,7 @@ var f5 = { } }; f5.elements = f5.filter = f5.$; -var Gs = {}, gy = "t", Nir = "f"; +var Gs = {}, gy = "t", Iir = "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); @@ -102207,7 +102218,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 += gy : r += Nir; + o ? r += gy : r += Iir; } return n = e.getPropertiesDiff(i, r), t._private.styleCxtKey = r, { key: r, @@ -102305,7 +102316,7 @@ Gs.updateStyleHints = function(t) { var M = i[N], I = e.styleKeys[M]; k[0] = G2(I[0], k[0]), k[1] = H2(I[1], k[1]); } - e.styleKey = FJt(k[0], k[1]); + e.styleKey = zJt(k[0], k[1]); var D = e.styleKeys; e.labelDimsKey = bh(D.labelDimensions); var P = s(t, ["label"], D.labelDimensions); @@ -102721,7 +102732,7 @@ t$.fromString = function(t) { }; var ns = {}; (function() { - var t = _i, e = UKt, r = YKt, n = QKt, i = WKt, s = function(U) { + var t = _i, e = qKt, r = QKt, n = WKt, i = GKt, s = function(U) { return "^" + U + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, a = function(U) { var Z = t + "|\\w+|" + e + "|" + r + "|" + n + "|" + i; @@ -104171,7 +104182,7 @@ eE.parseImpl = function(t, e, r, n) { return null; if (isNaN(e) && u.enums !== void 0) return e = a, _(); - if (u.integer && !IKt(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 && !PKt(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, @@ -104180,7 +104191,7 @@ eE.parseImpl = function(t, e, r, n) { units: A, bypass: r }; - return u.unitless || A !== "px" && A !== "em" ? M.pfValue = e : M.pfValue = A === "px" || !A ? e : this.getEmSizeInPixels() * e, (A === "ms" || A === "s") && (M.pfValue = A === "ms" ? e : 1e3 * e), (A === "deg" || A === "rad") && (M.pfValue = A === "rad" ? e : ger(e)), A === "%" && (M.pfValue = e / 100), M; + return u.unitless || A !== "px" && A !== "em" ? M.pfValue = e : M.pfValue = A === "px" || !A ? e : this.getEmSizeInPixels() * e, (A === "ms" || A === "s") && (M.pfValue = A === "ms" ? e : 1e3 * e), (A === "deg" || A === "rad") && (M.pfValue = A === "rad" ? e : mer(e)), A === "%" && (M.pfValue = e / 100), M; } else if (u.propList) { var I = [], D = "" + e; if (D !== "none") { @@ -104198,7 +104209,7 @@ eE.parseImpl = function(t, e, r, n) { bypass: r }; } else if (u.color) { - var V = KKt(e); + var V = JKt(e); return V ? { name: t, value: V, @@ -104309,7 +104320,7 @@ Fs.properties = Vs.properties; Fs.propertyGroups = Vs.propertyGroups; Fs.propertyGroupNames = Vs.propertyGroupNames; Fs.propertyGroupKeys = Vs.propertyGroupKeys; -var Iir = { +var Pir = { style: function(e) { if (e) { var r = this.setStyle(e); @@ -104324,7 +104335,7 @@ var Iir = { updateStyle: function() { this.mutableElements().updateStyle(); } -}, Pir = "single", D0 = { +}, $ir = "single", D0 = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -104348,7 +104359,7 @@ var Iir = { }, selectionType: function(e) { var r = this._private; - if (r.selectionType == null && (r.selectionType = Pir), e !== void 0) + if (r.selectionType == null && (r.selectionType = $ir), e !== void 0) (e === "additive" || e === "single") && (r.selectionType = e); else return r.selectionType; @@ -104439,7 +104450,7 @@ var Iir = { if (qt(e)) { var i = e; e = this.$(i); - } else if (BKt(e)) { + } else if (FKt(e)) { var s = e; n = { x1: s.x1, @@ -104713,7 +104724,7 @@ var rb = function(e) { max: o.maxZoom }); var h = function(g, m) { - var v = g.some(FKt); + var v = g.some(zKt); if (v) return ym.all(g).then(m); m(g); @@ -104875,10 +104886,10 @@ Kt(gS, { } }); gS.$id = gS.getElementById; -[Tir, Lir, Gme, uR, h5, Mir, hR, f5, Iir, D0, tb].forEach(function(t) { +[Cir, Rir, Gme, uR, h5, Dir, hR, f5, Pir, D0, tb].forEach(function(t) { Kt(gS, t); }); -var $ir = { +var Bir = { fit: !0, directed: !1, padding: 30, @@ -104901,7 +104912,7 @@ var $ir = { transform: function(e, r) { return r; } -}, Bir = { +}, Fir = { maximal: !1, acyclic: !1 }, bp = function(e) { @@ -104910,7 +104921,7 @@ var $ir = { return e.scratch("breadthfirst", r); }; function Hme(t) { - this.options = Kt({}, $ir, Bir, t); + this.options = Kt({}, Bir, Fir, t); } Hme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(se) { @@ -105076,7 +105087,7 @@ Hme.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, ae), this; }; -var Fir = { +var zir = { fit: !0, padding: 30, boundingBox: void 0, @@ -105101,7 +105112,7 @@ var Fir = { } }; function Xme(t) { - this.options = Kt({}, Fir, t); + this.options = Kt({}, zir, t); } Xme.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"); @@ -105132,7 +105143,7 @@ Xme.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, O), this; }; -var zir = { +var Vir = { fit: !0, padding: 30, startAngle: 3 / 2 * Math.PI, @@ -105165,7 +105176,7 @@ var zir = { } }; function Zme(t) { - this.options = Kt({}, zir, t); + this.options = Kt({}, Vir, t); } 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 = Fa(e.boundingBox ? e.boundingBox : { @@ -105236,7 +105247,7 @@ Zme.prototype.run = function() { return ee[K]; }), this; }; -var dA, Vir = { +var dA, Uir = { ready: function() { }, stop: function() { @@ -105273,7 +105284,7 @@ var dA, Vir = { minTemp: 1 }; function tE(t) { - this.options = Kt({}, Vir, t), this.options.layout = this; + this.options = Kt({}, Uir, 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; @@ -105290,12 +105301,12 @@ tE.prototype.run = function() { type: "layoutstart", layout: r }), t.debug === !0 ? dA = !0 : dA = !1; - var n = Uir(e, r, t); - dA && Qir(n), t.randomize && Wir(n); + var n = qir(e, r, t); + dA && Wir(n), t.randomize && Gir(n); var i = eh(), s = function() { - Gir(n, e, t), t.fit === !0 && e.fit(t.padding); + Hir(n, e, t), t.fit === !0 && e.fit(t.padding); }, a = function(d) { - return !(r.stopped || d >= t.numIter || (Hir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); + return !(r.stopped || d >= t.numIter || (Xir(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({ @@ -105332,7 +105343,7 @@ tE.prototype.stop = function() { tE.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var Uir = function(e, r, n) { +var qir = function(e, r, n) { for (var i = n.eles.edges(), s = n.eles.nodes(), a = Fa(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, @@ -105382,7 +105393,7 @@ var Uir = function(e, r, n) { A.id = _.data("id"), A.sourceId = _.data("source"), A.targetId = _.data("target"); var $ = Pn(n.idealEdgeLength) ? n.idealEdgeLength(_) : n.idealEdgeLength, k = Pn(n.edgeElasticity) ? n.edgeElasticity(_) : n.edgeElasticity, N = o.idToIndex[A.sourceId], M = o.idToIndex[A.targetId], I = o.indexToGraph[N], D = o.indexToGraph[M]; if (I != D) { - for (var P = qir(A.sourceId, A.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) + for (var P = Yir(A.sourceId, A.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++; @@ -105391,10 +105402,10 @@ var Uir = function(e, r, n) { A.idealLength = $, A.elasticity = k, o.layoutEdges.push(A); } return o; -}, qir = function(e, r, n) { - var i = Yir(e, r, 0, n); +}, Yir = function(e, r, n) { + var i = Qir(e, r, 0, n); return 2 > i.count ? 0 : i.graph; -}, Yir = function t(e, r, n, i) { +}, Qir = function t(e, r, n, i) { var s = i.graphSet[n]; if (-1 < s.indexOf(e) && -1 < s.indexOf(r)) return { @@ -105417,7 +105428,7 @@ var Uir = function(e, r, n) { count: a, graph: n }; -}, Qir, Wir = function(e, r) { +}, Wir, Gir = 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); @@ -105446,36 +105457,36 @@ var Uir = function(e, r, n) { y: l.positionY }; }; -}, Gir = function(e, r, n) { +}, Hir = function(e, r, n) { var i = n.layout, s = n.eles.nodes(), a = jme(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, Hir = function(e, r, n) { - Xir(e, r), Kir(e), Jir(e, r), esr(e), tsr(e); -}, Xir = function(e, r) { +}, Xir = function(e, r, n) { + Zir(e, r), Jir(e), esr(e, r), tsr(e), rsr(e); +}, Zir = 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]]]; - Zir(o, u, e, r); + jir(o, u, e, r); } }, RX = function(e) { return -e + 2 * e * Math.random(); -}, Zir = function(e, r, n, i) { +}, jir = 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 = RX(u), l = RX(u)); - var h = jir(e, r, o, l); + var h = Kir(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 = mS(e, o, l), v = mS(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); } -}, jir = function(e, r, n, i) { +}, Kir = function(e, r, n, i) { if (n > 0) var s = e.maxX - r.minX; else @@ -105488,7 +105499,7 @@ var Uir = function(e, r, n) { }, mS = 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); -}, Kir = function(e, r) { +}, Jir = 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)) { @@ -105500,7 +105511,7 @@ var Uir = function(e, r, n) { a.isLocked || (a.offsetX += y, a.offsetY += b), l.isLocked || (l.offsetX -= y, l.offsetY -= b); } } -}, Jir = function(e, r) { +}, esr = 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; @@ -105519,7 +105530,7 @@ var Uir = function(e, r, n) { } } } -}, esr = function(e, r) { +}, tsr = 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; @@ -105531,7 +105542,7 @@ var Uir = function(e, r, n) { l.offsetX = 0, l.offsetY = 0; } } -}, tsr = function(e, r) { +}, rsr = 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); @@ -105539,15 +105550,15 @@ var Uir = 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 = rsr(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, nsr(i, e); + var s = nsr(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, isr(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); } -}, rsr = function(e, r, n) { +}, nsr = function(e, r, n) { var i = Math.sqrt(e * e + r * r); if (i > n) var s = { @@ -105560,7 +105571,7 @@ var Uir = function(e, r, n) { y: r }; return s; -}, nsr = function t(e, r) { +}, isr = function t(e, r) { var n = e.parentId; if (n != null) { var i = r.layoutNodes[r.idToIndex[n]], s = !1; @@ -105596,7 +105607,7 @@ var Uir = 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); } } -}, isr = { +}, ssr = { fit: !0, padding: 30, boundingBox: void 0, @@ -105623,7 +105634,7 @@ var Uir = function(e, r, n) { } }; function Kme(t) { - this.options = Kt({}, isr, t); + this.options = Kt({}, ssr, t); } Kme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().not(":parent"); @@ -105718,14 +105729,14 @@ Kme.prototype.run = function() { } return this; }; -var ssr = { +var asr = { ready: function() { }, stop: function() { } }; function r$(t) { - this.options = Kt({}, ssr, t); + this.options = Kt({}, asr, t); } r$.prototype.run = function() { var t = this.options, e = t.eles, r = this; @@ -105739,7 +105750,7 @@ r$.prototype.run = function() { r$.prototype.stop = function() { return this; }; -var asr = { +var osr = { positions: void 0, zoom: void 0, pan: void 0, @@ -105759,13 +105770,13 @@ var asr = { } }; function Jme(t) { - this.options = Kt({}, asr, t); + this.options = Kt({}, osr, t); } Jme.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 uer(s.position()); + return her(s.position()); if (n) return t.positions(s); var a = t.positions[s._private.data.id]; @@ -105776,7 +105787,7 @@ Jme.prototype.run = function() { return s.locked() || o == null ? !1 : o; }), this; }; -var osr = { +var lsr = { fit: !0, padding: 30, boundingBox: void 0, @@ -105793,7 +105804,7 @@ var osr = { } }; function eve(t) { - this.options = Kt({}, osr, t); + this.options = Kt({}, lsr, t); } eve.prototype.run = function() { var t = this.options, e = t.cy, r = t.eles, n = Fa(t.boundingBox ? t.boundingBox : { @@ -105809,7 +105820,7 @@ eve.prototype.run = function() { }; return r.nodes().layoutPositions(this, t, i), this; }; -var lsr = [{ +var csr = [{ name: "breadthfirst", impl: Hme }, { @@ -106067,11 +106078,11 @@ sp.findNearestElements = function(t, e, r, n) { var L = T._private, E = L.rscratch, R = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, A = R / 2 + h, $ = A * A, k = A * 2, D = L.source, P = L.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 (ker(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = _er(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) + if (Ser(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = Aer(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 (Ser(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = Eer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) + if (Ter(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = _er(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(R, _), B = [{ @@ -106167,7 +106178,7 @@ sp.getAllInBox = function(t, e, r, n) { 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 (!Oer(h, b[O])) { + if (!ker(h, b[O])) { w = !1; break; } @@ -106236,10 +106247,10 @@ vS.getArrowWidth = vS.getArrowHeight = function(t, e) { }; var fR, dR, ic = {}, So = {}, IX, PX, Td, d5, hu, ad, dd, rc, xp, WO, rve, nve, pR, gR, $X, BX = 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); -}, csr = function(e, r) { +}, usr = 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; -}, usr = function(e, r, n, i, s) { - if (e !== $X ? BX(r, e, ic) : csr(So, ic), BX(r, n, So), IX = ic.nx * So.ny - ic.ny * So.nx, PX = ic.nx * So.nx - ic.ny * -So.ny, hu = Math.asin(Math.max(-1, Math.min(1, IX))), Math.abs(hu) < 1e-6) { +}, hsr = function(e, r, n, i, s) { + if (e !== $X ? BX(r, e, ic) : usr(So, ic), BX(r, n, So), IX = ic.nx * So.ny - ic.ny * So.nx, PX = ic.nx * So.nx - ic.ny * -So.ny, hu = Math.asin(Math.max(-1, Math.min(1, IX))), Math.abs(hu) < 1e-6) { fR = r.x, dR = r.y, dd = xp = 0; return; } @@ -106261,7 +106272,7 @@ function i$(t, e, r, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (usr(t, e, r, n, i), { + } : (hsr(t, e, r, n, i), { cx: fR, cy: dR, radius: dd, @@ -106795,7 +106806,7 @@ Jx.getTargetEndpoint = function(t) { } }; var s$ = {}; -function hsr(t, e, r) { +function fsr(t, e, r) { for (var n = function(u, h, f, d) { return zi(u, h, f, d); }, i = e._private, s = i.rstyle.bezierPts, a = 0; a < t.bezierProjPcts.length; a++) { @@ -106811,7 +106822,7 @@ s$.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) - hsr(this, t, r.allpts.slice(i, i + 6)); + fsr(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({ @@ -106867,7 +106878,7 @@ var ave = function(e, r) { }, ove = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return ave(n, i); -}, fsr = function(e, r, n, i) { +}, dsr = function(e, r, n, i) { var s = Z2(0, i - 1e-3, 1), a = Z2(0, i + 1e-3, 1), o = gg(e, r, n, s), l = gg(e, r, n, a); return ove(o, l); }; @@ -106955,7 +106966,7 @@ iu.recalculateEdgeLabelProjections = function(t) { break; } var L = v.cp, E = v.segment, R = (g - y) / E.length, _ = E.t1 - E.t0, A = p ? E.t0 + _ * R : E.t1 - _ * R; - A = Z2(0, A, 1), e = gg(L.p0, L.p1, L.p2, A), d = fsr(L.p0, L.p1, L.p2, A); + A = Z2(0, A, 1), e = gg(L.p0, L.p1, L.p2, A), d = dsr(L.p0, L.p1, L.p2, A); break; } case "straight": @@ -106976,7 +106987,7 @@ iu.recalculateEdgeLabelProjections = function(t) { }), k = L0(M, I), N = $, $ += k, !($ >= g)); P += 2) ; var F = g - N, B = F / k; - B = Z2(0, B, 1), e = ver(M, I, B), d = ove(M, I); + B = Z2(0, B, 1), e = yer(M, I, B), d = ove(M, I); break; } } @@ -107218,7 +107229,7 @@ Sm.registerBinding = function(t, e, r, n) { return s.on.apply(s, i); }; Sm.binder = function(t) { - var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || $Kt(t); + var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || BKt(t); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -108169,7 +108180,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 Ler(s, a, e, r, n / 2 + o, i / 2 + o); + return Rer(s, a, e, r, n / 2 + o, i / 2 + o); }, checkPoint: function(e, r, n, i, s, a, o, l) { return Fd(e, r, i, s, a, o, n); @@ -108201,10 +108212,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 Rer(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); + return Mer(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 Aer(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); + return Ler(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); } }; }; @@ -108316,7 +108327,7 @@ fh.generateBarrel = function() { for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(L, E, R) { var _ = R[4], A = R[2], $ = R[0], k = R[5], N = R[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 = Mer(_, A, $), B = Ter(F[0], F[1], F[2], L), V = B.filter(function(Y) { + var F = Der(_, A, $), B = Cer(F[0], F[1], F[2], L), V = B.filter(function(Y) { return 0 <= Y && Y <= 1; }); if (V.length > 0) @@ -108432,9 +108443,9 @@ ew.startRenderLoop = function() { cS(r); } }; -var dsr = function(e) { +var psr = function(e) { this.init(e); -}, hve = dsr, Tm = hve.prototype; +}, hve = psr, Tm = hve.prototype; Tm.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; Tm.init = function(t) { var e = this; @@ -108542,7 +108553,7 @@ var pA = 1e3 / 60, fve = { } }; } -}, psr = /* @__PURE__ */ function() { +}, gsr = /* @__PURE__ */ function() { function t(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : uS; $P(this, t), this.idsByKey = new Cc(), this.keyForId = new Cc(), this.cachesByLvl = new Cc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; @@ -108665,11 +108676,11 @@ var pA = 1e3 / 60, fve = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), UX = 25, GO = 50, p5 = -4, mR = 3, gsr = 7.99, msr = 8, vsr = 1024, ysr = 1024, bsr = 1024, xsr = 0.2, wsr = 0.8, Osr = 10, ksr = 0.15, Ssr = 0.1, Tsr = 0.9, Csr = 0.9, Esr = 100, _sr = 1, Yp = { +}(), UX = 25, GO = 50, p5 = -4, mR = 3, msr = 7.99, vsr = 8, ysr = 1024, bsr = 1024, xsr = 1024, wsr = 0.2, Osr = 0.8, ksr = 10, Ssr = 0.15, Tsr = 0.1, Csr = 0.9, Esr = 0.9, _sr = 100, Asr = 1, Yp = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, Asr = ws({ +}, Lsr = ws({ getKey: null, doesEleInvalidateKey: uS, drawElement: null, @@ -108682,8 +108693,8 @@ var pA = 1e3 / 60, fve = { }), Vv = function(e, r) { var n = this; n.renderer = e, n.onDequeues = []; - var i = Asr(r); - Kt(n, i), n.lookup = new psr(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); + var i = Lsr(r); + Kt(n, i), n.lookup = new gsr(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); }, Bi = Vv.prototype; Bi.reasons = Yp; Bi.getTextureQueue = function(t) { @@ -108710,7 +108721,7 @@ Bi.getElement = function(t, e, r, n, i) { return null; if (n == null && (n = Math.ceil(YP(o * r))), n < p5) n = p5; - else if (o >= gsr || n > mR) + else if (o >= msr || n > mR) 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)) @@ -108719,7 +108730,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 <= UX ? g = UX : h <= GO ? g = GO : g = Math.ceil(h / GO) * GO, h > bsr || f > ysr) + if (h <= UX ? g = UX : h <= GO ? g = GO : g = Math.ceil(h / GO) * GO, h > xsr || f > bsr) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -108768,7 +108779,7 @@ Bi.getElement = function(t, e, r, n, i) { width: f, height: h, scaledLabelShown: d - }, v.usedWidth += Math.ceil(f + msr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; + }, v.usedWidth += Math.ceil(f + vsr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; }; Bi.invalidateElements = function(t) { for (var e = 0; e < t.length; e++) @@ -108791,11 +108802,11 @@ Bi.invalidateElement = function(t) { } }; Bi.checkTextureUtility = function(t) { - t.invalidatedWidth >= xsr * t.width && this.retireTexture(t); + t.invalidatedWidth >= wsr * t.width && this.retireTexture(t); }; Bi.checkTextureFullness = function(t) { var e = this, r = e.getTextureQueue(t.height); - t.usedWidth / t.width > wsr && t.fullnessChecks >= Osr ? Df(r, t) : t.fullnessChecks++; + t.usedWidth / t.width > Osr && t.fullnessChecks >= ksr ? Df(r, t) : t.fullnessChecks++; }; Bi.retireTexture = function(t) { var e = this, r = t.height, n = e.getTextureQueue(r), i = this.lookup; @@ -108810,7 +108821,7 @@ Bi.retireTexture = function(t) { }; Bi.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(vsr, 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(ysr, 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) { for (var r = this, n = r.getTextureQueue(t), i = r.getRetiredTextureQueue(t), s = 0; s < i.length; s++) { @@ -108834,7 +108845,7 @@ Bi.queueElement = function(t, e) { } }; Bi.dequeue = function(t) { - for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < _sr && r.size() > 0; a++) { + for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < Asr && 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; @@ -108855,11 +108866,11 @@ Bi.offDequeue = function(t) { Df(this.onDequeues, t); }; Bi.setupDequeueing = fve.setupDequeueing({ - deqRedrawThreshold: Esr, - deqCost: ksr, - deqAvgCost: Ssr, - deqNoDrawCost: Tsr, - deqFastCost: Csr, + deqRedrawThreshold: _sr, + deqCost: Ssr, + deqAvgCost: Tsr, + deqNoDrawCost: Csr, + deqFastCost: Esr, deq: function(e, r, n) { return e.dequeue(r, n); }, @@ -108882,21 +108893,21 @@ Bi.setupDequeueing = fve.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var Lsr = 1, my = -4, yS = 2, Rsr = 3.99, Msr = 50, Dsr = 50, Nsr = 0.15, Isr = 0.1, Psr = 0.9, $sr = 0.9, Bsr = 1, qX = 250, Fsr = 4e3 * 4e3, zsr = !0, dve = function(e) { +var Rsr = 1, my = -4, yS = 2, Msr = 3.99, Dsr = 50, Nsr = 50, Isr = 0.15, Psr = 0.1, $sr = 0.9, Bsr = 0.9, Fsr = 1, qX = 250, zsr = 4e3 * 4e3, Vsr = !0, dve = function(e) { var r = this, n = r.renderer = e, i = n.cy; r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = eh() - 2 * qX, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = UC(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); - }, Dsr), n.beforeRender(function(a, o) { + }, Nsr), n.beforeRender(function(a, o) { o - r.lastInvalidationTime <= qX ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Zx(s), r.setupDequeueing(); -}, Os = dve.prototype, YX = 0, Vsr = Math.pow(2, 53) - 1; +}, Os = dve.prototype, YX = 0, Usr = 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: YX = ++YX % Vsr, + id: YX = ++YX % Usr, bb: t, level: e, width: n, @@ -108914,7 +108925,7 @@ Os.getLayers = function(t, e, r) { if (n.firstGet = !1, r == null) { if (r = Math.ceil(YP(a * e)), r < my) r = my; - else if (a >= Rsr || r > yS) + else if (a >= Msr || r > yS) return null; } n.validateLayersElesOrdering(r, t); @@ -108949,7 +108960,7 @@ Os.getLayers = function(t, e, r) { var _ = R.after; m(); var A = f.w * u * (f.h * u); - if (A > Fsr) + if (A > zsr) return null; var $ = n.makeLayer(f, r); if (_ != null) { @@ -108961,7 +108972,7 @@ Os.getLayers = function(t, e, r) { }; if (n.skipping && !o) return null; - for (var y = null, b = t.length / Lsr, w = !o, O = 0; O < t.length; O++) { + for (var y = null, b = t.length / Rsr, 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; @@ -108981,7 +108992,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, zsr), 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, Vsr), s.setImgSmoothing(a, !0)); }; Os.levelIsComplete = function(t, e) { var r = this, n = r.layersByLevel[t]; @@ -109072,7 +109083,7 @@ Os.queueLayer = function(t, e) { } }; Os.dequeue = function(t) { - for (var e = this, r = e.layersQueue, n = [], i = 0; i < Bsr && r.size() !== 0; ) { + for (var e = this, r = e.layersQueue, n = [], i = 0; i < Fsr && r.size() !== 0; ) { var s = r.peek(); if (s.replacement) { r.pop(); @@ -109107,11 +109118,11 @@ Os.requestRedraw = UC(function() { t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); Os.setupDequeueing = fve.setupDequeueing({ - deqRedrawThreshold: Msr, - deqCost: Nsr, - deqAvgCost: Isr, - deqNoDrawCost: Psr, - deqFastCost: $sr, + deqRedrawThreshold: Dsr, + deqCost: Isr, + deqAvgCost: Psr, + deqNoDrawCost: $sr, + deqFastCost: Bsr, deq: function(e, r) { return e.dequeue(r); }, @@ -109122,13 +109133,13 @@ Os.setupDequeueing = fve.setupDequeueing({ } }); var pve = {}, QX; -function Usr(t, e) { +function qsr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; t.lineTo(n.x, n.y); } } -function qsr(t, e, r) { +function Ysr(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); @@ -109149,7 +109160,7 @@ function WX(t, e, r) { } t.closePath && t.closePath(); } -function Ysr(t, e, r, n, i) { +function Qsr(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); @@ -109159,17 +109170,17 @@ function Ysr(t, e, r, n, i) { } t.closePath && t.closePath(); } -function Qsr(t, e, r, n) { +function Wsr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } pve.arrowShapeImpl = function(t) { return (QX || (QX = { - polygon: Usr, - "triangle-backcurve": qsr, + polygon: qsr, + "triangle-backcurve": Ysr, "triangle-tee": WX, - "circle-triangle": Ysr, + "circle-triangle": Qsr, "triangle-cross": WX, - circle: Qsr + circle: Wsr }))[t]; }; var su = {}; @@ -109207,15 +109218,15 @@ su.drawCachedElementPortion = function(t, e, r, n, i, s, a, o) { r.drawElement(t, e); } }; -var Wsr = function() { +var Gsr = function() { return 0; -}, Gsr = function(e, r) { - return e.getTextAngle(r, null); }, Hsr = function(e, r) { - return e.getTextAngle(r, "source"); + return e.getTextAngle(r, null); }, Xsr = function(e, r) { - return e.getTextAngle(r, "target"); + return e.getTextAngle(r, "source"); }, Zsr = function(e, r) { + return e.getTextAngle(r, "target"); +}, jsr = function(e, r) { return r.effectiveOpacity(); }, gA = function(e, r) { return r.pstyle("text-opacity").pfValue * r.effectiveOpacity(); @@ -109224,7 +109235,7 @@ su.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 || QP(d, n))) { var g = e.isEdge(), m = e.element()._private.rscratch.badLine; - a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Wsr, Zsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Gsr, gA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Hsr, gA), a.drawCachedElementPortion(t, e, f, r, i, p, Xsr, gA)), a.drawElementOverlay(t, e); + a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Gsr, jsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Hsr, gA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Xsr, gA), a.drawCachedElementPortion(t, e, f, r, i, p, Zsr, gA)), a.drawElementOverlay(t, e); } }; su.drawElements = function(t, e) { @@ -109784,7 +109795,7 @@ Cm.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 bo = {}, jsr = 100; +var bo = {}, Ksr = 100; bo.getPixelRatio = function() { var t = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -110027,7 +110038,7 @@ bo.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(); - }, jsr)), e || l.emit("render"); + }, Ksr)), e || l.emit("render"); }; var Hf = {}; Hf.drawPolygonPath = function(t, e, r, n, i, s) { @@ -110102,7 +110113,7 @@ tw.bufferCanvasImage = function(t) { } return d; }; -function Ksr(t, e) { +function Jsr(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], { @@ -110129,7 +110140,7 @@ function yve(t, e, r) { } }); case "blob": - return Ksr(XX(n()), r); + return Jsr(XX(n()), r); case "base64": return XX(n()); case "base64uri": @@ -110165,7 +110176,7 @@ bve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var Jsr = xve, Rr = xve.prototype; +var ear = xve, Rr = xve.prototype; Rr.CANVAS_LAYERS = 3; Rr.SELECT_BOX = 0; Rr.DRAG = 1; @@ -110196,7 +110207,7 @@ function xve(t) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - zKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); + VKt() && (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) { @@ -110351,14 +110362,14 @@ Rr.redrawHint = function(t, e) { break; } }; -var ear = typeof Path2D < "u"; +var tar = typeof Path2D < "u"; Rr.path2dEnabled = function(t) { if (t === void 0) return this.pathsEnabled; this.pathsEnabled = !!t; }; Rr.usePaths = function() { - return ear && this.pathsEnabled; + return tar && this.pathsEnabled; }; Rr.setImgSmoothing = function(t, e) { t.imageSmoothingEnabled != null ? t.imageSmoothingEnabled = e : (t.webkitImageSmoothingEnabled = e, t.mozImageSmoothingEnabled = e, t.msImageSmoothingEnabled = e); @@ -110379,7 +110390,7 @@ Rr.makeOffscreenCanvas = function(t, e) { [pve, su, dh, a$, ap, Cm, bo, Hf, tw, bve].forEach(function(t) { Kt(Rr, t); }); -var tar = [{ +var rar = [{ name: "null", impl: tve }, { @@ -110387,13 +110398,13 @@ var tar = [{ impl: hve }, { name: "canvas", - impl: Jsr -}], rar = [{ + impl: ear +}], nar = [{ type: "layout", - extensions: lsr + extensions: csr }, { type: "renderer", - extensions: tar + extensions: rar }], wve = {}, Ove = {}; function kve(t, e, r) { var n = r, i = function(L) { @@ -110506,14 +110517,14 @@ function Sve(t, e) { keys: [t, e] }); } -function nar(t, e, r, n, i) { +function iar(t, e, r, n, i) { return X1e({ map: Ove, keys: [t, e, r, n], value: i }); } -function iar(t, e, r, n) { +function sar(t, e, r, n) { return Z1e({ map: Ove, keys: [t, e, r, n] @@ -110525,13 +110536,13 @@ var bR = function() { if (arguments.length === 3) return kve.apply(null, arguments); if (arguments.length === 4) - return iar.apply(null, arguments); + return sar.apply(null, arguments); if (arguments.length === 5) - return nar.apply(null, arguments); + return iar.apply(null, arguments); Qn("Invalid extension access syntax"); }; rb.prototype.extension = bR; -rar.forEach(function(t) { +nar.forEach(function(t) { t.extensions.forEach(function(e) { kve(t.type, e.name, e.impl); }); @@ -110590,7 +110601,7 @@ N0.appendToStyle = function(t) { } return t; }; -var sar = "3.30.2", Uc = function(e) { +var aar = "3.30.2", Uc = function(e) { if (e === void 0 && (e = {}), Ar(e)) return new rb(e); if (qt(e)) @@ -110603,10 +110614,10 @@ Uc.use = function(t) { Uc.warnings = function(t) { return ime(t); }; -Uc.version = sar; +Uc.version = aar; Uc.stylesheet = Uc.Stylesheet = Tve; var Cve = { exports: {} }, vA = { exports: {} }, yA = { exports: {} }, ZX; -function aar() { +function oar() { return ZX || (ZX = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -112136,10 +112147,10 @@ function aar() { }(yA)), yA.exports; } var jX; -function oar() { +function lar() { return jX || (jX = 1, function(t, e) { (function(n, i) { - t.exports = i(aar()); + t.exports = i(oar()); })(qc, function(r) { return function(n) { var i = {}; @@ -112657,7 +112668,7 @@ function oar() { } (function(t, e) { (function(n, i) { - t.exports = i(oar()); + t.exports = i(lar()); })(qc, function(r) { return function(n) { var i = {}; @@ -112823,7 +112834,7 @@ function oar() { ]); }); })(Cve); -const lar = /* @__PURE__ */ $Z(Cve.exports); +const car = /* @__PURE__ */ $Z(Cve.exports); var xR = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) @@ -113211,14 +113222,14 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); xR.parser = xR; -var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { +var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { Al = [], Eve = 0, o$ = {}; -}, "clear"), har = /* @__PURE__ */ x(function(t) { +}, "clear"), far = /* @__PURE__ */ x(function(t) { for (let e = Al.length - 1; e >= 0; e--) if (Al[e].level < t) return Al[e]; return null; -}, "getParent"), far = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), dar = /* @__PURE__ */ x((t, e, r, n) => { +}, "getParent"), dar = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), par = /* @__PURE__ */ x((t, e, r, n) => { var l, u, h, f; X.info("addNode", t, e, r, n); const i = be(); @@ -113238,7 +113249,7 @@ var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { children: [], width: (f = (h = i.mindmap) == null ? void 0 : h.maxNodeWidth) != null ? f : jr.mindmap.maxNodeWidth, padding: s - }, o = har(t); + }, o = far(t); if (o) o.children.push(a), Al.push(a); else if (Al.length === 0) @@ -113256,7 +113267,7 @@ var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, par = /* @__PURE__ */ x((t, e) => { +}, gar = /* @__PURE__ */ x((t, e) => { switch (X.debug("In get type", t, e), t) { case "[": return Oi.RECT; @@ -113273,14 +113284,14 @@ var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { default: return Oi.DEFAULT; } -}, "getType"), gar = /* @__PURE__ */ x((t, e) => { +}, "getType"), mar = /* @__PURE__ */ x((t, e) => { o$[t] = e; -}, "setElementForId"), mar = /* @__PURE__ */ x((t) => { +}, "setElementForId"), yar = /* @__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"), yar = /* @__PURE__ */ x((t) => { +}, "decorateNode"), bar = /* @__PURE__ */ x((t) => { switch (t) { case Oi.DEFAULT: return "no-border"; @@ -113299,25 +113310,25 @@ var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { default: return "no-border"; } -}, "type2Str"), bar = /* @__PURE__ */ x(() => X, "getLogger"), xar = /* @__PURE__ */ x((t) => o$[t], "getElementById"), war = { - clear: uar, - addNode: dar, - getMindmap: far, +}, "type2Str"), xar = /* @__PURE__ */ x(() => X, "getLogger"), war = /* @__PURE__ */ x((t) => o$[t], "getElementById"), Oar = { + clear: har, + addNode: par, + getMindmap: dar, nodeType: Oi, - getType: par, - setElementForId: gar, - decorateNode: mar, - type2Str: yar, - getLogger: bar, - getElementById: xar -}, Oar = war, kar = 12, Sar = /* @__PURE__ */ x(function(t, e, r, n) { + getType: gar, + setElementForId: mar, + decorateNode: yar, + type2Str: bar, + getLogger: xar, + getElementById: war +}, kar = Oar, Sar = 12, Tar = /* @__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"), Tar = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultBkg"), Car = /* @__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"), Car = /* @__PURE__ */ x(function(t, e, r) { +}, "rectBkg"), Ear = /* @__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", @@ -113337,7 +113348,7 @@ var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "cloudBkg"), Ear = /* @__PURE__ */ x(function(t, e, r) { +}, "cloudBkg"), _ar = /* @__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", @@ -113361,7 +113372,7 @@ var car = xR, Al = [], Eve = 0, o$ = {}, uar = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "bangBkg"), _ar = /* @__PURE__ */ x(function(t, e, r) { +}, "bangBkg"), Aar = /* @__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 _ve(t, e, r, n, i) { @@ -113373,7 +113384,7 @@ function _ve(t, e, r, n, i) { ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } x(_ve, "insertPolygonShape"); -var Aar = /* @__PURE__ */ x(function(t, e, r) { +var Lar = /* @__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 }, @@ -113383,10 +113394,10 @@ var Aar = /* @__PURE__ */ x(function(t, e, r) { { x: 0, y: -n / 2 } ]; _ve(e, a, n, o, r); -}, "hexagonBkg"), Lar = /* @__PURE__ */ x(function(t, e, r) { +}, "hexagonBkg"), Rar = /* @__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"), Rar = /* @__PURE__ */ x(async function(t, e, r, n, i) { - const s = i.htmlLabels, a = n % (kar - 1), o = e.append("g"); +}, "roundedRectBkg"), Mar = /* @__PURE__ */ x(async function(t, e, r, n, i) { + const s = i.htmlLabels, a = n % (Sar - 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); @@ -113428,35 +113439,35 @@ var Aar = /* @__PURE__ */ x(function(t, e, r) { } switch (r.type) { case t.nodeType.DEFAULT: - Sar(t, u, r, a); + Tar(t, u, r, a); break; case t.nodeType.ROUNDED_RECT: - Lar(t, u, r, a); + Rar(t, u, r, a); break; case t.nodeType.RECT: - Tar(t, u, r, a); + Car(t, u, r, a); break; case t.nodeType.CIRCLE: - u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), _ar(t, u, r, a); + u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), Aar(t, u, r, a); break; case t.nodeType.CLOUD: - Car(t, u, r, a); + Ear(t, u, r, a); break; case t.nodeType.BANG: - Ear(t, u, r, a); + _ar(t, u, r, a); break; case t.nodeType.HEXAGON: - Aar(t, u, r, a); + Lar(t, u, r, a); break; } return t.setElementForId(r.id, o), r.height; -}, "drawNode"), Mar = /* @__PURE__ */ x(function(t, e) { +}, "drawNode"), Dar = /* @__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"); -Uc.use(lar); +Uc.use(car); async function l$(t, e, r, n, i) { - await Rar(t, e, r, n, i), r.children && await Promise.all( + await Mar(t, e, r, n, i), r.children && await Promise.all( r.children.map( (s, a) => l$(t, e, s, n < 0 ? a : n, i) ) @@ -113539,7 +113550,7 @@ x(Lve, "layoutMindmap"); function Rve(t, e) { e.nodes().map((r, n) => { const i = r.data(); - i.x = r.position().x, i.y = r.position().y, Mar(t, i); + i.x = r.position().x, i.y = r.position().y, Dar(t, i); const s = t.getElementById(i.nodeId); X.info("Id:", n, "Position: (", r.position().x, ", ", r.position().y, ")", i), s.attr( "transform", @@ -113548,7 +113559,7 @@ function Rve(t, e) { }); } x(Rve, "positionNodes"); -var Dar = /* @__PURE__ */ x(async (t, e, r, n) => { +var Nar = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; X.debug(`Rendering mindmap diagram ` + t); @@ -113568,9 +113579,9 @@ var Dar = /* @__PURE__ */ x(async (t, e, r, n) => { (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"), Nar = { - draw: Dar -}, Iar = /* @__PURE__ */ x((t) => { +}, "draw"), Iar = { + draw: Nar +}, Par = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], z0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Qt(t["lineColor" + r], 20); @@ -113607,11 +113618,11 @@ var Dar = /* @__PURE__ */ x(async (t, e, r, n) => { `; } return e; -}, "genSections"), Par = /* @__PURE__ */ x((t) => ` +}, "genSections"), $ar = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${Iar(t)} + ${Par(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -113634,15 +113645,15 @@ var Dar = /* @__PURE__ */ x(async (t, e, r, n) => { dominant-baseline: middle; text-align: center; } -`, "getStyles"), $ar = Par, Bar = { - db: Oar, - renderer: Nar, - parser: car, - styles: $ar +`, "getStyles"), Bar = $ar, Far = { + db: kar, + renderer: Iar, + parser: uar, + styles: Bar }; -const Far = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const zar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Bar + diagram: Far }, Symbol.toStringTag, { value: "Module" })); function KX(t, e) { let r; @@ -113680,20 +113691,20 @@ function bA(t, e) { } return r; } -function zar(t) { +function Var(t) { return t.target.depth; } -function Var(t) { +function Uar(t) { return t.depth; } -function Uar(t, e) { +function qar(t, e) { return e - 1 - t.height; } function Dve(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } -function qar(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Mve(t.sourceLinks, zar) - 1 : 0; +function Yar(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Mve(t.sourceLinks, Var) - 1 : 0; } function HO(t) { return function() { @@ -113712,13 +113723,13 @@ function bS(t, e) { function xA(t) { return t.value; } -function Yar(t) { +function Qar(t) { return t.index; } -function Qar(t) { +function War(t) { return t.nodes; } -function War(t) { +function Gar(t) { return t.links; } function tZ(t, e) { @@ -113736,8 +113747,8 @@ function rZ({ nodes: t }) { i.y1 = n + i.width / 2, n += i.width; } } -function Gar() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Yar, l = Dve, u, h, f = Qar, d = War, p = 6; +function Har() { + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Qar, l = Dve, u, h, f = War, d = Gar, 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), rZ(N), N; @@ -113941,7 +113952,7 @@ function Gar() { } return g; } -var wR = Math.PI, OR = 2 * wR, pd = 1e-6, Har = OR - pd; +var wR = Math.PI, OR = 2 * wR, pd = 1e-6, Xar = OR - pd; function kR() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } @@ -113985,7 +113996,7 @@ kR.prototype = Nve.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) > pd || Math.abs(this._y1 - u) > pd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % OR + OR), f > Har ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > pd && (this._ += "A" + r + "," + r + ",0," + +(f >= wR) + "," + 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) > pd || Math.abs(this._y1 - u) > pd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % OR + OR), f > Xar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > pd && (this._ += "A" + r + "," + r + ",0," + +(f >= wR) + "," + 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"; @@ -113999,23 +114010,23 @@ function nZ(t) { return t; }; } -function Xar(t) { +function Zar(t) { return t[0]; } -function Zar(t) { +function jar(t) { return t[1]; } -var jar = Array.prototype.slice; -function Kar(t) { +var Kar = Array.prototype.slice; +function Jar(t) { return t.source; } -function Jar(t) { +function eor(t) { return t.target; } -function eor(t) { - var e = Kar, r = Jar, n = Xar, i = Zar, s = null; +function tor(t) { + var e = Jar, r = eor, n = Zar, i = jar, s = null; function a() { - var o, l = jar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); + var o, l = Kar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); if (s || (s = o = Nve()), 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; } @@ -114031,20 +114042,20 @@ function eor(t) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; } -function tor(t, e, r, n, i) { +function ror(t, e, r, n, i) { t.moveTo(e, r), t.bezierCurveTo(e = (e + n) / 2, r, e, i, n, i); } -function ror() { - return eor(tor); +function nor() { + return tor(ror); } -function nor(t) { +function ior(t) { return [t.source.x1, t.y0]; } -function ior(t) { +function sor(t) { return [t.target.x0, t.y1]; } -function sor() { - return ror().source(nor).target(ior); +function aor() { + return nor().source(ior).target(sor); } var SR = function() { var t = /* @__PURE__ */ x(function(o, l, u, h) { @@ -114336,48 +114347,48 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : B = " return x(a, "Parser"), a.prototype = i, i.Parser = a, new a(); }(); SR.parser = SR; -var xS = SR, iE = [], sE = [], wS = /* @__PURE__ */ new Map(), aor = /* @__PURE__ */ x(() => { +var xS = SR, iE = [], sE = [], wS = /* @__PURE__ */ new Map(), oor = /* @__PURE__ */ x(() => { iE = [], sE = [], wS = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), Ub, oor = (Ub = class { +}, "clear"), Ub, lor = (Ub = class { constructor(e, r, n = 0) { this.source = e, this.target = r, this.value = n; } }, (() => { x(Ub, "SankeyLink"); -})(), Ub), lor = /* @__PURE__ */ x((t, e, r) => { - iE.push(new oor(t, e, r)); -}, "addLink"), qb, cor = (qb = class { +})(), Ub), cor = /* @__PURE__ */ x((t, e, r) => { + iE.push(new lor(t, e, r)); +}, "addLink"), qb, uor = (qb = class { constructor(e) { this.ID = e; } }, (() => { x(qb, "SankeyNode"); -})(), qb), uor = /* @__PURE__ */ x((t) => { +})(), qb), hor = /* @__PURE__ */ x((t) => { t = at.sanitizeText(t, be()); let e = wS.get(t); - return e === void 0 && (e = new cor(t), wS.set(t, e), sE.push(e)), e; -}, "findOrCreateNode"), hor = /* @__PURE__ */ x(() => sE, "getNodes"), dor = /* @__PURE__ */ x(() => iE, "getLinks"), por = /* @__PURE__ */ x(() => ({ + return e === void 0 && (e = new uor(t), wS.set(t, e), sE.push(e)), e; +}, "findOrCreateNode"), dor = /* @__PURE__ */ x(() => sE, "getNodes"), por = /* @__PURE__ */ x(() => iE, "getLinks"), gor = /* @__PURE__ */ x(() => ({ nodes: sE.map((t) => ({ id: t.ID })), links: iE.map((t) => ({ source: t.source.ID, target: t.target.ID, value: t.value })) -}), "getGraph"), gor = { +}), "getGraph"), mor = { nodesMap: wS, getConfig: /* @__PURE__ */ x(() => be().sankey, "getConfig"), - getNodes: hor, - getLinks: dor, - getGraph: por, - addLink: lor, - findOrCreateNode: uor, + getNodes: dor, + getLinks: por, + getGraph: gor, + addLink: cor, + findOrCreateNode: hor, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, setAccDescription: ys, getDiagramTitle: xs, setDiagramTitle: fa, - clear: aor + clear: oor }, Wh, iZ = (Wh = class { static next(e) { return new Wh(e + ++Wh.count); @@ -114392,22 +114403,22 @@ var xS = SR, iE = [], sE = [], wS = /* @__PURE__ */ new Map(), aor = /* @__PURE_ x(Wh, "Uid"); })(), (() => { Wh.count = 0; -})(), Wh), mor = { - left: Var, - right: Uar, - center: qar, +})(), Wh), vor = { + left: Uar, + right: qar, + center: Yar, justify: Dve -}, vor = /* @__PURE__ */ x(function(t, e, r, n) { +}, yor = /* @__PURE__ */ x(function(t, e, r, n) { var R, _, A, $, k, N, M, I; const { securityLevel: i, sankey: s } = be(), a = Pie.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 = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (A = s == null ? void 0 : s.useMaxWidth) != null ? A : 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 = mor[p], w = 10; - Gar().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 = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (A = s == null ? void 0 : s.useMaxWidth) != null ? A : 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 = vor[p], w = 10; + Har().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ [0, 0], [h, f] ])(y); - const S = DT(BOt); + const S = DT(FOt); u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = iZ.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)); @@ -114433,45 +114444,45 @@ ${g}${Math.round(P * 100) / 100}${m}` : D, "getText"); default: E = L; } - T.append("path").attr("d", sor()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), Z1(void 0, u, 0, d); -}, "draw"), yor = { - draw: vor -}, bor = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), xor = xS.parse.bind(xS); -xS.parse = (t) => xor(bor(t)); -var wor = { + T.append("path").attr("d", aor()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), Z1(void 0, u, 0, d); +}, "draw"), bor = { + draw: yor +}, xor = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), wor = xS.parse.bind(xS); +xS.parse = (t) => wor(xor(t)); +var Oor = { parser: xS, - db: gor, - renderer: yor + db: mor, + renderer: bor }; -const Oor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const kor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: wor + diagram: Oor }, Symbol.toStringTag, { value: "Module" })); var Ive = { packet: [] -}, u$ = structuredClone(Ive), kor = jr.packet, Sor = /* @__PURE__ */ x(() => { +}, u$ = structuredClone(Ive), Sor = jr.packet, Tor = /* @__PURE__ */ x(() => { const t = ch({ - ...kor, + ...Sor, ...pi().packet }); return t.showBits && (t.paddingY += 10), t; -}, "getConfig"), Tor = /* @__PURE__ */ x(() => u$.packet, "getPacket"), Cor = /* @__PURE__ */ x((t) => { +}, "getConfig"), Cor = /* @__PURE__ */ x(() => u$.packet, "getPacket"), Eor = /* @__PURE__ */ x((t) => { t.length > 0 && u$.packet.push(t); -}, "pushWord"), Eor = /* @__PURE__ */ x(() => { +}, "pushWord"), _or = /* @__PURE__ */ x(() => { Xi(), u$ = structuredClone(Ive); }, "clear"), Lp = { - pushWord: Cor, - getPacket: Tor, - getConfig: Sor, - clear: Eor, + pushWord: Eor, + getPacket: Cor, + getConfig: Tor, + clear: _or, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, _or = 1e4, Aor = /* @__PURE__ */ x((t) => { +}, Aor = 1e4, Lor = /* @__PURE__ */ x((t) => { Mx(t, Lp); let e = -1, r = [], n = 1; const { bitsPerRow: i } = Lp.getConfig(); @@ -114482,15 +114493,15 @@ var Ive = { 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 && Lp.getPacket().length < _or; ) { - const [l, u] = Lor({ 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 && Lp.getPacket().length < Aor; ) { + const [l, u] = Ror({ start: s, end: a, label: o }, n, i); if (r.push(l), l.end + 1 === n * i && (Lp.pushWord(r), r = [], n++), !u) break; ({ start: s, end: a, label: o } = u); } } Lp.pushWord(r); -}, "populate"), Lor = /* @__PURE__ */ x((t, e, r) => { +}, "populate"), Ror = /* @__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] : [ @@ -114505,18 +114516,18 @@ var Ive = { label: t.label } ]; -}, "getNextFittingBlock"), Ror = { +}, "getNextFittingBlock"), Mor = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("packet", t); - X.debug(e), Aor(e); + X.debug(e), Lor(e); }, "parse") -}, Mor = /* @__PURE__ */ x((t, e, r, n) => { +}, Dor = /* @__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 = Z0(e); m.attr("viewbox", `0 0 ${g} ${p}`), ms(m, p, g, s.useMaxWidth); for (const [v, y] of h.entries()) - Dor(m, y, v, s); + Nor(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"), Dor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { +}, "draw"), Nor = /* @__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; @@ -114525,7 +114536,7 @@ var Ive = { 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"), Nor = { draw: Mor }, Ior = { +}, "drawWord"), Ior = { draw: Dor }, Por = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -114536,8 +114547,8 @@ var Ive = { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, Por = /* @__PURE__ */ x(({ packet: t } = {}) => { - const e = ch(Ior, t); +}, $or = /* @__PURE__ */ x(({ packet: t } = {}) => { + const e = ch(Por, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -114562,15 +114573,15 @@ var Ive = { fill: ${e.blockFillColor}; } `; -}, "styles"), $or = { - parser: Ror, +}, "styles"), Bor = { + parser: Mor, db: Lp, - renderer: Nor, - styles: Por + renderer: Ior, + styles: $or }; -const Bor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const For = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: $or + diagram: Bor }, Symbol.toStringTag, { value: "Module" })); var TR = function() { var t = /* @__PURE__ */ x(function(w, O, S, C) { @@ -115156,20 +115167,20 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[G] || G) + "'" : ae = return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); TR.parser = TR; -var For = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new Map(), sZ = "color", aZ = "fill", zor = "bgFill", Pve = ",", Vor = be(), OS = /* @__PURE__ */ new Map(), Uor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Vor), "sanitizeText"), qor = /* @__PURE__ */ x(function(t, e = "") { +var zor = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new Map(), sZ = "color", aZ = "fill", Vor = "bgFill", Pve = ",", Uor = be(), OS = /* @__PURE__ */ new Map(), qor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Uor), "sanitizeText"), Yor = /* @__PURE__ */ x(function(t, e = "") { let r = OS.get(t); r || (r = { id: t, styles: [], textStyles: [] }, OS.set(t, r)), e != null && e.split(Pve).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(sZ).exec(n)) { - const a = i.replace(aZ, zor).replace(sZ, aZ); + const a = i.replace(aZ, Vor).replace(sZ, aZ); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), Yor = /* @__PURE__ */ x(function(t, e = "") { +}, "addStyleClass"), Qor = /* @__PURE__ */ x(function(t, e = "") { const r = Ll.get(t); e != null && (r.styles = e.split(Pve)); -}, "addStyle2Node"), Qor = /* @__PURE__ */ x(function(t, e) { +}, "addStyle2Node"), Wor = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = Ll.get(r); if (n === void 0) { @@ -115182,16 +115193,16 @@ var For = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { - if (l.label && (l.label = Uor(l.label)), l.type === "classDef") { - qor(l.id, l.css); + if (l.label && (l.label = qor(l.label)), l.type === "classDef") { + Yor(l.id, l.css); continue; } if (l.type === "applyClass") { - Qor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); + Wor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); continue; } if (l.type === "applyStyles") { - l != null && l.stylesStr && Yor(l.id, l == null ? void 0 : l.stylesStr); + l != null && l.stylesStr && Qor(l.id, l == null ? void 0 : l.stylesStr); continue; } if (l.type === "column-setting") @@ -115213,7 +115224,7 @@ var For = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new } } e.children = n; -}, "populateBlockDatabase"), f$ = [], vy = { id: "root", type: "composite", children: [], columns: -1 }, Wor = /* @__PURE__ */ x(() => { +}, "populateBlockDatabase"), f$ = [], vy = { id: "root", type: "composite", children: [], columns: -1 }, Gor = /* @__PURE__ */ x(() => { X.debug("Clear called"), Xi(), vy = { id: "root", type: "composite", children: [], columns: -1 }, Ll = /* @__PURE__ */ new Map([["root", vy]]), f$ = [], OS = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new Map(); }, "clear"); function Bve(t) { @@ -115273,35 +115284,35 @@ function zve(t) { } } x(zve, "edgeStrToEdgeData"); -var oZ = 0, Gor = /* @__PURE__ */ x(() => (oZ++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + oZ), "generateId"), Hor = /* @__PURE__ */ x((t) => { +var oZ = 0, Hor = /* @__PURE__ */ x(() => (oZ++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + oZ), "generateId"), Xor = /* @__PURE__ */ x((t) => { vy.children = t, $ve(t, vy), f$ = vy.children; -}, "setHierarchy"), Xor = /* @__PURE__ */ x((t) => { +}, "setHierarchy"), Zor = /* @__PURE__ */ x((t) => { const e = Ll.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; -}, "getColumns"), Zor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), jor = /* @__PURE__ */ x(() => f$ || [], "getBlocks"), Kor = /* @__PURE__ */ x(() => h$, "getEdges"), Jor = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), elr = /* @__PURE__ */ x((t) => { +}, "getColumns"), jor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Kor = /* @__PURE__ */ x(() => f$ || [], "getBlocks"), Jor = /* @__PURE__ */ x(() => h$, "getEdges"), elr = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), tlr = /* @__PURE__ */ x((t) => { Ll.set(t.id, t); -}, "setBlock"), tlr = /* @__PURE__ */ x(() => console, "getLogger"), rlr = /* @__PURE__ */ x(function() { +}, "setBlock"), rlr = /* @__PURE__ */ x(() => console, "getLogger"), nlr = /* @__PURE__ */ x(function() { return OS; -}, "getClasses"), nlr = { +}, "getClasses"), ilr = { getConfig: /* @__PURE__ */ x(() => pi().block, "getConfig"), typeStr2Type: Bve, edgeTypeStr2Type: Fve, edgeStrToEdgeData: zve, - getLogger: tlr, - getBlocksFlat: Zor, - getBlocks: jor, - getEdges: Kor, - setHierarchy: Hor, - getBlock: Jor, - setBlock: elr, - getColumns: Xor, - getClasses: rlr, - clear: Wor, - generateId: Gor -}, ilr = nlr, XO = /* @__PURE__ */ x((t, e) => { + getLogger: rlr, + getBlocksFlat: jor, + getBlocks: Kor, + getEdges: Jor, + setHierarchy: Xor, + getBlock: elr, + setBlock: tlr, + getColumns: Zor, + getClasses: nlr, + clear: Gor, + generateId: Hor +}, slr = ilr, XO = /* @__PURE__ */ x((t, e) => { const r = die, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), slr = /* @__PURE__ */ x((t) => `.label { +}, "fade"), alr = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -115413,7 +115424,7 @@ var oZ = 0, Gor = /* @__PURE__ */ x(() => (oZ++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), alr = slr, pZ, gZ, mZ, Xn = (mZ = (gZ = (pZ = be()) == null ? void 0 : pZ.block) == null ? void 0 : gZ.padding) != null ? mZ : 8; +`, "getStyles"), olr = alr, pZ, gZ, mZ, Xn = (mZ = (gZ = (pZ = be()) == null ? void 0 : pZ.block) == null ? void 0 : gZ.padding) != null ? mZ : 8; function Vve(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); @@ -115427,7 +115438,7 @@ function Vve(t, e) { return { px: r, py: n }; } x(Vve, "calculateBlockPosition"); -var olr = /* @__PURE__ */ x((t) => { +var llr = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; for (const s of t.children) { @@ -115468,7 +115479,7 @@ function kS(t, e, r = 0, n = 0) { if (((l = t.children) == null ? void 0 : l.length) > 0) { for (const A of t.children) kS(A, e); - const S = olr(t); + const S = llr(t); i = S.width, s = S.height, X.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", i, s); for (const A of t.children) A.size && (X.debug( @@ -115753,9 +115764,9 @@ async function Gve(t, e, r, n, i) { } } x(Gve, "insertEdges"); -var llr = /* @__PURE__ */ x(function(t, e) { +var clr = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), clr = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), ulr = /* @__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)); @@ -115771,21 +115782,21 @@ var llr = /* @__PURE__ */ x(function(t, e) { `${v.x - 5} ${v.y - 5} ${v.width + 10} ${v.height + 10}` ); } -}, "draw"), ulr = { - draw: clr, - getClasses: llr -}, hlr = { - parser: For, - db: ilr, - renderer: ulr, - styles: alr +}, "draw"), hlr = { + draw: ulr, + getClasses: clr +}, flr = { + parser: zor, + db: slr, + renderer: hlr, + styles: olr }; -const flr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const dlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: hlr + diagram: flr }, Symbol.toStringTag, { value: "Module" })); var Hve = { exports: {} }, wA = { exports: {} }, OA = { exports: {} }, lZ; -function dlr() { +function plr() { return lZ || (lZ = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -117615,10 +117626,10 @@ function dlr() { }(OA)), OA.exports; } var cZ; -function plr() { +function glr() { return cZ || (cZ = 1, function(t, e) { (function(n, i) { - t.exports = i(dlr()); + t.exports = i(plr()); })(qc, function(r) { return (() => { var n = { @@ -118814,7 +118825,7 @@ function plr() { } (function(t, e) { (function(n, i) { - t.exports = i(plr()); + t.exports = i(glr()); })(qc, function(r) { return (() => { var n = { @@ -119412,7 +119423,7 @@ function plr() { })(); }); })(Hve); -const glr = Hve.exports; +const mlr = Hve.exports; var uZ = { L: "left", R: "right", @@ -119428,7 +119439,7 @@ var uZ = { 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") -}, mlr = /* @__PURE__ */ x(function(t) { +}, vlr = /* @__PURE__ */ x(function(t) { return Oa(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; }, "getOppositeArchitectureDirection"), fZ = /* @__PURE__ */ x(function(t) { const e = t; @@ -119442,22 +119453,22 @@ var uZ = { }, "isArchitectureDirectionY"), Xve = /* @__PURE__ */ x(function(t, e) { const r = Oa(t) && $f(e), n = $f(t) && Oa(e); return r || n; -}, "isArchitectureDirectionXY"), vlr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureDirectionXY"), ylr = /* @__PURE__ */ x(function(t) { const e = t[0], r = t[1], n = Oa(e) && $f(r), i = $f(e) && Oa(r); return n || i; -}, "isArchitecturePairXY"), ylr = /* @__PURE__ */ x(function(t) { +}, "isArchitecturePairXY"), blr = /* @__PURE__ */ x(function(t) { return t !== "LL" && t !== "RR" && t !== "TT" && t !== "BB"; }, "isValidArchitectureDirectionPair"), ER = /* @__PURE__ */ x(function(t, e) { const r = `${t}${e}`; - return ylr(r) ? r : void 0; -}, "getArchitectureDirectionPair"), blr = /* @__PURE__ */ x(function([t, e], r) { + return blr(r) ? r : void 0; +}, "getArchitectureDirectionPair"), xlr = /* @__PURE__ */ x(function([t, e], r) { const n = r[0], i = r[1]; return Oa(n) ? $f(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"), xlr = /* @__PURE__ */ x(function(t) { +}, "shiftPositionByArchitectureDirectionPair"), wlr = /* @__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"), wlr = /* @__PURE__ */ x(function(t) { +}, "getArchitectureDirectionXYFactors"), Olr = /* @__PURE__ */ x(function(t) { return t.type === "service"; -}, "isArchitectureService"), Olr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureService"), klr = /* @__PURE__ */ x(function(t) { return t.type === "junction"; }, "isArchitectureJunction"), Zve = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Qp = /* @__PURE__ */ x((t) => t.data(), "nodeData"), jve = jr.architecture, fr = new kI(() => ({ nodes: {}, @@ -119467,9 +119478,9 @@ var uZ = { config: jve, dataStructures: void 0, elements: {} -})), klr = /* @__PURE__ */ x(() => { +})), Slr = /* @__PURE__ */ x(() => { fr.reset(), Xi(); -}, "clear"), Slr = /* @__PURE__ */ x(function({ +}, "clear"), Tlr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, @@ -119499,14 +119510,14 @@ var uZ = { edges: [], in: r }; -}, "addService"), Tlr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(wlr), "getServices"), Clr = /* @__PURE__ */ x(function({ id: t, in: e }) { +}, "addService"), Clr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(Olr), "getServices"), Elr = /* @__PURE__ */ x(function({ id: t, in: e }) { fr.records.registeredIds[t] = "node", fr.records.nodes[t] = { id: t, type: "junction", edges: [], in: e }; -}, "addJunction"), Elr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(Olr), "getJunctions"), _lr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), Alr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), Llr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { +}, "addJunction"), _lr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(klr), "getJunctions"), Alr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), Llr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), Rlr = /* @__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]}` @@ -119527,7 +119538,7 @@ var uZ = { title: n, in: r }; -}, "addGroup"), Rlr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), Mlr = /* @__PURE__ */ x(function({ +}, "addGroup"), Mlr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), Dlr = /* @__PURE__ */ x(function({ lhsId: t, rhsId: e, lhsDir: r, @@ -119575,7 +119586,7 @@ var uZ = { 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"), Dlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), Nlr = /* @__PURE__ */ x(() => { +}, "addEdge"), Nlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), Ilr = /* @__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) { @@ -119597,7 +119608,7 @@ var uZ = { r[u] = 1, delete n[u]; const h = t[u], [f, d] = o[u]; Object.entries(h).forEach(([p, g]) => { - r[g] || (o[g] = blr( + r[g] || (o[g] = xlr( [f, d], p ), l.push(g)); @@ -119614,43 +119625,43 @@ var uZ = { }; } return fr.records.dataStructures; -}, "getDataStructures"), Ilr = /* @__PURE__ */ x((t, e) => { +}, "getDataStructures"), Plr = /* @__PURE__ */ x((t, e) => { fr.records.elements[t] = e; -}, "setElementForId"), Plr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), SS = { - clear: klr, +}, "setElementForId"), $lr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), SS = { + clear: Slr, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addService: Slr, - getServices: Tlr, - addJunction: Clr, - getJunctions: Elr, - getNodes: _lr, - getNode: Alr, - addGroup: Llr, - getGroups: Rlr, - addEdge: Mlr, - getEdges: Dlr, - setElementForId: Ilr, - getElementById: Plr, - getDataStructures: Nlr + addService: Tlr, + getServices: Clr, + addJunction: Elr, + getJunctions: _lr, + getNodes: Alr, + getNode: Llr, + addGroup: Rlr, + getGroups: Mlr, + addEdge: Dlr, + getEdges: Nlr, + setElementForId: Plr, + getElementById: $lr, + getDataStructures: Ilr }; function Ai(t) { const e = be().architecture; return e != null && e[t] ? e[t] : jve[t]; } x(Ai, "getConfigField"); -var $lr = /* @__PURE__ */ x((t, e) => { +var Blr = /* @__PURE__ */ x((t, e) => { Mx(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"), Blr = { +}, "populateDb"), Flr = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("architecture", t); - X.debug(e), $lr(e, SS); + X.debug(e), Blr(e, SS); }, "parse") -}, Flr = /* @__PURE__ */ x((t) => ` +}, zlr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -119681,7 +119692,7 @@ var $lr = /* @__PURE__ */ x((t, e) => { display: -webkit-box; -webkit-box-orient: vertical; } -`, "getStyles"), zlr = Flr, Op = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), nb = { +`, "getStyles"), Vlr = zlr, Op = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), nb = { prefix: "mermaid-architecture", height: 80, width: 80, @@ -119716,7 +119727,7 @@ var $lr = /* @__PURE__ */ x((t, e) => { body: Op("") } } -}, Vlr = /* @__PURE__ */ x(async function(t, e) { +}, Ulr = /* @__PURE__ */ x(async function(t, e) { const r = Ai("padding"), n = Ai("iconSize"), i = n / 2, s = n / 6, a = s / 2; await Promise.all( e.edges().map(async (o) => { @@ -119766,8 +119777,8 @@ var $lr = /* @__PURE__ */ x((t, e) => { $.attr("transform", "translate(" + w + ", " + O + ") rotate(-90)"); else if (_ === "XY") { const k = ER(u, p); - if (k && vlr(k)) { - const N = $.node().getBoundingClientRect(), [M, I] = xlr(k); + if (k && ylr(k)) { + const N = $.node().getBoundingClientRect(), [M, I] = wlr(k); $.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * M * I * 45})`); const D = $.node().getBoundingClientRect(); $.attr( @@ -119784,7 +119795,7 @@ var $lr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawEdges"), Ulr = /* @__PURE__ */ x(async function(t, e) { +}, "drawEdges"), qlr = /* @__PURE__ */ x(async function(t, e) { const n = Ai("padding") * 0.75, i = Ai("fontSize"), a = Ai("iconSize") / 2; await Promise.all( e.nodes().map(async (o) => { @@ -119822,7 +119833,7 @@ var $lr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawGroups"), qlr = /* @__PURE__ */ x(async function(t, e, r) { +}, "drawGroups"), Ylr = /* @__PURE__ */ x(async function(t, e, r) { var n; for (const i of r) { const s = e.append("g"), a = Ai("iconSize"); @@ -119862,7 +119873,7 @@ var $lr = /* @__PURE__ */ x((t, e) => { i.width = l, i.height = u, t.setElementForId(i.id, s); } return 0; -}, "drawServices"), Ylr = /* @__PURE__ */ x(function(t, e, r) { +}, "drawServices"), Qlr = /* @__PURE__ */ x(function(t, e, r) { r.forEach((n) => { const i = e.append("g"), s = Ai("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"); @@ -119876,7 +119887,7 @@ Vie([ icons: nb } ]); -Uc.use(glr); +Uc.use(mlr); function Kve(t, e) { t.forEach((r) => { e.add({ @@ -120004,7 +120015,7 @@ function iye(t) { const g = r([f[0] + p[0], f[1] + p[1]]), m = s[g]; m && !o[g] && (a.push(g), e.push({ [uZ[d]]: m, - [uZ[mlr(d)]]: h, + [uZ[vlr(d)]]: h, gap: 1.5 * Ai("iconSize") })); }); @@ -120141,47 +120152,47 @@ function sye(t, e, r, n, { spatialMaps: i }) { }); } x(sye, "layoutArchitecture"); -var Qlr = /* @__PURE__ */ x(async (t, e, r, n) => { +var Wlr = /* @__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 = Z0(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 qlr(i, d, s), Ylr(i, d, a); + p.attr("class", "architecture-groups"), await Ylr(i, d, s), Qlr(i, d, a); const g = await sye(s, a, o, l, u); - await Vlr(f, g), await Ulr(p, g), eye(i, g), Z1(void 0, h, Ai("padding"), Ai("useMaxWidth")); -}, "draw"), Wlr = { draw: Qlr }, Glr = { - parser: Blr, + await Ulr(f, g), await qlr(p, g), eye(i, g), Z1(void 0, h, Ai("padding"), Ai("useMaxWidth")); +}, "draw"), Glr = { draw: Wlr }, Hlr = { + parser: Flr, db: SS, - renderer: Wlr, - styles: zlr + renderer: Glr, + styles: Vlr }; -const Hlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Xlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Glr -}, Symbol.toStringTag, { value: "Module" })), Xlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + diagram: Hlr +}, Symbol.toStringTag, { value: "Module" })), Zlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, InfoModule: ipe, createInfoServices: spe -}, Symbol.toStringTag, { value: "Module" })), Zlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), jlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PacketModule: ape, createPacketServices: ope -}, Symbol.toStringTag, { value: "Module" })), jlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), Klr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PieModule: lpe, createPieServices: cpe -}, Symbol.toStringTag, { value: "Module" })), Klr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), Jlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ArchitectureModule: upe, createArchitectureServices: hpe -}, Symbol.toStringTag, { value: "Module" })), Jlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), ecr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, GitGraphModule: rpe, createGitGraphServices: npe }, Symbol.toStringTag, { value: "Module" })); export { - ncr as default, - M7t as defaultButtons, + icr as default, + D7t as defaultButtons, ev as predefinedButtons }; diff --git a/docs/collaboration.html b/docs/collaboration.html index 7bcdaf9..1b7e82b 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -472,7 +472,7 @@

Other Collaborative Features58f4021f + 16cc606b @ main

diff --git a/docs/comments.html b/docs/comments.html index 022c9bf..c8e4c15 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -622,7 +622,7 @@

Suggestions - 58f4021f + 16cc606b @ main diff --git a/docs/genindex.html b/docs/genindex.html index eb49e15..800fa57 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -367,7 +367,7 @@ - 58f4021f + 16cc606b @ main diff --git a/docs/index.html b/docs/index.html index 083d4cb..c6f2339 100644 --- a/docs/index.html +++ b/docs/index.html @@ -426,7 +426,7 @@

MyST Editor - User Manual - 58f4021f + 16cc606b @ main diff --git a/docs/introduction.html b/docs/introduction.html index 3fb0613..907f0e4 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -426,7 +426,7 @@

Introduction - 58f4021f + 16cc606b @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index 76eae01..8cc5d6e 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -430,7 +430,7 @@

Mermaid Diagrams58f4021f + 16cc606b @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index 0f724c8..8199808 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -506,7 +506,7 @@

View Mode Buttons58f4021f + 16cc606b @ main