@bkm016/basalt 0.0.0-stage → 0.1.1
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/README.md +275 -2
- package/chunk-09vr609h.js +2 -0
- package/chunk-0hbjv3y6.js +11 -0
- package/chunk-0qqb6v41.js +3753 -0
- package/chunk-0szjy61m.js +2 -0
- package/chunk-0yytz0r1.js +59 -0
- package/chunk-1aspj1hn.js +3 -0
- package/chunk-1b7gbe8g.js +10 -0
- package/chunk-1v7st27a.js +25 -0
- package/chunk-1yzt0qm0.js +2 -0
- package/chunk-2bb01ddq.js +16 -0
- package/chunk-2wkaw73s.js +9 -0
- package/chunk-2zqny2sy.js +2 -0
- package/chunk-32at88hc.js +3 -0
- package/chunk-3m7qwfm3.js +7 -0
- package/chunk-44ek81ad.js +3 -0
- package/chunk-45cz26ap.js +39 -0
- package/chunk-501zkf9b.js +3 -0
- package/chunk-58vz2qsq.js +2 -0
- package/chunk-6e49xsf5.js +3 -0
- package/chunk-6qertm2t.js +3 -0
- package/chunk-8dxzqwq3.js +2 -0
- package/chunk-9mmz6wt3.js +2 -0
- package/chunk-a3tqx584.js +10 -0
- package/chunk-a6r4z44b.js +2 -0
- package/chunk-a8nyk4k9.js +2 -0
- package/chunk-agntrqs9.js +2 -0
- package/chunk-bhqyxyap.js +3 -0
- package/chunk-bpw6q7g0.js +3 -0
- package/chunk-c25s4w6a.js +5 -0
- package/chunk-cv5wsd9m.js +8 -0
- package/chunk-d48bfd2e.js +3 -0
- package/chunk-dakrpbe6.js +3 -0
- package/chunk-dhm42y04.js +7 -0
- package/chunk-exnn1867.js +2 -0
- package/chunk-f7egr55n.js +31 -0
- package/chunk-g2t6t8fk.js +3 -0
- package/chunk-h6sw8fbt.js +5 -0
- package/chunk-hat3s3pr.js +3 -0
- package/chunk-hcn9cf6v.js +2 -0
- package/chunk-jhd54p1b.js +3 -0
- package/chunk-k7w7ac9q.js +18 -0
- package/chunk-kf8hq21a.js +25 -0
- package/chunk-kfq8wyd3.js +3 -0
- package/chunk-n6e43rvk.js +3 -0
- package/chunk-nt2gntad.js +2 -0
- package/chunk-pmc3y1z8.js +2 -0
- package/chunk-pvncysbb.js +3 -0
- package/chunk-q8zx3kt6.js +2 -0
- package/chunk-qczbfccb.js +12 -0
- package/chunk-qnr1f5pj.js +3 -0
- package/chunk-qx0m82rw.js +2 -0
- package/chunk-r9aatvwm.js +3 -0
- package/chunk-rm3kcxq9.js +20 -0
- package/chunk-rv06x0kn.js +7 -0
- package/chunk-ry0z4ev6.js +2 -0
- package/chunk-s37s3k24.js +12 -0
- package/chunk-sh74qzvt.js +5 -0
- package/chunk-szat3vp4.js +3 -0
- package/chunk-t057xfrt.js +5 -0
- package/chunk-tvm4zmgj.js +3 -0
- package/chunk-v9fea96h.js +3 -0
- package/chunk-vgvq3q12.js +3 -0
- package/chunk-vkkj4awb.js +2 -0
- package/chunk-vv7fp27r.js +3 -0
- package/chunk-wjd9fr23.js +2 -0
- package/chunk-wx7kdf0b.js +2 -0
- package/chunk-x3dnb9sz.js +3 -0
- package/chunk-xsbxykr4.js +2 -0
- package/chunk-xysny0ve.js +3 -0
- package/chunk-y69ewdn2.js +3 -0
- package/chunk-yskm0hsy.js +2 -0
- package/chunk-zef13k3h.js +471 -0
- package/cli.js +89 -0
- package/compiled.js +23 -0
- package/icon-dp9pmcvp.png +0 -0
- package/package.json +21 -4
- package/ui-test-worker.js +226 -0
- package/web/KaTeX_AMS-Regular-n7eqehx2.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Bold-20r3b6fv.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Regular-kkjm8f18.woff2 +0 -0
- package/web/KaTeX_Fraktur-Bold-pz5vg4t0.woff2 +0 -0
- package/web/KaTeX_Fraktur-Regular-a1e9wkwk.woff2 +0 -0
- package/web/KaTeX_Main-Bold-mcp098h8.woff2 +0 -0
- package/web/KaTeX_Main-BoldItalic-fy74z249.woff2 +0 -0
- package/web/KaTeX_Main-Italic-hw2gxy7f.woff2 +0 -0
- package/web/KaTeX_Main-Regular-xvp1b75c.woff2 +0 -0
- package/web/KaTeX_Math-BoldItalic-mf5nf33d.woff2 +0 -0
- package/web/KaTeX_Math-Italic-ap60jrna.woff2 +0 -0
- package/web/KaTeX_SansSerif-Bold-we3bymb6.woff2 +0 -0
- package/web/KaTeX_SansSerif-Italic-ent92bjx.woff2 +0 -0
- package/web/KaTeX_SansSerif-Regular-0573pbz9.woff2 +0 -0
- package/web/KaTeX_Script-Regular-z2rtj6vq.woff2 +0 -0
- package/web/KaTeX_Size1-Regular-dfr3w1hv.woff2 +0 -0
- package/web/KaTeX_Size2-Regular-kted78zb.woff2 +0 -0
- package/web/KaTeX_Size3-Regular-e6k1k5jk.woff2 +0 -0
- package/web/KaTeX_Size4-Regular-abedc1pd.woff2 +0 -0
- package/web/KaTeX_Typewriter-Regular-scw9zx1z.woff2 +0 -0
- package/web/apple-touch-icon-7dkm33qp.png +0 -0
- package/web/apple-touch-icon.png +0 -0
- package/web/chunk-05w4fyzc.js +1 -0
- package/web/chunk-0mrkjnte.js +1 -0
- package/web/chunk-0pbjgdgp.js +2 -0
- package/web/chunk-0s80zw00.js +1 -0
- package/web/chunk-0vt9fg48.js +2 -0
- package/web/chunk-20q90epj.js +2 -0
- package/web/chunk-22a4ety5.js +1 -0
- package/web/chunk-24mfx6w1.js +2 -0
- package/web/chunk-2j4m0bh1.js +2 -0
- package/web/chunk-2m12wyrb.js +16 -0
- package/web/chunk-2msj52w6.js +1 -0
- package/web/chunk-2ps6mepk.js +120 -0
- package/web/chunk-2pver6r4.js +1 -0
- package/web/chunk-2scce33n.js +1 -0
- package/web/chunk-37ajk6zg.js +2 -0
- package/web/chunk-3ee04tmm.js +200 -0
- package/web/chunk-3jhyzmnf.js +292 -0
- package/web/chunk-45fzdcgz.js +30 -0
- package/web/chunk-4gavbw65.js +1 -0
- package/web/chunk-4ks96e4r.js +1 -0
- package/web/chunk-4rm1vy7w.js +1 -0
- package/web/chunk-4v8en1yw.js +40 -0
- package/web/chunk-4wd9r73y.js +1 -0
- package/web/chunk-4wkm9fda.js +1 -0
- package/web/chunk-54thej0t.js +2 -0
- package/web/chunk-59kqahb3.js +1 -0
- package/web/chunk-5vw9rs4r.js +4 -0
- package/web/chunk-6beqrmtq.js +1 -0
- package/web/chunk-6m69hczt.js +2 -0
- package/web/chunk-70qwwwak.js +2 -0
- package/web/chunk-74j07k8k.js +2 -0
- package/web/chunk-8g239029.js +1 -0
- package/web/chunk-8p4tc9f4.js +70 -0
- package/web/chunk-90kp4pnz.js +2 -0
- package/web/chunk-9an7cjd9.js +291 -0
- package/web/chunk-9dxjafp2.js +78 -0
- package/web/chunk-9p12mgs6.js +2 -0
- package/web/chunk-9v1f6yc8.js +1 -0
- package/web/chunk-9yakxvjb.js +2 -0
- package/web/chunk-a1z5qx1r.js +36 -0
- package/web/chunk-a3verqw9.js +214 -0
- package/web/chunk-a5x2zveg.js +7 -0
- package/web/chunk-ad6x47yy.js +1 -0
- package/web/chunk-amzgyy1k.js +1 -0
- package/web/chunk-b1pe46zz.js +2 -0
- package/web/chunk-b4wbk7vc.js +217 -0
- package/web/chunk-bc78qf1m.js +7 -0
- package/web/chunk-bgnnrpna.js +89 -0
- package/web/chunk-bj90t5gh.js +99 -0
- package/web/chunk-bjkc94mv.js +1 -0
- package/web/chunk-ca682sm6.js +370 -0
- package/web/chunk-cff5hcm8.js +8 -0
- package/web/chunk-cg3jterp.js +2 -0
- package/web/chunk-d18r4m14.js +141 -0
- package/web/chunk-dmqtdeb4.js +1 -0
- package/web/chunk-dt462hk9.js +332 -0
- package/web/chunk-dy2gm1fs.js +1 -0
- package/web/chunk-dzwxgqgm.js +39 -0
- package/web/chunk-e32y85kx.js +1 -0
- package/web/chunk-e53wfgb8.js +1 -0
- package/web/chunk-e6jxqbv7.js +3 -0
- package/web/chunk-esp1mmgr.js +1 -0
- package/web/chunk-ew3cgdtd.js +1 -0
- package/web/chunk-f26smjjf.js +2 -0
- package/web/chunk-f91wzwtk.js +1 -0
- package/web/chunk-fk0dh93x.js +89 -0
- package/web/chunk-fm2ybfj5.js +98 -0
- package/web/chunk-fscafg24.js +34 -0
- package/web/chunk-fz06t6km.js +55 -0
- package/web/chunk-g1ev11wx.js +1 -0
- package/web/chunk-g4azyef7.js +106 -0
- package/web/chunk-gjq1pxw3.js +1 -0
- package/web/chunk-gqw3f02j.js +140 -0
- package/web/chunk-h5ejbf6e.js +1 -0
- package/web/chunk-hev4hq89.js +2 -0
- package/web/chunk-hfaffkrh.js +1 -0
- package/web/chunk-hp167dbv.js +1 -0
- package/web/chunk-j2vt8c8v.js +1 -0
- package/web/chunk-jjh5jvva.js +1 -0
- package/web/chunk-jrcyc9s9.js +38 -0
- package/web/chunk-jwzd9tzk.js +24 -0
- package/web/chunk-k5btcvbg.js +1 -0
- package/web/chunk-ka3q31t1.js +1 -0
- package/web/chunk-kdyjnwdx.js +2 -0
- package/web/chunk-kpvgecwy.js +1 -0
- package/web/chunk-kq40ss39.js +1 -0
- package/web/chunk-m2d1sp30.js +1 -0
- package/web/chunk-n1dmrz44.js +2 -0
- package/web/chunk-n90cqdvg.js +2 -0
- package/web/chunk-nj0cv1cq.js +257 -0
- package/web/chunk-nzey7cpv.js +1 -0
- package/web/chunk-p3b9crsa.js +2 -0
- package/web/chunk-pf2ab8p8.js +1 -0
- package/web/chunk-pxe3vna4.js +1 -0
- package/web/chunk-q0p5xqe1.js +84 -0
- package/web/chunk-q5ke7a33.js +24 -0
- package/web/chunk-q7dsnvpf.js +1 -0
- package/web/chunk-qd8bxxdj.js +1 -0
- package/web/chunk-qefasa1j.js +2 -0
- package/web/chunk-qh7265qw.js +4 -0
- package/web/chunk-qnaqf0cr.js +1 -0
- package/web/chunk-r1dnh0s8.js +1 -0
- package/web/chunk-r5eakmw6.js +1 -0
- package/web/chunk-rg426vkf.js +1 -0
- package/web/chunk-rpmpttbk.js +12 -0
- package/web/chunk-rtf2zzzv.js +1 -0
- package/web/chunk-ry9256r7.js +1 -0
- package/web/chunk-rykfak98.js +2 -0
- package/web/chunk-scpwc9ev.js +1 -0
- package/web/chunk-srrfphes.js +1 -0
- package/web/chunk-ss1bcb0n.js +2 -0
- package/web/chunk-ssy07dd2.js +1 -0
- package/web/chunk-t6agpn2z.js +1 -0
- package/web/chunk-taynqrgq.js +142 -0
- package/web/chunk-tgpbhzn9.js +1 -0
- package/web/chunk-tmvakq7n.js +19 -0
- package/web/chunk-tqmwd9qp.js +139 -0
- package/web/chunk-ts7zrf5b.js +2 -0
- package/web/chunk-ttg6tbwx.js +2 -0
- package/web/chunk-v28fx2nd.js +1 -0
- package/web/chunk-v5cnt7c8.js +1 -0
- package/web/chunk-vt40e1kp.js +1136 -0
- package/web/chunk-w53rba6g.js +1 -0
- package/web/chunk-w86n42dy.js +1 -0
- package/web/chunk-w880psmw.js +1 -0
- package/web/chunk-wptv8atc.js +2 -0
- package/web/chunk-wtawdeej.css +1 -0
- package/web/chunk-xbty0rv7.js +41 -0
- package/web/chunk-xet1jjy9.js +1 -0
- package/web/chunk-xjxv8dg8.js +169 -0
- package/web/chunk-xrxne80b.js +62 -0
- package/web/chunk-xzp7jf7e.js +2 -0
- package/web/chunk-y0m8hrwz.js +303 -0
- package/web/chunk-y49fhfda.js +7 -0
- package/web/chunk-yd46jhqv.js +1 -0
- package/web/chunk-ydtrc1ay.js +2 -0
- package/web/chunk-z09emmrb.js +1 -0
- package/web/chunk-z7dcbxws.js +1 -0
- package/web/chunk-zbj1trar.js +2 -0
- package/web/chunk-zde7mj43.js +1 -0
- package/web/icon-192.png +0 -0
- package/web/icon-512.png +0 -0
- package/web/icon-maskable-512.png +0 -0
- package/web/icon-yx2p2pye.svg +13 -0
- package/web/icon.svg +13 -0
- package/web/index.html +23 -0
- package/web/install.ps1 +91 -0
- package/web/install.sh +177 -0
- package/web/inter-latin-wght-normal-an0py913.woff2 +0 -0
- package/web/jetbrains-mono-latin-wght-normal-hj2e42wt.woff2 +0 -0
- package/web/manifest-txf6vfbq.webmanifest +35 -0
- package/web/manifest.webmanifest +35 -0
- package/web/source-serif-4-latin-wght-italic-ta5tqqvz.woff2 +0 -0
- package/web/source-serif-4-latin-wght-normal-1yyvbhsz.woff2 +0 -0
- package/web/sw.js +90 -0
- package/worker.js +2 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import{e,ka,r,y,B,C,S,E,T,A,I,L,s,p,En,kr,An,Pi,qe,lo,on,Gn,N}from"./chunk-y0m8hrwz.js";import"./chunk-0mrkjnte.js";import{On,mn}from"./chunk-ttg6tbwx.js";import{nr,Pr,na,Or,xt}from"./chunk-90kp4pnz.js";import{Nt}from"./chunk-ry9256r7.js";import{Ce,Se}from"./chunk-vt40e1kp.js";var vn=Se(function(rr,ir){(function(t,n){typeof rr=="object"&&typeof ir<"u"?ir.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=n()})(rr,function(){var t="day";return function(n,i,a){var o=function(M){return M.add(4-M.isoWeekday(),t)},c=i.prototype;c.isoWeekYear=function(){return o(this).year()},c.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),t);var D,R,W,G,O=o(this),z=(D=this.isoWeekYear(),R=this.$u,W=(R?a.utc:a)().year(D).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,t));return O.diff(z,"week")+1},c.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var l=c.startOf;c.startOf=function(M,D){var R=this.$utils(),W=!!R.u(D)||D;return R.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(M,D)}}})});var xn=Se(function(ar,sr){(function(t,n){typeof ar=="object"&&typeof sr<"u"?sr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=n()})(ar,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,l={},M=function(U){return(U=+U)+(U>68?1900:2000)},D=function(U){return function(Z){this[U]=+Z}},R=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=l[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=l.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[c,function(U){this.afternoon=G(U,!1)}],a:[c,function(U){this.afternoon=G(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[o,D("seconds")],ss:[o,D("seconds")],m:[o,D("minutes")],mm:[o,D("minutes")],H:[o,D("hours")],h:[o,D("hours")],HH:[o,D("hours")],hh:[o,D("hours")],D:[o,D("day")],DD:[a,D("day")],Do:[c,function(U){var Z=l.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[o,D("week")],ww:[a,D("week")],M:[o,D("month")],MM:[a,D("month")],MMM:[c,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[c,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,D("year")],YY:[a,function(U){this.year=M(U)}],YYYY:[/\d{4}/,D("year")],Z:R,ZZ:R};function z(U){var Z,H;Z=U,H=l&&l.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var F=b&&b.toUpperCase();return nt||H[b]||t[b]||H[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,V,d){return V||d.slice(1)})})).match(n),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],_=O[j],f=_&&_[0],P=_&&_[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,F=0;b<ft;b+=1){var Y=tt[b];if(typeof Y=="string")F+=Y.length;else{var{regex:V,parser:d}=Y,w=rt.slice(F),x=V.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(v){var Q=v.afternoon;if(Q!==void 0){var u=v.hours;Q?u<12&&(v.hours+=12):u===12&&(v.hours=0),delete v.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(M=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:_,args:f}=at;this.$u=_;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,F=f[2];nt&&(F=f[2]),l=this.$locale(),!rt&&F&&(l=H.Ls[F]),this.$d=function(w,x,v,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var u=z(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=u,k=new Date,X=mt||(J||h?1:k.getDate()),et=J||k.getFullYear(),g=0;J&&!h||(g=h>0?h-1:k.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,g,X,st,ot,yt,gt+60*lt.offset*1000)):v?new Date(Date.UTC(et,g,X,st,ot,yt,gt)):(ht=new Date(et,g,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,P,_,H),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),b&&j!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var Y=P.length,V=1;V<=Y;V+=1){f[1]=P[V-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===Y&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(or,cr){(function(t,n){typeof or=="object"&&typeof cr<"u"?cr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=n()})(or,function(){return function(t,n){var i=n.prototype,a=i.format;i.format=function(o){var c=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var M=this.$utils(),D=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(R){switch(R){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return l.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return l.ordinal(c.week(),"W");case"w":case"ww":return M.s(c.week(),R==="w"?1:2,"0");case"W":case"WW":return M.s(c.isoWeek(),R==="W"?1:2,"0");case"k":case"kk":return M.s(String(c.$H===0?24:c.$H),R==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1000);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return R}});return a.bind(this)(D)}}})});var wn=Se(function(ur,lr){(function(t,n){typeof ur=="object"&&typeof lr<"u"?lr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=n()})(ur,function(){var t,n,i=1000,a=60000,o=3600000,c=86400000,l=31536000000,M=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:l,months:M,days:c,hours:o,minutes:a,seconds:i,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,_,f){return new ft(j,f,_.$l)},z=function(j){return n.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,_){return j?U(j)?{negative:!0,format:""+H(j)+_}:{negative:!1,format:""+j+_}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return O(f*W[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(Y){nt.$d[z(Y)]=f[Y]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(D);if(b){var F=b.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var _=j.prototype;return _.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*W[rt]},0)},_.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/l),f%=l,this.$d.months=Z(f/M),f%=M,this.$d.days=Z(f/c),f%=c,this.$d.hours=Z(f/o),f%=o,this.$d.minutes=Z(f/a),f%=a,this.$d.seconds=Z(f/i),f%=i,this.$d.milliseconds=f},_.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),b=tt(this.$d.hours,"H"),F=tt(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var V=tt(Y,"S"),d=f.negative||P.negative||nt.negative||b.negative||F.negative||V.negative,w=b.format||F.format||V.format?"T":"",x=(d?"-":"")+"P"+f.format+P.format+nt.format+w+b.format+F.format+V.format;return x==="P"||x==="-P"?"P0D":x},_.toJSON=function(){return this.toISOString()},_.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return P.replace(R,function(nt,b){return b||String(rt[nt])})},_.as=function(f){return this.$ms/W[z(f)]},_.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/W[rt]):this.$d[rt],P||0},_.add=function(f,P,rt){var nt;return nt=P?f*W[z(P)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},_.subtract=function(f,P){return this.add(f,P,!0)},_.locale=function(f){var P=this.clone();return P.$l=f,P},_.clone=function(){return O(this.$ms,this)},_.humanize=function(f){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get("milliseconds")},_.asMilliseconds=function(){return this.as("milliseconds")},_.seconds=function(){return this.get("seconds")},_.asSeconds=function(){return this.as("seconds")},_.minutes=function(){return this.get("minutes")},_.asMinutes=function(){return this.as("minutes")},_.hours=function(){return this.get("hours")},_.asHours=function(){return this.as("hours")},_.days=function(){return this.get("days")},_.asDays=function(){return this.as("days")},_.weeks=function(){return this.get("weeks")},_.asWeeks=function(){return this.as("weeks")},_.months=function(){return this.get("months")},_.asMonths=function(){return this.as("months")},_.years=function(){return this.get("years")},_.asYears=function(){return this.as("years")},j}(),at=function(j,_,f){return j.add(_.years()*f,"y").add(_.months()*f,"M").add(_.days()*f,"d").add(_.hours()*f,"h").add(_.minutes()*f,"m").add(_.seconds()*f,"s").add(_.milliseconds()*f,"ms")};return function(j,_,f){t=f,n=f().$utils(),f.duration=function(nt,b){var F=f.locale();return O(nt,{$l:F},b)},f.isDuration=G;var P=_.prototype.add,rt=_.prototype.subtract;_.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):P.bind(this)(nt,b)},_.prototype.subtract=function(nt,b){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,b)}}})});function Ee(t){return t}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(t){return"translate("+t+",0)"}function Zn(t){return"translate(0,"+t+")"}function jn(t){return(n)=>+t(n)}function Xn(t,n){if(n=Math.max(0,t.bandwidth()-n*2)/2,t.round())n=Math.round(n);return(i)=>+t(i)+n}function qn(){return!this.__axis}function Yr(t,n){var i=[],a=null,o=null,c=6,l=6,M=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,R=t===ye||t===he?-1:1,W=t===he||t===Ae?"x":"y",G=t===ye||t===Oe?Bn:Zn;function O(z){var U=a==null?n.ticks?n.ticks.apply(n,i):n.domain():a,Z=o==null?n.tickFormat?n.tickFormat.apply(n,i):Ee:o,H=Math.max(c,0)+M,tt=n.range(),ft=+tt[0]+D,at=+tt[tt.length-1]+D,j=(n.bandwidth?Xn:jn)(n.copy(),D),_=z.selection?z.selection():z,f=_.selectAll(".domain").data([null]),P=_.selectAll(".tick").data(U,n).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),b=P.select("line"),F=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",R*c)),F=F.merge(nt.append("text").attr("fill","currentColor").attr(W,R*H).attr("dy",t===ye?"0em":t===Oe?"0.71em":"0.32em")),z!==_)f=f.transition(z),P=P.transition(z),b=b.transition(z),F=F.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(Y){return isFinite(Y=j(Y))?G(Y+D):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(Y){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(Y))?V:j(Y))+D)});rt.remove(),f.attr("d",t===he||t===Ae?l?"M"+R*l+","+ft+"H"+D+"V"+at+"H"+R*l:"M"+D+","+ft+"V"+at:l?"M"+ft+","+R*l+"V"+D+"H"+at+"V"+R*l:"M"+ft+","+D+"H"+at),P.attr("opacity",1).attr("transform",function(Y){return G(j(Y)+D)}),b.attr(W+"2",R*c),F.attr(W,R*H).text(Z),_.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ae?"start":t===he?"end":"middle"),_.each(function(){this.__axis=j})}return O.scale=function(z){return arguments.length?(n=z,O):n},O.ticks=function(){return i=Array.from(arguments),O},O.tickArguments=function(z){return arguments.length?(i=z==null?[]:Array.from(z),O):i.slice()},O.tickValues=function(z){return arguments.length?(a=z==null?null:Array.from(z),O):a&&a.slice()},O.tickFormat=function(z){return arguments.length?(o=z,O):o},O.tickSize=function(z){return arguments.length?(c=l=+z,O):c},O.tickSizeInner=function(z){return arguments.length?(c=+z,O):c},O.tickSizeOuter=function(z){return arguments.length?(l=+z,O):l},O.tickPadding=function(z){return arguments.length?(M=+z,O):M},O.offset=function(z){return arguments.length?(D=+z,O):D},O}function $e(t){return Yr(ye,t)}function He(t){return Yr(Oe,t)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function $r(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof At)return Nr(t);if(!(t instanceof qe))t=Pi(t);var n=ze(t.r),i=ze(t.g),a=ze(t.b),o=Ne((0.2225045*n+0.7168786*i+0.0606169*a)/Lr),c,l;if(n===i&&i===a)c=l=o;else c=Ne((0.4360747*n+0.3850649*i+0.1430804*a)/Ur),l=Ne((0.0139322*n+0.0971045*i+0.7141733*a)/Wr);return new Ft(116*o-16,500*(c-o),200*(o-l),t.opacity)}function Hr(t,n,i,a){return arguments.length===1?$r(t):new Ft(t,n,i,a==null?1:a)}function Ft(t,n,i,a){this.l=+t,this.a=+n,this.b=+i,this.opacity=+a}En(Ft,Hr,kr(An,{brighter(t){return new Ft(this.l+ge*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new Ft(this.l-ge*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return n=Ur*Pe(n),t=Lr*Pe(t),i=Wr*Pe(i),new qe(Ve(3.1338561*n-1.6168667*t-0.4906146*i),Ve(-0.9787684*n+1.9161415*t+0.033454*i),Ve(0.0719453*n-0.2289914*t+1.4052427*i),this.opacity)}}));function Ne(t){return t>Qn?Math.pow(t,0.3333333333333333):t/Ar+Er}function Pe(t){return t>Qt?t*t*t:Ar*(t-Er)}function Ve(t){return 255*(t<=0.0031308?12.92*t:1.055*Math.pow(t,0.4166666666666667)-0.055)}function ze(t){return(t/=255)<=0.04045?t/12.92:Math.pow((t+0.055)/1.055,2.4)}function Jn(t){if(t instanceof At)return new At(t.h,t.c,t.l,t.opacity);if(!(t instanceof Ft))t=$r(t);if(t.a===0&&t.b===0)return new At(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Ir;return new At(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,n,i,a){return arguments.length===1?Jn(t):new At(t,n,i,a==null?1:a)}function At(t,n,i,a){this.h=+t,this.c=+n,this.l=+i,this.opacity=+a}function Nr(t){if(isNaN(t.h))return new Ft(t.l,0,0,t.opacity);var n=t.h*Fr;return new Ft(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}En(At,ke,kr(An,{brighter(t){return new At(this.h,this.c,this.l+ge*(t==null?1:t),this.opacity)},darker(t){return new At(this.h,this.c,this.l-ge*(t==null?1:t),this.opacity)},rgb(){return Nr(this).rgb()}}));function Vr(t){return function(n,i){var a=t((n=ke(n)).h,(i=ke(i)).h),o=on(n.c,i.c),c=on(n.l,i.l),l=on(n.opacity,i.opacity);return function(M){return n.h=a(M),n.c=o(M),n.l=c(M),n.opacity=l(M),n+""}}}var zr=Vr(lo),Ls=Vr(on);function Re(t,n){t=t.slice();var i=0,a=t.length-1,o=t[i],c=t[a],l;if(c<o)l=i,i=a,a=l,l=o,o=c,c=l;return t[i]=n.floor(o),t[a]=n.ceil(c),t}var Be=new Date,Ze=new Date;function dt(t,n,i,a){function o(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}if(o.floor=(c)=>(t(c=new Date(+c)),c),o.ceil=(c)=>(t(c=new Date(c-1)),n(c,1),t(c),c),o.round=(c)=>{let l=o(c),M=o.ceil(c);return c-l<M-c?l:M},o.offset=(c,l)=>(n(c=new Date(+c),l==null?1:Math.floor(l)),c),o.range=(c,l,M)=>{let D=[];if(c=o.ceil(c),M=M==null?1:Math.floor(M),!(c<l)||!(M>0))return D;let R;do D.push(R=new Date(+c)),n(c,M),t(c);while(R<c&&c<l);return D},o.filter=(c)=>dt((l)=>{if(l>=l)while(t(l),!c(l))l.setTime(l-1)},(l,M)=>{if(l>=l)if(M<0)while(++M<=0)while(n(l,-1),!c(l));else while(--M>=0)while(n(l,1),!c(l));}),i)o.count=(c,l)=>(Be.setTime(+c),Ze.setTime(+l),t(Be),t(Ze),Math.floor(i(Be,Ze))),o.every=(c)=>(c=Math.floor(c),!isFinite(c)||!(c>0)?null:!(c>1)?o:o.filter(a?(l)=>a(l)%c===0:(l)=>o.count(0,l)%c===0));return o}var It=dt(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);It.every=(t)=>{if(t=Math.floor(t),!isFinite(t)||!(t>0))return null;if(!(t>1))return It;return dt((n)=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t)};var Rr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((t)=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*Ct)},(t,n)=>(n-t)/Ct,(t)=>t.getUTCSeconds()),Br=bt.range;var Ot=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct)},(t,n)=>{t.setTime(+t+n*vt)},(t,n)=>(n-t)/vt,(t)=>t.getMinutes()),Kn=Ot.range,Te=dt((t)=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*vt)},(t,n)=>(n-t)/vt,(t)=>t.getUTCMinutes()),ti=Te.range;var $t=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct-t.getMinutes()*vt)},(t,n)=>{t.setTime(+t+n*Ut)},(t,n)=>(n-t)/Ut,(t)=>t.getHours()),ei=$t.range,ve=dt((t)=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Ut)},(t,n)=>(n-t)/Ut,(t)=>t.getUTCHours()),ri=ve.range;var St=dt((t)=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Vt,(t)=>t.getDate()-1),ni=St.range,oe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Vt,(t)=>t.getUTCDate()-1),ii=oe.range,xe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Vt,(t)=>Math.floor(t/Vt)),ai=xe.range;function Bt(t){return dt((n)=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+i*7)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),be=Bt(2),we=Bt(3),Lt=Bt(4),Me=Bt(5),De=Bt(6),Zr=_t.range,si=zt.range,oi=be.range,ci=we.range,ui=Lt.range,li=Me.range,fi=De.range;function Zt(t){return dt((n)=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+i*7)},(n,i)=>(i-n)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Ht=dt((t)=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,(t)=>t.getMonth()),pi=Ht.range,_e=dt((t)=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,(t)=>t.getUTCMonth()),Ti=_e.range;var wt=dt((t)=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),(t)=>t.getFullYear());wt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((n)=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)});var vi=wt.range,Yt=dt((t)=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),(t)=>t.getUTCFullYear());Yt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((n)=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)});var xi=Yt.range;function Jr(t,n,i,a,o,c){let l=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[c,1,vt],[c,5,5*vt],[c,15,15*vt],[c,30,30*vt],[o,1,Ut],[o,3,3*Ut],[o,6,6*Ut],[o,12,12*Ut],[a,1,Vt],[a,2,2*Vt],[i,1,se],[n,1,je],[n,3,3*je],[t,1,pe]];function M(R,W,G){let O=W<R;if(O)[R,W]=[W,R];let z=G&&typeof G.range==="function"?G:D(R,W,G),U=z?z.range(R,+W+1):[];return O?U.reverse():U}function D(R,W,G){let O=Math.abs(W-R)/G,z=nr(([,,H])=>H).right(l,O);if(z===l.length)return t.every(Pr(R/pe,W/pe,G));if(z===0)return It.every(Math.max(Pr(R,W,G),1));let[U,Z]=l[O/l[z-1][2]<l[z][2]/O?z-1:z];return U.every(Z)}return[M,D]}var[bi,wi]=Jr(Yt,_e,jt,xe,ve,Te),[Xe,Ge]=Jr(wt,Ht,_t,St,$t,Ot);function Qe(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Je(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function Ke(t){var{dateTime:n,date:i,time:a,periods:o,days:c,shortDays:l,months:M,shortMonths:D}=t,R=ue(o),W=le(o),G=ue(c),O=le(c),z=ue(l),U=le(l),Z=ue(M),H=le(M),tt=ue(D),ft=le(D),at={a:v,A:Q,b:u,B:J,c:null,d:an,e:an,f:ji,g:ia,G:sa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:ra,Y:aa,Z:oa,"%":cn},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:ba,G:Ma,H:ca,I:ua,j:la,L:hn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:pa,w:Ta,W:va,x:null,X:null,y:xa,Y:wa,Z:Da,"%":cn},_={a:b,A:F,b:Y,B:V,c:d,d:rn,e:rn,f:Hi,g:en,G:tn,H:nn,I:nn,j:Ei,L:$i,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:Oi,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Ni};at.x=f(i,at),at.X=f(a,at),at.c=f(n,at),j.x=f(i,j),j.X=f(a,j),j.c=f(n,j);function f(k,X){return function(et){var g=[],ht=-1,st=0,ot=k.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(k.charCodeAt(ht)===37){if(g.push(k.slice(st,ht)),(gt=Kr[yt=k.charAt(++ht)])!=null)yt=k.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);g.push(yt),st=ht+1}return g.push(k.slice(st,ht)),g.join("")}}function P(k,X){return function(et){var g=ce(1900,void 0,1),ht=rt(g,k,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in g)return new Date(g.Q);if("s"in g)return new Date(g.s*1000+("L"in g?g.L:0));if(X&&!("Z"in g))g.Z=0;if("p"in g)g.H=g.H%12+g.p*12;if(g.m===void 0)g.m="q"in g?g.q:0;if("V"in g){if(g.V<1||g.V>53)return null;if(!("w"in g))g.w=1;if("Z"in g)st=Je(ce(g.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(g.V-1)*7),g.y=st.getUTCFullYear(),g.m=st.getUTCMonth(),g.d=st.getUTCDate()+(g.w+6)%7;else st=Qe(ce(g.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(g.V-1)*7),g.y=st.getFullYear(),g.m=st.getMonth(),g.d=st.getDate()+(g.w+6)%7}else if("W"in g||"U"in g){if(!("w"in g))g.w="u"in g?g.u%7:("W"in g)?1:0;ot="Z"in g?Je(ce(g.y,0,1)).getUTCDay():Qe(ce(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(ot+5)%7:g.w+g.U*7-(ot+6)%7}if("Z"in g)return g.H+=g.Z/100|0,g.M+=g.Z%100,Je(g);return Qe(g)}}function rt(k,X,et,g){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(g>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=_[yt in Kr?X.charAt(ht++):yt],!gt||(g=gt(k,et,g))<0)return-1}else if(yt!=et.charCodeAt(g++))return-1}return g}function nt(k,X,et){var g=R.exec(X.slice(et));return g?(k.p=W.get(g[0].toLowerCase()),et+g[0].length):-1}function b(k,X,et){var g=z.exec(X.slice(et));return g?(k.w=U.get(g[0].toLowerCase()),et+g[0].length):-1}function F(k,X,et){var g=G.exec(X.slice(et));return g?(k.w=O.get(g[0].toLowerCase()),et+g[0].length):-1}function Y(k,X,et){var g=tt.exec(X.slice(et));return g?(k.m=ft.get(g[0].toLowerCase()),et+g[0].length):-1}function V(k,X,et){var g=Z.exec(X.slice(et));return g?(k.m=H.get(g[0].toLowerCase()),et+g[0].length):-1}function d(k,X,et){return rt(k,n,X,et)}function w(k,X,et){return rt(k,i,X,et)}function x(k,X,et){return rt(k,a,X,et)}function v(k){return l[k.getDay()]}function Q(k){return c[k.getDay()]}function u(k){return D[k.getMonth()]}function J(k){return M[k.getMonth()]}function h(k){return o[+(k.getHours()>=12)]}function mt(k){return 1+~~(k.getMonth()/3)}function m(k){return l[k.getUTCDay()]}function q(k){return c[k.getUTCDay()]}function K(k){return D[k.getUTCMonth()]}function ut(k){return M[k.getUTCMonth()]}function lt(k){return o[+(k.getUTCHours()>=12)]}function it(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var X=f(k+="",at);return X.toString=function(){return k},X},parse:function(k){var X=P(k+="",!1);return X.toString=function(){return k},X},utcFormat:function(k){var X=f(k+="",j);return X.toString=function(){return k},X},utcParse:function(k){var X=P(k+="",!0);return X.toString=function(){return k},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(t,n,i){var a=t<0?"-":"",o=(a?-t:t)+"",c=o.length;return a+(c<i?Array(i-c+1).join(n)+o:o)}function Ci(t){return t.replace(Di,"\\$&")}function ue(t){return new RegExp("^(?:"+t.map(Ci).join("|")+")","i")}function le(t){return new Map(t.map((n,i)=>[n.toLowerCase(),i]))}function Si(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.w=+a[0],i+a[0].length):-1}function _i(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.u=+a[0],i+a[0].length):-1}function Yi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.U=+a[0],i+a[0].length):-1}function Fi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.V=+a[0],i+a[0].length):-1}function Ii(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.W=+a[0],i+a[0].length):-1}function tn(t,n,i){var a=pt.exec(n.slice(i,i+4));return a?(t.y=+a[0],i+a[0].length):-1}function en(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2000),i+a[0].length):-1}function Ui(t,n,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function Li(t,n,i){var a=pt.exec(n.slice(i,i+1));return a?(t.q=a[0]*3-3,i+a[0].length):-1}function Wi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.m=a[0]-1,i+a[0].length):-1}function rn(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.d=+a[0],i+a[0].length):-1}function Ei(t,n,i){var a=pt.exec(n.slice(i,i+3));return a?(t.m=0,t.d=+a[0],i+a[0].length):-1}function nn(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.H=+a[0],i+a[0].length):-1}function Ai(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.M=+a[0],i+a[0].length):-1}function Oi(t,n,i){var a=pt.exec(n.slice(i,i+2));return a?(t.S=+a[0],i+a[0].length):-1}function $i(t,n,i){var a=pt.exec(n.slice(i,i+3));return a?(t.L=+a[0],i+a[0].length):-1}function Hi(t,n,i){var a=pt.exec(n.slice(i,i+6));return a?(t.L=Math.floor(a[0]/1000),i+a[0].length):-1}function Ni(t,n,i){var a=Mi.exec(n.slice(i,i+1));return a?i+a[0].length:-1}function Vi(t,n,i){var a=pt.exec(n.slice(i));return a?(t.Q=+a[0],i+a[0].length):-1}function zi(t,n,i){var a=pt.exec(n.slice(i));return a?(t.s=+a[0],i+a[0].length):-1}function an(t,n){return ct(t.getDate(),n,2)}function Ri(t,n){return ct(t.getHours(),n,2)}function Bi(t,n){return ct(t.getHours()%12||12,n,2)}function Zi(t,n){return ct(1+St.count(wt(t),t),n,3)}function fn(t,n){return ct(t.getMilliseconds(),n,3)}function ji(t,n){return fn(t,n)+"000"}function Xi(t,n){return ct(t.getMonth()+1,n,2)}function Gi(t,n){return ct(t.getMinutes(),n,2)}function qi(t,n){return ct(t.getSeconds(),n,2)}function Qi(t){var n=t.getDay();return n===0?7:n}function Ji(t,n){return ct(_t.count(wt(t)-1,t),n,2)}function dn(t){var n=t.getDay();return n>=4||n===0?Lt(t):Lt.ceil(t)}function Ki(t,n){return t=dn(t),ct(Lt.count(wt(t),t)+(wt(t).getDay()===4),n,2)}function ta(t){return t.getDay()}function ea(t,n){return ct(zt.count(wt(t)-1,t),n,2)}function ra(t,n){return ct(t.getFullYear()%100,n,2)}function ia(t,n){return t=dn(t),ct(t.getFullYear()%100,n,2)}function aa(t,n){return ct(t.getFullYear()%1e4,n,4)}function sa(t,n){var i=t.getDay();return t=i>=4||i===0?Lt(t):Lt.ceil(t),ct(t.getFullYear()%1e4,n,4)}function oa(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ct(n/60|0,"0",2)+ct(n%60,"0",2)}function sn(t,n){return ct(t.getUTCDate(),n,2)}function ca(t,n){return ct(t.getUTCHours(),n,2)}function ua(t,n){return ct(t.getUTCHours()%12||12,n,2)}function la(t,n){return ct(1+oe.count(Yt(t),t),n,3)}function hn(t,n){return ct(t.getUTCMilliseconds(),n,3)}function fa(t,n){return hn(t,n)+"000"}function da(t,n){return ct(t.getUTCMonth()+1,n,2)}function ma(t,n){return ct(t.getUTCMinutes(),n,2)}function ha(t,n){return ct(t.getUTCSeconds(),n,2)}function ya(t){var n=t.getUTCDay();return n===0?7:n}function ga(t,n){return ct(jt.count(Yt(t)-1,t),n,2)}function yn(t){var n=t.getUTCDay();return n>=4||n===0?Rt(t):Rt.ceil(t)}function pa(t,n){return t=yn(t),ct(Rt.count(Yt(t),t)+(Yt(t).getUTCDay()===4),n,2)}function Ta(t){return t.getUTCDay()}function va(t,n){return ct(Jt.count(Yt(t)-1,t),n,2)}function xa(t,n){return ct(t.getUTCFullYear()%100,n,2)}function ba(t,n){return t=yn(t),ct(t.getUTCFullYear()%100,n,2)}function wa(t,n){return ct(t.getUTCFullYear()%1e4,n,4)}function Ma(t,n){var i=t.getUTCDay();return t=i>=4||i===0?Rt(t):Rt.ceil(t),ct(t.getUTCFullYear()%1e4,n,4)}function Da(){return"+0000"}function cn(){return"%"}function un(t){return+t}function ln(t){return Math.floor(+t/1000)}var Kt,Xt,gn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(t){return Kt=Ke(t),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Ca(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,n,i,a,o,c,l,M,D,R){var W=Or(),{invert:G,domain:O}=W,z=R(".%L"),U=R(":%S"),Z=R("%I:%M"),H=R("%I %p"),tt=R("%a %d"),ft=R("%b %d"),at=R("%B"),j=R("%Y");function _(f){return(D(f)<f?z:M(f)<f?U:l(f)<f?Z:c(f)<f?H:a(f)<f?o(f)<f?tt:ft:i(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Sa)):O().map(Ca)},W.ticks=function(f){var P=O();return t(P[0],P[P.length-1],f==null?10:f)},W.tickFormat=function(f,P){return P==null?_:R(P)},W.nice=function(f){var P=O();if(!f||typeof f.range!=="function")f=n(P[0],P[P.length-1],f==null?10:f);return f?O(Re(P,f)):W},W.copy=function(){return na(W,Tn(t,n,i,a,o,c,l,M,D,R))},W}function er(){return Nt.apply(Tn(Xe,Ge,wt,Ht,_t,St,$t,Ot,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Gn(),1),Mt=Ce(ka(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(ka(),1),Rn=Ce(wn(),1);var dr=function(){var t=e(function(V,d,w,x){for(w=w||{},x=V.length;x--;w[V[x]]=d);return w},"o"),n=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],a=[1,27],o=[1,28],c=[1,29],l=[1,30],M=[1,31],D=[1,32],R=[1,33],W=[1,34],G=[1,9],O=[1,10],z=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],_=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],b={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:e(function(d,w,x,v,Q,u,J){var h=u.length-1;switch(Q){case 1:return u[h-1];case 2:this.$=[];break;case 3:u[h-1].push(u[h]),this.$=u[h-1];break;case 4:case 5:this.$=u[h];break;case 6:case 7:this.$=[];break;case 8:v.setWeekday("monday");break;case 9:v.setWeekday("tuesday");break;case 10:v.setWeekday("wednesday");break;case 11:v.setWeekday("thursday");break;case 12:v.setWeekday("friday");break;case 13:v.setWeekday("saturday");break;case 14:v.setWeekday("sunday");break;case 15:v.setWeekend("friday");break;case 16:v.setWeekend("saturday");break;case 17:v.setDateFormat(u[h].substr(11)),this.$=u[h].substr(11);break;case 18:v.enableInclusiveEndDates(),this.$=u[h].substr(18);break;case 19:v.TopAxis(),this.$=u[h].substr(8);break;case 20:v.setAxisFormat(u[h].substr(11)),this.$=u[h].substr(11);break;case 21:v.setTickInterval(u[h].substr(13)),this.$=u[h].substr(13);break;case 22:v.setExcludes(u[h].substr(9)),this.$=u[h].substr(9);break;case 23:v.setIncludes(u[h].substr(9)),this.$=u[h].substr(9);break;case 24:v.setTodayMarker(u[h].substr(12)),this.$=u[h].substr(12);break;case 27:v.setDiagramTitle(u[h].substr(6)),this.$=u[h].substr(6);break;case 28:this.$=u[h].trim(),v.setAccTitle(this.$);break;case 29:case 30:this.$=u[h].trim(),v.setAccDescription(this.$);break;case 31:v.addSection(u[h].substr(8)),this.$=u[h].substr(8);break;case 33:v.addTask(u[h-1],u[h]),this.$="task";break;case 34:this.$=u[h-1],v.setClickEvent(u[h-1],u[h],null);break;case 35:this.$=u[h-2],v.setClickEvent(u[h-2],u[h-1],u[h]);break;case 36:this.$=u[h-2],v.setClickEvent(u[h-2],u[h-1],null),v.setLink(u[h-2],u[h]);break;case 37:this.$=u[h-3],v.setClickEvent(u[h-3],u[h-2],u[h-1]),v.setLink(u[h-3],u[h]);break;case 38:this.$=u[h-2],v.setClickEvent(u[h-2],u[h],null),v.setLink(u[h-2],u[h-1]);break;case 39:this.$=u[h-3],v.setClickEvent(u[h-3],u[h-1],u[h]),v.setLink(u[h-3],u[h-2]);break;case 40:this.$=u[h-1],v.setLink(u[h-1],u[h]);break;case 41:case 47:this.$=u[h-1]+" "+u[h];break;case 42:case 43:case 45:this.$=u[h-2]+" "+u[h-1]+" "+u[h];break;case 44:case 46:this.$=u[h-3]+" "+u[h-2]+" "+u[h-1]+" "+u[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:a,14:o,15:c,16:l,17:M,18:D,19:18,20:R,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:i,13:a,14:o,15:c,16:l,17:M,18:D,19:18,20:R,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[2,39])],defaultActions:{},parseError:e(function(d,w){if(w.recoverable)this.trace(d);else{var x=Error(d);throw x.hash=w,x}},"parseError"),parse:e(function(d){var w=this,x=[0],v=[],Q=[null],u=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=u.slice.call(arguments,1),it=Object.create(this.lexer),k={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))k.yy[X]=this.yy[X];if(it.setInput(d,k.yy),k.yy.lexer=it,k.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;u.push(et);var g=it.options&&it.options.ranges;if(typeof k.yy.parseError==="function")this.parseError=k.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,u.length=u.length-Dt}e(ht,"popStack");function st(){var Dt=v.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)v=Dt,Dt=v.pop();Dt=w.symbols_[Dt]||Dt}return Dt}e(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=x[x.length-1],this.defaultActions[gt])Tt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();Tt=J[gt]&&J[gt][ot]}if(typeof Tt>"u"||!Tt.length||!Tt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
2
|
+
`+it.showPosition()+`
|
|
3
|
+
Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(Tt[0]instanceof Array&&Tt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(Tt[0]){case 1:if(x.push(ot),Q.push(it.yytext),u.push(it.yylloc),x.push(Tt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[Tt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:u[u.length-(Et||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Et||1)].first_column,last_column:u[u.length-1].last_column},g)qt._$.range=[u[u.length-(Et||1)].range[0],u[u.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,k.yy,Tt[1],Q,u].concat(lt)),typeof Le<"u")return Le;if(Et)x=x.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),u=u.slice(0,-1*Et);x.push(this.productions_[Tt[1]][0]),Q.push(qt.$),u.push(qt._$),Sr=J[x[x.length-2]][x[x.length-1]],x.push(Sr);break;case 3:return!0}}return!0},"parse")},F=function(){var V={EOF:1,parseError:e(function(w,x){if(this.yy.parser)this.yy.parser.parseError(w,x);else throw Error(w)},"parseError"),setInput:e(function(d,w){if(this.yy=w||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:e(function(d){var w=d.length,x=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var v=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1)this.yylineno-=x.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===v.length?this.yylloc.first_column:0)+v[v.length-x.length].length-x[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(d){this.unput(this.match.slice(d))},"less"),pastInput:e(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
5
|
+
`+w+"^"},"showPosition"),test_match:e(function(d,w){var x,v,Q;if(this.options.backtrack_lexer){if(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Q.yylloc.range=this.yylloc.range.slice(0)}if(v=d[0].match(/(?:\r\n?|\n).*/g),v)this.yylineno+=v.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],x=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(x)return x;else if(this._backtrack){for(var u in Q)this[u]=Q[u];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,x,v;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var u=0;u<Q.length;u++)if(x=this._input.match(this.rules[Q[u]]),x&&(!w||x[0].length>w[0].length)){if(w=x,v=u,this.options.backtrack_lexer)if(d=this.test_match(x,Q[u]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[v]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:e(function(w){this.conditionStack.push(w)},"begin"),popState:e(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:e(function(w){this.begin(w)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(w,x,v,Q){var u=Q;switch(v){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return V}();b.lexer=F;function Y(){this.yy={}}return e(Y,"Parser"),Y.prototype=b,b.Parser=Y,new Y}();dr.parser=dr;var _a=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",pr=void 0,Tr="",ne=[],ie=[],vr=new Map,xr=[],Ie=[],ae="",br="",In=["active","done","crit","milestone","vert"],wr=[],te="",fe=!1,Mr=!1,Dr="sunday",Ue="saturday",mr=0,Ya=e(function(){xr=[],Ie=[],ae="",wr=[],Ye=0,yr=void 0,Fe=void 0,kt=[],Wt="",gr="",br="",pr=void 0,Tr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,vr=new Map,te="",C(),Dr="sunday",Ue="saturday"},"clear"),Fa=e(function(t){te=t},"setDiagramId"),Ia=e(function(t){gr=t},"setAxisFormat"),Ua=e(function(){return gr},"getAxisFormat"),La=e(function(t){pr=t},"setTickInterval"),Wa=e(function(){return pr},"getTickInterval"),Ea=e(function(t){Tr=t},"setTodayMarker"),Aa=e(function(){return Tr},"getTodayMarker"),Oa=e(function(t){Wt=t},"setDateFormat"),$a=e(function(){fe=!0},"enableInclusiveEndDates"),Ha=e(function(){return fe},"endDatesAreInclusive"),Na=e(function(){Mr=!0},"enableTopAxis"),Pa=e(function(){return Mr},"topAxisEnabled"),Va=e(function(t){br=t},"setDisplayMode"),za=e(function(){return br},"getDisplayMode"),Ra=e(function(){return Wt},"getDateFormat"),Un=e((t,n)=>{let i=n.toLowerCase().split(/[\s,]+/).filter((a)=>a!=="");return[...new Set([...t,...i])]},"mergeTokens"),Ba=e(function(t){ne=Un(ne,t)},"setIncludes"),Za=e(function(){return ne},"getIncludes"),ja=e(function(t){ie=Un(ie,t)},"setExcludes"),Xa=e(function(){return ie},"getExcludes"),Ga=e(function(){return vr},"getLinks"),qa=e(function(t){ae=t,xr.push(t)},"addSection"),Qa=e(function(){return xr},"getSections"),Ja=e(function(){let t=Dn(),n=10,i=0;while(!t&&i<n)t=Dn(),i++;return Ie=kt,Ie},"getTasks"),Ln=e(function(t,n,i,a){let o=t.format(n.trim()),c=t.format("YYYY-MM-DD");if(a.includes(o)||a.includes(c))return!1;if(i.includes("weekends")&&(t.isoWeekday()===Mn[Ue]||t.isoWeekday()===Mn[Ue]+1))return!0;if(i.includes(t.format("dddd").toLowerCase()))return!0;return i.includes(o)||i.includes(c)},"isInvalidDate"),Ka=e(function(t){Dr=t},"setWeekday"),ts=e(function(){return Dr},"getWeekday"),es=e(function(t){Ue=t},"setWeekend"),Wn=e(function(t,n,i,a){if(!i.length||t.manualEndTime)return;let o;if(t.startTime instanceof Date)o=Mt.default(t.startTime);else o=Mt.default(t.startTime,n,!0);o=o.add(1,"d");let c;if(t.endTime instanceof Date)c=Mt.default(t.endTime);else c=Mt.default(t.endTime,n,!0);let[l,M]=rs(o,c,n,i,a);t.endTime=l.toDate(),t.renderEndTime=M},"checkTaskDates"),rs=e(function(t,n,i,a,o){let c=!1,l=null,M=n.add(1e4,"d");while(t<=n){if(!c)l=n.toDate();if(c=Ln(t,i,a,o),c){if(n=n.add(1,"d"),n>M)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}t=t.add(1,"d")}return[n,l]},"fixTaskDates"),$n=e(function(t,n){r.warn(`Gantt: the "${t}" statement references unknown task id(s): ${n.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=e(function(t,n,i){if(i=i.trim(),e((M)=>{let D=M.trim();return D==="x"||D==="X"},"isTimestampFormat")(n)&&/^\d+$/.test(i))return new Date(Number(i));let c=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(c!==null){let M=null,D=[],R=c.groups.ids.split(" ").filter((G)=>G!=="");for(let G of R){let O=Gt(G);if(O===void 0){D.push(G);continue}if(!M||O.endTime>M.endTime)M=O}if(D.length>0)$n("after",D);if(M)return M.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let l=Mt.default(i,n.trim(),!0);if(l.isValid())return l.toDate();else{r.debug("Invalid date:"+i),r.debug("With date format:"+n.trim());let M=new Date(i);if(M===void 0||isNaN(M.getTime())||M.getFullYear()<-1e4||M.getFullYear()>1e4)throw Error("Invalid date:"+i);return M}},"getStartDate"),Hn=e(function(t){let n=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(n!==null)return[Number.parseFloat(n[1]),n[2]];return[NaN,"ms"]},"parseDuration"),Nn=e(function(t,n,i,a=!1){i=i.trim();let c=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(c!==null){let W=null,G=[],O=c.groups.ids.split(" ").filter((U)=>U!=="");for(let U of O){let Z=Gt(U);if(Z===void 0){G.push(U);continue}if(!W||Z.startTime<W.startTime)W=Z}if(G.length>0)$n("until",G);if(W)return W.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let l=Mt.default(i,n.trim(),!0);if(l.isValid()){if(a)l=l.add(1,"d");return l.toDate()}let M=Mt.default(t),[D,R]=Hn(i);if(Number.isNaN(D))r.warn(`Gantt: "${i}" is neither a valid date for the "${n.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let W=M.add(D,R);if(W.isValid())M=W}return M.toDate()},"getEndDate"),Ye=0,re=e(function(t){if(t===void 0)return Ye=Ye+1,"task"+Ye;return t},"parseId"),ns=e(function(t,n){let i;if(n.substr(0,1)===":")i=n.substr(1,n.length);else i=n;let a=i.split(","),o={};Cr(a,o,In);for(let l=0;l<a.length;l++)a[l]=a[l].trim();let c="";switch(a.length){case 1:o.id=re(),o.startTime=t.endTime,c=a[0];break;case 2:o.id=re(),o.startTime=hr(void 0,Wt,a[0]),c=a[1];break;case 3:o.id=re(a[0]),o.startTime=hr(void 0,Wt,a[1]),c=a[2];break;default:}if(c)o.endTime=Nn(o.startTime,Wt,c,fe),o.manualEndTime=Mt.default(c,"YYYY-MM-DD",!0).isValid(),Wn(o,Wt,ie,ne);return o},"compileData"),is=e(function(t,n){let i;if(n.substr(0,1)===":")i=n.substr(1,n.length);else i=n;let a=i.split(","),o={};Cr(a,o,In);for(let c=0;c<a.length;c++)a[c]=a[c].trim();switch(a.length){case 1:o.id=re(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:a[0]};break;case 2:o.id=re(),o.startTime={type:"getStartDate",startData:a[0]},o.endTime={data:a[1]};break;case 3:o.id=re(a[0]),o.startTime={type:"getStartDate",startData:a[1]},o.endTime={data:a[2]};break;default:}return o},"parseData"),yr,Fe,kt=[],Pn={},as=e(function(t,n){let i={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},a=is(Fe,n);if(i.raw.startTime=a.startTime,i.raw.endTime=a.endTime,i.id=a.id,i.prevTaskId=Fe,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,i.vert)i.order=-1;else i.order=mr,mr++;let o=kt.push(i);Fe=i.id,Pn[i.id]=o-1},"addTask"),Gt=e(function(t){let n=Pn[t];return kt[n]},"findTaskById"),ss=e(function(t,n){let i={section:ae,type:ae,description:t,task:t,classes:[]},a=ns(yr,n);i.startTime=a.startTime,i.endTime=a.endTime,i.id=a.id,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,yr=i,Ie.push(i)},"addTaskOrg"),Dn=e(function(){let t=e(function(i){let a=kt[i],o="";switch(kt[i].raw.startTime.type){case"prevTaskEnd":{let c=Gt(a.prevTaskId);a.startTime=c.endTime;break}case"getStartDate":if(o=hr(void 0,Wt,kt[i].raw.startTime.startData),o)kt[i].startTime=o;break}if(kt[i].startTime){if(kt[i].endTime=Nn(kt[i].startTime,Wt,kt[i].raw.endTime.data,fe),kt[i].endTime)kt[i].processed=!0,kt[i].manualEndTime=Mt.default(kt[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(kt[i],Wt,ie,ne)}return kt[i].processed},"compileTask"),n=!0;for(let[i,a]of kt.entries())t(i),n=n&&a.processed;return n},"compileTasks"),os=e(function(t,n){let i=n;if(s().securityLevel!=="loose")i=Sn.sanitizeUrl(n);t.split(",").forEach(function(a){if(Gt(a)!==void 0)zn(a,()=>{window.open(i,"_self")}),vr.set(a,i)}),Vn(t,"clickable")},"setLink"),Vn=e(function(t,n){t.split(",").forEach(function(i){let a=Gt(i);if(a!==void 0)a.classes.push(n)})},"setClass"),cs=e(function(t,n,i){if(s().securityLevel!=="loose")return;if(n===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let c=0;c<a.length;c++){let l=a[c].trim();if(l.startsWith('"')&&l.endsWith('"'))l=l.substr(1,l.length-2);a[c]=l}}if(a.length===0)a.push(t);if(Gt(t)!==void 0)zn(t,()=>{N.runFunc(n,...a)})},"setClickFun"),zn=e(function(t,n){wr.push(function(){let i=te?`${te}-${t}`:t,a=document.querySelector(`[id="${i}"]`);if(a!==null)a.addEventListener("click",function(){n()})},function(){let i=te?`${te}-${t}`:t,a=document.querySelector(`[id="${i}-text"]`);if(a!==null)a.addEventListener("click",function(){n()})})},"pushFun"),us=e(function(t,n,i){t.split(",").forEach(function(a){cs(a,n,i)}),Vn(t,"clickable")},"setClickEvent"),ls=e(function(t){wr.forEach(function(n){n(t)})},"bindFunctions"),fs={getConfig:e(()=>s().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:I,getDiagramTitle:L,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:Hn,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(t,n,i){let a=!0;while(a)a=!1,i.forEach(function(o){let c="^\\s*"+o+"\\s*$",l=new RegExp(c);if(t[0].match(l))n[o]=!0,t.shift(1),a=!0})}e(Cr,"getTaskTags");ee.default.extend(Rn.default);var ds=e(function(){r.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:be,wednesday:we,thursday:Lt,friday:Me,saturday:De,sunday:_t},ms=e((t,n)=>{let i=[...t].map(()=>-1/0),a=[...t].sort((c,l)=>c.startTime-l.startTime||c.order-l.order),o=0;for(let c of a)for(let l=0;l<i.length;l++)if(c.startTime>=i[l]){if(i[l]=c.endTime,c.order=l+n,l>o)o=l;break}return o},"getMaxIntersections"),Pt,fr=1e4,hs=e(function(t,n,i,a){let o=s().gantt;a.db.setDiagramId(n);let c=s().securityLevel,l;if(c==="sandbox")l=p("#i"+n);let M=c==="sandbox"?p(l.nodes()[0].contentDocument.body):p("body"),D=c==="sandbox"?l.nodes()[0].contentDocument:document,R=D.getElementById(n);if(Pt=R.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(o.useWidth!==void 0)Pt=o.useWidth;let W=a.db.getTasks(),G=W.filter((b)=>!b.vert),O=[];for(let b of G)O.push(b.type);O=nt(O);let z={},U=2*o.topPadding;if(a.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let b={};for(let Y of G)if(b[Y.section]===void 0)b[Y.section]=[Y];else b[Y.section].push(Y);let F=0;for(let Y of Object.keys(b)){let V=ms(b[Y],F)+1;F+=V,U+=V*(o.barHeight+o.barGap),z[Y]=V}}else{U+=G.length*(o.barHeight+o.barGap);for(let b of O)z[b]=G.filter((F)=>F.type===b).length}R.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=M.select(`[id="${n}"]`),H=er().domain([mn(W,function(b){return b.startTime}),On(W,function(b){return b.endTime})]).rangeRound([0,Pt-o.leftPadding-o.rightPadding]);function tt(b,F){let Y=b.startTime,V=F.startTime,d=0;if(Y>V)d=1;else if(Y<V)d=-1;return d}e(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),B(Z,U,Pt,o.useMaxWidth),Z.append("text").text(a.db.getDiagramTitle()).attr("x",Pt/2).attr("y",o.titleTopMargin).attr("class","titleText");function ft(b,F,Y){let V=o.barHeight,d=V+o.barGap,{topPadding:w,leftPadding:x}=o,v=xt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(zr);j(d,w,x,F,Y,b,a.db.getExcludes(),a.db.getIncludes()),f(x,w,F,Y),at(b,d,w,x,V,v,F,Y),P(d,w,x,V,v),rt(x,w,F,Y)}e(ft,"makeGantt");function at(b,F,Y,V,d,w,x){b.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let v=b.filter((m)=>!m.vert),u=[...new Set(v.map((m)=>m.order))].map((m)=>v.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*F+Y-2}).attr("width",function(){return x-o.rightPadding/2}).attr("height",F).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%o.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(b).enter(),h=a.db.getLinks();if(J.append("rect").attr("id",function(m){return n+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return o.gridLineStartPadding;return q*F+Y}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return H(m.renderEndTime||m.endTime)-H(m.startTime)}).attr("height",function(m){if(m.vert)return v.length*(o.barHeight+o.barGap)+o.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*F+Y+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,k]of O.entries())if(m.type===k)ut=it%o.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return n+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",o.fontSize).attr("x",function(m){let q=H(m.startTime),K=H(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(H(m.endTime)-H(m.startTime))-0.5*d,K=q+d;if(m.vert)return H(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*o.leftPadding>x)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return o.gridLineStartPadding+v.length*(o.barHeight+o.barGap)+60;return q=m.order,q*F+o.barHeight/2+(o.fontSize/2-2)+Y}).attr("text-height",d).attr("class",function(m){let q=H(m.startTime),K=H(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of O.entries())if(m.type===et)it=X%o.numberSectionStyles;let k="";if(m.active)if(m.crit)k="activeCritText"+it;else k="activeText"+it;if(m.done)if(m.crit)k=k+" doneCritText"+it;else k=k+" doneText"+it;else if(m.crit)k=k+" critText"+it;if(m.milestone)k+=" milestoneText";if(m.vert)k+=" vertText";if(ut>K-q)if(K+ut+1.5*o.leftPadding>x)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+k;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+k+" width-"+ut;else return lt+" taskText taskText"+it+" "+k+" width-"+ut}),s().securityLevel==="sandbox"){let m;m=p("#i"+n);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(n+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(n+"-"+K.id+"-text"));let it=ut.parentNode;var k=q.createElement("a");k.setAttribute("xlink:href",h.get(K.id)),k.setAttribute("target","_top"),it.appendChild(k),k.appendChild(ut),k.appendChild(lt)})}}e(at,"drawRects");function j(b,F,Y,V,d,w,x,v){if(x.length===0&&v.length===0)return;let Q,u;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(u===void 0||ut>u)u=ut}if(!Q||!u)return;if(ee.default(u).diff(ee.default(Q),"year")>5){r.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=a.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=u){if(a.db.isInvalidDate(m,J,x,v))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>n+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+Y).attr("y",o.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-F-o.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+Y+0.5*(H(K.end)-H(K.start))).toString()+"px "+(ut*b+0.5*d).toString()+"px"}).attr("class","exclude-range")}e(j,"drawExcludeDays");function _(b,F,Y,V){if(Y<=0||b>F)return 1/0;let d=F-b,w=ee.default.duration({[V??"day"]:Y}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}e(_,"getEstimatedTickCount");function f(b,F,Y,V){let d=a.db.getDateFormat(),w=a.db.getAxisFormat(),x;if(w)x=w;else if(d==="D")x="%d";else x=o.axisFormat??"%Y-%m-%d";let v=He(H).tickSize(-V+F+o.gridLineStartPadding).tickFormat(Xt(x)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(u!==null){let J=parseInt(u[1],10);if(isNaN(J)||J<=0)r.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let h=u[2],mt=a.db.getWeekday()||o.weekday,m=H.domain(),q=m[0],K=m[1],ut=_(q,K,J,h);if(ut>fr)r.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":v.ticks(It.every(J));break;case"second":v.ticks(bt.every(J));break;case"minute":v.ticks(Ot.every(J));break;case"hour":v.ticks($t.every(J));break;case"day":v.ticks(St.every(J));break;case"week":v.ticks(Cn[mt].every(J));break;case"month":v.ticks(Ht.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+(V-50)+")").call(v).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let J=$e(H).tickSize(-V+F+o.gridLineStartPadding).tickFormat(Xt(x));if(u!==null){let h=parseInt(u[1],10);if(isNaN(h)||h<=0)r.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let mt=u[2],m=a.db.getWeekday()||o.weekday,q=H.domain(),K=q[0],ut=q[1];if(_(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks(Ot.every(h));break;case"hour":J.ticks($t.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Ht.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+F+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(f,"makeGrid");function P(b,F){let Y=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(y.lineBreakRegex),x=-(w.length-1)/2,v=D.createElementNS("http://www.w3.org/2000/svg","text");v.setAttribute("dy",x+"em");for(let[Q,u]of w.entries()){let J=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=u,v.appendChild(J)}return v}).attr("x",10).attr("y",function(d,w){if(w>0)for(let x=0;x<w;x++)return Y+=V[w-1][1],d[1]*b/2+Y*b+F;else return d[1]*b/2+F}).attr("font-size",o.sectionFontSize).attr("class",function(d){for(let[w,x]of O.entries())if(d[0]===x)return"sectionTitle sectionTitle"+w%o.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function rt(b,F,Y,V){let d=a.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),x=new Date,v=w.append("line");if(v.attr("x1",H(x)+b).attr("x2",H(x)+b).attr("y1",o.titleTopMargin).attr("y2",V-o.titleTopMargin).attr("class","today"),d!=="")v.attr("style",d.replace(/,/g,";"))}e(rt,"drawToday");function nt(b){let F={},Y=[];for(let V=0,d=b.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(F,b[V]))F[b[V]]=!0,Y.push(b[V]);return Y}e(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=e((t)=>`
|
|
7
|
+
.mermaid-main-font {
|
|
8
|
+
font-family: ${t.fontFamily};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.exclude-range {
|
|
12
|
+
fill: ${t.excludeBkgColor};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.section {
|
|
16
|
+
stroke: none;
|
|
17
|
+
opacity: 0.2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.section0 {
|
|
21
|
+
fill: ${t.sectionBkgColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.section2 {
|
|
25
|
+
fill: ${t.sectionBkgColor2};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.section1,
|
|
29
|
+
.section3 {
|
|
30
|
+
fill: ${t.altSectionBkgColor};
|
|
31
|
+
opacity: 0.2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sectionTitle0 {
|
|
35
|
+
fill: ${t.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sectionTitle1 {
|
|
39
|
+
fill: ${t.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sectionTitle2 {
|
|
43
|
+
fill: ${t.titleColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sectionTitle3 {
|
|
47
|
+
fill: ${t.titleColor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sectionTitle {
|
|
51
|
+
text-anchor: start;
|
|
52
|
+
font-family: ${t.fontFamily};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* Grid and axis */
|
|
57
|
+
|
|
58
|
+
.grid .tick {
|
|
59
|
+
stroke: ${t.gridColor};
|
|
60
|
+
opacity: 0.8;
|
|
61
|
+
shape-rendering: crispEdges;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.grid .tick text {
|
|
65
|
+
font-family: ${t.fontFamily};
|
|
66
|
+
fill: ${t.textColor};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.grid path {
|
|
70
|
+
stroke-width: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/* Today line */
|
|
75
|
+
|
|
76
|
+
.today {
|
|
77
|
+
fill: none;
|
|
78
|
+
stroke: ${t.todayLineColor};
|
|
79
|
+
stroke-width: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* Task styling */
|
|
84
|
+
|
|
85
|
+
/* Default task */
|
|
86
|
+
|
|
87
|
+
.task {
|
|
88
|
+
stroke-width: 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.taskText {
|
|
92
|
+
text-anchor: middle;
|
|
93
|
+
font-family: ${t.fontFamily};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.taskTextOutsideRight {
|
|
97
|
+
fill: ${t.taskTextDarkColor};
|
|
98
|
+
text-anchor: start;
|
|
99
|
+
font-family: ${t.fontFamily};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.taskTextOutsideLeft {
|
|
103
|
+
fill: ${t.taskTextDarkColor};
|
|
104
|
+
text-anchor: end;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/* Special case clickable */
|
|
109
|
+
|
|
110
|
+
.task.clickable {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.taskText.clickable {
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
fill: ${t.taskTextClickableColor} !important;
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.taskTextOutsideLeft.clickable {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
fill: ${t.taskTextClickableColor} !important;
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.taskTextOutsideRight.clickable {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
fill: ${t.taskTextClickableColor} !important;
|
|
129
|
+
font-weight: bold;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/* Specific task settings for the sections*/
|
|
134
|
+
|
|
135
|
+
.taskText0,
|
|
136
|
+
.taskText1,
|
|
137
|
+
.taskText2,
|
|
138
|
+
.taskText3 {
|
|
139
|
+
fill: ${t.taskTextColor};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.task0,
|
|
143
|
+
.task1,
|
|
144
|
+
.task2,
|
|
145
|
+
.task3 {
|
|
146
|
+
fill: ${t.taskBkgColor};
|
|
147
|
+
stroke: ${t.taskBorderColor};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.taskTextOutside0,
|
|
151
|
+
.taskTextOutside2
|
|
152
|
+
{
|
|
153
|
+
fill: ${t.taskTextOutsideColor};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.taskTextOutside1,
|
|
157
|
+
.taskTextOutside3 {
|
|
158
|
+
fill: ${t.taskTextOutsideColor};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/* Active task */
|
|
163
|
+
|
|
164
|
+
.active0,
|
|
165
|
+
.active1,
|
|
166
|
+
.active2,
|
|
167
|
+
.active3 {
|
|
168
|
+
fill: ${t.activeTaskBkgColor};
|
|
169
|
+
stroke: ${t.activeTaskBorderColor};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.activeText0,
|
|
173
|
+
.activeText1,
|
|
174
|
+
.activeText2,
|
|
175
|
+
.activeText3 {
|
|
176
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
/* Completed task */
|
|
181
|
+
|
|
182
|
+
.done0,
|
|
183
|
+
.done1,
|
|
184
|
+
.done2,
|
|
185
|
+
.done3 {
|
|
186
|
+
stroke: ${t.doneTaskBorderColor};
|
|
187
|
+
fill: ${t.doneTaskBkgColor};
|
|
188
|
+
stroke-width: 2;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.doneText0,
|
|
192
|
+
.doneText1,
|
|
193
|
+
.doneText2,
|
|
194
|
+
.doneText3 {
|
|
195
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
+
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
+
.doneText0.taskTextOutsideLeft,
|
|
201
|
+
.doneText0.taskTextOutsideRight,
|
|
202
|
+
.doneText1.taskTextOutsideLeft,
|
|
203
|
+
.doneText1.taskTextOutsideRight,
|
|
204
|
+
.doneText2.taskTextOutsideLeft,
|
|
205
|
+
.doneText2.taskTextOutsideRight,
|
|
206
|
+
.doneText3.taskTextOutsideLeft,
|
|
207
|
+
.doneText3.taskTextOutsideRight {
|
|
208
|
+
fill: ${t.taskTextOutsideColor} !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/* Tasks on the critical line */
|
|
213
|
+
|
|
214
|
+
.crit0,
|
|
215
|
+
.crit1,
|
|
216
|
+
.crit2,
|
|
217
|
+
.crit3 {
|
|
218
|
+
stroke: ${t.critBorderColor};
|
|
219
|
+
fill: ${t.critBkgColor};
|
|
220
|
+
stroke-width: 2;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.activeCrit0,
|
|
224
|
+
.activeCrit1,
|
|
225
|
+
.activeCrit2,
|
|
226
|
+
.activeCrit3 {
|
|
227
|
+
stroke: ${t.critBorderColor};
|
|
228
|
+
fill: ${t.activeTaskBkgColor};
|
|
229
|
+
stroke-width: 2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.doneCrit0,
|
|
233
|
+
.doneCrit1,
|
|
234
|
+
.doneCrit2,
|
|
235
|
+
.doneCrit3 {
|
|
236
|
+
stroke: ${t.critBorderColor};
|
|
237
|
+
fill: ${t.doneTaskBkgColor};
|
|
238
|
+
stroke-width: 2;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
shape-rendering: crispEdges;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.milestone {
|
|
244
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.milestoneText {
|
|
248
|
+
font-style: italic;
|
|
249
|
+
}
|
|
250
|
+
.doneCritText0,
|
|
251
|
+
.doneCritText1,
|
|
252
|
+
.doneCritText2,
|
|
253
|
+
.doneCritText3 {
|
|
254
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Done-crit task text outside the bar — same reasoning as doneText above. */
|
|
258
|
+
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
+
.doneCritText0.taskTextOutsideRight,
|
|
260
|
+
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
+
.doneCritText1.taskTextOutsideRight,
|
|
262
|
+
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
+
.doneCritText2.taskTextOutsideRight,
|
|
264
|
+
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
+
.doneCritText3.taskTextOutsideRight {
|
|
266
|
+
fill: ${t.taskTextOutsideColor} !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.vert {
|
|
270
|
+
stroke: ${t.vertLineColor};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.vertText {
|
|
274
|
+
font-size: 15px;
|
|
275
|
+
text-anchor: middle;
|
|
276
|
+
fill: ${t.vertLineColor} !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.activeCritText0,
|
|
280
|
+
.activeCritText1,
|
|
281
|
+
.activeCritText2,
|
|
282
|
+
.activeCritText3 {
|
|
283
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.titleText {
|
|
287
|
+
text-anchor: middle;
|
|
288
|
+
font-size: 18px;
|
|
289
|
+
fill: ${t.titleColor||t.textColor};
|
|
290
|
+
font-family: ${t.fontFamily};
|
|
291
|
+
}
|
|
292
|
+
`,"getStyles"),ks=gs,Bo={parser:_a,db:fs,renderer:ys,styles:ks};export{Bo as diagram};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{hn}from"./chunk-9p12mgs6.js";import{W}from"./chunk-b1pe46zz.js";import{e,r,D,b,O,B,C,S,E,T,A,I,L,q,In,nt,U}from"./chunk-y0m8hrwz.js";import{X}from"./chunk-taynqrgq.js";var Y=/[─━│┃└┗├┣]/,P=/[└┗├┣]/,ee=/[─━]/,R=/^[\s│┃]+$/,H=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,z=/^\s*%%/,te=" ";function F(i){return i.some((n)=>Y.test(n))}e(F,"isBoxDrawingFormat");function Z(i){for(let n of i){let t=P.exec(n);if(t?.index&&t.index>0)return t.index}return 4}e(Z,"inferSegmentWidth");function j(i,n){return i.replace(/\bline\s+(\d+)\b/gi,(t,o)=>{let c=parseInt(o,10),s=n.get(c);return s?`line ${s}`:t})}e(j,"remapErrorLines");function J(i){let n=i.split(`
|
|
2
|
+
`),t=new Map,o=-1;for(let[g,d]of n.entries())if(d.trim()==="treeView-beta"){o=g;break}if(o===-1)return{text:i,lineMap:t};let c=[];for(let g=o+1;g<n.length;g++){let d=n[g];if(d.trim()===""||z.test(d)||H.test(d))continue;if(R.test(d))continue;c.push(d.replace(/\t/g," "))}if(!F(c))return{text:i,lineMap:t};let s=Z(c),a=[],l=0;for(let g=0;g<=o;g++)a.push(n[g]),l++,t.set(l,g+1);for(let g=o+1;g<n.length;g++){let d=n[g],p=d.trim(),f=g+1;if(p===""){a.push(d),l++,t.set(l,f);continue}if(z.test(d)){a.push(d),l++,t.set(l,f);continue}if(H.test(d)){a.push(d),l++,t.set(l,f);continue}if(R.test(d))continue;let h=d.replace(/\t/g," "),w=P.exec(h);if(w?.index!==void 0){let u=w.index,x=Math.round(u/s)+1,m=u+1;while(m<h.length&&ee.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let y=h.slice(m).trimEnd();if(!y)throw Error(`Line ${f}: Empty node — expected a filename or directory name after the box-drawing prefix`);let Q=te.repeat(x);a.push(Q+y),l++,t.set(l,f)}else if(/^[\s─━│┃└┗├┣]+$/.test(h))continue;else if(Y.test(h))a.push(d),l++,t.set(l,f);else if(/^\s+/.test(h))throw Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);else a.push(d),l++,t.set(l,f)}return{text:a.join(`
|
|
3
|
+
`),lineMap:t}}e(J,"preprocessBoxDrawing");var v=new hn(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),re=e(()=>{v.reset(),C()},"clear"),ne=e(()=>v.records.stack[0],"getRoot"),ie=e(()=>v.records.cnt,"getCount"),oe=D.treeView,se=e(()=>U(oe,b().treeView),"getConfig"),ae=e((i,n,t,o,c,s)=>{while(i<=v.records.stack[v.records.stack.length-1].level)v.records.stack.pop();let a={id:v.records.cnt++,level:i,name:n,nodeType:t,icon:c,cssClass:o,description:s,children:[]};v.records.stack[v.records.stack.length-1].children.push(a),v.records.stack.push(a)},"addNode"),ce={clear:re,addNode:ae,getRoot:ne,getCount:ie,getConfig:se,getAccTitle:E,getAccDescription:A,getDiagramTitle:L,setAccDescription:T,setAccTitle:S,setDiagramTitle:I},k=ce,le=e((i)=>{W(i,k);for(let n of i.nodes){let t=typeof n.indent==="number"?n.indent:0,o=n.name,c=o.endsWith("/");if(c)o=o.slice(0,-1);let s=c?"directory":"file",a=n.classAnnotation||void 0,l=n.iconAnnotation,g=l!==void 0?l||"none":void 0,d=n.descAnnotation||void 0,p=d?O(d,b()):void 0;k.addNode(t,o,s,a,g,p)}},"populate"),de={parse:e(async(i)=>{let{text:n,lineMap:t}=J(i);try{let o=await X("treeView",n);r.debug(o),le(o)}catch(o){if(t.size>0&&o instanceof Error)o.message=j(o.message,t);throw o}},"parse")},V={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function K(i,n){let t=n?.filenameIcons?.[i];if(t)return t;let o=i.lastIndexOf(".");if(o>0){let c=i.substring(o).toLowerCase(),s=n?.extensionIcons;return s?.[c]??s?.[c.slice(1)]}return}e(K,"detectIcon");function N(i,n){if(i.includes(":"))return i;if(i in V.icons||!n)return`${V.prefix}:${i}`;return`${n}:${i}`}e(N,"qualifyIcon");function M(i,n){if(i.icon==="none")return;if(i.icon)return N(i.icon,n.defaultIconPack);if(!n.showIcons)return;if(i.nodeType==="file"){let t=K(i.name,n);if(t==="none")return;if(t)return N(t,n.defaultIconPack)}return`${V.prefix}:${i.nodeType==="directory"?"folder":"file"}`}e(M,"getNodeIcon");In([{name:V.prefix,icons:V}]);var _=14,he=4,pe=16,fe=e(async(i,n)=>{let t=[],o=e((s)=>{let a=M(s,n);if(a)t.push({icon:a,node:s});s.children.forEach(o)},"collect");o(i);let c=await Promise.all(t.map(async({icon:s,node:a})=>({id:a.id,svg:await nt(s,{height:_,width:_})})));return new Map(c.map(({id:s,svg:a})=>[s,a]))},"resolveNodeIcons"),ge=e((i,n,t,o,c,s)=>{let a=o.append("g"),l="treeView-node-label";if(t.nodeType==="directory")l+=" treeView-node-dir";if(t.cssClass)l+=` ${t.cssClass}`;let g=_+he,d=M(t,c),p=d!==void 0;if(d)a.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${i+c.paddingX}, ${n+c.paddingY})`).html(s.get(t.id)??"");let f=a.append("text").text(t.name).attr("dominant-baseline","middle").attr("class",l),{height:h,width:w}=f.node().getBBox(),u=h+c.paddingY*2,x=i+c.paddingX+(p?g:0);f.attr("x",x),f.attr("y",n+u/2);let m=x+w,y=w+c.paddingX*2+(p?g:0);if(t.BBox={x:i,y:n,width:y,height:u},t.cssClass?.split(/\s+/).includes("highlight"))a.insert("rect",":first-child").attr("x",i).attr("y",n+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:t,nodeGroup:a,labelRightEdge:m,centerY:n+u/2}},"positionLabel"),G=e((i,n,t,o,c,s)=>i.append("line").attr("x1",n).attr("y1",t).attr("x2",o).attr("y2",c).attr("stroke-width",s).attr("class","treeView-node-line"),"positionLine"),ue=e((i,n,t,o)=>{let c=0,s=0,a=[],l=e((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),x=ge(u,c,f,p,h,o);a.push(x);let{height:m,width:y}=f.BBox;G(p,u-h.rowIndent,c+m/2,u,c+m/2,h.lineThickness),s=Math.max(s,u+y),c+=m},"drawNode"),g=e((p,f=0)=>{l(i,p,t,f),p.children.forEach((x)=>{g(x,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:x,height:m}=p.children[p.children.length-1].BBox;G(i,h+t.paddingX,w+u,h+t.paddingX,x+m/2+t.lineThickness/2,t.lineThickness)}},"processNode");g(n);let d=a.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...a.map((h)=>h.labelRightEdge))+pe;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();s=Math.max(s,f+u.width+t.paddingX)}}for(let p of a)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=s-p.node.BBox.x+8;f.attr("width",h),s=Math.max(s,p.node.BBox.x+h+2)}}return{totalHeight:c,totalWidth:s}},"drawTree"),me=e(async(i,n,t,o)=>{r.debug(`Rendering treeView diagram
|
|
4
|
+
`+i);let c=o.db,s=c.getRoot(),a=c.getConfig(),l=q(n),g=l.append("g");g.attr("class","tree-view");let d=await fe(s,a),{totalHeight:p,totalWidth:f}=ue(g,s,a,d);l.attr("viewBox",`-${a.lineThickness/2} 0 ${f} ${p}`),B(l,p,f,a.useMaxWidth)},"draw"),we={draw:me},xe=we,ve={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},be=e(({treeView:i})=>{let{labelFontSize:n,labelColor:t,lineColor:o,iconColor:c,descriptionColor:s,highlightBg:a,highlightStroke:l}=U(ve,i);return`
|
|
5
|
+
.treeView-node-label {
|
|
6
|
+
font-size: ${n};
|
|
7
|
+
fill: ${t};
|
|
8
|
+
white-space: pre;
|
|
9
|
+
}
|
|
10
|
+
.treeView-node-dir {
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
}
|
|
13
|
+
.treeView-node-line {
|
|
14
|
+
stroke: ${o};
|
|
15
|
+
}
|
|
16
|
+
.treeView-node-icon {
|
|
17
|
+
color: ${c};
|
|
18
|
+
}
|
|
19
|
+
.treeView-node-description {
|
|
20
|
+
font-size: ${n};
|
|
21
|
+
fill: ${s};
|
|
22
|
+
font-style: italic;
|
|
23
|
+
white-space: pre;
|
|
24
|
+
}
|
|
25
|
+
.treeView-highlight-bg {
|
|
26
|
+
fill: ${a};
|
|
27
|
+
stroke: ${l};
|
|
28
|
+
stroke-width: 1;
|
|
29
|
+
}
|
|
30
|
+
`},"styles"),Ce=be,Ee={db:k,renderer:xe,parser:de,styles:Ce};export{Ee as diagram};
|