@aiquants/markdown 12.3.0 → 13.0.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 (256) hide show
  1. package/README.md +276 -65
  2. package/dist/{abnfDiagram-VRR7QNED-B_QmXzWv.js → abnfDiagram-VRR7QNED-B3Q9attM.js} +9 -9
  3. package/dist/abnfDiagram-VRR7QNED-QW4YM2AY.cjs +1 -0
  4. package/dist/arc-BBLXr5EU.js +83 -0
  5. package/dist/arc-Cn8XXgbN.cjs +1 -0
  6. package/dist/{architectureDiagram-ZJ3FMSHR-CEb923Bc.js → architectureDiagram-ZJ3FMSHR-BaSp0hC2.js} +123 -123
  7. package/dist/architectureDiagram-ZJ3FMSHR-BfmjNYww.cjs +36 -0
  8. package/dist/{blockDiagram-677ZJIJ3-CmKMdhaS.js → blockDiagram-677ZJIJ3-DFcPQ19k.js} +166 -166
  9. package/dist/{blockDiagram-677ZJIJ3-D7RRzjUx.cjs → blockDiagram-677ZJIJ3-u7d3VCxA.cjs} +1 -1
  10. package/dist/{c4Diagram-LMCZKHZV-CG6fvZQo.js → c4Diagram-LMCZKHZV-DW0yo5tR.js} +2 -2
  11. package/dist/{c4Diagram-LMCZKHZV-W7Qa-ecL.cjs → c4Diagram-LMCZKHZV-nScsMUE3.cjs} +1 -1
  12. package/dist/{channel-TsF8sms_.js → channel-B2FBCr9X.js} +1 -1
  13. package/dist/channel-DlkTPSf_.cjs +1 -0
  14. package/dist/{chunk-2Q5K7J3B-CopwR1m3.js → chunk-2Q5K7J3B-BkE4Fsuz.js} +1 -1
  15. package/dist/chunk-2Q5K7J3B-evSha-HP.cjs +1 -0
  16. package/dist/{chunk-32BRIVSS-BnNlhc1M.js → chunk-32BRIVSS-CqpDiZD2.js} +1 -1
  17. package/dist/chunk-32BRIVSS-rIw6tBRO.cjs +1 -0
  18. package/dist/{chunk-5VM5RSS4-lKwSmIqG.cjs → chunk-5VM5RSS4-CYVpj2mc.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-O28FGAOF.js → chunk-5VM5RSS4-DAgNhPcU.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-CtFe4olX.cjs → chunk-EX3LRPZG-Ct2cyGh-.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-C36gZH3_.js → chunk-EX3LRPZG-QFjD28UF.js} +21 -21
  22. package/dist/{chunk-JWPE2WC7-DG0ebjV4.js → chunk-JWPE2WC7-Bj2m1SXZ.js} +1 -1
  23. package/dist/chunk-JWPE2WC7-Dgw1ILoe.cjs +1 -0
  24. package/dist/{chunk-MOJQB5TN-nqR_swpx.js → chunk-MOJQB5TN-B1fdnpCz.js} +122 -122
  25. package/dist/{chunk-MOJQB5TN-DADVbG98.cjs → chunk-MOJQB5TN-yjlPYCh4.cjs} +3 -3
  26. package/dist/{chunk-PUDLZKDR-BUSFO-Gx.cjs → chunk-PUDLZKDR-BlQ3qKcC.cjs} +4 -4
  27. package/dist/{chunk-PUDLZKDR-CD96jce3.js → chunk-PUDLZKDR-CIcw3cpm.js} +21 -21
  28. package/dist/chunk-RYQCIY6F-B-V6UOJy.cjs +1 -0
  29. package/dist/{chunk-RYQCIY6F-DJkrr1sD.js → chunk-RYQCIY6F-DyVk8fNp.js} +5 -5
  30. package/dist/{chunk-V7JOEXUC-BzCaDGop.cjs → chunk-V7JOEXUC-B1EgagKh.cjs} +3 -3
  31. package/dist/{chunk-V7JOEXUC-eBy2sAXD.js → chunk-V7JOEXUC-C776k7_V.js} +15 -15
  32. package/dist/{chunk-VR4S4FIN-C-qPzUSR.js → chunk-VR4S4FIN-CyqARa17.js} +5 -5
  33. package/dist/chunk-VR4S4FIN-Sx71KwIQ.cjs +1 -0
  34. package/dist/{chunk-XXDRQBXY-BK6HOWf6.js → chunk-XXDRQBXY-B-99Fbs_.js} +3 -3
  35. package/dist/chunk-XXDRQBXY-BgeRIUG1.cjs +1 -0
  36. package/dist/classDiagram-OUVF2IWQ-BLAiuPPL.cjs +1 -0
  37. package/dist/{classDiagram-v2-EOCWNBFH-CPDmG5kI.js → classDiagram-OUVF2IWQ-DJ0hW16Q.js} +2 -2
  38. package/dist/classDiagram-v2-EOCWNBFH-BLAiuPPL.cjs +1 -0
  39. package/dist/{classDiagram-OUVF2IWQ-CPDmG5kI.js → classDiagram-v2-EOCWNBFH-DJ0hW16Q.js} +2 -2
  40. package/dist/{code-blocks-BWr5Xg1I.js → code-blocks-C6J8rVTc.js} +23 -22
  41. package/dist/{code-blocks-BdKjppKq.cjs → code-blocks-CTESwslp.cjs} +3 -3
  42. package/dist/code-blocks.cjs +1 -1
  43. package/dist/code-blocks.d.ts +1 -0
  44. package/dist/code-blocks.js +15 -14
  45. package/dist/components/CopyButton.d.ts +1 -2
  46. package/dist/components/MarkdownRenderer.d.ts +31 -2
  47. package/dist/components/MarkdownViewer.d.ts +11 -2
  48. package/dist/components/MermaidDiagram.d.ts +1 -0
  49. package/dist/components/ReadingPlaceKeeper.d.ts +32 -0
  50. package/dist/components/SelectionKeeper.d.ts +38 -0
  51. package/dist/components/SpreadsheetBlock.d.ts +2 -1
  52. package/dist/components/blockKeys.d.ts +9 -2
  53. package/dist/components/blockOffsets.d.ts +3 -0
  54. package/dist/components/clipboard.d.ts +1 -0
  55. package/dist/components/embeds/ClientFrame.d.ts +1 -0
  56. package/dist/components/embeds/ProviderEmbed.d.ts +2 -1
  57. package/dist/components/embeds/embedLabels.d.ts +1 -1
  58. package/dist/components/embeds/linkCardFetch.d.ts +2 -0
  59. package/dist/components/embeds.d.ts +5 -0
  60. package/dist/components/headingLevels.d.ts +6 -0
  61. package/dist/components/htmlNodes.d.ts +2 -0
  62. package/dist/components/htmlSanitizer.d.ts +15 -2
  63. package/dist/components/labels.d.ts +3 -2
  64. package/dist/components/links.d.ts +1 -0
  65. package/dist/components/mdastNodes/CodeNode.d.ts +3 -1
  66. package/dist/components/mermaidLabels.d.ts +5 -0
  67. package/dist/components/mermaidSetup.d.ts +10 -0
  68. package/dist/components/missingImageLabels.d.ts +2 -0
  69. package/dist/components/ownPixels.d.ts +1 -0
  70. package/dist/components/rawHtml.d.ts +7 -3
  71. package/dist/components/spreadsheetModel.d.ts +1 -0
  72. package/dist/components/viewerLabels.d.ts +11 -2
  73. package/dist/contentColors.d.ts +21 -0
  74. package/dist/conversion.d.ts +7 -0
  75. package/dist/converter/NOTICES.md +6 -6
  76. package/dist/converter/createMarkdownConverter.d.ts +1 -0
  77. package/dist/converter/protocol.d.ts +4 -0
  78. package/dist/converter.cjs +1 -1
  79. package/dist/converter.js +89 -71
  80. package/dist/converter.wasm +0 -0
  81. package/dist/{cose-bilkent-JH36ORCC-BxO1rjEU.js → cose-bilkent-JH36ORCC-CR6Hdvto.js} +24 -24
  82. package/dist/cose-bilkent-JH36ORCC-reAbGeDU.cjs +1 -0
  83. package/dist/cynefinDiagram-TSTJHNR4-2qz-sUtp.cjs +62 -0
  84. package/dist/{cynefinDiagram-TSTJHNR4-DBD-B_Un.js → cynefinDiagram-TSTJHNR4-D1eY-FSf.js} +65 -65
  85. package/dist/dagre-VKFMJZFB-Byr9WPjb.cjs +4 -0
  86. package/dist/{dagre-VKFMJZFB-B8vZCPJg.js → dagre-VKFMJZFB-CXSczF8v.js} +26 -26
  87. package/dist/{diagram-FQU43EPY-DwhEcKWF.cjs → diagram-FQU43EPY-2YWng437.cjs} +1 -1
  88. package/dist/{diagram-FQU43EPY-YrRTNuX-.js → diagram-FQU43EPY-BZo0xcaj.js} +54 -54
  89. package/dist/diagram-G47NLZAW-CQS7BN4F.cjs +24 -0
  90. package/dist/{diagram-G47NLZAW-D4vmirJw.js → diagram-G47NLZAW-CvJW9ny8.js} +65 -65
  91. package/dist/{diagram-NH7WQ7WH-Drekwiur.js → diagram-NH7WQ7WH-C6VIkj-R.js} +18 -18
  92. package/dist/diagram-NH7WQ7WH-DXUwOBe7.cjs +24 -0
  93. package/dist/{diagram-OA4YK3LP-DZsM4Fpo.js → diagram-OA4YK3LP-Co6nMbJc.js} +29 -29
  94. package/dist/{diagram-OA4YK3LP-DeJ7pMIO.cjs → diagram-OA4YK3LP-DBUm2qxb.cjs} +3 -3
  95. package/dist/{diagram-WEI45ONY-CjRbsbkF.js → diagram-WEI45ONY-BaMbc5o2.js} +76 -76
  96. package/dist/diagram-WEI45ONY-ChpK2gP3.cjs +41 -0
  97. package/dist/ebnfDiagram-CCIWWBDH-DMIRHp8N.cjs +1 -0
  98. package/dist/{ebnfDiagram-CCIWWBDH-D0kt5Zdu.js → ebnfDiagram-CCIWWBDH-i7CR-FU0.js} +3 -3
  99. package/dist/embeds/frames.d.ts +4 -0
  100. package/dist/embeds/linkCards.d.ts +3 -1
  101. package/dist/embeds/providers.d.ts +1 -0
  102. package/dist/embeds/testing.cjs +1 -1
  103. package/dist/embeds/testing.js +1 -1
  104. package/dist/embeds-B4g6w7Tf.cjs +1 -0
  105. package/dist/embeds-Dra-dGKD.js +64 -0
  106. package/dist/embeds.cjs +1 -1
  107. package/dist/embeds.d.ts +2 -2
  108. package/dist/embeds.js +31 -70
  109. package/dist/{erDiagram-Q63AITRT-Ce4GpK2Z.js → erDiagram-Q63AITRT-DC-HhdaO.js} +69 -69
  110. package/dist/{erDiagram-Q63AITRT-DqFANbZx.cjs → erDiagram-Q63AITRT-DjRvJyWK.cjs} +1 -1
  111. package/dist/errors-BWZJx2MD.cjs +1 -0
  112. package/dist/errors-CapTNE7l.js +62 -0
  113. package/dist/errors.d.ts +2 -2
  114. package/dist/extractHeadings-BAhmauKo.js +5296 -0
  115. package/dist/extractHeadings-qiJXegCx.cjs +11 -0
  116. package/dist/flowDiagram-23GEKE2U-CiNzp6BS.js +7 -0
  117. package/dist/flowDiagram-23GEKE2U-DzZNPkRJ.cjs +1 -0
  118. package/dist/{ganttDiagram-NO4QXBWP-DjpANtqX.js → ganttDiagram-NO4QXBWP-BwbtaPxc.js} +69 -69
  119. package/dist/ganttDiagram-NO4QXBWP-CJv5UQ4O.cjs +292 -0
  120. package/dist/gen/markdown/v1/linkcard_connect.d.ts +19 -0
  121. package/dist/gen/markdown/v1/linkcard_pb.d.ts +87 -0
  122. package/dist/gen/markdown/v1/markdown_pb.d.ts +4 -0
  123. package/dist/{gitGraphDiagram-IHSO6WYX-DzhnsGXo.js → gitGraphDiagram-IHSO6WYX--yebcp4V.js} +26 -26
  124. package/dist/gitGraphDiagram-IHSO6WYX-dSwtW7X6.cjs +106 -0
  125. package/dist/index.cjs +1 -1
  126. package/dist/index.client.cjs +1 -1
  127. package/dist/index.client.d.ts +2 -2
  128. package/dist/index.client.js +42 -36
  129. package/dist/index.js +42 -36
  130. package/dist/index.server.cjs +1 -1
  131. package/dist/index.server.d.ts +2 -1
  132. package/dist/index.server.js +126 -873
  133. package/dist/{infoDiagram-FWYZ7A6U-hraoyboI.js → infoDiagram-FWYZ7A6U-B4AiTiqD.js} +9 -9
  134. package/dist/infoDiagram-FWYZ7A6U-BOj0VF20.cjs +2 -0
  135. package/dist/{ishikawaDiagram-FXEZZL3T-cBJei3wJ.js → ishikawaDiagram-FXEZZL3T-BsYs_qnQ.js} +55 -55
  136. package/dist/{ishikawaDiagram-FXEZZL3T-D5b25aDN.cjs → ishikawaDiagram-FXEZZL3T-CisV4kPO.cjs} +1 -1
  137. package/dist/{journeyDiagram-5HDEW3XC-DrNyUSsx.cjs → journeyDiagram-5HDEW3XC-BAvgWwpr.cjs} +1 -1
  138. package/dist/{journeyDiagram-5HDEW3XC-IkQqMl8f.js → journeyDiagram-5HDEW3XC-DbDo-dqu.js} +29 -29
  139. package/dist/{kanban-definition-HUTT4EX6-D2UL88Cz.js → kanban-definition-HUTT4EX6-BlPZISwH.js} +111 -111
  140. package/dist/{kanban-definition-HUTT4EX6-CvBgN3eX.cjs → kanban-definition-HUTT4EX6-RjzOWas9.cjs} +2 -2
  141. package/dist/{linear-BiJV9gYf.js → linear-BXWX8YXI.js} +33 -33
  142. package/dist/linear-CKPQExK8.cjs +1 -0
  143. package/dist/linkCardServer/linkCardCore.d.ts +10 -0
  144. package/dist/linkCardServer/linkCardHandler.server.d.ts +1 -6
  145. package/dist/linkCardServer/pageFetchPort.d.ts +19 -0
  146. package/dist/linkCardServer/{pageMetadata.server.d.ts → pageMetadata.d.ts} +11 -3
  147. package/dist/linkCards-BikpIncf.cjs +1 -0
  148. package/dist/linkCards-DfSLqLPF.js +50 -0
  149. package/dist/linkCards.cjs +1 -0
  150. package/dist/linkCards.d.ts +2 -0
  151. package/dist/linkCards.js +5 -0
  152. package/dist/markdownServiceClient-C47z3Ynu.cjs +1 -0
  153. package/dist/markdownServiceClient-uDeklhtG.js +480 -0
  154. package/dist/markdownServiceClient.d.ts +20 -0
  155. package/dist/mermaid.core-C4EClWgB.js +15595 -0
  156. package/dist/mermaid.core-CRP55Hm1.cjs +305 -0
  157. package/dist/mermaidFrame/NOTICES.md +1345 -0
  158. package/dist/mermaidFrame/cssCleaner.d.ts +13 -0
  159. package/dist/mermaidFrame/drawer.d.ts +34 -0
  160. package/dist/mermaidFrame/frame.d.ts +1 -0
  161. package/dist/mermaidFrame/frame.js +3307 -0
  162. package/dist/mermaidFrame/katexInert.d.ts +4 -0
  163. package/dist/mermaidFrame/protocol.d.ts +38 -0
  164. package/dist/mermaidFrame/serve.d.ts +14 -0
  165. package/dist/mermaidFrame/svgCleaner.d.ts +4 -0
  166. package/dist/{mindmap-definition-LN4V7U3C-CK67hf6V.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js} +75 -75
  167. package/dist/{mindmap-definition-LN4V7U3C-CBrUse7P.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs} +3 -3
  168. package/dist/pageFetchPort-2H18xcdi.cjs +1 -0
  169. package/dist/pageFetchPort-DVpXsKCz.js +624 -0
  170. package/dist/{pegDiagram-2B236MQR-CwWX4Irn.js → pegDiagram-2B236MQR-BF7gLiB-.js} +3 -3
  171. package/dist/pegDiagram-2B236MQR-BJysMObA.cjs +1 -0
  172. package/dist/{pieDiagram-ENE6RG2P-MO42pSl8.js → pieDiagram-ENE6RG2P-D_YzC3qc.js} +65 -65
  173. package/dist/{pieDiagram-ENE6RG2P-BKvggS7k.cjs → pieDiagram-ENE6RG2P-UMpeIUyV.cjs} +2 -2
  174. package/dist/{providers-BwQK7hZa.js → providers-CSvkTZsr.js} +17 -2
  175. package/dist/{providers-DO2t7ks4.cjs → providers-Cx0FuVQU.cjs} +1 -1
  176. package/dist/{quadrantDiagram-ABIIQ3AL-BHhoAvLS.cjs → quadrantDiagram-ABIIQ3AL-DANY0ipQ.cjs} +1 -1
  177. package/dist/{quadrantDiagram-ABIIQ3AL-CzHgLdS3.js → quadrantDiagram-ABIIQ3AL-DDm-r_6D.js} +57 -57
  178. package/dist/railroadDiagram-RFXS5EU6-CDUd4th1.cjs +1 -0
  179. package/dist/{railroadDiagram-RFXS5EU6-Bu_Fhi5x.js → railroadDiagram-RFXS5EU6-hJ6uB90G.js} +3 -3
  180. package/dist/remarkProcessor.server.d.ts +2 -0
  181. package/dist/{requirementDiagram-TGXJPOKE-CY-JYM-P.js → requirementDiagram-TGXJPOKE-BJef5Jb0.js} +29 -29
  182. package/dist/{requirementDiagram-TGXJPOKE-BhdvQnjG.cjs → requirementDiagram-TGXJPOKE-DaoCo7go.cjs} +1 -1
  183. package/dist/{sankeyDiagram-HTMAVEWB-BmHtjxlW.js → sankeyDiagram-HTMAVEWB-BZQs0bE-.js} +48 -48
  184. package/dist/{sankeyDiagram-HTMAVEWB-CUeYKZeQ.cjs → sankeyDiagram-HTMAVEWB-DXiv0YOu.cjs} +3 -3
  185. package/dist/{sequenceDiagram-DBY2YBRQ-GepntdDB.cjs → sequenceDiagram-DBY2YBRQ-CJGpsnsv.cjs} +1 -1
  186. package/dist/{sequenceDiagram-DBY2YBRQ-Cn2CC9BC.js → sequenceDiagram-DBY2YBRQ-D05U2w26.js} +86 -86
  187. package/dist/serviceClient.cjs +1 -0
  188. package/dist/serviceClient.d.ts +3 -0
  189. package/dist/serviceClient.js +9 -0
  190. package/dist/{sizeCapture-X5ZJPWSS-CZF99dy_.js → sizeCapture-X5ZJPWSS-DTr0Vm61.js} +1 -1
  191. package/dist/sizeCapture-X5ZJPWSS-DjuH1zNP.cjs +1 -0
  192. package/dist/{stateDiagram-2N3HPSRC-CCbBvBua.js → stateDiagram-2N3HPSRC-B8nvJKpB.js} +20 -20
  193. package/dist/stateDiagram-2N3HPSRC-BrB47FD-.cjs +1 -0
  194. package/dist/stateDiagram-v2-6OUMAXLB-CC8gOGDK.cjs +1 -0
  195. package/dist/{stateDiagram-v2-6OUMAXLB-_A1QESxx.js → stateDiagram-v2-6OUMAXLB-CV-JqAeP.js} +2 -2
  196. package/dist/styles/markdown.css +1 -1
  197. package/dist/styles/markdown.standalone.css +1 -1
  198. package/dist/{swimlanes-5IMT3BWC-B-BDM_Ae.js → swimlanes-5IMT3BWC-BPtufzUd.js} +3 -3
  199. package/dist/swimlanes-5IMT3BWC-WAbDPRgt.cjs +1 -0
  200. package/dist/{swimlanesDiagram-G3AALYLV-BysT2rWl.js → swimlanesDiagram-G3AALYLV-BQKEmJFX.js} +2 -2
  201. package/dist/{swimlanesDiagram-G3AALYLV-DZuQxKuB.cjs → swimlanesDiagram-G3AALYLV-BTwwtLZL.cjs} +1 -1
  202. package/dist/{timeline-definition-FHXFAJF6-DVzdzbl1.js → timeline-definition-FHXFAJF6-DJ6GV7Fz.js} +34 -34
  203. package/dist/{timeline-definition-FHXFAJF6-oFf_sUOI.cjs → timeline-definition-FHXFAJF6-qdkrah7t.cjs} +1 -1
  204. package/dist/vennDiagram-L72KCM5P-B5onSWPA.cjs +34 -0
  205. package/dist/{vennDiagram-L72KCM5P-Bm1TGZux.js → vennDiagram-L72KCM5P-DWnnndTj.js} +196 -196
  206. package/dist/viewer-settings.cjs +1 -1
  207. package/dist/viewer-settings.d.ts +8 -0
  208. package/dist/viewer-settings.js +11 -5
  209. package/dist/{wardleyDiagram-EHGQE667-BC_1RAbp.js → wardleyDiagram-EHGQE667-DFmDgQSb.js} +41 -41
  210. package/dist/{wardleyDiagram-EHGQE667-CqB3gLCH.cjs → wardleyDiagram-EHGQE667-DdeBbvVM.cjs} +2 -2
  211. package/dist/{xychartDiagram-FW5EYKEG-a1vb5UxD.cjs → xychartDiagram-FW5EYKEG-CiJQMClv.cjs} +1 -1
  212. package/dist/{xychartDiagram-FW5EYKEG-ClITdEhV.js → xychartDiagram-FW5EYKEG-L2Kj4cZA.js} +28 -28
  213. package/package.json +29 -13
  214. package/dist/abnfDiagram-VRR7QNED-Crz-ChMJ.cjs +0 -1
  215. package/dist/arc-BKGy6Me1.js +0 -83
  216. package/dist/arc-CYJCyviq.cjs +0 -1
  217. package/dist/architectureDiagram-ZJ3FMSHR-gTB8pttO.cjs +0 -36
  218. package/dist/channel-BKoPLS2j.cjs +0 -1
  219. package/dist/chunk-2Q5K7J3B-DgtYKcDs.cjs +0 -1
  220. package/dist/chunk-32BRIVSS-D-6GBFtx.cjs +0 -1
  221. package/dist/chunk-JWPE2WC7-5sd39cpa.cjs +0 -1
  222. package/dist/chunk-RYQCIY6F-BBTBydZd.cjs +0 -1
  223. package/dist/chunk-VR4S4FIN-CHKLwvYh.cjs +0 -1
  224. package/dist/chunk-XXDRQBXY-DttkP7wv.cjs +0 -1
  225. package/dist/classDiagram-OUVF2IWQ-BKruajP_.cjs +0 -1
  226. package/dist/classDiagram-v2-EOCWNBFH-BKruajP_.cjs +0 -1
  227. package/dist/cose-bilkent-JH36ORCC-Cjfa6NyL.cjs +0 -1
  228. package/dist/cynefinDiagram-TSTJHNR4-B3boTACW.cjs +0 -62
  229. package/dist/dagre-VKFMJZFB-DF3Mvuas.cjs +0 -4
  230. package/dist/diagram-G47NLZAW-CKIEbGLS.cjs +0 -24
  231. package/dist/diagram-NH7WQ7WH-D6wMwkLQ.cjs +0 -24
  232. package/dist/diagram-WEI45ONY-SYHw7k8b.cjs +0 -41
  233. package/dist/ebnfDiagram-CCIWWBDH-23bjk9FU.cjs +0 -1
  234. package/dist/errors-BW5JXRoX.cjs +0 -1
  235. package/dist/errors-Blk_XJ9C.js +0 -55
  236. package/dist/extractHeadings-DlQcPv5N.js +0 -20361
  237. package/dist/extractHeadings-wWAipplS.cjs +0 -315
  238. package/dist/flowDiagram-23GEKE2U-CRC9U6qD.cjs +0 -1
  239. package/dist/flowDiagram-23GEKE2U-CRo7TM3K.js +0 -7
  240. package/dist/ganttDiagram-NO4QXBWP-CR55KG5d.cjs +0 -292
  241. package/dist/gitGraphDiagram-IHSO6WYX-BWYUn1Bi.cjs +0 -106
  242. package/dist/infoDiagram-FWYZ7A6U-CsUGc58_.cjs +0 -2
  243. package/dist/linear-DwqXGYLc.cjs +0 -1
  244. package/dist/linkCardServer/addressGuard.server.d.ts +0 -25
  245. package/dist/linkCardServer/pageFetch.server.d.ts +0 -37
  246. package/dist/linkCards-1JxY8wdm.js +0 -48
  247. package/dist/linkCards-Bjd_vW39.cjs +0 -1
  248. package/dist/pegDiagram-2B236MQR-C5pLIpKI.cjs +0 -1
  249. package/dist/railroadDiagram-RFXS5EU6-CwGmOFD_.cjs +0 -1
  250. package/dist/sizeCapture-X5ZJPWSS-Cd-k8xwk.cjs +0 -1
  251. package/dist/stateDiagram-2N3HPSRC-D2cvrAtN.cjs +0 -1
  252. package/dist/stateDiagram-v2-6OUMAXLB-BaktPIVY.cjs +0 -1
  253. package/dist/swimlanes-5IMT3BWC-DtdLK5z3.cjs +0 -1
  254. package/dist/vennDiagram-L72KCM5P-Ba2FGeN1.cjs +0 -34
  255. /package/dist/linkCardServer/{htmlEncoding.server.d.ts → htmlEncoding.d.ts} +0 -0
  256. /package/dist/linkCardServer/{metadataCache.server.d.ts → metadataCache.d.ts} +0 -0
