@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
@@ -0,0 +1,566 @@
1
+ import {
2
+ __commonJS,
3
+ __toESM
4
+ } from "./chunk-5WRI5ZAA.js";
5
+
6
+ // node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.js
7
+ var require_lz_string = __commonJS({
8
+ "node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.js"(exports, module) {
9
+ "use strict";
10
+ var LZString = (function() {
11
+ var f = String.fromCharCode;
12
+ var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
13
+ var keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";
14
+ var baseReverseDic = {};
15
+ function getBaseValue(alphabet, character) {
16
+ if (!baseReverseDic[alphabet]) {
17
+ baseReverseDic[alphabet] = {};
18
+ for (var i = 0; i < alphabet.length; i++) {
19
+ baseReverseDic[alphabet][alphabet.charAt(i)] = i;
20
+ }
21
+ }
22
+ return baseReverseDic[alphabet][character];
23
+ }
24
+ var LZString2 = {
25
+ compressToBase64: function(input) {
26
+ if (input == null) return "";
27
+ var res = LZString2._compress(input, 6, function(a) {
28
+ return keyStrBase64.charAt(a);
29
+ });
30
+ switch (res.length % 4) {
31
+ // To produce valid Base64
32
+ default:
33
+ // When could this happen ?
34
+ case 0:
35
+ return res;
36
+ case 1:
37
+ return res + "===";
38
+ case 2:
39
+ return res + "==";
40
+ case 3:
41
+ return res + "=";
42
+ }
43
+ },
44
+ decompressFromBase64: function(input) {
45
+ if (input == null) return "";
46
+ if (input == "") return null;
47
+ return LZString2._decompress(input.length, 32, function(index) {
48
+ return getBaseValue(keyStrBase64, input.charAt(index));
49
+ });
50
+ },
51
+ compressToUTF16: function(input) {
52
+ if (input == null) return "";
53
+ return LZString2._compress(input, 15, function(a) {
54
+ return f(a + 32);
55
+ }) + " ";
56
+ },
57
+ decompressFromUTF16: function(compressed) {
58
+ if (compressed == null) return "";
59
+ if (compressed == "") return null;
60
+ return LZString2._decompress(compressed.length, 16384, function(index) {
61
+ return compressed.charCodeAt(index) - 32;
62
+ });
63
+ },
64
+ //compress into uint8array (UCS-2 big endian format)
65
+ compressToUint8Array: function(uncompressed) {
66
+ var compressed = LZString2.compress(uncompressed);
67
+ var buf = new Uint8Array(compressed.length * 2);
68
+ for (var i = 0, TotalLen = compressed.length; i < TotalLen; i++) {
69
+ var current_value = compressed.charCodeAt(i);
70
+ buf[i * 2] = current_value >>> 8;
71
+ buf[i * 2 + 1] = current_value % 256;
72
+ }
73
+ return buf;
74
+ },
75
+ //decompress from uint8array (UCS-2 big endian format)
76
+ decompressFromUint8Array: function(compressed) {
77
+ if (compressed === null || compressed === void 0) {
78
+ return LZString2.decompress(compressed);
79
+ } else {
80
+ var buf = new Array(compressed.length / 2);
81
+ for (var i = 0, TotalLen = buf.length; i < TotalLen; i++) {
82
+ buf[i] = compressed[i * 2] * 256 + compressed[i * 2 + 1];
83
+ }
84
+ var result = [];
85
+ buf.forEach(function(c) {
86
+ result.push(f(c));
87
+ });
88
+ return LZString2.decompress(result.join(""));
89
+ }
90
+ },
91
+ //compress into a string that is already URI encoded
92
+ compressToEncodedURIComponent: function(input) {
93
+ if (input == null) return "";
94
+ return LZString2._compress(input, 6, function(a) {
95
+ return keyStrUriSafe.charAt(a);
96
+ });
97
+ },
98
+ //decompress from an output of compressToEncodedURIComponent
99
+ decompressFromEncodedURIComponent: function(input) {
100
+ if (input == null) return "";
101
+ if (input == "") return null;
102
+ input = input.replace(/ /g, "+");
103
+ return LZString2._decompress(input.length, 32, function(index) {
104
+ return getBaseValue(keyStrUriSafe, input.charAt(index));
105
+ });
106
+ },
107
+ compress: function(uncompressed) {
108
+ return LZString2._compress(uncompressed, 16, function(a) {
109
+ return f(a);
110
+ });
111
+ },
112
+ _compress: function(uncompressed, bitsPerChar, getCharFromInt) {
113
+ if (uncompressed == null) return "";
114
+ var i, value, context_dictionary = {}, context_dictionaryToCreate = {}, context_c = "", context_wc = "", context_w = "", context_enlargeIn = 2, context_dictSize = 3, context_numBits = 2, context_data = [], context_data_val = 0, context_data_position = 0, ii;
115
+ for (ii = 0; ii < uncompressed.length; ii += 1) {
116
+ context_c = uncompressed.charAt(ii);
117
+ if (!Object.prototype.hasOwnProperty.call(context_dictionary, context_c)) {
118
+ context_dictionary[context_c] = context_dictSize++;
119
+ context_dictionaryToCreate[context_c] = true;
120
+ }
121
+ context_wc = context_w + context_c;
122
+ if (Object.prototype.hasOwnProperty.call(context_dictionary, context_wc)) {
123
+ context_w = context_wc;
124
+ } else {
125
+ if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
126
+ if (context_w.charCodeAt(0) < 256) {
127
+ for (i = 0; i < context_numBits; i++) {
128
+ context_data_val = context_data_val << 1;
129
+ if (context_data_position == bitsPerChar - 1) {
130
+ context_data_position = 0;
131
+ context_data.push(getCharFromInt(context_data_val));
132
+ context_data_val = 0;
133
+ } else {
134
+ context_data_position++;
135
+ }
136
+ }
137
+ value = context_w.charCodeAt(0);
138
+ for (i = 0; i < 8; i++) {
139
+ context_data_val = context_data_val << 1 | value & 1;
140
+ if (context_data_position == bitsPerChar - 1) {
141
+ context_data_position = 0;
142
+ context_data.push(getCharFromInt(context_data_val));
143
+ context_data_val = 0;
144
+ } else {
145
+ context_data_position++;
146
+ }
147
+ value = value >> 1;
148
+ }
149
+ } else {
150
+ value = 1;
151
+ for (i = 0; i < context_numBits; i++) {
152
+ context_data_val = context_data_val << 1 | value;
153
+ if (context_data_position == bitsPerChar - 1) {
154
+ context_data_position = 0;
155
+ context_data.push(getCharFromInt(context_data_val));
156
+ context_data_val = 0;
157
+ } else {
158
+ context_data_position++;
159
+ }
160
+ value = 0;
161
+ }
162
+ value = context_w.charCodeAt(0);
163
+ for (i = 0; i < 16; i++) {
164
+ context_data_val = context_data_val << 1 | value & 1;
165
+ if (context_data_position == bitsPerChar - 1) {
166
+ context_data_position = 0;
167
+ context_data.push(getCharFromInt(context_data_val));
168
+ context_data_val = 0;
169
+ } else {
170
+ context_data_position++;
171
+ }
172
+ value = value >> 1;
173
+ }
174
+ }
175
+ context_enlargeIn--;
176
+ if (context_enlargeIn == 0) {
177
+ context_enlargeIn = Math.pow(2, context_numBits);
178
+ context_numBits++;
179
+ }
180
+ delete context_dictionaryToCreate[context_w];
181
+ } else {
182
+ value = context_dictionary[context_w];
183
+ for (i = 0; i < context_numBits; i++) {
184
+ context_data_val = context_data_val << 1 | value & 1;
185
+ if (context_data_position == bitsPerChar - 1) {
186
+ context_data_position = 0;
187
+ context_data.push(getCharFromInt(context_data_val));
188
+ context_data_val = 0;
189
+ } else {
190
+ context_data_position++;
191
+ }
192
+ value = value >> 1;
193
+ }
194
+ }
195
+ context_enlargeIn--;
196
+ if (context_enlargeIn == 0) {
197
+ context_enlargeIn = Math.pow(2, context_numBits);
198
+ context_numBits++;
199
+ }
200
+ context_dictionary[context_wc] = context_dictSize++;
201
+ context_w = String(context_c);
202
+ }
203
+ }
204
+ if (context_w !== "") {
205
+ if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
206
+ if (context_w.charCodeAt(0) < 256) {
207
+ for (i = 0; i < context_numBits; i++) {
208
+ context_data_val = context_data_val << 1;
209
+ if (context_data_position == bitsPerChar - 1) {
210
+ context_data_position = 0;
211
+ context_data.push(getCharFromInt(context_data_val));
212
+ context_data_val = 0;
213
+ } else {
214
+ context_data_position++;
215
+ }
216
+ }
217
+ value = context_w.charCodeAt(0);
218
+ for (i = 0; i < 8; i++) {
219
+ context_data_val = context_data_val << 1 | value & 1;
220
+ if (context_data_position == bitsPerChar - 1) {
221
+ context_data_position = 0;
222
+ context_data.push(getCharFromInt(context_data_val));
223
+ context_data_val = 0;
224
+ } else {
225
+ context_data_position++;
226
+ }
227
+ value = value >> 1;
228
+ }
229
+ } else {
230
+ value = 1;
231
+ for (i = 0; i < context_numBits; i++) {
232
+ context_data_val = context_data_val << 1 | value;
233
+ if (context_data_position == bitsPerChar - 1) {
234
+ context_data_position = 0;
235
+ context_data.push(getCharFromInt(context_data_val));
236
+ context_data_val = 0;
237
+ } else {
238
+ context_data_position++;
239
+ }
240
+ value = 0;
241
+ }
242
+ value = context_w.charCodeAt(0);
243
+ for (i = 0; i < 16; i++) {
244
+ context_data_val = context_data_val << 1 | value & 1;
245
+ if (context_data_position == bitsPerChar - 1) {
246
+ context_data_position = 0;
247
+ context_data.push(getCharFromInt(context_data_val));
248
+ context_data_val = 0;
249
+ } else {
250
+ context_data_position++;
251
+ }
252
+ value = value >> 1;
253
+ }
254
+ }
255
+ context_enlargeIn--;
256
+ if (context_enlargeIn == 0) {
257
+ context_enlargeIn = Math.pow(2, context_numBits);
258
+ context_numBits++;
259
+ }
260
+ delete context_dictionaryToCreate[context_w];
261
+ } else {
262
+ value = context_dictionary[context_w];
263
+ for (i = 0; i < context_numBits; i++) {
264
+ context_data_val = context_data_val << 1 | value & 1;
265
+ if (context_data_position == bitsPerChar - 1) {
266
+ context_data_position = 0;
267
+ context_data.push(getCharFromInt(context_data_val));
268
+ context_data_val = 0;
269
+ } else {
270
+ context_data_position++;
271
+ }
272
+ value = value >> 1;
273
+ }
274
+ }
275
+ context_enlargeIn--;
276
+ if (context_enlargeIn == 0) {
277
+ context_enlargeIn = Math.pow(2, context_numBits);
278
+ context_numBits++;
279
+ }
280
+ }
281
+ value = 2;
282
+ for (i = 0; i < context_numBits; i++) {
283
+ context_data_val = context_data_val << 1 | value & 1;
284
+ if (context_data_position == bitsPerChar - 1) {
285
+ context_data_position = 0;
286
+ context_data.push(getCharFromInt(context_data_val));
287
+ context_data_val = 0;
288
+ } else {
289
+ context_data_position++;
290
+ }
291
+ value = value >> 1;
292
+ }
293
+ while (true) {
294
+ context_data_val = context_data_val << 1;
295
+ if (context_data_position == bitsPerChar - 1) {
296
+ context_data.push(getCharFromInt(context_data_val));
297
+ break;
298
+ } else context_data_position++;
299
+ }
300
+ return context_data.join("");
301
+ },
302
+ decompress: function(compressed) {
303
+ if (compressed == null) return "";
304
+ if (compressed == "") return null;
305
+ return LZString2._decompress(compressed.length, 32768, function(index) {
306
+ return compressed.charCodeAt(index);
307
+ });
308
+ },
309
+ _decompress: function(length, resetValue, getNextValue) {
310
+ var dictionary = [], next, enlargeIn = 4, dictSize = 4, numBits = 3, entry = "", result = [], i, w, bits, resb, maxpower, power, c, data = { val: getNextValue(0), position: resetValue, index: 1 };
311
+ for (i = 0; i < 3; i += 1) {
312
+ dictionary[i] = i;
313
+ }
314
+ bits = 0;
315
+ maxpower = Math.pow(2, 2);
316
+ power = 1;
317
+ while (power != maxpower) {
318
+ resb = data.val & data.position;
319
+ data.position >>= 1;
320
+ if (data.position == 0) {
321
+ data.position = resetValue;
322
+ data.val = getNextValue(data.index++);
323
+ }
324
+ bits |= (resb > 0 ? 1 : 0) * power;
325
+ power <<= 1;
326
+ }
327
+ switch (next = bits) {
328
+ case 0:
329
+ bits = 0;
330
+ maxpower = Math.pow(2, 8);
331
+ power = 1;
332
+ while (power != maxpower) {
333
+ resb = data.val & data.position;
334
+ data.position >>= 1;
335
+ if (data.position == 0) {
336
+ data.position = resetValue;
337
+ data.val = getNextValue(data.index++);
338
+ }
339
+ bits |= (resb > 0 ? 1 : 0) * power;
340
+ power <<= 1;
341
+ }
342
+ c = f(bits);
343
+ break;
344
+ case 1:
345
+ bits = 0;
346
+ maxpower = Math.pow(2, 16);
347
+ power = 1;
348
+ while (power != maxpower) {
349
+ resb = data.val & data.position;
350
+ data.position >>= 1;
351
+ if (data.position == 0) {
352
+ data.position = resetValue;
353
+ data.val = getNextValue(data.index++);
354
+ }
355
+ bits |= (resb > 0 ? 1 : 0) * power;
356
+ power <<= 1;
357
+ }
358
+ c = f(bits);
359
+ break;
360
+ case 2:
361
+ return "";
362
+ }
363
+ dictionary[3] = c;
364
+ w = c;
365
+ result.push(c);
366
+ while (true) {
367
+ if (data.index > length) {
368
+ return "";
369
+ }
370
+ bits = 0;
371
+ maxpower = Math.pow(2, numBits);
372
+ power = 1;
373
+ while (power != maxpower) {
374
+ resb = data.val & data.position;
375
+ data.position >>= 1;
376
+ if (data.position == 0) {
377
+ data.position = resetValue;
378
+ data.val = getNextValue(data.index++);
379
+ }
380
+ bits |= (resb > 0 ? 1 : 0) * power;
381
+ power <<= 1;
382
+ }
383
+ switch (c = bits) {
384
+ case 0:
385
+ bits = 0;
386
+ maxpower = Math.pow(2, 8);
387
+ power = 1;
388
+ while (power != maxpower) {
389
+ resb = data.val & data.position;
390
+ data.position >>= 1;
391
+ if (data.position == 0) {
392
+ data.position = resetValue;
393
+ data.val = getNextValue(data.index++);
394
+ }
395
+ bits |= (resb > 0 ? 1 : 0) * power;
396
+ power <<= 1;
397
+ }
398
+ dictionary[dictSize++] = f(bits);
399
+ c = dictSize - 1;
400
+ enlargeIn--;
401
+ break;
402
+ case 1:
403
+ bits = 0;
404
+ maxpower = Math.pow(2, 16);
405
+ power = 1;
406
+ while (power != maxpower) {
407
+ resb = data.val & data.position;
408
+ data.position >>= 1;
409
+ if (data.position == 0) {
410
+ data.position = resetValue;
411
+ data.val = getNextValue(data.index++);
412
+ }
413
+ bits |= (resb > 0 ? 1 : 0) * power;
414
+ power <<= 1;
415
+ }
416
+ dictionary[dictSize++] = f(bits);
417
+ c = dictSize - 1;
418
+ enlargeIn--;
419
+ break;
420
+ case 2:
421
+ return result.join("");
422
+ }
423
+ if (enlargeIn == 0) {
424
+ enlargeIn = Math.pow(2, numBits);
425
+ numBits++;
426
+ }
427
+ if (dictionary[c]) {
428
+ entry = dictionary[c];
429
+ } else {
430
+ if (c === dictSize) {
431
+ entry = w + w.charAt(0);
432
+ } else {
433
+ return null;
434
+ }
435
+ }
436
+ result.push(entry);
437
+ dictionary[dictSize++] = w + entry.charAt(0);
438
+ enlargeIn--;
439
+ w = entry;
440
+ if (enlargeIn == 0) {
441
+ enlargeIn = Math.pow(2, numBits);
442
+ numBits++;
443
+ }
444
+ }
445
+ }
446
+ };
447
+ return LZString2;
448
+ })();
449
+ if (typeof define === "function" && define.amd) {
450
+ define(function() {
451
+ return LZString;
452
+ });
453
+ } else if (typeof module !== "undefined" && module != null) {
454
+ module.exports = LZString;
455
+ } else if (typeof angular !== "undefined" && angular != null) {
456
+ angular.module("LZString", []).factory("LZString", function() {
457
+ return LZString;
458
+ });
459
+ }
460
+ }
461
+ });
462
+
463
+ // src/sharing.ts
464
+ var import_lz_string = __toESM(require_lz_string(), 1);
465
+ var DEFAULT_BASE_URL = "https://online.diagrammo.app";
466
+ var COMPRESSED_SIZE_LIMIT = 8192;
467
+ function encodeViewState(state) {
468
+ const keys = Object.keys(state);
469
+ if (keys.length === 0) return "";
470
+ return (0, import_lz_string.compressToEncodedURIComponent)(JSON.stringify(state));
471
+ }
472
+ function decodeViewState(encoded) {
473
+ if (!encoded) return {};
474
+ try {
475
+ const json = (0, import_lz_string.decompressFromEncodedURIComponent)(encoded);
476
+ if (!json) return {};
477
+ const parsed = JSON.parse(json);
478
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
479
+ return {};
480
+ return parsed;
481
+ } catch {
482
+ return {};
483
+ }
484
+ }
485
+ function encodeDiagramUrl(dsl, options) {
486
+ const baseUrl = options?.baseUrl ?? DEFAULT_BASE_URL;
487
+ const compressed = (0, import_lz_string.compressToEncodedURIComponent)(dsl);
488
+ const byteSize = new TextEncoder().encode(compressed).byteLength;
489
+ if (byteSize > COMPRESSED_SIZE_LIMIT) {
490
+ return {
491
+ error: "too-large",
492
+ compressedSize: byteSize,
493
+ limit: COMPRESSED_SIZE_LIMIT
494
+ };
495
+ }
496
+ let hash = `dgmo=${compressed}`;
497
+ if (options?.viewState) {
498
+ const vsEncoded = encodeViewState(options.viewState);
499
+ if (vsEncoded) {
500
+ hash += `&vs=${vsEncoded}`;
501
+ }
502
+ }
503
+ if (options?.palette && options.palette !== "nord") {
504
+ hash += `&pal=${encodeURIComponent(options.palette)}`;
505
+ }
506
+ if (options?.theme && options.theme !== "dark") {
507
+ hash += `&th=${encodeURIComponent(options.theme)}`;
508
+ }
509
+ if (options?.filename) {
510
+ hash += `&fn=${encodeURIComponent(options.filename)}`;
511
+ }
512
+ return { url: `${baseUrl}?${hash}#${hash}` };
513
+ }
514
+ function decodeDiagramUrl(hash) {
515
+ const empty = { dsl: "", viewState: {} };
516
+ let filename;
517
+ let palette;
518
+ let theme;
519
+ if (!hash) return empty;
520
+ let raw = hash;
521
+ if (raw.startsWith("#") || raw.startsWith("?")) {
522
+ raw = raw.slice(1);
523
+ }
524
+ const parts = raw.split("&");
525
+ let payload = parts[0];
526
+ let viewState = {};
527
+ for (let i = 1; i < parts.length; i++) {
528
+ const part = parts[i];
529
+ const eq = part.indexOf("=");
530
+ if (eq === -1) continue;
531
+ const key = part.slice(0, eq);
532
+ const val = part.slice(eq + 1);
533
+ if (key === "vs" && val) {
534
+ viewState = decodeViewState(val);
535
+ }
536
+ if (key === "pal" && val) palette = decodeURIComponent(val);
537
+ if (key === "th") {
538
+ const decoded = decodeURIComponent(val);
539
+ if (decoded === "light" || decoded === "dark") theme = decoded;
540
+ }
541
+ if (key === "fn" && val) filename = decodeURIComponent(val);
542
+ }
543
+ if (payload.startsWith("dgmo=")) {
544
+ payload = payload.slice(5);
545
+ }
546
+ const extras = {
547
+ ...palette !== void 0 && { palette },
548
+ ...theme !== void 0 && { theme },
549
+ ...filename !== void 0 && { filename }
550
+ };
551
+ if (!payload) return { dsl: "", viewState, ...extras };
552
+ try {
553
+ const result = (0, import_lz_string.decompressFromEncodedURIComponent)(payload);
554
+ return { dsl: result ?? "", viewState, ...extras };
555
+ } catch {
556
+ return { dsl: "", viewState, ...extras };
557
+ }
558
+ }
559
+
560
+ export {
561
+ encodeViewState,
562
+ decodeViewState,
563
+ encodeDiagramUrl,
564
+ decodeDiagramUrl
565
+ };
566
+ //# sourceMappingURL=chunk-U7VO6JAA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  acyclicOrient
3
- } from "./chunk-WRNFDFPU.js";
3
+ } from "./chunk-7U4OR7CD.js";
4
4
 
