@diagrammo/dgmo 0.52.0 → 0.53.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 (329) 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 +65 -230
  6. package/dist/advanced.js +278 -611
  7. package/dist/analyzer-TDN5KJFP.js +15 -0
  8. package/dist/auto.css +14 -6
  9. package/dist/auto.js +142 -132
  10. package/dist/auto.mjs +1117 -452
  11. package/dist/block.css +14 -6
  12. package/dist/block.js +85 -72
  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 +105 -0
  17. package/dist/charts-d3-DH2XA45I.js +26 -0
  18. package/dist/{chunk-QJMKPUYK.js → chunk-22OQWBWD.js} +14 -7
  19. package/dist/{chunk-5NGAO4QK.js → chunk-27STWBOK.js} +10 -8
  20. package/dist/{chunk-QGATPIPX.js → chunk-2QC4HXCY.js} +31 -17
  21. package/dist/{chunk-HFMYN6N2.js → chunk-3B2GXZCX.js} +4 -3
  22. package/dist/{chunk-6HQH6JZE.js → chunk-3BEKKRH5.js} +10 -10
  23. package/dist/{chunk-AL672HNE.js → chunk-3CZLWOCI.js} +17 -7
  24. package/dist/{chunk-J7TLCB2Q.js → chunk-3IUHKMJI.js} +2 -2
  25. package/dist/{chunk-7L4UJOY6.js → chunk-3TYUXC7D.js} +2 -2
  26. package/dist/{chunk-Y2ZE3MSG.js → chunk-43E26CDA.js} +2 -2
  27. package/dist/{chunk-YTMTPUH4.js → chunk-4ASVFYB2.js} +6 -6
  28. package/dist/{chunk-WCT3NYCV.js → chunk-4ASYQ347.js} +33 -8
  29. package/dist/{chunk-ZNWAYU6N.js → chunk-4K42RUGC.js} +33 -9
  30. package/dist/{chunk-I5IGB56C.js → chunk-4QV26TEG.js} +41 -1
  31. package/dist/{chunk-QOOUC2J5.js → chunk-4RGZFA7H.js} +2 -2
  32. package/dist/{chunk-CXK4DZH3.js → chunk-4W2PE66Q.js} +12 -2
  33. package/dist/{chunk-CIRFIL4M.js → chunk-4WGMGKCZ.js} +13 -13
  34. package/dist/{chunk-JED6ZDEE.js → chunk-5HWPEYWB.js} +2 -2
  35. package/dist/{chunk-VQOCMUWI.js → chunk-65V6IRFN.js} +16 -14
  36. package/dist/{chunk-R3YSD62R.js → chunk-6AUZPPAV.js} +3 -3
  37. package/dist/{chunk-FQ7HTV52.js → chunk-6DCOIN4W.js} +33 -5
  38. package/dist/{chunk-MUE65OTD.js → chunk-6HTRCTAS.js} +4 -4
  39. package/dist/{chunk-TJVLKNGR.js → chunk-6KY7OCZC.js} +5 -5
  40. package/dist/{chunk-YAA6IID3.js → chunk-774C2FF3.js} +2 -2
  41. package/dist/{chunk-UBLHQTLV.js → chunk-7GUF6SDR.js} +15 -14
  42. package/dist/{chunk-5HILBT7X.js → chunk-7JDTNFAK.js} +3 -3
  43. package/dist/{chunk-QBZYACOG.js → chunk-ADYKAKE3.js} +3 -3
  44. package/dist/{chunk-H7KENAZO.js → chunk-AHXIMHDQ.js} +74 -14
  45. package/dist/chunk-AIMLCDAO.js +404 -0
  46. package/dist/{chunk-4IHAV6O7.js → chunk-ALYZ3MAA.js} +4 -4
  47. package/dist/{chunk-ROOE4R4Y.js → chunk-AN2DQB3G.js} +146 -18
  48. package/dist/{chunk-GCYTI3DE.js → chunk-AZNXGWDC.js} +56 -10
  49. package/dist/{chunk-3LK5DNED.js → chunk-B4XS2AF2.js} +3 -3
  50. package/dist/{chunk-3HF5YEFJ.js → chunk-BD3WGY4T.js} +4 -4
  51. package/dist/{chunk-4AQRFDXL.js → chunk-BFDVEO5R.js} +2 -2
  52. package/dist/{chunk-REJAIQ5S.js → chunk-BR7AYN76.js} +8 -8
  53. package/dist/{chunk-P3NRSSUU.js → chunk-BULHGPHK.js} +3 -3
  54. package/dist/{chunk-VILVLS7P.js → chunk-CK2GMDXD.js} +8 -4
  55. package/dist/{chunk-HHKO6SKY.js → chunk-CMVZWP32.js} +3 -3
  56. package/dist/{chunk-GJFAMOGK.js → chunk-CQFNIIQN.js} +7 -7
  57. package/dist/{chunk-FT3ZYWET.js → chunk-DWUMPMV2.js} +11 -10
  58. package/dist/{chunk-USZW2HHU.js → chunk-EQW6HOP4.js} +4 -3
  59. package/dist/{chunk-Z5QVYKR7.js → chunk-FFXCKZOU.js} +4 -4
  60. package/dist/{chunk-WRNFDFPU.js → chunk-FGDSTT3F.js} +2 -2
  61. package/dist/{chunk-FY5MSZAP.js → chunk-FLDC7ZAK.js} +21 -6
  62. package/dist/{chunk-AAXZDUOV.js → chunk-FT7TPPZ5.js} +17 -16
  63. package/dist/{chunk-3QD7VP3U.js → chunk-FUKNRLIJ.js} +14 -7
  64. package/dist/{chunk-3YRPZ7ZZ.js → chunk-FXCB7H5O.js} +4 -4
  65. package/dist/{chunk-SMRFPVLQ.js → chunk-GABSL6TH.js} +4 -4
  66. package/dist/{chunk-BKVOYV6I.js → chunk-GAWKIIPO.js} +17 -17
  67. package/dist/{chunk-HWX6ZHF3.js → chunk-GMAH572Z.js} +6 -6
  68. package/dist/{chunk-MUVJ57EP.js → chunk-GMIJ35PW.js} +23 -20
  69. package/dist/{chunk-7QE3XMRK.js → chunk-GQ644SPD.js} +18 -18
  70. package/dist/{chunk-5QKQSSPO.js → chunk-GRM2A4BG.js} +4 -4
  71. package/dist/{chunk-J7KJR3R6.js → chunk-GWQJKTFS.js} +133 -696
  72. package/dist/{chunk-OTOHI4JO.js → chunk-H3HFC3SQ.js} +2 -2
  73. package/dist/{chunk-SWSIKFEB.js → chunk-HE5J53SZ.js} +4 -4
  74. package/dist/{chunk-7BIZCTAX.js → chunk-HNBY6CNV.js} +3 -3
  75. package/dist/{chunk-J76PIKAT.js → chunk-HO3RCNF6.js} +3 -3
  76. package/dist/{chunk-44VCIPHF.js → chunk-HORZ5H2L.js} +26 -23
  77. package/dist/{chunk-MX2EY5Y7.js → chunk-HOXKNRON.js} +2 -2
  78. package/dist/{chunk-LTXOLDUZ.js → chunk-I64ECJX3.js} +12 -5
  79. package/dist/{chunk-4YFKQ5WT.js → chunk-IQJCVREL.js} +8 -8
  80. package/dist/{chunk-YIBAWQGJ.js → chunk-J7HI6G3G.js} +7 -7
  81. package/dist/{chunk-ICPJPQ5C.js → chunk-JHOAH4TI.js} +3 -3
  82. package/dist/{chunk-6EJITS44.js → chunk-JTMSWEIW.js} +6 -6
  83. package/dist/{chunk-WBM7ZNDI.js → chunk-JYDMBWRP.js} +35 -18
  84. package/dist/{chunk-7DF4J4RL.js → chunk-KKHCNSKK.js} +17 -11
  85. package/dist/{chunk-4UNQ6X24.js → chunk-KUSAVOWZ.js} +4 -4
  86. package/dist/{chunk-77FGAVZC.js → chunk-LC3FFD43.js} +21 -19
  87. package/dist/{chunk-INE5YJBZ.js → chunk-LHILKFDP.js} +10 -10
  88. package/dist/{chunk-ONU3U4GL.js → chunk-LQHVDZYC.js} +52 -16
  89. package/dist/{chunk-75G3Q4DK.js → chunk-MA3HJZHB.js} +5 -5
  90. package/dist/{chunk-QVENJMNX.js → chunk-MEQYZZFR.js} +2 -2
  91. package/dist/{chunk-IM6PDDCE.js → chunk-NNUMX6WX.js} +42 -12
  92. package/dist/{chunk-FQMUHRVC.js → chunk-NNYFQOTK.js} +14 -13
  93. package/dist/{chunk-H6PI3KJT.js → chunk-ODUT5WMC.js} +2 -2
  94. package/dist/{chunk-K4EOKJA6.js → chunk-P3H7QVDH.js} +42 -15
  95. package/dist/{chunk-FUPF2UYQ.js → chunk-PIXZTCKH.js} +51 -108
  96. package/dist/{chunk-BPY242XU.js → chunk-PKNNHU7H.js} +19 -8
  97. package/dist/{chunk-BPIZNB5O.js → chunk-PT4SW76W.js} +11 -11
  98. package/dist/{chunk-UNURMIQO.js → chunk-PV2QO7QL.js} +4 -4
  99. package/dist/{chunk-LGT3PZCJ.js → chunk-PYO4TJJ3.js} +17 -17
  100. package/dist/{chunk-EMLPOL77.js → chunk-Q7AH665U.js} +15 -8
  101. package/dist/{chunk-LBMS4AW6.js → chunk-QAALSCKI.js} +14 -14
  102. package/dist/{chunk-JRCOYRRH.js → chunk-QI3BOLQB.js} +8 -8
  103. package/dist/{chunk-CCNDLW7Z.js → chunk-QWIBT6DS.js} +13 -13
  104. package/dist/{chunk-GU46PPT3.js → chunk-QXGACPS2.js} +5 -5
  105. package/dist/{chunk-FMDSF3OV.js → chunk-QZAW5SFH.js} +2 -2
  106. package/dist/{chunk-QHXCAEMX.js → chunk-R5NH5BZG.js} +8 -8
  107. package/dist/{chunk-5223KXFD.js → chunk-RJ5LBZ5U.js} +7 -7
  108. package/dist/{chunk-PRI2OD4E.js → chunk-RW5PEJ7D.js} +11 -6
  109. package/dist/{chunk-DYWQFQJP.js → chunk-SG4PRYO3.js} +22 -20
  110. package/dist/{chunk-NNS4E7CW.js → chunk-SGPFVDUL.js} +15 -6
  111. package/dist/{chunk-ZEF5M5MB.js → chunk-SQCBSFT5.js} +72 -74
  112. package/dist/{chunk-3HGU63UY.js → chunk-U7NKYLX2.js} +14 -13
  113. package/dist/chunk-U7VO6JAA.js +566 -0
  114. package/dist/{chunk-ZJV7GYR4.js → chunk-UFQJMOVZ.js} +10 -10
  115. package/dist/{chunk-Z72XRXD4.js → chunk-UJRTPOHH.js} +3 -3
  116. package/dist/{chunk-J6QROYDA.js → chunk-UK6DKJLD.js} +26 -10
  117. package/dist/{chunk-QZX5S6R3.js → chunk-UKP5HWB5.js} +149 -89
  118. package/dist/{chunk-T4A4TSTJ.js → chunk-UQRIKAMH.js} +21 -19
  119. package/dist/{chunk-TYS6CSS5.js → chunk-UU6LUYUH.js} +2 -2
  120. package/dist/{chunk-5BHJZH62.js → chunk-UVDCHR4E.js} +18 -6
  121. package/dist/{chunk-HQQNCY7W.js → chunk-VAO6ANGC.js} +5 -5
  122. package/dist/{chunk-6NYWYNBI.js → chunk-VGNIDAPQ.js} +4 -4
  123. package/dist/{chunk-VL2O2F3W.js → chunk-VHO3YBTB.js} +2 -2
  124. package/dist/{chunk-FHGVORFO.js → chunk-VIRANCNY.js} +14 -14
  125. package/dist/{chunk-XD6ZYURY.js → chunk-VJHBSPGF.js} +7 -14
  126. package/dist/{chunk-5RP7JRVP.js → chunk-VKNCC2GX.js} +12 -8
  127. package/dist/{chunk-TPFKKXCB.js → chunk-VRRDUYOK.js} +7 -7
  128. package/dist/{chunk-K2I2XOZD.js → chunk-W2DINCHL.js} +11 -11
  129. package/dist/{chunk-AUIM2NVH.js → chunk-W5KMNC5U.js} +8 -8
  130. package/dist/{chunk-FFUN5D66.js → chunk-WF64MW5G.js} +2 -2
  131. package/dist/{chunk-6LBQ7ELG.js → chunk-X3RXGSCZ.js} +40 -21
  132. package/dist/{chunk-HBPDFCQY.js → chunk-XEAQDIMF.js} +7 -6
  133. package/dist/{chunk-TTIM6YTT.js → chunk-XG4NWFPY.js} +17 -16
  134. package/dist/{chunk-7KINELPI.js → chunk-XQ4KN6JQ.js} +23 -23
  135. package/dist/{chunk-WBRZJOEC.js → chunk-XY3UDKKH.js} +4 -4
  136. package/dist/{chunk-5SEVICBT.js → chunk-YG2BEIQU.js} +14 -13
  137. package/dist/{chunk-BRENJ2BQ.js → chunk-YJVA3QUU.js} +24 -4
  138. package/dist/{chunk-KGVZ5VGH.js → chunk-YR43LJT5.js} +16 -15
  139. package/dist/{chunk-TLVIHFRO.js → chunk-ZKPPI6BF.js} +2 -2
  140. package/dist/{chunk-ARGMQ3H4.js → chunk-ZXUAPTCK.js} +3 -3
  141. package/dist/cli.cjs +156 -154
  142. package/dist/clock.js +9 -1
  143. package/dist/countdown.js +4 -3
  144. package/dist/dgmo-router-B4S23EBH.js +86 -0
  145. package/dist/dimensions-K6PGYYGT.js +22 -0
  146. package/dist/editor.js +33 -5
  147. package/dist/element.js +142 -132
  148. package/dist/element.mjs +1117 -452
  149. package/dist/flowchart-parser-LALR6J6F.js +21 -0
  150. package/dist/{flowchart-renderer-MNCDS7MV.js → flowchart-renderer-DXYB5YRF.js} +14 -14
  151. package/dist/highlight.js +37 -6
  152. package/dist/index.d.ts +4 -2
  153. package/dist/index.js +78 -73
  154. package/dist/layout-3BVDMKXI.js +15 -0
  155. package/dist/layout-3M5UYJHY.js +14 -0
  156. package/dist/{layout-2L3WMRYU.js → layout-3V2A4MUE.js} +8 -8
  157. package/dist/layout-4IHCMWZN.js +19 -0
  158. package/dist/layout-5XGYNYVT.js +9 -0
  159. package/dist/layout-AZUPXWSK.js +15 -0
  160. package/dist/{layout-F4WO357A.js → layout-CAAKQX4W.js} +3 -3
  161. package/dist/{layout-A5UHRWVH.js → layout-CB3XWCOI.js} +3 -3
  162. package/dist/{layout-OAC4PEAC.js → layout-E6HR6PXH.js} +7 -7
  163. package/dist/{layout-7QXCNOVS.js → layout-HBWT2G23.js} +3 -3
  164. package/dist/layout-KPQWJNAG.js +14 -0
  165. package/dist/layout-OL2XFJXA.js +17 -0
  166. package/dist/layout-WCAIKGZG.js +19 -0
  167. package/dist/layout-WSMPBQ4Q.js +17 -0
  168. package/dist/layout-ZE5DRJWX.js +20 -0
  169. package/dist/{layout-search-55FU6HD3.js → layout-search-34DPZD43.js} +51 -35
  170. package/dist/legend-constants-P5EQWRQQ.js +49 -0
  171. package/dist/{palettes-UDLZ2SA4.js → palettes-FGTNFARW.js} +4 -4
  172. package/dist/{parser-EYCKNKQA.js → parser-275KP7JO.js} +8 -8
  173. package/dist/parser-27Z76SN3.js +22 -0
  174. package/dist/parser-3CODK6RG.js +15 -0
  175. package/dist/{parser-YKYMQG3B.js → parser-3KIGEEJM.js} +6 -6
  176. package/dist/parser-3VSWEKBF.js +15 -0
  177. package/dist/parser-4E4I3GNT.js +13 -0
  178. package/dist/parser-5FGJSQNS.js +12 -0
  179. package/dist/parser-5HQXCNOS.js +12 -0
  180. package/dist/parser-5QPFOB5F.js +12 -0
  181. package/dist/parser-6B6SSZT7.js +11 -0
  182. package/dist/parser-6PPHAXXH.js +14 -0
  183. package/dist/parser-7JHWEWXM.js +13 -0
  184. package/dist/{parser-DQAFLUJB.js → parser-7JVIDLLR.js} +7 -7
  185. package/dist/parser-CKA3QMAG.js +18 -0
  186. package/dist/parser-CRKLXGW7.js +13 -0
  187. package/dist/parser-EXNBDNGY.js +11 -0
  188. package/dist/parser-FF4BMRSB.js +16 -0
  189. package/dist/parser-FOOFEJQU.js +13 -0
  190. package/dist/parser-G26MTBFS.js +11 -0
  191. package/dist/parser-GKP2MHHL.js +11 -0
  192. package/dist/parser-GN2MM5CC.js +11 -0
  193. package/dist/parser-IKWK2ZU3.js +18 -0
  194. package/dist/parser-IVGHXLZP.js +14 -0
  195. package/dist/parser-NNIL3HXU.js +11 -0
  196. package/dist/parser-RNLTBIJ6.js +19 -0
  197. package/dist/parser-UWRX52PC.js +16 -0
  198. package/dist/parser-VOERD6XR.js +14 -0
  199. package/dist/parser-XNKJCMMA.js +13 -0
  200. package/dist/parser-XVPTRWZ4.js +15 -0
  201. package/dist/parser-YSLNDFLV.js +22 -0
  202. package/dist/{parser-ZL5QUFVH.js → parser-ZGNXYFPS.js} +5 -5
  203. package/dist/parser-ZQDQTB4X.js +20 -0
  204. package/dist/pert.d.ts +2 -0
  205. package/dist/registry-CaSw0PSH.d.ts +350 -0
  206. package/dist/renderer-2C6DJRYN.js +24 -0
  207. package/dist/renderer-5MPN7CXZ.js +19 -0
  208. package/dist/renderer-6EN5XXJZ.js +27 -0
  209. package/dist/renderer-6WRYVM5R.js +24 -0
  210. package/dist/renderer-7NQSTQMQ.js +16 -0
  211. package/dist/renderer-7ZNVOVFG.js +16 -0
  212. package/dist/{renderer-DT4XRFEP.js → renderer-AK2WO4EI.js} +7 -7
  213. package/dist/renderer-COLQFSFV.js +26 -0
  214. package/dist/{renderer-3F7OS2AX.js → renderer-CWEFGEIC.js} +15 -15
  215. package/dist/renderer-D3BRNOMV.js +29 -0
  216. package/dist/renderer-HIFQVEJA.js +22 -0
  217. package/dist/renderer-JCZG6AYU.js +28 -0
  218. package/dist/{renderer-ZWIH4WDW.js → renderer-JTCX6PCG.js} +13 -13
  219. package/dist/renderer-JWGQSTMR.js +37 -0
  220. package/dist/{renderer-NHO46CT2.js → renderer-K7XLVPH5.js} +6 -6
  221. package/dist/renderer-KARQF3F3.js +22 -0
  222. package/dist/renderer-LVZAHRP6.js +34 -0
  223. package/dist/{renderer-CQY6ATOS.js → renderer-NE5W7CQP.js} +8 -8
  224. package/dist/renderer-QD2SJF2I.js +34 -0
  225. package/dist/renderer-RLMOTXZ6.js +37 -0
  226. package/dist/renderer-SQ54MDSA.js +26 -0
  227. package/dist/{renderer-HSHHVYWF.js → renderer-TYHGXAVT.js} +7 -7
  228. package/dist/renderer-UKXW2QPE.js +23 -0
  229. package/dist/renderer-UPF7NRTI.js +28 -0
  230. package/dist/renderer-VMH6L6CP.js +24 -0
  231. package/dist/{renderer-5DAKMIU2.js → renderer-WCWI4I6A.js} +5 -5
  232. package/dist/renderer-WFSUBKUL.js +25 -0
  233. package/dist/renderer-WNFXYYGL.js +21 -0
  234. package/dist/{renderer-KNFTTOBL.js → renderer-XTXSOK3L.js} +14 -14
  235. package/dist/renderer-YUKPS27O.js +24 -0
  236. package/dist/renderer-YUXGXGSW.js +27 -0
  237. package/dist/renderer-ZBTEX2JK.js +16 -0
  238. package/dist/renderer-radial-WF6VOUOD.js +21 -0
  239. package/dist/{resolver-EMTGNR3D.js → resolver-WFKZYBJ2.js} +4 -4
  240. package/dist/state-parser-L7DHZIQO.js +19 -0
  241. package/dist/state-renderer-TFEUOP4H.js +38 -0
  242. package/dist/{themes-32xj5ZTW.d.ts → themes-tbBkIVsn.d.ts} +2 -349
  243. package/docs/ai-integration.md +59 -58
  244. package/docs/language-reference.md +323 -286
  245. package/fonts/Inter-Bold.woff2 +0 -0
  246. package/fonts/Inter-Regular.woff2 +0 -0
  247. package/gallery/fixtures/boxes-and-lines-diverging.dgmo +1 -2
  248. package/gallery/fixtures/boxes-and-lines.dgmo +1 -1
  249. package/gallery/fixtures/clock.dgmo +1 -1
  250. package/gallery/fixtures/event-line.dgmo +1 -1
  251. package/gallery/fixtures/gantt-full.dgmo +1 -1
  252. package/gallery/fixtures/gantt-sprints.dgmo +9 -9
  253. package/gallery/fixtures/gantt.dgmo +1 -1
  254. package/gallery/fixtures/legacy-syntax-backcompat.dgmo +16 -0
  255. package/gallery/fixtures/state-tags.dgmo +40 -0
  256. package/gallery/fixtures/swimlane.dgmo +1 -1
  257. package/gallery/fixtures/timeline-intraday.dgmo +1 -1
  258. package/package.json +5 -1
  259. package/dist/analyzer-BJ54GIFB.js +0 -15
  260. package/dist/calculator-LDYQCDDY.js +0 -11
  261. package/dist/charts-d3-MXEP6BNP.js +0 -26
  262. package/dist/dgmo-router-X7ZGAPIE.js +0 -86
  263. package/dist/dimensions-45H6JQEY.js +0 -22
  264. package/dist/flowchart-parser-UKELHBSB.js +0 -21
  265. package/dist/layout-46N4JJYK.js +0 -17
  266. package/dist/layout-A4XWNVID.js +0 -14
  267. package/dist/layout-AM2JWW3X.js +0 -15
  268. package/dist/layout-EE6GE46Y.js +0 -17
  269. package/dist/layout-G23F7LDH.js +0 -9
  270. package/dist/layout-GM4UGR7B.js +0 -19
  271. package/dist/layout-GQQJXNYH.js +0 -15
  272. package/dist/layout-IIE2S5FK.js +0 -20
  273. package/dist/layout-VMCRX66I.js +0 -14
  274. package/dist/layout-ZDOSXL5G.js +0 -19
  275. package/dist/parser-2ECN6JA2.js +0 -16
  276. package/dist/parser-4WTIHM5J.js +0 -11
  277. package/dist/parser-5H2BTSJQ.js +0 -11
  278. package/dist/parser-75KVXUNS.js +0 -16
  279. package/dist/parser-774AC53T.js +0 -13
  280. package/dist/parser-BE4YCSRU.js +0 -11
  281. package/dist/parser-CNGUQUQI.js +0 -11
  282. package/dist/parser-DEUUSQIN.js +0 -22
  283. package/dist/parser-FXISIU6A.js +0 -14
  284. package/dist/parser-GTB4XC7P.js +0 -18
  285. package/dist/parser-GVEPAUSD.js +0 -12
  286. package/dist/parser-HSQGTY4G.js +0 -19
  287. package/dist/parser-HVKRINUS.js +0 -11
  288. package/dist/parser-J5MIEYO4.js +0 -15
  289. package/dist/parser-KMZIXLDZ.js +0 -13
  290. package/dist/parser-LJHXWSXU.js +0 -14
  291. package/dist/parser-PT3W72G5.js +0 -15
  292. package/dist/parser-SBJQDPHL.js +0 -15
  293. package/dist/parser-SUWWWCMX.js +0 -12
  294. package/dist/parser-SXDRNZOA.js +0 -13
  295. package/dist/parser-UMILOW3M.js +0 -14
  296. package/dist/parser-UP3AZ367.js +0 -13
  297. package/dist/parser-WHPRV3X5.js +0 -20
  298. package/dist/parser-WX3UODSJ.js +0 -12
  299. package/dist/parser-XCIEN3KN.js +0 -13
  300. package/dist/parser-XIRTUMVN.js +0 -18
  301. package/dist/parser-YKCGIG45.js +0 -11
  302. package/dist/parser-ZGM2OJ6Y.js +0 -22
  303. package/dist/renderer-4QB4K7Q3.js +0 -24
  304. package/dist/renderer-5H4SY7YY.js +0 -22
  305. package/dist/renderer-5PIQPFOX.js +0 -16
  306. package/dist/renderer-6MU37QF5.js +0 -19
  307. package/dist/renderer-AQVMWJ4M.js +0 -27
  308. package/dist/renderer-BDDW6K7N.js +0 -24
  309. package/dist/renderer-BNB3VIDY.js +0 -26
  310. package/dist/renderer-CVW75CXL.js +0 -37
  311. package/dist/renderer-ERHBSTQT.js +0 -25
  312. package/dist/renderer-IDPVUFNB.js +0 -28
  313. package/dist/renderer-ILX6BGKR.js +0 -21
  314. package/dist/renderer-JP663HKG.js +0 -22
  315. package/dist/renderer-MVUZBESR.js +0 -16
  316. package/dist/renderer-N4EBR2FV.js +0 -28
  317. package/dist/renderer-NO2QJ5LZ.js +0 -27
  318. package/dist/renderer-OGFV5RXX.js +0 -34
  319. package/dist/renderer-PDLESJMS.js +0 -37
  320. package/dist/renderer-T4MTNINC.js +0 -24
  321. package/dist/renderer-TOUGFGTM.js +0 -24
  322. package/dist/renderer-U3KPD43Y.js +0 -34
  323. package/dist/renderer-X334IJU2.js +0 -26
  324. package/dist/renderer-Y5OAMOCR.js +0 -23
  325. package/dist/renderer-YONAKAJU.js +0 -16
  326. package/dist/renderer-YWMI6Y2U.js +0 -29
  327. package/dist/renderer-radial-7CGZMVMS.js +0 -21
  328. package/dist/state-parser-BATWAID2.js +0 -18
  329. package/dist/state-renderer-3FKZJ3LP.js +0 -34