@@ -0,0 +1,292 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./mermaid.core-CRP55Hm1.cjs"),Mt=require("./linear-CKPQExK8.cjs"),Sn=require("./init-CHZsXQcr.cjs");function Yn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Fn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Un(t){return t}var qt=1,ae=2,ye=3,jt=4,Ae=1e-6;function En(t){return"translate("+t+",0)"}function In(t){return"translate(0,"+t+")"}function Ln(t){return e=>+t(e)}function An(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Wn(){return!this.__axis}function tn(t,e){var n=[],r=null,i=null,s=6,o=6,y=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,M=t===qt||t===jt?-1:1,b=t===jt||t===ae?"x":"y",P=t===qt||t===ye?En:In;function S(Y){var Z=r??(e.ticks?e.ticks.apply(e,n):e.domain()),q=i??(e.tickFormat?e.tickFormat.apply(e,n):Un),v=Math.max(s,0)+y,U=e.range(),R=+U[0]+F,E=+U[U.length-1]+F,z=(e.bandwidth?An:Ln)(e.copy(),F),X=Y.selection?Y.selection():Y,T=X.selectAll(".domain").data([null]),k=X.selectAll(".tick").data(Z,e).order(),p=k.exit(),L=k.enter().append("g").attr("class","tick"),x=k.select("line"),C=k.select("text");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(b+"2",M*s)),C=C.merge(L.append("text").attr("fill","currentColor").attr(b,M*v).attr("dy",t===qt?"0em":t===ye?"0.71em":"0.32em")),Y!==X&&(T=T.transition(Y),k=k.transition(Y),x=x.transition(Y),C=C.transition(Y),p=p.transition(Y).attr("opacity",Ae).attr("transform",function(D){return isFinite(D=z(D))?P(D+F):this.getAttribute("transform")}),L.attr("opacity",Ae).attr("transform",function(D){var w=this.parentNode.__axis;return P((w&&isFinite(w=w(D))?w:z(D))+F)})),p.remove(),T.attr("d",t===jt||t===ae?o?"M"+M*o+","+R+"H"+F+"V"+E+"H"+M*o:"M"+F+","+R+"V"+E:o?"M"+R+","+M*o+"V"+F+"H"+E+"V"+M*o:"M"+R+","+F+"H"+E),k.attr("opacity",1).attr("transform",function(D){return P(z(D)+F)}),x.attr(b+"2",M*s),C.attr(b,M*v).text(q),X.filter(Wn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===jt?"end":"middle"),X.each(function(){this.__axis=z})}return S.scale=function(Y){return arguments.length?(e=Y,S):e},S.ticks=function(){return n=Array.from(arguments),S},S.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),S):n.slice()},S.tickValues=function(Y){return arguments.length?(r=Y==null?null:Array.from(Y),S):r&&r.slice()},S.tickFormat=function(Y){return arguments.length?(i=Y,S):i},S.tickSize=function(Y){return arguments.length?(s=o=+Y,S):s},S.tickSizeInner=function(Y){return arguments.length?(s=+Y,S):s},S.tickSizeOuter=function(Y){return arguments.length?(o=+Y,S):o},S.tickPadding=function(Y){return arguments.length?(y=+Y,S):y},S.offset=function(Y){return arguments.length?(F=+Y,S):F},S}function $n(t){return tn(qt,t)}function On(t){return tn(ye,t)}const Hn=Math.PI/180,Nn=180/Math.PI,Kt=18,en=.96422,nn=1,rn=.82521,an=4/29,St=6/29,sn=3*St*St,Pn=St*St*St;function on(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return cn(t);t instanceof a.Rgb||(t=a.rgbConvert(t));var e=ue(t.r),n=ue(t.g),r=ue(t.b),i=se((.2225045*e+.7168786*n+.0606169*r)/nn),s,o;return e===n&&n===r?s=o=i:(s=se((.4360747*e+.3850649*n+.1430804*r)/en),o=se((.0139322*e+.0971045*n+.7141733*r)/rn)),new lt(116*i-16,500*(s-i),200*(i-o),t.opacity)}function Vn(t,e,n,r){return arguments.length===1?on(t):new lt(t,e,n,r??1)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}a.define(lt,Vn,a.extend(a.Color$1,{brighter(t){return new lt(this.l+Kt*(t??1),this.a,this.b,this.opacity)},darker(t){return new lt(this.l-Kt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=en*oe(e),t=nn*oe(t),n=rn*oe(n),new a.Rgb(ce(3.1338561*e-1.6168667*t-.4906146*n),ce(-.9787684*e+1.9161415*t+.033454*n),ce(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function se(t){return t>Pn?Math.pow(t,1/3):t/sn+an}function oe(t){return t>St?t*t*t:sn*(t-an)}function ce(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ue(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Rn(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=on(t)),t.a===0&&t.b===0)return new dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Nn;return new dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,e,n,r){return arguments.length===1?Rn(t):new dt(t,e,n,r??1)}function dt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function cn(t){if(isNaN(t.h))return new lt(t.l,0,0,t.opacity);var e=t.h*Hn;return new lt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}a.define(dt,ke,a.extend(a.Color$1,{brighter(t){return new dt(this.h,this.c,this.l+Kt*(t??1),this.opacity)},darker(t){return new dt(this.h,this.c,this.l-Kt*(t??1),this.opacity)},rgb(){return cn(this).rgb()}}));function zn(t){return function(e,n){var r=t((e=ke(e)).h,(n=ke(n)).h),i=a.nogamma(e.c,n.c),s=a.nogamma(e.l,n.l),o=a.nogamma(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=i(y),e.l=s(y),e.opacity=o(y),e+""}}}const jn=zn(a.hue);function qn(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],o;return s<i&&(o=n,n=r,r=o,o=i,i=s,s=o),t[n]=e.floor(i),t[r]=e.ceil(s),t}const le=new Date,fe=new Date;function nt(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),y=i.ceil(s);return s-o<y-s?o:y},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,y)=>{const F=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s<o)||!(y>0))return F;let M;do F.push(M=new Date(+s)),e(s,y),t(s);while(M<s&&s<o);return F},i.filter=s=>nt(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;e(o,-1),!s(o););else for(;--y>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(le.setTime(+s),fe.setTime(+o),t(le),t(fe),Math.floor(n(le,fe))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Ft=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ft.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ft);Ft.range;const ht=1e3,ot=ht*60,mt=ot*60,gt=mt*24,_e=gt*7,We=gt*30,de=gt*365,pt=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds());pt.range;const Ot=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*ot)},(t,e)=>(e-t)/ot,t=>t.getMinutes());Ot.range;const Bn=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ot)},(t,e)=>(e-t)/ot,t=>t.getUTCMinutes());Bn.range;const Ht=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*ot)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getHours());Ht.range;const Zn=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCHours());Zn.range;const vt=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ot)/gt,t=>t.getDate()-1);vt.range;const be=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/gt,t=>t.getUTCDate()-1);be.range;const Xn=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/gt,t=>Math.floor(t/gt));Xn.range;function _t(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ot)/_e)}const Vt=_t(0),Nt=_t(1),un=_t(2),ln=_t(3),Tt=_t(4),fn=_t(5),dn=_t(6);Vt.range;Nt.range;un.range;ln.range;Tt.range;fn.range;dn.range;function bt(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/_e)}const hn=bt(0),te=bt(1),Gn=bt(2),Qn=bt(3),Ut=bt(4),Jn=bt(5),Kn=bt(6);hn.range;te.range;Gn.range;Qn.range;Ut.range;Jn.range;Kn.range;const Pt=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Pt.range;const tr=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());tr.range;const yt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});yt.range;const xt=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function er(t,e,n,r,i,s){const o=[[pt,1,ht],[pt,5,5*ht],[pt,15,15*ht],[pt,30,30*ht],[s,1,ot],[s,5,5*ot],[s,15,15*ot],[s,30,30*ot],[i,1,mt],[i,3,3*mt],[i,6,6*mt],[i,12,12*mt],[r,1,gt],[r,2,2*gt],[n,1,_e],[e,1,We],[e,3,3*We],[t,1,de]];function y(M,b,P){const S=b<M;S&&([M,b]=[b,M]);const Y=P&&typeof P.range=="function"?P:F(M,b,P),Z=Y?Y.range(M,+b+1):[];return S?Z.reverse():Z}function F(M,b,P){const S=Math.abs(b-M)/P,Y=Mt.bisector(([,,v])=>v).right(o,S);if(Y===o.length)return t.every(Mt.tickStep(M/de,b/de,P));if(Y===0)return Ft.every(Math.max(Mt.tickStep(M,b,P),1));const[Z,q]=o[S/o[Y-1][2]<o[Y][2]/S?Y-1:Y];return Z.every(q)}return[y,F]}const[nr,rr]=er(yt,Pt,Vt,vt,Ht,Ot);function he(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function me(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function At(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function ir(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,o=t.shortDays,y=t.months,F=t.shortMonths,M=Wt(i),b=$t(i),P=Wt(s),S=$t(s),Y=Wt(o),Z=$t(o),q=Wt(y),v=$t(y),U=Wt(F),R=$t(F),E={a:m,A:I,b:c,B:W,c:null,d:Ve,e:Ve,f:Mr,g:$r,G:Hr,H:wr,I:Dr,j:Cr,L:mn,m:Sr,M:Yr,p:l,q:K,Q:je,s:qe,S:Fr,u:Ur,U:Er,V:Ir,w:Lr,W:Ar,x:null,X:null,y:Wr,Y:Or,Z:Nr,"%":ze},z={a:f,A:$,b:O,B:G,c:null,d:Re,e:Re,f:zr,g:ti,G:ni,H:Pr,I:Vr,j:Rr,L:yn,m:jr,M:qr,p:H,q:J,Q:je,s:qe,S:Br,u:Zr,U:Xr,V:Gr,w:Qr,W:Jr,x:null,X:null,y:Kr,Y:ei,Z:ri,"%":ze},X={a:x,A:C,b:D,B:w,c:u,d:Ne,e:Ne,f:Tr,g:He,G:Oe,H:Pe,I:Pe,j:yr,L:vr,m:gr,M:kr,p:L,q:mr,Q:_r,s:br,S:pr,u:ur,U:lr,V:fr,w:cr,W:dr,x:g,X:_,y:He,Y:Oe,Z:hr,"%":xr};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);function T(h,N){return function(V){var d=[],tt=-1,A=0,Q=h.length,B,it,at;for(V instanceof Date||(V=new Date(+V));++tt<Q;)h.charCodeAt(tt)===37&&(d.push(h.slice(A,tt)),(it=$e[B=h.charAt(++tt)])!=null?B=h.charAt(++tt):it=B==="e"?" ":"0",(at=N[B])&&(B=at(V,it)),d.push(B),A=tt+1);return d.push(h.slice(A,tt)),d.join("")}}function k(h,N){return function(V){var d=At(1900,void 0,1),tt=p(d,h,V+="",0),A,Q;if(tt!=V.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(N&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(A=me(At(d.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?te.ceil(A):te(A),A=be.offset(A,(d.V-1)*7),d.y=A.getUTCFullYear(),d.m=A.getUTCMonth(),d.d=A.getUTCDate()+(d.w+6)%7):(A=he(At(d.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Nt.ceil(A):Nt(A),A=vt.offset(A,(d.V-1)*7),d.y=A.getFullYear(),d.m=A.getMonth(),d.d=A.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),Q="Z"in d?me(At(d.y,0,1)).getUTCDay():he(At(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(Q+5)%7:d.w+d.U*7-(Q+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,me(d)):he(d)}}function p(h,N,V,d){for(var tt=0,A=N.length,Q=V.length,B,it;tt<A;){if(d>=Q)return-1;if(B=N.charCodeAt(tt++),B===37){if(B=N.charAt(tt++),it=X[B in $e?N.charAt(tt++):B],!it||(d=it(h,V,d))<0)return-1}else if(B!=V.charCodeAt(d++))return-1}return d}function L(h,N,V){var d=M.exec(N.slice(V));return d?(h.p=b.get(d[0].toLowerCase()),V+d[0].length):-1}function x(h,N,V){var d=Y.exec(N.slice(V));return d?(h.w=Z.get(d[0].toLowerCase()),V+d[0].length):-1}function C(h,N,V){var d=P.exec(N.slice(V));return d?(h.w=S.get(d[0].toLowerCase()),V+d[0].length):-1}function D(h,N,V){var d=U.exec(N.slice(V));return d?(h.m=R.get(d[0].toLowerCase()),V+d[0].length):-1}function w(h,N,V){var d=q.exec(N.slice(V));return d?(h.m=v.get(d[0].toLowerCase()),V+d[0].length):-1}function u(h,N,V){return p(h,e,N,V)}function g(h,N,V){return p(h,n,N,V)}function _(h,N,V){return p(h,r,N,V)}function m(h){return o[h.getDay()]}function I(h){return s[h.getDay()]}function c(h){return F[h.getMonth()]}function W(h){return y[h.getMonth()]}function l(h){return i[+(h.getHours()>=12)]}function K(h){return 1+~~(h.getMonth()/3)}function f(h){return o[h.getUTCDay()]}function $(h){return s[h.getUTCDay()]}function O(h){return F[h.getUTCMonth()]}function G(h){return y[h.getUTCMonth()]}function H(h){return i[+(h.getUTCHours()>=12)]}function J(h){return 1+~~(h.getUTCMonth()/3)}return{format:function(h){var N=T(h+="",E);return N.toString=function(){return h},N},parse:function(h){var N=k(h+="",!1);return N.toString=function(){return h},N},utcFormat:function(h){var N=T(h+="",z);return N.toString=function(){return h},N},utcParse:function(h){var N=k(h+="",!0);return N.toString=function(){return h},N}}}var $e={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,ar=/^%/,sr=/[\\^$*+?|[\]().{}]/g;function j(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function or(t){return t.replace(sr,"\\$&")}function Wt(t){return new RegExp("^(?:"+t.map(or).join("|")+")","i")}function $t(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function cr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ur(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function dr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Oe(t,e,n){var r=rt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function He(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function mr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function gr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ne(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function yr(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function kr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=rt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xr(t,e,n){var r=ar.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function _r(t,e,n){var r=rt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function br(t,e,n){var r=rt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ve(t,e){return j(t.getDate(),e,2)}function wr(t,e){return j(t.getHours(),e,2)}function Dr(t,e){return j(t.getHours()%12||12,e,2)}function Cr(t,e){return j(1+vt.count(yt(t),t),e,3)}function mn(t,e){return j(t.getMilliseconds(),e,3)}function Mr(t,e){return mn(t,e)+"000"}function Sr(t,e){return j(t.getMonth()+1,e,2)}function Yr(t,e){return j(t.getMinutes(),e,2)}function Fr(t,e){return j(t.getSeconds(),e,2)}function Ur(t){var e=t.getDay();return e===0?7:e}function Er(t,e){return j(Vt.count(yt(t)-1,t),e,2)}function gn(t){var e=t.getDay();return e>=4||e===0?Tt(t):Tt.ceil(t)}function Ir(t,e){return t=gn(t),j(Tt.count(yt(t),t)+(yt(t).getDay()===4),e,2)}function Lr(t){return t.getDay()}function Ar(t,e){return j(Nt.count(yt(t)-1,t),e,2)}function Wr(t,e){return j(t.getFullYear()%100,e,2)}function $r(t,e){return t=gn(t),j(t.getFullYear()%100,e,2)}function Or(t,e){return j(t.getFullYear()%1e4,e,4)}function Hr(t,e){var n=t.getDay();return t=n>=4||n===0?Tt(t):Tt.ceil(t),j(t.getFullYear()%1e4,e,4)}function Nr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+j(e/60|0,"0",2)+j(e%60,"0",2)}function Re(t,e){return j(t.getUTCDate(),e,2)}function Pr(t,e){return j(t.getUTCHours(),e,2)}function Vr(t,e){return j(t.getUTCHours()%12||12,e,2)}function Rr(t,e){return j(1+be.count(xt(t),t),e,3)}function yn(t,e){return j(t.getUTCMilliseconds(),e,3)}function zr(t,e){return yn(t,e)+"000"}function jr(t,e){return j(t.getUTCMonth()+1,e,2)}function qr(t,e){return j(t.getUTCMinutes(),e,2)}function Br(t,e){return j(t.getUTCSeconds(),e,2)}function Zr(t){var e=t.getUTCDay();return e===0?7:e}function Xr(t,e){return j(hn.count(xt(t)-1,t),e,2)}function kn(t){var e=t.getUTCDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function Gr(t,e){return t=kn(t),j(Ut.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function Qr(t){return t.getUTCDay()}function Jr(t,e){return j(te.count(xt(t)-1,t),e,2)}function Kr(t,e){return j(t.getUTCFullYear()%100,e,2)}function ti(t,e){return t=kn(t),j(t.getUTCFullYear()%100,e,2)}function ei(t,e){return j(t.getUTCFullYear()%1e4,e,4)}function ni(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ut(t):Ut.ceil(t),j(t.getUTCFullYear()%1e4,e,4)}function ri(){return"+0000"}function ze(){return"%"}function je(t){return+t}function qe(t){return Math.floor(+t/1e3)}var Dt,ee;ii({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ii(t){return Dt=ir(t),ee=Dt.format,Dt.parse,Dt.utcFormat,Dt.utcParse,Dt}function ai(t){return new Date(t)}function si(t){return t instanceof Date?+t:+new Date(+t)}function pn(t,e,n,r,i,s,o,y,F,M){var b=Mt.continuous(),P=b.invert,S=b.domain,Y=M(".%L"),Z=M(":%S"),q=M("%I:%M"),v=M("%I %p"),U=M("%a %d"),R=M("%b %d"),E=M("%B"),z=M("%Y");function X(T){return(F(T)<T?Y:y(T)<T?Z:o(T)<T?q:s(T)<T?v:r(T)<T?i(T)<T?U:R:n(T)<T?E:z)(T)}return b.invert=function(T){return new Date(P(T))},b.domain=function(T){return arguments.length?S(Array.from(T,si)):S().map(ai)},b.ticks=function(T){var k=S();return t(k[0],k[k.length-1],T??10)},b.tickFormat=function(T,k){return k==null?X:M(k)},b.nice=function(T){var k=S();return(!T||typeof T.range!="function")&&(T=e(k[0],k[k.length-1],T??10)),T?S(qn(k,T)):b},b.copy=function(){return Mt.copy(b,pn(t,e,n,r,i,s,o,y,F,M))},b}function oi(){return Sn.initRange.apply(pn(nr,rr,yt,Pt,Vt,vt,Ht,Ot,pt,ee).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Bt={exports:{}},ci=Bt.exports,Be;function ui(){return Be||(Be=1,(function(t,e){(function(n,r){t.exports=r()})(ci,(function(){var n="day";return function(r,i,s){var o=function(M){return M.add(4-M.isoWeekday(),n)},y=i.prototype;y.isoWeekYear=function(){return o(this).year()},y.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),n);var b,P,S,Y,Z=o(this),q=(b=this.isoWeekYear(),P=this.$u,S=(P?s.utc:s)().year(b).startOf("year"),Y=4-S.isoWeekday(),S.isoWeekday()>4&&(Y+=7),S.add(Y,n));return Z.diff(q,"week")+1},y.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var F=y.startOf;y.startOf=function(M,b){var P=this.$utils(),S=!!P.u(b)||b;return P.p(M)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(M,b)}}}))})(Bt)),Bt.exports}var li=ui();const fi=a.getDefaultExportFromCjs(li);var Zt={exports:{}},di=Zt.exports,Ze;function hi(){return Ze||(Ze=1,(function(t,e){(function(n,r){t.exports=r()})(di,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,o=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,F={},M=function(v){return(v=+v)+(v>68?1900:2e3)},b=function(v){return function(U){this[v]=+U}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(U){if(!U||U==="Z")return 0;var R=U.match(/([+-]|\d\d)/g),E=60*R[1]+(+R[2]||0);return E===0?0:R[0]==="+"?-E:E})(v)}],S=function(v){var U=F[v];return U&&(U.indexOf?U:U.s.concat(U.f))},Y=function(v,U){var R,E=F.meridiem;if(E){for(var z=1;z<=24;z+=1)if(v.indexOf(E(z,0,U))>-1){R=z>12;break}}else R=v===(U?"pm":"PM");return R},Z={A:[y,function(v){this.afternoon=Y(v,!1)}],a:[y,function(v){this.afternoon=Y(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,b("seconds")],ss:[o,b("seconds")],m:[o,b("minutes")],mm:[o,b("minutes")],H:[o,b("hours")],h:[o,b("hours")],HH:[o,b("hours")],hh:[o,b("hours")],D:[o,b("day")],DD:[s,b("day")],Do:[y,function(v){var U=F.ordinal,R=v.match(/\d+/);if(this.day=R[0],U)for(var E=1;E<=31;E+=1)U(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[o,b("week")],ww:[s,b("week")],M:[o,b("month")],MM:[s,b("month")],MMM:[y,function(v){var U=S("months"),R=(S("monthsShort")||U.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[y,function(v){var U=S("months").indexOf(v)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,b("year")],YY:[s,function(v){this.year=M(v)}],YYYY:[/\d{4}/,b("year")],Z:P,ZZ:P};function q(v){var U,R;U=v,R=F&&F.formats;for(var E=(v=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,C,D){var w=D&&D.toUpperCase();return C||R[D]||n[D]||R[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(u,g,_){return g||_.slice(1)}))}))).match(r),z=E.length,X=0;X<z;X+=1){var T=E[X],k=Z[T],p=k&&k[0],L=k&&k[1];E[X]=L?{regex:p,parser:L}:T.replace(/^\[|\]$/g,"")}return function(x){for(var C={},D=0,w=0;D<z;D+=1){var u=E[D];if(typeof u=="string")w+=u.length;else{var g=u.regex,_=u.parser,m=x.slice(w),I=g.exec(m)[0];_.call(C,I),x=x.replace(I,"")}}return(function(c){var W=c.afternoon;if(W!==void 0){var l=c.hours;W?l<12&&(c.hours+=12):l===12&&(c.hours=0),delete c.afternoon}})(C),C}}return function(v,U,R){R.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(M=v.parseTwoDigitYear);var E=U.prototype,z=E.parse;E.parse=function(X){var T=X.date,k=X.utc,p=X.args;this.$u=k;var L=p[1];if(typeof L=="string"){var x=p[2]===!0,C=p[3]===!0,D=x||C,w=p[2];C&&(w=p[2]),F=this.$locale(),!x&&w&&(F=R.Ls[w]),this.$d=(function(m,I,c,W){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*m);var l=q(I)(m),K=l.year,f=l.month,$=l.day,O=l.hours,G=l.minutes,H=l.seconds,J=l.milliseconds,h=l.zone,N=l.week,V=new Date,d=$||(K||f?1:V.getDate()),tt=K||V.getFullYear(),A=0;K&&!f||(A=f>0?f-1:V.getMonth());var Q,B=O||0,it=G||0,at=H||0,kt=J||0;return h?new Date(Date.UTC(tt,A,d,B,it,at,kt+60*h.offset*1e3)):c?new Date(Date.UTC(tt,A,d,B,it,at,kt)):(Q=new Date(tt,A,d,B,it,at,kt),N&&(Q=W(Q).week(N).toDate()),Q)}catch{return new Date("")}})(T,L,k,R),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),D&&T!=this.format(L)&&(this.$d=new Date("")),F={}}else if(L instanceof Array)for(var u=L.length,g=1;g<=u;g+=1){p[1]=L[g-1];var _=R.apply(this,p);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}g===u&&(this.$d=new Date(""))}else z.call(this,X)}}}))})(Zt)),Zt.exports}var mi=hi();const gi=a.getDefaultExportFromCjs(mi);var Xt={exports:{}},yi=Xt.exports,Xe;function ki(){return Xe||(Xe=1,(function(t,e){(function(n,r){t.exports=r()})(yi,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(o){var y=this,F=this.$locale();if(!this.isValid())return s.bind(this)(o);var M=this.$utils(),b=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(P){switch(P){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return F.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return F.ordinal(y.week(),"W");case"w":case"ww":return M.s(y.week(),P==="w"?1:2,"0");case"W":case"WW":return M.s(y.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return M.s(String(y.$H===0?24:y.$H),P==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return P}}));return s.bind(this)(b)}}}))})(Xt)),Xt.exports}var pi=ki();const vi=a.getDefaultExportFromCjs(pi);var Gt={exports:{}},Ti=Gt.exports,Ge;function xi(){return Ge||(Ge=1,(function(t,e){(function(n,r){t.exports=r()})(Ti,(function(){var n,r,i=1e3,s=6e4,o=36e5,y=864e5,F=31536e6,M=2628e6,b=/^(-|\+)?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,S={years:F,months:M,days:y,hours:o,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},Y=function(T){return T instanceof z},Z=function(T,k,p){return new z(T,p,k.$l)},q=function(T){return r.p(T)+"s"},v=function(T){return T<0},U=function(T){return v(T)?Math.ceil(T):Math.floor(T)},R=function(T){return Math.abs(T)},E=function(T,k){return T?v(T)?{negative:!0,format:""+R(T)+k}:{negative:!1,format:""+T+k}:{negative:!1,format:""}},z=(function(){function T(p,L,x){var C=this;if(this.$d={},this.$l=x,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return Z(p*S[q(L)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach((function(u){C.$d[q(u)]=p[u]})),this.calMilliseconds(),this;if(typeof p=="string"){var D=p.match(b);if(D){var w=D.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var k=T.prototype;return k.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce((function(L,x){return L+(p.$d[x]||0)*S[x]}),0)},k.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=U(p/F),p%=F,this.$d.months=U(p/M),p%=M,this.$d.days=U(p/y),p%=y,this.$d.hours=U(p/o),p%=o,this.$d.minutes=U(p/s),p%=s,this.$d.seconds=U(p/i),p%=i,this.$d.milliseconds=p},k.toISOString=function(){var p=E(this.$d.years,"Y"),L=E(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var C=E(x,"D"),D=E(this.$d.hours,"H"),w=E(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var g=E(u,"S"),_=p.negative||L.negative||C.negative||D.negative||w.negative||g.negative,m=D.format||w.format||g.format?"T":"",I=(_?"-":"")+"P"+p.format+L.format+C.format+m+D.format+w.format+g.format;return I==="P"||I==="-P"?"P0D":I},k.toJSON=function(){return this.toISOString()},k.format=function(p){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")};return L.replace(P,(function(C,D){return D||String(x[C])}))},k.as=function(p){return this.$ms/S[q(p)]},k.get=function(p){var L=this.$ms,x=q(p);return x==="milliseconds"?L%=1e3:L=x==="weeks"?U(L/S[x]):this.$d[x],L||0},k.add=function(p,L,x){var C;return C=L?p*S[q(L)]:Y(p)?p.$ms:Z(p,this).$ms,Z(this.$ms+C*(x?-1:1),this)},k.subtract=function(p,L){return this.add(p,L,!0)},k.locale=function(p){var L=this.clone();return L.$l=p,L},k.clone=function(){return Z(this.$ms,this)},k.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},T})(),X=function(T,k,p){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")};return function(T,k,p){n=p,r=p().$utils(),p.duration=function(C,D){var w=p.locale();return Z(C,{$l:w},D)},p.isDuration=Y;var L=k.prototype.add,x=k.prototype.subtract;k.prototype.add=function(C,D){return Y(C)?X(this,C,1):L.bind(this)(C,D)},k.prototype.subtract=function(C,D){return Y(C)?X(this,C,-1):x.bind(this)(C,D)}}}))})(Gt)),Gt.exports}var _i=xi();const bi=a.getDefaultExportFromCjs(_i);var pe=(function(){var t=a.__name(function(w,u,g,_){for(g=g||{},_=w.length;_--;g[w[_]]=u);return g},"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],o=[1,30],y=[1,31],F=[1,32],M=[1,33],b=[1,34],P=[1,9],S=[1,10],Y=[1,11],Z=[1,12],q=[1,13],v=[1,14],U=[1,15],R=[1,16],E=[1,19],z=[1,20],X=[1,21],T=[1,22],k=[1,23],p=[1,25],L=[1,35],x={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:a.__name(function(u,g,_,m,I,c,W){var l=c.length-1;switch(I){case 1:return c[l-1];case 2:this.$=[];break;case 3:c[l-1].push(c[l]),this.$=c[l-1];break;case 4:case 5:this.$=c[l];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[l].substr(11)),this.$=c[l].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[l].substr(18);break;case 19:m.TopAxis(),this.$=c[l].substr(8);break;case 20:m.setAxisFormat(c[l].substr(11)),this.$=c[l].substr(11);break;case 21:m.setTickInterval(c[l].substr(13)),this.$=c[l].substr(13);break;case 22:m.setExcludes(c[l].substr(9)),this.$=c[l].substr(9);break;case 23:m.setIncludes(c[l].substr(9)),this.$=c[l].substr(9);break;case 24:m.setTodayMarker(c[l].substr(12)),this.$=c[l].substr(12);break;case 27:m.setDiagramTitle(c[l].substr(6)),this.$=c[l].substr(6);break;case 28:this.$=c[l].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[l].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[l].substr(8)),this.$=c[l].substr(8);break;case 33:m.addTask(c[l-1],c[l]),this.$="task";break;case 34:this.$=c[l-1],m.setClickEvent(c[l-1],c[l],null);break;case 35:this.$=c[l-2],m.setClickEvent(c[l-2],c[l-1],c[l]);break;case 36:this.$=c[l-2],m.setClickEvent(c[l-2],c[l-1],null),m.setLink(c[l-2],c[l]);break;case 37:this.$=c[l-3],m.setClickEvent(c[l-3],c[l-2],c[l-1]),m.setLink(c[l-3],c[l]);break;case 38:this.$=c[l-2],m.setClickEvent(c[l-2],c[l],null),m.setLink(c[l-2],c[l-1]);break;case 39:this.$=c[l-3],m.setClickEvent(c[l-3],c[l-1],c[l]),m.setLink(c[l-3],c[l-2]);break;case 40:this.$=c[l-1],m.setLink(c[l-1],c[l]);break;case 41:case 47:this.$=c[l-1]+" "+c[l];break;case 42:case 43:case 45:this.$=c[l-2]+" "+c[l-1]+" "+c[l];break;case 44:case 46:this.$=c[l-3]+" "+c[l-2]+" "+c[l-1]+" "+c[l];break}},"anonymous"),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:o,17:y,18:F,19:18,20:M,21:b,22:P,23:S,24:Y,25:Z,26:q,27:v,28:U,29:R,30:E,31:z,33:X,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:o,17:y,18:F,19:18,20:M,21:b,22:P,23:S,24:Y,25:Z,26:q,27:v,28:U,29:R,30:E,31:z,33:X,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])],defaultActions:{},parseError:a.__name(function(u,g){if(g.recoverable)this.trace(u);else{var _=new Error(u);throw _.hash=g,_}},"parseError"),parse:a.__name(function(u){var g=this,_=[0],m=[],I=[null],c=[],W=this.table,l="",K=0,f=0,$=2,O=1,G=c.slice.call(arguments,1),H=Object.create(this.lexer),J={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(J.yy[h]=this.yy[h]);H.setInput(u,J.yy),J.yy.lexer=H,J.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var N=H.yylloc;c.push(N);var V=H.options&&H.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(st){_.length=_.length-2*st,I.length=I.length-st,c.length=c.length-st}a.__name(d,"popStack");function tt(){var st;return st=m.pop()||H.lex()||O,typeof st!="number"&&(st instanceof Array&&(m=st,st=m.pop()),st=g.symbols_[st]||st),st}a.__name(tt,"lex");for(var A,Q,B,it,at={},kt,ct,Le,zt;;){if(Q=_[_.length-1],this.defaultActions[Q]?B=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=tt()),B=W[Q]&&W[Q][A]),typeof B>"u"||!B.length||!B[0]){var ie="";zt=[];for(kt in W[Q])this.terminals_[kt]&&kt>$&&zt.push("'"+this.terminals_[kt]+"'");H.showPosition?ie="Parse error on line "+(K+1)+`:
2
+ `+H.showPosition()+`
3
+ Expecting `+zt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ie="Parse error on line "+(K+1)+": Unexpected "+(A==O?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ie,{text:H.match,token:this.terminals_[A]||A,line:H.yylineno,loc:N,expected:zt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(B[0]){case 1:_.push(A),I.push(H.yytext),c.push(H.yylloc),_.push(B[1]),A=null,f=H.yyleng,l=H.yytext,K=H.yylineno,N=H.yylloc;break;case 2:if(ct=this.productions_[B[1]][1],at.$=I[I.length-ct],at._$={first_line:c[c.length-(ct||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ct||1)].first_column,last_column:c[c.length-1].last_column},V&&(at._$.range=[c[c.length-(ct||1)].range[0],c[c.length-1].range[1]]),it=this.performAction.apply(at,[l,f,K,J.yy,B[1],I,c].concat(G)),typeof it<"u")return it;ct&&(_=_.slice(0,-1*ct*2),I=I.slice(0,-1*ct),c=c.slice(0,-1*ct)),_.push(this.productions_[B[1]][0]),I.push(at.$),c.push(at._$),Le=W[_[_.length-2]][_[_.length-1]],_.push(Le);break;case 3:return!0}}return!0},"parse")},C=(function(){var w={EOF:1,parseError:a.__name(function(g,_){if(this.yy.parser)this.yy.parser.parseError(g,_);else throw new Error(g)},"parseError"),setInput:a.__name(function(u,g){return this.yy=g||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a.__name(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var g=u.match(/(?:\r\n?|\n).*/g);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),u},"input"),unput:a.__name(function(u){var g=u.length,_=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===m.length?this.yylloc.first_column:0)+m[m.length-_.length].length-_[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(u){this.unput(this.match.slice(u))},"less"),pastInput:a.__name(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var u=this.pastInput(),g=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
5
+ `+g+"^"},"showPosition"),test_match:a.__name(function(u,g){var _,m,I;if(this.options.backtrack_lexer&&(I={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(I.yylloc.range=this.yylloc.range.slice(0))),m=u[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],_=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var c in I)this[c]=I[c];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,g,_,m;this._more||(this.yytext="",this.match="");for(var I=this._currentRules(),c=0;c<I.length;c++)if(_=this._input.match(this.rules[I[c]]),_&&(!g||_[0].length>g[0].length)){if(g=_,m=c,this.options.backtrack_lexer){if(u=this.test_match(_,I[c]),u!==!1)return u;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(u=this.test_match(g,I[m]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a.__name(function(){var g=this.next();return g||this.lex()},"lex"),begin:a.__name(function(g){this.conditionStack.push(g)},"begin"),popState:a.__name(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a.__name(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:a.__name(function(g){this.begin(g)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a.__name(function(g,_,m,I){switch(m){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return w})();x.lexer=C;function D(){this.yy={}}return a.__name(D,"Parser"),D.prototype=x,x.Parser=D,new D})();pe.parser=pe;var wi=pe;a.dayjs2.extend(fi);a.dayjs2.extend(gi);a.dayjs2.extend(vi);var Qe={friday:5,saturday:6},ut="",we="",De=void 0,Ce="",Et=[],It=[],Me=new Map,Se=[],ne=[],Lt="",Ye="",vn=["active","done","crit","milestone","vert"],Fe=[],Ct="",Rt=!1,Ue=!1,Ee="sunday",re="saturday",ve=0,Di=a.__name(function(){Se=[],ne=[],Lt="",Fe=[],Qt=0,xe=void 0,Jt=void 0,et=[],ut="",we="",Ye="",De=void 0,Ce="",Et=[],It=[],Rt=!1,Ue=!1,ve=0,Me=new Map,Ct="",a.clear(),Ee="sunday",re="saturday"},"clear"),Ci=a.__name(function(t){Ct=t},"setDiagramId"),Mi=a.__name(function(t){we=t},"setAxisFormat"),Si=a.__name(function(){return we},"getAxisFormat"),Yi=a.__name(function(t){De=t},"setTickInterval"),Fi=a.__name(function(){return De},"getTickInterval"),Ui=a.__name(function(t){Ce=t},"setTodayMarker"),Ei=a.__name(function(){return Ce},"getTodayMarker"),Ii=a.__name(function(t){ut=t},"setDateFormat"),Li=a.__name(function(){Rt=!0},"enableInclusiveEndDates"),Ai=a.__name(function(){return Rt},"endDatesAreInclusive"),Wi=a.__name(function(){Ue=!0},"enableTopAxis"),$i=a.__name(function(){return Ue},"topAxisEnabled"),Oi=a.__name(function(t){Ye=t},"setDisplayMode"),Hi=a.__name(function(){return Ye},"getDisplayMode"),Ni=a.__name(function(){return ut},"getDateFormat"),Tn=a.__name((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(r=>r!=="");return[...new Set([...t,...n])]},"mergeTokens"),Pi=a.__name(function(t){Et=Tn(Et,t)},"setIncludes"),Vi=a.__name(function(){return Et},"getIncludes"),Ri=a.__name(function(t){It=Tn(It,t)},"setExcludes"),zi=a.__name(function(){return It},"getExcludes"),ji=a.__name(function(){return Me},"getLinks"),qi=a.__name(function(t){Lt=t,Se.push(t)},"addSection"),Bi=a.__name(function(){return Se},"getSections"),Zi=a.__name(function(){let t=Je();const e=10;let n=0;for(;!t&&n<e;)t=Je(),n++;return ne=et,ne},"getTasks"),xn=a.__name(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return r.includes(i)||r.includes(s)?!1:n.includes("weekends")&&(t.isoWeekday()===Qe[re]||t.isoWeekday()===Qe[re]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(i)||n.includes(s)},"isInvalidDate"),Xi=a.__name(function(t){Ee=t},"setWeekday"),Gi=a.__name(function(){return Ee},"getWeekday"),Qi=a.__name(function(t){re=t},"setWeekend"),_n=a.__name(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=a.dayjs2(t.startTime):i=a.dayjs2(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=a.dayjs2(t.endTime):s=a.dayjs2(t.endTime,e,!0);const[o,y]=Ji(i,s,e,n,r);t.endTime=o.toDate(),t.renderEndTime=y},"checkTaskDates"),Ji=a.__name(function(t,e,n,r,i){let s=!1,o=null;const y=e.add(1e4,"d");for(;t<=e;){if(s||(o=e.toDate()),s=xn(t,n,r,i),s&&(e=e.add(1,"d"),e>y))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,o]},"fixTaskDates"),Te=a.__name(function(t,e,n){if(n=n.trim(),a.__name(y=>{const F=y.trim();return F==="x"||F==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let y=null;for(const M of s.groups.ids.split(" ")){let b=wt(M);b!==void 0&&(!y||b.endTime>y.endTime)&&(y=b)}if(y)return y.endTime;const F=new Date;return F.setHours(0,0,0,0),F}let o=a.dayjs2(n,e.trim(),!0);if(o.isValid())return o.toDate();{a.log.debug("Invalid date:"+n),a.log.debug("With date format:"+e.trim());const y=new Date(n);if(y===void 0||isNaN(y.getTime())||y.getFullYear()<-1e4||y.getFullYear()>1e4)throw new Error("Invalid date:"+n);return y}},"getStartDate"),bn=a.__name(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),wn=a.__name(function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let b=null;for(const S of s.groups.ids.split(" ")){let Y=wt(S);Y!==void 0&&(!b||Y.startTime<b.startTime)&&(b=Y)}if(b)return b.startTime;const P=new Date;return P.setHours(0,0,0,0),P}let o=a.dayjs2(n,e.trim(),!0);if(o.isValid())return r&&(o=o.add(1,"d")),o.toDate();let y=a.dayjs2(t);const[F,M]=bn(n);if(!Number.isNaN(F)){const b=y.add(F,M);b.isValid()&&(y=b)}return y.toDate()},"getEndDate"),Qt=0,Yt=a.__name(function(t){return t===void 0?(Qt=Qt+1,"task"+Qt):t},"parseId"),Ki=a.__name(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Ie(r,i,vn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();let s="";switch(r.length){case 1:i.id=Yt(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Yt(),i.startTime=Te(void 0,ut,r[0]),s=r[1];break;case 3:i.id=Yt(r[0]),i.startTime=Te(void 0,ut,r[1]),s=r[2];break}return s&&(i.endTime=wn(i.startTime,ut,s,Rt),i.manualEndTime=a.dayjs2(s,"YYYY-MM-DD",!0).isValid(),_n(i,ut,It,Et)),i},"compileData"),ta=a.__name(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Ie(r,i,vn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Yt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Yt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Yt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i},"parseData"),xe,Jt,et=[],Dn={},ea=a.__name(function(t,e){const n={section:Lt,type:Lt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ta(Jt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Jt,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=ve,ve++);const i=et.push(n);Jt=n.id,Dn[n.id]=i-1},"addTask"),wt=a.__name(function(t){const e=Dn[t];return et[e]},"findTaskById"),na=a.__name(function(t,e){const n={section:Lt,type:Lt,description:t,task:t,classes:[]},r=Ki(xe,e);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,xe=n,ne.push(n)},"addTaskOrg"),Je=a.__name(function(){const t=a.__name(function(n){const r=et[n];let i="";switch(et[n].raw.startTime.type){case"prevTaskEnd":{const s=wt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=Te(void 0,ut,et[n].raw.startTime.startData),i&&(et[n].startTime=i);break}return et[n].startTime&&(et[n].endTime=wn(et[n].startTime,ut,et[n].raw.endTime.data,Rt),et[n].endTime&&(et[n].processed=!0,et[n].manualEndTime=a.dayjs2(et[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),_n(et[n],ut,It,Et))),et[n].processed},"compileTask");let e=!0;for(const[n,r]of et.entries())t(n),e=e&&r.processed;return e},"compileTasks"),ra=a.__name(function(t,e){let n=e;a.getConfig2().securityLevel!=="loose"&&(n=a.distExports.sanitizeUrl(e)),t.split(",").forEach(function(r){wt(r)!==void 0&&(Mn(r,()=>{window.open(n,"_self")}),Me.set(r,n))}),Cn(t,"clickable")},"setLink"),Cn=a.__name(function(t,e){t.split(",").forEach(function(n){let r=wt(n);r!==void 0&&r.classes.push(e)})},"setClass"),ia=a.__name(function(t,e,n){if(a.getConfig2().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let o=r[s].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),r[s]=o}}r.length===0&&r.push(t),wt(t)!==void 0&&Mn(t,()=>{a.utils_default.runFunc(e,...r)})},"setClickFun"),Mn=a.__name(function(t,e){Fe.push(function(){const n=Ct?`${Ct}-${t}`:t,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){const n=Ct?`${Ct}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),aa=a.__name(function(t,e,n){t.split(",").forEach(function(r){ia(r,e,n)}),Cn(t,"clickable")},"setClickEvent"),sa=a.__name(function(t){Fe.forEach(function(e){e(t)})},"bindFunctions"),oa={getConfig:a.__name(()=>a.getConfig2().gantt,"getConfig"),clear:Di,setDateFormat:Ii,getDateFormat:Ni,enableInclusiveEndDates:Li,endDatesAreInclusive:Ai,enableTopAxis:Wi,topAxisEnabled:$i,setAxisFormat:Mi,getAxisFormat:Si,setTickInterval:Yi,getTickInterval:Fi,setTodayMarker:Ui,getTodayMarker:Ei,setAccTitle:a.setAccTitle,getAccTitle:a.getAccTitle,setDiagramTitle:a.setDiagramTitle,getDiagramTitle:a.getDiagramTitle,setDiagramId:Ci,setDisplayMode:Oi,getDisplayMode:Hi,setAccDescription:a.setAccDescription,getAccDescription:a.getAccDescription,addSection:qi,getSections:Bi,getTasks:Zi,addTask:ea,findTaskById:wt,addTaskOrg:na,setIncludes:Pi,getIncludes:Vi,setExcludes:Ri,getExcludes:zi,setClickEvent:aa,setLink:ra,getLinks:ji,bindFunctions:sa,parseDuration:bn,isInvalidDate:xn,setWeekday:Xi,getWeekday:Gi,setWeekend:Qi};function Ie(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",o=new RegExp(s);t[0].match(o)&&(e[i]=!0,t.shift(1),r=!0)})}a.__name(Ie,"getTaskTags");a.dayjs2.extend(bi);var ca=a.__name(function(){a.log.debug("Something is calling, setConf, remove the call")},"setConf"),Ke={monday:Nt,tuesday:un,wednesday:ln,thursday:Tt,friday:fn,saturday:dn,sunday:Vt},ua=a.__name((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,o)=>s.startTime-o.startTime||s.order-o.order),i=0;for(const s of r)for(let o=0;o<n.length;o++)if(s.startTime>=n[o]){n[o]=s.endTime,s.order=o+e,o>i&&(i=o);break}return i},"getMaxIntersections"),ft,ge=1e4,la=a.__name(function(t,e,n,r){const i=a.getConfig2().gantt;r.db.setDiagramId(e);const s=a.getConfig2().securityLevel;let o;s==="sandbox"&&(o=a.select("#i"+e));const y=s==="sandbox"?a.select(o.nodes()[0].contentDocument.body):a.select("body"),F=s==="sandbox"?o.nodes()[0].contentDocument:document,M=F.getElementById(e);ft=M.parentElement.offsetWidth,ft===void 0&&(ft=1200),i.useWidth!==void 0&&(ft=i.useWidth);const b=r.db.getTasks(),P=b.filter(x=>!x.vert);let S=[];for(const x of P)S.push(x.type);S=L(S);const Y={};let Z=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const x={};for(const D of P)x[D.section]===void 0?x[D.section]=[D]:x[D.section].push(D);let C=0;for(const D of Object.keys(x)){const w=ua(x[D],C)+1;C+=w,Z+=w*(i.barHeight+i.barGap),Y[D]=w}}else{Z+=P.length*(i.barHeight+i.barGap);for(const x of S)Y[x]=P.filter(C=>C.type===x).length}M.setAttribute("viewBox","0 0 "+ft+" "+Z);const q=y.select(`[id="${e}"]`),v=oi().domain([Fn(b,function(x){return x.startTime}),Yn(b,function(x){return x.endTime})]).rangeRound([0,ft-i.leftPadding-i.rightPadding]);function U(x,C){const D=x.startTime,w=C.startTime;let u=0;return D>w?u=1:D<w&&(u=-1),u}a.__name(U,"taskCompare"),b.sort(U),R(b,ft,Z),a.configureSvgSize(q,Z,ft,i.useMaxWidth),q.append("text").text(r.db.getDiagramTitle()).attr("x",ft/2).attr("y",i.titleTopMargin).attr("class","titleText");function R(x,C,D){const w=i.barHeight,u=w+i.barGap,g=i.topPadding,_=i.leftPadding,m=Mt.linear().domain([0,S.length]).range(["#00B9FA","#F95002"]).interpolate(jn);z(u,g,_,C,D,x,r.db.getExcludes(),r.db.getIncludes()),T(_,g,C,D),E(x,u,g,_,w,m,C),k(u,g),p(_,g,C,D)}a.__name(R,"makeGantt");function E(x,C,D,w,u,g,_){x.sort((f,$)=>f.vert===$.vert?0:f.vert?1:-1);const m=x.filter(f=>!f.vert),c=[...new Set(m.map(f=>f.order))].map(f=>m.find($=>$.order===f));q.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(f,$){return $=f.order,$*C+D-2}).attr("width",function(){return _-i.rightPadding/2}).attr("height",C).attr("class",function(f){for(const[$,O]of S.entries())if(f.type===O)return"section section"+$%i.numberSectionStyles;return"section section0"}).enter();const W=q.append("g").selectAll("rect").data(x).enter(),l=r.db.getLinks();if(W.append("rect").attr("id",function(f){return e+"-"+f.id}).attr("rx",3).attr("ry",3).attr("x",function(f){return f.milestone?v(f.startTime)+w+.5*(v(f.endTime)-v(f.startTime))-.5*u:v(f.startTime)+w}).attr("y",function(f,$){return $=f.order,f.vert?i.gridLineStartPadding:$*C+D}).attr("width",function(f){return f.milestone?u:f.vert?.08*u:v(f.renderEndTime||f.endTime)-v(f.startTime)}).attr("height",function(f){return f.vert?m.length*(i.barHeight+i.barGap)+i.barHeight*2:u}).attr("transform-origin",function(f,$){return $=f.order,(v(f.startTime)+w+.5*(v(f.endTime)-v(f.startTime))).toString()+"px "+($*C+D+.5*u).toString()+"px"}).attr("class",function(f){const $="task";let O="";f.classes.length>0&&(O=f.classes.join(" "));let G=0;for(const[J,h]of S.entries())f.type===h&&(G=J%i.numberSectionStyles);let H="";return f.active?f.crit?H+=" activeCrit":H=" active":f.done?f.crit?H=" doneCrit":H=" done":f.crit&&(H+=" crit"),H.length===0&&(H=" task"),f.milestone&&(H=" milestone "+H),f.vert&&(H=" vert "+H),H+=G,H+=" "+O,$+H}),W.append("text").attr("id",function(f){return e+"-"+f.id+"-text"}).text(function(f){return f.task}).attr("font-size",i.fontSize).attr("x",function(f){let $=v(f.startTime),O=v(f.renderEndTime||f.endTime);if(f.milestone&&($+=.5*(v(f.endTime)-v(f.startTime))-.5*u,O=$+u),f.vert)return v(f.startTime)+w;const G=this.getBBox().width;return G>O-$?O+G+1.5*i.leftPadding>_?$+w-5:O+w+5:(O-$)/2+$+w}).attr("y",function(f,$){return f.vert?i.gridLineStartPadding+m.length*(i.barHeight+i.barGap)+60:($=f.order,$*C+i.barHeight/2+(i.fontSize/2-2)+D)}).attr("text-height",u).attr("class",function(f){const $=v(f.startTime);let O=v(f.endTime);f.milestone&&(O=$+u);const G=this.getBBox().width;let H="";f.classes.length>0&&(H=f.classes.join(" "));let J=0;for(const[N,V]of S.entries())f.type===V&&(J=N%i.numberSectionStyles);let h="";return f.active&&(f.crit?h="activeCritText"+J:h="activeText"+J),f.done?f.crit?h=h+" doneCritText"+J:h=h+" doneText"+J:f.crit&&(h=h+" critText"+J),f.milestone&&(h+=" milestoneText"),f.vert&&(h+=" vertText"),G>O-$?O+G+1.5*i.leftPadding>_?H+" taskTextOutsideLeft taskTextOutside"+J+" "+h:H+" taskTextOutsideRight taskTextOutside"+J+" "+h+" width-"+G:H+" taskText taskText"+J+" "+h+" width-"+G}),a.getConfig2().securityLevel==="sandbox"){let f;f=a.select("#i"+e);const $=f.nodes()[0].contentDocument;W.filter(function(O){return l.has(O.id)}).each(function(O){var G=$.querySelector("#"+CSS.escape(e+"-"+O.id)),H=$.querySelector("#"+CSS.escape(e+"-"+O.id+"-text"));const J=G.parentNode;var h=$.createElement("a");h.setAttribute("xlink:href",l.get(O.id)),h.setAttribute("target","_top"),J.appendChild(h),h.appendChild(G),h.appendChild(H)})}}a.__name(E,"drawRects");function z(x,C,D,w,u,g,_,m){if(_.length===0&&m.length===0)return;let I,c;for(const{startTime:O,endTime:G}of g)(I===void 0||O<I)&&(I=O),(c===void 0||G>c)&&(c=G);if(!I||!c)return;if(a.dayjs2(c).diff(a.dayjs2(I),"year")>5){a.log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const W=r.db.getDateFormat(),l=[];let K=null,f=a.dayjs2(I);for(;f.valueOf()<=c;)r.db.isInvalidDate(f,W,_,m)?K?K.end=f:K={start:f,end:f}:K&&(l.push(K),K=null),f=f.add(1,"d");q.append("g").selectAll("rect").data(l).enter().append("rect").attr("id",O=>e+"-exclude-"+O.start.format("YYYY-MM-DD")).attr("x",O=>v(O.start.startOf("day"))+D).attr("y",i.gridLineStartPadding).attr("width",O=>v(O.end.endOf("day"))-v(O.start.startOf("day"))).attr("height",u-C-i.gridLineStartPadding).attr("transform-origin",function(O,G){return(v(O.start)+D+.5*(v(O.end)-v(O.start))).toString()+"px "+(G*x+.5*u).toString()+"px"}).attr("class","exclude-range")}a.__name(z,"drawExcludeDays");function X(x,C,D,w){if(D<=0||x>C)return 1/0;const u=C-x,g=a.dayjs2.duration({[w??"day"]:D}).asMilliseconds();return g<=0?1/0:Math.ceil(u/g)}a.__name(X,"getEstimatedTickCount");function T(x,C,D,w){const u=r.db.getDateFormat(),g=r.db.getAxisFormat();let _;g?_=g:u==="D"?_="%d":_=i.axisFormat??"%Y-%m-%d";let m=On(v).tickSize(-w+C+i.gridLineStartPadding).tickFormat(ee(_));const c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(c!==null){const W=parseInt(c[1],10);if(isNaN(W)||W<=0)a.log.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{const l=c[2],K=r.db.getWeekday()||i.weekday,f=v.domain(),$=f[0],O=f[1],G=X($,O,W,l);if(G>ge)a.log.warn(`The tick interval "${W}${l}" would generate ${G} ticks, which exceeds the maximum allowed (${ge}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(l){case"millisecond":m.ticks(Ft.every(W));break;case"second":m.ticks(pt.every(W));break;case"minute":m.ticks(Ot.every(W));break;case"hour":m.ticks(Ht.every(W));break;case"day":m.ticks(vt.every(W));break;case"week":m.ticks(Ke[K].every(W));break;case"month":m.ticks(Pt.every(W));break}}}if(q.append("g").attr("class","grid").attr("transform","translate("+x+", "+(w-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){let W=$n(v).tickSize(-w+C+i.gridLineStartPadding).tickFormat(ee(_));if(c!==null){const l=parseInt(c[1],10);if(isNaN(l)||l<=0)a.log.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{const K=c[2],f=r.db.getWeekday()||i.weekday,$=v.domain(),O=$[0],G=$[1];if(X(O,G,l,K)<=ge)switch(K){case"millisecond":W.ticks(Ft.every(l));break;case"second":W.ticks(pt.every(l));break;case"minute":W.ticks(Ot.every(l));break;case"hour":W.ticks(Ht.every(l));break;case"day":W.ticks(vt.every(l));break;case"week":W.ticks(Ke[f].every(l));break;case"month":W.ticks(Pt.every(l));break}}}q.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)}}a.__name(T,"makeGrid");function k(x,C){let D=0;const w=Object.keys(Y).map(u=>[u,Y[u]]);q.append("g").selectAll("text").data(w).enter().append(function(u){const g=u[0].split(a.common_default.lineBreakRegex),_=-(g.length-1)/2,m=F.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("dy",_+"em");for(const[I,c]of g.entries()){const W=F.createElementNS("http://www.w3.org/2000/svg","tspan");W.setAttribute("alignment-baseline","central"),W.setAttribute("x","10"),I>0&&W.setAttribute("dy","1em"),W.textContent=c,m.appendChild(W)}return m}).attr("x",10).attr("y",function(u,g){if(g>0)for(let _=0;_<g;_++)return D+=w[g-1][1],u[1]*x/2+D*x+C;else return u[1]*x/2+C}).attr("font-size",i.sectionFontSize).attr("class",function(u){for(const[g,_]of S.entries())if(u[0]===_)return"sectionTitle sectionTitle"+g%i.numberSectionStyles;return"sectionTitle"})}a.__name(k,"vertLabels");function p(x,C,D,w){const u=r.db.getTodayMarker();if(u==="off")return;const g=q.append("g").attr("class","today"),_=new Date,m=g.append("line");m.attr("x1",v(_)+x).attr("x2",v(_)+x).attr("y1",i.titleTopMargin).attr("y2",w-i.titleTopMargin).attr("class","today"),u!==""&&m.attr("style",u.replace(/,/g,";"))}a.__name(p,"drawToday");function L(x){const C={},D=[];for(let w=0,u=x.length;w<u;++w)Object.prototype.hasOwnProperty.call(C,x[w])||(C[x[w]]=!0,D.push(x[w]));return D}a.__name(L,"checkUnique")},"draw"),fa={setConf:ca,draw:la},da=a.__name(t=>`
7
+ .mermaid-main-font {
8
+ font-family: ${t.fontFamily};
9
+ }
10
+
11
+ .exclude-range {
12
+ fill: ${t.excludeBkgColor};
13
+ }
14
+
15
+ .section {
16
+ stroke: none;
17
+ opacity: 0.2;
18
+ }
19
+
20
+ .section0 {
21
+ fill: ${t.sectionBkgColor};
22
+ }
23
+
24
+ .section2 {
25
+ fill: ${t.sectionBkgColor2};
26
+ }
27
+
28
+ .section1,
29
+ .section3 {
30
+ fill: ${t.altSectionBkgColor};
31
+ opacity: 0.2;
32
+ }
33
+
34
+ .sectionTitle0 {
35
+ fill: ${t.titleColor};
36
+ }
37
+
38
+ .sectionTitle1 {
39
+ fill: ${t.titleColor};
40
+ }
41
+
42
+ .sectionTitle2 {
43
+ fill: ${t.titleColor};
44
+ }
45
+
46
+ .sectionTitle3 {
47
+ fill: ${t.titleColor};
48
+ }
49
+
50
+ .sectionTitle {
51
+ text-anchor: start;
52
+ font-family: ${t.fontFamily};
53
+ }
54
+
55
+
56
+ /* Grid and axis */
57
+
58
+ .grid .tick {
59
+ stroke: ${t.gridColor};
60
+ opacity: 0.8;
61
+ shape-rendering: crispEdges;
62
+ }
63
+
64
+ .grid .tick text {
65
+ font-family: ${t.fontFamily};
66
+ fill: ${t.textColor};
67
+ }
68
+
69
+ .grid path {
70
+ stroke-width: 0;
71
+ }
72
+
73
+
74
+ /* Today line */
75
+
76
+ .today {
77
+ fill: none;
78
+ stroke: ${t.todayLineColor};
79
+ stroke-width: 2px;
80
+ }
81
+
82
+
83
+ /* Task styling */
84
+
85
+ /* Default task */
86
+
87
+ .task {
88
+ stroke-width: 2;
89
+ }
90
+
91
+ .taskText {
92
+ text-anchor: middle;
93
+ font-family: ${t.fontFamily};
94
+ }
95
+
96
+ .taskTextOutsideRight {
97
+ fill: ${t.taskTextDarkColor};
98
+ text-anchor: start;
99
+ font-family: ${t.fontFamily};
100
+ }
101
+
102
+ .taskTextOutsideLeft {
103
+ fill: ${t.taskTextDarkColor};
104
+ text-anchor: end;
105
+ }
106
+
107
+
108
+ /* Special case clickable */
109
+
110
+ .task.clickable {
111
+ cursor: pointer;
112
+ }
113
+
114
+ .taskText.clickable {
115
+ cursor: pointer;
116
+ fill: ${t.taskTextClickableColor} !important;
117
+ font-weight: bold;
118
+ }
119
+
120
+ .taskTextOutsideLeft.clickable {
121
+ cursor: pointer;
122
+ fill: ${t.taskTextClickableColor} !important;
123
+ font-weight: bold;
124
+ }
125
+
126
+ .taskTextOutsideRight.clickable {
127
+ cursor: pointer;
128
+ fill: ${t.taskTextClickableColor} !important;
129
+ font-weight: bold;
130
+ }
131
+
132
+
133
+ /* Specific task settings for the sections*/
134
+
135
+ .taskText0,
136
+ .taskText1,
137
+ .taskText2,
138
+ .taskText3 {
139
+ fill: ${t.taskTextColor};
140
+ }
141
+
142
+ .task0,
143
+ .task1,
144
+ .task2,
145
+ .task3 {
146
+ fill: ${t.taskBkgColor};
147
+ stroke: ${t.taskBorderColor};
148
+ }
149
+
150
+ .taskTextOutside0,
151
+ .taskTextOutside2
152
+ {
153
+ fill: ${t.taskTextOutsideColor};
154
+ }
155
+
156
+ .taskTextOutside1,
157
+ .taskTextOutside3 {
158
+ fill: ${t.taskTextOutsideColor};
159
+ }
160
+
161
+
162
+ /* Active task */
163
+
164
+ .active0,
165
+ .active1,
166
+ .active2,
167
+ .active3 {
168
+ fill: ${t.activeTaskBkgColor};
169
+ stroke: ${t.activeTaskBorderColor};
170
+ }
171
+
172
+ .activeText0,
173
+ .activeText1,
174
+ .activeText2,
175
+ .activeText3 {
176
+ fill: ${t.taskTextDarkColor} !important;
177
+ }
178
+
179
+
180
+ /* Completed task */
181
+
182
+ .done0,
183
+ .done1,
184
+ .done2,
185
+ .done3 {
186
+ stroke: ${t.doneTaskBorderColor};
187
+ fill: ${t.doneTaskBkgColor};
188
+ stroke-width: 2;
189
+ }
190
+
191
+ .doneText0,
192
+ .doneText1,
193
+ .doneText2,
194
+ .doneText3 {
195
+ fill: ${t.taskTextDarkColor} !important;
196
+ }
197
+
198
+ /* Done task text displayed outside the bar sits against the diagram background,
199
+ not against the done-task bar, so it must use the outside/contrast color. */
200
+ .doneText0.taskTextOutsideLeft,
201
+ .doneText0.taskTextOutsideRight,
202
+ .doneText1.taskTextOutsideLeft,
203
+ .doneText1.taskTextOutsideRight,
204
+ .doneText2.taskTextOutsideLeft,
205
+ .doneText2.taskTextOutsideRight,
206
+ .doneText3.taskTextOutsideLeft,
207
+ .doneText3.taskTextOutsideRight {
208
+ fill: ${t.taskTextOutsideColor} !important;
209
+ }
210
+
211
+
212
+ /* Tasks on the critical line */
213
+
214
+ .crit0,
215
+ .crit1,
216
+ .crit2,
217
+ .crit3 {
218
+ stroke: ${t.critBorderColor};
219
+ fill: ${t.critBkgColor};
220
+ stroke-width: 2;
221
+ }
222
+
223
+ .activeCrit0,
224
+ .activeCrit1,
225
+ .activeCrit2,
226
+ .activeCrit3 {
227
+ stroke: ${t.critBorderColor};
228
+ fill: ${t.activeTaskBkgColor};
229
+ stroke-width: 2;
230
+ }
231
+
232
+ .doneCrit0,
233
+ .doneCrit1,
234
+ .doneCrit2,
235
+ .doneCrit3 {
236
+ stroke: ${t.critBorderColor};
237
+ fill: ${t.doneTaskBkgColor};
238
+ stroke-width: 2;
239
+ cursor: pointer;
240
+ shape-rendering: crispEdges;
241
+ }
242
+
243
+ .milestone {
244
+ transform: rotate(45deg) scale(0.8,0.8);
245
+ }
246
+
247
+ .milestoneText {
248
+ font-style: italic;
249
+ }
250
+ .doneCritText0,
251
+ .doneCritText1,
252
+ .doneCritText2,
253
+ .doneCritText3 {
254
+ fill: ${t.taskTextDarkColor} !important;
255
+ }
256
+
257
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
258
+ .doneCritText0.taskTextOutsideLeft,
259
+ .doneCritText0.taskTextOutsideRight,
260
+ .doneCritText1.taskTextOutsideLeft,
261
+ .doneCritText1.taskTextOutsideRight,
262
+ .doneCritText2.taskTextOutsideLeft,
263
+ .doneCritText2.taskTextOutsideRight,
264
+ .doneCritText3.taskTextOutsideLeft,
265
+ .doneCritText3.taskTextOutsideRight {
266
+ fill: ${t.taskTextOutsideColor} !important;
267
+ }
268
+
269
+ .vert {
270
+ stroke: ${t.vertLineColor};
271
+ }
272
+
273
+ .vertText {
274
+ font-size: 15px;
275
+ text-anchor: middle;
276
+ fill: ${t.vertLineColor} !important;
277
+ }
278
+
279
+ .activeCritText0,
280
+ .activeCritText1,
281
+ .activeCritText2,
282
+ .activeCritText3 {
283
+ fill: ${t.taskTextDarkColor} !important;
284
+ }
285
+
286
+ .titleText {
287
+ text-anchor: middle;
288
+ font-size: 18px;
289
+ fill: ${t.titleColor||t.textColor};
290
+ font-family: ${t.fontFamily};
291
+ }
292
+ `,"getStyles"),ha=da,ma={parser:wi,db:oa,renderer:fa,styles:ha};exports.diagram=ma;
@@ -0,0 +1,19 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { ClassifyUrlsRequest, ClassifyUrlsResponse, FetchPageRequest, FetchPageResponse } from "./linkcard_pb.js";
3
+ export declare const LinkCardService: {
4
+ readonly typeName: "markdown.v1.LinkCardService";
5
+ readonly methods: {
6
+ readonly fetchPage: {
7
+ readonly name: "FetchPage";
8
+ readonly I: typeof FetchPageRequest;
9
+ readonly O: typeof FetchPageResponse;
10
+ readonly kind: MethodKind.ServerStreaming;
11
+ };
12
+ readonly classifyUrls: {
13
+ readonly name: "ClassifyUrls";
14
+ readonly I: typeof ClassifyUrlsRequest;
15
+ readonly O: typeof ClassifyUrlsResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ };
18
+ };
19
+ };
@@ -0,0 +1,87 @@
1
+ import { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Message, proto3 } from "@bufbuild/protobuf";
2
+ export declare enum SkipReason {
3
+ UNSPECIFIED = 0,
4
+ PRIVATE_NETWORK = 1,
5
+ FORBIDDEN_URL = 2,
6
+ UNREACHABLE = 3
7
+ }
8
+ export declare class FetchPageRequest extends Message<FetchPageRequest> {
9
+ url: string;
10
+ constructor(data?: PartialMessage<FetchPageRequest>);
11
+ static readonly runtime: typeof proto3;
12
+ static readonly typeName = "markdown.v1.FetchPageRequest";
13
+ static readonly fields: FieldList;
14
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FetchPageRequest;
15
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FetchPageRequest;
16
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FetchPageRequest;
17
+ static equals(a: FetchPageRequest | PlainMessage<FetchPageRequest> | undefined, b: FetchPageRequest | PlainMessage<FetchPageRequest> | undefined): boolean;
18
+ }
19
+ export declare class FetchPageResponse extends Message<FetchPageResponse> {
20
+ part: {
21
+ value: PageHead;
22
+ case: "head";
23
+ } | {
24
+ value: Uint8Array;
25
+ case: "chunk";
26
+ } | {
27
+ value: PageSkip;
28
+ case: "skip";
29
+ } | {
30
+ case: undefined;
31
+ value?: undefined;
32
+ };
33
+ constructor(data?: PartialMessage<FetchPageResponse>);
34
+ static readonly runtime: typeof proto3;
35
+ static readonly typeName = "markdown.v1.FetchPageResponse";
36
+ static readonly fields: FieldList;
37
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FetchPageResponse;
38
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FetchPageResponse;
39
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FetchPageResponse;
40
+ static equals(a: FetchPageResponse | PlainMessage<FetchPageResponse> | undefined, b: FetchPageResponse | PlainMessage<FetchPageResponse> | undefined): boolean;
41
+ }
42
+ export declare class PageHead extends Message<PageHead> {
43
+ finalUrl: string;
44
+ status: number;
45
+ contentType: string;
46
+ constructor(data?: PartialMessage<PageHead>);
47
+ static readonly runtime: typeof proto3;
48
+ static readonly typeName = "markdown.v1.PageHead";
49
+ static readonly fields: FieldList;
50
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageHead;
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageHead;
52
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageHead;
53
+ static equals(a: PageHead | PlainMessage<PageHead> | undefined, b: PageHead | PlainMessage<PageHead> | undefined): boolean;
54
+ }
55
+ export declare class PageSkip extends Message<PageSkip> {
56
+ reason: SkipReason;
57
+ constructor(data?: PartialMessage<PageSkip>);
58
+ static readonly runtime: typeof proto3;
59
+ static readonly typeName = "markdown.v1.PageSkip";
60
+ static readonly fields: FieldList;
61
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageSkip;
62
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageSkip;
63
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageSkip;
64
+ static equals(a: PageSkip | PlainMessage<PageSkip> | undefined, b: PageSkip | PlainMessage<PageSkip> | undefined): boolean;
65
+ }
66
+ export declare class ClassifyUrlsRequest extends Message<ClassifyUrlsRequest> {
67
+ urls: string[];
68
+ constructor(data?: PartialMessage<ClassifyUrlsRequest>);
69
+ static readonly runtime: typeof proto3;
70
+ static readonly typeName = "markdown.v1.ClassifyUrlsRequest";
71
+ static readonly fields: FieldList;
72
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClassifyUrlsRequest;
73
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClassifyUrlsRequest;
74
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassifyUrlsRequest;
75
+ static equals(a: ClassifyUrlsRequest | PlainMessage<ClassifyUrlsRequest> | undefined, b: ClassifyUrlsRequest | PlainMessage<ClassifyUrlsRequest> | undefined): boolean;
76
+ }
77
+ export declare class ClassifyUrlsResponse extends Message<ClassifyUrlsResponse> {
78
+ verdicts: SkipReason[];
79
+ constructor(data?: PartialMessage<ClassifyUrlsResponse>);
80
+ static readonly runtime: typeof proto3;
81
+ static readonly typeName = "markdown.v1.ClassifyUrlsResponse";
82
+ static readonly fields: FieldList;
83
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClassifyUrlsResponse;
84
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClassifyUrlsResponse;
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassifyUrlsResponse;
86
+ static equals(a: ClassifyUrlsResponse | PlainMessage<ClassifyUrlsResponse> | undefined, b: ClassifyUrlsResponse | PlainMessage<ClassifyUrlsResponse> | undefined): boolean;
87
+ }
@@ -14,6 +14,9 @@ export declare class ConvertRequest extends Message<ConvertRequest> {
14
14
  maxHtmlBytes?: number;
15
15
  deny?: DenyRules;
16
16
  includeSourceLines: boolean;
17
+ cjkFriendlyEmphasis: boolean;
18
+ hardLineBreaks: boolean;
19
+ includeStreamingHints: boolean;
17
20
  constructor(data?: PartialMessage<ConvertRequest>);
18
21
  static readonly runtime: typeof proto3;
19
22
  static readonly typeName = "markdown.v1.ConvertRequest";
@@ -37,6 +40,7 @@ export declare class DenyRules extends Message<DenyRules> {
37
40
  export declare class ConvertResponse extends Message<ConvertResponse> {
38
41
  htmlContent: string;
39
42
  headings: Heading[];
43
+ blockOffsets: number[];
40
44
  constructor(data?: PartialMessage<ConvertResponse>);
41
45
  static readonly runtime: typeof proto3;
42
46
  static readonly typeName = "markdown.v1.ConvertResponse";