@diagrammo/dgmo 0.52.0 → 0.54.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 (339) hide show
  1. package/.cursorrules +59 -58
  2. package/.github/copilot-instructions.md +59 -58
  3. package/.windsurfrules +59 -58
  4. package/SKILL.md +59 -58
  5. package/dist/advanced.d.ts +101 -230
  6. package/dist/advanced.js +330 -658
  7. package/dist/analyzer-TDN5KJFP.js +15 -0
  8. package/dist/auto.css +14 -6
  9. package/dist/auto.js +163 -139
  10. package/dist/auto.mjs +1859 -885
  11. package/dist/block.css +14 -6
  12. package/dist/block.js +96 -81
  13. package/dist/calculator-VBIT6GQF.js +11 -0
  14. package/dist/chart-meta-CPNVUZ5J.d.ts +232 -0
  15. package/dist/chart-meta.d.ts +2 -0
  16. package/dist/chart-meta.js +108 -0
  17. package/dist/charts-d3-25E4VWXO.js +27 -0
  18. package/dist/chunk-2CW5ZTNH.js +58 -0
  19. package/dist/{chunk-BPY242XU.js → chunk-2NYXI35Z.js} +32 -14
  20. package/dist/{chunk-AUIM2NVH.js → chunk-2NZOHEP4.js} +7 -8
  21. package/dist/{chunk-HFMYN6N2.js → chunk-3B2GXZCX.js} +4 -3
  22. package/dist/chunk-3FRO35WW.js +1158 -0
  23. package/dist/{chunk-J7TLCB2Q.js → chunk-3IUHKMJI.js} +2 -2
  24. package/dist/{chunk-R3YSD62R.js → chunk-3KHJJP3J.js} +3 -3
  25. package/dist/{chunk-6LBQ7ELG.js → chunk-3SBHODJ4.js} +36 -17
  26. package/dist/{chunk-4UNQ6X24.js → chunk-3SEEP2JM.js} +4 -4
  27. package/dist/{chunk-7L4UJOY6.js → chunk-3TYUXC7D.js} +2 -2
  28. package/dist/{chunk-Y2ZE3MSG.js → chunk-43E26CDA.js} +2 -2
  29. package/dist/{chunk-CCNDLW7Z.js → chunk-47JNEKJA.js} +9 -9
  30. package/dist/{chunk-WCT3NYCV.js → chunk-4ASYQ347.js} +33 -8
  31. package/dist/{chunk-I5IGB56C.js → chunk-4QV26TEG.js} +41 -1
  32. package/dist/{chunk-INE5YJBZ.js → chunk-4T6OCSJ2.js} +8 -8
  33. package/dist/{chunk-CXK4DZH3.js → chunk-4W2PE66Q.js} +12 -2
  34. package/dist/{chunk-7KINELPI.js → chunk-4ZIKWVSQ.js} +17 -16
  35. package/dist/{chunk-JED6ZDEE.js → chunk-5HWPEYWB.js} +2 -2
  36. package/dist/{chunk-HWX6ZHF3.js → chunk-5VXU6MND.js} +6 -6
  37. package/dist/{chunk-44VCIPHF.js → chunk-5XSNLXU5.js} +23 -20
  38. package/dist/{chunk-4AQRFDXL.js → chunk-62Y27T4C.js} +2 -2
  39. package/dist/{chunk-QHXCAEMX.js → chunk-6KL7TFLS.js} +5 -5
  40. package/dist/{chunk-5BHJZH62.js → chunk-6OYDOQ2Q.js} +18 -6
  41. package/dist/{chunk-5HILBT7X.js → chunk-7JDTNFAK.js} +3 -3
  42. package/dist/{chunk-JRCOYRRH.js → chunk-7K6NDSXH.js} +9 -9
  43. package/dist/{chunk-5NGAO4QK.js → chunk-7SP4C6EV.js} +11 -11
  44. package/dist/{chunk-I46X5VUA.js → chunk-7TF3QOOD.js} +25 -1
  45. package/dist/{chunk-WRNFDFPU.js → chunk-7U4OR7CD.js} +2 -2
  46. package/dist/{chunk-5RP7JRVP.js → chunk-7UPFTBOW.js} +21 -17
  47. package/dist/{chunk-AAXZDUOV.js → chunk-A3BDLDYG.js} +17 -16
  48. package/dist/{chunk-GCYTI3DE.js → chunk-ADCHLNWT.js} +56 -10
  49. package/dist/{chunk-QBZYACOG.js → chunk-ADYKAKE3.js} +3 -3
  50. package/dist/{chunk-HHKO6SKY.js → chunk-AHTTKERF.js} +3 -3
  51. package/dist/{chunk-BKVOYV6I.js → chunk-AJFHNS67.js} +15 -15
  52. package/dist/{chunk-EMLPOL77.js → chunk-AQEYUVGJ.js} +124 -41
  53. package/dist/{chunk-3LK5DNED.js → chunk-B4XS2AF2.js} +3 -3
  54. package/dist/{chunk-REJAIQ5S.js → chunk-B7N5KYXQ.js} +16 -16
  55. package/dist/chunk-BEOAKGNA.js +484 -0
  56. package/dist/{chunk-SMRFPVLQ.js → chunk-BM7MG6HT.js} +4 -4
  57. package/dist/{chunk-P3NRSSUU.js → chunk-BULHGPHK.js} +3 -3
  58. package/dist/{chunk-QZX5S6R3.js → chunk-BWYFIVZF.js} +149 -89
  59. package/dist/{chunk-UBLHQTLV.js → chunk-BZJIITYM.js} +11 -10
  60. package/dist/{chunk-PRI2OD4E.js → chunk-C2UORMIA.js} +11 -6
  61. package/dist/{chunk-3YRPZ7ZZ.js → chunk-CCGWX6AO.js} +4 -4
  62. package/dist/{chunk-H7KENAZO.js → chunk-COJW2NEY.js} +73 -13
  63. package/dist/{chunk-WBRZJOEC.js → chunk-COVYNAKJ.js} +6 -6
  64. package/dist/{chunk-7QE3XMRK.js → chunk-CSHFU6LT.js} +13 -13
  65. package/dist/{chunk-6EJITS44.js → chunk-DLU643TF.js} +7 -7
  66. package/dist/{chunk-LBMS4AW6.js → chunk-DPGQ5UMO.js} +14 -14
  67. package/dist/{chunk-LTXOLDUZ.js → chunk-EAI6XJ7D.js} +12 -5
  68. package/dist/{chunk-FT3ZYWET.js → chunk-EPRF3ZRV.js} +11 -10
  69. package/dist/chunk-EQOMY4PY.js +404 -0
  70. package/dist/{chunk-USZW2HHU.js → chunk-EQW6HOP4.js} +4 -3
  71. package/dist/{chunk-HBPDFCQY.js → chunk-F7XM366V.js} +10 -9
  72. package/dist/{chunk-DYWQFQJP.js → chunk-FFVFZLRT.js} +57 -24
  73. package/dist/{chunk-77FGAVZC.js → chunk-FR6UFVSV.js} +19 -17
  74. package/dist/{chunk-MUE65OTD.js → chunk-FVMKCZHF.js} +8 -6
  75. package/dist/{chunk-3QD7VP3U.js → chunk-GK32ZFZY.js} +17 -10
  76. package/dist/{chunk-TJVLKNGR.js → chunk-GKYHWJXI.js} +5 -5
  77. package/dist/{chunk-FQMUHRVC.js → chunk-GQ5ECRP4.js} +13 -10
  78. package/dist/{chunk-5QKQSSPO.js → chunk-GRM2A4BG.js} +4 -4
  79. package/dist/{chunk-OTOHI4JO.js → chunk-H3HFC3SQ.js} +2 -2
  80. package/dist/{chunk-BPIZNB5O.js → chunk-HAA25PLC.js} +10 -10
  81. package/dist/{chunk-YIBAWQGJ.js → chunk-HFEOOQ46.js} +4 -4
  82. package/dist/{chunk-J76PIKAT.js → chunk-HO3RCNF6.js} +3 -3
  83. package/dist/{chunk-7DF4J4RL.js → chunk-I47VHSPS.js} +19 -13
  84. package/dist/{chunk-5SEVICBT.js → chunk-ICKXIMBA.js} +10 -9
  85. package/dist/{chunk-A44USUV7.js → chunk-ICZ7M6IZ.js} +23 -17
  86. package/dist/{chunk-SWSIKFEB.js → chunk-IOIMQHQ6.js} +4 -4
  87. package/dist/{chunk-6HQH6JZE.js → chunk-IYNKLCAZ.js} +7 -7
  88. package/dist/{chunk-YAA6IID3.js → chunk-J7HQPVYH.js} +2 -2
  89. package/dist/{chunk-WBM7ZNDI.js → chunk-JYDMBWRP.js} +35 -18
  90. package/dist/{chunk-ZJV7GYR4.js → chunk-KBVOVDYP.js} +8 -8
  91. package/dist/{chunk-ICPJPQ5C.js → chunk-KDK5EKUR.js} +3 -3
  92. package/dist/{chunk-FHGVORFO.js → chunk-KINOX74I.js} +12 -12
  93. package/dist/{chunk-XD6ZYURY.js → chunk-KQ3FNRGR.js} +7 -14
  94. package/dist/{chunk-3HGU63UY.js → chunk-KQYQECWQ.js} +17 -16
  95. package/dist/{chunk-MUVJ57EP.js → chunk-KS5ZSM5T.js} +20 -17
  96. package/dist/{chunk-FY5MSZAP.js → chunk-KV4HLIJE.js} +21 -6
  97. package/dist/{chunk-LGT3PZCJ.js → chunk-LPJ6H5X4.js} +17 -17
  98. package/dist/{chunk-ONU3U4GL.js → chunk-LRSW4JLE.js} +52 -16
  99. package/dist/{chunk-TPFKKXCB.js → chunk-M24VXUFG.js} +7 -7
  100. package/dist/{chunk-QJMKPUYK.js → chunk-M3H7ZE6C.js} +21 -14
  101. package/dist/{chunk-QVENJMNX.js → chunk-MEQYZZFR.js} +2 -2
  102. package/dist/{chunk-75G3Q4DK.js → chunk-MTZOXISJ.js} +9 -9
  103. package/dist/{chunk-J7KJR3R6.js → chunk-N7BSBAVP.js} +133 -696
  104. package/dist/{chunk-VQOCMUWI.js → chunk-NUTWTV6G.js} +13 -11
  105. package/dist/{chunk-7BIZCTAX.js → chunk-O576GYAP.js} +3 -3
  106. package/dist/{chunk-H6PI3KJT.js → chunk-ODUT5WMC.js} +2 -2
  107. package/dist/{chunk-AL672HNE.js → chunk-OJ435DQZ.js} +17 -7
  108. package/dist/{chunk-3HF5YEFJ.js → chunk-OR3R27CU.js} +4 -4
  109. package/dist/{chunk-QGATPIPX.js → chunk-OSXQKC3S.js} +35 -23
  110. package/dist/{chunk-FUPF2UYQ.js → chunk-PIXZTCKH.js} +51 -108
  111. package/dist/{chunk-QOOUC2J5.js → chunk-Q5IHQ4NW.js} +12 -2
  112. package/dist/{chunk-4IHAV6O7.js → chunk-QBYP2FBZ.js} +10 -478
  113. package/dist/{chunk-GU46PPT3.js → chunk-QXGACPS2.js} +5 -5
  114. package/dist/{chunk-FMDSF3OV.js → chunk-QZAW5SFH.js} +2 -2
  115. package/dist/{chunk-YTMTPUH4.js → chunk-R5BGGBFF.js} +4 -4
  116. package/dist/{chunk-KGVZ5VGH.js → chunk-RIEAN4D5.js} +16 -12
  117. package/dist/{chunk-5223KXFD.js → chunk-RJ5LBZ5U.js} +7 -7
  118. package/dist/{chunk-K4EOKJA6.js → chunk-RRGKMJYL.js} +45 -18
  119. package/dist/{chunk-TTIM6YTT.js → chunk-S7FOIURR.js} +14 -13
  120. package/dist/{chunk-IM6PDDCE.js → chunk-S7YFT3PO.js} +78 -23
  121. package/dist/{chunk-ZEF5M5MB.js → chunk-SBOAZ7YK.js} +82 -296
  122. package/dist/{chunk-6NYWYNBI.js → chunk-SSHS42QG.js} +6 -6
  123. package/dist/{chunk-NNS4E7CW.js → chunk-T3FAJAJT.js} +18 -9
  124. package/dist/{chunk-ROOE4R4Y.js → chunk-T7Y554OK.js} +146 -18
  125. package/dist/chunk-TGOMHUOV.js +218 -0
  126. package/dist/{chunk-K2I2XOZD.js → chunk-TJN2OIVG.js} +30 -15
  127. package/dist/{chunk-VILVLS7P.js → chunk-TLNVYWPA.js} +8 -4
  128. package/dist/{chunk-GJFAMOGK.js → chunk-U4IN6AHE.js} +7 -7
  129. package/dist/chunk-U7VO6JAA.js +566 -0
  130. package/dist/{chunk-MX2EY5Y7.js → chunk-UEU6IYKY.js} +2 -2
  131. package/dist/{chunk-J6QROYDA.js → chunk-UIT7E6UF.js} +26 -10
  132. package/dist/{chunk-Z72XRXD4.js → chunk-UJRTPOHH.js} +3 -3
  133. package/dist/{chunk-TYS6CSS5.js → chunk-UU6LUYUH.js} +2 -2
  134. package/dist/{chunk-VL2O2F3W.js → chunk-VHO3YBTB.js} +2 -2
  135. package/dist/{chunk-4YFKQ5WT.js → chunk-VMSBMIHW.js} +5 -5
  136. package/dist/{chunk-Z5QVYKR7.js → chunk-VQFDBNYF.js} +4 -4
  137. package/dist/{chunk-UNURMIQO.js → chunk-W6PCFRPL.js} +4 -4
  138. package/dist/{chunk-FFUN5D66.js → chunk-WF64MW5G.js} +2 -2
  139. package/dist/{chunk-T4A4TSTJ.js → chunk-WKNAJ4BR.js} +20 -18
  140. package/dist/{chunk-CIRFIL4M.js → chunk-WW4BQ744.js} +11 -11
  141. package/dist/{chunk-ARGMQ3H4.js → chunk-WWHECSYZ.js} +3 -3
  142. package/dist/{chunk-ZNWAYU6N.js → chunk-XWODFBHJ.js} +73 -18
  143. package/dist/{chunk-HQQNCY7W.js → chunk-YENNFS5F.js} +10 -10
  144. package/dist/{chunk-TLVIHFRO.js → chunk-ZKPPI6BF.js} +2 -2
  145. package/dist/cli.cjs +173 -157
  146. package/dist/clock.js +9 -1
  147. package/dist/completion-registry.d.ts +129 -0
  148. package/dist/completion-registry.js +1270 -0
  149. package/dist/{compute-G55RG53N.js → compute-JAP5E2E4.js} +2 -2
  150. package/dist/countdown.js +4 -3
  151. package/dist/dgmo-router-TGZWFIZO.js +88 -0
  152. package/dist/dimensions-L6BXQXXL.js +22 -0
  153. package/dist/editor.js +51 -5
  154. package/dist/element.js +163 -139
  155. package/dist/element.mjs +1859 -885
  156. package/dist/flowchart-parser-UKYOW3VM.js +21 -0
  157. package/dist/{flowchart-renderer-MNCDS7MV.js → flowchart-renderer-DCFKUDDR.js} +16 -16
  158. package/dist/highlight.js +55 -6
  159. package/dist/index.d.ts +4 -2
  160. package/dist/index.js +89 -81
  161. package/dist/layout-25Y3VDYF.js +19 -0
  162. package/dist/layout-4SPLI4HG.js +15 -0
  163. package/dist/layout-5XGYNYVT.js +9 -0
  164. package/dist/{layout-OAC4PEAC.js → layout-A6OIGZN2.js} +7 -7
  165. package/dist/layout-AZUPXWSK.js +15 -0
  166. package/dist/{layout-F4WO357A.js → layout-CAAKQX4W.js} +3 -3
  167. package/dist/{layout-A5UHRWVH.js → layout-CB3XWCOI.js} +3 -3
  168. package/dist/layout-CH4HFFRD.js +15 -0
  169. package/dist/layout-G2ABQJQZ.js +20 -0
  170. package/dist/{layout-7QXCNOVS.js → layout-HBWT2G23.js} +3 -3
  171. package/dist/{layout-2L3WMRYU.js → layout-ITLPDG6M.js} +9 -8
  172. package/dist/layout-NF4EWFLT.js +17 -0
  173. package/dist/layout-NY7MHJCL.js +15 -0
  174. package/dist/layout-QBNAMEOA.js +19 -0
  175. package/dist/layout-SP7HJWKA.js +17 -0
  176. package/dist/{layout-search-55FU6HD3.js → layout-search-LUI475P3.js} +56 -35
  177. package/dist/legend-constants-B77VKB3R.js +54 -0
  178. package/dist/{palettes-UDLZ2SA4.js → palettes-FGTNFARW.js} +4 -4
  179. package/dist/parser-2UWWNTFL.js +12 -0
  180. package/dist/parser-3RXYQSA7.js +18 -0
  181. package/dist/parser-5C3PEZK3.js +11 -0
  182. package/dist/parser-66RYGJRB.js +20 -0
  183. package/dist/parser-6GN5YJBJ.js +13 -0
  184. package/dist/parser-6MQM7WT3.js +15 -0
  185. package/dist/{parser-DQAFLUJB.js → parser-7UI6UQ7B.js} +7 -7
  186. package/dist/parser-B2A7XOAK.js +12 -0
  187. package/dist/parser-CCNJKDDA.js +16 -0
  188. package/dist/parser-ESHNUFME.js +13 -0
  189. package/dist/parser-F4FEU57T.js +11 -0
  190. package/dist/parser-FHRMFUNX.js +15 -0
  191. package/dist/parser-FPCWDYQV.js +13 -0
  192. package/dist/parser-FY3YFFBS.js +20 -0
  193. package/dist/parser-GML6V2KZ.js +14 -0
  194. package/dist/parser-HA3PF5FL.js +15 -0
  195. package/dist/parser-KTYF6WO5.js +11 -0
  196. package/dist/{parser-ZL5QUFVH.js → parser-LTA2BOZO.js} +5 -5
  197. package/dist/parser-LU7UAKNB.js +13 -0
  198. package/dist/parser-MHKYQPC2.js +11 -0
  199. package/dist/parser-MVSYFK63.js +17 -0
  200. package/dist/parser-O7YQYFEN.js +15 -0
  201. package/dist/parser-OPIXXUY4.js +21 -0
  202. package/dist/parser-S4EJPNVN.js +19 -0
  203. package/dist/parser-T3D7BV6O.js +11 -0
  204. package/dist/{parser-YKYMQG3B.js → parser-VVE4THG3.js} +6 -6
  205. package/dist/parser-WPPJGB4R.js +12 -0
  206. package/dist/parser-X5XLFY4Z.js +22 -0
  207. package/dist/parser-XCPMEB2Z.js +11 -0
  208. package/dist/parser-XRDUX2AR.js +14 -0
  209. package/dist/parser-YPWYT46P.js +16 -0
  210. package/dist/parser-YULS5MLD.js +13 -0
  211. package/dist/pert.d.ts +2 -0
  212. package/dist/registry-CaSw0PSH.d.ts +350 -0
  213. package/dist/renderer-2DME63VZ.js +16 -0
  214. package/dist/renderer-3VY3VXJE.js +37 -0
  215. package/dist/renderer-4A32DX5L.js +24 -0
  216. package/dist/renderer-4K5YYX5R.js +28 -0
  217. package/dist/renderer-6CFML5G3.js +22 -0
  218. package/dist/renderer-7HMZ5OCJ.js +16 -0
  219. package/dist/renderer-7ZNVOVFG.js +16 -0
  220. package/dist/{renderer-CQY6ATOS.js → renderer-B7Y6I7JX.js} +9 -8
  221. package/dist/renderer-C3RI4OPJ.js +33 -0
  222. package/dist/renderer-CJ56SUMF.js +26 -0
  223. package/dist/renderer-COJZZ4F6.js +25 -0
  224. package/dist/renderer-FXMGCSRP.js +26 -0
  225. package/dist/{renderer-HSHHVYWF.js → renderer-G4UOW3RH.js} +7 -7
  226. package/dist/renderer-HQ4JFZOV.js +27 -0
  227. package/dist/{renderer-NHO46CT2.js → renderer-K7XLVPH5.js} +6 -6
  228. package/dist/{renderer-ZWIH4WDW.js → renderer-LHVCKEWF.js} +13 -13
  229. package/dist/renderer-OZX5KGQM.js +21 -0
  230. package/dist/{renderer-3F7OS2AX.js → renderer-P3YQES7B.js} +16 -16
  231. package/dist/renderer-PLVIARM7.js +24 -0
  232. package/dist/renderer-RA4PTAMF.js +19 -0
  233. package/dist/renderer-RMAM2SOJ.js +28 -0
  234. package/dist/renderer-SES7QZYL.js +37 -0
  235. package/dist/renderer-TQ5QDZOE.js +22 -0
  236. package/dist/renderer-V5SNTPAM.js +27 -0
  237. package/dist/{renderer-5DAKMIU2.js → renderer-WCWI4I6A.js} +5 -5
  238. package/dist/renderer-WVD6G2TS.js +34 -0
  239. package/dist/{renderer-DT4XRFEP.js → renderer-X2LYSMLU.js} +7 -7
  240. package/dist/renderer-Y3NXZINM.js +24 -0
  241. package/dist/{renderer-KNFTTOBL.js → renderer-YEFOOULC.js} +14 -14
  242. package/dist/renderer-YP3P6UVT.js +24 -0
  243. package/dist/renderer-YVMETH6V.js +29 -0
  244. package/dist/renderer-Z4GNKNXO.js +24 -0
  245. package/dist/renderer-radial-VYBZAXXE.js +21 -0
  246. package/dist/{resolver-EMTGNR3D.js → resolver-WFKZYBJ2.js} +4 -4
  247. package/dist/state-parser-VIW2WNA5.js +19 -0
  248. package/dist/state-renderer-H22AQD3U.js +38 -0
  249. package/dist/{themes-32xj5ZTW.d.ts → themes-tbBkIVsn.d.ts} +2 -349
  250. package/docs/ai-integration.md +59 -58
  251. package/docs/language-reference.md +323 -286
  252. package/fonts/Inter-Bold.woff2 +0 -0
  253. package/fonts/Inter-Regular.woff2 +0 -0
  254. package/gallery/fixtures/boxes-and-lines-diverging.dgmo +1 -2
  255. package/gallery/fixtures/boxes-and-lines.dgmo +1 -1
  256. package/gallery/fixtures/clock.dgmo +1 -1
  257. package/gallery/fixtures/event-line.dgmo +1 -1
  258. package/gallery/fixtures/gantt-full.dgmo +1 -1
  259. package/gallery/fixtures/gantt-sprints.dgmo +9 -9
  260. package/gallery/fixtures/gantt.dgmo +1 -1
  261. package/gallery/fixtures/legacy-syntax-backcompat.dgmo +16 -0
  262. package/gallery/fixtures/state-tags.dgmo +40 -0
  263. package/gallery/fixtures/swimlane.dgmo +1 -1
  264. package/gallery/fixtures/timeline-intraday.dgmo +1 -1
  265. package/package.json +9 -1
  266. package/dist/analyzer-BJ54GIFB.js +0 -15
  267. package/dist/calculator-LDYQCDDY.js +0 -11
  268. package/dist/charts-d3-MXEP6BNP.js +0 -26
  269. package/dist/chunk-BRENJ2BQ.js +0 -714
  270. package/dist/chunk-FQ7HTV52.js +0 -364
  271. package/dist/dgmo-router-X7ZGAPIE.js +0 -86
  272. package/dist/dimensions-45H6JQEY.js +0 -22
  273. package/dist/flowchart-parser-UKELHBSB.js +0 -21
  274. package/dist/layout-46N4JJYK.js +0 -17
  275. package/dist/layout-A4XWNVID.js +0 -14
  276. package/dist/layout-AM2JWW3X.js +0 -15
  277. package/dist/layout-EE6GE46Y.js +0 -17
  278. package/dist/layout-G23F7LDH.js +0 -9
  279. package/dist/layout-GM4UGR7B.js +0 -19
  280. package/dist/layout-GQQJXNYH.js +0 -15
  281. package/dist/layout-IIE2S5FK.js +0 -20
  282. package/dist/layout-VMCRX66I.js +0 -14
  283. package/dist/layout-ZDOSXL5G.js +0 -19
  284. package/dist/parser-2ECN6JA2.js +0 -16
  285. package/dist/parser-4WTIHM5J.js +0 -11
  286. package/dist/parser-5H2BTSJQ.js +0 -11
  287. package/dist/parser-75KVXUNS.js +0 -16
  288. package/dist/parser-774AC53T.js +0 -13
  289. package/dist/parser-BE4YCSRU.js +0 -11
  290. package/dist/parser-CNGUQUQI.js +0 -11
  291. package/dist/parser-DEUUSQIN.js +0 -22
  292. package/dist/parser-EYCKNKQA.js +0 -21
  293. package/dist/parser-FXISIU6A.js +0 -14
  294. package/dist/parser-GTB4XC7P.js +0 -18
  295. package/dist/parser-GVEPAUSD.js +0 -12
  296. package/dist/parser-HSQGTY4G.js +0 -19
  297. package/dist/parser-HVKRINUS.js +0 -11
  298. package/dist/parser-J5MIEYO4.js +0 -15
  299. package/dist/parser-KMZIXLDZ.js +0 -13
  300. package/dist/parser-LJHXWSXU.js +0 -14
  301. package/dist/parser-PT3W72G5.js +0 -15
  302. package/dist/parser-SBJQDPHL.js +0 -15
  303. package/dist/parser-SUWWWCMX.js +0 -12
  304. package/dist/parser-SXDRNZOA.js +0 -13
  305. package/dist/parser-UMILOW3M.js +0 -14
  306. package/dist/parser-UP3AZ367.js +0 -13
  307. package/dist/parser-WHPRV3X5.js +0 -20
  308. package/dist/parser-WX3UODSJ.js +0 -12
  309. package/dist/parser-XCIEN3KN.js +0 -13
  310. package/dist/parser-XIRTUMVN.js +0 -18
  311. package/dist/parser-YKCGIG45.js +0 -11
  312. package/dist/parser-ZGM2OJ6Y.js +0 -22
  313. package/dist/renderer-4QB4K7Q3.js +0 -24
  314. package/dist/renderer-5H4SY7YY.js +0 -22
  315. package/dist/renderer-5PIQPFOX.js +0 -16
  316. package/dist/renderer-6MU37QF5.js +0 -19
  317. package/dist/renderer-AQVMWJ4M.js +0 -27
  318. package/dist/renderer-BDDW6K7N.js +0 -24
  319. package/dist/renderer-BNB3VIDY.js +0 -26
  320. package/dist/renderer-CVW75CXL.js +0 -37
  321. package/dist/renderer-ERHBSTQT.js +0 -25
  322. package/dist/renderer-IDPVUFNB.js +0 -28
  323. package/dist/renderer-ILX6BGKR.js +0 -21
  324. package/dist/renderer-JP663HKG.js +0 -22
  325. package/dist/renderer-MVUZBESR.js +0 -16
  326. package/dist/renderer-N4EBR2FV.js +0 -28
  327. package/dist/renderer-NO2QJ5LZ.js +0 -27
  328. package/dist/renderer-OGFV5RXX.js +0 -34
  329. package/dist/renderer-PDLESJMS.js +0 -37
  330. package/dist/renderer-T4MTNINC.js +0 -24
  331. package/dist/renderer-TOUGFGTM.js +0 -24
  332. package/dist/renderer-U3KPD43Y.js +0 -34
  333. package/dist/renderer-X334IJU2.js +0 -26
  334. package/dist/renderer-Y5OAMOCR.js +0 -23
  335. package/dist/renderer-YONAKAJU.js +0 -16
  336. package/dist/renderer-YWMI6Y2U.js +0 -29
  337. package/dist/renderer-radial-7CGZMVMS.js +0 -21
  338. package/dist/state-parser-BATWAID2.js +0 -18
  339. package/dist/state-renderer-3FKZJ3LP.js +0 -34
