@intent-hq/web 2.310.0 → 2.310.2

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 (251) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{DiagramPresentation.fimBl1wP.css → DiagramPresentation.Bfi3xHm0.css} +1 -1
  3. package/web/app/immutable/chunks/-xK_vQQs.js +1 -0
  4. package/web/app/immutable/chunks/{DXIbhld5.js → 189zCzpy.js} +1 -1
  5. package/web/app/immutable/chunks/6XLvYn_R.js +4 -0
  6. package/web/app/immutable/chunks/{DE2cS7Gk.js → 7LPFBi2V.js} +2 -2
  7. package/web/app/immutable/chunks/{DvPohY9Y.js → 9Al7uANH.js} +1 -1
  8. package/web/app/immutable/chunks/{CCiSNRYo.js → 9Ax53qRD.js} +2 -2
  9. package/web/app/immutable/chunks/{B2RUMnVi.js → 9U2m-KE4.js} +1 -1
  10. package/web/app/immutable/chunks/{DEg_be2d.js → B08PB3d6.js} +1 -1
  11. package/web/app/immutable/chunks/B1wLVJWc.js +7 -0
  12. package/web/app/immutable/chunks/B1zCpBoo.js +217 -0
  13. package/web/app/immutable/chunks/{D4n7ImP1.js → B2-LFLJm.js} +1 -1
  14. package/web/app/immutable/chunks/{BhPGdKCS.js → B3NZDdp-.js} +1 -1
  15. package/web/app/immutable/chunks/{B6F4Lh4e.js → B3u9yhMd.js} +1 -1
  16. package/web/app/immutable/chunks/{BCWCSGn-.js → B6ACa1PM.js} +1 -1
  17. package/web/app/immutable/chunks/{DfEETRjs.js → B7VxeONz.js} +1 -1
  18. package/web/app/immutable/chunks/{2t50lsua.js → BGOzArFr.js} +6 -6
  19. package/web/app/immutable/chunks/{9jrhCQLH.js → BGSgFd0R.js} +1 -1
  20. package/web/app/immutable/chunks/{CaSAI0VT.js → BHMk19Fd.js} +1 -1
  21. package/web/app/immutable/chunks/{BZJTxW0W.js → BRp0P9cF.js} +1 -1
  22. package/web/app/immutable/chunks/{DRr3RJL8.js → BS3KKa6i.js} +5 -5
  23. package/web/app/immutable/chunks/{dxICYcDB.js → BSN7-Qxa.js} +4 -4
  24. package/web/app/immutable/chunks/{BpsqLTOp.js → BU1SD4F5.js} +2 -2
  25. package/web/app/immutable/chunks/BUvLOETw.js +8 -0
  26. package/web/app/immutable/chunks/{CZZvWnXg.js → B_CxKeY9.js} +1 -1
  27. package/web/app/immutable/chunks/{BibcbnTP.js → B_F8B07u.js} +5 -5
  28. package/web/app/immutable/chunks/{DFCDnAax.js → B_u6ph9g.js} +1 -1
  29. package/web/app/immutable/chunks/{Cg-2uoaY.js → BbajLcMi.js} +1 -1
  30. package/web/app/immutable/chunks/{tBYaHQw_.js → BcGA_XKM.js} +79 -79
  31. package/web/app/immutable/chunks/Bdj20t_M.js +200 -0
  32. package/web/app/immutable/chunks/{SJdoTqK2.js → BfVF2I5Q.js} +3 -3
  33. package/web/app/immutable/chunks/{B-AmXRdp.js → BgjzIHmr.js} +2 -2
  34. package/web/app/immutable/chunks/BhFdeIZl.js +1 -0
  35. package/web/app/immutable/chunks/{CMcFXsiy.js → BjS3bCVA.js} +1 -1
  36. package/web/app/immutable/chunks/Bl1SUWQK.js +1 -0
  37. package/web/app/immutable/chunks/BtFywNMt.js +40 -0
  38. package/web/app/immutable/chunks/{CCJs9cZU.js → BwThkZnv.js} +1 -1
  39. package/web/app/immutable/chunks/ByGoYv9M.js +1 -0
  40. package/web/app/immutable/chunks/Bz2AaX7v.js +38 -0
  41. package/web/app/immutable/chunks/{CjKEz27r.js → BzqKIdEP.js} +1 -1
  42. package/web/app/immutable/chunks/{gMys6NxR.js → C-27EQSK.js} +6 -6
  43. package/web/app/immutable/chunks/C2FKcF8a.js +99 -0
  44. package/web/app/immutable/chunks/{kOoRis7L.js → C2ypXh8V.js} +4 -4
  45. package/web/app/immutable/chunks/{Bbi-Ieb_.js → C5bjHjx4.js} +1 -1
  46. package/web/app/immutable/chunks/{CS85fbWZ.js → C64YVcCh.js} +1 -1
  47. package/web/app/immutable/chunks/{xq16NT3q.js → C7-VQsLR.js} +1 -1
  48. package/web/app/immutable/chunks/C7ldC6zu.js +41 -0
  49. package/web/app/immutable/chunks/{Z1IVvFmx.js → C7xfOFNZ.js} +4 -4
  50. package/web/app/immutable/chunks/{CBvSxWdG.js → CAt8c0ls.js} +1 -1
  51. package/web/app/immutable/chunks/CC-vc0Sh.js +2 -0
  52. package/web/app/immutable/chunks/{D2b3DtCR.js → CDmxeAFz.js} +1 -1
  53. package/web/app/immutable/chunks/{BeFewn7K.js → CLUug_7o.js} +1 -1
  54. package/web/app/immutable/chunks/{CDACoTI2.js → CLyqqizl.js} +11 -11
  55. package/web/app/immutable/chunks/{B_EqlvEE.js → CO5Qz17e.js} +1 -1
  56. package/web/app/immutable/chunks/{DDfFKaoN.js → COBtdbv4.js} +1 -1
  57. package/web/app/immutable/chunks/COZ8XMYr.js +2 -0
  58. package/web/app/immutable/chunks/{BVxirgV2.js → CQK97B3l.js} +1 -1
  59. package/web/app/immutable/chunks/{50gvEURs.js → CYTBw0CY.js} +1 -1
  60. package/web/app/immutable/chunks/{CGizsEXq.js → CZLMJ41d.js} +3 -3
  61. package/web/app/immutable/chunks/{CjdtUG_a.js → CZqaUHhn.js} +1 -1
  62. package/web/app/immutable/chunks/CeVWos-t.js +1 -0
  63. package/web/app/immutable/chunks/CepoDpYW.js +1 -0
  64. package/web/app/immutable/chunks/{xFj9RuQx.js → CiBABzvX.js} +1 -1
  65. package/web/app/immutable/chunks/{D8SVxzqF.js → CjcP6chv.js} +1 -1
  66. package/web/app/immutable/chunks/{DUVw4Tv2.js → CkactGV1.js} +30 -30
  67. package/web/app/immutable/chunks/ClebXGIM.js +141 -0
  68. package/web/app/immutable/chunks/{DO_qdDGF.js → CnfDI0G9.js} +1 -1
  69. package/web/app/immutable/chunks/{CQSBplf3.js → CoiqgZqV.js} +1 -1
  70. package/web/app/immutable/chunks/{CGMhstmi.js → CpQksukT.js} +1 -1
  71. package/web/app/immutable/chunks/CrX2GQl1.js +1 -0
  72. package/web/app/immutable/chunks/{BKTwjZpB.js → CtDXgUYh.js} +2 -2
  73. package/web/app/immutable/chunks/CvEzUeZj.js +39 -0
  74. package/web/app/immutable/chunks/{C_YR_yV-.js → CxP8jrn2.js} +1 -1
  75. package/web/app/immutable/chunks/{BPG20H4B.js → D2XAsGw-.js} +1 -1
  76. package/web/app/immutable/chunks/D3in5AGo.js +34 -0
  77. package/web/app/immutable/chunks/D3ma4MWK.js +84 -0
  78. package/web/app/immutable/chunks/{DqvIKmgg.js → D3p4HGPq.js} +1 -1
  79. package/web/app/immutable/chunks/D57k4GEE.js +344 -0
  80. package/web/app/immutable/chunks/{_otPiQOz.js → D5mZ2XGM.js} +1 -1
  81. package/web/app/immutable/chunks/{swAYnpK6.js → DE1vhlzN.js} +1 -1
  82. package/web/app/immutable/chunks/{NdkVneBF.js → DI-WSiIl.js} +1 -1
  83. package/web/app/immutable/chunks/DMfS3QUv.js +213 -0
  84. package/web/app/immutable/chunks/DMmGJ3th.js +140 -0
  85. package/web/app/immutable/chunks/DPADHNob.js +3 -0
  86. package/web/app/immutable/chunks/DPcySxOl.js +24 -0
  87. package/web/app/immutable/chunks/{BMvGDYIO.js → DQNwUygY.js} +3 -3
  88. package/web/app/immutable/chunks/{Bj5SHeCl.js → DR3ukAe9.js} +2 -2
  89. package/web/app/immutable/chunks/{DZpxiGBS.js → DRKyy5zo.js} +1 -1
  90. package/web/app/immutable/chunks/DTpCNXVX.js +62 -0
  91. package/web/app/immutable/chunks/DW02E8JU.js +291 -0
  92. package/web/app/immutable/chunks/{DyHBOL0Q.js → DbnaPZDp.js} +2 -2
  93. package/web/app/immutable/chunks/Dhhgf7-r.js +36 -0
  94. package/web/app/immutable/chunks/{Cbh5ofn-.js → DjaKy3j_.js} +1 -1
  95. package/web/app/immutable/chunks/{KljALMT3.js → Dk4znOdW.js} +1 -1
  96. package/web/app/immutable/chunks/{BANQT5xk.js → Dl1xcl6N.js} +1 -1
  97. package/web/app/immutable/chunks/Dmv_LV6R.js +106 -0
  98. package/web/app/immutable/chunks/{BreeoU2c.js → Dr28se2A.js} +2 -2
  99. package/web/app/immutable/chunks/Dr_BXnmT.js +169 -0
  100. package/web/app/immutable/chunks/{CoIY5b-q.js → Dvt2xumc.js} +1 -1
  101. package/web/app/immutable/chunks/DxHqMweQ.js +27 -0
  102. package/web/app/immutable/chunks/Dyv7eW7r.js +1 -0
  103. package/web/app/immutable/chunks/{W2kuqRhi.js → DzDnAGVP.js} +1 -1
  104. package/web/app/immutable/chunks/{CJNlKuUY.js → IIWxUL8F.js} +1 -1
  105. package/web/app/immutable/chunks/IjQ_akx8.js +24 -0
  106. package/web/app/immutable/chunks/{wihFHGRA.js → JFNcUgqI.js} +3 -3
  107. package/web/app/immutable/chunks/{BoTxE-Dg.js → JvGvDA7z.js} +1 -1
  108. package/web/app/immutable/chunks/{3xT4xHCc.js → LXPDKlyI.js} +1 -1
  109. package/web/app/immutable/chunks/{BPlpnhzH.js → M5rEGvXZ.js} +1 -1
  110. package/web/app/immutable/chunks/{C_sPSbma.js → O55LMojB.js} +1 -1
  111. package/web/app/immutable/chunks/{BmhnS69e.js → O86272iX.js} +2 -2
  112. package/web/app/immutable/chunks/{CZT_wjvA.js → PW60rHG1.js} +2 -2
  113. package/web/app/immutable/chunks/{D8xJeFNR.js → UzQ5fjmd.js} +7 -7
  114. package/web/app/immutable/chunks/VmPClZ6P.js +98 -0
  115. package/web/app/immutable/chunks/WKN7DEK1.js +292 -0
  116. package/web/app/immutable/chunks/{B7YFRmY9.js → YuniekLU.js} +2 -2
  117. package/web/app/immutable/chunks/{DWztuYd2.js → _Q4NEhG2.js} +1 -1
  118. package/web/app/immutable/chunks/{DyPRCICU.js → _sFm91KN.js} +4 -4
  119. package/web/app/immutable/chunks/{NChdTnqQ.js → cF0DaKkd.js} +1 -1
  120. package/web/app/immutable/chunks/{B2O-zJJK.js → d9OF_ecy.js} +1 -1
  121. package/web/app/immutable/chunks/eHLf0w_s.js +1 -0
  122. package/web/app/immutable/chunks/ey5Fwige.js +1 -0
  123. package/web/app/immutable/chunks/gq2RHuUM.js +120 -0
  124. package/web/app/immutable/chunks/{C0oSivDJ.js → hJG5qV93.js} +1 -1
  125. package/web/app/immutable/chunks/jfltPaLX.js +370 -0
  126. package/web/app/immutable/chunks/{CjUOGaIe.js → l0v05b1J.js} +3 -3
  127. package/web/app/immutable/chunks/{zeRt85dY.js → le8iLKoG.js} +1 -1
  128. package/web/app/immutable/chunks/{C0f7EiIR.js → mCGfnSaU.js} +1 -1
  129. package/web/app/immutable/chunks/{u7rudBWt.js → mNrkfPcL.js} +1 -1
  130. package/web/app/immutable/chunks/{Da48jYxu.js → tzNFwvLY.js} +1 -1
  131. package/web/app/immutable/chunks/{C1rjgyNe.js → xL2Hl8pt.js} +1 -1
  132. package/web/app/immutable/chunks/{D6QUdzQ1.js → yEkT96At.js} +1 -1
  133. package/web/app/immutable/chunks/{DhbOsIE5.js → yGxUPrAb.js} +14 -14
  134. package/web/app/immutable/entry/{app.CYN435_6.js → app.CWgSMPHo.js} +2 -2
  135. package/web/app/immutable/entry/start.DRM4Ek1S.js +1 -0
  136. package/web/app/immutable/nodes/{0.Dns3lFCs.js → 0.DsHcmAxw.js} +1 -1
  137. package/web/app/immutable/nodes/{1.Cd7O-58t.js → 1.CkY-7ake.js} +1 -1
  138. package/web/app/immutable/nodes/{10.BhPCwuSS.js → 10.CdTsXOpX.js} +1 -1
  139. package/web/app/immutable/nodes/{14.CbX9Og6B.js → 14.juvATfIp.js} +1 -1
  140. package/web/app/immutable/nodes/{16.DYSTj8m0.js → 16.DuXLhJX1.js} +2 -2
  141. package/web/app/immutable/nodes/{2.n7fSSeCW.js → 2.DL0H4Ehj.js} +8 -8
  142. package/web/app/immutable/nodes/{3.CfhffOh-.js → 3.CsarMzm8.js} +1 -1
  143. package/web/app/immutable/nodes/{4.DNZDs0vZ.js → 4.DOKXGcKD.js} +1 -1
  144. package/web/app/immutable/nodes/{5.DooL0KdY.js → 5.5nmYhZgy.js} +1 -1
  145. package/web/app/immutable/nodes/{6.pzplS1TY.js → 6.BMO8vjvw.js} +1 -1
  146. package/web/app/immutable/nodes/{7.CRhweboS.js → 7.Rmoc-ypk.js} +1 -1
  147. package/web/app/immutable/nodes/{8.CuuXIPiR.js → 8.Dy5AT1iw.js} +2 -2
  148. package/web/app/immutable/nodes/{9.hhdT3UPw.js → 9.Dtv2dSUT.js} +18 -18
  149. package/web/app/version.json +1 -1
  150. package/web/index.html +9 -9
  151. package/web/app/immutable/chunks/41W03kYB.js +0 -96
  152. package/web/app/immutable/chunks/4jLfrK-n.js +0 -84
  153. package/web/app/immutable/chunks/70PyZUYg.js +0 -70
  154. package/web/app/immutable/chunks/9H8XjRUA.js +0 -106
  155. package/web/app/immutable/chunks/B-2EcDun.js +0 -78
  156. package/web/app/immutable/chunks/B6EdH0gk.js +0 -120
  157. package/web/app/immutable/chunks/B7d6B8i2.js +0 -1
  158. package/web/app/immutable/chunks/BCaDoF8Y.js +0 -1
  159. package/web/app/immutable/chunks/BCfzoYfU.js +0 -1
  160. package/web/app/immutable/chunks/BDEqpi1y.js +0 -106
  161. package/web/app/immutable/chunks/BDchM60p.js +0 -178
  162. package/web/app/immutable/chunks/BDuevalq.js +0 -1
  163. package/web/app/immutable/chunks/BFcpLy2V.js +0 -24
  164. package/web/app/immutable/chunks/BGS2SWF9.js +0 -40
  165. package/web/app/immutable/chunks/BKpC4hzB.js +0 -1
  166. package/web/app/immutable/chunks/BLOlf2p9.js +0 -39
  167. package/web/app/immutable/chunks/BN912nIE.js +0 -1
  168. package/web/app/immutable/chunks/BQqlXz7Q.js +0 -24
  169. package/web/app/immutable/chunks/BZmA3QXk.js +0 -24
  170. package/web/app/immutable/chunks/BdluP0Re.js +0 -120
  171. package/web/app/immutable/chunks/BgmOiuVG.js +0 -342
  172. package/web/app/immutable/chunks/BmKF0wck.js +0 -1
  173. package/web/app/immutable/chunks/BpJz1MvJ.js +0 -7
  174. package/web/app/immutable/chunks/Br2I_00T.js +0 -7
  175. package/web/app/immutable/chunks/Br8EhifD.js +0 -89
  176. package/web/app/immutable/chunks/BriIY-V6.js +0 -2
  177. package/web/app/immutable/chunks/Bs-gIQLt.js +0 -4
  178. package/web/app/immutable/chunks/BwBhkp82.js +0 -292
  179. package/web/app/immutable/chunks/Bz-Yc7Wl.js +0 -34
  180. package/web/app/immutable/chunks/BzAchneh.js +0 -1
  181. package/web/app/immutable/chunks/C10ooCp1.js +0 -24
  182. package/web/app/immutable/chunks/C3OhkOVO.js +0 -1
  183. package/web/app/immutable/chunks/C519ihU9.js +0 -231
  184. package/web/app/immutable/chunks/C7T4LQE1.js +0 -257
  185. package/web/app/immutable/chunks/C7_3LSl8.js +0 -162
  186. package/web/app/immutable/chunks/CAM1CwRY.js +0 -1
  187. package/web/app/immutable/chunks/CHx78N0-.js +0 -1
  188. package/web/app/immutable/chunks/CJRXWUIB.js +0 -36
  189. package/web/app/immutable/chunks/CKRb139P.js +0 -1
  190. package/web/app/immutable/chunks/COamqMg3.js +0 -1
  191. package/web/app/immutable/chunks/CPm7NntQ.js +0 -38
  192. package/web/app/immutable/chunks/CSNcNZAr.js +0 -1
  193. package/web/app/immutable/chunks/CTI6K_Uf.js +0 -1
  194. package/web/app/immutable/chunks/CUuCn5ps.js +0 -1
  195. package/web/app/immutable/chunks/CXVxtSkJ.js +0 -38
  196. package/web/app/immutable/chunks/CYhtIPW_.js +0 -62
  197. package/web/app/immutable/chunks/CaNdc6nO.js +0 -292
  198. package/web/app/immutable/chunks/CbMdHBoe.js +0 -1
  199. package/web/app/immutable/chunks/Citosjx7.js +0 -41
  200. package/web/app/immutable/chunks/Cj_j-lXn.js +0 -206
  201. package/web/app/immutable/chunks/CnCQnNEp.js +0 -354
  202. package/web/app/immutable/chunks/CnsnqDQd.js +0 -1
  203. package/web/app/immutable/chunks/CqBIsc3j.js +0 -99
  204. package/web/app/immutable/chunks/CqslOMwD.js +0 -96
  205. package/web/app/immutable/chunks/CvOaoHrI.js +0 -1
  206. package/web/app/immutable/chunks/CvYzv8kf.js +0 -1
  207. package/web/app/immutable/chunks/CwpRQv-w.js +0 -8
  208. package/web/app/immutable/chunks/CyfBUrNA.js +0 -1
  209. package/web/app/immutable/chunks/Cyhorubq.js +0 -231
  210. package/web/app/immutable/chunks/D1SkvgLK.js +0 -1
  211. package/web/app/immutable/chunks/D6XiPT-X.js +0 -1
  212. package/web/app/immutable/chunks/D7jRh74W.js +0 -1
  213. package/web/app/immutable/chunks/D9ytGf5e.js +0 -1
  214. package/web/app/immutable/chunks/DF1EzKEK.js +0 -41
  215. package/web/app/immutable/chunks/DGaGjBKU.js +0 -168
  216. package/web/app/immutable/chunks/DKQ9ngHk.js +0 -99
  217. package/web/app/immutable/chunks/DNmtQDpd.js +0 -8
  218. package/web/app/immutable/chunks/DOXLMb3q.js +0 -129
  219. package/web/app/immutable/chunks/DPpctSbu.js +0 -84
  220. package/web/app/immutable/chunks/DR8edmqz.js +0 -139
  221. package/web/app/immutable/chunks/DUYSWpmE.js +0 -1
  222. package/web/app/immutable/chunks/DXaxEP8U.js +0 -1
  223. package/web/app/immutable/chunks/DYy64AXn.js +0 -338
  224. package/web/app/immutable/chunks/DcI5wCZ5.js +0 -1
  225. package/web/app/immutable/chunks/DdRfFUWu.js +0 -1
  226. package/web/app/immutable/chunks/DfF0sVRg.js +0 -3
  227. package/web/app/immutable/chunks/Divbj3b8.js +0 -40
  228. package/web/app/immutable/chunks/DmUq9QE3.js +0 -162
  229. package/web/app/immutable/chunks/Dqn0Ivcg.js +0 -39
  230. package/web/app/immutable/chunks/DsJW9cbJ.js +0 -88
  231. package/web/app/immutable/chunks/DtFtH7jZ.js +0 -4
  232. package/web/app/immutable/chunks/DvZBb8H_.js +0 -168
  233. package/web/app/immutable/chunks/GX9YV5ly.js +0 -129
  234. package/web/app/immutable/chunks/HP8lGamR.js +0 -257
  235. package/web/app/immutable/chunks/I1Pwq7BS.js +0 -15
  236. package/web/app/immutable/chunks/Jj6giUQG.js +0 -7
  237. package/web/app/immutable/chunks/K10ifhfc.js +0 -1
  238. package/web/app/immutable/chunks/PDuKM1t5.js +0 -1
  239. package/web/app/immutable/chunks/PUlhNAJH.js +0 -1
  240. package/web/app/immutable/chunks/VtMTQAXA.js +0 -30
  241. package/web/app/immutable/chunks/YqyEOqRv.js +0 -178
  242. package/web/app/immutable/chunks/b7kGm9Ly.js +0 -36
  243. package/web/app/immutable/chunks/d1jIpATl.js +0 -62
  244. package/web/app/immutable/chunks/eCj-hB88.js +0 -3
  245. package/web/app/immutable/chunks/g3iFlZMW.js +0 -1
  246. package/web/app/immutable/chunks/iYpMWPUv.js +0 -206
  247. package/web/app/immutable/chunks/kqGPx169.js +0 -2
  248. package/web/app/immutable/chunks/ojOCNOao.js +0 -1
  249. package/web/app/immutable/chunks/v70CwcHz.js +0 -34
  250. package/web/app/immutable/chunks/zkqMQ7Ph.js +0 -1
  251. package/web/app/immutable/entry/start.Cuiv1qlw.js +0 -1