package/dist/advanced.js CHANGED
@@ -1,20 +1,30 @@
1
+ import {
2
+ authoredCollapsedIds,
3
+ layoutBlock,
4
+ renderBlock,
5
+ renderBlockForExport
6
+ } from "./chunk-PT4SW76W.js";
7
+ import {
8
+ renderGoal,
9
+ renderGoalForExport
10
+ } from "./chunk-BD3WGY4T.js";
1
11
  import {
2
12
  renderCountdown,
3
13
  renderCountdownForExport
4
- } from "./chunk-FUPF2UYQ.js";
14
+ } from "./chunk-PIXZTCKH.js";
5
15
  import {
6
16
  renderClock,
7
17
  renderClockForExport
8
- } from "./chunk-5223KXFD.js";
18
+ } from "./chunk-RJ5LBZ5U.js";
9
19
  import {
10
20
  layoutBracket,
11
21
  renderBracket,
12
22
  renderBracketForExport
13
- } from "./chunk-CCNDLW7Z.js";
23
+ } from "./chunk-QWIBT6DS.js";
14
24
  import {
15
25
  renderRaci,
16
26
  renderRaciForExport
17
- } from "./chunk-FQMUHRVC.js";
27
+ } from "./chunk-NNYFQOTK.js";
18
28
  import {
19
29
  applyCollapseProjection,
20
30
  applyGroupOrdering,
@@ -24,47 +34,64 @@ import {
24
34
  computeActivations,
25
35
  groupMessagesBySection,
26
36
  renderSequenceDiagram
27
- } from "./chunk-VQOCMUWI.js";
37
+ } from "./chunk-65V6IRFN.js";
38
+ import {
39
+ resolveMap
40
+ } from "./chunk-BULHGPHK.js";
41
+ import {
42
+ renderMap,
43
+ renderMapForExport
44
+ } from "./chunk-GAWKIIPO.js";
45
+ import "./chunk-B4XS2AF2.js";
28
46
  import {
29
47
  mapContentAspect,
30
48
  mapExportDimensions
31
- } from "./chunk-4AQRFDXL.js";
49
+ } from "./chunk-BFDVEO5R.js";
50
+ import {
51
+ albersSkewFallback,
52
+ layoutMap,
53
+ mapBackgroundColor,
54
+ mapNeutralLandColor
55
+ } from "./chunk-UFQJMOVZ.js";
56
+ import {
57
+ decodeFeatures,
58
+ regionAt
59
+ } from "./chunk-4QV26TEG.js";
32
60
  import {
33
61
  loadMapData
34
62
  } from "./chunk-6MTWIQVO.js";
