@bkm016/basalt 0.1.1 → 0.1.2

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 (196) hide show
  1. package/README.md +16 -22
  2. package/chunk-06hdzq5n.js +2 -0
  3. package/chunk-09rj27b2.js +2 -0
  4. package/{chunk-qnr1f5pj.js → chunk-0y7ne3d0.js} +2 -2
  5. package/{chunk-vgvq3q12.js → chunk-10xzzn07.js} +2 -2
  6. package/{chunk-6qertm2t.js → chunk-1qpces5a.js} +1 -1
  7. package/{chunk-nt2gntad.js → chunk-1zdwrgd4.js} +1 -1
  8. package/{chunk-sh74qzvt.js → chunk-27gntzs5.js} +4 -4
  9. package/{chunk-1v7st27a.js → chunk-2esbgxps.js} +14 -14
  10. package/{chunk-exnn1867.js → chunk-362g64pd.js} +1 -1
  11. package/{chunk-1aspj1hn.js → chunk-3cjsd292.js} +2 -2
  12. package/chunk-5c9j8qe4.js +478 -0
  13. package/{chunk-8dxzqwq3.js → chunk-5j1krv9v.js} +1 -1
  14. package/{chunk-vkkj4awb.js → chunk-6hssbcgj.js} +1 -1
  15. package/{chunk-1b7gbe8g.js → chunk-75m78j7x.js} +2 -2
  16. package/{chunk-kfq8wyd3.js → chunk-8296hw9m.js} +1 -1
  17. package/{chunk-szat3vp4.js → chunk-8d46jtbj.js} +2 -2
  18. package/{chunk-qczbfccb.js → chunk-8tjad3r0.js} +4 -4
  19. package/{chunk-agntrqs9.js → chunk-97rzj7f6.js} +1 -1
  20. package/{chunk-k7w7ac9q.js → chunk-981f9dw8.js} +8 -8
  21. package/{chunk-xysny0ve.js → chunk-aefadsy6.js} +2 -2
  22. package/{chunk-jhd54p1b.js → chunk-bannb9xm.js} +1 -1
  23. package/{chunk-a3tqx584.js → chunk-c7x1zq39.js} +1 -1
  24. package/{chunk-rv06x0kn.js → chunk-cjc90f84.js} +1 -1
  25. package/{chunk-x3dnb9sz.js → chunk-d2j735sd.js} +2 -2
  26. package/{chunk-yskm0hsy.js → chunk-d8gtbw9g.js} +1 -1
  27. package/{chunk-rm3kcxq9.js → chunk-fjtvjrkg.js} +13 -13
  28. package/{chunk-h6sw8fbt.js → chunk-fm0k0qtz.js} +1 -1
  29. package/{chunk-1yzt0qm0.js → chunk-fw2bpqmw.js} +1 -1
  30. package/{chunk-45cz26ap.js → chunk-gp7y0fja.js} +13 -13
  31. package/{chunk-2bb01ddq.js → chunk-gzxnene8.js} +1 -1
  32. package/{chunk-a8nyk4k9.js → chunk-hwr56pfj.js} +1 -1
  33. package/{chunk-0hbjv3y6.js → chunk-jwdb0ccj.js} +3 -3
  34. package/{chunk-kf8hq21a.js → chunk-k23t7vhs.js} +5 -5
  35. package/{chunk-bhqyxyap.js → chunk-k506w58v.js} +1 -1
  36. package/{chunk-44ek81ad.js → chunk-k6w6y71k.js} +2 -2
  37. package/chunk-m40gxwq4.js +5 -0
  38. package/chunk-m8vkwdgr.js +5 -0
  39. package/{chunk-f7egr55n.js → chunk-mvfsxdx6.js} +13 -13
  40. package/{chunk-pvncysbb.js → chunk-nbb9trwz.js} +1 -1
  41. package/{chunk-0szjy61m.js → chunk-pbcy6zdt.js} +1 -1
  42. package/chunk-pmqtkqsf.js +2 -0
  43. package/{chunk-hat3s3pr.js → chunk-pxsrqrd0.js} +1 -1
  44. package/{chunk-xsbxykr4.js → chunk-qe0teyn1.js} +1 -1
  45. package/{chunk-2zqny2sy.js → chunk-r7fpkb49.js} +1 -1
  46. package/{chunk-3m7qwfm3.js → chunk-rtzqqngy.js} +3 -3
  47. package/{chunk-6e49xsf5.js → chunk-shadcb9z.js} +2 -2
  48. package/{chunk-0qqb6v41.js → chunk-shhrr741.js} +120 -120
  49. package/{chunk-cv5wsd9m.js → chunk-t6zs4kw0.js} +2 -2
  50. package/{chunk-hcn9cf6v.js → chunk-v258nxcz.js} +1 -1
  51. package/{chunk-a6r4z44b.js → chunk-vk1gxk1t.js} +1 -1
  52. package/{chunk-s37s3k24.js → chunk-x1xss1d7.js} +2 -2
  53. package/{chunk-dakrpbe6.js → chunk-x4874m8e.js} +2 -2
  54. package/{chunk-wx7kdf0b.js → chunk-xfvvh1s5.js} +1 -1
  55. package/{chunk-0yytz0r1.js → chunk-y0m980k3.js} +5 -5
  56. package/{chunk-dhm42y04.js → chunk-y58ygzn9.js} +3 -3
  57. package/{chunk-2wkaw73s.js → chunk-y648fzx0.js} +5 -5
  58. package/{chunk-32at88hc.js → chunk-y7nma9rk.js} +1 -1
  59. package/{chunk-pmc3y1z8.js → chunk-ykens1hy.js} +1 -1
  60. package/{chunk-q8zx3kt6.js → chunk-z55bmysw.js} +1 -1
  61. package/{chunk-qx0m82rw.js → chunk-zmsgwr3s.js} +1 -1
  62. package/{chunk-501zkf9b.js → chunk-ztsjgssj.js} +1 -1
  63. package/compiled.js +5 -5
  64. package/package.json +1 -1
  65. package/ui-test-worker.js +63 -63
  66. package/web/chunk-0sewdyz1.js +1 -0
  67. package/web/{chunk-xbty0rv7.js → chunk-1z5p7a1h.js} +1 -1
  68. package/web/chunk-21ke27j6.js +1 -0
  69. package/web/{chunk-2msj52w6.js → chunk-24k0r5aq.js} +1 -1
  70. package/web/{chunk-a5x2zveg.js → chunk-284a17k8.js} +1 -1
  71. package/web/{chunk-ca682sm6.js → chunk-2pjdtesn.js} +14 -14
  72. package/web/{chunk-z7dcbxws.js → chunk-3mvr2gwh.js} +1 -1
  73. package/web/chunk-3t3zwx9j.js +1 -0
  74. package/web/{chunk-e6jxqbv7.js → chunk-3z93efr4.js} +1 -1
  75. package/web/{chunk-05w4fyzc.js → chunk-43jqvsrg.js} +1 -1
  76. package/web/{chunk-jwzd9tzk.js → chunk-4bry4xds.js} +2 -2
  77. package/web/{chunk-4ks96e4r.js → chunk-5e7ygjdn.js} +1 -1
  78. package/web/{chunk-qefasa1j.js → chunk-5jbf7n5q.js} +1 -1
  79. package/web/{chunk-e32y85kx.js → chunk-5rx8rtsa.js} +1 -1
  80. package/web/chunk-5xc9d5ft.js +1 -0
  81. package/web/{chunk-a1z5qx1r.js → chunk-693m9kt7.js} +3 -3
  82. package/web/{chunk-70qwwwak.js → chunk-6qejm5s2.js} +1 -1
  83. package/web/{chunk-kdyjnwdx.js → chunk-8ah6ce1b.js} +2 -2
  84. package/web/{chunk-5vw9rs4r.js → chunk-8e43yaq3.js} +3 -3
  85. package/web/{chunk-qnaqf0cr.js → chunk-8wye0wbb.js} +1 -1
  86. package/web/{chunk-45fzdcgz.js → chunk-986z0p48.js} +5 -5
  87. package/web/{chunk-y0m8hrwz.js → chunk-9dd1c37b.js} +77 -77
  88. package/web/{chunk-9yakxvjb.js → chunk-9re6yttj.js} +2 -2
  89. package/web/{chunk-2scce33n.js → chunk-abbvjt4e.js} +1 -1
  90. package/web/{chunk-b4wbk7vc.js → chunk-agmkx996.js} +3 -3
  91. package/web/{chunk-hev4hq89.js → chunk-anbn2ttv.js} +2 -2
  92. package/web/chunk-aqm3spxt.js +1139 -0
  93. package/web/{chunk-fk0dh93x.js → chunk-avwpjsxw.js} +5 -5
  94. package/web/chunk-b470hvpk.js +1 -0
  95. package/web/{chunk-9dxjafp2.js → chunk-bt1m87ck.js} +2 -2
  96. package/web/chunk-cqp1d4p0.js +1 -0
  97. package/web/{chunk-ss1bcb0n.js → chunk-ctcrk3qn.js} +2 -2
  98. package/web/{chunk-pf2ab8p8.js → chunk-ctd8bfg2.js} +1 -1
  99. package/web/{chunk-q5ke7a33.js → chunk-cwvtraca.js} +1 -1
  100. package/web/{chunk-yd46jhqv.js → chunk-dk90px7g.js} +1 -1
  101. package/web/{chunk-0mrkjnte.js → chunk-ds7srg4p.js} +1 -1
  102. package/web/{chunk-fscafg24.js → chunk-dt8ss97f.js} +5 -5
  103. package/web/{chunk-9p12mgs6.js → chunk-ezkqa7we.js} +1 -1
  104. package/web/{chunk-f26smjjf.js → chunk-f078k1ej.js} +1 -1
  105. package/web/chunk-fekjj24p.css +1 -0
  106. package/web/{chunk-a3verqw9.js → chunk-fqj9kry9.js} +5 -5
  107. package/web/chunk-frjfamx7.js +8 -0
  108. package/web/{chunk-g4azyef7.js → chunk-fy8ey195.js} +1 -1
  109. package/web/{chunk-wptv8atc.js → chunk-g8ee1csm.js} +1 -1
  110. package/web/{chunk-w880psmw.js → chunk-h31p43qa.js} +1 -1
  111. package/web/chunk-h5p5jsrw.js +1 -0
  112. package/web/chunk-h9fmr6ch.js +1 -0
  113. package/web/{chunk-qh7265qw.js → chunk-jf2ehmvp.js} +2 -2
  114. package/web/{chunk-fz06t6km.js → chunk-jmnaq7c1.js} +1 -1
  115. package/web/chunk-jq0pw0k2.js +1 -0
  116. package/web/{chunk-p3b9crsa.js → chunk-jvj66qhs.js} +2 -2
  117. package/web/{chunk-xjxv8dg8.js → chunk-jzmzhj8z.js} +4 -4
  118. package/web/chunk-k4cfnvyq.js +1 -0
  119. package/web/{chunk-dt462hk9.js → chunk-kgerjbn4.js} +1 -1
  120. package/web/{chunk-bc78qf1m.js → chunk-kww4azv5.js} +5 -5
  121. package/web/chunk-m29dhjkh.js +1 -0
  122. package/web/chunk-mj6tee5h.js +1 -0
  123. package/web/{chunk-jrcyc9s9.js → chunk-mjpjkyd1.js} +1 -1
  124. package/web/{chunk-20q90epj.js → chunk-n8sky2q6.js} +1 -1
  125. package/web/{chunk-fm2ybfj5.js → chunk-pk3ap3wh.js} +4 -4
  126. package/web/{chunk-bgnnrpna.js → chunk-q1pkntc6.js} +4 -4
  127. package/web/{chunk-taynqrgq.js → chunk-qryrg2pq.js} +2 -2
  128. package/web/{chunk-gqw3f02j.js → chunk-r92sbgwv.js} +5 -5
  129. package/web/{chunk-0vt9fg48.js → chunk-raqqscwa.js} +2 -2
  130. package/web/{chunk-3jhyzmnf.js → chunk-rc2vq9wz.js} +3 -3
  131. package/web/{chunk-2ps6mepk.js → chunk-rkj743fg.js} +3 -3
  132. package/web/{chunk-e53wfgb8.js → chunk-rrws61wf.js} +1 -1
  133. package/web/{chunk-9an7cjd9.js → chunk-s3hwejnr.js} +2 -2
  134. package/web/{chunk-dzwxgqgm.js → chunk-s3rdx28k.js} +2 -2
  135. package/web/{chunk-2m12wyrb.js → chunk-shbw6wg8.js} +1 -1
  136. package/web/chunk-szcy5z56.js +1 -0
  137. package/web/{chunk-tmvakq7n.js → chunk-t1xk6hca.js} +4 -4
  138. package/web/chunk-t2hhdg9r.js +1 -0
  139. package/web/chunk-tj4cmkwe.js +1 -0
  140. package/web/{chunk-bjkc94mv.js → chunk-tn1xzmgx.js} +1 -1
  141. package/web/{chunk-4v8en1yw.js → chunk-tnv7z83q.js} +1 -1
  142. package/web/chunk-v2b5q0n5.js +1 -0
  143. package/web/{chunk-3ee04tmm.js → chunk-vj6kstpp.js} +5 -5
  144. package/web/{chunk-b1pe46zz.js → chunk-vjqmnkh2.js} +1 -1
  145. package/web/{chunk-qd8bxxdj.js → chunk-vkc149rb.js} +1 -1
  146. package/web/{chunk-v28fx2nd.js → chunk-vny496ba.js} +1 -1
  147. package/web/{chunk-rpmpttbk.js → chunk-vz5ck6x9.js} +1 -1
  148. package/web/{chunk-y49fhfda.js → chunk-xa88zgkr.js} +1 -1
  149. package/web/{chunk-q0p5xqe1.js → chunk-xdcs8qz3.js} +4 -4
  150. package/web/chunk-y5x74t89.js +1 -0
  151. package/web/{chunk-xrxne80b.js → chunk-yen2kkn2.js} +1 -1
  152. package/web/{chunk-bj90t5gh.js → chunk-yjv2c45j.js} +4 -4
  153. package/web/chunk-yx3dh5hg.js +1 -0
  154. package/web/chunk-yz4fmtk2.js +1 -0
  155. package/web/{chunk-8p4tc9f4.js → chunk-z24vs8q9.js} +3 -3
  156. package/web/chunk-z5j6x6j8.js +2 -0
  157. package/web/chunk-z5stjrhc.js +1 -0
  158. package/web/{chunk-90kp4pnz.js → chunk-z760wagr.js} +1 -1
  159. package/web/{chunk-tqmwd9qp.js → chunk-znvnb9dh.js} +1 -1
  160. package/web/{chunk-22a4ety5.js → chunk-zrzq29e6.js} +1 -1
  161. package/web/{icon-yx2p2pye.svg → icon-1wgy7kzy.svg} +13 -13
  162. package/web/icon.svg +13 -13
  163. package/web/index.html +2 -2
  164. package/web/install.sh +0 -0
  165. package/web/sw.js +9 -0
  166. package/worker.js +1 -1
  167. package/chunk-09vr609h.js +0 -2
  168. package/chunk-58vz2qsq.js +0 -2
  169. package/chunk-c25s4w6a.js +0 -5
  170. package/chunk-t057xfrt.js +0 -5
  171. package/chunk-wjd9fr23.js +0 -2
  172. package/chunk-zef13k3h.js +0 -471
  173. package/web/chunk-2pver6r4.js +0 -1
  174. package/web/chunk-37ajk6zg.js +0 -2
  175. package/web/chunk-4wkm9fda.js +0 -1
  176. package/web/chunk-amzgyy1k.js +0 -1
  177. package/web/chunk-cff5hcm8.js +0 -8
  178. package/web/chunk-esp1mmgr.js +0 -1
  179. package/web/chunk-ew3cgdtd.js +0 -1
  180. package/web/chunk-gjq1pxw3.js +0 -1
  181. package/web/chunk-h5ejbf6e.js +0 -1
  182. package/web/chunk-jjh5jvva.js +0 -1
  183. package/web/chunk-k5btcvbg.js +0 -1
  184. package/web/chunk-kpvgecwy.js +0 -1
  185. package/web/chunk-kq40ss39.js +0 -1
  186. package/web/chunk-q7dsnvpf.js +0 -1
  187. package/web/chunk-rg426vkf.js +0 -1
  188. package/web/chunk-ry9256r7.js +0 -1
  189. package/web/chunk-scpwc9ev.js +0 -1
  190. package/web/chunk-ssy07dd2.js +0 -1
  191. package/web/chunk-tgpbhzn9.js +0 -1
  192. package/web/chunk-vt40e1kp.js +0 -1136
  193. package/web/chunk-w53rba6g.js +0 -1
  194. package/web/chunk-w86n42dy.js +0 -1
  195. package/web/chunk-wtawdeej.css +0 -1
  196. package/web/chunk-zde7mj43.js +0 -1
