lookatstudy-mobile 0.37.0 → 0.37.2
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/package.json +1 -1
- package/server.cjs +106 -4
- package/web/assets/{CanvasStage-DNJ3CvSQ.js → CanvasStage-By84li0a.js} +1 -1
- package/web/assets/{CommandPalette-0omhbLg3.js → CommandPalette-DJpv5YLk.js} +1 -1
- package/web/assets/{CompanionBotLab-CT_JHmNI.js → CompanionBotLab-BrjON5X5.js} +1 -1
- package/web/assets/{CourseSearchPanel-DVtN9ACi.js → CourseSearchPanel-Dp-83TJq.js} +1 -1
- package/web/assets/{ExamView-DPMDpplK.js → ExamView-BiWyQCTQ.js} +1 -1
- package/web/assets/{MermaidArtifact-BaJ5RvRv.js → MermaidArtifact-C-9JGr1S.js} +3 -3
- package/web/assets/{PersonalProfileModal-IhrruXfg.js → PersonalProfileModal-Bberh-21.js} +1 -1
- package/web/assets/{ReviewPanel-C1ldctfO.js → ReviewPanel-D52vKY80.js} +1 -1
- package/web/assets/SettingsView-BE8J-BR5.js +20 -0
- package/web/assets/{VoicePanel-CcYGhBPb.js → VoicePanel-Df6DgExP.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-ODA7YWAP-CbNOQFqA.js → abnfDiagram-VCTEODGH-ODA7YWAP-GEEhu7or.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-BU9D6UxH.js → abnfDiagram-VCTEODGH-xWn5W_Em.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-C4PU3XN7-T9qCk6kM.js → architectureDiagram-5GKGNRK7-C4PU3XN7-JmOGh5LH.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-CKMhI1Ee.js → architectureDiagram-5GKGNRK7-CvI35bTW.js} +1 -1
- package/web/assets/{blockDiagram-I7D4REHJ-Bik9DaYN.js → blockDiagram-I7D4REHJ-BMKUeuF0.js} +1 -1
- package/web/assets/{blockDiagram-NRAW4CY4-UMJ6PMQQ-Dy4ybhQI.js → blockDiagram-NRAW4CY4-UMJ6PMQQ-Dv4-Yiui.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-IRtYuDM_.js → c4Diagram-7LVT6UL2-DNalANVV.js} +1 -1
- package/web/assets/{c4Diagram-UCG6FXSJ-75X3U2P3-BCGvMp1I.js → c4Diagram-UCG6FXSJ-75X3U2P3-BMz228D6.js} +1 -1
- package/web/assets/channel-BsRXIHWg.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-DSi_blpC.js → chunk-2Q5K7J3B-M3FYrmxX.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-JiyA-wo9.js → chunk-5VM5RSS4-nbGREPjw.js} +1 -1
- package/web/assets/{chunk-7XDTSPCN-Cvb-oYet.js → chunk-7XDTSPCN-rYhyRTOx.js} +1 -1
- package/web/assets/{chunk-CTNIYPP6-HjnzrVvf.js → chunk-CTNIYPP6-BgXYMFW5.js} +1 -1
- package/web/assets/{chunk-CXNFBKHE-DzkNdxBi.js → chunk-CXNFBKHE-CkmFhBAk.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DqqFugb1.js → chunk-F27PBJKO-CAqAYmMM.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-0q0swfWT.js → chunk-IMKFNOWR-pDBbu4GI.js} +1 -1
- package/web/assets/{chunk-ISA7TJRJ-BX1hKFZw.js → chunk-ISA7TJRJ-CHl4BhBt.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-BGDdCd7e.js → chunk-JWPE2WC7-DSVI_4gB.js} +1 -1
- package/web/assets/{chunk-LV3HUYFY-DXfPtXuN.js → chunk-LV3HUYFY-Doco33ZI.js} +1 -1
- package/web/assets/{chunk-M3IUQBOH-BGP9XzSA.js → chunk-M3IUQBOH-RTAJkyza.js} +1 -1
- package/web/assets/{chunk-NDIOYS4C-CzRGOiBm.js → chunk-NDIOYS4C-DcWvuy8G.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-CJEN76eb.js → chunk-POPQ4Y6H-yjjWWA8X.js} +1 -1
- package/web/assets/{chunk-RE4WF27V-CwpP9UVY.js → chunk-RE4WF27V-C32wZGPA.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-DKVY1S0P.js → chunk-SVP7TREG-BdekvWAw.js} +1 -1
- package/web/assets/{chunk-TICWLB2K-DnGZt5_T.js → chunk-TICWLB2K-Cz68TTKA.js} +1 -1
- package/web/assets/{chunk-VII2H2IX-DXWnTQhH.js → chunk-VII2H2IX-fTD7U-xL.js} +1 -1
- package/web/assets/{chunk-X5GNSKZ3-EYUWZKOs.js → chunk-X5GNSKZ3-16RMlpb5.js} +1 -1
- package/web/assets/{chunk-XCWWM2C3-DX7b36ww.js → chunk-XCWWM2C3-CO-wuQPY.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-B_w3KgBK.js → chunk-XXDRQBXY-DPkBKESf.js} +1 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-BwnHfZhN.js +1 -0
- package/web/assets/classDiagram-ZZMXUADV-BBeyyi3H.js +1 -0
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-BwnHfZhN.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-BBeyyi3H.js +1 -0
- package/web/assets/{core-BKUioWC8.js → core-CQhot3Yw.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-BQ05JG_e.js → cose-bilkent-JH36ORCC-NQkKxkmm.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-OB24KH3T-7k2xivYC.js → cose-bilkent-JH36ORCC-OB24KH3T-71WGRXpy.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-CyNo44Ct.js → cynefin-OW5HDTMX-GVF3BKWE-wLMpc-W6.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-DOvceb57.js → cynefin-OW5HDTMX-Ycd8yaFB.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-H3WIRU3N-CLiDmyFZ.js → cynefinDiagram-5FMLGOSQ-H3WIRU3N-BqUnto1I.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-CLzU5hRI.js → cynefinDiagram-5FMLGOSQ-qdatKGJp.js} +1 -1
- package/web/assets/{dagre-3AP2YEHR-DCERTXHT-AZC3Sd7-.js → dagre-3AP2YEHR-DCERTXHT-DU7hl9mL.js} +1 -1
- package/web/assets/{dagre-GXQ25YYZ-XMzOJ88I.js → dagre-GXQ25YYZ-DXBvPLCC.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-BrCtmOAD.js → diagram-S7CK7UJ4-CJndlA9d.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-MULGZGEL-Cm4Xy-pF.js → diagram-S7CK7UJ4-MULGZGEL-ChZOJtIr.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-CCcvTlE_.js → diagram-UQ7AKVKN-ByEgUbMO.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-YQBY353J-CVJLwP7S.js → diagram-UQ7AKVKN-YQBY353J-CBg1xAIv.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-CdYFta9M.js → diagram-VSXAHHWV-DG9QiDXM.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-CaWgm0pD.js → diagram-VSXAHHWV-WLNH2ELY-BmmwN3nm.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-CM05zRwP.js → diagram-VX7I27RA-D5I8_1IH.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-XW6YQV5G-DKYJGziA.js → diagram-VX7I27RA-XW6YQV5G-BpJ1XA39.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-He0OkO1p.js → diagram-Z3DM3KII-BgBYUzLO.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-HG7RF65D-kC8Vko9Q.js → diagram-Z3DM3KII-HG7RF65D-DvYaKe9o.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-D6LQclit.js → ebnfDiagram-PWID7BFC-BvljgvDM.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-OKY4VHYD-BPNXBqdL.js → ebnfDiagram-PWID7BFC-OKY4VHYD-Cnq_rs5C.js} +1 -1
- package/web/assets/{elk.bundled-Oi_dp_Nb.js → elk.bundled-DuC4qO17.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-BC8Dyxni.js → erDiagram-RLTQ6QDP-CuGCxm27.js} +1 -1
- package/web/assets/{erDiagram-SSCWMZ5O-PIPKOIK7-BM5hP7pq.js → erDiagram-SSCWMZ5O-PIPKOIK7-DWea4HYD.js} +1 -1
- package/web/assets/{flowDiagram-A5DVABFB-2Z4AVO5R-BI_HnDMS.js → flowDiagram-A5DVABFB-2Z4AVO5R-Bt5oLSB0.js} +1 -1
- package/web/assets/{flowDiagram-HODETNUW-CQB-KRdk.js → flowDiagram-HODETNUW-ChwXi3ep.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-DtkBZQfB.js → ganttDiagram-EL5Y4UJY-Cip61aQW.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-JZNG7GOG-CAuwhLrG.js → ganttDiagram-EL5Y4UJY-JZNG7GOG-DIt3-EPi.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-CXMxBD1j.js → gitGraphDiagram-WWUBYQGX-BGE_KKwm.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DMWMLL3G-CibDMxH5.js → gitGraphDiagram-WWUBYQGX-DMWMLL3G-CsyX4tkZ.js} +1 -1
- package/web/assets/{index-pqxwzTgM.js → index-48coRDBX.js} +3 -3
- package/web/assets/index-C9fscARj.js +53 -0
- package/web/assets/{index-CLC7uJBc.js → index-CatQea2M.js} +1 -1
- package/web/assets/{index-DKUjXJrj.js → index-D3SI1A7X.js} +1 -1
- package/web/assets/index-EInfxfl9.css +1 -0
- package/web/assets/{infoDiagram-27XIBGKW-BxdeKm2M.js → infoDiagram-27XIBGKW-CHFCryER.js} +1 -1
- package/web/assets/{infoDiagram-RXCK75RN-HANS5KVC-XymudzPp.js → infoDiagram-RXCK75RN-HANS5KVC-ocLW6L6_.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-7GCIT7WU-Ca0czL-r.js → ishikawaDiagram-5VMMS53U-7GCIT7WU-BUo_yhnm.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-YiLbdVr3.js → ishikawaDiagram-5VMMS53U-Bhg1TVZJ.js} +1 -1
- package/web/assets/{journeyDiagram-3NMN7TZE-o507o7V3.js → journeyDiagram-3NMN7TZE-C3OfUgiV.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-OAPELBT7-COjG9fsS.js → journeyDiagram-EYS64GPL-OAPELBT7-DQESZnLZ.js} +1 -1
- package/web/assets/{kanban-definition-3QL26DDD-I7RKWQQY-dIeka5z7.js → kanban-definition-3QL26DDD-I7RKWQQY-BF-ZXqR5.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-DPIPqDMI.js → kanban-definition-UXKFOSKX-CSI_GcJW.js} +1 -1
- package/web/assets/{katex-N6JRN4PM-C1WPCW7o.js → katex-N6JRN4PM-CxrguQd-.js} +1 -1
- package/web/assets/{layout-CoYqjJku.js → layout-CDbDCQeb.js} +1 -1
- package/web/assets/{main-s-bCU9xp.js → main-jV_OilRs.js} +11 -11
- package/web/assets/{mermaid-layout-elk.core-BDxAYedV.js → mermaid-layout-elk.core-B1-o2tyd.js} +2 -2
- package/web/assets/{mermaid.core-DP9HBKfF.js → mermaid.core-37_hzSNp.js} +5 -5
- package/web/assets/{mindmap-definition-FBJOCRG2-KIYZG64Y-B0M0vSNL.js → mindmap-definition-FBJOCRG2-KIYZG64Y-rppk7mo-.js} +1 -1
- package/web/assets/{mindmap-definition-YA3MSWOX-CZNKLpKf.js → mindmap-definition-YA3MSWOX-BUzaoDCs.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-BABqVbYU.js → pegDiagram-XKGWAZYB-CQPL5MMj.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-OIP57N6J-ChBhHDWi.js → pegDiagram-XKGWAZYB-OIP57N6J-CngQPdjr.js} +1 -1
- package/web/assets/{pet-BILzsmZE.js → pet-xGooCXVY.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-2UOTW327-Dh29Zr3p.js → pieDiagram-E7YTZNPT-2UOTW327-DkHaDPtZ.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-van1IvDV.js → pieDiagram-E7YTZNPT-BDTdqFkm.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-BKgVVqxX.js → quadrantDiagram-AXDQQJYC-CXFhoJ1v.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-SN3ASJJK-CZYkjMJl.js → quadrantDiagram-AXDQQJYC-SN3ASJJK-KFKnY5SQ.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-34742W6X-BpIuTMjt.js → railroadDiagram-O6MQD6OU-34742W6X-BMHll5kZ.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-CAJ_285V.js → railroadDiagram-O6MQD6OU-DdZMZ3P-.js} +1 -1
- package/web/assets/{render-O7CIS3YK-Ca_t2BjR.js → render-O7CIS3YK-BUZqrLRp.js} +7 -7
- package/web/assets/{requirementDiagram-BXWQKSXE-yAxTDLdz.js → requirementDiagram-BXWQKSXE-WrY_I6-V.js} +1 -1
- package/web/assets/{requirementDiagram-EFPCY7ZU-NGAFFSMB-qHev6ewP.js → requirementDiagram-EFPCY7ZU-NGAFFSMB-CmLM20oA.js} +1 -1
- package/web/assets/{rotate-ccw-BcZP2n0D.js → rotate-ccw-DZE_kYZu.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-3D3M4XPB-C0dgNg43.js → sankeyDiagram-P5KCCOFB-3D3M4XPB-RJsf4h9t.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-DzYIq4fM.js → sankeyDiagram-P5KCCOFB-Bjyi_fcC.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-bSfs95J7.js → sequenceDiagram-WJ2MYXX4-Co6SKGyz.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Q2IOPB4R-CYgHEbKX.js → sequenceDiagram-WJ2MYXX4-Q2IOPB4R-B5nuUy2h.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-6sblijow.js → sizeCapture-INFHLROL-CF0_wtm2.js} +1 -1
- package/web/assets/{sizeCapture-X5ZJPWSS-PSGVOMYM-BmietHRl.js → sizeCapture-X5ZJPWSS-PSGVOMYM-xWY2H6Me.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-BqN2X_4K.js → stateDiagram-D77RDMKH-5V-346Qd.js} +1 -1
- package/web/assets/{stateDiagram-HBIQ2CUA-4M2S6MAN-B7l4qfxn.js → stateDiagram-HBIQ2CUA-4M2S6MAN-B6gqxipM.js} +1 -1
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-DnphY6WO.js +1 -0
- package/web/assets/stateDiagram-v2-MP3YSRHH-DKtXGidN.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-BdpdGi8U.js → swimlanes-42K2YHIH-D9gzHPsn.js} +1 -1
- package/web/assets/{swimlanes-XN3QIQJK-N6N2CCQ6-DeA0ywq0.js → swimlanes-XN3QIQJK-N6N2CCQ6-rlPeyqTj.js} +1 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-8pA5lT4C.js +8 -0
- package/web/assets/swimlanesDiagram-VR7AAH4N-B7BbPyRn.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-C4WRMueq.js → timeline-definition-24CTP7MA-B2GfJfmd.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-KN7RSRVM-DCfXzMAD.js → timeline-definition-24CTP7MA-KN7RSRVM-CKXP2kGU.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-AKJ7LXAN-B22sFTL4.js → vennDiagram-4TSXK5OY-AKJ7LXAN-CybCMyEX.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-Czwyh2Ss.js → vennDiagram-4TSXK5OY-DkP-OS8t.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-3B6A3BN5-DUtEE3hD.js → wardleyDiagram-VM6X3IG4-3B6A3BN5-BdgAi1Gp.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-BaWPp6GW.js → wardleyDiagram-VM6X3IG4-DvRT9ehw.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-BzArL7i2.js → xychartDiagram-S5SC5T6Z-D0gQ0QKw.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-OBDNV6WG-C3eeDBv5.js → xychartDiagram-S5SC5T6Z-OBDNV6WG-23Q1AKCq.js} +1 -1
- package/web/index.html +3 -3
- package/web/pet.html +3 -3
- package/web/assets/SettingsView-B6w445fE.js +0 -20
- package/web/assets/channel-D6qbQnDp.js +0 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-D2p8cYeb.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-CFJO056W.js +0 -1
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-D2p8cYeb.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-CFJO056W.js +0 -1
- package/web/assets/index-DNBtAT86.css +0 -1
- package/web/assets/index-DwG4tw4S.js +0 -53
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-DnMNJ_k7.js +0 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-DjlfW1YP.js +0 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-rqMW1YeU.js +0 -8
- package/web/assets/swimlanesDiagram-VR7AAH4N-SUwVZHzH.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ot}from"./chunk-7XDTSPCN-Cvb-oYet.js";import{_ as V,l as Z}from"./render-O7CIS3YK-Ca_t2BjR.js";import{a as at,_ as O,b as j}from"./mermaid-layout-elk.core-BDxAYedV.js";import{s as ht}from"./transform-Bd_a5eGM.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var it=j({"../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js"(w,X){O((function(m,v){typeof w=="object"&&typeof X=="object"?X.exports=v():typeof define=="function"&&define.amd?define([],v):typeof w=="object"?w.layoutBase=v():m.layoutBase=v()}),"webpackUniversalModuleDefinition")(w,function(){return(function(N){var m={};function v(n){if(m[n])return m[n].exports;var e=m[n]={i:n,l:!1,exports:{}};return N[n].call(e.exports,e,e.exports,v),e.l=!0,e.exports}return O(v,"__webpack_require__"),v.m=N,v.c=m,v.i=function(n){return n},v.d=function(n,e,t){v.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},v.n=function(n){var e=n&&n.__esModule?O(function(){return n.default},"getDefault"):O(function(){return n},"getModuleExports");return v.d(e,"a",e),e},v.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},v.p="",v(v.s=26)})([(function(N,m,v){function n(){}O(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,N.exports=n}),(function(N,m,v){var n=v(2),e=v(8),t=v(9);function r(g,o,d){n.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=o}O(r,"LEdge"),r.prototype=Object.create(n.prototype);for(var l in n)r[l]=n[l];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(g,o){for(var d=this.getOtherEnd(g),i=o.getGraphManager().getRoot();;){if(d.getOwner()==o)return d;if(d.getOwner()==i)break;d=d.getOwner().getParent()}return null},r.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=r}),(function(N,m,v){function n(e){this.vGraphObject=e}O(n,"LGraphObject"),N.exports=n}),(function(N,m,v){var n=v(2),e=v(10),t=v(13),r=v(0),l=v(16),g=v(4);function o(i,a,h,p){h==null&&p==null&&(p=a),n.call(this,p),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=i,h!=null&&a!=null?this.rect=new t(a.x,a.y,h.width,h.height):this.rect=new t}O(o,"LNode"),o.prototype=Object.create(n.prototype);for(var d in n)o[d]=n[d];o.prototype.getEdges=function(){return this.edges},o.prototype.getChild=function(){return this.child},o.prototype.getOwner=function(){return this.owner},o.prototype.getWidth=function(){return this.rect.width},o.prototype.setWidth=function(i){this.rect.width=i},o.prototype.getHeight=function(){return this.rect.height},o.prototype.setHeight=function(i){this.rect.height=i},o.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},o.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},o.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},o.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},o.prototype.getRect=function(){return this.rect},o.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},o.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},o.prototype.setRect=function(i,a){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=a.width,this.rect.height=a.height},o.prototype.setCenter=function(i,a){this.rect.x=i-this.rect.width/2,this.rect.y=a-this.rect.height/2},o.prototype.setLocation=function(i,a){this.rect.x=i,this.rect.y=a},o.prototype.moveBy=function(i,a){this.rect.x+=i,this.rect.y+=a},o.prototype.getEdgeListToNode=function(i){var a=[],h=this;return h.edges.forEach(function(p){if(p.target==i){if(p.source!=h)throw"Incorrect edge source!";a.push(p)}}),a},o.prototype.getEdgesBetween=function(i){var a=[],h=this;return h.edges.forEach(function(p){if(!(p.source==h||p.target==h))throw"Incorrect edge source and/or target";(p.target==i||p.source==i)&&a.push(p)}),a},o.prototype.getNeighborsList=function(){var i=new Set,a=this;return a.edges.forEach(function(h){if(h.source==a)i.add(h.target);else{if(h.target!=a)throw"Incorrect incidency!";i.add(h.source)}}),i},o.prototype.withChildren=function(){var i=new Set,a,h;if(i.add(this),this.child!=null)for(var p=this.child.getNodes(),y=0;y<p.length;y++)a=p[y],h=a.withChildren(),h.forEach(function(D){i.add(D)});return i},o.prototype.getNoOfChildren=function(){var i=0,a;if(this.child==null)i=1;else for(var h=this.child.getNodes(),p=0;p<h.length;p++)a=h[p],i+=a.getNoOfChildren();return i==0&&(i=1),i},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},o.prototype.scatter=function(){var i,a,h=-r.INITIAL_WORLD_BOUNDARY,p=r.INITIAL_WORLD_BOUNDARY;i=r.WORLD_CENTER_X+l.nextDouble()*(p-h)+h;var y=-r.INITIAL_WORLD_BOUNDARY,D=r.INITIAL_WORLD_BOUNDARY;a=r.WORLD_CENTER_Y+l.nextDouble()*(D-y)+y,this.rect.x=i,this.rect.y=a},o.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var i=this.getChild();if(i.updateBounds(!0),this.rect.x=i.getLeft(),this.rect.y=i.getTop(),this.setWidth(i.getRight()-i.getLeft()),this.setHeight(i.getBottom()-i.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.getRight()-i.getLeft(),h=i.getBottom()-i.getTop();this.labelWidth>a&&(this.rect.x-=(this.labelWidth-a)/2,this.setWidth(this.labelWidth)),this.labelHeight>h&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-h)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-h),this.setHeight(this.labelHeight))}}},o.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},o.prototype.transform=function(i){var a=this.rect.x;a>r.WORLD_BOUNDARY?a=r.WORLD_BOUNDARY:a<-r.WORLD_BOUNDARY&&(a=-r.WORLD_BOUNDARY);var h=this.rect.y;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var p=new g(a,h),y=i.inverseTransformPoint(p);this.setLocation(y.x,y.y)},o.prototype.getLeft=function(){return this.rect.x},o.prototype.getRight=function(){return this.rect.x+this.rect.width},o.prototype.getTop=function(){return this.rect.y},o.prototype.getBottom=function(){return this.rect.y+this.rect.height},o.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=o}),(function(N,m,v){function n(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}O(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=n}),(function(N,m,v){var n=v(2),e=v(10),t=v(0),r=v(6),l=v(3),g=v(1),o=v(13),d=v(12),i=v(11);function a(p,y,D){n.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,y!=null&&y instanceof r?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}O(a,"LGraph"),a.prototype=Object.create(n.prototype);for(var h in n)a[h]=n[h];a.prototype.getNodes=function(){return this.nodes},a.prototype.getEdges=function(){return this.edges},a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getParent=function(){return this.parent},a.prototype.getLeft=function(){return this.left},a.prototype.getRight=function(){return this.right},a.prototype.getTop=function(){return this.top},a.prototype.getBottom=function(){return this.bottom},a.prototype.isConnected=function(){return this.isConnected},a.prototype.add=function(p,y,D){if(y==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var L=p;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(y.owner==D.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=D.owner?null:(L.source=y,L.target=D,L.isInterGraph=!1,this.getEdges().push(L),y.edges.push(L),D!=y&&D.edges.push(L),L)}},a.prototype.remove=function(p){var y=p;if(p instanceof l){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=y.edges.slice(),u,L=D.length,E=0;E<L;E++)u=D[E],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var I=this.nodes.indexOf(y);if(I==-1)throw"Node not in owner node list!";this.nodes.splice(I,1)}else if(p instanceof g){var u=p;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var s=u.source.edges.indexOf(u),f=u.target.edges.indexOf(u);if(!(s>-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var I=u.source.owner.getEdges().indexOf(u);if(I==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(I,1)}},a.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,y=e.MAX_VALUE,D,u,L,E=this.getNodes(),I=E.length,s=0;s<I;s++){var f=E[s];D=f.getTop(),u=f.getLeft(),p>D&&(p=D),y>u&&(y=u)}return p==e.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?L=E[0].getParent().paddingLeft:L=this.margin,this.left=y-L,this.top=p-L,new d(this.left,this.top))},a.prototype.updateBounds=function(p){for(var y=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,L=-e.MAX_VALUE,E,I,s,f,c,T=this.nodes,A=T.length,C=0;C<A;C++){var M=T[C];p&&M.child!=null&&M.updateBounds(),E=M.getLeft(),I=M.getRight(),s=M.getTop(),f=M.getBottom(),y>E&&(y=E),D<I&&(D=I),u>s&&(u=s),L<f&&(L=f)}var R=new o(y,u,D-y,L-u);y==e.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),T[0].getParent().paddingLeft!=null?c=T[0].getParent().paddingLeft:c=this.margin,this.left=R.x-c,this.right=R.x+R.width+c,this.top=R.y-c,this.bottom=R.y+R.height+c},a.calculateBounds=function(p){for(var y=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,L=-e.MAX_VALUE,E,I,s,f,c=p.length,T=0;T<c;T++){var A=p[T];E=A.getLeft(),I=A.getRight(),s=A.getTop(),f=A.getBottom(),y>E&&(y=E),D<I&&(D=I),u>s&&(u=s),L<f&&(L=f)}var C=new o(y,u,D-y,L-u);return C},a.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},a.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},a.prototype.calcEstimatedSize=function(){for(var p=0,y=this.nodes,D=y.length,u=0;u<D;u++){var L=y[u];p+=L.calcEstimatedSize()}return p==0?this.estimatedSize=t.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=p/Math.sqrt(this.nodes.length),this.estimatedSize},a.prototype.updateConnected=function(){var p=this;if(this.nodes.length==0){this.isConnected=!0;return}var y=new i,D=new Set,u=this.nodes[0],L,E,I=u.withChildren();for(I.forEach(function(C){y.push(C),D.add(C)});y.length!==0;){u=y.shift(),L=u.getEdges();for(var s=L.length,f=0;f<s;f++){var c=L[f];if(E=c.getOtherEndInGraph(u,this),E!=null&&!D.has(E)){var T=E.withChildren();T.forEach(function(C){y.push(C),D.add(C)})}}}if(this.isConnected=!1,D.size>=this.nodes.length){var A=0;D.forEach(function(C){C.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=a}),(function(N,m,v){var n,e=v(1);function t(r){n=v(5),this.layout=r,this.graphs=[],this.edges=[]}O(t,"LGraphManager"),t.prototype.addRoot=function(){var r=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(r,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(r,l,g,o,d){if(g==null&&o==null&&d==null){if(r==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return r.parent=l,l.child=r,r}else{d=g,o=l,g=r;var i=o.getOwner(),a=d.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(a!=null&&a.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==a)return g.isInterGraph=!1,i.add(g,o,d);if(g.isInterGraph=!0,g.source=o,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(r){if(r instanceof n){var l=r;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var o,d=g.length,i=0;i<d;i++)o=g[i],l.remove(o);var a=[];a=a.concat(l.getNodes());var h;d=a.length;for(var i=0;i<d;i++)h=a[i],l.remove(h);l==this.rootGraph&&this.setRootGraph(null);var p=this.graphs.indexOf(l);this.graphs.splice(p,1),l.parent=null}else if(r instanceof e){if(o=r,o==null)throw"Edge is null!";if(!o.isInterGraph)throw"Not an inter-graph edge!";if(!(o.source!=null&&o.target!=null))throw"Source and/or target is null!";if(!(o.source.edges.indexOf(o)!=-1&&o.target.edges.indexOf(o)!=-1))throw"Source and/or target doesn't know this edge!";var p=o.source.edges.indexOf(o);if(o.source.edges.splice(p,1),p=o.target.edges.indexOf(o),o.target.edges.splice(p,1),!(o.source.owner!=null&&o.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(o.source.owner.getGraphManager().edges.indexOf(o)==-1)throw"Not in owner graph manager's edge list!";var p=o.source.owner.getGraphManager().edges.indexOf(o);o.source.owner.getGraphManager().edges.splice(p,1)}},t.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},t.prototype.getGraphs=function(){return this.graphs},t.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],l=this.getGraphs(),g=l.length,o=0;o<g;o++)r=r.concat(l[o].getNodes());this.allNodes=r}return this.allNodes},t.prototype.resetAllNodes=function(){this.allNodes=null},t.prototype.resetAllEdges=function(){this.allEdges=null},t.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},t.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],l=this.getGraphs();l.length;for(var g=0;g<l.length;g++)r=r.concat(l[g].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},t.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},t.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},t.prototype.getRoot=function(){return this.rootGraph},t.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},t.prototype.getLayout=function(){return this.layout},t.prototype.isOneAncestorOfOther=function(r,l){if(!(r!=null&&l!=null))throw"assert failed";if(r==l)return!0;var g=r.getOwner(),o;do{if(o=g.getParent(),o==null)break;if(o==l)return!0;if(g=o.getOwner(),g==null)break}while(!0);g=l.getOwner();do{if(o=g.getParent(),o==null)break;if(o==r)return!0;if(g=o.getOwner(),g==null)break}while(!0);return!1},t.prototype.calcLowestCommonAncestors=function(){for(var r,l,g,o,d,i=this.getAllEdges(),a=i.length,h=0;h<a;h++){if(r=i[h],l=r.source,g=r.target,r.lca=null,r.sourceInLca=l,r.targetInLca=g,l==g){r.lca=l.getOwner();continue}for(o=l.getOwner();r.lca==null;){for(r.targetInLca=g,d=g.getOwner();r.lca==null;){if(d==o){r.lca=d;break}if(d==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=d.getParent(),d=r.targetInLca.getOwner()}if(o==this.rootGraph)break;r.lca==null&&(r.sourceInLca=o.getParent(),o=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},t.prototype.calcLowestCommonAncestor=function(r,l){if(r==l)return r.getOwner();var g=r.getOwner();do{if(g==null)break;var o=l.getOwner();do{if(o==null)break;if(o==g)return o;o=o.getParent().getOwner()}while(!0);g=g.getParent().getOwner()}while(!0);return g},t.prototype.calcInclusionTreeDepths=function(r,l){r==null&&l==null&&(r=this.rootGraph,l=1);for(var g,o=r.getNodes(),d=o.length,i=0;i<d;i++)g=o[i],g.inclusionTreeDepth=l,g.child!=null&&this.calcInclusionTreeDepths(g.child,l+1)},t.prototype.includesInvalidEdge=function(){for(var r,l=this.edges.length,g=0;g<l;g++)if(r=this.edges[g],this.isOneAncestorOfOther(r.source,r.target))return!0;return!1},N.exports=t}),(function(N,m,v){var n=v(0);function e(){}O(e,"FDLayoutConstants");for(var t in n)e[t]=n[t];e.MAX_ITERATIONS=2500,e.DEFAULT_EDGE_LENGTH=50,e.DEFAULT_SPRING_STRENGTH=.45,e.DEFAULT_REPULSION_STRENGTH=4500,e.DEFAULT_GRAVITY_STRENGTH=.4,e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,e.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,e.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,e.COOLING_ADAPTATION_FACTOR=.33,e.ADAPTATION_LOWER_NODE_LIMIT=1e3,e.ADAPTATION_UPPER_NODE_LIMIT=5e3,e.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,e.MAX_NODE_DISPLACEMENT=e.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,e.MIN_REPULSION_DIST=e.DEFAULT_EDGE_LENGTH/10,e.CONVERGENCE_CHECK_PERIOD=100,e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,e.MIN_EDGE_LENGTH=1,e.GRID_CALCULATION_CHECK_PERIOD=10,N.exports=e}),(function(N,m,v){var n=v(12);function e(){}O(e,"IGeometry"),e.calcSeparationAmount=function(t,r,l,g){if(!t.intersects(r))throw"assert failed";var o=new Array(2);this.decideDirectionsForOverlappingNodes(t,r,o),l[0]=Math.min(t.getRight(),r.getRight())-Math.max(t.x,r.x),l[1]=Math.min(t.getBottom(),r.getBottom())-Math.max(t.y,r.y),t.getX()<=r.getX()&&t.getRight()>=r.getRight()?l[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?l[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var d=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(d=1);var i=d*l[0],a=l[1]/d;l[0]<a?a=l[0]:i=l[1],l[0]=-1*o[0]*(a/2+g),l[1]=-1*o[1]*(i/2+g)},e.decideDirectionsForOverlappingNodes=function(t,r,l){t.getCenterX()<r.getCenterX()?l[0]=-1:l[0]=1,t.getCenterY()<r.getCenterY()?l[1]=-1:l[1]=1},e.getIntersection2=function(t,r,l){var g=t.getCenterX(),o=t.getCenterY(),d=r.getCenterX(),i=r.getCenterY();if(t.intersects(r))return l[0]=g,l[1]=o,l[2]=d,l[3]=i,!0;var a=t.getX(),h=t.getY(),p=t.getRight(),y=t.getX(),D=t.getBottom(),u=t.getRight(),L=t.getWidthHalf(),E=t.getHeightHalf(),I=r.getX(),s=r.getY(),f=r.getRight(),c=r.getX(),T=r.getBottom(),A=r.getRight(),C=r.getWidthHalf(),M=r.getHeightHalf(),R=!1,G=!1;if(g===d){if(o>i)return l[0]=g,l[1]=h,l[2]=d,l[3]=T,!1;if(o<i)return l[0]=g,l[1]=D,l[2]=d,l[3]=s,!1}else if(o===i){if(g>d)return l[0]=a,l[1]=o,l[2]=f,l[3]=i,!1;if(g<d)return l[0]=p,l[1]=o,l[2]=I,l[3]=i,!1}else{var _=t.height/t.width,Y=r.height/r.width,x=(i-o)/(d-g),F=void 0,S=void 0,P=void 0,U=void 0,b=void 0,H=void 0;if(-_===x?g>d?(l[0]=y,l[1]=D,R=!0):(l[0]=p,l[1]=h,R=!0):_===x&&(g>d?(l[0]=a,l[1]=h,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===x?d>g?(l[2]=c,l[3]=T,G=!0):(l[2]=f,l[3]=s,G=!0):Y===x&&(d>g?(l[2]=I,l[3]=s,G=!0):(l[2]=A,l[3]=T,G=!0)),R&&G)return!1;if(g>d?o>i?(F=this.getCardinalDirection(_,x,4),S=this.getCardinalDirection(Y,x,2)):(F=this.getCardinalDirection(-_,x,3),S=this.getCardinalDirection(-Y,x,1)):o>i?(F=this.getCardinalDirection(-_,x,1),S=this.getCardinalDirection(-Y,x,3)):(F=this.getCardinalDirection(_,x,2),S=this.getCardinalDirection(Y,x,4)),!R)switch(F){case 1:U=h,P=g+-E/x,l[0]=P,l[1]=U;break;case 2:P=u,U=o+L*x,l[0]=P,l[1]=U;break;case 3:U=D,P=g+E/x,l[0]=P,l[1]=U;break;case 4:P=y,U=o+-L*x,l[0]=P,l[1]=U;break}if(!G)switch(S){case 1:H=s,b=d+-M/x,l[2]=b,l[3]=H;break;case 2:b=A,H=i+C*x,l[2]=b,l[3]=H;break;case 3:H=T,b=d+M/x,l[2]=b,l[3]=H;break;case 4:b=c,H=i+-C*x,l[2]=b,l[3]=H;break}}return!1},e.getCardinalDirection=function(t,r,l){return t>r?l:1+l%4},e.getIntersection=function(t,r,l,g){if(g==null)return this.getIntersection2(t,r,l);var o=t.x,d=t.y,i=r.x,a=r.y,h=l.x,p=l.y,y=g.x,D=g.y,u=void 0,L=void 0,E=void 0,I=void 0,s=void 0,f=void 0,c=void 0,T=void 0,A=void 0;return E=a-d,s=o-i,c=i*d-o*a,I=D-p,f=h-y,T=y*p-h*D,A=E*f-I*s,A===0?null:(u=(s*T-f*c)/A,L=(I*c-E*T)/A,new n(u,L))},e.angleOfVector=function(t,r,l,g){var o=void 0;return t!==l?(o=Math.atan((g-r)/(l-t)),l<t?o+=Math.PI:g<r&&(o+=this.TWO_PI)):g<r?o=this.ONE_AND_HALF_PI:o=this.HALF_PI,o},e.doIntersect=function(t,r,l,g){var o=t.x,d=t.y,i=r.x,a=r.y,h=l.x,p=l.y,y=g.x,D=g.y,u=(i-o)*(D-p)-(y-h)*(a-d);if(u===0)return!1;var L=((D-p)*(y-o)+(h-y)*(D-d))/u,E=((d-a)*(y-o)+(i-o)*(D-d))/u;return 0<L&&L<1&&0<E&&E<1},e.HALF_PI=.5*Math.PI,e.ONE_AND_HALF_PI=1.5*Math.PI,e.TWO_PI=2*Math.PI,e.THREE_PI=3*Math.PI,N.exports=e}),(function(N,m,v){function n(){}O(n,"IMath"),n.sign=function(e){return e>0?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=n}),(function(N,m,v){function n(){}O(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,N.exports=n}),(function(N,m,v){var n=(function(){function o(d,i){for(var a=0;a<i.length;a++){var h=i[a];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(d,h.key,h)}}return O(o,"defineProperties"),function(d,i,a){return i&&o(d.prototype,i),a&&o(d,a),d}})();function e(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")}O(e,"_classCallCheck");var t=O(function(d){return{value:d,next:null,prev:null}},"nodeFrom"),r=O(function(d,i,a,h){return d!==null?d.next=i:h.head=i,a!==null?a.prev=i:h.tail=i,i.prev=d,i.next=a,h.length++,i},"add"),l=O(function(d,i){var a=d.prev,h=d.next;return a!==null?a.next=h:i.head=h,h!==null?h.prev=a:i.tail=a,d.prev=d.next=null,i.length--,d},"_remove"),g=(function(){function o(d){var i=this;e(this,o),this.length=0,this.head=null,this.tail=null,d!=null&&d.forEach(function(a){return i.push(a)})}return O(o,"LinkedList"),n(o,[{key:"size",value:O(function(){return this.length},"size")},{key:"insertBefore",value:O(function(i,a){return r(a.prev,t(i),a,this)},"insertBefore")},{key:"insertAfter",value:O(function(i,a){return r(a,t(i),a.next,this)},"insertAfter")},{key:"insertNodeBefore",value:O(function(i,a){return r(a.prev,i,a,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:O(function(i,a){return r(a,i,a.next,this)},"insertNodeAfter")},{key:"push",value:O(function(i){return r(this.tail,t(i),null,this)},"push")},{key:"unshift",value:O(function(i){return r(null,t(i),this.head,this)},"unshift")},{key:"remove",value:O(function(i){return l(i,this)},"remove")},{key:"pop",value:O(function(){return l(this.tail,this).value},"pop")},{key:"popNode",value:O(function(){return l(this.tail,this)},"popNode")},{key:"shift",value:O(function(){return l(this.head,this).value},"shift")},{key:"shiftNode",value:O(function(){return l(this.head,this)},"shiftNode")},{key:"get_object_at",value:O(function(i){if(i<=this.length()){for(var a=1,h=this.head;a<i;)h=h.next,a++;return h.value}},"get_object_at")},{key:"set_object_at",value:O(function(i,a){if(i<=this.length()){for(var h=1,p=this.head;h<i;)p=p.next,h++;p.value=a}},"set_object_at")}]),o})();N.exports=g}),(function(N,m,v){function n(e,t,r){this.x=null,this.y=null,e==null&&t==null&&r==null?(this.x=0,this.y=0):typeof e=="number"&&typeof t=="number"&&r==null?(this.x=e,this.y=t):e.constructor.name=="Point"&&t==null&&r==null&&(r=e,this.x=r.x,this.y=r.y)}O(n,"Point"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.getLocation=function(){return new n(this.x,this.y)},n.prototype.setLocation=function(e,t,r){e.constructor.name=="Point"&&t==null&&r==null?(r=e,this.setLocation(r.x,r.y)):typeof e=="number"&&typeof t=="number"&&r==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},n.prototype.move=function(e,t){this.x=e,this.y=t},n.prototype.translate=function(e,t){this.x+=e,this.y+=t},n.prototype.equals=function(e){if(e.constructor.name=="Point"){var t=e;return this.x==t.x&&this.y==t.y}return this==e},n.prototype.toString=function(){return new n().constructor.name+"[x="+this.x+",y="+this.y+"]"},N.exports=n}),(function(N,m,v){function n(e,t,r,l){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&r!=null&&l!=null&&(this.x=e,this.y=t,this.width=r,this.height=l)}O(n,"RectangleD"),n.prototype.getX=function(){return this.x},n.prototype.setX=function(e){this.x=e},n.prototype.getY=function(){return this.y},n.prototype.setY=function(e){this.y=e},n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},n.prototype.getRight=function(){return this.x+this.width},n.prototype.getBottom=function(){return this.y+this.height},n.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},n.prototype.getCenterX=function(){return this.x+this.width/2},n.prototype.getMinX=function(){return this.getX()},n.prototype.getMaxX=function(){return this.getX()+this.width},n.prototype.getCenterY=function(){return this.y+this.height/2},n.prototype.getMinY=function(){return this.getY()},n.prototype.getMaxY=function(){return this.getY()+this.height},n.prototype.getWidthHalf=function(){return this.width/2},n.prototype.getHeightHalf=function(){return this.height/2},N.exports=n}),(function(N,m,v){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function e(){}O(e,"UniqueIDGeneretor"),e.lastID=0,e.createID=function(t){return e.isPrimitive(t)?t:(t.uniqueID!=null||(t.uniqueID=e.getString(),e.lastID++),t.uniqueID)},e.getString=function(t){return t==null&&(t=e.lastID),"Object#"+t},e.isPrimitive=function(t){var r=typeof t>"u"?"undefined":n(t);return t==null||r!="object"&&r!="function"},N.exports=e}),(function(N,m,v){function n(h){if(Array.isArray(h)){for(var p=0,y=Array(h.length);p<h.length;p++)y[p]=h[p];return y}else return Array.from(h)}O(n,"_toConsumableArray");var e=v(0),t=v(6),r=v(3),l=v(1),g=v(5),o=v(4),d=v(17),i=v(27);function a(h){i.call(this),this.layoutQuality=e.QUALITY,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=e.DEFAULT_INCREMENTAL,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new t(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,h!=null&&(this.isRemoteUse=h)}O(a,"Layout"),a.RANDOM_SEED=1,a.prototype=Object.create(i.prototype),a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},a.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},a.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},a.prototype.newGraphManager=function(){var h=new t(this);return this.graphManager=h,h},a.prototype.newGraph=function(h){return new g(null,this.graphManager,h)},a.prototype.newNode=function(h){return new r(this.graphManager,h)},a.prototype.newEdge=function(h){return new l(null,null,h)},a.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},a.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var h;return this.checkLayoutSuccess()?h=!1:h=this.layout(),e.ANIMATE==="during"?!1:(h&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,h)},a.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},a.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var h=this.graphManager.getAllEdges(),p=0;p<h.length;p++)h[p];for(var y=this.graphManager.getRoot().getNodes(),p=0;p<y.length;p++)y[p];this.update(this.graphManager.getRoot())}},a.prototype.update=function(h){if(h==null)this.update2();else if(h instanceof r){var p=h;if(p.getChild()!=null)for(var y=p.getChild().getNodes(),D=0;D<y.length;D++)update(y[D]);if(p.vGraphObject!=null){var u=p.vGraphObject;u.update(p)}}else if(h instanceof l){var L=h;if(L.vGraphObject!=null){var E=L.vGraphObject;E.update(L)}}else if(h instanceof g){var I=h;if(I.vGraphObject!=null){var s=I.vGraphObject;s.update(I)}}},a.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=e.QUALITY,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=e.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},a.prototype.transform=function(h){if(h==null)this.transform(new o(0,0));else{var p=new d,y=this.graphManager.getRoot().updateLeftTop();if(y!=null){p.setWorldOrgX(h.x),p.setWorldOrgY(h.y),p.setDeviceOrgX(y.x),p.setDeviceOrgY(y.y);for(var D=this.getAllNodes(),u,L=0;L<D.length;L++)u=D[L],u.transform(p)}}},a.prototype.positionNodesRandomly=function(h){if(h==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var p,y,D=h.getNodes(),u=0;u<D.length;u++)p=D[u],y=p.getChild(),y==null||y.getNodes().length==0?p.scatter():(this.positionNodesRandomly(y),p.updateBounds())},a.prototype.getFlatForest=function(){for(var h=[],p=!0,y=this.graphManager.getRoot().getNodes(),D=!0,u=0;u<y.length;u++)y[u].getChild()!=null&&(D=!1);if(!D)return h;var L=new Set,E=[],I=new Map,s=[];for(s=s.concat(y);s.length>0&&p;){for(E.push(s[0]);E.length>0&&p;){var f=E[0];E.splice(0,1),L.add(f);for(var c=f.getEdges(),u=0;u<c.length;u++){var T=c[u].getOtherEnd(f);if(I.get(f)!=T)if(!L.has(T))E.push(T),I.set(T,f);else{p=!1;break}}}if(!p)h=[];else{var A=[].concat(n(L));h.push(A);for(var u=0;u<A.length;u++){var C=A[u],M=s.indexOf(C);M>-1&&s.splice(M,1)}L=new Set,I=new Map}}return h},a.prototype.createDummyNodesForBendpoints=function(h){for(var p=[],y=h.source,D=this.graphManager.calcLowestCommonAncestor(h.source,h.target),u=0;u<h.bendpoints.length;u++){var L=this.newNode(null);L.setRect(new Point(0,0),new Dimension(1,1)),D.add(L);var E=this.newEdge(null);this.graphManager.add(E,y,L),p.add(L),y=L}var E=this.newEdge(null);return this.graphManager.add(E,y,h.target),this.edgeToDummyNodes.set(h,p),h.isInterGraph()?this.graphManager.remove(h):D.remove(h),p},a.prototype.createBendpointsFromDummyNodes=function(){var h=[];h=h.concat(this.graphManager.getAllEdges()),h=[].concat(n(this.edgeToDummyNodes.keys())).concat(h);for(var p=0;p<h.length;p++){var y=h[p];if(y.bendpoints.length>0){for(var D=this.edgeToDummyNodes.get(y),u=0;u<D.length;u++){var L=D[u],E=new o(L.getCenterX(),L.getCenterY()),I=y.bendpoints.get(u);I.x=E.x,I.y=E.y,L.getOwner().remove(L)}this.graphManager.add(y,y.source,y.target)}}},a.transform=function(h,p,y,D){if(y!=null&&D!=null){var u=p;if(h<=50){var L=p/y;u-=(p-L)/50*(50-h)}else{var E=p*D;u+=(E-p)/50*(h-50)}return u}else{var I,s;return h<=50?(I=9*p/500,s=p/10):(I=9*p/50,s=-8*p),I*h+s}},a.findCenterOfTree=function(h){var p=[];p=p.concat(h);var y=[],D=new Map,u=!1,L=null;(p.length==1||p.length==2)&&(u=!0,L=p[0]);for(var E=0;E<p.length;E++){var I=p[E],s=I.getNeighborsList().size;D.set(I,I.getNeighborsList().size),s==1&&y.push(I)}var f=[];for(f=f.concat(y);!u;){var c=[];c=c.concat(f),f=[];for(var E=0;E<p.length;E++){var I=p[E],T=p.indexOf(I);T>=0&&p.splice(T,1);var A=I.getNeighborsList();A.forEach(function(R){if(y.indexOf(R)<0){var G=D.get(R),_=G-1;_==1&&f.push(R),D.set(R,_)}})}y=y.concat(f),(p.length==1||p.length==2)&&(u=!0,L=p[0])}return L},a.prototype.setGraphManager=function(h){this.graphManager=h},N.exports=a}),(function(N,m,v){function n(){}O(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},N.exports=n}),(function(N,m,v){var n=v(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}O(e,"Transform"),e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,l=this.lworldExtX;return l!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),r},e.prototype.transformY=function(t){var r=0,l=this.lworldExtY;return l!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),r},e.prototype.inverseTransformX=function(t){var r=0,l=this.ldeviceExtX;return l!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),r},e.prototype.inverseTransformY=function(t){var r=0,l=this.ldeviceExtY;return l!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),r},e.prototype.inverseTransformPoint=function(t){var r=new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},N.exports=e}),(function(N,m,v){function n(i){if(Array.isArray(i)){for(var a=0,h=Array(i.length);a<i.length;a++)h[a]=i[a];return h}else return Array.from(i)}O(n,"_toConsumableArray");var e=v(15),t=v(7),r=v(0),l=v(8),g=v(9);function o(){e.call(this),this.useSmartIdealEdgeLengthCalculation=t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=t.DEFAULT_EDGE_LENGTH,this.springConstant=t.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=t.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=t.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=t.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*t.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=t.MAX_ITERATIONS}O(o,"FDLayout"),o.prototype=Object.create(e.prototype);for(var d in e)o[d]=e[d];o.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},o.prototype.calcIdealEdgeLengths=function(){for(var i,a,h,p,y,D,u=this.getGraphManager().getAllEdges(),L=0;L<u.length;L++)i=u[L],i.idealLength=this.idealEdgeLength,i.isInterGraph&&(h=i.getSource(),p=i.getTarget(),y=i.getSourceInLca().getEstimatedSize(),D=i.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(i.idealLength+=y+D-2*r.SIMPLE_NODE_SIZE),a=i.getLca().getInclusionTreeDepth(),i.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(h.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*a))},o.prototype.initSpringEmbedder=function(){var i=this.getAllNodes().length;this.incremental?(i>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},o.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),a,h=0;h<i.length;h++)a=i[h],this.calcSpringForce(a,a.idealLength)},o.prototype.calcRepulsionForces=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h,p,y,D,u=this.getAllNodes(),L;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),L=new Set,h=0;h<u.length;h++)y=u[h],this.calculateRepulsionForceOfANode(y,L,i,a),L.add(y);else for(h=0;h<u.length;h++)for(y=u[h],p=h+1;p<u.length;p++)D=u[p],y.getOwner()==D.getOwner()&&this.calcRepulsionForce(y,D)},o.prototype.calcGravitationalForces=function(){for(var i,a=this.getAllNodesToApplyGravitation(),h=0;h<a.length;h++)i=a[h],this.calcGravitationalForce(i)},o.prototype.moveNodes=function(){for(var i=this.getAllNodes(),a,h=0;h<i.length;h++)a=i[h],a.move()},o.prototype.calcSpringForce=function(i,a){var h=i.getSource(),p=i.getTarget(),y,D,u,L;if(this.uniformLeafNodeSizes&&h.getChild()==null&&p.getChild()==null)i.updateLengthSimple();else if(i.updateLength(),i.isOverlapingSourceAndTarget)return;y=i.getLength(),y!=0&&(D=this.springConstant*(y-a),u=D*(i.lengthX/y),L=D*(i.lengthY/y),h.springForceX+=u,h.springForceY+=L,p.springForceX-=u,p.springForceY-=L)},o.prototype.calcRepulsionForce=function(i,a){var h=i.getRect(),p=a.getRect(),y=new Array(2),D=new Array(4),u,L,E,I,s,f,c;if(h.intersects(p)){l.calcSeparationAmount(h,p,y,t.DEFAULT_EDGE_LENGTH/2),f=2*y[0],c=2*y[1];var T=i.noOfChildren*a.noOfChildren/(i.noOfChildren+a.noOfChildren);i.repulsionForceX-=T*f,i.repulsionForceY-=T*c,a.repulsionForceX+=T*f,a.repulsionForceY+=T*c}else this.uniformLeafNodeSizes&&i.getChild()==null&&a.getChild()==null?(u=p.getCenterX()-h.getCenterX(),L=p.getCenterY()-h.getCenterY()):(l.getIntersection(h,p,D),u=D[2]-D[0],L=D[3]-D[1]),Math.abs(u)<t.MIN_REPULSION_DIST&&(u=g.sign(u)*t.MIN_REPULSION_DIST),Math.abs(L)<t.MIN_REPULSION_DIST&&(L=g.sign(L)*t.MIN_REPULSION_DIST),E=u*u+L*L,I=Math.sqrt(E),s=this.repulsionConstant*i.noOfChildren*a.noOfChildren/E,f=s*u/I,c=s*L/I,i.repulsionForceX-=f,i.repulsionForceY-=c,a.repulsionForceX+=f,a.repulsionForceY+=c},o.prototype.calcGravitationalForce=function(i){var a,h,p,y,D,u,L,E;a=i.getOwner(),h=(a.getRight()+a.getLeft())/2,p=(a.getTop()+a.getBottom())/2,y=i.getCenterX()-h,D=i.getCenterY()-p,u=Math.abs(y)+i.getWidth()/2,L=Math.abs(D)+i.getHeight()/2,i.getOwner()==this.graphManager.getRoot()?(E=a.getEstimatedSize()*this.gravityRangeFactor,(u>E||L>E)&&(i.gravitationForceX=-this.gravityConstant*y,i.gravitationForceY=-this.gravityConstant*D)):(E=a.getEstimatedSize()*this.compoundGravityRangeFactor,(u>E||L>E)&&(i.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},o.prototype.isConverged=function(){var i,a=!1;return this.totalIterations>this.maxIterations/3&&(a=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,i||a},o.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},o.prototype.calcNoOfChildrenForAllNodes=function(){for(var i,a=this.graphManager.getAllNodes(),h=0;h<a.length;h++)i=a[h],i.noOfChildren=i.getNoOfChildren()},o.prototype.calcGrid=function(i){var a=0,h=0;a=parseInt(Math.ceil((i.getRight()-i.getLeft())/this.repulsionRange)),h=parseInt(Math.ceil((i.getBottom()-i.getTop())/this.repulsionRange));for(var p=new Array(a),y=0;y<a;y++)p[y]=new Array(h);for(var y=0;y<a;y++)for(var D=0;D<h;D++)p[y][D]=new Array;return p},o.prototype.addNodeToGrid=function(i,a,h){var p=0,y=0,D=0,u=0;p=parseInt(Math.floor((i.getRect().x-a)/this.repulsionRange)),y=parseInt(Math.floor((i.getRect().width+i.getRect().x-a)/this.repulsionRange)),D=parseInt(Math.floor((i.getRect().y-h)/this.repulsionRange)),u=parseInt(Math.floor((i.getRect().height+i.getRect().y-h)/this.repulsionRange));for(var L=p;L<=y;L++)for(var E=D;E<=u;E++)this.grid[L][E].push(i),i.setGridCoordinates(p,y,D,u)},o.prototype.updateGrid=function(){var i,a,h=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),i=0;i<h.length;i++)a=h[i],this.addNodeToGrid(a,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},o.prototype.calculateRepulsionForceOfANode=function(i,a,h,p){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&h||p){var y=new Set;i.surrounding=new Array;for(var D,u=this.grid,L=i.startX-1;L<i.finishX+2;L++)for(var E=i.startY-1;E<i.finishY+2;E++)if(!(L<0||E<0||L>=u.length||E>=u[0].length)){for(var I=0;I<u[L][E].length;I++)if(D=u[L][E][I],!(i.getOwner()!=D.getOwner()||i==D)&&!a.has(D)&&!y.has(D)){var s=Math.abs(i.getCenterX()-D.getCenterX())-(i.getWidth()/2+D.getWidth()/2),f=Math.abs(i.getCenterY()-D.getCenterY())-(i.getHeight()/2+D.getHeight()/2);s<=this.repulsionRange&&f<=this.repulsionRange&&y.add(D)}}i.surrounding=[].concat(n(y))}for(L=0;L<i.surrounding.length;L++)this.calcRepulsionForce(i,i.surrounding[L])},o.prototype.calcRepulsionRange=function(){return 0},N.exports=o}),(function(N,m,v){var n=v(1),e=v(7);function t(l,g,o){n.call(this,l,g,o),this.idealLength=e.DEFAULT_EDGE_LENGTH}O(t,"FDLayoutEdge"),t.prototype=Object.create(n.prototype);for(var r in n)t[r]=n[r];N.exports=t}),(function(N,m,v){var n=v(3);function e(r,l,g,o){n.call(this,r,l,g,o),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}O(e,"FDLayoutNode"),e.prototype=Object.create(n.prototype);for(var t in n)e[t]=n[t];e.prototype.setGridCoordinates=function(r,l,g,o){this.startX=r,this.finishX=l,this.startY=g,this.finishY=o},N.exports=e}),(function(N,m,v){function n(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}O(n,"DimensionD"),n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},N.exports=n}),(function(N,m,v){var n=v(14);function e(){this.map={},this.keys=[]}O(e,"HashMap"),e.prototype.put=function(t,r){var l=n.createID(t);this.contains(l)||(this.map[l]=r,this.keys.push(t))},e.prototype.contains=function(t){return n.createID(t),this.map[t]!=null},e.prototype.get=function(t){var r=n.createID(t);return this.map[r]},e.prototype.keySet=function(){return this.keys},N.exports=e}),(function(N,m,v){var n=v(14);function e(){this.set={}}O(e,"HashSet"),e.prototype.add=function(t){var r=n.createID(t);this.contains(r)||(this.set[r]=t)},e.prototype.remove=function(t){delete this.set[n.createID(t)]},e.prototype.clear=function(){this.set={}},e.prototype.contains=function(t){return this.set[n.createID(t)]==t},e.prototype.isEmpty=function(){return this.size()===0},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAllTo=function(t){for(var r=Object.keys(this.set),l=r.length,g=0;g<l;g++)t.push(this.set[r[g]])},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAll=function(t){for(var r=t.length,l=0;l<r;l++){var g=t[l];this.add(g)}},N.exports=e}),(function(N,m,v){var n=(function(){function l(g,o){for(var d=0;d<o.length;d++){var i=o[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(g,i.key,i)}}return O(l,"defineProperties"),function(g,o,d){return o&&l(g.prototype,o),d&&l(g,d),g}})();function e(l,g){if(!(l instanceof g))throw new TypeError("Cannot call a class as a function")}O(e,"_classCallCheck");var t=v(11),r=(function(){function l(g,o){e(this,l),(o!==null||o!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var d=void 0;g instanceof t?d=g.size():d=g.length,this._quicksort(g,0,d-1)}return O(l,"Quicksort"),n(l,[{key:"_quicksort",value:O(function(o,d,i){if(d<i){var a=this._partition(o,d,i);this._quicksort(o,d,a),this._quicksort(o,a+1,i)}},"_quicksort")},{key:"_partition",value:O(function(o,d,i){for(var a=this._get(o,d),h=d,p=i;;){for(;this.compareFunction(a,this._get(o,p));)p--;for(;this.compareFunction(this._get(o,h),a);)h++;if(h<p)this._swap(o,h,p),h++,p--;else return p}},"_partition")},{key:"_get",value:O(function(o,d){return o instanceof t?o.get_object_at(d):o[d]},"_get")},{key:"_set",value:O(function(o,d,i){o instanceof t?o.set_object_at(d,i):o[d]=i},"_set")},{key:"_swap",value:O(function(o,d,i){var a=this._get(o,d);this._set(o,d,this._get(o,i)),this._set(o,i,a)},"_swap")},{key:"_defaultCompareFunction",value:O(function(o,d){return d>o},"_defaultCompareFunction")}]),l})();N.exports=r}),(function(N,m,v){var n=(function(){function r(l,g){for(var o=0;o<g.length;o++){var d=g[o];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}return O(r,"defineProperties"),function(l,g,o){return g&&r(l.prototype,g),o&&r(l,o),l}})();function e(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}O(e,"_classCallCheck");var t=(function(){function r(l,g){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=l,this.sequence2=g,this.match_score=o,this.mismatch_penalty=d,this.gap_penalty=i,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=new Array(this.jMax);for(var h=0;h<this.jMax;h++)this.grid[a][h]=0}this.tracebackGrid=new Array(this.iMax);for(var p=0;p<this.iMax;p++){this.tracebackGrid[p]=new Array(this.jMax);for(var y=0;y<this.jMax;y++)this.tracebackGrid[p][y]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return O(r,"NeedlemanWunsch"),n(r,[{key:"getScore",value:O(function(){return this.score},"getScore")},{key:"getAlignments",value:O(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:O(function(){for(var g=1;g<this.jMax;g++)this.grid[0][g]=this.grid[0][g-1]+this.gap_penalty,this.tracebackGrid[0][g]=[!1,!1,!0];for(var o=1;o<this.iMax;o++)this.grid[o][0]=this.grid[o-1][0]+this.gap_penalty,this.tracebackGrid[o][0]=[!1,!0,!1];for(var d=1;d<this.iMax;d++)for(var i=1;i<this.jMax;i++){var a=void 0;this.sequence1[d-1]===this.sequence2[i-1]?a=this.grid[d-1][i-1]+this.match_score:a=this.grid[d-1][i-1]+this.mismatch_penalty;var h=this.grid[d-1][i]+this.gap_penalty,p=this.grid[d][i-1]+this.gap_penalty,y=[a,h,p],D=this.arrayAllMaxIndexes(y);this.grid[d][i]=y[D[0]],this.tracebackGrid[d][i]=[D.includes(0),D.includes(1),D.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:O(function(){var g=[];for(g.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});g[0];){var o=g[0],d=this.tracebackGrid[o.pos[0]][o.pos[1]];d[0]&&g.push({pos:[o.pos[0]-1,o.pos[1]-1],seq1:this.sequence1[o.pos[0]-1]+o.seq1,seq2:this.sequence2[o.pos[1]-1]+o.seq2}),d[1]&&g.push({pos:[o.pos[0]-1,o.pos[1]],seq1:this.sequence1[o.pos[0]-1]+o.seq1,seq2:"-"+o.seq2}),d[2]&&g.push({pos:[o.pos[0],o.pos[1]-1],seq1:"-"+o.seq1,seq2:this.sequence2[o.pos[1]-1]+o.seq2}),o.pos[0]===0&&o.pos[1]===0&&this.alignments.push({sequence1:o.seq1,sequence2:o.seq2}),g.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:O(function(g,o){for(var d=[],i=-1;(i=g.indexOf(o,i+1))!==-1;)d.push(i);return d},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:O(function(g){return this.getAllIndexes(g,Math.max.apply(null,g))},"arrayAllMaxIndexes")}]),r})();N.exports=t}),(function(N,m,v){var n=O(function(){},"layoutBase");n.FDLayout=v(18),n.FDLayoutConstants=v(7),n.FDLayoutEdge=v(19),n.FDLayoutNode=v(20),n.DimensionD=v(21),n.HashMap=v(22),n.HashSet=v(23),n.IGeometry=v(8),n.IMath=v(9),n.Integer=v(10),n.Point=v(12),n.PointD=v(4),n.RandomSeed=v(16),n.RectangleD=v(13),n.Transform=v(17),n.UniqueIDGeneretor=v(14),n.Quicksort=v(24),n.LinkedList=v(11),n.LGraphObject=v(2),n.LGraph=v(5),n.LEdge=v(1),n.LGraphManager=v(6),n.LNode=v(3),n.Layout=v(15),n.LayoutConstants=v(0),n.NeedlemanWunsch=v(25),N.exports=n}),(function(N,m,v){function n(){this.listeners=[]}O(n,"Emitter");var e=n.prototype;e.addListener=function(t,r){this.listeners.push({event:t,callback:r})},e.removeListener=function(t,r){for(var l=this.listeners.length;l>=0;l--){var g=this.listeners[l];g.event===t&&g.callback===r&&this.listeners.splice(l,1)}},e.emit=function(t,r){for(var l=0;l<this.listeners.length;l++){var g=this.listeners[l];t===g.event&&g.callback(r)}},N.exports=n})])})}}),nt=j({"../../node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js"(w,X){O((function(m,v){typeof w=="object"&&typeof X=="object"?X.exports=v(it()):typeof define=="function"&&define.amd?define(["layout-base"],v):typeof w=="object"?w.coseBase=v(it()):m.coseBase=v(m.layoutBase)}),"webpackUniversalModuleDefinition")(w,function(N){return(function(m){var v={};function n(e){if(v[e])return v[e].exports;var t=v[e]={i:e,l:!1,exports:{}};return m[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return O(n,"__webpack_require__"),n.m=m,n.c=v,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?O(function(){return e.default},"getDefault"):O(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)})([(function(m,v){m.exports=N}),(function(m,v,n){var e=n(0).FDLayoutConstants;function t(){}O(t,"CoSEConstants");for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,m.exports=t}),(function(m,v,n){var e=n(0).FDLayoutEdge;function t(l,g,o){e.call(this,l,g,o)}O(t,"CoSEEdge"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];m.exports=t}),(function(m,v,n){var e=n(0).LGraph;function t(l,g,o){e.call(this,l,g,o)}O(t,"CoSEGraph"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];m.exports=t}),(function(m,v,n){var e=n(0).LGraphManager;function t(l){e.call(this,l)}O(t,"CoSEGraphManager"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];m.exports=t}),(function(m,v,n){var e=n(0).FDLayoutNode,t=n(0).IMath;function r(g,o,d,i){e.call(this,g,o,d,i)}O(r,"CoSENode"),r.prototype=Object.create(e.prototype);for(var l in e)r[l]=e[l];r.prototype.move=function(){var g=this.graphManager.getLayout();this.displacementX=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(g,o){for(var d=this.getChild().getNodes(),i,a=0;a<d.length;a++)i=d[a],i.getChild()==null?(i.moveBy(g,o),i.displacementX+=g,i.displacementY+=o):i.propogateDisplacementToChildren(g,o)},r.prototype.setPred1=function(g){this.pred1=g},r.prototype.getPred1=function(){return pred1},r.prototype.getPred2=function(){return pred2},r.prototype.setNext=function(g){this.next=g},r.prototype.getNext=function(){return next},r.prototype.setProcessed=function(g){this.processed=g},r.prototype.isProcessed=function(){return processed},m.exports=r}),(function(m,v,n){var e=n(0).FDLayout,t=n(4),r=n(3),l=n(5),g=n(2),o=n(1),d=n(0).FDLayoutConstants,i=n(0).LayoutConstants,a=n(0).Point,h=n(0).PointD,p=n(0).Layout,y=n(0).Integer,D=n(0).IGeometry,u=n(0).LGraph,L=n(0).Transform;function E(){e.call(this),this.toBeTiled={}}O(E,"CoSELayout"),E.prototype=Object.create(e.prototype);for(var I in e)E[I]=e[I];E.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},E.prototype.newGraph=function(s){return new r(null,this.graphManager,s)},E.prototype.newNode=function(s){return new l(this.graphManager,s)},E.prototype.newEdge=function(s){return new g(null,null,s)},E.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=d.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=d.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=d.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},E.prototype.layout=function(){var s=i.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},E.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(C){return f.has(C)});this.graphManager.setAllNodesToApplyGravitation(c)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(T){return f.has(T)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c<s.length;c++){var T=s[c].rect,A=s[c].id;f[A]={id:A,x:T.getCenterX(),y:T.getCenterY(),w:T.width,h:T.height}}return f},E.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(d.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},E.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],f,c=this.graphManager.getGraphs(),T=c.length,A;for(A=0;A<T;A++)f=c[A],f.updateConnected(),f.isConnected||(s=s.concat(f.getNodes()));return s},E.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var f=new Set,c;for(c=0;c<s.length;c++){var T=s[c];if(!f.has(T)){var A=T.getSource(),C=T.getTarget();if(A==C)T.getBendpoints().push(new h),T.getBendpoints().push(new h),this.createDummyNodesForBendpoints(T),f.add(T);else{var M=[];if(M=M.concat(A.getEdgeListToNode(C)),M=M.concat(C.getEdgeListToNode(A)),!f.has(M[0])){if(M.length>1){var R;for(R=0;R<M.length;R++){var G=M[R];G.getBendpoints().push(new h),this.createDummyNodesForBendpoints(G)}}M.forEach(function(_){f.add(_)})}}}if(f.size==s.length)break}},E.prototype.positionNodesRadially=function(s){for(var f=new a(0,0),c=Math.ceil(Math.sqrt(s.length)),T=0,A=0,C=0,M=new h(0,0),R=0;R<s.length;R++){R%c==0&&(C=0,A=T,R!=0&&(A+=o.DEFAULT_COMPONENT_SEPERATION),T=0);var G=s[R],_=p.findCenterOfTree(G);f.x=C,f.y=A,M=E.radialLayout(G,_,f),M.y>T&&(T=Math.floor(M.y)),C=Math.floor(M.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new h(i.WORLD_CENTER_X-M.x/2,i.WORLD_CENTER_Y-M.y/2))},E.radialLayout=function(s,f,c){var T=Math.max(this.maxDiagonalInTree(s),o.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(f,null,0,359,0,T);var A=u.calculateBounds(s),C=new L;C.setDeviceOrgX(A.getMinX()),C.setDeviceOrgY(A.getMinY()),C.setWorldOrgX(c.x),C.setWorldOrgY(c.y);for(var M=0;M<s.length;M++){var R=s[M];R.transform(C)}var G=new h(A.getMaxX(),A.getMaxY());return C.inverseTransformPoint(G)},E.branchRadialLayout=function(s,f,c,T,A,C){var M=(T-c+1)/2;M<0&&(M+=180);var R=(M+c)%360,G=R*D.TWO_PI/360,_=A*Math.cos(G),Y=A*Math.sin(G);s.setCenter(_,Y);var x=[];x=x.concat(s.getEdges());var F=x.length;f!=null&&F--;for(var S=0,P=x.length,U,b=s.getEdgesBetween(f);b.length>1;){var H=b[0];b.splice(0,1);var W=x.indexOf(H);W>=0&&x.splice(W,1),P--,F--}f!=null?U=(x.indexOf(b[0])+1)%P:U=0;for(var B=Math.abs(T-c)/F,k=U;S!=F;k=++k%P){var et=x[k].getOtherEnd(s);if(et!=f){var rt=(c+S*B)%360,st=(rt+B)%360;E.branchRadialLayout(et,s,rt,st,A+C,C),S++}}},E.maxDiagonalInTree=function(s){for(var f=y.MIN_VALUE,c=0;c<s.length;c++){var T=s[c],A=T.getDiagonal();A>f&&(f=A)}return f},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],T=this.graphManager.getAllNodes(),A=0;A<T.length;A++){var C=T[A],M=C.getParent();this.getNodeDegreeWithChildren(C)===0&&(M.id==null||!this.getToBeTiled(M))&&c.push(C)}for(var A=0;A<c.length;A++){var C=c[A],R=C.getParent().id;typeof f[R]>"u"&&(f[R]=[]),f[R]=f[R].concat(C)}Object.keys(f).forEach(function(G){if(f[G].length>1){var _="DummyCompound_"+G;s.memberGroups[_]=f[G];var Y=f[G][0].getParent(),x=new l(s.graphManager);x.id=_,x.paddingLeft=Y.paddingLeft||0,x.paddingRight=Y.paddingRight||0,x.paddingBottom=Y.paddingBottom||0,x.paddingTop=Y.paddingTop||0,s.idToDummyNode[_]=x;var F=s.getGraphManager().add(s.newGraph(),x),S=Y.getChild();S.add(x);for(var P=0;P<f[G].length;P++){var U=f[G][P];S.remove(U),F.add(U)}}})},E.prototype.clearCompounds=function(){var s={},f={};this.performDFSOnCompounds();for(var c=0;c<this.compoundOrder.length;c++)f[this.compoundOrder[c].id]=this.compoundOrder[c],s[this.compoundOrder[c].id]=[].concat(this.compoundOrder[c].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[c].getChild()),this.compoundOrder[c].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,f)},E.prototype.clearZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(c){var T=s.idToDummyNode[c];f[c]=s.tileNodes(s.memberGroups[c],T.paddingLeft+T.paddingRight),T.rect.width=f[c].width,T.rect.height=f[c].height})},E.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var f=this.compoundOrder[s],c=f.id,T=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,T,A)}},E.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var T=s.idToDummyNode[c],A=T.paddingLeft,C=T.paddingTop;s.adjustLocations(f[c],T.rect.x,T.rect.y,A,C)})},E.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var T=c.getNodes(),A=0;A<T.length;A++){var C=T[A];if(this.getNodeDegree(C)>0)return this.toBeTiled[f]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},E.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,T=0;T<f.length;T++){var A=f[T];A.getSource().id!==A.getTarget().id&&(c=c+1)}return c},E.prototype.getNodeDegreeWithChildren=function(s){var f=this.getNodeDegree(s);if(s.getChild()==null)return f;for(var c=s.getChild().getNodes(),T=0;T<c.length;T++){var A=c[T];f+=this.getNodeDegreeWithChildren(A)}return f},E.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},E.prototype.fillCompexOrderByDFS=function(s){for(var f=0;f<s.length;f++){var c=s[f];c.getChild()!=null&&this.fillCompexOrderByDFS(c.getChild().getNodes()),this.getToBeTiled(c)&&this.compoundOrder.push(c)}},E.prototype.adjustLocations=function(s,f,c,T,A){f+=T,c+=A;for(var C=f,M=0;M<s.rows.length;M++){var R=s.rows[M];f=C;for(var G=0,_=0;_<R.length;_++){var Y=R[_];Y.rect.x=f,Y.rect.y=c,f+=Y.rect.width+s.horizontalPadding,Y.rect.height>G&&(G=Y.rect.height)}c+=G+s.verticalPadding}},E.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(T){var A=f[T];c.tiledMemberPack[T]=c.tileNodes(s[T],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[T].width,A.rect.height=c.tiledMemberPack[T].height})},E.prototype.tileNodes=function(s,f){var c=o.TILING_PADDING_VERTICAL,T=o.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:T};s.sort(function(R,G){return R.rect.width*R.rect.height>G.rect.width*G.rect.height?-1:R.rect.width*R.rect.height<G.rect.width*G.rect.height?1:0});for(var C=0;C<s.length;C++){var M=s[C];A.rows.length==0?this.insertNodeToRow(A,M,0,f):this.canAddHorizontal(A,M.rect.width,M.rect.height)?this.insertNodeToRow(A,M,this.getShortestRowIndex(A),f):this.insertNodeToRow(A,M,A.rows.length,f),this.shiftToLastRow(A)}return A},E.prototype.insertNodeToRow=function(s,f,c,T){var A=T;if(c==s.rows.length){var C=[];s.rows.push(C),s.rowWidth.push(A),s.rowHeight.push(0)}var M=s.rowWidth[c]+f.rect.width;s.rows[c].length>0&&(M+=s.horizontalPadding),s.rowWidth[c]=M,s.width<M&&(s.width=M);var R=f.rect.height;c>0&&(R+=s.verticalPadding);var G=0;R>s.rowHeight[c]&&(G=s.rowHeight[c],s.rowHeight[c]=R,G=s.rowHeight[c]-G),s.height+=G,s.rows[c].push(f)},E.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,T=0;T<s.rows.length;T++)s.rowWidth[T]<c&&(f=T,c=s.rowWidth[T]);return f},E.prototype.getLongestRowIndex=function(s){for(var f=-1,c=Number.MIN_VALUE,T=0;T<s.rows.length;T++)s.rowWidth[T]>c&&(f=T,c=s.rowWidth[T]);return f},E.prototype.canAddHorizontal=function(s,f,c){var T=this.getShortestRowIndex(s);if(T<0)return!0;var A=s.rowWidth[T];if(A+s.horizontalPadding+f<=s.width)return!0;var C=0;s.rowHeight[T]<c&&T>0&&(C=c+s.verticalPadding-s.rowHeight[T]);var M;s.width-A>=f+s.horizontalPadding?M=(s.height+C)/(A+f+s.horizontalPadding):M=(s.height+C)/s.width,C=c+s.verticalPadding;var R;return s.width<f?R=(s.height+C)/f:R=(s.height+C)/s.width,R<1&&(R=1/R),M<1&&(M=1/M),M<R},E.prototype.shiftToLastRow=function(s){var f=this.getLongestRowIndex(s),c=s.rowWidth.length-1,T=s.rows[f],A=T[T.length-1],C=A.width+s.horizontalPadding;if(s.width-s.rowWidth[c]>C&&f!=c){T.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-C,s.rowWidth[c]=s.rowWidth[c]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var M=Number.MIN_VALUE,R=0;R<T.length;R++)T[R].height>M&&(M=T[R].height);f>0&&(M+=s.verticalPadding);var G=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=M,s.rowHeight[c]<A.height+s.verticalPadding&&(s.rowHeight[c]=A.height+s.verticalPadding);var _=s.rowHeight[f]+s.rowHeight[c];s.height+=_-G,this.shiftToLastRow(s)}},E.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},E.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},E.prototype.reduceTrees=function(){for(var s=[],f=!0,c;f;){var T=this.graphManager.getAllNodes(),A=[];f=!1;for(var C=0;C<T.length;C++)c=T[C],c.getEdges().length==1&&!c.getEdges()[0].isInterGraph&&c.getChild()==null&&(A.push([c,c.getEdges()[0],c.getOwner()]),f=!0);if(f==!0){for(var M=[],R=0;R<A.length;R++)A[R][0].getEdges().length==1&&(M.push(A[R]),A[R][0].getOwner().remove(A[R][0]));s.push(M),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},E.prototype.growTree=function(s){for(var f=s.length,c=s[f-1],T,A=0;A<c.length;A++)T=c[A],this.findPlaceforPrunedNode(T),T[2].add(T[0]),T[2].add(T[1],T[1].source,T[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},E.prototype.findPlaceforPrunedNode=function(s){var f,c,T=s[0];T==s[1].source?c=s[1].target:c=s[1].source;var A=c.startX,C=c.finishX,M=c.startY,R=c.finishY,G=0,_=0,Y=0,x=0,F=[G,Y,_,x];if(M>0)for(var S=A;S<=C;S++)F[0]+=this.grid[S][M-1].length+this.grid[S][M].length-1;if(C<this.grid.length-1)for(var S=M;S<=R;S++)F[1]+=this.grid[C+1][S].length+this.grid[C][S].length-1;if(R<this.grid[0].length-1)for(var S=A;S<=C;S++)F[2]+=this.grid[S][R+1].length+this.grid[S][R].length-1;if(A>0)for(var S=M;S<=R;S++)F[3]+=this.grid[A-1][S].length+this.grid[A][S].length-1;for(var P=y.MAX_VALUE,U,b,H=0;H<F.length;H++)F[H]<P?(P=F[H],U=1,b=H):F[H]==P&&U++;if(U==3&&P==0)F[0]==0&&F[1]==0&&F[2]==0?f=1:F[0]==0&&F[1]==0&&F[3]==0?f=0:F[0]==0&&F[2]==0&&F[3]==0?f=3:F[1]==0&&F[2]==0&&F[3]==0&&(f=2);else if(U==2&&P==0){var W=Math.floor(Math.random()*2);F[0]==0&&F[1]==0?W==0?f=0:f=1:F[0]==0&&F[2]==0?W==0?f=0:f=2:F[0]==0&&F[3]==0?W==0?f=0:f=3:F[1]==0&&F[2]==0?W==0?f=1:f=2:F[1]==0&&F[3]==0?W==0?f=1:f=3:W==0?f=2:f=3}else if(U==4&&P==0){var W=Math.floor(Math.random()*4);f=W}else f=b;f==0?T.setCenter(c.getCenterX(),c.getCenterY()-c.getHeight()/2-d.DEFAULT_EDGE_LENGTH-T.getHeight()/2):f==1?T.setCenter(c.getCenterX()+c.getWidth()/2+d.DEFAULT_EDGE_LENGTH+T.getWidth()/2,c.getCenterY()):f==2?T.setCenter(c.getCenterX(),c.getCenterY()+c.getHeight()/2+d.DEFAULT_EDGE_LENGTH+T.getHeight()/2):T.setCenter(c.getCenterX()-c.getWidth()/2-d.DEFAULT_EDGE_LENGTH-T.getWidth()/2,c.getCenterY())},m.exports=E}),(function(m,v,n){var e={};e.layoutBase=n(0),e.CoSEConstants=n(1),e.CoSEEdge=n(2),e.CoSEGraph=n(3),e.CoSEGraphManager=n(4),e.CoSELayout=n(6),e.CoSENode=n(5),m.exports=e})])})}}),lt=j({"../../node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.34.0/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js"(w,X){O((function(m,v){typeof w=="object"&&typeof X=="object"?X.exports=v(nt()):typeof define=="function"&&define.amd?define(["cose-base"],v):typeof w=="object"?w.cytoscapeCoseBilkent=v(nt()):m.cytoscapeCoseBilkent=v(m.coseBase)}),"webpackUniversalModuleDefinition")(w,function(N){return(function(m){var v={};function n(e){if(v[e])return v[e].exports;var t=v[e]={i:e,l:!1,exports:{}};return m[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return O(n,"__webpack_require__"),n.m=m,n.c=v,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?O(function(){return e.default},"getDefault"):O(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)})([(function(m,v){m.exports=N}),(function(m,v,n){var e=n(0).layoutBase.LayoutConstants,t=n(0).layoutBase.FDLayoutConstants,r=n(0).CoSEConstants,l=n(0).CoSELayout,g=n(0).CoSENode,o=n(0).layoutBase.PointD,d=n(0).layoutBase.DimensionD,i={ready:O(function(){},"ready"),stop:O(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function a(D,u){var L={};for(var E in D)L[E]=D[E];for(var E in u)L[E]=u[E];return L}O(a,"extend");function h(D){this.options=a(i,D),p(this.options)}O(h,"_CoSELayout");var p=O(function(u){u.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=u.nodeRepulsion),u.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=u.idealEdgeLength),u.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=u.edgeElasticity),u.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.nestingFactor),u.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=u.gravity),u.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=u.numIter),u.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=u.gravityRange),u.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.gravityCompound),u.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.gravityRangeCompound),u.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.initialEnergyOnIncremental),u.quality=="draft"?e.QUALITY=0:u.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=u.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!u.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=u.animate,r.TILE=u.tile,r.TILING_PADDING_VERTICAL=typeof u.tilingPaddingVertical=="function"?u.tilingPaddingVertical.call():u.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof u.tilingPaddingHorizontal=="function"?u.tilingPaddingHorizontal.call():u.tilingPaddingHorizontal},"getUserOptions");h.prototype.run=function(){var D,u,L=this.options;this.idToLNode={};var E=this.layout=new l,I=this;I.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var s=E.newGraphManager();this.gm=s;var f=this.options.eles.nodes(),c=this.options.eles.edges();this.root=s.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(f),E);for(var T=0;T<c.length;T++){var A=c[T],C=this.idToLNode[A.data("source")],M=this.idToLNode[A.data("target")];if(C!==M&&C.getEdgesBetween(M).length==0){var R=s.add(E.newEdge(),C,M);R.id=A.id()}}var G=O(function(x,F){typeof x=="number"&&(x=F);var S=x.data("id"),P=I.idToLNode[S];return{x:P.getRect().getCenterX(),y:P.getRect().getCenterY()}},"getPositions"),_=O(function Y(){for(var x=O(function(){L.fit&&L.cy.fit(L.eles,L.padding),D||(D=!0,I.cy.one("layoutready",L.ready),I.cy.trigger({type:"layoutready",layout:I}))},"afterReposition"),F=I.options.refresh,S,P=0;P<F&&!S;P++)S=I.stopped||I.layout.tick();if(S){E.checkLayoutSuccess()&&!E.isSubLayout&&E.doPostLayout(),E.tilingPostLayout&&E.tilingPostLayout(),E.isLayoutFinished=!0,I.options.eles.nodes().positions(G),x(),I.cy.one("layoutstop",I.options.stop),I.cy.trigger({type:"layoutstop",layout:I}),u&&cancelAnimationFrame(u),D=!1;return}var U=I.layout.getPositionsData();L.eles.nodes().positions(function(b,H){if(typeof b=="number"&&(b=H),!b.isParent()){for(var W=b.id(),B=U[W],k=b;B==null&&(B=U[k.data("parent")]||U["DummyCompound_"+k.data("parent")],U[W]=B,k=k.parent()[0],k!=null););return B!=null?{x:B.x,y:B.y}:{x:b.position("x"),y:b.position("y")}}}),x(),u=requestAnimationFrame(Y)},"iterateAnimated");return E.addListener("layoutstarted",function(){I.options.animate==="during"&&(u=requestAnimationFrame(_))}),E.runLayout(),this.options.animate!=="during"&&(I.options.eles.nodes().not(":parent").layoutPositions(I,I.options,G),D=!1),this},h.prototype.getTopMostNodes=function(D){for(var u={},L=0;L<D.length;L++)u[D[L].id()]=!0;var E=D.filter(function(I,s){typeof I=="number"&&(I=s);for(var f=I.parent()[0];f!=null;){if(u[f.id()])return!1;f=f.parent()[0]}return!0});return E},h.prototype.processChildrenList=function(D,u,L){for(var E=u.length,I=0;I<E;I++){var s=u[I],f=s.children(),c,T=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(s.outerWidth()!=null&&s.outerHeight()!=null?c=D.add(new g(L.graphManager,new o(s.position("x")-T.w/2,s.position("y")-T.h/2),new d(parseFloat(T.w),parseFloat(T.h)))):c=D.add(new g(this.graphManager)),c.id=s.data("id"),c.paddingLeft=parseInt(s.css("padding")),c.paddingTop=parseInt(s.css("padding")),c.paddingRight=parseInt(s.css("padding")),c.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var A=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,C=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,M=s.css("text-halign");c.labelWidth=A,c.labelHeight=C,c.labelPos=M}if(this.idToLNode[s.data("id")]=c,isNaN(c.rect.x)&&(c.rect.x=0),isNaN(c.rect.y)&&(c.rect.y=0),f!=null&&f.length>0){var R;R=L.getGraphManager().add(L.newGraph(),c),this.processChildrenList(R,f,L)}}},h.prototype.stop=function(){return this.stopped=!0,this};var y=O(function(u){u("layout","cose-bilkent",h)},"register");typeof cytoscape<"u"&&y(cytoscape),m.exports=y})])})}}),gt=at(lt());ot.use(gt.default);function Q(w,X){w.forEach(N=>{const m={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(v=>{["id","label","height","width","padding","x","y"].includes(v)||(m[v]=N[v])}),X.add({group:"nodes",data:m,position:{x:N.x??0,y:N.y??0}})})}O(Q,"addNodes");V(Q,"addNodes");function $(w,X){w.forEach(N=>{const m={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(v=>{["id","start","end"].includes(v)||(m[v]=N[v])}),X.add({group:"edges",data:m})})}O($,"addEdges");V($,"addEdges");function K(w){return new Promise(X=>{const N=ht("body").append("div").attr("id","cy").attr("style","display:none"),m=ot({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),Q(w.nodes,m),$(w.edges,m),m.nodes().forEach(function(n){n.layoutDimensions=()=>{const e=n.data();return{w:e.width,h:e.height}}});const v={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};m.layout(v).run(),m.ready(n=>{Z.info("Cytoscape ready",n),X(m)})})}O(K,"createCytoscapeInstance");V(K,"createCytoscapeInstance");function q(w){return w.nodes().map(X=>{const N=X.data(),m=X.position(),v={id:N.id,x:m.x,y:m.y};return Object.keys(N).forEach(n=>{n!=="id"&&(v[n]=N[n])}),v})}O(q,"extractPositionedNodes");V(q,"extractPositionedNodes");function J(w){return w.edges().map(X=>{const N=X.data(),m=X._private.rscratch,v={id:N.id,source:N.source,target:N.target,startX:m.startX,startY:m.startY,midX:m.midX,midY:m.midY,endX:m.endX,endY:m.endY};return Object.keys(N).forEach(n=>{["id","source","target"].includes(n)||(v[n]=N[n])}),v})}O(J,"extractPositionedEdges");V(J,"extractPositionedEdges");async function z(w,X){Z.debug("Starting cose-bilkent layout algorithm");try{tt(w);const N=await K(w),m=q(N),v=J(N);return Z.debug(`Layout completed: ${m.length} nodes, ${v.length} edges`),{nodes:m,edges:v}}catch(N){throw Z.error("Error in cose-bilkent layout algorithm:",N),N}}O(z,"executeCoseBilkentLayout");V(z,"executeCoseBilkentLayout");function tt(w){if(!w)throw new Error("Layout data is required");if(!w.config)throw new Error("Configuration is required in layout data");if(!w.rootNode)throw new Error("Root node is required");if(!w.nodes||!Array.isArray(w.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(w.edges))throw new Error("Edges array is required in layout data");return!0}O(tt,"validateLayoutData");V(tt,"validateLayoutData");var ut=V(async(w,X,{insertCluster:N,insertEdge:m,insertEdgeLabel:v,insertMarkers:n,insertNode:e,log:t,positionEdgeLabel:r},{algorithm:l})=>{const g={},o={},d=X.select("g");n(d,w.markers,w.type,w.diagramId);const i=d.insert("g").attr("class","subgraphs"),a=d.insert("g").attr("class","edgePaths"),h=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(w.nodes.map(async u=>{if(u.isGroup){const L={...u};o[u.id]=L,g[u.id]=L,await N(i,u)}else{const L={...u};g[u.id]=L;const E=await e(p,u,{config:w.config,dir:w.direction||"TB"}),I=E.node().getBBox();L.width=I.width,L.height=I.height,L.domId=E,t.debug(`Node ${u.id} dimensions: ${I.width}x${I.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const y={...w,nodes:w.nodes.map(u=>{const L=g[u.id];return{...u,width:L.width,height:L.height}})},D=await z(y,w.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const L=g[u.id];L!=null&&L.domId&&(L.domId.attr("transform",`translate(${u.x}, ${u.y})`),L.x=u.x,L.y=u.y,t.debug(`Positioned node ${L.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const L=w.edges.find(E=>E.id===u.id);L&&(L.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(w.edges.map(async u=>{await v(h,u);const L=g[u.start??""],E=g[u.end??""];if(L&&E){const I=D.edges.find(s=>s.id===u.id);if(I){t.debug("APA01 positionedEdge",I);const s={...u},f=m(a,s,o,w.type,L,E,w.diagramId);r(s,f)}else{const s={...u,points:[{x:L.x||0,y:L.y||0},{x:E.x||0,y:E.y||0}]},f=m(a,s,o,w.type,L,E,w.diagramId);r(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Lt=ut;export{Lt as render};
|
|
1
|
+
import{c as ot}from"./chunk-7XDTSPCN-rYhyRTOx.js";import{_ as V,l as Z}from"./render-O7CIS3YK-BUZqrLRp.js";import{a as at,_ as O,b as j}from"./mermaid-layout-elk.core-B1-o2tyd.js";import{s as ht}from"./transform-Bd_a5eGM.js";import"./main-jV_OilRs.js";import"./index-C9fscARj.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var it=j({"../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js"(w,X){O((function(m,v){typeof w=="object"&&typeof X=="object"?X.exports=v():typeof define=="function"&&define.amd?define([],v):typeof w=="object"?w.layoutBase=v():m.layoutBase=v()}),"webpackUniversalModuleDefinition")(w,function(){return(function(N){var m={};function v(n){if(m[n])return m[n].exports;var e=m[n]={i:n,l:!1,exports:{}};return N[n].call(e.exports,e,e.exports,v),e.l=!0,e.exports}return O(v,"__webpack_require__"),v.m=N,v.c=m,v.i=function(n){return n},v.d=function(n,e,t){v.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},v.n=function(n){var e=n&&n.__esModule?O(function(){return n.default},"getDefault"):O(function(){return n},"getModuleExports");return v.d(e,"a",e),e},v.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},v.p="",v(v.s=26)})([(function(N,m,v){function n(){}O(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,N.exports=n}),(function(N,m,v){var n=v(2),e=v(8),t=v(9);function r(g,o,d){n.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=o}O(r,"LEdge"),r.prototype=Object.create(n.prototype);for(var l in n)r[l]=n[l];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(g,o){for(var d=this.getOtherEnd(g),i=o.getGraphManager().getRoot();;){if(d.getOwner()==o)return d;if(d.getOwner()==i)break;d=d.getOwner().getParent()}return null},r.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=r}),(function(N,m,v){function n(e){this.vGraphObject=e}O(n,"LGraphObject"),N.exports=n}),(function(N,m,v){var n=v(2),e=v(10),t=v(13),r=v(0),l=v(16),g=v(4);function o(i,a,h,p){h==null&&p==null&&(p=a),n.call(this,p),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=i,h!=null&&a!=null?this.rect=new t(a.x,a.y,h.width,h.height):this.rect=new t}O(o,"LNode"),o.prototype=Object.create(n.prototype);for(var d in n)o[d]=n[d];o.prototype.getEdges=function(){return this.edges},o.prototype.getChild=function(){return this.child},o.prototype.getOwner=function(){return this.owner},o.prototype.getWidth=function(){return this.rect.width},o.prototype.setWidth=function(i){this.rect.width=i},o.prototype.getHeight=function(){return this.rect.height},o.prototype.setHeight=function(i){this.rect.height=i},o.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},o.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},o.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},o.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},o.prototype.getRect=function(){return this.rect},o.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},o.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},o.prototype.setRect=function(i,a){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=a.width,this.rect.height=a.height},o.prototype.setCenter=function(i,a){this.rect.x=i-this.rect.width/2,this.rect.y=a-this.rect.height/2},o.prototype.setLocation=function(i,a){this.rect.x=i,this.rect.y=a},o.prototype.moveBy=function(i,a){this.rect.x+=i,this.rect.y+=a},o.prototype.getEdgeListToNode=function(i){var a=[],h=this;return h.edges.forEach(function(p){if(p.target==i){if(p.source!=h)throw"Incorrect edge source!";a.push(p)}}),a},o.prototype.getEdgesBetween=function(i){var a=[],h=this;return h.edges.forEach(function(p){if(!(p.source==h||p.target==h))throw"Incorrect edge source and/or target";(p.target==i||p.source==i)&&a.push(p)}),a},o.prototype.getNeighborsList=function(){var i=new Set,a=this;return a.edges.forEach(function(h){if(h.source==a)i.add(h.target);else{if(h.target!=a)throw"Incorrect incidency!";i.add(h.source)}}),i},o.prototype.withChildren=function(){var i=new Set,a,h;if(i.add(this),this.child!=null)for(var p=this.child.getNodes(),y=0;y<p.length;y++)a=p[y],h=a.withChildren(),h.forEach(function(D){i.add(D)});return i},o.prototype.getNoOfChildren=function(){var i=0,a;if(this.child==null)i=1;else for(var h=this.child.getNodes(),p=0;p<h.length;p++)a=h[p],i+=a.getNoOfChildren();return i==0&&(i=1),i},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},o.prototype.scatter=function(){var i,a,h=-r.INITIAL_WORLD_BOUNDARY,p=r.INITIAL_WORLD_BOUNDARY;i=r.WORLD_CENTER_X+l.nextDouble()*(p-h)+h;var y=-r.INITIAL_WORLD_BOUNDARY,D=r.INITIAL_WORLD_BOUNDARY;a=r.WORLD_CENTER_Y+l.nextDouble()*(D-y)+y,this.rect.x=i,this.rect.y=a},o.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var i=this.getChild();if(i.updateBounds(!0),this.rect.x=i.getLeft(),this.rect.y=i.getTop(),this.setWidth(i.getRight()-i.getLeft()),this.setHeight(i.getBottom()-i.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.getRight()-i.getLeft(),h=i.getBottom()-i.getTop();this.labelWidth>a&&(this.rect.x-=(this.labelWidth-a)/2,this.setWidth(this.labelWidth)),this.labelHeight>h&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-h)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-h),this.setHeight(this.labelHeight))}}},o.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},o.prototype.transform=function(i){var a=this.rect.x;a>r.WORLD_BOUNDARY?a=r.WORLD_BOUNDARY:a<-r.WORLD_BOUNDARY&&(a=-r.WORLD_BOUNDARY);var h=this.rect.y;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var p=new g(a,h),y=i.inverseTransformPoint(p);this.setLocation(y.x,y.y)},o.prototype.getLeft=function(){return this.rect.x},o.prototype.getRight=function(){return this.rect.x+this.rect.width},o.prototype.getTop=function(){return this.rect.y},o.prototype.getBottom=function(){return this.rect.y+this.rect.height},o.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=o}),(function(N,m,v){function n(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}O(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=n}),(function(N,m,v){var n=v(2),e=v(10),t=v(0),r=v(6),l=v(3),g=v(1),o=v(13),d=v(12),i=v(11);function a(p,y,D){n.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,y!=null&&y instanceof r?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}O(a,"LGraph"),a.prototype=Object.create(n.prototype);for(var h in n)a[h]=n[h];a.prototype.getNodes=function(){return this.nodes},a.prototype.getEdges=function(){return this.edges},a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getParent=function(){return this.parent},a.prototype.getLeft=function(){return this.left},a.prototype.getRight=function(){return this.right},a.prototype.getTop=function(){return this.top},a.prototype.getBottom=function(){return this.bottom},a.prototype.isConnected=function(){return this.isConnected},a.prototype.add=function(p,y,D){if(y==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var L=p;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(y.owner==D.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=D.owner?null:(L.source=y,L.target=D,L.isInterGraph=!1,this.getEdges().push(L),y.edges.push(L),D!=y&&D.edges.push(L),L)}},a.prototype.remove=function(p){var y=p;if(p instanceof l){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=y.edges.slice(),u,L=D.length,E=0;E<L;E++)u=D[E],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var I=this.nodes.indexOf(y);if(I==-1)throw"Node not in owner node list!";this.nodes.splice(I,1)}else if(p instanceof g){var u=p;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var s=u.source.edges.indexOf(u),f=u.target.edges.indexOf(u);if(!(s>-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var I=u.source.owner.getEdges().indexOf(u);if(I==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(I,1)}},a.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,y=e.MAX_VALUE,D,u,L,E=this.getNodes(),I=E.length,s=0;s<I;s++){var f=E[s];D=f.getTop(),u=f.getLeft(),p>D&&(p=D),y>u&&(y=u)}return p==e.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?L=E[0].getParent().paddingLeft:L=this.margin,this.left=y-L,this.top=p-L,new d(this.left,this.top))},a.prototype.updateBounds=function(p){for(var y=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,L=-e.MAX_VALUE,E,I,s,f,c,T=this.nodes,A=T.length,C=0;C<A;C++){var M=T[C];p&&M.child!=null&&M.updateBounds(),E=M.getLeft(),I=M.getRight(),s=M.getTop(),f=M.getBottom(),y>E&&(y=E),D<I&&(D=I),u>s&&(u=s),L<f&&(L=f)}var R=new o(y,u,D-y,L-u);y==e.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),T[0].getParent().paddingLeft!=null?c=T[0].getParent().paddingLeft:c=this.margin,this.left=R.x-c,this.right=R.x+R.width+c,this.top=R.y-c,this.bottom=R.y+R.height+c},a.calculateBounds=function(p){for(var y=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,L=-e.MAX_VALUE,E,I,s,f,c=p.length,T=0;T<c;T++){var A=p[T];E=A.getLeft(),I=A.getRight(),s=A.getTop(),f=A.getBottom(),y>E&&(y=E),D<I&&(D=I),u>s&&(u=s),L<f&&(L=f)}var C=new o(y,u,D-y,L-u);return C},a.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},a.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},a.prototype.calcEstimatedSize=function(){for(var p=0,y=this.nodes,D=y.length,u=0;u<D;u++){var L=y[u];p+=L.calcEstimatedSize()}return p==0?this.estimatedSize=t.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=p/Math.sqrt(this.nodes.length),this.estimatedSize},a.prototype.updateConnected=function(){var p=this;if(this.nodes.length==0){this.isConnected=!0;return}var y=new i,D=new Set,u=this.nodes[0],L,E,I=u.withChildren();for(I.forEach(function(C){y.push(C),D.add(C)});y.length!==0;){u=y.shift(),L=u.getEdges();for(var s=L.length,f=0;f<s;f++){var c=L[f];if(E=c.getOtherEndInGraph(u,this),E!=null&&!D.has(E)){var T=E.withChildren();T.forEach(function(C){y.push(C),D.add(C)})}}}if(this.isConnected=!1,D.size>=this.nodes.length){var A=0;D.forEach(function(C){C.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=a}),(function(N,m,v){var n,e=v(1);function t(r){n=v(5),this.layout=r,this.graphs=[],this.edges=[]}O(t,"LGraphManager"),t.prototype.addRoot=function(){var r=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(r,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(r,l,g,o,d){if(g==null&&o==null&&d==null){if(r==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return r.parent=l,l.child=r,r}else{d=g,o=l,g=r;var i=o.getOwner(),a=d.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(a!=null&&a.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==a)return g.isInterGraph=!1,i.add(g,o,d);if(g.isInterGraph=!0,g.source=o,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(r){if(r instanceof n){var l=r;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var o,d=g.length,i=0;i<d;i++)o=g[i],l.remove(o);var a=[];a=a.concat(l.getNodes());var h;d=a.length;for(var i=0;i<d;i++)h=a[i],l.remove(h);l==this.rootGraph&&this.setRootGraph(null);var p=this.graphs.indexOf(l);this.graphs.splice(p,1),l.parent=null}else if(r instanceof e){if(o=r,o==null)throw"Edge is null!";if(!o.isInterGraph)throw"Not an inter-graph edge!";if(!(o.source!=null&&o.target!=null))throw"Source and/or target is null!";if(!(o.source.edges.indexOf(o)!=-1&&o.target.edges.indexOf(o)!=-1))throw"Source and/or target doesn't know this edge!";var p=o.source.edges.indexOf(o);if(o.source.edges.splice(p,1),p=o.target.edges.indexOf(o),o.target.edges.splice(p,1),!(o.source.owner!=null&&o.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(o.source.owner.getGraphManager().edges.indexOf(o)==-1)throw"Not in owner graph manager's edge list!";var p=o.source.owner.getGraphManager().edges.indexOf(o);o.source.owner.getGraphManager().edges.splice(p,1)}},t.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},t.prototype.getGraphs=function(){return this.graphs},t.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],l=this.getGraphs(),g=l.length,o=0;o<g;o++)r=r.concat(l[o].getNodes());this.allNodes=r}return this.allNodes},t.prototype.resetAllNodes=function(){this.allNodes=null},t.prototype.resetAllEdges=function(){this.allEdges=null},t.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},t.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],l=this.getGraphs();l.length;for(var g=0;g<l.length;g++)r=r.concat(l[g].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},t.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},t.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},t.prototype.getRoot=function(){return this.rootGraph},t.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},t.prototype.getLayout=function(){return this.layout},t.prototype.isOneAncestorOfOther=function(r,l){if(!(r!=null&&l!=null))throw"assert failed";if(r==l)return!0;var g=r.getOwner(),o;do{if(o=g.getParent(),o==null)break;if(o==l)return!0;if(g=o.getOwner(),g==null)break}while(!0);g=l.getOwner();do{if(o=g.getParent(),o==null)break;if(o==r)return!0;if(g=o.getOwner(),g==null)break}while(!0);return!1},t.prototype.calcLowestCommonAncestors=function(){for(var r,l,g,o,d,i=this.getAllEdges(),a=i.length,h=0;h<a;h++){if(r=i[h],l=r.source,g=r.target,r.lca=null,r.sourceInLca=l,r.targetInLca=g,l==g){r.lca=l.getOwner();continue}for(o=l.getOwner();r.lca==null;){for(r.targetInLca=g,d=g.getOwner();r.lca==null;){if(d==o){r.lca=d;break}if(d==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=d.getParent(),d=r.targetInLca.getOwner()}if(o==this.rootGraph)break;r.lca==null&&(r.sourceInLca=o.getParent(),o=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},t.prototype.calcLowestCommonAncestor=function(r,l){if(r==l)return r.getOwner();var g=r.getOwner();do{if(g==null)break;var o=l.getOwner();do{if(o==null)break;if(o==g)return o;o=o.getParent().getOwner()}while(!0);g=g.getParent().getOwner()}while(!0);return g},t.prototype.calcInclusionTreeDepths=function(r,l){r==null&&l==null&&(r=this.rootGraph,l=1);for(var g,o=r.getNodes(),d=o.length,i=0;i<d;i++)g=o[i],g.inclusionTreeDepth=l,g.child!=null&&this.calcInclusionTreeDepths(g.child,l+1)},t.prototype.includesInvalidEdge=function(){for(var r,l=this.edges.length,g=0;g<l;g++)if(r=this.edges[g],this.isOneAncestorOfOther(r.source,r.target))return!0;return!1},N.exports=t}),(function(N,m,v){var n=v(0);function e(){}O(e,"FDLayoutConstants");for(var t in n)e[t]=n[t];e.MAX_ITERATIONS=2500,e.DEFAULT_EDGE_LENGTH=50,e.DEFAULT_SPRING_STRENGTH=.45,e.DEFAULT_REPULSION_STRENGTH=4500,e.DEFAULT_GRAVITY_STRENGTH=.4,e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,e.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,e.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,e.COOLING_ADAPTATION_FACTOR=.33,e.ADAPTATION_LOWER_NODE_LIMIT=1e3,e.ADAPTATION_UPPER_NODE_LIMIT=5e3,e.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,e.MAX_NODE_DISPLACEMENT=e.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,e.MIN_REPULSION_DIST=e.DEFAULT_EDGE_LENGTH/10,e.CONVERGENCE_CHECK_PERIOD=100,e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,e.MIN_EDGE_LENGTH=1,e.GRID_CALCULATION_CHECK_PERIOD=10,N.exports=e}),(function(N,m,v){var n=v(12);function e(){}O(e,"IGeometry"),e.calcSeparationAmount=function(t,r,l,g){if(!t.intersects(r))throw"assert failed";var o=new Array(2);this.decideDirectionsForOverlappingNodes(t,r,o),l[0]=Math.min(t.getRight(),r.getRight())-Math.max(t.x,r.x),l[1]=Math.min(t.getBottom(),r.getBottom())-Math.max(t.y,r.y),t.getX()<=r.getX()&&t.getRight()>=r.getRight()?l[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?l[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var d=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(d=1);var i=d*l[0],a=l[1]/d;l[0]<a?a=l[0]:i=l[1],l[0]=-1*o[0]*(a/2+g),l[1]=-1*o[1]*(i/2+g)},e.decideDirectionsForOverlappingNodes=function(t,r,l){t.getCenterX()<r.getCenterX()?l[0]=-1:l[0]=1,t.getCenterY()<r.getCenterY()?l[1]=-1:l[1]=1},e.getIntersection2=function(t,r,l){var g=t.getCenterX(),o=t.getCenterY(),d=r.getCenterX(),i=r.getCenterY();if(t.intersects(r))return l[0]=g,l[1]=o,l[2]=d,l[3]=i,!0;var a=t.getX(),h=t.getY(),p=t.getRight(),y=t.getX(),D=t.getBottom(),u=t.getRight(),L=t.getWidthHalf(),E=t.getHeightHalf(),I=r.getX(),s=r.getY(),f=r.getRight(),c=r.getX(),T=r.getBottom(),A=r.getRight(),C=r.getWidthHalf(),M=r.getHeightHalf(),R=!1,G=!1;if(g===d){if(o>i)return l[0]=g,l[1]=h,l[2]=d,l[3]=T,!1;if(o<i)return l[0]=g,l[1]=D,l[2]=d,l[3]=s,!1}else if(o===i){if(g>d)return l[0]=a,l[1]=o,l[2]=f,l[3]=i,!1;if(g<d)return l[0]=p,l[1]=o,l[2]=I,l[3]=i,!1}else{var _=t.height/t.width,Y=r.height/r.width,x=(i-o)/(d-g),F=void 0,S=void 0,P=void 0,U=void 0,b=void 0,H=void 0;if(-_===x?g>d?(l[0]=y,l[1]=D,R=!0):(l[0]=p,l[1]=h,R=!0):_===x&&(g>d?(l[0]=a,l[1]=h,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===x?d>g?(l[2]=c,l[3]=T,G=!0):(l[2]=f,l[3]=s,G=!0):Y===x&&(d>g?(l[2]=I,l[3]=s,G=!0):(l[2]=A,l[3]=T,G=!0)),R&&G)return!1;if(g>d?o>i?(F=this.getCardinalDirection(_,x,4),S=this.getCardinalDirection(Y,x,2)):(F=this.getCardinalDirection(-_,x,3),S=this.getCardinalDirection(-Y,x,1)):o>i?(F=this.getCardinalDirection(-_,x,1),S=this.getCardinalDirection(-Y,x,3)):(F=this.getCardinalDirection(_,x,2),S=this.getCardinalDirection(Y,x,4)),!R)switch(F){case 1:U=h,P=g+-E/x,l[0]=P,l[1]=U;break;case 2:P=u,U=o+L*x,l[0]=P,l[1]=U;break;case 3:U=D,P=g+E/x,l[0]=P,l[1]=U;break;case 4:P=y,U=o+-L*x,l[0]=P,l[1]=U;break}if(!G)switch(S){case 1:H=s,b=d+-M/x,l[2]=b,l[3]=H;break;case 2:b=A,H=i+C*x,l[2]=b,l[3]=H;break;case 3:H=T,b=d+M/x,l[2]=b,l[3]=H;break;case 4:b=c,H=i+-C*x,l[2]=b,l[3]=H;break}}return!1},e.getCardinalDirection=function(t,r,l){return t>r?l:1+l%4},e.getIntersection=function(t,r,l,g){if(g==null)return this.getIntersection2(t,r,l);var o=t.x,d=t.y,i=r.x,a=r.y,h=l.x,p=l.y,y=g.x,D=g.y,u=void 0,L=void 0,E=void 0,I=void 0,s=void 0,f=void 0,c=void 0,T=void 0,A=void 0;return E=a-d,s=o-i,c=i*d-o*a,I=D-p,f=h-y,T=y*p-h*D,A=E*f-I*s,A===0?null:(u=(s*T-f*c)/A,L=(I*c-E*T)/A,new n(u,L))},e.angleOfVector=function(t,r,l,g){var o=void 0;return t!==l?(o=Math.atan((g-r)/(l-t)),l<t?o+=Math.PI:g<r&&(o+=this.TWO_PI)):g<r?o=this.ONE_AND_HALF_PI:o=this.HALF_PI,o},e.doIntersect=function(t,r,l,g){var o=t.x,d=t.y,i=r.x,a=r.y,h=l.x,p=l.y,y=g.x,D=g.y,u=(i-o)*(D-p)-(y-h)*(a-d);if(u===0)return!1;var L=((D-p)*(y-o)+(h-y)*(D-d))/u,E=((d-a)*(y-o)+(i-o)*(D-d))/u;return 0<L&&L<1&&0<E&&E<1},e.HALF_PI=.5*Math.PI,e.ONE_AND_HALF_PI=1.5*Math.PI,e.TWO_PI=2*Math.PI,e.THREE_PI=3*Math.PI,N.exports=e}),(function(N,m,v){function n(){}O(n,"IMath"),n.sign=function(e){return e>0?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=n}),(function(N,m,v){function n(){}O(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,N.exports=n}),(function(N,m,v){var n=(function(){function o(d,i){for(var a=0;a<i.length;a++){var h=i[a];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(d,h.key,h)}}return O(o,"defineProperties"),function(d,i,a){return i&&o(d.prototype,i),a&&o(d,a),d}})();function e(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")}O(e,"_classCallCheck");var t=O(function(d){return{value:d,next:null,prev:null}},"nodeFrom"),r=O(function(d,i,a,h){return d!==null?d.next=i:h.head=i,a!==null?a.prev=i:h.tail=i,i.prev=d,i.next=a,h.length++,i},"add"),l=O(function(d,i){var a=d.prev,h=d.next;return a!==null?a.next=h:i.head=h,h!==null?h.prev=a:i.tail=a,d.prev=d.next=null,i.length--,d},"_remove"),g=(function(){function o(d){var i=this;e(this,o),this.length=0,this.head=null,this.tail=null,d!=null&&d.forEach(function(a){return i.push(a)})}return O(o,"LinkedList"),n(o,[{key:"size",value:O(function(){return this.length},"size")},{key:"insertBefore",value:O(function(i,a){return r(a.prev,t(i),a,this)},"insertBefore")},{key:"insertAfter",value:O(function(i,a){return r(a,t(i),a.next,this)},"insertAfter")},{key:"insertNodeBefore",value:O(function(i,a){return r(a.prev,i,a,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:O(function(i,a){return r(a,i,a.next,this)},"insertNodeAfter")},{key:"push",value:O(function(i){return r(this.tail,t(i),null,this)},"push")},{key:"unshift",value:O(function(i){return r(null,t(i),this.head,this)},"unshift")},{key:"remove",value:O(function(i){return l(i,this)},"remove")},{key:"pop",value:O(function(){return l(this.tail,this).value},"pop")},{key:"popNode",value:O(function(){return l(this.tail,this)},"popNode")},{key:"shift",value:O(function(){return l(this.head,this).value},"shift")},{key:"shiftNode",value:O(function(){return l(this.head,this)},"shiftNode")},{key:"get_object_at",value:O(function(i){if(i<=this.length()){for(var a=1,h=this.head;a<i;)h=h.next,a++;return h.value}},"get_object_at")},{key:"set_object_at",value:O(function(i,a){if(i<=this.length()){for(var h=1,p=this.head;h<i;)p=p.next,h++;p.value=a}},"set_object_at")}]),o})();N.exports=g}),(function(N,m,v){function n(e,t,r){this.x=null,this.y=null,e==null&&t==null&&r==null?(this.x=0,this.y=0):typeof e=="number"&&typeof t=="number"&&r==null?(this.x=e,this.y=t):e.constructor.name=="Point"&&t==null&&r==null&&(r=e,this.x=r.x,this.y=r.y)}O(n,"Point"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.getLocation=function(){return new n(this.x,this.y)},n.prototype.setLocation=function(e,t,r){e.constructor.name=="Point"&&t==null&&r==null?(r=e,this.setLocation(r.x,r.y)):typeof e=="number"&&typeof t=="number"&&r==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},n.prototype.move=function(e,t){this.x=e,this.y=t},n.prototype.translate=function(e,t){this.x+=e,this.y+=t},n.prototype.equals=function(e){if(e.constructor.name=="Point"){var t=e;return this.x==t.x&&this.y==t.y}return this==e},n.prototype.toString=function(){return new n().constructor.name+"[x="+this.x+",y="+this.y+"]"},N.exports=n}),(function(N,m,v){function n(e,t,r,l){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&r!=null&&l!=null&&(this.x=e,this.y=t,this.width=r,this.height=l)}O(n,"RectangleD"),n.prototype.getX=function(){return this.x},n.prototype.setX=function(e){this.x=e},n.prototype.getY=function(){return this.y},n.prototype.setY=function(e){this.y=e},n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},n.prototype.getRight=function(){return this.x+this.width},n.prototype.getBottom=function(){return this.y+this.height},n.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},n.prototype.getCenterX=function(){return this.x+this.width/2},n.prototype.getMinX=function(){return this.getX()},n.prototype.getMaxX=function(){return this.getX()+this.width},n.prototype.getCenterY=function(){return this.y+this.height/2},n.prototype.getMinY=function(){return this.getY()},n.prototype.getMaxY=function(){return this.getY()+this.height},n.prototype.getWidthHalf=function(){return this.width/2},n.prototype.getHeightHalf=function(){return this.height/2},N.exports=n}),(function(N,m,v){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function e(){}O(e,"UniqueIDGeneretor"),e.lastID=0,e.createID=function(t){return e.isPrimitive(t)?t:(t.uniqueID!=null||(t.uniqueID=e.getString(),e.lastID++),t.uniqueID)},e.getString=function(t){return t==null&&(t=e.lastID),"Object#"+t},e.isPrimitive=function(t){var r=typeof t>"u"?"undefined":n(t);return t==null||r!="object"&&r!="function"},N.exports=e}),(function(N,m,v){function n(h){if(Array.isArray(h)){for(var p=0,y=Array(h.length);p<h.length;p++)y[p]=h[p];return y}else return Array.from(h)}O(n,"_toConsumableArray");var e=v(0),t=v(6),r=v(3),l=v(1),g=v(5),o=v(4),d=v(17),i=v(27);function a(h){i.call(this),this.layoutQuality=e.QUALITY,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=e.DEFAULT_INCREMENTAL,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new t(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,h!=null&&(this.isRemoteUse=h)}O(a,"Layout"),a.RANDOM_SEED=1,a.prototype=Object.create(i.prototype),a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},a.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},a.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},a.prototype.newGraphManager=function(){var h=new t(this);return this.graphManager=h,h},a.prototype.newGraph=function(h){return new g(null,this.graphManager,h)},a.prototype.newNode=function(h){return new r(this.graphManager,h)},a.prototype.newEdge=function(h){return new l(null,null,h)},a.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},a.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var h;return this.checkLayoutSuccess()?h=!1:h=this.layout(),e.ANIMATE==="during"?!1:(h&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,h)},a.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},a.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var h=this.graphManager.getAllEdges(),p=0;p<h.length;p++)h[p];for(var y=this.graphManager.getRoot().getNodes(),p=0;p<y.length;p++)y[p];this.update(this.graphManager.getRoot())}},a.prototype.update=function(h){if(h==null)this.update2();else if(h instanceof r){var p=h;if(p.getChild()!=null)for(var y=p.getChild().getNodes(),D=0;D<y.length;D++)update(y[D]);if(p.vGraphObject!=null){var u=p.vGraphObject;u.update(p)}}else if(h instanceof l){var L=h;if(L.vGraphObject!=null){var E=L.vGraphObject;E.update(L)}}else if(h instanceof g){var I=h;if(I.vGraphObject!=null){var s=I.vGraphObject;s.update(I)}}},a.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=e.QUALITY,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=e.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},a.prototype.transform=function(h){if(h==null)this.transform(new o(0,0));else{var p=new d,y=this.graphManager.getRoot().updateLeftTop();if(y!=null){p.setWorldOrgX(h.x),p.setWorldOrgY(h.y),p.setDeviceOrgX(y.x),p.setDeviceOrgY(y.y);for(var D=this.getAllNodes(),u,L=0;L<D.length;L++)u=D[L],u.transform(p)}}},a.prototype.positionNodesRandomly=function(h){if(h==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var p,y,D=h.getNodes(),u=0;u<D.length;u++)p=D[u],y=p.getChild(),y==null||y.getNodes().length==0?p.scatter():(this.positionNodesRandomly(y),p.updateBounds())},a.prototype.getFlatForest=function(){for(var h=[],p=!0,y=this.graphManager.getRoot().getNodes(),D=!0,u=0;u<y.length;u++)y[u].getChild()!=null&&(D=!1);if(!D)return h;var L=new Set,E=[],I=new Map,s=[];for(s=s.concat(y);s.length>0&&p;){for(E.push(s[0]);E.length>0&&p;){var f=E[0];E.splice(0,1),L.add(f);for(var c=f.getEdges(),u=0;u<c.length;u++){var T=c[u].getOtherEnd(f);if(I.get(f)!=T)if(!L.has(T))E.push(T),I.set(T,f);else{p=!1;break}}}if(!p)h=[];else{var A=[].concat(n(L));h.push(A);for(var u=0;u<A.length;u++){var C=A[u],M=s.indexOf(C);M>-1&&s.splice(M,1)}L=new Set,I=new Map}}return h},a.prototype.createDummyNodesForBendpoints=function(h){for(var p=[],y=h.source,D=this.graphManager.calcLowestCommonAncestor(h.source,h.target),u=0;u<h.bendpoints.length;u++){var L=this.newNode(null);L.setRect(new Point(0,0),new Dimension(1,1)),D.add(L);var E=this.newEdge(null);this.graphManager.add(E,y,L),p.add(L),y=L}var E=this.newEdge(null);return this.graphManager.add(E,y,h.target),this.edgeToDummyNodes.set(h,p),h.isInterGraph()?this.graphManager.remove(h):D.remove(h),p},a.prototype.createBendpointsFromDummyNodes=function(){var h=[];h=h.concat(this.graphManager.getAllEdges()),h=[].concat(n(this.edgeToDummyNodes.keys())).concat(h);for(var p=0;p<h.length;p++){var y=h[p];if(y.bendpoints.length>0){for(var D=this.edgeToDummyNodes.get(y),u=0;u<D.length;u++){var L=D[u],E=new o(L.getCenterX(),L.getCenterY()),I=y.bendpoints.get(u);I.x=E.x,I.y=E.y,L.getOwner().remove(L)}this.graphManager.add(y,y.source,y.target)}}},a.transform=function(h,p,y,D){if(y!=null&&D!=null){var u=p;if(h<=50){var L=p/y;u-=(p-L)/50*(50-h)}else{var E=p*D;u+=(E-p)/50*(h-50)}return u}else{var I,s;return h<=50?(I=9*p/500,s=p/10):(I=9*p/50,s=-8*p),I*h+s}},a.findCenterOfTree=function(h){var p=[];p=p.concat(h);var y=[],D=new Map,u=!1,L=null;(p.length==1||p.length==2)&&(u=!0,L=p[0]);for(var E=0;E<p.length;E++){var I=p[E],s=I.getNeighborsList().size;D.set(I,I.getNeighborsList().size),s==1&&y.push(I)}var f=[];for(f=f.concat(y);!u;){var c=[];c=c.concat(f),f=[];for(var E=0;E<p.length;E++){var I=p[E],T=p.indexOf(I);T>=0&&p.splice(T,1);var A=I.getNeighborsList();A.forEach(function(R){if(y.indexOf(R)<0){var G=D.get(R),_=G-1;_==1&&f.push(R),D.set(R,_)}})}y=y.concat(f),(p.length==1||p.length==2)&&(u=!0,L=p[0])}return L},a.prototype.setGraphManager=function(h){this.graphManager=h},N.exports=a}),(function(N,m,v){function n(){}O(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},N.exports=n}),(function(N,m,v){var n=v(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}O(e,"Transform"),e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,l=this.lworldExtX;return l!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),r},e.prototype.transformY=function(t){var r=0,l=this.lworldExtY;return l!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),r},e.prototype.inverseTransformX=function(t){var r=0,l=this.ldeviceExtX;return l!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),r},e.prototype.inverseTransformY=function(t){var r=0,l=this.ldeviceExtY;return l!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),r},e.prototype.inverseTransformPoint=function(t){var r=new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},N.exports=e}),(function(N,m,v){function n(i){if(Array.isArray(i)){for(var a=0,h=Array(i.length);a<i.length;a++)h[a]=i[a];return h}else return Array.from(i)}O(n,"_toConsumableArray");var e=v(15),t=v(7),r=v(0),l=v(8),g=v(9);function o(){e.call(this),this.useSmartIdealEdgeLengthCalculation=t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=t.DEFAULT_EDGE_LENGTH,this.springConstant=t.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=t.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=t.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=t.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*t.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=t.MAX_ITERATIONS}O(o,"FDLayout"),o.prototype=Object.create(e.prototype);for(var d in e)o[d]=e[d];o.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},o.prototype.calcIdealEdgeLengths=function(){for(var i,a,h,p,y,D,u=this.getGraphManager().getAllEdges(),L=0;L<u.length;L++)i=u[L],i.idealLength=this.idealEdgeLength,i.isInterGraph&&(h=i.getSource(),p=i.getTarget(),y=i.getSourceInLca().getEstimatedSize(),D=i.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(i.idealLength+=y+D-2*r.SIMPLE_NODE_SIZE),a=i.getLca().getInclusionTreeDepth(),i.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(h.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*a))},o.prototype.initSpringEmbedder=function(){var i=this.getAllNodes().length;this.incremental?(i>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},o.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),a,h=0;h<i.length;h++)a=i[h],this.calcSpringForce(a,a.idealLength)},o.prototype.calcRepulsionForces=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h,p,y,D,u=this.getAllNodes(),L;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),L=new Set,h=0;h<u.length;h++)y=u[h],this.calculateRepulsionForceOfANode(y,L,i,a),L.add(y);else for(h=0;h<u.length;h++)for(y=u[h],p=h+1;p<u.length;p++)D=u[p],y.getOwner()==D.getOwner()&&this.calcRepulsionForce(y,D)},o.prototype.calcGravitationalForces=function(){for(var i,a=this.getAllNodesToApplyGravitation(),h=0;h<a.length;h++)i=a[h],this.calcGravitationalForce(i)},o.prototype.moveNodes=function(){for(var i=this.getAllNodes(),a,h=0;h<i.length;h++)a=i[h],a.move()},o.prototype.calcSpringForce=function(i,a){var h=i.getSource(),p=i.getTarget(),y,D,u,L;if(this.uniformLeafNodeSizes&&h.getChild()==null&&p.getChild()==null)i.updateLengthSimple();else if(i.updateLength(),i.isOverlapingSourceAndTarget)return;y=i.getLength(),y!=0&&(D=this.springConstant*(y-a),u=D*(i.lengthX/y),L=D*(i.lengthY/y),h.springForceX+=u,h.springForceY+=L,p.springForceX-=u,p.springForceY-=L)},o.prototype.calcRepulsionForce=function(i,a){var h=i.getRect(),p=a.getRect(),y=new Array(2),D=new Array(4),u,L,E,I,s,f,c;if(h.intersects(p)){l.calcSeparationAmount(h,p,y,t.DEFAULT_EDGE_LENGTH/2),f=2*y[0],c=2*y[1];var T=i.noOfChildren*a.noOfChildren/(i.noOfChildren+a.noOfChildren);i.repulsionForceX-=T*f,i.repulsionForceY-=T*c,a.repulsionForceX+=T*f,a.repulsionForceY+=T*c}else this.uniformLeafNodeSizes&&i.getChild()==null&&a.getChild()==null?(u=p.getCenterX()-h.getCenterX(),L=p.getCenterY()-h.getCenterY()):(l.getIntersection(h,p,D),u=D[2]-D[0],L=D[3]-D[1]),Math.abs(u)<t.MIN_REPULSION_DIST&&(u=g.sign(u)*t.MIN_REPULSION_DIST),Math.abs(L)<t.MIN_REPULSION_DIST&&(L=g.sign(L)*t.MIN_REPULSION_DIST),E=u*u+L*L,I=Math.sqrt(E),s=this.repulsionConstant*i.noOfChildren*a.noOfChildren/E,f=s*u/I,c=s*L/I,i.repulsionForceX-=f,i.repulsionForceY-=c,a.repulsionForceX+=f,a.repulsionForceY+=c},o.prototype.calcGravitationalForce=function(i){var a,h,p,y,D,u,L,E;a=i.getOwner(),h=(a.getRight()+a.getLeft())/2,p=(a.getTop()+a.getBottom())/2,y=i.getCenterX()-h,D=i.getCenterY()-p,u=Math.abs(y)+i.getWidth()/2,L=Math.abs(D)+i.getHeight()/2,i.getOwner()==this.graphManager.getRoot()?(E=a.getEstimatedSize()*this.gravityRangeFactor,(u>E||L>E)&&(i.gravitationForceX=-this.gravityConstant*y,i.gravitationForceY=-this.gravityConstant*D)):(E=a.getEstimatedSize()*this.compoundGravityRangeFactor,(u>E||L>E)&&(i.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},o.prototype.isConverged=function(){var i,a=!1;return this.totalIterations>this.maxIterations/3&&(a=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,i||a},o.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},o.prototype.calcNoOfChildrenForAllNodes=function(){for(var i,a=this.graphManager.getAllNodes(),h=0;h<a.length;h++)i=a[h],i.noOfChildren=i.getNoOfChildren()},o.prototype.calcGrid=function(i){var a=0,h=0;a=parseInt(Math.ceil((i.getRight()-i.getLeft())/this.repulsionRange)),h=parseInt(Math.ceil((i.getBottom()-i.getTop())/this.repulsionRange));for(var p=new Array(a),y=0;y<a;y++)p[y]=new Array(h);for(var y=0;y<a;y++)for(var D=0;D<h;D++)p[y][D]=new Array;return p},o.prototype.addNodeToGrid=function(i,a,h){var p=0,y=0,D=0,u=0;p=parseInt(Math.floor((i.getRect().x-a)/this.repulsionRange)),y=parseInt(Math.floor((i.getRect().width+i.getRect().x-a)/this.repulsionRange)),D=parseInt(Math.floor((i.getRect().y-h)/this.repulsionRange)),u=parseInt(Math.floor((i.getRect().height+i.getRect().y-h)/this.repulsionRange));for(var L=p;L<=y;L++)for(var E=D;E<=u;E++)this.grid[L][E].push(i),i.setGridCoordinates(p,y,D,u)},o.prototype.updateGrid=function(){var i,a,h=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),i=0;i<h.length;i++)a=h[i],this.addNodeToGrid(a,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},o.prototype.calculateRepulsionForceOfANode=function(i,a,h,p){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&h||p){var y=new Set;i.surrounding=new Array;for(var D,u=this.grid,L=i.startX-1;L<i.finishX+2;L++)for(var E=i.startY-1;E<i.finishY+2;E++)if(!(L<0||E<0||L>=u.length||E>=u[0].length)){for(var I=0;I<u[L][E].length;I++)if(D=u[L][E][I],!(i.getOwner()!=D.getOwner()||i==D)&&!a.has(D)&&!y.has(D)){var s=Math.abs(i.getCenterX()-D.getCenterX())-(i.getWidth()/2+D.getWidth()/2),f=Math.abs(i.getCenterY()-D.getCenterY())-(i.getHeight()/2+D.getHeight()/2);s<=this.repulsionRange&&f<=this.repulsionRange&&y.add(D)}}i.surrounding=[].concat(n(y))}for(L=0;L<i.surrounding.length;L++)this.calcRepulsionForce(i,i.surrounding[L])},o.prototype.calcRepulsionRange=function(){return 0},N.exports=o}),(function(N,m,v){var n=v(1),e=v(7);function t(l,g,o){n.call(this,l,g,o),this.idealLength=e.DEFAULT_EDGE_LENGTH}O(t,"FDLayoutEdge"),t.prototype=Object.create(n.prototype);for(var r in n)t[r]=n[r];N.exports=t}),(function(N,m,v){var n=v(3);function e(r,l,g,o){n.call(this,r,l,g,o),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}O(e,"FDLayoutNode"),e.prototype=Object.create(n.prototype);for(var t in n)e[t]=n[t];e.prototype.setGridCoordinates=function(r,l,g,o){this.startX=r,this.finishX=l,this.startY=g,this.finishY=o},N.exports=e}),(function(N,m,v){function n(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}O(n,"DimensionD"),n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},N.exports=n}),(function(N,m,v){var n=v(14);function e(){this.map={},this.keys=[]}O(e,"HashMap"),e.prototype.put=function(t,r){var l=n.createID(t);this.contains(l)||(this.map[l]=r,this.keys.push(t))},e.prototype.contains=function(t){return n.createID(t),this.map[t]!=null},e.prototype.get=function(t){var r=n.createID(t);return this.map[r]},e.prototype.keySet=function(){return this.keys},N.exports=e}),(function(N,m,v){var n=v(14);function e(){this.set={}}O(e,"HashSet"),e.prototype.add=function(t){var r=n.createID(t);this.contains(r)||(this.set[r]=t)},e.prototype.remove=function(t){delete this.set[n.createID(t)]},e.prototype.clear=function(){this.set={}},e.prototype.contains=function(t){return this.set[n.createID(t)]==t},e.prototype.isEmpty=function(){return this.size()===0},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAllTo=function(t){for(var r=Object.keys(this.set),l=r.length,g=0;g<l;g++)t.push(this.set[r[g]])},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAll=function(t){for(var r=t.length,l=0;l<r;l++){var g=t[l];this.add(g)}},N.exports=e}),(function(N,m,v){var n=(function(){function l(g,o){for(var d=0;d<o.length;d++){var i=o[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(g,i.key,i)}}return O(l,"defineProperties"),function(g,o,d){return o&&l(g.prototype,o),d&&l(g,d),g}})();function e(l,g){if(!(l instanceof g))throw new TypeError("Cannot call a class as a function")}O(e,"_classCallCheck");var t=v(11),r=(function(){function l(g,o){e(this,l),(o!==null||o!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var d=void 0;g instanceof t?d=g.size():d=g.length,this._quicksort(g,0,d-1)}return O(l,"Quicksort"),n(l,[{key:"_quicksort",value:O(function(o,d,i){if(d<i){var a=this._partition(o,d,i);this._quicksort(o,d,a),this._quicksort(o,a+1,i)}},"_quicksort")},{key:"_partition",value:O(function(o,d,i){for(var a=this._get(o,d),h=d,p=i;;){for(;this.compareFunction(a,this._get(o,p));)p--;for(;this.compareFunction(this._get(o,h),a);)h++;if(h<p)this._swap(o,h,p),h++,p--;else return p}},"_partition")},{key:"_get",value:O(function(o,d){return o instanceof t?o.get_object_at(d):o[d]},"_get")},{key:"_set",value:O(function(o,d,i){o instanceof t?o.set_object_at(d,i):o[d]=i},"_set")},{key:"_swap",value:O(function(o,d,i){var a=this._get(o,d);this._set(o,d,this._get(o,i)),this._set(o,i,a)},"_swap")},{key:"_defaultCompareFunction",value:O(function(o,d){return d>o},"_defaultCompareFunction")}]),l})();N.exports=r}),(function(N,m,v){var n=(function(){function r(l,g){for(var o=0;o<g.length;o++){var d=g[o];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}return O(r,"defineProperties"),function(l,g,o){return g&&r(l.prototype,g),o&&r(l,o),l}})();function e(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}O(e,"_classCallCheck");var t=(function(){function r(l,g){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=l,this.sequence2=g,this.match_score=o,this.mismatch_penalty=d,this.gap_penalty=i,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=new Array(this.jMax);for(var h=0;h<this.jMax;h++)this.grid[a][h]=0}this.tracebackGrid=new Array(this.iMax);for(var p=0;p<this.iMax;p++){this.tracebackGrid[p]=new Array(this.jMax);for(var y=0;y<this.jMax;y++)this.tracebackGrid[p][y]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return O(r,"NeedlemanWunsch"),n(r,[{key:"getScore",value:O(function(){return this.score},"getScore")},{key:"getAlignments",value:O(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:O(function(){for(var g=1;g<this.jMax;g++)this.grid[0][g]=this.grid[0][g-1]+this.gap_penalty,this.tracebackGrid[0][g]=[!1,!1,!0];for(var o=1;o<this.iMax;o++)this.grid[o][0]=this.grid[o-1][0]+this.gap_penalty,this.tracebackGrid[o][0]=[!1,!0,!1];for(var d=1;d<this.iMax;d++)for(var i=1;i<this.jMax;i++){var a=void 0;this.sequence1[d-1]===this.sequence2[i-1]?a=this.grid[d-1][i-1]+this.match_score:a=this.grid[d-1][i-1]+this.mismatch_penalty;var h=this.grid[d-1][i]+this.gap_penalty,p=this.grid[d][i-1]+this.gap_penalty,y=[a,h,p],D=this.arrayAllMaxIndexes(y);this.grid[d][i]=y[D[0]],this.tracebackGrid[d][i]=[D.includes(0),D.includes(1),D.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:O(function(){var g=[];for(g.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});g[0];){var o=g[0],d=this.tracebackGrid[o.pos[0]][o.pos[1]];d[0]&&g.push({pos:[o.pos[0]-1,o.pos[1]-1],seq1:this.sequence1[o.pos[0]-1]+o.seq1,seq2:this.sequence2[o.pos[1]-1]+o.seq2}),d[1]&&g.push({pos:[o.pos[0]-1,o.pos[1]],seq1:this.sequence1[o.pos[0]-1]+o.seq1,seq2:"-"+o.seq2}),d[2]&&g.push({pos:[o.pos[0],o.pos[1]-1],seq1:"-"+o.seq1,seq2:this.sequence2[o.pos[1]-1]+o.seq2}),o.pos[0]===0&&o.pos[1]===0&&this.alignments.push({sequence1:o.seq1,sequence2:o.seq2}),g.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:O(function(g,o){for(var d=[],i=-1;(i=g.indexOf(o,i+1))!==-1;)d.push(i);return d},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:O(function(g){return this.getAllIndexes(g,Math.max.apply(null,g))},"arrayAllMaxIndexes")}]),r})();N.exports=t}),(function(N,m,v){var n=O(function(){},"layoutBase");n.FDLayout=v(18),n.FDLayoutConstants=v(7),n.FDLayoutEdge=v(19),n.FDLayoutNode=v(20),n.DimensionD=v(21),n.HashMap=v(22),n.HashSet=v(23),n.IGeometry=v(8),n.IMath=v(9),n.Integer=v(10),n.Point=v(12),n.PointD=v(4),n.RandomSeed=v(16),n.RectangleD=v(13),n.Transform=v(17),n.UniqueIDGeneretor=v(14),n.Quicksort=v(24),n.LinkedList=v(11),n.LGraphObject=v(2),n.LGraph=v(5),n.LEdge=v(1),n.LGraphManager=v(6),n.LNode=v(3),n.Layout=v(15),n.LayoutConstants=v(0),n.NeedlemanWunsch=v(25),N.exports=n}),(function(N,m,v){function n(){this.listeners=[]}O(n,"Emitter");var e=n.prototype;e.addListener=function(t,r){this.listeners.push({event:t,callback:r})},e.removeListener=function(t,r){for(var l=this.listeners.length;l>=0;l--){var g=this.listeners[l];g.event===t&&g.callback===r&&this.listeners.splice(l,1)}},e.emit=function(t,r){for(var l=0;l<this.listeners.length;l++){var g=this.listeners[l];t===g.event&&g.callback(r)}},N.exports=n})])})}}),nt=j({"../../node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js"(w,X){O((function(m,v){typeof w=="object"&&typeof X=="object"?X.exports=v(it()):typeof define=="function"&&define.amd?define(["layout-base"],v):typeof w=="object"?w.coseBase=v(it()):m.coseBase=v(m.layoutBase)}),"webpackUniversalModuleDefinition")(w,function(N){return(function(m){var v={};function n(e){if(v[e])return v[e].exports;var t=v[e]={i:e,l:!1,exports:{}};return m[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return O(n,"__webpack_require__"),n.m=m,n.c=v,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?O(function(){return e.default},"getDefault"):O(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)})([(function(m,v){m.exports=N}),(function(m,v,n){var e=n(0).FDLayoutConstants;function t(){}O(t,"CoSEConstants");for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,m.exports=t}),(function(m,v,n){var e=n(0).FDLayoutEdge;function t(l,g,o){e.call(this,l,g,o)}O(t,"CoSEEdge"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];m.exports=t}),(function(m,v,n){var e=n(0).LGraph;function t(l,g,o){e.call(this,l,g,o)}O(t,"CoSEGraph"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];m.exports=t}),(function(m,v,n){var e=n(0).LGraphManager;function t(l){e.call(this,l)}O(t,"CoSEGraphManager"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];m.exports=t}),(function(m,v,n){var e=n(0).FDLayoutNode,t=n(0).IMath;function r(g,o,d,i){e.call(this,g,o,d,i)}O(r,"CoSENode"),r.prototype=Object.create(e.prototype);for(var l in e)r[l]=e[l];r.prototype.move=function(){var g=this.graphManager.getLayout();this.displacementX=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(g,o){for(var d=this.getChild().getNodes(),i,a=0;a<d.length;a++)i=d[a],i.getChild()==null?(i.moveBy(g,o),i.displacementX+=g,i.displacementY+=o):i.propogateDisplacementToChildren(g,o)},r.prototype.setPred1=function(g){this.pred1=g},r.prototype.getPred1=function(){return pred1},r.prototype.getPred2=function(){return pred2},r.prototype.setNext=function(g){this.next=g},r.prototype.getNext=function(){return next},r.prototype.setProcessed=function(g){this.processed=g},r.prototype.isProcessed=function(){return processed},m.exports=r}),(function(m,v,n){var e=n(0).FDLayout,t=n(4),r=n(3),l=n(5),g=n(2),o=n(1),d=n(0).FDLayoutConstants,i=n(0).LayoutConstants,a=n(0).Point,h=n(0).PointD,p=n(0).Layout,y=n(0).Integer,D=n(0).IGeometry,u=n(0).LGraph,L=n(0).Transform;function E(){e.call(this),this.toBeTiled={}}O(E,"CoSELayout"),E.prototype=Object.create(e.prototype);for(var I in e)E[I]=e[I];E.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},E.prototype.newGraph=function(s){return new r(null,this.graphManager,s)},E.prototype.newNode=function(s){return new l(this.graphManager,s)},E.prototype.newEdge=function(s){return new g(null,null,s)},E.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=d.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=d.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=d.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},E.prototype.layout=function(){var s=i.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},E.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(C){return f.has(C)});this.graphManager.setAllNodesToApplyGravitation(c)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(T){return f.has(T)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c<s.length;c++){var T=s[c].rect,A=s[c].id;f[A]={id:A,x:T.getCenterX(),y:T.getCenterY(),w:T.width,h:T.height}}return f},E.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(d.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},E.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],f,c=this.graphManager.getGraphs(),T=c.length,A;for(A=0;A<T;A++)f=c[A],f.updateConnected(),f.isConnected||(s=s.concat(f.getNodes()));return s},E.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var f=new Set,c;for(c=0;c<s.length;c++){var T=s[c];if(!f.has(T)){var A=T.getSource(),C=T.getTarget();if(A==C)T.getBendpoints().push(new h),T.getBendpoints().push(new h),this.createDummyNodesForBendpoints(T),f.add(T);else{var M=[];if(M=M.concat(A.getEdgeListToNode(C)),M=M.concat(C.getEdgeListToNode(A)),!f.has(M[0])){if(M.length>1){var R;for(R=0;R<M.length;R++){var G=M[R];G.getBendpoints().push(new h),this.createDummyNodesForBendpoints(G)}}M.forEach(function(_){f.add(_)})}}}if(f.size==s.length)break}},E.prototype.positionNodesRadially=function(s){for(var f=new a(0,0),c=Math.ceil(Math.sqrt(s.length)),T=0,A=0,C=0,M=new h(0,0),R=0;R<s.length;R++){R%c==0&&(C=0,A=T,R!=0&&(A+=o.DEFAULT_COMPONENT_SEPERATION),T=0);var G=s[R],_=p.findCenterOfTree(G);f.x=C,f.y=A,M=E.radialLayout(G,_,f),M.y>T&&(T=Math.floor(M.y)),C=Math.floor(M.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new h(i.WORLD_CENTER_X-M.x/2,i.WORLD_CENTER_Y-M.y/2))},E.radialLayout=function(s,f,c){var T=Math.max(this.maxDiagonalInTree(s),o.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(f,null,0,359,0,T);var A=u.calculateBounds(s),C=new L;C.setDeviceOrgX(A.getMinX()),C.setDeviceOrgY(A.getMinY()),C.setWorldOrgX(c.x),C.setWorldOrgY(c.y);for(var M=0;M<s.length;M++){var R=s[M];R.transform(C)}var G=new h(A.getMaxX(),A.getMaxY());return C.inverseTransformPoint(G)},E.branchRadialLayout=function(s,f,c,T,A,C){var M=(T-c+1)/2;M<0&&(M+=180);var R=(M+c)%360,G=R*D.TWO_PI/360,_=A*Math.cos(G),Y=A*Math.sin(G);s.setCenter(_,Y);var x=[];x=x.concat(s.getEdges());var F=x.length;f!=null&&F--;for(var S=0,P=x.length,U,b=s.getEdgesBetween(f);b.length>1;){var H=b[0];b.splice(0,1);var W=x.indexOf(H);W>=0&&x.splice(W,1),P--,F--}f!=null?U=(x.indexOf(b[0])+1)%P:U=0;for(var B=Math.abs(T-c)/F,k=U;S!=F;k=++k%P){var et=x[k].getOtherEnd(s);if(et!=f){var rt=(c+S*B)%360,st=(rt+B)%360;E.branchRadialLayout(et,s,rt,st,A+C,C),S++}}},E.maxDiagonalInTree=function(s){for(var f=y.MIN_VALUE,c=0;c<s.length;c++){var T=s[c],A=T.getDiagonal();A>f&&(f=A)}return f},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],T=this.graphManager.getAllNodes(),A=0;A<T.length;A++){var C=T[A],M=C.getParent();this.getNodeDegreeWithChildren(C)===0&&(M.id==null||!this.getToBeTiled(M))&&c.push(C)}for(var A=0;A<c.length;A++){var C=c[A],R=C.getParent().id;typeof f[R]>"u"&&(f[R]=[]),f[R]=f[R].concat(C)}Object.keys(f).forEach(function(G){if(f[G].length>1){var _="DummyCompound_"+G;s.memberGroups[_]=f[G];var Y=f[G][0].getParent(),x=new l(s.graphManager);x.id=_,x.paddingLeft=Y.paddingLeft||0,x.paddingRight=Y.paddingRight||0,x.paddingBottom=Y.paddingBottom||0,x.paddingTop=Y.paddingTop||0,s.idToDummyNode[_]=x;var F=s.getGraphManager().add(s.newGraph(),x),S=Y.getChild();S.add(x);for(var P=0;P<f[G].length;P++){var U=f[G][P];S.remove(U),F.add(U)}}})},E.prototype.clearCompounds=function(){var s={},f={};this.performDFSOnCompounds();for(var c=0;c<this.compoundOrder.length;c++)f[this.compoundOrder[c].id]=this.compoundOrder[c],s[this.compoundOrder[c].id]=[].concat(this.compoundOrder[c].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[c].getChild()),this.compoundOrder[c].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,f)},E.prototype.clearZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(c){var T=s.idToDummyNode[c];f[c]=s.tileNodes(s.memberGroups[c],T.paddingLeft+T.paddingRight),T.rect.width=f[c].width,T.rect.height=f[c].height})},E.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var f=this.compoundOrder[s],c=f.id,T=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,T,A)}},E.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var T=s.idToDummyNode[c],A=T.paddingLeft,C=T.paddingTop;s.adjustLocations(f[c],T.rect.x,T.rect.y,A,C)})},E.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var T=c.getNodes(),A=0;A<T.length;A++){var C=T[A];if(this.getNodeDegree(C)>0)return this.toBeTiled[f]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},E.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,T=0;T<f.length;T++){var A=f[T];A.getSource().id!==A.getTarget().id&&(c=c+1)}return c},E.prototype.getNodeDegreeWithChildren=function(s){var f=this.getNodeDegree(s);if(s.getChild()==null)return f;for(var c=s.getChild().getNodes(),T=0;T<c.length;T++){var A=c[T];f+=this.getNodeDegreeWithChildren(A)}return f},E.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},E.prototype.fillCompexOrderByDFS=function(s){for(var f=0;f<s.length;f++){var c=s[f];c.getChild()!=null&&this.fillCompexOrderByDFS(c.getChild().getNodes()),this.getToBeTiled(c)&&this.compoundOrder.push(c)}},E.prototype.adjustLocations=function(s,f,c,T,A){f+=T,c+=A;for(var C=f,M=0;M<s.rows.length;M++){var R=s.rows[M];f=C;for(var G=0,_=0;_<R.length;_++){var Y=R[_];Y.rect.x=f,Y.rect.y=c,f+=Y.rect.width+s.horizontalPadding,Y.rect.height>G&&(G=Y.rect.height)}c+=G+s.verticalPadding}},E.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(T){var A=f[T];c.tiledMemberPack[T]=c.tileNodes(s[T],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[T].width,A.rect.height=c.tiledMemberPack[T].height})},E.prototype.tileNodes=function(s,f){var c=o.TILING_PADDING_VERTICAL,T=o.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:T};s.sort(function(R,G){return R.rect.width*R.rect.height>G.rect.width*G.rect.height?-1:R.rect.width*R.rect.height<G.rect.width*G.rect.height?1:0});for(var C=0;C<s.length;C++){var M=s[C];A.rows.length==0?this.insertNodeToRow(A,M,0,f):this.canAddHorizontal(A,M.rect.width,M.rect.height)?this.insertNodeToRow(A,M,this.getShortestRowIndex(A),f):this.insertNodeToRow(A,M,A.rows.length,f),this.shiftToLastRow(A)}return A},E.prototype.insertNodeToRow=function(s,f,c,T){var A=T;if(c==s.rows.length){var C=[];s.rows.push(C),s.rowWidth.push(A),s.rowHeight.push(0)}var M=s.rowWidth[c]+f.rect.width;s.rows[c].length>0&&(M+=s.horizontalPadding),s.rowWidth[c]=M,s.width<M&&(s.width=M);var R=f.rect.height;c>0&&(R+=s.verticalPadding);var G=0;R>s.rowHeight[c]&&(G=s.rowHeight[c],s.rowHeight[c]=R,G=s.rowHeight[c]-G),s.height+=G,s.rows[c].push(f)},E.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,T=0;T<s.rows.length;T++)s.rowWidth[T]<c&&(f=T,c=s.rowWidth[T]);return f},E.prototype.getLongestRowIndex=function(s){for(var f=-1,c=Number.MIN_VALUE,T=0;T<s.rows.length;T++)s.rowWidth[T]>c&&(f=T,c=s.rowWidth[T]);return f},E.prototype.canAddHorizontal=function(s,f,c){var T=this.getShortestRowIndex(s);if(T<0)return!0;var A=s.rowWidth[T];if(A+s.horizontalPadding+f<=s.width)return!0;var C=0;s.rowHeight[T]<c&&T>0&&(C=c+s.verticalPadding-s.rowHeight[T]);var M;s.width-A>=f+s.horizontalPadding?M=(s.height+C)/(A+f+s.horizontalPadding):M=(s.height+C)/s.width,C=c+s.verticalPadding;var R;return s.width<f?R=(s.height+C)/f:R=(s.height+C)/s.width,R<1&&(R=1/R),M<1&&(M=1/M),M<R},E.prototype.shiftToLastRow=function(s){var f=this.getLongestRowIndex(s),c=s.rowWidth.length-1,T=s.rows[f],A=T[T.length-1],C=A.width+s.horizontalPadding;if(s.width-s.rowWidth[c]>C&&f!=c){T.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-C,s.rowWidth[c]=s.rowWidth[c]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var M=Number.MIN_VALUE,R=0;R<T.length;R++)T[R].height>M&&(M=T[R].height);f>0&&(M+=s.verticalPadding);var G=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=M,s.rowHeight[c]<A.height+s.verticalPadding&&(s.rowHeight[c]=A.height+s.verticalPadding);var _=s.rowHeight[f]+s.rowHeight[c];s.height+=_-G,this.shiftToLastRow(s)}},E.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},E.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},E.prototype.reduceTrees=function(){for(var s=[],f=!0,c;f;){var T=this.graphManager.getAllNodes(),A=[];f=!1;for(var C=0;C<T.length;C++)c=T[C],c.getEdges().length==1&&!c.getEdges()[0].isInterGraph&&c.getChild()==null&&(A.push([c,c.getEdges()[0],c.getOwner()]),f=!0);if(f==!0){for(var M=[],R=0;R<A.length;R++)A[R][0].getEdges().length==1&&(M.push(A[R]),A[R][0].getOwner().remove(A[R][0]));s.push(M),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},E.prototype.growTree=function(s){for(var f=s.length,c=s[f-1],T,A=0;A<c.length;A++)T=c[A],this.findPlaceforPrunedNode(T),T[2].add(T[0]),T[2].add(T[1],T[1].source,T[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},E.prototype.findPlaceforPrunedNode=function(s){var f,c,T=s[0];T==s[1].source?c=s[1].target:c=s[1].source;var A=c.startX,C=c.finishX,M=c.startY,R=c.finishY,G=0,_=0,Y=0,x=0,F=[G,Y,_,x];if(M>0)for(var S=A;S<=C;S++)F[0]+=this.grid[S][M-1].length+this.grid[S][M].length-1;if(C<this.grid.length-1)for(var S=M;S<=R;S++)F[1]+=this.grid[C+1][S].length+this.grid[C][S].length-1;if(R<this.grid[0].length-1)for(var S=A;S<=C;S++)F[2]+=this.grid[S][R+1].length+this.grid[S][R].length-1;if(A>0)for(var S=M;S<=R;S++)F[3]+=this.grid[A-1][S].length+this.grid[A][S].length-1;for(var P=y.MAX_VALUE,U,b,H=0;H<F.length;H++)F[H]<P?(P=F[H],U=1,b=H):F[H]==P&&U++;if(U==3&&P==0)F[0]==0&&F[1]==0&&F[2]==0?f=1:F[0]==0&&F[1]==0&&F[3]==0?f=0:F[0]==0&&F[2]==0&&F[3]==0?f=3:F[1]==0&&F[2]==0&&F[3]==0&&(f=2);else if(U==2&&P==0){var W=Math.floor(Math.random()*2);F[0]==0&&F[1]==0?W==0?f=0:f=1:F[0]==0&&F[2]==0?W==0?f=0:f=2:F[0]==0&&F[3]==0?W==0?f=0:f=3:F[1]==0&&F[2]==0?W==0?f=1:f=2:F[1]==0&&F[3]==0?W==0?f=1:f=3:W==0?f=2:f=3}else if(U==4&&P==0){var W=Math.floor(Math.random()*4);f=W}else f=b;f==0?T.setCenter(c.getCenterX(),c.getCenterY()-c.getHeight()/2-d.DEFAULT_EDGE_LENGTH-T.getHeight()/2):f==1?T.setCenter(c.getCenterX()+c.getWidth()/2+d.DEFAULT_EDGE_LENGTH+T.getWidth()/2,c.getCenterY()):f==2?T.setCenter(c.getCenterX(),c.getCenterY()+c.getHeight()/2+d.DEFAULT_EDGE_LENGTH+T.getHeight()/2):T.setCenter(c.getCenterX()-c.getWidth()/2-d.DEFAULT_EDGE_LENGTH-T.getWidth()/2,c.getCenterY())},m.exports=E}),(function(m,v,n){var e={};e.layoutBase=n(0),e.CoSEConstants=n(1),e.CoSEEdge=n(2),e.CoSEGraph=n(3),e.CoSEGraphManager=n(4),e.CoSELayout=n(6),e.CoSENode=n(5),m.exports=e})])})}}),lt=j({"../../node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.34.0/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js"(w,X){O((function(m,v){typeof w=="object"&&typeof X=="object"?X.exports=v(nt()):typeof define=="function"&&define.amd?define(["cose-base"],v):typeof w=="object"?w.cytoscapeCoseBilkent=v(nt()):m.cytoscapeCoseBilkent=v(m.coseBase)}),"webpackUniversalModuleDefinition")(w,function(N){return(function(m){var v={};function n(e){if(v[e])return v[e].exports;var t=v[e]={i:e,l:!1,exports:{}};return m[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return O(n,"__webpack_require__"),n.m=m,n.c=v,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?O(function(){return e.default},"getDefault"):O(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)})([(function(m,v){m.exports=N}),(function(m,v,n){var e=n(0).layoutBase.LayoutConstants,t=n(0).layoutBase.FDLayoutConstants,r=n(0).CoSEConstants,l=n(0).CoSELayout,g=n(0).CoSENode,o=n(0).layoutBase.PointD,d=n(0).layoutBase.DimensionD,i={ready:O(function(){},"ready"),stop:O(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function a(D,u){var L={};for(var E in D)L[E]=D[E];for(var E in u)L[E]=u[E];return L}O(a,"extend");function h(D){this.options=a(i,D),p(this.options)}O(h,"_CoSELayout");var p=O(function(u){u.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=u.nodeRepulsion),u.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=u.idealEdgeLength),u.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=u.edgeElasticity),u.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.nestingFactor),u.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=u.gravity),u.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=u.numIter),u.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=u.gravityRange),u.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.gravityCompound),u.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.gravityRangeCompound),u.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.initialEnergyOnIncremental),u.quality=="draft"?e.QUALITY=0:u.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=u.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!u.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=u.animate,r.TILE=u.tile,r.TILING_PADDING_VERTICAL=typeof u.tilingPaddingVertical=="function"?u.tilingPaddingVertical.call():u.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof u.tilingPaddingHorizontal=="function"?u.tilingPaddingHorizontal.call():u.tilingPaddingHorizontal},"getUserOptions");h.prototype.run=function(){var D,u,L=this.options;this.idToLNode={};var E=this.layout=new l,I=this;I.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var s=E.newGraphManager();this.gm=s;var f=this.options.eles.nodes(),c=this.options.eles.edges();this.root=s.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(f),E);for(var T=0;T<c.length;T++){var A=c[T],C=this.idToLNode[A.data("source")],M=this.idToLNode[A.data("target")];if(C!==M&&C.getEdgesBetween(M).length==0){var R=s.add(E.newEdge(),C,M);R.id=A.id()}}var G=O(function(x,F){typeof x=="number"&&(x=F);var S=x.data("id"),P=I.idToLNode[S];return{x:P.getRect().getCenterX(),y:P.getRect().getCenterY()}},"getPositions"),_=O(function Y(){for(var x=O(function(){L.fit&&L.cy.fit(L.eles,L.padding),D||(D=!0,I.cy.one("layoutready",L.ready),I.cy.trigger({type:"layoutready",layout:I}))},"afterReposition"),F=I.options.refresh,S,P=0;P<F&&!S;P++)S=I.stopped||I.layout.tick();if(S){E.checkLayoutSuccess()&&!E.isSubLayout&&E.doPostLayout(),E.tilingPostLayout&&E.tilingPostLayout(),E.isLayoutFinished=!0,I.options.eles.nodes().positions(G),x(),I.cy.one("layoutstop",I.options.stop),I.cy.trigger({type:"layoutstop",layout:I}),u&&cancelAnimationFrame(u),D=!1;return}var U=I.layout.getPositionsData();L.eles.nodes().positions(function(b,H){if(typeof b=="number"&&(b=H),!b.isParent()){for(var W=b.id(),B=U[W],k=b;B==null&&(B=U[k.data("parent")]||U["DummyCompound_"+k.data("parent")],U[W]=B,k=k.parent()[0],k!=null););return B!=null?{x:B.x,y:B.y}:{x:b.position("x"),y:b.position("y")}}}),x(),u=requestAnimationFrame(Y)},"iterateAnimated");return E.addListener("layoutstarted",function(){I.options.animate==="during"&&(u=requestAnimationFrame(_))}),E.runLayout(),this.options.animate!=="during"&&(I.options.eles.nodes().not(":parent").layoutPositions(I,I.options,G),D=!1),this},h.prototype.getTopMostNodes=function(D){for(var u={},L=0;L<D.length;L++)u[D[L].id()]=!0;var E=D.filter(function(I,s){typeof I=="number"&&(I=s);for(var f=I.parent()[0];f!=null;){if(u[f.id()])return!1;f=f.parent()[0]}return!0});return E},h.prototype.processChildrenList=function(D,u,L){for(var E=u.length,I=0;I<E;I++){var s=u[I],f=s.children(),c,T=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(s.outerWidth()!=null&&s.outerHeight()!=null?c=D.add(new g(L.graphManager,new o(s.position("x")-T.w/2,s.position("y")-T.h/2),new d(parseFloat(T.w),parseFloat(T.h)))):c=D.add(new g(this.graphManager)),c.id=s.data("id"),c.paddingLeft=parseInt(s.css("padding")),c.paddingTop=parseInt(s.css("padding")),c.paddingRight=parseInt(s.css("padding")),c.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var A=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,C=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,M=s.css("text-halign");c.labelWidth=A,c.labelHeight=C,c.labelPos=M}if(this.idToLNode[s.data("id")]=c,isNaN(c.rect.x)&&(c.rect.x=0),isNaN(c.rect.y)&&(c.rect.y=0),f!=null&&f.length>0){var R;R=L.getGraphManager().add(L.newGraph(),c),this.processChildrenList(R,f,L)}}},h.prototype.stop=function(){return this.stopped=!0,this};var y=O(function(u){u("layout","cose-bilkent",h)},"register");typeof cytoscape<"u"&&y(cytoscape),m.exports=y})])})}}),gt=at(lt());ot.use(gt.default);function Q(w,X){w.forEach(N=>{const m={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(v=>{["id","label","height","width","padding","x","y"].includes(v)||(m[v]=N[v])}),X.add({group:"nodes",data:m,position:{x:N.x??0,y:N.y??0}})})}O(Q,"addNodes");V(Q,"addNodes");function $(w,X){w.forEach(N=>{const m={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(v=>{["id","start","end"].includes(v)||(m[v]=N[v])}),X.add({group:"edges",data:m})})}O($,"addEdges");V($,"addEdges");function K(w){return new Promise(X=>{const N=ht("body").append("div").attr("id","cy").attr("style","display:none"),m=ot({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),Q(w.nodes,m),$(w.edges,m),m.nodes().forEach(function(n){n.layoutDimensions=()=>{const e=n.data();return{w:e.width,h:e.height}}});const v={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};m.layout(v).run(),m.ready(n=>{Z.info("Cytoscape ready",n),X(m)})})}O(K,"createCytoscapeInstance");V(K,"createCytoscapeInstance");function q(w){return w.nodes().map(X=>{const N=X.data(),m=X.position(),v={id:N.id,x:m.x,y:m.y};return Object.keys(N).forEach(n=>{n!=="id"&&(v[n]=N[n])}),v})}O(q,"extractPositionedNodes");V(q,"extractPositionedNodes");function J(w){return w.edges().map(X=>{const N=X.data(),m=X._private.rscratch,v={id:N.id,source:N.source,target:N.target,startX:m.startX,startY:m.startY,midX:m.midX,midY:m.midY,endX:m.endX,endY:m.endY};return Object.keys(N).forEach(n=>{["id","source","target"].includes(n)||(v[n]=N[n])}),v})}O(J,"extractPositionedEdges");V(J,"extractPositionedEdges");async function z(w,X){Z.debug("Starting cose-bilkent layout algorithm");try{tt(w);const N=await K(w),m=q(N),v=J(N);return Z.debug(`Layout completed: ${m.length} nodes, ${v.length} edges`),{nodes:m,edges:v}}catch(N){throw Z.error("Error in cose-bilkent layout algorithm:",N),N}}O(z,"executeCoseBilkentLayout");V(z,"executeCoseBilkentLayout");function tt(w){if(!w)throw new Error("Layout data is required");if(!w.config)throw new Error("Configuration is required in layout data");if(!w.rootNode)throw new Error("Root node is required");if(!w.nodes||!Array.isArray(w.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(w.edges))throw new Error("Edges array is required in layout data");return!0}O(tt,"validateLayoutData");V(tt,"validateLayoutData");var ut=V(async(w,X,{insertCluster:N,insertEdge:m,insertEdgeLabel:v,insertMarkers:n,insertNode:e,log:t,positionEdgeLabel:r},{algorithm:l})=>{const g={},o={},d=X.select("g");n(d,w.markers,w.type,w.diagramId);const i=d.insert("g").attr("class","subgraphs"),a=d.insert("g").attr("class","edgePaths"),h=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(w.nodes.map(async u=>{if(u.isGroup){const L={...u};o[u.id]=L,g[u.id]=L,await N(i,u)}else{const L={...u};g[u.id]=L;const E=await e(p,u,{config:w.config,dir:w.direction||"TB"}),I=E.node().getBBox();L.width=I.width,L.height=I.height,L.domId=E,t.debug(`Node ${u.id} dimensions: ${I.width}x${I.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const y={...w,nodes:w.nodes.map(u=>{const L=g[u.id];return{...u,width:L.width,height:L.height}})},D=await z(y,w.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const L=g[u.id];L!=null&&L.domId&&(L.domId.attr("transform",`translate(${u.x}, ${u.y})`),L.x=u.x,L.y=u.y,t.debug(`Positioned node ${L.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const L=w.edges.find(E=>E.id===u.id);L&&(L.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(w.edges.map(async u=>{await v(h,u);const L=g[u.start??""],E=g[u.end??""];if(L&&E){const I=D.edges.find(s=>s.id===u.id);if(I){t.debug("APA01 positionedEdge",I);const s={...u},f=m(a,s,o,w.type,L,E,w.diagramId);r(s,f)}else{const s={...u,points:[{x:L.x||0,y:L.y||0},{x:E.x||0,y:E.y||0}]},f=m(a,s,o,w.type,L,E,w.diagramId);r(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Lt=ut;export{Lt as render};
|
package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-CyNo44Ct.js → cynefin-OW5HDTMX-GVF3BKWE-wLMpc-W6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./main-s-bCU9xp.js";import{_ as s}from"./mermaid-layout-elk.core-BDxAYedV.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const y={startLine:c,endLine:u};return b.defined(f)&&(y.startCharacter=f),b.defined(d)&&(y.endCharacter=d),b.defined(p)&&(y.kind=p),b.defined(m)&&(y.collapsedText=m),y}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let y={range:c,message:u};return b.defined(f)&&(y.severity=f),b.defined(d)&&(y.code=d),b.defined(p)&&(y.source=p),b.defined(m)&&(y.relatedInformation=m),y}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let y={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(y.children=m),y}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
|
|
1
|
+
var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./main-jV_OilRs.js";import{_ as s}from"./mermaid-layout-elk.core-B1-o2tyd.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const y={startLine:c,endLine:u};return b.defined(f)&&(y.startCharacter=f),b.defined(d)&&(y.endCharacter=d),b.defined(p)&&(y.kind=p),b.defined(m)&&(y.collapsedText=m),y}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let y={range:c,message:u};return b.defined(f)&&(y.severity=f),b.defined(d)&&(y.code=d),b.defined(p)&&(y.source=p),b.defined(m)&&(y.relatedInformation=m),y}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let y={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(y.children=m),y}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
|
|
2
2
|
`,`\r
|
|
3
3
|
`,"\r"],(function(a){function i(f,d,p,m){return new n_(f,d,p,m)}s(i,"create"),o(i,"create"),a.create=i;function l(f){let d=f;return!!(b.defined(d)&&b.string(d.uri)&&(b.undefined(d.languageId)||b.string(d.languageId))&&b.uinteger(d.lineCount)&&b.func(d.getText)&&b.func(d.positionAt)&&b.func(d.offsetAt))}s(l,"is"),o(l,"is"),a.is=l;function c(f,d){let p=f.getText(),m=u(d,(g,T)=>{let C=g.range.start.line-T.range.start.line;return C===0?g.range.start.character-T.range.start.character:C}),y=p.length;for(let g=m.length-1;g>=0;g--){let T=m[g],C=f.offsetAt(T.range.start),R=f.offsetAt(T.range.end);if(R<=y)p=p.substring(0,C)+T.newText+p.substring(R,p.length);else throw new Error("Overlapping edit");y=C}return p}s(c,"applyEdits"),o(c,"applyEdits"),a.applyEdits=c;function u(f,d){if(f.length<=1)return f;const p=f.length/2|0,m=f.slice(0,p),y=f.slice(p);u(m,d),u(y,d);let g=0,T=0,C=0;for(;g<m.length&&T<y.length;)d(m[g],y[T])<=0?f[C++]=m[g++]:f[C++]=y[T++];for(;g<m.length;)f[C++]=m[g++];for(;T<y.length;)f[C++]=y[T++];return f}s(u,"mergeSort2"),o(u,"mergeSort")})(by||(by={})),n_=(n=class{constructor(i,l,c,u){this._uri=i,this._languageId=l,this._version=c,this._content=u,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let l=this.offsetAt(i.start),c=this.offsetAt(i.end);return this._content.substring(l,c)}return this._content}update(i,l){this._content=i.text,this._version=l,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],l=this._content,c=!0;for(let u=0;u<l.length;u++){c&&(i.push(u),c=!1);let f=l.charAt(u);c=f==="\r"||f===`
|
|
4
4
|
`,f==="\r"&&u+1<l.length&&l.charAt(u+1)===`
|