@@ -1,15 +0,0 @@
1
- import{a as e}from"./CnCQnNEp.js";var l=e(()=>`
2
- /* Font Awesome icon styling - consolidated */
3
- .label-icon {
4
- display: inline-block;
5
- height: 1em;
6
- overflow: visible;
7
- vertical-align: -0.125em;
8
- }
9
-
10
- .node .label-icon path {
11
- fill: currentColor;
12
- stroke: revert;
13
- stroke-width: revert;
14
- }
15
- `,"getIconStyles");export{l as g};
@@ -1,7 +0,0 @@
1
- import{aF as me,K as ye,O as le,aI as be,L as Ae,aG as Ce,a as n,ad as ce,aE as we,r as Se,k as Re,M as Bt,aD as _e,j as ge,y as ke,U as Te,q as De}from"./CnCQnNEp.js";import{g as r,bz as ae}from"./BgmOiuVG.js";import{b as ne}from"./CyfBUrNA.js";import{l as oe}from"./CAM1CwRY.js";var It=(function(){var i=n(function(F,l,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=l);return u},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],b=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],m=[1,26],k=[1,28],T=[1,29],L=[1,30],W=[1,31],X=[1,32],E=[1,33],M=[1,34],A=[1,35],D=[1,36],g=[1,37],B=[1,43],V=[1,42],Y=[1,47],N=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],U=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],C=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],w=[1,65],z=[26,28],_={trace:n(r(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(r(function(l,u,x,d,S,o,ct){var p=o.length-1;switch(S){case 5:d.setOrientation(o[p]);break;case 9:d.setDiagramTitle(o[p].text.trim());break;case 12:d.setLineData({text:"",type:"text"},o[p]);break;case 13:d.setLineData(o[p-1],o[p]);break;case 14:d.setBarData({text:"",type:"text"},o[p]);break;case 15:d.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),d.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:d.setXAxisTitle(o[p]);break;case 25:d.setXAxisTitle(o[p-1]);break;case 26:d.setXAxisTitle({type:"text",text:""});break;case 27:d.setXAxisBand(o[p]);break;case 28:d.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:d.setYAxisTitle(o[p]);break;case 33:d.setYAxisTitle(o[p-1]);break;case 34:d.setYAxisTitle({type:"text",text:""});break;case 35:d.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),"anonymous"),table:[i(t,e,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},i(t,e,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),i(t,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},i(b,[2,36]),i(b,[2,37]),i(b,[2,38]),{1:[2,1]},i(t,e,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},i(b,[2,5]),i(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:39,13:38,24:B,29:V,30:f,31:40,32:41,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:45,15:44,29:Y,30:f,35:46,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:49,17:48,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:52,17:51,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{20:[1,53]},{22:[1,54]},i(R,[2,18]),{1:[2,2]},i(R,[2,8]),i(R,[2,9]),i(U,[2,39],{41:55,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g}),i(U,[2,40]),i(U,[2,41]),i(C,[2,42]),i(C,[2,44]),i(C,[2,45]),i(C,[2,46]),i(C,[2,47]),i(C,[2,48]),i(C,[2,49]),i(C,[2,50]),i(C,[2,51]),i(C,[2,52]),i(C,[2,53]),i(R,[2,10]),i(R,[2,24],{32:41,31:56,24:B,29:V}),i(R,[2,26]),i(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,11]),i(R,[2,32],{35:60,29:Y}),i(R,[2,34]),{33:[1,61]},i(R,[2,12]),{17:62,24:N},{25:63,27:64,29:w},i(R,[2,14]),{17:66,24:N},i(R,[2,16]),i(R,[2,17]),i(C,[2,43]),i(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},i(R,[2,33]),{29:[1,70]},i(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},i(z,[2,23],{30:[1,73]}),i(R,[2,15]),i(R,[2,28]),i(R,[2,29]),{11:59,30:f,34:74,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,35]),i(R,[2,19]),{25:75,27:64,29:w},i(z,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(r(function(l,u){if(u.recoverable)this.trace(l);else{var x=new Error(l);throw x.hash=u,x}},"parseError"),"parseError"),parse:n(r(function(l){var u=this,x=[0],d=[],S=[null],o=[],ct=this.table,p="",pt=0,te=0,de=2,ee=1,fe=o.slice.call(arguments,1),P=Object.create(this.lexer),q={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(q.yy[Dt]=this.yy[Dt]);P.setInput(l,q.yy),q.yy.lexer=P,q.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Pt=P.yylloc;o.push(Pt);var pe=P.options&&P.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(I){x.length=x.length-2*I,S.length=S.length-I,o.length=o.length-I}r(ie,"popStack"),n(ie,"popStack");function Lt(){var I;return I=d.pop()||P.lex()||ee,typeof I!="number"&&(I instanceof Array&&(d=I,I=d.pop()),I=u.symbols_[I]||I),I}r(Lt,"lex"),n(Lt,"lex");for(var v,j,O,vt,rt={},mt,H,se,yt;;){if(j=x[x.length-1],this.defaultActions[j]?O=this.defaultActions[j]:((v===null||typeof v>"u")&&(v=Lt()),O=ct[j]&&ct[j][v]),typeof O>"u"||!O.length||!O[0]){var Et="";yt=[];for(mt in ct[j])this.terminals_[mt]&&mt>de&&yt.push("'"+this.terminals_[mt]+"'");P.showPosition?Et="Parse error on line "+(pt+1)+`:
2
- `+P.showPosition()+`
3
- Expecting `+yt.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Et="Parse error on line "+(pt+1)+": Unexpected "+(v==ee?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Et,{text:P.match,token:this.terminals_[v]||v,line:P.yylineno,loc:Pt,expected:yt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+v);switch(O[0]){case 1:x.push(v),S.push(P.yytext),o.push(P.yylloc),x.push(O[1]),v=null,te=P.yyleng,p=P.yytext,pt=P.yylineno,Pt=P.yylloc;break;case 2:if(H=this.productions_[O[1]][1],rt.$=S[S.length-H],rt._$={first_line:o[o.length-(H||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(H||1)].first_column,last_column:o[o.length-1].last_column},pe&&(rt._$.range=[o[o.length-(H||1)].range[0],o[o.length-1].range[1]]),vt=this.performAction.apply(rt,[p,te,pt,q.yy,O[1],S,o].concat(fe)),typeof vt<"u")return vt;H&&(x=x.slice(0,-1*H*2),S=S.slice(0,-1*H),o=o.slice(0,-1*H)),x.push(this.productions_[O[1]][0]),S.push(rt.$),o.push(rt._$),se=ct[x[x.length-2]][x[x.length-1]],x.push(se);break;case 3:return!0}}return!0},"parse"),"parse")},lt=(function(){var F={EOF:1,parseError:n(r(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw new Error(u)},"parseError"),"parseError"),setInput:n(function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:n(function(l){var u=l.length,x=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(l){this.unput(this.match.slice(l))},"less"),pastInput:n(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
- `+u+"^"},"showPosition"),test_match:n(function(l,u){var x,d,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),d=l[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],x=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var o in S)this[o]=S[o];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,u,x,d;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),o=0;o<S.length;o++)if(x=this._input.match(this.rules[S[o]]),x&&(!u||x[0].length>u[0].length)){if(u=x,d=o,this.options.backtrack_lexer){if(l=this.test_match(x,S[o]),l!==!1)return l;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(l=this.test_match(u,S[d]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(r(function(){var u=this.next();return u||this.lex()},"lex"),"lex"),begin:n(r(function(u){this.conditionStack.push(u)},"begin"),"begin"),popState:n(r(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:n(r(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:n(r(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),"topState"),pushState:n(r(function(u){this.begin(u)},"pushState"),"pushState"),stateStackSize:n(r(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:n(r(function(u,x,d,S){switch(d){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return F})();_.lexer=lt;function G(){this.yy={}}return r(G,"Parser"),n(G,"Parser"),G.prototype=_,_.Parser=G,new G})();It.parser=It;var Pe=It;function gt(i){return i.type==="bar"}r(gt,"isBarPlot");n(gt,"isBarPlot");function ut(i){return i.type==="band"}r(ut,"isBandAxisData");n(ut,"isBandAxisData");function K(i){return i.type==="linear"}r(K,"isLinearAxisData");n(K,"isLinearAxisData");var Q,zt=(Q=class{constructor(t){this.parentGroup=t}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((h,c)=>Math.max(c.length,h),0)*e,height:e};const s={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(const h of t){const c=De(a,1,h),b=c?c.width:h.length*e,f=c?c.height:e;s.width=Math.max(s.width,b),s.height=Math.max(s.height,f)}return a.remove(),s}},r(Q,"TextDimensionCalculatorWithFont"),n(Q,"TextDimensionCalculatorWithFont"),Q),he=.7,re=.2,Z,ue=(Z=class{constructor(t,e,s,a){this.axisConfig=t,this.title=e,this.textDimensionCalculator=s,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){he*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(he*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),a=re*t.width;this.outerPadding=Math.min(s.width/2,a);let h=s.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(h=Math.max(h,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*s.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*s.height))),h+=this.axisConfig.labelPadding*2,this.labelTextHeight=s.height,h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=e&&(e-=a,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}calculateSpaceIfDrawnVertical(t){let e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),a=re*t.height;this.outerPadding=Math.min(s.height/2,a);const h=s.width+this.axisConfig.labelPadding*2;h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=e&&(e-=a,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){const e=this.normalizedLabelRotationInRad;return e===0?0:Math.sin(e)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const e=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${e},${this.getScaleValue(s)} L ${e-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${e} L ${this.getScaleValue(s)},${e+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${e+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${e+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},r(Z,"BaseAxis"),n(Z,"BaseAxis"),Z),J,Le=(J=class extends ue{constructor(t,e,s,a,h){super(t,a,h,e),this.categories=s,this.scale=ne().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=ne().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ce.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},r(J,"BandAxis"),n(J,"BandAxis"),J),tt,ve=(tt=class extends ue{constructor(t,e,s,a,h){super(t,a,h,e),this.domain=s,this.scale=oe().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=oe().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},r(tt,"LinearAxis"),n(tt,"LinearAxis"),tt);function bt(i,t,e,s){const a=new zt(s);return ut(i)?new Le(t,e,i.categories,i.title,a):new ve(t,e,[i.min,i.max],i.title,a)}r(bt,"getAxis");n(bt,"getAxis");var et,Ee=(et=class{constructor(t,e,s,a){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=s,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(e.width,t.width),a=e.height+2*this.chartConfig.titlePadding;return e.width<=s&&e.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=a,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},r(et,"ChartTitle"),n(et,"ChartTitle"),et);function Ot(i,t,e,s){const a=new zt(s);return new Ee(a,i,t,e)}r(Ot,"getChartTitleComponent");n(Ot,"getChartTitleComponent");var Ie=.75,Me=.5,Be=.35;function At(i){return{fontSize:i,markerSize:i*Ie,markerSpacing:i*Be,itemSpacing:i*Me}}r(At,"getLegendLayout");n(At,"getLegendLayout");var it,ze=(it=class{constructor(t,e,s,a){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=s,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(m=>m.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};const{fontSize:e,markerSize:s,markerSpacing:a,itemSpacing:h}=At(this.chartConfig.legendFontSize),c=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(m=>m.title),e),b=this.chartConfig.legendPadding*2+s+a+c.width,f=this.chartConfig.legendPadding*2+this.visiblePlots.length*e+(this.visiblePlots.length-1)*h;return b<=t.width&&f<=t.height?(this.boundingRect.width=b,this.boundingRect.height=f):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];const{fontSize:t,markerSize:e,markerSpacing:s,itemSpacing:a}=At(this.chartConfig.legendFontSize),h=t+a,c=this.boundingRect.x+this.chartConfig.legendPadding,b=this.boundingRect.y+this.chartConfig.legendPadding,f=[],m=[];for(const[k,T]of this.visiblePlots.entries())if(gt(T))f.push({x:c,y:b+k*h,width:e,height:e,fill:T.fill,strokeFill:T.fill,strokeWidth:0});else{const L=b+k*h+e/2;m.push({path:`M ${c},${L} L ${c+e},${L}`,strokeFill:T.strokeFill,strokeWidth:T.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:f},{groupTexts:["legend","markers"],type:"path",data:m},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((k,T)=>({text:k.title,x:c+e+s,y:b+T*h+e/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}},r(it,"ChartLegend"),n(it,"ChartLegend"),it);function Vt(i,t,e,s){const a=new zt(s);return new ze(a,i,t,e)}r(Vt,"getChartLegendComponent");n(Vt,"getChartLegendComponent");var st,Oe=(st=class{constructor(t,e,s,a,h){this.plotData=t,this.xAxis=e,this.yAxis=s,this.orientation=a,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);let e;if(this.orientation==="horizontal"?e=ae().y(a=>a[0]).x(a=>a[1])(t):e=ae().x(a=>a[0]).y(a=>a[1])(t),!e)return[];const s=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:e,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const c=[];for(const[b,[f,m]]of t.entries()){const k=this.plotData.pointLabels[b];k&&(this.orientation==="horizontal"?c.push({x:m+10,y:f,text:k,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):c.push({x:f,y:m-10,text:k,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}c.length>0&&s.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:c})}return s}},r(st,"LinePlot"),n(st,"LinePlot"),st),at,Ve=(at=class{constructor(t,e,s,a,h,c){this.barData=t,this.boundingRect=e,this.xAxis=s,this.yAxis=a,this.orientation=h,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),a=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-a,height:s,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-a,y:h[1],width:s,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},r(at,"BarPlot"),n(at,"BarPlot"),at),nt,Fe=(nt=class{constructor(t,e,s){this.chartConfig=t,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,e){this.xAxis=t,this.yAxis=e}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[e,s]of this.chartData.plots.entries())switch(s.type){case"line":{const a=new Oe(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...a.getDrawableElement())}break;case"bar":{const a=new Ve(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...a.getDrawableElement())}break}return t}},r(nt,"BasePlot"),n(nt,"BasePlot"),nt);function Ft(i,t,e){return new Fe(i,t,e)}r(Ft,"getPlotComponent");n(Ft,"getPlotComponent");var ot,We=(ot=class{constructor(t,e,s,a){this.chartConfig=t,this.chartData=e,this.componentStore={title:Ot(t,e,s,a),plot:Ft(t,e,s),legend:Vt(t,e,s,a),xAxis:bt(e.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},a),yAxis:bt(e.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},a)}}calculateVerticalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,s=0,a=0,h={width:0,height:0},c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),b=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:c,height:b});t-=f.width,e-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),a=f.height,e-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:e}),e-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:e}),s=f.width,t-=f.width,h=this.componentStore.legend.calculateSpace({width:t,height:b}),t-=h.width,t>0&&(c+=t,t=0),e>0&&(b+=e,e=0),this.componentStore.plot.calculateSpace({width:c,height:b}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.legend.setBoundingBoxXY({x:s+c,y:a+Math.max((b-h.height)/2,0)}),this.componentStore.xAxis.setRange([s,s+c]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:a+b}),this.componentStore.yAxis.setRange([a,a+b]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(m=>gt(m))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,s=0,a=0,h=0,c={width:0,height:0},b=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),m=this.componentStore.plot.calculateSpace({width:b,height:f});t-=m.width,e-=m.height,m=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),s=m.height,e-=m.height,this.componentStore.xAxis.setAxisPosition("left"),m=this.componentStore.xAxis.calculateSpace({width:t,height:e}),t-=m.width,a=m.width,this.componentStore.yAxis.setAxisPosition("top"),m=this.componentStore.yAxis.calculateSpace({width:t,height:e}),e-=m.height,h=s+m.height,c=this.componentStore.legend.calculateSpace({width:t,height:f}),t-=c.width,t>0&&(b+=t,t=0),e>0&&(f+=e,e=0),this.componentStore.plot.calculateSpace({width:b,height:f}),this.componentStore.plot.setBoundingBoxXY({x:a,y:h}),this.componentStore.legend.setBoundingBoxXY({x:a+b,y:h+Math.max((f-c.height)/2,0)}),this.componentStore.yAxis.setRange([a,a+b]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([h,h+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(k=>gt(k))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}},r(ot,"Orchestrator"),n(ot,"Orchestrator"),ot),ht,Xe=(ht=class{static build(t,e,s,a){return new We(t,e,s,a).getDrawableElement()}},r(ht,"XYChartBuilder"),n(ht,"XYChartBuilder"),ht),xt=0,xe,dt=St(),ft=wt(),y=Rt(),Mt=ft.plotColorPalette.split(",").map(i=>i.trim()),Ct=!1,Wt=!1;function wt(){const i=Te(),t=Bt();return ge(i.xyChart,t.themeVariables.xyChart)}r(wt,"getChartDefaultThemeConfig");n(wt,"getChartDefaultThemeConfig");function St(){const i=Bt();return ge(ke.xyChart,i.xyChart)}r(St,"getChartDefaultConfig");n(St,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}r(Rt,"getChartDefaultData");n(Rt,"getChartDefaultData");function $(i){const t=Bt();return _e(i.trim(),t)}r($,"textSanitizer");n($,"textSanitizer");function Xt(i){xe=i}r(Xt,"setTmpSVGG");n(Xt,"setTmpSVGG");function Yt(i){i==="horizontal"?dt.chartOrientation="horizontal":dt.chartOrientation="vertical"}r(Yt,"setOrientation");n(Yt,"setOrientation");function Nt(i){y.xAxis.title=$(i.text)}r(Nt,"setXAxisTitle");n(Nt,"setXAxisTitle");function _t(i,t){y.xAxis={type:"linear",title:y.xAxis.title,min:i,max:t},Ct=!0}r(_t,"setXAxisRangeData");n(_t,"setXAxisRangeData");function Ht(i){y.xAxis={type:"band",title:y.xAxis.title,categories:i.map(t=>$(t.text))},Ct=!0}r(Ht,"setXAxisBand");n(Ht,"setXAxisBand");function $t(i){y.yAxis.title=$(i.text)}r($t,"setYAxisTitle");n($t,"setYAxisTitle");function Ut(i,t){y.yAxis={type:"linear",title:y.yAxis.title,min:i,max:t},Wt=!0}r(Ut,"setYAxisRangeData");n(Ut,"setYAxisRangeData");function Gt(i){const t=Math.min(...i),e=Math.max(...i),s=K(y.yAxis)?y.yAxis.min:1/0,a=K(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(a,e)}}r(Gt,"setYAxisRangeFromPlotData");n(Gt,"setYAxisRangeFromPlotData");function kt(i){let t=[];if(i.length===0)return t;if(!Ct){const e=K(y.xAxis)?y.xAxis.min:1/0,s=K(y.xAxis)?y.xAxis.max:-1/0;_t(Math.min(e,1),Math.max(s,i.length))}if(ut(y.xAxis)&&i.length>y.xAxis.categories.length&&(i=i.slice(0,y.xAxis.categories.length)),Wt||Gt(i),ut(y.xAxis)&&(t=y.xAxis.categories.map((e,s)=>[e,i[s]])),K(y.xAxis)){const e=y.xAxis.min,s=y.xAxis.max;if(i.length===1)t=[[`${e}`,i[0]]];else{const a=(s-e)/(i.length-1);t=i.map((h,c)=>[`${e+c*a}`,h])}}return t}r(kt,"transformDataWithoutCategory");n(kt,"transformDataWithoutCategory");function Tt(i){return Mt[i===0?0:i%Mt.length]}r(Tt,"getPlotColorFromPalette");n(Tt,"getPlotColorFromPalette");function qt(i,t){const e=t.map(c=>c.value),s=t.map(c=>c.label?$(c.label):""),a=kt(e),h=s.some(c=>c!=="");y.plots.push({type:"line",title:$(i.text),strokeFill:Tt(xt),strokeWidth:2,data:a,...h?{pointLabels:s}:{}}),xt++}r(qt,"setLineData");n(qt,"setLineData");function jt(i,t){const e=t.map(a=>a.value),s=kt(e);y.plots.push({type:"bar",title:$(i.text),fill:Tt(xt),data:s}),xt++}r(jt,"setBarData");n(jt,"setBarData");function Kt(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=le(),Xe.build(dt,y,ft,xe)}r(Kt,"getDrawableElem");n(Kt,"getDrawableElem");function Qt(){return ft}r(Qt,"getChartThemeConfig");n(Qt,"getChartThemeConfig");function Zt(){return dt}r(Zt,"getChartConfig");n(Zt,"getChartConfig");function Jt(){return y}r(Jt,"getXYChartData");n(Jt,"getXYChartData");var Ye=n(function(){Re(),xt=0,dt=St(),y=Rt(),ft=wt(),Mt=ft.plotColorPalette.split(",").map(i=>i.trim()),Ct=!1,Wt=!1},"clear"),Ne={getDrawableElem:Kt,clear:Ye,setAccTitle:Ce,getAccTitle:Ae,setDiagramTitle:be,getDiagramTitle:le,getAccDescription:ye,setAccDescription:me,setOrientation:Yt,setXAxisTitle:Nt,setXAxisRangeData:_t,setXAxisBand:Ht,setYAxisTitle:$t,setYAxisRangeData:Ut,setLineData:qt,setBarData:jt,setTmpSVGG:Xt,getChartThemeConfig:Qt,getChartConfig:Zt,getXYChartData:Jt},He=n((i,t,e,s)=>{const a=s.db,h=a.getChartThemeConfig(),c=a.getChartConfig(),b=a.getXYChartData().plots[0].data.map(A=>A[1]);function f(A){return A==="top"?"text-before-edge":"middle"}r(f,"getDominantBaseLine"),n(f,"getDominantBaseLine");function m(A){return A==="left"?"start":A==="right"?"end":"middle"}r(m,"getTextAnchor"),n(m,"getTextAnchor");function k(A){return`translate(${A.x}, ${A.y}) rotate(${A.rotation||0})`}r(k,"getTextTransformation"),n(k,"getTextTransformation"),ce.debug(`Rendering xychart chart
7
- `+i);const T=we(t),L=T.append("g").attr("class","main"),W=L.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");Se(T,c.height,c.width,!0),T.attr("viewBox",`0 0 ${c.width} ${c.height}`),W.attr("fill",h.backgroundColor),a.setTmpSVGG(T.append("g").attr("class","mermaid-tmp-group"));const X=a.getDrawableElem(),E={};function M(A){let D=L,g="";for(const[B]of A.entries()){let V=L;B>0&&E[g]&&(V=E[g]),g+=A[B],D=E[g],D||(D=E[g]=V.append("g").attr("class",A[B]))}return D}r(M,"getGroup"),n(M,"getGroup");for(const A of X){if(A.data.length===0)continue;const D=M(A.groupTexts);switch(A.type){case"rect":if(D.selectAll("rect").data(A.data).enter().append("rect").attr("x",g=>g.x).attr("y",g=>g.y).attr("width",g=>g.width).attr("height",g=>g.height).attr("fill",g=>g.fill).attr("stroke",g=>g.strokeFill).attr("stroke-width",g=>g.strokeWidth),c.showDataLabel){const g=c.showDataLabelOutsideBar;if(c.chartOrientation==="horizontal"){let B=r(function(w,z){const{data:_,label:lt}=w;return z*lt.length*V<=_.width-Y},"fitsHorizontally2");n(B,"fitsHorizontally");const V=.7,Y=10,N=A.data.map((w,z)=>({data:w,label:b[z].toString()})).filter(w=>w.data.width>0&&w.data.height>0),R=N.map(w=>{const{data:z}=w;let _=z.height*.7;for(;!B(w,_)&&_>0;)_-=1;return _}),U=Math.floor(Math.min(...R)),C=n(w=>g?w.data.x+w.data.width+Y:w.data.x+w.data.width-Y,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",C).attr("y",w=>w.data.y+w.data.height/2).attr("text-anchor",g?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${U}px`).text(w=>w.label)}else{let B=r(function(C,w,z){const{data:_,label:lt}=C,F=w*lt.length*.7,l=_.x+_.width/2,u=l-F/2,x=l+F/2,d=u>=_.x&&x<=_.x+_.width,S=_.y+z+w<=_.y+_.height;return d&&S},"fitsInBar2");n(B,"fitsInBar");const V=10,Y=A.data.map((C,w)=>({data:C,label:b[w].toString()})).filter(C=>C.data.width>0&&C.data.height>0),N=Y.map(C=>{const{data:w,label:z}=C;let _=w.width/(z.length*.7);for(;!B(C,_,V)&&_>0;)_-=1;return _}),R=Math.floor(Math.min(...N)),U=n(C=>g?C.data.y-V:C.data.y+V,"determineLabelYPosition");D.selectAll("text").data(Y).enter().append("text").attr("x",C=>C.data.x+C.data.width/2).attr("y",U).attr("text-anchor","middle").attr("dominant-baseline",g?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${R}px`).text(C=>C.label)}}break;case"text":D.selectAll("text").data(A.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",g=>g.fill).attr("font-size",g=>g.fontSize).attr("dominant-baseline",g=>f(g.verticalPos)).attr("text-anchor",g=>m(g.horizontalPos)).attr("transform",g=>k(g)).text(g=>g.text);break;case"path":D.selectAll("path").data(A.data).enter().append("path").attr("d",g=>g.path).attr("fill",g=>g.fill?g.fill:"none").attr("stroke",g=>g.strokeFill).attr("stroke-width",g=>g.strokeWidth);break}}},"draw"),$e={draw:He},Ke={parser:Pe,db:Ne,renderer:$e};export{Ke as diagram};
@@ -1 +0,0 @@
1
- import{g as p,r as u,d as n}from"./DsJW9cbJ.js";import{p as f}from"./D9ytGf5e.js";import{M as c,c as d}from"./BDchM60p.js";import{a,ad as o}from"./CnCQnNEp.js";import"./BgmOiuVG.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};
@@ -1 +0,0 @@
1
- import{a,r as w,ad as x}from"./CnCQnNEp.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=d(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),d=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
@@ -1 +0,0 @@
1
- import{b as t,a,s as r,S as s}from"./Cyhorubq.js";import{a as i}from"./CnCQnNEp.js";import"./BgmOiuVG.js";import"./CTI6K_Uf.js";var u={parser:r,get db(){return new s(2)},renderer:a,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1,30 +0,0 @@
1
- import{I as X}from"./BCfzoYfU.js";import{p as z}from"./D9ytGf5e.js";import{p as G}from"./BDchM60p.js";import{aI as F,aG as Y,aF as P,O as q,K as Z,L as j,a as g,j as M,ad as S,aE as U,r as K,M as R,k as Q,aD as J,Q as ee,y as te,aw as ne}from"./CnCQnNEp.js";import{g as v}from"./BgmOiuVG.js";var H=/[─━│┃└┗├┣]/,W=/[└┗├┣]/,re=/[─━]/,A=/^[\s│┃]+$/,D=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,L=/^\s*%%/,ie=" ";function N(n){return n.some(t=>H.test(t))}v(N,"isBoxDrawingFormat");g(N,"isBoxDrawingFormat");function T(n){for(const t of n){const e=W.exec(t);if(e?.index&&e.index>0)return e.index}return 4}v(T,"inferSegmentWidth");g(T,"inferSegmentWidth");function V(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}v(V,"remapErrorLines");g(V,"remapErrorLines");function $(n){const t=n.split(`
2
- `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||L.test(c)||D.test(c)||A.test(c)||s.push(c.replace(/\t/g," "))}if(!N(s))return{text:n,lineMap:e};const i=T(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if(L.test(c)){o.push(c),a++,e.set(a,h);continue}if(D.test(c)){o.push(c),a++,e.set(a,h);continue}if(A.test(c))continue;const l=c.replace(/\t/g," "),m=W.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const b=l.slice(u).trimEnd();if(!b)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=ie.repeat(w);o.push(O+b),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(H.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
- `),lineMap:e}}v($,"preprocessBoxDrawing");g($,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=g(()=>{x.reset(),Q()},"clear"),se=g(()=>x.records.stack[0],"getRoot"),ae=g(()=>x.records.cnt,"getCount"),ce=te.treeView,le=g(()=>M(ce,R().treeView),"getConfig"),de=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:j,getAccDescription:Z,getDiagramTitle:q,setAccDescription:P,setAccTitle:Y,setDiagramTitle:F},B=he,pe=g(n=>{z(n,B);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,R()):void 0;B.addNode(e,r,i,o,p,d)}},"populate"),ge={parse:g(async n=>{const{text:t,lineMap:e}=$(n);try{const r=await G("treeView",t);S.debug(r),pe(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=V(r.message,e)),r}},"parse")},I={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function E(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}v(E,"detectIcon");g(E,"detectIcon");function C(n,t){return n.includes(":")?n:n in I.icons||!t?`${I.prefix}:${n}`:`${t}:${n}`}v(C,"qualifyIcon");g(C,"qualifyIcon");function y(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=E(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${I.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}v(y,"getNodeIcon");g(y,"getNodeIcon");ne([{name:I.prefix,icons:I}]);var k=14,fe=4,ue=16,me=g(async(n,t)=>{const e=[],r=g(i=>{const o=y(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await ee(i,{height:k,width:k})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=k+fe,c=y(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=n+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,b=m+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:b,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),_=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),xe=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=we(f,s,h,d,l,r);o.push(w);const{height:u,width:b}=h.BBox;_(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+b),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;_(n,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+ue;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),ve=g(async(n,t,e,r)=>{S.debug(`Rendering treeView diagram
4
- `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=U(t),p=a.append("g");p.attr("class","tree-view");const c=await me(i,o),{totalHeight:d,totalWidth:h}=xe(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),K(a,d,h,o.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=M(Ce,n);return`
5
- .treeView-node-label {
6
- font-size: ${t};
7
- fill: ${e};
8
- white-space: pre;
9
- }
10
- .treeView-node-dir {
11
- font-weight: bold;
12
- }
13
- .treeView-node-line {
14
- stroke: ${r};
15
- }
16
- .treeView-node-icon {
17
- color: ${s};
18
- }
19
- .treeView-node-description {
20
- font-size: ${t};
21
- fill: ${i};
22
- font-style: italic;
23
- white-space: pre;
24
- }
25
- .treeView-highlight-bg {
26
- fill: ${o};
27
- stroke: ${a};
28
- stroke-width: 1;
29
- }
30
- `},"styles"),Be=ye,Ee={db:B,renderer:Ie,parser:ge,styles:Be};export{Ee as diagram};