package/dist/advanced.js CHANGED
@@ -1,20 +1,35 @@
1
+ import {
2
+ layoutTreemap,
3
+ renderTreemap,
4
+ renderTreemapForExport
5
+ } from "./chunk-3SBHODJ4.js";
6
+ import {
7
+ authoredCollapsedIds,
8
+ layoutBlock,
9
+ renderBlock,
10
+ renderBlockForExport
11
+ } from "./chunk-HAA25PLC.js";
12
+ import {
13
+ renderGoal,
14
+ renderGoalForExport
15
+ } from "./chunk-OR3R27CU.js";
1
16
  import {
2
17
  renderCountdown,
3
18
  renderCountdownForExport
4
- } from "./chunk-FUPF2UYQ.js";
19
+ } from "./chunk-PIXZTCKH.js";
5
20
  import {
6
21
  renderClock,
7
22
  renderClockForExport
8
- } from "./chunk-5223KXFD.js";
23
+ } from "./chunk-RJ5LBZ5U.js";
9
24
  import {
10
25
  layoutBracket,
11
26
  renderBracket,
12
27
  renderBracketForExport
13
- } from "./chunk-CCNDLW7Z.js";
28
+ } from "./chunk-47JNEKJA.js";
14
29
  import {
15
30
  renderRaci,
16
31
  renderRaciForExport
17
- } from "./chunk-FQMUHRVC.js";
32
+ } from "./chunk-GQ5ECRP4.js";
18
33
  import {
19
34
  applyCollapseProjection,
20
35
  applyGroupOrdering,
@@ -24,47 +39,70 @@ import {
24
39
  computeActivations,
25
40
  groupMessagesBySection,
26
41
  renderSequenceDiagram
27
- } from "./chunk-VQOCMUWI.js";
42
+ } from "./chunk-NUTWTV6G.js";
43
+ import {
44
+ computeCycleLayout,
45
+ renderCycle,
46
+ renderCycleForExport
47
+ } from "./chunk-4T6OCSJ2.js";
48
+ import {
49
+ resolveMap
50
+ } from "./chunk-BULHGPHK.js";
51
+ import {
52
+ renderMap,
53
+ renderMapForExport
54
+ } from "./chunk-AJFHNS67.js";
55
+ import "./chunk-B4XS2AF2.js";
28
56
  import {
29
57
  mapContentAspect,
30
58
  mapExportDimensions
31
- } from "./chunk-4AQRFDXL.js";
59
+ } from "./chunk-62Y27T4C.js";
60
+ import {
61
+ albersSkewFallback,
62
+ layoutMap,
63
+ mapBackgroundColor,
64
+ mapNeutralLandColor
65
+ } from "./chunk-KBVOVDYP.js";
66
+ import {
67
+ decodeFeatures,
68
+ regionAt
69
+ } from "./chunk-4QV26TEG.js";
32
70
  import {
33
71
  loadMapData
34
72
  } from "./chunk-6MTWIQVO.js";