5
5
  // src/swimlane/layout.ts
6
6
  var MARGIN = 30;
@@ -419,4 +419,4 @@ function layoutSwimlane(parsed) {
419
419
  export {
420
420
  layoutSwimlane
421
421
  };
422
- //# sourceMappingURL=chunk-MX2EY5Y7.js.map
422
+ //# sourceMappingURL=chunk-UEU6IYKY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  extractDatePrefix,
3
3
  parseTimelineDate
4
- } from "./chunk-R3YSD62R.js";
4
+ } from "./chunk-3KHJJP3J.js";
5
5
  import {
6
6
  makeYearContext,
7
7
  parseDateToken,
@@ -16,7 +16,7 @@ import {
16
16
  tagAttrKey,
17
17
  validateTagGroupNames,
18
18
  validateTagValues
19
- } from "./chunk-HHKO6SKY.js";
19
+ } from "./chunk-AHTTKERF.js";
20
20
  import {
21
21
  EVENT_LINE_REGISTRY,
22
22
  extractColor,
@@ -27,14 +27,14 @@ import {
27
27
  tryParseSharedOption,
28
28
  warnUnknownMetaKeys,
29
29
  withTagAliases
30
- } from "./chunk-BRENJ2BQ.js";
30
+ } from "./chunk-3FRO35WW.js";
31
31
  import {
32
32
  emit,
33
33
  formatDgmoError,
34
34
  makeDgmoError,
35
35
  makeFail,
36
36
  suggest
37
- } from "./chunk-CXK4DZH3.js";
37
+ } from "./chunk-4W2PE66Q.js";
38
38
 