35
63
  import {
36
64
  renderPyramid,
37
65
  renderPyramidForExport
38
- } from "./chunk-4YFKQ5WT.js";
66
+ } from "./chunk-IQJCVREL.js";
39
67
  import {
40
68
  renderRing,
41
69
  renderRingForExport
42
- } from "./chunk-QHXCAEMX.js";
70
+ } from "./chunk-R5NH5BZG.js";
43
71
  import {
44
72
  layoutTreemapRadial,
45
73
  renderTreemapRadial,
46
74
  renderTreemapRadialForExport
47
- } from "./chunk-5SEVICBT.js";
75
+ } from "./chunk-YG2BEIQU.js";
48
76
  import {
49
77
  layoutTreemap,
50
78
  renderTreemap,
51
79
  renderTreemapForExport
52
- } from "./chunk-6LBQ7ELG.js";
80
+ } from "./chunk-X3RXGSCZ.js";
81
+ import "./chunk-UVDCHR4E.js";
53
82
  import {
54
- authoredCollapsedIds,
55
- layoutBlock,
56
- renderBlock,
57
- renderBlockForExport
58
- } from "./chunk-BPIZNB5O.js";
83
+ calculateSchedule,
84
+ collectTasks,
85
+ resolveTaskName
86
+ } from "./chunk-UJRTPOHH.js";
59
87
  import {
60
- renderGoal,
61
- renderGoalForExport
62
- } from "./chunk-3HF5YEFJ.js";
63
- import "./chunk-5BHJZH62.js";
88
+ buildTagLaneRowList,
89
+ renderGantt
90
+ } from "./chunk-VIRANCNY.js";
64
91
  import {
65
92
  renderState,
66
93
  renderStateForExport
67
- } from "./chunk-H7KENAZO.js";
94
+ } from "./chunk-AHXIMHDQ.js";
68
95
  import {
69
96
  collapseStateGroups
70
97
  } from "./chunk-SQ7IY53Q.js";
