mio-previewer 0.2.73 → 0.2.76

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 (282) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +2 -1
  3. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  4. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  5. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  6. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  7. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  8. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  9. package/dist/arc-C78br9Yj.cjs +1 -0
  10. package/dist/arc-vLgDTVZZ.js +80 -0
  11. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  12. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  13. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  14. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  15. package/dist/array-CApNbSU9.js +6 -0
  16. package/dist/array-DZSRzHA_.cjs +1 -0
  17. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  18. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  19. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  20. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  21. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  22. package/dist/channel-BWHkpgVD.cjs +1 -0
  23. package/dist/channel-JT7eWw2w.js +5 -0
  24. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  25. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  26. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  27. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  28. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  29. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  30. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  31. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  32. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  33. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  34. package/dist/chunk-BNMv73og.cjs +1 -0
  35. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  36. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  37. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  38. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  39. package/dist/chunk-Dbv0sNQl.js +20 -0
  40. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  41. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  42. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  43. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  44. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  45. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  46. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  47. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  48. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  49. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  50. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  51. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  52. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  53. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  54. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  55. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  56. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  57. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  58. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  59. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  60. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  61. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  62. package/dist/clone-B0KDIkSS.js +8 -0
  63. package/dist/clone-wvtBTB6v.cjs +1 -0
  64. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  65. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  66. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  67. package/dist/custom-D-TzPpWT.js +5281 -0
  68. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  69. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  70. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  71. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  72. package/dist/dagre-BfAHSwtP.js +1472 -0
  73. package/dist/dagre-Buvkww-e.cjs +1 -0
  74. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  75. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  76. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  77. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  78. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  79. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  80. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  81. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  82. package/dist/dist-DC-lM4uX.cjs +1 -0
  83. package/dist/dist-zNcLEPGR.js +51 -0
  84. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  85. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  86. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  87. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  88. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  89. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  90. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  91. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  92. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  93. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  94. package/dist/graphlib-C3tPLMbC.js +225 -0
  95. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  96. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  97. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  98. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  99. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  100. package/dist/init-07zIhv_j.cjs +1 -0
  101. package/dist/init-Bwwdo3M6.js +15 -0
  102. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  103. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  104. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  105. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  106. package/dist/katex-6UpFeIdV.cjs +261 -0
  107. package/dist/katex-BHcJffnM.js +22112 -0
  108. package/dist/line-DYhVGH2B.js +34 -0
  109. package/dist/line-DdNAPGaw.cjs +1 -0
  110. package/dist/linear-n4_iirEu.js +289 -0
  111. package/dist/linear-rQLpRrSH.cjs +1 -0
  112. package/dist/loadCss-D6257oR0.js +8 -0
  113. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  114. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  115. package/dist/markdown-it-D-hH4G7k.js +173 -0
  116. package/dist/math-G8rF7UWn.cjs +1 -0
  117. package/dist/math-H49DsxYR.js +10 -0
  118. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  119. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  120. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  121. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  122. package/dist/mio-previewer.cjs.js +11 -21
  123. package/dist/mio-previewer.css +2 -9
  124. package/dist/mio-previewer.esm.js +4939 -0
  125. package/dist/ordinal-C55HfHHp.js +65 -0
  126. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  127. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  128. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  129. package/dist/path-DNvJyUE8.js +85 -0
  130. package/dist/path-Kklx0M1v.cjs +1 -0
  131. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  132. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  133. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  134. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  135. package/dist/plugins/custom.cjs.js +1 -1
  136. package/dist/plugins/custom.esm.js +2 -0
  137. package/dist/plugins/markdown-it.cjs.js +1 -3
  138. package/dist/plugins/markdown-it.esm.js +2 -0
  139. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  140. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  141. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  142. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  143. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  144. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  145. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  146. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  147. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  148. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  149. package/dist/src-BMjps4Ui.cjs +1 -0
  150. package/dist/src-BuisGndr.js +2149 -0
  151. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  152. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  153. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  154. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  155. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  156. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  157. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  158. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  159. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  160. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  161. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  162. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  163. package/package.json +2 -2
  164. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  165. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  166. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  167. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  168. package/dist/arc-B-QGG8RZ.cjs +0 -1
  169. package/dist/arc-djW14lrn.js +0 -83
  170. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  171. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  172. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  173. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  174. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  175. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  176. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  177. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  178. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  179. package/dist/channel-D_ITz6Jy.cjs +0 -1
  180. package/dist/channel-sXy9EduO.js +0 -5
  181. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  182. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  183. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  184. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  185. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  186. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  187. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  188. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  189. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  190. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  191. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  192. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  193. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  194. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  195. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  196. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  198. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  199. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  200. package/dist/clone-DOYxaT_d.js +0 -8
  201. package/dist/clone-DSlm33NG.cjs +0 -1
  202. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  203. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  204. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  205. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  206. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  207. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  208. package/dist/defaultLocale-D7EN2tov.js +0 -171
  209. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  210. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  211. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  212. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  213. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  214. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  215. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  216. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  217. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  218. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  219. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  220. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  221. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  222. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  223. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  224. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  225. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  226. package/dist/graph-DEnt0OtZ.js +0 -247
  227. package/dist/graph-Dgcjs2XL.cjs +0 -1
  228. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  229. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  230. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  231. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  232. package/dist/init-CHZsXQcr.cjs +0 -1
  233. package/dist/init-DjUOC4st.js +0 -16
  234. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  235. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  236. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  237. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  238. package/dist/katex-CmGeg_OO.js +0 -11692
  239. package/dist/katex-DEiiRhcn.cjs +0 -261
  240. package/dist/layout-BDNzBIaA.cjs +0 -1
  241. package/dist/layout-DTBfbHzy.js +0 -1324
  242. package/dist/linear-BRl2UYUr.cjs +0 -1
  243. package/dist/linear-CwbXkgvF.js +0 -259
  244. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  245. package/dist/loadCss-DS0Fuaxe.js +0 -8
  246. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  247. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  248. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  249. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  250. package/dist/mio-previewer.es.js +0 -6171
  251. package/dist/ordinal-CagbB1m8.cjs +0 -1
  252. package/dist/ordinal-DfAQgscy.js +0 -61
  253. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  254. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  255. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  256. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  257. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  258. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  259. package/dist/plugins/custom.es.js +0 -85
  260. package/dist/plugins/markdown-it.es.js +0 -173
  261. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  262. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  263. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  264. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  265. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  266. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  267. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  268. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  269. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  270. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  271. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  272. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  273. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  274. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  275. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  276. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  277. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  278. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  279. package/dist/viewer-CZUSHxhf.js +0 -19131
  280. package/dist/viewer-Canph5Zx.cjs +0 -305
  281. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  282. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -1,267 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./viewer-Canph5Zx.cjs"),Ce=require("./linear-BRl2UYUr.cjs"),bn=require("./init-CHZsXQcr.cjs");function wn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function Dn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Cn(e){return e}var qe=1,rt=2,ht=3,je=4,Et=1e-6;function Mn(e){return"translate("+e+",0)"}function Sn(e){return"translate(0,"+e+")"}function Fn(e){return t=>+e(t)}function Yn(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Un(){return!this.__axis}function $t(e,t){var n=[],r=null,a=null,i=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=e===qe||e===je?-1:1,g=e===je||e===rt?"x":"y",E=e===qe||e===ht?Mn:Sn;function D(_){var Z=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Cn),C=Math.max(i,0)+y,I=t.range(),P=+I[0]+M,W=+I[I.length-1]+M,q=(t.bandwidth?Yn:Fn)(t.copy(),M),$=_.selection?_.selection():_,w=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(Z,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),F=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),F=F.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",p*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,p*C).attr("dy",e===qe?"0em":e===ht?"0.71em":"0.32em")),_!==$&&(w=w.transition(_),H=H.transition(_),F=F.transition(_),S=S.transition(_),x=x.transition(_).attr("opacity",Et).attr("transform",function(v){return isFinite(v=q(v))?E(v+M):this.getAttribute("transform")}),Y.attr("opacity",Et).attr("transform",function(v){var U=this.parentNode.__axis;return E((U&&isFinite(U=U(v))?U:q(v))+M)})),x.remove(),w.attr("d",e===je||e===rt?o?"M"+p*o+","+P+"H"+M+"V"+W+"H"+p*o:"M"+M+","+P+"V"+W:o?"M"+P+","+p*o+"V"+M+"H"+W+"V"+p*o:"M"+P+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(v){return E(q(v)+M)}),F.attr(g+"2",p*i),S.attr(g,p*C).text(O),$.filter(Un).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===rt?"start":e===je?"end":"middle"),$.each(function(){this.__axis=q})}return D.scale=function(_){return arguments.length?(t=_,D):t},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(_){return arguments.length?(n=_==null?[]:Array.from(_),D):n.slice()},D.tickValues=function(_){return arguments.length?(r=_==null?null:Array.from(_),D):r&&r.slice()},D.tickFormat=function(_){return arguments.length?(a=_,D):a},D.tickSize=function(_){return arguments.length?(i=o=+_,D):i},D.tickSizeInner=function(_){return arguments.length?(i=+_,D):i},D.tickSizeOuter=function(_){return arguments.length?(o=+_,D):o},D.tickPadding=function(_){return arguments.length?(y=+_,D):y},D.offset=function(_){return arguments.length?(M=+_,D):M},D}function En(e){return $t(qe,e)}function An(e){return $t(ht,e)}const Ln=Math.PI/180,In=180/Math.PI,Qe=18,Qt=.96422,Jt=1,Kt=.82521,en=4/29,Me=6/29,tn=3*Me*Me,Wn=Me*Me*Me;function nn(e){if(e instanceof le)return new le(e.l,e.a,e.b,e.opacity);if(e instanceof de)return rn(e);e instanceof s.Rgb||(e=s.rgbConvert(e));var t=ot(e.r),n=ot(e.g),r=ot(e.b),a=at((.2225045*t+.7168786*n+.0606169*r)/Jt),i,o;return t===n&&n===r?i=o=a:(i=at((.4360747*t+.3850649*n+.1430804*r)/Qt),o=at((.0139322*t+.0971045*n+.7141733*r)/Kt)),new le(116*a-16,500*(i-a),200*(a-o),e.opacity)}function On(e,t,n,r){return arguments.length===1?nn(e):new le(e,t,n,r??1)}function le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}s.define(le,On,s.extend(s.Color$1,{brighter(e){return new le(this.l+Qe*(e??1),this.a,this.b,this.opacity)},darker(e){return new le(this.l-Qe*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Qt*it(t),e=Jt*it(e),n=Kt*it(n),new s.Rgb(st(3.1338561*t-1.6168667*e-.4906146*n),st(-.9787684*t+1.9161415*e+.033454*n),st(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function at(e){return e>Wn?Math.pow(e,1/3):e/tn+en}function it(e){return e>Me?e*e*e:tn*(e-en)}function st(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hn(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof le||(e=nn(e)),e.a===0&&e.b===0)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*In;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function mt(e,t,n,r){return arguments.length===1?Hn(e):new de(e,t,n,r??1)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rn(e){if(isNaN(e.h))return new le(e.l,0,0,e.opacity);var t=e.h*Ln;return new le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}s.define(de,mt,s.extend(s.Color$1,{brighter(e){return new de(this.h,this.c,this.l+Qe*(e??1),this.opacity)},darker(e){return new de(this.h,this.c,this.l-Qe*(e??1),this.opacity)},rgb(){return rn(this).rgb()}}));function Nn(e){return function(t,n){var r=e((t=mt(t)).h,(n=mt(n)).h),a=s.nogamma(t.c,n.c),i=s.nogamma(t.l,n.l),o=s.nogamma(t.opacity,n.opacity);return function(y){return t.h=r(y),t.c=a(y),t.l=i(y),t.opacity=o(y),t+""}}}const Pn=Nn(s.hue);function Vn(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}const ct=new Date,ut=new Date;function te(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),y=a.ceil(i);return i-o<y-i?o:y},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,y)=>{const M=[];if(i=a.ceil(i),y=y==null?1:Math.floor(y),!(i<o)||!(y>0))return M;let p;do M.push(p=new Date(+i)),t(i,y),e(i);while(p<i&&i<o);return M},a.filter=i=>te(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;t(o,-1),!i(o););else for(;--y>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ct.setTime(+i),ut.setTime(+o),e(ct),e(ut),Math.floor(n(ct,ut))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Fe=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fe);Fe.range;const he=1e3,oe=he*60,me=oe*60,ge=me*24,vt=ge*7,At=ge*30,lt=ge*365,pe=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*he)},(e,t)=>(t-e)/he,e=>e.getUTCSeconds());pe.range;const Ie=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getMinutes());Ie.range;const zn=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getUTCMinutes());zn.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he-e.getMinutes()*oe)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getHours());We.range;const Rn=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCHours());Rn.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oe)/ge,e=>e.getDate()-1);ve.range;const Tt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>e.getUTCDate()-1);Tt.range;const jn=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>Math.floor(e/ge));jn.range;function xe(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oe)/vt)}const Ne=xe(0),Oe=xe(1),an=xe(2),sn=xe(3),Te=xe(4),on=xe(5),cn=xe(6);Ne.range;Oe.range;an.range;sn.range;Te.range;on.range;cn.range;function be(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vt)}const un=be(0),Je=be(1),qn=be(2),Bn=be(3),Ye=be(4),Zn=be(5),Xn=be(6);un.range;Je.range;qn.range;Bn.range;Ye.range;Zn.range;Xn.range;const He=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());He.range;const Gn=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gn.range;const ye=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ye.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ye.range;const _e=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_e.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});_e.range;function $n(e,t,n,r,a,i){const o=[[pe,1,he],[pe,5,5*he],[pe,15,15*he],[pe,30,30*he],[i,1,oe],[i,5,5*oe],[i,15,15*oe],[i,30,30*oe],[a,1,me],[a,3,3*me],[a,6,6*me],[a,12,12*me],[r,1,ge],[r,2,2*ge],[n,1,vt],[t,1,At],[t,3,3*At],[e,1,lt]];function y(p,g,E){const D=g<p;D&&([p,g]=[g,p]);const _=E&&typeof E.range=="function"?E:M(p,g,E),Z=_?_.range(p,+g+1):[];return D?Z.reverse():Z}function M(p,g,E){const D=Math.abs(g-p)/E,_=Ce.bisector(([,,C])=>C).right(o,D);if(_===o.length)return e.every(Ce.tickStep(p/lt,g/lt,E));if(_===0)return Fe.every(Math.max(Ce.tickStep(p,g,E),1));const[Z,O]=o[D/o[_-1][2]<o[_][2]/D?_-1:_];return Z.every(O)}return[y,M]}const[Qn,Jn]=$n(ye,He,Ne,ve,We,Ie);function ft(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function dt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ee(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Kn(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,y=e.months,M=e.shortMonths,p=Ae(a),g=Le(a),E=Ae(i),D=Le(i),_=Ae(o),Z=Le(o),O=Ae(y),C=Le(y),I=Ae(M),P=Le(M),W={a:h,A:b,b:u,B:l,c:null,d:Nt,e:Nt,f:xr,g:Er,G:Lr,H:vr,I:Tr,j:_r,L:ln,m:br,M:wr,p:c,q:z,Q:zt,s:Rt,S:Dr,u:Cr,U:Mr,V:Sr,w:Fr,W:Yr,x:null,X:null,y:Ur,Y:Ar,Z:Ir,"%":Vt},q={a:V,A:R,b:K,B:X,c:null,d:Pt,e:Pt,f:Nr,g:Gr,G:Qr,H:Wr,I:Or,j:Hr,L:dn,m:Pr,M:Vr,p:Q,q:ae,Q:zt,s:Rt,S:zr,u:Rr,U:jr,V:qr,w:Br,W:Zr,x:null,X:null,y:Xr,Y:$r,Z:Jr,"%":Vt},$={a:F,A:S,b:v,B:U,c:f,d:Ot,e:Ot,f:gr,g:Wt,G:It,H:Ht,I:Ht,j:fr,L:mr,m:lr,M:dr,p:Y,q:ur,Q:kr,s:pr,S:hr,u:ar,U:ir,V:sr,w:rr,W:or,x:m,X:T,y:Wt,Y:It,Z:cr,"%":yr};W.x=w(n,W),W.X=w(r,W),W.c=w(t,W),q.x=w(n,q),q.X=w(r,q),q.c=w(t,q);function w(k,L){return function(N){var d=[],J=-1,A=0,G=k.length,B,re,ie;for(N instanceof Date||(N=new Date(+N));++J<G;)k.charCodeAt(J)===37&&(d.push(k.slice(A,J)),(re=Lt[B=k.charAt(++J)])!=null?B=k.charAt(++J):re=B==="e"?" ":"0",(ie=L[B])&&(B=ie(N,re)),d.push(B),A=J+1);return d.push(k.slice(A,J)),d.join("")}}function H(k,L){return function(N){var d=Ee(1900,void 0,1),J=x(d,k,N+="",0),A,G;if(J!=N.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(L&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(A=dt(Ee(d.y,0,1)),G=A.getUTCDay(),A=G>4||G===0?Je.ceil(A):Je(A),A=Tt.offset(A,(d.V-1)*7),d.y=A.getUTCFullYear(),d.m=A.getUTCMonth(),d.d=A.getUTCDate()+(d.w+6)%7):(A=ft(Ee(d.y,0,1)),G=A.getDay(),A=G>4||G===0?Oe.ceil(A):Oe(A),A=ve.offset(A,(d.V-1)*7),d.y=A.getFullYear(),d.m=A.getMonth(),d.d=A.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),G="Z"in d?dt(Ee(d.y,0,1)).getUTCDay():ft(Ee(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(G+5)%7:d.w+d.U*7-(G+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,dt(d)):ft(d)}}function x(k,L,N,d){for(var J=0,A=L.length,G=N.length,B,re;J<A;){if(d>=G)return-1;if(B=L.charCodeAt(J++),B===37){if(B=L.charAt(J++),re=$[B in Lt?L.charAt(J++):B],!re||(d=re(k,N,d))<0)return-1}else if(B!=N.charCodeAt(d++))return-1}return d}function Y(k,L,N){var d=p.exec(L.slice(N));return d?(k.p=g.get(d[0].toLowerCase()),N+d[0].length):-1}function F(k,L,N){var d=_.exec(L.slice(N));return d?(k.w=Z.get(d[0].toLowerCase()),N+d[0].length):-1}function S(k,L,N){var d=E.exec(L.slice(N));return d?(k.w=D.get(d[0].toLowerCase()),N+d[0].length):-1}function v(k,L,N){var d=I.exec(L.slice(N));return d?(k.m=P.get(d[0].toLowerCase()),N+d[0].length):-1}function U(k,L,N){var d=O.exec(L.slice(N));return d?(k.m=C.get(d[0].toLowerCase()),N+d[0].length):-1}function f(k,L,N){return x(k,t,L,N)}function m(k,L,N){return x(k,n,L,N)}function T(k,L,N){return x(k,r,L,N)}function h(k){return o[k.getDay()]}function b(k){return i[k.getDay()]}function u(k){return M[k.getMonth()]}function l(k){return y[k.getMonth()]}function c(k){return a[+(k.getHours()>=12)]}function z(k){return 1+~~(k.getMonth()/3)}function V(k){return o[k.getUTCDay()]}function R(k){return i[k.getUTCDay()]}function K(k){return M[k.getUTCMonth()]}function X(k){return y[k.getUTCMonth()]}function Q(k){return a[+(k.getUTCHours()>=12)]}function ae(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var L=w(k+="",W);return L.toString=function(){return k},L},parse:function(k){var L=H(k+="",!1);return L.toString=function(){return k},L},utcFormat:function(k){var L=w(k+="",q);return L.toString=function(){return k},L},utcParse:function(k){var L=H(k+="",!0);return L.toString=function(){return k},L}}}var Lt={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,er=/^%/,tr=/[\\^$*+?|[\]().{}]/g;function j(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function nr(e){return e.replace(tr,"\\$&")}function Ae(e){return new RegExp("^(?:"+e.map(nr).join("|")+")","i")}function Le(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function rr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function It(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ur(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ot(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ht(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yr(e,t,n){var r=er.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nt(e,t){return j(e.getDate(),t,2)}function vr(e,t){return j(e.getHours(),t,2)}function Tr(e,t){return j(e.getHours()%12||12,t,2)}function _r(e,t){return j(1+ve.count(ye(e),e),t,3)}function ln(e,t){return j(e.getMilliseconds(),t,3)}function xr(e,t){return ln(e,t)+"000"}function br(e,t){return j(e.getMonth()+1,t,2)}function wr(e,t){return j(e.getMinutes(),t,2)}function Dr(e,t){return j(e.getSeconds(),t,2)}function Cr(e){var t=e.getDay();return t===0?7:t}function Mr(e,t){return j(Ne.count(ye(e)-1,e),t,2)}function fn(e){var t=e.getDay();return t>=4||t===0?Te(e):Te.ceil(e)}function Sr(e,t){return e=fn(e),j(Te.count(ye(e),e)+(ye(e).getDay()===4),t,2)}function Fr(e){return e.getDay()}function Yr(e,t){return j(Oe.count(ye(e)-1,e),t,2)}function Ur(e,t){return j(e.getFullYear()%100,t,2)}function Er(e,t){return e=fn(e),j(e.getFullYear()%100,t,2)}function Ar(e,t){return j(e.getFullYear()%1e4,t,4)}function Lr(e,t){var n=e.getDay();return e=n>=4||n===0?Te(e):Te.ceil(e),j(e.getFullYear()%1e4,t,4)}function Ir(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+j(t/60|0,"0",2)+j(t%60,"0",2)}function Pt(e,t){return j(e.getUTCDate(),t,2)}function Wr(e,t){return j(e.getUTCHours(),t,2)}function Or(e,t){return j(e.getUTCHours()%12||12,t,2)}function Hr(e,t){return j(1+Tt.count(_e(e),e),t,3)}function dn(e,t){return j(e.getUTCMilliseconds(),t,3)}function Nr(e,t){return dn(e,t)+"000"}function Pr(e,t){return j(e.getUTCMonth()+1,t,2)}function Vr(e,t){return j(e.getUTCMinutes(),t,2)}function zr(e,t){return j(e.getUTCSeconds(),t,2)}function Rr(e){var t=e.getUTCDay();return t===0?7:t}function jr(e,t){return j(un.count(_e(e)-1,e),t,2)}function hn(e){var t=e.getUTCDay();return t>=4||t===0?Ye(e):Ye.ceil(e)}function qr(e,t){return e=hn(e),j(Ye.count(_e(e),e)+(_e(e).getUTCDay()===4),t,2)}function Br(e){return e.getUTCDay()}function Zr(e,t){return j(Je.count(_e(e)-1,e),t,2)}function Xr(e,t){return j(e.getUTCFullYear()%100,t,2)}function Gr(e,t){return e=hn(e),j(e.getUTCFullYear()%100,t,2)}function $r(e,t){return j(e.getUTCFullYear()%1e4,t,4)}function Qr(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ye(e):Ye.ceil(e),j(e.getUTCFullYear()%1e4,t,4)}function Jr(){return"+0000"}function Vt(){return"%"}function zt(e){return+e}function Rt(e){return Math.floor(+e/1e3)}var De,Ke;Kr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Kr(e){return De=Kn(e),Ke=De.format,De.parse,De.utcFormat,De.utcParse,De}function ea(e){return new Date(e)}function ta(e){return e instanceof Date?+e:+new Date(+e)}function mn(e,t,n,r,a,i,o,y,M,p){var g=Ce.continuous(),E=g.invert,D=g.domain,_=p(".%L"),Z=p(":%S"),O=p("%I:%M"),C=p("%I %p"),I=p("%a %d"),P=p("%b %d"),W=p("%B"),q=p("%Y");function $(w){return(M(w)<w?_:y(w)<w?Z:o(w)<w?O:i(w)<w?C:r(w)<w?a(w)<w?I:P:n(w)<w?W:q)(w)}return g.invert=function(w){return new Date(E(w))},g.domain=function(w){return arguments.length?D(Array.from(w,ta)):D().map(ea)},g.ticks=function(w){var H=D();return e(H[0],H[H.length-1],w??10)},g.tickFormat=function(w,H){return H==null?$:p(H)},g.nice=function(w){var H=D();return(!w||typeof w.range!="function")&&(w=t(H[0],H[H.length-1],w??10)),w?D(Vn(H,w)):g},g.copy=function(){return Ce.copy(g,mn(e,t,n,r,a,i,o,y,M,p))},g}function na(){return bn.initRange.apply(mn(Qn,Jn,ye,He,Ne,ve,We,Ie,pe,Ke).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Be={exports:{}},ra=Be.exports,jt;function aa(){return jt||(jt=1,(function(e,t){(function(n,r){e.exports=r()})(ra,(function(){var n="day";return function(r,a,i){var o=function(p){return p.add(4-p.isoWeekday(),n)},y=a.prototype;y.isoWeekYear=function(){return o(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,E,D,_,Z=o(this),O=(g=this.isoWeekYear(),E=this.$u,D=(E?i.utc:i)().year(g).startOf("year"),_=4-D.isoWeekday(),D.isoWeekday()>4&&(_+=7),D.add(_,n));return Z.diff(O,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var M=y.startOf;y.startOf=function(p,g){var E=this.$utils(),D=!!E.u(g)||g;return E.p(p)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,g)}}}))})(Be)),Be.exports}var ia=aa();const sa=s.getDefaultExportFromCjs(ia);var Ze={exports:{}},oa=Ze.exports,qt;function ca(){return qt||(qt=1,(function(e,t){(function(n,r){e.exports=r()})(oa,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,o=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,M={},p=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var P=I.match(/([+-]|\d\d)/g),W=60*P[1]+(+P[2]||0);return W===0?0:P[0]==="+"?-W:W})(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},_=function(C,I){var P,W=M.meridiem;if(W){for(var q=1;q<=24;q+=1)if(C.indexOf(W(q,0,I))>-1){P=q>12;break}}else P=C===(I?"pm":"PM");return P},Z={A:[y,function(C){this.afternoon=_(C,!1)}],a:[y,function(C){this.afternoon=_(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[o,g("seconds")],ss:[o,g("seconds")],m:[o,g("minutes")],mm:[o,g("minutes")],H:[o,g("hours")],h:[o,g("hours")],HH:[o,g("hours")],hh:[o,g("hours")],D:[o,g("day")],DD:[i,g("day")],Do:[y,function(C){var I=M.ordinal,P=C.match(/\d+/);if(this.day=P[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[o,g("week")],ww:[i,g("week")],M:[o,g("month")],MM:[i,g("month")],MMM:[y,function(C){var I=D("months"),P=(D("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(C)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[y,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=p(C)}],YYYY:[/\d{4}/,g("year")],Z:E,ZZ:E};function O(C){var I,P;I=C,P=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,S,v){var U=v&&v.toUpperCase();return S||P[v]||n[v]||P[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(f,m,T){return m||T.slice(1)}))}))).match(r),q=W.length,$=0;$<q;$+=1){var w=W[$],H=Z[w],x=H&&H[0],Y=H&&H[1];W[$]=Y?{regex:x,parser:Y}:w.replace(/^\[|\]$/g,"")}return function(F){for(var S={},v=0,U=0;v<q;v+=1){var f=W[v];if(typeof f=="string")U+=f.length;else{var m=f.regex,T=f.parser,h=F.slice(U),b=m.exec(h)[0];T.call(S,b),F=F.replace(b,"")}}return(function(u){var l=u.afternoon;if(l!==void 0){var c=u.hours;l?c<12&&(u.hours+=12):c===12&&(u.hours=0),delete u.afternoon}})(S),S}}return function(C,I,P){P.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(p=C.parseTwoDigitYear);var W=I.prototype,q=W.parse;W.parse=function($){var w=$.date,H=$.utc,x=$.args;this.$u=H;var Y=x[1];if(typeof Y=="string"){var F=x[2]===!0,S=x[3]===!0,v=F||S,U=x[2];S&&(U=x[2]),M=this.$locale(),!F&&U&&(M=P.Ls[U]),this.$d=(function(h,b,u,l){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*h);var c=O(b)(h),z=c.year,V=c.month,R=c.day,K=c.hours,X=c.minutes,Q=c.seconds,ae=c.milliseconds,k=c.zone,L=c.week,N=new Date,d=R||(z||V?1:N.getDate()),J=z||N.getFullYear(),A=0;z&&!V||(A=V>0?V-1:N.getMonth());var G,B=K||0,re=X||0,ie=Q||0,ke=ae||0;return k?new Date(Date.UTC(J,A,d,B,re,ie,ke+60*k.offset*1e3)):u?new Date(Date.UTC(J,A,d,B,re,ie,ke)):(G=new Date(J,A,d,B,re,ie,ke),L&&(G=l(G).week(L).toDate()),G)}catch{return new Date("")}})(w,Y,H,P),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),v&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var f=Y.length,m=1;m<=f;m+=1){x[1]=Y[m-1];var T=P.apply(this,x);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}m===f&&(this.$d=new Date(""))}else q.call(this,$)}}}))})(Ze)),Ze.exports}var ua=ca();const la=s.getDefaultExportFromCjs(ua);var Xe={exports:{}},fa=Xe.exports,Bt;function da(){return Bt||(Bt=1,(function(e,t){(function(n,r){e.exports=r()})(fa,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return i.bind(this)(o);var p=this.$utils(),g=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(E){switch(E){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return M.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return M.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),E==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),E==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return E}}));return i.bind(this)(g)}}}))})(Xe)),Xe.exports}var ha=da();const ma=s.getDefaultExportFromCjs(ha);var gt=(function(){var e=s.__name(function(U,f,m,T){for(m=m||{},T=U.length;T--;m[U[T]]=f);return m},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],o=[1,30],y=[1,31],M=[1,32],p=[1,33],g=[1,34],E=[1,9],D=[1,10],_=[1,11],Z=[1,12],O=[1,13],C=[1,14],I=[1,15],P=[1,16],W=[1,19],q=[1,20],$=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],F={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:s.__name(function(f,m,T,h,b,u,l){var c=u.length-1;switch(b){case 1:return u[c-1];case 2:this.$=[];break;case 3:u[c-1].push(u[c]),this.$=u[c-1];break;case 4:case 5:this.$=u[c];break;case 6:case 7:this.$=[];break;case 8:h.setWeekday("monday");break;case 9:h.setWeekday("tuesday");break;case 10:h.setWeekday("wednesday");break;case 11:h.setWeekday("thursday");break;case 12:h.setWeekday("friday");break;case 13:h.setWeekday("saturday");break;case 14:h.setWeekday("sunday");break;case 15:h.setWeekend("friday");break;case 16:h.setWeekend("saturday");break;case 17:h.setDateFormat(u[c].substr(11)),this.$=u[c].substr(11);break;case 18:h.enableInclusiveEndDates(),this.$=u[c].substr(18);break;case 19:h.TopAxis(),this.$=u[c].substr(8);break;case 20:h.setAxisFormat(u[c].substr(11)),this.$=u[c].substr(11);break;case 21:h.setTickInterval(u[c].substr(13)),this.$=u[c].substr(13);break;case 22:h.setExcludes(u[c].substr(9)),this.$=u[c].substr(9);break;case 23:h.setIncludes(u[c].substr(9)),this.$=u[c].substr(9);break;case 24:h.setTodayMarker(u[c].substr(12)),this.$=u[c].substr(12);break;case 27:h.setDiagramTitle(u[c].substr(6)),this.$=u[c].substr(6);break;case 28:this.$=u[c].trim(),h.setAccTitle(this.$);break;case 29:case 30:this.$=u[c].trim(),h.setAccDescription(this.$);break;case 31:h.addSection(u[c].substr(8)),this.$=u[c].substr(8);break;case 33:h.addTask(u[c-1],u[c]),this.$="task";break;case 34:this.$=u[c-1],h.setClickEvent(u[c-1],u[c],null);break;case 35:this.$=u[c-2],h.setClickEvent(u[c-2],u[c-1],u[c]);break;case 36:this.$=u[c-2],h.setClickEvent(u[c-2],u[c-1],null),h.setLink(u[c-2],u[c]);break;case 37:this.$=u[c-3],h.setClickEvent(u[c-3],u[c-2],u[c-1]),h.setLink(u[c-3],u[c]);break;case 38:this.$=u[c-2],h.setClickEvent(u[c-2],u[c],null),h.setLink(u[c-2],u[c-1]);break;case 39:this.$=u[c-3],h.setClickEvent(u[c-3],u[c-1],u[c]),h.setLink(u[c-3],u[c-2]);break;case 40:this.$=u[c-1],h.setLink(u[c-1],u[c]);break;case 41:case 47:this.$=u[c-1]+" "+u[c];break;case 42:case 43:case 45:this.$=u[c-2]+" "+u[c-1]+" "+u[c];break;case 44:case 46:this.$=u[c-3]+" "+u[c-2]+" "+u[c-1]+" "+u[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:D,24:_,25:Z,26:O,27:C,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:D,24:_,25:Z,26:O,27:C,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:s.__name(function(f,m){if(m.recoverable)this.trace(f);else{var T=new Error(f);throw T.hash=m,T}},"parseError"),parse:s.__name(function(f){var m=this,T=[0],h=[],b=[null],u=[],l=this.table,c="",z=0,V=0,R=2,K=1,X=u.slice.call(arguments,1),Q=Object.create(this.lexer),ae={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(ae.yy[k]=this.yy[k]);Q.setInput(f,ae.yy),ae.yy.lexer=Q,ae.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var L=Q.yylloc;u.push(L);var N=Q.options&&Q.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(se){T.length=T.length-2*se,b.length=b.length-se,u.length=u.length-se}s.__name(d,"popStack");function J(){var se;return se=h.pop()||Q.lex()||K,typeof se!="number"&&(se instanceof Array&&(h=se,se=h.pop()),se=m.symbols_[se]||se),se}s.__name(J,"lex");for(var A,G,B,re,ie={},ke,ce,Ut,Re;;){if(G=T[T.length-1],this.defaultActions[G]?B=this.defaultActions[G]:((A===null||typeof A>"u")&&(A=J()),B=l[G]&&l[G][A]),typeof B>"u"||!B.length||!B[0]){var nt="";Re=[];for(ke in l[G])this.terminals_[ke]&&ke>R&&Re.push("'"+this.terminals_[ke]+"'");Q.showPosition?nt="Parse error on line "+(z+1)+`:
2
- `+Q.showPosition()+`
3
- Expecting `+Re.join(", ")+", got '"+(this.terminals_[A]||A)+"'":nt="Parse error on line "+(z+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(nt,{text:Q.match,token:this.terminals_[A]||A,line:Q.yylineno,loc:L,expected:Re})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+A);switch(B[0]){case 1:T.push(A),b.push(Q.yytext),u.push(Q.yylloc),T.push(B[1]),A=null,V=Q.yyleng,c=Q.yytext,z=Q.yylineno,L=Q.yylloc;break;case 2:if(ce=this.productions_[B[1]][1],ie.$=b[b.length-ce],ie._$={first_line:u[u.length-(ce||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ce||1)].first_column,last_column:u[u.length-1].last_column},N&&(ie._$.range=[u[u.length-(ce||1)].range[0],u[u.length-1].range[1]]),re=this.performAction.apply(ie,[c,V,z,ae.yy,B[1],b,u].concat(X)),typeof re<"u")return re;ce&&(T=T.slice(0,-1*ce*2),b=b.slice(0,-1*ce),u=u.slice(0,-1*ce)),T.push(this.productions_[B[1]][0]),b.push(ie.$),u.push(ie._$),Ut=l[T[T.length-2]][T[T.length-1]],T.push(Ut);break;case 3:return!0}}return!0},"parse")},S=(function(){var U={EOF:1,parseError:s.__name(function(m,T){if(this.yy.parser)this.yy.parser.parseError(m,T);else throw new Error(m)},"parseError"),setInput:s.__name(function(f,m){return this.yy=m||this.yy||{},this._input=f,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:s.__name(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var m=f.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:s.__name(function(f){var m=f.length,T=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var h=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),T.length-1&&(this.yylineno-=T.length-1);var b=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:T?(T.length===h.length?this.yylloc.first_column:0)+h[h.length-T.length].length-T[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(f){this.unput(this.match.slice(f))},"less"),pastInput:s.__name(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var f=this.pastInput(),m=new Array(f.length+1).join("-");return f+this.upcomingInput()+`
5
- `+m+"^"},"showPosition"),test_match:s.__name(function(f,m){var T,h,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),h=f[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,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(f[0].length),this.matched+=f[0],T=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var u in b)this[u]=b[u];return!1}return!1},"test_match"),next:s.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,m,T,h;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),u=0;u<b.length;u++)if(T=this._input.match(this.rules[b[u]]),T&&(!m||T[0].length>m[0].length)){if(m=T,h=u,this.options.backtrack_lexer){if(f=this.test_match(T,b[u]),f!==!1)return f;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(f=this.test_match(m,b[h]),f!==!1?f:!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:s.__name(function(){var m=this.next();return m||this.lex()},"lex"),begin:s.__name(function(m){this.conditionStack.push(m)},"begin"),popState:s.__name(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(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"),topState:s.__name(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:s.__name(function(m){this.begin(m)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(m,T,h,b){switch(h){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return U})();F.lexer=S;function v(){this.yy={}}return s.__name(v,"Parser"),v.prototype=F,F.Parser=v,new v})();gt.parser=gt;var ga=gt;s.dayjs2.extend(sa);s.dayjs2.extend(la);s.dayjs2.extend(ma);var Zt={friday:5,saturday:6},ue="",_t="",xt=void 0,bt="",Pe=[],Ve=[],wt=new Map,Dt=[],et=[],Ue="",Ct="",gn=["active","done","crit","milestone","vert"],Mt=[],ze=!1,St=!1,Ft="sunday",tt="saturday",yt=0,ya=s.__name(function(){Dt=[],et=[],Ue="",Mt=[],Ge=0,pt=void 0,$e=void 0,ee=[],ue="",_t="",Ct="",xt=void 0,bt="",Pe=[],Ve=[],ze=!1,St=!1,yt=0,wt=new Map,s.clear(),Ft="sunday",tt="saturday"},"clear"),ka=s.__name(function(e){_t=e},"setAxisFormat"),pa=s.__name(function(){return _t},"getAxisFormat"),va=s.__name(function(e){xt=e},"setTickInterval"),Ta=s.__name(function(){return xt},"getTickInterval"),_a=s.__name(function(e){bt=e},"setTodayMarker"),xa=s.__name(function(){return bt},"getTodayMarker"),ba=s.__name(function(e){ue=e},"setDateFormat"),wa=s.__name(function(){ze=!0},"enableInclusiveEndDates"),Da=s.__name(function(){return ze},"endDatesAreInclusive"),Ca=s.__name(function(){St=!0},"enableTopAxis"),Ma=s.__name(function(){return St},"topAxisEnabled"),Sa=s.__name(function(e){Ct=e},"setDisplayMode"),Fa=s.__name(function(){return Ct},"getDisplayMode"),Ya=s.__name(function(){return ue},"getDateFormat"),Ua=s.__name(function(e){Pe=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),Ea=s.__name(function(){return Pe},"getIncludes"),Aa=s.__name(function(e){Ve=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),La=s.__name(function(){return Ve},"getExcludes"),Ia=s.__name(function(){return wt},"getLinks"),Wa=s.__name(function(e){Ue=e,Dt.push(e)},"addSection"),Oa=s.__name(function(){return Dt},"getSections"),Ha=s.__name(function(){let e=Xt();const t=10;let n=0;for(;!e&&n<t;)e=Xt(),n++;return et=ee,et},"getTasks"),yn=s.__name(function(e,t,n,r){const a=e.format(t.trim()),i=e.format("YYYY-MM-DD");return r.includes(a)||r.includes(i)?!1:n.includes("weekends")&&(e.isoWeekday()===Zt[tt]||e.isoWeekday()===Zt[tt]+1)||n.includes(e.format("dddd").toLowerCase())?!0:n.includes(a)||n.includes(i)},"isInvalidDate"),Na=s.__name(function(e){Ft=e},"setWeekday"),Pa=s.__name(function(){return Ft},"getWeekday"),Va=s.__name(function(e){tt=e},"setWeekend"),kn=s.__name(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let a;e.startTime instanceof Date?a=s.dayjs2(e.startTime):a=s.dayjs2(e.startTime,t,!0),a=a.add(1,"d");let i;e.endTime instanceof Date?i=s.dayjs2(e.endTime):i=s.dayjs2(e.endTime,t,!0);const[o,y]=za(a,i,t,n,r);e.endTime=o.toDate(),e.renderEndTime=y},"checkTaskDates"),za=s.__name(function(e,t,n,r,a){let i=!1,o=null;for(;e<=t;)i||(o=t.toDate()),i=yn(e,n,r,a),i&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,o]},"fixTaskDates"),kt=s.__name(function(e,t,n){if(n=n.trim(),(t.trim()==="x"||t.trim()==="X")&&/^\d+$/.test(n))return new Date(Number(n));const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let o=null;for(const M of a.groups.ids.split(" ")){let p=we(M);p!==void 0&&(!o||p.endTime>o.endTime)&&(o=p)}if(o)return o.endTime;const y=new Date;return y.setHours(0,0,0,0),y}let i=s.dayjs2(n,t.trim(),!0);if(i.isValid())return i.toDate();{s.log.debug("Invalid date:"+n),s.log.debug("With date format:"+t.trim());const o=new Date(n);if(o===void 0||isNaN(o.getTime())||o.getFullYear()<-1e4||o.getFullYear()>1e4)throw new Error("Invalid date:"+n);return o}},"getStartDate"),pn=s.__name(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),vn=s.__name(function(e,t,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let g=null;for(const D of i.groups.ids.split(" ")){let _=we(D);_!==void 0&&(!g||_.startTime<g.startTime)&&(g=_)}if(g)return g.startTime;const E=new Date;return E.setHours(0,0,0,0),E}let o=s.dayjs2(n,t.trim(),!0);if(o.isValid())return r&&(o=o.add(1,"d")),o.toDate();let y=s.dayjs2(e);const[M,p]=pn(n);if(!Number.isNaN(M)){const g=y.add(M,p);g.isValid()&&(y=g)}return y.toDate()},"getEndDate"),Ge=0,Se=s.__name(function(e){return e===void 0?(Ge=Ge+1,"task"+Ge):e},"parseId"),Ra=s.__name(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),a={};Yt(r,a,gn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();let i="";switch(r.length){case 1:a.id=Se(),a.startTime=e.endTime,i=r[0];break;case 2:a.id=Se(),a.startTime=kt(void 0,ue,r[0]),i=r[1];break;case 3:a.id=Se(r[0]),a.startTime=kt(void 0,ue,r[1]),i=r[2];break}return i&&(a.endTime=vn(a.startTime,ue,i,ze),a.manualEndTime=s.dayjs2(i,"YYYY-MM-DD",!0).isValid(),kn(a,ue,Ve,Pe)),a},"compileData"),ja=s.__name(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),a={};Yt(r,a,gn);for(let i=0;i<r.length;i++)r[i]=r[i].trim();switch(r.length){case 1:a.id=Se(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:r[0]};break;case 2:a.id=Se(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=Se(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a},"parseData"),pt,$e,ee=[],Tn={},qa=s.__name(function(e,t){const n={section:Ue,type:Ue,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=ja($e,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=$e,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=yt,yt++;const a=ee.push(n);$e=n.id,Tn[n.id]=a-1},"addTask"),we=s.__name(function(e){const t=Tn[e];return ee[t]},"findTaskById"),Ba=s.__name(function(e,t){const n={section:Ue,type:Ue,description:e,task:e,classes:[]},r=Ra(pt,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,pt=n,et.push(n)},"addTaskOrg"),Xt=s.__name(function(){const e=s.__name(function(n){const r=ee[n];let a="";switch(ee[n].raw.startTime.type){case"prevTaskEnd":{const i=we(r.prevTaskId);r.startTime=i.endTime;break}case"getStartDate":a=kt(void 0,ue,ee[n].raw.startTime.startData),a&&(ee[n].startTime=a);break}return ee[n].startTime&&(ee[n].endTime=vn(ee[n].startTime,ue,ee[n].raw.endTime.data,ze),ee[n].endTime&&(ee[n].processed=!0,ee[n].manualEndTime=s.dayjs2(ee[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),kn(ee[n],ue,Ve,Pe))),ee[n].processed},"compileTask");let t=!0;for(const[n,r]of ee.entries())e(n),t=t&&r.processed;return t},"compileTasks"),Za=s.__name(function(e,t){let n=t;s.getConfig2().securityLevel!=="loose"&&(n=s.distExports.sanitizeUrl(t)),e.split(",").forEach(function(r){we(r)!==void 0&&(xn(r,()=>{window.open(n,"_self")}),wt.set(r,n))}),_n(e,"clickable")},"setLink"),_n=s.__name(function(e,t){e.split(",").forEach(function(n){let r=we(n);r!==void 0&&r.classes.push(t)})},"setClass"),Xa=s.__name(function(e,t,n){if(s.getConfig2().securityLevel!=="loose"||t===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<r.length;i++){let o=r[i].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),r[i]=o}}r.length===0&&r.push(e),we(e)!==void 0&&xn(e,()=>{s.utils_default.runFunc(t,...r)})},"setClickFun"),xn=s.__name(function(e,t){Mt.push(function(){const n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener("click",function(){t()})},function(){const n=document.querySelector(`[id="${e}-text"]`);n!==null&&n.addEventListener("click",function(){t()})})},"pushFun"),Ga=s.__name(function(e,t,n){e.split(",").forEach(function(r){Xa(r,t,n)}),_n(e,"clickable")},"setClickEvent"),$a=s.__name(function(e){Mt.forEach(function(t){t(e)})},"bindFunctions"),Qa={getConfig:s.__name(()=>s.getConfig2().gantt,"getConfig"),clear:ya,setDateFormat:ba,getDateFormat:Ya,enableInclusiveEndDates:wa,endDatesAreInclusive:Da,enableTopAxis:Ca,topAxisEnabled:Ma,setAxisFormat:ka,getAxisFormat:pa,setTickInterval:va,getTickInterval:Ta,setTodayMarker:_a,getTodayMarker:xa,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle,setDisplayMode:Sa,getDisplayMode:Fa,setAccDescription:s.setAccDescription,getAccDescription:s.getAccDescription,addSection:Wa,getSections:Oa,getTasks:Ha,addTask:qa,findTaskById:we,addTaskOrg:Ba,setIncludes:Ua,getIncludes:Ea,setExcludes:Aa,getExcludes:La,setClickEvent:Ga,setLink:Za,getLinks:Ia,bindFunctions:$a,parseDuration:pn,isInvalidDate:yn,setWeekday:Na,getWeekday:Pa,setWeekend:Va};function Yt(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(a){const i="^\\s*"+a+"\\s*$",o=new RegExp(i);e[0].match(o)&&(t[a]=!0,e.shift(1),r=!0)})}s.__name(Yt,"getTaskTags");var Ja=s.__name(function(){s.log.debug("Something is calling, setConf, remove the call")},"setConf"),Gt={monday:Oe,tuesday:an,wednesday:sn,thursday:Te,friday:on,saturday:cn,sunday:Ne},Ka=s.__name((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((i,o)=>i.startTime-o.startTime||i.order-o.order),a=0;for(const i of r)for(let o=0;o<n.length;o++)if(i.startTime>=n[o]){n[o]=i.endTime,i.order=o+t,o>a&&(a=o);break}return a},"getMaxIntersections"),fe,ei=s.__name(function(e,t,n,r){const a=s.getConfig2().gantt,i=s.getConfig2().securityLevel;let o;i==="sandbox"&&(o=s.select("#i"+t));const y=i==="sandbox"?s.select(o.nodes()[0].contentDocument.body):s.select("body"),M=i==="sandbox"?o.nodes()[0].contentDocument:document,p=M.getElementById(t);fe=p.parentElement.offsetWidth,fe===void 0&&(fe=1200),a.useWidth!==void 0&&(fe=a.useWidth);const g=r.db.getTasks();let E=[];for(const x of g)E.push(x.type);E=H(E);const D={};let _=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const x={};for(const F of g)x[F.section]===void 0?x[F.section]=[F]:x[F.section].push(F);let Y=0;for(const F of Object.keys(x)){const S=Ka(x[F],Y)+1;Y+=S,_+=S*(a.barHeight+a.barGap),D[F]=S}}else{_+=g.length*(a.barHeight+a.barGap);for(const x of E)D[x]=g.filter(Y=>Y.type===x).length}p.setAttribute("viewBox","0 0 "+fe+" "+_);const Z=y.select(`[id="${t}"]`),O=na().domain([Dn(g,function(x){return x.startTime}),wn(g,function(x){return x.endTime})]).rangeRound([0,fe-a.leftPadding-a.rightPadding]);function C(x,Y){const F=x.startTime,S=Y.startTime;let v=0;return F>S?v=1:F<S&&(v=-1),v}s.__name(C,"taskCompare"),g.sort(C),I(g,fe,_),s.configureSvgSize(Z,_,fe,a.useMaxWidth),Z.append("text").text(r.db.getDiagramTitle()).attr("x",fe/2).attr("y",a.titleTopMargin).attr("class","titleText");function I(x,Y,F){const S=a.barHeight,v=S+a.barGap,U=a.topPadding,f=a.leftPadding,m=Ce.linear().domain([0,E.length]).range(["#00B9FA","#F95002"]).interpolate(Pn);W(v,U,f,Y,F,x,r.db.getExcludes(),r.db.getIncludes()),q(f,U,Y,F),P(x,v,U,f,S,m,Y),$(v,U),w(f,U,Y,F)}s.__name(I,"makeGantt");function P(x,Y,F,S,v,U,f){x.sort((l,c)=>l.vert===c.vert?0:l.vert?1:-1);const T=[...new Set(x.map(l=>l.order))].map(l=>x.find(c=>c.order===l));Z.append("g").selectAll("rect").data(T).enter().append("rect").attr("x",0).attr("y",function(l,c){return c=l.order,c*Y+F-2}).attr("width",function(){return f-a.rightPadding/2}).attr("height",Y).attr("class",function(l){for(const[c,z]of E.entries())if(l.type===z)return"section section"+c%a.numberSectionStyles;return"section section0"}).enter();const h=Z.append("g").selectAll("rect").data(x).enter(),b=r.db.getLinks();if(h.append("rect").attr("id",function(l){return l.id}).attr("rx",3).attr("ry",3).attr("x",function(l){return l.milestone?O(l.startTime)+S+.5*(O(l.endTime)-O(l.startTime))-.5*v:O(l.startTime)+S}).attr("y",function(l,c){return c=l.order,l.vert?a.gridLineStartPadding:c*Y+F}).attr("width",function(l){return l.milestone?v:l.vert?.08*v:O(l.renderEndTime||l.endTime)-O(l.startTime)}).attr("height",function(l){return l.vert?g.length*(a.barHeight+a.barGap)+a.barHeight*2:v}).attr("transform-origin",function(l,c){return c=l.order,(O(l.startTime)+S+.5*(O(l.endTime)-O(l.startTime))).toString()+"px "+(c*Y+F+.5*v).toString()+"px"}).attr("class",function(l){const c="task";let z="";l.classes.length>0&&(z=l.classes.join(" "));let V=0;for(const[K,X]of E.entries())l.type===X&&(V=K%a.numberSectionStyles);let R="";return l.active?l.crit?R+=" activeCrit":R=" active":l.done?l.crit?R=" doneCrit":R=" done":l.crit&&(R+=" crit"),R.length===0&&(R=" task"),l.milestone&&(R=" milestone "+R),l.vert&&(R=" vert "+R),R+=V,R+=" "+z,c+R}),h.append("text").attr("id",function(l){return l.id+"-text"}).text(function(l){return l.task}).attr("font-size",a.fontSize).attr("x",function(l){let c=O(l.startTime),z=O(l.renderEndTime||l.endTime);if(l.milestone&&(c+=.5*(O(l.endTime)-O(l.startTime))-.5*v,z=c+v),l.vert)return O(l.startTime)+S;const V=this.getBBox().width;return V>z-c?z+V+1.5*a.leftPadding>f?c+S-5:z+S+5:(z-c)/2+c+S}).attr("y",function(l,c){return l.vert?a.gridLineStartPadding+g.length*(a.barHeight+a.barGap)+60:(c=l.order,c*Y+a.barHeight/2+(a.fontSize/2-2)+F)}).attr("text-height",v).attr("class",function(l){const c=O(l.startTime);let z=O(l.endTime);l.milestone&&(z=c+v);const V=this.getBBox().width;let R="";l.classes.length>0&&(R=l.classes.join(" "));let K=0;for(const[Q,ae]of E.entries())l.type===ae&&(K=Q%a.numberSectionStyles);let X="";return l.active&&(l.crit?X="activeCritText"+K:X="activeText"+K),l.done?l.crit?X=X+" doneCritText"+K:X=X+" doneText"+K:l.crit&&(X=X+" critText"+K),l.milestone&&(X+=" milestoneText"),l.vert&&(X+=" vertText"),V>z-c?z+V+1.5*a.leftPadding>f?R+" taskTextOutsideLeft taskTextOutside"+K+" "+X:R+" taskTextOutsideRight taskTextOutside"+K+" "+X+" width-"+V:R+" taskText taskText"+K+" "+X+" width-"+V}),s.getConfig2().securityLevel==="sandbox"){let l;l=s.select("#i"+t);const c=l.nodes()[0].contentDocument;h.filter(function(z){return b.has(z.id)}).each(function(z){var V=c.querySelector("#"+z.id),R=c.querySelector("#"+z.id+"-text");const K=V.parentNode;var X=c.createElement("a");X.setAttribute("xlink:href",b.get(z.id)),X.setAttribute("target","_top"),K.appendChild(X),X.appendChild(V),X.appendChild(R)})}}s.__name(P,"drawRects");function W(x,Y,F,S,v,U,f,m){if(f.length===0&&m.length===0)return;let T,h;for(const{startTime:V,endTime:R}of U)(T===void 0||V<T)&&(T=V),(h===void 0||R>h)&&(h=R);if(!T||!h)return;if(s.dayjs2(h).diff(s.dayjs2(T),"year")>5){s.log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const b=r.db.getDateFormat(),u=[];let l=null,c=s.dayjs2(T);for(;c.valueOf()<=h;)r.db.isInvalidDate(c,b,f,m)?l?l.end=c:l={start:c,end:c}:l&&(u.push(l),l=null),c=c.add(1,"d");Z.append("g").selectAll("rect").data(u).enter().append("rect").attr("id",V=>"exclude-"+V.start.format("YYYY-MM-DD")).attr("x",V=>O(V.start.startOf("day"))+F).attr("y",a.gridLineStartPadding).attr("width",V=>O(V.end.endOf("day"))-O(V.start.startOf("day"))).attr("height",v-Y-a.gridLineStartPadding).attr("transform-origin",function(V,R){return(O(V.start)+F+.5*(O(V.end)-O(V.start))).toString()+"px "+(R*x+.5*v).toString()+"px"}).attr("class","exclude-range")}s.__name(W,"drawExcludeDays");function q(x,Y,F,S){const v=r.db.getDateFormat(),U=r.db.getAxisFormat();let f;U?f=U:v==="D"?f="%d":f=a.axisFormat??"%Y-%m-%d";let m=An(O).tickSize(-S+Y+a.gridLineStartPadding).tickFormat(Ke(f));const h=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(h!==null){const b=h[1],u=h[2],l=r.db.getWeekday()||a.weekday;switch(u){case"millisecond":m.ticks(Fe.every(b));break;case"second":m.ticks(pe.every(b));break;case"minute":m.ticks(Ie.every(b));break;case"hour":m.ticks(We.every(b));break;case"day":m.ticks(ve.every(b));break;case"week":m.ticks(Gt[l].every(b));break;case"month":m.ticks(He.every(b));break}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(S-50)+")").call(m).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let b=En(O).tickSize(-S+Y+a.gridLineStartPadding).tickFormat(Ke(f));if(h!==null){const u=h[1],l=h[2],c=r.db.getWeekday()||a.weekday;switch(l){case"millisecond":b.ticks(Fe.every(u));break;case"second":b.ticks(pe.every(u));break;case"minute":b.ticks(Ie.every(u));break;case"hour":b.ticks(We.every(u));break;case"day":b.ticks(ve.every(u));break;case"week":b.ticks(Gt[c].every(u));break;case"month":b.ticks(He.every(u));break}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+Y+")").call(b).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}s.__name(q,"makeGrid");function $(x,Y){let F=0;const S=Object.keys(D).map(v=>[v,D[v]]);Z.append("g").selectAll("text").data(S).enter().append(function(v){const U=v[0].split(s.common_default.lineBreakRegex),f=-(U.length-1)/2,m=M.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("dy",f+"em");for(const[T,h]of U.entries()){const b=M.createElementNS("http://www.w3.org/2000/svg","tspan");b.setAttribute("alignment-baseline","central"),b.setAttribute("x","10"),T>0&&b.setAttribute("dy","1em"),b.textContent=h,m.appendChild(b)}return m}).attr("x",10).attr("y",function(v,U){if(U>0)for(let f=0;f<U;f++)return F+=S[U-1][1],v[1]*x/2+F*x+Y;else return v[1]*x/2+Y}).attr("font-size",a.sectionFontSize).attr("class",function(v){for(const[U,f]of E.entries())if(v[0]===f)return"sectionTitle sectionTitle"+U%a.numberSectionStyles;return"sectionTitle"})}s.__name($,"vertLabels");function w(x,Y,F,S){const v=r.db.getTodayMarker();if(v==="off")return;const U=Z.append("g").attr("class","today"),f=new Date,m=U.append("line");m.attr("x1",O(f)+x).attr("x2",O(f)+x).attr("y1",a.titleTopMargin).attr("y2",S-a.titleTopMargin).attr("class","today"),v!==""&&m.attr("style",v.replace(/,/g,";"))}s.__name(w,"drawToday");function H(x){const Y={},F=[];for(let S=0,v=x.length;S<v;++S)Object.prototype.hasOwnProperty.call(Y,x[S])||(Y[x[S]]=!0,F.push(x[S]));return F}s.__name(H,"checkUnique")},"draw"),ti={setConf:Ja,draw:ei},ni=s.__name(e=>`
7
- .mermaid-main-font {
8
- font-family: ${e.fontFamily};
9
- }
10
-
11
- .exclude-range {
12
- fill: ${e.excludeBkgColor};
13
- }
14
-
15
- .section {
16
- stroke: none;
17
- opacity: 0.2;
18
- }
19
-
20
- .section0 {
21
- fill: ${e.sectionBkgColor};
22
- }
23
-
24
- .section2 {
25
- fill: ${e.sectionBkgColor2};
26
- }
27
-
28
- .section1,
29
- .section3 {
30
- fill: ${e.altSectionBkgColor};
31
- opacity: 0.2;
32
- }
33
-
34
- .sectionTitle0 {
35
- fill: ${e.titleColor};
36
- }
37
-
38
- .sectionTitle1 {
39
- fill: ${e.titleColor};
40
- }
41
-
42
- .sectionTitle2 {
43
- fill: ${e.titleColor};
44
- }
45
-
46
- .sectionTitle3 {
47
- fill: ${e.titleColor};
48
- }
49
-
50
- .sectionTitle {
51
- text-anchor: start;
52
- font-family: ${e.fontFamily};
53
- }
54
-
55
-
56
- /* Grid and axis */
57
-
58
- .grid .tick {
59
- stroke: ${e.gridColor};
60
- opacity: 0.8;
61
- shape-rendering: crispEdges;
62
- }
63
-
64
- .grid .tick text {
65
- font-family: ${e.fontFamily};
66
- fill: ${e.textColor};
67
- }
68
-
69
- .grid path {
70
- stroke-width: 0;
71
- }
72
-
73
-
74
- /* Today line */
75
-
76
- .today {
77
- fill: none;
78
- stroke: ${e.todayLineColor};
79
- stroke-width: 2px;
80
- }
81
-
82
-
83
- /* Task styling */
84
-
85
- /* Default task */
86
-
87
- .task {
88
- stroke-width: 2;
89
- }
90
-
91
- .taskText {
92
- text-anchor: middle;
93
- font-family: ${e.fontFamily};
94
- }
95
-
96
- .taskTextOutsideRight {
97
- fill: ${e.taskTextDarkColor};
98
- text-anchor: start;
99
- font-family: ${e.fontFamily};
100
- }
101
-
102
- .taskTextOutsideLeft {
103
- fill: ${e.taskTextDarkColor};
104
- text-anchor: end;
105
- }
106
-
107
-
108
- /* Special case clickable */
109
-
110
- .task.clickable {
111
- cursor: pointer;
112
- }
113
-
114
- .taskText.clickable {
115
- cursor: pointer;
116
- fill: ${e.taskTextClickableColor} !important;
117
- font-weight: bold;
118
- }
119
-
120
- .taskTextOutsideLeft.clickable {
121
- cursor: pointer;
122
- fill: ${e.taskTextClickableColor} !important;
123
- font-weight: bold;
124
- }
125
-
126
- .taskTextOutsideRight.clickable {
127
- cursor: pointer;
128
- fill: ${e.taskTextClickableColor} !important;
129
- font-weight: bold;
130
- }
131
-
132
-
133
- /* Specific task settings for the sections*/
134
-
135
- .taskText0,
136
- .taskText1,
137
- .taskText2,
138
- .taskText3 {
139
- fill: ${e.taskTextColor};
140
- }
141
-
142
- .task0,
143
- .task1,
144
- .task2,
145
- .task3 {
146
- fill: ${e.taskBkgColor};
147
- stroke: ${e.taskBorderColor};
148
- }
149
-
150
- .taskTextOutside0,
151
- .taskTextOutside2
152
- {
153
- fill: ${e.taskTextOutsideColor};
154
- }
155
-
156
- .taskTextOutside1,
157
- .taskTextOutside3 {
158
- fill: ${e.taskTextOutsideColor};
159
- }
160
-
161
-
162
- /* Active task */
163
-
164
- .active0,
165
- .active1,
166
- .active2,
167
- .active3 {
168
- fill: ${e.activeTaskBkgColor};
169
- stroke: ${e.activeTaskBorderColor};
170
- }
171
-
172
- .activeText0,
173
- .activeText1,
174
- .activeText2,
175
- .activeText3 {
176
- fill: ${e.taskTextDarkColor} !important;
177
- }
178
-
179
-
180
- /* Completed task */
181
-
182
- .done0,
183
- .done1,
184
- .done2,
185
- .done3 {
186
- stroke: ${e.doneTaskBorderColor};
187
- fill: ${e.doneTaskBkgColor};
188
- stroke-width: 2;
189
- }
190
-
191
- .doneText0,
192
- .doneText1,
193
- .doneText2,
194
- .doneText3 {
195
- fill: ${e.taskTextDarkColor} !important;
196
- }
197
-
198
-
199
- /* Tasks on the critical line */
200
-
201
- .crit0,
202
- .crit1,
203
- .crit2,
204
- .crit3 {
205
- stroke: ${e.critBorderColor};
206
- fill: ${e.critBkgColor};
207
- stroke-width: 2;
208
- }
209
-
210
- .activeCrit0,
211
- .activeCrit1,
212
- .activeCrit2,
213
- .activeCrit3 {
214
- stroke: ${e.critBorderColor};
215
- fill: ${e.activeTaskBkgColor};
216
- stroke-width: 2;
217
- }
218
-
219
- .doneCrit0,
220
- .doneCrit1,
221
- .doneCrit2,
222
- .doneCrit3 {
223
- stroke: ${e.critBorderColor};
224
- fill: ${e.doneTaskBkgColor};
225
- stroke-width: 2;
226
- cursor: pointer;
227
- shape-rendering: crispEdges;
228
- }
229
-
230
- .milestone {
231
- transform: rotate(45deg) scale(0.8,0.8);
232
- }
233
-
234
- .milestoneText {
235
- font-style: italic;
236
- }
237
- .doneCritText0,
238
- .doneCritText1,
239
- .doneCritText2,
240
- .doneCritText3 {
241
- fill: ${e.taskTextDarkColor} !important;
242
- }
243
-
244
- .vert {
245
- stroke: ${e.vertLineColor};
246
- }
247
-
248
- .vertText {
249
- font-size: 15px;
250
- text-anchor: middle;
251
- fill: ${e.vertLineColor} !important;
252
- }
253
-
254
- .activeCritText0,
255
- .activeCritText1,
256
- .activeCritText2,
257
- .activeCritText3 {
258
- fill: ${e.taskTextDarkColor} !important;
259
- }
260
-
261
- .titleText {
262
- text-anchor: middle;
263
- font-size: 18px;
264
- fill: ${e.titleColor||e.textColor};
265
- font-family: ${e.fontFamily};
266
- }
267
- `,"getStyles"),ri=ni,ai={parser:ga,db:Qa,renderer:ti,styles:ri};exports.diagram=ai;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-CxTcWSA2.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
@@ -1,5 +0,0 @@
1
- import { G as a, f as G } from "./mermaid-parser.core-CJ1yJm0s.js";
2
- export {
3
- a as GitGraphModule,
4
- G as createGitGraphServices
5
- };
@@ -1,65 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-Bdx3_f83.cjs"),j=require("./chunk-QZHKN3VN-B8NJ6Ahx.cjs"),s=require("./viewer-Canph5Zx.cjs"),K=require("./mermaid-parser.core-CxTcWSA2.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
2
- ${o-a/2-w/2},${y+v}
3
- ${o-a/2-w/2},${y-v}
4
- ${n.posWithOffset-a/2-w},${y-d-v}
5
- ${n.posWithOffset+a/2+w},${y-d-v}
6
- ${n.posWithOffset+a/2+w},${y+d+v}
7
- ${n.posWithOffset-a/2-w},${y+d+v}`),h.attr("cy",y).attr("cx",o-a/2+w/2).attr("r",1.5).attr("class","tag-hole"),u==="TB"||u==="BT"){const m=o+g;$.attr("class","tag-label-bkg").attr("points",`
8
- ${n.x},${m+2}
9
- ${n.x},${m-2}
10
- ${n.x+E},${m-d-2}
11
- ${n.x+E+a+4},${m-d-2}
12
- ${n.x+E+a+4},${m+d+2}
13
- ${n.x+E},${m+d+2}`).attr("transform","translate(12,12) rotate(45, "+n.x+","+o+")"),h.attr("cx",n.x+w/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+n.x+","+o+")"),f.attr("x",n.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+n.x+","+o+")")}}}},"drawCommitTags"),Le=s.__name(t=>{switch(t.customType??t.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ke=s.__name((t,e,n,o)=>{const r={x:0,y:0};if(t.parents.length>0){const a=S(t.parents);if(a){const l=o.get(a)??r;return e==="TB"?l.y+T:e==="BT"?(o.get(t.id)??r).y-T:l.x+T}}else return e==="TB"?I:e==="BT"?(o.get(t.id)??r).y-T:0;return 0},"calculatePosition"),Me=s.__name((t,e,n)=>{const o=u==="BT"&&n?e:e+E,r=u==="TB"||u==="BT"?o:p.get(t.branch)?.pos,a=u==="TB"||u==="BT"?p.get(t.branch)?.pos:o;if(a===void 0||r===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:a,y:r,posWithOffset:o}},"getCommitPosition"),P=s.__name((t,e,n)=>{if(!_)throw new Error("GitGraph config not found");const o=t.append("g").attr("class","commit-bullets"),r=t.append("g").attr("class","commit-labels");let a=u==="TB"||u==="BT"?I:0;const l=[...e.keys()],c=_?.parallelCommits??!1,f=s.__name(($,g)=>{const d=e.get($)?.seq,y=e.get(g)?.seq;return d!==void 0&&y!==void 0?d-y:0},"sortKeys");let h=l.sort(f);u==="BT"&&(c&&be(h,e,a),h=h.reverse()),h.forEach($=>{const g=e.get($);if(!g)throw new Error(`Commit not found for key ${$}`);c&&(a=ke(g,u,a,b));const d=Me(g,a,c);if(n){const y=Le(g),m=g.customType??g.type,O=p.get(g.branch)?.index??0;Ee(o,g,d,y,O,m),Te(r,g,d,a),Be(r,g,d,a)}u==="TB"||u==="BT"?b.set(g.id,{x:d.x,y:d.posWithOffset}):b.set(g.id,{x:d.posWithOffset,y:d.y}),a=u==="BT"&&c?a+T:a+T+E,a>C&&(C=a)})},"drawCommits"),Ie=s.__name((t,e,n,o,r)=>{const l=(u==="TB"||u==="BT"?n.x<o.x:n.y<o.y)?e.branch:t.branch,c=s.__name(h=>h.branch===l,"isOnBranchToGetCurve"),f=s.__name(h=>h.seq>t.seq&&h.seq<e.seq,"isBetweenCommits");return[...r.values()].some(h=>f(h)&&c(h))},"shouldRerouteArrow"),M=s.__name((t,e,n=0)=>{const o=t+Math.abs(t-e)/2;if(n>5)return o;if(R.every(l=>Math.abs(l-o)>=10))return R.push(o),o;const a=Math.abs(t-e);return M(t,e-a/5,n+1)},"findLane"),Re=s.__name((t,e,n,o)=>{const r=b.get(e.id),a=b.get(n.id);if(r===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${n.id}`);const l=Ie(e,n,r,a,o);let c="",f="",h=0,$=0,g=p.get(n.branch)?.index;n.type===x.MERGE&&e.id!==n.parents[0]&&(g=p.get(e.branch)?.index);let d;if(l){c="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",h=10,$=10;const y=r.y<a.y?M(r.y,a.y):M(a.y,r.y),m=r.x<a.x?M(r.x,a.x):M(a.x,r.x);u==="TB"?r.x<a.x?d=`M ${r.x} ${r.y} L ${m-h} ${r.y} ${f} ${m} ${r.y+$} L ${m} ${a.y-h} ${c} ${m+$} ${a.y} L ${a.x} ${a.y}`:(g=p.get(e.branch)?.index,d=`M ${r.x} ${r.y} L ${m+h} ${r.y} ${c} ${m} ${r.y+$} L ${m} ${a.y-h} ${f} ${m-$} ${a.y} L ${a.x} ${a.y}`):u==="BT"?r.x<a.x?d=`M ${r.x} ${r.y} L ${m-h} ${r.y} ${c} ${m} ${r.y-$} L ${m} ${a.y+h} ${f} ${m+$} ${a.y} L ${a.x} ${a.y}`:(g=p.get(e.branch)?.index,d=`M ${r.x} ${r.y} L ${m+h} ${r.y} ${f} ${m} ${r.y-$} L ${m} ${a.y+h} ${c} ${m-$} ${a.y} L ${a.x} ${a.y}`):r.y<a.y?d=`M ${r.x} ${r.y} L ${r.x} ${y-h} ${c} ${r.x+$} ${y} L ${a.x-h} ${y} ${f} ${a.x} ${y+$} L ${a.x} ${a.y}`:(g=p.get(e.branch)?.index,d=`M ${r.x} ${r.y} L ${r.x} ${y+h} ${f} ${r.x+$} ${y} L ${a.x-h} ${y} ${c} ${a.x} ${y-$} L ${a.x} ${a.y}`)}else c="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,u==="TB"?(r.x<a.x&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${c} ${r.x+$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${f} ${a.x} ${r.y+$} L ${a.x} ${a.y}`),r.x>a.x&&(c="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${f} ${r.x-$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x+h} ${r.y} ${c} ${a.x} ${r.y+$} L ${a.x} ${a.y}`),r.x===a.x&&(d=`M ${r.x} ${r.y} L ${a.x} ${a.y}`)):u==="BT"?(r.x<a.x&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y+h} ${f} ${r.x+$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${c} ${a.x} ${r.y-$} L ${a.x} ${a.y}`),r.x>a.x&&(c="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y+h} ${c} ${r.x-$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${c} ${a.x} ${r.y-$} L ${a.x} ${a.y}`),r.x===a.x&&(d=`M ${r.x} ${r.y} L ${a.x} ${a.y}`)):(r.y<a.y&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${f} ${a.x} ${r.y+$} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${c} ${r.x+$} ${a.y} L ${a.x} ${a.y}`),r.y>a.y&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${c} ${a.x} ${r.y-$} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${r.x} ${a.y+h} ${f} ${r.x+$} ${a.y} L ${a.x} ${a.y}`),r.y===a.y&&(d=`M ${r.x} ${r.y} L ${a.x} ${a.y}`));if(d===void 0)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+g%B)},"drawArrow"),Ge=s.__name((t,e)=>{const n=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(o=>{const r=e.get(o);r.parents&&r.parents.length>0&&r.parents.forEach(a=>{Re(n,e.get(a),r,e)})})},"drawArrows"),Oe=s.__name((t,e)=>{const n=t.append("g");e.forEach((o,r)=>{const a=r%B,l=p.get(o.name)?.pos;if(l===void 0)throw new Error(`Position not found for branch ${o.name}`);const c=n.append("line");c.attr("x1",0),c.attr("y1",l),c.attr("x2",C),c.attr("y2",l),c.attr("class","branch branch"+a),u==="TB"?(c.attr("y1",I),c.attr("x1",l),c.attr("y2",C),c.attr("x2",l)):u==="BT"&&(c.attr("y1",C),c.attr("x1",l),c.attr("y2",I),c.attr("x2",l)),R.push(l);const f=o.name,h=F(f),$=n.insert("rect"),d=n.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);d.node().appendChild(h);const y=h.getBBox();$.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-y.width-4-(_?.rotateCommitLabel===!0?30:0)).attr("y",-y.height/2+8).attr("width",y.width+18).attr("height",y.height+4),d.attr("transform","translate("+(-y.width-14-(_?.rotateCommitLabel===!0?30:0))+", "+(l-y.height/2-1)+")"),u==="TB"?($.attr("x",l-y.width/2-10).attr("y",0),d.attr("transform","translate("+(l-y.width/2-5)+", 0)")):u==="BT"?($.attr("x",l-y.width/2-10).attr("y",C),d.attr("transform","translate("+(l-y.width/2-5)+", "+C+")")):$.attr("transform","translate(-19, "+(l-y.height/2)+")")})},"drawBranches"),Ae=s.__name(function(t,e,n,o,r){return p.set(t,{pos:e,index:n}),e+=50+(r?40:0)+(u==="TB"||u==="BT"?o.width/2:0),e},"setBranchPosition"),qe=s.__name(function(t,e,n,o){if(xe(),s.log.debug("in gitgraph renderer",t+`
14
- `,"id:",e,n),!_)throw new Error("GitGraph config not found");const r=_.rotateCommitLabel??!1,a=o.db;k=a.getCommits();const l=a.getBranchesAsObjArray();u=a.getDirection();const c=s.select(`[id="${e}"]`);let f=0;l.forEach((h,$)=>{const g=F(h.name),d=c.append("g"),y=d.insert("g").attr("class","branchLabel"),m=y.insert("g").attr("class","label branch-label");m.node()?.appendChild(g);const O=g.getBBox();f=Ae(h.name,f,$,O,r),m.remove(),y.remove(),d.remove()}),P(c,k,!1),_.showBranches&&Oe(c,l),Ge(c,k),P(c,k,!0),s.utils_default.insertTitle(c,"gitTitleText",_.titleTopMargin??0,a.getDiagramTitle()),s.setupGraphViewbox2(void 0,c,_.diagramPadding,_.useMaxWidth)},"draw"),Pe={draw:qe},He=s.__name(t=>`
15
- .commit-id,
16
- .commit-msg,
17
- .branch-label {
18
- fill: lightgrey;
19
- color: lightgrey;
20
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
21
- font-family: var(--mermaid-font-family);
22
- }
23
- ${[0,1,2,3,4,5,6,7].map(e=>`
24
- .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }
25
- .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
26
- .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
27
- .label${e} { fill: ${t["git"+e]}; }
28
- .arrow${e} { stroke: ${t["git"+e]}; }
29
- `).join(`
30
- `)}
31
-
32
- .branch {
33
- stroke-width: 1;
34
- stroke: ${t.lineColor};
35
- stroke-dasharray: 2;
36
- }
37
- .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
38
- .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
39
- .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
40
- .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
41
- .tag-hole { fill: ${t.textColor}; }
42
-
43
- .commit-merge {
44
- stroke: ${t.primaryColor};
45
- fill: ${t.primaryColor};
46
- }
47
- .commit-reverse {
48
- stroke: ${t.primaryColor};
49
- fill: ${t.primaryColor};
50
- stroke-width: 3;
51
- }
52
- .commit-highlight-outer {
53
- }
54
- .commit-highlight-inner {
55
- stroke: ${t.primaryColor};
56
- fill: ${t.primaryColor};
57
- }
58
-
59
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
60
- .gitTitleText {
61
- text-anchor: middle;
62
- font-size: 18px;
63
- fill: ${t.textColor};
64
- }
65
- `,"getStyles"),De=He,Ne={parser:ue,db:z,renderer:Pe,styles:De};exports.diagram=Ne;