@@ -1,9 +1,9 @@
1
- import{e,ka,r,y,B,C,S,E,T,A,I,L,s,p,En,kr,An,Pi,qe,lo,on,Gn,N}from"./chunk-y0m8hrwz.js";import"./chunk-0mrkjnte.js";import{On,mn}from"./chunk-ttg6tbwx.js";import{nr,Pr,na,Or,xt}from"./chunk-90kp4pnz.js";import{Nt}from"./chunk-ry9256r7.js";import{Ce,Se}from"./chunk-vt40e1kp.js";var vn=Se(function(rr,ir){(function(t,n){typeof rr=="object"&&typeof ir<"u"?ir.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=n()})(rr,function(){var t="day";return function(n,i,a){var o=function(M){return M.add(4-M.isoWeekday(),t)},c=i.prototype;c.isoWeekYear=function(){return o(this).year()},c.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),t);var D,R,W,G,O=o(this),z=(D=this.isoWeekYear(),R=this.$u,W=(R?a.utc:a)().year(D).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,t));return O.diff(z,"week")+1},c.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var l=c.startOf;c.startOf=function(M,D){var R=this.$utils(),W=!!R.u(D)||D;return R.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(M,D)}}})});var xn=Se(function(ar,sr){(function(t,n){typeof ar=="object"&&typeof sr<"u"?sr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=n()})(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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,l={},M=function(U){return(U=+U)+(U>68?1900:2000)},D=function(U){return function(Z){this[U]=+Z}},R=[/[+-]\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=l[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=l.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:[c,function(U){this.afternoon=G(U,!1)}],a:[c,function(U){this.afternoon=G(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[o,D("seconds")],ss:[o,D("seconds")],m:[o,D("minutes")],mm:[o,D("minutes")],H:[o,D("hours")],h:[o,D("hours")],HH:[o,D("hours")],hh:[o,D("hours")],D:[o,D("day")],DD:[a,D("day")],Do:[c,function(U){var Z=l.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:[o,D("week")],ww:[a,D("week")],M:[o,D("month")],MM:[a,D("month")],MMM:[c,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:[c,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,D("year")],YY:[a,function(U){this.year=M(U)}],YYYY:[/\d{4}/,D("year")],Z:R,ZZ:R};function z(U){var Z,H;Z=U,H=l&&l.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var F=b&&b.toUpperCase();return nt||H[b]||t[b]||H[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,V,d){return V||d.slice(1)})})).match(n),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],_=O[j],f=_&&_[0],P=_&&_[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,F=0;b<ft;b+=1){var Y=tt[b];if(typeof Y=="string")F+=Y.length;else{var{regex:V,parser:d}=Y,w=rt.slice(F),x=V.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(v){var Q=v.afternoon;if(Q!==void 0){var u=v.hours;Q?u<12&&(v.hours+=12):u===12&&(v.hours=0),delete v.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(M=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:_,args:f}=at;this.$u=_;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,F=f[2];nt&&(F=f[2]),l=this.$locale(),!rt&&F&&(l=H.Ls[F]),this.$d=function(w,x,v,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var u=z(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=u,k=new Date,X=mt||(J||h?1:k.getDate()),et=J||k.getFullYear(),g=0;J&&!h||(g=h>0?h-1:k.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,g,X,st,ot,yt,gt+60*lt.offset*1000)):v?new Date(Date.UTC(et,g,X,st,ot,yt,gt)):(ht=new Date(et,g,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,P,_,H),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),b&&j!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var Y=P.length,V=1;V<=Y;V+=1){f[1]=P[V-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===Y&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(or,cr){(function(t,n){typeof or=="object"&&typeof cr<"u"?cr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=n()})(or,function(){return function(t,n){var i=n.prototype,a=i.format;i.format=function(o){var c=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var M=this.$utils(),D=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(R){switch(R){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return l.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return l.ordinal(c.week(),"W");case"w":case"ww":return M.s(c.week(),R==="w"?1:2,"0");case"W":case"WW":return M.s(c.isoWeek(),R==="W"?1:2,"0");case"k":case"kk":return M.s(String(c.$H===0?24:c.$H),R==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1000);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return R}});return a.bind(this)(D)}}})});var wn=Se(function(ur,lr){(function(t,n){typeof ur=="object"&&typeof lr<"u"?lr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=n()})(ur,function(){var t,n,i=1000,a=60000,o=3600000,c=86400000,l=31536000000,M=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:l,months:M,days:c,hours:o,minutes:a,seconds:i,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,_,f){return new ft(j,f,_.$l)},z=function(j){return n.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,_){return j?U(j)?{negative:!0,format:""+H(j)+_}:{negative:!1,format:""+j+_}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return O(f*W[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(Y){nt.$d[z(Y)]=f[Y]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(D);if(b){var F=b.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var _=j.prototype;return _.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*W[rt]},0)},_.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/l),f%=l,this.$d.months=Z(f/M),f%=M,this.$d.days=Z(f/c),f%=c,this.$d.hours=Z(f/o),f%=o,this.$d.minutes=Z(f/a),f%=a,this.$d.seconds=Z(f/i),f%=i,this.$d.milliseconds=f},_.toISOString=function(){var f=tt(this.$d.years,"Y"),P=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"),F=tt(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var V=tt(Y,"S"),d=f.negative||P.negative||nt.negative||b.negative||F.negative||V.negative,w=b.format||F.format||V.format?"T":"",x=(d?"-":"")+"P"+f.format+P.format+nt.format+w+b.format+F.format+V.format;return x==="P"||x==="-P"?"P0D":x},_.toJSON=function(){return this.toISOString()},_.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return P.replace(R,function(nt,b){return b||String(rt[nt])})},_.as=function(f){return this.$ms/W[z(f)]},_.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/W[rt]):this.$d[rt],P||0},_.add=function(f,P,rt){var nt;return nt=P?f*W[z(P)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},_.subtract=function(f,P){return this.add(f,P,!0)},_.locale=function(f){var P=this.clone();return P.$l=f,P},_.clone=function(){return O(this.$ms,this)},_.humanize=function(f){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get("milliseconds")},_.asMilliseconds=function(){return this.as("milliseconds")},_.seconds=function(){return this.get("seconds")},_.asSeconds=function(){return this.as("seconds")},_.minutes=function(){return this.get("minutes")},_.asMinutes=function(){return this.as("minutes")},_.hours=function(){return this.get("hours")},_.asHours=function(){return this.as("hours")},_.days=function(){return this.get("days")},_.asDays=function(){return this.as("days")},_.weeks=function(){return this.get("weeks")},_.asWeeks=function(){return this.as("weeks")},_.months=function(){return this.get("months")},_.asMonths=function(){return this.as("months")},_.years=function(){return this.get("years")},_.asYears=function(){return this.as("years")},j}(),at=function(j,_,f){return j.add(_.years()*f,"y").add(_.months()*f,"M").add(_.days()*f,"d").add(_.hours()*f,"h").add(_.minutes()*f,"m").add(_.seconds()*f,"s").add(_.milliseconds()*f,"ms")};return function(j,_,f){t=f,n=f().$utils(),f.duration=function(nt,b){var F=f.locale();return O(nt,{$l:F},b)},f.isDuration=G;var P=_.prototype.add,rt=_.prototype.subtract;_.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):P.bind(this)(nt,b)},_.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 Bn(t){return"translate("+t+",0)"}function Zn(t){return"translate(0,"+t+")"}function jn(t){return(n)=>+t(n)}function Xn(t,n){if(n=Math.max(0,t.bandwidth()-n*2)/2,t.round())n=Math.round(n);return(i)=>+t(i)+n}function qn(){return!this.__axis}function Yr(t,n){var i=[],a=null,o=null,c=6,l=6,M=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,R=t===ye||t===he?-1:1,W=t===he||t===Ae?"x":"y",G=t===ye||t===Oe?Bn:Zn;function O(z){var U=a==null?n.ticks?n.ticks.apply(n,i):n.domain():a,Z=o==null?n.tickFormat?n.tickFormat.apply(n,i):Ee:o,H=Math.max(c,0)+M,tt=n.range(),ft=+tt[0]+D,at=+tt[tt.length-1]+D,j=(n.bandwidth?Xn:jn)(n.copy(),D),_=z.selection?z.selection():z,f=_.selectAll(".domain").data([null]),P=_.selectAll(".tick").data(U,n).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),b=P.select("line"),F=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",R*c)),F=F.merge(nt.append("text").attr("fill","currentColor").attr(W,R*H).attr("dy",t===ye?"0em":t===Oe?"0.71em":"0.32em")),z!==_)f=f.transition(z),P=P.transition(z),b=b.transition(z),F=F.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(Y){return isFinite(Y=j(Y))?G(Y+D):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(Y){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(Y))?V:j(Y))+D)});rt.remove(),f.attr("d",t===he||t===Ae?l?"M"+R*l+","+ft+"H"+D+"V"+at+"H"+R*l:"M"+D+","+ft+"V"+at:l?"M"+ft+","+R*l+"V"+D+"H"+at+"V"+R*l:"M"+ft+","+D+"H"+at),P.attr("opacity",1).attr("transform",function(Y){return G(j(Y)+D)}),b.attr(W+"2",R*c),F.attr(W,R*H).text(Z),_.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ae?"start":t===he?"end":"middle"),_.each(function(){this.__axis=j})}return O.scale=function(z){return arguments.length?(n=z,O):n},O.ticks=function(){return i=Array.from(arguments),O},O.tickArguments=function(z){return arguments.length?(i=z==null?[]:Array.from(z),O):i.slice()},O.tickValues=function(z){return arguments.length?(a=z==null?null:Array.from(z),O):a&&a.slice()},O.tickFormat=function(z){return arguments.length?(o=z,O):o},O.tickSize=function(z){return arguments.length?(c=l=+z,O):c},O.tickSizeInner=function(z){return arguments.length?(c=+z,O):c},O.tickSizeOuter=function(z){return arguments.length?(l=+z,O):l},O.tickPadding=function(z){return arguments.length?(M=+z,O):M},O.offset=function(z){return arguments.length?(D=+z,O):D},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 $r(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof At)return Nr(t);if(!(t instanceof qe))t=Pi(t);var n=ze(t.r),i=ze(t.g),a=ze(t.b),o=Ne((0.2225045*n+0.7168786*i+0.0606169*a)/Lr),c,l;if(n===i&&i===a)c=l=o;else c=Ne((0.4360747*n+0.3850649*i+0.1430804*a)/Ur),l=Ne((0.0139322*n+0.0971045*i+0.7141733*a)/Wr);return new Ft(116*o-16,500*(c-o),200*(o-l),t.opacity)}function Hr(t,n,i,a){return arguments.length===1?$r(t):new Ft(t,n,i,a==null?1:a)}function Ft(t,n,i,a){this.l=+t,this.a=+n,this.b=+i,this.opacity=+a}En(Ft,Hr,kr(An,{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,n=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return n=Ur*Pe(n),t=Lr*Pe(t),i=Wr*Pe(i),new qe(Ve(3.1338561*n-1.6168667*t-0.4906146*i),Ve(-0.9787684*n+1.9161415*t+0.033454*i),Ve(0.0719453*n-0.2289914*t+1.4052427*i),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=$r(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 n=Math.atan2(t.b,t.a)*Ir;return new At(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,n,i,a){return arguments.length===1?Jn(t):new At(t,n,i,a==null?1:a)}function At(t,n,i,a){this.h=+t,this.c=+n,this.l=+i,this.opacity=+a}function Nr(t){if(isNaN(t.h))return new Ft(t.l,0,0,t.opacity);var n=t.h*Fr;return new Ft(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}En(At,ke,kr(An,{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 Nr(this).rgb()}}));function Vr(t){return function(n,i){var a=t((n=ke(n)).h,(i=ke(i)).h),o=on(n.c,i.c),c=on(n.l,i.l),l=on(n.opacity,i.opacity);return function(M){return n.h=a(M),n.c=o(M),n.l=c(M),n.opacity=l(M),n+""}}}var zr=Vr(lo),Ls=Vr(on);function Re(t,n){t=t.slice();var i=0,a=t.length-1,o=t[i],c=t[a],l;if(c<o)l=i,i=a,a=l,l=o,o=c,c=l;return t[i]=n.floor(o),t[a]=n.ceil(c),t}var Be=new Date,Ze=new Date;function dt(t,n,i,a){function o(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}if(o.floor=(c)=>(t(c=new Date(+c)),c),o.ceil=(c)=>(t(c=new Date(c-1)),n(c,1),t(c),c),o.round=(c)=>{let l=o(c),M=o.ceil(c);return c-l<M-c?l:M},o.offset=(c,l)=>(n(c=new Date(+c),l==null?1:Math.floor(l)),c),o.range=(c,l,M)=>{let D=[];if(c=o.ceil(c),M=M==null?1:Math.floor(M),!(c<l)||!(M>0))return D;let R;do D.push(R=new Date(+c)),n(c,M),t(c);while(R<c&&c<l);return D},o.filter=(c)=>dt((l)=>{if(l>=l)while(t(l),!c(l))l.setTime(l-1)},(l,M)=>{if(l>=l)if(M<0)while(++M<=0)while(n(l,-1),!c(l));else while(--M>=0)while(n(l,1),!c(l));}),i)o.count=(c,l)=>(Be.setTime(+c),Ze.setTime(+l),t(Be),t(Ze),Math.floor(i(Be,Ze))),o.every=(c)=>(c=Math.floor(c),!isFinite(c)||!(c>0)?null:!(c>1)?o:o.filter(a?(l)=>a(l)%c===0:(l)=>o.count(0,l)%c===0));return o}var It=dt(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);It.every=(t)=>{if(t=Math.floor(t),!isFinite(t)||!(t>0))return null;if(!(t>1))return It;return dt((n)=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t)};var Rr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((t)=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*Ct)},(t,n)=>(n-t)/Ct,(t)=>t.getUTCSeconds()),Br=bt.range;var Ot=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct)},(t,n)=>{t.setTime(+t+n*vt)},(t,n)=>(n-t)/vt,(t)=>t.getMinutes()),Kn=Ot.range,Te=dt((t)=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*vt)},(t,n)=>(n-t)/vt,(t)=>t.getUTCMinutes()),ti=Te.range;var $t=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct-t.getMinutes()*vt)},(t,n)=>{t.setTime(+t+n*Ut)},(t,n)=>(n-t)/Ut,(t)=>t.getHours()),ei=$t.range,ve=dt((t)=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Ut)},(t,n)=>(n-t)/Ut,(t)=>t.getUTCHours()),ri=ve.range;var St=dt((t)=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Vt,(t)=>t.getDate()-1),ni=St.range,oe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Vt,(t)=>t.getUTCDate()-1),ii=oe.range,xe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Vt,(t)=>Math.floor(t/Vt)),ai=xe.range;function Bt(t){return dt((n)=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+i*7)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),be=Bt(2),we=Bt(3),Lt=Bt(4),Me=Bt(5),De=Bt(6),Zr=_t.range,si=zt.range,oi=be.range,ci=we.range,ui=Lt.range,li=Me.range,fi=De.range;function Zt(t){return dt((n)=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+i*7)},(n,i)=>(i-n)/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 Ht=dt((t)=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,(t)=>t.getMonth()),pi=Ht.range,_e=dt((t)=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,(t)=>t.getUTCMonth()),Ti=_e.range;var wt=dt((t)=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),(t)=>t.getFullYear());wt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((n)=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)});var vi=wt.range,Yt=dt((t)=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),(t)=>t.getUTCFullYear());Yt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((n)=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)});var xi=Yt.range;function Jr(t,n,i,a,o,c){let l=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[c,1,vt],[c,5,5*vt],[c,15,15*vt],[c,30,30*vt],[o,1,Ut],[o,3,3*Ut],[o,6,6*Ut],[o,12,12*Ut],[a,1,Vt],[a,2,2*Vt],[i,1,se],[n,1,je],[n,3,3*je],[t,1,pe]];function M(R,W,G){let O=W<R;if(O)[R,W]=[W,R];let z=G&&typeof G.range==="function"?G:D(R,W,G),U=z?z.range(R,+W+1):[];return O?U.reverse():U}function D(R,W,G){let O=Math.abs(W-R)/G,z=nr(([,,H])=>H).right(l,O);if(z===l.length)return t.every(Pr(R/pe,W/pe,G));if(z===0)return It.every(Math.max(Pr(R,W,G),1));let[U,Z]=l[O/l[z-1][2]<l[z][2]/O?z-1:z];return U.every(Z)}return[M,D]}var[bi,wi]=Jr(Yt,_e,jt,xe,ve,Te),[Xe,Ge]=Jr(wt,Ht,_t,St,$t,Ot);function Qe(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}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 n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function Ke(t){var{dateTime:n,date:i,time:a,periods:o,days:c,shortDays:l,months:M,shortMonths:D}=t,R=ue(o),W=le(o),G=ue(c),O=le(c),z=ue(l),U=le(l),Z=ue(M),H=le(M),tt=ue(D),ft=le(D),at={a:v,A:Q,b:u,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:ra,Y:aa,Z:oa,"%":cn},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:ba,G:Ma,H:ca,I:ua,j:la,L:hn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:pa,w:Ta,W:va,x:null,X:null,y:xa,Y:wa,Z:Da,"%":cn},_={a:b,A:F,b:Y,B:V,c:d,d:rn,e:rn,f:Hi,g:en,G:tn,H:nn,I:nn,j:Ei,L:$i,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:Oi,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Ni};at.x=f(i,at),at.X=f(a,at),at.c=f(n,at),j.x=f(i,j),j.X=f(a,j),j.c=f(n,j);function f(k,X){return function(et){var g=[],ht=-1,st=0,ot=k.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(k.charCodeAt(ht)===37){if(g.push(k.slice(st,ht)),(gt=Kr[yt=k.charAt(++ht)])!=null)yt=k.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);g.push(yt),st=ht+1}return g.push(k.slice(st,ht)),g.join("")}}function P(k,X){return function(et){var g=ce(1900,void 0,1),ht=rt(g,k,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in g)return new Date(g.Q);if("s"in g)return new Date(g.s*1000+("L"in g?g.L:0));if(X&&!("Z"in g))g.Z=0;if("p"in g)g.H=g.H%12+g.p*12;if(g.m===void 0)g.m="q"in g?g.q:0;if("V"in g){if(g.V<1||g.V>53)return null;if(!("w"in g))g.w=1;if("Z"in g)st=Je(ce(g.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(g.V-1)*7),g.y=st.getUTCFullYear(),g.m=st.getUTCMonth(),g.d=st.getUTCDate()+(g.w+6)%7;else st=Qe(ce(g.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(g.V-1)*7),g.y=st.getFullYear(),g.m=st.getMonth(),g.d=st.getDate()+(g.w+6)%7}else if("W"in g||"U"in g){if(!("w"in g))g.w="u"in g?g.u%7:("W"in g)?1:0;ot="Z"in g?Je(ce(g.y,0,1)).getUTCDay():Qe(ce(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(ot+5)%7:g.w+g.U*7-(ot+6)%7}if("Z"in g)return g.H+=g.Z/100|0,g.M+=g.Z%100,Je(g);return Qe(g)}}function rt(k,X,et,g){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(g>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=_[yt in Kr?X.charAt(ht++):yt],!gt||(g=gt(k,et,g))<0)return-1}else if(yt!=et.charCodeAt(g++))return-1}return g}function nt(k,X,et){var g=R.exec(X.slice(et));return g?(k.p=W.get(g[0].toLowerCase()),et+g[0].length):-1}function b(k,X,et){var g=z.exec(X.slice(et));return g?(k.w=U.get(g[0].toLowerCase()),et+g[0].length):-1}function F(k,X,et){var g=G.exec(X.slice(et));return g?(k.w=O.get(g[0].toLowerCase()),et+g[0].length):-1}function Y(k,X,et){var g=tt.exec(X.slice(et));return g?(k.m=ft.get(g[0].toLowerCase()),et+g[0].length):-1}function V(k,X,et){var g=Z.exec(X.slice(et));return g?(k.m=H.get(g[0].toLowerCase()),et+g[0].length):-1}function d(k,X,et){return rt(k,n,X,et)}function w(k,X,et){return rt(k,i,X,et)}function x(k,X,et){return rt(k,a,X,et)}function v(k){return l[k.getDay()]}function Q(k){return c[k.getDay()]}function u(k){return D[k.getMonth()]}function J(k){return M[k.getMonth()]}function h(k){return o[+(k.getHours()>=12)]}function mt(k){return 1+~~(k.getMonth()/3)}function m(k){return l[k.getUTCDay()]}function q(k){return c[k.getUTCDay()]}function K(k){return D[k.getUTCMonth()]}function ut(k){return M[k.getUTCMonth()]}function lt(k){return o[+(k.getUTCHours()>=12)]}function it(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var X=f(k+="",at);return X.toString=function(){return k},X},parse:function(k){var X=P(k+="",!1);return X.toString=function(){return k},X},utcFormat:function(k){var X=f(k+="",j);return X.toString=function(){return k},X},utcParse:function(k){var X=P(k+="",!0);return X.toString=function(){return k},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(t,n,i){var a=t<0?"-":"",o=(a?-t:t)+"",c=o.length;return a+(c<i?Array(i-c+1).join(n)+o:o)}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((n,i)=>[n.toLowerCase(),i]))}function Si(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.w=+a[0],i+a[0].length):-1}function _i(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.u=+a[0],i+a[0].length):-1}function Yi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.U=+a[0],i+a[0].length):-1}function Fi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.V=+a[0],i+a[0].length):-1}function Ii(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.W=+a[0],i+a[0].length):-1}function tn(t,n,i){var a=pt.exec(n.slice(i,i+4));return a?(t.y=+a[0],i+a[0].length):-1}function en(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2000),i+a[0].length):-1}function Ui(t,n,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function Li(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.q=a[0]*3-3,i+a[0].length):-1}function Wi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.m=a[0]-1,i+a[0].length):-1}function rn(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.d=+a[0],i+a[0].length):-1}function Ei(t,n,i){var a=pt.exec(n.slice(i,i+3));return a?(t.m=0,t.d=+a[0],i+a[0].length):-1}function nn(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.H=+a[0],i+a[0].length):-1}function Ai(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.M=+a[0],i+a[0].length):-1}function Oi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.S=+a[0],i+a[0].length):-1}function $i(t,n,i){var a=pt.exec(n.slice(i,i+3));return a?(t.L=+a[0],i+a[0].length):-1}function Hi(t,n,i){var a=pt.exec(n.slice(i,i+6));return a?(t.L=Math.floor(a[0]/1000),i+a[0].length):-1}function Ni(t,n,i){var a=Mi.exec(n.slice(i,i+1));return a?i+a[0].length:-1}function Vi(t,n,i){var a=pt.exec(n.slice(i));return a?(t.Q=+a[0],i+a[0].length):-1}function zi(t,n,i){var a=pt.exec(n.slice(i));return a?(t.s=+a[0],i+a[0].length):-1}function an(t,n){return ct(t.getDate(),n,2)}function Ri(t,n){return ct(t.getHours(),n,2)}function Bi(t,n){return ct(t.getHours()%12||12,n,2)}function Zi(t,n){return ct(1+St.count(wt(t),t),n,3)}function fn(t,n){return ct(t.getMilliseconds(),n,3)}function ji(t,n){return fn(t,n)+"000"}function Xi(t,n){return ct(t.getMonth()+1,n,2)}function Gi(t,n){return ct(t.getMinutes(),n,2)}function qi(t,n){return ct(t.getSeconds(),n,2)}function Qi(t){var n=t.getDay();return n===0?7:n}function Ji(t,n){return ct(_t.count(wt(t)-1,t),n,2)}function dn(t){var n=t.getDay();return n>=4||n===0?Lt(t):Lt.ceil(t)}function Ki(t,n){return t=dn(t),ct(Lt.count(wt(t),t)+(wt(t).getDay()===4),n,2)}function ta(t){return t.getDay()}function ea(t,n){return ct(zt.count(wt(t)-1,t),n,2)}function ra(t,n){return ct(t.getFullYear()%100,n,2)}function ia(t,n){return t=dn(t),ct(t.getFullYear()%100,n,2)}function aa(t,n){return ct(t.getFullYear()%1e4,n,4)}function sa(t,n){var i=t.getDay();return t=i>=4||i===0?Lt(t):Lt.ceil(t),ct(t.getFullYear()%1e4,n,4)}function oa(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ct(n/60|0,"0",2)+ct(n%60,"0",2)}function sn(t,n){return ct(t.getUTCDate(),n,2)}function ca(t,n){return ct(t.getUTCHours(),n,2)}function ua(t,n){return ct(t.getUTCHours()%12||12,n,2)}function la(t,n){return ct(1+oe.count(Yt(t),t),n,3)}function hn(t,n){return ct(t.getUTCMilliseconds(),n,3)}function fa(t,n){return hn(t,n)+"000"}function da(t,n){return ct(t.getUTCMonth()+1,n,2)}function ma(t,n){return ct(t.getUTCMinutes(),n,2)}function ha(t,n){return ct(t.getUTCSeconds(),n,2)}function ya(t){var n=t.getUTCDay();return n===0?7:n}function ga(t,n){return ct(jt.count(Yt(t)-1,t),n,2)}function yn(t){var n=t.getUTCDay();return n>=4||n===0?Rt(t):Rt.ceil(t)}function pa(t,n){return t=yn(t),ct(Rt.count(Yt(t),t)+(Yt(t).getUTCDay()===4),n,2)}function Ta(t){return t.getUTCDay()}function va(t,n){return ct(Jt.count(Yt(t)-1,t),n,2)}function xa(t,n){return ct(t.getUTCFullYear()%100,n,2)}function ba(t,n){return t=yn(t),ct(t.getUTCFullYear()%100,n,2)}function wa(t,n){return ct(t.getUTCFullYear()%1e4,n,4)}function Ma(t,n){var i=t.getUTCDay();return t=i>=4||i===0?Rt(t):Rt.ceil(t),ct(t.getUTCFullYear()%1e4,n,4)}function Da(){return"+0000"}function cn(){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 Ca(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,n,i,a,o,c,l,M,D,R){var W=Or(),{invert:G,domain:O}=W,z=R(".%L"),U=R(":%S"),Z=R("%I:%M"),H=R("%I %p"),tt=R("%a %d"),ft=R("%b %d"),at=R("%B"),j=R("%Y");function _(f){return(D(f)<f?z:M(f)<f?U:l(f)<f?Z:c(f)<f?H:a(f)<f?o(f)<f?tt:ft:i(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(Ca)},W.ticks=function(f){var P=O();return t(P[0],P[P.length-1],f==null?10:f)},W.tickFormat=function(f,P){return P==null?_:R(P)},W.nice=function(f){var P=O();if(!f||typeof f.range!=="function")f=n(P[0],P[P.length-1],f==null?10:f);return f?O(Re(P,f)):W},W.copy=function(){return na(W,Tn(t,n,i,a,o,c,l,M,D,R))},W}function er(){return Nt.apply(Tn(Xe,Ge,wt,Ht,_t,St,$t,Ot,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Gn(),1),Mt=Ce(ka(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(ka(),1),Rn=Ce(wn(),1);var dr=function(){var t=e(function(V,d,w,x){for(w=w||{},x=V.length;x--;w[V[x]]=d);return w},"o"),n=[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],i=[1,26],a=[1,27],o=[1,28],c=[1,29],l=[1,30],M=[1,31],D=[1,32],R=[1,33],W=[1,34],G=[1,9],O=[1,10],z=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],_=[1,21],f=[1,22],P=[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,v,Q,u,J){var h=u.length-1;switch(Q){case 1:return u[h-1];case 2:this.$=[];break;case 3:u[h-1].push(u[h]),this.$=u[h-1];break;case 4:case 5:this.$=u[h];break;case 6:case 7:this.$=[];break;case 8:v.setWeekday("monday");break;case 9:v.setWeekday("tuesday");break;case 10:v.setWeekday("wednesday");break;case 11:v.setWeekday("thursday");break;case 12:v.setWeekday("friday");break;case 13:v.setWeekday("saturday");break;case 14:v.setWeekday("sunday");break;case 15:v.setWeekend("friday");break;case 16:v.setWeekend("saturday");break;case 17:v.setDateFormat(u[h].substr(11)),this.$=u[h].substr(11);break;case 18:v.enableInclusiveEndDates(),this.$=u[h].substr(18);break;case 19:v.TopAxis(),this.$=u[h].substr(8);break;case 20:v.setAxisFormat(u[h].substr(11)),this.$=u[h].substr(11);break;case 21:v.setTickInterval(u[h].substr(13)),this.$=u[h].substr(13);break;case 22:v.setExcludes(u[h].substr(9)),this.$=u[h].substr(9);break;case 23:v.setIncludes(u[h].substr(9)),this.$=u[h].substr(9);break;case 24:v.setTodayMarker(u[h].substr(12)),this.$=u[h].substr(12);break;case 27:v.setDiagramTitle(u[h].substr(6)),this.$=u[h].substr(6);break;case 28:this.$=u[h].trim(),v.setAccTitle(this.$);break;case 29:case 30:this.$=u[h].trim(),v.setAccDescription(this.$);break;case 31:v.addSection(u[h].substr(8)),this.$=u[h].substr(8);break;case 33:v.addTask(u[h-1],u[h]),this.$="task";break;case 34:this.$=u[h-1],v.setClickEvent(u[h-1],u[h],null);break;case 35:this.$=u[h-2],v.setClickEvent(u[h-2],u[h-1],u[h]);break;case 36:this.$=u[h-2],v.setClickEvent(u[h-2],u[h-1],null),v.setLink(u[h-2],u[h]);break;case 37:this.$=u[h-3],v.setClickEvent(u[h-3],u[h-2],u[h-1]),v.setLink(u[h-3],u[h]);break;case 38:this.$=u[h-2],v.setClickEvent(u[h-2],u[h],null),v.setLink(u[h-2],u[h-1]);break;case 39:this.$=u[h-3],v.setClickEvent(u[h-3],u[h-1],u[h]),v.setLink(u[h-3],u[h-2]);break;case 40:this.$=u[h-1],v.setLink(u[h-1],u[h]);break;case 41:case 47:this.$=u[h-1]+" "+u[h];break;case 42:case 43:case 45:this.$=u[h-2]+" "+u[h-1]+" "+u[h];break;case 44:case 46:this.$=u[h-3]+" "+u[h-2]+" "+u[h-1]+" "+u[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:a,14:o,15:c,16:l,17:M,18:D,19:18,20:R,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:i,13:a,14:o,15:c,16:l,17:M,18:D,19:18,20:R,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[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],v=[],Q=[null],u=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=u.slice.call(arguments,1),it=Object.create(this.lexer),k={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))k.yy[X]=this.yy[X];if(it.setInput(d,k.yy),k.yy.lexer=it,k.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;u.push(et);var g=it.options&&it.options.ranges;if(typeof k.yy.parseError==="function")this.parseError=k.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,u.length=u.length-Dt}e(ht,"popStack");function st(){var Dt=v.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)v=Dt,Dt=v.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{e,ka,r,y,B,C,S,E,T,A,I,L,s,p,En,kr,An,Pi,qe,lo,on,Gn,N}from"./chunk-9dd1c37b.js";import"./chunk-ds7srg4p.js";import{On,mn}from"./chunk-ttg6tbwx.js";import{nr,Pr,na,Or,xt}from"./chunk-z760wagr.js";import{Mt}from"./chunk-cqp1d4p0.js";import{Ce,Se}from"./chunk-aqm3spxt.js";var vn=Se(function(rr,ir){(function(t,n){typeof rr=="object"&&typeof ir<"u"?ir.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=n()})(rr,function(){var t="day";return function(n,i,a){var o=function(M){return M.add(4-M.isoWeekday(),t)},c=i.prototype;c.isoWeekYear=function(){return o(this).year()},c.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),t);var D,R,W,G,O=o(this),z=(D=this.isoWeekYear(),R=this.$u,W=(R?a.utc:a)().year(D).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,t));return O.diff(z,"week")+1},c.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var l=c.startOf;c.startOf=function(M,D){var R=this.$utils(),W=!!R.u(D)||D;return R.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(M,D)}}})});var xn=Se(function(ar,sr){(function(t,n){typeof ar=="object"&&typeof sr<"u"?sr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=n()})(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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,l={},M=function(U){return(U=+U)+(U>68?1900:2000)},D=function(U){return function(Z){this[U]=+Z}},R=[/[+-]\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=l[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=l.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:[c,function(U){this.afternoon=G(U,!1)}],a:[c,function(U){this.afternoon=G(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[o,D("seconds")],ss:[o,D("seconds")],m:[o,D("minutes")],mm:[o,D("minutes")],H:[o,D("hours")],h:[o,D("hours")],HH:[o,D("hours")],hh:[o,D("hours")],D:[o,D("day")],DD:[a,D("day")],Do:[c,function(U){var Z=l.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:[o,D("week")],ww:[a,D("week")],M:[o,D("month")],MM:[a,D("month")],MMM:[c,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:[c,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,D("year")],YY:[a,function(U){this.year=M(U)}],YYYY:[/\d{4}/,D("year")],Z:R,ZZ:R};function z(U){var Z,H;Z=U,H=l&&l.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var F=b&&b.toUpperCase();return nt||H[b]||t[b]||H[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,V,d){return V||d.slice(1)})})).match(n),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],_=O[j],f=_&&_[0],P=_&&_[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,F=0;b<ft;b+=1){var Y=tt[b];if(typeof Y=="string")F+=Y.length;else{var{regex:V,parser:d}=Y,w=rt.slice(F),x=V.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(v){var Q=v.afternoon;if(Q!==void 0){var u=v.hours;Q?u<12&&(v.hours+=12):u===12&&(v.hours=0),delete v.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(M=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:_,args:f}=at;this.$u=_;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,F=f[2];nt&&(F=f[2]),l=this.$locale(),!rt&&F&&(l=H.Ls[F]),this.$d=function(w,x,v,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var u=z(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=u,k=new Date,X=mt||(J||h?1:k.getDate()),et=J||k.getFullYear(),g=0;J&&!h||(g=h>0?h-1:k.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,g,X,st,ot,yt,gt+60*lt.offset*1000)):v?new Date(Date.UTC(et,g,X,st,ot,yt,gt)):(ht=new Date(et,g,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,P,_,H),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),b&&j!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var Y=P.length,V=1;V<=Y;V+=1){f[1]=P[V-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===Y&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(or,cr){(function(t,n){typeof or=="object"&&typeof cr<"u"?cr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=n()})(or,function(){return function(t,n){var i=n.prototype,a=i.format;i.format=function(o){var c=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var M=this.$utils(),D=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(R){switch(R){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return l.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return l.ordinal(c.week(),"W");case"w":case"ww":return M.s(c.week(),R==="w"?1:2,"0");case"W":case"WW":return M.s(c.isoWeek(),R==="W"?1:2,"0");case"k":case"kk":return M.s(String(c.$H===0?24:c.$H),R==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1000);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return R}});return a.bind(this)(D)}}})});var wn=Se(function(ur,lr){(function(t,n){typeof ur=="object"&&typeof lr<"u"?lr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=n()})(ur,function(){var t,n,i=1000,a=60000,o=3600000,c=86400000,l=31536000000,M=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:l,months:M,days:c,hours:o,minutes:a,seconds:i,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,_,f){return new ft(j,f,_.$l)},z=function(j){return n.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,_){return j?U(j)?{negative:!0,format:""+H(j)+_}:{negative:!1,format:""+j+_}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return O(f*W[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(Y){nt.$d[z(Y)]=f[Y]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(D);if(b){var F=b.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var _=j.prototype;return _.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*W[rt]},0)},_.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/l),f%=l,this.$d.months=Z(f/M),f%=M,this.$d.days=Z(f/c),f%=c,this.$d.hours=Z(f/o),f%=o,this.$d.minutes=Z(f/a),f%=a,this.$d.seconds=Z(f/i),f%=i,this.$d.milliseconds=f},_.toISOString=function(){var f=tt(this.$d.years,"Y"),P=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"),F=tt(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var V=tt(Y,"S"),d=f.negative||P.negative||nt.negative||b.negative||F.negative||V.negative,w=b.format||F.format||V.format?"T":"",x=(d?"-":"")+"P"+f.format+P.format+nt.format+w+b.format+F.format+V.format;return x==="P"||x==="-P"?"P0D":x},_.toJSON=function(){return this.toISOString()},_.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return P.replace(R,function(nt,b){return b||String(rt[nt])})},_.as=function(f){return this.$ms/W[z(f)]},_.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/W[rt]):this.$d[rt],P||0},_.add=function(f,P,rt){var nt;return nt=P?f*W[z(P)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},_.subtract=function(f,P){return this.add(f,P,!0)},_.locale=function(f){var P=this.clone();return P.$l=f,P},_.clone=function(){return O(this.$ms,this)},_.humanize=function(f){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get("milliseconds")},_.asMilliseconds=function(){return this.as("milliseconds")},_.seconds=function(){return this.get("seconds")},_.asSeconds=function(){return this.as("seconds")},_.minutes=function(){return this.get("minutes")},_.asMinutes=function(){return this.as("minutes")},_.hours=function(){return this.get("hours")},_.asHours=function(){return this.as("hours")},_.days=function(){return this.get("days")},_.asDays=function(){return this.as("days")},_.weeks=function(){return this.get("weeks")},_.asWeeks=function(){return this.as("weeks")},_.months=function(){return this.get("months")},_.asMonths=function(){return this.as("months")},_.years=function(){return this.get("years")},_.asYears=function(){return this.as("years")},j}(),at=function(j,_,f){return j.add(_.years()*f,"y").add(_.months()*f,"M").add(_.days()*f,"d").add(_.hours()*f,"h").add(_.minutes()*f,"m").add(_.seconds()*f,"s").add(_.milliseconds()*f,"ms")};return function(j,_,f){t=f,n=f().$utils(),f.duration=function(nt,b){var F=f.locale();return O(nt,{$l:F},b)},f.isDuration=G;var P=_.prototype.add,rt=_.prototype.subtract;_.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):P.bind(this)(nt,b)},_.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 Bn(t){return"translate("+t+",0)"}function Zn(t){return"translate(0,"+t+")"}function jn(t){return(n)=>+t(n)}function Xn(t,n){if(n=Math.max(0,t.bandwidth()-n*2)/2,t.round())n=Math.round(n);return(i)=>+t(i)+n}function qn(){return!this.__axis}function Yr(t,n){var i=[],a=null,o=null,c=6,l=6,M=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,R=t===ye||t===he?-1:1,W=t===he||t===Ae?"x":"y",G=t===ye||t===Oe?Bn:Zn;function O(z){var U=a==null?n.ticks?n.ticks.apply(n,i):n.domain():a,Z=o==null?n.tickFormat?n.tickFormat.apply(n,i):Ee:o,H=Math.max(c,0)+M,tt=n.range(),ft=+tt[0]+D,at=+tt[tt.length-1]+D,j=(n.bandwidth?Xn:jn)(n.copy(),D),_=z.selection?z.selection():z,f=_.selectAll(".domain").data([null]),P=_.selectAll(".tick").data(U,n).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),b=P.select("line"),F=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",R*c)),F=F.merge(nt.append("text").attr("fill","currentColor").attr(W,R*H).attr("dy",t===ye?"0em":t===Oe?"0.71em":"0.32em")),z!==_)f=f.transition(z),P=P.transition(z),b=b.transition(z),F=F.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(Y){return isFinite(Y=j(Y))?G(Y+D):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(Y){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(Y))?V:j(Y))+D)});rt.remove(),f.attr("d",t===he||t===Ae?l?"M"+R*l+","+ft+"H"+D+"V"+at+"H"+R*l:"M"+D+","+ft+"V"+at:l?"M"+ft+","+R*l+"V"+D+"H"+at+"V"+R*l:"M"+ft+","+D+"H"+at),P.attr("opacity",1).attr("transform",function(Y){return G(j(Y)+D)}),b.attr(W+"2",R*c),F.attr(W,R*H).text(Z),_.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ae?"start":t===he?"end":"middle"),_.each(function(){this.__axis=j})}return O.scale=function(z){return arguments.length?(n=z,O):n},O.ticks=function(){return i=Array.from(arguments),O},O.tickArguments=function(z){return arguments.length?(i=z==null?[]:Array.from(z),O):i.slice()},O.tickValues=function(z){return arguments.length?(a=z==null?null:Array.from(z),O):a&&a.slice()},O.tickFormat=function(z){return arguments.length?(o=z,O):o},O.tickSize=function(z){return arguments.length?(c=l=+z,O):c},O.tickSizeInner=function(z){return arguments.length?(c=+z,O):c},O.tickSizeOuter=function(z){return arguments.length?(l=+z,O):l},O.tickPadding=function(z){return arguments.length?(M=+z,O):M},O.offset=function(z){return arguments.length?(D=+z,O):D},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 $r(t){if(t instanceof It)return new It(t.l,t.a,t.b,t.opacity);if(t instanceof Ot)return Nr(t);if(!(t instanceof qe))t=Pi(t);var n=ze(t.r),i=ze(t.g),a=ze(t.b),o=Ne((0.2225045*n+0.7168786*i+0.0606169*a)/Lr),c,l;if(n===i&&i===a)c=l=o;else c=Ne((0.4360747*n+0.3850649*i+0.1430804*a)/Ur),l=Ne((0.0139322*n+0.0971045*i+0.7141733*a)/Wr);return new It(116*o-16,500*(c-o),200*(o-l),t.opacity)}function Hr(t,n,i,a){return arguments.length===1?$r(t):new It(t,n,i,a==null?1:a)}function It(t,n,i,a){this.l=+t,this.a=+n,this.b=+i,this.opacity=+a}En(It,Hr,kr(An,{brighter(t){return new It(this.l+ge*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new It(this.l-ge*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return n=Ur*Pe(n),t=Lr*Pe(t),i=Wr*Pe(i),new qe(Ve(3.1338561*n-1.6168667*t-0.4906146*i),Ve(-0.9787684*n+1.9161415*t+0.033454*i),Ve(0.0719453*n-0.2289914*t+1.4052427*i),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 Ot)return new Ot(t.h,t.c,t.l,t.opacity);if(!(t instanceof It))t=$r(t);if(t.a===0&&t.b===0)return new Ot(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Ir;return new Ot(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,n,i,a){return arguments.length===1?Jn(t):new Ot(t,n,i,a==null?1:a)}function Ot(t,n,i,a){this.h=+t,this.c=+n,this.l=+i,this.opacity=+a}function Nr(t){if(isNaN(t.h))return new It(t.l,0,0,t.opacity);var n=t.h*Fr;return new It(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}En(Ot,ke,kr(An,{brighter(t){return new Ot(this.h,this.c,this.l+ge*(t==null?1:t),this.opacity)},darker(t){return new Ot(this.h,this.c,this.l-ge*(t==null?1:t),this.opacity)},rgb(){return Nr(this).rgb()}}));function Vr(t){return function(n,i){var a=t((n=ke(n)).h,(i=ke(i)).h),o=on(n.c,i.c),c=on(n.l,i.l),l=on(n.opacity,i.opacity);return function(M){return n.h=a(M),n.c=o(M),n.l=c(M),n.opacity=l(M),n+""}}}var zr=Vr(lo),Ls=Vr(on);function Re(t,n){t=t.slice();var i=0,a=t.length-1,o=t[i],c=t[a],l;if(c<o)l=i,i=a,a=l,l=o,o=c,c=l;return t[i]=n.floor(o),t[a]=n.ceil(c),t}var Be=new Date,Ze=new Date;function dt(t,n,i,a){function o(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}if(o.floor=(c)=>(t(c=new Date(+c)),c),o.ceil=(c)=>(t(c=new Date(c-1)),n(c,1),t(c),c),o.round=(c)=>{let l=o(c),M=o.ceil(c);return c-l<M-c?l:M},o.offset=(c,l)=>(n(c=new Date(+c),l==null?1:Math.floor(l)),c),o.range=(c,l,M)=>{let D=[];if(c=o.ceil(c),M=M==null?1:Math.floor(M),!(c<l)||!(M>0))return D;let R;do D.push(R=new Date(+c)),n(c,M),t(c);while(R<c&&c<l);return D},o.filter=(c)=>dt((l)=>{if(l>=l)while(t(l),!c(l))l.setTime(l-1)},(l,M)=>{if(l>=l)if(M<0)while(++M<=0)while(n(l,-1),!c(l));else while(--M>=0)while(n(l,1),!c(l));}),i)o.count=(c,l)=>(Be.setTime(+c),Ze.setTime(+l),t(Be),t(Ze),Math.floor(i(Be,Ze))),o.every=(c)=>(c=Math.floor(c),!isFinite(c)||!(c>0)?null:!(c>1)?o:o.filter(a?(l)=>a(l)%c===0:(l)=>o.count(0,l)%c===0));return o}var Ut=dt(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);Ut.every=(t)=>{if(t=Math.floor(t),!isFinite(t)||!(t>0))return null;if(!(t>1))return Ut;return dt((n)=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t)};var Rr=Ut.range;var St=1000,vt=60000,Lt=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((t)=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*St)},(t,n)=>(n-t)/St,(t)=>t.getUTCSeconds()),Br=bt.range;var $t=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*St)},(t,n)=>{t.setTime(+t+n*vt)},(t,n)=>(n-t)/vt,(t)=>t.getMinutes()),Kn=$t.range,Te=dt((t)=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*vt)},(t,n)=>(n-t)/vt,(t)=>t.getUTCMinutes()),ti=Te.range;var Ht=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*St-t.getMinutes()*vt)},(t,n)=>{t.setTime(+t+n*Lt)},(t,n)=>(n-t)/Lt,(t)=>t.getHours()),ei=Ht.range,ve=dt((t)=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Lt)},(t,n)=>(n-t)/Lt,(t)=>t.getUTCHours()),ri=ve.range;var _t=dt((t)=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Vt,(t)=>t.getDate()-1),ni=_t.range,oe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Vt,(t)=>t.getUTCDate()-1),ii=oe.range,xe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Vt,(t)=>Math.floor(t/Vt)),ai=xe.range;function Bt(t){return dt((n)=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+i*7)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*vt)/se)}var Yt=Bt(0),zt=Bt(1),be=Bt(2),we=Bt(3),Wt=Bt(4),Me=Bt(5),De=Bt(6),Zr=Yt.range,si=zt.range,oi=be.range,ci=we.range,ui=Wt.range,li=Me.range,fi=De.range;function Zt(t){return dt((n)=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+i*7)},(n,i)=>(i-n)/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,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,(t)=>t.getMonth()),pi=Nt.range,_e=dt((t)=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,(t)=>t.getUTCMonth()),Ti=_e.range;var wt=dt((t)=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),(t)=>t.getFullYear());wt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((n)=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)});var vi=wt.range,Ft=dt((t)=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),(t)=>t.getUTCFullYear());Ft.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((n)=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)});var xi=Ft.range;function Jr(t,n,i,a,o,c){let l=[[bt,1,St],[bt,5,5*St],[bt,15,15*St],[bt,30,30*St],[c,1,vt],[c,5,5*vt],[c,15,15*vt],[c,30,30*vt],[o,1,Lt],[o,3,3*Lt],[o,6,6*Lt],[o,12,12*Lt],[a,1,Vt],[a,2,2*Vt],[i,1,se],[n,1,je],[n,3,3*je],[t,1,pe]];function M(R,W,G){let O=W<R;if(O)[R,W]=[W,R];let z=G&&typeof G.range==="function"?G:D(R,W,G),U=z?z.range(R,+W+1):[];return O?U.reverse():U}function D(R,W,G){let O=Math.abs(W-R)/G,z=nr(([,,H])=>H).right(l,O);if(z===l.length)return t.every(Pr(R/pe,W/pe,G));if(z===0)return Ut.every(Math.max(Pr(R,W,G),1));let[U,Z]=l[O/l[z-1][2]<l[z][2]/O?z-1:z];return U.every(Z)}return[M,D]}var[bi,wi]=Jr(Ft,_e,jt,xe,ve,Te),[Xe,Ge]=Jr(wt,Nt,Yt,_t,Ht,$t);function Qe(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}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 n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function Ke(t){var{dateTime:n,date:i,time:a,periods:o,days:c,shortDays:l,months:M,shortMonths:D}=t,R=ue(o),W=le(o),G=ue(c),O=le(c),z=ue(l),U=le(l),Z=ue(M),H=le(M),tt=ue(D),ft=le(D),at={a:v,A:Q,b:u,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:ra,Y:aa,Z:oa,"%":cn},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:ba,G:Ma,H:ca,I:ua,j:la,L:hn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:pa,w:Ta,W:va,x:null,X:null,y:xa,Y:wa,Z:Da,"%":cn},_={a:b,A:F,b:Y,B:V,c:d,d:rn,e:rn,f:Hi,g:en,G:tn,H:nn,I:nn,j:Ei,L:$i,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:Oi,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Ni};at.x=f(i,at),at.X=f(a,at),at.c=f(n,at),j.x=f(i,j),j.X=f(a,j),j.c=f(n,j);function f(k,X){return function(et){var g=[],ht=-1,st=0,ot=k.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(k.charCodeAt(ht)===37){if(g.push(k.slice(st,ht)),(gt=Kr[yt=k.charAt(++ht)])!=null)yt=k.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);g.push(yt),st=ht+1}return g.push(k.slice(st,ht)),g.join("")}}function P(k,X){return function(et){var g=ce(1900,void 0,1),ht=rt(g,k,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in g)return new Date(g.Q);if("s"in g)return new Date(g.s*1000+("L"in g?g.L:0));if(X&&!("Z"in g))g.Z=0;if("p"in g)g.H=g.H%12+g.p*12;if(g.m===void 0)g.m="q"in g?g.q:0;if("V"in g){if(g.V<1||g.V>53)return null;if(!("w"in g))g.w=1;if("Z"in g)st=Je(ce(g.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(g.V-1)*7),g.y=st.getUTCFullYear(),g.m=st.getUTCMonth(),g.d=st.getUTCDate()+(g.w+6)%7;else st=Qe(ce(g.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=_t.offset(st,(g.V-1)*7),g.y=st.getFullYear(),g.m=st.getMonth(),g.d=st.getDate()+(g.w+6)%7}else if("W"in g||"U"in g){if(!("w"in g))g.w="u"in g?g.u%7:("W"in g)?1:0;ot="Z"in g?Je(ce(g.y,0,1)).getUTCDay():Qe(ce(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(ot+5)%7:g.w+g.U*7-(ot+6)%7}if("Z"in g)return g.H+=g.Z/100|0,g.M+=g.Z%100,Je(g);return Qe(g)}}function rt(k,X,et,g){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(g>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=_[yt in Kr?X.charAt(ht++):yt],!gt||(g=gt(k,et,g))<0)return-1}else if(yt!=et.charCodeAt(g++))return-1}return g}function nt(k,X,et){var g=R.exec(X.slice(et));return g?(k.p=W.get(g[0].toLowerCase()),et+g[0].length):-1}function b(k,X,et){var g=z.exec(X.slice(et));return g?(k.w=U.get(g[0].toLowerCase()),et+g[0].length):-1}function F(k,X,et){var g=G.exec(X.slice(et));return g?(k.w=O.get(g[0].toLowerCase()),et+g[0].length):-1}function Y(k,X,et){var g=tt.exec(X.slice(et));return g?(k.m=ft.get(g[0].toLowerCase()),et+g[0].length):-1}function V(k,X,et){var g=Z.exec(X.slice(et));return g?(k.m=H.get(g[0].toLowerCase()),et+g[0].length):-1}function d(k,X,et){return rt(k,n,X,et)}function w(k,X,et){return rt(k,i,X,et)}function x(k,X,et){return rt(k,a,X,et)}function v(k){return l[k.getDay()]}function Q(k){return c[k.getDay()]}function u(k){return D[k.getMonth()]}function J(k){return M[k.getMonth()]}function h(k){return o[+(k.getHours()>=12)]}function mt(k){return 1+~~(k.getMonth()/3)}function m(k){return l[k.getUTCDay()]}function q(k){return c[k.getUTCDay()]}function K(k){return D[k.getUTCMonth()]}function ut(k){return M[k.getUTCMonth()]}function lt(k){return o[+(k.getUTCHours()>=12)]}function it(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var X=f(k+="",at);return X.toString=function(){return k},X},parse:function(k){var X=P(k+="",!1);return X.toString=function(){return k},X},utcFormat:function(k){var X=f(k+="",j);return X.toString=function(){return k},X},utcParse:function(k){var X=P(k+="",!0);return X.toString=function(){return k},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(t,n,i){var a=t<0?"-":"",o=(a?-t:t)+"",c=o.length;return a+(c<i?Array(i-c+1).join(n)+o:o)}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((n,i)=>[n.toLowerCase(),i]))}function Si(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.w=+a[0],i+a[0].length):-1}function _i(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.u=+a[0],i+a[0].length):-1}function Yi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.U=+a[0],i+a[0].length):-1}function Fi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.V=+a[0],i+a[0].length):-1}function Ii(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.W=+a[0],i+a[0].length):-1}function tn(t,n,i){var a=pt.exec(n.slice(i,i+4));return a?(t.y=+a[0],i+a[0].length):-1}function en(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2000),i+a[0].length):-1}function Ui(t,n,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function Li(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.q=a[0]*3-3,i+a[0].length):-1}function Wi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.m=a[0]-1,i+a[0].length):-1}function rn(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.d=+a[0],i+a[0].length):-1}function Ei(t,n,i){var a=pt.exec(n.slice(i,i+3));return a?(t.m=0,t.d=+a[0],i+a[0].length):-1}function nn(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.H=+a[0],i+a[0].length):-1}function Ai(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.M=+a[0],i+a[0].length):-1}function Oi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.S=+a[0],i+a[0].length):-1}function $i(t,n,i){var a=pt.exec(n.slice(i,i+3));return a?(t.L=+a[0],i+a[0].length):-1}function Hi(t,n,i){var a=pt.exec(n.slice(i,i+6));return a?(t.L=Math.floor(a[0]/1000),i+a[0].length):-1}function Ni(t,n,i){var a=Mi.exec(n.slice(i,i+1));return a?i+a[0].length:-1}function Vi(t,n,i){var a=pt.exec(n.slice(i));return a?(t.Q=+a[0],i+a[0].length):-1}function zi(t,n,i){var a=pt.exec(n.slice(i));return a?(t.s=+a[0],i+a[0].length):-1}function an(t,n){return ct(t.getDate(),n,2)}function Ri(t,n){return ct(t.getHours(),n,2)}function Bi(t,n){return ct(t.getHours()%12||12,n,2)}function Zi(t,n){return ct(1+_t.count(wt(t),t),n,3)}function fn(t,n){return ct(t.getMilliseconds(),n,3)}function ji(t,n){return fn(t,n)+"000"}function Xi(t,n){return ct(t.getMonth()+1,n,2)}function Gi(t,n){return ct(t.getMinutes(),n,2)}function qi(t,n){return ct(t.getSeconds(),n,2)}function Qi(t){var n=t.getDay();return n===0?7:n}function Ji(t,n){return ct(Yt.count(wt(t)-1,t),n,2)}function dn(t){var n=t.getDay();return n>=4||n===0?Wt(t):Wt.ceil(t)}function Ki(t,n){return t=dn(t),ct(Wt.count(wt(t),t)+(wt(t).getDay()===4),n,2)}function ta(t){return t.getDay()}function ea(t,n){return ct(zt.count(wt(t)-1,t),n,2)}function ra(t,n){return ct(t.getFullYear()%100,n,2)}function ia(t,n){return t=dn(t),ct(t.getFullYear()%100,n,2)}function aa(t,n){return ct(t.getFullYear()%1e4,n,4)}function sa(t,n){var i=t.getDay();return t=i>=4||i===0?Wt(t):Wt.ceil(t),ct(t.getFullYear()%1e4,n,4)}function oa(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ct(n/60|0,"0",2)+ct(n%60,"0",2)}function sn(t,n){return ct(t.getUTCDate(),n,2)}function ca(t,n){return ct(t.getUTCHours(),n,2)}function ua(t,n){return ct(t.getUTCHours()%12||12,n,2)}function la(t,n){return ct(1+oe.count(Ft(t),t),n,3)}function hn(t,n){return ct(t.getUTCMilliseconds(),n,3)}function fa(t,n){return hn(t,n)+"000"}function da(t,n){return ct(t.getUTCMonth()+1,n,2)}function ma(t,n){return ct(t.getUTCMinutes(),n,2)}function ha(t,n){return ct(t.getUTCSeconds(),n,2)}function ya(t){var n=t.getUTCDay();return n===0?7:n}function ga(t,n){return ct(jt.count(Ft(t)-1,t),n,2)}function yn(t){var n=t.getUTCDay();return n>=4||n===0?Rt(t):Rt.ceil(t)}function pa(t,n){return t=yn(t),ct(Rt.count(Ft(t),t)+(Ft(t).getUTCDay()===4),n,2)}function Ta(t){return t.getUTCDay()}function va(t,n){return ct(Jt.count(Ft(t)-1,t),n,2)}function xa(t,n){return ct(t.getUTCFullYear()%100,n,2)}function ba(t,n){return t=yn(t),ct(t.getUTCFullYear()%100,n,2)}function wa(t,n){return ct(t.getUTCFullYear()%1e4,n,4)}function Ma(t,n){var i=t.getUTCDay();return t=i>=4||i===0?Rt(t):Rt.ceil(t),ct(t.getUTCFullYear()%1e4,n,4)}function Da(){return"+0000"}function cn(){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 Ca(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,n,i,a,o,c,l,M,D,R){var W=Or(),{invert:G,domain:O}=W,z=R(".%L"),U=R(":%S"),Z=R("%I:%M"),H=R("%I %p"),tt=R("%a %d"),ft=R("%b %d"),at=R("%B"),j=R("%Y");function _(f){return(D(f)<f?z:M(f)<f?U:l(f)<f?Z:c(f)<f?H:a(f)<f?o(f)<f?tt:ft:i(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(Ca)},W.ticks=function(f){var P=O();return t(P[0],P[P.length-1],f==null?10:f)},W.tickFormat=function(f,P){return P==null?_:R(P)},W.nice=function(f){var P=O();if(!f||typeof f.range!=="function")f=n(P[0],P[P.length-1],f==null?10:f);return f?O(Re(P,f)):W},W.copy=function(){return na(W,Tn(t,n,i,a,o,c,l,M,D,R))},W}function er(){return Mt.apply(Tn(Xe,Ge,wt,Nt,Yt,_t,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Gn(),1),Dt=Ce(ka(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(ka(),1),Rn=Ce(wn(),1);var dr=function(){var t=e(function(V,d,w,x){for(w=w||{},x=V.length;x--;w[V[x]]=d);return w},"o"),n=[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],i=[1,26],a=[1,27],o=[1,28],c=[1,29],l=[1,30],M=[1,31],D=[1,32],R=[1,33],W=[1,34],G=[1,9],O=[1,10],z=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],_=[1,21],f=[1,22],P=[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,v,Q,u,J){var h=u.length-1;switch(Q){case 1:return u[h-1];case 2:this.$=[];break;case 3:u[h-1].push(u[h]),this.$=u[h-1];break;case 4:case 5:this.$=u[h];break;case 6:case 7:this.$=[];break;case 8:v.setWeekday("monday");break;case 9:v.setWeekday("tuesday");break;case 10:v.setWeekday("wednesday");break;case 11:v.setWeekday("thursday");break;case 12:v.setWeekday("friday");break;case 13:v.setWeekday("saturday");break;case 14:v.setWeekday("sunday");break;case 15:v.setWeekend("friday");break;case 16:v.setWeekend("saturday");break;case 17:v.setDateFormat(u[h].substr(11)),this.$=u[h].substr(11);break;case 18:v.enableInclusiveEndDates(),this.$=u[h].substr(18);break;case 19:v.TopAxis(),this.$=u[h].substr(8);break;case 20:v.setAxisFormat(u[h].substr(11)),this.$=u[h].substr(11);break;case 21:v.setTickInterval(u[h].substr(13)),this.$=u[h].substr(13);break;case 22:v.setExcludes(u[h].substr(9)),this.$=u[h].substr(9);break;case 23:v.setIncludes(u[h].substr(9)),this.$=u[h].substr(9);break;case 24:v.setTodayMarker(u[h].substr(12)),this.$=u[h].substr(12);break;case 27:v.setDiagramTitle(u[h].substr(6)),this.$=u[h].substr(6);break;case 28:this.$=u[h].trim(),v.setAccTitle(this.$);break;case 29:case 30:this.$=u[h].trim(),v.setAccDescription(this.$);break;case 31:v.addSection(u[h].substr(8)),this.$=u[h].substr(8);break;case 33:v.addTask(u[h-1],u[h]),this.$="task";break;case 34:this.$=u[h-1],v.setClickEvent(u[h-1],u[h],null);break;case 35:this.$=u[h-2],v.setClickEvent(u[h-2],u[h-1],u[h]);break;case 36:this.$=u[h-2],v.setClickEvent(u[h-2],u[h-1],null),v.setLink(u[h-2],u[h]);break;case 37:this.$=u[h-3],v.setClickEvent(u[h-3],u[h-2],u[h-1]),v.setLink(u[h-3],u[h]);break;case 38:this.$=u[h-2],v.setClickEvent(u[h-2],u[h],null),v.setLink(u[h-2],u[h-1]);break;case 39:this.$=u[h-3],v.setClickEvent(u[h-3],u[h-1],u[h]),v.setLink(u[h-3],u[h-2]);break;case 40:this.$=u[h-1],v.setLink(u[h-1],u[h]);break;case 41:case 47:this.$=u[h-1]+" "+u[h];break;case 42:case 43:case 45:this.$=u[h-2]+" "+u[h-1]+" "+u[h];break;case 44:case 46:this.$=u[h-3]+" "+u[h-2]+" "+u[h-1]+" "+u[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:a,14:o,15:c,16:l,17:M,18:D,19:18,20:R,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:i,13:a,14:o,15:c,16:l,17:M,18:D,19:18,20:R,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[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],v=[],Q=[null],u=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=u.slice.call(arguments,1),it=Object.create(this.lexer),k={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))k.yy[X]=this.yy[X];if(it.setInput(d,k.yy),k.yy.lexer=it,k.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;u.push(et);var g=it.options&&it.options.ranges;if(typeof k.yy.parseError==="function")this.parseError=k.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Ct){x.length=x.length-2*Ct,Q.length=Q.length-Ct,u.length=u.length-Ct}e(ht,"popStack");function st(){var Ct=v.pop()||it.lex()||ut;if(typeof Ct!=="number"){if(Ct instanceof Array)v=Ct,Ct=v.pop();Ct=w.symbols_[Ct]||Ct}return Ct}e(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,At,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)+`:
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),u.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:u[u.length-(Et||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Et||1)].first_column,last_column:u[u.length-1].last_column},g)qt._$.range=[u[u.length-(Et||1)].range[0],u[u.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,k.yy,Tt[1],Q,u].concat(lt)),typeof Le<"u")return Le;if(Et)x=x.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),u=u.slice(0,-1*Et);x.push(this.productions_[Tt[1]][0]),Q.push(qt.$),u.push(qt._$),Sr=J[x[x.length-2]][x[x.length-1]],x.push(Sr);break;case 3:return!0}}return!0},"parse")},F=function(){var V={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 v=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===v.length?this.yylloc.first_column:0)+v[v.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).
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),u.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(At=this.productions_[Tt[1]][1],qt.$=Q[Q.length-At],qt._$={first_line:u[u.length-(At||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(At||1)].first_column,last_column:u[u.length-1].last_column},g)qt._$.range=[u[u.length-(At||1)].range[0],u[u.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,k.yy,Tt[1],Q,u].concat(lt)),typeof Le<"u")return Le;if(At)x=x.slice(0,-1*At*2),Q=Q.slice(0,-1*At),u=u.slice(0,-1*At);x.push(this.productions_[Tt[1]][0]),Q.push(qt.$),u.push(qt._$),Sr=J[x[x.length-2]][x[x.length-1]],x.push(Sr);break;case 3:return!0}}return!0},"parse")},F=function(){var V={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 v=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===v.length?this.yylloc.first_column:0)+v[v.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
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
5
  `+w+"^"},"showPosition"),test_match:e(function(d,w){var x,v,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(v=d[0].match(/(?:\r\n?|\n).*/g),v)this.yylineno+=v.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.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 u in Q)this[u]=Q[u];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,v;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var u=0;u<Q.length;u++)if(x=this._input.match(this.rules[Q[u]]),x&&(!w||x[0].length>w[0].length)){if(w=x,v=u,this.options.backtrack_lexer)if(d=this.test_match(x,Q[u]),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[v]),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,v,Q){var u=Q;switch(v){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 V}();b.lexer=F;function Y(){this.yy={}}return e(Y,"Parser"),Y.prototype=b,b.Parser=Y,new Y}();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="",pr=void 0,Tr="",ne=[],ie=[],vr=new Map,xr=[],Ie=[],ae="",br="",In=["active","done","crit","milestone","vert"],wr=[],te="",fe=!1,Mr=!1,Dr="sunday",Ue="saturday",mr=0,Ya=e(function(){xr=[],Ie=[],ae="",wr=[],Ye=0,yr=void 0,Fe=void 0,kt=[],Wt="",gr="",br="",pr=void 0,Tr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,vr=new Map,te="",C(),Dr="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){pr=t},"setTickInterval"),Wa=e(function(){return pr},"getTickInterval"),Ea=e(function(t){Tr=t},"setTodayMarker"),Aa=e(function(){return Tr},"getTodayMarker"),Oa=e(function(t){Wt=t},"setDateFormat"),$a=e(function(){fe=!0},"enableInclusiveEndDates"),Ha=e(function(){return fe},"endDatesAreInclusive"),Na=e(function(){Mr=!0},"enableTopAxis"),Pa=e(function(){return Mr},"topAxisEnabled"),Va=e(function(t){br=t},"setDisplayMode"),za=e(function(){return br},"getDisplayMode"),Ra=e(function(){return Wt},"getDateFormat"),Un=e((t,n)=>{let i=n.toLowerCase().split(/[\s,]+/).filter((a)=>a!=="");return[...new Set([...t,...i])]},"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 vr},"getLinks"),qa=e(function(t){ae=t,xr.push(t)},"addSection"),Qa=e(function(){return xr},"getSections"),Ja=e(function(){let t=Dn(),n=10,i=0;while(!t&&i<n)t=Dn(),i++;return Ie=kt,Ie},"getTasks"),Ln=e(function(t,n,i,a){let o=t.format(n.trim()),c=t.format("YYYY-MM-DD");if(a.includes(o)||a.includes(c))return!1;if(i.includes("weekends")&&(t.isoWeekday()===Mn[Ue]||t.isoWeekday()===Mn[Ue]+1))return!0;if(i.includes(t.format("dddd").toLowerCase()))return!0;return i.includes(o)||i.includes(c)},"isInvalidDate"),Ka=e(function(t){Dr=t},"setWeekday"),ts=e(function(){return Dr},"getWeekday"),es=e(function(t){Ue=t},"setWeekend"),Wn=e(function(t,n,i,a){if(!i.length||t.manualEndTime)return;let o;if(t.startTime instanceof Date)o=Mt.default(t.startTime);else o=Mt.default(t.startTime,n,!0);o=o.add(1,"d");let c;if(t.endTime instanceof Date)c=Mt.default(t.endTime);else c=Mt.default(t.endTime,n,!0);let[l,M]=rs(o,c,n,i,a);t.endTime=l.toDate(),t.renderEndTime=M},"checkTaskDates"),rs=e(function(t,n,i,a,o){let c=!1,l=null,M=n.add(1e4,"d");while(t<=n){if(!c)l=n.toDate();if(c=Ln(t,i,a,o),c){if(n=n.add(1,"d"),n>M)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}t=t.add(1,"d")}return[n,l]},"fixTaskDates"),$n=e(function(t,n){r.warn(`Gantt: the "${t}" statement references unknown task id(s): ${n.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,n,i){if(i=i.trim(),e((M)=>{let D=M.trim();return D==="x"||D==="X"},"isTimestampFormat")(n)&&/^\d+$/.test(i))return new Date(Number(i));let c=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(c!==null){let M=null,D=[],R=c.groups.ids.split(" ").filter((G)=>G!=="");for(let G of R){let O=Gt(G);if(O===void 0){D.push(G);continue}if(!M||O.endTime>M.endTime)M=O}if(D.length>0)$n("after",D);if(M)return M.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let l=Mt.default(i,n.trim(),!0);if(l.isValid())return l.toDate();else{r.debug("Invalid date:"+i),r.debug("With date format:"+n.trim());let M=new Date(i);if(M===void 0||isNaN(M.getTime())||M.getFullYear()<-1e4||M.getFullYear()>1e4)throw Error("Invalid date:"+i);return M}},"getStartDate"),Hn=e(function(t){let n=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(n!==null)return[Number.parseFloat(n[1]),n[2]];return[NaN,"ms"]},"parseDuration"),Nn=e(function(t,n,i,a=!1){i=i.trim();let c=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(c!==null){let W=null,G=[],O=c.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)$n("until",G);if(W)return W.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let l=Mt.default(i,n.trim(),!0);if(l.isValid()){if(a)l=l.add(1,"d");return l.toDate()}let M=Mt.default(t),[D,R]=Hn(i);if(Number.isNaN(D))r.warn(`Gantt: "${i}" is neither a valid date for the "${n.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=M.add(D,R);if(W.isValid())M=W}return M.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,n){let i;if(n.substr(0,1)===":")i=n.substr(1,n.length);else i=n;let a=i.split(","),o={};Cr(a,o,In);for(let l=0;l<a.length;l++)a[l]=a[l].trim();let c="";switch(a.length){case 1:o.id=re(),o.startTime=t.endTime,c=a[0];break;case 2:o.id=re(),o.startTime=hr(void 0,Wt,a[0]),c=a[1];break;case 3:o.id=re(a[0]),o.startTime=hr(void 0,Wt,a[1]),c=a[2];break;default:}if(c)o.endTime=Nn(o.startTime,Wt,c,fe),o.manualEndTime=Mt.default(c,"YYYY-MM-DD",!0).isValid(),Wn(o,Wt,ie,ne);return o},"compileData"),is=e(function(t,n){let i;if(n.substr(0,1)===":")i=n.substr(1,n.length);else i=n;let a=i.split(","),o={};Cr(a,o,In);for(let c=0;c<a.length;c++)a[c]=a[c].trim();switch(a.length){case 1:o.id=re(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:a[0]};break;case 2:o.id=re(),o.startTime={type:"getStartDate",startData:a[0]},o.endTime={data:a[1]};break;case 3:o.id=re(a[0]),o.startTime={type:"getStartDate",startData:a[1]},o.endTime={data:a[2]};break;default:}return o},"parseData"),yr,Fe,kt=[],Pn={},as=e(function(t,n){let i={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},a=is(Fe,n);if(i.raw.startTime=a.startTime,i.raw.endTime=a.endTime,i.id=a.id,i.prevTaskId=Fe,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,i.vert)i.order=-1;else i.order=mr,mr++;let o=kt.push(i);Fe=i.id,Pn[i.id]=o-1},"addTask"),Gt=e(function(t){let n=Pn[t];return kt[n]},"findTaskById"),ss=e(function(t,n){let i={section:ae,type:ae,description:t,task:t,classes:[]},a=ns(yr,n);i.startTime=a.startTime,i.endTime=a.endTime,i.id=a.id,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,yr=i,Ie.push(i)},"addTaskOrg"),Dn=e(function(){let t=e(function(i){let a=kt[i],o="";switch(kt[i].raw.startTime.type){case"prevTaskEnd":{let c=Gt(a.prevTaskId);a.startTime=c.endTime;break}case"getStartDate":if(o=hr(void 0,Wt,kt[i].raw.startTime.startData),o)kt[i].startTime=o;break}if(kt[i].startTime){if(kt[i].endTime=Nn(kt[i].startTime,Wt,kt[i].raw.endTime.data,fe),kt[i].endTime)kt[i].processed=!0,kt[i].manualEndTime=Mt.default(kt[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(kt[i],Wt,ie,ne)}return kt[i].processed},"compileTask"),n=!0;for(let[i,a]of kt.entries())t(i),n=n&&a.processed;return n},"compileTasks"),os=e(function(t,n){let i=n;if(s().securityLevel!=="loose")i=Sn.sanitizeUrl(n);t.split(",").forEach(function(a){if(Gt(a)!==void 0)zn(a,()=>{window.open(i,"_self")}),vr.set(a,i)}),Vn(t,"clickable")},"setLink"),Vn=e(function(t,n){t.split(",").forEach(function(i){let a=Gt(i);if(a!==void 0)a.classes.push(n)})},"setClass"),cs=e(function(t,n,i){if(s().securityLevel!=="loose")return;if(n===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let c=0;c<a.length;c++){let l=a[c].trim();if(l.startsWith('"')&&l.endsWith('"'))l=l.substr(1,l.length-2);a[c]=l}}if(a.length===0)a.push(t);if(Gt(t)!==void 0)zn(t,()=>{N.runFunc(n,...a)})},"setClickFun"),zn=e(function(t,n){wr.push(function(){let i=te?`${te}-${t}`:t,a=document.querySelector(`[id="${i}"]`);if(a!==null)a.addEventListener("click",function(){n()})},function(){let i=te?`${te}-${t}`:t,a=document.querySelector(`[id="${i}-text"]`);if(a!==null)a.addEventListener("click",function(){n()})})},"pushFun"),us=e(function(t,n,i){t.split(",").forEach(function(a){cs(a,n,i)}),Vn(t,"clickable")},"setClickEvent"),ls=e(function(t){wr.forEach(function(n){n(t)})},"bindFunctions"),fs={getConfig:e(()=>s().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:I,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:Hn,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(t,n,i){let a=!0;while(a)a=!1,i.forEach(function(o){let c="^\\s*"+o+"\\s*$",l=new RegExp(c);if(t[0].match(l))n[o]=!0,t.shift(1),a=!0})}e(Cr,"getTaskTags");ee.default.extend(Rn.default);var ds=e(function(){r.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:be,wednesday:we,thursday:Lt,friday:Me,saturday:De,sunday:_t},ms=e((t,n)=>{let i=[...t].map(()=>-1/0),a=[...t].sort((c,l)=>c.startTime-l.startTime||c.order-l.order),o=0;for(let c of a)for(let l=0;l<i.length;l++)if(c.startTime>=i[l]){if(i[l]=c.endTime,c.order=l+n,l>o)o=l;break}return o},"getMaxIntersections"),Pt,fr=1e4,hs=e(function(t,n,i,a){let o=s().gantt;a.db.setDiagramId(n);let c=s().securityLevel,l;if(c==="sandbox")l=p("#i"+n);let M=c==="sandbox"?p(l.nodes()[0].contentDocument.body):p("body"),D=c==="sandbox"?l.nodes()[0].contentDocument:document,R=D.getElementById(n);if(Pt=R.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(o.useWidth!==void 0)Pt=o.useWidth;let W=a.db.getTasks(),G=W.filter((b)=>!b.vert),O=[];for(let b of G)O.push(b.type);O=nt(O);let z={},U=2*o.topPadding;if(a.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let b={};for(let Y of G)if(b[Y.section]===void 0)b[Y.section]=[Y];else b[Y.section].push(Y);let F=0;for(let Y of Object.keys(b)){let V=ms(b[Y],F)+1;F+=V,U+=V*(o.barHeight+o.barGap),z[Y]=V}}else{U+=G.length*(o.barHeight+o.barGap);for(let b of O)z[b]=G.filter((F)=>F.type===b).length}R.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=M.select(`[id="${n}"]`),H=er().domain([mn(W,function(b){return b.startTime}),On(W,function(b){return b.endTime})]).rangeRound([0,Pt-o.leftPadding-o.rightPadding]);function tt(b,F){let Y=b.startTime,V=F.startTime,d=0;if(Y>V)d=1;else if(Y<V)d=-1;return d}e(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),B(Z,U,Pt,o.useMaxWidth),Z.append("text").text(a.db.getDiagramTitle()).attr("x",Pt/2).attr("y",o.titleTopMargin).attr("class","titleText");function ft(b,F,Y){let V=o.barHeight,d=V+o.barGap,{topPadding:w,leftPadding:x}=o,v=xt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(zr);j(d,w,x,F,Y,b,a.db.getExcludes(),a.db.getIncludes()),f(x,w,F,Y),at(b,d,w,x,V,v,F,Y),P(d,w,x,V,v),rt(x,w,F,Y)}e(ft,"makeGantt");function at(b,F,Y,V,d,w,x){b.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let v=b.filter((m)=>!m.vert),u=[...new Set(v.map((m)=>m.order))].map((m)=>v.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*F+Y-2}).attr("width",function(){return x-o.rightPadding/2}).attr("height",F).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%o.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(b).enter(),h=a.db.getLinks();if(J.append("rect").attr("id",function(m){return n+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return o.gridLineStartPadding;return q*F+Y}).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 v.length*(o.barHeight+o.barGap)+o.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*F+Y+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,k]of O.entries())if(m.type===k)ut=it%o.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 n+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",o.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)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*o.leftPadding>x)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return o.gridLineStartPadding+v.length*(o.barHeight+o.barGap)+60;return q=m.order,q*F+o.barHeight/2+(o.fontSize/2-2)+Y}).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%o.numberSectionStyles;let k="";if(m.active)if(m.crit)k="activeCritText"+it;else k="activeText"+it;if(m.done)if(m.crit)k=k+" doneCritText"+it;else k=k+" doneText"+it;else if(m.crit)k=k+" critText"+it;if(m.milestone)k+=" milestoneText";if(m.vert)k+=" vertText";if(ut>K-q)if(K+ut+1.5*o.leftPadding>x)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+k;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+k+" width-"+ut;else return lt+" taskText taskText"+it+" "+k+" width-"+ut}),s().securityLevel==="sandbox"){let m;m=p("#i"+n);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(n+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(n+"-"+K.id+"-text"));let it=ut.parentNode;var k=q.createElement("a");k.setAttribute("xlink:href",h.get(K.id)),k.setAttribute("target","_top"),it.appendChild(k),k.appendChild(ut),k.appendChild(lt)})}}e(at,"drawRects");function j(b,F,Y,V,d,w,x,v){if(x.length===0&&v.length===0)return;let Q,u;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(u===void 0||ut>u)u=ut}if(!Q||!u)return;if(ee.default(u).diff(ee.default(Q),"year")>5){r.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=a.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=u){if(a.db.isInvalidDate(m,J,x,v))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)=>n+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+Y).attr("y",o.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-F-o.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+Y+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 _(b,F,Y,V){if(Y<=0||b>F)return 1/0;let d=F-b,w=ee.default.duration({[V??"day"]:Y}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}e(_,"getEstimatedTickCount");function f(b,F,Y,V){let d=a.db.getDateFormat(),w=a.db.getAxisFormat(),x;if(w)x=w;else if(d==="D")x="%d";else x=o.axisFormat??"%Y-%m-%d";let v=He(H).tickSize(-V+F+o.gridLineStartPadding).tickFormat(Xt(x)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(u!==null){let J=parseInt(u[1],10);if(isNaN(J)||J<=0)r.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let h=u[2],mt=a.db.getWeekday()||o.weekday,m=H.domain(),q=m[0],K=m[1],ut=_(q,K,J,h);if(ut>fr)r.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":v.ticks(It.every(J));break;case"second":v.ticks(bt.every(J));break;case"minute":v.ticks(Ot.every(J));break;case"hour":v.ticks($t.every(J));break;case"day":v.ticks(St.every(J));break;case"week":v.ticks(Cn[mt].every(J));break;case"month":v.ticks(Ht.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+(V-50)+")").call(v).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let J=$e(H).tickSize(-V+F+o.gridLineStartPadding).tickFormat(Xt(x));if(u!==null){let h=parseInt(u[1],10);if(isNaN(h)||h<=0)r.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let mt=u[2],m=a.db.getWeekday()||o.weekday,q=H.domain(),K=q[0],ut=q[1];if(_(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(Ot.every(h));break;case"hour":J.ticks($t.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Ht.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+F+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(f,"makeGrid");function P(b,F){let Y=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(y.lineBreakRegex),x=-(w.length-1)/2,v=D.createElementNS("http://www.w3.org/2000/svg","text");v.setAttribute("dy",x+"em");for(let[Q,u]of w.entries()){let J=D.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=u,v.appendChild(J)}return v}).attr("x",10).attr("y",function(d,w){if(w>0)for(let x=0;x<w;x++)return Y+=V[w-1][1],d[1]*b/2+Y*b+F;else return d[1]*b/2+F}).attr("font-size",o.sectionFontSize).attr("class",function(d){for(let[w,x]of O.entries())if(d[0]===x)return"sectionTitle sectionTitle"+w%o.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function rt(b,F,Y,V){let d=a.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),x=new Date,v=w.append("line");if(v.attr("x1",H(x)+b).attr("x2",H(x)+b).attr("y1",o.titleTopMargin).attr("y2",V-o.titleTopMargin).attr("class","today"),d!=="")v.attr("style",d.replace(/,/g,";"))}e(rt,"drawToday");function nt(b){let F={},Y=[];for(let V=0,d=b.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(F,b[V]))F[b[V]]=!0,Y.push(b[V]);return Y}e(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=e((t)=>`
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,v,Q){var u=Q;switch(v){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 V}();b.lexer=F;function Y(){this.yy={}}return e(Y,"Parser"),Y.prototype=b,b.Parser=Y,new Y}();dr.parser=dr;var _a=dr;Dt.default.extend(_n.default);Dt.default.extend(Yn.default);Dt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Et="",gr="",pr=void 0,Tr="",ne=[],ie=[],vr=new Map,xr=[],Ie=[],ae="",br="",In=["active","done","crit","milestone","vert"],wr=[],te="",fe=!1,Mr=!1,Dr="sunday",Ue="saturday",mr=0,Ya=e(function(){xr=[],Ie=[],ae="",wr=[],Ye=0,yr=void 0,Fe=void 0,kt=[],Et="",gr="",br="",pr=void 0,Tr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,vr=new Map,te="",C(),Dr="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){pr=t},"setTickInterval"),Wa=e(function(){return pr},"getTickInterval"),Ea=e(function(t){Tr=t},"setTodayMarker"),Aa=e(function(){return Tr},"getTodayMarker"),Oa=e(function(t){Et=t},"setDateFormat"),$a=e(function(){fe=!0},"enableInclusiveEndDates"),Ha=e(function(){return fe},"endDatesAreInclusive"),Na=e(function(){Mr=!0},"enableTopAxis"),Pa=e(function(){return Mr},"topAxisEnabled"),Va=e(function(t){br=t},"setDisplayMode"),za=e(function(){return br},"getDisplayMode"),Ra=e(function(){return Et},"getDateFormat"),Un=e((t,n)=>{let i=n.toLowerCase().split(/[\s,]+/).filter((a)=>a!=="");return[...new Set([...t,...i])]},"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 vr},"getLinks"),qa=e(function(t){ae=t,xr.push(t)},"addSection"),Qa=e(function(){return xr},"getSections"),Ja=e(function(){let t=Dn(),n=10,i=0;while(!t&&i<n)t=Dn(),i++;return Ie=kt,Ie},"getTasks"),Ln=e(function(t,n,i,a){let o=t.format(n.trim()),c=t.format("YYYY-MM-DD");if(a.includes(o)||a.includes(c))return!1;if(i.includes("weekends")&&(t.isoWeekday()===Mn[Ue]||t.isoWeekday()===Mn[Ue]+1))return!0;if(i.includes(t.format("dddd").toLowerCase()))return!0;return i.includes(o)||i.includes(c)},"isInvalidDate"),Ka=e(function(t){Dr=t},"setWeekday"),ts=e(function(){return Dr},"getWeekday"),es=e(function(t){Ue=t},"setWeekend"),Wn=e(function(t,n,i,a){if(!i.length||t.manualEndTime)return;let o;if(t.startTime instanceof Date)o=Dt.default(t.startTime);else o=Dt.default(t.startTime,n,!0);o=o.add(1,"d");let c;if(t.endTime instanceof Date)c=Dt.default(t.endTime);else c=Dt.default(t.endTime,n,!0);let[l,M]=rs(o,c,n,i,a);t.endTime=l.toDate(),t.renderEndTime=M},"checkTaskDates"),rs=e(function(t,n,i,a,o){let c=!1,l=null,M=n.add(1e4,"d");while(t<=n){if(!c)l=n.toDate();if(c=Ln(t,i,a,o),c){if(n=n.add(1,"d"),n>M)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}t=t.add(1,"d")}return[n,l]},"fixTaskDates"),$n=e(function(t,n){r.warn(`Gantt: the "${t}" statement references unknown task id(s): ${n.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,n,i){if(i=i.trim(),e((M)=>{let D=M.trim();return D==="x"||D==="X"},"isTimestampFormat")(n)&&/^\d+$/.test(i))return new Date(Number(i));let c=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(c!==null){let M=null,D=[],R=c.groups.ids.split(" ").filter((G)=>G!=="");for(let G of R){let O=Gt(G);if(O===void 0){D.push(G);continue}if(!M||O.endTime>M.endTime)M=O}if(D.length>0)$n("after",D);if(M)return M.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let l=Dt.default(i,n.trim(),!0);if(l.isValid())return l.toDate();else{r.debug("Invalid date:"+i),r.debug("With date format:"+n.trim());let M=new Date(i);if(M===void 0||isNaN(M.getTime())||M.getFullYear()<-1e4||M.getFullYear()>1e4)throw Error("Invalid date:"+i);return M}},"getStartDate"),Hn=e(function(t){let n=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(n!==null)return[Number.parseFloat(n[1]),n[2]];return[NaN,"ms"]},"parseDuration"),Nn=e(function(t,n,i,a=!1){i=i.trim();let c=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(c!==null){let W=null,G=[],O=c.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)$n("until",G);if(W)return W.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let l=Dt.default(i,n.trim(),!0);if(l.isValid()){if(a)l=l.add(1,"d");return l.toDate()}let M=Dt.default(t),[D,R]=Hn(i);if(Number.isNaN(D))r.warn(`Gantt: "${i}" is neither a valid date for the "${n.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=M.add(D,R);if(W.isValid())M=W}return M.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,n){let i;if(n.substr(0,1)===":")i=n.substr(1,n.length);else i=n;let a=i.split(","),o={};Cr(a,o,In);for(let l=0;l<a.length;l++)a[l]=a[l].trim();let c="";switch(a.length){case 1:o.id=re(),o.startTime=t.endTime,c=a[0];break;case 2:o.id=re(),o.startTime=hr(void 0,Et,a[0]),c=a[1];break;case 3:o.id=re(a[0]),o.startTime=hr(void 0,Et,a[1]),c=a[2];break;default:}if(c)o.endTime=Nn(o.startTime,Et,c,fe),o.manualEndTime=Dt.default(c,"YYYY-MM-DD",!0).isValid(),Wn(o,Et,ie,ne);return o},"compileData"),is=e(function(t,n){let i;if(n.substr(0,1)===":")i=n.substr(1,n.length);else i=n;let a=i.split(","),o={};Cr(a,o,In);for(let c=0;c<a.length;c++)a[c]=a[c].trim();switch(a.length){case 1:o.id=re(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:a[0]};break;case 2:o.id=re(),o.startTime={type:"getStartDate",startData:a[0]},o.endTime={data:a[1]};break;case 3:o.id=re(a[0]),o.startTime={type:"getStartDate",startData:a[1]},o.endTime={data:a[2]};break;default:}return o},"parseData"),yr,Fe,kt=[],Pn={},as=e(function(t,n){let i={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},a=is(Fe,n);if(i.raw.startTime=a.startTime,i.raw.endTime=a.endTime,i.id=a.id,i.prevTaskId=Fe,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,i.vert)i.order=-1;else i.order=mr,mr++;let o=kt.push(i);Fe=i.id,Pn[i.id]=o-1},"addTask"),Gt=e(function(t){let n=Pn[t];return kt[n]},"findTaskById"),ss=e(function(t,n){let i={section:ae,type:ae,description:t,task:t,classes:[]},a=ns(yr,n);i.startTime=a.startTime,i.endTime=a.endTime,i.id=a.id,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,yr=i,Ie.push(i)},"addTaskOrg"),Dn=e(function(){let t=e(function(i){let a=kt[i],o="";switch(kt[i].raw.startTime.type){case"prevTaskEnd":{let c=Gt(a.prevTaskId);a.startTime=c.endTime;break}case"getStartDate":if(o=hr(void 0,Et,kt[i].raw.startTime.startData),o)kt[i].startTime=o;break}if(kt[i].startTime){if(kt[i].endTime=Nn(kt[i].startTime,Et,kt[i].raw.endTime.data,fe),kt[i].endTime)kt[i].processed=!0,kt[i].manualEndTime=Dt.default(kt[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(kt[i],Et,ie,ne)}return kt[i].processed},"compileTask"),n=!0;for(let[i,a]of kt.entries())t(i),n=n&&a.processed;return n},"compileTasks"),os=e(function(t,n){let i=n;if(s().securityLevel!=="loose")i=Sn.sanitizeUrl(n);t.split(",").forEach(function(a){if(Gt(a)!==void 0)zn(a,()=>{window.open(i,"_self")}),vr.set(a,i)}),Vn(t,"clickable")},"setLink"),Vn=e(function(t,n){t.split(",").forEach(function(i){let a=Gt(i);if(a!==void 0)a.classes.push(n)})},"setClass"),cs=e(function(t,n,i){if(s().securityLevel!=="loose")return;if(n===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let c=0;c<a.length;c++){let l=a[c].trim();if(l.startsWith('"')&&l.endsWith('"'))l=l.substr(1,l.length-2);a[c]=l}}if(a.length===0)a.push(t);if(Gt(t)!==void 0)zn(t,()=>{N.runFunc(n,...a)})},"setClickFun"),zn=e(function(t,n){wr.push(function(){let i=te?`${te}-${t}`:t,a=document.querySelector(`[id="${i}"]`);if(a!==null)a.addEventListener("click",function(){n()})},function(){let i=te?`${te}-${t}`:t,a=document.querySelector(`[id="${i}-text"]`);if(a!==null)a.addEventListener("click",function(){n()})})},"pushFun"),us=e(function(t,n,i){t.split(",").forEach(function(a){cs(a,n,i)}),Vn(t,"clickable")},"setClickEvent"),ls=e(function(t){wr.forEach(function(n){n(t)})},"bindFunctions"),fs={getConfig:e(()=>s().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:I,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:Hn,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(t,n,i){let a=!0;while(a)a=!1,i.forEach(function(o){let c="^\\s*"+o+"\\s*$",l=new RegExp(c);if(t[0].match(l))n[o]=!0,t.shift(1),a=!0})}e(Cr,"getTaskTags");ee.default.extend(Rn.default);var ds=e(function(){r.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:be,wednesday:we,thursday:Wt,friday:Me,saturday:De,sunday:Yt},ms=e((t,n)=>{let i=[...t].map(()=>-1/0),a=[...t].sort((c,l)=>c.startTime-l.startTime||c.order-l.order),o=0;for(let c of a)for(let l=0;l<i.length;l++)if(c.startTime>=i[l]){if(i[l]=c.endTime,c.order=l+n,l>o)o=l;break}return o},"getMaxIntersections"),Pt,fr=1e4,hs=e(function(t,n,i,a){let o=s().gantt;a.db.setDiagramId(n);let c=s().securityLevel,l;if(c==="sandbox")l=p("#i"+n);let M=c==="sandbox"?p(l.nodes()[0].contentDocument.body):p("body"),D=c==="sandbox"?l.nodes()[0].contentDocument:document,R=D.getElementById(n);if(Pt=R.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(o.useWidth!==void 0)Pt=o.useWidth;let W=a.db.getTasks(),G=W.filter((b)=>!b.vert),O=[];for(let b of G)O.push(b.type);O=nt(O);let z={},U=2*o.topPadding;if(a.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let b={};for(let Y of G)if(b[Y.section]===void 0)b[Y.section]=[Y];else b[Y.section].push(Y);let F=0;for(let Y of Object.keys(b)){let V=ms(b[Y],F)+1;F+=V,U+=V*(o.barHeight+o.barGap),z[Y]=V}}else{U+=G.length*(o.barHeight+o.barGap);for(let b of O)z[b]=G.filter((F)=>F.type===b).length}R.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=M.select(`[id="${n}"]`),H=er().domain([mn(W,function(b){return b.startTime}),On(W,function(b){return b.endTime})]).rangeRound([0,Pt-o.leftPadding-o.rightPadding]);function tt(b,F){let Y=b.startTime,V=F.startTime,d=0;if(Y>V)d=1;else if(Y<V)d=-1;return d}e(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),B(Z,U,Pt,o.useMaxWidth),Z.append("text").text(a.db.getDiagramTitle()).attr("x",Pt/2).attr("y",o.titleTopMargin).attr("class","titleText");function ft(b,F,Y){let V=o.barHeight,d=V+o.barGap,{topPadding:w,leftPadding:x}=o,v=xt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(zr);j(d,w,x,F,Y,b,a.db.getExcludes(),a.db.getIncludes()),f(x,w,F,Y),at(b,d,w,x,V,v,F,Y),P(d,w,x,V,v),rt(x,w,F,Y)}e(ft,"makeGantt");function at(b,F,Y,V,d,w,x){b.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let v=b.filter((m)=>!m.vert),u=[...new Set(v.map((m)=>m.order))].map((m)=>v.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*F+Y-2}).attr("width",function(){return x-o.rightPadding/2}).attr("height",F).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%o.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(b).enter(),h=a.db.getLinks();if(J.append("rect").attr("id",function(m){return n+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return o.gridLineStartPadding;return q*F+Y}).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 v.length*(o.barHeight+o.barGap)+o.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*F+Y+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,k]of O.entries())if(m.type===k)ut=it%o.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 n+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",o.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)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*o.leftPadding>x)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return o.gridLineStartPadding+v.length*(o.barHeight+o.barGap)+60;return q=m.order,q*F+o.barHeight/2+(o.fontSize/2-2)+Y}).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%o.numberSectionStyles;let k="";if(m.active)if(m.crit)k="activeCritText"+it;else k="activeText"+it;if(m.done)if(m.crit)k=k+" doneCritText"+it;else k=k+" doneText"+it;else if(m.crit)k=k+" critText"+it;if(m.milestone)k+=" milestoneText";if(m.vert)k+=" vertText";if(ut>K-q)if(K+ut+1.5*o.leftPadding>x)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+k;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+k+" width-"+ut;else return lt+" taskText taskText"+it+" "+k+" width-"+ut}),s().securityLevel==="sandbox"){let m;m=p("#i"+n);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(n+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(n+"-"+K.id+"-text"));let it=ut.parentNode;var k=q.createElement("a");k.setAttribute("xlink:href",h.get(K.id)),k.setAttribute("target","_top"),it.appendChild(k),k.appendChild(ut),k.appendChild(lt)})}}e(at,"drawRects");function j(b,F,Y,V,d,w,x,v){if(x.length===0&&v.length===0)return;let Q,u;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(u===void 0||ut>u)u=ut}if(!Q||!u)return;if(ee.default(u).diff(ee.default(Q),"year")>5){r.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=a.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=u){if(a.db.isInvalidDate(m,J,x,v))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)=>n+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+Y).attr("y",o.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-F-o.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+Y+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 _(b,F,Y,V){if(Y<=0||b>F)return 1/0;let d=F-b,w=ee.default.duration({[V??"day"]:Y}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}e(_,"getEstimatedTickCount");function f(b,F,Y,V){let d=a.db.getDateFormat(),w=a.db.getAxisFormat(),x;if(w)x=w;else if(d==="D")x="%d";else x=o.axisFormat??"%Y-%m-%d";let v=He(H).tickSize(-V+F+o.gridLineStartPadding).tickFormat(Xt(x)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(u!==null){let J=parseInt(u[1],10);if(isNaN(J)||J<=0)r.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let h=u[2],mt=a.db.getWeekday()||o.weekday,m=H.domain(),q=m[0],K=m[1],ut=_(q,K,J,h);if(ut>fr)r.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":v.ticks(Ut.every(J));break;case"second":v.ticks(bt.every(J));break;case"minute":v.ticks($t.every(J));break;case"hour":v.ticks(Ht.every(J));break;case"day":v.ticks(_t.every(J));break;case"week":v.ticks(Cn[mt].every(J));break;case"month":v.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+(V-50)+")").call(v).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let J=$e(H).tickSize(-V+F+o.gridLineStartPadding).tickFormat(Xt(x));if(u!==null){let h=parseInt(u[1],10);if(isNaN(h)||h<=0)r.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let mt=u[2],m=a.db.getWeekday()||o.weekday,q=H.domain(),K=q[0],ut=q[1];if(_(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(Ut.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(_t.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+", "+F+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(f,"makeGrid");function P(b,F){let Y=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(y.lineBreakRegex),x=-(w.length-1)/2,v=D.createElementNS("http://www.w3.org/2000/svg","text");v.setAttribute("dy",x+"em");for(let[Q,u]of w.entries()){let J=D.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=u,v.appendChild(J)}return v}).attr("x",10).attr("y",function(d,w){if(w>0)for(let x=0;x<w;x++)return Y+=V[w-1][1],d[1]*b/2+Y*b+F;else return d[1]*b/2+F}).attr("font-size",o.sectionFontSize).attr("class",function(d){for(let[w,x]of O.entries())if(d[0]===x)return"sectionTitle sectionTitle"+w%o.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function rt(b,F,Y,V){let d=a.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),x=new Date,v=w.append("line");if(v.attr("x1",H(x)+b).attr("x2",H(x)+b).attr("y1",o.titleTopMargin).attr("y2",V-o.titleTopMargin).attr("class","today"),d!=="")v.attr("style",d.replace(/,/g,";"))}e(rt,"drawToday");function nt(b){let F={},Y=[];for(let V=0,d=b.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(F,b[V]))F[b[V]]=!0,Y.push(b[V]);return Y}e(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=e((t)=>`
7
7
  .mermaid-main-font {
8
8
  font-family: ${t.fontFamily};
9
9
  }
@@ -1,9 +1,9 @@
1
- import{e,Yt,r,Y,u,d,b,mt,Ea,C,s,p,q,Ge,ae,Ye}from"./chunk-y0m8hrwz.js";import{bt}from"./chunk-qefasa1j.js";var ht=function(){var n=e(function(E,l,y,g){for(y=y||{},g=E.length;g--;y[E[g]]=l);return y},"o"),t=[6,11,13,14,15,17,19,20,23,24],o=[1,12],a=[1,13],i=[1,14],f=[1,15],h=[1,16],c=[1,19],_=[1,20],x={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(l,y,g,k,w,m,I){var T=m.length-1;switch(w){case 1:return m[T-1];case 3:k.setDirection("LR");break;case 4:k.setDirection("TD");break;case 5:this.$=[];break;case 6:m[T-1].push(m[T]),this.$=m[T-1];break;case 7:case 8:this.$=m[T];break;case 9:case 10:this.$=[];break;case 11:k.getCommonDb().setDiagramTitle(m[T].substr(6)),this.$=m[T].substr(6);break;case 12:this.$=m[T].trim(),k.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=m[T].trim(),k.getCommonDb().setAccDescription(this.$);break;case 15:k.addSection(m[T].substr(8)),this.$=m[T].substr(8);break;case 18:k.addTask(m[T],0,""),this.$=m[T];break;case 19:k.addEvent(m[T].substr(2)),this.$=m[T];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},n(t,[2,5],{5:6}),n(t,[2,2]),n(t,[2,3]),n(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:o,15:a,17:i,19:f,20:h,21:17,22:18,23:c,24:_},n(t,[2,10],{1:[2,1]}),n(t,[2,6]),{12:21,14:o,15:a,17:i,19:f,20:h,21:17,22:18,23:c,24:_},n(t,[2,8]),n(t,[2,9]),n(t,[2,11]),{16:[1,22]},{18:[1,23]},n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,17]),n(t,[2,18]),n(t,[2,19]),n(t,[2,7]),n(t,[2,12]),n(t,[2,13])],defaultActions:{},parseError:e(function(l,y){if(y.recoverable)this.trace(l);else{var g=Error(l);throw g.hash=y,g}},"parseError"),parse:e(function(l){var y=this,g=[0],k=[],w=[null],m=[],I=this.table,T="",W=0,G=0,D=0,J=2,B=1,O=m.slice.call(arguments,1),L=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))F.yy[U]=this.yy[U];if(L.setInput(l,F.yy),F.yy.lexer=L,F.yy.parser=this,typeof L.yylloc>"u")L.yylloc={};var Q=L.yylloc;m.push(Q);var A=L.options&&L.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function N(K){g.length=g.length-2*K,w.length=w.length-K,m.length=m.length-K}e(N,"popStack");function M(){var K=k.pop()||L.lex()||B;if(typeof K!=="number"){if(K instanceof Array)k=K,K=k.pop();K=y.symbols_[K]||K}return K}e(M,"lex");var H,P,V,R,lt,rt,j={},nt,X,kt,it;while(!0){if(V=g[g.length-1],this.defaultActions[V])R=this.defaultActions[V];else{if(H===null||typeof H>"u")H=M();R=I[V]&&I[V][H]}if(typeof R>"u"||!R.length||!R[0]){var ct="";it=[];for(nt in I[V])if(this.terminals_[nt]&&nt>J)it.push("'"+this.terminals_[nt]+"'");if(L.showPosition)ct="Parse error on line "+(W+1)+`:
1
+ import{e,Zt,r,Y,u,d,b,mt,Ea,C,s,p,V,Ge,ae,Ye}from"./chunk-9dd1c37b.js";import{bt}from"./chunk-5jbf7n5q.js";var ht=function(){var n=e(function(E,l,y,g){for(y=y||{},g=E.length;g--;y[E[g]]=l);return y},"o"),t=[6,11,13,14,15,17,19,20,23,24],o=[1,12],a=[1,13],i=[1,14],f=[1,15],h=[1,16],c=[1,19],_=[1,20],x={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(l,y,g,k,w,m,I){var T=m.length-1;switch(w){case 1:return m[T-1];case 3:k.setDirection("LR");break;case 4:k.setDirection("TD");break;case 5:this.$=[];break;case 6:m[T-1].push(m[T]),this.$=m[T-1];break;case 7:case 8:this.$=m[T];break;case 9:case 10:this.$=[];break;case 11:k.getCommonDb().setDiagramTitle(m[T].substr(6)),this.$=m[T].substr(6);break;case 12:this.$=m[T].trim(),k.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=m[T].trim(),k.getCommonDb().setAccDescription(this.$);break;case 15:k.addSection(m[T].substr(8)),this.$=m[T].substr(8);break;case 18:k.addTask(m[T],0,""),this.$=m[T];break;case 19:k.addEvent(m[T].substr(2)),this.$=m[T];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},n(t,[2,5],{5:6}),n(t,[2,2]),n(t,[2,3]),n(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:o,15:a,17:i,19:f,20:h,21:17,22:18,23:c,24:_},n(t,[2,10],{1:[2,1]}),n(t,[2,6]),{12:21,14:o,15:a,17:i,19:f,20:h,21:17,22:18,23:c,24:_},n(t,[2,8]),n(t,[2,9]),n(t,[2,11]),{16:[1,22]},{18:[1,23]},n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,17]),n(t,[2,18]),n(t,[2,19]),n(t,[2,7]),n(t,[2,12]),n(t,[2,13])],defaultActions:{},parseError:e(function(l,y){if(y.recoverable)this.trace(l);else{var g=Error(l);throw g.hash=y,g}},"parseError"),parse:e(function(l){var y=this,g=[0],k=[],w=[null],m=[],I=this.table,T="",W=0,D=0,K=0,J=2,B=1,G=m.slice.call(arguments,1),L=Object.create(this.lexer),z={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))z.yy[X]=this.yy[X];if(L.setInput(l,z.yy),z.yy.lexer=L,z.yy.parser=this,typeof L.yylloc>"u")L.yylloc={};var Q=L.yylloc;m.push(Q);var A=L.options&&L.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function N(U){g.length=g.length-2*U,w.length=w.length-U,m.length=m.length-U}e(N,"popStack");function M(){var U=k.pop()||L.lex()||B;if(typeof U!=="number"){if(U instanceof Array)k=U,U=k.pop();U=y.symbols_[U]||U}return U}e(M,"lex");var H,P,F,R,lt,rt,q={},nt,Z,kt,it;while(!0){if(F=g[g.length-1],this.defaultActions[F])R=this.defaultActions[F];else{if(H===null||typeof H>"u")H=M();R=I[F]&&I[F][H]}if(typeof R>"u"||!R.length||!R[0]){var ct="";it=[];for(nt in I[F])if(this.terminals_[nt]&&nt>J)it.push("'"+this.terminals_[nt]+"'");if(L.showPosition)ct="Parse error on line "+(W+1)+`:
2
2
  `+L.showPosition()+`
3
- Expecting `+it.join(", ")+", got '"+(this.terminals_[H]||H)+"'";else ct="Parse error on line "+(W+1)+": Unexpected "+(H==B?"end of input":"'"+(this.terminals_[H]||H)+"'");this.parseError(ct,{text:L.match,token:this.terminals_[H]||H,line:L.yylineno,loc:Q,expected:it})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+V+", token: "+H);switch(R[0]){case 1:if(g.push(H),w.push(L.yytext),m.push(L.yylloc),g.push(R[1]),H=null,!P){if(G=L.yyleng,T=L.yytext,W=L.yylineno,Q=L.yylloc,D>0)D--}else H=P,P=null;break;case 2:if(X=this.productions_[R[1]][1],j.$=w[w.length-X],j._$={first_line:m[m.length-(X||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(X||1)].first_column,last_column:m[m.length-1].last_column},A)j._$.range=[m[m.length-(X||1)].range[0],m[m.length-1].range[1]];if(rt=this.performAction.apply(j,[T,G,W,F.yy,R[1],w,m].concat(O)),typeof rt<"u")return rt;if(X)g=g.slice(0,-1*X*2),w=w.slice(0,-1*X),m=m.slice(0,-1*X);g.push(this.productions_[R[1]][0]),w.push(j.$),m.push(j._$),kt=I[g[g.length-2]][g[g.length-1]],g.push(kt);break;case 3:return!0}}return!0},"parse")},S=function(){var E={EOF:1,parseError:e(function(y,g){if(this.yy.parser)this.yy.parser.parseError(y,g);else throw Error(y)},"parseError"),setInput:e(function(l,y){if(this.yy=y||this.yy||{},this._input=l,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 l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var y=l.match(/(?:\r\n?|\n).*/g);if(y)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),l},"input"),unput:e(function(l){var y=l.length,g=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;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),g.length-1)this.yylineno-=g.length-1;var w=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:g?(g.length===k.length?this.yylloc.first_column:0)+k[k.length-g.length].length-g[0].length:this.yylloc.first_column-y},this.options.ranges)this.yylloc.range=[w[0],w[0]+this.yyleng-y];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).
3
+ Expecting `+it.join(", ")+", got '"+(this.terminals_[H]||H)+"'";else ct="Parse error on line "+(W+1)+": Unexpected "+(H==B?"end of input":"'"+(this.terminals_[H]||H)+"'");this.parseError(ct,{text:L.match,token:this.terminals_[H]||H,line:L.yylineno,loc:Q,expected:it})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+F+", token: "+H);switch(R[0]){case 1:if(g.push(H),w.push(L.yytext),m.push(L.yylloc),g.push(R[1]),H=null,!P){if(D=L.yyleng,T=L.yytext,W=L.yylineno,Q=L.yylloc,K>0)K--}else H=P,P=null;break;case 2:if(Z=this.productions_[R[1]][1],q.$=w[w.length-Z],q._$={first_line:m[m.length-(Z||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(Z||1)].first_column,last_column:m[m.length-1].last_column},A)q._$.range=[m[m.length-(Z||1)].range[0],m[m.length-1].range[1]];if(rt=this.performAction.apply(q,[T,D,W,z.yy,R[1],w,m].concat(G)),typeof rt<"u")return rt;if(Z)g=g.slice(0,-1*Z*2),w=w.slice(0,-1*Z),m=m.slice(0,-1*Z);g.push(this.productions_[R[1]][0]),w.push(q.$),m.push(q._$),kt=I[g[g.length-2]][g[g.length-1]],g.push(kt);break;case 3:return!0}}return!0},"parse")},S=function(){var E={EOF:1,parseError:e(function(y,g){if(this.yy.parser)this.yy.parser.parseError(y,g);else throw Error(y)},"parseError"),setInput:e(function(l,y){if(this.yy=y||this.yy||{},this._input=l,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 l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var y=l.match(/(?:\r\n?|\n).*/g);if(y)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),l},"input"),unput:e(function(l){var y=l.length,g=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;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),g.length-1)this.yylineno-=g.length-1;var w=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:g?(g.length===k.length?this.yylloc.first_column:0)+k[k.length-g.length].length-g[0].length:this.yylloc.first_column-y},this.options.ranges)this.yylloc.range=[w[0],w[0]+this.yyleng-y];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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(l){this.unput(this.match.slice(l))},"less"),pastInput:e(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var l=this.match;if(l.length<20)l+=this._input.substr(0,20-l.length);return(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var l=this.pastInput(),y=Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
5
  `+y+"^"},"showPosition"),test_match:e(function(l,y){var g,k,w;if(this.options.backtrack_lexer){if(w={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)w.yylloc.range=this.yylloc.range.slice(0)}if(k=l[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+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,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(l[0].length),this.matched+=l[0],g=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(g)return g;else if(this._backtrack){for(var m in w)this[m]=w[m];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var l,y,g,k;if(!this._more)this.yytext="",this.match="";var w=this._currentRules();for(var m=0;m<w.length;m++)if(g=this._input.match(this.rules[w[m]]),g&&(!y||g[0].length>y[0].length)){if(y=g,k=m,this.options.backtrack_lexer)if(l=this.test_match(g,w[m]),l!==!1)return l;else if(this._backtrack){y=!1;continue}else return!1;else if(!this.options.flex)break}if(y){if(l=this.test_match(y,w[k]),l!==!1)return l;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 y=this.next();if(y)return y;else return this.lex()},"lex"),begin:e(function(y){this.conditionStack.push(y)},"begin"),popState:e(function(){var y=this.conditionStack.length-1;if(y>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(y){if(y=this.conditionStack.length-1-Math.abs(y||0),y>=0)return this.conditionStack[y];else return"INITIAL"},"topState"),pushState:e(function(y){this.begin(y)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(y,g,k,w){var m=w;switch(k){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return E}();x.lexer=S;function v(){this.yy={}}return e(v,"Parser"),v.prototype=x,x.Parser=v,new v}();ht.parser=ht;var Gt=ht,Et={};Yt(Et,{addEvent:()=>Rt,addSection:()=>Lt,addTask:()=>Ct,addTaskOrg:()=>Wt,clear:()=>Nt,default:()=>Dt,getCommonDb:()=>$t,getDirection:()=>Ht,getSections:()=>Mt,getTasks:()=>At,setDirection:()=>It});var tt="",Tt=0,ut="LR",pt=[],st=[],et=[],$t=e(()=>Ea,"getCommonDb"),Nt=e(function(){pt.length=0,st.length=0,tt="",et.length=0,ut="LR",C()},"clear"),It=e(function(n){ut=n},"setDirection"),Ht=e(function(){return ut},"getDirection"),Lt=e(function(n){tt=n,pt.push(n)},"addSection"),Mt=e(function(){return pt},"getSections"),At=e(function(){let n=xt(),t=100,o=0;while(!n&&o<t)n=xt(),o++;return st.push(...et),st},"getTasks"),Ct=e(function(n,t,o){let a={id:Tt++,section:tt,type:tt,task:n,score:t?t:0,events:o?[o]:[]};et.push(a)},"addTask"),Rt=e(function(n){et.find((o)=>o.id===Tt-1).events.push(n)},"addEvent"),Wt=e(function(n){let t={section:tt,type:tt,description:n,task:n,classes:[]};st.push(t)},"addTaskOrg"),xt=e(function(){let n=e(function(o){return et[o].processed},"compileTask"),t=!0;for(let[o,a]of et.entries())n(o),t=t&&a.processed;return t},"compileTasks"),Dt={clear:Nt,getCommonDb:$t,getDirection:Ht,setDirection:It,addSection:Lt,getSections:Mt,getTasks:At,addTask:Ct,addTaskOrg:Wt,addEvent:Rt},Pt=0,at=e(function(n,t){let o=n.append("rect");if(o.attr("x",t.x),o.attr("y",t.y),o.attr("fill",t.fill),o.attr("stroke",t.stroke),o.attr("width",t.width),o.attr("height",t.height),o.attr("rx",t.rx),o.attr("ry",t.ry),t.class!==void 0)o.attr("class",t.class);return o},"drawRect"),Kt=e(function(n,t){let a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=n.append("g");i.append("circle").attr("cx",t.cx-5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function f(_){let x=bt().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}e(f,"smile");function h(_){let x=bt().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}e(h,"sad");function c(_){_.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(e(c,"ambivalent"),t.score>3)f(i);else if(t.score<3)h(i);else c(i);return a},"drawFace"),Ut=e(function(n,t){let o=n.append("circle");if(o.attr("cx",t.cx),o.attr("cy",t.cy),o.attr("class","actor-"+t.pos),o.attr("fill",t.fill),o.attr("stroke",t.stroke),o.attr("r",t.r),o.class!==void 0)o.attr("class",o.class);if(t.title!==void 0)o.append("title").text(t.title);return o},"drawCircle"),Bt=e(function(n,t){let o=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(o),a},"drawText"),Xt=e(function(n,t){function o(i,f,h,c,_){return i+","+f+" "+(i+h)+","+f+" "+(i+h)+","+(f+c-_)+" "+(i+h-_*1.2)+","+(f+c)+" "+i+","+(f+c)}e(o,"genPoints");let a=n.append("polygon");a.attr("points",o(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+0.5*t.labelMargin,Bt(n,t)},"drawLabel"),Zt=e(function(n,t,o){let a=n.append("g"),i=gt();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=o.width,i.height=o.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,at(a,i),Vt(o)(t.text,a,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},o,t.colour)},"drawSection"),dt=-1,jt=e(function(n,t,o,a){let i=t.x+o.width/2,f=n.append("g");dt++;let h=450;f.append("line").attr("id",a+"-task"+dt).attr("x1",i).attr("y1",t.y).attr("x2",i).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Kt(f,{cx:i,cy:300+(5-t.score)*30,score:t.score});let c=gt();c.x=t.x,c.y=t.y,c.fill=t.fill,c.width=o.width,c.height=o.height,c.class="task task-type-"+t.num,c.rx=3,c.ry=3,at(f,c),Vt(o)(t.task,f,c.x,c.y,c.width,c.height,{class:"task"},o,t.colour)},"drawTask"),qt=e(function(n,t){at(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Jt=e(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),gt=e(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Vt=function(){function n(i,f,h,c,_,x,S,v){let E=f.append("text").attr("x",h+_/2).attr("y",c+x/2+5).style("font-color",v).style("text-anchor","middle").text(i);a(E,S)}e(n,"byText");function t(i,f,h,c,_,x,S,v,E){let{taskFontSize:l,taskFontFamily:y}=v,g=i.split(/<br\s*\/?>/gi);for(let k=0;k<g.length;k++){let w=k*l-l*(g.length-1)/2,m=f.append("text").attr("x",h+_/2).attr("y",c).attr("fill",E).style("text-anchor","middle").style("font-size",l).style("font-family",y);m.append("tspan").attr("x",h+_/2).attr("dy",w).text(g[k]),m.attr("y",c+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(m,S)}}e(t,"byTspan");function o(i,f,h,c,_,x,S,v){let E=f.append("switch"),y=E.append("foreignObject").attr("x",h).attr("y",c).attr("width",_).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,E,h,c,_,x,S,v),a(y,S)}e(o,"byFo");function a(i,f){for(let h in f)if(h in f)i.attr(h,f[h])}return e(a,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?o:i.textPlacement==="old"?n:t}}(),Qt=e(function(n,t){Pt=0,dt=-1,n.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function ft(n,t){n.each(function(){var o=p(this),a=o.text().split(/(\s+|<br>)/).reverse(),i,f=[],h=1.1,c=o.attr("y"),_=parseFloat(o.attr("dy")),x=o.text(null).append("tspan").attr("x",0).attr("y",c).attr("dy",_+"em");for(let S=0;S<a.length;S++)if(i=a[a.length-1-S],f.push(i),x.text(f.join(" ").trim()),x.node().getComputedTextLength()>t||i==="<br>"){if(f.pop(),x.text(f.join(" ").trim()),i==="<br>")f=[""];else f=[i];x=o.append("tspan").attr("x",0).attr("y",c).attr("dy",h+"em").text(i)}})}e(ft,"wrap");var te=e(function(n,t,o,a,i,f=!1){let{theme:h,look:c}=a,_=h?.includes("redux"),x=a?.themeVariables?.THEME_COLOR_LIMIT??12,S=o%x-1,v=n.append("g");t.section=S,v.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+S));let E=v.append("g"),l=v.append("g"),g=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ft,t.width).node().getBBox(),k=a.fontSize?.replace?a.fontSize.replace("px",""):a.fontSize;if(t.height=g.height+k*1.1*0.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,l.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),_)l.attr("transform",`translate(${t.width/2}, ${f?t.padding/2+3:t.padding})`);if(re(E,t,S,i,a),c==="neo"){if(v.attr("data-look","neo"),_){let w=h.includes("dark"),m=n.node()?.ownerSVGElement??n.node(),I=p(m),T=I.attr("id")??"",W=T?`${T}-drop-shadow`:"drop-shadow";if(I.select(`#${W}`).empty()){let G=I.select("defs");(G.empty()?I.append("defs"):G).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",w?"0.2":"0.06").attr("flood-color",w?"#FFFFFF":"#000000")}}}return t},"drawNode"),ee=e(function(n,t,o){let a=n.append("g"),f=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ft,t.width).node().getBBox(),h=o.fontSize?.replace?o.fontSize.replace("px",""):o.fontSize;return a.remove(),f.height+h*1.1*0.5+t.padding},"getVirtualNodeHeight"),re=e(function(n,t,o,a,i){let{theme:f}=i,h=f?.includes("redux")?0:5,c=5,_=h>0?`M0 ${t.height-5} v${-t.height+10} q0,-${h},${h},-${h} h${t.width-10} q${h},0,${h},${h} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;if(n.append("path").attr("id",a+"-node-"+Pt++).attr("class","node-bkg node-"+t.type).attr("d",_),!f?.includes("redux"))n.append("line").attr("class","node-line-"+o).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),z={drawRect:at,drawCircle:Ut,drawSection:Zt,drawText:Bt,drawLabel:Xt,drawTask:jt,drawBackgroundRect:qt,getTextObj:Jt,getNoteRect:gt,initGraphics:Qt,drawNode:te,getVirtualNodeHeight:ee},ne=e(function(n,t,o,a){let i=s(),{look:f,theme:h,themeVariables:c}=i,{useGradient:_,gradientStart:x,gradientStop:S}=c,v=i.timeline?.leftMargin??50;r.debug("timeline",a.db);let E=i.securityLevel,l;if(E==="sandbox")l=p("#i"+t);let g=(E==="sandbox"?p(l.nodes()[0].contentDocument.body):p("body")).select("#"+t);g.append("g");let k=a.db.getTasks(),w=a.db.getCommonDb().getDiagramTitle();r.debug("task",k),z.initGraphics(g,t);let m=a.db.getSections();r.debug("sections",m);let I=0,T=0,W=0,G=0,D=50+v,J=50;G=50;let B=0,O=!0;m.forEach(function(A){let N={number:B,descr:A,section:B,width:150,padding:20,maxHeight:I},M=z.getVirtualNodeHeight(g,N,i);r.debug("sectionHeight before draw",M),I=Math.max(I,M+20)});let L=0,F=0;r.debug("tasks.length",k.length);for(let[A,N]of k.entries()){let M={number:A,descr:N,section:N.section,width:150,padding:20,maxHeight:T},H=z.getVirtualNodeHeight(g,M,i);r.debug("taskHeight before draw",H),T=Math.max(T,H+20),L=Math.max(L,N.events.length);let P=0;for(let V of N.events){let R={descr:V,section:N.section,number:N.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(g,R,i)}if(N.events.length>0)P+=(N.events.length-1)*10;F=Math.max(F,P)}if(r.debug("maxSectionHeight before draw",I),r.debug("maxTaskHeight before draw",T),m&&m.length>0)m.forEach((A)=>{let N=k.filter((V)=>V.section===A),M={number:B,descr:A,section:B,width:200*Math.max(N.length,1)-50,padding:20,maxHeight:I};r.debug("sectionNode",M);let H=g.append("g"),P=z.drawNode(H,M,B,i,t);if(r.debug("sectionNode output",P),H.attr("transform",`translate(${D}, ${G})`),J+=I+50,N.length>0)vt(g,N,B,D,J,T,i,L,F,I,!1,t);D+=200*Math.max(N.length,1),J=G,B++});else O=!1,vt(g,k,B,D,J,T,i,L,F,I,!0,t);let U=g.node().getBBox();if(r.debug("bounds",U),w)g.append("text").text(w).attr("x",f==="neo"?U.x*2+v:U.width/2-v).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=O?I+T+150:T+100,g.append("g").attr("class","lineWrapper").append("line").attr("x1",v).attr("y1",W).attr("x2",U.width+3*v).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),f==="neo"&&_&&h!=="neutral"){let A=g.select("defs"),M=(A.empty()?g.append("defs"):A).append("linearGradient").attr("id",g.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");M.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",S).attr("stop-opacity",1)}mt(void 0,g,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),vt=e(function(n,t,o,a,i,f,h,c,_,x,S,v){for(let E of t){let l={descr:E.task,section:o,number:o,width:150,padding:20,maxHeight:f};r.debug("taskNode",l);let y=n.append("g").attr("class","taskWrapper"),k=z.drawNode(y,l,o,h,v).height;if(r.debug("taskHeight after draw",k),y.attr("transform",`translate(${a}, ${i})`),f=Math.max(f,k),E.events){let w=n.append("g").attr("class","lineWrapper"),m=f;i+=100,m=m+ie(n,E.events,o,a,i,h,v),i-=100,w.append("line").attr("x1",a+95).attr("y1",i+f).attr("x2",a+95).attr("y2",i+f+100+_+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${v}-arrowhead)`).attr("stroke-dasharray","5,5")}if(a=a+200,S&&!h.timeline?.disableMulticolor)o++}i=i-10},"drawTasks"),ie=e(function(n,t,o,a,i,f,h){let c=0,_=i;i=i+100;for(let x of t){let S={descr:x,section:o,number:o,width:150,padding:20,maxHeight:50};r.debug("eventNode",S);let v=n.append("g").attr("class","eventWrapper"),l=z.drawNode(v,S,o,f,h,!0).height;c=c+l,v.attr("transform",`translate(${a}, ${i})`),i=i+10+l}return i=_,c},"drawEvents"),se={setConf:e(()=>{},"setConf"),draw:ne},ot=200,Z=5,oe=ot+Z*2,yt=ot+100,le=yt+Z*2,Ft=10,ce=0,_t=20,zt=20,wt=30,Ot=50,he=e(function(n,t,o,a){let i=s(),f=i.timeline?.leftMargin??50;r.debug("timeline",a.db);let h=q(t);h.append("g");let c=a.db.getTasks(),_=a.db.getCommonDb().getDiagramTitle();r.debug("task",c),z.initGraphics(h);let x=a.db.getSections();r.debug("sections",x);let S=0,v=0,E=50+f,l=50,y=l,g=E,k=oe+zt,w=le+Ot,m=g+k,I=0,T=x&&x.length>0,W=T?m:E+k,G=Math.max(50,k+w-Z*2);x.forEach(function(A){let N={number:I,descr:A,section:I,width:G,padding:Z,maxHeight:S},M=z.getVirtualNodeHeight(h,N,i);r.debug("sectionHeight before draw",M),S=Math.max(S,M)});let D=0;r.debug("tasks.length",c.length);for(let[A,N]of c.entries()){let M={number:A,descr:N,section:N.section,width:ot,padding:Z,maxHeight:v},H=z.getVirtualNodeHeight(h,M,i);r.debug("taskHeight before draw",H),v=Math.max(v,H);let P=0;for(let V of N.events){let R={descr:V,section:N.section,number:N.section,width:yt,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(h,R,i)}if(N.events.length>0)P+=(N.events.length-1)*Ft;D=Math.max(D,P)+ce}r.debug("maxSectionHeight before draw",S),r.debug("maxTaskHeight before draw",v);let B=Math.max(v,D)+wt;if(T)x.forEach((A)=>{let N=c.filter((j)=>j.section===A),M={number:I,descr:A,section:I,width:G,padding:Z,maxHeight:S};r.debug("sectionNode",M);let H=h.append("g"),P=z.drawNode(H,M,I,i);r.debug("sectionNode output",P);let V=W-k;H.attr("transform",`translate(${V}, ${l})`);let R=l+P.height+_t;if(N.length>0)St(h,N,I,W,R,v,i,B,!1);let lt=N.length,rt=P.height+_t+B*Math.max(lt,1)-(lt>0?wt*2:0);l+=rt,I++});else St(h,c,I,W,l,v,i,B,!0);let O=h.node()?.getBBox();if(!O)throw Error("bbox not found");if(r.debug("bounds",O),_){if(h.append("text").text(_).attr("x",O.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=h.node()?.getBBox(),!O)throw Error("bbox not found");r.debug("bounds after title",O)}let[L]=Ge(i.fontSize),F=(L??16)*2,U=(L??16)*0.5+20,Q=h.append("g").attr("class","lineWrapper");Q.append("line").attr("x1",W).attr("y1",y-F).attr("x2",W).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Q.lower(),mt(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),St=e(function(n,t,o,a,i,f,h,c,_){for(let x of t){let S={descr:x.task,section:o,number:o,width:ot,padding:Z,maxHeight:f};r.debug("taskNode",S);let v=n.append("g").attr("class","taskWrapper"),E=z.drawNode(v,S,o,h),l=E.height;r.debug("taskHeight after draw",l);let y=a-zt-E.width;if(v.attr("transform",`translate(${y}, ${i})`),f=Math.max(f,l),x.events&&x.events.length>0){let g=i,k=a+Ot;de(n,x.events,o,a,k,g,h)}if(i=i+c,_&&!h.timeline?.disableMulticolor)o++}},"drawTasks"),de=e(function(n,t,o,a,i,f,h){let c=f;for(let _ of t){let x={descr:_,section:o,number:o,width:yt,padding:Z,maxHeight:0};r.debug("eventNode",x);let S=n.append("g").attr("class","eventWrapper"),E=z.drawNode(S,x,o,h).height;S.attr("transform",`translate(${i}, ${c})`);let l=n.append("g").attr("class","lineWrapper"),y=c+E/2;l.append("line").attr("x1",a).attr("y1",y).attr("x2",i).attr("y2",y).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),c=c+E+Ft}return c-f},"drawEvents"),ue={setConf:e(()=>{},"setConf"),draw:he},pe=e((n)=>{let{theme:t}=b(),o=t?.includes("dark"),a=ae(t,n.borderColorArray),i=n.svgId?.replace(/^#/,"")??"",f=i?`url(#${i}-drop-shadow)`:n.dropShadow??"none",h="";for(let c=0;c<Ye(n.THEME_COLOR_LIMIT);c++){let _=`${17-3*c}`,x=a?n.borderColorArray[c%n.borderColorArray.length]:void 0,S=x??n.mainBkg,v=x??n.nodeBorder;h+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var y=this.next();if(y)return y;else return this.lex()},"lex"),begin:e(function(y){this.conditionStack.push(y)},"begin"),popState:e(function(){var y=this.conditionStack.length-1;if(y>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(y){if(y=this.conditionStack.length-1-Math.abs(y||0),y>=0)return this.conditionStack[y];else return"INITIAL"},"topState"),pushState:e(function(y){this.begin(y)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(y,g,k,w){var m=w;switch(k){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return E}();x.lexer=S;function v(){this.yy={}}return e(v,"Parser"),v.prototype=x,x.Parser=v,new v}();ht.parser=ht;var Gt=ht,Et={};Zt(Et,{addEvent:()=>Rt,addSection:()=>Lt,addTask:()=>Ct,addTaskOrg:()=>Wt,clear:()=>Nt,default:()=>Dt,getCommonDb:()=>$t,getDirection:()=>Ht,getSections:()=>Mt,getTasks:()=>At,setDirection:()=>It});var tt="",Tt=0,ut="LR",pt=[],st=[],et=[],$t=e(()=>Ea,"getCommonDb"),Nt=e(function(){pt.length=0,st.length=0,tt="",et.length=0,ut="LR",C()},"clear"),It=e(function(n){ut=n},"setDirection"),Ht=e(function(){return ut},"getDirection"),Lt=e(function(n){tt=n,pt.push(n)},"addSection"),Mt=e(function(){return pt},"getSections"),At=e(function(){let n=xt(),t=100,o=0;while(!n&&o<t)n=xt(),o++;return st.push(...et),st},"getTasks"),Ct=e(function(n,t,o){let a={id:Tt++,section:tt,type:tt,task:n,score:t?t:0,events:o?[o]:[]};et.push(a)},"addTask"),Rt=e(function(n){et.find((o)=>o.id===Tt-1).events.push(n)},"addEvent"),Wt=e(function(n){let t={section:tt,type:tt,description:n,task:n,classes:[]};st.push(t)},"addTaskOrg"),xt=e(function(){let n=e(function(o){return et[o].processed},"compileTask"),t=!0;for(let[o,a]of et.entries())n(o),t=t&&a.processed;return t},"compileTasks"),Dt={clear:Nt,getCommonDb:$t,getDirection:Ht,setDirection:It,addSection:Lt,getSections:Mt,getTasks:At,addTask:Ct,addTaskOrg:Wt,addEvent:Rt},Pt=0,at=e(function(n,t){let o=n.append("rect");if(o.attr("x",t.x),o.attr("y",t.y),o.attr("fill",t.fill),o.attr("stroke",t.stroke),o.attr("width",t.width),o.attr("height",t.height),o.attr("rx",t.rx),o.attr("ry",t.ry),t.class!==void 0)o.attr("class",t.class);return o},"drawRect"),Kt=e(function(n,t){let a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=n.append("g");i.append("circle").attr("cx",t.cx-5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function f(_){let x=bt().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}e(f,"smile");function h(_){let x=bt().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}e(h,"sad");function c(_){_.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(e(c,"ambivalent"),t.score>3)f(i);else if(t.score<3)h(i);else c(i);return a},"drawFace"),Ut=e(function(n,t){let o=n.append("circle");if(o.attr("cx",t.cx),o.attr("cy",t.cy),o.attr("class","actor-"+t.pos),o.attr("fill",t.fill),o.attr("stroke",t.stroke),o.attr("r",t.r),o.class!==void 0)o.attr("class",o.class);if(t.title!==void 0)o.append("title").text(t.title);return o},"drawCircle"),Bt=e(function(n,t){let o=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(o),a},"drawText"),Xt=e(function(n,t){function o(i,f,h,c,_){return i+","+f+" "+(i+h)+","+f+" "+(i+h)+","+(f+c-_)+" "+(i+h-_*1.2)+","+(f+c)+" "+i+","+(f+c)}e(o,"genPoints");let a=n.append("polygon");a.attr("points",o(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+0.5*t.labelMargin,Bt(n,t)},"drawLabel"),jt=e(function(n,t,o){let a=n.append("g"),i=gt();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=o.width,i.height=o.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,at(a,i),Vt(o)(t.text,a,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},o,t.colour)},"drawSection"),dt=-1,qt=e(function(n,t,o,a){let i=t.x+o.width/2,f=n.append("g");dt++;let h=450;f.append("line").attr("id",a+"-task"+dt).attr("x1",i).attr("y1",t.y).attr("x2",i).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Kt(f,{cx:i,cy:300+(5-t.score)*30,score:t.score});let c=gt();c.x=t.x,c.y=t.y,c.fill=t.fill,c.width=o.width,c.height=o.height,c.class="task task-type-"+t.num,c.rx=3,c.ry=3,at(f,c),Vt(o)(t.task,f,c.x,c.y,c.width,c.height,{class:"task"},o,t.colour)},"drawTask"),Jt=e(function(n,t){at(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Qt=e(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),gt=e(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Vt=function(){function n(i,f,h,c,_,x,S,v){let E=f.append("text").attr("x",h+_/2).attr("y",c+x/2+5).style("font-color",v).style("text-anchor","middle").text(i);a(E,S)}e(n,"byText");function t(i,f,h,c,_,x,S,v,E){let{taskFontSize:l,taskFontFamily:y}=v,g=i.split(/<br\s*\/?>/gi);for(let k=0;k<g.length;k++){let w=k*l-l*(g.length-1)/2,m=f.append("text").attr("x",h+_/2).attr("y",c).attr("fill",E).style("text-anchor","middle").style("font-size",l).style("font-family",y);m.append("tspan").attr("x",h+_/2).attr("dy",w).text(g[k]),m.attr("y",c+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(m,S)}}e(t,"byTspan");function o(i,f,h,c,_,x,S,v){let E=f.append("switch"),y=E.append("foreignObject").attr("x",h).attr("y",c).attr("width",_).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,E,h,c,_,x,S,v),a(y,S)}e(o,"byFo");function a(i,f){for(let h in f)if(h in f)i.attr(h,f[h])}return e(a,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?o:i.textPlacement==="old"?n:t}}(),Yt=e(function(n,t){Pt=0,dt=-1,n.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function ft(n,t){n.each(function(){var o=p(this),a=o.text().split(/(\s+|<br>)/).reverse(),i,f=[],h=1.1,c=o.attr("y"),_=parseFloat(o.attr("dy")),x=o.text(null).append("tspan").attr("x",0).attr("y",c).attr("dy",_+"em");for(let S=0;S<a.length;S++)if(i=a[a.length-1-S],f.push(i),x.text(f.join(" ").trim()),x.node().getComputedTextLength()>t||i==="<br>"){if(f.pop(),x.text(f.join(" ").trim()),i==="<br>")f=[""];else f=[i];x=o.append("tspan").attr("x",0).attr("y",c).attr("dy",h+"em").text(i)}})}e(ft,"wrap");var te=e(function(n,t,o,a,i,f=!1){let{theme:h,look:c}=a,_=h?.includes("redux"),x=a?.themeVariables?.THEME_COLOR_LIMIT??12,S=o%x-1,v=n.append("g");t.section=S,v.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+S));let E=v.append("g"),l=v.append("g"),g=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ft,t.width).node().getBBox(),k=a.fontSize?.replace?a.fontSize.replace("px",""):a.fontSize;if(t.height=g.height+k*1.1*0.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,l.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),_)l.attr("transform",`translate(${t.width/2}, ${f?t.padding/2+3:t.padding})`);if(re(E,t,S,i,a),c==="neo"){if(v.attr("data-look","neo"),_){let w=h.includes("dark"),m=n.node()?.ownerSVGElement??n.node(),I=p(m),T=I.attr("id")??"",W=T?`${T}-drop-shadow`:"drop-shadow";if(I.select(`#${W}`).empty()){let D=I.select("defs");(D.empty()?I.append("defs"):D).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",w?"0.2":"0.06").attr("flood-color",w?"#FFFFFF":"#000000")}}}return t},"drawNode"),ee=e(function(n,t,o){let a=n.append("g"),f=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ft,t.width).node().getBBox(),h=o.fontSize?.replace?o.fontSize.replace("px",""):o.fontSize;return a.remove(),f.height+h*1.1*0.5+t.padding},"getVirtualNodeHeight"),re=e(function(n,t,o,a,i){let{theme:f}=i,h=f?.includes("redux")?0:5,c=5,_=h>0?`M0 ${t.height-5} v${-t.height+10} q0,-${h},${h},-${h} h${t.width-10} q${h},0,${h},${h} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;if(n.append("path").attr("id",a+"-node-"+Pt++).attr("class","node-bkg node-"+t.type).attr("d",_),!f?.includes("redux"))n.append("line").attr("class","node-line-"+o).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),O={drawRect:at,drawCircle:Ut,drawSection:jt,drawText:Bt,drawLabel:Xt,drawTask:qt,drawBackgroundRect:Jt,getTextObj:Qt,getNoteRect:gt,initGraphics:Yt,drawNode:te,getVirtualNodeHeight:ee},ne=e(function(n,t,o,a){let i=s(),{look:f,theme:h,themeVariables:c}=i,{useGradient:_,gradientStart:x,gradientStop:S}=c,v=i.timeline?.leftMargin??50;r.debug("timeline",a.db);let E=i.securityLevel,l;if(E==="sandbox")l=p("#i"+t);let g=(E==="sandbox"?p(l.nodes()[0].contentDocument.body):p("body")).select("#"+t);g.append("g");let k=a.db.getTasks(),w=a.db.getCommonDb().getDiagramTitle();r.debug("task",k),O.initGraphics(g,t);let m=a.db.getSections();r.debug("sections",m);let I=0,T=0,W=0,D=0,K=50+v,J=50;D=50;let B=0,G=!0;m.forEach(function(A){let N={number:B,descr:A,section:B,width:150,padding:20,maxHeight:I},M=O.getVirtualNodeHeight(g,N,i);r.debug("sectionHeight before draw",M),I=Math.max(I,M+20)});let L=0,z=0;r.debug("tasks.length",k.length);for(let[A,N]of k.entries()){let M={number:A,descr:N,section:N.section,width:150,padding:20,maxHeight:T},H=O.getVirtualNodeHeight(g,M,i);r.debug("taskHeight before draw",H),T=Math.max(T,H+20),L=Math.max(L,N.events.length);let P=0;for(let F of N.events){let R={descr:F,section:N.section,number:N.section,width:150,padding:20,maxHeight:50};P+=O.getVirtualNodeHeight(g,R,i)}if(N.events.length>0)P+=(N.events.length-1)*10;z=Math.max(z,P)}if(r.debug("maxSectionHeight before draw",I),r.debug("maxTaskHeight before draw",T),m&&m.length>0)m.forEach((A)=>{let N=k.filter((F)=>F.section===A),M={number:B,descr:A,section:B,width:200*Math.max(N.length,1)-50,padding:20,maxHeight:I};r.debug("sectionNode",M);let H=g.append("g"),P=O.drawNode(H,M,B,i,t);if(r.debug("sectionNode output",P),H.attr("transform",`translate(${K}, ${D})`),J+=I+50,N.length>0)vt(g,N,B,K,J,T,i,L,z,I,!1,t);K+=200*Math.max(N.length,1),J=D,B++});else G=!1,vt(g,k,B,K,J,T,i,L,z,I,!0,t);let X=g.node().getBBox();if(r.debug("bounds",X),w)g.append("text").text(w).attr("x",f==="neo"?X.x*2+v:X.width/2-v).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=G?I+T+150:T+100,g.append("g").attr("class","lineWrapper").append("line").attr("x1",v).attr("y1",W).attr("x2",X.width+3*v).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),f==="neo"&&_&&h!=="neutral"){let A=g.select("defs"),M=(A.empty()?g.append("defs"):A).append("linearGradient").attr("id",g.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");M.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",S).attr("stop-opacity",1)}mt(void 0,g,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),vt=e(function(n,t,o,a,i,f,h,c,_,x,S,v){for(let E of t){let l={descr:E.task,section:o,number:o,width:150,padding:20,maxHeight:f};r.debug("taskNode",l);let y=n.append("g").attr("class","taskWrapper"),k=O.drawNode(y,l,o,h,v).height;if(r.debug("taskHeight after draw",k),y.attr("transform",`translate(${a}, ${i})`),f=Math.max(f,k),E.events){let w=n.append("g").attr("class","lineWrapper"),m=f;i+=100,m=m+ie(n,E.events,o,a,i,h,v),i-=100,w.append("line").attr("x1",a+95).attr("y1",i+f).attr("x2",a+95).attr("y2",i+f+100+_+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${v}-arrowhead)`).attr("stroke-dasharray","5,5")}if(a=a+200,S&&!h.timeline?.disableMulticolor)o++}i=i-10},"drawTasks"),ie=e(function(n,t,o,a,i,f,h){let c=0,_=i;i=i+100;for(let x of t){let S={descr:x,section:o,number:o,width:150,padding:20,maxHeight:50};r.debug("eventNode",S);let v=n.append("g").attr("class","eventWrapper"),l=O.drawNode(v,S,o,f,h,!0).height;c=c+l,v.attr("transform",`translate(${a}, ${i})`),i=i+10+l}return i=_,c},"drawEvents"),se={setConf:e(()=>{},"setConf"),draw:ne},ot=200,j=5,oe=ot+j*2,yt=ot+100,le=yt+j*2,Ft=10,ce=0,_t=20,zt=20,wt=30,Ot=50,he=e(function(n,t,o,a){let i=s(),f=i.timeline?.leftMargin??50;r.debug("timeline",a.db);let h=V(t);h.append("g");let c=a.db.getTasks(),_=a.db.getCommonDb().getDiagramTitle();r.debug("task",c),O.initGraphics(h);let x=a.db.getSections();r.debug("sections",x);let S=0,v=0,E=50+f,l=50,y=l,g=E,k=oe+zt,w=le+Ot,m=g+k,I=0,T=x&&x.length>0,W=T?m:E+k,D=Math.max(50,k+w-j*2);x.forEach(function(A){let N={number:I,descr:A,section:I,width:D,padding:j,maxHeight:S},M=O.getVirtualNodeHeight(h,N,i);r.debug("sectionHeight before draw",M),S=Math.max(S,M)});let K=0;r.debug("tasks.length",c.length);for(let[A,N]of c.entries()){let M={number:A,descr:N,section:N.section,width:ot,padding:j,maxHeight:v},H=O.getVirtualNodeHeight(h,M,i);r.debug("taskHeight before draw",H),v=Math.max(v,H);let P=0;for(let F of N.events){let R={descr:F,section:N.section,number:N.section,width:yt,padding:j,maxHeight:50};P+=O.getVirtualNodeHeight(h,R,i)}if(N.events.length>0)P+=(N.events.length-1)*Ft;K=Math.max(K,P)+ce}r.debug("maxSectionHeight before draw",S),r.debug("maxTaskHeight before draw",v);let B=Math.max(v,K)+wt;if(T)x.forEach((A)=>{let N=c.filter((q)=>q.section===A),M={number:I,descr:A,section:I,width:D,padding:j,maxHeight:S};r.debug("sectionNode",M);let H=h.append("g"),P=O.drawNode(H,M,I,i);r.debug("sectionNode output",P);let F=W-k;H.attr("transform",`translate(${F}, ${l})`);let R=l+P.height+_t;if(N.length>0)St(h,N,I,W,R,v,i,B,!1);let lt=N.length,rt=P.height+_t+B*Math.max(lt,1)-(lt>0?wt*2:0);l+=rt,I++});else St(h,c,I,W,l,v,i,B,!0);let G=h.node()?.getBBox();if(!G)throw Error("bbox not found");if(r.debug("bounds",G),_){if(h.append("text").text(_).attr("x",G.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),G=h.node()?.getBBox(),!G)throw Error("bbox not found");r.debug("bounds after title",G)}let[L]=Ge(i.fontSize),z=(L??16)*2,X=(L??16)*0.5+20,Q=h.append("g").attr("class","lineWrapper");Q.append("line").attr("x1",W).attr("y1",y-z).attr("x2",W).attr("y2",G.y+G.height+X).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Q.lower(),mt(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),St=e(function(n,t,o,a,i,f,h,c,_){for(let x of t){let S={descr:x.task,section:o,number:o,width:ot,padding:j,maxHeight:f};r.debug("taskNode",S);let v=n.append("g").attr("class","taskWrapper"),E=O.drawNode(v,S,o,h),l=E.height;r.debug("taskHeight after draw",l);let y=a-zt-E.width;if(v.attr("transform",`translate(${y}, ${i})`),f=Math.max(f,l),x.events&&x.events.length>0){let g=i,k=a+Ot;de(n,x.events,o,a,k,g,h)}if(i=i+c,_&&!h.timeline?.disableMulticolor)o++}},"drawTasks"),de=e(function(n,t,o,a,i,f,h){let c=f;for(let _ of t){let x={descr:_,section:o,number:o,width:yt,padding:j,maxHeight:0};r.debug("eventNode",x);let S=n.append("g").attr("class","eventWrapper"),E=O.drawNode(S,x,o,h).height;S.attr("transform",`translate(${i}, ${c})`);let l=n.append("g").attr("class","lineWrapper"),y=c+E/2;l.append("line").attr("x1",a).attr("y1",y).attr("x2",i).attr("y2",y).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),c=c+E+Ft}return c-f},"drawEvents"),ue={setConf:e(()=>{},"setConf"),draw:he},pe=e((n)=>{let{theme:t}=b(),o=t?.includes("dark"),a=ae(t,n.borderColorArray),i=n.svgId?.replace(/^#/,"")??"",f=i?`url(#${i}-drop-shadow)`:n.dropShadow??"none",h="";for(let c=0;c<Ye(n.THEME_COLOR_LIMIT);c++){let _=`${17-3*c}`,x=a?n.borderColorArray[c%n.borderColorArray.length]:void 0,S=x??n.mainBkg,v=x??n.nodeBorder;h+=`
7
7
  .section-${c-1} rect,
8
8
  .section-${c-1} path,
9
9
  .section-${c-1} circle {
@@ -1 +1 @@
1
- import{e,r,p}from"./chunk-y0m8hrwz.js";import{lt,sr}from"./chunk-dt462hk9.js";import{Ce,Se}from"./chunk-vt40e1kp.js";var k=Se(function(F,Y){(function(g,a){if(typeof F==="object"&&typeof Y==="object")Y.exports=a(sr());else if(typeof define==="function"&&define.amd)define(["cose-base"],a);else if(typeof F==="object")F.cytoscapeCoseBilkent=a(sr());else g.cytoscapeCoseBilkent=a(g.coseBase)})(F,function(u){return function(g){var a={};function n(o){if(a[o])return a[o].exports;var d=a[o]={i:o,l:!1,exports:{}};return g[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=g,n.c=a,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(g,a){g.exports=u},function(g,a,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(E,t){var f={};for(var s in E)f[s]=E[s];for(var s in t)f[s]=t[s];return f}function I(E){this.options=D(_,E),U(this.options)}var U=function(t){if(t.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion;if(t.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=t.idealEdgeLength;if(t.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=t.edgeElasticity;if(t.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor;if(t.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=t.gravity;if(t.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=t.numIter;if(t.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange;if(t.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound;if(t.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound;if(t.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental;if(t.quality=="draft")o.QUALITY=0;else if(t.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!t.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=t.animate,l.TILE=t.tile,l.TILING_PADDING_VERTICAL=typeof t.tilingPaddingVertical==="function"?t.tilingPaddingVertical.call():t.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof t.tilingPaddingHorizontal==="function"?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};I.prototype.run=function(){var E,t,f=this.options,s=this.idToLNode={},c=this.layout=new L,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var y=c.newGraphManager();this.gm=y;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=y.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var et=y.add(c.newEdge(),x,O);et.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=i.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},nt=function X(){var R=function(){if(f.fit)f.cy.fit(f.eles,f.padding);if(!E)E=!0,i.cy.one("layoutready",f.ready),i.cy.trigger({type:"layoutready",layout:i})},B=i.options.refresh,C;for(var G=0;G<B&&!C;G++)C=i.stopped||i.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,i.options.eles.nodes().positions(V),R(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),t)cancelAnimationFrame(t);E=!1;return}var M=i.layout.getPositionsData();f.eles.nodes().positions(function(A,it){if(typeof A==="number")A=it;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),t=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(i.options.animate==="during")t=requestAnimationFrame(nt)}),c.runLayout(),this.options.animate!=="during")i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,V),E=!1;return this},I.prototype.getTopMostNodes=function(E){var t={};for(var f=0;f<E.length;f++)t[E[f].id()]=!0;var s=E.filter(function(c,i){if(typeof c==="number")c=i;var y=c.parent()[0];while(y!=null){if(t[y.id()])return!1;y=y.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(E,t,f){var s=t.length;for(var c=0;c<s;c++){var i=t[c],y=i.children(),T,m=i.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(i.outerWidth()!=null&&i.outerHeight()!=null)T=E.add(new b(f.graphManager,new H(i.position("x")-m.w/2,i.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=E.add(new b(this.graphManager));if(T.id=i.data("id"),T.paddingLeft=parseInt(i.css("padding")),T.paddingTop=parseInt(i.css("padding")),T.paddingRight=parseInt(i.css("padding")),T.paddingBottom=parseInt(i.css("padding")),this.options.nodeDimensionsIncludeLabels){if(i.isParent()){var h=i.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=i.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=i.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[i.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(y!=null&&y.length>0){var O=f.getGraphManager().add(f.newGraph(),T);this.processChildrenList(O,y,f)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(t){t("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);g.exports=S}])})});var z=Ce(k(),1);lt.use(z.default);function q(u,g){u.forEach((a)=>{let n={id:a.id,labelText:a.label,height:a.height,width:a.width,padding:a.padding??0};Object.keys(a).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=a[o]}),g.add({group:"nodes",data:n,position:{x:a.x??0,y:a.y??0}})})}e(q,"addNodes");function W(u,g){u.forEach((a)=>{let n={id:a.id,source:a.start,target:a.end};Object.keys(a).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=a[o]}),g.add({group:"edges",data:n})})}e(W,"addEdges");function Q(u){return new Promise((g)=>{let a=p("body").append("div").attr("id","cy").attr("style","display:none"),n=lt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{r.info("Cytoscape ready",d),g(n)})})}e(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((g)=>{let a=g.data(),n=g.position(),o={id:a.id,x:n.x,y:n.y};return Object.keys(a).forEach((d)=>{if(d!=="id")o[d]=a[d]}),o})}e(Z,"extractPositionedNodes");function J(u){return u.edges().map((g)=>{let a=g.data(),n=g._private.rscratch,o={id:a.id,source:a.source,target:a.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(a).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=a[d]}),o})}e(J,"extractPositionedEdges");async function K(u,g){r.debug("Starting cose-bilkent layout algorithm");try{tt(u);let a=await Q(u),n=Z(a),o=J(a);return r.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(a){throw r.error("Error in cose-bilkent layout algorithm:",a),a}}e(K,"executeCoseBilkentLayout");function tt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}e(tt,"validateLayoutData");var at=e(async(u,g,{insertCluster:a,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=g.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),E=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await a(I,s)}else{let c={...s};v[s.id]=c;let i=await l(E,s,{config:u.config,dir:u.direction||"TB"}),y=i.node().getBBox();c.width=y.width,c.height=y.height,c.domId=i,L.debug(`Node ${s.id} dimensions: ${y.width}x${y.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let t={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},f=await K(t,u.config);L.debug("Positioning nodes based on layout results"),f.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),f.edges.forEach((s)=>{let c=u.edges.find((i)=>i.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),i=v[s.start??""],y=v[s.end??""];if(i&&y){let T=f.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}else{let m={...s,points:[{x:i.x||0,y:i.y||0},{x:y.x||0,y:y.y||0}]},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),ct=at;export{ct as render};
1
+ import{e,r,p}from"./chunk-9dd1c37b.js";import{lt,sr}from"./chunk-kgerjbn4.js";import{Ce,Se}from"./chunk-aqm3spxt.js";var k=Se(function(F,Y){(function(g,a){if(typeof F==="object"&&typeof Y==="object")Y.exports=a(sr());else if(typeof define==="function"&&define.amd)define(["cose-base"],a);else if(typeof F==="object")F.cytoscapeCoseBilkent=a(sr());else g.cytoscapeCoseBilkent=a(g.coseBase)})(F,function(u){return function(g){var a={};function n(o){if(a[o])return a[o].exports;var d=a[o]={i:o,l:!1,exports:{}};return g[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=g,n.c=a,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(g,a){g.exports=u},function(g,a,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(E,t){var f={};for(var s in E)f[s]=E[s];for(var s in t)f[s]=t[s];return f}function I(E){this.options=D(_,E),U(this.options)}var U=function(t){if(t.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion;if(t.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=t.idealEdgeLength;if(t.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=t.edgeElasticity;if(t.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor;if(t.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=t.gravity;if(t.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=t.numIter;if(t.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange;if(t.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound;if(t.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound;if(t.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental;if(t.quality=="draft")o.QUALITY=0;else if(t.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!t.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=t.animate,l.TILE=t.tile,l.TILING_PADDING_VERTICAL=typeof t.tilingPaddingVertical==="function"?t.tilingPaddingVertical.call():t.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof t.tilingPaddingHorizontal==="function"?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};I.prototype.run=function(){var E,t,f=this.options,s=this.idToLNode={},c=this.layout=new L,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var y=c.newGraphManager();this.gm=y;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=y.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var et=y.add(c.newEdge(),x,O);et.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=i.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},nt=function X(){var R=function(){if(f.fit)f.cy.fit(f.eles,f.padding);if(!E)E=!0,i.cy.one("layoutready",f.ready),i.cy.trigger({type:"layoutready",layout:i})},B=i.options.refresh,C;for(var G=0;G<B&&!C;G++)C=i.stopped||i.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,i.options.eles.nodes().positions(V),R(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),t)cancelAnimationFrame(t);E=!1;return}var M=i.layout.getPositionsData();f.eles.nodes().positions(function(A,it){if(typeof A==="number")A=it;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),t=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(i.options.animate==="during")t=requestAnimationFrame(nt)}),c.runLayout(),this.options.animate!=="during")i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,V),E=!1;return this},I.prototype.getTopMostNodes=function(E){var t={};for(var f=0;f<E.length;f++)t[E[f].id()]=!0;var s=E.filter(function(c,i){if(typeof c==="number")c=i;var y=c.parent()[0];while(y!=null){if(t[y.id()])return!1;y=y.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(E,t,f){var s=t.length;for(var c=0;c<s;c++){var i=t[c],y=i.children(),T,m=i.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(i.outerWidth()!=null&&i.outerHeight()!=null)T=E.add(new b(f.graphManager,new H(i.position("x")-m.w/2,i.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=E.add(new b(this.graphManager));if(T.id=i.data("id"),T.paddingLeft=parseInt(i.css("padding")),T.paddingTop=parseInt(i.css("padding")),T.paddingRight=parseInt(i.css("padding")),T.paddingBottom=parseInt(i.css("padding")),this.options.nodeDimensionsIncludeLabels){if(i.isParent()){var h=i.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=i.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=i.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[i.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(y!=null&&y.length>0){var O=f.getGraphManager().add(f.newGraph(),T);this.processChildrenList(O,y,f)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(t){t("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);g.exports=S}])})});var z=Ce(k(),1);lt.use(z.default);function q(u,g){u.forEach((a)=>{let n={id:a.id,labelText:a.label,height:a.height,width:a.width,padding:a.padding??0};Object.keys(a).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=a[o]}),g.add({group:"nodes",data:n,position:{x:a.x??0,y:a.y??0}})})}e(q,"addNodes");function W(u,g){u.forEach((a)=>{let n={id:a.id,source:a.start,target:a.end};Object.keys(a).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=a[o]}),g.add({group:"edges",data:n})})}e(W,"addEdges");function Q(u){return new Promise((g)=>{let a=p("body").append("div").attr("id","cy").attr("style","display:none"),n=lt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{r.info("Cytoscape ready",d),g(n)})})}e(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((g)=>{let a=g.data(),n=g.position(),o={id:a.id,x:n.x,y:n.y};return Object.keys(a).forEach((d)=>{if(d!=="id")o[d]=a[d]}),o})}e(Z,"extractPositionedNodes");function J(u){return u.edges().map((g)=>{let a=g.data(),n=g._private.rscratch,o={id:a.id,source:a.source,target:a.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(a).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=a[d]}),o})}e(J,"extractPositionedEdges");async function K(u,g){r.debug("Starting cose-bilkent layout algorithm");try{tt(u);let a=await Q(u),n=Z(a),o=J(a);return r.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(a){throw r.error("Error in cose-bilkent layout algorithm:",a),a}}e(K,"executeCoseBilkentLayout");function tt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}e(tt,"validateLayoutData");var at=e(async(u,g,{insertCluster:a,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=g.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),E=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await a(I,s)}else{let c={...s};v[s.id]=c;let i=await l(E,s,{config:u.config,dir:u.direction||"TB"}),y=i.node().getBBox();c.width=y.width,c.height=y.height,c.domId=i,L.debug(`Node ${s.id} dimensions: ${y.width}x${y.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let t={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},f=await K(t,u.config);L.debug("Positioning nodes based on layout results"),f.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),f.edges.forEach((s)=>{let c=u.edges.find((i)=>i.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),i=v[s.start??""],y=v[s.end??""];if(i&&y){let T=f.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}else{let m={...s,points:[{x:i.x||0,y:i.y||0},{x:y.x||0,y:y.y||0}]},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),ct=at;export{ct as render};