@orangelogic/design-system 2.162.0 → 2.163.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.BdB6fQA_.js} +11 -11
  33. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  34. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  35. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  36. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  37. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  38. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  39. package/library/chunks/channel.s_XjcUYI.js +5 -0
  40. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  41. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  42. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  43. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  44. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  45. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  46. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  47. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  48. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  49. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  50. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  51. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  52. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  53. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.w5DMzNco.js} +2419 -2645
  54. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  55. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  56. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  57. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  58. package/library/chunks/{content-builder.BU8X7I6V.js → content-builder.BX4pHujE.js} +1 -1
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.gyH0NGM5.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dh4SX0eU.js} +5 -5
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  124. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  125. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  126. package/library/chunks/range.DdOGybNB.js +9 -0
  127. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  128. package/library/chunks/sankey.BR94A-8L.js +294 -0
  129. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  130. package/library/chunks/select.C6_sM3Pr.js +7 -0
  131. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  132. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  133. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  134. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  135. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  136. package/library/chunks/step.almIqwJ6.js +51 -0
  137. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  138. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  139. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  140. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  141. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  142. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  143. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  144. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  145. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  146. package/library/chunks/{toast.TDU3wVhq.js → toast.C5Ir5yKA.js} +1 -1
  147. package/library/chunks/{tree.C2dPd6gt.js → tree.Dvnw_4vz.js} +3 -3
  148. package/library/chunks/value.BXEGBVFV.js +44 -0
  149. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  150. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  151. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  152. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  153. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  154. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  155. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  156. package/library/components/alert.js +2 -2
  157. package/library/components/am-chart.js +3 -3
  158. package/library/components/animated-image.js +2 -2
  159. package/library/components/animation.js +2 -2
  160. package/library/components/array-line-clamp.js +1 -1
  161. package/library/components/asset-link-format.js +4 -4
  162. package/library/components/atoms.js +29 -29
  163. package/library/components/audio.js +3 -3
  164. package/library/components/avatar.js +2 -2
  165. package/library/components/border-input-group.js +1 -1
  166. package/library/components/breadcrumb-item.js +1 -1
  167. package/library/components/breadcrumb.js +1 -1
  168. package/library/components/button.js +3 -3
  169. package/library/components/checkbox.js +195 -18
  170. package/library/components/color-picker.js +4 -4
  171. package/library/components/color-swatch-group.js +5 -5
  172. package/library/components/color-swatch.js +2 -2
  173. package/library/components/confirm-popover.js +3 -3
  174. package/library/components/copy-button.js +2 -2
  175. package/library/components/corner-position-input-group.js +2 -2
  176. package/library/components/cropper.js +3 -3
  177. package/library/components/date-calendar.js +1 -1
  178. package/library/components/details.js +2 -2
  179. package/library/components/dialog.js +3 -3
  180. package/library/components/diff.js +1 -1
  181. package/library/components/divider.js +1 -1
  182. package/library/components/document-viewer.js +3 -3
  183. package/library/components/dot-pagination.js +2 -2
  184. package/library/components/drawer.js +3 -3
  185. package/library/components/dropdown.js +2 -2
  186. package/library/components/dynamic-select.js +6 -6
  187. package/library/components/e-chart.js +1 -1
  188. package/library/components/element-clamp.js +2 -2
  189. package/library/components/file-on-demand.js +350 -374
  190. package/library/components/folder-select.js +5 -5
  191. package/library/components/format-time.js +2 -2
  192. package/library/components/grid-item.js +1 -1
  193. package/library/components/header.js +2 -2
  194. package/library/components/hub-connection.js +2 -2
  195. package/library/components/icon-button.js +2 -2
  196. package/library/components/icon.js +2 -2
  197. package/library/components/iframe.js +2 -2
  198. package/library/components/image-comparer.js +2 -2
  199. package/library/components/image.js +3 -3
  200. package/library/components/include.js +1 -1
  201. package/library/components/input.js +3 -3
  202. package/library/components/line-clamp.js +1 -1
  203. package/library/components/markdown.js +11 -2704
  204. package/library/components/masonry.js +3 -3
  205. package/library/components/menu-item.js +2 -2
  206. package/library/components/molecules.js +3 -3
  207. package/library/components/mutation-observer.js +1 -1
  208. package/library/components/option.js +3 -3
  209. package/library/components/organisms.js +2 -2
  210. package/library/components/padding-input-group.js +1 -1
  211. package/library/components/pagination.js +6 -6
  212. package/library/components/qr-code.js +1 -1
  213. package/library/components/radio-button.js +1 -1
  214. package/library/components/radio-card.js +1 -1
  215. package/library/components/radio-group.js +1 -1
  216. package/library/components/radio.js +2 -2
  217. package/library/components/range.js +1 -1
  218. package/library/components/rating.js +2 -2
  219. package/library/components/resize-observer.js +1 -1
  220. package/library/components/select.js +3 -3
  221. package/library/components/shadow-input-group.js +1 -1
  222. package/library/components/share-option-list.js +2 -2
  223. package/library/components/sidebar.js +3 -3
  224. package/library/components/size-input-group.js +3 -3
  225. package/library/components/split-panel.js +1 -1
  226. package/library/components/step.js +1 -1
  227. package/library/components/stepper-wizard.js +1 -1
  228. package/library/components/stepper.js +1 -1
  229. package/library/components/switch.js +1 -1
  230. package/library/components/tab-group.js +4 -4
  231. package/library/components/tab-panel.js +1 -1
  232. package/library/components/tab.js +2 -2
  233. package/library/components/tag.js +1 -1
  234. package/library/components/textarea.js +1 -1
  235. package/library/components/timecode.js +1 -1
  236. package/library/components/tooltip.js +1 -1
  237. package/library/components/tree-item.js +4 -4
  238. package/library/components/tree.js +2 -2
  239. package/library/components/typeface.js +2 -2
  240. package/library/components/types.js +122518 -120879
  241. package/library/components/video.js +2 -2
  242. package/library/package.json +2 -1
  243. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  244. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  245. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  246. package/library/packages/molecules/src/index.d.ts +1 -0
  247. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  248. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  249. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  250. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  251. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  252. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  253. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  254. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  255. package/library/react-web-component.d.ts +71 -5
  256. package/library/utils.js +6 -6
  257. package/package.json +2 -1
  258. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  259. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  260. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  261. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  262. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  263. package/library/chunks/index.DU0XUO4k.js +0 -176
  264. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,2715 @@
