@cagent/chat-embedding-core 0.0.13 → 0.0.17

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 (322) hide show
  1. package/.env +6 -0
  2. package/README.md +213 -213
  3. package/bun.lock +1548 -1548
  4. package/dist/abnfDiagram-VRR7QNED-3cfb3856.js +1 -0
  5. package/dist/abnfDiagram-VRR7QNED-686410b0.js +1 -0
  6. package/dist/abnfDiagram-VRR7QNED-fb22812d.js +1 -0
  7. package/dist/api/chatRoom.d.ts.map +1 -0
  8. package/dist/arc-24dd4755.js +1 -0
  9. package/dist/arc-5d6257cf.js +1 -0
  10. package/dist/arc-90e71e7e.js +1 -0
  11. package/dist/architecture-TIHT7OUA-a997f441.js +1 -0
  12. package/dist/architecture-TIHT7OUA-faa1f9b3.js +1 -0
  13. package/dist/architectureDiagram-ZJ3FMSHR-87443299.js +1 -0
  14. package/dist/architectureDiagram-ZJ3FMSHR-93988e41.js +1 -0
  15. package/dist/architectureDiagram-ZJ3FMSHR-bde2dd21.js +1 -0
  16. package/dist/blockDiagram-677ZJIJ3-25a94a47.js +1 -0
  17. package/dist/blockDiagram-677ZJIJ3-88bd543c.js +1 -0
  18. package/dist/blockDiagram-677ZJIJ3-c769a3c8.js +1 -0
  19. package/dist/c4Diagram-LMCZKHZV-763880d7.js +1 -0
  20. package/dist/c4Diagram-LMCZKHZV-d7fc839e.js +1 -0
  21. package/dist/c4Diagram-LMCZKHZV-da04a76e.js +1 -0
  22. package/dist/channel-11d3f4bc.js +1 -0
  23. package/dist/channel-534c2e17.js +1 -0
  24. package/dist/channel-c3cf6060.js +1 -0
  25. package/dist/chunk-2Q5K7J3B-2892df89.js +1 -0
  26. package/dist/chunk-2Q5K7J3B-7960ff8e.js +1 -0
  27. package/dist/chunk-2Q5K7J3B-9497bf31.js +1 -0
  28. package/dist/chunk-32BRIVSS-10123eba.js +1 -0
  29. package/dist/chunk-32BRIVSS-10ac68f7.js +1 -0
  30. package/dist/chunk-32BRIVSS-8a8507a2.js +1 -0
  31. package/dist/chunk-5VM5RSS4-36b32f6e.js +1 -0
  32. package/dist/chunk-5VM5RSS4-4b2efd20.js +1 -0
  33. package/dist/chunk-5VM5RSS4-5fc85a49.js +1 -0
  34. package/dist/chunk-EX3LRPZG-36494b87.js +1 -0
  35. package/dist/chunk-EX3LRPZG-6cd1f2fa.js +1 -0
  36. package/dist/chunk-EX3LRPZG-7ac6d0d7.js +1 -0
  37. package/dist/chunk-JWPE2WC7-15a55950.js +1 -0
  38. package/dist/chunk-JWPE2WC7-84faee3d.js +1 -0
  39. package/dist/chunk-JWPE2WC7-e2521b1e.js +1 -0
  40. package/dist/chunk-MOJQB5TN-47f0392f.js +1 -0
  41. package/dist/chunk-MOJQB5TN-5cc2e61b.js +1 -0
  42. package/dist/chunk-MOJQB5TN-ea88675c.js +1 -0
  43. package/dist/chunk-PUDLZKDR-057ec46a.js +1 -0
  44. package/dist/chunk-PUDLZKDR-53309be9.js +1 -0
  45. package/dist/chunk-PUDLZKDR-6de50ada.js +1 -0
  46. package/dist/chunk-RYQCIY6F-06b096c5.js +1 -0
  47. package/dist/chunk-RYQCIY6F-453400cd.js +1 -0
  48. package/dist/chunk-RYQCIY6F-8de649c8.js +1 -0
  49. package/dist/chunk-V7JOEXUC-4083766f.js +1 -0
  50. package/dist/chunk-V7JOEXUC-4e8d7729.js +1 -0
  51. package/dist/chunk-V7JOEXUC-bb2df9b0.js +1 -0
  52. package/dist/chunk-VR4S4FIN-5feb7571.js +1 -0
  53. package/dist/chunk-VR4S4FIN-9df47127.js +1 -0
  54. package/dist/chunk-VR4S4FIN-c4f2681d.js +1 -0
  55. package/dist/chunk-XXDRQBXY-3c9d8bf9.js +1 -0
  56. package/dist/chunk-XXDRQBXY-de00e988.js +1 -0
  57. package/dist/chunk-XXDRQBXY-f923ffed.js +1 -0
  58. package/dist/classDiagram-OUVF2IWQ-5cdf5fe6.js +1 -0
  59. package/dist/classDiagram-OUVF2IWQ-d51bd736.js +1 -0
  60. package/dist/classDiagram-OUVF2IWQ-fc2b54d6.js +1 -0
  61. package/dist/classDiagram-v2-EOCWNBFH-5cdf5fe6.js +1 -0
  62. package/dist/classDiagram-v2-EOCWNBFH-d51bd736.js +1 -0
  63. package/dist/classDiagram-v2-EOCWNBFH-fc2b54d6.js +1 -0
  64. package/dist/components/Badge.d.ts.map +1 -0
  65. package/dist/components/Bot.d.ts.map +1 -0
  66. package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
  67. package/dist/components/RoomReconnectAlert.d.ts.map +1 -0
  68. package/dist/components/Toast.d.ts.map +1 -0
  69. package/dist/components/TypingBubble.d.ts.map +1 -0
  70. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  71. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  72. package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
  73. package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
  74. package/dist/components/bubbles/ChartBubble.d.ts.map +1 -0
  75. package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts.map +1 -0
  76. package/dist/components/bubbles/ChartPlaceholder.d.ts.map +1 -0
  77. package/dist/components/bubbles/ChartPopupModal.d.ts.map +1 -0
  78. package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
  79. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  80. package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
  81. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  82. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
  83. package/dist/components/bubbles/StableChartWrapper.d.ts.map +1 -0
  84. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
  85. package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
  86. package/dist/components/buttons/CancelButton.d.ts.map +1 -0
  87. package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
  88. package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
  89. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
  90. package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
  91. package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
  92. package/dist/components/buttons/PopupToast.d.ts.map +1 -0
  93. package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
  94. package/dist/components/buttons/SendButton.d.ts.map +1 -0
  95. package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
  96. package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
  97. package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
  98. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  99. package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
  100. package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
  101. package/dist/components/icons/CopyIcon.d.ts.map +1 -0
  102. package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
  103. package/dist/components/icons/EditIcon.d.ts.map +1 -0
  104. package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
  105. package/dist/components/icons/RecordIcon.d.ts.map +1 -0
  106. package/dist/components/icons/ResetZoomIcon.d.ts.map +1 -0
  107. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  108. package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
  109. package/dist/components/icons/StopIcon.d.ts.map +1 -0
  110. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
  111. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
  112. package/dist/components/icons/TickIcon.d.ts.map +1 -0
  113. package/dist/components/icons/TrashIcon.d.ts.map +1 -0
  114. package/dist/components/icons/XIcon.d.ts.map +1 -0
  115. package/dist/components/icons/ZoomInIcon.d.ts.map +1 -0
  116. package/dist/components/icons/ZoomOutIcon.d.ts.map +1 -0
  117. package/dist/components/icons/index.d.ts.map +1 -0
  118. package/dist/components/image/PreviewImage.d.ts.map +1 -0
  119. package/dist/components/index.d.ts.map +1 -0
  120. package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
  121. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
  122. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
  123. package/dist/components/inputs/textInput/index.d.ts.map +1 -0
  124. package/dist/constants.d.ts.map +1 -0
  125. package/dist/cose-bilkent-JH36ORCC-ac4d2e28.js +1 -0
  126. package/dist/cose-bilkent-JH36ORCC-c3560feb.js +1 -0
  127. package/dist/cose-bilkent-JH36ORCC-f0ddc3e7.js +1 -0
  128. package/dist/cynefin-VYW2F7L2-2458ad91.js +1 -0
  129. package/dist/cynefin-VYW2F7L2-a8648cf6.js +1 -0
  130. package/dist/cynefinDiagram-TSTJHNR4-62a29383.js +1 -0
  131. package/dist/cynefinDiagram-TSTJHNR4-910b3dfd.js +1 -0
  132. package/dist/cynefinDiagram-TSTJHNR4-deb0bb2c.js +1 -0
  133. package/dist/cytoscape.esm-56d2239f.js +1 -0
  134. package/dist/cytoscape.esm-c9352dc8.js +1 -0
  135. package/dist/dagre-VKFMJZFB-1467d0af.js +1 -0
  136. package/dist/dagre-VKFMJZFB-35daad97.js +1 -0
  137. package/dist/dagre-VKFMJZFB-c5b9a4a0.js +1 -0
  138. package/dist/defaultLocale-b4977250.js +1 -0
  139. package/dist/defaultLocale-e35a4def.js +1 -0
  140. package/dist/diagram-FQU43EPY-41eed431.js +1 -0
  141. package/dist/diagram-FQU43EPY-613e9e4e.js +1 -0
  142. package/dist/diagram-FQU43EPY-d256050e.js +1 -0
  143. package/dist/diagram-G47NLZAW-813bbb70.js +1 -0
  144. package/dist/diagram-G47NLZAW-8ef917d1.js +1 -0
  145. package/dist/diagram-G47NLZAW-aa02607c.js +1 -0
  146. package/dist/diagram-NH7WQ7WH-0af7a921.js +1 -0
  147. package/dist/diagram-NH7WQ7WH-0e4f7f17.js +1 -0
  148. package/dist/diagram-NH7WQ7WH-6f91f6aa.js +1 -0
  149. package/dist/diagram-OA4YK3LP-0fba2475.js +1 -0
  150. package/dist/diagram-OA4YK3LP-587273f4.js +1 -0
  151. package/dist/diagram-OA4YK3LP-6cbfc7a5.js +1 -0
  152. package/dist/diagram-WEI45ONY-0241463f.js +1 -0
  153. package/dist/diagram-WEI45ONY-dd634033.js +1 -0
  154. package/dist/diagram-WEI45ONY-e002e844.js +1 -0
  155. package/dist/ebnfDiagram-CCIWWBDH-20ac4ba3.js +1 -0
  156. package/dist/ebnfDiagram-CCIWWBDH-e9974165.js +1 -0
  157. package/dist/ebnfDiagram-CCIWWBDH-ead44055.js +1 -0
  158. package/dist/erDiagram-Q63AITRT-1febb8fc.js +1 -0
  159. package/dist/erDiagram-Q63AITRT-4ea4b93d.js +1 -0
  160. package/dist/erDiagram-Q63AITRT-bcb00855.js +1 -0
  161. package/dist/eventmodeling-45OFAUF4-a82f1f18.js +1 -0
  162. package/dist/eventmodeling-45OFAUF4-dcf667fc.js +1 -0
  163. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  164. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  165. package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
  166. package/dist/features/bubble/components/index.d.ts.map +1 -0
  167. package/dist/features/bubble/index.d.ts.map +1 -0
  168. package/dist/features/bubble/types.d.ts.map +1 -0
  169. package/dist/features/full/components/Full.d.ts.map +1 -0
  170. package/dist/features/full/components/index.d.ts.map +1 -0
  171. package/dist/features/full/index.d.ts.map +1 -0
  172. package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
  173. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  174. package/dist/features/popup/components/index.d.ts.map +1 -0
  175. package/dist/features/popup/index.d.ts.map +1 -0
  176. package/dist/features/popup/types.d.ts.map +1 -0
  177. package/dist/flowDiagram-23GEKE2U-14ee2b3c.js +1 -0
  178. package/dist/flowDiagram-23GEKE2U-7ab9c2e4.js +1 -0
  179. package/dist/flowDiagram-23GEKE2U-f7309569.js +1 -0
  180. package/dist/ganttDiagram-NO4QXBWP-249a167d.js +1 -0
  181. package/dist/ganttDiagram-NO4QXBWP-bd530d12.js +1 -0
  182. package/dist/ganttDiagram-NO4QXBWP-e5e495d6.js +1 -0
  183. package/dist/gitGraph-TEB2WS4Q-72ba3362.js +1 -0
  184. package/dist/gitGraph-TEB2WS4Q-d07b15b3.js +1 -0
  185. package/dist/gitGraphDiagram-IHSO6WYX-2964ff91.js +1 -0
  186. package/dist/gitGraphDiagram-IHSO6WYX-4d9324ad.js +1 -0
  187. package/dist/gitGraphDiagram-IHSO6WYX-97bf868b.js +1 -0
  188. package/dist/graph-0df36b9d.js +1 -0
  189. package/dist/graph-c6801890.js +1 -0
  190. package/dist/index.d.ts.map +1 -0
  191. package/dist/info-DKCQHKI2-d8e8a901.js +1 -0
  192. package/dist/info-DKCQHKI2-dd69502c.js +1 -0
  193. package/dist/infoDiagram-FWYZ7A6U-1267309e.js +1 -0
  194. package/dist/infoDiagram-FWYZ7A6U-5b9d28af.js +1 -0
  195. package/dist/infoDiagram-FWYZ7A6U-cc33afe4.js +1 -0
  196. package/dist/init-b029a625.js +1 -0
  197. package/dist/init-cf76ae07.js +1 -0
  198. package/dist/ishikawaDiagram-FXEZZL3T-3f0977e8.js +1 -0
  199. package/dist/ishikawaDiagram-FXEZZL3T-89c1b2f4.js +1 -0
  200. package/dist/ishikawaDiagram-FXEZZL3T-9fef4653.js +1 -0
  201. package/dist/journeyDiagram-5HDEW3XC-563a68ff.js +1 -0
  202. package/dist/journeyDiagram-5HDEW3XC-c8c8d701.js +1 -0
  203. package/dist/journeyDiagram-5HDEW3XC-e6c5e84b.js +1 -0
  204. package/dist/kanban-definition-HUTT4EX6-3719e367.js +1 -0
  205. package/dist/kanban-definition-HUTT4EX6-7bc0cd1e.js +1 -0
  206. package/dist/kanban-definition-HUTT4EX6-d8b002e3.js +1 -0
  207. package/dist/katex-67456a45.js +1 -0
  208. package/dist/katex-b134d23c.js +1 -0
  209. package/dist/layout-e44354bf.js +1 -0
  210. package/dist/layout-ff5d33a1.js +1 -0
  211. package/dist/linear-7b1a23f3.js +1 -0
  212. package/dist/linear-d7ad6d25.js +1 -0
  213. package/dist/linear-e5c99c88.js +1 -0
  214. package/dist/map-05f0ff95.js +1 -0
  215. package/dist/map-d3292a5b.js +1 -0
  216. package/dist/mermaid-parser.core-6df0beec.js +1 -0
  217. package/dist/mermaid-parser.core-d8d1c2b9.js +1 -0
  218. package/dist/mermaid.core-2d237a1e.js +1 -0
  219. package/dist/mermaid.core-70d5aead.js +1 -0
  220. package/dist/mermaid.core-8797d6a9.js +1 -0
  221. package/dist/mindmap-definition-LN4V7U3C-04a12a88.js +1 -0
  222. package/dist/mindmap-definition-LN4V7U3C-86a890ce.js +1 -0
  223. package/dist/mindmap-definition-LN4V7U3C-f495948c.js +1 -0
  224. package/dist/ordinal-221e41d7.js +1 -0
  225. package/dist/ordinal-4a51e46c.js +1 -0
  226. package/dist/packet-7NZHBO7P-b4586e10.js +1 -0
  227. package/dist/packet-7NZHBO7P-f62750ff.js +1 -0
  228. package/dist/pegDiagram-2B236MQR-234fe6d1.js +1 -0
  229. package/dist/pegDiagram-2B236MQR-2826e278.js +1 -0
  230. package/dist/pegDiagram-2B236MQR-64eeb662.js +1 -0
  231. package/dist/pie-RZYD4A2V-106ba3d7.js +1 -0
  232. package/dist/pie-RZYD4A2V-752eda00.js +1 -0
  233. package/dist/pieDiagram-ENE6RG2P-0c3b09b8.js +1 -0
  234. package/dist/pieDiagram-ENE6RG2P-3fb5f734.js +1 -0
  235. package/dist/pieDiagram-ENE6RG2P-af928526.js +1 -0
  236. package/dist/quadrantDiagram-ABIIQ3AL-1a55c0f5.js +1 -0
  237. package/dist/quadrantDiagram-ABIIQ3AL-3d15c26d.js +1 -0
  238. package/dist/quadrantDiagram-ABIIQ3AL-9110fa9c.js +1 -0
  239. package/dist/queries/sendMessageQuery.d.ts.map +1 -0
  240. package/dist/radar-I7S5WNFK-53bde9ff.js +1 -0
  241. package/dist/radar-I7S5WNFK-87e8c5ba.js +1 -0
  242. package/dist/railroad-3IZDKUUU-99427b9f.js +1 -0
  243. package/dist/railroad-3IZDKUUU-9e29587d.js +1 -0
  244. package/dist/railroad-abnf-AHOZXSZD-1d11cb5b.js +1 -0
  245. package/dist/railroad-abnf-AHOZXSZD-c27db0bc.js +1 -0
  246. package/dist/railroad-ebnf-EBAXGLYW-38dff87c.js +1 -0
  247. package/dist/railroad-ebnf-EBAXGLYW-6bb5de0c.js +1 -0
  248. package/dist/railroad-peg-LSFZ7HO6-c9f0aa71.js +1 -0
  249. package/dist/railroad-peg-LSFZ7HO6-efcb0a43.js +1 -0
  250. package/dist/railroadDiagram-RFXS5EU6-14373a87.js +1 -0
  251. package/dist/railroadDiagram-RFXS5EU6-ec9e696e.js +1 -0
  252. package/dist/railroadDiagram-RFXS5EU6-effa5611.js +1 -0
  253. package/dist/register.d.ts.map +1 -0
  254. package/dist/requirementDiagram-TGXJPOKE-3d199581.js +1 -0
  255. package/dist/requirementDiagram-TGXJPOKE-5a337f1a.js +1 -0
  256. package/dist/requirementDiagram-TGXJPOKE-a7960859.js +1 -0
  257. package/dist/sankeyDiagram-HTMAVEWB-209eac30.js +1 -0
  258. package/dist/sankeyDiagram-HTMAVEWB-3c852fda.js +1 -0
  259. package/dist/sankeyDiagram-HTMAVEWB-46aa1eb1.js +1 -0
  260. package/dist/sequenceDiagram-DBY2YBRQ-4121f7c2.js +1 -0
  261. package/dist/sequenceDiagram-DBY2YBRQ-7bad18e4.js +1 -0
  262. package/dist/sequenceDiagram-DBY2YBRQ-af96f48e.js +1 -0
  263. package/dist/sizeCapture-X5ZJPWSS-13826306.js +1 -0
  264. package/dist/sizeCapture-X5ZJPWSS-32e2eec7.js +1 -0
  265. package/dist/sizeCapture-X5ZJPWSS-a078176f.js +1 -0
  266. package/dist/stateDiagram-2N3HPSRC-527374a2.js +1 -0
  267. package/dist/stateDiagram-2N3HPSRC-8047e124.js +1 -0
  268. package/dist/stateDiagram-2N3HPSRC-ba344b5d.js +1 -0
  269. package/dist/stateDiagram-v2-6OUMAXLB-7580bf69.js +1 -0
  270. package/dist/stateDiagram-v2-6OUMAXLB-d4c58fd3.js +1 -0
  271. package/dist/stateDiagram-v2-6OUMAXLB-e5921044.js +1 -0
  272. package/dist/store/constant.d.ts.map +1 -0
  273. package/dist/swimlanes-5IMT3BWC-5834b232.js +1 -0
  274. package/dist/swimlanes-5IMT3BWC-791a3547.js +1 -0
  275. package/dist/swimlanes-5IMT3BWC-db2c593a.js +1 -0
  276. package/dist/swimlanesDiagram-G3AALYLV-36c30eec.js +1 -0
  277. package/dist/swimlanesDiagram-G3AALYLV-89220ddd.js +1 -0
  278. package/dist/swimlanesDiagram-G3AALYLV-b621330d.js +1 -0
  279. package/dist/timeline-definition-FHXFAJF6-0482a67a.js +1 -0
  280. package/dist/timeline-definition-FHXFAJF6-1d165a67.js +1 -0
  281. package/dist/timeline-definition-FHXFAJF6-f9600b97.js +1 -0
  282. package/dist/treeView-QDETBFTQ-0ecf20cd.js +1 -0
  283. package/dist/treeView-QDETBFTQ-96ed8e2f.js +1 -0
  284. package/dist/treemap-6X3UGDF4-0a7f19ca.js +1 -0
  285. package/dist/treemap-6X3UGDF4-9f498e0c.js +1 -0
  286. package/dist/types/chart.d.ts.map +1 -0
  287. package/dist/types.d.ts +1 -0
  288. package/dist/types.d.ts.map +1 -0
  289. package/dist/utils/audioRecording.d.ts.map +1 -0
  290. package/dist/utils/chartInstanceManager.d.ts.map +1 -0
  291. package/dist/utils/chartTagParser.d.ts.map +1 -0
  292. package/dist/utils/chatInputHistory.d.ts.map +1 -0
  293. package/dist/utils/chatStreamHelper.d.ts.map +1 -0
  294. package/dist/utils/index.d.ts.map +1 -0
  295. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  296. package/dist/utils/transcriptApi.d.ts.map +1 -0
  297. package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
  298. package/dist/vennDiagram-L72KCM5P-05176193.js +1 -0
  299. package/dist/vennDiagram-L72KCM5P-25a48393.js +1 -0
  300. package/dist/vennDiagram-L72KCM5P-28cffef7.js +1 -0
  301. package/dist/wardley-OPB4EBWU-08c5f013.js +1 -0
  302. package/dist/wardley-OPB4EBWU-9803a1d9.js +1 -0
  303. package/dist/wardleyDiagram-EHGQE667-052e6de9.js +1 -0
  304. package/dist/wardleyDiagram-EHGQE667-6a614fd9.js +1 -0
  305. package/dist/wardleyDiagram-EHGQE667-d11fe904.js +1 -0
  306. package/dist/web-25bb78b9.js +1 -0
  307. package/dist/web-753300e1.js +1 -0
  308. package/dist/web-c3ed22c4.js +1 -0
  309. package/dist/web.d.ts.map +1 -0
  310. package/dist/web.js +1 -1
  311. package/dist/window.d.ts.map +1 -0
  312. package/dist/xychartDiagram-FW5EYKEG-43118b83.js +1 -0
  313. package/dist/xychartDiagram-FW5EYKEG-d77187fe.js +1 -0
  314. package/dist/xychartDiagram-FW5EYKEG-f2fac492.js +1 -0
  315. package/package.json +86 -86
  316. package/public/index.html +4 -1
  317. package/public/popup.html +20 -0
  318. package/server.js +477 -477
  319. package/.idea/flowise-chatbox.iml +0 -10
  320. package/.idea/modules.xml +0 -8
  321. package/.idea/workspace.xml +0 -4
  322. package/docs/embedding-style-guide.md +0 -417
