@bkm016/basalt 0.1.6 → 0.1.8

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/README.md +3 -3
  2. package/{chunk-n981vx1t.js → chunk-0d51ggzj.js} +6 -6
  3. package/chunk-12trygzx.js +25 -0
  4. package/{chunk-s6dejhfj.js → chunk-26cz8et8.js} +1 -1
  5. package/{chunk-zxkq9m8e.js → chunk-2ek3wq4b.js} +2 -2
  6. package/chunk-2gcp3xdc.js +2 -0
  7. package/{chunk-x4874m8e.js → chunk-2ks2tnac.js} +2 -2
  8. package/{chunk-0javrjcm.js → chunk-2nrkqq45.js} +22 -22
  9. package/chunk-320174qe.js +2 -0
  10. package/{chunk-ey15ye2h.js → chunk-3hg7yn1t.js} +1 -1
  11. package/{chunk-benrzwea.js → chunk-3j2kkgsc.js} +1 -1
  12. package/{chunk-8x21n7y9.js → chunk-47vf66t6.js} +1 -1
  13. package/chunk-4n49ptbz.js +3 -0
  14. package/{chunk-7hr6zw2m.js → chunk-5gxj9560.js} +1 -1
  15. package/{chunk-g0t9c3gv.js → chunk-6vnjg5x9.js} +1 -1
  16. package/{chunk-dnx91jrd.js → chunk-7kjr9gdx.js} +2 -2
  17. package/{chunk-y8dkfpmj.js → chunk-7p6e2f5s.js} +3 -3
  18. package/{chunk-053vb71h.js → chunk-86xhmz7k.js} +1 -1
  19. package/{chunk-ebpyvs1d.js → chunk-91r5nvth.js} +2 -2
  20. package/{chunk-c7rcw9fb.js → chunk-adys4qq4.js} +4 -4
  21. package/{chunk-npez1492.js → chunk-ckjw3b61.js} +2 -2
  22. package/{chunk-f156y565.js → chunk-d37gemt2.js} +3 -3
  23. package/{chunk-j7yvh0ae.js → chunk-dcwdmpw2.js} +1 -1
  24. package/chunk-dvb5nd2x.js +2 -0
  25. package/{chunk-063vbmtp.js → chunk-e6c2mzxc.js} +2 -2
  26. package/{chunk-s7skpgm2.js → chunk-ef9yhnk3.js} +1 -1
  27. package/{chunk-ecf896fz.js → chunk-fpxc6qjr.js} +2 -2
  28. package/chunk-frt9k18g.js +480 -0
  29. package/{chunk-bdy4jksd.js → chunk-fzcmzbsq.js} +1 -1
  30. package/{chunk-q9dd6fhj.js → chunk-g3ed130w.js} +3 -3
  31. package/{chunk-d48bfd2e.js → chunk-h1kb8b49.js} +2 -2
  32. package/{chunk-arcqjt91.js → chunk-hd3x1w46.js} +1 -1
  33. package/{chunk-dpz4hwqb.js → chunk-j781n7ca.js} +2 -2
  34. package/{chunk-z02sj1je.js → chunk-jp5afrwm.js} +2 -2
  35. package/{chunk-r8vvcp6c.js → chunk-jyv9cae6.js} +1 -1
  36. package/{chunk-whj87h4r.js → chunk-k3q5jqjj.js} +3 -3
  37. package/{chunk-75434aay.js → chunk-k3rmjrf1.js} +1 -1
  38. package/{chunk-peja51xv.js → chunk-kgkrccr1.js} +2 -2
  39. package/{chunk-pg5nkf1y.js → chunk-kpvaqb7c.js} +2 -2
  40. package/{chunk-hksqjts3.js → chunk-ky55taar.js} +332 -289
  41. package/{chunk-10p3mb40.js → chunk-mr807v9n.js} +1 -1
  42. package/chunk-n015c8nx.js +2 -0
  43. package/chunk-ndt6rjt9.js +2 -0
  44. package/{chunk-gv7wqkey.js → chunk-nmtk9xra.js} +2 -2
  45. package/{chunk-d6p2hgxh.js → chunk-pehyqj8k.js} +1 -1
  46. package/{chunk-ca982n62.js → chunk-pkpj7s2k.js} +1 -1
  47. package/{chunk-fx7f4m3c.js → chunk-pn413hjw.js} +1 -1
  48. package/{chunk-6ptv4g5e.js → chunk-ppxv5q7y.js} +3 -3
  49. package/{chunk-8wj32837.js → chunk-qmdpgbg3.js} +1 -1
  50. package/{chunk-8wv5t0w6.js → chunk-rnt1ckk9.js} +6 -6
  51. package/{chunk-prgm07j4.js → chunk-t40fag3z.js} +2 -2
  52. package/{chunk-w67dvqtb.js → chunk-t66jqz12.js} +2 -2
  53. package/{chunk-39vwrg8n.js → chunk-v2srrqcv.js} +2 -2
  54. package/{chunk-n85qs7cs.js → chunk-x496kg3v.js} +1 -1
  55. package/{chunk-6kdgk70p.js → chunk-xjw78yey.js} +4 -4
  56. package/chunk-xy2bxwq8.js +2 -0
  57. package/{chunk-y69ewdn2.js → chunk-ypqjfv3a.js} +2 -2
  58. package/{chunk-f544p9rh.js → chunk-yyy2yp6f.js} +10 -10
  59. package/{chunk-8gw5bvh3.js → chunk-yzevjkms.js} +5 -5
  60. package/chunk-z3ch1wg6.js +16 -0
  61. package/chunk-zdyd8hbn.js +2 -0
  62. package/compiled.js +6 -6
  63. package/package.json +1 -1
  64. package/ui-test-worker.js +19 -19
  65. package/web/{chunk-rf9dt6bg.js → chunk-0j9a7811.js} +6 -6
  66. package/web/chunk-0jfda4jw.js +2 -0
  67. package/web/{chunk-z1geewdf.js → chunk-0zwc2rvh.js} +2 -2
  68. package/web/{chunk-ht1dzftc.js → chunk-1gx0zpmp.js} +7 -7
  69. package/web/{chunk-0gg00f86.js → chunk-1s8zg6fb.js} +51 -51
  70. package/web/chunk-2axwda8c.js +89 -0
  71. package/web/chunk-2p3fkhy8.js +1 -0
  72. package/web/{chunk-xvcfp1zh.js → chunk-33w36n91.js} +2 -2
  73. package/web/{chunk-5v44qv67.js → chunk-3q0v8w45.js} +81 -81
  74. package/web/chunk-3sz5qcwj.js +1 -0
  75. package/web/chunk-433c80pc.js +1 -0
  76. package/web/chunk-48cnmhvd.js +106 -0
  77. package/web/{chunk-da7m1kva.js → chunk-4anjs6yp.js} +2 -2
  78. package/web/chunk-5r37rwq1.js +4 -0
  79. package/web/{chunk-g81h1e6n.js → chunk-6e38yf3a.js} +23 -23
  80. package/web/{chunk-zp3qrrkb.js → chunk-7a4xk6j9.js} +72 -72
  81. package/web/chunk-7f1t7z72.js +2 -0
  82. package/web/chunk-7qq1ypvj.js +1 -0
  83. package/web/{chunk-h6k1x096.js → chunk-7tkgbbf9.js} +2 -2
  84. package/web/chunk-7x35g67d.js +78 -0
  85. package/web/{chunk-n1jpg57t.js → chunk-823b7866.js} +15 -15
  86. package/web/chunk-85gdsmt4.js +1 -0
  87. package/web/{chunk-gyp6v7jd.js → chunk-8773nwdc.js} +2 -2
  88. package/web/{chunk-cktmyc13.js → chunk-8dp7h6w8.js} +24 -24
  89. package/web/{chunk-czq1yz51.js → chunk-8nv7q5ac.js} +9 -9
  90. package/web/chunk-8pzg8qw4.js +1 -0
  91. package/web/chunk-8wg44w91.js +2 -0
  92. package/web/chunk-9p5dfvav.js +1 -0
  93. package/web/chunk-9q9w9pay.js +1 -0
  94. package/web/chunk-a3teqvz2.js +39 -0
  95. package/web/chunk-bd8ftfxn.js +3 -0
  96. package/web/chunk-c03bt2pz.js +1 -0
  97. package/web/chunk-c1ha2xg6.js +8 -0
  98. package/web/chunk-cez1k71m.js +1 -0
  99. package/web/chunk-cgng31df.js +1 -0
  100. package/web/chunk-cn0tmwjs.js +2 -0
  101. package/web/{chunk-jve1zc80.js → chunk-cn1xpg3q.js} +2 -2
  102. package/web/chunk-cvd4f51j.js +1 -0
  103. package/web/chunk-cybvxssy.js +1 -0
  104. package/web/{chunk-a7gtb4kg.js → chunk-cyjnert7.js} +19 -19
  105. package/web/{chunk-twdy2f67.js → chunk-d0m0h0eb.js} +1 -1
  106. package/web/{chunk-hy4m34qp.js → chunk-dgwkqcz6.js} +37 -37
  107. package/web/{chunk-kyawkpv2.js → chunk-dtg5yhhs.js} +1 -1
  108. package/web/chunk-dynajx8x.js +2 -0
  109. package/web/{chunk-t851gdjh.js → chunk-et8q775x.js} +4 -4
  110. package/web/chunk-f3vv7n52.js +1 -0
  111. package/web/{chunk-3de552rg.js → chunk-f93pe4kb.js} +15 -15
  112. package/web/{chunk-5nda24gv.js → chunk-fe31sv6t.js} +1 -1
  113. package/web/chunk-fpa81dv7.js +62 -0
  114. package/web/{chunk-nyn9tghz.js → chunk-fx4mackk.js} +9 -9
  115. package/web/chunk-g17n6asp.js +1 -0
  116. package/web/chunk-g9dzaw9e.js +30 -0
  117. package/web/chunk-gcwhx3av.js +1139 -0
  118. package/web/chunk-gf8vm6b5.js +1 -0
  119. package/web/chunk-gnmeyy4h.js +1 -0
  120. package/web/chunk-h5cfg3vv.js +2 -0
  121. package/web/{chunk-d6tbw8br.js → chunk-hbkasy6c.js} +46 -46
  122. package/web/chunk-hn7mhsbg.js +1 -0
  123. package/web/{chunk-12xxh71x.js → chunk-hstbgb83.js} +26 -26
  124. package/web/chunk-jjjtv2r1.js +2 -0
  125. package/web/chunk-jzte2phh.js +2 -0
  126. package/web/chunk-k8h8zx6r.js +24 -0
  127. package/web/chunk-m3ajw575.js +1 -0
  128. package/web/chunk-m5y2d4zv.js +1 -0
  129. package/web/chunk-mbwwj216.js +1 -0
  130. package/web/chunk-mf6xng5b.js +2 -0
  131. package/web/chunk-nky3bqfg.js +1 -0
  132. package/web/chunk-np33kmn4.js +1 -0
  133. package/web/chunk-nvk8mazs.js +1 -0
  134. package/web/chunk-nyw5ewgv.js +1 -0
  135. package/web/{chunk-dwajwrpk.js → chunk-p0cjvjdx.js} +1 -1
  136. package/web/chunk-p56dcqpr.js +1 -0
  137. package/web/chunk-pdn4r8x4.js +1 -0
  138. package/web/chunk-q1xxs319.js +41 -0
  139. package/web/chunk-qpt34d8d.js +1 -0
  140. package/web/{chunk-96v2avmw.js → chunk-qq2v8h6d.js} +7 -7
  141. package/web/chunk-qskt3tqa.js +1 -0
  142. package/web/chunk-qt3n897m.js +4 -0
  143. package/web/chunk-r1rt48h9.js +1 -0
  144. package/web/{chunk-ck8rr0sr.js → chunk-r4ffr96e.js} +1 -1
  145. package/web/chunk-r7tgd2fm.js +7 -0
  146. package/web/{chunk-x5s7zr5f.js → chunk-rbdvc8x7.js} +7 -7
  147. package/web/{chunk-v4yqrx5y.js → chunk-rkjkynm3.js} +33 -33
  148. package/web/chunk-rznszqmy.js +1 -0
  149. package/web/chunk-s1pefd34.js +1 -0
  150. package/web/chunk-s38s9ff9.js +370 -0
  151. package/web/{chunk-vw1pbv1x.js → chunk-s7e93552.js} +8 -8
  152. package/web/chunk-sc29azev.js +1 -0
  153. package/web/{chunk-9c1yt2ex.js → chunk-sda7cyrt.js} +52 -52
  154. package/web/chunk-svh2gkx8.js +2 -0
  155. package/web/chunk-t4jc4nac.js +1 -0
  156. package/web/chunk-t7g366a5.js +24 -0
  157. package/web/chunk-tj1fn8v2.js +1 -0
  158. package/web/{chunk-sy7e4dmq.js → chunk-tkp72r9b.js} +1 -1
  159. package/web/{chunk-xc2sq3t5.js → chunk-v14s4vgc.js} +1 -1
  160. package/web/chunk-v94v68xg.js +36 -0
  161. package/web/{chunk-0whceqes.js → chunk-vvvd3grf.js} +2 -2
  162. package/web/chunk-w37n09px.js +21 -0
  163. package/web/chunk-wcphswcx.js +2 -0
  164. package/web/{chunk-fxs4nb93.js → chunk-wj3ymejj.js} +38 -38
  165. package/web/chunk-wwcnvyjh.css +1 -0
  166. package/web/{chunk-s2920f21.js → chunk-xabcx3ry.js} +6 -6
  167. package/web/chunk-xb9m0092.js +1 -0
  168. package/web/chunk-xfd3b01q.js +1 -0
  169. package/web/{chunk-03dmzvaq.js → chunk-xqyazzm7.js} +17 -17
  170. package/web/{chunk-prvh9syp.js → chunk-xsz1dfm2.js} +23 -23
  171. package/web/chunk-z0zrp8n8.js +1 -0
  172. package/web/index.html +1 -1
  173. package/worker.js +1 -1
  174. package/chunk-8saewt61.js +0 -3
  175. package/chunk-a0c989ky.js +0 -2
  176. package/chunk-a5apjjcn.js +0 -16
  177. package/chunk-a81p46j7.js +0 -2
  178. package/chunk-agsfy9w7.js +0 -2
  179. package/chunk-d20p02ny.js +0 -2
  180. package/chunk-ejsneb6f.js +0 -2
  181. package/chunk-fmq3zwzk.js +0 -2
  182. package/chunk-rfb85nj7.js +0 -2
  183. package/chunk-rfdt992v.js +0 -25
  184. package/chunk-tgfbtehh.js +0 -480
  185. package/web/chunk-0fgaepwm.js +0 -3
  186. package/web/chunk-0pecj6d7.js +0 -1
  187. package/web/chunk-0wt1dgny.js +0 -1
  188. package/web/chunk-1ves7sq5.js +0 -1
  189. package/web/chunk-1yj79b48.js +0 -1
  190. package/web/chunk-296hgy6k.js +0 -370
  191. package/web/chunk-2bmq1whf.js +0 -1
  192. package/web/chunk-2wqxhqr9.js +0 -1
  193. package/web/chunk-30zfw7zg.js +0 -1
  194. package/web/chunk-39ng8zwx.css +0 -1
  195. package/web/chunk-3nbzj48p.js +0 -36
  196. package/web/chunk-3zebd9fq.js +0 -7
  197. package/web/chunk-4r1n98zx.js +0 -2
  198. package/web/chunk-59678wmg.js +0 -1
  199. package/web/chunk-5wdk97mk.js +0 -4
  200. package/web/chunk-64rafq66.js +0 -78
  201. package/web/chunk-6kkw9ptc.js +0 -1
  202. package/web/chunk-718mr5gc.js +0 -2
  203. package/web/chunk-7hs57qdr.js +0 -1
  204. package/web/chunk-7kp237t3.js +0 -106
  205. package/web/chunk-86p42kym.js +0 -1
  206. package/web/chunk-8n79cqyd.js +0 -1
  207. package/web/chunk-9an6wcnr.js +0 -1
  208. package/web/chunk-9w5tf22s.js +0 -1
  209. package/web/chunk-b985y17w.js +0 -2
  210. package/web/chunk-bz2v64xe.js +0 -1
  211. package/web/chunk-c3nn0vvc.js +0 -1
  212. package/web/chunk-cb2rxtq9.js +0 -2
  213. package/web/chunk-cm92fyr3.js +0 -2
  214. package/web/chunk-cwtn2kdm.js +0 -1
  215. package/web/chunk-d4z2rgpx.js +0 -1
  216. package/web/chunk-dpkyygej.js +0 -1
  217. package/web/chunk-et5ess72.js +0 -1
  218. package/web/chunk-ez8b6neq.js +0 -1
  219. package/web/chunk-f5txt81n.js +0 -2
  220. package/web/chunk-fd1kqwe3.js +0 -1
  221. package/web/chunk-fp48zz2e.js +0 -2
  222. package/web/chunk-fx0n2g22.js +0 -89
  223. package/web/chunk-g6k9z8zt.js +0 -1
  224. package/web/chunk-gsh80797.js +0 -41
  225. package/web/chunk-hs5x78fb.js +0 -1
  226. package/web/chunk-hyd5hzpa.js +0 -1
  227. package/web/chunk-hyt1nkaw.js +0 -1
  228. package/web/chunk-j6a4z530.js +0 -1139
  229. package/web/chunk-kegv14sg.js +0 -2
  230. package/web/chunk-kw9emsqw.js +0 -1
  231. package/web/chunk-m2prjwk3.js +0 -4
  232. package/web/chunk-m9bzz9m0.js +0 -19
  233. package/web/chunk-mqsyzzgt.js +0 -30
  234. package/web/chunk-nywdeb4m.js +0 -2
  235. package/web/chunk-pxkhm40r.js +0 -2
  236. package/web/chunk-q9ekgjh6.js +0 -62
  237. package/web/chunk-r3mj50zs.js +0 -1
  238. package/web/chunk-sc0ghp25.js +0 -24
  239. package/web/chunk-t74r2n8h.js +0 -1
  240. package/web/chunk-t9mvsgt9.js +0 -1
  241. package/web/chunk-vf4vkcf9.js +0 -24
  242. package/web/chunk-vnt34mkb.js +0 -1
  243. package/web/chunk-vtxw9rmr.js +0 -1
  244. package/web/chunk-x19v2sxv.js +0 -1
  245. package/web/chunk-y21zy3eh.js +0 -1
  246. package/web/chunk-ya3ghn3n.js +0 -2
  247. package/web/chunk-yd74yxzt.js +0 -8
  248. package/web/chunk-z4ha8181.js +0 -1
  249. package/web/chunk-z8rarqe6.js +0 -1
  250. package/web/chunk-zsxw5fj7.js +0 -39