35
73
  import {
36
74
  renderPyramid,
37
75
  renderPyramidForExport
38
- } from "./chunk-4YFKQ5WT.js";
76
+ } from "./chunk-VMSBMIHW.js";
39
77
  import {
40
78
  renderRing,
41
79
  renderRingForExport
42
- } from "./chunk-QHXCAEMX.js";
80
+ } from "./chunk-6KL7TFLS.js";
43
81
  import {
44
82
  layoutTreemapRadial,
45
83
  renderTreemapRadial,
46
84
  renderTreemapRadialForExport
47
- } from "./chunk-5SEVICBT.js";
85
+ } from "./chunk-ICKXIMBA.js";
86
+ import "./chunk-6OYDOQ2Q.js";
48
87
  import {
49
- layoutTreemap,
50
- renderTreemap,
51
- renderTreemapForExport
52
- } from "./chunk-6LBQ7ELG.js";
88
+ measurePertAnalysisBlock,
89
+ renderPert,
90
+ renderPertAnalysisBlock,
91
+ renderPertForExport
92
+ } from "./chunk-LPJ6H5X4.js";
53
93
  import {
54
- authoredCollapsedIds,
55
- layoutBlock,
56
- renderBlock,
57
- renderBlockForExport
58
- } from "./chunk-BPIZNB5O.js";
94
+ calculateSchedule,
95
+ collectTasks,
96
+ resolveTaskName
97
+ } from "./chunk-UJRTPOHH.js";
59
98
  import {
60
- renderGoal,
61
- renderGoalForExport
62
- } from "./chunk-3HF5YEFJ.js";
63
- import "./chunk-5BHJZH62.js";
99
+ buildTagLaneRowList,
100
+ renderGantt
101
+ } from "./chunk-KINOX74I.js";
64
102
  import {
65
103
  renderState,
66
104
  renderStateForExport
67
- } from "./chunk-H7KENAZO.js";
105
+ } from "./chunk-COJW2NEY.js";
68
106
  import {
69
107
  collapseStateGroups
70
108
  } from "./chunk-SQ7IY53Q.js";
