@kong-ui-public/documentation 0.7.12 → 0.7.13

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 (42) hide show
  1. package/dist/{arc-DV7YacTO-DVGWcOIa.js → arc-CinmSIDH-xgjhF5JM.js} +30 -30
  2. package/dist/{blockDiagram-6b2b5046-BaoEJc6D-CbFemA8t.js → blockDiagram-6b2b5046-lWu5MHZ2-BV0fChjb.js} +5 -5
  3. package/dist/{c4Diagram-b947cdbb-BJYyVIoS-BnD4tZ65.js → c4Diagram-b947cdbb-_2ZSBCRj-DsVtFzGl.js} +2 -2
  4. package/dist/{channel-B0mMhQB--B3NEZrsV.js → channel-DxVjAaZy-CRrui-5B.js} +1 -1
  5. package/dist/{classDiagram-35230388-Dc1FeiVu-BrHMZTHk.js → classDiagram-35230388-C7cMop8F-DRMii3vX.js} +5 -5
  6. package/dist/{classDiagram-v2-412acd34-CCHNuq3s-BTsXrVwN.js → classDiagram-v2-412acd34-Sr_pGTUt-B5XidFft.js} +5 -5
  7. package/dist/{clone-DCouqj07-ZSCPZgkk.js → clone-BaxuDe_X-BxD7U_1o.js} +1 -1
  8. package/dist/{createText-423428c9-wIPueJaZ-QYfqwTeK.js → createText-423428c9-DSXJlj3p-27R-kZcE.js} +1 -1
  9. package/dist/documentation.es.js +2 -2
  10. package/dist/documentation.umd.js +122 -122
  11. package/dist/{edges-d417c7a0-D3EPioug-B0ZUyw4W.js → edges-d417c7a0-D20zX-94-Dhrfy1WO.js} +14 -14
  12. package/dist/{erDiagram-0ea73325-DY9v3vqj-Cv4ch-l7.js → erDiagram-0ea73325-p8FwyJvU-DVFt-LEM.js} +320 -314
  13. package/dist/{flowDb-d35e309a-DJwmSO92-DHgjwpWi.js → flowDb-d35e309a-Ca4FSAVM-DOsp0Vte.js} +1 -1
  14. package/dist/{flowDiagram-d949d7c1-BdlSpX05-BJqfqJGc.js → flowDiagram-d949d7c1-OwxKQJQE-CNj1eG9t.js} +6 -6
  15. package/dist/{flowDiagram-v2-49332944-CMx7p7a1-Cg2UPwM3.js → flowDiagram-v2-49332944-CmJFqFX3-Dmvt7Fvy.js} +5 -5
  16. package/dist/{flowchart-elk-definition-27cc417a-CQgAF7oO-BrMoY_Ps.js → flowchart-elk-definition-27cc417a-BK-QJI5S-C83-zjaL.js} +4 -4
  17. package/dist/{ganttDiagram-5c869e3b-CFdSz7-F-Db8KliM3.js → ganttDiagram-5c869e3b-DsJMAz4f-CiGlJW0L.js} +2 -2
  18. package/dist/{gitGraphDiagram-b9d81de9-DLrslp_g-sAdPkImy.js → gitGraphDiagram-b9d81de9-CgW7vwTs-B8681ggb.js} +31 -31
  19. package/dist/{graph-DDKwjgNV-DGwur7GL.js → graph-_GyIwSxm-SJ7bw9Y3.js} +2 -2
  20. package/dist/{index-8fae9850-CXAONDQ5-DIC7bulh.js → index-8fae9850-CyqCz_ca-KiPjjzFu.js} +6 -6
  21. package/dist/{index-CVg6N1HA.js → index-BcjpWjSF.js} +1188 -1171
  22. package/dist/{infoDiagram-db7b18fc-uyeDrELi-CQEels-w.js → infoDiagram-db7b18fc-0P3OTShw-_GrSz1Bt.js} +7 -7
  23. package/dist/{journeyDiagram-d5636530-BQCHCJnM-DXeXY7IN.js → journeyDiagram-d5636530-DaBgA-aj-BpdCViqB.js} +3 -3
  24. package/dist/{layout-BgNLyoWW-B38Qk5aL.js → layout-Bk7AdqJz-BBmLLAeS.js} +2 -2
  25. package/dist/{line-m2yY3Y1V-i1rfzc4F.js → line-B7Dd0TiT-SkA5nzKI.js} +1 -1
  26. package/dist/{linear-BliVwsum-BWy6R8gt.js → linear-bMW21eJn-nLz6oKS7.js} +39 -39
  27. package/dist/{mindmap-definition-377f8f1f-B0xusmpj-EeD6A84r.js → mindmap-definition-377f8f1f-ufN3tUA6-CN-aI3_R.js} +291 -291
  28. package/dist/{pieDiagram-b0208e96-DkMh39v_-Bm0XHeuS.js → pieDiagram-b0208e96-DrO8Y6_Q-Bj7x7QvQ.js} +18 -18
  29. package/dist/{quadrantDiagram-0332be45-DLRQ0XFP-llf3FZhI.js → quadrantDiagram-0332be45-DIp67xs6-BFfVz4eq.js} +2 -2
  30. package/dist/{requirementDiagram-bf7890df-Dm79SiEu-D5lSp_QK.js → requirementDiagram-bf7890df-BSzVPfZD-DviSmVdF.js} +30 -30
  31. package/dist/{sankeyDiagram-0acdec17-DdsU0AU3-B8f1v3qQ.js → sankeyDiagram-0acdec17-prPA1qqX-CEt_LwwN.js} +1 -1
  32. package/dist/{sequenceDiagram-c18d009d-CuFa0QMQ-BQxs5n_9.js → sequenceDiagram-c18d009d-BAWs2OYL-D76fPCF4.js} +152 -152
  33. package/dist/{stateDiagram-43596fc0-OHGmKLJG-Sqgwwx1n.js → stateDiagram-43596fc0-DXEJ0R4o-uUCWdrcA.js} +5 -5
  34. package/dist/{stateDiagram-v2-2ead4f9c-tj0rBZDA-Ck6S1O-i.js → stateDiagram-v2-2ead4f9c-DnzyCUgr-BdP2xqfq.js} +5 -5
  35. package/dist/style.css +1 -1
  36. package/dist/{styles-6860f46c-CRDU4Xm3-B2krgtM3.js → styles-6860f46c-DzVPBoYT-DIdoKSW2.js} +11 -11
  37. package/dist/{styles-7383a064-367fcP_o-CxGai4fu.js → styles-7383a064-BL-LjhLx-DyayPgnv.js} +4 -4
  38. package/dist/{styles-b2c874b6-B9uj3N1G-CDrW4aqK.js → styles-b2c874b6-BCYk3bdu-CuPAsrKI.js} +1 -1
  39. package/dist/{svgDrawCommon-0ee1b4e9-BMdgToFS-w2MBLSny.js → svgDrawCommon-0ee1b4e9-CUz2naLo-DOD8u-To.js} +1 -1
  40. package/dist/{timeline-definition-d977decf-BsiOuCJk-CM7AWcsA.js → timeline-definition-d977decf-BSETSy08-dDvvimKr.js} +2 -2
  41. package/dist/{xychartDiagram-e50adddc-C3PuUh_C-D8BAe0XS.js → xychartDiagram-e50adddc-C82b8cby-Z76__7nm.js} +38 -38
  42. package/package.json +5 -5
