@kong-ui-public/documentation 0.7.20 → 0.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/{Tableau10-GLA_9iAD-BMurskAd.js → Tableau10-D7jGxypv-D3w6FIcJ.js} +1 -2
  2. package/dist/arc-CJ96KFKf-ZAEyyrBI.js +84 -0
  3. package/dist/{blockDiagram-6b2b5046-ZGxr7RGf-D4pbh8vR.js → blockDiagram-9f4a6865-DOUkHJlG-BPuF5-tK.js} +107 -108
  4. package/dist/{c4Diagram-b947cdbb-Bo6xALld-D8DXBmHw.js → c4Diagram-ae766693-qW59_Cjl-BSBtINzy.js} +133 -132
  5. package/dist/{channel-BX3TjCqa-Cdtt6hB1.js → channel-BkEGjNbZ-CzBFLYvk.js} +1 -1
  6. package/dist/{classDiagram-35230388-C60SAKfJ-FQHXcc4J.js → classDiagram-fb54d2a0-DaEnSnV7-BgUSoTGU.js} +8 -7
  7. package/dist/{classDiagram-v2-412acd34-CHK1KDqU-CiKmarbv.js → classDiagram-v2-a2b738ad-DVF-sdZH-lL0m0fQD.js} +8 -8
  8. package/dist/{clone-BSWoNj0I-CW2QP79u.js → clone-Bz5840kP-D3Uvm_gp.js} +1 -1
  9. package/dist/{createText-423428c9-DeHbckoy-r2CCACGx.js → createText-ca0c5216-DGjoI7Oz-8Az9WSXK.js} +14 -20
  10. package/dist/documentation.es.js +3 -3
  11. package/dist/documentation.umd.js +993 -723
  12. package/dist/{edges-d417c7a0-D7e9Y4V--DVOSTCB5.js → edges-066a5561-ByMuMaff-ipHdGCa_.js} +28 -27
  13. package/dist/{erDiagram-0ea73325-E3jchkiK-CfTqZxm6.js → erDiagram-09d1c15f-Ctl-zT4O-B9E7LRcs.js} +71 -72
  14. package/dist/{flowDb-d35e309a-Dch1VW7i-Bk557s4E.js → flowDb-c1833063-nJUM9bYy-B5f_hjwI.js} +4 -4
  15. package/dist/{flowDiagram-d949d7c1-CxjmKfBF-CuFUEya4.js → flowDiagram-b222e15a-BlrP8xne-DJ_sATm6.js} +339 -333
  16. package/dist/{flowDiagram-v2-49332944-Duf6j7PN-DgsEJ4Bo.js → flowDiagram-v2-13329dc7-DlqVPxH6-CgXruRZr.js} +5 -5
  17. package/dist/{flowchart-elk-definition-27cc417a-M-lK4i48-Bs8Ix10e.js → flowchart-elk-definition-ae0efee6-B2FZpaI4-C8o8y5J1.js} +343 -590
  18. package/dist/{ganttDiagram-5c869e3b-CgjZsm2H-Bon0v47P.js → ganttDiagram-b62c793e-BUkrtLIU-roFbcEhP.js} +513 -534
  19. package/dist/gitGraphDiagram-942e62fe-BIndO562-dNVJJzzm.js +1264 -0
  20. package/dist/{graph-Ch18bQn5-BLEKw6WT.js → graph-BN58fiEq-CyCz6HB3.js} +3 -4
  21. package/dist/{index-8fae9850-kUIz8xNo-CDn9_qZB.js → index-01f381cb-DHHDXut0-C1FToHnX.js} +11 -11
  22. package/dist/{index-CVS7cBlb.js → index-Dz46e5bv.js} +2354 -2515
  23. package/dist/{infoDiagram-db7b18fc-BpBtHVy2-DuX4gmA7.js → infoDiagram-94cd232f-CSzv-wTE-Bnonj1Cb.js} +7 -7
  24. package/dist/{journeyDiagram-d5636530-CZUFMDTA-D5VAFQAG.js → journeyDiagram-6625b456-Ca9U8tWI-DoKEPckV.js} +16 -16
  25. package/dist/katex-BXNjbZo7-CF_fuFJb.js +11637 -0
  26. package/dist/{layout-BzV691RN-Br8Ir03a.js → layout-DU4VNk5y-DEbr0_Pk.js} +112 -114
  27. package/dist/{line-JCh8JM-V-T9MVIZIE.js → line-CwSAou3c-dgS2jcU_.js} +3 -4
  28. package/dist/{linear-cwTFOJBq-B6q6qtlZ.js → linear-CngEzq0a-B6fRdJQY.js} +70 -94
  29. package/dist/{mindmap-definition-377f8f1f-BzIPdpBG-DD8FIpST.js → mindmap-definition-307c710a-CvpxqRPj-AB15RcM6.js} +343 -378
  30. package/dist/{ordinal-MUacOSdK-B1MUT0BL.js → ordinal-DfAQgscy-BEJTu10r.js} +3 -7
  31. package/dist/{path-Crsf9Nsj-SiSjwXsf.js → path-DLwuMfdd-EbErTa4c.js} +12 -19
  32. package/dist/{pieDiagram-b0208e96-BQfpnZHG-E8AMqTd3.js → pieDiagram-bb1d19e5-LP-9WGAS-DwilsWxb.js} +61 -61
  33. package/dist/{quadrantDiagram-0332be45-CNL4JCrn-BYyiYlYH.js → quadrantDiagram-c759a472-B_TsLXO0-BviiuQRe.js} +2 -2
  34. package/dist/{requirementDiagram-bf7890df-NBqqCuPF-CIHJhGNa.js → requirementDiagram-87253d64-o6jrBKBt-BDXpXGpQ.js} +30 -30
  35. package/dist/{sankeyDiagram-0acdec17-YE0ROy8d-CU1TmQZx.js → sankeyDiagram-707fac0f-BoEHDAJv-BBNylsjT.js} +44 -58
  36. package/dist/{sequenceDiagram-c18d009d-Yucxrjw7-D_cnXQcd.js → sequenceDiagram-6894f283-Dsj52Wsi-TDdIX1Wn.js} +845 -812
  37. package/dist/{stateDiagram-43596fc0-D9IY4Ssi-KJp_o1Vc.js → stateDiagram-5dee940d-COfohDXu-Dra8cHnR.js} +54 -54
  38. package/dist/{stateDiagram-v2-2ead4f9c-5IZQWbnV-Chm6qgaK.js → stateDiagram-v2-1992cada-v9z1blk7-b2WlcHGI.js} +12 -12
  39. package/dist/{styles-b2c874b6-pUAi9-OK-C7HwN-ih.js → styles-0784dbeb-DHDYpA72-BTX0XQJ5.js} +24 -24
  40. package/dist/{styles-7383a064-DLbSva3T-DWY6NPMf.js → styles-483fbfea-DUrqZeOP-BPfiLFkT.js} +140 -137
  41. package/dist/{styles-6860f46c-DHqkrPDU-JiuD19BB.js → styles-b83b31c9-R9NNyYA0-DnoGi25s.js} +29 -29
  42. package/dist/{svgDrawCommon-0ee1b4e9-rbw7BPwi-Boin581S.js → svgDrawCommon-5e1cfd1d-DeHC_PTd-44CTrnyq.js} +5 -5
  43. package/dist/{timeline-definition-d977decf-CtlVf6FF-BqqlH53Y.js → timeline-definition-bf702344-BzpRV6Z8-DHqazJ7N.js} +2 -2
  44. package/dist/{xychartDiagram-e50adddc-B9qgoJob-CqAKcFLo.js → xychartDiagram-f11f50a6-BMDfQSWf-CixUys_w.js} +40 -40
  45. package/package.json +6 -6
  46. package/dist/arc-TomPQHIy-B0wkvDWU.js +0 -86
  47. package/dist/gitGraphDiagram-b9d81de9-DhOfBQfl-BvCcUYjg.js +0 -1262