1
+ import { _ as d, g as On, s as Hn, o as Nn, n as Pn, a as Vn, b as Rn, c as Yt, d as zn, aU as it, l as Tt, j as qn, i as Bn, p as Zn, x as Xn } from "./mermaid.core.Dspbw7Ig.js";
2
+ import { a as oe } from "./_commonjsHelpers.DQNKXVTB.js";
3
+ import { R as on, e as Gn, f as cn, g as un, C as ln, n as ue, h as jn } from "./index.CrhRU5m8.js";
4
+ import "./transform.BuqENXeT.js";
5
+ import { b as Qn, t as Ne, c as Jn, a as Kn, l as tr } from "./linear.TNHhsH1m.js";
6
+ import { i as er } from "./init.DjUOC4st.js";
7
+ import { s as Zt } from "./select.C6_sM3Pr.js";
8
+ const nr = Math.PI / 180, rr = 180 / Math.PI, ne = 18, fn = 0.96422, dn = 1, hn = 0.82521, mn = 4 / 29, Ft = 6 / 29, gn = 3 * Ft * Ft, ir = Ft * Ft * Ft;
9
+ function yn(t) {
10
+ if (t instanceof ft) return new ft(t.l, t.a, t.b, t.opacity);
11
+ if (t instanceof ht) return kn(t);
12
+ t instanceof on || (t = Gn(t));
13
+ var e = he(t.r), n = he(t.g), r = he(t.b), i = le((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / dn), s, a;
14
+ return e === n && n === r ? s = a = i : (s = le((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / fn), a = le((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / hn)), new ft(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity);
15
+ }
16
+ function sr(t, e, n, r) {
17
+ return arguments.length === 1 ? yn(t) : new ft(t, e, n, r ?? 1);
18
+ }
19
+ function ft(t, e, n, r) {
20
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
21
+ }
22
+ cn(ft, sr, un(ln, {
23
+ brighter(t) {
24
+ return new ft(this.l + ne * (t ?? 1), this.a, this.b, this.opacity);
25
+ },
26
+ darker(t) {
27
+ return new ft(this.l - ne * (t ?? 1), this.a, this.b, this.opacity);
28
+ },
29
+ rgb() {
30
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
31
+ return e = fn * fe(e), t = dn * fe(t), n = hn * fe(n), new on(
32
+ de(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
33
+ de(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
34
+ de(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
35
+ this.opacity
36
+ );
37
+ }
38
+ }));
39
+ function le(t) {
40
+ return t > ir ? Math.pow(t, 1 / 3) : t / gn + mn;
41
+ }
42
+ function fe(t) {
43
+ return t > Ft ? t * t * t : gn * (t - mn);
44
+ }
45
+ function de(t) {
46
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
47
+ }
48
+ function he(t) {
49
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
50
+ }
51
+ function ar(t) {
52
+ if (t instanceof ht) return new ht(t.h, t.c, t.l, t.opacity);
53
+ if (t instanceof ft || (t = yn(t)), t.a === 0 && t.b === 0) return new ht(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
54
+ var e = Math.atan2(t.b, t.a) * rr;
55
+ return new ht(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
56
+ }
57
+ function xe(t, e, n, r) {
58
+ return arguments.length === 1 ? ar(t) : new ht(t, e, n, r ?? 1);
59
+ }
60
+ function ht(t, e, n, r) {
61
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
62
+ }
63
+ function kn(t) {
64
+ if (isNaN(t.h)) return new ft(t.l, 0, 0, t.opacity);
65
+ var e = t.h * nr;
66
+ return new ft(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
67
+ }
68
+ cn(ht, xe, un(ln, {
69
+ brighter(t) {
70
+ return new ht(this.h, this.c, this.l + ne * (t ?? 1), this.opacity);
71
+ },
72
+ darker(t) {
73
+ return new ht(this.h, this.c, this.l - ne * (t ?? 1), this.opacity);
74
+ },
75
+ rgb() {
76
+ return kn(this).rgb();
77
+ }
78
+ }));
79
+ function or(t) {
80
+ return function(e, n) {
81
+ var r = t((e = xe(e)).h, (n = xe(n)).h), i = ue(e.c, n.c), s = ue(e.l, n.l), a = ue(e.opacity, n.opacity);
82
+ return function(y) {
83
+ return e.h = r(y), e.c = i(y), e.l = s(y), e.opacity = a(y), e + "";
84
+ };
85
+ };
86
+ }
87
+ const cr = or(jn);
88
+ function ur(t, e) {
89
+ let n;
90
+ if (e === void 0)
91
+ for (const r of t)
92
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
93
+ else {
94
+ let r = -1;
95
+ for (let i of t)
96
+ (i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
97
+ }
98
+ return n;
99
+ }
100
+ function lr(t, e) {
101
+ let n;
102
+ if (e === void 0)
103
+ for (const r of t)
104
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
105
+ else {
106
+ let r = -1;
107
+ for (let i of t)
108
+ (i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
109
+ }
110
+ return n;
111
+ }
112
+ function fr(t) {
113
+ return t;
114
+ }
115
+ var Gt = 1, me = 2, be = 3, Xt = 4, Pe = 1e-6;
116
+ function dr(t) {
117
+ return "translate(" + t + ",0)";
118
+ }
119
+ function hr(t) {
120
+ return "translate(0," + t + ")";
121
+ }
122
+ function mr(t) {
123
+ return (e) => +t(e);
124
+ }
125
+ function gr(t, e) {
126
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
127
+ }
128
+ function yr() {
129
+ return !this.__axis;
130
+ }
131
+ function pn(t, e) {
132
+ var n = [], r = null, i = null, s = 6, a = 6, y = 3, F = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, S = t === Gt || t === Xt ? -1 : 1, w = t === Xt || t === me ? "x" : "y", P = t === Gt || t === be ? dr : hr;
133
+ function _(Y) {
134
+ var X = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), B = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : fr), v = Math.max(s, 0) + y, U = e.range(), R = +U[0] + F, E = +U[U.length - 1] + F, z = (e.bandwidth ? gr : mr)(e.copy(), F), G = Y.selection ? Y.selection() : Y, T = G.selectAll(".domain").data([null]), k = G.selectAll(".tick").data(X, e).order(), p = k.exit(), L = k.enter().append("g").attr("class", "tick"), x = k.select("line"), C = k.select("text");
135
+ T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), k = k.merge(L), x = x.merge(L.append("line").attr("stroke", "currentColor").attr(w + "2", S * s)), C = C.merge(L.append("text").attr("fill", "currentColor").attr(w, S * v).attr("dy", t === Gt ? "0em" : t === be ? "0.71em" : "0.32em")), Y !== G && (T = T.transition(Y), k = k.transition(Y), x = x.transition(Y), C = C.transition(Y), p = p.transition(Y).attr("opacity", Pe).attr("transform", function(M) {
136
+ return isFinite(M = z(M)) ? P(M + F) : this.getAttribute("transform");
137
+ }), L.attr("opacity", Pe).attr("transform", function(M) {
138
+ var D = this.parentNode.__axis;
139
+ return P((D && isFinite(D = D(M)) ? D : z(M)) + F);
140
+ })), p.remove(), T.attr("d", t === Xt || t === me ? a ? "M" + S * a + "," + R + "H" + F + "V" + E + "H" + S * a : "M" + F + "," + R + "V" + E : a ? "M" + R + "," + S * a + "V" + F + "H" + E + "V" + S * a : "M" + R + "," + F + "H" + E), k.attr("opacity", 1).attr("transform", function(M) {
141
+ return P(z(M) + F);
142
+ }), x.attr(w + "2", S * s), C.attr(w, S * v).text(B), G.filter(yr).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === me ? "start" : t === Xt ? "end" : "middle"), G.each(function() {
143
+ this.__axis = z;
144
+ });
145
+ }
146
+ return _.scale = function(Y) {
147
+ return arguments.length ? (e = Y, _) : e;
148
+ }, _.ticks = function() {
149
+ return n = Array.from(arguments), _;
150
+ }, _.tickArguments = function(Y) {
151
+ return arguments.length ? (n = Y == null ? [] : Array.from(Y), _) : n.slice();
152
+ }, _.tickValues = function(Y) {
153
+ return arguments.length ? (r = Y == null ? null : Array.from(Y), _) : r && r.slice();
154
+ }, _.tickFormat = function(Y) {
155
+ return arguments.length ? (i = Y, _) : i;
156
+ }, _.tickSize = function(Y) {
157
+ return arguments.length ? (s = a = +Y, _) : s;
158
+ }, _.tickSizeInner = function(Y) {
159
+ return arguments.length ? (s = +Y, _) : s;
160
+ }, _.tickSizeOuter = function(Y) {
161
+ return arguments.length ? (a = +Y, _) : a;
162
+ }, _.tickPadding = function(Y) {
163
+ return arguments.length ? (y = +Y, _) : y;
164
+ }, _.offset = function(Y) {
165
+ return arguments.length ? (F = +Y, _) : F;
166
+ }, _;
167
+ }
168
+ function kr(t) {
169
+ return pn(Gt, t);
170
+ }
171
+ function pr(t) {
172
+ return pn(be, t);
173
+ }
174
+ function vr(t, e) {
175
+ t = t.slice();
176
+ var n = 0, r = t.length - 1, i = t[n], s = t[r], a;
177
+ return s < i && (a = n, n = r, r = a, a = i, i = s, s = a), t[n] = e.floor(i), t[r] = e.ceil(s), t;
178
+ }
179
+ const ge = /* @__PURE__ */ new Date(), ye = /* @__PURE__ */ new Date();
180
+ function nt(t, e, n, r) {
181
+ function i(s) {
182
+ return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
183
+ }
184
+ return i.floor = (s) => (t(s = /* @__PURE__ */ new Date(+s)), s), i.ceil = (s) => (t(s = new Date(s - 1)), e(s, 1), t(s), s), i.round = (s) => {
185
+ const a = i(s), y = i.ceil(s);
186
+ return s - a < y - s ? a : y;
187
+ }, i.offset = (s, a) => (e(s = /* @__PURE__ */ new Date(+s), a == null ? 1 : Math.floor(a)), s), i.range = (s, a, y) => {
188
+ const F = [];
189
+ if (s = i.ceil(s), y = y == null ? 1 : Math.floor(y), !(s < a) || !(y > 0)) return F;
190
+ let S;
191
+ do
192
+ F.push(S = /* @__PURE__ */ new Date(+s)), e(s, y), t(s);
193
+ while (S < s && s < a);
194
+ return F;
195
+ }, i.filter = (s) => nt((a) => {
196
+ if (a >= a) for (; t(a), !s(a); ) a.setTime(a - 1);
197
+ }, (a, y) => {
198
+ if (a >= a)
199
+ if (y < 0) for (; ++y <= 0; )
200
+ for (; e(a, -1), !s(a); )
201
+ ;
202
+ else for (; --y >= 0; )
203
+ for (; e(a, 1), !s(a); )
204
+ ;
205
+ }), n && (i.count = (s, a) => (ge.setTime(+s), ye.setTime(+a), t(ge), t(ye), Math.floor(n(ge, ye))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? (a) => r(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i;
206
+ }
207
+ const Et = nt(() => {
208
+ }, (t, e) => {
209
+ t.setTime(+t + e);
210
+ }, (t, e) => e - t);
211
+ Et.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? nt((e) => {
212
+ e.setTime(Math.floor(e / t) * t);
213
+ }, (e, n) => {
214
+ e.setTime(+e + n * t);
215
+ }, (e, n) => (n - e) / t) : Et);
216
+ Et.range;
217
+ const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, Se = yt * 7, Ve = yt * 30, ke = yt * 365, vt = nt((t) => {
218
+ t.setTime(t - t.getMilliseconds());
219
+ }, (t, e) => {
220
+ t.setTime(+t + e * mt);
221
+ }, (t, e) => (e - t) / mt, (t) => t.getUTCSeconds());
222
+ vt.range;
223
+ const Nt = nt((t) => {
224
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt);
225
+ }, (t, e) => {
226
+ t.setTime(+t + e * ct);
227
+ }, (t, e) => (e - t) / ct, (t) => t.getMinutes());
228
+ Nt.range;
229
+ const Tr = nt((t) => {
230
+ t.setUTCSeconds(0, 0);
231
+ }, (t, e) => {
232
+ t.setTime(+t + e * ct);
233
+ }, (t, e) => (e - t) / ct, (t) => t.getUTCMinutes());
234
+ Tr.range;
235
+ const Pt = nt((t) => {
236
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt - t.getMinutes() * ct);
237
+ }, (t, e) => {
238
+ t.setTime(+t + e * gt);
239
+ }, (t, e) => (e - t) / gt, (t) => t.getHours());
240
+ Pt.range;
241
+ const xr = nt((t) => {
242
+ t.setUTCMinutes(0, 0, 0);
243
+ }, (t, e) => {
244
+ t.setTime(+t + e * gt);
245
+ }, (t, e) => (e - t) / gt, (t) => t.getUTCHours());
246
+ xr.range;
247
+ const xt = nt(
248
+ (t) => t.setHours(0, 0, 0, 0),
249
+ (t, e) => t.setDate(t.getDate() + e),
250
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ct) / yt,
251
+ (t) => t.getDate() - 1
252
+ );
253
+ xt.range;
254
+ const _e = nt((t) => {
255
+ t.setUTCHours(0, 0, 0, 0);
256
+ }, (t, e) => {
257
+ t.setUTCDate(t.getUTCDate() + e);
258
+ }, (t, e) => (e - t) / yt, (t) => t.getUTCDate() - 1);
259
+ _e.range;
260
+ const br = nt((t) => {
261
+ t.setUTCHours(0, 0, 0, 0);
262
+ }, (t, e) => {
263
+ t.setUTCDate(t.getUTCDate() + e);
264
+ }, (t, e) => (e - t) / yt, (t) => Math.floor(t / yt));
265
+ br.range;
266
+ function Dt(t) {
267
+ return nt((e) => {
268
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
269
+ }, (e, n) => {
270
+ e.setDate(e.getDate() + n * 7);
271
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ct) / Se);
272
+ }
273
+ const zt = Dt(0), Vt = Dt(1), vn = Dt(2), Tn = Dt(3), bt = Dt(4), xn = Dt(5), bn = Dt(6);
274
+ zt.range;
275
+ Vt.range;
276
+ vn.range;
277
+ Tn.range;
278
+ bt.range;
279
+ xn.range;
280
+ bn.range;
281
+ function Mt(t) {
282
+ return nt((e) => {
283
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
284
+ }, (e, n) => {
285
+ e.setUTCDate(e.getUTCDate() + n * 7);
286
+ }, (e, n) => (n - e) / Se);
287
+ }
288
+ const wn = Mt(0), re = Mt(1), wr = Mt(2), Dr = Mt(3), It = Mt(4), Mr = Mt(5), Cr = Mt(6);
289
+ wn.range;
290
+ re.range;
291
+ wr.range;
292
+ Dr.range;
293
+ It.range;
294
+ Mr.range;
295
+ Cr.range;
296
+ const Rt = nt((t) => {
297
+ t.setDate(1), t.setHours(0, 0, 0, 0);
298
+ }, (t, e) => {
299
+ t.setMonth(t.getMonth() + e);
300
+ }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
301
+ Rt.range;
302
+ const Sr = nt((t) => {
303
+ t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
304
+ }, (t, e) => {
305
+ t.setUTCMonth(t.getUTCMonth() + e);
306
+ }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
307
+ Sr.range;
308
+ const kt = nt((t) => {
309
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
310
+ }, (t, e) => {
311
+ t.setFullYear(t.getFullYear() + e);
312
+ }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
313
+ kt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : nt((e) => {
314
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
315
+ }, (e, n) => {
316
+ e.setFullYear(e.getFullYear() + n * t);
317
+ });
318
+ kt.range;
319
+ const wt = nt((t) => {
320
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
321
+ }, (t, e) => {
322
+ t.setUTCFullYear(t.getUTCFullYear() + e);
323
+ }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
324
+ wt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : nt((e) => {
325
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
326
+ }, (e, n) => {
327
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
328
+ });
329
+ wt.range;
330
+ function _r(t, e, n, r, i, s) {
331
+ const a = [
332
+ [vt, 1, mt],
333
+ [vt, 5, 5 * mt],
334
+ [vt, 15, 15 * mt],
335
+ [vt, 30, 30 * mt],
336
+ [s, 1, ct],
337
+ [s, 5, 5 * ct],
338
+ [s, 15, 15 * ct],
339
+ [s, 30, 30 * ct],
340
+ [i, 1, gt],
341
+ [i, 3, 3 * gt],
342
+ [i, 6, 6 * gt],
343
+ [i, 12, 12 * gt],
344
+ [r, 1, yt],
345
+ [r, 2, 2 * yt],
346
+ [n, 1, Se],
347
+ [e, 1, Ve],
348
+ [e, 3, 3 * Ve],
349
+ [t, 1, ke]
350
+ ];
351
+ function y(S, w, P) {
352
+ const _ = w < S;
353
+ _ && ([S, w] = [w, S]);
354
+ const Y = P && typeof P.range == "function" ? P : F(S, w, P), X = Y ? Y.range(S, +w + 1) : [];
355
+ return _ ? X.reverse() : X;
356
+ }
357
+ function F(S, w, P) {
358
+ const _ = Math.abs(w - S) / P, Y = Qn(([, , v]) => v).right(a, _);
359
+ if (Y === a.length) return t.every(Ne(S / ke, w / ke, P));
360
+ if (Y === 0) return Et.every(Math.max(Ne(S, w, P), 1));
361
+ const [X, B] = a[_ / a[Y - 1][2] < a[Y][2] / _ ? Y - 1 : Y];
362
+ return X.every(B);
363
+ }
364
+ return [y, F];
365
+ }
366
+ const [Yr, Fr] = _r(kt, Rt, zt, xt, Pt, Nt);
367
+ function pe(t) {
368
+ if (0 <= t.y && t.y < 100) {
369
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
370
+ return e.setFullYear(t.y), e;
371
+ }
372
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
373
+ }
374
+ function ve(t) {
375
+ if (0 <= t.y && t.y < 100) {
376
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
377
+ return e.setUTCFullYear(t.y), e;
378
+ }
379
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
380
+ }
381
+ function $t(t, e, n) {
382
+ return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
383
+ }
384
+ function Ur(t) {
385
+ var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, a = t.shortDays, y = t.months, F = t.shortMonths, S = Ot(i), w = Ht(i), P = Ot(s), _ = Ht(s), Y = Ot(a), X = Ht(a), B = Ot(y), v = Ht(y), U = Ot(F), R = Ht(F), E = {
386
+ a: m,
387
+ A: I,
388
+ b: o,
389
+ B: W,
390
+ c: null,
391
+ d: Xe,
392
+ e: Xe,
393
+ f: ti,
394
+ g: li,
395
+ G: di,
396
+ H: Qr,
397
+ I: Jr,
398
+ j: Kr,
399
+ L: Dn,
400
+ m: ei,
401
+ M: ni,
402
+ p: u,
403
+ q: K,
404
+ Q: Qe,
405
+ s: Je,
406
+ S: ri,
407
+ u: ii,
408
+ U: si,
409
+ V: ai,
410
+ w: oi,
411
+ W: ci,
412
+ x: null,
413
+ X: null,
414
+ y: ui,
415
+ Y: fi,
416
+ Z: hi,
417
+ "%": je
418
+ }, z = {
419
+ a: l,
420
+ A: $,
421
+ b: O,
422
+ B: j,
423
+ c: null,
424
+ d: Ge,
425
+ e: Ge,
426
+ f: ki,
427
+ g: Si,
428
+ G: Yi,
429
+ H: mi,
430
+ I: gi,
431
+ j: yi,
432
+ L: Cn,
433
+ m: pi,
434
+ M: vi,
435
+ p: H,
436
+ q: J,
437
+ Q: Qe,
438
+ s: Je,
439
+ S: Ti,
440
+ u: xi,
441
+ U: bi,
442
+ V: wi,
443
+ w: Di,
444
+ W: Mi,
445
+ x: null,
446
+ X: null,
447
+ y: Ci,
448
+ Y: _i,
449
+ Z: Fi,
450
+ "%": je
451
+ }, G = {
452
+ a: x,
453
+ A: C,
454
+ b: M,
455
+ B: D,
456
+ c,
457
+ d: Be,
458
+ e: Be,
459
+ f: Zr,
460
+ g: qe,
461
+ G: ze,
462
+ H: Ze,
463
+ I: Ze,
464
+ j: Rr,
465
+ L: Br,
466
+ m: Vr,
467
+ M: zr,
468
+ p: L,
469
+ q: Pr,
470
+ Q: Gr,
471
+ s: jr,
472
+ S: qr,
473
+ u: Wr,
474
+ U: $r,
475
+ V: Or,
476
+ w: Ar,
477
+ W: Hr,
478
+ x: g,
479
+ X: b,
480
+ y: qe,
481
+ Y: ze,
482
+ Z: Nr,
483
+ "%": Xr
484
+ };
485
+ E.x = T(n, E), E.X = T(r, E), E.c = T(e, E), z.x = T(n, z), z.X = T(r, z), z.c = T(e, z);
486
+ function T(h, N) {
487
+ return function(V) {
488
+ var f = [], tt = -1, A = 0, Q = h.length, Z, st, at;
489
+ for (V instanceof Date || (V = /* @__PURE__ */ new Date(+V)); ++tt < Q; )
490
+ h.charCodeAt(tt) === 37 && (f.push(h.slice(A, tt)), (st = Re[Z = h.charAt(++tt)]) != null ? Z = h.charAt(++tt) : st = Z === "e" ? " " : "0", (at = N[Z]) && (Z = at(V, st)), f.push(Z), A = tt + 1);
491
+ return f.push(h.slice(A, tt)), f.join("");
492
+ };
493
+ }
494
+ function k(h, N) {
495
+ return function(V) {
496
+ var f = $t(1900, void 0, 1), tt = p(f, h, V += "", 0), A, Q;
497
+ if (tt != V.length) return null;
498
+ if ("Q" in f) return new Date(f.Q);
499
+ if ("s" in f) return new Date(f.s * 1e3 + ("L" in f ? f.L : 0));
500
+ if (N && !("Z" in f) && (f.Z = 0), "p" in f && (f.H = f.H % 12 + f.p * 12), f.m === void 0 && (f.m = "q" in f ? f.q : 0), "V" in f) {
501
+ if (f.V < 1 || f.V > 53) return null;
502
+ "w" in f || (f.w = 1), "Z" in f ? (A = ve($t(f.y, 0, 1)), Q = A.getUTCDay(), A = Q > 4 || Q === 0 ? re.ceil(A) : re(A), A = _e.offset(A, (f.V - 1) * 7), f.y = A.getUTCFullYear(), f.m = A.getUTCMonth(), f.d = A.getUTCDate() + (f.w + 6) % 7) : (A = pe($t(f.y, 0, 1)), Q = A.getDay(), A = Q > 4 || Q === 0 ? Vt.ceil(A) : Vt(A), A = xt.offset(A, (f.V - 1) * 7), f.y = A.getFullYear(), f.m = A.getMonth(), f.d = A.getDate() + (f.w + 6) % 7);
503
+ } else ("W" in f || "U" in f) && ("w" in f || (f.w = "u" in f ? f.u % 7 : "W" in f ? 1 : 0), Q = "Z" in f ? ve($t(f.y, 0, 1)).getUTCDay() : pe($t(f.y, 0, 1)).getDay(), f.m = 0, f.d = "W" in f ? (f.w + 6) % 7 + f.W * 7 - (Q + 5) % 7 : f.w + f.U * 7 - (Q + 6) % 7);
504
+ return "Z" in f ? (f.H += f.Z / 100 | 0, f.M += f.Z % 100, ve(f)) : pe(f);
505
+ };
506
+ }
507
+ function p(h, N, V, f) {
508
+ for (var tt = 0, A = N.length, Q = V.length, Z, st; tt < A; ) {
509
+ if (f >= Q) return -1;
510
+ if (Z = N.charCodeAt(tt++), Z === 37) {
511
+ if (Z = N.charAt(tt++), st = G[Z in Re ? N.charAt(tt++) : Z], !st || (f = st(h, V, f)) < 0) return -1;
512
+ } else if (Z != V.charCodeAt(f++))
513
+ return -1;
514
+ }
515
+ return f;
516
+ }
517
+ function L(h, N, V) {
518
+ var f = S.exec(N.slice(V));
519
+ return f ? (h.p = w.get(f[0].toLowerCase()), V + f[0].length) : -1;
520
+ }
521
+ function x(h, N, V) {
522
+ var f = Y.exec(N.slice(V));
523
+ return f ? (h.w = X.get(f[0].toLowerCase()), V + f[0].length) : -1;
524
+ }
525
+ function C(h, N, V) {
526
+ var f = P.exec(N.slice(V));
527
+ return f ? (h.w = _.get(f[0].toLowerCase()), V + f[0].length) : -1;
528
+ }
529
+ function M(h, N, V) {
530
+ var f = U.exec(N.slice(V));
531
+ return f ? (h.m = R.get(f[0].toLowerCase()), V + f[0].length) : -1;
532
+ }
533
+ function D(h, N, V) {
534
+ var f = B.exec(N.slice(V));
535
+ return f ? (h.m = v.get(f[0].toLowerCase()), V + f[0].length) : -1;
536
+ }
537
+ function c(h, N, V) {
538
+ return p(h, e, N, V);
539
+ }
540
+ function g(h, N, V) {
541
+ return p(h, n, N, V);
542
+ }
543
+ function b(h, N, V) {
544
+ return p(h, r, N, V);
545
+ }
546
+ function m(h) {
547
+ return a[h.getDay()];
548
+ }
549
+ function I(h) {
550
+ return s[h.getDay()];
551
+ }
552
+ function o(h) {
553
+ return F[h.getMonth()];
554
+ }
555
+ function W(h) {
556
+ return y[h.getMonth()];
557
+ }
558
+ function u(h) {
559
+ return i[+(h.getHours() >= 12)];
560
+ }
561
+ function K(h) {
562
+ return 1 + ~~(h.getMonth() / 3);
563
+ }
564
+ function l(h) {
565
+ return a[h.getUTCDay()];
566
+ }
567
+ function $(h) {
568
+ return s[h.getUTCDay()];
569
+ }
570
+ function O(h) {
571
+ return F[h.getUTCMonth()];
572
+ }
573
+ function j(h) {
574
+ return y[h.getUTCMonth()];
575
+ }
576
+ function H(h) {
577
+ return i[+(h.getUTCHours() >= 12)];
578
+ }
579
+ function J(h) {
580
+ return 1 + ~~(h.getUTCMonth() / 3);
581
+ }
582
+ return {
583
+ format: function(h) {
584
+ var N = T(h += "", E);
585
+ return N.toString = function() {
586
+ return h;
587
+ }, N;
588
+ },
589
+ parse: function(h) {
590
+ var N = k(h += "", !1);
591
+ return N.toString = function() {
592
+ return h;
593
+ }, N;
594
+ },
595
+ utcFormat: function(h) {
596
+ var N = T(h += "", z);
597
+ return N.toString = function() {
598
+ return h;
599
+ }, N;
600
+ },
601
+ utcParse: function(h) {
602
+ var N = k(h += "", !0);
603
+ return N.toString = function() {
604
+ return h;
605
+ }, N;
606
+ }
607
+ };
608
+ }
609
+ var Re = { "-": "", _: " ", 0: "0" }, rt = /^\s*\d+/, Er = /^%/, Ir = /[\\^$*+?|[\]().{}]/g;
610
+ function q(t, e, n) {
611
+ var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", s = i.length;
612
+ return r + (s < n ? new Array(n - s + 1).join(e) + i : i);
613
+ }
614
+ function Lr(t) {
615
+ return t.replace(Ir, "\\$&");
616
+ }
617
+ function Ot(t) {
618
+ return new RegExp("^(?:" + t.map(Lr).join("|") + ")", "i");
619
+ }
620
+ function Ht(t) {
621
+ return new Map(t.map((e, n) => [e.toLowerCase(), n]));
622
+ }
623
+ function Ar(t, e, n) {
624
+ var r = rt.exec(e.slice(n, n + 1));
625
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
626
+ }
627
+ function Wr(t, e, n) {
628
+ var r = rt.exec(e.slice(n, n + 1));
629
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
630
+ }
631
+ function $r(t, e, n) {
632
+ var r = rt.exec(e.slice(n, n + 2));
633
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
634
+ }
635
+ function Or(t, e, n) {
636
+ var r = rt.exec(e.slice(n, n + 2));
637
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
638
+ }
639
+ function Hr(t, e, n) {
640
+ var r = rt.exec(e.slice(n, n + 2));
641
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
642
+ }
643
+ function ze(t, e, n) {
644
+ var r = rt.exec(e.slice(n, n + 4));
645
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
646
+ }
647
+ function qe(t, e, n) {
648
+ var r = rt.exec(e.slice(n, n + 2));
649
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
650
+ }
651
+ function Nr(t, e, n) {
652
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
653
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
654
+ }
655
+ function Pr(t, e, n) {
656
+ var r = rt.exec(e.slice(n, n + 1));
657
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
658
+ }
659
+ function Vr(t, e, n) {
660
+ var r = rt.exec(e.slice(n, n + 2));
661
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
662
+ }
663
+ function Be(t, e, n) {
664
+ var r = rt.exec(e.slice(n, n + 2));
665
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
666
+ }
667
+ function Rr(t, e, n) {
668
+ var r = rt.exec(e.slice(n, n + 3));
669
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
670
+ }
671
+ function Ze(t, e, n) {
672
+ var r = rt.exec(e.slice(n, n + 2));
673
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
674
+ }
675
+ function zr(t, e, n) {
676
+ var r = rt.exec(e.slice(n, n + 2));
677
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
678
+ }
679
+ function qr(t, e, n) {
680
+ var r = rt.exec(e.slice(n, n + 2));
681
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
682
+ }
683
+ function Br(t, e, n) {
684
+ var r = rt.exec(e.slice(n, n + 3));
685
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
686
+ }
687
+ function Zr(t, e, n) {
688
+ var r = rt.exec(e.slice(n, n + 6));
689
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
690
+ }
691
+ function Xr(t, e, n) {
692
+ var r = Er.exec(e.slice(n, n + 1));
693
+ return r ? n + r[0].length : -1;
694
+ }
695
+ function Gr(t, e, n) {
696
+ var r = rt.exec(e.slice(n));
697
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
698
+ }
699
+ function jr(t, e, n) {
700
+ var r = rt.exec(e.slice(n));
701
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
702
+ }
703
+ function Xe(t, e) {
704
+ return q(t.getDate(), e, 2);
705
+ }
706
+ function Qr(t, e) {
707
+ return q(t.getHours(), e, 2);
708
+ }
709
+ function Jr(t, e) {
710
+ return q(t.getHours() % 12 || 12, e, 2);
711
+ }
712
+ function Kr(t, e) {
713
+ return q(1 + xt.count(kt(t), t), e, 3);
714
+ }
715
+ function Dn(t, e) {
716
+ return q(t.getMilliseconds(), e, 3);
717
+ }
718
+ function ti(t, e) {
719
+ return Dn(t, e) + "000";
720
+ }
721
+ function ei(t, e) {
722
+ return q(t.getMonth() + 1, e, 2);
723
+ }
724
+ function ni(t, e) {
725
+ return q(t.getMinutes(), e, 2);
726
+ }
727
+ function ri(t, e) {
728
+ return q(t.getSeconds(), e, 2);
729
+ }
730
+ function ii(t) {
731
+ var e = t.getDay();
732
+ return e === 0 ? 7 : e;
733
+ }
734
+ function si(t, e) {
735
+ return q(zt.count(kt(t) - 1, t), e, 2);
736
+ }
737
+ function Mn(t) {
738
+ var e = t.getDay();
739
+ return e >= 4 || e === 0 ? bt(t) : bt.ceil(t);
740
+ }
741
+ function ai(t, e) {
742
+ return t = Mn(t), q(bt.count(kt(t), t) + (kt(t).getDay() === 4), e, 2);
743
+ }
744
+ function oi(t) {
745
+ return t.getDay();
746
+ }
747
+ function ci(t, e) {
748
+ return q(Vt.count(kt(t) - 1, t), e, 2);
749
+ }
750
+ function ui(t, e) {
751
+ return q(t.getFullYear() % 100, e, 2);
752
+ }
753
+ function li(t, e) {
754
+ return t = Mn(t), q(t.getFullYear() % 100, e, 2);
755
+ }
756
+ function fi(t, e) {
757
+ return q(t.getFullYear() % 1e4, e, 4);
758
+ }
759
+ function di(t, e) {
760
+ var n = t.getDay();
761
+ return t = n >= 4 || n === 0 ? bt(t) : bt.ceil(t), q(t.getFullYear() % 1e4, e, 4);
762
+ }
763
+ function hi(t) {
764
+ var e = t.getTimezoneOffset();
765
+ return (e > 0 ? "-" : (e *= -1, "+")) + q(e / 60 | 0, "0", 2) + q(e % 60, "0", 2);
766
+ }
767
+ function Ge(t, e) {
768
+ return q(t.getUTCDate(), e, 2);
769
+ }
770
+ function mi(t, e) {
771
+ return q(t.getUTCHours(), e, 2);
772
+ }
773
+ function gi(t, e) {
774
+ return q(t.getUTCHours() % 12 || 12, e, 2);
775
+ }
776
+ function yi(t, e) {
777
+ return q(1 + _e.count(wt(t), t), e, 3);
778
+ }
779
+ function Cn(t, e) {
780
+ return q(t.getUTCMilliseconds(), e, 3);
781
+ }
782
+ function ki(t, e) {
783
+ return Cn(t, e) + "000";
784
+ }
785
+ function pi(t, e) {
786
+ return q(t.getUTCMonth() + 1, e, 2);
787
+ }
788
+ function vi(t, e) {
789
+ return q(t.getUTCMinutes(), e, 2);
790
+ }
791
+ function Ti(t, e) {
792
+ return q(t.getUTCSeconds(), e, 2);
793
+ }
794
+ function xi(t) {
795
+ var e = t.getUTCDay();
796
+ return e === 0 ? 7 : e;
797
+ }
798
+ function bi(t, e) {
799
+ return q(wn.count(wt(t) - 1, t), e, 2);
800
+ }
801
+ function Sn(t) {
802
+ var e = t.getUTCDay();
803
+ return e >= 4 || e === 0 ? It(t) : It.ceil(t);
804
+ }
805
+ function wi(t, e) {
806
+ return t = Sn(t), q(It.count(wt(t), t) + (wt(t).getUTCDay() === 4), e, 2);
807
+ }
808
+ function Di(t) {
809
+ return t.getUTCDay();
810
+ }
811
+ function Mi(t, e) {
812
+ return q(re.count(wt(t) - 1, t), e, 2);
813
+ }
814
+ function Ci(t, e) {
815
+ return q(t.getUTCFullYear() % 100, e, 2);
816
+ }
817
+ function Si(t, e) {
818
+ return t = Sn(t), q(t.getUTCFullYear() % 100, e, 2);
819
+ }
820
+ function _i(t, e) {
821
+ return q(t.getUTCFullYear() % 1e4, e, 4);
822
+ }
823
+ function Yi(t, e) {
824
+ var n = t.getUTCDay();
825
+ return t = n >= 4 || n === 0 ? It(t) : It.ceil(t), q(t.getUTCFullYear() % 1e4, e, 4);
826
+ }
827
+ function Fi() {
828
+ return "+0000";
829
+ }
830
+ function je() {
831
+ return "%";
832
+ }
833
+ function Qe(t) {
834
+ return +t;
835
+ }
836
+ function Je(t) {
837
+ return Math.floor(+t / 1e3);
838
+ }
839
+ var St, ie;
840
+ Ui({
841
+ dateTime: "%x, %X",
842
+ date: "%-m/%-d/%Y",
843
+ time: "%-I:%M:%S %p",
844
+ periods: ["AM", "PM"],
845
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
846
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
847
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
848
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
849
+ });
850
+ function Ui(t) {
851
+ return St = Ur(t), ie = St.format, St.parse, St.utcFormat, St.utcParse, St;
852
+ }
853
+ function Ei(t) {
854
+ return new Date(t);
855
+ }
856
+ function Ii(t) {
857
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
858
+ }
859
+ function _n(t, e, n, r, i, s, a, y, F, S) {
860
+ var w = Jn(), P = w.invert, _ = w.domain, Y = S(".%L"), X = S(":%S"), B = S("%I:%M"), v = S("%I %p"), U = S("%a %d"), R = S("%b %d"), E = S("%B"), z = S("%Y");
861
+ function G(T) {
862
+ return (F(T) < T ? Y : y(T) < T ? X : a(T) < T ? B : s(T) < T ? v : r(T) < T ? i(T) < T ? U : R : n(T) < T ? E : z)(T);
863
+ }
864
+ return w.invert = function(T) {
865
+ return new Date(P(T));
866
+ }, w.domain = function(T) {
867
+ return arguments.length ? _(Array.from(T, Ii)) : _().map(Ei);
868
+ }, w.ticks = function(T) {
869
+ var k = _();
870
+ return t(k[0], k[k.length - 1], T ?? 10);
871
+ }, w.tickFormat = function(T, k) {
872
+ return k == null ? G : S(k);
873
+ }, w.nice = function(T) {
874
+ var k = _();
875
+ return (!T || typeof T.range != "function") && (T = e(k[0], k[k.length - 1], T ?? 10)), T ? _(vr(k, T)) : w;
876
+ }, w.copy = function() {
877
+ return Kn(w, _n(t, e, n, r, i, s, a, y, F, S));
878
+ }, w;
879
+ }
880
+ function Li() {
881
+ return er.apply(_n(Yr, Fr, kt, Rt, zt, xt, Pt, Nt, vt, ie).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
882
+ }
883
+ var jt = { exports: {} }, Ai = jt.exports, Ke;
884
+ function Wi() {
885
+ return Ke || (Ke = 1, function(t, e) {
886
+ (function(n, r) {
887
+ t.exports = r();
888
+ })(Ai, function() {
889
+ var n = "day";
890
+ return function(r, i, s) {
891
+ var a = function(S) {
892
+ return S.add(4 - S.isoWeekday(), n);
893
+ }, y = i.prototype;
894
+ y.isoWeekYear = function() {
895
+ return a(this).year();
896
+ }, y.isoWeek = function(S) {
897
+ if (!this.$utils().u(S)) return this.add(7 * (S - this.isoWeek()), n);
898
+ var w, P, _, Y, X = a(this), B = (w = this.isoWeekYear(), P = this.$u, _ = (P ? s.utc : s)().year(w).startOf("year"), Y = 4 - _.isoWeekday(), _.isoWeekday() > 4 && (Y += 7), _.add(Y, n));
899
+ return X.diff(B, "week") + 1;
900
+ }, y.isoWeekday = function(S) {
901
+ return this.$utils().u(S) ? this.day() || 7 : this.day(this.day() % 7 ? S : S - 7);
902
+ };
903
+ var F = y.startOf;
904
+ y.startOf = function(S, w) {
905
+ var P = this.$utils(), _ = !!P.u(w) || w;
906
+ return P.p(S) === "isoweek" ? _ ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : F.bind(this)(S, w);
907
+ };
908
+ };
909
+ });
910
+ }(jt)), jt.exports;
911
+ }
912
+ var $i = Wi();
913
+ const Oi = /* @__PURE__ */ oe($i);
914
+ var Qt = { exports: {} }, Hi = Qt.exports, tn;
915
+ function Ni() {
916
+ return tn || (tn = 1, function(t, e) {
917
+ (function(n, r) {
918
+ t.exports = r();
919
+ })(Hi, function() {
920
+ 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, i = /\d/, s = /\d\d/, a = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, F = {}, S = function(v) {
921
+ return (v = +v) + (v > 68 ? 1900 : 2e3);
922
+ }, w = function(v) {
923
+ return function(U) {
924
+ this[v] = +U;
925
+ };
926
+ }, P = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
927
+ (this.zone || (this.zone = {})).offset = function(U) {
928
+ if (!U || U === "Z") return 0;
929
+ var R = U.match(/([+-]|\d\d)/g), E = 60 * R[1] + (+R[2] || 0);
930
+ return E === 0 ? 0 : R[0] === "+" ? -E : E;
931
+ }(v);
932
+ }], _ = function(v) {
933
+ var U = F[v];
934
+ return U && (U.indexOf ? U : U.s.concat(U.f));
935
+ }, Y = function(v, U) {
936
+ var R, E = F.meridiem;
937
+ if (E) {
938
+ for (var z = 1; z <= 24; z += 1) if (v.indexOf(E(z, 0, U)) > -1) {
939
+ R = z > 12;
940
+ break;
941
+ }
942
+ } else R = v === (U ? "pm" : "PM");
943
+ return R;
944
+ }, X = { A: [y, function(v) {
945
+ this.afternoon = Y(v, !1);
946
+ }], a: [y, function(v) {
947
+ this.afternoon = Y(v, !0);
948
+ }], Q: [i, function(v) {
949
+ this.month = 3 * (v - 1) + 1;
950
+ }], S: [i, function(v) {
951
+ this.milliseconds = 100 * +v;
952
+ }], SS: [s, function(v) {
953
+ this.milliseconds = 10 * +v;
954
+ }], SSS: [/\d{3}/, function(v) {
955
+ this.milliseconds = +v;
956
+ }], s: [a, w("seconds")], ss: [a, w("seconds")], m: [a, w("minutes")], mm: [a, w("minutes")], H: [a, w("hours")], h: [a, w("hours")], HH: [a, w("hours")], hh: [a, w("hours")], D: [a, w("day")], DD: [s, w("day")], Do: [y, function(v) {
957
+ var U = F.ordinal, R = v.match(/\d+/);
958
+ if (this.day = R[0], U) for (var E = 1; E <= 31; E += 1) U(E).replace(/\[|\]/g, "") === v && (this.day = E);
959
+ }], w: [a, w("week")], ww: [s, w("week")], M: [a, w("month")], MM: [s, w("month")], MMM: [y, function(v) {
960
+ var U = _("months"), R = (_("monthsShort") || U.map(function(E) {
961
+ return E.slice(0, 3);
962
+ })).indexOf(v) + 1;
963
+ if (R < 1) throw new Error();
964
+ this.month = R % 12 || R;
965
+ }], MMMM: [y, function(v) {
966
+ var U = _("months").indexOf(v) + 1;
967
+ if (U < 1) throw new Error();
968
+ this.month = U % 12 || U;
969
+ }], Y: [/[+-]?\d+/, w("year")], YY: [s, function(v) {
970
+ this.year = S(v);
971
+ }], YYYY: [/\d{4}/, w("year")], Z: P, ZZ: P };
972
+ function B(v) {
973
+ var U, R;
974
+ U = v, R = F && F.formats;
975
+ for (var E = (v = U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, C, M) {
976
+ var D = M && M.toUpperCase();
977
+ return C || R[M] || n[M] || R[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, g, b) {
978
+ return g || b.slice(1);
979
+ });
980
+ })).match(r), z = E.length, G = 0; G < z; G += 1) {
981
+ var T = E[G], k = X[T], p = k && k[0], L = k && k[1];
982
+ E[G] = L ? { regex: p, parser: L } : T.replace(/^\[|\]$/g, "");
983
+ }
984
+ return function(x) {
985
+ for (var C = {}, M = 0, D = 0; M < z; M += 1) {
986
+ var c = E[M];
987
+ if (typeof c == "string") D += c.length;
988
+ else {
989
+ var g = c.regex, b = c.parser, m = x.slice(D), I = g.exec(m)[0];
990
+ b.call(C, I), x = x.replace(I, "");
991
+ }
992
+ }
993
+ return function(o) {
994
+ var W = o.afternoon;
995
+ if (W !== void 0) {
996
+ var u = o.hours;
997
+ W ? u < 12 && (o.hours += 12) : u === 12 && (o.hours = 0), delete o.afternoon;
998
+ }
999
+ }(C), C;
1000
+ };
1001
+ }
1002
+ return function(v, U, R) {
1003
+ R.p.customParseFormat = !0, v && v.parseTwoDigitYear && (S = v.parseTwoDigitYear);
1004
+ var E = U.prototype, z = E.parse;
1005
+ E.parse = function(G) {
1006
+ var T = G.date, k = G.utc, p = G.args;
1007
+ this.$u = k;
1008
+ var L = p[1];
1009
+ if (typeof L == "string") {
1010
+ var x = p[2] === !0, C = p[3] === !0, M = x || C, D = p[2];
1011
+ C && (D = p[2]), F = this.$locale(), !x && D && (F = R.Ls[D]), this.$d = function(m, I, o, W) {
1012
+ try {
1013
+ if (["x", "X"].indexOf(I) > -1) return new Date((I === "X" ? 1e3 : 1) * m);
1014
+ var u = B(I)(m), K = u.year, l = u.month, $ = u.day, O = u.hours, j = u.minutes, H = u.seconds, J = u.milliseconds, h = u.zone, N = u.week, V = /* @__PURE__ */ new Date(), f = $ || (K || l ? 1 : V.getDate()), tt = K || V.getFullYear(), A = 0;
1015
+ K && !l || (A = l > 0 ? l - 1 : V.getMonth());
1016
+ var Q, Z = O || 0, st = j || 0, at = H || 0, pt = J || 0;
1017
+ return h ? new Date(Date.UTC(tt, A, f, Z, st, at, pt + 60 * h.offset * 1e3)) : o ? new Date(Date.UTC(tt, A, f, Z, st, at, pt)) : (Q = new Date(tt, A, f, Z, st, at, pt), N && (Q = W(Q).week(N).toDate()), Q);
1018
+ } catch {
1019
+ return /* @__PURE__ */ new Date("");
1020
+ }
1021
+ }(T, L, k, R), this.init(), D && D !== !0 && (this.$L = this.locale(D).$L), M && T != this.format(L) && (this.$d = /* @__PURE__ */ new Date("")), F = {};
1022
+ } else if (L instanceof Array) for (var c = L.length, g = 1; g <= c; g += 1) {
1023
+ p[1] = L[g - 1];
1024
+ var b = R.apply(this, p);
1025
+ if (b.isValid()) {
1026
+ this.$d = b.$d, this.$L = b.$L, this.init();
1027
+ break;
1028
+ }
1029
+ g === c && (this.$d = /* @__PURE__ */ new Date(""));
1030
+ }
1031
+ else z.call(this, G);
1032
+ };
1033
+ };
1034
+ });
1035
+ }(Qt)), Qt.exports;
1036
+ }
1037
+ var Pi = Ni();
1038
+ const Vi = /* @__PURE__ */ oe(Pi);
1039
+ var Jt = { exports: {} }, Ri = Jt.exports, en;
1040
+ function zi() {
1041
+ return en || (en = 1, function(t, e) {
1042
+ (function(n, r) {
1043
+ t.exports = r();
1044
+ })(Ri, function() {
1045
+ return function(n, r) {
1046
+ var i = r.prototype, s = i.format;
1047
+ i.format = function(a) {
1048
+ var y = this, F = this.$locale();
1049
+ if (!this.isValid()) return s.bind(this)(a);
1050
+ var S = this.$utils(), w = (a || "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(P) {
1051
+ switch (P) {
1052
+ case "Q":
1053
+ return Math.ceil((y.$M + 1) / 3);
1054
+ case "Do":
1055
+ return F.ordinal(y.$D);
1056
+ case "gggg":
1057
+ return y.weekYear();
1058
+ case "GGGG":
1059
+ return y.isoWeekYear();
1060
+ case "wo":
1061
+ return F.ordinal(y.week(), "W");
1062
+ case "w":
1063
+ case "ww":
1064
+ return S.s(y.week(), P === "w" ? 1 : 2, "0");
1065
+ case "W":
1066
+ case "WW":
1067
+ return S.s(y.isoWeek(), P === "W" ? 1 : 2, "0");
1068
+ case "k":
1069
+ case "kk":
1070
+ return S.s(String(y.$H === 0 ? 24 : y.$H), P === "k" ? 1 : 2, "0");
1071
+ case "X":
1072
+ return Math.floor(y.$d.getTime() / 1e3);
1073
+ case "x":
1074
+ return y.$d.getTime();
1075
+ case "z":
1076
+ return "[" + y.offsetName() + "]";
1077
+ case "zzz":
1078
+ return "[" + y.offsetName("long") + "]";
1079
+ default:
1080
+ return P;
1081
+ }
1082
+ });
1083
+ return s.bind(this)(w);
1084
+ };
1085
+ };
1086
+ });
1087
+ }(Jt)), Jt.exports;
1088
+ }
1089
+ var qi = zi();
1090
+ const Bi = /* @__PURE__ */ oe(qi);
1091
+ var Kt = { exports: {} }, Zi = Kt.exports, nn;
1092
+ function Xi() {
1093
+ return nn || (nn = 1, function(t, e) {
1094
+ (function(n, r) {
1095
+ t.exports = r();
1096
+ })(Zi, function() {
1097
+ var n, r, i = 1e3, s = 6e4, a = 36e5, y = 864e5, F = 31536e6, S = 2628e6, w = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, P = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, _ = { years: F, months: S, days: y, hours: a, minutes: s, seconds: i, milliseconds: 1, weeks: 6048e5 }, Y = function(T) {
1098
+ return T instanceof z;
1099
+ }, X = function(T, k, p) {
1100
+ return new z(T, p, k.$l);
1101
+ }, B = function(T) {
1102
+ return r.p(T) + "s";
1103
+ }, v = function(T) {
1104
+ return T < 0;
1105
+ }, U = function(T) {
1106
+ return v(T) ? Math.ceil(T) : Math.floor(T);
1107
+ }, R = function(T) {
1108
+ return Math.abs(T);
1109
+ }, E = function(T, k) {
1110
+ return T ? v(T) ? { negative: !0, format: "" + R(T) + k } : { negative: !1, format: "" + T + k } : { negative: !1, format: "" };
1111
+ }, z = function() {
1112
+ function T(p, L, x) {
1113
+ var C = this;
1114
+ if (this.$d = {}, this.$l = x, p === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), L) return X(p * _[B(L)], this);
1115
+ if (typeof p == "number") return this.$ms = p, this.parseFromMilliseconds(), this;
1116
+ if (typeof p == "object") return Object.keys(p).forEach(function(c) {
1117
+ C.$d[B(c)] = p[c];
1118
+ }), this.calMilliseconds(), this;
1119
+ if (typeof p == "string") {
1120
+ var M = p.match(w);
1121
+ if (M) {
1122
+ var D = M.slice(2).map(function(c) {
1123
+ return c != null ? Number(c) : 0;
1124
+ });
1125
+ return this.$d.years = D[0], this.$d.months = D[1], this.$d.weeks = D[2], this.$d.days = D[3], this.$d.hours = D[4], this.$d.minutes = D[5], this.$d.seconds = D[6], this.calMilliseconds(), this;
1126
+ }
1127
+ }
1128
+ return this;
1129
+ }
1130
+ var k = T.prototype;
1131
+ return k.calMilliseconds = function() {
1132
+ var p = this;
1133
+ this.$ms = Object.keys(this.$d).reduce(function(L, x) {
1134
+ return L + (p.$d[x] || 0) * _[x];
1135
+ }, 0);
1136
+ }, k.parseFromMilliseconds = function() {
1137
+ var p = this.$ms;
1138
+ this.$d.years = U(p / F), p %= F, this.$d.months = U(p / S), p %= S, this.$d.days = U(p / y), p %= y, this.$d.hours = U(p / a), p %= a, this.$d.minutes = U(p / s), p %= s, this.$d.seconds = U(p / i), p %= i, this.$d.milliseconds = p;
1139
+ }, k.toISOString = function() {
1140
+ var p = E(this.$d.years, "Y"), L = E(this.$d.months, "M"), x = +this.$d.days || 0;
1141
+ this.$d.weeks && (x += 7 * this.$d.weeks);
1142
+ var C = E(x, "D"), M = E(this.$d.hours, "H"), D = E(this.$d.minutes, "M"), c = this.$d.seconds || 0;
1143
+ this.$d.milliseconds && (c += this.$d.milliseconds / 1e3, c = Math.round(1e3 * c) / 1e3);
1144
+ var g = E(c, "S"), b = p.negative || L.negative || C.negative || M.negative || D.negative || g.negative, m = M.format || D.format || g.format ? "T" : "", I = (b ? "-" : "") + "P" + p.format + L.format + C.format + m + M.format + D.format + g.format;
1145
+ return I === "P" || I === "-P" ? "P0D" : I;
1146
+ }, k.toJSON = function() {
1147
+ return this.toISOString();
1148
+ }, k.format = function(p) {
1149
+ var L = p || "YYYY-MM-DDTHH:mm:ss", x = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
1150
+ return L.replace(P, function(C, M) {
1151
+ return M || String(x[C]);
1152
+ });
1153
+ }, k.as = function(p) {
1154
+ return this.$ms / _[B(p)];
1155
+ }, k.get = function(p) {
1156
+ var L = this.$ms, x = B(p);
1157
+ return x === "milliseconds" ? L %= 1e3 : L = x === "weeks" ? U(L / _[x]) : this.$d[x], L || 0;
1158
+ }, k.add = function(p, L, x) {
1159
+ var C;
1160
+ return C = L ? p * _[B(L)] : Y(p) ? p.$ms : X(p, this).$ms, X(this.$ms + C * (x ? -1 : 1), this);
1161
+ }, k.subtract = function(p, L) {
1162
+ return this.add(p, L, !0);
1163
+ }, k.locale = function(p) {
1164
+ var L = this.clone();
1165
+ return L.$l = p, L;
1166
+ }, k.clone = function() {
1167
+ return X(this.$ms, this);
1168
+ }, k.humanize = function(p) {
1169
+ return n().add(this.$ms, "ms").locale(this.$l).fromNow(!p);
1170
+ }, k.valueOf = function() {
1171
+ return this.asMilliseconds();
1172
+ }, k.milliseconds = function() {
1173
+ return this.get("milliseconds");
1174
+ }, k.asMilliseconds = function() {
1175
+ return this.as("milliseconds");
1176
+ }, k.seconds = function() {
1177
+ return this.get("seconds");
1178
+ }, k.asSeconds = function() {
1179
+ return this.as("seconds");
1180
+ }, k.minutes = function() {
1181
+ return this.get("minutes");
1182
+ }, k.asMinutes = function() {
1183
+ return this.as("minutes");
1184
+ }, k.hours = function() {
1185
+ return this.get("hours");
1186
+ }, k.asHours = function() {
1187
+ return this.as("hours");
1188
+ }, k.days = function() {
1189
+ return this.get("days");
1190
+ }, k.asDays = function() {
1191
+ return this.as("days");
1192
+ }, k.weeks = function() {
1193
+ return this.get("weeks");
1194
+ }, k.asWeeks = function() {
1195
+ return this.as("weeks");
1196
+ }, k.months = function() {
1197
+ return this.get("months");
1198
+ }, k.asMonths = function() {
1199
+ return this.as("months");
1200
+ }, k.years = function() {
1201
+ return this.get("years");
1202
+ }, k.asYears = function() {
1203
+ return this.as("years");
1204
+ }, T;
1205
+ }(), G = function(T, k, p) {
1206
+ return T.add(k.years() * p, "y").add(k.months() * p, "M").add(k.days() * p, "d").add(k.hours() * p, "h").add(k.minutes() * p, "m").add(k.seconds() * p, "s").add(k.milliseconds() * p, "ms");
1207
+ };
1208
+ return function(T, k, p) {
1209
+ n = p, r = p().$utils(), p.duration = function(C, M) {
1210
+ var D = p.locale();
1211
+ return X(C, { $l: D }, M);
1212
+ }, p.isDuration = Y;
1213
+ var L = k.prototype.add, x = k.prototype.subtract;
1214
+ k.prototype.add = function(C, M) {
1215
+ return Y(C) ? G(this, C, 1) : L.bind(this)(C, M);
1216
+ }, k.prototype.subtract = function(C, M) {
1217
+ return Y(C) ? G(this, C, -1) : x.bind(this)(C, M);
1218
+ };
1219
+ };
1220
+ });
1221
+ }(Kt)), Kt.exports;
1222
+ }
1223
+ var Gi = Xi();
1224
+ const ji = /* @__PURE__ */ oe(Gi);
1225
+ var we = function() {
1226
+ var t = /* @__PURE__ */ d(function(D, c, g, b) {
1227
+ for (g = g || {}, b = D.length; b--; g[D[b]] = c) ;
1228
+ return g;
1229
+ }, "o"), e = [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], i = [1, 28], s = [1, 29], a = [1, 30], y = [1, 31], F = [1, 32], S = [1, 33], w = [1, 34], P = [1, 9], _ = [1, 10], Y = [1, 11], X = [1, 12], B = [1, 13], v = [1, 14], U = [1, 15], R = [1, 16], E = [1, 19], z = [1, 20], G = [1, 21], T = [1, 22], k = [1, 23], p = [1, 25], L = [1, 35], x = {
1230
+ trace: /* @__PURE__ */ d(function() {
1231
+ }, "trace"),
1232
+ yy: {},
1233
+ 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 },
1234
+ 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" },
1235
+ 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]],
1236
+ performAction: /* @__PURE__ */ d(function(c, g, b, m, I, o, W) {
1237
+ var u = o.length - 1;
1238
+ switch (I) {
1239
+ case 1:
1240
+ return o[u - 1];
1241
+ case 2:
1242
+ this.$ = [];
1243
+ break;
1244
+ case 3:
1245
+ o[u - 1].push(o[u]), this.$ = o[u - 1];
1246
+ break;
1247
+ case 4:
1248
+ case 5:
1249
+ this.$ = o[u];
1250
+ break;
1251
+ case 6:
1252
+ case 7:
1253
+ this.$ = [];
1254
+ break;
1255
+ case 8:
1256
+ m.setWeekday("monday");
1257
+ break;
1258
+ case 9:
1259
+ m.setWeekday("tuesday");
1260
+ break;
1261
+ case 10:
1262
+ m.setWeekday("wednesday");
1263
+ break;
1264
+ case 11:
1265
+ m.setWeekday("thursday");
1266
+ break;
1267
+ case 12:
1268
+ m.setWeekday("friday");
1269
+ break;
1270
+ case 13:
1271
+ m.setWeekday("saturday");
1272
+ break;
1273
+ case 14:
1274
+ m.setWeekday("sunday");
1275
+ break;
1276
+ case 15:
1277
+ m.setWeekend("friday");
1278
+ break;
1279
+ case 16:
1280
+ m.setWeekend("saturday");
1281
+ break;
1282
+ case 17:
1283
+ m.setDateFormat(o[u].substr(11)), this.$ = o[u].substr(11);
1284
+ break;
1285
+ case 18:
1286
+ m.enableInclusiveEndDates(), this.$ = o[u].substr(18);
1287
+ break;
1288
+ case 19:
1289
+ m.TopAxis(), this.$ = o[u].substr(8);
1290
+ break;
1291
+ case 20:
1292
+ m.setAxisFormat(o[u].substr(11)), this.$ = o[u].substr(11);
1293
+ break;
1294
+ case 21:
1295
+ m.setTickInterval(o[u].substr(13)), this.$ = o[u].substr(13);
1296
+ break;
1297
+ case 22:
1298
+ m.setExcludes(o[u].substr(9)), this.$ = o[u].substr(9);
1299
+ break;
1300
+ case 23:
1301
+ m.setIncludes(o[u].substr(9)), this.$ = o[u].substr(9);
1302
+ break;
1303
+ case 24:
1304
+ m.setTodayMarker(o[u].substr(12)), this.$ = o[u].substr(12);
1305
+ break;
1306
+ case 27:
1307
+ m.setDiagramTitle(o[u].substr(6)), this.$ = o[u].substr(6);
1308
+ break;
1309
+ case 28:
1310
+ this.$ = o[u].trim(), m.setAccTitle(this.$);
1311
+ break;
1312
+ case 29:
1313
+ case 30:
1314
+ this.$ = o[u].trim(), m.setAccDescription(this.$);
1315
+ break;
1316
+ case 31:
1317
+ m.addSection(o[u].substr(8)), this.$ = o[u].substr(8);
1318
+ break;
1319
+ case 33:
1320
+ m.addTask(o[u - 1], o[u]), this.$ = "task";
1321
+ break;
1322
+ case 34:
1323
+ this.$ = o[u - 1], m.setClickEvent(o[u - 1], o[u], null);
1324
+ break;
1325
+ case 35:
1326
+ this.$ = o[u - 2], m.setClickEvent(o[u - 2], o[u - 1], o[u]);
1327
+ break;
1328
+ case 36:
1329
+ this.$ = o[u - 2], m.setClickEvent(o[u - 2], o[u - 1], null), m.setLink(o[u - 2], o[u]);
1330
+ break;
1331
+ case 37:
1332
+ this.$ = o[u - 3], m.setClickEvent(o[u - 3], o[u - 2], o[u - 1]), m.setLink(o[u - 3], o[u]);
1333
+ break;
1334
+ case 38:
1335
+ this.$ = o[u - 2], m.setClickEvent(o[u - 2], o[u], null), m.setLink(o[u - 2], o[u - 1]);
1336
+ break;
1337
+ case 39:
1338
+ this.$ = o[u - 3], m.setClickEvent(o[u - 3], o[u - 1], o[u]), m.setLink(o[u - 3], o[u - 2]);
1339
+ break;
1340
+ case 40:
1341
+ this.$ = o[u - 1], m.setLink(o[u - 1], o[u]);
1342
+ break;
1343
+ case 41:
1344
+ case 47:
1345
+ this.$ = o[u - 1] + " " + o[u];
1346
+ break;
1347
+ case 42:
1348
+ case 43:
1349
+ case 45:
1350
+ this.$ = o[u - 2] + " " + o[u - 1] + " " + o[u];
1351
+ break;
1352
+ case 44:
1353
+ case 46:
1354
+ this.$ = o[u - 3] + " " + o[u - 2] + " " + o[u - 1] + " " + o[u];
1355
+ break;
1356
+ }
1357
+ }, "anonymous"),
1358
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: i, 15: s, 16: a, 17: y, 18: F, 19: 18, 20: S, 21: w, 22: P, 23: _, 24: Y, 25: X, 26: B, 27: v, 28: U, 29: R, 30: E, 31: z, 33: G, 35: T, 36: k, 37: 24, 38: p, 40: L }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: i, 15: s, 16: a, 17: y, 18: F, 19: 18, 20: S, 21: w, 22: P, 23: _, 24: Y, 25: X, 26: B, 27: v, 28: U, 29: R, 30: E, 31: z, 33: G, 35: T, 36: k, 37: 24, 38: p, 40: L }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
1359
+ defaultActions: {},
1360
+ parseError: /* @__PURE__ */ d(function(c, g) {
1361
+ if (g.recoverable)
1362
+ this.trace(c);
1363
+ else {
1364
+ var b = new Error(c);
1365
+ throw b.hash = g, b;
1366
+ }
1367
+ }, "parseError"),
1368
+ parse: /* @__PURE__ */ d(function(c) {
1369
+ var g = this, b = [0], m = [], I = [null], o = [], W = this.table, u = "", K = 0, l = 0, $ = 2, O = 1, j = o.slice.call(arguments, 1), H = Object.create(this.lexer), J = { yy: {} };
1370
+ for (var h in this.yy)
1371
+ Object.prototype.hasOwnProperty.call(this.yy, h) && (J.yy[h] = this.yy[h]);
1372
+ H.setInput(c, J.yy), J.yy.lexer = H, J.yy.parser = this, typeof H.yylloc > "u" && (H.yylloc = {});
1373
+ var N = H.yylloc;
1374
+ o.push(N);
1375
+ var V = H.options && H.options.ranges;
1376
+ typeof J.yy.parseError == "function" ? this.parseError = J.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1377
+ function f(ot) {
1378
+ b.length = b.length - 2 * ot, I.length = I.length - ot, o.length = o.length - ot;
1379
+ }
1380
+ d(f, "popStack");
1381
+ function tt() {
1382
+ var ot;
1383
+ return ot = m.pop() || H.lex() || O, typeof ot != "number" && (ot instanceof Array && (m = ot, ot = m.pop()), ot = g.symbols_[ot] || ot), ot;
1384
+ }
1385
+ d(tt, "lex");
1386
+ for (var A, Q, Z, st, at = {}, pt, ut, He, Bt; ; ) {
1387
+ if (Q = b[b.length - 1], this.defaultActions[Q] ? Z = this.defaultActions[Q] : ((A === null || typeof A > "u") && (A = tt()), Z = W[Q] && W[Q][A]), typeof Z > "u" || !Z.length || !Z[0]) {
1388
+ var ce = "";
1389
+ Bt = [];
1390
+ for (pt in W[Q])
1391
+ this.terminals_[pt] && pt > $ && Bt.push("'" + this.terminals_[pt] + "'");
1392
+ H.showPosition ? ce = "Parse error on line " + (K + 1) + `:
1393
+ ` + H.showPosition() + `
1394
+ Expecting ` + Bt.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ce = "Parse error on line " + (K + 1) + ": Unexpected " + (A == O ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(ce, {
1395
+ text: H.match,
1396
+ token: this.terminals_[A] || A,
1397
+ line: H.yylineno,
1398
+ loc: N,
1399
+ expected: Bt
1400
+ });
1401
+ }
1402
+ if (Z[0] instanceof Array && Z.length > 1)
1403
+ throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + A);
1404
+ switch (Z[0]) {
1405
+ case 1:
1406
+ b.push(A), I.push(H.yytext), o.push(H.yylloc), b.push(Z[1]), A = null, l = H.yyleng, u = H.yytext, K = H.yylineno, N = H.yylloc;
1407
+ break;
1408
+ case 2:
1409
+ if (ut = this.productions_[Z[1]][1], at.$ = I[I.length - ut], at._$ = {
1410
+ first_line: o[o.length - (ut || 1)].first_line,
1411
+ last_line: o[o.length - 1].last_line,
1412
+ first_column: o[o.length - (ut || 1)].first_column,
1413
+ last_column: o[o.length - 1].last_column
1414
+ }, V && (at._$.range = [
1415
+ o[o.length - (ut || 1)].range[0],
1416
+ o[o.length - 1].range[1]
1417
+ ]), st = this.performAction.apply(at, [
1418
+ u,
1419
+ l,
1420
+ K,
1421
+ J.yy,
1422
+ Z[1],
1423
+ I,
1424
+ o
1425
+ ].concat(j)), typeof st < "u")
1426
+ return st;
1427
+ ut && (b = b.slice(0, -1 * ut * 2), I = I.slice(0, -1 * ut), o = o.slice(0, -1 * ut)), b.push(this.productions_[Z[1]][0]), I.push(at.$), o.push(at._$), He = W[b[b.length - 2]][b[b.length - 1]], b.push(He);
1428
+ break;
1429
+ case 3:
1430
+ return !0;
1431
+ }
1432
+ }
1433
+ return !0;
1434
+ }, "parse")
1435
+ }, C = /* @__PURE__ */ function() {
1436
+ var D = {
1437
+ EOF: 1,
1438
+ parseError: /* @__PURE__ */ d(function(g, b) {
1439
+ if (this.yy.parser)
1440
+ this.yy.parser.parseError(g, b);
1441
+ else
1442
+ throw new Error(g);
1443
+ }, "parseError"),
1444
+ // resets the lexer, sets new input
1445
+ setInput: /* @__PURE__ */ d(function(c, g) {
1446
+ return this.yy = g || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1447
+ first_line: 1,
1448
+ first_column: 0,
1449
+ last_line: 1,
1450
+ last_column: 0
1451
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1452
+ }, "setInput"),
1453
+ // consumes and returns one char from the input
1454
+ input: /* @__PURE__ */ d(function() {
1455
+ var c = this._input[0];
1456
+ this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
1457
+ var g = c.match(/(?:\r\n?|\n).*/g);
1458
+ return g ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
1459
+ }, "input"),
1460
+ // unshifts one char (or a string) into the input
1461
+ unput: /* @__PURE__ */ d(function(c) {
1462
+ var g = c.length, b = c.split(/(?:\r\n?|\n)/g);
1463
+ this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - g), this.offset -= g;
1464
+ var m = this.match.split(/(?:\r\n?|\n)/g);
1465
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1466
+ var I = this.yylloc.range;
1467
+ return this.yylloc = {
1468
+ first_line: this.yylloc.first_line,
1469
+ last_line: this.yylineno + 1,
1470
+ first_column: this.yylloc.first_column,
1471
+ last_column: b ? (b.length === m.length ? this.yylloc.first_column : 0) + m[m.length - b.length].length - b[0].length : this.yylloc.first_column - g
1472
+ }, this.options.ranges && (this.yylloc.range = [I[0], I[0] + this.yyleng - g]), this.yyleng = this.yytext.length, this;
1473
+ }, "unput"),
1474
+ // When called from action, caches matched text and appends it on next action
1475
+ more: /* @__PURE__ */ d(function() {
1476
+ return this._more = !0, this;
1477
+ }, "more"),
1478
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1479
+ reject: /* @__PURE__ */ d(function() {
1480
+ if (this.options.backtrack_lexer)
1481
+ this._backtrack = !0;
1482
+ else
1483
+ 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).
1484
+ ` + this.showPosition(), {
1485
+ text: "",
1486
+ token: null,
1487
+ line: this.yylineno
1488
+ });
1489
+ return this;
1490
+ }, "reject"),
1491
+ // retain first n characters of the match
1492
+ less: /* @__PURE__ */ d(function(c) {
1493
+ this.unput(this.match.slice(c));
1494
+ }, "less"),
1495
+ // displays already matched input, i.e. for error messages
1496
+ pastInput: /* @__PURE__ */ d(function() {
1497
+ var c = this.matched.substr(0, this.matched.length - this.match.length);
1498
+ return (c.length > 20 ? "..." : "") + c.substr(-20).replace(/\n/g, "");
1499
+ }, "pastInput"),
1500
+ // displays upcoming input, i.e. for error messages
1501
+ upcomingInput: /* @__PURE__ */ d(function() {
1502
+ var c = this.match;
1503
+ return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.length > 20 ? "..." : "")).replace(/\n/g, "");
1504
+ }, "upcomingInput"),
1505
+ // displays the character position where the lexing error occurred, i.e. for error messages
1506
+ showPosition: /* @__PURE__ */ d(function() {
1507
+ var c = this.pastInput(), g = new Array(c.length + 1).join("-");
1508
+ return c + this.upcomingInput() + `
1509
+ ` + g + "^";
1510
+ }, "showPosition"),
1511
+ // test the lexed token: return FALSE when not a match, otherwise return token
1512
+ test_match: /* @__PURE__ */ d(function(c, g) {
1513
+ var b, m, I;
1514
+ if (this.options.backtrack_lexer && (I = {
1515
+ yylineno: this.yylineno,
1516
+ yylloc: {
1517
+ first_line: this.yylloc.first_line,
1518
+ last_line: this.last_line,
1519
+ first_column: this.yylloc.first_column,
1520
+ last_column: this.yylloc.last_column
1521
+ },
1522
+ yytext: this.yytext,
1523
+ match: this.match,
1524
+ matches: this.matches,
1525
+ matched: this.matched,
1526
+ yyleng: this.yyleng,
1527
+ offset: this.offset,
1528
+ _more: this._more,
1529
+ _input: this._input,
1530
+ yy: this.yy,
1531
+ conditionStack: this.conditionStack.slice(0),
1532
+ done: this.done
1533
+ }, this.options.ranges && (I.yylloc.range = this.yylloc.range.slice(0))), m = c[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
1534
+ first_line: this.yylloc.last_line,
1535
+ last_line: this.yylineno + 1,
1536
+ first_column: this.yylloc.last_column,
1537
+ last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
1538
+ }, this.yytext += c[0], this.match += c[0], this.matches = c, 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(c[0].length), this.matched += c[0], b = this.performAction.call(this, this.yy, this, g, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
1539
+ return b;
1540
+ if (this._backtrack) {
1541
+ for (var o in I)
1542
+ this[o] = I[o];
1543
+ return !1;
1544
+ }
1545
+ return !1;
1546
+ }, "test_match"),
1547
+ // return next match in input
1548
+ next: /* @__PURE__ */ d(function() {
1549
+ if (this.done)
1550
+ return this.EOF;
1551
+ this._input || (this.done = !0);
1552
+ var c, g, b, m;
1553
+ this._more || (this.yytext = "", this.match = "");
1554
+ for (var I = this._currentRules(), o = 0; o < I.length; o++)
1555
+ if (b = this._input.match(this.rules[I[o]]), b && (!g || b[0].length > g[0].length)) {
1556
+ if (g = b, m = o, this.options.backtrack_lexer) {
1557
+ if (c = this.test_match(b, I[o]), c !== !1)
1558
+ return c;
1559
+ if (this._backtrack) {
1560
+ g = !1;
1561
+ continue;
1562
+ } else
1563
+ return !1;
1564
+ } else if (!this.options.flex)
1565
+ break;
1566
+ }
1567
+ return g ? (c = this.test_match(g, I[m]), c !== !1 ? c : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1568
+ ` + this.showPosition(), {
1569
+ text: "",
1570
+ token: null,
1571
+ line: this.yylineno
1572
+ });
1573
+ }, "next"),
1574
+ // return next match that has a token
1575
+ lex: /* @__PURE__ */ d(function() {
1576
+ var g = this.next();
1577
+ return g || this.lex();
1578
+ }, "lex"),
1579
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1580
+ begin: /* @__PURE__ */ d(function(g) {
1581
+ this.conditionStack.push(g);
1582
+ }, "begin"),
1583
+ // pop the previously active lexer condition state off the condition stack
1584
+ popState: /* @__PURE__ */ d(function() {
1585
+ var g = this.conditionStack.length - 1;
1586
+ return g > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1587
+ }, "popState"),
1588
+ // produce the lexer rule set which is active for the currently active lexer condition state
1589
+ _currentRules: /* @__PURE__ */ d(function() {
1590
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1591
+ }, "_currentRules"),
1592
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1593
+ topState: /* @__PURE__ */ d(function(g) {
1594
+ return g = this.conditionStack.length - 1 - Math.abs(g || 0), g >= 0 ? this.conditionStack[g] : "INITIAL";
1595
+ }, "topState"),
1596
+ // alias for begin(condition)
1597
+ pushState: /* @__PURE__ */ d(function(g) {
1598
+ this.begin(g);
1599
+ }, "pushState"),
1600
+ // return the number of states currently on the stack
1601
+ stateStackSize: /* @__PURE__ */ d(function() {
1602
+ return this.conditionStack.length;
1603
+ }, "stateStackSize"),
1604
+ options: { "case-insensitive": !0 },
1605
+ performAction: /* @__PURE__ */ d(function(g, b, m, I) {
1606
+ switch (m) {
1607
+ case 0:
1608
+ return this.begin("open_directive"), "open_directive";
1609
+ case 1:
1610
+ return this.begin("acc_title"), 31;
1611
+ case 2:
1612
+ return this.popState(), "acc_title_value";
1613
+ case 3:
1614
+ return this.begin("acc_descr"), 33;
1615
+ case 4:
1616
+ return this.popState(), "acc_descr_value";
1617
+ case 5:
1618
+ this.begin("acc_descr_multiline");
1619
+ break;
1620
+ case 6:
1621
+ this.popState();
1622
+ break;
1623
+ case 7:
1624
+ return "acc_descr_multiline_value";
1625
+ case 8:
1626
+ break;
1627
+ case 9:
1628
+ break;
1629
+ case 10:
1630
+ break;
1631
+ case 11:
1632
+ return 10;
1633
+ case 12:
1634
+ break;
1635
+ case 13:
1636
+ break;
1637
+ case 14:
1638
+ this.begin("href");
1639
+ break;
1640
+ case 15:
1641
+ this.popState();
1642
+ break;
1643
+ case 16:
1644
+ return 43;
1645
+ case 17:
1646
+ this.begin("callbackname");
1647
+ break;
1648
+ case 18:
1649
+ this.popState();
1650
+ break;
1651
+ case 19:
1652
+ this.popState(), this.begin("callbackargs");
1653
+ break;
1654
+ case 20:
1655
+ return 41;
1656
+ case 21:
1657
+ this.popState();
1658
+ break;
1659
+ case 22:
1660
+ return 42;
1661
+ case 23:
1662
+ this.begin("click");
1663
+ break;
1664
+ case 24:
1665
+ this.popState();
1666
+ break;
1667
+ case 25:
1668
+ return 40;
1669
+ case 26:
1670
+ return 4;
1671
+ case 27:
1672
+ return 22;
1673
+ case 28:
1674
+ return 23;
1675
+ case 29:
1676
+ return 24;
1677
+ case 30:
1678
+ return 25;
1679
+ case 31:
1680
+ return 26;
1681
+ case 32:
1682
+ return 28;
1683
+ case 33:
1684
+ return 27;
1685
+ case 34:
1686
+ return 29;
1687
+ case 35:
1688
+ return 12;
1689
+ case 36:
1690
+ return 13;
1691
+ case 37:
1692
+ return 14;
1693
+ case 38:
1694
+ return 15;
1695
+ case 39:
1696
+ return 16;
1697
+ case 40:
1698
+ return 17;
1699
+ case 41:
1700
+ return 18;
1701
+ case 42:
1702
+ return 20;
1703
+ case 43:
1704
+ return 21;
1705
+ case 44:
1706
+ return "date";
1707
+ case 45:
1708
+ return 30;
1709
+ case 46:
1710
+ return "accDescription";
1711
+ case 47:
1712
+ return 36;
1713
+ case 48:
1714
+ return 38;
1715
+ case 49:
1716
+ return 39;
1717
+ case 50:
1718
+ return ":";
1719
+ case 51:
1720
+ return 6;
1721
+ case 52:
1722
+ return "INVALID";
1723
+ }
1724
+ }, "anonymous"),
1725
+ 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],
1726
+ 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 } }
1727
+ };
1728
+ return D;
1729
+ }();
1730
+ x.lexer = C;
1731
+ function M() {
1732
+ this.yy = {};
1733
+ }
1734
+ return d(M, "Parser"), M.prototype = x, x.Parser = M, new M();
1735
+ }();
1736
+ we.parser = we;
1737
+ var Qi = we;
1738
+ it.extend(Oi);
1739
+ it.extend(Vi);
1740
+ it.extend(Bi);
1741
+ var rn = { friday: 5, saturday: 6 }, lt = "", Ye = "", Fe = void 0, Ue = "", Lt = [], At = [], Ee = /* @__PURE__ */ new Map(), Ie = [], se = [], Wt = "", Le = "", Yn = ["active", "done", "crit", "milestone", "vert"], Ae = [], _t = "", qt = !1, We = !1, $e = "sunday", ae = "saturday", De = 0, Ji = /* @__PURE__ */ d(function() {
1742
+ Ie = [], se = [], Wt = "", Ae = [], te = 0, Ce = void 0, ee = void 0, et = [], lt = "", Ye = "", Le = "", Fe = void 0, Ue = "", Lt = [], At = [], qt = !1, We = !1, De = 0, Ee = /* @__PURE__ */ new Map(), _t = "", Zn(), $e = "sunday", ae = "saturday";
1743
+ }, "clear"), Ki = /* @__PURE__ */ d(function(t) {
1744
+ _t = t;
1745
+ }, "setDiagramId"), ts = /* @__PURE__ */ d(function(t) {
1746
+ Ye = t;
1747
+ }, "setAxisFormat"), es = /* @__PURE__ */ d(function() {
1748
+ return Ye;
1749
+ }, "getAxisFormat"), ns = /* @__PURE__ */ d(function(t) {
1750
+ Fe = t;
1751
+ }, "setTickInterval"), rs = /* @__PURE__ */ d(function() {
1752
+ return Fe;
1753
+ }, "getTickInterval"), is = /* @__PURE__ */ d(function(t) {
1754
+ Ue = t;
1755
+ }, "setTodayMarker"), ss = /* @__PURE__ */ d(function() {
1756
+ return Ue;
1757
+ }, "getTodayMarker"), as = /* @__PURE__ */ d(function(t) {
1758
+ lt = t;
1759
+ }, "setDateFormat"), os = /* @__PURE__ */ d(function() {
1760
+ qt = !0;
1761
+ }, "enableInclusiveEndDates"), cs = /* @__PURE__ */ d(function() {
1762
+ return qt;
1763
+ }, "endDatesAreInclusive"), us = /* @__PURE__ */ d(function() {
1764
+ We = !0;
1765
+ }, "enableTopAxis"), ls = /* @__PURE__ */ d(function() {
1766
+ return We;
1767
+ }, "topAxisEnabled"), fs = /* @__PURE__ */ d(function(t) {
1768
+ Le = t;
1769
+ }, "setDisplayMode"), ds = /* @__PURE__ */ d(function() {
1770
+ return Le;
1771
+ }, "getDisplayMode"), hs = /* @__PURE__ */ d(function() {
1772
+ return lt;
1773
+ }, "getDateFormat"), Fn = /* @__PURE__ */ d((t, e) => {
1774
+ const n = e.toLowerCase().split(/[\s,]+/).filter((r) => r !== "");
1775
+ return [.../* @__PURE__ */ new Set([...t, ...n])];
1776
+ }, "mergeTokens"), ms = /* @__PURE__ */ d(function(t) {
1777
+ Lt = Fn(Lt, t);
1778
+ }, "setIncludes"), gs = /* @__PURE__ */ d(function() {
1779
+ return Lt;
1780
+ }, "getIncludes"), ys = /* @__PURE__ */ d(function(t) {
1781
+ At = Fn(At, t);
1782
+ }, "setExcludes"), ks = /* @__PURE__ */ d(function() {
1783
+ return At;
1784
+ }, "getExcludes"), ps = /* @__PURE__ */ d(function() {
1785
+ return Ee;
1786
+ }, "getLinks"), vs = /* @__PURE__ */ d(function(t) {
1787
+ Wt = t, Ie.push(t);
1788
+ }, "addSection"), Ts = /* @__PURE__ */ d(function() {
1789
+ return Ie;
1790
+ }, "getSections"), xs = /* @__PURE__ */ d(function() {
1791
+ let t = sn();
1792
+ const e = 10;
1793
+ let n = 0;
1794
+ for (; !t && n < e; )
1795
+ t = sn(), n++;
1796
+ return se = et, se;
1797
+ }, "getTasks"), Un = /* @__PURE__ */ d(function(t, e, n, r) {
1798
+ const i = t.format(e.trim()), s = t.format("YYYY-MM-DD");
1799
+ return r.includes(i) || r.includes(s) ? !1 : n.includes("weekends") && (t.isoWeekday() === rn[ae] || t.isoWeekday() === rn[ae] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(i) || n.includes(s);
1800
+ }, "isInvalidDate"), bs = /* @__PURE__ */ d(function(t) {
1801
+ $e = t;
1802
+ }, "setWeekday"), ws = /* @__PURE__ */ d(function() {
1803
+ return $e;
1804
+ }, "getWeekday"), Ds = /* @__PURE__ */ d(function(t) {
1805
+ ae = t;
1806
+ }, "setWeekend"), En = /* @__PURE__ */ d(function(t, e, n, r) {
1807
+ if (!n.length || t.manualEndTime)
1808
+ return;
1809
+ let i;
1810
+ t.startTime instanceof Date ? i = it(t.startTime) : i = it(t.startTime, e, !0), i = i.add(1, "d");
1811
+ let s;
1812
+ t.endTime instanceof Date ? s = it(t.endTime) : s = it(t.endTime, e, !0);
1813
+ const [a, y] = Ms(
1814
+ i,
1815
+ s,
1816
+ e,
1817
+ n,
1818
+ r
1819
+ );
1820
+ t.endTime = a.toDate(), t.renderEndTime = y;
1821
+ }, "checkTaskDates"), Ms = /* @__PURE__ */ d(function(t, e, n, r, i) {
1822
+ let s = !1, a = null;
1823
+ const y = e.add(1e4, "d");
1824
+ for (; t <= e; ) {
1825
+ if (s || (a = e.toDate()), s = Un(t, n, r, i), s && (e = e.add(1, "d"), e > y))
1826
+ throw new Error(
1827
+ "Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations."
1828
+ );
1829
+ t = t.add(1, "d");
1830
+ }
1831
+ return [e, a];
1832
+ }, "fixTaskDates"), Me = /* @__PURE__ */ d(function(t, e, n) {
1833
+ if (n = n.trim(), (/* @__PURE__ */ d((y) => {
1834
+ const F = y.trim();
1835
+ return F === "x" || F === "X";
1836
+ }, "isTimestampFormat"))(e) && /^\d+$/.test(n))
1837
+ return new Date(Number(n));
1838
+ const s = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
1839
+ if (s !== null) {
1840
+ let y = null;
1841
+ for (const S of s.groups.ids.split(" ")) {
1842
+ let w = Ct(S);
1843
+ w !== void 0 && (!y || w.endTime > y.endTime) && (y = w);
1844
+ }
1845
+ if (y)
1846
+ return y.endTime;
1847
+ const F = /* @__PURE__ */ new Date();
1848
+ return F.setHours(0, 0, 0, 0), F;
1849
+ }
1850
+ let a = it(n, e.trim(), !0);
1851
+ if (a.isValid())
1852
+ return a.toDate();
1853
+ {
1854
+ Tt.debug("Invalid date:" + n), Tt.debug("With date format:" + e.trim());
1855
+ const y = new Date(n);
1856
+ if (y === void 0 || isNaN(y.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1857
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1858
+ // This can cause virtually infinite loops while rendering, so for the
1859
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1860
+ // invalid.
1861
+ y.getFullYear() < -1e4 || y.getFullYear() > 1e4)
1862
+ throw new Error("Invalid date:" + n);
1863
+ return y;
1864
+ }
1865
+ }, "getStartDate"), In = /* @__PURE__ */ d(function(t) {
1866
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1867
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1868
+ }, "parseDuration"), Ln = /* @__PURE__ */ d(function(t, e, n, r = !1) {
1869
+ n = n.trim();
1870
+ const s = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1871
+ if (s !== null) {
1872
+ let w = null;
1873
+ for (const _ of s.groups.ids.split(" ")) {
1874
+ let Y = Ct(_);
1875
+ Y !== void 0 && (!w || Y.startTime < w.startTime) && (w = Y);
1876
+ }
1877
+ if (w)
1878
+ return w.startTime;
1879
+ const P = /* @__PURE__ */ new Date();
1880
+ return P.setHours(0, 0, 0, 0), P;
1881
+ }
1882
+ let a = it(n, e.trim(), !0);
1883
+ if (a.isValid())
1884
+ return r && (a = a.add(1, "d")), a.toDate();
1885
+ let y = it(t);
1886
+ const [F, S] = In(n);
1887
+ if (!Number.isNaN(F)) {
1888
+ const w = y.add(F, S);
1889
+ w.isValid() && (y = w);
1890
+ }
1891
+ return y.toDate();
1892
+ }, "getEndDate"), te = 0, Ut = /* @__PURE__ */ d(function(t) {
1893
+ return t === void 0 ? (te = te + 1, "task" + te) : t;
1894
+ }, "parseId"), Cs = /* @__PURE__ */ d(function(t, e) {
1895
+ let n;
1896
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1897
+ const r = n.split(","), i = {};
1898
+ Oe(r, i, Yn);
1899
+ for (let a = 0; a < r.length; a++)
1900
+ r[a] = r[a].trim();
1901
+ let s = "";
1902
+ switch (r.length) {
1903
+ case 1:
1904
+ i.id = Ut(), i.startTime = t.endTime, s = r[0];
1905
+ break;
1906
+ case 2:
1907
+ i.id = Ut(), i.startTime = Me(void 0, lt, r[0]), s = r[1];
1908
+ break;
1909
+ case 3:
1910
+ i.id = Ut(r[0]), i.startTime = Me(void 0, lt, r[1]), s = r[2];
1911
+ break;
1912
+ }
1913
+ return s && (i.endTime = Ln(i.startTime, lt, s, qt), i.manualEndTime = it(s, "YYYY-MM-DD", !0).isValid(), En(i, lt, At, Lt)), i;
1914
+ }, "compileData"), Ss = /* @__PURE__ */ d(function(t, e) {
1915
+ let n;
1916
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1917
+ const r = n.split(","), i = {};
1918
+ Oe(r, i, Yn);
1919
+ for (let s = 0; s < r.length; s++)
1920
+ r[s] = r[s].trim();
1921
+ switch (r.length) {
1922
+ case 1:
1923
+ i.id = Ut(), i.startTime = {
1924
+ type: "prevTaskEnd",
1925
+ id: t
1926
+ }, i.endTime = {
1927
+ data: r[0]
1928
+ };
1929
+ break;
1930
+ case 2:
1931
+ i.id = Ut(), i.startTime = {
1932
+ type: "getStartDate",
1933
+ startData: r[0]
1934
+ }, i.endTime = {
1935
+ data: r[1]
1936
+ };
1937
+ break;
1938
+ case 3:
1939
+ i.id = Ut(r[0]), i.startTime = {
1940
+ type: "getStartDate",
1941
+ startData: r[1]
1942
+ }, i.endTime = {
1943
+ data: r[2]
1944
+ };
1945
+ break;
1946
+ }
1947
+ return i;
1948
+ }, "parseData"), Ce, ee, et = [], An = {}, _s = /* @__PURE__ */ d(function(t, e) {
1949
+ const n = {
1950
+ section: Wt,
1951
+ type: Wt,
1952
+ processed: !1,
1953
+ manualEndTime: !1,
1954
+ renderEndTime: null,
1955
+ raw: { data: e },
1956
+ task: t,
1957
+ classes: []
1958
+ }, r = Ss(ee, e);
1959
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = ee, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.vert ? n.order = -1 : (n.order = De, De++);
1960
+ const i = et.push(n);
1961
+ ee = n.id, An[n.id] = i - 1;
1962
+ }, "addTask"), Ct = /* @__PURE__ */ d(function(t) {
1963
+ const e = An[t];
1964
+ return et[e];
1965
+ }, "findTaskById"), Ys = /* @__PURE__ */ d(function(t, e) {
1966
+ const n = {
1967
+ section: Wt,
1968
+ type: Wt,
1969
+ description: t,
1970
+ task: t,
1971
+ classes: []
1972
+ }, r = Cs(Ce, e);
1973
+ 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, Ce = n, se.push(n);
1974
+ }, "addTaskOrg"), sn = /* @__PURE__ */ d(function() {
1975
+ const t = /* @__PURE__ */ d(function(n) {
1976
+ const r = et[n];
1977
+ let i = "";
1978
+ switch (et[n].raw.startTime.type) {
1979
+ case "prevTaskEnd": {
1980
+ const s = Ct(r.prevTaskId);
1981
+ r.startTime = s.endTime;
1982
+ break;
1983
+ }
1984
+ case "getStartDate":
1985
+ i = Me(void 0, lt, et[n].raw.startTime.startData), i && (et[n].startTime = i);
1986
+ break;
1987
+ }
1988
+ return et[n].startTime && (et[n].endTime = Ln(
1989
+ et[n].startTime,
1990
+ lt,
1991
+ et[n].raw.endTime.data,
1992
+ qt
1993
+ ), et[n].endTime && (et[n].processed = !0, et[n].manualEndTime = it(
1994
+ et[n].raw.endTime.data,
1995
+ "YYYY-MM-DD",
1996
+ !0
1997
+ ).isValid(), En(et[n], lt, At, Lt))), et[n].processed;
1998
+ }, "compileTask");
1999
+ let e = !0;
2000
+ for (const [n, r] of et.entries())
2001
+ t(n), e = e && r.processed;
2002
+ return e;
2003
+ }, "compileTasks"), Fs = /* @__PURE__ */ d(function(t, e) {
2004
+ let n = e;
2005
+ Yt().securityLevel !== "loose" && (n = Bn.sanitizeUrl(e)), t.split(",").forEach(function(r) {
2006
+ Ct(r) !== void 0 && ($n(r, () => {
2007
+ window.open(n, "_self");
2008
+ }), Ee.set(r, n));
2009
+ }), Wn(t, "clickable");
2010
+ }, "setLink"), Wn = /* @__PURE__ */ d(function(t, e) {
2011
+ t.split(",").forEach(function(n) {
2012
+ let r = Ct(n);
2013
+ r !== void 0 && r.classes.push(e);
2014
+ });
2015
+ }, "setClass"), Us = /* @__PURE__ */ d(function(t, e, n) {
2016
+ if (Yt().securityLevel !== "loose" || e === void 0)
2017
+ return;
2018
+ let r = [];
2019
+ if (typeof n == "string") {
2020
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2021
+ for (let s = 0; s < r.length; s++) {
2022
+ let a = r[s].trim();
2023
+ a.startsWith('"') && a.endsWith('"') && (a = a.substr(1, a.length - 2)), r[s] = a;
2024
+ }
2025
+ }
2026
+ r.length === 0 && r.push(t), Ct(t) !== void 0 && $n(t, () => {
2027
+ Xn.runFunc(e, ...r);
2028
+ });
2029
+ }, "setClickFun"), $n = /* @__PURE__ */ d(function(t, e) {
2030
+ Ae.push(
2031
+ function() {
2032
+ const n = _t ? `${_t}-${t}` : t, r = document.querySelector(`[id="${n}"]`);
2033
+ r !== null && r.addEventListener("click", function() {
2034
+ e();
2035
+ });
2036
+ },
2037
+ function() {
2038
+ const n = _t ? `${_t}-${t}` : t, r = document.querySelector(`[id="${n}-text"]`);
2039
+ r !== null && r.addEventListener("click", function() {
2040
+ e();
2041
+ });
2042
+ }
2043
+ );
2044
+ }, "pushFun"), Es = /* @__PURE__ */ d(function(t, e, n) {
2045
+ t.split(",").forEach(function(r) {
2046
+ Us(r, e, n);
2047
+ }), Wn(t, "clickable");
2048
+ }, "setClickEvent"), Is = /* @__PURE__ */ d(function(t) {
2049
+ Ae.forEach(function(e) {
2050
+ e(t);
2051
+ });
2052
+ }, "bindFunctions"), Ls = {
2053
+ getConfig: /* @__PURE__ */ d(() => Yt().gantt, "getConfig"),
2054
+ clear: Ji,
2055
+ setDateFormat: as,
2056
+ getDateFormat: hs,
2057
+ enableInclusiveEndDates: os,
2058
+ endDatesAreInclusive: cs,
2059
+ enableTopAxis: us,
2060
+ topAxisEnabled: ls,
2061
+ setAxisFormat: ts,
2062
+ getAxisFormat: es,
2063
+ setTickInterval: ns,
2064
+ getTickInterval: rs,
2065
+ setTodayMarker: is,
2066
+ getTodayMarker: ss,
2067
+ setAccTitle: Rn,
2068
+ getAccTitle: Vn,
2069
+ setDiagramTitle: Pn,
2070
+ getDiagramTitle: Nn,
2071
+ setDiagramId: Ki,
2072
+ setDisplayMode: fs,
2073
+ getDisplayMode: ds,
2074
+ setAccDescription: Hn,
2075
+ getAccDescription: On,
2076
+ addSection: vs,
2077
+ getSections: Ts,
2078
+ getTasks: xs,
2079
+ addTask: _s,
2080
+ findTaskById: Ct,
2081
+ addTaskOrg: Ys,
2082
+ setIncludes: ms,
2083
+ getIncludes: gs,
2084
+ setExcludes: ys,
2085
+ getExcludes: ks,
2086
+ setClickEvent: Es,
2087
+ setLink: Fs,
2088
+ getLinks: ps,
2089
+ bindFunctions: Is,
2090
+ parseDuration: In,
2091
+ isInvalidDate: Un,
2092
+ setWeekday: bs,
2093
+ getWeekday: ws,
2094
+ setWeekend: Ds
2095
+ };
2096
+ function Oe(t, e, n) {
2097
+ let r = !0;
2098
+ for (; r; )
2099
+ r = !1, n.forEach(function(i) {
2100
+ const s = "^\\s*" + i + "\\s*$", a = new RegExp(s);
2101
+ t[0].match(a) && (e[i] = !0, t.shift(1), r = !0);
2102
+ });
2103
+ }
2104
+ d(Oe, "getTaskTags");
2105
+ it.extend(ji);
2106
+ var As = /* @__PURE__ */ d(function() {
2107
+ Tt.debug("Something is calling, setConf, remove the call");
2108
+ }, "setConf"), an = {
2109
+ monday: Vt,
2110
+ tuesday: vn,
2111
+ wednesday: Tn,
2112
+ thursday: bt,
2113
+ friday: xn,
2114
+ saturday: bn,
2115
+ sunday: zt
2116
+ }, Ws = /* @__PURE__ */ d((t, e) => {
2117
+ let n = [...t].map(() => -1 / 0), r = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0;
2118
+ for (const s of r)
2119
+ for (let a = 0; a < n.length; a++)
2120
+ if (s.startTime >= n[a]) {
2121
+ n[a] = s.endTime, s.order = a + e, a > i && (i = a);
2122
+ break;
2123
+ }
2124
+ return i;
2125
+ }, "getMaxIntersections"), dt, Te = 1e4, $s = /* @__PURE__ */ d(function(t, e, n, r) {
2126
+ const i = Yt().gantt;
2127
+ r.db.setDiagramId(e);
2128
+ const s = Yt().securityLevel;
2129
+ let a;
2130
+ s === "sandbox" && (a = Zt("#i" + e));
2131
+ const y = s === "sandbox" ? Zt(a.nodes()[0].contentDocument.body) : Zt("body"), F = s === "sandbox" ? a.nodes()[0].contentDocument : document, S = F.getElementById(e);
2132
+ dt = S.parentElement.offsetWidth, dt === void 0 && (dt = 1200), i.useWidth !== void 0 && (dt = i.useWidth);
2133
+ const w = r.db.getTasks(), P = w.filter((x) => !x.vert);
2134
+ let _ = [];
2135
+ for (const x of P)
2136
+ _.push(x.type);
2137
+ _ = L(_);
2138
+ const Y = {};
2139
+ let X = 2 * i.topPadding;
2140
+ if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
2141
+ const x = {};
2142
+ for (const M of P)
2143
+ x[M.section] === void 0 ? x[M.section] = [M] : x[M.section].push(M);
2144
+ let C = 0;
2145
+ for (const M of Object.keys(x)) {
2146
+ const D = Ws(x[M], C) + 1;
2147
+ C += D, X += D * (i.barHeight + i.barGap), Y[M] = D;
2148
+ }
2149
+ } else {
2150
+ X += P.length * (i.barHeight + i.barGap);
2151
+ for (const x of _)
2152
+ Y[x] = P.filter((C) => C.type === x).length;
2153
+ }
2154
+ S.setAttribute("viewBox", "0 0 " + dt + " " + X);
2155
+ const B = y.select(`[id="${e}"]`), v = Li().domain([
2156
+ lr(w, function(x) {
2157
+ return x.startTime;
2158
+ }),
2159
+ ur(w, function(x) {
2160
+ return x.endTime;
2161
+ })
2162
+ ]).rangeRound([0, dt - i.leftPadding - i.rightPadding]);
2163
+ function U(x, C) {
2164
+ const M = x.startTime, D = C.startTime;
2165
+ let c = 0;
2166
+ return M > D ? c = 1 : M < D && (c = -1), c;
2167
+ }
2168
+ d(U, "taskCompare"), w.sort(U), R(w, dt, X), zn(B, X, dt, i.useMaxWidth), B.append("text").text(r.db.getDiagramTitle()).attr("x", dt / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
2169
+ function R(x, C, M) {
2170
+ const D = i.barHeight, c = D + i.barGap, g = i.topPadding, b = i.leftPadding, m = tr().domain([0, _.length]).range(["#00B9FA", "#F95002"]).interpolate(cr);
2171
+ z(
2172
+ c,
2173
+ g,
2174
+ b,
2175
+ C,
2176
+ M,
2177
+ x,
2178
+ r.db.getExcludes(),
2179
+ r.db.getIncludes()
2180
+ ), T(b, g, C, M), E(x, c, g, b, D, m, C), k(c, g), p(b, g, C, M);
2181
+ }
2182
+ d(R, "makeGantt");
2183
+ function E(x, C, M, D, c, g, b) {
2184
+ x.sort((l, $) => l.vert === $.vert ? 0 : l.vert ? 1 : -1);
2185
+ const m = x.filter((l) => !l.vert), o = [...new Set(m.map((l) => l.order))].map(
2186
+ (l) => m.find(($) => $.order === l)
2187
+ );
2188
+ B.append("g").selectAll("rect").data(o).enter().append("rect").attr("x", 0).attr("y", function(l, $) {
2189
+ return $ = l.order, $ * C + M - 2;
2190
+ }).attr("width", function() {
2191
+ return b - i.rightPadding / 2;
2192
+ }).attr("height", C).attr("class", function(l) {
2193
+ for (const [$, O] of _.entries())
2194
+ if (l.type === O)
2195
+ return "section section" + $ % i.numberSectionStyles;
2196
+ return "section section0";
2197
+ }).enter();
2198
+ const W = B.append("g").selectAll("rect").data(x).enter(), u = r.db.getLinks();
2199
+ if (W.append("rect").attr("id", function(l) {
2200
+ return e + "-" + l.id;
2201
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(l) {
2202
+ return l.milestone ? v(l.startTime) + D + 0.5 * (v(l.endTime) - v(l.startTime)) - 0.5 * c : v(l.startTime) + D;
2203
+ }).attr("y", function(l, $) {
2204
+ return $ = l.order, l.vert ? i.gridLineStartPadding : $ * C + M;
2205
+ }).attr("width", function(l) {
2206
+ return l.milestone ? c : l.vert ? 0.08 * c : v(l.renderEndTime || l.endTime) - v(l.startTime);
2207
+ }).attr("height", function(l) {
2208
+ return l.vert ? m.length * (i.barHeight + i.barGap) + i.barHeight * 2 : c;
2209
+ }).attr("transform-origin", function(l, $) {
2210
+ return $ = l.order, (v(l.startTime) + D + 0.5 * (v(l.endTime) - v(l.startTime))).toString() + "px " + ($ * C + M + 0.5 * c).toString() + "px";
2211
+ }).attr("class", function(l) {
2212
+ const $ = "task";
2213
+ let O = "";
2214
+ l.classes.length > 0 && (O = l.classes.join(" "));
2215
+ let j = 0;
2216
+ for (const [J, h] of _.entries())
2217
+ l.type === h && (j = J % i.numberSectionStyles);
2218
+ let H = "";
2219
+ return l.active ? l.crit ? H += " activeCrit" : H = " active" : l.done ? l.crit ? H = " doneCrit" : H = " done" : l.crit && (H += " crit"), H.length === 0 && (H = " task"), l.milestone && (H = " milestone " + H), l.vert && (H = " vert " + H), H += j, H += " " + O, $ + H;
2220
+ }), W.append("text").attr("id", function(l) {
2221
+ return e + "-" + l.id + "-text";
2222
+ }).text(function(l) {
2223
+ return l.task;
2224
+ }).attr("font-size", i.fontSize).attr("x", function(l) {
2225
+ let $ = v(l.startTime), O = v(l.renderEndTime || l.endTime);
2226
+ if (l.milestone && ($ += 0.5 * (v(l.endTime) - v(l.startTime)) - 0.5 * c, O = $ + c), l.vert)
2227
+ return v(l.startTime) + D;
2228
+ const j = this.getBBox().width;
2229
+ return j > O - $ ? O + j + 1.5 * i.leftPadding > b ? $ + D - 5 : O + D + 5 : (O - $) / 2 + $ + D;
2230
+ }).attr("y", function(l, $) {
2231
+ return l.vert ? i.gridLineStartPadding + m.length * (i.barHeight + i.barGap) + 60 : ($ = l.order, $ * C + i.barHeight / 2 + (i.fontSize / 2 - 2) + M);
2232
+ }).attr("text-height", c).attr("class", function(l) {
2233
+ const $ = v(l.startTime);
2234
+ let O = v(l.endTime);
2235
+ l.milestone && (O = $ + c);
2236
+ const j = this.getBBox().width;
2237
+ let H = "";
2238
+ l.classes.length > 0 && (H = l.classes.join(" "));
2239
+ let J = 0;
2240
+ for (const [N, V] of _.entries())
2241
+ l.type === V && (J = N % i.numberSectionStyles);
2242
+ let h = "";
2243
+ return l.active && (l.crit ? h = "activeCritText" + J : h = "activeText" + J), l.done ? l.crit ? h = h + " doneCritText" + J : h = h + " doneText" + J : l.crit && (h = h + " critText" + J), l.milestone && (h += " milestoneText"), l.vert && (h += " vertText"), j > O - $ ? O + j + 1.5 * i.leftPadding > b ? H + " taskTextOutsideLeft taskTextOutside" + J + " " + h : H + " taskTextOutsideRight taskTextOutside" + J + " " + h + " width-" + j : H + " taskText taskText" + J + " " + h + " width-" + j;
2244
+ }), Yt().securityLevel === "sandbox") {
2245
+ let l;
2246
+ l = Zt("#i" + e);
2247
+ const $ = l.nodes()[0].contentDocument;
2248
+ W.filter(function(O) {
2249
+ return u.has(O.id);
2250
+ }).each(function(O) {
2251
+ var j = $.querySelector("#" + CSS.escape(e + "-" + O.id)), H = $.querySelector("#" + CSS.escape(e + "-" + O.id + "-text"));
2252
+ const J = j.parentNode;
2253
+ var h = $.createElement("a");
2254
+ h.setAttribute("xlink:href", u.get(O.id)), h.setAttribute("target", "_top"), J.appendChild(h), h.appendChild(j), h.appendChild(H);
2255
+ });
2256
+ }
2257
+ }
2258
+ d(E, "drawRects");
2259
+ function z(x, C, M, D, c, g, b, m) {
2260
+ if (b.length === 0 && m.length === 0)
2261
+ return;
2262
+ let I, o;
2263
+ for (const { startTime: O, endTime: j } of g)
2264
+ (I === void 0 || O < I) && (I = O), (o === void 0 || j > o) && (o = j);
2265
+ if (!I || !o)
2266
+ return;
2267
+ if (it(o).diff(it(I), "year") > 5) {
2268
+ Tt.warn(
2269
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
2270
+ );
2271
+ return;
2272
+ }
2273
+ const W = r.db.getDateFormat(), u = [];
2274
+ let K = null, l = it(I);
2275
+ for (; l.valueOf() <= o; )
2276
+ r.db.isInvalidDate(l, W, b, m) ? K ? K.end = l : K = {
2277
+ start: l,
2278
+ end: l
2279
+ } : K && (u.push(K), K = null), l = l.add(1, "d");
2280
+ B.append("g").selectAll("rect").data(u).enter().append("rect").attr("id", (O) => e + "-exclude-" + O.start.format("YYYY-MM-DD")).attr("x", (O) => v(O.start.startOf("day")) + M).attr("y", i.gridLineStartPadding).attr("width", (O) => v(O.end.endOf("day")) - v(O.start.startOf("day"))).attr("height", c - C - i.gridLineStartPadding).attr("transform-origin", function(O, j) {
2281
+ return (v(O.start) + M + 0.5 * (v(O.end) - v(O.start))).toString() + "px " + (j * x + 0.5 * c).toString() + "px";
2282
+ }).attr("class", "exclude-range");
2283
+ }
2284
+ d(z, "drawExcludeDays");
2285
+ function G(x, C, M, D) {
2286
+ if (M <= 0 || x > C)
2287
+ return 1 / 0;
2288
+ const c = C - x, g = it.duration({ [D ?? "day"]: M }).asMilliseconds();
2289
+ return g <= 0 ? 1 / 0 : Math.ceil(c / g);
2290
+ }
2291
+ d(G, "getEstimatedTickCount");
2292
+ function T(x, C, M, D) {
2293
+ const c = r.db.getDateFormat(), g = r.db.getAxisFormat();
2294
+ let b;
2295
+ g ? b = g : c === "D" ? b = "%d" : b = i.axisFormat ?? "%Y-%m-%d";
2296
+ let m = pr(v).tickSize(-D + C + i.gridLineStartPadding).tickFormat(ie(b));
2297
+ const o = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2298
+ r.db.getTickInterval() || i.tickInterval
2299
+ );
2300
+ if (o !== null) {
2301
+ const W = parseInt(o[1], 10);
2302
+ if (isNaN(W) || W <= 0)
2303
+ Tt.warn(
2304
+ `Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`
2305
+ );
2306
+ else {
2307
+ const u = o[2], K = r.db.getWeekday() || i.weekday, l = v.domain(), $ = l[0], O = l[1], j = G($, O, W, u);
2308
+ if (j > Te)
2309
+ Tt.warn(
2310
+ `The tick interval "${W}${u}" would generate ${j} ticks, which exceeds the maximum allowed (${Te}). This may indicate an invalid date or time range. Skipping custom tick interval.`
2311
+ );
2312
+ else
2313
+ switch (u) {
2314
+ case "millisecond":
2315
+ m.ticks(Et.every(W));
2316
+ break;
2317
+ case "second":
2318
+ m.ticks(vt.every(W));
2319
+ break;
2320
+ case "minute":
2321
+ m.ticks(Nt.every(W));
2322
+ break;
2323
+ case "hour":
2324
+ m.ticks(Pt.every(W));
2325
+ break;
2326
+ case "day":
2327
+ m.ticks(xt.every(W));
2328
+ break;
2329
+ case "week":
2330
+ m.ticks(an[K].every(W));
2331
+ break;
2332
+ case "month":
2333
+ m.ticks(Rt.every(W));
2334
+ break;
2335
+ }
2336
+ }
2337
+ }
2338
+ if (B.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + (D - 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() || i.topAxis) {
2339
+ let W = kr(v).tickSize(-D + C + i.gridLineStartPadding).tickFormat(ie(b));
2340
+ if (o !== null) {
2341
+ const u = parseInt(o[1], 10);
2342
+ if (isNaN(u) || u <= 0)
2343
+ Tt.warn(
2344
+ `Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`
2345
+ );
2346
+ else {
2347
+ const K = o[2], l = r.db.getWeekday() || i.weekday, $ = v.domain(), O = $[0], j = $[1];
2348
+ if (G(O, j, u, K) <= Te)
2349
+ switch (K) {
2350
+ case "millisecond":
2351
+ W.ticks(Et.every(u));
2352
+ break;
2353
+ case "second":
2354
+ W.ticks(vt.every(u));
2355
+ break;
2356
+ case "minute":
2357
+ W.ticks(Nt.every(u));
2358
+ break;
2359
+ case "hour":
2360
+ W.ticks(Pt.every(u));
2361
+ break;
2362
+ case "day":
2363
+ W.ticks(xt.every(u));
2364
+ break;
2365
+ case "week":
2366
+ W.ticks(an[l].every(u));
2367
+ break;
2368
+ case "month":
2369
+ W.ticks(Rt.every(u));
2370
+ break;
2371
+ }
2372
+ }
2373
+ }
2374
+ B.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + C + ")").call(W).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2375
+ }
2376
+ }
2377
+ d(T, "makeGrid");
2378
+ function k(x, C) {
2379
+ let M = 0;
2380
+ const D = Object.keys(Y).map((c) => [c, Y[c]]);
2381
+ B.append("g").selectAll("text").data(D).enter().append(function(c) {
2382
+ const g = c[0].split(qn.lineBreakRegex), b = -(g.length - 1) / 2, m = F.createElementNS("http://www.w3.org/2000/svg", "text");
2383
+ m.setAttribute("dy", b + "em");
2384
+ for (const [I, o] of g.entries()) {
2385
+ const W = F.createElementNS("http://www.w3.org/2000/svg", "tspan");
2386
+ W.setAttribute("alignment-baseline", "central"), W.setAttribute("x", "10"), I > 0 && W.setAttribute("dy", "1em"), W.textContent = o, m.appendChild(W);
2387
+ }
2388
+ return m;
2389
+ }).attr("x", 10).attr("y", function(c, g) {
2390
+ if (g > 0)
2391
+ for (let b = 0; b < g; b++)
2392
+ return M += D[g - 1][1], c[1] * x / 2 + M * x + C;
2393
+ else
2394
+ return c[1] * x / 2 + C;
2395
+ }).attr("font-size", i.sectionFontSize).attr("class", function(c) {
2396
+ for (const [g, b] of _.entries())
2397
+ if (c[0] === b)
2398
+ return "sectionTitle sectionTitle" + g % i.numberSectionStyles;
2399
+ return "sectionTitle";
2400
+ });
2401
+ }
2402
+ d(k, "vertLabels");
2403
+ function p(x, C, M, D) {
2404
+ const c = r.db.getTodayMarker();
2405
+ if (c === "off")
2406
+ return;
2407
+ const g = B.append("g").attr("class", "today"), b = /* @__PURE__ */ new Date(), m = g.append("line");
2408
+ m.attr("x1", v(b) + x).attr("x2", v(b) + x).attr("y1", i.titleTopMargin).attr("y2", D - i.titleTopMargin).attr("class", "today"), c !== "" && m.attr("style", c.replace(/,/g, ";"));
2409
+ }
2410
+ d(p, "drawToday");
2411
+ function L(x) {
2412
+ const C = {}, M = [];
2413
+ for (let D = 0, c = x.length; D < c; ++D)
2414
+ Object.prototype.hasOwnProperty.call(C, x[D]) || (C[x[D]] = !0, M.push(x[D]));
2415
+ return M;
2416
+ }
2417
+ d(L, "checkUnique");
2418
+ }, "draw"), Os = {
2419
+ setConf: As,
2420
+ draw: $s
2421
+ }, Hs = /* @__PURE__ */ d((t) => `
2422
+ .mermaid-main-font {
2423
+ font-family: ${t.fontFamily};
2424
+ }
2425
+
2426
+ .exclude-range {
2427
+ fill: ${t.excludeBkgColor};
2428
+ }
2429
+
2430
+ .section {
2431
+ stroke: none;
2432
+ opacity: 0.2;
2433
+ }
2434
+
2435
+ .section0 {
2436
+ fill: ${t.sectionBkgColor};
2437
+ }
2438
+
2439
+ .section2 {
2440
+ fill: ${t.sectionBkgColor2};
2441
+ }
2442
+
2443
+ .section1,
2444
+ .section3 {
2445
+ fill: ${t.altSectionBkgColor};
2446
+ opacity: 0.2;
2447
+ }
2448
+
2449
+ .sectionTitle0 {
2450
+ fill: ${t.titleColor};
2451
+ }
2452
+
2453
+ .sectionTitle1 {
2454
+ fill: ${t.titleColor};
2455
+ }
2456
+
2457
+ .sectionTitle2 {
2458
+ fill: ${t.titleColor};
2459
+ }
2460
+
2461
+ .sectionTitle3 {
2462
+ fill: ${t.titleColor};
2463
+ }
2464
+
2465
+ .sectionTitle {
2466
+ text-anchor: start;
2467
+ font-family: ${t.fontFamily};
2468
+ }
2469
+
2470
+
2471
+ /* Grid and axis */
2472
+
2473
+ .grid .tick {
2474
+ stroke: ${t.gridColor};
2475
+ opacity: 0.8;
2476
+ shape-rendering: crispEdges;
2477
+ }
2478
+
2479
+ .grid .tick text {
2480
+ font-family: ${t.fontFamily};
2481
+ fill: ${t.textColor};
2482
+ }
2483
+
2484
+ .grid path {
2485
+ stroke-width: 0;
2486
+ }
2487
+
2488
+
2489
+ /* Today line */
2490
+
2491
+ .today {
2492
+ fill: none;
2493
+ stroke: ${t.todayLineColor};
2494
+ stroke-width: 2px;
2495
+ }
2496
+
2497
+
2498
+ /* Task styling */
2499
+
2500
+ /* Default task */
2501
+
2502
+ .task {
2503
+ stroke-width: 2;
2504
+ }
2505
+
2506
+ .taskText {
2507
+ text-anchor: middle;
2508
+ font-family: ${t.fontFamily};
2509
+ }
2510
+
2511
+ .taskTextOutsideRight {
2512
+ fill: ${t.taskTextDarkColor};
2513
+ text-anchor: start;
2514
+ font-family: ${t.fontFamily};
2515
+ }
2516
+
2517
+ .taskTextOutsideLeft {
2518
+ fill: ${t.taskTextDarkColor};
2519
+ text-anchor: end;
2520
+ }
2521
+
2522
+
2523
+ /* Special case clickable */
2524
+
2525
+ .task.clickable {
2526
+ cursor: pointer;
2527
+ }
2528
+
2529
+ .taskText.clickable {
2530
+ cursor: pointer;
2531
+ fill: ${t.taskTextClickableColor} !important;
2532
+ font-weight: bold;
2533
+ }
2534
+
2535
+ .taskTextOutsideLeft.clickable {
2536
+ cursor: pointer;
2537
+ fill: ${t.taskTextClickableColor} !important;
2538
+ font-weight: bold;
2539
+ }
2540
+
2541
+ .taskTextOutsideRight.clickable {
2542
+ cursor: pointer;
2543
+ fill: ${t.taskTextClickableColor} !important;
2544
+ font-weight: bold;
2545
+ }
2546
+
2547
+
2548
+ /* Specific task settings for the sections*/
2549
+
2550
+ .taskText0,
2551
+ .taskText1,
2552
+ .taskText2,
2553
+ .taskText3 {
2554
+ fill: ${t.taskTextColor};
2555
+ }
2556
+
2557
+ .task0,
2558
+ .task1,
2559
+ .task2,
2560
+ .task3 {
2561
+ fill: ${t.taskBkgColor};
2562
+ stroke: ${t.taskBorderColor};
2563
+ }
2564
+
2565
+ .taskTextOutside0,
2566
+ .taskTextOutside2
2567
+ {
2568
+ fill: ${t.taskTextOutsideColor};
2569
+ }
2570
+
2571
+ .taskTextOutside1,
2572
+ .taskTextOutside3 {
2573
+ fill: ${t.taskTextOutsideColor};
2574
+ }
2575
+
2576
+
2577
+ /* Active task */
2578
+
2579
+ .active0,
2580
+ .active1,
2581
+ .active2,
2582
+ .active3 {
2583
+ fill: ${t.activeTaskBkgColor};
2584
+ stroke: ${t.activeTaskBorderColor};
2585
+ }
2586
+
2587
+ .activeText0,
2588
+ .activeText1,
2589
+ .activeText2,
2590
+ .activeText3 {
2591
+ fill: ${t.taskTextDarkColor} !important;
2592
+ }
2593
+
2594
+
2595
+ /* Completed task */
2596
+
2597
+ .done0,
2598
+ .done1,
2599
+ .done2,
2600
+ .done3 {
2601
+ stroke: ${t.doneTaskBorderColor};
2602
+ fill: ${t.doneTaskBkgColor};
2603
+ stroke-width: 2;
2604
+ }
2605
+
2606
+ .doneText0,
2607
+ .doneText1,
2608
+ .doneText2,
2609
+ .doneText3 {
2610
+ fill: ${t.taskTextDarkColor} !important;
2611
+ }
2612
+
2613
+ /* Done task text displayed outside the bar sits against the diagram background,
2614
+ not against the done-task bar, so it must use the outside/contrast color. */
2615
+ .doneText0.taskTextOutsideLeft,
2616
+ .doneText0.taskTextOutsideRight,
2617
+ .doneText1.taskTextOutsideLeft,
2618
+ .doneText1.taskTextOutsideRight,
2619
+ .doneText2.taskTextOutsideLeft,
2620
+ .doneText2.taskTextOutsideRight,
2621
+ .doneText3.taskTextOutsideLeft,
2622
+ .doneText3.taskTextOutsideRight {
2623
+ fill: ${t.taskTextOutsideColor} !important;
2624
+ }
2625
+
2626
+
2627
+ /* Tasks on the critical line */
2628
+
2629
+ .crit0,
2630
+ .crit1,
2631
+ .crit2,
2632
+ .crit3 {
2633
+ stroke: ${t.critBorderColor};
2634
+ fill: ${t.critBkgColor};
2635
+ stroke-width: 2;
2636
+ }
2637
+
2638
+ .activeCrit0,
2639
+ .activeCrit1,
2640
+ .activeCrit2,
2641
+ .activeCrit3 {
2642
+ stroke: ${t.critBorderColor};
2643
+ fill: ${t.activeTaskBkgColor};
2644
+ stroke-width: 2;
2645
+ }
2646
+
2647
+ .doneCrit0,
2648
+ .doneCrit1,
2649
+ .doneCrit2,
2650
+ .doneCrit3 {
2651
+ stroke: ${t.critBorderColor};
2652
+ fill: ${t.doneTaskBkgColor};
2653
+ stroke-width: 2;
2654
+ cursor: pointer;
2655
+ shape-rendering: crispEdges;
2656
+ }
2657
+
2658
+ .milestone {
2659
+ transform: rotate(45deg) scale(0.8,0.8);
2660
+ }
2661
+
2662
+ .milestoneText {
2663
+ font-style: italic;
2664
+ }
2665
+ .doneCritText0,
2666
+ .doneCritText1,
2667
+ .doneCritText2,
2668
+ .doneCritText3 {
2669
+ fill: ${t.taskTextDarkColor} !important;
2670
+ }
2671
+
2672
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
2673
+ .doneCritText0.taskTextOutsideLeft,
2674
+ .doneCritText0.taskTextOutsideRight,
2675
+ .doneCritText1.taskTextOutsideLeft,
2676
+ .doneCritText1.taskTextOutsideRight,
2677
+ .doneCritText2.taskTextOutsideLeft,
2678
+ .doneCritText2.taskTextOutsideRight,
2679
+ .doneCritText3.taskTextOutsideLeft,
2680
+ .doneCritText3.taskTextOutsideRight {
2681
+ fill: ${t.taskTextOutsideColor} !important;
2682
+ }
2683
+
2684
+ .vert {
2685
+ stroke: ${t.vertLineColor};
2686
+ }
2687
+
2688
+ .vertText {
2689
+ font-size: 15px;
2690
+ text-anchor: middle;
2691
+ fill: ${t.vertLineColor} !important;
2692
+ }
2693
+
2694
+ .activeCritText0,
2695
+ .activeCritText1,
2696
+ .activeCritText2,
2697
+ .activeCritText3 {
2698
+ fill: ${t.taskTextDarkColor} !important;
2699
+ }
2700
+
2701
+ .titleText {
2702
+ text-anchor: middle;
2703
+ font-size: 18px;
2704
+ fill: ${t.titleColor || t.textColor};
2705
+ font-family: ${t.fontFamily};
2706
+ }
2707
+ `, "getStyles"), Ns = Hs, Xs = {
2708
+ parser: Qi,
2709
+ db: Ls,
2710
+ renderer: Os,
2711
+ styles: Ns
2712
+ };
2713
+ export {
2714
+ Xs as diagram
2715
+ };