@datalayer/agent-runtimes 1.6.98 → 1.6.99

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.
Files changed (357) hide show
  1. package/dist-embed/chunks/{AgentDetails-CqMfY8zN.js → AgentDetails-Dc-zAfsd.js} +1 -1
  2. package/dist-embed/chunks/{AgentDetailsDialog-lxnKA_dF.js → AgentDetailsDialog-D2ezFFlA.js} +1 -1
  3. package/dist-embed/chunks/{CellSidebarExtension-CrdbRLaE.js → CellSidebarExtension-umk7yQhN.js} +1 -1
  4. package/dist-embed/chunks/ChatView-BDvwDtXF.js +32 -0
  5. package/dist-embed/chunks/{CollapsiblePlugin-CnG1qA1e.js → CollapsiblePlugin-7P9eK3oU.js} +1 -1
  6. package/dist-embed/chunks/{ContextPie-DAZz2yzl.js → ContextPie-DaHEeHxd.js} +1 -1
  7. package/dist-embed/chunks/{DeckComponent-qAMqKLzs.js → DeckComponent-DQ2W1Fj7.js} +1 -1
  8. package/dist-embed/chunks/{DeckRenderer-DQmjQ_vE.js → DeckRenderer-BdATImsV.js} +2 -2
  9. package/dist-embed/chunks/{DeckStage-LDi6nZOg.js → DeckStage-BaIwK7uO.js} +2 -2
  10. package/dist-embed/chunks/{DiagramView-CpCoC99y.js → DiagramView-CUf_ij9A.js} +1 -1
  11. package/dist-embed/chunks/{DocumentView-B-lWAJgm.js → DocumentView-BXE42g3H.js} +1 -1
  12. package/dist-embed/chunks/{DrawingStage-DEeTWKLT.js → DrawingStage-B9AOjEPj.js} +1 -1
  13. package/dist-embed/chunks/{EphemeralDocument-CZNRDs_b.js → EphemeralDocument-BlvZagtH.js} +1 -1
  14. package/dist-embed/chunks/{EphemeralNotebook-BDutT9GQ.js → EphemeralNotebook-gz0sG8Hk.js} +1 -1
  15. package/dist-embed/chunks/{ExcalidrawComponent-CmJy7bb4.js → ExcalidrawComponent-Bc1UIgcH.js} +1 -1
  16. package/dist-embed/chunks/{ExcalidrawModal-D_DmAro7.js → ExcalidrawModal-Cp4Da2nV.js} +1 -1
  17. package/dist-embed/chunks/{FormulaBar-f9U7lupQ.js → FormulaBar-BUs-n7Zc.js} +1 -1
  18. package/dist-embed/chunks/{JupyterLexicalExtension-DpGAnn7v.js → JupyterLexicalExtension-Be8mweC6.js} +9 -9
  19. package/dist-embed/chunks/{KernelVariables-BIWju6rZ.js → KernelVariables-xXzfdk5t.js} +1 -1
  20. package/dist-embed/chunks/{LexicalToolRegistry-BqxU1w4N.js → LexicalToolRegistry-DI_iHg04.js} +1 -1
  21. package/dist-embed/chunks/{NotebookToolSurfaces-CqU9CVCl.js → NotebookToolSurfaces-BmBGWX9x.js} +1 -1
  22. package/dist-embed/chunks/{NotebookView-CpOBHIut.js → NotebookView-D4hr5dD7.js} +1 -1
  23. package/dist-embed/chunks/{Output-DLpf2Of9.js → Output-WQnm0VN5.js} +6 -6
  24. package/dist-embed/chunks/{SandboxDetailsDialog-yUjpxBdw.js → SandboxDetailsDialog-DujTXXdD.js} +1 -1
  25. package/dist-embed/chunks/SchemaForm-CL6wJsI5.js +1 -0
  26. package/dist-embed/chunks/{SheetStage-gUVhALxR.js → SheetStage-BCq1DaET.js} +1 -1
  27. package/dist-embed/chunks/{SheetTabs-sx_-jWyq.js → SheetTabs-BZP7_RGB.js} +1 -1
  28. package/dist-embed/chunks/SignInIcon-D1-wo8qx.js +1 -0
  29. package/dist-embed/chunks/{SpreadsheetPreviewView-C9LaI5mp.js → SpreadsheetPreviewView-D_LLvpPF.js} +1 -1
  30. package/dist-embed/chunks/{SpreadsheetView-FfnOGHeU.js → SpreadsheetView-BT4Rr56c.js} +1 -1
  31. package/dist-embed/chunks/{WidgetVariableView-CKcw-pPX.js → WidgetVariableView-DAz5YxtA.js} +1 -1
  32. package/dist-embed/chunks/{YouTubePlugin-DUDVTb3B.js → YouTubePlugin-DgTStKvk.js} +1 -1
  33. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BM2pAacI.js → abnfDiagram-VCTEODGH-B5LqqmCZ.js} +1 -1
  34. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-B0MQRzNo.js → abnfDiagram-VCTEODGH-BsJXEg6b.js} +1 -1
  35. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-fcR8gNdJ.js → abnfDiagram-VCTEODGH-DP066SC3.js} +1 -1
  36. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-BfVZMCow.js → ar-SA-G6X2FPQ2-DwPbQVyE.js} +1 -1
  37. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CnP0s6uJ.js → architectureDiagram-5GKGNRK7-C7914IyO.js} +1 -1
  38. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-GZ5981UE.js → architectureDiagram-5GKGNRK7-CAe4xseh.js} +1 -1
  39. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-Cpu0tfD1.js → architectureDiagram-5GKGNRK7-O1s7O7KE.js} +1 -1
  40. package/dist-embed/chunks/{az-AZ-76LH7QW2-BeD9jzcd.js → az-AZ-76LH7QW2-CnpysEBO.js} +1 -1
  41. package/dist-embed/chunks/{bg-BG-XCXSNQG7-VUraF-a0.js → bg-BG-XCXSNQG7-DJUiP_6F.js} +1 -1
  42. package/dist-embed/chunks/{blockDiagram-868be97b-BK7odeOZ.js → blockDiagram-868be97b-DNJtOmrO.js} +1 -1
  43. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BMQSOcOL.js → blockDiagram-I7D4REHJ-BDRQoIKI.js} +1 -1
  44. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CZlh2u1A.js → blockDiagram-I7D4REHJ-BO6TccV1.js} +1 -1
  45. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DiBWN476.js → blockDiagram-I7D4REHJ-BWNVQ7Gz.js} +1 -1
  46. package/dist-embed/chunks/{bn-BD-2XOGV67Q-DjghL9Ba.js → bn-BD-2XOGV67Q-VQD-Kmco.js} +1 -1
  47. package/dist-embed/chunks/{c4Diagram-3f4bdde3-CMf0cOcM.js → c4Diagram-3f4bdde3-Cj02FLSR.js} +1 -1
  48. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-plU3oizm.js → c4Diagram-7LVT6UL2-BPMcidFW.js} +1 -1
  49. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BYPUXI1P.js → c4Diagram-7LVT6UL2-CoSh2wjn.js} +1 -1
  50. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-qmYneJtb.js → c4Diagram-7LVT6UL2-yq3lLpw3.js} +1 -1
  51. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-J6FuV-ut.js → ca-ES-6MX7JW3Y-W4esLUmK.js} +1 -1
  52. package/dist-embed/chunks/{celltoolbartracker-0MFBHjtq.js → celltoolbartracker-CxRPC2_P.js} +1 -1
  53. package/dist-embed/chunks/{chunk-2Q5K7J3B-B5DIEbuU.js → chunk-2Q5K7J3B-BM6msVjQ.js} +1 -1
  54. package/dist-embed/chunks/{chunk-2Q5K7J3B-Cj3jAIkT.js → chunk-2Q5K7J3B-ClmjTuJ8.js} +1 -1
  55. package/dist-embed/chunks/{chunk-2Q5K7J3B-BfCPaxeK.js → chunk-2Q5K7J3B-Q4yuTBzL.js} +1 -1
  56. package/dist-embed/chunks/{chunk-5VM5RSS4-DYeTGvz7.js → chunk-5VM5RSS4-BcDuf73d.js} +1 -1
  57. package/dist-embed/chunks/{chunk-5VM5RSS4-g3id5Hpo.js → chunk-5VM5RSS4-daB-wV3g.js} +1 -1
  58. package/dist-embed/chunks/{chunk-5VM5RSS4-BZGDG9GF.js → chunk-5VM5RSS4-g3qUjK0w.js} +1 -1
  59. package/dist-embed/chunks/{chunk-F27PBJKO-DvclqQhV.js → chunk-F27PBJKO-BVFLgw2h.js} +1 -1
  60. package/dist-embed/chunks/{chunk-F27PBJKO-kACIRR-8.js → chunk-F27PBJKO-Bh4vuDL9.js} +1 -1
  61. package/dist-embed/chunks/{chunk-F27PBJKO-S3msebgW.js → chunk-F27PBJKO-CeF8R-xY.js} +1 -1
  62. package/dist-embed/chunks/{chunk-IMKFNOWR-DjIARM3y.js → chunk-IMKFNOWR-D0xfV4fA.js} +1 -1
  63. package/dist-embed/chunks/{chunk-IMKFNOWR-SiS0o9FR.js → chunk-IMKFNOWR-DihmSer8.js} +1 -1
  64. package/dist-embed/chunks/{chunk-IMKFNOWR-Ch7v5XHt.js → chunk-IMKFNOWR-JVdSvsGK.js} +1 -1
  65. package/dist-embed/chunks/{chunk-JWPE2WC7-BwLKeh91.js → chunk-JWPE2WC7-B9R3G9XV.js} +1 -1
  66. package/dist-embed/chunks/{chunk-JWPE2WC7-CVacxpin.js → chunk-JWPE2WC7-R5kOKFCi.js} +1 -1
  67. package/dist-embed/chunks/{chunk-JWPE2WC7-M6oulZhu.js → chunk-JWPE2WC7-xLeWlifS.js} +1 -1
  68. package/dist-embed/chunks/{chunk-POPQ4Y6H-DacAiEUG.js → chunk-POPQ4Y6H-BDTkHmFN.js} +1 -1
  69. package/dist-embed/chunks/{chunk-POPQ4Y6H-BCHaCocF.js → chunk-POPQ4Y6H-BWThom3B.js} +1 -1
  70. package/dist-embed/chunks/{chunk-POPQ4Y6H-DicNgh7k.js → chunk-POPQ4Y6H-DH11l_UL.js} +1 -1
  71. package/dist-embed/chunks/{chunk-SVP7TREG-COLBrDOd.js → chunk-SVP7TREG-B5krxfJG.js} +1 -1
  72. package/dist-embed/chunks/{chunk-SVP7TREG-Cit7UeF2.js → chunk-SVP7TREG-BIf35xVD.js} +1 -1
  73. package/dist-embed/chunks/{chunk-SVP7TREG-3X_ReA6d.js → chunk-SVP7TREG-gPNw7vXg.js} +1 -1
  74. package/dist-embed/chunks/{chunk-TICWLB2K-DfGZ1S46.js → chunk-TICWLB2K-BhQI0S0U.js} +1 -1
  75. package/dist-embed/chunks/{chunk-TICWLB2K-C4D-h9t1.js → chunk-TICWLB2K-BnmW9-rq.js} +1 -1
  76. package/dist-embed/chunks/{chunk-TICWLB2K-TaUeWpZb.js → chunk-TICWLB2K-ZniMXeAW.js} +1 -1
  77. package/dist-embed/chunks/{chunk-XXDRQBXY-Bo_XDdf-.js → chunk-XXDRQBXY-B0pMdS4i.js} +1 -1
  78. package/dist-embed/chunks/{chunk-XXDRQBXY-Bz5lFaJG.js → chunk-XXDRQBXY-CGxfHk6Z.js} +1 -1
  79. package/dist-embed/chunks/{chunk-XXDRQBXY-B6fuzLc9.js → chunk-XXDRQBXY-CTBVYOwD.js} +1 -1
  80. package/dist-embed/chunks/{classDiagram-ZZMXUADV-DDZ5U8jk.js → classDiagram-ZZMXUADV-BVgpaw2k.js} +1 -1
  81. package/dist-embed/chunks/{classDiagram-ZZMXUADV-orzU8a0Z.js → classDiagram-ZZMXUADV-DZ_oaj8W.js} +1 -1
  82. package/dist-embed/chunks/{classDiagram-ZZMXUADV-DpQTfwXC.js → classDiagram-ZZMXUADV-Pn2VInwp.js} +1 -1
  83. package/dist-embed/chunks/{classDiagram-f62afe4f-CNI3U8Mt.js → classDiagram-f62afe4f-CbG4T64Y.js} +1 -1
  84. package/dist-embed/chunks/{classDiagram-v2-604399ef-CLQHn0oB.js → classDiagram-v2-604399ef-BY9qCJgc.js} +1 -1
  85. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-DDZ5U8jk.js → classDiagram-v2-VYDZK3BY-BVgpaw2k.js} +1 -1
  86. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-orzU8a0Z.js → classDiagram-v2-VYDZK3BY-DZ_oaj8W.js} +1 -1
  87. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-DpQTfwXC.js → classDiagram-v2-VYDZK3BY-Pn2VInwp.js} +1 -1
  88. package/dist-embed/chunks/{code-block-IT6T5CEO-DjmCcA6a.js → code-block-IT6T5CEO-BH-xK8dt.js} +1 -1
  89. package/dist-embed/chunks/{component-B62XEB_I.js → component-CHAmQtQO.js} +1 -1
  90. package/dist-embed/chunks/{core-CsMGn5rr.js → core-B-25xtEy.js} +1 -1
  91. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-B_IELYPJ.js → cose-bilkent-JH36ORCC--dQRyne0.js} +1 -1
  92. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CE9lt3OO.js → cose-bilkent-JH36ORCC-CCswhHys.js} +1 -1
  93. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CJiHk5L4.js → cose-bilkent-JH36ORCC-CzSbL0t-.js} +1 -1
  94. package/dist-embed/chunks/{createText-aed3d8b3-DTAS6DfQ.js → createText-aed3d8b3-C0l5-4ze.js} +1 -1
  95. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-BJRVSuxc.js → cs-CZ-2BRQDIVT-BRaMX0Yn.js} +1 -1
  96. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CyHkNAUC.js → cynefinDiagram-5FMLGOSQ-CCuKYj0g.js} +1 -1
  97. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-B2073FgP.js → cynefinDiagram-5FMLGOSQ-Dv0bdW3s.js} +1 -1
  98. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-HsJLw9Ow.js → cynefinDiagram-5FMLGOSQ-ULiO5ngX.js} +1 -1
  99. package/dist-embed/chunks/{da-DK-5WZEPLOC-DmvpQmCz.js → da-DK-5WZEPLOC-CHJSd-hL.js} +1 -1
  100. package/dist-embed/chunks/{dagre-GXQ25YYZ-DzmuuJ_r.js → dagre-GXQ25YYZ-BiEdL9_Y.js} +1 -1
  101. package/dist-embed/chunks/{dagre-GXQ25YYZ-R_lzFrVl.js → dagre-GXQ25YYZ-CQKZfFLy.js} +1 -1
  102. package/dist-embed/chunks/{dagre-GXQ25YYZ-BkxHUUfX.js → dagre-GXQ25YYZ-CbxhqH-l.js} +1 -1
  103. package/dist-embed/chunks/{de-DE-XR44H4JA-aRPZsjh8.js → de-DE-XR44H4JA-CtNUHnP5.js} +1 -1
  104. package/dist-embed/chunks/{diagram-S7CK7UJ4-1KpTTJPB.js → diagram-S7CK7UJ4-4cZ1l0Md.js} +1 -1
  105. package/dist-embed/chunks/{diagram-S7CK7UJ4-BANHWGqU.js → diagram-S7CK7UJ4-BbDaT9be.js} +1 -1
  106. package/dist-embed/chunks/{diagram-S7CK7UJ4-DsEYZOqE.js → diagram-S7CK7UJ4-C_K2XQ68.js} +1 -1
  107. package/dist-embed/chunks/{diagram-UQ7AKVKN-BadWwEqS.js → diagram-UQ7AKVKN-BQGMd5WO.js} +1 -1
  108. package/dist-embed/chunks/{diagram-UQ7AKVKN-B-SbMZjY.js → diagram-UQ7AKVKN-DHkyqRGv.js} +1 -1
  109. package/dist-embed/chunks/{diagram-UQ7AKVKN-E5q5_JWL.js → diagram-UQ7AKVKN-NwCsVCGT.js} +1 -1
  110. package/dist-embed/chunks/{diagram-VSXAHHWV-D_7x_Ody.js → diagram-VSXAHHWV-BOaVUYmv.js} +1 -1
  111. package/dist-embed/chunks/{diagram-VSXAHHWV-BsdL7E17.js → diagram-VSXAHHWV-BRZfKN3x.js} +1 -1
  112. package/dist-embed/chunks/{diagram-VSXAHHWV-B-ZTas3h.js → diagram-VSXAHHWV-C5Iv2HbC.js} +1 -1
  113. package/dist-embed/chunks/{diagram-VX7I27RA-BGyPrgPC.js → diagram-VX7I27RA-BRnBP8ma.js} +1 -1
  114. package/dist-embed/chunks/{diagram-VX7I27RA-C_1S9aIm.js → diagram-VX7I27RA-BYCgrvUs.js} +1 -1
  115. package/dist-embed/chunks/{diagram-VX7I27RA-CNSwTKHP.js → diagram-VX7I27RA-CRBBlvv5.js} +1 -1
  116. package/dist-embed/chunks/{diagram-Z3DM3KII-B5t8N8ZT.js → diagram-Z3DM3KII-B3LW49_k.js} +1 -1
  117. package/dist-embed/chunks/{diagram-Z3DM3KII-C2gtrmQ9.js → diagram-Z3DM3KII-CiCUrtKW.js} +1 -1
  118. package/dist-embed/chunks/{diagram-Z3DM3KII-yVDxeysg.js → diagram-Z3DM3KII-CsjIQRhO.js} +1 -1
  119. package/dist-embed/chunks/dist-BwO-MYZO.js +1 -0
  120. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-C7dUKFPT.js → ebnfDiagram-PWID7BFC-BaIi5Hrd.js} +1 -1
  121. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-LCa7gn5F.js → ebnfDiagram-PWID7BFC-CCJeM8Fw.js} +1 -1
  122. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BgfF1EZn.js → ebnfDiagram-PWID7BFC-CopkaDiT.js} +1 -1
  123. package/dist-embed/chunks/{edges-b2856ca0-J2ON9YC7.js → edges-b2856ca0-C1lOjQnE.js} +1 -1
  124. package/dist-embed/chunks/{el-GR-BZB4AONW-BBpO4fOL.js → el-GR-BZB4AONW-BdA68ZvY.js} +1 -1
  125. package/dist-embed/chunks/{erDiagram-5d81789a-BM5rHLzM.js → erDiagram-5d81789a-Dj3mpdgC.js} +1 -1
  126. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CX1vL7D6.js → erDiagram-RLTQ6QDP-BB3sojlA.js} +1 -1
  127. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-C35O3IA_.js → erDiagram-RLTQ6QDP-BtFCDuhD.js} +1 -1
  128. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BguBlD55.js → erDiagram-RLTQ6QDP-CWSWn-p1.js} +1 -1
  129. package/dist-embed/chunks/{es-ES-U4NZUMDT-CyrQHwAL.js → es-ES-U4NZUMDT-O5foFWNy.js} +1 -1
  130. package/dist-embed/chunks/{esm-BaC41XaP.js → esm-Bx0lRTDo.js} +1 -1
  131. package/dist-embed/chunks/{esm-DNtiNaWu.js → esm-Som5GXlh.js} +1 -1
  132. package/dist-embed/chunks/{eu-ES-A7QVB2H4-BJG9zHud.js → eu-ES-A7QVB2H4-DF43uSd5.js} +1 -1
  133. package/dist-embed/chunks/{fa-IR-HGAKTJCU-BOnLqEaQ.js → fa-IR-HGAKTJCU-CodiokGb.js} +1 -1
  134. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DdQTDw9O.js → fi-FI-Z5N7JZ37-C5RZVPNW.js} +1 -1
  135. package/dist-embed/chunks/{flowDb-185abca5-CLfj2Qv7.js → flowDb-185abca5-C-wCaq68.js} +1 -1
  136. package/dist-embed/chunks/{flowDiagram-1629c991-DjfIfqQ2.js → flowDiagram-1629c991-B0BqMZGm.js} +1 -1
  137. package/dist-embed/chunks/{flowDiagram-HODETNUW-DEVM2ZrI.js → flowDiagram-HODETNUW-l4GLkuOH.js} +1 -1
  138. package/dist-embed/chunks/{flowDiagram-HODETNUW-Cuv1YfzK.js → flowDiagram-HODETNUW-ncSEoBU5.js} +1 -1
  139. package/dist-embed/chunks/{flowDiagram-HODETNUW-CmpkqsRJ.js → flowDiagram-HODETNUW-uoDrwD7v.js} +1 -1
  140. package/dist-embed/chunks/{flowDiagram-v2-1d953310-4wSPcojK.js → flowDiagram-v2-1d953310-CbX1zFAU.js} +1 -1
  141. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-Cb0xBerO.js → flowchart-elk-definition-6df44142-NO6Qs2xn.js} +1 -1
  142. package/dist-embed/chunks/{fr-FR-RHASNOE6-DQXpQs87.js → fr-FR-RHASNOE6-BecaN4ln.js} +1 -1
  143. package/dist-embed/chunks/{ganttDiagram-3b0b3873-DI6DrFsY.js → ganttDiagram-3b0b3873-DJda4k6s.js} +1 -1
  144. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DdKCj2ex.js → ganttDiagram-EL5Y4UJY-BNMzBAYm.js} +1 -1
  145. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-CSmChevD.js → ganttDiagram-EL5Y4UJY-CyZOoQUx.js} +1 -1
  146. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-drl1C7t5.js → ganttDiagram-EL5Y4UJY-D0pMMDIC.js} +1 -1
  147. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-gYDVDk5C.js → gitGraphDiagram-WWUBYQGX-BbxTXier.js} +1 -1
  148. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-PLhOfVTI.js → gitGraphDiagram-WWUBYQGX-DtiOT-6M.js} +1 -1
  149. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Dna0JScG.js → gitGraphDiagram-WWUBYQGX-pM-0eEXc.js} +1 -1
  150. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-BmE4UKm_.js → gitGraphDiagram-f01e8bc2-BY4Avza4.js} +1 -1
  151. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DzfCce3N.js → gl-ES-HMX3MZ6V-v7rlIuX_.js} +1 -1
  152. package/dist-embed/chunks/{he-IL-6SHJWFNN-DRlcBbb7.js → he-IL-6SHJWFNN-CPDVuLW6.js} +1 -1
  153. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BrerMuM3.js → hi-IN-IWLTKZ5I-cv7JPHhI.js} +1 -1
  154. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-DFTsPGh6.js → hu-HU-A5ZG7DT2-sIqhErzy.js} +1 -1
  155. package/dist-embed/chunks/{id-ID-SAP4L64H-D0pKFdUL.js → id-ID-SAP4L64H-Bih05s5Z.js} +1 -1
  156. package/dist-embed/chunks/{index-9bae90f3-Cc18qrXw.js → index-9bae90f3-B-h6Bmpj.js} +1 -1
  157. package/dist-embed/chunks/{index-46VEGuyz.js → index-B5fl-cx7.js} +2 -2
  158. package/dist-embed/chunks/{index-BQEWUnIX.js → index-B9DnJYjS.js} +1 -1
  159. package/dist-embed/chunks/{index-BzdaTJ02.js → index-BEkzae0W.js} +4 -4
  160. package/dist-embed/chunks/{index-B5W7CVUY.js → index-DE0JwlLw.js} +1 -1
  161. package/dist-embed/chunks/{index-BXY2kJ1z.js → index-Dm-b78og.js} +1 -1
  162. package/dist-embed/chunks/{index-CBWGYoQM.js → index-Dqc2hT2k.js} +1 -1
  163. package/dist-embed/chunks/{index-C-4crJTg.js → index-dBBA442C.js} +4 -4
  164. package/dist-embed/chunks/{index-h8lXpqtD.js → index-npitmnIA.js} +1 -1
  165. package/dist-embed/chunks/{index-CET7bv5d.js → index-qZXZK5qd.js} +1 -1
  166. package/dist-embed/chunks/index.esm-9neflYIr.js +1 -0
  167. package/dist-embed/chunks/{index.esm-fF--io5D.js → index.esm-shCygvgu.js} +1 -1
  168. package/dist-embed/chunks/{infoDiagram-27XIBGKW-DlOi-VkF.js → infoDiagram-27XIBGKW-BQ_FpbVx.js} +1 -1
  169. package/dist-embed/chunks/{infoDiagram-27XIBGKW-BZLQcxTA.js → infoDiagram-27XIBGKW-BekHLcSS.js} +1 -1
  170. package/dist-embed/chunks/{infoDiagram-27XIBGKW-Ir7z7vae.js → infoDiagram-27XIBGKW-CHWrtYbt.js} +1 -1
  171. package/dist-embed/chunks/{infoDiagram-a29d40f1-B_50LXsh.js → infoDiagram-a29d40f1-rAu-MoIO.js} +1 -1
  172. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CmchLGEY.js → ishikawaDiagram-5VMMS53U-Cmb7AWZG.js} +1 -1
  173. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CUxqPwbA.js → ishikawaDiagram-5VMMS53U-Cn4-zUna.js} +1 -1
  174. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-Erx01g7S.js → ishikawaDiagram-5VMMS53U-Uk09zgQy.js} +1 -1
  175. package/dist-embed/chunks/{it-IT-JPQ66NNP-CbZLqWAE.js → it-IT-JPQ66NNP-C7yi7ISV.js} +1 -1
  176. package/dist-embed/chunks/{ja-JP-DBVTYXUO-9xZnJjLg.js → ja-JP-DBVTYXUO-DfPIxAGi.js} +1 -1
  177. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BRe0KiaN.js → journeyDiagram-3NMN7TZE-BuYQDwkV.js} +1 -1
  178. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-C9s2og1s.js → journeyDiagram-3NMN7TZE-D86e9Y03.js} +1 -1
  179. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-B6PqY62p.js → journeyDiagram-3NMN7TZE-DlZ7DnFk.js} +1 -1
  180. package/dist-embed/chunks/{journeyDiagram-95396277-BsoN0fKG.js → journeyDiagram-95396277-C2env92y.js} +1 -1
  181. package/dist-embed/chunks/{kaa-6HZHGXH3-CO2r0Hb-.js → kaa-6HZHGXH3-DtvfFgz6.js} +1 -1
  182. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-0WoWjCrc.js → kab-KAB-ZGHBKWFO-Cs_P0J-0.js} +1 -1
  183. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CKIjAYbp.js → kanban-definition-UXKFOSKX-BgGOEpcs.js} +1 -1
  184. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B6PDcRlF.js → kanban-definition-UXKFOSKX-DBTVO8S2.js} +1 -1
  185. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BO0-y3yZ.js → kanban-definition-UXKFOSKX-jcrnmXSL.js} +1 -1
  186. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DFQE1uuw.js → kk-KZ-P5N5QNE5-DX02WIig.js} +1 -1
  187. package/dist-embed/chunks/{km-KH-HSX4SM5Z-D0Bja56Q.js → km-KH-HSX4SM5Z-C4yS0alE.js} +1 -1
  188. package/dist-embed/chunks/{ko-KR-MTYHY66A-C6MeQrMU.js → ko-KR-MTYHY66A-5P-CxGKE.js} +1 -1
  189. package/dist-embed/chunks/{ku-TR-6OUDTVRD-CweepkXr.js → ku-TR-6OUDTVRD-B_CF--jS.js} +1 -1
  190. package/dist-embed/chunks/{layout-Bz98EP0E.js → layout-BzuSIVA6.js} +1 -1
  191. package/dist-embed/chunks/{layout-DPmNjViN.js → layout-DrQTHWcp.js} +1 -1
  192. package/dist-embed/chunks/{layout-mk0FGxVc.js → layout-ke1SehnF.js} +1 -1
  193. package/dist-embed/chunks/{lexicalHooks-Cj3BNPDC.js → lexicalHooks-mjCdxurM.js} +1 -1
  194. package/dist-embed/chunks/{lib-f60SfhfM.js → lib-77hal096.js} +1 -1
  195. package/dist-embed/chunks/{lib-tR3XRdBe.js → lib-BF0qLKx4.js} +1 -1
  196. package/dist-embed/chunks/{lib-0j0dfH8p.js → lib-BHN4er3T.js} +1 -1
  197. package/dist-embed/chunks/{lib-D8Ksfd49.js → lib-BL0Z7ZLN.js} +1 -1
  198. package/dist-embed/chunks/{lib-ku1U2GxE.js → lib-BbQRs6gq.js} +1 -1
  199. package/dist-embed/chunks/{lib-BItrfBU4.js → lib-BqYnt3B4.js} +1 -1
  200. package/dist-embed/chunks/{lib-DCBCbRKN.js → lib-C0IoKYd5.js} +1 -1
  201. package/dist-embed/chunks/{lib-DzVf9ZJD.js → lib-CSLo_71d.js} +1 -1
  202. package/dist-embed/chunks/{lib-CkKgTevD.js → lib-Clh_AUFx.js} +1 -1
  203. package/dist-embed/chunks/{lib-BmoHRaAo.js → lib-Cz1lLXyg.js} +1 -1
  204. package/dist-embed/chunks/{lib-Hgl-pfON.js → lib-DDBKY5pq.js} +1 -1
  205. package/dist-embed/chunks/{lib-B62N3zGB.js → lib-DJP5gvFi.js} +1 -1
  206. package/dist-embed/chunks/{lib-COg_k5cY.js → lib-DMTtt1wk.js} +1 -1
  207. package/dist-embed/chunks/{lib-DpZphKNm.js → lib-Jm05d6GV.js} +1 -1
  208. package/dist-embed/chunks/{lib-w650Gz0V.js → lib-KpC079PC.js} +1 -1
  209. package/dist-embed/chunks/{lib-CjicD0Pj.js → lib-WVhM2LQX.js} +1 -1
  210. package/dist-embed/chunks/{lib-BnAfx9wF.js → lib-_bLHZImL.js} +1 -1
  211. package/dist-embed/chunks/{lib-B01oDNlH.js → lib-jZS8hOW4.js} +1 -1
  212. package/dist-embed/chunks/{lib-CY6QUCzq.js → lib-q3E3Gmmk.js} +1 -1
  213. package/dist-embed/chunks/{lib-C-8NAvI1.js → lib-tF-FByVb.js} +1 -1
  214. package/dist-embed/chunks/{lt-LT-XHIRWOB4-DrPOBOia.js → lt-LT-XHIRWOB4-BDdaHp0_.js} +1 -1
  215. package/dist-embed/chunks/{lv-LV-5QDEKY6T-BlGiDUA0.js → lv-LV-5QDEKY6T-C4eEADZC.js} +1 -1
  216. package/dist-embed/chunks/{mermaid.core-BiF8MSuv.js → mermaid.core-Do9KSWkx.js} +5 -5
  217. package/dist-embed/chunks/{mermaid.core-1p09QPXM.js → mermaid.core-ImjaHcFN.js} +3 -3
  218. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-CEFrcqEk.js → mindmap-definition-YA3MSWOX-DQ5gBAUm.js} +1 -1
  219. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DpAy5heR.js → mindmap-definition-YA3MSWOX-DhjXREA8.js} +1 -1
  220. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-t1pDKjS3.js → mindmap-definition-YA3MSWOX-DqaQ8KOs.js} +1 -1
  221. package/dist-embed/chunks/{mindmap-definition-e4c1d938-DcepOwKv.js → mindmap-definition-e4c1d938-DoEOORm1.js} +1 -1
  222. package/dist-embed/chunks/{model-jLDiOPpQ.js → model-DUnnBi6P.js} +1 -1
  223. package/dist-embed/chunks/{mr-IN-CRQNXWMA-BWEVprKf.js → mr-IN-CRQNXWMA-BWxvnaHu.js} +1 -1
  224. package/dist-embed/chunks/{my-MM-5M5IBNSE-BBxutJOz.js → my-MM-5M5IBNSE-CLLGJ71z.js} +1 -1
  225. package/dist-embed/chunks/{nb-NO-T6EIAALU-DJnrKa7W.js → nb-NO-T6EIAALU-CXXHz47F.js} +1 -1
  226. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DQfv4h3e.js → nl-NL-IS3SIHDZ-DgvIFG1o.js} +1 -1
  227. package/dist-embed/chunks/{nn-NO-6E72VCQL-DiGj9RA6.js → nn-NO-6E72VCQL-CF-xs2ZW.js} +1 -1
  228. package/dist-embed/chunks/{oc-FR-POXYY2M6-WJRn50ji.js → oc-FR-POXYY2M6-Blnuf5JR.js} +1 -1
  229. package/dist-embed/chunks/{pa-IN-N4M65BXN-U7QCzNgm.js → pa-IN-N4M65BXN--oZas2yq.js} +1 -1
  230. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-iE6rBtXO.js → pegDiagram-XKGWAZYB-B7vltnXv.js} +1 -1
  231. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BlYwAwEo.js → pegDiagram-XKGWAZYB-D4e6HBvn.js} +1 -1
  232. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CudwiD3O.js → pegDiagram-XKGWAZYB-LNTV4YzJ.js} +1 -1
  233. package/dist-embed/chunks/{percentages-BXMCSKIN-DhE6_GLO.js → percentages-BXMCSKIN-MAjQwr8F.js} +5 -5
  234. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CIawCiDR.js → pieDiagram-E7YTZNPT-BL6tcixN.js} +1 -1
  235. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Cy6Wueqp.js → pieDiagram-E7YTZNPT-DgV4Cy2T.js} +1 -1
  236. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DkhDYj7K.js → pieDiagram-E7YTZNPT-a4twxVx-.js} +1 -1
  237. package/dist-embed/chunks/{pieDiagram-c941bede-Ds-rlqjJ.js → pieDiagram-c941bede-C1NXxH3p.js} +1 -1
  238. package/dist-embed/chunks/{pl-PL-T2D74RX3-D5hzyBxL.js → pl-PL-T2D74RX3-CW7khEw8.js} +1 -1
  239. package/dist-embed/chunks/{plugin-BqLEv-U0.js → plugin-U4XZBswA.js} +1 -1
  240. package/dist-embed/chunks/{pt-BR-5N22H2LF-CAs1Vbwd.js → pt-BR-5N22H2LF-CBLbqrvY.js} +1 -1
  241. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-f3BuGnIL.js → pt-PT-UZXXM6DQ-Boh5oA32.js} +1 -1
  242. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-1ViFLfLW.js → quadrantDiagram-AXDQQJYC-BTBfnkpT.js} +1 -1
  243. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B30POsrM.js → quadrantDiagram-AXDQQJYC-CXiKbUwz.js} +1 -1
  244. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CqArYUyr.js → quadrantDiagram-AXDQQJYC-Dy9EnqX6.js} +1 -1
  245. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-QoN4fcns.js → quadrantDiagram-cf8b8fe0-BmuQ4zSn.js} +1 -1
  246. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BelGMNLe.js → railroadDiagram-O6MQD6OU-BZgQtORC.js} +1 -1
  247. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-nWQg4Zha.js → railroadDiagram-O6MQD6OU-D4ziu6ro.js} +1 -1
  248. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BKrSAEIz.js → railroadDiagram-O6MQD6OU-DZJxMT9e.js} +1 -1
  249. package/dist-embed/chunks/{renderer-NdtLW87o.js → renderer-DTpEU9RO.js} +1 -1
  250. package/dist-embed/chunks/{requirementDiagram-53bda41b-DRQpj1S7.js → requirementDiagram-53bda41b-CZFqw_aX.js} +1 -1
  251. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-C-ZNAzIA.js → requirementDiagram-BXWQKSXE-By8LT77q.js} +1 -1
  252. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BsKIaNx-.js → requirementDiagram-BXWQKSXE-Dk3nxAMd.js} +1 -1
  253. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Dj_84sJE.js → requirementDiagram-BXWQKSXE-Dx1y_rw2.js} +1 -1
  254. package/dist-embed/chunks/{ro-RO-JPDTUUEW-Ck6Pl6T-.js → ro-RO-JPDTUUEW-QpHkCZjx.js} +1 -1
  255. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-B5ZFvbSm.js → ru-RU-B4JR7IUQ-C8-ztNrr.js} +1 -1
  256. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BwrjNR9f.js → sankeyDiagram-P5KCCOFB-BARe0eo5.js} +1 -1
  257. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DNcJ8lTV.js → sankeyDiagram-P5KCCOFB-D3-EpmdU.js} +1 -1
  258. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CvESkMt0.js → sankeyDiagram-P5KCCOFB-DJG8GtNG.js} +1 -1
  259. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-NSdOSIUQ.js → sankeyDiagram-c3ef121a-DzTFYWVL.js} +1 -1
  260. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-Cxc06-S6.js → sequenceDiagram-82a5b84f-B0hIjr4n.js} +1 -1
  261. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-vrbMF2lh.js → sequenceDiagram-WJ2MYXX4-BcB5M_uE.js} +1 -1
  262. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DYkcZR01.js → sequenceDiagram-WJ2MYXX4-CggwqzCL.js} +1 -1
  263. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CdKf7EXa.js → sequenceDiagram-WJ2MYXX4-DD0JtyHN.js} +1 -1
  264. package/dist-embed/chunks/{sheet-BFp5lgzm.js → sheet-BQ9MLxvm.js} +1 -1
  265. package/dist-embed/chunks/{si-LK-N5RQ5JYF-turarKuZ.js → si-LK-N5RQ5JYF-hqqq2gYS.js} +1 -1
  266. package/dist-embed/chunks/{sizeCapture-INFHLROL-B05-5pAF.js → sizeCapture-INFHLROL-BMuUFBVt.js} +1 -1
  267. package/dist-embed/chunks/{sizeCapture-INFHLROL-DBDGASUh.js → sizeCapture-INFHLROL-CpGgMlRe.js} +1 -1
  268. package/dist-embed/chunks/{sizeCapture-INFHLROL-BTK449Mq.js → sizeCapture-INFHLROL-DwbRJ4BV.js} +1 -1
  269. package/dist-embed/chunks/{sk-SK-C5VTKIMK-B61Eejyh.js → sk-SK-C5VTKIMK-Cwov2m-p.js} +1 -1
  270. package/dist-embed/chunks/{sl-SI-NN7IZMDC-Vmd7HFee.js → sl-SI-NN7IZMDC-BRxVCDIe.js} +1 -1
  271. package/dist-embed/chunks/{state-B-9Ja93T.js → state-OwYcN40e.js} +1 -1
  272. package/dist-embed/chunks/{stateDiagram-43e79a5f-BNfT8BMf.js → stateDiagram-43e79a5f-Bu9kA3H-.js} +1 -1
  273. package/dist-embed/chunks/{stateDiagram-D77RDMKH-B4P4foWm.js → stateDiagram-D77RDMKH-CC58EPeY.js} +1 -1
  274. package/dist-embed/chunks/{stateDiagram-D77RDMKH-DGy5pPcJ.js → stateDiagram-D77RDMKH-Cs4wIyOq.js} +1 -1
  275. package/dist-embed/chunks/{stateDiagram-D77RDMKH-cX1LxuDW.js → stateDiagram-D77RDMKH-vD5bWUvd.js} +1 -1
  276. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DT_Cb2bL.js → stateDiagram-v2-2041ed4f-Od7A0mbg.js} +1 -1
  277. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-CoF-m0JB.js → stateDiagram-v2-MP3YSRHH-DXfM0lWD.js} +1 -1
  278. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BSxDwfLM.js → stateDiagram-v2-MP3YSRHH-DwPQ0Ue3.js} +1 -1
  279. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-GuE-uLPq.js → stateDiagram-v2-MP3YSRHH-l7s3F_nn.js} +1 -1
  280. package/dist-embed/chunks/{styles-455b33cd-Cp1Ujuo8.js → styles-455b33cd-Ds_FotAH.js} +1 -1
  281. package/dist-embed/chunks/{styles-f932cba9-CxoS5hwQ.js → styles-f932cba9-D0_uYfjw.js} +1 -1
  282. package/dist-embed/chunks/{styles-fcc2142b-ByLmqETE.js → styles-fcc2142b-Btmp_yd-.js} +1 -1
  283. package/dist-embed/chunks/{subset-shared.chunk-BsVAPxIg.js → subset-shared.chunk-Bwn3uV7D.js} +1 -1
  284. package/dist-embed/chunks/{subset-worker.chunk-BS8PIaQX.js → subset-worker.chunk-sLZsYGAm.js} +1 -1
  285. package/dist-embed/chunks/{substates-CeUNAPt2.js → substates-CRCFGJkO.js} +1 -1
  286. package/dist-embed/chunks/{sv-SE-XGPEYMSR-C9lMr16n.js → sv-SE-XGPEYMSR-CFTcXTPe.js} +1 -1
  287. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BHhr6lti.js → svgDrawCommon-148a3cd9-BzG9z3G2.js} +1 -1
  288. package/dist-embed/chunks/{swimlanes-42K2YHIH-DQJZa-xA.js → swimlanes-42K2YHIH-CXcSAQkI.js} +1 -1
  289. package/dist-embed/chunks/{swimlanes-42K2YHIH-RHIIyMRW.js → swimlanes-42K2YHIH-CbKvXXpE.js} +1 -1
  290. package/dist-embed/chunks/{swimlanes-42K2YHIH-DKdFBGRm.js → swimlanes-42K2YHIH-Cn91OzZh.js} +1 -1
  291. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-qQpIxgus.js → swimlanesDiagram-VR7AAH4N-BDYem9Qf.js} +1 -1
  292. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DPhzMK19.js → swimlanesDiagram-VR7AAH4N-C0oAnnos.js} +1 -1
  293. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-rV-EK234.js → swimlanesDiagram-VR7AAH4N-KVXFaw6h.js} +1 -1
  294. package/dist-embed/chunks/{ta-IN-2NMHFXQM-DDvtKbYb.js → ta-IN-2NMHFXQM-DOxRBGkF.js} +1 -1
  295. package/dist-embed/chunks/{th-TH-HPSO5L25-Cuk9i9q1.js → th-TH-HPSO5L25-B66DJGUH.js} +1 -1
  296. package/dist-embed/chunks/{timeline-definition-24CTP7MA-BYQXqujM.js → timeline-definition-24CTP7MA-BdFFNT8A.js} +1 -1
  297. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CNJYLQV3.js → timeline-definition-24CTP7MA-BwHa8bSq.js} +1 -1
  298. package/dist-embed/chunks/{timeline-definition-24CTP7MA-B0VfyyC9.js → timeline-definition-24CTP7MA-pOvrvUiT.js} +1 -1
  299. package/dist-embed/chunks/{timeline-definition-7545f45a-B6u65RjP.js → timeline-definition-7545f45a-mktOQHwE.js} +1 -1
  300. package/dist-embed/chunks/{tr-TR-DEFEU3FU-Dt5AbXXF.js → tr-TR-DEFEU3FU-4T2eEq6g.js} +1 -1
  301. package/dist-embed/chunks/{uk-UA-QMV73CPH-CqxkvO2g.js → uk-UA-QMV73CPH-DzInGHdV.js} +1 -1
  302. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-ERcpoENM.js → vennDiagram-4TSXK5OY-DgP7uC-E.js} +1 -1
  303. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-8GPjZ_rY.js → vennDiagram-4TSXK5OY-DpQuXqxB.js} +1 -1
  304. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BC0uMGWS.js → vennDiagram-4TSXK5OY-DxCQybxm.js} +1 -1
  305. package/dist-embed/chunks/{vi-VN-M7AON7JQ-CZtlZzss.js → vi-VN-M7AON7JQ-DqvR1smN.js} +1 -1
  306. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DMJNYu8Y.js → wardleyDiagram-VM6X3IG4-1jMcvi60.js} +1 -1
  307. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Bubuc1xO.js → wardleyDiagram-VM6X3IG4-Dyv0LxbD.js} +1 -1
  308. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DdRbpzRB.js → wardleyDiagram-VM6X3IG4-MyP5nqZ4.js} +1 -1
  309. package/dist-embed/chunks/workbook-5qhwFc45.js +1 -0
  310. package/dist-embed/chunks/{write-D-y9_9sL.js → write-DKnalcKH.js} +1 -1
  311. package/dist-embed/chunks/{xychartDiagram-3f383b91-CEkYRds9.js → xychartDiagram-3f383b91-CH6jxwtm.js} +1 -1
  312. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-iG96dorC.js → xychartDiagram-S5SC5T6Z-CepDAfxw.js} +1 -1
  313. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DKWKSC-B.js → xychartDiagram-S5SC5T6Z-FNQJ78h8.js} +1 -1
  314. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-C0WCXM2P.js → xychartDiagram-S5SC5T6Z-euDlXTya.js} +1 -1
  315. package/dist-embed/chunks/{zh-CN-LNUGB5OW-6_SDF9o2.js → zh-CN-LNUGB5OW-iQ1ZrxBq.js} +1 -1
  316. package/dist-embed/chunks/{zh-HK-E62DVLB3-em8dd9Nl.js → zh-HK-E62DVLB3-BjSHLy4a.js} +1 -1
  317. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-BCzbAoXj.js → zh-TW-RAJ6MFWO-CqMWwcSn.js} +1 -1
  318. package/dist-embed/datalayer-app-main.js +62 -62
  319. package/lib/apps/agentUiPlugins.d.ts +7 -0
  320. package/lib/apps/agentUiPlugins.js +20 -0
  321. package/lib/apps/apps/AppRenderer.d.ts +1 -1
  322. package/lib/apps/apps/AppRenderer.js +22 -13
  323. package/lib/apps/core/index.d.ts +7 -0
  324. package/lib/apps/core/index.js +7 -0
  325. package/lib/apps/embed/AppEmbed.d.ts +3 -3
  326. package/lib/apps/embed/LoopEmbed.js +2 -0
  327. package/lib/apps/embed/embedConfig.d.ts +1 -1
  328. package/lib/apps/embed/embedConfig.js +1 -1
  329. package/lib/apps/plugins/chat/ChatView.js +11 -5
  330. package/lib/apps/plugins/chat/index.d.ts +6 -5
  331. package/lib/apps/plugins/limited-preview/LimitedPreviewIndicator.d.ts +31 -0
  332. package/lib/apps/plugins/limited-preview/LimitedPreviewIndicator.js +70 -0
  333. package/lib/apps/plugins/limited-preview/index.d.ts +37 -0
  334. package/lib/apps/plugins/limited-preview/index.js +53 -0
  335. package/lib/apps/plugins/limited-preview/preview.d.ts +101 -0
  336. package/lib/apps/plugins/limited-preview/preview.js +188 -0
  337. package/lib/apps/presets.d.ts +16 -0
  338. package/lib/apps/presets.js +18 -1
  339. package/lib/chat/anonymous/AnonymousChat.d.ts +8 -19
  340. package/lib/chat/anonymous/AnonymousChat.js +11 -43
  341. package/lib/chat/anonymous/anonymousMode.d.ts +8 -13
  342. package/lib/chat/anonymous/anonymousMode.js +0 -6
  343. package/lib/chat/index.d.ts +1 -1
  344. package/lib/chat/index.js +1 -1
  345. package/lib/chat/prompt/InputPrompt.d.ts +8 -1
  346. package/lib/chat/prompt/InputPrompt.js +8 -3
  347. package/lib/chat/prompt/stack.d.ts +9 -0
  348. package/lib/chat/prompt/stack.js +8 -4
  349. package/lib/specs/apps.js +0 -40
  350. package/package.json +1 -1
  351. package/scripts/codegen/generate_apps.py +4 -1
  352. package/dist-embed/chunks/ChatView-B9oVgZ72.js +0 -32
  353. package/dist-embed/chunks/SchemaForm-N0hu4z_p.js +0 -1
  354. package/dist-embed/chunks/SignInIcon-XIbntAUw.js +0 -1
  355. package/dist-embed/chunks/dist-BOLa5oLF.js +0 -1
  356. package/dist-embed/chunks/index.esm-DwyYEnhk.js +0 -1
  357. package/dist-embed/chunks/workbook-BQLbQvZ-.js +0 -1