@@ -75,56 +113,44 @@ import {
75
113
  renderQuadrantFocusForExport,
76
114
  renderTechRadar,
77
115
  renderTechRadarForExport
78
- } from "./chunk-UBLHQTLV.js";
116
+ } from "./chunk-BZJIITYM.js";
79
117
  import {
80
118
  renderJourneyMap,
81
119
  renderJourneyMapForExport
82
- } from "./chunk-CIRFIL4M.js";
120
+ } from "./chunk-WW4BQ744.js";
83
121
  import {
84
122
  layoutJourneyMap
85
- } from "./chunk-YIBAWQGJ.js";
86
- import {
87
- computeCycleLayout,
88
- renderCycle,
89
- renderCycleForExport
90
- } from "./chunk-INE5YJBZ.js";
123
+ } from "./chunk-HFEOOQ46.js";
91
124
  import {
92
- resolveMap
93
- } from "./chunk-P3NRSSUU.js";
94
- import {
95
- renderMap,
96
- renderMapForExport
97
- } from "./chunk-BKVOYV6I.js";
98
- import "./chunk-3LK5DNED.js";
125
+ renderC4ComponentsForExport,
126
+ renderC4Containers,
127
+ renderC4ContainersForExport,
128
+ renderC4Context,
129
+ renderC4ContextForExport,
130
+ renderC4Deployment,
131
+ renderC4DeploymentForExport
132
+ } from "./chunk-DPGQ5UMO.js";
99
133
  import {
100
- albersSkewFallback,
101
- layoutMap,
102
- mapBackgroundColor,
103
- mapNeutralLandColor
104
- } from "./chunk-ZJV7GYR4.js";
134
+ renderFlowchart,
135
+ renderFlowchartForExport
136
+ } from "./chunk-ADCHLNWT.js";
137
+ import "./chunk-PDKUANDZ.js";
105
138
  import {
106
- decodeFeatures,
107
- regionAt
108
- } from "./chunk-I5IGB56C.js";
139
+ layoutGraph
140
+ } from "./chunk-3B2GXZCX.js";
109
141
  import {
110
142
  collectDiagramRoles,
111
143
  computeInfraLegendGroups,
112
144
  inferRoles,
113
145
  parseAndLayoutInfra,
114
146
  renderInfra
115
- } from "./chunk-MUVJ57EP.js";
147
+ } from "./chunk-KS5ZSM5T.js";
116
148
  import {
117
149
  computeInfra
118
- } from "./chunk-A44USUV7.js";
150
+ } from "./chunk-ICZ7M6IZ.js";
119
151
  import {
120
152
  layoutInfra
121
- } from "./chunk-Y2ZE3MSG.js";
122
- import {
123
- measurePertAnalysisBlock,
124
- renderPert,
125
- renderPertAnalysisBlock,
126
- renderPertForExport
127
- } from "./chunk-LGT3PZCJ.js";
153
+ } from "./chunk-43E26CDA.js";
128
154
  import {
129
155
  analyzePert,
130
156
  buildSimulationContext,
@@ -132,170 +158,144 @@ import {
132
158
  sampleBetaPert,
133
159
  simulateCanonical,
134
160
  simulateFast
135
- } from "./chunk-J76PIKAT.js";
161
+ } from "./chunk-HO3RCNF6.js";
136
162
  import {
137
163
  layoutPert,
138
164
  relayoutPert
139
- } from "./chunk-GU46PPT3.js";
165
+ } from "./chunk-QXGACPS2.js";
140
166
  import {
141
- calculateSchedule,
142
- collectTasks,
143
- resolveTaskName
144
- } from "./chunk-Z72XRXD4.js";
167
+ layoutFamily
168
+ } from "./chunk-GRM2A4BG.js";
145
169
  import {
146
- buildTagLaneRowList,
147
- renderGantt
148
- } from "./chunk-FHGVORFO.js";
170
+ renderFamily,
171
+ renderFamilyForExport
172
+ } from "./chunk-RIEAN4D5.js";
173
+ import "./chunk-IVKC4GID.js";
149
174
  import {
150
175
  collapseMindmapTree
151
176
  } from "./chunk-UZ7EZW3B.js";
152
177
  import {
153
178
  renderMindmap,
154
179
  renderMindmapForExport
155
- } from "./chunk-3HGU63UY.js";
180
+ } from "./chunk-KQYQECWQ.js";
181
+ import {
182
+ layoutMindmap
183
+ } from "./chunk-5VXU6MND.js";
156
184
  import {
157
185
  layoutWireframe
158
- } from "./chunk-H6PI3KJT.js";
186
+ } from "./chunk-ODUT5WMC.js";
159
187
  import {
160
188
  renderWireframe
161
- } from "./chunk-YTMTPUH4.js";
162
- import {
163
- renderC4ComponentsForExport,
164
- renderC4Containers,
165
- renderC4ContainersForExport,
166
- renderC4Context,
167
- renderC4ContextForExport,
168
- renderC4Deployment,
169
- renderC4DeploymentForExport
170
- } from "./chunk-LBMS4AW6.js";
189
+ } from "./chunk-R5BGGBFF.js";
171
190
  import {
172
191
  layoutC4Components,
173
192
  layoutC4Containers,
174
193
  layoutC4Context,
175
194
  layoutC4Deployment,
176
195
  rollUpContextRelationships
177
- } from "./chunk-ONU3U4GL.js";
196
+ } from "./chunk-LRSW4JLE.js";
178
197
  import {
179
- renderFlowchart,
180
- renderFlowchartForExport
181
- } from "./chunk-GCYTI3DE.js";
182
- import "./chunk-PDKUANDZ.js";
198
+ renderERDiagram,
199
+ renderERDiagramForExport
200
+ } from "./chunk-FR6UFVSV.js";
183
201
  import {
184
- layoutGraph
185
- } from "./chunk-HFMYN6N2.js";
202
+ SKETCH_FOOT_H,
203
+ SKETCH_FOOT_W,
204
+ SKETCH_GEOMETRY,
205
+ SKETCH_HALF_SLOT_X,
206
+ SKETCH_HALF_SLOT_Y,
207
+ SKETCH_SEP,
208
+ SKETCH_SLOT_X,
209
+ SKETCH_SLOT_Y,
210
+ collapseSketch,
211
+ layoutSketch,
212
+ sketchSlotToPx
213
+ } from "./chunk-MEQYZZFR.js";
214
+ import {
215
+ renderSketch,
216
+ renderSketchForExport,
217
+ sketchEdgeGeometry
218
+ } from "./chunk-IYNKLCAZ.js";
186
219
  import {
187
220
  renderBoxesAndLines,
188
221
  renderBoxesAndLinesForExport
189
- } from "./chunk-T4A4TSTJ.js";
222
+ } from "./chunk-WKNAJ4BR.js";
190
223
  import {
191
224
  layoutSwimlane
192
- } from "./chunk-MX2EY5Y7.js";
193
- import "./chunk-WRNFDFPU.js";
225
+ } from "./chunk-UEU6IYKY.js";
226
+ import "./chunk-7U4OR7CD.js";
194
227
  import {
195
228
  layoutBoxesAndLines
196
- } from "./chunk-7DF4J4RL.js";
229
+ } from "./chunk-I47VHSPS.js";
197
230
  import {
198
231
  renderSwimlaneForExport
199
- } from "./chunk-TJVLKNGR.js";
232
+ } from "./chunk-GKYHWJXI.js";
200
233
  import "./chunk-LP7EC4MI.js";