@@ -75,56 +102,46 @@ import {
75
102
  renderQuadrantFocusForExport,
76
103
  renderTechRadar,
77
104
  renderTechRadarForExport
78
- } from "./chunk-UBLHQTLV.js";
105
+ } from "./chunk-7GUF6SDR.js";
79
106
  import {
80
107
  renderJourneyMap,
81
108
  renderJourneyMapForExport
82
- } from "./chunk-CIRFIL4M.js";
109
+ } from "./chunk-4WGMGKCZ.js";
83
110
  import {
84
111
  layoutJourneyMap
85
- } from "./chunk-YIBAWQGJ.js";
112
+ } from "./chunk-J7HI6G3G.js";
86
113
  import {
87
114
  computeCycleLayout,
88
115
  renderCycle,
89
116
  renderCycleForExport
90
- } from "./chunk-INE5YJBZ.js";
91
- import {
92
- resolveMap
93
- } from "./chunk-P3NRSSUU.js";
94
- import {
95
- renderMap,
96
- renderMapForExport
97
- } from "./chunk-BKVOYV6I.js";
98
- import "./chunk-3LK5DNED.js";
117
+ } from "./chunk-LHILKFDP.js";
99
118
  import {
100
- albersSkewFallback,
101
- layoutMap,
102
- mapBackgroundColor,
103
- mapNeutralLandColor
104
- } from "./chunk-ZJV7GYR4.js";
119
+ renderFlowchart,
120
+ renderFlowchartForExport
121
+ } from "./chunk-AZNXGWDC.js";
122
+ import "./chunk-PDKUANDZ.js";
105
123
  import {
106
- decodeFeatures,
107
- regionAt
108
- } from "./chunk-I5IGB56C.js";
124
+ layoutGraph
125
+ } from "./chunk-3B2GXZCX.js";
109
126
  import {
110
127
  collectDiagramRoles,
111
128
  computeInfraLegendGroups,
112
129
  inferRoles,
113
130
  parseAndLayoutInfra,
114
131
  renderInfra
115
- } from "./chunk-MUVJ57EP.js";
132
+ } from "./chunk-GMIJ35PW.js";
116
133
  import {
117
134
  computeInfra
118
135
  } from "./chunk-A44USUV7.js";
