@elmethis/core 1.0.0-alpha.145 → 1.0.0-alpha.146

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 (340) hide show
  1. package/dist/{Bash-aFIJDfx0.js → Bash-Dgvf3lDU.js} +1 -1
  2. package/dist/{Css-aYNwv_jI.js → Css-BDTor6my.js} +1 -1
  3. package/dist/ElmShikiHighlighter-B6syB4ax.js +44 -0
  4. package/dist/{Rust-CcTG3HST.js → Rust-BwuxPQOA.js} +1 -1
  5. package/dist/elmethis.js +11 -11
  6. package/dist/index-BFwE0btN.js +3523 -0
  7. package/package.json +12 -14
  8. package/dist/ElmShikiHighlighter--ESSD5xl.js +0 -7531
  9. package/dist/_basePickBy-q3OsvEq8.js +0 -152
  10. package/dist/_baseUniq-DXyFBvJx.js +0 -583
  11. package/dist/abap-BPxeDPn4.js +0 -6
  12. package/dist/actionscript-3-Cjb604Dt.js +0 -6
  13. package/dist/ada-BSgRrxrM.js +0 -6
  14. package/dist/andromeeda-uXNdzNpk.js +0 -4
  15. package/dist/angular-html-Zg5oS4-1.js +0 -32
  16. package/dist/angular-ts-NgJ-y-q8.js +0 -21
  17. package/dist/apache-Cyj7Ib-S.js +0 -6
  18. package/dist/apex-DAAiMqi-.js +0 -6
  19. package/dist/apl-DxZdCuNa.js +0 -16
  20. package/dist/applescript-CroEtIVQ.js +0 -6
  21. package/dist/ara-9AczF2vY.js +0 -6
  22. package/dist/arc-BLiqnhIS.js +0 -83
  23. package/dist/architecture-4AB2E3PP-CJBMa096.js +0 -5
  24. package/dist/architectureDiagram-IEHRJDOE-BmZLGcAR.js +0 -4633
  25. package/dist/asciidoc-raFNDrGb.js +0 -6
  26. package/dist/asm-C8ld_M07.js +0 -6
  27. package/dist/astro-DVLPOVeH.js +0 -16
  28. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  29. package/dist/awk-gc4Y_RTq.js +0 -6
  30. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  31. package/dist/ballerina-CML1q4Hw.js +0 -6
  32. package/dist/bat-BVW1L4ug.js +0 -6
  33. package/dist/beancount-DYEC72C_.js +0 -6
  34. package/dist/berry-VTah6p7n.js +0 -6
  35. package/dist/bibtex-Bqt_3AVI.js +0 -6
  36. package/dist/bicep-DGk9_2l4.js +0 -6
  37. package/dist/blade-kJIUE9Xv.js +0 -20
  38. package/dist/blockDiagram-JOT3LUYC-CirZxs50.js +0 -2247
  39. package/dist/bsl-tt9CYf2I.js +0 -8
  40. package/dist/c-Cb-M0LQR.js +0 -6
  41. package/dist/c4Diagram-VJAJSXHY-CT04iVyI.js +0 -1581
  42. package/dist/cadence-Di4VMBdJ.js +0 -6
  43. package/dist/cairo-CNbjbPRN.js +0 -8
  44. package/dist/catppuccin-frappe-MQ6irQtC.js +0 -4
  45. package/dist/catppuccin-latte-UMitw0Sv.js +0 -4
  46. package/dist/catppuccin-macchiato-CpTwm6bY.js +0 -4
  47. package/dist/catppuccin-mocha-DAcVHoH1.js +0 -4
  48. package/dist/channel-DJoWX82m.js +0 -5
  49. package/dist/chunk-4BMEZGHF-DbrRFQBV.js +0 -9
  50. package/dist/chunk-A2AXSNBT-8nnxOxzM.js +0 -1372
  51. package/dist/chunk-AEK57VVT-BuA3ibij.js +0 -1415
  52. package/dist/chunk-D6G4REZN-C3CadGUl.js +0 -64
  53. package/dist/chunk-RZ5BOZE2-bPOa0Bzk.js +0 -24
  54. package/dist/chunk-XZIHB7SX-tSNzo5Pm.js +0 -15
  55. package/dist/clarity-WOA8trQj.js +0 -6
  56. package/dist/classDiagram-GIVACNV2-Ikn0C8nj.js +0 -16
  57. package/dist/classDiagram-v2-COTLJTTW-Ikn0C8nj.js +0 -16
  58. package/dist/clojure-r3NcJ8yt.js +0 -6
  59. package/dist/clone-KYMNdRyb.js +0 -8
  60. package/dist/cmake-CQmEhYbr.js +0 -6
  61. package/dist/cobol-DpscMYyB.js +0 -10
  62. package/dist/codeowners-Bt9yU6NX.js +0 -6
  63. package/dist/codeql-2Dcm6WNF.js +0 -6
  64. package/dist/coffee-cT6mLyjo.js +0 -8
  65. package/dist/common-lisp-DuX5KqId.js +0 -6
  66. package/dist/coq-DboLktjX.js +0 -6
  67. package/dist/cpp-Dfuj7FgN.js +0 -18
  68. package/dist/crystal-Cu359yzW.js +0 -18
  69. package/dist/csharp-xQvxkZxj.js +0 -6
  70. package/dist/css-BnL1064W.js +0 -6
  71. package/dist/csv-CmYOceLb.js +0 -6
  72. package/dist/cue-ByErcpN2.js +0 -6
  73. package/dist/cypher-DEVyrV5b.js +0 -6
  74. package/dist/cytoscape.esm-aRg21b6u.js +0 -18120
  75. package/dist/d-CBVqdj3C.js +0 -6
  76. package/dist/dagre-OKDRZEBW-Dd5I26Ao.js +0 -447
  77. package/dist/dark-plus-pUHDTVV0.js +0 -4
  78. package/dist/dart-u2fD-sKr.js +0 -6
  79. package/dist/dax-Crz9Wv4y.js +0 -6
  80. package/dist/desktop-DNXSD5qJ.js +0 -6
  81. package/dist/diagram-SSKATNLV-DZNkfESc.js +0 -221
  82. package/dist/diagram-VNBRO52H-CEw-lSHb.js +0 -126
  83. package/dist/diff-DOdUfPSR.js +0 -6
  84. package/dist/docker-CsHqm9tx.js +0 -6
  85. package/dist/dotenv-BYL4tpZA.js +0 -6
  86. package/dist/dracula-BtZx2Kac.js +0 -4
  87. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  88. package/dist/dream-maker-kevRUHRs.js +0 -6
  89. package/dist/edge-D-R-hhaT.js +0 -12
  90. package/dist/elixir-DuneT2DZ.js +0 -8
  91. package/dist/elm-DdPFQYmH.js +0 -8
  92. package/dist/emacs-lisp-Bwasiep6.js +0 -6
  93. package/dist/erDiagram-Q7BY3M3F-Bi-5rbd2.js +0 -841
  94. package/dist/erb-BDkUfiWc.js +0 -10
  95. package/dist/erlang-CxpbZUOc.js +0 -6
  96. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  97. package/dist/everforest-light-BbXl82Em.js +0 -4
  98. package/dist/fennel-B1x5pKr1.js +0 -6
  99. package/dist/fish-BjbXctXH.js +0 -6
  100. package/dist/flowDiagram-4HSFHLVR-Bep2tb38.js +0 -1622
  101. package/dist/fluent-DCuHrNR-.js +0 -6
  102. package/dist/fortran-fixed-form-muAGtm2V.js +0 -8
  103. package/dist/fortran-free-form-Db8k5H7x.js +0 -6
  104. package/dist/fsharp-D3TfYvtR.js +0 -8
  105. package/dist/ganttDiagram-APWFNJXF-MiSNV5UX.js +0 -2493
  106. package/dist/gdresource-C22851qr.js +0 -10
  107. package/dist/gdscript-C-C99PjI.js +0 -6
  108. package/dist/gdshader-0TihrSQl.js +0 -6
  109. package/dist/genie-MtKmcmPo.js +0 -6
  110. package/dist/gherkin-AzJBtK0J.js +0 -6
  111. package/dist/git-commit-Cdscfa4x.js +0 -8
  112. package/dist/git-rebase-BkertWzk.js +0 -8
  113. package/dist/gitGraph-O2Q2CXLX-2aBB3Qlu.js +0 -5
  114. package/dist/gitGraphDiagram-7IBYFJ6S-BeIrUUuR.js +0 -712
  115. package/dist/github-dark-DenFmJkN.js +0 -4
  116. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  117. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  118. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  119. package/dist/github-light-JYsPkUQd.js +0 -4
  120. package/dist/github-light-default-D99KPAby.js +0 -4
  121. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  122. package/dist/gleam-BoJB89vF.js +0 -6
  123. package/dist/glimmer-js-DEzcmBLn.js +0 -14
  124. package/dist/glimmer-ts-CfoDm2Ms.js +0 -14
  125. package/dist/glsl-BcGeWDoy.js +0 -8
  126. package/dist/gnuplot-DgGnPAp8.js +0 -6
  127. package/dist/go-Cw0OOp5U.js +0 -6
  128. package/dist/graph-BN6Ja3dj.js +0 -247
  129. package/dist/graphql-BA9S3A0F.js +0 -14
  130. package/dist/groovy-45PuQEhl.js +0 -6
  131. package/dist/gruvbox-dark-hard-BDGmrmYl.js +0 -4
  132. package/dist/gruvbox-dark-medium-D7OrvcL5.js +0 -4
  133. package/dist/gruvbox-dark-soft-D_75PUdg.js +0 -4
  134. package/dist/gruvbox-light-hard-DhQt1gbs.js +0 -4
  135. package/dist/gruvbox-light-medium-DNXV_Sw8.js +0 -4
  136. package/dist/gruvbox-light-soft-C7ZspGxH.js +0 -4
  137. package/dist/hack-B5c1rmdK.js +0 -10
  138. package/dist/haml-CknjlTyn.js +0 -10
  139. package/dist/handlebars-DxZCQ1Ls.js +0 -14
  140. package/dist/haskell-ClRE648j.js +0 -6
  141. package/dist/haxe-CClgwBXY.js +0 -6
  142. package/dist/hcl-JJeBEFYE.js +0 -6
  143. package/dist/hjson-BollGKL_.js +0 -6
  144. package/dist/hlsl-b3kI2reZ.js +0 -6
  145. package/dist/houston-BDYrDoDW.js +0 -4
  146. package/dist/html-Iy9EJBkL.js +0 -10
  147. package/dist/html-derivative-BfM_d1x5.js +0 -8
  148. package/dist/http-Q-2xEgRf.js +0 -14
  149. package/dist/hxml-C2bnoXd-.js +0 -8
  150. package/dist/hy-S8dYOqS_.js +0 -6
  151. package/dist/imba-DzSSVziz.js +0 -6
  152. package/dist/index-DzMRhuTS.js +0 -17481
  153. package/dist/info-4N47QTOZ-MlaygFtp.js +0 -5
  154. package/dist/infoDiagram-PH2N3AL5-CLDi4hXF.js +0 -22
  155. package/dist/ini-Cw62c0sR.js +0 -6
  156. package/dist/init-DjUOC4st.js +0 -16
  157. package/dist/java-DNw9zkk2.js +0 -6
  158. package/dist/javascript-CXHlxgtu.js +0 -6
  159. package/dist/jinja-D3ov3d_Q.js +0 -11
  160. package/dist/jison-bKZ_ygkY.js +0 -8
  161. package/dist/journeyDiagram-U35MCT3I-DF_hle8P.js +0 -809
  162. package/dist/json-D4cXEhM0.js +0 -6
  163. package/dist/json5-QDX9y-Y9.js +0 -6
  164. package/dist/jsonc-Bph7GQf8.js +0 -6
  165. package/dist/jsonl-CCrMgdQc.js +0 -6
  166. package/dist/jsonnet-SAcLllmN.js +0 -6
  167. package/dist/jssm-f8vsTkbr.js +0 -6
  168. package/dist/jsx-BYrS51r7.js +0 -6
  169. package/dist/julia-k0_CCOLn.js +0 -16
  170. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  171. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  172. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  173. package/dist/kanban-definition-NDS4AKOZ-D2HjB3aQ.js +0 -719
  174. package/dist/kotlin-DZs3CUXT.js +0 -6
  175. package/dist/kusto-gqgW0Ct6.js +0 -6
  176. package/dist/laserwave-6a00oqik.js +0 -4
  177. package/dist/latex-ixPYeODw.js +0 -8
  178. package/dist/layout-eoX7qCNd.js +0 -1325
  179. package/dist/lean-DM2VgJqL.js +0 -6
  180. package/dist/less-I_XXVOZl.js +0 -6
  181. package/dist/light-plus-CZuVqSLX.js +0 -4
  182. package/dist/linear-CjVlzhPx.js +0 -423
  183. package/dist/liquid-DQYM4OUl.js +0 -14
  184. package/dist/llvm-D3Vjgx0u.js +0 -6
  185. package/dist/log-D-MzYv1Z.js +0 -6
  186. package/dist/logo-D1k-IeHX.js +0 -6
  187. package/dist/lua-DcPVWcJ7.js +0 -8
  188. package/dist/luau-B3dL2bb0.js +0 -6
  189. package/dist/make-CR9bkdqJ.js +0 -6
  190. package/dist/markdown-w3MmBOPg.js +0 -6
  191. package/dist/marko-Dou6ix2a.js +0 -14
  192. package/dist/material-theme-D6KBX41T.js +0 -4
  193. package/dist/material-theme-darker-CkRroheE.js +0 -4
  194. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  195. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  196. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  197. package/dist/matlab-Dj6qX5si.js +0 -6
  198. package/dist/mdc-Df47nGTR.js +0 -12
  199. package/dist/mdx-COYqLMfv.js +0 -6
  200. package/dist/mermaid-parser.core-Cnk6H5Tf.js +0 -12836
  201. package/dist/mermaid-qIAHIJes.js +0 -6
  202. package/dist/mermaid.core-CVg1AOGh.js +0 -15467
  203. package/dist/min-dark-C7ak0t6c.js +0 -4
  204. package/dist/min-light-CKFxVcPp.js +0 -4
  205. package/dist/mindmap-definition-ALO5MXBD-RsXchRow.js +0 -3220
  206. package/dist/mipsasm-BJbuoeDX.js +0 -6
  207. package/dist/mojo-BFkEE7I6.js +0 -6
  208. package/dist/monokai-C1KBYcO0.js +0 -4
  209. package/dist/move-DhZIVzw9.js +0 -6
  210. package/dist/narrat-Cru3p5ML.js +0 -6
  211. package/dist/nextflow-JJGGygxI.js +0 -6
  212. package/dist/nginx-Chu4HPUZ.js +0 -8
  213. package/dist/night-owl-Bm2rzalh.js +0 -4
  214. package/dist/nim-m3ClKyoA.js +0 -20
  215. package/dist/nix-DeKhqLCs.js +0 -6
  216. package/dist/nord-CC5OiUXg.js +0 -4
  217. package/dist/nushell-vZ0whCpp.js +0 -6
  218. package/dist/objective-c-DLUrAoO7.js +0 -6
  219. package/dist/objective-cpp-BR9pz3Y7.js +0 -6
  220. package/dist/ocaml-JmaGD6hS.js +0 -6
  221. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  222. package/dist/one-light-D9sNaUtq.js +0 -4
  223. package/dist/ordinal-DfAQgscy.js +0 -61
  224. package/dist/packet-KVYON367-B0ibT50B.js +0 -5
  225. package/dist/pascal-NVmycfDo.js +0 -6
  226. package/dist/perl-Dvb6TR9K.js +0 -16
  227. package/dist/php-CJHnp_ft.js +0 -18
  228. package/dist/pie-R6RNRRYF-eieuCIEv.js +0 -5
  229. package/dist/pieDiagram-IB7DONF6-z3HiYOHT.js +0 -161
  230. package/dist/plastic-CSTz3KZp.js +0 -4
  231. package/dist/plsql-DMWd0imC.js +0 -6
  232. package/dist/po-GS6uwG3N.js +0 -6
  233. package/dist/poimandres-C-VADXHD.js +0 -4
  234. package/dist/polar-kLOnm3TU.js +0 -6
  235. package/dist/postcss-BHhGrjb8.js +0 -6
  236. package/dist/powerquery-CMfeLaGU.js +0 -6
  237. package/dist/powershell-D1mvJxDs.js +0 -6
  238. package/dist/prisma-pUoUFT3i.js +0 -6
  239. package/dist/prolog-DY7WzwMi.js +0 -6
  240. package/dist/proto-CNCp3VWu.js +0 -6
  241. package/dist/pug-CUZjrycK.js +0 -12
  242. package/dist/puppet-B0mgPBqt.js +0 -6
  243. package/dist/purescript-Go548NjJ.js +0 -6
  244. package/dist/python-x6NdgKMy.js +0 -6
  245. package/dist/qml-BZvDVi14.js +0 -8
  246. package/dist/qmldir-BInDYbpo.js +0 -6
  247. package/dist/qss-8QkBlVEn.js +0 -6
  248. package/dist/quadrantDiagram-7GDLP6J5-DKNPBuF7.js +0 -1024
  249. package/dist/r-HSnR3oil.js +0 -6
  250. package/dist/racket-N6wCNCGC.js +0 -6
  251. package/dist/radar-MK3ICKWK-EavvS0dk.js +0 -5
  252. package/dist/raku-DIMO1_4D.js +0 -6
  253. package/dist/razor-B0naKaWH.js +0 -10
  254. package/dist/red-7y8PH7HH.js +0 -4
  255. package/dist/reg-6UpU0EA6.js +0 -6
  256. package/dist/regexp-DHtjPxOp.js +0 -6
  257. package/dist/rel-DBIoUiKW.js +0 -6
  258. package/dist/requirementDiagram-KVF5MWMF-CVtQbDO9.js +0 -851
  259. package/dist/riscv-DpWk9ieM.js +0 -6
  260. package/dist/rose-pine-4uTOzEpE.js +0 -4
  261. package/dist/rose-pine-dawn-GMd81k-m.js +0 -4
  262. package/dist/rose-pine-moon-CIFp_3PJ.js +0 -4
  263. package/dist/rst-B64R6T0G.js +0 -22
  264. package/dist/ruby-DfrpdncG.js +0 -30
  265. package/dist/rust-B-KPd2nT.js +0 -6
  266. package/dist/sankeyDiagram-QLVOVGJD-Bv56p0v8.js +0 -808
  267. package/dist/sas-CJQBty5v.js +0 -8
  268. package/dist/sass-Zos2Blmo.js +0 -6
  269. package/dist/scala-7cAMYIqn.js +0 -6
  270. package/dist/scheme-BQZQETGI.js +0 -6
  271. package/dist/scss-SeF7XgZE.js +0 -8
  272. package/dist/sdbl-67k1U2sQ.js +0 -6
  273. package/dist/sequenceDiagram-X6HHIX6F-B6HsmiCo.js +0 -2281
  274. package/dist/shaderlab-D-UIeqfT.js +0 -8
  275. package/dist/shellscript-DmhSIIKI.js +0 -6
  276. package/dist/shellsession-DJoY56qV.js +0 -8
  277. package/dist/slack-dark-i7wN4OET.js +0 -4
  278. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  279. package/dist/smalltalk-WltKgyq1.js +0 -6
  280. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  281. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  282. package/dist/solarized-light-BheCkDPT.js +0 -4
  283. package/dist/solidity-C04s0Yy3.js +0 -6
  284. package/dist/soy-BLRDPjcE.js +0 -8
  285. package/dist/sparql-DTCaWUmB.js +0 -8
  286. package/dist/splunk-SGh_QiTm.js +0 -6
  287. package/dist/sql-CsvhJWkt.js +0 -6
  288. package/dist/ssh-config-D4I637-k.js +0 -6
  289. package/dist/stata-CoSdWLbd.js +0 -8
  290. package/dist/stateDiagram-DGXRK772-DisyN0eE.js +0 -270
  291. package/dist/stateDiagram-v2-YXO3MK2T-DLdp-rnZ.js +0 -16
  292. package/dist/stylus-C0YS3cII.js +0 -6
  293. package/dist/svelte-D5kfh286.js +0 -14
  294. package/dist/swift-DvTgPjC_.js +0 -6
  295. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  296. package/dist/system-verilog-NDUJ-OOt.js +0 -6
  297. package/dist/systemd-WbxZvB8q.js +0 -6
  298. package/dist/talonscript-CL368eRB.js +0 -6
  299. package/dist/tasl-Dz-WwaLH.js +0 -6
  300. package/dist/tcl-DlZIgGJq.js +0 -6
  301. package/dist/templ-BeQ_faiG.js +0 -12
  302. package/dist/terraform-BlQVOgpk.js +0 -6
  303. package/dist/tex-D5wZQANC.js +0 -8
  304. package/dist/timeline-definition-BDJGKUSR-BXC_uTuM.js +0 -804
  305. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  306. package/dist/toml-DMRYbshZ.js +0 -6
  307. package/dist/ts-tags-BhMM8FHa.js +0 -41
  308. package/dist/tsv-BtvSkaG0.js +0 -6
  309. package/dist/tsx-D0IYuDPS.js +0 -6
  310. package/dist/turtle-p-VV8DEc.js +0 -6
  311. package/dist/twig-B7P5Ovvl.js +0 -18
  312. package/dist/typescript-DKfvlBCw.js +0 -6
  313. package/dist/typespec-CTme0-JL.js +0 -6
  314. package/dist/typst-Dn4vyooU.js +0 -6
  315. package/dist/v-D7ebitkb.js +0 -6
  316. package/dist/vala-TRtLMDHC.js +0 -6
  317. package/dist/vb-B47FrOmA.js +0 -6
  318. package/dist/verilog-B2TLsC4I.js +0 -6
  319. package/dist/vesper-BckBta1U.js +0 -4
  320. package/dist/vhdl-CU5AEtCN.js +0 -6
  321. package/dist/viml-D-fUhqVn.js +0 -6
  322. package/dist/vitesse-black-BoGvW84i.js +0 -4
  323. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  324. package/dist/vitesse-light-CcmG315c.js +0 -4
  325. package/dist/vue-CdwmeZFh.js +0 -31
  326. package/dist/vue-html-C-PRGoQQ.js +0 -10
  327. package/dist/vyper-C03y8CZF.js +0 -6
  328. package/dist/wasm-Bq8UuFo1.js +0 -6
  329. package/dist/wasm-DQxwEHae.js +0 -7
  330. package/dist/wenyan-DZPWEYbu.js +0 -6
  331. package/dist/wgsl-De1GPYf9.js +0 -6
  332. package/dist/wikitext-C-THcCj2.js +0 -6
  333. package/dist/wit-BanP67gl.js +0 -6
  334. package/dist/wolfram-CUT_U39K.js +0 -6
  335. package/dist/xml-jRL-qgj-.js +0 -8
  336. package/dist/xsl-CZWICAVO.js +0 -8
  337. package/dist/xychartDiagram-VJFVF3MP-CkPa_K58.js +0 -1304
  338. package/dist/yaml-DcQhbMrL.js +0 -6
  339. package/dist/zenscript-8JCzLCTe.js +0 -6
  340. package/dist/zig-DhdgDxkm.js +0 -6