@@ -1,15 +1,15 @@
1
- import{e,Ca,a,v,B,C,S,E,T,A,R,L,l,p,Ln,Cr,Rn,Oi,qe,co,cn,Hn,M}from"./chunk-5v44qv67.js";import"./chunk-5nda24gv.js";import{Bn,hn}from"./chunk-da7m1kva.js";import{rr,Or,ra,$r,wt}from"./chunk-jve1zc80.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-j6a4z530.js";var vn=Te(function(nr,ir){(function(t,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=r()})(nr,function(){var t="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),t)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),t);var _,z,W,G,O=s(this),V=(_=this.isoWeekYear(),z=this.$u,W=(z?i.utc:i)().year(_).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,t));return O.diff(V,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var z=this.$utils(),W=!!z.u(_)||_;return z.p(D)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ar,sr){(function(t,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=r()})(ar,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(U){return(U=+U)+(U>68?1900:2000)},_=function(U){return function(Z){this[U]=+Z}},z=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(U){this.year=D(U)}],YYYY:[/\d{4}/,_("year")],Z:z,ZZ:z};function V(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var I=b&&b.toUpperCase();return nt||H[b]||t[b]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,P,d){return P||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=O[j],f=Y&&Y[0],N=Y&&Y[1];tt[at]=N?{regex:f,parser:N}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,I=0;b<ft;b+=1){var F=tt[b];if(typeof F=="string")I+=F.length;else{var{regex:P,parser:d}=F,w=rt.slice(I),x=P.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(D=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var N=f[1];if(typeof N=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,x,k,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var c=V(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,N,Y,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),b&&j!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var F=N.length,P=1;P<=F;P+=1){f[1]=N[P-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}P===F&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(t,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(t,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(z){switch(z){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),z==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),z==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),z==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return z}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(t,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=r()})(ur,function(){var t,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,Y,f){return new ft(j,f,Y.$l)},V=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,Y){return j?U(j)?{negative:!0,format:""+H(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,N,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return O(f*W[V(N)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(F){nt.$d[V(F)]=f[F]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(_);if(b){var I=b.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(N,rt){return N+(f.$d[rt]||0)*W[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),N=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),b=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1000,F=Math.round(1000*F)/1000);var P=tt(F,"S"),d=f.negative||N.negative||nt.negative||b.negative||I.negative||P.negative,w=b.format||I.format||P.format?"T":"",x=(d?"-":"")+"P"+f.format+N.format+nt.format+w+b.format+I.format+P.format;return x==="P"||x==="-P"?"P0D":x},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var N=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return N.replace(z,function(nt,b){return b||String(rt[nt])})},Y.as=function(f){return this.$ms/W[V(f)]},Y.get=function(f){var N=this.$ms,rt=V(f);return rt==="milliseconds"?N%=1000:N=rt==="weeks"?Z(N/W[rt]):this.$d[rt],N||0},Y.add=function(f,N,rt){var nt;return nt=N?f*W[V(N)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,N){return this.add(f,N,!0)},Y.locale=function(f){var N=this.clone();return N.$l=f,N},Y.clone=function(){return O(this.$ms,this)},Y.humanize=function(f){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){t=f,r=f().$utils(),f.duration=function(nt,b){var I=f.locale();return O(nt,{$l:I},b)},f.isDuration=G;var N=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):N.bind(this)(nt,b)},Y.prototype.subtract=function(nt,b){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,b)}}})});function Ee(t){return t}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Zn(t){return"translate("+t+",0)"}function jn(t){return"translate(0,"+t+")"}function Xn(t){return(r)=>+t(r)}function Gn(t,r){if(r=Math.max(0,t.bandwidth()-r*2)/2,t.round())r=Math.round(r);return(n)=>+t(n)+r}function qn(){return!this.__axis}function Yr(t,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,z=t===ye||t===he?-1:1,W=t===he||t===Ae?"x":"y",G=t===ye||t===Oe?Zn:jn;function O(V){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Gn:Xn)(r.copy(),_),Y=V.selection?V.selection():V,f=Y.selectAll(".domain").data([null]),N=Y.selectAll(".tick").data(U,r).order(),rt=N.exit(),nt=N.enter().append("g").attr("class","tick"),b=N.select("line"),I=N.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",z*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,z*H).attr("dy",t===ye?"0em":t===Oe?"0.71em":"0.32em")),V!==Y)f=f.transition(V),N=N.transition(V),b=b.transition(V),I=I.transition(V),rt=rt.transition(V).attr("opacity",_r).attr("transform",function(F){return isFinite(F=j(F))?G(F+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(F){var P=this.parentNode.__axis;return G((P&&isFinite(P=P(F))?P:j(F))+_)});rt.remove(),f.attr("d",t===he||t===Ae?u?"M"+z*u+","+ft+"H"+_+"V"+at+"H"+z*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+z*u+"V"+_+"H"+at+"V"+z*u:"M"+ft+","+_+"H"+at),N.attr("opacity",1).attr("transform",function(F){return G(j(F)+_)}),b.attr(W+"2",z*o),I.attr(W,z*H).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ae?"start":t===he?"end":"middle"),Y.each(function(){this.__axis=j})}return O.scale=function(V){return arguments.length?(r=V,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(V){return arguments.length?(n=V==null?[]:Array.from(V),O):n.slice()},O.tickValues=function(V){return arguments.length?(i=V==null?null:Array.from(V),O):i&&i.slice()},O.tickFormat=function(V){return arguments.length?(s=V,O):s},O.tickSize=function(V){return arguments.length?(o=u=+V,O):o},O.tickSizeInner=function(V){return arguments.length?(o=+V,O):o},O.tickSizeOuter=function(V){return arguments.length?(u=+V,O):u},O.tickPadding=function(V){return arguments.length?(D=+V,O):D},O.offset=function(V){return arguments.length?(_=+V,O):_},O}function $e(t){return Yr(ye,t)}function He(t){return Yr(Oe,t)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Hr(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof At)return Pr(t);if(!(t instanceof qe))t=Oi(t);var r=ze(t.r),n=ze(t.g),i=ze(t.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),t.opacity)}function Nr(t,r,n,i){return arguments.length===1?Hr(t):new Ft(t,r,n,i==null?1:i)}function Ft(t,r,n,i){this.l=+t,this.a=+r,this.b=+n,this.opacity=+i}Ln(Ft,Nr,Cr(Rn,{brighter(t){return new Ft(this.l+ge*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new Ft(this.l-ge*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,r=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return r=Ur*Pe(r),t=Lr*Pe(t),n=Wr*Pe(n),new qe(Ve(3.1338561*r-1.6168667*t-0.4906146*n),Ve(-0.9787684*r+1.9161415*t+0.033454*n),Ve(0.0719453*r-0.2289914*t+1.4052427*n),this.opacity)}}));function Ne(t){return t>Qn?Math.pow(t,0.3333333333333333):t/Ar+Er}function Pe(t){return t>Qt?t*t*t:Ar*(t-Er)}function Ve(t){return 255*(t<=0.0031308?12.92*t:1.055*Math.pow(t,0.4166666666666667)-0.055)}function ze(t){return(t/=255)<=0.04045?t/12.92:Math.pow((t+0.055)/1.055,2.4)}function Jn(t){if(t instanceof At)return new At(t.h,t.c,t.l,t.opacity);if(!(t instanceof Ft))t=Hr(t);if(t.a===0&&t.b===0)return new At(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,r,n,i){return arguments.length===1?Jn(t):new At(t,r,n,i==null?1:i)}function At(t,r,n,i){this.h=+t,this.c=+r,this.l=+n,this.opacity=+i}function Pr(t){if(isNaN(t.h))return new Ft(t.l,0,0,t.opacity);var r=t.h*Fr;return new Ft(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}Ln(At,ke,Cr(Rn,{brighter(t){return new At(this.h,this.c,this.l+ge*(t==null?1:t),this.opacity)},darker(t){return new At(this.h,this.c,this.l-ge*(t==null?1:t),this.opacity)},rgb(){return Pr(this).rgb()}}));function Vr(t){return function(r,n){var i=t((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var zr=Vr(co),Ls=Vr(cn);function Re(t,r){t=t.slice();var n=0,i=t.length-1,s=t[n],o=t[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return t[n]=r.floor(s),t[i]=r.ceil(o),t}var Be=new Date,Ze=new Date;function dt(t,r,n,i){function s(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(t(o=new Date(+o)),o),s.ceil=(o)=>(t(o=new Date(o-1)),r(o,1),t(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let z;do _.push(z=new Date(+o)),r(o,D),t(o);while(z<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(t(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),t(Be),t(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(t,r)=>{t.setTime(+t+r)},(t,r)=>r-t);It.every=(t)=>{if(t=Math.floor(t),!isFinite(t)||!(t>0))return null;if(!(t>1))return It;return dt((r)=>{r.setTime(Math.floor(r/t)*t)},(r,n)=>{r.setTime(+r+n*t)},(r,n)=>(n-r)/t)};var Rr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var xt=dt((t)=>{t.setTime(t-t.getMilliseconds())},(t,r)=>{t.setTime(+t+r*Ct)},(t,r)=>(r-t)/Ct,(t)=>t.getUTCSeconds()),Br=xt.range;var $t=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct)},(t,r)=>{t.setTime(+t+r*vt)},(t,r)=>(r-t)/vt,(t)=>t.getMinutes()),Kn=$t.range,ve=dt((t)=>{t.setUTCSeconds(0,0)},(t,r)=>{t.setTime(+t+r*vt)},(t,r)=>(r-t)/vt,(t)=>t.getUTCMinutes()),ti=ve.range;var Ht=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct-t.getMinutes()*vt)},(t,r)=>{t.setTime(+t+r*Ut)},(t,r)=>(r-t)/Ut,(t)=>t.getHours()),ei=Ht.range,xe=dt((t)=>{t.setUTCMinutes(0,0,0)},(t,r)=>{t.setTime(+t+r*Ut)},(t,r)=>(r-t)/Ut,(t)=>t.getUTCHours()),ri=xe.range;var St=dt((t)=>t.setHours(0,0,0,0),(t,r)=>t.setDate(t.getDate()+r),(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Vt,(t)=>t.getDate()-1),ni=St.range,oe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r)},(t,r)=>(r-t)/Vt,(t)=>t.getUTCDate()-1),ii=oe.range,be=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r)},(t,r)=>(r-t)/Vt,(t)=>Math.floor(t/Vt)),ai=be.range;function Bt(t){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-t)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(t){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((t)=>{t.setDate(1),t.setHours(0,0,0,0)},(t,r)=>{t.setMonth(t.getMonth()+r)},(t,r)=>r.getMonth()-t.getMonth()+(r.getFullYear()-t.getFullYear())*12,(t)=>t.getMonth()),pi=Nt.range,_e=dt((t)=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCMonth(t.getUTCMonth()+r)},(t,r)=>r.getUTCMonth()-t.getUTCMonth()+(r.getUTCFullYear()-t.getUTCFullYear())*12,(t)=>t.getUTCMonth()),Ti=_e.range;var bt=dt((t)=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r)},(t,r)=>r.getFullYear()-t.getFullYear(),(t)=>t.getFullYear());bt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*t)});var vi=bt.range,Yt=dt((t)=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r)},(t,r)=>r.getUTCFullYear()-t.getUTCFullYear(),(t)=>t.getUTCFullYear());Yt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*t)});var xi=Yt.range;function Jr(t,r,n,i,s,o){let u=[[xt,1,Ct],[xt,5,5*Ct],[xt,15,15*Ct],[xt,30,30*Ct],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[t,1,pe]];function D(z,W,G){let O=W<z;if(O)[z,W]=[W,z];let V=G&&typeof G.range==="function"?G:_(z,W,G),U=V?V.range(z,+W+1):[];return O?U.reverse():U}function _(z,W,G){let O=Math.abs(W-z)/G,V=rr(([,,H])=>H).right(u,O);if(V===u.length)return t.every(Or(z/pe,W/pe,G));if(V===0)return It.every(Math.max(Or(z,W,G),1));let[U,Z]=u[O/u[V-1][2]<u[V][2]/O?V-1:V];return U.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(bt,Nt,_t,St,Ht,$t);function Qe(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Je(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t,r,n){return{y:t,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(t){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=t,z=ue(s),W=le(s),G=ue(o),O=le(o),V=ue(u),U=le(u),Z=ue(D),H=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:ia,G:sa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:na,Y:aa,Z:oa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:ca,I:ua,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:b,A:I,b:F,B:P,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ei,L:Hi,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function N(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=z.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function b(g,X,et){var y=V.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function F(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function P(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function x(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=N(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=N(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(t,r,n){var i=t<0?"-":"",s=(i?-t:t)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(t){return t.replace(Di,"\\$&")}function ue(t){return new RegExp("^(?:"+t.map(Ci).join("|")+")","i")}function le(t){return new Map(t.map((r,n)=>[r.toLowerCase(),n]))}function Si(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function _i(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Yi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Fi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Ii(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function tn(t,r,n){var i=pt.exec(r.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function en(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(t,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Wi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function rn(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ei(t,r,n){var i=pt.exec(r.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function nn(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Ai(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function $i(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Hi(t,r,n){var i=pt.exec(r.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Ni(t,r,n){var i=pt.exec(r.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(t,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(t,r,n){var i=pt.exec(r.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function zi(t,r,n){var i=pt.exec(r.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function an(t,r){return ct(t.getDate(),r,2)}function Ri(t,r){return ct(t.getHours(),r,2)}function Bi(t,r){return ct(t.getHours()%12||12,r,2)}function Zi(t,r){return ct(1+St.count(bt(t),t),r,3)}function fn(t,r){return ct(t.getMilliseconds(),r,3)}function ji(t,r){return fn(t,r)+"000"}function Xi(t,r){return ct(t.getMonth()+1,r,2)}function Gi(t,r){return ct(t.getMinutes(),r,2)}function qi(t,r){return ct(t.getSeconds(),r,2)}function Qi(t){var r=t.getDay();return r===0?7:r}function Ji(t,r){return ct(_t.count(bt(t)-1,t),r,2)}function dn(t){var r=t.getDay();return r>=4||r===0?Lt(t):Lt.ceil(t)}function Ki(t,r){return t=dn(t),ct(Lt.count(bt(t),t)+(bt(t).getDay()===4),r,2)}function ta(t){return t.getDay()}function ea(t,r){return ct(zt.count(bt(t)-1,t),r,2)}function na(t,r){return ct(t.getFullYear()%100,r,2)}function ia(t,r){return t=dn(t),ct(t.getFullYear()%100,r,2)}function aa(t,r){return ct(t.getFullYear()%1e4,r,4)}function sa(t,r){var n=t.getDay();return t=n>=4||n===0?Lt(t):Lt.ceil(t),ct(t.getFullYear()%1e4,r,4)}function oa(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(t,r){return ct(t.getUTCDate(),r,2)}function ca(t,r){return ct(t.getUTCHours(),r,2)}function ua(t,r){return ct(t.getUTCHours()%12||12,r,2)}function la(t,r){return ct(1+oe.count(Yt(t),t),r,3)}function mn(t,r){return ct(t.getUTCMilliseconds(),r,3)}function fa(t,r){return mn(t,r)+"000"}function da(t,r){return ct(t.getUTCMonth()+1,r,2)}function ma(t,r){return ct(t.getUTCMinutes(),r,2)}function ha(t,r){return ct(t.getUTCSeconds(),r,2)}function ya(t){var r=t.getUTCDay();return r===0?7:r}function ga(t,r){return ct(jt.count(Yt(t)-1,t),r,2)}function yn(t){var r=t.getUTCDay();return r>=4||r===0?Rt(t):Rt.ceil(t)}function ka(t,r){return t=yn(t),ct(Rt.count(Yt(t),t)+(Yt(t).getUTCDay()===4),r,2)}function pa(t){return t.getUTCDay()}function Ta(t,r){return ct(Jt.count(Yt(t)-1,t),r,2)}function va(t,r){return ct(t.getUTCFullYear()%100,r,2)}function xa(t,r){return t=yn(t),ct(t.getUTCFullYear()%100,r,2)}function ba(t,r){return ct(t.getUTCFullYear()%1e4,r,4)}function wa(t,r){var n=t.getUTCDay();return t=n>=4||n===0?Rt(t):Rt.ceil(t),ct(t.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(t){return+t}function ln(t){return Math.floor(+t/1000)}var Kt,Xt,gn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(t){return Kt=Ke(t),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,r,n,i,s,o,u,D,_,z){var W=$r(),{invert:G,domain:O}=W,V=z(".%L"),U=z(":%S"),Z=z("%I:%M"),H=z("%I %p"),tt=z("%a %d"),ft=z("%b %d"),at=z("%B"),j=z("%Y");function Y(f){return(_(f)<f?V:D(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Sa)):O().map(Da)},W.ticks=function(f){var N=O();return t(N[0],N[N.length-1],f==null?10:f)},W.tickFormat=function(f,N){return N==null?Y:z(N)},W.nice=function(f){var N=O();if(!f||typeof f.range!=="function")f=r(N[0],N[N.length-1],f==null?10:f);return f?O(Re(N,f)):W},W.copy=function(){return ra(W,Tn(t,r,n,i,s,o,u,D,_,z))},W}function er(){return Ot.apply(Tn(Xe,Ge,bt,Nt,_t,St,Ht,$t,xt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Hn(),1),Mt=Se(Ca(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ca(),1),zn=Se(wn(),1);var dr=function(){var t=e(function(P,d,w,x){for(w=w||{},x=P.length;x--;w[P[x]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],z=[1,33],W=[1,34],G=[1,9],O=[1,10],V=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],N=[1,23],rt=[1,25],nt=[1,35],b={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:e(function(d,w,x,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},t(r,[2,5]),t(r,[2,6]),t(r,[2,17]),t(r,[2,18]),t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),t(r,[2,23]),t(r,[2,24]),t(r,[2,25]),t(r,[2,26]),t(r,[2,27]),{32:[1,37]},{34:[1,38]},t(r,[2,30]),t(r,[2,31]),t(r,[2,32]),{39:[1,39]},t(r,[2,8]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),{41:[1,40],43:[1,41]},t(r,[2,4]),t(r,[2,28]),t(r,[2,29]),t(r,[2,33]),t(r,[2,34],{42:[1,42],43:[1,43]}),t(r,[2,40],{41:[1,44]}),t(r,[2,35],{43:[1,45]}),t(r,[2,36]),t(r,[2,38],{42:[1,46]}),t(r,[2,37]),t(r,[2,39])],defaultActions:{},parseError:e(function(d,w){if(w.recoverable)this.trace(d);else{var x=Error(d);throw x.hash=w,x}},"parseError"),parse:e(function(d){var w=this,x=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}e(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}e(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=x[x.length-1],this.defaultActions[gt])Tt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();Tt=J[gt]&&J[gt][ot]}if(typeof Tt>"u"||!Tt.length||!Tt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
1
+ import{t,Ca,a,v,B,C,S,E,T,A,L,R,l,p,An,Cr,Rn,Oi,qe,co,cn,Gn,M}from"./chunk-3q0v8w45.js";import"./chunk-fe31sv6t.js";import{$n,gn}from"./chunk-4anjs6yp.js";import{sr,$r,ra,Br,kt}from"./chunk-cn1xpg3q.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-gcwhx3av.js";var vn=Te(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,z,W,G,O=s(this),V=(_=this.isoWeekYear(),z=this.$u,W=(z?i.utc:i)().year(_).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,e));return O.diff(V,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var z=this.$utils(),W=!!z.u(_)||_;return z.p(D)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(U){return(U=+U)+(U>68?1900:2000)},_=function(U){return function(Z){this[U]=+Z}},z=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(U){this.year=D(U)}],YYYY:[/\d{4}/,_("year")],Z:z,ZZ:z};function V(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var I=b&&b.toUpperCase();return nt||H[b]||e[b]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,P,d){return P||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=O[j],f=Y&&Y[0],N=Y&&Y[1];tt[at]=N?{regex:f,parser:N}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,I=0;b<ft;b+=1){var F=tt[b];if(typeof F=="string")I+=F.length;else{var{regex:P,parser:d}=F,w=rt.slice(I),x=P.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(D=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var N=f[1];if(typeof N=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,x,k,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var c=V(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,N,Y,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),b&&j!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var F=N.length,P=1;P<=F;P+=1){f[1]=N[P-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}P===F&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(e,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(z){switch(z){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),z==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),z==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),z==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return z}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,Y,f){return new ft(j,f,Y.$l)},V=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,Y){return j?U(j)?{negative:!0,format:""+H(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,N,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return O(f*W[V(N)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(F){nt.$d[V(F)]=f[F]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(_);if(b){var I=b.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(N,rt){return N+(f.$d[rt]||0)*W[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),N=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),b=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1000,F=Math.round(1000*F)/1000);var P=tt(F,"S"),d=f.negative||N.negative||nt.negative||b.negative||I.negative||P.negative,w=b.format||I.format||P.format?"T":"",x=(d?"-":"")+"P"+f.format+N.format+nt.format+w+b.format+I.format+P.format;return x==="P"||x==="-P"?"P0D":x},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var N=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return N.replace(z,function(nt,b){return b||String(rt[nt])})},Y.as=function(f){return this.$ms/W[V(f)]},Y.get=function(f){var N=this.$ms,rt=V(f);return rt==="milliseconds"?N%=1000:N=rt==="weeks"?Z(N/W[rt]):this.$d[rt],N||0},Y.add=function(f,N,rt){var nt;return nt=N?f*W[V(N)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,N){return this.add(f,N,!0)},Y.locale=function(f){var N=this.clone();return N.$l=f,N},Y.clone=function(){return O(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,b){var I=f.locale();return O(nt,{$l:I},b)},f.isDuration=G;var N=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):N.bind(this)(nt,b)},Y.prototype.subtract=function(nt,b){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,b)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function Zn(e){return"translate(0,"+e+")"}function jn(e){return(r)=>+e(r)}function Xn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,z=e===ye||e===he?-1:1,W=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:Zn;function O(V){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Xn:jn)(r.copy(),_),Y=V.selection?V.selection():V,f=Y.selectAll(".domain").data([null]),N=Y.selectAll(".tick").data(U,r).order(),rt=N.exit(),nt=N.enter().append("g").attr("class","tick"),b=N.select("line"),I=N.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",z*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,z*H).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),V!==Y)f=f.transition(V),N=N.transition(V),b=b.transition(V),I=I.transition(V),rt=rt.transition(V).attr("opacity",_r).attr("transform",function(F){return isFinite(F=j(F))?G(F+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(F){var P=this.parentNode.__axis;return G((P&&isFinite(P=P(F))?P:j(F))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+z*u+","+ft+"H"+_+"V"+at+"H"+z*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+z*u+"V"+_+"H"+at+"V"+z*u:"M"+ft+","+_+"H"+at),N.attr("opacity",1).attr("transform",function(F){return G(j(F)+_)}),b.attr(W+"2",z*o),I.attr(W,z*H).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return O.scale=function(V){return arguments.length?(r=V,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(V){return arguments.length?(n=V==null?[]:Array.from(V),O):n.slice()},O.tickValues=function(V){return arguments.length?(i=V==null?null:Array.from(V),O):i&&i.slice()},O.tickFormat=function(V){return arguments.length?(s=V,O):s},O.tickSize=function(V){return arguments.length?(o=u=+V,O):o},O.tickSizeInner=function(V){return arguments.length?(o=+V,O):o},O.tickSizeOuter=function(V){return arguments.length?(u=+V,O):u},O.tickPadding=function(V){return arguments.length?(D=+V,O):D},O.offset=function(V){return arguments.length?(_=+V,O):_},O}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Or(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof qe))e=Oi(e);var r=ze(e.r),n=ze(e.g),i=ze(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?Or(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}An(Ft,Hr,Cr(Rn,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Ur*Pe(r),e=Lr*Pe(e),n=Wr*Pe(n),new qe(Ve(3.1338561*r-1.6168667*e-0.4906146*n),Ve(-0.9787684*r+1.9161415*e+0.033454*n),Ve(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Ar+Er}function Pe(e){return e>Qt?e*e*e:Ar*(e-Er)}function Ve(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function ze(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=Or(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Fr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}An(At,ke,Cr(Rn,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var Vr=Pr(co),Ls=Pr(cn);function Re(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Be=new Date,Ze=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let z;do _.push(z=new Date(+o)),r(o,D),e(o);while(z<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),e(Be),e(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var zr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Rr=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,ve=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=ve.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,xe=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=xe.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,be=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=be.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[e,1,pe]];function D(z,W,G){let O=W<z;if(O)[z,W]=[W,z];let V=G&&typeof G.range==="function"?G:_(z,W,G),U=V?V.range(z,+W+1):[];return O?U.reverse():U}function _(z,W,G){let O=Math.abs(W-z)/G,V=sr(([,,H])=>H).right(u,O);if(V===u.length)return e.every($r(z/pe,W/pe,G));if(V===0)return It.every(Math.max($r(z,W,G),1));let[U,Z]=u[O/u[V-1][2]<u[V][2]/O?V-1:V];return U.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,z=ue(s),W=le(s),G=ue(o),O=le(o),V=ue(u),U=le(u),Z=ue(D),H=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:ia,G:sa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:na,Y:aa,Z:oa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:ca,I:ua,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:b,A:I,b:F,B:P,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ei,L:Hi,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function N(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=z.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function b(g,X,et){var y=V.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function F(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function P(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function x(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=N(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=N(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Wi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ni(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function zi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function Ri(e,r){return ct(e.getHours(),r,2)}function Bi(e,r){return ct(e.getHours()%12||12,r,2)}function Zi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function na(e,r){return ct(e.getFullYear()%100,r,2)}function ia(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function aa(e,r){return ct(e.getFullYear()%1e4,r,4)}function sa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function oa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function ca(e,r){return ct(e.getUTCHours(),r,2)}function ua(e,r){return ct(e.getUTCHours()%12||12,r,2)}function la(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function fa(e,r){return mn(e,r)+"000"}function da(e,r){return ct(e.getUTCMonth()+1,r,2)}function ma(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function hn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=hn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=hn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(e){return+e}function ln(e){return Math.floor(+e/1000)}var Kt,Xt,yn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(e){return Kt=Ke(e),Xt=Kt.format,yn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Sa(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,z){var W=Br(),{invert:G,domain:O}=W,V=z(".%L"),U=z(":%S"),Z=z("%I:%M"),H=z("%I %p"),tt=z("%a %d"),ft=z("%b %d"),at=z("%B"),j=z("%Y");function Y(f){return(_(f)<f?V:D(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Sa)):O().map(Da)},W.ticks=function(f){var N=O();return e(N[0],N[N.length-1],f==null?10:f)},W.tickFormat=function(f,N){return N==null?Y:z(N)},W.nice=function(f){var N=O();if(!f||typeof f.range!=="function")f=r(N[0],N[N.length-1],f==null?10:f);return f?O(Re(N,f)):W},W.copy=function(){return ra(W,Tn(e,r,n,i,s,o,u,D,_,z))},W}function er(){return Ot.apply(Tn(Xe,Ge,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Gn(),1),Mt=Se(Ca(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ca(),1),zn=Se(wn(),1);var dr=function(){var e=t(function(P,d,w,x){for(w=w||{},x=P.length;x--;w[P[x]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],z=[1,33],W=[1,34],G=[1,9],O=[1,10],V=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],N=[1,23],rt=[1,25],nt=[1,35],b={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,x,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var x=Error(d);throw x.hash=w,x}},"parseError"),parse:t(function(d){var w=this,x=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=x[x.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
2
2
  `+it.showPosition()+`
3
- Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(Tt[0]instanceof Array&&Tt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(Tt[0]){case 1:if(x.push(ot),Q.push(it.yytext),c.push(it.yylloc),x.push(Tt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[Tt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,Tt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)x=x.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);x.push(this.productions_[Tt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[x[x.length-2]][x[x.length-1]],x.push(Sr);break;case 3:return!0}}return!0},"parse")},I=function(){var P={EOF:1,parseError:e(function(w,x){if(this.yy.parser)this.yy.parser.parseError(w,x);else throw Error(w)},"parseError"),setInput:e(function(d,w){if(this.yy=w||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:e(function(d){var w=d.length,x=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1)this.yylineno-=x.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===k.length?this.yylloc.first_column:0)+k[k.length-x.length].length-x[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(d){this.unput(this.match.slice(d))},"less"),pastInput:e(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
5
- `+w+"^"},"showPosition"),test_match:e(function(d,w){var x,k,Q;if(this.options.backtrack_lexer){if(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Q.yylloc.range=this.yylloc.range.slice(0)}if(k=d[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],x=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(x)return x;else if(this._backtrack){for(var c in Q)this[c]=Q[c];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,x,k;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var c=0;c<Q.length;c++)if(x=this._input.match(this.rules[Q[c]]),x&&(!w||x[0].length>w[0].length)){if(w=x,k=c,this.options.backtrack_lexer)if(d=this.test_match(x,Q[c]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[k]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:e(function(w){this.conditionStack.push(w)},"begin"),popState:e(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:e(function(w){this.begin(w)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(w,x,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return P}();b.lexer=I;function F(){this.yy={}}return e(F,"Parser"),F.prototype=b,b.Parser=F,new F}();dr.parser=dr;var _a=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",In=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,wr=!1,Mr="sunday",Ue="saturday",mr=0,Ya=e(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,kt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,wr=!1,mr=0,Tr=new Map,te="",C(),Mr="sunday",Ue="saturday"},"clear"),Fa=e(function(t){te=t},"setDiagramId"),Ia=e(function(t){gr=t},"setAxisFormat"),Ua=e(function(){return gr},"getAxisFormat"),La=e(function(t){kr=t},"setTickInterval"),Wa=e(function(){return kr},"getTickInterval"),Ea=e(function(t){pr=t},"setTodayMarker"),Aa=e(function(){return pr},"getTodayMarker"),Oa=e(function(t){Wt=t},"setDateFormat"),$a=e(function(){fe=!0},"enableInclusiveEndDates"),Ha=e(function(){return fe},"endDatesAreInclusive"),Na=e(function(){wr=!0},"enableTopAxis"),Pa=e(function(){return wr},"topAxisEnabled"),Va=e(function(t){xr=t},"setDisplayMode"),za=e(function(){return xr},"getDisplayMode"),Ra=e(function(){return Wt},"getDateFormat"),Un=e((t,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...t,...n])]},"mergeTokens"),Ba=e(function(t){ne=Un(ne,t)},"setIncludes"),Za=e(function(){return ne},"getIncludes"),ja=e(function(t){ie=Un(ie,t)},"setExcludes"),Xa=e(function(){return ie},"getExcludes"),Ga=e(function(){return Tr},"getLinks"),qa=e(function(t){ae=t,vr.push(t)},"addSection"),Qa=e(function(){return vr},"getSections"),Ja=e(function(){let t=Dn(),r=10,n=0;while(!t&&n<r)t=Dn(),n++;return Ie=kt,Ie},"getTasks"),Wn=e(function(t,r,n,i){let s=t.format(r.trim()),o=t.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(t.isoWeekday()===Mn[Ue]||t.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(t.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=e(function(t){Mr=t},"setWeekday"),ts=e(function(){return Mr},"getWeekday"),es=e(function(t){Ue=t},"setWeekend"),En=e(function(t,r,n,i){if(!n.length||t.manualEndTime)return;let s;if(t.startTime instanceof Date)s=Mt.default(t.startTime);else s=Mt.default(t.startTime,r,!0);s=s.add(1,"d");let o;if(t.endTime instanceof Date)o=Mt.default(t.endTime);else o=Mt.default(t.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);t.endTime=u.toDate(),t.renderEndTime=D},"checkTaskDates"),rs=e(function(t,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(t<=r){if(!o)u=r.toDate();if(o=Wn(t,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}t=t.add(1,"d")}return[r,u]},"fixTaskDates"),An=e(function(t,r){a.warn(`Gantt: the "${t}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=e(function(t,r,n){if(n=n.trim(),e((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],z=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of z){let O=Gt(G);if(O===void 0){_.push(G);continue}if(!D||O.endTime>D.endTime)D=O}if(_.length>0)An("after",_);if(D)return D.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),On=e(function(t){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),$n=e(function(t,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let W=null,G=[],O=o.groups.ids.split(" ").filter((U)=>U!=="");for(let U of O){let Z=Gt(U);if(Z===void 0){G.push(U);continue}if(!W||Z.startTime<W.startTime)W=Z}if(G.length>0)An("until",G);if(W)return W.startTime;let V=new Date;return V.setHours(0,0,0,0),V}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(t),[_,z]=On(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let W=D.add(_,z);if(W.isValid())D=W}return D.toDate()},"getEndDate"),Ye=0,re=e(function(t){if(t===void 0)return Ye=Ye+1,"task"+Ye;return t},"parseId"),ns=e(function(t,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=t.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=$n(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),En(s,Wt,ie,ne);return s},"compileData"),is=e(function(t,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,kt=[],Nn={},as=e(function(t,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:t,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=kt.push(n);Fe=n.id,Nn[n.id]=s-1},"addTask"),Gt=e(function(t){let r=Nn[t];return kt[r]},"findTaskById"),ss=e(function(t,r){let n={section:ae,type:ae,description:t,task:t,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=e(function(){let t=e(function(n){let i=kt[n],s="";switch(kt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,kt[n].raw.startTime.startData),s)kt[n].startTime=s;break}if(kt[n].startTime){if(kt[n].endTime=$n(kt[n].startTime,Wt,kt[n].raw.endTime.data,fe),kt[n].endTime)kt[n].processed=!0,kt[n].manualEndTime=Mt.default(kt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),En(kt[n],Wt,ie,ne)}return kt[n].processed},"compileTask"),r=!0;for(let[n,i]of kt.entries())t(n),r=r&&i.processed;return r},"compileTasks"),os=e(function(t,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);t.split(",").forEach(function(i){if(Gt(i)!==void 0)Vn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),Pn(t,"clickable")},"setLink"),Pn=e(function(t,r){t.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=e(function(t,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(t);if(Gt(t)!==void 0)Vn(t,()=>{M.runFunc(r,...i)})},"setClickFun"),Vn=e(function(t,r){br.push(function(){let n=te?`${te}-${t}`:t,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${t}`:t,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=e(function(t,r,n){t.split(",").forEach(function(i){cs(i,r,n)}),Pn(t,"clickable")},"setClickEvent"),ls=e(function(t){br.forEach(function(r){r(t)})},"bindFunctions"),fs={getConfig:e(()=>l().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:R,getDiagramTitle:L,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:On,isInvalidDate:Wn,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Dr(t,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(t[0].match(u))r[s]=!0,t.shift(1),i=!0})}e(Dr,"getTaskTags");ee.default.extend(zn.default);var ds=e(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:we,wednesday:Me,thursday:Lt,friday:De,saturday:Ce,sunday:_t},ms=e((t,r)=>{let n=[...t].map(()=>-1/0),i=[...t].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=e(function(t,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,z=_.getElementById(r);if(Pt=z.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let W=i.db.getTasks(),G=W.filter((b)=>!b.vert),O=[];for(let b of G)O.push(b.type);O=nt(O);let V={},U=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let b={};for(let F of G)if(b[F.section]===void 0)b[F.section]=[F];else b[F.section].push(F);let I=0;for(let F of Object.keys(b)){let P=ms(b[F],I)+1;I+=P,U+=P*(s.barHeight+s.barGap),V[F]=P}}else{U+=G.length*(s.barHeight+s.barGap);for(let b of O)V[b]=G.filter((I)=>I.type===b).length}z.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=D.select(`[id="${r}"]`),H=er().domain([hn(W,function(b){return b.startTime}),Bn(W,function(b){return b.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(b,I){let F=b.startTime,P=I.startTime,d=0;if(F>P)d=1;else if(F<P)d=-1;return d}e(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),B(Z,U,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(b,I,F){let P=s.barHeight,d=P+s.barGap,{topPadding:w,leftPadding:x}=s,k=wt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(zr);j(d,w,x,I,F,b,i.db.getExcludes(),i.db.getIncludes()),f(x,w,I,F),at(b,d,w,x,P,k,I,F),N(d,w,x,P,k),rt(x,w,I,F)}e(ft,"makeGantt");function at(b,I,F,P,d,w,x){b.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=b.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*I+F-2}).attr("width",function(){return x-s.rightPadding/2}).attr("height",I).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(b).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+P+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+P}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*I+F}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return H(m.renderEndTime||m.endTime)-H(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+P+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*I+F+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of O.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=H(m.startTime),K=H(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(H(m.endTime)-H(m.startTime))-0.5*d,K=q+d;if(m.vert)return H(m.startTime)+P;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>x)return q+P-5;else return K+P+5;else return(K-q)/2+q+P}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*I+s.barHeight/2+(s.fontSize/2-2)+F}).attr("text-height",d).attr("class",function(m){let q=H(m.startTime),K=H(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of O.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>x)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}e(at,"drawRects");function j(b,I,F,P,d,w,x,k){if(x.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,x,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+F).attr("y",s.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-I-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+F+0.5*(H(K.end)-H(K.start))).toString()+"px "+(ut*b+0.5*d).toString()+"px"}).attr("class","exclude-range")}e(j,"drawExcludeDays");function Y(b,I,F,P){if(F<=0||b>I)return 1/0;let d=I-b,w=ee.default.duration({[P??"day"]:F}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}e(Y,"getEstimatedTickCount");function f(b,I,F,P){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),x;if(w)x=w;else if(d==="D")x="%d";else x=s.axisFormat??"%Y-%m-%d";let k=He(H).tickSize(-P+I+s.gridLineStartPadding).tickFormat(Xt(x)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=H.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(xt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+(P-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(H).tickSize(-P+I+s.gridLineStartPadding).tickFormat(Xt(x));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=H.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(xt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+I+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(f,"makeGrid");function N(b,I){let F=0,P=Object.keys(V).map((d)=>[d,V[d]]);Z.append("g").selectAll("text").data(P).enter().append(function(d){let w=d[0].split(v.lineBreakRegex),x=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",x+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let x=0;x<w;x++)return F+=P[w-1][1],d[1]*b/2+F*b+I;else return d[1]*b/2+I}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,x]of O.entries())if(d[0]===x)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}e(N,"vertLabels");function rt(b,I,F,P){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),x=new Date,k=w.append("line");if(k.attr("x1",H(x)+b).attr("x2",H(x)+b).attr("y1",s.titleTopMargin).attr("y2",P-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}e(rt,"drawToday");function nt(b){let I={},F=[];for(let P=0,d=b.length;P<d;++P)if(!Object.prototype.hasOwnProperty.call(I,b[P]))I[b[P]]=!0,F.push(b[P]);return F}e(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=e((t)=>`
3
+ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(x.push(ot),Q.push(it.yytext),c.push(it.yylloc),x.push(vt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[vt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,vt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)x=x.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);x.push(this.productions_[vt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[x[x.length-2]][x[x.length-1]],x.push(Sr);break;case 3:return!0}}return!0},"parse")},I=function(){var P={EOF:1,parseError:t(function(w,x){if(this.yy.parser)this.yy.parser.parseError(w,x);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:t(function(d){var w=d.length,x=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1)this.yylineno-=x.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===k.length?this.yylloc.first_column:0)+k[k.length-x.length].length-x[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(d){this.unput(this.match.slice(d))},"less"),pastInput:t(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
5
+ `+w+"^"},"showPosition"),test_match:t(function(d,w){var x,k,Q;if(this.options.backtrack_lexer){if(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Q.yylloc.range=this.yylloc.range.slice(0)}if(k=d[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],x=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(x)return x;else if(this._backtrack){for(var c in Q)this[c]=Q[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,x,k;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var c=0;c<Q.length;c++)if(x=this._input.match(this.rules[Q[c]]),x&&(!w||x[0].length>w[0].length)){if(w=x,k=c,this.options.backtrack_lexer)if(d=this.test_match(x,Q[c]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[k]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,x,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return P}();b.lexer=I;function F(){this.yy={}}return t(F,"Parser"),F.prototype=b,b.Parser=F,new F}();dr.parser=dr;var _a=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",In=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,wr=!1,Mr="sunday",Ue="saturday",mr=0,Ya=t(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,wr=!1,mr=0,Tr=new Map,te="",C(),Mr="sunday",Ue="saturday"},"clear"),Fa=t(function(e){te=e},"setDiagramId"),Ia=t(function(e){gr=e},"setAxisFormat"),Ua=t(function(){return gr},"getAxisFormat"),La=t(function(e){kr=e},"setTickInterval"),Wa=t(function(){return kr},"getTickInterval"),Ea=t(function(e){pr=e},"setTodayMarker"),Aa=t(function(){return pr},"getTodayMarker"),Oa=t(function(e){Wt=e},"setDateFormat"),$a=t(function(){fe=!0},"enableInclusiveEndDates"),Ha=t(function(){return fe},"endDatesAreInclusive"),Na=t(function(){wr=!0},"enableTopAxis"),Pa=t(function(){return wr},"topAxisEnabled"),Va=t(function(e){xr=e},"setDisplayMode"),za=t(function(){return xr},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return Tr},"getLinks"),qa=t(function(e){ae=e,vr.push(e)},"addSection"),Qa=t(function(){return vr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Ln=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Mr=e},"setWeekday"),ts=t(function(){return Mr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),Wn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Ln(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),En=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],z=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of z){let O=Gt(G);if(O===void 0){_.push(G);continue}if(!D||O.endTime>D.endTime)D=O}if(_.length>0)En("after",_);if(D)return D.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),On=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Hn=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let W=null,G=[],O=o.groups.ids.split(" ").filter((U)=>U!=="");for(let U of O){let Z=Gt(U);if(Z===void 0){G.push(U);continue}if(!W||Z.startTime<W.startTime)W=Z}if(G.length>0)En("until",G);if(W)return W.startTime;let V=new Date;return V.setHours(0,0,0,0),V}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,z]=On(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let W=D.add(_,z);if(W.isValid())D=W}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=Hn(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),Wn(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Nn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Nn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Nn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=Hn(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)Vn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),Pn(e,"clickable")},"setLink"),Pn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)Vn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),Vn=t(function(e,r){br.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Pn(e,"clickable")},"setClickEvent"),ls=t(function(e){br.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:On,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Dr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Dr,"getTaskTags");ee.default.extend(zn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:we,wednesday:Me,thursday:Lt,friday:De,saturday:Ce,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,z=_.getElementById(r);if(Pt=z.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let W=i.db.getTasks(),G=W.filter((b)=>!b.vert),O=[];for(let b of G)O.push(b.type);O=nt(O);let V={},U=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let b={};for(let F of G)if(b[F.section]===void 0)b[F.section]=[F];else b[F.section].push(F);let I=0;for(let F of Object.keys(b)){let P=ms(b[F],I)+1;I+=P,U+=P*(s.barHeight+s.barGap),V[F]=P}}else{U+=G.length*(s.barHeight+s.barGap);for(let b of O)V[b]=G.filter((I)=>I.type===b).length}z.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=D.select(`[id="${r}"]`),H=er().domain([gn(W,function(b){return b.startTime}),$n(W,function(b){return b.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(b,I){let F=b.startTime,P=I.startTime,d=0;if(F>P)d=1;else if(F<P)d=-1;return d}t(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),B(Z,U,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(b,I,F){let P=s.barHeight,d=P+s.barGap,{topPadding:w,leftPadding:x}=s,k=kt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Vr);j(d,w,x,I,F,b,i.db.getExcludes(),i.db.getIncludes()),f(x,w,I,F),at(b,d,w,x,P,k,I,F),N(d,w,x,P,k),rt(x,w,I,F)}t(ft,"makeGantt");function at(b,I,F,P,d,w,x){b.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=b.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*I+F-2}).attr("width",function(){return x-s.rightPadding/2}).attr("height",I).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(b).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+P+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+P}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*I+F}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return H(m.renderEndTime||m.endTime)-H(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+P+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*I+F+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of O.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=H(m.startTime),K=H(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(H(m.endTime)-H(m.startTime))-0.5*d,K=q+d;if(m.vert)return H(m.startTime)+P;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>x)return q+P-5;else return K+P+5;else return(K-q)/2+q+P}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*I+s.barHeight/2+(s.fontSize/2-2)+F}).attr("text-height",d).attr("class",function(m){let q=H(m.startTime),K=H(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of O.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>x)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(b,I,F,P,d,w,x,k){if(x.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,x,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+F).attr("y",s.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-I-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+F+0.5*(H(K.end)-H(K.start))).toString()+"px "+(ut*b+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(b,I,F,P){if(F<=0||b>I)return 1/0;let d=I-b,w=ee.default.duration({[P??"day"]:F}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(b,I,F,P){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),x;if(w)x=w;else if(d==="D")x="%d";else x=s.axisFormat??"%Y-%m-%d";let k=He(H).tickSize(-P+I+s.gridLineStartPadding).tickFormat(Xt(x)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=H.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+(P-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(H).tickSize(-P+I+s.gridLineStartPadding).tickFormat(Xt(x));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=H.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+I+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function N(b,I){let F=0,P=Object.keys(V).map((d)=>[d,V[d]]);Z.append("g").selectAll("text").data(P).enter().append(function(d){let w=d[0].split(v.lineBreakRegex),x=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",x+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let x=0;x<w;x++)return F+=P[w-1][1],d[1]*b/2+F*b+I;else return d[1]*b/2+I}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,x]of O.entries())if(d[0]===x)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(N,"vertLabels");function rt(b,I,F,P){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),x=new Date,k=w.append("line");if(k.attr("x1",H(x)+b).attr("x2",H(x)+b).attr("y1",s.titleTopMargin).attr("y2",P-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(b){let I={},F=[];for(let P=0,d=b.length;P<d;++P)if(!Object.prototype.hasOwnProperty.call(I,b[P]))I[b[P]]=!0,F.push(b[P]);return F}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
7
7
  .mermaid-main-font {
8
- font-family: ${t.fontFamily};
8
+ font-family: ${e.fontFamily};
9
9
  }
10
10
 
11
11
  .exclude-range {
12
- fill: ${t.excludeBkgColor};
12
+ fill: ${e.excludeBkgColor};
13
13
  }
14
14
 
15
15
  .section {
@@ -18,52 +18,52 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
18
18
  }
19
19
 
20
20
  .section0 {
21
- fill: ${t.sectionBkgColor};
21
+ fill: ${e.sectionBkgColor};
22
22
  }
23
23
 
24
24
  .section2 {
25
- fill: ${t.sectionBkgColor2};
25
+ fill: ${e.sectionBkgColor2};
26
26
  }
27
27
 
28
28
  .section1,
29
29
  .section3 {
30
- fill: ${t.altSectionBkgColor};
30
+ fill: ${e.altSectionBkgColor};
31
31
  opacity: 0.2;
32
32
  }
33
33
 
34
34
  .sectionTitle0 {
35
- fill: ${t.titleColor};
35
+ fill: ${e.titleColor};
36
36
  }
37
37
 
38
38
  .sectionTitle1 {
39
- fill: ${t.titleColor};
39
+ fill: ${e.titleColor};
40
40
  }
41
41
 
42
42
  .sectionTitle2 {
43
- fill: ${t.titleColor};
43
+ fill: ${e.titleColor};
44
44
  }
45
45
 
46
46
  .sectionTitle3 {
47
- fill: ${t.titleColor};
47
+ fill: ${e.titleColor};
48
48
  }
49
49
 
50
50
  .sectionTitle {
51
51
  text-anchor: start;
52
- font-family: ${t.fontFamily};
52
+ font-family: ${e.fontFamily};
53
53
  }
54
54
 
55
55
 
56
56
  /* Grid and axis */
57
57
 
58
58
  .grid .tick {
59
- stroke: ${t.gridColor};
59
+ stroke: ${e.gridColor};
60
60
  opacity: 0.8;
61
61
  shape-rendering: crispEdges;
62
62
  }
63
63
 
64
64
  .grid .tick text {
65
- font-family: ${t.fontFamily};
66
- fill: ${t.textColor};
65
+ font-family: ${e.fontFamily};
66
+ fill: ${e.textColor};
67
67
  }
68
68
 
69
69
  .grid path {
@@ -75,7 +75,7 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
75
75
 
76
76
  .today {
77
77
  fill: none;
78
- stroke: ${t.todayLineColor};
78
+ stroke: ${e.todayLineColor};
79
79
  stroke-width: 2px;
80
80
  }
81
81
 
@@ -90,17 +90,17 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
90
90
 
91
91
  .taskText {
92
92
  text-anchor: middle;
93
- font-family: ${t.fontFamily};
93
+ font-family: ${e.fontFamily};
94
94
  }
95
95
 
96
96
  .taskTextOutsideRight {
97
- fill: ${t.taskTextDarkColor};
97
+ fill: ${e.taskTextDarkColor};
98
98
  text-anchor: start;
99
- font-family: ${t.fontFamily};
99
+ font-family: ${e.fontFamily};
100
100
  }
101
101
 
102
102
  .taskTextOutsideLeft {
103
- fill: ${t.taskTextDarkColor};
103
+ fill: ${e.taskTextDarkColor};
104
104
  text-anchor: end;
105
105
  }
106
106
 
@@ -113,19 +113,19 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
113
113
 
114
114
  .taskText.clickable {
115
115
  cursor: pointer;
116
- fill: ${t.taskTextClickableColor} !important;
116
+ fill: ${e.taskTextClickableColor} !important;
117
117
  font-weight: bold;
118
118
  }
119
119
 
120
120
  .taskTextOutsideLeft.clickable {
121
121
  cursor: pointer;
122
- fill: ${t.taskTextClickableColor} !important;
122
+ fill: ${e.taskTextClickableColor} !important;
123
123
  font-weight: bold;
124
124
  }
125
125
 
126
126
  .taskTextOutsideRight.clickable {
127
127
  cursor: pointer;
128
- fill: ${t.taskTextClickableColor} !important;
128
+ fill: ${e.taskTextClickableColor} !important;
129
129
  font-weight: bold;
130
130
  }
131
131
 
@@ -136,26 +136,26 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
136
136
  .taskText1,
137
137
  .taskText2,
138
138
  .taskText3 {
139
- fill: ${t.taskTextColor};
139
+ fill: ${e.taskTextColor};
140
140
  }
141
141
 
142
142
  .task0,
143
143
  .task1,
144
144
  .task2,
145
145
  .task3 {
146
- fill: ${t.taskBkgColor};
147
- stroke: ${t.taskBorderColor};
146
+ fill: ${e.taskBkgColor};
147
+ stroke: ${e.taskBorderColor};
148
148
  }
149
149
 
150
150
  .taskTextOutside0,
151
151
  .taskTextOutside2
152
152
  {
153
- fill: ${t.taskTextOutsideColor};
153
+ fill: ${e.taskTextOutsideColor};
154
154
  }
155
155
 
156
156
  .taskTextOutside1,
157
157
  .taskTextOutside3 {
158
- fill: ${t.taskTextOutsideColor};
158
+ fill: ${e.taskTextOutsideColor};
159
159
  }
160
160
 
161
161
 
@@ -165,15 +165,15 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
165
165
  .active1,
166
166
  .active2,
167
167
  .active3 {
168
- fill: ${t.activeTaskBkgColor};
169
- stroke: ${t.activeTaskBorderColor};
168
+ fill: ${e.activeTaskBkgColor};
169
+ stroke: ${e.activeTaskBorderColor};
170
170
  }
171
171
 
172
172
  .activeText0,
173
173
  .activeText1,
174
174
  .activeText2,
175
175
  .activeText3 {
176
- fill: ${t.taskTextDarkColor} !important;
176
+ fill: ${e.taskTextDarkColor} !important;
177
177
  }
178
178
 
179
179
 
@@ -183,8 +183,8 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
183
183
  .done1,
184
184
  .done2,
185
185
  .done3 {
186
- stroke: ${t.doneTaskBorderColor};
187
- fill: ${t.doneTaskBkgColor};
186
+ stroke: ${e.doneTaskBorderColor};
187
+ fill: ${e.doneTaskBkgColor};
188
188
  stroke-width: 2;
189
189
  }
190
190
 
@@ -192,7 +192,7 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
192
192
  .doneText1,
193
193
  .doneText2,
194
194
  .doneText3 {
195
- fill: ${t.taskTextDarkColor} !important;
195
+ fill: ${e.taskTextDarkColor} !important;
196
196
  }
197
197
 
198
198
  /* Done task text displayed outside the bar sits against the diagram background,
@@ -205,7 +205,7 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
205
205
  .doneText2.taskTextOutsideRight,
206
206
  .doneText3.taskTextOutsideLeft,
207
207
  .doneText3.taskTextOutsideRight {
208
- fill: ${t.taskTextOutsideColor} !important;
208
+ fill: ${e.taskTextOutsideColor} !important;
209
209
  }
210
210
 
211
211
 
@@ -215,8 +215,8 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
215
215
  .crit1,
216
216
  .crit2,
217
217
  .crit3 {
218
- stroke: ${t.critBorderColor};
219
- fill: ${t.critBkgColor};
218
+ stroke: ${e.critBorderColor};
219
+ fill: ${e.critBkgColor};
220
220
  stroke-width: 2;
221
221
  }
222
222
 
@@ -224,8 +224,8 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
224
224
  .activeCrit1,
225
225
  .activeCrit2,
226
226
  .activeCrit3 {
227
- stroke: ${t.critBorderColor};
228
- fill: ${t.activeTaskBkgColor};
227
+ stroke: ${e.critBorderColor};
228
+ fill: ${e.activeTaskBkgColor};
229
229
  stroke-width: 2;
230
230
  }
231
231
 
@@ -233,8 +233,8 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
233
233
  .doneCrit1,
234
234
  .doneCrit2,
235
235
  .doneCrit3 {
236
- stroke: ${t.critBorderColor};
237
- fill: ${t.doneTaskBkgColor};
236
+ stroke: ${e.critBorderColor};
237
+ fill: ${e.doneTaskBkgColor};
238
238
  stroke-width: 2;
239
239
  cursor: pointer;
240
240
  shape-rendering: crispEdges;
@@ -251,7 +251,7 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
251
251
  .doneCritText1,
252
252
  .doneCritText2,
253
253
  .doneCritText3 {
254
- fill: ${t.taskTextDarkColor} !important;
254
+ fill: ${e.taskTextDarkColor} !important;
255
255
  }
256
256
 
257
257
  /* Done-crit task text outside the bar — same reasoning as doneText above. */
@@ -263,30 +263,30 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
263
263
  .doneCritText2.taskTextOutsideRight,
264
264
  .doneCritText3.taskTextOutsideLeft,
265
265
  .doneCritText3.taskTextOutsideRight {
266
- fill: ${t.taskTextOutsideColor} !important;
266
+ fill: ${e.taskTextOutsideColor} !important;
267
267
  }
268
268
 
269
269
  .vert {
270
- stroke: ${t.vertLineColor};
270
+ stroke: ${e.vertLineColor};
271
271
  }
272
272
 
273
273
  .vertText {
274
274
  font-size: 15px;
275
275
  text-anchor: middle;
276
- fill: ${t.vertLineColor} !important;
276
+ fill: ${e.vertLineColor} !important;
277
277
  }
278
278
 
279
279
  .activeCritText0,
280
280
  .activeCritText1,
281
281
  .activeCritText2,
282
282
  .activeCritText3 {
283
- fill: ${t.taskTextDarkColor} !important;
283
+ fill: ${e.taskTextDarkColor} !important;
284
284
  }
285
285
 
286
286
  .titleText {
287
287
  text-anchor: middle;
288
288
  font-size: 18px;
289
- fill: ${t.titleColor||t.textColor};
290
- font-family: ${t.fontFamily};
289
+ fill: ${e.titleColor||e.textColor};
290
+ font-family: ${e.fontFamily};
291
291
  }
292
292
  `,"getStyles"),ks=gs,Bo={parser:_a,db:fs,renderer:ys,styles:ks};export{Bo as diagram};