@kong-ui-public/documentation 1.7.21 → 1.7.22-pr.3646.2d80ddaf3.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 (159) hide show
  1. package/package.json +4 -4
  2. package/dist/arc-DZdQjcG8-CduayE88.js +0 -79
  3. package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
  4. package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
  5. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
  6. package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
  7. package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
  8. package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
  9. package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
  10. package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
  11. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
  12. package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
  13. package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
  14. package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
  15. package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
  16. package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
  17. package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
  18. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
  19. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
  20. package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
  21. package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
  22. package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
  23. package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
  24. package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
  25. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
  26. package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
  27. package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
  28. package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
  29. package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
  30. package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
  31. package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
  32. package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
  33. package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
  34. package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
  35. package/dist/documentation.es.js +0 -7
  36. package/dist/documentation.umd.js +0 -3474
  37. package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
  38. package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
  39. package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
  40. package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
  41. package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
  42. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
  43. package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
  44. package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
  45. package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
  46. package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
  47. package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
  48. package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
  49. package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
  50. package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
  51. package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
  52. package/dist/index-DfVKdDwj.js +0 -40029
  53. package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
  54. package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
  55. package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
  56. package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
  57. package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
  58. package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
  59. package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
  60. package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
  61. package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
  62. package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
  63. package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
  64. package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
  65. package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
  66. package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
  67. package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
  68. package/dist/latex-COX74REd-l1quglTx.js +0 -5
  69. package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
  70. package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
  71. package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
  72. package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
  73. package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
  74. package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
  75. package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
  76. package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
  77. package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
  78. package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
  79. package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
  80. package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
  81. package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
  82. package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
  83. package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
  84. package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
  85. package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
  86. package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
  87. package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
  88. package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
  89. package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
  90. package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
  91. package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
  92. package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
  93. package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
  94. package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
  95. package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
  96. package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
  97. package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
  98. package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
  99. package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
  100. package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
  101. package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
  102. package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
  103. package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
  104. package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
  105. package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
  106. package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
  107. package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
  108. package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
  109. package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
  110. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
  111. package/dist/style.css +0 -1
  112. package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
  113. package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
  114. package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
  115. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
  116. package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
  117. package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
  118. package/dist/twig-Bst4uh7S-C3aA9tng.js +0 -18
  119. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  120. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  121. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  122. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  123. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  124. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  125. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  126. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  127. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  128. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  129. package/dist/types/composables/index.d.ts +0 -6
  130. package/dist/types/composables/index.d.ts.map +0 -1
  131. package/dist/types/composables/useI18n.d.ts +0 -9
  132. package/dist/types/composables/useI18n.d.ts.map +0 -1
  133. package/dist/types/external-links.d.ts +0 -5
  134. package/dist/types/external-links.d.ts.map +0 -1
  135. package/dist/types/helpers.d.ts +0 -8
  136. package/dist/types/helpers.d.ts.map +0 -1
  137. package/dist/types/index.d.ts +0 -7
  138. package/dist/types/index.d.ts.map +0 -1
  139. package/dist/types/types/document-list.d.ts +0 -28
  140. package/dist/types/types/document-list.d.ts.map +0 -1
  141. package/dist/types/types/document-modal.d.ts +0 -8
  142. package/dist/types/types/document-modal.d.ts.map +0 -1
  143. package/dist/types/types/index.d.ts +0 -3
  144. package/dist/types/types/index.d.ts.map +0 -1
  145. package/dist/typescript-8ogSSNer-B0ag8pir.js +0 -4
  146. package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
  147. package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
  148. package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
  149. package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
  150. package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
  151. package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
  152. package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
  153. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
  154. package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
  155. package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
  156. package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
  157. package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
  158. package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
  159. package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