119
136
  import {
120
137
  layoutInfra
121
- } from "./chunk-Y2ZE3MSG.js";
138
+ } from "./chunk-43E26CDA.js";
122
139
  import {
123
140
  measurePertAnalysisBlock,
124
141
  renderPert,
125
142
  renderPertAnalysisBlock,
126
143
  renderPertForExport
127
- } from "./chunk-LGT3PZCJ.js";
144
+ } from "./chunk-PYO4TJJ3.js";
128
145
  import {
129
146
  analyzePert,
130
147
  buildSimulationContext,
@@ -132,33 +149,31 @@ import {
132
149
  sampleBetaPert,
133
150
  simulateCanonical,
134
151
  simulateFast
135
- } from "./chunk-J76PIKAT.js";
152
+ } from "./chunk-HO3RCNF6.js";
136
153
  import {
137
154
  layoutPert,
138
155
  relayoutPert
139
- } from "./chunk-GU46PPT3.js";
156
+ } from "./chunk-QXGACPS2.js";
140
157
  import {
141
- calculateSchedule,
142
- collectTasks,
143
- resolveTaskName
144
- } from "./chunk-Z72XRXD4.js";
145
- import {
146
- buildTagLaneRowList,
147
- renderGantt
148
- } from "./chunk-FHGVORFO.js";
158
+ renderFamily,
159
+ renderFamilyForExport
160
+ } from "./chunk-YR43LJT5.js";
149
161
  import {
150
162
  collapseMindmapTree
151
163
  } from "./chunk-UZ7EZW3B.js";
152
164
  import {
153
165
  renderMindmap,
154
166
  renderMindmapForExport
155
- } from "./chunk-3HGU63UY.js";
167
+ } from "./chunk-U7NKYLX2.js";
168
+ import {
169
+ layoutMindmap
170
+ } from "./chunk-GMAH572Z.js";
156
171
  import {
157
172
  layoutWireframe
158
- } from "./chunk-H6PI3KJT.js";
173
+ } from "./chunk-ODUT5WMC.js";
159
174
  import {
160
175
  renderWireframe
161
- } from "./chunk-YTMTPUH4.js";
176
+ } from "./chunk-4ASVFYB2.js";
162
177
  import {
163
178
  renderC4ComponentsForExport,
164
179
  renderC4Containers,
@@ -167,102 +182,93 @@ import {
167
182
  renderC4ContextForExport,
168
183
  renderC4Deployment,
169
184
  renderC4DeploymentForExport
170
- } from "./chunk-LBMS4AW6.js";
185
+ } from "./chunk-QAALSCKI.js";
171
186
  import {
172
187
  layoutC4Components,
173
188
  layoutC4Containers,
174
189
  layoutC4Context,
175
190
  layoutC4Deployment,
176
191
  rollUpContextRelationships
177
- } from "./chunk-ONU3U4GL.js";
192
+ } from "./chunk-LQHVDZYC.js";
178
193
  import {
179
- renderFlowchart,
180
- renderFlowchartForExport
181
- } from "./chunk-GCYTI3DE.js";
182
- import "./chunk-PDKUANDZ.js";
194
+ SKETCH_FOOT_H,
195
+ SKETCH_FOOT_W,
196
+ SKETCH_GEOMETRY,
197
+ SKETCH_HALF_SLOT_X,
198
+ SKETCH_HALF_SLOT_Y,
199
+ SKETCH_SEP,
200
+ SKETCH_SLOT_X,
201
+ SKETCH_SLOT_Y,
202
+ collapseSketch,
203
+ layoutSketch,
204
+ sketchSlotToPx
205
+ } from "./chunk-MEQYZZFR.js";
183
206
  import {
184
- layoutGraph
185
- } from "./chunk-HFMYN6N2.js";
207
+ renderSketch,
208
+ renderSketchForExport,
209
+ sketchEdgeGeometry
210
+ } from "./chunk-3BEKKRH5.js";
186
211
  import {
187
212
  renderBoxesAndLines,
188
213
  renderBoxesAndLinesForExport
189
- } from "./chunk-T4A4TSTJ.js";
214
+ } from "./chunk-UQRIKAMH.js";
190
215
  import {
191
216
  layoutSwimlane
192
- } from "./chunk-MX2EY5Y7.js";
193
- import "./chunk-WRNFDFPU.js";
217
+ } from "./chunk-HOXKNRON.js";
218
+ import "./chunk-FGDSTT3F.js";
194
219
  import {
195
220
  layoutBoxesAndLines
196
- } from "./chunk-7DF4J4RL.js";
221
+ } from "./chunk-KKHCNSKK.js";
197
222
  import {
198
223
  renderSwimlaneForExport
199
- } from "./chunk-TJVLKNGR.js";
224
+ } from "./chunk-6KY7OCZC.js";
200
225
  import "./chunk-LP7EC4MI.js";
