@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,1026 +0,0 @@
1
- import { a as c, m as I, g as rt, i as at, X as lt, L as F, bh as ct, bi as ht, bj as dt, c as A, Q as U, f as gt, bm as ut } from "./index-BaAWoj3P.js";
2
- import { n as pt } from "./chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js";
3
- import { r as yt } from "./chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js";
4
- var z = (function() {
5
- var i = /* @__PURE__ */ c(function(e, h, a, o) {
6
- for (a ||= {}, o = e.length; o--; a[e[o]] = h) ;
7
- return a;
8
- }, "o"), t = [1, 4], r = [1, 13], d = [1, 12], n = [1, 15], l = [1, 16], u = [1, 20], _ = [1, 19], y = [
9
- 6,
10
- 7,
11
- 8
12
- ], S = [1, 26], C = [1, 24], m = [1, 25], E = [
13
- 6,
14
- 7,
15
- 11
16
- ], Q = [
17
- 1,
18
- 6,
19
- 13,
20
- 15,
21
- 16,
22
- 19,
23
- 22
24
- ], V = [1, 33], Y = [1, 34], T = [
25
- 1,
26
- 6,
27
- 7,
28
- 11,
29
- 13,
30
- 15,
31
- 16,
32
- 19,
33
- 22
34
- ], G = {
35
- trace: /* @__PURE__ */ c(function() {
36
- }, "trace"),
37
- yy: {},
38
- symbols_: {
39
- error: 2,
40
- start: 3,
41
- mindMap: 4,
42
- spaceLines: 5,
43
- SPACELINE: 6,
44
- NL: 7,
45
- MINDMAP: 8,
46
- document: 9,
47
- stop: 10,
48
- EOF: 11,
49
- statement: 12,
50
- SPACELIST: 13,
51
- node: 14,
52
- ICON: 15,
53
- CLASS: 16,
54
- nodeWithId: 17,
55
- nodeWithoutId: 18,
56
- NODE_DSTART: 19,
57
- NODE_DESCR: 20,
58
- NODE_DEND: 21,
59
- NODE_ID: 22,
60
- $accept: 0,
61
- $end: 1
62
- },
63
- terminals_: {
64
- 2: "error",
65
- 6: "SPACELINE",
66
- 7: "NL",
67
- 8: "MINDMAP",
68
- 11: "EOF",
69
- 13: "SPACELIST",
70
- 15: "ICON",
71
- 16: "CLASS",
72
- 19: "NODE_DSTART",
73
- 20: "NODE_DESCR",
74
- 21: "NODE_DEND",
75
- 22: "NODE_ID"
76
- },
77
- productions_: [
78
- 0,
79
- [3, 1],
80
- [3, 2],
81
- [5, 1],
82
- [5, 2],
83
- [5, 2],
84
- [4, 2],
85
- [4, 3],
86
- [10, 1],
87
- [10, 1],
88
- [10, 1],
89
- [10, 2],
90
- [10, 2],
91
- [9, 3],
92
- [9, 2],
93
- [12, 2],
94
- [12, 2],
95
- [12, 2],
96
- [12, 1],
97
- [12, 1],
98
- [12, 1],
99
- [12, 1],
100
- [12, 1],
101
- [14, 1],
102
- [14, 1],
103
- [18, 3],
104
- [17, 1],
105
- [17, 4]
106
- ],
107
- performAction: /* @__PURE__ */ c(function(e, h, a, o, p, s, R) {
108
- var g = s.length - 1;
109
- switch (p) {
110
- case 6:
111
- case 7:
112
- return o;
113
- case 8:
114
- o.getLogger().trace("Stop NL ");
115
- break;
116
- case 9:
117
- o.getLogger().trace("Stop EOF ");
118
- break;
119
- case 11:
120
- o.getLogger().trace("Stop NL2 ");
121
- break;
122
- case 12:
123
- o.getLogger().trace("Stop EOF2 ");
124
- break;
125
- case 15:
126
- o.getLogger().info("Node: ", s[g].id), o.addNode(s[g - 1].length, s[g].id, s[g].descr, s[g].type);
127
- break;
128
- case 16:
129
- o.getLogger().trace("Icon: ", s[g]), o.decorateNode({ icon: s[g] });
130
- break;
131
- case 17:
132
- case 21:
133
- o.decorateNode({ class: s[g] });
134
- break;
135
- case 18:
136
- o.getLogger().trace("SPACELIST");
137
- break;
138
- case 19:
139
- o.getLogger().trace("Node: ", s[g].id), o.addNode(0, s[g].id, s[g].descr, s[g].type);
140
- break;
141
- case 20:
142
- o.decorateNode({ icon: s[g] });
143
- break;
144
- case 25:
145
- o.getLogger().trace("node found ..", s[g - 2]), this.$ = {
146
- id: s[g - 1],
147
- descr: s[g - 1],
148
- type: o.getType(s[g - 2], s[g])
149
- };
150
- break;
151
- case 26:
152
- this.$ = {
153
- id: s[g],
154
- descr: s[g],
155
- type: o.nodeType.DEFAULT
156
- };
157
- break;
158
- case 27:
159
- o.getLogger().trace("node found ..", s[g - 3]), this.$ = {
160
- id: s[g - 3],
161
- descr: s[g - 1],
162
- type: o.getType(s[g - 2], s[g])
163
- };
164
- }
165
- }, "anonymous"),
166
- table: [
167
- {
168
- 3: 1,
169
- 4: 2,
170
- 5: 3,
171
- 6: [1, 5],
172
- 8: t
173
- },
174
- { 1: [3] },
175
- { 1: [2, 1] },
176
- {
177
- 4: 6,
178
- 6: [1, 7],
179
- 7: [1, 8],
180
- 8: t
181
- },
182
- {
183
- 6: r,
184
- 7: [1, 10],
185
- 9: 9,
186
- 12: 11,
187
- 13: d,
188
- 14: 14,
189
- 15: n,
190
- 16: l,
191
- 17: 17,
192
- 18: 18,
193
- 19: u,
194
- 22: _
195
- },
196
- i(y, [2, 3]),
197
- { 1: [2, 2] },
198
- i(y, [2, 4]),
199
- i(y, [2, 5]),
200
- {
201
- 1: [2, 6],
202
- 6: r,
203
- 12: 21,
204
- 13: d,
205
- 14: 14,
206
- 15: n,
207
- 16: l,
208
- 17: 17,
209
- 18: 18,
210
- 19: u,
211
- 22: _
212
- },
213
- {
214
- 6: r,
215
- 9: 22,
216
- 12: 11,
217
- 13: d,
218
- 14: 14,
219
- 15: n,
220
- 16: l,
221
- 17: 17,
222
- 18: 18,
223
- 19: u,
224
- 22: _
225
- },
226
- {
227
- 6: S,
228
- 7: C,
229
- 10: 23,
230
- 11: m
231
- },
232
- i(E, [2, 22], {
233
- 17: 17,
234
- 18: 18,
235
- 14: 27,
236
- 15: [1, 28],
237
- 16: [1, 29],
238
- 19: u,
239
- 22: _
240
- }),
241
- i(E, [2, 18]),
242
- i(E, [2, 19]),
243
- i(E, [2, 20]),
244
- i(E, [2, 21]),
245
- i(E, [2, 23]),
246
- i(E, [2, 24]),
247
- i(E, [2, 26], { 19: [1, 30] }),
248
- { 20: [1, 31] },
249
- {
250
- 6: S,
251
- 7: C,
252
- 10: 32,
253
- 11: m
254
- },
255
- {
256
- 1: [2, 7],
257
- 6: r,
258
- 12: 21,
259
- 13: d,
260
- 14: 14,
261
- 15: n,
262
- 16: l,
263
- 17: 17,
264
- 18: 18,
265
- 19: u,
266
- 22: _
267
- },
268
- i(Q, [2, 14], {
269
- 7: V,
270
- 11: Y
271
- }),
272
- i(T, [2, 8]),
273
- i(T, [2, 9]),
274
- i(T, [2, 10]),
275
- i(E, [2, 15]),
276
- i(E, [2, 16]),
277
- i(E, [2, 17]),
278
- { 20: [1, 35] },
279
- { 21: [1, 36] },
280
- i(Q, [2, 13], {
281
- 7: V,
282
- 11: Y
283
- }),
284
- i(T, [2, 11]),
285
- i(T, [2, 12]),
286
- { 21: [1, 37] },
287
- i(E, [2, 25]),
288
- i(E, [2, 27])
289
- ],
290
- defaultActions: {
291
- 2: [2, 1],
292
- 6: [2, 2]
293
- },
294
- parseError: /* @__PURE__ */ c(function(e, h) {
295
- if (h.recoverable) this.trace(e);
296
- else {
297
- var a = Error(e);
298
- throw a.hash = h, a;
299
- }
300
- }, "parseError"),
301
- parse: /* @__PURE__ */ c(function(e) {
302
- var h = this, a = [0], o = [], p = [null], s = [], R = this.table, g = "", B = 0, q = 0, et = 0, nt = 2, J = 1, it = s.slice.call(arguments, 1), f = Object.create(this.lexer), D = { yy: {} };
303
- for (var j in this.yy) Object.prototype.hasOwnProperty.call(this.yy, j) && (D.yy[j] = this.yy[j]);
304
- f.setInput(e, D.yy), D.yy.lexer = f, D.yy.parser = this, f.yylloc === void 0 && (f.yylloc = {});
305
- var H = f.yylloc;
306
- s.push(H);
307
- var st = f.options && f.options.ranges;
308
- this.parseError = typeof D.yy.parseError == "function" ? D.yy.parseError : Object.getPrototypeOf(this).parseError;
309
- function ot(N) {
310
- a.length -= 2 * N, p.length -= N, s.length -= N;
311
- }
312
- c(ot, "popStack");
313
- function K() {
314
- var N = o.pop() || f.lex() || J;
315
- return typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = h.symbols_[N] || N), N;
316
- }
317
- c(K, "lex");
318
- for (var b, W, $, k, X, O = {}, P, L, Z, M; ; ) {
319
- if ($ = a[a.length - 1], this.defaultActions[$] ? k = this.defaultActions[$] : (b ??= K(), k = R[$] && R[$][b]), k === void 0 || !k.length || !k[0]) {
320
- var tt = "";
321
- for (P in M = [], R[$]) this.terminals_[P] && P > nt && M.push("'" + this.terminals_[P] + "'");
322
- tt = f.showPosition ? "Parse error on line " + (B + 1) + `:
323
- ` + f.showPosition() + `
324
- Expecting ` + M.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : "Parse error on line " + (B + 1) + ": Unexpected " + (b == J ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(tt, {
325
- text: f.match,
326
- token: this.terminals_[b] || b,
327
- line: f.yylineno,
328
- loc: H,
329
- expected: M
330
- });
331
- }
332
- if (k[0] instanceof Array && k.length > 1) throw Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + b);
333
- switch (k[0]) {
334
- case 1:
335
- a.push(b), p.push(f.yytext), s.push(f.yylloc), a.push(k[1]), b = null, W ? (b = W, W = null) : (q = f.yyleng, g = f.yytext, B = f.yylineno, H = f.yylloc, et > 0);
336
- break;
337
- case 2:
338
- if (L = this.productions_[k[1]][1], O.$ = p[p.length - L], O._$ = {
339
- first_line: s[s.length - (L || 1)].first_line,
340
- last_line: s[s.length - 1].last_line,
341
- first_column: s[s.length - (L || 1)].first_column,
342
- last_column: s[s.length - 1].last_column
343
- }, st && (O._$.range = [s[s.length - (L || 1)].range[0], s[s.length - 1].range[1]]), X = this.performAction.apply(O, [
344
- g,
345
- q,
346
- B,
347
- D.yy,
348
- k[1],
349
- p,
350
- s
351
- ].concat(it)), X !== void 0) return X;
352
- L && (a = a.slice(0, -1 * L * 2), p = p.slice(0, -1 * L), s = s.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), p.push(O.$), s.push(O._$), Z = R[a[a.length - 2]][a[a.length - 1]], a.push(Z);
353
- break;
354
- case 3:
355
- return !0;
356
- }
357
- }
358
- return !0;
359
- }, "parse")
360
- };
361
- G.lexer = /* @__PURE__ */ (function() {
362
- return {
363
- EOF: 1,
364
- parseError: /* @__PURE__ */ c(function(e, h) {
365
- if (this.yy.parser) this.yy.parser.parseError(e, h);
366
- else throw Error(e);
367
- }, "parseError"),
368
- setInput: /* @__PURE__ */ c(function(e, h) {
369
- return this.yy = h || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
370
- first_line: 1,
371
- first_column: 0,
372
- last_line: 1,
373
- last_column: 0
374
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
375
- }, "setInput"),
376
- input: /* @__PURE__ */ c(function() {
377
- var e = this._input[0];
378
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
379
- }, "input"),
380
- unput: /* @__PURE__ */ c(function(e) {
381
- var h = e.length, a = e.split(/(?:\r\n?|\n)/g);
382
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
383
- var o = this.match.split(/(?:\r\n?|\n)/g);
384
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
385
- var p = this.yylloc.range;
386
- return this.yylloc = {
387
- first_line: this.yylloc.first_line,
388
- last_line: this.yylineno + 1,
389
- first_column: this.yylloc.first_column,
390
- last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - h
391
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
392
- }, "unput"),
393
- more: /* @__PURE__ */ c(function() {
394
- return this._more = !0, this;
395
- }, "more"),
396
- reject: /* @__PURE__ */ c(function() {
397
- if (this.options.backtrack_lexer) this._backtrack = !0;
398
- 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).
399
- ` + this.showPosition(), {
400
- text: "",
401
- token: null,
402
- line: this.yylineno
403
- });
404
- return this;
405
- }, "reject"),
406
- less: /* @__PURE__ */ c(function(e) {
407
- this.unput(this.match.slice(e));
408
- }, "less"),
409
- pastInput: /* @__PURE__ */ c(function() {
410
- var e = this.matched.substr(0, this.matched.length - this.match.length);
411
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
412
- }, "pastInput"),
413
- upcomingInput: /* @__PURE__ */ c(function() {
414
- var e = this.match;
415
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
416
- }, "upcomingInput"),
417
- showPosition: /* @__PURE__ */ c(function() {
418
- var e = this.pastInput(), h = Array(e.length + 1).join("-");
419
- return e + this.upcomingInput() + `
420
- ` + h + "^";
421
- }, "showPosition"),
422
- test_match: /* @__PURE__ */ c(function(e, h) {
423
- var a, o, p;
424
- if (this.options.backtrack_lexer && (p = {
425
- yylineno: this.yylineno,
426
- yylloc: {
427
- first_line: this.yylloc.first_line,
428
- last_line: this.last_line,
429
- first_column: this.yylloc.first_column,
430
- last_column: this.yylloc.last_column
431
- },
432
- yytext: this.yytext,
433
- match: this.match,
434
- matches: this.matches,
435
- matched: this.matched,
436
- yyleng: this.yyleng,
437
- offset: this.offset,
438
- _more: this._more,
439
- _input: this._input,
440
- yy: this.yy,
441
- conditionStack: this.conditionStack.slice(0),
442
- done: this.done
443
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), o = e[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
444
- first_line: this.yylloc.last_line,
445
- last_line: this.yylineno + 1,
446
- first_column: this.yylloc.last_column,
447
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
448
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], a = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a) return a;
449
- if (this._backtrack) {
450
- for (var s in p) this[s] = p[s];
451
- return !1;
452
- }
453
- return !1;
454
- }, "test_match"),
455
- next: /* @__PURE__ */ c(function() {
456
- if (this.done) return this.EOF;
457
- this._input || (this.done = !0);
458
- var e, h, a, o;
459
- this._more || (this.yytext = "", this.match = "");
460
- for (var p = this._currentRules(), s = 0; s < p.length; s++) if (a = this._input.match(this.rules[p[s]]), a && (!h || a[0].length > h[0].length)) {
461
- if (h = a, o = s, this.options.backtrack_lexer) {
462
- if (e = this.test_match(a, p[s]), e !== !1) return e;
463
- if (this._backtrack) {
464
- h = !1;
465
- continue;
466
- }
467
- return !1;
468
- }
469
- if (!this.options.flex) break;
470
- }
471
- return h ? (e = this.test_match(h, p[o]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
472
- ` + this.showPosition(), {
473
- text: "",
474
- token: null,
475
- line: this.yylineno
476
- });
477
- }, "next"),
478
- lex: /* @__PURE__ */ c(function() {
479
- return this.next() || this.lex();
480
- }, "lex"),
481
- begin: /* @__PURE__ */ c(function(e) {
482
- this.conditionStack.push(e);
483
- }, "begin"),
484
- popState: /* @__PURE__ */ c(function() {
485
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
486
- }, "popState"),
487
- _currentRules: /* @__PURE__ */ c(function() {
488
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
489
- }, "_currentRules"),
490
- topState: /* @__PURE__ */ c(function(e) {
491
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
492
- }, "topState"),
493
- pushState: /* @__PURE__ */ c(function(e) {
494
- this.begin(e);
495
- }, "pushState"),
496
- stateStackSize: /* @__PURE__ */ c(function() {
497
- return this.conditionStack.length;
498
- }, "stateStackSize"),
499
- options: { "case-insensitive": !0 },
500
- performAction: /* @__PURE__ */ c(function(e, h, a, o) {
501
- switch (a) {
502
- case 0:
503
- return e.getLogger().trace("Found comment", h.yytext), 6;
504
- case 1:
505
- return 8;
506
- case 2:
507
- this.begin("CLASS");
508
- break;
509
- case 3:
510
- return this.popState(), 16;
511
- case 4:
512
- this.popState();
513
- break;
514
- case 5:
515
- e.getLogger().trace("Begin icon"), this.begin("ICON");
516
- break;
517
- case 6:
518
- return e.getLogger().trace("SPACELINE"), 6;
519
- case 7:
520
- return 7;
521
- case 8:
522
- return 15;
523
- case 9:
524
- e.getLogger().trace("end icon"), this.popState();
525
- break;
526
- case 10:
527
- return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
528
- case 11:
529
- return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
530
- case 12:
531
- return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
532
- case 13:
533
- return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
534
- case 14:
535
- return this.begin("NODE"), 19;
536
- case 15:
537
- return this.begin("NODE"), 19;
538
- case 16:
539
- return this.begin("NODE"), 19;
540
- case 17:
541
- return this.begin("NODE"), 19;
542
- case 18:
543
- return 13;
544
- case 19:
545
- return 22;
546
- case 20:
547
- return 11;
548
- case 21:
549
- this.begin("NSTR2");
550
- break;
551
- case 22:
552
- return "NODE_DESCR";
553
- case 23:
554
- this.popState();
555
- break;
556
- case 24:
557
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
558
- break;
559
- case 25:
560
- return e.getLogger().trace("description:", h.yytext), "NODE_DESCR";
561
- case 26:
562
- this.popState();
563
- break;
564
- case 27:
565
- return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
566
- case 28:
567
- return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
568
- case 29:
569
- return this.popState(), e.getLogger().trace("node end ...", h.yytext), "NODE_DEND";
570
- case 30:
571
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
572
- case 31:
573
- return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
574
- case 32:
575
- return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
576
- case 33:
577
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
578
- case 34:
579
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
580
- case 35:
581
- return e.getLogger().trace("Long description:", h.yytext), 20;
582
- case 36:
583
- return e.getLogger().trace("Long description:", h.yytext), 20;
584
- }
585
- }, "anonymous"),
586
- rules: [
587
- /^(?:\s*%%.*)/i,
588
- /^(?:mindmap\b)/i,
589
- /^(?::::)/i,
590
- /^(?:.+)/i,
591
- /^(?:\n)/i,
592
- /^(?:::icon\()/i,
593
- /^(?:[\s]+[\n])/i,
594
- /^(?:[\n]+)/i,
595
- /^(?:[^\)]+)/i,
596
- /^(?:\))/i,
597
- /^(?:-\))/i,
598
- /^(?:\(-)/i,
599
- /^(?:\)\))/i,
600
- /^(?:\))/i,
601
- /^(?:\(\()/i,
602
- /^(?:\{\{)/i,
603
- /^(?:\()/i,
604
- /^(?:\[)/i,
605
- /^(?:[\s]+)/i,
606
- /^(?:[^\(\[\n\)\{\}]+)/i,
607
- /^(?:$)/i,
608
- /^(?:["][`])/i,
609
- /^(?:[^`"]+)/i,
610
- /^(?:[`]["])/i,
611
- /^(?:["])/i,
612
- /^(?:[^"]+)/i,
613
- /^(?:["])/i,
614
- /^(?:[\)]\))/i,
615
- /^(?:[\)])/i,
616
- /^(?:[\]])/i,
617
- /^(?:\}\})/i,
618
- /^(?:\(-)/i,
619
- /^(?:-\))/i,
620
- /^(?:\(\()/i,
621
- /^(?:\()/i,
622
- /^(?:[^\)\]\(\}]+)/i,
623
- /^(?:.+(?!\(\())/i
624
- ],
625
- conditions: {
626
- CLASS: {
627
- rules: [3, 4],
628
- inclusive: !1
629
- },
630
- ICON: {
631
- rules: [8, 9],
632
- inclusive: !1
633
- },
634
- NSTR2: {
635
- rules: [22, 23],
636
- inclusive: !1
637
- },
638
- NSTR: {
639
- rules: [25, 26],
640
- inclusive: !1
641
- },
642
- NODE: {
643
- rules: [
644
- 21,
645
- 24,
646
- 27,
647
- 28,
648
- 29,
649
- 30,
650
- 31,
651
- 32,
652
- 33,
653
- 34,
654
- 35,
655
- 36
656
- ],
657
- inclusive: !1
658
- },
659
- INITIAL: {
660
- rules: [
661
- 0,
662
- 1,
663
- 2,
664
- 5,
665
- 6,
666
- 7,
667
- 10,
668
- 11,
669
- 12,
670
- 13,
671
- 14,
672
- 15,
673
- 16,
674
- 17,
675
- 18,
676
- 19,
677
- 20
678
- ],
679
- inclusive: !0
680
- }
681
- }
682
- };
683
- })();
684
- function w() {
685
- this.yy = {};
686
- }
687
- return c(w, "Parser"), w.prototype = G, G.Parser = w, new w();
688
- })();
689
- z.parser = z;
690
- var mt = z, ft = 12, x = {
691
- DEFAULT: 0,
692
- NO_BORDER: 0,
693
- ROUNDED_RECT: 1,
694
- RECT: 2,
695
- CIRCLE: 3,
696
- CLOUD: 4,
697
- BANG: 5,
698
- HEXAGON: 6
699
- }, v, _t = (v = class {
700
- constructor() {
701
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
702
- }
703
- clear() {
704
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
705
- }
706
- getParent(t) {
707
- for (let r = this.nodes.length - 1; r >= 0; r--) if (this.nodes[r].level < t) return this.nodes[r];
708
- return null;
709
- }
710
- getMindmap() {
711
- return this.nodes.length > 0 ? this.nodes[0] : null;
712
- }
713
- addNode(t, r, d, n) {
714
- I.info("addNode", t, r, d, n);
715
- let l = !1;
716
- this.nodes.length === 0 ? (this.baseLevel = t, t = 0, l = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, l = !1);
717
- let u = A(), _ = u.mindmap?.padding ?? F.mindmap.padding;
718
- switch (n) {
719
- case this.nodeType.ROUNDED_RECT:
720
- case this.nodeType.RECT:
721
- case this.nodeType.HEXAGON:
722
- _ *= 2;
723
- }
724
- let y = {
725
- id: this.count++,
726
- nodeId: U(r, u),
727
- level: t,
728
- descr: U(d, u),
729
- type: n,
730
- children: [],
731
- width: u.mindmap?.maxNodeWidth ?? F.mindmap.maxNodeWidth,
732
- padding: _,
733
- isRoot: l
734
- }, S = this.getParent(t);
735
- if (S) S.children.push(y), this.nodes.push(y);
736
- else if (l) this.nodes.push(y);
737
- else throw Error(`There can be only one root. No parent could be found for ("${y.descr}")`);
738
- }
739
- getType(t, r) {
740
- switch (I.debug("In get type", t, r), t) {
741
- case "[":
742
- return this.nodeType.RECT;
743
- case "(":
744
- return r === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
745
- case "((":
746
- return this.nodeType.CIRCLE;
747
- case ")":
748
- return this.nodeType.CLOUD;
749
- case "))":
750
- return this.nodeType.BANG;
751
- case "{{":
752
- return this.nodeType.HEXAGON;
753
- default:
754
- return this.nodeType.DEFAULT;
755
- }
756
- }
757
- setElementForId(t, r) {
758
- this.elements[t] = r;
759
- }
760
- getElementById(t) {
761
- return this.elements[t];
762
- }
763
- decorateNode(t) {
764
- if (!t) return;
765
- let r = A(), d = this.nodes[this.nodes.length - 1];
766
- t.icon && (d.icon = U(t.icon, r)), t.class && (d.class = U(t.class, r));
767
- }
768
- type2Str(t) {
769
- switch (t) {
770
- case this.nodeType.DEFAULT:
771
- return "no-border";
772
- case this.nodeType.RECT:
773
- return "rect";
774
- case this.nodeType.ROUNDED_RECT:
775
- return "rounded-rect";
776
- case this.nodeType.CIRCLE:
777
- return "circle";
778
- case this.nodeType.CLOUD:
779
- return "cloud";
780
- case this.nodeType.BANG:
781
- return "bang";
782
- case this.nodeType.HEXAGON:
783
- return "hexgon";
784
- default:
785
- return "no-border";
786
- }
787
- }
788
- assignSections(t, r) {
789
- if (t.section = t.level === 0 ? void 0 : r, t.children) for (let [d, n] of t.children.entries()) {
790
- let l = t.level === 0 ? d % (ft - 1) : r;
791
- this.assignSections(n, l);
792
- }
793
- }
794
- flattenNodes(t, r) {
795
- let d = A(), n = ["mindmap-node"];
796
- t.isRoot === !0 ? n.push("section-root", "section--1") : t.section !== void 0 && n.push(`section-${t.section}`), t.class && n.push(t.class);
797
- let l = n.join(" "), u = /* @__PURE__ */ c((y) => {
798
- let S = (d.theme?.toLowerCase() ?? "").includes("redux");
799
- switch (y) {
800
- case x.CIRCLE:
801
- return "mindmapCircle";
802
- case x.RECT:
803
- return "rect";
804
- case x.ROUNDED_RECT:
805
- return "rounded";
806
- case x.CLOUD:
807
- return "cloud";
808
- case x.BANG:
809
- return "bang";
810
- case x.HEXAGON:
811
- return "hexagon";
812
- case x.DEFAULT:
813
- return S ? "rounded" : "defaultMindmapNode";
814
- case x.NO_BORDER:
815
- default:
816
- return "rect";
817
- }
818
- }, "getShapeFromType"), _ = {
819
- id: t.id.toString(),
820
- domId: "node_" + t.id.toString(),
821
- label: t.descr,
822
- labelType: "markdown",
823
- isGroup: !1,
824
- shape: u(t.type),
825
- width: t.width,
826
- height: t.height ?? 0,
827
- padding: t.padding,
828
- cssClasses: l,
829
- cssStyles: [],
830
- look: d.look,
831
- icon: t.icon,
832
- x: t.x,
833
- y: t.y,
834
- level: t.level,
835
- nodeId: t.nodeId,
836
- type: t.type,
837
- section: t.section
838
- };
839
- if (r.push(_), t.children) for (let y of t.children) this.flattenNodes(y, r);
840
- }
841
- generateEdges(t, r) {
842
- if (!t.children) return;
843
- let d = A();
844
- for (let n of t.children) {
845
- let l = "edge";
846
- n.section !== void 0 && (l += ` section-edge-${n.section}`);
847
- let u = t.level + 1;
848
- l += ` edge-depth-${u}`;
849
- let _ = {
850
- id: `edge_${t.id}_${n.id}`,
851
- start: t.id.toString(),
852
- end: n.id.toString(),
853
- type: "normal",
854
- curve: "basis",
855
- thickness: "normal",
856
- look: d.look,
857
- classes: l,
858
- depth: t.level,
859
- section: n.section
860
- };
861
- r.push(_), this.generateEdges(n, r);
862
- }
863
- }
864
- getData() {
865
- let t = this.getMindmap(), r = A(), d = gt().layout !== void 0, n = r;
866
- if (d || (n.layout = "cose-bilkent"), !t) return {
867
- nodes: [],
868
- edges: [],
869
- config: n
870
- };
871
- I.debug("getData: mindmapRoot", t, r), this.assignSections(t);
872
- let l = [], u = [];
873
- this.flattenNodes(t, l), this.generateEdges(t, u), I.debug(`getData: processed ${l.length} nodes and ${u.length} edges`);
874
- let _ = /* @__PURE__ */ new Map();
875
- for (let y of l) _.set(y.id, {
876
- shape: y.shape,
877
- width: y.width,
878
- height: y.height,
879
- padding: y.padding
880
- });
881
- return {
882
- nodes: l,
883
- edges: u,
884
- config: n,
885
- rootNode: t,
886
- markers: ["point"],
887
- direction: "TB",
888
- nodeSpacing: 50,
889
- rankSpacing: 50,
890
- shapes: Object.fromEntries(_),
891
- type: "mindmap",
892
- diagramId: "mindmap-" + ut()
893
- };
894
- }
895
- getLogger() {
896
- return I;
897
- }
898
- }, c(v, "MindmapDB"), v), Et = { draw: /* @__PURE__ */ c(async (i, t, r, d) => {
899
- I.debug(`Rendering mindmap diagram
900
- ` + i);
901
- let n = d.db, l = n.getData(), u = pt(t, l.config.securityLevel);
902
- if (l.type = d.type, l.layoutAlgorithm = rt(l.config.layout, { fallback: "cose-bilkent" }), l.diagramId = t, !n.getMindmap()) return;
903
- l.nodes.forEach((m) => {
904
- m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" ? (m.width = 0, m.padding = 10) : m.shape === "hexagon" && (m.width = 0, m.height = 0);
905
- }), await at(l, u);
906
- let { themeVariables: _ } = lt(), { useGradient: y, gradientStart: S, gradientStop: C } = _;
907
- if (y && S && C) {
908
- let m = u.attr("id"), E = u.append("defs").append("linearGradient").attr("id", `${m}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
909
- E.append("stop").attr("offset", "0%").attr("stop-color", S).attr("stop-opacity", 1), E.append("stop").attr("offset", "100%").attr("stop-color", C).attr("stop-opacity", 1);
910
- }
911
- yt(u, l.config.mindmap?.padding ?? F.mindmap.padding, "mindmapDiagram", l.config.mindmap?.useMaxWidth ?? F.mindmap.useMaxWidth);
912
- }, "draw") }, bt = /* @__PURE__ */ c((i) => {
913
- let { theme: t, look: r } = i, d = "";
914
- for (let n = 0; n < i.THEME_COLOR_LIMIT; n++) i["lineColor" + n] = i["lineColor" + n] || i["cScaleInv" + n], ct(i["lineColor" + n]) ? i["lineColor" + n] = ht(i["lineColor" + n], 20) : i["lineColor" + n] = dt(i["lineColor" + n], 20);
915
- for (let n = 0; n < i.THEME_COLOR_LIMIT; n++) {
916
- let l = "" + (r === "neo" ? Math.max(10 - (n - 1) * 2, 2) : 17 - 3 * n);
917
- d += `
918
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
919
- fill: ${i["cScale" + n]};
920
- }
921
- .section-${n - 1} text {
922
- fill: ${i["cScaleLabel" + n]};
923
- }
924
- .section-${n - 1} span {
925
- color: ${i["cScaleLabel" + n]};
926
- }
927
- .node-icon-${n - 1} {
928
- font-size: 40px;
929
- color: ${i["cScaleLabel" + n]};
930
- }
931
- .section-edge-${n - 1}{
932
- stroke: ${i["cScale" + n]};
933
- }
934
- .edge-depth-${n - 1}{
935
- stroke-width: ${l};
936
- }
937
- .section-${n - 1} line {
938
- stroke: ${i["cScaleInv" + n]} ;
939
- stroke-width: 3;
940
- }
941
-
942
- .disabled, .disabled circle, .disabled text {
943
- fill: lightgray;
944
- }
945
- .disabled text {
946
- fill: #efefef;
947
- }
948
- [data-look="neo"].mindmap-node.section-${n - 1} rect, [data-look="neo"].mindmap-node.section-${n - 1} path, [data-look="neo"].mindmap-node.section-${n - 1} circle, [data-look="neo"].mindmap-node.section-${n - 1} polygon {
949
- fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? i.mainBkg : i["cScale" + n]};
950
- stroke: ${t === "redux" || t === "redux-dark" ? i.nodeBorder : i["cScale" + n]};
951
- stroke-width: ${i.strokeWidth ?? 2}px;
952
- }
953
- [data-look="neo"].section-edge-${n - 1}{
954
- stroke: ${t?.includes("redux") || t === "neo-dark" ? i.nodeBorder : i["cScale" + n]};
955
- }
956
- [data-look="neo"].mindmap-node.section-${n - 1} text {
957
- fill: ${t === "redux" || t === "redux-dark" ? i.nodeBorder : i["cScaleLabel" + (t === "neutral" ? 1 : n)]};
958
- }
959
- `;
960
- }
961
- return d;
962
- }, "genSections"), kt = /* @__PURE__ */ c((i, t, r) => {
963
- let d = "";
964
- for (let n = 0; n < i; n++) d += `
965
- [data-look="neo"].mindmap-node.section-${n - 1} rect, [data-look="neo"].mindmap-node.section-${n - 1} path, [data-look="neo"].mindmap-node.section-${n - 1} circle, [data-look="neo"].mindmap-node.section-${n - 1} polygon {
966
- stroke: url(${t}-gradient);
967
- fill: ${r};
968
- }
969
- .section-${n - 1} line {
970
- stroke-width: 0;
971
- }`;
972
- return d;
973
- }, "genGradient"), xt = {
974
- get db() {
975
- return new _t();
976
- },
977
- renderer: Et,
978
- parser: mt,
979
- styles: /* @__PURE__ */ c((i) => {
980
- let { theme: t } = i, r = i.svgId, d = i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${r}-drop-shadow)`) : "none";
981
- return `
982
- .edge {
983
- stroke-width: 3;
984
- }
985
- ${bt(i)}
986
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
987
- fill: ${i.git0};
988
- }
989
- .section-root text {
990
- fill: ${i.gitBranchLabel0};
991
- }
992
- .section-root span {
993
- color: ${t?.includes("redux") ? i.nodeBorder : i.gitBranchLabel0};
994
- }
995
- .icon-container {
996
- height:100%;
997
- display: flex;
998
- justify-content: center;
999
- align-items: center;
1000
- }
1001
- .edge {
1002
- fill: none;
1003
- }
1004
- .mindmap-node-label {
1005
- dy: 1em;
1006
- alignment-baseline: middle;
1007
- text-anchor: middle;
1008
- dominant-baseline: middle;
1009
- text-align: center;
1010
- }
1011
- [data-look="neo"].mindmap-node {
1012
- filter: ${d};
1013
- }
1014
- [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
1015
- fill: ${t?.includes("redux") ? i.mainBkg : i.git0};
1016
- }
1017
- [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1018
- fill: ${t?.includes("redux") ? i.nodeBorder : i["cScaleLabel" + +(t === "neutral")]};
1019
- }
1020
- ${i.useGradient && r && i.mainBkg ? kt(i.THEME_COLOR_LIMIT, r, i.mainBkg) : ""}
1021
- `;
1022
- }, "getStyles")
1023
- };
1024
- export {
1025
- xt as diagram
1026
- };