@zettelgeist/cli 0.1.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 (189) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +64 -0
  3. package/dist/bin.js +2211 -0
  4. package/dist/bin.js.map +7 -0
  5. package/dist/templates/export.html +27 -0
  6. package/dist/templates/skill/SKILL.md +220 -0
  7. package/dist/viewer-bundle/architecture-YZFGNWBL-W2K3EQOM.js +14 -0
  8. package/dist/viewer-bundle/architecture-YZFGNWBL-W2K3EQOM.js.map +7 -0
  9. package/dist/viewer-bundle/architectureDiagram-Q4EWVU46-LCGRUEWT.js +8884 -0
  10. package/dist/viewer-bundle/architectureDiagram-Q4EWVU46-LCGRUEWT.js.map +7 -0
  11. package/dist/viewer-bundle/base.css +248 -0
  12. package/dist/viewer-bundle/blockDiagram-DXYQGD6D-KAM7BOAP.js +3777 -0
  13. package/dist/viewer-bundle/blockDiagram-DXYQGD6D-KAM7BOAP.js.map +7 -0
  14. package/dist/viewer-bundle/board.css +370 -0
  15. package/dist/viewer-bundle/c4Diagram-AHTNJAMY-C3FIQYXA.js +2596 -0
  16. package/dist/viewer-bundle/c4Diagram-AHTNJAMY-C3FIQYXA.js.map +7 -0
  17. package/dist/viewer-bundle/chunk-2QXGXAO5.js +68 -0
  18. package/dist/viewer-bundle/chunk-2QXGXAO5.js.map +7 -0
  19. package/dist/viewer-bundle/chunk-5PZT7VUU.js +67 -0
  20. package/dist/viewer-bundle/chunk-5PZT7VUU.js.map +7 -0
  21. package/dist/viewer-bundle/chunk-5YJCJF2C.js +112 -0
  22. package/dist/viewer-bundle/chunk-5YJCJF2C.js.map +7 -0
  23. package/dist/viewer-bundle/chunk-6LYV7PBV.js +1011 -0
  24. package/dist/viewer-bundle/chunk-6LYV7PBV.js.map +7 -0
  25. package/dist/viewer-bundle/chunk-6VW7D5WX.js +48 -0
  26. package/dist/viewer-bundle/chunk-6VW7D5WX.js.map +7 -0
  27. package/dist/viewer-bundle/chunk-76C5OSD4.js +2048 -0
  28. package/dist/viewer-bundle/chunk-76C5OSD4.js.map +7 -0
  29. package/dist/viewer-bundle/chunk-7NZMPQDX.js +6957 -0
  30. package/dist/viewer-bundle/chunk-7NZMPQDX.js.map +7 -0
  31. package/dist/viewer-bundle/chunk-A634GTZN.js +122 -0
  32. package/dist/viewer-bundle/chunk-A634GTZN.js.map +7 -0
  33. package/dist/viewer-bundle/chunk-AJQJUKMU.js +133 -0
  34. package/dist/viewer-bundle/chunk-AJQJUKMU.js.map +7 -0
  35. package/dist/viewer-bundle/chunk-BM2KPNFW.js +5556 -0
  36. package/dist/viewer-bundle/chunk-BM2KPNFW.js.map +7 -0
  37. package/dist/viewer-bundle/chunk-CIDUOCCG.js +25 -0
  38. package/dist/viewer-bundle/chunk-CIDUOCCG.js.map +7 -0
  39. package/dist/viewer-bundle/chunk-CZHJHAOR.js +6397 -0
  40. package/dist/viewer-bundle/chunk-CZHJHAOR.js.map +7 -0
  41. package/dist/viewer-bundle/chunk-D5RLIWY4.js +125 -0
  42. package/dist/viewer-bundle/chunk-D5RLIWY4.js.map +7 -0
  43. package/dist/viewer-bundle/chunk-DI52DQAC.js +44 -0
  44. package/dist/viewer-bundle/chunk-DI52DQAC.js.map +7 -0
  45. package/dist/viewer-bundle/chunk-EXJQLTIV.js +51 -0
  46. package/dist/viewer-bundle/chunk-EXJQLTIV.js.map +7 -0
  47. package/dist/viewer-bundle/chunk-G3PPZWPW.js +96 -0
  48. package/dist/viewer-bundle/chunk-G3PPZWPW.js.map +7 -0
  49. package/dist/viewer-bundle/chunk-GTW4IDD4.js +30297 -0
  50. package/dist/viewer-bundle/chunk-GTW4IDD4.js.map +7 -0
  51. package/dist/viewer-bundle/chunk-GVE7OA3Z.js +59 -0
  52. package/dist/viewer-bundle/chunk-GVE7OA3Z.js.map +7 -0
  53. package/dist/viewer-bundle/chunk-JBUVKVPY.js +2042 -0
  54. package/dist/viewer-bundle/chunk-JBUVKVPY.js.map +7 -0
  55. package/dist/viewer-bundle/chunk-JQLVOAQB.js +20 -0
  56. package/dist/viewer-bundle/chunk-JQLVOAQB.js.map +7 -0
  57. package/dist/viewer-bundle/chunk-LQMQSYLO.js +101 -0
  58. package/dist/viewer-bundle/chunk-LQMQSYLO.js.map +7 -0
  59. package/dist/viewer-bundle/chunk-MBFAQ3IK.js +34 -0
  60. package/dist/viewer-bundle/chunk-MBFAQ3IK.js.map +7 -0
  61. package/dist/viewer-bundle/chunk-N7G7IIKG.js +25 -0
  62. package/dist/viewer-bundle/chunk-N7G7IIKG.js.map +7 -0
  63. package/dist/viewer-bundle/chunk-NW4YG3NS.js +171 -0
  64. package/dist/viewer-bundle/chunk-NW4YG3NS.js.map +7 -0
  65. package/dist/viewer-bundle/chunk-ODEP5TKB.js +61 -0
  66. package/dist/viewer-bundle/chunk-ODEP5TKB.js.map +7 -0
  67. package/dist/viewer-bundle/chunk-OGKINV23.js +1050 -0
  68. package/dist/viewer-bundle/chunk-OGKINV23.js.map +7 -0
  69. package/dist/viewer-bundle/chunk-OGMSNDVH.js +1994 -0
  70. package/dist/viewer-bundle/chunk-OGMSNDVH.js.map +7 -0
  71. package/dist/viewer-bundle/chunk-QJVSDNAW.js +25 -0
  72. package/dist/viewer-bundle/chunk-QJVSDNAW.js.map +7 -0
  73. package/dist/viewer-bundle/chunk-RBTT26R4.js +2721 -0
  74. package/dist/viewer-bundle/chunk-RBTT26R4.js.map +7 -0
  75. package/dist/viewer-bundle/chunk-RQIPIIE2.js +48 -0
  76. package/dist/viewer-bundle/chunk-RQIPIIE2.js.map +7 -0
  77. package/dist/viewer-bundle/chunk-SRTYTXTX.js +22 -0
  78. package/dist/viewer-bundle/chunk-SRTYTXTX.js.map +7 -0
  79. package/dist/viewer-bundle/chunk-TRL7YIZG.js +1663 -0
  80. package/dist/viewer-bundle/chunk-TRL7YIZG.js.map +7 -0
  81. package/dist/viewer-bundle/chunk-U5T7X4BV.js +172 -0
  82. package/dist/viewer-bundle/chunk-U5T7X4BV.js.map +7 -0
  83. package/dist/viewer-bundle/chunk-UCAW6C6C.js +48 -0
  84. package/dist/viewer-bundle/chunk-UCAW6C6C.js.map +7 -0
  85. package/dist/viewer-bundle/chunk-UEAG4BJQ.js +93 -0
  86. package/dist/viewer-bundle/chunk-UEAG4BJQ.js.map +7 -0
  87. package/dist/viewer-bundle/chunk-UVRE3R6A.js +1039 -0
  88. package/dist/viewer-bundle/chunk-UVRE3R6A.js.map +7 -0
  89. package/dist/viewer-bundle/chunk-VODO7SV4.js +25029 -0
  90. package/dist/viewer-bundle/chunk-VODO7SV4.js.map +7 -0
  91. package/dist/viewer-bundle/chunk-YEU62MVS.js +682 -0
  92. package/dist/viewer-bundle/chunk-YEU62MVS.js.map +7 -0
  93. package/dist/viewer-bundle/chunk-YFQT7PPW.js +987 -0
  94. package/dist/viewer-bundle/chunk-YFQT7PPW.js.map +7 -0
  95. package/dist/viewer-bundle/chunk-Z4G7FG27.js +48 -0
  96. package/dist/viewer-bundle/chunk-Z4G7FG27.js.map +7 -0
  97. package/dist/viewer-bundle/chunk-ZW4Y7DIF.js +2044 -0
  98. package/dist/viewer-bundle/chunk-ZW4Y7DIF.js.map +7 -0
  99. package/dist/viewer-bundle/classDiagram-6PBFFD2Q-7VKYXLUX.js +46 -0
  100. package/dist/viewer-bundle/classDiagram-6PBFFD2Q-7VKYXLUX.js.map +7 -0
  101. package/dist/viewer-bundle/classDiagram-v2-HSJHXN6E-ACCNN7EN.js +46 -0
  102. package/dist/viewer-bundle/classDiagram-v2-HSJHXN6E-ACCNN7EN.js.map +7 -0
  103. package/dist/viewer-bundle/cose-bilkent-S5V4N54A-MUJHAA34.js +5009 -0
  104. package/dist/viewer-bundle/cose-bilkent-S5V4N54A-MUJHAA34.js.map +7 -0
  105. package/dist/viewer-bundle/dagre-KV5264BT-YC5VV3WF.js +739 -0
  106. package/dist/viewer-bundle/dagre-KV5264BT-YC5VV3WF.js.map +7 -0
  107. package/dist/viewer-bundle/dark.css +13 -0
  108. package/dist/viewer-bundle/detail.css +539 -0
  109. package/dist/viewer-bundle/diagram-5BDNPKRD-RXFPVFYK.js +214 -0
  110. package/dist/viewer-bundle/diagram-5BDNPKRD-RXFPVFYK.js.map +7 -0
  111. package/dist/viewer-bundle/diagram-G4DWMVQ6-KN7CBNBQ.js +578 -0
  112. package/dist/viewer-bundle/diagram-G4DWMVQ6-KN7CBNBQ.js.map +7 -0
  113. package/dist/viewer-bundle/diagram-MMDJMWI5-ZN6TQ7ZC.js +345 -0
  114. package/dist/viewer-bundle/diagram-MMDJMWI5-ZN6TQ7ZC.js.map +7 -0
  115. package/dist/viewer-bundle/diagram-TYMM5635-MMTUJ4KA.js +255 -0
  116. package/dist/viewer-bundle/diagram-TYMM5635-MMTUJ4KA.js.map +7 -0
  117. package/dist/viewer-bundle/docs.css +88 -0
  118. package/dist/viewer-bundle/edit-modal-BEGC2AO6.js +176 -0
  119. package/dist/viewer-bundle/edit-modal-BEGC2AO6.js.map +7 -0
  120. package/dist/viewer-bundle/erDiagram-SMLLAGMA-TBHMLD2E.js +1349 -0
  121. package/dist/viewer-bundle/erDiagram-SMLLAGMA-TBHMLD2E.js.map +7 -0
  122. package/dist/viewer-bundle/flowDiagram-DWJPFMVM-BZHLK6QB.js +2501 -0
  123. package/dist/viewer-bundle/flowDiagram-DWJPFMVM-BZHLK6QB.js.map +7 -0
  124. package/dist/viewer-bundle/ganttDiagram-T4ZO3ILL-YBARPTQR.js +2654 -0
  125. package/dist/viewer-bundle/ganttDiagram-T4ZO3ILL-YBARPTQR.js.map +7 -0
  126. package/dist/viewer-bundle/gitGraph-7Q5UKJZL-HENKIQDX.js +14 -0
  127. package/dist/viewer-bundle/gitGraph-7Q5UKJZL-HENKIQDX.js.map +7 -0
  128. package/dist/viewer-bundle/gitGraphDiagram-UUTBAWPF-M4VV3YVA.js +1946 -0
  129. package/dist/viewer-bundle/gitGraphDiagram-UUTBAWPF-M4VV3YVA.js.map +7 -0
  130. package/dist/viewer-bundle/index.html +28 -0
  131. package/dist/viewer-bundle/info-OMHHGYJF-E773USRS.js +14 -0
  132. package/dist/viewer-bundle/info-OMHHGYJF-E773USRS.js.map +7 -0
  133. package/dist/viewer-bundle/infoDiagram-42DDH7IO-C7JGUXKK.js +59 -0
  134. package/dist/viewer-bundle/infoDiagram-42DDH7IO-C7JGUXKK.js.map +7 -0
  135. package/dist/viewer-bundle/ishikawaDiagram-UXIWVN3A-YBC4X4VB.js +1012 -0
  136. package/dist/viewer-bundle/ishikawaDiagram-UXIWVN3A-YBC4X4VB.js.map +7 -0
  137. package/dist/viewer-bundle/journeyDiagram-VCZTEJTY-6WKVEOOO.js +1303 -0
  138. package/dist/viewer-bundle/journeyDiagram-VCZTEJTY-6WKVEOOO.js.map +7 -0
  139. package/dist/viewer-bundle/kanban-definition-6JOO6SKY-URTTHHO4.js +1131 -0
  140. package/dist/viewer-bundle/kanban-definition-6JOO6SKY-URTTHHO4.js.map +7 -0
  141. package/dist/viewer-bundle/katex-QN5266ZE.js +14318 -0
  142. package/dist/viewer-bundle/katex-QN5266ZE.js.map +7 -0
  143. package/dist/viewer-bundle/light.css +15 -0
  144. package/dist/viewer-bundle/main.js +4816 -0
  145. package/dist/viewer-bundle/main.js.map +7 -0
  146. package/dist/viewer-bundle/mermaid.core-AEBXU2JK.js +1708 -0
  147. package/dist/viewer-bundle/mermaid.core-AEBXU2JK.js.map +7 -0
  148. package/dist/viewer-bundle/mindmap-definition-QFDTVHPH-KUMAMRSF.js +1277 -0
  149. package/dist/viewer-bundle/mindmap-definition-QFDTVHPH-KUMAMRSF.js.map +7 -0
  150. package/dist/viewer-bundle/packet-4T2RLAQJ-IRYWWA66.js +14 -0
  151. package/dist/viewer-bundle/packet-4T2RLAQJ-IRYWWA66.js.map +7 -0
  152. package/dist/viewer-bundle/pico.classless.min.css +4 -0
  153. package/dist/viewer-bundle/pie-ZZUOXDRM-JYO4VL5N.js +14 -0
  154. package/dist/viewer-bundle/pie-ZZUOXDRM-JYO4VL5N.js.map +7 -0
  155. package/dist/viewer-bundle/pieDiagram-DEJITSTG-QOEHQN3N.js +238 -0
  156. package/dist/viewer-bundle/pieDiagram-DEJITSTG-QOEHQN3N.js.map +7 -0
  157. package/dist/viewer-bundle/prompt-modal-C4LHI7BS.js +12 -0
  158. package/dist/viewer-bundle/prompt-modal-C4LHI7BS.js.map +7 -0
  159. package/dist/viewer-bundle/quadrantDiagram-34T5L4WZ-SJNPUU5N.js +1409 -0
  160. package/dist/viewer-bundle/quadrantDiagram-34T5L4WZ-SJNPUU5N.js.map +7 -0
  161. package/dist/viewer-bundle/radar-PYXPWWZC-45BRYQSB.js +14 -0
  162. package/dist/viewer-bundle/radar-PYXPWWZC-45BRYQSB.js.map +7 -0
  163. package/dist/viewer-bundle/reason-modal-MK34MQ73.js +68 -0
  164. package/dist/viewer-bundle/reason-modal-MK34MQ73.js.map +7 -0
  165. package/dist/viewer-bundle/requirementDiagram-MS252O5E-UOMT3FCC.js +1311 -0
  166. package/dist/viewer-bundle/requirementDiagram-MS252O5E-UOMT3FCC.js.map +7 -0
  167. package/dist/viewer-bundle/sankeyDiagram-XADWPNL6-LAVJ5C6A.js +1263 -0
  168. package/dist/viewer-bundle/sankeyDiagram-XADWPNL6-LAVJ5C6A.js.map +7 -0
  169. package/dist/viewer-bundle/sequenceDiagram-FGHM5R23-3IWTOUNQ.js +4655 -0
  170. package/dist/viewer-bundle/sequenceDiagram-FGHM5R23-3IWTOUNQ.js.map +7 -0
  171. package/dist/viewer-bundle/stateDiagram-FHFEXIEX-S2OVQQON.js +495 -0
  172. package/dist/viewer-bundle/stateDiagram-FHFEXIEX-S2OVQQON.js.map +7 -0
  173. package/dist/viewer-bundle/stateDiagram-v2-QKLJ7IA2-XNZ3XXSV.js +44 -0
  174. package/dist/viewer-bundle/stateDiagram-v2-QKLJ7IA2-XNZ3XXSV.js.map +7 -0
  175. package/dist/viewer-bundle/timeline-definition-GMOUNBTQ-FHVZ7MHE.js +1646 -0
  176. package/dist/viewer-bundle/timeline-definition-GMOUNBTQ-FHVZ7MHE.js.map +7 -0
  177. package/dist/viewer-bundle/treeView-SZITEDCU-RXZXNYAM.js +14 -0
  178. package/dist/viewer-bundle/treeView-SZITEDCU-RXZXNYAM.js.map +7 -0
  179. package/dist/viewer-bundle/treemap-W4RFUUIX-2IGOFSJM.js +14 -0
  180. package/dist/viewer-bundle/treemap-W4RFUUIX-2IGOFSJM.js.map +7 -0
  181. package/dist/viewer-bundle/vennDiagram-DHZGUBPP-HEAOEXEZ.js +2544 -0
  182. package/dist/viewer-bundle/vennDiagram-DHZGUBPP-HEAOEXEZ.js.map +7 -0
  183. package/dist/viewer-bundle/wardley-RL74JXVD-VSPCLOX2.js +14 -0
  184. package/dist/viewer-bundle/wardley-RL74JXVD-VSPCLOX2.js.map +7 -0
  185. package/dist/viewer-bundle/wardleyDiagram-NUSXRM2D-EBY4FG3X.js +938 -0
  186. package/dist/viewer-bundle/wardleyDiagram-NUSXRM2D-EBY4FG3X.js.map +7 -0
  187. package/dist/viewer-bundle/xychartDiagram-5P7HB3ND-SSMUQEXK.js +1952 -0
  188. package/dist/viewer-bundle/xychartDiagram-5P7HB3ND-SSMUQEXK.js.map +7 -0
  189. package/package.json +51 -0
