@pi-outpost/embed 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 (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,1008 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as t } from "./src-DJ4x3y2O.js";
3
+ import { b as n, et as r, f as i, k as a, rt as o, tt as s, x as c, z as l } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
4
+ import "./chunk-ICXQ74PX-CC59NQmW.js";
5
+ import "./chunk-HOUHSVGY-CtRCnz1G.js";
6
+ import "./chunk-Q4XR5HBZ-Bk18cMuk.js";
7
+ import "./chunk-7BUUIJ7U-BFUeQBoS.js";
8
+ import "./chunk-OGEWGWER-BGdqgMza.js";
9
+ import { t as u } from "./chunk-XXDRQBXY-DsVp5qjg.js";
10
+ import { t as d } from "./chunk-VR4S4FIN-Ci491c8N.js";
11
+ import "./chunk-C7G6YPKG-GTlyrFFt.js";
12
+ import "./chunk-ZGVPDNZ5-CDTkXY1G.js";
13
+ import "./chunk-52WLFC77-C9zQbcGs.js";
14
+ import { r as f, t as p } from "./chunk-FWX5IMBZ-h3GfgkP2.js";
15
+ //#region ../node_modules/uuid/dist/stringify.js
16
+ var m = [];
17
+ for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
18
+ function h(e, t = 0) {
19
+ return (m[e[t + 0]] + m[e[t + 1]] + m[e[t + 2]] + m[e[t + 3]] + "-" + m[e[t + 4]] + m[e[t + 5]] + "-" + m[e[t + 6]] + m[e[t + 7]] + "-" + m[e[t + 8]] + m[e[t + 9]] + "-" + m[e[t + 10]] + m[e[t + 11]] + m[e[t + 12]] + m[e[t + 13]] + m[e[t + 14]] + m[e[t + 15]]).toLowerCase();
20
+ }
21
+ //#endregion
22
+ //#region ../node_modules/uuid/dist/rng.js
23
+ var g = /* @__PURE__ */ new Uint8Array(16);
24
+ function _() {
25
+ return crypto.getRandomValues(g);
26
+ }
27
+ //#endregion
28
+ //#region ../node_modules/uuid/dist/v4.js
29
+ function v(e, t, n) {
30
+ return !t && !e && crypto.randomUUID ? crypto.randomUUID() : y(e, t, n);
31
+ }
32
+ function y(e, t, n) {
33
+ e ||= {};
34
+ let r = e.random ?? e.rng?.() ?? _();
35
+ if (r.length < 16) throw Error("Random bytes length must be >= 16");
36
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
37
+ if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
38
+ for (let e = 0; e < 16; ++e) t[n + e] = r[e];
39
+ return t;
40
+ }
41
+ return h(r);
42
+ }
43
+ //#endregion
44
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-LN4V7U3C.mjs
45
+ var b = (function() {
46
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
47
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
48
+ return n;
49
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
50
+ 6,
51
+ 7,
52
+ 8
53
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
54
+ 6,
55
+ 7,
56
+ 11
57
+ ], m = [
58
+ 1,
59
+ 6,
60
+ 13,
61
+ 15,
62
+ 16,
63
+ 19,
64
+ 22
65
+ ], h = [1, 33], g = [1, 34], _ = [
66
+ 1,
67
+ 6,
68
+ 7,
69
+ 11,
70
+ 13,
71
+ 15,
72
+ 16,
73
+ 19,
74
+ 22
75
+ ], v = {
76
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
77
+ yy: {},
78
+ symbols_: {
79
+ error: 2,
80
+ start: 3,
81
+ mindMap: 4,
82
+ spaceLines: 5,
83
+ SPACELINE: 6,
84
+ NL: 7,
85
+ MINDMAP: 8,
86
+ document: 9,
87
+ stop: 10,
88
+ EOF: 11,
89
+ statement: 12,
90
+ SPACELIST: 13,
91
+ node: 14,
92
+ ICON: 15,
93
+ CLASS: 16,
94
+ nodeWithId: 17,
95
+ nodeWithoutId: 18,
96
+ NODE_DSTART: 19,
97
+ NODE_DESCR: 20,
98
+ NODE_DEND: 21,
99
+ NODE_ID: 22,
100
+ $accept: 0,
101
+ $end: 1
102
+ },
103
+ terminals_: {
104
+ 2: "error",
105
+ 6: "SPACELINE",
106
+ 7: "NL",
107
+ 8: "MINDMAP",
108
+ 11: "EOF",
109
+ 13: "SPACELIST",
110
+ 15: "ICON",
111
+ 16: "CLASS",
112
+ 19: "NODE_DSTART",
113
+ 20: "NODE_DESCR",
114
+ 21: "NODE_DEND",
115
+ 22: "NODE_ID"
116
+ },
117
+ productions_: [
118
+ 0,
119
+ [3, 1],
120
+ [3, 2],
121
+ [5, 1],
122
+ [5, 2],
123
+ [5, 2],
124
+ [4, 2],
125
+ [4, 3],
126
+ [10, 1],
127
+ [10, 1],
128
+ [10, 1],
129
+ [10, 2],
130
+ [10, 2],
131
+ [9, 3],
132
+ [9, 2],
133
+ [12, 2],
134
+ [12, 2],
135
+ [12, 2],
136
+ [12, 1],
137
+ [12, 1],
138
+ [12, 1],
139
+ [12, 1],
140
+ [12, 1],
141
+ [14, 1],
142
+ [14, 1],
143
+ [18, 3],
144
+ [17, 1],
145
+ [17, 4]
146
+ ],
147
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
148
+ var s = a.length - 1;
149
+ switch (i) {
150
+ case 6:
151
+ case 7: return r;
152
+ case 8:
153
+ r.getLogger().trace("Stop NL ");
154
+ break;
155
+ case 9:
156
+ r.getLogger().trace("Stop EOF ");
157
+ break;
158
+ case 11:
159
+ r.getLogger().trace("Stop NL2 ");
160
+ break;
161
+ case 12:
162
+ r.getLogger().trace("Stop EOF2 ");
163
+ break;
164
+ case 15:
165
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
166
+ break;
167
+ case 16:
168
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
169
+ break;
170
+ case 17:
171
+ case 21:
172
+ r.decorateNode({ class: a[s] });
173
+ break;
174
+ case 18:
175
+ r.getLogger().trace("SPACELIST");
176
+ break;
177
+ case 19:
178
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
179
+ break;
180
+ case 20:
181
+ r.decorateNode({ icon: a[s] });
182
+ break;
183
+ case 25:
184
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
185
+ id: a[s - 1],
186
+ descr: a[s - 1],
187
+ type: r.getType(a[s - 2], a[s])
188
+ };
189
+ break;
190
+ case 26:
191
+ this.$ = {
192
+ id: a[s],
193
+ descr: a[s],
194
+ type: r.nodeType.DEFAULT
195
+ };
196
+ break;
197
+ case 27:
198
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
199
+ id: a[s - 3],
200
+ descr: a[s - 1],
201
+ type: r.getType(a[s - 2], a[s])
202
+ };
203
+ break;
204
+ }
205
+ }, "anonymous"),
206
+ table: [
207
+ {
208
+ 3: 1,
209
+ 4: 2,
210
+ 5: 3,
211
+ 6: [1, 5],
212
+ 8: n
213
+ },
214
+ { 1: [3] },
215
+ { 1: [2, 1] },
216
+ {
217
+ 4: 6,
218
+ 6: [1, 7],
219
+ 7: [1, 8],
220
+ 8: n
221
+ },
222
+ {
223
+ 6: r,
224
+ 7: [1, 10],
225
+ 9: 9,
226
+ 12: 11,
227
+ 13: i,
228
+ 14: 14,
229
+ 15: a,
230
+ 16: o,
231
+ 17: 17,
232
+ 18: 18,
233
+ 19: s,
234
+ 22: c
235
+ },
236
+ t(l, [2, 3]),
237
+ { 1: [2, 2] },
238
+ t(l, [2, 4]),
239
+ t(l, [2, 5]),
240
+ {
241
+ 1: [2, 6],
242
+ 6: r,
243
+ 12: 21,
244
+ 13: i,
245
+ 14: 14,
246
+ 15: a,
247
+ 16: o,
248
+ 17: 17,
249
+ 18: 18,
250
+ 19: s,
251
+ 22: c
252
+ },
253
+ {
254
+ 6: r,
255
+ 9: 22,
256
+ 12: 11,
257
+ 13: i,
258
+ 14: 14,
259
+ 15: a,
260
+ 16: o,
261
+ 17: 17,
262
+ 18: 18,
263
+ 19: s,
264
+ 22: c
265
+ },
266
+ {
267
+ 6: u,
268
+ 7: d,
269
+ 10: 23,
270
+ 11: f
271
+ },
272
+ t(p, [2, 22], {
273
+ 17: 17,
274
+ 18: 18,
275
+ 14: 27,
276
+ 15: [1, 28],
277
+ 16: [1, 29],
278
+ 19: s,
279
+ 22: c
280
+ }),
281
+ t(p, [2, 18]),
282
+ t(p, [2, 19]),
283
+ t(p, [2, 20]),
284
+ t(p, [2, 21]),
285
+ t(p, [2, 23]),
286
+ t(p, [2, 24]),
287
+ t(p, [2, 26], { 19: [1, 30] }),
288
+ { 20: [1, 31] },
289
+ {
290
+ 6: u,
291
+ 7: d,
292
+ 10: 32,
293
+ 11: f
294
+ },
295
+ {
296
+ 1: [2, 7],
297
+ 6: r,
298
+ 12: 21,
299
+ 13: i,
300
+ 14: 14,
301
+ 15: a,
302
+ 16: o,
303
+ 17: 17,
304
+ 18: 18,
305
+ 19: s,
306
+ 22: c
307
+ },
308
+ t(m, [2, 14], {
309
+ 7: h,
310
+ 11: g
311
+ }),
312
+ t(_, [2, 8]),
313
+ t(_, [2, 9]),
314
+ t(_, [2, 10]),
315
+ t(p, [2, 15]),
316
+ t(p, [2, 16]),
317
+ t(p, [2, 17]),
318
+ { 20: [1, 35] },
319
+ { 21: [1, 36] },
320
+ t(m, [2, 13], {
321
+ 7: h,
322
+ 11: g
323
+ }),
324
+ t(_, [2, 11]),
325
+ t(_, [2, 12]),
326
+ { 21: [1, 37] },
327
+ t(p, [2, 25]),
328
+ t(p, [2, 27])
329
+ ],
330
+ defaultActions: {
331
+ 2: [2, 1],
332
+ 6: [2, 2]
333
+ },
334
+ parseError: /* @__PURE__ */ e(function(e, t) {
335
+ if (t.recoverable) this.trace(e);
336
+ else {
337
+ var n = Error(e);
338
+ throw n.hash = t, n;
339
+ }
340
+ }, "parseError"),
341
+ parse: /* @__PURE__ */ e(function(t) {
342
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
343
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
344
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
345
+ var v = h.yylloc;
346
+ o.push(v);
347
+ var y = h.options && h.options.ranges;
348
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
349
+ function b(e) {
350
+ r.length -= 2 * e, a.length -= e, o.length -= e;
351
+ }
352
+ e(b, "popStack");
353
+ function x() {
354
+ var e = i.pop() || h.lex() || p;
355
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
356
+ }
357
+ e(x, "lex");
358
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
359
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
360
+ var M = "";
361
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
362
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
363
+ text: h.match,
364
+ token: this.terminals_[S] || S,
365
+ line: h.yylineno,
366
+ loc: v,
367
+ expected: j
368
+ });
369
+ }
370
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
371
+ switch (T[0]) {
372
+ case 1:
373
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
374
+ break;
375
+ case 2:
376
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
377
+ first_line: o[o.length - (k || 1)].first_line,
378
+ last_line: o[o.length - 1].last_line,
379
+ first_column: o[o.length - (k || 1)].first_column,
380
+ last_column: o[o.length - 1].last_column
381
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
382
+ c,
383
+ u,
384
+ l,
385
+ g.yy,
386
+ T[1],
387
+ a,
388
+ o
389
+ ].concat(m)), E !== void 0) return E;
390
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
391
+ break;
392
+ case 3: return !0;
393
+ }
394
+ }
395
+ return !0;
396
+ }, "parse")
397
+ };
398
+ v.lexer = /* @__PURE__ */ (function() {
399
+ return {
400
+ EOF: 1,
401
+ parseError: /* @__PURE__ */ e(function(e, t) {
402
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
403
+ else throw Error(e);
404
+ }, "parseError"),
405
+ setInput: /* @__PURE__ */ e(function(e, t) {
406
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
407
+ first_line: 1,
408
+ first_column: 0,
409
+ last_line: 1,
410
+ last_column: 0
411
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
412
+ }, "setInput"),
413
+ input: /* @__PURE__ */ e(function() {
414
+ var e = this._input[0];
415
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
416
+ }, "input"),
417
+ unput: /* @__PURE__ */ e(function(e) {
418
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
419
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
420
+ var r = this.match.split(/(?:\r\n?|\n)/g);
421
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
422
+ var i = this.yylloc.range;
423
+ return this.yylloc = {
424
+ first_line: this.yylloc.first_line,
425
+ last_line: this.yylineno + 1,
426
+ first_column: this.yylloc.first_column,
427
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
428
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
429
+ }, "unput"),
430
+ more: /* @__PURE__ */ e(function() {
431
+ return this._more = !0, this;
432
+ }, "more"),
433
+ reject: /* @__PURE__ */ e(function() {
434
+ if (this.options.backtrack_lexer) this._backtrack = !0;
435
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
436
+ text: "",
437
+ token: null,
438
+ line: this.yylineno
439
+ });
440
+ return this;
441
+ }, "reject"),
442
+ less: /* @__PURE__ */ e(function(e) {
443
+ this.unput(this.match.slice(e));
444
+ }, "less"),
445
+ pastInput: /* @__PURE__ */ e(function() {
446
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
447
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
448
+ }, "pastInput"),
449
+ upcomingInput: /* @__PURE__ */ e(function() {
450
+ var e = this.match;
451
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
452
+ }, "upcomingInput"),
453
+ showPosition: /* @__PURE__ */ e(function() {
454
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
455
+ return e + this.upcomingInput() + "\n" + t + "^";
456
+ }, "showPosition"),
457
+ test_match: /* @__PURE__ */ e(function(e, t) {
458
+ var n, r, i;
459
+ if (this.options.backtrack_lexer && (i = {
460
+ yylineno: this.yylineno,
461
+ yylloc: {
462
+ first_line: this.yylloc.first_line,
463
+ last_line: this.last_line,
464
+ first_column: this.yylloc.first_column,
465
+ last_column: this.yylloc.last_column
466
+ },
467
+ yytext: this.yytext,
468
+ match: this.match,
469
+ matches: this.matches,
470
+ matched: this.matched,
471
+ yyleng: this.yyleng,
472
+ offset: this.offset,
473
+ _more: this._more,
474
+ _input: this._input,
475
+ yy: this.yy,
476
+ conditionStack: this.conditionStack.slice(0),
477
+ done: this.done
478
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
479
+ first_line: this.yylloc.last_line,
480
+ last_line: this.yylineno + 1,
481
+ first_column: this.yylloc.last_column,
482
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
483
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
484
+ if (this._backtrack) {
485
+ for (var a in i) this[a] = i[a];
486
+ return !1;
487
+ }
488
+ return !1;
489
+ }, "test_match"),
490
+ next: /* @__PURE__ */ e(function() {
491
+ if (this.done) return this.EOF;
492
+ this._input || (this.done = !0);
493
+ var e, t, n, r;
494
+ this._more || (this.yytext = "", this.match = "");
495
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
496
+ if (t = n, r = a, this.options.backtrack_lexer) {
497
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
498
+ if (this._backtrack) {
499
+ t = !1;
500
+ continue;
501
+ } else return !1;
502
+ } else if (!this.options.flex) break;
503
+ }
504
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
505
+ text: "",
506
+ token: null,
507
+ line: this.yylineno
508
+ });
509
+ }, "next"),
510
+ lex: /* @__PURE__ */ e(function() {
511
+ return this.next() || this.lex();
512
+ }, "lex"),
513
+ begin: /* @__PURE__ */ e(function(e) {
514
+ this.conditionStack.push(e);
515
+ }, "begin"),
516
+ popState: /* @__PURE__ */ e(function() {
517
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
518
+ }, "popState"),
519
+ _currentRules: /* @__PURE__ */ e(function() {
520
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
521
+ }, "_currentRules"),
522
+ topState: /* @__PURE__ */ e(function(e) {
523
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
524
+ }, "topState"),
525
+ pushState: /* @__PURE__ */ e(function(e) {
526
+ this.begin(e);
527
+ }, "pushState"),
528
+ stateStackSize: /* @__PURE__ */ e(function() {
529
+ return this.conditionStack.length;
530
+ }, "stateStackSize"),
531
+ options: { "case-insensitive": !0 },
532
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
533
+ switch (n) {
534
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
535
+ case 1: return 8;
536
+ case 2:
537
+ this.begin("CLASS");
538
+ break;
539
+ case 3: return this.popState(), 16;
540
+ case 4:
541
+ this.popState();
542
+ break;
543
+ case 5:
544
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
545
+ break;
546
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
547
+ case 7: return 7;
548
+ case 8: return 15;
549
+ case 9:
550
+ e.getLogger().trace("end icon"), this.popState();
551
+ break;
552
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
553
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
554
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
555
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
556
+ case 14: return this.begin("NODE"), 19;
557
+ case 15: return this.begin("NODE"), 19;
558
+ case 16: return this.begin("NODE"), 19;
559
+ case 17: return this.begin("NODE"), 19;
560
+ case 18: return 13;
561
+ case 19: return 22;
562
+ case 20: return 11;
563
+ case 21:
564
+ this.begin("NSTR2");
565
+ break;
566
+ case 22: return "NODE_DESCR";
567
+ case 23:
568
+ this.popState();
569
+ break;
570
+ case 24:
571
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
572
+ break;
573
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
574
+ case 26:
575
+ this.popState();
576
+ break;
577
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
578
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
579
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
580
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
581
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
582
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
584
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
586
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
587
+ }
588
+ }, "anonymous"),
589
+ rules: [
590
+ /^(?:\s*%%.*)/i,
591
+ /^(?:mindmap\b)/i,
592
+ /^(?::::)/i,
593
+ /^(?:.+)/i,
594
+ /^(?:\n)/i,
595
+ /^(?:::icon\()/i,
596
+ /^(?:[\s]+[\n])/i,
597
+ /^(?:[\n]+)/i,
598
+ /^(?:[^\)]+)/i,
599
+ /^(?:\))/i,
600
+ /^(?:-\))/i,
601
+ /^(?:\(-)/i,
602
+ /^(?:\)\))/i,
603
+ /^(?:\))/i,
604
+ /^(?:\(\()/i,
605
+ /^(?:\{\{)/i,
606
+ /^(?:\()/i,
607
+ /^(?:\[)/i,
608
+ /^(?:[\s]+)/i,
609
+ /^(?:[^\(\[\n\)\{\}]+)/i,
610
+ /^(?:$)/i,
611
+ /^(?:["][`])/i,
612
+ /^(?:[^`"]+)/i,
613
+ /^(?:[`]["])/i,
614
+ /^(?:["])/i,
615
+ /^(?:[^"]+)/i,
616
+ /^(?:["])/i,
617
+ /^(?:[\)]\))/i,
618
+ /^(?:[\)])/i,
619
+ /^(?:[\]])/i,
620
+ /^(?:\}\})/i,
621
+ /^(?:\(-)/i,
622
+ /^(?:-\))/i,
623
+ /^(?:\(\()/i,
624
+ /^(?:\()/i,
625
+ /^(?:[^\)\]\(\}]+)/i,
626
+ /^(?:.+(?!\(\())/i
627
+ ],
628
+ conditions: {
629
+ CLASS: {
630
+ rules: [3, 4],
631
+ inclusive: !1
632
+ },
633
+ ICON: {
634
+ rules: [8, 9],
635
+ inclusive: !1
636
+ },
637
+ NSTR2: {
638
+ rules: [22, 23],
639
+ inclusive: !1
640
+ },
641
+ NSTR: {
642
+ rules: [25, 26],
643
+ inclusive: !1
644
+ },
645
+ NODE: {
646
+ rules: [
647
+ 21,
648
+ 24,
649
+ 27,
650
+ 28,
651
+ 29,
652
+ 30,
653
+ 31,
654
+ 32,
655
+ 33,
656
+ 34,
657
+ 35,
658
+ 36
659
+ ],
660
+ inclusive: !1
661
+ },
662
+ INITIAL: {
663
+ rules: [
664
+ 0,
665
+ 1,
666
+ 2,
667
+ 5,
668
+ 6,
669
+ 7,
670
+ 10,
671
+ 11,
672
+ 12,
673
+ 13,
674
+ 14,
675
+ 15,
676
+ 16,
677
+ 17,
678
+ 18,
679
+ 19,
680
+ 20
681
+ ],
682
+ inclusive: !0
683
+ }
684
+ }
685
+ };
686
+ })();
687
+ function y() {
688
+ this.yy = {};
689
+ }
690
+ return e(y, "Parser"), y.prototype = v, v.Parser = y, new y();
691
+ })();
692
+ b.parser = b;
693
+ var x = b, S = 12, C = {
694
+ DEFAULT: 0,
695
+ NO_BORDER: 0,
696
+ ROUNDED_RECT: 1,
697
+ RECT: 2,
698
+ CIRCLE: 3,
699
+ CLOUD: 4,
700
+ BANG: 5,
701
+ HEXAGON: 6
702
+ }, w = class {
703
+ constructor() {
704
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = C, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
705
+ }
706
+ static {
707
+ e(this, "MindmapDB");
708
+ }
709
+ clear() {
710
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
711
+ }
712
+ getParent(e) {
713
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
714
+ return null;
715
+ }
716
+ getMindmap() {
717
+ return this.nodes.length > 0 ? this.nodes[0] : null;
718
+ }
719
+ addNode(e, n, r, a) {
720
+ t.info("addNode", e, n, r, a);
721
+ let o = !1;
722
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, o = !0) : this.baseLevel !== void 0 && (e -= this.baseLevel, o = !1);
723
+ let s = c(), u = s.mindmap?.padding ?? i.mindmap.padding;
724
+ switch (a) {
725
+ case this.nodeType.ROUNDED_RECT:
726
+ case this.nodeType.RECT:
727
+ case this.nodeType.HEXAGON:
728
+ u *= 2;
729
+ break;
730
+ }
731
+ let d = {
732
+ id: this.count++,
733
+ nodeId: l(n, s),
734
+ level: e,
735
+ descr: l(r, s),
736
+ type: a,
737
+ children: [],
738
+ width: s.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
739
+ padding: u,
740
+ isRoot: o
741
+ }, f = this.getParent(e);
742
+ if (f) f.children.push(d), this.nodes.push(d);
743
+ else if (o) this.nodes.push(d);
744
+ else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
745
+ }
746
+ getType(e, n) {
747
+ switch (t.debug("In get type", e, n), e) {
748
+ case "[": return this.nodeType.RECT;
749
+ case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
750
+ case "((": return this.nodeType.CIRCLE;
751
+ case ")": return this.nodeType.CLOUD;
752
+ case "))": return this.nodeType.BANG;
753
+ case "{{": return this.nodeType.HEXAGON;
754
+ default: return this.nodeType.DEFAULT;
755
+ }
756
+ }
757
+ setElementForId(e, t) {
758
+ this.elements[e] = t;
759
+ }
760
+ getElementById(e) {
761
+ return this.elements[e];
762
+ }
763
+ decorateNode(e) {
764
+ if (!e) return;
765
+ let t = c(), n = this.nodes[this.nodes.length - 1];
766
+ e.icon && (n.icon = l(e.icon, t)), e.class && (n.class = l(e.class, t));
767
+ }
768
+ type2Str(e) {
769
+ switch (e) {
770
+ case this.nodeType.DEFAULT: return "no-border";
771
+ case this.nodeType.RECT: return "rect";
772
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
773
+ case this.nodeType.CIRCLE: return "circle";
774
+ case this.nodeType.CLOUD: return "cloud";
775
+ case this.nodeType.BANG: return "bang";
776
+ case this.nodeType.HEXAGON: return "hexgon";
777
+ default: return "no-border";
778
+ }
779
+ }
780
+ assignSections(e, t) {
781
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
782
+ let i = e.level === 0 ? n % (S - 1) : t;
783
+ this.assignSections(r, i);
784
+ }
785
+ }
786
+ flattenNodes(t, n) {
787
+ let r = c(), i = ["mindmap-node"];
788
+ t.isRoot === !0 ? i.push("section-root", "section--1") : t.section !== void 0 && i.push(`section-${t.section}`), t.class && i.push(t.class);
789
+ let a = i.join(" "), o = /* @__PURE__ */ e((e) => {
790
+ let t = (r.theme?.toLowerCase() ?? "").includes("redux");
791
+ switch (e) {
792
+ case C.CIRCLE: return "mindmapCircle";
793
+ case C.RECT: return "rect";
794
+ case C.ROUNDED_RECT: return "rounded";
795
+ case C.CLOUD: return "cloud";
796
+ case C.BANG: return "bang";
797
+ case C.HEXAGON: return "hexagon";
798
+ case C.DEFAULT: return t ? "rounded" : "defaultMindmapNode";
799
+ case C.NO_BORDER:
800
+ default: return "rect";
801
+ }
802
+ }, "getShapeFromType"), s = {
803
+ id: t.id.toString(),
804
+ domId: "node_" + t.id.toString(),
805
+ label: t.descr,
806
+ labelType: "markdown",
807
+ isGroup: !1,
808
+ shape: o(t.type),
809
+ width: t.width,
810
+ height: t.height ?? 0,
811
+ padding: t.padding,
812
+ cssClasses: a,
813
+ cssStyles: [],
814
+ look: r.look,
815
+ icon: t.icon,
816
+ x: t.x,
817
+ y: t.y,
818
+ level: t.level,
819
+ nodeId: t.nodeId,
820
+ type: t.type,
821
+ section: t.section
822
+ };
823
+ if (n.push(s), t.children) for (let e of t.children) this.flattenNodes(e, n);
824
+ }
825
+ generateEdges(e, t) {
826
+ if (!e.children) return;
827
+ let n = c();
828
+ for (let r of e.children) {
829
+ let i = "edge";
830
+ r.section !== void 0 && (i += ` section-edge-${r.section}`);
831
+ let a = e.level + 1;
832
+ i += ` edge-depth-${a}`;
833
+ let o = {
834
+ id: `edge_${e.id}_${r.id}`,
835
+ start: e.id.toString(),
836
+ end: r.id.toString(),
837
+ type: "normal",
838
+ curve: "basis",
839
+ thickness: "normal",
840
+ look: n.look,
841
+ classes: i,
842
+ depth: e.level,
843
+ section: r.section
844
+ };
845
+ t.push(o), this.generateEdges(r, t);
846
+ }
847
+ }
848
+ getData() {
849
+ let e = this.getMindmap(), n = c(), r = a().layout !== void 0, i = n;
850
+ if (r || (i.layout = "cose-bilkent"), !e) return {
851
+ nodes: [],
852
+ edges: [],
853
+ config: i
854
+ };
855
+ t.debug("getData: mindmapRoot", e, n), this.assignSections(e);
856
+ let o = [], s = [];
857
+ this.flattenNodes(e, o), this.generateEdges(e, s), t.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);
858
+ let l = /* @__PURE__ */ new Map();
859
+ for (let e of o) l.set(e.id, {
860
+ shape: e.shape,
861
+ width: e.width,
862
+ height: e.height,
863
+ padding: e.padding
864
+ });
865
+ return {
866
+ nodes: o,
867
+ edges: s,
868
+ config: i,
869
+ rootNode: e,
870
+ markers: ["point"],
871
+ direction: "TB",
872
+ nodeSpacing: 50,
873
+ rankSpacing: 50,
874
+ shapes: Object.fromEntries(l),
875
+ type: "mindmap",
876
+ diagramId: "mindmap-" + v()
877
+ };
878
+ }
879
+ getLogger() {
880
+ return t;
881
+ }
882
+ }, T = { draw: /* @__PURE__ */ e(async (e, r, a, o) => {
883
+ t.debug("Rendering mindmap diagram\n" + e);
884
+ let s = o.db, c = s.getData(), l = u(r, c.config.securityLevel);
885
+ if (c.type = o.type, c.layoutAlgorithm = p(c.config.layout, { fallback: "cose-bilkent" }), c.diagramId = r, !s.getMindmap()) return;
886
+ c.nodes.forEach((e) => {
887
+ e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
888
+ }), await f(c, l);
889
+ let { themeVariables: m } = n(), { useGradient: h, gradientStart: g, gradientStop: _ } = m;
890
+ if (h && g && _) {
891
+ let e = l.attr("id"), t = l.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
892
+ t.append("stop").attr("offset", "0%").attr("stop-color", g).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", _).attr("stop-opacity", 1);
893
+ }
894
+ d(l, c.config.mindmap?.padding ?? i.mindmap.padding, "mindmapDiagram", c.config.mindmap?.useMaxWidth ?? i.mindmap.useMaxWidth);
895
+ }, "draw") }, E = /* @__PURE__ */ e((e) => {
896
+ let { theme: t, look: n } = e, i = "";
897
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], o(e["lineColor" + t]) ? e["lineColor" + t] = s(e["lineColor" + t], 20) : e["lineColor" + t] = r(e["lineColor" + t], 20);
898
+ for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
899
+ let a = "" + (n === "neo" ? Math.max(10 - (r - 1) * 2, 2) : 17 - 3 * r);
900
+ i += `
901
+ .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
902
+ fill: ${e["cScale" + r]};
903
+ }
904
+ .section-${r - 1} text {
905
+ fill: ${e["cScaleLabel" + r]};
906
+ }
907
+ .section-${r - 1} span {
908
+ color: ${e["cScaleLabel" + r]};
909
+ }
910
+ .node-icon-${r - 1} {
911
+ font-size: 40px;
912
+ color: ${e["cScaleLabel" + r]};
913
+ }
914
+ .section-edge-${r - 1}{
915
+ stroke: ${e["cScale" + r]};
916
+ }
917
+ .edge-depth-${r - 1}{
918
+ stroke-width: ${a};
919
+ }
920
+ .section-${r - 1} line {
921
+ stroke: ${e["cScaleInv" + r]} ;
922
+ stroke-width: 3;
923
+ }
924
+
925
+ .disabled, .disabled circle, .disabled text {
926
+ fill: lightgray;
927
+ }
928
+ .disabled text {
929
+ fill: #efefef;
930
+ }
931
+ [data-look="neo"].mindmap-node.section-${r - 1} rect, [data-look="neo"].mindmap-node.section-${r - 1} path, [data-look="neo"].mindmap-node.section-${r - 1} circle, [data-look="neo"].mindmap-node.section-${r - 1} polygon {
932
+ fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + r]};
933
+ stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + r]};
934
+ stroke-width: ${e.strokeWidth ?? 2}px;
935
+ }
936
+ [data-look="neo"].section-edge-${r - 1}{
937
+ stroke: ${t?.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + r]};
938
+ }
939
+ [data-look="neo"].mindmap-node.section-${r - 1} text {
940
+ fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : r)]};
941
+ }
942
+ `;
943
+ }
944
+ return i;
945
+ }, "genSections"), D = /* @__PURE__ */ e((e, t, n) => {
946
+ let r = "";
947
+ for (let i = 0; i < e; i++) r += `
948
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
949
+ stroke: url(${t}-gradient);
950
+ fill: ${n};
951
+ }
952
+ .section-${i - 1} line {
953
+ stroke-width: 0;
954
+ }`;
955
+ return r;
956
+ }, "genGradient"), O = {
957
+ get db() {
958
+ return new w();
959
+ },
960
+ renderer: T,
961
+ parser: x,
962
+ styles: /* @__PURE__ */ e((e) => {
963
+ let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
964
+ return `
965
+ .edge {
966
+ stroke-width: 3;
967
+ }
968
+ ${E(e)}
969
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
970
+ fill: ${e.git0};
971
+ }
972
+ .section-root text {
973
+ fill: ${e.gitBranchLabel0};
974
+ }
975
+ .section-root span {
976
+ color: ${t?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
977
+ }
978
+ .icon-container {
979
+ height:100%;
980
+ display: flex;
981
+ justify-content: center;
982
+ align-items: center;
983
+ }
984
+ .edge {
985
+ fill: none;
986
+ }
987
+ .mindmap-node-label {
988
+ dy: 1em;
989
+ alignment-baseline: middle;
990
+ text-anchor: middle;
991
+ dominant-baseline: middle;
992
+ text-align: center;
993
+ }
994
+ [data-look="neo"].mindmap-node {
995
+ filter: ${r};
996
+ }
997
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
998
+ fill: ${t?.includes("redux") ? e.mainBkg : e.git0};
999
+ }
1000
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1001
+ fill: ${t?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
1002
+ }
1003
+ ${e.useGradient && n && e.mainBkg ? D(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1004
+ `;
1005
+ }, "getStyles")
1006
+ };
1007
+ //#endregion
1008
+ export { O as diagram };