@@ -1 +1 @@
1
- import{P as y}from"./index-BzdaTJ02.js";import{f,r as j}from"./forEach-Bvicu226.js";import{m as w,r as x,a as L,b as g,c as $,f as q,z as ke,s as P,g as xe,e as S,h as Ee,d as Oe}from"./zipObject-DPSTm6OB.js";import{f as R,u as W,h as ie,p as C,l as T,c as Ne}from"./uniqueId-Dci46PXR.js";import{i as b,f as _,v as E}from"./isUndefined-QeaoSmDB.js";import{c as Le,b as Ie}from"./_baseRest-CxHO6LCs.js";import{m as D}from"./merge-Bj_36vYI.js";class Pe{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return J(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&J(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Re)),t=t._prev;return"["+n.join(", ")+"]"}}function J(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var _e=Le(1);function Ce(e,n){if(e.nodeCount()<=1)return[];var r=je(e,n||_e),t=Te(r.graph,r.buckets,r.zeroIdx);return R(w(t,function(a){return e.outEdges(a.v,a.w)}))}function Te(e,n,r){for(var t=[],a=n[n.length-1],i=n[0],o;e.nodeCount();){for(;o=i.dequeue();)F(e,n,r,o);for(;o=a.dequeue();)F(e,n,r,o);if(e.nodeCount()){for(var d=n.length-2;d>0;--d)if(o=n[d].dequeue(),o){t=t.concat(F(e,n,r,o,!0));break}}}return t}function F(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var d=e.edge(o),u=e.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=d,G(n,r,u)}),f(e.outEdges(t.v),function(o){var d=e.edge(o),u=o.w,s=e.node(u);s.in-=d,G(n,r,s)}),e.removeNode(t.v),i}function je(e,n){var r=new y,t=0,a=0;f(e.nodes(),function(d){r.setNode(d,{v:d,in:0,out:0})}),f(e.edges(),function(d){var u=r.edge(d.v,d.w)||0,s=n(d),c=u+s;r.setEdge(d.v,d.w,c),a=Math.max(a,r.node(d.v).out+=s),t=Math.max(t,r.node(d.w).in+=s)});var i=x(a+t+3).map(function(){return new Pe}),o=t+1;return f(r.nodes(),function(d){G(i,o,r.node(d))}),{graph:r,buckets:i,zeroIdx:o}}function G(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Ce(e,r(e)):Me(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,W("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function Me(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function Fe(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function O(e,n,r,t){var a;do a=W(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function Ve(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function K(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,d=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var u,s;return Math.abs(i)*o>Math.abs(a)*d?(i<0&&(d=-d),u=d*a/i,s=d):(a<0&&(o=-o),u=o,s=o*i/a),{x:r+u,y:t+s}}function M(e){var n=w(x(ue(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;b(a)||(n[a][t.order]=r)}),n}function Be(e){var n=L(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ie(t,"rank")&&(t.rank-=n)})}function Ae(e){var n=L(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){b(i)&&o%a!==0?--t:t&&f(i,function(d){e.node(d).rank+=t})})}function Q(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),O(e,"border",a,n)}function ue(e){return g(w(e.nodes(),function(n){var r=e.node(n).rank;if(!b(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function De(e,n){return n()}function Ge(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;i<o;++i)Z(e,"borderLeft","_bl",r,a,i),Z(e,"borderRight","_br",r,a,i)}}f(e.children(),n)}function Z(e,n,r,t,a,i){var o={width:0,height:0,rank:i,borderType:n},d=a[n][i-1],u=O(e,"border",o,r);a[n][i]=u,e.setParent(u,t),d&&e.setEdge(d,u,{weight:1})}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&se(e)}function qe(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),se(e))}function se(e){f(e.nodes(),function(n){ee(e.node(n))}),f(e.edges(),function(n){ee(e.edge(n))})}function ee(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f(e.nodes(),function(n){V(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,V),Object.prototype.hasOwnProperty.call(r,"y")&&V(r)})}function V(e){e.y=-e.y}function ze(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,B),Object.prototype.hasOwnProperty.call(r,"x")&&B(r)})}function B(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f(e.edges(),function(n){Ue(e,n)})}function Ue(e,n){var r=n.v,t=e.node(r).rank,a=n.w,i=e.node(a).rank,o=n.name,d=e.edge(n),u=d.labelRank;if(i!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<i;++l,++t)d.points=[],s={width:0,height:0,edgeLabel:d,edgeObj:n,rank:t},c=O(e,"edge",s,"_d"),t===u&&(s.width=d.width,s.height=d.height,s.dummy="edge-label",s.labelpos=d.labelpos),e.setEdge(r,c,{weight:d.weight},o),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:d.weight},o)}}function He(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function z(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var i=L(w(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),a.rank=i}f(e.sources(),r)}function I(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function fe(e){var n=new y({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,i;Je(n,e)<t;)a=Ke(n,e),i=n.hasNode(a.v)?I(e,a):-I(e,a),Qe(n,e,i);return n}function Je(e,n){function r(t){f(n.nodeEdges(t),function(a){var i=a.v,o=t===i?a.w:i;!e.hasNode(o)&&!I(n,a)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return f(e.nodes(),r),e.nodeCount()}function Ke(e,n){return $(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return I(n,r)})}function Qe(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function Ze(){}Ze.prototype=new Error;function ce(e,n,r){Ie(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return f(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);le(e,o,r==="post",i,t,a)}),a}function le(e,n,r,t,a,i){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||i.push(n),f(a(n),function(o){le(e,o,r,t,a,i)}),r&&i.push(n))}function en(e,n){return ce(e,n,"post")}function nn(e,n){return ce(e,n,"pre")}k.initLowLimValues=U;k.initCutValues=X;k.calcCutValue=he;k.leaveEdge=pe;k.enterEdge=we;k.exchangeEdges=me;function k(e){e=Ve(e),z(e);var n=fe(e);U(n),X(n,e);for(var r,t;r=pe(n);)t=we(n,e,r),me(n,e,r,t)}function X(e,n){var r=en(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){rn(e,n,t)})}function rn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=he(e,n,r)}function he(e,n,r){var t=e.node(r),a=t.parent,i=!0,o=n.edge(r,a),d=0;return o||(i=!1,o=n.edge(a,r)),d=o.weight,f(n.nodeEdges(r),function(u){var s=u.v===r,c=s?u.w:u.v;if(c!==a){var l=s===i,h=n.edge(u).weight;if(d+=l?h:-h,an(e,r,c)){var v=e.edge(r,c).cutvalue;d+=l?-v:v}}}),d}function U(e,n){arguments.length<2&&(n=e.nodes()[0]),ve(e,{},1,n)}function ve(e,n,r,t,a){var i=r,o=e.node(t);return n[t]=!0,f(e.neighbors(t),function(d){Object.prototype.hasOwnProperty.call(n,d)||(r=ve(e,n,r,d,t))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function pe(e){return q(e.edges(),function(n){return e.edge(n).cutvalue<0})}function we(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var i=e.node(t),o=e.node(a),d=i,u=!1;i.lim>o.lim&&(d=o,u=!0);var s=_(n.edges(),function(c){return u===ne(e,e.node(c.v),d)&&u!==ne(e,e.node(c.w),d)});return $(s,function(c){return I(n,c)})}function me(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),U(e),X(e,n),tn(e,n)}function tn(e,n){var r=q(e.nodes(),function(a){return!n.node(a).parent}),t=nn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),d=!1;o||(o=n.edge(i,a),d=!0),n.node(a).rank=n.node(i).rank+(d?o.minlen:-o.minlen)})}function an(e,n,r){return e.hasEdge(n,r)}function ne(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function on(e){switch(e.graph().ranker){case"network-simplex":re(e);break;case"tight-tree":un(e);break;case"longest-path":dn(e);break;default:re(e)}}var dn=z;function un(e){z(e),fe(e)}function re(e){k(e)}function sn(e){var n=O(e,"root",{},"_root"),r=fn(e),t=g(E(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=cn(e)+1;f(e.children(),function(o){be(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function be(e,n,r,t,a,i,o){var d=e.children(o);if(!d.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var u=Q(e,"_bt"),s=Q(e,"_bb"),c=e.node(o);e.setParent(u,o),c.borderTop=u,e.setParent(s,o),c.borderBottom=s,f(d,function(l){be(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,m=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(u,v,{weight:m,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:m,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,u,{weight:0,minlen:a+i[o]})}function fn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function cn(e){return j(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function hn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),d,u;o;){if(d=e.parent(o),d?(u=t[d],t[d]=o):(u=a,a=o),u&&u!==o){n.setEdge(u,o);return}o=d}})}function vn(e,n,r){var t=pn(e),a=new y({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),d=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,d||t),f(e[r](i),function(u){var s=u.v===i?u.w:u.v,c=a.edge(s,i),l=b(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(u).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function pn(e){for(var n;e.hasNode(n=W("_root")););return n}function wn(e,n){for(var r=0,t=1;t<n.length;++t)r+=mn(e,n[t-1],n[t]);return r}function mn(e,n,r){for(var t=ke(r,w(r,function(s,c){return c})),a=R(w(n,function(s){return P(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var o=2*i-1;i-=1;var d=w(new Array(o),function(){return 0}),u=0;return f(a.forEach(function(s){var c=s.pos+i;d[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=d[c+1]),c=c-1>>1,d[c]+=s.weight;u+=s.weight*l})),u}function bn(e){var n={},r=_(e.nodes(),function(d){return!e.children(d).length}),t=g(w(r,function(d){return e.node(d).rank})),a=w(x(t+1),function(){return[]});function i(d){if(!ie(n,d)){n[d]=!0;var u=e.node(d);a[u.rank].push(d),f(e.successors(d),i)}}var o=P(r,function(d){return e.node(d).rank});return f(o,i),a}function yn(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=j(t,function(i,o){var d=e.edge(o),u=e.node(o.v);return{sum:i.sum+d.weight*u.order,weight:i.weight+d.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function gn(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};b(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!b(i)&&!b(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return kn(t)}function kn(e){var n=[];function r(i){return function(o){o.merged||(b(o.barycenter)||b(i.barycenter)||o.barycenter>=i.barycenter)&&xn(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return C(i,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function En(e,n){var r=Ye(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=P(r.rhs,function(c){return-c.i}),i=[],o=0,d=0,u=0;t.sort(On(!!n)),u=te(i,a,u),f(t,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,d+=c.weight,u=te(i,a,u)});var s={vs:R(i)};return d&&(s.barycenter=o/d,s.weight=d),s}function te(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function On(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ye(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,d=i?i.borderRight:void 0,u={};o&&(a=_(a,function(p){return p!==o&&p!==d}));var s=yn(e,a);f(s,function(p){if(e.children(p.v).length){var m=ye(e,p.v,r,t);u[p.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&Ln(p,m)}});var c=gn(s,r);Nn(c,u);var l=En(c,t);if(o&&(l.vs=R([o,l.vs,d]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(d)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function Nn(e,n){f(e,function(r){r.vs=R(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ln(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function In(e){var n=ue(e),r=ae(e,x(1,n+1),"inEdges"),t=ae(e,x(n-1,-1,-1),"outEdges"),a=bn(e);oe(e,a);for(var i=Number.POSITIVE_INFINITY,o,d=0,u=0;u<4;++d,++u){Pn(d%2?r:t,d%4>=2),a=M(e);var s=wn(e,a);s<i&&(u=0,o=Ne(a),i=s)}oe(e,o)}function ae(e,n,r){return w(n,function(t){return vn(e,t,r)})}function Pn(e,n){var r=new y;f(e,function(t){var a=t.graph().root,i=ye(t,a,r,n);f(i.vs,function(o,d){t.node(o).order=d}),hn(t,r,i.vs)})}function oe(e,n){f(n,function(r){f(r,function(t,a){e.node(t).order=a})})}function Rn(e){var n=Cn(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,i=_n(e,n,a.v,a.w),o=i.path,d=i.lca,u=0,s=o[u],c=!0;r!==a.w;){if(t=e.node(r),c){for(;(s=o[u])!==d&&e.node(s).maxRank<t.rank;)u++;s===d&&(c=!1)}if(!c){for(;u<o.length-1&&e.node(s=o[u+1]).minRank<=t.rank;)u++;s=o[u]}e.setParent(r,s),r=e.successors(r)[0]}})}function _n(e,n,r,t){var a=[],i=[],o=Math.min(n[r].low,n[t].low),d=Math.max(n[r].lim,n[t].lim),u,s;u=r;do u=e.parent(u),a.push(u);while(u&&(n[u].low>o||d>n[u].lim));for(s=u,u=t;(u=e.parent(u))!==s;)i.push(u);return{path:a.concat(i.reverse()),lca:s}}function Cn(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function Tn(e,n){var r={};function t(a,i){var o=0,d=0,u=a.length,s=T(i);return f(i,function(c,l){var h=Sn(e,c),v=h?e.node(h).order:u;(h||c===s)&&(f(i.slice(d,l+1),function(p){f(e.predecessors(p),function(m){var N=e.node(m),H=N.order;(H<o||v<H)&&!(N.dummy&&e.node(p).dummy)&&ge(r,m,p)})}),d=l+1,o=v)}),i}return j(n,t),r}function jn(e,n){var r={};function t(i,o,d,u,s){var c;f(x(o,d),function(l){c=i[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<u||v.order>s)&&ge(r,h,c)})})}function a(i,o){var d=-1,u,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(u=e.node(h[0]).order,t(o,s,l,d,u),s=l,d=u)}t(o,s,o.length,u,i.length)}),o}return j(n,a),r}function Sn(e,n){if(e.node(n).dummy)return q(e.predecessors(n),function(r){return e.node(r).dummy})}function ge(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Mn(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Fn(e,n,r,t){var a={},i={},o={};return f(n,function(d){f(d,function(u,s){a[u]=u,i[u]=u,o[u]=s})}),f(n,function(d){var u=-1;f(d,function(s){var c=t(s);if(c.length){c=P(c,function(m){return o[m]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&u<o[p]&&!Mn(r,s,p)&&(i[p]=s,i[s]=a[s]=a[p],u=o[p])}}})}),{root:a,align:i}}function Vn(e,n,r,t,a){var i={},o=Bn(e,n,r,a),d=a?"borderLeft":"borderRight";function u(l,h){for(var v=o.nodes(),p=v.pop(),m={};p;)m[p]?l(p):(m[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){i[l]=o.inEdges(l).reduce(function(h,v){return Math.max(h,i[v.v]+o.edge(v))},0)}function c(l){var h=o.outEdges(l).reduce(function(p,m){return Math.min(p,i[m.w]-o.edge(m))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==d&&(i[l]=Math.max(i[l],h))}return u(s,o.predecessors.bind(o)),u(c,o.successors.bind(o)),f(t,function(l){i[l]=i[r[l]]}),i}function Bn(e,n,r,t){var a=new y,i=e.graph(),o=$n(i.nodesep,i.edgesep,t);return f(n,function(d){var u;f(d,function(s){var c=r[s];if(a.setNode(c),u){var l=r[u],h=a.edge(l,c);a.setEdge(l,c,Math.max(o(e,s,u),h||0))}u=s})}),a}function An(e,n){return $(E(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return xe(r,function(i,o){var d=qn(e,o)/2;t=Math.max(i+d,t),a=Math.min(i-d,a)}),t-a})}function Yn(e,n){var r=E(n),t=L(r),a=g(r);f(["u","d"],function(i){f(["l","r"],function(o){var d=i+o,u=e[d],s;if(u!==n){var c=E(u);s=o==="l"?t-L(c):a-g(c),s&&(e[d]=S(u,function(l){return l+s}))}})})}function Dn(e,n){return S(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=P(w(e,t));return(a[1]+a[2])/2})}function Gn(e){var n=M(e),r=D(Tn(e,n),jn(e,n)),t={},a;f(["u","d"],function(o){a=o==="u"?n:E(n).reverse(),f(["l","r"],function(d){d==="r"&&(a=w(a,function(l){return E(l).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),s=Fn(e,a,r,u),c=Vn(e,a,s.root,s.align,d==="r");d==="r"&&(c=S(c,function(l){return-l})),t[o+d]=c})});var i=An(e,t);return Yn(t,i),Dn(t,e.graph().align)}function $n(e,n,r){return function(t,a,i){var o=t.node(a),d=t.node(i),u=0,s;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2;break}if(s&&(u+=r?s:-s),s=0,u+=(o.dummy?n:e)/2,u+=(d.dummy?n:e)/2,u+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":s=d.width/2;break;case"r":s=-d.width/2;break}return s&&(u+=r?s:-s),s=0,u}}function qn(e,n){return e.node(n).width}function Wn(e){e=de(e),zn(e),Ee(Gn(e),function(n,r){e.node(r).x=n})}function zn(e){var n=M(e),r=e.graph().ranksep,t=0;f(n,function(a){var i=g(w(a,function(o){return e.node(o).height}));f(a,function(o){e.node(o).y=t+i/2}),t+=i+r})}function Er(e,n){var r=De;r("layout",()=>{var t=r(" buildLayoutGraph",()=>tr(e));r(" runLayout",()=>Xn(t,r)),r(" updateInputGraph",()=>Un(e,t))})}function Xn(e,n){n(" makeSpaceForEdgeLabels",()=>ar(e)),n(" removeSelfEdges",()=>hr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>sn(e)),n(" rank",()=>on(de(e))),n(" injectEdgeLabelProxies",()=>or(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>ir(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ge(e)),n(" order",()=>In(e)),n(" insertSelfEdges",()=>vr(e)),n(" adjustCoordinateSystem",()=>$e(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>pr(e)),n(" removeBorderNodes",()=>lr(e)),n(" normalize.undo",()=>He(e)),n(" fixupEdgeLabelCoords",()=>fr(e)),n(" undoCoordinateSystem",()=>qe(e)),n(" translateGraph",()=>ur(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>cr(e)),n(" acyclic.undo",()=>Fe(e))}function Un(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Hn=["nodesep","edgesep","ranksep","marginx","marginy"],Jn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Kn=["acyclicer","ranker","rankdir","align"],Qn=["width","height"],Zn={width:0,height:0},er=["minlen","weight","width","height","labeloffset"],nr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rr=["labelpos"];function tr(e){var n=new y({multigraph:!0,compound:!0}),r=Y(e.graph());return n.setGraph(D({},Jn,A(r,Hn),C(r,Kn))),f(e.nodes(),function(t){var a=Y(e.node(t));n.setNode(t,Oe(A(a,Qn),Zn)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=Y(e.edge(t));n.setEdge(t,D({},nr,A(a,er),C(a,rr)))}),n}function ar(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function or(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};O(e,"edge-proxy",i,"_ep")}})}function ir(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=g(n,t.maxRank))}),e.graph().maxRank=n}function dr(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function ur(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,d=i.marginy||0;function u(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){u(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),n-=o,t-=d,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+d}function sr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(K(t,i)),r.points.push(K(a,o))})}function fr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function cr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function lr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function hr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function vr(e){var n=M(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(d){O(e,"selfedge",{width:d.label.width,height:d.label.height,rank:o.rank,order:i+ ++t,e:d.e,label:d.label},"_se")}),delete o.selfEdges})})}function pr(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,d=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-d},{x:a+5*o/6,y:i-d},{x:a+o,y:i},{x:a+5*o/6,y:i+d},{x:a+2*o/3,y:i+d}],r.label.x=r.x,r.label.y=r.y}})}function A(e,n){return S(C(e,n),Number)}function Y(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Er as l};
1
+ import{P as y}from"./index-dBBA442C.js";import{f,r as j}from"./forEach-Bvicu226.js";import{m as w,r as x,a as L,b as g,c as $,f as q,z as ke,s as P,g as xe,e as S,h as Ee,d as Oe}from"./zipObject-DPSTm6OB.js";import{f as R,u as W,h as ie,p as C,l as T,c as Ne}from"./uniqueId-Dci46PXR.js";import{i as b,f as _,v as E}from"./isUndefined-QeaoSmDB.js";import{c as Le,b as Ie}from"./_baseRest-CxHO6LCs.js";import{m as D}from"./merge-Bj_36vYI.js";class Pe{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return J(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&J(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Re)),t=t._prev;return"["+n.join(", ")+"]"}}function J(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var _e=Le(1);function Ce(e,n){if(e.nodeCount()<=1)return[];var r=je(e,n||_e),t=Te(r.graph,r.buckets,r.zeroIdx);return R(w(t,function(a){return e.outEdges(a.v,a.w)}))}function Te(e,n,r){for(var t=[],a=n[n.length-1],i=n[0],o;e.nodeCount();){for(;o=i.dequeue();)F(e,n,r,o);for(;o=a.dequeue();)F(e,n,r,o);if(e.nodeCount()){for(var d=n.length-2;d>0;--d)if(o=n[d].dequeue(),o){t=t.concat(F(e,n,r,o,!0));break}}}return t}function F(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var d=e.edge(o),u=e.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=d,G(n,r,u)}),f(e.outEdges(t.v),function(o){var d=e.edge(o),u=o.w,s=e.node(u);s.in-=d,G(n,r,s)}),e.removeNode(t.v),i}function je(e,n){var r=new y,t=0,a=0;f(e.nodes(),function(d){r.setNode(d,{v:d,in:0,out:0})}),f(e.edges(),function(d){var u=r.edge(d.v,d.w)||0,s=n(d),c=u+s;r.setEdge(d.v,d.w,c),a=Math.max(a,r.node(d.v).out+=s),t=Math.max(t,r.node(d.w).in+=s)});var i=x(a+t+3).map(function(){return new Pe}),o=t+1;return f(r.nodes(),function(d){G(i,o,r.node(d))}),{graph:r,buckets:i,zeroIdx:o}}function G(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Ce(e,r(e)):Me(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,W("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function Me(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function Fe(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function O(e,n,r,t){var a;do a=W(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function Ve(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function K(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,d=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var u,s;return Math.abs(i)*o>Math.abs(a)*d?(i<0&&(d=-d),u=d*a/i,s=d):(a<0&&(o=-o),u=o,s=o*i/a),{x:r+u,y:t+s}}function M(e){var n=w(x(ue(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;b(a)||(n[a][t.order]=r)}),n}function Be(e){var n=L(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ie(t,"rank")&&(t.rank-=n)})}function Ae(e){var n=L(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){b(i)&&o%a!==0?--t:t&&f(i,function(d){e.node(d).rank+=t})})}function Q(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),O(e,"border",a,n)}function ue(e){return g(w(e.nodes(),function(n){var r=e.node(n).rank;if(!b(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function De(e,n){return n()}function Ge(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;i<o;++i)Z(e,"borderLeft","_bl",r,a,i),Z(e,"borderRight","_br",r,a,i)}}f(e.children(),n)}function Z(e,n,r,t,a,i){var o={width:0,height:0,rank:i,borderType:n},d=a[n][i-1],u=O(e,"border",o,r);a[n][i]=u,e.setParent(u,t),d&&e.setEdge(d,u,{weight:1})}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&se(e)}function qe(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),se(e))}function se(e){f(e.nodes(),function(n){ee(e.node(n))}),f(e.edges(),function(n){ee(e.edge(n))})}function ee(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f(e.nodes(),function(n){V(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,V),Object.prototype.hasOwnProperty.call(r,"y")&&V(r)})}function V(e){e.y=-e.y}function ze(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,B),Object.prototype.hasOwnProperty.call(r,"x")&&B(r)})}function B(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f(e.edges(),function(n){Ue(e,n)})}function Ue(e,n){var r=n.v,t=e.node(r).rank,a=n.w,i=e.node(a).rank,o=n.name,d=e.edge(n),u=d.labelRank;if(i!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<i;++l,++t)d.points=[],s={width:0,height:0,edgeLabel:d,edgeObj:n,rank:t},c=O(e,"edge",s,"_d"),t===u&&(s.width=d.width,s.height=d.height,s.dummy="edge-label",s.labelpos=d.labelpos),e.setEdge(r,c,{weight:d.weight},o),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:d.weight},o)}}function He(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function z(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var i=L(w(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),a.rank=i}f(e.sources(),r)}function I(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function fe(e){var n=new y({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,i;Je(n,e)<t;)a=Ke(n,e),i=n.hasNode(a.v)?I(e,a):-I(e,a),Qe(n,e,i);return n}function Je(e,n){function r(t){f(n.nodeEdges(t),function(a){var i=a.v,o=t===i?a.w:i;!e.hasNode(o)&&!I(n,a)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return f(e.nodes(),r),e.nodeCount()}function Ke(e,n){return $(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return I(n,r)})}function Qe(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function Ze(){}Ze.prototype=new Error;function ce(e,n,r){Ie(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return f(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);le(e,o,r==="post",i,t,a)}),a}function le(e,n,r,t,a,i){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||i.push(n),f(a(n),function(o){le(e,o,r,t,a,i)}),r&&i.push(n))}function en(e,n){return ce(e,n,"post")}function nn(e,n){return ce(e,n,"pre")}k.initLowLimValues=U;k.initCutValues=X;k.calcCutValue=he;k.leaveEdge=pe;k.enterEdge=we;k.exchangeEdges=me;function k(e){e=Ve(e),z(e);var n=fe(e);U(n),X(n,e);for(var r,t;r=pe(n);)t=we(n,e,r),me(n,e,r,t)}function X(e,n){var r=en(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){rn(e,n,t)})}function rn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=he(e,n,r)}function he(e,n,r){var t=e.node(r),a=t.parent,i=!0,o=n.edge(r,a),d=0;return o||(i=!1,o=n.edge(a,r)),d=o.weight,f(n.nodeEdges(r),function(u){var s=u.v===r,c=s?u.w:u.v;if(c!==a){var l=s===i,h=n.edge(u).weight;if(d+=l?h:-h,an(e,r,c)){var v=e.edge(r,c).cutvalue;d+=l?-v:v}}}),d}function U(e,n){arguments.length<2&&(n=e.nodes()[0]),ve(e,{},1,n)}function ve(e,n,r,t,a){var i=r,o=e.node(t);return n[t]=!0,f(e.neighbors(t),function(d){Object.prototype.hasOwnProperty.call(n,d)||(r=ve(e,n,r,d,t))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function pe(e){return q(e.edges(),function(n){return e.edge(n).cutvalue<0})}function we(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var i=e.node(t),o=e.node(a),d=i,u=!1;i.lim>o.lim&&(d=o,u=!0);var s=_(n.edges(),function(c){return u===ne(e,e.node(c.v),d)&&u!==ne(e,e.node(c.w),d)});return $(s,function(c){return I(n,c)})}function me(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),U(e),X(e,n),tn(e,n)}function tn(e,n){var r=q(e.nodes(),function(a){return!n.node(a).parent}),t=nn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),d=!1;o||(o=n.edge(i,a),d=!0),n.node(a).rank=n.node(i).rank+(d?o.minlen:-o.minlen)})}function an(e,n,r){return e.hasEdge(n,r)}function ne(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function on(e){switch(e.graph().ranker){case"network-simplex":re(e);break;case"tight-tree":un(e);break;case"longest-path":dn(e);break;default:re(e)}}var dn=z;function un(e){z(e),fe(e)}function re(e){k(e)}function sn(e){var n=O(e,"root",{},"_root"),r=fn(e),t=g(E(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=cn(e)+1;f(e.children(),function(o){be(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function be(e,n,r,t,a,i,o){var d=e.children(o);if(!d.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var u=Q(e,"_bt"),s=Q(e,"_bb"),c=e.node(o);e.setParent(u,o),c.borderTop=u,e.setParent(s,o),c.borderBottom=s,f(d,function(l){be(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,m=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(u,v,{weight:m,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:m,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,u,{weight:0,minlen:a+i[o]})}function fn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function cn(e){return j(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function hn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),d,u;o;){if(d=e.parent(o),d?(u=t[d],t[d]=o):(u=a,a=o),u&&u!==o){n.setEdge(u,o);return}o=d}})}function vn(e,n,r){var t=pn(e),a=new y({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),d=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,d||t),f(e[r](i),function(u){var s=u.v===i?u.w:u.v,c=a.edge(s,i),l=b(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(u).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function pn(e){for(var n;e.hasNode(n=W("_root")););return n}function wn(e,n){for(var r=0,t=1;t<n.length;++t)r+=mn(e,n[t-1],n[t]);return r}function mn(e,n,r){for(var t=ke(r,w(r,function(s,c){return c})),a=R(w(n,function(s){return P(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var o=2*i-1;i-=1;var d=w(new Array(o),function(){return 0}),u=0;return f(a.forEach(function(s){var c=s.pos+i;d[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=d[c+1]),c=c-1>>1,d[c]+=s.weight;u+=s.weight*l})),u}function bn(e){var n={},r=_(e.nodes(),function(d){return!e.children(d).length}),t=g(w(r,function(d){return e.node(d).rank})),a=w(x(t+1),function(){return[]});function i(d){if(!ie(n,d)){n[d]=!0;var u=e.node(d);a[u.rank].push(d),f(e.successors(d),i)}}var o=P(r,function(d){return e.node(d).rank});return f(o,i),a}function yn(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=j(t,function(i,o){var d=e.edge(o),u=e.node(o.v);return{sum:i.sum+d.weight*u.order,weight:i.weight+d.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function gn(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};b(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!b(i)&&!b(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return kn(t)}function kn(e){var n=[];function r(i){return function(o){o.merged||(b(o.barycenter)||b(i.barycenter)||o.barycenter>=i.barycenter)&&xn(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return C(i,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function En(e,n){var r=Ye(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=P(r.rhs,function(c){return-c.i}),i=[],o=0,d=0,u=0;t.sort(On(!!n)),u=te(i,a,u),f(t,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,d+=c.weight,u=te(i,a,u)});var s={vs:R(i)};return d&&(s.barycenter=o/d,s.weight=d),s}function te(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function On(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ye(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,d=i?i.borderRight:void 0,u={};o&&(a=_(a,function(p){return p!==o&&p!==d}));var s=yn(e,a);f(s,function(p){if(e.children(p.v).length){var m=ye(e,p.v,r,t);u[p.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&Ln(p,m)}});var c=gn(s,r);Nn(c,u);var l=En(c,t);if(o&&(l.vs=R([o,l.vs,d]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(d)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function Nn(e,n){f(e,function(r){r.vs=R(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ln(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function In(e){var n=ue(e),r=ae(e,x(1,n+1),"inEdges"),t=ae(e,x(n-1,-1,-1),"outEdges"),a=bn(e);oe(e,a);for(var i=Number.POSITIVE_INFINITY,o,d=0,u=0;u<4;++d,++u){Pn(d%2?r:t,d%4>=2),a=M(e);var s=wn(e,a);s<i&&(u=0,o=Ne(a),i=s)}oe(e,o)}function ae(e,n,r){return w(n,function(t){return vn(e,t,r)})}function Pn(e,n){var r=new y;f(e,function(t){var a=t.graph().root,i=ye(t,a,r,n);f(i.vs,function(o,d){t.node(o).order=d}),hn(t,r,i.vs)})}function oe(e,n){f(n,function(r){f(r,function(t,a){e.node(t).order=a})})}function Rn(e){var n=Cn(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,i=_n(e,n,a.v,a.w),o=i.path,d=i.lca,u=0,s=o[u],c=!0;r!==a.w;){if(t=e.node(r),c){for(;(s=o[u])!==d&&e.node(s).maxRank<t.rank;)u++;s===d&&(c=!1)}if(!c){for(;u<o.length-1&&e.node(s=o[u+1]).minRank<=t.rank;)u++;s=o[u]}e.setParent(r,s),r=e.successors(r)[0]}})}function _n(e,n,r,t){var a=[],i=[],o=Math.min(n[r].low,n[t].low),d=Math.max(n[r].lim,n[t].lim),u,s;u=r;do u=e.parent(u),a.push(u);while(u&&(n[u].low>o||d>n[u].lim));for(s=u,u=t;(u=e.parent(u))!==s;)i.push(u);return{path:a.concat(i.reverse()),lca:s}}function Cn(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function Tn(e,n){var r={};function t(a,i){var o=0,d=0,u=a.length,s=T(i);return f(i,function(c,l){var h=Sn(e,c),v=h?e.node(h).order:u;(h||c===s)&&(f(i.slice(d,l+1),function(p){f(e.predecessors(p),function(m){var N=e.node(m),H=N.order;(H<o||v<H)&&!(N.dummy&&e.node(p).dummy)&&ge(r,m,p)})}),d=l+1,o=v)}),i}return j(n,t),r}function jn(e,n){var r={};function t(i,o,d,u,s){var c;f(x(o,d),function(l){c=i[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<u||v.order>s)&&ge(r,h,c)})})}function a(i,o){var d=-1,u,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(u=e.node(h[0]).order,t(o,s,l,d,u),s=l,d=u)}t(o,s,o.length,u,i.length)}),o}return j(n,a),r}function Sn(e,n){if(e.node(n).dummy)return q(e.predecessors(n),function(r){return e.node(r).dummy})}function ge(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Mn(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Fn(e,n,r,t){var a={},i={},o={};return f(n,function(d){f(d,function(u,s){a[u]=u,i[u]=u,o[u]=s})}),f(n,function(d){var u=-1;f(d,function(s){var c=t(s);if(c.length){c=P(c,function(m){return o[m]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&u<o[p]&&!Mn(r,s,p)&&(i[p]=s,i[s]=a[s]=a[p],u=o[p])}}})}),{root:a,align:i}}function Vn(e,n,r,t,a){var i={},o=Bn(e,n,r,a),d=a?"borderLeft":"borderRight";function u(l,h){for(var v=o.nodes(),p=v.pop(),m={};p;)m[p]?l(p):(m[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){i[l]=o.inEdges(l).reduce(function(h,v){return Math.max(h,i[v.v]+o.edge(v))},0)}function c(l){var h=o.outEdges(l).reduce(function(p,m){return Math.min(p,i[m.w]-o.edge(m))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==d&&(i[l]=Math.max(i[l],h))}return u(s,o.predecessors.bind(o)),u(c,o.successors.bind(o)),f(t,function(l){i[l]=i[r[l]]}),i}function Bn(e,n,r,t){var a=new y,i=e.graph(),o=$n(i.nodesep,i.edgesep,t);return f(n,function(d){var u;f(d,function(s){var c=r[s];if(a.setNode(c),u){var l=r[u],h=a.edge(l,c);a.setEdge(l,c,Math.max(o(e,s,u),h||0))}u=s})}),a}function An(e,n){return $(E(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return xe(r,function(i,o){var d=qn(e,o)/2;t=Math.max(i+d,t),a=Math.min(i-d,a)}),t-a})}function Yn(e,n){var r=E(n),t=L(r),a=g(r);f(["u","d"],function(i){f(["l","r"],function(o){var d=i+o,u=e[d],s;if(u!==n){var c=E(u);s=o==="l"?t-L(c):a-g(c),s&&(e[d]=S(u,function(l){return l+s}))}})})}function Dn(e,n){return S(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=P(w(e,t));return(a[1]+a[2])/2})}function Gn(e){var n=M(e),r=D(Tn(e,n),jn(e,n)),t={},a;f(["u","d"],function(o){a=o==="u"?n:E(n).reverse(),f(["l","r"],function(d){d==="r"&&(a=w(a,function(l){return E(l).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),s=Fn(e,a,r,u),c=Vn(e,a,s.root,s.align,d==="r");d==="r"&&(c=S(c,function(l){return-l})),t[o+d]=c})});var i=An(e,t);return Yn(t,i),Dn(t,e.graph().align)}function $n(e,n,r){return function(t,a,i){var o=t.node(a),d=t.node(i),u=0,s;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2;break}if(s&&(u+=r?s:-s),s=0,u+=(o.dummy?n:e)/2,u+=(d.dummy?n:e)/2,u+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":s=d.width/2;break;case"r":s=-d.width/2;break}return s&&(u+=r?s:-s),s=0,u}}function qn(e,n){return e.node(n).width}function Wn(e){e=de(e),zn(e),Ee(Gn(e),function(n,r){e.node(r).x=n})}function zn(e){var n=M(e),r=e.graph().ranksep,t=0;f(n,function(a){var i=g(w(a,function(o){return e.node(o).height}));f(a,function(o){e.node(o).y=t+i/2}),t+=i+r})}function Er(e,n){var r=De;r("layout",()=>{var t=r(" buildLayoutGraph",()=>tr(e));r(" runLayout",()=>Xn(t,r)),r(" updateInputGraph",()=>Un(e,t))})}function Xn(e,n){n(" makeSpaceForEdgeLabels",()=>ar(e)),n(" removeSelfEdges",()=>hr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>sn(e)),n(" rank",()=>on(de(e))),n(" injectEdgeLabelProxies",()=>or(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>ir(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ge(e)),n(" order",()=>In(e)),n(" insertSelfEdges",()=>vr(e)),n(" adjustCoordinateSystem",()=>$e(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>pr(e)),n(" removeBorderNodes",()=>lr(e)),n(" normalize.undo",()=>He(e)),n(" fixupEdgeLabelCoords",()=>fr(e)),n(" undoCoordinateSystem",()=>qe(e)),n(" translateGraph",()=>ur(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>cr(e)),n(" acyclic.undo",()=>Fe(e))}function Un(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Hn=["nodesep","edgesep","ranksep","marginx","marginy"],Jn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Kn=["acyclicer","ranker","rankdir","align"],Qn=["width","height"],Zn={width:0,height:0},er=["minlen","weight","width","height","labeloffset"],nr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rr=["labelpos"];function tr(e){var n=new y({multigraph:!0,compound:!0}),r=Y(e.graph());return n.setGraph(D({},Jn,A(r,Hn),C(r,Kn))),f(e.nodes(),function(t){var a=Y(e.node(t));n.setNode(t,Oe(A(a,Qn),Zn)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=Y(e.edge(t));n.setEdge(t,D({},nr,A(a,er),C(a,rr)))}),n}function ar(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function or(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};O(e,"edge-proxy",i,"_ep")}})}function ir(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=g(n,t.maxRank))}),e.graph().maxRank=n}function dr(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function ur(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,d=i.marginy||0;function u(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){u(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),n-=o,t-=d,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+d}function sr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(K(t,i)),r.points.push(K(a,o))})}function fr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function cr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function lr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function hr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function vr(e){var n=M(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(d){O(e,"selfedge",{width:d.label.width,height:d.label.height,rank:o.rank,order:i+ ++t,e:d.e,label:d.label},"_se")}),delete o.selfEdges})})}function pr(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,d=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-d},{x:a+5*o/6,y:i-d},{x:a+o,y:i},{x:a+5*o/6,y:i+d},{x:a+2*o/3,y:i+d}],r.label.x=r.x,r.label.y=r.y}})}function A(e,n){return S(C(e,n),Number)}function Y(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Er as l};
@@ -1 +1 @@
1
- import{P as y}from"./mermaid.core-BiF8MSuv.js";import{f,r as j}from"./forEach-Bvicu226.js";import{m as w,r as x,a as L,b as g,c as $,f as q,z as ke,s as P,e as S,g as xe,h as Ee,d as Oe}from"./zipObject-DPSTm6OB.js";import{f as R,u as W,h as ie,p as C,l as T,c as Ne}from"./uniqueId-Dci46PXR.js";import{i as b,f as _,v as E}from"./isUndefined-QeaoSmDB.js";import{c as Le,b as Ie}from"./_baseRest-CxHO6LCs.js";import{m as D}from"./merge-Bj_36vYI.js";class Pe{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return J(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&J(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Re)),t=t._prev;return"["+n.join(", ")+"]"}}function J(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var _e=Le(1);function Ce(e,n){if(e.nodeCount()<=1)return[];var r=je(e,n||_e),t=Te(r.graph,r.buckets,r.zeroIdx);return R(w(t,function(a){return e.outEdges(a.v,a.w)}))}function Te(e,n,r){for(var t=[],a=n[n.length-1],i=n[0],o;e.nodeCount();){for(;o=i.dequeue();)F(e,n,r,o);for(;o=a.dequeue();)F(e,n,r,o);if(e.nodeCount()){for(var d=n.length-2;d>0;--d)if(o=n[d].dequeue(),o){t=t.concat(F(e,n,r,o,!0));break}}}return t}function F(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var d=e.edge(o),u=e.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=d,G(n,r,u)}),f(e.outEdges(t.v),function(o){var d=e.edge(o),u=o.w,s=e.node(u);s.in-=d,G(n,r,s)}),e.removeNode(t.v),i}function je(e,n){var r=new y,t=0,a=0;f(e.nodes(),function(d){r.setNode(d,{v:d,in:0,out:0})}),f(e.edges(),function(d){var u=r.edge(d.v,d.w)||0,s=n(d),c=u+s;r.setEdge(d.v,d.w,c),a=Math.max(a,r.node(d.v).out+=s),t=Math.max(t,r.node(d.w).in+=s)});var i=x(a+t+3).map(function(){return new Pe}),o=t+1;return f(r.nodes(),function(d){G(i,o,r.node(d))}),{graph:r,buckets:i,zeroIdx:o}}function G(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Ce(e,r(e)):Me(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,W("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function Me(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function Fe(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function O(e,n,r,t){var a;do a=W(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function Ve(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function K(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,d=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var u,s;return Math.abs(i)*o>Math.abs(a)*d?(i<0&&(d=-d),u=d*a/i,s=d):(a<0&&(o=-o),u=o,s=o*i/a),{x:r+u,y:t+s}}function M(e){var n=w(x(ue(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;b(a)||(n[a][t.order]=r)}),n}function Be(e){var n=L(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ie(t,"rank")&&(t.rank-=n)})}function Ae(e){var n=L(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){b(i)&&o%a!==0?--t:t&&f(i,function(d){e.node(d).rank+=t})})}function Q(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),O(e,"border",a,n)}function ue(e){return g(w(e.nodes(),function(n){var r=e.node(n).rank;if(!b(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function De(e,n){return n()}function Ge(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;i<o;++i)Z(e,"borderLeft","_bl",r,a,i),Z(e,"borderRight","_br",r,a,i)}}f(e.children(),n)}function Z(e,n,r,t,a,i){var o={width:0,height:0,rank:i,borderType:n},d=a[n][i-1],u=O(e,"border",o,r);a[n][i]=u,e.setParent(u,t),d&&e.setEdge(d,u,{weight:1})}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&se(e)}function qe(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),se(e))}function se(e){f(e.nodes(),function(n){ee(e.node(n))}),f(e.edges(),function(n){ee(e.edge(n))})}function ee(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f(e.nodes(),function(n){V(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,V),Object.prototype.hasOwnProperty.call(r,"y")&&V(r)})}function V(e){e.y=-e.y}function ze(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,B),Object.prototype.hasOwnProperty.call(r,"x")&&B(r)})}function B(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f(e.edges(),function(n){Ue(e,n)})}function Ue(e,n){var r=n.v,t=e.node(r).rank,a=n.w,i=e.node(a).rank,o=n.name,d=e.edge(n),u=d.labelRank;if(i!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<i;++l,++t)d.points=[],s={width:0,height:0,edgeLabel:d,edgeObj:n,rank:t},c=O(e,"edge",s,"_d"),t===u&&(s.width=d.width,s.height=d.height,s.dummy="edge-label",s.labelpos=d.labelpos),e.setEdge(r,c,{weight:d.weight},o),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:d.weight},o)}}function He(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function z(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var i=L(w(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),a.rank=i}f(e.sources(),r)}function I(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function fe(e){var n=new y({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,i;Je(n,e)<t;)a=Ke(n,e),i=n.hasNode(a.v)?I(e,a):-I(e,a),Qe(n,e,i);return n}function Je(e,n){function r(t){f(n.nodeEdges(t),function(a){var i=a.v,o=t===i?a.w:i;!e.hasNode(o)&&!I(n,a)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return f(e.nodes(),r),e.nodeCount()}function Ke(e,n){return $(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return I(n,r)})}function Qe(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function Ze(){}Ze.prototype=new Error;function ce(e,n,r){Ie(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return f(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);le(e,o,r==="post",i,t,a)}),a}function le(e,n,r,t,a,i){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||i.push(n),f(a(n),function(o){le(e,o,r,t,a,i)}),r&&i.push(n))}function en(e,n){return ce(e,n,"post")}function nn(e,n){return ce(e,n,"pre")}k.initLowLimValues=U;k.initCutValues=X;k.calcCutValue=he;k.leaveEdge=pe;k.enterEdge=we;k.exchangeEdges=me;function k(e){e=Ve(e),z(e);var n=fe(e);U(n),X(n,e);for(var r,t;r=pe(n);)t=we(n,e,r),me(n,e,r,t)}function X(e,n){var r=en(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){rn(e,n,t)})}function rn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=he(e,n,r)}function he(e,n,r){var t=e.node(r),a=t.parent,i=!0,o=n.edge(r,a),d=0;return o||(i=!1,o=n.edge(a,r)),d=o.weight,f(n.nodeEdges(r),function(u){var s=u.v===r,c=s?u.w:u.v;if(c!==a){var l=s===i,h=n.edge(u).weight;if(d+=l?h:-h,an(e,r,c)){var v=e.edge(r,c).cutvalue;d+=l?-v:v}}}),d}function U(e,n){arguments.length<2&&(n=e.nodes()[0]),ve(e,{},1,n)}function ve(e,n,r,t,a){var i=r,o=e.node(t);return n[t]=!0,f(e.neighbors(t),function(d){Object.prototype.hasOwnProperty.call(n,d)||(r=ve(e,n,r,d,t))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function pe(e){return q(e.edges(),function(n){return e.edge(n).cutvalue<0})}function we(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var i=e.node(t),o=e.node(a),d=i,u=!1;i.lim>o.lim&&(d=o,u=!0);var s=_(n.edges(),function(c){return u===ne(e,e.node(c.v),d)&&u!==ne(e,e.node(c.w),d)});return $(s,function(c){return I(n,c)})}function me(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),U(e),X(e,n),tn(e,n)}function tn(e,n){var r=q(e.nodes(),function(a){return!n.node(a).parent}),t=nn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),d=!1;o||(o=n.edge(i,a),d=!0),n.node(a).rank=n.node(i).rank+(d?o.minlen:-o.minlen)})}function an(e,n,r){return e.hasEdge(n,r)}function ne(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function on(e){switch(e.graph().ranker){case"network-simplex":re(e);break;case"tight-tree":un(e);break;case"longest-path":dn(e);break;default:re(e)}}var dn=z;function un(e){z(e),fe(e)}function re(e){k(e)}function sn(e){var n=O(e,"root",{},"_root"),r=fn(e),t=g(E(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=cn(e)+1;f(e.children(),function(o){be(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function be(e,n,r,t,a,i,o){var d=e.children(o);if(!d.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var u=Q(e,"_bt"),s=Q(e,"_bb"),c=e.node(o);e.setParent(u,o),c.borderTop=u,e.setParent(s,o),c.borderBottom=s,f(d,function(l){be(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,m=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(u,v,{weight:m,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:m,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,u,{weight:0,minlen:a+i[o]})}function fn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function cn(e){return j(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function hn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),d,u;o;){if(d=e.parent(o),d?(u=t[d],t[d]=o):(u=a,a=o),u&&u!==o){n.setEdge(u,o);return}o=d}})}function vn(e,n,r){var t=pn(e),a=new y({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),d=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,d||t),f(e[r](i),function(u){var s=u.v===i?u.w:u.v,c=a.edge(s,i),l=b(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(u).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function pn(e){for(var n;e.hasNode(n=W("_root")););return n}function wn(e,n){for(var r=0,t=1;t<n.length;++t)r+=mn(e,n[t-1],n[t]);return r}function mn(e,n,r){for(var t=ke(r,w(r,function(s,c){return c})),a=R(w(n,function(s){return P(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var o=2*i-1;i-=1;var d=w(new Array(o),function(){return 0}),u=0;return f(a.forEach(function(s){var c=s.pos+i;d[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=d[c+1]),c=c-1>>1,d[c]+=s.weight;u+=s.weight*l})),u}function bn(e){var n={},r=_(e.nodes(),function(d){return!e.children(d).length}),t=g(w(r,function(d){return e.node(d).rank})),a=w(x(t+1),function(){return[]});function i(d){if(!ie(n,d)){n[d]=!0;var u=e.node(d);a[u.rank].push(d),f(e.successors(d),i)}}var o=P(r,function(d){return e.node(d).rank});return f(o,i),a}function yn(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=j(t,function(i,o){var d=e.edge(o),u=e.node(o.v);return{sum:i.sum+d.weight*u.order,weight:i.weight+d.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function gn(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};b(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!b(i)&&!b(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return kn(t)}function kn(e){var n=[];function r(i){return function(o){o.merged||(b(o.barycenter)||b(i.barycenter)||o.barycenter>=i.barycenter)&&xn(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return C(i,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function En(e,n){var r=Ye(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=P(r.rhs,function(c){return-c.i}),i=[],o=0,d=0,u=0;t.sort(On(!!n)),u=te(i,a,u),f(t,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,d+=c.weight,u=te(i,a,u)});var s={vs:R(i)};return d&&(s.barycenter=o/d,s.weight=d),s}function te(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function On(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ye(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,d=i?i.borderRight:void 0,u={};o&&(a=_(a,function(p){return p!==o&&p!==d}));var s=yn(e,a);f(s,function(p){if(e.children(p.v).length){var m=ye(e,p.v,r,t);u[p.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&Ln(p,m)}});var c=gn(s,r);Nn(c,u);var l=En(c,t);if(o&&(l.vs=R([o,l.vs,d]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(d)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function Nn(e,n){f(e,function(r){r.vs=R(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ln(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function In(e){var n=ue(e),r=ae(e,x(1,n+1),"inEdges"),t=ae(e,x(n-1,-1,-1),"outEdges"),a=bn(e);oe(e,a);for(var i=Number.POSITIVE_INFINITY,o,d=0,u=0;u<4;++d,++u){Pn(d%2?r:t,d%4>=2),a=M(e);var s=wn(e,a);s<i&&(u=0,o=Ne(a),i=s)}oe(e,o)}function ae(e,n,r){return w(n,function(t){return vn(e,t,r)})}function Pn(e,n){var r=new y;f(e,function(t){var a=t.graph().root,i=ye(t,a,r,n);f(i.vs,function(o,d){t.node(o).order=d}),hn(t,r,i.vs)})}function oe(e,n){f(n,function(r){f(r,function(t,a){e.node(t).order=a})})}function Rn(e){var n=Cn(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,i=_n(e,n,a.v,a.w),o=i.path,d=i.lca,u=0,s=o[u],c=!0;r!==a.w;){if(t=e.node(r),c){for(;(s=o[u])!==d&&e.node(s).maxRank<t.rank;)u++;s===d&&(c=!1)}if(!c){for(;u<o.length-1&&e.node(s=o[u+1]).minRank<=t.rank;)u++;s=o[u]}e.setParent(r,s),r=e.successors(r)[0]}})}function _n(e,n,r,t){var a=[],i=[],o=Math.min(n[r].low,n[t].low),d=Math.max(n[r].lim,n[t].lim),u,s;u=r;do u=e.parent(u),a.push(u);while(u&&(n[u].low>o||d>n[u].lim));for(s=u,u=t;(u=e.parent(u))!==s;)i.push(u);return{path:a.concat(i.reverse()),lca:s}}function Cn(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function Tn(e,n){var r={};function t(a,i){var o=0,d=0,u=a.length,s=T(i);return f(i,function(c,l){var h=Sn(e,c),v=h?e.node(h).order:u;(h||c===s)&&(f(i.slice(d,l+1),function(p){f(e.predecessors(p),function(m){var N=e.node(m),H=N.order;(H<o||v<H)&&!(N.dummy&&e.node(p).dummy)&&ge(r,m,p)})}),d=l+1,o=v)}),i}return j(n,t),r}function jn(e,n){var r={};function t(i,o,d,u,s){var c;f(x(o,d),function(l){c=i[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<u||v.order>s)&&ge(r,h,c)})})}function a(i,o){var d=-1,u,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(u=e.node(h[0]).order,t(o,s,l,d,u),s=l,d=u)}t(o,s,o.length,u,i.length)}),o}return j(n,a),r}function Sn(e,n){if(e.node(n).dummy)return q(e.predecessors(n),function(r){return e.node(r).dummy})}function ge(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Mn(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Fn(e,n,r,t){var a={},i={},o={};return f(n,function(d){f(d,function(u,s){a[u]=u,i[u]=u,o[u]=s})}),f(n,function(d){var u=-1;f(d,function(s){var c=t(s);if(c.length){c=P(c,function(m){return o[m]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&u<o[p]&&!Mn(r,s,p)&&(i[p]=s,i[s]=a[s]=a[p],u=o[p])}}})}),{root:a,align:i}}function Vn(e,n,r,t,a){var i={},o=Bn(e,n,r,a),d=a?"borderLeft":"borderRight";function u(l,h){for(var v=o.nodes(),p=v.pop(),m={};p;)m[p]?l(p):(m[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){i[l]=o.inEdges(l).reduce(function(h,v){return Math.max(h,i[v.v]+o.edge(v))},0)}function c(l){var h=o.outEdges(l).reduce(function(p,m){return Math.min(p,i[m.w]-o.edge(m))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==d&&(i[l]=Math.max(i[l],h))}return u(s,o.predecessors.bind(o)),u(c,o.successors.bind(o)),f(t,function(l){i[l]=i[r[l]]}),i}function Bn(e,n,r,t){var a=new y,i=e.graph(),o=$n(i.nodesep,i.edgesep,t);return f(n,function(d){var u;f(d,function(s){var c=r[s];if(a.setNode(c),u){var l=r[u],h=a.edge(l,c);a.setEdge(l,c,Math.max(o(e,s,u),h||0))}u=s})}),a}function An(e,n){return $(E(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return xe(r,function(i,o){var d=qn(e,o)/2;t=Math.max(i+d,t),a=Math.min(i-d,a)}),t-a})}function Yn(e,n){var r=E(n),t=L(r),a=g(r);f(["u","d"],function(i){f(["l","r"],function(o){var d=i+o,u=e[d],s;if(u!==n){var c=E(u);s=o==="l"?t-L(c):a-g(c),s&&(e[d]=S(u,function(l){return l+s}))}})})}function Dn(e,n){return S(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=P(w(e,t));return(a[1]+a[2])/2})}function Gn(e){var n=M(e),r=D(Tn(e,n),jn(e,n)),t={},a;f(["u","d"],function(o){a=o==="u"?n:E(n).reverse(),f(["l","r"],function(d){d==="r"&&(a=w(a,function(l){return E(l).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),s=Fn(e,a,r,u),c=Vn(e,a,s.root,s.align,d==="r");d==="r"&&(c=S(c,function(l){return-l})),t[o+d]=c})});var i=An(e,t);return Yn(t,i),Dn(t,e.graph().align)}function $n(e,n,r){return function(t,a,i){var o=t.node(a),d=t.node(i),u=0,s;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2;break}if(s&&(u+=r?s:-s),s=0,u+=(o.dummy?n:e)/2,u+=(d.dummy?n:e)/2,u+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":s=d.width/2;break;case"r":s=-d.width/2;break}return s&&(u+=r?s:-s),s=0,u}}function qn(e,n){return e.node(n).width}function Wn(e){e=de(e),zn(e),Ee(Gn(e),function(n,r){e.node(r).x=n})}function zn(e){var n=M(e),r=e.graph().ranksep,t=0;f(n,function(a){var i=g(w(a,function(o){return e.node(o).height}));f(a,function(o){e.node(o).y=t+i/2}),t+=i+r})}function Er(e,n){var r=De;r("layout",()=>{var t=r(" buildLayoutGraph",()=>tr(e));r(" runLayout",()=>Xn(t,r)),r(" updateInputGraph",()=>Un(e,t))})}function Xn(e,n){n(" makeSpaceForEdgeLabels",()=>ar(e)),n(" removeSelfEdges",()=>hr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>sn(e)),n(" rank",()=>on(de(e))),n(" injectEdgeLabelProxies",()=>or(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>ir(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ge(e)),n(" order",()=>In(e)),n(" insertSelfEdges",()=>vr(e)),n(" adjustCoordinateSystem",()=>$e(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>pr(e)),n(" removeBorderNodes",()=>lr(e)),n(" normalize.undo",()=>He(e)),n(" fixupEdgeLabelCoords",()=>fr(e)),n(" undoCoordinateSystem",()=>qe(e)),n(" translateGraph",()=>ur(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>cr(e)),n(" acyclic.undo",()=>Fe(e))}function Un(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Hn=["nodesep","edgesep","ranksep","marginx","marginy"],Jn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Kn=["acyclicer","ranker","rankdir","align"],Qn=["width","height"],Zn={width:0,height:0},er=["minlen","weight","width","height","labeloffset"],nr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rr=["labelpos"];function tr(e){var n=new y({multigraph:!0,compound:!0}),r=Y(e.graph());return n.setGraph(D({},Jn,A(r,Hn),C(r,Kn))),f(e.nodes(),function(t){var a=Y(e.node(t));n.setNode(t,Oe(A(a,Qn),Zn)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=Y(e.edge(t));n.setEdge(t,D({},nr,A(a,er),C(a,rr)))}),n}function ar(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function or(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};O(e,"edge-proxy",i,"_ep")}})}function ir(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=g(n,t.maxRank))}),e.graph().maxRank=n}function dr(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function ur(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,d=i.marginy||0;function u(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){u(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),n-=o,t-=d,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+d}function sr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(K(t,i)),r.points.push(K(a,o))})}function fr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function cr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function lr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function hr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function vr(e){var n=M(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(d){O(e,"selfedge",{width:d.label.width,height:d.label.height,rank:o.rank,order:i+ ++t,e:d.e,label:d.label},"_se")}),delete o.selfEdges})})}function pr(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,d=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-d},{x:a+5*o/6,y:i-d},{x:a+o,y:i},{x:a+5*o/6,y:i+d},{x:a+2*o/3,y:i+d}],r.label.x=r.x,r.label.y=r.y}})}function A(e,n){return S(C(e,n),Number)}function Y(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Er as l};
1
+ import{P as y}from"./mermaid.core-Do9KSWkx.js";import{f,r as j}from"./forEach-Bvicu226.js";import{m as w,r as x,a as L,b as g,c as $,f as q,z as ke,s as P,e as S,g as xe,h as Ee,d as Oe}from"./zipObject-DPSTm6OB.js";import{f as R,u as W,h as ie,p as C,l as T,c as Ne}from"./uniqueId-Dci46PXR.js";import{i as b,f as _,v as E}from"./isUndefined-QeaoSmDB.js";import{c as Le,b as Ie}from"./_baseRest-CxHO6LCs.js";import{m as D}from"./merge-Bj_36vYI.js";class Pe{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return J(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&J(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Re)),t=t._prev;return"["+n.join(", ")+"]"}}function J(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var _e=Le(1);function Ce(e,n){if(e.nodeCount()<=1)return[];var r=je(e,n||_e),t=Te(r.graph,r.buckets,r.zeroIdx);return R(w(t,function(a){return e.outEdges(a.v,a.w)}))}function Te(e,n,r){for(var t=[],a=n[n.length-1],i=n[0],o;e.nodeCount();){for(;o=i.dequeue();)F(e,n,r,o);for(;o=a.dequeue();)F(e,n,r,o);if(e.nodeCount()){for(var d=n.length-2;d>0;--d)if(o=n[d].dequeue(),o){t=t.concat(F(e,n,r,o,!0));break}}}return t}function F(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var d=e.edge(o),u=e.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=d,G(n,r,u)}),f(e.outEdges(t.v),function(o){var d=e.edge(o),u=o.w,s=e.node(u);s.in-=d,G(n,r,s)}),e.removeNode(t.v),i}function je(e,n){var r=new y,t=0,a=0;f(e.nodes(),function(d){r.setNode(d,{v:d,in:0,out:0})}),f(e.edges(),function(d){var u=r.edge(d.v,d.w)||0,s=n(d),c=u+s;r.setEdge(d.v,d.w,c),a=Math.max(a,r.node(d.v).out+=s),t=Math.max(t,r.node(d.w).in+=s)});var i=x(a+t+3).map(function(){return new Pe}),o=t+1;return f(r.nodes(),function(d){G(i,o,r.node(d))}),{graph:r,buckets:i,zeroIdx:o}}function G(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Ce(e,r(e)):Me(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,W("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function Me(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function Fe(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function O(e,n,r,t){var a;do a=W(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function Ve(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function K(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,d=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var u,s;return Math.abs(i)*o>Math.abs(a)*d?(i<0&&(d=-d),u=d*a/i,s=d):(a<0&&(o=-o),u=o,s=o*i/a),{x:r+u,y:t+s}}function M(e){var n=w(x(ue(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;b(a)||(n[a][t.order]=r)}),n}function Be(e){var n=L(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ie(t,"rank")&&(t.rank-=n)})}function Ae(e){var n=L(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){b(i)&&o%a!==0?--t:t&&f(i,function(d){e.node(d).rank+=t})})}function Q(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),O(e,"border",a,n)}function ue(e){return g(w(e.nodes(),function(n){var r=e.node(n).rank;if(!b(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function De(e,n){return n()}function Ge(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;i<o;++i)Z(e,"borderLeft","_bl",r,a,i),Z(e,"borderRight","_br",r,a,i)}}f(e.children(),n)}function Z(e,n,r,t,a,i){var o={width:0,height:0,rank:i,borderType:n},d=a[n][i-1],u=O(e,"border",o,r);a[n][i]=u,e.setParent(u,t),d&&e.setEdge(d,u,{weight:1})}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&se(e)}function qe(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),se(e))}function se(e){f(e.nodes(),function(n){ee(e.node(n))}),f(e.edges(),function(n){ee(e.edge(n))})}function ee(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f(e.nodes(),function(n){V(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,V),Object.prototype.hasOwnProperty.call(r,"y")&&V(r)})}function V(e){e.y=-e.y}function ze(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,B),Object.prototype.hasOwnProperty.call(r,"x")&&B(r)})}function B(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f(e.edges(),function(n){Ue(e,n)})}function Ue(e,n){var r=n.v,t=e.node(r).rank,a=n.w,i=e.node(a).rank,o=n.name,d=e.edge(n),u=d.labelRank;if(i!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<i;++l,++t)d.points=[],s={width:0,height:0,edgeLabel:d,edgeObj:n,rank:t},c=O(e,"edge",s,"_d"),t===u&&(s.width=d.width,s.height=d.height,s.dummy="edge-label",s.labelpos=d.labelpos),e.setEdge(r,c,{weight:d.weight},o),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:d.weight},o)}}function He(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function z(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var i=L(w(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),a.rank=i}f(e.sources(),r)}function I(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function fe(e){var n=new y({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,i;Je(n,e)<t;)a=Ke(n,e),i=n.hasNode(a.v)?I(e,a):-I(e,a),Qe(n,e,i);return n}function Je(e,n){function r(t){f(n.nodeEdges(t),function(a){var i=a.v,o=t===i?a.w:i;!e.hasNode(o)&&!I(n,a)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return f(e.nodes(),r),e.nodeCount()}function Ke(e,n){return $(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return I(n,r)})}function Qe(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function Ze(){}Ze.prototype=new Error;function ce(e,n,r){Ie(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return f(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);le(e,o,r==="post",i,t,a)}),a}function le(e,n,r,t,a,i){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||i.push(n),f(a(n),function(o){le(e,o,r,t,a,i)}),r&&i.push(n))}function en(e,n){return ce(e,n,"post")}function nn(e,n){return ce(e,n,"pre")}k.initLowLimValues=U;k.initCutValues=X;k.calcCutValue=he;k.leaveEdge=pe;k.enterEdge=we;k.exchangeEdges=me;function k(e){e=Ve(e),z(e);var n=fe(e);U(n),X(n,e);for(var r,t;r=pe(n);)t=we(n,e,r),me(n,e,r,t)}function X(e,n){var r=en(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){rn(e,n,t)})}function rn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=he(e,n,r)}function he(e,n,r){var t=e.node(r),a=t.parent,i=!0,o=n.edge(r,a),d=0;return o||(i=!1,o=n.edge(a,r)),d=o.weight,f(n.nodeEdges(r),function(u){var s=u.v===r,c=s?u.w:u.v;if(c!==a){var l=s===i,h=n.edge(u).weight;if(d+=l?h:-h,an(e,r,c)){var v=e.edge(r,c).cutvalue;d+=l?-v:v}}}),d}function U(e,n){arguments.length<2&&(n=e.nodes()[0]),ve(e,{},1,n)}function ve(e,n,r,t,a){var i=r,o=e.node(t);return n[t]=!0,f(e.neighbors(t),function(d){Object.prototype.hasOwnProperty.call(n,d)||(r=ve(e,n,r,d,t))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function pe(e){return q(e.edges(),function(n){return e.edge(n).cutvalue<0})}function we(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var i=e.node(t),o=e.node(a),d=i,u=!1;i.lim>o.lim&&(d=o,u=!0);var s=_(n.edges(),function(c){return u===ne(e,e.node(c.v),d)&&u!==ne(e,e.node(c.w),d)});return $(s,function(c){return I(n,c)})}function me(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),U(e),X(e,n),tn(e,n)}function tn(e,n){var r=q(e.nodes(),function(a){return!n.node(a).parent}),t=nn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),d=!1;o||(o=n.edge(i,a),d=!0),n.node(a).rank=n.node(i).rank+(d?o.minlen:-o.minlen)})}function an(e,n,r){return e.hasEdge(n,r)}function ne(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function on(e){switch(e.graph().ranker){case"network-simplex":re(e);break;case"tight-tree":un(e);break;case"longest-path":dn(e);break;default:re(e)}}var dn=z;function un(e){z(e),fe(e)}function re(e){k(e)}function sn(e){var n=O(e,"root",{},"_root"),r=fn(e),t=g(E(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=cn(e)+1;f(e.children(),function(o){be(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function be(e,n,r,t,a,i,o){var d=e.children(o);if(!d.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var u=Q(e,"_bt"),s=Q(e,"_bb"),c=e.node(o);e.setParent(u,o),c.borderTop=u,e.setParent(s,o),c.borderBottom=s,f(d,function(l){be(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,m=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(u,v,{weight:m,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:m,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,u,{weight:0,minlen:a+i[o]})}function fn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function cn(e){return j(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function hn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),d,u;o;){if(d=e.parent(o),d?(u=t[d],t[d]=o):(u=a,a=o),u&&u!==o){n.setEdge(u,o);return}o=d}})}function vn(e,n,r){var t=pn(e),a=new y({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),d=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,d||t),f(e[r](i),function(u){var s=u.v===i?u.w:u.v,c=a.edge(s,i),l=b(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(u).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function pn(e){for(var n;e.hasNode(n=W("_root")););return n}function wn(e,n){for(var r=0,t=1;t<n.length;++t)r+=mn(e,n[t-1],n[t]);return r}function mn(e,n,r){for(var t=ke(r,w(r,function(s,c){return c})),a=R(w(n,function(s){return P(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var o=2*i-1;i-=1;var d=w(new Array(o),function(){return 0}),u=0;return f(a.forEach(function(s){var c=s.pos+i;d[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=d[c+1]),c=c-1>>1,d[c]+=s.weight;u+=s.weight*l})),u}function bn(e){var n={},r=_(e.nodes(),function(d){return!e.children(d).length}),t=g(w(r,function(d){return e.node(d).rank})),a=w(x(t+1),function(){return[]});function i(d){if(!ie(n,d)){n[d]=!0;var u=e.node(d);a[u.rank].push(d),f(e.successors(d),i)}}var o=P(r,function(d){return e.node(d).rank});return f(o,i),a}function yn(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=j(t,function(i,o){var d=e.edge(o),u=e.node(o.v);return{sum:i.sum+d.weight*u.order,weight:i.weight+d.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function gn(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};b(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!b(i)&&!b(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return kn(t)}function kn(e){var n=[];function r(i){return function(o){o.merged||(b(o.barycenter)||b(i.barycenter)||o.barycenter>=i.barycenter)&&xn(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return C(i,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function En(e,n){var r=Ye(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=P(r.rhs,function(c){return-c.i}),i=[],o=0,d=0,u=0;t.sort(On(!!n)),u=te(i,a,u),f(t,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,d+=c.weight,u=te(i,a,u)});var s={vs:R(i)};return d&&(s.barycenter=o/d,s.weight=d),s}function te(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function On(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ye(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,d=i?i.borderRight:void 0,u={};o&&(a=_(a,function(p){return p!==o&&p!==d}));var s=yn(e,a);f(s,function(p){if(e.children(p.v).length){var m=ye(e,p.v,r,t);u[p.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&Ln(p,m)}});var c=gn(s,r);Nn(c,u);var l=En(c,t);if(o&&(l.vs=R([o,l.vs,d]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(d)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function Nn(e,n){f(e,function(r){r.vs=R(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ln(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function In(e){var n=ue(e),r=ae(e,x(1,n+1),"inEdges"),t=ae(e,x(n-1,-1,-1),"outEdges"),a=bn(e);oe(e,a);for(var i=Number.POSITIVE_INFINITY,o,d=0,u=0;u<4;++d,++u){Pn(d%2?r:t,d%4>=2),a=M(e);var s=wn(e,a);s<i&&(u=0,o=Ne(a),i=s)}oe(e,o)}function ae(e,n,r){return w(n,function(t){return vn(e,t,r)})}function Pn(e,n){var r=new y;f(e,function(t){var a=t.graph().root,i=ye(t,a,r,n);f(i.vs,function(o,d){t.node(o).order=d}),hn(t,r,i.vs)})}function oe(e,n){f(n,function(r){f(r,function(t,a){e.node(t).order=a})})}function Rn(e){var n=Cn(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,i=_n(e,n,a.v,a.w),o=i.path,d=i.lca,u=0,s=o[u],c=!0;r!==a.w;){if(t=e.node(r),c){for(;(s=o[u])!==d&&e.node(s).maxRank<t.rank;)u++;s===d&&(c=!1)}if(!c){for(;u<o.length-1&&e.node(s=o[u+1]).minRank<=t.rank;)u++;s=o[u]}e.setParent(r,s),r=e.successors(r)[0]}})}function _n(e,n,r,t){var a=[],i=[],o=Math.min(n[r].low,n[t].low),d=Math.max(n[r].lim,n[t].lim),u,s;u=r;do u=e.parent(u),a.push(u);while(u&&(n[u].low>o||d>n[u].lim));for(s=u,u=t;(u=e.parent(u))!==s;)i.push(u);return{path:a.concat(i.reverse()),lca:s}}function Cn(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function Tn(e,n){var r={};function t(a,i){var o=0,d=0,u=a.length,s=T(i);return f(i,function(c,l){var h=Sn(e,c),v=h?e.node(h).order:u;(h||c===s)&&(f(i.slice(d,l+1),function(p){f(e.predecessors(p),function(m){var N=e.node(m),H=N.order;(H<o||v<H)&&!(N.dummy&&e.node(p).dummy)&&ge(r,m,p)})}),d=l+1,o=v)}),i}return j(n,t),r}function jn(e,n){var r={};function t(i,o,d,u,s){var c;f(x(o,d),function(l){c=i[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<u||v.order>s)&&ge(r,h,c)})})}function a(i,o){var d=-1,u,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(u=e.node(h[0]).order,t(o,s,l,d,u),s=l,d=u)}t(o,s,o.length,u,i.length)}),o}return j(n,a),r}function Sn(e,n){if(e.node(n).dummy)return q(e.predecessors(n),function(r){return e.node(r).dummy})}function ge(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Mn(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Fn(e,n,r,t){var a={},i={},o={};return f(n,function(d){f(d,function(u,s){a[u]=u,i[u]=u,o[u]=s})}),f(n,function(d){var u=-1;f(d,function(s){var c=t(s);if(c.length){c=P(c,function(m){return o[m]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&u<o[p]&&!Mn(r,s,p)&&(i[p]=s,i[s]=a[s]=a[p],u=o[p])}}})}),{root:a,align:i}}function Vn(e,n,r,t,a){var i={},o=Bn(e,n,r,a),d=a?"borderLeft":"borderRight";function u(l,h){for(var v=o.nodes(),p=v.pop(),m={};p;)m[p]?l(p):(m[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){i[l]=o.inEdges(l).reduce(function(h,v){return Math.max(h,i[v.v]+o.edge(v))},0)}function c(l){var h=o.outEdges(l).reduce(function(p,m){return Math.min(p,i[m.w]-o.edge(m))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==d&&(i[l]=Math.max(i[l],h))}return u(s,o.predecessors.bind(o)),u(c,o.successors.bind(o)),f(t,function(l){i[l]=i[r[l]]}),i}function Bn(e,n,r,t){var a=new y,i=e.graph(),o=$n(i.nodesep,i.edgesep,t);return f(n,function(d){var u;f(d,function(s){var c=r[s];if(a.setNode(c),u){var l=r[u],h=a.edge(l,c);a.setEdge(l,c,Math.max(o(e,s,u),h||0))}u=s})}),a}function An(e,n){return $(E(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return xe(r,function(i,o){var d=qn(e,o)/2;t=Math.max(i+d,t),a=Math.min(i-d,a)}),t-a})}function Yn(e,n){var r=E(n),t=L(r),a=g(r);f(["u","d"],function(i){f(["l","r"],function(o){var d=i+o,u=e[d],s;if(u!==n){var c=E(u);s=o==="l"?t-L(c):a-g(c),s&&(e[d]=S(u,function(l){return l+s}))}})})}function Dn(e,n){return S(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=P(w(e,t));return(a[1]+a[2])/2})}function Gn(e){var n=M(e),r=D(Tn(e,n),jn(e,n)),t={},a;f(["u","d"],function(o){a=o==="u"?n:E(n).reverse(),f(["l","r"],function(d){d==="r"&&(a=w(a,function(l){return E(l).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),s=Fn(e,a,r,u),c=Vn(e,a,s.root,s.align,d==="r");d==="r"&&(c=S(c,function(l){return-l})),t[o+d]=c})});var i=An(e,t);return Yn(t,i),Dn(t,e.graph().align)}function $n(e,n,r){return function(t,a,i){var o=t.node(a),d=t.node(i),u=0,s;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2;break}if(s&&(u+=r?s:-s),s=0,u+=(o.dummy?n:e)/2,u+=(d.dummy?n:e)/2,u+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":s=d.width/2;break;case"r":s=-d.width/2;break}return s&&(u+=r?s:-s),s=0,u}}function qn(e,n){return e.node(n).width}function Wn(e){e=de(e),zn(e),Ee(Gn(e),function(n,r){e.node(r).x=n})}function zn(e){var n=M(e),r=e.graph().ranksep,t=0;f(n,function(a){var i=g(w(a,function(o){return e.node(o).height}));f(a,function(o){e.node(o).y=t+i/2}),t+=i+r})}function Er(e,n){var r=De;r("layout",()=>{var t=r(" buildLayoutGraph",()=>tr(e));r(" runLayout",()=>Xn(t,r)),r(" updateInputGraph",()=>Un(e,t))})}function Xn(e,n){n(" makeSpaceForEdgeLabels",()=>ar(e)),n(" removeSelfEdges",()=>hr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>sn(e)),n(" rank",()=>on(de(e))),n(" injectEdgeLabelProxies",()=>or(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>ir(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ge(e)),n(" order",()=>In(e)),n(" insertSelfEdges",()=>vr(e)),n(" adjustCoordinateSystem",()=>$e(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>pr(e)),n(" removeBorderNodes",()=>lr(e)),n(" normalize.undo",()=>He(e)),n(" fixupEdgeLabelCoords",()=>fr(e)),n(" undoCoordinateSystem",()=>qe(e)),n(" translateGraph",()=>ur(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>cr(e)),n(" acyclic.undo",()=>Fe(e))}function Un(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Hn=["nodesep","edgesep","ranksep","marginx","marginy"],Jn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Kn=["acyclicer","ranker","rankdir","align"],Qn=["width","height"],Zn={width:0,height:0},er=["minlen","weight","width","height","labeloffset"],nr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rr=["labelpos"];function tr(e){var n=new y({multigraph:!0,compound:!0}),r=Y(e.graph());return n.setGraph(D({},Jn,A(r,Hn),C(r,Kn))),f(e.nodes(),function(t){var a=Y(e.node(t));n.setNode(t,Oe(A(a,Qn),Zn)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=Y(e.edge(t));n.setEdge(t,D({},nr,A(a,er),C(a,rr)))}),n}function ar(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function or(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};O(e,"edge-proxy",i,"_ep")}})}function ir(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=g(n,t.maxRank))}),e.graph().maxRank=n}function dr(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function ur(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,d=i.marginy||0;function u(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){u(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),n-=o,t-=d,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+d}function sr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(K(t,i)),r.points.push(K(a,o))})}function fr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function cr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function lr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function hr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function vr(e){var n=M(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(d){O(e,"selfedge",{width:d.label.width,height:d.label.height,rank:o.rank,order:i+ ++t,e:d.e,label:d.label},"_se")}),delete o.selfEdges})})}function pr(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,d=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-d},{x:a+5*o/6,y:i-d},{x:a+o,y:i},{x:a+5*o/6,y:i+d},{x:a+2*o/3,y:i+d}],r.label.x=r.x,r.label.y=r.y}})}function A(e,n){return S(C(e,n),Number)}function Y(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Er as l};
@@ -1 +1 @@
1
- import{F as n,r}from"../datalayer-app-main.js";import{D as i,l,g as c,u}from"./LexicalToolRegistry-BqxU1w4N.js";function p(o,t){const s=new i(o,l.getState()),{definitions:a,operations:e}=c(o);return n(a,e,{documentId:o,executor:s,format:"toon",...t})}function g(o,t){const s=r.useMemo(()=>new i(o,l.getState()),[o]),a=r.useMemo(()=>({documentId:o,executor:s,format:"toon",...t}),[o,s,t]),e=u(o);return r.useMemo(()=>n(e.definitions,e.operations,a),[e,a])}export{p as createLexicalTools,g as useLexicalTools};
1
+ import{F as n,r}from"../datalayer-app-main.js";import{D as i,l,g as c,u}from"./LexicalToolRegistry-DI_iHg04.js";function p(o,t){const s=new i(o,l.getState()),{definitions:a,operations:e}=c(o);return n(a,e,{documentId:o,executor:s,format:"toon",...t})}function g(o,t){const s=r.useMemo(()=>new i(o,l.getState()),[o]),a=r.useMemo(()=>({documentId:o,executor:s,format:"toon",...t}),[o,s,t]),e=u(o);return r.useMemo(()=>n(e.definitions,e.operations,a),[e,a])}export{p as createLexicalTools,g as useLexicalTools};
@@ -1,4 +1,4 @@
1
- import{cv as Y,J as V,cr as ee,cq as W,aT as B,am as K,eX as pe,aS as j,dO as he,eY as me,ct as fe,aU as R,aV as C,cz as Z,eZ as ge,a_ as _e,aQ as ve,d$ as ye,e_ as be,aZ as we,r as Q,e$ as xe,f0 as Ce}from"../datalayer-app-main.js";import{T as te,g as Se,b as ne,f as oe}from"./index-h8lXpqtD.js";import{I as ie}from"./tokens-BUuPwJ9U.js";import{a as re,b as H,c as M,I as P}from"./tokens-BXLnKVER.js";import{I as ae}from"./tokens-CGj56w43.js";import{g as se,h as ke,m as Te,c as z,D as G,n as Re}from"./index-46VEGuyz.js";import"./hoverbox-CStlKQWE.js";import"./Output-DLpf2Of9.js";import"./index-B5W7CVUY.js";import"./index-CBWGYoQM.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BxgGIFfN.js";import"./d3-color-Jd8hXty2.js";import"./dist-N90VI44_.js";import"./index-Cz10oMGc.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-CrdbRLaE.js";import"./NotebookSkeleton-DHQ--KEB.js";import"./Avatar-B0TcOj_b.js";import"./renderer-NdtLW87o.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-Db8fP24q.js";import"./url-4_0MnaFQ.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BfoXa7hP.js";import"./index-C644crfL.js";import"./KernelVariables-BIWju6rZ.js";import"./index-CavxlEgY.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-W_hhenw6.js";import"./tokens-DcXbsdvP.js";import"./drivecontents-BSbQpH52.js";import"./kernel-Cn-ejD4i.js";function We(i){return V.createElement(te,{source:i.name,title:i.fullPath})}class O extends Y{constructor(e){super(new O.Model(e.docManager)),this.node.title=this.model.path}render(){return V.createElement(We,{fullPath:this.model.path,name:this.model.name})}}(function(i){class e extends ee{constructor(n){super(),this._onTitleChange=a=>{const s=this._getAllState();this._name=a.label,this._triggerChange(s,this._getAllState())},this._onPathChange=(a,s)=>{const c=this._getAllState();this._path=s,this._name=W.PathExt.basename(s),this._triggerChange(c,this._getAllState())},this._path="",this._name="",this._widget=null,this._docManager=n}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(n){const a=this._widget;if(a!==null){const c=this._docManager.contextForWidget(a);c?c.pathChanged.disconnect(this._onPathChange):a.title.changed.disconnect(this._onTitleChange)}const s=this._getAllState();if(this._widget=n,this._widget===null)this._path="",this._name="";else{const c=this._docManager.contextForWidget(this._widget);c?(this._path=c.path,this._name=W.PathExt.basename(c.path),c.pathChanged.connect(this._onPathChange)):(this._path="",this._name=this._widget.title.label,this._widget.title.changed.connect(this._onTitleChange))}this._triggerChange(s,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(n,a){(n[0]!==a[0]||n[1]!==a[1])&&this.stateChanged.emit(void 0)}}i.Model=e})(O||(O={}));function De(i){return V.createElement(te,{source:i.fileStatus})}const Fe=2e3;class N extends Y{constructor(e){super(new N.Model(e.docManager));const n=(e.translator||B).load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){return this.model===null||this.model.status===null?null:V.createElement(De,{fileStatus:this._statusMap[this.model.status]})}}(function(i){class e extends ee{constructor(n){super(),this._onStatusChange=(a,s)=>{this._status=s,this._status==="completed"?(setTimeout(()=>{this._status=null,this.stateChanged.emit(void 0)},Fe),this.stateChanged.emit(void 0)):this.stateChanged.emit(void 0)},this._status=null,this._widget=null,this._status=null,this.widget=null,this._docManager=n}get status(){return this._status}get widget(){return this._widget}set widget(n){var a,s;const c=this._widget;if(c!==null){const p=this._docManager.contextForWidget(c);p?p.saveState.disconnect(this._onStatusChange):!((a=this._widget.content)===null||a===void 0)&&a.saveStateChanged&&this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}if(this._widget=n,this._widget===null)this._status=null;else{const p=this._docManager.contextForWidget(this._widget);p?p.saveState.connect(this._onStatusChange):!((s=this._widget.content)===null||s===void 0)&&s.saveStateChanged&&this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}i.Model=e})(N||(N={}));class Be{constructor(e){this._recentsChanged=new K(this),this._recents={opened:[],closed:[]},this._isDisposed=!1,this._maxRecentsLength=10,this._saveDebouncer=new pe(this._save.bind(this),500),this._stateDB=e.stateDB,this._contentsManager=e.contents,this.updateRootDir(),this._loadRecents().catch(t=>{console.error(`Failed to load recent list from state:
1
+ import{cv as Y,J as V,cr as ee,cq as W,aT as B,am as K,eX as pe,aS as j,dO as he,eY as me,ct as fe,aU as R,aV as C,cz as Z,eZ as ge,a_ as _e,aQ as ve,d$ as ye,e_ as be,aZ as we,r as Q,e$ as xe,f0 as Ce}from"../datalayer-app-main.js";import{T as te,g as Se,b as ne,f as oe}from"./index-npitmnIA.js";import{I as ie}from"./tokens-BUuPwJ9U.js";import{a as re,b as H,c as M,I as P}from"./tokens-BXLnKVER.js";import{I as ae}from"./tokens-CGj56w43.js";import{g as se,h as ke,m as Te,c as z,D as G,n as Re}from"./index-B5fl-cx7.js";import"./hoverbox-CStlKQWE.js";import"./Output-WQnm0VN5.js";import"./index-DE0JwlLw.js";import"./index-Dqc2hT2k.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BxgGIFfN.js";import"./d3-color-Jd8hXty2.js";import"./dist-N90VI44_.js";import"./index-Cz10oMGc.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-umk7yQhN.js";import"./NotebookSkeleton-DHQ--KEB.js";import"./Avatar-B0TcOj_b.js";import"./renderer-DTpEU9RO.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-Db8fP24q.js";import"./url-4_0MnaFQ.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BfoXa7hP.js";import"./index-C644crfL.js";import"./KernelVariables-xXzfdk5t.js";import"./index-CavxlEgY.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-W_hhenw6.js";import"./tokens-DcXbsdvP.js";import"./drivecontents-BSbQpH52.js";import"./kernel-Cn-ejD4i.js";function We(i){return V.createElement(te,{source:i.name,title:i.fullPath})}class O extends Y{constructor(e){super(new O.Model(e.docManager)),this.node.title=this.model.path}render(){return V.createElement(We,{fullPath:this.model.path,name:this.model.name})}}(function(i){class e extends ee{constructor(n){super(),this._onTitleChange=a=>{const s=this._getAllState();this._name=a.label,this._triggerChange(s,this._getAllState())},this._onPathChange=(a,s)=>{const c=this._getAllState();this._path=s,this._name=W.PathExt.basename(s),this._triggerChange(c,this._getAllState())},this._path="",this._name="",this._widget=null,this._docManager=n}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(n){const a=this._widget;if(a!==null){const c=this._docManager.contextForWidget(a);c?c.pathChanged.disconnect(this._onPathChange):a.title.changed.disconnect(this._onTitleChange)}const s=this._getAllState();if(this._widget=n,this._widget===null)this._path="",this._name="";else{const c=this._docManager.contextForWidget(this._widget);c?(this._path=c.path,this._name=W.PathExt.basename(c.path),c.pathChanged.connect(this._onPathChange)):(this._path="",this._name=this._widget.title.label,this._widget.title.changed.connect(this._onTitleChange))}this._triggerChange(s,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(n,a){(n[0]!==a[0]||n[1]!==a[1])&&this.stateChanged.emit(void 0)}}i.Model=e})(O||(O={}));function De(i){return V.createElement(te,{source:i.fileStatus})}const Fe=2e3;class N extends Y{constructor(e){super(new N.Model(e.docManager));const n=(e.translator||B).load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){return this.model===null||this.model.status===null?null:V.createElement(De,{fileStatus:this._statusMap[this.model.status]})}}(function(i){class e extends ee{constructor(n){super(),this._onStatusChange=(a,s)=>{this._status=s,this._status==="completed"?(setTimeout(()=>{this._status=null,this.stateChanged.emit(void 0)},Fe),this.stateChanged.emit(void 0)):this.stateChanged.emit(void 0)},this._status=null,this._widget=null,this._status=null,this.widget=null,this._docManager=n}get status(){return this._status}get widget(){return this._widget}set widget(n){var a,s;const c=this._widget;if(c!==null){const p=this._docManager.contextForWidget(c);p?p.saveState.disconnect(this._onStatusChange):!((a=this._widget.content)===null||a===void 0)&&a.saveStateChanged&&this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}if(this._widget=n,this._widget===null)this._status=null;else{const p=this._docManager.contextForWidget(this._widget);p?p.saveState.connect(this._onStatusChange):!((s=this._widget.content)===null||s===void 0)&&s.saveStateChanged&&this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}i.Model=e})(N||(N={}));class Be{constructor(e){this._recentsChanged=new K(this),this._recents={opened:[],closed:[]},this._isDisposed=!1,this._maxRecentsLength=10,this._saveDebouncer=new pe(this._save.bind(this),500),this._stateDB=e.stateDB,this._contentsManager=e.contents,this.updateRootDir(),this._loadRecents().catch(t=>{console.error(`Failed to load recent list from state:
2
2
  ${t}`)})}get isDisposed(){return this._isDisposed}get recentlyOpened(){return(this._recents.opened||[]).filter(t=>t.root===this._serverRoot)}get recentlyClosed(){return(this._recents.closed||[]).filter(t=>t.root===this._serverRoot)}get changed(){return this._recentsChanged}get maximalRecentsLength(){return this._maxRecentsLength}set maximalRecentsLength(e){this._maxRecentsLength=Math.round(Math.max(1,e));let t=!1;for(const n of["opened","closed"])this._recents[n].length>this._maxRecentsLength&&(this._recents[n].length=this._maxRecentsLength,t=!0);t&&this._recentsChanged.emit(void 0)}dispose(){this.isDisposed||(this._isDisposed=!0,K.clearData(this),this._saveDebouncer.dispose())}addRecent(e,t){const n={...e,root:this._serverRoot},a=this._recents[t],s=a.findIndex(c=>c.path===e.path);s>=0&&a.splice(s,1),a.unshift(n),this._setRecents(a,t),this._recentsChanged.emit(void 0)}clearRecents(){this._setRecents([],"opened"),this._setRecents([],"closed"),this._recentsChanged.emit(void 0)}removeRecent(e,t){this._removeRecent(e.path,[t])}async validate(e){const t=await this._isValid(e);return t||this._removeRecent(e.path),t}updateRootDir(){this._serverRoot=W.PageConfig.getOption("serverRoot")}_removeRecent(e,t=["opened","closed"]){let n=!1;for(const a of t){const s=this._recents[a],c=s.filter(p=>e!==p.path);s.length!==c.length&&(this._setRecents(c,a),n=!0)}n&&this._recentsChanged.emit(void 0)}async _isValid(e){var t;try{await this._contentsManager.get(e.path,{content:!1})}catch(n){if(((t=n.response)===null||t===void 0?void 0:t.status)===404)return!1}return!0}_setRecents(e,t){this._recents[t]=e.slice(0,this.maximalRecentsLength).sort((n,a)=>n.root===a.root?0:n.root!==this._serverRoot?1:-1),this._saveDebouncer.invoke().catch(console.warn)}async _loadRecents(){const e=await this._stateDB.fetch(U.stateDBKey)||{opened:[],closed:[]},t=[...e.opened,...e.closed],n=new Set(await this._getInvalidPaths(t));for(const a of["opened","closed"])this._setRecents(e[a].filter(s=>!n.has(s.path)),a);this._recentsChanged.emit(void 0)}async _getInvalidPaths(e){return(await Promise.all(e.map(async n=>await this._isValid(n)?null:n.path))).filter(n=>typeof n=="string")}async _save(){try{await this._stateDB.save(U.stateDBKey,this._recents)}catch(e){console.log("Saving recents failed",e)}}}var U;(function(i){i.stateDBKey="docmanager:recents"})(U||(U={}));var J;(function(i){i.clearRecents="docmanager:clear-recents"})(J||(J={}));var L;(function(i){i.recentsManager="@jupyterlab/docmanager-extension:recents",i.reopenClosed="@jupyterlab/docmanager-extension:reopen-recently-closed",i.mainPlugin="@jupyterlab/docmanager-extension:plugin"})(L||(L={}));const je={id:L.recentsManager,description:"Provides a manager of recently opened and closed documents.",autoStart:!0,requires:[he.IStateDB],optional:[ae,j],provides:re,activate:(i,e,t,n)=>{const{serviceManager:a}=i,s=(n??B).load("jupyterlab"),c=new Be({stateDB:e,contents:a.contents}),p=m=>{c.maximalRecentsLength=m.get("maxNumberRecents").composite};return t&&Promise.all([i.restored,t.load(L.mainPlugin)]).then(([m,r])=>{r.changed.connect(p),p(r)}),i.commands.addCommand(J.clearRecents,{execute:()=>{c.clearRecents()},isEnabled:()=>c.recentlyOpened.length!=0||c.recentlyClosed.length!=0,label:s.__("Clear Recent Documents"),caption:s.__("Clear the list of recently opened items."),describedBy:{args:{type:"object",properties:{}}}}),c}};var h;(function(i){i.clone="docmanager:clone",i.deleteFile="docmanager:delete-file",i.newUntitled="docmanager:new-untitled",i.open="docmanager:open",i.openBrowserTab="docmanager:open-browser-tab",i.reload="docmanager:reload",i.rename="docmanager:rename",i.del="docmanager:delete",i.duplicate="docmanager:duplicate",i.restoreCheckpoint="docmanager:restore-checkpoint",i.save="docmanager:save",i.saveAll="docmanager:save-all",i.saveAs="docmanager:save-as",i.download="docmanager:download",i.toggleAutosave="docmanager:toggle-autosave",i.showInFileBrowser="docmanager:show-in-file-browser"})(h||(h={}));const F="@jupyterlab/docmanager-extension:plugin",Pe={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:!0,provides:M,activate:i=>{const{shell:e}=i;return new class{constructor(){this._opened=new K(this)}open(t,n){var a;t.id||(t.id=`document-manager-${++$.id}`),t.title.dataset={type:"document-title",...t.title.dataset},t.isAttached||e.add(t,"main",n||{}),(!((a=n?.activate)!==null&&a!==void 0)||a)&&e.activateById(t.id),this._opened.emit(t)}get opened(){return this._opened}}}},Ae={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:!0,requires:[P,M],optional:[se],activate:(i,e,t,n)=>{const a=new WeakSet;t.opened.connect((s,c)=>{const p=e.contextForWidget(c);p&&!a.has(p)&&(n&&Me(n,p),a.add(p))})}},Ee={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:P,requires:[M],optional:[j,se,Se,ke.IInfo,re,Te,H],activate:(i,e,t,n,a,s,c,p,m)=>{var r;const{serviceManager:d,docRegistry:u}=i,_=t??B,g=a??new me({translator:_}),y=m??new G({translator:_}),x=i.restored.then(()=>{});return new Re({registry:u,manager:d,opener:e,when:x,setBusy:(r=n&&(()=>n.setBusy()))!==null&&r!==void 0?r:void 0,sessionDialogs:g,translator:_??B,isConnectedCallback:()=>s?s.isConnected:!0,recentsManager:c??void 0,urlResolverFactory:p??void 0,docManagerDialogs:y})}},Ie={id:F,description:"Adds commands and settings to the document manager.",autoStart:!0,requires:[P,M,ae],optional:[j,ne,z,H],activate:(i,e,t,n,a,s,c,p)=>{a=a??B;const m=a.load("jupyterlab"),r=i.docRegistry;Le(i,e,t,n,a,c,s,p);const d=u=>{const _=u.get("autosave").composite;e.autosave=_===!0||_===!1?_:!0,i.commands.notifyCommandChanged(h.toggleAutosave);const g=u.get("confirmClosingDocument").composite;e.confirmClosingDocument=g??!0;const y=u.get("autosaveInterval").composite;e.autosaveInterval=y||120;const x=u.get("lastModifiedCheckMargin").composite;e.lastModifiedCheckMargin=x||500;const w=u.get("renameUntitledFileOnSave").composite;e.renameUntitledFileOnSave=w??!0;const D=u.get("defaultViewers").composite,o={};Object.keys(D).forEach(l=>{if(!r.getFileType(l)){console.warn(`File Type ${l} not found`);return}r.getWidgetFactory(D[l])||console.warn(`Document viewer ${D[l]} not found`),o[l]=D[l]});for(const l of r.fileTypes())try{r.setDefaultWidgetFactory(l.name,o[l.name])}catch{console.warn(`Failed to set default viewer ${o[l.name]} for file type ${l.name}`)}};Promise.all([n.load(F),i.restored]).then(([u])=>{u.changed.connect(d),d(u);const _=(g,y)=>{["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(y.name)&&u.get(y.name).composite!==y.newValue&&u.set(y.name,y.newValue).catch(x=>{console.error(`Failed to set the setting '${y.name}':
3
3
  ${x}`)})};e.stateChanged.connect(_)}).catch(u=>{console.error(u.message)}),n.transform(F,{fetch:u=>{const _=Array.from(r.fileTypes()).map(w=>w.name).join(`
4
4
  `),g=Array.from(r.widgetFactories()).map(w=>w.name).join(`