@sme.up/ketchup2 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
- package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
- package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
- package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
- package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
- package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
- package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
- package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
- package/dist/channel-BvUly9jN.cjs +1 -0
- package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
- package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
- package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
- package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
- package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
- package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
- package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
- package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
- package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
- package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
- package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
- package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
- package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
- package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
- package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
- package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
- package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
- package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
- package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
- package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
- package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
- package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
- package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
- package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
- package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
- package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
- package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
- package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
- package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
- package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
- package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
- package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
- package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
- package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
- package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
- package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
- package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
- package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
- package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
- package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
- package/dist/dist-DrOEvFlx.cjs +1 -0
- package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
- package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
- package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
- package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
- package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
- package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
- package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
- package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
- package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
- package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
- package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
- package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
- package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
- package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
- package/dist/katex-DUe6VLjC.cjs +257 -0
- package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
- package/dist/ketchup2.cjs.js +156 -154
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +31759 -29656
- package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
- package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
- package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
- package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
- package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
- package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
- package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
- package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
- package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
- package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
- package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
- package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
- package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
- package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
- package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
- package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
- package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
- package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
- package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
- package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
- package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
- package/dist/src-B16ML7oM.cjs +1 -0
- package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
- package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
- package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
- package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
- package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
- package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
- package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
- package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
- package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
- package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
- package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
- package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
- package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
- package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
- package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
- package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
- package/package.json +5 -2
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as
|
|
1
|
+
import { m as e, p as t } from "./src-D-6ZfKf9.js";
|
|
2
|
+
import { D as n, H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f } from "./chunk-DU6HZSFF-CNSdkWoH.js";
|
|
3
|
+
import { n as p } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
4
|
import { t as m } from "./ordinal-D_ZgubzR.js";
|
|
4
5
|
import { t as h } from "./defaultLocale-DnzPsei5.js";
|
|
5
|
-
import { i as g } from "./chunk-
|
|
6
|
-
import { t as _ } from "./chunk-
|
|
7
|
-
import { i as v, n as y } from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
import { t as x } from "./chunk-
|
|
10
|
-
import { t as S } from "./chunk-
|
|
6
|
+
import { i as g } from "./chunk-75Z2AOVW-BwUD389x.js";
|
|
7
|
+
import { t as _ } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
|
|
8
|
+
import { i as v, n as y } from "./chunk-P2QGCYS3-DRvvOWJ2.js";
|
|
9
|
+
import { n as b } from "./mermaid-parser.core-oFB-qEU8.js";
|
|
10
|
+
import { t as x } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
11
|
+
import { t as S } from "./chunk-POPQ4Y6H-CaEkosGL.js";
|
|
11
12
|
//#region node_modules/d3-hierarchy/src/hierarchy/count.js
|
|
12
13
|
function C(e) {
|
|
13
14
|
var t = 0, n = e.children, r = n && n.length;
|
|
@@ -173,23 +174,23 @@ function q(e) {
|
|
|
173
174
|
}
|
|
174
175
|
//#endregion
|
|
175
176
|
//#region node_modules/d3-hierarchy/src/treemap/round.js
|
|
176
|
-
function
|
|
177
|
+
function ee(e) {
|
|
177
178
|
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
178
179
|
}
|
|
179
180
|
//#endregion
|
|
180
181
|
//#region node_modules/d3-hierarchy/src/treemap/dice.js
|
|
181
|
-
function
|
|
182
|
+
function te(e, t, n, r, i) {
|
|
182
183
|
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
|
|
183
184
|
}
|
|
184
185
|
//#endregion
|
|
185
186
|
//#region node_modules/d3-hierarchy/src/treemap/slice.js
|
|
186
|
-
function
|
|
187
|
+
function ne(e, t, n, r, i) {
|
|
187
188
|
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
|
|
188
189
|
}
|
|
189
190
|
//#endregion
|
|
190
191
|
//#region node_modules/d3-hierarchy/src/treemap/squarify.js
|
|
191
|
-
var
|
|
192
|
-
function
|
|
192
|
+
var re = (1 + Math.sqrt(5)) / 2;
|
|
193
|
+
function ie(e, t, n, r, i, a) {
|
|
193
194
|
for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
|
|
194
195
|
p = i - n, m = a - r;
|
|
195
196
|
do
|
|
@@ -206,24 +207,24 @@ function re(e, t, n, r, i, a) {
|
|
|
206
207
|
value: g,
|
|
207
208
|
dice: p < m,
|
|
208
209
|
children: s.slice(u, d)
|
|
209
|
-
}), c.dice ?
|
|
210
|
+
}), c.dice ? te(c, n, r, i, h ? r += m * g / h : a) : ne(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
|
|
210
211
|
}
|
|
211
212
|
return o;
|
|
212
213
|
}
|
|
213
|
-
var
|
|
214
|
+
var ae = (function e(t) {
|
|
214
215
|
function n(e, n, r, i, a) {
|
|
215
|
-
|
|
216
|
+
ie(t, e, n, r, i, a);
|
|
216
217
|
}
|
|
217
218
|
return n.ratio = function(t) {
|
|
218
219
|
return e((t = +t) > 1 ? t : 1);
|
|
219
220
|
}, n;
|
|
220
|
-
})(
|
|
221
|
+
})(re);
|
|
221
222
|
//#endregion
|
|
222
223
|
//#region node_modules/d3-hierarchy/src/treemap/index.js
|
|
223
|
-
function
|
|
224
|
-
var e =
|
|
224
|
+
function oe() {
|
|
225
|
+
var e = ae, t = !1, n = 1, r = 1, i = [0], a = K, o = K, s = K, c = K, l = K;
|
|
225
226
|
function u(e) {
|
|
226
|
-
return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(
|
|
227
|
+
return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ee), e;
|
|
227
228
|
}
|
|
228
229
|
function d(t) {
|
|
229
230
|
var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
|
|
@@ -252,19 +253,19 @@ function ae() {
|
|
|
252
253
|
}, u;
|
|
253
254
|
}
|
|
254
255
|
//#endregion
|
|
255
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-
|
|
256
|
-
var
|
|
256
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-VX7I27RA.mjs
|
|
257
|
+
var J = class {
|
|
257
258
|
constructor() {
|
|
258
|
-
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle =
|
|
259
|
+
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = a, this.getAccTitle = f, this.setDiagramTitle = i, this.getDiagramTitle = d, this.getAccDescription = u, this.setAccDescription = r;
|
|
259
260
|
}
|
|
260
261
|
static {
|
|
261
|
-
|
|
262
|
+
p(this, "TreeMapDB");
|
|
262
263
|
}
|
|
263
264
|
getNodes() {
|
|
264
265
|
return this.nodes;
|
|
265
266
|
}
|
|
266
267
|
getConfig() {
|
|
267
|
-
let e =
|
|
268
|
+
let e = l, t = s();
|
|
268
269
|
return g({
|
|
269
270
|
...e.treemap,
|
|
270
271
|
...t.treemap ?? {}
|
|
@@ -296,10 +297,10 @@ var Y = class {
|
|
|
296
297
|
return this.classes.get(e)?.styles ?? [];
|
|
297
298
|
}
|
|
298
299
|
clear() {
|
|
299
|
-
|
|
300
|
+
o(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
300
301
|
}
|
|
301
302
|
};
|
|
302
|
-
function
|
|
303
|
+
function Y(e) {
|
|
303
304
|
if (!e.length) return [];
|
|
304
305
|
let t = [], n = [];
|
|
305
306
|
return e.forEach((e) => {
|
|
@@ -319,15 +320,15 @@ function X(e) {
|
|
|
319
320
|
});
|
|
320
321
|
}), t;
|
|
321
322
|
}
|
|
322
|
-
|
|
323
|
-
var
|
|
324
|
-
x(e,
|
|
325
|
-
let
|
|
326
|
-
for (let
|
|
327
|
-
for (let
|
|
328
|
-
let e =
|
|
323
|
+
p(Y, "buildHierarchy");
|
|
324
|
+
var se = /* @__PURE__ */ p((e, t) => {
|
|
325
|
+
x(e, t);
|
|
326
|
+
let n = [];
|
|
327
|
+
for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
|
|
328
|
+
for (let r of e.TreemapRows ?? []) {
|
|
329
|
+
let e = r.item;
|
|
329
330
|
if (!e) continue;
|
|
330
|
-
let i =
|
|
331
|
+
let i = r.indent ? parseInt(r.indent) : 0, a = ce(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
|
|
331
332
|
level: i,
|
|
332
333
|
name: a,
|
|
333
334
|
type: e.$type,
|
|
@@ -335,41 +336,41 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
335
336
|
classSelector: e.classSelector,
|
|
336
337
|
cssCompiledStyles: s
|
|
337
338
|
};
|
|
338
|
-
|
|
339
|
+
n.push(c);
|
|
339
340
|
}
|
|
340
|
-
let
|
|
341
|
-
for (let r of e)
|
|
341
|
+
let r = Y(n), i = /* @__PURE__ */ p((e, n) => {
|
|
342
|
+
for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && i(r.children, n + 1);
|
|
342
343
|
}, "addNodesRecursively");
|
|
343
|
-
|
|
344
|
-
}, "populate"),
|
|
344
|
+
i(r, 0);
|
|
345
|
+
}, "populate"), ce = /* @__PURE__ */ p((e) => e.name ? String(e.name) : "", "getItemName"), X = {
|
|
345
346
|
parser: { yy: void 0 },
|
|
346
|
-
parse: /* @__PURE__ */
|
|
347
|
+
parse: /* @__PURE__ */ p(async (t) => {
|
|
347
348
|
try {
|
|
348
349
|
let n = await b("treemap", t);
|
|
349
350
|
e.debug("Treemap AST:", n);
|
|
350
|
-
let r =
|
|
351
|
-
if (!(r instanceof
|
|
352
|
-
|
|
351
|
+
let r = X.parser?.yy;
|
|
352
|
+
if (!(r instanceof J)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
353
|
+
se(n, r);
|
|
353
354
|
} catch (t) {
|
|
354
355
|
throw e.error("Error parsing treemap:", t), t;
|
|
355
356
|
}
|
|
356
357
|
}, "parse")
|
|
357
|
-
},
|
|
358
|
-
draw: /* @__PURE__ */
|
|
359
|
-
let
|
|
360
|
-
if (!
|
|
361
|
-
let y =
|
|
362
|
-
b.attr("viewBox", `0 0 ${w} ${T}`),
|
|
358
|
+
}, Z = 10, Q = 10, $ = 25, le = {
|
|
359
|
+
draw: /* @__PURE__ */ p((n, r, i, a) => {
|
|
360
|
+
let o = a.db, l = o.getConfig(), u = l.padding ?? Z, d = o.getDiagramTitle(), f = o.getRoot(), { themeVariables: g } = s();
|
|
361
|
+
if (!f) return;
|
|
362
|
+
let y = d ? 30 : 0, b = _(r), x = l.nodeWidth ? l.nodeWidth * Q : 960, C = l.nodeHeight ? l.nodeHeight * Q : 500, w = x, T = C + y;
|
|
363
|
+
b.attr("viewBox", `0 0 ${w} ${T}`), c(b, T, w, l.useMaxWidth);
|
|
363
364
|
let E;
|
|
364
365
|
try {
|
|
365
|
-
let e =
|
|
366
|
-
if (e === "$0,0") E = /* @__PURE__ */
|
|
366
|
+
let e = l.valueFormat || ",";
|
|
367
|
+
if (e === "$0,0") E = /* @__PURE__ */ p((e) => "$" + h(",")(e), "valueFormat");
|
|
367
368
|
else if (e.startsWith("$") && e.includes(",")) {
|
|
368
|
-
let
|
|
369
|
-
E = /* @__PURE__ */
|
|
369
|
+
let t = /\.\d+/.exec(e), n = t ? t[0] : "";
|
|
370
|
+
E = /* @__PURE__ */ p((e) => "$" + h("," + n)(e), "valueFormat");
|
|
370
371
|
} else if (e.startsWith("$")) {
|
|
371
|
-
let
|
|
372
|
-
E = /* @__PURE__ */
|
|
372
|
+
let t = e.substring(1);
|
|
373
|
+
E = /* @__PURE__ */ p((e) => "$" + h(t || "")(e), "valueFormat");
|
|
373
374
|
} else E = h(e);
|
|
374
375
|
} catch (t) {
|
|
375
376
|
e.error("Error creating format function:", t), E = h(",");
|
|
@@ -416,64 +417,64 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
416
417
|
g.cScaleLabel10,
|
|
417
418
|
g.cScaleLabel11
|
|
418
419
|
]);
|
|
419
|
-
|
|
420
|
-
let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = R(
|
|
421
|
-
P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${
|
|
420
|
+
d && b.append("text").attr("x", w / 2).attr("y", y / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
|
|
421
|
+
let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = R(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = oe().size([x, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(u).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
422
|
+
P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${r}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
|
|
422
423
|
if (e.depth === 0) return "display: none;";
|
|
423
424
|
let t = v({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
424
425
|
return t.nodeStyles + ";" + t.borderStyles.join(";");
|
|
425
|
-
}), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
|
|
426
|
+
}), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, t) => `url(#clip-section-${r}-${t})`).attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
|
|
426
427
|
if (e.depth === 0) return;
|
|
427
|
-
let
|
|
428
|
-
|
|
428
|
+
let n = t(this), r = e.data.name;
|
|
429
|
+
n.text(r);
|
|
429
430
|
let i = e.x1 - e.x0, a;
|
|
430
|
-
a =
|
|
431
|
-
let o = Math.max(15, a), s =
|
|
431
|
+
a = l.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
|
|
432
|
+
let o = Math.max(15, a), s = n.node();
|
|
432
433
|
if (s.getComputedTextLength() > o) {
|
|
433
434
|
let e = r;
|
|
434
435
|
for (; e.length > 0;) {
|
|
435
436
|
if (e = r.substring(0, e.length - 1), e.length === 0) {
|
|
436
|
-
|
|
437
|
+
n.text("..."), s.getComputedTextLength() > o && n.text("");
|
|
437
438
|
break;
|
|
438
439
|
}
|
|
439
|
-
if (
|
|
440
|
+
if (n.text(e + "..."), s.getComputedTextLength() <= o) break;
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
|
-
}),
|
|
443
|
-
let F = M.leaves(), I = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
444
|
-
|
|
445
|
-
let
|
|
446
|
-
if (o <
|
|
447
|
-
|
|
443
|
+
}), l.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
|
|
444
|
+
let F = M.leaves(), I = F.length > 20, L = I ? 16 : 38, z = I ? 14 : 28, B = I ? 4 : 8, V = I ? 4 : 6, H = I ? 2 : 4, U = I ? 8 : 10, W = I ? 1 : 2, G = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
445
|
+
G.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => v({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), G.append("clipPath").attr("id", (e, t) => `clip-${r}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), G.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => `text-anchor: middle; dominant-baseline: middle; font-size: ${L}px;fill:` + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${r}-${t})`).text((e) => e.data.name).each(function(e) {
|
|
446
|
+
let n = t(this), r = e.x1 - e.x0, i = e.y1 - e.y0, a = n.node(), o = r - 2 * H, s = i - 2 * H;
|
|
447
|
+
if (o < U || s < U) {
|
|
448
|
+
n.style("display", "none");
|
|
448
449
|
return;
|
|
449
450
|
}
|
|
450
|
-
let c = parseInt(
|
|
451
|
-
for (; a.getComputedTextLength() > o && c >
|
|
452
|
-
let u = Math.max(
|
|
453
|
-
for (; d > s && c >
|
|
454
|
-
|
|
455
|
-
}),
|
|
451
|
+
let c = parseInt(n.style("font-size"), 10), l = .6;
|
|
452
|
+
for (; a.getComputedTextLength() > o && c > B;) c--, n.style("font-size", `${c}px`);
|
|
453
|
+
let u = Math.max(V, Math.min(z, Math.round(c * l))), d = c + W + u;
|
|
454
|
+
for (; d > s && c > B && (c--, u = Math.max(V, Math.min(z, Math.round(c * l))), !(u < V && c === B));) n.style("font-size", `${c}px`), d = c + W + u;
|
|
455
|
+
n.style("font-size", `${c}px`), I ? (c < B || s < B) && n.style("display", "none") : (a.getComputedTextLength() > o || c < B || s < c) && n.style("display", "none");
|
|
456
|
+
}), l.showValues !== !1 && G.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
|
|
456
457
|
return (e.y1 - e.y0) / 2;
|
|
457
|
-
}).attr("style", (e) =>
|
|
458
|
-
let
|
|
458
|
+
}).attr("style", (e) => `text-anchor: middle; dominant-baseline: hanging; font-size: ${z}px;fill:` + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${r}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
|
|
459
|
+
let n = t(this), r = this.parentNode;
|
|
459
460
|
if (!r) {
|
|
460
|
-
|
|
461
|
+
n.style("display", "none");
|
|
461
462
|
return;
|
|
462
463
|
}
|
|
463
|
-
let i =
|
|
464
|
+
let i = t(r).select(".treemapLabel");
|
|
464
465
|
if (i.empty() || i.style("display") === "none") {
|
|
465
|
-
|
|
466
|
+
n.style("display", "none");
|
|
466
467
|
return;
|
|
467
468
|
}
|
|
468
|
-
let a = parseFloat(i.style("font-size")), o = Math.max(
|
|
469
|
-
|
|
470
|
-
let s = (e.y1 - e.y0) / 2 + a / 2 +
|
|
471
|
-
|
|
472
|
-
let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c -
|
|
473
|
-
|
|
474
|
-
}), S(b,
|
|
469
|
+
let a = parseFloat(i.style("font-size")), o = Math.max(V, Math.min(z, Math.round(a * .6)));
|
|
470
|
+
n.style("font-size", `${o}px`);
|
|
471
|
+
let s = (e.y1 - e.y0) / 2 + a / 2 + W;
|
|
472
|
+
n.attr("y", s);
|
|
473
|
+
let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 2 * H;
|
|
474
|
+
n.node().getComputedTextLength() > u || s + o > l || o < V ? n.style("display", "none") : n.style("display", null);
|
|
475
|
+
}), S(b, l.diagramPadding ?? 8, "flowchart", l?.useMaxWidth || !1);
|
|
475
476
|
}, "draw"),
|
|
476
|
-
getClasses: /* @__PURE__ */
|
|
477
|
+
getClasses: /* @__PURE__ */ p(function(e, t) {
|
|
477
478
|
return t.db.getClasses();
|
|
478
479
|
}, "getClasses")
|
|
479
480
|
}, ue = {
|
|
@@ -487,35 +488,35 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
487
488
|
valueFontSize: "10px",
|
|
488
489
|
titleFontSize: "14px"
|
|
489
490
|
}, de = {
|
|
490
|
-
parser:
|
|
491
|
+
parser: X,
|
|
491
492
|
get db() {
|
|
492
|
-
return new
|
|
493
|
+
return new J();
|
|
493
494
|
},
|
|
494
495
|
renderer: le,
|
|
495
|
-
styles: /* @__PURE__ */
|
|
496
|
-
let t = g(
|
|
496
|
+
styles: /* @__PURE__ */ p(({ treemap: e } = {}) => {
|
|
497
|
+
let t = g(n(), s().themeVariables), r = g(ue, e), i = r.titleColor ?? t.titleColor, a = r.labelColor ?? t.textColor, o = r.valueColor ?? t.textColor;
|
|
497
498
|
return `
|
|
498
499
|
.treemapNode.section {
|
|
499
|
-
stroke: ${
|
|
500
|
-
stroke-width: ${
|
|
501
|
-
fill: ${
|
|
500
|
+
stroke: ${r.sectionStrokeColor};
|
|
501
|
+
stroke-width: ${r.sectionStrokeWidth};
|
|
502
|
+
fill: ${r.sectionFillColor};
|
|
502
503
|
}
|
|
503
504
|
.treemapNode.leaf {
|
|
504
|
-
stroke: ${
|
|
505
|
-
stroke-width: ${
|
|
506
|
-
fill: ${
|
|
505
|
+
stroke: ${r.leafStrokeColor};
|
|
506
|
+
stroke-width: ${r.leafStrokeWidth};
|
|
507
|
+
fill: ${r.leafFillColor};
|
|
507
508
|
}
|
|
508
509
|
.treemapLabel {
|
|
509
510
|
fill: ${a};
|
|
510
|
-
font-size: ${
|
|
511
|
+
font-size: ${r.labelFontSize};
|
|
511
512
|
}
|
|
512
513
|
.treemapValue {
|
|
513
514
|
fill: ${o};
|
|
514
|
-
font-size: ${
|
|
515
|
+
font-size: ${r.valueFontSize};
|
|
515
516
|
}
|
|
516
517
|
.treemapTitle {
|
|
517
518
|
fill: ${i};
|
|
518
|
-
font-size: ${
|
|
519
|
+
font-size: ${r.titleFontSize};
|
|
519
520
|
}
|
|
520
521
|
`;
|
|
521
522
|
}, "getStyles")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const e=require("./src-B16ML7oM.cjs"),t=require("./chunk-DU6HZSFF-mznJTFyO.cjs"),n=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),r=require("./chunk-75Z2AOVW-RbCLc-XL.cjs"),i=require("./chunk-CLGD4ZFX-Dvn-kRD7.cjs"),a=require("./mermaid-parser.core-CqChDTj1.cjs"),o=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");var s=t.f.packet,c=class{constructor(){this.packet=[],this.setAccTitle=t.U,this.getAccTitle=t.y,this.setDiagramTitle=t.K,this.getDiagramTitle=t.w,this.getAccDescription=t.v,this.setAccDescription=t.H}static{n.n(this,`PacketDB`)}getConfig(){let e=r.i({...s,...t.b().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){t.a(),this.packet=[]}},l=1e4,u=n.n((t,n)=>{o.t(t,n);let r=-1,i=[],a=1,{bitsPerRow:s}=n.getConfig();for(let{start:o,end:c,bits:u,label:f}of t.blocks){if(o!==void 0&&c!==void 0&&c<o)throw Error(`Packet block ${o} - ${c} is invalid. End must be greater than start.`);if(o??=r+1,o!==r+1)throw Error(`Packet block ${o} - ${c??o} is not contiguous. It should start from ${r+1}.`);if(u===0)throw Error(`Packet block ${o} is invalid. Cannot have a zero bit field.`);for(c??=o+(u??1)-1,u??=c-o+1,r=c,e.m.debug(`Packet block ${o} - ${r} with label ${f}`);i.length<=s+1&&n.getPacket().length<l;){let[e,t]=d({start:o,end:c,bits:u,label:f},a,s);if(i.push(e),e.end+1===a*s&&(n.pushWord(i),i=[],a++),!t)break;({start:o,end:c,bits:u,label:f}=t)}}n.pushWord(i)},`populate`),d=n.n((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),f={parser:{yy:void 0},parse:n.n(async t=>{let n=await a.n(`packet`,t),r=f.parser?.yy;if(!(r instanceof c))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);e.m.debug(n),u(n,r)},`parse`)},p=n.n((e,n,r,a)=>{let o=a.db,s=o.getConfig(),{rowHeight:c,paddingY:l,bitWidth:u,bitsPerRow:d}=s,f=o.getPacket(),p=o.getDiagramTitle(),h=c+l,g=h*(f.length+1)-(p?0:c),_=u*d+2,v=i.t(n);v.attr(`viewBox`,`0 0 ${_} ${g}`),t.c(v,g,_,s.useMaxWidth);for(let[e,t]of f.entries())m(v,t,e,s);v.append(`text`).text(p).attr(`x`,_/2).attr(`y`,g-h/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),m=n.n((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),h={draw:p},g={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},_={parser:f,get db(){return new c},renderer:h,styles:n.n(({packet:e}={})=>{let t=r.i(g,e);return`
|
|
2
|
+
.packetByte {
|
|
3
|
+
font-size: ${t.byteFontSize};
|
|
4
|
+
}
|
|
5
|
+
.packetByte.start {
|
|
6
|
+
fill: ${t.startByteColor};
|
|
7
|
+
}
|
|
8
|
+
.packetByte.end {
|
|
9
|
+
fill: ${t.endByteColor};
|
|
10
|
+
}
|
|
11
|
+
.packetLabel {
|
|
12
|
+
fill: ${t.labelColor};
|
|
13
|
+
font-size: ${t.labelFontSize};
|
|
14
|
+
}
|
|
15
|
+
.packetTitle {
|
|
16
|
+
fill: ${t.titleColor};
|
|
17
|
+
font-size: ${t.titleFontSize};
|
|
18
|
+
}
|
|
19
|
+
.packetBlock {
|
|
20
|
+
stroke: ${t.blockStrokeColor};
|
|
21
|
+
stroke-width: ${t.blockStrokeWidth};
|
|
22
|
+
fill: ${t.blockFillColor};
|
|
23
|
+
}
|
|
24
|
+
`},`styles`)};exports.diagram=_;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { m as e } from "./src-D-6ZfKf9.js";
|
|
2
|
+
import { H as t, K as n, U as r, a as i, b as a, c as o, f as s, v as c, w as l, y as u } from "./chunk-DU6HZSFF-CNSdkWoH.js";
|
|
3
|
+
import { n as d } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { i as f } from "./chunk-75Z2AOVW-BwUD389x.js";
|
|
5
|
+
import { t as p } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
|
|
6
|
+
import { n as m } from "./mermaid-parser.core-oFB-qEU8.js";
|
|
7
|
+
import { t as h } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-Z3DM3KII.mjs
|
|
9
|
+
var g = s.packet, _ = class {
|
|
9
10
|
constructor() {
|
|
10
|
-
this.packet = [], this.setAccTitle =
|
|
11
|
+
this.packet = [], this.setAccTitle = r, this.getAccTitle = u, this.setDiagramTitle = n, this.getDiagramTitle = l, this.getAccDescription = c, this.setAccDescription = t;
|
|
11
12
|
}
|
|
12
13
|
static {
|
|
13
|
-
|
|
14
|
+
d(this, "PacketDB");
|
|
14
15
|
}
|
|
15
16
|
getConfig() {
|
|
16
17
|
let e = f({
|
|
17
18
|
...g,
|
|
18
|
-
...
|
|
19
|
+
...a().packet
|
|
19
20
|
});
|
|
20
21
|
return e.showBits && (e.paddingY += 10), e;
|
|
21
22
|
}
|
|
@@ -26,9 +27,9 @@ var g = c.packet, _ = class {
|
|
|
26
27
|
e.length > 0 && this.packet.push(e);
|
|
27
28
|
}
|
|
28
29
|
clear() {
|
|
29
|
-
|
|
30
|
+
i(), this.packet = [];
|
|
30
31
|
}
|
|
31
|
-
}, v = 1e4, y = /* @__PURE__ */
|
|
32
|
+
}, v = 1e4, y = /* @__PURE__ */ d((t, n) => {
|
|
32
33
|
h(t, n);
|
|
33
34
|
let r = -1, i = [], a = 1, { bitsPerRow: o } = n.getConfig();
|
|
34
35
|
for (let { start: s, end: c, bits: l, label: u } of t.blocks) {
|
|
@@ -47,7 +48,7 @@ var g = c.packet, _ = class {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
n.pushWord(i);
|
|
50
|
-
}, "populate"), b = /* @__PURE__ */
|
|
51
|
+
}, "populate"), b = /* @__PURE__ */ d((e, t, n) => {
|
|
51
52
|
if (e.start === void 0) throw Error("start should have been set during first phase");
|
|
52
53
|
if (e.end === void 0) throw Error("end should have been set during first phase");
|
|
53
54
|
if (e.start > e.end) throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);
|
|
@@ -66,17 +67,17 @@ var g = c.packet, _ = class {
|
|
|
66
67
|
}];
|
|
67
68
|
}, "getNextFittingBlock"), x = {
|
|
68
69
|
parser: { yy: void 0 },
|
|
69
|
-
parse: /* @__PURE__ */
|
|
70
|
+
parse: /* @__PURE__ */ d(async (t) => {
|
|
70
71
|
let n = await m("packet", t), r = x.parser?.yy;
|
|
71
72
|
if (!(r instanceof _)) throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
72
73
|
e.debug(n), y(n, r);
|
|
73
74
|
}, "parse")
|
|
74
|
-
}, S = /* @__PURE__ */
|
|
75
|
-
let i = r.db, a = i.getConfig(), { rowHeight:
|
|
76
|
-
_.attr("viewBox", `0 0 ${g} ${h}`),
|
|
75
|
+
}, S = /* @__PURE__ */ d((e, t, n, r) => {
|
|
76
|
+
let i = r.db, a = i.getConfig(), { rowHeight: s, paddingY: c, bitWidth: l, bitsPerRow: u } = a, d = i.getPacket(), f = i.getDiagramTitle(), m = s + c, h = m * (d.length + 1) - (f ? 0 : s), g = l * u + 2, _ = p(t);
|
|
77
|
+
_.attr("viewBox", `0 0 ${g} ${h}`), o(_, h, g, a.useMaxWidth);
|
|
77
78
|
for (let [e, t] of d.entries()) C(_, t, e, a);
|
|
78
79
|
_.append("text").text(f).attr("x", g / 2).attr("y", h - m / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
79
|
-
}, "draw"), C = /* @__PURE__ */
|
|
80
|
+
}, "draw"), C = /* @__PURE__ */ d((e, t, n, { rowHeight: r, paddingX: i, paddingY: a, bitWidth: o, bitsPerRow: s, showBits: c }) => {
|
|
80
81
|
let l = e.append("g"), u = n * (r + a) + a;
|
|
81
82
|
for (let e of t) {
|
|
82
83
|
let t = e.start % s * o + 1, n = (e.end - e.start + 1) * o - i;
|
|
@@ -101,7 +102,7 @@ var g = c.packet, _ = class {
|
|
|
101
102
|
return new _();
|
|
102
103
|
},
|
|
103
104
|
renderer: w,
|
|
104
|
-
styles: /* @__PURE__ */
|
|
105
|
+
styles: /* @__PURE__ */ d(({ packet: e } = {}) => {
|
|
105
106
|
let t = f(T, e);
|
|
106
107
|
return `
|
|
107
108
|
.packetByte {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as e } from "./src-D-6ZfKf9.js";
|
|
2
2
|
//#region node_modules/d3-shape/src/math.js
|
|
3
3
|
var t = Math.abs, n = Math.atan2, r = Math.cos, i = Math.max, a = Math.min, o = Math.sin, s = Math.sqrt, c = 1e-12, l = Math.PI, u = l / 2, d = 2 * l;
|
|
4
4
|
function f(e) {
|
|
@@ -12,7 +12,7 @@ function p(e) {
|
|
|
12
12
|
var m = /* @__PURE__ */ e(((e) => {
|
|
13
13
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.BLANK_URL = e.relativeFirstCharacters = e.whitespaceEscapeCharsRegex = e.urlSchemeRegex = e.ctrlCharactersRegex = e.htmlCtrlEntityRegex = e.htmlEntitiesRegex = e.invalidProtocolRegex = void 0, e.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im, e.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g, e.htmlCtrlEntityRegex = /&(newline|tab);/gi, e.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, e.urlSchemeRegex = /^.+(:|:)/gim, e.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g, e.relativeFirstCharacters = [".", "/"], e.BLANK_URL = "about:blank";
|
|
14
14
|
})), h = /* @__PURE__ */ e(((e) => {
|
|
15
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.sanitizeUrl =
|
|
15
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.sanitizeUrl = o;
|
|
16
16
|
var t = m();
|
|
17
17
|
function n(e) {
|
|
18
18
|
return t.relativeFirstCharacters.indexOf(e[0]) > -1;
|
|
@@ -54,7 +54,6 @@ var m = /* @__PURE__ */ e(((e) => {
|
|
|
54
54
|
}
|
|
55
55
|
return f;
|
|
56
56
|
}
|
|
57
|
-
e.sanitizeUrl = o;
|
|
58
57
|
}));
|
|
59
58
|
//#endregion
|
|
60
59
|
export { n as a, u as c, l as d, o as f, p as i, i as l, d as m, t as n, r as o, s as p, f as r, c as s, h as t, a as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./src-B16ML7oM.cjs");var t=Math.abs,n=Math.atan2,r=Math.cos,i=Math.max,a=Math.min,o=Math.sin,s=Math.sqrt,c=1e-12,l=Math.PI,u=l/2,d=2*l;function f(e){return e>1?0:e<-1?l:Math.acos(e)}function p(e){return e>=1?u:e<=-1?-u:Math.asin(e)}var m=e._((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),h=e._((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=m();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}}));Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { m as e } from "./src-D-6ZfKf9.js";
|
|
2
|
+
import "./chunk-DU6HZSFF-CNSdkWoH.js";
|
|
3
|
+
import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import "./chunk-CLGD4ZFX-DKRy6g5T.js";
|
|
5
|
+
import { f as n, t as r } from "./mermaid-parser.core-oFB-qEU8.js";
|
|
6
|
+
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-BNwvtyzm.js";
|
|
7
|
+
import { t as s } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-PWID7BFC.mjs
|
|
9
|
+
var c = n().RailroadEbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
10
|
+
let t = e.alternatives.map(u);
|
|
11
|
+
return t.length === 1 ? t[0] : {
|
|
12
|
+
type: "choice",
|
|
13
|
+
alternatives: t
|
|
14
|
+
};
|
|
15
|
+
}, "transformChoice"), u = /* @__PURE__ */ t((e) => {
|
|
16
|
+
let t = e.elements.map(p);
|
|
17
|
+
return t.length === 1 ? t[0] : {
|
|
18
|
+
type: "sequence",
|
|
19
|
+
elements: t
|
|
20
|
+
};
|
|
21
|
+
}, "transformSequence"), d = /* @__PURE__ */ t((e) => {
|
|
22
|
+
switch (e.$type) {
|
|
23
|
+
case "EbnfTerminal": return {
|
|
24
|
+
type: "terminal",
|
|
25
|
+
value: e.value
|
|
26
|
+
};
|
|
27
|
+
case "EbnfNonTerminal": return {
|
|
28
|
+
type: "nonterminal",
|
|
29
|
+
name: e.name
|
|
30
|
+
};
|
|
31
|
+
case "EbnfSpecial": return {
|
|
32
|
+
type: "special",
|
|
33
|
+
text: e.text
|
|
34
|
+
};
|
|
35
|
+
case "EbnfGroup": return l(e.element);
|
|
36
|
+
case "EbnfOptional": return {
|
|
37
|
+
type: "optional",
|
|
38
|
+
element: l(e.element)
|
|
39
|
+
};
|
|
40
|
+
case "EbnfRepetition": return {
|
|
41
|
+
type: "repetition",
|
|
42
|
+
element: l(e.element),
|
|
43
|
+
min: 0,
|
|
44
|
+
max: Infinity
|
|
45
|
+
};
|
|
46
|
+
default: throw Error(`Unsupported EBNF primary node: ${e.$type}`);
|
|
47
|
+
}
|
|
48
|
+
}, "transformPrimary"), f = /* @__PURE__ */ t((e, t) => {
|
|
49
|
+
switch (t.$type) {
|
|
50
|
+
case "EbnfOptionalPostfix": return {
|
|
51
|
+
type: "optional",
|
|
52
|
+
element: e
|
|
53
|
+
};
|
|
54
|
+
case "EbnfZeroOrMorePostfix": return {
|
|
55
|
+
type: "repetition",
|
|
56
|
+
element: e,
|
|
57
|
+
min: 0,
|
|
58
|
+
max: Infinity
|
|
59
|
+
};
|
|
60
|
+
case "EbnfOneOrMorePostfix": return {
|
|
61
|
+
type: "repetition",
|
|
62
|
+
element: e,
|
|
63
|
+
min: 1,
|
|
64
|
+
max: Infinity
|
|
65
|
+
};
|
|
66
|
+
case "EbnfExceptionPostfix": return {
|
|
67
|
+
type: "sequence",
|
|
68
|
+
elements: [
|
|
69
|
+
e,
|
|
70
|
+
{
|
|
71
|
+
type: "terminal",
|
|
72
|
+
value: "-"
|
|
73
|
+
},
|
|
74
|
+
d(t.except)
|
|
75
|
+
]
|
|
76
|
+
};
|
|
77
|
+
default: throw Error(`Unsupported EBNF postfix node: ${t.$type}`);
|
|
78
|
+
}
|
|
79
|
+
}, "transformPostfix"), p = /* @__PURE__ */ t((e) => e.postfixes.reduce((e, t) => f(e, t), d(e.base)), "transformTerm"), m = /* @__PURE__ */ t((e) => ({
|
|
80
|
+
name: e.name,
|
|
81
|
+
definition: l(e.definition)
|
|
82
|
+
}), "transformRule"), h = /* @__PURE__ */ t((e) => {
|
|
83
|
+
s(e, o), e.title && o.setTitle(e.title), e.rules.map((e) => o.addRule(m(e)));
|
|
84
|
+
}, "populateDb"), g = {
|
|
85
|
+
parser: {
|
|
86
|
+
parse: /* @__PURE__ */ t((t) => {
|
|
87
|
+
o.clear(), e.debug("[EBNF Parser] Starting Langium parse");
|
|
88
|
+
let n = c.parse(t);
|
|
89
|
+
if (n.lexerErrors.length > 0 || n.parserErrors.length > 0) throw new r(n);
|
|
90
|
+
let i = n.value;
|
|
91
|
+
e.debug("[EBNF Parser] Parsed rules:", i.rules.length), h(i), e.debug("[EBNF Parser] Parse complete");
|
|
92
|
+
}, "parse"),
|
|
93
|
+
parser: { yy: o }
|
|
94
|
+
},
|
|
95
|
+
db: o,
|
|
96
|
+
renderer: a,
|
|
97
|
+
styles: i
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { g as diagram };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./src-B16ML7oM.cjs");require("./chunk-DU6HZSFF-mznJTFyO.cjs");const t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs");require("./chunk-CLGD4ZFX-Dvn-kRD7.cjs");const n=require("./mermaid-parser.core-CqChDTj1.cjs"),r=require("./chunk-SVP7TREG-CiwWyOxx.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");var a=n.f().RailroadEbnf.parser.LangiumParser,o=t.n(e=>{let t=e.alternatives.map(s);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),s=t.n(e=>{let t=e.elements.map(u);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),c=t.n(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return o(e.element);case`EbnfOptional`:return{type:`optional`,element:o(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),l=t.n((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},c(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),u=t.n(e=>e.postfixes.reduce((e,t)=>l(e,t),c(e.base)),`transformTerm`),d=t.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),f=t.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(d(e)))},`populateDb`),p={parser:{parse:t.n(t=>{r.t.clear(),e.m.debug(`[EBNF Parser] Starting Langium parse`);let i=a.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new n.t(i);let o=i.value;e.m.debug(`[EBNF Parser] Parsed rules:`,o.rules.length),f(o),e.m.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=p;
|