react-docs-ui 0.6.17 → 0.6.18

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 (150) hide show
  1. package/dist/{AIChatDialog-W60DtiEW.js → AIChatDialog-BnAX3dRn.js} +2 -2
  2. package/dist/{AISelectionTrigger-MaBGhxTE.js → AISelectionTrigger-SLyb8Vep.js} +2 -2
  3. package/dist/{AISettingsPanel-aiMnncnQ.js → AISettingsPanel-Bsd_wLP4.js} +3 -3
  4. package/dist/{DocsApp-BN6Bo0YD.js → DocsApp-CNVM_Zcf.js} +3505 -3208
  5. package/dist/{GlobalContextMenu-DG6x5Y5w.js → GlobalContextMenu-BtVjQk0v.js} +1 -1
  6. package/dist/{MdxContent-CMB8ZbXo.js → MdxContent-D2l4Au7Z.js} +310 -306
  7. package/dist/{MdxContent.lazy-C4rcCv4v.js → MdxContent.lazy-BirC7wrH.js} +1 -1
  8. package/dist/{SearchDialog-tUSKKsxW.js → SearchDialog-DWVre6R9.js} +66 -56
  9. package/dist/{SearchRuntime-5fXpxDsi.js → SearchRuntime-D0rSMKV3.js} +6 -5
  10. package/dist/_basePickBy-3HEi44E5.js +166 -0
  11. package/dist/_baseUniq-CyOGXr0t.js +682 -0
  12. package/dist/arc-DULIiw5L.js +80 -0
  13. package/dist/architecture-PBZL5I3N-DT4oHaWT.js +3 -0
  14. package/dist/architectureDiagram-2XIMDMQ5-CqinFxzU.js +4045 -0
  15. package/dist/array-DHiPsILf.js +6 -0
  16. package/dist/blockDiagram-WCTKOSBZ-4JAhKeqm.js +3025 -0
  17. package/dist/c4Diagram-IC4MRINW-DtmtzsQQ.js +2964 -0
  18. package/dist/channel-BPONoOHQ.js +5 -0
  19. package/dist/chunk-4BX2VUAB-Bv5NGtUU.js +8 -0
  20. package/dist/chunk-55IACEB6-BXL-F-QI.js +8 -0
  21. package/dist/chunk-7E7YKBS2-CuTUVGrY.js +23 -0
  22. package/dist/chunk-7R4GIKGN-Qkaxl46X.js +2596 -0
  23. package/dist/chunk-C72U2L5F-42ScKBi2.js +23 -0
  24. package/dist/chunk-EGIJ26TM-D9jfybGA.js +23 -0
  25. package/dist/chunk-FMBD7UC4-DZXaweDk.js +5 -0
  26. package/dist/chunk-GEFDOKGD-OXBFFBXI.js +1121 -0
  27. package/dist/chunk-GLR3WWYH-BNwKwdNm.js +41 -0
  28. package/dist/chunk-HHEYEP7N-BQ3EJT5G.js +9 -0
  29. package/dist/chunk-JSJVCQXG-DNkHiMyV.js +60 -0
  30. package/dist/chunk-KX2RTZJC-DuTfSwwu.js +25 -0
  31. package/dist/chunk-KYZI473N-COpLSX52.js +3434 -0
  32. package/dist/chunk-L3YUKLVL-BdSnx12A.js +23 -0
  33. package/dist/chunk-MX3YWQON-CrwNXQjz.js +80 -0
  34. package/dist/chunk-NBPlniwU.js +23 -0
  35. package/dist/chunk-NQ4KR5QH-Y07nfCMJ.js +2002 -0
  36. package/dist/chunk-O4XLMI2P-CuexQiBs.js +511 -0
  37. package/dist/chunk-OZEHJAEY-D6vfkGpv.js +64 -0
  38. package/dist/chunk-PQ6SQG4A-6cI0SCcc.js +67 -0
  39. package/dist/chunk-PU5JKC2W-an2DzREj.js +1885 -0
  40. package/dist/chunk-QZHKN3VN-BKMQ36H3.js +15 -0
  41. package/dist/chunk-R5LLSJPH-DOyud7qN.js +35 -0
  42. package/dist/chunk-WL4C6EOR-y1gU9zpd.js +3194 -0
  43. package/dist/chunk-XIRO2GV7-BD1Cp5pB.js +30 -0
  44. package/dist/chunk-XPW4576I-DOBR2ORN.js +1146 -0
  45. package/dist/chunk-XZSTWKYB-BQ9uqNJe.js +15797 -0
  46. package/dist/chunk-YBOYWFTD-BT3l76Xm.js +32 -0
  47. package/dist/classDiagram-VBA2DB6C-AUxID939.js +29 -0
  48. package/dist/classDiagram-v2-RAHNMMFH-tupy2OPi.js +29 -0
  49. package/dist/clone-CRTZj7kp.js +8 -0
  50. package/dist/cose-bilkent-S5V4N54A-Bbd2d2j7.js +2250 -0
  51. package/dist/cytoscape.esm-CQKQOqRt.js +18100 -0
  52. package/dist/dagre-Cyr5_x2X.js +1483 -0
  53. package/dist/dagre-KLK3FWXG-Bjsq-TtB.js +294 -0
  54. package/dist/defaultLocale-P2nWjZJu.js +201 -0
  55. package/dist/diagram-E7M64L7V-CCTuI46e.js +527 -0
  56. package/dist/diagram-IFDJBPK2-DI_KTvRx.js +213 -0
  57. package/dist/diagram-P4PSJMXO-D3SeWDdU.js +133 -0
  58. package/dist/dist-CSS39H68.js +50 -0
  59. package/dist/docs-app.es.js +1 -1
  60. package/dist/erDiagram-INFDFZHY-Db_DAoTf.js +1666 -0
  61. package/dist/flowDiagram-PKNHOUZH-TqyNp9Dn.js +4161 -0
  62. package/dist/ganttDiagram-A5KZAMGK-DqNVbtHo.js +3072 -0
  63. package/dist/gitGraph-HDMCJU4V-DQudxfzL.js +3 -0
  64. package/dist/gitGraphDiagram-K3NZZRJ6-Cga9Wfgb.js +625 -0
  65. package/dist/graphlib-CexrUFs9.js +225 -0
  66. package/dist/info-3K5VOQVL-DiuN3kw6.js +3 -0
  67. package/dist/infoDiagram-LFFYTUFH-bvABxJph.js +19 -0
  68. package/dist/init-GWRygwCo.js +15 -0
  69. package/dist/isArrayLikeObject-CG2kGrxR.js +578 -0
  70. package/dist/isEmpty-C8iIdTg-.js +35 -0
  71. package/dist/ishikawaDiagram-PHBUUO56-DKGPu-hu.js +717 -0
  72. package/dist/journeyDiagram-4ABVD52K-DefcNau0.js +883 -0
  73. package/dist/kanban-definition-K7BYSVSG-BXvFQzdZ.js +971 -0
  74. package/dist/line-ChPoSgrf.js +34 -0
  75. package/dist/linear-BeQrMQNe.js +289 -0
  76. package/dist/math-CgS6d5p2.js +10 -0
  77. package/dist/{shiki-highlighter-BmQSSJpS.js → mdx-components-Bz45lgrV.js} +1387 -1288
  78. package/dist/mermaid-parser.core-CDTyVXPe.js +59 -0
  79. package/dist/mermaid.core-CHJrGTZ9.js +919 -0
  80. package/dist/mindmap-definition-YRQLILUH-CqsMcFhX.js +964 -0
  81. package/dist/ordinal-DUEC8Lr4.js +65 -0
  82. package/dist/packet-RMMSAZCW-ZLaHU0Ov.js +3 -0
  83. package/dist/path-CzRXOvk1.js +85 -0
  84. package/dist/pie-UPGHQEXC-COgIbE0j.js +3 -0
  85. package/dist/pieDiagram-SKSYHLDU-C8Y5Bc8d.js +165 -0
  86. package/dist/quadrantDiagram-337W2JSQ-DRWBX5cn.js +1974 -0
  87. package/dist/radar-KQ55EAFF-ABFVVcns.js +3 -0
  88. package/dist/react-docs-ui.css +1 -1
  89. package/dist/react-docs-ui.es.js +19 -19
  90. package/dist/requirementDiagram-Z7DCOOCP-EkyUnFq8.js +2201 -0
  91. package/dist/rough.esm-qTNNhHn7.js +1352 -0
  92. package/dist/sankeyDiagram-WA2Y5GQK-Cmas7IuZ.js +920 -0
  93. package/dist/sequenceDiagram-2WXFIKYE-B7TrFw3o.js +4109 -0
  94. package/dist/src-B8kKzJ6p.js +2146 -0
  95. package/dist/stateDiagram-RAJIS63D-DyqZyFdt.js +217 -0
  96. package/dist/stateDiagram-v2-FVOUBMTO-5UjWXgt6.js +27 -0
  97. package/dist/timeline-definition-YZTLITO2-qhoXPOhL.js +830 -0
  98. package/dist/treemap-KZPCXAKY-CRdRsoRo.js +3 -0
  99. package/dist/types/components/AnnouncementBar.d.ts +12 -0
  100. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  101. package/dist/types/components/DocsLayout.d.ts +8 -2
  102. package/dist/types/components/DocsLayout.d.ts.map +1 -1
  103. package/dist/types/components/HeaderNav.d.ts +17 -1
  104. package/dist/types/components/HeaderNav.d.ts.map +1 -1
  105. package/dist/types/components/MdxContent.d.ts.map +1 -1
  106. package/dist/types/components/MobileSidebar.d.ts +2 -1
  107. package/dist/types/components/MobileSidebar.d.ts.map +1 -1
  108. package/dist/types/components/PageFeedback.d.ts +11 -0
  109. package/dist/types/components/PageFeedback.d.ts.map +1 -0
  110. package/dist/types/components/PageMetaActions.d.ts +15 -0
  111. package/dist/types/components/PageMetaActions.d.ts.map +1 -0
  112. package/dist/types/components/PageNavigation.d.ts +2 -1
  113. package/dist/types/components/PageNavigation.d.ts.map +1 -1
  114. package/dist/types/components/SearchLauncher.d.ts +2 -1
  115. package/dist/types/components/SearchLauncher.d.ts.map +1 -1
  116. package/dist/types/components/SidebarNav.d.ts +2 -1
  117. package/dist/types/components/SidebarNav.d.ts.map +1 -1
  118. package/dist/types/components/mdx-components/Mermaid.d.ts +6 -0
  119. package/dist/types/components/mdx-components/Mermaid.d.ts.map +1 -0
  120. package/dist/types/components/mdx-components/Tabs.d.ts +13 -0
  121. package/dist/types/components/mdx-components/Tabs.d.ts.map +1 -0
  122. package/dist/types/components/mdx-components/index.d.ts +2 -0
  123. package/dist/types/components/mdx-components/index.d.ts.map +1 -1
  124. package/dist/types/components/search/SearchProvider.d.ts +2 -1
  125. package/dist/types/components/search/SearchProvider.d.ts.map +1 -1
  126. package/dist/types/components/search/SearchRuntime.d.ts +2 -1
  127. package/dist/types/components/search/SearchRuntime.d.ts.map +1 -1
  128. package/dist/types/lib/component-scanner.d.ts.map +1 -1
  129. package/dist/types/lib/config.d.ts +42 -0
  130. package/dist/types/lib/config.d.ts.map +1 -1
  131. package/dist/types/lib/navigation.d.ts +1 -1
  132. package/dist/types/lib/navigation.d.ts.map +1 -1
  133. package/dist/types/lib/page-meta.d.ts +16 -0
  134. package/dist/types/lib/page-meta.d.ts.map +1 -0
  135. package/dist/types/lib/search/build/index-generator.d.ts.map +1 -1
  136. package/dist/types/lib/search/build/types.d.ts +1 -0
  137. package/dist/types/lib/search/build/types.d.ts.map +1 -1
  138. package/dist/types/lib/search/runtime/search-engine.d.ts.map +1 -1
  139. package/dist/types/lib/search/runtime/types.d.ts +1 -0
  140. package/dist/types/lib/search/runtime/types.d.ts.map +1 -1
  141. package/dist/types/lib/versioning.d.ts +6 -0
  142. package/dist/types/lib/versioning.d.ts.map +1 -0
  143. package/dist/vennDiagram-LZ73GAT5-DlUUn7LI.js +1858 -0
  144. package/dist/xychartDiagram-JWTSCODW-oT2IR7c0.js +2041 -0
  145. package/package.json +4 -1
  146. /package/dist/{AIProvider-C1_b1iKH.js → AIProvider-niZNPSGi.js} +0 -0
  147. /package/dist/{context-menu-CB7erSoV.js → context-menu-BIQsQup7.js} +0 -0
  148. /package/dist/{dialog-DQ6nkP0y.js → dialog-D8otbqQL.js} +0 -0
  149. /package/dist/{mdx-components-Dxpipc50.js → mdx-components-TEc3uhbY.js} +0 -0
  150. /package/dist/{use-toast-d9VPBjMn.js → use-toast-DK69oadB.js} +0 -0
