@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.0

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 (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,2029 +0,0 @@
1
- import { a as h, X as F, G as ee, bq as Be, V as Pe, m as _, $ as Fe, c as xe, ar as Me, br as Ke, bs as Ye, bt as je, p as Xe, b as We, bu as Ue, bv as Se, bw as Ge, bx as He, by as qe, bz as Ve, bA as Je, bB as Ze, bC as Qe, bD as et, bE as tt, bF as st, bG as it, bH as rt, bI as nt, bJ as at, bK as ot, bL as lt, bM as ct, bN as ut, bO as ht, bP as gt, bQ as dt, bR as pt, bS as yt, bT as bt, bo as Le, bp as ft } from "./index-BaAWoj3P.js";
2
- import { n as xt } from "./channel-DUDXYB-g-BsX3Acdu.js";
3
- import { t as St } from "./chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js";
4
- function Lt(e) {
5
- return Array.isArray(e);
6
- }
7
- function mt(e) {
8
- if (Ue(e)) return e;
9
- let r = Se(e);
10
- if (!_t(e)) return {};
11
- if (Lt(e)) {
12
- let i = Array.from(e);
13
- return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (i.index = e.index, i.input = e.input), i;
14
- }
15
- if (Ge(e)) {
16
- let i = e, o = i.constructor;
17
- return new o(i.buffer, i.byteOffset, i.length);
18
- }
19
- if (r === "[object ArrayBuffer]") return new ArrayBuffer(e.byteLength);
20
- if (r === "[object DataView]") {
21
- let i = e, o = i.buffer, n = i.byteOffset, c = i.byteLength, d = new ArrayBuffer(c), b = new Uint8Array(o, n, c);
22
- return new Uint8Array(d).set(b), new DataView(d);
23
- }
24
- if (r === "[object Boolean]" || r === "[object Number]" || r === "[object String]") {
25
- let i = e.constructor, o = new i(e.valueOf());
26
- return r === "[object String]" ? Et(o, e) : te(o, e), o;
27
- }
28
- if (r === "[object Date]") return new Date(Number(e));
29
- if (r === "[object RegExp]") {
30
- let i = e, o = new RegExp(i.source, i.flags);
31
- return o.lastIndex = i.lastIndex, o;
32
- }
33
- if (r === "[object Symbol]") return Object(Symbol.prototype.valueOf.call(e));
34
- if (r === "[object Map]") {
35
- let i = e, o = /* @__PURE__ */ new Map();
36
- return i.forEach((n, c) => {
37
- o.set(c, n);
38
- }), o;
39
- }
40
- if (r === "[object Set]") {
41
- let i = e, o = /* @__PURE__ */ new Set();
42
- return i.forEach((n) => {
43
- o.add(n);
44
- }), o;
45
- }
46
- if (r === "[object Arguments]") {
47
- let i = e, o = {};
48
- return te(o, i), o.length = i.length, o[Symbol.iterator] = i[Symbol.iterator], o;
49
- }
50
- let l = {};
51
- return wt(l, e), te(l, e), kt(l, e), l;
52
- }
53
- function _t(e) {
54
- switch (Se(e)) {
55
- case yt:
56
- case pt:
57
- case dt:
58
- case gt:
59
- case ht:
60
- case ut:
61
- case ct:
62
- case lt:
63
- case ot:
64
- case at:
65
- case nt:
66
- case rt:
67
- case it:
68
- case st:
69
- case tt:
70
- case et:
71
- case Qe:
72
- case Ze:
73
- case Je:
74
- case Ve:
75
- case qe:
76
- case He:
77
- return !0;
78
- default:
79
- return !1;
80
- }
81
- }
82
- function te(e, r) {
83
- for (let l in r) Object.hasOwn(r, l) && (e[l] = r[l]);
84
- }
85
- function kt(e, r) {
86
- let l = Object.getOwnPropertySymbols(r);
87
- for (let i = 0; i < l.length; i++) {
88
- let o = l[i];
89
- Object.prototype.propertyIsEnumerable.call(r, o) && (e[o] = r[o]);
90
- }
91
- }
92
- function Et(e, r) {
93
- let l = r.valueOf().length;
94
- for (let i in r) Object.hasOwn(r, i) && (Number.isNaN(Number(i)) || Number(i) >= l) && (e[i] = r[i]);
95
- }
96
- function wt(e, r) {
97
- let l = Object.getPrototypeOf(r);
98
- l !== null && typeof r.constructor == "function" && Object.setPrototypeOf(e, l);
99
- }
100
- var ie = (function() {
101
- var e = /* @__PURE__ */ h(function(t, u, y, g) {
102
- for (y ||= {}, g = t.length; g--; y[t[g]] = u) ;
103
- return y;
104
- }, "o"), r = [1, 15], l = [1, 7], i = [1, 13], o = [1, 14], n = [1, 19], c = [1, 16], d = [1, 17], b = [1, 18], S = [8, 30], f = [
105
- 8,
106
- 10,
107
- 21,
108
- 28,
109
- 29,
110
- 30,
111
- 31,
112
- 39,
113
- 43,
114
- 46
115
- ], p = [1, 23], L = [1, 24], m = [
116
- 8,
117
- 10,
118
- 15,
119
- 16,
120
- 21,
121
- 28,
122
- 29,
123
- 30,
124
- 31,
125
- 39,
126
- 43,
127
- 46
128
- ], x = [
129
- 8,
130
- 10,
131
- 15,
132
- 16,
133
- 21,
134
- 27,
135
- 28,
136
- 29,
137
- 30,
138
- 31,
139
- 39,
140
- 43,
141
- 46
142
- ], D = [1, 49], k = {
143
- trace: /* @__PURE__ */ h(function() {
144
- }, "trace"),
145
- yy: {},
146
- symbols_: {
147
- error: 2,
148
- spaceLines: 3,
149
- SPACELINE: 4,
150
- NL: 5,
151
- separator: 6,
152
- SPACE: 7,
153
- EOF: 8,
154
- start: 9,
155
- BLOCK_DIAGRAM_KEY: 10,
156
- document: 11,
157
- stop: 12,
158
- statement: 13,
159
- link: 14,
160
- LINK: 15,
161
- START_LINK: 16,
162
- LINK_LABEL: 17,
163
- STR: 18,
164
- nodeStatement: 19,
165
- columnsStatement: 20,
166
- SPACE_BLOCK: 21,
167
- blockStatement: 22,
168
- classDefStatement: 23,
169
- cssClassStatement: 24,
170
- styleStatement: 25,
171
- node: 26,
172
- SIZE: 27,
173
- COLUMNS: 28,
174
- "id-block": 29,
175
- end: 30,
176
- NODE_ID: 31,
177
- nodeShapeNLabel: 32,
178
- dirList: 33,
179
- DIR: 34,
180
- NODE_DSTART: 35,
181
- NODE_DEND: 36,
182
- BLOCK_ARROW_START: 37,
183
- BLOCK_ARROW_END: 38,
184
- classDef: 39,
185
- CLASSDEF_ID: 40,
186
- CLASSDEF_STYLEOPTS: 41,
187
- DEFAULT: 42,
188
- class: 43,
189
- CLASSENTITY_IDS: 44,
190
- STYLECLASS: 45,
191
- style: 46,
192
- STYLE_ENTITY_IDS: 47,
193
- STYLE_DEFINITION_DATA: 48,
194
- $accept: 0,
195
- $end: 1
196
- },
197
- terminals_: {
198
- 2: "error",
199
- 4: "SPACELINE",
200
- 5: "NL",
201
- 7: "SPACE",
202
- 8: "EOF",
203
- 10: "BLOCK_DIAGRAM_KEY",
204
- 15: "LINK",
205
- 16: "START_LINK",
206
- 17: "LINK_LABEL",
207
- 18: "STR",
208
- 21: "SPACE_BLOCK",
209
- 27: "SIZE",
210
- 28: "COLUMNS",
211
- 29: "id-block",
212
- 30: "end",
213
- 31: "NODE_ID",
214
- 34: "DIR",
215
- 35: "NODE_DSTART",
216
- 36: "NODE_DEND",
217
- 37: "BLOCK_ARROW_START",
218
- 38: "BLOCK_ARROW_END",
219
- 39: "classDef",
220
- 40: "CLASSDEF_ID",
221
- 41: "CLASSDEF_STYLEOPTS",
222
- 42: "DEFAULT",
223
- 43: "class",
224
- 44: "CLASSENTITY_IDS",
225
- 45: "STYLECLASS",
226
- 46: "style",
227
- 47: "STYLE_ENTITY_IDS",
228
- 48: "STYLE_DEFINITION_DATA"
229
- },
230
- productions_: [
231
- 0,
232
- [3, 1],
233
- [3, 2],
234
- [3, 2],
235
- [6, 1],
236
- [6, 1],
237
- [6, 1],
238
- [9, 3],
239
- [12, 1],
240
- [12, 1],
241
- [12, 2],
242
- [12, 2],
243
- [11, 1],
244
- [11, 2],
245
- [14, 1],
246
- [14, 4],
247
- [13, 1],
248
- [13, 1],
249
- [13, 1],
250
- [13, 1],
251
- [13, 1],
252
- [13, 1],
253
- [13, 1],
254
- [19, 3],
255
- [19, 2],
256
- [19, 1],
257
- [20, 1],
258
- [22, 4],
259
- [22, 3],
260
- [26, 1],
261
- [26, 2],
262
- [33, 1],
263
- [33, 2],
264
- [32, 3],
265
- [32, 4],
266
- [23, 3],
267
- [23, 3],
268
- [24, 3],
269
- [25, 3]
270
- ],
271
- performAction: /* @__PURE__ */ h(function(t, u, y, g, E, s, B) {
272
- var a = s.length - 1;
273
- switch (E) {
274
- case 4:
275
- g.getLogger().debug("Rule: separator (NL) ");
276
- break;
277
- case 5:
278
- g.getLogger().debug("Rule: separator (Space) ");
279
- break;
280
- case 6:
281
- g.getLogger().debug("Rule: separator (EOF) ");
282
- break;
283
- case 7:
284
- g.getLogger().debug("Rule: hierarchy: ", s[a - 1]), g.setHierarchy(s[a - 1]);
285
- break;
286
- case 8:
287
- g.getLogger().debug("Stop NL ");
288
- break;
289
- case 9:
290
- g.getLogger().debug("Stop EOF ");
291
- break;
292
- case 10:
293
- g.getLogger().debug("Stop NL2 ");
294
- break;
295
- case 11:
296
- g.getLogger().debug("Stop EOF2 ");
297
- break;
298
- case 12:
299
- g.getLogger().debug("Rule: statement: ", s[a]), this.$ = typeof s[a].length == "number" ? s[a] : [s[a]];
300
- break;
301
- case 13:
302
- g.getLogger().debug("Rule: statement #2: ", s[a - 1]), this.$ = [s[a - 1]].concat(s[a]);
303
- break;
304
- case 14:
305
- g.getLogger().debug("Rule: link: ", s[a], t), this.$ = {
306
- edgeTypeStr: s[a],
307
- label: ""
308
- };
309
- break;
310
- case 15:
311
- g.getLogger().debug("Rule: LABEL link: ", s[a - 3], s[a - 1], s[a]), this.$ = {
312
- edgeTypeStr: s[a],
313
- label: s[a - 1]
314
- };
315
- break;
316
- case 18:
317
- let R = parseInt(s[a]), M = g.generateId();
318
- this.$ = {
319
- id: M,
320
- type: "space",
321
- label: "",
322
- width: R,
323
- children: []
324
- };
325
- break;
326
- case 23:
327
- g.getLogger().debug("Rule: (nodeStatement link node) ", s[a - 2], s[a - 1], s[a], " typestr: ", s[a - 1].edgeTypeStr);
328
- let G = g.edgeStrToEdgeData(s[a - 1].edgeTypeStr), H = g.edgeStrToEdgeStartData(s[a - 1].edgeTypeStr), K = g.edgeStrToThickness(s[a - 1].edgeTypeStr), q = g.edgeStrToPattern(s[a - 1].edgeTypeStr);
329
- this.$ = [
330
- {
331
- id: s[a - 2].id,
332
- label: s[a - 2].label,
333
- type: s[a - 2].type,
334
- directions: s[a - 2].directions
335
- },
336
- {
337
- id: s[a - 2].id + "-" + s[a].id,
338
- start: s[a - 2].id,
339
- end: s[a].id,
340
- label: s[a - 1].label,
341
- type: "edge",
342
- thickness: K,
343
- pattern: q,
344
- directions: s[a].directions,
345
- arrowTypeEnd: G,
346
- arrowTypeStart: H
347
- },
348
- {
349
- id: s[a].id,
350
- label: s[a].label,
351
- type: g.typeStr2Type(s[a].typeStr),
352
- directions: s[a].directions
353
- }
354
- ];
355
- break;
356
- case 24:
357
- g.getLogger().debug("Rule: nodeStatement (abc88 node size) ", s[a - 1], s[a]), this.$ = {
358
- id: s[a - 1].id,
359
- label: s[a - 1].label,
360
- type: g.typeStr2Type(s[a - 1].typeStr),
361
- directions: s[a - 1].directions,
362
- widthInColumns: parseInt(s[a], 10)
363
- };
364
- break;
365
- case 25:
366
- g.getLogger().debug("Rule: nodeStatement (node) ", s[a]), this.$ = {
367
- id: s[a].id,
368
- label: s[a].label,
369
- type: g.typeStr2Type(s[a].typeStr),
370
- directions: s[a].directions,
371
- widthInColumns: 1
372
- };
373
- break;
374
- case 26:
375
- g.getLogger().debug("APA123", this ? this : "na"), g.getLogger().debug("COLUMNS: ", s[a]), this.$ = {
376
- type: "column-setting",
377
- columns: s[a] === "auto" ? -1 : parseInt(s[a])
378
- };
379
- break;
380
- case 27:
381
- g.getLogger().debug("Rule: id-block statement : ", s[a - 2], s[a - 1]), g.generateId(), this.$ = {
382
- ...s[a - 2],
383
- type: "composite",
384
- children: s[a - 1]
385
- };
386
- break;
387
- case 28:
388
- g.getLogger().debug("Rule: blockStatement : ", s[a - 2], s[a - 1], s[a]);
389
- let w = g.generateId();
390
- this.$ = {
391
- id: w,
392
- type: "composite",
393
- label: "",
394
- children: s[a - 1]
395
- };
396
- break;
397
- case 29:
398
- g.getLogger().debug("Rule: node (NODE_ID separator): ", s[a]), this.$ = { id: s[a] };
399
- break;
400
- case 30:
401
- g.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", s[a - 1], s[a]), this.$ = {
402
- id: s[a - 1],
403
- label: s[a].label,
404
- typeStr: s[a].typeStr,
405
- directions: s[a].directions
406
- };
407
- break;
408
- case 31:
409
- g.getLogger().debug("Rule: dirList: ", s[a]), this.$ = [s[a]];
410
- break;
411
- case 32:
412
- g.getLogger().debug("Rule: dirList: ", s[a - 1], s[a]), this.$ = [s[a - 1]].concat(s[a]);
413
- break;
414
- case 33:
415
- g.getLogger().debug("Rule: nodeShapeNLabel: ", s[a - 2], s[a - 1], s[a]), this.$ = {
416
- typeStr: s[a - 2] + s[a],
417
- label: s[a - 1]
418
- };
419
- break;
420
- case 34:
421
- g.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", s[a - 3], s[a - 2], " #3:", s[a - 1], s[a]), this.$ = {
422
- typeStr: s[a - 3] + s[a],
423
- label: s[a - 2],
424
- directions: s[a - 1]
425
- };
426
- break;
427
- case 35:
428
- case 36:
429
- this.$ = {
430
- type: "classDef",
431
- id: s[a - 1].trim(),
432
- css: s[a].trim()
433
- };
434
- break;
435
- case 37:
436
- this.$ = {
437
- type: "applyClass",
438
- id: s[a - 1].trim(),
439
- styleClass: s[a].trim()
440
- };
441
- break;
442
- case 38:
443
- this.$ = {
444
- type: "applyStyles",
445
- id: s[a - 1].trim(),
446
- stylesStr: s[a].trim()
447
- };
448
- }
449
- }, "anonymous"),
450
- table: [
451
- {
452
- 9: 1,
453
- 10: [1, 2]
454
- },
455
- { 1: [3] },
456
- {
457
- 10: r,
458
- 11: 3,
459
- 13: 4,
460
- 19: 5,
461
- 20: 6,
462
- 21: l,
463
- 22: 8,
464
- 23: 9,
465
- 24: 10,
466
- 25: 11,
467
- 26: 12,
468
- 28: i,
469
- 29: o,
470
- 31: n,
471
- 39: c,
472
- 43: d,
473
- 46: b
474
- },
475
- { 8: [1, 20] },
476
- e(S, [2, 12], {
477
- 13: 4,
478
- 19: 5,
479
- 20: 6,
480
- 22: 8,
481
- 23: 9,
482
- 24: 10,
483
- 25: 11,
484
- 26: 12,
485
- 11: 21,
486
- 10: r,
487
- 21: l,
488
- 28: i,
489
- 29: o,
490
- 31: n,
491
- 39: c,
492
- 43: d,
493
- 46: b
494
- }),
495
- e(f, [2, 16], {
496
- 14: 22,
497
- 15: p,
498
- 16: L
499
- }),
500
- e(f, [2, 17]),
501
- e(f, [2, 18]),
502
- e(f, [2, 19]),
503
- e(f, [2, 20]),
504
- e(f, [2, 21]),
505
- e(f, [2, 22]),
506
- e(m, [2, 25], { 27: [1, 25] }),
507
- e(f, [2, 26]),
508
- {
509
- 19: 26,
510
- 26: 12,
511
- 31: n
512
- },
513
- {
514
- 10: r,
515
- 11: 27,
516
- 13: 4,
517
- 19: 5,
518
- 20: 6,
519
- 21: l,
520
- 22: 8,
521
- 23: 9,
522
- 24: 10,
523
- 25: 11,
524
- 26: 12,
525
- 28: i,
526
- 29: o,
527
- 31: n,
528
- 39: c,
529
- 43: d,
530
- 46: b
531
- },
532
- {
533
- 40: [1, 28],
534
- 42: [1, 29]
535
- },
536
- { 44: [1, 30] },
537
- { 47: [1, 31] },
538
- e(x, [2, 29], {
539
- 32: 32,
540
- 35: [1, 33],
541
- 37: [1, 34]
542
- }),
543
- { 1: [2, 7] },
544
- e(S, [2, 13]),
545
- {
546
- 26: 35,
547
- 31: n
548
- },
549
- { 31: [2, 14] },
550
- { 17: [1, 36] },
551
- e(m, [2, 24]),
552
- {
553
- 10: r,
554
- 11: 37,
555
- 13: 4,
556
- 14: 22,
557
- 15: p,
558
- 16: L,
559
- 19: 5,
560
- 20: 6,
561
- 21: l,
562
- 22: 8,
563
- 23: 9,
564
- 24: 10,
565
- 25: 11,
566
- 26: 12,
567
- 28: i,
568
- 29: o,
569
- 31: n,
570
- 39: c,
571
- 43: d,
572
- 46: b
573
- },
574
- { 30: [1, 38] },
575
- { 41: [1, 39] },
576
- { 41: [1, 40] },
577
- { 45: [1, 41] },
578
- { 48: [1, 42] },
579
- e(x, [2, 30]),
580
- { 18: [1, 43] },
581
- { 18: [1, 44] },
582
- e(m, [2, 23]),
583
- { 18: [1, 45] },
584
- { 30: [1, 46] },
585
- e(f, [2, 28]),
586
- e(f, [2, 35]),
587
- e(f, [2, 36]),
588
- e(f, [2, 37]),
589
- e(f, [2, 38]),
590
- { 36: [1, 47] },
591
- {
592
- 33: 48,
593
- 34: D
594
- },
595
- { 15: [1, 50] },
596
- e(f, [2, 27]),
597
- e(x, [2, 33]),
598
- { 38: [1, 51] },
599
- {
600
- 33: 52,
601
- 34: D,
602
- 38: [2, 31]
603
- },
604
- { 31: [2, 15] },
605
- e(x, [2, 34]),
606
- { 38: [2, 32] }
607
- ],
608
- defaultActions: {
609
- 20: [2, 7],
610
- 23: [2, 14],
611
- 50: [2, 15],
612
- 52: [2, 32]
613
- },
614
- parseError: /* @__PURE__ */ h(function(t, u) {
615
- if (u.recoverable) this.trace(t);
616
- else {
617
- var y = Error(t);
618
- throw y.hash = u, y;
619
- }
620
- }, "parseError"),
621
- parse: /* @__PURE__ */ h(function(t) {
622
- var u = this, y = [0], g = [], E = [null], s = [], B = this.table, a = "", R = 0, M = 0, G = 0, H = 2, K = 1, q = s.slice.call(arguments, 1), w = Object.create(this.lexer), C = { yy: {} };
623
- for (var V in this.yy) Object.prototype.hasOwnProperty.call(this.yy, V) && (C.yy[V] = this.yy[V]);
624
- w.setInput(t, C.yy), C.yy.lexer = w, C.yy.parser = this, w.yylloc === void 0 && (w.yylloc = {});
625
- var J = w.yylloc;
626
- s.push(J);
627
- var Re = w.options && w.options.ranges;
628
- this.parseError = typeof C.yy.parseError == "function" ? C.yy.parseError : Object.getPrototypeOf(this).parseError;
629
- function ve(I) {
630
- y.length -= 2 * I, E.length -= I, s.length -= I;
631
- }
632
- h(ve, "popStack");
633
- function ge() {
634
- var I = g.pop() || w.lex() || K;
635
- return typeof I != "number" && (I instanceof Array && (g = I, I = g.pop()), I = u.symbols_[I] || I), I;
636
- }
637
- h(ge, "lex");
638
- for (var $, Z, A, N, Q, v = {}, Y, z, de, j; ; ) {
639
- if (A = y[y.length - 1], this.defaultActions[A] ? N = this.defaultActions[A] : ($ ??= ge(), N = B[A] && B[A][$]), N === void 0 || !N.length || !N[0]) {
640
- var pe = "";
641
- for (Y in j = [], B[A]) this.terminals_[Y] && Y > H && j.push("'" + this.terminals_[Y] + "'");
642
- pe = w.showPosition ? "Parse error on line " + (R + 1) + `:
643
- ` + w.showPosition() + `
644
- Expecting ` + j.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : "Parse error on line " + (R + 1) + ": Unexpected " + ($ == K ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(pe, {
645
- text: w.match,
646
- token: this.terminals_[$] || $,
647
- line: w.yylineno,
648
- loc: J,
649
- expected: j
650
- });
651
- }
652
- if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + A + ", token: " + $);
653
- switch (N[0]) {
654
- case 1:
655
- y.push($), E.push(w.yytext), s.push(w.yylloc), y.push(N[1]), $ = null, Z ? ($ = Z, Z = null) : (M = w.yyleng, a = w.yytext, R = w.yylineno, J = w.yylloc, G > 0);
656
- break;
657
- case 2:
658
- if (z = this.productions_[N[1]][1], v.$ = E[E.length - z], v._$ = {
659
- first_line: s[s.length - (z || 1)].first_line,
660
- last_line: s[s.length - 1].last_line,
661
- first_column: s[s.length - (z || 1)].first_column,
662
- last_column: s[s.length - 1].last_column
663
- }, Re && (v._$.range = [s[s.length - (z || 1)].range[0], s[s.length - 1].range[1]]), Q = this.performAction.apply(v, [
664
- a,
665
- M,
666
- R,
667
- C.yy,
668
- N[1],
669
- E,
670
- s
671
- ].concat(q)), Q !== void 0) return Q;
672
- z && (y = y.slice(0, -1 * z * 2), E = E.slice(0, -1 * z), s = s.slice(0, -1 * z)), y.push(this.productions_[N[1]][0]), E.push(v.$), s.push(v._$), de = B[y[y.length - 2]][y[y.length - 1]], y.push(de);
673
- break;
674
- case 3:
675
- return !0;
676
- }
677
- }
678
- return !0;
679
- }, "parse")
680
- };
681
- k.lexer = /* @__PURE__ */ (function() {
682
- return {
683
- EOF: 1,
684
- parseError: /* @__PURE__ */ h(function(t, u) {
685
- if (this.yy.parser) this.yy.parser.parseError(t, u);
686
- else throw Error(t);
687
- }, "parseError"),
688
- setInput: /* @__PURE__ */ h(function(t, u) {
689
- return this.yy = u || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
690
- first_line: 1,
691
- first_column: 0,
692
- last_line: 1,
693
- last_column: 0
694
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
695
- }, "setInput"),
696
- input: /* @__PURE__ */ h(function() {
697
- var t = this._input[0];
698
- return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
699
- }, "input"),
700
- unput: /* @__PURE__ */ h(function(t) {
701
- var u = t.length, y = t.split(/(?:\r\n?|\n)/g);
702
- this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
703
- var g = this.match.split(/(?:\r\n?|\n)/g);
704
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
705
- var E = this.yylloc.range;
706
- return this.yylloc = {
707
- first_line: this.yylloc.first_line,
708
- last_line: this.yylineno + 1,
709
- first_column: this.yylloc.first_column,
710
- last_column: y ? (y.length === g.length ? this.yylloc.first_column : 0) + g[g.length - y.length].length - y[0].length : this.yylloc.first_column - u
711
- }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
712
- }, "unput"),
713
- more: /* @__PURE__ */ h(function() {
714
- return this._more = !0, this;
715
- }, "more"),
716
- reject: /* @__PURE__ */ h(function() {
717
- if (this.options.backtrack_lexer) this._backtrack = !0;
718
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
719
- ` + this.showPosition(), {
720
- text: "",
721
- token: null,
722
- line: this.yylineno
723
- });
724
- return this;
725
- }, "reject"),
726
- less: /* @__PURE__ */ h(function(t) {
727
- this.unput(this.match.slice(t));
728
- }, "less"),
729
- pastInput: /* @__PURE__ */ h(function() {
730
- var t = this.matched.substr(0, this.matched.length - this.match.length);
731
- return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
732
- }, "pastInput"),
733
- upcomingInput: /* @__PURE__ */ h(function() {
734
- var t = this.match;
735
- return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
736
- }, "upcomingInput"),
737
- showPosition: /* @__PURE__ */ h(function() {
738
- var t = this.pastInput(), u = Array(t.length + 1).join("-");
739
- return t + this.upcomingInput() + `
740
- ` + u + "^";
741
- }, "showPosition"),
742
- test_match: /* @__PURE__ */ h(function(t, u) {
743
- var y, g, E;
744
- if (this.options.backtrack_lexer && (E = {
745
- yylineno: this.yylineno,
746
- yylloc: {
747
- first_line: this.yylloc.first_line,
748
- last_line: this.last_line,
749
- first_column: this.yylloc.first_column,
750
- last_column: this.yylloc.last_column
751
- },
752
- yytext: this.yytext,
753
- match: this.match,
754
- matches: this.matches,
755
- matched: this.matched,
756
- yyleng: this.yyleng,
757
- offset: this.offset,
758
- _more: this._more,
759
- _input: this._input,
760
- yy: this.yy,
761
- conditionStack: this.conditionStack.slice(0),
762
- done: this.done
763
- }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), g = t[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
764
- first_line: this.yylloc.last_line,
765
- last_line: this.yylineno + 1,
766
- first_column: this.yylloc.last_column,
767
- last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
768
- }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], y = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) return y;
769
- if (this._backtrack) {
770
- for (var s in E) this[s] = E[s];
771
- return !1;
772
- }
773
- return !1;
774
- }, "test_match"),
775
- next: /* @__PURE__ */ h(function() {
776
- if (this.done) return this.EOF;
777
- this._input || (this.done = !0);
778
- var t, u, y, g;
779
- this._more || (this.yytext = "", this.match = "");
780
- for (var E = this._currentRules(), s = 0; s < E.length; s++) if (y = this._input.match(this.rules[E[s]]), y && (!u || y[0].length > u[0].length)) {
781
- if (u = y, g = s, this.options.backtrack_lexer) {
782
- if (t = this.test_match(y, E[s]), t !== !1) return t;
783
- if (this._backtrack) {
784
- u = !1;
785
- continue;
786
- }
787
- return !1;
788
- }
789
- if (!this.options.flex) break;
790
- }
791
- return u ? (t = this.test_match(u, E[g]), t !== !1 && t) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
792
- ` + this.showPosition(), {
793
- text: "",
794
- token: null,
795
- line: this.yylineno
796
- });
797
- }, "next"),
798
- lex: /* @__PURE__ */ h(function() {
799
- return this.next() || this.lex();
800
- }, "lex"),
801
- begin: /* @__PURE__ */ h(function(t) {
802
- this.conditionStack.push(t);
803
- }, "begin"),
804
- popState: /* @__PURE__ */ h(function() {
805
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
806
- }, "popState"),
807
- _currentRules: /* @__PURE__ */ h(function() {
808
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
809
- }, "_currentRules"),
810
- topState: /* @__PURE__ */ h(function(t) {
811
- return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
812
- }, "topState"),
813
- pushState: /* @__PURE__ */ h(function(t) {
814
- this.begin(t);
815
- }, "pushState"),
816
- stateStackSize: /* @__PURE__ */ h(function() {
817
- return this.conditionStack.length;
818
- }, "stateStackSize"),
819
- options: {},
820
- performAction: /* @__PURE__ */ h(function(t, u, y, g) {
821
- switch (y) {
822
- case 0:
823
- return t.getLogger().debug("Found block-beta"), 10;
824
- case 1:
825
- return t.getLogger().debug("Found id-block"), 29;
826
- case 2:
827
- return t.getLogger().debug("Found block"), 10;
828
- case 3:
829
- t.getLogger().debug(".", u.yytext);
830
- break;
831
- case 4:
832
- t.getLogger().debug("_", u.yytext);
833
- break;
834
- case 5:
835
- return 5;
836
- case 6:
837
- return u.yytext = -1, 28;
838
- case 7:
839
- return u.yytext = u.yytext.replace(/columns\s+/, ""), t.getLogger().debug("COLUMNS (LEX)", u.yytext), 28;
840
- case 8:
841
- this.pushState("md_string");
842
- break;
843
- case 9:
844
- return "MD_STR";
845
- case 10:
846
- this.popState();
847
- break;
848
- case 11:
849
- this.pushState("string");
850
- break;
851
- case 12:
852
- t.getLogger().debug("LEX: POPPING STR:", u.yytext), this.popState();
853
- break;
854
- case 13:
855
- return t.getLogger().debug("LEX: STR end:", u.yytext), "STR";
856
- case 14:
857
- return u.yytext = u.yytext.replace(/space\:/, ""), t.getLogger().debug("SPACE NUM (LEX)", u.yytext), 21;
858
- case 15:
859
- return u.yytext = "1", t.getLogger().debug("COLUMNS (LEX)", u.yytext), 21;
860
- case 16:
861
- return 42;
862
- case 17:
863
- return "LINKSTYLE";
864
- case 18:
865
- return "INTERPOLATE";
866
- case 19:
867
- return this.pushState("CLASSDEF"), 39;
868
- case 20:
869
- return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
870
- case 21:
871
- return this.popState(), this.pushState("CLASSDEFID"), 40;
872
- case 22:
873
- return this.popState(), 41;
874
- case 23:
875
- return this.pushState("CLASS"), 43;
876
- case 24:
877
- return this.popState(), this.pushState("CLASS_STYLE"), 44;
878
- case 25:
879
- return this.popState(), 45;
880
- case 26:
881
- return this.pushState("STYLE_STMNT"), 46;
882
- case 27:
883
- return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
884
- case 28:
885
- return this.popState(), 48;
886
- case 29:
887
- return this.pushState("acc_title"), "acc_title";
888
- case 30:
889
- return this.popState(), "acc_title_value";
890
- case 31:
891
- return this.pushState("acc_descr"), "acc_descr";
892
- case 32:
893
- return this.popState(), "acc_descr_value";
894
- case 33:
895
- this.pushState("acc_descr_multiline");
896
- break;
897
- case 34:
898
- this.popState();
899
- break;
900
- case 35:
901
- return "acc_descr_multiline_value";
902
- case 36:
903
- return 30;
904
- case 37:
905
- return this.popState(), t.getLogger().debug("Lex: (("), "NODE_DEND";
906
- case 38:
907
- return this.popState(), t.getLogger().debug("Lex: (("), "NODE_DEND";
908
- case 39:
909
- return this.popState(), t.getLogger().debug("Lex: ))"), "NODE_DEND";
910
- case 40:
911
- return this.popState(), t.getLogger().debug("Lex: (("), "NODE_DEND";
912
- case 41:
913
- return this.popState(), t.getLogger().debug("Lex: (("), "NODE_DEND";
914
- case 42:
915
- return this.popState(), t.getLogger().debug("Lex: (-"), "NODE_DEND";
916
- case 43:
917
- return this.popState(), t.getLogger().debug("Lex: -)"), "NODE_DEND";
918
- case 44:
919
- return this.popState(), t.getLogger().debug("Lex: (("), "NODE_DEND";
920
- case 45:
921
- return this.popState(), t.getLogger().debug("Lex: ]]"), "NODE_DEND";
922
- case 46:
923
- return this.popState(), t.getLogger().debug("Lex: ("), "NODE_DEND";
924
- case 47:
925
- return this.popState(), t.getLogger().debug("Lex: ])"), "NODE_DEND";
926
- case 48:
927
- return this.popState(), t.getLogger().debug("Lex: /]"), "NODE_DEND";
928
- case 49:
929
- return this.popState(), t.getLogger().debug("Lex: /]"), "NODE_DEND";
930
- case 50:
931
- return this.popState(), t.getLogger().debug("Lex: )]"), "NODE_DEND";
932
- case 51:
933
- return this.popState(), t.getLogger().debug("Lex: )"), "NODE_DEND";
934
- case 52:
935
- return this.popState(), t.getLogger().debug("Lex: ]>"), "NODE_DEND";
936
- case 53:
937
- return this.popState(), t.getLogger().debug("Lex: ]"), "NODE_DEND";
938
- case 54:
939
- return t.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
940
- case 55:
941
- return t.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
942
- case 56:
943
- return t.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
944
- case 57:
945
- return t.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
946
- case 58:
947
- return t.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
948
- case 59:
949
- return t.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
950
- case 60:
951
- return t.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
952
- case 61:
953
- return t.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
954
- case 62:
955
- return t.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
956
- case 63:
957
- return t.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
958
- case 64:
959
- return t.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
960
- case 65:
961
- return this.pushState("NODE"), 35;
962
- case 66:
963
- return this.pushState("NODE"), 35;
964
- case 67:
965
- return this.pushState("NODE"), 35;
966
- case 68:
967
- return this.pushState("NODE"), 35;
968
- case 69:
969
- return this.pushState("NODE"), 35;
970
- case 70:
971
- return this.pushState("NODE"), 35;
972
- case 71:
973
- return this.pushState("NODE"), 35;
974
- case 72:
975
- return t.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
976
- case 73:
977
- return this.pushState("BLOCK_ARROW"), t.getLogger().debug("LEX ARR START"), 37;
978
- case 74:
979
- return t.getLogger().debug("Lex: NODE_ID", u.yytext), 31;
980
- case 75:
981
- return t.getLogger().debug("Lex: EOF", u.yytext), 8;
982
- case 76:
983
- this.pushState("md_string");
984
- break;
985
- case 77:
986
- this.pushState("md_string");
987
- break;
988
- case 78:
989
- return "NODE_DESCR";
990
- case 79:
991
- this.popState();
992
- break;
993
- case 80:
994
- t.getLogger().debug("Lex: Starting string"), this.pushState("string");
995
- break;
996
- case 81:
997
- t.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
998
- break;
999
- case 82:
1000
- return t.getLogger().debug("LEX: NODE_DESCR:", u.yytext), "NODE_DESCR";
1001
- case 83:
1002
- t.getLogger().debug("LEX POPPING"), this.popState();
1003
- break;
1004
- case 84:
1005
- t.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
1006
- break;
1007
- case 85:
1008
- return u.yytext = u.yytext.replace(/^,\s*/, ""), t.getLogger().debug("Lex (right): dir:", u.yytext), "DIR";
1009
- case 86:
1010
- return u.yytext = u.yytext.replace(/^,\s*/, ""), t.getLogger().debug("Lex (left):", u.yytext), "DIR";
1011
- case 87:
1012
- return u.yytext = u.yytext.replace(/^,\s*/, ""), t.getLogger().debug("Lex (x):", u.yytext), "DIR";
1013
- case 88:
1014
- return u.yytext = u.yytext.replace(/^,\s*/, ""), t.getLogger().debug("Lex (y):", u.yytext), "DIR";
1015
- case 89:
1016
- return u.yytext = u.yytext.replace(/^,\s*/, ""), t.getLogger().debug("Lex (up):", u.yytext), "DIR";
1017
- case 90:
1018
- return u.yytext = u.yytext.replace(/^,\s*/, ""), t.getLogger().debug("Lex (down):", u.yytext), "DIR";
1019
- case 91:
1020
- return u.yytext = "]>", t.getLogger().debug("Lex (ARROW_DIR end):", u.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
1021
- case 92:
1022
- return t.getLogger().debug("Lex: LINK", "#" + u.yytext + "#"), 15;
1023
- case 93:
1024
- return t.getLogger().debug("Lex: LINK", u.yytext), 15;
1025
- case 94:
1026
- return t.getLogger().debug("Lex: LINK", u.yytext), 15;
1027
- case 95:
1028
- return t.getLogger().debug("Lex: LINK", u.yytext), 15;
1029
- case 96:
1030
- return t.getLogger().debug("Lex: START_LINK", u.yytext), this.pushState("LLABEL"), 16;
1031
- case 97:
1032
- return t.getLogger().debug("Lex: START_LINK", u.yytext), this.pushState("LLABEL"), 16;
1033
- case 98:
1034
- return t.getLogger().debug("Lex: START_LINK", u.yytext), this.pushState("LLABEL"), 16;
1035
- case 99:
1036
- this.pushState("md_string");
1037
- break;
1038
- case 100:
1039
- return t.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
1040
- case 101:
1041
- return this.popState(), t.getLogger().debug("Lex: LINK", "#" + u.yytext + "#"), 15;
1042
- case 102:
1043
- return this.popState(), t.getLogger().debug("Lex: LINK", u.yytext), 15;
1044
- case 103:
1045
- return this.popState(), t.getLogger().debug("Lex: LINK", u.yytext), 15;
1046
- case 104:
1047
- return t.getLogger().debug("Lex: COLON", u.yytext), u.yytext = u.yytext.slice(1), 27;
1048
- }
1049
- }, "anonymous"),
1050
- rules: [
1051
- /^(?:block-beta\b)/,
1052
- /^(?:block:)/,
1053
- /^(?:block\b)/,
1054
- /^(?:[\s]+)/,
1055
- /^(?:[\n]+)/,
1056
- /^(?:((\u000D\u000A)|(\u000A)))/,
1057
- /^(?:columns\s+auto\b)/,
1058
- /^(?:columns\s+[\d]+)/,
1059
- /^(?:["][`])/,
1060
- /^(?:[^`"]+)/,
1061
- /^(?:[`]["])/,
1062
- /^(?:["])/,
1063
- /^(?:["])/,
1064
- /^(?:[^"]*)/,
1065
- /^(?:space[:]\d+)/,
1066
- /^(?:space\b)/,
1067
- /^(?:default\b)/,
1068
- /^(?:linkStyle\b)/,
1069
- /^(?:interpolate\b)/,
1070
- /^(?:classDef\s+)/,
1071
- /^(?:DEFAULT\s+)/,
1072
- /^(?:\w+\s+)/,
1073
- /^(?:[^\n]*)/,
1074
- /^(?:class\s+)/,
1075
- /^(?:(\w+)+((,\s*\w+)*))/,
1076
- /^(?:[^\n]*)/,
1077
- /^(?:style\s+)/,
1078
- /^(?:(\w+)+((,\s*\w+)*))/,
1079
- /^(?:[^\n]*)/,
1080
- /^(?:accTitle\s*:\s*)/,
1081
- /^(?:(?!\n||)*[^\n]*)/,
1082
- /^(?:accDescr\s*:\s*)/,
1083
- /^(?:(?!\n||)*[^\n]*)/,
1084
- /^(?:accDescr\s*\{\s*)/,
1085
- /^(?:[\}])/,
1086
- /^(?:[^\}]*)/,
1087
- /^(?:end\b\s*)/,
1088
- /^(?:\(\(\()/,
1089
- /^(?:\)\)\))/,
1090
- /^(?:[\)]\))/,
1091
- /^(?:\}\})/,
1092
- /^(?:\})/,
1093
- /^(?:\(-)/,
1094
- /^(?:-\))/,
1095
- /^(?:\(\()/,
1096
- /^(?:\]\])/,
1097
- /^(?:\()/,
1098
- /^(?:\]\))/,
1099
- /^(?:\\\])/,
1100
- /^(?:\/\])/,
1101
- /^(?:\)\])/,
1102
- /^(?:[\)])/,
1103
- /^(?:\]>)/,
1104
- /^(?:[\]])/,
1105
- /^(?:-\))/,
1106
- /^(?:\(-)/,
1107
- /^(?:\)\))/,
1108
- /^(?:\))/,
1109
- /^(?:\(\(\()/,
1110
- /^(?:\(\()/,
1111
- /^(?:\{\{)/,
1112
- /^(?:\{)/,
1113
- /^(?:>)/,
1114
- /^(?:\(\[)/,
1115
- /^(?:\()/,
1116
- /^(?:\[\[)/,
1117
- /^(?:\[\|)/,
1118
- /^(?:\[\()/,
1119
- /^(?:\)\)\))/,
1120
- /^(?:\[\\)/,
1121
- /^(?:\[\/)/,
1122
- /^(?:\[\\)/,
1123
- /^(?:\[)/,
1124
- /^(?:<\[)/,
1125
- /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
1126
- /^(?:$)/,
1127
- /^(?:["][`])/,
1128
- /^(?:["][`])/,
1129
- /^(?:[^`"]+)/,
1130
- /^(?:[`]["])/,
1131
- /^(?:["])/,
1132
- /^(?:["])/,
1133
- /^(?:[^"]+)/,
1134
- /^(?:["])/,
1135
- /^(?:\]>\s*\()/,
1136
- /^(?:,?\s*right\s*)/,
1137
- /^(?:,?\s*left\s*)/,
1138
- /^(?:,?\s*x\s*)/,
1139
- /^(?:,?\s*y\s*)/,
1140
- /^(?:,?\s*up\s*)/,
1141
- /^(?:,?\s*down\s*)/,
1142
- /^(?:\)\s*)/,
1143
- /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1144
- /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1145
- /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1146
- /^(?:\s*~~[\~]+\s*)/,
1147
- /^(?:\s*[xo<]?--\s*)/,
1148
- /^(?:\s*[xo<]?==\s*)/,
1149
- /^(?:\s*[xo<]?-\.\s*)/,
1150
- /^(?:["][`])/,
1151
- /^(?:["])/,
1152
- /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1153
- /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1154
- /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1155
- /^(?::\d+)/
1156
- ],
1157
- conditions: {
1158
- STYLE_DEFINITION: {
1159
- rules: [28],
1160
- inclusive: !1
1161
- },
1162
- STYLE_STMNT: {
1163
- rules: [27],
1164
- inclusive: !1
1165
- },
1166
- CLASSDEFID: {
1167
- rules: [22],
1168
- inclusive: !1
1169
- },
1170
- CLASSDEF: {
1171
- rules: [20, 21],
1172
- inclusive: !1
1173
- },
1174
- CLASS_STYLE: {
1175
- rules: [25],
1176
- inclusive: !1
1177
- },
1178
- CLASS: {
1179
- rules: [24],
1180
- inclusive: !1
1181
- },
1182
- LLABEL: {
1183
- rules: [
1184
- 99,
1185
- 100,
1186
- 101,
1187
- 102,
1188
- 103
1189
- ],
1190
- inclusive: !1
1191
- },
1192
- ARROW_DIR: {
1193
- rules: [
1194
- 85,
1195
- 86,
1196
- 87,
1197
- 88,
1198
- 89,
1199
- 90,
1200
- 91
1201
- ],
1202
- inclusive: !1
1203
- },
1204
- BLOCK_ARROW: {
1205
- rules: [
1206
- 76,
1207
- 81,
1208
- 84
1209
- ],
1210
- inclusive: !1
1211
- },
1212
- NODE: {
1213
- rules: [
1214
- 37,
1215
- 38,
1216
- 39,
1217
- 40,
1218
- 41,
1219
- 42,
1220
- 43,
1221
- 44,
1222
- 45,
1223
- 46,
1224
- 47,
1225
- 48,
1226
- 49,
1227
- 50,
1228
- 51,
1229
- 52,
1230
- 53,
1231
- 77,
1232
- 80
1233
- ],
1234
- inclusive: !1
1235
- },
1236
- md_string: {
1237
- rules: [
1238
- 9,
1239
- 10,
1240
- 78,
1241
- 79
1242
- ],
1243
- inclusive: !1
1244
- },
1245
- space: {
1246
- rules: [],
1247
- inclusive: !1
1248
- },
1249
- string: {
1250
- rules: [
1251
- 12,
1252
- 13,
1253
- 82,
1254
- 83
1255
- ],
1256
- inclusive: !1
1257
- },
1258
- acc_descr_multiline: {
1259
- rules: [34, 35],
1260
- inclusive: !1
1261
- },
1262
- acc_descr: {
1263
- rules: [32],
1264
- inclusive: !1
1265
- },
1266
- acc_title: {
1267
- rules: [30],
1268
- inclusive: !1
1269
- },
1270
- INITIAL: {
1271
- rules: [
1272
- 0,
1273
- 1,
1274
- 2,
1275
- 3,
1276
- 4,
1277
- 5,
1278
- 6,
1279
- 7,
1280
- 8,
1281
- 11,
1282
- 14,
1283
- 15,
1284
- 16,
1285
- 17,
1286
- 18,
1287
- 19,
1288
- 23,
1289
- 26,
1290
- 29,
1291
- 31,
1292
- 33,
1293
- 36,
1294
- 54,
1295
- 55,
1296
- 56,
1297
- 57,
1298
- 58,
1299
- 59,
1300
- 60,
1301
- 61,
1302
- 62,
1303
- 63,
1304
- 64,
1305
- 65,
1306
- 66,
1307
- 67,
1308
- 68,
1309
- 69,
1310
- 70,
1311
- 71,
1312
- 72,
1313
- 73,
1314
- 74,
1315
- 75,
1316
- 92,
1317
- 93,
1318
- 94,
1319
- 95,
1320
- 96,
1321
- 97,
1322
- 98,
1323
- 104
1324
- ],
1325
- inclusive: !0
1326
- }
1327
- }
1328
- };
1329
- })();
1330
- function T() {
1331
- this.yy = {};
1332
- }
1333
- return h(T, "Parser"), T.prototype = k, k.Parser = T, new T();
1334
- })();
1335
- ie.parser = ie;
1336
- var Dt = ie, O = /* @__PURE__ */ new Map(), le = [], re = /* @__PURE__ */ new Map(), ye = "color", be = "fill", $t = "bgFill", me = ",", X = /* @__PURE__ */ new Map(), ne = "", Nt = /* @__PURE__ */ h((e) => We.sanitizeText(e, xe()), "sanitizeText"), It = /* @__PURE__ */ h(function(e, r = "") {
1337
- let l = X.get(e);
1338
- l || (l = {
1339
- id: e,
1340
- styles: [],
1341
- textStyles: []
1342
- }, X.set(e, l)), r?.split(me).forEach((i) => {
1343
- let o = i.replace(/([^;]*);/, "$1").trim();
1344
- if (RegExp(ye).exec(i)) {
1345
- let n = o.replace(be, $t).replace(ye, be);
1346
- l.textStyles.push(n);
1347
- }
1348
- l.styles.push(o);
1349
- });
1350
- }, "addStyleClass"), Ot = /* @__PURE__ */ h(function(e, r = "") {
1351
- let l = O.get(e);
1352
- r != null && (l.styles = r.split(me));
1353
- }, "addStyle2Node"), Tt = /* @__PURE__ */ h(function(e, r) {
1354
- e.split(",").forEach(function(l) {
1355
- let i = O.get(l);
1356
- if (i === void 0) {
1357
- let o = l.trim();
1358
- i = {
1359
- id: o,
1360
- type: "na",
1361
- children: []
1362
- }, O.set(o, i);
1363
- }
1364
- i.classes || (i.classes = []), i.classes.push(r);
1365
- });
1366
- }, "setCssClass"), _e = /* @__PURE__ */ h((e, r) => {
1367
- let l = e.flat(), i = [], o = l.find((n) => n?.type === "column-setting")?.columns ?? -1;
1368
- for (let n of l) {
1369
- if (typeof o == "number" && o > 0 && n.type !== "column-setting" && typeof n.widthInColumns == "number" && n.widthInColumns > o && _.warn(`Block ${n.id} width ${n.widthInColumns} exceeds configured column width ${o}`), n.label &&= Nt(n.label), n.type === "classDef") {
1370
- It(n.id, n.css);
1371
- continue;
1372
- }
1373
- if (n.type === "applyClass") {
1374
- Tt(n.id, n?.styleClass ?? "");
1375
- continue;
1376
- }
1377
- if (n.type === "applyStyles") {
1378
- n?.stylesStr && Ot(n.id, n?.stylesStr);
1379
- continue;
1380
- }
1381
- if (n.type === "column-setting") r.columns = n.columns ?? -1;
1382
- else if (n.type === "edge") {
1383
- let c = (re.get(n.id) ?? 0) + 1;
1384
- re.set(n.id, c), n.id = c + "-" + n.id, le.push(n);
1385
- } else {
1386
- n.label ||= n.type === "composite" ? "" : n.id;
1387
- let c = O.get(n.id);
1388
- if (c === void 0 ? O.set(n.id, n) : (n.type !== "na" && (c.type = n.type), n.label !== n.id && (c.label = n.label)), n.children && _e(n.children, n), n.type === "space") {
1389
- let d = n.width ?? 1;
1390
- for (let b = 0; b < d; b++) {
1391
- let S = mt(n);
1392
- S.id = S.id + "-" + b, O.set(S.id, S), i.push(S);
1393
- }
1394
- } else c === void 0 && i.push(n);
1395
- }
1396
- }
1397
- r.children = i;
1398
- }, "populateBlockDatabase"), ae = [], P = {
1399
- id: "root",
1400
- type: "composite",
1401
- children: [],
1402
- columns: -1
1403
- }, zt = /* @__PURE__ */ h(() => {
1404
- _.debug("Clear called"), Fe(), P = {
1405
- id: "root",
1406
- type: "composite",
1407
- children: [],
1408
- columns: -1
1409
- }, O = /* @__PURE__ */ new Map([["root", P]]), ae = [], X = /* @__PURE__ */ new Map(), le = [], re = /* @__PURE__ */ new Map(), ne = "";
1410
- }, "clear");
1411
- function ke(e) {
1412
- switch (_.debug("typeStr2Type", e), e) {
1413
- case "[]":
1414
- return "square";
1415
- case "()":
1416
- return _.debug("we have a round"), "round";
1417
- case "(())":
1418
- return "circle";
1419
- case ">]":
1420
- return "rect_left_inv_arrow";
1421
- case "{}":
1422
- return "diamond";
1423
- case "{{}}":
1424
- return "hexagon";
1425
- case "([])":
1426
- return "stadium";
1427
- case "[[]]":
1428
- return "subroutine";
1429
- case "[()]":
1430
- return "cylinder";
1431
- case "((()))":
1432
- return "doublecircle";
1433
- case "[//]":
1434
- return "lean_right";
1435
- case "[\\\\]":
1436
- return "lean_left";
1437
- case "[/\\]":
1438
- return "trapezoid";
1439
- case "[\\/]":
1440
- return "inv_trapezoid";
1441
- case "<[]>":
1442
- return "block_arrow";
1443
- default:
1444
- return "na";
1445
- }
1446
- }
1447
- h(ke, "typeStr2Type");
1448
- function Ee(e) {
1449
- return (_.debug("typeStr2Type", e), e) === "==" ? "thick" : "normal";
1450
- }
1451
- h(Ee, "edgeTypeStr2Type");
1452
- function we(e) {
1453
- switch (e.trim().slice(-1)) {
1454
- case "x":
1455
- return "arrow_cross";
1456
- case "o":
1457
- return "arrow_circle";
1458
- case ">":
1459
- return "arrow_point";
1460
- default:
1461
- return "";
1462
- }
1463
- }
1464
- h(we, "edgeStrToEdgeData");
1465
- function De(e) {
1466
- switch (e.trim().charAt(0)) {
1467
- case "x":
1468
- return "arrow_cross";
1469
- case "o":
1470
- return "arrow_circle";
1471
- case "<":
1472
- return "arrow_point";
1473
- default:
1474
- return "arrow_open";
1475
- }
1476
- }
1477
- h(De, "edgeStrToEdgeStartData");
1478
- function $e(e) {
1479
- return e.includes("==") ? "thick" : "normal";
1480
- }
1481
- h($e, "edgeStrToThickness");
1482
- function Ne(e) {
1483
- return e.includes(".-") ? "dotted" : "solid";
1484
- }
1485
- h(Ne, "edgeStrToPattern");
1486
- var fe = 0, Ct = {
1487
- getConfig: /* @__PURE__ */ h(() => F().block, "getConfig"),
1488
- typeStr2Type: ke,
1489
- edgeTypeStr2Type: Ee,
1490
- edgeStrToEdgeData: we,
1491
- edgeStrToEdgeStartData: De,
1492
- edgeStrToThickness: $e,
1493
- edgeStrToPattern: Ne,
1494
- getLogger: /* @__PURE__ */ h(() => _, "getLogger"),
1495
- getBlocksFlat: /* @__PURE__ */ h(() => [...O.values()], "getBlocksFlat"),
1496
- getBlocks: /* @__PURE__ */ h(() => ae || [], "getBlocks"),
1497
- getEdges: /* @__PURE__ */ h(() => le, "getEdges"),
1498
- setHierarchy: /* @__PURE__ */ h((e) => {
1499
- P.children = e, _e(e, P), ae = P.children;
1500
- }, "setHierarchy"),
1501
- getBlock: /* @__PURE__ */ h((e) => O.get(e), "getBlock"),
1502
- setBlock: /* @__PURE__ */ h((e) => {
1503
- O.set(e.id, e);
1504
- }, "setBlock"),
1505
- getColumns: /* @__PURE__ */ h((e) => {
1506
- let r = O.get(e);
1507
- return r ? r.columns ? r.columns : r.children ? r.children.length : -1 : -1;
1508
- }, "getColumns"),
1509
- getClasses: /* @__PURE__ */ h(function() {
1510
- return X;
1511
- }, "getClasses"),
1512
- clear: zt,
1513
- generateId: /* @__PURE__ */ h(() => (fe++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + fe), "generateId"),
1514
- setDiagramId: /* @__PURE__ */ h((e) => {
1515
- ne = e;
1516
- }, "setDiagramId"),
1517
- getDiagramId: /* @__PURE__ */ h(() => ne, "getDiagramId")
1518
- }, se = /* @__PURE__ */ h((e, r) => {
1519
- let l = xt, i = l(e, "r"), o = l(e, "g"), n = l(e, "b");
1520
- return Xe(i, o, n, r);
1521
- }, "fade"), At = /* @__PURE__ */ h((e) => `.label {
1522
- font-family: ${e.fontFamily};
1523
- color: ${e.nodeTextColor || e.textColor};
1524
- }
1525
- .cluster-label text {
1526
- fill: ${e.titleColor};
1527
- }
1528
- .cluster-label span {
1529
- color: ${e.titleColor};
1530
- }
1531
-
1532
-
1533
-
1534
- .label text,span {
1535
- fill: ${e.nodeTextColor || e.textColor};
1536
- color: ${e.nodeTextColor || e.textColor};
1537
- }
1538
-
1539
- .node rect,
1540
- .node circle,
1541
- .node ellipse,
1542
- .node polygon,
1543
- .node path {
1544
- fill: ${e.mainBkg};
1545
- stroke: ${e.nodeBorder};
1546
- stroke-width: 1px;
1547
- }
1548
- .flowchart-label text {
1549
- text-anchor: middle;
1550
- }
1551
- // .flowchart-label .text-outer-tspan {
1552
- // text-anchor: middle;
1553
- // }
1554
- // .flowchart-label .text-inner-tspan {
1555
- // text-anchor: start;
1556
- // }
1557
-
1558
- .node .label {
1559
- text-align: center;
1560
- }
1561
- .node.clickable {
1562
- cursor: pointer;
1563
- }
1564
-
1565
- .arrowheadPath {
1566
- fill: ${e.arrowheadColor};
1567
- }
1568
-
1569
- .edgePaths .path {
1570
- stroke: ${e.lineColor};
1571
- stroke-width: 2.0px;
1572
- }
1573
-
1574
- .flowchart-link {
1575
- stroke: ${e.lineColor};
1576
- fill: none;
1577
- }
1578
-
1579
- .edgeLabel {
1580
- background-color: ${e.edgeLabelBackground};
1581
- /*
1582
- * This is for backward compatibility with existing code that didn't
1583
- * add a \`<p>\` around edge labels.
1584
- *
1585
- * TODO: We should probably remove this in a future release.
1586
- */
1587
- p {
1588
- margin: 0;
1589
- padding: 0;
1590
- display: inline;
1591
- }
1592
- rect {
1593
- opacity: 0.5;
1594
- background-color: ${e.edgeLabelBackground};
1595
- fill: ${e.edgeLabelBackground};
1596
- }
1597
- text-align: center;
1598
- }
1599
-
1600
- /* For html labels only */
1601
- .labelBkg {
1602
- background-color: ${e.edgeLabelBackground};
1603
- }
1604
-
1605
- .node .cluster {
1606
- // fill: ${se(e.mainBkg, 0.5)};
1607
- fill: ${se(e.clusterBkg, 0.5)};
1608
- stroke: ${se(e.clusterBorder, 0.2)};
1609
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1610
- stroke-width: 1px;
1611
- }
1612
-
1613
- .cluster text {
1614
- fill: ${e.titleColor};
1615
- }
1616
-
1617
- .cluster span {
1618
- color: ${e.titleColor};
1619
- }
1620
- /* .cluster div {
1621
- color: ${e.titleColor};
1622
- } */
1623
-
1624
- div.mermaidTooltip {
1625
- position: absolute;
1626
- text-align: center;
1627
- max-width: 200px;
1628
- padding: 2px;
1629
- font-family: ${e.fontFamily};
1630
- font-size: 12px;
1631
- background: ${e.tertiaryColor};
1632
- border: 1px solid ${e.border2};
1633
- border-radius: 2px;
1634
- pointer-events: none;
1635
- z-index: 100;
1636
- }
1637
-
1638
- .flowchartTitleText {
1639
- text-anchor: middle;
1640
- font-size: 18px;
1641
- fill: ${e.textColor};
1642
- }
1643
- ${St()}
1644
- `, "getStyles");
1645
- function oe(e, r) {
1646
- if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1647
- if (r < 0 || !Number.isInteger(r)) throw Error("Position must be a non-negative integer." + r);
1648
- return e < 0 ? {
1649
- px: r,
1650
- py: 0
1651
- } : e === 1 ? {
1652
- px: 0,
1653
- py: r
1654
- } : {
1655
- px: r % e,
1656
- py: Math.floor(r / e)
1657
- };
1658
- }
1659
- h(oe, "calculateBlockPosition");
1660
- var Rt = /* @__PURE__ */ h((e) => {
1661
- let r = 0, l = 0;
1662
- for (let i of e.children) {
1663
- let { width: o, height: n, x: c, y: d } = i.size ?? {
1664
- width: 0,
1665
- height: 0,
1666
- x: 0,
1667
- y: 0
1668
- };
1669
- if (_.debug("getMaxChildSize abc95 child:", i.id, "width:", o, "height:", n, "x:", c, "y:", d, i.type), i.type === "space") continue;
1670
- let b = o / (i.widthInColumns ?? 1);
1671
- b > r && (r = b), n > l && (l = n);
1672
- }
1673
- return {
1674
- width: r,
1675
- height: l
1676
- };
1677
- }, "getMaxChildSize");
1678
- function W(e, r, l = 0, i = 0, o = 8) {
1679
- _.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", l), e?.size?.width || (e.size = {
1680
- width: l,
1681
- height: i,
1682
- x: 0,
1683
- y: 0
1684
- });
1685
- let n = 0, c = 0;
1686
- if (e.children?.length > 0) {
1687
- for (let x of e.children) W(x, r, 0, 0, o);
1688
- let d = Rt(e);
1689
- n = d.width, c = d.height, _.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", n, c);
1690
- for (let x of e.children) x.size && (_.debug(`abc95 Setting size of children of ${e.id} id=${x.id} ${n} ${c} ${JSON.stringify(x.size)}`), x.size.width = n * (x.widthInColumns ?? 1) + o * ((x.widthInColumns ?? 1) - 1), x.size.height = c, x.size.x = 0, x.size.y = 0, _.debug(`abc95 updating size of ${e.id} children child:${x.id} maxWidth:${n} maxHeight:${c}`));
1691
- for (let x of e.children) W(x, r, n, c, o);
1692
- let b = e.columns ?? -1, S = 0;
1693
- for (let x of e.children) S += x.widthInColumns ?? 1;
1694
- let f = e.children.length;
1695
- b > 0 && b < S && (f = b);
1696
- let p = Math.ceil(S / f), L = f * (n + o) + o, m = p * (c + o) + o;
1697
- if (L < l) {
1698
- _.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${l} siblingHeight ${i} width ${L}`), L = l, m = i;
1699
- let x = (l - f * o - o) / f, D = (i - p * o - o) / p;
1700
- _.debug("Size indata abc88", e.id, "childWidth", x, "maxWidth", n), _.debug("Size indata abc88", e.id, "childHeight", D, "maxHeight", c), _.debug("Size indata abc88 xSize", f, "padding", o);
1701
- for (let k of e.children) k.size && (k.size.width = x, k.size.height = D, k.size.x = 0, k.size.y = 0);
1702
- }
1703
- if (_.debug(`abc95 (finale calc) ${e.id} xSize ${f} ySize ${p} columns ${b}${e.children.length} width=${Math.max(L, e.size?.width || 0)}`), L < (e?.size?.width || 0)) {
1704
- L = e?.size?.width || 0;
1705
- let x = b > 0 ? Math.min(e.children.length, b) : e.children.length;
1706
- if (x > 0) {
1707
- let D = (L - x * o - o) / x;
1708
- _.debug("abc95 (growing to fit) width", e.id, L, e.size?.width, D);
1709
- for (let k of e.children) k.size && (k.size.width = D);
1710
- }
1711
- }
1712
- e.size = {
1713
- width: L,
1714
- height: m,
1715
- x: 0,
1716
- y: 0
1717
- };
1718
- }
1719
- _.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
1720
- }
1721
- h(W, "setBlockSizes");
1722
- function ce(e, r, l = 8) {
1723
- _.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1724
- let i = e.columns ?? -1;
1725
- if (_.debug("layoutBlocks columns abc95", e.id, "=>", i, e), e.children && e.children.length > 0) {
1726
- let o = e?.children[0]?.size?.width ?? 0, n = e.children.length * o + (e.children.length - 1) * l;
1727
- _.debug("widthOfChildren 88", n, "posX");
1728
- let c = /* @__PURE__ */ new Map();
1729
- {
1730
- let p = 0;
1731
- for (let L of e.children) {
1732
- if (!L.size) continue;
1733
- let { py: m } = oe(i, p), x = c.get(m) ?? 0;
1734
- L.size.height > x && c.set(m, L.size.height);
1735
- let D = L?.widthInColumns ?? 1;
1736
- i > 0 && (D = Math.min(D, i - p % i)), p += D;
1737
- }
1738
- }
1739
- let d = /* @__PURE__ */ new Map();
1740
- {
1741
- let p = 0, L = [...c.keys()].sort((m, x) => m - x);
1742
- for (let m of L) d.set(m, p), p += (c.get(m) ?? 0) + l;
1743
- }
1744
- let b = 0;
1745
- _.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1746
- let S = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -l, f = 0;
1747
- for (let p of e.children) {
1748
- let L = e;
1749
- if (!p.size) continue;
1750
- let { width: m, height: x } = p.size, { px: D, py: k } = oe(i, b);
1751
- if (k != f && (f = k, S = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -l, _.debug("New row in layout for block", e.id, " and child ", p.id, f)), _.debug(`abc89 layout blocks (child) id: ${p.id} Pos: ${b} (px, py) ${D},${k} (${L?.size?.x},${L?.size?.y}) parent: ${L.id} width: ${m}${l}`), L.size) {
1752
- let t = m / 2;
1753
- p.size.x = S + l + t, _.debug(`abc91 layout blocks (calc) px, pyid:${p.id} startingPos=X${S} new startingPosX${p.size.x} ${t} padding=${l} width=${m} halfWidth=${t} => x:${p.size.x} y:${p.size.y} ${p.widthInColumns} (width * (child?.w || 1)) / 2 ${m * (p?.widthInColumns ?? 1) / 2}`), S = p.size.x + t;
1754
- let u = d.get(k) ?? 0, y = c.get(k) ?? x;
1755
- p.size.y = L.size.y - L.size.height / 2 + u + y / 2 + l, _.debug(`abc88 layout blocks (calc) px, pyid:${p.id}startingPosX${S}${l}${t}=>x:${p.size.x}y:${p.size.y}${p.widthInColumns}(width * (child?.w || 1)) / 2${m * (p?.widthInColumns ?? 1) / 2}`);
1756
- }
1757
- p.children && ce(p, r, l);
1758
- let T = p?.widthInColumns ?? 1;
1759
- i > 0 && (T = Math.min(T, i - b % i)), b += T, _.debug("abc88 columnsPos", p, b);
1760
- }
1761
- }
1762
- _.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1763
- }
1764
- h(ce, "layoutBlocks");
1765
- function ue(e, { minX: r, minY: l, maxX: i, maxY: o } = {
1766
- minX: 0,
1767
- minY: 0,
1768
- maxX: 0,
1769
- maxY: 0
1770
- }) {
1771
- if (e.size && e.id !== "root") {
1772
- let { x: n, y: c, width: d, height: b } = e.size;
1773
- n - d / 2 < r && (r = n - d / 2), c - b / 2 < l && (l = c - b / 2), n + d / 2 > i && (i = n + d / 2), c + b / 2 > o && (o = c + b / 2);
1774
- }
1775
- if (e.children) for (let n of e.children) ({ minX: r, minY: l, maxX: i, maxY: o } = ue(n, {
1776
- minX: r,
1777
- minY: l,
1778
- maxX: i,
1779
- maxY: o
1780
- }));
1781
- return {
1782
- minX: r,
1783
- minY: l,
1784
- maxX: i,
1785
- maxY: o
1786
- };
1787
- }
1788
- h(ue, "findBounds");
1789
- function Ie(e) {
1790
- let r = e.getBlock("root");
1791
- if (!r) return;
1792
- let l = xe()?.block?.padding ?? 8;
1793
- W(r, e, 0, 0, l), ce(r, e, l), _.debug("getBlocks", JSON.stringify(r, null, 2));
1794
- let { minX: i, minY: o, maxX: n, maxY: c } = ue(r), d = c - o;
1795
- return {
1796
- x: i,
1797
- y: o,
1798
- width: n - i,
1799
- height: d
1800
- };
1801
- }
1802
- h(Ie, "layout");
1803
- function he(e, r, l = !1) {
1804
- let i = e, o = "default";
1805
- (i?.classes?.length || 0) > 0 && (o = (i?.classes ?? []).join(" ")), o += " flowchart-label";
1806
- let n = (i?.classes ?? []).flatMap((m) => r.getClasses().get(m)?.styles ?? []), c = 0, d = "rect", b;
1807
- switch (i.type) {
1808
- case "round":
1809
- c = 5, d = "rect";
1810
- break;
1811
- case "composite":
1812
- c = 0, d = "composite", b = 0;
1813
- break;
1814
- case "square":
1815
- d = "rect";
1816
- break;
1817
- case "diamond":
1818
- d = "question";
1819
- break;
1820
- case "hexagon":
1821
- d = "hexagon";
1822
- break;
1823
- case "block_arrow":
1824
- d = "block_arrow";
1825
- break;
1826
- case "odd":
1827
- d = "rect_left_inv_arrow";
1828
- break;
1829
- case "lean_right":
1830
- d = "lean_right";
1831
- break;
1832
- case "lean_left":
1833
- d = "lean_left";
1834
- break;
1835
- case "trapezoid":
1836
- d = "trapezoid";
1837
- break;
1838
- case "inv_trapezoid":
1839
- d = "inv_trapezoid";
1840
- break;
1841
- case "rect_left_inv_arrow":
1842
- d = "rect_left_inv_arrow";
1843
- break;
1844
- case "circle":
1845
- d = "circle";
1846
- break;
1847
- case "ellipse":
1848
- d = "ellipse";
1849
- break;
1850
- case "stadium":
1851
- d = "stadium";
1852
- break;
1853
- case "subroutine":
1854
- d = "subroutine";
1855
- break;
1856
- case "cylinder":
1857
- d = "cylinder";
1858
- break;
1859
- case "group":
1860
- d = "rect";
1861
- break;
1862
- case "doublecircle":
1863
- d = "doublecircle";
1864
- break;
1865
- default:
1866
- d = "rect";
1867
- }
1868
- let S = bt(i?.styles ?? []), f = i.label, p = i.size ?? {
1869
- width: 0,
1870
- height: 0,
1871
- x: 0,
1872
- y: 0
1873
- }, L = r.getDiagramId();
1874
- return {
1875
- labelStyle: S.labelStyle,
1876
- shape: d,
1877
- label: f,
1878
- labelText: f,
1879
- rx: c,
1880
- ry: c,
1881
- class: o,
1882
- cssClasses: o,
1883
- cssStyles: i?.styles ?? [],
1884
- cssCompiledStyles: n,
1885
- style: S.style,
1886
- id: i.id,
1887
- domId: L ? `${L}-${i.id}` : i.id,
1888
- isGroup: !1,
1889
- directions: i.directions,
1890
- width: p.width || void 0,
1891
- height: p.height || void 0,
1892
- wrappingWidth: p.width || 1 / 0,
1893
- x: p.x,
1894
- y: p.y,
1895
- positioned: l,
1896
- intersect: void 0,
1897
- padding: b ?? F()?.block?.padding ?? 0,
1898
- widthInColumns: i.widthInColumns ?? 1
1899
- };
1900
- }
1901
- h(he, "getNodeFromBlock");
1902
- async function Oe(e, r, l) {
1903
- let i = he(r, l, !1);
1904
- if (r.type === "group") return;
1905
- let o = F(), n = await Le(e, i, { config: o }), c = n.node()?.getBBox() ?? {
1906
- width: 0,
1907
- height: 0
1908
- }, d = l.getBlock(i.id);
1909
- d.size = {
1910
- width: c.width,
1911
- height: c.height,
1912
- x: 0,
1913
- y: 0,
1914
- node: n
1915
- }, l.setBlock(d), n.remove();
1916
- }
1917
- h(Oe, "calculateBlockSize");
1918
- async function Te(e, r, l) {
1919
- let i = he(r, l, !0);
1920
- if (l.getBlock(i.id).type !== "space") {
1921
- let o = F();
1922
- await Le(e, i, { config: o }), r.intersect = i?.intersect, ft(i);
1923
- }
1924
- }
1925
- h(Te, "insertBlockPositioned");
1926
- async function U(e, r, l, i) {
1927
- for (let o of r) await i(e, o, l), o.children && await U(e, o.children, l, i);
1928
- }
1929
- h(U, "performOperations");
1930
- async function ze(e, r, l) {
1931
- await U(e, r, l, Oe);
1932
- }
1933
- h(ze, "calculateBlockSizes");
1934
- async function Ce(e, r, l) {
1935
- await U(e, r, l, Te);
1936
- }
1937
- h(Ce, "insertBlocks");
1938
- async function Ae(e, r, l, i, o) {
1939
- let n = new Me({
1940
- multigraph: !0,
1941
- compound: !0
1942
- });
1943
- n.setGraph({
1944
- rankdir: "TB",
1945
- nodesep: 10,
1946
- ranksep: 10,
1947
- marginx: 8,
1948
- marginy: 8
1949
- });
1950
- for (let c of l) c.size && n.setNode(c.id, {
1951
- width: c.size.width,
1952
- height: c.size.height,
1953
- intersect: c.intersect
1954
- });
1955
- for (let c of r) if (c.start && c.end) {
1956
- let d = i.getBlock(c.start), b = i.getBlock(c.end);
1957
- if (d?.size && b?.size) {
1958
- let S = d.size, f = b.size, p = [
1959
- {
1960
- x: S.x,
1961
- y: S.y
1962
- },
1963
- {
1964
- x: S.x + (f.x - S.x) / 2,
1965
- y: S.y + (f.y - S.y) / 2
1966
- },
1967
- {
1968
- x: f.x,
1969
- y: f.y
1970
- }
1971
- ], L = o ? `${o}-${c.id}` : c.id, m = `${c.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${c.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
1972
- Ke(e, {
1973
- ...c,
1974
- id: L,
1975
- arrowTypeEnd: c.arrowTypeEnd,
1976
- arrowTypeStart: c.arrowTypeStart,
1977
- points: p,
1978
- classes: m
1979
- }, {}, "block", n.node(c.start), n.node(c.end), o), c.label && (await Ye(e, {
1980
- ...c,
1981
- label: c.label,
1982
- labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
1983
- arrowTypeEnd: c.arrowTypeEnd,
1984
- arrowTypeStart: c.arrowTypeStart,
1985
- points: p,
1986
- classes: m
1987
- }), je({
1988
- ...c,
1989
- x: p[1].x,
1990
- y: p[1].y
1991
- }, { originalPath: p }));
1992
- }
1993
- }
1994
- }
1995
- h(Ae, "insertEdges");
1996
- var Ft = {
1997
- parser: Dt,
1998
- db: Ct,
1999
- renderer: {
2000
- draw: /* @__PURE__ */ h(async function(e, r, l, i) {
2001
- let { securityLevel: o, block: n } = F(), c = i.db;
2002
- c.setDiagramId(r);
2003
- let d;
2004
- o === "sandbox" && (d = ee("#i" + r));
2005
- let b = ee(o === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), S = o === "sandbox" ? b.select(`[id="${r}"]`) : ee(`[id="${r}"]`);
2006
- Be(S, [
2007
- "point",
2008
- "circle",
2009
- "cross"
2010
- ], i.type, r);
2011
- let f = c.getBlocks(), p = c.getBlocksFlat(), L = c.getEdges(), m = S.insert("g").attr("class", "block");
2012
- await ze(m, f, c);
2013
- let x = Ie(c);
2014
- await Ce(m, f, c), await Ae(m, L, p, c, r);
2015
- let D = m.node()?.getBBox(), k = D && Number.isFinite(D.width) && Number.isFinite(D.height) ? D : x;
2016
- if (k) {
2017
- let T = Math.max(1, Math.round(0.125 * (k.width / k.height))), t = k.height + T + 10, u = k.width + 10, { useMaxWidth: y } = n;
2018
- Pe(S, t, u, !!y), _.debug("Here Bounds", x, k), S.attr("viewBox", `${k.x - 5} ${k.y - 5} ${k.width + 10} ${k.height + 10}`);
2019
- }
2020
- }, "draw"),
2021
- getClasses: /* @__PURE__ */ h(function(e, r) {
2022
- return r.db.getClasses();
2023
- }, "getClasses")
2024
- },
2025
- styles: At
2026
- };
2027
- export {
2028
- Ft as diagram
2029
- };