@@ -1,6 +1,5 @@
1
1
  function b(f) {
2
- for (var r = f.length / 6 | 0, a = new Array(r), e = 0; e < r; )
3
- a[e] = "#" + f.slice(e * 6, ++e * 6);
2
+ for (var r = f.length / 6 | 0, a = new Array(r), e = 0; e < r; ) a[e] = "#" + f.slice(e * 6, ++e * 6);
4
3
  return a;
5
4
  }
6
5
  const c = b("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
@@ -0,0 +1,84 @@
1
+ import { q as on, P as _ } from "./path-DLwuMfdd-EbErTa4c.js";
2
+ import { aO as an, aP as F, aQ as W, aR as rn, aS as l, aN as un, aT as S, aU as q, aV as cn, aW as y, aX as sn, aY as yn, aZ as en } from "./index-Dz46e5bv.js";
3
+ function fn(o) {
4
+ return o.innerRadius;
5
+ }
6
+ function ln(o) {
7
+ return o.outerRadius;
8
+ }
9
+ function mn(o) {
10
+ return o.startAngle;
11
+ }
12
+ function pn(o) {
13
+ return o.endAngle;
14
+ }
15
+ function gn(o) {
16
+ return o && o.padAngle;
17
+ }
18
+ function xn(o, v, z, I, T, d, b, a) {
19
+ var D = z - o, i = I - v, n = b - T, p = a - d, r = p * D - n * i;
20
+ if (!(r * r < l))
21
+ return r = (n * (v - d) - p * (o - T)) / r, [o + r * D, v + r * i];
22
+ }
23
+ function N(o, v, z, I, T, d, b) {
24
+ var a = o - z, D = v - I, i = (b ? d : -d) / S(a * a + D * D), n = i * D, p = -i * a, r = o + n, s = v + p, e = z + n, f = I + p, w = (r + e) / 2, u = (s + f) / 2, g = e - r, m = f - s, A = g * g + m * m, R = T - d, B = r * f - e * s, E = (m < 0 ? -1 : 1) * S(en(0, R * R * A - B * B)), H = (B * m - g * E) / A, K = (-B * g - m * E) / A, O = (B * m + g * E) / A, x = (-B * g + m * E) / A, h = H - w, t = K - u, c = O - w, C = x - u;
25
+ return h * h + t * t > c * c + C * C && (H = O, K = x), {
26
+ cx: H,
27
+ cy: K,
28
+ x01: -n,
29
+ y01: -p,
30
+ x11: H * (T / R - 1),
31
+ y11: K * (T / R - 1)
32
+ };
33
+ }
34
+ function Tn() {
35
+ var o = fn, v = ln, z = _(0), I = null, T = mn, d = pn, b = gn, a = null, D = on(i);
36
+ function i() {
37
+ var n, p, r = +o.apply(this, arguments), s = +v.apply(this, arguments), e = T.apply(this, arguments) - rn, f = d.apply(this, arguments) - rn, w = cn(f - e), u = f > e;
38
+ if (a || (a = n = D()), s < r && (p = s, s = r, r = p), !(s > l)) a.moveTo(0, 0);
39
+ else if (w > un - l)
40
+ a.moveTo(s * F(e), s * W(e)), a.arc(0, 0, s, e, f, !u), r > l && (a.moveTo(r * F(f), r * W(f)), a.arc(0, 0, r, f, e, u));
41
+ else {
42
+ var g = e, m = f, A = e, R = f, B = w, E = w, H = b.apply(this, arguments) / 2, K = H > l && (I ? +I.apply(this, arguments) : S(r * r + s * s)), O = q(cn(s - r) / 2, +z.apply(this, arguments)), x = O, h = O, t, c;
43
+ if (K > l) {
44
+ var C = sn(K / r * W(H)), X = sn(K / s * W(H));
45
+ (B -= C * 2) > l ? (C *= u ? 1 : -1, A += C, R -= C) : (B = 0, A = R = (e + f) / 2), (E -= X * 2) > l ? (X *= u ? 1 : -1, g += X, m -= X) : (E = 0, g = m = (e + f) / 2);
46
+ }
47
+ var G = s * F(g), P = s * W(g), Y = r * F(R), Z = r * W(R);
48
+ if (O > l) {
49
+ var $ = s * F(m), k = s * W(m), Q = r * F(A), U = r * W(A), V;
50
+ if (w < an)
51
+ if (V = xn(G, P, Q, U, $, k, Y, Z)) {
52
+ var L = G - V[0], M = P - V[1], j = $ - V[0], J = k - V[1], nn = 1 / W(yn((L * j + M * J) / (S(L * L + M * M) * S(j * j + J * J))) / 2), tn = S(V[0] * V[0] + V[1] * V[1]);
53
+ x = q(O, (r - tn) / (nn - 1)), h = q(O, (s - tn) / (nn + 1));
54
+ } else
55
+ x = h = 0;
56
+ }
57
+ E > l ? h > l ? (t = N(Q, U, G, P, s, h, u), c = N($, k, Y, Z, s, h, u), a.moveTo(t.cx + t.x01, t.cy + t.y01), h < O ? a.arc(t.cx, t.cy, h, y(t.y01, t.x01), y(c.y01, c.x01), !u) : (a.arc(t.cx, t.cy, h, y(t.y01, t.x01), y(t.y11, t.x11), !u), a.arc(0, 0, s, y(t.cy + t.y11, t.cx + t.x11), y(c.cy + c.y11, c.cx + c.x11), !u), a.arc(c.cx, c.cy, h, y(c.y11, c.x11), y(c.y01, c.x01), !u))) : (a.moveTo(G, P), a.arc(0, 0, s, g, m, !u)) : a.moveTo(G, P), !(r > l) || !(B > l) ? a.lineTo(Y, Z) : x > l ? (t = N(Y, Z, $, k, r, -x, u), c = N(G, P, Q, U, r, -x, u), a.lineTo(t.cx + t.x01, t.cy + t.y01), x < O ? a.arc(t.cx, t.cy, x, y(t.y01, t.x01), y(c.y01, c.x01), !u) : (a.arc(t.cx, t.cy, x, y(t.y01, t.x01), y(t.y11, t.x11), !u), a.arc(0, 0, r, y(t.cy + t.y11, t.cx + t.x11), y(c.cy + c.y11, c.cx + c.x11), u), a.arc(c.cx, c.cy, x, y(c.y11, c.x11), y(c.y01, c.x01), !u))) : a.arc(0, 0, r, R, A, u);
58
+ }
59
+ if (a.closePath(), n) return a = null, n + "" || null;
60
+ }
61
+ return i.centroid = function() {
62
+ var n = (+o.apply(this, arguments) + +v.apply(this, arguments)) / 2, p = (+T.apply(this, arguments) + +d.apply(this, arguments)) / 2 - an / 2;
63
+ return [F(p) * n, W(p) * n];
64
+ }, i.innerRadius = function(n) {
65
+ return arguments.length ? (o = typeof n == "function" ? n : _(+n), i) : o;
66
+ }, i.outerRadius = function(n) {
67
+ return arguments.length ? (v = typeof n == "function" ? n : _(+n), i) : v;
68
+ }, i.cornerRadius = function(n) {
69
+ return arguments.length ? (z = typeof n == "function" ? n : _(+n), i) : z;
70
+ }, i.padRadius = function(n) {
71
+ return arguments.length ? (I = n == null ? null : typeof n == "function" ? n : _(+n), i) : I;
72
+ }, i.startAngle = function(n) {
73
+ return arguments.length ? (T = typeof n == "function" ? n : _(+n), i) : T;
74
+ }, i.endAngle = function(n) {
75
+ return arguments.length ? (d = typeof n == "function" ? n : _(+n), i) : d;
76
+ }, i.padAngle = function(n) {
77
+ return arguments.length ? (b = typeof n == "function" ? n : _(+n), i) : b;
78
+ }, i.context = function(n) {
79
+ return arguments.length ? (a = n ?? null, i) : a;
80
+ }, i;
81
+ }
82
+ export {
83
+ Tn as v
84
+ };
@@ -1,10 +1,10 @@
1
- import { c as fe, a_ as ie, h as q, i as me, l as L, z as _e, ai as ke, o as Ee } from "./index-CVS7cBlb.js";
2
- import { a as De } from "./clone-BSWoNj0I-CW2QP79u.js";
3
- import { h as we, u as ve, d as Ne, g as $e, o as ge, f as Te } from "./edges-d417c7a0-D7e9Y4V--DVOSTCB5.js";
4
- import { Y as Oe } from "./graph-Ch18bQn5-BLEKw6WT.js";
5
- import { h as Ie } from "./ordinal-MUacOSdK-B1MUT0BL.js";
6
- import { t as Ae } from "./channel-BX3TjCqa-Cdtt6hB1.js";
7
- import { r as Ce } from "./Tableau10-GLA_9iAD-BMurskAd.js";
1
+ import { c as ge, a$ as ie, h as q, i as me, l as L, A as _e, aj as ke, j as Ee, o as De } from "./index-Dz46e5bv.js";
2
+ import { a as we } from "./clone-Bz5840kP-D3Uvm_gp.js";
3
+ import { h as ve, u as Ne, d as $e, g as Te, o as de, f as Oe } from "./edges-066a5561-ByMuMaff-ipHdGCa_.js";
4
+ import { Y as Ie } from "./graph-BN58fiEq-CyCz6HB3.js";
5
+ import { h as Ae } from "./ordinal-DfAQgscy-BEJTu10r.js";
6
+ import { t as Ce } from "./channel-BkEGjNbZ-CzBFLYvk.js";
7
+ import { r as ze } from "./Tableau10-D7jGxypv-D3w6FIcJ.js";
8
8
  var le, ae, ee = function() {
9
9
  var e = function(m, i, r, o) {
10
10
  for (r = r || {}, o = m.length; o--; r[m[o]] = i)
@@ -14,20 +14,20 @@ var le, ae, ee = function() {
14
14
  trace: function() {
15
15
  },
16
16
  yy: {},
17
- symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, seperator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 },
17
+ symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 },
18
18
  terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
19
19
  productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
20
20
  performAction: function(m, i, r, o, p, t, u) {
21
21
  var s = t.length - 1;
22
22
  switch (p) {
23
23
  case 4:
24
- o.getLogger().debug("Rule: seperator (NL) ");
24
+ o.getLogger().debug("Rule: separator (NL) ");
25
25
  break;
26
26
  case 5:
27
- o.getLogger().debug("Rule: seperator (Space) ");
27
+ o.getLogger().debug("Rule: separator (Space) ");
28
28
  break;
29
29
  case 6:
30
- o.getLogger().debug("Rule: seperator (EOF) ");
30
+ o.getLogger().debug("Rule: separator (EOF) ");
31
31
  break;
32
32
  case 7:
33
33
  o.getLogger().debug("Rule: hierarchy: ", t[s - 1]), o.setHierarchy(t[s - 1]);
@@ -87,10 +87,10 @@ var le, ae, ee = function() {
87
87
  this.$ = { id: C, type: "composite", label: "", children: t[s - 1] };
88
88
  break;
89
89
  case 29:
90
- o.getLogger().debug("Rule: node (NODE_ID seperator): ", t[s]), this.$ = { id: t[s] };
90
+ o.getLogger().debug("Rule: node (NODE_ID separator): ", t[s]), this.$ = { id: t[s] };
91
91
  break;
92
92
  case 30:
93
- o.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel seperator): ", t[s - 1], t[s]), this.$ = { id: t[s - 1], label: t[s].label, typeStr: t[s].typeStr, directions: t[s].directions };
93
+ o.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[s - 1], t[s]), this.$ = { id: t[s - 1], label: t[s].label, typeStr: t[s].typeStr, directions: t[s].directions };
94
94
  break;
95
95
  case 31:
96
96
  o.getLogger().debug("Rule: dirList: ", t[s]), this.$ = [t[s]];
@@ -133,14 +133,14 @@ var le, ae, ee = function() {
133
133
  E.setInput(m, Y.yy), Y.yy.lexer = E, Y.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
134
134
  var V = E.yylloc;
135
135
  t.push(V);
136
- var Le = E.options && E.options.ranges;
136
+ var Se = E.options && E.options.ranges;
137
137
  typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
138
- function Se() {
138
+ function fe() {
139
139
  var R;
140
140
  return R = o.pop() || E.lex() || C, typeof R != "number" && (R instanceof Array && (o = R, R = o.pop()), R = i.symbols_[R] || R), R;
141
141
  }
142
142
  for (var N, P, I, Z, K = {}, j, z, oe, H; ; ) {
143
- if (P = r[r.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((N === null || typeof N > "u") && (N = Se()), I = u[P] && u[P][N]), typeof I > "u" || !I.length || !I[0]) {
143
+ if (P = r[r.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((N === null || typeof N > "u") && (N = fe()), I = u[P] && u[P][N]), typeof I > "u" || !I.length || !I[0]) {
144
144
  var Q = "";
145
145
  H = [];
146
146
  for (j in u[P])
@@ -167,7 +167,7 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : Q = "
167
167
  last_line: t[t.length - 1].last_line,
168
168
  first_column: t[t.length - (z || 1)].first_column,
169
169
  last_column: t[t.length - 1].last_column
170
- }, Le && (K._$.range = [
170
+ }, Se && (K._$.range = [
171
171
  t[t.length - (z || 1)].range[0],
172
172
  t[t.length - 1].range[1]
173
173
  ]), Z = this.performAction.apply(K, [
@@ -602,25 +602,25 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : Q = "
602
602
  return w.prototype = D, D.Parser = w, new w();
603
603
  }();
604
604
  ee.parser = ee;
605
- const ze = ee;
605
+ const Re = ee;
606
606
  let $ = {}, se = [], M = {};
607
- const ce = "color", he = "fill", Re = "bgFill", de = ",";
607
+ const ce = "color", he = "fill", Be = "bgFill", ye = ",", Fe = ge();
608
608
  let W = {};
609
- const Be = function(e, l = "") {
609
+ const Ye = (e) => Ee.sanitizeText(e, Fe), Pe = function(e, l = "") {
610
610
  W[e] === void 0 && (W[e] = { id: e, styles: [], textStyles: [] });
611
611
  const h = W[e];
612
- l != null && l.split(de).forEach((c) => {
612
+ l != null && l.split(ye).forEach((c) => {
613
613
  const n = c.replace(/([^;]*);/, "$1").trim();
614
614
  if (c.match(ce)) {
615
- const g = n.replace(he, Re).replace(ce, he);
615
+ const g = n.replace(he, Be).replace(ce, he);
616
616
  h.textStyles.push(g);
617
617
  }
618
618
  h.styles.push(n);
619
619
  });
620
- }, Fe = function(e, l = "") {
620
+ }, Ke = function(e, l = "") {
621
621
  const h = $[e];
622
- l != null && (h.styles = l.split(de));
623
- }, Ye = function(e, l) {
622
+ l != null && (h.styles = l.split(ye));
623
+ }, Xe = function(e, l) {
624
624
  e.split(",").forEach(function(h) {
625
625
  let c = $[h];
626
626
  if (c === void 0) {
@@ -629,19 +629,19 @@ const Be = function(e, l = "") {
629
629
  }
630
630
  c.classes || (c.classes = []), c.classes.push(l);
631
631
  });
632
- }, ye = (e, l) => {
632
+ }, pe = (e, l) => {
633
633
  const h = e.flat(), c = [];
634
634
  for (const n of h) {
635
- if (n.type === "classDef") {
636
- Be(n.id, n.css);
635
+ if (n.label && (n.label = Ye(n.label)), n.type === "classDef") {
636
+ Pe(n.id, n.css);
637
637
  continue;
638
638
  }
639
639
  if (n.type === "applyClass") {
640
- Ye(n.id, (n == null ? void 0 : n.styleClass) || "");
640
+ Xe(n.id, (n == null ? void 0 : n.styleClass) || "");
641
641
  continue;
642
642
  }
643
643
  if (n.type === "applyStyles") {
644
- n != null && n.stylesStr && Fe(n.id, n == null ? void 0 : n.stylesStr);
644
+ n != null && n.stylesStr && Ke(n.id, n == null ? void 0 : n.stylesStr);
645
645
  continue;
646
646
  }
647
647
  if (n.type === "column-setting")
@@ -651,23 +651,22 @@ const Be = function(e, l = "") {
651
651
  else {
652
652
  n.label || (n.type === "composite" ? n.label = "" : n.label = n.id);
653
653
  const g = !$[n.id];
654
- if (g ? $[n.id] = n : (n.type !== "na" && ($[n.id].type = n.type), n.label !== n.id && ($[n.id].label = n.label)), n.children && ye(n.children, n), n.type === "space") {
654
+ if (g ? $[n.id] = n : (n.type !== "na" && ($[n.id].type = n.type), n.label !== n.id && ($[n.id].label = n.label)), n.children && pe(n.children, n), n.type === "space") {
655
655
  const a = n.width || 1;
656
656
  for (let y = 0; y < a; y++) {
657
- const b = De(n);
657
+ const b = we(n);
658
658
  b.id = b.id + "-" + y, $[b.id] = b, c.push(b);
659
659
  }
660
- } else
661
- g && c.push(n);
660
+ } else g && c.push(n);
662
661
  }
663
662
  }
664
663
  l.children = c;
665
664
  };
666
665
  let re = [], U = { id: "root", type: "composite", children: [], columns: -1 };
667
- const Pe = () => {
666
+ const Me = () => {
668
667
  L.debug("Clear called"), _e(), U = { id: "root", type: "composite", children: [], columns: -1 }, $ = { root: U }, re = [], W = {}, se = [], M = {};
669
668
  };
670
- function Ke(e) {
669
+ function We(e) {
671
670
  switch (L.debug("typeStr2Type", e), e) {
672
671
  case "[]":
673
672
  return "square";
@@ -703,7 +702,7 @@ function Ke(e) {
703
702
  return "na";
704
703
  }
705
704
  }
706
- function Xe(e) {
705
+ function Ue(e) {
707
706
  switch (L.debug("typeStr2Type", e), e) {
708
707
  case "==":
709
708
  return "thick";
@@ -711,7 +710,7 @@ function Xe(e) {
711
710
  return "normal";
712
711
  }
713
712
  }
714
- function Me(e) {
713
+ function je(e) {
715
714
  switch (e.trim()) {
716
715
  case "--x":
717
716
  return "arrow_cross";
@@ -722,35 +721,35 @@ function Me(e) {
722
721
  }
723
722
  }
724
723
  let ue = 0;
725
- const We = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ue), Ue = (e) => {
726
- U.children = e, ye(e, U), re = U.children;
727
- }, je = (e) => {
724
+ const He = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ue), qe = (e) => {
725
+ U.children = e, pe(e, U), re = U.children;
726
+ }, Ge = (e) => {
728
727
  const l = $[e];
729
728
  return l ? l.columns ? l.columns : l.children ? l.children.length : -1 : -1;
730
- }, He = () => [...Object.values($)], qe = () => re || [], Ge = () => se, Je = (e) => $[e], Ve = (e) => {
729
+ }, Je = () => [...Object.values($)], Ve = () => re || [], Ze = () => se, Qe = (e) => $[e], et = (e) => {
731
730
  $[e.id] = e;
732
- }, Ze = () => console, Qe = function() {
731
+ }, tt = () => console, it = function() {
733
732
  return W;
734
- }, et = {
733
+ }, st = {
735
734
  getConfig: () => ie().block,
736
- typeStr2Type: Ke,
737
- edgeTypeStr2Type: Xe,
738
- edgeStrToEdgeData: Me,
739
- getLogger: Ze,
740
- getBlocksFlat: He,
741
- getBlocks: qe,
742
- getEdges: Ge,
743
- setHierarchy: Ue,
744
- getBlock: Je,
745
- setBlock: Ve,
746
- getColumns: je,
747
- getClasses: Qe,
748
- clear: Pe,
749
- generateId: We
750
- }, tt = et, G = (e, l) => {
751
- const h = Ae, c = h(e, "r"), n = h(e, "g"), g = h(e, "b");
735
+ typeStr2Type: We,
736
+ edgeTypeStr2Type: Ue,
737
+ edgeStrToEdgeData: je,
738
+ getLogger: tt,
739
+ getBlocksFlat: Je,
740
+ getBlocks: Ve,
741
+ getEdges: Ze,
742
+ setHierarchy: qe,
743
+ getBlock: Qe,
744
+ setBlock: et,
745
+ getColumns: Ge,
746
+ getClasses: it,
747
+ clear: Me,
748
+ generateId: He
749
+ }, rt = st, G = (e, l) => {
750
+ const h = Ce, c = h(e, "r"), n = h(e, "g"), g = h(e, "b");
752
751
  return ke(c, n, g, l);
753
- }, it = (e) => `.label {
752
+ }, nt = (e) => `.label {
754
753
  font-family: ${e.fontFamily};
755
754
  color: ${e.nodeTextColor || e.textColor};
756
755
  }
@@ -862,8 +861,8 @@ const We = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
862
861
  font-size: 18px;
863
862
  fill: ${e.textColor};
864
863
  }
865
- `, st = it;
866
- function pe(e, l, h = !1) {
864
+ `, ot = nt;
865
+ function be(e, l, h = !1) {
867
866
  var c, n, g;
868
867
  const a = e;
869
868
  let y = "default";
@@ -930,7 +929,7 @@ function pe(e, l, h = !1) {
930
929
  default:
931
930
  d = "rect";
932
931
  }
933
- const _ = Ee((a == null ? void 0 : a.styles) || []), T = a.label, k = a.size || { width: 0, height: 0, x: 0, y: 0 };
932
+ const _ = De((a == null ? void 0 : a.styles) || []), T = a.label, k = a.size || { width: 0, height: 0, x: 0, y: 0 };
934
933
  return {
935
934
  labelStyle: _.labelStyle,
936
935
  shape: d,
@@ -951,29 +950,29 @@ function pe(e, l, h = !1) {
951
950
  padding: x ?? (((g = (n = ie()) == null ? void 0 : n.block) == null ? void 0 : g.padding) || 0)
952
951
  };
953
952
  }
954
- async function rt(e, l, h) {
955
- const c = pe(l, h, !1);
953
+ async function lt(e, l, h) {
954
+ const c = be(l, h, !1);
956
955
  if (c.type === "group")
957
956
  return;
958
- const n = await ge(e, c), g = n.node().getBBox(), a = h.getBlock(c.id);
957
+ const n = await de(e, c), g = n.node().getBBox(), a = h.getBlock(c.id);
959
958
  a.size = { width: g.width, height: g.height, x: 0, y: 0, node: n }, h.setBlock(a), n.remove();
960
959
  }
961
- async function nt(e, l, h) {
962
- const c = pe(l, h, !0);
963
- h.getBlock(c.id).type !== "space" && (await ge(e, c), l.intersect = c == null ? void 0 : c.intersect, Te(c));
960
+ async function at(e, l, h) {
961
+ const c = be(l, h, !0);
962
+ h.getBlock(c.id).type !== "space" && (await de(e, c), l.intersect = c == null ? void 0 : c.intersect, Oe(c));
964
963
  }
965
964
  async function ne(e, l, h, c) {
966
965
  for (const n of l)
967
966
  await c(e, n, h), n.children && await ne(e, n.children, h, c);
968
967
  }
969
- async function ot(e, l, h) {
970
- await ne(e, l, h, rt);
968
+ async function ct(e, l, h) {
969
+ await ne(e, l, h, lt);
971
970
  }
972
- async function lt(e, l, h) {
973
- await ne(e, l, h, nt);
971
+ async function ht(e, l, h) {
972
+ await ne(e, l, h, at);
974
973
  }
975
- async function at(e, l, h, c, n) {
976
- const g = new Oe({
974
+ async function ut(e, l, h, c, n) {
975
+ const g = new Ie({
977
976
  multigraph: !0,
978
977
  compound: !0
979
978
  });
@@ -999,7 +998,7 @@ async function at(e, l, h, c, n) {
999
998
  { x: d.x + (x.x - d.x) / 2, y: d.y + (x.y - d.y) / 2 },
1000
999
  { x: x.x, y: x.y }
1001
1000
  ];
1002
- await ve(
1001
+ await Ne(
1003
1002
  e,
1004
1003
  { v: a.start, w: a.end, name: a.id },
1005
1004
  {
@@ -1013,7 +1012,7 @@ async function at(e, l, h, c, n) {
1013
1012
  "block",
1014
1013
  g,
1015
1014
  n
1016
- ), a.label && (await Ne(e, {
1015
+ ), a.label && (await $e(e, {
1017
1016
  ...a,
1018
1017
  label: a.label,
1019
1018
  labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
@@ -1021,7 +1020,7 @@ async function at(e, l, h, c, n) {
1021
1020
  arrowTypeStart: a.arrowTypeStart,
1022
1021
  points: _,
1023
1022
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
1024
- }), await $e(
1023
+ }), await Te(
1025
1024
  { ...a, x: _[1].x, y: _[1].y },
1026
1025
  {
1027
1026
  originalPath: _
@@ -1030,8 +1029,8 @@ async function at(e, l, h, c, n) {
1030
1029
  }
1031
1030
  }
1032
1031
  }
1033
- const f = ((ae = (le = fe()) == null ? void 0 : le.block) == null ? void 0 : ae.padding) || 8;
1034
- function ct(e, l) {
1032
+ const f = ((ae = (le = ge()) == null ? void 0 : le.block) == null ? void 0 : ae.padding) || 8;
1033
+ function gt(e, l) {
1035
1034
  if (e === 0 || !Number.isInteger(e))
1036
1035
  throw new Error("Columns must be an integer !== 0.");
1037
1036
  if (l < 0 || !Number.isInteger(l))
@@ -1043,7 +1042,7 @@ function ct(e, l) {
1043
1042
  const h = l % e, c = Math.floor(l / e);
1044
1043
  return { px: h, py: c };
1045
1044
  }
1046
- const ht = (e) => {
1045
+ const dt = (e) => {
1047
1046
  let l = 0, h = 0;
1048
1047
  for (const c of e.children) {
1049
1048
  const { width: n, height: g, x: a, y } = c.size || { width: 0, height: 0, x: 0, y: 0 };
@@ -1083,7 +1082,7 @@ function te(e, l, h = 0, c = 0) {
1083
1082
  if (((a = e.children) == null ? void 0 : a.length) > 0) {
1084
1083
  for (const t of e.children)
1085
1084
  te(t, l);
1086
- const A = ht(e);
1085
+ const A = dt(e);
1087
1086
  S = A.width, D = A.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", S, D);
1088
1087
  for (const t of e.children)
1089
1088
  t.size && (L.debug(
@@ -1106,7 +1105,7 @@ function te(e, l, h = 0, c = 0) {
1106
1105
  `Detected to small siebling: abc95 ${e.id} sieblingWidth ${h} sieblingHeight ${c} width ${o}`
1107
1106
  ), o = h, p = c;
1108
1107
  const t = (h - i * f - f) / i, u = (c - r * f - f) / r;
1109
- L.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", S), L.debug("Size indata abc88", e.id, "childHeight", u, "maxHeight", D), L.debug("Size indata abc88 xSize", i, "paddiong", f);
1108
+ L.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", S), L.debug("Size indata abc88", e.id, "childHeight", u, "maxHeight", D), L.debug("Size indata abc88 xSize", i, "padding", f);
1110
1109
  for (const s of e.children)
1111
1110
  s.size && (s.size.width = t, s.size.height = u, s.size.x = 0, s.size.y = 0);
1112
1111
  }
@@ -1138,7 +1137,7 @@ function te(e, l, h = 0, c = 0) {
1138
1137
  (v = e == null ? void 0 : e.size) == null ? void 0 : v.height
1139
1138
  );
1140
1139
  }
1141
- function be(e, l) {
1140
+ function xe(e, l) {
1142
1141
  var h, c, n, g, a, y, b, d, x, _, T, k, v, S, D, A, w;
1143
1142
  L.debug(
1144
1143
  `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(h = e == null ? void 0 : e.size) == null ? void 0 : h.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(n = e == null ? void 0 : e.size) == null ? void 0 : n.width}`
@@ -1155,7 +1154,7 @@ function be(e, l) {
1155
1154
  const s = e;
1156
1155
  if (!u.size)
1157
1156
  continue;
1158
- const { width: O, height: B } = u.size, { px: X, py: C } = ct(m, o);
1157
+ const { width: O, height: B } = u.size, { px: X, py: C } = gt(m, o);
1159
1158
  if (C != t && (t = C, p = (_ = e == null ? void 0 : e.size) != null && _.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((k = e == null ? void 0 : e.size) == null ? void 0 : k.width) / 2 || 0) : -f, L.debug("New row in layout for block", e.id, " and child ", u.id, t)), L.debug(
1160
1159
  `abc89 layout blocks (child) id: ${u.id} Pos: ${o} (px, py) ${X},${C} (${(v = s == null ? void 0 : s.size) == null ? void 0 : v.x},${(S = s == null ? void 0 : s.size) == null ? void 0 : S.y}) parent: ${s.id} width: ${O}${f}`
1161
1160
  ), s.size) {
@@ -1166,59 +1165,59 @@ function be(e, l) {
1166
1165
  `abc88 layout blocks (calc) px, pyid:${u.id}startingPosX${p}${f}${F}=>x:${u.size.x}y:${u.size.y}${u.widthInColumns}(width * (child?.w || 1)) / 2${O * ((u == null ? void 0 : u.widthInColumns) || 1) / 2}`
1167
1166
  );
1168
1167
  }
1169
- u.children && be(u), o += (u == null ? void 0 : u.widthInColumns) || 1, L.debug("abc88 columnsPos", u, o);
1168
+ u.children && xe(u), o += (u == null ? void 0 : u.widthInColumns) || 1, L.debug("abc88 columnsPos", u, o);
1170
1169
  }
1171
1170
  }
1172
1171
  L.debug(
1173
1172
  `layout blocks (<==layoutBlocks) ${e.id} x: ${(D = e == null ? void 0 : e.size) == null ? void 0 : D.x} y: ${(A = e == null ? void 0 : e.size) == null ? void 0 : A.y} width: ${(w = e == null ? void 0 : e.size) == null ? void 0 : w.width}`
1174
1173
  );
1175
1174
  }
1176
- function xe(e, { minX: l, minY: h, maxX: c, maxY: n } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1175
+ function Le(e, { minX: l, minY: h, maxX: c, maxY: n } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1177
1176
  if (e.size && e.id !== "root") {
1178
1177
  const { x: g, y: a, width: y, height: b } = e.size;
1179
1178
  g - y / 2 < l && (l = g - y / 2), a - b / 2 < h && (h = a - b / 2), g + y / 2 > c && (c = g + y / 2), a + b / 2 > n && (n = a + b / 2);
1180
1179
  }
1181
1180
  if (e.children)
1182
1181
  for (const g of e.children)
1183
- ({ minX: l, minY: h, maxX: c, maxY: n } = xe(g, { minX: l, minY: h, maxX: c, maxY: n }));
1182
+ ({ minX: l, minY: h, maxX: c, maxY: n } = Le(g, { minX: l, minY: h, maxX: c, maxY: n }));
1184
1183
  return { minX: l, minY: h, maxX: c, maxY: n };
1185
1184
  }
1186
- function ut(e) {
1185
+ function yt(e) {
1187
1186
  const l = e.getBlock("root");
1188
1187
  if (!l)
1189
1188
  return;
1190
- te(l, e, 0, 0), be(l), L.debug("getBlocks", JSON.stringify(l, null, 2));
1191
- const { minX: h, minY: c, maxX: n, maxY: g } = xe(l), a = g - c, y = n - h;
1189
+ te(l, e, 0, 0), xe(l), L.debug("getBlocks", JSON.stringify(l, null, 2));
1190
+ const { minX: h, minY: c, maxX: n, maxY: g } = Le(l), a = g - c, y = n - h;
1192
1191
  return { x: h, y: c, width: y, height: a };
1193
1192
  }
1194
- const gt = function(e, l) {
1193
+ const pt = function(e, l) {
1195
1194
  return l.db.getClasses();
1196
- }, dt = async function(e, l, h, c) {
1195
+ }, bt = async function(e, l, h, c) {
1197
1196
  const { securityLevel: n, block: g } = ie(), a = c.db;
1198
1197
  let y;
1199
1198
  n === "sandbox" && (y = q("#i" + l));
1200
1199
  const b = n === "sandbox" ? q(y.nodes()[0].contentDocument.body) : q("body"), d = n === "sandbox" ? b.select(`[id="${l}"]`) : q(`[id="${l}"]`);
1201
- we(d, ["point", "circle", "cross"], c.type, l);
1200
+ ve(d, ["point", "circle", "cross"], c.type, l);
1202
1201
  const x = a.getBlocks(), _ = a.getBlocksFlat(), T = a.getEdges(), k = d.insert("g").attr("class", "block");
1203
- await ot(k, x, a);
1204
- const v = ut(a);
1205
- if (await lt(k, x, a), await at(k, T, _, a, l), v) {
1202
+ await ct(k, x, a);
1203
+ const v = yt(a);
1204
+ if (await ht(k, x, a), await ut(k, T, _, a, l), v) {
1206
1205
  const S = v, D = Math.max(1, Math.round(0.125 * (S.width / S.height))), A = S.height + D + 10, w = S.width + 10, { useMaxWidth: m } = g;
1207
1206
  me(d, A, w, !!m), L.debug("Here Bounds", v, S), d.attr(
1208
1207
  "viewBox",
1209
1208
  `${S.x - 5} ${S.y - 5} ${S.width + 10} ${S.height + 10}`
1210
1209
  );
1211
1210
  }
1212
- Ie(Ce);
1213
- }, yt = {
1214
- draw: dt,
1215
- getClasses: gt
1216
- }, _t = {
1217
- parser: ze,
1218
- db: tt,
1219
- renderer: yt,
1220
- styles: st
1211
+ Ae(ze);
1212
+ }, xt = {
1213
+ draw: bt,
1214
+ getClasses: pt
1215
+ }, Dt = {
1216
+ parser: Re,
1217
+ db: rt,
1218
+ renderer: xt,
1219
+ styles: ot
1221
1220
  };
1222
1221
  export {
1223
- _t as diagram
1222
+ Dt as diagram
1224
1223
  };