201
226
  import {
202
227
  layoutFamily
203
- } from "./chunk-5QKQSSPO.js";
204
- import {
205
- renderFamily,
206
- renderFamilyForExport
207
- } from "./chunk-KGVZ5VGH.js";
228
+ } from "./chunk-GRM2A4BG.js";
208
229
  import "./chunk-IVKC4GID.js";
209
230
  import {
210
- layoutMindmap
211
- } from "./chunk-HWX6ZHF3.js";
231
+ layoutSitemap
232
+ } from "./chunk-HE5J53SZ.js";
233
+ import {
234
+ collapseSitemapTree
235
+ } from "./chunk-UNCCZ3NU.js";
212
236
  import {
213
237
  renderSitemap,
214
238
  renderSitemapForExport
215
- } from "./chunk-44VCIPHF.js";
239
+ } from "./chunk-HORZ5H2L.js";
216
240
  import {
217
241
  computeCardArchive,
218
242
  computeCardMove,
219
243
  isArchiveColumn,
220
244
  renderKanban,
221
245
  renderKanbanForExport
222
- } from "./chunk-TTIM6YTT.js";
246
+ } from "./chunk-XG4NWFPY.js";
223
247
  import {
224
248
  renderClassDiagram,
225
249
  renderClassDiagramForExport
226
- } from "./chunk-AAXZDUOV.js";
250
+ } from "./chunk-FT7TPPZ5.js";
227
251
  import {
228
252
  layoutClassDiagram
229
- } from "./chunk-WBRZJOEC.js";
253
+ } from "./chunk-XY3UDKKH.js";
230
254
  import {
231
255
  renderERDiagram,
232
256
  renderERDiagramForExport
233
- } from "./chunk-77FGAVZC.js";
234
- import "./chunk-J7TLCB2Q.js";
257
+ } from "./chunk-LC3FFD43.js";
258
+ import "./chunk-3IUHKMJI.js";
235
259
  import {
236
260
  layoutERDiagram
237
- } from "./chunk-6NYWYNBI.js";
238
- import "./chunk-JED6ZDEE.js";
261
+ } from "./chunk-VGNIDAPQ.js";
262
+ import "./chunk-5HWPEYWB.js";
239
263
  import "./chunk-6EK55ART.js";
240
- import "./chunk-TYS6CSS5.js";
264
+ import "./chunk-UU6LUYUH.js";
241
265
  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
266
  import {
261
267
  clearEventLineMuted,
262
268
  focusEventLine,
263
269
  renderEventLine,
264
270
  renderEventLineForExport
265
- } from "./chunk-K2I2XOZD.js";
271
+ } from "./chunk-W2DINCHL.js";
266
272
  import {
267
273
  parseInlineMarkdown,
268
274
  truncateBareUrl
@@ -271,32 +277,26 @@ import "./chunk-BMR4CIEO.js";
271
277
  import {
272
278
  renderBody,
273
279
  renderBodyForExport
274
- } from "./chunk-JRCOYRRH.js";
280
+ } from "./chunk-QI3BOLQB.js";
275
281
  import {
276
282
  renderVersionControl,
277
283
  renderVersionControlForExport
278
- } from "./chunk-5HILBT7X.js";
284
+ } from "./chunk-7JDTNFAK.js";
279
285
  import {
280
286
  collapseOrgTree,
281
287
  focusOrgTree
282
288
  } from "./chunk-UJ4FJLBF.js";
289
+ import "./chunk-BS7SV7C3.js";
283
290
  import {
284
291
  renderOrg,
285
292
  renderOrgForExport
286
- } from "./chunk-7QE3XMRK.js";
293
+ } from "./chunk-GQ644SPD.js";
287
294
  import "./chunk-JTSMEYIZ.js";
288
- import "./chunk-OTOHI4JO.js";
295
+ import "./chunk-H3HFC3SQ.js";
289
296
  import "./chunk-3CIOJ5YJ.js";
290
297
  import {
291
298
  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
- import "./chunk-BS7SV7C3.js";
299
+ } from "./chunk-UKP5HWB5.js";
300
300
  import {
301
301
  completeMapPlaces,
302
302
  completeMapRegions,
@@ -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,20 +313,43 @@ import {
317
313
  renderSlopeChart,
318
314
  renderVenn,
319
315
  renderWordCloud
320
- } from "./chunk-J7KJR3R6.js";
316
+ } from "./chunk-GWQJKTFS.js";
317
+ import {
318
+ renderLegendSvg,
319
+ renderLegendSvgFromConfig
320
+ } from "./chunk-SG4PRYO3.js";
321
+ import "./chunk-VHO3YBTB.js";
321
322
  import {
322
323
  formatDateLabel,
323
324
  renderTimeline
324
- } from "./chunk-7KINELPI.js";
325
+ } from "./chunk-XQ4KN6JQ.js";
325
326
  import {
326
327
  computeTimeTicks
327
328
  } from "./chunk-YRYKTYMQ.js";
329
+ import "./chunk-ADYKAKE3.js";
328
330
  import {
329
331
  ScaleContext
330
332
  } from "./chunk-YYVTBZZC.js";
