@pi-outpost/embed 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,3083 @@
1
+ import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
2
+ import { n } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
3
+ import { a as r, c as i, d as a, f as o, g as s, i as c, m as l, p as u, s as d, u as f } from "./src-DJ4x3y2O.js";
4
+ import { H as p, K as m, U as h, a as g, c as _, s as v, v as y, w as b, x, y as S } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
5
+ import { a as C, i as w, n as T, r as E, t as D } from "./linear-CVhyaVzf.js";
6
+ import { t as O } from "./init-CirqLVcp.js";
7
+ import { t as k } from "./dist-D6LMt8nW.js";
8
+ import { g as ee } from "./chunk-ICXQ74PX-CC59NQmW.js";
9
+ //#region ../node_modules/d3-array/src/max.js
10
+ function A(e, t) {
11
+ let n;
12
+ if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
13
+ else {
14
+ let r = -1;
15
+ for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
16
+ }
17
+ return n;
18
+ }
19
+ //#endregion
20
+ //#region ../node_modules/d3-array/src/min.js
21
+ function te(e, t) {
22
+ let n;
23
+ if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
24
+ else {
25
+ let r = -1;
26
+ for (let i of e) (i = t(i, ++r, e)) != null && (n > i || n === void 0 && i >= i) && (n = i);
27
+ }
28
+ return n;
29
+ }
30
+ //#endregion
31
+ //#region ../node_modules/d3-axis/src/identity.js
32
+ function ne(e) {
33
+ return e;
34
+ }
35
+ //#endregion
36
+ //#region ../node_modules/d3-axis/src/axis.js
37
+ var j = 1, re = 2, ie = 3, ae = 4, oe = 1e-6;
38
+ function se(e) {
39
+ return "translate(" + e + ",0)";
40
+ }
41
+ function ce(e) {
42
+ return "translate(0," + e + ")";
43
+ }
44
+ function le(e) {
45
+ return (t) => +e(t);
46
+ }
47
+ function ue(e, t) {
48
+ return t = Math.max(0, e.bandwidth() - t * 2) / 2, e.round() && (t = Math.round(t)), (n) => +e(n) + t;
49
+ }
50
+ function de() {
51
+ return !this.__axis;
52
+ }
53
+ function fe(e, t) {
54
+ var n = [], r = null, i = null, a = 6, o = 6, s = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : .5, l = e === j || e === ae ? -1 : 1, u = e === ae || e === re ? "x" : "y", d = e === j || e === ie ? se : ce;
55
+ function f(f) {
56
+ var p = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), m = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : ne), h = Math.max(a, 0) + s, g = t.range(), _ = +g[0] + c, v = +g[g.length - 1] + c, y = (t.bandwidth ? ue : le)(t.copy(), c), b = f.selection ? f.selection() : f, x = b.selectAll(".domain").data([null]), S = b.selectAll(".tick").data(p, t).order(), C = S.exit(), w = S.enter().append("g").attr("class", "tick"), T = S.select("line"), E = S.select("text");
57
+ x = x.merge(x.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), S = S.merge(w), T = T.merge(w.append("line").attr("stroke", "currentColor").attr(u + "2", l * a)), E = E.merge(w.append("text").attr("fill", "currentColor").attr(u, l * h).attr("dy", e === j ? "0em" : e === ie ? "0.71em" : "0.32em")), f !== b && (x = x.transition(f), S = S.transition(f), T = T.transition(f), E = E.transition(f), C = C.transition(f).attr("opacity", oe).attr("transform", function(e) {
58
+ return isFinite(e = y(e)) ? d(e + c) : this.getAttribute("transform");
59
+ }), w.attr("opacity", oe).attr("transform", function(e) {
60
+ var t = this.parentNode.__axis;
61
+ return d((t && isFinite(t = t(e)) ? t : y(e)) + c);
62
+ })), C.remove(), x.attr("d", e === ae || e === re ? o ? "M" + l * o + "," + _ + "H" + c + "V" + v + "H" + l * o : "M" + c + "," + _ + "V" + v : o ? "M" + _ + "," + l * o + "V" + c + "H" + v + "V" + l * o : "M" + _ + "," + c + "H" + v), S.attr("opacity", 1).attr("transform", function(e) {
63
+ return d(y(e) + c);
64
+ }), T.attr(u + "2", l * a), E.attr(u, l * h).text(m), b.filter(de).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === re ? "start" : e === ae ? "end" : "middle"), b.each(function() {
65
+ this.__axis = y;
66
+ });
67
+ }
68
+ return f.scale = function(e) {
69
+ return arguments.length ? (t = e, f) : t;
70
+ }, f.ticks = function() {
71
+ return n = Array.from(arguments), f;
72
+ }, f.tickArguments = function(e) {
73
+ return arguments.length ? (n = e == null ? [] : Array.from(e), f) : n.slice();
74
+ }, f.tickValues = function(e) {
75
+ return arguments.length ? (r = e == null ? null : Array.from(e), f) : r && r.slice();
76
+ }, f.tickFormat = function(e) {
77
+ return arguments.length ? (i = e, f) : i;
78
+ }, f.tickSize = function(e) {
79
+ return arguments.length ? (a = o = +e, f) : a;
80
+ }, f.tickSizeInner = function(e) {
81
+ return arguments.length ? (a = +e, f) : a;
82
+ }, f.tickSizeOuter = function(e) {
83
+ return arguments.length ? (o = +e, f) : o;
84
+ }, f.tickPadding = function(e) {
85
+ return arguments.length ? (s = +e, f) : s;
86
+ }, f.offset = function(e) {
87
+ return arguments.length ? (c = +e, f) : c;
88
+ }, f;
89
+ }
90
+ function pe(e) {
91
+ return fe(j, e);
92
+ }
93
+ function me(e) {
94
+ return fe(ie, e);
95
+ }
96
+ //#endregion
97
+ //#region ../node_modules/d3-color/src/math.js
98
+ var he = Math.PI / 180, ge = 180 / Math.PI, _e = 18, ve = .96422, ye = 1, be = .82521, xe = 4 / 29, Se = 6 / 29, Ce = 3 * Se * Se, we = Se * Se * Se;
99
+ function Te(e) {
100
+ if (e instanceof M) return new M(e.l, e.a, e.b, e.opacity);
101
+ if (e instanceof N) return Ne(e);
102
+ e instanceof i || (e = f(e));
103
+ var t = Ae(e.r), n = Ae(e.g), r = Ae(e.b), a = De((.2225045 * t + .7168786 * n + .0606169 * r) / ye), o, s;
104
+ return t === n && n === r ? o = s = a : (o = De((.4360747 * t + .3850649 * n + .1430804 * r) / ve), s = De((.0139322 * t + .0971045 * n + .7141733 * r) / be)), new M(116 * a - 16, 500 * (o - a), 200 * (a - s), e.opacity);
105
+ }
106
+ function Ee(e, t, n, r) {
107
+ return arguments.length === 1 ? Te(e) : new M(e, t, n, r ?? 1);
108
+ }
109
+ function M(e, t, n, r) {
110
+ this.l = +e, this.a = +t, this.b = +n, this.opacity = +r;
111
+ }
112
+ a(M, Ee, o(d, {
113
+ brighter(e) {
114
+ return new M(this.l + _e * (e ?? 1), this.a, this.b, this.opacity);
115
+ },
116
+ darker(e) {
117
+ return new M(this.l - _e * (e ?? 1), this.a, this.b, this.opacity);
118
+ },
119
+ rgb() {
120
+ var e = (this.l + 16) / 116, t = isNaN(this.a) ? e : e + this.a / 500, n = isNaN(this.b) ? e : e - this.b / 200;
121
+ return t = ve * Oe(t), e = ye * Oe(e), n = be * Oe(n), new i(ke(3.1338561 * t - 1.6168667 * e - .4906146 * n), ke(-.9787684 * t + 1.9161415 * e + .033454 * n), ke(.0719453 * t - .2289914 * e + 1.4052427 * n), this.opacity);
122
+ }
123
+ }));
124
+ function De(e) {
125
+ return e > we ? e ** (1 / 3) : e / Ce + xe;
126
+ }
127
+ function Oe(e) {
128
+ return e > Se ? e * e * e : Ce * (e - xe);
129
+ }
130
+ function ke(e) {
131
+ return 255 * (e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055);
132
+ }
133
+ function Ae(e) {
134
+ return (e /= 255) <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
135
+ }
136
+ function je(e) {
137
+ if (e instanceof N) return new N(e.h, e.c, e.l, e.opacity);
138
+ if (e instanceof M || (e = Te(e)), e.a === 0 && e.b === 0) return new N(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity);
139
+ var t = Math.atan2(e.b, e.a) * ge;
140
+ return new N(t < 0 ? t + 360 : t, Math.sqrt(e.a * e.a + e.b * e.b), e.l, e.opacity);
141
+ }
142
+ function Me(e, t, n, r) {
143
+ return arguments.length === 1 ? je(e) : new N(e, t, n, r ?? 1);
144
+ }
145
+ function N(e, t, n, r) {
146
+ this.h = +e, this.c = +t, this.l = +n, this.opacity = +r;
147
+ }
148
+ function Ne(e) {
149
+ if (isNaN(e.h)) return new M(e.l, 0, 0, e.opacity);
150
+ var t = e.h * he;
151
+ return new M(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
152
+ }
153
+ a(N, Me, o(d, {
154
+ brighter(e) {
155
+ return new N(this.h, this.c, this.l + _e * (e ?? 1), this.opacity);
156
+ },
157
+ darker(e) {
158
+ return new N(this.h, this.c, this.l - _e * (e ?? 1), this.opacity);
159
+ },
160
+ rgb() {
161
+ return Ne(this).rgb();
162
+ }
163
+ }));
164
+ //#endregion
165
+ //#region ../node_modules/d3-interpolate/src/hcl.js
166
+ function Pe(e) {
167
+ return function(t, n) {
168
+ var i = e((t = Me(t)).h, (n = Me(n)).h), a = r(t.c, n.c), o = r(t.l, n.l), s = r(t.opacity, n.opacity);
169
+ return function(e) {
170
+ return t.h = i(e), t.c = a(e), t.l = o(e), t.opacity = s(e), t + "";
171
+ };
172
+ };
173
+ }
174
+ var Fe = Pe(c);
175
+ //#endregion
176
+ //#region ../node_modules/d3-scale/src/nice.js
177
+ function Ie(e, t) {
178
+ e = e.slice();
179
+ var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
180
+ return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
181
+ }
182
+ //#endregion
183
+ //#region ../node_modules/d3-time/src/interval.js
184
+ var Le = /* @__PURE__ */ new Date(), Re = /* @__PURE__ */ new Date();
185
+ function P(e, t, n, r) {
186
+ function i(t) {
187
+ return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
188
+ }
189
+ return i.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), i.ceil = (n) => (e(n = /* @__PURE__ */ new Date(n - 1)), t(n, 1), e(n), n), i.round = (e) => {
190
+ let t = i(e), n = i.ceil(e);
191
+ return e - t < n - e ? t : n;
192
+ }, i.offset = (e, n) => (t(e = /* @__PURE__ */ new Date(+e), n == null ? 1 : Math.floor(n)), e), i.range = (n, r, a) => {
193
+ let o = [];
194
+ if (n = i.ceil(n), a = a == null ? 1 : Math.floor(a), !(n < r) || !(a > 0)) return o;
195
+ let s;
196
+ do
197
+ o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
198
+ while (s < n && n < r);
199
+ return o;
200
+ }, i.filter = (n) => P((t) => {
201
+ if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
202
+ }, (e, r) => {
203
+ if (e >= e) if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
204
+ else for (; --r >= 0;) for (; t(e, 1), !n(e););
205
+ }), n && (i.count = (t, r) => (Le.setTime(+t), Re.setTime(+r), e(Le), e(Re), Math.floor(n(Le, Re))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
206
+ }
207
+ //#endregion
208
+ //#region ../node_modules/d3-time/src/millisecond.js
209
+ var ze = P(() => {}, (e, t) => {
210
+ e.setTime(+e + t);
211
+ }, (e, t) => t - e);
212
+ ze.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? P((t) => {
213
+ t.setTime(Math.floor(t / e) * e);
214
+ }, (t, n) => {
215
+ t.setTime(+t + n * e);
216
+ }, (t, n) => (n - t) / e) : ze), ze.range;
217
+ //#endregion
218
+ //#region ../node_modules/d3-time/src/duration.js
219
+ var F = 1e3, I = F * 60, L = I * 60, R = L * 24, Be = R * 7, Ve = R * 30, He = R * 365, z = P((e) => {
220
+ e.setTime(e - e.getMilliseconds());
221
+ }, (e, t) => {
222
+ e.setTime(+e + t * F);
223
+ }, (e, t) => (t - e) / F, (e) => e.getUTCSeconds());
224
+ z.range;
225
+ //#endregion
226
+ //#region ../node_modules/d3-time/src/minute.js
227
+ var Ue = P((e) => {
228
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * F);
229
+ }, (e, t) => {
230
+ e.setTime(+e + t * I);
231
+ }, (e, t) => (t - e) / I, (e) => e.getMinutes());
232
+ Ue.range;
233
+ var We = P((e) => {
234
+ e.setUTCSeconds(0, 0);
235
+ }, (e, t) => {
236
+ e.setTime(+e + t * I);
237
+ }, (e, t) => (t - e) / I, (e) => e.getUTCMinutes());
238
+ We.range;
239
+ //#endregion
240
+ //#region ../node_modules/d3-time/src/hour.js
241
+ var Ge = P((e) => {
242
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * F - e.getMinutes() * I);
243
+ }, (e, t) => {
244
+ e.setTime(+e + t * L);
245
+ }, (e, t) => (t - e) / L, (e) => e.getHours());
246
+ Ge.range;
247
+ var Ke = P((e) => {
248
+ e.setUTCMinutes(0, 0, 0);
249
+ }, (e, t) => {
250
+ e.setTime(+e + t * L);
251
+ }, (e, t) => (t - e) / L, (e) => e.getUTCHours());
252
+ Ke.range;
253
+ //#endregion
254
+ //#region ../node_modules/d3-time/src/day.js
255
+ var B = P((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * I) / R, (e) => e.getDate() - 1);
256
+ B.range;
257
+ var qe = P((e) => {
258
+ e.setUTCHours(0, 0, 0, 0);
259
+ }, (e, t) => {
260
+ e.setUTCDate(e.getUTCDate() + t);
261
+ }, (e, t) => (t - e) / R, (e) => e.getUTCDate() - 1);
262
+ qe.range;
263
+ var Je = P((e) => {
264
+ e.setUTCHours(0, 0, 0, 0);
265
+ }, (e, t) => {
266
+ e.setUTCDate(e.getUTCDate() + t);
267
+ }, (e, t) => (t - e) / R, (e) => Math.floor(e / R));
268
+ Je.range;
269
+ //#endregion
270
+ //#region ../node_modules/d3-time/src/week.js
271
+ function V(e) {
272
+ return P((t) => {
273
+ t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
274
+ }, (e, t) => {
275
+ e.setDate(e.getDate() + t * 7);
276
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * I) / Be);
277
+ }
278
+ var Ye = V(0), Xe = V(1), Ze = V(2), Qe = V(3), H = V(4), $e = V(5), et = V(6);
279
+ Ye.range, Xe.range, Ze.range, Qe.range, H.range, $e.range, et.range;
280
+ function U(e) {
281
+ return P((t) => {
282
+ t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
283
+ }, (e, t) => {
284
+ e.setUTCDate(e.getUTCDate() + t * 7);
285
+ }, (e, t) => (t - e) / Be);
286
+ }
287
+ var tt = U(0), nt = U(1), rt = U(2), it = U(3), at = U(4), ot = U(5), st = U(6);
288
+ tt.range, nt.range, rt.range, it.range, at.range, ot.range, st.range;
289
+ //#endregion
290
+ //#region ../node_modules/d3-time/src/month.js
291
+ var ct = P((e) => {
292
+ e.setDate(1), e.setHours(0, 0, 0, 0);
293
+ }, (e, t) => {
294
+ e.setMonth(e.getMonth() + t);
295
+ }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
296
+ ct.range;
297
+ var lt = P((e) => {
298
+ e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
299
+ }, (e, t) => {
300
+ e.setUTCMonth(e.getUTCMonth() + t);
301
+ }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
302
+ lt.range;
303
+ //#endregion
304
+ //#region ../node_modules/d3-time/src/year.js
305
+ var W = P((e) => {
306
+ e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
307
+ }, (e, t) => {
308
+ e.setFullYear(e.getFullYear() + t);
309
+ }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
310
+ W.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : P((t) => {
311
+ t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
312
+ }, (t, n) => {
313
+ t.setFullYear(t.getFullYear() + n * e);
314
+ }), W.range;
315
+ var G = P((e) => {
316
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
317
+ }, (e, t) => {
318
+ e.setUTCFullYear(e.getUTCFullYear() + t);
319
+ }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
320
+ G.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : P((t) => {
321
+ t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
322
+ }, (t, n) => {
323
+ t.setUTCFullYear(t.getUTCFullYear() + n * e);
324
+ }), G.range;
325
+ //#endregion
326
+ //#region ../node_modules/d3-time/src/ticks.js
327
+ function ut(e, t, n, r, i, a) {
328
+ let o = [
329
+ [
330
+ z,
331
+ 1,
332
+ F
333
+ ],
334
+ [
335
+ z,
336
+ 5,
337
+ 5 * F
338
+ ],
339
+ [
340
+ z,
341
+ 15,
342
+ 15 * F
343
+ ],
344
+ [
345
+ z,
346
+ 30,
347
+ 30 * F
348
+ ],
349
+ [
350
+ a,
351
+ 1,
352
+ I
353
+ ],
354
+ [
355
+ a,
356
+ 5,
357
+ 5 * I
358
+ ],
359
+ [
360
+ a,
361
+ 15,
362
+ 15 * I
363
+ ],
364
+ [
365
+ a,
366
+ 30,
367
+ 30 * I
368
+ ],
369
+ [
370
+ i,
371
+ 1,
372
+ L
373
+ ],
374
+ [
375
+ i,
376
+ 3,
377
+ 3 * L
378
+ ],
379
+ [
380
+ i,
381
+ 6,
382
+ 6 * L
383
+ ],
384
+ [
385
+ i,
386
+ 12,
387
+ 12 * L
388
+ ],
389
+ [
390
+ r,
391
+ 1,
392
+ R
393
+ ],
394
+ [
395
+ r,
396
+ 2,
397
+ 2 * R
398
+ ],
399
+ [
400
+ n,
401
+ 1,
402
+ Be
403
+ ],
404
+ [
405
+ t,
406
+ 1,
407
+ Ve
408
+ ],
409
+ [
410
+ t,
411
+ 3,
412
+ 3 * Ve
413
+ ],
414
+ [
415
+ e,
416
+ 1,
417
+ He
418
+ ]
419
+ ];
420
+ function s(e, t, n) {
421
+ let r = t < e;
422
+ r && ([e, t] = [t, e]);
423
+ let i = n && typeof n.range == "function" ? n : c(e, t, n), a = i ? i.range(e, +t + 1) : [];
424
+ return r ? a.reverse() : a;
425
+ }
426
+ function c(t, n, r) {
427
+ let i = Math.abs(n - t) / r, a = C(([, , e]) => e).right(o, i);
428
+ if (a === o.length) return e.every(w(t / He, n / He, r));
429
+ if (a === 0) return ze.every(Math.max(w(t, n, r), 1));
430
+ let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
431
+ return s.every(c);
432
+ }
433
+ return [s, c];
434
+ }
435
+ var [dt, ft] = ut(G, lt, tt, Je, Ke, We), [pt, mt] = ut(W, ct, Ye, B, Ge, Ue);
436
+ //#endregion
437
+ //#region ../node_modules/d3-time-format/src/locale.js
438
+ function ht(e) {
439
+ if (0 <= e.y && e.y < 100) {
440
+ var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
441
+ return t.setFullYear(e.y), t;
442
+ }
443
+ return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
444
+ }
445
+ function gt(e) {
446
+ if (0 <= e.y && e.y < 100) {
447
+ var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
448
+ return t.setUTCFullYear(e.y), t;
449
+ }
450
+ return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
451
+ }
452
+ function _t(e, t, n) {
453
+ return {
454
+ y: e,
455
+ m: t,
456
+ d: n,
457
+ H: 0,
458
+ M: 0,
459
+ S: 0,
460
+ L: 0
461
+ };
462
+ }
463
+ function vt(e) {
464
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = Ct(i), u = wt(i), d = Ct(a), f = wt(a), p = Ct(o), m = wt(o), h = Ct(s), g = wt(s), _ = Ct(c), v = wt(c), y = {
465
+ a: ne,
466
+ A: j,
467
+ b: re,
468
+ B: ie,
469
+ c: null,
470
+ d: Gt,
471
+ e: Gt,
472
+ f: Xt,
473
+ g: cn,
474
+ G: un,
475
+ H: Kt,
476
+ I: qt,
477
+ j: Jt,
478
+ L: Yt,
479
+ m: Zt,
480
+ M: Qt,
481
+ p: ae,
482
+ q: oe,
483
+ Q: Nn,
484
+ s: Pn,
485
+ S: $t,
486
+ u: en,
487
+ U: tn,
488
+ V: rn,
489
+ w: an,
490
+ W: on,
491
+ x: null,
492
+ X: null,
493
+ y: sn,
494
+ Y: ln,
495
+ Z: dn,
496
+ "%": Mn
497
+ }, b = {
498
+ a: se,
499
+ A: ce,
500
+ b: le,
501
+ B: ue,
502
+ c: null,
503
+ d: fn,
504
+ e: fn,
505
+ f: _n,
506
+ g: On,
507
+ G: An,
508
+ H: pn,
509
+ I: mn,
510
+ j: hn,
511
+ L: gn,
512
+ m: vn,
513
+ M: yn,
514
+ p: de,
515
+ q: fe,
516
+ Q: Nn,
517
+ s: Pn,
518
+ S: bn,
519
+ u: xn,
520
+ U: Sn,
521
+ V: wn,
522
+ w: Tn,
523
+ W: En,
524
+ x: null,
525
+ X: null,
526
+ y: Dn,
527
+ Y: kn,
528
+ Z: jn,
529
+ "%": Mn
530
+ }, x = {
531
+ a: E,
532
+ A: D,
533
+ b: O,
534
+ B: k,
535
+ c: ee,
536
+ d: Ft,
537
+ e: Ft,
538
+ f: Vt,
539
+ g: jt,
540
+ G: At,
541
+ H: Lt,
542
+ I: Lt,
543
+ j: It,
544
+ L: Bt,
545
+ m: Pt,
546
+ M: Rt,
547
+ p: T,
548
+ q: Nt,
549
+ Q: Ut,
550
+ s: Wt,
551
+ S: zt,
552
+ u: Et,
553
+ U: Dt,
554
+ V: Ot,
555
+ w: Tt,
556
+ W: kt,
557
+ x: A,
558
+ X: te,
559
+ y: jt,
560
+ Y: At,
561
+ Z: Mt,
562
+ "%": Ht
563
+ };
564
+ y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
565
+ function S(e, t) {
566
+ return function(n) {
567
+ var r = [], i = -1, a = 0, o = e.length, s, c, l;
568
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = yt[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
569
+ return r.push(e.slice(a, i)), r.join("");
570
+ };
571
+ }
572
+ function C(e, t) {
573
+ return function(n) {
574
+ var r = _t(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
575
+ if (i != n.length) return null;
576
+ if ("Q" in r) return new Date(r.Q);
577
+ if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
578
+ if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
579
+ if (r.V < 1 || r.V > 53) return null;
580
+ "w" in r || (r.w = 1), "Z" in r ? (a = gt(_t(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? nt.ceil(a) : nt(a), a = qe.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = ht(_t(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? Xe.ceil(a) : Xe(a), a = B.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
581
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? gt(_t(r.y, 0, 1)).getUTCDay() : ht(_t(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
582
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, gt(r)) : ht(r);
583
+ };
584
+ }
585
+ function w(e, t, n, r) {
586
+ for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
587
+ if (r >= o) return -1;
588
+ if (s = t.charCodeAt(i++), s === 37) {
589
+ if (s = t.charAt(i++), c = x[s in yt ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
590
+ } else if (s != n.charCodeAt(r++)) return -1;
591
+ }
592
+ return r;
593
+ }
594
+ function T(e, t, n) {
595
+ var r = l.exec(t.slice(n));
596
+ return r ? (e.p = u.get(r[0].toLowerCase()), n + r[0].length) : -1;
597
+ }
598
+ function E(e, t, n) {
599
+ var r = p.exec(t.slice(n));
600
+ return r ? (e.w = m.get(r[0].toLowerCase()), n + r[0].length) : -1;
601
+ }
602
+ function D(e, t, n) {
603
+ var r = d.exec(t.slice(n));
604
+ return r ? (e.w = f.get(r[0].toLowerCase()), n + r[0].length) : -1;
605
+ }
606
+ function O(e, t, n) {
607
+ var r = _.exec(t.slice(n));
608
+ return r ? (e.m = v.get(r[0].toLowerCase()), n + r[0].length) : -1;
609
+ }
610
+ function k(e, t, n) {
611
+ var r = h.exec(t.slice(n));
612
+ return r ? (e.m = g.get(r[0].toLowerCase()), n + r[0].length) : -1;
613
+ }
614
+ function ee(e, n, r) {
615
+ return w(e, t, n, r);
616
+ }
617
+ function A(e, t, r) {
618
+ return w(e, n, t, r);
619
+ }
620
+ function te(e, t, n) {
621
+ return w(e, r, t, n);
622
+ }
623
+ function ne(e) {
624
+ return o[e.getDay()];
625
+ }
626
+ function j(e) {
627
+ return a[e.getDay()];
628
+ }
629
+ function re(e) {
630
+ return c[e.getMonth()];
631
+ }
632
+ function ie(e) {
633
+ return s[e.getMonth()];
634
+ }
635
+ function ae(e) {
636
+ return i[+(e.getHours() >= 12)];
637
+ }
638
+ function oe(e) {
639
+ return 1 + ~~(e.getMonth() / 3);
640
+ }
641
+ function se(e) {
642
+ return o[e.getUTCDay()];
643
+ }
644
+ function ce(e) {
645
+ return a[e.getUTCDay()];
646
+ }
647
+ function le(e) {
648
+ return c[e.getUTCMonth()];
649
+ }
650
+ function ue(e) {
651
+ return s[e.getUTCMonth()];
652
+ }
653
+ function de(e) {
654
+ return i[+(e.getUTCHours() >= 12)];
655
+ }
656
+ function fe(e) {
657
+ return 1 + ~~(e.getUTCMonth() / 3);
658
+ }
659
+ return {
660
+ format: function(e) {
661
+ var t = S(e += "", y);
662
+ return t.toString = function() {
663
+ return e;
664
+ }, t;
665
+ },
666
+ parse: function(e) {
667
+ var t = C(e += "", !1);
668
+ return t.toString = function() {
669
+ return e;
670
+ }, t;
671
+ },
672
+ utcFormat: function(e) {
673
+ var t = S(e += "", b);
674
+ return t.toString = function() {
675
+ return e;
676
+ }, t;
677
+ },
678
+ utcParse: function(e) {
679
+ var t = C(e += "", !0);
680
+ return t.toString = function() {
681
+ return e;
682
+ }, t;
683
+ }
684
+ };
685
+ }
686
+ var yt = {
687
+ "-": "",
688
+ _: " ",
689
+ 0: "0"
690
+ }, K = /^\s*\d+/, bt = /^%/, xt = /[\\^$*+?|[\]().{}]/g;
691
+ function q(e, t, n) {
692
+ var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
693
+ return r + (a < n ? Array(n - a + 1).join(t) + i : i);
694
+ }
695
+ function St(e) {
696
+ return e.replace(xt, "\\$&");
697
+ }
698
+ function Ct(e) {
699
+ return RegExp("^(?:" + e.map(St).join("|") + ")", "i");
700
+ }
701
+ function wt(e) {
702
+ return new Map(e.map((e, t) => [e.toLowerCase(), t]));
703
+ }
704
+ function Tt(e, t, n) {
705
+ var r = K.exec(t.slice(n, n + 1));
706
+ return r ? (e.w = +r[0], n + r[0].length) : -1;
707
+ }
708
+ function Et(e, t, n) {
709
+ var r = K.exec(t.slice(n, n + 1));
710
+ return r ? (e.u = +r[0], n + r[0].length) : -1;
711
+ }
712
+ function Dt(e, t, n) {
713
+ var r = K.exec(t.slice(n, n + 2));
714
+ return r ? (e.U = +r[0], n + r[0].length) : -1;
715
+ }
716
+ function Ot(e, t, n) {
717
+ var r = K.exec(t.slice(n, n + 2));
718
+ return r ? (e.V = +r[0], n + r[0].length) : -1;
719
+ }
720
+ function kt(e, t, n) {
721
+ var r = K.exec(t.slice(n, n + 2));
722
+ return r ? (e.W = +r[0], n + r[0].length) : -1;
723
+ }
724
+ function At(e, t, n) {
725
+ var r = K.exec(t.slice(n, n + 4));
726
+ return r ? (e.y = +r[0], n + r[0].length) : -1;
727
+ }
728
+ function jt(e, t, n) {
729
+ var r = K.exec(t.slice(n, n + 2));
730
+ return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
731
+ }
732
+ function Mt(e, t, n) {
733
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
734
+ return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
735
+ }
736
+ function Nt(e, t, n) {
737
+ var r = K.exec(t.slice(n, n + 1));
738
+ return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
739
+ }
740
+ function Pt(e, t, n) {
741
+ var r = K.exec(t.slice(n, n + 2));
742
+ return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
743
+ }
744
+ function Ft(e, t, n) {
745
+ var r = K.exec(t.slice(n, n + 2));
746
+ return r ? (e.d = +r[0], n + r[0].length) : -1;
747
+ }
748
+ function It(e, t, n) {
749
+ var r = K.exec(t.slice(n, n + 3));
750
+ return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
751
+ }
752
+ function Lt(e, t, n) {
753
+ var r = K.exec(t.slice(n, n + 2));
754
+ return r ? (e.H = +r[0], n + r[0].length) : -1;
755
+ }
756
+ function Rt(e, t, n) {
757
+ var r = K.exec(t.slice(n, n + 2));
758
+ return r ? (e.M = +r[0], n + r[0].length) : -1;
759
+ }
760
+ function zt(e, t, n) {
761
+ var r = K.exec(t.slice(n, n + 2));
762
+ return r ? (e.S = +r[0], n + r[0].length) : -1;
763
+ }
764
+ function Bt(e, t, n) {
765
+ var r = K.exec(t.slice(n, n + 3));
766
+ return r ? (e.L = +r[0], n + r[0].length) : -1;
767
+ }
768
+ function Vt(e, t, n) {
769
+ var r = K.exec(t.slice(n, n + 6));
770
+ return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
771
+ }
772
+ function Ht(e, t, n) {
773
+ var r = bt.exec(t.slice(n, n + 1));
774
+ return r ? n + r[0].length : -1;
775
+ }
776
+ function Ut(e, t, n) {
777
+ var r = K.exec(t.slice(n));
778
+ return r ? (e.Q = +r[0], n + r[0].length) : -1;
779
+ }
780
+ function Wt(e, t, n) {
781
+ var r = K.exec(t.slice(n));
782
+ return r ? (e.s = +r[0], n + r[0].length) : -1;
783
+ }
784
+ function Gt(e, t) {
785
+ return q(e.getDate(), t, 2);
786
+ }
787
+ function Kt(e, t) {
788
+ return q(e.getHours(), t, 2);
789
+ }
790
+ function qt(e, t) {
791
+ return q(e.getHours() % 12 || 12, t, 2);
792
+ }
793
+ function Jt(e, t) {
794
+ return q(1 + B.count(W(e), e), t, 3);
795
+ }
796
+ function Yt(e, t) {
797
+ return q(e.getMilliseconds(), t, 3);
798
+ }
799
+ function Xt(e, t) {
800
+ return Yt(e, t) + "000";
801
+ }
802
+ function Zt(e, t) {
803
+ return q(e.getMonth() + 1, t, 2);
804
+ }
805
+ function Qt(e, t) {
806
+ return q(e.getMinutes(), t, 2);
807
+ }
808
+ function $t(e, t) {
809
+ return q(e.getSeconds(), t, 2);
810
+ }
811
+ function en(e) {
812
+ var t = e.getDay();
813
+ return t === 0 ? 7 : t;
814
+ }
815
+ function tn(e, t) {
816
+ return q(Ye.count(W(e) - 1, e), t, 2);
817
+ }
818
+ function nn(e) {
819
+ var t = e.getDay();
820
+ return t >= 4 || t === 0 ? H(e) : H.ceil(e);
821
+ }
822
+ function rn(e, t) {
823
+ return e = nn(e), q(H.count(W(e), e) + (W(e).getDay() === 4), t, 2);
824
+ }
825
+ function an(e) {
826
+ return e.getDay();
827
+ }
828
+ function on(e, t) {
829
+ return q(Xe.count(W(e) - 1, e), t, 2);
830
+ }
831
+ function sn(e, t) {
832
+ return q(e.getFullYear() % 100, t, 2);
833
+ }
834
+ function cn(e, t) {
835
+ return e = nn(e), q(e.getFullYear() % 100, t, 2);
836
+ }
837
+ function ln(e, t) {
838
+ return q(e.getFullYear() % 1e4, t, 4);
839
+ }
840
+ function un(e, t) {
841
+ var n = e.getDay();
842
+ return e = n >= 4 || n === 0 ? H(e) : H.ceil(e), q(e.getFullYear() % 1e4, t, 4);
843
+ }
844
+ function dn(e) {
845
+ var t = e.getTimezoneOffset();
846
+ return (t > 0 ? "-" : (t *= -1, "+")) + q(t / 60 | 0, "0", 2) + q(t % 60, "0", 2);
847
+ }
848
+ function fn(e, t) {
849
+ return q(e.getUTCDate(), t, 2);
850
+ }
851
+ function pn(e, t) {
852
+ return q(e.getUTCHours(), t, 2);
853
+ }
854
+ function mn(e, t) {
855
+ return q(e.getUTCHours() % 12 || 12, t, 2);
856
+ }
857
+ function hn(e, t) {
858
+ return q(1 + qe.count(G(e), e), t, 3);
859
+ }
860
+ function gn(e, t) {
861
+ return q(e.getUTCMilliseconds(), t, 3);
862
+ }
863
+ function _n(e, t) {
864
+ return gn(e, t) + "000";
865
+ }
866
+ function vn(e, t) {
867
+ return q(e.getUTCMonth() + 1, t, 2);
868
+ }
869
+ function yn(e, t) {
870
+ return q(e.getUTCMinutes(), t, 2);
871
+ }
872
+ function bn(e, t) {
873
+ return q(e.getUTCSeconds(), t, 2);
874
+ }
875
+ function xn(e) {
876
+ var t = e.getUTCDay();
877
+ return t === 0 ? 7 : t;
878
+ }
879
+ function Sn(e, t) {
880
+ return q(tt.count(G(e) - 1, e), t, 2);
881
+ }
882
+ function Cn(e) {
883
+ var t = e.getUTCDay();
884
+ return t >= 4 || t === 0 ? at(e) : at.ceil(e);
885
+ }
886
+ function wn(e, t) {
887
+ return e = Cn(e), q(at.count(G(e), e) + (G(e).getUTCDay() === 4), t, 2);
888
+ }
889
+ function Tn(e) {
890
+ return e.getUTCDay();
891
+ }
892
+ function En(e, t) {
893
+ return q(nt.count(G(e) - 1, e), t, 2);
894
+ }
895
+ function Dn(e, t) {
896
+ return q(e.getUTCFullYear() % 100, t, 2);
897
+ }
898
+ function On(e, t) {
899
+ return e = Cn(e), q(e.getUTCFullYear() % 100, t, 2);
900
+ }
901
+ function kn(e, t) {
902
+ return q(e.getUTCFullYear() % 1e4, t, 4);
903
+ }
904
+ function An(e, t) {
905
+ var n = e.getUTCDay();
906
+ return e = n >= 4 || n === 0 ? at(e) : at.ceil(e), q(e.getUTCFullYear() % 1e4, t, 4);
907
+ }
908
+ function jn() {
909
+ return "+0000";
910
+ }
911
+ function Mn() {
912
+ return "%";
913
+ }
914
+ function Nn(e) {
915
+ return +e;
916
+ }
917
+ function Pn(e) {
918
+ return Math.floor(e / 1e3);
919
+ }
920
+ //#endregion
921
+ //#region ../node_modules/d3-time-format/src/defaultLocale.js
922
+ var Fn, In;
923
+ Ln({
924
+ dateTime: "%x, %X",
925
+ date: "%-m/%-d/%Y",
926
+ time: "%-I:%M:%S %p",
927
+ periods: ["AM", "PM"],
928
+ days: [
929
+ "Sunday",
930
+ "Monday",
931
+ "Tuesday",
932
+ "Wednesday",
933
+ "Thursday",
934
+ "Friday",
935
+ "Saturday"
936
+ ],
937
+ shortDays: [
938
+ "Sun",
939
+ "Mon",
940
+ "Tue",
941
+ "Wed",
942
+ "Thu",
943
+ "Fri",
944
+ "Sat"
945
+ ],
946
+ months: [
947
+ "January",
948
+ "February",
949
+ "March",
950
+ "April",
951
+ "May",
952
+ "June",
953
+ "July",
954
+ "August",
955
+ "September",
956
+ "October",
957
+ "November",
958
+ "December"
959
+ ],
960
+ shortMonths: [
961
+ "Jan",
962
+ "Feb",
963
+ "Mar",
964
+ "Apr",
965
+ "May",
966
+ "Jun",
967
+ "Jul",
968
+ "Aug",
969
+ "Sep",
970
+ "Oct",
971
+ "Nov",
972
+ "Dec"
973
+ ]
974
+ });
975
+ function Ln(e) {
976
+ return Fn = vt(e), In = Fn.format, Fn.parse, Fn.utcFormat, Fn.utcParse, Fn;
977
+ }
978
+ //#endregion
979
+ //#region ../node_modules/d3-scale/src/time.js
980
+ function Rn(e) {
981
+ return new Date(e);
982
+ }
983
+ function zn(e) {
984
+ return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
985
+ }
986
+ function Bn(e, t, n, r, i, a, o, s, c, l) {
987
+ var u = T(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
988
+ function x(e) {
989
+ return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
990
+ }
991
+ return u.invert = function(e) {
992
+ return new Date(d(e));
993
+ }, u.domain = function(e) {
994
+ return arguments.length ? f(Array.from(e, zn)) : f().map(Rn);
995
+ }, u.ticks = function(t) {
996
+ var n = f();
997
+ return e(n[0], n[n.length - 1], t ?? 10);
998
+ }, u.tickFormat = function(e, t) {
999
+ return t == null ? x : l(t);
1000
+ }, u.nice = function(e) {
1001
+ var n = f();
1002
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(Ie(n, e)) : u;
1003
+ }, u.copy = function() {
1004
+ return E(u, Bn(e, t, n, r, i, a, o, s, c, l));
1005
+ }, u;
1006
+ }
1007
+ function Vn() {
1008
+ return O.apply(Bn(pt, mt, W, ct, Ye, B, Ge, Ue, z, In).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
1009
+ }
1010
+ //#endregion
1011
+ //#region ../node_modules/dayjs/plugin/isoWeek.js
1012
+ var Hn = /* @__PURE__ */ t(((e, t) => {
1013
+ (function(n, r) {
1014
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isoWeek = r();
1015
+ })(e, (function() {
1016
+ return function(e, t, n) {
1017
+ var r = function(e) {
1018
+ return e.add(4 - e.isoWeekday(), "day");
1019
+ }, i = t.prototype;
1020
+ i.isoWeekYear = function() {
1021
+ return r(this).year();
1022
+ }, i.isoWeek = function(e) {
1023
+ if (!this.$utils().u(e)) return this.add(7 * (e - this.isoWeek()), "day");
1024
+ var t, i, a, o, s = r(this), c = (t = this.isoWeekYear(), i = this.$u, a = (i ? n.utc : n)().year(t).startOf("year"), o = 4 - a.isoWeekday(), a.isoWeekday() > 4 && (o += 7), a.add(o, "day"));
1025
+ return s.diff(c, "week") + 1;
1026
+ }, i.isoWeekday = function(e) {
1027
+ return this.$utils().u(e) ? this.day() || 7 : this.day(this.day() % 7 ? e : e - 7);
1028
+ };
1029
+ var a = i.startOf;
1030
+ i.startOf = function(e, t) {
1031
+ var n = this.$utils(), r = !!n.u(t) || t;
1032
+ return n.p(e) === "isoweek" ? r ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : a.bind(this)(e, t);
1033
+ };
1034
+ };
1035
+ }));
1036
+ })), Un = /* @__PURE__ */ t(((e, t) => {
1037
+ (function(n, r) {
1038
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
1039
+ })(e, (function() {
1040
+ var e = {
1041
+ LTS: "h:mm:ss A",
1042
+ LT: "h:mm A",
1043
+ L: "MM/DD/YYYY",
1044
+ LL: "MMMM D, YYYY",
1045
+ LLL: "MMMM D, YYYY h:mm A",
1046
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
1047
+ }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, o = {}, s = function(e) {
1048
+ return (e = +e) + (e > 68 ? 1900 : 2e3);
1049
+ }, c = function(e) {
1050
+ return function(t) {
1051
+ this[e] = +t;
1052
+ };
1053
+ }, l = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
1054
+ (this.zone ||= {}).offset = function(e) {
1055
+ if (!e || e === "Z") return 0;
1056
+ var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
1057
+ return n === 0 ? 0 : t[0] === "+" ? -n : n;
1058
+ }(e);
1059
+ }], u = function(e) {
1060
+ var t = o[e];
1061
+ return t && (t.indexOf ? t : t.s.concat(t.f));
1062
+ }, d = function(e, t) {
1063
+ var n, r = o.meridiem;
1064
+ if (r) {
1065
+ for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
1066
+ n = i > 12;
1067
+ break;
1068
+ }
1069
+ } else n = e === (t ? "pm" : "PM");
1070
+ return n;
1071
+ }, f = {
1072
+ A: [a, function(e) {
1073
+ this.afternoon = d(e, !1);
1074
+ }],
1075
+ a: [a, function(e) {
1076
+ this.afternoon = d(e, !0);
1077
+ }],
1078
+ Q: [n, function(e) {
1079
+ this.month = 3 * (e - 1) + 1;
1080
+ }],
1081
+ S: [n, function(e) {
1082
+ this.milliseconds = 100 * e;
1083
+ }],
1084
+ SS: [r, function(e) {
1085
+ this.milliseconds = 10 * e;
1086
+ }],
1087
+ SSS: [/\d{3}/, function(e) {
1088
+ this.milliseconds = +e;
1089
+ }],
1090
+ s: [i, c("seconds")],
1091
+ ss: [i, c("seconds")],
1092
+ m: [i, c("minutes")],
1093
+ mm: [i, c("minutes")],
1094
+ H: [i, c("hours")],
1095
+ h: [i, c("hours")],
1096
+ HH: [i, c("hours")],
1097
+ hh: [i, c("hours")],
1098
+ D: [i, c("day")],
1099
+ DD: [r, c("day")],
1100
+ Do: [a, function(e) {
1101
+ var t = o.ordinal, n = e.match(/\d+/);
1102
+ if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
1103
+ }],
1104
+ w: [i, c("week")],
1105
+ ww: [r, c("week")],
1106
+ M: [i, c("month")],
1107
+ MM: [r, c("month")],
1108
+ MMM: [a, function(e) {
1109
+ var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
1110
+ return e.slice(0, 3);
1111
+ }))).indexOf(e) + 1;
1112
+ if (n < 1) throw Error();
1113
+ this.month = n % 12 || n;
1114
+ }],
1115
+ MMMM: [a, function(e) {
1116
+ var t = u("months").indexOf(e) + 1;
1117
+ if (t < 1) throw Error();
1118
+ this.month = t % 12 || t;
1119
+ }],
1120
+ Y: [/[+-]?\d+/, c("year")],
1121
+ YY: [r, function(e) {
1122
+ this.year = s(e);
1123
+ }],
1124
+ YYYY: [/\d{4}/, c("year")],
1125
+ Z: l,
1126
+ ZZ: l
1127
+ };
1128
+ function p(n) {
1129
+ for (var r = n, i = o && o.formats, a = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
1130
+ var a = r && r.toUpperCase();
1131
+ return n || i[r] || e[r] || i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
1132
+ return t || n.slice(1);
1133
+ }));
1134
+ }))).match(t), s = a.length, c = 0; c < s; c += 1) {
1135
+ var l = a[c], u = f[l], d = u && u[0], p = u && u[1];
1136
+ a[c] = p ? {
1137
+ regex: d,
1138
+ parser: p
1139
+ } : l.replace(/^\[|\]$/g, "");
1140
+ }
1141
+ return function(e) {
1142
+ for (var t = {}, n = 0, r = 0; n < s; n += 1) {
1143
+ var i = a[n];
1144
+ if (typeof i == "string") r += i.length;
1145
+ else {
1146
+ var o = i.regex, c = i.parser, l = e.slice(r), u = o.exec(l)[0];
1147
+ c.call(t, u), e = e.replace(u, "");
1148
+ }
1149
+ }
1150
+ return function(e) {
1151
+ var t = e.afternoon;
1152
+ if (t !== void 0) {
1153
+ var n = e.hours;
1154
+ t ? n < 12 && (e.hours += 12) : n === 12 && (e.hours = 0), delete e.afternoon;
1155
+ }
1156
+ }(t), t;
1157
+ };
1158
+ }
1159
+ return function(e, t, n) {
1160
+ n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (s = e.parseTwoDigitYear);
1161
+ var r = t.prototype, i = r.parse;
1162
+ r.parse = function(e) {
1163
+ var t = e.date, r = e.utc, a = e.args;
1164
+ this.$u = r;
1165
+ var s = a[1];
1166
+ if (typeof s == "string") {
1167
+ var c = !0 === a[2], l = !0 === a[3], u = c || l, d = a[2];
1168
+ l && (d = a[2]), o = this.$locale(), !c && d && (o = n.Ls[d]), this.$d = function(e, t, n, r) {
1169
+ try {
1170
+ if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date((t === "X" ? 1e3 : 1) * e);
1171
+ var i = p(t)(e), a = i.year, o = i.month, s = i.day, c = i.hours, l = i.minutes, u = i.seconds, d = i.milliseconds, f = i.zone, m = i.week, h = /* @__PURE__ */ new Date(), g = s || (a || o ? 1 : h.getDate()), _ = a || h.getFullYear(), v = 0;
1172
+ a && !o || (v = o > 0 ? o - 1 : h.getMonth());
1173
+ var y, b = c || 0, x = l || 0, S = u || 0, C = d || 0;
1174
+ return f ? new Date(Date.UTC(_, v, g, b, x, S, C + 60 * f.offset * 1e3)) : n ? new Date(Date.UTC(_, v, g, b, x, S, C)) : (y = new Date(_, v, g, b, x, S, C), m && (y = r(y).week(m).toDate()), y);
1175
+ } catch {
1176
+ return /* @__PURE__ */ new Date("");
1177
+ }
1178
+ }(t, s, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(s) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
1179
+ } else if (s instanceof Array) for (var f = s.length, m = 1; m <= f; m += 1) {
1180
+ a[1] = s[m - 1];
1181
+ var h = n.apply(this, a);
1182
+ if (h.isValid()) {
1183
+ this.$d = h.$d, this.$L = h.$L, this.init();
1184
+ break;
1185
+ }
1186
+ m === f && (this.$d = /* @__PURE__ */ new Date(""));
1187
+ }
1188
+ else i.call(this, e);
1189
+ };
1190
+ };
1191
+ }));
1192
+ })), Wn = /* @__PURE__ */ t(((e, t) => {
1193
+ (function(n, r) {
1194
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_advancedFormat = r();
1195
+ })(e, (function() {
1196
+ return function(e, t) {
1197
+ var n = t.prototype, r = n.format;
1198
+ n.format = function(e) {
1199
+ var t = this, n = this.$locale();
1200
+ if (!this.isValid()) return r.bind(this)(e);
1201
+ var i = this.$utils(), a = (e || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(e) {
1202
+ switch (e) {
1203
+ case "Q": return Math.ceil((t.$M + 1) / 3);
1204
+ case "Do": return n.ordinal(t.$D);
1205
+ case "gggg": return t.weekYear();
1206
+ case "GGGG": return t.isoWeekYear();
1207
+ case "wo": return n.ordinal(t.week(), "W");
1208
+ case "w":
1209
+ case "ww": return i.s(t.week(), e === "w" ? 1 : 2, "0");
1210
+ case "W":
1211
+ case "WW": return i.s(t.isoWeek(), e === "W" ? 1 : 2, "0");
1212
+ case "k":
1213
+ case "kk": return i.s(String(t.$H === 0 ? 24 : t.$H), e === "k" ? 1 : 2, "0");
1214
+ case "X": return Math.floor(t.$d.getTime() / 1e3);
1215
+ case "x": return t.$d.getTime();
1216
+ case "z": return "[" + t.offsetName() + "]";
1217
+ case "zzz": return "[" + t.offsetName("long") + "]";
1218
+ default: return e;
1219
+ }
1220
+ }));
1221
+ return r.bind(this)(a);
1222
+ };
1223
+ };
1224
+ }));
1225
+ })), Gn = /* @__PURE__ */ t(((e, t) => {
1226
+ (function(n, r) {
1227
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_duration = r();
1228
+ })(e, (function() {
1229
+ var e, t, n = 1e3, r = 6e4, i = 36e5, a = 864e5, o = 31536e6, s = 2628e6, c = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, l = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, u = {
1230
+ years: o,
1231
+ months: s,
1232
+ days: a,
1233
+ hours: i,
1234
+ minutes: r,
1235
+ seconds: n,
1236
+ milliseconds: 1,
1237
+ weeks: 6048e5
1238
+ }, d = function(e) {
1239
+ return e instanceof v;
1240
+ }, f = function(e, t, n) {
1241
+ return new v(e, n, t.$l);
1242
+ }, p = function(e) {
1243
+ return t.p(e) + "s";
1244
+ }, m = function(e) {
1245
+ return e < 0;
1246
+ }, h = function(e) {
1247
+ return m(e) ? Math.ceil(e) : Math.floor(e);
1248
+ }, g = function(e) {
1249
+ return Math.abs(e);
1250
+ }, _ = function(e, t) {
1251
+ return e ? m(e) ? {
1252
+ negative: !0,
1253
+ format: "" + g(e) + t
1254
+ } : {
1255
+ negative: !1,
1256
+ format: "" + e + t
1257
+ } : {
1258
+ negative: !1,
1259
+ format: ""
1260
+ };
1261
+ }, v = function() {
1262
+ function m(e, t, n) {
1263
+ var r = this;
1264
+ if (this.$d = {}, this.$l = n, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), t) return f(e * u[p(t)], this);
1265
+ if (typeof e == "number") return this.$ms = e, this.parseFromMilliseconds(), this;
1266
+ if (typeof e == "object") return Object.keys(e).forEach((function(t) {
1267
+ r.$d[p(t)] = e[t];
1268
+ })), this.calMilliseconds(), this;
1269
+ if (typeof e == "string") {
1270
+ var i = e.match(c);
1271
+ if (i) {
1272
+ var a = i.slice(2).map((function(e) {
1273
+ return e == null ? 0 : Number(e);
1274
+ }));
1275
+ return this.$d.years = a[0], this.$d.months = a[1], this.$d.weeks = a[2], this.$d.days = a[3], this.$d.hours = a[4], this.$d.minutes = a[5], this.$d.seconds = a[6], this.calMilliseconds(), this;
1276
+ }
1277
+ }
1278
+ return this;
1279
+ }
1280
+ var g = m.prototype;
1281
+ return g.calMilliseconds = function() {
1282
+ var e = this;
1283
+ this.$ms = Object.keys(this.$d).reduce((function(t, n) {
1284
+ return t + (e.$d[n] || 0) * u[n];
1285
+ }), 0);
1286
+ }, g.parseFromMilliseconds = function() {
1287
+ var e = this.$ms;
1288
+ this.$d.years = h(e / o), e %= o, this.$d.months = h(e / s), e %= s, this.$d.days = h(e / a), e %= a, this.$d.hours = h(e / i), e %= i, this.$d.minutes = h(e / r), e %= r, this.$d.seconds = h(e / n), e %= n, this.$d.milliseconds = e;
1289
+ }, g.toISOString = function() {
1290
+ var e = _(this.$d.years, "Y"), t = _(this.$d.months, "M"), n = +this.$d.days || 0;
1291
+ this.$d.weeks && (n += 7 * this.$d.weeks);
1292
+ var r = _(n, "D"), i = _(this.$d.hours, "H"), a = _(this.$d.minutes, "M"), o = this.$d.seconds || 0;
1293
+ this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
1294
+ var s = _(o, "S"), c = e.negative || t.negative || r.negative || i.negative || a.negative || s.negative, l = i.format || a.format || s.format ? "T" : "", u = (c ? "-" : "") + "P" + e.format + t.format + r.format + l + i.format + a.format + s.format;
1295
+ return u === "P" || u === "-P" ? "P0D" : u;
1296
+ }, g.toJSON = function() {
1297
+ return this.toISOString();
1298
+ }, g.format = function(e) {
1299
+ var n = e || "YYYY-MM-DDTHH:mm:ss", r = {
1300
+ Y: this.$d.years,
1301
+ YY: t.s(this.$d.years, 2, "0"),
1302
+ YYYY: t.s(this.$d.years, 4, "0"),
1303
+ M: this.$d.months,
1304
+ MM: t.s(this.$d.months, 2, "0"),
1305
+ D: this.$d.days,
1306
+ DD: t.s(this.$d.days, 2, "0"),
1307
+ H: this.$d.hours,
1308
+ HH: t.s(this.$d.hours, 2, "0"),
1309
+ m: this.$d.minutes,
1310
+ mm: t.s(this.$d.minutes, 2, "0"),
1311
+ s: this.$d.seconds,
1312
+ ss: t.s(this.$d.seconds, 2, "0"),
1313
+ SSS: t.s(this.$d.milliseconds, 3, "0")
1314
+ };
1315
+ return n.replace(l, (function(e, t) {
1316
+ return t || String(r[e]);
1317
+ }));
1318
+ }, g.as = function(e) {
1319
+ return this.$ms / u[p(e)];
1320
+ }, g.get = function(e) {
1321
+ var t = this.$ms, n = p(e);
1322
+ return n === "milliseconds" ? t %= 1e3 : t = n === "weeks" ? h(t / u[n]) : this.$d[n], t || 0;
1323
+ }, g.add = function(e, t, n) {
1324
+ var r;
1325
+ return r = t ? e * u[p(t)] : d(e) ? e.$ms : f(e, this).$ms, f(this.$ms + r * (n ? -1 : 1), this);
1326
+ }, g.subtract = function(e, t) {
1327
+ return this.add(e, t, !0);
1328
+ }, g.locale = function(e) {
1329
+ var t = this.clone();
1330
+ return t.$l = e, t;
1331
+ }, g.clone = function() {
1332
+ return f(this.$ms, this);
1333
+ }, g.humanize = function(t) {
1334
+ return e().add(this.$ms, "ms").locale(this.$l).fromNow(!t);
1335
+ }, g.valueOf = function() {
1336
+ return this.asMilliseconds();
1337
+ }, g.milliseconds = function() {
1338
+ return this.get("milliseconds");
1339
+ }, g.asMilliseconds = function() {
1340
+ return this.as("milliseconds");
1341
+ }, g.seconds = function() {
1342
+ return this.get("seconds");
1343
+ }, g.asSeconds = function() {
1344
+ return this.as("seconds");
1345
+ }, g.minutes = function() {
1346
+ return this.get("minutes");
1347
+ }, g.asMinutes = function() {
1348
+ return this.as("minutes");
1349
+ }, g.hours = function() {
1350
+ return this.get("hours");
1351
+ }, g.asHours = function() {
1352
+ return this.as("hours");
1353
+ }, g.days = function() {
1354
+ return this.get("days");
1355
+ }, g.asDays = function() {
1356
+ return this.as("days");
1357
+ }, g.weeks = function() {
1358
+ return this.get("weeks");
1359
+ }, g.asWeeks = function() {
1360
+ return this.as("weeks");
1361
+ }, g.months = function() {
1362
+ return this.get("months");
1363
+ }, g.asMonths = function() {
1364
+ return this.as("months");
1365
+ }, g.years = function() {
1366
+ return this.get("years");
1367
+ }, g.asYears = function() {
1368
+ return this.as("years");
1369
+ }, m;
1370
+ }(), y = function(e, t, n) {
1371
+ return e.add(t.years() * n, "y").add(t.months() * n, "M").add(t.days() * n, "d").add(t.hours() * n, "h").add(t.minutes() * n, "m").add(t.seconds() * n, "s").add(t.milliseconds() * n, "ms");
1372
+ };
1373
+ return function(n, r, i) {
1374
+ e = i, t = i().$utils(), i.duration = function(e, t) {
1375
+ return f(e, { $l: i.locale() }, t);
1376
+ }, i.isDuration = d;
1377
+ var a = r.prototype.add, o = r.prototype.subtract;
1378
+ r.prototype.add = function(e, t) {
1379
+ return d(e) ? y(this, e, 1) : a.bind(this)(e, t);
1380
+ }, r.prototype.subtract = function(e, t) {
1381
+ return d(e) ? y(this, e, -1) : o.bind(this)(e, t);
1382
+ };
1383
+ };
1384
+ }));
1385
+ })), Kn = k(), J = /* @__PURE__ */ e(s(), 1), qn = /* @__PURE__ */ e(Hn(), 1), Jn = /* @__PURE__ */ e(Un(), 1), Yn = /* @__PURE__ */ e(Wn(), 1), Xn = /* @__PURE__ */ e(Gn(), 1), Zn = (function() {
1386
+ var e = /* @__PURE__ */ n(function(e, t, n, r) {
1387
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
1388
+ return n;
1389
+ }, "o"), t = [
1390
+ 6,
1391
+ 8,
1392
+ 10,
1393
+ 12,
1394
+ 13,
1395
+ 14,
1396
+ 15,
1397
+ 16,
1398
+ 17,
1399
+ 18,
1400
+ 20,
1401
+ 21,
1402
+ 22,
1403
+ 23,
1404
+ 24,
1405
+ 25,
1406
+ 26,
1407
+ 27,
1408
+ 28,
1409
+ 29,
1410
+ 30,
1411
+ 31,
1412
+ 33,
1413
+ 35,
1414
+ 36,
1415
+ 38,
1416
+ 40
1417
+ ], r = [1, 26], i = [1, 27], a = [1, 28], o = [1, 29], s = [1, 30], c = [1, 31], l = [1, 32], u = [1, 33], d = [1, 34], f = [1, 9], p = [1, 10], m = [1, 11], h = [1, 12], g = [1, 13], _ = [1, 14], v = [1, 15], y = [1, 16], b = [1, 19], x = [1, 20], S = [1, 21], C = [1, 22], w = [1, 23], T = [1, 25], E = [1, 35], D = {
1418
+ trace: /* @__PURE__ */ n(function() {}, "trace"),
1419
+ yy: {},
1420
+ symbols_: {
1421
+ error: 2,
1422
+ start: 3,
1423
+ gantt: 4,
1424
+ document: 5,
1425
+ EOF: 6,
1426
+ line: 7,
1427
+ SPACE: 8,
1428
+ statement: 9,
1429
+ NL: 10,
1430
+ weekday: 11,
1431
+ weekday_monday: 12,
1432
+ weekday_tuesday: 13,
1433
+ weekday_wednesday: 14,
1434
+ weekday_thursday: 15,
1435
+ weekday_friday: 16,
1436
+ weekday_saturday: 17,
1437
+ weekday_sunday: 18,
1438
+ weekend: 19,
1439
+ weekend_friday: 20,
1440
+ weekend_saturday: 21,
1441
+ dateFormat: 22,
1442
+ inclusiveEndDates: 23,
1443
+ topAxis: 24,
1444
+ axisFormat: 25,
1445
+ tickInterval: 26,
1446
+ excludes: 27,
1447
+ includes: 28,
1448
+ todayMarker: 29,
1449
+ title: 30,
1450
+ acc_title: 31,
1451
+ acc_title_value: 32,
1452
+ acc_descr: 33,
1453
+ acc_descr_value: 34,
1454
+ acc_descr_multiline_value: 35,
1455
+ section: 36,
1456
+ clickStatement: 37,
1457
+ taskTxt: 38,
1458
+ taskData: 39,
1459
+ click: 40,
1460
+ callbackname: 41,
1461
+ callbackargs: 42,
1462
+ href: 43,
1463
+ clickStatementDebug: 44,
1464
+ $accept: 0,
1465
+ $end: 1
1466
+ },
1467
+ terminals_: {
1468
+ 2: "error",
1469
+ 4: "gantt",
1470
+ 6: "EOF",
1471
+ 8: "SPACE",
1472
+ 10: "NL",
1473
+ 12: "weekday_monday",
1474
+ 13: "weekday_tuesday",
1475
+ 14: "weekday_wednesday",
1476
+ 15: "weekday_thursday",
1477
+ 16: "weekday_friday",
1478
+ 17: "weekday_saturday",
1479
+ 18: "weekday_sunday",
1480
+ 20: "weekend_friday",
1481
+ 21: "weekend_saturday",
1482
+ 22: "dateFormat",
1483
+ 23: "inclusiveEndDates",
1484
+ 24: "topAxis",
1485
+ 25: "axisFormat",
1486
+ 26: "tickInterval",
1487
+ 27: "excludes",
1488
+ 28: "includes",
1489
+ 29: "todayMarker",
1490
+ 30: "title",
1491
+ 31: "acc_title",
1492
+ 32: "acc_title_value",
1493
+ 33: "acc_descr",
1494
+ 34: "acc_descr_value",
1495
+ 35: "acc_descr_multiline_value",
1496
+ 36: "section",
1497
+ 38: "taskTxt",
1498
+ 39: "taskData",
1499
+ 40: "click",
1500
+ 41: "callbackname",
1501
+ 42: "callbackargs",
1502
+ 43: "href"
1503
+ },
1504
+ productions_: [
1505
+ 0,
1506
+ [3, 3],
1507
+ [5, 0],
1508
+ [5, 2],
1509
+ [7, 2],
1510
+ [7, 1],
1511
+ [7, 1],
1512
+ [7, 1],
1513
+ [11, 1],
1514
+ [11, 1],
1515
+ [11, 1],
1516
+ [11, 1],
1517
+ [11, 1],
1518
+ [11, 1],
1519
+ [11, 1],
1520
+ [19, 1],
1521
+ [19, 1],
1522
+ [9, 1],
1523
+ [9, 1],
1524
+ [9, 1],
1525
+ [9, 1],
1526
+ [9, 1],
1527
+ [9, 1],
1528
+ [9, 1],
1529
+ [9, 1],
1530
+ [9, 1],
1531
+ [9, 1],
1532
+ [9, 1],
1533
+ [9, 2],
1534
+ [9, 2],
1535
+ [9, 1],
1536
+ [9, 1],
1537
+ [9, 1],
1538
+ [9, 2],
1539
+ [37, 2],
1540
+ [37, 3],
1541
+ [37, 3],
1542
+ [37, 4],
1543
+ [37, 3],
1544
+ [37, 4],
1545
+ [37, 2],
1546
+ [44, 2],
1547
+ [44, 3],
1548
+ [44, 3],
1549
+ [44, 4],
1550
+ [44, 3],
1551
+ [44, 4],
1552
+ [44, 2]
1553
+ ],
1554
+ performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
1555
+ var s = a.length - 1;
1556
+ switch (i) {
1557
+ case 1: return a[s - 1];
1558
+ case 2:
1559
+ this.$ = [];
1560
+ break;
1561
+ case 3:
1562
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
1563
+ break;
1564
+ case 4:
1565
+ case 5:
1566
+ this.$ = a[s];
1567
+ break;
1568
+ case 6:
1569
+ case 7:
1570
+ this.$ = [];
1571
+ break;
1572
+ case 8:
1573
+ r.setWeekday("monday");
1574
+ break;
1575
+ case 9:
1576
+ r.setWeekday("tuesday");
1577
+ break;
1578
+ case 10:
1579
+ r.setWeekday("wednesday");
1580
+ break;
1581
+ case 11:
1582
+ r.setWeekday("thursday");
1583
+ break;
1584
+ case 12:
1585
+ r.setWeekday("friday");
1586
+ break;
1587
+ case 13:
1588
+ r.setWeekday("saturday");
1589
+ break;
1590
+ case 14:
1591
+ r.setWeekday("sunday");
1592
+ break;
1593
+ case 15:
1594
+ r.setWeekend("friday");
1595
+ break;
1596
+ case 16:
1597
+ r.setWeekend("saturday");
1598
+ break;
1599
+ case 17:
1600
+ r.setDateFormat(a[s].substr(11)), this.$ = a[s].substr(11);
1601
+ break;
1602
+ case 18:
1603
+ r.enableInclusiveEndDates(), this.$ = a[s].substr(18);
1604
+ break;
1605
+ case 19:
1606
+ r.TopAxis(), this.$ = a[s].substr(8);
1607
+ break;
1608
+ case 20:
1609
+ r.setAxisFormat(a[s].substr(11)), this.$ = a[s].substr(11);
1610
+ break;
1611
+ case 21:
1612
+ r.setTickInterval(a[s].substr(13)), this.$ = a[s].substr(13);
1613
+ break;
1614
+ case 22:
1615
+ r.setExcludes(a[s].substr(9)), this.$ = a[s].substr(9);
1616
+ break;
1617
+ case 23:
1618
+ r.setIncludes(a[s].substr(9)), this.$ = a[s].substr(9);
1619
+ break;
1620
+ case 24:
1621
+ r.setTodayMarker(a[s].substr(12)), this.$ = a[s].substr(12);
1622
+ break;
1623
+ case 27:
1624
+ r.setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
1625
+ break;
1626
+ case 28:
1627
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
1628
+ break;
1629
+ case 29:
1630
+ case 30:
1631
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
1632
+ break;
1633
+ case 31:
1634
+ r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
1635
+ break;
1636
+ case 33:
1637
+ r.addTask(a[s - 1], a[s]), this.$ = "task";
1638
+ break;
1639
+ case 34:
1640
+ this.$ = a[s - 1], r.setClickEvent(a[s - 1], a[s], null);
1641
+ break;
1642
+ case 35:
1643
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s - 1], a[s]);
1644
+ break;
1645
+ case 36:
1646
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s - 1], null), r.setLink(a[s - 2], a[s]);
1647
+ break;
1648
+ case 37:
1649
+ this.$ = a[s - 3], r.setClickEvent(a[s - 3], a[s - 2], a[s - 1]), r.setLink(a[s - 3], a[s]);
1650
+ break;
1651
+ case 38:
1652
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s], null), r.setLink(a[s - 2], a[s - 1]);
1653
+ break;
1654
+ case 39:
1655
+ this.$ = a[s - 3], r.setClickEvent(a[s - 3], a[s - 1], a[s]), r.setLink(a[s - 3], a[s - 2]);
1656
+ break;
1657
+ case 40:
1658
+ this.$ = a[s - 1], r.setLink(a[s - 1], a[s]);
1659
+ break;
1660
+ case 41:
1661
+ case 47:
1662
+ this.$ = a[s - 1] + " " + a[s];
1663
+ break;
1664
+ case 42:
1665
+ case 43:
1666
+ case 45:
1667
+ this.$ = a[s - 2] + " " + a[s - 1] + " " + a[s];
1668
+ break;
1669
+ case 44:
1670
+ case 46:
1671
+ this.$ = a[s - 3] + " " + a[s - 2] + " " + a[s - 1] + " " + a[s];
1672
+ break;
1673
+ }
1674
+ }, "anonymous"),
1675
+ table: [
1676
+ {
1677
+ 3: 1,
1678
+ 4: [1, 2]
1679
+ },
1680
+ { 1: [3] },
1681
+ e(t, [2, 2], { 5: 3 }),
1682
+ {
1683
+ 6: [1, 4],
1684
+ 7: 5,
1685
+ 8: [1, 6],
1686
+ 9: 7,
1687
+ 10: [1, 8],
1688
+ 11: 17,
1689
+ 12: r,
1690
+ 13: i,
1691
+ 14: a,
1692
+ 15: o,
1693
+ 16: s,
1694
+ 17: c,
1695
+ 18: l,
1696
+ 19: 18,
1697
+ 20: u,
1698
+ 21: d,
1699
+ 22: f,
1700
+ 23: p,
1701
+ 24: m,
1702
+ 25: h,
1703
+ 26: g,
1704
+ 27: _,
1705
+ 28: v,
1706
+ 29: y,
1707
+ 30: b,
1708
+ 31: x,
1709
+ 33: S,
1710
+ 35: C,
1711
+ 36: w,
1712
+ 37: 24,
1713
+ 38: T,
1714
+ 40: E
1715
+ },
1716
+ e(t, [2, 7], { 1: [2, 1] }),
1717
+ e(t, [2, 3]),
1718
+ {
1719
+ 9: 36,
1720
+ 11: 17,
1721
+ 12: r,
1722
+ 13: i,
1723
+ 14: a,
1724
+ 15: o,
1725
+ 16: s,
1726
+ 17: c,
1727
+ 18: l,
1728
+ 19: 18,
1729
+ 20: u,
1730
+ 21: d,
1731
+ 22: f,
1732
+ 23: p,
1733
+ 24: m,
1734
+ 25: h,
1735
+ 26: g,
1736
+ 27: _,
1737
+ 28: v,
1738
+ 29: y,
1739
+ 30: b,
1740
+ 31: x,
1741
+ 33: S,
1742
+ 35: C,
1743
+ 36: w,
1744
+ 37: 24,
1745
+ 38: T,
1746
+ 40: E
1747
+ },
1748
+ e(t, [2, 5]),
1749
+ e(t, [2, 6]),
1750
+ e(t, [2, 17]),
1751
+ e(t, [2, 18]),
1752
+ e(t, [2, 19]),
1753
+ e(t, [2, 20]),
1754
+ e(t, [2, 21]),
1755
+ e(t, [2, 22]),
1756
+ e(t, [2, 23]),
1757
+ e(t, [2, 24]),
1758
+ e(t, [2, 25]),
1759
+ e(t, [2, 26]),
1760
+ e(t, [2, 27]),
1761
+ { 32: [1, 37] },
1762
+ { 34: [1, 38] },
1763
+ e(t, [2, 30]),
1764
+ e(t, [2, 31]),
1765
+ e(t, [2, 32]),
1766
+ { 39: [1, 39] },
1767
+ e(t, [2, 8]),
1768
+ e(t, [2, 9]),
1769
+ e(t, [2, 10]),
1770
+ e(t, [2, 11]),
1771
+ e(t, [2, 12]),
1772
+ e(t, [2, 13]),
1773
+ e(t, [2, 14]),
1774
+ e(t, [2, 15]),
1775
+ e(t, [2, 16]),
1776
+ {
1777
+ 41: [1, 40],
1778
+ 43: [1, 41]
1779
+ },
1780
+ e(t, [2, 4]),
1781
+ e(t, [2, 28]),
1782
+ e(t, [2, 29]),
1783
+ e(t, [2, 33]),
1784
+ e(t, [2, 34], {
1785
+ 42: [1, 42],
1786
+ 43: [1, 43]
1787
+ }),
1788
+ e(t, [2, 40], { 41: [1, 44] }),
1789
+ e(t, [2, 35], { 43: [1, 45] }),
1790
+ e(t, [2, 36]),
1791
+ e(t, [2, 38], { 42: [1, 46] }),
1792
+ e(t, [2, 37]),
1793
+ e(t, [2, 39])
1794
+ ],
1795
+ defaultActions: {},
1796
+ parseError: /* @__PURE__ */ n(function(e, t) {
1797
+ if (t.recoverable) this.trace(e);
1798
+ else {
1799
+ var n = Error(e);
1800
+ throw n.hash = t, n;
1801
+ }
1802
+ }, "parseError"),
1803
+ parse: /* @__PURE__ */ n(function(e) {
1804
+ var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1805
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1806
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1807
+ var v = h.yylloc;
1808
+ o.push(v);
1809
+ var y = h.options && h.options.ranges;
1810
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1811
+ function b(e) {
1812
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1813
+ }
1814
+ n(b, "popStack");
1815
+ function x() {
1816
+ var e = i.pop() || h.lex() || p;
1817
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1818
+ }
1819
+ n(x, "lex");
1820
+ for (var S, C, w, T, E, D = {}, O, k, ee, A;;) {
1821
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1822
+ var te = "";
1823
+ for (O in A = [], s[w]) this.terminals_[O] && O > f && A.push("'" + this.terminals_[O] + "'");
1824
+ te = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + A.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(te, {
1825
+ text: h.match,
1826
+ token: this.terminals_[S] || S,
1827
+ line: h.yylineno,
1828
+ loc: v,
1829
+ expected: A
1830
+ });
1831
+ }
1832
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1833
+ switch (T[0]) {
1834
+ case 1:
1835
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1836
+ break;
1837
+ case 2:
1838
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1839
+ first_line: o[o.length - (k || 1)].first_line,
1840
+ last_line: o[o.length - 1].last_line,
1841
+ first_column: o[o.length - (k || 1)].first_column,
1842
+ last_column: o[o.length - 1].last_column
1843
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1844
+ c,
1845
+ u,
1846
+ l,
1847
+ g.yy,
1848
+ T[1],
1849
+ a,
1850
+ o
1851
+ ].concat(m)), E !== void 0) return E;
1852
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), ee = s[r[r.length - 2]][r[r.length - 1]], r.push(ee);
1853
+ break;
1854
+ case 3: return !0;
1855
+ }
1856
+ }
1857
+ return !0;
1858
+ }, "parse")
1859
+ };
1860
+ D.lexer = /* @__PURE__ */ (function() {
1861
+ return {
1862
+ EOF: 1,
1863
+ parseError: /* @__PURE__ */ n(function(e, t) {
1864
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1865
+ else throw Error(e);
1866
+ }, "parseError"),
1867
+ setInput: /* @__PURE__ */ n(function(e, t) {
1868
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1869
+ first_line: 1,
1870
+ first_column: 0,
1871
+ last_line: 1,
1872
+ last_column: 0
1873
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1874
+ }, "setInput"),
1875
+ input: /* @__PURE__ */ n(function() {
1876
+ var e = this._input[0];
1877
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
1878
+ }, "input"),
1879
+ unput: /* @__PURE__ */ n(function(e) {
1880
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1881
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1882
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1883
+ 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);
1884
+ var i = this.yylloc.range;
1885
+ return this.yylloc = {
1886
+ first_line: this.yylloc.first_line,
1887
+ last_line: this.yylineno + 1,
1888
+ first_column: this.yylloc.first_column,
1889
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1890
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1891
+ }, "unput"),
1892
+ more: /* @__PURE__ */ n(function() {
1893
+ return this._more = !0, this;
1894
+ }, "more"),
1895
+ reject: /* @__PURE__ */ n(function() {
1896
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1897
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1898
+ text: "",
1899
+ token: null,
1900
+ line: this.yylineno
1901
+ });
1902
+ return this;
1903
+ }, "reject"),
1904
+ less: /* @__PURE__ */ n(function(e) {
1905
+ this.unput(this.match.slice(e));
1906
+ }, "less"),
1907
+ pastInput: /* @__PURE__ */ n(function() {
1908
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1909
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1910
+ }, "pastInput"),
1911
+ upcomingInput: /* @__PURE__ */ n(function() {
1912
+ var e = this.match;
1913
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1914
+ }, "upcomingInput"),
1915
+ showPosition: /* @__PURE__ */ n(function() {
1916
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1917
+ return e + this.upcomingInput() + "\n" + t + "^";
1918
+ }, "showPosition"),
1919
+ test_match: /* @__PURE__ */ n(function(e, t) {
1920
+ var n, r, i;
1921
+ if (this.options.backtrack_lexer && (i = {
1922
+ yylineno: this.yylineno,
1923
+ yylloc: {
1924
+ first_line: this.yylloc.first_line,
1925
+ last_line: this.last_line,
1926
+ first_column: this.yylloc.first_column,
1927
+ last_column: this.yylloc.last_column
1928
+ },
1929
+ yytext: this.yytext,
1930
+ match: this.match,
1931
+ matches: this.matches,
1932
+ matched: this.matched,
1933
+ yyleng: this.yyleng,
1934
+ offset: this.offset,
1935
+ _more: this._more,
1936
+ _input: this._input,
1937
+ yy: this.yy,
1938
+ conditionStack: this.conditionStack.slice(0),
1939
+ done: this.done
1940
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1941
+ first_line: this.yylloc.last_line,
1942
+ last_line: this.yylineno + 1,
1943
+ first_column: this.yylloc.last_column,
1944
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1945
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1946
+ if (this._backtrack) {
1947
+ for (var a in i) this[a] = i[a];
1948
+ return !1;
1949
+ }
1950
+ return !1;
1951
+ }, "test_match"),
1952
+ next: /* @__PURE__ */ n(function() {
1953
+ if (this.done) return this.EOF;
1954
+ this._input || (this.done = !0);
1955
+ var e, t, n, r;
1956
+ this._more || (this.yytext = "", this.match = "");
1957
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1958
+ if (t = n, r = a, this.options.backtrack_lexer) {
1959
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1960
+ if (this._backtrack) {
1961
+ t = !1;
1962
+ continue;
1963
+ } else return !1;
1964
+ } else if (!this.options.flex) break;
1965
+ }
1966
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1967
+ text: "",
1968
+ token: null,
1969
+ line: this.yylineno
1970
+ });
1971
+ }, "next"),
1972
+ lex: /* @__PURE__ */ n(function() {
1973
+ return this.next() || this.lex();
1974
+ }, "lex"),
1975
+ begin: /* @__PURE__ */ n(function(e) {
1976
+ this.conditionStack.push(e);
1977
+ }, "begin"),
1978
+ popState: /* @__PURE__ */ n(function() {
1979
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1980
+ }, "popState"),
1981
+ _currentRules: /* @__PURE__ */ n(function() {
1982
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1983
+ }, "_currentRules"),
1984
+ topState: /* @__PURE__ */ n(function(e) {
1985
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1986
+ }, "topState"),
1987
+ pushState: /* @__PURE__ */ n(function(e) {
1988
+ this.begin(e);
1989
+ }, "pushState"),
1990
+ stateStackSize: /* @__PURE__ */ n(function() {
1991
+ return this.conditionStack.length;
1992
+ }, "stateStackSize"),
1993
+ options: { "case-insensitive": !0 },
1994
+ performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1995
+ switch (n) {
1996
+ case 0: return this.begin("open_directive"), "open_directive";
1997
+ case 1: return this.begin("acc_title"), 31;
1998
+ case 2: return this.popState(), "acc_title_value";
1999
+ case 3: return this.begin("acc_descr"), 33;
2000
+ case 4: return this.popState(), "acc_descr_value";
2001
+ case 5:
2002
+ this.begin("acc_descr_multiline");
2003
+ break;
2004
+ case 6:
2005
+ this.popState();
2006
+ break;
2007
+ case 7: return "acc_descr_multiline_value";
2008
+ case 8: break;
2009
+ case 9: break;
2010
+ case 10: break;
2011
+ case 11: return 10;
2012
+ case 12: break;
2013
+ case 13: break;
2014
+ case 14:
2015
+ this.begin("href");
2016
+ break;
2017
+ case 15:
2018
+ this.popState();
2019
+ break;
2020
+ case 16: return 43;
2021
+ case 17:
2022
+ this.begin("callbackname");
2023
+ break;
2024
+ case 18:
2025
+ this.popState();
2026
+ break;
2027
+ case 19:
2028
+ this.popState(), this.begin("callbackargs");
2029
+ break;
2030
+ case 20: return 41;
2031
+ case 21:
2032
+ this.popState();
2033
+ break;
2034
+ case 22: return 42;
2035
+ case 23:
2036
+ this.begin("click");
2037
+ break;
2038
+ case 24:
2039
+ this.popState();
2040
+ break;
2041
+ case 25: return 40;
2042
+ case 26: return 4;
2043
+ case 27: return 22;
2044
+ case 28: return 23;
2045
+ case 29: return 24;
2046
+ case 30: return 25;
2047
+ case 31: return 26;
2048
+ case 32: return 28;
2049
+ case 33: return 27;
2050
+ case 34: return 29;
2051
+ case 35: return 12;
2052
+ case 36: return 13;
2053
+ case 37: return 14;
2054
+ case 38: return 15;
2055
+ case 39: return 16;
2056
+ case 40: return 17;
2057
+ case 41: return 18;
2058
+ case 42: return 20;
2059
+ case 43: return 21;
2060
+ case 44: return "date";
2061
+ case 45: return 30;
2062
+ case 46: return "accDescription";
2063
+ case 47: return 36;
2064
+ case 48: return 38;
2065
+ case 49: return 39;
2066
+ case 50: return ":";
2067
+ case 51: return 6;
2068
+ case 52: return "INVALID";
2069
+ }
2070
+ }, "anonymous"),
2071
+ rules: [
2072
+ /^(?:%%\{)/i,
2073
+ /^(?:accTitle\s*:\s*)/i,
2074
+ /^(?:(?!\n||)*[^\n]*)/i,
2075
+ /^(?:accDescr\s*:\s*)/i,
2076
+ /^(?:(?!\n||)*[^\n]*)/i,
2077
+ /^(?:accDescr\s*\{\s*)/i,
2078
+ /^(?:[\}])/i,
2079
+ /^(?:[^\}]*)/i,
2080
+ /^(?:%%(?!\{)*[^\n]*)/i,
2081
+ /^(?:[^\}]%%*[^\n]*)/i,
2082
+ /^(?:%%*[^\n]*[\n]*)/i,
2083
+ /^(?:[\n]+)/i,
2084
+ /^(?:\s+)/i,
2085
+ /^(?:%[^\n]*)/i,
2086
+ /^(?:href[\s]+["])/i,
2087
+ /^(?:["])/i,
2088
+ /^(?:[^"]*)/i,
2089
+ /^(?:call[\s]+)/i,
2090
+ /^(?:\([\s]*\))/i,
2091
+ /^(?:\()/i,
2092
+ /^(?:[^(]*)/i,
2093
+ /^(?:\))/i,
2094
+ /^(?:[^)]*)/i,
2095
+ /^(?:click[\s]+)/i,
2096
+ /^(?:[\s\n])/i,
2097
+ /^(?:[^\s\n]*)/i,
2098
+ /^(?:gantt\b)/i,
2099
+ /^(?:dateFormat\s[^#\n;]+)/i,
2100
+ /^(?:inclusiveEndDates\b)/i,
2101
+ /^(?:topAxis\b)/i,
2102
+ /^(?:axisFormat\s[^#\n;]+)/i,
2103
+ /^(?:tickInterval\s[^#\n;]+)/i,
2104
+ /^(?:includes\s[^#\n;]+)/i,
2105
+ /^(?:excludes\s[^#\n;]+)/i,
2106
+ /^(?:todayMarker\s[^\n;]+)/i,
2107
+ /^(?:weekday\s+monday\b)/i,
2108
+ /^(?:weekday\s+tuesday\b)/i,
2109
+ /^(?:weekday\s+wednesday\b)/i,
2110
+ /^(?:weekday\s+thursday\b)/i,
2111
+ /^(?:weekday\s+friday\b)/i,
2112
+ /^(?:weekday\s+saturday\b)/i,
2113
+ /^(?:weekday\s+sunday\b)/i,
2114
+ /^(?:weekend\s+friday\b)/i,
2115
+ /^(?:weekend\s+saturday\b)/i,
2116
+ /^(?:\d\d\d\d-\d\d-\d\d\b)/i,
2117
+ /^(?:title\s[^\n]+)/i,
2118
+ /^(?:accDescription\s[^#\n;]+)/i,
2119
+ /^(?:section\s[^\n]+)/i,
2120
+ /^(?:[^:\n]+)/i,
2121
+ /^(?::[^#\n;]+)/i,
2122
+ /^(?::)/i,
2123
+ /^(?:$)/i,
2124
+ /^(?:.)/i
2125
+ ],
2126
+ conditions: {
2127
+ acc_descr_multiline: {
2128
+ rules: [6, 7],
2129
+ inclusive: !1
2130
+ },
2131
+ acc_descr: {
2132
+ rules: [4],
2133
+ inclusive: !1
2134
+ },
2135
+ acc_title: {
2136
+ rules: [2],
2137
+ inclusive: !1
2138
+ },
2139
+ callbackargs: {
2140
+ rules: [21, 22],
2141
+ inclusive: !1
2142
+ },
2143
+ callbackname: {
2144
+ rules: [
2145
+ 18,
2146
+ 19,
2147
+ 20
2148
+ ],
2149
+ inclusive: !1
2150
+ },
2151
+ href: {
2152
+ rules: [15, 16],
2153
+ inclusive: !1
2154
+ },
2155
+ click: {
2156
+ rules: [24, 25],
2157
+ inclusive: !1
2158
+ },
2159
+ INITIAL: {
2160
+ rules: [
2161
+ 0,
2162
+ 1,
2163
+ 3,
2164
+ 5,
2165
+ 8,
2166
+ 9,
2167
+ 10,
2168
+ 11,
2169
+ 12,
2170
+ 13,
2171
+ 14,
2172
+ 17,
2173
+ 23,
2174
+ 26,
2175
+ 27,
2176
+ 28,
2177
+ 29,
2178
+ 30,
2179
+ 31,
2180
+ 32,
2181
+ 33,
2182
+ 34,
2183
+ 35,
2184
+ 36,
2185
+ 37,
2186
+ 38,
2187
+ 39,
2188
+ 40,
2189
+ 41,
2190
+ 42,
2191
+ 43,
2192
+ 44,
2193
+ 45,
2194
+ 46,
2195
+ 47,
2196
+ 48,
2197
+ 49,
2198
+ 50,
2199
+ 51,
2200
+ 52
2201
+ ],
2202
+ inclusive: !0
2203
+ }
2204
+ }
2205
+ };
2206
+ })();
2207
+ function O() {
2208
+ this.yy = {};
2209
+ }
2210
+ return n(O, "Parser"), O.prototype = D, D.Parser = O, new O();
2211
+ })();
2212
+ Zn.parser = Zn;
2213
+ var Qn = Zn;
2214
+ J.default.extend(qn.default), J.default.extend(Jn.default), J.default.extend(Yn.default);
2215
+ var $n = {
2216
+ friday: 5,
2217
+ saturday: 6
2218
+ }, Y = "", er = "", tr = void 0, nr = "", rr = [], ir = [], ar = /* @__PURE__ */ new Map(), or = [], sr = [], X = "", cr = "", lr = [
2219
+ "active",
2220
+ "done",
2221
+ "crit",
2222
+ "milestone",
2223
+ "vert"
2224
+ ], ur = [], dr = "", fr = !1, pr = !1, mr = "sunday", hr = "saturday", gr = 0, _r = /* @__PURE__ */ n(function() {
2225
+ or = [], sr = [], X = "", ur = [], Zr = 0, ti = void 0, ni = void 0, Z = [], Y = "", er = "", cr = "", tr = void 0, nr = "", rr = [], ir = [], fr = !1, pr = !1, gr = 0, ar = /* @__PURE__ */ new Map(), dr = "", g(), mr = "sunday", hr = "saturday";
2226
+ }, "clear"), vr = /* @__PURE__ */ n(function(e) {
2227
+ dr = e;
2228
+ }, "setDiagramId"), yr = /* @__PURE__ */ n(function(e) {
2229
+ er = e;
2230
+ }, "setAxisFormat"), br = /* @__PURE__ */ n(function() {
2231
+ return er;
2232
+ }, "getAxisFormat"), xr = /* @__PURE__ */ n(function(e) {
2233
+ tr = e;
2234
+ }, "setTickInterval"), Sr = /* @__PURE__ */ n(function() {
2235
+ return tr;
2236
+ }, "getTickInterval"), Cr = /* @__PURE__ */ n(function(e) {
2237
+ nr = e;
2238
+ }, "setTodayMarker"), wr = /* @__PURE__ */ n(function() {
2239
+ return nr;
2240
+ }, "getTodayMarker"), Tr = /* @__PURE__ */ n(function(e) {
2241
+ Y = e;
2242
+ }, "setDateFormat"), Er = /* @__PURE__ */ n(function() {
2243
+ fr = !0;
2244
+ }, "enableInclusiveEndDates"), Dr = /* @__PURE__ */ n(function() {
2245
+ return fr;
2246
+ }, "endDatesAreInclusive"), Or = /* @__PURE__ */ n(function() {
2247
+ pr = !0;
2248
+ }, "enableTopAxis"), kr = /* @__PURE__ */ n(function() {
2249
+ return pr;
2250
+ }, "topAxisEnabled"), Ar = /* @__PURE__ */ n(function(e) {
2251
+ cr = e;
2252
+ }, "setDisplayMode"), jr = /* @__PURE__ */ n(function() {
2253
+ return cr;
2254
+ }, "getDisplayMode"), Mr = /* @__PURE__ */ n(function() {
2255
+ return Y;
2256
+ }, "getDateFormat"), Nr = /* @__PURE__ */ n((e, t) => {
2257
+ let n = t.toLowerCase().split(/[\s,]+/).filter((e) => e !== "");
2258
+ return [.../* @__PURE__ */ new Set([...e, ...n])];
2259
+ }, "mergeTokens"), Pr = /* @__PURE__ */ n(function(e) {
2260
+ rr = Nr(rr, e);
2261
+ }, "setIncludes"), Fr = /* @__PURE__ */ n(function() {
2262
+ return rr;
2263
+ }, "getIncludes"), Ir = /* @__PURE__ */ n(function(e) {
2264
+ ir = Nr(ir, e);
2265
+ }, "setExcludes"), Lr = /* @__PURE__ */ n(function() {
2266
+ return ir;
2267
+ }, "getExcludes"), Rr = /* @__PURE__ */ n(function() {
2268
+ return ar;
2269
+ }, "getLinks"), zr = /* @__PURE__ */ n(function(e) {
2270
+ X = e, or.push(e);
2271
+ }, "addSection"), Br = /* @__PURE__ */ n(function() {
2272
+ return or;
2273
+ }, "getSections"), Vr = /* @__PURE__ */ n(function() {
2274
+ let e = oi(), t = 0;
2275
+ for (; !e && t < 10;) e = oi(), t++;
2276
+ return sr = Z, sr;
2277
+ }, "getTasks"), Hr = /* @__PURE__ */ n(function(e, t, n, r) {
2278
+ let i = e.format(t.trim()), a = e.format("YYYY-MM-DD");
2279
+ return r.includes(i) || r.includes(a) ? !1 : n.includes("weekends") && (e.isoWeekday() === $n[hr] || e.isoWeekday() === $n[hr] + 1) || n.includes(e.format("dddd").toLowerCase()) ? !0 : n.includes(i) || n.includes(a);
2280
+ }, "isInvalidDate"), Ur = /* @__PURE__ */ n(function(e) {
2281
+ mr = e;
2282
+ }, "setWeekday"), Wr = /* @__PURE__ */ n(function() {
2283
+ return mr;
2284
+ }, "getWeekday"), Gr = /* @__PURE__ */ n(function(e) {
2285
+ hr = e;
2286
+ }, "setWeekend"), Kr = /* @__PURE__ */ n(function(e, t, n, r) {
2287
+ if (!n.length || e.manualEndTime) return;
2288
+ let i;
2289
+ i = e.startTime instanceof Date ? (0, J.default)(e.startTime) : (0, J.default)(e.startTime, t, !0), i = i.add(1, "d");
2290
+ let a;
2291
+ a = e.endTime instanceof Date ? (0, J.default)(e.endTime) : (0, J.default)(e.endTime, t, !0);
2292
+ let [o, s] = qr(i, a, t, n, r);
2293
+ e.endTime = o.toDate(), e.renderEndTime = s;
2294
+ }, "checkTaskDates"), qr = /* @__PURE__ */ n(function(e, t, n, r, i) {
2295
+ let a = !1, o = null, s = t.add(1e4, "d");
2296
+ for (; e <= t;) {
2297
+ if (a || (o = t.toDate()), a = Hr(e, n, r, i), a && (t = t.add(1, "d"), t > s)) throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");
2298
+ e = e.add(1, "d");
2299
+ }
2300
+ return [t, o];
2301
+ }, "fixTaskDates"), Jr = /* @__PURE__ */ n(function(e, t, r) {
2302
+ if (r = r.trim(), (/* @__PURE__ */ n((e) => {
2303
+ let t = e.trim();
2304
+ return t === "x" || t === "X";
2305
+ }, "isTimestampFormat"))(t) && /^\d+$/.test(r)) return new Date(Number(r));
2306
+ let i = /^after\s+(?<ids>[\d\w- ]+)/.exec(r);
2307
+ if (i !== null) {
2308
+ let e = null;
2309
+ for (let t of i.groups.ids.split(" ")) {
2310
+ let n = Q(t);
2311
+ n !== void 0 && (!e || n.endTime > e.endTime) && (e = n);
2312
+ }
2313
+ if (e) return e.endTime;
2314
+ let t = /* @__PURE__ */ new Date();
2315
+ return t.setHours(0, 0, 0, 0), t;
2316
+ }
2317
+ let a = (0, J.default)(r, t.trim(), !0);
2318
+ if (a.isValid()) return a.toDate();
2319
+ {
2320
+ l.debug("Invalid date:" + r), l.debug("With date format:" + t.trim());
2321
+ let e = new Date(r);
2322
+ if (e === void 0 || isNaN(e.getTime()) || e.getFullYear() < -1e4 || e.getFullYear() > 1e4) throw Error("Invalid date:" + r);
2323
+ return e;
2324
+ }
2325
+ }, "getStartDate"), Yr = /* @__PURE__ */ n(function(e) {
2326
+ let t = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());
2327
+ return t === null ? [NaN, "ms"] : [Number.parseFloat(t[1]), t[2]];
2328
+ }, "parseDuration"), Xr = /* @__PURE__ */ n(function(e, t, n, r = !1) {
2329
+ n = n.trim();
2330
+ let i = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
2331
+ if (i !== null) {
2332
+ let e = null;
2333
+ for (let t of i.groups.ids.split(" ")) {
2334
+ let n = Q(t);
2335
+ n !== void 0 && (!e || n.startTime < e.startTime) && (e = n);
2336
+ }
2337
+ if (e) return e.startTime;
2338
+ let t = /* @__PURE__ */ new Date();
2339
+ return t.setHours(0, 0, 0, 0), t;
2340
+ }
2341
+ let a = (0, J.default)(n, t.trim(), !0);
2342
+ if (a.isValid()) return r && (a = a.add(1, "d")), a.toDate();
2343
+ let o = (0, J.default)(e), [s, c] = Yr(n);
2344
+ if (!Number.isNaN(s)) {
2345
+ let e = o.add(s, c);
2346
+ e.isValid() && (o = e);
2347
+ }
2348
+ return o.toDate();
2349
+ }, "getEndDate"), Zr = 0, Qr = /* @__PURE__ */ n(function(e) {
2350
+ return e === void 0 ? (Zr += 1, "task" + Zr) : e;
2351
+ }, "parseId"), $r = /* @__PURE__ */ n(function(e, t) {
2352
+ let n;
2353
+ n = t.substr(0, 1) === ":" ? t.substr(1, t.length) : t;
2354
+ let r = n.split(","), i = {};
2355
+ fi(r, i, lr);
2356
+ for (let e = 0; e < r.length; e++) r[e] = r[e].trim();
2357
+ let a = "";
2358
+ switch (r.length) {
2359
+ case 1:
2360
+ i.id = Qr(), i.startTime = e.endTime, a = r[0];
2361
+ break;
2362
+ case 2:
2363
+ i.id = Qr(), i.startTime = Jr(void 0, Y, r[0]), a = r[1];
2364
+ break;
2365
+ case 3:
2366
+ i.id = Qr(r[0]), i.startTime = Jr(void 0, Y, r[1]), a = r[2];
2367
+ break;
2368
+ default:
2369
+ }
2370
+ return a && (i.endTime = Xr(i.startTime, Y, a, fr), i.manualEndTime = (0, J.default)(a, "YYYY-MM-DD", !0).isValid(), Kr(i, Y, ir, rr)), i;
2371
+ }, "compileData"), ei = /* @__PURE__ */ n(function(e, t) {
2372
+ let n;
2373
+ n = t.substr(0, 1) === ":" ? t.substr(1, t.length) : t;
2374
+ let r = n.split(","), i = {};
2375
+ fi(r, i, lr);
2376
+ for (let e = 0; e < r.length; e++) r[e] = r[e].trim();
2377
+ switch (r.length) {
2378
+ case 1:
2379
+ i.id = Qr(), i.startTime = {
2380
+ type: "prevTaskEnd",
2381
+ id: e
2382
+ }, i.endTime = { data: r[0] };
2383
+ break;
2384
+ case 2:
2385
+ i.id = Qr(), i.startTime = {
2386
+ type: "getStartDate",
2387
+ startData: r[0]
2388
+ }, i.endTime = { data: r[1] };
2389
+ break;
2390
+ case 3:
2391
+ i.id = Qr(r[0]), i.startTime = {
2392
+ type: "getStartDate",
2393
+ startData: r[1]
2394
+ }, i.endTime = { data: r[2] };
2395
+ break;
2396
+ default:
2397
+ }
2398
+ return i;
2399
+ }, "parseData"), ti, ni, Z = [], ri = {}, ii = /* @__PURE__ */ n(function(e, t) {
2400
+ let n = {
2401
+ section: X,
2402
+ type: X,
2403
+ processed: !1,
2404
+ manualEndTime: !1,
2405
+ renderEndTime: null,
2406
+ raw: { data: t },
2407
+ task: e,
2408
+ classes: []
2409
+ }, r = ei(ni, t);
2410
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = ni, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.vert ? n.order = -1 : (n.order = gr, gr++);
2411
+ let i = Z.push(n);
2412
+ ni = n.id, ri[n.id] = i - 1;
2413
+ }, "addTask"), Q = /* @__PURE__ */ n(function(e) {
2414
+ let t = ri[e];
2415
+ return Z[t];
2416
+ }, "findTaskById"), ai = /* @__PURE__ */ n(function(e, t) {
2417
+ let n = {
2418
+ section: X,
2419
+ type: X,
2420
+ description: e,
2421
+ task: e,
2422
+ classes: []
2423
+ }, r = $r(ti, t);
2424
+ n.startTime = r.startTime, n.endTime = r.endTime, n.id = r.id, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, ti = n, sr.push(n);
2425
+ }, "addTaskOrg"), oi = /* @__PURE__ */ n(function() {
2426
+ let e = /* @__PURE__ */ n(function(e) {
2427
+ let t = Z[e], n = "";
2428
+ switch (Z[e].raw.startTime.type) {
2429
+ case "prevTaskEnd":
2430
+ t.startTime = Q(t.prevTaskId).endTime;
2431
+ break;
2432
+ case "getStartDate":
2433
+ n = Jr(void 0, Y, Z[e].raw.startTime.startData), n && (Z[e].startTime = n);
2434
+ break;
2435
+ }
2436
+ return Z[e].startTime && (Z[e].endTime = Xr(Z[e].startTime, Y, Z[e].raw.endTime.data, fr), Z[e].endTime && (Z[e].processed = !0, Z[e].manualEndTime = (0, J.default)(Z[e].raw.endTime.data, "YYYY-MM-DD", !0).isValid(), Kr(Z[e], Y, ir, rr))), Z[e].processed;
2437
+ }, "compileTask"), t = !0;
2438
+ for (let [n, r] of Z.entries()) e(n), t &&= r.processed;
2439
+ return t;
2440
+ }, "compileTasks"), si = /* @__PURE__ */ n(function(e, t) {
2441
+ let n = t;
2442
+ x().securityLevel !== "loose" && (n = (0, Kn.sanitizeUrl)(t)), e.split(",").forEach(function(e) {
2443
+ Q(e) !== void 0 && (ui(e, () => {
2444
+ window.open(n, "_self");
2445
+ }), ar.set(e, n));
2446
+ }), ci(e, "clickable");
2447
+ }, "setLink"), ci = /* @__PURE__ */ n(function(e, t) {
2448
+ e.split(",").forEach(function(e) {
2449
+ let n = Q(e);
2450
+ n !== void 0 && n.classes.push(t);
2451
+ });
2452
+ }, "setClass"), li = /* @__PURE__ */ n(function(e, t, n) {
2453
+ if (x().securityLevel !== "loose" || t === void 0) return;
2454
+ let r = [];
2455
+ if (typeof n == "string") {
2456
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2457
+ for (let e = 0; e < r.length; e++) {
2458
+ let t = r[e].trim();
2459
+ t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), r[e] = t;
2460
+ }
2461
+ }
2462
+ r.length === 0 && r.push(e), Q(e) !== void 0 && ui(e, () => {
2463
+ ee.runFunc(t, ...r);
2464
+ });
2465
+ }, "setClickFun"), ui = /* @__PURE__ */ n(function(e, t) {
2466
+ ur.push(function() {
2467
+ let n = dr ? `${dr}-${e}` : e, r = document.querySelector(`[id="${n}"]`);
2468
+ r !== null && r.addEventListener("click", function() {
2469
+ t();
2470
+ });
2471
+ }, function() {
2472
+ let n = dr ? `${dr}-${e}` : e, r = document.querySelector(`[id="${n}-text"]`);
2473
+ r !== null && r.addEventListener("click", function() {
2474
+ t();
2475
+ });
2476
+ });
2477
+ }, "pushFun"), di = {
2478
+ getConfig: /* @__PURE__ */ n(() => x().gantt, "getConfig"),
2479
+ clear: _r,
2480
+ setDateFormat: Tr,
2481
+ getDateFormat: Mr,
2482
+ enableInclusiveEndDates: Er,
2483
+ endDatesAreInclusive: Dr,
2484
+ enableTopAxis: Or,
2485
+ topAxisEnabled: kr,
2486
+ setAxisFormat: yr,
2487
+ getAxisFormat: br,
2488
+ setTickInterval: xr,
2489
+ getTickInterval: Sr,
2490
+ setTodayMarker: Cr,
2491
+ getTodayMarker: wr,
2492
+ setAccTitle: h,
2493
+ getAccTitle: S,
2494
+ setDiagramTitle: m,
2495
+ getDiagramTitle: b,
2496
+ setDiagramId: vr,
2497
+ setDisplayMode: Ar,
2498
+ getDisplayMode: jr,
2499
+ setAccDescription: p,
2500
+ getAccDescription: y,
2501
+ addSection: zr,
2502
+ getSections: Br,
2503
+ getTasks: Vr,
2504
+ addTask: ii,
2505
+ findTaskById: Q,
2506
+ addTaskOrg: ai,
2507
+ setIncludes: Pr,
2508
+ getIncludes: Fr,
2509
+ setExcludes: Ir,
2510
+ getExcludes: Lr,
2511
+ setClickEvent: /* @__PURE__ */ n(function(e, t, n) {
2512
+ e.split(",").forEach(function(e) {
2513
+ li(e, t, n);
2514
+ }), ci(e, "clickable");
2515
+ }, "setClickEvent"),
2516
+ setLink: si,
2517
+ getLinks: Rr,
2518
+ bindFunctions: /* @__PURE__ */ n(function(e) {
2519
+ ur.forEach(function(t) {
2520
+ t(e);
2521
+ });
2522
+ }, "bindFunctions"),
2523
+ parseDuration: Yr,
2524
+ isInvalidDate: Hr,
2525
+ setWeekday: Ur,
2526
+ getWeekday: Wr,
2527
+ setWeekend: Gr
2528
+ };
2529
+ function fi(e, t, n) {
2530
+ let r = !0;
2531
+ for (; r;) r = !1, n.forEach(function(n) {
2532
+ let i = "^\\s*" + n + "\\s*$", a = new RegExp(i);
2533
+ e[0].match(a) && (t[n] = !0, e.shift(1), r = !0);
2534
+ });
2535
+ }
2536
+ n(fi, "getTaskTags"), J.default.extend(Xn.default);
2537
+ var pi = /* @__PURE__ */ n(function() {
2538
+ l.debug("Something is calling, setConf, remove the call");
2539
+ }, "setConf"), mi = {
2540
+ monday: Xe,
2541
+ tuesday: Ze,
2542
+ wednesday: Qe,
2543
+ thursday: H,
2544
+ friday: $e,
2545
+ saturday: et,
2546
+ sunday: Ye
2547
+ }, hi = /* @__PURE__ */ n((e, t) => {
2548
+ let n = [...e].map(() => -Infinity), r = [...e].sort((e, t) => e.startTime - t.startTime || e.order - t.order), i = 0;
2549
+ for (let e of r) for (let r = 0; r < n.length; r++) if (e.startTime >= n[r]) {
2550
+ n[r] = e.endTime, e.order = r + t, r > i && (i = r);
2551
+ break;
2552
+ }
2553
+ return i;
2554
+ }, "getMaxIntersections"), $, gi = 1e4, _i = {
2555
+ parser: Qn,
2556
+ db: di,
2557
+ renderer: {
2558
+ setConf: pi,
2559
+ draw: /* @__PURE__ */ n(function(e, t, r, i) {
2560
+ let a = x().gantt;
2561
+ i.db.setDiagramId(t);
2562
+ let o = x().securityLevel, s;
2563
+ o === "sandbox" && (s = u("#i" + t));
2564
+ let c = u(o === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), d = o === "sandbox" ? s.nodes()[0].contentDocument : document, f = d.getElementById(t);
2565
+ $ = f.parentElement.offsetWidth, $ === void 0 && ($ = 1200), a.useWidth !== void 0 && ($ = a.useWidth);
2566
+ let p = i.db.getTasks(), m = p.filter((e) => !e.vert), h = [];
2567
+ for (let e of m) h.push(e.type);
2568
+ h = j(h);
2569
+ let g = {}, y = 2 * a.topPadding;
2570
+ if (i.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
2571
+ let e = {};
2572
+ for (let t of m) e[t.section] === void 0 ? e[t.section] = [t] : e[t.section].push(t);
2573
+ let t = 0;
2574
+ for (let n of Object.keys(e)) {
2575
+ let r = hi(e[n], t) + 1;
2576
+ t += r, y += r * (a.barHeight + a.barGap), g[n] = r;
2577
+ }
2578
+ } else {
2579
+ y += m.length * (a.barHeight + a.barGap);
2580
+ for (let e of h) g[e] = m.filter((t) => t.type === e).length;
2581
+ }
2582
+ f.setAttribute("viewBox", "0 0 " + $ + " " + y);
2583
+ let b = c.select(`[id="${t}"]`), S = Vn().domain([te(p, function(e) {
2584
+ return e.startTime;
2585
+ }), A(p, function(e) {
2586
+ return e.endTime;
2587
+ })]).rangeRound([0, $ - a.leftPadding - a.rightPadding]);
2588
+ function C(e, t) {
2589
+ let n = e.startTime, r = t.startTime, i = 0;
2590
+ return n > r ? i = 1 : n < r && (i = -1), i;
2591
+ }
2592
+ n(C, "taskCompare"), p.sort(C), w(p, $, y), _(b, y, $, a.useMaxWidth), b.append("text").text(i.db.getDiagramTitle()).attr("x", $ / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
2593
+ function w(e, t, n) {
2594
+ let r = a.barHeight, o = r + a.barGap, s = a.topPadding, c = a.leftPadding, l = D().domain([0, h.length]).range(["#00B9FA", "#F95002"]).interpolate(Fe);
2595
+ E(o, s, c, t, n, e, i.db.getExcludes(), i.db.getIncludes()), k(c, s, t, n), T(e, o, s, c, r, l, t, n), ee(o, s, c, r, l), ne(c, s, t, n);
2596
+ }
2597
+ n(w, "makeGantt");
2598
+ function T(e, n, r, o, s, c, l) {
2599
+ e.sort((e, t) => e.vert === t.vert ? 0 : e.vert ? 1 : -1);
2600
+ let d = e.filter((e) => !e.vert), f = [...new Set(d.map((e) => e.order))].map((e) => d.find((t) => t.order === e));
2601
+ b.append("g").selectAll("rect").data(f).enter().append("rect").attr("x", 0).attr("y", function(e, t) {
2602
+ return t = e.order, t * n + r - 2;
2603
+ }).attr("width", function() {
2604
+ return l - a.rightPadding / 2;
2605
+ }).attr("height", n).attr("class", function(e) {
2606
+ for (let [t, n] of h.entries()) if (e.type === n) return "section section" + t % a.numberSectionStyles;
2607
+ return "section section0";
2608
+ }).enter();
2609
+ let p = b.append("g").selectAll("rect").data(e).enter(), m = i.db.getLinks();
2610
+ if (p.append("rect").attr("id", function(e) {
2611
+ return t + "-" + e.id;
2612
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(e) {
2613
+ return e.milestone ? S(e.startTime) + o + .5 * (S(e.endTime) - S(e.startTime)) - .5 * s : S(e.startTime) + o;
2614
+ }).attr("y", function(e, t) {
2615
+ return t = e.order, e.vert ? a.gridLineStartPadding : t * n + r;
2616
+ }).attr("width", function(e) {
2617
+ return e.milestone ? s : e.vert ? .08 * s : S(e.renderEndTime || e.endTime) - S(e.startTime);
2618
+ }).attr("height", function(e) {
2619
+ return e.vert ? d.length * (a.barHeight + a.barGap) + a.barHeight * 2 : s;
2620
+ }).attr("transform-origin", function(e, t) {
2621
+ return t = e.order, (S(e.startTime) + o + .5 * (S(e.endTime) - S(e.startTime))).toString() + "px " + (t * n + r + .5 * s).toString() + "px";
2622
+ }).attr("class", function(e) {
2623
+ let t = "";
2624
+ e.classes.length > 0 && (t = e.classes.join(" "));
2625
+ let n = 0;
2626
+ for (let [t, r] of h.entries()) e.type === r && (n = t % a.numberSectionStyles);
2627
+ let r = "";
2628
+ return e.active ? e.crit ? r += " activeCrit" : r = " active" : e.done ? r = e.crit ? " doneCrit" : " done" : e.crit && (r += " crit"), r.length === 0 && (r = " task"), e.milestone && (r = " milestone " + r), e.vert && (r = " vert " + r), r += n, r += " " + t, "task" + r;
2629
+ }), p.append("text").attr("id", function(e) {
2630
+ return t + "-" + e.id + "-text";
2631
+ }).text(function(e) {
2632
+ return e.task;
2633
+ }).attr("font-size", a.fontSize).attr("x", function(e) {
2634
+ let t = S(e.startTime), n = S(e.renderEndTime || e.endTime);
2635
+ if (e.milestone && (t += .5 * (S(e.endTime) - S(e.startTime)) - .5 * s, n = t + s), e.vert) return S(e.startTime) + o;
2636
+ let r = this.getBBox().width;
2637
+ return r > n - t ? n + r + 1.5 * a.leftPadding > l ? t + o - 5 : n + o + 5 : (n - t) / 2 + t + o;
2638
+ }).attr("y", function(e, t) {
2639
+ return e.vert ? a.gridLineStartPadding + d.length * (a.barHeight + a.barGap) + 60 : (t = e.order, t * n + a.barHeight / 2 + (a.fontSize / 2 - 2) + r);
2640
+ }).attr("text-height", s).attr("class", function(e) {
2641
+ let t = S(e.startTime), n = S(e.endTime);
2642
+ e.milestone && (n = t + s);
2643
+ let r = this.getBBox().width, i = "";
2644
+ e.classes.length > 0 && (i = e.classes.join(" "));
2645
+ let o = 0;
2646
+ for (let [t, n] of h.entries()) e.type === n && (o = t % a.numberSectionStyles);
2647
+ let c = "";
2648
+ return e.active && (c = e.crit ? "activeCritText" + o : "activeText" + o), e.done ? c = e.crit ? c + " doneCritText" + o : c + " doneText" + o : e.crit && (c = c + " critText" + o), e.milestone && (c += " milestoneText"), e.vert && (c += " vertText"), r > n - t ? n + r + 1.5 * a.leftPadding > l ? i + " taskTextOutsideLeft taskTextOutside" + o + " " + c : i + " taskTextOutsideRight taskTextOutside" + o + " " + c + " width-" + r : i + " taskText taskText" + o + " " + c + " width-" + r;
2649
+ }), x().securityLevel === "sandbox") {
2650
+ let e;
2651
+ e = u("#i" + t);
2652
+ let n = e.nodes()[0].contentDocument;
2653
+ p.filter(function(e) {
2654
+ return m.has(e.id);
2655
+ }).each(function(e) {
2656
+ var r = n.querySelector("#" + CSS.escape(t + "-" + e.id)), i = n.querySelector("#" + CSS.escape(t + "-" + e.id + "-text"));
2657
+ let a = r.parentNode;
2658
+ var o = n.createElement("a");
2659
+ o.setAttribute("xlink:href", m.get(e.id)), o.setAttribute("target", "_top"), a.appendChild(o), o.appendChild(r), o.appendChild(i);
2660
+ });
2661
+ }
2662
+ }
2663
+ n(T, "drawRects");
2664
+ function E(e, n, r, o, s, c, u, d) {
2665
+ if (u.length === 0 && d.length === 0) return;
2666
+ let f, p;
2667
+ for (let { startTime: e, endTime: t } of c) (f === void 0 || e < f) && (f = e), (p === void 0 || t > p) && (p = t);
2668
+ if (!f || !p) return;
2669
+ if ((0, J.default)(p).diff((0, J.default)(f), "year") > 5) {
2670
+ l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");
2671
+ return;
2672
+ }
2673
+ let m = i.db.getDateFormat(), h = [], g = null, _ = (0, J.default)(f);
2674
+ for (; _.valueOf() <= p;) i.db.isInvalidDate(_, m, u, d) ? g ? g.end = _ : g = {
2675
+ start: _,
2676
+ end: _
2677
+ } : g &&= (h.push(g), null), _ = _.add(1, "d");
2678
+ b.append("g").selectAll("rect").data(h).enter().append("rect").attr("id", (e) => t + "-exclude-" + e.start.format("YYYY-MM-DD")).attr("x", (e) => S(e.start.startOf("day")) + r).attr("y", a.gridLineStartPadding).attr("width", (e) => S(e.end.endOf("day")) - S(e.start.startOf("day"))).attr("height", s - n - a.gridLineStartPadding).attr("transform-origin", function(t, n) {
2679
+ return (S(t.start) + r + .5 * (S(t.end) - S(t.start))).toString() + "px " + (n * e + .5 * s).toString() + "px";
2680
+ }).attr("class", "exclude-range");
2681
+ }
2682
+ n(E, "drawExcludeDays");
2683
+ function O(e, t, n, r) {
2684
+ if (n <= 0 || e > t) return Infinity;
2685
+ let i = t - e, a = J.default.duration({ [r ?? "day"]: n }).asMilliseconds();
2686
+ return a <= 0 ? Infinity : Math.ceil(i / a);
2687
+ }
2688
+ n(O, "getEstimatedTickCount");
2689
+ function k(e, t, n, r) {
2690
+ let o = i.db.getDateFormat(), s = i.db.getAxisFormat(), c;
2691
+ c = s || (o === "D" ? "%d" : a.axisFormat ?? "%Y-%m-%d");
2692
+ let u = me(S).tickSize(-r + t + a.gridLineStartPadding).tickFormat(In(c)), d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval() || a.tickInterval);
2693
+ if (d !== null) {
2694
+ let e = parseInt(d[1], 10);
2695
+ if (isNaN(e) || e <= 0) l.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);
2696
+ else {
2697
+ let t = d[2], n = i.db.getWeekday() || a.weekday, r = S.domain(), o = r[0], s = r[1], c = O(o, s, e, t);
2698
+ if (c > gi) l.warn(`The tick interval "${e}${t}" would generate ${c} ticks, which exceeds the maximum allowed (${gi}). This may indicate an invalid date or time range. Skipping custom tick interval.`);
2699
+ else switch (t) {
2700
+ case "millisecond":
2701
+ u.ticks(ze.every(e));
2702
+ break;
2703
+ case "second":
2704
+ u.ticks(z.every(e));
2705
+ break;
2706
+ case "minute":
2707
+ u.ticks(Ue.every(e));
2708
+ break;
2709
+ case "hour":
2710
+ u.ticks(Ge.every(e));
2711
+ break;
2712
+ case "day":
2713
+ u.ticks(B.every(e));
2714
+ break;
2715
+ case "week":
2716
+ u.ticks(mi[n].every(e));
2717
+ break;
2718
+ case "month":
2719
+ u.ticks(ct.every(e));
2720
+ break;
2721
+ }
2722
+ }
2723
+ }
2724
+ if (b.append("g").attr("class", "grid").attr("transform", "translate(" + e + ", " + (r - 50) + ")").call(u).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), i.db.topAxisEnabled() || a.topAxis) {
2725
+ let n = pe(S).tickSize(-r + t + a.gridLineStartPadding).tickFormat(In(c));
2726
+ if (d !== null) {
2727
+ let e = parseInt(d[1], 10);
2728
+ if (isNaN(e) || e <= 0) l.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);
2729
+ else {
2730
+ let t = d[2], r = i.db.getWeekday() || a.weekday, o = S.domain(), s = o[0], c = o[1];
2731
+ if (O(s, c, e, t) <= gi) switch (t) {
2732
+ case "millisecond":
2733
+ n.ticks(ze.every(e));
2734
+ break;
2735
+ case "second":
2736
+ n.ticks(z.every(e));
2737
+ break;
2738
+ case "minute":
2739
+ n.ticks(Ue.every(e));
2740
+ break;
2741
+ case "hour":
2742
+ n.ticks(Ge.every(e));
2743
+ break;
2744
+ case "day":
2745
+ n.ticks(B.every(e));
2746
+ break;
2747
+ case "week":
2748
+ n.ticks(mi[r].every(e));
2749
+ break;
2750
+ case "month":
2751
+ n.ticks(ct.every(e));
2752
+ break;
2753
+ }
2754
+ }
2755
+ }
2756
+ b.append("g").attr("class", "grid").attr("transform", "translate(" + e + ", " + t + ")").call(n).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2757
+ }
2758
+ }
2759
+ n(k, "makeGrid");
2760
+ function ee(e, t) {
2761
+ let n = 0, r = Object.keys(g).map((e) => [e, g[e]]);
2762
+ b.append("g").selectAll("text").data(r).enter().append(function(e) {
2763
+ let t = e[0].split(v.lineBreakRegex), n = -(t.length - 1) / 2, r = d.createElementNS("http://www.w3.org/2000/svg", "text");
2764
+ r.setAttribute("dy", n + "em");
2765
+ for (let [e, n] of t.entries()) {
2766
+ let t = d.createElementNS("http://www.w3.org/2000/svg", "tspan");
2767
+ t.setAttribute("alignment-baseline", "central"), t.setAttribute("x", "10"), e > 0 && t.setAttribute("dy", "1em"), t.textContent = n, r.appendChild(t);
2768
+ }
2769
+ return r;
2770
+ }).attr("x", 10).attr("y", function(i, a) {
2771
+ if (a > 0) for (let o = 0; o < a; o++) return n += r[a - 1][1], i[1] * e / 2 + n * e + t;
2772
+ else return i[1] * e / 2 + t;
2773
+ }).attr("font-size", a.sectionFontSize).attr("class", function(e) {
2774
+ for (let [t, n] of h.entries()) if (e[0] === n) return "sectionTitle sectionTitle" + t % a.numberSectionStyles;
2775
+ return "sectionTitle";
2776
+ });
2777
+ }
2778
+ n(ee, "vertLabels");
2779
+ function ne(e, t, n, r) {
2780
+ let o = i.db.getTodayMarker();
2781
+ if (o === "off") return;
2782
+ let s = b.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), l = s.append("line");
2783
+ l.attr("x1", S(c) + e).attr("x2", S(c) + e).attr("y1", a.titleTopMargin).attr("y2", r - a.titleTopMargin).attr("class", "today"), o !== "" && l.attr("style", o.replace(/,/g, ";"));
2784
+ }
2785
+ n(ne, "drawToday");
2786
+ function j(e) {
2787
+ let t = {}, n = [];
2788
+ for (let r = 0, i = e.length; r < i; ++r) Object.prototype.hasOwnProperty.call(t, e[r]) || (t[e[r]] = !0, n.push(e[r]));
2789
+ return n;
2790
+ }
2791
+ n(j, "checkUnique");
2792
+ }, "draw")
2793
+ },
2794
+ styles: /* @__PURE__ */ n((e) => `
2795
+ .mermaid-main-font {
2796
+ font-family: ${e.fontFamily};
2797
+ }
2798
+
2799
+ .exclude-range {
2800
+ fill: ${e.excludeBkgColor};
2801
+ }
2802
+
2803
+ .section {
2804
+ stroke: none;
2805
+ opacity: 0.2;
2806
+ }
2807
+
2808
+ .section0 {
2809
+ fill: ${e.sectionBkgColor};
2810
+ }
2811
+
2812
+ .section2 {
2813
+ fill: ${e.sectionBkgColor2};
2814
+ }
2815
+
2816
+ .section1,
2817
+ .section3 {
2818
+ fill: ${e.altSectionBkgColor};
2819
+ opacity: 0.2;
2820
+ }
2821
+
2822
+ .sectionTitle0 {
2823
+ fill: ${e.titleColor};
2824
+ }
2825
+
2826
+ .sectionTitle1 {
2827
+ fill: ${e.titleColor};
2828
+ }
2829
+
2830
+ .sectionTitle2 {
2831
+ fill: ${e.titleColor};
2832
+ }
2833
+
2834
+ .sectionTitle3 {
2835
+ fill: ${e.titleColor};
2836
+ }
2837
+
2838
+ .sectionTitle {
2839
+ text-anchor: start;
2840
+ font-family: ${e.fontFamily};
2841
+ }
2842
+
2843
+
2844
+ /* Grid and axis */
2845
+
2846
+ .grid .tick {
2847
+ stroke: ${e.gridColor};
2848
+ opacity: 0.8;
2849
+ shape-rendering: crispEdges;
2850
+ }
2851
+
2852
+ .grid .tick text {
2853
+ font-family: ${e.fontFamily};
2854
+ fill: ${e.textColor};
2855
+ }
2856
+
2857
+ .grid path {
2858
+ stroke-width: 0;
2859
+ }
2860
+
2861
+
2862
+ /* Today line */
2863
+
2864
+ .today {
2865
+ fill: none;
2866
+ stroke: ${e.todayLineColor};
2867
+ stroke-width: 2px;
2868
+ }
2869
+
2870
+
2871
+ /* Task styling */
2872
+
2873
+ /* Default task */
2874
+
2875
+ .task {
2876
+ stroke-width: 2;
2877
+ }
2878
+
2879
+ .taskText {
2880
+ text-anchor: middle;
2881
+ font-family: ${e.fontFamily};
2882
+ }
2883
+
2884
+ .taskTextOutsideRight {
2885
+ fill: ${e.taskTextDarkColor};
2886
+ text-anchor: start;
2887
+ font-family: ${e.fontFamily};
2888
+ }
2889
+
2890
+ .taskTextOutsideLeft {
2891
+ fill: ${e.taskTextDarkColor};
2892
+ text-anchor: end;
2893
+ }
2894
+
2895
+
2896
+ /* Special case clickable */
2897
+
2898
+ .task.clickable {
2899
+ cursor: pointer;
2900
+ }
2901
+
2902
+ .taskText.clickable {
2903
+ cursor: pointer;
2904
+ fill: ${e.taskTextClickableColor} !important;
2905
+ font-weight: bold;
2906
+ }
2907
+
2908
+ .taskTextOutsideLeft.clickable {
2909
+ cursor: pointer;
2910
+ fill: ${e.taskTextClickableColor} !important;
2911
+ font-weight: bold;
2912
+ }
2913
+
2914
+ .taskTextOutsideRight.clickable {
2915
+ cursor: pointer;
2916
+ fill: ${e.taskTextClickableColor} !important;
2917
+ font-weight: bold;
2918
+ }
2919
+
2920
+
2921
+ /* Specific task settings for the sections*/
2922
+
2923
+ .taskText0,
2924
+ .taskText1,
2925
+ .taskText2,
2926
+ .taskText3 {
2927
+ fill: ${e.taskTextColor};
2928
+ }
2929
+
2930
+ .task0,
2931
+ .task1,
2932
+ .task2,
2933
+ .task3 {
2934
+ fill: ${e.taskBkgColor};
2935
+ stroke: ${e.taskBorderColor};
2936
+ }
2937
+
2938
+ .taskTextOutside0,
2939
+ .taskTextOutside2
2940
+ {
2941
+ fill: ${e.taskTextOutsideColor};
2942
+ }
2943
+
2944
+ .taskTextOutside1,
2945
+ .taskTextOutside3 {
2946
+ fill: ${e.taskTextOutsideColor};
2947
+ }
2948
+
2949
+
2950
+ /* Active task */
2951
+
2952
+ .active0,
2953
+ .active1,
2954
+ .active2,
2955
+ .active3 {
2956
+ fill: ${e.activeTaskBkgColor};
2957
+ stroke: ${e.activeTaskBorderColor};
2958
+ }
2959
+
2960
+ .activeText0,
2961
+ .activeText1,
2962
+ .activeText2,
2963
+ .activeText3 {
2964
+ fill: ${e.taskTextDarkColor} !important;
2965
+ }
2966
+
2967
+
2968
+ /* Completed task */
2969
+
2970
+ .done0,
2971
+ .done1,
2972
+ .done2,
2973
+ .done3 {
2974
+ stroke: ${e.doneTaskBorderColor};
2975
+ fill: ${e.doneTaskBkgColor};
2976
+ stroke-width: 2;
2977
+ }
2978
+
2979
+ .doneText0,
2980
+ .doneText1,
2981
+ .doneText2,
2982
+ .doneText3 {
2983
+ fill: ${e.taskTextDarkColor} !important;
2984
+ }
2985
+
2986
+ /* Done task text displayed outside the bar sits against the diagram background,
2987
+ not against the done-task bar, so it must use the outside/contrast color. */
2988
+ .doneText0.taskTextOutsideLeft,
2989
+ .doneText0.taskTextOutsideRight,
2990
+ .doneText1.taskTextOutsideLeft,
2991
+ .doneText1.taskTextOutsideRight,
2992
+ .doneText2.taskTextOutsideLeft,
2993
+ .doneText2.taskTextOutsideRight,
2994
+ .doneText3.taskTextOutsideLeft,
2995
+ .doneText3.taskTextOutsideRight {
2996
+ fill: ${e.taskTextOutsideColor} !important;
2997
+ }
2998
+
2999
+
3000
+ /* Tasks on the critical line */
3001
+
3002
+ .crit0,
3003
+ .crit1,
3004
+ .crit2,
3005
+ .crit3 {
3006
+ stroke: ${e.critBorderColor};
3007
+ fill: ${e.critBkgColor};
3008
+ stroke-width: 2;
3009
+ }
3010
+
3011
+ .activeCrit0,
3012
+ .activeCrit1,
3013
+ .activeCrit2,
3014
+ .activeCrit3 {
3015
+ stroke: ${e.critBorderColor};
3016
+ fill: ${e.activeTaskBkgColor};
3017
+ stroke-width: 2;
3018
+ }
3019
+
3020
+ .doneCrit0,
3021
+ .doneCrit1,
3022
+ .doneCrit2,
3023
+ .doneCrit3 {
3024
+ stroke: ${e.critBorderColor};
3025
+ fill: ${e.doneTaskBkgColor};
3026
+ stroke-width: 2;
3027
+ cursor: pointer;
3028
+ shape-rendering: crispEdges;
3029
+ }
3030
+
3031
+ .milestone {
3032
+ transform: rotate(45deg) scale(0.8,0.8);
3033
+ }
3034
+
3035
+ .milestoneText {
3036
+ font-style: italic;
3037
+ }
3038
+ .doneCritText0,
3039
+ .doneCritText1,
3040
+ .doneCritText2,
3041
+ .doneCritText3 {
3042
+ fill: ${e.taskTextDarkColor} !important;
3043
+ }
3044
+
3045
+ /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
3046
+ .doneCritText0.taskTextOutsideLeft,
3047
+ .doneCritText0.taskTextOutsideRight,
3048
+ .doneCritText1.taskTextOutsideLeft,
3049
+ .doneCritText1.taskTextOutsideRight,
3050
+ .doneCritText2.taskTextOutsideLeft,
3051
+ .doneCritText2.taskTextOutsideRight,
3052
+ .doneCritText3.taskTextOutsideLeft,
3053
+ .doneCritText3.taskTextOutsideRight {
3054
+ fill: ${e.taskTextOutsideColor} !important;
3055
+ }
3056
+
3057
+ .vert {
3058
+ stroke: ${e.vertLineColor};
3059
+ }
3060
+
3061
+ .vertText {
3062
+ font-size: 15px;
3063
+ text-anchor: middle;
3064
+ fill: ${e.vertLineColor} !important;
3065
+ }
3066
+
3067
+ .activeCritText0,
3068
+ .activeCritText1,
3069
+ .activeCritText2,
3070
+ .activeCritText3 {
3071
+ fill: ${e.taskTextDarkColor} !important;
3072
+ }
3073
+
3074
+ .titleText {
3075
+ text-anchor: middle;
3076
+ font-size: 18px;
3077
+ fill: ${e.titleColor || e.textColor};
3078
+ font-family: ${e.fontFamily};
3079
+ }
3080
+ `, "getStyles")
3081
+ };
3082
+ //#endregion
3083
+ export { _i as diagram };