@datalayer/agent-runtimes 1.5.102 → 1.5.106

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 (438) hide show
  1. package/dist-embed/chunks/AgentInspector-CuvRXcQ7.js +1 -0
  2. package/dist-embed/chunks/{AgentInspectorDialog-Cf8jT6kR.js → AgentInspectorDialog-CXZGyBXE.js} +1 -1
  3. package/dist-embed/chunks/{CellSidebarExtension-9Xkl4nS1.js → CellSidebarExtension-BMT21AEe.js} +16 -16
  4. package/dist-embed/chunks/{DeckComponent-LPAk473I.js → DeckComponent-CDcvO2c7.js} +2 -2
  5. package/dist-embed/chunks/{DocumentView-CSX_hWLV.js → DocumentView-Bd505ec3.js} +1 -1
  6. package/dist-embed/chunks/EphemeralDocument-Cb738Fb7.js +1 -0
  7. package/dist-embed/chunks/{EphemeralNotebook-C3e2FrSq.js → EphemeralNotebook-ayRs87hn.js} +1 -1
  8. package/dist-embed/chunks/ExcalidrawComponent-zLN6lMMh.js +1 -0
  9. package/dist-embed/chunks/ExcalidrawModal-DmayKvhz.js +1 -0
  10. package/dist-embed/chunks/{JupyterLexicalExtension-Cq2BuRs0.js → JupyterLexicalExtension-DS8J9r_J.js} +5 -5
  11. package/dist-embed/chunks/{KernelVariables-BmWOn-n_.js → KernelVariables-JJah7mez.js} +1 -1
  12. package/dist-embed/chunks/NotebookToolSurfaces-Sjfasvqp.js +1 -0
  13. package/dist-embed/chunks/{NotebookView-yvVgAED6.js → NotebookView-BF9IDoeS.js} +1 -1
  14. package/dist-embed/chunks/{Output-DF1wzbCD.js → Output-UPeDwjyI.js} +1 -1
  15. package/dist-embed/chunks/{SandboxDetailsDialog-Bue8qhTm.js → SandboxDetailsDialog-BbFzOjmh.js} +1 -1
  16. package/dist-embed/chunks/WidgetVariableView-D4QMzgOL.js +1 -0
  17. package/dist-embed/chunks/{YouTubePlugin-aO-jWjdh.js → YouTubePlugin-C7CGtLzz.js} +1 -1
  18. package/dist-embed/chunks/abnfDiagram-VCTEODGH-B71U5XYF.js +1 -0
  19. package/dist-embed/chunks/abnfDiagram-VCTEODGH-Bc-fKn8l.js +1 -0
  20. package/dist-embed/chunks/abnfDiagram-VCTEODGH-HXaofwo9.js +1 -0
  21. package/dist-embed/chunks/advancedFormat-CshdkaWz.js +1 -0
  22. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DZ6ta9d0.js → ar-SA-G6X2FPQ2-CCIrNclv.js} +1 -1
  23. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CFyAMJIx.js → architectureDiagram-5GKGNRK7-BQB0U0rT.js} +2 -2
  24. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BbVwTk8b.js → architectureDiagram-5GKGNRK7-C2AE1F2T.js} +2 -2
  25. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DeCj6zMe.js → architectureDiagram-5GKGNRK7-CjuFI4z9.js} +2 -2
  26. package/dist-embed/chunks/az-AZ-76LH7QW2-CSTNZhVp.js +1 -0
  27. package/dist-embed/chunks/{bg-BG-XCXSNQG7-B7QcVEVY.js → bg-BG-XCXSNQG7-DsDH3Vku.js} +1 -1
  28. package/dist-embed/chunks/{blockDiagram-868be97b-CfRaagn_.js → blockDiagram-868be97b-B68KiGkE.js} +3 -3
  29. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjRmv4QH.js → blockDiagram-I7D4REHJ-4XoG2wPO.js} +2 -2
  30. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-SufaJtAi.js → blockDiagram-I7D4REHJ-BGPlI9Uq.js} +2 -2
  31. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-kguVnun5.js → blockDiagram-I7D4REHJ-Cd5dHGkJ.js} +2 -2
  32. package/dist-embed/chunks/{bn-BD-2XOGV67Q-TxN1ubr7.js → bn-BD-2XOGV67Q-CGa5jk8k.js} +1 -1
  33. package/dist-embed/chunks/{c4Diagram-3f4bdde3-FyOk3LSs.js → c4Diagram-3f4bdde3-BuW3MIkw.js} +2 -2
  34. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-SgQrn2PO.js → c4Diagram-7LVT6UL2-DCfGVCNK.js} +2 -2
  35. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-Cf2_xw9_.js → c4Diagram-7LVT6UL2-DgPxihhe.js} +2 -2
  36. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-D3Vjz3Z8.js → c4Diagram-7LVT6UL2-SYqo_8ln.js} +2 -2
  37. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Dqf9cvaK.js → ca-ES-6MX7JW3Y-DPni6_r-.js} +1 -1
  38. package/dist-embed/chunks/channel-BkDTnYd-.js +1 -0
  39. package/dist-embed/chunks/{chunk-2Q5K7J3B-BJrhmygH.js → chunk-2Q5K7J3B-C6_NDlXz.js} +1 -1
  40. package/dist-embed/chunks/{chunk-2Q5K7J3B-DuPgZFdB.js → chunk-2Q5K7J3B-CXYPY0Ns.js} +1 -1
  41. package/dist-embed/chunks/{chunk-2Q5K7J3B-DBdUm--2.js → chunk-2Q5K7J3B-DAZwxp62.js} +1 -1
  42. package/dist-embed/chunks/{chunk-5VM5RSS4-C1Bpa3VF.js → chunk-5VM5RSS4-BE7Xw1qR.js} +1 -1
  43. package/dist-embed/chunks/{chunk-5VM5RSS4-B-UBqvd2.js → chunk-5VM5RSS4-CkLbaiHB.js} +1 -1
  44. package/dist-embed/chunks/{chunk-5VM5RSS4-nQugzoqo.js → chunk-5VM5RSS4-lyh9Xnd2.js} +1 -1
  45. package/dist-embed/chunks/{chunk-F27PBJKO-D3zJwrkg.js → chunk-F27PBJKO-C3nbzFWn.js} +1 -1
  46. package/dist-embed/chunks/{chunk-F27PBJKO-DYiXXgT1.js → chunk-F27PBJKO-Db7_X2ml.js} +1 -1
  47. package/dist-embed/chunks/{chunk-F27PBJKO-MI-KHY-9.js → chunk-F27PBJKO-DgaijeLE.js} +1 -1
  48. package/dist-embed/chunks/{chunk-IMKFNOWR-i4q8sDDB.js → chunk-IMKFNOWR-C0voe75K.js} +1 -1
  49. package/dist-embed/chunks/{chunk-IMKFNOWR-BbylDqs_.js → chunk-IMKFNOWR-CGh3mc7U.js} +1 -1
  50. package/dist-embed/chunks/{chunk-IMKFNOWR-DJk_fAZn.js → chunk-IMKFNOWR-wq8-ajoP.js} +1 -1
  51. package/dist-embed/chunks/{chunk-JWPE2WC7-BSzyfwPR.js → chunk-JWPE2WC7-BnJZ2J3A.js} +1 -1
  52. package/dist-embed/chunks/{chunk-JWPE2WC7-8ggfUh7n.js → chunk-JWPE2WC7-C7Vh66mu.js} +1 -1
  53. package/dist-embed/chunks/{chunk-JWPE2WC7-D1PH2kGj.js → chunk-JWPE2WC7-IsI16_x9.js} +1 -1
  54. package/dist-embed/chunks/{chunk-POPQ4Y6H-DhZnEisk.js → chunk-POPQ4Y6H-C74YP19P.js} +1 -1
  55. package/dist-embed/chunks/{chunk-POPQ4Y6H-pegurE5S.js → chunk-POPQ4Y6H-Jfdu8NYy.js} +1 -1
  56. package/dist-embed/chunks/{chunk-POPQ4Y6H-CKubmyGa.js → chunk-POPQ4Y6H-igzMuKdy.js} +1 -1
  57. package/dist-embed/chunks/{chunk-SVP7TREG-BF112NUO.js → chunk-SVP7TREG-BRTUczs-.js} +1 -1
  58. package/dist-embed/chunks/{chunk-SVP7TREG-D5yRz6xm.js → chunk-SVP7TREG-D5GVP8mx.js} +1 -1
  59. package/dist-embed/chunks/{chunk-SVP7TREG-CoZRhamu.js → chunk-SVP7TREG-V_21qG9f.js} +1 -1
  60. package/dist-embed/chunks/{chunk-TICWLB2K-XF3ekUig.js → chunk-TICWLB2K-C64kdJiT.js} +1 -1
  61. package/dist-embed/chunks/{chunk-TICWLB2K-v9-jDBp6.js → chunk-TICWLB2K-COF4m2Q-.js} +1 -1
  62. package/dist-embed/chunks/{chunk-TICWLB2K-Bs5ffYyR.js → chunk-TICWLB2K-CmvMmjES.js} +1 -1
  63. package/dist-embed/chunks/{chunk-XXDRQBXY-D_FJqGi2.js → chunk-XXDRQBXY-CfGL0WH9.js} +1 -1
  64. package/dist-embed/chunks/{chunk-XXDRQBXY-l6VvHymR.js → chunk-XXDRQBXY-ClqYjHLS.js} +1 -1
  65. package/dist-embed/chunks/{chunk-XXDRQBXY-D9b9c_ic.js → chunk-XXDRQBXY-p7YSmJfy.js} +1 -1
  66. package/dist-embed/chunks/classDiagram-ZZMXUADV-2HYBPww6.js +1 -0
  67. package/dist-embed/chunks/classDiagram-ZZMXUADV-BLOgen3q.js +1 -0
  68. package/dist-embed/chunks/classDiagram-ZZMXUADV-DanFMb8A.js +1 -0
  69. package/dist-embed/chunks/classDiagram-f62afe4f-CNTk_RA5.js +2 -0
  70. package/dist-embed/chunks/classDiagram-v2-604399ef-BPXwuOhe.js +2 -0
  71. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2HYBPww6.js +1 -0
  72. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BLOgen3q.js +1 -0
  73. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-DanFMb8A.js +1 -0
  74. package/dist-embed/chunks/cose-bilkent-JH36ORCC-BMDoRbpo.js +1 -0
  75. package/dist-embed/chunks/cose-bilkent-JH36ORCC-C2S2DIKI.js +1 -0
  76. package/dist-embed/chunks/cose-bilkent-JH36ORCC-DSHzx2BI.js +1 -0
  77. package/dist-embed/chunks/{createText-aed3d8b3-Dw977TwJ.js → createText-aed3d8b3-BxsX7KcT.js} +1 -1
  78. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CwlCWt4T.js → cs-CZ-2BRQDIVT-C2VJoA4e.js} +1 -1
  79. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-CXpjlIcM.js +62 -0
  80. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DNkIHI2P.js +62 -0
  81. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-Und8rlmR.js +62 -0
  82. package/dist-embed/chunks/d3-color-Jd8hXty2.js +1 -0
  83. package/dist-embed/chunks/d3-hierarchy-Cx6senVY.js +1 -0
  84. package/dist-embed/chunks/d3-interpolate-BVJucgkN.js +1 -0
  85. package/dist-embed/chunks/d3-scale-B-wnA6MO.js +1 -0
  86. package/dist-embed/chunks/d3-scale-chromatic-BM1YEV1K.js +1 -0
  87. package/dist-embed/chunks/{da-DK-5WZEPLOC-BYQLzbDz.js → da-DK-5WZEPLOC-B-8uCnDZ.js} +1 -1
  88. package/dist-embed/chunks/{dagre-GXQ25YYZ-Bj78I_3y.js → dagre-GXQ25YYZ-B8HVheVA.js} +2 -2
  89. package/dist-embed/chunks/{dagre-GXQ25YYZ-BvxZGlAG.js → dagre-GXQ25YYZ-BLRf1T-i.js} +2 -2
  90. package/dist-embed/chunks/{dagre-GXQ25YYZ-BiceTC0E.js → dagre-GXQ25YYZ-DOA3t5IT.js} +2 -2
  91. package/dist-embed/chunks/dayjs.min-u3zuoSR8.js +1 -0
  92. package/dist-embed/chunks/{de-DE-XR44H4JA-CdWGWxSf.js → de-DE-XR44H4JA-mVAvUgBj.js} +1 -1
  93. package/dist-embed/chunks/{diagram-S7CK7UJ4-Cmb9Ykqm.js → diagram-S7CK7UJ4-D9c-d1DT.js} +2 -2
  94. package/dist-embed/chunks/{diagram-S7CK7UJ4-DMHeQr8F.js → diagram-S7CK7UJ4-DwDc_czt.js} +2 -2
  95. package/dist-embed/chunks/{diagram-S7CK7UJ4-a4FArSaJ.js → diagram-S7CK7UJ4-NIp8rRdr.js} +2 -2
  96. package/dist-embed/chunks/diagram-UQ7AKVKN-CZK18sap.js +41 -0
  97. package/dist-embed/chunks/diagram-UQ7AKVKN-DhMlTIH1.js +41 -0
  98. package/dist-embed/chunks/diagram-UQ7AKVKN-DtYHVrIv.js +41 -0
  99. package/dist-embed/chunks/{diagram-VSXAHHWV-D3lurhxI.js → diagram-VSXAHHWV-BbVAIuUE.js} +2 -2
  100. package/dist-embed/chunks/{diagram-VSXAHHWV-BsxdgIBU.js → diagram-VSXAHHWV-CClL-qVb.js} +2 -2
  101. package/dist-embed/chunks/{diagram-VSXAHHWV-BzwWsSpj.js → diagram-VSXAHHWV-CVuj7Wwr.js} +2 -2
  102. package/dist-embed/chunks/diagram-VX7I27RA-CHGaftMB.js +24 -0
  103. package/dist-embed/chunks/diagram-VX7I27RA-DUtes5TO.js +24 -0
  104. package/dist-embed/chunks/diagram-VX7I27RA-W9zdS7er.js +24 -0
  105. package/dist-embed/chunks/diagram-Z3DM3KII-CcvMwZF5.js +24 -0
  106. package/dist-embed/chunks/diagram-Z3DM3KII-JLzwAzwv.js +24 -0
  107. package/dist-embed/chunks/diagram-Z3DM3KII-nooaP3A_.js +24 -0
  108. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwaCwxtV.js +1 -0
  109. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-QUuH7KoJ.js +1 -0
  110. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-paF78xx4.js +1 -0
  111. package/dist-embed/chunks/edges-b2856ca0-Cw6uMsAp.js +4 -0
  112. package/dist-embed/chunks/{el-GR-BZB4AONW-TO3tEZdB.js → el-GR-BZB4AONW-BdoQC7zI.js} +1 -1
  113. package/dist-embed/chunks/{erDiagram-5d81789a-D3blvZNR.js → erDiagram-5d81789a-DvA05QFt.js} +3 -3
  114. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-HUP46o_S.js → erDiagram-RLTQ6QDP-B8yauwFZ.js} +5 -5
  115. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BvRjMgFJ.js → erDiagram-RLTQ6QDP-Bl7uSMrm.js} +5 -5
  116. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-pCbnjfMk.js → erDiagram-RLTQ6QDP-DZBeHxcW.js} +5 -5
  117. package/dist-embed/chunks/{es-ES-U4NZUMDT-BKZIANpq.js → es-ES-U4NZUMDT-mSL14Hu6.js} +1 -1
  118. package/dist-embed/chunks/{eu-ES-A7QVB2H4-vz5ecl6y.js → eu-ES-A7QVB2H4-i8MVUvvA.js} +1 -1
  119. package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dmmoro5p.js → fa-IR-HGAKTJCU-BfG5w5pm.js} +1 -1
  120. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-4bWurBmp.js → fi-FI-Z5N7JZ37-CxjOtOw5.js} +1 -1
  121. package/dist-embed/chunks/{flowDb-185abca5-DzeO696Q.js → flowDb-185abca5-CZQPmzTd.js} +1 -1
  122. package/dist-embed/chunks/{flowDiagram-1629c991-BCS_QkN2.js → flowDiagram-1629c991-DVkQIanX.js} +3 -3
  123. package/dist-embed/chunks/{flowDiagram-HODETNUW-C7KqgwLg.js → flowDiagram-HODETNUW-B051mCrB.js} +3 -3
  124. package/dist-embed/chunks/{flowDiagram-HODETNUW-CObZVANE.js → flowDiagram-HODETNUW-CIxGkvY2.js} +3 -3
  125. package/dist-embed/chunks/{flowDiagram-HODETNUW-7NyW99NE.js → flowDiagram-HODETNUW-nx8wz3GE.js} +3 -3
  126. package/dist-embed/chunks/flowDiagram-v2-1d953310-BajQh2l6.js +1 -0
  127. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-72x8aEiK.js → flowchart-elk-definition-6df44142-DVsdecvJ.js} +2 -2
  128. package/dist-embed/chunks/{fr-FR-RHASNOE6-QYoMYddl.js → fr-FR-RHASNOE6-Dx18-mdk.js} +1 -1
  129. package/dist-embed/chunks/{ganttDiagram-3b0b3873-BsGIi6q0.js → ganttDiagram-3b0b3873-B_Ze5xJT.js} +4 -4
  130. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Cm2jOWpZ.js → ganttDiagram-EL5Y4UJY-BNa2jv7L.js} +3 -3
  131. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Bmj6A7sI.js → ganttDiagram-EL5Y4UJY-DWOvMpi_.js} +3 -3
  132. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-QZMrDtOa.js → ganttDiagram-EL5Y4UJY-Ix5W25h0.js} +3 -3
  133. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CY0V5PYj.js +106 -0
  134. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CieNMLLD.js +106 -0
  135. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-DtTUInJx.js +106 -0
  136. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-C5glz__6.js → gitGraphDiagram-f01e8bc2-B7CTdpxh.js} +2 -2
  137. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CuWi9MKI.js → gl-ES-HMX3MZ6V-D0gZC3Qs.js} +1 -1
  138. package/dist-embed/chunks/{he-IL-6SHJWFNN-CZ7rDY29.js → he-IL-6SHJWFNN-BpsgumHA.js} +1 -1
  139. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BOtn2GYM.js → hi-IN-IWLTKZ5I-1U7gawIv.js} +1 -1
  140. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Da2fd7BW.js → hu-HU-A5ZG7DT2-zY5nzegx.js} +1 -1
  141. package/dist-embed/chunks/{id-ID-SAP4L64H-DygGPsGR.js → id-ID-SAP4L64H-p8kr2CI9.js} +1 -1
  142. package/dist-embed/chunks/{index-CDGGINfN.js → index-4SXYvuYi.js} +1 -1
  143. package/dist-embed/chunks/{index-9bae90f3-C6Xh0qGL.js → index-9bae90f3-_IqcZYff.js} +1 -1
  144. package/dist-embed/chunks/{index-B6ISkj2i.js → index-B9_Wb9MN.js} +1 -1
  145. package/dist-embed/chunks/index-BWTYs63X.js +1 -0
  146. package/dist-embed/chunks/{index-DIoOWi0w.js → index-BbLfaxiL.js} +2 -2
  147. package/dist-embed/chunks/{index-CMna4RvT.js → index-BeDw56-P.js} +1 -1
  148. package/dist-embed/chunks/{index-DUtVEK_h.js → index-Bi_Lrakd.js} +55 -55
  149. package/dist-embed/chunks/index-BqnIBWZ9.js +35 -0
  150. package/dist-embed/chunks/index-C0jxnCf_.js +1 -0
  151. package/dist-embed/chunks/{index-Gy_uosvT.js → index-C6p1fI_l.js} +1 -1
  152. package/dist-embed/chunks/{index-e62XL6B3.js → index-C7Y6qb5P.js} +41 -41
  153. package/dist-embed/chunks/index-CCwTAE5t.js +1 -0
  154. package/dist-embed/chunks/index-CEoN6Igz.js +1 -0
  155. package/dist-embed/chunks/index-CGywzy5S.js +2 -0
  156. package/dist-embed/chunks/index-CslfR-ws.js +1 -0
  157. package/dist-embed/chunks/index-D1WP6gqy.js +2 -0
  158. package/dist-embed/chunks/{index-BeA4XI1t.js → index-DTxyD1Cg.js} +1 -1
  159. package/dist-embed/chunks/index-Da0hjuSR.js +1 -0
  160. package/dist-embed/chunks/{index-ErZ9_T3y.js → index-DjEoMYXa.js} +12 -12
  161. package/dist-embed/chunks/{index-CF9HUHN8.js → index-Dy9evYbM.js} +1 -1
  162. package/dist-embed/chunks/index-Dz7T8mqj.js +6 -0
  163. package/dist-embed/chunks/index-LJsqLy5q.js +1 -0
  164. package/dist-embed/chunks/{index-B40K_78l.js → index-MIDt7IxB.js} +1 -1
  165. package/dist-embed/chunks/{index-DrXZebZS.js → index-VedUjmyH.js} +1 -1
  166. package/dist-embed/chunks/{index-fi_KzQoZ.js → index-lC26z37v.js} +1 -1
  167. package/dist-embed/chunks/index-n0wY5AOk.js +17 -0
  168. package/dist-embed/chunks/index-x4xjV1QS.js +1 -0
  169. package/dist-embed/chunks/infoDiagram-27XIBGKW-CjrU5YxR.js +2 -0
  170. package/dist-embed/chunks/infoDiagram-27XIBGKW-CygK1B8s.js +2 -0
  171. package/dist-embed/chunks/infoDiagram-27XIBGKW-y2jlnC74.js +2 -0
  172. package/dist-embed/chunks/{infoDiagram-a29d40f1-C84ltR9z.js → infoDiagram-a29d40f1-CxLYanuc.js} +2 -2
  173. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-19vfXaSu.js → ishikawaDiagram-5VMMS53U-B4bKsqAA.js} +2 -2
  174. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BKwHxl_c.js → ishikawaDiagram-5VMMS53U-B_r8LPoh.js} +6 -6
  175. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DxmD4pNL.js → ishikawaDiagram-5VMMS53U-D3Gs1zXZ.js} +6 -6
  176. package/dist-embed/chunks/{it-IT-JPQ66NNP-C61ct2vR.js → it-IT-JPQ66NNP-CxNntye1.js} +1 -1
  177. package/dist-embed/chunks/{ja-JP-DBVTYXUO-DsuHLQzd.js → ja-JP-DBVTYXUO-D2eNPUzJ.js} +1 -1
  178. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BtJM0rtE.js → journeyDiagram-3NMN7TZE-CPKVw4E2.js} +2 -2
  179. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CRrrfAmB.js → journeyDiagram-3NMN7TZE-CdSVPmSP.js} +2 -2
  180. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-D8vrwew7.js → journeyDiagram-3NMN7TZE-D5N9LfNb.js} +2 -2
  181. package/dist-embed/chunks/{journeyDiagram-95396277-91Yn8aB5.js → journeyDiagram-95396277-maRimpb1.js} +2 -2
  182. package/dist-embed/chunks/kaa-6HZHGXH3-B9Jduu1i.js +1 -0
  183. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-lymWJChw.js → kab-KAB-ZGHBKWFO-D80S5Hke.js} +1 -1
  184. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BI3EeL_e.js → kanban-definition-UXKFOSKX-6OQwjjDA.js} +2 -2
  185. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BD4YKCh4.js → kanban-definition-UXKFOSKX-9X8AwfWh.js} +2 -2
  186. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DFA9oGiU.js → kanban-definition-UXKFOSKX-DNrz6elS.js} +2 -2
  187. package/dist-embed/chunks/kk-KZ-P5N5QNE5-dttniW7L.js +1 -0
  188. package/dist-embed/chunks/{km-KH-HSX4SM5Z-C__pm6qQ.js → km-KH-HSX4SM5Z-CwFUU4KI.js} +1 -1
  189. package/dist-embed/chunks/{ko-KR-MTYHY66A-D5yQS5Y4.js → ko-KR-MTYHY66A-6qkv_Dp9.js} +1 -1
  190. package/dist-embed/chunks/{ku-TR-6OUDTVRD-OIGj43yE.js → ku-TR-6OUDTVRD-C4Mq1URI.js} +1 -1
  191. package/dist-embed/chunks/{layout-C3jdOWbU.js → layout-Br9qZ7AW.js} +1 -1
  192. package/dist-embed/chunks/{layout-DWmuzni9.js → layout-CA7S7W88.js} +1 -1
  193. package/dist-embed/chunks/{layout-Dj_zgK51.js → layout-DvZ5NRsQ.js} +1 -1
  194. package/dist-embed/chunks/{lt-LT-XHIRWOB4-UGZ71aBo.js → lt-LT-XHIRWOB4-Cxuhrxpe.js} +1 -1
  195. package/dist-embed/chunks/{lv-LV-5QDEKY6T-LRIHo0NC.js → lv-LV-5QDEKY6T-2nfUsrY3.js} +1 -1
  196. package/dist-embed/chunks/{mermaid.core-DIIwHAlX.js → mermaid.core-CCCzTT5Y.js} +14 -14
  197. package/dist-embed/chunks/{mermaid.core-DF6jaPnW.js → mermaid.core-DRZOVBT3.js} +11 -11
  198. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D6u4H_xO.js → mindmap-definition-YA3MSWOX-BjThuhS8.js} +4 -4
  199. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-fBVFRUCw.js → mindmap-definition-YA3MSWOX-DFMy0Zmf.js} +4 -4
  200. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-3bvIJFMV.js → mindmap-definition-YA3MSWOX-H2yRQ6u8.js} +4 -4
  201. package/dist-embed/chunks/{mindmap-definition-e4c1d938-DbYGQCf5.js → mindmap-definition-e4c1d938-vjhx3bcZ.js} +4 -4
  202. package/dist-embed/chunks/{mr-IN-CRQNXWMA-BXO8TJMv.js → mr-IN-CRQNXWMA-HC9cqgFo.js} +1 -1
  203. package/dist-embed/chunks/my-MM-5M5IBNSE-0zP3tJ-6.js +1 -0
  204. package/dist-embed/chunks/{nb-NO-T6EIAALU-UnDxFcwr.js → nb-NO-T6EIAALU-B7KA5H1w.js} +1 -1
  205. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CdTeVF3c.js → nl-NL-IS3SIHDZ-BqrheHUd.js} +1 -1
  206. package/dist-embed/chunks/{nn-NO-6E72VCQL-nLVDeuAb.js → nn-NO-6E72VCQL-DjkBZa_a.js} +1 -1
  207. package/dist-embed/chunks/{oc-FR-POXYY2M6-CGDfJA5K.js → oc-FR-POXYY2M6-Cu_3WEeT.js} +1 -1
  208. package/dist-embed/chunks/{pa-IN-N4M65BXN-h3gZ9Ic4.js → pa-IN-N4M65BXN-5JMtBjML.js} +1 -1
  209. package/dist-embed/chunks/pegDiagram-XKGWAZYB-1AWuvKdx.js +1 -0
  210. package/dist-embed/chunks/pegDiagram-XKGWAZYB-BAhw3noh.js +1 -0
  211. package/dist-embed/chunks/pegDiagram-XKGWAZYB-CO2oVfmH.js +1 -0
  212. package/dist-embed/chunks/{percentages-BXMCSKIN-BQMwWCQD.js → percentages-BXMCSKIN-BIq0kwQL.js} +5 -5
  213. package/dist-embed/chunks/pieDiagram-E7YTZNPT-8ObvGarl.js +39 -0
  214. package/dist-embed/chunks/pieDiagram-E7YTZNPT-BGXX7TE5.js +39 -0
  215. package/dist-embed/chunks/pieDiagram-E7YTZNPT-uyUfJur0.js +39 -0
  216. package/dist-embed/chunks/{pieDiagram-c941bede-Cj4FBN3j.js → pieDiagram-c941bede-CiwJwky_.js} +5 -5
  217. package/dist-embed/chunks/{pl-PL-T2D74RX3-D83IXMGV.js → pl-PL-T2D74RX3--llsK5eC.js} +1 -1
  218. package/dist-embed/chunks/{pt-BR-5N22H2LF-C-tCCB23.js → pt-BR-5N22H2LF-Bakh_msU.js} +1 -1
  219. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BfalAAyJ.js → pt-PT-UZXXM6DQ-OxrpUCfx.js} +1 -1
  220. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Be4yYxRi.js → quadrantDiagram-AXDQQJYC-CRV4o4qb.js} +4 -4
  221. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DWfnlrHL.js → quadrantDiagram-AXDQQJYC-CRh_0GTn.js} +4 -4
  222. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-299UcZFW.js → quadrantDiagram-AXDQQJYC-MaByZiV4.js} +2 -2
  223. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-qh1uZ5v_.js → quadrantDiagram-cf8b8fe0-Wunt4_d5.js} +2 -2
  224. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-CCaje6VF.js +1 -0
  225. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-Dqphwk0Z.js +1 -0
  226. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-JQKf7O31.js +1 -0
  227. package/dist-embed/chunks/{renderer-VW8Zgoi-.js → renderer-DX-Dx5-F.js} +1 -1
  228. package/dist-embed/chunks/{requirementDiagram-53bda41b-C_KZy5Fe.js → requirementDiagram-53bda41b-TCOAg1rM.js} +2 -2
  229. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-Bm0upXLv.js +84 -0
  230. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-C2uapxGA.js +84 -0
  231. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-DJxuQg-7.js +84 -0
  232. package/dist-embed/chunks/{ro-RO-JPDTUUEW-BE1v-gpB.js → ro-RO-JPDTUUEW-uuey0xG_.js} +1 -1
  233. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CVNYAGNj.js → ru-RU-B4JR7IUQ-DqFdpWv9.js} +1 -1
  234. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BWZcxo3B.js → sankeyDiagram-P5KCCOFB-CLZzsFhP.js} +6 -6
  235. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CatGDvVZ.js → sankeyDiagram-P5KCCOFB-D_ovN9Nw.js} +6 -6
  236. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-2w9aAGeM.js → sankeyDiagram-P5KCCOFB-SUZr8YYS.js} +6 -6
  237. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-B6bWzn2q.js → sankeyDiagram-c3ef121a-_iCn_Xqv.js} +2 -2
  238. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CaIr2bxU.js → sequenceDiagram-82a5b84f-CZ9YH4d5.js} +2 -2
  239. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B67pBo6k.js → sequenceDiagram-WJ2MYXX4-BKNAKMB-.js} +2 -2
  240. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DlhUecfS.js → sequenceDiagram-WJ2MYXX4-BiNzit2i.js} +2 -2
  241. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CBRqz17v.js → sequenceDiagram-WJ2MYXX4-CxJBbJNf.js} +2 -2
  242. package/dist-embed/chunks/si-LK-N5RQ5JYF-CvENlHMe.js +1 -0
  243. package/dist-embed/chunks/sizeCapture-INFHLROL-CfXgq7GH.js +1 -0
  244. package/dist-embed/chunks/sizeCapture-INFHLROL-DdEoxy_h.js +1 -0
  245. package/dist-embed/chunks/sizeCapture-INFHLROL-DzGAMY7V.js +1 -0
  246. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CnlsIkzl.js → sk-SK-C5VTKIMK-kO7aKifc.js} +1 -1
  247. package/dist-embed/chunks/{sl-SI-NN7IZMDC-BUxNatf_.js → sl-SI-NN7IZMDC-BSfu_xTu.js} +1 -1
  248. package/dist-embed/chunks/stateDiagram-43e79a5f-BD1qBXVh.js +1 -0
  249. package/dist-embed/chunks/stateDiagram-D77RDMKH-BdFfP6-j.js +1 -0
  250. package/dist-embed/chunks/stateDiagram-D77RDMKH-C6Rh7O9V.js +1 -0
  251. package/dist-embed/chunks/stateDiagram-D77RDMKH-CZM-t-r5.js +1 -0
  252. package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CKbh55dE.js +1 -0
  253. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BHkGSAh9.js +1 -0
  254. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CBRXg201.js +1 -0
  255. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CtwsmZKB.js +1 -0
  256. package/dist-embed/chunks/{styles-455b33cd-DTnW81zt.js → styles-455b33cd-IAZJyrtZ.js} +1 -1
  257. package/dist-embed/chunks/styles-f932cba9-CulCjJgD.js +116 -0
  258. package/dist-embed/chunks/{styles-fcc2142b-DS8IKMau.js → styles-fcc2142b-B41TEwDB.js} +1 -1
  259. package/dist-embed/chunks/{subset-shared.chunk-CTwDOb0-.js → subset-shared.chunk-BerOLB9H.js} +1 -1
  260. package/dist-embed/chunks/subset-worker.chunk-Yn1lZtLj.js +1 -0
  261. package/dist-embed/chunks/{sv-SE-XGPEYMSR-cyuprKcs.js → sv-SE-XGPEYMSR-CwWdagrq.js} +1 -1
  262. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BxghTVdH.js → svgDrawCommon-148a3cd9-BFE-Fru-.js} +1 -1
  263. package/dist-embed/chunks/swimlanes-42K2YHIH-B4ynl1fF.js +1 -0
  264. package/dist-embed/chunks/swimlanes-42K2YHIH-C3Ob3hRX.js +1 -0
  265. package/dist-embed/chunks/swimlanes-42K2YHIH-C4SGzTvJ.js +1 -0
  266. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BXjgQ3GL.js +8 -0
  267. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-C7a6omGx.js +8 -0
  268. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Clkyphbe.js +8 -0
  269. package/dist-embed/chunks/{ta-IN-2NMHFXQM-Byh0RKP5.js → ta-IN-2NMHFXQM-re3EiMgT.js} +1 -1
  270. package/dist-embed/chunks/th-TH-HPSO5L25-DtD0NaIp.js +2 -0
  271. package/dist-embed/chunks/{timeline-definition-24CTP7MA-D_rwkEbI.js → timeline-definition-24CTP7MA-BNDeFofK.js} +2 -2
  272. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CbdMtllQ.js → timeline-definition-24CTP7MA-Cq0llA9E.js} +2 -2
  273. package/dist-embed/chunks/{timeline-definition-24CTP7MA-4T6yq6Xl.js → timeline-definition-24CTP7MA-meb3YGxd.js} +2 -2
  274. package/dist-embed/chunks/{timeline-definition-7545f45a-BV1QYS8b.js → timeline-definition-7545f45a-_IXtAyNt.js} +2 -2
  275. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CnqB5qYp.js → tr-TR-DEFEU3FU-C7nWPcvx.js} +1 -1
  276. package/dist-embed/chunks/{uk-UA-QMV73CPH-T0hbDiAg.js → uk-UA-QMV73CPH-BXHaS8be.js} +1 -1
  277. package/dist-embed/chunks/{venn.esm-6w9J1Bn7.js → venn.esm-DcgGHut9.js} +2 -2
  278. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bvimw16k.js → vennDiagram-4TSXK5OY-5vXx1zIe.js} +4 -4
  279. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CBXnZEfU.js → vennDiagram-4TSXK5OY-B_43mUqs.js} +4 -4
  280. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CYAyZJWP.js → vennDiagram-4TSXK5OY-cdkeJjkW.js} +4 -4
  281. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BbVJrx8R.js → vi-VN-M7AON7JQ-D29vQQkQ.js} +1 -1
  282. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B9iqutw0.js → wardleyDiagram-VM6X3IG4-1VXLU7d1.js} +2 -2
  283. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-k_2iCVDr.js → wardleyDiagram-VM6X3IG4-CDIFTq28.js} +2 -2
  284. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CkqyRdUt.js → wardleyDiagram-VM6X3IG4-xAtWwDfd.js} +2 -2
  285. package/dist-embed/chunks/{xychartDiagram-3f383b91-L3ZS62LU.js → xychartDiagram-3f383b91-BuaB0j8f.js} +5 -5
  286. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z--E3rc8E6.js → xychartDiagram-S5SC5T6Z-BL2yRZOy.js} +2 -2
  287. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-COkEQpnW.js → xychartDiagram-S5SC5T6Z-BUZxSIAO.js} +2 -2
  288. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DufzH9GE.js → xychartDiagram-S5SC5T6Z-CHRdLn8n.js} +2 -2
  289. package/dist-embed/chunks/{zh-CN-LNUGB5OW-B2XCvd4u.js → zh-CN-LNUGB5OW-hmUIulf5.js} +1 -1
  290. package/dist-embed/chunks/zh-HK-E62DVLB3-Bew_EKh4.js +1 -0
  291. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-fBqMZFIZ.js → zh-TW-RAJ6MFWO-GAr_9KYn.js} +1 -1
  292. package/dist-embed/datalayer-app-main.js +28 -27
  293. package/lib/apps/core/canvasParts.d.ts +1 -1
  294. package/lib/apps/plugins/canvas-parts/index.d.ts +9 -1
  295. package/lib/apps/plugins/canvas-parts/index.js +42 -0
  296. package/lib/battles/index.d.ts +1 -0
  297. package/lib/battles/index.js +5 -0
  298. package/lib/battles/verdict.d.ts +76 -0
  299. package/lib/battles/verdict.js +122 -0
  300. package/lib/chat/assistant/SpeechBalloon.js +2 -2
  301. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +7 -8
  302. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +133 -27
  303. package/lib/components/code-sandboxes/CodeSandboxPicker.js +3 -0
  304. package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +3 -2
  305. package/lib/components/code-sandboxes/codeSandboxEnvironments.js +3 -2
  306. package/lib/index.d.ts +1 -1
  307. package/lib/models/Environment.d.ts +8 -0
  308. package/lib/models/environments.generated.d.ts +9 -1
  309. package/lib/models/environments.generated.js +1 -1
  310. package/lib/specs/battles.d.ts +17 -0
  311. package/lib/specs/battles.js +144 -0
  312. package/lib/specs/guards.d.ts +11 -3
  313. package/lib/specs/guards.js +67 -636
  314. package/lib/specs/index.d.ts +1 -1
  315. package/lib/specs/index.js +1 -1
  316. package/lib/specs/ops.js +23 -701
  317. package/lib/specs/tracks.d.ts +2 -0
  318. package/lib/specs/tracks.js +70 -0
  319. package/lib/types/agentspecs.d.ts +59 -9
  320. package/lib/types/guardrails.d.ts +62 -94
  321. package/package.json +2 -2
  322. package/scripts/codegen/generate_agents.py +0 -1
  323. package/scripts/codegen/generate_ops.py +82 -26
  324. package/dist-embed/chunks/AgentInspector-CgyzKeHG.js +0 -1
  325. package/dist-embed/chunks/EphemeralDocument-BqDLSVvb.js +0 -1
  326. package/dist-embed/chunks/ExcalidrawComponent-DIz2Hp3F.js +0 -1
  327. package/dist-embed/chunks/ExcalidrawModal-Bz4nrIlA.js +0 -1
  328. package/dist-embed/chunks/NotebookToolSurfaces-Ch-7Pk_I.js +0 -1
  329. package/dist-embed/chunks/Tableau10-B-NsZVaP.js +0 -1
  330. package/dist-embed/chunks/WidgetVariableView-BEQqawKT.js +0 -1
  331. package/dist-embed/chunks/abnfDiagram-VCTEODGH-Cviduj-e.js +0 -1
  332. package/dist-embed/chunks/abnfDiagram-VCTEODGH-DRYUPXKp.js +0 -1
  333. package/dist-embed/chunks/abnfDiagram-VCTEODGH-uQbfcTeh.js +0 -1
  334. package/dist-embed/chunks/advancedFormat-Cytc7Lc-.js +0 -1
  335. package/dist-embed/chunks/arc-CvuHsKVP.js +0 -1
  336. package/dist-embed/chunks/array-BKyUJesY.js +0 -1
  337. package/dist-embed/chunks/az-AZ-76LH7QW2-By3wlF01.js +0 -1
  338. package/dist-embed/chunks/band-dPffDWoQ.js +0 -1
  339. package/dist-embed/chunks/channel-DSSC-Z6W.js +0 -1
  340. package/dist-embed/chunks/classDiagram-ZZMXUADV-2t4a-wcA.js +0 -1
  341. package/dist-embed/chunks/classDiagram-ZZMXUADV-9WVRK_2x.js +0 -1
  342. package/dist-embed/chunks/classDiagram-ZZMXUADV-Dh5wgyac.js +0 -1
  343. package/dist-embed/chunks/classDiagram-f62afe4f-CaiUEXWA.js +0 -2
  344. package/dist-embed/chunks/classDiagram-v2-604399ef-CZz_cEb3.js +0 -2
  345. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2t4a-wcA.js +0 -1
  346. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-9WVRK_2x.js +0 -1
  347. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-Dh5wgyac.js +0 -1
  348. package/dist-embed/chunks/color-CG7_7V2-.js +0 -1
  349. package/dist-embed/chunks/cose-bilkent-JH36ORCC-CYdr15Qb.js +0 -1
  350. package/dist-embed/chunks/cose-bilkent-JH36ORCC-D7xkFMi4.js +0 -1
  351. package/dist-embed/chunks/cose-bilkent-JH36ORCC-DyL8-f5N.js +0 -1
  352. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-B-cEXnFH.js +0 -62
  353. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DkFOdRYH.js +0 -62
  354. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-wHBoNo7j.js +0 -62
  355. package/dist-embed/chunks/defaultLocale-5voVPcsN.js +0 -1
  356. package/dist-embed/chunks/diagram-UQ7AKVKN-2cPTLkSD.js +0 -41
  357. package/dist-embed/chunks/diagram-UQ7AKVKN-CSMVfm7b.js +0 -41
  358. package/dist-embed/chunks/diagram-UQ7AKVKN-C_jt0u6D.js +0 -41
  359. package/dist-embed/chunks/diagram-VX7I27RA-BJ2YQn5K.js +0 -24
  360. package/dist-embed/chunks/diagram-VX7I27RA-DA1J99rY.js +0 -24
  361. package/dist-embed/chunks/diagram-VX7I27RA-Dm3pOzxq.js +0 -24
  362. package/dist-embed/chunks/diagram-Z3DM3KII-C5sZC4ig.js +0 -24
  363. package/dist-embed/chunks/diagram-Z3DM3KII-CVmSZjIo.js +0 -24
  364. package/dist-embed/chunks/diagram-Z3DM3KII-DVQwJUFe.js +0 -24
  365. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwtRvYrD.js +0 -1
  366. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-Qmmh9DWc.js +0 -1
  367. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-YwFzQxr5.js +0 -1
  368. package/dist-embed/chunks/edges-b2856ca0-Cn0ZKu5E.js +0 -4
  369. package/dist-embed/chunks/flowDiagram-v2-1d953310-5ThB3y9b.js +0 -1
  370. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-1XlTL5m_.js +0 -106
  371. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-APR1d-tc.js +0 -106
  372. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-BAP8EKLt.js +0 -106
  373. package/dist-embed/chunks/hcl-DhKDpa4Z.js +0 -1
  374. package/dist-embed/chunks/index-BF1314TG.js +0 -1
  375. package/dist-embed/chunks/index-BYQPOTc8.js +0 -1
  376. package/dist-embed/chunks/index-Ben6aEe6.js +0 -1
  377. package/dist-embed/chunks/index-CFSUTqDN.js +0 -1
  378. package/dist-embed/chunks/index-CvYzv8kf.js +0 -1
  379. package/dist-embed/chunks/index-D4a8E78-.js +0 -34
  380. package/dist-embed/chunks/index-D7tggxpZ.js +0 -1
  381. package/dist-embed/chunks/index-D99YJ2MP.js +0 -1
  382. package/dist-embed/chunks/index-DDgcbci7.js +0 -17
  383. package/dist-embed/chunks/index-DOI3H9VM.js +0 -2
  384. package/dist-embed/chunks/index-DcQTeOGT.js +0 -2
  385. package/dist-embed/chunks/index-DqGFpucN.js +0 -6
  386. package/dist-embed/chunks/index-Dw3RE4d5.js +0 -1
  387. package/dist-embed/chunks/index-MUnyaGR7.js +0 -1
  388. package/dist-embed/chunks/index-atSsKceW.js +0 -1
  389. package/dist-embed/chunks/infoDiagram-27XIBGKW-BRFvlR5E.js +0 -2
  390. package/dist-embed/chunks/infoDiagram-27XIBGKW-D2VjYulT.js +0 -2
  391. package/dist-embed/chunks/infoDiagram-27XIBGKW-mC-wx4e9.js +0 -2
  392. package/dist-embed/chunks/init-Gi6I4Gst.js +0 -1
  393. package/dist-embed/chunks/kaa-6HZHGXH3-DXk4Goog.js +0 -1
  394. package/dist-embed/chunks/kk-KZ-P5N5QNE5-BVNL23_r.js +0 -1
  395. package/dist-embed/chunks/line-DT6NiYhi.js +0 -1
  396. package/dist-embed/chunks/linear-BpNYqLzz.js +0 -1
  397. package/dist-embed/chunks/my-MM-5M5IBNSE-CRUW8B_2.js +0 -1
  398. package/dist-embed/chunks/ordinal-Cboi1Yqb.js +0 -1
  399. package/dist-embed/chunks/path-CbwjOpE9.js +0 -1
  400. package/dist-embed/chunks/pegDiagram-XKGWAZYB-CtWh5AAX.js +0 -1
  401. package/dist-embed/chunks/pegDiagram-XKGWAZYB-D0zyGRR2.js +0 -1
  402. package/dist-embed/chunks/pegDiagram-XKGWAZYB-fy3EphLc.js +0 -1
  403. package/dist-embed/chunks/pie-BU9ZrLAC.js +0 -1
  404. package/dist-embed/chunks/pieDiagram-E7YTZNPT-BsWWB93l.js +0 -39
  405. package/dist-embed/chunks/pieDiagram-E7YTZNPT-CArVdetR.js +0 -39
  406. package/dist-embed/chunks/pieDiagram-E7YTZNPT-DNxhxWw6.js +0 -39
  407. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-C9HR2VRW.js +0 -1
  408. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-COJ52k8E.js +0 -1
  409. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-DPlEOlHJ.js +0 -1
  410. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-2dtqnxe5.js +0 -84
  411. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BSUw2gn-.js +0 -84
  412. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BxFFoRpi.js +0 -84
  413. package/dist-embed/chunks/round-BfLWjAu-.js +0 -1
  414. package/dist-embed/chunks/si-LK-N5RQ5JYF-DUuCNsO5.js +0 -1
  415. package/dist-embed/chunks/sizeCapture-INFHLROL-BEjCofob.js +0 -1
  416. package/dist-embed/chunks/sizeCapture-INFHLROL-DMtgrDCy.js +0 -1
  417. package/dist-embed/chunks/sizeCapture-INFHLROL-fPkZXPlY.js +0 -1
  418. package/dist-embed/chunks/stateDiagram-43e79a5f-C9c4jD1w.js +0 -1
  419. package/dist-embed/chunks/stateDiagram-D77RDMKH-BwBOxQvl.js +0 -1
  420. package/dist-embed/chunks/stateDiagram-D77RDMKH-C3hsuLFV.js +0 -1
  421. package/dist-embed/chunks/stateDiagram-D77RDMKH-dWsBlue-.js +0 -1
  422. package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CcvTvP8J.js +0 -1
  423. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BynTEikt.js +0 -1
  424. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CRNCbzUu.js +0 -1
  425. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-yYUm25Cg.js +0 -1
  426. package/dist-embed/chunks/styles-f932cba9-DvbsLPZ9.js +0 -116
  427. package/dist-embed/chunks/subset-worker.chunk-CY8G1DYa.js +0 -1
  428. package/dist-embed/chunks/swimlanes-42K2YHIH-CGEWUgMO.js +0 -1
  429. package/dist-embed/chunks/swimlanes-42K2YHIH-DY5rybP3.js +0 -1
  430. package/dist-embed/chunks/swimlanes-42K2YHIH-DiRx3T6S.js +0 -1
  431. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmSxUdGr.js +0 -8
  432. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmTIqylO.js +0 -8
  433. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Dmom79F0.js +0 -8
  434. package/dist-embed/chunks/th-TH-HPSO5L25-C8zeMDt2.js +0 -2
  435. package/dist-embed/chunks/zh-HK-E62DVLB3-D8xk7wby.js +0 -1
  436. package/lib/specs/guardrails.d.ts +0 -22
  437. package/lib/specs/guardrails.js +0 -391
  438. package/scripts/codegen/generate_guardrails.py +0 -475