@@ -0,0 +1,1277 @@
1
+ import {
2
+ getDiagramElement
3
+ } from "./chunk-JQLVOAQB.js";
4
+ import {
5
+ setupViewPortForSVG
6
+ } from "./chunk-MBFAQ3IK.js";
7
+ import {
8
+ getRegisteredLayoutAlgorithm,
9
+ render
10
+ } from "./chunk-LQMQSYLO.js";
11
+ import "./chunk-OGKINV23.js";
12
+ import "./chunk-BM2KPNFW.js";
13
+ import "./chunk-6LYV7PBV.js";
14
+ import "./chunk-5YJCJF2C.js";
15
+ import "./chunk-NW4YG3NS.js";
16
+ import "./chunk-5PZT7VUU.js";
17
+ import "./chunk-OGMSNDVH.js";
18
+ import "./chunk-UVRE3R6A.js";
19
+ import "./chunk-G3PPZWPW.js";
20
+ import {
21
+ darken_default,
22
+ defaultConfig_default,
23
+ getConfig,
24
+ getConfig2,
25
+ getUserDefinedConfig,
26
+ is_dark_default,
27
+ lighten_default,
28
+ sanitizeText
29
+ } from "./chunk-7NZMPQDX.js";
30
+ import "./chunk-YEU62MVS.js";
31
+ import {
32
+ __name,
33
+ log
34
+ } from "./chunk-CZHJHAOR.js";
35
+ import "./chunk-DI52DQAC.js";
36
+
37
+ // ../../node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/stringify.js
38
+ var byteToHex = [];
39
+ for (let i = 0; i < 256; ++i) {
40
+ byteToHex.push((i + 256).toString(16).slice(1));
41
+ }
42
+ function unsafeStringify(arr, offset = 0) {
43
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
44
+ }
45
+
46
+ // ../../node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/rng.js
47
+ var getRandomValues;
48
+ var rnds8 = new Uint8Array(16);
49
+ function rng() {
50
+ if (!getRandomValues) {
51
+ if (typeof crypto === "undefined" || !crypto.getRandomValues) {
52
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
53
+ }
54
+ getRandomValues = crypto.getRandomValues.bind(crypto);
55
+ }
56
+ return getRandomValues(rnds8);
57
+ }
58
+
59
+ // ../../node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/native.js
60
+ var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
61
+ var native_default = { randomUUID };
62
+
63
+ // ../../node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/v4.js
64
+ function v4(options, buf, offset) {
65
+ if (native_default.randomUUID && !buf && !options) {
66
+ return native_default.randomUUID();
67
+ }
68
+ options = options || {};
69
+ const rnds = options.random ?? options.rng?.() ?? rng();
70
+ if (rnds.length < 16) {
71
+ throw new Error("Random bytes length must be >= 16");
72
+ }
73
+ rnds[6] = rnds[6] & 15 | 64;
74
+ rnds[8] = rnds[8] & 63 | 128;
75
+ if (buf) {
76
+ offset = offset || 0;
77
+ if (offset < 0 || offset + 16 > buf.length) {
78
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
79
+ }
80
+ for (let i = 0; i < 16; ++i) {
81
+ buf[offset + i] = rnds[i];
82
+ }
83
+ return buf;
84
+ }
85
+ return unsafeStringify(rnds);
86
+ }
87
+ var v4_default = v4;
88
+
89
+ // ../../node_modules/.pnpm/mermaid@11.14.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.mjs
90
+ var parser = function() {
91
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
92
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
93
+ return o2;
94
+ }, "o"), $V0 = [1, 4], $V1 = [1, 13], $V2 = [1, 12], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 20], $V6 = [1, 19], $V7 = [6, 7, 8], $V8 = [1, 26], $V9 = [1, 24], $Va = [1, 25], $Vb = [6, 7, 11], $Vc = [1, 6, 13, 15, 16, 19, 22], $Vd = [1, 33], $Ve = [1, 34], $Vf = [1, 6, 7, 11, 13, 15, 16, 19, 22];
95
+ var parser2 = {
96
+ trace: /* @__PURE__ */ __name(function trace() {
97
+ }, "trace"),
98
+ yy: {},
99
+ symbols_: { "error": 2, "start": 3, "mindMap": 4, "spaceLines": 5, "SPACELINE": 6, "NL": 7, "MINDMAP": 8, "document": 9, "stop": 10, "EOF": 11, "statement": 12, "SPACELIST": 13, "node": 14, "ICON": 15, "CLASS": 16, "nodeWithId": 17, "nodeWithoutId": 18, "NODE_DSTART": 19, "NODE_DESCR": 20, "NODE_DEND": 21, "NODE_ID": 22, "$accept": 0, "$end": 1 },
100
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
101
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
102
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
103
+ var $0 = $$.length - 1;
104
+ switch (yystate) {
105
+ case 6:
106
+ case 7:
107
+ return yy;
108
+ break;
109
+ case 8:
110
+ yy.getLogger().trace("Stop NL ");
111
+ break;
112
+ case 9:
113
+ yy.getLogger().trace("Stop EOF ");
114
+ break;
115
+ case 11:
116
+ yy.getLogger().trace("Stop NL2 ");
117
+ break;
118
+ case 12:
119
+ yy.getLogger().trace("Stop EOF2 ");
120
+ break;
121
+ case 15:
122
+ yy.getLogger().info("Node: ", $$[$0].id);
123
+ yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);
124
+ break;
125
+ case 16:
126
+ yy.getLogger().trace("Icon: ", $$[$0]);
127
+ yy.decorateNode({ icon: $$[$0] });
128
+ break;
129
+ case 17:
130
+ case 21:
131
+ yy.decorateNode({ class: $$[$0] });
132
+ break;
133
+ case 18:
134
+ yy.getLogger().trace("SPACELIST");
135
+ break;
136
+ case 19:
137
+ yy.getLogger().trace("Node: ", $$[$0].id);
138
+ yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);
139
+ break;
140
+ case 20:
141
+ yy.decorateNode({ icon: $$[$0] });
142
+ break;
143
+ case 25:
144
+ yy.getLogger().trace("node found ..", $$[$0 - 2]);
145
+ this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
146
+ break;
147
+ case 26:
148
+ this.$ = { id: $$[$0], descr: $$[$0], type: yy.nodeType.DEFAULT };
149
+ break;
150
+ case 27:
151
+ yy.getLogger().trace("node found ..", $$[$0 - 3]);
152
+ this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
153
+ break;
154
+ }
155
+ }, "anonymous"),
156
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: $V0 }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: $V0 }, { 6: $V1, 7: [1, 10], 9: 9, 12: 11, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, o($V7, [2, 3]), { 1: [2, 2] }, o($V7, [2, 4]), o($V7, [2, 5]), { 1: [2, 6], 6: $V1, 12: 21, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, { 6: $V1, 9: 22, 12: 11, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, { 6: $V8, 7: $V9, 10: 23, 11: $Va }, o($Vb, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: $V5, 22: $V6 }), o($Vb, [2, 18]), o($Vb, [2, 19]), o($Vb, [2, 20]), o($Vb, [2, 21]), o($Vb, [2, 23]), o($Vb, [2, 24]), o($Vb, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: $V8, 7: $V9, 10: 32, 11: $Va }, { 1: [2, 7], 6: $V1, 12: 21, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, o($Vc, [2, 14], { 7: $Vd, 11: $Ve }), o($Vf, [2, 8]), o($Vf, [2, 9]), o($Vf, [2, 10]), o($Vb, [2, 15]), o($Vb, [2, 16]), o($Vb, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, o($Vc, [2, 13], { 7: $Vd, 11: $Ve }), o($Vf, [2, 11]), o($Vf, [2, 12]), { 21: [1, 37] }, o($Vb, [2, 25]), o($Vb, [2, 27])],
157
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
158
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
159
+ if (hash.recoverable) {
160
+ this.trace(str);
161
+ } else {
162
+ var error = new Error(str);
163
+ error.hash = hash;
164
+ throw error;
165
+ }
166
+ }, "parseError"),
167
+ parse: /* @__PURE__ */ __name(function parse(input) {
168
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
169
+ var args = lstack.slice.call(arguments, 1);
170
+ var lexer2 = Object.create(this.lexer);
171
+ var sharedState = { yy: {} };
172
+ for (var k in this.yy) {
173
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
174
+ sharedState.yy[k] = this.yy[k];
175
+ }
176
+ }
177
+ lexer2.setInput(input, sharedState.yy);
178
+ sharedState.yy.lexer = lexer2;
179
+ sharedState.yy.parser = this;
180
+ if (typeof lexer2.yylloc == "undefined") {
181
+ lexer2.yylloc = {};
182
+ }
183
+ var yyloc = lexer2.yylloc;
184
+ lstack.push(yyloc);
185
+ var ranges = lexer2.options && lexer2.options.ranges;
186
+ if (typeof sharedState.yy.parseError === "function") {
187
+ this.parseError = sharedState.yy.parseError;
188
+ } else {
189
+ this.parseError = Object.getPrototypeOf(this).parseError;
190
+ }
191
+ function popStack(n) {
192
+ stack.length = stack.length - 2 * n;
193
+ vstack.length = vstack.length - n;
194
+ lstack.length = lstack.length - n;
195
+ }
196
+ __name(popStack, "popStack");
197
+ function lex() {
198
+ var token;
199
+ token = tstack.pop() || lexer2.lex() || EOF;
200
+ if (typeof token !== "number") {
201
+ if (token instanceof Array) {
202
+ tstack = token;
203
+ token = tstack.pop();
204
+ }
205
+ token = self.symbols_[token] || token;
206
+ }
207
+ return token;
208
+ }
209
+ __name(lex, "lex");
210
+ var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
211
+ while (true) {
212
+ state = stack[stack.length - 1];
213
+ if (this.defaultActions[state]) {
214
+ action = this.defaultActions[state];
215
+ } else {
216
+ if (symbol === null || typeof symbol == "undefined") {
217
+ symbol = lex();
218
+ }
219
+ action = table[state] && table[state][symbol];
220
+ }
221
+ if (typeof action === "undefined" || !action.length || !action[0]) {
222
+ var errStr = "";
223
+ expected = [];
224
+ for (p in table[state]) {
225
+ if (this.terminals_[p] && p > TERROR) {
226
+ expected.push("'" + this.terminals_[p] + "'");
227
+ }
228
+ }
229
+ if (lexer2.showPosition) {
230
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
231
+ } else {
232
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
233
+ }
234
+ this.parseError(errStr, {
235
+ text: lexer2.match,
236
+ token: this.terminals_[symbol] || symbol,
237
+ line: lexer2.yylineno,
238
+ loc: yyloc,
239
+ expected
240
+ });
241
+ }
242
+ if (action[0] instanceof Array && action.length > 1) {
243
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
244
+ }
245
+ switch (action[0]) {
246
+ case 1:
247
+ stack.push(symbol);
248
+ vstack.push(lexer2.yytext);
249
+ lstack.push(lexer2.yylloc);
250
+ stack.push(action[1]);
251
+ symbol = null;
252
+ if (!preErrorSymbol) {
253
+ yyleng = lexer2.yyleng;
254
+ yytext = lexer2.yytext;
255
+ yylineno = lexer2.yylineno;
256
+ yyloc = lexer2.yylloc;
257
+ if (recovering > 0) {
258
+ recovering--;
259
+ }
260
+ } else {
261
+ symbol = preErrorSymbol;
262
+ preErrorSymbol = null;
263
+ }
264
+ break;
265
+ case 2:
266
+ len = this.productions_[action[1]][1];
267
+ yyval.$ = vstack[vstack.length - len];
268
+ yyval._$ = {
269
+ first_line: lstack[lstack.length - (len || 1)].first_line,
270
+ last_line: lstack[lstack.length - 1].last_line,
271
+ first_column: lstack[lstack.length - (len || 1)].first_column,
272
+ last_column: lstack[lstack.length - 1].last_column
273
+ };
274
+ if (ranges) {
275
+ yyval._$.range = [
276
+ lstack[lstack.length - (len || 1)].range[0],
277
+ lstack[lstack.length - 1].range[1]
278
+ ];
279
+ }
280
+ r = this.performAction.apply(yyval, [
281
+ yytext,
282
+ yyleng,
283
+ yylineno,
284
+ sharedState.yy,
285
+ action[1],
286
+ vstack,
287
+ lstack
288
+ ].concat(args));
289
+ if (typeof r !== "undefined") {
290
+ return r;
291
+ }
292
+ if (len) {
293
+ stack = stack.slice(0, -1 * len * 2);
294
+ vstack = vstack.slice(0, -1 * len);
295
+ lstack = lstack.slice(0, -1 * len);
296
+ }
297
+ stack.push(this.productions_[action[1]][0]);
298
+ vstack.push(yyval.$);
299
+ lstack.push(yyval._$);
300
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
301
+ stack.push(newState);
302
+ break;
303
+ case 3:
304
+ return true;
305
+ }
306
+ }
307
+ return true;
308
+ }, "parse")
309
+ };
310
+ var lexer = /* @__PURE__ */ function() {
311
+ var lexer2 = {
312
+ EOF: 1,
313
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
314
+ if (this.yy.parser) {
315
+ this.yy.parser.parseError(str, hash);
316
+ } else {
317
+ throw new Error(str);
318
+ }
319
+ }, "parseError"),
320
+ // resets the lexer, sets new input
321
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
322
+ this.yy = yy || this.yy || {};
323
+ this._input = input;
324
+ this._more = this._backtrack = this.done = false;
325
+ this.yylineno = this.yyleng = 0;
326
+ this.yytext = this.matched = this.match = "";
327
+ this.conditionStack = ["INITIAL"];
328
+ this.yylloc = {
329
+ first_line: 1,
330
+ first_column: 0,
331
+ last_line: 1,
332
+ last_column: 0
333
+ };
334
+ if (this.options.ranges) {
335
+ this.yylloc.range = [0, 0];
336
+ }
337
+ this.offset = 0;
338
+ return this;
339
+ }, "setInput"),
340
+ // consumes and returns one char from the input
341
+ input: /* @__PURE__ */ __name(function() {
342
+ var ch = this._input[0];
343
+ this.yytext += ch;
344
+ this.yyleng++;
345
+ this.offset++;
346
+ this.match += ch;
347
+ this.matched += ch;
348
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
349
+ if (lines) {
350
+ this.yylineno++;
351
+ this.yylloc.last_line++;
352
+ } else {
353
+ this.yylloc.last_column++;
354
+ }
355
+ if (this.options.ranges) {
356
+ this.yylloc.range[1]++;
357
+ }
358
+ this._input = this._input.slice(1);
359
+ return ch;
360
+ }, "input"),
361
+ // unshifts one char (or a string) into the input
362
+ unput: /* @__PURE__ */ __name(function(ch) {
363
+ var len = ch.length;
364
+ var lines = ch.split(/(?:\r\n?|\n)/g);
365
+ this._input = ch + this._input;
366
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
367
+ this.offset -= len;
368
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
369
+ this.match = this.match.substr(0, this.match.length - 1);
370
+ this.matched = this.matched.substr(0, this.matched.length - 1);
371
+ if (lines.length - 1) {
372
+ this.yylineno -= lines.length - 1;
373
+ }
374
+ var r = this.yylloc.range;
375
+ this.yylloc = {
376
+ first_line: this.yylloc.first_line,
377
+ last_line: this.yylineno + 1,
378
+ first_column: this.yylloc.first_column,
379
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
380
+ };
381
+ if (this.options.ranges) {
382
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
383
+ }
384
+ this.yyleng = this.yytext.length;
385
+ return this;
386
+ }, "unput"),
387
+ // When called from action, caches matched text and appends it on next action
388
+ more: /* @__PURE__ */ __name(function() {
389
+ this._more = true;
390
+ return this;
391
+ }, "more"),
392
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
393
+ reject: /* @__PURE__ */ __name(function() {
394
+ if (this.options.backtrack_lexer) {
395
+ this._backtrack = true;
396
+ } else {
397
+ 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(), {
398
+ text: "",
399
+ token: null,
400
+ line: this.yylineno
401
+ });
402
+ }
403
+ return this;
404
+ }, "reject"),
405
+ // retain first n characters of the match
406
+ less: /* @__PURE__ */ __name(function(n) {
407
+ this.unput(this.match.slice(n));
408
+ }, "less"),
409
+ // displays already matched input, i.e. for error messages
410
+ pastInput: /* @__PURE__ */ __name(function() {
411
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
412
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
413
+ }, "pastInput"),
414
+ // displays upcoming input, i.e. for error messages
415
+ upcomingInput: /* @__PURE__ */ __name(function() {
416
+ var next = this.match;
417
+ if (next.length < 20) {
418
+ next += this._input.substr(0, 20 - next.length);
419
+ }
420
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
421
+ }, "upcomingInput"),
422
+ // displays the character position where the lexing error occurred, i.e. for error messages
423
+ showPosition: /* @__PURE__ */ __name(function() {
424
+ var pre = this.pastInput();
425
+ var c = new Array(pre.length + 1).join("-");
426
+ return pre + this.upcomingInput() + "\n" + c + "^";
427
+ }, "showPosition"),
428
+ // test the lexed token: return FALSE when not a match, otherwise return token
429
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
430
+ var token, lines, backup;
431
+ if (this.options.backtrack_lexer) {
432
+ backup = {
433
+ yylineno: this.yylineno,
434
+ yylloc: {
435
+ first_line: this.yylloc.first_line,
436
+ last_line: this.last_line,
437
+ first_column: this.yylloc.first_column,
438
+ last_column: this.yylloc.last_column
439
+ },
440
+ yytext: this.yytext,
441
+ match: this.match,
442
+ matches: this.matches,
443
+ matched: this.matched,
444
+ yyleng: this.yyleng,
445
+ offset: this.offset,
446
+ _more: this._more,
447
+ _input: this._input,
448
+ yy: this.yy,
449
+ conditionStack: this.conditionStack.slice(0),
450
+ done: this.done
451
+ };
452
+ if (this.options.ranges) {
453
+ backup.yylloc.range = this.yylloc.range.slice(0);
454
+ }
455
+ }
456
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
457
+ if (lines) {
458
+ this.yylineno += lines.length;
459
+ }
460
+ this.yylloc = {
461
+ first_line: this.yylloc.last_line,
462
+ last_line: this.yylineno + 1,
463
+ first_column: this.yylloc.last_column,
464
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
465
+ };
466
+ this.yytext += match[0];
467
+ this.match += match[0];
468
+ this.matches = match;
469
+ this.yyleng = this.yytext.length;
470
+ if (this.options.ranges) {
471
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
472
+ }
473
+ this._more = false;
474
+ this._backtrack = false;
475
+ this._input = this._input.slice(match[0].length);
476
+ this.matched += match[0];
477
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
478
+ if (this.done && this._input) {
479
+ this.done = false;
480
+ }
481
+ if (token) {
482
+ return token;
483
+ } else if (this._backtrack) {
484
+ for (var k in backup) {
485
+ this[k] = backup[k];
486
+ }
487
+ return false;
488
+ }
489
+ return false;
490
+ }, "test_match"),
491
+ // return next match in input
492
+ next: /* @__PURE__ */ __name(function() {
493
+ if (this.done) {
494
+ return this.EOF;
495
+ }
496
+ if (!this._input) {
497
+ this.done = true;
498
+ }
499
+ var token, match, tempMatch, index;
500
+ if (!this._more) {
501
+ this.yytext = "";
502
+ this.match = "";
503
+ }
504
+ var rules = this._currentRules();
505
+ for (var i = 0; i < rules.length; i++) {
506
+ tempMatch = this._input.match(this.rules[rules[i]]);
507
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
508
+ match = tempMatch;
509
+ index = i;
510
+ if (this.options.backtrack_lexer) {
511
+ token = this.test_match(tempMatch, rules[i]);
512
+ if (token !== false) {
513
+ return token;
514
+ } else if (this._backtrack) {
515
+ match = false;
516
+ continue;
517
+ } else {
518
+ return false;
519
+ }
520
+ } else if (!this.options.flex) {
521
+ break;
522
+ }
523
+ }
524
+ }
525
+ if (match) {
526
+ token = this.test_match(match, rules[index]);
527
+ if (token !== false) {
528
+ return token;
529
+ }
530
+ return false;
531
+ }
532
+ if (this._input === "") {
533
+ return this.EOF;
534
+ } else {
535
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
536
+ text: "",
537
+ token: null,
538
+ line: this.yylineno
539
+ });
540
+ }
541
+ }, "next"),
542
+ // return next match that has a token
543
+ lex: /* @__PURE__ */ __name(function lex() {
544
+ var r = this.next();
545
+ if (r) {
546
+ return r;
547
+ } else {
548
+ return this.lex();
549
+ }
550
+ }, "lex"),
551
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
552
+ begin: /* @__PURE__ */ __name(function begin(condition) {
553
+ this.conditionStack.push(condition);
554
+ }, "begin"),
555
+ // pop the previously active lexer condition state off the condition stack
556
+ popState: /* @__PURE__ */ __name(function popState() {
557
+ var n = this.conditionStack.length - 1;
558
+ if (n > 0) {
559
+ return this.conditionStack.pop();
560
+ } else {
561
+ return this.conditionStack[0];
562
+ }
563
+ }, "popState"),
564
+ // produce the lexer rule set which is active for the currently active lexer condition state
565
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
566
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
567
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
568
+ } else {
569
+ return this.conditions["INITIAL"].rules;
570
+ }
571
+ }, "_currentRules"),
572
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
573
+ topState: /* @__PURE__ */ __name(function topState(n) {
574
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
575
+ if (n >= 0) {
576
+ return this.conditionStack[n];
577
+ } else {
578
+ return "INITIAL";
579
+ }
580
+ }, "topState"),
581
+ // alias for begin(condition)
582
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
583
+ this.begin(condition);
584
+ }, "pushState"),
585
+ // return the number of states currently on the stack
586
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
587
+ return this.conditionStack.length;
588
+ }, "stateStackSize"),
589
+ options: { "case-insensitive": true },
590
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
591
+ var YYSTATE = YY_START;
592
+ switch ($avoiding_name_collisions) {
593
+ case 0:
594
+ yy.getLogger().trace("Found comment", yy_.yytext);
595
+ return 6;
596
+ break;
597
+ case 1:
598
+ return 8;
599
+ break;
600
+ case 2:
601
+ this.begin("CLASS");
602
+ break;
603
+ case 3:
604
+ this.popState();
605
+ return 16;
606
+ break;
607
+ case 4:
608
+ this.popState();
609
+ break;
610
+ case 5:
611
+ yy.getLogger().trace("Begin icon");
612
+ this.begin("ICON");
613
+ break;
614
+ case 6:
615
+ yy.getLogger().trace("SPACELINE");
616
+ return 6;
617
+ break;
618
+ case 7:
619
+ return 7;
620
+ break;
621
+ case 8:
622
+ return 15;
623
+ break;
624
+ case 9:
625
+ yy.getLogger().trace("end icon");
626
+ this.popState();
627
+ break;
628
+ case 10:
629
+ yy.getLogger().trace("Exploding node");
630
+ this.begin("NODE");
631
+ return 19;
632
+ break;
633
+ case 11:
634
+ yy.getLogger().trace("Cloud");
635
+ this.begin("NODE");
636
+ return 19;
637
+ break;
638
+ case 12:
639
+ yy.getLogger().trace("Explosion Bang");
640
+ this.begin("NODE");
641
+ return 19;
642
+ break;
643
+ case 13:
644
+ yy.getLogger().trace("Cloud Bang");
645
+ this.begin("NODE");
646
+ return 19;
647
+ break;
648
+ case 14:
649
+ this.begin("NODE");
650
+ return 19;
651
+ break;
652
+ case 15:
653
+ this.begin("NODE");
654
+ return 19;
655
+ break;
656
+ case 16:
657
+ this.begin("NODE");
658
+ return 19;
659
+ break;
660
+ case 17:
661
+ this.begin("NODE");
662
+ return 19;
663
+ break;
664
+ case 18:
665
+ return 13;
666
+ break;
667
+ case 19:
668
+ return 22;
669
+ break;
670
+ case 20:
671
+ return 11;
672
+ break;
673
+ case 21:
674
+ this.begin("NSTR2");
675
+ break;
676
+ case 22:
677
+ return "NODE_DESCR";
678
+ break;
679
+ case 23:
680
+ this.popState();
681
+ break;
682
+ case 24:
683
+ yy.getLogger().trace("Starting NSTR");
684
+ this.begin("NSTR");
685
+ break;
686
+ case 25:
687
+ yy.getLogger().trace("description:", yy_.yytext);
688
+ return "NODE_DESCR";
689
+ break;
690
+ case 26:
691
+ this.popState();
692
+ break;
693
+ case 27:
694
+ this.popState();
695
+ yy.getLogger().trace("node end ))");
696
+ return "NODE_DEND";
697
+ break;
698
+ case 28:
699
+ this.popState();
700
+ yy.getLogger().trace("node end )");
701
+ return "NODE_DEND";
702
+ break;
703
+ case 29:
704
+ this.popState();
705
+ yy.getLogger().trace("node end ...", yy_.yytext);
706
+ return "NODE_DEND";
707
+ break;
708
+ case 30:
709
+ this.popState();
710
+ yy.getLogger().trace("node end ((");
711
+ return "NODE_DEND";
712
+ break;
713
+ case 31:
714
+ this.popState();
715
+ yy.getLogger().trace("node end (-");
716
+ return "NODE_DEND";
717
+ break;
718
+ case 32:
719
+ this.popState();
720
+ yy.getLogger().trace("node end (-");
721
+ return "NODE_DEND";
722
+ break;
723
+ case 33:
724
+ this.popState();
725
+ yy.getLogger().trace("node end ((");
726
+ return "NODE_DEND";
727
+ break;
728
+ case 34:
729
+ this.popState();
730
+ yy.getLogger().trace("node end ((");
731
+ return "NODE_DEND";
732
+ break;
733
+ case 35:
734
+ yy.getLogger().trace("Long description:", yy_.yytext);
735
+ return 20;
736
+ break;
737
+ case 36:
738
+ yy.getLogger().trace("Long description:", yy_.yytext);
739
+ return 20;
740
+ break;
741
+ }
742
+ }, "anonymous"),
743
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
744
+ conditions: { "CLASS": { "rules": [3, 4], "inclusive": false }, "ICON": { "rules": [8, 9], "inclusive": false }, "NSTR2": { "rules": [22, 23], "inclusive": false }, "NSTR": { "rules": [25, 26], "inclusive": false }, "NODE": { "rules": [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "inclusive": true } }
745
+ };
746
+ return lexer2;
747
+ }();
748
+ parser2.lexer = lexer;
749
+ function Parser() {
750
+ this.yy = {};
751
+ }
752
+ __name(Parser, "Parser");
753
+ Parser.prototype = parser2;
754
+ parser2.Parser = Parser;
755
+ return new Parser();
756
+ }();
757
+ parser.parser = parser;
758
+ var mindmap_default = parser;
759
+ var MAX_SECTIONS = 12;
760
+ var nodeType = {
761
+ DEFAULT: 0,
762
+ NO_BORDER: 0,
763
+ ROUNDED_RECT: 1,
764
+ RECT: 2,
765
+ CIRCLE: 3,
766
+ CLOUD: 4,
767
+ BANG: 5,
768
+ HEXAGON: 6
769
+ };
770
+ var MindmapDB = class {
771
+ constructor() {
772
+ this.nodes = [];
773
+ this.count = 0;
774
+ this.elements = {};
775
+ this.getLogger = this.getLogger.bind(this);
776
+ this.nodeType = nodeType;
777
+ this.clear();
778
+ this.getType = this.getType.bind(this);
779
+ this.getElementById = this.getElementById.bind(this);
780
+ this.getParent = this.getParent.bind(this);
781
+ this.getMindmap = this.getMindmap.bind(this);
782
+ this.addNode = this.addNode.bind(this);
783
+ this.decorateNode = this.decorateNode.bind(this);
784
+ }
785
+ static {
786
+ __name(this, "MindmapDB");
787
+ }
788
+ clear() {
789
+ this.nodes = [];
790
+ this.count = 0;
791
+ this.elements = {};
792
+ this.baseLevel = void 0;
793
+ }
794
+ getParent(level) {
795
+ for (let i = this.nodes.length - 1; i >= 0; i--) {
796
+ if (this.nodes[i].level < level) {
797
+ return this.nodes[i];
798
+ }
799
+ }
800
+ return null;
801
+ }
802
+ getMindmap() {
803
+ return this.nodes.length > 0 ? this.nodes[0] : null;
804
+ }
805
+ addNode(level, id, descr, type) {
806
+ log.info("addNode", level, id, descr, type);
807
+ let isRoot = false;
808
+ if (this.nodes.length === 0) {
809
+ this.baseLevel = level;
810
+ level = 0;
811
+ isRoot = true;
812
+ } else if (this.baseLevel !== void 0) {
813
+ level = level - this.baseLevel;
814
+ isRoot = false;
815
+ }
816
+ const conf = getConfig2();
817
+ let padding = conf.mindmap?.padding ?? defaultConfig_default.mindmap.padding;
818
+ switch (type) {
819
+ case this.nodeType.ROUNDED_RECT:
820
+ case this.nodeType.RECT:
821
+ case this.nodeType.HEXAGON:
822
+ padding *= 2;
823
+ break;
824
+ }
825
+ const node = {
826
+ id: this.count++,
827
+ nodeId: sanitizeText(id, conf),
828
+ level,
829
+ descr: sanitizeText(descr, conf),
830
+ type,
831
+ children: [],
832
+ width: conf.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,
833
+ padding,
834
+ isRoot
835
+ };
836
+ const parent = this.getParent(level);
837
+ if (parent) {
838
+ parent.children.push(node);
839
+ this.nodes.push(node);
840
+ } else {
841
+ if (isRoot) {
842
+ this.nodes.push(node);
843
+ } else {
844
+ throw new Error(
845
+ `There can be only one root. No parent could be found for ("${node.descr}")`
846
+ );
847
+ }
848
+ }
849
+ }
850
+ getType(startStr, endStr) {
851
+ log.debug("In get type", startStr, endStr);
852
+ switch (startStr) {
853
+ case "[":
854
+ return this.nodeType.RECT;
855
+ case "(":
856
+ return endStr === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
857
+ case "((":
858
+ return this.nodeType.CIRCLE;
859
+ case ")":
860
+ return this.nodeType.CLOUD;
861
+ case "))":
862
+ return this.nodeType.BANG;
863
+ case "{{":
864
+ return this.nodeType.HEXAGON;
865
+ default:
866
+ return this.nodeType.DEFAULT;
867
+ }
868
+ }
869
+ setElementForId(id, element) {
870
+ this.elements[id] = element;
871
+ }
872
+ getElementById(id) {
873
+ return this.elements[id];
874
+ }
875
+ decorateNode(decoration) {
876
+ if (!decoration) {
877
+ return;
878
+ }
879
+ const config = getConfig2();
880
+ const node = this.nodes[this.nodes.length - 1];
881
+ if (decoration.icon) {
882
+ node.icon = sanitizeText(decoration.icon, config);
883
+ }
884
+ if (decoration.class) {
885
+ node.class = sanitizeText(decoration.class, config);
886
+ }
887
+ }
888
+ type2Str(type) {
889
+ switch (type) {
890
+ case this.nodeType.DEFAULT:
891
+ return "no-border";
892
+ case this.nodeType.RECT:
893
+ return "rect";
894
+ case this.nodeType.ROUNDED_RECT:
895
+ return "rounded-rect";
896
+ case this.nodeType.CIRCLE:
897
+ return "circle";
898
+ case this.nodeType.CLOUD:
899
+ return "cloud";
900
+ case this.nodeType.BANG:
901
+ return "bang";
902
+ case this.nodeType.HEXAGON:
903
+ return "hexgon";
904
+ // cspell: disable-line
905
+ default:
906
+ return "no-border";
907
+ }
908
+ }
909
+ /**
910
+ * Assign section numbers to nodes based on their position relative to root
911
+ * @param node - The mindmap node to process
912
+ * @param sectionNumber - The section number to assign (undefined for root)
913
+ */
914
+ assignSections(node, sectionNumber) {
915
+ if (node.level === 0) {
916
+ node.section = void 0;
917
+ } else {
918
+ node.section = sectionNumber;
919
+ }
920
+ if (node.children) {
921
+ for (const [index, child] of node.children.entries()) {
922
+ const childSectionNumber = node.level === 0 ? index % (MAX_SECTIONS - 1) : sectionNumber;
923
+ this.assignSections(child, childSectionNumber);
924
+ }
925
+ }
926
+ }
927
+ /**
928
+ * Convert mindmap tree structure to flat array of nodes
929
+ * @param node - The mindmap node to process
930
+ * @param processedNodes - Array to collect processed nodes
931
+ */
932
+ flattenNodes(node, processedNodes) {
933
+ const conf = getConfig2();
934
+ const cssClasses = ["mindmap-node"];
935
+ if (node.isRoot === true) {
936
+ cssClasses.push("section-root", "section--1");
937
+ } else if (node.section !== void 0) {
938
+ cssClasses.push(`section-${node.section}`);
939
+ }
940
+ if (node.class) {
941
+ cssClasses.push(node.class);
942
+ }
943
+ const classes = cssClasses.join(" ");
944
+ const getShapeFromType = /* @__PURE__ */ __name((type) => {
945
+ const theme = conf.theme?.toLowerCase() ?? "";
946
+ const isReduxTheme = theme.includes("redux");
947
+ switch (type) {
948
+ case nodeType.CIRCLE:
949
+ return "mindmapCircle";
950
+ case nodeType.RECT:
951
+ return "rect";
952
+ case nodeType.ROUNDED_RECT:
953
+ return "rounded";
954
+ case nodeType.CLOUD:
955
+ return "cloud";
956
+ case nodeType.BANG:
957
+ return "bang";
958
+ case nodeType.HEXAGON:
959
+ return "hexagon";
960
+ case nodeType.DEFAULT:
961
+ return isReduxTheme ? "rounded" : "defaultMindmapNode";
962
+ case nodeType.NO_BORDER:
963
+ default:
964
+ return "rect";
965
+ }
966
+ }, "getShapeFromType");
967
+ const processedNode = {
968
+ id: node.id.toString(),
969
+ domId: "node_" + node.id.toString(),
970
+ label: node.descr,
971
+ labelType: "markdown",
972
+ isGroup: false,
973
+ shape: getShapeFromType(node.type),
974
+ width: node.width,
975
+ height: node.height ?? 0,
976
+ padding: node.padding,
977
+ cssClasses: classes,
978
+ cssStyles: [],
979
+ look: conf.look,
980
+ icon: node.icon,
981
+ x: node.x,
982
+ y: node.y,
983
+ // Mindmap-specific properties
984
+ level: node.level,
985
+ nodeId: node.nodeId,
986
+ type: node.type,
987
+ section: node.section
988
+ };
989
+ processedNodes.push(processedNode);
990
+ if (node.children) {
991
+ for (const child of node.children) {
992
+ this.flattenNodes(child, processedNodes);
993
+ }
994
+ }
995
+ }
996
+ /**
997
+ * Generate edges from parent-child relationships in mindmap tree
998
+ * @param node - The mindmap node to process
999
+ * @param edges - Array to collect edges
1000
+ */
1001
+ generateEdges(node, edges) {
1002
+ if (!node.children) {
1003
+ return;
1004
+ }
1005
+ const conf = getConfig2();
1006
+ for (const child of node.children) {
1007
+ let edgeClasses = "edge";
1008
+ if (child.section !== void 0) {
1009
+ edgeClasses += ` section-edge-${child.section}`;
1010
+ }
1011
+ const edgeDepth = node.level + 1;
1012
+ edgeClasses += ` edge-depth-${edgeDepth}`;
1013
+ const edge = {
1014
+ id: `edge_${node.id}_${child.id}`,
1015
+ start: node.id.toString(),
1016
+ end: child.id.toString(),
1017
+ type: "normal",
1018
+ curve: "basis",
1019
+ thickness: "normal",
1020
+ look: conf.look,
1021
+ classes: edgeClasses,
1022
+ // Store mindmap-specific data
1023
+ depth: node.level,
1024
+ section: child.section
1025
+ };
1026
+ edges.push(edge);
1027
+ this.generateEdges(child, edges);
1028
+ }
1029
+ }
1030
+ /**
1031
+ * Get structured data for layout algorithms
1032
+ * Following the pattern established by ER diagrams
1033
+ * @returns Structured data containing nodes, edges, and config
1034
+ */
1035
+ getData() {
1036
+ const mindmapRoot = this.getMindmap();
1037
+ const config = getConfig2();
1038
+ const userDefinedConfig = getUserDefinedConfig();
1039
+ const hasUserDefinedLayout = userDefinedConfig.layout !== void 0;
1040
+ const finalConfig = config;
1041
+ if (!hasUserDefinedLayout) {
1042
+ finalConfig.layout = "cose-bilkent";
1043
+ }
1044
+ if (!mindmapRoot) {
1045
+ return {
1046
+ nodes: [],
1047
+ edges: [],
1048
+ config: finalConfig
1049
+ };
1050
+ }
1051
+ log.debug("getData: mindmapRoot", mindmapRoot, config);
1052
+ this.assignSections(mindmapRoot);
1053
+ const processedNodes = [];
1054
+ const processedEdges = [];
1055
+ this.flattenNodes(mindmapRoot, processedNodes);
1056
+ this.generateEdges(mindmapRoot, processedEdges);
1057
+ log.debug(
1058
+ `getData: processed ${processedNodes.length} nodes and ${processedEdges.length} edges`
1059
+ );
1060
+ const shapes = /* @__PURE__ */ new Map();
1061
+ for (const node of processedNodes) {
1062
+ shapes.set(node.id, {
1063
+ shape: node.shape,
1064
+ width: node.width,
1065
+ height: node.height,
1066
+ padding: node.padding
1067
+ });
1068
+ }
1069
+ return {
1070
+ nodes: processedNodes,
1071
+ edges: processedEdges,
1072
+ config: finalConfig,
1073
+ // Store the root node for mindmap-specific layout algorithms
1074
+ rootNode: mindmapRoot,
1075
+ // Properties required by dagre layout algorithm
1076
+ markers: ["point"],
1077
+ // Mindmaps don't use markers
1078
+ direction: "TB",
1079
+ // Top-to-bottom direction for mindmaps
1080
+ nodeSpacing: 50,
1081
+ // Default spacing between nodes
1082
+ rankSpacing: 50,
1083
+ // Default spacing between ranks
1084
+ // Add shapes for ELK compatibility
1085
+ shapes: Object.fromEntries(shapes),
1086
+ // Additional properties that layout algorithms might expect
1087
+ type: "mindmap",
1088
+ diagramId: "mindmap-" + v4_default()
1089
+ };
1090
+ }
1091
+ // Expose logger to grammar
1092
+ getLogger() {
1093
+ return log;
1094
+ }
1095
+ };
1096
+ var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
1097
+ log.debug("Rendering mindmap diagram\n" + text);
1098
+ const db = diagObj.db;
1099
+ const data4Layout = db.getData();
1100
+ const svg = getDiagramElement(id, data4Layout.config.securityLevel);
1101
+ data4Layout.type = diagObj.type;
1102
+ data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(data4Layout.config.layout, {
1103
+ fallback: "cose-bilkent"
1104
+ });
1105
+ data4Layout.diagramId = id;
1106
+ const mm = db.getMindmap();
1107
+ if (!mm) {
1108
+ return;
1109
+ }
1110
+ data4Layout.nodes.forEach((node) => {
1111
+ if (node.shape === "rounded") {
1112
+ node.radius = 15;
1113
+ node.taper = 15;
1114
+ node.stroke = "none";
1115
+ node.width = 0;
1116
+ node.padding = 15;
1117
+ } else if (node.shape === "circle") {
1118
+ node.padding = 10;
1119
+ } else if (node.shape === "rect") {
1120
+ node.width = 0;
1121
+ node.padding = 10;
1122
+ } else if (node.shape === "hexagon") {
1123
+ node.width = 0;
1124
+ node.height = 0;
1125
+ }
1126
+ });
1127
+ await render(data4Layout, svg);
1128
+ const { themeVariables } = getConfig();
1129
+ const { useGradient, gradientStart, gradientStop } = themeVariables;
1130
+ if (useGradient && gradientStart && gradientStop) {
1131
+ const svgId = svg.attr("id");
1132
+ const gradient = svg.append("defs").append("linearGradient").attr("id", `${svgId}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
1133
+ gradient.append("stop").attr("offset", "0%").attr("stop-color", gradientStart).attr("stop-opacity", 1);
1134
+ gradient.append("stop").attr("offset", "100%").attr("stop-color", gradientStop).attr("stop-opacity", 1);
1135
+ }
1136
+ setupViewPortForSVG(
1137
+ svg,
1138
+ data4Layout.config.mindmap?.padding ?? defaultConfig_default.mindmap.padding,
1139
+ "mindmapDiagram",
1140
+ data4Layout.config.mindmap?.useMaxWidth ?? defaultConfig_default.mindmap.useMaxWidth
1141
+ );
1142
+ }, "draw");
1143
+ var mindmapRenderer_default = {
1144
+ draw
1145
+ };
1146
+ var genSections = /* @__PURE__ */ __name((options) => {
1147
+ const { theme, look } = options;
1148
+ let sections = "";
1149
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1150
+ options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
1151
+ if (is_dark_default(options["lineColor" + i])) {
1152
+ options["lineColor" + i] = lighten_default(options["lineColor" + i], 20);
1153
+ } else {
1154
+ options["lineColor" + i] = darken_default(options["lineColor" + i], 20);
1155
+ }
1156
+ }
1157
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1158
+ const sw = "" + (look === "neo" ? Math.max(10 - (i - 1) * 2, 2) : 17 - 3 * i);
1159
+ sections += `
1160
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
1161
+ fill: ${options["cScale" + i]};
1162
+ }
1163
+ .section-${i - 1} text {
1164
+ fill: ${options["cScaleLabel" + i]};
1165
+ }
1166
+ .section-${i - 1} span {
1167
+ color: ${options["cScaleLabel" + i]};
1168
+ }
1169
+ .node-icon-${i - 1} {
1170
+ font-size: 40px;
1171
+ color: ${options["cScaleLabel" + i]};
1172
+ }
1173
+ .section-edge-${i - 1}{
1174
+ stroke: ${options["cScale" + i]};
1175
+ }
1176
+ .edge-depth-${i - 1}{
1177
+ stroke-width: ${sw};
1178
+ }
1179
+ .section-${i - 1} line {
1180
+ stroke: ${options["cScaleInv" + i]} ;
1181
+ stroke-width: 3;
1182
+ }
1183
+
1184
+ .disabled, .disabled circle, .disabled text {
1185
+ fill: lightgray;
1186
+ }
1187
+ .disabled text {
1188
+ fill: #efefef;
1189
+ }
1190
+ [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 {
1191
+ fill: ${theme === "redux" || theme === "redux-dark" || theme === "neutral" ? options.mainBkg : options["cScale" + i]};
1192
+ stroke: ${theme === "redux" || theme === "redux-dark" ? options.nodeBorder : options["cScale" + i]};
1193
+ stroke-width: ${options.strokeWidth ?? 2}px;
1194
+ }
1195
+ [data-look="neo"].section-edge-${i - 1}{
1196
+ stroke: ${theme?.includes("redux") || theme === "neo-dark" ? options.nodeBorder : options["cScale" + i]};
1197
+ }
1198
+ [data-look="neo"].mindmap-node.section-${i - 1} text {
1199
+ fill: ${theme === "redux" || theme === "redux-dark" ? options.nodeBorder : options["cScaleLabel" + (theme === "neutral" ? 1 : i)]};
1200
+ }
1201
+ `;
1202
+ }
1203
+ return sections;
1204
+ }, "genSections");
1205
+ var genGradient = /* @__PURE__ */ __name((THEME_COLOR_LIMIT, svgId, mainBkg) => {
1206
+ let sections = "";
1207
+ for (let i = 0; i < THEME_COLOR_LIMIT; i++) {
1208
+ sections += `
1209
+ [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 {
1210
+ stroke: url(${svgId}-gradient);
1211
+ fill: ${mainBkg};
1212
+ }
1213
+ .section-${i - 1} line {
1214
+ stroke-width: 0;
1215
+ }`;
1216
+ }
1217
+ return sections;
1218
+ }, "genGradient");
1219
+ var getStyles = /* @__PURE__ */ __name((options) => {
1220
+ const { theme } = options;
1221
+ const svgId = options.svgId;
1222
+ const scopedDropShadow = options.dropShadow ? options.dropShadow.replace("url(#drop-shadow)", `url(${svgId}-drop-shadow)`) : "none";
1223
+ return `
1224
+ .edge {
1225
+ stroke-width: 3;
1226
+ }
1227
+ ${genSections(options)}
1228
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
1229
+ fill: ${options.git0};
1230
+ }
1231
+ .section-root text {
1232
+ fill: ${options.gitBranchLabel0};
1233
+ }
1234
+ .section-root span {
1235
+ color: ${theme?.includes("redux") ? options.nodeBorder : options.gitBranchLabel0};
1236
+ }
1237
+ .icon-container {
1238
+ height:100%;
1239
+ display: flex;
1240
+ justify-content: center;
1241
+ align-items: center;
1242
+ }
1243
+ .edge {
1244
+ fill: none;
1245
+ }
1246
+ .mindmap-node-label {
1247
+ dy: 1em;
1248
+ alignment-baseline: middle;
1249
+ text-anchor: middle;
1250
+ dominant-baseline: middle;
1251
+ text-align: center;
1252
+ }
1253
+ [data-look="neo"].mindmap-node {
1254
+ filter: ${scopedDropShadow};
1255
+ }
1256
+ [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 {
1257
+ fill: ${theme?.includes("redux") ? options.mainBkg : options.git0};
1258
+ }
1259
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1260
+ fill: ${theme?.includes("redux") ? options.nodeBorder : options["cScaleLabel" + (theme === "neutral" ? 1 : 0)]};
1261
+ }
1262
+ ${options.useGradient && svgId && options.mainBkg ? genGradient(options.THEME_COLOR_LIMIT, svgId, options.mainBkg) : ""}
1263
+ `;
1264
+ }, "getStyles");
1265
+ var styles_default = getStyles;
1266
+ var diagram = {
1267
+ get db() {
1268
+ return new MindmapDB();
1269
+ },
1270
+ renderer: mindmapRenderer_default,
1271
+ parser: mindmap_default,
1272
+ styles: styles_default
1273
+ };
1274
+ export {
1275
+ diagram
1276
+ };
1277
+ //# sourceMappingURL=mindmap-definition-QFDTVHPH-KUMAMRSF.js.map