@sme.up/ketchup2 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/dist/{architectureDiagram-Q4EWVU46-JSjagcXX.cjs → architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs} +1 -1
  2. package/dist/{architectureDiagram-Q4EWVU46-u2vgZv3N.js → architectureDiagram-Q4EWVU46-CnzjcVBn.js} +4 -4
  3. package/dist/assets/buttonListAssets.d.ts +8 -0
  4. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  5. package/dist/basic-components/button/button-types.d.ts +4 -0
  6. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  7. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  8. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  9. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  10. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  11. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  12. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  13. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  14. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  15. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  16. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  17. package/dist/basic-components/image/image.d.ts.map +1 -1
  18. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  19. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  20. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  21. package/dist/basic-components/text/text.d.ts.map +1 -1
  22. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  23. package/dist/{blockDiagram-DXYQGD6D-BpB6_kTP.js → blockDiagram-DXYQGD6D-B0NvV2Ph.js} +8 -8
  24. package/dist/{blockDiagram-DXYQGD6D-DlcDXSwH.cjs → blockDiagram-DXYQGD6D-D6DypQdM.cjs} +1 -1
  25. package/dist/{c4Diagram-AHTNJAMY-B5Z8nO1s.js → c4Diagram-AHTNJAMY-DPijI3_r.js} +3 -3
  26. package/dist/{c4Diagram-AHTNJAMY-CX5IjREU.cjs → c4Diagram-AHTNJAMY-Dgwv-e5O.cjs} +1 -1
  27. package/dist/{channel-BqNr2cYO.js → channel-CRWct3-i.js} +1 -1
  28. package/dist/channel-DkTvdPpU.cjs +1 -0
  29. package/dist/{chunk-336JU56O-CuXRn1VH.cjs → chunk-336JU56O-DQhIGd25.cjs} +1 -1
  30. package/dist/{chunk-336JU56O-xKPgkG3O.js → chunk-336JU56O-DkZvWJVe.js} +5 -5
  31. package/dist/{chunk-426QAEUC-JjFVHKYG.js → chunk-426QAEUC-CDXJVpQr.js} +1 -1
  32. package/dist/{chunk-426QAEUC-Df31vuwu.cjs → chunk-426QAEUC-CqN26l3E.cjs} +1 -1
  33. package/dist/{chunk-4TB4RGXK-DdKJIFS5.cjs → chunk-4TB4RGXK-B0SIkKDf.cjs} +1 -1
  34. package/dist/{chunk-4TB4RGXK-CKyHmNcP.js → chunk-4TB4RGXK-D2LRzcEP.js} +5 -5
  35. package/dist/{chunk-5FUZZQ4R-D_vnCbAb.cjs → chunk-5FUZZQ4R-Cj5KbGC7.cjs} +1 -1
  36. package/dist/{chunk-5FUZZQ4R-2kdZJWq2.js → chunk-5FUZZQ4R-D3C0F0Tr.js} +5 -5
  37. package/dist/{chunk-5PVQY5BW-CfQDYQZt.cjs → chunk-5PVQY5BW-DEPZKGvb.cjs} +1 -1
  38. package/dist/{chunk-5PVQY5BW-C5U7sJAA.js → chunk-5PVQY5BW-Dn8n6moB.js} +1 -1
  39. package/dist/{chunk-EDXVE4YY-BZsJORf8.cjs → chunk-EDXVE4YY-1dwNWzc7.cjs} +1 -1
  40. package/dist/{chunk-EDXVE4YY-Bzf4FU3i.js → chunk-EDXVE4YY-CGNVB686.js} +1 -1
  41. package/dist/{chunk-ENJZ2VHE-CwgVASaU.cjs → chunk-ENJZ2VHE-BAWfx0nA.cjs} +1 -1
  42. package/dist/{chunk-ENJZ2VHE-BluGQPyl.js → chunk-ENJZ2VHE-CZ7BvL2h.js} +7 -7
  43. package/dist/{chunk-ICPOFSXX-Sn6LWD0k.js → chunk-ICPOFSXX-fQJ5ufMR.js} +435 -431
  44. package/dist/{chunk-ICPOFSXX-CoaJw-IT.cjs → chunk-ICPOFSXX-hY6BIZ4Y.cjs} +5 -5
  45. package/dist/{chunk-OYMX7WX6-BCT45RPu.cjs → chunk-OYMX7WX6-CrK-lehh.cjs} +1 -1
  46. package/dist/{chunk-OYMX7WX6-BQADsxYi.js → chunk-OYMX7WX6-DJkGVCqi.js} +4 -4
  47. package/dist/{chunk-U2HBQHQK-D0AoQWxK.cjs → chunk-U2HBQHQK-CJ77uizk.cjs} +1 -1
  48. package/dist/{chunk-U2HBQHQK-BZ3YFMXB.js → chunk-U2HBQHQK-Ceyeq0IV.js} +2 -2
  49. package/dist/{chunk-X2U36JSP-D1RYKjVc.cjs → chunk-X2U36JSP-CtXjVqek.cjs} +1 -1
  50. package/dist/{chunk-X2U36JSP-CY7mJR8m.js → chunk-X2U36JSP-VxRY65ea.js} +1 -1
  51. package/dist/{chunk-YZCP3GAM-9K9WNdyN.js → chunk-YZCP3GAM-D6P3SWmL.js} +1 -1
  52. package/dist/{chunk-YZCP3GAM-BmaAafMm.cjs → chunk-YZCP3GAM-qxaNo0r8.cjs} +1 -1
  53. package/dist/{chunk-ZZ45TVLE-AQQsnXy4.cjs → chunk-ZZ45TVLE-BfSqZnT4.cjs} +1 -1
  54. package/dist/{chunk-ZZ45TVLE-CIYrdg-O.js → chunk-ZZ45TVLE-X2jolXSO.js} +2 -2
  55. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  56. package/dist/{classDiagram-6PBFFD2Q-XGxl_AeB.js → classDiagram-6PBFFD2Q-Dgaxt4wI.js} +11 -11
  57. package/dist/{classDiagram-v2-HSJHXN6E-CwayYG4G.js → classDiagram-v2-HSJHXN6E-CWhiK6nm.js} +11 -11
  58. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  59. package/dist/clone-CQQwPjME.cjs +1 -0
  60. package/dist/{clone-Dn__H8fX.js → clone-Dwbh_blD.js} +1 -1
  61. package/dist/components/drawer/drawer-types.d.ts +4 -0
  62. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  63. package/dist/components/planner/planner-assets.d.ts +1 -1
  64. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  65. package/dist/components/planner/planner-types.d.ts +1 -1
  66. package/dist/components/planner/planner-types.d.ts.map +1 -1
  67. package/dist/components/planner/planner-utils.d.ts +6 -5
  68. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  69. package/dist/components/planner/planner.d.ts.map +1 -1
  70. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  71. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  72. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  73. package/dist/components/timeline/timeline-types.d.ts +6 -2
  74. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  75. package/dist/components/timeline/timeline.d.ts.map +1 -1
  76. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  77. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  78. package/dist/{dagre-BjnWDdkw.cjs → dagre-BcwvU6ZF.cjs} +1 -1
  79. package/dist/{dagre-DVLnxd7n.js → dagre-D17h-Z-U.js} +2 -2
  80. package/dist/{dagre-KV5264BT-BjqayRYC.js → dagre-KV5264BT-BnEKAAAn.js} +10 -10
  81. package/dist/{dagre-KV5264BT-BvInGAUC.cjs → dagre-KV5264BT-DRbiLA37.cjs} +1 -1
  82. package/dist/{diagram-5BDNPKRD-Bk7depC0.js → diagram-5BDNPKRD-B_Fa4dpl.js} +3 -3
  83. package/dist/{diagram-5BDNPKRD-D6EXksHo.cjs → diagram-5BDNPKRD-CPN8m2Hl.cjs} +1 -1
  84. package/dist/{diagram-G4DWMVQ6-CJASbR70.cjs → diagram-G4DWMVQ6-VpXkNb67.cjs} +1 -1
  85. package/dist/{diagram-G4DWMVQ6-BkQnbCLv.js → diagram-G4DWMVQ6-iYV58Drq.js} +5 -5
  86. package/dist/{diagram-MMDJMWI5-DEt7jQx9.cjs → diagram-MMDJMWI5-DGk_PUo9.cjs} +1 -1
  87. package/dist/{diagram-MMDJMWI5-DUUVPi55.js → diagram-MMDJMWI5-DUpEI5ug.js} +3 -3
  88. package/dist/{diagram-TYMM5635-5auoAFCi.cjs → diagram-TYMM5635-BH_-vSv9.cjs} +1 -1
  89. package/dist/{diagram-TYMM5635-Cpj8wfoJ.js → diagram-TYMM5635-DHHPZ5ZJ.js} +3 -3
  90. package/dist/{erDiagram-SMLLAGMA-D_ByPk0C.js → erDiagram-SMLLAGMA-C8FM7wbJ.js} +10 -10
  91. package/dist/{erDiagram-SMLLAGMA-DVUT6TBy.cjs → erDiagram-SMLLAGMA-vuYEmfFA.cjs} +1 -1
  92. package/dist/{flowDiagram-DWJPFMVM-BWrkDnqc.js → flowDiagram-DWJPFMVM-BGtX2gw0.js} +11 -11
  93. package/dist/{flowDiagram-DWJPFMVM-BbK42NaF.cjs → flowDiagram-DWJPFMVM-DWuKiJeo.cjs} +1 -1
  94. package/dist/functional-components/action/action-types.d.ts +26 -1
  95. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  96. package/dist/functional-components/action/action-utils.d.ts +13 -1
  97. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  98. package/dist/functional-components/action/action.d.ts.map +1 -1
  99. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  100. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  101. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  102. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  103. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  104. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  105. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  106. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  107. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  108. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  109. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  110. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  111. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  112. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  113. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  114. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  115. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  116. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  117. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  118. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  119. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  120. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  121. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  122. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  123. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  124. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  125. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  126. package/dist/{ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs → ganttDiagram-T4ZO3ILL-C25CnBTv.cjs} +1 -1
  127. package/dist/{ganttDiagram-T4ZO3ILL-LuaYkUvj.js → ganttDiagram-T4ZO3ILL-PY1BUp5b.js} +2 -2
  128. package/dist/{gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs → gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs} +1 -1
  129. package/dist/{gitGraphDiagram-UUTBAWPF-DKkENwcV.js → gitGraphDiagram-UUTBAWPF-CDIW9-sX.js} +2 -2
  130. package/dist/{graphlib-HdfvGLpV.cjs → graphlib-CdgJ32J_.cjs} +1 -1
  131. package/dist/{graphlib-Cpifseqb.js → graphlib-DbQkSsC8.js} +1 -1
  132. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  133. package/dist/hooks/useGanttMath.d.ts +1 -1
  134. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  135. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  136. package/dist/{infoDiagram-42DDH7IO-CLkQPFe0.js → infoDiagram-42DDH7IO-CQLxpytS.js} +2 -2
  137. package/dist/{infoDiagram-42DDH7IO-CH5xHj8H.cjs → infoDiagram-42DDH7IO-Da__a_a_.cjs} +1 -1
  138. package/dist/{ishikawaDiagram-UXIWVN3A-DqbVPChK.js → ishikawaDiagram-UXIWVN3A-BblrAmns.js} +3 -3
  139. package/dist/{ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs → ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs} +1 -1
  140. package/dist/{journeyDiagram-VCZTEJTY-DudduR0c.js → journeyDiagram-VCZTEJTY-CCOZ1XFK.js} +2 -2
  141. package/dist/{journeyDiagram-VCZTEJTY-XRc0J8gM.cjs → journeyDiagram-VCZTEJTY-UwcVOFtb.cjs} +1 -1
  142. package/dist/{kanban-definition-6JOO6SKY-DzEqE64J.js → kanban-definition-6JOO6SKY-BWwfbdd6.js} +7 -7
  143. package/dist/{kanban-definition-6JOO6SKY-Br87atRc.cjs → kanban-definition-6JOO6SKY-Coxpi43B.cjs} +1 -1
  144. package/dist/ketchup2.cjs.js +106 -99
  145. package/dist/ketchup2.css +1 -1
  146. package/dist/ketchup2.es.js +20387 -20008
  147. package/dist/{line-BbHmiwbs.cjs → line-C7oijaT4.cjs} +1 -1
  148. package/dist/{line-JyRBGWft.js → line-CrxZdHmO.js} +1 -1
  149. package/dist/{mindmap-definition-QFDTVHPH-BCq8zmLt.cjs → mindmap-definition-QFDTVHPH--xULjpFZ.cjs} +1 -1
  150. package/dist/{mindmap-definition-QFDTVHPH-NGjPQ5SM.js → mindmap-definition-QFDTVHPH-dYQoMeA6.js} +9 -9
  151. package/dist/{pieDiagram-DEJITSTG-CK4xy0PS.cjs → pieDiagram-DEJITSTG-7we8s9eC.cjs} +1 -1
  152. package/dist/{pieDiagram-DEJITSTG-DTeyzHmB.js → pieDiagram-DEJITSTG-Dj5pX4fC.js} +3 -3
  153. package/dist/{quadrantDiagram-34T5L4WZ-D-_iiK79.cjs → quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs} +1 -1
  154. package/dist/{quadrantDiagram-34T5L4WZ-CCcJIf91.js → quadrantDiagram-34T5L4WZ-BKNOJBiR.js} +1 -1
  155. package/dist/{requirementDiagram-MS252O5E-EfY029Xj.cjs → requirementDiagram-MS252O5E-BemsEy3Y.cjs} +1 -1
  156. package/dist/{requirementDiagram-MS252O5E-BdOanuYe.js → requirementDiagram-MS252O5E-r3eZu57d.js} +9 -9
  157. package/dist/{sankeyDiagram-XADWPNL6-3jlM2UcU.cjs → sankeyDiagram-XADWPNL6-B9YCkPHh.cjs} +1 -1
  158. package/dist/{sankeyDiagram-XADWPNL6-3wviN_U4.js → sankeyDiagram-XADWPNL6-ErTVVewH.js} +1 -1
  159. package/dist/{sequenceDiagram-FGHM5R23-DC8SjhFN.js → sequenceDiagram-FGHM5R23-BmqbzzHY.js} +3 -3
  160. package/dist/{sequenceDiagram-FGHM5R23-lK1G3QLN.cjs → sequenceDiagram-FGHM5R23-CBpQL6X2.cjs} +1 -1
  161. package/dist/{stateDiagram-FHFEXIEX-DnkzFphf.js → stateDiagram-FHFEXIEX-CL9LE-W1.js} +13 -13
  162. package/dist/{stateDiagram-FHFEXIEX-DsQigFuR.cjs → stateDiagram-FHFEXIEX-Cju5Z2VS.cjs} +1 -1
  163. package/dist/{stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js → stateDiagram-v2-QKLJ7IA2-BHoytfGp.js} +10 -10
  164. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  165. package/dist/{timeline-definition-GMOUNBTQ-DWpngnE4.cjs → timeline-definition-GMOUNBTQ-BeTHmikc.cjs} +1 -1
  166. package/dist/{timeline-definition-GMOUNBTQ-CBnYBWN0.js → timeline-definition-GMOUNBTQ-DgcI7XnE.js} +3 -3
  167. package/dist/types/data-structures.d.ts +9 -1
  168. package/dist/types/data-structures.d.ts.map +1 -1
  169. package/dist/utils/data-structures.d.ts +2 -0
  170. package/dist/utils/data-structures.d.ts.map +1 -1
  171. package/dist/utils/style.d.ts +13 -2
  172. package/dist/utils/style.d.ts.map +1 -1
  173. package/dist/{vennDiagram-DHZGUBPP-M-kkEkXj.js → vennDiagram-DHZGUBPP-7tx3VVDU.js} +3 -3
  174. package/dist/{vennDiagram-DHZGUBPP-D-kj-sVU.cjs → vennDiagram-DHZGUBPP-C16dnMoe.cjs} +1 -1
  175. package/dist/{wardleyDiagram-NUSXRM2D-CUX1SYhw.js → wardleyDiagram-NUSXRM2D-DGKU7A2U.js} +2 -2
  176. package/dist/{wardleyDiagram-NUSXRM2D-thoOuA_D.cjs → wardleyDiagram-NUSXRM2D-DY51LHBa.cjs} +1 -1
  177. package/dist/{xychartDiagram-5P7HB3ND-1cXRZ1bi.js → xychartDiagram-5P7HB3ND--7RYyckP.js} +5 -5
  178. package/dist/{xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs → xychartDiagram-5P7HB3ND-Cj0HUNew.cjs} +1 -1
  179. package/package.json +1 -1
  180. package/dist/channel-BY9Lkyz7.cjs +0 -1
  181. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +0 -1
  182. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +0 -1
  183. package/dist/clone-lShkT11Q.cjs +0 -1
  184. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  185. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  186. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  187. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  188. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  189. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  190. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  191. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  192. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  193. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  194. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  195. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  196. package/dist/hooks/usePlannerSync.d.ts +0 -11
  197. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  198. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +0 -1
  199. package/dist/utils/wbs-utils.d.ts +0 -143
  200. package/dist/utils/wbs-utils.d.ts.map +0 -1
  201. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  202. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  203. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -1 +1 @@
