@nxgt/material-vue 0.16.0 → 0.19.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 (157) hide show
  1. package/README.md +4 -0
  2. package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
  3. package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
  4. package/dist/arc-DNNg1pxp.js +80 -0
  5. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  6. package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
  7. package/dist/array-CApNbSU9.js +6 -0
  8. package/dist/blockDiagram-BEXU5L5S-B5Z0jbc8.js +1946 -0
  9. package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
  10. package/dist/{camera-Cbd1TWFd.js → camera-oxz1xItP.js} +4 -4
  11. package/dist/channel-BA1GJyZ7.js +5 -0
  12. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  13. package/dist/chunk-3FUC2YCW-CX-v_TQz.js +364 -0
  14. package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
  15. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  16. package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
  17. package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
  18. package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
  19. package/dist/chunk-7M6MHVWA-Deh_-m6x.js +4256 -0
  20. package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
  21. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  22. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  23. package/dist/chunk-GNY47TPC-rS2K544k.js +75 -0
  24. package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
  25. package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
  26. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  27. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  28. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  29. package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
  30. package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
  31. package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
  32. package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
  33. package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
  34. package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
  35. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  36. package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
  37. package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
  38. package/dist/classDiagram-v2-NBCMYWYE-Caqw5P6A.js +3397 -0
  39. package/dist/{components-DLtnz66n.js → components-IbdMALGv.js} +43465 -18610
  40. package/dist/components.js +5 -5
  41. package/dist/{composables-BJ2GgDD0.js → composables-6zV0t-y7.js} +1 -1
  42. package/dist/composables.js +1 -1
  43. package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
  44. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  45. package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
  46. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  47. package/dist/dagre-6A5THRUB-EHXNn6Wq.js +2192 -0
  48. package/dist/defaultLocale-DnzPsei5.js +201 -0
  49. package/dist/diagram-22UHCM2B-B3RAQlqQ.js +5084 -0
  50. package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
  51. package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
  52. package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
  53. package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
  54. package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
  55. package/dist/dist-D9zvfe2i.js +59 -0
  56. package/dist/{dnd-Cmcrm28l.js → dnd-CaDeYjQx.js} +1 -1
  57. package/dist/dnd.js +1 -1
  58. package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
  59. package/dist/elk-276RUBZZ-B9WeHolc.js +47597 -0
  60. package/dist/erDiagram-OPXOYQCR-DReZElBu.js +1970 -0
  61. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  62. package/dist/flowDiagram-KWPJA3E3-DYss4vEI.js +17 -0
  63. package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
  64. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  65. package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
  66. package/dist/graphlib-CrmIPC4m.js +372 -0
  67. package/dist/{i18n-DmMS3ID3.js → i18n-OBzfa-B7.js} +233 -924
  68. package/dist/i18n.js +2 -2
  69. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  70. package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
  71. package/dist/init-MwSGRDIl.js +15 -0
  72. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  73. package/dist/isEmpty-CMjyBU-a.js +136 -0
  74. package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
  75. package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
  76. package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
  77. package/dist/katex-BMQ6LGsM.js +21962 -0
  78. package/dist/lib/components/index.d.ts +4 -0
  79. package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
  80. package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
  81. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  82. package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
  83. package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
  84. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  85. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  86. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  87. package/dist/lib/components/ui/markdown/index.d.ts +2 -0
  88. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
  89. package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
  90. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  91. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
  92. package/dist/lib/components/ui/mentions/index.d.ts +4 -0
  93. package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
  94. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  95. package/dist/lib/components/ui/mentions/types.d.ts +5 -0
  96. package/dist/lib/components/ui/terminal/index.d.ts +3 -0
  97. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  98. package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
  99. package/dist/lib/i18n/resources/en/index.d.ts +7 -0
  100. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  101. package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
  102. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  103. package/dist/lib/i18n/resources/index.d.ts +14 -0
  104. package/dist/lib/i18n/translator.d.ts +1 -1
  105. package/dist/lib/nuxt/component-names.d.ts +1 -1
  106. package/dist/lib-B9AHrvmh.js +389 -0
  107. package/dist/lib.js +1 -1
  108. package/dist/line-UP6dkL36.js +34 -0
  109. package/dist/linear-bD_QoED_.js +289 -0
  110. package/dist/main.js +9 -9
  111. package/dist/material-vue.css +1 -1
  112. package/dist/merge-B4IBXGaq.js +170 -0
  113. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  114. package/dist/mermaid.core-C_Rtflmc.js +1096 -0
  115. package/dist/mindmap-definition-NLK3R4M7-CO6s2Afv.js +1008 -0
  116. package/dist/ordinal-D_ZgubzR.js +65 -0
  117. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  118. package/dist/path-DGNPZRdx.js +85 -0
  119. package/dist/{pdf-outline-sidebar-BBXJRwdt.js → pdf-outline-sidebar-D5VedBgk.js} +3 -2
  120. package/dist/{pdf-page-DZyTFukn.js → pdf-page-B1Ze518d.js} +1 -1
  121. package/dist/{pdf-page-list-C3GukJ3_.js → pdf-page-list-CBJziavm.js} +3 -2
  122. package/dist/{pdf-reader-Ci4v2Ff9.js → pdf-reader-Cn1uxtJN.js} +13 -13
  123. package/dist/{pdf-sidebar-Dl8fQStG.js → pdf-sidebar-PXfgGlmq.js} +4 -4
  124. package/dist/{pdf-thumbnail-sidebar-GS_V0PGc.js → pdf-thumbnail-sidebar-7agqWsXT.js} +4 -3
  125. package/dist/{pdf-toolbar-D37w-WIK.js → pdf-toolbar-Blm9CFvh.js} +22 -21
  126. package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
  127. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  128. package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
  129. package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
  130. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  131. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  132. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  133. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  134. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  135. package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
  136. package/dist/requirementDiagram-PLB6GJNP-JpWB5sEv.js +2228 -0
  137. package/dist/rolldown-runtime-CWhphoD1.js +23 -0
  138. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  139. package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
  140. package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
  141. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  142. package/dist/src-CNRY2AUH.js +2142 -0
  143. package/dist/stateDiagram-v2-GCMORJYK-DJkVDIb0.js +2143 -0
  144. package/dist/{stx-player-C0FOaRjU.js → stx-player-rs3uH0iI.js} +17 -17
  145. package/dist/swimlanes-2SLR337P-D7Ff0hLr.js +4763 -0
  146. package/dist/swimlanesDiagram-TC7HE7FX-DZZ9d76C.js +28 -0
  147. package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
  148. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  149. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  150. package/dist/usecaseDiagram-POWQR4AR-BrRAt7Wu.js +9932 -0
  151. package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
  152. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  153. package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
  154. package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
  155. package/lib/nuxt/component-names.ts +2 -0
  156. package/package.json +5 -1
  157. package/dist/lib-CT0uRn8S.js +0 -611
