@sme.up/ketchup2 1.18.0 → 1.19.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/{_basePickBy-B1R94gYg.js → _basePickBy-DLc0xS6g.js} +29 -30
- package/dist/_basePickBy-hU15nnuu.cjs +1 -0
- package/dist/_baseUniq-Bn1jRtDY.js +614 -0
- package/dist/_baseUniq-v0HaTFyU.cjs +1 -0
- package/dist/{arc-BDhRalCq.cjs → arc-BN7cLDvU.cjs} +1 -1
- package/dist/{arc-DvVEbzqi.js → arc-aCClK8cT.js} +1 -1
- package/dist/{architecture-U656AL7Q-Bf9nK-g5.cjs → architecture-U656AL7Q-BlzcZYj0.cjs} +1 -1
- package/dist/{architecture-U656AL7Q-xWSQ4SRv.js → architecture-U656AL7Q-CGK9HO5M.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-DZV4IIVV.js → architectureDiagram-VXUJARFQ-CDlmghav.js} +3 -3
- package/dist/{architectureDiagram-VXUJARFQ-CfqXQSfK.cjs → architectureDiagram-VXUJARFQ-CxXB06ya.cjs} +1 -1
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +8 -0
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.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 +14 -2
- package/dist/basic-components/image/image-types.d.ts.map +1 -1
- package/dist/basic-components/image/image-utils.d.ts +3 -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/image-cell/image-cell-types.d.ts +20 -0
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -0
- package/dist/basic-components/image-cell/image-cell.d.ts +3 -0
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -0
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/slider/slider-types.d.ts +8 -0
- package/dist/basic-components/slider/slider-types.d.ts.map +1 -0
- package/dist/basic-components/slider/slider.d.ts +4 -0
- package/dist/basic-components/slider/slider.d.ts.map +1 -0
- package/dist/basic-components/text/text-types.d.ts +3 -0
- package/dist/basic-components/text/text-types.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-types.d.ts +0 -65
- package/dist/basic-components/text-editor/text-editor-types.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts +13 -23
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor.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/basic-components/time-picker/time-utils.d.ts +1 -1
- package/dist/basic-components/time-picker/time-utils.d.ts.map +1 -1
- package/dist/{blockDiagram-VD42YOAC-BkkV6LWv.cjs → blockDiagram-VD42YOAC-DaEdiOdS.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-tKn8dzo0.js → blockDiagram-VD42YOAC-otiz2gnO.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-RBwhYEc2.cjs → c4Diagram-YG6GDRKO-B_M0pXDI.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-B0gjRSdn.js → c4Diagram-YG6GDRKO-BqtunVbe.js} +2 -2
- package/dist/{channel-3tFaSeKk.js → channel-B3xNo1hN.js} +1 -1
- package/dist/channel-BWzBcvC1.cjs +1 -0
- package/dist/{chunk-4BX2VUAB-D3u0w2gk.js → chunk-4BX2VUAB-D0ckS2Js.js} +1 -1
- package/dist/{chunk-4BX2VUAB-Boz0nX9s.cjs → chunk-4BX2VUAB-jQAMlkG5.cjs} +1 -1
- package/dist/{chunk-55IACEB6-BpT8GkSp.js → chunk-55IACEB6-4k6jNTPh.js} +1 -1
- package/dist/{chunk-55IACEB6-DVWliiDK.cjs → chunk-55IACEB6-CYP5QeDP.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-Bmq8n4Hs.cjs → chunk-B4BG7PRW-40wFwe2_.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-DH5WVTGe.js → chunk-B4BG7PRW-C5a0R2TF.js} +4 -4
- package/dist/{chunk-DI55MBZ5-DVb6521f.cjs → chunk-DI55MBZ5-D46Nxv4C.cjs} +1 -1
- package/dist/{chunk-DI55MBZ5-CnYYh3n2.js → chunk-DI55MBZ5-Xs_EvPU9.js} +3 -3
- package/dist/{chunk-FMBD7UC4-Cou9fU3U.cjs → chunk-FMBD7UC4-JwXIwsff.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CfbK5tDm.js → chunk-FMBD7UC4-sbfIyVl_.js} +1 -1
- package/dist/{chunk-QN33PNHL-CCaezjI9.js → chunk-QN33PNHL-CZLTe-5X.js} +1 -1
- package/dist/{chunk-QN33PNHL-bDqDrxJR.cjs → chunk-QN33PNHL-D89dqsY7.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-B_jBa8Xi.js → chunk-QZHKN3VN-Bym_staK.js} +1 -1
- package/dist/{chunk-QZHKN3VN-agaSkAKB.cjs → chunk-QZHKN3VN-CnB6OkgR.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-DhehdAHS.cjs → chunk-TZMSLE5B-CzF1p6NC.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-L3IDdUIe.js → chunk-TZMSLE5B-Dp0YIOCM.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-vQpFohnj.js → classDiagram-2ON5EDUG-Bckc28LC.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-SmUoP7ZW.cjs → classDiagram-2ON5EDUG-FQVyK433.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-vQpFohnj.js → classDiagram-v2-WZHVMYZB-Bckc28LC.js} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-SmUoP7ZW.cjs → classDiagram-v2-WZHVMYZB-FQVyK433.cjs} +1 -1
- package/dist/clone-BuJ6ESdC.cjs +1 -0
- package/dist/{clone-YOXgx4TW.js → clone-gnQjFue0.js} +1 -1
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +3 -3
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-catalog.d.ts +5 -0
- package/dist/components/image-list/components/image-list-catalog.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-compact.d.ts +5 -0
- package/dist/components/image-list/components/image-list-compact.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-drill-down.d.ts +1 -1
- package/dist/components/image-list/components/image-list-drill-down.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-explorer.d.ts +5 -0
- package/dist/components/image-list/components/image-list-explorer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-modal.d.ts +5 -0
- package/dist/components/image-list/components/image-list-modal.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-slideshow.d.ts +5 -0
- package/dist/components/image-list/components/image-list-slideshow.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-tree.d.ts +5 -0
- package/dist/components/image-list/components/image-list-tree.d.ts.map +1 -0
- package/dist/components/image-list/hooks/useNavigation.d.ts +2 -2
- package/dist/components/image-list/hooks/useNavigation.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useSelection.d.ts +3 -19
- package/dist/components/image-list/hooks/useSelection.d.ts.map +1 -1
- package/dist/components/image-list/image-list-types.d.ts +95 -0
- package/dist/components/image-list/image-list-types.d.ts.map +1 -0
- package/dist/components/image-list/image-list-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-DD8g8ODW.js → cose-bilkent-S5V4N54A-Df1US9MJ.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-DdSoONjd.cjs → cose-bilkent-S5V4N54A-DsOyNFsG.cjs} +1 -1
- package/dist/{dagre-6UL2VRFP-BjOVGWYT.js → dagre-6UL2VRFP-COacgFYc.js} +6 -6
- package/dist/{dagre-6UL2VRFP-B2AtgfKt.cjs → dagre-6UL2VRFP-CXVsDZys.cjs} +1 -1
- package/dist/{diagram-PSM6KHXK-D3n0zVfd.js → diagram-PSM6KHXK-Blv6GFOJ.js} +4 -4
- package/dist/{diagram-PSM6KHXK-D_fCWLTY.cjs → diagram-PSM6KHXK-D1gDIrxH.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-CIX1p2TE.cjs → diagram-QEK2KX5R-DGRRWbUu.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-D4IV84fI.js → diagram-QEK2KX5R-DvB0VrfT.js} +3 -3
- package/dist/{diagram-S2PKOQOG-DQyeu84g.cjs → diagram-S2PKOQOG--lHmHnKW.cjs} +1 -1
- package/dist/{diagram-S2PKOQOG-D_bz5gIz.js → diagram-S2PKOQOG-DxIEa6jg.js} +3 -3
- package/dist/{erDiagram-Q2GNP2WA-FaG72Sma.js → erDiagram-Q2GNP2WA-B--ZupT4.js} +4 -4
- package/dist/{erDiagram-Q2GNP2WA-CA3u15D8.cjs → erDiagram-Q2GNP2WA-BZ1GgS-i.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-Cqs3UFBQ.js → flowDiagram-NV44I4VS-82EN5frg.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-CR_U7F3i.cjs → flowDiagram-NV44I4VS-BjclDOwK.cjs} +1 -1
- package/dist/functional-components/badge/badge-types.d.ts +0 -4
- package/dist/functional-components/badge/badge-types.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- package/dist/functional-components/layout/layout-utils.test.d.ts +2 -0
- package/dist/functional-components/layout/layout-utils.test.d.ts.map +1 -0
- package/dist/{ganttDiagram-JELNMOA3-64EHKpud.js → ganttDiagram-JELNMOA3-D8bgGv3W.js} +2 -2
- package/dist/{ganttDiagram-JELNMOA3-CN1LWzl3.cjs → ganttDiagram-JELNMOA3-Dg3gcgGP.cjs} +1 -1
- package/dist/{gitGraph-F6HP7TQM-BHF2Px3a.js → gitGraph-F6HP7TQM-CYYpWdGq.js} +1 -1
- package/dist/{gitGraph-F6HP7TQM-g-uFxP-W.cjs → gitGraph-F6HP7TQM-DAOdDfOa.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-gkspcAEl.cjs → gitGraphDiagram-NY62KEGX-CACSicRn.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-BMZgJCnk.js → gitGraphDiagram-NY62KEGX-CM2Vxzlx.js} +4 -4
- package/dist/{graph-Bl9cAjm8.js → graph-B-keMiTZ.js} +2 -3
- package/dist/graph-Mv2qv5SB.cjs +1 -0
- package/dist/{index-D_kILrIh.js → index-D5NyASqq.js} +28996 -28426
- package/dist/{index-DIIaXWro.cjs → index-dhfrnDvJ.cjs} +152 -152
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/{info-NVLQJR56-srf2MBEA.cjs → info-NVLQJR56-BlLr9dLS.cjs} +1 -1
- package/dist/info-NVLQJR56-CuxiCK8q.js +5 -0
- package/dist/{infoDiagram-WHAUD3N6-xpWWBRHb.js → infoDiagram-WHAUD3N6-BdRjW-aL.js} +2 -2
- package/dist/{infoDiagram-WHAUD3N6-DA8ixL4V.cjs → infoDiagram-WHAUD3N6-DFw2Z3_-.cjs} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-DF1jSlK-.cjs → journeyDiagram-XKPGCS4Q-DkjuGmmU.cjs} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-CiHV35D-.js → journeyDiagram-XKPGCS4Q-DlpDeIYp.js} +4 -4
- package/dist/{kanban-definition-3W4ZIXB7-BWGryLGw.js → kanban-definition-3W4ZIXB7-51Pnrmuv.js} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-gS0oGytB.cjs → kanban-definition-3W4ZIXB7-aQx57fCW.cjs} +1 -1
- package/dist/ketchup2.cjs.js +1 -1
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +16 -15
- package/dist/{layout-DqfckNJZ.js → layout-DN-p0Ppz.js} +245 -242
- package/dist/layout-TZOoqACN.cjs +1 -0
- package/dist/{linear-CDB37PVm.cjs → linear-K9FI-N_R.cjs} +1 -1
- package/dist/{linear-BwTuJ7Vo.js → linear-SvFy3H5R.js} +1 -1
- package/dist/locale/en/translation.json.d.ts +0 -1
- package/dist/locale/it/translation.json.d.ts +0 -1
- package/dist/{mermaid-parser.core-Kh2GaZjn.js → mermaid-parser.core-C0aPfQrd.js} +208 -209
- package/dist/{mermaid-parser.core-2c535U97.cjs → mermaid-parser.core-DrvvGvos.cjs} +64 -64
- package/dist/{mindmap-definition-VGOIOE7T-CHXB52JE.js → mindmap-definition-VGOIOE7T-B-XcJ1QB.js} +3 -3
- package/dist/{mindmap-definition-VGOIOE7T-Dbf-IjJg.cjs → mindmap-definition-VGOIOE7T-CQBoNmIj.cjs} +1 -1
- package/dist/{packet-BFZMPI3H-CWlKzkUT.js → packet-BFZMPI3H-C96MlUhq.js} +1 -1
- package/dist/{packet-BFZMPI3H-CHjUkc3K.cjs → packet-BFZMPI3H-CFs8sQKO.cjs} +1 -1
- package/dist/pie-7BOR55EZ-B7H6T2nu.js +5 -0
- package/dist/{pie-7BOR55EZ-DF8jDFu6.cjs → pie-7BOR55EZ-D1z_FiDQ.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-BS47ESx3.js → pieDiagram-ADFJNKIX-Btipy1Yg.js} +4 -4
- package/dist/{pieDiagram-ADFJNKIX-CUXoHrUo.cjs → pieDiagram-ADFJNKIX-DITgkzrb.cjs} +1 -1
- package/dist/{quadrantDiagram-AYHSOK5B-BDCNfr1M.js → quadrantDiagram-AYHSOK5B-0REjJWXf.js} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-DR-GeD40.cjs → quadrantDiagram-AYHSOK5B-DUvmRtA9.cjs} +1 -1
- package/dist/radar-NHE76QYJ-BBThtHed.js +5 -0
- package/dist/{radar-NHE76QYJ-CTPycyar.cjs → radar-NHE76QYJ-buBWFcX8.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-CUfIh-7P.js → requirementDiagram-UZGBJVZJ-3qREmHHw.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-vOYjKcHP.cjs → requirementDiagram-UZGBJVZJ-D5HKHjuR.cjs} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-Ddj4CqOU.js → sankeyDiagram-TZEHDZUN-CB7aU9wG.js} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-Dn5DcHZn.cjs → sankeyDiagram-TZEHDZUN-DDHq92cR.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-DzATBRBb.cjs → sequenceDiagram-WL72ISMW-CrGNKfm7.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-DCp5IF0l.js → sequenceDiagram-WL72ISMW-Dp9D1kc1.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-CYSSqqZ6.js → stateDiagram-FKZM4ZOC-Dg2jwdvB.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-Du6jFWWB.cjs → stateDiagram-FKZM4ZOC-TVfktX-m.cjs} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-Cxj_JYYu.js → stateDiagram-v2-4FDKWEC3-BeDflo8x.js} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-BAYfudRi.cjs → stateDiagram-v2-4FDKWEC3-CVw7R7Sy.cjs} +1 -1
- package/dist/{timeline-definition-IT6M3QCI-Dw1JJhHl.js → timeline-definition-IT6M3QCI-DPYD0-yi.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-fZZ7KhwG.cjs → timeline-definition-IT6M3QCI-QaW1rM2C.cjs} +1 -1
- package/dist/{treemap-KMMF4GRG-DIf-BmJb.cjs → treemap-KMMF4GRG-B3ovpU-a.cjs} +1 -1
- package/dist/{treemap-KMMF4GRG-DOx8Kmfm.js → treemap-KMMF4GRG-BtzlMHus.js} +1 -1
- package/dist/types/data-structures.d.ts +8 -3
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/translation.d.ts +0 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/display-value.d.ts.map +1 -1
- package/dist/utils/wrapper-types/date.d.ts.map +1 -1
- package/dist/utils/wrapper-types/time/time-utils.d.ts +8 -0
- package/dist/utils/wrapper-types/time/time-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/time/time.d.ts +1 -1
- package/dist/utils/wrapper-types/time/time.d.ts.map +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-CHFF9E0J.js → xychartDiagram-PRI3JC2R-6W3NRZoh.js} +2 -2
- package/dist/{xychartDiagram-PRI3JC2R-Cg1xVYiM.cjs → xychartDiagram-PRI3JC2R-9Qn35IaK.cjs} +1 -1
- package/package.json +1 -2
- package/dist/_baseIsEqual-CEeDg5JY.cjs +0 -1
- package/dist/_baseIsEqual-DGkLOOUv.js +0 -330
- package/dist/_basePickBy-DaIc-wgz.cjs +0 -1
- package/dist/_baseUniq-DTfHgbiF.cjs +0 -1
- package/dist/_baseUniq-Fo_obzds.js +0 -292
- package/dist/channel-0VH3jwlj.cjs +0 -1
- package/dist/clone-B_ggB8XZ.cjs +0 -1
- package/dist/cloneDeep-BKtU4IKb.js +0 -8
- package/dist/cloneDeep-CAsH5xlb.cjs +0 -1
- package/dist/components/image-list/components/image-list-item.d.ts +0 -3
- package/dist/components/image-list/components/image-list-item.d.ts.map +0 -1
- package/dist/components/image-list/types/image-list-types.d.ts +0 -69
- package/dist/components/image-list/types/image-list-types.d.ts.map +0 -1
- package/dist/components/image-list/utils/image-list-utils.d.ts +0 -7
- package/dist/components/image-list/utils/image-list-utils.d.ts.map +0 -1
- package/dist/graph-BAbMYZfV.cjs +0 -1
- package/dist/info-NVLQJR56-Coo8EJ5Z.js +0 -5
- package/dist/layout-BAOkTpMt.cjs +0 -1
- package/dist/pie-7BOR55EZ-ev26J3c5.js +0 -5
- package/dist/quill-CL1W1hro.js +0 -6687
- package/dist/quill-izWMIyId.cjs +0 -49
- package/dist/radar-NHE76QYJ-CrwtClJN.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./_baseIsEqual-CEeDg5JY.cjs"),u=require("./index-DIIaXWro.cjs");var U="[object Symbol]";function y(n){return typeof n=="symbol"||u.isObjectLike(n)&&u.baseGetTag(n)==U}function A(n,r){for(var e=-1,t=n==null?0:n.length,i=Array(t);++e<t;)i[e]=r(n[e],e,n);return i}var P=u.Symbol?u.Symbol.prototype:void 0,O=P?P.toString:void 0;function m(n){if(typeof n=="string")return n;if(u.isArray(n))return A(n,m)+"";if(y(n))return O?O.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function R(){}function x(n,r,e,t){for(var i=n.length,f=e+-1;++f<i;)if(r(n[f],f,n))return f;return-1}function k(n){return n!==n}function z(n,r,e){for(var t=e-1,i=n.length;++t<i;)if(n[t]===r)return t;return-1}function M(n,r,e){return r===r?z(n,r,e):x(n,k,e)}function _(n,r){var e=n==null?0:n.length;return!!e&&M(n,r,0)>-1}var K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/;function I(n,r){if(u.isArray(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||y(n)?!0:Z.test(n)||!K.test(n)||r!=null&&n in Object(r)}var H=500;function Y(n){var r=u.memoize(n,function(t){return e.size===H&&e.clear(),t}),e=r.cache;return r}var B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/\\(\\)?/g,J=Y(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(B,function(e,t,i,f){r.push(i?f.replace(X,"$1"):t||e)}),r});function C(n){return n==null?"":m(n)}function S(n,r){return u.isArray(n)?n:I(n,r)?[n]:J(C(n))}function c(n){if(typeof n=="string"||y(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function p(n,r){r=S(r,n);for(var e=0,t=r.length;n!=null&&e<t;)n=n[c(r[e++])];return e&&e==t?n:void 0}function Q(n,r,e){var t=n==null?void 0:p(n,r);return t===void 0?e:t}var F=u.Symbol?u.Symbol.isConcatSpreadable:void 0;function W(n){return u.isArray(n)||u.isArguments(n)||!!(F&&n&&n[F])}function v(n,r,e,t,i){var f=-1,s=n.length;for(e||(e=W),i||(i=[]);++f<s;){var h=n[f];e(h)?o.arrayPush(i,h):t||(i[i.length]=h)}return i}function V(n,r,e,t){var i=-1,f=n==null?0:n.length;for(t&&f&&(e=n[++i]);++i<f;)e=r(e,n[i],i,n);return e}var j=1,nn=2;function rn(n,r,e,t){var i=e.length,f=i;if(n==null)return!f;for(n=Object(n);i--;){var s=e[i];if(s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<f;){s=e[i];var h=s[0],a=n[h],d=s[1];if(s[2]){if(a===void 0&&!(h in n))return!1}else{var l=new u.Stack,g;if(!(g===void 0?o.baseIsEqual(d,a,j|nn,t,l):g))return!1}}return!0}function L(n){return n===n&&!u.isObject(n)}function en(n){for(var r=o.keys(n),e=r.length;e--;){var t=r[e],i=n[t];r[e]=[t,i,L(i)]}return r}function T(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function tn(n){var r=en(n);return r.length==1&&r[0][2]?T(r[0][0],r[0][1]):function(e){return e===n||rn(e,n,r)}}function fn(n,r){return n!=null&&r in Object(n)}function G(n,r,e){r=S(r,n);for(var t=-1,i=r.length,f=!1;++t<i;){var s=c(r[t]);if(!(f=n!=null&&e(n,s)))break;n=n[s]}return f||++t!=i?f:(i=n==null?0:n.length,!!i&&u.isLength(i)&&u.isIndex(s,i)&&(u.isArray(n)||u.isArguments(n)))}function $(n,r){return n!=null&&G(n,r,fn)}var un=1,sn=2;function hn(n,r){return I(n)&&L(r)?T(c(n),r):function(e){var t=Q(e,n);return t===void 0&&t===r?$(e,n):o.baseIsEqual(r,t,un|sn)}}function on(n){return function(r){return r?.[n]}}function an(n){return function(r){return p(r,n)}}function ln(n){return I(n)?on(c(n)):an(n)}function E(n){return typeof n=="function"?n:n==null?u.identity:typeof n=="object"?u.isArray(n)?hn(n[0],n[1]):tn(n):ln(n)}function q(n,r){return n&&u.baseFor(n,r,o.keys)}function gn(n,r){return function(e,t){if(e==null)return e;if(!u.isArrayLike(e))return n(e,t);for(var i=e.length,f=-1,s=Object(e);++f<i&&t(s[f],f,s)!==!1;);return e}}var b=gn(q);function N(n){return typeof n=="function"?n:u.identity}function cn(n,r){var e=u.isArray(n)?o.arrayEach:b;return e(n,N(r))}function D(n,r){var e=[];return b(n,function(t,i,f){r(t,i,f)&&e.push(t)}),e}function dn(n,r){var e=u.isArray(n)?o.arrayFilter:D;return e(n,E(r))}function yn(n,r){return A(r,function(e){return n[e]})}function bn(n){return n==null?[]:yn(n,o.keys(n))}function An(n){return n===void 0}function In(n,r,e,t,i){return i(n,function(f,s,h){e=t?(t=!1,f):r(e,f,s,h)}),e}function Sn(n,r,e){var t=u.isArray(n)?V:In,i=arguments.length<3;return t(n,E(r),e,i,b)}var pn=1/0,En=u.Set&&1/o.setToArray(new u.Set([,-0]))[1]==pn?function(n){return new u.Set(n)}:R,wn=200;function Pn(n,r,e){var t=-1,i=_,f=n.length,s=!0,h=[],a=h;if(f>=wn){var d=r?null:En(n);if(d)return o.setToArray(d);s=!1,i=o.cacheHas,a=new o.SetCache}else a=r?[]:h;n:for(;++t<f;){var l=n[t],g=r?r(l):l;if(l=l!==0?l:0,s&&g===g){for(var w=a.length;w--;)if(a[w]===g)continue n;r&&a.push(g),h.push(l)}else i(a,g,e)||(a!==h&&a.push(g),h.push(l))}return h}exports.arrayIncludes=_;exports.arrayMap=A;exports.baseEach=b;exports.baseFilter=D;exports.baseFindIndex=x;exports.baseFlatten=v;exports.baseForOwn=q;exports.baseGet=p;exports.baseIndexOf=M;exports.baseIteratee=E;exports.baseUniq=Pn;exports.castFunction=N;exports.castPath=S;exports.filter=dn;exports.forEach=cn;exports.hasIn=$;exports.hasPath=G;exports.isSymbol=y;exports.isUndefined=An;exports.noop=R;exports.reduce=Sn;exports.toKey=c;exports.toString=C;exports.values=bn;
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { a as N, c as y, k as p, d as D, e as $, s as O, S as U, f as Z } from "./_baseIsEqual-DGkLOOUv.js";
|
|
2
|
-
import { bg as k, bs as q, aX as l, be as d, bt as z, bu as R, bn as Y, aS as H, bv as K, aZ as X, aY as x, bw as B, aW as W, bx as b } from "./index-D_kILrIh.js";
|
|
3
|
-
var v = "[object Symbol]";
|
|
4
|
-
function A(n) {
|
|
5
|
-
return typeof n == "symbol" || k(n) && q(n) == v;
|
|
6
|
-
}
|
|
7
|
-
function F(n, r) {
|
|
8
|
-
for (var e = -1, t = n == null ? 0 : n.length, i = Array(t); ++e < t; )
|
|
9
|
-
i[e] = r(n[e], e, n);
|
|
10
|
-
return i;
|
|
11
|
-
}
|
|
12
|
-
var S = d ? d.prototype : void 0, P = S ? S.toString : void 0;
|
|
13
|
-
function C(n) {
|
|
14
|
-
if (typeof n == "string")
|
|
15
|
-
return n;
|
|
16
|
-
if (l(n))
|
|
17
|
-
return F(n, C) + "";
|
|
18
|
-
if (A(n))
|
|
19
|
-
return P ? P.call(n) : "";
|
|
20
|
-
var r = n + "";
|
|
21
|
-
return r == "0" && 1 / n == -1 / 0 ? "-0" : r;
|
|
22
|
-
}
|
|
23
|
-
function J() {
|
|
24
|
-
}
|
|
25
|
-
function Q(n, r, e, t) {
|
|
26
|
-
for (var i = n.length, f = e + -1; ++f < i; )
|
|
27
|
-
if (r(n[f], f, n))
|
|
28
|
-
return f;
|
|
29
|
-
return -1;
|
|
30
|
-
}
|
|
31
|
-
function V(n) {
|
|
32
|
-
return n !== n;
|
|
33
|
-
}
|
|
34
|
-
function j(n, r, e) {
|
|
35
|
-
for (var t = e - 1, i = n.length; ++t < i; )
|
|
36
|
-
if (n[t] === r)
|
|
37
|
-
return t;
|
|
38
|
-
return -1;
|
|
39
|
-
}
|
|
40
|
-
function nn(n, r, e) {
|
|
41
|
-
return r === r ? j(n, r, e) : Q(n, V, e);
|
|
42
|
-
}
|
|
43
|
-
function rn(n, r) {
|
|
44
|
-
var e = n == null ? 0 : n.length;
|
|
45
|
-
return !!e && nn(n, r, 0) > -1;
|
|
46
|
-
}
|
|
47
|
-
var en = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, tn = /^\w*$/;
|
|
48
|
-
function w(n, r) {
|
|
49
|
-
if (l(n))
|
|
50
|
-
return !1;
|
|
51
|
-
var e = typeof n;
|
|
52
|
-
return e == "number" || e == "symbol" || e == "boolean" || n == null || A(n) ? !0 : tn.test(n) || !en.test(n) || r != null && n in Object(r);
|
|
53
|
-
}
|
|
54
|
-
var fn = 500;
|
|
55
|
-
function sn(n) {
|
|
56
|
-
var r = z(n, function(t) {
|
|
57
|
-
return e.size === fn && e.clear(), t;
|
|
58
|
-
}), e = r.cache;
|
|
59
|
-
return r;
|
|
60
|
-
}
|
|
61
|
-
var un = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, an = /\\(\\)?/g, hn = sn(function(n) {
|
|
62
|
-
var r = [];
|
|
63
|
-
return n.charCodeAt(0) === 46 && r.push(""), n.replace(un, function(e, t, i, f) {
|
|
64
|
-
r.push(i ? f.replace(an, "$1") : t || e);
|
|
65
|
-
}), r;
|
|
66
|
-
});
|
|
67
|
-
function on(n) {
|
|
68
|
-
return n == null ? "" : C(n);
|
|
69
|
-
}
|
|
70
|
-
function M(n, r) {
|
|
71
|
-
return l(n) ? n : w(n, r) ? [n] : hn(on(n));
|
|
72
|
-
}
|
|
73
|
-
function c(n) {
|
|
74
|
-
if (typeof n == "string" || A(n))
|
|
75
|
-
return n;
|
|
76
|
-
var r = n + "";
|
|
77
|
-
return r == "0" && 1 / n == -1 / 0 ? "-0" : r;
|
|
78
|
-
}
|
|
79
|
-
function _(n, r) {
|
|
80
|
-
r = M(r, n);
|
|
81
|
-
for (var e = 0, t = r.length; n != null && e < t; )
|
|
82
|
-
n = n[c(r[e++])];
|
|
83
|
-
return e && e == t ? n : void 0;
|
|
84
|
-
}
|
|
85
|
-
function ln(n, r, e) {
|
|
86
|
-
var t = n == null ? void 0 : _(n, r);
|
|
87
|
-
return t === void 0 ? e : t;
|
|
88
|
-
}
|
|
89
|
-
var m = d ? d.isConcatSpreadable : void 0;
|
|
90
|
-
function gn(n) {
|
|
91
|
-
return l(n) || R(n) || !!(m && n && n[m]);
|
|
92
|
-
}
|
|
93
|
-
function Zn(n, r, e, t, i) {
|
|
94
|
-
var f = -1, s = n.length;
|
|
95
|
-
for (e || (e = gn), i || (i = []); ++f < s; ) {
|
|
96
|
-
var u = n[f];
|
|
97
|
-
e(u) ? N(i, u) : t || (i[i.length] = u);
|
|
98
|
-
}
|
|
99
|
-
return i;
|
|
100
|
-
}
|
|
101
|
-
function dn(n, r, e, t) {
|
|
102
|
-
var i = -1, f = n == null ? 0 : n.length;
|
|
103
|
-
for (t && f && (e = n[++i]); ++i < f; )
|
|
104
|
-
e = r(e, n[i], i, n);
|
|
105
|
-
return e;
|
|
106
|
-
}
|
|
107
|
-
var cn = 1, bn = 2;
|
|
108
|
-
function pn(n, r, e, t) {
|
|
109
|
-
var i = e.length, f = i;
|
|
110
|
-
if (n == null)
|
|
111
|
-
return !f;
|
|
112
|
-
for (n = Object(n); i--; ) {
|
|
113
|
-
var s = e[i];
|
|
114
|
-
if (s[2] ? s[1] !== n[s[0]] : !(s[0] in n))
|
|
115
|
-
return !1;
|
|
116
|
-
}
|
|
117
|
-
for (; ++i < f; ) {
|
|
118
|
-
s = e[i];
|
|
119
|
-
var u = s[0], a = n[u], g = s[1];
|
|
120
|
-
if (s[2]) {
|
|
121
|
-
if (a === void 0 && !(u in n))
|
|
122
|
-
return !1;
|
|
123
|
-
} else {
|
|
124
|
-
var h = new Y(), o;
|
|
125
|
-
if (!(o === void 0 ? y(g, a, cn | bn, t, h) : o))
|
|
126
|
-
return !1;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return !0;
|
|
130
|
-
}
|
|
131
|
-
function L(n) {
|
|
132
|
-
return n === n && !H(n);
|
|
133
|
-
}
|
|
134
|
-
function An(n) {
|
|
135
|
-
for (var r = p(n), e = r.length; e--; ) {
|
|
136
|
-
var t = r[e], i = n[t];
|
|
137
|
-
r[e] = [t, i, L(i)];
|
|
138
|
-
}
|
|
139
|
-
return r;
|
|
140
|
-
}
|
|
141
|
-
function T(n, r) {
|
|
142
|
-
return function(e) {
|
|
143
|
-
return e == null ? !1 : e[n] === r && (r !== void 0 || n in Object(e));
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
function wn(n) {
|
|
147
|
-
var r = An(n);
|
|
148
|
-
return r.length == 1 && r[0][2] ? T(r[0][0], r[0][1]) : function(e) {
|
|
149
|
-
return e === n || pn(e, n, r);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function In(n, r) {
|
|
153
|
-
return n != null && r in Object(n);
|
|
154
|
-
}
|
|
155
|
-
function En(n, r, e) {
|
|
156
|
-
r = M(r, n);
|
|
157
|
-
for (var t = -1, i = r.length, f = !1; ++t < i; ) {
|
|
158
|
-
var s = c(r[t]);
|
|
159
|
-
if (!(f = n != null && e(n, s)))
|
|
160
|
-
break;
|
|
161
|
-
n = n[s];
|
|
162
|
-
}
|
|
163
|
-
return f || ++t != i ? f : (i = n == null ? 0 : n.length, !!i && K(i) && X(s, i) && (l(n) || R(n)));
|
|
164
|
-
}
|
|
165
|
-
function Sn(n, r) {
|
|
166
|
-
return n != null && En(n, r, In);
|
|
167
|
-
}
|
|
168
|
-
var Pn = 1, mn = 2;
|
|
169
|
-
function yn(n, r) {
|
|
170
|
-
return w(n) && L(r) ? T(c(n), r) : function(e) {
|
|
171
|
-
var t = ln(e, n);
|
|
172
|
-
return t === void 0 && t === r ? Sn(e, n) : y(r, t, Pn | mn);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
function On(n) {
|
|
176
|
-
return function(r) {
|
|
177
|
-
return r?.[n];
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
function Rn(n) {
|
|
181
|
-
return function(r) {
|
|
182
|
-
return _(r, n);
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
function xn(n) {
|
|
186
|
-
return w(n) ? On(c(n)) : Rn(n);
|
|
187
|
-
}
|
|
188
|
-
function G(n) {
|
|
189
|
-
return typeof n == "function" ? n : n == null ? x : typeof n == "object" ? l(n) ? yn(n[0], n[1]) : wn(n) : xn(n);
|
|
190
|
-
}
|
|
191
|
-
function Fn(n, r) {
|
|
192
|
-
return n && B(n, r, p);
|
|
193
|
-
}
|
|
194
|
-
function Cn(n, r) {
|
|
195
|
-
return function(e, t) {
|
|
196
|
-
if (e == null)
|
|
197
|
-
return e;
|
|
198
|
-
if (!W(e))
|
|
199
|
-
return n(e, t);
|
|
200
|
-
for (var i = e.length, f = -1, s = Object(e); ++f < i && t(s[f], f, s) !== !1; )
|
|
201
|
-
;
|
|
202
|
-
return e;
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
var I = Cn(Fn);
|
|
206
|
-
function Mn(n) {
|
|
207
|
-
return typeof n == "function" ? n : x;
|
|
208
|
-
}
|
|
209
|
-
function kn(n, r) {
|
|
210
|
-
var e = l(n) ? D : I;
|
|
211
|
-
return e(n, Mn(r));
|
|
212
|
-
}
|
|
213
|
-
function _n(n, r) {
|
|
214
|
-
var e = [];
|
|
215
|
-
return I(n, function(t, i, f) {
|
|
216
|
-
r(t, i, f) && e.push(t);
|
|
217
|
-
}), e;
|
|
218
|
-
}
|
|
219
|
-
function qn(n, r) {
|
|
220
|
-
var e = l(n) ? $ : _n;
|
|
221
|
-
return e(n, G(r));
|
|
222
|
-
}
|
|
223
|
-
function Ln(n, r) {
|
|
224
|
-
return F(r, function(e) {
|
|
225
|
-
return n[e];
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
function zn(n) {
|
|
229
|
-
return n == null ? [] : Ln(n, p(n));
|
|
230
|
-
}
|
|
231
|
-
function Yn(n) {
|
|
232
|
-
return n === void 0;
|
|
233
|
-
}
|
|
234
|
-
function Tn(n, r, e, t, i) {
|
|
235
|
-
return i(n, function(f, s, u) {
|
|
236
|
-
e = t ? (t = !1, f) : r(e, f, s, u);
|
|
237
|
-
}), e;
|
|
238
|
-
}
|
|
239
|
-
function Hn(n, r, e) {
|
|
240
|
-
var t = l(n) ? dn : Tn, i = arguments.length < 3;
|
|
241
|
-
return t(n, G(r), e, i, I);
|
|
242
|
-
}
|
|
243
|
-
var Gn = 1 / 0, Nn = b && 1 / O(new b([, -0]))[1] == Gn ? function(n) {
|
|
244
|
-
return new b(n);
|
|
245
|
-
} : J, Dn = 200;
|
|
246
|
-
function Kn(n, r, e) {
|
|
247
|
-
var t = -1, i = rn, f = n.length, s = !0, u = [], a = u;
|
|
248
|
-
if (f >= Dn) {
|
|
249
|
-
var g = r ? null : Nn(n);
|
|
250
|
-
if (g)
|
|
251
|
-
return O(g);
|
|
252
|
-
s = !1, i = Z, a = new U();
|
|
253
|
-
} else
|
|
254
|
-
a = r ? [] : u;
|
|
255
|
-
n:
|
|
256
|
-
for (; ++t < f; ) {
|
|
257
|
-
var h = n[t], o = r ? r(h) : h;
|
|
258
|
-
if (h = h !== 0 ? h : 0, s && o === o) {
|
|
259
|
-
for (var E = a.length; E--; )
|
|
260
|
-
if (a[E] === o)
|
|
261
|
-
continue n;
|
|
262
|
-
r && a.push(o), u.push(h);
|
|
263
|
-
} else i(a, o, e) || (a !== u && a.push(o), u.push(h));
|
|
264
|
-
}
|
|
265
|
-
return u;
|
|
266
|
-
}
|
|
267
|
-
export {
|
|
268
|
-
Zn as a,
|
|
269
|
-
Kn as b,
|
|
270
|
-
kn as c,
|
|
271
|
-
A as d,
|
|
272
|
-
G as e,
|
|
273
|
-
qn as f,
|
|
274
|
-
Q as g,
|
|
275
|
-
I as h,
|
|
276
|
-
Yn as i,
|
|
277
|
-
F as j,
|
|
278
|
-
En as k,
|
|
279
|
-
M as l,
|
|
280
|
-
_ as m,
|
|
281
|
-
Mn as n,
|
|
282
|
-
Fn as o,
|
|
283
|
-
Sn as p,
|
|
284
|
-
on as q,
|
|
285
|
-
Hn as r,
|
|
286
|
-
rn as s,
|
|
287
|
-
c as t,
|
|
288
|
-
nn as u,
|
|
289
|
-
zn as v,
|
|
290
|
-
_n as w,
|
|
291
|
-
J as x
|
|
292
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./index-DIIaXWro.cjs"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;
|
package/dist/clone-B_ggB8XZ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./_baseIsEqual-CEeDg5JY.cjs");var r=4;function s(e){return n.baseClone(e,r)}exports.clone=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./_baseIsEqual-CEeDg5JY.cjs");var r=1,s=4;function c(e){return n.baseClone(e,r|s)}exports.cloneDeep=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-list-item.d.ts","sourceRoot":"","sources":["../../../../src/components/image-list/components/image-list-item.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,eAAO,MAAM,aAAa,0DAqIzB,CAAA"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { DataNode } from '../../../types/data-structures';
|
|
2
|
-
import { BooleanValue } from '../../../types/legacy';
|
|
3
|
-
export type ImageTextMode = "Code" | "Text" | "Both";
|
|
4
|
-
export type ImageSource = {
|
|
5
|
-
type: "url" | "icon" | "none";
|
|
6
|
-
src?: string;
|
|
7
|
-
};
|
|
8
|
-
export type FlattenedImageListNode = DataNode & {
|
|
9
|
-
id: number;
|
|
10
|
-
level: number;
|
|
11
|
-
expandable: boolean;
|
|
12
|
-
};
|
|
13
|
-
export interface BreadcrumbNode extends DataNode {
|
|
14
|
-
level: number;
|
|
15
|
-
}
|
|
16
|
-
export type ClickEvent = {
|
|
17
|
-
ctrlKey: boolean;
|
|
18
|
-
metaKey: boolean;
|
|
19
|
-
shiftKey: boolean;
|
|
20
|
-
};
|
|
21
|
-
export interface NavigationStackItem {
|
|
22
|
-
items: DataNode[];
|
|
23
|
-
parentId: number | null;
|
|
24
|
-
parentValue: string | null;
|
|
25
|
-
}
|
|
26
|
-
export interface ImageListProps {
|
|
27
|
-
Class?: string;
|
|
28
|
-
className?: string;
|
|
29
|
-
Columns?: string;
|
|
30
|
-
data?: DataNode[];
|
|
31
|
-
draggable?: boolean;
|
|
32
|
-
Icons?: BooleanValue;
|
|
33
|
-
ImageText?: ImageTextMode;
|
|
34
|
-
MultiSelect?: BooleanValue;
|
|
35
|
-
onClick?: (node: DataNode) => void;
|
|
36
|
-
onDoubleClick?: (node: DataNode) => void;
|
|
37
|
-
onSelectionChange?: (selected: DataNode[] | DataNode | null) => void;
|
|
38
|
-
onContextMenu?: (data: DataNode, htmlElement: HTMLElement | null) => void;
|
|
39
|
-
onExpand?: (node: DataNode, isExpanded: boolean) => void;
|
|
40
|
-
onDragStart?: (node: FlattenedImageListNode, event?: DragEvent) => void;
|
|
41
|
-
onDrop?: (node: FlattenedImageListNode, event?: DragEvent) => void;
|
|
42
|
-
onDragOver?: (node: FlattenedImageListNode, event?: DragEvent) => void;
|
|
43
|
-
PageSize?: string;
|
|
44
|
-
Rows?: string;
|
|
45
|
-
virtualization?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface ImageListItemProps {
|
|
48
|
-
node: FlattenedImageListNode;
|
|
49
|
-
selectedIds: Set<number>;
|
|
50
|
-
draggable?: boolean;
|
|
51
|
-
Icons?: BooleanValue;
|
|
52
|
-
imageText?: ImageTextMode;
|
|
53
|
-
isExpanded?: boolean;
|
|
54
|
-
onClick: (node: FlattenedImageListNode, ev: React.MouseEvent) => void;
|
|
55
|
-
onDoubleClick: (node: FlattenedImageListNode) => void;
|
|
56
|
-
onContextMenu: (node: FlattenedImageListNode, ev: React.MouseEvent) => void;
|
|
57
|
-
onKeyDown: (node: FlattenedImageListNode, ev: React.KeyboardEvent) => void;
|
|
58
|
-
onDragStart?: (node: FlattenedImageListNode, ev: DragEvent) => void;
|
|
59
|
-
onDrop?: (node: FlattenedImageListNode, ev: DragEvent) => void;
|
|
60
|
-
onDragOver?: (node: FlattenedImageListNode, ev: DragEvent) => void;
|
|
61
|
-
style?: React.CSSProperties;
|
|
62
|
-
}
|
|
63
|
-
export interface ImageListDrillDownProps {
|
|
64
|
-
navigationStack: NavigationStackItem[];
|
|
65
|
-
getCurrentPath: () => string[];
|
|
66
|
-
navigateBack: () => void;
|
|
67
|
-
navigateToTop: () => void;
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=image-list-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-list-types.d.ts","sourceRoot":"","sources":["../../../../src/components/image-list/types/image-list-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAEpD,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEzE,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACxC,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAA;IACpE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IACzE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACxD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAA;IACvE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAA;IAClE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAA;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,sBAAsB,CAAA;IAC5B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IACrE,aAAa,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAA;IACrD,aAAa,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IAC3E,SAAS,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;IAC1E,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;IACnE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;IAC9D,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;IAClE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,mBAAmB,EAAE,CAAA;IACtC,cAAc,EAAE,MAAM,MAAM,EAAE,CAAA;IAC9B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,IAAI,CAAA;CAC1B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DataNode, DataTree } from '../../../types/data-structures';
|
|
2
|
-
import { BreadcrumbNode, FlattenedImageListNode } from '../types/image-list-types';
|
|
3
|
-
export declare const createFlattenedNode: (node: DataNode, _index: number, level?: number, resultLength?: number) => FlattenedImageListNode;
|
|
4
|
-
export declare const findOriginalNode: (node: FlattenedImageListNode) => DataNode;
|
|
5
|
-
export declare const createBreadcrumbData: (pathSegments: string[], title?: string) => DataTree;
|
|
6
|
-
export declare const createBreadcrumbClickHandler: (navigationStackLength: number, navigateBack: () => void) => (e: React.MouseEvent | React.KeyboardEvent, node: BreadcrumbNode) => void;
|
|
7
|
-
//# sourceMappingURL=image-list-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-list-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/image-list/utils/image-list-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EACL,cAAc,EACd,sBAAsB,EACvB,MAAM,2BAA2B,CAAA;AAGlC,eAAO,MAAM,mBAAmB,GAC9B,MAAM,QAAQ,EACd,QAAQ,MAAM,EACd,cAAS,EACT,qBAAgB,KACf,sBASF,CAAA;AACD,eAAO,MAAM,gBAAgB,GAAI,MAAM,sBAAsB,KAAG,QAI/D,CAAA;AAID,eAAO,MAAM,oBAAoB,GAC/B,cAAc,MAAM,EAAE,EACtB,QAAO,MAAe,KACrB,QAiBF,CAAA;AAED,eAAO,MAAM,4BAA4B,GACvC,uBAAuB,MAAM,EAC7B,cAAc,MAAM,IAAI,MAEhB,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,EAAE,MAAM,cAAc,SAUxE,CAAA"}
|
package/dist/graph-BAbMYZfV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./index-DIIaXWro.cjs"),_=require("./_baseIsEqual-CEeDg5JY.cjs"),h=require("./_baseUniq-DTfHgbiF.cjs");var E=u.baseRest(function(o){return h.baseUniq(h.baseFlatten(o,1,u.isArrayLikeObject,!0))}),y="\0",a="\0",p="";class g{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=u.constant$1(void 0),this._defaultEdgeLabelFn=u.constant$1(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _.keys(this._nodes)}sources(){var e=this;return h.filter(this.nodes(),function(t){return u.isEmpty(e._in[t])})}sinks(){var e=this;return h.filter(this.nodes(),function(t){return u.isEmpty(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return h.forEach(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],h.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),h.forEach(_.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],h.forEach(_.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h.isUndefined(t))t=a;else{t+="";for(var s=t;!h.isUndefined(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(h.isUndefined(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _.keys(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _.keys(t)}successors(e){var t=this._sucs[e];if(t)return _.keys(t)}neighbors(e){var t=this.predecessors(e);if(t)return E(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;h.forEach(this._nodes,function(n,d){e(d)&&t.setNode(d,n)}),h.forEach(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var d=s.parent(n);return d===void 0||t.hasNode(d)?(i[n]=d,d):d in i?i[d]:r(d)}return this._isCompound&&h.forEach(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return h.values(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return h.reduce(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,h.isUndefined(s)||(s=""+s);var d=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,d))return r&&(this._edgeLabels[d]=i),this;if(!h.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[d]=r?i:this._defaultEdgeLabelFn(e,t,s);var l=O(this._isDirected,e,t,s);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[d]=l,m(this._preds[t],e),m(this._sucs[e],t),this._in[t][d]=l,this._out[e][d]=l,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],b(this._preds[t],e),b(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=h.values(s);return t?h.filter(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=h.values(s);return t?h.filter(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}g.prototype._nodeCount=0;g.prototype._edgeCount=0;function m(o,e){o[e]?o[e]++:o[e]=1}function b(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+p+r+p+(h.isUndefined(s)?y:s)}function O(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var d={v:i,w:r};return s&&(d.name=s),d}function f(o,e){return c(o,e.v,e.w,e.name)}exports.Graph=g;
|
package/dist/layout-BAOkTpMt.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|