@@ -0,0 +1,964 @@
1
+ import "./chunk-GEFDOKGD-OXBFFBXI.js";
2
+ import { g as e, h as t } from "./src-B8kKzJ6p.js";
3
+ import { $ as n, L as r, O as i, Q as a, b as o, d as s, tt as c } from "./chunk-7R4GIKGN-Qkaxl46X.js";
4
+ import "./chunk-PU5JKC2W-an2DzREj.js";
5
+ import "./chunk-MX3YWQON-CrwNXQjz.js";
6
+ import "./chunk-YBOYWFTD-BT3l76Xm.js";
7
+ import { t as l } from "./chunk-55IACEB6-BXL-F-QI.js";
8
+ import { t as u } from "./chunk-KX2RTZJC-DuTfSwwu.js";
9
+ import "./chunk-PQ6SQG4A-6cI0SCcc.js";
10
+ import "./chunk-KYZI473N-COpLSX52.js";
11
+ import "./chunk-O4XLMI2P-CuexQiBs.js";
12
+ import { r as d, t as f } from "./chunk-GLR3WWYH-BNwKwdNm.js";
13
+ //#region node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js
14
+ var p = [];
15
+ for (let e = 0; e < 256; ++e) p.push((e + 256).toString(16).slice(1));
16
+ function m(e, t = 0) {
17
+ return (p[e[t + 0]] + p[e[t + 1]] + p[e[t + 2]] + p[e[t + 3]] + "-" + p[e[t + 4]] + p[e[t + 5]] + "-" + p[e[t + 6]] + p[e[t + 7]] + "-" + p[e[t + 8]] + p[e[t + 9]] + "-" + p[e[t + 10]] + p[e[t + 11]] + p[e[t + 12]] + p[e[t + 13]] + p[e[t + 14]] + p[e[t + 15]]).toLowerCase();
18
+ }
19
+ //#endregion
20
+ //#region node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js
21
+ var h, g = new Uint8Array(16);
22
+ function _() {
23
+ if (!h) {
24
+ if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
25
+ h = crypto.getRandomValues.bind(crypto);
26
+ }
27
+ return h(g);
28
+ }
29
+ var v = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
30
+ //#endregion
31
+ //#region node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js
32
+ function y(e, t, n) {
33
+ if (v.randomUUID && !t && !e) return v.randomUUID();
34
+ e ||= {};
35
+ let r = e.random ?? e.rng?.() ?? _();
36
+ if (r.length < 16) throw Error("Random bytes length must be >= 16");
37
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
38
+ if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
39
+ for (let e = 0; e < 16; ++e) t[n + e] = r[e];
40
+ return t;
41
+ }
42
+ return m(r);
43
+ }
44
+ //#endregion
45
+ //#region node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-YRQLILUH.mjs
46
+ var b = (function() {
47
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
48
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
49
+ return n;
50
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
51
+ 6,
52
+ 7,
53
+ 8
54
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
55
+ 6,
56
+ 7,
57
+ 11
58
+ ], m = [
59
+ 1,
60
+ 6,
61
+ 13,
62
+ 15,
63
+ 16,
64
+ 19,
65
+ 22
66
+ ], h = [1, 33], g = [1, 34], _ = [
67
+ 1,
68
+ 6,
69
+ 7,
70
+ 11,
71
+ 13,
72
+ 15,
73
+ 16,
74
+ 19,
75
+ 22
76
+ ], v = {
77
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
78
+ yy: {},
79
+ symbols_: {
80
+ error: 2,
81
+ start: 3,
82
+ mindMap: 4,
83
+ spaceLines: 5,
84
+ SPACELINE: 6,
85
+ NL: 7,
86
+ MINDMAP: 8,
87
+ document: 9,
88
+ stop: 10,
89
+ EOF: 11,
90
+ statement: 12,
91
+ SPACELIST: 13,
92
+ node: 14,
93
+ ICON: 15,
94
+ CLASS: 16,
95
+ nodeWithId: 17,
96
+ nodeWithoutId: 18,
97
+ NODE_DSTART: 19,
98
+ NODE_DESCR: 20,
99
+ NODE_DEND: 21,
100
+ NODE_ID: 22,
101
+ $accept: 0,
102
+ $end: 1
103
+ },
104
+ terminals_: {
105
+ 2: "error",
106
+ 6: "SPACELINE",
107
+ 7: "NL",
108
+ 8: "MINDMAP",
109
+ 11: "EOF",
110
+ 13: "SPACELIST",
111
+ 15: "ICON",
112
+ 16: "CLASS",
113
+ 19: "NODE_DSTART",
114
+ 20: "NODE_DESCR",
115
+ 21: "NODE_DEND",
116
+ 22: "NODE_ID"
117
+ },
118
+ productions_: [
119
+ 0,
120
+ [3, 1],
121
+ [3, 2],
122
+ [5, 1],
123
+ [5, 2],
124
+ [5, 2],
125
+ [4, 2],
126
+ [4, 3],
127
+ [10, 1],
128
+ [10, 1],
129
+ [10, 1],
130
+ [10, 2],
131
+ [10, 2],
132
+ [9, 3],
133
+ [9, 2],
134
+ [12, 2],
135
+ [12, 2],
136
+ [12, 2],
137
+ [12, 1],
138
+ [12, 1],
139
+ [12, 1],
140
+ [12, 1],
141
+ [12, 1],
142
+ [14, 1],
143
+ [14, 1],
144
+ [18, 3],
145
+ [17, 1],
146
+ [17, 4]
147
+ ],
148
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
149
+ var s = a.length - 1;
150
+ switch (i) {
151
+ case 6:
152
+ case 7: return r;
153
+ case 8:
154
+ r.getLogger().trace("Stop NL ");
155
+ break;
156
+ case 9:
157
+ r.getLogger().trace("Stop EOF ");
158
+ break;
159
+ case 11:
160
+ r.getLogger().trace("Stop NL2 ");
161
+ break;
162
+ case 12:
163
+ r.getLogger().trace("Stop EOF2 ");
164
+ break;
165
+ case 15:
166
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
167
+ break;
168
+ case 16:
169
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
170
+ break;
171
+ case 17:
172
+ case 21:
173
+ r.decorateNode({ class: a[s] });
174
+ break;
175
+ case 18:
176
+ r.getLogger().trace("SPACELIST");
177
+ break;
178
+ case 19:
179
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
180
+ break;
181
+ case 20:
182
+ r.decorateNode({ icon: a[s] });
183
+ break;
184
+ case 25:
185
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
186
+ id: a[s - 1],
187
+ descr: a[s - 1],
188
+ type: r.getType(a[s - 2], a[s])
189
+ };
190
+ break;
191
+ case 26:
192
+ this.$ = {
193
+ id: a[s],
194
+ descr: a[s],
195
+ type: r.nodeType.DEFAULT
196
+ };
197
+ break;
198
+ case 27:
199
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
200
+ id: a[s - 3],
201
+ descr: a[s - 1],
202
+ type: r.getType(a[s - 2], a[s])
203
+ };
204
+ break;
205
+ }
206
+ }, "anonymous"),
207
+ table: [
208
+ {
209
+ 3: 1,
210
+ 4: 2,
211
+ 5: 3,
212
+ 6: [1, 5],
213
+ 8: n
214
+ },
215
+ { 1: [3] },
216
+ { 1: [2, 1] },
217
+ {
218
+ 4: 6,
219
+ 6: [1, 7],
220
+ 7: [1, 8],
221
+ 8: n
222
+ },
223
+ {
224
+ 6: r,
225
+ 7: [1, 10],
226
+ 9: 9,
227
+ 12: 11,
228
+ 13: i,
229
+ 14: 14,
230
+ 15: a,
231
+ 16: o,
232
+ 17: 17,
233
+ 18: 18,
234
+ 19: s,
235
+ 22: c
236
+ },
237
+ e(l, [2, 3]),
238
+ { 1: [2, 2] },
239
+ e(l, [2, 4]),
240
+ e(l, [2, 5]),
241
+ {
242
+ 1: [2, 6],
243
+ 6: r,
244
+ 12: 21,
245
+ 13: i,
246
+ 14: 14,
247
+ 15: a,
248
+ 16: o,
249
+ 17: 17,
250
+ 18: 18,
251
+ 19: s,
252
+ 22: c
253
+ },
254
+ {
255
+ 6: r,
256
+ 9: 22,
257
+ 12: 11,
258
+ 13: i,
259
+ 14: 14,
260
+ 15: a,
261
+ 16: o,
262
+ 17: 17,
263
+ 18: 18,
264
+ 19: s,
265
+ 22: c
266
+ },
267
+ {
268
+ 6: u,
269
+ 7: d,
270
+ 10: 23,
271
+ 11: f
272
+ },
273
+ e(p, [2, 22], {
274
+ 17: 17,
275
+ 18: 18,
276
+ 14: 27,
277
+ 15: [1, 28],
278
+ 16: [1, 29],
279
+ 19: s,
280
+ 22: c
281
+ }),
282
+ e(p, [2, 18]),
283
+ e(p, [2, 19]),
284
+ e(p, [2, 20]),
285
+ e(p, [2, 21]),
286
+ e(p, [2, 23]),
287
+ e(p, [2, 24]),
288
+ e(p, [2, 26], { 19: [1, 30] }),
289
+ { 20: [1, 31] },
290
+ {
291
+ 6: u,
292
+ 7: d,
293
+ 10: 32,
294
+ 11: f
295
+ },
296
+ {
297
+ 1: [2, 7],
298
+ 6: r,
299
+ 12: 21,
300
+ 13: i,
301
+ 14: 14,
302
+ 15: a,
303
+ 16: o,
304
+ 17: 17,
305
+ 18: 18,
306
+ 19: s,
307
+ 22: c
308
+ },
309
+ e(m, [2, 14], {
310
+ 7: h,
311
+ 11: g
312
+ }),
313
+ e(_, [2, 8]),
314
+ e(_, [2, 9]),
315
+ e(_, [2, 10]),
316
+ e(p, [2, 15]),
317
+ e(p, [2, 16]),
318
+ e(p, [2, 17]),
319
+ { 20: [1, 35] },
320
+ { 21: [1, 36] },
321
+ e(m, [2, 13], {
322
+ 7: h,
323
+ 11: g
324
+ }),
325
+ e(_, [2, 11]),
326
+ e(_, [2, 12]),
327
+ { 21: [1, 37] },
328
+ e(p, [2, 25]),
329
+ e(p, [2, 27])
330
+ ],
331
+ defaultActions: {
332
+ 2: [2, 1],
333
+ 6: [2, 2]
334
+ },
335
+ parseError: /* @__PURE__ */ t(function(e, t) {
336
+ if (t.recoverable) this.trace(e);
337
+ else {
338
+ var n = Error(e);
339
+ throw n.hash = t, n;
340
+ }
341
+ }, "parseError"),
342
+ parse: /* @__PURE__ */ t(function(e) {
343
+ 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: {} };
344
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
345
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
346
+ var v = h.yylloc;
347
+ o.push(v);
348
+ var y = h.options && h.options.ranges;
349
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
350
+ function b(e) {
351
+ r.length -= 2 * e, a.length -= e, o.length -= e;
352
+ }
353
+ t(b, "popStack");
354
+ function x() {
355
+ var e = i.pop() || h.lex() || p;
356
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
357
+ }
358
+ t(x, "lex");
359
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
360
+ 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]) {
361
+ var M = "";
362
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
363
+ 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, {
364
+ text: h.match,
365
+ token: this.terminals_[S] || S,
366
+ line: h.yylineno,
367
+ loc: v,
368
+ expected: j
369
+ });
370
+ }
371
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
372
+ switch (T[0]) {
373
+ case 1:
374
+ 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--);
375
+ break;
376
+ case 2:
377
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
378
+ first_line: o[o.length - (k || 1)].first_line,
379
+ last_line: o[o.length - 1].last_line,
380
+ first_column: o[o.length - (k || 1)].first_column,
381
+ last_column: o[o.length - 1].last_column
382
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
383
+ c,
384
+ u,
385
+ l,
386
+ g.yy,
387
+ T[1],
388
+ a,
389
+ o
390
+ ].concat(m)), E !== void 0) return E;
391
+ 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);
392
+ break;
393
+ case 3: return !0;
394
+ }
395
+ }
396
+ return !0;
397
+ }, "parse")
398
+ };
399
+ v.lexer = /* @__PURE__ */ (function() {
400
+ return {
401
+ EOF: 1,
402
+ parseError: /* @__PURE__ */ t(function(e, t) {
403
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
404
+ else throw Error(e);
405
+ }, "parseError"),
406
+ setInput: /* @__PURE__ */ t(function(e, t) {
407
+ 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 = {
408
+ first_line: 1,
409
+ first_column: 0,
410
+ last_line: 1,
411
+ last_column: 0
412
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
413
+ }, "setInput"),
414
+ input: /* @__PURE__ */ t(function() {
415
+ var e = this._input[0];
416
+ 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;
417
+ }, "input"),
418
+ unput: /* @__PURE__ */ t(function(e) {
419
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
420
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
421
+ var r = this.match.split(/(?:\r\n?|\n)/g);
422
+ 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);
423
+ var i = this.yylloc.range;
424
+ return this.yylloc = {
425
+ first_line: this.yylloc.first_line,
426
+ last_line: this.yylineno + 1,
427
+ first_column: this.yylloc.first_column,
428
+ 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
429
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
430
+ }, "unput"),
431
+ more: /* @__PURE__ */ t(function() {
432
+ return this._more = !0, this;
433
+ }, "more"),
434
+ reject: /* @__PURE__ */ t(function() {
435
+ if (this.options.backtrack_lexer) this._backtrack = !0;
436
+ 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(), {
437
+ text: "",
438
+ token: null,
439
+ line: this.yylineno
440
+ });
441
+ return this;
442
+ }, "reject"),
443
+ less: /* @__PURE__ */ t(function(e) {
444
+ this.unput(this.match.slice(e));
445
+ }, "less"),
446
+ pastInput: /* @__PURE__ */ t(function() {
447
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
448
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
449
+ }, "pastInput"),
450
+ upcomingInput: /* @__PURE__ */ t(function() {
451
+ var e = this.match;
452
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
453
+ }, "upcomingInput"),
454
+ showPosition: /* @__PURE__ */ t(function() {
455
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
456
+ return e + this.upcomingInput() + "\n" + t + "^";
457
+ }, "showPosition"),
458
+ test_match: /* @__PURE__ */ t(function(e, t) {
459
+ var n, r, i;
460
+ if (this.options.backtrack_lexer && (i = {
461
+ yylineno: this.yylineno,
462
+ yylloc: {
463
+ first_line: this.yylloc.first_line,
464
+ last_line: this.last_line,
465
+ first_column: this.yylloc.first_column,
466
+ last_column: this.yylloc.last_column
467
+ },
468
+ yytext: this.yytext,
469
+ match: this.match,
470
+ matches: this.matches,
471
+ matched: this.matched,
472
+ yyleng: this.yyleng,
473
+ offset: this.offset,
474
+ _more: this._more,
475
+ _input: this._input,
476
+ yy: this.yy,
477
+ conditionStack: this.conditionStack.slice(0),
478
+ done: this.done
479
+ }, 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 = {
480
+ first_line: this.yylloc.last_line,
481
+ last_line: this.yylineno + 1,
482
+ first_column: this.yylloc.last_column,
483
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
484
+ }, 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;
485
+ if (this._backtrack) {
486
+ for (var a in i) this[a] = i[a];
487
+ return !1;
488
+ }
489
+ return !1;
490
+ }, "test_match"),
491
+ next: /* @__PURE__ */ t(function() {
492
+ if (this.done) return this.EOF;
493
+ this._input || (this.done = !0);
494
+ var e, t, n, r;
495
+ this._more || (this.yytext = "", this.match = "");
496
+ 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)) {
497
+ if (t = n, r = a, this.options.backtrack_lexer) {
498
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
499
+ if (this._backtrack) {
500
+ t = !1;
501
+ continue;
502
+ } else return !1;
503
+ } else if (!this.options.flex) break;
504
+ }
505
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
506
+ text: "",
507
+ token: null,
508
+ line: this.yylineno
509
+ });
510
+ }, "next"),
511
+ lex: /* @__PURE__ */ t(function() {
512
+ return this.next() || this.lex();
513
+ }, "lex"),
514
+ begin: /* @__PURE__ */ t(function(e) {
515
+ this.conditionStack.push(e);
516
+ }, "begin"),
517
+ popState: /* @__PURE__ */ t(function() {
518
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
519
+ }, "popState"),
520
+ _currentRules: /* @__PURE__ */ t(function() {
521
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
522
+ }, "_currentRules"),
523
+ topState: /* @__PURE__ */ t(function(e) {
524
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
525
+ }, "topState"),
526
+ pushState: /* @__PURE__ */ t(function(e) {
527
+ this.begin(e);
528
+ }, "pushState"),
529
+ stateStackSize: /* @__PURE__ */ t(function() {
530
+ return this.conditionStack.length;
531
+ }, "stateStackSize"),
532
+ options: { "case-insensitive": !0 },
533
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
534
+ switch (n) {
535
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
536
+ case 1: return 8;
537
+ case 2:
538
+ this.begin("CLASS");
539
+ break;
540
+ case 3: return this.popState(), 16;
541
+ case 4:
542
+ this.popState();
543
+ break;
544
+ case 5:
545
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
546
+ break;
547
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
548
+ case 7: return 7;
549
+ case 8: return 15;
550
+ case 9:
551
+ e.getLogger().trace("end icon"), this.popState();
552
+ break;
553
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
554
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
555
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
556
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
557
+ case 14: return this.begin("NODE"), 19;
558
+ case 15: return this.begin("NODE"), 19;
559
+ case 16: return this.begin("NODE"), 19;
560
+ case 17: return this.begin("NODE"), 19;
561
+ case 18: return 13;
562
+ case 19: return 22;
563
+ case 20: return 11;
564
+ case 21:
565
+ this.begin("NSTR2");
566
+ break;
567
+ case 22: return "NODE_DESCR";
568
+ case 23:
569
+ this.popState();
570
+ break;
571
+ case 24:
572
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
573
+ break;
574
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
575
+ case 26:
576
+ this.popState();
577
+ break;
578
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
579
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
580
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
581
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
582
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
584
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
586
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
587
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
588
+ }
589
+ }, "anonymous"),
590
+ rules: [
591
+ /^(?:\s*%%.*)/i,
592
+ /^(?:mindmap\b)/i,
593
+ /^(?::::)/i,
594
+ /^(?:.+)/i,
595
+ /^(?:\n)/i,
596
+ /^(?:::icon\()/i,
597
+ /^(?:[\s]+[\n])/i,
598
+ /^(?:[\n]+)/i,
599
+ /^(?:[^\)]+)/i,
600
+ /^(?:\))/i,
601
+ /^(?:-\))/i,
602
+ /^(?:\(-)/i,
603
+ /^(?:\)\))/i,
604
+ /^(?:\))/i,
605
+ /^(?:\(\()/i,
606
+ /^(?:\{\{)/i,
607
+ /^(?:\()/i,
608
+ /^(?:\[)/i,
609
+ /^(?:[\s]+)/i,
610
+ /^(?:[^\(\[\n\)\{\}]+)/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
+ /^(?:.+(?!\(\())/i
628
+ ],
629
+ conditions: {
630
+ CLASS: {
631
+ rules: [3, 4],
632
+ inclusive: !1
633
+ },
634
+ ICON: {
635
+ rules: [8, 9],
636
+ inclusive: !1
637
+ },
638
+ NSTR2: {
639
+ rules: [22, 23],
640
+ inclusive: !1
641
+ },
642
+ NSTR: {
643
+ rules: [25, 26],
644
+ inclusive: !1
645
+ },
646
+ NODE: {
647
+ rules: [
648
+ 21,
649
+ 24,
650
+ 27,
651
+ 28,
652
+ 29,
653
+ 30,
654
+ 31,
655
+ 32,
656
+ 33,
657
+ 34,
658
+ 35,
659
+ 36
660
+ ],
661
+ inclusive: !1
662
+ },
663
+ INITIAL: {
664
+ rules: [
665
+ 0,
666
+ 1,
667
+ 2,
668
+ 5,
669
+ 6,
670
+ 7,
671
+ 10,
672
+ 11,
673
+ 12,
674
+ 13,
675
+ 14,
676
+ 15,
677
+ 16,
678
+ 17,
679
+ 18,
680
+ 19,
681
+ 20
682
+ ],
683
+ inclusive: !0
684
+ }
685
+ }
686
+ };
687
+ })();
688
+ function y() {
689
+ this.yy = {};
690
+ }
691
+ return t(y, "Parser"), y.prototype = v, v.Parser = y, new y();
692
+ })();
693
+ b.parser = b;
694
+ var x = b, S = 12, C = {
695
+ DEFAULT: 0,
696
+ NO_BORDER: 0,
697
+ ROUNDED_RECT: 1,
698
+ RECT: 2,
699
+ CIRCLE: 3,
700
+ CLOUD: 4,
701
+ BANG: 5,
702
+ HEXAGON: 6
703
+ }, w = class {
704
+ constructor() {
705
+ 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);
706
+ }
707
+ static {
708
+ t(this, "MindmapDB");
709
+ }
710
+ clear() {
711
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
712
+ }
713
+ getParent(e) {
714
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
715
+ return null;
716
+ }
717
+ getMindmap() {
718
+ return this.nodes.length > 0 ? this.nodes[0] : null;
719
+ }
720
+ addNode(t, n, i, a) {
721
+ e.info("addNode", t, n, i, a);
722
+ let c = !1;
723
+ this.nodes.length === 0 ? (this.baseLevel = t, t = 0, c = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, c = !1);
724
+ let l = o(), u = l.mindmap?.padding ?? s.mindmap.padding;
725
+ switch (a) {
726
+ case this.nodeType.ROUNDED_RECT:
727
+ case this.nodeType.RECT:
728
+ case this.nodeType.HEXAGON:
729
+ u *= 2;
730
+ break;
731
+ }
732
+ let d = {
733
+ id: this.count++,
734
+ nodeId: r(n, l),
735
+ level: t,
736
+ descr: r(i, l),
737
+ type: a,
738
+ children: [],
739
+ width: l.mindmap?.maxNodeWidth ?? s.mindmap.maxNodeWidth,
740
+ padding: u,
741
+ isRoot: c
742
+ }, f = this.getParent(t);
743
+ if (f) f.children.push(d), this.nodes.push(d);
744
+ else if (c) this.nodes.push(d);
745
+ else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
746
+ }
747
+ getType(t, n) {
748
+ switch (e.debug("In get type", t, n), t) {
749
+ case "[": return this.nodeType.RECT;
750
+ case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
751
+ case "((": return this.nodeType.CIRCLE;
752
+ case ")": return this.nodeType.CLOUD;
753
+ case "))": return this.nodeType.BANG;
754
+ case "{{": return this.nodeType.HEXAGON;
755
+ default: return this.nodeType.DEFAULT;
756
+ }
757
+ }
758
+ setElementForId(e, t) {
759
+ this.elements[e] = t;
760
+ }
761
+ getElementById(e) {
762
+ return this.elements[e];
763
+ }
764
+ decorateNode(e) {
765
+ if (!e) return;
766
+ let t = o(), n = this.nodes[this.nodes.length - 1];
767
+ e.icon && (n.icon = r(e.icon, t)), e.class && (n.class = r(e.class, t));
768
+ }
769
+ type2Str(e) {
770
+ switch (e) {
771
+ case this.nodeType.DEFAULT: return "no-border";
772
+ case this.nodeType.RECT: return "rect";
773
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
774
+ case this.nodeType.CIRCLE: return "circle";
775
+ case this.nodeType.CLOUD: return "cloud";
776
+ case this.nodeType.BANG: return "bang";
777
+ case this.nodeType.HEXAGON: return "hexgon";
778
+ default: return "no-border";
779
+ }
780
+ }
781
+ assignSections(e, t) {
782
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
783
+ let i = e.level === 0 ? n % (S - 1) : t;
784
+ this.assignSections(r, i);
785
+ }
786
+ }
787
+ flattenNodes(e, n) {
788
+ let r = ["mindmap-node"];
789
+ e.isRoot === !0 ? r.push("section-root", "section--1") : e.section !== void 0 && r.push(`section-${e.section}`), e.class && r.push(e.class);
790
+ let i = r.join(" "), a = /* @__PURE__ */ t((e) => {
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 "defaultMindmapNode";
799
+ case C.NO_BORDER:
800
+ default: return "rect";
801
+ }
802
+ }, "getShapeFromType"), o = {
803
+ id: e.id.toString(),
804
+ domId: "node_" + e.id.toString(),
805
+ label: e.descr,
806
+ labelType: "markdown",
807
+ isGroup: !1,
808
+ shape: a(e.type),
809
+ width: e.width,
810
+ height: e.height ?? 0,
811
+ padding: e.padding,
812
+ cssClasses: i,
813
+ cssStyles: [],
814
+ look: "default",
815
+ icon: e.icon,
816
+ x: e.x,
817
+ y: e.y,
818
+ level: e.level,
819
+ nodeId: e.nodeId,
820
+ type: e.type,
821
+ section: e.section
822
+ };
823
+ if (n.push(o), e.children) for (let t of e.children) this.flattenNodes(t, n);
824
+ }
825
+ generateEdges(e, t) {
826
+ if (e.children) for (let n of e.children) {
827
+ let r = "edge";
828
+ n.section !== void 0 && (r += ` section-edge-${n.section}`);
829
+ let i = e.level + 1;
830
+ r += ` edge-depth-${i}`;
831
+ let a = {
832
+ id: `edge_${e.id}_${n.id}`,
833
+ start: e.id.toString(),
834
+ end: n.id.toString(),
835
+ type: "normal",
836
+ curve: "basis",
837
+ thickness: "normal",
838
+ look: "default",
839
+ classes: r,
840
+ depth: e.level,
841
+ section: n.section
842
+ };
843
+ t.push(a), this.generateEdges(n, t);
844
+ }
845
+ }
846
+ getData() {
847
+ let t = this.getMindmap(), n = o(), r = i().layout !== void 0, a = n;
848
+ if (r || (a.layout = "cose-bilkent"), !t) return {
849
+ nodes: [],
850
+ edges: [],
851
+ config: a
852
+ };
853
+ e.debug("getData: mindmapRoot", t, n), this.assignSections(t);
854
+ let s = [], c = [];
855
+ this.flattenNodes(t, s), this.generateEdges(t, c), e.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);
856
+ let l = /* @__PURE__ */ new Map();
857
+ for (let e of s) l.set(e.id, {
858
+ shape: e.shape,
859
+ width: e.width,
860
+ height: e.height,
861
+ padding: e.padding
862
+ });
863
+ return {
864
+ nodes: s,
865
+ edges: c,
866
+ config: a,
867
+ rootNode: t,
868
+ markers: ["point"],
869
+ direction: "TB",
870
+ nodeSpacing: 50,
871
+ rankSpacing: 50,
872
+ shapes: Object.fromEntries(l),
873
+ type: "mindmap",
874
+ diagramId: "mindmap-" + y()
875
+ };
876
+ }
877
+ getLogger() {
878
+ return e;
879
+ }
880
+ }, T = { draw: /* @__PURE__ */ t(async (t, n, r, i) => {
881
+ e.debug("Rendering mindmap diagram\n" + t);
882
+ let a = i.db, o = a.getData(), c = l(n, o.config.securityLevel);
883
+ o.type = i.type, o.layoutAlgorithm = f(o.config.layout, { fallback: "cose-bilkent" }), o.diagramId = n, a.getMindmap() && (o.nodes.forEach((e) => {
884
+ 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);
885
+ }), await d(o, c), u(c, o.config.mindmap?.padding ?? s.mindmap.padding, "mindmapDiagram", o.config.mindmap?.useMaxWidth ?? s.mindmap.useMaxWidth));
886
+ }, "draw") }, E = /* @__PURE__ */ t((e) => {
887
+ let t = "";
888
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], c(e["lineColor" + t]) ? e["lineColor" + t] = n(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
889
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
890
+ let r = "" + (17 - 3 * n);
891
+ t += `
892
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
893
+ fill: ${e["cScale" + n]};
894
+ }
895
+ .section-${n - 1} text {
896
+ fill: ${e["cScaleLabel" + n]};
897
+ }
898
+ .node-icon-${n - 1} {
899
+ font-size: 40px;
900
+ color: ${e["cScaleLabel" + n]};
901
+ }
902
+ .section-edge-${n - 1}{
903
+ stroke: ${e["cScale" + n]};
904
+ }
905
+ .edge-depth-${n - 1}{
906
+ stroke-width: ${r};
907
+ }
908
+ .section-${n - 1} line {
909
+ stroke: ${e["cScaleInv" + n]} ;
910
+ stroke-width: 3;
911
+ }
912
+
913
+ .disabled, .disabled circle, .disabled text {
914
+ fill: lightgray;
915
+ }
916
+ .disabled text {
917
+ fill: #efefef;
918
+ }
919
+ `;
920
+ }
921
+ return t;
922
+ }, "genSections"), D = {
923
+ get db() {
924
+ return new w();
925
+ },
926
+ renderer: T,
927
+ parser: x,
928
+ styles: /* @__PURE__ */ t((e) => `
929
+ .edge {
930
+ stroke-width: 3;
931
+ }
932
+ ${E(e)}
933
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
934
+ fill: ${e.git0};
935
+ }
936
+ .section-root text {
937
+ fill: ${e.gitBranchLabel0};
938
+ }
939
+ .section-root span {
940
+ color: ${e.gitBranchLabel0};
941
+ }
942
+ .section-2 span {
943
+ color: ${e.gitBranchLabel0};
944
+ }
945
+ .icon-container {
946
+ height:100%;
947
+ display: flex;
948
+ justify-content: center;
949
+ align-items: center;
950
+ }
951
+ .edge {
952
+ fill: none;
953
+ }
954
+ .mindmap-node-label {
955
+ dy: 1em;
956
+ alignment-baseline: middle;
957
+ text-anchor: middle;
958
+ dominant-baseline: middle;
959
+ text-align: center;
960
+ }
961
+ `, "getStyles")
962
+ };
963
+ //#endregion
964
+ export { D as diagram };