331
333
  import {
332
334
  renderLegendD3
333
- } from "./chunk-AUIM2NVH.js";
335
+ } from "./chunk-W5KMNC5U.js";
336
+ import {
337
+ computeLegendLayout,
338
+ controlsGroupCapsuleWidth,
339
+ getLegendReservedHeight
340
+ } from "./chunk-774C2FF3.js";
341
+ import "./chunk-A4GOY3PE.js";
342
+ import "./chunk-6KFWC4CO.js";
343
+ import {
344
+ normalizePertSourceForShare,
345
+ resolveOrgImports
346
+ } from "./chunk-AIMLCDAO.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,
@@ -342,14 +361,28 @@ import {
342
361
  parseDgmo,
343
362
  parseDgmoChartType,
344
363
  parseVisualization
345
- } from "./chunk-ZEF5M5MB.js";
364
+ } from "./chunk-SQCBSFT5.js";
365
+ import {
366
+ getExtendedChartLegendGroups,
367
+ getSimpleChartLegendGroups,
368
+ parseChart,
369
+ parseDataRowValues,
370
+ parseExtendedChart
371
+ } from "./chunk-Q7AH665U.js";
372
+ import {
373
+ parseTreemap
374
+ } from "./chunk-4K42RUGC.js";
375
+ import {
376
+ parseBlock
377
+ } from "./chunk-KUSAVOWZ.js";
378
+ import "./chunk-NR5HCAUD.js";
346
379
  import {
347
380
  parseGoal
348
- } from "./chunk-MUE65OTD.js";
381
+ } from "./chunk-6HTRCTAS.js";
349
382
  import {
350
383
  parseCountdown,
351
384
  targetToMs as targetToMs2
352
- } from "./chunk-FT3ZYWET.js";
385
+ } from "./chunk-DWUMPMV2.js";
353
386
  import {
354
387
  applyOrdinalTemplate,
355
388
  dayDelta,
@@ -370,7 +403,7 @@ import {
370
403
  parseClock,
371
404
  resolvePlace,
372
405
  searchZones
373
- } from "./chunk-FY5MSZAP.js";
406
+ } from "./chunk-FLDC7ZAK.js";
374
407
  import {
375
408
  fixedParts,
376
409
  formatOffsetLabel,
@@ -384,139 +417,114 @@ import {
384
417
  } from "./chunk-APKUAJ2L.js";
385
418
  import {
386
419
  parseBracket
387
- } from "./chunk-PRI2OD4E.js";
420
+ } from "./chunk-RW5PEJ7D.js";
388
421
  import {
389
422
  RACI_ERROR_CODES,
390
423
  RACI_WARNING_CODES,
391
424
  VARIANTS,
392
425
  allTasks,
393
426
  parseRaci
394
- } from "./chunk-4IHAV6O7.js";
427
+ } from "./chunk-ALYZ3MAA.js";
395
428
  import {
396
429
  parseBody
397
- } from "./chunk-Z5QVYKR7.js";
430
+ } from "./chunk-FFXCKZOU.js";
398
431
  import "./chunk-BDXC7MDK.js";
399
432
  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";
412
- import {
413
- LEGEND_GEAR_PILL_W,
414
- LEGEND_HEIGHT
415
- } from "./chunk-QOOUC2J5.js";
416
- import "./chunk-WCT3NYCV.js";
433
+ parseFamily
434
+ } from "./chunk-MA3HJZHB.js";
435
+ import "./chunk-QQJUTGQH.js";
417
436
  import {
418
- getExtendedChartLegendGroups,
419
- getSimpleChartLegendGroups,
420
- parseChart,
421
- parseDataRowValues,
422
- parseExtendedChart
423
- } from "./chunk-EMLPOL77.js";
437
+ parseMindmap
438
+ } from "./chunk-3CZLWOCI.js";
424
439
  import {
425
440
  parseWireframe
426
- } from "./chunk-SMRFPVLQ.js";
441
+ } from "./chunk-GABSL6TH.js";
427
442
  import {
428
443
  parseTechRadar
429
- } from "./chunk-VILVLS7P.js";
444
+ } from "./chunk-CK2GMDXD.js";
430
445
  import {
431
446
  parseCycle
432
- } from "./chunk-7BIZCTAX.js";
447
+ } from "./chunk-HNBY6CNV.js";
433
448
  import {
434
449
  parseJourneyMap
435
- } from "./chunk-XD6ZYURY.js";
450
+ } from "./chunk-VJHBSPGF.js";
436
451
  import {
437
452
  parsePyramid
438
- } from "./chunk-ICPJPQ5C.js";
453
+ } from "./chunk-JHOAH4TI.js";
439
454
  import {
440
455
  parseRing
441
- } from "./chunk-UNURMIQO.js";
456
+ } from "./chunk-PV2QO7QL.js";
442
457
  import {
443
- parseTreemap
444
- } from "./chunk-ZNWAYU6N.js";
458
+ parseKanban
459
+ } from "./chunk-FUKNRLIJ.js";
445
460
  import {
446
- parseBlock
447
- } from "./chunk-4UNQ6X24.js";
448
- import "./chunk-NR5HCAUD.js";
461
+ parseC4
462
+ } from "./chunk-PKNNHU7H.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-NNUMX6WX.js";
454
468
  import {
455
469
  parseGantt
456
- } from "./chunk-QGATPIPX.js";
470
+ } from "./chunk-2QC4HXCY.js";
457
471
  import {
458
472
  looksLikeMap,
459
473
  parseMap
460
- } from "./chunk-5NGAO4QK.js";
461
- import "./chunk-FQ7HTV52.js";
474
+ } from "./chunk-27STWBOK.js";
475
+ import "./chunk-6DCOIN4W.js";
462
476
  import {
463
477
  parseBoxesAndLines
464
- } from "./chunk-5RP7JRVP.js";
478
+ } from "./chunk-VKNCC2GX.js";
465
479
  import {
466
480
  SKETCH_SHAPE_KINDS,
467
481
  isSketchShapeKind,
468
482
  parseSketch
469
- } from "./chunk-HQQNCY7W.js";
483
+ } from "./chunk-VAO6ANGC.js";
470
484
  import "./chunk-RT7ACF77.js";
471
485
  import {
472
486
  parseSwimlane
473
- } from "./chunk-LTXOLDUZ.js";
487
+ } from "./chunk-I64ECJX3.js";
474
488
  import {
475
- parseFamily
476
- } from "./chunk-75G3Q4DK.js";
477
- import "./chunk-QQJUTGQH.js";
489
+ looksLikeState,
490
+ parseState
491
+ } from "./chunk-AN2DQB3G.js";
478
492
  import {
479
- parseMindmap
480
- } from "./chunk-AL672HNE.js";
493
+ extractSymbols as extractSymbols2,
494
+ looksLikeClassDiagram,
495
+ parseClassDiagram
496
+ } from "./chunk-VRRDUYOK.js";
481
497
  import {
482
498
  extractSymbols as extractSymbols3,
483
499
  looksLikeERDiagram,
484
500
  parseERDiagram
485
- } from "./chunk-REJAIQ5S.js";
501
+ } from "./chunk-BR7AYN76.js";
486
502
  import {
487
503
  parseOrg
488
- } from "./chunk-NNS4E7CW.js";
504
+ } from "./chunk-SGPFVDUL.js";
489
505
  import {
490
506
  looksLikeSitemap,
491
507
  parseSitemap
492
- } from "./chunk-HBPDFCQY.js";
508
+ } from "./chunk-XEAQDIMF.js";
509
+ import "./chunk-IYULMRBE.js";
493
510
  import {
494
511
  extractPertSymbols,
495
512
  looksLikePert,
496
513
  parsePert
497
- } from "./chunk-K4EOKJA6.js";
498
- import {
499
- formatLocalISODate
500
- } from "./chunk-7L4UJOY6.js";
501
- import "./chunk-USZW2HHU.js";
514
+ } from "./chunk-P3H7QVDH.js";
515
+ import "./chunk-3TYUXC7D.js";
516
+ import "./chunk-EQW6HOP4.js";
502
517
  import {
503
518
  parseEventLine
504
- } from "./chunk-J6QROYDA.js";
519
+ } from "./chunk-UK6DKJLD.js";
505
520
  import {
506
521
  addDurationToDate,
507
522
  parseTimelineDate
508
- } from "./chunk-R3YSD62R.js";
523
+ } from "./chunk-6AUZPPAV.js";
509
524
  import "./chunk-DAOFNU6J.js";