201
234
  import {
202
- layoutFamily
203
- } from "./chunk-5QKQSSPO.js";
235
+ renderOrg,
236
+ renderOrgForExport
237
+ } from "./chunk-CSHFU6LT.js";
204
238
  import {
205
- renderFamily,
206
- renderFamilyForExport
207
- } from "./chunk-KGVZ5VGH.js";
208
- import "./chunk-IVKC4GID.js";
239
+ layoutSitemap
240
+ } from "./chunk-IOIMQHQ6.js";
209
241
  import {
210
- layoutMindmap
211
- } from "./chunk-HWX6ZHF3.js";
242
+ collapseSitemapTree
243
+ } from "./chunk-UNCCZ3NU.js";
212
244
  import {
213
245
  renderSitemap,
214
246
  renderSitemapForExport
215
- } from "./chunk-44VCIPHF.js";
247
+ } from "./chunk-5XSNLXU5.js";
216
248
  import {
217
249
  computeCardArchive,
218
250
  computeCardMove,
219
251
  isArchiveColumn,
220
252
  renderKanban,
221
253
  renderKanbanForExport
222
- } from "./chunk-TTIM6YTT.js";
254
+ } from "./chunk-S7FOIURR.js";
223
255
  import {
224
256
  renderClassDiagram,
225
257
  renderClassDiagramForExport
226
- } from "./chunk-AAXZDUOV.js";
258
+ } from "./chunk-A3BDLDYG.js";
259
+ import "./chunk-3IUHKMJI.js";
260
+ import "./chunk-JTSMEYIZ.js";
227
261
  import {
228
262
  layoutClassDiagram
229
- } from "./chunk-WBRZJOEC.js";
230
- import {
231
- renderERDiagram,
232
- renderERDiagramForExport
233
- } from "./chunk-77FGAVZC.js";
234
- import "./chunk-J7TLCB2Q.js";
263
+ } from "./chunk-COVYNAKJ.js";
235
264
  import {
236
265
  layoutERDiagram
237
- } from "./chunk-6NYWYNBI.js";
238
- import "./chunk-JED6ZDEE.js";
266
+ } from "./chunk-SSHS42QG.js";
267
+ import "./chunk-5HWPEYWB.js";
239
268
  import "./chunk-6EK55ART.js";
240
- import "./chunk-TYS6CSS5.js";
269
+ import "./chunk-UU6LUYUH.js";
241
270
  import "./chunk-5DH3KYFH.js";
242
- import {
243
- SKETCH_FOOT_H,
244
- SKETCH_FOOT_W,
245
- SKETCH_GEOMETRY,
246
- SKETCH_HALF_SLOT_X,
247
- SKETCH_HALF_SLOT_Y,
248
- SKETCH_SEP,
249
- SKETCH_SLOT_X,
250
- SKETCH_SLOT_Y,
251
- collapseSketch,
252
- layoutSketch,
253
- sketchSlotToPx
254
- } from "./chunk-QVENJMNX.js";
255
- import {
256
- renderSketch,
257
- renderSketchForExport,
258
- sketchEdgeGeometry
259
- } from "./chunk-6HQH6JZE.js";
260
271
  import {
261
272
  clearEventLineMuted,
262
273
  focusEventLine,
263
274
  renderEventLine,
264
275
  renderEventLineForExport
265
- } from "./chunk-K2I2XOZD.js";
276
+ } from "./chunk-TJN2OIVG.js";
277
+ import "./chunk-H3HFC3SQ.js";
266
278
  import {
267
279
  parseInlineMarkdown,
268
280
  truncateBareUrl
269
281
  } from "./chunk-3HDBAXF5.js";
282
+ import "./chunk-3CIOJ5YJ.js";
270
283
  import "./chunk-BMR4CIEO.js";
271
284
  import {
272
285
  renderBody,
273
286
  renderBodyForExport
274
- } from "./chunk-JRCOYRRH.js";
287
+ } from "./chunk-7K6NDSXH.js";
275
288
  import {
276
289
  renderVersionControl,
277
290
  renderVersionControlForExport
278
- } from "./chunk-5HILBT7X.js";
291
+ } from "./chunk-7JDTNFAK.js";
292
+ import {
293
+ layoutOrg
294
+ } from "./chunk-BWYFIVZF.js";
279
295
  import {
280
296
  collapseOrgTree,
281
297
  focusOrgTree
282
298
  } from "./chunk-UJ4FJLBF.js";
283
- import {
284
- renderOrg,
285
- renderOrgForExport
286
- } from "./chunk-7QE3XMRK.js";
287
- import "./chunk-JTSMEYIZ.js";
288
- import "./chunk-OTOHI4JO.js";
289
- import "./chunk-3CIOJ5YJ.js";
290
- import {
291
- layoutOrg
292
- } from "./chunk-QZX5S6R3.js";
293
- import {
294
- layoutSitemap
295
- } from "./chunk-SWSIKFEB.js";
296
- import {
297
- collapseSitemapTree
298
- } from "./chunk-UNCCZ3NU.js";
299
299
  import "./chunk-BS7SV7C3.js";
300
300
  import {
301
301
  completeMapPlaces,
@@ -305,10 +305,6 @@ import {
305
305
  } from "./chunk-SQAG3UXH.js";
306
306
  import "./chunk-4B5YISOR.js";
307
307
  import {
308
- decodeDiagramUrl,
309
- decodeViewState,
310
- encodeDiagramUrl,
311
- encodeViewState,
312
308
  orderArcNodes,
313
309
  render,
314
310
  renderArcDiagram,
@@ -317,24 +313,46 @@ import {
317
313
  renderSlopeChart,
318
314
  renderVenn,
319
315
  renderWordCloud
320
- } from "./chunk-J7KJR3R6.js";
316
+ } from "./chunk-N7BSBAVP.js";
317
+ import {
318
+ renderLegendSvg,
319
+ renderLegendSvgFromConfig
320
+ } from "./chunk-FFVFZLRT.js";
321
+ import "./chunk-VHO3YBTB.js";
321
322
  import {
322
323
  formatDateLabel,
323
324
  renderTimeline
324
- } from "./chunk-7KINELPI.js";
325
+ } from "./chunk-4ZIKWVSQ.js";
325
326
  import {
326
327
  computeTimeTicks
327
328
  } from "./chunk-YRYKTYMQ.js";
328
329
  import {
329
330
  ScaleContext
330
331
  } from "./chunk-YYVTBZZC.js";
332
+ import "./chunk-ADYKAKE3.js";
331
333
  import {
332
334
  renderLegendD3
333
- } from "./chunk-AUIM2NVH.js";
335
+ } from "./chunk-2NZOHEP4.js";
336
+ import {
337
+ computeLegendLayout,
338
+ controlsGroupCapsuleWidth,
339
+ getLegendReservedHeight
340
+ } from "./chunk-J7HQPVYH.js";
341
+ import "./chunk-A4GOY3PE.js";
342
+ import "./chunk-6KFWC4CO.js";
343
+ import {
344
+ normalizePertSourceForShare,
345
+ resolveOrgImports
346
+ } from "./chunk-EQOMY4PY.js";
347
+ import {
348
+ decodeDiagramUrl,
349
+ decodeViewState,
350
+ encodeDiagramUrl,
351
+ encodeViewState
352
+ } from "./chunk-U7VO6JAA.js";
334
353
  import {
335
354
  CHART_TYPE_DESCRIPTIONS,
336
355
  chartTypeParsers,
337
- chartTypes,
338
356
  getAllChartTypes,
339
357
  getRenderCategory,
340
358
  isExtendedChartType,
@@ -342,14 +360,36 @@ import {
342
360
  parseDgmo,
343
361
  parseDgmoChartType,
344
362
  parseVisualization
345
- } from "./chunk-ZEF5M5MB.js";
363
+ } from "./chunk-SBOAZ7YK.js";
364
+ import {
365
+ parseBody
366
+ } from "./chunk-VQFDBNYF.js";
367
+ import {
368
+ getExtendedChartLegendGroups,
369
+ getSimpleChartLegendGroups,
370
+ parseChart,
371
+ parseDataRowValues,
372
+ parseExtendedChart
373
+ } from "./chunk-AQEYUVGJ.js";
374
+ import "./chunk-2CW5ZTNH.js";
375
+ import "./chunk-BDXC7MDK.js";
376
+ import {
377
+ parseRing
378
+ } from "./chunk-W6PCFRPL.js";
379
+ import {
380
+ parseTreemap
381
+ } from "./chunk-XWODFBHJ.js";
382
+ import {
383
+ parseBlock
384
+ } from "./chunk-3SEEP2JM.js";
385
+ import "./chunk-NR5HCAUD.js";
346
386
  import {
347
387
  parseGoal
348
- } from "./chunk-MUE65OTD.js";
388
+ } from "./chunk-FVMKCZHF.js";
349
389
  import {
350
390
  parseCountdown,
351
391
  targetToMs as targetToMs2
352
- } from "./chunk-FT3ZYWET.js";
392
+ } from "./chunk-EPRF3ZRV.js";
353
393
  import {
354
394
  applyOrdinalTemplate,
355
395
  dayDelta,
@@ -370,7 +410,7 @@ import {
370
410
  parseClock,
371
411
  resolvePlace,
372
412
  searchZones
373
- } from "./chunk-FY5MSZAP.js";
413
+ } from "./chunk-KV4HLIJE.js";
374
414
  import {
375
415
  fixedParts,
376
416
  formatOffsetLabel,
@@ -384,139 +424,120 @@ import {
384
424
  } from "./chunk-APKUAJ2L.js";
385
425
  import {
386
426
  parseBracket
387
- } from "./chunk-PRI2OD4E.js";
427
+ } from "./chunk-C2UORMIA.js";
388
428
  import {
389
- RACI_ERROR_CODES,
390
- RACI_WARNING_CODES,
391
- VARIANTS,
392
429
  allTasks,
393
430
  parseRaci
394
- } from "./chunk-4IHAV6O7.js";
395
- import {
396
- parseBody
397
- } from "./chunk-Z5QVYKR7.js";
398
- import "./chunk-BDXC7MDK.js";
399
- import {
400
- renderLegendSvg,
401
- renderLegendSvgFromConfig
402
- } from "./chunk-DYWQFQJP.js";
403
- import "./chunk-VL2O2F3W.js";
404
- import "./chunk-QBZYACOG.js";
405
- import {
406
- computeLegendLayout,
407
- controlsGroupCapsuleWidth,
408
- getLegendReservedHeight
409
- } from "./chunk-YAA6IID3.js";
410
- import "./chunk-A4GOY3PE.js";
411
- import "./chunk-6KFWC4CO.js";
431
+ } from "./chunk-QBYP2FBZ.js";
412
432
  import {
413
- LEGEND_GEAR_PILL_W,
414
- LEGEND_HEIGHT
415
- } from "./chunk-QOOUC2J5.js";
416
- import "./chunk-WCT3NYCV.js";
433
+ parseSwimlane
434
+ } from "./chunk-EAI6XJ7D.js";
417
435
  import {
418
- getExtendedChartLegendGroups,
419
- getSimpleChartLegendGroups,
420
- parseChart,
421
- parseDataRowValues,
422
- parseExtendedChart
423
- } from "./chunk-EMLPOL77.js";
436
+ parseFamily
437
+ } from "./chunk-MTZOXISJ.js";
438
+ import "./chunk-QQJUTGQH.js";
424
439
  import {
425
- parseWireframe
426
- } from "./chunk-SMRFPVLQ.js";
440
+ parseMindmap
441
+ } from "./chunk-OJ435DQZ.js";
427
442
  import {
428
443
  parseTechRadar
429
- } from "./chunk-VILVLS7P.js";
444
+ } from "./chunk-TLNVYWPA.js";
430
445
  import {
431
446
  parseCycle
432
- } from "./chunk-7BIZCTAX.js";
447
+ } from "./chunk-O576GYAP.js";
433
448
  import {
434
449
  parseJourneyMap
435
- } from "./chunk-XD6ZYURY.js";
450
+ } from "./chunk-KQ3FNRGR.js";
436
451
  import {
437
452
  parsePyramid
438
- } from "./chunk-ICPJPQ5C.js";
453
+ } from "./chunk-KDK5EKUR.js";
439
454
  import {
440
- parseRing
441
- } from "./chunk-UNURMIQO.js";
455
+ parseVersionControl
456
+ } from "./chunk-CCGWX6AO.js";
442
457
  import {
443
- parseTreemap
444
- } from "./chunk-ZNWAYU6N.js";
458
+ parseKanban
459
+ } from "./chunk-GK32ZFZY.js";
445
460
  import {
446
- parseBlock
447
- } from "./chunk-4UNQ6X24.js";
448
- import "./chunk-NR5HCAUD.js";
461
+ parseC4
462
+ } from "./chunk-2NYXI35Z.js";
449
463
  import {
450
464
  INFRA_BEHAVIOR_KEYS,
451
465
  extractSymbols as extractSymbols4,
452
466
  parseInfra
453
- } from "./chunk-IM6PDDCE.js";
467
+ } from "./chunk-S7YFT3PO.js";
454
468
  import {
455
469
  parseGantt
456
- } from "./chunk-QGATPIPX.js";
470
+ } from "./chunk-OSXQKC3S.js";
457
471
  import {
458
472
  looksLikeMap,
459
473
  parseMap
460
- } from "./chunk-5NGAO4QK.js";
461
- import "./chunk-FQ7HTV52.js";
474
+ } from "./chunk-7SP4C6EV.js";
462
475
  import {
463
476
  parseBoxesAndLines
464
- } from "./chunk-5RP7JRVP.js";
477
+ } from "./chunk-7UPFTBOW.js";
465
478
  import {
466
479
  SKETCH_SHAPE_KINDS,
467
480
  isSketchShapeKind,
468
481
  parseSketch
469
- } from "./chunk-HQQNCY7W.js";
482
+ } from "./chunk-YENNFS5F.js";
470
483
  import "./chunk-RT7ACF77.js";