@@ -1,63 +1,69 @@
1
- import { c as Y, s as _t, g as ft, b as mt, a as Et, v as gt, x as bt, aq as kt, l as K, z as Ot, h as tt, y as Rt, i as Nt, an as xt, ar as Tt } from "./index-CVg6N1HA.js";
2
- import { Y as At } from "./graph-DDKwjgNV-DGwur7GL.js";
3
- import { O as Mt } from "./layout-BgNLyoWW-B38Qk5aL.js";
4
- import { P as Dt } from "./line-m2yY3Y1V-i1rfzc4F.js";
5
- const It = /^(?:[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;
6
- function vt(t) {
7
- return typeof t == "string" && It.test(t);
1
+ import { c as Z, s as ft, g as mt, b as Et, a as gt, v as bt, x as kt, l as Q, z as Ot, h as et, y as Rt, i as Nt, an as xt, aq as Tt } from "./index-BcjpWjSF.js";
2
+ import { Y as At } from "./graph-_GyIwSxm-SJ7bw9Y3.js";
3
+ import { O as Mt } from "./layout-Bk7AdqJz-BBmLLAeS.js";
4
+ import { P as It } from "./line-B7Dd0TiT-SkA5nzKI.js";
5
+ const vt = /^(?:[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;
6
+ function St(t) {
7
+ return typeof t == "string" && vt.test(t);
8
8
  }
9
- function $t(t) {
10
- if (!vt(t))
11
- throw TypeError("Invalid UUID");
12
- let r;
13
- const e = new Uint8Array(16);
14
- return e[0] = (r = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = r >>> 16 & 255, e[2] = r >>> 8 & 255, e[3] = r & 255, e[4] = (r = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = r & 255, e[6] = (r = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = r & 255, e[8] = (r = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = r & 255, e[10] = (r = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = r / 4294967296 & 255, e[12] = r >>> 24 & 255, e[13] = r >>> 16 & 255, e[14] = r >>> 8 & 255, e[15] = r & 255, e;
9
+ const T = [];
10
+ for (let t = 0; t < 256; ++t)
11
+ T.push((t + 256).toString(16).slice(1));
12
+ function $t(t, e = 0) {
13
+ return T[t[e + 0]] + T[t[e + 1]] + T[t[e + 2]] + T[t[e + 3]] + "-" + T[t[e + 4]] + T[t[e + 5]] + "-" + T[t[e + 6]] + T[t[e + 7]] + "-" + T[t[e + 8]] + T[t[e + 9]] + "-" + T[t[e + 10]] + T[t[e + 11]] + T[t[e + 12]] + T[t[e + 13]] + T[t[e + 14]] + T[t[e + 15]];
15
14
  }
16
15
  function Lt(t) {
16
+ if (!St(t))
17
+ throw TypeError("Invalid UUID");
18
+ let e;
19
+ const r = new Uint8Array(16);
20
+ 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;
21
+ }
22
+ function Dt(t) {
17
23
  t = unescape(encodeURIComponent(t));
18
- const r = [];
19
- for (let e = 0; e < t.length; ++e)
20
- r.push(t.charCodeAt(e));
21
- return r;
24
+ const e = [];
25
+ for (let r = 0; r < t.length; ++r)
26
+ e.push(t.charCodeAt(r));
27
+ return e;
22
28
  }
23
- const wt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", St = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
24
- function Bt(t, r, e) {
29
+ const wt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Bt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
30
+ function Ct(t, e, r) {
25
31
  function u(l, p, h, c) {
26
32
  var d;
27
- if (typeof l == "string" && (l = Lt(l)), typeof p == "string" && (p = $t(p)), ((d = p) === null || d === void 0 ? void 0 : d.length) !== 16)
33
+ if (typeof l == "string" && (l = Dt(l)), typeof p == "string" && (p = Lt(p)), ((d = p) === null || d === void 0 ? void 0 : d.length) !== 16)
28
34
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
29
35
  let f = new Uint8Array(16 + l.length);
30
- if (f.set(p), f.set(l, p.length), f = e(f), f[6] = f[6] & 15 | r, f[8] = f[8] & 63 | 128, h) {
36
+ if (f.set(p), f.set(l, p.length), f = r(f), f[6] = f[6] & 15 | e, f[8] = f[8] & 63 | 128, h) {
31
37
  c = c || 0;
32
38
  for (let m = 0; m < 16; ++m)
33
39
  h[c + m] = f[m];
34
40
  return h;
35
41
  }
36
- return kt(f);
42
+ return $t(f);
37
43
  }
38
44
  try {
39
45
  u.name = t;
40
46
  } catch {
41
47
  }
42
- return u.DNS = wt, u.URL = St, u;
48
+ return u.DNS = wt, u.URL = Bt, u;
43
49
  }
44
- function Pt(t, r, e, u) {
50
+ function Yt(t, e, r, u) {
45
51
  switch (t) {
46
52
  case 0:
47
- return r & e ^ ~r & u;
53
+ return e & r ^ ~e & u;
48
54
  case 1:
49
- return r ^ e ^ u;
55
+ return e ^ r ^ u;
50
56
  case 2:
51
- return r & e ^ r & u ^ e & u;
57
+ return e & r ^ e & u ^ r & u;
52
58
  case 3:
53
- return r ^ e ^ u;
59
+ return e ^ r ^ u;
54
60
  }
55
61
  }
56
- function et(t, r) {
57
- return t << r | t >>> 32 - r;
62
+ function rt(t, e) {
63
+ return t << e | t >>> 32 - e;
58
64
  }
59
- function Yt(t) {
60
- const r = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
65
+ function Zt(t) {
66
+ const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
61
67
  if (typeof t == "string") {
62
68
  const h = unescape(encodeURIComponent(t));
63
69
  t = [];
@@ -79,31 +85,31 @@ function Yt(t) {
79
85
  for (let _ = 0; _ < 16; ++_)
80
86
  c[_] = p[h][_];
81
87
  for (let _ = 16; _ < 80; ++_)
82
- c[_] = et(c[_ - 3] ^ c[_ - 8] ^ c[_ - 14] ^ c[_ - 16], 1);
83
- let d = e[0], f = e[1], m = e[2], E = e[3], g = e[4];
88
+ c[_] = rt(c[_ - 3] ^ c[_ - 8] ^ c[_ - 14] ^ c[_ - 16], 1);
89
+ let d = r[0], f = r[1], m = r[2], E = r[3], g = r[4];
84
90
  for (let _ = 0; _ < 80; ++_) {
85
- const D = Math.floor(_ / 20), w = et(d, 5) + Pt(D, f, m, E) + g + r[D] + c[_] >>> 0;
86
- g = E, E = m, m = et(f, 30) >>> 0, f = d, d = w;
91
+ const v = Math.floor(_ / 20), w = rt(d, 5) + Yt(v, f, m, E) + g + e[v] + c[_] >>> 0;
92
+ g = E, E = m, m = rt(f, 30) >>> 0, f = d, d = w;
87
93
  }
88
- e[0] = e[0] + d >>> 0, e[1] = e[1] + f >>> 0, e[2] = e[2] + m >>> 0, e[3] = e[3] + E >>> 0, e[4] = e[4] + g >>> 0;
94
+ r[0] = r[0] + d >>> 0, r[1] = r[1] + f >>> 0, r[2] = r[2] + m >>> 0, r[3] = r[3] + E >>> 0, r[4] = r[4] + g >>> 0;
89
95
  }
90
- return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
96
+ 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];
91
97
  }
92
- const Zt = Bt("v5", 80, Yt);
93
- var rt = function() {
94
- var t = function(T, a, o, n) {
95
- for (o = o || {}, n = T.length; n--; o[T[n]] = a)
98
+ const Pt = Ct("v5", 80, Zt);
99
+ var at = function() {
100
+ var t = function(A, i, o, n) {
101
+ for (o = o || {}, n = A.length; n--; o[A[n]] = i)
96
102
  ;
97
103
  return o;
98
- }, r = [6, 8, 10, 20, 22, 24, 26, 27, 28], e = [1, 10], u = [1, 11], l = [1, 12], p = [1, 13], h = [1, 14], c = [1, 15], d = [1, 21], f = [1, 22], m = [1, 23], E = [1, 24], g = [1, 25], _ = [6, 8, 10, 13, 15, 18, 19, 20, 22, 24, 26, 27, 28, 41, 42, 43, 44, 45], D = [1, 34], w = [27, 28, 46, 47], Z = [41, 42, 43, 44, 45], C = [17, 34], S = [1, 54], N = [1, 53], A = [17, 34, 36, 38], k = {
104
+ }, e = [6, 8, 10, 20, 22, 24, 26, 27, 28], r = [1, 10], u = [1, 11], l = [1, 12], p = [1, 13], h = [1, 14], c = [1, 15], d = [1, 21], f = [1, 22], m = [1, 23], E = [1, 24], g = [1, 25], _ = [6, 8, 10, 13, 15, 18, 19, 20, 22, 24, 26, 27, 28, 41, 42, 43, 44, 45], v = [1, 34], w = [27, 28, 46, 47], P = [41, 42, 43, 44, 45], F = [17, 34], B = [1, 54], N = [1, 53], M = [17, 34, 36, 38], k = {
99
105
  trace: function() {
100
106
  },
101
107
  yy: {},
102
108
  symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, ":": 13, role: 14, BLOCK_START: 15, attributes: 16, BLOCK_STOP: 17, SQS: 18, SQE: 19, title: 20, title_value: 21, acc_title: 22, acc_title_value: 23, acc_descr: 24, acc_descr_value: 25, acc_descr_multiline_value: 26, ALPHANUM: 27, ENTITY_NAME: 28, attribute: 29, attributeType: 30, attributeName: 31, attributeKeyTypeList: 32, attributeComment: 33, ATTRIBUTE_WORD: 34, attributeKeyType: 35, COMMA: 36, ATTRIBUTE_KEY: 37, COMMENT: 38, cardinality: 39, relType: 40, ZERO_OR_ONE: 41, ZERO_OR_MORE: 42, ONE_OR_MORE: 43, ONLY_ONE: 44, MD_PARENT: 45, NON_IDENTIFYING: 46, IDENTIFYING: 47, WORD: 48, $accept: 0, $end: 1 },
103
109
  terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: ":", 15: "BLOCK_START", 17: "BLOCK_STOP", 18: "SQS", 19: "SQE", 20: "title", 21: "title_value", 22: "acc_title", 23: "acc_title_value", 24: "acc_descr", 25: "acc_descr_value", 26: "acc_descr_multiline_value", 27: "ALPHANUM", 28: "ENTITY_NAME", 34: "ATTRIBUTE_WORD", 36: "COMMA", 37: "ATTRIBUTE_KEY", 38: "COMMENT", 41: "ZERO_OR_ONE", 42: "ZERO_OR_MORE", 43: "ONE_OR_MORE", 44: "ONLY_ONE", 45: "MD_PARENT", 46: "NON_IDENTIFYING", 47: "IDENTIFYING", 48: "WORD" },
104
110
  productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 4], [9, 3], [9, 1], [9, 7], [9, 6], [9, 4], [9, 2], [9, 2], [9, 2], [9, 1], [11, 1], [11, 1], [16, 1], [16, 2], [29, 2], [29, 3], [29, 3], [29, 4], [30, 1], [31, 1], [32, 1], [32, 3], [35, 1], [33, 1], [12, 3], [39, 1], [39, 1], [39, 1], [39, 1], [39, 1], [40, 1], [40, 1], [14, 1], [14, 1], [14, 1]],
105
- performAction: function(T, a, o, n, y, i, x) {
106
- var s = i.length - 1;
111
+ performAction: function(A, i, o, n, y, a, x) {
112
+ var s = a.length - 1;
107
113
  switch (y) {
108
114
  case 1:
109
115
  break;
@@ -111,86 +117,86 @@ var rt = function() {
111
117
  this.$ = [];
112
118
  break;
113
119
  case 3:
114
- i[s - 1].push(i[s]), this.$ = i[s - 1];
120
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
115
121
  break;
116
122
  case 4:
117
123
  case 5:
118
- this.$ = i[s];
124
+ this.$ = a[s];
119
125
  break;
120
126
  case 6:
121
127
  case 7:
122
128
  this.$ = [];
123
129
  break;
124
130
  case 8:
125
- n.addEntity(i[s - 4]), n.addEntity(i[s - 2]), n.addRelationship(i[s - 4], i[s], i[s - 2], i[s - 3]);
131
+ n.addEntity(a[s - 4]), n.addEntity(a[s - 2]), n.addRelationship(a[s - 4], a[s], a[s - 2], a[s - 3]);
126
132
  break;
127
133
  case 9:
128
- n.addEntity(i[s - 3]), n.addAttributes(i[s - 3], i[s - 1]);
134
+ n.addEntity(a[s - 3]), n.addAttributes(a[s - 3], a[s - 1]);
129
135
  break;
130
136
  case 10:
131
- n.addEntity(i[s - 2]);
137
+ n.addEntity(a[s - 2]);
132
138
  break;
133
139
  case 11:
134
- n.addEntity(i[s]);
140
+ n.addEntity(a[s]);
135
141
  break;
136
142
  case 12:
137
- n.addEntity(i[s - 6], i[s - 4]), n.addAttributes(i[s - 6], i[s - 1]);
143
+ n.addEntity(a[s - 6], a[s - 4]), n.addAttributes(a[s - 6], a[s - 1]);
138
144
  break;
139
145
  case 13:
140
- n.addEntity(i[s - 5], i[s - 3]);
146
+ n.addEntity(a[s - 5], a[s - 3]);
141
147
  break;
142
148
  case 14:
143
- n.addEntity(i[s - 3], i[s - 1]);
149
+ n.addEntity(a[s - 3], a[s - 1]);
144
150
  break;
145
151
  case 15:
146
152
  case 16:
147
- this.$ = i[s].trim(), n.setAccTitle(this.$);
153
+ this.$ = a[s].trim(), n.setAccTitle(this.$);
148
154
  break;
149
155
  case 17:
150
156
  case 18:
151
- this.$ = i[s].trim(), n.setAccDescription(this.$);
157
+ this.$ = a[s].trim(), n.setAccDescription(this.$);
152
158
  break;
153
159
  case 19:
154
160
  case 43:
155
- this.$ = i[s];
161
+ this.$ = a[s];
156
162
  break;
157
163
  case 20:
158
164
  case 41:
159
165
  case 42:
160
- this.$ = i[s].replace(/"/g, "");
166
+ this.$ = a[s].replace(/"/g, "");
161
167
  break;
162
168
  case 21:
163
169
  case 29:
164
- this.$ = [i[s]];
170
+ this.$ = [a[s]];
165
171
  break;
166
172
  case 22:
167
- i[s].push(i[s - 1]), this.$ = i[s];
173
+ a[s].push(a[s - 1]), this.$ = a[s];
168
174
  break;
169
175
  case 23:
170
- this.$ = { attributeType: i[s - 1], attributeName: i[s] };
176
+ this.$ = { attributeType: a[s - 1], attributeName: a[s] };
171
177
  break;
172
178
  case 24:
173
- this.$ = { attributeType: i[s - 2], attributeName: i[s - 1], attributeKeyTypeList: i[s] };
179
+ this.$ = { attributeType: a[s - 2], attributeName: a[s - 1], attributeKeyTypeList: a[s] };
174
180
  break;
175
181
  case 25:
176
- this.$ = { attributeType: i[s - 2], attributeName: i[s - 1], attributeComment: i[s] };
182
+ this.$ = { attributeType: a[s - 2], attributeName: a[s - 1], attributeComment: a[s] };
177
183
  break;
178
184
  case 26:
179
- this.$ = { attributeType: i[s - 3], attributeName: i[s - 2], attributeKeyTypeList: i[s - 1], attributeComment: i[s] };
185
+ this.$ = { attributeType: a[s - 3], attributeName: a[s - 2], attributeKeyTypeList: a[s - 1], attributeComment: a[s] };
180
186
  break;
181
187
  case 27:
182
188
  case 28:
183
189
  case 31:
184
- this.$ = i[s];
190
+ this.$ = a[s];
185
191
  break;
186
192
  case 30:
187
- i[s - 2].push(i[s]), this.$ = i[s - 2];
193
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
188
194
  break;
189
195
  case 32:
190
- this.$ = i[s].replace(/"/g, "");
196
+ this.$ = a[s].replace(/"/g, "");
191
197
  break;
192
198
  case 33:
193
- this.$ = { cardA: i[s], relType: i[s - 1], cardB: i[s - 2] };
199
+ this.$ = { cardA: a[s], relType: a[s - 1], cardB: a[s - 2] };
194
200
  break;
195
201
  case 34:
196
202
  this.$ = n.Cardinality.ZERO_OR_ONE;
@@ -215,71 +221,71 @@ var rt = function() {
215
221
  break;
216
222
  }
217
223
  },
218
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(r, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 20: e, 22: u, 24: l, 26: p, 27: h, 28: c }, t(r, [2, 7], { 1: [2, 1] }), t(r, [2, 3]), { 9: 16, 11: 9, 20: e, 22: u, 24: l, 26: p, 27: h, 28: c }, t(r, [2, 5]), t(r, [2, 6]), t(r, [2, 11], { 12: 17, 39: 20, 15: [1, 18], 18: [1, 19], 41: d, 42: f, 43: m, 44: E, 45: g }), { 21: [1, 26] }, { 23: [1, 27] }, { 25: [1, 28] }, t(r, [2, 18]), t(_, [2, 19]), t(_, [2, 20]), t(r, [2, 4]), { 11: 29, 27: h, 28: c }, { 16: 30, 17: [1, 31], 29: 32, 30: 33, 34: D }, { 11: 35, 27: h, 28: c }, { 40: 36, 46: [1, 37], 47: [1, 38] }, t(w, [2, 34]), t(w, [2, 35]), t(w, [2, 36]), t(w, [2, 37]), t(w, [2, 38]), t(r, [2, 15]), t(r, [2, 16]), t(r, [2, 17]), { 13: [1, 39] }, { 17: [1, 40] }, t(r, [2, 10]), { 16: 41, 17: [2, 21], 29: 32, 30: 33, 34: D }, { 31: 42, 34: [1, 43] }, { 34: [2, 27] }, { 19: [1, 44] }, { 39: 45, 41: d, 42: f, 43: m, 44: E, 45: g }, t(Z, [2, 39]), t(Z, [2, 40]), { 14: 46, 27: [1, 49], 28: [1, 48], 48: [1, 47] }, t(r, [2, 9]), { 17: [2, 22] }, t(C, [2, 23], { 32: 50, 33: 51, 35: 52, 37: S, 38: N }), t([17, 34, 37, 38], [2, 28]), t(r, [2, 14], { 15: [1, 55] }), t([27, 28], [2, 33]), t(r, [2, 8]), t(r, [2, 41]), t(r, [2, 42]), t(r, [2, 43]), t(C, [2, 24], { 33: 56, 36: [1, 57], 38: N }), t(C, [2, 25]), t(A, [2, 29]), t(C, [2, 32]), t(A, [2, 31]), { 16: 58, 17: [1, 59], 29: 32, 30: 33, 34: D }, t(C, [2, 26]), { 35: 60, 37: S }, { 17: [1, 61] }, t(r, [2, 13]), t(A, [2, 30]), t(r, [2, 12])],
224
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 20: r, 22: u, 24: l, 26: p, 27: h, 28: c }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 16, 11: 9, 20: r, 22: u, 24: l, 26: p, 27: h, 28: c }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 11], { 12: 17, 39: 20, 15: [1, 18], 18: [1, 19], 41: d, 42: f, 43: m, 44: E, 45: g }), { 21: [1, 26] }, { 23: [1, 27] }, { 25: [1, 28] }, t(e, [2, 18]), t(_, [2, 19]), t(_, [2, 20]), t(e, [2, 4]), { 11: 29, 27: h, 28: c }, { 16: 30, 17: [1, 31], 29: 32, 30: 33, 34: v }, { 11: 35, 27: h, 28: c }, { 40: 36, 46: [1, 37], 47: [1, 38] }, t(w, [2, 34]), t(w, [2, 35]), t(w, [2, 36]), t(w, [2, 37]), t(w, [2, 38]), t(e, [2, 15]), t(e, [2, 16]), t(e, [2, 17]), { 13: [1, 39] }, { 17: [1, 40] }, t(e, [2, 10]), { 16: 41, 17: [2, 21], 29: 32, 30: 33, 34: v }, { 31: 42, 34: [1, 43] }, { 34: [2, 27] }, { 19: [1, 44] }, { 39: 45, 41: d, 42: f, 43: m, 44: E, 45: g }, t(P, [2, 39]), t(P, [2, 40]), { 14: 46, 27: [1, 49], 28: [1, 48], 48: [1, 47] }, t(e, [2, 9]), { 17: [2, 22] }, t(F, [2, 23], { 32: 50, 33: 51, 35: 52, 37: B, 38: N }), t([17, 34, 37, 38], [2, 28]), t(e, [2, 14], { 15: [1, 55] }), t([27, 28], [2, 33]), t(e, [2, 8]), t(e, [2, 41]), t(e, [2, 42]), t(e, [2, 43]), t(F, [2, 24], { 33: 56, 36: [1, 57], 38: N }), t(F, [2, 25]), t(M, [2, 29]), t(F, [2, 32]), t(M, [2, 31]), { 16: 58, 17: [1, 59], 29: 32, 30: 33, 34: v }, t(F, [2, 26]), { 35: 60, 37: B }, { 17: [1, 61] }, t(e, [2, 13]), t(M, [2, 30]), t(e, [2, 12])],
219
225
  defaultActions: { 34: [2, 27], 41: [2, 22] },
220
- parseError: function(T, a) {
221
- if (a.recoverable)
222
- this.trace(T);
226
+ parseError: function(A, i) {
227
+ if (i.recoverable)
228
+ this.trace(A);
223
229
  else {
224
- var o = new Error(T);
225
- throw o.hash = a, o;
230
+ var o = new Error(A);
231
+ throw o.hash = i, o;
226
232
  }
227
233
  },
228
- parse: function(T) {
229
- var a = this, o = [0], n = [], y = [null], i = [], x = this.table, s = "", X = 0, at = 0, dt = 2, nt = 1, ut = i.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
230
- for (var j in this.yy)
231
- Object.prototype.hasOwnProperty.call(this.yy, j) && (W.yy[j] = this.yy[j]);
232
- R.setInput(T, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
233
- var J = R.yylloc;
234
- i.push(J);
235
- var yt = R.options && R.options.ranges;
234
+ parse: function(A) {
235
+ var i = this, o = [0], n = [], y = [null], a = [], x = this.table, s = "", G = 0, nt = 0, ut = 2, st = 1, yt = a.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
236
+ for (var V in this.yy)
237
+ Object.prototype.hasOwnProperty.call(this.yy, V) && (W.yy[V] = this.yy[V]);
238
+ R.setInput(A, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
239
+ var q = R.yylloc;
240
+ a.push(q);
241
+ var pt = R.options && R.options.ranges;
236
242
  typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
237
- function pt() {
238
- var P;
239
- return P = n.pop() || R.lex() || nt, typeof P != "number" && (P instanceof Array && (n = P, P = n.pop()), P = a.symbols_[P] || P), P;
243
+ function _t() {
244
+ var Y;
245
+ return Y = n.pop() || R.lex() || st, typeof Y != "number" && (Y instanceof Array && (n = Y, Y = n.pop()), Y = i.symbols_[Y] || Y), Y;
240
246
  }
241
- for (var M, U, I, V, z = {}, G, B, st, Q; ; ) {
242
- if (U = o[o.length - 1], this.defaultActions[U] ? I = this.defaultActions[U] : ((M === null || typeof M > "u") && (M = pt()), I = x[U] && x[U][M]), typeof I > "u" || !I.length || !I[0]) {
243
- var q = "";
244
- Q = [];
245
- for (G in x[U])
246
- this.terminals_[G] && G > dt && Q.push("'" + this.terminals_[G] + "'");
247
- R.showPosition ? q = "Parse error on line " + (X + 1) + `:
247
+ for (var I, K, S, J, U = {}, H, C, ot, j; ; ) {
248
+ if (K = o[o.length - 1], this.defaultActions[K] ? S = this.defaultActions[K] : ((I === null || typeof I > "u") && (I = _t()), S = x[K] && x[K][I]), typeof S > "u" || !S.length || !S[0]) {
249
+ var tt = "";
250
+ j = [];
251
+ for (H in x[K])
252
+ this.terminals_[H] && H > ut && j.push("'" + this.terminals_[H] + "'");
253
+ R.showPosition ? tt = "Parse error on line " + (G + 1) + `:
248
254
  ` + R.showPosition() + `
249
- Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "Parse error on line " + (X + 1) + ": Unexpected " + (M == nt ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(q, {
255
+ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : tt = "Parse error on line " + (G + 1) + ": Unexpected " + (I == st ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(tt, {
250
256
  text: R.match,
251
- token: this.terminals_[M] || M,
257
+ token: this.terminals_[I] || I,
252
258
  line: R.yylineno,
253
- loc: J,
254
- expected: Q
259
+ loc: q,
260
+ expected: j
255
261
  });
256
262
  }
257
- if (I[0] instanceof Array && I.length > 1)
258
- throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + M);
259
- switch (I[0]) {
263
+ if (S[0] instanceof Array && S.length > 1)
264
+ throw new Error("Parse Error: multiple actions possible at state: " + K + ", token: " + I);
265
+ switch (S[0]) {
260
266
  case 1:
261
- o.push(M), y.push(R.yytext), i.push(R.yylloc), o.push(I[1]), M = null, at = R.yyleng, s = R.yytext, X = R.yylineno, J = R.yylloc;
267
+ o.push(I), y.push(R.yytext), a.push(R.yylloc), o.push(S[1]), I = null, nt = R.yyleng, s = R.yytext, G = R.yylineno, q = R.yylloc;
262
268
  break;
263
269
  case 2:
264
- if (B = this.productions_[I[1]][1], z.$ = y[y.length - B], z._$ = {
265
- first_line: i[i.length - (B || 1)].first_line,
266
- last_line: i[i.length - 1].last_line,
267
- first_column: i[i.length - (B || 1)].first_column,
268
- last_column: i[i.length - 1].last_column
269
- }, yt && (z._$.range = [
270
- i[i.length - (B || 1)].range[0],
271
- i[i.length - 1].range[1]
272
- ]), V = this.performAction.apply(z, [
270
+ if (C = this.productions_[S[1]][1], U.$ = y[y.length - C], U._$ = {
271
+ first_line: a[a.length - (C || 1)].first_line,
272
+ last_line: a[a.length - 1].last_line,
273
+ first_column: a[a.length - (C || 1)].first_column,
274
+ last_column: a[a.length - 1].last_column
275
+ }, pt && (U._$.range = [
276
+ a[a.length - (C || 1)].range[0],
277
+ a[a.length - 1].range[1]
278
+ ]), J = this.performAction.apply(U, [
273
279
  s,
274
- at,
275
- X,
280
+ nt,
281
+ G,
276
282
  W.yy,
277
- I[1],
283
+ S[1],
278
284
  y,
279
- i
280
- ].concat(ut)), typeof V < "u")
281
- return V;
282
- B && (o = o.slice(0, -1 * B * 2), y = y.slice(0, -1 * B), i = i.slice(0, -1 * B)), o.push(this.productions_[I[1]][0]), y.push(z.$), i.push(z._$), st = x[o[o.length - 2]][o[o.length - 1]], o.push(st);
285
+ a
286
+ ].concat(yt)), typeof J < "u")
287
+ return J;
288
+ C && (o = o.slice(0, -1 * C * 2), y = y.slice(0, -1 * C), a = a.slice(0, -1 * C)), o.push(this.productions_[S[1]][0]), y.push(U.$), a.push(U._$), ot = x[o[o.length - 2]][o[o.length - 1]], o.push(ot);
283
289
  break;
284
290
  case 3:
285
291
  return !0;
@@ -288,17 +294,17 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
288
294
  return !0;
289
295
  }
290
296
  }, O = /* @__PURE__ */ function() {
291
- var T = {
297
+ var A = {
292
298
  EOF: 1,
293
- parseError: function(a, o) {
299
+ parseError: function(i, o) {
294
300
  if (this.yy.parser)
295
- this.yy.parser.parseError(a, o);
301
+ this.yy.parser.parseError(i, o);
296
302
  else
297
- throw new Error(a);
303
+ throw new Error(i);
298
304
  },
299
305
  // resets the lexer, sets new input
300
- setInput: function(a, o) {
301
- return this.yy = o || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
306
+ setInput: function(i, o) {
307
+ return this.yy = o || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
302
308
  first_line: 1,
303
309
  first_column: 0,
304
310
  last_line: 1,
@@ -307,24 +313,24 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
307
313
  },
308
314
  // consumes and returns one char from the input
309
315
  input: function() {
310
- var a = this._input[0];
311
- this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
312
- var o = a.match(/(?:\r\n?|\n).*/g);
313
- return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
316
+ var i = this._input[0];
317
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
318
+ var o = i.match(/(?:\r\n?|\n).*/g);
319
+ return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
314
320
  },
315
321
  // unshifts one char (or a string) into the input
316
- unput: function(a) {
317
- var o = a.length, n = a.split(/(?:\r\n?|\n)/g);
318
- this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
322
+ unput: function(i) {
323
+ var o = i.length, n = i.split(/(?:\r\n?|\n)/g);
324
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
319
325
  var y = this.match.split(/(?:\r\n?|\n)/g);
320
326
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
321
- var i = this.yylloc.range;
327
+ var a = this.yylloc.range;
322
328
  return this.yylloc = {
323
329
  first_line: this.yylloc.first_line,
324
330
  last_line: this.yylineno + 1,
325
331
  first_column: this.yylloc.first_column,
326
332
  last_column: n ? (n.length === y.length ? this.yylloc.first_column : 0) + y[y.length - n.length].length - n[0].length : this.yylloc.first_column - o
327
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
333
+ }, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
328
334
  },
329
335
  // When called from action, caches matched text and appends it on next action
330
336
  more: function() {
@@ -344,29 +350,29 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
344
350
  return this;
345
351
  },
346
352
  // retain first n characters of the match
347
- less: function(a) {
348
- this.unput(this.match.slice(a));
353
+ less: function(i) {
354
+ this.unput(this.match.slice(i));
349
355
  },
350
356
  // displays already matched input, i.e. for error messages
351
357
  pastInput: function() {
352
- var a = this.matched.substr(0, this.matched.length - this.match.length);
353
- return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
358
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
359
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
354
360
  },
355
361
  // displays upcoming input, i.e. for error messages
356
362
  upcomingInput: function() {
357
- var a = this.match;
358
- return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
363
+ var i = this.match;
364
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
359
365
  },
360
366
  // displays the character position where the lexing error occurred, i.e. for error messages
361
367
  showPosition: function() {
362
- var a = this.pastInput(), o = new Array(a.length + 1).join("-");
363
- return a + this.upcomingInput() + `
368
+ var i = this.pastInput(), o = new Array(i.length + 1).join("-");
369
+ return i + this.upcomingInput() + `
364
370
  ` + o + "^";
365
371
  },
366
372
  // test the lexed token: return FALSE when not a match, otherwise return token
367
- test_match: function(a, o) {
368
- var n, y, i;
369
- if (this.options.backtrack_lexer && (i = {
373
+ test_match: function(i, o) {
374
+ var n, y, a;
375
+ if (this.options.backtrack_lexer && (a = {
370
376
  yylineno: this.yylineno,
371
377
  yylloc: {
372
378
  first_line: this.yylloc.first_line,
@@ -385,16 +391,16 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
385
391
  yy: this.yy,
386
392
  conditionStack: this.conditionStack.slice(0),
387
393
  done: this.done
388
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), y = a[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
394
+ }, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), y = i[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
389
395
  first_line: this.yylloc.last_line,
390
396
  last_line: this.yylineno + 1,
391
397
  first_column: this.yylloc.last_column,
392
- last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
393
- }, this.yytext += a[0], this.match += a[0], this.matches = a, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(a[0].length), this.matched += a[0], n = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
398
+ last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
399
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], n = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
394
400
  return n;
395
401
  if (this._backtrack) {
396
- for (var x in i)
397
- this[x] = i[x];
402
+ for (var x in a)
403
+ this[x] = a[x];
398
404
  return !1;
399
405
  }
400
406
  return !1;
@@ -404,13 +410,13 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
404
410
  if (this.done)
405
411
  return this.EOF;
406
412
  this._input || (this.done = !0);
407
- var a, o, n, y;
413
+ var i, o, n, y;
408
414
  this._more || (this.yytext = "", this.match = "");
409
- for (var i = this._currentRules(), x = 0; x < i.length; x++)
410
- if (n = this._input.match(this.rules[i[x]]), n && (!o || n[0].length > o[0].length)) {
415
+ for (var a = this._currentRules(), x = 0; x < a.length; x++)
416
+ if (n = this._input.match(this.rules[a[x]]), n && (!o || n[0].length > o[0].length)) {
411
417
  if (o = n, y = x, this.options.backtrack_lexer) {
412
- if (a = this.test_match(n, i[x]), a !== !1)
413
- return a;
418
+ if (i = this.test_match(n, a[x]), i !== !1)
419
+ return i;
414
420
  if (this._backtrack) {
415
421
  o = !1;
416
422
  continue;
@@ -419,7 +425,7 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
419
425
  } else if (!this.options.flex)
420
426
  break;
421
427
  }
422
- return o ? (a = this.test_match(o, i[y]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
428
+ return o ? (i = this.test_match(o, a[y]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
423
429
  ` + this.showPosition(), {
424
430
  text: "",
425
431
  token: null,
@@ -428,36 +434,36 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
428
434
  },
429
435
  // return next match that has a token
430
436
  lex: function() {
431
- var a = this.next();
432
- return a || this.lex();
437
+ var i = this.next();
438
+ return i || this.lex();
433
439
  },
434
440
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
435
- begin: function(a) {
436
- this.conditionStack.push(a);
441
+ begin: function(i) {
442
+ this.conditionStack.push(i);
437
443
  },
438
444
  // pop the previously active lexer condition state off the condition stack
439
445
  popState: function() {
440
- var a = this.conditionStack.length - 1;
441
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
446
+ var i = this.conditionStack.length - 1;
447
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
442
448
  },
443
449
  // produce the lexer rule set which is active for the currently active lexer condition state
444
450
  _currentRules: function() {
445
451
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
446
452
  },
447
453
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
448
- topState: function(a) {
449
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
454
+ topState: function(i) {
455
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
450
456
  },
451
457
  // alias for begin(condition)
452
- pushState: function(a) {
453
- this.begin(a);
458
+ pushState: function(i) {
459
+ this.begin(i);
454
460
  },
455
461
  // return the number of states currently on the stack
456
462
  stateStackSize: function() {
457
463
  return this.conditionStack.length;
458
464
  },
459
465
  options: { "case-insensitive": !0 },
460
- performAction: function(a, o, n, y) {
466
+ performAction: function(i, o, n, y) {
461
467
  switch (n) {
462
468
  case 0:
463
469
  return this.begin("acc_title"), 22;
@@ -578,18 +584,18 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
578
584
  rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:,)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:(.*?)[~](.*?)*[~])/i, /^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i, /^(?:.)/i, /^(?:$)/i],
579
585
  conditions: { acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [14, 15, 16, 17, 18, 19, 20, 21, 22], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55], inclusive: !0 } }
580
586
  };
581
- return T;
587
+ return A;
582
588
  }();
583
589
  k.lexer = O;
584
- function v() {
590
+ function $() {
585
591
  this.yy = {};
586
592
  }
587
- return v.prototype = k, k.Parser = v, new v();
593
+ return $.prototype = k, k.Parser = $, new $();
588
594
  }();
589
- rt.parser = rt;
590
- const Ct = rt;
591
- let F = {}, it = [];
592
- const Ft = {
595
+ at.parser = at;
596
+ const Ft = at;
597
+ let z = {}, it = [];
598
+ const zt = {
593
599
  ZERO_OR_ONE: "ZERO_OR_ONE",
594
600
  ZERO_OR_MORE: "ZERO_OR_MORE",
595
601
  ONE_OR_MORE: "ONE_OR_MORE",
@@ -598,39 +604,39 @@ const Ft = {
598
604
  }, Wt = {
599
605
  NON_IDENTIFYING: "NON_IDENTIFYING",
600
606
  IDENTIFYING: "IDENTIFYING"
601
- }, lt = function(t, r = void 0) {
602
- return F[t] === void 0 ? (F[t] = { attributes: [], alias: r }, K.info("Added new entity :", t)) : F[t] && !F[t].alias && r && (F[t].alias = r, K.info(`Add alias '${r}' to entity '${t}'`)), F[t];
603
- }, Ut = () => F, zt = function(t, r) {
604
- let e = lt(t), u;
605
- for (u = r.length - 1; u >= 0; u--)
606
- e.attributes.push(r[u]), K.debug("Added attribute ", r[u].attributeName);
607
- }, Kt = function(t, r, e, u) {
607
+ }, ht = function(t, e = void 0) {
608
+ return z[t] === void 0 ? (z[t] = { attributes: [], alias: e }, Q.info("Added new entity :", t)) : z[t] && !z[t].alias && e && (z[t].alias = e, Q.info(`Add alias '${e}' to entity '${t}'`)), z[t];
609
+ }, Kt = () => z, Ut = function(t, e) {
610
+ let r = ht(t), u;
611
+ for (u = e.length - 1; u >= 0; u--)
612
+ r.attributes.push(e[u]), Q.debug("Added attribute ", e[u].attributeName);
613
+ }, Qt = function(t, e, r, u) {
608
614
  let l = {
609
615
  entityA: t,
610
- roleA: r,
611
- entityB: e,
616
+ roleA: e,
617
+ entityB: r,
612
618
  relSpec: u
613
619
  };
614
- it.push(l), K.debug("Added new relationship :", l);
615
- }, Ht = () => it, Xt = function() {
616
- F = {}, it = [], Ot();
617
- }, Gt = {
618
- Cardinality: Ft,
620
+ it.push(l), Q.debug("Added new relationship :", l);
621
+ }, Xt = () => it, Gt = function() {
622
+ z = {}, it = [], Ot();
623
+ }, Ht = {
624
+ Cardinality: zt,
619
625
  Identification: Wt,
620
- getConfig: () => Y().er,
621
- addEntity: lt,
622
- addAttributes: zt,
623
- getEntities: Ut,
624
- addRelationship: Kt,
625
- getRelationships: Ht,
626
- clear: Xt,
627
- setAccTitle: _t,
628
- getAccTitle: ft,
629
- setAccDescription: mt,
630
- getAccDescription: Et,
631
- setDiagramTitle: gt,
632
- getDiagramTitle: bt
633
- }, $ = {
626
+ getConfig: () => Z().er,
627
+ addEntity: ht,
628
+ addAttributes: Ut,
629
+ getEntities: Kt,
630
+ addRelationship: Qt,
631
+ getRelationships: Xt,
632
+ clear: Gt,
633
+ setAccTitle: ft,
634
+ getAccTitle: mt,
635
+ setAccDescription: Et,
636
+ getAccDescription: gt,
637
+ setDiagramTitle: bt,
638
+ getDiagramTitle: kt
639
+ }, L = {
634
640
  ONLY_ONE_START: "ONLY_ONE_START",
635
641
  ONLY_ONE_END: "ONLY_ONE_END",
636
642
  ZERO_OR_ONE_START: "ZERO_OR_ONE_START",
@@ -641,196 +647,196 @@ const Ft = {
641
647
  ZERO_OR_MORE_END: "ZERO_OR_MORE_END",
642
648
  MD_PARENT_END: "MD_PARENT_END",
643
649
  MD_PARENT_START: "MD_PARENT_START"
644
- }, Qt = function(t, r) {
645
- let e;
646
- t.append("defs").append("marker").attr("id", $.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", $.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", $.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", $.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), e = t.append("defs").append("marker").attr("id", $.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), e.append("circle").attr("stroke", r.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), e.append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), e = t.append("defs").append("marker").attr("id", $.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), e.append("circle").attr("stroke", r.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), e.append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", $.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", r.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", $.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), e = t.append("defs").append("marker").attr("id", $.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), e.append("circle").attr("stroke", r.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), e.append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), e = t.append("defs").append("marker").attr("id", $.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), e.append("circle").attr("stroke", r.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), e.append("path").attr("stroke", r.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
647
- }, L = {
648
- ERMarkers: $,
649
- insertMarkers: Qt
650
- }, jt = /[^\dA-Za-z](\W)*/g;
651
- let b = {}, H = /* @__PURE__ */ new Map();
652
- const Jt = function(t) {
653
- const r = Object.keys(t);
654
- for (const e of r)
655
- b[e] = t[e];
656
- }, Vt = (t, r, e) => {
657
- const u = b.entityPadding / 3, l = b.entityPadding / 3, p = b.fontSize * 0.85, h = r.node().getBBox(), c = [];
658
- let d = !1, f = !1, m = 0, E = 0, g = 0, _ = 0, D = h.height + u * 2, w = 1;
659
- e.forEach((N) => {
650
+ }, jt = function(t, e) {
651
+ let r;
652
+ t.append("defs").append("marker").attr("id", L.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", L.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", L.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", L.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", L.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", L.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", L.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", L.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", L.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", L.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");
653
+ }, D = {
654
+ ERMarkers: L,
655
+ insertMarkers: jt
656
+ }, Vt = /[^\dA-Za-z](\W)*/g;
657
+ let b = {}, X = /* @__PURE__ */ new Map();
658
+ const qt = function(t) {
659
+ const e = Object.keys(t);
660
+ for (const r of e)
661
+ b[r] = t[r];
662
+ }, Jt = (t, e, r) => {
663
+ const u = b.entityPadding / 3, l = b.entityPadding / 3, p = b.fontSize * 0.85, h = e.node().getBBox(), c = [];
664
+ let d = !1, f = !1, m = 0, E = 0, g = 0, _ = 0, v = h.height + u * 2, w = 1;
665
+ r.forEach((N) => {
660
666
  N.attributeKeyTypeList !== void 0 && N.attributeKeyTypeList.length > 0 && (d = !0), N.attributeComment !== void 0 && (f = !0);
661
- }), e.forEach((N) => {
662
- const A = `${r.node().id}-attr-${w}`;
667
+ }), r.forEach((N) => {
668
+ const M = `${e.node().id}-attr-${w}`;
663
669
  let k = 0;
664
- const O = Tt(N.attributeType), v = t.append("text").classed("er entityLabel", !0).attr("id", `${A}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Y().fontFamily).style("font-size", p + "px").text(O), T = t.append("text").classed("er entityLabel", !0).attr("id", `${A}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Y().fontFamily).style("font-size", p + "px").text(N.attributeName), a = {};
665
- a.tn = v, a.nn = T;
666
- const o = v.node().getBBox(), n = T.node().getBBox();
670
+ const O = Tt(N.attributeType), $ = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(O), A = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(N.attributeName), i = {};
671
+ i.tn = $, i.nn = A;
672
+ const o = $.node().getBBox(), n = A.node().getBBox();
667
673
  if (m = Math.max(m, o.width), E = Math.max(E, n.width), k = Math.max(o.height, n.height), d) {
668
- const y = N.attributeKeyTypeList !== void 0 ? N.attributeKeyTypeList.join(",") : "", i = t.append("text").classed("er entityLabel", !0).attr("id", `${A}-key`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Y().fontFamily).style("font-size", p + "px").text(y);
669
- a.kn = i;
670
- const x = i.node().getBBox();
674
+ const y = N.attributeKeyTypeList !== void 0 ? N.attributeKeyTypeList.join(",") : "", a = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-key`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(y);
675
+ i.kn = a;
676
+ const x = a.node().getBBox();
671
677
  g = Math.max(g, x.width), k = Math.max(k, x.height);
672
678
  }
673
679
  if (f) {
674
- const y = t.append("text").classed("er entityLabel", !0).attr("id", `${A}-comment`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Y().fontFamily).style("font-size", p + "px").text(N.attributeComment || "");
675
- a.cn = y;
676
- const i = y.node().getBBox();
677
- _ = Math.max(_, i.width), k = Math.max(k, i.height);
680
+ const y = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-comment`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(N.attributeComment || "");
681
+ i.cn = y;
682
+ const a = y.node().getBBox();
683
+ _ = Math.max(_, a.width), k = Math.max(k, a.height);
678
684
  }
679
- a.height = k, c.push(a), D += k + u * 2, w += 1;
685
+ i.height = k, c.push(i), v += k + u * 2, w += 1;
680
686
  });
681
- let Z = 4;
682
- d && (Z += 2), f && (Z += 2);
683
- const C = m + E + g + _, S = {
687
+ let P = 4;
688
+ d && (P += 2), f && (P += 2);
689
+ const F = m + E + g + _, B = {
684
690
  width: Math.max(
685
691
  b.minEntityWidth,
686
692
  Math.max(
687
693
  h.width + b.entityPadding * 2,
688
- C + l * Z
694
+ F + l * P
689
695
  )
690
696
  ),
691
- height: e.length > 0 ? D : Math.max(b.minEntityHeight, h.height + b.entityPadding * 2)
697
+ height: r.length > 0 ? v : Math.max(b.minEntityHeight, h.height + b.entityPadding * 2)
692
698
  };
693
- if (e.length > 0) {
699
+ if (r.length > 0) {
694
700
  const N = Math.max(
695
701
  0,
696
- (S.width - C - l * Z) / (Z / 2)
702
+ (B.width - F - l * P) / (P / 2)
697
703
  );
698
- r.attr(
704
+ e.attr(
699
705
  "transform",
700
- "translate(" + S.width / 2 + "," + (u + h.height / 2) + ")"
706
+ "translate(" + B.width / 2 + "," + (u + h.height / 2) + ")"
701
707
  );
702
- let A = h.height + u * 2, k = "attributeBoxOdd";
708
+ let M = h.height + u * 2, k = "attributeBoxOdd";
703
709
  c.forEach((O) => {
704
- const v = A + u + O.height / 2;
705
- O.tn.attr("transform", "translate(" + l + "," + v + ")");
706
- const T = t.insert("rect", "#" + O.tn.node().id).classed(`er ${k}`, !0).attr("x", 0).attr("y", A).attr("width", m + l * 2 + N).attr("height", O.height + u * 2), a = parseFloat(T.attr("x")) + parseFloat(T.attr("width"));
710
+ const $ = M + u + O.height / 2;
711
+ O.tn.attr("transform", "translate(" + l + "," + $ + ")");
712
+ const A = t.insert("rect", "#" + O.tn.node().id).classed(`er ${k}`, !0).attr("x", 0).attr("y", M).attr("width", m + l * 2 + N).attr("height", O.height + u * 2), i = parseFloat(A.attr("x")) + parseFloat(A.attr("width"));
707
713
  O.nn.attr(
708
714
  "transform",
709
- "translate(" + (a + l) + "," + v + ")"
715
+ "translate(" + (i + l) + "," + $ + ")"
710
716
  );
711
- const o = t.insert("rect", "#" + O.nn.node().id).classed(`er ${k}`, !0).attr("x", a).attr("y", A).attr("width", E + l * 2 + N).attr("height", O.height + u * 2);
717
+ const o = t.insert("rect", "#" + O.nn.node().id).classed(`er ${k}`, !0).attr("x", i).attr("y", M).attr("width", E + l * 2 + N).attr("height", O.height + u * 2);
712
718
  let n = parseFloat(o.attr("x")) + parseFloat(o.attr("width"));
713
719
  if (d) {
714
720
  O.kn.attr(
715
721
  "transform",
716
- "translate(" + (n + l) + "," + v + ")"
722
+ "translate(" + (n + l) + "," + $ + ")"
717
723
  );
718
- const y = t.insert("rect", "#" + O.kn.node().id).classed(`er ${k}`, !0).attr("x", n).attr("y", A).attr("width", g + l * 2 + N).attr("height", O.height + u * 2);
724
+ const y = t.insert("rect", "#" + O.kn.node().id).classed(`er ${k}`, !0).attr("x", n).attr("y", M).attr("width", g + l * 2 + N).attr("height", O.height + u * 2);
719
725
  n = parseFloat(y.attr("x")) + parseFloat(y.attr("width"));
720
726
  }
721
727
  f && (O.cn.attr(
722
728
  "transform",
723
- "translate(" + (n + l) + "," + v + ")"
724
- ), t.insert("rect", "#" + O.cn.node().id).classed(`er ${k}`, "true").attr("x", n).attr("y", A).attr("width", _ + l * 2 + N).attr("height", O.height + u * 2)), A += O.height + u * 2, k = k === "attributeBoxOdd" ? "attributeBoxEven" : "attributeBoxOdd";
729
+ "translate(" + (n + l) + "," + $ + ")"
730
+ ), t.insert("rect", "#" + O.cn.node().id).classed(`er ${k}`, "true").attr("x", n).attr("y", M).attr("width", _ + l * 2 + N).attr("height", O.height + u * 2)), M += O.height + u * 2, k = k === "attributeBoxOdd" ? "attributeBoxEven" : "attributeBoxOdd";
725
731
  });
726
732
  } else
727
- S.height = Math.max(b.minEntityHeight, D), r.attr("transform", "translate(" + S.width / 2 + "," + S.height / 2 + ")");
728
- return S;
729
- }, qt = function(t, r, e) {
730
- const u = Object.keys(r);
733
+ B.height = Math.max(b.minEntityHeight, v), e.attr("transform", "translate(" + B.width / 2 + "," + B.height / 2 + ")");
734
+ return B;
735
+ }, te = function(t, e, r) {
736
+ const u = Object.keys(e);
731
737
  let l;
732
738
  return u.forEach(function(p) {
733
- const h = ne(p, "entity");
734
- H.set(p, h);
739
+ const h = se(p, "entity");
740
+ X.set(p, h);
735
741
  const c = t.append("g").attr("id", h);
736
742
  l = l === void 0 ? h : l;
737
- const d = "text-" + h, f = c.append("text").classed("er entityLabel", !0).attr("id", d).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", Y().fontFamily).style("font-size", b.fontSize + "px").text(r[p].alias ?? p), { width: m, height: E } = Vt(
743
+ const d = "text-" + h, f = c.append("text").classed("er entityLabel", !0).attr("id", d).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", Z().fontFamily).style("font-size", b.fontSize + "px").text(e[p].alias ?? p), { width: m, height: E } = Jt(
738
744
  c,
739
745
  f,
740
- r[p].attributes
746
+ e[p].attributes
741
747
  ), g = c.insert("rect", "#" + d).classed("er entityBox", !0).attr("x", 0).attr("y", 0).attr("width", m).attr("height", E).node().getBBox();
742
- e.setNode(h, {
748
+ r.setNode(h, {
743
749
  width: g.width,
744
750
  height: g.height,
745
751
  shape: "rect",
746
752
  id: h
747
753
  });
748
754
  }), l;
749
- }, te = function(t, r) {
750
- r.nodes().forEach(function(e) {
751
- e !== void 0 && r.node(e) !== void 0 && t.select("#" + e).attr(
755
+ }, ee = function(t, e) {
756
+ e.nodes().forEach(function(r) {
757
+ r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr(
752
758
  "transform",
753
- "translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
759
+ "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )"
754
760
  );
755
761
  });
756
- }, ht = function(t) {
762
+ }, dt = function(t) {
757
763
  return (t.entityA + t.roleA + t.entityB).replace(/\s/g, "");
758
- }, ee = function(t, r) {
759
- return t.forEach(function(e) {
760
- r.setEdge(
761
- H.get(e.entityA),
762
- H.get(e.entityB),
763
- { relationship: e },
764
- ht(e)
764
+ }, re = function(t, e) {
765
+ return t.forEach(function(r) {
766
+ e.setEdge(
767
+ X.get(r.entityA),
768
+ X.get(r.entityB),
769
+ { relationship: r },
770
+ dt(r)
765
771
  );
766
772
  }), t;
767
773
  };
768
- let ot = 0;
769
- const re = function(t, r, e, u, l) {
770
- ot++;
771
- const p = e.edge(
772
- H.get(r.entityA),
773
- H.get(r.entityB),
774
- ht(r)
775
- ), h = Dt().x(function(_) {
774
+ let ct = 0;
775
+ const ae = function(t, e, r, u, l) {
776
+ ct++;
777
+ const p = r.edge(
778
+ X.get(e.entityA),
779
+ X.get(e.entityB),
780
+ dt(e)
781
+ ), h = It().x(function(_) {
776
782
  return _.x;
777
783
  }).y(function(_) {
778
784
  return _.y;
779
785
  }).curve(xt), c = t.insert("path", "#" + u).classed("er relationshipLine", !0).attr("d", h(p.points)).style("stroke", b.stroke).style("fill", "none");
780
- r.relSpec.relType === l.db.Identification.NON_IDENTIFYING && c.attr("stroke-dasharray", "8,8");
786
+ e.relSpec.relType === l.db.Identification.NON_IDENTIFYING && c.attr("stroke-dasharray", "8,8");
781
787
  let d = "";
782
- switch (b.arrowMarkerAbsolute && (d = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, d = d.replace(/\(/g, "\\("), d = d.replace(/\)/g, "\\)")), r.relSpec.cardA) {
788
+ switch (b.arrowMarkerAbsolute && (d = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, d = d.replace(/\(/g, "\\("), d = d.replace(/\)/g, "\\)")), e.relSpec.cardA) {
783
789
  case l.db.Cardinality.ZERO_OR_ONE:
784
- c.attr("marker-end", "url(" + d + "#" + L.ERMarkers.ZERO_OR_ONE_END + ")");
790
+ c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ZERO_OR_ONE_END + ")");
785
791
  break;
786
792
  case l.db.Cardinality.ZERO_OR_MORE:
787
- c.attr("marker-end", "url(" + d + "#" + L.ERMarkers.ZERO_OR_MORE_END + ")");
793
+ c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ZERO_OR_MORE_END + ")");
788
794
  break;
789
795
  case l.db.Cardinality.ONE_OR_MORE:
790
- c.attr("marker-end", "url(" + d + "#" + L.ERMarkers.ONE_OR_MORE_END + ")");
796
+ c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ONE_OR_MORE_END + ")");
791
797
  break;
792
798
  case l.db.Cardinality.ONLY_ONE:
793
- c.attr("marker-end", "url(" + d + "#" + L.ERMarkers.ONLY_ONE_END + ")");
799
+ c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ONLY_ONE_END + ")");
794
800
  break;
795
801
  case l.db.Cardinality.MD_PARENT:
796
- c.attr("marker-end", "url(" + d + "#" + L.ERMarkers.MD_PARENT_END + ")");
802
+ c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.MD_PARENT_END + ")");
797
803
  break;
798
804
  }
799
- switch (r.relSpec.cardB) {
805
+ switch (e.relSpec.cardB) {
800
806
  case l.db.Cardinality.ZERO_OR_ONE:
801
807
  c.attr(
802
808
  "marker-start",
803
- "url(" + d + "#" + L.ERMarkers.ZERO_OR_ONE_START + ")"
809
+ "url(" + d + "#" + D.ERMarkers.ZERO_OR_ONE_START + ")"
804
810
  );
805
811
  break;
806
812
  case l.db.Cardinality.ZERO_OR_MORE:
807
813
  c.attr(
808
814
  "marker-start",
809
- "url(" + d + "#" + L.ERMarkers.ZERO_OR_MORE_START + ")"
815
+ "url(" + d + "#" + D.ERMarkers.ZERO_OR_MORE_START + ")"
810
816
  );
811
817
  break;
812
818
  case l.db.Cardinality.ONE_OR_MORE:
813
819
  c.attr(
814
820
  "marker-start",
815
- "url(" + d + "#" + L.ERMarkers.ONE_OR_MORE_START + ")"
821
+ "url(" + d + "#" + D.ERMarkers.ONE_OR_MORE_START + ")"
816
822
  );
817
823
  break;
818
824
  case l.db.Cardinality.ONLY_ONE:
819
- c.attr("marker-start", "url(" + d + "#" + L.ERMarkers.ONLY_ONE_START + ")");
825
+ c.attr("marker-start", "url(" + d + "#" + D.ERMarkers.ONLY_ONE_START + ")");
820
826
  break;
821
827
  case l.db.Cardinality.MD_PARENT:
822
- c.attr("marker-start", "url(" + d + "#" + L.ERMarkers.MD_PARENT_START + ")");
828
+ c.attr("marker-start", "url(" + d + "#" + D.ERMarkers.MD_PARENT_START + ")");
823
829
  break;
824
830
  }
825
- const f = c.node().getTotalLength(), m = c.node().getPointAtLength(f * 0.5), E = "rel" + ot, g = t.append("text").classed("er relationshipLabel", !0).attr("id", E).attr("x", m.x).attr("y", m.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", Y().fontFamily).style("font-size", b.fontSize + "px").text(r.roleA).node().getBBox();
831
+ const f = c.node().getTotalLength(), m = c.node().getPointAtLength(f * 0.5), E = "rel" + ct, g = t.append("text").classed("er relationshipLabel", !0).attr("id", E).attr("x", m.x).attr("y", m.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", Z().fontFamily).style("font-size", b.fontSize + "px").text(e.roleA).node().getBBox();
826
832
  t.insert("rect", "#" + E).classed("er relationshipLabelBox", !0).attr("x", m.x - g.width / 2).attr("y", m.y - g.height / 2).attr("width", g.width).attr("height", g.height);
827
- }, ie = function(t, r, e, u) {
828
- b = Y().er, K.info("Drawing ER diagram");
829
- const l = Y().securityLevel;
833
+ }, ie = function(t, e, r, u) {
834
+ b = Z().er, Q.info("Drawing ER diagram");
835
+ const l = Z().securityLevel;
830
836
  let p;
831
- l === "sandbox" && (p = tt("#i" + r));
832
- const h = (l === "sandbox" ? tt(p.nodes()[0].contentDocument.body) : tt("body")).select(`[id='${r}']`);
833
- L.insertMarkers(h, b);
837
+ l === "sandbox" && (p = et("#i" + e));
838
+ const h = (l === "sandbox" ? et(p.nodes()[0].contentDocument.body) : et("body")).select(`[id='${e}']`);
839
+ D.insertMarkers(h, b);
834
840
  let c;
835
841
  c = new At({
836
842
  multigraph: !0,
@@ -846,29 +852,29 @@ const re = function(t, r, e, u, l) {
846
852
  }).setDefaultEdgeLabel(function() {
847
853
  return {};
848
854
  });
849
- const d = qt(h, u.db.getEntities(), c), f = ee(u.db.getRelationships(), c);
850
- Mt(c), te(h, c), f.forEach(function(D) {
851
- re(h, D, c, d, u);
855
+ const d = te(h, u.db.getEntities(), c), f = re(u.db.getRelationships(), c);
856
+ Mt(c), ee(h, c), f.forEach(function(v) {
857
+ ae(h, v, c, d, u);
852
858
  });
853
859
  const m = b.diagramPadding;
854
860
  Rt.insertTitle(h, "entityTitleText", b.titleTopMargin, u.db.getDiagramTitle());
855
861
  const E = h.node().getBBox(), g = E.width + m * 2, _ = E.height + m * 2;
856
862
  Nt(h, _, g, b.useMaxWidth), h.attr("viewBox", `${E.x - m} ${E.y - m} ${g} ${_}`);
857
- }, ae = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c";
858
- function ne(t = "", r = "") {
859
- const e = t.replace(jt, "");
860
- return `${ct(r)}${ct(e)}${Zt(
863
+ }, ne = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c";
864
+ function se(t = "", e = "") {
865
+ const r = t.replace(Vt, "");
866
+ return `${lt(e)}${lt(r)}${Pt(
861
867
  t,
862
- ae
868
+ ne
863
869
  )}`;
864
870
  }
865
- function ct(t = "") {
871
+ function lt(t = "") {
866
872
  return t.length > 0 ? `${t}-` : "";
867
873
  }
868
- const se = {
869
- setConf: Jt,
874
+ const oe = {
875
+ setConf: qt,
870
876
  draw: ie
871
- }, oe = (t) => `
877
+ }, ce = (t) => `
872
878
  .entityBox {
873
879
  fill: ${t.mainBkg};
874
880
  stroke: ${t.nodeBorder};
@@ -913,12 +919,12 @@ const se = {
913
919
  stroke-width: 1;
914
920
  }
915
921
 
916
- `, ce = oe, ye = {
917
- parser: Ct,
918
- db: Gt,
919
- renderer: se,
920
- styles: ce
922
+ `, le = ce, pe = {
923
+ parser: Ft,
924
+ db: Ht,
925
+ renderer: oe,
926
+ styles: le
921
927
  };
922
928
  export {
923
- ye as diagram
929
+ pe as diagram
924
930
  };