510
525
  import {
511
526
  parseVersionControl
512
- } from "./chunk-3YRPZ7ZZ.js";
513
- import {
514
- parseKanban
515
- } from "./chunk-3QD7VP3U.js";
516
- import {
517
- parseC4
518
- } from "./chunk-BPY242XU.js";
519
- import "./chunk-IYULMRBE.js";
527
+ } from "./chunk-FXCB7H5O.js";
520
528
  import {
521
529
  atlasPalette,
522
530
  blueprintPalette,
@@ -541,46 +549,40 @@ import {
541
549
  shade,
542
550
  shapeFill,
543
551
  tint
544
- } from "./chunk-WBM7ZNDI.js";
552
+ } from "./chunk-JYDMBWRP.js";
553
+ import {
554
+ LEGEND_GEAR_PILL_W,
555
+ LEGEND_HEIGHT
556
+ } from "./chunk-4RGZFA7H.js";
557
+ import "./chunk-4ASYQ347.js";
545
558
  import {
546
559
  isSequenceBlock,
547
560
  isSequenceNote,
548
561
  looksLikeSequence,
549
562
  parseSequenceDgmo
550
- } from "./chunk-QJMKPUYK.js";
563
+ } from "./chunk-22OQWBWD.js";
551
564
  import {
552
565
  RULE_COUNT,
553
566
  inferParticipantType
554
567
  } from "./chunk-C3Z4DX3V.js";
555
568
  import {
556
569
  autoTagColorCycle,
557
- isTagBlockHeading,
558
- matchTagBlockHeading,
559
570
  tagAttrKey
560
- } from "./chunk-HHKO6SKY.js";
571
+ } from "./chunk-CMVZWP32.js";
561
572
  import {
562
573
  extractSymbols,
563
574
  looksLikeFlowchart,
564
575
  parseFlowchart
565
- } from "./chunk-6EJITS44.js";
576
+ } from "./chunk-JTMSWEIW.js";
566
577
  import "./chunk-I46X5VUA.js";
567
- import {
568
- looksLikeState,
569
- parseState
570
- } from "./chunk-ROOE4R4Y.js";
571
578
  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
+ import "./chunk-ZXUAPTCK.js";
580
+ import "./chunk-QZAW5SFH.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,
@@ -590,7 +592,7 @@ import {
590
592
  ALL_CHART_TYPES,
591
593
  measureIndent,
592
594
  parseFirstLine
593
- } from "./chunk-BRENJ2BQ.js";
595
+ } from "./chunk-YJVA3QUU.js";
594
596
  import {
595
597
  INVALID_COLOR_CODE,
596
598
  INVALID_CSS_COLOR_HEX,
@@ -604,11 +606,11 @@ import {
604
606
  resolveColor,
605
607
  resolveColorWithDiagnostic,
606
608
  seriesColors
607
- } from "./chunk-TLVIHFRO.js";
609
+ } from "./chunk-ZKPPI6BF.js";
608
610
  import {
609
611
  formatDgmoError,
610
612
  makeDgmoError
611
- } from "./chunk-CXK4DZH3.js";
613
+ } from "./chunk-4W2PE66Q.js";
612
614
  import "./chunk-5WRI5ZAA.js";
613
615
 
614
616
  // src/boxes-and-lines/collapse.ts
@@ -957,29 +959,6 @@ function validateComputed(computed) {
957
959
  return diagnostics;
958
960
  }
959
961
 
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
962
  // src/countdown/ticker.ts
984
963
  function pad2(n) {
985
964
  return n < 10 ? "0" + n : String(n);
@@ -1120,9 +1099,10 @@ function updateNode(node, now) {
1120
1099
  });
1121
1100
  text = remaining < 0 ? `${clock} ago` : clock;
1122
1101
  } else if (expiredNow) {
1123
- if (units === "compound" || units === "human")
1124
- text = `${formatCompound(resolvedMs, now, 2, tz)} ago`;
1125
- else {
1102
+ if (units === "compound" || units === "human") {
1103
+ const [a, b] = hasTime ? [resolvedMs, now] : [dayStart(resolvedMs, tz), dayStart(now, tz)];
1104
+ text = `${formatCompound(a, b, 2, tz)} ago`;
1105
+ } else {
1126
1106
  const elapsed = -remaining;
1127
1107
  text = elapsed <= 0 ? "Now!" : `${formatCount(elapsed, { units, round, fields })} ago`;
1128
1108
  }
@@ -1343,15 +1323,66 @@ function haversineKm(lat1, lon1, lat2, lon2) {
1343
1323
  return 2 * EARTH_R_KM * Math.asin(Math.min(1, Math.sqrt(a)));
1344
1324
  }
1345
1325
  var POP_PULL_KM = 12;
1326
+ var BAND_DEG = 5;
1327
+ var BAND_COUNT = 180 / BAND_DEG;
1328
+ var KM_PER_DEG = EARTH_R_KM * DEG;
1329
+ var cityBandIndexCache = /* @__PURE__ */ new WeakMap();
1330
+ function bandOf(lat) {
1331
+ return Math.min(
1332
+ BAND_COUNT - 1,
1333
+ Math.max(0, Math.floor((lat + 90) / BAND_DEG))
1334
+ );
1335
+ }
1336
+ function cityBandIndex(gazetteer) {
1337
+ let idx = cityBandIndexCache.get(gazetteer);
1338
+ if (!idx) {
1339
+ const bands = Array.from({ length: BAND_COUNT }, () => []);
1340
+ let maxPop = 0;
1341
+ const cities = gazetteer.cities;
1342
+ for (let i = 0; i < cities.length; i++) {
1343
+ const c = cities[i];
1344
+ bands[bandOf(c[0])].push(i);
1345
+ const pop = c[3] || 0;
1346
+ if (pop > maxPop) maxPop = pop;
1347
+ }
1348
+ idx = { bands, maxPullKm: POP_PULL_KM * Math.log10(maxPop + 1) };
1349
+ cityBandIndexCache.set(gazetteer, idx);
1350
+ }
1351
+ return idx;
1352
+ }
1346
1353
  function nearestCity(lonLat, gazetteer) {
1347
1354
  const [lon, lat] = lonLat;
1348
- let best = null;
1349
1355
  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 };
1356
+ const { bands, maxPullKm } = cityBandIndex(gazetteer);
1357
+ const bandMinKm = (b) => {
1358
+ const south = b * BAND_DEG - 90;
1359
+ const north = south + BAND_DEG;
1360
+ const dDeg = lat < south ? south - lat : lat > north ? lat - north : 0;
1361
+ return dDeg * KM_PER_DEG;
1362
+ };
1363
+ const b0 = bandOf(lat);
1364
+ let best = null;
1365
+ for (let r = 0; r < BAND_COUNT; r++) {
1366
+ const lo = b0 - r;
1367
+ const hi = b0 + r;
1368
+ if (lo < 0 && hi >= BAND_COUNT) break;
1369
+ if (r > 0) {
1370
+ const minKm = Math.min(
1371
+ lo >= 0 ? bandMinKm(lo) : Infinity,
1372
+ hi < BAND_COUNT ? bandMinKm(hi) : Infinity
1373
+ );
1374
+ if (best && minKm - maxPullKm > best.score) break;
1375
+ }
1376
+ const scan = r === 0 ? [b0] : [lo, hi].filter((b) => b >= 0 && b < BAND_COUNT);
1377
+ for (const b of scan) {
1378
+ for (const i of bands[b]) {
1379
+ const c2 = cities[i];
1380
+ const dist = haversineKm(lat, lon, c2[0], c2[1]);
1381
+ const score = dist - POP_PULL_KM * Math.log10((c2[3] || 0) + 1);
1382
+ if (!best || score < best.score || score === best.score && i < best.idx)
1383
+ best = { score, idx: i, dist };
1384
+ }
1385
+ }
1355
1386
  }
1356
1387
  if (!best) return null;
1357
1388
  const c = cities[best.idx];
@@ -1579,370 +1610,6 @@ function insertionLineFor(task, roleId, parsed) {
1579
1610
  }
1580
1611
  return lastAssignmentLine;
1581
1612
  }
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
1613
  export {
1947
1614
  ALL_CHART_TYPES,
1948
1615
  ARROW_DIAGNOSTIC_CODES,