@@ -1,1325 +0,0 @@
1
- import { G as g } from "./graph-BN6Ja3dj.js";
2
- import { b as Te, n as ce, o as le, e as z, m as Me, p as Ie, c as Se, d as f, i as m, f as _, v as x, r as I } from "./_baseUniq-DXyFBvJx.js";
3
- import { f as O, b as he, a as Fe, c as je, d as Ve, t as j, m as w, e as P, h as ve, g as X, l as T, i as Ae } from "./_basePickBy-q3OsvEq8.js";
4
- import { i as ee, a as V, b as pe, t as Be } from "./index-DzMRhuTS.js";
5
- import { b3 as Ge, b4 as Ye, b5 as De, aM as qe, b6 as $e, aP as we, b7 as We, aL as q, aq as ze, aR as Xe, as as Ue, b8 as $ } from "./mermaid.core-CVg1AOGh.js";
6
- function He(e) {
7
- return Ge(Ye(e, void 0, O), e + "");
8
- }
9
- var Je = 1, Ze = 4;
10
- function Ke(e) {
11
- return Te(e, Je | Ze);
12
- }
13
- function Qe(e, n) {
14
- return e == null ? e : De(e, ce(n), qe);
15
- }
16
- function en(e, n) {
17
- return e && le(e, ce(n));
18
- }
19
- function nn(e, n) {
20
- return e > n;
21
- }
22
- function S(e, n) {
23
- var r = {};
24
- return n = z(n), le(e, function(t, a, i) {
25
- $e(r, a, n(t, a, i));
26
- }), r;
27
- }
28
- function y(e) {
29
- return e && e.length ? he(e, we, nn) : void 0;
30
- }
31
- function U(e, n) {
32
- return e && e.length ? he(e, z(n), Fe) : void 0;
33
- }
34
- function rn(e, n) {
35
- var r = e.length;
36
- for (e.sort(n); r--; )
37
- e[r] = e[r].value;
38
- return e;
39
- }
40
- function tn(e, n) {
41
- if (e !== n) {
42
- var r = e !== void 0, t = e === null, a = e === e, i = ee(e), o = n !== void 0, u = n === null, d = n === n, s = ee(n);
43
- if (!u && !s && !i && e > n || i && o && d && !u && !s || t && o && d || !r && d || !a)
44
- return 1;
45
- if (!t && !i && !s && e < n || s && r && a && !t && !i || u && r && a || !o && a || !d)
46
- return -1;
47
- }
48
- return 0;
49
- }
50
- function an(e, n, r) {
51
- for (var t = -1, a = e.criteria, i = n.criteria, o = a.length, u = r.length; ++t < o; ) {
52
- var d = tn(a[t], i[t]);
53
- if (d) {
54
- if (t >= u)
55
- return d;
56
- var s = r[t];
57
- return d * (s == "desc" ? -1 : 1);
58
- }
59
- }
60
- return e.index - n.index;
61
- }
62
- function on(e, n, r) {
63
- n.length ? n = V(n, function(i) {
64
- return pe(i) ? function(o) {
65
- return Me(o, i.length === 1 ? i[0] : i);
66
- } : i;
67
- }) : n = [we];
68
- var t = -1;
69
- n = V(n, We(z));
70
- var a = je(e, function(i, o, u) {
71
- var d = V(n, function(s) {
72
- return s(i);
73
- });
74
- return { criteria: d, index: ++t, value: i };
75
- });
76
- return rn(a, function(i, o) {
77
- return an(i, o, r);
78
- });
79
- }
80
- function un(e, n) {
81
- return Ve(e, n, function(r, t) {
82
- return Ie(e, t);
83
- });
84
- }
85
- var M = He(function(e, n) {
86
- return e == null ? {} : un(e, n);
87
- }), dn = Math.ceil, sn = Math.max;
88
- function fn(e, n, r, t) {
89
- for (var a = -1, i = sn(dn((n - e) / (r || 1)), 0), o = Array(i); i--; )
90
- o[++a] = e, e += r;
91
- return o;
92
- }
93
- function cn(e) {
94
- return function(n, r, t) {
95
- return t && typeof t != "number" && q(n, r, t) && (r = t = void 0), n = j(n), r === void 0 ? (r = n, n = 0) : r = j(r), t = t === void 0 ? n < r ? 1 : -1 : j(t), fn(n, r, t);
96
- };
97
- }
98
- var E = cn(), R = ze(function(e, n) {
99
- if (e == null)
100
- return [];
101
- var r = n.length;
102
- return r > 1 && q(e, n[0], n[1]) ? n = [] : r > 2 && q(n[0], n[1], n[2]) && (n = [n[0]]), on(e, Se(n), []);
103
- }), ln = 0;
104
- function H(e) {
105
- var n = ++ln;
106
- return Be(e) + n;
107
- }
108
- function hn(e, n, r) {
109
- for (var t = -1, a = e.length, i = n.length, o = {}; ++t < a; ) {
110
- var u = t < i ? n[t] : void 0;
111
- r(o, e[t], u);
112
- }
113
- return o;
114
- }
115
- function vn(e, n) {
116
- return hn(e || [], n || [], Xe);
117
- }
118
- class pn {
119
- constructor() {
120
- var n = {};
121
- n._next = n._prev = n, this._sentinel = n;
122
- }
123
- dequeue() {
124
- var n = this._sentinel, r = n._prev;
125
- if (r !== n)
126
- return ne(r), r;
127
- }
128
- enqueue(n) {
129
- var r = this._sentinel;
130
- n._prev && n._next && ne(n), n._next = r._next, r._next._prev = n, r._next = n, n._prev = r;
131
- }
132
- toString() {
133
- for (var n = [], r = this._sentinel, t = r._prev; t !== r; )
134
- n.push(JSON.stringify(t, wn)), t = t._prev;
135
- return "[" + n.join(", ") + "]";
136
- }
137
- }
138
- function ne(e) {
139
- e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
140
- }
141
- function wn(e, n) {
142
- if (e !== "_next" && e !== "_prev")
143
- return n;
144
- }
145
- var bn = Ue(1);
146
- function mn(e, n) {
147
- if (e.nodeCount() <= 1)
148
- return [];
149
- var r = yn(e, n || bn), t = gn(r.graph, r.buckets, r.zeroIdx);
150
- return O(
151
- w(t, function(a) {
152
- return e.outEdges(a.v, a.w);
153
- })
154
- );
155
- }
156
- function gn(e, n, r) {
157
- for (var t = [], a = n[n.length - 1], i = n[0], o; e.nodeCount(); ) {
158
- for (; o = i.dequeue(); )
159
- A(e, n, r, o);
160
- for (; o = a.dequeue(); )
161
- A(e, n, r, o);
162
- if (e.nodeCount()) {
163
- for (var u = n.length - 2; u > 0; --u)
164
- if (o = n[u].dequeue(), o) {
165
- t = t.concat(A(e, n, r, o, !0));
166
- break;
167
- }
168
- }
169
- }
170
- return t;
171
- }
172
- function A(e, n, r, t, a) {
173
- var i = a ? [] : void 0;
174
- return f(e.inEdges(t.v), function(o) {
175
- var u = e.edge(o), d = e.node(o.v);
176
- a && i.push({ v: o.v, w: o.w }), d.out -= u, W(n, r, d);
177
- }), f(e.outEdges(t.v), function(o) {
178
- var u = e.edge(o), d = o.w, s = e.node(d);
179
- s.in -= u, W(n, r, s);
180
- }), e.removeNode(t.v), i;
181
- }
182
- function yn(e, n) {
183
- var r = new g(), t = 0, a = 0;
184
- f(e.nodes(), function(u) {
185
- r.setNode(u, { v: u, in: 0, out: 0 });
186
- }), f(e.edges(), function(u) {
187
- var d = r.edge(u.v, u.w) || 0, s = n(u), c = d + s;
188
- r.setEdge(u.v, u.w, c), a = Math.max(a, r.node(u.v).out += s), t = Math.max(t, r.node(u.w).in += s);
189
- });
190
- var i = E(a + t + 3).map(function() {
191
- return new pn();
192
- }), o = t + 1;
193
- return f(r.nodes(), function(u) {
194
- W(i, o, r.node(u));
195
- }), { graph: r, buckets: i, zeroIdx: o };
196
- }
197
- function W(e, n, r) {
198
- r.out ? r.in ? e[r.out - r.in + n].enqueue(r) : e[e.length - 1].enqueue(r) : e[0].enqueue(r);
199
- }
200
- function kn(e) {
201
- var n = e.graph().acyclicer === "greedy" ? mn(e, r(e)) : xn(e);
202
- f(n, function(t) {
203
- var a = e.edge(t);
204
- e.removeEdge(t), a.forwardName = t.name, a.reversed = !0, e.setEdge(t.w, t.v, a, H("rev"));
205
- });
206
- function r(t) {
207
- return function(a) {
208
- return t.edge(a).weight;
209
- };
210
- }
211
- }
212
- function xn(e) {
213
- var n = [], r = {}, t = {};
214
- function a(i) {
215
- Object.prototype.hasOwnProperty.call(t, i) || (t[i] = !0, r[i] = !0, f(e.outEdges(i), function(o) {
216
- Object.prototype.hasOwnProperty.call(r, o.w) ? n.push(o) : a(o.w);
217
- }), delete r[i]);
218
- }
219
- return f(e.nodes(), a), n;
220
- }
221
- function En(e) {
222
- f(e.edges(), function(n) {
223
- var r = e.edge(n);
224
- if (r.reversed) {
225
- e.removeEdge(n);
226
- var t = r.forwardName;
227
- delete r.reversed, delete r.forwardName, e.setEdge(n.w, n.v, r, t);
228
- }
229
- });
230
- }
231
- function L(e, n, r, t) {
232
- var a;
233
- do
234
- a = H(t);
235
- while (e.hasNode(a));
236
- return r.dummy = n, e.setNode(a, r), a;
237
- }
238
- function On(e) {
239
- var n = new g().setGraph(e.graph());
240
- return f(e.nodes(), function(r) {
241
- n.setNode(r, e.node(r));
242
- }), f(e.edges(), function(r) {
243
- var t = n.edge(r.v, r.w) || { weight: 0, minlen: 1 }, a = e.edge(r);
244
- n.setEdge(r.v, r.w, {
245
- weight: t.weight + a.weight,
246
- minlen: Math.max(t.minlen, a.minlen)
247
- });
248
- }), n;
249
- }
250
- function be(e) {
251
- var n = new g({ multigraph: e.isMultigraph() }).setGraph(e.graph());
252
- return f(e.nodes(), function(r) {
253
- e.children(r).length || n.setNode(r, e.node(r));
254
- }), f(e.edges(), function(r) {
255
- n.setEdge(r, e.edge(r));
256
- }), n;
257
- }
258
- function re(e, n) {
259
- var r = e.x, t = e.y, a = n.x - r, i = n.y - t, o = e.width / 2, u = e.height / 2;
260
- if (!a && !i)
261
- throw new Error("Not possible to find intersection inside of the rectangle");
262
- var d, s;
263
- return Math.abs(i) * o > Math.abs(a) * u ? (i < 0 && (u = -u), d = u * a / i, s = u) : (a < 0 && (o = -o), d = o, s = o * i / a), { x: r + d, y: t + s };
264
- }
265
- function F(e) {
266
- var n = w(E(me(e) + 1), function() {
267
- return [];
268
- });
269
- return f(e.nodes(), function(r) {
270
- var t = e.node(r), a = t.rank;
271
- m(a) || (n[a][t.order] = r);
272
- }), n;
273
- }
274
- function Ln(e) {
275
- var n = P(
276
- w(e.nodes(), function(r) {
277
- return e.node(r).rank;
278
- })
279
- );
280
- f(e.nodes(), function(r) {
281
- var t = e.node(r);
282
- ve(t, "rank") && (t.rank -= n);
283
- });
284
- }
285
- function Nn(e) {
286
- var n = P(
287
- w(e.nodes(), function(i) {
288
- return e.node(i).rank;
289
- })
290
- ), r = [];
291
- f(e.nodes(), function(i) {
292
- var o = e.node(i).rank - n;
293
- r[o] || (r[o] = []), r[o].push(i);
294
- });
295
- var t = 0, a = e.graph().nodeRankFactor;
296
- f(r, function(i, o) {
297
- m(i) && o % a !== 0 ? --t : t && f(i, function(u) {
298
- e.node(u).rank += t;
299
- });
300
- });
301
- }
302
- function te(e, n, r, t) {
303
- var a = {
304
- width: 0,
305
- height: 0
306
- };
307
- return arguments.length >= 4 && (a.rank = r, a.order = t), L(e, "border", a, n);
308
- }
309
- function me(e) {
310
- return y(
311
- w(e.nodes(), function(n) {
312
- var r = e.node(n).rank;
313
- if (!m(r))
314
- return r;
315
- })
316
- );
317
- }
318
- function Pn(e, n) {
319
- var r = { lhs: [], rhs: [] };
320
- return f(e, function(t) {
321
- n(t) ? r.lhs.push(t) : r.rhs.push(t);
322
- }), r;
323
- }
324
- function Cn(e, n) {
325
- return n();
326
- }
327
- function _n(e) {
328
- function n(r) {
329
- var t = e.children(r), a = e.node(r);
330
- if (t.length && f(t, n), Object.prototype.hasOwnProperty.call(a, "minRank")) {
331
- a.borderLeft = [], a.borderRight = [];
332
- for (var i = a.minRank, o = a.maxRank + 1; i < o; ++i)
333
- ae(e, "borderLeft", "_bl", r, a, i), ae(e, "borderRight", "_br", r, a, i);
334
- }
335
- }
336
- f(e.children(), n);
337
- }
338
- function ae(e, n, r, t, a, i) {
339
- var o = { width: 0, height: 0, rank: i, borderType: n }, u = a[n][i - 1], d = L(e, "border", o, r);
340
- a[n][i] = d, e.setParent(d, t), u && e.setEdge(u, d, { weight: 1 });
341
- }
342
- function Rn(e) {
343
- var n = e.graph().rankdir.toLowerCase();
344
- (n === "lr" || n === "rl") && ge(e);
345
- }
346
- function Tn(e) {
347
- var n = e.graph().rankdir.toLowerCase();
348
- (n === "bt" || n === "rl") && Mn(e), (n === "lr" || n === "rl") && (In(e), ge(e));
349
- }
350
- function ge(e) {
351
- f(e.nodes(), function(n) {
352
- ie(e.node(n));
353
- }), f(e.edges(), function(n) {
354
- ie(e.edge(n));
355
- });
356
- }
357
- function ie(e) {
358
- var n = e.width;
359
- e.width = e.height, e.height = n;
360
- }
361
- function Mn(e) {
362
- f(e.nodes(), function(n) {
363
- B(e.node(n));
364
- }), f(e.edges(), function(n) {
365
- var r = e.edge(n);
366
- f(r.points, B), Object.prototype.hasOwnProperty.call(r, "y") && B(r);
367
- });
368
- }
369
- function B(e) {
370
- e.y = -e.y;
371
- }
372
- function In(e) {
373
- f(e.nodes(), function(n) {
374
- G(e.node(n));
375
- }), f(e.edges(), function(n) {
376
- var r = e.edge(n);
377
- f(r.points, G), Object.prototype.hasOwnProperty.call(r, "x") && G(r);
378
- });
379
- }
380
- function G(e) {
381
- var n = e.x;
382
- e.x = e.y, e.y = n;
383
- }
384
- function Sn(e) {
385
- e.graph().dummyChains = [], f(e.edges(), function(n) {
386
- Fn(e, n);
387
- });
388
- }
389
- function Fn(e, n) {
390
- var r = n.v, t = e.node(r).rank, a = n.w, i = e.node(a).rank, o = n.name, u = e.edge(n), d = u.labelRank;
391
- if (i !== t + 1) {
392
- e.removeEdge(n);
393
- var s = void 0, c, l;
394
- for (l = 0, ++t; t < i; ++l, ++t)
395
- u.points = [], s = {
396
- width: 0,
397
- height: 0,
398
- edgeLabel: u,
399
- edgeObj: n,
400
- rank: t
401
- }, c = L(e, "edge", s, "_d"), t === d && (s.width = u.width, s.height = u.height, s.dummy = "edge-label", s.labelpos = u.labelpos), e.setEdge(r, c, { weight: u.weight }, o), l === 0 && e.graph().dummyChains.push(c), r = c;
402
- e.setEdge(r, a, { weight: u.weight }, o);
403
- }
404
- }
405
- function jn(e) {
406
- f(e.graph().dummyChains, function(n) {
407
- var r = e.node(n), t = r.edgeLabel, a;
408
- for (e.setEdge(r.edgeObj, t); r.dummy; )
409
- 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);
410
- });
411
- }
412
- function J(e) {
413
- var n = {};
414
- function r(t) {
415
- var a = e.node(t);
416
- if (Object.prototype.hasOwnProperty.call(n, t))
417
- return a.rank;
418
- n[t] = !0;
419
- var i = P(
420
- w(e.outEdges(t), function(o) {
421
- return r(o.w) - e.edge(o).minlen;
422
- })
423
- );
424
- return (i === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
425
- i === void 0 || // return value of _.map([]) for Lodash 4
426
- i === null) && (i = 0), a.rank = i;
427
- }
428
- f(e.sources(), r);
429
- }
430
- function C(e, n) {
431
- return e.node(n.w).rank - e.node(n.v).rank - e.edge(n).minlen;
432
- }
433
- function ye(e) {
434
- var n = new g({ directed: !1 }), r = e.nodes()[0], t = e.nodeCount();
435
- n.setNode(r, {});
436
- for (var a, i; Vn(n, e) < t; )
437
- a = An(n, e), i = n.hasNode(a.v) ? C(e, a) : -C(e, a), Bn(n, e, i);
438
- return n;
439
- }
440
- function Vn(e, n) {
441
- function r(t) {
442
- f(n.nodeEdges(t), function(a) {
443
- var i = a.v, o = t === i ? a.w : i;
444
- !e.hasNode(o) && !C(n, a) && (e.setNode(o, {}), e.setEdge(t, o, {}), r(o));
445
- });
446
- }
447
- return f(e.nodes(), r), e.nodeCount();
448
- }
449
- function An(e, n) {
450
- return U(n.edges(), function(r) {
451
- if (e.hasNode(r.v) !== e.hasNode(r.w))
452
- return C(n, r);
453
- });
454
- }
455
- function Bn(e, n, r) {
456
- f(e.nodes(), function(t) {
457
- n.node(t).rank += r;
458
- });
459
- }
460
- function Gn() {
461
- }
462
- Gn.prototype = new Error();
463
- function ke(e, n, r) {
464
- pe(n) || (n = [n]);
465
- var t = (e.isDirected() ? e.successors : e.neighbors).bind(e), a = [], i = {};
466
- return f(n, function(o) {
467
- if (!e.hasNode(o))
468
- throw new Error("Graph does not have node: " + o);
469
- xe(e, o, r === "post", i, t, a);
470
- }), a;
471
- }
472
- function xe(e, n, r, t, a, i) {
473
- Object.prototype.hasOwnProperty.call(t, n) || (t[n] = !0, r || i.push(n), f(a(n), function(o) {
474
- xe(e, o, r, t, a, i);
475
- }), r && i.push(n));
476
- }
477
- function Yn(e, n) {
478
- return ke(e, n, "post");
479
- }
480
- function Dn(e, n) {
481
- return ke(e, n, "pre");
482
- }
483
- k.initLowLimValues = K;
484
- k.initCutValues = Z;
485
- k.calcCutValue = Ee;
486
- k.leaveEdge = Le;
487
- k.enterEdge = Ne;
488
- k.exchangeEdges = Pe;
489
- function k(e) {
490
- e = On(e), J(e);
491
- var n = ye(e);
492
- K(n), Z(n, e);
493
- for (var r, t; r = Le(n); )
494
- t = Ne(n, e, r), Pe(n, e, r, t);
495
- }
496
- function Z(e, n) {
497
- var r = Yn(e, e.nodes());
498
- r = r.slice(0, r.length - 1), f(r, function(t) {
499
- qn(e, n, t);
500
- });
501
- }
502
- function qn(e, n, r) {
503
- var t = e.node(r), a = t.parent;
504
- e.edge(r, a).cutvalue = Ee(e, n, r);
505
- }
506
- function Ee(e, n, r) {
507
- var t = e.node(r), a = t.parent, i = !0, o = n.edge(r, a), u = 0;
508
- return o || (i = !1, o = n.edge(a, r)), u = o.weight, f(n.nodeEdges(r), function(d) {
509
- var s = d.v === r, c = s ? d.w : d.v;
510
- if (c !== a) {
511
- var l = s === i, h = n.edge(d).weight;
512
- if (u += l ? h : -h, Wn(e, r, c)) {
513
- var v = e.edge(r, c).cutvalue;
514
- u += l ? -v : v;
515
- }
516
- }
517
- }), u;
518
- }
519
- function K(e, n) {
520
- arguments.length < 2 && (n = e.nodes()[0]), Oe(e, {}, 1, n);
521
- }
522
- function Oe(e, n, r, t, a) {
523
- var i = r, o = e.node(t);
524
- return n[t] = !0, f(e.neighbors(t), function(u) {
525
- Object.prototype.hasOwnProperty.call(n, u) || (r = Oe(e, n, r, u, t));
526
- }), o.low = i, o.lim = r++, a ? o.parent = a : delete o.parent, r;
527
- }
528
- function Le(e) {
529
- return X(e.edges(), function(n) {
530
- return e.edge(n).cutvalue < 0;
531
- });
532
- }
533
- function Ne(e, n, r) {
534
- var t = r.v, a = r.w;
535
- n.hasEdge(t, a) || (t = r.w, a = r.v);
536
- var i = e.node(t), o = e.node(a), u = i, d = !1;
537
- i.lim > o.lim && (u = o, d = !0);
538
- var s = _(n.edges(), function(c) {
539
- return d === oe(e, e.node(c.v), u) && d !== oe(e, e.node(c.w), u);
540
- });
541
- return U(s, function(c) {
542
- return C(n, c);
543
- });
544
- }
545
- function Pe(e, n, r, t) {
546
- var a = r.v, i = r.w;
547
- e.removeEdge(a, i), e.setEdge(t.v, t.w, {}), K(e), Z(e, n), $n(e, n);
548
- }
549
- function $n(e, n) {
550
- var r = X(e.nodes(), function(a) {
551
- return !n.node(a).parent;
552
- }), t = Dn(e, r);
553
- t = t.slice(1), f(t, function(a) {
554
- var i = e.node(a).parent, o = n.edge(a, i), u = !1;
555
- o || (o = n.edge(i, a), u = !0), n.node(a).rank = n.node(i).rank + (u ? o.minlen : -o.minlen);
556
- });
557
- }
558
- function Wn(e, n, r) {
559
- return e.hasEdge(n, r);
560
- }
561
- function oe(e, n, r) {
562
- return r.low <= n.lim && n.lim <= r.lim;
563
- }
564
- function zn(e) {
565
- switch (e.graph().ranker) {
566
- case "network-simplex":
567
- ue(e);
568
- break;
569
- case "tight-tree":
570
- Un(e);
571
- break;
572
- case "longest-path":
573
- Xn(e);
574
- break;
575
- default:
576
- ue(e);
577
- }
578
- }
579
- var Xn = J;
580
- function Un(e) {
581
- J(e), ye(e);
582
- }
583
- function ue(e) {
584
- k(e);
585
- }
586
- function Hn(e) {
587
- var n = L(e, "root", {}, "_root"), r = Jn(e), t = y(x(r)) - 1, a = 2 * t + 1;
588
- e.graph().nestingRoot = n, f(e.edges(), function(o) {
589
- e.edge(o).minlen *= a;
590
- });
591
- var i = Zn(e) + 1;
592
- f(e.children(), function(o) {
593
- Ce(e, n, a, i, t, r, o);
594
- }), e.graph().nodeRankFactor = a;
595
- }
596
- function Ce(e, n, r, t, a, i, o) {
597
- var u = e.children(o);
598
- if (!u.length) {
599
- o !== n && e.setEdge(n, o, { weight: 0, minlen: r });
600
- return;
601
- }
602
- var d = te(e, "_bt"), s = te(e, "_bb"), c = e.node(o);
603
- e.setParent(d, o), c.borderTop = d, e.setParent(s, o), c.borderBottom = s, f(u, function(l) {
604
- Ce(e, n, r, t, a, i, l);
605
- var h = e.node(l), v = h.borderTop ? h.borderTop : l, p = h.borderBottom ? h.borderBottom : l, b = h.borderTop ? t : 2 * t, N = v !== p ? 1 : a - i[o] + 1;
606
- e.setEdge(d, v, {
607
- weight: b,
608
- minlen: N,
609
- nestingEdge: !0
610
- }), e.setEdge(p, s, {
611
- weight: b,
612
- minlen: N,
613
- nestingEdge: !0
614
- });
615
- }), e.parent(o) || e.setEdge(n, d, { weight: 0, minlen: a + i[o] });
616
- }
617
- function Jn(e) {
618
- var n = {};
619
- function r(t, a) {
620
- var i = e.children(t);
621
- i && i.length && f(i, function(o) {
622
- r(o, a + 1);
623
- }), n[t] = a;
624
- }
625
- return f(e.children(), function(t) {
626
- r(t, 1);
627
- }), n;
628
- }
629
- function Zn(e) {
630
- return I(
631
- e.edges(),
632
- function(n, r) {
633
- return n + e.edge(r).weight;
634
- },
635
- 0
636
- );
637
- }
638
- function Kn(e) {
639
- var n = e.graph();
640
- e.removeNode(n.nestingRoot), delete n.nestingRoot, f(e.edges(), function(r) {
641
- var t = e.edge(r);
642
- t.nestingEdge && e.removeEdge(r);
643
- });
644
- }
645
- function Qn(e, n, r) {
646
- var t = {}, a;
647
- f(r, function(i) {
648
- for (var o = e.parent(i), u, d; o; ) {
649
- if (u = e.parent(o), u ? (d = t[u], t[u] = o) : (d = a, a = o), d && d !== o) {
650
- n.setEdge(d, o);
651
- return;
652
- }
653
- o = u;
654
- }
655
- });
656
- }
657
- function er(e, n, r) {
658
- var t = nr(e), a = new g({ compound: !0 }).setGraph({ root: t }).setDefaultNodeLabel(function(i) {
659
- return e.node(i);
660
- });
661
- return f(e.nodes(), function(i) {
662
- var o = e.node(i), u = e.parent(i);
663
- (o.rank === n || o.minRank <= n && n <= o.maxRank) && (a.setNode(i), a.setParent(i, u || t), f(e[r](i), function(d) {
664
- var s = d.v === i ? d.w : d.v, c = a.edge(s, i), l = m(c) ? 0 : c.weight;
665
- a.setEdge(s, i, { weight: e.edge(d).weight + l });
666
- }), Object.prototype.hasOwnProperty.call(o, "minRank") && a.setNode(i, {
667
- borderLeft: o.borderLeft[n],
668
- borderRight: o.borderRight[n]
669
- }));
670
- }), a;
671
- }
672
- function nr(e) {
673
- for (var n; e.hasNode(n = H("_root")); ) ;
674
- return n;
675
- }
676
- function rr(e, n) {
677
- for (var r = 0, t = 1; t < n.length; ++t)
678
- r += tr(e, n[t - 1], n[t]);
679
- return r;
680
- }
681
- function tr(e, n, r) {
682
- for (var t = vn(
683
- r,
684
- w(r, function(s, c) {
685
- return c;
686
- })
687
- ), a = O(
688
- w(n, function(s) {
689
- return R(
690
- w(e.outEdges(s), function(c) {
691
- return { pos: t[c.w], weight: e.edge(c).weight };
692
- }),
693
- "pos"
694
- );
695
- })
696
- ), i = 1; i < r.length; ) i <<= 1;
697
- var o = 2 * i - 1;
698
- i -= 1;
699
- var u = w(new Array(o), function() {
700
- return 0;
701
- }), d = 0;
702
- return f(
703
- // @ts-expect-error
704
- a.forEach(function(s) {
705
- var c = s.pos + i;
706
- u[c] += s.weight;
707
- for (var l = 0; c > 0; )
708
- c % 2 && (l += u[c + 1]), c = c - 1 >> 1, u[c] += s.weight;
709
- d += s.weight * l;
710
- })
711
- ), d;
712
- }
713
- function ar(e) {
714
- var n = {}, r = _(e.nodes(), function(u) {
715
- return !e.children(u).length;
716
- }), t = y(
717
- w(r, function(u) {
718
- return e.node(u).rank;
719
- })
720
- ), a = w(E(t + 1), function() {
721
- return [];
722
- });
723
- function i(u) {
724
- if (!ve(n, u)) {
725
- n[u] = !0;
726
- var d = e.node(u);
727
- a[d.rank].push(u), f(e.successors(u), i);
728
- }
729
- }
730
- var o = R(r, function(u) {
731
- return e.node(u).rank;
732
- });
733
- return f(o, i), a;
734
- }
735
- function ir(e, n) {
736
- return w(n, function(r) {
737
- var t = e.inEdges(r);
738
- if (t.length) {
739
- var a = I(
740
- t,
741
- function(i, o) {
742
- var u = e.edge(o), d = e.node(o.v);
743
- return {
744
- sum: i.sum + u.weight * d.order,
745
- weight: i.weight + u.weight
746
- };
747
- },
748
- { sum: 0, weight: 0 }
749
- );
750
- return {
751
- v: r,
752
- barycenter: a.sum / a.weight,
753
- weight: a.weight
754
- };
755
- } else
756
- return { v: r };
757
- });
758
- }
759
- function or(e, n) {
760
- var r = {};
761
- f(e, function(a, i) {
762
- var o = r[a.v] = {
763
- indegree: 0,
764
- in: [],
765
- out: [],
766
- vs: [a.v],
767
- i
768
- };
769
- m(a.barycenter) || (o.barycenter = a.barycenter, o.weight = a.weight);
770
- }), f(n.edges(), function(a) {
771
- var i = r[a.v], o = r[a.w];
772
- !m(i) && !m(o) && (o.indegree++, i.out.push(r[a.w]));
773
- });
774
- var t = _(r, function(a) {
775
- return !a.indegree;
776
- });
777
- return ur(t);
778
- }
779
- function ur(e) {
780
- var n = [];
781
- function r(i) {
782
- return function(o) {
783
- o.merged || (m(o.barycenter) || m(i.barycenter) || o.barycenter >= i.barycenter) && dr(i, o);
784
- };
785
- }
786
- function t(i) {
787
- return function(o) {
788
- o.in.push(i), --o.indegree === 0 && e.push(o);
789
- };
790
- }
791
- for (; e.length; ) {
792
- var a = e.pop();
793
- n.push(a), f(a.in.reverse(), r(a)), f(a.out, t(a));
794
- }
795
- return w(
796
- _(n, function(i) {
797
- return !i.merged;
798
- }),
799
- function(i) {
800
- return M(i, ["vs", "i", "barycenter", "weight"]);
801
- }
802
- );
803
- }
804
- function dr(e, n) {
805
- var r = 0, t = 0;
806
- 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;
807
- }
808
- function sr(e, n) {
809
- var r = Pn(e, function(c) {
810
- return Object.prototype.hasOwnProperty.call(c, "barycenter");
811
- }), t = r.lhs, a = R(r.rhs, function(c) {
812
- return -c.i;
813
- }), i = [], o = 0, u = 0, d = 0;
814
- t.sort(fr(!!n)), d = de(i, a, d), f(t, function(c) {
815
- d += c.vs.length, i.push(c.vs), o += c.barycenter * c.weight, u += c.weight, d = de(i, a, d);
816
- });
817
- var s = { vs: O(i) };
818
- return u && (s.barycenter = o / u, s.weight = u), s;
819
- }
820
- function de(e, n, r) {
821
- for (var t; n.length && (t = T(n)).i <= r; )
822
- n.pop(), e.push(t.vs), r++;
823
- return r;
824
- }
825
- function fr(e) {
826
- return function(n, r) {
827
- return n.barycenter < r.barycenter ? -1 : n.barycenter > r.barycenter ? 1 : e ? r.i - n.i : n.i - r.i;
828
- };
829
- }
830
- function _e(e, n, r, t) {
831
- var a = e.children(n), i = e.node(n), o = i ? i.borderLeft : void 0, u = i ? i.borderRight : void 0, d = {};
832
- o && (a = _(a, function(p) {
833
- return p !== o && p !== u;
834
- }));
835
- var s = ir(e, a);
836
- f(s, function(p) {
837
- if (e.children(p.v).length) {
838
- var b = _e(e, p.v, r, t);
839
- d[p.v] = b, Object.prototype.hasOwnProperty.call(b, "barycenter") && lr(p, b);
840
- }
841
- });
842
- var c = or(s, r);
843
- cr(c, d);
844
- var l = sr(c, t);
845
- if (o && (l.vs = O([o, l.vs, u]), e.predecessors(o).length)) {
846
- var h = e.node(e.predecessors(o)[0]), v = e.node(e.predecessors(u)[0]);
847
- 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;
848
- }
849
- return l;
850
- }
851
- function cr(e, n) {
852
- f(e, function(r) {
853
- r.vs = O(
854
- r.vs.map(function(t) {
855
- return n[t] ? n[t].vs : t;
856
- })
857
- );
858
- });
859
- }
860
- function lr(e, n) {
861
- m(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);
862
- }
863
- function hr(e) {
864
- var n = me(e), r = se(e, E(1, n + 1), "inEdges"), t = se(e, E(n - 1, -1, -1), "outEdges"), a = ar(e);
865
- fe(e, a);
866
- for (var i = Number.POSITIVE_INFINITY, o, u = 0, d = 0; d < 4; ++u, ++d) {
867
- vr(u % 2 ? r : t, u % 4 >= 2), a = F(e);
868
- var s = rr(e, a);
869
- s < i && (d = 0, o = Ke(a), i = s);
870
- }
871
- fe(e, o);
872
- }
873
- function se(e, n, r) {
874
- return w(n, function(t) {
875
- return er(e, t, r);
876
- });
877
- }
878
- function vr(e, n) {
879
- var r = new g();
880
- f(e, function(t) {
881
- var a = t.graph().root, i = _e(t, a, r, n);
882
- f(i.vs, function(o, u) {
883
- t.node(o).order = u;
884
- }), Qn(t, r, i.vs);
885
- });
886
- }
887
- function fe(e, n) {
888
- f(n, function(r) {
889
- f(r, function(t, a) {
890
- e.node(t).order = a;
891
- });
892
- });
893
- }
894
- function pr(e) {
895
- var n = br(e);
896
- f(e.graph().dummyChains, function(r) {
897
- for (var t = e.node(r), a = t.edgeObj, i = wr(e, n, a.v, a.w), o = i.path, u = i.lca, d = 0, s = o[d], c = !0; r !== a.w; ) {
898
- if (t = e.node(r), c) {
899
- for (; (s = o[d]) !== u && e.node(s).maxRank < t.rank; )
900
- d++;
901
- s === u && (c = !1);
902
- }
903
- if (!c) {
904
- for (; d < o.length - 1 && e.node(s = o[d + 1]).minRank <= t.rank; )
905
- d++;
906
- s = o[d];
907
- }
908
- e.setParent(r, s), r = e.successors(r)[0];
909
- }
910
- });
911
- }
912
- function wr(e, n, r, t) {
913
- var a = [], i = [], o = Math.min(n[r].low, n[t].low), u = Math.max(n[r].lim, n[t].lim), d, s;
914
- d = r;
915
- do
916
- d = e.parent(d), a.push(d);
917
- while (d && (n[d].low > o || u > n[d].lim));
918
- for (s = d, d = t; (d = e.parent(d)) !== s; )
919
- i.push(d);
920
- return { path: a.concat(i.reverse()), lca: s };
921
- }
922
- function br(e) {
923
- var n = {}, r = 0;
924
- function t(a) {
925
- var i = r;
926
- f(e.children(a), t), n[a] = { low: i, lim: r++ };
927
- }
928
- return f(e.children(), t), n;
929
- }
930
- function mr(e, n) {
931
- var r = {};
932
- function t(a, i) {
933
- var o = 0, u = 0, d = a.length, s = T(i);
934
- return f(i, function(c, l) {
935
- var h = yr(e, c), v = h ? e.node(h).order : d;
936
- (h || c === s) && (f(i.slice(u, l + 1), function(p) {
937
- f(e.predecessors(p), function(b) {
938
- var N = e.node(b), Q = N.order;
939
- (Q < o || v < Q) && !(N.dummy && e.node(p).dummy) && Re(r, b, p);
940
- });
941
- }), u = l + 1, o = v);
942
- }), i;
943
- }
944
- return I(n, t), r;
945
- }
946
- function gr(e, n) {
947
- var r = {};
948
- function t(i, o, u, d, s) {
949
- var c;
950
- f(E(o, u), function(l) {
951
- c = i[l], e.node(c).dummy && f(e.predecessors(c), function(h) {
952
- var v = e.node(h);
953
- v.dummy && (v.order < d || v.order > s) && Re(r, h, c);
954
- });
955
- });
956
- }
957
- function a(i, o) {
958
- var u = -1, d, s = 0;
959
- return f(o, function(c, l) {
960
- if (e.node(c).dummy === "border") {
961
- var h = e.predecessors(c);
962
- h.length && (d = e.node(h[0]).order, t(o, s, l, u, d), s = l, u = d);
963
- }
964
- t(o, s, o.length, d, i.length);
965
- }), o;
966
- }
967
- return I(n, a), r;
968
- }
969
- function yr(e, n) {
970
- if (e.node(n).dummy)
971
- return X(e.predecessors(n), function(r) {
972
- return e.node(r).dummy;
973
- });
974
- }
975
- function Re(e, n, r) {
976
- if (n > r) {
977
- var t = n;
978
- n = r, r = t;
979
- }
980
- var a = e[n];
981
- a || (e[n] = a = {}), a[r] = !0;
982
- }
983
- function kr(e, n, r) {
984
- if (n > r) {
985
- var t = n;
986
- n = r, r = t;
987
- }
988
- return !!e[n] && Object.prototype.hasOwnProperty.call(e[n], r);
989
- }
990
- function xr(e, n, r, t) {
991
- var a = {}, i = {}, o = {};
992
- return f(n, function(u) {
993
- f(u, function(d, s) {
994
- a[d] = d, i[d] = d, o[d] = s;
995
- });
996
- }), f(n, function(u) {
997
- var d = -1;
998
- f(u, function(s) {
999
- var c = t(s);
1000
- if (c.length) {
1001
- c = R(c, function(b) {
1002
- return o[b];
1003
- });
1004
- for (var l = (c.length - 1) / 2, h = Math.floor(l), v = Math.ceil(l); h <= v; ++h) {
1005
- var p = c[h];
1006
- i[s] === s && d < o[p] && !kr(r, s, p) && (i[p] = s, i[s] = a[s] = a[p], d = o[p]);
1007
- }
1008
- }
1009
- });
1010
- }), { root: a, align: i };
1011
- }
1012
- function Er(e, n, r, t, a) {
1013
- var i = {}, o = Or(e, n, r, a), u = a ? "borderLeft" : "borderRight";
1014
- function d(l, h) {
1015
- for (var v = o.nodes(), p = v.pop(), b = {}; p; )
1016
- b[p] ? l(p) : (b[p] = !0, v.push(p), v = v.concat(h(p))), p = v.pop();
1017
- }
1018
- function s(l) {
1019
- i[l] = o.inEdges(l).reduce(function(h, v) {
1020
- return Math.max(h, i[v.v] + o.edge(v));
1021
- }, 0);
1022
- }
1023
- function c(l) {
1024
- var h = o.outEdges(l).reduce(function(p, b) {
1025
- return Math.min(p, i[b.w] - o.edge(b));
1026
- }, Number.POSITIVE_INFINITY), v = e.node(l);
1027
- h !== Number.POSITIVE_INFINITY && v.borderType !== u && (i[l] = Math.max(i[l], h));
1028
- }
1029
- return d(s, o.predecessors.bind(o)), d(c, o.successors.bind(o)), f(t, function(l) {
1030
- i[l] = i[r[l]];
1031
- }), i;
1032
- }
1033
- function Or(e, n, r, t) {
1034
- var a = new g(), i = e.graph(), o = _r(i.nodesep, i.edgesep, t);
1035
- return f(n, function(u) {
1036
- var d;
1037
- f(u, function(s) {
1038
- var c = r[s];
1039
- if (a.setNode(c), d) {
1040
- var l = r[d], h = a.edge(l, c);
1041
- a.setEdge(l, c, Math.max(o(e, s, d), h || 0));
1042
- }
1043
- d = s;
1044
- });
1045
- }), a;
1046
- }
1047
- function Lr(e, n) {
1048
- return U(x(n), function(r) {
1049
- var t = Number.NEGATIVE_INFINITY, a = Number.POSITIVE_INFINITY;
1050
- return Qe(r, function(i, o) {
1051
- var u = Rr(e, o) / 2;
1052
- t = Math.max(i + u, t), a = Math.min(i - u, a);
1053
- }), t - a;
1054
- });
1055
- }
1056
- function Nr(e, n) {
1057
- var r = x(n), t = P(r), a = y(r);
1058
- f(["u", "d"], function(i) {
1059
- f(["l", "r"], function(o) {
1060
- var u = i + o, d = e[u], s;
1061
- if (d !== n) {
1062
- var c = x(d);
1063
- s = o === "l" ? t - P(c) : a - y(c), s && (e[u] = S(d, function(l) {
1064
- return l + s;
1065
- }));
1066
- }
1067
- });
1068
- });
1069
- }
1070
- function Pr(e, n) {
1071
- return S(e.ul, function(r, t) {
1072
- if (n)
1073
- return e[n.toLowerCase()][t];
1074
- var a = R(w(e, t));
1075
- return (a[1] + a[2]) / 2;
1076
- });
1077
- }
1078
- function Cr(e) {
1079
- var n = F(e), r = $(mr(e, n), gr(e, n)), t = {}, a;
1080
- f(["u", "d"], function(o) {
1081
- a = o === "u" ? n : x(n).reverse(), f(["l", "r"], function(u) {
1082
- u === "r" && (a = w(a, function(l) {
1083
- return x(l).reverse();
1084
- }));
1085
- var d = (o === "u" ? e.predecessors : e.successors).bind(e), s = xr(e, a, r, d), c = Er(e, a, s.root, s.align, u === "r");
1086
- u === "r" && (c = S(c, function(l) {
1087
- return -l;
1088
- })), t[o + u] = c;
1089
- });
1090
- });
1091
- var i = Lr(e, t);
1092
- return Nr(t, i), Pr(t, e.graph().align);
1093
- }
1094
- function _r(e, n, r) {
1095
- return function(t, a, i) {
1096
- var o = t.node(a), u = t.node(i), d = 0, s;
1097
- if (d += o.width / 2, Object.prototype.hasOwnProperty.call(o, "labelpos"))
1098
- switch (o.labelpos.toLowerCase()) {
1099
- case "l":
1100
- s = -o.width / 2;
1101
- break;
1102
- case "r":
1103
- s = o.width / 2;
1104
- break;
1105
- }
1106
- if (s && (d += r ? s : -s), s = 0, d += (o.dummy ? n : e) / 2, d += (u.dummy ? n : e) / 2, d += u.width / 2, Object.prototype.hasOwnProperty.call(u, "labelpos"))
1107
- switch (u.labelpos.toLowerCase()) {
1108
- case "l":
1109
- s = u.width / 2;
1110
- break;
1111
- case "r":
1112
- s = -u.width / 2;
1113
- break;
1114
- }
1115
- return s && (d += r ? s : -s), s = 0, d;
1116
- };
1117
- }
1118
- function Rr(e, n) {
1119
- return e.node(n).width;
1120
- }
1121
- function Tr(e) {
1122
- e = be(e), Mr(e), en(Cr(e), function(n, r) {
1123
- e.node(r).x = n;
1124
- });
1125
- }
1126
- function Mr(e) {
1127
- var n = F(e), r = e.graph().ranksep, t = 0;
1128
- f(n, function(a) {
1129
- var i = y(
1130
- w(a, function(o) {
1131
- return e.node(o).height;
1132
- })
1133
- );
1134
- f(a, function(o) {
1135
- e.node(o).y = t + i / 2;
1136
- }), t += i + r;
1137
- });
1138
- }
1139
- function ut(e, n) {
1140
- var r = Cn;
1141
- r("layout", () => {
1142
- var t = r(" buildLayoutGraph", () => qr(e));
1143
- r(" runLayout", () => Ir(t, r)), r(" updateInputGraph", () => Sr(e, t));
1144
- });
1145
- }
1146
- function Ir(e, n) {
1147
- n(" makeSpaceForEdgeLabels", () => $r(e)), n(" removeSelfEdges", () => Qr(e)), n(" acyclic", () => kn(e)), n(" nestingGraph.run", () => Hn(e)), n(" rank", () => zn(be(e))), n(" injectEdgeLabelProxies", () => Wr(e)), n(" removeEmptyRanks", () => Nn(e)), n(" nestingGraph.cleanup", () => Kn(e)), n(" normalizeRanks", () => Ln(e)), n(" assignRankMinMax", () => zr(e)), n(" removeEdgeLabelProxies", () => Xr(e)), n(" normalize.run", () => Sn(e)), n(" parentDummyChains", () => pr(e)), n(" addBorderSegments", () => _n(e)), n(" order", () => hr(e)), n(" insertSelfEdges", () => et(e)), n(" adjustCoordinateSystem", () => Rn(e)), n(" position", () => Tr(e)), n(" positionSelfEdges", () => nt(e)), n(" removeBorderNodes", () => Kr(e)), n(" normalize.undo", () => jn(e)), n(" fixupEdgeLabelCoords", () => Jr(e)), n(" undoCoordinateSystem", () => Tn(e)), n(" translateGraph", () => Ur(e)), n(" assignNodeIntersects", () => Hr(e)), n(" reversePoints", () => Zr(e)), n(" acyclic.undo", () => En(e));
1148
- }
1149
- function Sr(e, n) {
1150
- f(e.nodes(), function(r) {
1151
- var t = e.node(r), a = n.node(r);
1152
- t && (t.x = a.x, t.y = a.y, n.children(r).length && (t.width = a.width, t.height = a.height));
1153
- }), f(e.edges(), function(r) {
1154
- var t = e.edge(r), a = n.edge(r);
1155
- t.points = a.points, Object.prototype.hasOwnProperty.call(a, "x") && (t.x = a.x, t.y = a.y);
1156
- }), e.graph().width = n.graph().width, e.graph().height = n.graph().height;
1157
- }
1158
- var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, Vr = ["acyclicer", "ranker", "rankdir", "align"], Ar = ["width", "height"], Br = { width: 0, height: 0 }, Gr = ["minlen", "weight", "width", "height", "labeloffset"], Yr = {
1159
- minlen: 1,
1160
- weight: 1,
1161
- width: 0,
1162
- height: 0,
1163
- labeloffset: 10,
1164
- labelpos: "r"
1165
- }, Dr = ["labelpos"];
1166
- function qr(e) {
1167
- var n = new g({ multigraph: !0, compound: !0 }), r = D(e.graph());
1168
- return n.setGraph(
1169
- $({}, jr, Y(r, Fr), M(r, Vr))
1170
- ), f(e.nodes(), function(t) {
1171
- var a = D(e.node(t));
1172
- n.setNode(t, Ae(Y(a, Ar), Br)), n.setParent(t, e.parent(t));
1173
- }), f(e.edges(), function(t) {
1174
- var a = D(e.edge(t));
1175
- n.setEdge(
1176
- t,
1177
- $({}, Yr, Y(a, Gr), M(a, Dr))
1178
- );
1179
- }), n;
1180
- }
1181
- function $r(e) {
1182
- var n = e.graph();
1183
- n.ranksep /= 2, f(e.edges(), function(r) {
1184
- var t = e.edge(r);
1185
- t.minlen *= 2, t.labelpos.toLowerCase() !== "c" && (n.rankdir === "TB" || n.rankdir === "BT" ? t.width += t.labeloffset : t.height += t.labeloffset);
1186
- });
1187
- }
1188
- function Wr(e) {
1189
- f(e.edges(), function(n) {
1190
- var r = e.edge(n);
1191
- if (r.width && r.height) {
1192
- var t = e.node(n.v), a = e.node(n.w), i = { rank: (a.rank - t.rank) / 2 + t.rank, e: n };
1193
- L(e, "edge-proxy", i, "_ep");
1194
- }
1195
- });
1196
- }
1197
- function zr(e) {
1198
- var n = 0;
1199
- f(e.nodes(), function(r) {
1200
- var t = e.node(r);
1201
- t.borderTop && (t.minRank = e.node(t.borderTop).rank, t.maxRank = e.node(t.borderBottom).rank, n = y(n, t.maxRank));
1202
- }), e.graph().maxRank = n;
1203
- }
1204
- function Xr(e) {
1205
- f(e.nodes(), function(n) {
1206
- var r = e.node(n);
1207
- r.dummy === "edge-proxy" && (e.edge(r.e).labelRank = r.rank, e.removeNode(n));
1208
- });
1209
- }
1210
- function Ur(e) {
1211
- var n = Number.POSITIVE_INFINITY, r = 0, t = Number.POSITIVE_INFINITY, a = 0, i = e.graph(), o = i.marginx || 0, u = i.marginy || 0;
1212
- function d(s) {
1213
- var c = s.x, l = s.y, h = s.width, v = s.height;
1214
- 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);
1215
- }
1216
- f(e.nodes(), function(s) {
1217
- d(e.node(s));
1218
- }), f(e.edges(), function(s) {
1219
- var c = e.edge(s);
1220
- Object.prototype.hasOwnProperty.call(c, "x") && d(c);
1221
- }), n -= o, t -= u, f(e.nodes(), function(s) {
1222
- var c = e.node(s);
1223
- c.x -= n, c.y -= t;
1224
- }), f(e.edges(), function(s) {
1225
- var c = e.edge(s);
1226
- f(c.points, function(l) {
1227
- l.x -= n, l.y -= t;
1228
- }), Object.prototype.hasOwnProperty.call(c, "x") && (c.x -= n), Object.prototype.hasOwnProperty.call(c, "y") && (c.y -= t);
1229
- }), i.width = r - n + o, i.height = a - t + u;
1230
- }
1231
- function Hr(e) {
1232
- f(e.edges(), function(n) {
1233
- var r = e.edge(n), t = e.node(n.v), a = e.node(n.w), i, o;
1234
- r.points ? (i = r.points[0], o = r.points[r.points.length - 1]) : (r.points = [], i = a, o = t), r.points.unshift(re(t, i)), r.points.push(re(a, o));
1235
- });
1236
- }
1237
- function Jr(e) {
1238
- f(e.edges(), function(n) {
1239
- var r = e.edge(n);
1240
- if (Object.prototype.hasOwnProperty.call(r, "x"))
1241
- switch ((r.labelpos === "l" || r.labelpos === "r") && (r.width -= r.labeloffset), r.labelpos) {
1242
- case "l":
1243
- r.x -= r.width / 2 + r.labeloffset;
1244
- break;
1245
- case "r":
1246
- r.x += r.width / 2 + r.labeloffset;
1247
- break;
1248
- }
1249
- });
1250
- }
1251
- function Zr(e) {
1252
- f(e.edges(), function(n) {
1253
- var r = e.edge(n);
1254
- r.reversed && r.points.reverse();
1255
- });
1256
- }
1257
- function Kr(e) {
1258
- f(e.nodes(), function(n) {
1259
- if (e.children(n).length) {
1260
- 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));
1261
- 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;
1262
- }
1263
- }), f(e.nodes(), function(n) {
1264
- e.node(n).dummy === "border" && e.removeNode(n);
1265
- });
1266
- }
1267
- function Qr(e) {
1268
- f(e.edges(), function(n) {
1269
- if (n.v === n.w) {
1270
- var r = e.node(n.v);
1271
- r.selfEdges || (r.selfEdges = []), r.selfEdges.push({ e: n, label: e.edge(n) }), e.removeEdge(n);
1272
- }
1273
- });
1274
- }
1275
- function et(e) {
1276
- var n = F(e);
1277
- f(n, function(r) {
1278
- var t = 0;
1279
- f(r, function(a, i) {
1280
- var o = e.node(a);
1281
- o.order = i + t, f(o.selfEdges, function(u) {
1282
- L(
1283
- e,
1284
- "selfedge",
1285
- {
1286
- width: u.label.width,
1287
- height: u.label.height,
1288
- rank: o.rank,
1289
- order: i + ++t,
1290
- e: u.e,
1291
- label: u.label
1292
- },
1293
- "_se"
1294
- );
1295
- }), delete o.selfEdges;
1296
- });
1297
- });
1298
- }
1299
- function nt(e) {
1300
- f(e.nodes(), function(n) {
1301
- var r = e.node(n);
1302
- if (r.dummy === "selfedge") {
1303
- var t = e.node(r.e.v), a = t.x + t.width / 2, i = t.y, o = r.x - a, u = t.height / 2;
1304
- e.setEdge(r.e, r.label), e.removeNode(n), r.label.points = [
1305
- { x: a + 2 * o / 3, y: i - u },
1306
- { x: a + 5 * o / 6, y: i - u },
1307
- { x: a + o, y: i },
1308
- { x: a + 5 * o / 6, y: i + u },
1309
- { x: a + 2 * o / 3, y: i + u }
1310
- ], r.label.x = r.x, r.label.y = r.y;
1311
- }
1312
- });
1313
- }
1314
- function Y(e, n) {
1315
- return S(M(e, n), Number);
1316
- }
1317
- function D(e) {
1318
- var n = {};
1319
- return f(e, function(r, t) {
1320
- n[t.toLowerCase()] = r;
1321
- }), n;
1322
- }
1323
- export {
1324
- ut as l
1325
- };