@bkm016/basalt 0.1.15 → 0.1.16
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.
- package/{chunk-mfb3dgs8.js → chunk-1c9nr9rs.js} +1 -1
- package/{chunk-z9p6s986.js → chunk-4hf0r9hv.js} +3 -3
- package/{chunk-p886jr17.js → chunk-6ae9810t.js} +2 -2
- package/{chunk-6hx9y86d.js → chunk-6exa9fp7.js} +1 -1
- package/{chunk-tszctb17.js → chunk-8jn0yax5.js} +26 -26
- package/{chunk-xq74x4gc.js → chunk-8r4baw9e.js} +1 -1
- package/{chunk-5n1qra6k.js → chunk-9ymm1gge.js} +158 -149
- package/{chunk-qjnx4fsn.js → chunk-b350b01x.js} +3 -3
- package/{chunk-59hg9a84.js → chunk-bv96b8q7.js} +1 -1
- package/{chunk-343jsm46.js → chunk-e8x8zwkg.js} +1 -1
- package/{chunk-k38jaz6c.js → chunk-ehnc8g6v.js} +2 -2
- package/{chunk-kcn05erf.js → chunk-fzftb4n2.js} +3 -3
- package/{chunk-0rasqm8y.js → chunk-nrdszs0g.js} +2 -2
- package/{chunk-qs161f2q.js → chunk-p78wde92.js} +1 -1
- package/{chunk-39mh7h58.js → chunk-pna1wh02.js} +1 -1
- package/{chunk-edcf97ka.js → chunk-q6tgpaf3.js} +1 -1
- package/{chunk-qe76naq9.js → chunk-rqn67tm8.js} +1 -1
- package/{chunk-en7z6ne5.js → chunk-v9ttcf6r.js} +1 -1
- package/{chunk-9v3b7jjv.js → chunk-vv9csar7.js} +1 -1
- package/{chunk-81x8r8w4.js → chunk-xba6fr5v.js} +1 -1
- package/{chunk-03wzwnn6.js → chunk-ypxs8djn.js} +1 -1
- package/compiled.js +4 -4
- package/package.json +1 -1
- package/ui-test-worker.js +2 -2
- package/web/{chunk-ymtq18z6.js → chunk-0qnetvsc.js} +4 -4
- package/web/{chunk-p1bb9xp8.js → chunk-0zb330w3.js} +4 -4
- package/web/{chunk-zf4b8jb9.js → chunk-0zyekjym.js} +1 -1
- package/web/chunk-11byy7vm.js +1 -0
- package/web/chunk-160x5pv7.js +1 -0
- package/web/{chunk-jca9xbe0.js → chunk-19g09ekr.js} +5 -5
- package/web/chunk-1gzprnyd.js +1 -0
- package/web/{chunk-7wzszsf5.js → chunk-1hx4xtdk.js} +2 -2
- package/web/{chunk-50vgq2nk.js → chunk-1je4p601.js} +4 -4
- package/web/{chunk-jx3z63tq.js → chunk-1np2aamb.js} +3 -3
- package/web/{chunk-ed5xfgxb.js → chunk-1rjtqf8h.js} +2 -2
- package/web/{chunk-62gj74fq.js → chunk-23258z1r.js} +1 -1
- package/web/{chunk-1bhpfsvr.js → chunk-27592nd8.js} +3 -3
- package/web/chunk-27tchdxd.js +2 -0
- package/web/{chunk-pdmcr6d4.js → chunk-2hqmdqn3.js} +1 -1
- package/web/chunk-2q79n966.js +2 -0
- package/web/{chunk-djnq1w1e.js → chunk-2ws74tfa.js} +10 -10
- package/web/{chunk-vypfy030.js → chunk-2z8epr8f.js} +7 -7
- package/web/{chunk-k4qrqmdk.js → chunk-36e78034.js} +2 -2
- package/web/{chunk-27cntdyk.js → chunk-3gj2t10x.js} +8 -8
- package/web/{chunk-tvaxyhh0.js → chunk-444xfger.js} +4 -4
- package/web/{chunk-z5h046zm.js → chunk-4k62e61g.js} +5 -5
- package/web/{chunk-phj4pcx4.js → chunk-4z6wma3s.js} +2 -2
- package/web/{chunk-251yw6f2.js → chunk-5sss3r97.js} +1 -1
- package/web/chunk-5wkqqa59.js +1 -0
- package/web/{chunk-qdsg8wp0.js → chunk-5yczs6sb.js} +1 -1
- package/web/chunk-5yn7mwvt.js +1 -0
- package/web/{chunk-pa82db2e.js → chunk-6ty9vw27.js} +3 -3
- package/web/chunk-705tkt2r.js +1 -0
- package/web/{chunk-t72z2ww3.js → chunk-753qp8sa.js} +2 -2
- package/web/{chunk-7frnjms9.js → chunk-75kzvpf3.js} +8 -8
- package/web/{chunk-hdtvrh0f.js → chunk-75meb0dh.js} +2 -2
- package/web/{chunk-66164wmv.js → chunk-76e3npmd.js} +1 -1
- package/web/chunk-7p04dn0k.js +1 -0
- package/web/chunk-7rb3v8gy.js +1 -0
- package/web/{chunk-65ay0j1t.js → chunk-7yz88k97.js} +3 -3
- package/web/{chunk-yeh77fvq.js → chunk-85d7jkp0.js} +1 -1
- package/web/chunk-90kgn35s.js +1 -0
- package/web/chunk-931y1g0h.js +1 -0
- package/web/{chunk-jy448465.js → chunk-bcp6na49.js} +104 -101
- package/web/chunk-bz1q7qdd.js +8 -0
- package/web/chunk-c0evk1xy.js +1 -0
- package/web/{chunk-8qzsxg1q.js → chunk-c0hdp2zj.js} +1 -1
- package/web/{chunk-25sn840r.js → chunk-c1z290wm.js} +2 -2
- package/web/{chunk-01nbc18z.js → chunk-cge0cjfm.js} +1 -1
- package/web/{chunk-3zs2v6b4.js → chunk-chh8bg2h.js} +11 -11
- package/web/{chunk-7zfqppsx.js → chunk-ctmxm4qd.js} +2 -2
- package/web/{chunk-hbwxtbq3.js → chunk-e229cr90.js} +1 -1
- package/web/{chunk-pma5pats.js → chunk-e9mmkrc3.js} +5 -5
- package/web/{chunk-yzmrbssn.js → chunk-ef03t1mb.js} +5 -5
- package/web/{chunk-ehz9m6g4.js → chunk-f8nnrk6y.js} +4 -4
- package/web/{chunk-mss6eg27.js → chunk-fcrswzgm.js} +3 -3
- package/web/{chunk-1v6hhgc6.js → chunk-ffn1a0zw.js} +1 -1
- package/web/chunk-fw4fa7j6.js +1 -0
- package/web/chunk-fx8hheqz.js +1 -0
- package/web/{chunk-937ndmh1.js → chunk-g8wy9sa6.js} +11 -11
- package/web/{chunk-pafw34vg.js → chunk-gaf9brzv.js} +2 -2
- package/web/{chunk-bcx7xges.js → chunk-gj16e7z0.js} +1 -1
- package/web/{chunk-6x1hfjb9.js → chunk-gjchc4kg.js} +1 -1
- package/web/chunk-h1y8y203.js +1 -0
- package/web/{chunk-6s1vjny7.js → chunk-h6vy008x.js} +1 -1
- package/web/{chunk-t5ke9cyg.js → chunk-h8mhnze5.js} +55 -55
- package/web/{chunk-s6bc73n3.js → chunk-hhnhgthx.js} +2 -2
- package/web/{chunk-4m9mgdaa.js → chunk-j27mtdr2.js} +1 -1
- package/web/chunk-jys02310.js +1 -0
- package/web/chunk-kew13yzg.js +1 -0
- package/web/{chunk-43194184.js → chunk-kx5r8nf2.js} +1 -1
- package/web/{chunk-3hy2gsgf.js → chunk-m7c0xk69.js} +1 -1
- package/web/{chunk-n0ezfa12.js → chunk-madrcnm1.js} +2 -2
- package/web/{chunk-vwv6pqy7.js → chunk-mcm3t5wr.js} +1 -1
- package/web/{chunk-q6j2e8a1.js → chunk-mrnx4f74.js} +2 -2
- package/web/chunk-mtdsrtc5.js +1 -0
- package/web/{chunk-te15yhn5.js → chunk-mv5axm2y.js} +4 -4
- package/web/{chunk-t78qm9gs.js → chunk-n3f5a91k.js} +1 -1
- package/web/{chunk-ksnsfqrn.js → chunk-n3spc397.js} +1 -1
- package/web/{chunk-dde64qjd.js → chunk-nhc280n0.js} +1 -1
- package/web/chunk-nx1bcekh.js +2 -0
- package/web/{chunk-wfgrdabk.js → chunk-p0jghn6b.js} +1 -1
- package/web/chunk-p8t7s4z4.js +1 -0
- package/web/chunk-pgh1cx6w.js +1 -0
- package/web/{chunk-mv9q8jrm.js → chunk-ps489yjy.js} +1 -1
- package/web/{chunk-2tm4xe0j.js → chunk-qbhv18t0.js} +2 -2
- package/web/{chunk-cq1f20k6.js → chunk-qgzn0ha5.js} +1 -1
- package/web/{chunk-aw6wg8fe.js → chunk-qtwxq6hj.js} +3 -3
- package/web/chunk-qwp3dhmf.js +1 -0
- package/web/{chunk-t2v01k4z.js → chunk-qwwqdmhv.js} +1 -1
- package/web/{chunk-43bczb21.js → chunk-rjh54ygb.js} +5 -5
- package/web/chunk-ryh8jdzy.js +1 -0
- package/web/chunk-s3t8dkkz.js +1 -0
- package/web/chunk-sk1w7f7h.js +1 -0
- package/web/chunk-smkrxjm5.js +1 -0
- package/web/{chunk-ppfhtyxt.js → chunk-sv5ph7fa.js} +1 -1
- package/web/{chunk-4q2jtvwn.js → chunk-t89tfrpj.js} +8 -8
- package/web/{chunk-qv1w36ja.js → chunk-t9pg7qf8.js} +2 -2
- package/web/{chunk-qdn3hmfy.js → chunk-t9twxmsg.js} +1 -1
- package/web/{chunk-pmghe7rh.js → chunk-tfdchqn4.js} +1 -1
- package/web/{chunk-dgepxev9.js → chunk-tfsrk2rc.js} +24 -24
- package/web/{chunk-5rwg3qqd.js → chunk-tvvggvjt.js} +8 -8
- package/web/chunk-ty87gdvr.js +1 -0
- package/web/{chunk-b323qea5.js → chunk-v16s0x7c.js} +1 -1
- package/web/{chunk-6xfbh4z5.js → chunk-vb2z2azk.js} +10 -10
- package/web/{chunk-ea6b8b50.js → chunk-vcnsvj49.js} +9 -9
- package/web/{chunk-8nm0mghm.js → chunk-vgyp8wa2.js} +2 -2
- package/web/chunk-vh8pkcem.css +1 -0
- package/web/{chunk-17wwzrp4.js → chunk-vjnvfb8z.js} +1 -1
- package/web/{chunk-qf2kb7zj.js → chunk-vphzndz8.js} +1 -1
- package/web/{chunk-fttdbcqv.js → chunk-w60dxtyz.js} +1 -1
- package/web/{chunk-1zwc09e8.js → chunk-wcj3bxdf.js} +2 -2
- package/web/{chunk-kxr473dw.js → chunk-wgmwgaw4.js} +5 -5
- package/web/{chunk-k3ah0513.js → chunk-wvt76598.js} +1 -1
- package/web/chunk-y0mef85j.js +1 -0
- package/web/{chunk-5fzmk43v.js → chunk-y2ykn1gm.js} +1 -1
- package/web/{chunk-jdx7qp2w.js → chunk-ybqt106a.js} +2 -2
- package/web/{chunk-m5psa69k.js → chunk-ym9qfsjs.js} +4 -4
- package/web/{chunk-w9nkvcjr.js → chunk-ypdptddq.js} +1 -1
- package/web/{chunk-3f8fjee5.js → chunk-z08c63ph.js} +2 -2
- package/web/{chunk-bzdn9sxz.js → chunk-z2hvvkf5.js} +2 -2
- package/web/chunk-z6x74qfh.js +1 -0
- package/web/{chunk-57b8j192.js → chunk-z86pjpqp.js} +1 -1
- package/web/{chunk-4tbhxtnm.js → chunk-zh0vjc6g.js} +1 -1
- package/web/chunk-zns9wmab.js +1 -0
- package/web/index.html +1 -1
- package/web/chunk-00swes3c.js +0 -1
- package/web/chunk-0e995hjg.js +0 -1
- package/web/chunk-3egthz5k.js +0 -2
- package/web/chunk-3fjzgpaw.js +0 -1
- package/web/chunk-3mgzqbc8.js +0 -1
- package/web/chunk-3yvanftw.js +0 -1
- package/web/chunk-64h7k870.js +0 -1
- package/web/chunk-6ehecat3.js +0 -1
- package/web/chunk-73941p08.js +0 -1
- package/web/chunk-7jh6zxg3.js +0 -1
- package/web/chunk-7mgwejn4.js +0 -1
- package/web/chunk-8zg89764.js +0 -1
- package/web/chunk-95gbcs8j.js +0 -1
- package/web/chunk-evp6t44y.js +0 -8
- package/web/chunk-eyg28s83.js +0 -1
- package/web/chunk-g7bcntpm.js +0 -1
- package/web/chunk-g9bqacq1.js +0 -1
- package/web/chunk-gh8kjzdj.js +0 -1
- package/web/chunk-j031r08w.js +0 -1
- package/web/chunk-jab2p5zv.js +0 -2
- package/web/chunk-jpf8x9tm.js +0 -1
- package/web/chunk-jy8zat04.js +0 -1
- package/web/chunk-k8s7kye3.js +0 -1
- package/web/chunk-k9zn1n6d.js +0 -1
- package/web/chunk-md9j949p.js +0 -1
- package/web/chunk-npyrdsf8.css +0 -1
- package/web/chunk-pze2v3v1.js +0 -2
- package/web/chunk-q6jf3zc1.js +0 -1
- package/web/chunk-sdtesqbb.js +0 -1
- package/web/chunk-t0z8ygx4.js +0 -1
- package/web/chunk-w7cyrbk2.js +0 -1
- package/web/chunk-x2f8bwd2.js +0 -1
- package/web/chunk-xq8x7dvr.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,Na,a,b,F,C,S,E,T,A,L,R,l,p,Rn,Tr,Ln,Wi,Ve,bo,cn,Zn,M}from"./chunk-t5ke9cyg.js";import"./chunk-vwv6pqy7.js";import{zn,yn}from"./chunk-pf65cank.js";import{cr,qr,pa,Vr,kt}from"./chunk-s6bc73n3.js";import{Ot}from"./chunk-h0c42zy3.js";import{Ce,Se}from"./chunk-jy448465.js";var vn=Se(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,B,O,G,H=s(this),z=(_=this.isoWeekYear(),B=this.$u,O=(B?i.utc:i)().year(_).startOf("year"),G=4-O.isoWeekday(),O.isoWeekday()>4&&(G+=7),O.add(G,e));return H.diff(z,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var B=this.$utils(),O=!!B.u(_)||_;return B.p(D)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Se(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(W){return(W=+W)+(W>68?1900:2000)},_=function(W){return function(Z){this[W]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(W)}],O=function(W){var Z=u[W];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(W,Z){var N,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(W.indexOf(tt(ft,0,Z))>-1){N=ft>12;break}}else N=W===(Z?"pm":"PM");return N},H={A:[o,function(W){this.afternoon=G(W,!1)}],a:[o,function(W){this.afternoon=G(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(W){var Z=u.ordinal,N=W.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===W&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(W){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[o,function(W){var Z=O("months").indexOf(W)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(W){this.year=D(W)}],YYYY:[/\d{4}/,_("year")],Z:B,ZZ:B};function z(W){var Z,N;Z=W,N=u&&u.formats;for(var tt=(W=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var U=x&&x.toUpperCase();return nt||N[x]||e[x]||N[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=H[j],f=Y&&Y[0],P=Y&&Y[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,U=0;x<ft;x+=1){var I=tt[x];if(typeof I=="string")U+=I.length;else{var{regex:V,parser:d}=I,w=rt.slice(U),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(W,Z,N){N.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(D=W.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,U=f[2];nt&&(U=f[2]),u=this.$locale(),!rt&&U&&(u=N.Ls[U]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,P,Y,N),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var I=P.length,V=1;V<=I;V+=1){f[1]=P[V-1];var d=N.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===I&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(sr,or){(function(e,r){typeof sr=="object"&&typeof or<"u"?or.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(sr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(_)}}})});var wn=Se(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},H=function(j,Y,f){return new ft(j,f,Y.$l)},z=function(j){return r.p(j)+"s"},W=function(j){return j<0},Z=function(j){return W(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,Y){return j?W(j)?{negative:!0,format:""+N(j)+Y}:{negative:!1,format:""+j+Y}:{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 H(f*O[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(I){nt.$d[z(I)]=f[I]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(_);if(x){var U=x.slice(2).map(function(I){return I!=null?Number(I):0});return this.$d.years=U[0],this.$d.months=U[1],this.$d.weeks=U[2],this.$d.days=U[3],this.$d.hours=U[4],this.$d.minutes=U[5],this.$d.seconds=U[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*O[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),U=tt(this.$d.minutes,"M"),I=this.$d.seconds||0;this.$d.milliseconds&&(I+=this.$d.milliseconds/1000,I=Math.round(1000*I)/1000);var V=tt(I,"S"),d=f.negative||P.negative||nt.negative||x.negative||U.negative||V.negative,w=x.format||U.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+U.format+V.format;return v==="P"||v==="-P"?"P0D":v},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return P.replace(B,function(nt,x){return x||String(rt[nt])})},Y.as=function(f){return this.$ms/O[z(f)]},Y.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},Y.add=function(f,P,rt){var nt;return nt=P?f*O[z(P)]:G(f)?f.$ms:H(f,this).$ms,H(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,P){return this.add(f,P,!0)},Y.locale=function(f){var P=this.clone();return P.$l=f,P},Y.clone=function(){return H(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,x){var U=f.locale();return H(nt,{$l:U},x)},f.isDuration=G;var P=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},Y.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function jn(e){return"translate(0,"+e+")"}function Xn(e){return(r)=>+e(r)}function Gn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,O=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:jn;function H(z){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,N=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Gn:Xn)(r.copy(),_),Y=z.selection?z.selection():z,f=Y.selectAll(".domain").data([null]),P=Y.selectAll(".tick").data(W,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),U=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",B*o)),U=U.merge(nt.append("text").attr("fill","currentColor").attr(O,B*N).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==Y)f=f.transition(z),P=P.transition(z),x=x.transition(z),U=U.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(I){return isFinite(I=j(I))?G(I+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(I){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(I))?V:j(I))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+_+"V"+at+"H"+B*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+_+"H"+at+"V"+B*u:"M"+ft+","+_+"H"+at),P.attr("opacity",1).attr("transform",function(I){return G(j(I)+_)}),x.attr(O+"2",B*o),U.attr(O,B*N).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return H.scale=function(z){return arguments.length?(r=z,H):r},H.ticks=function(){return n=Array.from(arguments),H},H.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),H):n.slice()},H.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),H):i&&i.slice()},H.tickFormat=function(z){return arguments.length?(s=z,H):s},H.tickSize=function(z){return arguments.length?(o=u=+z,H):o},H.tickSizeInner=function(z){return arguments.length?(o=+z,H):o},H.tickSizeOuter=function(z){return arguments.length?(u=+z,H):u},H.tickPadding=function(z){return arguments.length?(D=+z,H):D},H.offset=function(z){return arguments.length?(_=+z,H):_},H}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Or(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Hr(e);if(!(e instanceof Ve))e=Wi(e);var r=Re(e.r),n=Re(e.g),i=Re(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function $r(e,r,n,i){return arguments.length===1?Or(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Rn(Ft,$r,Tr(Ln,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Ur*Pe(r),e=Lr*Pe(e),n=Wr*Pe(n),new Ve(ze(3.1338561*r-1.6168667*e-0.4906146*n),ze(-0.9787684*r+1.9161415*e+0.033454*n),ze(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Ar+Er}function Pe(e){return e>Qt?e*e*e:Ar*(e-Er)}function ze(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Re(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=Or(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Hr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Fr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Rn(At,ke,Tr(Ln,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Hr(this).rgb()}}));function Nr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var Pr=Nr(bo),Ls=Nr(cn);function Be(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Ze=new Date,je=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let B;do _.push(B=new Date(+o)),r(o,D),e(o);while(B<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Ze.setTime(+o),je.setTime(+u),e(Ze),e(je),Math.floor(n(Ze,je))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var zr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,Xe=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Rr=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,Te=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=Te.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,ve=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=ve.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,xe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=xe.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),be=Bt(2),we=Bt(3),Lt=Bt(4),Me=Bt(5),De=Bt(6),Br=_t.range,si=zt.range,oi=be.range,ci=we.range,ui=Lt.range,li=Me.range,fi=De.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),Zr=Zt(2),jr=Zt(3),Rt=Zt(4),Xr=Zt(5),Gr=Zt(6),Qr=jt.range,di=Jt.range,mi=Zr.range,hi=jr.range,yi=Rt.range,gi=Xr.range,ki=Gr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,Xe],[r,3,3*Xe],[e,1,pe]];function D(B,O,G){let H=O<B;if(H)[B,O]=[O,B];let z=G&&typeof G.range==="function"?G:_(B,O,G),W=z?z.range(B,+O+1):[];return H?W.reverse():W}function _(B,O,G){let H=Math.abs(O-B)/G,z=cr(([,,N])=>N).right(u,H);if(z===u.length)return e.every(qr(B/pe,O/pe,G));if(z===0)return It.every(Math.max(qr(B,O,G),1));let[W,Z]=u[H/u[z-1][2]<u[z][2]/H?z-1:z];return W.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,xe,ve,Te),[Ge,qe]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,B=ue(s),O=le(s),G=ue(o),H=le(o),z=ue(u),W=le(u),Z=ue(D),N=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:na,G:aa,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:ia,Z:sa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:la,g:xa,G:wa,H:oa,I:ca,j:ua,L:mn,m:fa,M:da,p:lt,q:it,Q:un,s:ln,S:ma,u:ha,U:ya,V:ga,w:ka,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:x,A:U,b:I,B:V,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ai,L:Hi,m:Ei,M:Oi,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=O.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=W.get(y[0].toLowerCase()),et+y[0].length):-1}function U(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=H.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=N.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ni(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function zi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function Ri(e,r){return ct(e.getHours(),r,2)}function Bi(e,r){return ct(e.getHours()%12||12,r,2)}function Zi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function ua(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function la(e,r){return mn(e,r)+"000"}function fa(e,r){return ct(e.getUTCMonth()+1,r,2)}function da(e,r){return ct(e.getUTCMinutes(),r,2)}function ma(e,r){return ct(e.getUTCSeconds(),r,2)}function ha(e){var r=e.getUTCDay();return r===0?7:r}function ya(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function hn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ga(e,r){return e=hn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function ka(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=hn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(e){return+e}function ln(e){return Math.floor(+e/1000)}var Kt,Xt,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(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Ca(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,B){var O=Vr(),{invert:G,domain:H}=O,z=B(".%L"),W=B(":%S"),Z=B("%I:%M"),N=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function Y(f){return(_(f)<f?z:D(f)<f?W:u(f)<f?Z:o(f)<f?N:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return O.invert=function(f){return new Date(G(f))},O.domain=function(f){return arguments.length?H(Array.from(f,Ca)):H().map(Da)},O.ticks=function(f){var P=H();return e(P[0],P[P.length-1],f==null?10:f)},O.tickFormat=function(f,P){return P==null?Y:B(P)},O.nice=function(f){var P=H();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?H(Be(P,f)):O},O.copy=function(){return pa(O,Tn(e,r,n,i,s,o,u,D,_,B))},O}function er(){return Ot.apply(Tn(Ge,qe,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Zn(),1),Mt=Ce(Na(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(Na(),1),Vn=Ce(wn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],B=[1,33],O=[1,34],G=[1,9],H=[1,10],z=[1,11],W=[1,12],Z=[1,13],N=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
1
|
+
import{t,Ma,a,b,F,C,S,E,T,A,I,R,l,p,Rn,Er,Ln,Zi,Ve,ko,cn,Zn,M}from"./chunk-h8mhnze5.js";import"./chunk-mcm3t5wr.js";import{zn,yn}from"./chunk-pf65cank.js";import{ur,Vr,ma,Wr,kt}from"./chunk-hhnhgthx.js";import{Ot}from"./chunk-h0c42zy3.js";import{Ce,Se}from"./chunk-bcp6na49.js";var vn=Se(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,B,O,G,H=s(this),z=(_=this.isoWeekYear(),B=this.$u,O=(B?i.utc:i)().year(_).startOf("year"),G=4-O.isoWeekday(),O.isoWeekday()>4&&(G+=7),O.add(G,e));return H.diff(z,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var B=this.$utils(),O=!!B.u(_)||_;return B.p(D)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Se(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(W){return(W=+W)+(W>68?1900:2000)},_=function(W){return function(Z){this[W]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(W)}],O=function(W){var Z=u[W];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(W,Z){var N,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(W.indexOf(tt(ft,0,Z))>-1){N=ft>12;break}}else N=W===(Z?"pm":"PM");return N},H={A:[o,function(W){this.afternoon=G(W,!1)}],a:[o,function(W){this.afternoon=G(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(W){var Z=u.ordinal,N=W.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===W&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(W){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[o,function(W){var Z=O("months").indexOf(W)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(W){this.year=D(W)}],YYYY:[/\d{4}/,_("year")],Z:B,ZZ:B};function z(W){var Z,N;Z=W,N=u&&u.formats;for(var tt=(W=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var L=x&&x.toUpperCase();return nt||N[x]||e[x]||N[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=H[j],f=Y&&Y[0],P=Y&&Y[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,L=0;x<ft;x+=1){var U=tt[x];if(typeof U=="string")L+=U.length;else{var{regex:V,parser:d}=U,w=rt.slice(L),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(W,Z,N){N.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(D=W.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,L=f[2];nt&&(L=f[2]),u=this.$locale(),!rt&&L&&(u=N.Ls[L]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,P,Y,N),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var U=P.length,V=1;V<=U;V+=1){f[1]=P[V-1];var d=N.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===U&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(sr,or){(function(e,r){typeof sr=="object"&&typeof or<"u"?or.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(sr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(_)}}})});var wn=Se(function(cr,lr){(function(e,r){typeof cr=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(cr,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},H=function(j,Y,f){return new ft(j,f,Y.$l)},z=function(j){return r.p(j)+"s"},W=function(j){return j<0},Z=function(j){return W(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,Y){return j?W(j)?{negative:!0,format:""+N(j)+Y}:{negative:!1,format:""+j+Y}:{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 H(f*O[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(U){nt.$d[z(U)]=f[U]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(_);if(x){var L=x.slice(2).map(function(U){return U!=null?Number(U):0});return this.$d.years=L[0],this.$d.months=L[1],this.$d.weeks=L[2],this.$d.days=L[3],this.$d.hours=L[4],this.$d.minutes=L[5],this.$d.seconds=L[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*O[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),L=tt(this.$d.minutes,"M"),U=this.$d.seconds||0;this.$d.milliseconds&&(U+=this.$d.milliseconds/1000,U=Math.round(1000*U)/1000);var V=tt(U,"S"),d=f.negative||P.negative||nt.negative||x.negative||L.negative||V.negative,w=x.format||L.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+L.format+V.format;return v==="P"||v==="-P"?"P0D":v},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return P.replace(B,function(nt,x){return x||String(rt[nt])})},Y.as=function(f){return this.$ms/O[z(f)]},Y.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},Y.add=function(f,P,rt){var nt;return nt=P?f*O[z(P)]:G(f)?f.$ms:H(f,this).$ms,H(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,P){return this.add(f,P,!0)},Y.locale=function(f){var P=this.clone();return P.$l=f,P},Y.clone=function(){return H(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,x){var L=f.locale();return H(nt,{$l:L},x)},f.isDuration=G;var P=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},Y.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,Sr=0.000001;function Bn(e){return"translate("+e+",0)"}function jn(e){return"translate(0,"+e+")"}function Xn(e){return(r)=>+e(r)}function Gn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function _r(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,O=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:jn;function H(z){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,N=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Gn:Xn)(r.copy(),_),Y=z.selection?z.selection():z,f=Y.selectAll(".domain").data([null]),P=Y.selectAll(".tick").data(W,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),L=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",B*o)),L=L.merge(nt.append("text").attr("fill","currentColor").attr(O,B*N).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==Y)f=f.transition(z),P=P.transition(z),x=x.transition(z),L=L.transition(z),rt=rt.transition(z).attr("opacity",Sr).attr("transform",function(U){return isFinite(U=j(U))?G(U+_):this.getAttribute("transform")}),nt.attr("opacity",Sr).attr("transform",function(U){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(U))?V:j(U))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+_+"V"+at+"H"+B*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+_+"H"+at+"V"+B*u:"M"+ft+","+_+"H"+at),P.attr("opacity",1).attr("transform",function(U){return G(j(U)+_)}),x.attr(O+"2",B*o),L.attr(O,B*N).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return H.scale=function(z){return arguments.length?(r=z,H):r},H.ticks=function(){return n=Array.from(arguments),H},H.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),H):n.slice()},H.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),H):i&&i.slice()},H.tickFormat=function(z){return arguments.length?(s=z,H):s},H.tickSize=function(z){return arguments.length?(o=u=+z,H):o},H.tickSizeInner=function(z){return arguments.length?(o=+z,H):o},H.tickSizeOuter=function(z){return arguments.length?(u=+z,H):u},H.tickPadding=function(z){return arguments.length?(D=+z,H):D},H.offset=function(z){return arguments.length?(_=+z,H):_},H}function $e(e){return _r(ye,e)}function He(e){return _r(Oe,e)}var Yr=Math.PI/180,Fr=180/Math.PI;var ge=18,Ir=0.96422,Ur=1,Lr=0.82521,Ar=0.13793103448275862,Qt=0.20689655172413793,Or=3*Qt*Qt,Qn=Qt*Qt*Qt;function $r(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof Ve))e=Zi(e);var r=Re(e.r),n=Re(e.g),i=Re(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Ur),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ir),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Lr);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?$r(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Rn(Ft,Hr,Er(Ln,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Ir*Pe(r),e=Ur*Pe(e),n=Lr*Pe(n),new Ve(ze(3.1338561*r-1.6168667*e-0.4906146*n),ze(-0.9787684*r+1.9161415*e+0.033454*n),ze(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Or+Ar}function Pe(e){return e>Qt?e*e*e:Or*(e-Ar)}function ze(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Re(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=$r(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Fr;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Yr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Rn(At,ke,Er(Ln,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var zr=Pr(ko),Ls=Pr(cn);function Be(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Ze=new Date,je=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let B;do _.push(B=new Date(+o)),r(o,D),e(o);while(B<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Ze.setTime(+o),je.setTime(+u),e(Ze),e(je),Math.floor(n(Ze,je))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Rr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,Xe=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Br=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,Te=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=Te.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,ve=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=ve.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,xe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=xe.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),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(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,Xe],[r,3,3*Xe],[e,1,pe]];function D(B,O,G){let H=O<B;if(H)[B,O]=[O,B];let z=G&&typeof G.range==="function"?G:_(B,O,G),W=z?z.range(B,+O+1):[];return H?W.reverse():W}function _(B,O,G){let H=Math.abs(O-B)/G,z=ur(([,,N])=>N).right(u,H);if(z===u.length)return e.every(Vr(B/pe,O/pe,G));if(z===0)return It.every(Math.max(Vr(B,O,G),1));let[W,Z]=u[H/u[z-1][2]<u[z][2]/H?z-1:z];return W.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,xe,ve,Te),[Ge,qe]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,B=ue(s),O=le(s),G=ue(o),H=le(o),z=ue(u),W=le(u),Z=ue(D),N=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:na,G:aa,H:zi,I:Ri,j:Bi,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:ia,Z:sa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:la,g:xa,G:wa,H:oa,I:ca,j:ua,L:mn,m:fa,M:da,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Da,"%":on},Y={a:x,A:L,b:U,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:Pi,s:Vi,S:Oi,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Ui,"%":Ni};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=O.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=W.get(y[0].toLowerCase()),et+y[0].length):-1}function L(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=H.get(y[0].toLowerCase()),et+y[0].length):-1}function U(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=N.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Wi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Ni(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Pi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function zi(e,r){return ct(e.getHours(),r,2)}function Ri(e,r){return ct(e.getHours()%12||12,r,2)}function Bi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function ua(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function la(e,r){return mn(e,r)+"000"}function fa(e,r){return ct(e.getUTCMonth()+1,r,2)}function da(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function hn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=hn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=hn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Da(){return"+0000"}function on(){return"%"}function un(e){return+e}function ln(e){return Math.floor(+e/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(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Ca(e){return new Date(e)}function Sa(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,B){var O=Wr(),{invert:G,domain:H}=O,z=B(".%L"),W=B(":%S"),Z=B("%I:%M"),N=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function Y(f){return(_(f)<f?z:D(f)<f?W:u(f)<f?Z:o(f)<f?N:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return O.invert=function(f){return new Date(G(f))},O.domain=function(f){return arguments.length?H(Array.from(f,Sa)):H().map(Ca)},O.ticks=function(f){var P=H();return e(P[0],P[P.length-1],f==null?10:f)},O.tickFormat=function(f,P){return P==null?Y:B(P)},O.nice=function(f){var P=H();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?H(Be(P,f)):O},O.copy=function(){return ma(O,Tn(e,r,n,i,s,o,u,D,_,B))},O}function er(){return Ot.apply(Tn(Ge,qe,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Zn(),1),Mt=Ce(Ma(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(Ma(),1),Vn=Ce(wn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],B=[1,33],O=[1,34],G=[1,9],H=[1,10],z=[1,11],W=[1,12],Z=[1,13],N=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Cr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
2
2
|
`+it.showPosition()+`
|
|
3
|
-
Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(vt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[vt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,vt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[vt[1]][0]),Q.push(qt.$),c.push(qt._$),
|
|
3
|
+
Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(vt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[vt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,vt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[vt[1]][0]),Q.push(qt.$),c.push(qt._$),Cr=J[v[v.length-2]][v[v.length-1]],v.push(Cr);break;case 3:return!0}}return!0},"parse")},L=function(){var V={EOF:1,parseError:t(function(w,v){if(this.yy.parser)this.yy.parser.parseError(w,v);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:t(function(d){var w=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1)this.yylineno-=v.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:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(d){this.unput(this.match.slice(d))},"less"),pastInput:t(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
5
5
|
`+w+"^"},"showPosition"),test_match:t(function(d,w){var v,k,Q;if(this.options.backtrack_lexer){if(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Q.yylloc.range=this.yylloc.range.slice(0)}if(k=d[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],v=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(v)return v;else if(this._backtrack){for(var c in Q)this[c]=Q[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,v,k;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var c=0;c<Q.length;c++)if(v=this._input.match(this.rules[Q[c]]),v&&(!w||v[0].length>w[0].length)){if(w=v,k=c,this.options.backtrack_lexer)if(d=this.test_match(v,Q[c]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[k]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return V}();x.lexer=U;function I(){this.yy={}}return t(I,"Parser"),I.prototype=x,x.Parser=I,new I}();dr.parser=dr;var Sa=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],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,_a=t(function(){xr=[],Ie=[],ae="",wr=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",br="",kr=void 0,pr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,vr=new Map,te="",C(),Dr="sunday",Ue="saturday"},"clear"),Ya=t(function(e){te=e},"setDiagramId"),Fa=t(function(e){gr=e},"setAxisFormat"),Ia=t(function(){return gr},"getAxisFormat"),Ua=t(function(e){kr=e},"setTickInterval"),La=t(function(){return kr},"getTickInterval"),Wa=t(function(e){pr=e},"setTodayMarker"),Ea=t(function(){return pr},"getTodayMarker"),Aa=t(function(e){Wt=e},"setDateFormat"),Oa=t(function(){fe=!0},"enableInclusiveEndDates"),$a=t(function(){return fe},"endDatesAreInclusive"),Ha=t(function(){Mr=!0},"enableTopAxis"),Pa=t(function(){return Mr},"topAxisEnabled"),Va=t(function(e){br=e},"setDisplayMode"),za=t(function(){return br},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return vr},"getLinks"),qa=t(function(e){ae=e,xr.push(e)},"addSection"),Qa=t(function(){return xr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Wn=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Dr=e},"setWeekday"),ts=t(function(){return Dr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),En=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Wn(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),An=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let H=Gt(G);if(H===void 0){_.push(G);continue}if(!D||H.endTime>D.endTime)D=H}if(_.length>0)An("after",_);if(D)return D.endTime;let O=new Date;return O.setHours(0,0,0,0),O}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),On=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),$n=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let O=null,G=[],H=o.groups.ids.split(" ").filter((W)=>W!=="");for(let W of H){let Z=Gt(W);if(Z===void 0){G.push(W);continue}if(!O||Z.startTime<O.startTime)O=Z}if(G.length>0)An("until",G);if(O)return O.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,B]=On(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let O=D.add(_,B);if(O.isValid())D=O}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=$n(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),En(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Hn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Hn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Hn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=$n(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),En(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)Pn(i,()=>{window.open(n,"_self")}),vr.set(i,n)}),Nn(e,"clickable")},"setLink"),Nn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)Pn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),Pn=t(function(e,r){wr.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Nn(e,"clickable")},"setClickEvent"),ls=t(function(e){wr.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:_a,setDateFormat:Aa,getDateFormat:Ra,enableInclusiveEndDates:Oa,endDatesAreInclusive:$a,enableTopAxis:Ha,topAxisEnabled:Pa,setAxisFormat:Fa,getAxisFormat:Ia,setTickInterval:Ua,getTickInterval:La,setTodayMarker:Wa,getTodayMarker:Ea,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Ya,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:On,isInvalidDate:Wn,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Cr,"getTaskTags");ee.default.extend(Vn.default);var ds=t(function(){a.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=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,B=_.getElementById(r);if(Pt=B.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let O=i.db.getTasks(),G=O.filter((x)=>!x.vert),H=[];for(let x of G)H.push(x.type);H=nt(H);let z={},W=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let I of G)if(x[I.section]===void 0)x[I.section]=[I];else x[I.section].push(I);let U=0;for(let I of Object.keys(x)){let V=ms(x[I],U)+1;U+=V,W+=V*(s.barHeight+s.barGap),z[I]=V}}else{W+=G.length*(s.barHeight+s.barGap);for(let x of H)z[x]=G.filter((U)=>U.type===x).length}B.setAttribute("viewBox","0 0 "+Pt+" "+W);let Z=D.select(`[id="${r}"]`),N=er().domain([yn(O,function(x){return x.startTime}),zn(O,function(x){return x.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(x,U){let I=x.startTime,V=U.startTime,d=0;if(I>V)d=1;else if(I<V)d=-1;return d}t(tt,"taskCompare"),O.sort(tt),ft(O,Pt,W),F(Z,W,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,U,I){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=kt().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(Pr);j(d,w,v,U,I,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,U,I),at(x,d,w,v,V,k,U,I),P(d,w,v,V,k),rt(v,w,U,I)}t(ft,"makeGantt");function at(x,U,I,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*U+I-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",U).attr("class",function(m){for(let[q,K]of H.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))-0.5*d;return N(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*U+I}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return N(m.renderEndTime||m.endTime)-N(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))).toString()+"px "+(q*U+I+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of H.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=N(m.startTime),K=N(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(N(m.endTime)-N(m.startTime))-0.5*d,K=q+d;if(m.vert)return N(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)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 s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*U+s.barHeight/2+(s.fontSize/2-2)+I}).attr("text-height",d).attr("class",function(m){let q=N(m.startTime),K=N(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 H.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,U,I,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>N(K.start.startOf("day"))+I).attr("y",s.gridLineStartPadding).attr("width",(K)=>N(K.end.endOf("day"))-N(K.start.startOf("day"))).attr("height",d-U-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(N(K.start)+I+0.5*(N(K.end)-N(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(x,U,I,V){if(I<=0||x>U)return 1/0;let d=U-x,w=ee.default.duration({[V??"day"]:I}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(x,U,I,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=N.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=N.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+U+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,U){let I=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(b.lineBreakRegex),v=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return I+=V[w-1][1],d[1]*x/2+I*x+U;else return d[1]*x/2+U}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of H.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,U,I,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",N(v)+x).attr("x2",N(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let U={},I=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(U,x[V]))U[x[V]]=!0,I.push(x[V]);return I}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return V}();x.lexer=L;function U(){this.yy={}}return t(U,"Parser"),U.prototype=x,x.Parser=U,new U}();dr.parser=dr;var _a=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",In=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,wr=!1,Mr="sunday",Ue="saturday",mr=0,Ya=t(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,wr=!1,mr=0,Tr=new Map,te="",C(),Mr="sunday",Ue="saturday"},"clear"),Fa=t(function(e){te=e},"setDiagramId"),Ia=t(function(e){gr=e},"setAxisFormat"),Ua=t(function(){return gr},"getAxisFormat"),La=t(function(e){kr=e},"setTickInterval"),Wa=t(function(){return kr},"getTickInterval"),Ea=t(function(e){pr=e},"setTodayMarker"),Aa=t(function(){return pr},"getTodayMarker"),Oa=t(function(e){Wt=e},"setDateFormat"),$a=t(function(){fe=!0},"enableInclusiveEndDates"),Ha=t(function(){return fe},"endDatesAreInclusive"),Na=t(function(){wr=!0},"enableTopAxis"),Pa=t(function(){return wr},"topAxisEnabled"),Va=t(function(e){xr=e},"setDisplayMode"),za=t(function(){return xr},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return Tr},"getLinks"),qa=t(function(e){ae=e,vr.push(e)},"addSection"),Qa=t(function(){return vr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Wn=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Mr=e},"setWeekday"),ts=t(function(){return Mr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),En=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Wn(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),An=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let H=Gt(G);if(H===void 0){_.push(G);continue}if(!D||H.endTime>D.endTime)D=H}if(_.length>0)An("after",_);if(D)return D.endTime;let O=new Date;return O.setHours(0,0,0,0),O}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),On=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),$n=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let O=null,G=[],H=o.groups.ids.split(" ").filter((W)=>W!=="");for(let W of H){let Z=Gt(W);if(Z===void 0){G.push(W);continue}if(!O||Z.startTime<O.startTime)O=Z}if(G.length>0)An("until",G);if(O)return O.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,B]=On(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let O=D.add(_,B);if(O.isValid())D=O}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=$n(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),En(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Hn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Hn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Hn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=$n(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),En(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)Pn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),Nn(e,"clickable")},"setLink"),Nn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)Pn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),Pn=t(function(e,r){br.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Nn(e,"clickable")},"setClickEvent"),ls=t(function(e){br.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:I,getDiagramTitle:R,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:On,isInvalidDate:Wn,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Dr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Dr,"getTaskTags");ee.default.extend(Vn.default);var ds=t(function(){a.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=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,B=_.getElementById(r);if(Pt=B.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let O=i.db.getTasks(),G=O.filter((x)=>!x.vert),H=[];for(let x of G)H.push(x.type);H=nt(H);let z={},W=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let U of G)if(x[U.section]===void 0)x[U.section]=[U];else x[U.section].push(U);let L=0;for(let U of Object.keys(x)){let V=ms(x[U],L)+1;L+=V,W+=V*(s.barHeight+s.barGap),z[U]=V}}else{W+=G.length*(s.barHeight+s.barGap);for(let x of H)z[x]=G.filter((L)=>L.type===x).length}B.setAttribute("viewBox","0 0 "+Pt+" "+W);let Z=D.select(`[id="${r}"]`),N=er().domain([yn(O,function(x){return x.startTime}),zn(O,function(x){return x.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(x,L){let U=x.startTime,V=L.startTime,d=0;if(U>V)d=1;else if(U<V)d=-1;return d}t(tt,"taskCompare"),O.sort(tt),ft(O,Pt,W),F(Z,W,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,L,U){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=kt().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(zr);j(d,w,v,L,U,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,L,U),at(x,d,w,v,V,k,L,U),P(d,w,v,V,k),rt(v,w,L,U)}t(ft,"makeGantt");function at(x,L,U,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*L+U-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",L).attr("class",function(m){for(let[q,K]of H.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))-0.5*d;return N(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*L+U}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return N(m.renderEndTime||m.endTime)-N(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))).toString()+"px "+(q*L+U+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of H.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=N(m.startTime),K=N(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(N(m.endTime)-N(m.startTime))-0.5*d,K=q+d;if(m.vert)return N(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)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 s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*L+s.barHeight/2+(s.fontSize/2-2)+U}).attr("text-height",d).attr("class",function(m){let q=N(m.startTime),K=N(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 H.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,L,U,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>N(K.start.startOf("day"))+U).attr("y",s.gridLineStartPadding).attr("width",(K)=>N(K.end.endOf("day"))-N(K.start.startOf("day"))).attr("height",d-L-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(N(K.start)+U+0.5*(N(K.end)-N(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(x,L,U,V){if(U<=0||x>L)return 1/0;let d=L-x,w=ee.default.duration({[V??"day"]:U}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(x,L,U,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(N).tickSize(-V+L+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=N.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(N).tickSize(-V+L+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=N.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+L+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,L){let U=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(b.lineBreakRegex),v=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return U+=V[w-1][1],d[1]*x/2+U*x+L;else return d[1]*x/2+L}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of H.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,L,U,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",N(v)+x).attr("x2",N(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let L={},U=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(L,x[V]))L[x[V]]=!0,U.push(x[V]);return U}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${e.fontFamily};
|
|
9
9
|
}
|
|
@@ -289,4 +289,4 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
|
|
|
289
289
|
fill: ${e.titleColor||e.textColor};
|
|
290
290
|
font-family: ${e.fontFamily};
|
|
291
291
|
}
|
|
292
|
-
`,"getStyles"),ks=gs,Bo={parser:
|
|
292
|
+
`,"getStyles"),ks=gs,Bo={parser:_a,db:fs,renderer:ys,styles:ks};export{Bo as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gn}from"./chunk-t78qm9gs.js";import{H}from"./chunk-yeh77fvq.js";import{t,a,N,x,b,C,S,E,T,A,L,R,l,Sr,p,Ki,j,M}from"./chunk-t5ke9cyg.js";import{J}from"./chunk-dgepxev9.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=N.gitGraph,X=t(()=>j({...Ce,...x().gitGraph}),"getConfig"),m=new gn(()=>{let e=X(),{mainBranchName:r,mainBranchOrder:o}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return Ki({length:7})}t(ne,"getID");function pe(e,r){let o=Object.create(null);return e.reduce((c,i)=>{let h=r(i);if(!o[h])o[h]=!0,c.push(i);return c},[])}t(pe,"uniqBy");var ve=t(function(e){m.records.direction=e},"setDirection"),Ee=t(function(e){a.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:o,type:c,tags:i}=e;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let h=X();o=b.sanitizeText(o,h),r=b.sanitizeText(r,h),i=i?.map((s)=>b.sanitizeText(s,h));let n={id:o?o:m.records.seq+"-"+ne(),message:r,seq:m.records.seq++,type:c??v.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",h.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=t(function(e){let{name:r,order:o}=e;if(r=b.sanitizeText(r,X()),m.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:o,type:c,tags:i}=e,h=X();if(r=b.sanitizeText(r,h),o)o=b.sanitizeText(o,h);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,y=s?m.records.commits.get(s):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(y===void 0||!y){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===y){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let u=s?s:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:v.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:o,tags:c,parent:i}=e;a.debug("Entering cherryPick:",r,o,c);let h=X();if(r=b.sanitizeText(r,h),o=b.sanitizeText(o,h),c=c?.map((g)=>b.sanitizeText(g,h)),i=b.sanitizeText(i,h),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===v.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ne(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:v.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===v.MERGE?`|parent:${i}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=t(function(e){if(e=b.sanitizeText(e,X()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function he(e,r,o){let c=e.indexOf(r);if(c===-1)e.push(o);else e.splice(c,1,o)}t(he,"upsert");function me(e){let r=e.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},e[0]),o="";e.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(he(e,r,i),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);he(e,r,i)}e=pe(e,(i)=>i.id),me(e)}t(me,"prettyPrintCommitHistory");var Oe=t(function(){a.debug(m.records.commits);let e=xe()[0];me([e])},"prettyPrint"),Ie=t(function(){m.reset(),C()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),xe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){a.debug(r.id)}),e.sort((r,o)=>r.seq-o.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ue={commitType:v,getConfig:X,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:L,getDiagramTitle:R},He=t((e,r)=>{if(H(e,r),e.dir)r.setDirection(e.dir);for(let o of e.statements)Se(o,r)},"populate"),Se=t((e,r)=>{let c={Commit:t((i)=>r.commit(Ne(i)),"Commit"),Branch:t((i)=>r.branch(Fe(i)),"Branch"),Merge:t((i)=>r.merge(ze(i)),"Merge"),Checkout:t((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:t((i)=>r.cherryPick(je(i)),"CherryPicking")}[e.$type];if(c)c(e);else a.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?v[e.type]:v.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?v[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await J("gitGraph",e);a.debug(r),He(r,ue)},"parse")},K=10,U=40,q=4,z=2,V=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=t((e,r,o=!1)=>{if(o&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),G=new Map,D=new Map,oe=30,te=new Map,se=[],Y=0,B="LR",Ve=t(()=>{G.clear(),D.clear(),te.clear(),Y=0,se=[],B="LR"},"clear"),be=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=t((e)=>{let r,o,c;if(B==="BT")o=t((i,h)=>i<=h,"comparisonFunc"),c=1/0;else o=t((i,h)=>i>=h,"comparisonFunc"),c=0;return e.forEach((i)=>{let h=B==="TB"||B=="BT"?D.get(i)?.y:D.get(i)?.x;if(h!==void 0&&o(h,c))r=i,c=h}),r},"findClosestParent"),Ze=t((e)=>{let r="",o=1/0;return e.forEach((c)=>{let i=D.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=t((e,r,o)=>{let c=o,i=o,h=[];e.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else h.push(s);et(s,c)}),c=i,h.forEach((n)=>{tt(n,c,o)}),e.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=D.get(g).y-U,c<=i)i=c;let y=G.get(s.branch).pos,u=c-K;D.set(s.id,{x:y,y:u})}})},"setParallelBTPos"),Je=t((e)=>{let r=we(e.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let o=D.get(r)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return o},"findClosestParentPos"),Qe=t((e)=>Je(e)+U,"calculateCommitPosition"),et=t((e,r)=>{let o=G.get(e.branch);if(!o)throw Error(`Branch not found for commit ${e.id}`);let c=o.pos,i=r+K;return D.set(e.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=t((e,r,o)=>{let c=G.get(e.branch);if(!c)throw Error(`Branch not found for commit ${e.id}`);let i=r+o,h=c.pos;D.set(e.id,{x:h,y:i})},"setRootPosition"),rt=t((e,r,o,c,i,h)=>{let{theme:n}=l(),s=ce.has(n??""),g=ge.has(n??""),y=Ue.has(n??"");if(h===v.HIGHLIGHT)e.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${Z(i,V,g)} ${c}-outer`),e.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${Z(i,V,g)} ${c}-inner`);else if(h===v.CHERRY_PICK)e.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let u=e.append("circle");if(u.attr("cx",o.x),u.attr("cy",o.y),u.attr("r",s?7:10),u.attr("class",`commit ${r.id} commit${Z(i,V,g)}`),h===v.MERGE){let f=e.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}if(h===v.REVERSE){let f=e.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}}},"drawCommitBullet"),at=t((e,r,o,c,i)=>{if(r.type!==v.CHERRY_PICK&&(r.customId&&r.type===v.MERGE||r.type!==v.MERGE)&&i.showCommitLabel){let h=e.append("g"),n=h.insert("rect").attr("class","commit-label-bkg"),s=h.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.attr("x",o.posWithOffset-g.width/2-z).attr("y",o.y+13.5).attr("width",g.width+2*z).attr("height",g.height+2*z),B==="TB"||B==="BT")n.attr("x",o.x-(g.width+4*q+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*q)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(B==="TB"||B==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let y=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;h.attr("transform","translate("+y+", "+u+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=t((e,r,o,c)=>{if(r.tags.length>0){let i=0,h=0,n=0,s=[];for(let g of r.tags.reverse()){let y=e.insert("polygon"),u=e.append("circle"),f=e.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:u,rect:y,yOffset:i}),i+=20}for(let{tag:g,hole:y,rect:u,yOffset:f}of s){let d=n/2,k=o.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{gn}from"./chunk-n3f5a91k.js";import{H}from"./chunk-85d7jkp0.js";import{t,a,N,x,b,C,S,E,T,A,I,R,l,Tr,p,to,j,M}from"./chunk-h8mhnze5.js";import{J}from"./chunk-tfsrk2rc.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=N.gitGraph,X=t(()=>j({...Ce,...x().gitGraph}),"getConfig"),m=new gn(()=>{let e=X(),{mainBranchName:r,mainBranchOrder:o}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return to({length:7})}t(ne,"getID");function pe(e,r){let o=Object.create(null);return e.reduce((c,i)=>{let h=r(i);if(!o[h])o[h]=!0,c.push(i);return c},[])}t(pe,"uniqBy");var ve=t(function(e){m.records.direction=e},"setDirection"),Ee=t(function(e){a.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:o,type:c,tags:i}=e;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let h=X();o=b.sanitizeText(o,h),r=b.sanitizeText(r,h),i=i?.map((s)=>b.sanitizeText(s,h));let n={id:o?o:m.records.seq+"-"+ne(),message:r,seq:m.records.seq++,type:c??v.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",h.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=t(function(e){let{name:r,order:o}=e;if(r=b.sanitizeText(r,X()),m.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:o,type:c,tags:i}=e,h=X();if(r=b.sanitizeText(r,h),o)o=b.sanitizeText(o,h);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,y=s?m.records.commits.get(s):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(y===void 0||!y){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===y){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let u=s?s:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:v.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:o,tags:c,parent:i}=e;a.debug("Entering cherryPick:",r,o,c);let h=X();if(r=b.sanitizeText(r,h),o=b.sanitizeText(o,h),c=c?.map((g)=>b.sanitizeText(g,h)),i=b.sanitizeText(i,h),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===v.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ne(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:v.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===v.MERGE?`|parent:${i}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=t(function(e){if(e=b.sanitizeText(e,X()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function he(e,r,o){let c=e.indexOf(r);if(c===-1)e.push(o);else e.splice(c,1,o)}t(he,"upsert");function me(e){let r=e.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},e[0]),o="";e.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(he(e,r,i),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);he(e,r,i)}e=pe(e,(i)=>i.id),me(e)}t(me,"prettyPrintCommitHistory");var Oe=t(function(){a.debug(m.records.commits);let e=xe()[0];me([e])},"prettyPrint"),Ie=t(function(){m.reset(),C()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),xe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){a.debug(r.id)}),e.sort((r,o)=>r.seq-o.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ue={commitType:v,getConfig:X,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:R},He=t((e,r)=>{if(H(e,r),e.dir)r.setDirection(e.dir);for(let o of e.statements)Se(o,r)},"populate"),Se=t((e,r)=>{let c={Commit:t((i)=>r.commit(Ne(i)),"Commit"),Branch:t((i)=>r.branch(Fe(i)),"Branch"),Merge:t((i)=>r.merge(ze(i)),"Merge"),Checkout:t((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:t((i)=>r.cherryPick(je(i)),"CherryPicking")}[e.$type];if(c)c(e);else a.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?v[e.type]:v.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?v[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await J("gitGraph",e);a.debug(r),He(r,ue)},"parse")},K=10,U=40,q=4,z=2,V=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=t((e,r,o=!1)=>{if(o&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),G=new Map,D=new Map,oe=30,te=new Map,se=[],Y=0,B="LR",Ve=t(()=>{G.clear(),D.clear(),te.clear(),Y=0,se=[],B="LR"},"clear"),be=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=t((e)=>{let r,o,c;if(B==="BT")o=t((i,h)=>i<=h,"comparisonFunc"),c=1/0;else o=t((i,h)=>i>=h,"comparisonFunc"),c=0;return e.forEach((i)=>{let h=B==="TB"||B=="BT"?D.get(i)?.y:D.get(i)?.x;if(h!==void 0&&o(h,c))r=i,c=h}),r},"findClosestParent"),Ze=t((e)=>{let r="",o=1/0;return e.forEach((c)=>{let i=D.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=t((e,r,o)=>{let c=o,i=o,h=[];e.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else h.push(s);et(s,c)}),c=i,h.forEach((n)=>{tt(n,c,o)}),e.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=D.get(g).y-U,c<=i)i=c;let y=G.get(s.branch).pos,u=c-K;D.set(s.id,{x:y,y:u})}})},"setParallelBTPos"),Je=t((e)=>{let r=we(e.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let o=D.get(r)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return o},"findClosestParentPos"),Qe=t((e)=>Je(e)+U,"calculateCommitPosition"),et=t((e,r)=>{let o=G.get(e.branch);if(!o)throw Error(`Branch not found for commit ${e.id}`);let c=o.pos,i=r+K;return D.set(e.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=t((e,r,o)=>{let c=G.get(e.branch);if(!c)throw Error(`Branch not found for commit ${e.id}`);let i=r+o,h=c.pos;D.set(e.id,{x:h,y:i})},"setRootPosition"),rt=t((e,r,o,c,i,h)=>{let{theme:n}=l(),s=ce.has(n??""),g=ge.has(n??""),y=Ue.has(n??"");if(h===v.HIGHLIGHT)e.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${Z(i,V,g)} ${c}-outer`),e.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${Z(i,V,g)} ${c}-inner`);else if(h===v.CHERRY_PICK)e.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let u=e.append("circle");if(u.attr("cx",o.x),u.attr("cy",o.y),u.attr("r",s?7:10),u.attr("class",`commit ${r.id} commit${Z(i,V,g)}`),h===v.MERGE){let f=e.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}if(h===v.REVERSE){let f=e.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}}},"drawCommitBullet"),at=t((e,r,o,c,i)=>{if(r.type!==v.CHERRY_PICK&&(r.customId&&r.type===v.MERGE||r.type!==v.MERGE)&&i.showCommitLabel){let h=e.append("g"),n=h.insert("rect").attr("class","commit-label-bkg"),s=h.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.attr("x",o.posWithOffset-g.width/2-z).attr("y",o.y+13.5).attr("width",g.width+2*z).attr("height",g.height+2*z),B==="TB"||B==="BT")n.attr("x",o.x-(g.width+4*q+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*q)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(B==="TB"||B==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let y=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;h.attr("transform","translate("+y+", "+u+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=t((e,r,o,c)=>{if(r.tags.length>0){let i=0,h=0,n=0,s=[];for(let g of r.tags.reverse()){let y=e.insert("polygon"),u=e.append("circle"),f=e.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:u,rect:y,yOffset:i}),i+=20}for(let{tag:g,hole:y,rect:u,yOffset:f}of s){let d=n/2,k=o.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${c-h/2-q/2},${k+z}
|
|
3
3
|
${c-h/2-q/2},${k-z}
|
|
4
4
|
${o.posWithOffset-h/2-q},${k-d-z}
|
|
@@ -10,8 +10,8 @@ import{gn}from"./chunk-t78qm9gs.js";import{H}from"./chunk-yeh77fvq.js";import{t,
|
|
|
10
10
|
${o.x+K},${w-d-2}
|
|
11
11
|
${o.x+K+h+4},${w-d-2}
|
|
12
12
|
${o.x+K+h+4},${w+d+2}
|
|
13
|
-
${o.x+K},${w+d+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),y.attr("cx",o.x+q/2).attr("cy",w).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),g.attr("x",o.x+5).attr("y",w+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+c+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case v.NORMAL:return"commit-normal";case v.REVERSE:return"commit-reverse";case v.HIGHLIGHT:return"commit-highlight";case v.MERGE:return"commit-merge";case v.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,o,c)=>{let i={x:0,y:0};if(e.parents.length>0){let h=we(e.parents);if(h){let n=c.get(h)??i;if(r==="TB")return n.y+U;else if(r==="BT")return(c.get(e.id)??i).y-U;else return n.x+U}}else if(r==="TB")return oe;else if(r==="BT")return(c.get(e.id)??i).y-U;else return 0;return 0},"calculatePosition"),ct=t((e,r,o)=>{let c=B==="BT"&&o?r:r+K,i=G.get(e.branch)?.pos,h=B==="TB"||B==="BT"?G.get(e.branch)?.pos:c;if(h===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let n=ce.has(l().theme??""),s=B==="TB"||B==="BT"?c:i+(n?le/2+1:-2);return{x:h,y:s,posWithOffset:c}},"getCommitPosition"),$e=t((e,r,o,c)=>{let i=e.append("g").attr("class","commit-bullets"),h=e.append("g").attr("class","commit-labels"),n=B==="TB"||B==="BT"?oe:0,s=[...r.keys()],g=c.parallelCommits??!1,y=t((f,d)=>{let k=r.get(f)?.seq,w=r.get(d)?.seq;return k!==void 0&&w!==void 0?k-w:0},"sortKeys"),u=s.sort(y);if(B==="BT"){if(g)Xe(u,r,n);u=u.reverse()}u.forEach((f)=>{let d=r.get(f);if(!d)throw Error(`Commit not found for key ${f}`);if(g)n=nt(d,B,n,D);let k=ct(d,n,g);if(o){let w=st(d),
|
|
14
|
-
`,"id:",r,o);let i=c.db;if(!i.getConfig){a.error("getConfig method is not available on db");return}let h=i.getConfig(),n=h.rotateCommitLabel??!1;te=i.getCommits();let s=i.getBranchesAsObjArray();B=i.getDirection();let g=p(`[id="${r}"]`),{look:y,theme:u,themeVariables:f}=l(),{useGradient:d,gradientStart:k,gradientStop:w,filterColor:
|
|
13
|
+
${o.x+K},${w+d+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),y.attr("cx",o.x+q/2).attr("cy",w).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),g.attr("x",o.x+5).attr("y",w+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+c+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case v.NORMAL:return"commit-normal";case v.REVERSE:return"commit-reverse";case v.HIGHLIGHT:return"commit-highlight";case v.MERGE:return"commit-merge";case v.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,o,c)=>{let i={x:0,y:0};if(e.parents.length>0){let h=we(e.parents);if(h){let n=c.get(h)??i;if(r==="TB")return n.y+U;else if(r==="BT")return(c.get(e.id)??i).y-U;else return n.x+U}}else if(r==="TB")return oe;else if(r==="BT")return(c.get(e.id)??i).y-U;else return 0;return 0},"calculatePosition"),ct=t((e,r,o)=>{let c=B==="BT"&&o?r:r+K,i=G.get(e.branch)?.pos,h=B==="TB"||B==="BT"?G.get(e.branch)?.pos:c;if(h===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let n=ce.has(l().theme??""),s=B==="TB"||B==="BT"?c:i+(n?le/2+1:-2);return{x:h,y:s,posWithOffset:c}},"getCommitPosition"),$e=t((e,r,o,c)=>{let i=e.append("g").attr("class","commit-bullets"),h=e.append("g").attr("class","commit-labels"),n=B==="TB"||B==="BT"?oe:0,s=[...r.keys()],g=c.parallelCommits??!1,y=t((f,d)=>{let k=r.get(f)?.seq,w=r.get(d)?.seq;return k!==void 0&&w!==void 0?k-w:0},"sortKeys"),u=s.sort(y);if(B==="BT"){if(g)Xe(u,r,n);u=u.reverse()}u.forEach((f)=>{let d=r.get(f);if(!d)throw Error(`Commit not found for key ${f}`);if(g)n=nt(d,B,n,D);let k=ct(d,n,g);if(o){let w=st(d),L=d.customType??d.type,P=G.get(d.branch)?.index??0;rt(i,d,k,w,P,L),at(h,d,k,n,c),ot(h,d,k,n)}if(B==="TB"||B==="BT")D.set(d.id,{x:k.x,y:k.posWithOffset});else D.set(d.id,{x:k.posWithOffset,y:k.y});if(n=B==="BT"&&g?n+U:n+U+K,n>Y)Y=n})},"drawCommits"),it=t((e,r,o,c,i)=>{let n=(B==="TB"||B==="BT"?o.x<c.x:o.y<c.y)?r.branch:e.branch,s=t((y)=>y.branch===n,"isOnBranchToGetCurve"),g=t((y)=>y.seq>e.seq&&y.seq<r.seq,"isBetweenCommits");return[...i.values()].some((y)=>g(y)&&s(y))},"shouldRerouteArrow"),re=t((e,r,o=0)=>{let c=e+Math.abs(e-r)/2;if(o>5)return c;if(se.every((n)=>Math.abs(n-c)>=10))return se.push(c),c;let h=Math.abs(e-r);return re(e,r-h/5,o+1)},"findLane"),dt=t((e,r,o,c)=>{let{theme:i}=l(),h=ge.has(i??""),n=D.get(r.id),s=D.get(o.id);if(n===void 0||s===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${o.id}`);let g=it(r,o,n,s,c),y="",u="",f=0,d=0,k=G.get(o.branch)?.index;if(o.type===v.MERGE&&r.id!==o.parents[0])k=G.get(r.branch)?.index;let w;if(g){y="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",f=10,d=10;let L=n.y<s.y?re(n.y,s.y):re(s.y,n.y),P=n.x<s.x?re(n.x,s.x):re(s.x,n.x);if(B==="TB")if(n.x<s.x)w=`M ${n.x} ${n.y} L ${P-f} ${n.y} ${u} ${P} ${n.y+d} L ${P} ${s.y-f} ${y} ${P+d} ${s.y} L ${s.x} ${s.y}`;else k=G.get(r.branch)?.index,w=`M ${n.x} ${n.y} L ${P+f} ${n.y} ${y} ${P} ${n.y+d} L ${P} ${s.y-f} ${u} ${P-d} ${s.y} L ${s.x} ${s.y}`;else if(B==="BT")if(n.x<s.x)w=`M ${n.x} ${n.y} L ${P-f} ${n.y} ${y} ${P} ${n.y-d} L ${P} ${s.y+f} ${u} ${P+d} ${s.y} L ${s.x} ${s.y}`;else k=G.get(r.branch)?.index,w=`M ${n.x} ${n.y} L ${P+f} ${n.y} ${u} ${P} ${n.y-d} L ${P} ${s.y+f} ${y} ${P-d} ${s.y} L ${s.x} ${s.y}`;else if(n.y<s.y)w=`M ${n.x} ${n.y} L ${n.x} ${L-f} ${y} ${n.x+d} ${L} L ${s.x-f} ${L} ${u} ${s.x} ${L+d} L ${s.x} ${s.y}`;else k=G.get(r.branch)?.index,w=`M ${n.x} ${n.y} L ${n.x} ${L+f} ${u} ${n.x+d} ${L} L ${s.x-f} ${L} ${y} ${s.x} ${L-d} L ${s.x} ${s.y}`}else if(y="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,d=20,B==="TB"){if(n.x<s.x)if(o.type===v.MERGE&&r.id!==o.parents[0])w=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else w=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${u} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x>s.x)if(y="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,d=20,o.type===v.MERGE&&r.id!==o.parents[0])w=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${u} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else w=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x===s.x)w=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else if(B==="BT"){if(n.x<s.x)if(o.type===v.MERGE&&r.id!==o.parents[0])w=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${u} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else w=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x>s.x)if(y="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,d=20,o.type===v.MERGE&&r.id!==o.parents[0])w=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else w=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${u} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x===s.x)w=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else{if(n.y<s.y)if(o.type===v.MERGE&&r.id!==o.parents[0])w=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${u} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;else w=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y>s.y)if(o.type===v.MERGE&&r.id!==o.parents[0])w=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;else w=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${u} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y===s.y)w=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}if(w===void 0)throw Error("Line definition not found");e.append("path").attr("d",w).attr("class","arrow arrow"+Z(k,V,h))},"drawArrow"),ht=t((e,r)=>{let o=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((c)=>{let i=r.get(c);if(i.parents&&i.parents.length>0)i.parents.forEach((h)=>{dt(o,r.get(h),i,r)})})},"drawArrows"),lt=t((e,r,o,c)=>{let{look:i,theme:h,themeVariables:n}=l(),{dropShadow:s,THEME_COLOR_LIMIT:g}=n,y=ce.has(h??""),u=ge.has(h??""),f=e.append("g");r.forEach((d,k)=>{let w=Z(k,y?g:V,u),L=G.get(d.name)?.pos;if(L===void 0)throw Error(`Position not found for branch ${d.name}`);let P=B==="TB"||B==="BT"?L:y?L+le/2+1:L-2,O=f.append("line");if(O.attr("x1",0),O.attr("y1",P),O.attr("x2",Y),O.attr("y2",P),O.attr("class","branch branch"+w),B==="TB")O.attr("y1",oe),O.attr("x1",L),O.attr("y2",Y),O.attr("x2",L);else if(B==="BT")O.attr("y1",Y),O.attr("x1",L),O.attr("y2",oe),O.attr("x2",L);se.push(P);let ie=d.name,ee=be(ie),W=f.insert("rect"),F=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+w);F.node().appendChild(ee);let _=ee.getBBox(),fe=y?0:4,ae=y?16:0,Q=y?le:0;if(i==="neo")W.attr("data-look","neo");if(W.attr("class","branchLabelBkg label"+w).attr("style",i==="neo"?`filter:${y?`url(#${c}-drop-shadow)`:s}`:"").attr("rx",fe).attr("ry",fe).attr("x",-_.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-_.height/2+10).attr("width",_.width+18+ae).attr("height",_.height+4+Q),F.attr("transform","translate("+(-_.width-14-(o.rotateCommitLabel===!0?30:0)+ae/2)+", "+(P-_.height/2-2)+")"),B==="TB"){if(W.attr("x",L-_.width/2-10).attr("y",0),F.attr("transform","translate("+(L-_.width/2-5)+", 0)"),y)W.attr("transform",`translate(${-ae/2-3}, ${-Q-10})`),F.attr("transform","translate("+(L-_.width/2-5)+", "+(-Q*2+7)+")")}else if(B==="BT"){if(W.attr("x",L-_.width/2-10).attr("y",Y),F.attr("transform","translate("+(L-_.width/2-5)+", "+Y+")"),y)W.attr("transform",`translate(${-ae/2-3}, ${Q+10})`),F.attr("transform","translate("+(L-_.width/2-5)+", "+(Y+Q*2+4)+")")}else W.attr("transform","translate(-19, "+(P-12-Q/2)+")")})},"drawBranches"),mt=t(function(e,r,o,c,i){return G.set(e,{pos:r,index:o}),r+=50+(i?40:0)+(B==="TB"||B==="BT"?c.width/2:0),r},"setBranchPosition"),gt=t(function(e,r,o,c){Ve(),a.debug("in gitgraph renderer",e+`
|
|
14
|
+
`,"id:",r,o);let i=c.db;if(!i.getConfig){a.error("getConfig method is not available on db");return}let h=i.getConfig(),n=h.rotateCommitLabel??!1;te=i.getCommits();let s=i.getBranchesAsObjArray();B=i.getDirection();let g=p(`[id="${r}"]`),{look:y,theme:u,themeVariables:f}=l(),{useGradient:d,gradientStart:k,gradientStop:w,filterColor:L}=f;if(d){let O=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");O.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),O.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}if(y==="neo"&&ce.has(u??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",L);let P=0;if(s.forEach((O,ie)=>{let ee=be(O.name),W=g.append("g"),de=W.insert("g").attr("class","branchLabel"),F=de.insert("g").attr("class","label branch-label");F.node()?.appendChild(ee);let _=ee.getBBox();P=mt(O.name,P,ie,_,n),F.remove(),de.remove(),W.remove()}),$e(g,te,!1,h),h.showBranches)lt(g,s,h,r);ht(g,te),$e(g,te,!0,h),M.insertTitle(g,"gitTitleText",h.titleTopMargin??0,i.getDiagramTitle()),Tr(void 0,g,h.diagramPadding,h.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=t((e)=>{let{svgId:r}=e,o="";if(e.useGradient&&r)for(let c=0;c<e.THEME_COLOR_LIMIT;c++)o+=`
|
|
15
15
|
.label${c} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
16
|
`;return o},"genGitGraphGradient"),bt=t((e)=>{let r=x(),{theme:o,themeVariables:c}=r,{borderColorArray:i}=c,h=ke.has(o);if(pt.has(o)){let n="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)if(s===0)n+=`
|
|
17
17
|
.branch-label${s} { fill: ${e.nodeBorder};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Li}from"./chunk-tfsrk2rc.js";export{Li as createRadarServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ri}from"./chunk-75meb0dh.js";export{Ri as default};
|