@sme.up/ketchup2 2.0.0 → 2.1.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/arc-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +0 -1
- package/dist/basic-components/list/list-types.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
- package/dist/channel-BY9Lkyz7.cjs +1 -0
- package/dist/channel-BqNr2cYO.js +5 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
- package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
- package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
- package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
- package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
- package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
- package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
- package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
- package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
- package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
- package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
- package/dist/clone-Dn__H8fX.js +8 -0
- package/dist/clone-lShkT11Q.cjs +1 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
- package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
- package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
- package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-context.d.ts +5 -2
- package/dist/components/image-list/image-list-context.d.ts.map +1 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
- package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
- package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-state-context.d.ts +5 -0
- package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-types.d.ts +45 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +24 -1
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
- package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
- package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
- package/dist/dagre-BjnWDdkw.cjs +1 -0
- package/dist/dagre-DVLnxd7n.js +1606 -0
- package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
- package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
- package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +6 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
- package/dist/graphlib-Cpifseqb.js +373 -0
- package/dist/graphlib-HdfvGLpV.cjs +1 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
- package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +190 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132419 -52
- package/dist/line-BbHmiwbs.cjs +1 -0
- package/dist/line-JyRBGWft.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
- package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
- package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-CPekwY_Z.js +0 -151
- package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
- package/dist/_baseUniq-CAhfZr5S.js +0 -614
- package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
- package/dist/arc-CnmUepZA.cjs +0 -1
- package/dist/arc-Md6Ds0JZ.js +0 -83
- package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
- package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
- package/dist/channel-BGeX_R6w.cjs +0 -1
- package/dist/channel-lqmaHMPZ.js +0 -5
- package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
- package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
- package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
- package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
- package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
- package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
- package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
- package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
- package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
- package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
- package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
- package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
- package/dist/clone-B_MxWhab.js +0 -8
- package/dist/clone-D6gFD6F-.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
- package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
- package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
- package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
- package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
- package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
- package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
- package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
- package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
- package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
- package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
- package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
- package/dist/graph-BBPk5jyk.cjs +0 -1
- package/dist/graph-h6vsxKyr.js +0 -247
- package/dist/index-CYQM-t1d.cjs +0 -390
- package/dist/index-FiV1b00w.js +0 -133122
- package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
- package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
- package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-6z7-eUnZ.js +0 -1335
- package/dist/layout-DbcrMh5B.cjs +0 -1
- package/dist/linear-BKevCbhh.js +0 -259
- package/dist/linear-C7uVEtWW.cjs +0 -1
- package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
- package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
- package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
- package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
- package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
- package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
- package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
- package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
- package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
import { _ as w, at as F, au as Y, av as _, aw as H, l as i, c as V, ax as z, ay as U, ai as $, an as q, aj as P, ah as K, az as Q, aA as W, aB as Z } from "./index-FiV1b00w.js";
|
|
2
|
-
import { G as B } from "./graph-h6vsxKyr.js";
|
|
3
|
-
import { l as I } from "./layout-6z7-eUnZ.js";
|
|
4
|
-
import { i as b } from "./_baseUniq-CAhfZr5S.js";
|
|
5
|
-
import { c as L } from "./clone-B_MxWhab.js";
|
|
6
|
-
import { m as A } from "./_basePickBy-CPekwY_Z.js";
|
|
7
|
-
function h(e) {
|
|
8
|
-
var t = {
|
|
9
|
-
options: {
|
|
10
|
-
directed: e.isDirected(),
|
|
11
|
-
multigraph: e.isMultigraph(),
|
|
12
|
-
compound: e.isCompound()
|
|
13
|
-
},
|
|
14
|
-
nodes: ee(e),
|
|
15
|
-
edges: ne(e)
|
|
16
|
-
};
|
|
17
|
-
return b(e.graph()) || (t.value = L(e.graph())), t;
|
|
18
|
-
}
|
|
19
|
-
function ee(e) {
|
|
20
|
-
return A(e.nodes(), function(t) {
|
|
21
|
-
var n = e.node(t), a = e.parent(t), r = { v: t };
|
|
22
|
-
return b(n) || (r.value = n), b(a) || (r.parent = a), r;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function ne(e) {
|
|
26
|
-
return A(e.edges(), function(t) {
|
|
27
|
-
var n = e.edge(t), a = { v: t.v, w: t.w };
|
|
28
|
-
return b(t.name) || (a.name = t.name), b(n) || (a.value = n), a;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ w(() => {
|
|
32
|
-
y.clear(), J.clear(), d.clear();
|
|
33
|
-
}, "clear"), D = /* @__PURE__ */ w((e, t) => {
|
|
34
|
-
const n = y.get(t) || [];
|
|
35
|
-
return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
36
|
-
}, "isDescendant"), se = /* @__PURE__ */ w((e, t) => {
|
|
37
|
-
const n = y.get(t) || [];
|
|
38
|
-
return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
39
|
-
}, "edgeInCluster"), G = /* @__PURE__ */ w((e, t, n, a) => {
|
|
40
|
-
i.warn(
|
|
41
|
-
"Copying children of ",
|
|
42
|
-
e,
|
|
43
|
-
"root",
|
|
44
|
-
a,
|
|
45
|
-
"data",
|
|
46
|
-
t.node(e),
|
|
47
|
-
a
|
|
48
|
-
);
|
|
49
|
-
const r = t.children(e) || [];
|
|
50
|
-
e !== a && r.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", r), r.forEach((o) => {
|
|
51
|
-
if (t.children(o).length > 0)
|
|
52
|
-
G(o, t, n, a);
|
|
53
|
-
else {
|
|
54
|
-
const l = t.node(o);
|
|
55
|
-
i.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (i.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", a, "data", t.node(e), a), i.debug(
|
|
56
|
-
"Not Setting parent for node=",
|
|
57
|
-
o,
|
|
58
|
-
"cluster!==rootId",
|
|
59
|
-
e !== a,
|
|
60
|
-
"node!==clusterId",
|
|
61
|
-
o !== e
|
|
62
|
-
));
|
|
63
|
-
const u = t.edges(o);
|
|
64
|
-
i.debug("Copying Edges", u), u.forEach((c) => {
|
|
65
|
-
i.info("Edge", c);
|
|
66
|
-
const m = t.edge(c.v, c.w, c.name);
|
|
67
|
-
i.info("Edge data", m, a);
|
|
68
|
-
try {
|
|
69
|
-
se(c, a) ? (i.info("Copying as ", c.v, c.w, m, c.name), n.setEdge(c.v, c.w, m, c.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
|
|
70
|
-
"Skipping copy of edge ",
|
|
71
|
-
c.v,
|
|
72
|
-
"-->",
|
|
73
|
-
c.w,
|
|
74
|
-
" rootId: ",
|
|
75
|
-
a,
|
|
76
|
-
" clusterId:",
|
|
77
|
-
e
|
|
78
|
-
);
|
|
79
|
-
} catch (v) {
|
|
80
|
-
i.error(v);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
i.debug("Removing node", o), t.removeNode(o);
|
|
85
|
-
});
|
|
86
|
-
}, "copy"), R = /* @__PURE__ */ w((e, t) => {
|
|
87
|
-
const n = t.children(e);
|
|
88
|
-
let a = [...n];
|
|
89
|
-
for (const r of n)
|
|
90
|
-
J.set(r, e), a = [...a, ...R(r, t)];
|
|
91
|
-
return a;
|
|
92
|
-
}, "extractDescendants"), ie = /* @__PURE__ */ w((e, t, n) => {
|
|
93
|
-
const a = e.edges().filter((c) => c.v === t || c.w === t), r = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = r.map((c) => ({ v: c.v, w: c.w }));
|
|
94
|
-
return o.filter((c) => l.some((m) => c.v === m.v && c.w === m.w));
|
|
95
|
-
}, "findCommonEdges"), C = /* @__PURE__ */ w((e, t, n) => {
|
|
96
|
-
const a = t.children(e);
|
|
97
|
-
if (i.trace("Searching children of id ", e, a), a.length < 1)
|
|
98
|
-
return e;
|
|
99
|
-
let r;
|
|
100
|
-
for (const o of a) {
|
|
101
|
-
const l = C(o, t, n), u = ie(t, n, l);
|
|
102
|
-
if (l)
|
|
103
|
-
if (u.length > 0)
|
|
104
|
-
r = l;
|
|
105
|
-
else
|
|
106
|
-
return l;
|
|
107
|
-
}
|
|
108
|
-
return r;
|
|
109
|
-
}, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ w((e, t) => {
|
|
110
|
-
if (!e || t > 10) {
|
|
111
|
-
i.debug("Opting out, no graph ");
|
|
112
|
-
return;
|
|
113
|
-
} else
|
|
114
|
-
i.debug("Opting in, graph ");
|
|
115
|
-
e.nodes().forEach(function(n) {
|
|
116
|
-
e.children(n).length > 0 && (i.warn(
|
|
117
|
-
"Cluster identified",
|
|
118
|
-
n,
|
|
119
|
-
" Replacement id in edges: ",
|
|
120
|
-
C(n, e, n)
|
|
121
|
-
), y.set(n, R(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) }));
|
|
122
|
-
}), e.nodes().forEach(function(n) {
|
|
123
|
-
const a = e.children(n), r = e.edges();
|
|
124
|
-
a.length > 0 ? (i.debug("Cluster identified", n, y), r.forEach((o) => {
|
|
125
|
-
const l = D(o.v, n), u = D(o.w, n);
|
|
126
|
-
l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0);
|
|
127
|
-
})) : i.debug("Not a cluster ", n, y);
|
|
128
|
-
});
|
|
129
|
-
for (let n of d.keys()) {
|
|
130
|
-
const a = d.get(n).id, r = e.parent(a);
|
|
131
|
-
r !== n && d.has(r) && !d.get(r).externalConnections && (d.get(n).id = r);
|
|
132
|
-
}
|
|
133
|
-
e.edges().forEach(function(n) {
|
|
134
|
-
const a = e.edge(n);
|
|
135
|
-
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
136
|
-
let r = n.v, o = n.w;
|
|
137
|
-
if (i.warn(
|
|
138
|
-
"Fix XXX",
|
|
139
|
-
d,
|
|
140
|
-
"ids:",
|
|
141
|
-
n.v,
|
|
142
|
-
n.w,
|
|
143
|
-
"Translating: ",
|
|
144
|
-
d.get(n.v),
|
|
145
|
-
" --- ",
|
|
146
|
-
d.get(n.w)
|
|
147
|
-
), d.get(n.v) || d.get(n.w)) {
|
|
148
|
-
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), r = k(n.v), o = k(n.w), e.removeEdge(n.v, n.w, n.name), r !== n.v) {
|
|
149
|
-
const l = e.parent(r);
|
|
150
|
-
d.get(l).externalConnections = !0, a.fromCluster = n.v;
|
|
151
|
-
}
|
|
152
|
-
if (o !== n.w) {
|
|
153
|
-
const l = e.parent(o);
|
|
154
|
-
d.get(l).externalConnections = !0, a.toCluster = n.w;
|
|
155
|
-
}
|
|
156
|
-
i.warn("Fix Replacing with XXX", r, o, n.name), e.setEdge(r, o, a, n.name);
|
|
157
|
-
}
|
|
158
|
-
}), i.warn("Adjusted Graph", h(e)), T(e, 0), i.trace(d);
|
|
159
|
-
}, "adjustClustersAndEdges"), T = /* @__PURE__ */ w((e, t) => {
|
|
160
|
-
if (i.warn("extractor - ", t, h(e), e.children("D")), t > 10) {
|
|
161
|
-
i.error("Bailing out");
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
let n = e.nodes(), a = !1;
|
|
165
|
-
for (const r of n) {
|
|
166
|
-
const o = e.children(r);
|
|
167
|
-
a = a || o.length > 0;
|
|
168
|
-
}
|
|
169
|
-
if (!a) {
|
|
170
|
-
i.debug("Done, no node has children", e.nodes());
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
i.debug("Nodes = ", n, t);
|
|
174
|
-
for (const r of n)
|
|
175
|
-
if (i.debug(
|
|
176
|
-
"Extracting node",
|
|
177
|
-
r,
|
|
178
|
-
d,
|
|
179
|
-
d.has(r) && !d.get(r).externalConnections,
|
|
180
|
-
!e.parent(r),
|
|
181
|
-
e.node(r),
|
|
182
|
-
e.children("D"),
|
|
183
|
-
" Depth ",
|
|
184
|
-
t
|
|
185
|
-
), !d.has(r))
|
|
186
|
-
i.debug("Not a cluster", r, t);
|
|
187
|
-
else if (!d.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
188
|
-
i.warn(
|
|
189
|
-
"Cluster without external connections, without a parent and with children",
|
|
190
|
-
r,
|
|
191
|
-
t
|
|
192
|
-
);
|
|
193
|
-
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
194
|
-
d.get(r)?.clusterData?.dir && (l = d.get(r).clusterData.dir, i.warn("Fixing dir", d.get(r).clusterData.dir, l));
|
|
195
|
-
const u = new B({
|
|
196
|
-
multigraph: !0,
|
|
197
|
-
compound: !0
|
|
198
|
-
}).setGraph({
|
|
199
|
-
rankdir: l,
|
|
200
|
-
nodesep: 50,
|
|
201
|
-
ranksep: 50,
|
|
202
|
-
marginx: 8,
|
|
203
|
-
marginy: 8
|
|
204
|
-
}).setDefaultEdgeLabel(function() {
|
|
205
|
-
return {};
|
|
206
|
-
});
|
|
207
|
-
i.warn("Old graph before copy", h(e)), G(r, e, u, r), e.setNode(r, {
|
|
208
|
-
clusterNode: !0,
|
|
209
|
-
id: r,
|
|
210
|
-
clusterData: d.get(r).clusterData,
|
|
211
|
-
label: d.get(r).label,
|
|
212
|
-
graph: u
|
|
213
|
-
}), i.warn("New graph after copy node: (", r, ")", h(u)), i.debug("Old graph after copy", h(e));
|
|
214
|
-
} else
|
|
215
|
-
i.warn(
|
|
216
|
-
"Cluster ** ",
|
|
217
|
-
r,
|
|
218
|
-
" **not meeting the criteria !externalConnections:",
|
|
219
|
-
!d.get(r).externalConnections,
|
|
220
|
-
" no parent: ",
|
|
221
|
-
!e.parent(r),
|
|
222
|
-
" children ",
|
|
223
|
-
e.children(r) && e.children(r).length > 0,
|
|
224
|
-
e.children("D"),
|
|
225
|
-
t
|
|
226
|
-
), i.debug(d);
|
|
227
|
-
n = e.nodes(), i.warn("New list of nodes", n);
|
|
228
|
-
for (const r of n) {
|
|
229
|
-
const o = e.node(r);
|
|
230
|
-
i.warn(" Now next level", r, o), o?.clusterNode && T(o.graph, t + 1);
|
|
231
|
-
}
|
|
232
|
-
}, "extractor"), M = /* @__PURE__ */ w((e, t) => {
|
|
233
|
-
if (t.length === 0)
|
|
234
|
-
return [];
|
|
235
|
-
let n = Object.assign([], t);
|
|
236
|
-
return t.forEach((a) => {
|
|
237
|
-
const r = e.children(a), o = M(e, r);
|
|
238
|
-
n = [...n, ...o];
|
|
239
|
-
}), n;
|
|
240
|
-
}, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a, r, o) => {
|
|
241
|
-
i.warn("Graph in recursive render:XAX", h(t), r);
|
|
242
|
-
const l = t.graph().rankdir;
|
|
243
|
-
i.trace("Dir in recursive render - dir:", l);
|
|
244
|
-
const u = e.insert("g").attr("class", "root");
|
|
245
|
-
t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
|
|
246
|
-
const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), v = u.insert("g").attr("class", "edgeLabels"), X = u.insert("g").attr("class", "nodes");
|
|
247
|
-
await Promise.all(
|
|
248
|
-
t.nodes().map(async function(f) {
|
|
249
|
-
const s = t.node(f);
|
|
250
|
-
if (r !== void 0) {
|
|
251
|
-
const g = JSON.parse(JSON.stringify(r.clusterData));
|
|
252
|
-
i.trace(
|
|
253
|
-
`Setting data for parent cluster XXX
|
|
254
|
-
Node.id = `,
|
|
255
|
-
f,
|
|
256
|
-
`
|
|
257
|
-
data=`,
|
|
258
|
-
g.height,
|
|
259
|
-
`
|
|
260
|
-
Parent cluster`,
|
|
261
|
-
r.height
|
|
262
|
-
), t.setNode(r.id, g), t.parent(f) || (i.trace("Setting parent", f, r.id), t.setParent(f, r.id, g));
|
|
263
|
-
}
|
|
264
|
-
if (i.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) {
|
|
265
|
-
i.info("Cluster identified XBX", f, s.width, t.node(f));
|
|
266
|
-
const { ranksep: g, nodesep: E } = t.graph();
|
|
267
|
-
s.graph.setGraph({
|
|
268
|
-
...s.graph.graph(),
|
|
269
|
-
ranksep: g + 25,
|
|
270
|
-
nodesep: E
|
|
271
|
-
});
|
|
272
|
-
const N = await j(
|
|
273
|
-
X,
|
|
274
|
-
s.graph,
|
|
275
|
-
n,
|
|
276
|
-
a,
|
|
277
|
-
t.node(f),
|
|
278
|
-
o
|
|
279
|
-
), x = N.elem;
|
|
280
|
-
z(s, x), s.diff = N.diff || 0, i.info(
|
|
281
|
-
"New compound node after recursive render XAX",
|
|
282
|
-
f,
|
|
283
|
-
"width",
|
|
284
|
-
// node,
|
|
285
|
-
s.width,
|
|
286
|
-
"height",
|
|
287
|
-
s.height
|
|
288
|
-
// node.x,
|
|
289
|
-
// node.y
|
|
290
|
-
), U(x, s);
|
|
291
|
-
} else
|
|
292
|
-
t.children(f).length > 0 ? (i.trace(
|
|
293
|
-
"Cluster - the non recursive path XBX",
|
|
294
|
-
f,
|
|
295
|
-
s.id,
|
|
296
|
-
s,
|
|
297
|
-
s.width,
|
|
298
|
-
"Graph:",
|
|
299
|
-
t
|
|
300
|
-
), i.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", f, X, t.node(f), l), await $(X, t.node(f), { config: o, dir: l }));
|
|
301
|
-
})
|
|
302
|
-
), await (/* @__PURE__ */ w(async () => {
|
|
303
|
-
const f = t.edges().map(async function(s) {
|
|
304
|
-
const g = t.edge(s.v, s.w, s.name);
|
|
305
|
-
i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info(
|
|
306
|
-
"Fix",
|
|
307
|
-
d,
|
|
308
|
-
"ids:",
|
|
309
|
-
s.v,
|
|
310
|
-
s.w,
|
|
311
|
-
"Translating: ",
|
|
312
|
-
d.get(s.v),
|
|
313
|
-
d.get(s.w)
|
|
314
|
-
), await Z(v, g);
|
|
315
|
-
});
|
|
316
|
-
await Promise.all(f);
|
|
317
|
-
}, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(h(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(h(t)));
|
|
318
|
-
let O = 0, { subGraphTitleTotalMargin: S } = q(o);
|
|
319
|
-
return await Promise.all(
|
|
320
|
-
oe(t).map(async function(f) {
|
|
321
|
-
const s = t.node(f);
|
|
322
|
-
if (i.info(
|
|
323
|
-
"Position XBX => " + f + ": (" + s.x,
|
|
324
|
-
"," + s.y,
|
|
325
|
-
") width: ",
|
|
326
|
-
s.width,
|
|
327
|
-
" height: ",
|
|
328
|
-
s.height
|
|
329
|
-
), s?.clusterNode)
|
|
330
|
-
s.y += S, i.info(
|
|
331
|
-
"A tainted cluster node XBX1",
|
|
332
|
-
f,
|
|
333
|
-
s.id,
|
|
334
|
-
s.width,
|
|
335
|
-
s.height,
|
|
336
|
-
s.x,
|
|
337
|
-
s.y,
|
|
338
|
-
t.parent(f)
|
|
339
|
-
), d.get(s.id).node = s, P(s);
|
|
340
|
-
else if (t.children(f).length > 0) {
|
|
341
|
-
i.info(
|
|
342
|
-
"A pure cluster node XBX1",
|
|
343
|
-
f,
|
|
344
|
-
s.id,
|
|
345
|
-
s.x,
|
|
346
|
-
s.y,
|
|
347
|
-
s.width,
|
|
348
|
-
s.height,
|
|
349
|
-
t.parent(f)
|
|
350
|
-
), s.height += S, t.node(s.parentId);
|
|
351
|
-
const g = s?.padding / 2 || 0, E = s?.labelBBox?.height || 0, N = E - g || 0;
|
|
352
|
-
i.debug("OffsetY", N, "labelHeight", E, "halfPadding", g), await K(c, s), d.get(s.id).node = s;
|
|
353
|
-
} else {
|
|
354
|
-
const g = t.node(s.parentId);
|
|
355
|
-
s.y += S / 2, i.info(
|
|
356
|
-
"A regular node XBX1 - using the padding",
|
|
357
|
-
s.id,
|
|
358
|
-
"parent",
|
|
359
|
-
s.parentId,
|
|
360
|
-
s.width,
|
|
361
|
-
s.height,
|
|
362
|
-
s.x,
|
|
363
|
-
s.y,
|
|
364
|
-
"offsetY",
|
|
365
|
-
s.offsetY,
|
|
366
|
-
"parent",
|
|
367
|
-
g,
|
|
368
|
-
g?.offsetY,
|
|
369
|
-
s
|
|
370
|
-
), P(s);
|
|
371
|
-
}
|
|
372
|
-
})
|
|
373
|
-
), t.edges().forEach(function(f) {
|
|
374
|
-
const s = t.edge(f);
|
|
375
|
-
i.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2);
|
|
376
|
-
const g = t.node(f.v);
|
|
377
|
-
var E = t.node(f.w);
|
|
378
|
-
const N = Q(m, s, d, n, g, E, a);
|
|
379
|
-
W(s, N);
|
|
380
|
-
}), t.nodes().forEach(function(f) {
|
|
381
|
-
const s = t.node(f);
|
|
382
|
-
i.info(f, s.type, s.diff), s.isGroup && (O = s.diff);
|
|
383
|
-
}), i.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O };
|
|
384
|
-
}, "recursiveRender"), ge = /* @__PURE__ */ w(async (e, t) => {
|
|
385
|
-
const n = new B({
|
|
386
|
-
multigraph: !0,
|
|
387
|
-
compound: !0
|
|
388
|
-
}).setGraph({
|
|
389
|
-
rankdir: e.direction,
|
|
390
|
-
nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing,
|
|
391
|
-
ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing,
|
|
392
|
-
marginx: 8,
|
|
393
|
-
marginy: 8
|
|
394
|
-
}).setDefaultEdgeLabel(function() {
|
|
395
|
-
return {};
|
|
396
|
-
}), a = t.select("g");
|
|
397
|
-
F(a, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((o) => {
|
|
398
|
-
n.setNode(o.id, { ...o }), o.parentId && n.setParent(o.id, o.parentId);
|
|
399
|
-
}), i.debug("Edges:", e.edges), e.edges.forEach((o) => {
|
|
400
|
-
if (o.start === o.end) {
|
|
401
|
-
const l = o.start, u = l + "---" + l + "---1", c = l + "---" + l + "---2", m = n.node(l);
|
|
402
|
-
n.setNode(u, {
|
|
403
|
-
domId: u,
|
|
404
|
-
id: u,
|
|
405
|
-
parentId: m.parentId,
|
|
406
|
-
labelStyle: "",
|
|
407
|
-
label: "",
|
|
408
|
-
padding: 0,
|
|
409
|
-
shape: "labelRect",
|
|
410
|
-
// shape: 'rect',
|
|
411
|
-
style: "",
|
|
412
|
-
width: 10,
|
|
413
|
-
height: 10
|
|
414
|
-
}), n.setParent(u, m.parentId), n.setNode(c, {
|
|
415
|
-
domId: c,
|
|
416
|
-
id: c,
|
|
417
|
-
parentId: m.parentId,
|
|
418
|
-
labelStyle: "",
|
|
419
|
-
padding: 0,
|
|
420
|
-
// shape: 'rect',
|
|
421
|
-
shape: "labelRect",
|
|
422
|
-
label: "",
|
|
423
|
-
style: "",
|
|
424
|
-
width: 10,
|
|
425
|
-
height: 10
|
|
426
|
-
}), n.setParent(c, m.parentId);
|
|
427
|
-
const v = structuredClone(o), X = structuredClone(o), p = structuredClone(o);
|
|
428
|
-
v.label = "", v.arrowTypeEnd = "none", v.id = l + "-cyclic-special-1", X.arrowTypeStart = "none", X.arrowTypeEnd = "none", X.id = l + "-cyclic-special-mid", p.label = "", m.isGroup && (v.fromCluster = l, p.toCluster = l), p.id = l + "-cyclic-special-2", p.arrowTypeStart = "none", n.setEdge(l, u, v, l + "-cyclic-special-0"), n.setEdge(u, c, X, l + "-cyclic-special-1"), n.setEdge(c, l, p, l + "-cyc<lic-special-2");
|
|
429
|
-
} else
|
|
430
|
-
n.setEdge(o.start, o.end, { ...o }, o.id);
|
|
431
|
-
}), i.warn("Graph at first:", JSON.stringify(h(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(h(n)));
|
|
432
|
-
const r = V();
|
|
433
|
-
await j(
|
|
434
|
-
a,
|
|
435
|
-
n,
|
|
436
|
-
e.type,
|
|
437
|
-
e.diagramId,
|
|
438
|
-
void 0,
|
|
439
|
-
r
|
|
440
|
-
);
|
|
441
|
-
}, "render");
|
|
442
|
-
export {
|
|
443
|
-
ge as render
|
|
444
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CYQM-t1d.cjs"),P=require("./graph-BBPk5jyk.cjs"),R=require("./layout-DbcrMh5B.cjs"),N=require("./_baseUniq-bLb2QO_4.cjs"),M=require("./clone-D6gFD6F-.cjs"),O=require("./_basePickBy-DDhgLyLp.cjs");function m(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:q(e),edges:j(e)};return N.isUndefined(e.graph())||(o.value=M.clone(e.graph())),o}function q(e){return O.map(e.nodes(),function(o){var n=e.node(o),l=e.parent(o),r={v:o};return N.isUndefined(n)||(r.value=n),N.isUndefined(l)||(r.parent=l),r})}function j(e){return O.map(e.edges(),function(o){var n=e.edge(o),l={v:o.v,w:o.w};return N.isUndefined(o.name)||(l.name=o.name),N.isUndefined(n)||(l.value=n),l})}var a=new Map,y=new Map,k=new Map,U=t.__name(()=>{y.clear(),k.clear(),a.clear()},"clear"),_=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.trace("In isDescendant",o," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),F=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.info("Descendants of ",o," is ",n),t.log.info("Edge is ",e),e.v===o||e.w===o?!1:n?n.includes(e.v)||_(e.v,o)||_(e.w,o)||n.includes(e.w):(t.log.debug("Tilt, ",o,",not in descendants"),!1)},"edgeInCluster"),B=t.__name((e,o,n,l)=>{t.log.warn("Copying children of ",e,"root",l,"data",o.node(e),l);const r=o.children(e)||[];e!==l&&r.push(e),t.log.warn("Copying (nodes) clusterId",e,"nodes",r),r.forEach(s=>{if(o.children(s).length>0)B(s,o,n,l);else{const d=o.node(s);t.log.info("cp ",s," to ",l," with parent ",e),n.setNode(s,d),l!==o.parent(s)&&(t.log.warn("Setting parent",s,o.parent(s)),n.setParent(s,o.parent(s))),e!==l&&s!==e?(t.log.debug("Setting parent",s,e),n.setParent(s,e)):(t.log.info("In copy ",e,"root",l,"data",o.node(e),l),t.log.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==l,"node!==clusterId",s!==e));const g=o.edges(s);t.log.debug("Copying Edges",g),g.forEach(c=>{t.log.info("Edge",c);const w=o.edge(c.v,c.w,c.name);t.log.info("Edge data",w,l);try{F(c,l)?(t.log.info("Copying as ",c.v,c.w,w,c.name),n.setEdge(c.v,c.w,w,c.name),t.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):t.log.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",l," clusterId:",e)}catch(h){t.log.error(h)}})}t.log.debug("Removing node",s),o.removeNode(s)})},"copy"),A=t.__name((e,o)=>{const n=o.children(e);let l=[...n];for(const r of n)k.set(r,e),l=[...l,...A(r,o)];return l},"extractDescendants"),Y=t.__name((e,o,n)=>{const l=e.edges().filter(c=>c.v===o||c.w===o),r=e.edges().filter(c=>c.v===n||c.w===n),s=l.map(c=>({v:c.v===o?n:c.v,w:c.w===o?o:c.w})),d=r.map(c=>({v:c.v,w:c.w}));return s.filter(c=>d.some(w=>c.v===w.v&&c.w===w.w))},"findCommonEdges"),b=t.__name((e,o,n)=>{const l=o.children(e);if(t.log.trace("Searching children of id ",e,l),l.length<1)return e;let r;for(const s of l){const d=b(s,o,n),g=Y(o,n,d);if(d)if(g.length>0)r=d;else return d}return r},"findNonClusterChild"),D=t.__name(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),H=t.__name((e,o)=>{if(!e||o>10){t.log.debug("Opting out, no graph ");return}else t.log.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(t.log.warn("Cluster identified",n," Replacement id in edges: ",b(n,e,n)),y.set(n,A(n,e)),a.set(n,{id:b(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const l=e.children(n),r=e.edges();l.length>0?(t.log.debug("Cluster identified",n,y),r.forEach(s=>{const d=_(s.v,n),g=_(s.w,n);d^g&&(t.log.warn("Edge: ",s," leaves cluster ",n),t.log.warn("Descendants of XXX ",n,": ",y.get(n)),a.get(n).externalConnections=!0)})):t.log.debug("Not a cluster ",n,y)});for(let n of a.keys()){const l=a.get(n).id,r=e.parent(l);r!==n&&a.has(r)&&!a.get(r).externalConnections&&(a.get(n).id=r)}e.edges().forEach(function(n){const l=e.edge(n);t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.log.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(t.log.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),r=D(n.v),s=D(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const d=e.parent(r);a.get(d).externalConnections=!0,l.fromCluster=n.v}if(s!==n.w){const d=e.parent(s);a.get(d).externalConnections=!0,l.toCluster=n.w}t.log.warn("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,l,n.name)}}),t.log.warn("Adjusted Graph",m(e)),J(e,0),t.log.trace(a)},"adjustClustersAndEdges"),J=t.__name((e,o)=>{if(t.log.warn("extractor - ",o,m(e),e.children("D")),o>10){t.log.error("Bailing out");return}let n=e.nodes(),l=!1;for(const r of n){const s=e.children(r);l=l||s.length>0}if(!l){t.log.debug("Done, no node has children",e.nodes());return}t.log.debug("Nodes = ",n,o);for(const r of n)if(t.log.debug("Extracting node",r,a,a.has(r)&&!a.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",o),!a.has(r))t.log.debug("Not a cluster",r,o);else if(!a.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.log.warn("Cluster without external connections, without a parent and with children",r,o);let d=e.graph().rankdir==="TB"?"LR":"TB";a.get(r)?.clusterData?.dir&&(d=a.get(r).clusterData.dir,t.log.warn("Fixing dir",a.get(r).clusterData.dir,d));const g=new P.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.log.warn("Old graph before copy",m(e)),B(r,e,g,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:a.get(r).clusterData,label:a.get(r).label,graph:g}),t.log.warn("New graph after copy node: (",r,")",m(g)),t.log.debug("Old graph after copy",m(e))}else t.log.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!a.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),o),t.log.debug(a);n=e.nodes(),t.log.warn("New list of nodes",n);for(const r of n){const s=e.node(r);t.log.warn(" Now next level",r,s),s?.clusterNode&&J(s.graph,o+1)}},"extractor"),T=t.__name((e,o)=>{if(o.length===0)return[];let n=Object.assign([],o);return o.forEach(l=>{const r=e.children(l),s=T(e,r);n=[...n,...s]}),n},"sorter"),V=t.__name(e=>T(e,e.children()),"sortNodesByHierarchy"),G=t.__name(async(e,o,n,l,r,s)=>{t.log.warn("Graph in recursive render:XAX",m(o),r);const d=o.graph().rankdir;t.log.trace("Dir in recursive render - dir:",d);const g=e.insert("g").attr("class","root");o.nodes()?t.log.info("Recursive render XXX",o.nodes()):t.log.info("No nodes found for",o),o.edges().length>0&&t.log.info("Recursive edges",o.edge(o.edges()[0]));const c=g.insert("g").attr("class","clusters"),w=g.insert("g").attr("class","edgePaths"),h=g.insert("g").attr("class","edgeLabels"),v=g.insert("g").attr("class","nodes");await Promise.all(o.nodes().map(async function(f){const i=o.node(f);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));t.log.trace(`Setting data for parent cluster XXX
|
|
2
|
-
Node.id = `,f,`
|
|
3
|
-
data=`,u.height,`
|
|
4
|
-
Parent cluster`,r.height),o.setNode(r.id,u),o.parent(f)||(t.log.trace("Setting parent",f,r.id),o.setParent(f,r.id,u))}if(t.log.info("(Insert) Node XXX"+f+": "+JSON.stringify(o.node(f))),i?.clusterNode){t.log.info("Cluster identified XBX",f,i.width,o.node(f));const{ranksep:u,nodesep:E}=o.graph();i.graph.setGraph({...i.graph.graph(),ranksep:u+25,nodesep:E});const p=await G(v,i.graph,n,l,o.node(f),s),S=p.elem;t.updateNodeBounds(i,S),i.diff=p.diff||0,t.log.info("New compound node after recursive render XAX",f,"width",i.width,"height",i.height),t.setNodeElem(S,i)}else o.children(f).length>0?(t.log.trace("Cluster - the non recursive path XBX",f,i.id,i,i.width,"Graph:",o),t.log.trace(b(i.id,o)),a.set(i.id,{id:b(i.id,o),node:i})):(t.log.trace("Node - the non recursive path XAX",f,v,o.node(f),d),await t.insertNode(v,o.node(f),{config:s,dir:d}))})),await t.__name(async()=>{const f=o.edges().map(async function(i){const u=o.edge(i.v,i.w,i.name);t.log.info("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),t.log.info("Edge "+i.v+" -> "+i.w+": ",i," ",JSON.stringify(o.edge(i))),t.log.info("Fix",a,"ids:",i.v,i.w,"Translating: ",a.get(i.v),a.get(i.w)),await t.insertEdgeLabel(h,u)});await Promise.all(f)},"processEdges")(),t.log.info("Graph before layout:",JSON.stringify(m(o))),t.log.info("############################################# XXX"),t.log.info("### Layout ### XXX"),t.log.info("############################################# XXX"),R.layout(o),t.log.info("Graph after layout:",JSON.stringify(m(o)));let x=0,{subGraphTitleTotalMargin:C}=t.getSubGraphTitleMargins(s);return await Promise.all(V(o).map(async function(f){const i=o.node(f);if(t.log.info("Position XBX => "+f+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),i?.clusterNode)i.y+=C,t.log.info("A tainted cluster node XBX1",f,i.id,i.width,i.height,i.x,i.y,o.parent(f)),a.get(i.id).node=i,t.positionNode(i);else if(o.children(f).length>0){t.log.info("A pure cluster node XBX1",f,i.id,i.x,i.y,i.width,i.height,o.parent(f)),i.height+=C,o.node(i.parentId);const u=i?.padding/2||0,E=i?.labelBBox?.height||0,p=E-u||0;t.log.debug("OffsetY",p,"labelHeight",E,"halfPadding",u),await t.insertCluster(c,i),a.get(i.id).node=i}else{const u=o.node(i.parentId);i.y+=C/2,t.log.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",u,u?.offsetY,i),t.positionNode(i)}})),o.edges().forEach(function(f){const i=o.edge(f);t.log.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(i),i),i.points.forEach(S=>S.y+=C/2);const u=o.node(f.v);var E=o.node(f.w);const p=t.insertEdge(w,i,a,n,u,E,l);t.positionEdgeLabel(i,p)}),o.nodes().forEach(function(f){const i=o.node(f);t.log.info(f,i.type,i.diff),i.isGroup&&(x=i.diff)}),t.log.warn("Returning from recursive render XAX",g,x),{elem:g,diff:x}},"recursiveRender"),z=t.__name(async(e,o)=>{const n=new P.Graph({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{}}),l=o.select("g");t.markers_default(l,e.markers,e.type,e.diagramId),t.clear2(),t.clear$1(),t.clear$2(),U(),e.nodes.forEach(s=>{n.setNode(s.id,{...s}),s.parentId&&n.setParent(s.id,s.parentId)}),t.log.debug("Edges:",e.edges),e.edges.forEach(s=>{if(s.start===s.end){const d=s.start,g=d+"---"+d+"---1",c=d+"---"+d+"---2",w=n.node(d);n.setNode(g,{domId:g,id:g,parentId:w.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(g,w.parentId),n.setNode(c,{domId:c,id:c,parentId:w.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(c,w.parentId);const h=structuredClone(s),v=structuredClone(s),X=structuredClone(s);h.label="",h.arrowTypeEnd="none",h.id=d+"-cyclic-special-1",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=d+"-cyclic-special-mid",X.label="",w.isGroup&&(h.fromCluster=d,X.toCluster=d),X.id=d+"-cyclic-special-2",X.arrowTypeStart="none",n.setEdge(d,g,h,d+"-cyclic-special-0"),n.setEdge(g,c,v,d+"-cyclic-special-1"),n.setEdge(c,d,X,d+"-cyc<lic-special-2")}else n.setEdge(s.start,s.end,{...s},s.id)}),t.log.warn("Graph at first:",JSON.stringify(m(n))),H(n),t.log.warn("Graph after XAX:",JSON.stringify(m(n)));const r=t.getConfig2();await G(l,n,e.type,e.diagramId,void 0,r)},"render");exports.render=z;
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
function H(n) {
|
|
2
|
-
return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
|
|
3
|
-
}
|
|
4
|
-
function j(n, t) {
|
|
5
|
-
if ((e = (n = t ? n.toExponential(t - 1) : n.toExponential()).indexOf("e")) < 0) return null;
|
|
6
|
-
var e, i = n.slice(0, e);
|
|
7
|
-
return [
|
|
8
|
-
i.length > 1 ? i[0] + i.slice(2) : i,
|
|
9
|
-
+n.slice(e + 1)
|
|
10
|
-
];
|
|
11
|
-
}
|
|
12
|
-
function J(n) {
|
|
13
|
-
return n = j(Math.abs(n)), n ? n[1] : NaN;
|
|
14
|
-
}
|
|
15
|
-
function K(n, t) {
|
|
16
|
-
return function(e, i) {
|
|
17
|
-
for (var o = e.length, f = [], c = 0, u = n[0], p = 0; o > 0 && u > 0 && (p + u + 1 > i && (u = Math.max(1, i - p)), f.push(e.substring(o -= u, o + u)), !((p += u + 1) > i)); )
|
|
18
|
-
u = n[c = (c + 1) % n.length];
|
|
19
|
-
return f.reverse().join(t);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function Q(n) {
|
|
23
|
-
return function(t) {
|
|
24
|
-
return t.replace(/[0-9]/g, function(e) {
|
|
25
|
-
return n[+e];
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
var V = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
30
|
-
function N(n) {
|
|
31
|
-
if (!(t = V.exec(n))) throw new Error("invalid format: " + n);
|
|
32
|
-
var t;
|
|
33
|
-
return new $({
|
|
34
|
-
fill: t[1],
|
|
35
|
-
align: t[2],
|
|
36
|
-
sign: t[3],
|
|
37
|
-
symbol: t[4],
|
|
38
|
-
zero: t[5],
|
|
39
|
-
width: t[6],
|
|
40
|
-
comma: t[7],
|
|
41
|
-
precision: t[8] && t[8].slice(1),
|
|
42
|
-
trim: t[9],
|
|
43
|
-
type: t[10]
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
N.prototype = $.prototype;
|
|
47
|
-
function $(n) {
|
|
48
|
-
this.fill = n.fill === void 0 ? " " : n.fill + "", this.align = n.align === void 0 ? ">" : n.align + "", this.sign = n.sign === void 0 ? "-" : n.sign + "", this.symbol = n.symbol === void 0 ? "" : n.symbol + "", this.zero = !!n.zero, this.width = n.width === void 0 ? void 0 : +n.width, this.comma = !!n.comma, this.precision = n.precision === void 0 ? void 0 : +n.precision, this.trim = !!n.trim, this.type = n.type === void 0 ? "" : n.type + "";
|
|
49
|
-
}
|
|
50
|
-
$.prototype.toString = function() {
|
|
51
|
-
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
52
|
-
};
|
|
53
|
-
function W(n) {
|
|
54
|
-
n: for (var t = n.length, e = 1, i = -1, o; e < t; ++e)
|
|
55
|
-
switch (n[e]) {
|
|
56
|
-
case ".":
|
|
57
|
-
i = o = e;
|
|
58
|
-
break;
|
|
59
|
-
case "0":
|
|
60
|
-
i === 0 && (i = e), o = e;
|
|
61
|
-
break;
|
|
62
|
-
default:
|
|
63
|
-
if (!+n[e]) break n;
|
|
64
|
-
i > 0 && (i = 0);
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
return i > 0 ? n.slice(0, i) + n.slice(o + 1) : n;
|
|
68
|
-
}
|
|
69
|
-
var U;
|
|
70
|
-
function _(n, t) {
|
|
71
|
-
var e = j(n, t);
|
|
72
|
-
if (!e) return n + "";
|
|
73
|
-
var i = e[0], o = e[1], f = o - (U = Math.max(-8, Math.min(8, Math.floor(o / 3))) * 3) + 1, c = i.length;
|
|
74
|
-
return f === c ? i : f > c ? i + new Array(f - c + 1).join("0") : f > 0 ? i.slice(0, f) + "." + i.slice(f) : "0." + new Array(1 - f).join("0") + j(n, Math.max(0, t + f - 1))[0];
|
|
75
|
-
}
|
|
76
|
-
function G(n, t) {
|
|
77
|
-
var e = j(n, t);
|
|
78
|
-
if (!e) return n + "";
|
|
79
|
-
var i = e[0], o = e[1];
|
|
80
|
-
return o < 0 ? "0." + new Array(-o).join("0") + i : i.length > o + 1 ? i.slice(0, o + 1) + "." + i.slice(o + 1) : i + new Array(o - i.length + 2).join("0");
|
|
81
|
-
}
|
|
82
|
-
const I = {
|
|
83
|
-
"%": (n, t) => (n * 100).toFixed(t),
|
|
84
|
-
b: (n) => Math.round(n).toString(2),
|
|
85
|
-
c: (n) => n + "",
|
|
86
|
-
d: H,
|
|
87
|
-
e: (n, t) => n.toExponential(t),
|
|
88
|
-
f: (n, t) => n.toFixed(t),
|
|
89
|
-
g: (n, t) => n.toPrecision(t),
|
|
90
|
-
o: (n) => Math.round(n).toString(8),
|
|
91
|
-
p: (n, t) => G(n * 100, t),
|
|
92
|
-
r: G,
|
|
93
|
-
s: _,
|
|
94
|
-
X: (n) => Math.round(n).toString(16).toUpperCase(),
|
|
95
|
-
x: (n) => Math.round(n).toString(16)
|
|
96
|
-
};
|
|
97
|
-
function X(n) {
|
|
98
|
-
return n;
|
|
99
|
-
}
|
|
100
|
-
var O = Array.prototype.map, R = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
101
|
-
function v(n) {
|
|
102
|
-
var t = n.grouping === void 0 || n.thousands === void 0 ? X : K(O.call(n.grouping, Number), n.thousands + ""), e = n.currency === void 0 ? "" : n.currency[0] + "", i = n.currency === void 0 ? "" : n.currency[1] + "", o = n.decimal === void 0 ? "." : n.decimal + "", f = n.numerals === void 0 ? X : Q(O.call(n.numerals, String)), c = n.percent === void 0 ? "%" : n.percent + "", u = n.minus === void 0 ? "−" : n.minus + "", p = n.nan === void 0 ? "NaN" : n.nan + "";
|
|
103
|
-
function F(a) {
|
|
104
|
-
a = N(a);
|
|
105
|
-
var x = a.fill, M = a.align, m = a.sign, w = a.symbol, l = a.zero, S = a.width, E = a.comma, g = a.precision, L = a.trim, d = a.type;
|
|
106
|
-
d === "n" ? (E = !0, d = "g") : I[d] || (g === void 0 && (g = 12), L = !0, d = "g"), (l || x === "0" && M === "=") && (l = !0, x = "0", M = "=");
|
|
107
|
-
var Z = w === "$" ? e : w === "#" && /[boxX]/.test(d) ? "0" + d.toLowerCase() : "", q = w === "$" ? i : /[%p]/.test(d) ? c : "", T = I[d], B = /[defgprs%]/.test(d);
|
|
108
|
-
g = g === void 0 ? 6 : /[gprs]/.test(d) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
|
|
109
|
-
function C(r) {
|
|
110
|
-
var y = Z, h = q, b, D, k;
|
|
111
|
-
if (d === "c")
|
|
112
|
-
h = T(r) + h, r = "";
|
|
113
|
-
else {
|
|
114
|
-
r = +r;
|
|
115
|
-
var P = r < 0 || 1 / r < 0;
|
|
116
|
-
if (r = isNaN(r) ? p : T(Math.abs(r), g), L && (r = W(r)), P && +r == 0 && m !== "+" && (P = !1), y = (P ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + y, h = (d === "s" ? R[8 + U / 3] : "") + h + (P && m === "(" ? ")" : ""), B) {
|
|
117
|
-
for (b = -1, D = r.length; ++b < D; )
|
|
118
|
-
if (k = r.charCodeAt(b), 48 > k || k > 57) {
|
|
119
|
-
h = (k === 46 ? o + r.slice(b + 1) : r.slice(b)) + h, r = r.slice(0, b);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
E && !l && (r = t(r, 1 / 0));
|
|
125
|
-
var z = y.length + r.length + h.length, s = z < S ? new Array(S - z + 1).join(x) : "";
|
|
126
|
-
switch (E && l && (r = t(s + r, s.length ? S - h.length : 1 / 0), s = ""), M) {
|
|
127
|
-
case "<":
|
|
128
|
-
r = y + r + h + s;
|
|
129
|
-
break;
|
|
130
|
-
case "=":
|
|
131
|
-
r = y + s + r + h;
|
|
132
|
-
break;
|
|
133
|
-
case "^":
|
|
134
|
-
r = s.slice(0, z = s.length >> 1) + y + r + h + s.slice(z);
|
|
135
|
-
break;
|
|
136
|
-
default:
|
|
137
|
-
r = s + y + r + h;
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
return f(r);
|
|
141
|
-
}
|
|
142
|
-
return C.toString = function() {
|
|
143
|
-
return a + "";
|
|
144
|
-
}, C;
|
|
145
|
-
}
|
|
146
|
-
function Y(a, x) {
|
|
147
|
-
var M = F((a = N(a), a.type = "f", a)), m = Math.max(-8, Math.min(8, Math.floor(J(x) / 3))) * 3, w = Math.pow(10, -m), l = R[8 + m / 3];
|
|
148
|
-
return function(S) {
|
|
149
|
-
return M(w * S) + l;
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
return {
|
|
153
|
-
format: F,
|
|
154
|
-
formatPrefix: Y
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
var A, nn, tn;
|
|
158
|
-
rn({
|
|
159
|
-
thousands: ",",
|
|
160
|
-
grouping: [3],
|
|
161
|
-
currency: ["$", ""]
|
|
162
|
-
});
|
|
163
|
-
function rn(n) {
|
|
164
|
-
return A = v(n), nn = A.format, tn = A.formatPrefix, A;
|
|
165
|
-
}
|
|
166
|
-
export {
|
|
167
|
-
tn as a,
|
|
168
|
-
nn as b,
|
|
169
|
-
J as e,
|
|
170
|
-
N as f
|
|
171
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function J(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function j(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function U(n){return n=j(Math.abs(n)),n?n[1]:NaN}function K(n,t){return function(e,i){for(var o=e.length,f=[],c=0,u=n[0],b=0;o>0&&u>0&&(b+u+1>i&&(u=Math.max(1,i-b)),f.push(e.substring(o-=u,o+u)),!((b+=u+1)>i));)u=n[c=(c+1)%n.length];return f.reverse().join(t)}}function Q(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var V=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function E(n){if(!(t=V.exec(n)))throw new Error("invalid format: "+n);var t;return new $({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}E.prototype=$.prototype;function $(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function W(n){n:for(var t=n.length,e=1,i=-1,o;e<t;++e)switch(n[e]){case".":i=o=e;break;case"0":i===0&&(i=e),o=e;break;default:if(!+n[e])break n;i>0&&(i=0);break}return i>0?n.slice(0,i)+n.slice(o+1):n}var Y;function _(n,t){var e=j(n,t);if(!e)return n+"";var i=e[0],o=e[1],f=o-(Y=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=i.length;return f===c?i:f>c?i+new Array(f-c+1).join("0"):f>0?i.slice(0,f)+"."+i.slice(f):"0."+new Array(1-f).join("0")+j(n,Math.max(0,t+f-1))[0]}function G(n,t){var e=j(n,t);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const I={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:J,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>G(n*100,t),r:G,s:_,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function X(n){return n}var O=Array.prototype.map,R=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function v(n){var t=n.grouping===void 0||n.thousands===void 0?X:K(O.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",i=n.currency===void 0?"":n.currency[1]+"",o=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?X:Q(O.call(n.numerals,String)),c=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",b=n.nan===void 0?"NaN":n.nan+"";function F(a){a=E(a);var x=a.fill,M=a.align,h=a.sign,w=a.symbol,l=a.zero,S=a.width,N=a.comma,g=a.precision,L=a.trim,d=a.type;d==="n"?(N=!0,d="g"):I[d]||(g===void 0&&(g=12),L=!0,d="g"),(l||x==="0"&&M==="=")&&(l=!0,x="0",M="=");var q=w==="$"?e:w==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",B=w==="$"?i:/[%p]/.test(d)?c:"",T=I[d],H=/[defgprs%]/.test(d);g=g===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function C(r){var y=q,m=B,p,D,k;if(d==="c")m=T(r)+m,r="";else{r=+r;var P=r<0||1/r<0;if(r=isNaN(r)?b:T(Math.abs(r),g),L&&(r=W(r)),P&&+r==0&&h!=="+"&&(P=!1),y=(P?h==="("?h:u:h==="-"||h==="("?"":h)+y,m=(d==="s"?R[8+Y/3]:"")+m+(P&&h==="("?")":""),H){for(p=-1,D=r.length;++p<D;)if(k=r.charCodeAt(p),48>k||k>57){m=(k===46?o+r.slice(p+1):r.slice(p))+m,r=r.slice(0,p);break}}}N&&!l&&(r=t(r,1/0));var z=y.length+r.length+m.length,s=z<S?new Array(S-z+1).join(x):"";switch(N&&l&&(r=t(s+r,s.length?S-m.length:1/0),s=""),M){case"<":r=y+r+m+s;break;case"=":r=y+s+r+m;break;case"^":r=s.slice(0,z=s.length>>1)+y+r+m+s.slice(z);break;default:r=s+y+r+m;break}return f(r)}return C.toString=function(){return a+""},C}function Z(a,x){var M=F((a=E(a),a.type="f",a)),h=Math.max(-8,Math.min(8,Math.floor(U(x)/3)))*3,w=Math.pow(10,-h),l=R[8+h/3];return function(S){return M(w*S)+l}}return{format:F,formatPrefix:Z}}var A;exports.format=void 0;exports.formatPrefix=void 0;nn({thousands:",",grouping:[3],currency:["$",""]});function nn(n){return A=v(n),exports.format=A.format,exports.formatPrefix=A.formatPrefix,A}exports.exponent=U;exports.formatSpecifier=E;
|