@axerity/cli 0.3.4 → 0.3.6
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/dist/client/_app/immutable/assets/0.D_9a5iYh.css +1 -0
- package/dist/client/_app/immutable/chunks/4WKVz0dQ2.js +8 -0
- package/dist/client/_app/immutable/chunks/{BxHXOXhk.js → 5Snhw0Ea.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CU8220Uu.js → 7mNMRbyk.js} +7 -7
- package/dist/client/_app/immutable/chunks/8HqVteX22.js +132 -0
- package/dist/client/_app/immutable/chunks/B1bQHaXp2.js +1 -0
- package/dist/client/_app/immutable/chunks/B1vLyBkH.js +1 -0
- package/dist/client/_app/immutable/chunks/B38mTxN_2.js +1 -0
- package/dist/client/_app/immutable/chunks/B6Q2kmfG.js +1 -0
- package/dist/client/_app/immutable/chunks/B8df50Oe.js +1 -0
- package/dist/client/_app/immutable/chunks/B8pCsplA.js +4 -0
- package/dist/client/_app/immutable/chunks/BBJaonHc.js +7 -0
- package/dist/client/_app/immutable/chunks/BC0Z6JSt.js +127 -0
- package/dist/client/_app/immutable/chunks/BIZlbVKk.js +1 -0
- package/dist/client/_app/immutable/chunks/BLTdZGww.js +10 -0
- package/dist/client/_app/immutable/chunks/BO5quTzD2.js +1 -0
- package/dist/client/_app/immutable/chunks/BVDV3lUS.js +1 -0
- package/dist/client/_app/immutable/chunks/{D1JHp0AN.js → BYhISeFr2.js} +3 -3
- package/dist/client/_app/immutable/chunks/B_cUqGeH.js +2 -0
- package/dist/client/_app/immutable/chunks/Bb7SY-Hh.js +2 -0
- package/dist/client/_app/immutable/chunks/{BmELG9zI.js → BbOlTtur.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bf-rMgGa.js +1 -0
- package/dist/client/_app/immutable/chunks/{CrHSbMyX.js → Bg_yhsUP.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/dist/client/_app/immutable/chunks/Bq8Occ6m.js +1 -0
- package/dist/client/_app/immutable/chunks/Bs-bH16d2.js +36 -0
- package/dist/client/_app/immutable/chunks/BtTEEMTW.js +1 -0
- package/dist/client/_app/immutable/chunks/{BR2ZZ_D-.js → Bu2P_wCT.js} +9 -9
- package/dist/client/_app/immutable/chunks/C1MWiow4.js +1 -0
- package/dist/client/_app/immutable/chunks/{fbLwfhmm.js → C2-00Pdo.js} +8 -8
- package/dist/client/_app/immutable/chunks/C2FXoa5Z.js +1 -0
- package/dist/client/_app/immutable/chunks/CCHqIdNO.js +3 -0
- package/dist/client/_app/immutable/chunks/CDyVd27m2.js +1 -0
- package/dist/client/_app/immutable/chunks/{CrFMGgWF.js → CF0onlHk2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CFMX0wTB2.js +2 -0
- package/dist/client/_app/immutable/chunks/CGzhSlOG2.js +88 -0
- package/dist/client/_app/immutable/chunks/{D1OSA14p2.js → CHdTS7qa2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CKUCToaK2.js → CHnO8ozm.js} +6 -6
- package/dist/client/_app/immutable/chunks/CIA0ThW0.js +1 -0
- package/dist/client/_app/immutable/chunks/CIFyFl372.js +2 -0
- package/dist/client/_app/immutable/chunks/CK1Au-AH.js +1 -0
- package/dist/client/_app/immutable/chunks/CORzmJfE2.js +1 -0
- package/dist/client/_app/immutable/chunks/{CrvMImwA.js → CP8i6059.js} +2 -2
- package/dist/client/_app/immutable/chunks/CR4TeO0O.js +156 -0
- package/dist/client/_app/immutable/chunks/CTgm3pse.js +1 -0
- package/dist/client/_app/immutable/chunks/CWKhPslf.js +1 -0
- package/dist/client/_app/immutable/chunks/{DWEIbyGx2.js → CWiCMZki2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CZBscxHQ2.js +1 -0
- package/dist/client/_app/immutable/chunks/{Vhh-h91d.js → CddkPoXu.js} +1 -1
- package/dist/client/_app/immutable/chunks/CfzXM2Sw.js +24 -0
- package/dist/client/_app/immutable/chunks/{DVnPUkm_2.js → CgljPyk-.js} +1 -1
- package/dist/client/_app/immutable/chunks/Chofv7Zs2.js +11 -0
- package/dist/client/_app/immutable/chunks/CkDjHmRi.js +1 -0
- package/dist/client/_app/immutable/chunks/CqddNm0P.js +24 -0
- package/dist/client/_app/immutable/chunks/CtlrWY5d.js +1 -0
- package/dist/client/_app/immutable/chunks/CuRJVwEq.js +1 -0
- package/dist/client/_app/immutable/chunks/Cwm_NK7g2.js +1 -0
- package/dist/client/_app/immutable/chunks/{KMes_wgj.js → CxArn52D.js} +6 -6
- package/dist/client/_app/immutable/chunks/D0XLW3Y72.js +1 -0
- package/dist/client/_app/immutable/chunks/D3baVd8h.js +39 -0
- package/dist/client/_app/immutable/chunks/{DyvOZK_m.js → D53c3C1L.js} +1 -1
- package/dist/client/_app/immutable/chunks/D9D9EADq2.js +1 -0
- package/dist/client/_app/immutable/chunks/DAEwZWEo.js +1 -0
- package/dist/client/_app/immutable/chunks/DEkYOWll.js +1 -0
- package/dist/client/_app/immutable/chunks/DJR_kvNW.js +1 -0
- package/dist/client/_app/immutable/chunks/DJmG1hmx.js +1 -0
- package/dist/client/_app/immutable/chunks/DLuFpqVZ.js +1 -0
- package/dist/client/_app/immutable/chunks/DMWLK-DU2.js +231 -0
- package/dist/client/_app/immutable/chunks/DNzq6p3w.js +161 -0
- package/dist/client/_app/immutable/chunks/DSoM-AhV.js +292 -0
- package/dist/client/_app/immutable/chunks/{B2siGgVq.js → DUiFqfXY.js} +24 -24
- package/dist/client/_app/immutable/chunks/DVuOupEf.js +1 -0
- package/dist/client/_app/immutable/chunks/DY1BZ4Qc2.js +1 -0
- package/dist/client/_app/immutable/chunks/DYYXZ3DX.js +1 -0
- package/dist/client/_app/immutable/chunks/DbGyXH9B.js +1 -0
- package/dist/client/_app/immutable/chunks/DbfGBa34.js +1 -0
- package/dist/client/_app/immutable/chunks/{h6BdjjI92.js → Djp6vQyU2.js} +2 -2
- package/dist/client/_app/immutable/chunks/DlkSjMNB.js +3 -0
- package/dist/client/_app/immutable/chunks/{CqOdyAh12.js → Dq77RFat2.js} +19 -19
- package/dist/client/_app/immutable/chunks/DsF7k-Jl.js +1 -0
- package/dist/client/_app/immutable/chunks/{Cnog5E312.js → GV4wa_W82.js} +6 -6
- package/dist/client/_app/immutable/chunks/H8ZPB3lI.js +1 -0
- package/dist/client/_app/immutable/chunks/{D8Ssgrsp2.js → KythIMN82.js} +1 -1
- package/dist/client/_app/immutable/chunks/LevMccfs.js +62 -0
- package/dist/client/_app/immutable/chunks/{lVEu-GjD.js → MzKa3KJg.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CO67I5FU.js → NwNz5UVg2.js} +7 -7
- package/dist/client/_app/immutable/chunks/WMQzk859.js +30 -0
- package/dist/client/_app/immutable/chunks/WqY32s1D.js +1 -0
- package/dist/client/_app/immutable/chunks/Xcyiycol2.js +34 -0
- package/dist/client/_app/immutable/chunks/hAYnLAr22.js +1 -0
- package/dist/client/_app/immutable/chunks/iW3ggMaf.js +1 -0
- package/dist/client/_app/immutable/chunks/mm27JPdG.js +85 -0
- package/dist/client/_app/immutable/chunks/mo9pLZen2.js +1 -0
- package/dist/client/_app/immutable/chunks/oWq97GrB.js +106 -0
- package/dist/client/_app/immutable/chunks/p8FwW_Sl.js +2 -0
- package/dist/client/_app/immutable/chunks/pHJTmPlB.js +41 -0
- package/dist/client/_app/immutable/chunks/qYxEWMoP2.js +1 -0
- package/dist/client/_app/immutable/chunks/snDW7wxp2.js +7 -0
- package/dist/client/_app/immutable/chunks/tvl5MGrS.js +62 -0
- package/dist/client/_app/immutable/entry/{app.BkF-rBjA.js → app.CWJWi65e.js} +2 -2
- package/dist/client/_app/immutable/entry/start.BnjVfvzh.js +1 -0
- package/dist/client/_app/immutable/nodes/0.KjaOE5W4.js +1 -0
- package/dist/client/_app/immutable/nodes/{1.D03cx22k.js → 1.BQfw1BrI.js} +1 -1
- package/dist/client/_app/immutable/nodes/2.Bm2kCMEX.js +21 -0
- package/dist/client/_app/version.json +1 -1
- package/dist/env.js +9 -33
- package/dist/env.js.map +1 -0
- package/dist/handler.js +23 -1493
- package/dist/handler.js.map +1 -0
- package/dist/index.js +33 -231
- package/dist/index.js.map +1 -0
- package/dist/server/chunks/{Icon-B39GsOhr.js → chunks/Icon.js-BuPXv_NW.js} +16 -14
- package/dist/server/chunks/chunks/Icon.js-BuPXv_NW.js.map +1 -0
- package/dist/server/chunks/{content-store-CkGb0SWT.js → chunks/content-store.js-BvDwR1n-.js} +7 -5
- package/dist/server/chunks/chunks/content-store.js-BvDwR1n-.js.map +1 -0
- package/dist/server/chunks/chunks/content.js-Ck7_Is4v.js +13 -0
- package/dist/server/chunks/chunks/content.js-Ck7_Is4v.js.map +1 -0
- package/dist/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
- package/dist/server/chunks/chunks/env.js-l0sNRNKZ.js.map +1 -0
- package/dist/server/chunks/chunks/exports.js-DKNfc8Xi.js +152 -0
- package/dist/server/chunks/chunks/exports.js-DKNfc8Xi.js.map +1 -0
- package/dist/server/chunks/{internal2-Cc9tn9q-.js → chunks/internal.js-CS2S4fsh.js} +2931 -3573
- package/dist/server/chunks/chunks/internal.js-CS2S4fsh.js.map +1 -0
- package/dist/server/chunks/chunks/internal2.js-DnoW9Dd1.js +475 -0
- package/dist/server/chunks/chunks/internal2.js-DnoW9Dd1.js.map +1 -0
- package/dist/server/chunks/chunks/paths.js-BmhPy-Zq.js +4 -0
- package/dist/server/chunks/chunks/paths.js-BmhPy-Zq.js.map +1 -0
- package/dist/server/chunks/chunks/routing.js-CBkoLhW9.js +215 -0
- package/dist/server/chunks/chunks/routing.js-CBkoLhW9.js.map +1 -0
- package/dist/server/chunks/{exports-BYLl3AJT.js → chunks/shared.js-DL3We7L2.js} +13 -195
- package/dist/server/chunks/chunks/shared.js-DL3We7L2.js.map +1 -0
- package/dist/server/chunks/{site-BzEriToh.js → chunks/site.js-B9j7u8c5.js} +4 -2
- package/dist/server/chunks/chunks/site.js-B9j7u8c5.js.map +1 -0
- package/dist/server/chunks/chunks/utils.js-BqOwS4Ug.js +740 -0
- package/dist/server/chunks/chunks/utils.js-BqOwS4Ug.js.map +1 -0
- package/dist/server/chunks/{_server.ts-Ct0Ll5bb.js → entries/endpoints/_...path_mdfile_/_server.ts.js-Om7bYZKj.js} +5 -3
- package/dist/server/chunks/entries/endpoints/_...path_mdfile_/_server.ts.js-Om7bYZKj.js.map +1 -0
- package/dist/server/chunks/{_server.ts-CJRyggfF.js → entries/endpoints/__manifest/_server.ts.js-DDaYEkp-.js} +6 -4
- package/dist/server/chunks/entries/endpoints/__manifest/_server.ts.js-DDaYEkp-.js.map +1 -0
- package/dist/server/chunks/{_server.ts--AQtsWl0.js → entries/endpoints/llms-full.txt/_server.ts.js-DMfWG5dX.js} +6 -4
- package/dist/server/chunks/entries/endpoints/llms-full.txt/_server.ts.js-DMfWG5dX.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BWRlkeWL.js → entries/endpoints/llms.txt/_server.ts.js-DriAXFu-.js} +6 -4
- package/dist/server/chunks/entries/endpoints/llms.txt/_server.ts.js-DriAXFu-.js.map +1 -0
- package/dist/server/chunks/{_server.ts-vfrX_ASl.js → entries/endpoints/og/_...slug_/_server.ts.js-DD3q5If5.js} +6 -4
- package/dist/server/chunks/entries/endpoints/og/_...slug_/_server.ts.js-DD3q5If5.js.map +1 -0
- package/dist/server/chunks/{_server.ts-D6CFL-gk.js → entries/endpoints/rss.xml/_server.ts.js-DaeHUkNT.js} +6 -4
- package/dist/server/chunks/entries/endpoints/rss.xml/_server.ts.js-DaeHUkNT.js.map +1 -0
- package/dist/server/chunks/{_server.ts-DrcvZqTi.js → entries/endpoints/search.json/_server.ts.js-BTKtjtuB.js} +5 -3
- package/dist/server/chunks/entries/endpoints/search.json/_server.ts.js-BTKtjtuB.js.map +1 -0
- package/dist/server/chunks/{_server.ts-C1Vx_DWq.js → entries/endpoints/sitemap.xml/_server.ts.js-AjE0bYBX.js} +6 -4
- package/dist/server/chunks/entries/endpoints/sitemap.xml/_server.ts.js-AjE0bYBX.js.map +1 -0
- package/dist/server/chunks/{hooks.server-CB5GWVYz.js → entries/hooks.server.js-DgpmswzZ.js} +5 -3
- package/dist/server/chunks/entries/hooks.server.js-DgpmswzZ.js.map +1 -0
- package/dist/server/chunks/{docpage-BkHysAhp.js → entries/matchers/docpage.js-BkHysAhp.js} +1 -1
- package/dist/server/chunks/entries/matchers/docpage.js-BkHysAhp.js.map +1 -0
- package/dist/server/chunks/{mdfile-DBiwGtNY.js → entries/matchers/mdfile.js-DBiwGtNY.js} +1 -1
- package/dist/server/chunks/entries/matchers/mdfile.js-DBiwGtNY.js.map +1 -0
- package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.server.ts.js-BLrxDWKB.js +31 -0
- package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.server.ts.js-BLrxDWKB.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-Cmr6xyfK.js → entries/pages/_...slug_docpage_/_page.svelte.js-DHsQdIPq.js} +38 -34
- package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.svelte.js-DHsQdIPq.js.map +1 -0
- package/dist/server/chunks/{_error.svelte-BmM3eia-.js → entries/pages/_error.svelte.js-C5IizUHI.js} +9 -6
- package/dist/server/chunks/entries/pages/_error.svelte.js-C5IizUHI.js.map +1 -0
- package/dist/server/chunks/entries/pages/_layout.server.ts.js-BVpOfaEd.js +18 -0
- package/dist/server/chunks/entries/pages/_layout.server.ts.js-BVpOfaEd.js.map +1 -0
- package/dist/server/chunks/{_layout.svelte-DN7VDoNA.js → entries/pages/_layout.svelte.js-C9fzvWFB.js} +11 -3
- package/dist/server/chunks/entries/pages/_layout.svelte.js-C9fzvWFB.js.map +1 -0
- package/dist/server/chunks/handler-ColT39Lk.js +1206 -0
- package/dist/server/chunks/handler-ColT39Lk.js.map +1 -0
- package/dist/server/{index.js → chunks/index.js-0pMmjHBu.js} +444 -1155
- package/dist/server/chunks/index.js-0pMmjHBu.js.map +1 -0
- package/dist/server/{manifest.js → chunks/manifest.js-Du2tEIKJ.js} +16 -20
- package/dist/server/chunks/manifest.js-Du2tEIKJ.js.map +1 -0
- package/dist/server/chunks/nodes/0.js-479vKOsq.js +30 -0
- package/dist/server/chunks/nodes/0.js-479vKOsq.js.map +1 -0
- package/dist/server/chunks/nodes/1.js-BUjLAE1S.js +9 -0
- package/dist/server/chunks/nodes/1.js-BUjLAE1S.js.map +1 -0
- package/dist/server/chunks/nodes/2.js-kHx_y3-d.js +32 -0
- package/dist/server/chunks/nodes/2.js-kHx_y3-d.js.map +1 -0
- package/dist/shims.js +2 -30
- package/dist/shims.js.map +1 -0
- package/package.json +26 -26
- package/dist/client/_app/immutable/assets/0.CZH7ZxPr.css +0 -1
- package/dist/client/_app/immutable/chunks/4QUyWxRp.js +0 -1
- package/dist/client/_app/immutable/chunks/5brL7le7.js +0 -1
- package/dist/client/_app/immutable/chunks/AVywM_y2.js +0 -85
- package/dist/client/_app/immutable/chunks/B-2v_FHk2.js +0 -36
- package/dist/client/_app/immutable/chunks/B2NH8-JT.js +0 -2
- package/dist/client/_app/immutable/chunks/B6GEGn8a.js +0 -10
- package/dist/client/_app/immutable/chunks/BMrnNhEK.js +0 -1
- package/dist/client/_app/immutable/chunks/BPr4vZF2.js +0 -292
- package/dist/client/_app/immutable/chunks/B_aLYNof2.js +0 -62
- package/dist/client/_app/immutable/chunks/Bcl_F5Rk.js +0 -162
- package/dist/client/_app/immutable/chunks/Bhp_hF4I.js +0 -7
- package/dist/client/_app/immutable/chunks/BiwHu9iZ.js +0 -34
- package/dist/client/_app/immutable/chunks/BncN_SFM.js +0 -1
- package/dist/client/_app/immutable/chunks/BqfYRTli.js +0 -1
- package/dist/client/_app/immutable/chunks/Bxc19hA4.js +0 -231
- package/dist/client/_app/immutable/chunks/C-2ebXi62.js +0 -1
- package/dist/client/_app/immutable/chunks/C5YJ1yll.js +0 -1
- package/dist/client/_app/immutable/chunks/C9ACkxc9.js +0 -1
- package/dist/client/_app/immutable/chunks/C9oUh5bS.js +0 -1
- package/dist/client/_app/immutable/chunks/CA-FvMpm2.js +0 -1
- package/dist/client/_app/immutable/chunks/CB683wti.js +0 -24
- package/dist/client/_app/immutable/chunks/CBw-Ef8i.js +0 -1
- package/dist/client/_app/immutable/chunks/CDzGDeIO.js +0 -2
- package/dist/client/_app/immutable/chunks/CGhzzHe4.js +0 -1
- package/dist/client/_app/immutable/chunks/CJIjuuPI.js +0 -3
- package/dist/client/_app/immutable/chunks/CLAkFX7S2.js +0 -1
- package/dist/client/_app/immutable/chunks/CNNqHIOE.js +0 -1
- package/dist/client/_app/immutable/chunks/COtBc-WT.js +0 -1
- package/dist/client/_app/immutable/chunks/CRPRTyhe2.js +0 -43
- package/dist/client/_app/immutable/chunks/CVwLGEVp.js +0 -9
- package/dist/client/_app/immutable/chunks/CYVFLYUH2.js +0 -132
- package/dist/client/_app/immutable/chunks/CmhcKymT2.js +0 -4
- package/dist/client/_app/immutable/chunks/CnsHLsSU2.js +0 -1
- package/dist/client/_app/immutable/chunks/D-mF3Ymq2.js +0 -1
- package/dist/client/_app/immutable/chunks/DFZLNBg4.js +0 -3
- package/dist/client/_app/immutable/chunks/DI0aitcY.js +0 -1
- package/dist/client/_app/immutable/chunks/DL8TMeQv.js +0 -4
- package/dist/client/_app/immutable/chunks/DWR0mSia.js +0 -24
- package/dist/client/_app/immutable/chunks/D_bFluSV2.js +0 -1
- package/dist/client/_app/immutable/chunks/DlpIbxXb.js +0 -159
- package/dist/client/_app/immutable/chunks/Drqwbptl2.js +0 -1
- package/dist/client/_app/immutable/chunks/DshlDaTJ.js +0 -1
- package/dist/client/_app/immutable/chunks/DtVGcudl.js +0 -3
- package/dist/client/_app/immutable/chunks/JN-hBVZx.js +0 -1
- package/dist/client/_app/immutable/chunks/KQRMt0jm2.js +0 -1
- package/dist/client/_app/immutable/chunks/KSCXtHEz.js +0 -30
- package/dist/client/_app/immutable/chunks/MNRJQPsd.js +0 -124
- package/dist/client/_app/immutable/chunks/S_AIhi7v2.js +0 -2
- package/dist/client/_app/immutable/chunks/hFfQmBrk2.js +0 -1
- package/dist/client/_app/immutable/chunks/pO9ctS3B.js +0 -1
- package/dist/client/_app/immutable/chunks/qKp3hrn2.js +0 -1
- package/dist/client/_app/immutable/chunks/uObJDEK6.js +0 -106
- package/dist/client/_app/immutable/chunks/vNSaohXd.js +0 -1
- package/dist/client/_app/immutable/chunks/wdqFE1Ck.js +0 -1
- package/dist/client/_app/immutable/chunks/zl68KYpW2.js +0 -10
- package/dist/client/_app/immutable/entry/start.2NHd-KNf.js +0 -1
- package/dist/client/_app/immutable/nodes/0.Dh5-dzOP.js +0 -1
- package/dist/client/_app/immutable/nodes/2.T06EL3l4.js +0 -21
- package/dist/server/chunks/0-DX38cI4t.js +0 -40
- package/dist/server/chunks/0-DX38cI4t.js.map +0 -1
- package/dist/server/chunks/1-DtLZVIEo.js +0 -9
- package/dist/server/chunks/1-DtLZVIEo.js.map +0 -1
- package/dist/server/chunks/2-D9UarvNQ.js +0 -54
- package/dist/server/chunks/2-D9UarvNQ.js.map +0 -1
- package/dist/server/chunks/Icon-B39GsOhr.js.map +0 -1
- package/dist/server/chunks/_error.svelte-BmM3eia-.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-DN7VDoNA.js.map +0 -1
- package/dist/server/chunks/_page.svelte-Cmr6xyfK.js.map +0 -1
- package/dist/server/chunks/_server.ts--AQtsWl0.js.map +0 -1
- package/dist/server/chunks/_server.ts-BWRlkeWL.js.map +0 -1
- package/dist/server/chunks/_server.ts-C1Vx_DWq.js.map +0 -1
- package/dist/server/chunks/_server.ts-CJRyggfF.js.map +0 -1
- package/dist/server/chunks/_server.ts-Ct0Ll5bb.js.map +0 -1
- package/dist/server/chunks/_server.ts-D6CFL-gk.js.map +0 -1
- package/dist/server/chunks/_server.ts-DrcvZqTi.js.map +0 -1
- package/dist/server/chunks/_server.ts-vfrX_ASl.js.map +0 -1
- package/dist/server/chunks/content-store-CkGb0SWT.js.map +0 -1
- package/dist/server/chunks/docpage-BkHysAhp.js.map +0 -1
- package/dist/server/chunks/exports-BYLl3AJT.js.map +0 -1
- package/dist/server/chunks/hooks.server-CB5GWVYz.js.map +0 -1
- package/dist/server/chunks/internal2-Cc9tn9q-.js.map +0 -1
- package/dist/server/chunks/mdfile-DBiwGtNY.js.map +0 -1
- package/dist/server/chunks/site-BzEriToh.js.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/manifest.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{BifhSqXX.js → BifhSqXX2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C8Fc0cco.js → C8Fc0cco2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CSKSodPl2.js → CSKSodPl.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{D6jRqBbL.js → D6jRqBbL2.js} +0 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import{n as e}from"./DsF7k-Jl.js";import{m as t,p as n}from"./iW3ggMaf.js";import{O as r,T as i,a,b as o,c as s,it as c,s as l,x as u,z as d}from"./BC0Z6JSt.js";import{t as f}from"./CtlrWY5d.js";import{A as p,B as m,C as h,D as g,E as _,F as v,G as y,H as b,I as x,L as S,M as C,N as w,O as T,P as E,R as D,S as O,T as k,U as A,V as j,W as M,a as ee,et as te,g as N,j as ne,k as re,l as ie,w as ae,x as oe,z as se}from"./CFMX0wTB2.js";import{t as ce}from"./CORzmJfE2.js";import"./hAYnLAr22.js";import{n as P}from"./Dq77RFat2.js";import{t as le}from"./CHdTS7qa2.js";import{n as ue,t as F}from"./CWiCMZki2.js";import{n as de,t as fe}from"./D0XLW3Y72.js";import{t as pe}from"./B8gBHxth2.js";function me(e){return Array.isArray(e)}function he(e){if(y(e))return e;let t=M(e);if(!ge(e))return{};if(me(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(oe(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?ye(r,e):_e(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return _e(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return be(n,e),_e(n,e),ve(n,e),n}function ge(e){switch(M(e)){case O:case ae:case h:case _:case k:case g:case T:case re:case C:case p:case ne:case w:case E:case v:case x:case S:case D:case se:case b:case A:case m:case j:return!0;default:return!1}}function _e(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function ve(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function ye(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function be(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var xe=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),typeof a[s].length==`number`?this.$=a[s]:this.$=[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()};break}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),t(d,[2,16],{14:22,15:f,16:p}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(m,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:o},{10:n,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},t(m,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(h,[2,30]),{18:[1,43]},{18:[1,44]},t(m,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},t(d,[2,27]),t(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},t(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return e(v,`Parser`),v.prototype=_,_.Parser=v,new v})();xe.parser=xe;var Se=xe,I=new Map,Ce=[],we=new Map,Te=`color`,Ee=`fill`,De=`bgFill`,Oe=`,`,L=new Map,ke=``,Ae=e(e=>l.sanitizeText(e,u()),`sanitizeText`),je=e(function(e,t=``){let n=L.get(e);n||(n={id:e,styles:[],textStyles:[]},L.set(e,n)),t?.split(Oe).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Te).exec(e)){let e=t.replace(Ee,De).replace(Te,Ee);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),Me=e(function(e,t=``){let n=I.get(e);t!=null&&(n.styles=t.split(Oe))},`addStyle2Node`),Ne=e(function(e,t){e.split(`,`).forEach(function(e){let n=I.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},I.set(t,n)}n.classes||=[],n.classes.push(t)})},`setCssClass`),Pe=e((e,n)=>{let r=e.flat(),i=[],a=r.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of r){if(typeof a==`number`&&a>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>a&&t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`),e.label&&=Ae(e.label),e.type===`classDef`){je(e.id,e.css);continue}if(e.type===`applyClass`){Ne(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&Me(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)n.columns=e.columns??-1;else if(e.type===`edge`){let t=(we.get(e.id)??0)+1;we.set(e.id,t),e.id=t+`-`+e.id,Ce.push(e)}else{e.label||(e.type===`composite`?e.label=``:e.label=e.id);let t=I.get(e.id);if(t===void 0?I.set(e.id,e):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&Pe(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n<t;n++){let t=he(e);t.id=t.id+`-`+n,I.set(t.id,t),i.push(t)}}else t===void 0&&i.push(e)}}n.children=i},`populateBlockDatabase`),Fe=[],R={id:`root`,type:`composite`,children:[],columns:-1},Ie=e(()=>{t.debug(`Clear called`),a(),R={id:`root`,type:`composite`,children:[],columns:-1},I=new Map([[`root`,R]]),Fe=[],L=new Map,Ce=[],we=new Map,ke=``},`clear`);function Le(e){switch(t.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return t.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}e(Le,`typeStr2Type`);function Re(e){switch(t.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}e(Re,`edgeTypeStr2Type`);function ze(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}e(ze,`edgeStrToEdgeData`);function Be(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}e(Be,`edgeStrToEdgeStartData`);function Ve(e){return e.includes(`==`)?`thick`:`normal`}e(Ve,`edgeStrToThickness`);function He(e){return e.includes(`.-`)?`dotted`:`solid`}e(He,`edgeStrToPattern`);var Ue=0,We={getConfig:e(()=>o().block,`getConfig`),typeStr2Type:Le,edgeTypeStr2Type:Re,edgeStrToEdgeData:ze,edgeStrToEdgeStartData:Be,edgeStrToThickness:Ve,edgeStrToPattern:He,getLogger:e(()=>t,`getLogger`),getBlocksFlat:e(()=>[...I.values()],`getBlocksFlat`),getBlocks:e(()=>Fe||[],`getBlocks`),getEdges:e(()=>Ce,`getEdges`),setHierarchy:e(e=>{R.children=e,Pe(e,R),Fe=R.children},`setHierarchy`),getBlock:e(e=>I.get(e),`getBlock`),setBlock:e(e=>{I.set(e.id,e)},`setBlock`),getColumns:e(e=>{let t=I.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:e(function(){return L},`getClasses`),clear:Ie,generateId:e(()=>(Ue++,`id-`+Math.random().toString(36).substr(2,12)+`-`+Ue),`generateId`),setDiagramId:e(e=>{ke=e},`setDiagramId`),getDiagramId:e(()=>ke,`getDiagramId`)},z=e((e,t)=>{let n=f;return c(n(e,`r`),n(e,`g`),n(e,`b`),t)},`fade`),Ge=e(e=>`.label {
|
|
7
|
+
font-family: ${e.fontFamily};
|
|
8
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
9
|
+
}
|
|
10
|
+
.cluster-label text {
|
|
11
|
+
fill: ${e.titleColor};
|
|
12
|
+
}
|
|
13
|
+
.cluster-label span,p {
|
|
14
|
+
color: ${e.titleColor};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.label text,span,p {
|
|
20
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
21
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.node rect,
|
|
25
|
+
.node circle,
|
|
26
|
+
.node ellipse,
|
|
27
|
+
.node polygon,
|
|
28
|
+
.node path {
|
|
29
|
+
fill: ${e.mainBkg};
|
|
30
|
+
stroke: ${e.nodeBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
.flowchart-label text {
|
|
34
|
+
text-anchor: middle;
|
|
35
|
+
}
|
|
36
|
+
// .flowchart-label .text-outer-tspan {
|
|
37
|
+
// text-anchor: middle;
|
|
38
|
+
// }
|
|
39
|
+
// .flowchart-label .text-inner-tspan {
|
|
40
|
+
// text-anchor: start;
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
.node .label {
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.node.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.arrowheadPath {
|
|
51
|
+
fill: ${e.arrowheadColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.edgePath .path {
|
|
55
|
+
stroke: ${e.lineColor};
|
|
56
|
+
stroke-width: 2.0px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flowchart-link {
|
|
60
|
+
stroke: ${e.lineColor};
|
|
61
|
+
fill: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.edgeLabel {
|
|
65
|
+
background-color: ${e.edgeLabelBackground};
|
|
66
|
+
/*
|
|
67
|
+
* This is for backward compatibility with existing code that didn't
|
|
68
|
+
* add a \`<p>\` around edge labels.
|
|
69
|
+
*
|
|
70
|
+
* TODO: We should probably remove this in a future release.
|
|
71
|
+
*/
|
|
72
|
+
p {
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
display: inline;
|
|
76
|
+
}
|
|
77
|
+
rect {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
background-color: ${e.edgeLabelBackground};
|
|
80
|
+
fill: ${e.edgeLabelBackground};
|
|
81
|
+
}
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* For html labels only */
|
|
86
|
+
.labelBkg {
|
|
87
|
+
background-color: ${e.edgeLabelBackground};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.node .cluster {
|
|
91
|
+
// fill: ${z(e.mainBkg,.5)};
|
|
92
|
+
fill: ${z(e.clusterBkg,.5)};
|
|
93
|
+
stroke: ${z(e.clusterBorder,.2)};
|
|
94
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
95
|
+
stroke-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cluster text {
|
|
99
|
+
fill: ${e.titleColor};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cluster span,p {
|
|
103
|
+
color: ${e.titleColor};
|
|
104
|
+
}
|
|
105
|
+
/* .cluster div {
|
|
106
|
+
color: ${e.titleColor};
|
|
107
|
+
} */
|
|
108
|
+
|
|
109
|
+
div.mermaidTooltip {
|
|
110
|
+
position: absolute;
|
|
111
|
+
text-align: center;
|
|
112
|
+
max-width: 200px;
|
|
113
|
+
padding: 2px;
|
|
114
|
+
font-family: ${e.fontFamily};
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
background: ${e.tertiaryColor};
|
|
117
|
+
border: 1px solid ${e.border2};
|
|
118
|
+
border-radius: 2px;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
z-index: 100;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.flowchartTitleText {
|
|
124
|
+
text-anchor: middle;
|
|
125
|
+
font-size: 18px;
|
|
126
|
+
fill: ${e.textColor};
|
|
127
|
+
}
|
|
128
|
+
${le()}
|
|
129
|
+
`,`getStyles`),Ke=e((e,t,n,r)=>{t.forEach(t=>{qe[t](e,n,r)})},`insertMarkers`),qe={extension:e((e,n,r)=>{t.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`)},`extension`),composition:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6)},`lollipop`),point:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,6).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`point`),circle:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`circle`),cross:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`)},`cross`),barb:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`)},Je=Ke;function B(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}e(B,`calculateBlockPosition`);var Ye=e(e=>{let n=0,r=0;for(let i of e.children){let{width:e,height:a,x:o,y:s}=i.size??{width:0,height:0,x:0,y:0};if(t.debug(`getMaxChildSize abc95 child:`,i.id,`width:`,e,`height:`,a,`x:`,o,`y:`,s,i.type),i.type===`space`)continue;let c=e/(i.widthInColumns??1);c>n&&(n=c),a>r&&(r=a)}return{width:n,height:r}},`getMaxChildSize`);function V(e,n,r=0,i=0,a=8){t.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,r),e?.size?.width||(e.size={width:r,height:i,x:0,y:0});let o=0,s=0;if(e.children?.length>0){for(let t of e.children)V(t,n,0,0,a);let c=Ye(e);o=c.width,s=c.height,t.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,o,s);for(let n of e.children)n.size&&(t.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${o} ${s} ${JSON.stringify(n.size)}`),n.size.width=o*(n.widthInColumns??1)+a*((n.widthInColumns??1)-1),n.size.height=s,n.size.x=0,n.size.y=0,t.debug(`abc95 updating size of ${e.id} children child:${n.id} maxWidth:${o} maxHeight:${s}`));for(let t of e.children)V(t,n,o,s,a);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l<u&&(d=l);let f=Math.ceil(u/d),p=d*(o+a)+a,m=f*(s+a)+a;if(p<r){t.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${p}`),p=r,m=i;let n=(r-d*a-a)/d,c=(i-f*a-a)/f;t.debug(`Size indata abc88`,e.id,`childWidth`,n,`maxWidth`,o),t.debug(`Size indata abc88`,e.id,`childHeight`,c,`maxHeight`,s),t.debug(`Size indata abc88 xSize`,d,`padding`,a);for(let t of e.children)t.size&&(t.size.width=n,t.size.height=c,t.size.x=0,t.size.y=0)}if(t.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${f} columns ${l}${e.children.length} width=${Math.max(p,e.size?.width||0)}`),p<(e?.size?.width||0)){p=e?.size?.width||0;let n=l>0?Math.min(e.children.length,l):e.children.length;if(n>0){let r=(p-n*a-a)/n;t.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,r);for(let t of e.children)t.size&&(t.size.width=r)}}e.size={width:p,height:m,x:0,y:0}}t.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}e(V,`setBlockSizes`);function H(e,n,r=8){t.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let i=e.columns??-1;if(t.debug(`layoutBlocks columns abc95`,e.id,`=>`,i,e),e.children&&e.children.length>0){let a=e?.children[0]?.size?.width??0,o=e.children.length*a+(e.children.length-1)*r;t.debug(`widthOfChildren 88`,o,`posX`);let s=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=B(i,t),r=s.get(e)??0;n.size.height>r&&s.set(e,n.size.height);let a=n?.widthInColumns??1;i>0&&(a=Math.min(a,i-t%i)),t+=a}}let c=new Map;{let e=0,t=[...s.keys()].sort((e,t)=>e-t);for(let n of t)c.set(n,e),e+=(s.get(n)??0)+r}let l=0;t.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-r,d=0;for(let a of e.children){let o=e;if(!a.size)continue;let{width:f,height:p}=a.size,{px:m,py:h}=B(i,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-r,t.debug(`New row in layout for block`,e.id,` and child `,a.id,d)),t.debug(`abc89 layout blocks (child) id: ${a.id} Pos: ${l} (px, py) ${m},${h} (${o?.size?.x},${o?.size?.y}) parent: ${o.id} width: ${f}${r}`),o.size){let e=f/2;a.size.x=u+r+e,t.debug(`abc91 layout blocks (calc) px, pyid:${a.id} startingPos=X${u} new startingPosX${a.size.x} ${e} padding=${r} width=${f} halfWidth=${e} => x:${a.size.x} y:${a.size.y} ${a.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(a?.widthInColumns??1)/2}`),u=a.size.x+e;let n=c.get(h)??0,i=s.get(h)??p;a.size.y=o.size.y-o.size.height/2+n+i/2+r,t.debug(`abc88 layout blocks (calc) px, pyid:${a.id}startingPosX${u}${r}${e}=>x:${a.size.x}y:${a.size.y}${a.widthInColumns}(width * (child?.w || 1)) / 2${f*(a?.widthInColumns??1)/2}`)}a.children&&H(a,n,r);let g=a?.widthInColumns??1;i>0&&(g=Math.min(g,i-l%i)),l+=g,t.debug(`abc88 columnsPos`,a,l)}}t.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}e(H,`layoutBlocks`);function Xe(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2<t&&(t=a-s/2),o-c/2<n&&(n=o-c/2),a+s/2>r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=Xe(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}e(Xe,`findBounds`);function Ze(e){let n=e.getBlock(`root`);if(!n)return;let r=u()?.block?.padding??8;V(n,e,0,0,r),H(n,e,r),t.debug(`getBlocks`,JSON.stringify(n,null,2));let{minX:i,minY:a,maxX:o,maxY:s}=Xe(n),c=s-a;return{x:i,y:a,width:o-i,height:c}}e(Ze,`layout`);var U=e(async(e,t,n,r=!1,a=!1)=>{let o=t||``;typeof o==`object`&&(o=o[0]);let s=u(),c=i(s);return await P(e,o,{style:n,isTitle:r,useHtmlLabels:c,markdown:!1,isNode:a,width:1/0},s)},`createLabel`),Qe=e((e,t,n,r,i)=>{t.arrowTypeStart&&et(e,`start`,t.arrowTypeStart,n,r,i),t.arrowTypeEnd&&et(e,`end`,t.arrowTypeEnd,n,r,i)},`addEdgeMarkers`),$e={arrow_cross:`cross`,arrow_point:`point`,arrow_barb:`barb`,arrow_circle:`circle`,aggregation:`aggregation`,extension:`extension`,composition:`composition`,dependency:`dependency`,lollipop:`lollipop`},et=e((e,n,r,i,a,o)=>{let s=$e[r];if(!s){t.warn(`Unknown arrow type: ${r}`);return}let c=n===`start`?`Start`:`End`;e.attr(`marker-${n}`,`url(${i}#${a}_${o}-${s}${c})`)},`addEdgeMarker`),tt={},W={},nt=e(async(e,t)=>{let r=u(),a=i(r),o=e.insert(`g`).attr(`class`,`edgeLabel`),s=o.insert(`g`).attr(`class`,`label`),c=t.labelType===`markdown`,l=await P(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:c,isNode:!1,markdown:c,width:c?void 0:1/0},r);s.node().appendChild(l);let d=l.getBBox(),f=d;if(a){let e=l.children[0],t=n(l);d=e.getBoundingClientRect(),f=d,t.attr(`width`,d.width),t.attr(`height`,d.height)}else{let e=n(l).select(`text`).node();e&&typeof e.getBBox==`function`&&(f=e.getBBox())}s.attr(`transform`,F(f,a)),tt[t.id]=o,t.width=d.width,t.height=d.height;let p;if(t.startLabelLeft){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`),o=await U(i,t.startLabelLeft,t.labelStyle);p=o;let s=o.getBBox();if(a){let e=o.children[0],t=n(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,F(s,a)),W[t.id]||(W[t.id]={}),W[t.id].startLeft=r,G(p,t.startLabelLeft)}if(t.startLabelRight){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`),o=await U(i,t.startLabelRight,t.labelStyle);p=o;let s=o.getBBox();if(a){let e=o.children[0],t=n(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,F(s,a)),W[t.id]||(W[t.id]={}),W[t.id].startRight=r,G(p,t.startLabelRight)}if(t.endLabelLeft){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`),o=await U(r,t.endLabelLeft,t.labelStyle);p=o;let s=o.getBBox();if(a){let e=o.children[0],t=n(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,F(s,a)),W[t.id]||(W[t.id]={}),W[t.id].endLeft=r,G(p,t.endLabelLeft)}if(t.endLabelRight){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`),o=await U(r,t.endLabelRight,t.labelStyle);p=o;let s=o.getBBox();if(a){let e=o.children[0],t=n(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,F(s,a)),W[t.id]||(W[t.id]={}),W[t.id].endRight=r,G(p,t.endLabelRight)}return l},`insertEdgeLabel`);function G(e,t){i(u())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}e(G,`setTerminalWidth`);var rt=e((e,n)=>{t.debug(`Moving label abc88 `,e.id,e.label,tt[e.id],n);let r=n.updatedPath?n.updatedPath:n.originalPath,{subGraphTitleTotalMargin:i}=de(u());if(e.label){let a=tt[e.id],o=e.x,s=e.y;if(r){let i=N.calcLabelPosition(r);t.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),n.updatedPath&&(o=i.x,s=i.y)}a.attr(`transform`,`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let t=W[e.id].startLeft,n=e.x,i=e.y;if(r){let t=N.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=W[e.id].startRight,n=e.x,i=e.y;if(r){let t=N.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=W[e.id].endLeft,n=e.x,i=e.y;if(r){let t=N.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=W[e.id].endRight,n=e.x,i=e.y;if(r){let t=N.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),it=e((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),at=e((e,n,r)=>{t.debug(`intersection calc abc89:
|
|
130
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
131
|
+
insidePoint : ${JSON.stringify(r)}
|
|
132
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<n.x?s-o:s+o,l=e.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let e=r.y<n.y?n.y-l-a:a-l-n.y;c=d*e/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),t.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<n.x?n.x-s-i:i-s-n.x;let e=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+e:r.y-e;return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),ot=e((e,n)=>{t.debug(`abc88 cutPathAtIntersect`,e,n);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(!it(n,e)&&!a){let t=at(n,i,e),o=!1;r.forEach(e=>{o||=e.x===t.x&&e.y===t.y}),r.some(e=>e.x===t.x&&e.y===t.y)||r.push(t),a=!0}else i=e,a||r.push(e)}),r},`cutPathAtIntersect`),st=e(function(e,n,i,a,o,s,c){let l=i.points;t.debug(`abc88 InsertEdge: edge=`,i,`e=`,n);let d=!1,f=s.node(n.v);var p=s.node(n.w);p?.intersect&&f?.intersect&&(l=l.slice(1,i.points.length-1),l.unshift(f.intersect(l[0])),l.push(p.intersect(l[l.length-1]))),i.toCluster&&(t.debug(`to cluster abc88`,a[i.toCluster]),l=ot(i.points,a[i.toCluster].node),d=!0),i.fromCluster&&(t.debug(`from cluster abc88`,a[i.fromCluster]),l=ot(l.reverse(),a[i.fromCluster].node).reverse(),d=!0);let m=l.filter(e=>!Number.isNaN(e.y)),h=te;i.curve&&(o===`graph`||o===`flowchart`)&&(h=i.curve);let{x:g,y:_}=ue(i),v=ce().x(g).y(_).curve(h),y;switch(i.thickness){case`normal`:y=`edge-thickness-normal`;break;case`thick`:y=`edge-thickness-thick`;break;case`invisible`:y=`edge-thickness-thick`;break;default:y=``}switch(i.pattern){case`solid`:y+=` edge-pattern-solid`;break;case`dotted`:y+=` edge-pattern-dotted`;break;case`dashed`:y+=` edge-pattern-dashed`;break}let b=e.append(`path`).attr(`d`,v(m)).attr(`id`,i.id).attr(`class`,` `+y+(i.classes?` `+i.classes:``)).attr(`style`,i.style),x=``;(u().flowchart.arrowMarkerAbsolute||u().state.arrowMarkerAbsolute)&&(x=r(!0)),Qe(b,i,x,c,o);let S={};return d&&(S.updatedPath=l),S.originalPath=i.points,S},`insertEdge`),ct=e(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n);break}return t},`expandAndDeduplicateDirections`),lt=e((e,t,n,r)=>{let i=ct(e),a=t.height+2*n.padding,o=a/2,s=r??t.width+2*o+n.padding,c=n.padding/2;return i.has(`right`)&&i.has(`left`)&&i.has(`up`)&&i.has(`down`)?[{x:0,y:0},{x:o,y:0},{x:s/2,y:2*c},{x:s-o,y:0},{x:s,y:0},{x:s,y:-a/3},{x:s+2*c,y:-a/2},{x:s,y:-2*a/3},{x:s,y:-a},{x:s-o,y:-a},{x:s/2,y:-a-2*c},{x:o,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*c,y:-a/2},{x:0,y:-a/3}]:i.has(`right`)&&i.has(`left`)&&i.has(`up`)?[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}]:i.has(`right`)&&i.has(`left`)&&i.has(`down`)?[{x:0,y:0},{x:o,y:-a},{x:s-o,y:-a},{x:s,y:0}]:i.has(`right`)&&i.has(`up`)&&i.has(`down`)?[{x:0,y:0},{x:s,y:-o},{x:s,y:-a+o},{x:0,y:-a}]:i.has(`left`)&&i.has(`up`)&&i.has(`down`)?[{x:s,y:0},{x:0,y:-o},{x:0,y:-a+o},{x:s,y:-a}]:i.has(`right`)&&i.has(`left`)?[{x:o,y:0},{x:o,y:-c},{x:s-o,y:-c},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:s-o,y:-a+c},{x:o,y:-a+c},{x:o,y:-a},{x:0,y:-a/2}]:i.has(`up`)&&i.has(`down`)?[{x:s/2,y:0},{x:0,y:-c},{x:o,y:-c},{x:o,y:-a+c},{x:0,y:-a+c},{x:s/2,y:-a},{x:s,y:-a+c},{x:s-o,y:-a+c},{x:s-o,y:-c},{x:s,y:-c}]:i.has(`right`)&&i.has(`up`)?[{x:0,y:0},{x:s,y:-o},{x:0,y:-a}]:i.has(`right`)&&i.has(`down`)?[{x:0,y:0},{x:s,y:0},{x:0,y:-a}]:i.has(`left`)&&i.has(`up`)?[{x:s,y:0},{x:0,y:-o},{x:s,y:-a}]:i.has(`left`)&&i.has(`down`)?[{x:s,y:0},{x:0,y:0},{x:s,y:-a}]:i.has(`right`)?[{x:o,y:-c},{x:o,y:-c},{x:s-o,y:-c},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:s-o,y:-a+c},{x:o,y:-a+c},{x:o,y:-a+c}]:i.has(`left`)?[{x:o,y:0},{x:o,y:-c},{x:s-o,y:-c},{x:s-o,y:-a+c},{x:o,y:-a+c},{x:o,y:-a},{x:0,y:-a/2}]:i.has(`up`)?[{x:o,y:-c},{x:o,y:-a+c},{x:0,y:-a+c},{x:s/2,y:-a},{x:s,y:-a+c},{x:s-o,y:-a+c},{x:s-o,y:-c}]:i.has(`down`)?[{x:s/2,y:0},{x:0,y:-c},{x:o,y:-c},{x:o,y:-a+c},{x:s-o,y:-a+c},{x:s-o,y:-c},{x:s,y:-c}]:[{x:0,y:0}]},`getArrowPoints`);function ut(e,t){return e.intersect(t)}e(ut,`intersectNode`);var dt=ut;function ft(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e(ft,`intersectEllipse`);var pt=ft;function mt(e,t,n){return pt(e,t,t,n)}e(mt,`intersectCircle`);var ht=mt;function gt(e,t,n,r){var i=t.y-e.y,a,o=e.x-t.x,s,c=t.x*e.y-e.x*t.y,l,u,d,f=i*n.x+o*n.y+c,p=i*r.x+o*r.y+c,m,h,g,_,v;if(!(f!==0&&p!==0&&_t(f,p))&&(a=r.y-n.y,s=n.x-r.x,l=r.x*n.y-n.x*r.y,u=a*e.x+s*e.y+l,d=a*t.x+s*t.y+l,!(u!==0&&d!==0&&_t(u,d))&&(m=i*s-a*o,m!==0)))return h=Math.abs(m/2),g=o*l-s*c,_=g<0?(g-h)/m:(g+h)/m,g=a*c-i*l,v=g<0?(g-h)/m:(g+h)/m,{x:_,y:v}}e(gt,`intersectLine`);function _t(e,t){return e*t>0}e(_t,`sameSign`);var vt=gt,yt=bt;function bt(e,t,n){var r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));for(var c=r-e.width/2-o,l=i-e.height/2-s,u=0;u<t.length;u++){var d=t[u],f=t[u<t.length-1?u+1:0],p=vt(e,n,{x:c+d.x,y:l+d.y},{x:c+f.x,y:l+f.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(e,t){var r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e(bt,`intersectPolygon`);var K={node:dt,circle:ht,ellipse:pt,polygon:yt,rect:e((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`)},q=e(async(e,t,r,a)=>{let o=u(),s,c=t.useHtmlLabels||i(o);s=r||`node default`;let l=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId||t.id),f=l.insert(`g`).attr(`class`,`label`).attr(`style`,t.labelStyle),p;p=t.labelText===void 0?``:typeof t.labelText==`string`?t.labelText:t.labelText[0];let m;m=t.labelType===`markdown`?P(f,d(ee(p),o),{useHtmlLabels:c,width:t.width||o.flowchart.wrappingWidth,classes:`markdown-node-label`},o):await U(f,d(ee(p),o),t.labelStyle,!1,a);let h=m.getBBox(),g=t.padding/2;if(i(o)){let e=m.children[0],t=n(m);await fe(e,p),h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}return c?f.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):f.attr(`transform`,`translate(0, `+-h.height/2+`)`),t.centerLabel&&f.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),f.insert(`rect`,`:first-child`),{shapeSvg:l,bbox:h,halfPadding:g,label:f}},`labelHelper`),J=e((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`);function Y(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e(Y,`insertPolygonShape`);var xt=e(async(e,n)=>{n.useHtmlLabels||i(u())||(n.centerLabel=!0);let{shapeSvg:r,bbox:a,halfPadding:o}=await q(e,n,`node `+n.classes,!0);t.info(`Classes = `,n.classes);let s=r.insert(`rect`,`:first-child`);return s.attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,-a.width/2-o).attr(`y`,-a.height/2-o).attr(`width`,a.width+n.padding).attr(`height`,a.height+n.padding),J(n,s),n.intersect=function(e){return K.rect(n,e)},r},`note`),St=e(e=>e?` `+e:``,`formatClass`),X=e((e,t)=>`${t||`node default`}${St(e.classes)} ${St(e.class)}`,`getClassesFromNode`),Ct=e(async(e,n)=>{let{shapeSvg:r,bbox:i}=await q(e,n,X(n,void 0),!0),a=i.width+n.padding+(i.height+n.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];t.info(`Question main (Circle)`);let s=Y(r,a,a,o);return s.attr(`style`,n.style),J(n,s),n.intersect=function(e){return t.warn(`Intersect called`),K.polygon(n,o,e)},r},`question`),wt=e((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id);return n.insert(`polygon`,`:first-child`).attr(`points`,[{x:0,y:28/2},{x:28/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}].map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`state-start`).attr(`r`,7).attr(`width`,28).attr(`height`,28),t.width=28,t.height=28,t.intersect=function(e){return K.circle(t,14,e)},n},`choice`),Tt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=t.positioned?t.height:r.height+t.padding,a=i/4,o=t.positioned?t.width:r.width+2*a+t.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}],c=Y(n,o,i,s);return c.attr(`style`,t.style),J(t,c),t.intersect=function(e){return K.polygon(t,s,e)},n},`hexagon`),Et=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,void 0,!0),i=r.height+2*t.padding,a=i/2,o=r.width+2*a+t.padding,s=t.positioned&&(t.widthInColumns??1)>1&&t.width>o?t.width:o,c=lt(t.directions,r,t,s),l=Y(n,s,i,c);return l.attr(`style`,t.style),J(t,l),t.intersect=function(e){return K.polygon(t,c,e)},n},`block_arrow`),Dt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Y(n,i,a,o).attr(`style`,t.style),t.width=i+a,t.height=a,t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_left_inv_arrow`),Ot=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_right`),kt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_left`),At=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`trapezoid`),jt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`inv_trapezoid`),Mt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_right_inv_arrow`),Nt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=i/2,o=a/(2.5+i/50),s=r.height+o+t.padding,c=`M 0,`+o+` a `+a+`,`+o+` 0,0,0 `+i+` 0 a `+a+`,`+o+` 0,0,0 `+-i+` 0 l 0,`+s+` a `+a+`,`+o+` 0,0,0 `+i+` 0 l 0,`+-s;return J(t,n.attr(`label-offset-y`,o).insert(`path`,`:first-child`).attr(`style`,t.style).attr(`d`,c).attr(`transform`,`translate(`+-i/2+`,`+-(s/2+o)+`)`)),t.intersect=function(e){let n=K.rect(t,e),r=n.x-t.x;if(a!=0&&(Math.abs(r)<t.width/2||Math.abs(r)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-o)){let i=o*o*(1-r*r/(a*a));i!=0&&(i=Math.sqrt(i)),i=o-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},n},`cylinder`),Pt=e(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,n,`node `+n.classes+` `+n.class,!0),o=r.insert(`rect`,`:first-child`),s=n.positioned?n.width:i.width+n.padding,c=n.positioned?n.height:i.height+n.padding,l=n.positioned?-s/2:-i.width/2-a,u=n.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic label-container`).attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),n.props){let e=new Set(Object.keys(n.props));n.props.borders&&(Z(o,n.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{t.warn(`Unknown node property ${e}`)})}return J(n,o),n.intersect=function(e){return K.rect(n,e)},r},`rect`),Ft=e(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,n,`node `+n.classes,!0),o=r.insert(`rect`,`:first-child`),s=n.positioned?n.width:i.width+n.padding,c=n.positioned?n.height:i.height+n.padding,l=n.positioned?-s/2:-i.width/2-a,u=n.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),n.props){let e=new Set(Object.keys(n.props));n.props.borders&&(Z(o,n.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{t.warn(`Unknown node property ${e}`)})}return J(n,o),n.intersect=function(e){return K.rect(n,e)},r},`composite`),It=e(async(e,n)=>{let{shapeSvg:r}=await q(e,n,`label`,!0);t.trace(`Classes = `,n.class);let i=r.insert(`rect`,`:first-child`);if(i.attr(`width`,0).attr(`height`,0),r.attr(`class`,`label edgeLabel`),n.props){let e=new Set(Object.keys(n.props));n.props.borders&&(Z(i,n.props.borders,0,0),e.delete(`borders`)),e.forEach(e=>{t.warn(`Unknown node property ${e}`)})}return J(n,i),n.intersect=function(e){return K.rect(n,e)},r},`labelRect`);function Z(n,r,i,a){let o=[],s=e(e=>{o.push(e,0)},`addBorder`),c=e(e=>{o.push(0,e)},`skipBorder`);r.includes(`t`)?(t.debug(`add top border`),s(i)):c(i),r.includes(`r`)?(t.debug(`add right border`),s(a)):c(a),r.includes(`b`)?(t.debug(`add bottom border`),s(i)):c(i),r.includes(`l`)?(t.debug(`add left border`),s(a)):c(a),n.attr(`stroke-dasharray`,o.join(` `))}e(Z,`applyNodePropertyBorders`);var Lt=e(async(e,r)=>{let a;a=r.classes?`node `+r.classes:`node default`;let o=e.insert(`g`).attr(`class`,a).attr(`id`,r.domId||r.id),s=o.insert(`rect`,`:first-child`),c=o.insert(`line`),l=o.insert(`g`).attr(`class`,`label`),d=r.labelText.flat?r.labelText.flat():r.labelText,f=``;f=typeof d==`object`?d[0]:d,t.info(`Label text abc79`,f,d,typeof d==`object`);let p=await U(l,f,r.labelStyle,!0,!0),m={width:0,height:0};if(i(u())){let e=p.children[0],t=n(p);m=e.getBoundingClientRect(),t.attr(`width`,m.width),t.attr(`height`,m.height)}t.info(`Text 2`,d);let h=d.slice(1,d.length),g=p.getBBox(),_=await U(l,h.join?h.join(`<br/>`):h,r.labelStyle,!0,!0);if(i(u())){let e=_.children[0],t=n(_);m=e.getBoundingClientRect(),t.attr(`width`,m.width),t.attr(`height`,m.height)}let v=r.padding/2;return n(_).attr(`transform`,`translate( `+(m.width>g.width?0:(g.width-m.width)/2)+`, `+(g.height+v+5)+`)`),n(p).attr(`transform`,`translate( `+(m.width<g.width?0:-(g.width-m.width)/2)+`, 0)`),m=l.node().getBBox(),l.attr(`transform`,`translate(`+-m.width/2+`, `+(-m.height/2-v+3)+`)`),s.attr(`class`,`outer title-state`).attr(`x`,-m.width/2-v).attr(`y`,-m.height/2-v).attr(`width`,m.width+r.padding).attr(`height`,m.height+r.padding),c.attr(`class`,`divider`).attr(`x1`,-m.width/2-v).attr(`x2`,m.width/2+v).attr(`y1`,-m.height/2-v+g.height+v).attr(`y2`,-m.height/2-v+g.height+v),J(r,s),r.intersect=function(e){return K.rect(r,e)},o},`rectWithTitle`),Rt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.height+t.padding,a=r.width+i/4+t.padding;return J(t,n.insert(`rect`,`:first-child`).attr(`style`,t.style).attr(`rx`,i/2).attr(`ry`,i/2).attr(`x`,-a/2).attr(`y`,-i/2).attr(`width`,a).attr(`height`,i)),t.intersect=function(e){return K.rect(t,e)},n},`stadium`),zt=e(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,n,X(n,void 0),!0),o=r.insert(`circle`,`:first-child`);return o.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),t.info(`Circle main`),J(n,o),n.intersect=function(e){return t.info(`Circle intersect`,n,i.width/2+a,e),K.circle(n,i.width/2+a,e)},r},`circle`),Bt=e(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,n,X(n,void 0),!0),o=r.insert(`g`,`:first-child`),s=o.insert(`circle`),c=o.insert(`circle`);return o.attr(`class`,n.class),s.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a+5).attr(`width`,i.width+n.padding+10).attr(`height`,i.height+n.padding+10),c.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),t.info(`DoubleCircle main`),J(n,s),n.intersect=function(e){return t.info(`DoubleCircle intersect`,n,i.width/2+a+5,e),K.circle(n,i.width/2+a+5,e)},r},`doublecircle`),Vt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`subroutine`),Ht=e((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`);return r.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),J(t,r),t.intersect=function(e){return K.circle(t,7,e)},n},`start`),Ut=e((e,t,n)=>{let r=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),i=70,a=10;return n===`LR`&&(i=10,a=70),J(t,r.append(`rect`).attr(`x`,-1*i/2).attr(`y`,-1*a/2).attr(`width`,i).attr(`height`,a).attr(`class`,`fork-join`)),t.height+=t.padding/2,t.width+=t.padding/2,t.intersect=function(e){return K.rect(t,e)},r},`forkJoin`),Wt={rhombus:Ct,composite:Ft,question:Ct,rect:Pt,labelRect:It,rectWithTitle:Lt,choice:wt,circle:zt,doublecircle:Bt,stadium:Rt,hexagon:Tt,block_arrow:Et,rect_left_inv_arrow:Dt,lean_right:Ot,lean_left:kt,trapezoid:At,inv_trapezoid:jt,rect_right_inv_arrow:Mt,cylinder:Nt,start:Ht,end:e((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`),i=n.insert(`circle`,`:first-child`);return i.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),r.attr(`class`,`state-end`).attr(`r`,5).attr(`width`,10).attr(`height`,10),J(t,i),t.intersect=function(e){return K.circle(t,7,e)},n},`end`),note:xt,subroutine:Vt,fork:Ut,join:Ut,class_box:e(async(e,t)=>{let r=t.padding/2,a;a=t.classes?`node `+t.classes:`node default`;let o=e.insert(`g`).attr(`class`,a).attr(`id`,t.domId||t.id),s=o.insert(`rect`,`:first-child`),c=o.insert(`line`),l=o.insert(`line`),d=0,f=4,p=o.insert(`g`).attr(`class`,`label`),m=0,h=t.classData.annotations?.[0],g=await U(p,t.classData.annotations[0]?`«`+t.classData.annotations[0]+`»`:``,t.labelStyle,!0,!0),_=g.getBBox();if(i(u())){let e=g.children[0],t=n(g);_=e.getBoundingClientRect(),t.attr(`width`,_.width),t.attr(`height`,_.height)}t.classData.annotations[0]&&(f+=_.height+4,d+=_.width);let v=t.classData.label;t.classData.type!==void 0&&t.classData.type!==``&&(i(u())?v+=`<`+t.classData.type+`>`:v+=`<`+t.classData.type+`>`);let y=await U(p,v,t.labelStyle,!0,!0);n(y).attr(`class`,`classTitle`);let b=y.getBBox();if(i(u())){let e=y.children[0],t=n(y);b=e.getBoundingClientRect(),t.attr(`width`,b.width),t.attr(`height`,b.height)}f+=b.height+4,b.width>d&&(d=b.width);let x=[];t.classData.members.forEach(async e=>{let r=e.getDisplayDetails(),a=r.displayText;i(u())&&(a=a.replace(/</g,`<`).replace(/>/g,`>`));let o=await U(p,a,r.cssStyle?r.cssStyle:t.labelStyle,!0,!0),s=o.getBBox();if(i(u())){let e=o.children[0],t=n(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}s.width>d&&(d=s.width),f+=s.height+4,x.push(o)}),f+=8;let S=[];if(t.classData.methods.forEach(async e=>{let r=e.getDisplayDetails(),a=r.displayText;i(u())&&(a=a.replace(/</g,`<`).replace(/>/g,`>`));let o=await U(p,a,r.cssStyle?r.cssStyle:t.labelStyle,!0,!0),s=o.getBBox();if(i(u())){let e=o.children[0],t=n(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}s.width>d&&(d=s.width),f+=s.height+4,S.push(o)}),f+=8,h){let e=(d-_.width)/2;n(g).attr(`transform`,`translate( `+(-1*d/2+e)+`, `+-1*f/2+`)`),m=_.height+4}let C=(d-b.width)/2;return n(y).attr(`transform`,`translate( `+(-1*d/2+C)+`, `+(-1*f/2+m)+`)`),m+=b.height+4,c.attr(`class`,`divider`).attr(`x1`,-d/2-r).attr(`x2`,d/2+r).attr(`y1`,-f/2-r+8+m).attr(`y2`,-f/2-r+8+m),m+=8,x.forEach(e=>{n(e).attr(`transform`,`translate( `+-d/2+`, `+(-1*f/2+m+8/2)+`)`);let t=e?.getBBox();m+=(t?.height??0)+4}),m+=8,l.attr(`class`,`divider`).attr(`x1`,-d/2-r).attr(`x2`,d/2+r).attr(`y1`,-f/2-r+8+m).attr(`y2`,-f/2-r+8+m),m+=8,S.forEach(e=>{n(e).attr(`transform`,`translate( `+-d/2+`, `+(-1*f/2+m)+`)`);let t=e?.getBBox();m+=(t?.height??0)+4}),s.attr(`style`,t.style).attr(`class`,`outer title-state`).attr(`x`,-d/2-r).attr(`y`,-(f/2)-r).attr(`width`,d+t.padding).attr(`height`,f+t.padding),J(t,s),t.intersect=function(e){return K.rect(t,e)},o},`class_box`)},Q={},Gt=e(async(e,t,n)=>{let r,i;if(t.link){let a;u().securityLevel===`sandbox`?a=`_top`:t.linkTarget&&(a=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,a),i=await Wt[t.shape](r,t,n)}else i=await Wt[t.shape](e,t,n),r=i;return t.tooltip&&i.attr(`title`,t.tooltip),t.class&&i.attr(`class`,`node default `+t.class),Q[t.id]=r,t.haveCallback&&Q[t.id].attr(`class`,Q[t.id].attr(`class`)+` clickable`),r},`insertNode`),Kt=e(e=>{let n=Q[e.id];t.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?n.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):n.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);function qt(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=0,s=``,c;switch(r.type){case`round`:a=5,s=`rect`;break;case`composite`:a=0,s=`composite`,c=0;break;case`square`:s=`rect`;break;case`diamond`:s=`question`;break;case`hexagon`:s=`hexagon`;break;case`block_arrow`:s=`block_arrow`;break;case`odd`:s=`rect_left_inv_arrow`;break;case`lean_right`:s=`lean_right`;break;case`lean_left`:s=`lean_left`;break;case`trapezoid`:s=`trapezoid`;break;case`inv_trapezoid`:s=`inv_trapezoid`;break;case`rect_left_inv_arrow`:s=`rect_left_inv_arrow`;break;case`circle`:s=`circle`;break;case`ellipse`:s=`ellipse`;break;case`stadium`:s=`stadium`;break;case`subroutine`:s=`subroutine`;break;case`cylinder`:s=`cylinder`;break;case`group`:s=`rect`;break;case`doublecircle`:s=`doublecircle`;break;default:s=`rect`}let l=ie(r?.styles??[]),u=r.label,d=r.size??{width:0,height:0,x:0,y:0},f=t.getDiagramId();return{labelStyle:l.labelStyle,shape:s,labelText:u,rx:a,ry:a,class:i,style:l.style,id:r.id,domId:f?`${f}-${r.id}`:r.id,directions:r.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:n,intersect:void 0,type:r.type,padding:c??o()?.block?.padding??0,widthInColumns:r.widthInColumns??1}}e(qt,`getNodeFromBlock`);async function Jt(e,t,n){let r=qt(t,n,!1);if(r.type===`group`)return;let i=await Gt(e,r,{config:o()}),a=i.node().getBBox(),s=n.getBlock(r.id);s.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(s),i.remove()}e(Jt,`calculateBlockSize`);async function Yt(e,t,n){let r=qt(t,n,!0);n.getBlock(r.id).type!==`space`&&(await Gt(e,r,{config:o()}),t.intersect=r?.intersect,Kt(r))}e(Yt,`insertBlockPositioned`);async function $(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await $(e,i.children,n,r)}e($,`performOperations`);async function Xt(e,t,n){await $(e,t,n,Jt)}e(Xt,`calculateBlockSizes`);async function Zt(e,t,n){await $(e,t,n,Yt)}e(Zt,`insertBlocks`);async function Qt(e,t,n,r,i){let a=new pe({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,c=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],l=i?`${i}-${n.id}`:n.id,u=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;st(e,{v:n.start,w:n.end,name:l},{...n,id:l,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:u},void 0,`block`,a,i),n.label&&(await nt(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:u}),rt({...n,x:c[1].x,y:c[1].y},{originalPath:c}))}}}e(Qt,`insertEdges`);var $t={parser:Se,db:We,renderer:{draw:e(async function(e,r,i,a){let{securityLevel:c,block:l}=o(),u=a.db;u.setDiagramId(r);let d;c===`sandbox`&&(d=n(`#i`+r));let f=n(c===`sandbox`?d.nodes()[0].contentDocument.body:`body`),p=c===`sandbox`?f.select(`[id="${r}"]`):n(`[id="${r}"]`);Je(p,[`point`,`circle`,`cross`],a.type,r);let m=u.getBlocks(),h=u.getBlocksFlat(),g=u.getEdges(),_=p.insert(`g`).attr(`class`,`block`);await Xt(_,m,u);let v=Ze(u);if(await Zt(_,m,u),await Qt(_,g,h,u,r),v){let e=v,n=Math.max(1,Math.round(.125*(e.width/e.height))),r=e.height+n+10,i=e.width+10,{useMaxWidth:a}=l;s(p,r,i,!!a),t.debug(`Here Bounds`,v,e),p.attr(`viewBox`,`${e.x-5} ${e.y-5} ${e.width+10} ${e.height+10}`)}},`draw`),getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`)},styles:Ge};export{$t as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./BWPyau1x.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./CF0onlHk2.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h<m&&(t=h,h=m,m=t),!(h>1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v<i)if($=y(G,K,Z,Q,Y,X,q,J)){var ee=G-$[0],te=K-$[1],ne=Y-$[0],re=X-$[1],ie=1/a(f((ee*ne+te*re)/(d(ee*ee+te*te)*d(ne*ne+re*re)))/2),ae=d($[0]*$[0]+$[1]*$[1]);z=p(R,(m-ae)/(ie-1)),B=p(R,(h-ae)/(ie+1))}else z=B=0}F>1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B<R?D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,h,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),!k),D.arc(H.cx,H.cy,B,n(H.y11,H.x11),n(H.y01,H.x01),!k))):(D.moveTo(G,K),D.arc(0,0,h,A,j,!k)):D.moveTo(G,K),!(m>1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z<R?D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,m,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),k),D.arc(H.cx,H.cy,z,n(H.y11,H.x11),n(H.y01,H.x01),!k))):D.arc(0,0,m,N,M,k)}if(D.closePath(),e)return D=null,e+``||null}return k.centroid=function(){var e=(+s.apply(this,arguments)+ +x.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +T.apply(this,arguments))/2-i/2;return[u(t)*e,a(t)*e]},k.innerRadius=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),k):s},k.outerRadius=function(t){return arguments.length?(x=typeof t==`function`?t:e(+t),k):x},k.cornerRadius=function(t){return arguments.length?(S=typeof t==`function`?t:e(+t),k):S},k.padRadius=function(t){return arguments.length?(C=t==null?null:typeof t==`function`?t:e(+t),k):C},k.startAngle=function(t){return arguments.length?(w=typeof t==`function`?t:e(+t),k):w},k.endAngle=function(t){return arguments.length?(T=typeof t==`function`?t:e(+t),k):T},k.padAngle=function(t){return arguments.length?(E=typeof t==`function`?t:e(+t),k):E},k.context=function(e){return arguments.length?(D=e??null,k):D},k}export{x as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./DsF7k-Jl.js";import"./iW3ggMaf.js";import"./BC0Z6JSt.js";import"./CFMX0wTB2.js";import"./hAYnLAr22.js";import"./Dq77RFat2.js";import"./CWiCMZki2.js";import"./D0XLW3Y72.js";import"./B38mTxN_2.js";import"./D9D9EADq2.js";import"./Bf-rMgGa.js";import"./CgljPyk-.js";import"./LevMccfs.js";import"./BLTdZGww.js";import"./p8FwW_Sl.js";import{i as t,n,r,t as i}from"./CHnO8ozm.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./DsF7k-Jl.js";import{p as t}from"./iW3ggMaf.js";import{j as n}from"./BC0Z6JSt.js";import{t as r}from"./CF0onlHk2.js";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=t(`.mermaidTooltip`);return e.empty()&&(e=t(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DNzq6p3w.js";import{i as e}from"./BBJaonHc.js";export{e as createWardleyServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DNzq6p3w.js";import{c as e}from"./BBJaonHc.js";export{e as createTreeViewServices};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{n as e}from"./DsF7k-Jl.js";import{m as t}from"./iW3ggMaf.js";import{x as n}from"./BC0Z6JSt.js";import"./CFMX0wTB2.js";import"./hAYnLAr22.js";import"./Dq77RFat2.js";import"./CWiCMZki2.js";import{n as r}from"./D0XLW3Y72.js";import{t as i}from"./B8gBHxth2.js";import{t as a}from"./DY1BZ4Qc2.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"./CZBscxHQ2.js";import"./CgljPyk-.js";import{a as f,c as p,i as m,l as h,n as g,t as _,u as v}from"./LevMccfs.js";import{a as y,i as b,o as x,r as S,t as C}from"./BLTdZGww.js";var w=e((e,t,n)=>Math.max(t,Math.min(n,e)),`clamp`),T=e((e=`TB`)=>{switch(e){case`BT`:return`bottom`;case`LR`:return`right`;case`RL`:return`left`;default:return`top`}},`getDefaultSelfLoopSide`),E=e(e=>e===`flowchart`||e===`flowchart-v2`||e===`stateDiagram`,`shouldMergeSelfLoopSegments`),D=e((e,t,n,r,i)=>{let a=[],o=new Set;if(n.forEach(({start:e,end:t})=>{e!==r&&o.add(e),t!==r&&o.add(t)}),o.forEach(t=>{let n=e.node(t);typeof n?.x==`number`&&typeof n?.y==`number`&&a.push(n)}),a.length===0&&n.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{typeof e?.x==`number`&&typeof e?.y==`number`&&a.push(e)})}),a.length===0)return T(i);let s=a.reduce((e,t)=>({x:e.x+t.x/a.length,y:e.y+t.y/a.length}),{x:0,y:0}),c=s.x-t.x,l=s.y-t.y;return Math.abs(c)>Math.abs(l)?c>0?`right`:`left`:Math.abs(l)>0?l>0?`bottom`:`top`:T(i)},`getSelfLoopSide`),O=e((e,t=`top`,n=0,r=0)=>{let i=e.x,a=e.y-n,o=e.width/2,s=e.height/2,c=Math.max(36,Math.min(100,e.width*.8)),l=w(Math.max(r,e.width*.35),36,c),u=w(Math.min(e.width,e.height)*.45,24,48);switch(t){case`bottom`:{let e=a+s;return[{x:i-l/2,y:e},{x:i-l/2,y:e+u},{x:i+l/2,y:e+u},{x:i+l/2,y:e}]}case`right`:{let e=i+o;return[{x:e,y:a-l/2},{x:e+u,y:a-l/2},{x:e+u,y:a+l/2},{x:e,y:a+l/2}]}case`left`:{let e=i-o;return[{x:e,y:a-l/2},{x:e-u,y:a-l/2},{x:e-u,y:a+l/2},{x:e,y:a+l/2}]}default:{let e=a-s;return[{x:i-l/2,y:e},{x:i-l/2,y:e-u},{x:i+l/2,y:e-u},{x:i+l/2,y:e}]}}},`getSelfLoopPoints`),k=e((e,t,n=`top`,r=0,i={})=>{let a=e.x,o=e.y-r,s=i.width??0,c=i.height??0;switch(n){case`bottom`:return{x:a,y:Math.max(...t.map(e=>e.y))+c/2+4};case`right`:return{x:Math.max(...t.map(e=>e.x))+s/2+4,y:o};case`left`:return{x:Math.min(...t.map(e=>e.x))-s/2-4,y:o};default:return{x:a,y:Math.min(...t.map(e=>e.y))-c/2-4}}},`getSelfLoopLabelPosition`),A=e((e,t=0,{mergeSelfLoops:n=!0}={})=>{let r=new Map,i=[],a=e.graph()?.rankdir;return e.edges().forEach(t=>{let a=e.edge(t);if(n&&a.selfLoop){let e=a.selfLoop.id;r.has(e)||r.set(e,[]),r.get(e).push({edge:a,start:t.v,end:t.w})}else i.push({edge:a,start:t.v,end:t.w})}),r.forEach(n=>{if(n.length!==3){n.forEach(e=>i.push(e));return}n.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[r,o,s]=n,c=r.edge.originalEdge??o.edge.originalEdge??s.edge.originalEdge??o.edge,l=e.node(c.start);if(!l){n.forEach(e=>i.push(e));return}let u={width:o.edge.width,height:o.edge.height},d=D(e,l,n,c.start,a),f=O(l,d,t,u.width??0),p=k(l,f,d,t,u),m={...o.edge,...c,id:c.id,points:f,start:c.start,end:c.end,x:p.x,y:p.y,width:u.width,height:u.height,labelStyle:o.edge.labelStyle,fromCluster:r.edge.fromCluster??o.edge.fromCluster??s.edge.fromCluster,toCluster:r.edge.toCluster??o.edge.toCluster??s.edge.toCluster};delete m.selfLoop,delete m.originalEdge,i.push({edge:m,start:m.start,end:m.end})}),i},`getEdgesToRender`),j=e(async(n,i,c,d,g,_)=>{t.warn(`Graph in recursive render:XAX`,l(i),g);let y=i.graph().rankdir;t.trace(`Dir in recursive render - dir:`,y);let C=n.insert(`g`).attr(`class`,`root`);i.nodes()?t.info(`Recursive render XXX`,i.nodes()):t.info(`No nodes found for`,i),i.edges().length>0&&t.info(`Recursive edges`,i.edge(i.edges()[0]));let w=C.insert(`g`).attr(`class`,`clusters`),T=C.insert(`g`).attr(`class`,`edgePaths`),D=C.insert(`g`).attr(`class`,`edgeLabels`),O=C.insert(`g`).attr(`class`,`nodes`),k=E(c);await Promise.all(i.nodes().map(async function(e){let n=i.node(e);if(g!==void 0){let n=JSON.parse(JSON.stringify(g.clusterData));t.trace(`Setting data for parent cluster XXX
|
|
2
|
+
Node.id = `,e,`
|
|
3
|
+
data=`,n.height,`
|
|
4
|
+
Parent cluster`,g.height),i.setNode(g.id,n),i.parent(e)||(t.trace(`Setting parent`,e,g.id),i.setParent(e,g.id,n))}if(t.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(i.node(e))),n?.clusterNode){t.info(`Cluster identified XBX`,e,n.width,i.node(e));let{ranksep:r,nodesep:a}=i.graph();n.graph.setGraph({...n.graph.graph(),ranksep:r+25,nodesep:a});let o=await j(O,n.graph,c,d,i.node(e),_),s=o.elem;v(n,s),n.diff=o.diff||0,t.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),h(s,n)}else i.children(e).length>0?(t.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,i),t.trace(s(n.id,i)),u.set(n.id,{id:s(n.id,i),node:n})):(t.trace(`Node - the non recursive path XAX`,e,O,i.node(e),y),await f(O,i.node(e),{config:_,dir:y}))})),await e(async()=>{let e=i.edges().map(async function(e){let n=i.edge(e.v,e.w,e.name);if(t.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(i.edge(e))),t.info(`Fix`,u,`ids:`,e.v,e.w,`Translating: `,u.get(e.v),u.get(e.w)),k&&n.selfLoop){if(n.selfLoop.order!==1)return;let e=n.id;n.id=n.selfLoop.id,await b(D,n),n.id=e;return}await b(D,n)});await Promise.all(e)},`processEdges`)(),t.info(`Graph before layout:`,JSON.stringify(l(i))),t.info(`############################################# XXX`),t.info(`### Layout ### XXX`),t.info(`############################################# XXX`),a(i),t.info(`Graph after layout:`,JSON.stringify(l(i)));let M=0,{subGraphTitleTotalMargin:N}=r(_);await Promise.all(o(i).map(async function(e){let n=i.node(e);if(t.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=N,t.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,i.parent(e)),u.get(n.id).node=n,p(n);else if(i.children(e).length>0){t.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,i.parent(e)),n.height+=N,i.node(n.parentId);let r=n?.padding/2||0,a=n?.labelBBox?.height||0,o=a-r||0;t.debug(`OffsetY`,o,`labelHeight`,a,`halfPadding`,r),await m(w,n),u.get(n.id).node=n}else{let e=i.node(n.parentId);n.y+=N/2,t.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),p(n)}}));let P=N/2;return A(i,P,{mergeSelfLoops:k}).forEach(function({edge:e,start:n,end:r}){t.info(`Edge `+n+` -> `+r+`: `+JSON.stringify(e),e),e.points.forEach(e=>e.y+=P),x(e,S(T,e,u,c,i.node(n),i.node(r),d))}),i.nodes().forEach(function(e){let n=i.node(e);t.info(e,n.type,n.diff),n.isGroup&&(M=n.diff)}),t.warn(`Returning from recursive render XAX`,C,M),{elem:C,diff:M}},`recursiveRender`),M=e(async(e,r)=>{let a=new i({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),o=r.select(`g`);y(o,e.markers,e.type,e.diagramId),g(),C(),_(),c(),e.nodes.forEach(e=>{a.setNode(e.id,{...e}),e.parentId&&a.setParent(e.id,e.parentId)}),t.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,i=a.node(t);a.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),a.setParent(n,i.parentId),a.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),a.setParent(r,i.parentId);let o=structuredClone(e),s=structuredClone(e),c=structuredClone(e),l=structuredClone(e);s.originalEdge=o,s.selfLoop={id:o.id,order:0},c.originalEdge=o,c.selfLoop={id:o.id,order:1},l.originalEdge=o,l.selfLoop={id:o.id,order:2},s.label=``,s.arrowTypeEnd=`none`,s.endLabelLeft=``,s.endLabelRight=``,s.startLabelLeft=``,s.id=t+`-cyclic-special-1`,c.startLabelRight=``,c.startLabelLeft=``,c.endLabelLeft=``,c.endLabelRight=``,c.arrowTypeStart=`none`,c.arrowTypeEnd=`none`,c.id=t+`-cyclic-special-mid`,l.label=``,l.startLabelRight=``,l.startLabelLeft=``,l.arrowTypeStart=`none`,i.isGroup&&(s.fromCluster=t,l.toCluster=t),l.id=t+`-cyclic-special-2`,l.arrowTypeStart=`none`,a.setEdge(t,n,s,t+`-cyclic-special-0`),a.setEdge(n,r,c,t+`-cyclic-special-1`),a.setEdge(r,t,l,t+`-cyclic-special-2`)}else a.setEdge(e.start,e.end,{...e},e.id)}),t.warn(`Graph at first:`,JSON.stringify(l(a))),d(a),t.warn(`Graph after XAX:`,JSON.stringify(l(a)));let s=n();await j(o,a,e.type,e.diagramId,void 0,s)},`render`);export{A as getEdgesToRender,M as render};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/_app/immutable/chunks/DbfGBa34.js","/_app/immutable/chunks/DNzq6p3w.js","/_app/immutable/chunks/DJmG1hmx.js","/_app/immutable/chunks/CWKhPslf.js","/_app/immutable/chunks/B8df50Oe.js","/_app/immutable/chunks/BVDV3lUS.js","/_app/immutable/chunks/C2FXoa5Z.js","/_app/immutable/chunks/DVuOupEf.js","/_app/immutable/chunks/BIZlbVKk.js","/_app/immutable/chunks/CkDjHmRi.js","/_app/immutable/chunks/DbGyXH9B.js","/_app/immutable/chunks/BtTEEMTW.js","/_app/immutable/chunks/Bq8Occ6m.js","/_app/immutable/chunks/CK1Au-AH.js","/_app/immutable/chunks/B6Q2kmfG.js","/_app/immutable/chunks/C1MWiow4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./CCHqIdNO.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./DNzq6p3w.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
3
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ce=class extends c{static{p(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return I(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return I(t)}},L={parser:{TokenBuilder:p(()=>new Se,`TokenBuilder`),ValueConverter:p(()=>new Ce,`ValueConverter`)}};function we(e=l){let r=f(t(e),d),i=f(n({shared:r}),ne,L);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(we,`createRailroadServices`);var Te=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Ee=class extends c{static{p(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},R={parser:{TokenBuilder:p(()=>new Te,`TokenBuilder`),ValueConverter:p(()=>new Ee,`ValueConverter`)}};function z(e=l){let r=f(t(e),d),i=f(n({shared:r}),ae,R);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(z,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},B=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
4
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Oe=class extends c{static{p(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return B(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return B(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},V={parser:{TokenBuilder:p(()=>new De,`TokenBuilder`),ValueConverter:p(()=>new Oe,`ValueConverter`)}};function H(e=l){let r=f(t(e),d),i=f(n({shared:r}),re,V);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(H,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},U=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
5
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./DbfGBa34.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]),import.meta.url);$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./DJmG1hmx.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]),import.meta.url);$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./CWKhPslf.js`);return{createPieServices:e}},__vite__mapDeps([3,1]),import.meta.url);$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./B8df50Oe.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]),import.meta.url);$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./BVDV3lUS.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]),import.meta.url);$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./C2FXoa5Z.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]),import.meta.url);$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./DVuOupEf.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]),import.meta.url);$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./BIZlbVKk.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]),import.meta.url);$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./CkDjHmRi.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]),import.meta.url);$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./DbGyXH9B.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]),import.meta.url);$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./BtTEEMTW.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]),import.meta.url);$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./Bq8Occ6m.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]),import.meta.url);$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./CK1Au-AH.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]),import.meta.url);$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./B6Q2kmfG.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]),import.meta.url);$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./C1MWiow4.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]),import.meta.url);$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
|
|
6
|
+
`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
|
|
7
|
+
`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,O as C,w as D,D as E,h as M,T as O,j as S,E as T,P as _,Y as a,N as b,q as c,V as d,H as f,we as g,L as h,Q as i,m as j,g as k,W as l,z as m,ze as n,X as o,R as p,Z as r,K as s,Be as t,G as u,F as v,k as w,A as x,M as y};
|