@@ -1,1026 +0,0 @@
1
- import { p as c, g as I, d as rt, e as at, o as lt, F, ar as ct, as as ht, at as dt, Z as A, c as U, aw as gt, ax as ut } from "./index-DfVKdDwj.js";
2
- import { n as pt } from "./chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js";
3
- import { r as yt } from "./chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.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
- ], Z = [
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
- break;
165
- }
166
- }, "anonymous"),
167
- table: [
168
- {
169
- 3: 1,
170
- 4: 2,
171
- 5: 3,
172
- 6: [1, 5],
173
- 8: t
174
- },
175
- { 1: [3] },
176
- { 1: [2, 1] },
177
- {
178
- 4: 6,
179
- 6: [1, 7],
180
- 7: [1, 8],
181
- 8: t
182
- },
183
- {
184
- 6: r,
185
- 7: [1, 10],
186
- 9: 9,
187
- 12: 11,
188
- 13: d,
189
- 14: 14,
190
- 15: n,
191
- 16: l,
192
- 17: 17,
193
- 18: 18,
194
- 19: u,
195
- 22: _
196
- },
197
- i(y, [2, 3]),
198
- { 1: [2, 2] },
199
- i(y, [2, 4]),
200
- i(y, [2, 5]),
201
- {
202
- 1: [2, 6],
203
- 6: r,
204
- 12: 21,
205
- 13: d,
206
- 14: 14,
207
- 15: n,
208
- 16: l,
209
- 17: 17,
210
- 18: 18,
211
- 19: u,
212
- 22: _
213
- },
214
- {
215
- 6: r,
216
- 9: 22,
217
- 12: 11,
218
- 13: d,
219
- 14: 14,
220
- 15: n,
221
- 16: l,
222
- 17: 17,
223
- 18: 18,
224
- 19: u,
225
- 22: _
226
- },
227
- {
228
- 6: S,
229
- 7: C,
230
- 10: 23,
231
- 11: m
232
- },
233
- i(E, [2, 22], {
234
- 17: 17,
235
- 18: 18,
236
- 14: 27,
237
- 15: [1, 28],
238
- 16: [1, 29],
239
- 19: u,
240
- 22: _
241
- }),
242
- i(E, [2, 18]),
243
- i(E, [2, 19]),
244
- i(E, [2, 20]),
245
- i(E, [2, 21]),
246
- i(E, [2, 23]),
247
- i(E, [2, 24]),
248
- i(E, [2, 26], { 19: [1, 30] }),
249
- { 20: [1, 31] },
250
- {
251
- 6: S,
252
- 7: C,
253
- 10: 32,
254
- 11: m
255
- },
256
- {
257
- 1: [2, 7],
258
- 6: r,
259
- 12: 21,
260
- 13: d,
261
- 14: 14,
262
- 15: n,
263
- 16: l,
264
- 17: 17,
265
- 18: 18,
266
- 19: u,
267
- 22: _
268
- },
269
- i(Z, [2, 14], {
270
- 7: V,
271
- 11: Y
272
- }),
273
- i(T, [2, 8]),
274
- i(T, [2, 9]),
275
- i(T, [2, 10]),
276
- i(E, [2, 15]),
277
- i(E, [2, 16]),
278
- i(E, [2, 17]),
279
- { 20: [1, 35] },
280
- { 21: [1, 36] },
281
- i(Z, [2, 13], {
282
- 7: V,
283
- 11: Y
284
- }),
285
- i(T, [2, 11]),
286
- i(T, [2, 12]),
287
- { 21: [1, 37] },
288
- i(E, [2, 25]),
289
- i(E, [2, 27])
290
- ],
291
- defaultActions: {
292
- 2: [2, 1],
293
- 6: [2, 2]
294
- },
295
- parseError: /* @__PURE__ */ c(function(e, h) {
296
- if (h.recoverable) this.trace(e);
297
- else {
298
- var a = Error(e);
299
- throw a.hash = h, a;
300
- }
301
- }, "parseError"),
302
- parse: /* @__PURE__ */ c(function(e) {
303
- 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: {} };
304
- for (var j in this.yy) Object.prototype.hasOwnProperty.call(this.yy, j) && (D.yy[j] = this.yy[j]);
305
- f.setInput(e, D.yy), D.yy.lexer = f, D.yy.parser = this, f.yylloc === void 0 && (f.yylloc = {});
306
- var H = f.yylloc;
307
- s.push(H);
308
- var st = f.options && f.options.ranges;
309
- typeof D.yy.parseError == "function" ? this.parseError = D.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
310
- function ot(N) {
311
- a.length -= 2 * N, p.length -= N, s.length -= N;
312
- }
313
- c(ot, "popStack");
314
- function K() {
315
- var N = o.pop() || f.lex() || J;
316
- return typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = h.symbols_[N] || N), N;
317
- }
318
- c(K, "lex");
319
- for (var b, W, $, k, X, O = {}, P, L, Q, M; ; ) {
320
- if ($ = a[a.length - 1], this.defaultActions[$] ? k = this.defaultActions[$] : (b ??= K(), k = R[$] && R[$][b]), k === void 0 || !k.length || !k[0]) {
321
- var tt = "";
322
- for (P in M = [], R[$]) this.terminals_[P] && P > nt && M.push("'" + this.terminals_[P] + "'");
323
- tt = f.showPosition ? "Parse error on line " + (B + 1) + `:
324
- ` + f.showPosition() + `
325
- 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, {
326
- text: f.match,
327
- token: this.terminals_[b] || b,
328
- line: f.yylineno,
329
- loc: H,
330
- expected: M
331
- });
332
- }
333
- if (k[0] instanceof Array && k.length > 1) throw Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + b);
334
- switch (k[0]) {
335
- case 1:
336
- 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);
337
- break;
338
- case 2:
339
- if (L = this.productions_[k[1]][1], O.$ = p[p.length - L], O._$ = {
340
- first_line: s[s.length - (L || 1)].first_line,
341
- last_line: s[s.length - 1].last_line,
342
- first_column: s[s.length - (L || 1)].first_column,
343
- last_column: s[s.length - 1].last_column
344
- }, st && (O._$.range = [s[s.length - (L || 1)].range[0], s[s.length - 1].range[1]]), X = this.performAction.apply(O, [
345
- g,
346
- q,
347
- B,
348
- D.yy,
349
- k[1],
350
- p,
351
- s
352
- ].concat(it)), X !== void 0) return X;
353
- 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._$), Q = R[a[a.length - 2]][a[a.length - 1]], a.push(Q);
354
- break;
355
- case 3:
356
- return !0;
357
- }
358
- }
359
- return !0;
360
- }, "parse")
361
- };
362
- G.lexer = /* @__PURE__ */ (function() {
363
- return {
364
- EOF: 1,
365
- parseError: /* @__PURE__ */ c(function(e, h) {
366
- if (this.yy.parser) this.yy.parser.parseError(e, h);
367
- else throw Error(e);
368
- }, "parseError"),
369
- setInput: /* @__PURE__ */ c(function(e, h) {
370
- 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 = {
371
- first_line: 1,
372
- first_column: 0,
373
- last_line: 1,
374
- last_column: 0
375
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
376
- }, "setInput"),
377
- input: /* @__PURE__ */ c(function() {
378
- var e = this._input[0];
379
- 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;
380
- }, "input"),
381
- unput: /* @__PURE__ */ c(function(e) {
382
- var h = e.length, a = e.split(/(?:\r\n?|\n)/g);
383
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
384
- var o = this.match.split(/(?:\r\n?|\n)/g);
385
- 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);
386
- var p = this.yylloc.range;
387
- return this.yylloc = {
388
- first_line: this.yylloc.first_line,
389
- last_line: this.yylineno + 1,
390
- first_column: this.yylloc.first_column,
391
- 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
392
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
393
- }, "unput"),
394
- more: /* @__PURE__ */ c(function() {
395
- return this._more = !0, this;
396
- }, "more"),
397
- reject: /* @__PURE__ */ c(function() {
398
- if (this.options.backtrack_lexer) this._backtrack = !0;
399
- 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).
400
- ` + this.showPosition(), {
401
- text: "",
402
- token: null,
403
- line: this.yylineno
404
- });
405
- return this;
406
- }, "reject"),
407
- less: /* @__PURE__ */ c(function(e) {
408
- this.unput(this.match.slice(e));
409
- }, "less"),
410
- pastInput: /* @__PURE__ */ c(function() {
411
- var e = this.matched.substr(0, this.matched.length - this.match.length);
412
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
413
- }, "pastInput"),
414
- upcomingInput: /* @__PURE__ */ c(function() {
415
- var e = this.match;
416
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
417
- }, "upcomingInput"),
418
- showPosition: /* @__PURE__ */ c(function() {
419
- var e = this.pastInput(), h = Array(e.length + 1).join("-");
420
- return e + this.upcomingInput() + `
421
- ` + h + "^";
422
- }, "showPosition"),
423
- test_match: /* @__PURE__ */ c(function(e, h) {
424
- var a, o, p;
425
- if (this.options.backtrack_lexer && (p = {
426
- yylineno: this.yylineno,
427
- yylloc: {
428
- first_line: this.yylloc.first_line,
429
- last_line: this.last_line,
430
- first_column: this.yylloc.first_column,
431
- last_column: this.yylloc.last_column
432
- },
433
- yytext: this.yytext,
434
- match: this.match,
435
- matches: this.matches,
436
- matched: this.matched,
437
- yyleng: this.yyleng,
438
- offset: this.offset,
439
- _more: this._more,
440
- _input: this._input,
441
- yy: this.yy,
442
- conditionStack: this.conditionStack.slice(0),
443
- done: this.done
444
- }, 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 = {
445
- first_line: this.yylloc.last_line,
446
- last_line: this.yylineno + 1,
447
- first_column: this.yylloc.last_column,
448
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
449
- }, 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;
450
- if (this._backtrack) {
451
- for (var s in p) this[s] = p[s];
452
- return !1;
453
- }
454
- return !1;
455
- }, "test_match"),
456
- next: /* @__PURE__ */ c(function() {
457
- if (this.done) return this.EOF;
458
- this._input || (this.done = !0);
459
- var e, h, a, o;
460
- this._more || (this.yytext = "", this.match = "");
461
- 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)) {
462
- if (h = a, o = s, this.options.backtrack_lexer) {
463
- if (e = this.test_match(a, p[s]), e !== !1) return e;
464
- if (this._backtrack) {
465
- h = !1;
466
- continue;
467
- } else return !1;
468
- } else if (!this.options.flex) break;
469
- }
470
- return h ? (e = this.test_match(h, p[o]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
471
- ` + this.showPosition(), {
472
- text: "",
473
- token: null,
474
- line: this.yylineno
475
- });
476
- }, "next"),
477
- lex: /* @__PURE__ */ c(function() {
478
- return this.next() || this.lex();
479
- }, "lex"),
480
- begin: /* @__PURE__ */ c(function(e) {
481
- this.conditionStack.push(e);
482
- }, "begin"),
483
- popState: /* @__PURE__ */ c(function() {
484
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
485
- }, "popState"),
486
- _currentRules: /* @__PURE__ */ c(function() {
487
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
488
- }, "_currentRules"),
489
- topState: /* @__PURE__ */ c(function(e) {
490
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
491
- }, "topState"),
492
- pushState: /* @__PURE__ */ c(function(e) {
493
- this.begin(e);
494
- }, "pushState"),
495
- stateStackSize: /* @__PURE__ */ c(function() {
496
- return this.conditionStack.length;
497
- }, "stateStackSize"),
498
- options: { "case-insensitive": !0 },
499
- performAction: /* @__PURE__ */ c(function(e, h, a, o) {
500
- switch (a) {
501
- case 0:
502
- return e.getLogger().trace("Found comment", h.yytext), 6;
503
- case 1:
504
- return 8;
505
- case 2:
506
- this.begin("CLASS");
507
- break;
508
- case 3:
509
- return this.popState(), 16;
510
- case 4:
511
- this.popState();
512
- break;
513
- case 5:
514
- e.getLogger().trace("Begin icon"), this.begin("ICON");
515
- break;
516
- case 6:
517
- return e.getLogger().trace("SPACELINE"), 6;
518
- case 7:
519
- return 7;
520
- case 8:
521
- return 15;
522
- case 9:
523
- e.getLogger().trace("end icon"), this.popState();
524
- break;
525
- case 10:
526
- return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
527
- case 11:
528
- return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
529
- case 12:
530
- return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
531
- case 13:
532
- return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
533
- case 14:
534
- return this.begin("NODE"), 19;
535
- case 15:
536
- return this.begin("NODE"), 19;
537
- case 16:
538
- return this.begin("NODE"), 19;
539
- case 17:
540
- return this.begin("NODE"), 19;
541
- case 18:
542
- return 13;
543
- case 19:
544
- return 22;
545
- case 20:
546
- return 11;
547
- case 21:
548
- this.begin("NSTR2");
549
- break;
550
- case 22:
551
- return "NODE_DESCR";
552
- case 23:
553
- this.popState();
554
- break;
555
- case 24:
556
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
557
- break;
558
- case 25:
559
- return e.getLogger().trace("description:", h.yytext), "NODE_DESCR";
560
- case 26:
561
- this.popState();
562
- break;
563
- case 27:
564
- return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
565
- case 28:
566
- return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
567
- case 29:
568
- return this.popState(), e.getLogger().trace("node end ...", h.yytext), "NODE_DEND";
569
- case 30:
570
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
571
- case 31:
572
- return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
573
- case 32:
574
- return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
575
- case 33:
576
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
577
- case 34:
578
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
579
- case 35:
580
- return e.getLogger().trace("Long description:", h.yytext), 20;
581
- case 36:
582
- return e.getLogger().trace("Long description:", h.yytext), 20;
583
- }
584
- }, "anonymous"),
585
- rules: [
586
- /^(?:\s*%%.*)/i,
587
- /^(?:mindmap\b)/i,
588
- /^(?::::)/i,
589
- /^(?:.+)/i,
590
- /^(?:\n)/i,
591
- /^(?:::icon\()/i,
592
- /^(?:[\s]+[\n])/i,
593
- /^(?:[\n]+)/i,
594
- /^(?:[^\)]+)/i,
595
- /^(?:\))/i,
596
- /^(?:-\))/i,
597
- /^(?:\(-)/i,
598
- /^(?:\)\))/i,
599
- /^(?:\))/i,
600
- /^(?:\(\()/i,
601
- /^(?:\{\{)/i,
602
- /^(?:\()/i,
603
- /^(?:\[)/i,
604
- /^(?:[\s]+)/i,
605
- /^(?:[^\(\[\n\)\{\}]+)/i,
606
- /^(?:$)/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
- ],
624
- conditions: {
625
- CLASS: {
626
- rules: [3, 4],
627
- inclusive: !1
628
- },
629
- ICON: {
630
- rules: [8, 9],
631
- inclusive: !1
632
- },
633
- NSTR2: {
634
- rules: [22, 23],
635
- inclusive: !1
636
- },
637
- NSTR: {
638
- rules: [25, 26],
639
- inclusive: !1
640
- },
641
- NODE: {
642
- rules: [
643
- 21,
644
- 24,
645
- 27,
646
- 28,
647
- 29,
648
- 30,
649
- 31,
650
- 32,
651
- 33,
652
- 34,
653
- 35,
654
- 36
655
- ],
656
- inclusive: !1
657
- },
658
- INITIAL: {
659
- rules: [
660
- 0,
661
- 1,
662
- 2,
663
- 5,
664
- 6,
665
- 7,
666
- 10,
667
- 11,
668
- 12,
669
- 13,
670
- 14,
671
- 15,
672
- 16,
673
- 17,
674
- 18,
675
- 19,
676
- 20
677
- ],
678
- inclusive: !0
679
- }
680
- }
681
- };
682
- })();
683
- function w() {
684
- this.yy = {};
685
- }
686
- return c(w, "Parser"), w.prototype = G, G.Parser = w, new w();
687
- })();
688
- z.parser = z;
689
- var mt = z, ft = 12, x = {
690
- DEFAULT: 0,
691
- NO_BORDER: 0,
692
- ROUNDED_RECT: 1,
693
- RECT: 2,
694
- CIRCLE: 3,
695
- CLOUD: 4,
696
- BANG: 5,
697
- HEXAGON: 6
698
- }, v, _t = (v = class {
699
- constructor() {
700
- 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);
701
- }
702
- clear() {
703
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
704
- }
705
- getParent(t) {
706
- for (let r = this.nodes.length - 1; r >= 0; r--) if (this.nodes[r].level < t) return this.nodes[r];
707
- return null;
708
- }
709
- getMindmap() {
710
- return this.nodes.length > 0 ? this.nodes[0] : null;
711
- }
712
- addNode(t, r, d, n) {
713
- I.info("addNode", t, r, d, n);
714
- let l = !1;
715
- this.nodes.length === 0 ? (this.baseLevel = t, t = 0, l = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, l = !1);
716
- let u = A(), _ = u.mindmap?.padding ?? F.mindmap.padding;
717
- switch (n) {
718
- case this.nodeType.ROUNDED_RECT:
719
- case this.nodeType.RECT:
720
- case this.nodeType.HEXAGON:
721
- _ *= 2;
722
- break;
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.level === 0 ? t.section = void 0 : t.section = 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
- };