39
39
  // src/event-line/diagnostics.ts
40
40
  var EVENT_LINE_DX = {
@@ -65,8 +65,9 @@ var EVENT_LINE_DX = {
65
65
  },
66
66
  // parser.ts emits three wordings under this one code (each passes the full
67
67
  // wording as `reason`):
68
- // directive handler: `event-line is horizontal-only in v1; \`direction ${dir}\`
69
- // (vertical orientation) is a fast-follow.`
68
+ // directive handler: `event-line is horizontal-only in v1; \`direction-tb\`
69
+ // (vertical orientation) is a fast-follow.` (the
70
+ // legacy key+value form words it as \`direction ${dir}\`)
70
71
  // `section` seam: 'Group events with `[Name]` era brackets (§28.6a), not `section`.'
71
72
  // parseEventHeader: 'event-line events are points; a date range (`->`) is not
72
73
  // supported — using the start date.'
@@ -76,10 +77,10 @@ var EVENT_LINE_DX = {
76
77
  severity: "warning",
77
78
  chartType: "event-line",
78
79
  title: "Unsupported construct",
79
- message: (p) => typeof p.reason === "string" && p.reason ? p.reason : "event-line is horizontal-only in v1; `direction TB` (vertical orientation) is a fast-follow.",
80
- hint: "Only horizontal (`direction LR`) is supported; use `[Name]` era brackets (not `section`); events are single points, not date ranges (`->`).",
80
+ message: (p) => typeof p.reason === "string" && p.reason ? p.reason : "event-line is horizontal-only in v1; `direction-tb` (vertical orientation) is a fast-follow.",
81
+ hint: "Only horizontal (`direction-lr`) is supported; use `[Name]` era brackets (not `section`); events are single points, not date ranges (`->`).",
81
82
  example: `event-line X
82
- direction TB
83
+ direction-tb
83
84
 
84
85
  2020 A
85
86
  one`
@@ -297,6 +298,12 @@ function parseEventLine(content, palette) {
297
298
  if (cm) {
298
299
  collapsed = cm[1].toLowerCase() === "true";
299
300
  rest = (rest.slice(0, cm.index) + rest.slice(cm.index + cm[0].length)).trim();
301
+ } else {
302
+ const bare = rest.match(/(?:^|\s)collapsed(?=\s|$)/);
303
+ if (bare) {
304
+ collapsed = true;
305
+ rest = (rest.slice(0, bare.index) + " " + rest.slice(bare.index + bare[0].length)).trim();
306
+ }
300
307
  }
301
308
  let color = null;
302
309
  if (rest) {
@@ -344,6 +351,15 @@ function parseEventLine(content, palette) {
344
351
  continue;
345
352
  }
346
353
  }
354
+ if (/^direction-lr$/i.test(trimmed)) continue;
355
+ if (/^direction-tb$/i.test(trimmed)) {
356
+ result.diagnostics.push(
357
+ emit(EVENT_LINE_DX.UNSUPPORTED, lineNumber, {
358
+ reason: "event-line is horizontal-only in v1; `direction-tb` (vertical orientation) is a fast-follow."
359
+ })
360
+ );
361
+ continue;
362
+ }
347
363
  const dirMatch = trimmed.match(DIRECTION_RE);
348
364
  if (dirMatch) {
349
365
  const dir = dirMatch[1].toUpperCase();
@@ -602,4 +618,4 @@ export {
602
618
  EVENT_LINE_DIAGNOSTICS,
603
619
  parseEventLine
604
620
  };
605
- //# sourceMappingURL=chunk-J6QROYDA.js.map
621
+ //# sourceMappingURL=chunk-UIT7E6UF.js.map
@@ -2,13 +2,13 @@ import {
2
2
  addGanttDuration,
3
3
  buildHolidaySet,
4
4
  parseGanttDate
5
- } from "./chunk-USZW2HHU.js";
5
+ } from "./chunk-EQW6HOP4.js";
6
6
  import {
7
7
  normalizeName
8
8
  } from "./chunk-NOTA6TEI.js";
9
9
  import {
10
10
  makeDgmoError
11
- } from "./chunk-CXK4DZH3.js";
11
+ } from "./chunk-4W2PE66Q.js";
12
12
 
13
13
  // src/gantt/resolver.ts
14
14
  function isResolverError(r) {
@@ -784,4 +784,4 @@ export {
784
784
  resolveTaskName,
785
785
  calculateSchedule
786
786
  };
787
- //# sourceMappingURL=chunk-Z72XRXD4.js.map
787
+ //# sourceMappingURL=chunk-UJRTPOHH.js.map