1
- const e=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),t=require(`./identity-KQSjemTb.cjs`),n=require(`./isEmpty-CA3kJuev.cjs`),r=require(`./reduce-B7WW9rkU.cjs`),i=require(`./flatten-DxvYSoR8.cjs`),a=require(`./graphlib-HdfvGLpV.cjs`);var o=/\s/;function s(e){for(var t=e.length;t--&&o.test(e.charAt(t)););return t}var c=/^\s+/;function l(e){return e&&e.slice(0,s(e)+1).replace(c,``)}var u=NaN,d=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt;function ee(e){if(typeof e==`number`)return e;if(r.y(e))return u;if(t.T(e)){var n=typeof e.valueOf==`function`?e.valueOf():e;e=t.T(n)?n+``:n}if(typeof e!=`string`)return e===0?e:+e;e=l(e);var i=f.test(e);return i||p.test(e)?m(e.slice(2),i?2:8):d.test(e)?u:+e}var h=1/0,te=17976931348623157e292;function g(e){return e?(e=ee(e),e===h||e===-h?(e<0?-1:1)*te:e===e?e:0):e===0?e:0}function ne(e){var t=g(e),n=t%1;return t===t?n?t-n:t:0}function re(t){return e.b(e.S(t,void 0,i.t),t+``)}var ie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function ae(e){return ie.test(e)}var oe=1,se=4;function ce(e){return a.i(e,oe|se)}var _=function(){return t.O.Date.now()},v=Object.prototype,le=v.hasOwnProperty,ue=e.y(function(n,r){n=Object(n);var i=-1,a=r.length,o=a>2?r[2]:void 0;for(o&&e.v(r[0],r[1],o)&&(a=1);++i<a;)for(var s=r[i],c=e.C(s),l=-1,u=c.length;++l<u;){var d=c[l],f=n[d];(f===void 0||t.x(f,v[d])&&!le.call(n,d))&&(n[d]=s[d])}return n});function y(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function de(e){return function(n,i,a){var o=Object(n);if(!t.c(n)){var s=r.d(i,3);n=r.x(n),i=function(e){return s(o[e],e,o)}}var c=e(n,i,a);return c>-1?o[s?n[c]:c]:void 0}}var fe=Math.max;function pe(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:ne(n);return a<0&&(a=fe(i+a,0)),r.o(e,r.d(t,3),a)}var b=de(pe);function me(n,i){return n==null?n:t.g(n,r.r(i),e.C)}function he(e,t){return e&&r.u(e,r.r(t))}function ge(e,t){return e>t}var _e=Object.prototype.hasOwnProperty;function ve(e,t){return e!=null&&_e.call(e,t)}function ye(e,t){return e!=null&&r.m(e,t,ve)}var be=`[object String]`;function xe(e){return typeof e==`string`||!t.u(e)&&t.f(e)&&t.E(e)==be}function x(t,n){var i={};return n=r.d(n,3),r.u(t,function(t,r,a){e.N(i,r,n(t,r,a))}),i}function S(e){return e&&e.length?i.i(e,t.t,ge):void 0}function C(e,t){return e&&e.length?i.i(e,r.d(t,2),i.r):void 0}function Se(n,i,a,o){if(!t.T(n))return n;i=r._(i,n);for(var s=-1,c=i.length,l=c-1,u=n;u!=null&&++s<c;){var d=r.g(i[s]),f=a;if(d===`__proto__`||d===`constructor`||d===`prototype`)return n;if(s!=l){var p=u[d];f=o?o(p,d,u):void 0,f===void 0&&(f=t.T(p)?p:t.r(i[s+1])?[]:{})}e.T(u,d,f),u=u[d]}return n}function Ce(e,t,n){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=r.h(e,s);n(c,s)&&Se(o,r._(s,e),c)}return o}function we(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Te(e,t){if(e!==t){var n=e!==void 0,i=e===null,a=e===e,o=r.y(e),s=t!==void 0,c=t===null,l=t===t,u=r.y(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&n&&a&&!i&&!o||c&&n&&a||!s&&a||!l)return-1}return 0}function Ee(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Te(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function De(e,n,a){n=n.length?r.E(n,function(e){return t.u(e)?function(t){return r.h(t,e.length===1?e[0]:e)}:e}):[t.t];var o=-1;return n=r.E(n,t.o(r.d)),we(i.o(e,function(e,t,i){return{criteria:r.E(n,function(t){return t(e)}),index:++o,value:e}}),function(e,t){return Ee(e,t,a)})}var Oe=r.f(`length`),ke=`\\ud800-\\udfff`,Ae=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,je=`\\ufe0e\\ufe0f`,Me=`[`+ke+`]`,w=`[`+Ae+`]`,T=`\\ud83c[\\udffb-\\udfff]`,Ne=`(?:`+w+`|`+T+`)`,Pe=`[^`+ke+`]`,Fe=`(?:\\ud83c[\\udde6-\\uddff]){2}`,E=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ie=`\\u200d`,Le=Ne+`?`,Re=`[`+je+`]?`,ze=`(?:`+Ie+`(?:`+[Pe,Fe,E].join(`|`)+`)`+Re+Le+`)*`,Be=Re+Le+ze,Ve=`(?:`+[Pe+w+`?`,w,Fe,E,Me].join(`|`)+`)`,D=RegExp(T+`(?=`+T+`)|`+Ve+Be,`g`);function He(e){for(var t=D.lastIndex=0;D.test(e);)++t;return t}function Ue(e){return ae(e)?He(e):Oe(e)}function We(e,t){return Ce(e,t,function(t,n){return r.p(e,n)})}var O=re(function(e,t){return e==null?{}:We(e,t)}),Ge=Math.ceil,Ke=Math.max;function qe(e,t,n,r){for(var i=-1,a=Ke(Ge((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function Je(t){return function(n,r,i){return i&&typeof i!=`number`&&e.v(n,r,i)&&(r=i=void 0),n=g(n),r===void 0?(r=n,n=0):r=g(r),i=i===void 0?n<r?1:-1:g(i),qe(n,r,i,t)}}var k=Je(),Ye=`[object Map]`,Xe=`[object Set]`;function Ze(e){if(e==null)return 0;if(t.c(e))return xe(e)?Ue(e):e.length;var r=n.n(e);return r==Ye||r==Xe?e.size:n.i(e).length}var A=e.y(function(t,n){if(t==null)return[];var i=n.length;return i>1&&e.v(t,n[0],n[1])?n=[]:i>2&&e.v(n[0],n[1],n[2])&&(n=[n[0]]),De(t,r.s(n,1),[])}),Qe=0;function j(e){var t=++Qe;return r.v(e)+t}function $e(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function et(t,n){return $e(t||[],n||[],e.T)}var tt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return nt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&nt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,rt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function nt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function rt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var it=e.x(1);function at(e,t){if(e.nodeCount()<=1)return[];var n=st(e,t||it),r=ot(n.graph,n.buckets,n.zeroIdx);return i.t(i.a(r,function(t){return e.outEdges(t.v,t.w)}))}function ot(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)M(e,t,n,o);for(;o=i.dequeue();)M(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(M(e,t,n,o,!0));break}}}return r}function M(e,t,n,i,a){var o=a?[]:void 0;return r.n(e.inEdges(i.v),function(r){var i=e.edge(r),s=e.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,N(t,n,s)}),r.n(e.outEdges(i.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,N(t,n,o)}),e.removeNode(i.v),o}function st(e,t){var n=new a.t,i=0,o=0;r.n(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),r.n(e.edges(),function(e){var r=n.edge(e.v,e.w)||0,a=t(e),s=r+a;n.setEdge(e.v,e.w,s),o=Math.max(o,n.node(e.v).out+=a),i=Math.max(i,n.node(e.w).in+=a)});var s=k(o+i+3).map(function(){return new tt}),c=i+1;return r.n(n.nodes(),function(e){N(s,c,n.node(e))}),{graph:n,buckets:s,zeroIdx:c}}function N(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function ct(e){var t=e.graph().acyclicer===`greedy`?at(e,n(e)):lt(e);r.n(t,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,j(`rev`))});function n(e){return function(t){return e.edge(t).weight}}}function lt(e){var t=[],n={},i={};function a(o){Object.prototype.hasOwnProperty.call(i,o)||(i[o]=!0,n[o]=!0,r.n(e.outEdges(o),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):a(e.w)}),delete n[o])}return r.n(e.nodes(),a),t}function ut(e){r.n(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function P(e,t,n,r){var i;do i=j(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function dt(e){var t=new a.t().setGraph(e.graph());return r.n(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.n(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function ft(e){var t=new a.t({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.n(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.n(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function F(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function I(e){var t=i.a(k(R(e)+1),function(){return[]});return r.n(e.nodes(),function(n){var r=e.node(n),i=r.rank;a.n(i)||(t[i][r.order]=n)}),t}function pt(e){var t=i.n(i.a(e.nodes(),function(t){return e.node(t).rank}));r.n(e.nodes(),function(n){var r=e.node(n);ye(r,`rank`)&&(r.rank-=t)})}function mt(e){var t=i.n(i.a(e.nodes(),function(t){return e.node(t).rank})),n=[];r.n(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var o=0,s=e.graph().nodeRankFactor;r.n(n,function(t,n){a.n(t)&&n%s!==0?--o:o&&r.n(t,function(t){e.node(t).rank+=o})})}function L(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),P(e,`border`,i,t)}function R(e){return S(i.a(e.nodes(),function(t){var n=e.node(t).rank;if(!a.n(n))return n}))}function ht(e,t){var n={lhs:[],rhs:[]};return r.n(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function gt(e,t){var n=_();try{return t()}finally{console.log(e+` time: `+(_()-n)+`ms`)}}function _t(e,t){return t()}function vt(e){function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.n(i,t),Object.prototype.hasOwnProperty.call(a,`minRank`)){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,s=a.maxRank+1;o<s;++o)z(e,`borderLeft`,`_bl`,n,a,o),z(e,`borderRight`,`_br`,n,a,o)}}r.n(e.children(),t)}function z(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=P(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function yt(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&B(e)}function bt(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&xt(e),(t===`lr`||t===`rl`)&&(St(e),B(e))}function B(e){r.n(e.nodes(),function(t){V(e.node(t))}),r.n(e.edges(),function(t){V(e.edge(t))})}function V(e){var t=e.width;e.width=e.height,e.height=t}function xt(e){r.n(e.nodes(),function(t){H(e.node(t))}),r.n(e.edges(),function(t){var n=e.edge(t);r.n(n.points,H),Object.prototype.hasOwnProperty.call(n,`y`)&&H(n)})}function H(e){e.y=-e.y}function St(e){r.n(e.nodes(),function(t){U(e.node(t))}),r.n(e.edges(),function(t){var n=e.edge(t);r.n(n.points,U),Object.prototype.hasOwnProperty.call(n,`x`)&&U(n)})}function U(e){var t=e.x;e.x=e.y,e.y=t}function Ct(e){e.graph().dummyChains=[],r.n(e.edges(),function(t){wt(e,t)})}function wt(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=P(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function Tt(e){r.n(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function W(e){var t={};function n(r){var a=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return a.rank;t[r]=!0;var o=i.n(i.a(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(o===1/0||o==null)&&(o=0),a.rank=o}r.n(e.sources(),n)}function G(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function K(e){var t=new a.t({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,o;Et(t,e)<r;)i=Dt(t,e),o=t.hasNode(i.v)?G(e,i):-G(e,i),Ot(t,e,o);return t}function Et(e,t){function n(i){r.n(t.nodeEdges(i),function(r){var a=r.v,o=i===a?r.w:a;!e.hasNode(o)&&!G(t,r)&&(e.setNode(o,{}),e.setEdge(i,o,{}),n(o))})}return r.n(e.nodes(),n),e.nodeCount()}function Dt(e,t){return C(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return G(t,n)})}function Ot(e,t,n){r.n(e.nodes(),function(e){t.node(e).rank+=n})}e.x(1),e.x(1),kt.CycleException=q;function kt(e){var t={},n={},i=[];function a(o){if(Object.prototype.hasOwnProperty.call(n,o))throw new q;Object.prototype.hasOwnProperty.call(t,o)||(n[o]=!0,t[o]=!0,r.n(e.predecessors(o),a),delete n[o],i.push(o))}if(r.n(e.sinks(),a),Ze(t)!==e.nodeCount())throw new q;return i}function q(){}q.prototype=Error();function At(e,n,i){t.u(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return r.n(n,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);jt(e,t,i===`post`,s,a,o)}),o}function jt(e,t,n,i,a,o){Object.prototype.hasOwnProperty.call(i,t)||(i[t]=!0,n||o.push(t),r.n(a(t),function(t){jt(e,t,n,i,a,o)}),n&&o.push(t))}function Mt(e,t){return At(e,t,`post`)}function Nt(e,t){return At(e,t,`pre`)}J.initLowLimValues=X,J.initCutValues=Y,J.calcCutValue=Ft,J.leaveEdge=Lt,J.enterEdge=Rt,J.exchangeEdges=zt;function J(e){e=dt(e),W(e);var t=K(e);X(t),Y(t,e);for(var n,r;n=Lt(t);)r=Rt(t,e,n),zt(t,e,n,r)}function Y(e,t){var n=Mt(e,e.nodes());n=n.slice(0,n.length-1),r.n(n,function(n){Pt(e,t,n)})}function Pt(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Ft(e,t,n)}function Ft(e,t,n){var i=e.node(n).parent,a=!0,o=t.edge(n,i),s=0;return o||=(a=!1,t.edge(i,n)),s=o.weight,r.n(t.nodeEdges(n),function(r){var o=r.v===n,c=o?r.w:r.v;if(c!==i){var l=o===a,u=t.edge(r).weight;if(s+=l?u:-u,Vt(e,n,c)){var d=e.edge(n,c).cutvalue;s+=l?-d:d}}}),s}function X(e,t){arguments.length<2&&(t=e.nodes()[0]),It(e,{},1,t)}function It(e,t,n,i,a){var o=n,s=e.node(i);return t[i]=!0,r.n(e.neighbors(i),function(r){Object.prototype.hasOwnProperty.call(t,r)||(n=It(e,t,n,r,i))}),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function Lt(e){return b(e.edges(),function(t){return e.edge(t).cutvalue<0})}function Rt(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var o=e.node(i),s=e.node(a),c=o,l=!1;return o.lim>s.lim&&(c=s,l=!0),C(r.c(t.edges(),function(t){return l===Ht(e,e.node(t.v),c)&&l!==Ht(e,e.node(t.w),c)}),function(e){return G(t,e)})}function zt(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),X(e),Y(e,t),Bt(e,t)}function Bt(e,t){var n=Nt(e,b(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),r.n(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function Vt(e,t,n){return e.hasEdge(t,n)}function Ht(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Ut(e){switch(e.graph().ranker){case`network-simplex`:Kt(e);break;case`tight-tree`:Gt(e);break;case`longest-path`:Wt(e);break;default:Kt(e)}}var Wt=W;function Gt(e){W(e),K(e)}function Kt(e){J(e)}function qt(e){var t=P(e,`root`,{},`_root`),n=Yt(e),i=S(a.r(n))-1,o=2*i+1;e.graph().nestingRoot=t,r.n(e.edges(),function(t){e.edge(t).minlen*=o});var s=Xt(e)+1;r.n(e.children(),function(r){Jt(e,t,o,s,i,n,r)}),e.graph().nodeRankFactor=o}function Jt(e,t,n,i,a,o,s){var c=e.children(s);if(!c.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:n});return}var l=L(e,`_bt`),u=L(e,`_bb`),d=e.node(s);e.setParent(l,s),d.borderTop=l,e.setParent(u,s),d.borderBottom=u,r.n(c,function(r){Jt(e,t,n,i,a,o,r);var c=e.node(r),d=c.borderTop?c.borderTop:r,f=c.borderBottom?c.borderBottom:r,p=c.borderTop?i:2*i,m=d===f?a-o[s]+1:1;e.setEdge(l,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,u,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,l,{weight:0,minlen:a+o[s]})}function Yt(e){var t={};function n(i,a){var o=e.children(i);o&&o.length&&r.n(o,function(e){n(e,a+1)}),t[i]=a}return r.n(e.children(),function(e){n(e,1)}),t}function Xt(e){return r.t(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Zt(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.n(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Qt(e,t,n){var i={},a;r.n(n,function(n){for(var r=e.parent(n),o,s;r;){if(o=e.parent(r),o?(s=i[o],i[o]=r):(s=a,a=r),s&&s!==r){t.setEdge(s,r);return}r=o}})}function $t(e,t,n){var i=en(e),o=new a.t({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(t){return e.node(t)});return r.n(e.nodes(),function(s){var c=e.node(s),l=e.parent(s);(c.rank===t||c.minRank<=t&&t<=c.maxRank)&&(o.setNode(s),o.setParent(s,l||i),r.n(e[n](s),function(t){var n=t.v===s?t.w:t.v,r=o.edge(n,s),i=a.n(r)?0:r.weight;o.setEdge(n,s,{weight:e.edge(t).weight+i})}),Object.prototype.hasOwnProperty.call(c,`minRank`)&&o.setNode(s,{borderLeft:c.borderLeft[t],borderRight:c.borderRight[t]}))}),o}function en(e){for(var t;e.hasNode(t=j(`_root`)););return t}function tn(e,t){for(var n=0,r=1;r<t.length;++r)n+=nn(e,t[r-1],t[r]);return n}function nn(e,t,n){for(var a=et(n,i.a(n,function(e,t){return t})),o=i.t(i.a(t,function(t){return A(i.a(e.outEdges(t),function(t){return{pos:a[t.w],weight:e.edge(t).weight}}),`pos`)})),s=1;s<n.length;)s<<=1;var c=2*s-1;--s;var l=i.a(Array(c),function(){return 0}),u=0;return r.n(o.forEach(function(e){var t=e.pos+s;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;u+=e.weight*n})),u}function rn(e){var t={},n=r.c(e.nodes(),function(t){return!e.children(t).length}),a=S(i.a(n,function(t){return e.node(t).rank})),o=i.a(k(a+1),function(){return[]});function s(n){ye(t,n)||(t[n]=!0,o[e.node(n).rank].push(n),r.n(e.successors(n),s))}var c=A(n,function(t){return e.node(t).rank});return r.n(c,s),o}function an(e,t){return i.a(t,function(t){var n=e.inEdges(t);if(n.length){var i=r.t(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:t}})}function on(e,t){var n={};return r.n(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};a.n(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),r.n(t.edges(),function(e){var t=n[e.v],r=n[e.w];!a.n(t)&&!a.n(r)&&(r.indegree++,t.out.push(n[e.w]))}),sn(r.c(n,function(e){return!e.indegree}))}function sn(e){var t=[];function n(e){return function(t){t.merged||(a.n(t.barycenter)||a.n(e.barycenter)||t.barycenter>=e.barycenter)&&cn(e,t)}}function o(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var s=e.pop();t.push(s),r.n(s.in.reverse(),n(s)),r.n(s.out,o(s))}return i.a(r.c(t,function(e){return!e.merged}),function(e){return O(e,[`vs`,`i`,`barycenter`,`weight`])})}function cn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function ln(e,t){var n=ht(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),a=n.lhs,o=A(n.rhs,function(e){return-e.i}),s=[],c=0,l=0,u=0;a.sort(dn(!!t)),u=un(s,o,u),r.n(a,function(e){u+=e.vs.length,s.push(e.vs),c+=e.barycenter*e.weight,l+=e.weight,u=un(s,o,u)});var d={vs:i.t(s)};return l&&(d.barycenter=c/l,d.weight=l),d}function un(e,t,n){for(var r;t.length&&(r=y(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function dn(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function Z(e,t,n,a){var o=e.children(t),s=e.node(t),c=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,u={};c&&(o=r.c(o,function(e){return e!==c&&e!==l}));var d=an(e,o);r.n(d,function(t){if(e.children(t.v).length){var r=Z(e,t.v,n,a);u[t.v]=r,Object.prototype.hasOwnProperty.call(r,`barycenter`)&&pn(t,r)}});var f=on(d,n);fn(f,u);var p=ln(f,a);if(c&&(p.vs=i.t([c,p.vs,l]),e.predecessors(c).length)){var m=e.node(e.predecessors(c)[0]),ee=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(p,`barycenter`)||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+m.order+ee.order)/(p.weight+2),p.weight+=2}return p}function fn(e,t){r.n(e,function(e){e.vs=i.t(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function pn(e,t){a.n(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function mn(e){var t=R(e),n=hn(e,k(1,t+1),`inEdges`),r=hn(e,k(t-1,-1,-1),`outEdges`),i=rn(e);_n(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){gn(s%2?n:r,s%4>=2),i=I(e);var l=tn(e,i);l<a&&(c=0,o=ce(i),a=l)}_n(e,o)}function hn(e,t,n){return i.a(t,function(t){return $t(e,t,n)})}function gn(e,t){var n=new a.t;r.n(e,function(e){var i=e.graph().root,a=Z(e,i,n,t);r.n(a.vs,function(t,n){e.node(t).order=n}),Qt(e,n,a.vs)})}function _n(e,t){r.n(t,function(t){r.n(t,function(t,n){e.node(t).order=n})})}function vn(e){var t=bn(e);r.n(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=yn(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function yn(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function bn(e){var t={},n=0;function i(a){var o=n;r.n(e.children(a),i),t[a]={low:o,lim:n++}}return r.n(e.children(),i),t}function xn(e,t){var n={};function i(t,i){var a=0,o=0,s=t.length,c=y(i);return r.n(i,function(t,l){var u=Cn(e,t),d=u?e.node(u).order:s;(u||t===c)&&(r.n(i.slice(o,l+1),function(t){r.n(e.predecessors(t),function(r){var i=e.node(r),o=i.order;(o<a||d<o)&&!(i.dummy&&e.node(t).dummy)&&wn(n,r,t)})}),o=l+1,a=d)}),i}return r.t(t,i),n}function Sn(e,t){var n={};function i(t,i,a,o,s){var c;r.n(k(i,a),function(i){c=t[i],e.node(c).dummy&&r.n(e.predecessors(c),function(t){var r=e.node(t);r.dummy&&(r.order<o||r.order>s)&&wn(n,t,c)})})}function a(t,n){var a=-1,o,s=0;return r.n(n,function(r,c){if(e.node(r).dummy===`border`){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,s,c,a,o),s=c,a=o)}i(n,s,n.length,o,t.length)}),n}return r.t(t,a),n}function Cn(e,t){if(e.node(t).dummy)return b(e.predecessors(t),function(t){return e.node(t).dummy})}function wn(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Tn(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function En(e,t,n,i){var a={},o={},s={};return r.n(t,function(e){r.n(e,function(e,t){a[e]=e,o[e]=e,s[e]=t})}),r.n(t,function(e){var t=-1;r.n(e,function(e){var r=i(e);if(r.length){r=A(r,function(e){return s[e]});for(var c=(r.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=r[l];o[e]===e&&t<s[d]&&!Tn(n,e,d)&&(o[d]=e,o[e]=a[e]=a[d],t=s[d])}}})}),{root:a,align:o}}function Dn(e,t,n,i,a){var o={},s=On(e,t,n,a),c=a?`borderLeft`:`borderRight`;function l(e,t){for(var n=s.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){o[e]=s.inEdges(e).reduce(function(e,t){return Math.max(e,o[t.v]+s.edge(t))},0)}function d(t){var n=s.outEdges(t).reduce(function(e,t){return Math.min(e,o[t.w]-s.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==c&&(o[t]=Math.max(o[t],n))}return l(u,s.predecessors.bind(s)),l(d,s.successors.bind(s)),r.n(i,function(e){o[e]=o[n[e]]}),o}function On(e,t,n,i){var o=new a.t,s=e.graph(),c=Nn(s.nodesep,s.edgesep,i);return r.n(t,function(t){var i;r.n(t,function(t){var r=n[t];if(o.setNode(r),i){var a=n[i],s=o.edge(a,r);o.setEdge(a,r,Math.max(c(e,t,i),s||0))}i=t})}),o}function kn(e,t){return C(a.r(t),function(t){var n=-1/0,r=1/0;return me(t,function(t,i){var a=Pn(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function An(e,t){var n=a.r(t),o=i.n(n),s=S(n);r.n([`u`,`d`],function(n){r.n([`l`,`r`],function(r){var c=n+r,l=e[c],u;if(l!==t){var d=a.r(l);u=r===`l`?o-i.n(d):s-S(d),u&&(e[c]=x(l,function(e){return e+u}))}})})}function jn(e,t){return x(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var a=A(i.a(e,r));return(a[1]+a[2])/2})}function Mn(t){var n=I(t),o=e._(xn(t,n),Sn(t,n)),s={},c;return r.n([`u`,`d`],function(e){c=e===`u`?n:a.r(n).reverse(),r.n([`l`,`r`],function(n){n===`r`&&(c=i.a(c,function(e){return a.r(e).reverse()}));var r=(e===`u`?t.predecessors:t.successors).bind(t),l=En(t,c,o,r),u=Dn(t,c,l.root,l.align,n===`r`);n===`r`&&(u=x(u,function(e){return-e})),s[e+n]=u})}),An(s,kn(t,s)),jn(s,t.graph().align)}function Nn(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function Pn(e,t){return e.node(t).width}function Fn(e){e=ft(e),In(e),he(Mn(e),function(t,n){e.node(n).x=t})}function In(e){var t=I(e),n=e.graph().ranksep,a=0;r.n(t,function(t){var o=S(i.a(t,function(t){return e.node(t).height}));r.n(t,function(t){e.node(t).y=a+o/2}),a+=o+n})}function Ln(e,t){var n=t&&t.debugTiming?gt:_t;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Jn(e));n(` runLayout`,()=>Rn(t,n)),n(` updateInputGraph`,()=>zn(e,t))})}function Rn(e,t){t(` makeSpaceForEdgeLabels`,()=>Yn(e)),t(` removeSelfEdges`,()=>ir(e)),t(` acyclic`,()=>ct(e)),t(` nestingGraph.run`,()=>qt(e)),t(` rank`,()=>Ut(ft(e))),t(` injectEdgeLabelProxies`,()=>Xn(e)),t(` removeEmptyRanks`,()=>mt(e)),t(` nestingGraph.cleanup`,()=>Zt(e)),t(` normalizeRanks`,()=>pt(e)),t(` assignRankMinMax`,()=>Zn(e)),t(` removeEdgeLabelProxies`,()=>Qn(e)),t(` normalize.run`,()=>Ct(e)),t(` parentDummyChains`,()=>vn(e)),t(` addBorderSegments`,()=>vt(e)),t(` order`,()=>mn(e)),t(` insertSelfEdges`,()=>ar(e)),t(` adjustCoordinateSystem`,()=>yt(e)),t(` position`,()=>Fn(e)),t(` positionSelfEdges`,()=>or(e)),t(` removeBorderNodes`,()=>rr(e)),t(` normalize.undo`,()=>Tt(e)),t(` fixupEdgeLabelCoords`,()=>tr(e)),t(` undoCoordinateSystem`,()=>bt(e)),t(` translateGraph`,()=>$n(e)),t(` assignNodeIntersects`,()=>er(e)),t(` reversePoints`,()=>nr(e)),t(` acyclic.undo`,()=>ut(e))}function zn(e,t){r.n(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),r.n(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Bn=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],Vn={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Hn=[`acyclicer`,`ranker`,`rankdir`,`align`],Un=[`width`,`height`],Wn={width:0,height:0},Gn=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Kn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},qn=[`labelpos`];function Jn(t){var n=new a.t({multigraph:!0,compound:!0}),i=$(t.graph());return n.setGraph(e._({},Vn,Q(i,Bn),O(i,Hn))),r.n(t.nodes(),function(e){var r=$(t.node(e));n.setNode(e,ue(Q(r,Un),Wn)),n.setParent(e,t.parent(e))}),r.n(t.edges(),function(r){var i=$(t.edge(r));n.setEdge(r,e._({},Kn,Q(i,Gn),O(i,qn)))}),n}function Yn(e){var t=e.graph();t.ranksep/=2,r.n(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Xn(e){r.n(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);P(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Zn(e){var t=0;r.n(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=S(t,r.maxRank))}),e.graph().maxRank=t}function Qn(e){r.n(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function $n(e){var t=1/0,n=0,i=1/0,a=0,o=e.graph(),s=o.marginx||0,c=o.marginy||0;function l(e){var r=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.n(e.nodes(),function(t){l(e.node(t))}),r.n(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=s,i-=c,r.n(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),r.n(e.edges(),function(n){var a=e.edge(n);r.n(a.points,function(e){e.x-=t,e.y-=i}),Object.prototype.hasOwnProperty.call(a,`x`)&&(a.x-=t),Object.prototype.hasOwnProperty.call(a,`y`)&&(a.y-=i)}),o.width=n-t+s,o.height=a-i+c}function er(e){r.n(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(F(r,a)),n.points.push(F(i,o))})}function tr(e){r.n(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function nr(e){r.n(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function rr(e){r.n(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(y(n.borderLeft)),o=e.node(y(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),r.n(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function ir(e){r.n(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function ar(e){var t=I(e);r.n(t,function(t){var n=0;r.n(t,function(t,i){var a=e.node(t);a.order=i+n,r.n(a.selfEdges,function(t){P(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:a.rank,order:i+ ++n,e:t.e,label:t.label},`_se`)}),delete a.selfEdges})})}function or(e){r.n(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return x(O(e,t),Number)}function $(e){var t={};return r.n(e,function(e,n){t[n.toLowerCase()]=e}),t}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Ln}});
1
+ const e=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),t=require(`./identity-KQSjemTb.cjs`),n=require(`./isEmpty-CA3kJuev.cjs`),r=require(`./reduce-B7WW9rkU.cjs`),i=require(`./flatten-DxvYSoR8.cjs`),a=require(`./graphlib-CdgJ32J_.cjs`);var o=/\s/;function s(e){for(var t=e.length;t--&&o.test(e.charAt(t)););return t}var c=/^\s+/;function l(e){return e&&e.slice(0,s(e)+1).replace(c,``)}var u=NaN,d=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt;function ee(e){if(typeof e==`number`)return e;if(r.y(e))return u;if(t.T(e)){var n=typeof e.valueOf==`function`?e.valueOf():e;e=t.T(n)?n+``:n}if(typeof e!=`string`)return e===0?e:+e;e=l(e);var i=f.test(e);return i||p.test(e)?m(e.slice(2),i?2:8):d.test(e)?u:+e}var h=1/0,te=17976931348623157e292;function g(e){return e?(e=ee(e),e===h||e===-h?(e<0?-1:1)*te:e===e?e:0):e===0?e:0}function ne(e){var t=g(e),n=t%1;return t===t?n?t-n:t:0}function re(t){return e.b(e.S(t,void 0,i.t),t+``)}var ie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function ae(e){return ie.test(e)}var oe=1,se=4;function ce(e){return a.i(e,oe|se)}var _=function(){return t.O.Date.now()},v=Object.prototype,le=v.hasOwnProperty,ue=e.y(function(n,r){n=Object(n);var i=-1,a=r.length,o=a>2?r[2]:void 0;for(o&&e.v(r[0],r[1],o)&&(a=1);++i<a;)for(var s=r[i],c=e.C(s),l=-1,u=c.length;++l<u;){var d=c[l],f=n[d];(f===void 0||t.x(f,v[d])&&!le.call(n,d))&&(n[d]=s[d])}return n});function y(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function de(e){return function(n,i,a){var o=Object(n);if(!t.c(n)){var s=r.d(i,3);n=r.x(n),i=function(e){return s(o[e],e,o)}}var c=e(n,i,a);return c>-1?o[s?n[c]:c]:void 0}}var fe=Math.max;function pe(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:ne(n);return a<0&&(a=fe(i+a,0)),r.o(e,r.d(t,3),a)}var b=de(pe);function me(n,i){return n==null?n:t.g(n,r.r(i),e.C)}function he(e,t){return e&&r.u(e,r.r(t))}function ge(e,t){return e>t}var _e=Object.prototype.hasOwnProperty;function ve(e,t){return e!=null&&_e.call(e,t)}function ye(e,t){return e!=null&&r.m(e,t,ve)}var be=`[object String]`;function xe(e){return typeof e==`string`||!t.u(e)&&t.f(e)&&t.E(e)==be}function x(t,n){var i={};return n=r.d(n,3),r.u(t,function(t,r,a){e.N(i,r,n(t,r,a))}),i}function S(e){return e&&e.length?i.i(e,t.t,ge):void 0}function C(e,t){return e&&e.length?i.i(e,r.d(t,2),i.r):void 0}function Se(n,i,a,o){if(!t.T(n))return n;i=r._(i,n);for(var s=-1,c=i.length,l=c-1,u=n;u!=null&&++s<c;){var d=r.g(i[s]),f=a;if(d===`__proto__`||d===`constructor`||d===`prototype`)return n;if(s!=l){var p=u[d];f=o?o(p,d,u):void 0,f===void 0&&(f=t.T(p)?p:t.r(i[s+1])?[]:{})}e.T(u,d,f),u=u[d]}return n}function Ce(e,t,n){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=r.h(e,s);n(c,s)&&Se(o,r._(s,e),c)}return o}function we(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Te(e,t){if(e!==t){var n=e!==void 0,i=e===null,a=e===e,o=r.y(e),s=t!==void 0,c=t===null,l=t===t,u=r.y(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&n&&a&&!i&&!o||c&&n&&a||!s&&a||!l)return-1}return 0}function Ee(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Te(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function De(e,n,a){n=n.length?r.E(n,function(e){return t.u(e)?function(t){return r.h(t,e.length===1?e[0]:e)}:e}):[t.t];var o=-1;return n=r.E(n,t.o(r.d)),we(i.o(e,function(e,t,i){return{criteria:r.E(n,function(t){return t(e)}),index:++o,value:e}}),function(e,t){return Ee(e,t,a)})}var Oe=r.f(`length`),ke=`\\ud800-\\udfff`,Ae=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,je=`\\ufe0e\\ufe0f`,Me=`[`+ke+`]`,w=`[`+Ae+`]`,T=`\\ud83c[\\udffb-\\udfff]`,Ne=`(?:`+w+`|`+T+`)`,Pe=`[^`+ke+`]`,Fe=`(?:\\ud83c[\\udde6-\\uddff]){2}`,E=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ie=`\\u200d`,Le=Ne+`?`,Re=`[`+je+`]?`,ze=`(?:`+Ie+`(?:`+[Pe,Fe,E].join(`|`)+`)`+Re+Le+`)*`,Be=Re+Le+ze,Ve=`(?:`+[Pe+w+`?`,w,Fe,E,Me].join(`|`)+`)`,D=RegExp(T+`(?=`+T+`)|`+Ve+Be,`g`);function He(e){for(var t=D.lastIndex=0;D.test(e);)++t;return t}function Ue(e){return ae(e)?He(e):Oe(e)}function We(e,t){return Ce(e,t,function(t,n){return r.p(e,n)})}var O=re(function(e,t){return e==null?{}:We(e,t)}),Ge=Math.ceil,Ke=Math.max;function qe(e,t,n,r){for(var i=-1,a=Ke(Ge((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function Je(t){return function(n,r,i){return i&&typeof i!=`number`&&e.v(n,r,i)&&(r=i=void 0),n=g(n),r===void 0?(r=n,n=0):r=g(r),i=i===void 0?n<r?1:-1:g(i),qe(n,r,i,t)}}var k=Je(),Ye=`[object Map]`,Xe=`[object Set]`;function Ze(e){if(e==null)return 0;if(t.c(e))return xe(e)?Ue(e):e.length;var r=n.n(e);return r==Ye||r==Xe?e.size:n.i(e).length}var A=e.y(function(t,n){if(t==null)return[];var i=n.length;return i>1&&e.v(t,n[0],n[1])?n=[]:i>2&&e.v(n[0],n[1],n[2])&&(n=[n[0]]),De(t,r.s(n,1),[])}),Qe=0;function j(e){var t=++Qe;return r.v(e)+t}function $e(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function et(t,n){return $e(t||[],n||[],e.T)}var tt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return nt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&nt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,rt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function nt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function rt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var it=e.x(1);function at(e,t){if(e.nodeCount()<=1)return[];var n=st(e,t||it),r=ot(n.graph,n.buckets,n.zeroIdx);return i.t(i.a(r,function(t){return e.outEdges(t.v,t.w)}))}function ot(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)M(e,t,n,o);for(;o=i.dequeue();)M(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(M(e,t,n,o,!0));break}}}return r}function M(e,t,n,i,a){var o=a?[]:void 0;return r.n(e.inEdges(i.v),function(r){var i=e.edge(r),s=e.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,N(t,n,s)}),r.n(e.outEdges(i.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,N(t,n,o)}),e.removeNode(i.v),o}function st(e,t){var n=new a.t,i=0,o=0;r.n(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),r.n(e.edges(),function(e){var r=n.edge(e.v,e.w)||0,a=t(e),s=r+a;n.setEdge(e.v,e.w,s),o=Math.max(o,n.node(e.v).out+=a),i=Math.max(i,n.node(e.w).in+=a)});var s=k(o+i+3).map(function(){return new tt}),c=i+1;return r.n(n.nodes(),function(e){N(s,c,n.node(e))}),{graph:n,buckets:s,zeroIdx:c}}function N(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function ct(e){var t=e.graph().acyclicer===`greedy`?at(e,n(e)):lt(e);r.n(t,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,j(`rev`))});function n(e){return function(t){return e.edge(t).weight}}}function lt(e){var t=[],n={},i={};function a(o){Object.prototype.hasOwnProperty.call(i,o)||(i[o]=!0,n[o]=!0,r.n(e.outEdges(o),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):a(e.w)}),delete n[o])}return r.n(e.nodes(),a),t}function ut(e){r.n(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function P(e,t,n,r){var i;do i=j(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function dt(e){var t=new a.t().setGraph(e.graph());return r.n(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.n(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function ft(e){var t=new a.t({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.n(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.n(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function F(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function I(e){var t=i.a(k(R(e)+1),function(){return[]});return r.n(e.nodes(),function(n){var r=e.node(n),i=r.rank;a.n(i)||(t[i][r.order]=n)}),t}function pt(e){var t=i.n(i.a(e.nodes(),function(t){return e.node(t).rank}));r.n(e.nodes(),function(n){var r=e.node(n);ye(r,`rank`)&&(r.rank-=t)})}function mt(e){var t=i.n(i.a(e.nodes(),function(t){return e.node(t).rank})),n=[];r.n(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var o=0,s=e.graph().nodeRankFactor;r.n(n,function(t,n){a.n(t)&&n%s!==0?--o:o&&r.n(t,function(t){e.node(t).rank+=o})})}function L(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),P(e,`border`,i,t)}function R(e){return S(i.a(e.nodes(),function(t){var n=e.node(t).rank;if(!a.n(n))return n}))}function ht(e,t){var n={lhs:[],rhs:[]};return r.n(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function gt(e,t){var n=_();try{return t()}finally{console.log(e+` time: `+(_()-n)+`ms`)}}function _t(e,t){return t()}function vt(e){function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.n(i,t),Object.prototype.hasOwnProperty.call(a,`minRank`)){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,s=a.maxRank+1;o<s;++o)z(e,`borderLeft`,`_bl`,n,a,o),z(e,`borderRight`,`_br`,n,a,o)}}r.n(e.children(),t)}function z(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=P(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function yt(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&B(e)}function bt(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&xt(e),(t===`lr`||t===`rl`)&&(St(e),B(e))}function B(e){r.n(e.nodes(),function(t){V(e.node(t))}),r.n(e.edges(),function(t){V(e.edge(t))})}function V(e){var t=e.width;e.width=e.height,e.height=t}function xt(e){r.n(e.nodes(),function(t){H(e.node(t))}),r.n(e.edges(),function(t){var n=e.edge(t);r.n(n.points,H),Object.prototype.hasOwnProperty.call(n,`y`)&&H(n)})}function H(e){e.y=-e.y}function St(e){r.n(e.nodes(),function(t){U(e.node(t))}),r.n(e.edges(),function(t){var n=e.edge(t);r.n(n.points,U),Object.prototype.hasOwnProperty.call(n,`x`)&&U(n)})}function U(e){var t=e.x;e.x=e.y,e.y=t}function Ct(e){e.graph().dummyChains=[],r.n(e.edges(),function(t){wt(e,t)})}function wt(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=P(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function Tt(e){r.n(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function W(e){var t={};function n(r){var a=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return a.rank;t[r]=!0;var o=i.n(i.a(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(o===1/0||o==null)&&(o=0),a.rank=o}r.n(e.sources(),n)}function G(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function K(e){var t=new a.t({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,o;Et(t,e)<r;)i=Dt(t,e),o=t.hasNode(i.v)?G(e,i):-G(e,i),Ot(t,e,o);return t}function Et(e,t){function n(i){r.n(t.nodeEdges(i),function(r){var a=r.v,o=i===a?r.w:a;!e.hasNode(o)&&!G(t,r)&&(e.setNode(o,{}),e.setEdge(i,o,{}),n(o))})}return r.n(e.nodes(),n),e.nodeCount()}function Dt(e,t){return C(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return G(t,n)})}function Ot(e,t,n){r.n(e.nodes(),function(e){t.node(e).rank+=n})}e.x(1),e.x(1),kt.CycleException=q;function kt(e){var t={},n={},i=[];function a(o){if(Object.prototype.hasOwnProperty.call(n,o))throw new q;Object.prototype.hasOwnProperty.call(t,o)||(n[o]=!0,t[o]=!0,r.n(e.predecessors(o),a),delete n[o],i.push(o))}if(r.n(e.sinks(),a),Ze(t)!==e.nodeCount())throw new q;return i}function q(){}q.prototype=Error();function At(e,n,i){t.u(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return r.n(n,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);jt(e,t,i===`post`,s,a,o)}),o}function jt(e,t,n,i,a,o){Object.prototype.hasOwnProperty.call(i,t)||(i[t]=!0,n||o.push(t),r.n(a(t),function(t){jt(e,t,n,i,a,o)}),n&&o.push(t))}function Mt(e,t){return At(e,t,`post`)}function Nt(e,t){return At(e,t,`pre`)}J.initLowLimValues=X,J.initCutValues=Y,J.calcCutValue=Ft,J.leaveEdge=Lt,J.enterEdge=Rt,J.exchangeEdges=zt;function J(e){e=dt(e),W(e);var t=K(e);X(t),Y(t,e);for(var n,r;n=Lt(t);)r=Rt(t,e,n),zt(t,e,n,r)}function Y(e,t){var n=Mt(e,e.nodes());n=n.slice(0,n.length-1),r.n(n,function(n){Pt(e,t,n)})}function Pt(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Ft(e,t,n)}function Ft(e,t,n){var i=e.node(n).parent,a=!0,o=t.edge(n,i),s=0;return o||=(a=!1,t.edge(i,n)),s=o.weight,r.n(t.nodeEdges(n),function(r){var o=r.v===n,c=o?r.w:r.v;if(c!==i){var l=o===a,u=t.edge(r).weight;if(s+=l?u:-u,Vt(e,n,c)){var d=e.edge(n,c).cutvalue;s+=l?-d:d}}}),s}function X(e,t){arguments.length<2&&(t=e.nodes()[0]),It(e,{},1,t)}function It(e,t,n,i,a){var o=n,s=e.node(i);return t[i]=!0,r.n(e.neighbors(i),function(r){Object.prototype.hasOwnProperty.call(t,r)||(n=It(e,t,n,r,i))}),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function Lt(e){return b(e.edges(),function(t){return e.edge(t).cutvalue<0})}function Rt(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var o=e.node(i),s=e.node(a),c=o,l=!1;return o.lim>s.lim&&(c=s,l=!0),C(r.c(t.edges(),function(t){return l===Ht(e,e.node(t.v),c)&&l!==Ht(e,e.node(t.w),c)}),function(e){return G(t,e)})}function zt(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),X(e),Y(e,t),Bt(e,t)}function Bt(e,t){var n=Nt(e,b(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),r.n(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function Vt(e,t,n){return e.hasEdge(t,n)}function Ht(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Ut(e){switch(e.graph().ranker){case`network-simplex`:Kt(e);break;case`tight-tree`:Gt(e);break;case`longest-path`:Wt(e);break;default:Kt(e)}}var Wt=W;function Gt(e){W(e),K(e)}function Kt(e){J(e)}function qt(e){var t=P(e,`root`,{},`_root`),n=Yt(e),i=S(a.r(n))-1,o=2*i+1;e.graph().nestingRoot=t,r.n(e.edges(),function(t){e.edge(t).minlen*=o});var s=Xt(e)+1;r.n(e.children(),function(r){Jt(e,t,o,s,i,n,r)}),e.graph().nodeRankFactor=o}function Jt(e,t,n,i,a,o,s){var c=e.children(s);if(!c.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:n});return}var l=L(e,`_bt`),u=L(e,`_bb`),d=e.node(s);e.setParent(l,s),d.borderTop=l,e.setParent(u,s),d.borderBottom=u,r.n(c,function(r){Jt(e,t,n,i,a,o,r);var c=e.node(r),d=c.borderTop?c.borderTop:r,f=c.borderBottom?c.borderBottom:r,p=c.borderTop?i:2*i,m=d===f?a-o[s]+1:1;e.setEdge(l,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,u,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,l,{weight:0,minlen:a+o[s]})}function Yt(e){var t={};function n(i,a){var o=e.children(i);o&&o.length&&r.n(o,function(e){n(e,a+1)}),t[i]=a}return r.n(e.children(),function(e){n(e,1)}),t}function Xt(e){return r.t(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Zt(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.n(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Qt(e,t,n){var i={},a;r.n(n,function(n){for(var r=e.parent(n),o,s;r;){if(o=e.parent(r),o?(s=i[o],i[o]=r):(s=a,a=r),s&&s!==r){t.setEdge(s,r);return}r=o}})}function $t(e,t,n){var i=en(e),o=new a.t({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(t){return e.node(t)});return r.n(e.nodes(),function(s){var c=e.node(s),l=e.parent(s);(c.rank===t||c.minRank<=t&&t<=c.maxRank)&&(o.setNode(s),o.setParent(s,l||i),r.n(e[n](s),function(t){var n=t.v===s?t.w:t.v,r=o.edge(n,s),i=a.n(r)?0:r.weight;o.setEdge(n,s,{weight:e.edge(t).weight+i})}),Object.prototype.hasOwnProperty.call(c,`minRank`)&&o.setNode(s,{borderLeft:c.borderLeft[t],borderRight:c.borderRight[t]}))}),o}function en(e){for(var t;e.hasNode(t=j(`_root`)););return t}function tn(e,t){for(var n=0,r=1;r<t.length;++r)n+=nn(e,t[r-1],t[r]);return n}function nn(e,t,n){for(var a=et(n,i.a(n,function(e,t){return t})),o=i.t(i.a(t,function(t){return A(i.a(e.outEdges(t),function(t){return{pos:a[t.w],weight:e.edge(t).weight}}),`pos`)})),s=1;s<n.length;)s<<=1;var c=2*s-1;--s;var l=i.a(Array(c),function(){return 0}),u=0;return r.n(o.forEach(function(e){var t=e.pos+s;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;u+=e.weight*n})),u}function rn(e){var t={},n=r.c(e.nodes(),function(t){return!e.children(t).length}),a=S(i.a(n,function(t){return e.node(t).rank})),o=i.a(k(a+1),function(){return[]});function s(n){ye(t,n)||(t[n]=!0,o[e.node(n).rank].push(n),r.n(e.successors(n),s))}var c=A(n,function(t){return e.node(t).rank});return r.n(c,s),o}function an(e,t){return i.a(t,function(t){var n=e.inEdges(t);if(n.length){var i=r.t(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:t}})}function on(e,t){var n={};return r.n(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};a.n(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),r.n(t.edges(),function(e){var t=n[e.v],r=n[e.w];!a.n(t)&&!a.n(r)&&(r.indegree++,t.out.push(n[e.w]))}),sn(r.c(n,function(e){return!e.indegree}))}function sn(e){var t=[];function n(e){return function(t){t.merged||(a.n(t.barycenter)||a.n(e.barycenter)||t.barycenter>=e.barycenter)&&cn(e,t)}}function o(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var s=e.pop();t.push(s),r.n(s.in.reverse(),n(s)),r.n(s.out,o(s))}return i.a(r.c(t,function(e){return!e.merged}),function(e){return O(e,[`vs`,`i`,`barycenter`,`weight`])})}function cn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function ln(e,t){var n=ht(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),a=n.lhs,o=A(n.rhs,function(e){return-e.i}),s=[],c=0,l=0,u=0;a.sort(dn(!!t)),u=un(s,o,u),r.n(a,function(e){u+=e.vs.length,s.push(e.vs),c+=e.barycenter*e.weight,l+=e.weight,u=un(s,o,u)});var d={vs:i.t(s)};return l&&(d.barycenter=c/l,d.weight=l),d}function un(e,t,n){for(var r;t.length&&(r=y(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function dn(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function Z(e,t,n,a){var o=e.children(t),s=e.node(t),c=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,u={};c&&(o=r.c(o,function(e){return e!==c&&e!==l}));var d=an(e,o);r.n(d,function(t){if(e.children(t.v).length){var r=Z(e,t.v,n,a);u[t.v]=r,Object.prototype.hasOwnProperty.call(r,`barycenter`)&&pn(t,r)}});var f=on(d,n);fn(f,u);var p=ln(f,a);if(c&&(p.vs=i.t([c,p.vs,l]),e.predecessors(c).length)){var m=e.node(e.predecessors(c)[0]),ee=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(p,`barycenter`)||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+m.order+ee.order)/(p.weight+2),p.weight+=2}return p}function fn(e,t){r.n(e,function(e){e.vs=i.t(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function pn(e,t){a.n(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function mn(e){var t=R(e),n=hn(e,k(1,t+1),`inEdges`),r=hn(e,k(t-1,-1,-1),`outEdges`),i=rn(e);_n(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){gn(s%2?n:r,s%4>=2),i=I(e);var l=tn(e,i);l<a&&(c=0,o=ce(i),a=l)}_n(e,o)}function hn(e,t,n){return i.a(t,function(t){return $t(e,t,n)})}function gn(e,t){var n=new a.t;r.n(e,function(e){var i=e.graph().root,a=Z(e,i,n,t);r.n(a.vs,function(t,n){e.node(t).order=n}),Qt(e,n,a.vs)})}function _n(e,t){r.n(t,function(t){r.n(t,function(t,n){e.node(t).order=n})})}function vn(e){var t=bn(e);r.n(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=yn(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function yn(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function bn(e){var t={},n=0;function i(a){var o=n;r.n(e.children(a),i),t[a]={low:o,lim:n++}}return r.n(e.children(),i),t}function xn(e,t){var n={};function i(t,i){var a=0,o=0,s=t.length,c=y(i);return r.n(i,function(t,l){var u=Cn(e,t),d=u?e.node(u).order:s;(u||t===c)&&(r.n(i.slice(o,l+1),function(t){r.n(e.predecessors(t),function(r){var i=e.node(r),o=i.order;(o<a||d<o)&&!(i.dummy&&e.node(t).dummy)&&wn(n,r,t)})}),o=l+1,a=d)}),i}return r.t(t,i),n}function Sn(e,t){var n={};function i(t,i,a,o,s){var c;r.n(k(i,a),function(i){c=t[i],e.node(c).dummy&&r.n(e.predecessors(c),function(t){var r=e.node(t);r.dummy&&(r.order<o||r.order>s)&&wn(n,t,c)})})}function a(t,n){var a=-1,o,s=0;return r.n(n,function(r,c){if(e.node(r).dummy===`border`){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,s,c,a,o),s=c,a=o)}i(n,s,n.length,o,t.length)}),n}return r.t(t,a),n}function Cn(e,t){if(e.node(t).dummy)return b(e.predecessors(t),function(t){return e.node(t).dummy})}function wn(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Tn(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function En(e,t,n,i){var a={},o={},s={};return r.n(t,function(e){r.n(e,function(e,t){a[e]=e,o[e]=e,s[e]=t})}),r.n(t,function(e){var t=-1;r.n(e,function(e){var r=i(e);if(r.length){r=A(r,function(e){return s[e]});for(var c=(r.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=r[l];o[e]===e&&t<s[d]&&!Tn(n,e,d)&&(o[d]=e,o[e]=a[e]=a[d],t=s[d])}}})}),{root:a,align:o}}function Dn(e,t,n,i,a){var o={},s=On(e,t,n,a),c=a?`borderLeft`:`borderRight`;function l(e,t){for(var n=s.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){o[e]=s.inEdges(e).reduce(function(e,t){return Math.max(e,o[t.v]+s.edge(t))},0)}function d(t){var n=s.outEdges(t).reduce(function(e,t){return Math.min(e,o[t.w]-s.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==c&&(o[t]=Math.max(o[t],n))}return l(u,s.predecessors.bind(s)),l(d,s.successors.bind(s)),r.n(i,function(e){o[e]=o[n[e]]}),o}function On(e,t,n,i){var o=new a.t,s=e.graph(),c=Nn(s.nodesep,s.edgesep,i);return r.n(t,function(t){var i;r.n(t,function(t){var r=n[t];if(o.setNode(r),i){var a=n[i],s=o.edge(a,r);o.setEdge(a,r,Math.max(c(e,t,i),s||0))}i=t})}),o}function kn(e,t){return C(a.r(t),function(t){var n=-1/0,r=1/0;return me(t,function(t,i){var a=Pn(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function An(e,t){var n=a.r(t),o=i.n(n),s=S(n);r.n([`u`,`d`],function(n){r.n([`l`,`r`],function(r){var c=n+r,l=e[c],u;if(l!==t){var d=a.r(l);u=r===`l`?o-i.n(d):s-S(d),u&&(e[c]=x(l,function(e){return e+u}))}})})}function jn(e,t){return x(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var a=A(i.a(e,r));return(a[1]+a[2])/2})}function Mn(t){var n=I(t),o=e._(xn(t,n),Sn(t,n)),s={},c;return r.n([`u`,`d`],function(e){c=e===`u`?n:a.r(n).reverse(),r.n([`l`,`r`],function(n){n===`r`&&(c=i.a(c,function(e){return a.r(e).reverse()}));var r=(e===`u`?t.predecessors:t.successors).bind(t),l=En(t,c,o,r),u=Dn(t,c,l.root,l.align,n===`r`);n===`r`&&(u=x(u,function(e){return-e})),s[e+n]=u})}),An(s,kn(t,s)),jn(s,t.graph().align)}function Nn(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function Pn(e,t){return e.node(t).width}function Fn(e){e=ft(e),In(e),he(Mn(e),function(t,n){e.node(n).x=t})}function In(e){var t=I(e),n=e.graph().ranksep,a=0;r.n(t,function(t){var o=S(i.a(t,function(t){return e.node(t).height}));r.n(t,function(t){e.node(t).y=a+o/2}),a+=o+n})}function Ln(e,t){var n=t&&t.debugTiming?gt:_t;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Jn(e));n(` runLayout`,()=>Rn(t,n)),n(` updateInputGraph`,()=>zn(e,t))})}function Rn(e,t){t(` makeSpaceForEdgeLabels`,()=>Yn(e)),t(` removeSelfEdges`,()=>ir(e)),t(` acyclic`,()=>ct(e)),t(` nestingGraph.run`,()=>qt(e)),t(` rank`,()=>Ut(ft(e))),t(` injectEdgeLabelProxies`,()=>Xn(e)),t(` removeEmptyRanks`,()=>mt(e)),t(` nestingGraph.cleanup`,()=>Zt(e)),t(` normalizeRanks`,()=>pt(e)),t(` assignRankMinMax`,()=>Zn(e)),t(` removeEdgeLabelProxies`,()=>Qn(e)),t(` normalize.run`,()=>Ct(e)),t(` parentDummyChains`,()=>vn(e)),t(` addBorderSegments`,()=>vt(e)),t(` order`,()=>mn(e)),t(` insertSelfEdges`,()=>ar(e)),t(` adjustCoordinateSystem`,()=>yt(e)),t(` position`,()=>Fn(e)),t(` positionSelfEdges`,()=>or(e)),t(` removeBorderNodes`,()=>rr(e)),t(` normalize.undo`,()=>Tt(e)),t(` fixupEdgeLabelCoords`,()=>tr(e)),t(` undoCoordinateSystem`,()=>bt(e)),t(` translateGraph`,()=>$n(e)),t(` assignNodeIntersects`,()=>er(e)),t(` reversePoints`,()=>nr(e)),t(` acyclic.undo`,()=>ut(e))}function zn(e,t){r.n(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),r.n(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Bn=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],Vn={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Hn=[`acyclicer`,`ranker`,`rankdir`,`align`],Un=[`width`,`height`],Wn={width:0,height:0},Gn=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Kn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},qn=[`labelpos`];function Jn(t){var n=new a.t({multigraph:!0,compound:!0}),i=$(t.graph());return n.setGraph(e._({},Vn,Q(i,Bn),O(i,Hn))),r.n(t.nodes(),function(e){var r=$(t.node(e));n.setNode(e,ue(Q(r,Un),Wn)),n.setParent(e,t.parent(e))}),r.n(t.edges(),function(r){var i=$(t.edge(r));n.setEdge(r,e._({},Kn,Q(i,Gn),O(i,qn)))}),n}function Yn(e){var t=e.graph();t.ranksep/=2,r.n(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Xn(e){r.n(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);P(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Zn(e){var t=0;r.n(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=S(t,r.maxRank))}),e.graph().maxRank=t}function Qn(e){r.n(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function $n(e){var t=1/0,n=0,i=1/0,a=0,o=e.graph(),s=o.marginx||0,c=o.marginy||0;function l(e){var r=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.n(e.nodes(),function(t){l(e.node(t))}),r.n(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=s,i-=c,r.n(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),r.n(e.edges(),function(n){var a=e.edge(n);r.n(a.points,function(e){e.x-=t,e.y-=i}),Object.prototype.hasOwnProperty.call(a,`x`)&&(a.x-=t),Object.prototype.hasOwnProperty.call(a,`y`)&&(a.y-=i)}),o.width=n-t+s,o.height=a-i+c}function er(e){r.n(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(F(r,a)),n.points.push(F(i,o))})}function tr(e){r.n(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function nr(e){r.n(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function rr(e){r.n(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(y(n.borderLeft)),o=e.node(y(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),r.n(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function ir(e){r.n(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function ar(e){var t=I(e);r.n(t,function(t){var n=0;r.n(t,function(t,i){var a=e.node(t);a.order=i+n,r.n(a.selfEdges,function(t){P(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:a.rank,order:i+ ++n,e:t.e,label:t.label},`_se`)}),delete a.selfEdges})})}function or(e){r.n(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return x(O(e,t),Number)}function $(e){var t={};return r.n(e,function(e,n){t[n.toLowerCase()]=e}),t}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Ln}});
@@ -1,9 +1,9 @@
1
- import { C as e, N as t, S as n, T as r, _ as i, b as a, v as o, x as s, y as c } from "./chunk-5PVQY5BW-C5U7sJAA.js";
1
+ import { C as e, N as t, S as n, T as r, _ as i, b as a, v as o, x as s, y as c } from "./chunk-5PVQY5BW-Dn8n6moB.js";
2
2
  import { E as l, O as u, T as d, c as f, f as p, g as m, o as ee, r as te, t as ne, u as h, x as re } from "./identity-g0dsMjx7.js";
3
3
  import { i as ie, n as ae } from "./isEmpty-RwX-oIQS.js";
4
4
  import { E as g, _ as oe, c as _, d as v, f as se, g as ce, h as le, m as ue, n as y, o as de, p as fe, r as pe, s as me, t as b, u as he, v as ge, x as _e, y as x } from "./reduce-DNnkcf3M.js";
5
5
  import { a as S, i as ve, n as C, o as ye, r as be, t as w } from "./flatten-BE1bWL-7.js";
6
- import { i as xe, n as T, r as E, t as D } from "./graphlib-Cpifseqb.js";
6
+ import { i as xe, n as T, r as E, t as D } from "./graphlib-DbQkSsC8.js";
7
7
  //#region node_modules/lodash-es/_trimmedEndIndex.js
8
8
  var Se = /\s/;
9
9
  function Ce(e) {
@@ -1,16 +1,16 @@
1
- import { b as e } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { b as e } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as t, h as n } from "./src-BQiFKP24.js";
3
- import "./chunk-5PVQY5BW-C5U7sJAA.js";
3
+ import "./chunk-5PVQY5BW-Dn8n6moB.js";
4
4
  import "./chunk-BSJP7CBP-oNTXVRA7.js";
5
- import { n as r } from "./chunk-ZZ45TVLE-CIYrdg-O.js";
6
- import "./chunk-X2U36JSP-CY7mJR8m.js";
7
- import "./chunk-U2HBQHQK-BZ3YFMXB.js";
8
- import { a as i, c as a, i as o, l as s, n as c, t as l, u } from "./chunk-5FUZZQ4R-2kdZJWq2.js";
9
- import { a as d, i as f, n as p, r as m, t as h } from "./chunk-ENJZ2VHE-BluGQPyl.js";
5
+ import { n as r } from "./chunk-ZZ45TVLE-X2jolXSO.js";
6
+ import "./chunk-X2U36JSP-VxRY65ea.js";
7
+ import "./chunk-U2HBQHQK-Ceyeq0IV.js";
8
+ import { a as i, c as a, i as o, l as s, n as c, t as l, u } from "./chunk-5FUZZQ4R-D3C0F0Tr.js";
9
+ import { a as d, i as f, n as p, r as m, t as h } from "./chunk-ENJZ2VHE-CZ7BvL2h.js";
10
10
  import { a as g } from "./flatten-BE1bWL-7.js";
11
- import { n as _, t as v } from "./graphlib-Cpifseqb.js";
12
- import { t as y } from "./clone-Dn__H8fX.js";
13
- import { t as b } from "./dagre-DVLnxd7n.js";
11
+ import { n as _, t as v } from "./graphlib-DbQkSsC8.js";
12
+ import { t as y } from "./clone-Dwbh_blD.js";
13
+ import { t as b } from "./dagre-D17h-Z-U.js";
14
14
  //#region node_modules/dagre-d3-es/src/graphlib/json.js
15
15
  function x(e) {
16
16
  var t = {
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`);require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`);const n=require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`);require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`);const r=require(`./chunk-5FUZZQ4R-D_vnCbAb.cjs`),i=require(`./chunk-ENJZ2VHE-CwgVASaU.cjs`),a=require(`./flatten-DxvYSoR8.cjs`),o=require(`./graphlib-HdfvGLpV.cjs`),s=require(`./clone-lShkT11Q.cjs`),c=require(`./dagre-BjnWDdkw.cjs`);function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:d(e)};return o.n(e.graph())||(t.value=s.t(e.graph())),t}function u(e){return a.a(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return o.n(n)||(i.value=n),o.n(r)||(i.parent=r),i})}function d(e){return a.a(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return o.n(t.name)||(r.name=t.name),o.n(n)||(r.value=n),r})}var f=new Map,p=new Map,m=new Map,h=t.h(()=>{p.clear(),m.clear(),f.clear()},`clear`),g=t.h((e,n)=>{let r=p.get(n)||[];return t.g.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),_=t.h((e,n)=>{let r=p.get(n)||[];return t.g.info(`Descendants of `,n,` is `,r),t.g.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||g(e.v,n)||g(e.w,n)||r.includes(e.w):(t.g.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),v=t.h((e,n,r,i)=>{t.g.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.g.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)v(a,n,r,i);else{let o=n.node(a);t.g.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.g.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.g.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.g.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.g.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.g.debug(`Copying Edges`,s),s.forEach(a=>{t.g.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.g.info(`Edge data`,o,i);try{_(a,i)?(t.g.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.g.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.g.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.g.error(e)}})}t.g.debug(`Removing node`,a),n.removeNode(a)})},`copy`),y=t.h((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...y(i,t)];return r},`extractDescendants`),b=t.h((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),x=t.h((e,n,r)=>{let i=n.children(e);if(t.g.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=x(e,n,r),i=b(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),S=t.h(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,`getAnchorId`),C=t.h((e,n)=>{if(!e||n>10){t.g.debug(`Opting out, no graph `);return}else t.g.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.g.warn(`Cluster identified`,n,` Replacement id in edges: `,x(n,e,n)),p.set(n,y(n,e)),f.set(n,{id:x(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.g.debug(`Cluster identified`,n,p),i.forEach(e=>{g(e.v,n)^g(e.w,n)&&(t.g.warn(`Edge: `,e,` leaves cluster `,n),t.g.warn(`Descendants of XXX `,n,`: `,p.get(n)),f.get(n).externalConnections=!0)})):t.g.debug(`Not a cluster `,n,p)});for(let t of f.keys()){let n=f.get(t).id,r=e.parent(n);r!==t&&f.has(r)&&!f.get(r).externalConnections&&(f.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.g.warn(`Fix XXX`,f,`ids:`,n.v,n.w,`Translating: `,f.get(n.v),` --- `,f.get(n.w)),f.get(n.v)||f.get(n.w)){if(t.g.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=S(n.v),a=S(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);f.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);f.get(t).externalConnections=!0,r.toCluster=n.w}t.g.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.g.warn(`Adjusted Graph`,l(e)),w(e,0),t.g.trace(f)},`adjustClustersAndEdges`),w=t.h((e,n)=>{if(t.g.warn(`extractor - `,n,l(e),e.children(`D`)),n>10){t.g.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.g.debug(`Done, no node has children`,e.nodes());return}t.g.debug(`Nodes = `,r,n);for(let i of r)if(t.g.debug(`Extracting node`,i,f,f.has(i)&&!f.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!f.has(i))t.g.debug(`Not a cluster`,i,n);else if(!f.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.g.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;f.get(i)?.clusterData?.dir&&(r=f.get(i).clusterData.dir,t.g.warn(`Fixing dir`,f.get(i).clusterData.dir,r));let a=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.g.warn(`Old graph before copy`,l(e)),v(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:a}),t.g.warn(`New graph after copy node: (`,i,`)`,l(a)),t.g.debug(`Old graph after copy`,l(e))}else t.g.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!f.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.g.debug(f);r=e.nodes(),t.g.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.g.warn(` Now next level`,i,r),r?.clusterNode&&w(r.graph,n+1)}},`extractor`),T=t.h((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=T(e,e.children(t));n=[...n,...r]}),n},`sorter`),E=t.h(e=>T(e,e.children()),`sortNodesByHierarchy`),D=t.h(async(e,a,o,s,u,d)=>{t.g.warn(`Graph in recursive render:XAX`,l(a),u);let p=a.graph().rankdir;t.g.trace(`Dir in recursive render - dir:`,p);let m=e.insert(`g`).attr(`class`,`root`);a.nodes()?t.g.info(`Recursive render XXX`,a.nodes()):t.g.info(`No nodes found for`,a),a.edges().length>0&&t.g.info(`Recursive edges`,a.edge(a.edges()[0]));let h=m.insert(`g`).attr(`class`,`clusters`),g=m.insert(`g`).attr(`class`,`edgePaths`),_=m.insert(`g`).attr(`class`,`edgeLabels`),v=m.insert(`g`).attr(`class`,`nodes`);await Promise.all(a.nodes().map(async function(e){let n=a.node(e);if(u!==void 0){let n=JSON.parse(JSON.stringify(u.clusterData));t.g.trace(`Setting data for parent cluster XXX
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`);require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`);const n=require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`);require(`./chunk-X2U36JSP-CtXjVqek.cjs`),require(`./chunk-U2HBQHQK-CJ77uizk.cjs`);const r=require(`./chunk-5FUZZQ4R-Cj5KbGC7.cjs`),i=require(`./chunk-ENJZ2VHE-BAWfx0nA.cjs`),a=require(`./flatten-DxvYSoR8.cjs`),o=require(`./graphlib-CdgJ32J_.cjs`),s=require(`./clone-CQQwPjME.cjs`),c=require(`./dagre-BcwvU6ZF.cjs`);function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:d(e)};return o.n(e.graph())||(t.value=s.t(e.graph())),t}function u(e){return a.a(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return o.n(n)||(i.value=n),o.n(r)||(i.parent=r),i})}function d(e){return a.a(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return o.n(t.name)||(r.name=t.name),o.n(n)||(r.value=n),r})}var f=new Map,p=new Map,m=new Map,h=t.h(()=>{p.clear(),m.clear(),f.clear()},`clear`),g=t.h((e,n)=>{let r=p.get(n)||[];return t.g.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),_=t.h((e,n)=>{let r=p.get(n)||[];return t.g.info(`Descendants of `,n,` is `,r),t.g.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||g(e.v,n)||g(e.w,n)||r.includes(e.w):(t.g.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),v=t.h((e,n,r,i)=>{t.g.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.g.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)v(a,n,r,i);else{let o=n.node(a);t.g.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.g.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.g.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.g.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.g.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.g.debug(`Copying Edges`,s),s.forEach(a=>{t.g.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.g.info(`Edge data`,o,i);try{_(a,i)?(t.g.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.g.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.g.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.g.error(e)}})}t.g.debug(`Removing node`,a),n.removeNode(a)})},`copy`),y=t.h((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...y(i,t)];return r},`extractDescendants`),b=t.h((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),x=t.h((e,n,r)=>{let i=n.children(e);if(t.g.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=x(e,n,r),i=b(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),S=t.h(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,`getAnchorId`),C=t.h((e,n)=>{if(!e||n>10){t.g.debug(`Opting out, no graph `);return}else t.g.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.g.warn(`Cluster identified`,n,` Replacement id in edges: `,x(n,e,n)),p.set(n,y(n,e)),f.set(n,{id:x(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.g.debug(`Cluster identified`,n,p),i.forEach(e=>{g(e.v,n)^g(e.w,n)&&(t.g.warn(`Edge: `,e,` leaves cluster `,n),t.g.warn(`Descendants of XXX `,n,`: `,p.get(n)),f.get(n).externalConnections=!0)})):t.g.debug(`Not a cluster `,n,p)});for(let t of f.keys()){let n=f.get(t).id,r=e.parent(n);r!==t&&f.has(r)&&!f.get(r).externalConnections&&(f.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.g.warn(`Fix XXX`,f,`ids:`,n.v,n.w,`Translating: `,f.get(n.v),` --- `,f.get(n.w)),f.get(n.v)||f.get(n.w)){if(t.g.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=S(n.v),a=S(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);f.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);f.get(t).externalConnections=!0,r.toCluster=n.w}t.g.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.g.warn(`Adjusted Graph`,l(e)),w(e,0),t.g.trace(f)},`adjustClustersAndEdges`),w=t.h((e,n)=>{if(t.g.warn(`extractor - `,n,l(e),e.children(`D`)),n>10){t.g.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.g.debug(`Done, no node has children`,e.nodes());return}t.g.debug(`Nodes = `,r,n);for(let i of r)if(t.g.debug(`Extracting node`,i,f,f.has(i)&&!f.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!f.has(i))t.g.debug(`Not a cluster`,i,n);else if(!f.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.g.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;f.get(i)?.clusterData?.dir&&(r=f.get(i).clusterData.dir,t.g.warn(`Fixing dir`,f.get(i).clusterData.dir,r));let a=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.g.warn(`Old graph before copy`,l(e)),v(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:a}),t.g.warn(`New graph after copy node: (`,i,`)`,l(a)),t.g.debug(`Old graph after copy`,l(e))}else t.g.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!f.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.g.debug(f);r=e.nodes(),t.g.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.g.warn(` Now next level`,i,r),r?.clusterNode&&w(r.graph,n+1)}},`extractor`),T=t.h((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=T(e,e.children(t));n=[...n,...r]}),n},`sorter`),E=t.h(e=>T(e,e.children()),`sortNodesByHierarchy`),D=t.h(async(e,a,o,s,u,d)=>{t.g.warn(`Graph in recursive render:XAX`,l(a),u);let p=a.graph().rankdir;t.g.trace(`Dir in recursive render - dir:`,p);let m=e.insert(`g`).attr(`class`,`root`);a.nodes()?t.g.info(`Recursive render XXX`,a.nodes()):t.g.info(`No nodes found for`,a),a.edges().length>0&&t.g.info(`Recursive edges`,a.edge(a.edges()[0]));let h=m.insert(`g`).attr(`class`,`clusters`),g=m.insert(`g`).attr(`class`,`edgePaths`),_=m.insert(`g`).attr(`class`,`edgeLabels`),v=m.insert(`g`).attr(`class`,`nodes`);await Promise.all(a.nodes().map(async function(e){let n=a.node(e);if(u!==void 0){let n=JSON.parse(JSON.stringify(u.clusterData));t.g.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,e,`
3
3
  data=`,n.height,`
4
4
  Parent cluster`,u.height),a.setNode(u.id,n),a.parent(e)||(t.g.trace(`Setting parent`,e,u.id),a.setParent(e,u.id,n))}if(t.g.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(a.node(e))),n?.clusterNode){t.g.info(`Cluster identified XBX`,e,n.width,a.node(e));let{ranksep:i,nodesep:c}=a.graph();n.graph.setGraph({...n.graph.graph(),ranksep:i+25,nodesep:c});let l=await D(v,n.graph,o,s,a.node(e),d),u=l.elem;r.u(n,u),n.diff=l.diff||0,t.g.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),r.l(u,n)}else a.children(e).length>0?(t.g.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,a),t.g.trace(x(n.id,a)),f.set(n.id,{id:x(n.id,a),node:n})):(t.g.trace(`Node - the non recursive path XAX`,e,v,a.node(e),p),await r.a(v,a.node(e),{config:d,dir:p}))})),await t.h(async()=>{let e=a.edges().map(async function(e){let n=a.edge(e.v,e.w,e.name);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.g.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(a.edge(e))),t.g.info(`Fix`,f,`ids:`,e.v,e.w,`Translating: `,f.get(e.v),f.get(e.w)),await i.r(_,n)});await Promise.all(e)},`processEdges`)(),t.g.info(`Graph before layout:`,JSON.stringify(l(a))),t.g.info(`############################################# XXX`),t.g.info(`### Layout ### XXX`),t.g.info(`############################################# XXX`),c.t(a),t.g.info(`Graph after layout:`,JSON.stringify(l(a)));let y=0,{subGraphTitleTotalMargin:b}=n.n(d);return await Promise.all(E(a).map(async function(e){let n=a.node(e);if(t.g.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=b,t.g.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,a.parent(e)),f.get(n.id).node=n,r.c(n);else if(a.children(e).length>0){t.g.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,a.parent(e)),n.height+=b,a.node(n.parentId);let i=n?.padding/2||0,o=n?.labelBBox?.height||0,s=o-i||0;t.g.debug(`OffsetY`,s,`labelHeight`,o,`halfPadding`,i),await r.i(h,n),f.get(n.id).node=n}else{let e=a.node(n.parentId);n.y+=b/2,t.g.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),r.c(n)}})),a.edges().forEach(function(e){let n=a.edge(e);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=b/2),i.a(n,i.n(g,n,f,o,a.node(e.v),a.node(e.w),s))}),a.nodes().forEach(function(e){let n=a.node(e);t.g.info(e,n.type,n.diff),n.isGroup&&(y=n.diff)}),t.g.warn(`Returning from recursive render XAX`,m,y),{elem:m,diff:y}},`recursiveRender`),O=t.h(async(n,a)=>{let s=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:n.direction,nodesep:n.config?.nodeSpacing||n.config?.flowchart?.nodeSpacing||n.nodeSpacing,ranksep:n.config?.rankSpacing||n.config?.flowchart?.rankSpacing||n.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=a.select(`g`);i.i(c,n.markers,n.type,n.diagramId),r.n(),i.t(),r.t(),h(),n.nodes.forEach(e=>{s.setNode(e.id,{...e}),e.parentId&&s.setParent(e.id,e.parentId)}),t.g.debug(`Edges:`,n.edges),n.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,i=s.node(t);s.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),s.setParent(n,i.parentId),s.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),s.setParent(r,i.parentId);let a=structuredClone(e),o=structuredClone(e),c=structuredClone(e);a.label=``,a.arrowTypeEnd=`none`,a.id=t+`-cyclic-special-1`,o.arrowTypeStart=`none`,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-mid`,c.label=``,i.isGroup&&(a.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,s.setEdge(t,n,a,t+`-cyclic-special-0`),s.setEdge(n,r,o,t+`-cyclic-special-1`),s.setEdge(r,t,c,t+`-cyc<lic-special-2`)}else s.setEdge(e.start,e.end,{...e},e.id)}),t.g.warn(`Graph at first:`,JSON.stringify(l(s))),C(s),t.g.warn(`Graph after XAX:`,JSON.stringify(l(s)));let u=e.b();await D(c,s,n.type,n.diagramId,void 0,u)},`render`);exports.render=O;
@@ -1,7 +1,7 @@
1
- import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as u, h as d } from "./src-BQiFKP24.js";
3
- import { r as f } from "./chunk-5PVQY5BW-C5U7sJAA.js";
4
- import { t as p } from "./chunk-426QAEUC-JjFVHKYG.js";
3
+ import { r as f } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { t as p } from "./chunk-426QAEUC-CDXJVpQr.js";
5
5
  import { t as m } from "./chunk-4BX2VUAB-BW54-JWg.js";
6
6
  import { t as h } from "./mermaid-parser.core-CERDf-UG.js";
7
7
  import { t as g } from "./chunk-QZHKN3VN-Bx8I6l3c.js";
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),r=require(`./chunk-426QAEUC-Df31vuwu.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=new(require(`./chunk-QZHKN3VN-CSMKL2rB.cjs`)).t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),s=t.h(()=>{o.reset(),e.a()},`clear`),c=t.h(()=>o.records.stack[0],`getRoot`),l=t.h(()=>o.records.cnt,`getCount`),u=e.d.treeView,d={clear:s,addNode:t.h((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let n={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(n),o.records.stack.push(n)},`addNode`),getRoot:c,getCount:l,getConfig:t.h(()=>n.r(u,e.y().treeView),`getConfig`),getAccTitle:e.v,getAccDescription:e._,getDiagramTitle:e.C,setAccDescription:e.B,setAccTitle:e.V,setDiagramTitle:e.W},f=t.h(e=>{i.t(e,d),e.nodes.map(e=>d.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),p={parse:t.h(async e=>{let n=await a.t(`treeView`,e);t.g.debug(n),f(n)},`parse`)},m=t.h((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),h=t.h((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),g=t.h((e,n,r)=>{let i=0,a=0,o=t.h((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);m(o,i,t,e,n);let{height:s,width:c}=t.BBox;h(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t.h((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;h(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),_={draw:t.h((n,i,a,o)=>{t.g.debug(`Rendering treeView diagram
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=new(require(`./chunk-QZHKN3VN-CSMKL2rB.cjs`)).t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),s=t.h(()=>{o.reset(),e.a()},`clear`),c=t.h(()=>o.records.stack[0],`getRoot`),l=t.h(()=>o.records.cnt,`getCount`),u=e.d.treeView,d={clear:s,addNode:t.h((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let n={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(n),o.records.stack.push(n)},`addNode`),getRoot:c,getCount:l,getConfig:t.h(()=>n.r(u,e.y().treeView),`getConfig`),getAccTitle:e.v,getAccDescription:e._,getDiagramTitle:e.C,setAccDescription:e.B,setAccTitle:e.V,setDiagramTitle:e.W},f=t.h(e=>{i.t(e,d),e.nodes.map(e=>d.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),p={parse:t.h(async e=>{let n=await a.t(`treeView`,e);t.g.debug(n),f(n)},`parse`)},m=t.h((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),h=t.h((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),g=t.h((e,n,r)=>{let i=0,a=0,o=t.h((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);m(o,i,t,e,n);let{height:s,width:c}=t.BBox;h(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t.h((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;h(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),_={draw:t.h((n,i,a,o)=>{t.g.debug(`Rendering treeView diagram
2
2
  `+n);let s=o.db,c=s.getRoot(),l=s.getConfig(),u=r.t(i),d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=g(d,c,l);u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),e.c(u,f,p,l.useMaxWidth)},`draw`)},v={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},y={db:d,renderer:_,parser:p,styles:t.h(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=n.r(v,e);return`
3
3
  .treeView-node-label {
4
4
  font-size: ${t};
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./ordinal-Civr0hZL.cjs`),r=require(`./defaultLocale-DtzyZW63.cjs`),i=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),a=require(`./chunk-426QAEUC-Df31vuwu.cjs`),o=require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),s=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),c=require(`./mermaid-parser.core-DHpvGOZR.cjs`),l=require(`./chunk-EDXVE4YY-BZsJORf8.cjs`);function u(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function d(){return this.eachAfter(u)}function f(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function p(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function m(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function h(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function g(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function _(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function v(e){for(var t=this,n=y(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function y(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function b(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function x(){return Array.from(this)}function S(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function C(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*w(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function T(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=O)):t===void 0&&(t=D);for(var n=new j(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function E(){return T(this).eachBefore(k)}function D(e){return e.children}function O(e){return Array.isArray(e)?e[1]:null}function k(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=T.prototype={constructor:j,count:d,each:f,eachAfter:m,eachBefore:p,find:h,sum:g,sort:_,path:v,ancestors:b,descendants:x,leaves:S,links:C,copy:E,[Symbol.iterator]:w};function M(e){if(typeof e!=`function`)throw Error();return e}function N(){return 0}function P(e){return function(){return e}}function F(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function I(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var R=(1+Math.sqrt(5))/2;function z(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?I(c,n,r,i,h?r+=m*g/h:a):L(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var B=(function e(t){function n(e,n,r,i,a){z(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(R);function V(){var e=B,t=!1,n=1,r=1,i=[0],a=N,o=N,s=N,c=N,l=N;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(F),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=M(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:P(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:P(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:P(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:P(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:P(+e),u):l},u}var H=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let t=e.d,n=e.y();return i.r({...t.treemap,...n.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{o.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){e.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function U(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t.h(U,`buildHierarchy`);var W=t.h((e,n)=>{s.t(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=G(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=U(r),a=t.h((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),G=t.h(e=>e.name?String(e.name):``,`getItemName`),K={parser:{yy:void 0},parse:t.h(async e=>{try{let n=await c.t(`treemap`,e);t.g.debug(`Treemap AST:`,n);let r=K.parser?.yy;if(!(r instanceof H))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);W(n,r)}catch(e){throw t.g.error(`Error parsing treemap:`,e),e}},`parse`)},q=10,J=10,Y=25,X={draw:t.h((i,s,c,u)=>{let d=u.db,f=d.getConfig(),p=f.padding??q,m=d.getDiagramTitle(),h=d.getRoot(),{themeVariables:g}=e.y();if(!h)return;let _=m?30:0,v=a.t(s),y=f.nodeWidth?f.nodeWidth*J:960,b=f.nodeHeight?f.nodeHeight*J:500,x=y,S=b+_;v.attr(`viewBox`,`0 0 ${x} ${S}`),e.c(v,S,x,f.useMaxWidth);let C;try{let e=f.valueFormat||`,`;if(e===`$0,0`)C=t.h(e=>`$`+r.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),i=n?n[0]:``;C=t.h(e=>`$`+r.t(`,`+i)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);C=t.h(e=>`$`+r.t(n||``)(e),`valueFormat`)}else C=r.t(e)}catch(e){t.g.error(`Error creating format function:`,e),C=r.t(`,`)}let w=n.t().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),E=n.t().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),D=n.t().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);m&&v.append(`text`).attr(`x`,x/2).attr(`y`,_/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(m);let O=v.append(`g`).attr(`transform`,`translate(0, ${_})`).attr(`class`,`treemapContainer`),k=T(h).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),A=V().size([y,b]).paddingTop(e=>e.children&&e.children.length>0?Y+J:0).paddingInner(p).paddingLeft(e=>e.children&&e.children.length>0?J:0).paddingRight(e=>e.children&&e.children.length>0?J:0).paddingBottom(e=>e.children&&e.children.length>0?J:0).round(!0)(k),j=A.descendants().filter(e=>e.children&&e.children.length>0),M=O.selectAll(`.treemapSection`).data(j).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,Y).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),M.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,Y),M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>w(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>E(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=o.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),M.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,Y/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t.p(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=f.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),f.showValues!==!1&&M.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,Y/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?C(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let N=A.leaves(),P=O.selectAll(`.treemapLeafGroup`).data(N).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`style`,e=>o.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`stroke-width`,3),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),P.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let n=t.p(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),f.showValues!==!1&&P.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.value?C(e.value):``).each(function(e){let n=t.p(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),l.t(v,f.diagramPadding??8,`flowchart`,f?.useMaxWidth||!1)},`draw`),getClasses:t.h(function(e,t){return t.db.getClasses()},`getClasses`)},Z={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},Q={parser:K,get db(){return new H},renderer:X,styles:t.h(({treemap:t}={})=>{let n=i.r(e.E(),e.y().themeVariables),r=i.r(Z,t),a=r.titleColor??n.titleColor,o=r.labelColor??n.textColor,s=r.valueColor??n.textColor;return`
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./ordinal-Civr0hZL.cjs`),r=require(`./defaultLocale-DtzyZW63.cjs`),i=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),a=require(`./chunk-426QAEUC-CqN26l3E.cjs`),o=require(`./chunk-X2U36JSP-CtXjVqek.cjs`),s=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),c=require(`./mermaid-parser.core-DHpvGOZR.cjs`),l=require(`./chunk-EDXVE4YY-1dwNWzc7.cjs`);function u(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function d(){return this.eachAfter(u)}function f(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function p(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function m(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function h(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function g(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function _(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function v(e){for(var t=this,n=y(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function y(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function b(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function x(){return Array.from(this)}function S(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function C(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*w(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function T(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=O)):t===void 0&&(t=D);for(var n=new j(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function E(){return T(this).eachBefore(k)}function D(e){return e.children}function O(e){return Array.isArray(e)?e[1]:null}function k(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=T.prototype={constructor:j,count:d,each:f,eachAfter:m,eachBefore:p,find:h,sum:g,sort:_,path:v,ancestors:b,descendants:x,leaves:S,links:C,copy:E,[Symbol.iterator]:w};function M(e){if(typeof e!=`function`)throw Error();return e}function N(){return 0}function P(e){return function(){return e}}function F(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function I(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var R=(1+Math.sqrt(5))/2;function z(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?I(c,n,r,i,h?r+=m*g/h:a):L(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var B=(function e(t){function n(e,n,r,i,a){z(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(R);function V(){var e=B,t=!1,n=1,r=1,i=[0],a=N,o=N,s=N,c=N,l=N;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(F),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=M(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:P(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:P(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:P(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:P(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:P(+e),u):l},u}var H=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let t=e.d,n=e.y();return i.r({...t.treemap,...n.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{o.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){e.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function U(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t.h(U,`buildHierarchy`);var W=t.h((e,n)=>{s.t(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=G(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=U(r),a=t.h((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),G=t.h(e=>e.name?String(e.name):``,`getItemName`),K={parser:{yy:void 0},parse:t.h(async e=>{try{let n=await c.t(`treemap`,e);t.g.debug(`Treemap AST:`,n);let r=K.parser?.yy;if(!(r instanceof H))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);W(n,r)}catch(e){throw t.g.error(`Error parsing treemap:`,e),e}},`parse`)},q=10,J=10,Y=25,X={draw:t.h((i,s,c,u)=>{let d=u.db,f=d.getConfig(),p=f.padding??q,m=d.getDiagramTitle(),h=d.getRoot(),{themeVariables:g}=e.y();if(!h)return;let _=m?30:0,v=a.t(s),y=f.nodeWidth?f.nodeWidth*J:960,b=f.nodeHeight?f.nodeHeight*J:500,x=y,S=b+_;v.attr(`viewBox`,`0 0 ${x} ${S}`),e.c(v,S,x,f.useMaxWidth);let C;try{let e=f.valueFormat||`,`;if(e===`$0,0`)C=t.h(e=>`$`+r.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),i=n?n[0]:``;C=t.h(e=>`$`+r.t(`,`+i)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);C=t.h(e=>`$`+r.t(n||``)(e),`valueFormat`)}else C=r.t(e)}catch(e){t.g.error(`Error creating format function:`,e),C=r.t(`,`)}let w=n.t().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),E=n.t().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),D=n.t().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);m&&v.append(`text`).attr(`x`,x/2).attr(`y`,_/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(m);let O=v.append(`g`).attr(`transform`,`translate(0, ${_})`).attr(`class`,`treemapContainer`),k=T(h).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),A=V().size([y,b]).paddingTop(e=>e.children&&e.children.length>0?Y+J:0).paddingInner(p).paddingLeft(e=>e.children&&e.children.length>0?J:0).paddingRight(e=>e.children&&e.children.length>0?J:0).paddingBottom(e=>e.children&&e.children.length>0?J:0).round(!0)(k),j=A.descendants().filter(e=>e.children&&e.children.length>0),M=O.selectAll(`.treemapSection`).data(j).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,Y).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),M.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,Y),M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>w(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>E(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=o.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),M.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,Y/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t.p(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=f.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),f.showValues!==!1&&M.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,Y/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?C(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let N=A.leaves(),P=O.selectAll(`.treemapLeafGroup`).data(N).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`style`,e=>o.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`stroke-width`,3),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),P.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let n=t.p(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),f.showValues!==!1&&P.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.value?C(e.value):``).each(function(e){let n=t.p(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),l.t(v,f.diagramPadding??8,`flowchart`,f?.useMaxWidth||!1)},`draw`),getClasses:t.h(function(e,t){return t.db.getClasses()},`getClasses`)},Z={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},Q={parser:K,get db(){return new H},renderer:X,styles:t.h(({treemap:t}={})=>{let n=i.r(e.E(),e.y().themeVariables),r=i.r(Z,t),a=r.titleColor??n.titleColor,o=r.labelColor??n.textColor,s=r.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${r.sectionStrokeColor};
4
4
  stroke-width: ${r.sectionStrokeWidth};
@@ -1,13 +1,13 @@
1
- import { B as e, C as t, E as n, V as r, W as i, _ as a, a as o, c as s, d as c, v as l, y as u } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { B as e, C as t, E as n, V as r, W as i, _ as a, a as o, c as s, d as c, v as l, y as u } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as d, h as f, p } from "./src-BQiFKP24.js";
3
3
  import { t as m } from "./ordinal-C-VoL0XF.js";
4
4
  import { t as h } from "./defaultLocale-Dcyuaxxg.js";
5
- import { r as g } from "./chunk-5PVQY5BW-C5U7sJAA.js";
6
- import { t as _ } from "./chunk-426QAEUC-JjFVHKYG.js";
7
- import { i as v, n as y } from "./chunk-X2U36JSP-CY7mJR8m.js";
5
+ import { r as g } from "./chunk-5PVQY5BW-Dn8n6moB.js";
6
+ import { t as _ } from "./chunk-426QAEUC-CDXJVpQr.js";
7
+ import { i as v, n as y } from "./chunk-X2U36JSP-VxRY65ea.js";
8
8
  import { t as b } from "./chunk-4BX2VUAB-BW54-JWg.js";
9
9
  import { t as x } from "./mermaid-parser.core-CERDf-UG.js";
10
- import { t as S } from "./chunk-EDXVE4YY-Bzf4FU3i.js";
10
+ import { t as S } from "./chunk-EDXVE4YY-CGNVB686.js";
11
11
  //#region node_modules/d3-hierarchy/src/hierarchy/count.js
12
12
  function C(e) {
13
13
  var t = 0, n = e.children, r = n && n.length;
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),r=require(`./chunk-426QAEUC-Df31vuwu.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},s={axes:[],curves:[],options:o},c=structuredClone(s),l=e.d.radar,u=t.h(()=>n.r({...l,...e.y().radar}),`getConfig`),d=t.h(()=>c.axes,`getAxes`),f=t.h(()=>c.curves,`getCurves`),p=t.h(()=>c.options,`getOptions`),m=t.h(e=>{c.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),h=t.h(e=>{c.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:g(e.entries)}))},`setCurves`),g=t.h(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=d();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),_={getAxes:d,getCurves:f,getOptions:p,setAxes:m,setCurves:h,setOptions:t.h(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});c.options={showLegend:t.showLegend?.value??o.showLegend,ticks:t.ticks?.value??o.ticks,max:t.max?.value??o.max,min:t.min?.value??o.min,graticule:t.graticule?.value??o.graticule}},`setOptions`),getConfig:u,clear:t.h(()=>{e.a(),c=structuredClone(s)},`clear`),setAccTitle:e.V,getAccTitle:e.v,setDiagramTitle:e.W,getDiagramTitle:e.C,getAccDescription:e._,setAccDescription:e.B},v=t.h(e=>{i.t(e,_);let{axes:t,curves:n,options:r}=e;_.setAxes(t),_.setCurves(n),_.setOptions(r)},`populate`),y={parse:t.h(async e=>{let n=await a.t(`radar`,e);t.g.debug(n),v(n)},`parse`)},b=t.h((e,t,n,i)=>{let a=i.db,o=a.getAxes(),s=a.getCurves(),c=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=x(r.t(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;S(d,o,m,c.ticks,c.graticule),C(d,o,m,l),w(d,o,s,p,f,c.graticule,l),D(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),x=t.h((t,n)=>{let r=n.width+n.marginLeft+n.marginRight,i=n.height+n.marginTop+n.marginBottom,a={x:n.marginLeft+n.width/2,y:n.marginTop+n.height/2};return e.c(t,i,r,n.useMaxWidth??!0),t.attr(`viewBox`,`0 0 ${r} ${i}`),t.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),S=t.h((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),C=t.h((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function w(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=T(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,E(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t.h(w,`drawCurves`);function T(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t.h(T,`relativeRadius`);function E(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t.h(E,`closedRoundCurve`);function D(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t.h(D,`drawLegend`);var O={draw:b},k=t.h((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},s={axes:[],curves:[],options:o},c=structuredClone(s),l=e.d.radar,u=t.h(()=>n.r({...l,...e.y().radar}),`getConfig`),d=t.h(()=>c.axes,`getAxes`),f=t.h(()=>c.curves,`getCurves`),p=t.h(()=>c.options,`getOptions`),m=t.h(e=>{c.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),h=t.h(e=>{c.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:g(e.entries)}))},`setCurves`),g=t.h(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=d();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),_={getAxes:d,getCurves:f,getOptions:p,setAxes:m,setCurves:h,setOptions:t.h(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});c.options={showLegend:t.showLegend?.value??o.showLegend,ticks:t.ticks?.value??o.ticks,max:t.max?.value??o.max,min:t.min?.value??o.min,graticule:t.graticule?.value??o.graticule}},`setOptions`),getConfig:u,clear:t.h(()=>{e.a(),c=structuredClone(s)},`clear`),setAccTitle:e.V,getAccTitle:e.v,setDiagramTitle:e.W,getDiagramTitle:e.C,getAccDescription:e._,setAccDescription:e.B},v=t.h(e=>{i.t(e,_);let{axes:t,curves:n,options:r}=e;_.setAxes(t),_.setCurves(n),_.setOptions(r)},`populate`),y={parse:t.h(async e=>{let n=await a.t(`radar`,e);t.g.debug(n),v(n)},`parse`)},b=t.h((e,t,n,i)=>{let a=i.db,o=a.getAxes(),s=a.getCurves(),c=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=x(r.t(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;S(d,o,m,c.ticks,c.graticule),C(d,o,m,l),w(d,o,s,p,f,c.graticule,l),D(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),x=t.h((t,n)=>{let r=n.width+n.marginLeft+n.marginRight,i=n.height+n.marginTop+n.marginBottom,a={x:n.marginLeft+n.width/2,y:n.marginTop+n.height/2};return e.c(t,i,r,n.useMaxWidth??!0),t.attr(`viewBox`,`0 0 ${r} ${i}`),t.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),S=t.h((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),C=t.h((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function w(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=T(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,E(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t.h(w,`drawCurves`);function T(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t.h(T,`relativeRadius`);function E(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t.h(E,`closedRoundCurve`);function D(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t.h(D,`drawLegend`);var O={draw:b},k=t.h((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${i};
4
4
  fill: ${i};
@@ -1,7 +1,7 @@
1
- import { B as e, C as t, E as n, V as r, W as i, _ as a, a as o, c as s, d as c, v as l, y as u } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { B as e, C as t, E as n, V as r, W as i, _ as a, a as o, c as s, d as c, v as l, y as u } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as d, h as f } from "./src-BQiFKP24.js";
3
- import { r as p } from "./chunk-5PVQY5BW-C5U7sJAA.js";
4
- import { t as m } from "./chunk-426QAEUC-JjFVHKYG.js";
3
+ import { r as p } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { t as m } from "./chunk-426QAEUC-CDXJVpQr.js";
5
5
  import { t as h } from "./chunk-4BX2VUAB-BW54-JWg.js";
6
6
  import { t as g } from "./mermaid-parser.core-CERDf-UG.js";
7
7
  //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.mjs
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),r=require(`./chunk-426QAEUC-Df31vuwu.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=e.d.packet,s=class{constructor(){this.packet=[],this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`PacketDB`)}getConfig(){let t=n.r({...o,...e.y().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){e.a(),this.packet=[]}},c=1e4,l=t.h((e,n)=>{i.t(e,n);let r=-1,a=[],o=1,{bitsPerRow:s}=n.getConfig();for(let{start:i,end:l,bits:d,label:f}of e.blocks){if(i!==void 0&&l!==void 0&&l<i)throw Error(`Packet block ${i} - ${l} is invalid. End must be greater than start.`);if(i??=r+1,i!==r+1)throw Error(`Packet block ${i} - ${l??i} is not contiguous. It should start from ${r+1}.`);if(d===0)throw Error(`Packet block ${i} is invalid. Cannot have a zero bit field.`);for(l??=i+(d??1)-1,d??=l-i+1,r=l,t.g.debug(`Packet block ${i} - ${r} with label ${f}`);a.length<=s+1&&n.getPacket().length<c;){let[e,t]=u({start:i,end:l,bits:d,label:f},o,s);if(a.push(e),e.end+1===o*s&&(n.pushWord(a),a=[],o++),!t)break;({start:i,end:l,bits:d,label:f}=t)}}n.pushWord(a)},`populate`),u=t.h((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),d={parser:{yy:void 0},parse:t.h(async e=>{let n=await a.t(`packet`,e),r=d.parser?.yy;if(!(r instanceof s))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);t.g.debug(n),l(n,r)},`parse`)},f=t.h((t,n,i,a)=>{let o=a.db,s=o.getConfig(),{rowHeight:c,paddingY:l,bitWidth:u,bitsPerRow:d}=s,f=o.getPacket(),m=o.getDiagramTitle(),h=c+l,g=h*(f.length+1)-(m?0:c),_=u*d+2,v=r.t(n);v.attr(`viewBox`,`0 0 ${_} ${g}`),e.c(v,g,_,s.useMaxWidth);for(let[e,t]of f.entries())p(v,t,e,s);v.append(`text`).text(m).attr(`x`,_/2).attr(`y`,g-h/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),p=t.h((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),m={draw:f},h={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},g={parser:d,get db(){return new s},renderer:m,styles:t.h(({packet:e}={})=>{let t=n.r(h,e);return`
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=e.d.packet,s=class{constructor(){this.packet=[],this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`PacketDB`)}getConfig(){let t=n.r({...o,...e.y().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){e.a(),this.packet=[]}},c=1e4,l=t.h((e,n)=>{i.t(e,n);let r=-1,a=[],o=1,{bitsPerRow:s}=n.getConfig();for(let{start:i,end:l,bits:d,label:f}of e.blocks){if(i!==void 0&&l!==void 0&&l<i)throw Error(`Packet block ${i} - ${l} is invalid. End must be greater than start.`);if(i??=r+1,i!==r+1)throw Error(`Packet block ${i} - ${l??i} is not contiguous. It should start from ${r+1}.`);if(d===0)throw Error(`Packet block ${i} is invalid. Cannot have a zero bit field.`);for(l??=i+(d??1)-1,d??=l-i+1,r=l,t.g.debug(`Packet block ${i} - ${r} with label ${f}`);a.length<=s+1&&n.getPacket().length<c;){let[e,t]=u({start:i,end:l,bits:d,label:f},o,s);if(a.push(e),e.end+1===o*s&&(n.pushWord(a),a=[],o++),!t)break;({start:i,end:l,bits:d,label:f}=t)}}n.pushWord(a)},`populate`),u=t.h((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),d={parser:{yy:void 0},parse:t.h(async e=>{let n=await a.t(`packet`,e),r=d.parser?.yy;if(!(r instanceof s))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);t.g.debug(n),l(n,r)},`parse`)},f=t.h((t,n,i,a)=>{let o=a.db,s=o.getConfig(),{rowHeight:c,paddingY:l,bitWidth:u,bitsPerRow:d}=s,f=o.getPacket(),m=o.getDiagramTitle(),h=c+l,g=h*(f.length+1)-(m?0:c),_=u*d+2,v=r.t(n);v.attr(`viewBox`,`0 0 ${_} ${g}`),e.c(v,g,_,s.useMaxWidth);for(let[e,t]of f.entries())p(v,t,e,s);v.append(`text`).text(m).attr(`x`,_/2).attr(`y`,g-h/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),p=t.h((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),m={draw:f},h={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},g={parser:d,get db(){return new s},renderer:m,styles:t.h(({packet:e}={})=>{let t=n.r(h,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,7 +1,7 @@
1
- import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as u, h as d } from "./src-BQiFKP24.js";
3
- import { r as f } from "./chunk-5PVQY5BW-C5U7sJAA.js";
4
- import { t as p } from "./chunk-426QAEUC-JjFVHKYG.js";
3
+ import { r as f } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { t as p } from "./chunk-426QAEUC-CDXJVpQr.js";
5
5
  import { t as m } from "./chunk-4BX2VUAB-BW54-JWg.js";
6
6
  import { t as h } from "./mermaid-parser.core-CERDf-UG.js";
7
7
  //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.mjs
@@ -1,16 +1,16 @@
1
- import { B as e, C as t, V as n, W as r, _ as i, a, b as o, tt as s, v as c } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { B as e, C as t, V as n, W as r, _ as i, a, b as o, tt as s, v as c } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as l, h as u, m as d, p as f } from "./src-BQiFKP24.js";
3
- import { t as p } from "./channel-BqNr2cYO.js";
4
- import { h as m, s as h } from "./chunk-5PVQY5BW-C5U7sJAA.js";
3
+ import { t as p } from "./channel-CRWct3-i.js";
4
+ import { h as m, s as h } from "./chunk-5PVQY5BW-Dn8n6moB.js";
5
5
  import "./chunk-BSJP7CBP-oNTXVRA7.js";
6
- import "./chunk-ZZ45TVLE-CIYrdg-O.js";
7
- import "./chunk-X2U36JSP-CY7mJR8m.js";
8
- import "./chunk-U2HBQHQK-BZ3YFMXB.js";
9
- import "./chunk-5FUZZQ4R-2kdZJWq2.js";
10
- import "./chunk-ENJZ2VHE-BluGQPyl.js";
11
- import { r as g, t as _ } from "./chunk-336JU56O-xKPgkG3O.js";
6
+ import "./chunk-ZZ45TVLE-X2jolXSO.js";
7
+ import "./chunk-X2U36JSP-VxRY65ea.js";
8
+ import "./chunk-U2HBQHQK-Ceyeq0IV.js";
9
+ import "./chunk-5FUZZQ4R-D3C0F0Tr.js";
10
+ import "./chunk-ENJZ2VHE-CZ7BvL2h.js";
11
+ import { r as g, t as _ } from "./chunk-336JU56O-DkZvWJVe.js";
12
12
  import { t as v } from "./chunk-55IACEB6-Bu3k0Yz5.js";
13
- import { t as y } from "./chunk-EDXVE4YY-Bzf4FU3i.js";
13
+ import { t as y } from "./chunk-EDXVE4YY-CGNVB686.js";
14
14
  //#region node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.mjs
15
15
  var b = (function() {
16
16
  var e = /* @__PURE__ */ u(function(e, t, n, r) {
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./channel-BY9Lkyz7.cjs`),r=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`);require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`),require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`),require(`./chunk-5FUZZQ4R-D_vnCbAb.cjs`),require(`./chunk-ENJZ2VHE-CwgVASaU.cjs`);const i=require(`./chunk-336JU56O-CuXRn1VH.cjs`),a=require(`./chunk-55IACEB6-DPatBzu7.cjs`),o=require(`./chunk-EDXVE4YY-BZsJORf8.cjs`);var s=(function(){var e=t.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,23],c=[1,24],l=[1,25],u=[1,26],d=[1,27],f=[1,19],p=[1,28],m=[1,29],h=[1,20],g=[1,18],_=[1,21],v=[1,22],y=[1,36],b=[1,37],x=[1,38],S=[1,39],C=[1,40],w=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],T=[1,45],E=[1,46],D=[1,55],O=[40,48,50,51,52,70,71],k=[1,66],A=[1,64],j=[1,61],M=[1,65],N=[1,67],P=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],F=[65,66,67,68,69],I=[1,84],L=[1,83],R=[1,81],z=[1,82],B=[6,10,42,47],V=[6,10,13,41,42,47,48,49],H=[1,92],U=[1,91],W=[1,90],G=[19,58],K=[1,101],q=[1,100],J=[19,58,60,62],Y={trace:t.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,13:`COLON`,15:`STYLE_SEPARATOR`,17:`BLOCK_START`,19:`BLOCK_STOP`,20:`SQS`,21:`SQE`,22:`title`,23:`title_value`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`direction_tb`,34:`direction_bt`,35:`direction_rl`,36:`direction_lr`,37:`CLASSDEF`,40:`UNICODE_TEXT`,41:`STYLE_TEXT`,42:`COMMA`,43:`CLASS`,44:`STYLE`,47:`SEMI`,48:`NUM`,49:`BRKT`,50:`ENTITY_NAME`,51:`DECIMAL_NUM`,52:`ENTITY_ONE`,58:`ATTRIBUTE_WORD`,60:`,`,61:`ATTRIBUTE_KEY`,62:`COMMENT`,65:`ZERO_OR_ONE`,66:`ZERO_OR_MORE`,67:`ONE_OR_MORE`,68:`ONLY_ONE`,69:`MD_PARENT`,70:`NON_IDENTIFYING`,71:`IDENTIFYING`,72:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]);break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]);break;case 11:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]);break;case 12:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 13:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]);break;case 16:r.addEntity(a[s]);break;case 17:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]);break;case 18:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]);break;case 19:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]);break;case 20:r.addEntity(a[s-5],a[s-3]);break;case 21:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]);break;case 22:r.addEntity(a[s-3],a[s-1]);break;case 23:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 24:case 25:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection(`TB`);break;case 33:r.setDirection(`BT`);break;case 34:r.setDirection(`RL`);break;case 35:r.setDirection(`LR`);break;case 36:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 37:case 38:case 59:case 67:this.$=[a[s]];break;case 39:case 40:this.$=a[s-2].concat([a[s]]);break;case 41:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 42:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 43:this.$=[a[s]];break;case 44:a[s-2].push(a[s]),this.$=a[s-2];break;case 46:this.$=a[s-1]+a[s];break;case 54:case 79:case 80:this.$=a[s].replace(/"/g,``);break;case 55:case 56:case 57:case 58:case 81:this.$=a[s];break;case 60:a[s].push(a[s-1]),this.$=a[s];break;case 61:this.$={type:a[s-1],name:a[s]};break;case 62:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 63:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 64:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 65:case 66:case 69:this.$=a[s];break;case 68:a[s-2].push(a[s]),this.$=a[s-2];break;case 70:this.$=a[s].replace(/"/g,``);break;case 71:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:30,11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,5]),e(n,[2,6]),e(n,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:y,66:b,67:x,68:S,69:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(n,[2,27]),e(n,[2,28]),e(n,[2,29]),e(n,[2,30]),e(n,[2,31]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(n,[2,32]),e(n,[2,33]),e(n,[2,34]),e(n,[2,35]),{16:44,40:T,41:E},{16:47,40:T,41:E},{16:48,40:T,41:E},e(n,[2,4]),{11:49,40:f,48:h,50:g,51:_,52:v},{16:50,40:T,41:E},{18:51,19:[1,52],53:53,54:54,58:D},{11:56,40:f,48:h,50:g,51:_,52:v},{64:57,70:[1,58],71:[1,59]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(O,[2,76]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),{13:k,38:60,41:A,42:j,45:62,46:63,48:M,49:N},e(P,[2,37]),e(P,[2,38]),{16:68,40:T,41:E,42:j},{13:k,38:69,41:A,42:j,45:62,46:63,48:M,49:N},{13:[1,70],15:[1,71]},e(n,[2,17],{63:35,12:72,17:[1,73],42:j,65:y,66:b,67:x,68:S,69:C}),{19:[1,74]},e(n,[2,14]),{18:75,19:[2,59],53:53,54:54,58:D},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:y,66:b,67:x,68:S,69:C},e(F,[2,77]),e(F,[2,78]),{6:I,10:L,39:80,42:R,47:z},{40:[1,85],41:[1,86]},e(B,[2,43],{46:87,13:k,41:A,48:M,49:N}),e(V,[2,45]),e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(n,[2,41],{42:j}),{6:I,10:L,39:88,42:R,47:z},{14:89,40:H,50:U,72:W},{16:93,40:T,41:E},{11:94,40:f,48:h,50:g,51:_,52:v},{18:95,19:[1,96],53:53,54:54,58:D},e(n,[2,12]),{19:[2,60]},e(G,[2,61],{56:97,57:98,59:99,61:K,62:q}),e([19,58,61,62],[2,66]),e(n,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(n,[2,36]),{13:k,41:A,45:104,46:63,48:M,49:N},e(n,[2,47]),e(n,[2,48]),e(n,[2,49]),e(P,[2,39]),e(P,[2,40]),e(V,[2,46]),e(n,[2,42]),e(n,[2,8]),e(n,[2,79]),e(n,[2,80]),e(n,[2,81]),{13:[1,105],42:j},{13:[1,107],15:[1,106]},{19:[1,108]},e(n,[2,15]),e(G,[2,62],{57:109,60:[1,110],62:q}),e(G,[2,63]),e(J,[2,67]),e(G,[2,70]),e(J,[2,69]),{18:111,19:[1,112],53:53,54:54,58:D},{16:113,40:T,41:E},e(B,[2,44],{46:87,13:k,41:A,48:M,49:N}),{14:114,40:H,50:U,72:W},{16:115,40:T,41:E},{14:116,40:H,50:U,72:W},e(n,[2,13]),e(G,[2,64]),{59:117,61:K},{19:[1,118]},e(n,[2,20]),e(n,[2,23],{17:[1,119],42:j}),e(n,[2,11]),{13:[1,120],42:j},e(n,[2,10]),e(J,[2,68]),e(n,[2,18]),{18:121,19:[1,122],53:53,54:54,58:D},{14:123,40:H,50:U,72:W},{19:[1,124]},e(n,[2,21]),e(n,[2,9]),e(n,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./channel-DkTvdPpU.cjs`),r=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`);require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`),require(`./chunk-X2U36JSP-CtXjVqek.cjs`),require(`./chunk-U2HBQHQK-CJ77uizk.cjs`),require(`./chunk-5FUZZQ4R-Cj5KbGC7.cjs`),require(`./chunk-ENJZ2VHE-BAWfx0nA.cjs`);const i=require(`./chunk-336JU56O-DQhIGd25.cjs`),a=require(`./chunk-55IACEB6-DPatBzu7.cjs`),o=require(`./chunk-EDXVE4YY-1dwNWzc7.cjs`);var s=(function(){var e=t.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,23],c=[1,24],l=[1,25],u=[1,26],d=[1,27],f=[1,19],p=[1,28],m=[1,29],h=[1,20],g=[1,18],_=[1,21],v=[1,22],y=[1,36],b=[1,37],x=[1,38],S=[1,39],C=[1,40],w=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],T=[1,45],E=[1,46],D=[1,55],O=[40,48,50,51,52,70,71],k=[1,66],A=[1,64],j=[1,61],M=[1,65],N=[1,67],P=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],F=[65,66,67,68,69],I=[1,84],L=[1,83],R=[1,81],z=[1,82],B=[6,10,42,47],V=[6,10,13,41,42,47,48,49],H=[1,92],U=[1,91],W=[1,90],G=[19,58],K=[1,101],q=[1,100],J=[19,58,60,62],Y={trace:t.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,13:`COLON`,15:`STYLE_SEPARATOR`,17:`BLOCK_START`,19:`BLOCK_STOP`,20:`SQS`,21:`SQE`,22:`title`,23:`title_value`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`direction_tb`,34:`direction_bt`,35:`direction_rl`,36:`direction_lr`,37:`CLASSDEF`,40:`UNICODE_TEXT`,41:`STYLE_TEXT`,42:`COMMA`,43:`CLASS`,44:`STYLE`,47:`SEMI`,48:`NUM`,49:`BRKT`,50:`ENTITY_NAME`,51:`DECIMAL_NUM`,52:`ENTITY_ONE`,58:`ATTRIBUTE_WORD`,60:`,`,61:`ATTRIBUTE_KEY`,62:`COMMENT`,65:`ZERO_OR_ONE`,66:`ZERO_OR_MORE`,67:`ONE_OR_MORE`,68:`ONLY_ONE`,69:`MD_PARENT`,70:`NON_IDENTIFYING`,71:`IDENTIFYING`,72:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]);break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]);break;case 11:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]);break;case 12:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 13:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]);break;case 16:r.addEntity(a[s]);break;case 17:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]);break;case 18:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]);break;case 19:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]);break;case 20:r.addEntity(a[s-5],a[s-3]);break;case 21:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]);break;case 22:r.addEntity(a[s-3],a[s-1]);break;case 23:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 24:case 25:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection(`TB`);break;case 33:r.setDirection(`BT`);break;case 34:r.setDirection(`RL`);break;case 35:r.setDirection(`LR`);break;case 36:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 37:case 38:case 59:case 67:this.$=[a[s]];break;case 39:case 40:this.$=a[s-2].concat([a[s]]);break;case 41:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 42:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 43:this.$=[a[s]];break;case 44:a[s-2].push(a[s]),this.$=a[s-2];break;case 46:this.$=a[s-1]+a[s];break;case 54:case 79:case 80:this.$=a[s].replace(/"/g,``);break;case 55:case 56:case 57:case 58:case 81:this.$=a[s];break;case 60:a[s].push(a[s-1]),this.$=a[s];break;case 61:this.$={type:a[s-1],name:a[s]};break;case 62:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 63:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 64:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 65:case 66:case 69:this.$=a[s];break;case 68:a[s-2].push(a[s]),this.$=a[s-2];break;case 70:this.$=a[s].replace(/"/g,``);break;case 71:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:30,11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,5]),e(n,[2,6]),e(n,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:y,66:b,67:x,68:S,69:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(n,[2,27]),e(n,[2,28]),e(n,[2,29]),e(n,[2,30]),e(n,[2,31]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(n,[2,32]),e(n,[2,33]),e(n,[2,34]),e(n,[2,35]),{16:44,40:T,41:E},{16:47,40:T,41:E},{16:48,40:T,41:E},e(n,[2,4]),{11:49,40:f,48:h,50:g,51:_,52:v},{16:50,40:T,41:E},{18:51,19:[1,52],53:53,54:54,58:D},{11:56,40:f,48:h,50:g,51:_,52:v},{64:57,70:[1,58],71:[1,59]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(O,[2,76]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),{13:k,38:60,41:A,42:j,45:62,46:63,48:M,49:N},e(P,[2,37]),e(P,[2,38]),{16:68,40:T,41:E,42:j},{13:k,38:69,41:A,42:j,45:62,46:63,48:M,49:N},{13:[1,70],15:[1,71]},e(n,[2,17],{63:35,12:72,17:[1,73],42:j,65:y,66:b,67:x,68:S,69:C}),{19:[1,74]},e(n,[2,14]),{18:75,19:[2,59],53:53,54:54,58:D},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:y,66:b,67:x,68:S,69:C},e(F,[2,77]),e(F,[2,78]),{6:I,10:L,39:80,42:R,47:z},{40:[1,85],41:[1,86]},e(B,[2,43],{46:87,13:k,41:A,48:M,49:N}),e(V,[2,45]),e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(n,[2,41],{42:j}),{6:I,10:L,39:88,42:R,47:z},{14:89,40:H,50:U,72:W},{16:93,40:T,41:E},{11:94,40:f,48:h,50:g,51:_,52:v},{18:95,19:[1,96],53:53,54:54,58:D},e(n,[2,12]),{19:[2,60]},e(G,[2,61],{56:97,57:98,59:99,61:K,62:q}),e([19,58,61,62],[2,66]),e(n,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(n,[2,36]),{13:k,41:A,45:104,46:63,48:M,49:N},e(n,[2,47]),e(n,[2,48]),e(n,[2,49]),e(P,[2,39]),e(P,[2,40]),e(V,[2,46]),e(n,[2,42]),e(n,[2,8]),e(n,[2,79]),e(n,[2,80]),e(n,[2,81]),{13:[1,105],42:j},{13:[1,107],15:[1,106]},{19:[1,108]},e(n,[2,15]),e(G,[2,62],{57:109,60:[1,110],62:q}),e(G,[2,63]),e(J,[2,67]),e(G,[2,70]),e(J,[2,69]),{18:111,19:[1,112],53:53,54:54,58:D},{16:113,40:T,41:E},e(B,[2,44],{46:87,13:k,41:A,48:M,49:N}),{14:114,40:H,50:U,72:W},{16:115,40:T,41:E},{14:116,40:H,50:U,72:W},e(n,[2,13]),e(G,[2,64]),{59:117,61:K},{19:[1,118]},e(n,[2,20]),e(n,[2,23],{17:[1,119],42:j}),e(n,[2,11]),{13:[1,120],42:j},e(n,[2,10]),e(J,[2,68]),e(n,[2,18]),{18:121,19:[1,122],53:53,54:54,58:D},{14:123,40:H,50:U,72:W},{19:[1,124]},e(n,[2,21]),e(n,[2,9]),e(n,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Y.lexer=(function(){return{EOF:1,parseError:t.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.h(function(){return this._more=!0,this},`more`),reject:t.h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,19 +1,19 @@
1
- import { B as e, C as t, U as n, V as r, W as i, _ as a, a as o, b as s, it as c, s as l, tt as u, u as d, v as f } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { B as e, C as t, U as n, V as r, W as i, _ as a, a as o, b as s, it as c, s as l, tt as u, u as d, v as f } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as p, h as m, p as h } from "./src-BQiFKP24.js";
3
- import { t as g } from "./channel-BqNr2cYO.js";
4
- import { h as _, s as v } from "./chunk-5PVQY5BW-C5U7sJAA.js";
3
+ import { t as g } from "./channel-CRWct3-i.js";
4
+ import { h as _, s as v } from "./chunk-5PVQY5BW-Dn8n6moB.js";
5
5
  import { n as ee, t as te } from "./chunk-XPW4576I-BcWkx-AL.js";
6
6
  import "./chunk-BSJP7CBP-oNTXVRA7.js";
7
- import "./chunk-ZZ45TVLE-CIYrdg-O.js";
8
- import "./chunk-X2U36JSP-CY7mJR8m.js";
9
- import "./chunk-U2HBQHQK-BZ3YFMXB.js";
10
- import { o as ne } from "./chunk-5FUZZQ4R-2kdZJWq2.js";
11
- import "./chunk-ENJZ2VHE-BluGQPyl.js";
12
- import { r as y, t as b } from "./chunk-336JU56O-xKPgkG3O.js";
7
+ import "./chunk-ZZ45TVLE-X2jolXSO.js";
8
+ import "./chunk-X2U36JSP-VxRY65ea.js";
9
+ import "./chunk-U2HBQHQK-Ceyeq0IV.js";
10
+ import { o as ne } from "./chunk-5FUZZQ4R-D3C0F0Tr.js";
11
+ import "./chunk-ENJZ2VHE-CZ7BvL2h.js";
12
+ import { r as y, t as b } from "./chunk-336JU56O-DkZvWJVe.js";
13
13
  import { t as x } from "./chunk-FMBD7UC4-RRSc9jqt.js";
14
- import { t as S } from "./chunk-YZCP3GAM-9K9WNdyN.js";
14
+ import { t as S } from "./chunk-YZCP3GAM-D6P3SWmL.js";
15
15
  import { t as C } from "./chunk-55IACEB6-Bu3k0Yz5.js";
16
- import { t as w } from "./chunk-EDXVE4YY-Bzf4FU3i.js";
16
+ import { t as w } from "./chunk-EDXVE4YY-CGNVB686.js";
17
17
  //#region node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.mjs
18
18
  var T = "flowchart-", E = class {
19
19
  constructor() {
@@ -1,4 +1,4 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./channel-BY9Lkyz7.cjs`),r=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),i=require(`./chunk-XPW4576I-D8Pp6a3j.cjs`);require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`),require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`);const a=require(`./chunk-5FUZZQ4R-D_vnCbAb.cjs`);require(`./chunk-ENJZ2VHE-CwgVASaU.cjs`);const o=require(`./chunk-336JU56O-CuXRn1VH.cjs`),s=require(`./chunk-FMBD7UC4-CS9_r76V.cjs`),c=require(`./chunk-YZCP3GAM-BmaAafMm.cjs`),l=require(`./chunk-55IACEB6-DPatBzu7.cjs`),u=require(`./chunk-EDXVE4YY-BZsJORf8.cjs`);var d=`flowchart-`,f=class{constructor(){this.vertexCounter=0,this.config=e.b(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=e.V,this.setAccDescription=e.B,this.setDiagramTitle=e.W,this.getAccTitle=e.v,this.getAccDescription=e._,this.getDiagramTitle=e.C,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{t.h(this,`FlowDB`)}sanitizeText(t){return e.s.sanitizeText(t,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(n,r,o,s,c,l,u={},f){if(!n||n.trim().length===0)return;let p;if(f!==void 0){let e;e=f.includes(`
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./channel-DkTvdPpU.cjs`),r=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),i=require(`./chunk-XPW4576I-D8Pp6a3j.cjs`);require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`),require(`./chunk-X2U36JSP-CtXjVqek.cjs`),require(`./chunk-U2HBQHQK-CJ77uizk.cjs`);const a=require(`./chunk-5FUZZQ4R-Cj5KbGC7.cjs`);require(`./chunk-ENJZ2VHE-BAWfx0nA.cjs`);const o=require(`./chunk-336JU56O-DQhIGd25.cjs`),s=require(`./chunk-FMBD7UC4-CS9_r76V.cjs`),c=require(`./chunk-YZCP3GAM-qxaNo0r8.cjs`),l=require(`./chunk-55IACEB6-DPatBzu7.cjs`),u=require(`./chunk-EDXVE4YY-1dwNWzc7.cjs`);var d=`flowchart-`,f=class{constructor(){this.vertexCounter=0,this.config=e.b(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=e.V,this.setAccDescription=e.B,this.setDiagramTitle=e.W,this.getAccTitle=e.v,this.getAccDescription=e._,this.getDiagramTitle=e.C,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{t.h(this,`FlowDB`)}sanitizeText(t){return e.s.sanitizeText(t,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(n,r,o,s,c,l,u={},f){if(!n||n.trim().length===0)return;let p;if(f!==void 0){let e;e=f.includes(`
2
2
  `)?f+`
3
3
  `:`{
4
4
  `+f+`