@@ -1,62 +0,0 @@
1
- import{p as xt}from"./chunk-JWPE2WC7-8ggfUh7n.js";import{s as gt,g as $t,p as bt,o as wt,a as Ct,b as vt,_ as i,l as O,D as Dt,d as kt,q as At,A as U,B as Tt,y as Q,F as at}from"./index-e62XL6B3.js";import{p as Bt}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var rt=i(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=i(()=>H.domains,"getDomains"),Mt=i(()=>H.transitions,"getTransitions"),zt=i(t=>{if(t)for(const e of t){const n=e.domain,o=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:o})}},"setDomains"),Lt=i(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=i(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=i(()=>{At(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=i(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Wt={parse:i(async t=>{const e=await Bt("cynefin",t);O.debug(e),It(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i(E,"seededRandom");function it(t){let e=0;for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);e=(e<<5)-e+o,e|=0}return e}i(it,"hashString");function st(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:it(e)}i(st,"resolveSeed");function ct(t,e,n,o){const c=t/2,m=o??t*.015,v=7,W=e/v,d=[];for(let a=0;a<=v;a++){const p=E(n+a*17)*m*2-m;d.push({x:c+p,y:a*W})}let D=`M${d[0].x},${d[0].y}`;for(let a=0;a<d.length-1;a++){const p=d[a],s=d[a+1],f=(p.y+s.y)/2,b=a%2===0?1:-1,h=m*1.5*b*E(n+a*31+7),F=p.x+h,R=f,_=s.x-h;D+=` C${F},${R} ${_},${f} ${s.x},${s.y}`}return D}i(ct,"generateFoldPath");function lt(t,e,n,o){const c=e/2,m=o??e*.015,v=7,W=t/v,d=[];for(let a=0;a<=v;a++){const p=E(n+a*23)*m*2-m;d.push({x:a*W,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let a=0;a<d.length-1;a++){const p=d[a],s=d[a+1],f=(p.x+s.x)/2,b=a%2===0?1:-1,h=m*1.5*b*E(n+a*37+11),F=f,R=p.y+h,_=f,z=s.y-h;D+=` C${F},${R} ${_},${z} ${s.x},${s.y}`}return D}i(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,o=e*.5,c=e,m=t*.03;return[`M${n},${o}`,`C${n+m},${o+(c-o)*.2}`,`${n-m*1.5},${o+(c-o)*.55}`,`${n+m*.5},${o+(c-o)*.75}`,`C${n-m},${o+(c-o)*.85}`,`${n+m*.3},${o+(c-o)*.95}`,`${n},${c}`].join(" ")}i(dt,"generateCliffPath");function ft(t,e,n,o){return[`M${t-n},${e}`,`A${n},${o} 0 1,1 ${t+n},${e}`,`A${n},${o} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i(ft,"generateConfusionPath");var ot={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Ft=i((t,e)=>{const n=t/2,o=e/2;return{complex:{cx:n/2,cy:o/2,x:0,y:0,w:n,h:o},complicated:{cx:n+n/2,cy:o/2,x:n,y:0,w:n,h:o},chaotic:{cx:n/2,cy:o+o/2,x:0,y:o,w:n,h:o},clear:{cx:n+n/2,cy:o+o/2,x:n,y:o,w:n,h:o},confusion:{cx:n,cy:o,x:n*.7,y:o*.7,w:n*.6,h:o*.6}}},"getDomainLayouts"),Rt=i(()=>{const t=at(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=i((t,e,n,o)=>{const c=o.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),a=c.getConfig(),p=Rt();O.debug("Rendering Cynefin diagram");const s=a.width,f=a.height,b=a.padding,h=a.showDomainDescriptions,F=a.boundaryAmplitude,R=s+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,R,a.useMaxWidth??!0),k.attr("viewBox",`0 0 ${R} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),V=Ft(s,f),Z=st(a.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=V[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(s,f,Z,F)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(s,f,Z+100,F)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(s,f)).attr("fill","none");const pt=s*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(s/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of X){const r=V[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=V[r],y=ot[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(ot.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=V[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=V[y.from],N=V[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,G=-x/C,ht=$/C,et=M+G*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Vt={draw:_t},Et=i(()=>{const t=at(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=i(()=>{const t=Et();return`
2
- .cynefinDomain {
3
- stroke: none;
4
- }
5
- .cynefinDomainLabel {
6
- font-size: ${t.domainFontSize}px;
7
- font-weight: bold;
8
- fill: ${t.labelColor};
9
- }
10
- .cynefinSubtitle {
11
- font-size: ${t.itemFontSize-1}px;
12
- fill: ${t.textColor};
13
- font-style: italic;
14
- }
15
- .cynefinItem {
16
- fill-opacity: 0.95;
17
- stroke: ${t.boundaryColor};
18
- stroke-width: 1;
19
- }
20
- .cynefinItemText {
21
- font-size: ${t.itemFontSize}px;
22
- fill: ${t.textColor};
23
- }
24
- .cynefinItemOverflow {
25
- fill-opacity: 0.6;
26
- stroke: ${t.boundaryColor};
27
- stroke-width: 1;
28
- stroke-dasharray: 3 2;
29
- }
30
- .cynefinBoundary {
31
- stroke: ${t.boundaryColor};
32
- stroke-width: ${t.boundaryWidth};
33
- stroke-dasharray: 6 3;
34
- }
35
- .cynefinCliff {
36
- stroke: ${t.cliffColor};
37
- stroke-width: ${t.cliffWidth};
38
- }
39
- .cynefinConfusion {
40
- stroke: ${t.boundaryColor};
41
- stroke-width: 1.5;
42
- stroke-dasharray: 4 2;
43
- }
44
- .cynefinArrowLine {
45
- stroke: ${t.arrowColor};
46
- stroke-width: ${t.arrowWidth};
47
- fill: none;
48
- }
49
- .cynefinArrowHead {
50
- fill: ${t.arrowColor};
51
- stroke: none;
52
- }
53
- .cynefinArrowLabel {
54
- font-size: ${t.itemFontSize-1}px;
55
- fill: ${t.textColor};
56
- }
57
- .cynefinTitle {
58
- font-size: ${t.domainFontSize+2}px;
59
- font-weight: bold;
60
- fill: ${t.labelColor};
61
- }
62
- `},"styles"),Gt=Ht,ie={parser:Wt,db:Y,renderer:Vt,styles:Gt};export{ie as diagram};
@@ -1 +0,0 @@
1
- function J(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function j(n,t){if(!isFinite(n)||n===0)return null;var e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"),i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function K(n){return n=j(Math.abs(n)),n?n[1]:NaN}function Q(n,t){return function(e,i){for(var o=e.length,a=[],c=0,h=n[0],M=0;o>0&&h>0&&(M+h+1>i&&(h=Math.max(1,i-M)),a.push(e.substring(o-=h,o+h)),!((M+=h+1)>i));)h=n[c=(c+1)%n.length];return a.reverse().join(t)}}function V(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var W=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $(n){if(!(t=W.exec(n)))throw new Error("invalid format: "+n);var t;return new L({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$.prototype=L.prototype;function L(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}L.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _(n){n:for(var t=n.length,e=1,i=-1,o;e<t;++e)switch(n[e]){case".":i=o=e;break;case"0":i===0&&(i=e),o=e;break;default:if(!+n[e])break n;i>0&&(i=0);break}return i>0?n.slice(0,i)+n.slice(o+1):n}var N;function v(n,t){var e=j(n,t);if(!e)return N=void 0,n.toPrecision(t);var i=e[0],o=e[1],a=o-(N=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=i.length;return a===c?i:a>c?i+new Array(a-c+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+j(n,Math.max(0,t+a-1))[0]}function X(n,t){var e=j(n,t);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const O={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:J,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>X(n*100,t),r:X,s:v,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function R(n){return n}var U=Array.prototype.map,Y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nn(n){var t=n.grouping===void 0||n.thousands===void 0?R:Q(U.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",i=n.currency===void 0?"":n.currency[1]+"",o=n.decimal===void 0?".":n.decimal+"",a=n.numerals===void 0?R:V(U.call(n.numerals,String)),c=n.percent===void 0?"%":n.percent+"",h=n.minus===void 0?"−":n.minus+"",M=n.nan===void 0?"NaN":n.nan+"";function T(f,g){f=$(f);var b=f.fill,p=f.align,m=f.sign,w=f.symbol,S=f.zero,E=f.width,F=f.comma,y=f.precision,C=f.trim,d=f.type;d==="n"?(F=!0,d="g"):O[d]||(y===void 0&&(y=12),C=!0,d="g"),(S||b==="0"&&p==="=")&&(S=!0,b="0",p="=");var q=(g&&g.prefix!==void 0?g.prefix:"")+(w==="$"?e:w==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():""),B=(w==="$"?i:/[%p]/.test(d)?c:"")+(g&&g.suffix!==void 0?g.suffix:""),D=O[d],H=/[defgprs%]/.test(d);y=y===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function G(r){var l=q,u=B,x,I,k;if(d==="c")u=D(r)+u,r="";else{r=+r;var P=r<0||1/r<0;if(r=isNaN(r)?M:D(Math.abs(r),y),C&&(r=_(r)),P&&+r==0&&m!=="+"&&(P=!1),l=(P?m==="("?m:h:m==="-"||m==="("?"":m)+l,u=(d==="s"&&!isNaN(r)&&N!==void 0?Y[8+N/3]:"")+u+(P&&m==="("?")":""),H){for(x=-1,I=r.length;++x<I;)if(k=r.charCodeAt(x),48>k||k>57){u=(k===46?o+r.slice(x+1):r.slice(x))+u,r=r.slice(0,x);break}}}F&&!S&&(r=t(r,1/0));var z=l.length+r.length+u.length,s=z<E?new Array(E-z+1).join(b):"";switch(F&&S&&(r=t(s+r,s.length?E-u.length:1/0),s=""),p){case"<":r=l+r+u+s;break;case"=":r=l+s+r+u;break;case"^":r=s.slice(0,z=s.length>>1)+l+r+u+s.slice(z);break;default:r=s+l+r+u;break}return a(r)}return G.toString=function(){return f+""},G}function Z(f,g){var b=Math.max(-8,Math.min(8,Math.floor(K(g)/3)))*3,p=Math.pow(10,-b),m=T((f=$(f),f.type="f",f),{suffix:Y[8+b/3]});return function(w){return m(p*w)}}return{format:T,formatPrefix:Z}}var A,tn,rn;en({thousands:",",grouping:[3],currency:["$",""]});function en(n){return A=nn(n),tn=A.format,rn=A.formatPrefix,A}export{$ as a,rn as b,K as e,tn as f};
@@ -1,41 +0,0 @@
1
- import{p as I}from"./chunk-JWPE2WC7-D1PH2kGj.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-ErZ9_T3y.js";import{p as j}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
- .radarCurve-${r} {
3
- color: ${s};
4
- fill: ${s};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${s};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${s};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${s};
13
- }
14
- `}return e},"genIndexStyles"),lt=c(a=>{const t=V(),e=C(),r=w(t,e.themeVariables),s=w(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),ct=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=lt(a);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${e.axisColor};
23
- stroke-width: ${e.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- font-size: ${e.axisLabelFontSize}px;
27
- color: ${e.axisColor};
28
- }
29
- .radarGraticule {
30
- fill: ${e.graticuleColor};
31
- fill-opacity: ${e.graticuleOpacity};
32
- stroke: ${e.graticuleColor};
33
- stroke-width: ${e.graticuleStrokeWidth};
34
- }
35
- .radarLegendText {
36
- text-anchor: start;
37
- font-size: ${e.legendFontSize}px;
38
- dominant-baseline: hanging;
39
- }
40
- ${it(t,e)}
41
- `},"styles"),Lt={parser:et,db:$,renderer:ot,styles:ct};export{Lt as diagram};
@@ -1,41 +0,0 @@
1
- import{p as I}from"./chunk-JWPE2WC7-8ggfUh7n.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-e62XL6B3.js";import{p as j}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
- .radarCurve-${r} {
3
- color: ${s};
4
- fill: ${s};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${s};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${s};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${s};
13
- }
14
- `}return e},"genIndexStyles"),lt=c(a=>{const t=V(),e=C(),r=w(t,e.themeVariables),s=w(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),ct=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=lt(a);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${e.axisColor};
23
- stroke-width: ${e.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- font-size: ${e.axisLabelFontSize}px;
27
- color: ${e.axisColor};
28
- }
29
- .radarGraticule {
30
- fill: ${e.graticuleColor};
31
- fill-opacity: ${e.graticuleOpacity};
32
- stroke: ${e.graticuleColor};
33
- stroke-width: ${e.graticuleStrokeWidth};
34
- }
35
- .radarLegendText {
36
- text-anchor: start;
37
- font-size: ${e.legendFontSize}px;
38
- dominant-baseline: hanging;
39
- }
40
- ${it(t,e)}
41
- `},"styles"),Lt={parser:et,db:$,renderer:ot,styles:ct};export{Lt as diagram};
@@ -1,41 +0,0 @@
1
- import{p as I}from"./chunk-JWPE2WC7-BSzyfwPR.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,y as C,B as W,l as b,F as V,d as H}from"./mermaid.core-DF6jaPnW.js";import{p as j}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
- .radarCurve-${r} {
3
- color: ${s};
4
- fill: ${s};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${s};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${s};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${s};
13
- }
14
- `}return e},"genIndexStyles"),lt=c(a=>{const t=V(),e=C(),r=w(t,e.themeVariables),s=w(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),ct=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=lt(a);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${e.axisColor};
23
- stroke-width: ${e.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- font-size: ${e.axisLabelFontSize}px;
27
- color: ${e.axisColor};
28
- }
29
- .radarGraticule {
30
- fill: ${e.graticuleColor};
31
- fill-opacity: ${e.graticuleOpacity};
32
- stroke: ${e.graticuleColor};
33
- stroke-width: ${e.graticuleStrokeWidth};
34
- }
35
- .radarLegendText {
36
- text-anchor: start;
37
- font-size: ${e.legendFontSize}px;
38
- dominant-baseline: hanging;
39
- }
40
- ${it(t,e)}
41
- `},"styles"),Mt={parser:et,db:$,renderer:ot,styles:ct};export{Mt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as pe}from"./chunk-JWPE2WC7-D1PH2kGj.js";import{_ as m,F as de,y as X,A as G,D as he,d as me,l as O,a9 as L,b as ue,a as fe,o as ye,p as ge,g as Se,s as xe,B as be,aa as ve,q as Ce}from"./index-ErZ9_T3y.js";import{s as we}from"./chunk-POPQ4Y6H-DhZnEisk.js";import{p as Te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import{s as _}from"./index-DqGFpucN.js";import{f as P}from"./defaultLocale-5voVPcsN.js";import{o as I}from"./ordinal-Cboi1Yqb.js";import{h as $e,t as Le}from"./index-CvYzv8kf.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./init-Gi6I4Gst.js";var ee=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ue,this.getAccTitle=fe,this.setDiagramTitle=ye,this.getDiagramTitle=ge,this.getAccDescription=Se,this.setAccDescription=xe}static{m(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const r=be,s=X();return G({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){const i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{ve(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){Ce(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function te(r){if(!r.length)return[];const s=[],i=[];return r.forEach(c=>{const l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{const o=i[i.length-1].node;o.children?o.children.push(l):o.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}m(te,"buildHierarchy");var Fe=m((r,s)=>{pe(r,s);const i=[];for(const o of r.TreemapRows??[])o.$type==="ClassDefStatement"&&s.addClass(o.className??"",o.styleText??"");for(const o of r.TreemapRows??[]){const d=o.item;if(!d)continue;const h=o.indent?parseInt(o.indent):0,M=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],N=a.length>0?a:void 0,x={level:h,name:M,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:N};i.push(x)}const c=te(i),l=m((o,d)=>{for(const h of o)s.addNode(h,d),h.children&&h.children.length>0&&l(h.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=m(r=>r.name?String(r.name):"","getItemName"),ae={parser:{yy:void 0},parse:m(async r=>{try{const i=await Te("treemap",r);O.debug("Treemap AST:",i);const c=ae.parser?.yy;if(!(c instanceof ee))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.");Fe(i,c)}catch(s){throw O.error("Error parsing treemap:",s),s}},"parse")},ze=10,F=10,V=25,Ae=m((r,s,i,c)=>{const l=c.db,o=l.getConfig(),d=o.padding??ze,h=l.getDiagramTitle(),M=l.getRoot(),{themeVariables:a}=X();if(!M)return;const N=h?30:0,x=he(s),Y=o.nodeWidth?o.nodeWidth*F:960,j=o.nodeHeight?o.nodeHeight*F:500,H=Y,q=j+N;x.attr("viewBox",`0 0 ${H} ${q}`),me(x,q,H,o.useMaxWidth);let b;try{const e=o.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),n=t?t[0]:"";b=m(u=>"$"+P(","+n)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(n=>"$"+P(t||"")(n),"valueFormat")}else b=P(e)}catch(e){O.error("Error creating format function:",e),b=P(",")}const z=I().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),le=I().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),k=I().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",H/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const U=x.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),se=$e(M).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Le().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?V+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(se),re=J.descendants().filter(e=>e.children&&e.children.length>0),A=U.selectAll(".treemapSection").data(re).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),A.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>z(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>le(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),A.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=_(this),n=e.data.name;t.text(n);const u=e.x1-e.x0,y=6;let f;o.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const p=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>p){let w=n;for(;w.length>0;){if(w=n.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>p&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=p)break}}}),o.showValues!==!1&&A.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")});const K=J.leaves(),g=K.length>20,oe=g?16:38,W=g?14:28,T=g?4:8,D=g?4:6,R=g?2:4,Q=g?8:10,B=g?1:2,E=U.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.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 t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+k(e.data.name)+";",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){const t=_(this),n=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=n-2*R,$=u-2*R;if(f<Q||$<Q){t.style("display","none");return}let p=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&p>T;)p--,t.style("font-size",`${p}px`);let S=Math.max(D,Math.min(W,Math.round(p*v))),C=p+B+S;for(;C>$&&p>T&&(p--,S=Math.max(D,Math.min(W,Math.round(p*v))),!(S<D&&p===T));)t.style("font-size",`${p}px`),C=p+B+S;t.style("font-size",`${p}px`),g?(p<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||p<T||$<p)&&t.style("display","none")}),o.showValues!==!1&&E.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const n=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+k(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return n+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,n)=>`url(#clip-${s}-${n})`).text(t=>t.value?b(t.value):"").each(function(t){const n=_(this),u=this.parentNode;if(!u){n.style("display","none");return}const y=_(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){n.style("display","none");return}const f=parseFloat(y.style("font-size")),p=Math.max(D,Math.min(W,Math.round(f*.6)));n.style("font-size",`${p}px`);const S=(t.y1-t.y0)/2+f/2+B;n.attr("y",S);const C=t.x1-t.x0,Z=t.y1-t.y0-4,ce=C-2*R;n.node().getComputedTextLength()>ce||S+p>Z||p<D?n.style("display","none"):n.style("display",null)});const ne=o.diagramPadding??8;we(x,ne,"flowchart",o?.useMaxWidth||!1)},"draw"),De=m(function(r,s){return s.db.getClasses()},"getClasses"),Pe={draw:Ae,getClasses:De},Ve={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Me=m(({treemap:r}={})=>{const s=de(),i=X(),c=G(s,i.themeVariables),l=G(Ve,r),o=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,h=l.valueColor??c.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${l.sectionStrokeColor};
4
- stroke-width: ${l.sectionStrokeWidth};
5
- fill: ${l.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${l.leafStrokeColor};
9
- stroke-width: ${l.leafStrokeWidth};
10
- fill: ${l.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${d};
14
- font-size: ${l.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${h};
18
- font-size: ${l.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${o};
22
- font-size: ${l.titleFontSize};
23
- }
24
- `},"getStyles"),ke=Me,rt={parser:ae,get db(){return new ee},renderer:Pe,styles:ke};export{rt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as pe}from"./chunk-JWPE2WC7-8ggfUh7n.js";import{_ as m,F as de,y as X,A as G,D as he,d as me,l as O,a9 as L,b as ue,a as fe,o as ye,p as ge,g as Se,s as xe,B as be,aa as ve,q as Ce}from"./index-e62XL6B3.js";import{s as we}from"./chunk-POPQ4Y6H-pegurE5S.js";import{p as Te}from"./cynefin-OW5HDTMX-BBLugbYz.js";import{s as _}from"./index-DqGFpucN.js";import{f as P}from"./defaultLocale-5voVPcsN.js";import{o as I}from"./ordinal-Cboi1Yqb.js";import{h as $e,t as Le}from"./index-CvYzv8kf.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./init-Gi6I4Gst.js";var ee=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ue,this.getAccTitle=fe,this.setDiagramTitle=ye,this.getDiagramTitle=ge,this.getAccDescription=Se,this.setAccDescription=xe}static{m(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const r=be,s=X();return G({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){const i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{ve(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){Ce(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function te(r){if(!r.length)return[];const s=[],i=[];return r.forEach(c=>{const l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{const o=i[i.length-1].node;o.children?o.children.push(l):o.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}m(te,"buildHierarchy");var Fe=m((r,s)=>{pe(r,s);const i=[];for(const o of r.TreemapRows??[])o.$type==="ClassDefStatement"&&s.addClass(o.className??"",o.styleText??"");for(const o of r.TreemapRows??[]){const d=o.item;if(!d)continue;const h=o.indent?parseInt(o.indent):0,M=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],N=a.length>0?a:void 0,x={level:h,name:M,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:N};i.push(x)}const c=te(i),l=m((o,d)=>{for(const h of o)s.addNode(h,d),h.children&&h.children.length>0&&l(h.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=m(r=>r.name?String(r.name):"","getItemName"),ae={parser:{yy:void 0},parse:m(async r=>{try{const i=await Te("treemap",r);O.debug("Treemap AST:",i);const c=ae.parser?.yy;if(!(c instanceof ee))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.");Fe(i,c)}catch(s){throw O.error("Error parsing treemap:",s),s}},"parse")},ze=10,F=10,V=25,Ae=m((r,s,i,c)=>{const l=c.db,o=l.getConfig(),d=o.padding??ze,h=l.getDiagramTitle(),M=l.getRoot(),{themeVariables:a}=X();if(!M)return;const N=h?30:0,x=he(s),Y=o.nodeWidth?o.nodeWidth*F:960,j=o.nodeHeight?o.nodeHeight*F:500,H=Y,q=j+N;x.attr("viewBox",`0 0 ${H} ${q}`),me(x,q,H,o.useMaxWidth);let b;try{const e=o.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),n=t?t[0]:"";b=m(u=>"$"+P(","+n)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(n=>"$"+P(t||"")(n),"valueFormat")}else b=P(e)}catch(e){O.error("Error creating format function:",e),b=P(",")}const z=I().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),le=I().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),k=I().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",H/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const U=x.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),se=$e(M).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Le().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?V+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(se),re=J.descendants().filter(e=>e.children&&e.children.length>0),A=U.selectAll(".treemapSection").data(re).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),A.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>z(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>le(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),A.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=_(this),n=e.data.name;t.text(n);const u=e.x1-e.x0,y=6;let f;o.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const p=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>p){let w=n;for(;w.length>0;){if(w=n.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>p&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=p)break}}}),o.showValues!==!1&&A.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")});const K=J.leaves(),g=K.length>20,oe=g?16:38,W=g?14:28,T=g?4:8,D=g?4:6,R=g?2:4,Q=g?8:10,B=g?1:2,E=U.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.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 t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+k(e.data.name)+";",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){const t=_(this),n=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=n-2*R,$=u-2*R;if(f<Q||$<Q){t.style("display","none");return}let p=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&p>T;)p--,t.style("font-size",`${p}px`);let S=Math.max(D,Math.min(W,Math.round(p*v))),C=p+B+S;for(;C>$&&p>T&&(p--,S=Math.max(D,Math.min(W,Math.round(p*v))),!(S<D&&p===T));)t.style("font-size",`${p}px`),C=p+B+S;t.style("font-size",`${p}px`),g?(p<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||p<T||$<p)&&t.style("display","none")}),o.showValues!==!1&&E.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const n=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+k(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return n+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,n)=>`url(#clip-${s}-${n})`).text(t=>t.value?b(t.value):"").each(function(t){const n=_(this),u=this.parentNode;if(!u){n.style("display","none");return}const y=_(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){n.style("display","none");return}const f=parseFloat(y.style("font-size")),p=Math.max(D,Math.min(W,Math.round(f*.6)));n.style("font-size",`${p}px`);const S=(t.y1-t.y0)/2+f/2+B;n.attr("y",S);const C=t.x1-t.x0,Z=t.y1-t.y0-4,ce=C-2*R;n.node().getComputedTextLength()>ce||S+p>Z||p<D?n.style("display","none"):n.style("display",null)});const ne=o.diagramPadding??8;we(x,ne,"flowchart",o?.useMaxWidth||!1)},"draw"),De=m(function(r,s){return s.db.getClasses()},"getClasses"),Pe={draw:Ae,getClasses:De},Ve={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Me=m(({treemap:r}={})=>{const s=de(),i=X(),c=G(s,i.themeVariables),l=G(Ve,r),o=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,h=l.valueColor??c.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${l.sectionStrokeColor};
4
- stroke-width: ${l.sectionStrokeWidth};
5
- fill: ${l.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${l.leafStrokeColor};
9
- stroke-width: ${l.leafStrokeWidth};
10
- fill: ${l.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${d};
14
- font-size: ${l.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${h};
18
- font-size: ${l.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${o};
22
- font-size: ${l.titleFontSize};
23
- }
24
- `},"getStyles"),ke=Me,rt={parser:ae,get db(){return new ee},renderer:Pe,styles:ke};export{rt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as pe}from"./chunk-JWPE2WC7-BSzyfwPR.js";import{_ as m,F as de,y as X,A as G,D as he,d as me,l as O,a9 as L,b as ue,a as fe,o as ye,p as ge,g as Se,s as xe,B as be,aa as ve,q as Ce}from"./mermaid.core-DF6jaPnW.js";import{s as we}from"./chunk-POPQ4Y6H-CKubmyGa.js";import{p as Te}from"./cynefin-OW5HDTMX-BVK0_S--.js";import{s as _}from"./index-DqGFpucN.js";import{f as P}from"./defaultLocale-5voVPcsN.js";import{o as I}from"./ordinal-Cboi1Yqb.js";import{h as $e,t as Le}from"./index-CvYzv8kf.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./init-Gi6I4Gst.js";var ee=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ue,this.getAccTitle=fe,this.setDiagramTitle=ye,this.getDiagramTitle=ge,this.getAccDescription=Se,this.setAccDescription=xe}static{m(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const r=be,s=X();return G({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){const i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{ve(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){Ce(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function te(r){if(!r.length)return[];const s=[],i=[];return r.forEach(c=>{const l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{const o=i[i.length-1].node;o.children?o.children.push(l):o.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}m(te,"buildHierarchy");var Fe=m((r,s)=>{pe(r,s);const i=[];for(const o of r.TreemapRows??[])o.$type==="ClassDefStatement"&&s.addClass(o.className??"",o.styleText??"");for(const o of r.TreemapRows??[]){const d=o.item;if(!d)continue;const h=o.indent?parseInt(o.indent):0,M=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],N=a.length>0?a:void 0,x={level:h,name:M,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:N};i.push(x)}const c=te(i),l=m((o,d)=>{for(const h of o)s.addNode(h,d),h.children&&h.children.length>0&&l(h.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=m(r=>r.name?String(r.name):"","getItemName"),ae={parser:{yy:void 0},parse:m(async r=>{try{const i=await Te("treemap",r);O.debug("Treemap AST:",i);const c=ae.parser?.yy;if(!(c instanceof ee))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.");Fe(i,c)}catch(s){throw O.error("Error parsing treemap:",s),s}},"parse")},ze=10,F=10,V=25,Ae=m((r,s,i,c)=>{const l=c.db,o=l.getConfig(),d=o.padding??ze,h=l.getDiagramTitle(),M=l.getRoot(),{themeVariables:a}=X();if(!M)return;const N=h?30:0,x=he(s),Y=o.nodeWidth?o.nodeWidth*F:960,j=o.nodeHeight?o.nodeHeight*F:500,H=Y,q=j+N;x.attr("viewBox",`0 0 ${H} ${q}`),me(x,q,H,o.useMaxWidth);let b;try{const e=o.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),n=t?t[0]:"";b=m(u=>"$"+P(","+n)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(n=>"$"+P(t||"")(n),"valueFormat")}else b=P(e)}catch(e){O.error("Error creating format function:",e),b=P(",")}const z=I().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),le=I().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),k=I().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",H/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const U=x.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),se=$e(M).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Le().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?V+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(se),re=J.descendants().filter(e=>e.children&&e.children.length>0),A=U.selectAll(".treemapSection").data(re).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),A.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>z(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>le(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),A.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=_(this),n=e.data.name;t.text(n);const u=e.x1-e.x0,y=6;let f;o.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const p=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>p){let w=n;for(;w.length>0;){if(w=n.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>p&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=p)break}}}),o.showValues!==!1&&A.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")});const K=J.leaves(),g=K.length>20,oe=g?16:38,W=g?14:28,T=g?4:8,D=g?4:6,R=g?2:4,Q=g?8:10,B=g?1:2,E=U.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.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 t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+k(e.data.name)+";",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){const t=_(this),n=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=n-2*R,$=u-2*R;if(f<Q||$<Q){t.style("display","none");return}let p=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&p>T;)p--,t.style("font-size",`${p}px`);let S=Math.max(D,Math.min(W,Math.round(p*v))),C=p+B+S;for(;C>$&&p>T&&(p--,S=Math.max(D,Math.min(W,Math.round(p*v))),!(S<D&&p===T));)t.style("font-size",`${p}px`),C=p+B+S;t.style("font-size",`${p}px`),g?(p<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||p<T||$<p)&&t.style("display","none")}),o.showValues!==!1&&E.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const n=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+k(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return n+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,n)=>`url(#clip-${s}-${n})`).text(t=>t.value?b(t.value):"").each(function(t){const n=_(this),u=this.parentNode;if(!u){n.style("display","none");return}const y=_(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){n.style("display","none");return}const f=parseFloat(y.style("font-size")),p=Math.max(D,Math.min(W,Math.round(f*.6)));n.style("font-size",`${p}px`);const S=(t.y1-t.y0)/2+f/2+B;n.attr("y",S);const C=t.x1-t.x0,Z=t.y1-t.y0-4,ce=C-2*R;n.node().getComputedTextLength()>ce||S+p>Z||p<D?n.style("display","none"):n.style("display",null)});const ne=o.diagramPadding??8;we(x,ne,"flowchart",o?.useMaxWidth||!1)},"draw"),De=m(function(r,s){return s.db.getClasses()},"getClasses"),Pe={draw:Ae,getClasses:De},Ve={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Me=m(({treemap:r}={})=>{const s=de(),i=X(),c=G(s,i.themeVariables),l=G(Ve,r),o=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,h=l.valueColor??c.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${l.sectionStrokeColor};
4
- stroke-width: ${l.sectionStrokeWidth};
5
- fill: ${l.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${l.leafStrokeColor};
9
- stroke-width: ${l.leafStrokeWidth};
10
- fill: ${l.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${d};
14
- font-size: ${l.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${h};
18
- font-size: ${l.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${o};
22
- font-size: ${l.titleFontSize};
23
- }
24
- `},"getStyles"),ke=Me,st={parser:ae,get db(){return new ee},renderer:Pe,styles:ke};export{st as diagram};
@@ -1,24 +0,0 @@
1
- import{p as B}from"./chunk-JWPE2WC7-D1PH2kGj.js";import{_ as m,A as b,D as $,d as C,l as u,b as S,a as D,o as T,p as P,g as z,s as A,B as E,y as F,q as W}from"./index-ErZ9_T3y.js";import{p as _}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var N=E.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}static{m(this,"PacketDB")}getConfig(){const t=b({...N,...F().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=m((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:s,bits:d,label:c}of t.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??=a+(d??1)-1,d??=s-a+1,r=s,u.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&e.getPacket().length<L;){const[p,i]=Y({start:a,end:s,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!i)break;({start:a,end:s,bits:d,label:c}=i)}}e.pushWord(o)},"populate"),Y=m((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:m(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))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.");u.debug(e),M(e,r)},"parse")},I=m((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),h=a+s,g=h*(p.length+1)-(i?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(i).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=m((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:s,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const i of e){const h=i.start%s*a+1,g=(i.end-i.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;const k=i.end===i.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=m(({packet:t}={})=>{const e=b(q,t);return`
2
- .packetByte {
3
- font-size: ${e.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${e.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${e.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${e.labelColor};
13
- font-size: ${e.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${e.titleColor};
17
- font-size: ${e.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${e.blockStrokeColor};
21
- stroke-width: ${e.blockStrokeWidth};
22
- fill: ${e.blockFillColor};
23
- }
24
- `},"styles"),nt={parser:v,get db(){return new w},renderer:j,styles:G};export{nt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as B}from"./chunk-JWPE2WC7-8ggfUh7n.js";import{_ as m,A as b,D as $,d as C,l as u,b as S,a as D,o as T,p as P,g as z,s as A,B as E,y as F,q as W}from"./index-e62XL6B3.js";import{p as _}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var N=E.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}static{m(this,"PacketDB")}getConfig(){const t=b({...N,...F().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=m((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:s,bits:d,label:c}of t.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??=a+(d??1)-1,d??=s-a+1,r=s,u.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&e.getPacket().length<L;){const[p,i]=Y({start:a,end:s,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!i)break;({start:a,end:s,bits:d,label:c}=i)}}e.pushWord(o)},"populate"),Y=m((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:m(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))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.");u.debug(e),M(e,r)},"parse")},I=m((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),h=a+s,g=h*(p.length+1)-(i?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(i).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=m((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:s,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const i of e){const h=i.start%s*a+1,g=(i.end-i.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;const k=i.end===i.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=m(({packet:t}={})=>{const e=b(q,t);return`
2
- .packetByte {
3
- font-size: ${e.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${e.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${e.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${e.labelColor};
13
- font-size: ${e.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${e.titleColor};
17
- font-size: ${e.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${e.blockStrokeColor};
21
- stroke-width: ${e.blockStrokeWidth};
22
- fill: ${e.blockFillColor};
23
- }
24
- `},"styles"),nt={parser:v,get db(){return new w},renderer:j,styles:G};export{nt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as B}from"./chunk-JWPE2WC7-BSzyfwPR.js";import{_ as m,A as b,D as $,d as C,l as u,b as S,a as D,o as T,p as P,g as z,s as A,y as E,B as F,q as W}from"./mermaid.core-DF6jaPnW.js";import{p as _}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-DqGFpucN.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var N=F.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}static{m(this,"PacketDB")}getConfig(){const t=b({...N,...E().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=m((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:s,bits:d,label:c}of t.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??=a+(d??1)-1,d??=s-a+1,r=s,u.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&e.getPacket().length<L;){const[p,i]=Y({start:a,end:s,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!i)break;({start:a,end:s,bits:d,label:c}=i)}}e.pushWord(o)},"populate"),Y=m((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:m(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))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.");u.debug(e),M(e,r)},"parse")},I=m((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),h=a+s,g=h*(p.length+1)-(i?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(i).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=m((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:s,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const i of e){const h=i.start%s*a+1,g=(i.end-i.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;const k=i.end===i.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=m(({packet:t}={})=>{const e=b(q,t);return`
2
- .packetByte {
3
- font-size: ${e.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${e.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${e.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${e.labelColor};
13
- font-size: ${e.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${e.titleColor};
17
- font-size: ${e.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${e.blockStrokeColor};
21
- stroke-width: ${e.blockStrokeWidth};
22
- fill: ${e.blockFillColor};
23
- }
24
- `},"styles"),st={parser:v,get db(){return new w},renderer:j,styles:G};export{st as diagram};
@@ -1 +0,0 @@
1
- import{g as m,r as p,d as n}from"./chunk-SVP7TREG-BF112NUO.js";import{p as l}from"./chunk-JWPE2WC7-8ggfUh7n.js";import{_ as t,l as s}from"./index-e62XL6B3.js";import"./index-DqGFpucN.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var c=f().RailroadEbnf.parser.LangiumParser,o=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t(e=>{l(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),s.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;s.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),s.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},_={parser:g,db:n,renderer:p,styles:m};export{_ as diagram};
@@ -1 +0,0 @@
1
- import{g as m,r as p,d as n}from"./chunk-SVP7TREG-CoZRhamu.js";import{p as l}from"./chunk-JWPE2WC7-D1PH2kGj.js";import{_ as t,l as s}from"./index-ErZ9_T3y.js";import"./index-DqGFpucN.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var c=f().RailroadEbnf.parser.LangiumParser,o=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t(e=>{l(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),s.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;s.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),s.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},_={parser:g,db:n,renderer:p,styles:m};export{_ as diagram};
@@ -1 +0,0 @@
1
- import{g as m,r as p,d as n}from"./chunk-SVP7TREG-D5yRz6xm.js";import{p as l}from"./chunk-JWPE2WC7-BSzyfwPR.js";import{_ as t,l as s}from"./mermaid.core-DF6jaPnW.js";import"./index-DqGFpucN.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./line-DT6NiYhi.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var c=f().RailroadEbnf.parser.LangiumParser,o=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t(e=>{l(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),s.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;s.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),s.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},I={parser:g,db:n,renderer:p,styles:m};export{I as diagram};