@elmethis/core 1.0.0-alpha.14 → 1.0.0-alpha.140

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 (439) hide show
  1. package/dist/{Bash-Cd5wtNan.js → Bash-AnB1C5rB.js} +19 -15
  2. package/dist/Css-B8ydTxz6.js +18 -0
  3. package/dist/ElmShikiHighlighter-BjszRo5d.js +7469 -0
  4. package/dist/{Rust-Beyp-qeb.js → Rust-D6u5pnz9.js} +3 -3
  5. package/dist/_basePickBy-Dna5Lu4R.js +152 -0
  6. package/dist/_baseUniq-DoD3ppoF.js +583 -0
  7. package/dist/abap-BmBUA35e.js +6 -0
  8. package/dist/actionscript-3-Duslr-Xk.js +6 -0
  9. package/dist/ada-CBvPkFpZ.js +6 -0
  10. package/dist/andromeeda-uXNdzNpk.js +4 -0
  11. package/dist/angular-html-BykNicnS.js +32 -0
  12. package/dist/angular-ts-BHpD0guW.js +21 -0
  13. package/dist/apache-CVNlsSDc.js +6 -0
  14. package/dist/apex-DFk3KRB1.js +6 -0
  15. package/dist/apl-iiNHpPRe.js +16 -0
  16. package/dist/applescript-D0lq2uyG.js +6 -0
  17. package/dist/ara-BxwG6H0R.js +6 -0
  18. package/dist/arc-Sg2hIErX.js +83 -0
  19. package/dist/architecture-I3QFYML2-Cr3eE8TC.js +5 -0
  20. package/dist/architectureDiagram-UYN6MBPD-DML6M8Xe.js +4594 -0
  21. package/dist/asciidoc-DfqmH17V.js +6 -0
  22. package/dist/asm-RC0Yh-NZ.js +6 -0
  23. package/dist/astro-jjdX1_o0.js +16 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-gPH8MVMW.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-kvLnRU_e.js +6 -0
  28. package/dist/bat-BHYy44sT.js +6 -0
  29. package/dist/beancount-CRuI-qxP.js +6 -0
  30. package/dist/berry-Ci9U0o4h.js +6 -0
  31. package/dist/bibtex-CX618D15.js +6 -0
  32. package/dist/bicep-iuYiPopT.js +6 -0
  33. package/dist/blade-C-EMBGSs.js +18 -0
  34. package/dist/blockDiagram-ZHA2E4KO-DUTZa5UU.js +2247 -0
  35. package/dist/bsl-CXtfttnD.js +8 -0
  36. package/dist/c-DASdrs7p.js +6 -0
  37. package/dist/c4Diagram-6F5ED5ID-Nk3OUrzy.js +1581 -0
  38. package/dist/cadence-BwtsKTvx.js +6 -0
  39. package/dist/cairo-BWa6TLMq.js +8 -0
  40. package/dist/catppuccin-frappe-BrTOiad2.js +4 -0
  41. package/dist/catppuccin-latte-D-dc_R4m.js +4 -0
  42. package/dist/catppuccin-macchiato-DN4jOp0G.js +4 -0
  43. package/dist/catppuccin-mocha-B8yCE3-3.js +4 -0
  44. package/dist/channel-BXMaWN8j.js +5 -0
  45. package/dist/chunk-5HRBRIJM-O7fddiBY.js +24 -0
  46. package/dist/chunk-7U56Z5CX-DOy_XlUF.js +1215 -0
  47. package/dist/chunk-ASOPGD6M-CRHrFIjk.js +64 -0
  48. package/dist/chunk-KFBOBJHC-kjD7HAK_.js +15 -0
  49. package/dist/chunk-T2TOU4HS-DAV9o7jd.js +1303 -0
  50. package/dist/chunk-TMUBEWPD-Ch3JZI2O.js +9 -0
  51. package/dist/clarity-9Cadad6s.js +6 -0
  52. package/dist/classDiagram-LNE6IOMH-BXuvXlWw.js +14 -0
  53. package/dist/classDiagram-v2-MQ7JQ4JX-BXuvXlWw.js +14 -0
  54. package/dist/clojure-CsKKFGwv.js +6 -0
  55. package/dist/clone-C-OzJ6u8.js +8 -0
  56. package/dist/cmake-Ba0CZDb1.js +6 -0
  57. package/dist/cobol-CAatoUdx.js +10 -0
  58. package/dist/codeowners-Bt9yU6NX.js +6 -0
  59. package/dist/codeql-Ce2eNlR6.js +6 -0
  60. package/dist/coffee-D_GzM8k1.js +8 -0
  61. package/dist/common-lisp-r7ZEOG7T.js +6 -0
  62. package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
  63. package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
  64. package/dist/components/badge/ElmTag.stories.d.ts +7 -0
  65. package/dist/components/badge/ElmTag.vue.d.ts +14 -0
  66. package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
  67. package/dist/components/code/ElmKatex.vue.d.ts +3 -1
  68. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  69. package/dist/components/code/ElmMermaid.vue.d.ts +8 -0
  70. package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
  71. package/dist/components/code/{ElmPrismHighlighter.vue.d.ts → ElmShikiHighlighter.vue.d.ts} +3 -3
  72. package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
  73. package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
  74. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  75. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
  76. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  77. package/dist/components/containments/ElmModal.vue.d.ts +35 -0
  78. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  79. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  80. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  81. package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
  82. package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
  83. package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
  84. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  85. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  86. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  87. package/dist/components/data/ElmProgress.stories.d.ts +1 -0
  88. package/dist/components/data/ElmProgress.vue.d.ts +6 -1
  89. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  90. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  91. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  92. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  93. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
  94. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  95. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  96. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  97. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  98. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
  99. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  100. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  101. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  102. package/dist/components/form/ElmTextField.vue.d.ts +30 -0
  103. package/dist/components/form/ElmTotp.stories.d.ts +6 -0
  104. package/dist/components/form/ElmTotp.vue.d.ts +12 -0
  105. package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
  106. package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
  107. package/dist/components/headings/ElmHeading1.vue.d.ts +3 -1
  108. package/dist/components/headings/ElmHeading2.vue.d.ts +3 -1
  109. package/dist/components/headings/ElmHeading3.vue.d.ts +3 -1
  110. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  111. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  112. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  113. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  114. package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
  115. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
  116. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
  117. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  118. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  119. package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
  120. package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
  121. package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
  122. package/dist/components/inline/ElmInlineLink.vue.d.ts +1 -1
  123. package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
  124. package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
  125. package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
  126. package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
  127. package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
  128. package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
  129. package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
  130. package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
  131. package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
  132. package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
  133. package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
  134. package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
  135. package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
  136. package/dist/components/media/ElmFile.vue.d.ts +6 -1
  137. package/dist/components/media/ElmImage.stories.d.ts +1 -0
  138. package/dist/components/media/ElmImage.vue.d.ts +5 -0
  139. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  140. package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
  141. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
  142. package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
  143. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
  144. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  145. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  146. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  147. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  148. package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
  149. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  150. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +3 -8
  151. package/dist/components/renderer/ElmJsonRendererAsync.vue.d.ts +3 -0
  152. package/dist/components/table/ElmTable.vue.d.ts +8 -2
  153. package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
  154. package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
  155. package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
  156. package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
  157. package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
  158. package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
  159. package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
  160. package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
  161. package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
  162. package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
  163. package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
  164. package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
  165. package/dist/coq-D7gLDqnE.js +6 -0
  166. package/dist/cpp-DgBvEX06.js +18 -0
  167. package/dist/crystal-Irrx0Pa-.js +18 -0
  168. package/dist/csharp-DP0xB1m9.js +6 -0
  169. package/dist/css-D1aVdRIU.js +6 -0
  170. package/dist/csv-DvCncUGQ.js +6 -0
  171. package/dist/cue-BXMrmvay.js +6 -0
  172. package/dist/cypher-Bjq2-Qil.js +6 -0
  173. package/dist/cytoscape.esm-D7d-JUdX.js +17637 -0
  174. package/dist/d-D6ZXmn3l.js +6 -0
  175. package/dist/dagre-4EVJKHTY-BYRN9jou.js +447 -0
  176. package/dist/dark-plus-pUHDTVV0.js +4 -0
  177. package/dist/dart-Dz59Is3F.js +6 -0
  178. package/dist/dax-BQnxIpeJ.js +6 -0
  179. package/dist/desktop-Db9vb-dl.js +6 -0
  180. package/dist/diagram-QW4FP2JN-Bs-8drax.js +126 -0
  181. package/dist/diff-CXJVWqiZ.js +6 -0
  182. package/dist/docker-CsHqm9tx.js +6 -0
  183. package/dist/dotenv-CpZf7hu_.js +6 -0
  184. package/dist/dracula-BtZx2Kac.js +4 -0
  185. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  186. package/dist/dream-maker-B0kijSoP.js +6 -0
  187. package/dist/edge-DUKxyBaA.js +12 -0
  188. package/dist/elixir-DciEEYXV.js +8 -0
  189. package/dist/elm-C-_4e5ZU.js +8 -0
  190. package/dist/elmethis.js +68 -44
  191. package/dist/elmethis.umd.cjs +2424 -191
  192. package/dist/emacs-lisp-BAefI874.js +6 -0
  193. package/dist/erDiagram-6RL3IURR-ribDrswX.js +937 -0
  194. package/dist/erb-qWJ2Sxju.js +10 -0
  195. package/dist/erlang-zeJgoGSf.js +6 -0
  196. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  197. package/dist/everforest-light-BbXl82Em.js +4 -0
  198. package/dist/fennel-DNqkz9pE.js +6 -0
  199. package/dist/fish-CgmTWKa-.js +6 -0
  200. package/dist/flowDiagram-7ASYPVHJ-CuBgt9gS.js +1484 -0
  201. package/dist/fluent-BapTxJsC.js +6 -0
  202. package/dist/fortran-fixed-form-BJHD-IIW.js +8 -0
  203. package/dist/fortran-free-form-DIGrsU3L.js +6 -0
  204. package/dist/fsharp-C9ST_v27.js +8 -0
  205. package/dist/ganttDiagram-NTVNEXSI-DBJrsNdL.js +2493 -0
  206. package/dist/gdresource-BDmP_ODe.js +10 -0
  207. package/dist/gdscript-C_KI5dtV.js +6 -0
  208. package/dist/gdshader-BGJEsM2Z.js +6 -0
  209. package/dist/genie-C9gPjc6J.js +6 -0
  210. package/dist/gherkin-bka1Exbx.js +6 -0
  211. package/dist/git-commit-CpnaV1vS.js +8 -0
  212. package/dist/git-rebase-i91KcDkj.js +8 -0
  213. package/dist/gitGraph-YCYPL57B-Dxn-b765.js +5 -0
  214. package/dist/gitGraphDiagram-NRZ2UAAF-CLVLlkG2.js +712 -0
  215. package/dist/github-dark-DenFmJkN.js +4 -0
  216. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  217. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  218. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  219. package/dist/github-light-JYsPkUQd.js +4 -0
  220. package/dist/github-light-default-D99KPAby.js +4 -0
  221. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  222. package/dist/gleam-B4k9YFGD.js +6 -0
  223. package/dist/glimmer-js-Cy-seTWt.js +14 -0
  224. package/dist/glimmer-ts-BqS9vK74.js +14 -0
  225. package/dist/glsl-XLGYNq5B.js +8 -0
  226. package/dist/gnuplot-DnWoRZt-.js +6 -0
  227. package/dist/go-BE_MH2_f.js +6 -0
  228. package/dist/graph-Bez2_NoA.js +247 -0
  229. package/dist/graphql-DfqJ60AB.js +14 -0
  230. package/dist/groovy-CyKtXwrG.js +6 -0
  231. package/dist/hack-BcPvMs07.js +10 -0
  232. package/dist/haml-kgLjPoQR.js +10 -0
  233. package/dist/handlebars-CxEEvn8q.js +14 -0
  234. package/dist/haskell-DA6E-9ES.js +6 -0
  235. package/dist/haxe-CZZ33vZw.js +6 -0
  236. package/dist/hcl-BmHk-gID.js +6 -0
  237. package/dist/hjson-CgwED-oz.js +6 -0
  238. package/dist/hlsl-3-lv4gi7.js +6 -0
  239. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  240. package/dist/hooks/useTyping.d.ts +17 -0
  241. package/dist/houston-BDYrDoDW.js +4 -0
  242. package/dist/html-CAwPY-4s.js +10 -0
  243. package/dist/html-derivative-CgU1HeVZ.js +8 -0
  244. package/dist/http-CtmMjKg2.js +14 -0
  245. package/dist/hxml-BNKImryz.js +8 -0
  246. package/dist/hy-C2xHhR6I.js +6 -0
  247. package/dist/imba-Drd0AMDo.js +8 -0
  248. package/dist/{index-DO0Qe0Kt.js → index-D1xdlTqU.js} +17156 -15920
  249. package/dist/index.d.ts +28 -4
  250. package/dist/info-46DW6VJ7-De-85lhs.js +5 -0
  251. package/dist/infoDiagram-A4XQUW5V-BPrPq9DF.js +22 -0
  252. package/dist/ini-BUcvsX-U.js +6 -0
  253. package/dist/init-DjUOC4st.js +16 -0
  254. package/dist/java-B7odJ7Ap.js +6 -0
  255. package/dist/javascript-fa8UlHZE.js +6 -0
  256. package/dist/jinja-BPjRosMt.js +11 -0
  257. package/dist/jison-BygvlveW.js +8 -0
  258. package/dist/journeyDiagram-G5WM74LC-CnI5BKTx.js +810 -0
  259. package/dist/json-Cz3rcMTA.js +6 -0
  260. package/dist/json5-uIDDV5qu.js +6 -0
  261. package/dist/jsonc-i-WRxL89.js +6 -0
  262. package/dist/jsonl-B0wQGTiP.js +6 -0
  263. package/dist/jsonnet-DEQ7IUoJ.js +6 -0
  264. package/dist/jssm-IG12tW_e.js +6 -0
  265. package/dist/jsx-Bkesy5tT.js +6 -0
  266. package/dist/julia-CRcgK_Of.js +16 -0
  267. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  268. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  269. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  270. package/dist/kanban-definition-QRCXZQQD-DrR4vU6r.js +718 -0
  271. package/dist/kotlin-DCgZY7Ii.js +6 -0
  272. package/dist/kusto-BrNSo3rV.js +6 -0
  273. package/dist/laserwave-6a00oqik.js +4 -0
  274. package/dist/latex-D-TusJJP.js +8 -0
  275. package/dist/layout-COyBDkVe.js +1325 -0
  276. package/dist/lean-CYSet4vs.js +6 -0
  277. package/dist/less-BPRpblJr.js +6 -0
  278. package/dist/light-plus-CZuVqSLX.js +4 -0
  279. package/dist/linear-vUygCKAW.js +423 -0
  280. package/dist/liquid-B7RQOxbw.js +14 -0
  281. package/dist/log-D2eRfqDn.js +6 -0
  282. package/dist/logo-QEAtGWZ9.js +6 -0
  283. package/dist/lua-BVfhNLDr.js +8 -0
  284. package/dist/luau-BjYGiqID.js +6 -0
  285. package/dist/make-BjuHP00g.js +6 -0
  286. package/dist/markdown-B7jjCkMW.js +6 -0
  287. package/dist/marko-vyeifSx8.js +14 -0
  288. package/dist/material-theme-D6KBX41T.js +4 -0
  289. package/dist/material-theme-darker-CkRroheE.js +4 -0
  290. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  291. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  292. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  293. package/dist/matlab-Co0cm4Uj.js +6 -0
  294. package/dist/mdc-AwGfuot8.js +12 -0
  295. package/dist/mdx-DIoECIFU.js +6 -0
  296. package/dist/mermaid-B8Znk7YO.js +6 -0
  297. package/dist/mermaid-parser.core-o6MVuPct.js +12479 -0
  298. package/dist/mermaid.core-CrPCZGbK.js +14844 -0
  299. package/dist/min-dark-C7ak0t6c.js +4 -0
  300. package/dist/min-light-CKFxVcPp.js +4 -0
  301. package/dist/mindmap-definition-GWI6TPTV-DC9-zuJZ.js +3219 -0
  302. package/dist/mipsasm-Dn465ziZ.js +6 -0
  303. package/dist/mojo-DPiIJnW3.js +6 -0
  304. package/dist/monokai-C1KBYcO0.js +4 -0
  305. package/dist/move-D0U3hAMk.js +6 -0
  306. package/dist/narrat-Dz4d7OmN.js +6 -0
  307. package/dist/nextflow-DW0Yq9a2.js +6 -0
  308. package/dist/nginx-Can2eAjw.js +8 -0
  309. package/dist/night-owl-Bm2rzalh.js +4 -0
  310. package/dist/nim-B1j3Kg94.js +20 -0
  311. package/dist/nix-DUbL-Ieg.js +6 -0
  312. package/dist/nord-CC5OiUXg.js +4 -0
  313. package/dist/nushell-DX7mjnU-.js +6 -0
  314. package/dist/objective-c-BVVh5_wH.js +6 -0
  315. package/dist/objective-cpp-B7rOm0GT.js +6 -0
  316. package/dist/ocaml-BZLsfx_o.js +6 -0
  317. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  318. package/dist/one-light-D9sNaUtq.js +4 -0
  319. package/dist/ordinal-DfAQgscy.js +61 -0
  320. package/dist/packet-W2GHVCYJ-BaD_yypn.js +5 -0
  321. package/dist/pascal-l2bqd7Dz.js +6 -0
  322. package/dist/perl-B6oy4kD0.js +16 -0
  323. package/dist/php-DGP0mMYG.js +18 -0
  324. package/dist/pie-BEWT4RHE-OeInp-RN.js +5 -0
  325. package/dist/pieDiagram-YF2LJOPJ-DviPVNka.js +161 -0
  326. package/dist/plastic-CSTz3KZp.js +4 -0
  327. package/dist/plsql-oVq_K_wH.js +6 -0
  328. package/dist/po-C82DhkWG.js +6 -0
  329. package/dist/poimandres-C-VADXHD.js +4 -0
  330. package/dist/polar-Ld-I0zJ7.js +6 -0
  331. package/dist/postcss-BZ3MNRIJ.js +6 -0
  332. package/dist/powerquery-CgRa2XRw.js +6 -0
  333. package/dist/powershell-CJR6U-QA.js +6 -0
  334. package/dist/prisma-COL_v1x4.js +6 -0
  335. package/dist/prolog-CuvJOxqT.js +6 -0
  336. package/dist/proto-o9HLmF90.js +6 -0
  337. package/dist/pug-CBXnJ8g8.js +12 -0
  338. package/dist/puppet-BYzxAd8_.js +6 -0
  339. package/dist/purescript-B_1NgE2N.js +6 -0
  340. package/dist/python-DsQISJFZ.js +6 -0
  341. package/dist/qml-FlMIyjU9.js +8 -0
  342. package/dist/qmldir-BInDYbpo.js +6 -0
  343. package/dist/qss-D-h4NdUG.js +6 -0
  344. package/dist/quadrantDiagram-OS5C2QUG-ZXGTzIMD.js +1024 -0
  345. package/dist/r-F-9I-ITZ.js +6 -0
  346. package/dist/racket-BoD1TBFT.js +6 -0
  347. package/dist/raku-IaYcw19m.js +6 -0
  348. package/dist/razor-Bje1i-BN.js +10 -0
  349. package/dist/red-7y8PH7HH.js +4 -0
  350. package/dist/reg-CMUdAgIP.js +6 -0
  351. package/dist/regexp-CXbjUNFD.js +6 -0
  352. package/dist/rel-BaRn3QX7.js +6 -0
  353. package/dist/requirementDiagram-MIRIMTAZ-BBQg3ZoA.js +768 -0
  354. package/dist/riscv-D275NyXt.js +6 -0
  355. package/dist/rose-pine-DhT-HZE9.js +4 -0
  356. package/dist/rose-pine-dawn-DiCjL2i4.js +4 -0
  357. package/dist/rose-pine-moon-BNmGHlcn.js +4 -0
  358. package/dist/rst-B-Yhj7ct.js +22 -0
  359. package/dist/ruby-DTuHl1fB.js +30 -0
  360. package/dist/rust-Cii5SJWu.js +6 -0
  361. package/dist/sankeyDiagram-Y46BX6SQ-kRxFmf2d.js +805 -0
  362. package/dist/sas-E6uq4Yf6.js +8 -0
  363. package/dist/sass-eCUyDs9S.js +6 -0
  364. package/dist/scala-BoCxXFyN.js +6 -0
  365. package/dist/scheme-CJeyKjnR.js +6 -0
  366. package/dist/scss-DhHc4lxB.js +8 -0
  367. package/dist/sdbl-bnfMePEG.js +6 -0
  368. package/dist/sequenceDiagram-G6AWOVSC-J-adtWLC.js +2274 -0
  369. package/dist/shaderlab-CvqEIoL0.js +8 -0
  370. package/dist/shellscript-DXPd9Pjm.js +6 -0
  371. package/dist/shellsession-BM4Gi9UW.js +8 -0
  372. package/dist/slack-dark-i7wN4OET.js +4 -0
  373. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  374. package/dist/smalltalk-C-SeEPAs.js +6 -0
  375. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  376. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  377. package/dist/solarized-light-BheCkDPT.js +4 -0
  378. package/dist/solidity-BG_k8fA_.js +6 -0
  379. package/dist/soy-yvpdUHGC.js +8 -0
  380. package/dist/sparql-DhuelBut.js +8 -0
  381. package/dist/splunk-5AdRU-op.js +6 -0
  382. package/dist/sql-CE1s-LNJ.js +6 -0
  383. package/dist/ssh-config-DHHGll-v.js +6 -0
  384. package/dist/stata-XG8GBm9b.js +8 -0
  385. package/dist/stateDiagram-MAYHULR4-CnqR21Ky.js +268 -0
  386. package/dist/stateDiagram-v2-4JROLMXI-BXZl6QHK.js +14 -0
  387. package/dist/stylus-Bx_GeJsi.js +6 -0
  388. package/dist/svelte-01qw6Rxm.js +14 -0
  389. package/dist/swift-BAWqNR8A.js +6 -0
  390. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  391. package/dist/system-verilog-Cui-g-ut.js +6 -0
  392. package/dist/systemd-CsKYQIQK.js +6 -0
  393. package/dist/talonscript-D2dGh8FO.js +6 -0
  394. package/dist/tasl-D3W8HMV6.js +6 -0
  395. package/dist/tcl-DBFP4l7q.js +6 -0
  396. package/dist/templ-CkuR9rNI.js +12 -0
  397. package/dist/terraform-CBat0YKl.js +6 -0
  398. package/dist/tex-mHs7a43s.js +8 -0
  399. package/dist/timeline-definition-U7ZMHBDA-DmgHfw1m.js +804 -0
  400. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  401. package/dist/toml-4juXvPlK.js +6 -0
  402. package/dist/ts-tags-DA8sBOJH.js +41 -0
  403. package/dist/tsv-BtvSkaG0.js +6 -0
  404. package/dist/tsx-DiGsgWT8.js +6 -0
  405. package/dist/turtle-BJ2wmjPc.js +6 -0
  406. package/dist/twig-5rMZH5nB.js +18 -0
  407. package/dist/typescript-buWNZFwO.js +6 -0
  408. package/dist/typespec-bLbdsxJL.js +6 -0
  409. package/dist/typst-YfWVUfOB.js +6 -0
  410. package/dist/v-wa8Orrdd.js +6 -0
  411. package/dist/vala-DRdriFr_.js +6 -0
  412. package/dist/vb-E2_-jk4M.js +6 -0
  413. package/dist/verilog-B1iBoR5_.js +6 -0
  414. package/dist/vesper-CJsaOsSM.js +4 -0
  415. package/dist/vhdl-CRVaAhXk.js +6 -0
  416. package/dist/viml-B-zWOd7Z.js +6 -0
  417. package/dist/vitesse-black-BoGvW84i.js +4 -0
  418. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  419. package/dist/vitesse-light-CcmG315c.js +4 -0
  420. package/dist/vue-V5-KOnq6.js +31 -0
  421. package/dist/vue-html-B8gQHLrf.js +10 -0
  422. package/dist/vyper-7y1ADzZr.js +6 -0
  423. package/dist/wasm-BWqHbxc2.js +6 -0
  424. package/dist/wasm-DQxwEHae.js +7 -0
  425. package/dist/wenyan-BMYnfus1.js +6 -0
  426. package/dist/wgsl-Cg1wrNXn.js +6 -0
  427. package/dist/wikitext-CntM04PE.js +6 -0
  428. package/dist/wolfram-Ws5qPlX9.js +6 -0
  429. package/dist/xml-ChBsf5uy.js +8 -0
  430. package/dist/xsl-BefjlXrd.js +8 -0
  431. package/dist/xychartDiagram-6QU3TZC5-BTmney6_.js +1304 -0
  432. package/dist/yaml-Bbg74JKr.js +6 -0
  433. package/dist/zenscript-C7IWVCmN.js +6 -0
  434. package/dist/zig-ppDBI4fs.js +6 -0
  435. package/package.json +35 -23
  436. package/dist/JavaScript-CPGj6jvI.js +0 -22
  437. package/dist/TypeScript-Dk8QmsMS.js +0 -22
  438. package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
  439. package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
@@ -0,0 +1,1325 @@
1
+ import { G as g } from "./graph-Bez2_NoA.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-DoD3ppoF.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-Dna5Lu4R.js";
4
+ import { i as ee, a as V, b as pe, t as Be } from "./index-D1xdlTqU.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-CrPCZGbK.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
+ };