@sme.up/ketchup2 1.17.0 → 1.18.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/{_baseIsEqual-zRt14Ap0.cjs → _baseIsEqual-CEeDg5JY.cjs} +1 -1
- package/dist/{_baseIsEqual-BrnlrwQv.js → _baseIsEqual-DGkLOOUv.js} +83 -83
- package/dist/{_basePickBy-DaYAjwaD.js → _basePickBy-B1R94gYg.js} +28 -28
- package/dist/{_basePickBy-BwchXmnn.cjs → _basePickBy-DaIc-wgz.cjs} +1 -1
- package/dist/{_baseUniq-j7VEd75I.cjs → _baseUniq-DTfHgbiF.cjs} +1 -1
- package/dist/{_baseUniq-CJjUNseB.js → _baseUniq-Fo_obzds.js} +54 -54
- package/dist/{arc-iP-iR4iy.cjs → arc-BDhRalCq.cjs} +1 -1
- package/dist/{arc-Cbowbc-5.js → arc-DvVEbzqi.js} +1 -1
- package/dist/{architecture-U656AL7Q-CJqkeE6i.cjs → architecture-U656AL7Q-Bf9nK-g5.cjs} +1 -1
- package/dist/{architecture-U656AL7Q-BT3xXsaU.js → architecture-U656AL7Q-xWSQ4SRv.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-D18f521a.cjs → architectureDiagram-VXUJARFQ-CfqXQSfK.cjs} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-BnZiAhjd.js → architectureDiagram-VXUJARFQ-DZV4IIVV.js} +3 -3
- package/dist/assets/imageListAssets.d.ts +12 -0
- package/dist/assets/imageListAssets.d.ts.map +1 -0
- package/dist/assets/layoutAssets.d.ts +1 -0
- package/dist/assets/layoutAssets.d.ts.map +1 -1
- package/dist/assets/svg/fullscreen_exit.svg +1 -0
- package/dist/assets/svg/remove.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +4 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +7 -6
- 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/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/image/image-types.d.ts +45 -2
- package/dist/basic-components/image/image-types.d.ts.map +1 -1
- package/dist/basic-components/image/image-utils.d.ts +2 -1
- package/dist/basic-components/image/image-utils.d.ts.map +1 -1
- package/dist/basic-components/image/image.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number-types.d.ts +2 -1
- package/dist/basic-components/input-number/input-number-types.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +1 -0
- 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/select/select.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/{blockDiagram-VD42YOAC-B55mPKua.cjs → blockDiagram-VD42YOAC-BkkV6LWv.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-wDySglDu.js → blockDiagram-VD42YOAC-tKn8dzo0.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-BC0Wpsyx.js → c4Diagram-YG6GDRKO-B0gjRSdn.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-DjBFG-JS.cjs → c4Diagram-YG6GDRKO-RBwhYEc2.cjs} +1 -1
- package/dist/channel-0VH3jwlj.cjs +1 -0
- package/dist/{channel-Dx9i3vCP.js → channel-3tFaSeKk.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BiIRR12o.cjs → chunk-4BX2VUAB-Boz0nX9s.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-OFih-SVK.js → chunk-4BX2VUAB-D3u0w2gk.js} +1 -1
- package/dist/{chunk-55IACEB6-Ci8lQrba.js → chunk-55IACEB6-BpT8GkSp.js} +1 -1
- package/dist/{chunk-55IACEB6-5cFwCu9G.cjs → chunk-55IACEB6-DVWliiDK.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-Br09zvFH.cjs → chunk-B4BG7PRW-Bmq8n4Hs.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-BKVozipd.js → chunk-B4BG7PRW-DH5WVTGe.js} +4 -4
- package/dist/{chunk-DI55MBZ5-2iIK9cGZ.js → chunk-DI55MBZ5-CnYYh3n2.js} +3 -3
- package/dist/{chunk-DI55MBZ5-BC6LLziw.cjs → chunk-DI55MBZ5-DVb6521f.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-C5LdwLLI.js → chunk-FMBD7UC4-CfbK5tDm.js} +1 -1
- package/dist/{chunk-FMBD7UC4-6IkqlaCK.cjs → chunk-FMBD7UC4-Cou9fU3U.cjs} +1 -1
- package/dist/{chunk-QN33PNHL-B6jssVTN.js → chunk-QN33PNHL-CCaezjI9.js} +1 -1
- package/dist/{chunk-QN33PNHL-CGZrzSBB.cjs → chunk-QN33PNHL-bDqDrxJR.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-C4xVo3en.js → chunk-QZHKN3VN-B_jBa8Xi.js} +1 -1
- package/dist/{chunk-QZHKN3VN-BgTxUHVI.cjs → chunk-QZHKN3VN-agaSkAKB.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-BxgV5j7R.cjs → chunk-TZMSLE5B-DhehdAHS.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-CtxV03nX.js → chunk-TZMSLE5B-L3IDdUIe.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-BuS2b4J0.cjs → classDiagram-2ON5EDUG-SmUoP7ZW.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CZpmcSlb.js → classDiagram-2ON5EDUG-vQpFohnj.js} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-BuS2b4J0.cjs → classDiagram-v2-WZHVMYZB-SmUoP7ZW.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-CZpmcSlb.js → classDiagram-v2-WZHVMYZB-vQpFohnj.js} +2 -2
- package/dist/clone-B_ggB8XZ.cjs +1 -0
- package/dist/{clone-DkJx__A-.js → clone-YOXgx4TW.js} +1 -1
- package/dist/{cloneDeep-Dq3F6jwh.js → cloneDeep-BKtU4IKb.js} +1 -1
- package/dist/{cloneDeep-DQDCvru6.cjs → cloneDeep-CAsH5xlb.cjs} +1 -1
- package/dist/components/box-list/box-list-types.d.ts +1 -3
- package/dist/components/box-list/box-list-types.d.ts.map +1 -1
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/field/field-types.d.ts +0 -1
- package/dist/components/field/field-types.d.ts.map +1 -1
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/image-list/components/error-boundary.d.ts +16 -0
- package/dist/components/image-list/components/error-boundary.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-drill-down.d.ts +4 -0
- package/dist/components/image-list/components/image-list-drill-down.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-item.d.ts +3 -0
- package/dist/components/image-list/components/image-list-item.d.ts.map +1 -0
- package/dist/components/image-list/hooks/useNavigation.d.ts +16 -0
- package/dist/components/image-list/hooks/useNavigation.d.ts.map +1 -0
- package/dist/components/image-list/hooks/useSelection.d.ts +26 -0
- package/dist/components/image-list/hooks/useSelection.d.ts.map +1 -0
- package/dist/components/image-list/image-list.d.ts +5 -0
- package/dist/components/image-list/image-list.d.ts.map +1 -0
- package/dist/components/image-list/types/image-list-types.d.ts +69 -0
- package/dist/components/image-list/types/image-list-types.d.ts.map +1 -0
- package/dist/components/image-list/utils/image-list-utils.d.ts +7 -0
- package/dist/components/image-list/utils/image-list-utils.d.ts.map +1 -0
- package/dist/components/input-panel/input-panel.d.ts +2 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/mind-map/components/MindMapCanvas.d.ts +13 -1
- package/dist/components/mind-map/components/MindMapCanvas.d.ts.map +1 -1
- package/dist/components/mind-map/components/MindMapNode.d.ts +10 -4
- package/dist/components/mind-map/components/MindMapNode.d.ts.map +1 -1
- package/dist/components/mind-map/hooks/useMindMapAutofit.d.ts +45 -0
- package/dist/components/mind-map/hooks/useMindMapAutofit.d.ts.map +1 -0
- package/dist/components/mind-map/hooks/useMindMapLayout.d.ts +4 -3
- package/dist/components/mind-map/hooks/useMindMapLayout.d.ts.map +1 -1
- package/dist/components/mind-map/hooks/useMindMapNodeDimensions.d.ts +23 -0
- package/dist/components/mind-map/hooks/useMindMapNodeDimensions.d.ts.map +1 -0
- package/dist/components/mind-map/hooks/useMindMapState.d.ts +2 -2
- package/dist/components/mind-map/hooks/useMindMapState.d.ts.map +1 -1
- package/dist/components/mind-map/hooks/useMindMapViewport.d.ts +33 -0
- package/dist/components/mind-map/hooks/useMindMapViewport.d.ts.map +1 -0
- package/dist/components/mind-map/hooks/useViewportBounds.d.ts +27 -0
- package/dist/components/mind-map/hooks/useViewportBounds.d.ts.map +1 -0
- package/dist/components/mind-map/layouts/radial-layout.d.ts +3 -0
- package/dist/components/mind-map/layouts/radial-layout.d.ts.map +1 -0
- package/dist/components/mind-map/layouts/vertical-layout.d.ts +3 -0
- package/dist/components/mind-map/layouts/vertical-layout.d.ts.map +1 -0
- package/dist/components/mind-map/{types/index.d.ts → mind-map-types.d.ts} +54 -11
- package/dist/components/mind-map/mind-map-types.d.ts.map +1 -0
- package/dist/components/mind-map/mind-map.d.ts +3 -2
- package/dist/components/mind-map/mind-map.d.ts.map +1 -1
- package/dist/components/mind-map/utils/coordinates.d.ts +1 -1
- package/dist/components/mind-map/utils/coordinates.d.ts.map +1 -1
- package/dist/components/mind-map/utils/geometry-utils.d.ts +27 -0
- package/dist/components/mind-map/utils/geometry-utils.d.ts.map +1 -0
- package/dist/components/mind-map/utils/graph-utils.d.ts +88 -0
- package/dist/components/mind-map/utils/graph-utils.d.ts.map +1 -0
- package/dist/components/mind-map/utils/layout.d.ts +1 -1
- package/dist/components/mind-map/utils/layout.d.ts.map +1 -1
- package/dist/components/mind-map/utils/tree.d.ts +4 -2
- package/dist/components/mind-map/utils/tree.d.ts.map +1 -1
- package/dist/components/mind-map/utils/validation.d.ts +1 -1
- package/dist/components/mind-map/utils/validation.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-node.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-C00aP448.js → cose-bilkent-S5V4N54A-DD8g8ODW.js} +5 -5
- package/dist/{cose-bilkent-S5V4N54A-BJ6Tuyyj.cjs → cose-bilkent-S5V4N54A-DdSoONjd.cjs} +1 -1
- package/dist/{dagre-6UL2VRFP-BrXTKrJq.cjs → dagre-6UL2VRFP-B2AtgfKt.cjs} +1 -1
- package/dist/{dagre-6UL2VRFP-JMTi_XHD.js → dagre-6UL2VRFP-BjOVGWYT.js} +6 -6
- package/dist/{diagram-PSM6KHXK-fvIjUcFM.js → diagram-PSM6KHXK-D3n0zVfd.js} +4 -4
- package/dist/{diagram-PSM6KHXK-LkgNpU18.cjs → diagram-PSM6KHXK-D_fCWLTY.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-BQNAJB1W.cjs → diagram-QEK2KX5R-CIX1p2TE.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-BcuMWz8M.js → diagram-QEK2KX5R-D4IV84fI.js} +3 -3
- package/dist/{diagram-S2PKOQOG-DT8r8nnd.cjs → diagram-S2PKOQOG-DQyeu84g.cjs} +1 -1
- package/dist/{diagram-S2PKOQOG-BGEqeYnW.js → diagram-S2PKOQOG-D_bz5gIz.js} +3 -3
- package/dist/{erDiagram-Q2GNP2WA-CJoyV-_s.cjs → erDiagram-Q2GNP2WA-CA3u15D8.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DYRIEzOM.js → erDiagram-Q2GNP2WA-FaG72Sma.js} +4 -4
- package/dist/{flowDiagram-NV44I4VS-BqXm80wW.cjs → flowDiagram-NV44I4VS-CR_U7F3i.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-B2Zj_x6B.js → flowDiagram-NV44I4VS-Cqs3UFBQ.js} +5 -5
- package/dist/functional-components/badge/badge-types.d.ts +20 -16
- package/dist/functional-components/badge/badge-types.d.ts.map +1 -1
- package/dist/functional-components/badge/badge-utils.d.ts +28 -3
- package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- package/dist/functional-components/layout/layout-utils.d.ts.map +1 -1
- package/dist/functional-components/layout/layout.d.ts.map +1 -1
- package/dist/{ganttDiagram-JELNMOA3-08_dE0Q5.js → ganttDiagram-JELNMOA3-64EHKpud.js} +2 -2
- package/dist/{ganttDiagram-JELNMOA3-DCEQry87.cjs → ganttDiagram-JELNMOA3-CN1LWzl3.cjs} +1 -1
- package/dist/{gitGraph-F6HP7TQM-Y9JkwqbB.js → gitGraph-F6HP7TQM-BHF2Px3a.js} +1 -1
- package/dist/{gitGraph-F6HP7TQM-4Bs7cINB.cjs → gitGraph-F6HP7TQM-g-uFxP-W.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-B1DItGjE.js → gitGraphDiagram-NY62KEGX-BMZgJCnk.js} +4 -4
- package/dist/{gitGraphDiagram-NY62KEGX-BvyOJS_E.cjs → gitGraphDiagram-NY62KEGX-gkspcAEl.cjs} +1 -1
- package/dist/{graph-QS_Q5MPp.cjs → graph-BAbMYZfV.cjs} +1 -1
- package/dist/{graph-ZrTDk0Hg.js → graph-Bl9cAjm8.js} +7 -7
- package/dist/{index-CT8MFfo6.cjs → index-DIIaXWro.cjs} +158 -151
- package/dist/{index-tQish5_K.js → index-D_kILrIh.js} +27038 -26300
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/info-NVLQJR56-Coo8EJ5Z.js +5 -0
- package/dist/{info-NVLQJR56-CHsZUaj2.cjs → info-NVLQJR56-srf2MBEA.cjs} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-i83aw0dt.cjs → infoDiagram-WHAUD3N6-DA8ixL4V.cjs} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-jVuB8rdT.js → infoDiagram-WHAUD3N6-xpWWBRHb.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-C0xONv2Z.js → journeyDiagram-XKPGCS4Q-CiHV35D-.js} +4 -4
- package/dist/{journeyDiagram-XKPGCS4Q-cTUhYkyL.cjs → journeyDiagram-XKPGCS4Q-DF1jSlK-.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-gAgaqJpb.js → kanban-definition-3W4ZIXB7-BWGryLGw.js} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-BZbVKwOt.cjs → kanban-definition-3W4ZIXB7-gS0oGytB.cjs} +1 -1
- package/dist/ketchup2.cjs.js +1 -1
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +21 -20
- package/dist/{layout-9wrCML1i.cjs → layout-BAOkTpMt.cjs} +1 -1
- package/dist/{layout-CvVc3iSj.js → layout-DqfckNJZ.js} +51 -51
- package/dist/{linear-BFKUXJJJ.js → linear-BwTuJ7Vo.js} +5 -5
- package/dist/{linear-jeDn-4pB.cjs → linear-CDB37PVm.cjs} +1 -1
- package/dist/locale/en/translation.json.d.ts +7 -2
- package/dist/locale/it/translation.json.d.ts +7 -2
- package/dist/{mermaid-parser.core-KMjRAYYm.cjs → mermaid-parser.core-2c535U97.cjs} +2 -2
- package/dist/{mermaid-parser.core-CKYvvyAq.js → mermaid-parser.core-Kh2GaZjn.js} +12 -12
- package/dist/{mindmap-definition-VGOIOE7T-Dthy0WmT.js → mindmap-definition-VGOIOE7T-CHXB52JE.js} +3 -3
- package/dist/{mindmap-definition-VGOIOE7T-DmaEElVQ.cjs → mindmap-definition-VGOIOE7T-Dbf-IjJg.cjs} +1 -1
- package/dist/{packet-BFZMPI3H-DywTQVQ_.cjs → packet-BFZMPI3H-CHjUkc3K.cjs} +1 -1
- package/dist/{packet-BFZMPI3H-CpS-F5a_.js → packet-BFZMPI3H-CWlKzkUT.js} +1 -1
- package/dist/{pie-7BOR55EZ-ChNKQdbq.cjs → pie-7BOR55EZ-DF8jDFu6.cjs} +1 -1
- package/dist/pie-7BOR55EZ-ev26J3c5.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-CvGdCgan.js → pieDiagram-ADFJNKIX-BS47ESx3.js} +13 -13
- package/dist/{pieDiagram-ADFJNKIX-DivYnpIG.cjs → pieDiagram-ADFJNKIX-CUXoHrUo.cjs} +1 -1
- package/dist/{quadrantDiagram-AYHSOK5B-DMcJ8r-L.js → quadrantDiagram-AYHSOK5B-BDCNfr1M.js} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-Bf9-HbUq.cjs → quadrantDiagram-AYHSOK5B-DR-GeD40.cjs} +1 -1
- package/dist/{quill-i2umgPvo.js → quill-CL1W1hro.js} +3 -3
- package/dist/{quill-DQZOmBqc.cjs → quill-izWMIyId.cjs} +1 -1
- package/dist/{radar-NHE76QYJ-DZuF23ek.cjs → radar-NHE76QYJ-CTPycyar.cjs} +1 -1
- package/dist/radar-NHE76QYJ-CrwtClJN.js +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-Bl2E6Fyl.js → requirementDiagram-UZGBJVZJ-CUfIh-7P.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-C617ntCl.cjs → requirementDiagram-UZGBJVZJ-vOYjKcHP.cjs} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-DPYxVtOl.js → sankeyDiagram-TZEHDZUN-Ddj4CqOU.js} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-DJMSsNjh.cjs → sankeyDiagram-TZEHDZUN-Dn5DcHZn.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-V7RqENZQ.js → sequenceDiagram-WL72ISMW-DCp5IF0l.js} +3 -3
- package/dist/{sequenceDiagram-WL72ISMW-CGkxXC50.cjs → sequenceDiagram-WL72ISMW-DzATBRBb.cjs} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-qkCLTpNh.js → stateDiagram-FKZM4ZOC-CYSSqqZ6.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-COnDROTh.cjs → stateDiagram-FKZM4ZOC-Du6jFWWB.cjs} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-DVl2lm_B.cjs → stateDiagram-v2-4FDKWEC3-BAYfudRi.cjs} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-corE_iho.js → stateDiagram-v2-4FDKWEC3-Cxj_JYYu.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-CyuUeVWe.js → timeline-definition-IT6M3QCI-Dw1JJhHl.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-7sh02DJC.cjs → timeline-definition-IT6M3QCI-fZZ7KhwG.cjs} +1 -1
- package/dist/{treemap-KMMF4GRG-C78aS1uB.cjs → treemap-KMMF4GRG-DIf-BmJb.cjs} +1 -1
- package/dist/{treemap-KMMF4GRG-BxfekPoY.js → treemap-KMMF4GRG-DOx8Kmfm.js} +1 -1
- package/dist/types/data-structures.d.ts +2 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/translation.d.ts +7 -2
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-vfxLXpzQ.js → xychartDiagram-PRI3JC2R-CHFF9E0J.js} +12 -12
- package/dist/{xychartDiagram-PRI3JC2R-wzZbTURO.cjs → xychartDiagram-PRI3JC2R-Cg1xVYiM.cjs} +1 -1
- package/package.json +11 -11
- package/dist/channel-CwKSkgJF.cjs +0 -1
- package/dist/clone-DPavQMkb.cjs +0 -1
- package/dist/components/mind-map/hooks/useMindMapPan.d.ts +0 -14
- package/dist/components/mind-map/hooks/useMindMapPan.d.ts.map +0 -1
- package/dist/components/mind-map/types/index.d.ts.map +0 -1
- package/dist/info-NVLQJR56-COZxNJP_.js +0 -5
- package/dist/pie-7BOR55EZ-B-Fv4j6j.js +0 -5
- package/dist/radar-NHE76QYJ-DEY-dBFC.js +0 -5
- package/dist/time-picker-dropdown-B_7NChVW.cjs +0 -1
- package/dist/time-picker-dropdown-CTaNEXXR.js +0 -122
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ce as e, bF as c, bW as t, bG as b, bN as o, bX as i, bY as r, cb as l, bZ as n, b_ as h, b$ as p, bH as d, bI as T, c0 as P, bJ as f, bT as m, bK as g, ca as u, bV as C, bM as N, c1 as x, ck as B, c4 as I, bL as L, ch as M, bP as A, c3 as S, cc as _, c2 as D, cg as E, c5 as F, bQ as U, bO as k, bU as y, c6 as O, cf as v, bR as w, c7 as G, c8 as H, bS as R, cj as V, c9 as W, cd as j, ci as J } from "./index-D_kILrIh.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
e as AdvanceResearchContext,
|
|
4
|
+
c as AppBar,
|
|
5
5
|
t as Autocomplete,
|
|
6
6
|
b as BoxList,
|
|
7
7
|
o as Breadcrumbs,
|
|
@@ -16,31 +16,32 @@ export {
|
|
|
16
16
|
P as DatePicker,
|
|
17
17
|
f as Drawer,
|
|
18
18
|
m as EchartsGraph,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
g as Field,
|
|
20
|
+
u as FileUpload,
|
|
21
|
+
C as Htm,
|
|
22
|
+
N as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
|
|
23
23
|
x as Icon,
|
|
24
24
|
B as Image,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
S as
|
|
30
|
-
_ as
|
|
31
|
-
D as
|
|
32
|
-
E as
|
|
25
|
+
I as ImageList,
|
|
26
|
+
L as InputPanel,
|
|
27
|
+
M as Label,
|
|
28
|
+
A as MermaidChart,
|
|
29
|
+
S as MultipleSelect,
|
|
30
|
+
_ as Notification,
|
|
31
|
+
D as NotificationWidget,
|
|
32
|
+
E as OverlayPanel,
|
|
33
|
+
F as Password,
|
|
33
34
|
U as Path,
|
|
34
35
|
k as Pdf,
|
|
35
36
|
y as Scaffold,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
O as Select,
|
|
38
|
+
v as Spotlight,
|
|
39
|
+
w as TabBar,
|
|
40
|
+
G as Textarea,
|
|
40
41
|
H as Textfield,
|
|
41
42
|
R as Toolbar,
|
|
42
43
|
V as Tree,
|
|
43
44
|
W as Typography,
|
|
44
45
|
j as configurePaths,
|
|
45
|
-
|
|
46
|
+
J as useFloating
|
|
46
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const E=require("./graph-QS_Q5MPp.cjs"),f=require("./_baseUniq-j7VEd75I.cjs"),l=require("./_basePickBy-BwchXmnn.cjs"),m=require("./index-CT8MFfo6.cjs"),he=require("./cloneDeep-DQDCvru6.cjs");function le(e){return m.setToString(m.overRest(e,void 0,l.flatten),e+"")}function ve(e,n){return e==null?e:m.baseFor(e,f.castFunction(n),m.keysIn)}function pe(e,n){return e&&f.baseForOwn(e,f.castFunction(n))}function we(e,n){return e>n}function C(e,n){var r={};return n=f.baseIteratee(n),f.baseForOwn(e,function(a,t,o){m.baseAssignValue(r,t,n(a,t,o))}),r}function g(e){return e&&e.length?l.baseExtremum(e,m.identity,we):void 0}function j(e,n){return e&&e.length?l.baseExtremum(e,f.baseIteratee(n),l.baseLt):void 0}function me(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function be(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,o=f.isSymbol(e),i=n!==void 0,u=n===null,d=n===n,c=f.isSymbol(n);if(!u&&!c&&!o&&e>n||o&&i&&d&&!u&&!c||a&&i&&d||!r&&d||!t)return 1;if(!a&&!o&&!c&&e<n||c&&r&&t&&!a&&!o||u&&r&&t||!i&&t||!d)return-1}return 0}function Ee(e,n,r){for(var a=-1,t=e.criteria,o=n.criteria,i=t.length,u=r.length;++a<i;){var d=be(t[a],o[a]);if(d){if(a>=u)return d;var c=r[a];return d*(c=="desc"?-1:1)}}return e.index-n.index}function ge(e,n,r){n.length?n=f.arrayMap(n,function(o){return m.isArray(o)?function(i){return f.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var a=-1;n=f.arrayMap(n,m.baseUnary(f.baseIteratee));var t=l.baseMap(e,function(o,i,u){var d=f.arrayMap(n,function(c){return c(o)});return{criteria:d,index:++a,value:o}});return me(t,function(o,i){return Ee(o,i,r)})}function ye(e,n){return l.basePickBy(e,n,function(r,a){return f.hasIn(e,a)})}var P=le(function(e,n){return e==null?{}:ye(e,n)}),ke=Math.ceil,xe=Math.max;function Oe(e,n,r,a){for(var t=-1,o=xe(ke((n-e)/(r||1)),0),i=Array(o);o--;)i[++t]=e,e+=r;return i}function Ne(e){return function(n,r,a){return a&&typeof a!="number"&&m.isIterateeCall(n,r,a)&&(r=a=void 0),n=l.toFinite(n),r===void 0?(r=n,n=0):r=l.toFinite(r),a=a===void 0?n<r?1:-1:l.toFinite(a),Oe(n,r,a)}}var k=Ne(),L=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),ge(e,f.baseFlatten(n),[])}),Le=0;function V(e){var n=++Le;return f.toString(e)+n}function Pe(e,n,r){for(var a=-1,t=e.length,o=n.length,i={};++a<t;){var u=a<o?n[a]:void 0;r(i,e[a],u)}return i}function Ce(e,n){return Pe(e||[],n||[],m.assignValue)}class _e{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return q(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&q(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,Re)),a=a._prev;return"["+n.join(", ")+"]"}}function q(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var Ie=m.constant$1(1);function Te(e,n){if(e.nodeCount()<=1)return[];var r=Fe(e,n||Ie),a=Me(r.graph,r.buckets,r.zeroIdx);return l.flatten(l.map(a,function(t){return e.outEdges(t.v,t.w)}))}function Me(e,n,r){for(var a=[],t=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)R(e,n,r,i);for(;i=t.dequeue();)R(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(R(e,n,r,i,!0));break}}}return a}function R(e,n,r,a,t){var o=t?[]:void 0;return f.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&o.push({v:i.v,w:i.w}),d.out-=u,S(n,r,d)}),f.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,S(n,r,c)}),e.removeNode(a.v),o}function Fe(e,n){var r=new E.Graph,a=0,t=0;f.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var o=k(t+a+3).map(function(){return new _e}),i=a+1;return f.forEach(r.nodes(),function(u){S(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function S(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Te(e,r(e)):je(e);f.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,V("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function je(e){var n=[],r={},a={};function t(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,f.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):t(i.w)}),delete r[o])}return f.forEach(e.nodes(),t),n}function Ve(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function x(e,n,r,a){var t;do t=V(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function Ge(e){var n=new E.Graph().setGraph(e.graph());return f.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function K(e){var n=new E.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return f.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function U(e,n){var r=e.x,a=e.y,t=n.x-r,o=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(o)*i>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,c=u):(t<0&&(i=-i),d=i,c=i*o/t),{x:r+d,y:a+c}}function _(e){var n=l.map(k(Q(e)+1),function(){return[]});return f.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;f.isUndefined(t)||(n[t][a.order]=r)}),n}function Be(e){var n=l.min(l.map(e.nodes(),function(r){return e.node(r).rank}));f.forEach(e.nodes(),function(r){var a=e.node(r);l.has(a,"rank")&&(a.rank-=n)})}function Ae(e){var n=l.min(l.map(e.nodes(),function(o){return e.node(o).rank})),r=[];f.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var a=0,t=e.graph().nodeRankFactor;f.forEach(r,function(o,i){f.isUndefined(o)&&i%t!==0?--a:a&&f.forEach(o,function(u){e.node(u).rank+=a})})}function D(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),x(e,"border",t,n)}function Q(e){return g(l.map(e.nodes(),function(n){var r=e.node(n).rank;if(!f.isUndefined(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function qe(e,n){return n()}function Ue(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&f.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,i=t.maxRank+1;o<i;++o)$(e,"borderLeft","_bl",r,t,o),$(e,"borderRight","_br",r,t,o)}}f.forEach(e.children(),n)}function $(e,n,r,a,t,o){var i={width:0,height:0,rank:o,borderType:n},u=t[n][o-1],d=x(e,"border",i,r);t[n][o]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function De(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ee(e)}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),ee(e))}function ee(e){f.forEach(e.nodes(),function(n){W(e.node(n))}),f.forEach(e.edges(),function(n){W(e.edge(n))})}function W(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f.forEach(e.nodes(),function(n){I(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,I),Object.prototype.hasOwnProperty.call(r,"y")&&I(r)})}function I(e){e.y=-e.y}function ze(e){f.forEach(e.nodes(),function(n){T(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,T),Object.prototype.hasOwnProperty.call(r,"x")&&T(r)})}function T(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f.forEach(e.edges(),function(n){He(e,n)})}function He(e,n){var r=n.v,a=e.node(r).rank,t=n.w,o=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(o!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<o;++h,++a)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},s=x(e,"edge",c,"_d"),a===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:u.weight},i)}}function Je(e){f.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function G(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var o=l.min(l.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),t.rank=o}f.forEach(e.sources(),r)}function N(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ne(e){var n=new E.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,o;Ze(n,e)<a;)t=Ke(n,e),o=n.hasNode(t.v)?N(e,t):-N(e,t),Qe(n,e,o);return n}function Ze(e,n){function r(a){f.forEach(n.nodeEdges(a),function(t){var o=t.v,i=a===o?t.w:o;!e.hasNode(i)&&!N(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return f.forEach(e.nodes(),r),e.nodeCount()}function Ke(e,n){return j(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return N(n,r)})}function Qe(e,n,r){f.forEach(e.nodes(),function(a){n.node(a).rank+=r})}function en(){}en.prototype=new Error;function re(e,n,r){m.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],o={};return f.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ae(e,i,r==="post",o,a,t)}),t}function ae(e,n,r,a,t,o){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||o.push(n),f.forEach(t(n),function(i){ae(e,i,r,a,t,o)}),r&&o.push(n))}function nn(e,n){return re(e,n,"post")}function rn(e,n){return re(e,n,"pre")}y.initLowLimValues=A;y.initCutValues=B;y.calcCutValue=te;y.leaveEdge=ie;y.enterEdge=ue;y.exchangeEdges=fe;function y(e){e=Ge(e),G(e);var n=ne(e);A(n),B(n,e);for(var r,a;r=ie(n);)a=ue(n,e,r),fe(n,e,r,a)}function B(e,n){var r=nn(e,e.nodes());r=r.slice(0,r.length-1),f.forEach(r,function(a){an(e,n,a)})}function an(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=te(e,n,r)}function te(e,n,r){var a=e.node(r),t=a.parent,o=!0,i=n.edge(r,t),u=0;return i||(o=!1,i=n.edge(t,r)),u=i.weight,f.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===o,v=n.edge(d).weight;if(u+=h?v:-v,on(e,r,s)){var p=e.edge(r,s).cutvalue;u+=h?-p:p}}}),u}function A(e,n){arguments.length<2&&(n=e.nodes()[0]),oe(e,{},1,n)}function oe(e,n,r,a,t){var o=r,i=e.node(a);return n[a]=!0,f.forEach(e.neighbors(a),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=oe(e,n,r,u,a))}),i.low=o,i.lim=r++,t?i.parent=t:delete i.parent,r}function ie(e){return l.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ue(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var o=e.node(a),i=e.node(t),u=o,d=!1;o.lim>i.lim&&(u=i,d=!0);var c=f.filter(n.edges(),function(s){return d===z(e,e.node(s.v),u)&&d!==z(e,e.node(s.w),u)});return j(c,function(s){return N(n,s)})}function fe(e,n,r,a){var t=r.v,o=r.w;e.removeEdge(t,o),e.setEdge(a.v,a.w,{}),A(e),B(e,n),tn(e,n)}function tn(e,n){var r=l.find(e.nodes(),function(t){return!n.node(t).parent}),a=rn(e,r);a=a.slice(1),f.forEach(a,function(t){var o=e.node(t).parent,i=n.edge(t,o),u=!1;i||(i=n.edge(o,t),u=!0),n.node(t).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function on(e,n,r){return e.hasEdge(n,r)}function z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function un(e){switch(e.graph().ranker){case"network-simplex":X(e);break;case"tight-tree":dn(e);break;case"longest-path":fn(e);break;default:X(e)}}var fn=G;function dn(e){G(e),ne(e)}function X(e){y(e)}function cn(e){var n=x(e,"root",{},"_root"),r=sn(e),a=g(f.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,f.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var o=hn(e)+1;f.forEach(e.children(),function(i){de(e,n,t,o,a,r,i)}),e.graph().nodeRankFactor=t}function de(e,n,r,a,t,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=D(e,"_bt"),c=D(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,f.forEach(u,function(h){de(e,n,r,a,t,o,h);var v=e.node(h),p=v.borderTop?v.borderTop:h,w=v.borderBottom?v.borderBottom:h,b=v.borderTop?a:2*a,O=p!==w?1:t-o[i]+1;e.setEdge(d,p,{weight:b,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:b,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+o[i]})}function sn(e){var n={};function r(a,t){var o=e.children(a);o&&o.length&&f.forEach(o,function(i){r(i,t+1)}),n[a]=t}return f.forEach(e.children(),function(a){r(a,1)}),n}function hn(e){return f.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function vn(e,n,r){var a={},t;f.forEach(r,function(o){for(var i=e.parent(o),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function pn(e,n,r){var a=wn(e),t=new E.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return f.forEach(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(o),t.setParent(o,u||a),f.forEach(e[r](o),function(d){var c=d.v===o?d.w:d.v,s=t.edge(c,o),h=f.isUndefined(s)?0:s.weight;t.setEdge(c,o,{weight:e.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&t.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function wn(e){for(var n;e.hasNode(n=V("_root")););return n}function mn(e,n){for(var r=0,a=1;a<n.length;++a)r+=bn(e,n[a-1],n[a]);return r}function bn(e,n,r){for(var a=Ce(r,l.map(r,function(c,s){return s})),t=l.flatten(l.map(n,function(c){return L(l.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=l.map(new Array(i),function(){return 0}),d=0;return f.forEach(t.forEach(function(c){var s=c.pos+o;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function En(e){var n={},r=f.filter(e.nodes(),function(u){return!e.children(u).length}),a=g(l.map(r,function(u){return e.node(u).rank})),t=l.map(k(a+1),function(){return[]});function o(u){if(!l.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),f.forEach(e.successors(u),o)}}var i=L(r,function(u){return e.node(u).rank});return f.forEach(i,o),t}function gn(e,n){return l.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=f.reduce(a,function(o,i){var u=e.edge(i),d=e.node(i.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function yn(e,n){var r={};f.forEach(e,function(t,o){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};f.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f.forEach(n.edges(),function(t){var o=r[t.v],i=r[t.w];!f.isUndefined(o)&&!f.isUndefined(i)&&(i.indegree++,o.out.push(r[t.w]))});var a=f.filter(r,function(t){return!t.indegree});return kn(a)}function kn(e){var n=[];function r(o){return function(i){i.merged||(f.isUndefined(i.barycenter)||f.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&xn(o,i)}}function a(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),f.forEach(t.in.reverse(),r(t)),f.forEach(t.out,a(t))}return l.map(f.filter(n,function(o){return!o.merged}),function(o){return P(o,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function On(e,n){var r=Ye(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=L(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,d=0;a.sort(Nn(!!n)),d=H(o,t,d),f.forEach(a,function(s){d+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=H(o,t,d)});var c={vs:l.flatten(o)};return u&&(c.barycenter=i/u,c.weight=u),c}function H(e,n,r){for(var a;n.length&&(a=l.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function Nn(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ce(e,n,r,a){var t=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};i&&(t=f.filter(t,function(w){return w!==i&&w!==u}));var c=gn(e,t);f.forEach(c,function(w){if(e.children(w.v).length){var b=ce(e,w.v,r,a);d[w.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&Pn(w,b)}});var s=yn(c,r);Ln(s,d);var h=On(s,a);if(i&&(h.vs=l.flatten([i,h.vs,u]),e.predecessors(i).length)){var v=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ln(e,n){f.forEach(e,function(r){r.vs=l.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function Pn(e,n){f.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Cn(e){var n=Q(e),r=J(e,k(1,n+1),"inEdges"),a=J(e,k(n-1,-1,-1),"outEdges"),t=En(e);Z(e,t);for(var o=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){_n(u%2?r:a,u%4>=2),t=_(e);var c=mn(e,t);c<o&&(d=0,i=he.cloneDeep(t),o=c)}Z(e,i)}function J(e,n,r){return l.map(n,function(a){return pn(e,a,r)})}function _n(e,n){var r=new E.Graph;f.forEach(e,function(a){var t=a.graph().root,o=ce(a,t,r,n);f.forEach(o.vs,function(i,u){a.node(i).order=u}),vn(a,r,o.vs)})}function Z(e,n){f.forEach(n,function(r){f.forEach(r,function(a,t){e.node(a).order=t})})}function Rn(e){var n=Tn(e);f.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,o=In(e,n,t.v,t.w),i=o.path,u=o.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function In(e,n,r,a){var t=[],o=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)o.push(d);return{path:t.concat(o.reverse()),lca:c}}function Tn(e){var n={},r=0;function a(t){var o=r;f.forEach(e.children(t),a),n[t]={low:o,lim:r++}}return f.forEach(e.children(),a),n}function Mn(e,n){var r={};function a(t,o){var i=0,u=0,d=t.length,c=l.last(o);return f.forEach(o,function(s,h){var v=Sn(e,s),p=v?e.node(v).order:d;(v||s===c)&&(f.forEach(o.slice(u,h+1),function(w){f.forEach(e.predecessors(w),function(b){var O=e.node(b),Y=O.order;(Y<i||p<Y)&&!(O.dummy&&e.node(w).dummy)&&se(r,b,w)})}),u=h+1,i=p)}),o}return f.reduce(n,a),r}function Fn(e,n){var r={};function a(o,i,u,d,c){var s;f.forEach(k(i,u),function(h){s=o[h],e.node(s).dummy&&f.forEach(e.predecessors(s),function(v){var p=e.node(v);p.dummy&&(p.order<d||p.order>c)&&se(r,v,s)})})}function t(o,i){var u=-1,d,c=0;return f.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var v=e.predecessors(s);v.length&&(d=e.node(v[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,o.length)}),i}return f.reduce(n,t),r}function Sn(e,n){if(e.node(n).dummy)return l.find(e.predecessors(n),function(r){return e.node(r).dummy})}function se(e,n,r){if(n>r){var a=n;n=r,r=a}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var t=e[n];Object.defineProperty(t,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function jn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Vn(e,n,r,a){var t={},o={},i={};return f.forEach(n,function(u){f.forEach(u,function(d,c){t[d]=d,o[d]=d,i[d]=c})}),f.forEach(n,function(u){var d=-1;f.forEach(u,function(c){var s=a(c);if(s.length){s=L(s,function(b){return i[b]});for(var h=(s.length-1)/2,v=Math.floor(h),p=Math.ceil(h);v<=p;++v){var w=s[v];o[c]===c&&d<i[w]&&!jn(r,c,w)&&(o[w]=c,o[c]=t[c]=t[w],d=i[w])}}})}),{root:t,align:o}}function Gn(e,n,r,a,t){var o={},i=Bn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,v){for(var p=i.nodes(),w=p.pop(),b={};w;)b[w]?h(w):(b[w]=!0,p.push(w),p=p.concat(v(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(v,p){return Math.max(v,o[p.v]+i.edge(p))},0)}function s(h){var v=i.outEdges(h).reduce(function(w,b){return Math.min(w,o[b.w]-i.edge(b))},Number.POSITIVE_INFINITY),p=e.node(h);v!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),f.forEach(a,function(h){o[h]=o[r[h]]}),o}function Bn(e,n,r,a){var t=new E.Graph,o=e.graph(),i=Dn(o.nodesep,o.edgesep,a);return f.forEach(n,function(u){var d;f.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],v=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),v||0))}d=c})}),t}function An(e,n){return j(f.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return ve(r,function(o,i){var u=$n(e,i)/2;a=Math.max(o+u,a),t=Math.min(o-u,t)}),a-t})}function Yn(e,n){var r=f.values(n),a=l.min(r),t=g(r);f.forEach(["u","d"],function(o){f.forEach(["l","r"],function(i){var u=o+i,d=e[u],c;if(d!==n){var s=f.values(d);c=i==="l"?a-l.min(s):t-g(s),c&&(e[u]=C(d,function(h){return h+c}))}})})}function qn(e,n){return C(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=L(l.map(e,a));return(t[1]+t[2])/2})}function Un(e){var n=_(e),r=m.merge(Mn(e,n),Fn(e,n)),a={},t;f.forEach(["u","d"],function(i){t=i==="u"?n:f.values(n).reverse(),f.forEach(["l","r"],function(u){u==="r"&&(t=l.map(t,function(h){return f.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=Vn(e,t,r,d),s=Gn(e,t,c.root,c.align,u==="r");u==="r"&&(s=C(s,function(h){return-h})),a[i+u]=s})});var o=An(e,a);return Yn(a,o),qn(a,e.graph().align)}function Dn(e,n,r){return function(a,t,o){var i=a.node(t),u=a.node(o),d=0,c;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function $n(e,n){return e.node(n).width}function Wn(e){e=K(e),zn(e),pe(Un(e),function(n,r){e.node(r).x=n})}function zn(e){var n=_(e),r=e.graph().ranksep,a=0;f.forEach(n,function(t){var o=g(l.map(t,function(i){return e.node(i).height}));f.forEach(t,function(i){e.node(i).y=a+o/2}),a+=o+r})}function Xn(e,n){var r=qe;r("layout",()=>{var a=r(" buildLayoutGraph",()=>or(e));r(" runLayout",()=>Hn(a,r)),r(" updateInputGraph",()=>Jn(e,a))})}function Hn(e,n){n(" makeSpaceForEdgeLabels",()=>ir(e)),n(" removeSelfEdges",()=>pr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>cn(e)),n(" rank",()=>un(K(e))),n(" injectEdgeLabelProxies",()=>ur(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>fr(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ue(e)),n(" order",()=>Cn(e)),n(" insertSelfEdges",()=>wr(e)),n(" adjustCoordinateSystem",()=>De(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>mr(e)),n(" removeBorderNodes",()=>vr(e)),n(" normalize.undo",()=>Je(e)),n(" fixupEdgeLabelCoords",()=>hr(e)),n(" undoCoordinateSystem",()=>$e(e)),n(" translateGraph",()=>cr(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>lr(e)),n(" acyclic.undo",()=>Ve(e))}function Jn(e,n){f.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),f.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Zn=["nodesep","edgesep","ranksep","marginx","marginy"],Kn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Qn=["acyclicer","ranker","rankdir","align"],er=["width","height"],nr={width:0,height:0},rr=["minlen","weight","width","height","labeloffset"],ar={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},tr=["labelpos"];function or(e){var n=new E.Graph({multigraph:!0,compound:!0}),r=F(e.graph());return n.setGraph(m.merge({},Kn,M(r,Zn),P(r,Qn))),f.forEach(e.nodes(),function(a){var t=F(e.node(a));n.setNode(a,l.defaults(M(t,er),nr)),n.setParent(a,e.parent(a))}),f.forEach(e.edges(),function(a){var t=F(e.edge(a));n.setEdge(a,m.merge({},ar,M(t,rr),P(t,tr)))}),n}function ir(e){var n=e.graph();n.ranksep/=2,f.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function ur(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),o={rank:(t.rank-a.rank)/2+a.rank,e:n};x(e,"edge-proxy",o,"_ep")}})}function fr(e){var n=0;f.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=g(n,a.maxRank))}),e.graph().maxRank=n}function dr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function cr(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function d(c){var s=c.x,h=c.y,v=c.width,p=c.height;n=Math.min(n,s-v/2),r=Math.max(r,s+v/2),a=Math.min(a,h-p/2),t=Math.max(t,h+p/2)}f.forEach(e.nodes(),function(c){d(e.node(c))}),f.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),n-=i,a-=u,f.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),f.forEach(e.edges(),function(c){var s=e.edge(c);f.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),o.width=r-n+i,o.height=t-a+u}function sr(e){f.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=t,i=a),r.points.unshift(U(a,o)),r.points.push(U(t,i))})}function hr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function lr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function vr(e){f.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),o=e.node(l.last(r.borderLeft)),i=e.node(l.last(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(t.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),f.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function pr(e){f.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function wr(e){var n=_(e);f.forEach(n,function(r){var a=0;f.forEach(r,function(t,o){var i=e.node(t);i.order=o+a,f.forEach(i.selfEdges,function(u){x(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function mr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,o=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:o-u},{x:t+5*i/6,y:o-u},{x:t+i,y:o},{x:t+5*i/6,y:o+u},{x:t+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function M(e,n){return C(P(e,n),Number)}function F(e){var n={};return f.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Xn;
|
|
1
|
+
"use strict";const E=require("./graph-BAbMYZfV.cjs"),f=require("./_baseUniq-DTfHgbiF.cjs"),l=require("./_basePickBy-DaIc-wgz.cjs"),m=require("./index-DIIaXWro.cjs"),he=require("./cloneDeep-CAsH5xlb.cjs");function le(e){return m.setToString(m.overRest(e,void 0,l.flatten),e+"")}function ve(e,n){return e==null?e:m.baseFor(e,f.castFunction(n),m.keysIn)}function pe(e,n){return e&&f.baseForOwn(e,f.castFunction(n))}function we(e,n){return e>n}function C(e,n){var r={};return n=f.baseIteratee(n),f.baseForOwn(e,function(a,t,o){m.baseAssignValue(r,t,n(a,t,o))}),r}function g(e){return e&&e.length?l.baseExtremum(e,m.identity,we):void 0}function j(e,n){return e&&e.length?l.baseExtremum(e,f.baseIteratee(n),l.baseLt):void 0}function me(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function be(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,o=f.isSymbol(e),i=n!==void 0,u=n===null,d=n===n,c=f.isSymbol(n);if(!u&&!c&&!o&&e>n||o&&i&&d&&!u&&!c||a&&i&&d||!r&&d||!t)return 1;if(!a&&!o&&!c&&e<n||c&&r&&t&&!a&&!o||u&&r&&t||!i&&t||!d)return-1}return 0}function Ee(e,n,r){for(var a=-1,t=e.criteria,o=n.criteria,i=t.length,u=r.length;++a<i;){var d=be(t[a],o[a]);if(d){if(a>=u)return d;var c=r[a];return d*(c=="desc"?-1:1)}}return e.index-n.index}function ge(e,n,r){n.length?n=f.arrayMap(n,function(o){return m.isArray(o)?function(i){return f.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var a=-1;n=f.arrayMap(n,m.baseUnary(f.baseIteratee));var t=l.baseMap(e,function(o,i,u){var d=f.arrayMap(n,function(c){return c(o)});return{criteria:d,index:++a,value:o}});return me(t,function(o,i){return Ee(o,i,r)})}function ye(e,n){return l.basePickBy(e,n,function(r,a){return f.hasIn(e,a)})}var P=le(function(e,n){return e==null?{}:ye(e,n)}),ke=Math.ceil,xe=Math.max;function Oe(e,n,r,a){for(var t=-1,o=xe(ke((n-e)/(r||1)),0),i=Array(o);o--;)i[++t]=e,e+=r;return i}function Ne(e){return function(n,r,a){return a&&typeof a!="number"&&m.isIterateeCall(n,r,a)&&(r=a=void 0),n=l.toFinite(n),r===void 0?(r=n,n=0):r=l.toFinite(r),a=a===void 0?n<r?1:-1:l.toFinite(a),Oe(n,r,a)}}var k=Ne(),L=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),ge(e,f.baseFlatten(n),[])}),Le=0;function V(e){var n=++Le;return f.toString(e)+n}function Pe(e,n,r){for(var a=-1,t=e.length,o=n.length,i={};++a<t;){var u=a<o?n[a]:void 0;r(i,e[a],u)}return i}function Ce(e,n){return Pe(e||[],n||[],m.assignValue)}class _e{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return q(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&q(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,Re)),a=a._prev;return"["+n.join(", ")+"]"}}function q(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var Ie=m.constant$1(1);function Te(e,n){if(e.nodeCount()<=1)return[];var r=Fe(e,n||Ie),a=Me(r.graph,r.buckets,r.zeroIdx);return l.flatten(l.map(a,function(t){return e.outEdges(t.v,t.w)}))}function Me(e,n,r){for(var a=[],t=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)R(e,n,r,i);for(;i=t.dequeue();)R(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(R(e,n,r,i,!0));break}}}return a}function R(e,n,r,a,t){var o=t?[]:void 0;return f.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&o.push({v:i.v,w:i.w}),d.out-=u,S(n,r,d)}),f.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,S(n,r,c)}),e.removeNode(a.v),o}function Fe(e,n){var r=new E.Graph,a=0,t=0;f.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var o=k(t+a+3).map(function(){return new _e}),i=a+1;return f.forEach(r.nodes(),function(u){S(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function S(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Te(e,r(e)):je(e);f.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,V("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function je(e){var n=[],r={},a={};function t(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,f.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):t(i.w)}),delete r[o])}return f.forEach(e.nodes(),t),n}function Ve(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function x(e,n,r,a){var t;do t=V(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function Ge(e){var n=new E.Graph().setGraph(e.graph());return f.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function K(e){var n=new E.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return f.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function U(e,n){var r=e.x,a=e.y,t=n.x-r,o=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(o)*i>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,c=u):(t<0&&(i=-i),d=i,c=i*o/t),{x:r+d,y:a+c}}function _(e){var n=l.map(k(Q(e)+1),function(){return[]});return f.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;f.isUndefined(t)||(n[t][a.order]=r)}),n}function Be(e){var n=l.min(l.map(e.nodes(),function(r){return e.node(r).rank}));f.forEach(e.nodes(),function(r){var a=e.node(r);l.has(a,"rank")&&(a.rank-=n)})}function Ae(e){var n=l.min(l.map(e.nodes(),function(o){return e.node(o).rank})),r=[];f.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var a=0,t=e.graph().nodeRankFactor;f.forEach(r,function(o,i){f.isUndefined(o)&&i%t!==0?--a:a&&f.forEach(o,function(u){e.node(u).rank+=a})})}function D(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),x(e,"border",t,n)}function Q(e){return g(l.map(e.nodes(),function(n){var r=e.node(n).rank;if(!f.isUndefined(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function qe(e,n){return n()}function Ue(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&f.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,i=t.maxRank+1;o<i;++o)$(e,"borderLeft","_bl",r,t,o),$(e,"borderRight","_br",r,t,o)}}f.forEach(e.children(),n)}function $(e,n,r,a,t,o){var i={width:0,height:0,rank:o,borderType:n},u=t[n][o-1],d=x(e,"border",i,r);t[n][o]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function De(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ee(e)}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),ee(e))}function ee(e){f.forEach(e.nodes(),function(n){W(e.node(n))}),f.forEach(e.edges(),function(n){W(e.edge(n))})}function W(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f.forEach(e.nodes(),function(n){I(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,I),Object.prototype.hasOwnProperty.call(r,"y")&&I(r)})}function I(e){e.y=-e.y}function ze(e){f.forEach(e.nodes(),function(n){T(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,T),Object.prototype.hasOwnProperty.call(r,"x")&&T(r)})}function T(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f.forEach(e.edges(),function(n){He(e,n)})}function He(e,n){var r=n.v,a=e.node(r).rank,t=n.w,o=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(o!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<o;++h,++a)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},s=x(e,"edge",c,"_d"),a===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:u.weight},i)}}function Je(e){f.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function G(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var o=l.min(l.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),t.rank=o}f.forEach(e.sources(),r)}function N(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ne(e){var n=new E.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,o;Ze(n,e)<a;)t=Ke(n,e),o=n.hasNode(t.v)?N(e,t):-N(e,t),Qe(n,e,o);return n}function Ze(e,n){function r(a){f.forEach(n.nodeEdges(a),function(t){var o=t.v,i=a===o?t.w:o;!e.hasNode(i)&&!N(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return f.forEach(e.nodes(),r),e.nodeCount()}function Ke(e,n){return j(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return N(n,r)})}function Qe(e,n,r){f.forEach(e.nodes(),function(a){n.node(a).rank+=r})}function en(){}en.prototype=new Error;function re(e,n,r){m.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],o={};return f.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ae(e,i,r==="post",o,a,t)}),t}function ae(e,n,r,a,t,o){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||o.push(n),f.forEach(t(n),function(i){ae(e,i,r,a,t,o)}),r&&o.push(n))}function nn(e,n){return re(e,n,"post")}function rn(e,n){return re(e,n,"pre")}y.initLowLimValues=A;y.initCutValues=B;y.calcCutValue=te;y.leaveEdge=ie;y.enterEdge=ue;y.exchangeEdges=fe;function y(e){e=Ge(e),G(e);var n=ne(e);A(n),B(n,e);for(var r,a;r=ie(n);)a=ue(n,e,r),fe(n,e,r,a)}function B(e,n){var r=nn(e,e.nodes());r=r.slice(0,r.length-1),f.forEach(r,function(a){an(e,n,a)})}function an(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=te(e,n,r)}function te(e,n,r){var a=e.node(r),t=a.parent,o=!0,i=n.edge(r,t),u=0;return i||(o=!1,i=n.edge(t,r)),u=i.weight,f.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===o,v=n.edge(d).weight;if(u+=h?v:-v,on(e,r,s)){var p=e.edge(r,s).cutvalue;u+=h?-p:p}}}),u}function A(e,n){arguments.length<2&&(n=e.nodes()[0]),oe(e,{},1,n)}function oe(e,n,r,a,t){var o=r,i=e.node(a);return n[a]=!0,f.forEach(e.neighbors(a),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=oe(e,n,r,u,a))}),i.low=o,i.lim=r++,t?i.parent=t:delete i.parent,r}function ie(e){return l.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ue(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var o=e.node(a),i=e.node(t),u=o,d=!1;o.lim>i.lim&&(u=i,d=!0);var c=f.filter(n.edges(),function(s){return d===z(e,e.node(s.v),u)&&d!==z(e,e.node(s.w),u)});return j(c,function(s){return N(n,s)})}function fe(e,n,r,a){var t=r.v,o=r.w;e.removeEdge(t,o),e.setEdge(a.v,a.w,{}),A(e),B(e,n),tn(e,n)}function tn(e,n){var r=l.find(e.nodes(),function(t){return!n.node(t).parent}),a=rn(e,r);a=a.slice(1),f.forEach(a,function(t){var o=e.node(t).parent,i=n.edge(t,o),u=!1;i||(i=n.edge(o,t),u=!0),n.node(t).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function on(e,n,r){return e.hasEdge(n,r)}function z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function un(e){switch(e.graph().ranker){case"network-simplex":X(e);break;case"tight-tree":dn(e);break;case"longest-path":fn(e);break;default:X(e)}}var fn=G;function dn(e){G(e),ne(e)}function X(e){y(e)}function cn(e){var n=x(e,"root",{},"_root"),r=sn(e),a=g(f.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,f.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var o=hn(e)+1;f.forEach(e.children(),function(i){de(e,n,t,o,a,r,i)}),e.graph().nodeRankFactor=t}function de(e,n,r,a,t,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=D(e,"_bt"),c=D(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,f.forEach(u,function(h){de(e,n,r,a,t,o,h);var v=e.node(h),p=v.borderTop?v.borderTop:h,w=v.borderBottom?v.borderBottom:h,b=v.borderTop?a:2*a,O=p!==w?1:t-o[i]+1;e.setEdge(d,p,{weight:b,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:b,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+o[i]})}function sn(e){var n={};function r(a,t){var o=e.children(a);o&&o.length&&f.forEach(o,function(i){r(i,t+1)}),n[a]=t}return f.forEach(e.children(),function(a){r(a,1)}),n}function hn(e){return f.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function vn(e,n,r){var a={},t;f.forEach(r,function(o){for(var i=e.parent(o),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function pn(e,n,r){var a=wn(e),t=new E.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return f.forEach(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(o),t.setParent(o,u||a),f.forEach(e[r](o),function(d){var c=d.v===o?d.w:d.v,s=t.edge(c,o),h=f.isUndefined(s)?0:s.weight;t.setEdge(c,o,{weight:e.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&t.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function wn(e){for(var n;e.hasNode(n=V("_root")););return n}function mn(e,n){for(var r=0,a=1;a<n.length;++a)r+=bn(e,n[a-1],n[a]);return r}function bn(e,n,r){for(var a=Ce(r,l.map(r,function(c,s){return s})),t=l.flatten(l.map(n,function(c){return L(l.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=l.map(new Array(i),function(){return 0}),d=0;return f.forEach(t.forEach(function(c){var s=c.pos+o;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function En(e){var n={},r=f.filter(e.nodes(),function(u){return!e.children(u).length}),a=g(l.map(r,function(u){return e.node(u).rank})),t=l.map(k(a+1),function(){return[]});function o(u){if(!l.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),f.forEach(e.successors(u),o)}}var i=L(r,function(u){return e.node(u).rank});return f.forEach(i,o),t}function gn(e,n){return l.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=f.reduce(a,function(o,i){var u=e.edge(i),d=e.node(i.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function yn(e,n){var r={};f.forEach(e,function(t,o){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};f.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f.forEach(n.edges(),function(t){var o=r[t.v],i=r[t.w];!f.isUndefined(o)&&!f.isUndefined(i)&&(i.indegree++,o.out.push(r[t.w]))});var a=f.filter(r,function(t){return!t.indegree});return kn(a)}function kn(e){var n=[];function r(o){return function(i){i.merged||(f.isUndefined(i.barycenter)||f.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&xn(o,i)}}function a(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),f.forEach(t.in.reverse(),r(t)),f.forEach(t.out,a(t))}return l.map(f.filter(n,function(o){return!o.merged}),function(o){return P(o,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function On(e,n){var r=Ye(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=L(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,d=0;a.sort(Nn(!!n)),d=H(o,t,d),f.forEach(a,function(s){d+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=H(o,t,d)});var c={vs:l.flatten(o)};return u&&(c.barycenter=i/u,c.weight=u),c}function H(e,n,r){for(var a;n.length&&(a=l.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function Nn(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ce(e,n,r,a){var t=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};i&&(t=f.filter(t,function(w){return w!==i&&w!==u}));var c=gn(e,t);f.forEach(c,function(w){if(e.children(w.v).length){var b=ce(e,w.v,r,a);d[w.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&Pn(w,b)}});var s=yn(c,r);Ln(s,d);var h=On(s,a);if(i&&(h.vs=l.flatten([i,h.vs,u]),e.predecessors(i).length)){var v=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ln(e,n){f.forEach(e,function(r){r.vs=l.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function Pn(e,n){f.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Cn(e){var n=Q(e),r=J(e,k(1,n+1),"inEdges"),a=J(e,k(n-1,-1,-1),"outEdges"),t=En(e);Z(e,t);for(var o=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){_n(u%2?r:a,u%4>=2),t=_(e);var c=mn(e,t);c<o&&(d=0,i=he.cloneDeep(t),o=c)}Z(e,i)}function J(e,n,r){return l.map(n,function(a){return pn(e,a,r)})}function _n(e,n){var r=new E.Graph;f.forEach(e,function(a){var t=a.graph().root,o=ce(a,t,r,n);f.forEach(o.vs,function(i,u){a.node(i).order=u}),vn(a,r,o.vs)})}function Z(e,n){f.forEach(n,function(r){f.forEach(r,function(a,t){e.node(a).order=t})})}function Rn(e){var n=Tn(e);f.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,o=In(e,n,t.v,t.w),i=o.path,u=o.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function In(e,n,r,a){var t=[],o=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)o.push(d);return{path:t.concat(o.reverse()),lca:c}}function Tn(e){var n={},r=0;function a(t){var o=r;f.forEach(e.children(t),a),n[t]={low:o,lim:r++}}return f.forEach(e.children(),a),n}function Mn(e,n){var r={};function a(t,o){var i=0,u=0,d=t.length,c=l.last(o);return f.forEach(o,function(s,h){var v=Sn(e,s),p=v?e.node(v).order:d;(v||s===c)&&(f.forEach(o.slice(u,h+1),function(w){f.forEach(e.predecessors(w),function(b){var O=e.node(b),Y=O.order;(Y<i||p<Y)&&!(O.dummy&&e.node(w).dummy)&&se(r,b,w)})}),u=h+1,i=p)}),o}return f.reduce(n,a),r}function Fn(e,n){var r={};function a(o,i,u,d,c){var s;f.forEach(k(i,u),function(h){s=o[h],e.node(s).dummy&&f.forEach(e.predecessors(s),function(v){var p=e.node(v);p.dummy&&(p.order<d||p.order>c)&&se(r,v,s)})})}function t(o,i){var u=-1,d,c=0;return f.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var v=e.predecessors(s);v.length&&(d=e.node(v[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,o.length)}),i}return f.reduce(n,t),r}function Sn(e,n){if(e.node(n).dummy)return l.find(e.predecessors(n),function(r){return e.node(r).dummy})}function se(e,n,r){if(n>r){var a=n;n=r,r=a}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var t=e[n];Object.defineProperty(t,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function jn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Vn(e,n,r,a){var t={},o={},i={};return f.forEach(n,function(u){f.forEach(u,function(d,c){t[d]=d,o[d]=d,i[d]=c})}),f.forEach(n,function(u){var d=-1;f.forEach(u,function(c){var s=a(c);if(s.length){s=L(s,function(b){return i[b]});for(var h=(s.length-1)/2,v=Math.floor(h),p=Math.ceil(h);v<=p;++v){var w=s[v];o[c]===c&&d<i[w]&&!jn(r,c,w)&&(o[w]=c,o[c]=t[c]=t[w],d=i[w])}}})}),{root:t,align:o}}function Gn(e,n,r,a,t){var o={},i=Bn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,v){for(var p=i.nodes(),w=p.pop(),b={};w;)b[w]?h(w):(b[w]=!0,p.push(w),p=p.concat(v(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(v,p){return Math.max(v,o[p.v]+i.edge(p))},0)}function s(h){var v=i.outEdges(h).reduce(function(w,b){return Math.min(w,o[b.w]-i.edge(b))},Number.POSITIVE_INFINITY),p=e.node(h);v!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),f.forEach(a,function(h){o[h]=o[r[h]]}),o}function Bn(e,n,r,a){var t=new E.Graph,o=e.graph(),i=Dn(o.nodesep,o.edgesep,a);return f.forEach(n,function(u){var d;f.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],v=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),v||0))}d=c})}),t}function An(e,n){return j(f.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return ve(r,function(o,i){var u=$n(e,i)/2;a=Math.max(o+u,a),t=Math.min(o-u,t)}),a-t})}function Yn(e,n){var r=f.values(n),a=l.min(r),t=g(r);f.forEach(["u","d"],function(o){f.forEach(["l","r"],function(i){var u=o+i,d=e[u],c;if(d!==n){var s=f.values(d);c=i==="l"?a-l.min(s):t-g(s),c&&(e[u]=C(d,function(h){return h+c}))}})})}function qn(e,n){return C(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=L(l.map(e,a));return(t[1]+t[2])/2})}function Un(e){var n=_(e),r=m.merge(Mn(e,n),Fn(e,n)),a={},t;f.forEach(["u","d"],function(i){t=i==="u"?n:f.values(n).reverse(),f.forEach(["l","r"],function(u){u==="r"&&(t=l.map(t,function(h){return f.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=Vn(e,t,r,d),s=Gn(e,t,c.root,c.align,u==="r");u==="r"&&(s=C(s,function(h){return-h})),a[i+u]=s})});var o=An(e,a);return Yn(a,o),qn(a,e.graph().align)}function Dn(e,n,r){return function(a,t,o){var i=a.node(t),u=a.node(o),d=0,c;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function $n(e,n){return e.node(n).width}function Wn(e){e=K(e),zn(e),pe(Un(e),function(n,r){e.node(r).x=n})}function zn(e){var n=_(e),r=e.graph().ranksep,a=0;f.forEach(n,function(t){var o=g(l.map(t,function(i){return e.node(i).height}));f.forEach(t,function(i){e.node(i).y=a+o/2}),a+=o+r})}function Xn(e,n){var r=qe;r("layout",()=>{var a=r(" buildLayoutGraph",()=>or(e));r(" runLayout",()=>Hn(a,r)),r(" updateInputGraph",()=>Jn(e,a))})}function Hn(e,n){n(" makeSpaceForEdgeLabels",()=>ir(e)),n(" removeSelfEdges",()=>pr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>cn(e)),n(" rank",()=>un(K(e))),n(" injectEdgeLabelProxies",()=>ur(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>fr(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ue(e)),n(" order",()=>Cn(e)),n(" insertSelfEdges",()=>wr(e)),n(" adjustCoordinateSystem",()=>De(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>mr(e)),n(" removeBorderNodes",()=>vr(e)),n(" normalize.undo",()=>Je(e)),n(" fixupEdgeLabelCoords",()=>hr(e)),n(" undoCoordinateSystem",()=>$e(e)),n(" translateGraph",()=>cr(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>lr(e)),n(" acyclic.undo",()=>Ve(e))}function Jn(e,n){f.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),f.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Zn=["nodesep","edgesep","ranksep","marginx","marginy"],Kn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Qn=["acyclicer","ranker","rankdir","align"],er=["width","height"],nr={width:0,height:0},rr=["minlen","weight","width","height","labeloffset"],ar={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},tr=["labelpos"];function or(e){var n=new E.Graph({multigraph:!0,compound:!0}),r=F(e.graph());return n.setGraph(m.merge({},Kn,M(r,Zn),P(r,Qn))),f.forEach(e.nodes(),function(a){var t=F(e.node(a));n.setNode(a,l.defaults(M(t,er),nr)),n.setParent(a,e.parent(a))}),f.forEach(e.edges(),function(a){var t=F(e.edge(a));n.setEdge(a,m.merge({},ar,M(t,rr),P(t,tr)))}),n}function ir(e){var n=e.graph();n.ranksep/=2,f.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function ur(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),o={rank:(t.rank-a.rank)/2+a.rank,e:n};x(e,"edge-proxy",o,"_ep")}})}function fr(e){var n=0;f.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=g(n,a.maxRank))}),e.graph().maxRank=n}function dr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function cr(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function d(c){var s=c.x,h=c.y,v=c.width,p=c.height;n=Math.min(n,s-v/2),r=Math.max(r,s+v/2),a=Math.min(a,h-p/2),t=Math.max(t,h+p/2)}f.forEach(e.nodes(),function(c){d(e.node(c))}),f.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),n-=i,a-=u,f.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),f.forEach(e.edges(),function(c){var s=e.edge(c);f.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),o.width=r-n+i,o.height=t-a+u}function sr(e){f.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=t,i=a),r.points.unshift(U(a,o)),r.points.push(U(t,i))})}function hr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function lr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function vr(e){f.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),o=e.node(l.last(r.borderLeft)),i=e.node(l.last(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(t.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),f.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function pr(e){f.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function wr(e){var n=_(e);f.forEach(n,function(r){var a=0;f.forEach(r,function(t,o){var i=e.node(t);i.order=o+a,f.forEach(i.selfEdges,function(u){x(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function mr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,o=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:o-u},{x:t+5*i/6,y:o-u},{x:t+i,y:o},{x:t+5*i/6,y:o+u},{x:t+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function M(e,n){return C(P(e,n),Number)}function F(e){var n={};return f.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Xn;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { G as g } from "./graph-
|
|
2
|
-
import { n as ce, o as le, e as z, d as ee, j as F, m as Te, p as Ie, a as Me, q as je, c as f, i as m, f as R, v as x, r as M } from "./_baseUniq-
|
|
3
|
-
import { f as O, b as he, a as Se, c as Fe, d as Ve, t as V, m as w, e as P, h as ve, g as X, l as T, i as Be } from "./_basePickBy-
|
|
4
|
-
import {
|
|
5
|
-
import { c as Ue } from "./cloneDeep-
|
|
1
|
+
import { G as g } from "./graph-Bl9cAjm8.js";
|
|
2
|
+
import { n as ce, o as le, e as z, d as ee, j as F, m as Te, p as Ie, a as Me, q as je, c as f, i as m, f as R, v as x, r as M } from "./_baseUniq-Fo_obzds.js";
|
|
3
|
+
import { f as O, b as he, a as Se, c as Fe, d as Ve, t as V, m as w, e as P, h as ve, g as X, l as T, i as Be } from "./_basePickBy-B1R94gYg.js";
|
|
4
|
+
import { by as Ae, bz as Ye, bw as Ge, aU as De, bA as qe, aY as pe, aX as we, bi as $e, aT as q, aC as We, a_ as ze, aE as Xe, bB as $ } from "./index-D_kILrIh.js";
|
|
5
|
+
import { c as Ue } from "./cloneDeep-BKtU4IKb.js";
|
|
6
6
|
function He(e) {
|
|
7
|
-
return Ae(
|
|
8
|
-
}
|
|
9
|
-
function Ze(e, n) {
|
|
10
|
-
return e == null ? e : Ye(e, ce(n), De);
|
|
7
|
+
return Ae(Ye(e, void 0, O), e + "");
|
|
11
8
|
}
|
|
12
9
|
function Je(e, n) {
|
|
10
|
+
return e == null ? e : Ge(e, ce(n), De);
|
|
11
|
+
}
|
|
12
|
+
function Ze(e, n) {
|
|
13
13
|
return e && le(e, ce(n));
|
|
14
14
|
}
|
|
15
15
|
function Ke(e, n) {
|
|
@@ -62,7 +62,7 @@ function rn(e, n, r) {
|
|
|
62
62
|
} : i;
|
|
63
63
|
}) : n = [pe];
|
|
64
64
|
var t = -1;
|
|
65
|
-
n = F(n,
|
|
65
|
+
n = F(n, $e(z));
|
|
66
66
|
var a = Fe(e, function(i, o, u) {
|
|
67
67
|
var d = F(n, function(s) {
|
|
68
68
|
return s(i);
|
|
@@ -91,7 +91,7 @@ function dn(e) {
|
|
|
91
91
|
return t && typeof t != "number" && q(n, r, t) && (r = t = void 0), n = V(n), r === void 0 ? (r = n, n = 0) : r = V(r), t = t === void 0 ? n < r ? 1 : -1 : V(t), un(n, r, t);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
var E = dn(), _ =
|
|
94
|
+
var E = dn(), _ = We(function(e, n) {
|
|
95
95
|
if (e == null)
|
|
96
96
|
return [];
|
|
97
97
|
var r = n.length;
|
|
@@ -169,10 +169,10 @@ function B(e, n, r, t, a) {
|
|
|
169
169
|
var i = a ? [] : void 0;
|
|
170
170
|
return f(e.inEdges(t.v), function(o) {
|
|
171
171
|
var u = e.edge(o), d = e.node(o.v);
|
|
172
|
-
a && i.push({ v: o.v, w: o.w }), d.out -= u,
|
|
172
|
+
a && i.push({ v: o.v, w: o.w }), d.out -= u, W(n, r, d);
|
|
173
173
|
}), f(e.outEdges(t.v), function(o) {
|
|
174
174
|
var u = e.edge(o), d = o.w, s = e.node(d);
|
|
175
|
-
s.in -= u,
|
|
175
|
+
s.in -= u, W(n, r, s);
|
|
176
176
|
}), e.removeNode(t.v), i;
|
|
177
177
|
}
|
|
178
178
|
function bn(e, n) {
|
|
@@ -187,10 +187,10 @@ function bn(e, n) {
|
|
|
187
187
|
return new ln();
|
|
188
188
|
}), o = t + 1;
|
|
189
189
|
return f(r.nodes(), function(u) {
|
|
190
|
-
|
|
190
|
+
W(i, o, r.node(u));
|
|
191
191
|
}), { graph: r, buckets: i, zeroIdx: o };
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function W(e, n, r) {
|
|
194
194
|
r.out ? r.in ? e[r.out - r.in + n].enqueue(r) : e[e.length - 1].enqueue(r) : e[0].enqueue(r);
|
|
195
195
|
}
|
|
196
196
|
function mn(e) {
|
|
@@ -367,13 +367,13 @@ function A(e) {
|
|
|
367
367
|
}
|
|
368
368
|
function _n(e) {
|
|
369
369
|
f(e.nodes(), function(n) {
|
|
370
|
-
|
|
370
|
+
Y(e.node(n));
|
|
371
371
|
}), f(e.edges(), function(n) {
|
|
372
372
|
var r = e.edge(n);
|
|
373
|
-
f(r.points,
|
|
373
|
+
f(r.points, Y), Object.prototype.hasOwnProperty.call(r, "x") && Y(r);
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Y(e) {
|
|
377
377
|
var n = e.x;
|
|
378
378
|
e.x = e.y, e.y = n;
|
|
379
379
|
}
|
|
@@ -405,7 +405,7 @@ function Mn(e) {
|
|
|
405
405
|
a = e.successors(n)[0], e.removeNode(n), t.points.push({ x: r.x, y: r.y }), r.dummy === "edge-label" && (t.x = r.x, t.y = r.y, t.width = r.width, t.height = r.height), n = a, r = e.node(n);
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function J(e) {
|
|
409
409
|
var n = {};
|
|
410
410
|
function r(t) {
|
|
411
411
|
var a = e.node(t);
|
|
@@ -477,25 +477,25 @@ function An(e, n) {
|
|
|
477
477
|
return ke(e, n, "pre");
|
|
478
478
|
}
|
|
479
479
|
k.initLowLimValues = K;
|
|
480
|
-
k.initCutValues =
|
|
480
|
+
k.initCutValues = Z;
|
|
481
481
|
k.calcCutValue = Ee;
|
|
482
482
|
k.leaveEdge = Ne;
|
|
483
483
|
k.enterEdge = Le;
|
|
484
484
|
k.exchangeEdges = Pe;
|
|
485
485
|
function k(e) {
|
|
486
|
-
e = kn(e),
|
|
486
|
+
e = kn(e), J(e);
|
|
487
487
|
var n = ye(e);
|
|
488
|
-
K(n),
|
|
488
|
+
K(n), Z(n, e);
|
|
489
489
|
for (var r, t; r = Ne(n); )
|
|
490
490
|
t = Le(n, e, r), Pe(n, e, r, t);
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Z(e, n) {
|
|
493
493
|
var r = Bn(e, e.nodes());
|
|
494
494
|
r = r.slice(0, r.length - 1), f(r, function(t) {
|
|
495
|
-
|
|
495
|
+
Yn(e, n, t);
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Yn(e, n, r) {
|
|
499
499
|
var t = e.node(r), a = t.parent;
|
|
500
500
|
e.edge(r, a).cutvalue = Ee(e, n, r);
|
|
501
501
|
}
|
|
@@ -540,9 +540,9 @@ function Le(e, n, r) {
|
|
|
540
540
|
}
|
|
541
541
|
function Pe(e, n, r, t) {
|
|
542
542
|
var a = r.v, i = r.w;
|
|
543
|
-
e.removeEdge(a, i), e.setEdge(t.v, t.w, {}), K(e),
|
|
543
|
+
e.removeEdge(a, i), e.setEdge(t.v, t.w, {}), K(e), Z(e, n), Gn(e, n);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Gn(e, n) {
|
|
546
546
|
var r = X(e.nodes(), function(a) {
|
|
547
547
|
return !n.node(a).parent;
|
|
548
548
|
}), t = An(e, r);
|
|
@@ -563,18 +563,18 @@ function qn(e) {
|
|
|
563
563
|
ue(e);
|
|
564
564
|
break;
|
|
565
565
|
case "tight-tree":
|
|
566
|
-
|
|
566
|
+
Wn(e);
|
|
567
567
|
break;
|
|
568
568
|
case "longest-path":
|
|
569
|
-
|
|
569
|
+
$n(e);
|
|
570
570
|
break;
|
|
571
571
|
default:
|
|
572
572
|
ue(e);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
|
|
575
|
+
var $n = J;
|
|
576
|
+
function Wn(e) {
|
|
577
|
+
J(e), ye(e);
|
|
578
578
|
}
|
|
579
579
|
function ue(e) {
|
|
580
580
|
k(e);
|
|
@@ -638,7 +638,7 @@ function Hn(e) {
|
|
|
638
638
|
t.nestingEdge && e.removeEdge(r);
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Jn(e, n, r) {
|
|
642
642
|
var t = {}, a;
|
|
643
643
|
f(r, function(i) {
|
|
644
644
|
for (var o = e.parent(i), u, d; o; ) {
|
|
@@ -650,7 +650,7 @@ function Zn(e, n, r) {
|
|
|
650
650
|
}
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Zn(e, n, r) {
|
|
654
654
|
var t = Kn(e), a = new g({ compound: !0 }).setGraph({ root: t }).setDefaultNodeLabel(function(i) {
|
|
655
655
|
return e.node(i);
|
|
656
656
|
});
|
|
@@ -868,7 +868,7 @@ function fr(e) {
|
|
|
868
868
|
}
|
|
869
869
|
function se(e, n, r) {
|
|
870
870
|
return w(n, function(t) {
|
|
871
|
-
return
|
|
871
|
+
return Zn(e, t, r);
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
function cr(e, n) {
|
|
@@ -877,7 +877,7 @@ function cr(e, n) {
|
|
|
877
877
|
var a = t.graph().root, i = Re(t, a, r, n);
|
|
878
878
|
f(i.vs, function(o, u) {
|
|
879
879
|
t.node(o).order = u;
|
|
880
|
-
}),
|
|
880
|
+
}), Jn(t, r, i.vs);
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
883
|
function fe(e, n) {
|
|
@@ -1054,7 +1054,7 @@ function kr(e, n, r, t) {
|
|
|
1054
1054
|
function xr(e, n) {
|
|
1055
1055
|
return U(x(n), function(r) {
|
|
1056
1056
|
var t = Number.NEGATIVE_INFINITY, a = Number.POSITIVE_INFINITY;
|
|
1057
|
-
return
|
|
1057
|
+
return Je(r, function(i, o) {
|
|
1058
1058
|
var u = Pr(e, o) / 2;
|
|
1059
1059
|
t = Math.max(i + u, t), a = Math.min(i - u, a);
|
|
1060
1060
|
}), t - a;
|
|
@@ -1083,7 +1083,7 @@ function Or(e, n) {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
function Nr(e) {
|
|
1086
|
-
var n = S(e), r =
|
|
1086
|
+
var n = S(e), r = $(pr(e, n), wr(e, n)), t = {}, a;
|
|
1087
1087
|
f(["u", "d"], function(o) {
|
|
1088
1088
|
a = o === "u" ? n : x(n).reverse(), f(["l", "r"], function(u) {
|
|
1089
1089
|
u === "r" && (a = w(a, function(l) {
|
|
@@ -1126,7 +1126,7 @@ function Pr(e, n) {
|
|
|
1126
1126
|
return e.node(n).width;
|
|
1127
1127
|
}
|
|
1128
1128
|
function Cr(e) {
|
|
1129
|
-
e = be(e), Rr(e),
|
|
1129
|
+
e = be(e), Rr(e), Ze(Nr(e), function(n, r) {
|
|
1130
1130
|
e.node(r).x = n;
|
|
1131
1131
|
});
|
|
1132
1132
|
}
|
|
@@ -1146,12 +1146,12 @@ function Rr(e) {
|
|
|
1146
1146
|
function at(e, n) {
|
|
1147
1147
|
var r = Nn;
|
|
1148
1148
|
r("layout", () => {
|
|
1149
|
-
var t = r(" buildLayoutGraph", () =>
|
|
1149
|
+
var t = r(" buildLayoutGraph", () => Yr(e));
|
|
1150
1150
|
r(" runLayout", () => _r(t, r)), r(" updateInputGraph", () => Tr(e, t));
|
|
1151
1151
|
});
|
|
1152
1152
|
}
|
|
1153
1153
|
function _r(e, n) {
|
|
1154
|
-
n(" makeSpaceForEdgeLabels", () =>
|
|
1154
|
+
n(" makeSpaceForEdgeLabels", () => Gr(e)), n(" removeSelfEdges", () => Jr(e)), n(" acyclic", () => mn(e)), n(" nestingGraph.run", () => zn(e)), n(" rank", () => qn(be(e))), n(" injectEdgeLabelProxies", () => Dr(e)), n(" removeEmptyRanks", () => En(e)), n(" nestingGraph.cleanup", () => Hn(e)), n(" normalizeRanks", () => xn(e)), n(" assignRankMinMax", () => qr(e)), n(" removeEdgeLabelProxies", () => $r(e)), n(" normalize.run", () => Tn(e)), n(" parentDummyChains", () => lr(e)), n(" addBorderSegments", () => Ln(e)), n(" order", () => fr(e)), n(" insertSelfEdges", () => Zr(e)), n(" adjustCoordinateSystem", () => Pn(e)), n(" position", () => Cr(e)), n(" positionSelfEdges", () => Kr(e)), n(" removeBorderNodes", () => Hr(e)), n(" normalize.undo", () => Mn(e)), n(" fixupEdgeLabelCoords", () => Xr(e)), n(" undoCoordinateSystem", () => Cn(e)), n(" translateGraph", () => Wr(e)), n(" assignNodeIntersects", () => zr(e)), n(" reversePoints", () => Ur(e)), n(" acyclic.undo", () => yn(e));
|
|
1155
1155
|
}
|
|
1156
1156
|
function Tr(e, n) {
|
|
1157
1157
|
f(e.nodes(), function(r) {
|
|
@@ -1170,22 +1170,22 @@ var Ir = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], Mr = { ranksep
|
|
|
1170
1170
|
labeloffset: 10,
|
|
1171
1171
|
labelpos: "r"
|
|
1172
1172
|
}, Ar = ["labelpos"];
|
|
1173
|
-
function
|
|
1173
|
+
function Yr(e) {
|
|
1174
1174
|
var n = new g({ multigraph: !0, compound: !0 }), r = D(e.graph());
|
|
1175
1175
|
return n.setGraph(
|
|
1176
|
-
|
|
1176
|
+
$({}, Mr, G(r, Ir), I(r, jr))
|
|
1177
1177
|
), f(e.nodes(), function(t) {
|
|
1178
1178
|
var a = D(e.node(t));
|
|
1179
|
-
n.setNode(t, Be(
|
|
1179
|
+
n.setNode(t, Be(G(a, Sr), Fr)), n.setParent(t, e.parent(t));
|
|
1180
1180
|
}), f(e.edges(), function(t) {
|
|
1181
1181
|
var a = D(e.edge(t));
|
|
1182
1182
|
n.setEdge(
|
|
1183
1183
|
t,
|
|
1184
|
-
|
|
1184
|
+
$({}, Br, G(a, Vr), I(a, Ar))
|
|
1185
1185
|
);
|
|
1186
1186
|
}), n;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Gr(e) {
|
|
1189
1189
|
var n = e.graph();
|
|
1190
1190
|
n.ranksep /= 2, f(e.edges(), function(r) {
|
|
1191
1191
|
var t = e.edge(r);
|
|
@@ -1208,13 +1208,13 @@ function qr(e) {
|
|
|
1208
1208
|
t.borderTop && (t.minRank = e.node(t.borderTop).rank, t.maxRank = e.node(t.borderBottom).rank, n = y(n, t.maxRank));
|
|
1209
1209
|
}), e.graph().maxRank = n;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function $r(e) {
|
|
1212
1212
|
f(e.nodes(), function(n) {
|
|
1213
1213
|
var r = e.node(n);
|
|
1214
1214
|
r.dummy === "edge-proxy" && (e.edge(r.e).labelRank = r.rank, e.removeNode(n));
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Wr(e) {
|
|
1218
1218
|
var n = Number.POSITIVE_INFINITY, r = 0, t = Number.POSITIVE_INFINITY, a = 0, i = e.graph(), o = i.marginx || 0, u = i.marginy || 0;
|
|
1219
1219
|
function d(s) {
|
|
1220
1220
|
var c = s.x, l = s.y, h = s.width, v = s.height;
|
|
@@ -1271,7 +1271,7 @@ function Hr(e) {
|
|
|
1271
1271
|
e.node(n).dummy === "border" && e.removeNode(n);
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Jr(e) {
|
|
1275
1275
|
f(e.edges(), function(n) {
|
|
1276
1276
|
if (n.v === n.w) {
|
|
1277
1277
|
var r = e.node(n.v);
|
|
@@ -1279,7 +1279,7 @@ function Zr(e) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
});
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Zr(e) {
|
|
1283
1283
|
var n = S(e);
|
|
1284
1284
|
f(n, function(r) {
|
|
1285
1285
|
var t = 0;
|
|
@@ -1318,7 +1318,7 @@ function Kr(e) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function G(e, n) {
|
|
1322
1322
|
return j(I(e, n), Number);
|
|
1323
1323
|
}
|
|
1324
1324
|
function D(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aN as j, aO as p, aP as w, aQ as q, aR as k } from "./index-D_kILrIh.js";
|
|
2
2
|
import { i as D } from "./init-DjUOC4st.js";
|
|
3
3
|
import { e as g, f as F, a as P, b as z } from "./defaultLocale-D7EN2tov.js";
|
|
4
4
|
function M(n, r) {
|
|
@@ -39,14 +39,14 @@ function R(n) {
|
|
|
39
39
|
function I() {
|
|
40
40
|
return 0;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function O(n) {
|
|
43
43
|
return n === null ? NaN : +n;
|
|
44
44
|
}
|
|
45
45
|
const V = R(M), $ = V.right;
|
|
46
|
-
R(
|
|
47
|
-
const x = Math.sqrt(50),
|
|
46
|
+
R(O).center;
|
|
47
|
+
const x = Math.sqrt(50), Q = Math.sqrt(10), T = Math.sqrt(2);
|
|
48
48
|
function v(n, r, t) {
|
|
49
|
-
const e = (r - n) / Math.max(0, t), u = Math.floor(Math.log10(e)), f = e / Math.pow(10, u), a = f >= x ? 10 : f >=
|
|
49
|
+
const e = (r - n) / Math.max(0, t), u = Math.floor(Math.log10(e)), f = e / Math.pow(10, u), a = f >= x ? 10 : f >= Q ? 5 : f >= T ? 2 : 1;
|
|
50
50
|
let o, c, i;
|
|
51
51
|
return u < 0 ? (i = Math.pow(10, -u) / a, o = Math.round(n * i), c = Math.round(r * i), o / i < n && ++o, c / i > r && --c, i = -i) : (i = Math.pow(10, u) * a, o = Math.round(n / i), c = Math.round(r / i), o * i < n && ++o, c * i > r && --c), c < o && 0.5 <= t && t < 2 ? v(n, r, t * 2) : [o, c, i];
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./index-
|
|
1
|
+
"use strict";const m=require("./index-DIIaXWro.cjs"),j=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-DIVzfLaQ.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function L(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function O(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function T(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function C(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function E(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function G(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$2(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?E:T(r)?O:Array.isArray(r)?C:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?G:m.interpolateNumber)(n,r)}function H(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=H,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,x){return e=h,u=x,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return L(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},j.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
|
|
@@ -86,7 +86,8 @@ declare const _default: {
|
|
|
86
86
|
"ChipsInputDefaultPlaceholder": "Insert value and press enter",
|
|
87
87
|
"NotificationWidgetNoMessages": "No notifications",
|
|
88
88
|
"NotificationWidgetDismissAll": "Dismiss all",
|
|
89
|
-
"ShapeNotSupportedYet": "Shape not supported yet: "
|
|
89
|
+
"ShapeNotSupportedYet": "Shape not supported yet: ",
|
|
90
|
+
"ListSearchPlaceholder": "Search..."
|
|
90
91
|
},
|
|
91
92
|
"Notification": {
|
|
92
93
|
"DismissAll": "Dismiss all",
|
|
@@ -122,7 +123,11 @@ declare const _default: {
|
|
|
122
123
|
},
|
|
123
124
|
"MindMap": {
|
|
124
125
|
"Collapse": "Collapse",
|
|
125
|
-
"Expand": "Expand"
|
|
126
|
+
"Expand": "Expand",
|
|
127
|
+
"ZoomIn": "Zoom In",
|
|
128
|
+
"ZoomOut": "Zoom Out",
|
|
129
|
+
"Reset": "Reset View",
|
|
130
|
+
"FitAll": "Fit All"
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
133
|
;
|
|
@@ -86,7 +86,8 @@ declare const _default: {
|
|
|
86
86
|
"ChipsInputDefaultPlaceholder": "Inserisci il valore e premi invio",
|
|
87
87
|
"NotificationWidgetNoMessages": "Nessuna notifica",
|
|
88
88
|
"NotificationWidgetDismissAll": "Cancella tutto",
|
|
89
|
-
"ShapeNotSupportedYet": "Forma grafica non ancora supportata: "
|
|
89
|
+
"ShapeNotSupportedYet": "Forma grafica non ancora supportata: ",
|
|
90
|
+
"ListSearchPlaceholder": "Cerca..."
|
|
90
91
|
},
|
|
91
92
|
"Notification": {
|
|
92
93
|
"DismissAll": "Cancella tutto",
|
|
@@ -122,7 +123,11 @@ declare const _default: {
|
|
|
122
123
|
},
|
|
123
124
|
"MindMap": {
|
|
124
125
|
"Collapse": "Collassa",
|
|
125
|
-
"Expand": "Espandi"
|
|
126
|
+
"Expand": "Espandi",
|
|
127
|
+
"ZoomIn": "Zoom Avanti",
|
|
128
|
+
"ZoomOut": "Zoom Indietro",
|
|
129
|
+
"Reset": "Ripristina Vista",
|
|
130
|
+
"FitAll": "Adatta Tutto"
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
133
|
;
|