@@ -0,0 +1,1008 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ import { m as t } from "./src-CNRY2AUH.js";
3
+ import { b as n, f as r, it as i, k as a, nt as o, tt as s, x as c, z as l } from "./chunk-O7XYJQB3-WMQqqzRb.js";
4
+ import "./chunk-ZIGJFQKS-DBdWb0bj.js";
5
+ import "./chunk-742MDFTN-BIhVe9GR.js";
6
+ import "./chunk-MBY4JIJT-HYVRUG_P.js";
7
+ import "./chunk-7PRAP22T-CofnNOEr.js";
8
+ import "./chunk-7INBJB4K-CwPgdc2G.js";
9
+ import "./chunk-5DYCD2WN-B9vjeX2u.js";
10
+ import "./chunk-Z7XXMR3K-CJmsOGTV.js";
11
+ import { t as u } from "./chunk-XXDRQBXY-B2pGFcse.js";
12
+ import { t as d } from "./chunk-WEXAMYUT-Cc10h8ed.js";
13
+ import "./chunk-UA2S7LBM-DtBatid7.js";
14
+ import { r as f, t as p } from "./chunk-GNY47TPC-rS2K544k.js";
15
+ //#region node_modules/uuid/dist/stringify.js
16
+ var m = [];
17
+ for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
18
+ function h(e, t = 0) {
19
+ return (m[e[t + 0]] + m[e[t + 1]] + m[e[t + 2]] + m[e[t + 3]] + "-" + m[e[t + 4]] + m[e[t + 5]] + "-" + m[e[t + 6]] + m[e[t + 7]] + "-" + m[e[t + 8]] + m[e[t + 9]] + "-" + m[e[t + 10]] + m[e[t + 11]] + m[e[t + 12]] + m[e[t + 13]] + m[e[t + 14]] + m[e[t + 15]]).toLowerCase();
20
+ }
21
+ //#endregion
22
+ //#region node_modules/uuid/dist/rng.js
23
+ var g = /* @__PURE__ */ new Uint8Array(16);
24
+ function _() {
25
+ return crypto.getRandomValues(g);
26
+ }
27
+ //#endregion
28
+ //#region node_modules/uuid/dist/v4.js
29
+ function v(e, t, n) {
30
+ return !t && !e && crypto.randomUUID ? crypto.randomUUID() : y(e, t, n);
31
+ }
32
+ function y(e, t, n) {
33
+ e ||= {};
34
+ let r = e.random ?? e.rng?.() ?? _();
35
+ if (r.length < 16) throw Error("Random bytes length must be >= 16");
36
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
37
+ if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
38
+ for (let e = 0; e < 16; ++e) t[n + e] = r[e];
39
+ return t;
40
+ }
41
+ return h(r);
42
+ }
43
+ //#endregion
44
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-NLK3R4M7.mjs
45
+ var b = (function() {
46
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
47
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
48
+ return n;
49
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
50
+ 6,
51
+ 7,
52
+ 8
53
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
54
+ 6,
55
+ 7,
56
+ 11
57
+ ], m = [
58
+ 1,
59
+ 6,
60
+ 13,
61
+ 15,
62
+ 16,
63
+ 19,
64
+ 22
65
+ ], h = [1, 33], g = [1, 34], _ = [
66
+ 1,
67
+ 6,
68
+ 7,
69
+ 11,
70
+ 13,
71
+ 15,
72
+ 16,
73
+ 19,
74
+ 22
75
+ ], v = {
76
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
77
+ yy: {},
78
+ symbols_: {
79
+ error: 2,
80
+ start: 3,
81
+ mindMap: 4,
82
+ spaceLines: 5,
83
+ SPACELINE: 6,
84
+ NL: 7,
85
+ MINDMAP: 8,
86
+ document: 9,
87
+ stop: 10,
88
+ EOF: 11,
89
+ statement: 12,
90
+ SPACELIST: 13,
91
+ node: 14,
92
+ ICON: 15,
93
+ CLASS: 16,
94
+ nodeWithId: 17,
95
+ nodeWithoutId: 18,
96
+ NODE_DSTART: 19,
97
+ NODE_DESCR: 20,
98
+ NODE_DEND: 21,
99
+ NODE_ID: 22,
100
+ $accept: 0,
101
+ $end: 1
102
+ },
103
+ terminals_: {
104
+ 2: "error",
105
+ 6: "SPACELINE",
106
+ 7: "NL",
107
+ 8: "MINDMAP",
108
+ 11: "EOF",
109
+ 13: "SPACELIST",
110
+ 15: "ICON",
111
+ 16: "CLASS",
112
+ 19: "NODE_DSTART",
113
+ 20: "NODE_DESCR",
114
+ 21: "NODE_DEND",
115
+ 22: "NODE_ID"
116
+ },
117
+ productions_: [
118
+ 0,
119
+ [3, 1],
120
+ [3, 2],
121
+ [5, 1],
122
+ [5, 2],
123
+ [5, 2],
124
+ [4, 2],
125
+ [4, 3],
126
+ [10, 1],
127
+ [10, 1],
128
+ [10, 1],
129
+ [10, 2],
130
+ [10, 2],
131
+ [9, 3],
132
+ [9, 2],
133
+ [12, 2],
134
+ [12, 2],
135
+ [12, 2],
136
+ [12, 1],
137
+ [12, 1],
138
+ [12, 1],
139
+ [12, 1],
140
+ [12, 1],
141
+ [14, 1],
142
+ [14, 1],
143
+ [18, 3],
144
+ [17, 1],
145
+ [17, 4]
146
+ ],
147
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
148
+ var s = a.length - 1;
149
+ switch (i) {
150
+ case 6:
151
+ case 7: return r;
152
+ case 8:
153
+ r.getLogger().trace("Stop NL ");
154
+ break;
155
+ case 9:
156
+ r.getLogger().trace("Stop EOF ");
157
+ break;
158
+ case 11:
159
+ r.getLogger().trace("Stop NL2 ");
160
+ break;
161
+ case 12:
162
+ r.getLogger().trace("Stop EOF2 ");
163
+ break;
164
+ case 15:
165
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
166
+ break;
167
+ case 16:
168
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
169
+ break;
170
+ case 17:
171
+ case 21:
172
+ r.decorateNode({ class: a[s] });
173
+ break;
174
+ case 18:
175
+ r.getLogger().trace("SPACELIST");
176
+ break;
177
+ case 19:
178
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
179
+ break;
180
+ case 20:
181
+ r.decorateNode({ icon: a[s] });
182
+ break;
183
+ case 25:
184
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
185
+ id: a[s - 1],
186
+ descr: a[s - 1],
187
+ type: r.getType(a[s - 2], a[s])
188
+ };
189
+ break;
190
+ case 26:
191
+ this.$ = {
192
+ id: a[s],
193
+ descr: a[s],
194
+ type: r.nodeType.DEFAULT
195
+ };
196
+ break;
197
+ case 27:
198
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
199
+ id: a[s - 3],
200
+ descr: a[s - 1],
201
+ type: r.getType(a[s - 2], a[s])
202
+ };
203
+ break;
204
+ }
205
+ }, "anonymous"),
206
+ table: [
207
+ {
208
+ 3: 1,
209
+ 4: 2,
210
+ 5: 3,
211
+ 6: [1, 5],
212
+ 8: n
213
+ },
214
+ { 1: [3] },
215
+ { 1: [2, 1] },
216
+ {
217
+ 4: 6,
218
+ 6: [1, 7],
219
+ 7: [1, 8],
220
+ 8: n
221
+ },
222
+ {
223
+ 6: r,
224
+ 7: [1, 10],
225
+ 9: 9,
226
+ 12: 11,
227
+ 13: i,
228
+ 14: 14,
229
+ 15: a,
230
+ 16: o,
231
+ 17: 17,
232
+ 18: 18,
233
+ 19: s,
234
+ 22: c
235
+ },
236
+ t(l, [2, 3]),
237
+ { 1: [2, 2] },
238
+ t(l, [2, 4]),
239
+ t(l, [2, 5]),
240
+ {
241
+ 1: [2, 6],
242
+ 6: r,
243
+ 12: 21,
244
+ 13: i,
245
+ 14: 14,
246
+ 15: a,
247
+ 16: o,
248
+ 17: 17,
249
+ 18: 18,
250
+ 19: s,
251
+ 22: c
252
+ },
253
+ {
254
+ 6: r,
255
+ 9: 22,
256
+ 12: 11,
257
+ 13: i,
258
+ 14: 14,
259
+ 15: a,
260
+ 16: o,
261
+ 17: 17,
262
+ 18: 18,
263
+ 19: s,
264
+ 22: c
265
+ },
266
+ {
267
+ 6: u,
268
+ 7: d,
269
+ 10: 23,
270
+ 11: f
271
+ },
272
+ t(p, [2, 22], {
273
+ 17: 17,
274
+ 18: 18,
275
+ 14: 27,
276
+ 15: [1, 28],
277
+ 16: [1, 29],
278
+ 19: s,
279
+ 22: c
280
+ }),
281
+ t(p, [2, 18]),
282
+ t(p, [2, 19]),
283
+ t(p, [2, 20]),
284
+ t(p, [2, 21]),
285
+ t(p, [2, 23]),
286
+ t(p, [2, 24]),
287
+ t(p, [2, 26], { 19: [1, 30] }),
288
+ { 20: [1, 31] },
289
+ {
290
+ 6: u,
291
+ 7: d,
292
+ 10: 32,
293
+ 11: f
294
+ },
295
+ {
296
+ 1: [2, 7],
297
+ 6: r,
298
+ 12: 21,
299
+ 13: i,
300
+ 14: 14,
301
+ 15: a,
302
+ 16: o,
303
+ 17: 17,
304
+ 18: 18,
305
+ 19: s,
306
+ 22: c
307
+ },
308
+ t(m, [2, 14], {
309
+ 7: h,
310
+ 11: g
311
+ }),
312
+ t(_, [2, 8]),
313
+ t(_, [2, 9]),
314
+ t(_, [2, 10]),
315
+ t(p, [2, 15]),
316
+ t(p, [2, 16]),
317
+ t(p, [2, 17]),
318
+ { 20: [1, 35] },
319
+ { 21: [1, 36] },
320
+ t(m, [2, 13], {
321
+ 7: h,
322
+ 11: g
323
+ }),
324
+ t(_, [2, 11]),
325
+ t(_, [2, 12]),
326
+ { 21: [1, 37] },
327
+ t(p, [2, 25]),
328
+ t(p, [2, 27])
329
+ ],
330
+ defaultActions: {
331
+ 2: [2, 1],
332
+ 6: [2, 2]
333
+ },
334
+ parseError: /* @__PURE__ */ e(function(e, t) {
335
+ if (t.recoverable) this.trace(e);
336
+ else {
337
+ var n = Error(e);
338
+ throw n.hash = t, n;
339
+ }
340
+ }, "parseError"),
341
+ parse: /* @__PURE__ */ e(function(t) {
342
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
343
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
344
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
345
+ var v = h.yylloc;
346
+ o.push(v);
347
+ var y = h.options && h.options.ranges;
348
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
349
+ function b(e) {
350
+ r.length -= 2 * e, a.length -= e, o.length -= e;
351
+ }
352
+ e(b, "popStack");
353
+ function x() {
354
+ var e = i.pop() || h.lex() || p;
355
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
356
+ }
357
+ e(x, "lex");
358
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
359
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
360
+ var M = "";
361
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
362
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
363
+ text: h.match,
364
+ token: this.terminals_[S] || S,
365
+ line: h.yylineno,
366
+ loc: v,
367
+ expected: j
368
+ });
369
+ }
370
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
371
+ switch (T[0]) {
372
+ case 1:
373
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
374
+ break;
375
+ case 2:
376
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
377
+ first_line: o[o.length - (k || 1)].first_line,
378
+ last_line: o[o.length - 1].last_line,
379
+ first_column: o[o.length - (k || 1)].first_column,
380
+ last_column: o[o.length - 1].last_column
381
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
382
+ c,
383
+ u,
384
+ l,
385
+ g.yy,
386
+ T[1],
387
+ a,
388
+ o
389
+ ].concat(m)), E !== void 0) return E;
390
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
391
+ break;
392
+ case 3: return !0;
393
+ }
394
+ }
395
+ return !0;
396
+ }, "parse")
397
+ };
398
+ v.lexer = /* @__PURE__ */ (function() {
399
+ return {
400
+ EOF: 1,
401
+ parseError: /* @__PURE__ */ e(function(e, t) {
402
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
403
+ else throw Error(e);
404
+ }, "parseError"),
405
+ setInput: /* @__PURE__ */ e(function(e, t) {
406
+ return this.yy = t || 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 = {
407
+ first_line: 1,
408
+ first_column: 0,
409
+ last_line: 1,
410
+ last_column: 0
411
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
412
+ }, "setInput"),
413
+ input: /* @__PURE__ */ e(function() {
414
+ var e = this._input[0];
415
+ 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;
416
+ }, "input"),
417
+ unput: /* @__PURE__ */ e(function(e) {
418
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
419
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
420
+ var r = this.match.split(/(?:\r\n?|\n)/g);
421
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
422
+ var i = this.yylloc.range;
423
+ return this.yylloc = {
424
+ first_line: this.yylloc.first_line,
425
+ last_line: this.yylineno + 1,
426
+ first_column: this.yylloc.first_column,
427
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
428
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
429
+ }, "unput"),
430
+ more: /* @__PURE__ */ e(function() {
431
+ return this._more = !0, this;
432
+ }, "more"),
433
+ reject: /* @__PURE__ */ e(function() {
434
+ if (this.options.backtrack_lexer) this._backtrack = !0;
435
+ 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).\n" + this.showPosition(), {
436
+ text: "",
437
+ token: null,
438
+ line: this.yylineno
439
+ });
440
+ return this;
441
+ }, "reject"),
442
+ less: /* @__PURE__ */ e(function(e) {
443
+ this.unput(this.match.slice(e));
444
+ }, "less"),
445
+ pastInput: /* @__PURE__ */ e(function() {
446
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
447
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
448
+ }, "pastInput"),
449
+ upcomingInput: /* @__PURE__ */ e(function() {
450
+ var e = this.match;
451
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
452
+ }, "upcomingInput"),
453
+ showPosition: /* @__PURE__ */ e(function() {
454
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
455
+ return e + this.upcomingInput() + "\n" + t + "^";
456
+ }, "showPosition"),
457
+ test_match: /* @__PURE__ */ e(function(e, t) {
458
+ var n, r, i;
459
+ if (this.options.backtrack_lexer && (i = {
460
+ yylineno: this.yylineno,
461
+ yylloc: {
462
+ first_line: this.yylloc.first_line,
463
+ last_line: this.last_line,
464
+ first_column: this.yylloc.first_column,
465
+ last_column: this.yylloc.last_column
466
+ },
467
+ yytext: this.yytext,
468
+ match: this.match,
469
+ matches: this.matches,
470
+ matched: this.matched,
471
+ yyleng: this.yyleng,
472
+ offset: this.offset,
473
+ _more: this._more,
474
+ _input: this._input,
475
+ yy: this.yy,
476
+ conditionStack: this.conditionStack.slice(0),
477
+ done: this.done
478
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
479
+ first_line: this.yylloc.last_line,
480
+ last_line: this.yylineno + 1,
481
+ first_column: this.yylloc.last_column,
482
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
483
+ }, 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], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
484
+ if (this._backtrack) {
485
+ for (var a in i) this[a] = i[a];
486
+ return !1;
487
+ }
488
+ return !1;
489
+ }, "test_match"),
490
+ next: /* @__PURE__ */ e(function() {
491
+ if (this.done) return this.EOF;
492
+ this._input || (this.done = !0);
493
+ var e, t, n, r;
494
+ this._more || (this.yytext = "", this.match = "");
495
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
496
+ if (t = n, r = a, this.options.backtrack_lexer) {
497
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
498
+ if (this._backtrack) {
499
+ t = !1;
500
+ continue;
501
+ } else return !1;
502
+ } else if (!this.options.flex) break;
503
+ }
504
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
505
+ text: "",
506
+ token: null,
507
+ line: this.yylineno
508
+ });
509
+ }, "next"),
510
+ lex: /* @__PURE__ */ e(function() {
511
+ return this.next() || this.lex();
512
+ }, "lex"),
513
+ begin: /* @__PURE__ */ e(function(e) {
514
+ this.conditionStack.push(e);
515
+ }, "begin"),
516
+ popState: /* @__PURE__ */ e(function() {
517
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
518
+ }, "popState"),
519
+ _currentRules: /* @__PURE__ */ e(function() {
520
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
521
+ }, "_currentRules"),
522
+ topState: /* @__PURE__ */ e(function(e) {
523
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
524
+ }, "topState"),
525
+ pushState: /* @__PURE__ */ e(function(e) {
526
+ this.begin(e);
527
+ }, "pushState"),
528
+ stateStackSize: /* @__PURE__ */ e(function() {
529
+ return this.conditionStack.length;
530
+ }, "stateStackSize"),
531
+ options: { "case-insensitive": !0 },
532
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
533
+ switch (n) {
534
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
535
+ case 1: return 8;
536
+ case 2:
537
+ this.begin("CLASS");
538
+ break;
539
+ case 3: return this.popState(), 16;
540
+ case 4:
541
+ this.popState();
542
+ break;
543
+ case 5:
544
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
545
+ break;
546
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
547
+ case 7: return 7;
548
+ case 8: return 15;
549
+ case 9:
550
+ e.getLogger().trace("end icon"), this.popState();
551
+ break;
552
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
553
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
554
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
555
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
556
+ case 14: return this.begin("NODE"), 19;
557
+ case 15: return this.begin("NODE"), 19;
558
+ case 16: return this.begin("NODE"), 19;
559
+ case 17: return this.begin("NODE"), 19;
560
+ case 18: return 13;
561
+ case 19: return 22;
562
+ case 20: return 11;
563
+ case 21:
564
+ this.begin("NSTR2");
565
+ break;
566
+ case 22: return "NODE_DESCR";
567
+ case 23:
568
+ this.popState();
569
+ break;
570
+ case 24:
571
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
572
+ break;
573
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
574
+ case 26:
575
+ this.popState();
576
+ break;
577
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
578
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
579
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
580
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
581
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
582
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
584
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
586
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
587
+ }
588
+ }, "anonymous"),
589
+ rules: [
590
+ /^(?:\s*%%.*)/i,
591
+ /^(?:mindmap\b)/i,
592
+ /^(?::::)/i,
593
+ /^(?:.+)/i,
594
+ /^(?:\n)/i,
595
+ /^(?:::icon\()/i,
596
+ /^(?:[\s]+[\n])/i,
597
+ /^(?:[\n]+)/i,
598
+ /^(?:[^\)]+)/i,
599
+ /^(?:\))/i,
600
+ /^(?:-\))/i,
601
+ /^(?:\(-)/i,
602
+ /^(?:\)\))/i,
603
+ /^(?:\))/i,
604
+ /^(?:\(\()/i,
605
+ /^(?:\{\{)/i,
606
+ /^(?:\()/i,
607
+ /^(?:\[)/i,
608
+ /^(?:[\s]+)/i,
609
+ /^(?:[^\(\[\n\)\{\}]+)/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
+ /^(?:\()/i,
625
+ /^(?:[^\)\]\(\}]+)/i,
626
+ /^(?:.+(?!\(\())/i
627
+ ],
628
+ conditions: {
629
+ CLASS: {
630
+ rules: [3, 4],
631
+ inclusive: !1
632
+ },
633
+ ICON: {
634
+ rules: [8, 9],
635
+ inclusive: !1
636
+ },
637
+ NSTR2: {
638
+ rules: [22, 23],
639
+ inclusive: !1
640
+ },
641
+ NSTR: {
642
+ rules: [25, 26],
643
+ inclusive: !1
644
+ },
645
+ NODE: {
646
+ rules: [
647
+ 21,
648
+ 24,
649
+ 27,
650
+ 28,
651
+ 29,
652
+ 30,
653
+ 31,
654
+ 32,
655
+ 33,
656
+ 34,
657
+ 35,
658
+ 36
659
+ ],
660
+ inclusive: !1
661
+ },
662
+ INITIAL: {
663
+ rules: [
664
+ 0,
665
+ 1,
666
+ 2,
667
+ 5,
668
+ 6,
669
+ 7,
670
+ 10,
671
+ 11,
672
+ 12,
673
+ 13,
674
+ 14,
675
+ 15,
676
+ 16,
677
+ 17,
678
+ 18,
679
+ 19,
680
+ 20
681
+ ],
682
+ inclusive: !0
683
+ }
684
+ }
685
+ };
686
+ })();
687
+ function y() {
688
+ this.yy = {};
689
+ }
690
+ return e(y, "Parser"), y.prototype = v, v.Parser = y, new y();
691
+ })();
692
+ b.parser = b;
693
+ var x = b, S = 12, C = {
694
+ DEFAULT: 0,
695
+ NO_BORDER: 0,
696
+ ROUNDED_RECT: 1,
697
+ RECT: 2,
698
+ CIRCLE: 3,
699
+ CLOUD: 4,
700
+ BANG: 5,
701
+ HEXAGON: 6
702
+ }, w = class {
703
+ constructor() {
704
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = C, 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);
705
+ }
706
+ static {
707
+ e(this, "MindmapDB");
708
+ }
709
+ clear() {
710
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
711
+ }
712
+ getParent(e) {
713
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
714
+ return null;
715
+ }
716
+ getMindmap() {
717
+ return this.nodes.length > 0 ? this.nodes[0] : null;
718
+ }
719
+ addNode(e, n, i, a) {
720
+ t.info("addNode", e, n, i, a);
721
+ let o = !1;
722
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, o = !0) : this.baseLevel !== void 0 && (e -= this.baseLevel, o = !1);
723
+ let s = c(), u = s.mindmap?.padding ?? r.mindmap.padding;
724
+ switch (a) {
725
+ case this.nodeType.ROUNDED_RECT:
726
+ case this.nodeType.RECT:
727
+ case this.nodeType.HEXAGON:
728
+ u *= 2;
729
+ break;
730
+ }
731
+ let d = {
732
+ id: this.count++,
733
+ nodeId: l(n, s),
734
+ level: e,
735
+ descr: l(i, s),
736
+ type: a,
737
+ children: [],
738
+ width: s.mindmap?.maxNodeWidth ?? r.mindmap.maxNodeWidth,
739
+ padding: u,
740
+ isRoot: o
741
+ }, f = this.getParent(e);
742
+ if (f) f.children.push(d), this.nodes.push(d);
743
+ else if (o) this.nodes.push(d);
744
+ else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
745
+ }
746
+ getType(e, n) {
747
+ switch (t.debug("In get type", e, n), e) {
748
+ case "[": return this.nodeType.RECT;
749
+ case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
750
+ case "((": return this.nodeType.CIRCLE;
751
+ case ")": return this.nodeType.CLOUD;
752
+ case "))": return this.nodeType.BANG;
753
+ case "{{": return this.nodeType.HEXAGON;
754
+ default: return this.nodeType.DEFAULT;
755
+ }
756
+ }
757
+ setElementForId(e, t) {
758
+ this.elements[e] = t;
759
+ }
760
+ getElementById(e) {
761
+ return this.elements[e];
762
+ }
763
+ decorateNode(e) {
764
+ if (!e) return;
765
+ let t = c(), n = this.nodes[this.nodes.length - 1];
766
+ e.icon && (n.icon = l(e.icon, t)), e.class && (n.class = l(e.class, t));
767
+ }
768
+ type2Str(e) {
769
+ switch (e) {
770
+ case this.nodeType.DEFAULT: return "no-border";
771
+ case this.nodeType.RECT: return "rect";
772
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
773
+ case this.nodeType.CIRCLE: return "circle";
774
+ case this.nodeType.CLOUD: return "cloud";
775
+ case this.nodeType.BANG: return "bang";
776
+ case this.nodeType.HEXAGON: return "hexgon";
777
+ default: return "no-border";
778
+ }
779
+ }
780
+ assignSections(e, t) {
781
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
782
+ let i = e.level === 0 ? n % (S - 1) : t;
783
+ this.assignSections(r, i);
784
+ }
785
+ }
786
+ flattenNodes(t, n) {
787
+ let r = c(), i = ["mindmap-node"];
788
+ t.isRoot === !0 ? i.push("section-root", "section--1") : t.section !== void 0 && i.push(`section-${t.section}`), t.class && i.push(t.class);
789
+ let a = i.join(" "), o = /* @__PURE__ */ e((e) => {
790
+ let t = (r.theme?.toLowerCase() ?? "").includes("redux");
791
+ switch (e) {
792
+ case C.CIRCLE: return "mindmapCircle";
793
+ case C.RECT: return "rect";
794
+ case C.ROUNDED_RECT: return "rounded";
795
+ case C.CLOUD: return "cloud";
796
+ case C.BANG: return "bang";
797
+ case C.HEXAGON: return "hexagon";
798
+ case C.DEFAULT: return t ? "rounded" : "defaultMindmapNode";
799
+ case C.NO_BORDER:
800
+ default: return "rect";
801
+ }
802
+ }, "getShapeFromType"), s = {
803
+ id: t.id.toString(),
804
+ domId: "node_" + t.id.toString(),
805
+ label: t.descr,
806
+ labelType: "markdown",
807
+ isGroup: !1,
808
+ shape: o(t.type),
809
+ width: t.width,
810
+ height: t.height ?? 0,
811
+ padding: t.padding,
812
+ cssClasses: a,
813
+ cssStyles: [],
814
+ look: r.look,
815
+ icon: t.icon,
816
+ x: t.x,
817
+ y: t.y,
818
+ level: t.level,
819
+ nodeId: t.nodeId,
820
+ type: t.type,
821
+ section: t.section
822
+ };
823
+ if (n.push(s), t.children) for (let e of t.children) this.flattenNodes(e, n);
824
+ }
825
+ generateEdges(e, t) {
826
+ if (!e.children) return;
827
+ let n = c();
828
+ for (let r of e.children) {
829
+ let i = "edge";
830
+ r.section !== void 0 && (i += ` section-edge-${r.section}`);
831
+ let a = e.level + 1;
832
+ i += ` edge-depth-${a}`;
833
+ let o = {
834
+ id: `edge_${e.id}_${r.id}`,
835
+ start: e.id.toString(),
836
+ end: r.id.toString(),
837
+ type: "normal",
838
+ curve: "basis",
839
+ thickness: "normal",
840
+ look: n.look,
841
+ classes: i,
842
+ depth: e.level,
843
+ section: r.section
844
+ };
845
+ t.push(o), this.generateEdges(r, t);
846
+ }
847
+ }
848
+ getData() {
849
+ let e = this.getMindmap(), n = c(), r = a().layout !== void 0, i = n;
850
+ if (r || (i.layout = "cose-bilkent"), !e) return {
851
+ nodes: [],
852
+ edges: [],
853
+ config: i
854
+ };
855
+ t.debug("getData: mindmapRoot", e, n), this.assignSections(e);
856
+ let o = [], s = [];
857
+ this.flattenNodes(e, o), this.generateEdges(e, s), t.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);
858
+ let l = /* @__PURE__ */ new Map();
859
+ for (let e of o) l.set(e.id, {
860
+ shape: e.shape,
861
+ width: e.width,
862
+ height: e.height,
863
+ padding: e.padding
864
+ });
865
+ return {
866
+ nodes: o,
867
+ edges: s,
868
+ config: i,
869
+ rootNode: e,
870
+ markers: ["point"],
871
+ direction: "TB",
872
+ nodeSpacing: 50,
873
+ rankSpacing: 50,
874
+ shapes: Object.fromEntries(l),
875
+ type: "mindmap",
876
+ diagramId: "mindmap-" + v()
877
+ };
878
+ }
879
+ getLogger() {
880
+ return t;
881
+ }
882
+ }, T = { draw: /* @__PURE__ */ e(async (e, i, a, o) => {
883
+ t.debug("Rendering mindmap diagram\n" + e);
884
+ let s = o.db, c = s.getData(), l = u(i, c.config.securityLevel);
885
+ if (c.type = o.type, c.layoutAlgorithm = p(c.config.layout, { fallback: "cose-bilkent" }), c.diagramId = i, !s.getMindmap()) return;
886
+ c.nodes.forEach((e) => {
887
+ e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
888
+ }), await f(c, l);
889
+ let { themeVariables: m } = n(), { useGradient: h, gradientStart: g, gradientStop: _ } = m;
890
+ if (h && g && _) {
891
+ let e = l.attr("id"), t = l.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
892
+ t.append("stop").attr("offset", "0%").attr("stop-color", g).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", _).attr("stop-opacity", 1);
893
+ }
894
+ d(l, c.config.mindmap?.padding ?? r.mindmap.padding, "mindmapDiagram", c.config.mindmap?.useMaxWidth ?? r.mindmap.useMaxWidth);
895
+ }, "draw") }, E = /* @__PURE__ */ e((e) => {
896
+ let { theme: t, look: n } = e, r = "";
897
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], i(e["lineColor" + t]) ? e["lineColor" + t] = o(e["lineColor" + t], 20) : e["lineColor" + t] = s(e["lineColor" + t], 20);
898
+ for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) {
899
+ let a = "" + (n === "neo" ? Math.max(10 - (i - 1) * 2, 2) : 17 - 3 * i);
900
+ r += `
901
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
902
+ fill: ${e["cScale" + i]};
903
+ }
904
+ .section-${i - 1} text {
905
+ fill: ${e["cScaleLabel" + i]};
906
+ }
907
+ .section-${i - 1} span {
908
+ color: ${e["cScaleLabel" + i]};
909
+ }
910
+ .node-icon-${i - 1} {
911
+ font-size: 40px;
912
+ color: ${e["cScaleLabel" + i]};
913
+ }
914
+ .section-edge-${i - 1}{
915
+ stroke: ${e["cScale" + i]};
916
+ }
917
+ .edge-depth-${i - 1}{
918
+ stroke-width: ${a};
919
+ }
920
+ .section-${i - 1} line {
921
+ stroke: ${e["cScaleInv" + i]} ;
922
+ stroke-width: 3;
923
+ }
924
+
925
+ .disabled, .disabled circle, .disabled text {
926
+ fill: lightgray;
927
+ }
928
+ .disabled text {
929
+ fill: #efefef;
930
+ }
931
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
932
+ fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + i]};
933
+ stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + i]};
934
+ stroke-width: ${e.strokeWidth ?? 2}px;
935
+ }
936
+ [data-look="neo"].section-edge-${i - 1}{
937
+ stroke: ${t?.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + i]};
938
+ }
939
+ [data-look="neo"].mindmap-node.section-${i - 1} text {
940
+ fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : i)]};
941
+ }
942
+ `;
943
+ }
944
+ return r;
945
+ }, "genSections"), D = /* @__PURE__ */ e((e, t, n) => {
946
+ let r = "";
947
+ for (let i = 0; i < e; i++) r += `
948
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
949
+ stroke: url(${t}-gradient);
950
+ fill: ${n};
951
+ }
952
+ .section-${i - 1} line {
953
+ stroke-width: 0;
954
+ }`;
955
+ return r;
956
+ }, "genGradient"), O = {
957
+ get db() {
958
+ return new w();
959
+ },
960
+ renderer: T,
961
+ parser: x,
962
+ styles: /* @__PURE__ */ e((e) => {
963
+ let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
964
+ return `
965
+ .edge {
966
+ stroke-width: 3;
967
+ }
968
+ ${E(e)}
969
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
970
+ fill: ${e.git0};
971
+ }
972
+ .section-root text {
973
+ fill: ${e.gitBranchLabel0};
974
+ }
975
+ .section-root span {
976
+ color: ${t?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
977
+ }
978
+ .icon-container {
979
+ height:100%;
980
+ display: flex;
981
+ justify-content: center;
982
+ align-items: center;
983
+ }
984
+ .edge {
985
+ fill: none;
986
+ }
987
+ .mindmap-node-label {
988
+ dy: 1em;
989
+ alignment-baseline: middle;
990
+ text-anchor: middle;
991
+ dominant-baseline: middle;
992
+ text-align: center;
993
+ }
994
+ [data-look="neo"].mindmap-node {
995
+ filter: ${r};
996
+ }
997
+ [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 {
998
+ fill: ${t?.includes("redux") ? e.mainBkg : e.git0};
999
+ }
1000
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1001
+ fill: ${t?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
1002
+ }
1003
+ ${e.useGradient && n && e.mainBkg ? D(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1004
+ `;
1005
+ }, "getStyles")
1006
+ };
1007
+ //#endregion
1008
+ export { O as diagram };