471
484
  import {
472
- parseSwimlane
473
- } from "./chunk-LTXOLDUZ.js";
485
+ extractSymbols,
486
+ looksLikeFlowchart,
487
+ parseFlowchart
488
+ } from "./chunk-DLU643TF.js";
489
+ import "./chunk-7TF3QOOD.js";
474
490
  import {
475
- parseFamily
476
- } from "./chunk-75G3Q4DK.js";
477
- import "./chunk-QQJUTGQH.js";
491
+ looksLikeState,
492
+ parseState
493
+ } from "./chunk-T7Y554OK.js";
494
+ import "./chunk-NXMESY4J.js";
478
495
  import {
479
- parseMindmap
480
- } from "./chunk-AL672HNE.js";
496
+ extractSymbols as extractSymbols2,
497
+ looksLikeClassDiagram,
498
+ parseClassDiagram
499
+ } from "./chunk-M24VXUFG.js";
481
500
  import {
482
501
  extractSymbols as extractSymbols3,
483
502
  looksLikeERDiagram,
484
503
  parseERDiagram
485
- } from "./chunk-REJAIQ5S.js";
504
+ } from "./chunk-B7N5KYXQ.js";
505
+ import "./chunk-WWHECSYZ.js";
506
+ import "./chunk-QZAW5SFH.js";
486
507
  import {
487
508
  parseOrg
488
- } from "./chunk-NNS4E7CW.js";
509
+ } from "./chunk-T3FAJAJT.js";
489
510
  import {
490
511
  looksLikeSitemap,
491
512
  parseSitemap
492
- } from "./chunk-HBPDFCQY.js";
513
+ } from "./chunk-F7XM366V.js";
514
+ import "./chunk-IYULMRBE.js";
493
515
  import {
494
516
  extractPertSymbols,
495
517
  looksLikePert,
496
518
  parsePert
497
- } from "./chunk-K4EOKJA6.js";
498
- import {
499
- formatLocalISODate
500
- } from "./chunk-7L4UJOY6.js";
501
- import "./chunk-USZW2HHU.js";
519
+ } from "./chunk-RRGKMJYL.js";
520
+ import "./chunk-3TYUXC7D.js";
521
+ import "./chunk-EQW6HOP4.js";
502
522
  import {
503
523
  parseEventLine
504
- } from "./chunk-J6QROYDA.js";
524
+ } from "./chunk-UIT7E6UF.js";
505
525
  import {
506
526
  addDurationToDate,
507
527
  parseTimelineDate
508
- } from "./chunk-R3YSD62R.js";
528
+ } from "./chunk-3KHJJP3J.js";
509
529
  import "./chunk-DAOFNU6J.js";
510
530
  import {
511
- parseVersionControl
512
- } from "./chunk-3YRPZ7ZZ.js";
531
+ chartTypes
532
+ } from "./chunk-TGOMHUOV.js";
513
533
  import {
514
- parseKanban
515
- } from "./chunk-3QD7VP3U.js";
534
+ RACI_ERROR_CODES,
535
+ RACI_WARNING_CODES,
536
+ VARIANTS
537
+ } from "./chunk-BEOAKGNA.js";
516
538
  import {
517
- parseC4
518
- } from "./chunk-BPY242XU.js";
519
- import "./chunk-IYULMRBE.js";
539
+ parseWireframe
540
+ } from "./chunk-BM7MG6HT.js";
520
541
  import {
521
542
  atlasPalette,
522
543
  blueprintPalette,
@@ -531,6 +552,11 @@ import {
531
552
  tidewaterPalette,
532
553
  tokyoNightPalette
533
554
  } from "./chunk-R3XI2VC7.js";
555
+ import {
556
+ LEGEND_GEAR_PILL_W,
557
+ LEGEND_HEIGHT
558
+ } from "./chunk-Q5IHQ4NW.js";
559
+ import "./chunk-4ASYQ347.js";
534
560
  import {
535
561
  contrastText,
536
562
  getSeriesColors,
@@ -541,56 +567,36 @@ import {
541
567
  shade,
542
568
  shapeFill,
543
569
  tint
544
- } from "./chunk-WBM7ZNDI.js";
570
+ } from "./chunk-JYDMBWRP.js";
545
571
  import {
546
572
  isSequenceBlock,
547
573
  isSequenceNote,
548
574
  looksLikeSequence,
549
575
  parseSequenceDgmo
550
- } from "./chunk-QJMKPUYK.js";
576
+ } from "./chunk-M3H7ZE6C.js";
551
577
  import {
552
578
  RULE_COUNT,
553
579
  inferParticipantType
554
580
  } from "./chunk-C3Z4DX3V.js";
555
- import {
556
- autoTagColorCycle,
557
- isTagBlockHeading,
558
- matchTagBlockHeading,
559
- tagAttrKey
560
- } from "./chunk-HHKO6SKY.js";
561
- import {
562
- extractSymbols,
563
- looksLikeFlowchart,
564
- parseFlowchart
565
- } from "./chunk-6EJITS44.js";
566
- import "./chunk-I46X5VUA.js";
567
- import {
568
- looksLikeState,
569
- parseState
570
- } from "./chunk-ROOE4R4Y.js";
571
- import "./chunk-NXMESY4J.js";
572
- import {
573
- extractSymbols as extractSymbols2,
574
- looksLikeClassDiagram,
575
- parseClassDiagram
576
- } from "./chunk-TPFKKXCB.js";
577
- import "./chunk-ARGMQ3H4.js";
578
- import "./chunk-FMDSF3OV.js";
579
581
  import {
580
582
  ARROW_DIAGNOSTIC_CODES,
581
583
  parseInArrowLabel,
582
584
  validateLabelCharacters
583
- } from "./chunk-FFUN5D66.js";
585
+ } from "./chunk-WF64MW5G.js";
584
586
  import {
585
587
  displayName,
586
588
  getOrCreateName,
587
589
  normalizeName
588
590
  } from "./chunk-NOTA6TEI.js";
591
+ import {
592
+ autoTagColorCycle,
593
+ tagAttrKey
594
+ } from "./chunk-AHTTKERF.js";
589
595
  import {
590
596
  ALL_CHART_TYPES,
591
597
  measureIndent,
592
598
  parseFirstLine
593
- } from "./chunk-BRENJ2BQ.js";
599
+ } from "./chunk-3FRO35WW.js";
594
600
  import {
595
601
  INVALID_COLOR_CODE,
596
602
  INVALID_CSS_COLOR_HEX,
@@ -604,11 +610,11 @@ import {
604
610
  resolveColor,
605
611
  resolveColorWithDiagnostic,
606
612
  seriesColors
607
- } from "./chunk-TLVIHFRO.js";
613
+ } from "./chunk-ZKPPI6BF.js";
608
614
  import {
609
615
  formatDgmoError,
610
616
  makeDgmoError
611
- } from "./chunk-CXK4DZH3.js";
617
+ } from "./chunk-4W2PE66Q.js";
612
618
  import "./chunk-5WRI5ZAA.js";
613
619
 
614
620
  // src/boxes-and-lines/collapse.ts
