@pb33f/cowboy-components 0.13.1 → 0.14.1

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 (227) hide show
  1. package/dist/{_baseUniq-CL3reOBl.js → _baseUniq-CcG8uZM_.js} +74 -74
  2. package/dist/{_baseUniq-CacIA2LC.cjs → _baseUniq-Co8RB71y.cjs} +1 -1
  3. package/dist/arc-CZ9OyfV-.js +84 -0
  4. package/dist/arc-D5LG9aVl.cjs +1 -0
  5. package/dist/{architecture-YZFGNWBL-_gv9FazX.cjs → architecture-YZFGNWBL-CuyaOcgJ.cjs} +1 -1
  6. package/dist/{architecture-YZFGNWBL-fFrwoJ4k.js → architecture-YZFGNWBL-ne59NWt0.js} +1 -1
  7. package/dist/{architectureDiagram-Q4EWVU46-DtZlfd53.cjs → architectureDiagram-Q4EWVU46-CxErVIKm.cjs} +1 -1
  8. package/dist/{architectureDiagram-Q4EWVU46-B3fgqlMK.js → architectureDiagram-Q4EWVU46-ibaXfmmT.js} +4 -4
  9. package/dist/{blockDiagram-DXYQGD6D-CX0JRAKx.js → blockDiagram-DXYQGD6D-D5vqojm8.js} +18 -17
  10. package/dist/blockDiagram-DXYQGD6D-iFIpSW7Y.cjs +132 -0
  11. package/dist/{c4Diagram-AHTNJAMY-DLeN9ZAF.cjs → c4Diagram-AHTNJAMY-Av_INk2v.cjs} +1 -1
  12. package/dist/{c4Diagram-AHTNJAMY-BfMyY6ox.js → c4Diagram-AHTNJAMY-B7t5p6jA.js} +2 -2
  13. package/dist/change-list-item-4xBSo3-U.cjs +4586 -0
  14. package/dist/change-list-item-Bu_mPv-k.js +19108 -0
  15. package/dist/channel-BvR-WhLo.js +5 -0
  16. package/dist/{channel-IzC5TEAD.cjs → channel-DO31wbvk.cjs} +1 -1
  17. package/dist/{chunk-4BX2VUAB-CeMFPKaY.cjs → chunk-4BX2VUAB-DHdTrTTD.cjs} +1 -1
  18. package/dist/{chunk-4BX2VUAB-Bn2rH23T.js → chunk-4BX2VUAB-DQ4rU_AZ.js} +1 -1
  19. package/dist/{chunk-4TB4RGXK-C5Pdp8au.js → chunk-4TB4RGXK-BK_uuzSP.js} +5 -5
  20. package/dist/{chunk-4TB4RGXK-BbYCdNI3.cjs → chunk-4TB4RGXK-BlskfrH8.cjs} +1 -1
  21. package/dist/{chunk-55IACEB6-DdI_-Q_K.js → chunk-55IACEB6-BauZDeFH.js} +1 -1
  22. package/dist/{chunk-55IACEB6-DX9DtTQS.cjs → chunk-55IACEB6-CRJ5yCrP.cjs} +1 -1
  23. package/dist/{chunk-EDXVE4YY-nccXma-D.cjs → chunk-EDXVE4YY-BrlRuHp3.cjs} +1 -1
  24. package/dist/{chunk-EDXVE4YY-CCku7m5j.js → chunk-EDXVE4YY-DPpXfrr8.js} +1 -1
  25. package/dist/{chunk-FMBD7UC4-Bt5qtKsR.cjs → chunk-FMBD7UC4-0x38b8wg.cjs} +1 -1
  26. package/dist/{chunk-FMBD7UC4-BG1WV71B.js → chunk-FMBD7UC4-CtyzUnzx.js} +1 -1
  27. package/dist/{chunk-OYMX7WX6-DTbRX5BF.cjs → chunk-OYMX7WX6-DU4Zqa7r.cjs} +1 -1
  28. package/dist/{chunk-OYMX7WX6-Dj8r6q8i.js → chunk-OYMX7WX6-U53KZXxw.js} +35 -35
  29. package/dist/{chunk-QZHKN3VN-LZahlHwm.js → chunk-QZHKN3VN-BhntY1rB.js} +1 -1
  30. package/dist/{chunk-QZHKN3VN-v9FRBMwC.cjs → chunk-QZHKN3VN-Dyhr8mWm.cjs} +1 -1
  31. package/dist/{chunk-YZCP3GAM-BfcbLjwl.js → chunk-YZCP3GAM--UtgfYoK.js} +1 -1
  32. package/dist/{chunk-YZCP3GAM-DJNk9cax.cjs → chunk-YZCP3GAM-B_2rYHHe.cjs} +1 -1
  33. package/dist/{classDiagram-v2-HSJHXN6E-BHEetvl6.js → classDiagram-6PBFFD2Q-DX5nDbg5.js} +2 -2
  34. package/dist/{classDiagram-6PBFFD2Q-DnanA8bA.cjs → classDiagram-6PBFFD2Q-w916JDya.cjs} +1 -1
  35. package/dist/{classDiagram-6PBFFD2Q-BHEetvl6.js → classDiagram-v2-HSJHXN6E-DX5nDbg5.js} +2 -2
  36. package/dist/{classDiagram-v2-HSJHXN6E-DnanA8bA.cjs → classDiagram-v2-HSJHXN6E-w916JDya.cjs} +1 -1
  37. package/dist/{clone-C3LRmiE8.js → clone-DFz4YXr3.js} +1 -1
  38. package/dist/clone-D_c-FYGd.cjs +1 -0
  39. package/dist/components/diff-viewer/diff-viewer.js +5 -36
  40. package/dist/components/diff-viewer/line-renderer.d.ts +15 -0
  41. package/dist/components/diff-viewer/line-renderer.js +49 -0
  42. package/dist/components/footer/footer.d.ts +3 -0
  43. package/dist/components/footer/footer.js +10 -4
  44. package/dist/components/logo-wall/logos/apache.svg.d.ts +2 -0
  45. package/dist/components/logo-wall/logos/apache.svg.js +100 -0
  46. package/dist/components/logo-wall/logos/apideck.svg.d.ts +2 -0
  47. package/dist/components/logo-wall/logos/apideck.svg.js +14 -0
  48. package/dist/components/logo-wall/logos/apigee.svg.d.ts +2 -0
  49. package/dist/components/logo-wall/logos/apigee.svg.js +16 -0
  50. package/dist/components/logo-wall/logos/bump.svg.d.ts +2 -0
  51. package/dist/components/logo-wall/logos/bump.svg.js +14 -0
  52. package/dist/components/logo-wall/logos/bytebase.svg.d.ts +2 -0
  53. package/dist/components/logo-wall/logos/bytebase.svg.js +11 -0
  54. package/dist/components/logo-wall/logos/chainlink.svg.d.ts +2 -0
  55. package/dist/components/logo-wall/logos/chainlink.svg.js +18 -0
  56. package/dist/components/logo-wall/logos/cisco.svg.d.ts +2 -0
  57. package/dist/components/logo-wall/logos/cisco.svg.js +14 -0
  58. package/dist/components/logo-wall/logos/elastic.svg.d.ts +2 -0
  59. package/dist/components/logo-wall/logos/elastic.svg.js +14 -0
  60. package/dist/components/logo-wall/logos/google.svg.d.ts +2 -0
  61. package/dist/components/logo-wall/logos/google.svg.js +12 -0
  62. package/dist/components/logo-wall/logos/grafana.svg.d.ts +2 -0
  63. package/dist/components/logo-wall/logos/grafana.svg.js +14 -0
  64. package/dist/components/logo-wall/logos/hashicorp.svg.d.ts +2 -0
  65. package/dist/components/logo-wall/logos/hashicorp.svg.js +18 -0
  66. package/dist/components/logo-wall/logos/hasura.svg.d.ts +2 -0
  67. package/dist/components/logo-wall/logos/hasura.svg.js +14 -0
  68. package/dist/components/logo-wall/logos/jpmorgan.svg.d.ts +2 -0
  69. package/dist/components/logo-wall/logos/jpmorgan.svg.js +22 -0
  70. package/dist/components/logo-wall/logos/kong.svg.d.ts +2 -0
  71. package/dist/components/logo-wall/logos/kong.svg.js +13 -0
  72. package/dist/components/logo-wall/logos/mongodb.svg.d.ts +2 -0
  73. package/dist/components/logo-wall/logos/mongodb.svg.js +17 -0
  74. package/dist/components/logo-wall/logos/nhost.svg.d.ts +2 -0
  75. package/dist/components/logo-wall/logos/nhost.svg.js +9 -0
  76. package/dist/components/logo-wall/logos/okta.svg.d.ts +2 -0
  77. package/dist/components/logo-wall/logos/okta.svg.js +8 -0
  78. package/dist/components/logo-wall/logos/opentelemetry.svg.d.ts +2 -0
  79. package/dist/components/logo-wall/logos/opentelemetry.svg.js +8 -0
  80. package/dist/components/logo-wall/logos/prometheus.svg.d.ts +2 -0
  81. package/dist/components/logo-wall/logos/prometheus.svg.js +8 -0
  82. package/dist/components/logo-wall/logos/pulumi.svg.d.ts +2 -0
  83. package/dist/components/logo-wall/logos/pulumi.svg.js +10 -0
  84. package/dist/components/logo-wall/logos/redhat.svg.d.ts +2 -0
  85. package/dist/components/logo-wall/logos/redhat.svg.js +8 -0
  86. package/dist/components/logo-wall/logos/scalar.svg.d.ts +2 -0
  87. package/dist/components/logo-wall/logos/scalar.svg.js +19 -0
  88. package/dist/components/logo-wall/logos/splunk.svg.d.ts +2 -0
  89. package/dist/components/logo-wall/logos/splunk.svg.js +8 -0
  90. package/dist/components/logo-wall/logos/unkey.svg.d.ts +2 -0
  91. package/dist/components/logo-wall/logos/unkey.svg.js +15 -0
  92. package/dist/components/logo-wall/logowall.d.ts +2 -24
  93. package/dist/components/logo-wall/logowall.js +58 -373
  94. package/dist/components/model-renderer/rendered-node.css.js +10 -0
  95. package/dist/components/model-renderer/rendered-node.d.ts +2 -0
  96. package/dist/components/model-renderer/rendered-node.js +16 -4
  97. package/dist/components/premium-gate/premium-gate.css.js +18 -1
  98. package/dist/components/premium-gate/premium-gate.js +2 -2
  99. package/dist/components/problem-list/problem-item.js +3 -2
  100. package/dist/components/problem-list/problem-list.d.ts +2 -0
  101. package/dist/components/problem-list/problem-list.js +26 -7
  102. package/dist/components/problems-overview/problem-overview-group.js +2 -1
  103. package/dist/components/visualizer/edge.d.ts +6 -2
  104. package/dist/components/visualizer/edge.js +26 -4
  105. package/dist/components/visualizer/equalizer.css.js +11 -2
  106. package/dist/components/visualizer/explorer.d.ts +3 -1
  107. package/dist/components/visualizer/explorer.js +51 -59
  108. package/dist/components/visualizer/nodes/change-view-node.d.ts +2 -2
  109. package/dist/components/visualizer/nodes/change-view-node.js +10 -6
  110. package/dist/components/visualizer/nodes/graph-node.d.ts +12 -8
  111. package/dist/components/visualizer/nodes/graph-node.js +47 -25
  112. package/dist/components/visualizer/nodes/schema.d.ts +7 -0
  113. package/dist/components/visualizer/nodes/schema.js +81 -59
  114. package/dist/components/visualizer/shared.css.js +48 -10
  115. package/dist/components/visualizer/viewport-position.d.ts +28 -0
  116. package/dist/components/visualizer/viewport-position.js +38 -0
  117. package/dist/components/workspaces/workspace-view.js +10 -7
  118. package/dist/components/yaml-viewer/yaml-viewer.css.d.ts +2 -0
  119. package/dist/components/yaml-viewer/yaml-viewer.css.js +45 -0
  120. package/dist/components/yaml-viewer/yaml-viewer.d.ts +22 -0
  121. package/dist/components/yaml-viewer/yaml-viewer.js +86 -0
  122. package/dist/controllers/diagramatron-controller.d.ts +2 -6
  123. package/dist/controllers/diagramatron-controller.js +4 -1
  124. package/dist/controllers/problem-controller.d.ts +1 -0
  125. package/dist/controllers/problem-controller.js +40 -24
  126. package/dist/{cose-bilkent-S5V4N54A-CdEgH7NU.cjs → cose-bilkent-S5V4N54A-CKHB3cR8.cjs} +1 -1
  127. package/dist/{cose-bilkent-S5V4N54A-FFskauHi.js → cose-bilkent-S5V4N54A-DcUKlxlF.js} +2 -2
  128. package/dist/{cowboy-components-DlcOqYuh.cjs → cowboy-components-CjgqXqkM.cjs} +1148 -1063
  129. package/dist/{cowboy-components-_6157Gms.js → cowboy-components-CxawaKWM.js} +8784 -8910
  130. package/dist/{dagre-KV5264BT-BBKAH5Vs.cjs → dagre-KV5264BT-B2JWO01l.cjs} +1 -1
  131. package/dist/{dagre-KV5264BT-BnGcCOZB.js → dagre-KV5264BT-Nl_VfI8a.js} +29 -29
  132. package/dist/{diagram-5BDNPKRD-Caf5-T5J.cjs → diagram-5BDNPKRD-BKI_3vWy.cjs} +1 -1
  133. package/dist/{diagram-5BDNPKRD-C9cE16Nq.js → diagram-5BDNPKRD-TI1X3fNz.js} +4 -4
  134. package/dist/{diagram-G4DWMVQ6-eVnE9je7.js → diagram-G4DWMVQ6-CFqOAmuK.js} +4 -4
  135. package/dist/{diagram-G4DWMVQ6-B_Z6cYPf.cjs → diagram-G4DWMVQ6-DFBdN4sf.cjs} +1 -1
  136. package/dist/{diagram-MMDJMWI5-CAOLJUQB.js → diagram-MMDJMWI5-BSsV2xaN.js} +3 -3
  137. package/dist/{diagram-MMDJMWI5-Btfr_jTp.cjs → diagram-MMDJMWI5-CFuTCrVQ.cjs} +1 -1
  138. package/dist/{diagram-TYMM5635-B5eh2zfi.js → diagram-TYMM5635-BP1f-EB_.js} +3 -3
  139. package/dist/{diagram-TYMM5635-pKdjOMF8.cjs → diagram-TYMM5635-CrgW2ZZO.cjs} +1 -1
  140. package/dist/{erDiagram-SMLLAGMA-DIG0NSaA.cjs → erDiagram-SMLLAGMA-C3caLNRz.cjs} +1 -1
  141. package/dist/{erDiagram-SMLLAGMA-B2OnES7y.js → erDiagram-SMLLAGMA-rVfyZdO4.js} +4 -4
  142. package/dist/events/doctor.d.ts +3 -1
  143. package/dist/factories/explorer-component-factory.d.ts +2 -1
  144. package/dist/factories/explorer-component-factory.js +1 -0
  145. package/dist/{flowDiagram-DWJPFMVM-2zskCMow.cjs → flowDiagram-DWJPFMVM-Ce_HVRt5.cjs} +1 -1
  146. package/dist/{flowDiagram-DWJPFMVM-CXPAxHvt.js → flowDiagram-DWJPFMVM-DqFXC8zL.js} +6 -6
  147. package/dist/{ganttDiagram-T4ZO3ILL-D6Frz-JF.js → ganttDiagram-T4ZO3ILL-BmNOX7yf.js} +3 -3
  148. package/dist/{ganttDiagram-T4ZO3ILL-BeVChtO1.cjs → ganttDiagram-T4ZO3ILL-HHFgf8w4.cjs} +1 -1
  149. package/dist/{gitGraph-7Q5UKJZL-BJ6cbAq9.cjs → gitGraph-7Q5UKJZL-DgndfdDH.cjs} +1 -1
  150. package/dist/{gitGraph-7Q5UKJZL-ZUTHDSj9.js → gitGraph-7Q5UKJZL-kCDkIMWc.js} +1 -1
  151. package/dist/{gitGraphDiagram-UUTBAWPF--sskoNSw.js → gitGraphDiagram-UUTBAWPF-C-Ahhj_h.js} +4 -4
  152. package/dist/{gitGraphDiagram-UUTBAWPF-Bk5mBktt.cjs → gitGraphDiagram-UUTBAWPF-DaVjvjth.cjs} +1 -1
  153. package/dist/{graph-n3mQ-eMa.js → graph-Dfys1tzR.js} +43 -43
  154. package/dist/{graph-CitLzybf.cjs → graph-DyZUkQBU.cjs} +1 -1
  155. package/dist/{info-OMHHGYJF-Drd77e1G.cjs → info-OMHHGYJF-Cb_sFFZS.cjs} +1 -1
  156. package/dist/info-OMHHGYJF-KL9K6Ofp.js +5 -0
  157. package/dist/{infoDiagram-42DDH7IO-BYCSBry1.js → infoDiagram-42DDH7IO-BP_YOQpC.js} +2 -2
  158. package/dist/{infoDiagram-42DDH7IO-Drbr569o.cjs → infoDiagram-42DDH7IO-C09CiT2v.cjs} +1 -1
  159. package/dist/{ishikawaDiagram-UXIWVN3A-DTTtSjta.cjs → ishikawaDiagram-UXIWVN3A-CjAoGU0v.cjs} +1 -1
  160. package/dist/{ishikawaDiagram-UXIWVN3A-DtA8KbKf.js → ishikawaDiagram-UXIWVN3A-DwW6fn0e.js} +1 -1
  161. package/dist/{journeyDiagram-VCZTEJTY-NGtPMfE0.js → journeyDiagram-VCZTEJTY-Bk7z4VA2.js} +4 -4
  162. package/dist/{journeyDiagram-VCZTEJTY-B2Mj0NKu.cjs → journeyDiagram-VCZTEJTY-CZnSwt6p.cjs} +1 -1
  163. package/dist/{kanban-definition-6JOO6SKY-BH9sPBGO.js → kanban-definition-6JOO6SKY-BiN4nM1i.js} +22 -22
  164. package/dist/{kanban-definition-6JOO6SKY-BBqZKCyL.cjs → kanban-definition-6JOO6SKY-DZF8xgYV.cjs} +1 -1
  165. package/dist/{layout-Dxl_HlKH.js → layout-BDanDonD.js} +89 -89
  166. package/dist/{layout-BXXLjgVz.cjs → layout-rTQtAIwn.cjs} +1 -1
  167. package/dist/linear-CuHSYSeN.cjs +1 -0
  168. package/dist/{linear-CZplgftO.js → linear-DFB2dCGq.js} +26 -26
  169. package/dist/{mermaid-parser.core-DsLOyQb-.js → mermaid-parser.core-CCHvxUQl.js} +13 -13
  170. package/dist/{mermaid-parser.core-By3g6lf1.cjs → mermaid-parser.core-fjh_cn2l.cjs} +2 -2
  171. package/dist/{min-sstTPxgN.cjs → min-h6fs1hPk.cjs} +1 -1
  172. package/dist/{min-CqEuxX5S.js → min-rDRC9KDF.js} +8 -8
  173. package/dist/{mindmap-definition-QFDTVHPH-B3Oxj65X.cjs → mindmap-definition-QFDTVHPH-BbUJ3LHd.cjs} +1 -1
  174. package/dist/{mindmap-definition-QFDTVHPH-BNYDl_JS.js → mindmap-definition-QFDTVHPH-CZMHHnKO.js} +11 -11
  175. package/dist/{packet-4T2RLAQJ-E5BuU-_N.cjs → packet-4T2RLAQJ-BRTuQgpj.cjs} +1 -1
  176. package/dist/{packet-4T2RLAQJ-Dz7awUWB.js → packet-4T2RLAQJ-Bl5gBk4Q.js} +1 -1
  177. package/dist/{pie-ZZUOXDRM-Dy70KTXz.cjs → pie-ZZUOXDRM-BbZyrtOg.cjs} +1 -1
  178. package/dist/pie-ZZUOXDRM-CpENjo0C.js +5 -0
  179. package/dist/{pieDiagram-DEJITSTG-N6CuTO5d.js → pieDiagram-DEJITSTG-BNTE6R98.js} +43 -42
  180. package/dist/pieDiagram-DEJITSTG-BpiMiYGL.cjs +30 -0
  181. package/dist/{quadrantDiagram-34T5L4WZ-BFmWaVMB.cjs → quadrantDiagram-34T5L4WZ-DODOOGae.cjs} +1 -1
  182. package/dist/{quadrantDiagram-34T5L4WZ-aciP1QIx.js → quadrantDiagram-34T5L4WZ-JjtOrhxB.js} +2 -2
  183. package/dist/radar-PYXPWWZC-BiAwm-jb.js +5 -0
  184. package/dist/{radar-PYXPWWZC-BF0Fb1TH.cjs → radar-PYXPWWZC-CSH1N71W.cjs} +1 -1
  185. package/dist/{requirementDiagram-MS252O5E-DkopqGtb.cjs → requirementDiagram-MS252O5E-CjMpy00l.cjs} +1 -1
  186. package/dist/{requirementDiagram-MS252O5E-BKe1ubad.js → requirementDiagram-MS252O5E-CwV2UGNb.js} +3 -3
  187. package/dist/{sankeyDiagram-XADWPNL6-DrZ6paqw.cjs → sankeyDiagram-XADWPNL6-BzayPzy0.cjs} +1 -1
  188. package/dist/{sankeyDiagram-XADWPNL6-CXWxDxz9.js → sankeyDiagram-XADWPNL6-rri4GWAM.js} +1 -1
  189. package/dist/{sequenceDiagram-FGHM5R23-DeT0Ej2-.js → sequenceDiagram-FGHM5R23-BwBriXF1.js} +3 -3
  190. package/dist/{sequenceDiagram-FGHM5R23-AgywoQ1Q.cjs → sequenceDiagram-FGHM5R23-D-YegsL-.cjs} +1 -1
  191. package/dist/services/workspace-service.js +3 -3
  192. package/dist/stateDiagram-FHFEXIEX-Cq2H2XQO.cjs +1 -0
  193. package/dist/{stateDiagram-FHFEXIEX-7A28ex_-.js → stateDiagram-FHFEXIEX-jfwjGp1O.js} +44 -43
  194. package/dist/{stateDiagram-v2-QKLJ7IA2-DKdmAkPd.js → stateDiagram-v2-QKLJ7IA2-Bw4Xgr7w.js} +2 -2
  195. package/dist/{stateDiagram-v2-QKLJ7IA2-COHQmika.cjs → stateDiagram-v2-QKLJ7IA2-DKL73VEs.cjs} +1 -1
  196. package/dist/{timeline-definition-GMOUNBTQ-a3VL8qvl.js → timeline-definition-GMOUNBTQ-CpABxKM5.js} +23 -23
  197. package/dist/{timeline-definition-GMOUNBTQ-CLIWGUDx.cjs → timeline-definition-GMOUNBTQ-DP1yCayj.cjs} +1 -1
  198. package/dist/{treeView-SZITEDCU-DhzhM13M.cjs → treeView-SZITEDCU-BizNBkAv.cjs} +1 -1
  199. package/dist/{treeView-SZITEDCU-BI7UKP6V.js → treeView-SZITEDCU-BtaLEQ3S.js} +1 -1
  200. package/dist/{treemap-W4RFUUIX-D27UX2aI.cjs → treemap-W4RFUUIX-Cbbx2tbB.cjs} +1 -1
  201. package/dist/{treemap-W4RFUUIX-DBHIrtnC.js → treemap-W4RFUUIX-CmVVUeZj.js} +1 -1
  202. package/dist/{vennDiagram-DHZGUBPP-BA4bv3TJ.js → vennDiagram-DHZGUBPP-C0edoxsg.js} +59 -59
  203. package/dist/{vennDiagram-DHZGUBPP-u9RE2cv7.cjs → vennDiagram-DHZGUBPP-Dv3ZX8SJ.cjs} +1 -1
  204. package/dist/{wardley-RL74JXVD-CAZiB4K3.cjs → wardley-RL74JXVD-BndLe7vL.cjs} +1 -1
  205. package/dist/{wardley-RL74JXVD-9hft70S_.js → wardley-RL74JXVD-DdQvN9q5.js} +1 -1
  206. package/dist/{wardleyDiagram-NUSXRM2D-DBsr2UYG.js → wardleyDiagram-NUSXRM2D-DCChf1Y2.js} +3 -3
  207. package/dist/{wardleyDiagram-NUSXRM2D-CKCVdEN3.cjs → wardleyDiagram-NUSXRM2D-DpluOG7a.cjs} +1 -1
  208. package/dist/workers/elk-fake-worker.generated.d.ts +3 -0
  209. package/dist/workers/elk-fake-worker.generated.js +50224 -0
  210. package/dist/workers/elk-layout-blob.generated.js +16 -18
  211. package/dist/workers/elk-layout.worker.js +5 -2
  212. package/dist/{xychartDiagram-5P7HB3ND-BfkKtA74.cjs → xychartDiagram-5P7HB3ND-B7y6-7BP.cjs} +4 -4
  213. package/dist/{xychartDiagram-5P7HB3ND-CIeY2sBx.js → xychartDiagram-5P7HB3ND-BWvz1AY8.js} +8 -7
  214. package/package.json +11 -2
  215. package/dist/arc-2E-fJnok.js +0 -83
  216. package/dist/arc-Cah-EtVa.cjs +0 -1
  217. package/dist/blockDiagram-DXYQGD6D-CUmPhtkh.cjs +0 -132
  218. package/dist/change-list-item-CrZn84tY.cjs +0 -4535
  219. package/dist/change-list-item-DMLMmZ6U.js +0 -18744
  220. package/dist/channel-CMrLSZsY.js +0 -5
  221. package/dist/clone-Bqh1gJUP.cjs +0 -1
  222. package/dist/info-OMHHGYJF-D5oOa7Mo.js +0 -5
  223. package/dist/linear-DpB2Zi1A.cjs +0 -1
  224. package/dist/pie-ZZUOXDRM-DjXev5ml.js +0 -5
  225. package/dist/pieDiagram-DEJITSTG-HFspfzyv.cjs +0 -30
  226. package/dist/radar-PYXPWWZC-atHOjpus.js +0 -5
  227. package/dist/stateDiagram-FHFEXIEX-CKm2mS6U.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./cowboy-components-DlcOqYuh.cjs"),X=require("./graph-CitLzybf.cjs"),G=require("./layout-BXXLjgVz.cjs"),R=require("./clone-Bqh1gJUP.cjs"),O=require("./min-sstTPxgN.cjs");function m(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:j(e)};return X.isUndefined(e.graph())||(o.value=R.clone(e.graph())),o}function M(e){return O.map(e.nodes(),function(o){var n=e.node(o),l=e.parent(o),r={v:o};return X.isUndefined(n)||(r.value=n),X.isUndefined(l)||(r.parent=l),r})}function j(e){return O.map(e.edges(),function(o){var n=e.edge(o),l={v:o.v,w:o.w};return X.isUndefined(o.name)||(l.name=o.name),X.isUndefined(n)||(l.value=n),l})}var a=new Map,y=new Map,P=new Map,q=t.__name(()=>{y.clear(),P.clear(),a.clear()},"clear"),_=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.trace("In isDescendant",o," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),F=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.info("Descendants of ",o," is ",n),t.log.info("Edge is ",e),e.v===o||e.w===o?!1:n?n.includes(e.v)||_(e.v,o)||_(e.w,o)||n.includes(e.w):(t.log.debug("Tilt, ",o,",not in descendants"),!1)},"edgeInCluster"),k=t.__name((e,o,n,l)=>{t.log.warn("Copying children of ",e,"root",l,"data",o.node(e),l);const r=o.children(e)||[];e!==l&&r.push(e),t.log.warn("Copying (nodes) clusterId",e,"nodes",r),r.forEach(s=>{if(o.children(s).length>0)k(s,o,n,l);else{const d=o.node(s);t.log.info("cp ",s," to ",l," with parent ",e),n.setNode(s,d),l!==o.parent(s)&&(t.log.warn("Setting parent",s,o.parent(s)),n.setParent(s,o.parent(s))),e!==l&&s!==e?(t.log.debug("Setting parent",s,e),n.setParent(s,e)):(t.log.info("In copy ",e,"root",l,"data",o.node(e),l),t.log.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==l,"node!==clusterId",s!==e));const g=o.edges(s);t.log.debug("Copying Edges",g),g.forEach(c=>{t.log.info("Edge",c);const w=o.edge(c.v,c.w,c.name);t.log.info("Edge data",w,l);try{F(c,l)?(t.log.info("Copying as ",c.v,c.w,w,c.name),n.setEdge(c.v,c.w,w,c.name),t.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):t.log.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",l," clusterId:",e)}catch(h){t.log.error(h)}})}t.log.debug("Removing node",s),o.removeNode(s)})},"copy"),B=t.__name((e,o)=>{const n=o.children(e);let l=[...n];for(const r of n)P.set(r,e),l=[...l,...B(r,o)];return l},"extractDescendants"),U=t.__name((e,o,n)=>{const l=e.edges().filter(c=>c.v===o||c.w===o),r=e.edges().filter(c=>c.v===n||c.w===n),s=l.map(c=>({v:c.v===o?n:c.v,w:c.w===o?o:c.w})),d=r.map(c=>({v:c.v,w:c.w}));return s.filter(c=>d.some(w=>c.v===w.v&&c.w===w.w))},"findCommonEdges"),b=t.__name((e,o,n)=>{const l=o.children(e);if(t.log.trace("Searching children of id ",e,l),l.length<1)return e;let r;for(const s of l){const d=b(s,o,n),g=U(o,n,d);if(d)if(g.length>0)r=d;else return d}return r},"findNonClusterChild"),D=t.__name(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),Y=t.__name((e,o)=>{if(!e||o>10){t.log.debug("Opting out, no graph ");return}else t.log.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(t.log.warn("Cluster identified",n," Replacement id in edges: ",b(n,e,n)),y.set(n,B(n,e)),a.set(n,{id:b(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const l=e.children(n),r=e.edges();l.length>0?(t.log.debug("Cluster identified",n,y),r.forEach(s=>{const d=_(s.v,n),g=_(s.w,n);d^g&&(t.log.warn("Edge: ",s," leaves cluster ",n),t.log.warn("Descendants of XXX ",n,": ",y.get(n)),a.get(n).externalConnections=!0)})):t.log.debug("Not a cluster ",n,y)});for(let n of a.keys()){const l=a.get(n).id,r=e.parent(l);r!==n&&a.has(r)&&!a.get(r).externalConnections&&(a.get(n).id=r)}e.edges().forEach(function(n){const l=e.edge(n);t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.log.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(t.log.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),r=D(n.v),s=D(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const d=e.parent(r);a.get(d).externalConnections=!0,l.fromCluster=n.v}if(s!==n.w){const d=e.parent(s);a.get(d).externalConnections=!0,l.toCluster=n.w}t.log.warn("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,l,n.name)}}),t.log.warn("Adjusted Graph",m(e)),A(e,0),t.log.trace(a)},"adjustClustersAndEdges"),A=t.__name((e,o)=>{if(t.log.warn("extractor - ",o,m(e),e.children("D")),o>10){t.log.error("Bailing out");return}let n=e.nodes(),l=!1;for(const r of n){const s=e.children(r);l=l||s.length>0}if(!l){t.log.debug("Done, no node has children",e.nodes());return}t.log.debug("Nodes = ",n,o);for(const r of n)if(t.log.debug("Extracting node",r,a,a.has(r)&&!a.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",o),!a.has(r))t.log.debug("Not a cluster",r,o);else if(!a.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.log.warn("Cluster without external connections, without a parent and with children",r,o);let d=e.graph().rankdir==="TB"?"LR":"TB";a.get(r)?.clusterData?.dir&&(d=a.get(r).clusterData.dir,t.log.warn("Fixing dir",a.get(r).clusterData.dir,d));const g=new X.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.log.warn("Old graph before copy",m(e)),k(r,e,g,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:a.get(r).clusterData,label:a.get(r).label,graph:g}),t.log.warn("New graph after copy node: (",r,")",m(g)),t.log.debug("Old graph after copy",m(e))}else t.log.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!a.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),o),t.log.debug(a);n=e.nodes(),t.log.warn("New list of nodes",n);for(const r of n){const s=e.node(r);t.log.warn(" Now next level",r,s),s?.clusterNode&&A(s.graph,o+1)}},"extractor"),J=t.__name((e,o)=>{if(o.length===0)return[];let n=Object.assign([],o);return o.forEach(l=>{const r=e.children(l),s=J(e,r);n=[...n,...s]}),n},"sorter"),H=t.__name(e=>J(e,e.children()),"sortNodesByHierarchy"),T=t.__name(async(e,o,n,l,r,s)=>{t.log.warn("Graph in recursive render:XAX",m(o),r);const d=o.graph().rankdir;t.log.trace("Dir in recursive render - dir:",d);const g=e.insert("g").attr("class","root");o.nodes()?t.log.info("Recursive render XXX",o.nodes()):t.log.info("No nodes found for",o),o.edges().length>0&&t.log.info("Recursive edges",o.edge(o.edges()[0]));const c=g.insert("g").attr("class","clusters"),w=g.insert("g").attr("class","edgePaths"),h=g.insert("g").attr("class","edgeLabels"),v=g.insert("g").attr("class","nodes");await Promise.all(o.nodes().map(async function(f){const i=o.node(f);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));t.log.trace(`Setting data for parent cluster XXX
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./cowboy-components-CjgqXqkM.cjs"),X=require("./graph-DyZUkQBU.cjs"),G=require("./layout-rTQtAIwn.cjs"),R=require("./clone-D_c-FYGd.cjs"),O=require("./min-h6fs1hPk.cjs");function m(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:j(e)};return X.isUndefined(e.graph())||(o.value=R.clone(e.graph())),o}function M(e){return O.map(e.nodes(),function(o){var n=e.node(o),l=e.parent(o),r={v:o};return X.isUndefined(n)||(r.value=n),X.isUndefined(l)||(r.parent=l),r})}function j(e){return O.map(e.edges(),function(o){var n=e.edge(o),l={v:o.v,w:o.w};return X.isUndefined(o.name)||(l.name=o.name),X.isUndefined(n)||(l.value=n),l})}var a=new Map,y=new Map,P=new Map,q=t.__name(()=>{y.clear(),P.clear(),a.clear()},"clear"),_=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.trace("In isDescendant",o," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),F=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.info("Descendants of ",o," is ",n),t.log.info("Edge is ",e),e.v===o||e.w===o?!1:n?n.includes(e.v)||_(e.v,o)||_(e.w,o)||n.includes(e.w):(t.log.debug("Tilt, ",o,",not in descendants"),!1)},"edgeInCluster"),k=t.__name((e,o,n,l)=>{t.log.warn("Copying children of ",e,"root",l,"data",o.node(e),l);const r=o.children(e)||[];e!==l&&r.push(e),t.log.warn("Copying (nodes) clusterId",e,"nodes",r),r.forEach(s=>{if(o.children(s).length>0)k(s,o,n,l);else{const d=o.node(s);t.log.info("cp ",s," to ",l," with parent ",e),n.setNode(s,d),l!==o.parent(s)&&(t.log.warn("Setting parent",s,o.parent(s)),n.setParent(s,o.parent(s))),e!==l&&s!==e?(t.log.debug("Setting parent",s,e),n.setParent(s,e)):(t.log.info("In copy ",e,"root",l,"data",o.node(e),l),t.log.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==l,"node!==clusterId",s!==e));const g=o.edges(s);t.log.debug("Copying Edges",g),g.forEach(c=>{t.log.info("Edge",c);const w=o.edge(c.v,c.w,c.name);t.log.info("Edge data",w,l);try{F(c,l)?(t.log.info("Copying as ",c.v,c.w,w,c.name),n.setEdge(c.v,c.w,w,c.name),t.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):t.log.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",l," clusterId:",e)}catch(h){t.log.error(h)}})}t.log.debug("Removing node",s),o.removeNode(s)})},"copy"),B=t.__name((e,o)=>{const n=o.children(e);let l=[...n];for(const r of n)P.set(r,e),l=[...l,...B(r,o)];return l},"extractDescendants"),U=t.__name((e,o,n)=>{const l=e.edges().filter(c=>c.v===o||c.w===o),r=e.edges().filter(c=>c.v===n||c.w===n),s=l.map(c=>({v:c.v===o?n:c.v,w:c.w===o?o:c.w})),d=r.map(c=>({v:c.v,w:c.w}));return s.filter(c=>d.some(w=>c.v===w.v&&c.w===w.w))},"findCommonEdges"),b=t.__name((e,o,n)=>{const l=o.children(e);if(t.log.trace("Searching children of id ",e,l),l.length<1)return e;let r;for(const s of l){const d=b(s,o,n),g=U(o,n,d);if(d)if(g.length>0)r=d;else return d}return r},"findNonClusterChild"),D=t.__name(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),Y=t.__name((e,o)=>{if(!e||o>10){t.log.debug("Opting out, no graph ");return}else t.log.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(t.log.warn("Cluster identified",n," Replacement id in edges: ",b(n,e,n)),y.set(n,B(n,e)),a.set(n,{id:b(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const l=e.children(n),r=e.edges();l.length>0?(t.log.debug("Cluster identified",n,y),r.forEach(s=>{const d=_(s.v,n),g=_(s.w,n);d^g&&(t.log.warn("Edge: ",s," leaves cluster ",n),t.log.warn("Descendants of XXX ",n,": ",y.get(n)),a.get(n).externalConnections=!0)})):t.log.debug("Not a cluster ",n,y)});for(let n of a.keys()){const l=a.get(n).id,r=e.parent(l);r!==n&&a.has(r)&&!a.get(r).externalConnections&&(a.get(n).id=r)}e.edges().forEach(function(n){const l=e.edge(n);t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.log.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(t.log.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),r=D(n.v),s=D(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const d=e.parent(r);a.get(d).externalConnections=!0,l.fromCluster=n.v}if(s!==n.w){const d=e.parent(s);a.get(d).externalConnections=!0,l.toCluster=n.w}t.log.warn("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,l,n.name)}}),t.log.warn("Adjusted Graph",m(e)),A(e,0),t.log.trace(a)},"adjustClustersAndEdges"),A=t.__name((e,o)=>{if(t.log.warn("extractor - ",o,m(e),e.children("D")),o>10){t.log.error("Bailing out");return}let n=e.nodes(),l=!1;for(const r of n){const s=e.children(r);l=l||s.length>0}if(!l){t.log.debug("Done, no node has children",e.nodes());return}t.log.debug("Nodes = ",n,o);for(const r of n)if(t.log.debug("Extracting node",r,a,a.has(r)&&!a.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",o),!a.has(r))t.log.debug("Not a cluster",r,o);else if(!a.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.log.warn("Cluster without external connections, without a parent and with children",r,o);let d=e.graph().rankdir==="TB"?"LR":"TB";a.get(r)?.clusterData?.dir&&(d=a.get(r).clusterData.dir,t.log.warn("Fixing dir",a.get(r).clusterData.dir,d));const g=new X.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.log.warn("Old graph before copy",m(e)),k(r,e,g,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:a.get(r).clusterData,label:a.get(r).label,graph:g}),t.log.warn("New graph after copy node: (",r,")",m(g)),t.log.debug("Old graph after copy",m(e))}else t.log.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!a.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),o),t.log.debug(a);n=e.nodes(),t.log.warn("New list of nodes",n);for(const r of n){const s=e.node(r);t.log.warn(" Now next level",r,s),s?.clusterNode&&A(s.graph,o+1)}},"extractor"),J=t.__name((e,o)=>{if(o.length===0)return[];let n=Object.assign([],o);return o.forEach(l=>{const r=e.children(l),s=J(e,r);n=[...n,...s]}),n},"sorter"),H=t.__name(e=>J(e,e.children()),"sortNodesByHierarchy"),T=t.__name(async(e,o,n,l,r,s)=>{t.log.warn("Graph in recursive render:XAX",m(o),r);const d=o.graph().rankdir;t.log.trace("Dir in recursive render - dir:",d);const g=e.insert("g").attr("class","root");o.nodes()?t.log.info("Recursive render XXX",o.nodes()):t.log.info("No nodes found for",o),o.edges().length>0&&t.log.info("Recursive edges",o.edge(o.edges()[0]));const c=g.insert("g").attr("class","clusters"),w=g.insert("g").attr("class","edgePaths"),h=g.insert("g").attr("class","edgeLabels"),v=g.insert("g").attr("class","nodes");await Promise.all(o.nodes().map(async function(f){const i=o.node(f);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));t.log.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,f,`
3
3
  data=`,u.height,`
4
4
  Parent cluster`,r.height),o.setNode(r.id,u),o.parent(f)||(t.log.trace("Setting parent",f,r.id),o.setParent(f,r.id,u))}if(t.log.info("(Insert) Node XXX"+f+": "+JSON.stringify(o.node(f))),i?.clusterNode){t.log.info("Cluster identified XBX",f,i.width,o.node(f));const{ranksep:u,nodesep:E}=o.graph();i.graph.setGraph({...i.graph.graph(),ranksep:u+25,nodesep:E});const N=await T(v,i.graph,n,l,o.node(f),s),S=N.elem;t.updateNodeBounds(i,S),i.diff=N.diff||0,t.log.info("New compound node after recursive render XAX",f,"width",i.width,"height",i.height),t.setNodeElem(S,i)}else o.children(f).length>0?(t.log.trace("Cluster - the non recursive path XBX",f,i.id,i,i.width,"Graph:",o),t.log.trace(b(i.id,o)),a.set(i.id,{id:b(i.id,o),node:i})):(t.log.trace("Node - the non recursive path XAX",f,v,o.node(f),d),await t.insertNode(v,o.node(f),{config:s,dir:d}))})),await t.__name(async()=>{const f=o.edges().map(async function(i){const u=o.edge(i.v,i.w,i.name);t.log.info("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),t.log.info("Edge "+i.v+" -> "+i.w+": ",i," ",JSON.stringify(o.edge(i))),t.log.info("Fix",a,"ids:",i.v,i.w,"Translating: ",a.get(i.v),a.get(i.w)),await t.insertEdgeLabel(h,u)});await Promise.all(f)},"processEdges")(),t.log.info("Graph before layout:",JSON.stringify(m(o))),t.log.info("############################################# XXX"),t.log.info("### Layout ### XXX"),t.log.info("############################################# XXX"),G.layout(o),t.log.info("Graph after layout:",JSON.stringify(m(o)));let x=0,{subGraphTitleTotalMargin:C}=t.getSubGraphTitleMargins(s);return await Promise.all(H(o).map(async function(f){const i=o.node(f);if(t.log.info("Position XBX => "+f+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),i?.clusterNode)i.y+=C,t.log.info("A tainted cluster node XBX1",f,i.id,i.width,i.height,i.x,i.y,o.parent(f)),a.get(i.id).node=i,t.positionNode(i);else if(o.children(f).length>0){t.log.info("A pure cluster node XBX1",f,i.id,i.x,i.y,i.width,i.height,o.parent(f)),i.height+=C,o.node(i.parentId);const u=i?.padding/2||0,E=i?.labelBBox?.height||0,N=E-u||0;t.log.debug("OffsetY",N,"labelHeight",E,"halfPadding",u),await t.insertCluster(c,i),a.get(i.id).node=i}else{const u=o.node(i.parentId);i.y+=C/2,t.log.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",u,u?.offsetY,i),t.positionNode(i)}})),o.edges().forEach(function(f){const i=o.edge(f);t.log.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(i),i),i.points.forEach(S=>S.y+=C/2);const u=o.node(f.v);var E=o.node(f.w);const N=t.insertEdge(w,i,a,n,u,E,l);t.positionEdgeLabel(i,N)}),o.nodes().forEach(function(f){const i=o.node(f);t.log.info(f,i.type,i.diff),i.isGroup&&(x=i.diff)}),t.log.warn("Returning from recursive render XAX",g,x),{elem:g,diff:x}},"recursiveRender"),V=t.__name(async(e,o)=>{const n=new X.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),l=o.select("g");t.markers_default(l,e.markers,e.type,e.diagramId),t.clear2(),t.clear$1(),t.clear$2(),q(),e.nodes.forEach(s=>{n.setNode(s.id,{...s}),s.parentId&&n.setParent(s.id,s.parentId)}),t.log.debug("Edges:",e.edges),e.edges.forEach(s=>{if(s.start===s.end){const d=s.start,g=d+"---"+d+"---1",c=d+"---"+d+"---2",w=n.node(d);n.setNode(g,{domId:g,id:g,parentId:w.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(g,w.parentId),n.setNode(c,{domId:c,id:c,parentId:w.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(c,w.parentId);const h=structuredClone(s),v=structuredClone(s),p=structuredClone(s);h.label="",h.arrowTypeEnd="none",h.id=d+"-cyclic-special-1",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=d+"-cyclic-special-mid",p.label="",w.isGroup&&(h.fromCluster=d,p.toCluster=d),p.id=d+"-cyclic-special-2",p.arrowTypeStart="none",n.setEdge(d,g,h,d+"-cyclic-special-0"),n.setEdge(g,c,v,d+"-cyclic-special-1"),n.setEdge(c,d,p,d+"-cyc<lic-special-2")}else n.setEdge(s.start,s.end,{...s},s.id)}),t.log.warn("Graph at first:",JSON.stringify(m(n))),Y(n),t.log.warn("Graph after XAX:",JSON.stringify(m(n)));const r=t.getConfig2();await T(l,n,e.type,e.diagramId,void 0,r)},"render");exports.render=V;
@@ -1,9 +1,9 @@
1
- import { _ as w, at as F, au as Y, av as _, aw as H, l as i, c as V, ax as z, ay as U, ag as $, am as q, ah as P, af as K, az as Q, aA as W, aB as Z } from "./cowboy-components-_6157Gms.js";
2
- import { i as b, G as B } from "./graph-n3mQ-eMa.js";
3
- import { l as I } from "./layout-Dxl_HlKH.js";
4
- import { c as L } from "./clone-C3LRmiE8.js";
5
- import { m as A } from "./min-CqEuxX5S.js";
6
- function h(e) {
1
+ import { _ as w, ap as F, aq as Y, ar as _, as as H, l as i, c as V, at as q, au as U, ac as $, ai as z, ad as P, ab as K, av as Q, aw as W, ax as Z } from "./cowboy-components-CxawaKWM.js";
2
+ import { i as b, G as B } from "./graph-Dfys1tzR.js";
3
+ import { l as I } from "./layout-BDanDonD.js";
4
+ import { c as L } from "./clone-DFz4YXr3.js";
5
+ import { m as A } from "./min-rDRC9KDF.js";
6
+ function v(e) {
7
7
  var t = {
8
8
  options: {
9
9
  directed: e.isDirected(),
@@ -27,13 +27,13 @@ function ne(e) {
27
27
  return b(t.name) || (a.name = t.name), b(n) || (a.value = n), a;
28
28
  });
29
29
  }
30
- var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ w(() => {
31
- y.clear(), J.clear(), d.clear();
30
+ var d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ w(() => {
31
+ p.clear(), J.clear(), d.clear();
32
32
  }, "clear"), D = /* @__PURE__ */ w((e, t) => {
33
- const n = y.get(t) || [];
33
+ const n = p.get(t) || [];
34
34
  return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
35
35
  }, "isDescendant"), se = /* @__PURE__ */ w((e, t) => {
36
- const n = y.get(t) || [];
36
+ const n = p.get(t) || [];
37
37
  return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
38
38
  }, "edgeInCluster"), G = /* @__PURE__ */ w((e, t, n, a) => {
39
39
  i.warn(
@@ -75,8 +75,8 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
75
75
  " clusterId:",
76
76
  e
77
77
  );
78
- } catch (v) {
79
- i.error(v);
78
+ } catch (h) {
79
+ i.error(h);
80
80
  }
81
81
  });
82
82
  }
@@ -117,13 +117,13 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
117
117
  n,
118
118
  " Replacement id in edges: ",
119
119
  C(n, e, n)
120
- ), y.set(n, R(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) }));
120
+ ), p.set(n, R(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) }));
121
121
  }), e.nodes().forEach(function(n) {
122
122
  const a = e.children(n), r = e.edges();
123
- a.length > 0 ? (i.debug("Cluster identified", n, y), r.forEach((o) => {
123
+ a.length > 0 ? (i.debug("Cluster identified", n, p), r.forEach((o) => {
124
124
  const l = D(o.v, n), u = D(o.w, n);
125
- l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0);
126
- })) : i.debug("Not a cluster ", n, y);
125
+ l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", p.get(n)), d.get(n).externalConnections = !0);
126
+ })) : i.debug("Not a cluster ", n, p);
127
127
  });
128
128
  for (let n of d.keys()) {
129
129
  const a = d.get(n).id, r = e.parent(a);
@@ -154,9 +154,9 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
154
154
  }
155
155
  i.warn("Fix Replacing with XXX", r, o, n.name), e.setEdge(r, o, a, n.name);
156
156
  }
157
- }), i.warn("Adjusted Graph", h(e)), T(e, 0), i.trace(d);
157
+ }), i.warn("Adjusted Graph", v(e)), T(e, 0), i.trace(d);
158
158
  }, "adjustClustersAndEdges"), T = /* @__PURE__ */ w((e, t) => {
159
- if (i.warn("extractor - ", t, h(e), e.children("D")), t > 10) {
159
+ if (i.warn("extractor - ", t, v(e), e.children("D")), t > 10) {
160
160
  i.error("Bailing out");
161
161
  return;
162
162
  }
@@ -203,13 +203,13 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
203
203
  }).setDefaultEdgeLabel(function() {
204
204
  return {};
205
205
  });
206
- i.warn("Old graph before copy", h(e)), G(r, e, u, r), e.setNode(r, {
206
+ i.warn("Old graph before copy", v(e)), G(r, e, u, r), e.setNode(r, {
207
207
  clusterNode: !0,
208
208
  id: r,
209
209
  clusterData: d.get(r).clusterData,
210
210
  label: d.get(r).label,
211
211
  graph: u
212
- }), i.warn("New graph after copy node: (", r, ")", h(u)), i.debug("Old graph after copy", h(e));
212
+ }), i.warn("New graph after copy node: (", r, ")", v(u)), i.debug("Old graph after copy", v(e));
213
213
  } else
214
214
  i.warn(
215
215
  "Cluster ** ",
@@ -237,12 +237,12 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
237
237
  n = [...n, ...o];
238
238
  }), n;
239
239
  }, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a, r, o) => {
240
- i.warn("Graph in recursive render:XAX", h(t), r);
240
+ i.warn("Graph in recursive render:XAX", v(t), r);
241
241
  const l = t.graph().rankdir;
242
242
  i.trace("Dir in recursive render - dir:", l);
243
243
  const u = e.insert("g").attr("class", "root");
244
244
  t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
245
- const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), v = u.insert("g").attr("class", "edgeLabels"), X = u.insert("g").attr("class", "nodes");
245
+ const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), h = u.insert("g").attr("class", "edgeLabels"), X = u.insert("g").attr("class", "nodes");
246
246
  await Promise.all(
247
247
  t.nodes().map(async function(f) {
248
248
  const s = t.node(f);
@@ -276,7 +276,7 @@ Parent cluster`,
276
276
  t.node(f),
277
277
  o
278
278
  ), x = N.elem;
279
- z(s, x), s.diff = N.diff || 0, i.info(
279
+ q(s, x), s.diff = N.diff || 0, i.info(
280
280
  "New compound node after recursive render XAX",
281
281
  f,
282
282
  "width",
@@ -310,11 +310,11 @@ Parent cluster`,
310
310
  "Translating: ",
311
311
  d.get(s.v),
312
312
  d.get(s.w)
313
- ), await Z(v, g);
313
+ ), await Z(h, g);
314
314
  });
315
315
  await Promise.all(f);
316
- }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(h(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(h(t)));
317
- let O = 0, { subGraphTitleTotalMargin: S } = q(o);
316
+ }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(v(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(v(t)));
317
+ let O = 0, { subGraphTitleTotalMargin: S } = z(o);
318
318
  return await Promise.all(
319
319
  oe(t).map(async function(f) {
320
320
  const s = t.node(f);
@@ -423,11 +423,11 @@ Parent cluster`,
423
423
  width: 10,
424
424
  height: 10
425
425
  }), n.setParent(c, m.parentId);
426
- const v = structuredClone(o), X = structuredClone(o), p = structuredClone(o);
427
- v.label = "", v.arrowTypeEnd = "none", v.id = l + "-cyclic-special-1", X.arrowTypeStart = "none", X.arrowTypeEnd = "none", X.id = l + "-cyclic-special-mid", p.label = "", m.isGroup && (v.fromCluster = l, p.toCluster = l), p.id = l + "-cyclic-special-2", p.arrowTypeStart = "none", n.setEdge(l, u, v, l + "-cyclic-special-0"), n.setEdge(u, c, X, l + "-cyclic-special-1"), n.setEdge(c, l, p, l + "-cyc<lic-special-2");
426
+ const h = structuredClone(o), X = structuredClone(o), y = structuredClone(o);
427
+ h.label = "", h.arrowTypeEnd = "none", h.id = l + "-cyclic-special-1", X.arrowTypeStart = "none", X.arrowTypeEnd = "none", X.id = l + "-cyclic-special-mid", y.label = "", m.isGroup && (h.fromCluster = l, y.toCluster = l), y.id = l + "-cyclic-special-2", y.arrowTypeStart = "none", n.setEdge(l, u, h, l + "-cyclic-special-0"), n.setEdge(u, c, X, l + "-cyclic-special-1"), n.setEdge(c, l, y, l + "-cyc<lic-special-2");
428
428
  } else
429
429
  n.setEdge(o.start, o.end, { ...o }, o.id);
430
- }), i.warn("Graph at first:", JSON.stringify(h(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(h(n)));
430
+ }), i.warn("Graph at first:", JSON.stringify(v(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(v(n)));
431
431
  const r = V();
432
432
  await j(
433
433
  a,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-DlcOqYuh.cjs"),w=require("./chunk-4BX2VUAB-CeMFPKaY.cjs"),b=require("./chunk-QZHKN3VN-v9FRBMwC.cjs"),k=require("./mermaid-parser.core-By3g6lf1.cjs");var d=new b.ImperativeState(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),T=e.__name(()=>{d.reset(),e.clear()},"clear"),C=e.__name(()=>d.records.stack[0],"getRoot"),x=e.__name(()=>d.records.cnt,"getCount"),y=e.defaultConfig_default.treeView,B=e.__name(()=>e.cleanAndMerge(y,e.getConfig().treeView),"getConfig"),f=e.__name((t,r)=>{for(;t<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();const a={id:d.records.cnt++,level:t,name:r,children:[]};d.records.stack[d.records.stack.length-1].children.push(a),d.records.stack.push(a)},"addNode"),A={clear:T,addNode:f,getRoot:C,getCount:x,getConfig:B,getAccTitle:e.getAccTitle,getAccDescription:e.getAccDescription,getDiagramTitle:e.getDiagramTitle,setAccDescription:e.setAccDescription,setAccTitle:e.setAccTitle,setDiagramTitle:e.setDiagramTitle},u=A,V=e.__name(t=>{w.populateCommonDb(t,u),t.nodes.map(r=>u.addNode(r.indent?parseInt(r.indent):0,r.name))},"populate"),D={parse:e.__name(async t=>{const r=await k.parse("treeView",t);e.log.debug(r),V(r)},"parse")},N=e.__name((t,r,a,i,s)=>{const c=i.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:n}=c.node().getBBox(),l=g+s.paddingY*2,o=n+s.paddingX*2;c.attr("x",t+s.paddingX),c.attr("y",r+l/2),a.BBox={x:t,y:r,width:o,height:l}},"positionLabel"),v=e.__name((t,r,a,i,s,c)=>t.append("line").attr("x1",r).attr("y1",a).attr("x2",i).attr("y2",s).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),S=e.__name((t,r,a)=>{let i=0,s=0;const c=e.__name((n,l,o,p)=>{const m=p*(o.rowIndent+o.paddingX);N(m,i,l,n,o);const{height:h,width:_}=l.BBox;v(n,m-o.rowIndent,i+h/2,m,i+h/2,o.lineThickness),s=Math.max(s,m+_),i+=h},"drawNode"),g=e.__name((n,l=0)=>{c(t,n,a,l),n.children.forEach(h=>{g(h,l+1)});const{x:o,y:p,height:m}=n.BBox;if(n.children.length){const{y:h,height:_}=n.children[n.children.length-1].BBox;v(t,o+a.paddingX,p+m,o+a.paddingX,h+_/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(r),{totalHeight:i,totalWidth:s}},"drawTree"),X=e.__name((t,r,a,i)=>{e.log.debug(`Rendering treeView diagram
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-CjgqXqkM.cjs"),w=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),b=require("./chunk-QZHKN3VN-Dyhr8mWm.cjs"),k=require("./mermaid-parser.core-fjh_cn2l.cjs");var d=new b.ImperativeState(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),T=e.__name(()=>{d.reset(),e.clear()},"clear"),C=e.__name(()=>d.records.stack[0],"getRoot"),x=e.__name(()=>d.records.cnt,"getCount"),y=e.defaultConfig_default.treeView,B=e.__name(()=>e.cleanAndMerge(y,e.getConfig().treeView),"getConfig"),f=e.__name((t,r)=>{for(;t<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();const a={id:d.records.cnt++,level:t,name:r,children:[]};d.records.stack[d.records.stack.length-1].children.push(a),d.records.stack.push(a)},"addNode"),A={clear:T,addNode:f,getRoot:C,getCount:x,getConfig:B,getAccTitle:e.getAccTitle,getAccDescription:e.getAccDescription,getDiagramTitle:e.getDiagramTitle,setAccDescription:e.setAccDescription,setAccTitle:e.setAccTitle,setDiagramTitle:e.setDiagramTitle},u=A,V=e.__name(t=>{w.populateCommonDb(t,u),t.nodes.map(r=>u.addNode(r.indent?parseInt(r.indent):0,r.name))},"populate"),D={parse:e.__name(async t=>{const r=await k.parse("treeView",t);e.log.debug(r),V(r)},"parse")},N=e.__name((t,r,a,i,s)=>{const c=i.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:n}=c.node().getBBox(),l=g+s.paddingY*2,o=n+s.paddingX*2;c.attr("x",t+s.paddingX),c.attr("y",r+l/2),a.BBox={x:t,y:r,width:o,height:l}},"positionLabel"),v=e.__name((t,r,a,i,s,c)=>t.append("line").attr("x1",r).attr("y1",a).attr("x2",i).attr("y2",s).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),S=e.__name((t,r,a)=>{let i=0,s=0;const c=e.__name((n,l,o,p)=>{const m=p*(o.rowIndent+o.paddingX);N(m,i,l,n,o);const{height:h,width:_}=l.BBox;v(n,m-o.rowIndent,i+h/2,m,i+h/2,o.lineThickness),s=Math.max(s,m+_),i+=h},"drawNode"),g=e.__name((n,l=0)=>{c(t,n,a,l),n.children.forEach(h=>{g(h,l+1)});const{x:o,y:p,height:m}=n.BBox;if(n.children.length){const{y:h,height:_}=n.children[n.children.length-1].BBox;v(t,o+a.paddingX,p+m,o+a.paddingX,h+_/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(r),{totalHeight:i,totalWidth:s}},"drawTree"),X=e.__name((t,r,a,i)=>{e.log.debug(`Rendering treeView diagram
2
2
  `+t);const s=i.db,c=s.getRoot(),g=s.getConfig(),n=e.selectSvgElement(r),l=n.append("g");l.attr("class","tree-view");const{totalHeight:o,totalWidth:p}=S(l,c,g);n.attr("viewBox",`-${g.lineThickness/2} 0 ${p} ${o}`),e.configureSvgSize(n,o,p,g.useMaxWidth)},"draw"),$={draw:X},H=$,M={labelFontSize:"16px",labelColor:"black",lineColor:"black"},q=e.__name(({treeView:t})=>{const{labelFontSize:r,labelColor:a,lineColor:i}=e.cleanAndMerge(M,t);return`
3
3
  .treeView-node-label {
4
4
  font-size: ${r};
@@ -1,7 +1,7 @@
1
- import { _ as s, p as x, b as f, s as C, q as B, g as T, a as y, F as u, l as k, I as V, e as _, D, G as N, z as S } from "./cowboy-components-_6157Gms.js";
2
- import { p as I } from "./chunk-4BX2VUAB-Bn2rH23T.js";
3
- import { I as $ } from "./chunk-QZHKN3VN-LZahlHwm.js";
4
- import { p as z } from "./mermaid-parser.core-DsLOyQb-.js";
1
+ import { _ as s, p as x, b as f, s as C, q as B, g as T, a as y, F as u, l as k, I as V, e as _, D, G as N, z as S } from "./cowboy-components-CxawaKWM.js";
2
+ import { p as I } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
3
+ import { I as $ } from "./chunk-QZHKN3VN-BhntY1rB.js";
4
+ import { p as z } from "./mermaid-parser.core-CCHvxUQl.js";
5
5
  var d = new $(() => ({
6
6
  cnt: 1,
7
7
  stack: [
@@ -1,7 +1,7 @@
1
- import { _ as w, K as he, D as ee, F as J, I as ue, e as pe, l as Q, bb as P, d as j, b as fe, a as me, p as ge, q as ye, g as Se, s as ve, G as xe, bc as be, z as we } from "./cowboy-components-_6157Gms.js";
2
- import { s as Ce } from "./chunk-EDXVE4YY-CCku7m5j.js";
3
- import { p as Te } from "./chunk-4BX2VUAB-Bn2rH23T.js";
4
- import { p as Le } from "./mermaid-parser.core-DsLOyQb-.js";
1
+ import { _ as w, K as he, D as ee, F as J, I as ue, e as pe, l as Q, b6 as P, d as j, b as fe, a as me, p as ge, q as ye, g as Se, s as ve, G as xe, b7 as be, z as we } from "./cowboy-components-CxawaKWM.js";
2
+ import { s as Ce } from "./chunk-EDXVE4YY-DPpXfrr8.js";
3
+ import { p as Te } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
4
+ import { p as Le } from "./mermaid-parser.core-CCHvxUQl.js";
5
5
  import { b as O } from "./defaultLocale-BgPVtth8.js";
6
6
  import { o as Z } from "./ordinal-DfAQgscy.js";
7
7
  function $e(t) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./cowboy-components-DlcOqYuh.cjs"),se=require("./chunk-EDXVE4YY-nccXma-D.cjs"),ie=require("./chunk-4BX2VUAB-CeMFPKaY.cjs"),oe=require("./mermaid-parser.core-By3g6lf1.cjs"),I=require("./defaultLocale-C4wbwF1n.cjs"),U=require("./ordinal-CagbB1m8.cjs");function ce(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function de(){return this.eachAfter(ce)}function he(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ue(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function pe(t,a){for(var l=this,n=[l],r=[],i,d,u,m=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++m,this);return this}function fe(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function ge(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function me(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ye(t){for(var a=this,l=Se(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Se(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function ve(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function xe(){return Array.from(this)}function be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function we(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ce(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function Z(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Le)):a===void 0&&(a=Te);for(var l=new Y(t),n,r=[l],i,d,u,m;n=r.pop();)if((d=a(n.data))&&(m=(d=Array.from(d)).length))for(n.children=d,u=m-1;u>=0;--u)r.push(i=d[u]=new Y(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ae)}function _e(){return Z(this).eachBefore($e)}function Te(t){return t.children}function Le(t){return Array.isArray(t)?t[1]:null}function $e(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ae(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=Z.prototype={constructor:Y,count:de,each:he,eachAfter:pe,eachBefore:ue,find:fe,sum:ge,sort:me,path:ye,ancestors:ve,descendants:xe,leaves:be,links:we,copy:_e,[Symbol.iterator]:Ce};function Me(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Fe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ne(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(n-a)/t.value;++u<m;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Ve(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(r-l)/t.value;++u<m;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var ke=(1+Math.sqrt(5))/2;function ze(t,a,l,n,r,i){for(var d=[],u=a.children,m,c,p=0,w=0,s=u.length,b,v,x=a.value,f,y,F,M,z,E,N;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(y=F=f,E=Math.max(v/b,b/v)/(x*t),N=f*f*E,z=Math.max(F/N,N/y);w<s;++w){if(f+=c=u[w].value,c<y&&(y=c),c>F&&(F=c),N=f*f*E,M=Math.max(F/N,N/y),M>z){f-=c;break}z=M}d.push(m={value:f,dice:b<v,children:u.slice(p,w)}),m.dice?Ne(m,l,n,r,x?n+=v*f/x:i):Ve(m,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const De=(function t(a){function l(n,r,i,d,u){ze(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(ke);function Pe(){var t=De,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,m=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Fe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,y=s.y1-b;f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=y,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,y-=m(s)-b,f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),t(s,v,x,f,y))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=Me(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(m=typeof s=="function"?s:O(+s),p):m},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var B,K=(B=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(B,"TreeMapDB"),B);function Q(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(Q,"buildHierarchy");var Be=h.__name((t,a)=>{ie.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,m=Ee(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=Q(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),Ee=h.__name(t=>t.name?String(t.name):"","getItemName"),ee={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=oe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=ee.parser?.yy;if(!(n instanceof K))throw new 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.");Be(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Re=10,P=10,X=25,We=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Re,u=r.getDiagramTitle(),m=r.getRoot(),{themeVariables:c}=h.getConfig();if(!m)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*P:960,b=i.nodeHeight?i.nodeHeight*P:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+I.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+I.format(o||"")(g),"valueFormat")}else f=I.format(e)}catch(e){h.log.error("Error creating format function:",e),f=I.format(",")}const y=U.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=U.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),M=U.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=Z(m).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),J=Pe().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?X+P:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?P:0).paddingRight(e=>e.children&&e.children.length>0?P:0).paddingBottom(e=>e.children&&e.children.length>0?P:0).round(!0)(E),te=J.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,T=6;let L;i.showValues!==!1&&e.value?L=C-10-30-10-T:L=C-T-6;const $=Math.max(15,L),S=o.node();if(S.getComputedTextLength()>$){let _=g;for(;_.length>0;){if(_=g.substring(0,_.length-1),_.length===0){o.text("..."),S.getComputedTextLength()>$&&o.text("");break}if(o.text(_+"..."),S.getComputedTextLength()<=$)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ae=J.leaves(),G=z.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);G.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),G.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),G.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+M(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,T=o.node(),L=4,D=g-2*L,$=C-2*L;if(D<10||$<10){o.style("display","none");return}let S=parseInt(o.style("font-size"),10);const V=8,A=28,_=.6,k=6,W=2;for(;T.getComputedTextLength()>D&&S>V;)S--,o.style("font-size",`${S}px`);let H=Math.max(k,Math.min(A,Math.round(S*_))),j=S+W+H;for(;j>$&&S>V&&(S--,H=Math.max(k,Math.min(A,Math.round(S*_))),!(H<k&&S===V));)o.style("font-size",`${S}px`),j=S+W+H;o.style("font-size",`${S}px`),(T.getComputedTextLength()>D||S<V||$<S)&&o.style("display","none")}),i.showValues!==!1&&G.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+M(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const T=h.select(C).select(".treemapLabel");if(T.empty()||T.style("display")==="none"){g.style("display","none");return}const L=parseFloat(T.style("font-size")),D=28,$=.6,S=6,V=2,A=Math.max(S,Math.min(D,Math.round(L*$)));g.style("font-size",`${A}px`);const k=(o.y1-o.y0)/2+L/2+V;g.attr("y",k);const W=o.x1-o.x0,le=o.y1-o.y0-4,re=W-8;g.node().getComputedTextLength()>re||k+A>le||A<S?g.style("display","none"):g.style("display",null)});const ne=i.diagramPadding??8;se.setupViewPortForSVG(w,ne,"flowchart",i?.useMaxWidth||!1)},"draw"),He=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ie={draw:We,getClasses:He},qe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Oe=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(qe,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./cowboy-components-CjgqXqkM.cjs"),se=require("./chunk-EDXVE4YY-BrlRuHp3.cjs"),ie=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),oe=require("./mermaid-parser.core-fjh_cn2l.cjs"),I=require("./defaultLocale-C4wbwF1n.cjs"),U=require("./ordinal-CagbB1m8.cjs");function ce(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function de(){return this.eachAfter(ce)}function he(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ue(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function pe(t,a){for(var l=this,n=[l],r=[],i,d,u,m=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++m,this);return this}function fe(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function ge(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function me(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ye(t){for(var a=this,l=Se(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Se(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function ve(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function xe(){return Array.from(this)}function be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function we(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ce(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function Z(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Le)):a===void 0&&(a=Te);for(var l=new Y(t),n,r=[l],i,d,u,m;n=r.pop();)if((d=a(n.data))&&(m=(d=Array.from(d)).length))for(n.children=d,u=m-1;u>=0;--u)r.push(i=d[u]=new Y(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ae)}function _e(){return Z(this).eachBefore($e)}function Te(t){return t.children}function Le(t){return Array.isArray(t)?t[1]:null}function $e(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ae(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=Z.prototype={constructor:Y,count:de,each:he,eachAfter:pe,eachBefore:ue,find:fe,sum:ge,sort:me,path:ye,ancestors:ve,descendants:xe,leaves:be,links:we,copy:_e,[Symbol.iterator]:Ce};function Me(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Fe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ne(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(n-a)/t.value;++u<m;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Ve(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(r-l)/t.value;++u<m;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var ke=(1+Math.sqrt(5))/2;function ze(t,a,l,n,r,i){for(var d=[],u=a.children,m,c,p=0,w=0,s=u.length,b,v,x=a.value,f,y,F,M,z,E,N;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(y=F=f,E=Math.max(v/b,b/v)/(x*t),N=f*f*E,z=Math.max(F/N,N/y);w<s;++w){if(f+=c=u[w].value,c<y&&(y=c),c>F&&(F=c),N=f*f*E,M=Math.max(F/N,N/y),M>z){f-=c;break}z=M}d.push(m={value:f,dice:b<v,children:u.slice(p,w)}),m.dice?Ne(m,l,n,r,x?n+=v*f/x:i):Ve(m,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const De=(function t(a){function l(n,r,i,d,u){ze(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(ke);function Pe(){var t=De,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,m=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Fe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,y=s.y1-b;f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=y,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,y-=m(s)-b,f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),t(s,v,x,f,y))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=Me(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(m=typeof s=="function"?s:O(+s),p):m},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var B,K=(B=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(B,"TreeMapDB"),B);function Q(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(Q,"buildHierarchy");var Be=h.__name((t,a)=>{ie.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,m=Ee(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=Q(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),Ee=h.__name(t=>t.name?String(t.name):"","getItemName"),ee={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=oe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=ee.parser?.yy;if(!(n instanceof K))throw new 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.");Be(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Re=10,P=10,X=25,We=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Re,u=r.getDiagramTitle(),m=r.getRoot(),{themeVariables:c}=h.getConfig();if(!m)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*P:960,b=i.nodeHeight?i.nodeHeight*P:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+I.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+I.format(o||"")(g),"valueFormat")}else f=I.format(e)}catch(e){h.log.error("Error creating format function:",e),f=I.format(",")}const y=U.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=U.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),M=U.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=Z(m).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),J=Pe().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?X+P:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?P:0).paddingRight(e=>e.children&&e.children.length>0?P:0).paddingBottom(e=>e.children&&e.children.length>0?P:0).round(!0)(E),te=J.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,T=6;let L;i.showValues!==!1&&e.value?L=C-10-30-10-T:L=C-T-6;const $=Math.max(15,L),S=o.node();if(S.getComputedTextLength()>$){let _=g;for(;_.length>0;){if(_=g.substring(0,_.length-1),_.length===0){o.text("..."),S.getComputedTextLength()>$&&o.text("");break}if(o.text(_+"..."),S.getComputedTextLength()<=$)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ae=J.leaves(),G=z.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);G.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),G.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),G.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+M(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,T=o.node(),L=4,D=g-2*L,$=C-2*L;if(D<10||$<10){o.style("display","none");return}let S=parseInt(o.style("font-size"),10);const V=8,A=28,_=.6,k=6,W=2;for(;T.getComputedTextLength()>D&&S>V;)S--,o.style("font-size",`${S}px`);let H=Math.max(k,Math.min(A,Math.round(S*_))),j=S+W+H;for(;j>$&&S>V&&(S--,H=Math.max(k,Math.min(A,Math.round(S*_))),!(H<k&&S===V));)o.style("font-size",`${S}px`),j=S+W+H;o.style("font-size",`${S}px`),(T.getComputedTextLength()>D||S<V||$<S)&&o.style("display","none")}),i.showValues!==!1&&G.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+M(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const T=h.select(C).select(".treemapLabel");if(T.empty()||T.style("display")==="none"){g.style("display","none");return}const L=parseFloat(T.style("font-size")),D=28,$=.6,S=6,V=2,A=Math.max(S,Math.min(D,Math.round(L*$)));g.style("font-size",`${A}px`);const k=(o.y1-o.y0)/2+L/2+V;g.attr("y",k);const W=o.x1-o.x0,le=o.y1-o.y0-4,re=W-8;g.node().getComputedTextLength()>re||k+A>le||A<S?g.style("display","none"):g.style("display",null)});const ne=i.diagramPadding??8;se.setupViewPortForSVG(w,ne,"flowchart",i?.useMaxWidth||!1)},"draw"),He=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ie={draw:We,getClasses:He},qe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Oe=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(qe,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${r.sectionStrokeColor};
4
4
  stroke-width: ${r.sectionStrokeWidth};
@@ -1,6 +1,6 @@
1
- import { _ as l, s as k, g as I, q as R, p as F, a as _, b as D, I as E, z, F as y, D as C, G, l as P, K as W, e as B } from "./cowboy-components-_6157Gms.js";
2
- import { p as V } from "./chunk-4BX2VUAB-Bn2rH23T.js";
3
- import { p as H } from "./mermaid-parser.core-DsLOyQb-.js";
1
+ import { _ as l, s as k, g as I, q as R, p as F, a as _, b as D, I as E, z, F as y, D as C, G, l as P, K as W, e as B } from "./cowboy-components-CxawaKWM.js";
2
+ import { p as V } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
3
+ import { p as H } from "./mermaid-parser.core-CCHvxUQl.js";
4
4
  var h = {
5
5
  showLegend: !0,
6
6
  ticks: 5,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cowboy-components-DlcOqYuh.cjs"),L=require("./chunk-4BX2VUAB-CeMFPKaY.cjs"),S=require("./mermaid-parser.core-By3g6lf1.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),O=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...O,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),z=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:z,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},G=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await S.parse("radar",a);n.log.debug(e),G(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),o=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=o.max??Math.max(...l.map($=>Math.max(...$.entries))),x=o.min,v=Math.min(c.width,c.height)/2;j(u,i,v,o.ticks,o.graticule),q(u,i,v,c),C(u,i,l,x,g,o.graticule,c),A(u,l,o.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return n.configureSvgSize(a,r,t,e.useMaxWidth??!0),a.attr("viewBox",`0 0 ${t} ${r}`),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=t*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=e.length;for(let l=0;l<r;l++){const o=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/i-Math.PI/2,g=o*Math.cos(u),x=o*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let i=0;i<s;i++){const l=e[i].label,o=2*i*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(o)).attr("y2",t*r.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(o)).attr("y",t*r.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,i,l){const o=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==o)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/o-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});i==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const i=a[(s-1+t)%t],l=a[s],o=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(o.x-i.x)*e,y:l.y+(o.y-i.y)*e},m={x:o.x-(c.x-l.x)*e,y:o.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${o.x},${o.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((o,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cowboy-components-CjgqXqkM.cjs"),L=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),S=require("./mermaid-parser.core-fjh_cn2l.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),O=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...O,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),z=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:z,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},G=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await S.parse("radar",a);n.log.debug(e),G(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),o=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=o.max??Math.max(...l.map($=>Math.max(...$.entries))),x=o.min,v=Math.min(c.width,c.height)/2;j(u,i,v,o.ticks,o.graticule),q(u,i,v,c),C(u,i,l,x,g,o.graticule,c),A(u,l,o.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return n.configureSvgSize(a,r,t,e.useMaxWidth??!0),a.attr("viewBox",`0 0 ${t} ${r}`),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=t*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=e.length;for(let l=0;l<r;l++){const o=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/i-Math.PI/2,g=o*Math.cos(u),x=o*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let i=0;i<s;i++){const l=e[i].label,o=2*i*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(o)).attr("y2",t*r.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(o)).attr("y",t*r.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,i,l){const o=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==o)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/o-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});i==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const i=a[(s-1+t)%t],l=a[s],o=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(o.x-i.x)*e,y:l.y+(o.y-i.y)*e},m={x:o.x-(c.x-l.x)*e,y:o.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${o.x},${o.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((o,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,6 +1,6 @@
1
- import { _ as b, F as m, I as B, e as C, l as w, b as S, a as D, p as T, q as z, g as F, s as P, D as E, G as A, z as W } from "./cowboy-components-_6157Gms.js";
2
- import { p as _ } from "./chunk-4BX2VUAB-Bn2rH23T.js";
3
- import { p as N } from "./mermaid-parser.core-DsLOyQb-.js";
1
+ import { _ as b, F as m, I as B, e as C, l as w, b as S, a as D, p as T, q as z, g as F, s as P, D as E, G as A, z as W } from "./cowboy-components-CxawaKWM.js";
2
+ import { p as _ } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
3
+ import { p as N } from "./mermaid-parser.core-CCHvxUQl.js";
4
4
  var I = A.packet, u, v = (u = class {
5
5
  constructor() {
6
6
  this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = z, this.getAccDescription = F, this.setAccDescription = P;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./cowboy-components-DlcOqYuh.cjs"),x=require("./chunk-4BX2VUAB-CeMFPKaY.cjs"),B=require("./mermaid-parser.core-By3g6lf1.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new 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.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewBox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())T(u,y,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./cowboy-components-CjgqXqkM.cjs"),x=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),B=require("./mermaid-parser.core-fjh_cn2l.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new 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.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewBox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())T(u,y,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-55IACEB6-DX9DtTQS.cjs"),Me=require("./chunk-EDXVE4YY-nccXma-D.cjs"),n=require("./cowboy-components-DlcOqYuh.cjs"),Be=require("./channel-IzC5TEAD.cjs");var ye=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],y=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],I=[1,18],T=[1,21],R=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[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],O=[1,45],A=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[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],ge=[65,66,67,68,69],pe=[1,84],me=[1,83],be=[1,81],ke=[1,82],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,92],H=[1,91],J=[1,90],U=[19,58],Se=[1,101],Te=[1,100],le=[19,58,60,62],he={trace:n.__name(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:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].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.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 67:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 79:case 80:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 66:case 69:this.$=e[t];break;case 68:e[t-2].push(e[t]),this.$=e[t-2];break;case 70:this.$=e[t].replace(/"/g,"");break;case 71:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-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]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:re,66:ne,67:ae,68:ce,69:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:A},{16:47,40:O,41:A},{16:48,40:O,41:A},s(i,[2,4]),{11:49,40:S,48:D,50:I,51:T,52:R},{16:50,40:O,41:A},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:I,51:T,52:R},{64:57,70:[1,58],71:[1,59]},s(Y,[2,72]),s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:A,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:re,66:ne,67:ae,68:ce,69:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:re,66:ne,67:ae,68:ce,69:oe},s(ge,[2,77]),s(ge,[2,78]),{6:pe,10:me,39:80,42:be,47:ke},{40:[1,85],41:[1,86]},s(Ee,[2,43],{46:87,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:N}),{6:pe,10:me,39:88,42:be,47:ke},{14:89,40:Q,50:H,72:J},{16:93,40:O,41:A},{11:94,40:S,48:D,50:I,51:T,52:R},{18:95,19:[1,96],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:97,57:98,59:99,61:Se,62:Te}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(U,[2,62],{57:109,60:[1,110],62:Te}),s(U,[2,63]),s(le,[2,67]),s(U,[2,70]),s(le,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:O,41:A},s(Ee,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:Q,50:H,72:J},{16:115,40:O,41:A},{14:116,40:Q,50:H,72:J},s(i,[2,13]),s(U,[2,64]),{59:117,61:Se},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:N}),s(i,[2,11]),{13:[1,120],42:N},s(i,[2,10]),s(le,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:Q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ae=1,De=e.slice.call(arguments,1),g=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);g.setInput(a,x.yy),x.yy.lexer=g,x.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var de=g.yylloc;e.push(de);var Le=g.options&&g.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(m){l.length=l.length-2*m,f.length=f.length-m,e.length=e.length-m}n.__name(we,"popStack");function Ne(){var m;return m=r.pop()||g.lex()||Ae,typeof m!="number"&&(m instanceof Array&&(r=m,m=r.pop()),m=c.symbols_[m]||m),m}n.__name(Ne,"lex");for(var p,v,b,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?b=this.defaultActions[v]:((p===null||typeof p>"u")&&(p=Ne()),b=Z[v]&&Z[v][p]),typeof b>"u"||!b.length||!b[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");g.showPosition?fe="Parse error on line "+(ee+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-55IACEB6-CRJ5yCrP.cjs"),Me=require("./chunk-EDXVE4YY-BrlRuHp3.cjs"),n=require("./cowboy-components-CjgqXqkM.cjs"),Be=require("./channel-DO31wbvk.cjs");var ye=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],y=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],I=[1,18],T=[1,21],R=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[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],O=[1,45],A=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[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],ge=[65,66,67,68,69],pe=[1,84],me=[1,83],be=[1,81],ke=[1,82],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,92],H=[1,91],J=[1,90],U=[19,58],Se=[1,101],Te=[1,100],le=[19,58,60,62],he={trace:n.__name(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:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].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.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 67:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 79:case 80:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 66:case 69:this.$=e[t];break;case 68:e[t-2].push(e[t]),this.$=e[t-2];break;case 70:this.$=e[t].replace(/"/g,"");break;case 71:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-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]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:re,66:ne,67:ae,68:ce,69:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:A},{16:47,40:O,41:A},{16:48,40:O,41:A},s(i,[2,4]),{11:49,40:S,48:D,50:I,51:T,52:R},{16:50,40:O,41:A},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:I,51:T,52:R},{64:57,70:[1,58],71:[1,59]},s(Y,[2,72]),s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:A,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:re,66:ne,67:ae,68:ce,69:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:re,66:ne,67:ae,68:ce,69:oe},s(ge,[2,77]),s(ge,[2,78]),{6:pe,10:me,39:80,42:be,47:ke},{40:[1,85],41:[1,86]},s(Ee,[2,43],{46:87,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:N}),{6:pe,10:me,39:88,42:be,47:ke},{14:89,40:Q,50:H,72:J},{16:93,40:O,41:A},{11:94,40:S,48:D,50:I,51:T,52:R},{18:95,19:[1,96],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:97,57:98,59:99,61:Se,62:Te}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(U,[2,62],{57:109,60:[1,110],62:Te}),s(U,[2,63]),s(le,[2,67]),s(U,[2,70]),s(le,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:O,41:A},s(Ee,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:Q,50:H,72:J},{16:115,40:O,41:A},{14:116,40:Q,50:H,72:J},s(i,[2,13]),s(U,[2,64]),{59:117,61:Se},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:N}),s(i,[2,11]),{13:[1,120],42:N},s(i,[2,10]),s(le,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:Q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ae=1,De=e.slice.call(arguments,1),g=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);g.setInput(a,x.yy),x.yy.lexer=g,x.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var de=g.yylloc;e.push(de);var Le=g.options&&g.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(m){l.length=l.length-2*m,f.length=f.length-m,e.length=e.length-m}n.__name(we,"popStack");function Ne(){var m;return m=r.pop()||g.lex()||Ae,typeof m!="number"&&(m instanceof Array&&(r=m,m=r.pop()),m=c.symbols_[m]||m),m}n.__name(Ne,"lex");for(var p,v,b,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?b=this.defaultActions[v]:((p===null||typeof p>"u")&&(p=Ne()),b=Z[v]&&Z[v][p]),typeof b>"u"||!b.length||!b[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");g.showPosition?fe="Parse error on line "+(ee+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+se.join(", ")+", got '"+(this.terminals_[p]||p)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(p==Ae?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(fe,{text:g.match,token:this.terminals_[p]||p,line:g.yylineno,loc:de,expected:se})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+p);switch(b[0]){case 1:l.push(p),f.push(g.yytext),e.push(g.yylloc),l.push(b[1]),p=null,Oe=g.yyleng,t=g.yytext,ee=g.yylineno,de=g.yylloc;break;case 2:if(E=this.productions_[b[1]][1],w.$=f[f.length-E],w._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},Le&&(w._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),_e=this.performAction.apply(w,[t,Oe,ee,x.yy,b[1],f,e].concat(De)),typeof _e<"u")return _e;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),e=e.slice(0,-1*E)),l.push(this.productions_[b[1]][0]),f.push(w.$),e.push(w._$),Ce=Z[l[l.length-2]][l[l.length-1]],l.push(Ce);break;case 3:return!0}}return!0},"parse")},xe=(function(){var C={EOF:1,parseError:n.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:n.__name(function(a,c){return this.yy=c||this.yy||{},this._input=a,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:n.__name(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:n.__name(function(a){var c=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(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:n.__name(function(a){this.unput(this.match.slice(a))},"less"),pastInput:n.__name(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,7 +1,7 @@
1
- import { g as Bt } from "./chunk-55IACEB6-DdI_-Q_K.js";
2
- import { s as Ft } from "./chunk-EDXVE4YY-CCku7m5j.js";
3
- import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, p as Kt, q as Ut, c as rt, l as V, z as Zt, x as jt, B as Wt, C as Qt, o as Xt, r as Ht, d as qt, u as Jt } from "./cowboy-components-_6157Gms.js";
4
- import { c as $t } from "./channel-CMrLSZsY.js";
1
+ import { g as Bt } from "./chunk-55IACEB6-BauZDeFH.js";
2
+ import { s as Ft } from "./chunk-EDXVE4YY-DPpXfrr8.js";
3
+ import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, p as Kt, q as Ut, c as rt, l as V, z as Zt, x as jt, B as Wt, C as Qt, o as Xt, r as Ht, d as qt, u as Jt } from "./cowboy-components-CxawaKWM.js";
4
+ import { c as $t } from "./channel-BvR-WhLo.js";
5
5
  var gt = (function() {
6
6
  var s = /* @__PURE__ */ d(function(C, n, a, o) {
7
7
  for (a = a || {}, o = C.length; o--; a[C[o]] = n) ;
@@ -234,7 +234,8 @@ export interface RuleClickedEvent {
234
234
  ruleId: string;
235
235
  }
236
236
  export interface ProblemClickedEvent {
237
- problem: ProblemItem;
237
+ problem: Problem;
238
+ problemItem?: ProblemItem;
238
239
  launchedFromProblems: boolean;
239
240
  }
240
241
  export interface ToastExpiredEvent {
@@ -262,6 +263,7 @@ export interface DiagramRequestedEvent {
262
263
  jsonPath: string;
263
264
  nodeType?: string;
264
265
  title?: string;
266
+ onComplete?: () => void;
265
267
  }
266
268
  export interface FormFieldChangeEvent {
267
269
  key: string;
@@ -2,7 +2,7 @@ import { ElkNode } from 'elkjs';
2
2
  import { Edge, GraphMode, GraphResponse, Node, VacuumResult } from '../model/graph.js';
3
3
  import { GraphNodeComponent } from '../components/visualizer/nodes/graph-node.js';
4
4
  import { ForeignObjectComponent } from '../components/visualizer/foreign-object.js';
5
- import { EdgeComponent } from '../components/visualizer/edge.js';
5
+ import { EdgeComponent, type EdgePathStyle } from '../components/visualizer/edge.js';
6
6
  import { ExplorerNode, ExplorerEdge } from '../components/visualizer/explorer.js';
7
7
  export interface ExplorerComponentFactoryDeps {
8
8
  getNodeMap: () => Map<string, Node>;
@@ -34,6 +34,7 @@ export interface BuildEdgesContext {
34
34
  collapsedEdges: Map<string, boolean>;
35
35
  bendPoints: boolean;
36
36
  bendEdges: boolean;
37
+ edgePathStyle?: EdgePathStyle;
37
38
  nodeLimitExceeded: boolean;
38
39
  povMode: boolean;
39
40
  }
@@ -192,6 +192,7 @@ export class ExplorerComponentFactory {
192
192
  animated: !disableAnimations,
193
193
  bendPoints: ctx.bendPoints,
194
194
  bendCurve: ctx.bendEdges,
195
+ edgePathStyle: ctx.edgePathStyle,
195
196
  roundCorners: shouldRoundCorners,
196
197
  isDependency: isDependency,
197
198
  dim: isDependency && ctx.povMode,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-FMBD7UC4-Bt5qtKsR.cjs"),l=require("./cowboy-components-DlcOqYuh.cjs"),We=require("./chunk-YZCP3GAM-DJNk9cax.cjs"),qe=require("./chunk-55IACEB6-DX9DtTQS.cjs"),Ye=require("./chunk-EDXVE4YY-nccXma-D.cjs"),je=require("./channel-IzC5TEAD.cjs");var Ke="flowchart-",I1,He=(I1=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),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=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,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")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,r,n,h,f,c={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let D;A.includes(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-FMBD7UC4-0x38b8wg.cjs"),l=require("./cowboy-components-CjgqXqkM.cjs"),We=require("./chunk-YZCP3GAM-B_2rYHHe.cjs"),qe=require("./chunk-55IACEB6-CRJ5yCrP.cjs"),Ye=require("./chunk-EDXVE4YY-BrlRuHp3.cjs"),je=require("./channel-DO31wbvk.cjs");var Ke="flowchart-",I1,He=(I1=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),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=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,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")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,r,n,h,f,c={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let D;A.includes(`
2
2
  `)?D=A+`
3
3
  `:D=`{
4
4
  `+A+`
@@ -1,9 +1,9 @@
1
- import { g as He } from "./chunk-FMBD7UC4-BG1WV71B.js";
2
- import { _ as b, n as Me, l as J, c as g1, o as Xe, r as Qe, u as re, b as Je, s as Ze, p as $e, a as et, g as tt, q as st, k as it, t as rt, J as at, v as nt, x as se, d as ie, y as ut, z as ot, A as lt, B as ct } from "./cowboy-components-_6157Gms.js";
3
- import { c as ht } from "./chunk-YZCP3GAM-BfcbLjwl.js";
4
- import { g as dt } from "./chunk-55IACEB6-DdI_-Q_K.js";
5
- import { s as pt } from "./chunk-EDXVE4YY-CCku7m5j.js";
6
- import { c as ft } from "./channel-CMrLSZsY.js";
1
+ import { g as He } from "./chunk-FMBD7UC4-CtyzUnzx.js";
2
+ import { _ as b, n as Me, l as J, c as g1, o as Xe, r as Qe, u as re, b as Je, s as Ze, p as $e, a as et, g as tt, q as st, k as it, t as rt, J as at, v as nt, x as se, d as ie, y as ut, z as ot, A as lt, B as ct } from "./cowboy-components-CxawaKWM.js";
3
+ import { c as ht } from "./chunk-YZCP3GAM--UtgfYoK.js";
4
+ import { g as dt } from "./chunk-55IACEB6-BauZDeFH.js";
5
+ import { s as pt } from "./chunk-EDXVE4YY-DPpXfrr8.js";
6
+ import { c as ft } from "./channel-BvR-WhLo.js";
7
7
  var gt = "flowchart-", R1, bt = (R1 = class {
8
8
  // cspell:ignore funs
9
9
  constructor() {
@@ -1,6 +1,6 @@
1
- import { bd as on, be as $n, bf as cn, bg as un, bh as ln, bi as ue, bj as On, _ as d, g as Hn, s as Nn, q as Pn, p as Rn, a as Vn, b as zn, c as Ft, d as Bt, e as qn, bk as rt, l as Tt, k as Zn, j as Bn, z as Xn, u as Gn } from "./cowboy-components-_6157Gms.js";
2
- import { g as oe } from "./change-list-item-DMLMmZ6U.js";
3
- import { b as jn, t as Ne, c as Qn, a as Jn, l as Kn } from "./linear-CZplgftO.js";
1
+ import { b8 as on, b9 as $n, ba as cn, bb as un, bc as ln, bd as ue, be as On, _ as d, g as Hn, s as Nn, q as Pn, p as Rn, a as Vn, b as zn, c as Ft, d as Bt, e as qn, bf as rt, l as Tt, k as Zn, j as Bn, z as Xn, u as Gn } from "./cowboy-components-CxawaKWM.js";
2
+ import { g as oe } from "./change-list-item-Bu_mPv-k.js";
3
+ import { b as jn, t as Ne, c as Qn, a as Jn, l as Kn } from "./linear-DFB2dCGq.js";
4
4
  import { i as tr } from "./init-DjUOC4st.js";
5
5
  function er(t, e) {
6
6
  let n;