@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.
- package/.cursorrules +59 -58
- package/.github/copilot-instructions.md +59 -58
- package/.windsurfrules +59 -58
- package/SKILL.md +59 -58
- package/dist/advanced.d.ts +65 -230
- package/dist/advanced.js +278 -611
- package/dist/analyzer-TDN5KJFP.js +15 -0
- package/dist/auto.css +14 -6
- package/dist/auto.js +142 -132
- package/dist/auto.mjs +1117 -452
- package/dist/block.css +14 -6
- package/dist/block.js +85 -72
- package/dist/calculator-VBIT6GQF.js +11 -0
- package/dist/chart-meta-CPNVUZ5J.d.ts +232 -0
- package/dist/chart-meta.d.ts +2 -0
- package/dist/chart-meta.js +105 -0
- package/dist/charts-d3-DH2XA45I.js +26 -0
- package/dist/{chunk-QJMKPUYK.js → chunk-22OQWBWD.js} +14 -7
- package/dist/{chunk-5NGAO4QK.js → chunk-27STWBOK.js} +10 -8
- package/dist/{chunk-QGATPIPX.js → chunk-2QC4HXCY.js} +31 -17
- package/dist/{chunk-HFMYN6N2.js → chunk-3B2GXZCX.js} +4 -3
- package/dist/{chunk-6HQH6JZE.js → chunk-3BEKKRH5.js} +10 -10
- package/dist/{chunk-AL672HNE.js → chunk-3CZLWOCI.js} +17 -7
- package/dist/{chunk-J7TLCB2Q.js → chunk-3IUHKMJI.js} +2 -2
- package/dist/{chunk-7L4UJOY6.js → chunk-3TYUXC7D.js} +2 -2
- package/dist/{chunk-Y2ZE3MSG.js → chunk-43E26CDA.js} +2 -2
- package/dist/{chunk-YTMTPUH4.js → chunk-4ASVFYB2.js} +6 -6
- package/dist/{chunk-WCT3NYCV.js → chunk-4ASYQ347.js} +33 -8
- package/dist/{chunk-ZNWAYU6N.js → chunk-4K42RUGC.js} +33 -9
- package/dist/{chunk-I5IGB56C.js → chunk-4QV26TEG.js} +41 -1
- package/dist/{chunk-QOOUC2J5.js → chunk-4RGZFA7H.js} +2 -2
- package/dist/{chunk-CXK4DZH3.js → chunk-4W2PE66Q.js} +12 -2
- package/dist/{chunk-CIRFIL4M.js → chunk-4WGMGKCZ.js} +13 -13
- package/dist/{chunk-JED6ZDEE.js → chunk-5HWPEYWB.js} +2 -2
- package/dist/{chunk-VQOCMUWI.js → chunk-65V6IRFN.js} +16 -14
- package/dist/{chunk-R3YSD62R.js → chunk-6AUZPPAV.js} +3 -3
- package/dist/{chunk-FQ7HTV52.js → chunk-6DCOIN4W.js} +33 -5
- package/dist/{chunk-MUE65OTD.js → chunk-6HTRCTAS.js} +4 -4
- package/dist/{chunk-TJVLKNGR.js → chunk-6KY7OCZC.js} +5 -5
- package/dist/{chunk-YAA6IID3.js → chunk-774C2FF3.js} +2 -2
- package/dist/{chunk-UBLHQTLV.js → chunk-7GUF6SDR.js} +15 -14
- package/dist/{chunk-5HILBT7X.js → chunk-7JDTNFAK.js} +3 -3
- package/dist/{chunk-QBZYACOG.js → chunk-ADYKAKE3.js} +3 -3
- package/dist/{chunk-H7KENAZO.js → chunk-AHXIMHDQ.js} +74 -14
- package/dist/chunk-AIMLCDAO.js +404 -0
- package/dist/{chunk-4IHAV6O7.js → chunk-ALYZ3MAA.js} +4 -4
- package/dist/{chunk-ROOE4R4Y.js → chunk-AN2DQB3G.js} +146 -18
- package/dist/{chunk-GCYTI3DE.js → chunk-AZNXGWDC.js} +56 -10
- package/dist/{chunk-3LK5DNED.js → chunk-B4XS2AF2.js} +3 -3
- package/dist/{chunk-3HF5YEFJ.js → chunk-BD3WGY4T.js} +4 -4
- package/dist/{chunk-4AQRFDXL.js → chunk-BFDVEO5R.js} +2 -2
- package/dist/{chunk-REJAIQ5S.js → chunk-BR7AYN76.js} +8 -8
- package/dist/{chunk-P3NRSSUU.js → chunk-BULHGPHK.js} +3 -3
- package/dist/{chunk-VILVLS7P.js → chunk-CK2GMDXD.js} +8 -4
- package/dist/{chunk-HHKO6SKY.js → chunk-CMVZWP32.js} +3 -3
- package/dist/{chunk-GJFAMOGK.js → chunk-CQFNIIQN.js} +7 -7
- package/dist/{chunk-FT3ZYWET.js → chunk-DWUMPMV2.js} +11 -10
- package/dist/{chunk-USZW2HHU.js → chunk-EQW6HOP4.js} +4 -3
- package/dist/{chunk-Z5QVYKR7.js → chunk-FFXCKZOU.js} +4 -4
- package/dist/{chunk-WRNFDFPU.js → chunk-FGDSTT3F.js} +2 -2
- package/dist/{chunk-FY5MSZAP.js → chunk-FLDC7ZAK.js} +21 -6
- package/dist/{chunk-AAXZDUOV.js → chunk-FT7TPPZ5.js} +17 -16
- package/dist/{chunk-3QD7VP3U.js → chunk-FUKNRLIJ.js} +14 -7
- package/dist/{chunk-3YRPZ7ZZ.js → chunk-FXCB7H5O.js} +4 -4
- package/dist/{chunk-SMRFPVLQ.js → chunk-GABSL6TH.js} +4 -4
- package/dist/{chunk-BKVOYV6I.js → chunk-GAWKIIPO.js} +17 -17
- package/dist/{chunk-HWX6ZHF3.js → chunk-GMAH572Z.js} +6 -6
- package/dist/{chunk-MUVJ57EP.js → chunk-GMIJ35PW.js} +23 -20
- package/dist/{chunk-7QE3XMRK.js → chunk-GQ644SPD.js} +18 -18
- package/dist/{chunk-5QKQSSPO.js → chunk-GRM2A4BG.js} +4 -4
- package/dist/{chunk-J7KJR3R6.js → chunk-GWQJKTFS.js} +133 -696
- package/dist/{chunk-OTOHI4JO.js → chunk-H3HFC3SQ.js} +2 -2
- package/dist/{chunk-SWSIKFEB.js → chunk-HE5J53SZ.js} +4 -4
- package/dist/{chunk-7BIZCTAX.js → chunk-HNBY6CNV.js} +3 -3
- package/dist/{chunk-J76PIKAT.js → chunk-HO3RCNF6.js} +3 -3
- package/dist/{chunk-44VCIPHF.js → chunk-HORZ5H2L.js} +26 -23
- package/dist/{chunk-MX2EY5Y7.js → chunk-HOXKNRON.js} +2 -2
- package/dist/{chunk-LTXOLDUZ.js → chunk-I64ECJX3.js} +12 -5
- package/dist/{chunk-4YFKQ5WT.js → chunk-IQJCVREL.js} +8 -8
- package/dist/{chunk-YIBAWQGJ.js → chunk-J7HI6G3G.js} +7 -7
- package/dist/{chunk-ICPJPQ5C.js → chunk-JHOAH4TI.js} +3 -3
- package/dist/{chunk-6EJITS44.js → chunk-JTMSWEIW.js} +6 -6
- package/dist/{chunk-WBM7ZNDI.js → chunk-JYDMBWRP.js} +35 -18
- package/dist/{chunk-7DF4J4RL.js → chunk-KKHCNSKK.js} +17 -11
- package/dist/{chunk-4UNQ6X24.js → chunk-KUSAVOWZ.js} +4 -4
- package/dist/{chunk-77FGAVZC.js → chunk-LC3FFD43.js} +21 -19
- package/dist/{chunk-INE5YJBZ.js → chunk-LHILKFDP.js} +10 -10
- package/dist/{chunk-ONU3U4GL.js → chunk-LQHVDZYC.js} +52 -16
- package/dist/{chunk-75G3Q4DK.js → chunk-MA3HJZHB.js} +5 -5
- package/dist/{chunk-QVENJMNX.js → chunk-MEQYZZFR.js} +2 -2
- package/dist/{chunk-IM6PDDCE.js → chunk-NNUMX6WX.js} +42 -12
- package/dist/{chunk-FQMUHRVC.js → chunk-NNYFQOTK.js} +14 -13
- package/dist/{chunk-H6PI3KJT.js → chunk-ODUT5WMC.js} +2 -2
- package/dist/{chunk-K4EOKJA6.js → chunk-P3H7QVDH.js} +42 -15
- package/dist/{chunk-FUPF2UYQ.js → chunk-PIXZTCKH.js} +51 -108
- package/dist/{chunk-BPY242XU.js → chunk-PKNNHU7H.js} +19 -8
- package/dist/{chunk-BPIZNB5O.js → chunk-PT4SW76W.js} +11 -11
- package/dist/{chunk-UNURMIQO.js → chunk-PV2QO7QL.js} +4 -4
- package/dist/{chunk-LGT3PZCJ.js → chunk-PYO4TJJ3.js} +17 -17
- package/dist/{chunk-EMLPOL77.js → chunk-Q7AH665U.js} +15 -8
- package/dist/{chunk-LBMS4AW6.js → chunk-QAALSCKI.js} +14 -14
- package/dist/{chunk-JRCOYRRH.js → chunk-QI3BOLQB.js} +8 -8
- package/dist/{chunk-CCNDLW7Z.js → chunk-QWIBT6DS.js} +13 -13
- package/dist/{chunk-GU46PPT3.js → chunk-QXGACPS2.js} +5 -5
- package/dist/{chunk-FMDSF3OV.js → chunk-QZAW5SFH.js} +2 -2
- package/dist/{chunk-QHXCAEMX.js → chunk-R5NH5BZG.js} +8 -8
- package/dist/{chunk-5223KXFD.js → chunk-RJ5LBZ5U.js} +7 -7
- package/dist/{chunk-PRI2OD4E.js → chunk-RW5PEJ7D.js} +11 -6
- package/dist/{chunk-DYWQFQJP.js → chunk-SG4PRYO3.js} +22 -20
- package/dist/{chunk-NNS4E7CW.js → chunk-SGPFVDUL.js} +15 -6
- package/dist/{chunk-ZEF5M5MB.js → chunk-SQCBSFT5.js} +72 -74
- package/dist/{chunk-3HGU63UY.js → chunk-U7NKYLX2.js} +14 -13
- package/dist/chunk-U7VO6JAA.js +566 -0
- package/dist/{chunk-ZJV7GYR4.js → chunk-UFQJMOVZ.js} +10 -10
- package/dist/{chunk-Z72XRXD4.js → chunk-UJRTPOHH.js} +3 -3
- package/dist/{chunk-J6QROYDA.js → chunk-UK6DKJLD.js} +26 -10
- package/dist/{chunk-QZX5S6R3.js → chunk-UKP5HWB5.js} +149 -89
- package/dist/{chunk-T4A4TSTJ.js → chunk-UQRIKAMH.js} +21 -19
- package/dist/{chunk-TYS6CSS5.js → chunk-UU6LUYUH.js} +2 -2
- package/dist/{chunk-5BHJZH62.js → chunk-UVDCHR4E.js} +18 -6
- package/dist/{chunk-HQQNCY7W.js → chunk-VAO6ANGC.js} +5 -5
- package/dist/{chunk-6NYWYNBI.js → chunk-VGNIDAPQ.js} +4 -4
- package/dist/{chunk-VL2O2F3W.js → chunk-VHO3YBTB.js} +2 -2
- package/dist/{chunk-FHGVORFO.js → chunk-VIRANCNY.js} +14 -14
- package/dist/{chunk-XD6ZYURY.js → chunk-VJHBSPGF.js} +7 -14
- package/dist/{chunk-5RP7JRVP.js → chunk-VKNCC2GX.js} +12 -8
- package/dist/{chunk-TPFKKXCB.js → chunk-VRRDUYOK.js} +7 -7
- package/dist/{chunk-K2I2XOZD.js → chunk-W2DINCHL.js} +11 -11
- package/dist/{chunk-AUIM2NVH.js → chunk-W5KMNC5U.js} +8 -8
- package/dist/{chunk-FFUN5D66.js → chunk-WF64MW5G.js} +2 -2
- package/dist/{chunk-6LBQ7ELG.js → chunk-X3RXGSCZ.js} +40 -21
- package/dist/{chunk-HBPDFCQY.js → chunk-XEAQDIMF.js} +7 -6
- package/dist/{chunk-TTIM6YTT.js → chunk-XG4NWFPY.js} +17 -16
- package/dist/{chunk-7KINELPI.js → chunk-XQ4KN6JQ.js} +23 -23
- package/dist/{chunk-WBRZJOEC.js → chunk-XY3UDKKH.js} +4 -4
- package/dist/{chunk-5SEVICBT.js → chunk-YG2BEIQU.js} +14 -13
- package/dist/{chunk-BRENJ2BQ.js → chunk-YJVA3QUU.js} +24 -4
- package/dist/{chunk-KGVZ5VGH.js → chunk-YR43LJT5.js} +16 -15
- package/dist/{chunk-TLVIHFRO.js → chunk-ZKPPI6BF.js} +2 -2
- package/dist/{chunk-ARGMQ3H4.js → chunk-ZXUAPTCK.js} +3 -3
- package/dist/cli.cjs +156 -154
- package/dist/clock.js +9 -1
- package/dist/countdown.js +4 -3
- package/dist/dgmo-router-B4S23EBH.js +86 -0
- package/dist/dimensions-K6PGYYGT.js +22 -0
- package/dist/editor.js +33 -5
- package/dist/element.js +142 -132
- package/dist/element.mjs +1117 -452
- package/dist/flowchart-parser-LALR6J6F.js +21 -0
- package/dist/{flowchart-renderer-MNCDS7MV.js → flowchart-renderer-DXYB5YRF.js} +14 -14
- package/dist/highlight.js +37 -6
- package/dist/index.d.ts +4 -2
- package/dist/index.js +78 -73
- package/dist/layout-3BVDMKXI.js +15 -0
- package/dist/layout-3M5UYJHY.js +14 -0
- package/dist/{layout-2L3WMRYU.js → layout-3V2A4MUE.js} +8 -8
- package/dist/layout-4IHCMWZN.js +19 -0
- package/dist/layout-5XGYNYVT.js +9 -0
- package/dist/layout-AZUPXWSK.js +15 -0
- package/dist/{layout-F4WO357A.js → layout-CAAKQX4W.js} +3 -3
- package/dist/{layout-A5UHRWVH.js → layout-CB3XWCOI.js} +3 -3
- package/dist/{layout-OAC4PEAC.js → layout-E6HR6PXH.js} +7 -7
- package/dist/{layout-7QXCNOVS.js → layout-HBWT2G23.js} +3 -3
- package/dist/layout-KPQWJNAG.js +14 -0
- package/dist/layout-OL2XFJXA.js +17 -0
- package/dist/layout-WCAIKGZG.js +19 -0
- package/dist/layout-WSMPBQ4Q.js +17 -0
- package/dist/layout-ZE5DRJWX.js +20 -0
- package/dist/{layout-search-55FU6HD3.js → layout-search-34DPZD43.js} +51 -35
- package/dist/legend-constants-P5EQWRQQ.js +49 -0
- package/dist/{palettes-UDLZ2SA4.js → palettes-FGTNFARW.js} +4 -4
- package/dist/{parser-EYCKNKQA.js → parser-275KP7JO.js} +8 -8
- package/dist/parser-27Z76SN3.js +22 -0
- package/dist/parser-3CODK6RG.js +15 -0
- package/dist/{parser-YKYMQG3B.js → parser-3KIGEEJM.js} +6 -6
- package/dist/parser-3VSWEKBF.js +15 -0
- package/dist/parser-4E4I3GNT.js +13 -0
- package/dist/parser-5FGJSQNS.js +12 -0
- package/dist/parser-5HQXCNOS.js +12 -0
- package/dist/parser-5QPFOB5F.js +12 -0
- package/dist/parser-6B6SSZT7.js +11 -0
- package/dist/parser-6PPHAXXH.js +14 -0
- package/dist/parser-7JHWEWXM.js +13 -0
- package/dist/{parser-DQAFLUJB.js → parser-7JVIDLLR.js} +7 -7
- package/dist/parser-CKA3QMAG.js +18 -0
- package/dist/parser-CRKLXGW7.js +13 -0
- package/dist/parser-EXNBDNGY.js +11 -0
- package/dist/parser-FF4BMRSB.js +16 -0
- package/dist/parser-FOOFEJQU.js +13 -0
- package/dist/parser-G26MTBFS.js +11 -0
- package/dist/parser-GKP2MHHL.js +11 -0
- package/dist/parser-GN2MM5CC.js +11 -0
- package/dist/parser-IKWK2ZU3.js +18 -0
- package/dist/parser-IVGHXLZP.js +14 -0
- package/dist/parser-NNIL3HXU.js +11 -0
- package/dist/parser-RNLTBIJ6.js +19 -0
- package/dist/parser-UWRX52PC.js +16 -0
- package/dist/parser-VOERD6XR.js +14 -0
- package/dist/parser-XNKJCMMA.js +13 -0
- package/dist/parser-XVPTRWZ4.js +15 -0
- package/dist/parser-YSLNDFLV.js +22 -0
- package/dist/{parser-ZL5QUFVH.js → parser-ZGNXYFPS.js} +5 -5
- package/dist/parser-ZQDQTB4X.js +20 -0
- package/dist/pert.d.ts +2 -0
- package/dist/registry-CaSw0PSH.d.ts +350 -0
- package/dist/renderer-2C6DJRYN.js +24 -0
- package/dist/renderer-5MPN7CXZ.js +19 -0
- package/dist/renderer-6EN5XXJZ.js +27 -0
- package/dist/renderer-6WRYVM5R.js +24 -0
- package/dist/renderer-7NQSTQMQ.js +16 -0
- package/dist/renderer-7ZNVOVFG.js +16 -0
- package/dist/{renderer-DT4XRFEP.js → renderer-AK2WO4EI.js} +7 -7
- package/dist/renderer-COLQFSFV.js +26 -0
- package/dist/{renderer-3F7OS2AX.js → renderer-CWEFGEIC.js} +15 -15
- package/dist/renderer-D3BRNOMV.js +29 -0
- package/dist/renderer-HIFQVEJA.js +22 -0
- package/dist/renderer-JCZG6AYU.js +28 -0
- package/dist/{renderer-ZWIH4WDW.js → renderer-JTCX6PCG.js} +13 -13
- package/dist/renderer-JWGQSTMR.js +37 -0
- package/dist/{renderer-NHO46CT2.js → renderer-K7XLVPH5.js} +6 -6
- package/dist/renderer-KARQF3F3.js +22 -0
- package/dist/renderer-LVZAHRP6.js +34 -0
- package/dist/{renderer-CQY6ATOS.js → renderer-NE5W7CQP.js} +8 -8
- package/dist/renderer-QD2SJF2I.js +34 -0
- package/dist/renderer-RLMOTXZ6.js +37 -0
- package/dist/renderer-SQ54MDSA.js +26 -0
- package/dist/{renderer-HSHHVYWF.js → renderer-TYHGXAVT.js} +7 -7
- package/dist/renderer-UKXW2QPE.js +23 -0
- package/dist/renderer-UPF7NRTI.js +28 -0
- package/dist/renderer-VMH6L6CP.js +24 -0
- package/dist/{renderer-5DAKMIU2.js → renderer-WCWI4I6A.js} +5 -5
- package/dist/renderer-WFSUBKUL.js +25 -0
- package/dist/renderer-WNFXYYGL.js +21 -0
- package/dist/{renderer-KNFTTOBL.js → renderer-XTXSOK3L.js} +14 -14
- package/dist/renderer-YUKPS27O.js +24 -0
- package/dist/renderer-YUXGXGSW.js +27 -0
- package/dist/renderer-ZBTEX2JK.js +16 -0
- package/dist/renderer-radial-WF6VOUOD.js +21 -0
- package/dist/{resolver-EMTGNR3D.js → resolver-WFKZYBJ2.js} +4 -4
- package/dist/state-parser-L7DHZIQO.js +19 -0
- package/dist/state-renderer-TFEUOP4H.js +38 -0
- package/dist/{themes-32xj5ZTW.d.ts → themes-tbBkIVsn.d.ts} +2 -349
- package/docs/ai-integration.md +59 -58
- package/docs/language-reference.md +323 -286
- package/fonts/Inter-Bold.woff2 +0 -0
- package/fonts/Inter-Regular.woff2 +0 -0
- package/gallery/fixtures/boxes-and-lines-diverging.dgmo +1 -2
- package/gallery/fixtures/boxes-and-lines.dgmo +1 -1
- package/gallery/fixtures/clock.dgmo +1 -1
- package/gallery/fixtures/event-line.dgmo +1 -1
- package/gallery/fixtures/gantt-full.dgmo +1 -1
- package/gallery/fixtures/gantt-sprints.dgmo +9 -9
- package/gallery/fixtures/gantt.dgmo +1 -1
- package/gallery/fixtures/legacy-syntax-backcompat.dgmo +16 -0
- package/gallery/fixtures/state-tags.dgmo +40 -0
- package/gallery/fixtures/swimlane.dgmo +1 -1
- package/gallery/fixtures/timeline-intraday.dgmo +1 -1
- package/package.json +5 -1
- package/dist/analyzer-BJ54GIFB.js +0 -15
- package/dist/calculator-LDYQCDDY.js +0 -11
- package/dist/charts-d3-MXEP6BNP.js +0 -26
- package/dist/dgmo-router-X7ZGAPIE.js +0 -86
- package/dist/dimensions-45H6JQEY.js +0 -22
- package/dist/flowchart-parser-UKELHBSB.js +0 -21
- package/dist/layout-46N4JJYK.js +0 -17
- package/dist/layout-A4XWNVID.js +0 -14
- package/dist/layout-AM2JWW3X.js +0 -15
- package/dist/layout-EE6GE46Y.js +0 -17
- package/dist/layout-G23F7LDH.js +0 -9
- package/dist/layout-GM4UGR7B.js +0 -19
- package/dist/layout-GQQJXNYH.js +0 -15
- package/dist/layout-IIE2S5FK.js +0 -20
- package/dist/layout-VMCRX66I.js +0 -14
- package/dist/layout-ZDOSXL5G.js +0 -19
- package/dist/parser-2ECN6JA2.js +0 -16
- package/dist/parser-4WTIHM5J.js +0 -11
- package/dist/parser-5H2BTSJQ.js +0 -11
- package/dist/parser-75KVXUNS.js +0 -16
- package/dist/parser-774AC53T.js +0 -13
- package/dist/parser-BE4YCSRU.js +0 -11
- package/dist/parser-CNGUQUQI.js +0 -11
- package/dist/parser-DEUUSQIN.js +0 -22
- package/dist/parser-FXISIU6A.js +0 -14
- package/dist/parser-GTB4XC7P.js +0 -18
- package/dist/parser-GVEPAUSD.js +0 -12
- package/dist/parser-HSQGTY4G.js +0 -19
- package/dist/parser-HVKRINUS.js +0 -11
- package/dist/parser-J5MIEYO4.js +0 -15
- package/dist/parser-KMZIXLDZ.js +0 -13
- package/dist/parser-LJHXWSXU.js +0 -14
- package/dist/parser-PT3W72G5.js +0 -15
- package/dist/parser-SBJQDPHL.js +0 -15
- package/dist/parser-SUWWWCMX.js +0 -12
- package/dist/parser-SXDRNZOA.js +0 -13
- package/dist/parser-UMILOW3M.js +0 -14
- package/dist/parser-UP3AZ367.js +0 -13
- package/dist/parser-WHPRV3X5.js +0 -20
- package/dist/parser-WX3UODSJ.js +0 -12
- package/dist/parser-XCIEN3KN.js +0 -13
- package/dist/parser-XIRTUMVN.js +0 -18
- package/dist/parser-YKCGIG45.js +0 -11
- package/dist/parser-ZGM2OJ6Y.js +0 -22
- package/dist/renderer-4QB4K7Q3.js +0 -24
- package/dist/renderer-5H4SY7YY.js +0 -22
- package/dist/renderer-5PIQPFOX.js +0 -16
- package/dist/renderer-6MU37QF5.js +0 -19
- package/dist/renderer-AQVMWJ4M.js +0 -27
- package/dist/renderer-BDDW6K7N.js +0 -24
- package/dist/renderer-BNB3VIDY.js +0 -26
- package/dist/renderer-CVW75CXL.js +0 -37
- package/dist/renderer-ERHBSTQT.js +0 -25
- package/dist/renderer-IDPVUFNB.js +0 -28
- package/dist/renderer-ILX6BGKR.js +0 -21
- package/dist/renderer-JP663HKG.js +0 -22
- package/dist/renderer-MVUZBESR.js +0 -16
- package/dist/renderer-N4EBR2FV.js +0 -28
- package/dist/renderer-NO2QJ5LZ.js +0 -27
- package/dist/renderer-OGFV5RXX.js +0 -34
- package/dist/renderer-PDLESJMS.js +0 -37
- package/dist/renderer-T4MTNINC.js +0 -24
- package/dist/renderer-TOUGFGTM.js +0 -24
- package/dist/renderer-U3KPD43Y.js +0 -34
- package/dist/renderer-X334IJU2.js +0 -26
- package/dist/renderer-Y5OAMOCR.js +0 -23
- package/dist/renderer-YONAKAJU.js +0 -16
- package/dist/renderer-YWMI6Y2U.js +0 -29
- package/dist/renderer-radial-7CGZMVMS.js +0 -21
- package/dist/state-parser-BATWAID2.js +0 -18
- 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-
|
|
14
|
+
} from "./chunk-PIXZTCKH.js";
|
|
5
15
|
import {
|
|
6
16
|
renderClock,
|
|
7
17
|
renderClockForExport
|
|
8
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RJ5LBZ5U.js";
|
|
9
19
|
import {
|
|
10
20
|
layoutBracket,
|
|
11
21
|
renderBracket,
|
|
12
22
|
renderBracketForExport
|
|
13
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QWIBT6DS.js";
|
|
14
24
|
import {
|
|
15
25
|
renderRaci,
|
|
16
26
|
renderRaciForExport
|
|
17
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
66
|
+
} from "./chunk-IQJCVREL.js";
|
|
39
67
|
import {
|
|
40
68
|
renderRing,
|
|
41
69
|
renderRingForExport
|
|
42
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-R5NH5BZG.js";
|
|
43
71
|
import {
|
|
44
72
|
layoutTreemapRadial,
|
|
45
73
|
renderTreemapRadial,
|
|
46
74
|
renderTreemapRadialForExport
|
|
47
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-YG2BEIQU.js";
|
|
48
76
|
import {
|
|
49
77
|
layoutTreemap,
|
|
50
78
|
renderTreemap,
|
|
51
79
|
renderTreemapForExport
|
|
52
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-X3RXGSCZ.js";
|
|
81
|
+
import "./chunk-UVDCHR4E.js";
|
|
53
82
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} from "./chunk-BPIZNB5O.js";
|
|
83
|
+
calculateSchedule,
|
|
84
|
+
collectTasks,
|
|
85
|
+
resolveTaskName
|
|
86
|
+
} from "./chunk-UJRTPOHH.js";
|
|
59
87
|
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
105
|
+
} from "./chunk-7GUF6SDR.js";
|
|
79
106
|
import {
|
|
80
107
|
renderJourneyMap,
|
|
81
108
|
renderJourneyMapForExport
|
|
82
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-4WGMGKCZ.js";
|
|
83
110
|
import {
|
|
84
111
|
layoutJourneyMap
|
|
85
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-J7HI6G3G.js";
|
|
86
113
|
import {
|
|
87
114
|
computeCycleLayout,
|
|
88
115
|
renderCycle,
|
|
89
116
|
renderCycleForExport
|
|
90
|
-
} from "./chunk-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
} from "./chunk-ZJV7GYR4.js";
|
|
119
|
+
renderFlowchart,
|
|
120
|
+
renderFlowchartForExport
|
|
121
|
+
} from "./chunk-AZNXGWDC.js";
|
|
122
|
+
import "./chunk-PDKUANDZ.js";
|
|
105
123
|
import {
|
|
106
|
-
|
|
107
|
-
|
|
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-
|
|
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-
|
|
138
|
+
} from "./chunk-43E26CDA.js";
|
|
122
139
|
import {
|
|
123
140
|
measurePertAnalysisBlock,
|
|
124
141
|
renderPert,
|
|
125
142
|
renderPertAnalysisBlock,
|
|
126
143
|
renderPertForExport
|
|
127
|
-
} from "./chunk-
|
|
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-
|
|
152
|
+
} from "./chunk-HO3RCNF6.js";
|
|
136
153
|
import {
|
|
137
154
|
layoutPert,
|
|
138
155
|
relayoutPert
|
|
139
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-QXGACPS2.js";
|
|
140
157
|
import {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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-
|
|
167
|
+
} from "./chunk-U7NKYLX2.js";
|
|
168
|
+
import {
|
|
169
|
+
layoutMindmap
|
|
170
|
+
} from "./chunk-GMAH572Z.js";
|
|
156
171
|
import {
|
|
157
172
|
layoutWireframe
|
|
158
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-ODUT5WMC.js";
|
|
159
174
|
import {
|
|
160
175
|
renderWireframe
|
|
161
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
192
|
+
} from "./chunk-LQHVDZYC.js";
|
|
178
193
|
import {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
185
|
-
|
|
207
|
+
renderSketch,
|
|
208
|
+
renderSketchForExport,
|
|
209
|
+
sketchEdgeGeometry
|
|
210
|
+
} from "./chunk-3BEKKRH5.js";
|
|
186
211
|
import {
|
|
187
212
|
renderBoxesAndLines,
|
|
188
213
|
renderBoxesAndLinesForExport
|
|
189
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-UQRIKAMH.js";
|
|
190
215
|
import {
|
|
191
216
|
layoutSwimlane
|
|
192
|
-
} from "./chunk-
|
|
193
|
-
import "./chunk-
|
|
217
|
+
} from "./chunk-HOXKNRON.js";
|
|
218
|
+
import "./chunk-FGDSTT3F.js";
|
|
194
219
|
import {
|
|
195
220
|
layoutBoxesAndLines
|
|
196
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-KKHCNSKK.js";
|
|
197
222
|
import {
|
|
198
223
|
renderSwimlaneForExport
|
|
199
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-6KY7OCZC.js";
|
|
200
225
|
import "./chunk-LP7EC4MI.js";
|
|
201
226
|
import {
|
|
202
227
|
layoutFamily
|
|
203
|
-
} from "./chunk-
|
|
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
|
-
|
|
211
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
246
|
+
} from "./chunk-XG4NWFPY.js";
|
|
223
247
|
import {
|
|
224
248
|
renderClassDiagram,
|
|
225
249
|
renderClassDiagramForExport
|
|
226
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-FT7TPPZ5.js";
|
|
227
251
|
import {
|
|
228
252
|
layoutClassDiagram
|
|
229
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-XY3UDKKH.js";
|
|
230
254
|
import {
|
|
231
255
|
renderERDiagram,
|
|
232
256
|
renderERDiagramForExport
|
|
233
|
-
} from "./chunk-
|
|
234
|
-
import "./chunk-
|
|
257
|
+
} from "./chunk-LC3FFD43.js";
|
|
258
|
+
import "./chunk-3IUHKMJI.js";
|
|
235
259
|
import {
|
|
236
260
|
layoutERDiagram
|
|
237
|
-
} from "./chunk-
|
|
238
|
-
import "./chunk-
|
|
261
|
+
} from "./chunk-VGNIDAPQ.js";
|
|
262
|
+
import "./chunk-5HWPEYWB.js";
|
|
239
263
|
import "./chunk-6EK55ART.js";
|
|
240
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
280
|
+
} from "./chunk-QI3BOLQB.js";
|
|
275
281
|
import {
|
|
276
282
|
renderVersionControl,
|
|
277
283
|
renderVersionControlForExport
|
|
278
|
-
} from "./chunk-
|
|
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-
|
|
293
|
+
} from "./chunk-GQ644SPD.js";
|
|
287
294
|
import "./chunk-JTSMEYIZ.js";
|
|
288
|
-
import "./chunk-
|
|
295
|
+
import "./chunk-H3HFC3SQ.js";
|
|
289
296
|
import "./chunk-3CIOJ5YJ.js";
|
|
290
297
|
import {
|
|
291
298
|
layoutOrg
|
|
292
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
381
|
+
} from "./chunk-6HTRCTAS.js";
|
|
349
382
|
import {
|
|
350
383
|
parseCountdown,
|
|
351
384
|
targetToMs as targetToMs2
|
|
352
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
427
|
+
} from "./chunk-ALYZ3MAA.js";
|
|
395
428
|
import {
|
|
396
429
|
parseBody
|
|
397
|
-
} from "./chunk-
|
|
430
|
+
} from "./chunk-FFXCKZOU.js";
|
|
398
431
|
import "./chunk-BDXC7MDK.js";
|
|
399
432
|
import {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
419
|
-
|
|
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-
|
|
441
|
+
} from "./chunk-GABSL6TH.js";
|
|
427
442
|
import {
|
|
428
443
|
parseTechRadar
|
|
429
|
-
} from "./chunk-
|
|
444
|
+
} from "./chunk-CK2GMDXD.js";
|
|
430
445
|
import {
|
|
431
446
|
parseCycle
|
|
432
|
-
} from "./chunk-
|
|
447
|
+
} from "./chunk-HNBY6CNV.js";
|
|
433
448
|
import {
|
|
434
449
|
parseJourneyMap
|
|
435
|
-
} from "./chunk-
|
|
450
|
+
} from "./chunk-VJHBSPGF.js";
|
|
436
451
|
import {
|
|
437
452
|
parsePyramid
|
|
438
|
-
} from "./chunk-
|
|
453
|
+
} from "./chunk-JHOAH4TI.js";
|
|
439
454
|
import {
|
|
440
455
|
parseRing
|
|
441
|
-
} from "./chunk-
|
|
456
|
+
} from "./chunk-PV2QO7QL.js";
|
|
442
457
|
import {
|
|
443
|
-
|
|
444
|
-
} from "./chunk-
|
|
458
|
+
parseKanban
|
|
459
|
+
} from "./chunk-FUKNRLIJ.js";
|
|
445
460
|
import {
|
|
446
|
-
|
|
447
|
-
} from "./chunk-
|
|
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-
|
|
467
|
+
} from "./chunk-NNUMX6WX.js";
|
|
454
468
|
import {
|
|
455
469
|
parseGantt
|
|
456
|
-
} from "./chunk-
|
|
470
|
+
} from "./chunk-2QC4HXCY.js";
|
|
457
471
|
import {
|
|
458
472
|
looksLikeMap,
|
|
459
473
|
parseMap
|
|
460
|
-
} from "./chunk-
|
|
461
|
-
import "./chunk-
|
|
474
|
+
} from "./chunk-27STWBOK.js";
|
|
475
|
+
import "./chunk-6DCOIN4W.js";
|
|
462
476
|
import {
|
|
463
477
|
parseBoxesAndLines
|
|
464
|
-
} from "./chunk-
|
|
478
|
+
} from "./chunk-VKNCC2GX.js";
|
|
465
479
|
import {
|
|
466
480
|
SKETCH_SHAPE_KINDS,
|
|
467
481
|
isSketchShapeKind,
|
|
468
482
|
parseSketch
|
|
469
|
-
} from "./chunk-
|
|
483
|
+
} from "./chunk-VAO6ANGC.js";
|
|
470
484
|
import "./chunk-RT7ACF77.js";
|
|
471
485
|
import {
|
|
472
486
|
parseSwimlane
|
|
473
|
-
} from "./chunk-
|
|
487
|
+
} from "./chunk-I64ECJX3.js";
|
|
474
488
|
import {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
489
|
+
looksLikeState,
|
|
490
|
+
parseState
|
|
491
|
+
} from "./chunk-AN2DQB3G.js";
|
|
478
492
|
import {
|
|
479
|
-
|
|
480
|
-
|
|
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-
|
|
501
|
+
} from "./chunk-BR7AYN76.js";
|
|
486
502
|
import {
|
|
487
503
|
parseOrg
|
|
488
|
-
} from "./chunk-
|
|
504
|
+
} from "./chunk-SGPFVDUL.js";
|
|
489
505
|
import {
|
|
490
506
|
looksLikeSitemap,
|
|
491
507
|
parseSitemap
|
|
492
|
-
} from "./chunk-
|
|
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-
|
|
498
|
-
import
|
|
499
|
-
|
|
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-
|
|
519
|
+
} from "./chunk-UK6DKJLD.js";
|
|
505
520
|
import {
|
|
506
521
|
addDurationToDate,
|
|
507
522
|
parseTimelineDate
|
|
508
|
-
} from "./chunk-
|
|
523
|
+
} from "./chunk-6AUZPPAV.js";
|
|
509
524
|
import "./chunk-DAOFNU6J.js";
|
|
510
525
|
import {
|
|
511
526
|
parseVersionControl
|
|
512
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
571
|
+
} from "./chunk-CMVZWP32.js";
|
|
561
572
|
import {
|
|
562
573
|
extractSymbols,
|
|
563
574
|
looksLikeFlowchart,
|
|
564
575
|
parseFlowchart
|
|
565
|
-
} from "./chunk-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
609
|
+
} from "./chunk-ZKPPI6BF.js";
|
|
608
610
|
import {
|
|
609
611
|
formatDgmoError,
|
|
610
612
|
makeDgmoError
|
|
611
|
-
} from "./chunk-
|
|
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
|
-
|
|
1125
|
-
|
|
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
|
-
|
|
1351
|
-
|
|
1352
|
-
const
|
|
1353
|
-
const
|
|
1354
|
-
|
|
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,
|