@@ -868,6 +874,7 @@ function validateSplits(parsed) {
868
874
  const diagnostics = [];
869
875
  const outbound = /* @__PURE__ */ new Map();
870
876
  for (const edge of parsed.edges) {
877
+ if (edge.async) continue;
871
878
  const list = outbound.get(edge.sourceId) ?? [];
872
879
  list.push(edge);
873
880
  outbound.set(edge.sourceId, list);
@@ -957,29 +964,6 @@ function validateComputed(computed) {
957
964
  return diagnostics;
958
965
  }
959
966
 
960
- // src/pert/share-normalize.ts
961
- var START_DATE_NOW_RE = /^(\s*start-date\s+)now(\s*)$/i;
962
- function splitTrailingComment(line) {
963
- const m = line.match(/^(.*?)(\s+#.*)$/);
964
- if (!m) return { code: line, comment: "" };
965
- return { code: m[1], comment: m[2] };
966
- }
967
- function normalizePertSourceForShare(dsl) {
968
- const today = formatLocalISODate(/* @__PURE__ */ new Date());
969
- const lines = dsl.split("\n");
970
- const out = [];
971
- for (const line of lines) {
972
- const { code, comment } = splitTrailingComment(line);
973
- const m = code.match(START_DATE_NOW_RE);
974
- if (m) {
975
- out.push(`${m[1]}${today}${m[2]}${comment}`);
976
- } else {
977
- out.push(line);
978
- }
979
- }
980
- return out.join("\n");
981
- }
982
-
983
967
  // src/countdown/ticker.ts
984
968
  function pad2(n) {
985
969
  return n < 10 ? "0" + n : String(n);
@@ -1120,9 +1104,10 @@ function updateNode(node, now) {
1120
1104
  });
1121
1105
  text = remaining < 0 ? `${clock} ago` : clock;
1122
1106
  } else if (expiredNow) {
1123
- if (units === "compound" || units === "human")
1124
- text = `${formatCompound(resolvedMs, now, 2, tz)} ago`;
1125
- else {
1107
+ if (units === "compound" || units === "human") {
1108
+ const [a, b] = hasTime ? [resolvedMs, now] : [dayStart(resolvedMs, tz), dayStart(now, tz)];
1109
+ text = `${formatCompound(a, b, 2, tz)} ago`;
1110
+ } else {
1126
1111
  const elapsed = -remaining;
1127
1112
  text = elapsed <= 0 ? "Now!" : `${formatCount(elapsed, { units, round, fields })} ago`;
1128
1113
  }
@@ -1343,15 +1328,66 @@ function haversineKm(lat1, lon1, lat2, lon2) {
1343
1328
  return 2 * EARTH_R_KM * Math.asin(Math.min(1, Math.sqrt(a)));
1344
1329
  }
1345
1330
  var POP_PULL_KM = 12;
1331
+ var BAND_DEG = 5;
1332
+ var BAND_COUNT = 180 / BAND_DEG;
1333
+ var KM_PER_DEG = EARTH_R_KM * DEG;
1334
+ var cityBandIndexCache = /* @__PURE__ */ new WeakMap();
1335
+ function bandOf(lat) {
1336
+ return Math.min(
1337
+ BAND_COUNT - 1,
1338
+ Math.max(0, Math.floor((lat + 90) / BAND_DEG))
1339
+ );
1340
+ }
1341
+ function cityBandIndex(gazetteer) {
1342
+ let idx = cityBandIndexCache.get(gazetteer);
1343
+ if (!idx) {
1344
+ const bands = Array.from({ length: BAND_COUNT }, () => []);
1345
+ let maxPop = 0;
1346
+ const cities = gazetteer.cities;
1347
+ for (let i = 0; i < cities.length; i++) {
1348
+ const c = cities[i];
1349
+ bands[bandOf(c[0])].push(i);
1350
+ const pop = c[3] || 0;
1351
+ if (pop > maxPop) maxPop = pop;
1352
+ }
1353
+ idx = { bands, maxPullKm: POP_PULL_KM * Math.log10(maxPop + 1) };
1354
+ cityBandIndexCache.set(gazetteer, idx);
1355
+ }
1356
+ return idx;
1357
+ }
1346
1358
  function nearestCity(lonLat, gazetteer) {
1347
1359
  const [lon, lat] = lonLat;
1348
- let best = null;
1349
1360
  const cities = gazetteer.cities;
1350
- for (let i = 0; i < cities.length; i++) {
1351
- const c2 = cities[i];
1352
- const dist = haversineKm(lat, lon, c2[0], c2[1]);
1353
- const score = dist - POP_PULL_KM * Math.log10((c2[3] || 0) + 1);
1354
- if (!best || score < best.score) best = { score, idx: i, dist };
1361
+ const { bands, maxPullKm } = cityBandIndex(gazetteer);
1362
+ const bandMinKm = (b) => {
1363
+ const south = b * BAND_DEG - 90;
1364
+ const north = south + BAND_DEG;
1365
+ const dDeg = lat < south ? south - lat : lat > north ? lat - north : 0;
1366
+ return dDeg * KM_PER_DEG;
1367
+ };
1368
+ const b0 = bandOf(lat);
1369
+ let best = null;
1370
+ for (let r = 0; r < BAND_COUNT; r++) {
1371
+ const lo = b0 - r;
1372
+ const hi = b0 + r;
1373
+ if (lo < 0 && hi >= BAND_COUNT) break;
1374
+ if (r > 0) {
1375
+ const minKm = Math.min(
1376
+ lo >= 0 ? bandMinKm(lo) : Infinity,
1377
+ hi < BAND_COUNT ? bandMinKm(hi) : Infinity
1378
+ );
1379
+ if (best && minKm - maxPullKm > best.score) break;
1380
+ }
1381
+ const scan = r === 0 ? [b0] : [lo, hi].filter((b) => b >= 0 && b < BAND_COUNT);
1382
+ for (const b of scan) {
1383
+ for (const i of bands[b]) {
1384
+ const c2 = cities[i];
1385
+ const dist = haversineKm(lat, lon, c2[0], c2[1]);
1386
+ const score = dist - POP_PULL_KM * Math.log10((c2[3] || 0) + 1);
1387
+ if (!best || score < best.score || score === best.score && i < best.idx)
1388
+ best = { score, idx: i, dist };
1389
+ }
1390
+ }
1355
1391
  }
1356
1392
  if (!best) return null;
1357
1393
  const c = cities[best.idx];
@@ -1579,370 +1615,6 @@ function insertionLineFor(task, roleId, parsed) {
1579
1615
  }
1580
1616
  return lastAssignmentLine;
1581
1617
  }
1582
-
1583
- // src/org/resolver.ts
1584
- var MAX_DEPTH = 10;
1585
- var IMPORT_RE = /^(\s+)import:?\s+(.+\.dgmo)\s*$/i;
1586
- var TAGS_RE = /^tags:?\s+(.+\.dgmo)\s*$/i;
1587
- var HEADER_RE = /^(org|kanban|title\s*:)/i;
1588
- var KNOWN_HEADER_OPTIONS = /* @__PURE__ */ new Set([
1589
- "direction-tb",
1590
- "sub-node-label",
1591
- "hide",
1592
- "show-sub-node-count",
1593
- "color-off",
1594
- "fill-tint",
1595
- "fill-solid",
1596
- "fill-outline",
1597
- "active-tag"
1598
- ]);
1599
- function dirname(filePath) {
1600
- const last = filePath.lastIndexOf("/");
1601
- return last > 0 ? filePath.substring(0, last) : "/";
1602
- }
1603
- function resolvePath(base, relative) {
1604
- const parts = dirname(base).split("/");
1605
- for (const seg of relative.split("/")) {
1606
- if (seg === "..") {
1607
- if (parts.length > 1) parts.pop();
1608
- } else if (seg !== "." && seg !== "") {
1609
- parts.push(seg);
1610
- }
1611
- }
1612
- return parts.join("/") || "/";
1613
- }
1614
- function extractTagGroups(lines) {
1615
- const blocks = [];
1616
- let current = null;
1617
- for (const line of lines) {
1618
- const trimmed = line.trim();
1619
- const headingMatch = matchTagBlockHeading(trimmed);
1620
- if (headingMatch) {
1621
- const name = headingMatch.name.toLowerCase();
1622
- current = { name, lines: [line] };
1623
- blocks.push(current);
1624
- } else if (current) {
1625
- if (trimmed === "" || trimmed.startsWith("//")) {
1626
- current = null;
1627
- } else if (line.match(/^\s+/)) {
1628
- current.lines.push(line);
1629
- } else {
1630
- current = null;
1631
- }
1632
- }
1633
- }
1634
- return blocks;
1635
- }
1636
- function parseFileHeader(lines) {
1637
- const tagGroups = extractTagGroups(lines);
1638
- const tagGroupLineSet = /* @__PURE__ */ new Set();
1639
- for (const group of tagGroups) {
1640
- for (let i = 0; i < lines.length; i++) {
1641
- if (lines[i] === group.lines[0]) {
1642
- for (let j = 0; j < group.lines.length; j++) {
1643
- tagGroupLineSet.add(i + j);
1644
- }
1645
- break;
1646
- }
1647
- }
1648
- }
1649
- let tagsDirective = null;
1650
- const contentLines = [];
1651
- const contentLineIndices = [];
1652
- let headerDone = false;
1653
- for (let i = 0; i < lines.length; i++) {
1654
- if (tagGroupLineSet.has(i)) continue;
1655
- const rawLine = lines[i];
1656
- const trimmed = rawLine.trim();
1657
- if (!headerDone && (trimmed === "" || trimmed.startsWith("//"))) continue;
1658
- if (!headerDone) {
1659
- if (HEADER_RE.test(trimmed)) continue;
1660
- const tagsMatch = trimmed.match(TAGS_RE);
1661
- if (tagsMatch) {
1662
- tagsDirective = tagsMatch[1].trim();
1663
- continue;
1664
- }
1665
- if (!rawLine.match(/^\s/) && !isTagBlockHeading(trimmed) && !trimmed.includes("|")) {
1666
- const firstToken = trimmed.split(/\s/)[0].toLowerCase();
1667
- if (KNOWN_HEADER_OPTIONS.has(firstToken)) {
1668
- continue;
1669
- }
1670
- }
1671
- headerDone = true;
1672
- }
1673
- contentLines.push(rawLine);
1674
- contentLineIndices.push(i);
1675
- }
1676
- return { contentLines, contentLineIndices, tagGroups, tagsDirective };
1677
- }
1678
- async function resolveOrgImports(content, filePath, readFileFn) {
1679
- const diagnostics = [];
1680
- const result = await resolveFile(
1681
- content,
1682
- filePath,
1683
- readFileFn,
1684
- diagnostics,
1685
- /* @__PURE__ */ new Set([filePath]),
1686
- 0
1687
- );
1688
- return {
1689
- content: result.content,
1690
- diagnostics,
1691
- lineMap: result.lineMap,
1692
- importSourceMap: result.importSourceMap
1693
- };
1694
- }
1695
- async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorChain, depth) {
1696
- const lines = content.split("\n");
1697
- const headerLines = [];
1698
- let tagsDirective = null;
1699
- const inlineTagGroups = extractTagGroups(lines);
1700
- const bodyStartIndex = findBodyStart(lines);
1701
- let tagsLineNumber = 0;
1702
- for (let i = 0; i < bodyStartIndex; i++) {
1703
- const rawLine = lines[i];
1704
- const trimmed = rawLine.trim();
1705
- if (trimmed === "" || trimmed.startsWith("//")) {
1706
- headerLines.push({ text: rawLine, originalLine: i + 1 });
1707
- continue;
1708
- }
1709
- if (isTagBlockHeading(trimmed)) continue;
1710
- if (/^\s/.test(rawLine)) continue;
1711
- const tagsMatch = trimmed.match(TAGS_RE);
1712
- if (tagsMatch) {
1713
- tagsDirective = tagsMatch[1].trim();
1714
- tagsLineNumber = i + 1;
1715
- continue;
1716
- }
1717
- headerLines.push({ text: rawLine, originalLine: i + 1 });
1718
- }
1719
- let tagsFileGroups = [];
1720
- if (tagsDirective) {
1721
- const tagsPath = resolvePath(filePath, tagsDirective);
1722
- try {
1723
- const tagsContent = await readFileFn(tagsPath);
1724
- const tagsLines = tagsContent.split("\n");
1725
- tagsFileGroups = extractTagGroups(tagsLines);
1726
- } catch {
1727
- diagnostics.push(
1728
- makeDgmoError(tagsLineNumber, `Tags file not found: ${tagsDirective}`)
1729
- );
1730
- }
1731
- }
1732
- const bodyLines = lines.slice(bodyStartIndex);
1733
- const resolvedBodyLines = [];
1734
- const importedTagGroups = [];
1735
- for (let i = 0; i < bodyLines.length; i++) {
1736
- const line = bodyLines[i];
1737
- const lineNumber = bodyStartIndex + i + 1;
1738
- const importMatch = line.match(IMPORT_RE);
1739
- if (!importMatch) {
1740
- const trimmed = line.trim();
1741
- if (isTagBlockHeading(trimmed) || inlineTagGroups.length > 0 && isTagGroupEntry(line, bodyLines, i)) {
1742
- continue;
1743
- }
1744
- resolvedBodyLines.push({
1745
- text: line,
1746
- originalLine: lineNumber,
1747
- importSource: null
1748
- });
1749
- continue;
1750
- }
1751
- const indent = importMatch[1];
1752
- const importRelPath = importMatch[2].trim();
1753
- const importAbsPath = resolvePath(filePath, importRelPath);
1754
- if (depth >= MAX_DEPTH) {
1755
- diagnostics.push(
1756
- makeDgmoError(
1757
- lineNumber,
1758
- `Import depth limit exceeded (${MAX_DEPTH}): ${importRelPath}`
1759
- )
1760
- );
1761
- continue;
1762
- }
1763
- if (ancestorChain.has(importAbsPath)) {
1764
- const chain = [...ancestorChain, importAbsPath].map((p) => p.split("/").pop()).join(" -> ");
1765
- diagnostics.push(
1766
- makeDgmoError(lineNumber, `Circular import detected: ${chain}`)
1767
- );
1768
- continue;
1769
- }
1770
- let importedContent;
1771
- try {
1772
- importedContent = await readFileFn(importAbsPath);
1773
- } catch {
1774
- diagnostics.push(
1775
- makeDgmoError(lineNumber, `Import file not found: ${importRelPath}`)
1776
- );
1777
- continue;
1778
- }
1779
- const nestedChain = new Set(ancestorChain);
1780
- nestedChain.add(importAbsPath);
1781
- const resolved = await resolveFile(
1782
- importedContent,
1783
- importAbsPath,
1784
- readFileFn,
1785
- diagnostics,
1786
- nestedChain,
1787
- depth + 1
1788
- );
1789
- const resolvedLines = resolved.content.split("\n");
1790
- const parsed = parseFileHeader(resolvedLines);
1791
- for (const group of parsed.tagGroups) {
1792
- importedTagGroups.push(group);
1793
- }
1794
- const importedContentLines = [];
1795
- for (let j = 0; j < parsed.contentLines.length; j++) {
1796
- const cText = parsed.contentLines[j];
1797
- const cIndex = parsed.contentLineIndices[j];
1798
- if (cText.trim() !== "") {
1799
- importedContentLines.push({
1800
- text: cText,
1801
- index: cIndex
1802
- });
1803
- }
1804
- }
1805
- let lastNonEmpty = importedContentLines.length - 1;
1806
- while (lastNonEmpty >= 0 && importedContentLines[lastNonEmpty].text.trim() === "") {
1807
- lastNonEmpty--;
1808
- }
1809
- const trimmedImported = importedContentLines.slice(0, lastNonEmpty + 1);
1810
- for (const entry of trimmedImported) {
1811
- const resolvedLineNum = entry.index + 1;
1812
- let importSource = null;
1813
- if (resolved.importSourceMap[resolvedLineNum]) {
1814
- importSource = resolved.importSourceMap[resolvedLineNum];
1815
- } else {
1816
- const origLine = resolved.lineMap[resolvedLineNum];
1817
- if (origLine != null) {
1818
- importSource = { filePath: importAbsPath, sourceLine: origLine };
1819
- }
1820
- }
1821
- if (entry.text.trim() === "") {
1822
- resolvedBodyLines.push({
1823
- text: "",
1824
- originalLine: lineNumber,
1825
- importSource
1826
- });
1827
- } else {
1828
- resolvedBodyLines.push({
1829
- text: indent + entry.text,
1830
- originalLine: lineNumber,
1831
- importSource
1832
- });
1833
- }
1834
- }
1835
- }
1836
- const mergedGroups = mergeTagGroups(
1837
- inlineTagGroups,
1838
- tagsFileGroups,
1839
- importedTagGroups
1840
- );
1841
- const outputLines = [];
1842
- const lineMap = [null];
1843
- const importSourceMap = [null];
1844
- for (const entry of headerLines) {
1845
- outputLines.push(entry.text);
1846
- lineMap.push(entry.originalLine);
1847
- importSourceMap.push(null);
1848
- }
1849
- if (mergedGroups.length > 0) {
1850
- if (outputLines.length > 0 && // In-bounds by length guard.
1851
- outputLines[outputLines.length - 1].trim() !== "") {
1852
- outputLines.push("");
1853
- lineMap.push(null);
1854
- importSourceMap.push(null);
1855
- }
1856
- for (const group of mergedGroups) {
1857
- const inlineMatch = inlineTagGroups.find((g) => g.name === group.name);
1858
- for (const line of group.lines) {
1859
- outputLines.push(line);
1860
- if (inlineMatch) {
1861
- const srcIdx = lines.indexOf(line);
1862
- lineMap.push(srcIdx >= 0 ? srcIdx + 1 : null);
1863
- } else {
1864
- lineMap.push(null);
1865
- }
1866
- importSourceMap.push(null);
1867
- }
1868
- outputLines.push("");
1869
- lineMap.push(null);
1870
- importSourceMap.push(null);
1871
- }
1872
- }
1873
- if (resolvedBodyLines.length > 0 && outputLines.length > 0 && // In-bounds by length guard.
1874
- outputLines[outputLines.length - 1].trim() !== "") {
1875
- outputLines.push("");
1876
- lineMap.push(null);
1877
- importSourceMap.push(null);
1878
- }
1879
- for (const entry of resolvedBodyLines) {
1880
- outputLines.push(entry.text);
1881
- lineMap.push(entry.originalLine);
1882
- importSourceMap.push(entry.importSource);
1883
- }
1884
- return { content: outputLines.join("\n"), lineMap, importSourceMap };
1885
- }
1886
- function findBodyStart(lines) {
1887
- let inTagGroup = false;
1888
- for (let i = 0; i < lines.length; i++) {
1889
- const rawLine = lines[i];
1890
- const trimmed = rawLine.trim();
1891
- if (trimmed === "" || trimmed.startsWith("//")) {
1892
- if (inTagGroup) inTagGroup = false;
1893
- continue;
1894
- }
1895
- if (isTagBlockHeading(trimmed)) {
1896
- inTagGroup = true;
1897
- continue;
1898
- }
1899
- if (inTagGroup && rawLine.match(/^\s+/)) {
1900
- continue;
1901
- }
1902
- if (inTagGroup) {
1903
- inTagGroup = false;
1904
- }
1905
- if (HEADER_RE.test(trimmed)) continue;
1906
- if (TAGS_RE.test(trimmed)) continue;
1907
- if (!rawLine.match(/^\s/) && !trimmed.includes("|") && !isTagBlockHeading(trimmed)) {
1908
- const firstToken = trimmed.split(/\s/)[0].toLowerCase();
1909
- if (KNOWN_HEADER_OPTIONS.has(firstToken)) {
1910
- continue;
1911
- }
1912
- }
1913
- return i;
1914
- }
1915
- return lines.length;
1916
- }
1917
- function isTagGroupEntry(line, allLines, index) {
1918
- if (!line.match(/^\s+/)) return false;
1919
- for (let i = index - 1; i >= 0; i--) {
1920
- const prevRaw = allLines[i];
1921
- const prev = prevRaw.trim();
1922
- if (prev === "" || prev.startsWith("//")) continue;
1923
- if (isTagBlockHeading(prev)) return true;
1924
- if (prevRaw.match(/^\s+/)) continue;
1925
- return false;
1926
- }
1927
- return false;
1928
- }
1929
- function mergeTagGroups(inline, tagsFile, imported) {
1930
- const seen = /* @__PURE__ */ new Map();
1931
- for (const group of inline) {
1932
- seen.set(group.name, group);
1933
- }
1934
- for (const group of tagsFile) {
1935
- if (!seen.has(group.name)) {
1936
- seen.set(group.name, group);
1937
- }
1938
- }
1939
- for (const group of imported) {
1940
- if (!seen.has(group.name)) {
1941
- seen.set(group.name, group);
1942
- }
1943
- }
1944
- return Array.from(seen.values());
1945
- }
1946
1618
  export {
1947
1619
  ALL_CHART_TYPES,
1948
1620
  ARROW_DIAGNOSTIC_CODES,