@@ -0,0 +1 @@
1
+ import{bh as t,bi as e,bj as n,bk as r,bl as i,bm as s,bn as a,_ as o,bo as c,d as l,s as u,g as d,n as h,o as f,c as g,b as m,v as y,m as k,l as p,j as T,k as v,e as x,u as b}from"./mermaid.core-8797d6a9.js";import{c as w,g as D}from"./web-c3ed22c4.js";import{b as M,t as C,c as $,a as _,l as S}from"./linear-7b1a23f3.js";import{i as Y}from"./init-cf76ae07.js";import"./defaultLocale-e35a4def.js";function F(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(var r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function A(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(var r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function L(t){return t}var E=1,U=2,O=3,I=4,H=1e-6;function W(t){return"translate("+t+",0)"}function P(t){return"translate(0,"+t+")"}function N(t){return e=>+t(e)}function z(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function B(){return!this.__axis}function j(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&1<window.devicePixelRatio?0:.5,l=t===E||t===I?-1:1,u=t===I||t===U?"x":"y",d=t===E||t===O?W:P;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):L:i,m=Math.max(s,0)+o,y=+(k=e.range())[0]+c,k=+k[k.length-1]+c,p=(e.bandwidth?z:N)(e.copy(),c),T=h.selection?h.selection():h,v=T.selectAll(".domain").data([null]),x=(f=T.selectAll(".tick").data(f,e).order()).exit(),b=f.enter().append("g").attr("class","tick"),w=f.select("line"),D=f.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),f=f.merge(b),w=w.merge(b.append("line").attr("stroke","currentColor").attr(u+"2",l*s)),D=D.merge(b.append("text").attr("fill","currentColor").attr(u,l*m).attr("dy",t===E?"0em":t===O?"0.71em":"0.32em"));h!==T&&(v=v.transition(h),f=f.transition(h),w=w.transition(h),D=D.transition(h),x=x.transition(h).attr("opacity",H).attr("transform",(function(t){return isFinite(t=p(t))?d(t+c):this.getAttribute("transform")})),b.attr("opacity",H).attr("transform",(function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:p(t))+c)}))),x.remove(),v.attr("d",t===I||t===U?a?"M"+l*a+","+y+"H"+c+"V"+k+"H"+l*a:"M"+c+","+y+"V"+k:a?"M"+y+","+l*a+"V"+c+"H"+k+"V"+l*a:"M"+y+","+c+"H"+k),f.attr("opacity",1).attr("transform",(function(t){return d(p(t)+c)})),w.attr(u+"2",l*s),D.attr(u,l*m).text(g),T.filter(B).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===U?"start":t===I?"end":"middle"),T.each((function(){this.__axis=p}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const V=Math.PI/180,R=180/Math.PI,Z=.96422,G=1,q=.82521,X=4/29,Q=6/29,J=3*Q*Q,K=Q*Q*Q;function tt(t){var e,r,s,a,o,c;return t instanceof et?new et(t.l,t.a,t.b,t.opacity):t instanceof ot?ct(t):(a=nt((.2225045*(e=st((t=t instanceof n?t:i(t)).r))+.7168786*(r=st(t.g))+.0606169*(s=st(t.b)))/G),e===r&&r===s?o=c=a:(o=nt((.4360747*e+.3850649*r+.1430804*s)/Z),c=nt((.0139322*e+.0971045*r+.7141733*s)/q)),new et(116*a-16,500*(o-a),200*(a-c),t.opacity))}function et(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function nt(t){return t>K?Math.pow(t,1/3):t/J+X}function rt(t){return t>Q?t*t*t:J*(t-X)}function it(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function st(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function at(t,e,n,r){return 1===arguments.length?function(t){var e;return t instanceof ot?new ot(t.h,t.c,t.l,t.opacity):0===(t=t instanceof et?t:tt(t)).a&&0===t.b?new ot(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity):new ot((e=Math.atan2(t.b,t.a)*R)<0?360+e:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ot(t,e,n,null==r?1:r)}function ot(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ct(t){var e;return isNaN(t.h)?new et(t.l,0,0,t.opacity):(e=t.h*V,new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity))}t(et,(function(t,e,n,r){return 1===arguments.length?tt(t):new et(t,e,n,null==r?1:r)}),e(r,{brighter(t){return new et(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new et(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;e=Z*rt(e),t=G*rt(t),r=q*rt(r);return new n(it(3.1338561*e-1.6168667*t-.4906146*r),it(-.9787684*e+1.9161415*t+.033454*r),it(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),t(ot,at,e(r,{brighter(t){return new ot(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ot(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ct(this).rgb()}}));var lt,ut=(lt=a,function(t,e){var n=lt((t=at(t)).h,(e=at(e)).h),r=s(t.c,e.c),i=s(t.l,e.l),a=s(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=r(e),t.l=i(e),t.opacity=a(e),t+""}});const dt=new Date,ht=new Date;function ft(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{var a,o=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),n<r&&0<s)for(;o.push(a=new Date(+n)),e(n,s),t(n),a<n&&n<r;);return o},i.filter=n=>ft((e=>{if(e<=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t<=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;0<=--r;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(dt.setTime(+e),ht.setTime(+r),t(dt),t(ht),Math.floor(n(dt,ht))),i.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const gt=ft((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t)),mt=(gt.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?ft((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):gt:null),gt.range,1e3),yt=60*mt,kt=60*yt,pt=24*kt,Tt=7*pt,vt=30*pt,xt=365*pt,bt=ft((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*mt)}),((t,e)=>(e-t)/mt),(t=>t.getUTCSeconds())),wt=(bt.range,ft((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)}),((t,e)=>{t.setTime(+t+e*yt)}),((t,e)=>(e-t)/yt),(t=>t.getMinutes()))),Dt=(wt.range,ft((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*yt)}),((t,e)=>(e-t)/yt),(t=>t.getUTCMinutes()))),Mt=(Dt.range,ft((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*yt)}),((t,e)=>{t.setTime(+t+e*kt)}),((t,e)=>(e-t)/kt),(t=>t.getHours()))),Ct=(Mt.range,ft((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*kt)}),((t,e)=>(e-t)/kt),(t=>t.getUTCHours()))),$t=(Ct.range,ft((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yt)/pt),(t=>t.getDate()-1))),_t=($t.range,ft((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/pt),(t=>t.getUTCDate()-1))),St=(_t.range,ft((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/pt),(t=>Math.floor(t/pt))));function Yt(t){return ft((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yt)/Tt))}St.range;const Ft=Yt(0),At=Yt(1),Lt=Yt(2),Et=Yt(3),Ut=Yt(4),Ot=Yt(5),It=Yt(6);function Ht(t){return ft((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Tt))}Ft.range,At.range,Lt.range,Et.range,Ut.range,Ot.range,It.range;const Wt=Ht(0),Pt=Ht(1),Nt=Ht(2),zt=Ht(3),Bt=Ht(4),jt=Ht(5),Vt=Ht(6),Rt=(Wt.range,Pt.range,Nt.range,zt.range,Bt.range,jt.range,Vt.range,ft((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Zt=(Rt.range,ft((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Gt=(Zt.range,ft((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()))),qt=(Gt.every=t=>isFinite(t=Math.floor(t))&&0<t?ft((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)})):null,Gt.range,ft((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())));qt.every=t=>isFinite(t=Math.floor(t))&&0<t?ft((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)})):null,qt.range;const[Xt,Qt]=function(t,e,n,r,i,s){const a=[[bt,1,mt],[bt,5,5*mt],[bt,15,15*mt],[bt,30,30*mt],[s,1,yt],[s,5,5*yt],[s,15,15*yt],[s,30,30*yt],[i,1,kt],[i,3,3*kt],[i,6,6*kt],[i,12,12*kt],[r,1,pt],[r,2,2*pt],[n,1,Tt],[e,1,vt],[e,3,3*vt],[t,1,xt]];function o(e,n,r){var i=Math.abs(n-e)/r,s=M((([,,t])=>t)).right(a,i);return s===a.length?t.every(C(e/xt,n/xt,r)):0===s?gt.every(Math.max(C(e,n,r),1)):([e,n]=a[i/a[s-1][2]<a[s][2]/i?s-1:s],e.every(n))}return[function(t,e,n){var r=e<t;return r&&([t,e]=[e,t]),n=(n=n&&"function"==typeof n.range?n:o(t,e,n))?n.range(t,+e+1):[],r?n.reverse():n},o]}(Gt,Rt,Ft,$t,Mt,wt);function Jt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L)).setFullYear(t.y),e):new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Kt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L))).setUTCFullYear(t.y),e):new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function te(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ee,ne,re={"-":"",_:" ",0:"0"},ie=/^\s*\d+/,se=/^%/,ae=/[\\^$*+?|[\]().{}]/g;function oe(t,e,n){var r=t<0?"-":"",i=(t=(r?-t:t)+"").length;return r+(i<n?new Array(n-i+1).join(e)+t:t)}function ce(t){return t.replace(ae,"\\$&")}function le(t){return new RegExp("^(?:"+t.map(ce).join("|")+")","i")}function ue(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function de(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.w=+e[0],n+e[0].length):-1}function he(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.u=+e[0],n+e[0].length):-1}function fe(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.U=+e[0],n+e[0].length):-1}function ge(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.V=+e[0],n+e[0].length):-1}function me(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.W=+e[0],n+e[0].length):-1}function ye(t,e,n){return(e=ie.exec(e.slice(n,n+4)))?(t.y=+e[0],n+e[0].length):-1}function ke(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.y=+e[0]+(68<+e[0]?1900:2e3),n+e[0].length):-1}function pe(t,e,n){return(e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6)))?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),n+e[0].length):-1}function Te(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.q=3*e[0]-3,n+e[0].length):-1}function ve(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.m=e[0]-1,n+e[0].length):-1}function xe(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.d=+e[0],n+e[0].length):-1}function be(t,e,n){return(e=ie.exec(e.slice(n,n+3)))?(t.m=0,t.d=+e[0],n+e[0].length):-1}function we(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.H=+e[0],n+e[0].length):-1}function De(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.M=+e[0],n+e[0].length):-1}function Me(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.S=+e[0],n+e[0].length):-1}function Ce(t,e,n){return(e=ie.exec(e.slice(n,n+3)))?(t.L=+e[0],n+e[0].length):-1}function $e(t,e,n){return(e=ie.exec(e.slice(n,n+6)))?(t.L=Math.floor(e[0]/1e3),n+e[0].length):-1}function _e(t,e,n){return(e=se.exec(e.slice(n,n+1)))?n+e[0].length:-1}function Se(t,e,n){return(e=ie.exec(e.slice(n)))?(t.Q=+e[0],n+e[0].length):-1}function Ye(t,e,n){return(e=ie.exec(e.slice(n)))?(t.s=+e[0],n+e[0].length):-1}function Fe(t,e){return oe(t.getDate(),e,2)}function Ae(t,e){return oe(t.getHours(),e,2)}function Le(t,e){return oe(t.getHours()%12||12,e,2)}function Ee(t,e){return oe(1+$t.count(Gt(t),t),e,3)}function Ue(t,e){return oe(t.getMilliseconds(),e,3)}function Oe(t,e){return Ue(t,e)+"000"}function Ie(t,e){return oe(t.getMonth()+1,e,2)}function He(t,e){return oe(t.getMinutes(),e,2)}function We(t,e){return oe(t.getSeconds(),e,2)}function Pe(t){return 0===(t=t.getDay())?7:t}function Ne(t,e){return oe(Ft.count(Gt(t)-1,t),e,2)}function ze(t){var e=t.getDay();return 4<=e||0===e?Ut(t):Ut.ceil(t)}function Be(t,e){return t=ze(t),oe(Ut.count(Gt(t),t)+(4===Gt(t).getDay()),e,2)}function je(t){return t.getDay()}function Ve(t,e){return oe(At.count(Gt(t)-1,t),e,2)}function Re(t,e){return oe(t.getFullYear()%100,e,2)}function Ze(t,e){return oe((t=ze(t)).getFullYear()%100,e,2)}function Ge(t,e){return oe(t.getFullYear()%1e4,e,4)}function qe(t,e){var n=t.getDay();return oe((t=4<=n||0===n?Ut(t):Ut.ceil(t)).getFullYear()%1e4,e,4)}function Xe(t){return(0<(t=t.getTimezoneOffset())?"-":(t*=-1,"+"))+oe(t/60|0,"0",2)+oe(t%60,"0",2)}function Qe(t,e){return oe(t.getUTCDate(),e,2)}function Je(t,e){return oe(t.getUTCHours(),e,2)}function Ke(t,e){return oe(t.getUTCHours()%12||12,e,2)}function tn(t,e){return oe(1+_t.count(qt(t),t),e,3)}function en(t,e){return oe(t.getUTCMilliseconds(),e,3)}function nn(t,e){return en(t,e)+"000"}function rn(t,e){return oe(t.getUTCMonth()+1,e,2)}function sn(t,e){return oe(t.getUTCMinutes(),e,2)}function an(t,e){return oe(t.getUTCSeconds(),e,2)}function on(t){return 0===(t=t.getUTCDay())?7:t}function cn(t,e){return oe(Wt.count(qt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return 4<=e||0===e?Bt(t):Bt.ceil(t)}function un(t,e){return t=ln(t),oe(Bt.count(qt(t),t)+(4===qt(t).getUTCDay()),e,2)}function dn(t){return t.getUTCDay()}function hn(t,e){return oe(Pt.count(qt(t)-1,t),e,2)}function fn(t,e){return oe(t.getUTCFullYear()%100,e,2)}function gn(t,e){return oe((t=ln(t)).getUTCFullYear()%100,e,2)}function mn(t,e){return oe(t.getUTCFullYear()%1e4,e,4)}function yn(t,e){var n=t.getUTCDay();return oe((t=4<=n||0===n?Bt(t):Bt.ceil(t)).getUTCFullYear()%1e4,e,4)}function kn(){return"+0000"}function pn(){return"%"}function Tn(t){return+t}function vn(t){return Math.floor(+t/1e3)}function xn(t){return new Date(t)}function bn(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,i,s,a,o,c,l){var u=$(),d=u.invert,h=u.domain,f=l(".%L"),g=l(":%S"),m=l("%I:%M"),y=l("%I %p"),k=l("%a %d"),p=l("%b %d"),T=l("%B"),v=l("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,bn)):h().map(xn)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?x:l(e)},u.nice=function(t){var n=h();return(t=t&&"function"==typeof t.range?t:e(n[0],n[n.length-1],null==t?10:t))?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):u},u.copy=function(){return _(u,wn(t,e,n,r,i,s,a,o,c,l))},u}function Dn(){return Y.apply(wn(Xt,Qt,Gt,Rt,Ft,$t,Mt,wt,bt,ne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ee=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,l=le(i),u=ue(i),d=le(s),h=ue(s),f=le(a),g=ue(a),m=le(o),y=ue(o),k=le(c),p=ue(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Fe,e:Fe,f:Oe,g:Ze,G:qe,H:Ae,I:Le,j:Ee,L:Ue,m:Ie,M:He,p:function(t){return i[+(12<=t.getHours())]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Tn,s:vn,S:We,u:Pe,U:Ne,V:Be,w:je,W:Ve,x:null,X:null,y:Re,Y:Ge,Z:Xe,"%":pn},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Qe,e:Qe,f:nn,g:gn,G:yn,H:Je,I:Ke,j:tn,L:en,m:rn,M:sn,p:function(t){return i[+(12<=t.getUTCHours())]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Tn,s:vn,S:an,u:on,U:cn,V:un,w:dn,W:hn,x:null,X:null,y:fn,Y:mn,Z:kn,"%":pn},x={a:function(t,e,n){return(e=f.exec(e.slice(n)))?(t.w=g.get(e[0].toLowerCase()),n+e[0].length):-1},A:function(t,e,n){return(e=d.exec(e.slice(n)))?(t.w=h.get(e[0].toLowerCase()),n+e[0].length):-1},b:function(t,e,n){return(e=k.exec(e.slice(n)))?(t.m=p.get(e[0].toLowerCase()),n+e[0].length):-1},B:function(t,e,n){return(e=m.exec(e.slice(n)))?(t.m=y.get(e[0].toLowerCase()),n+e[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:xe,e:xe,f:$e,g:ke,G:ye,H:we,I:we,j:be,L:Ce,m:ve,M:De,p:function(t,e,n){return(e=l.exec(e.slice(n)))?(t.p=u.get(e[0].toLowerCase()),n+e[0].length):-1},q:Te,Q:Se,s:Ye,S:Me,u:he,U:fe,V:ge,w:de,W:me,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:ke,Y:ye,Z:pe,"%":_e};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++o<l;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=re[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=te(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(!e||"Z"in s||(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||53<s.V)return null;"w"in s||(s.w=1),"Z"in s?(r=4<(i=(r=Kt(te(s.y,0,1))).getUTCDay())||0===i?Pt.ceil(r):Pt(r),r=_t.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(r=4<(i=(r=Jt(te(s.y,0,1))).getDay())||0===i?At.ceil(r):At(r),r=$t.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Kt(te(s.y,0,1)).getUTCDay():Jt(te(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return("Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Kt):Jt)(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(c<=r)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in re?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),ne=ee.format,ee.parse,ee.utcFormat,ee.utcParse;var Mn,Cn,$n={exports:{}},_n=($n.exports=function(t,e,n){function r(t){return t.add(4-t.isoWeekday(),"day")}var i=((e=e.prototype).isoWeekYear=function(){return r(this).year()},e.isoWeek=function(t){var e,i,s;return this.$utils().u(t)?(i=r(this),s=this.isoWeekYear(),e=4-(s=(this.$u?n.utc:n)().year(s).startOf("year")).isoWeekday(),4<s.isoWeekday()&&(e+=7),s=s.add(e,"day"),i.diff(s,"week")+1):this.add(7*(t-this.isoWeek()),"day")},e.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)},e.startOf);e.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(t,e)}},$n.exports),Sn=D(_n),Yn={exports:{}},Fn=(function(){var t,e,n,r,i,s,a,o,c,l,u;Yn.exports=(t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i={},s=function(t){return(t=+t)+(68<t?1900:2e3)},c=function(t){return(t=i[t])&&(t.indexOf?t:t.s.concat(t.f))},l=function(t,e){var n,r=i.meridiem;if(r){for(var s=1;s<=24;s+=1)if(-1<t.indexOf(r(s,0,e))){n=12<s;break}}else n=t===(e?"pm":"PM");return n},u={A:[r=/\d*[^-_:/,()\s\d]+/,function(t){this.afternoon=l(t,!1)}],a:[r,function(t){this.afternoon=l(t,!0)}],Q:[n=/\d/,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[n=/\d\d/,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[o=/\d\d?/,(a=function(t){return function(e){this[t]=+e}})("seconds")],ss:[o,a("seconds")],m:[o,a("minutes")],mm:[o,a("minutes")],H:[o,a("hours")],h:[o,a("hours")],HH:[o,a("hours")],hh:[o,a("hours")],D:[o,a("day")],DD:[n,a("day")],Do:[r,function(t){var e=i.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[o,a("week")],ww:[n,a("week")],M:[o,a("month")],MM:[n,a("month")],MMM:[r,function(t){var e=c("months");e=(c("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],MMMM:[r,function(t){if((t=c("months").indexOf(t)+1)<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t)}],YYYY:[/\d{4}/,a("year")],Z:o=[/[+-]\d\d:?(\d\d)?|Z/,function(t){var e;(this.zone||(this.zone={})).offset=t&&"Z"!==t&&0!==(e=60*(t=t.match(/([+-]|\d\d)/g))[1]+(+t[2]||0))?"+"===t[0]?-e:e:0}],ZZ:o},function(n,r,a){a.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(s=n.parseTwoDigitYear);var o=(n=r.prototype).parse;n.parse=function(n){var r=n.date,s=n.utc,c=n.args,l=(this.$u=s,c[1]);if("string"==typeof l){var d=!0===c[2],h=!0===c[3],f=d||h,g=c[2];h&&(g=c[2]),i=this.$locale(),!d&&g&&(i=a.Ls[g]),this.$d=function(n,r,s,a){try{if(-1<["x","X"].indexOf(r))return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,s;r=n,s=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var i=r&&r.toUpperCase();return n||s[r]||t[r]||s[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=a.length,c=0;c<o;c+=1){var l=a[c],d=(h=u[l])&&h[0],h=h&&h[1];a[c]=h?{regex:d,parser:h}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e,n,r,i={},s=0,c=0;s<o;s+=1){var l,u,d=a[s];"string"==typeof d?c+=d.length:(u=d.regex,d=d.parser,l=t.slice(c),u=u.exec(l)[0],d.call(i,u),t=t.replace(u,""))}return void 0!==(r=(e=i).afternoon)&&(n=e.hours,r?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon),i}}(r)(n),c=o.year,l=o.month,d=o.day,h=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=d||(c||l?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!l||(x=0<l?l-1:p.getMonth());var b,w=h||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):s?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),b=k?a(b).week(k).toDate():b)}catch(n){return new Date("")}}(r,l,s,a),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var m=l.length,y=1;y<=m;y+=1){c[1]=l[y-1];var k=a.apply(this,c);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else o.call(this,n)}})}(),Yn.exports),An=D(Fn),Ln=function(t,e){var n=(e=e.prototype).format;e.format=function(t){var e,r,i=this,s=this.$locale();return this.isValid()?(e=this.$utils(),r=(t||"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(t){switch(t){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return s.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return s.ordinal(i.week(),"W");case"w":case"ww":return e.s(i.week(),"w"===t?1:2,"0");case"W":case"WW":return e.s(i.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return e.s(String(0===i.$H?24:i.$H),"k"===t?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return t}})),n.bind(this)(r)):n.bind(this)(t)}},En=D(Ln),Un={exports:{}},On=(function(){var t,e,n,r,i,s,a,o,c,l,u,d,h,f;Un.exports=(i=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,s=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,a={years:n=31536e6,months:r=2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(t){return t instanceof h},c=function(t,e,n){return new h(t,n,e.$l)},l=function(t){return e.p(t)+"s"},u=function(t){return t<0?Math.ceil(t):Math.floor(t)},d=function(t,e){return t?t<0?{negative:!0,format:""+Math.abs(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},h=function(){function h(t,e,n){var r=this;return this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e?c(t*a[l(e)],this):("number"==typeof t?(this.$ms=t,this.parseFromMilliseconds()):"object"==typeof t?(Object.keys(t).forEach((function(e){r.$d[l(e)]=t[e]})),this.calMilliseconds()):"string"==typeof t&&(n=t.match(i))&&(e=n.slice(2).map((function(t){return null!=t?Number(t):0})),this.$d.years=e[0],this.$d.months=e[1],this.$d.weeks=e[2],this.$d.days=e[3],this.$d.hours=e[4],this.$d.minutes=e[5],this.$d.seconds=e[6],this.calMilliseconds()),this)}var f=h.prototype;return f.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*a[n]}),0)},f.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=u(t/n),this.$d.months=u((t%=n)/r),this.$d.days=u((t%=r)/864e5),this.$d.hours=u((t%=864e5)/36e5),this.$d.minutes=u((t%=36e5)/6e4),this.$d.seconds=u((t%=6e4)/1e3),this.$d.milliseconds=t%=1e3},f.toISOString=function(){var t=d(this.$d.years,"Y"),e=d(this.$d.months,"M"),n=+this.$d.days||0,r=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),d(n,"D")),d(this.$d.hours,"H")),i=d(this.$d.minutes,"M"),s=this.$d.seconds||0,a=(s=(this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3),d(s,"S")),t.negative||e.negative||n.negative||r.negative||i.negative||s.negative),o=r.format||i.format||s.format?"T":"";return"P"==(a=(a?"-":"")+"P"+t.format+e.format+n.format+o+r.format+i.format+s.format)||"-P"==a?"P0D":a},f.toJSON=function(){return this.toISOString()},f.format=function(t){t=t||"YYYY-MM-DDTHH:mm:ss";var n={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return t.replace(s,(function(t,e){return e||String(n[t])}))},f.as=function(t){return this.$ms/a[l(t)]},f.get=function(t){var e=this.$ms;return"milliseconds"===(t=l(t))?e%=1e3:e="weeks"===t?u(e/a[t]):this.$d[t],e||0},f.add=function(t,e,n){return e=e?t*a[l(e)]:(o(t)?t:c(t,this)).$ms,c(this.$ms+e*(n?-1:1),this)},f.subtract=function(t,e){return this.add(t,e,!0)},f.locale=function(t){var e=this.clone();return e.$l=t,e},f.clone=function(){return c(this.$ms,this)},f.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},f.valueOf=function(){return this.asMilliseconds()},f.milliseconds=function(){return this.get("milliseconds")},f.asMilliseconds=function(){return this.as("milliseconds")},f.seconds=function(){return this.get("seconds")},f.asSeconds=function(){return this.as("seconds")},f.minutes=function(){return this.get("minutes")},f.asMinutes=function(){return this.as("minutes")},f.hours=function(){return this.get("hours")},f.asHours=function(){return this.as("hours")},f.days=function(){return this.get("days")},f.asDays=function(){return this.as("days")},f.weeks=function(){return this.get("weeks")},f.asWeeks=function(){return this.as("weeks")},f.months=function(){return this.get("months")},f.asMonths=function(){return this.as("months")},f.years=function(){return this.get("years")},f.asYears=function(){return this.as("years")},h}(),f=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")},function(n,r,i){e=(t=i)().$utils(),i.duration=function(t,e){var n=i.locale();return c(t,{$l:n},e)},i.isDuration=o;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return o(t)?f(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return o(t)?f(this,t,-1):a.bind(this)(t,e)}})}(),Un.exports),In=D(On),Hn=function(){var t=o((function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n}),"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35];n={trace:o((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:o((function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}}),"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:a,17:c,18:l,19:18,20:u,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:l,19:18,20:u,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},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:o((function(t,e){var n;if(!e.recoverable)throw(n=new Error(t)).hash=e,n;this.trace(t)}),"parseError"),parse:o((function(t){var e,n=this,r=[0],i=[],s=[null],a=[],c=this.table,l="",u=0,d=0,h=a.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc,y=(a.push(m),f.options&&f.options.ranges);function k(){var t=i.pop()||f.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(i=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o((function(t){r.length=r.length-2*t,s.length=s.length-t,a.length=a.length-t}),"popStack"),o(k,"lex");for(var p,T,v,x,b,w,D={};;){if(T=r[r.length-1],void 0===(v=this.defaultActions[T]||(null==p&&(p=k()),c[T]&&c[T][p]))||!v.length||!v[0]){var M,C=[];for(x in c[T])this.terminals_[x]&&2<x&&C.push("'"+this.terminals_[x]+"'");M=f.showPosition?"Parse error on line "+(u+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(M,{text:f.match,token:this.terminals_[p]||p,line:f.yylineno,loc:m,expected:C})}if(v[0]instanceof Array&&1<v.length)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:r.push(p),s.push(f.yytext),a.push(f.yylloc),r.push(v[1]),p=null,d=f.yyleng,l=f.yytext,u=f.yylineno,m=f.yylloc;break;case 2:if(b=this.productions_[v[1]][1],D.$=s[s.length-b],D._$={first_line:a[a.length-(b||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(b||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(b||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[l,d,u,g.yy,v[1],s,a].concat(h))))return w;b&&(r=r.slice(0,-1*b*2),s=s.slice(0,-1*b),a=a.slice(0,-1*b)),r.push(this.productions_[v[1]][0]),s.push(D.$),a.push(D._$),w=c[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0}),"parse")},r={EOF:1,parseError:o((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:o((function(t,e){return this.yy=e||this.yy||{},this._input=t,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:o((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:o((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g),r=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=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),n.length-1&&(this.yylineno-=n.length-1),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:n?(n.length===t.length?this.yylloc.first_column:0)+t[t.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:o((function(){return this._more=!0,this}),"more"),reject:o((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:o((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:o((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:o((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:o((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:o((function(t,e){var n,r;if(this.options.backtrack_lexer&&(r={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)&&(r.yylloc.range=this.yylloc.range.slice(0)),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var i in r)this[i]=r[i];return!1}),"test_match"),next:o((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,r,i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length))if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:o((function(){return this.next()||this.lex()}),"lex"),begin:o((function(t){this.conditionStack.push(t)}),"begin"),popState:o((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:o((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:o((function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:o((function(t){this.begin(t)}),"pushState"),stateStackSize:o((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:o((function(t,e,n,r){switch(n){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:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}};function $(){this.yy={}}return n.lexer=r,o($,"Parser"),new(($.prototype=n).Parser=$)}(),Wn=Hn.parser=Hn,Pn=(c.extend(Sn),c.extend(An),c.extend(En),{friday:5,saturday:6}),Nn="",zn="",Bn=void 0,jn="",Vn=[],Rn=[],Zn=new Map,Gn=[],qn=[],Xn="",Qn="",Jn=["active","done","crit","milestone","vert"],Kn=[],tr="",er=!1,nr=!1,rr="sunday",ir="saturday",sr=0,ar=o((function(){Gn=[],qn=[],Kn=[],jr=[],Bn=Cn=Mn=void(Pr=0),jn=Qn=zn=Nn=Xn="",Vn=[],nr=er=!(Rn=[]),sr=0,Zn=new Map,tr="",y(),rr="sunday",ir="saturday"}),"clear"),or=o((function(t){tr=t}),"setDiagramId"),cr=o((function(t){zn=t}),"setAxisFormat"),lr=o((function(){return zn}),"getAxisFormat"),ur=o((function(t){Bn=t}),"setTickInterval"),dr=o((function(){return Bn}),"getTickInterval"),hr=o((function(t){jn=t}),"setTodayMarker"),fr=o((function(){return jn}),"getTodayMarker"),gr=o((function(t){Nn=t}),"setDateFormat"),mr=o((function(){er=!0}),"enableInclusiveEndDates"),yr=o((function(){return er}),"endDatesAreInclusive"),kr=o((function(){nr=!0}),"enableTopAxis"),pr=o((function(){return nr}),"topAxisEnabled"),Tr=o((function(t){Qn=t}),"setDisplayMode"),vr=o((function(){return Qn}),"getDisplayMode"),xr=o((function(){return Nn}),"getDateFormat"),br=o(((t,e)=>(e=e.toLowerCase().split(/[\s,]+/).filter((t=>""!==t)),[...new Set([...t,...e])])),"mergeTokens"),wr=o((function(t){Vn=br(Vn,t)}),"setIncludes"),Dr=o((function(){return Vn}),"getIncludes"),Mr=o((function(t){Rn=br(Rn,t)}),"setExcludes"),Cr=o((function(){return Rn}),"getExcludes"),$r=o((function(){return Zn}),"getLinks"),_r=o((function(t){Xn=t,Gn.push(t)}),"addSection"),Sr=o((function(){return Gn}),"getSections"),Yr=o((function(){let t=qr(),e=0;for(;!t&&e<10;)t=qr(),e++;return qn=jr}),"getTasks"),Fr=o((function(t,e,n,r){e=t.format(e.trim());var i=t.format("YYYY-MM-DD");return!r.includes(e)&&!r.includes(i)&&(!(!n.includes("weekends")||t.isoWeekday()!==Pn[ir]&&t.isoWeekday()!==Pn[ir]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(e)||n.includes(i))}),"isInvalidDate"),Ar=o((function(t){rr=t}),"setWeekday"),Lr=o((function(){return rr}),"getWeekday"),Er=o((function(t){ir=t}),"setWeekend"),Ur=o((function(t,e,n,r){if(n.length&&!t.manualEndTime){let i,s;i=(i=t.startTime instanceof Date?c(t.startTime):c(t.startTime,e,!0)).add(1,"d"),s=t.endTime instanceof Date?c(t.endTime):c(t.endTime,e,!0);var[e,n]=Or(i,s,e,n,r);t.endTime=e.toDate(),t.renderEndTime=n}}),"checkTaskDates"),Or=o((function(t,e,n,r,i){let s=!1,a=null;for(var o=e.add(1e4,"d");t<=e;){if(s||(a=e.toDate()),(s=Fr(t,n,r,i))&&o<(e=e.add(1,"d")))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,a]}),"fixTaskDates"),Ir=o((function(t,e,n){if(n=n.trim(),o((t=>"x"===(t=t.trim())||"X"===t),"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));var r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const e of r.groups.ids.split(" ")){var i=Zr(e);void 0!==i&&(!t||i.endTime>t.endTime)&&(t=i)}return t?t.endTime:((r=new Date).setHours(0,0,0,0),r)}if((r=c(n,e.trim(),!0)).isValid())return r.toDate();if(p.debug("Invalid date:"+n),p.debug("With date format:"+e.trim()),void 0===(r=new Date(n))||isNaN(r.getTime())||r.getFullYear()<-1e4||1e4<r.getFullYear())throw new Error("Invalid date:"+n);return r}),"getStartDate"),Hr=o((function(t){return null!==(t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()))?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]}),"parseDuration"),Wr=o((function(t,e,n,r=!1){var i;if(n=n.trim(),null!==(i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n))){let t=null;for(const e of i.groups.ids.split(" ")){var s=Zr(e);void 0!==s&&(!t||s.startTime<t.startTime)&&(t=s)}return t?t.startTime:((i=new Date).setHours(0,0,0,0),i)}let a=c(n,e.trim(),!0);if(a.isValid())return(a=r?a.add(1,"d"):a).toDate();let o=c(t);var[i,e]=Hr(n);return Number.isNaN(i)||(r=o.add(i,e)).isValid()&&(o=r),o.toDate()}),"getEndDate"),Pr=0,Nr=o((function(t){return void 0===t?"task"+(Pr+=1):t}),"parseId"),zr=o((function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};ri(r,i,Jn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();let s="";switch(r.length){case 1:i.id=Nr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Nr(),i.startTime=Ir(void 0,Nn,r[0]),s=r[1];break;case 3:i.id=Nr(r[0]),i.startTime=Ir(void 0,Nn,r[1]),s=r[2]}return s&&(i.endTime=Wr(i.startTime,Nn,s,er),i.manualEndTime=c(s,"YYYY-MM-DD",!0).isValid(),Ur(i,Nn,Rn,Vn)),i}),"compileData"),Br=o((function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};ri(r,i,Jn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();switch(r.length){case 1:i.id=Nr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Nr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Nr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i}),"parseData"),jr=[],Vr={},Rr=o((function(t,e){t={section:Xn,type:Xn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},e=Br(Cn,e),t.raw.startTime=e.startTime,t.raw.endTime=e.endTime,t.id=e.id,t.prevTaskId=Cn,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,t.vert?t.order=-1:(t.order=sr,sr++),e=jr.push(t),Vr[Cn=t.id]=e-1}),"addTask"),Zr=o((function(t){return t=Vr[t],jr[t]}),"findTaskById"),Gr=o((function(t,e){t={section:Xn,type:Xn,description:t,task:t,classes:[]},e=zr(Mn,e),t.startTime=e.startTime,t.endTime=e.endTime,t.id=e.id,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,Mn=t,qn.push(t)}),"addTaskOrg"),qr=o((function(){var t,e,n=o((function(t){var e=jr[t];switch(jr[t].raw.startTime.type){case"prevTaskEnd":var n=Zr(e.prevTaskId);e.startTime=n.endTime;break;case"getStartDate":(n=Ir(void 0,Nn,jr[t].raw.startTime.startData))&&(jr[t].startTime=n)}return jr[t].startTime&&(jr[t].endTime=Wr(jr[t].startTime,Nn,jr[t].raw.endTime.data,er),jr[t].endTime)&&(jr[t].processed=!0,jr[t].manualEndTime=c(jr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ur(jr[t],Nn,Rn,Vn)),jr[t].processed}),"compileTask");let r=!0;for([t,e]of jr.entries())n(t),r=r&&e.processed;return r}),"compileTasks"),Xr=o((function(t,e){let n=e;"loose"!==l().securityLevel&&(n=k(e)),t.split(",").forEach((function(t){void 0!==Zr(t)&&(Kr(t,(()=>{window.open(n,"_self")})),Zn.set(t,n))})),Qr(t,"clickable")}),"setLink"),Qr=o((function(t,e){t.split(",").forEach((function(t){void 0!==(t=Zr(t))&&t.classes.push(e)}))}),"setClass"),Jr=o((function(t,e,n){if("loose"===l().securityLevel&&void 0!==e){let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Zr(t)&&Kr(t,(()=>{b.runFunc(e,...r)}))}}),"setClickFun"),Kr=o((function(t,e){Kn.push((function(){var n=tr?tr+"-"+t:t;null!==(n=document.querySelector(`[id="${n}"]`))&&n.addEventListener("click",(function(){e()}))}),(function(){var n=tr?tr+"-"+t:t;null!==(n=document.querySelector(`[id="${n}-text"]`))&&n.addEventListener("click",(function(){e()}))}))}),"pushFun"),ti=o((function(t,e,n){t.split(",").forEach((function(t){Jr(t,e,n)})),Qr(t,"clickable")}),"setClickEvent"),ei=o((function(t){Kn.forEach((function(e){e(t)}))}),"bindFunctions"),ni={getConfig:o((()=>l().gantt),"getConfig"),clear:ar,setDateFormat:gr,getDateFormat:xr,enableInclusiveEndDates:mr,endDatesAreInclusive:yr,enableTopAxis:kr,topAxisEnabled:pr,setAxisFormat:cr,getAxisFormat:lr,setTickInterval:ur,getTickInterval:dr,setTodayMarker:hr,getTodayMarker:fr,setAccTitle:u,getAccTitle:d,setDiagramTitle:h,getDiagramTitle:f,setDiagramId:or,setDisplayMode:Tr,getDisplayMode:vr,setAccDescription:g,getAccDescription:m,addSection:_r,getSections:Sr,getTasks:Yr,addTask:Rr,findTaskById:Zr,addTaskOrg:Gr,setIncludes:wr,getIncludes:Dr,setExcludes:Mr,getExcludes:Cr,setClickEvent:ti,setLink:Xr,getLinks:$r,bindFunctions:ei,parseDuration:Hr,isInvalidDate:Fr,setWeekday:Ar,getWeekday:Lr,setWeekend:Er};function ri(t,e,n){let r=!0;for(;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}o(ri,"getTaskTags"),c.extend(In);var ii,si=o((function(){p.debug("Something is calling, setConf, remove the call")}),"setConf"),ai={monday:At,tuesday:Lt,wednesday:Et,thursday:Ut,friday:Ot,saturday:It,sunday:Ft},oi=o(((t,e)=>{var n=[...t].map((()=>-1/0));let r=0;for(const i of[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)))for(let t=0;t<n.length;t++)if(i.startTime>=n[t]){n[t]=i.endTime,i.order=t+e,t>r&&(r=t);break}return r}),"getMaxIntersections"),ci=1e4,li=o((function(t,e,n,r){const i=l().gantt;let s;r.db.setDiagramId(e),"sandbox"===(d=l().securityLevel)&&(s=T("#i"+e));var a=T("sandbox"===d?s.nodes()[0].contentDocument.body:"body");const u="sandbox"===d?s.nodes()[0].contentDocument:document;var d=u.getElementById(e),h=(void 0===(ii=d.parentElement.offsetWidth)&&(ii=1200),void 0!==i.useWidth&&(ii=i.useWidth),r.db.getTasks()),f=h.filter((t=>!t.vert));let g=[];for(const t of f)g.push(t.type);g=H(g);const m={};let y=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){var k={};for(const t of f)void 0===k[t.section]?k[t.section]=[t]:k[t.section].push(t);let t=0;for(const e of Object.keys(k)){var b=oi(k[e],t)+1;t+=b,y+=b*(i.barHeight+i.barGap),m[e]=b}}else{y+=f.length*(i.barHeight+i.barGap);for(const t of g)m[t]=f.filter((e=>e.type===t)).length}d.setAttribute("viewBox","0 0 "+ii+" "+y);const w=a.select(`[id="${e}"]`),D=Dn().domain([A(h,(function(t){return t.startTime})),F(h,(function(t){return t.endTime}))]).rangeRound([0,ii-i.leftPadding-i.rightPadding]);function M(t,e){t=t.startTime;let n=0;return(e=e.startTime)<t?n=1:t<e&&(n=-1),n}function C(t,e,n){var s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;S().domain([0,g.length]).range(["#00B9FA","#F95002"]).interpolate(ut);_(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),L(c,o,0,n),$(t,a,o,c,s,0,e),U(a,o),I(c,0,0,n)}function $(t,n,s,a,o,c,u){t.sort(((t,e)=>t.vert===e.vert?0:t.vert?1:-1));const d=t.filter((t=>!t.vert));var h=[...new Set(d.map((t=>t.order)))].map((t=>d.find((e=>e.order===t))));w.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+s-2})).attr("width",(function(){return u-i.rightPadding/2})).attr("height",n).attr("class",(function(t){for(var[e,n]of g.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"})).enter(),h=w.append("g").selectAll("rect").data(t).enter();const f=r.db.getLinks();if(h.append("rect").attr("id",(function(t){return e+"-"+t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?D(t.startTime)+a+.5*(D(t.endTime)-D(t.startTime))-.5*o:D(t.startTime)+a})).attr("y",(function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s})).attr("width",(function(t){return t.milestone?o:t.vert?.08*o:D(t.renderEndTime||t.endTime)-D(t.startTime)})).attr("height",(function(t){return t.vert?d.length*(i.barHeight+i.barGap)+2*i.barHeight:o})).attr("transform-origin",(function(t,e){return e=t.order,(D(t.startTime)+a+.5*(D(t.endTime)-D(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"})).attr("class",(function(t){var e,n;let r="",s=(0<t.classes.length&&(r=t.classes.join(" ")),0);for([e,n]of g.entries())t.type===n&&(s=e%i.numberSectionStyles);let a="";return t.active?t.crit?a+=" activeCrit":a=" active":t.done?a=t.crit?" doneCrit":" done":t.crit&&(a+=" crit"),0===a.length&&(a=" task"),t.milestone&&(a=" milestone "+a),t.vert&&(a=" vert "+a),"task"+(a+=s)+" "+r})),h.append("text").attr("id",(function(t){return e+"-"+t.id+"-text"})).text((function(t){return t.task})).attr("font-size",i.fontSize).attr("x",(function(t){let e=D(t.startTime),n=D(t.renderEndTime||t.endTime);return t.milestone&&(e+=.5*(D(t.endTime)-D(t.startTime))-.5*o,n=e+o),t.vert?D(t.startTime)+a:(t=this.getBBox().width)>n-e?n+t+1.5*i.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a})).attr("y",(function(t,e){return t.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s})).attr("text-height",o).attr("class",(function(t){var e=D(t.startTime);let n=D(t.endTime);t.milestone&&(n=e+o);var r,s,a=this.getBBox().width;let c="",l=(0<t.classes.length&&(c=t.classes.join(" ")),0);for([r,s]of g.entries())t.type===s&&(l=r%i.numberSectionStyles);let d="";return t.active&&(d=t.crit?"activeCritText"+l:"activeText"+l),t.done?d=t.crit?d+" doneCritText"+l:d+" doneText"+l:t.crit&&(d=d+" critText"+l),t.milestone&&(d+=" milestoneText"),t.vert&&(d+=" vertText"),a>n-e?n+a+1.5*i.leftPadding>u?c+" taskTextOutsideLeft taskTextOutside"+l+" "+d:c+" taskTextOutsideRight taskTextOutside"+l+" "+d+" width-"+a:c+" taskText taskText"+l+" "+d+" width-"+a})),"sandbox"===l().securityLevel){const t=T("#i"+e).nodes()[0].contentDocument;h.filter((function(t){return f.has(t.id)})).each((function(n){var r=t.querySelector("#"+CSS.escape(e+"-"+n.id)),i=t.querySelector("#"+CSS.escape(e+"-"+n.id+"-text")),s=r.parentNode,a=t.createElement("a");a.setAttribute("xlink:href",f.get(n.id)),a.setAttribute("target","_top"),s.appendChild(a),a.appendChild(r),a.appendChild(i)}))}}function _(t,n,s,a,o,l,u,d){if(0!==u.length||0!==d.length){let a,y;for(var{startTime:h,endTime:f}of l)(void 0===a||h<a)&&(a=h),(void 0===y||f>y)&&(y=f);if(a&&y)if(5<c(y).diff(c(a),"year"))p.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");else{var g=r.db.getDateFormat(),m=[];let l=null,h=c(a);for(;h.valueOf()<=y;)r.db.isInvalidDate(h,g,u,d)?l?l.end=h:l={start:h,end:h}:l&&(m.push(l),l=null),h=h.add(1,"d");w.append("g").selectAll("rect").data(m).enter().append("rect").attr("id",(t=>e+"-exclude-"+t.start.format("YYYY-MM-DD"))).attr("x",(t=>D(t.start.startOf("day"))+s)).attr("y",i.gridLineStartPadding).attr("width",(t=>D(t.end.endOf("day"))-D(t.start.startOf("day")))).attr("height",o-n-i.gridLineStartPadding).attr("transform-origin",(function(e,n){return(D(e.start)+s+.5*(D(e.end)-D(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"})).attr("class","exclude-range")}}}function Y(t,e,n,r){return n<=0||e<t||(e-=t,(t=c.duration({[r??"day"]:n}).asMilliseconds())<=0)?1/0:Math.ceil(e/t)}function L(t,e,n,s){var a=r.db.getDateFormat();let o;o=(c=r.db.getAxisFormat())||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");var c,l=function(t){return j(O,t)}(D).tickSize(-s+e+i.gridLineStartPadding).tickFormat(ne(o));if(null!==(c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval))){var u=parseInt(c[1],10);if(isNaN(u)||u<=0)p.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{a=c[2];var d=r.db.getWeekday()||i.weekday,h=Y((h=D.domain())[0],h[1],u,a);if(ci<h)p.warn(`The tick interval "${u}${a}" would generate ${h} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(a){case"millisecond":l.ticks(gt.every(u));break;case"second":l.ticks(bt.every(u));break;case"minute":l.ticks(wt.every(u));break;case"hour":l.ticks(Mt.every(u));break;case"day":l.ticks($t.every(u));break;case"week":l.ticks(ai[d].every(u));break;case"month":l.ticks(Rt.every(u))}}}if(w.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){var f=function(t){return j(E,t)}(D).tickSize(-s+e+i.gridLineStartPadding).tickFormat(ne(o));if(null!==c){var g=parseInt(c[1],10);if(isNaN(g)||g<=0)p.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{h=c[2];var m=r.db.getWeekday()||i.weekday;if(Y((a=D.domain())[0],a[1],g,h)<=ci)switch(h){case"millisecond":f.ticks(gt.every(g));break;case"second":f.ticks(bt.every(g));break;case"minute":f.ticks(wt.every(g));break;case"hour":f.ticks(Mt.every(g));break;case"day":f.ticks($t.every(g));break;case"week":f.ticks(ai[m].every(g));break;case"month":f.ticks(Rt.every(g))}}}w.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function U(t,e){let n=0;const r=Object.keys(m).map((t=>[t,m[t]]));w.append("g").selectAll("text").data(r).enter().append((function(t){var e,n,r=-((t=t[0].split(x.lineBreakRegex)).length-1)/2,i=u.createElementNS("http://www.w3.org/2000/svg","text");for([e,n]of(i.setAttribute("dy",r+"em"),t.entries())){var s=u.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),0<e&&s.setAttribute("dy","1em"),s.textContent=n,i.appendChild(s)}return i})).attr("x",10).attr("y",(function(i,s){if(!(0<s))return i[1]*t/2+e;if(0<s)return n+=r[s-1][1],i[1]*t/2+n*t+e})).attr("font-size",i.sectionFontSize).attr("class",(function(t){for(var[e,n]of g.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"}))}function I(t,e,n,s){var a,o,c=r.db.getTodayMarker();"off"!==c&&(o=w.append("g").attr("class","today"),a=new Date,(o=o.append("line")).attr("x1",D(a)+t).attr("x2",D(a)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==c)&&o.attr("style",c.replace(/,/g,";"))}function H(t){var e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}o(M,"taskCompare"),h.sort(M),C(h,ii,y),v(w,y,ii,i.useMaxWidth),w.append("text").text(r.db.getDiagramTitle()).attr("x",ii/2).attr("y",i.titleTopMargin).attr("class","titleText"),o(C,"makeGantt"),o($,"drawRects"),o(_,"drawExcludeDays"),o(Y,"getEstimatedTickCount"),o(L,"makeGrid"),o(U,"vertLabels"),o(I,"drawToday"),o(H,"checkUnique")}),"draw"),ui={setConf:si,draw:li},di=o((t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`),"getStyles"),hi={parser:Wn,db:ni,renderer:ui,styles:di};export{hi as diagram};
@@ -0,0 +1 @@
1
+ var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{bh as n,bi as r,bj as i,bk as s,bl as a,bm as o,bn as c,_ as l,bo as u,d,s as h,g as f,n as g,o as m,c as y,b as k,v as p,m as T,l as v,j as x,k as b,e as w,u as D}from"./mermaid.core-70d5aead.js";import{c as M,g as C}from"./web-25bb78b9.js";import{b as $,t as _,c as S,a as Y,l as F}from"./linear-d7ad6d25.js";import{i as A}from"./init-b029a625.js";import"./defaultLocale-b4977250.js";function L(t,e){let n;if(void 0===e)for(var r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(var i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function E(t,e){let n;if(void 0===e)for(var r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(var i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function U(t){return t}var O=1e-6;function I(t){return"translate("+t+",0)"}function H(t){return"translate(0,"+t+")"}function W(t){return e=>+t(e)}function P(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function N(){return!this.__axis}function z(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&1<window.devicePixelRatio?0:.5,l=1===t||4===t?-1:1,u=4===t||2===t?"x":"y",d=1===t||3===t?I:H;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):U:i,m=Math.max(s,0)+o,y=+(k=e.range())[0]+c,k=+k[k.length-1]+c,p=(e.bandwidth?P:W)(e.copy(),c),T=h.selection?h.selection():h,v=T.selectAll(".domain").data([null]),x=(f=T.selectAll(".tick").data(f,e).order()).exit(),b=f.enter().append("g").attr("class","tick"),w=f.select("line"),D=f.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),f=f.merge(b),w=w.merge(b.append("line").attr("stroke","currentColor").attr(u+"2",l*s)),D=D.merge(b.append("text").attr("fill","currentColor").attr(u,l*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em"));h!==T&&(v=v.transition(h),f=f.transition(h),w=w.transition(h),D=D.transition(h),x=x.transition(h).attr("opacity",O).attr("transform",function(t){return isFinite(t=p(t))?d(t+c):this.getAttribute("transform")}),b.attr("opacity",O).attr("transform",function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:p(t))+c)})),x.remove(),v.attr("d",4===t||2===t?a?"M"+l*a+","+y+"H"+c+"V"+k+"H"+l*a:"M"+c+","+y+"V"+k:a?"M"+y+","+l*a+"V"+c+"H"+k+"V"+l*a:"M"+y+","+c+"H"+k),f.attr("opacity",1).attr("transform",function(t){return d(p(t)+c)}),w.attr(u+"2",l*s),D.attr(u,l*m).text(g),T.filter(N).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),T.each(function(){this.__axis=p})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}let B=Math.PI/180,j=180/Math.PI,V=.96422,R=.82521,Z=4/29,G=6/29,q=3*G*G,X=G*G*G;function Q(t){var e,n,r,s,o,c;return t instanceof J?new J(t.l,t.a,t.b,t.opacity):t instanceof it?st(t):(s=K((.2225045*(e=nt((t=t instanceof i?t:a(t)).r))+.7168786*(n=nt(t.g))+.0606169*(r=nt(t.b)))/1),e===n&&n===r?o=c=s:(o=K((.4360747*e+.3850649*n+.1430804*r)/V),c=K((.0139322*e+.0971045*n+.7141733*r)/R)),new J(116*s-16,500*(o-s),200*(s-c),t.opacity))}function J(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function K(t){return t>X?Math.pow(t,1/3):t/q+Z}function tt(t){return t>G?t*t*t:q*(t-Z)}function et(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function nt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rt(t,e,n,r){return 1===arguments.length?function(t){var e;return t instanceof it?new it(t.h,t.c,t.l,t.opacity):0===(t=t instanceof J?t:Q(t)).a&&0===t.b?new it(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity):new it((e=Math.atan2(t.b,t.a)*j)<0?360+e:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new it(t,e,n,null==r?1:r)}function it(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function st(t){var e;return isNaN(t.h)?new J(t.l,0,0,t.opacity):(e=t.h*B,new J(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity))}n(J,function(t,e,n,r){return 1===arguments.length?Q(t):new J(t,e,n,null==r?1:r)},r(s,{brighter(t){return new J(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new J(this.l-18*(null==t?1:t),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;e=V*tt(e),t=1*tt(t),n=R*tt(n);return new i(et(3.1338561*e-1.6168667*t-.4906146*n),et(-.9787684*e+1.9161415*t+.033454*n),et(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),n(it,rt,r(s,{brighter(t){return new it(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new it(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return st(this).rgb()}}));var at,ot=(at=c,function(t,e){var n=at((t=rt(t)).h,(e=rt(e)).h),r=o(t.c,e.c),i=o(t.l,e.l),s=o(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=r(e),t.l=i(e),t.opacity=s(e),t+""}});let ct=new Date,lt=new Date;function ut(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{var a,o=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),n<r&&0<s)for(;o.push(a=new Date(+n)),e(n,s),t(n),a<n&&n<r;);return o},i.filter=n=>ut(e=>{if(e<=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t<=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;0<=--r;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(ct.setTime(+e),lt.setTime(+r),t(ct),t(lt),Math.floor(n(ct,lt))),i.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}let dt=ut(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t),ht=(dt.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?ut(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):dt:null),1e3),ft=60*ht,gt=60*ft,mt=24*gt,yt=7*mt,kt=30*mt,pt=365*mt,Tt=ut(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds()),vt=(Tt.range,ut(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getMinutes())),xt=(vt.range,ut(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCMinutes())),bt=(xt.range,ut(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*ft)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours())),wt=(bt.range,ut(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours())),Dt=(wt.range,ut(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ft)/mt,t=>t.getDate()-1)),Mt=(Dt.range,ut(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>t.getUTCDate()-1)),Ct=(Mt.range,ut(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>Math.floor(t/mt)));function $t(t){return ut(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ft)/yt)}Ct.range;let _t=$t(0),St=$t(1),Yt=$t(2),Ft=$t(3),At=$t(4),Lt=$t(5),Et=$t(6);function Ut(t){return ut(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/yt)}_t.range,St.range,Yt.range,Ft.range,At.range,Lt.range,Et.range;let Ot=Ut(0),It=Ut(1),Ht=Ut(2),Wt=Ut(3),Pt=Ut(4),Nt=Ut(5),zt=Ut(6),Bt=(Ot.range,It.range,Ht.range,Wt.range,Pt.range,Nt.range,zt.range,ut(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth())),jt=(Bt.range,ut(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth())),Vt=(jt.range,ut(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())),Rt=(Vt.every=t=>isFinite(t=Math.floor(t))&&0<t?ut(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)}):null,ut(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()));Rt.every=t=>isFinite(t=Math.floor(t))&&0<t?ut(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)}):null;let[Zt,Gt]=function(t,e,n,r,i,s){let a=[[Tt,1,ht],[Tt,5,5*ht],[Tt,15,15*ht],[Tt,30,30*ht],[s,1,ft],[s,5,5*ft],[s,15,15*ft],[s,30,30*ft],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,mt],[r,2,2*mt],[n,1,yt],[e,1,kt],[e,3,3*kt],[t,1,pt]];function o(e,n,r){var i=Math.abs(n-e)/r,s=$(([,,t])=>t).right(a,i);return s===a.length?t.every(_(e/pt,n/pt,r)):0===s?dt.every(Math.max(_(e,n,r),1)):([e,n]=a[i/a[s-1][2]<a[s][2]/i?s-1:s],e.every(n))}return[function(t,e,n){var r=e<t;return r&&([t,e]=[e,t]),n=(n=n&&"function"==typeof n.range?n:o(t,e,n))?n.range(t,+e+1):[],r?n.reverse():n},o]}(Vt,Bt,_t,Dt,bt,vt);function qt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L)).setFullYear(t.y),e):new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Xt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L))).setUTCFullYear(t.y),e):new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Qt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Jt,Kt,te={"-":"",_:" ",0:"0"},ee=/^\s*\d+/,ne=/^%/,re=/[\\^$*+?|[\]().{}]/g;function ie(t,e,n){var r=t<0?"-":"",i=(t=(r?-t:t)+"").length;return r+(i<n?new Array(n-i+1).join(e)+t:t)}function se(t){return t.replace(re,"\\$&")}function ae(t){return new RegExp("^(?:"+t.map(se).join("|")+")","i")}function oe(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ce(t,e,n){return(e=ee.exec(e.slice(n,n+1)))?(t.w=+e[0],n+e[0].length):-1}function le(t,e,n){return(e=ee.exec(e.slice(n,n+1)))?(t.u=+e[0],n+e[0].length):-1}function ue(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.U=+e[0],n+e[0].length):-1}function de(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.V=+e[0],n+e[0].length):-1}function he(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.W=+e[0],n+e[0].length):-1}function fe(t,e,n){return(e=ee.exec(e.slice(n,n+4)))?(t.y=+e[0],n+e[0].length):-1}function ge(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.y=+e[0]+(68<+e[0]?1900:2e3),n+e[0].length):-1}function me(t,e,n){return(e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6)))?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),n+e[0].length):-1}function ye(t,e,n){return(e=ee.exec(e.slice(n,n+1)))?(t.q=3*e[0]-3,n+e[0].length):-1}function ke(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.m=e[0]-1,n+e[0].length):-1}function pe(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.d=+e[0],n+e[0].length):-1}function Te(t,e,n){return(e=ee.exec(e.slice(n,n+3)))?(t.m=0,t.d=+e[0],n+e[0].length):-1}function ve(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.H=+e[0],n+e[0].length):-1}function xe(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.M=+e[0],n+e[0].length):-1}function be(t,e,n){return(e=ee.exec(e.slice(n,n+2)))?(t.S=+e[0],n+e[0].length):-1}function we(t,e,n){return(e=ee.exec(e.slice(n,n+3)))?(t.L=+e[0],n+e[0].length):-1}function De(t,e,n){return(e=ee.exec(e.slice(n,n+6)))?(t.L=Math.floor(e[0]/1e3),n+e[0].length):-1}function Me(t,e,n){return(e=ne.exec(e.slice(n,n+1)))?n+e[0].length:-1}function Ce(t,e,n){return(e=ee.exec(e.slice(n)))?(t.Q=+e[0],n+e[0].length):-1}function $e(t,e,n){return(e=ee.exec(e.slice(n)))?(t.s=+e[0],n+e[0].length):-1}function _e(t,e){return ie(t.getDate(),e,2)}function Se(t,e){return ie(t.getHours(),e,2)}function Ye(t,e){return ie(t.getHours()%12||12,e,2)}function Fe(t,e){return ie(1+Dt.count(Vt(t),t),e,3)}function Ae(t,e){return ie(t.getMilliseconds(),e,3)}function Le(t,e){return Ae(t,e)+"000"}function Ee(t,e){return ie(t.getMonth()+1,e,2)}function Ue(t,e){return ie(t.getMinutes(),e,2)}function Oe(t,e){return ie(t.getSeconds(),e,2)}function Ie(t){return 0===(t=t.getDay())?7:t}function He(t,e){return ie(_t.count(Vt(t)-1,t),e,2)}function We(t){var e=t.getDay();return 4<=e||0===e?At(t):At.ceil(t)}function Pe(t,e){return t=We(t),ie(At.count(Vt(t),t)+(4===Vt(t).getDay()),e,2)}function Ne(t){return t.getDay()}function ze(t,e){return ie(St.count(Vt(t)-1,t),e,2)}function Be(t,e){return ie(t.getFullYear()%100,e,2)}function je(t,e){return ie((t=We(t)).getFullYear()%100,e,2)}function Ve(t,e){return ie(t.getFullYear()%1e4,e,4)}function Re(t,e){var n=t.getDay();return ie((t=4<=n||0===n?At(t):At.ceil(t)).getFullYear()%1e4,e,4)}function Ze(t){return(0<(t=t.getTimezoneOffset())?"-":(t*=-1,"+"))+ie(t/60|0,"0",2)+ie(t%60,"0",2)}function Ge(t,e){return ie(t.getUTCDate(),e,2)}function qe(t,e){return ie(t.getUTCHours(),e,2)}function Xe(t,e){return ie(t.getUTCHours()%12||12,e,2)}function Qe(t,e){return ie(1+Mt.count(Rt(t),t),e,3)}function Je(t,e){return ie(t.getUTCMilliseconds(),e,3)}function Ke(t,e){return Je(t,e)+"000"}function tn(t,e){return ie(t.getUTCMonth()+1,e,2)}function en(t,e){return ie(t.getUTCMinutes(),e,2)}function nn(t,e){return ie(t.getUTCSeconds(),e,2)}function rn(t){return 0===(t=t.getUTCDay())?7:t}function sn(t,e){return ie(Ot.count(Rt(t)-1,t),e,2)}function an(t){var e=t.getUTCDay();return 4<=e||0===e?Pt(t):Pt.ceil(t)}function on(t,e){return t=an(t),ie(Pt.count(Rt(t),t)+(4===Rt(t).getUTCDay()),e,2)}function cn(t){return t.getUTCDay()}function ln(t,e){return ie(It.count(Rt(t)-1,t),e,2)}function un(t,e){return ie(t.getUTCFullYear()%100,e,2)}function dn(t,e){return ie((t=an(t)).getUTCFullYear()%100,e,2)}function hn(t,e){return ie(t.getUTCFullYear()%1e4,e,4)}function fn(t,e){var n=t.getUTCDay();return ie((t=4<=n||0===n?Pt(t):Pt.ceil(t)).getUTCFullYear()%1e4,e,4)}function gn(){return"+0000"}function mn(){return"%"}function yn(t){return+t}function kn(t){return Math.floor(+t/1e3)}function pn(t){return new Date(t)}function Tn(t){return t instanceof Date?+t:+new Date(+t)}function vn(t,e,n,r,i,s,a,o,c,l){var u=S(),d=u.invert,h=u.domain,f=l(".%L"),g=l(":%S"),m=l("%I:%M"),y=l("%I %p"),k=l("%a %d"),p=l("%b %d"),T=l("%B"),v=l("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,Tn)):h().map(pn)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?x:l(e)},u.nice=function(t){var n=h();return(t=t&&"function"==typeof t.range?t:e(n[0],n[n.length-1],null==t?10:t))?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):u},u.copy=function(){return Y(u,vn(t,e,n,r,i,s,a,o,c,l))},u}function xn(){return A.apply(vn(Zt,Gt,Vt,Bt,_t,Dt,bt,vt,Tt,Kt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}!function(t){Jt=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,l=ae(i),u=oe(i),d=ae(s),h=oe(s),f=ae(a),g=oe(a),m=ae(o),y=oe(o),k=ae(c),p=oe(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:_e,e:_e,f:Le,g:je,G:Re,H:Se,I:Ye,j:Fe,L:Ae,m:Ee,M:Ue,p:function(t){return i[+(12<=t.getHours())]},q:function(t){return 1+~~(t.getMonth()/3)},Q:yn,s:kn,S:Oe,u:Ie,U:He,V:Pe,w:Ne,W:ze,x:null,X:null,y:Be,Y:Ve,Z:Ze,"%":mn},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Ge,e:Ge,f:Ke,g:dn,G:fn,H:qe,I:Xe,j:Qe,L:Je,m:tn,M:en,p:function(t){return i[+(12<=t.getUTCHours())]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:yn,s:kn,S:nn,u:rn,U:sn,V:on,w:cn,W:ln,x:null,X:null,y:un,Y:hn,Z:gn,"%":mn},x={a:function(t,e,n){return(e=f.exec(e.slice(n)))?(t.w=g.get(e[0].toLowerCase()),n+e[0].length):-1},A:function(t,e,n){return(e=d.exec(e.slice(n)))?(t.w=h.get(e[0].toLowerCase()),n+e[0].length):-1},b:function(t,e,n){return(e=k.exec(e.slice(n)))?(t.m=p.get(e[0].toLowerCase()),n+e[0].length):-1},B:function(t,e,n){return(e=m.exec(e.slice(n)))?(t.m=y.get(e[0].toLowerCase()),n+e[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:pe,e:pe,f:De,g:ge,G:fe,H:ve,I:ve,j:Te,L:we,m:ke,M:xe,p:function(t,e,n){return(e=l.exec(e.slice(n)))?(t.p=u.get(e[0].toLowerCase()),n+e[0].length):-1},q:ye,Q:Ce,s:$e,S:be,u:le,U:ue,V:de,w:ce,W:he,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:ge,Y:fe,Z:me,"%":Me};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++o<l;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=te[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=Qt(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(!e||"Z"in s||(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||53<s.V)return null;"w"in s||(s.w=1),"Z"in s?(r=4<(i=(r=Xt(Qt(s.y,0,1))).getUTCDay())||0===i?It.ceil(r):It(r),r=Mt.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(r=4<(i=(r=qt(Qt(s.y,0,1))).getDay())||0===i?St.ceil(r):St(r),r=Dt.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Xt(Qt(s.y,0,1)).getUTCDay():qt(Qt(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return("Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Xt):qt)(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(c<=r)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in te?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}(t),Kt=Jt.format}({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"]});var bn,wn,Dn={exports:{}},Mn=(Dn.exports=function(t,e,n){function r(t){return t.add(4-t.isoWeekday(),"day")}var i=((e=e.prototype).isoWeekYear=function(){return r(this).year()},e.isoWeek=function(t){var e,i,s;return this.$utils().u(t)?(i=r(this),s=this.isoWeekYear(),e=4-(s=(this.$u?n.utc:n)().year(s).startOf("year")).isoWeekday(),4<s.isoWeekday()&&(e+=7),s=s.add(e,"day"),i.diff(s,"week")+1):this.add(7*(t-this.isoWeek()),"day")},e.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)},e.startOf);e.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(t,e)}},Dn.exports),Cn=C(Mn),$n={exports:{}},_n=((()=>{var t,e,n,r,i,s,a,o,c,l,u;$n.exports=(t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i={},s=function(t){return(t=+t)+(68<t?1900:2e3)},c=function(t){return(t=i[t])&&(t.indexOf?t:t.s.concat(t.f))},l=function(t,e){var n,r=i.meridiem;if(r){for(var s=1;s<=24;s+=1)if(-1<t.indexOf(r(s,0,e))){n=12<s;break}}else n=t===(e?"pm":"PM");return n},u={A:[r=/\d*[^-_:/,()\s\d]+/,function(t){this.afternoon=l(t,!1)}],a:[r,function(t){this.afternoon=l(t,!0)}],Q:[n=/\d/,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[n=/\d\d/,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[o=/\d\d?/,(a=function(t){return function(e){this[t]=+e}})("seconds")],ss:[o,a("seconds")],m:[o,a("minutes")],mm:[o,a("minutes")],H:[o,a("hours")],h:[o,a("hours")],HH:[o,a("hours")],hh:[o,a("hours")],D:[o,a("day")],DD:[n,a("day")],Do:[r,function(t){var e=i.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[o,a("week")],ww:[n,a("week")],M:[o,a("month")],MM:[n,a("month")],MMM:[r,function(t){var e=c("months");e=(c("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],MMMM:[r,function(t){if((t=c("months").indexOf(t)+1)<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t)}],YYYY:[/\d{4}/,a("year")],Z:o=[/[+-]\d\d:?(\d\d)?|Z/,function(t){var e;(this.zone||(this.zone={})).offset=t&&"Z"!==t&&0!==(e=60*(t=t.match(/([+-]|\d\d)/g))[1]+(+t[2]||0))?"+"===t[0]?-e:e:0}],ZZ:o},function(n,r,a){a.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(s=n.parseTwoDigitYear);var o=(n=r.prototype).parse;n.parse=function(n){var r=n.date,s=n.utc,c=n.args,l=(this.$u=s,c[1]);if("string"==typeof l){var d=!0===c[2],h=!0===c[3],f=d||h,g=c[2];h&&(g=c[2]),i=this.$locale(),!d&&g&&(i=a.Ls[g]),this.$d=((n,r,s,a)=>{try{if(-1<["x","X"].indexOf(r))return new Date(("X"===r?1e3:1)*n);var o=(n=>{var r,s;r=n,s=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var i=r&&r.toUpperCase();return n||s[r]||t[r]||s[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=a.length,c=0;c<o;c+=1){var l=a[c],d=(h=u[l])&&h[0],h=h&&h[1];a[c]=h?{regex:d,parser:h}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e,n,r,i={},s=0,c=0;s<o;s+=1){var l,u,d=a[s];"string"==typeof d?c+=d.length:(u=d.regex,d=d.parser,l=t.slice(c),u=u.exec(l)[0],d.call(i,u),t=t.replace(u,""))}return void 0!==(r=(e=i).afternoon)&&(n=e.hours,r?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon),i}})(r)(n),c=o.year,l=o.month,d=o.day,h=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=d||(c||l?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!l||(x=0<l?l-1:p.getMonth());var b,w=h||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):s?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),b=k?a(b).week(k).toDate():b)}catch(n){return new Date("")}})(r,l,s,a),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var m=l.length,y=1;y<=m;y+=1){c[1]=l[y-1];var k=a.apply(this,c);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else o.call(this,n)}})})(),$n.exports),Sn=C(_n),Yn={exports:{}},Fn=(Yn.exports=function(t,e){var n=(e=e.prototype).format;e.format=function(t){var e,r,i=this,s=this.$locale();return this.isValid()?(e=this.$utils(),r=(t||"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(t){switch(t){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return s.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return s.ordinal(i.week(),"W");case"w":case"ww":return e.s(i.week(),"w"===t?1:2,"0");case"W":case"WW":return e.s(i.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return e.s(String(0===i.$H?24:i.$H),"k"===t?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return t}}),n.bind(this)(r)):n.bind(this)(t)}},Yn.exports),An=C(Fn),Ln={exports:{}},En=((()=>{var t,e,n,r,i,s,a,o,c,l,u,d,h,f;Ln.exports=(i=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,s=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,a={years:n=31536e6,months:r=2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(t){return t instanceof h},c=function(t,e,n){return new h(t,n,e.$l)},l=function(t){return e.p(t)+"s"},u=function(t){return t<0?Math.ceil(t):Math.floor(t)},d=function(t,e){return t?t<0?{negative:!0,format:""+Math.abs(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},h=(()=>{function h(t,e,n){var r=this;return this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e?c(t*a[l(e)],this):("number"==typeof t?(this.$ms=t,this.parseFromMilliseconds()):"object"==typeof t?(Object.keys(t).forEach(function(e){r.$d[l(e)]=t[e]}),this.calMilliseconds()):"string"==typeof t&&(n=t.match(i))&&(e=n.slice(2).map(function(t){return null!=t?Number(t):0}),this.$d.years=e[0],this.$d.months=e[1],this.$d.weeks=e[2],this.$d.days=e[3],this.$d.hours=e[4],this.$d.minutes=e[5],this.$d.seconds=e[6],this.calMilliseconds()),this)}var f=h.prototype;return f.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*a[n]},0)},f.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=u(t/n),this.$d.months=u((t%=n)/r),this.$d.days=u((t%=r)/864e5),this.$d.hours=u((t%=864e5)/36e5),this.$d.minutes=u((t%=36e5)/6e4),this.$d.seconds=u((t%=6e4)/1e3),this.$d.milliseconds=t%=1e3},f.toISOString=function(){var t=d(this.$d.years,"Y"),e=d(this.$d.months,"M"),n=+this.$d.days||0,r=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),d(n,"D")),d(this.$d.hours,"H")),i=d(this.$d.minutes,"M"),s=this.$d.seconds||0,a=(s=(this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3),d(s,"S")),t.negative||e.negative||n.negative||r.negative||i.negative||s.negative),o=r.format||i.format||s.format?"T":"";return"P"==(a=(a?"-":"")+"P"+t.format+e.format+n.format+o+r.format+i.format+s.format)||"-P"==a?"P0D":a},f.toJSON=function(){return this.toISOString()},f.format=function(t){t=t||"YYYY-MM-DDTHH:mm:ss";var n={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return t.replace(s,function(t,e){return e||String(n[t])})},f.as=function(t){return this.$ms/a[l(t)]},f.get=function(t){var e=this.$ms;return"milliseconds"===(t=l(t))?e%=1e3:e="weeks"===t?u(e/a[t]):this.$d[t],e||0},f.add=function(t,e,n){return e=e?t*a[l(e)]:(o(t)?t:c(t,this)).$ms,c(this.$ms+e*(n?-1:1),this)},f.subtract=function(t,e){return this.add(t,e,!0)},f.locale=function(t){var e=this.clone();return e.$l=t,e},f.clone=function(){return c(this.$ms,this)},f.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},f.valueOf=function(){return this.asMilliseconds()},f.milliseconds=function(){return this.get("milliseconds")},f.asMilliseconds=function(){return this.as("milliseconds")},f.seconds=function(){return this.get("seconds")},f.asSeconds=function(){return this.as("seconds")},f.minutes=function(){return this.get("minutes")},f.asMinutes=function(){return this.as("minutes")},f.hours=function(){return this.get("hours")},f.asHours=function(){return this.as("hours")},f.days=function(){return this.get("days")},f.asDays=function(){return this.as("days")},f.weeks=function(){return this.get("weeks")},f.asWeeks=function(){return this.as("weeks")},f.months=function(){return this.get("months")},f.asMonths=function(){return this.as("months")},f.years=function(){return this.get("years")},f.asYears=function(){return this.as("years")},h})(),f=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")},function(n,r,i){e=(t=i)().$utils(),i.duration=function(t,e){var n=i.locale();return c(t,{$l:n},e)},i.isDuration=o;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return o(t)?f(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return o(t)?f(this,t,-1):a.bind(this)(t,e)}})})(),Ln.exports),Un=C(En),On=(()=>{var t=l(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],o=[1,31],c=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35];n={trace:l(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:l(function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"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:a,17:o,18:c,19:18,20:u,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:o,18:c,19:18,20:u,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},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:l(function(t,e){var n;if(!e.recoverable)throw(n=new Error(t)).hash=e,n;this.trace(t)},"parseError"),parse:l(function(t){var e,n=this,r=[0],i=[],s=[null],a=[],o=this.table,c="",u=0,d=0,h=a.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc,y=(a.push(m),f.options&&f.options.ranges);function k(){var t=i.pop()||f.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(i=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,l(function(t){r.length=r.length-2*t,s.length=s.length-t,a.length=a.length-t},"popStack"),l(k,"lex");for(var p,T,v,x,b,w,D={};;){if(T=r[r.length-1],void 0===(v=this.defaultActions[T]||(null==p&&(p=k()),o[T]&&o[T][p]))||!v.length||!v[0]){var M,C=[];for(x in o[T])this.terminals_[x]&&2<x&&C.push("'"+this.terminals_[x]+"'");M=f.showPosition?"Parse error on line "+(u+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(M,{text:f.match,token:this.terminals_[p]||p,line:f.yylineno,loc:m,expected:C})}if(v[0]instanceof Array&&1<v.length)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:r.push(p),s.push(f.yytext),a.push(f.yylloc),r.push(v[1]),p=null,d=f.yyleng,c=f.yytext,u=f.yylineno,m=f.yylloc;break;case 2:if(b=this.productions_[v[1]][1],D.$=s[s.length-b],D._$={first_line:a[a.length-(b||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(b||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(b||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[c,d,u,g.yy,v[1],s,a].concat(h))))return w;b&&(r=r.slice(0,-1*b*2),s=s.slice(0,-1*b),a=a.slice(0,-1*b)),r.push(this.productions_[v[1]][0]),s.push(D.$),a.push(D._$),w=o[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:l(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:l(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:l(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:l(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g),r=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=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),n.length-1&&(this.yylineno-=n.length-1),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:n?(n.length===t.length?this.yylloc.first_column:0)+t[t.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:l(function(t){this.unput(this.match.slice(t))},"less"),pastInput:l(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:l(function(t,e){var n,r;if(this.options.backtrack_lexer&&(r={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)&&(r.yylloc.range=this.yylloc.range.slice(0)),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var i in r)this[i]=r[i];return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,r,i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length))if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){return this.next()||this.lex()},"lex"),begin:l(function(t){this.conditionStack.push(t)},"begin"),popState:l(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:l(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:l(function(t){this.begin(t)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(t,e,n,r){switch(n){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:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}};function $(){this.yy={}}return n.lexer=r,l($,"Parser"),new(($.prototype=n).Parser=$)})(),In=On.parser=On,Hn=(u.extend(Cn),u.extend(Sn),u.extend(An),{friday:5,saturday:6}),Wn="",Pn="",Nn=void 0,zn="",Bn=[],jn=[],Vn=new Map,Rn=[],Zn=[],Gn="",qn="",Xn=["active","done","crit","milestone","vert"],Qn=[],Jn="",Kn=!1,tr=!1,er="sunday",nr="saturday",rr=0,ir=l(function(){Rn=[],Zn=[],Qn=[],zr=[],Nn=wn=bn=void(Hr=0),zn=qn=Pn=Wn=Gn="",Bn=[],tr=Kn=!(jn=[]),rr=0,Vn=new Map,Jn="",p(),er="sunday",nr="saturday"},"clear"),sr=l(function(t){Jn=t},"setDiagramId"),ar=l(function(t){Pn=t},"setAxisFormat"),or=l(function(){return Pn},"getAxisFormat"),cr=l(function(t){Nn=t},"setTickInterval"),lr=l(function(){return Nn},"getTickInterval"),ur=l(function(t){zn=t},"setTodayMarker"),dr=l(function(){return zn},"getTodayMarker"),hr=l(function(t){Wn=t},"setDateFormat"),fr=l(function(){Kn=!0},"enableInclusiveEndDates"),gr=l(function(){return Kn},"endDatesAreInclusive"),mr=l(function(){tr=!0},"enableTopAxis"),yr=l(function(){return tr},"topAxisEnabled"),kr=l(function(t){qn=t},"setDisplayMode"),pr=l(function(){return qn},"getDisplayMode"),Tr=l(function(){return Wn},"getDateFormat"),vr=l((t,e)=>(e=e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t),[...new Set([...t,...e])]),"mergeTokens"),xr=l(function(t){Bn=vr(Bn,t)},"setIncludes"),br=l(function(){return Bn},"getIncludes"),wr=l(function(t){jn=vr(jn,t)},"setExcludes"),Dr=l(function(){return jn},"getExcludes"),Mr=l(function(){return Vn},"getLinks"),Cr=l(function(t){Gn=t,Rn.push(t)},"addSection"),$r=l(function(){return Rn},"getSections"),_r=l(function(){let t=Zr(),e=0;for(;!t&&e<10;)t=Zr(),e++;return Zn=zr},"getTasks"),Sr=l(function(t,e,n,r){e=t.format(e.trim());var i=t.format("YYYY-MM-DD");return!r.includes(e)&&!r.includes(i)&&(!(!n.includes("weekends")||t.isoWeekday()!==Hn[nr]&&t.isoWeekday()!==Hn[nr]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(e)||n.includes(i))},"isInvalidDate"),Yr=l(function(t){er=t},"setWeekday"),Fr=l(function(){return er},"getWeekday"),Ar=l(function(t){nr=t},"setWeekend"),Lr=l(function(t,e,n,r){if(n.length&&!t.manualEndTime){let i,s;i=(i=t.startTime instanceof Date?u(t.startTime):u(t.startTime,e,!0)).add(1,"d"),s=t.endTime instanceof Date?u(t.endTime):u(t.endTime,e,!0);var[e,n]=Er(i,s,e,n,r);t.endTime=e.toDate(),t.renderEndTime=n}},"checkTaskDates"),Er=l(function(t,e,n,r,i){let s=!1,a=null;for(var o=e.add(1e4,"d");t<=e;){if(s||(a=e.toDate()),(s=Sr(t,n,r,i))&&o<(e=e.add(1,"d")))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,a]},"fixTaskDates"),Ur=l(function(t,e,n){if(n=n.trim(),l(t=>"x"===(t=t.trim())||"X"===t,"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));var r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(var i of r.groups.ids.split(" "))void 0!==(i=Vr(i))&&(!t||i.endTime>t.endTime)&&(t=i);return t?t.endTime:((r=new Date).setHours(0,0,0,0),r)}if((r=u(n,e.trim(),!0)).isValid())return r.toDate();if(v.debug("Invalid date:"+n),v.debug("With date format:"+e.trim()),void 0===(r=new Date(n))||isNaN(r.getTime())||r.getFullYear()<-1e4||1e4<r.getFullYear())throw new Error("Invalid date:"+n);return r},"getStartDate"),Or=l(function(t){return null!==(t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()))?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),Ir=l(function(t,e,n,r=!1){var i;if(n=n.trim(),null!==(i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n))){let t=null;for(var s of i.groups.ids.split(" "))void 0!==(s=Vr(s))&&(!t||s.startTime<t.startTime)&&(t=s);return t?t.startTime:((i=new Date).setHours(0,0,0,0),i)}let a=u(n,e.trim(),!0);if(a.isValid())return(a=r?a.add(1,"d"):a).toDate();let o=u(t);var[i,e]=Or(n);return Number.isNaN(i)||(r=o.add(i,e)).isValid()&&(o=r),o.toDate()},"getEndDate"),Hr=0,Wr=l(function(t){return void 0===t?"task"+(Hr+=1):t},"parseId"),Pr=l(function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};ei(r,i,Xn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();let s="";switch(r.length){case 1:i.id=Wr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Wr(),i.startTime=Ur(void 0,Wn,r[0]),s=r[1];break;case 3:i.id=Wr(r[0]),i.startTime=Ur(void 0,Wn,r[1]),s=r[2]}return s&&(i.endTime=Ir(i.startTime,Wn,s,Kn),i.manualEndTime=u(s,"YYYY-MM-DD",!0).isValid(),Lr(i,Wn,jn,Bn)),i},"compileData"),Nr=l(function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};ei(r,i,Xn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();switch(r.length){case 1:i.id=Wr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Wr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Wr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),zr=[],Br={},jr=l(function(t,e){t={section:Gn,type:Gn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},e=Nr(wn,e),t.raw.startTime=e.startTime,t.raw.endTime=e.endTime,t.id=e.id,t.prevTaskId=wn,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,t.vert?t.order=-1:(t.order=rr,rr++),e=zr.push(t),Br[wn=t.id]=e-1},"addTask"),Vr=l(function(t){return t=Br[t],zr[t]},"findTaskById"),Rr=l(function(t,e){t={section:Gn,type:Gn,description:t,task:t,classes:[]},e=Pr(bn,e),t.startTime=e.startTime,t.endTime=e.endTime,t.id=e.id,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,bn=t,Zn.push(t)},"addTaskOrg"),Zr=l(function(){var t,e,n=l(function(t){var e=zr[t];switch(zr[t].raw.startTime.type){case"prevTaskEnd":var n=Vr(e.prevTaskId);e.startTime=n.endTime;break;case"getStartDate":(n=Ur(void 0,Wn,zr[t].raw.startTime.startData))&&(zr[t].startTime=n)}return zr[t].startTime&&(zr[t].endTime=Ir(zr[t].startTime,Wn,zr[t].raw.endTime.data,Kn),zr[t].endTime)&&(zr[t].processed=!0,zr[t].manualEndTime=u(zr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Lr(zr[t],Wn,jn,Bn)),zr[t].processed},"compileTask");let r=!0;for([t,e]of zr.entries())n(t),r=r&&e.processed;return r},"compileTasks"),Gr=l(function(t,e){let n=e;"loose"!==d().securityLevel&&(n=T(e)),t.split(",").forEach(function(t){void 0!==Vr(t)&&(Qr(t,()=>{window.open(n,"_self")}),Vn.set(t,n))}),qr(t,"clickable")},"setLink"),qr=l(function(t,e){t.split(",").forEach(function(t){void 0!==(t=Vr(t))&&t.classes.push(e)})},"setClass"),Xr=l(function(t,e,n){if("loose"===d().securityLevel&&void 0!==e){let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Vr(t)&&Qr(t,()=>{D.runFunc(e,...r)})}},"setClickFun"),Qr=l(function(t,e){Qn.push(function(){var n=Jn?Jn+"-"+t:t;null!==(n=document.querySelector(`[id="${n}"]`))&&n.addEventListener("click",function(){e()})},function(){var n=Jn?Jn+"-"+t:t;null!==(n=document.querySelector(`[id="${n}-text"]`))&&n.addEventListener("click",function(){e()})})},"pushFun"),Jr=l(function(t,e,n){t.split(",").forEach(function(t){Xr(t,e,n)}),qr(t,"clickable")},"setClickEvent"),Kr=l(function(t){Qn.forEach(function(e){e(t)})},"bindFunctions"),ti={getConfig:l(()=>d().gantt,"getConfig"),clear:ir,setDateFormat:hr,getDateFormat:Tr,enableInclusiveEndDates:fr,endDatesAreInclusive:gr,enableTopAxis:mr,topAxisEnabled:yr,setAxisFormat:ar,getAxisFormat:or,setTickInterval:cr,getTickInterval:lr,setTodayMarker:ur,getTodayMarker:dr,setAccTitle:h,getAccTitle:f,setDiagramTitle:g,getDiagramTitle:m,setDiagramId:sr,setDisplayMode:kr,getDisplayMode:pr,setAccDescription:y,getAccDescription:k,addSection:Cr,getSections:$r,getTasks:_r,addTask:jr,findTaskById:Vr,addTaskOrg:Rr,setIncludes:xr,getIncludes:br,setExcludes:wr,getExcludes:Dr,setClickEvent:Jr,setLink:Gr,getLinks:Mr,bindFunctions:Kr,parseDuration:Or,isInvalidDate:Sr,setWeekday:Yr,getWeekday:Fr,setWeekend:Ar};function ei(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)})}l(ei,"getTaskTags"),u.extend(Un);var ni,ri=l(function(){v.debug("Something is calling, setConf, remove the call")},"setConf"),ii={monday:St,tuesday:Yt,wednesday:Ft,thursday:At,friday:Lt,saturday:Et,sunday:_t},si=l((t,e)=>{var n,r=[...t].map(()=>-1/0);let i=0;for(n of[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order))for(let t=0;t<r.length;t++)if(n.startTime>=r[t]){r[t]=n.endTime,n.order=t+e,t>i&&(i=t);break}return i},"getMaxIntersections"),ai=1e4,oi=l(function(t,e,n,r){let i=d().gantt;let s;r.db.setDiagramId(e),"sandbox"===(h=d().securityLevel)&&(s=x("#i"+e));var a=x("sandbox"===h?s.nodes()[0].contentDocument.body:"body");let o="sandbox"===h?s.nodes()[0].contentDocument:document;var c,h=o.getElementById(e),f=(void 0===(ni=h.parentElement.offsetWidth)&&(ni=1200),void 0!==i.useWidth&&(ni=i.useWidth),r.db.getTasks()),g=f.filter(t=>!t.vert);let m=[];for(c of g)m.push(c.type);m=W(m);let y={},k=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){var p,T,D={};for(p of g)void 0===D[p.section]?D[p.section]=[p]:D[p.section].push(p);let t=0;for(T of Object.keys(D)){var M=si(D[T],t)+1;t+=M,k+=M*(i.barHeight+i.barGap),y[T]=M}}else{k+=g.length*(i.barHeight+i.barGap);for(let t of m)y[t]=g.filter(e=>e.type===t).length}h.setAttribute("viewBox","0 0 "+ni+" "+k);let C=a.select(`[id="${e}"]`),$=xn().domain([E(f,function(t){return t.startTime}),L(f,function(t){return t.endTime})]).rangeRound([0,ni-i.leftPadding-i.rightPadding]);function _(t,e){t=t.startTime;let n=0;return(e=e.startTime)<t?n=1:t<e&&(n=-1),n}function S(t,e,n){var s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;F().domain([0,m.length]).range(["#00B9FA","#F95002"]).interpolate(ot);A(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),O(c,o,0,n),Y(t,a,o,c,s,0,e),I(a,o),H(c,0,0,n)}function Y(t,n,s,a,o,c,l){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);let u=t.filter(t=>!t.vert);var h=[...new Set(u.map(t=>t.order))].map(t=>u.find(e=>e.order===t));C.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+s-2}).attr("width",function(){return l-i.rightPadding/2}).attr("height",n).attr("class",function(t){for(var[e,n]of m.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}).enter(),h=C.append("g").selectAll("rect").data(t).enter();let f=r.db.getLinks();if(h.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?$(t.startTime)+a+.5*($(t.endTime)-$(t.startTime))-.5*o:$(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s}).attr("width",function(t){return t.milestone?o:t.vert?.08*o:$(t.renderEndTime||t.endTime)-$(t.startTime)}).attr("height",function(t){return t.vert?u.length*(i.barHeight+i.barGap)+2*i.barHeight:o}).attr("transform-origin",function(t,e){return e=t.order,($(t.startTime)+a+.5*($(t.endTime)-$(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"}).attr("class",function(t){var e,n;let r="",s=(0<t.classes.length&&(r=t.classes.join(" ")),0);for([e,n]of m.entries())t.type===n&&(s=e%i.numberSectionStyles);let a="";return t.active?t.crit?a+=" activeCrit":a=" active":t.done?a=t.crit?" doneCrit":" done":t.crit&&(a+=" crit"),0===a.length&&(a=" task"),t.milestone&&(a=" milestone "+a),t.vert&&(a=" vert "+a),"task"+(a+=s)+" "+r}),h.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",i.fontSize).attr("x",function(t){let e=$(t.startTime),n=$(t.renderEndTime||t.endTime);return t.milestone&&(e+=.5*($(t.endTime)-$(t.startTime))-.5*o,n=e+o),t.vert?$(t.startTime)+a:(t=this.getBBox().width)>n-e?n+t+1.5*i.leftPadding>l?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?i.gridLineStartPadding+u.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s}).attr("text-height",o).attr("class",function(t){var e=$(t.startTime);let n=$(t.endTime);t.milestone&&(n=e+o);var r,s,a=this.getBBox().width;let c="",u=(0<t.classes.length&&(c=t.classes.join(" ")),0);for([r,s]of m.entries())t.type===s&&(u=r%i.numberSectionStyles);let d="";return t.active&&(d=t.crit?"activeCritText"+u:"activeText"+u),t.done?d=t.crit?d+" doneCritText"+u:d+" doneText"+u:t.crit&&(d=d+" critText"+u),t.milestone&&(d+=" milestoneText"),t.vert&&(d+=" vertText"),a>n-e?n+a+1.5*i.leftPadding>l?c+" taskTextOutsideLeft taskTextOutside"+u+" "+d:c+" taskTextOutsideRight taskTextOutside"+u+" "+d+" width-"+a:c+" taskText taskText"+u+" "+d+" width-"+a}),"sandbox"===d().securityLevel){let t=x("#i"+e).nodes()[0].contentDocument;h.filter(function(t){return f.has(t.id)}).each(function(n){var r=t.querySelector("#"+CSS.escape(e+"-"+n.id)),i=t.querySelector("#"+CSS.escape(e+"-"+n.id+"-text")),s=r.parentNode,a=t.createElement("a");a.setAttribute("xlink:href",f.get(n.id)),a.setAttribute("target","_top"),s.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function A(t,n,s,a,o,c,l,d){if(0!==l.length||0!==d.length){let a,y;for(var{startTime:h,endTime:f}of c)(void 0===a||h<a)&&(a=h),(void 0===y||f>y)&&(y=f);if(a&&y)if(5<u(y).diff(u(a),"year"))v.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");else{var g=r.db.getDateFormat(),m=[];let c=null,h=u(a);for(;h.valueOf()<=y;)r.db.isInvalidDate(h,g,l,d)?c?c.end=h:c={start:h,end:h}:c&&(m.push(c),c=null),h=h.add(1,"d");C.append("g").selectAll("rect").data(m).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>$(t.start.startOf("day"))+s).attr("y",i.gridLineStartPadding).attr("width",t=>$(t.end.endOf("day"))-$(t.start.startOf("day"))).attr("height",o-n-i.gridLineStartPadding).attr("transform-origin",function(e,n){return($(e.start)+s+.5*($(e.end)-$(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"}).attr("class","exclude-range")}}}function U(t,e,n,r){return n<=0||e<t||(e-=t,(t=u.duration({[r??"day"]:n}).asMilliseconds())<=0)?1/0:Math.ceil(e/t)}function O(t,e,n,s){var a=r.db.getDateFormat();let o;o=(c=r.db.getAxisFormat())||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");var c,l=function(t){return z(3,t)}($).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Kt(o));if(null!==(c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval))){var u=parseInt(c[1],10);if(isNaN(u)||u<=0)v.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{a=c[2];var d=r.db.getWeekday()||i.weekday,h=U((h=$.domain())[0],h[1],u,a);if(ai<h)v.warn(`The tick interval "${u}${a}" would generate ${h} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(a){case"millisecond":l.ticks(dt.every(u));break;case"second":l.ticks(Tt.every(u));break;case"minute":l.ticks(vt.every(u));break;case"hour":l.ticks(bt.every(u));break;case"day":l.ticks(Dt.every(u));break;case"week":l.ticks(ii[d].every(u));break;case"month":l.ticks(Bt.every(u))}}}if(C.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){var f=function(t){return z(1,t)}($).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Kt(o));if(null!==c){var g=parseInt(c[1],10);if(isNaN(g)||g<=0)v.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{h=c[2];var m=r.db.getWeekday()||i.weekday;if(U((a=$.domain())[0],a[1],g,h)<=ai)switch(h){case"millisecond":f.ticks(dt.every(g));break;case"second":f.ticks(Tt.every(g));break;case"minute":f.ticks(vt.every(g));break;case"hour":f.ticks(bt.every(g));break;case"day":f.ticks(Dt.every(g));break;case"week":f.ticks(ii[m].every(g));break;case"month":f.ticks(Bt.every(g))}}}C.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function I(t,e){let n=0,r=Object.keys(y).map(t=>[t,y[t]]);C.append("g").selectAll("text").data(r).enter().append(function(t){var e,n,r=-((t=t[0].split(w.lineBreakRegex)).length-1)/2,i=o.createElementNS("http://www.w3.org/2000/svg","text");for([e,n]of(i.setAttribute("dy",r+"em"),t.entries())){var s=o.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),0<e&&s.setAttribute("dy","1em"),s.textContent=n,i.appendChild(s)}return i}).attr("x",10).attr("y",function(i,s){if(!(0<s))return i[1]*t/2+e;if(0<s)return n+=r[s-1][1],i[1]*t/2+n*t+e}).attr("font-size",i.sectionFontSize).attr("class",function(t){for(var[e,n]of m.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"})}function H(t,e,n,s){var a,o,c=r.db.getTodayMarker();"off"!==c&&(o=C.append("g").attr("class","today"),a=new Date,(o=o.append("line")).attr("x1",$(a)+t).attr("x2",$(a)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==c)&&o.attr("style",c.replace(/,/g,";"))}function W(t){var e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}l(_,"taskCompare"),f.sort(_),S(f,ni,k),b(C,k,ni,i.useMaxWidth),C.append("text").text(r.db.getDiagramTitle()).attr("x",ni/2).attr("y",i.titleTopMargin).attr("class","titleText"),l(S,"makeGantt"),l(Y,"drawRects"),l(A,"drawExcludeDays"),l(U,"getEstimatedTickCount"),l(O,"makeGrid"),l(I,"vertLabels"),l(H,"drawToday"),l(W,"checkUnique")},"draw"),ci={setConf:ri,draw:oi},li=l(t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`,"getStyles"),ui={parser:In,db:ti,renderer:ci,styles:li};export{ui as diagram};
@@ -0,0 +1 @@
1
+ var e,r;(e=self.document)&&!e.getElementById("livereloadscript")&&((r=e.createElement("script")).async=1,r.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",r.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(r));export{G as GitGraphModule,g as createGitGraphServices}from"./mermaid-parser.core-6df0beec.js";
@@ -0,0 +1 @@
1
+ export{G as GitGraphModule,g as createGitGraphServices}from"./mermaid-parser.core-d8d1c2b9.js";
@@ -0,0 +1 @@
1
+ import{I as r}from"./chunk-2Q5K7J3B-2892df89.js";import{p as t}from"./chunk-JWPE2WC7-e2521b1e.js";import{E as e,_ as a,F as o,G as n,H as i,l as s,s as c,g as d,b as h,c as m,n as l,o as $,e as g,v as p,j as y,d as x,u as f,I as u}from"./mermaid.core-8797d6a9.js";import{v as b}from"./mermaid-parser.core-d8d1c2b9.js";import"./web-c3ed22c4.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=e.gitGraph,B=a((()=>o({...k,...n().gitGraph})),"getConfig"),v=new r((()=>{var r=(t=B()).mainBranchName,t=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}}));function E(){return i({length:7})}function C(r,t){const e=Object.create(null);return r.reduce(((r,a)=>{var o=t(a);return e[o]||(e[o]=!0,r.push(a)),r}),[])}a(E,"getID"),a(C,"uniqBy");var L=a((function(r){v.records.direction=r}),"setDirection"),T=a((function(r){s.debug("options str",r),r=(r=r?.trim())||"{}";try{v.records.options=JSON.parse(r)}catch(r){s.error("error while parsing gitGraph options",r.message)}}),"setOptions"),M=a((function(){return v.records.options}),"getOptions"),I=a((function(r){var t=r.msg,e=r.id,a=r.type;let o=r.tags;s.info("commit",t,e,a,o),s.debug("Entering commit:",t,e,a,o);const n=B();e=g.sanitizeText(e,n),t=g.sanitizeText(t,n),o=o?.map((r=>g.sanitizeText(r,n))),r={id:e||v.records.seq+"-"+E(),message:t,seq:v.records.seq++,type:a??w.NORMAL,tags:o??[],parents:null==v.records.head?[]:[v.records.head.id],branch:v.records.currBranch},v.records.head=r,s.info("main branch",n.mainBranchName),v.records.commits.has(r.id)&&s.warn(`Commit ID ${r.id} already exists`),v.records.commits.set(r.id,r),v.records.branches.set(v.records.currBranch,r.id),s.debug("in pushCommit "+r.id)}),"commit"),R=a((function(r){var t=r.name;r=r.order,t=g.sanitizeText(t,B());if(v.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);v.records.branches.set(t,null!=v.records.head?v.records.head.id:null),v.records.branchConfig.set(t,{name:t,order:r}),A(t),s.debug("in createBranch")}),"branch"),P=a((r=>{var t=r.branch;let e=r.id;var a=r.type,o=(r=r.tags,B()),n=(t=g.sanitizeText(t,o),o=(e=e&&g.sanitizeText(e,o),v.records.branches.get(v.records.currBranch)),v.records.branches.get(t)),i=(o=o?v.records.commits.get(o):void 0,n?v.records.commits.get(n):void 0);if(o&&i&&o.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(v.records.currBranch===t)throw(c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},c;if(void 0===o||!o)throw(c=new Error(`Incorrect usage of "merge". Current branch (${v.records.currBranch})has no commits`)).hash={text:"merge "+t,token:"merge "+t,expected:["commit"]},c;if(!v.records.branches.has(t))throw(c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist")).hash={text:"merge "+t,token:"merge "+t,expected:["branch "+t]},c;if(void 0===i||!i)throw(c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits")).hash={text:"merge "+t,token:"merge "+t,expected:['"commit"']},c;if(o===i)throw(c=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},c;if(e&&v.records.commits.has(e))throw(o=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id")).hash={text:`merge ${t} ${e} ${a} `+r?.join(" "),token:`merge ${t} ${e} ${a} `+r?.join(" "),expected:[`merge ${t} ${e}_UNIQUE ${a} `+r?.join(" ")]},o;i=n||"";var c={id:e||v.records.seq+"-"+E(),message:`merged branch ${t} into `+v.records.currBranch,seq:v.records.seq++,parents:null==v.records.head?[]:[v.records.head.id,i],branch:v.records.currBranch,type:w.MERGE,customType:a,customId:!!e,tags:r??[]};v.records.head=c,v.records.commits.set(c.id,c),v.records.branches.set(v.records.currBranch,c.id),s.debug(v.records.branches),s.debug("in mergeBranch")}),"merge"),O=a((function(r){var t=r.id,e=r.targetId;let a=r.tags;r=r.parent,s.debug("Entering cherryPick:",t,e,a);const o=B();if(t=g.sanitizeText(t,o),e=g.sanitizeText(e,o),a=a?.map((r=>g.sanitizeText(r,o))),r=g.sanitizeText(r,o),!t||!v.records.commits.has(t))throw(n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided')).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},n;var n=v.records.commits.get(t);if(void 0===n||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&(!Array.isArray(n.parents)||!n.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");var i=n.branch;if(n.type===w.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!v.records.commits.has(e)){if(i===v.records.currBranch)throw(i=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch')).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},i;if(void 0===(i=v.records.branches.get(v.records.currBranch))||!i)throw(c=new Error(`Incorrect usage of "cherry-pick". Current branch (${v.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},c;var c=v.records.commits.get(i);if(void 0===c||!c)throw(i=new Error(`Incorrect usage of "cherry-pick". Current branch (${v.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},i;c={id:v.records.seq+"-"+E(),message:`cherry-picked ${n?.message} into `+v.records.currBranch,seq:v.records.seq++,parents:null==v.records.head?[]:[v.records.head.id,n.id],branch:v.records.currBranch,type:w.CHERRY_PICK,tags:a?a.filter(Boolean):["cherry-pick:"+n.id+(n.type===w.MERGE?"|parent:"+r:"")]},v.records.head=c,v.records.commits.set(c.id,c),v.records.branches.set(v.records.currBranch,c.id),s.debug(v.records.branches),s.debug("in cherryPick")}}),"cherryPick"),A=a((function(r){var t;if(r=g.sanitizeText(r,B()),!v.records.branches.has(r))throw(t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`)).hash={text:"checkout "+r,token:"checkout "+r,expected:["branch "+r]},t;v.records.currBranch=r,t=v.records.branches.get(v.records.currBranch),v.records.head=void 0!==t&&t?v.records.commits.get(t)??null:null}),"checkout");function G(r,t,e){-1===(t=r.indexOf(t))?r.push(e):r.splice(t,1,e)}function S(r){const t=r.reduce(((r,t)=>r.seq>t.seq?r:t),r[0]);let e="";r.forEach((function(r){e+=r===t?"\t*":"\t|"}));var a=[e,t.id,t.seq];for(const r in v.records.branches)v.records.branches.get(r)===t.id&&a.push(r);if(s.debug(a.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){var o=v.records.commits.get(t.parents[0]);G(r,t,o),t.parents[1]&&r.push(v.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;t.parents[0]&&(o=v.records.commits.get(t.parents[0]),G(r,t,o))}S(r=C(r,(r=>r.id)))}a(G,"upsert"),a(S,"prettyPrintCommitHistory");var W=a((function(){s.debug(v.records.commits),S([j()[0]])}),"prettyPrint"),H=a((function(){v.reset(),p()}),"clear"),q=a((function(){return[...v.records.branchConfig.values()].map(((r,t)=>null!==r.order&&void 0!==r.order?r:{...r,order:parseFloat("0."+t)})).sort(((r,t)=>(r.order??0)-(t.order??0))).map((({name:r})=>({name:r})))}),"getBranchesAsObjArray"),_=a((function(){return v.records.branches}),"getBranches"),z=a((function(){return v.records.commits}),"getCommits"),j=a((function(){var r=[...v.records.commits.values()];return r.forEach((function(r){s.debug(r.id)})),r.sort(((r,t)=>r.seq-t.seq)),r}),"getCommitsArray"),D=a((function(){return v.records.currBranch}),"getCurrentBranch"),F=a((function(){return v.records.direction}),"getDirection"),N=a((function(){return v.records.head}),"getHead"),K={commitType:w,getConfig:B,setDirection:L,setOptions:T,getOptions:M,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:H,getBranchesAsObjArray:q,getBranches:_,getCommits:z,getCommitsArray:j,getCurrentBranch:D,getDirection:F,getHead:N,setAccTitle:c,getAccTitle:d,getAccDescription:h,setAccDescription:m,setDiagramTitle:l,getDiagramTitle:$},V=a(((r,e)=>{t(r,e),r.dir&&e.setDirection(r.dir);for(const t of r.statements)Y(t,e)}),"populate"),Y=a(((r,t)=>{var e={Commit:a((r=>t.commit(U(r))),"Commit"),Branch:a((r=>t.branch(J(r))),"Branch"),Merge:a((r=>t.merge(Q(r))),"Merge"),Checkout:a((r=>t.checkout(X(r))),"Checkout"),CherryPicking:a((r=>t.cherryPick(Z(r))),"CherryPicking")}[r.$type];e?e(r):s.error("Unknown statement type: "+r.$type)}),"parseStatement"),U=a((r=>({id:r.id,msg:r.message??"",type:void 0!==r.type?w[r.type]:w.NORMAL,tags:r.tags??void 0})),"parseCommit"),J=a((r=>({name:r.name,order:r.order??0})),"parseBranch"),Q=a((r=>({branch:r.branch,id:r.id??"",type:void 0!==r.type?w[r.type]:void 0,tags:r.tags??void 0})),"parseMerge"),X=a((r=>r.branch),"parseCheckout"),Z=a((r=>({id:r.id,targetId:"",tags:0===r.tags?.length?void 0:r.tags,parent:r.parent})),"parseCherryPicking"),rr={parse:a((async r=>{r=await b("gitGraph",r),s.debug(r),V(r,K)}),"parse")},tr=10,er=40,ar=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),or=new Set(["redux-color","redux-dark-color"]),nr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ir=a(((r,t,e=!1)=>e&&0<r?(r-1)%(t-1)+1:r%t),"calcColorIndex"),sr=new Map,cr=new Map,dr=new Map,hr=[],mr=0,lr="LR",$r=a((()=>{sr.clear(),cr.clear(),dr.clear(),mr=0,hr=[],lr="LR"}),"clear"),gr=a((r=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach((r=>{var e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=r.trim(),t.appendChild(e)})),t}),"drawText"),pr=a((r=>{let t,e,o;return o="BT"===lr?(e=a(((r,t)=>r<=t),"comparisonFunc"),1/0):(e=a(((r,t)=>t<=r),"comparisonFunc"),0),r.forEach((r=>{var a="TB"===lr||"BT"==lr?cr.get(r)?.y:cr.get(r)?.x;void 0!==a&&e(a,o)&&(t=r,o=a)})),t}),"findClosestParent"),yr=a((r=>{let t="",e=1/0;return r.forEach((r=>{var a=cr.get(r).y;a<=e&&(t=r,e=a)})),t||void 0}),"findClosestParentBT"),xr=a(((r,t,e)=>{let a=e,o=e;const n=[];r.forEach((r=>{var e=t.get(r);if(!e)throw new Error("Commit not found for key "+r);e.parents.length?(a=ur(e),o=Math.max(a,o)):n.push(e),br(e,a)})),a=o,n.forEach((r=>{wr(r,a,e)})),r.forEach((r=>{var e,n;r=t.get(r);r?.parents.length&&(e=yr(r.parents),(a=cr.get(e).y-er)<=o&&(o=a),e=sr.get(r.branch).pos,n=a-tr,cr.set(r.id,{x:e,y:n}))}))}),"setParallelBTPos"),fr=a((r=>{var t=pr(r.parents.filter((r=>null!==r)));if(!t)throw new Error("Closest parent not found for commit "+r.id);if(t=cr.get(t)?.y,void 0===t)throw new Error("Closest parent position not found for commit "+r.id);return t}),"findClosestParentPos"),ur=a((r=>fr(r)+er),"calculateCommitPosition"),br=a(((r,t)=>{var e=sr.get(r.branch);if(e)return e=e.pos,cr.set(r.id,{x:e,y:t+=tr}),{x:e,y:t};throw new Error("Branch not found for commit "+r.id)}),"setCommitPosition"),wr=a(((r,t,e)=>{var a=sr.get(r.branch);if(!a)throw new Error("Branch not found for commit "+r.id);a=a.pos,cr.set(r.id,{x:a,y:t+e})}),"setRootPosition"),kr=a(((r,t,e,a,o,n)=>{var i=x().theme,s=ar.has(i??""),c=or.has(i??"");i=nr.has(i??"");n===w.HIGHLIGHT?(r.append("rect").attr("x",e.x-10+(s?3:0)).attr("y",e.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${t.id} commit-highlight${ir(o,8,c)} ${a}-outer`),r.append("rect").attr("x",e.x-6+(s?2:0)).attr("y",e.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${t.id} commit${ir(o,8,c)} ${a}-inner`)):n===w.CHERRY_PICK?(r.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",s?7:10).attr("class",`commit ${t.id} `+a),r.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a),r.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a),r.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a),r.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a)):((i=r.append("circle")).attr("cx",e.x),i.attr("cy",e.y),i.attr("r",s?7:10),i.attr("class",`commit ${t.id} commit`+ir(o,8,c)),n===w.MERGE&&((i=r.append("circle")).attr("cx",e.x),i.attr("cy",e.y),i.attr("r",s?5:6),i.attr("class",`commit ${a} ${t.id} commit`+ir(o,8,c))),n===w.REVERSE&&(i=s?4:5,r.append("path").attr("d",`M ${e.x-i},${e.y-i}L${e.x+i},${e.y+i}M${e.x-i},${e.y+i}L${e.x+i},`+(e.y-i)).attr("class",`commit ${a} ${t.id} commit`+ir(o,8,c))))}),"drawCommitBullet"),Br=a(((r,t,e,a,o)=>{var n,i;t.type!==w.CHERRY_PICK&&(t.customId&&t.type===w.MERGE||t.type!==w.MERGE)&&o.showCommitLabel&&(n=(r=r.append("g")).insert("rect").attr("class","commit-label-bkg"),i=(t=r.append("text").attr("x",a).attr("y",e.y+25).attr("class","commit-label").text(t.id)).node()?.getBBox())&&(n.attr("x",e.posWithOffset-i.width/2-2).attr("y",e.y+13.5).attr("width",i.width+4).attr("height",i.height+4),"TB"===lr||"BT"===lr?(n.attr("x",e.x-(i.width+16+5)).attr("y",e.y-12),t.attr("x",e.x-(i.width+16)).attr("y",e.y+i.height-12)):t.attr("x",e.posWithOffset-i.width/2),o.rotateCommitLabel)&&("TB"===lr||"BT"===lr?(t.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),n.attr("transform","rotate(-45, "+e.x+", "+e.y+")")):(o=-7.5-(i.width+10)/25*9.5,t=10+i.width/25*8.5,r.attr("transform","translate("+o+", "+t+") rotate(-45, "+a+", "+e.y+")")))}),"drawCommitLabel"),vr=a(((r,t,e,a)=>{if(0<t.tags.length){let p=0,y=0,x=0;var o,n,i,s,c=[];for(const a of t.tags.reverse()){var d=r.insert("polygon"),h=r.append("circle"),m=r.append("text").attr("y",e.y-16-p).attr("class","tag-label").text(a),l=m.node()?.getBBox();if(!l)throw new Error("Tag bbox not found");y=Math.max(y,l.width),x=Math.max(x,l.height),m.attr("x",e.posWithOffset-l.width/2),c.push({tag:m,hole:h,rect:d,yOffset:p}),p+=20}for({tag:o,hole:n,rect:i,yOffset:s}of c){var $=x/2,g=e.y-19.2-s;i.attr("class","tag-label-bkg").attr("points",`\n ${a-y/2-2},${g+2} \n ${a-y/2-2},${g-2}\n ${e.posWithOffset-y/2-4},${g-$-2}\n ${e.posWithOffset+y/2+4},${g-$-2}\n ${e.posWithOffset+y/2+4},${g+$+2}\n ${e.posWithOffset-y/2-4},`+(g+$+2)),n.attr("cy",g).attr("cx",a-y/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"!==lr&&"BT"!==lr||(g=a+s,i.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${g+2}\n ${e.x},${g-2}\n ${e.x+tr},${g-$-2}\n ${e.x+tr+y+4},${g-$-2}\n ${e.x+tr+y+4},${g+$+2}\n ${e.x+tr},`+(g+$+2)).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),n.attr("cx",e.x+2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),o.attr("x",e.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+a+")"))}}}),"drawCommitTags"),Er=a((r=>{switch(r.customType??r.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}}),"getCommitClassType"),Cr=a(((r,t,e,a)=>{var o,n={x:0,y:0};return 0<r.parents.length?(o=pr(r.parents))?(o=a.get(o)??n,"TB"===t?o.y+er:"BT"===t?(a.get(r.id)??n).y-er:o.x+er):0:"TB"===t?30:"BT"===t?(a.get(r.id)??n).y-er:0}),"calculatePosition"),Lr=a(((r,t,e)=>{e="BT"===lr&&e?t:t+tr,t=sr.get(r.branch)?.pos;var a="TB"===lr||"BT"===lr?sr.get(r.branch)?.pos:e;if(void 0===a||void 0===t)throw new Error("Position were undefined for commit "+r.id);return r=ar.has(x().theme??""),{x:a,y:"TB"===lr||"BT"===lr?e:t+(r?7:-2),posWithOffset:e}}),"getCommitPosition"),Tr=a(((r,t,e,o)=>{const n=r.append("g").attr("class","commit-bullets"),i=r.append("g").attr("class","commit-labels");let s="TB"===lr||"BT"===lr?30:0;r=[...t.keys()];const c=o.parallelCommits??!1;var d=a(((r,e)=>(r=t.get(r)?.seq,e=t.get(e)?.seq,void 0!==r&&void 0!==e?r-e:0)),"sortKeys");let h=r.sort(d);"BT"===lr&&(c&&xr(h,t,s),h=h.reverse()),h.forEach((r=>{var a=t.get(r);if(!a)throw new Error("Commit not found for key "+r);c&&(s=Cr(a,lr,s,cr));var d,h,m;r=Lr(a,s,c);e&&(d=Er(a),h=a.customType??a.type,m=sr.get(a.branch)?.index??0,kr(n,a,r,d,m,h),Br(i,a,r,s,o),vr(i,a,r,s)),"TB"===lr||"BT"===lr?cr.set(a.id,{x:r.x,y:r.posWithOffset}):cr.set(a.id,{x:r.posWithOffset,y:r.y}),(s="BT"===lr&&c?s+er:s+er+tr)>mr&&(mr=s)}))}),"drawCommits"),Mr=a(((r,t,e,o,n)=>{const i=(("TB"===lr||"BT"===lr?e.x<o.x:e.y<o.y)?t:r).branch,s=a((r=>r.branch===i),"isOnBranchToGetCurve"),c=a((e=>e.seq>r.seq&&e.seq<t.seq),"isBetweenCommits");return[...n.values()].some((r=>c(r)&&s(r)))}),"shouldRerouteArrow"),Ir=a(((r,t,e=0)=>{const a=r+Math.abs(r-t)/2;var o;return 5<e?a:hr.every((r=>10<=Math.abs(r-a)))?(hr.push(a),a):(o=Math.abs(r-t),Ir(r,t-o/5,e+1))}),"findLane"),Rr=a(((r,t,e,a)=>{var o=x().theme,n=(o=or.has(o??""),cr.get(t.id)),i=cr.get(e.id);if(void 0===n||void 0===i)throw new Error(`Commit positions not found for commits ${t.id} and `+e.id);var s;a=Mr(t,e,n,i,a);let c,d="",h="",m=0,l=0,$=sr.get(e.branch)?.index;if(e.type===w.MERGE&&t.id!==e.parents[0]&&($=sr.get(t.branch)?.index),a?(d="A 10 10, 0, 0, 0,",h="A 10 10, 0, 0, 1,",m=10,l=10,a=n.y<i.y?Ir(n.y,i.y):Ir(i.y,n.y),s=n.x<i.x?Ir(n.x,i.x):Ir(i.x,n.x),c="TB"===lr?n.x<i.x?`M ${n.x} ${n.y} L ${s-m} ${n.y} ${h} ${s} ${n.y+l} L ${s} ${i.y-m} ${d} ${s+l} ${i.y} L ${i.x} `+i.y:($=sr.get(t.branch)?.index,`M ${n.x} ${n.y} L ${s+m} ${n.y} ${d} ${s} ${n.y+l} L ${s} ${i.y-m} ${h} ${s-l} ${i.y} L ${i.x} `+i.y):"BT"===lr?n.x<i.x?`M ${n.x} ${n.y} L ${s-m} ${n.y} ${d} ${s} ${n.y-l} L ${s} ${i.y+m} ${h} ${s+l} ${i.y} L ${i.x} `+i.y:($=sr.get(t.branch)?.index,`M ${n.x} ${n.y} L ${s+m} ${n.y} ${h} ${s} ${n.y-l} L ${s} ${i.y+m} ${d} ${s-l} ${i.y} L ${i.x} `+i.y):n.y<i.y?`M ${n.x} ${n.y} L ${n.x} ${a-m} ${d} ${n.x+l} ${a} L ${i.x-m} ${a} ${h} ${i.x} ${a+l} L ${i.x} `+i.y:($=sr.get(t.branch)?.index,`M ${n.x} ${n.y} L ${n.x} ${a+m} ${h} ${n.x+l} ${a} L ${i.x-m} ${a} ${d} ${i.x} ${a-l} L ${i.x} `+i.y)):(d="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",m=20,l=20,"TB"===lr?(n.x<i.x&&(c=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y-m} ${d} ${n.x+l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${h} ${i.x} ${n.y+l} L ${i.x} `+i.y),n.x>i.x&&(d="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",m=20,l=20,c=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y-m} ${h} ${n.x-l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x+m} ${n.y} ${d} ${i.x} ${n.y+l} L ${i.x} `+i.y),n.x===i.x&&(c=`M ${n.x} ${n.y} L ${i.x} `+i.y)):"BT"===lr?(n.x<i.x&&(c=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y+m} ${h} ${n.x+l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${d} ${i.x} ${n.y-l} L ${i.x} `+i.y),n.x>i.x&&(d="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",m=20,l=20,c=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y+m} ${d} ${n.x-l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x+m} ${n.y} ${h} ${i.x} ${n.y-l} L ${i.x} `+i.y),n.x===i.x&&(c=`M ${n.x} ${n.y} L ${i.x} `+i.y)):(n.y<i.y&&(c=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${h} ${i.x} ${n.y+l} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${n.x} ${i.y-m} ${d} ${n.x+l} ${i.y} L ${i.x} `+i.y),n.y>i.y&&(c=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${d} ${i.x} ${n.y-l} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${n.x} ${i.y+m} ${h} ${n.x+l} ${i.y} L ${i.x} `+i.y),n.y===i.y&&(c=`M ${n.x} ${n.y} L ${i.x} `+i.y))),void 0===c)throw new Error("Line definition not found");r.append("path").attr("d",c).attr("class","arrow arrow"+ir($,8,o))}),"drawArrow"),Pr=a(((r,t)=>{const e=r.append("g").attr("class","commit-arrows");[...t.keys()].forEach((r=>{const a=t.get(r);a.parents&&0<a.parents.length&&a.parents.forEach((r=>{Rr(e,t.get(r),a,t)}))}))}),"drawArrows"),Or=a(((r,t,e,a)=>{const{look:o,theme:n,themeVariables:i}=x(),{dropShadow:s,THEME_COLOR_LIMIT:c}=i,d=ar.has(n??""),h=or.has(n??""),m=r.append("g");t.forEach(((r,t)=>{t=ir(t,d?c:8,h);var n=sr.get(r.name)?.pos;if(void 0===n)throw new Error("Position not found for branch "+r.name);var i="TB"===lr||"BT"===lr?n:d?n+6+1:n-2,l=((l=m.append("line")).attr("x1",0),l.attr("y1",i),l.attr("x2",mr),l.attr("y2",i),l.attr("class","branch branch"+t),"TB"===lr?(l.attr("y1",30),l.attr("x1",n),l.attr("y2",mr),l.attr("x2",n)):"BT"===lr&&(l.attr("y1",mr),l.attr("x1",n),l.attr("y2",30),l.attr("x2",n)),hr.push(i),r.name),$=(r=gr(l),l=m.insert("rect"),m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+t)),g=(r=($.node().appendChild(r),r.getBBox()),d?0:4),p=d?16:0,y=d?12:0;"neo"===o&&l.attr("data-look","neo"),l.attr("class","branchLabelBkg label"+t).attr("style","neo"===o?"filter:"+(d?`url(#${a}-drop-shadow)`:s):"").attr("rx",g).attr("ry",g).attr("x",-r.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-r.height/2+10).attr("width",r.width+18+p).attr("height",r.height+4+y),$.attr("transform","translate("+(-r.width-14-(!0===e.rotateCommitLabel?30:0)+p/2)+", "+(i-r.height/2-2)+")"),"TB"===lr?(l.attr("x",n-r.width/2-10).attr("y",0),$.attr("transform","translate("+(n-r.width/2-5)+", 0)"),d&&(l.attr("transform",`translate(${-p/2-3}, ${-y-10})`),$.attr("transform","translate("+(n-r.width/2-5)+", "+(2*-y+7)+")"))):"BT"===lr?(l.attr("x",n-r.width/2-10).attr("y",mr),$.attr("transform","translate("+(n-r.width/2-5)+", "+mr+")"),d&&(l.attr("transform",`translate(${-p/2-3}, ${y+10})`),$.attr("transform","translate("+(n-r.width/2-5)+", "+(mr+2*y+4)+")"))):l.attr("transform","translate(-19, "+(i-12-y/2)+")")}))}),"drawBranches"),Ar=a((function(r,t,e,a,o){return sr.set(r,{pos:t,index:e}),t+(50+(o?40:0)+("TB"===lr||"BT"===lr?a.width/2:0))}),"setBranchPosition"),Gr={draw:a((function(r,t,e,a){if($r(),s.debug("in gitgraph renderer",r+"\n","id:",t,e),(r=a.db).getConfig){const s=(e=r.getConfig()).rotateCommitLabel??!1;dr=r.getCommits(),a=r.getBranchesAsObjArray(),lr=r.getDirection();const m=y(`[id="${t}"]`);var{look:o,theme:n,themeVariables:i}=x(),{useGradient:i,gradientStart:c,gradientStop:d,filterColor:h}=i;i&&((i=m.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),i.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)),"neo"===o&&ar.has(n??"")&&m.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",h);let l=0;a.forEach(((r,t)=>{var e=gr(r.name),a=m.append("g"),o=a.insert("g").attr("class","branchLabel"),n=o.insert("g").attr("class","label branch-label");n.node()?.appendChild(e),e=e.getBBox();l=Ar(r.name,l,t,e,s),n.remove(),o.remove(),a.remove()})),Tr(m,dr,!1,e),e.showBranches&&Or(m,a,e,t),Pr(m,dr),Tr(m,dr,!0,e),f.insertTitle(m,"gitTitleText",e.titleTopMargin??0,r.getDiagramTitle()),u(void 0,m,e.diagramPadding,e.useMaxWidth)}else s.error("getConfig method is not available on db")}),"draw")},Sr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Wr=new Set(["redux-color","redux-dark-color"]),Hr=new Set(["neo","neo-dark"]),qr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),_r=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),zr=a((r=>{var t=r.svgId;let e="";if(r.useGradient&&t)for(let a=0;a<r.THEME_COLOR_LIMIT;a++)e+=`\n .label${a} { fill: ${r.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${r.strokeWidth};}\n `;return e}),"genGitGraphGradient"),jr=a((r=>{var t,e,{theme:a,themeVariables:o}=n(),i=o.borderColorArray,s=Sr.has(a);if(Hr.has(a)){let e="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)0===a?e+=`\n .branch-label${a} { fill: ${r.nodeBorder};}\n .commit${a} { stroke: ${r.nodeBorder}; }\n .commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }\n .arrow${a} { stroke: ${r.nodeBorder}; }\n .commit-bullets { fill: ${r.nodeBorder}; }\n .commit-cherry-pick${a} { stroke: ${r.nodeBorder}; }\n `+zr(r):e+=`\n .branch-label${a} { fill: ${r["gitBranchLabel"+(t=a%8)]}; }\n .commit${a} { stroke: ${r["git"+t]}; fill: ${r["git"+t]}; }\n .commit-highlight${a} { stroke: ${r["gitInv"+t]}; fill: ${r["gitInv"+t]}; }\n .arrow${a} { stroke: ${r["git"+t]}; }\n `;return e}if(Wr.has(a)){let t="";for(let o=0;o<r.THEME_COLOR_LIMIT;o++)0===o?t+=`\n .branch-label${o} { fill: ${r.nodeBorder}; ${s?"font-weight:"+r.noteFontWeight:""} }\n .commit${o} { stroke: ${r.nodeBorder}; }\n .commit-highlight${o} { stroke: ${r.nodeBorder}; fill: ${r.mainBkg}; }\n .label${o} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${s?"font-weight:"+r.noteFontWeight:""} }\n .arrow${o} { stroke: ${r.nodeBorder}; }\n .commit-bullets { fill: ${r.nodeBorder}; }\n `:(e=o%i.length,t+=`\n .branch-label${o} { fill: ${r.nodeBorder}; ${s?"font-weight:"+r.noteFontWeight:""} }\n .commit${o} { stroke: ${i[e]}; fill: ${i[e]}; }\n .commit-highlight${o} { stroke: ${i[e]}; fill: ${i[e]}; }\n .label${o} { fill: ${qr.has(a)?r.mainBkg:i[e]}; stroke: ${i[e]}; stroke-width: ${r.strokeWidth}; }\n .arrow${o} { stroke: ${i[e]}; }\n `);return t}{let t="";for(let e=0;e<r.THEME_COLOR_LIMIT;e++)t+=`\n .branch-label${e} { fill: ${r.nodeBorder}; ${s?"font-weight:"+r.noteFontWeight:""} }\n .commit${e} { stroke: ${r.nodeBorder}; }\n .commit-highlight${e} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }\n .label${e} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${s?"font-weight:"+r.noteFontWeight:""}}\n .arrow${e} { stroke: ${r.nodeBorder}; }\n .commit-bullets { fill: ${r.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${r.nodeBorder}; }\n `;return t}}),"genColor"),Dr=a((r=>""+Array.from({length:r.THEME_COLOR_LIMIT},((r,t)=>t)).map((t=>{var e=t%8;return`\n .branch-label${t} { fill: ${r["gitBranchLabel"+e]}; }\n .commit${t} { stroke: ${r["git"+e]}; fill: ${r["git"+e]}; }\n .commit-highlight${t} { stroke: ${r["gitInv"+e]}; fill: ${r["gitInv"+e]}; }\n .label${t} { fill: ${r["git"+e]}; }\n .arrow${t} { stroke: ${r["git"+e]}; }\n `})).join("\n")),"normalTheme"),Fr=a((r=>{var t=n().theme,e=_r.has(t);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${(e?jr:Dr)(r)}\n\n .branch {\n stroke-width: ${r.strokeWidth};\n stroke: ${r.commitLineColor??r.lineColor};\n stroke-dasharray: ${e?"4 2":"2"};\n }\n .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${e?r.nodeBorder:r.commitLabelColor}; ${e?`font-weight:${r.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${e?"transparent":r.commitLabelBackground}; opacity: ${e?"":.5}; }\n .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}\n .tag-label-bkg { fill: ${e?r.mainBkg:r.tagLabelBackground}; stroke: ${e?r.nodeBorder:r.tagLabelBorder}; ${e?"filter:"+r.dropShadow:""} }\n .tag-hole { fill: ${r.textColor}; }\n\n .commit-merge {\n stroke: ${e?r.mainBkg:r.primaryColor};\n fill: ${e?r.mainBkg:r.primaryColor};\n }\n .commit-reverse {\n stroke: ${e?r.mainBkg:r.primaryColor};\n fill: ${e?r.mainBkg:r.primaryColor};\n stroke-width: ${e?r.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${e?r.mainBkg:r.primaryColor};\n fill: ${e?r.mainBkg:r.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Sr.has(t)?r.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`}),"getStyles"),Nr={parser:rr,db:K,renderer:Gr,styles:Fr};export{Nr as diagram};
@@ -0,0 +1 @@
1
+ var r,t;(r=self.document)&&!r.getElementById("livereloadscript")&&((t=r.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",r.getElementsByTagName("head")[0].appendChild(t));import{I as e}from"./chunk-2Q5K7J3B-9497bf31.js";import{p as a}from"./chunk-JWPE2WC7-84faee3d.js";import{E as o,_ as n,F as i,G as s,H as c,l as d,s as h,g as m,b as l,c as $,n as g,o as p,e as y,v as x,j as f,d as u,u as b,I as w}from"./mermaid.core-2d237a1e.js";import{v as k}from"./mermaid-parser.core-6df0beec.js";import"./web-753300e1.js";var B={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},v=o.gitGraph,E=n(()=>i({...v,...s().gitGraph}),"getConfig"),C=new e(()=>{var r=E(),t=r.mainBranchName;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r.mainBranchOrder}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function L(){return c({length:7})}function T(r,t){let e=Object.create(null);return r.reduce((r,a)=>{var o=t(a);return e[o]||(e[o]=!0,r.push(a)),r},[])}n(L,"getID"),n(T,"uniqBy");var M=n(function(r){C.records.direction=r},"setDirection"),I=n(function(r){d.debug("options str",r),r=(r=r?.trim())||"{}";try{C.records.options=JSON.parse(r)}catch(r){d.error("error while parsing gitGraph options",r.message)}},"setOptions"),R=n(function(){return C.records.options},"getOptions"),P=n(function(r){var t=r.msg,e=r.id,a=r.type;let o=r.tags,n=(d.info("commit",t,e,a,o),d.debug("Entering commit:",t,e,a,o),E());e=y.sanitizeText(e,n),t=y.sanitizeText(t,n),o=o?.map(r=>y.sanitizeText(r,n)),r={id:e||C.records.seq+"-"+L(),message:t,seq:C.records.seq++,type:a??B.NORMAL,tags:o??[],parents:null==C.records.head?[]:[C.records.head.id],branch:C.records.currBranch},C.records.head=r,d.info("main branch",n.mainBranchName),C.records.commits.has(r.id)&&d.warn(`Commit ID ${r.id} already exists`),C.records.commits.set(r.id,r),C.records.branches.set(C.records.currBranch,r.id),d.debug("in pushCommit "+r.id)},"commit"),O=n(function(r){var t=r.name;r=r.order,t=y.sanitizeText(t,E());if(C.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,null!=C.records.head?C.records.head.id:null),C.records.branchConfig.set(t,{name:t,order:r}),S(t),d.debug("in createBranch")},"branch"),A=n(r=>{var t=r.branch;let e=r.id;var a=r.type,o=(r=r.tags,E()),n=(t=y.sanitizeText(t,o),o=(e=e&&y.sanitizeText(e,o),C.records.branches.get(C.records.currBranch)),C.records.branches.get(t)),i=(o=o?C.records.commits.get(o):void 0,n?C.records.commits.get(n):void 0);if(o&&i&&o.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t)throw(s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},s;if(void 0===o||!o)throw(s=new Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`)).hash={text:"merge "+t,token:"merge "+t,expected:["commit"]},s;if(!C.records.branches.has(t))throw(s=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist")).hash={text:"merge "+t,token:"merge "+t,expected:["branch "+t]},s;if(void 0===i||!i)throw(s=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits")).hash={text:"merge "+t,token:"merge "+t,expected:['"commit"']},s;if(o===i)throw(s=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},s;if(e&&C.records.commits.has(e))throw(o=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id")).hash={text:`merge ${t} ${e} ${a} `+r?.join(" "),token:`merge ${t} ${e} ${a} `+r?.join(" "),expected:[`merge ${t} ${e}_UNIQUE ${a} `+r?.join(" ")]},o;i=n||"";var s={id:e||C.records.seq+"-"+L(),message:`merged branch ${t} into `+C.records.currBranch,seq:C.records.seq++,parents:null==C.records.head?[]:[C.records.head.id,i],branch:C.records.currBranch,type:B.MERGE,customType:a,customId:!!e,tags:r??[]};C.records.head=s,C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),d.debug(C.records.branches),d.debug("in mergeBranch")},"merge"),G=n(function(r){var t=r.id,e=r.targetId;let a=r.tags;r=r.parent,d.debug("Entering cherryPick:",t,e,a);let o=E();if(t=y.sanitizeText(t,o),e=y.sanitizeText(e,o),a=a?.map(r=>y.sanitizeText(r,o)),r=y.sanitizeText(r,o),!t||!C.records.commits.has(t))throw(n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided')).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},n;var n=C.records.commits.get(t);if(void 0===n||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&(!Array.isArray(n.parents)||!n.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");var i=n.branch;if(n.type===B.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!C.records.commits.has(e)){if(i===C.records.currBranch)throw(i=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch')).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},i;if(void 0===(i=C.records.branches.get(C.records.currBranch))||!i)throw(s=new Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},s;var s=C.records.commits.get(i);if(void 0===s||!s)throw(i=new Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},i;s={id:C.records.seq+"-"+L(),message:`cherry-picked ${n?.message} into `+C.records.currBranch,seq:C.records.seq++,parents:null==C.records.head?[]:[C.records.head.id,n.id],branch:C.records.currBranch,type:B.CHERRY_PICK,tags:a?a.filter(Boolean):["cherry-pick:"+n.id+(n.type===B.MERGE?"|parent:"+r:"")]},C.records.head=s,C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),d.debug(C.records.branches),d.debug("in cherryPick")}},"cherryPick"),S=n(function(r){var t;if(r=y.sanitizeText(r,E()),!C.records.branches.has(r))throw(t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`)).hash={text:"checkout "+r,token:"checkout "+r,expected:["branch "+r]},t;C.records.currBranch=r,t=C.records.branches.get(C.records.currBranch),C.records.head=void 0!==t&&t?C.records.commits.get(t)??null:null},"checkout");function W(r,t,e){-1===(t=r.indexOf(t))?r.push(e):r.splice(t,1,e)}function H(r){let t=r.reduce((r,t)=>r.seq>t.seq?r:t,r[0]),e="";r.forEach(function(r){e+=r===t?"\t*":"\t|"});var a,o=[e,t.id,t.seq];for(a in C.records.branches)C.records.branches.get(a)===t.id&&o.push(a);if(d.debug(o.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){var n=C.records.commits.get(t.parents[0]);W(r,t,n),t.parents[1]&&r.push(C.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;t.parents[0]&&(n=C.records.commits.get(t.parents[0]),W(r,t,n))}H(r=T(r,r=>r.id))}n(W,"upsert"),n(H,"prettyPrintCommitHistory");var q=n(function(){d.debug(C.records.commits),H([F()[0]])},"prettyPrint"),_=n(function(){C.reset(),x()},"clear"),z=n(function(){return[...C.records.branchConfig.values()].map((r,t)=>null!=r.order?r:{...r,order:parseFloat("0."+t)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),j=n(function(){return C.records.branches},"getBranches"),D=n(function(){return C.records.commits},"getCommits"),F=n(function(){var r=[...C.records.commits.values()];return r.forEach(function(r){d.debug(r.id)}),r.sort((r,t)=>r.seq-t.seq),r},"getCommitsArray"),N=n(function(){return C.records.currBranch},"getCurrentBranch"),K=n(function(){return C.records.direction},"getDirection"),V=n(function(){return C.records.head},"getHead"),Y={commitType:B,getConfig:E,setDirection:M,setOptions:I,getOptions:R,commit:P,branch:O,merge:A,cherryPick:G,checkout:S,prettyPrint:q,clear:_,getBranchesAsObjArray:z,getBranches:j,getCommits:D,getCommitsArray:F,getCurrentBranch:N,getDirection:K,getHead:V,setAccTitle:h,getAccTitle:m,getAccDescription:l,setAccDescription:$,setDiagramTitle:g,getDiagramTitle:p},U=n((r,t)=>{for(var e of(a(r,t),r.dir&&t.setDirection(r.dir),r.statements))J(e,t)},"populate"),J=n((r,t)=>{var e={Commit:n(r=>t.commit(Q(r)),"Commit"),Branch:n(r=>t.branch(X(r)),"Branch"),Merge:n(r=>t.merge(Z(r)),"Merge"),Checkout:n(r=>t.checkout(rr(r)),"Checkout"),CherryPicking:n(r=>t.cherryPick(tr(r)),"CherryPicking")}[r.$type];e?e(r):d.error("Unknown statement type: "+r.$type)},"parseStatement"),Q=n(r=>({id:r.id,msg:r.message??"",type:void 0!==r.type?B[r.type]:B.NORMAL,tags:r.tags??void 0}),"parseCommit"),X=n(r=>({name:r.name,order:r.order??0}),"parseBranch"),Z=n(r=>({branch:r.branch,id:r.id??"",type:void 0!==r.type?B[r.type]:void 0,tags:r.tags??void 0}),"parseMerge"),rr=n(r=>r.branch,"parseCheckout"),tr=n(r=>({id:r.id,targetId:"",tags:0===r.tags?.length?void 0:r.tags,parent:r.parent}),"parseCherryPicking"),er={parse:n(async r=>{r=await k("gitGraph",r),d.debug(r),U(r,Y)},"parse")},ar=10,or=40,nr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),ir=new Set(["redux-color","redux-dark-color"]),sr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),cr=n((r,t,e=!1)=>e&&0<r?(r-1)%(t-1)+1:r%t,"calcColorIndex"),dr=new Map,hr=new Map,mr=new Map,lr=[],$r=0,gr="LR",pr=n(()=>{dr.clear(),hr.clear(),mr.clear(),$r=0,lr=[],gr="LR"},"clear"),yr=n(r=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach(r=>{var e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=r.trim(),t.appendChild(e)}),t},"drawText"),xr=n(r=>{let t,e,a;return a="BT"===gr?(e=n((r,t)=>r<=t,"comparisonFunc"),1/0):(e=n((r,t)=>t<=r,"comparisonFunc"),0),r.forEach(r=>{var o="TB"===gr||"BT"==gr?hr.get(r)?.y:hr.get(r)?.x;void 0!==o&&e(o,a)&&(t=r,a=o)}),t},"findClosestParent"),fr=n(r=>{let t="",e=1/0;return r.forEach(r=>{var a=hr.get(r).y;a<=e&&(t=r,e=a)}),t||void 0},"findClosestParentBT"),ur=n((r,t,e)=>{let a=e,o=e,n=[];r.forEach(r=>{var e=t.get(r);if(!e)throw new Error("Commit not found for key "+r);e.parents.length?(a=wr(e),o=Math.max(a,o)):n.push(e),kr(e,a)}),a=o,n.forEach(r=>{Br(r,a,e)}),r.forEach(r=>{var e,n;r=t.get(r);r?.parents.length&&(e=fr(r.parents),(a=hr.get(e).y-or)<=o&&(o=a),e=dr.get(r.branch).pos,n=a-ar,hr.set(r.id,{x:e,y:n}))})},"setParallelBTPos"),br=n(r=>{var t=xr(r.parents.filter(r=>null!==r));if(!t)throw new Error("Closest parent not found for commit "+r.id);if(t=hr.get(t)?.y,void 0===t)throw new Error("Closest parent position not found for commit "+r.id);return t},"findClosestParentPos"),wr=n(r=>br(r)+or,"calculateCommitPosition"),kr=n((r,t)=>{var e=dr.get(r.branch);if(e)return e=e.pos,hr.set(r.id,{x:e,y:t+=ar}),{x:e,y:t};throw new Error("Branch not found for commit "+r.id)},"setCommitPosition"),Br=n((r,t,e)=>{var a=dr.get(r.branch);if(!a)throw new Error("Branch not found for commit "+r.id);a=a.pos,hr.set(r.id,{x:a,y:t+e})},"setRootPosition"),vr=n((r,t,e,a,o,n)=>{var i=u().theme,s=nr.has(i??""),c=ir.has(i??"");i=sr.has(i??"");n===B.HIGHLIGHT?(r.append("rect").attr("x",e.x-10+(s?3:0)).attr("y",e.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${t.id} commit-highlight${cr(o,8,c)} ${a}-outer`),r.append("rect").attr("x",e.x-6+(s?2:0)).attr("y",e.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${t.id} commit${cr(o,8,c)} ${a}-inner`)):n===B.CHERRY_PICK?(r.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",s?7:10).attr("class",`commit ${t.id} `+a),r.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a),r.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a),r.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a),r.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",i?"#000000":"#fff").attr("class",`commit ${t.id} `+a)):((i=r.append("circle")).attr("cx",e.x),i.attr("cy",e.y),i.attr("r",s?7:10),i.attr("class",`commit ${t.id} commit`+cr(o,8,c)),n===B.MERGE&&((i=r.append("circle")).attr("cx",e.x),i.attr("cy",e.y),i.attr("r",s?5:6),i.attr("class",`commit ${a} ${t.id} commit`+cr(o,8,c))),n===B.REVERSE&&(i=s?4:5,r.append("path").attr("d",`M ${e.x-i},${e.y-i}L${e.x+i},${e.y+i}M${e.x-i},${e.y+i}L${e.x+i},`+(e.y-i)).attr("class",`commit ${a} ${t.id} commit`+cr(o,8,c))))},"drawCommitBullet"),Er=n((r,t,e,a,o)=>{var n,i;t.type!==B.CHERRY_PICK&&(t.customId&&t.type===B.MERGE||t.type!==B.MERGE)&&o.showCommitLabel&&(n=(r=r.append("g")).insert("rect").attr("class","commit-label-bkg"),i=(t=r.append("text").attr("x",a).attr("y",e.y+25).attr("class","commit-label").text(t.id)).node()?.getBBox())&&(n.attr("x",e.posWithOffset-i.width/2-2).attr("y",e.y+13.5).attr("width",i.width+4).attr("height",i.height+4),"TB"===gr||"BT"===gr?(n.attr("x",e.x-(i.width+16+5)).attr("y",e.y-12),t.attr("x",e.x-(i.width+16)).attr("y",e.y+i.height-12)):t.attr("x",e.posWithOffset-i.width/2),o.rotateCommitLabel)&&("TB"===gr||"BT"===gr?(t.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),n.attr("transform","rotate(-45, "+e.x+", "+e.y+")")):(o=-7.5-(i.width+10)/25*9.5,t=10+i.width/25*8.5,r.attr("transform","translate("+o+", "+t+") rotate(-45, "+a+", "+e.y+")")))},"drawCommitLabel"),Cr=n((r,t,e,a)=>{if(0<t.tags.length){let y=0,x=0,f=0;var o,n,i,s,c,d=[];for(o of t.tags.reverse()){var h=r.insert("polygon"),m=r.append("circle"),l=r.append("text").attr("y",e.y-16-y).attr("class","tag-label").text(o),$=l.node()?.getBBox();if(!$)throw new Error("Tag bbox not found");x=Math.max(x,$.width),f=Math.max(f,$.height),l.attr("x",e.posWithOffset-$.width/2),d.push({tag:l,hole:m,rect:h,yOffset:y}),y+=20}for({tag:n,hole:i,rect:s,yOffset:c}of d){var g=f/2,p=e.y-19.2-c;s.attr("class","tag-label-bkg").attr("points",`\n ${a-x/2-2},${p+2} \n ${a-x/2-2},${p-2}\n ${e.posWithOffset-x/2-4},${p-g-2}\n ${e.posWithOffset+x/2+4},${p-g-2}\n ${e.posWithOffset+x/2+4},${p+g+2}\n ${e.posWithOffset-x/2-4},`+(p+g+2)),i.attr("cy",p).attr("cx",a-x/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"!==gr&&"BT"!==gr||(p=a+c,s.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${p+2}\n ${e.x},${p-2}\n ${e.x+ar},${p-g-2}\n ${e.x+ar+x+4},${p-g-2}\n ${e.x+ar+x+4},${p+g+2}\n ${e.x+ar},`+(p+g+2)).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),i.attr("cx",e.x+2).attr("cy",p).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),n.attr("x",e.x+5).attr("y",p+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+a+")"))}}},"drawCommitTags"),Lr=n(r=>{switch(r.customType??r.type){case B.NORMAL:return"commit-normal";case B.REVERSE:return"commit-reverse";case B.HIGHLIGHT:return"commit-highlight";case B.MERGE:return"commit-merge";case B.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Tr=n((r,t,e,a)=>{var o,n={x:0,y:0};return 0<r.parents.length?(o=xr(r.parents))?(o=a.get(o)??n,"TB"===t?o.y+or:"BT"===t?(a.get(r.id)??n).y-or:o.x+or):0:"TB"===t?30:"BT"===t?(a.get(r.id)??n).y-or:0},"calculatePosition"),Mr=n((r,t,e)=>{e="BT"===gr&&e?t:t+ar,t=dr.get(r.branch)?.pos;var a="TB"===gr||"BT"===gr?dr.get(r.branch)?.pos:e;if(void 0===a||void 0===t)throw new Error("Position were undefined for commit "+r.id);return r=nr.has(u().theme??""),{x:a,y:"TB"===gr||"BT"===gr?e:t+(r?7:-2),posWithOffset:e}},"getCommitPosition"),Ir=n((r,t,e,a)=>{let o=r.append("g").attr("class","commit-bullets"),i=r.append("g").attr("class","commit-labels"),s="TB"===gr||"BT"===gr?30:0;r=[...t.keys()];let c=a.parallelCommits??!1;var d=n((r,e)=>(r=t.get(r)?.seq,e=t.get(e)?.seq,void 0!==r&&void 0!==e?r-e:0),"sortKeys");let h=r.sort(d);"BT"===gr&&(c&&ur(h,t,s),h=h.reverse()),h.forEach(r=>{var n=t.get(r);if(!n)throw new Error("Commit not found for key "+r);c&&(s=Tr(n,gr,s,hr));var d,h,m;r=Mr(n,s,c);e&&(d=Lr(n),h=n.customType??n.type,m=dr.get(n.branch)?.index??0,vr(o,n,r,d,m,h),Er(i,n,r,s,a),Cr(i,n,r,s)),"TB"===gr||"BT"===gr?hr.set(n.id,{x:r.x,y:r.posWithOffset}):hr.set(n.id,{x:r.posWithOffset,y:r.y}),(s="BT"===gr&&c?s+or:s+or+ar)>$r&&($r=s)})},"drawCommits"),Rr=n((r,t,e,a,o)=>{let i=(("TB"===gr||"BT"===gr?e.x<a.x:e.y<a.y)?t:r).branch,s=n(r=>r.branch===i,"isOnBranchToGetCurve"),c=n(e=>e.seq>r.seq&&e.seq<t.seq,"isBetweenCommits");return[...o.values()].some(r=>c(r)&&s(r))},"shouldRerouteArrow"),Pr=n((r,t,e=0)=>{let a=r+Math.abs(r-t)/2;var o;return 5<e?a:lr.every(r=>10<=Math.abs(r-a))?(lr.push(a),a):(o=Math.abs(r-t),Pr(r,t-o/5,e+1))},"findLane"),Or=n((r,t,e,a)=>{var o=u().theme,n=(o=ir.has(o??""),hr.get(t.id)),i=hr.get(e.id);if(void 0===n||void 0===i)throw new Error(`Commit positions not found for commits ${t.id} and `+e.id);var s;a=Rr(t,e,n,i,a);let c,d="",h="",m=0,l=0,$=dr.get(e.branch)?.index;if(e.type===B.MERGE&&t.id!==e.parents[0]&&($=dr.get(t.branch)?.index),a?(d="A 10 10, 0, 0, 0,",h="A 10 10, 0, 0, 1,",m=10,l=10,a=n.y<i.y?Pr(n.y,i.y):Pr(i.y,n.y),s=n.x<i.x?Pr(n.x,i.x):Pr(i.x,n.x),c="TB"===gr?n.x<i.x?`M ${n.x} ${n.y} L ${s-m} ${n.y} ${h} ${s} ${n.y+l} L ${s} ${i.y-m} ${d} ${s+l} ${i.y} L ${i.x} `+i.y:($=dr.get(t.branch)?.index,`M ${n.x} ${n.y} L ${s+m} ${n.y} ${d} ${s} ${n.y+l} L ${s} ${i.y-m} ${h} ${s-l} ${i.y} L ${i.x} `+i.y):"BT"===gr?n.x<i.x?`M ${n.x} ${n.y} L ${s-m} ${n.y} ${d} ${s} ${n.y-l} L ${s} ${i.y+m} ${h} ${s+l} ${i.y} L ${i.x} `+i.y:($=dr.get(t.branch)?.index,`M ${n.x} ${n.y} L ${s+m} ${n.y} ${h} ${s} ${n.y-l} L ${s} ${i.y+m} ${d} ${s-l} ${i.y} L ${i.x} `+i.y):n.y<i.y?`M ${n.x} ${n.y} L ${n.x} ${a-m} ${d} ${n.x+l} ${a} L ${i.x-m} ${a} ${h} ${i.x} ${a+l} L ${i.x} `+i.y:($=dr.get(t.branch)?.index,`M ${n.x} ${n.y} L ${n.x} ${a+m} ${h} ${n.x+l} ${a} L ${i.x-m} ${a} ${d} ${i.x} ${a-l} L ${i.x} `+i.y)):(d="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",m=20,l=20,"TB"===gr?(n.x<i.x&&(c=e.type===B.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y-m} ${d} ${n.x+l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${h} ${i.x} ${n.y+l} L ${i.x} `+i.y),n.x>i.x&&(d="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",m=20,l=20,c=e.type===B.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y-m} ${h} ${n.x-l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x+m} ${n.y} ${d} ${i.x} ${n.y+l} L ${i.x} `+i.y),n.x===i.x&&(c=`M ${n.x} ${n.y} L ${i.x} `+i.y)):"BT"===gr?(n.x<i.x&&(c=e.type===B.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y+m} ${h} ${n.x+l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${d} ${i.x} ${n.y-l} L ${i.x} `+i.y),n.x>i.x&&(d="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",m=20,l=20,c=e.type===B.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${n.x} ${i.y+m} ${d} ${n.x-l} ${i.y} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${i.x+m} ${n.y} ${h} ${i.x} ${n.y-l} L ${i.x} `+i.y),n.x===i.x&&(c=`M ${n.x} ${n.y} L ${i.x} `+i.y)):(n.y<i.y&&(c=e.type===B.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${h} ${i.x} ${n.y+l} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${n.x} ${i.y-m} ${d} ${n.x+l} ${i.y} L ${i.x} `+i.y),n.y>i.y&&(c=e.type===B.MERGE&&t.id!==e.parents[0]?`M ${n.x} ${n.y} L ${i.x-m} ${n.y} ${d} ${i.x} ${n.y-l} L ${i.x} `+i.y:`M ${n.x} ${n.y} L ${n.x} ${i.y+m} ${h} ${n.x+l} ${i.y} L ${i.x} `+i.y),n.y===i.y&&(c=`M ${n.x} ${n.y} L ${i.x} `+i.y))),void 0===c)throw new Error("Line definition not found");r.append("path").attr("d",c).attr("class","arrow arrow"+cr($,8,o))},"drawArrow"),Ar=n((r,t)=>{let e=r.append("g").attr("class","commit-arrows");[...t.keys()].forEach(r=>{let a=t.get(r);a.parents&&0<a.parents.length&&a.parents.forEach(r=>{Or(e,t.get(r),a,t)})})},"drawArrows"),Gr=n((r,t,e,a)=>{let{look:o,theme:n,themeVariables:i}=u(),{dropShadow:s,THEME_COLOR_LIMIT:c}=i,d=nr.has(n??""),h=ir.has(n??""),m=r.append("g");t.forEach((r,t)=>{t=cr(t,d?c:8,h);var n=dr.get(r.name)?.pos;if(void 0===n)throw new Error("Position not found for branch "+r.name);var i="TB"===gr||"BT"===gr?n:d?n+6+1:n-2,l=((l=m.append("line")).attr("x1",0),l.attr("y1",i),l.attr("x2",$r),l.attr("y2",i),l.attr("class","branch branch"+t),"TB"===gr?(l.attr("y1",30),l.attr("x1",n),l.attr("y2",$r),l.attr("x2",n)):"BT"===gr&&(l.attr("y1",$r),l.attr("x1",n),l.attr("y2",30),l.attr("x2",n)),lr.push(i),r.name),$=(r=yr(l),l=m.insert("rect"),m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+t)),g=(r=($.node().appendChild(r),r.getBBox()),d?0:4),p=d?16:0,y=d?12:0;"neo"===o&&l.attr("data-look","neo"),l.attr("class","branchLabelBkg label"+t).attr("style","neo"===o?"filter:"+(d?`url(#${a}-drop-shadow)`:s):"").attr("rx",g).attr("ry",g).attr("x",-r.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-r.height/2+10).attr("width",r.width+18+p).attr("height",r.height+4+y),$.attr("transform","translate("+(-r.width-14-(!0===e.rotateCommitLabel?30:0)+p/2)+", "+(i-r.height/2-2)+")"),"TB"===gr?(l.attr("x",n-r.width/2-10).attr("y",0),$.attr("transform","translate("+(n-r.width/2-5)+", 0)"),d&&(l.attr("transform",`translate(${-p/2-3}, ${-y-10})`),$.attr("transform","translate("+(n-r.width/2-5)+", "+(2*-y+7)+")"))):"BT"===gr?(l.attr("x",n-r.width/2-10).attr("y",$r),$.attr("transform","translate("+(n-r.width/2-5)+", "+$r+")"),d&&(l.attr("transform",`translate(${-p/2-3}, ${y+10})`),$.attr("transform","translate("+(n-r.width/2-5)+", "+($r+2*y+4)+")"))):l.attr("transform","translate(-19, "+(i-12-y/2)+")")})},"drawBranches"),Sr=n(function(r,t,e,a,o){return dr.set(r,{pos:t,index:e}),t+(50+(o?40:0)+("TB"===gr||"BT"===gr?a.width/2:0))},"setBranchPosition"),Wr=n(function(r,t,e,a){if(pr(),d.debug("in gitgraph renderer",r+"\n","id:",t,e),(r=a.db).getConfig){let d=(e=r.getConfig()).rotateCommitLabel??!1;mr=r.getCommits(),a=r.getBranchesAsObjArray(),gr=r.getDirection();let m=f(`[id="${t}"]`);var{look:o,theme:n,themeVariables:i}=u(),{useGradient:i,gradientStart:s,gradientStop:c,filterColor:h}=i;i&&((i=m.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),i.append("stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)),"neo"===o&&nr.has(n??"")&&m.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",h);let l=0;a.forEach((r,t)=>{var e=yr(r.name),a=m.append("g"),o=a.insert("g").attr("class","branchLabel"),n=o.insert("g").attr("class","label branch-label");n.node()?.appendChild(e),e=e.getBBox();l=Sr(r.name,l,t,e,d),n.remove(),o.remove(),a.remove()}),Ir(m,mr,!1,e),e.showBranches&&Gr(m,a,e,t),Ar(m,mr),Ir(m,mr,!0,e),b.insertTitle(m,"gitTitleText",e.titleTopMargin??0,r.getDiagramTitle()),w(void 0,m,e.diagramPadding,e.useMaxWidth)}else d.error("getConfig method is not available on db")},"draw"),Hr={draw:Wr},qr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),_r=new Set(["redux-color","redux-dark-color"]),zr=new Set(["neo","neo-dark"]),jr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Dr=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Fr=n(r=>{var t=r.svgId;let e="";if(r.useGradient&&t)for(let a=0;a<r.THEME_COLOR_LIMIT;a++)e+=`\n .label${a} { fill: ${r.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${r.strokeWidth};}\n `;return e},"genGitGraphGradient"),Nr=n(r=>{var t,e,{theme:a,themeVariables:o}=s(),n=o.borderColorArray,i=qr.has(a);if(zr.has(a)){let e="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)0===a?e+=`\n .branch-label${a} { fill: ${r.nodeBorder};}\n .commit${a} { stroke: ${r.nodeBorder}; }\n .commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }\n .arrow${a} { stroke: ${r.nodeBorder}; }\n .commit-bullets { fill: ${r.nodeBorder}; }\n .commit-cherry-pick${a} { stroke: ${r.nodeBorder}; }\n `+Fr(r):e+=`\n .branch-label${a} { fill: ${r["gitBranchLabel"+(t=a%8)]}; }\n .commit${a} { stroke: ${r["git"+t]}; fill: ${r["git"+t]}; }\n .commit-highlight${a} { stroke: ${r["gitInv"+t]}; fill: ${r["gitInv"+t]}; }\n .arrow${a} { stroke: ${r["git"+t]}; }\n `;return e}if(_r.has(a)){let t="";for(let o=0;o<r.THEME_COLOR_LIMIT;o++)0===o?t+=`\n .branch-label${o} { fill: ${r.nodeBorder}; ${i?"font-weight:"+r.noteFontWeight:""} }\n .commit${o} { stroke: ${r.nodeBorder}; }\n .commit-highlight${o} { stroke: ${r.nodeBorder}; fill: ${r.mainBkg}; }\n .label${o} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${i?"font-weight:"+r.noteFontWeight:""} }\n .arrow${o} { stroke: ${r.nodeBorder}; }\n .commit-bullets { fill: ${r.nodeBorder}; }\n `:(e=o%n.length,t+=`\n .branch-label${o} { fill: ${r.nodeBorder}; ${i?"font-weight:"+r.noteFontWeight:""} }\n .commit${o} { stroke: ${n[e]}; fill: ${n[e]}; }\n .commit-highlight${o} { stroke: ${n[e]}; fill: ${n[e]}; }\n .label${o} { fill: ${jr.has(a)?r.mainBkg:n[e]}; stroke: ${n[e]}; stroke-width: ${r.strokeWidth}; }\n .arrow${o} { stroke: ${n[e]}; }\n `);return t}{let t="";for(let e=0;e<r.THEME_COLOR_LIMIT;e++)t+=`\n .branch-label${e} { fill: ${r.nodeBorder}; ${i?"font-weight:"+r.noteFontWeight:""} }\n .commit${e} { stroke: ${r.nodeBorder}; }\n .commit-highlight${e} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }\n .label${e} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${i?"font-weight:"+r.noteFontWeight:""}}\n .arrow${e} { stroke: ${r.nodeBorder}; }\n .commit-bullets { fill: ${r.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${r.nodeBorder}; }\n `;return t}},"genColor"),Kr=n(r=>""+Array.from({length:r.THEME_COLOR_LIMIT},(r,t)=>t).map(t=>{var e=t%8;return`\n .branch-label${t} { fill: ${r["gitBranchLabel"+e]}; }\n .commit${t} { stroke: ${r["git"+e]}; fill: ${r["git"+e]}; }\n .commit-highlight${t} { stroke: ${r["gitInv"+e]}; fill: ${r["gitInv"+e]}; }\n .label${t} { fill: ${r["git"+e]}; }\n .arrow${t} { stroke: ${r["git"+e]}; }\n `}).join("\n"),"normalTheme"),Vr=n(r=>{var t=s().theme,e=Dr.has(t);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${(e?Nr:Kr)(r)}\n\n .branch {\n stroke-width: ${r.strokeWidth};\n stroke: ${r.commitLineColor??r.lineColor};\n stroke-dasharray: ${e?"4 2":"2"};\n }\n .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${e?r.nodeBorder:r.commitLabelColor}; ${e?`font-weight:${r.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${e?"transparent":r.commitLabelBackground}; opacity: ${e?"":.5}; }\n .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}\n .tag-label-bkg { fill: ${e?r.mainBkg:r.tagLabelBackground}; stroke: ${e?r.nodeBorder:r.tagLabelBorder}; ${e?"filter:"+r.dropShadow:""} }\n .tag-hole { fill: ${r.textColor}; }\n\n .commit-merge {\n stroke: ${e?r.mainBkg:r.primaryColor};\n fill: ${e?r.mainBkg:r.primaryColor};\n }\n .commit-reverse {\n stroke: ${e?r.mainBkg:r.primaryColor};\n fill: ${e?r.mainBkg:r.primaryColor};\n stroke-width: ${e?r.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${e?r.mainBkg:r.primaryColor};\n fill: ${e?r.mainBkg:r.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${qr.has(t)?r.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`},"getStyles"),Yr={parser:er,db:Y,renderer:Hr,styles:Vr};export{Yr as diagram};