@softistx/pulsarix-widget 0.10.0 → 0.10.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 +8 -1
- package/dist/chunks/{abnfDiagram-XWFEHMT6.rxx9wyp3.js → abnfDiagram-XWFEHMT6.9n16jbeh.js} +1 -1
- package/dist/chunks/architecture-WOLXFQ4H.04w48nbq.js +1 -0
- package/dist/chunks/{architectureDiagram-CSQXQB3N.mrm0pgc0.js → architectureDiagram-CSQXQB3N.3c7xm6kb.js} +6 -6
- package/dist/chunks/{blockDiagram-BEDRHYPZ.f4dfpk7e.js → blockDiagram-BEDRHYPZ.b7d9kkgr.js} +2 -2
- package/dist/chunks/{c4Diagram-M2UUVUY5.rz43j1my.js → c4Diagram-M2UUVUY5.f883rrpb.js} +1 -1
- package/dist/chunks/{chat-markdown-BSu4FB_l.xgn4yj83.js → chat-markdown-BSu4FB_l.ngsfz1hc.js} +15 -15
- package/dist/chunks/{classDiagram-v2-KXABOMEV.m96cfcad.js → classDiagram-v2-KXABOMEV.6gcf0jbx.js} +1 -1
- package/dist/chunks/{cose-bilkent-JH36ORCC.zz2rwyw6.js → cose-bilkent-JH36ORCC.900yznpf.js} +1 -1
- package/dist/chunks/cynefin-EF2NZ3EQ.jp3enwcw.js +1 -0
- package/dist/chunks/{cynefinDiagram-NJNITYFG.az2k68wq.js → cynefinDiagram-NJNITYFG.7y6esx64.js} +1 -1
- package/dist/chunks/{dagre-KIHZ2IZ3.mgwg8bc4.js → dagre-KIHZ2IZ3.2xtjsjjb.js} +2 -2
- package/dist/chunks/{diagram-7YQZDPLS.x8fg6705.js → diagram-7YQZDPLS.5a4btxfh.js} +2 -2
- package/dist/chunks/{diagram-QBROCOUO.db60dsss.js → diagram-QBROCOUO.je55sz0f.js} +1 -1
- package/dist/chunks/{diagram-RJJCUUZO.a7e9w297.js → diagram-RJJCUUZO.19nj7yqv.js} +4 -4
- package/dist/chunks/{diagram-WERXNKYE.a04f53kd.js → diagram-WERXNKYE.h15fxc8e.js} +2 -2
- package/dist/chunks/{diagram-YHHI257C.v19jhmrh.js → diagram-YHHI257C.rjb588jf.js} +1 -1
- package/dist/chunks/{diagram-YR4HJLHV.c5e87gmw.js → diagram-YR4HJLHV.5cj602t4.js} +1 -1
- package/dist/chunks/{ebnfDiagram-N527522P.bjrxfgze.js → ebnfDiagram-N527522P.edah3bz7.js} +1 -1
- package/dist/chunks/{editor-shortcuts-dialog-Cz3T8435.5ve4nsaw.js → editor-shortcuts-dialog-Cz3T8435.kb0b5cra.js} +1 -1
- package/dist/chunks/{editor.yak1qktd.js → editor.ywaw7sz9.js} +3 -3
- package/dist/chunks/{elk-O5DQBFGD.1ydp0b7a.js → elk-O5DQBFGD.qnxmxe5n.js} +8 -8
- package/dist/chunks/{emoji-picker-00Bw2c2b.gzznrrz5.js → emoji-picker-00Bw2c2b.2985hrzf.js} +2 -2
- package/dist/chunks/{erDiagram-K3K3BIDK.g171ckq1.js → erDiagram-K3K3BIDK.9wh4fsa9.js} +1 -1
- package/dist/chunks/eventmodeling-K75KTNOO.xt3yb4h8.js +1 -0
- package/dist/chunks/{flow-diagram-DGZOc1z1.3gbgbm5m.js → flow-diagram-DGZOc1z1.1276ykn3.js} +4 -4
- package/dist/chunks/flowDiagram-Z6JWZHQI.3t1zqq9x.js +1 -0
- package/dist/chunks/{ganttDiagram-3PRQTZWP.3b9dh4nr.js → ganttDiagram-3PRQTZWP.4t4r8jy0.js} +2 -2
- package/dist/chunks/gitGraph-VSP46ZUC.v9e8d46n.js +1 -0
- package/dist/chunks/{gitGraphDiagram-VXDFKS5L.thyp7vsd.js → gitGraphDiagram-VXDFKS5L.x4pypqh9.js} +5 -5
- package/dist/chunks/{grid-E2QIVN74.entqjpa3.js → grid-E2QIVN74.8njsnft0.js} +1 -1
- package/dist/chunks/illustration-BcaGDjvB.ahkxq9mz.js +1 -0
- package/dist/chunks/{index.9n1y396a.js → index.0tz15aew.js} +1 -1
- package/dist/chunks/{index.35d4zbh8.js → index.0yskyw4t.js} +1 -1
- package/dist/chunks/{index.g2ba0pke.js → index.10k18jx6.js} +1 -1
- package/dist/chunks/{index.qr6a02kx.js → index.28jrnjz5.js} +2 -2
- package/dist/chunks/{index.w1516g8q.js → index.2j6fty9j.js} +3 -3
- package/dist/chunks/{index.5fcbba6e.js → index.3c95g5mh.js} +1 -1
- package/dist/chunks/{index.6pzexww5.js → index.3y8baz7q.js} +2 -2
- package/dist/chunks/{index.v02zf4zg.js → index.5n55ccv6.js} +1 -1
- package/dist/chunks/{index.zkx4ryzt.js → index.5sj251kq.js} +39 -39
- package/dist/chunks/{index.0g1t1pjx.js → index.a7m06kba.js} +1 -1
- package/dist/chunks/{index.8vaktk8x.js → index.f1bfv6bh.js} +1 -1
- package/dist/chunks/{index.8zg579vd.js → index.gzgeb5ax.js} +1 -1
- package/dist/chunks/{index.zkngte5k.js → index.mjp06b03.js} +1 -1
- package/dist/chunks/{index.cw97ff3b.js → index.mtrj86e8.js} +2 -2
- package/dist/chunks/{index.sw8gvntb.js → index.n53k66q8.js} +1 -1
- package/dist/chunks/{index.rkgfxpm3.js → index.pg4f51t3.js} +4 -4
- package/dist/chunks/{index.h1xzvasx.js → index.q39061xn.js} +1 -1
- package/dist/chunks/{index.w4emtsqw.js → index.tnx5y2zc.js} +1 -1
- package/dist/chunks/{index.a3njhfdd.js → index.znt11tbm.js} +1 -1
- package/dist/chunks/info-OHQRW6UA.atpz16bq.js +1 -0
- package/dist/chunks/{infoDiagram-EZ3ZOAHP.833fvq8n.js → infoDiagram-EZ3ZOAHP.mq5603w2.js} +1 -1
- package/dist/chunks/{ishikawaDiagram-S3EKX5GW.q3evaw24.js → ishikawaDiagram-S3EKX5GW.sx08qj3j.js} +1 -1
- package/dist/chunks/{journeyDiagram-POQNLL5X.9werrmpy.js → journeyDiagram-POQNLL5X.c3e37ws5.js} +1 -1
- package/dist/chunks/{kanban-definition-BH5XI6FM.f3ssda0m.js → kanban-definition-BH5XI6FM.6b85jkvt.js} +1 -1
- package/dist/chunks/{markup-color-chrome-ykGNUl8y.pcgw4znz.js → markup-color-chrome-ykGNUl8y.76asgnkk.js} +1 -1
- package/dist/chunks/{markup-custom-color-MM-HnrqY.sygnt3gs.js → markup-custom-color-MM-HnrqY.de5f5c2g.js} +1 -1
- package/dist/chunks/{mention-list-6cR5VSPa.x0x55xzp.js → mention-list-6cR5VSPa.r7r4w0q8.js} +1 -1
- package/dist/chunks/{mermaid.core.5cqab0cw.js → mermaid.core.kh4z9f22.js} +3 -3
- package/dist/chunks/{mindmap-definition-WVAN44T4.pjjxgse0.js → mindmap-definition-WVAN44T4.07nv313g.js} +1 -1
- package/dist/chunks/packet-JDAUHWVQ.dmnq0wwq.js +1 -0
- package/dist/chunks/{panel.2vwd6k3h.js → panel.zcphrx3e.js} +1 -1
- package/dist/chunks/{pegDiagram-D4NLKWP3.mdacgbzb.js → pegDiagram-D4NLKWP3.2mqrk2xy.js} +1 -1
- package/dist/chunks/pie-XZMESJXO.0rpk8mwa.js +1 -0
- package/dist/chunks/{pieDiagram-36ENHN4W.fb0d6a9w.js → pieDiagram-36ENHN4W.kx9bhkyj.js} +2 -2
- package/dist/chunks/{plated-illustration-pTqcYOQg.6b9fm4a7.js → plated-illustration-pTqcYOQg.a24pxzgf.js} +1 -1
- package/dist/chunks/{quadrantDiagram-ZQUDMS73.m5cgqatg.js → quadrantDiagram-ZQUDMS73.68vxq0vb.js} +1 -1
- package/dist/chunks/radar-ABXABTNO.xt7snfyy.js +1 -0
- package/dist/chunks/railroad-I3PHUGI6.bjssfxkf.js +1 -0
- package/dist/chunks/railroad-abnf-LNEFI6M7.mchc5mex.js +1 -0
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.wz1e7a1n.js +1 -0
- package/dist/chunks/railroad-peg-JR7BVNR7.xg4e4nsz.js +1 -0
- package/dist/chunks/{railroadDiagram-JIZHGYPL.w2e1k61e.js → railroadDiagram-JIZHGYPL.dnj3h1n0.js} +1 -1
- package/dist/chunks/{render-VIF2ZAQL.exs2rt60.js → render-VIF2ZAQL.cawqkxpf.js} +1 -1
- package/dist/chunks/{requirementDiagram-AXW2TVFA.mrxb120d.js → requirementDiagram-AXW2TVFA.5z51j1hn.js} +1 -1
- package/dist/chunks/{sankeyDiagram-FBCJTAIF.csj5n1sg.js → sankeyDiagram-FBCJTAIF.0dqdm7yd.js} +1 -1
- package/dist/chunks/{sequenceDiagram-3LA2ROMG.73qx1ab4.js → sequenceDiagram-3LA2ROMG.0fpdfwg0.js} +1 -1
- package/dist/chunks/{sizeCapture-2Q2CQKSF.vfe8maj3.js → sizeCapture-2Q2CQKSF.gverqc02.js} +1 -1
- package/dist/chunks/{stateDiagram-v2-ATKHQDJO.h4grfmy4.js → stateDiagram-v2-ATKHQDJO.56dj904f.js} +1 -1
- package/dist/chunks/{swimlanes-YQL5WMAO.e2y8jam1.js → swimlanes-YQL5WMAO.frj4npw4.js} +1 -1
- package/dist/chunks/swimlanesDiagram-UCCPES4V.834hahmm.js +8 -0
- package/dist/chunks/{timeline-definition-7Z437IG3.2zxa6hz5.js → timeline-definition-7Z437IG3.v99ghwdb.js} +1 -1
- package/dist/chunks/treeView-D4JQ5SDB.tbqcaq5q.js +1 -0
- package/dist/chunks/treemap-SAJKECNS.jgfv37a0.js +1 -0
- package/dist/chunks/{usecaseDiagram-RDK6N6HP.61cdyktj.js → usecaseDiagram-RDK6N6HP.b6317ne8.js} +1 -1
- package/dist/chunks/{vennDiagram-SHRQU5PJ.4tspw3rs.js → vennDiagram-SHRQU5PJ.adr331gc.js} +5 -5
- package/dist/chunks/wardley-7MLQ67FV.4653yv6a.js +1 -0
- package/dist/chunks/{wardleyDiagram-F3OXNVQS.q2p8tshx.js → wardleyDiagram-F3OXNVQS.5tt3knhg.js} +4 -4
- package/dist/chunks/{xychartDiagram-GDYJKCDI.69desp9j.js → xychartDiagram-GDYJKCDI.dqs1thzc.js} +4 -4
- package/dist/index.js +12 -12
- package/docs/integration.md +1 -1
- package/package.json +1 -1
- package/dist/chunks/architecture-WOLXFQ4H.hwrxbct0.js +0 -1
- package/dist/chunks/cynefin-EF2NZ3EQ.y29bn1cz.js +0 -1
- package/dist/chunks/eventmodeling-K75KTNOO.46qfxqj7.js +0 -1
- package/dist/chunks/flowDiagram-Z6JWZHQI.f0eaj70g.js +0 -1
- package/dist/chunks/gitGraph-VSP46ZUC.swware7n.js +0 -1
- package/dist/chunks/illustration-BcaGDjvB.1q9xtmyq.js +0 -1
- package/dist/chunks/info-OHQRW6UA.1er9b42t.js +0 -1
- package/dist/chunks/packet-JDAUHWVQ.t5jwb2rb.js +0 -1
- package/dist/chunks/pie-XZMESJXO.pe88zesw.js +0 -1
- package/dist/chunks/radar-ABXABTNO.jtbddwfq.js +0 -1
- package/dist/chunks/railroad-I3PHUGI6.kvyt0f9s.js +0 -1
- package/dist/chunks/railroad-abnf-LNEFI6M7.ybx0vspg.js +0 -1
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.yx4c4enn.js +0 -1
- package/dist/chunks/railroad-peg-JR7BVNR7.mb71eyqe.js +0 -1
- package/dist/chunks/swimlanesDiagram-UCCPES4V.dtthssd5.js +0 -8
- package/dist/chunks/treeView-D4JQ5SDB.3kgztv30.js +0 -1
- package/dist/chunks/treemap-SAJKECNS.xj47e2ae.js +0 -1
- package/dist/chunks/wardley-7MLQ67FV.pckbr6zr.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{e,Zi,n,y,j,A,L,R,I,M,P,O,u,p,mn,F}from"./index.zkx4ryzt.js";import{il,ol,ll,sn,Gt,ln,cn,nr,Br,un,is,os,Er,ss,ls,dn,zn,Vt,cl}from"./index.cw97ff3b.js";import{Pe,We}from"./index.rkgfxpm3.js";var ve=We(function(Bt,jt){(function(t,i){typeof Bt=="object"&&typeof jt<"u"?jt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=i()})(Bt,function(){var t="day";return function(i,a,s){var o=function(Y){return Y.add(4-Y.isoWeekday(),t)},h=a.prototype;h.isoWeekYear=function(){return o(this).year()},h.isoWeek=function(Y){if(!this.$utils().u(Y))return this.add(7*(Y-this.isoWeek()),t);var C,K,H,et,W=o(this),V=(C=this.isoWeekYear(),K=this.$u,H=(K?s.utc:s)().year(C).startOf("year"),et=4-H.isoWeekday(),H.isoWeekday()>4&&(et+=7),H.add(et,t));return W.diff(V,"week")+1},h.isoWeekday=function(Y){return this.$utils().u(Y)?this.day()||7:this.day(this.day()%7?Y:Y-7)};var T=h.startOf;h.startOf=function(Y,C){var K=this.$utils(),H=!!K.u(C)||C;return K.p(Y)==="isoweek"?H?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):T.bind(this)(Y,C)}}})});var Te=We(function(Xt,Ut){(function(t,i){typeof Xt=="object"&&typeof Ut<"u"?Ut.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Xt,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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,o=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,T={},Y=function(D){return(D=+D)+(D>68?1900:2000)},C=function(D){return function(E){this[D]=+E}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=function(E){if(!E)return 0;if(E==="Z")return 0;var S=E.match(/([+-]|\d\d)/g),Z=60*S[1]+(+S[2]||0);return Z===0?0:S[0]==="+"?-Z:Z}(D)}],H=function(D){var E=T[D];return E&&(E.indexOf?E:E.s.concat(E.f))},et=function(D,E){var S,Z=T.meridiem;if(Z){for(var rt=1;rt<=24;rt+=1)if(D.indexOf(Z(rt,0,E))>-1){S=rt>12;break}}else S=D===(E?"pm":"PM");return S},W={A:[h,function(D){this.afternoon=et(D,!1)}],a:[h,function(D){this.afternoon=et(D,!0)}],Q:[a,function(D){this.month=3*(D-1)+1}],S:[a,function(D){this.milliseconds=100*+D}],SS:[s,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[o,C("seconds")],ss:[o,C("seconds")],m:[o,C("minutes")],mm:[o,C("minutes")],H:[o,C("hours")],h:[o,C("hours")],HH:[o,C("hours")],hh:[o,C("hours")],D:[o,C("day")],DD:[s,C("day")],Do:[h,function(D){var E=T.ordinal,S=D.match(/\d+/);if(this.day=S[0],E)for(var Z=1;Z<=31;Z+=1)E(Z).replace(/\[|\]/g,"")===D&&(this.day=Z)}],w:[o,C("week")],ww:[s,C("week")],M:[o,C("month")],MM:[s,C("month")],MMM:[h,function(D){var E=H("months"),S=(H("monthsShort")||E.map(function(Z){return Z.slice(0,3)})).indexOf(D)+1;if(S<1)throw Error();this.month=S%12||S}],MMMM:[h,function(D){var E=H("months").indexOf(D)+1;if(E<1)throw Error();this.month=E%12||E}],Y:[/[+-]?\d+/,C("year")],YY:[s,function(D){this.year=Y(D)}],YYYY:[/\d{4}/,C("year")],Z:K,ZZ:K};function V(D){var E,S;E=D,S=T&&T.formats;for(var Z=(D=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,q,g){var w=g&&g.toUpperCase();return q||S[g]||t[g]||S[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,_,c){return _||c.slice(1)})})).match(i),rt=Z.length,st=0;st<rt;st+=1){var U=Z[st],x=W[U],m=x&&x[0],z=x&&x[1];Z[st]=z?{regex:m,parser:z}:U.replace(/^\[|\]$/g,"")}return function(Q){for(var q={},g=0,w=0;g<rt;g+=1){var b=Z[g];if(typeof b=="string")w+=b.length;else{var{regex:_,parser:c}=b,v=Q.slice(w),k=_.exec(v)[0];c.call(q,k),Q=Q.replace(k,"")}}return function(f){var B=f.afternoon;if(B!==void 0){var r=f.hours;B?r<12&&(f.hours+=12):r===12&&(f.hours=0),delete f.afternoon}}(q),q}}return function(D,E,S){S.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(Y=D.parseTwoDigitYear);var Z=E.prototype,rt=Z.parse;Z.parse=function(st){var{date:U,utc:x,args:m}=st;this.$u=x;var z=m[1];if(typeof z=="string"){var Q=m[2]===!0,q=m[3]===!0,g=Q||q,w=m[2];q&&(w=m[2]),T=this.$locale(),!Q&&w&&(T=S.Ls[w]),this.$d=function(v,k,f,B){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1000:1)*v);var r=V(k)(v),{year:G,month:d,day:at,hours:l,minutes:N,seconds:X,milliseconds:it,zone:nt,week:J}=r,tt=new Date,mt=at||(G||d?1:tt.getDate()),kt=G||tt.getFullYear(),Tt=0;G&&!d||(Tt=d>0?d-1:tt.getMonth());var bt,xt=l||0,ot=N||0,pt=X||0,ft=it||0;return nt?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft+60*nt.offset*1000)):f?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft)):(bt=new Date(kt,Tt,mt,xt,ot,pt,ft),J&&(bt=B(bt).week(J).toDate()),bt)}catch(lt){return new Date("")}}(U,z,x,S),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),g&&U!=this.format(z)&&(this.$d=new Date("")),T={}}else if(z instanceof Array)for(var b=z.length,_=1;_<=b;_+=1){m[1]=z[_-1];var c=S.apply(this,m);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}_===b&&(this.$d=new Date(""))}else rt.call(this,st)}}})});var be=We(function(qt,Zt){(function(t,i){typeof qt=="object"&&typeof Zt<"u"?Zt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(qt,function(){return function(t,i){var a=i.prototype,s=a.format;a.format=function(o){var h=this,T=this.$locale();if(!this.isValid())return s.bind(this)(o);var Y=this.$utils(),C=(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(K){switch(K){case"Q":return Math.ceil((h.$M+1)/3);case"Do":return T.ordinal(h.$D);case"gggg":return h.weekYear();case"GGGG":return h.isoWeekYear();case"wo":return T.ordinal(h.week(),"W");case"w":case"ww":return Y.s(h.week(),K==="w"?1:2,"0");case"W":case"WW":return Y.s(h.isoWeek(),K==="W"?1:2,"0");case"k":case"kk":return Y.s(String(h.$H===0?24:h.$H),K==="k"?1:2,"0");case"X":return Math.floor(h.$d.getTime()/1000);case"x":return h.$d.getTime();case"z":return"["+h.offsetName()+"]";case"zzz":return"["+h.offsetName("long")+"]";default:return K}});return s.bind(this)(C)}}})});var xe=We(function(Qt,Kt){(function(t,i){typeof Qt=="object"&&typeof Kt<"u"?Kt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=i()})(Qt,function(){var t,i,a=1000,s=60000,o=3600000,h=86400000,T=31536000000,Y=2628000000,C=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,H={years:T,months:Y,days:h,hours:o,minutes:s,seconds:a,milliseconds:1,weeks:604800000},et=function(U){return U instanceof rt},W=function(U,x,m){return new rt(U,m,x.$l)},V=function(U){return i.p(U)+"s"},D=function(U){return U<0},E=function(U){return D(U)?Math.ceil(U):Math.floor(U)},S=function(U){return Math.abs(U)},Z=function(U,x){return U?D(U)?{negative:!0,format:""+S(U)+x}:{negative:!1,format:""+U+x}:{negative:!1,format:""}},rt=function(){function U(m,z,Q){var q=this;if(this.$d={},this.$l=Q,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),z)return W(m*H[V(z)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach(function(b){q.$d[V(b)]=m[b]}),this.calMilliseconds(),this;if(typeof m=="string"){var g=m.match(C);if(g){var w=g.slice(2).map(function(b){return b!=null?Number(b):0});return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var x=U.prototype;return x.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce(function(z,Q){return z+(m.$d[Q]||0)*H[Q]},0)},x.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=E(m/T),m%=T,this.$d.months=E(m/Y),m%=Y,this.$d.days=E(m/h),m%=h,this.$d.hours=E(m/o),m%=o,this.$d.minutes=E(m/s),m%=s,this.$d.seconds=E(m/a),m%=a,this.$d.milliseconds=m},x.toISOString=function(){var m=Z(this.$d.years,"Y"),z=Z(this.$d.months,"M"),Q=+this.$d.days||0;this.$d.weeks&&(Q+=7*this.$d.weeks);var q=Z(Q,"D"),g=Z(this.$d.hours,"H"),w=Z(this.$d.minutes,"M"),b=this.$d.seconds||0;this.$d.milliseconds&&(b+=this.$d.milliseconds/1000,b=Math.round(1000*b)/1000);var _=Z(b,"S"),c=m.negative||z.negative||q.negative||g.negative||w.negative||_.negative,v=g.format||w.format||_.format?"T":"",k=(c?"-":"")+"P"+m.format+z.format+q.format+v+g.format+w.format+_.format;return k==="P"||k==="-P"?"P0D":k},x.toJSON=function(){return this.toISOString()},x.format=function(m){var z=m||"YYYY-MM-DDTHH:mm:ss",Q={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return z.replace(K,function(q,g){return g||String(Q[q])})},x.as=function(m){return this.$ms/H[V(m)]},x.get=function(m){var z=this.$ms,Q=V(m);return Q==="milliseconds"?z%=1000:z=Q==="weeks"?E(z/H[Q]):this.$d[Q],z||0},x.add=function(m,z,Q){var q;return q=z?m*H[V(z)]:et(m)?m.$ms:W(m,this).$ms,W(this.$ms+q*(Q?-1:1),this)},x.subtract=function(m,z){return this.add(m,z,!0)},x.locale=function(m){var z=this.clone();return z.$l=m,z},x.clone=function(){return W(this.$ms,this)},x.humanize=function(m){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},U}(),st=function(U,x,m){return U.add(x.years()*m,"y").add(x.months()*m,"M").add(x.days()*m,"d").add(x.hours()*m,"h").add(x.minutes()*m,"m").add(x.seconds()*m,"s").add(x.milliseconds()*m,"ms")};return function(U,x,m){t=m,i=m().$utils(),m.duration=function(q,g){var w=m.locale();return W(q,{$l:w},g)},m.isDuration=et;var z=x.prototype.add,Q=x.prototype.subtract;x.prototype.add=function(q,g){return et(q)?st(this,q,1):z.bind(this)(q,g)},x.prototype.subtract=function(q,g){return et(q)?st(this,q,-1):Q.bind(this)(q,g)}}})});function He(t){return t}var Lt=1,Nt=2,Ht=3,At=4,ke=0.000001;function Be(t){return"translate("+t+",0)"}function je(t){return"translate(0,"+t+")"}function Ge(t){return(i)=>+t(i)}function Xe(t,i){if(i=Math.max(0,t.bandwidth()-i*2)/2,t.round())i=Math.round(i);return(a)=>+t(a)+i}function Ue(){return!this.__axis}function ye(t,i){var a=[],s=null,o=null,h=6,T=6,Y=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,K=t===Lt||t===At?-1:1,H=t===At||t===Nt?"x":"y",et=t===Lt||t===Ht?Be:je;function W(V){var D=s==null?i.ticks?i.ticks.apply(i,a):i.domain():s,E=o==null?i.tickFormat?i.tickFormat.apply(i,a):He:o,S=Math.max(h,0)+Y,Z=i.range(),rt=+Z[0]+C,st=+Z[Z.length-1]+C,U=(i.bandwidth?Xe:Ge)(i.copy(),C),x=V.selection?V.selection():V,m=x.selectAll(".domain").data([null]),z=x.selectAll(".tick").data(D,i).order(),Q=z.exit(),q=z.enter().append("g").attr("class","tick"),g=z.select("line"),w=z.select("text");if(m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),z=z.merge(q),g=g.merge(q.append("line").attr("stroke","currentColor").attr(H+"2",K*h)),w=w.merge(q.append("text").attr("fill","currentColor").attr(H,K*S).attr("dy",t===Lt?"0em":t===Ht?"0.71em":"0.32em")),V!==x)m=m.transition(V),z=z.transition(V),g=g.transition(V),w=w.transition(V),Q=Q.transition(V).attr("opacity",ke).attr("transform",function(b){return isFinite(b=U(b))?et(b+C):this.getAttribute("transform")}),q.attr("opacity",ke).attr("transform",function(b){var _=this.parentNode.__axis;return et((_&&isFinite(_=_(b))?_:U(b))+C)});Q.remove(),m.attr("d",t===At||t===Nt?T?"M"+K*T+","+rt+"H"+C+"V"+st+"H"+K*T:"M"+C+","+rt+"V"+st:T?"M"+rt+","+K*T+"V"+C+"H"+st+"V"+K*T:"M"+rt+","+C+"H"+st),z.attr("opacity",1).attr("transform",function(b){return et(U(b)+C)}),g.attr(H+"2",K*h),w.attr(H,K*S).text(E),x.filter(Ue).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Nt?"start":t===At?"end":"middle"),x.each(function(){this.__axis=U})}return W.scale=function(V){return arguments.length?(i=V,W):i},W.ticks=function(){return a=Array.from(arguments),W},W.tickArguments=function(V){return arguments.length?(a=V==null?[]:Array.from(V),W):a.slice()},W.tickValues=function(V){return arguments.length?(s=V==null?null:Array.from(V),W):s&&s.slice()},W.tickFormat=function(V){return arguments.length?(o=V,W):o},W.tickSize=function(V){return arguments.length?(h=T=+V,W):h},W.tickSizeInner=function(V){return arguments.length?(h=+V,W):h},W.tickSizeOuter=function(V){return arguments.length?(T=+V,W):T},W.tickPadding=function(V){return arguments.length?(Y=+V,W):Y},W.offset=function(V){return arguments.length?(C=+V,W):C},W}function ge(t){return ye(Lt,t)}function pe(t){return ye(Ht,t)}var Se=Pe(mn(),1),ut=Pe(Zi(),1),Ce=Pe(ve(),1),Me=Pe(Te(),1),Ee=Pe(be(),1),Dt=Pe(Zi(),1),Ne=Pe(xe(),1);var te=function(){var t=e(function(_,c,v,k){for(v=v||{},k=_.length;k--;v[_[k]]=c);return v},"o"),i=[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],a=[1,26],s=[1,27],o=[1,28],h=[1,29],T=[1,30],Y=[1,31],C=[1,32],K=[1,33],H=[1,34],et=[1,9],W=[1,10],V=[1,11],D=[1,12],E=[1,13],S=[1,14],Z=[1,15],rt=[1,16],st=[1,19],U=[1,20],x=[1,21],m=[1,22],z=[1,23],Q=[1,25],q=[1,35],g={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(c,v,k,f,B,r,G){var d=r.length-1;switch(B){case 1:return r[d-1];case 2:this.$=[];break;case 3:r[d-1].push(r[d]),this.$=r[d-1];break;case 4:case 5:this.$=r[d];break;case 6:case 7:this.$=[];break;case 8:f.setWeekday("monday");break;case 9:f.setWeekday("tuesday");break;case 10:f.setWeekday("wednesday");break;case 11:f.setWeekday("thursday");break;case 12:f.setWeekday("friday");break;case 13:f.setWeekday("saturday");break;case 14:f.setWeekday("sunday");break;case 15:f.setWeekend("friday");break;case 16:f.setWeekend("saturday");break;case 17:f.setDateFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 18:f.enableInclusiveEndDates(),this.$=r[d].substr(18);break;case 19:f.TopAxis(),this.$=r[d].substr(8);break;case 20:f.setAxisFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 21:f.setTickInterval(r[d].substr(13)),this.$=r[d].substr(13);break;case 22:f.setExcludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 23:f.setIncludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 24:f.setTodayMarker(r[d].substr(12)),this.$=r[d].substr(12);break;case 27:f.setDiagramTitle(r[d].substr(6)),this.$=r[d].substr(6);break;case 28:this.$=r[d].trim(),f.setAccTitle(this.$);break;case 29:case 30:this.$=r[d].trim(),f.setAccDescription(this.$);break;case 31:f.addSection(r[d].substr(8)),this.$=r[d].substr(8);break;case 33:f.addTask(r[d-1],r[d]),this.$="task";break;case 34:this.$=r[d-1],f.setClickEvent(r[d-1],r[d],null);break;case 35:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],r[d]);break;case 36:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],null),f.setLink(r[d-2],r[d]);break;case 37:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-2],r[d-1]),f.setLink(r[d-3],r[d]);break;case 38:this.$=r[d-2],f.setClickEvent(r[d-2],r[d],null),f.setLink(r[d-2],r[d-1]);break;case 39:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-1],r[d]),f.setLink(r[d-3],r[d-2]);break;case 40:this.$=r[d-1],f.setLink(r[d-1],r[d]);break;case 41:case 47:this.$=r[d-1]+" "+r[d];break;case 42:case 43:case 45:this.$=r[d-2]+" "+r[d-1]+" "+r[d];break;case 44:case 46:this.$=r[d-3]+" "+r[d-2]+" "+r[d-1]+" "+r[d];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:s,14:o,15:h,16:T,17:Y,18:C,19:18,20:K,21:H,22:et,23:W,24:V,25:D,26:E,27:S,28:Z,29:rt,30:st,31:U,33:x,35:m,36:z,37:24,38:Q,40:q},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:36,11:17,12:a,13:s,14:o,15:h,16:T,17:Y,18:C,19:18,20:K,21:H,22:et,23:W,24:V,25:D,26:E,27:S,28:Z,29:rt,30:st,31:U,33:x,35:m,36:z,37:24,38:Q,40:q},t(i,[2,5]),t(i,[2,6]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),t(i,[2,27]),{32:[1,37]},{34:[1,38]},t(i,[2,30]),t(i,[2,31]),t(i,[2,32]),{39:[1,39]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),{41:[1,40],43:[1,41]},t(i,[2,4]),t(i,[2,28]),t(i,[2,29]),t(i,[2,33]),t(i,[2,34],{42:[1,42],43:[1,43]}),t(i,[2,40],{41:[1,44]}),t(i,[2,35],{43:[1,45]}),t(i,[2,36]),t(i,[2,38],{42:[1,46]}),t(i,[2,37]),t(i,[2,39])],defaultActions:{},parseError:e(function(c,v){if(v.recoverable)this.trace(c);else{var k=Error(c);throw k.hash=v,k}},"parseError"),parse:e(function(c){var v=this,k=[0],f=[],B=[null],r=[],G=this.table,d="",at=0,l=0,N=0,X=2,it=1,nt=r.slice.call(arguments,1),J=Object.create(this.lexer),tt={yy:{}};for(var mt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,mt))tt.yy[mt]=this.yy[mt];if(J.setInput(c,tt.yy),tt.yy.lexer=J,tt.yy.parser=this,typeof J.yylloc>"u")J.yylloc={};var kt=J.yylloc;r.push(kt);var Tt=J.options&&J.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(dt){k.length=k.length-2*dt,B.length=B.length-dt,r.length=r.length-dt}e(bt,"popStack");function xt(){var dt=f.pop()||J.lex()||it;if(typeof dt!=="number"){if(dt instanceof Array)f=dt,dt=f.pop();dt=v.symbols_[dt]||dt}return dt}e(xt,"lex");var ot,pt,ft,lt,Pi,zt,wt={},Yt,yt,me,$t;while(!0){if(ft=k[k.length-1],this.defaultActions[ft])lt=this.defaultActions[ft];else{if(ot===null||typeof ot>"u")ot=xt();lt=G[ft]&&G[ft][ot]}if(typeof lt>"u"||!lt.length||!lt[0]){var Rt="";$t=[];for(Yt in G[ft])if(this.terminals_[Yt]&&Yt>X)$t.push("'"+this.terminals_[Yt]+"'");if(J.showPosition)Rt="Parse error on line "+(at+1)+`:
|
|
1
|
+
import{e,Zi,n,y,j,A,L,R,I,M,P,O,u,p,pn,F}from"./index.5sj251kq.js";import{il,ol,ll,on,Gt,sn,ln,nr,Br,cn,is,os,Er,ss,ls,un,zn,Vt,cl}from"./index.mtrj86e8.js";import{Pe,We}from"./index.pg4f51t3.js";var ve=We(function(Bt,jt){(function(t,i){typeof Bt=="object"&&typeof jt<"u"?jt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=i()})(Bt,function(){var t="day";return function(i,a,s){var o=function(Y){return Y.add(4-Y.isoWeekday(),t)},h=a.prototype;h.isoWeekYear=function(){return o(this).year()},h.isoWeek=function(Y){if(!this.$utils().u(Y))return this.add(7*(Y-this.isoWeek()),t);var C,K,H,et,W=o(this),V=(C=this.isoWeekYear(),K=this.$u,H=(K?s.utc:s)().year(C).startOf("year"),et=4-H.isoWeekday(),H.isoWeekday()>4&&(et+=7),H.add(et,t));return W.diff(V,"week")+1},h.isoWeekday=function(Y){return this.$utils().u(Y)?this.day()||7:this.day(this.day()%7?Y:Y-7)};var T=h.startOf;h.startOf=function(Y,C){var K=this.$utils(),H=!!K.u(C)||C;return K.p(Y)==="isoweek"?H?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):T.bind(this)(Y,C)}}})});var Te=We(function(Xt,Ut){(function(t,i){typeof Xt=="object"&&typeof Ut<"u"?Ut.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Xt,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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,o=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,T={},Y=function(D){return(D=+D)+(D>68?1900:2000)},C=function(D){return function(E){this[D]=+E}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=function(E){if(!E)return 0;if(E==="Z")return 0;var S=E.match(/([+-]|\d\d)/g),Z=60*S[1]+(+S[2]||0);return Z===0?0:S[0]==="+"?-Z:Z}(D)}],H=function(D){var E=T[D];return E&&(E.indexOf?E:E.s.concat(E.f))},et=function(D,E){var S,Z=T.meridiem;if(Z){for(var rt=1;rt<=24;rt+=1)if(D.indexOf(Z(rt,0,E))>-1){S=rt>12;break}}else S=D===(E?"pm":"PM");return S},W={A:[h,function(D){this.afternoon=et(D,!1)}],a:[h,function(D){this.afternoon=et(D,!0)}],Q:[a,function(D){this.month=3*(D-1)+1}],S:[a,function(D){this.milliseconds=100*+D}],SS:[s,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[o,C("seconds")],ss:[o,C("seconds")],m:[o,C("minutes")],mm:[o,C("minutes")],H:[o,C("hours")],h:[o,C("hours")],HH:[o,C("hours")],hh:[o,C("hours")],D:[o,C("day")],DD:[s,C("day")],Do:[h,function(D){var E=T.ordinal,S=D.match(/\d+/);if(this.day=S[0],E)for(var Z=1;Z<=31;Z+=1)E(Z).replace(/\[|\]/g,"")===D&&(this.day=Z)}],w:[o,C("week")],ww:[s,C("week")],M:[o,C("month")],MM:[s,C("month")],MMM:[h,function(D){var E=H("months"),S=(H("monthsShort")||E.map(function(Z){return Z.slice(0,3)})).indexOf(D)+1;if(S<1)throw Error();this.month=S%12||S}],MMMM:[h,function(D){var E=H("months").indexOf(D)+1;if(E<1)throw Error();this.month=E%12||E}],Y:[/[+-]?\d+/,C("year")],YY:[s,function(D){this.year=Y(D)}],YYYY:[/\d{4}/,C("year")],Z:K,ZZ:K};function V(D){var E,S;E=D,S=T&&T.formats;for(var Z=(D=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,q,g){var w=g&&g.toUpperCase();return q||S[g]||t[g]||S[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,_,c){return _||c.slice(1)})})).match(i),rt=Z.length,st=0;st<rt;st+=1){var U=Z[st],x=W[U],m=x&&x[0],z=x&&x[1];Z[st]=z?{regex:m,parser:z}:U.replace(/^\[|\]$/g,"")}return function(Q){for(var q={},g=0,w=0;g<rt;g+=1){var b=Z[g];if(typeof b=="string")w+=b.length;else{var{regex:_,parser:c}=b,v=Q.slice(w),k=_.exec(v)[0];c.call(q,k),Q=Q.replace(k,"")}}return function(f){var B=f.afternoon;if(B!==void 0){var r=f.hours;B?r<12&&(f.hours+=12):r===12&&(f.hours=0),delete f.afternoon}}(q),q}}return function(D,E,S){S.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(Y=D.parseTwoDigitYear);var Z=E.prototype,rt=Z.parse;Z.parse=function(st){var{date:U,utc:x,args:m}=st;this.$u=x;var z=m[1];if(typeof z=="string"){var Q=m[2]===!0,q=m[3]===!0,g=Q||q,w=m[2];q&&(w=m[2]),T=this.$locale(),!Q&&w&&(T=S.Ls[w]),this.$d=function(v,k,f,B){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1000:1)*v);var r=V(k)(v),{year:G,month:d,day:at,hours:l,minutes:N,seconds:X,milliseconds:it,zone:nt,week:J}=r,tt=new Date,mt=at||(G||d?1:tt.getDate()),kt=G||tt.getFullYear(),Tt=0;G&&!d||(Tt=d>0?d-1:tt.getMonth());var bt,xt=l||0,ot=N||0,pt=X||0,ft=it||0;return nt?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft+60*nt.offset*1000)):f?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft)):(bt=new Date(kt,Tt,mt,xt,ot,pt,ft),J&&(bt=B(bt).week(J).toDate()),bt)}catch(lt){return new Date("")}}(U,z,x,S),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),g&&U!=this.format(z)&&(this.$d=new Date("")),T={}}else if(z instanceof Array)for(var b=z.length,_=1;_<=b;_+=1){m[1]=z[_-1];var c=S.apply(this,m);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}_===b&&(this.$d=new Date(""))}else rt.call(this,st)}}})});var be=We(function(qt,Zt){(function(t,i){typeof qt=="object"&&typeof Zt<"u"?Zt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(qt,function(){return function(t,i){var a=i.prototype,s=a.format;a.format=function(o){var h=this,T=this.$locale();if(!this.isValid())return s.bind(this)(o);var Y=this.$utils(),C=(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(K){switch(K){case"Q":return Math.ceil((h.$M+1)/3);case"Do":return T.ordinal(h.$D);case"gggg":return h.weekYear();case"GGGG":return h.isoWeekYear();case"wo":return T.ordinal(h.week(),"W");case"w":case"ww":return Y.s(h.week(),K==="w"?1:2,"0");case"W":case"WW":return Y.s(h.isoWeek(),K==="W"?1:2,"0");case"k":case"kk":return Y.s(String(h.$H===0?24:h.$H),K==="k"?1:2,"0");case"X":return Math.floor(h.$d.getTime()/1000);case"x":return h.$d.getTime();case"z":return"["+h.offsetName()+"]";case"zzz":return"["+h.offsetName("long")+"]";default:return K}});return s.bind(this)(C)}}})});var xe=We(function(Qt,Kt){(function(t,i){typeof Qt=="object"&&typeof Kt<"u"?Kt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=i()})(Qt,function(){var t,i,a=1000,s=60000,o=3600000,h=86400000,T=31536000000,Y=2628000000,C=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,H={years:T,months:Y,days:h,hours:o,minutes:s,seconds:a,milliseconds:1,weeks:604800000},et=function(U){return U instanceof rt},W=function(U,x,m){return new rt(U,m,x.$l)},V=function(U){return i.p(U)+"s"},D=function(U){return U<0},E=function(U){return D(U)?Math.ceil(U):Math.floor(U)},S=function(U){return Math.abs(U)},Z=function(U,x){return U?D(U)?{negative:!0,format:""+S(U)+x}:{negative:!1,format:""+U+x}:{negative:!1,format:""}},rt=function(){function U(m,z,Q){var q=this;if(this.$d={},this.$l=Q,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),z)return W(m*H[V(z)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach(function(b){q.$d[V(b)]=m[b]}),this.calMilliseconds(),this;if(typeof m=="string"){var g=m.match(C);if(g){var w=g.slice(2).map(function(b){return b!=null?Number(b):0});return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var x=U.prototype;return x.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce(function(z,Q){return z+(m.$d[Q]||0)*H[Q]},0)},x.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=E(m/T),m%=T,this.$d.months=E(m/Y),m%=Y,this.$d.days=E(m/h),m%=h,this.$d.hours=E(m/o),m%=o,this.$d.minutes=E(m/s),m%=s,this.$d.seconds=E(m/a),m%=a,this.$d.milliseconds=m},x.toISOString=function(){var m=Z(this.$d.years,"Y"),z=Z(this.$d.months,"M"),Q=+this.$d.days||0;this.$d.weeks&&(Q+=7*this.$d.weeks);var q=Z(Q,"D"),g=Z(this.$d.hours,"H"),w=Z(this.$d.minutes,"M"),b=this.$d.seconds||0;this.$d.milliseconds&&(b+=this.$d.milliseconds/1000,b=Math.round(1000*b)/1000);var _=Z(b,"S"),c=m.negative||z.negative||q.negative||g.negative||w.negative||_.negative,v=g.format||w.format||_.format?"T":"",k=(c?"-":"")+"P"+m.format+z.format+q.format+v+g.format+w.format+_.format;return k==="P"||k==="-P"?"P0D":k},x.toJSON=function(){return this.toISOString()},x.format=function(m){var z=m||"YYYY-MM-DDTHH:mm:ss",Q={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return z.replace(K,function(q,g){return g||String(Q[q])})},x.as=function(m){return this.$ms/H[V(m)]},x.get=function(m){var z=this.$ms,Q=V(m);return Q==="milliseconds"?z%=1000:z=Q==="weeks"?E(z/H[Q]):this.$d[Q],z||0},x.add=function(m,z,Q){var q;return q=z?m*H[V(z)]:et(m)?m.$ms:W(m,this).$ms,W(this.$ms+q*(Q?-1:1),this)},x.subtract=function(m,z){return this.add(m,z,!0)},x.locale=function(m){var z=this.clone();return z.$l=m,z},x.clone=function(){return W(this.$ms,this)},x.humanize=function(m){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},U}(),st=function(U,x,m){return U.add(x.years()*m,"y").add(x.months()*m,"M").add(x.days()*m,"d").add(x.hours()*m,"h").add(x.minutes()*m,"m").add(x.seconds()*m,"s").add(x.milliseconds()*m,"ms")};return function(U,x,m){t=m,i=m().$utils(),m.duration=function(q,g){var w=m.locale();return W(q,{$l:w},g)},m.isDuration=et;var z=x.prototype.add,Q=x.prototype.subtract;x.prototype.add=function(q,g){return et(q)?st(this,q,1):z.bind(this)(q,g)},x.prototype.subtract=function(q,g){return et(q)?st(this,q,-1):Q.bind(this)(q,g)}}})});function He(t){return t}var Lt=1,Nt=2,Ht=3,At=4,ke=0.000001;function Be(t){return"translate("+t+",0)"}function je(t){return"translate(0,"+t+")"}function Ge(t){return(i)=>+t(i)}function Xe(t,i){if(i=Math.max(0,t.bandwidth()-i*2)/2,t.round())i=Math.round(i);return(a)=>+t(a)+i}function Ue(){return!this.__axis}function ye(t,i){var a=[],s=null,o=null,h=6,T=6,Y=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,K=t===Lt||t===At?-1:1,H=t===At||t===Nt?"x":"y",et=t===Lt||t===Ht?Be:je;function W(V){var D=s==null?i.ticks?i.ticks.apply(i,a):i.domain():s,E=o==null?i.tickFormat?i.tickFormat.apply(i,a):He:o,S=Math.max(h,0)+Y,Z=i.range(),rt=+Z[0]+C,st=+Z[Z.length-1]+C,U=(i.bandwidth?Xe:Ge)(i.copy(),C),x=V.selection?V.selection():V,m=x.selectAll(".domain").data([null]),z=x.selectAll(".tick").data(D,i).order(),Q=z.exit(),q=z.enter().append("g").attr("class","tick"),g=z.select("line"),w=z.select("text");if(m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),z=z.merge(q),g=g.merge(q.append("line").attr("stroke","currentColor").attr(H+"2",K*h)),w=w.merge(q.append("text").attr("fill","currentColor").attr(H,K*S).attr("dy",t===Lt?"0em":t===Ht?"0.71em":"0.32em")),V!==x)m=m.transition(V),z=z.transition(V),g=g.transition(V),w=w.transition(V),Q=Q.transition(V).attr("opacity",ke).attr("transform",function(b){return isFinite(b=U(b))?et(b+C):this.getAttribute("transform")}),q.attr("opacity",ke).attr("transform",function(b){var _=this.parentNode.__axis;return et((_&&isFinite(_=_(b))?_:U(b))+C)});Q.remove(),m.attr("d",t===At||t===Nt?T?"M"+K*T+","+rt+"H"+C+"V"+st+"H"+K*T:"M"+C+","+rt+"V"+st:T?"M"+rt+","+K*T+"V"+C+"H"+st+"V"+K*T:"M"+rt+","+C+"H"+st),z.attr("opacity",1).attr("transform",function(b){return et(U(b)+C)}),g.attr(H+"2",K*h),w.attr(H,K*S).text(E),x.filter(Ue).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Nt?"start":t===At?"end":"middle"),x.each(function(){this.__axis=U})}return W.scale=function(V){return arguments.length?(i=V,W):i},W.ticks=function(){return a=Array.from(arguments),W},W.tickArguments=function(V){return arguments.length?(a=V==null?[]:Array.from(V),W):a.slice()},W.tickValues=function(V){return arguments.length?(s=V==null?null:Array.from(V),W):s&&s.slice()},W.tickFormat=function(V){return arguments.length?(o=V,W):o},W.tickSize=function(V){return arguments.length?(h=T=+V,W):h},W.tickSizeInner=function(V){return arguments.length?(h=+V,W):h},W.tickSizeOuter=function(V){return arguments.length?(T=+V,W):T},W.tickPadding=function(V){return arguments.length?(Y=+V,W):Y},W.offset=function(V){return arguments.length?(C=+V,W):C},W}function ge(t){return ye(Lt,t)}function pe(t){return ye(Ht,t)}var Se=Pe(pn(),1),ut=Pe(Zi(),1),Ce=Pe(ve(),1),Me=Pe(Te(),1),Ee=Pe(be(),1),Dt=Pe(Zi(),1),Ne=Pe(xe(),1);var te=function(){var t=e(function(_,c,v,k){for(v=v||{},k=_.length;k--;v[_[k]]=c);return v},"o"),i=[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],a=[1,26],s=[1,27],o=[1,28],h=[1,29],T=[1,30],Y=[1,31],C=[1,32],K=[1,33],H=[1,34],et=[1,9],W=[1,10],V=[1,11],D=[1,12],E=[1,13],S=[1,14],Z=[1,15],rt=[1,16],st=[1,19],U=[1,20],x=[1,21],m=[1,22],z=[1,23],Q=[1,25],q=[1,35],g={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(c,v,k,f,B,r,G){var d=r.length-1;switch(B){case 1:return r[d-1];case 2:this.$=[];break;case 3:r[d-1].push(r[d]),this.$=r[d-1];break;case 4:case 5:this.$=r[d];break;case 6:case 7:this.$=[];break;case 8:f.setWeekday("monday");break;case 9:f.setWeekday("tuesday");break;case 10:f.setWeekday("wednesday");break;case 11:f.setWeekday("thursday");break;case 12:f.setWeekday("friday");break;case 13:f.setWeekday("saturday");break;case 14:f.setWeekday("sunday");break;case 15:f.setWeekend("friday");break;case 16:f.setWeekend("saturday");break;case 17:f.setDateFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 18:f.enableInclusiveEndDates(),this.$=r[d].substr(18);break;case 19:f.TopAxis(),this.$=r[d].substr(8);break;case 20:f.setAxisFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 21:f.setTickInterval(r[d].substr(13)),this.$=r[d].substr(13);break;case 22:f.setExcludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 23:f.setIncludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 24:f.setTodayMarker(r[d].substr(12)),this.$=r[d].substr(12);break;case 27:f.setDiagramTitle(r[d].substr(6)),this.$=r[d].substr(6);break;case 28:this.$=r[d].trim(),f.setAccTitle(this.$);break;case 29:case 30:this.$=r[d].trim(),f.setAccDescription(this.$);break;case 31:f.addSection(r[d].substr(8)),this.$=r[d].substr(8);break;case 33:f.addTask(r[d-1],r[d]),this.$="task";break;case 34:this.$=r[d-1],f.setClickEvent(r[d-1],r[d],null);break;case 35:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],r[d]);break;case 36:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],null),f.setLink(r[d-2],r[d]);break;case 37:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-2],r[d-1]),f.setLink(r[d-3],r[d]);break;case 38:this.$=r[d-2],f.setClickEvent(r[d-2],r[d],null),f.setLink(r[d-2],r[d-1]);break;case 39:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-1],r[d]),f.setLink(r[d-3],r[d-2]);break;case 40:this.$=r[d-1],f.setLink(r[d-1],r[d]);break;case 41:case 47:this.$=r[d-1]+" "+r[d];break;case 42:case 43:case 45:this.$=r[d-2]+" "+r[d-1]+" "+r[d];break;case 44:case 46:this.$=r[d-3]+" "+r[d-2]+" "+r[d-1]+" "+r[d];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:s,14:o,15:h,16:T,17:Y,18:C,19:18,20:K,21:H,22:et,23:W,24:V,25:D,26:E,27:S,28:Z,29:rt,30:st,31:U,33:x,35:m,36:z,37:24,38:Q,40:q},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:36,11:17,12:a,13:s,14:o,15:h,16:T,17:Y,18:C,19:18,20:K,21:H,22:et,23:W,24:V,25:D,26:E,27:S,28:Z,29:rt,30:st,31:U,33:x,35:m,36:z,37:24,38:Q,40:q},t(i,[2,5]),t(i,[2,6]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),t(i,[2,27]),{32:[1,37]},{34:[1,38]},t(i,[2,30]),t(i,[2,31]),t(i,[2,32]),{39:[1,39]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),{41:[1,40],43:[1,41]},t(i,[2,4]),t(i,[2,28]),t(i,[2,29]),t(i,[2,33]),t(i,[2,34],{42:[1,42],43:[1,43]}),t(i,[2,40],{41:[1,44]}),t(i,[2,35],{43:[1,45]}),t(i,[2,36]),t(i,[2,38],{42:[1,46]}),t(i,[2,37]),t(i,[2,39])],defaultActions:{},parseError:e(function(c,v){if(v.recoverable)this.trace(c);else{var k=Error(c);throw k.hash=v,k}},"parseError"),parse:e(function(c){var v=this,k=[0],f=[],B=[null],r=[],G=this.table,d="",at=0,l=0,N=0,X=2,it=1,nt=r.slice.call(arguments,1),J=Object.create(this.lexer),tt={yy:{}};for(var mt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,mt))tt.yy[mt]=this.yy[mt];if(J.setInput(c,tt.yy),tt.yy.lexer=J,tt.yy.parser=this,typeof J.yylloc>"u")J.yylloc={};var kt=J.yylloc;r.push(kt);var Tt=J.options&&J.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(dt){k.length=k.length-2*dt,B.length=B.length-dt,r.length=r.length-dt}e(bt,"popStack");function xt(){var dt=f.pop()||J.lex()||it;if(typeof dt!=="number"){if(dt instanceof Array)f=dt,dt=f.pop();dt=v.symbols_[dt]||dt}return dt}e(xt,"lex");var ot,pt,ft,lt,Pi,zt,wt={},Yt,yt,me,$t;while(!0){if(ft=k[k.length-1],this.defaultActions[ft])lt=this.defaultActions[ft];else{if(ot===null||typeof ot>"u")ot=xt();lt=G[ft]&&G[ft][ot]}if(typeof lt>"u"||!lt.length||!lt[0]){var Rt="";$t=[];for(Yt in G[ft])if(this.terminals_[Yt]&&Yt>X)$t.push("'"+this.terminals_[Yt]+"'");if(J.showPosition)Rt="Parse error on line "+(at+1)+`:
|
|
2
2
|
`+J.showPosition()+`
|
|
3
3
|
Expecting `+$t.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else Rt="Parse error on line "+(at+1)+": Unexpected "+(ot==it?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(Rt,{text:J.match,token:this.terminals_[ot]||ot,line:J.yylineno,loc:kt,expected:$t})}if(lt[0]instanceof Array&<.length>1)throw Error("Parse Error: multiple actions possible at state: "+ft+", token: "+ot);switch(lt[0]){case 1:if(k.push(ot),B.push(J.yytext),r.push(J.yylloc),k.push(lt[1]),ot=null,!pt){if(l=J.yyleng,d=J.yytext,at=J.yylineno,kt=J.yylloc,N>0)N--}else ot=pt,pt=null;break;case 2:if(yt=this.productions_[lt[1]][1],wt.$=B[B.length-yt],wt._$={first_line:r[r.length-(yt||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(yt||1)].first_column,last_column:r[r.length-1].last_column},Tt)wt._$.range=[r[r.length-(yt||1)].range[0],r[r.length-1].range[1]];if(zt=this.performAction.apply(wt,[d,l,at,tt.yy,lt[1],B,r].concat(nt)),typeof zt<"u")return zt;if(yt)k=k.slice(0,-1*yt*2),B=B.slice(0,-1*yt),r=r.slice(0,-1*yt);k.push(this.productions_[lt[1]][0]),B.push(wt.$),r.push(wt._$),me=G[k[k.length-2]][k[k.length-1]],k.push(me);break;case 3:return!0}}return!0},"parse")},w=function(){var _={EOF:1,parseError:e(function(v,k){if(this.yy.parser)this.yy.parser.parseError(v,k);else throw Error(v)},"parseError"),setInput:e(function(c,v){if(this.yy=v||this.yy||{},this._input=c,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 c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var v=c.match(/(?:\r\n?|\n).*/g);if(v)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),c},"input"),unput:e(function(c){var v=c.length,k=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var f=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),k.length-1)this.yylineno-=k.length-1;var B=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:k?(k.length===f.length?this.yylloc.first_column:0)+f[f.length-k.length].length-k[0].length:this.yylloc.first_column-v},this.options.ranges)this.yylloc.range=[B[0],B[0]+this.yyleng-v];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(c){this.unput(this.match.slice(c))},"less"),pastInput:e(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var c=this.match;if(c.length<20)c+=this._input.substr(0,20-c.length);return(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var c=this.pastInput(),v=Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
5
5
|
`+v+"^"},"showPosition"),test_match:e(function(c,v){var k,f,B;if(this.options.backtrack_lexer){if(B={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)B.yylloc.range=this.yylloc.range.slice(0)}if(f=c[0].match(/(?:\r\n?|\n).*/g),f)this.yylineno+=f.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],k=this.performAction.call(this,this.yy,this,v,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(k)return k;else if(this._backtrack){for(var r in B)this[r]=B[r];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var c,v,k,f;if(!this._more)this.yytext="",this.match="";var B=this._currentRules();for(var r=0;r<B.length;r++)if(k=this._input.match(this.rules[B[r]]),k&&(!v||k[0].length>v[0].length)){if(v=k,f=r,this.options.backtrack_lexer)if(c=this.test_match(k,B[r]),c!==!1)return c;else if(this._backtrack){v=!1;continue}else return!1;else if(!this.options.flex)break}if(v){if(c=this.test_match(v,B[f]),c!==!1)return c;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 v=this.next();if(v)return v;else return this.lex()},"lex"),begin:e(function(v){this.conditionStack.push(v)},"begin"),popState:e(function(){var v=this.conditionStack.length-1;if(v>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(v){if(v=this.conditionStack.length-1-Math.abs(v||0),v>=0)return this.conditionStack[v];else return"INITIAL"},"topState"),pushState:e(function(v){this.begin(v)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(v,k,f,B){var r=B;switch(f){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 _}();g.lexer=w;function b(){this.yy={}}return e(b,"Parser"),b.prototype=g,g.Parser=b,new b}();te.parser=te;var qe=te;ut.default.extend(Ce.default);ut.default.extend(Me.default);ut.default.extend(Ee.default);var we={friday:5,saturday:6},ht="",re="",se=void 0,ae="",Ct=[],Mt=[],oe=new Map,ce=[],Wt=[],Et="",le="",Ie=["active","done","crit","milestone","vert"],ue=[],_t="",It=!1,de=!1,fe="sunday",Pt="saturday",ee=0,Ze=e(function(){ce=[],Wt=[],Et="",ue=[],Ft=0,ne=void 0,Ot=void 0,ct=[],ht="",re="",le="",se=void 0,ae="",Ct=[],Mt=[],It=!1,de=!1,ee=0,oe=new Map,_t="",A(),fe="sunday",Pt="saturday"},"clear"),Qe=e(function(t){_t=t},"setDiagramId"),Ke=e(function(t){re=t},"setAxisFormat"),Je=e(function(){return re},"getAxisFormat"),ti=e(function(t){se=t},"setTickInterval"),ei=e(function(){return se},"getTickInterval"),ii=e(function(t){ae=t},"setTodayMarker"),ni=e(function(){return ae},"getTodayMarker"),ri=e(function(t){ht=t},"setDateFormat"),si=e(function(){It=!0},"enableInclusiveEndDates"),ai=e(function(){return It},"endDatesAreInclusive"),oi=e(function(){de=!0},"enableTopAxis"),ci=e(function(){return de},"topAxisEnabled"),li=e(function(t){le=t},"setDisplayMode"),ui=e(function(){return le},"getDisplayMode"),di=e(function(){return ht},"getDateFormat"),Ye=e((t,i)=>{let a=i.toLowerCase().split(/[\s,]+/).filter((s)=>s!=="");return[...new Set([...t,...a])]},"mergeTokens"),fi=e(function(t){Ct=Ye(Ct,t)},"setIncludes"),hi=e(function(){return Ct},"getIncludes"),mi=e(function(t){Mt=Ye(Mt,t)},"setExcludes"),ki=e(function(){return Mt},"getExcludes"),yi=e(function(){return oe},"getLinks"),gi=e(function(t){Et=t,ce.push(t)},"addSection"),pi=e(function(){return ce},"getSections"),vi=e(function(){let t=_e(),i=10,a=0;while(!t&&a<i)t=_e(),a++;return Wt=ct,Wt},"getTasks"),$e=e(function(t,i,a,s){let o=t.format(i.trim()),h=t.format("YYYY-MM-DD");if(s.includes(o)||s.includes(h))return!1;if(a.includes("weekends")&&(t.isoWeekday()===we[Pt]||t.isoWeekday()===we[Pt]+1))return!0;if(a.includes(t.format("dddd").toLowerCase()))return!0;return a.includes(o)||a.includes(h)},"isInvalidDate"),Ti=e(function(t){fe=t},"setWeekday"),bi=e(function(){return fe},"getWeekday"),xi=e(function(t){Pt=t},"setWeekend"),Ae=e(function(t,i,a,s){if(!a.length||t.manualEndTime)return;let o;if(t.startTime instanceof Date)o=ut.default(t.startTime);else o=ut.default(t.startTime,i,!0);o=o.add(1,"d");let h;if(t.endTime instanceof Date)h=ut.default(t.endTime);else h=ut.default(t.endTime,i,!0);let[T,Y]=wi(o,h,i,a,s);t.endTime=T.toDate(),t.renderEndTime=Y},"checkTaskDates"),wi=e(function(t,i,a,s,o){let h=!1,T=null,Y=i.add(1e4,"d");while(t<=i){if(!h)T=i.toDate();if(h=$e(t,a,s,o),h){if(i=i.add(1,"d"),i>Y)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}t=t.add(1,"d")}return[i,T]},"fixTaskDates"),Le=e(function(t,i){n.warn(`Gantt: the "${t}" statement references unknown task id(s): ${i.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"),ie=e(function(t,i,a){if(a=a.trim(),e((Y)=>{let C=Y.trim();return C==="x"||C==="X"},"isTimestampFormat")(i)&&/^\d+$/.test(a))return new Date(Number(a));let h=/^after\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let Y=null,C=[],K=h.groups.ids.split(" ").filter((et)=>et!=="");for(let et of K){let W=vt(et);if(W===void 0){C.push(et);continue}if(!Y||W.endTime>Y.endTime)Y=W}if(C.length>0)Le("after",C);if(Y)return Y.endTime;let H=new Date;return H.setHours(0,0,0,0),H}let T=ut.default(a,i.trim(),!0);if(T.isValid())return T.toDate();else{n.debug("Invalid date:"+a),n.debug("With date format:"+i.trim());let Y=new Date(a);if(Y===void 0||isNaN(Y.getTime())||Y.getFullYear()<-1e4||Y.getFullYear()>1e4)throw Error("Invalid date:"+a);return Y}},"getStartDate"),Fe=e(function(t){let i=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(i!==null)return[Number.parseFloat(i[1]),i[2]];return[NaN,"ms"]},"parseDuration"),Oe=e(function(t,i,a,s=!1){a=a.trim();let h=/^until\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let H=null,et=[],W=h.groups.ids.split(" ").filter((D)=>D!=="");for(let D of W){let E=vt(D);if(E===void 0){et.push(D);continue}if(!H||E.startTime<H.startTime)H=E}if(et.length>0)Le("until",et);if(H)return H.startTime;let V=new Date;return V.setHours(0,0,0,0),V}let T=ut.default(a,i.trim(),!0);if(T.isValid()){if(s)T=T.add(1,"d");return T.toDate()}let Y=ut.default(t),[C,K]=Fe(a);if(Number.isNaN(C))n.warn(`Gantt: "${a}" is neither a valid date for the "${i.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 H=Y.add(C,K);if(H.isValid())Y=H}return Y.toDate()},"getEndDate"),Ft=0,St=e(function(t){if(t===void 0)return Ft=Ft+1,"task"+Ft;return t},"parseId"),_i=e(function(t,i){let a;if(i.substr(0,1)===":")a=i.substr(1,i.length);else a=i;let s=a.split(","),o={};he(s,o,Ie);for(let T=0;T<s.length;T++)s[T]=s[T].trim();let h="";switch(s.length){case 1:o.id=St(),o.startTime=t.endTime,h=s[0];break;case 2:o.id=St(),o.startTime=ie(void 0,ht,s[0]),h=s[1];break;case 3:o.id=St(s[0]),o.startTime=ie(void 0,ht,s[1]),h=s[2];break;default:}if(h)o.endTime=Oe(o.startTime,ht,h,It),o.manualEndTime=ut.default(h,"YYYY-MM-DD",!0).isValid(),Ae(o,ht,Mt,Ct);return o},"compileData"),Di=e(function(t,i){let a;if(i.substr(0,1)===":")a=i.substr(1,i.length);else a=i;let s=a.split(","),o={};he(s,o,Ie);for(let h=0;h<s.length;h++)s[h]=s[h].trim();switch(s.length){case 1:o.id=St(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:s[0]};break;case 2:o.id=St(),o.startTime={type:"getStartDate",startData:s[0]},o.endTime={data:s[1]};break;case 3:o.id=St(s[0]),o.startTime={type:"getStartDate",startData:s[1]},o.endTime={data:s[2]};break;default:}return o},"parseData"),ne,Ot,ct=[],Ve={},Si=e(function(t,i){let a={section:Et,type:Et,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:i},task:t,classes:[]},s=Di(Ot,i);if(a.raw.startTime=s.startTime,a.raw.endTime=s.endTime,a.id=s.id,a.prevTaskId=Ot,a.active=s.active,a.done=s.done,a.crit=s.crit,a.milestone=s.milestone,a.vert=s.vert,a.vert)a.order=-1;else a.order=ee,ee++;let o=ct.push(a);Ot=a.id,Ve[a.id]=o-1},"addTask"),vt=e(function(t){let i=Ve[t];return ct[i]},"findTaskById"),Ci=e(function(t,i){let a={section:Et,type:Et,description:t,task:t,classes:[]},s=_i(ne,i);a.startTime=s.startTime,a.endTime=s.endTime,a.id=s.id,a.active=s.active,a.done=s.done,a.crit=s.crit,a.milestone=s.milestone,a.vert=s.vert,ne=a,Wt.push(a)},"addTaskOrg"),_e=e(function(){let t=e(function(a){let s=ct[a],o="";switch(ct[a].raw.startTime.type){case"prevTaskEnd":{let h=vt(s.prevTaskId);s.startTime=h.endTime;break}case"getStartDate":if(o=ie(void 0,ht,ct[a].raw.startTime.startData),o)ct[a].startTime=o;break}if(ct[a].startTime){if(ct[a].endTime=Oe(ct[a].startTime,ht,ct[a].raw.endTime.data,It),ct[a].endTime)ct[a].processed=!0,ct[a].manualEndTime=ut.default(ct[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ae(ct[a],ht,Mt,Ct)}return ct[a].processed},"compileTask"),i=!0;for(let[a,s]of ct.entries())t(a),i=i&&s.processed;return i},"compileTasks"),Mi=e(function(t,i){let a=i;if(u().securityLevel!=="loose")a=Se.sanitizeUrl(i);t.split(",").forEach(function(s){if(vt(s)!==void 0)Re(s,()=>{window.open(a,"_self")}),oe.set(s,a)}),ze(t,"clickable")},"setLink"),ze=e(function(t,i){t.split(",").forEach(function(a){let s=vt(a);if(s!==void 0)s.classes.push(i)})},"setClass"),Ei=e(function(t,i,a){if(u().securityLevel!=="loose")return;if(i===void 0)return;let s=[];if(typeof a==="string"){s=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<s.length;h++){let T=s[h].trim();if(T.startsWith('"')&&T.endsWith('"'))T=T.substr(1,T.length-2);s[h]=T}}if(s.length===0)s.push(t);if(vt(t)!==void 0)Re(t,()=>{F.runFunc(i,...s)})},"setClickFun"),Re=e(function(t,i){ue.push(function(){let a=_t?`${_t}-${t}`:t,s=document.querySelector(`[id="${a}"]`);if(s!==null)s.addEventListener("click",function(){i()})},function(){let a=_t?`${_t}-${t}`:t,s=document.querySelector(`[id="${a}-text"]`);if(s!==null)s.addEventListener("click",function(){i()})})},"pushFun"),Ii=e(function(t,i,a){t.split(",").forEach(function(s){Ei(s,i,a)}),ze(t,"clickable")},"setClickEvent"),Yi=e(function(t){ue.forEach(function(i){i(t)})},"bindFunctions"),$i={getConfig:e(()=>u().gantt,"getConfig"),clear:Ze,setDateFormat:ri,getDateFormat:di,enableInclusiveEndDates:si,endDatesAreInclusive:ai,enableTopAxis:oi,topAxisEnabled:ci,setAxisFormat:Ke,getAxisFormat:Je,setTickInterval:ti,getTickInterval:ei,setTodayMarker:ii,getTodayMarker:ni,setAccTitle:L,getAccTitle:R,setDiagramTitle:P,getDiagramTitle:O,setDiagramId:Qe,setDisplayMode:li,getDisplayMode:ui,setAccDescription:I,getAccDescription:M,addSection:gi,getSections:pi,getTasks:vi,addTask:Si,findTaskById:vt,addTaskOrg:Ci,setIncludes:fi,getIncludes:hi,setExcludes:mi,getExcludes:ki,setClickEvent:Ii,setLink:Mi,getLinks:yi,bindFunctions:Yi,parseDuration:Fe,isInvalidDate:$e,setWeekday:Ti,getWeekday:bi,setWeekend:xi};function he(t,i,a){let s=!0;while(s)s=!1,a.forEach(function(o){let h="^\\s*"+o+"\\s*$",T=new RegExp(h);if(t[0].match(T))i[o]=!0,t.shift(1),s=!0})}e(he,"getTaskTags");Dt.default.extend(Ne.default);var Ai=e(function(){n.debug("Something is calling, setConf, remove the call")},"setConf"),De={monday:un,tuesday:is,wednesday:os,thursday:Er,friday:ss,saturday:ls,sunday:Br},Li=e((t,i)=>{let a=[...t].map(()=>-1/0),s=[...t].sort((h,T)=>h.startTime-T.startTime||h.order-T.order),o=0;for(let h of s)for(let T=0;T<a.length;T++)if(h.startTime>=a[T]){if(a[T]=h.endTime,h.order=T+i,T>o)o=T;break}return o},"getMaxIntersections"),gt,Jt=1e4,Fi=e(function(t,i,a,s){let o=u().gantt;s.db.setDiagramId(i);let h=u().securityLevel,T;if(h==="sandbox")T=p("#i"+i);let Y=h==="sandbox"?p(T.nodes()[0].contentDocument.body):p("body"),C=h==="sandbox"?T.nodes()[0].contentDocument:document,K=C.getElementById(i);if(gt=K.parentElement.offsetWidth,gt===void 0)gt=1200;if(o.useWidth!==void 0)gt=o.useWidth;let H=s.db.getTasks(),et=H.filter((g)=>!g.vert),W=[];for(let g of et)W.push(g.type);W=q(W);let V={},D=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let g={};for(let b of et)if(g[b.section]===void 0)g[b.section]=[b];else g[b.section].push(b);let w=0;for(let b of Object.keys(g)){let _=Li(g[b],w)+1;w+=_,D+=_*(o.barHeight+o.barGap),V[b]=_}}else{D+=et.length*(o.barHeight+o.barGap);for(let g of W)V[g]=et.filter((w)=>w.type===g).length}K.setAttribute("viewBox","0 0 "+gt+" "+D);let E=Y.select(`[id="${i}"]`),S=cl().domain([ol(H,function(g){return g.startTime}),il(H,function(g){return g.endTime})]).rangeRound([0,gt-o.leftPadding-o.rightPadding]);function Z(g,w){let b=g.startTime,_=w.startTime,c=0;if(b>_)c=1;else if(b<_)c=-1;return c}e(Z,"taskCompare"),H.sort(Z),rt(H,gt,D),j(E,D,gt,o.useMaxWidth),E.append("text").text(s.db.getDiagramTitle()).attr("x",gt/2).attr("y",o.titleTopMargin).attr("class","titleText");function rt(g,w,b){let _=o.barHeight,c=_+o.barGap,{topPadding:v,leftPadding:k}=o,f=Vt().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(ll);U(c,v,k,w,b,g,s.db.getExcludes(),s.db.getIncludes()),m(k,v,w,b),st(g,c,v,k,_,f,w,b),z(c,v,k,_,f),Q(k,v,w,b)}e(rt,"makeGantt");function st(g,w,b,_,c,v,k){g.sort((l,N)=>l.vert===N.vert?0:l.vert?1:-1);let f=g.filter((l)=>!l.vert),r=[...new Set(f.map((l)=>l.order))].map((l)=>f.find((N)=>N.order===l));E.append("g").selectAll("rect").data(r).enter().append("rect").attr("x",0).attr("y",function(l,N){return N=l.order,N*w+b-2}).attr("width",function(){return k-o.rightPadding/2}).attr("height",w).attr("class",function(l){for(let[N,X]of W.entries())if(l.type===X)return"section section"+N%o.numberSectionStyles;return"section section0"}).enter();let G=E.append("g").selectAll("rect").data(g).enter(),d=s.db.getLinks();if(G.append("rect").attr("id",function(l){return i+"-"+l.id}).attr("rx",3).attr("ry",3).attr("x",function(l){if(l.milestone)return S(l.startTime)+_+0.5*(S(l.endTime)-S(l.startTime))-0.5*c;return S(l.startTime)+_}).attr("y",function(l,N){if(N=l.order,l.vert)return o.gridLineStartPadding;return N*w+b}).attr("width",function(l){if(l.milestone)return c;if(l.vert)return 0.08*c;return S(l.renderEndTime||l.endTime)-S(l.startTime)}).attr("height",function(l){if(l.vert)return f.length*(o.barHeight+o.barGap)+o.barHeight*2;return c}).attr("transform-origin",function(l,N){return N=l.order,(S(l.startTime)+_+0.5*(S(l.endTime)-S(l.startTime))).toString()+"px "+(N*w+b+0.5*c).toString()+"px"}).attr("class",function(l){let X="";if(l.classes.length>0)X=l.classes.join(" ");let it=0;for(let[J,tt]of W.entries())if(l.type===tt)it=J%o.numberSectionStyles;let nt="";if(l.active)if(l.crit)nt+=" activeCrit";else nt=" active";else if(l.done)if(l.crit)nt=" doneCrit";else nt=" done";else if(l.crit)nt+=" crit";if(nt.length===0)nt=" task";if(l.milestone)nt=" milestone "+nt;if(l.vert)nt=" vert "+nt;return nt+=it,nt+=" "+X,"task"+nt}),G.append("text").attr("id",function(l){return i+"-"+l.id+"-text"}).text(function(l){return l.task}).attr("font-size",o.fontSize).attr("x",function(l){let N=S(l.startTime),X=S(l.renderEndTime||l.endTime);if(l.milestone)N+=0.5*(S(l.endTime)-S(l.startTime))-0.5*c,X=N+c;if(l.vert)return S(l.startTime)+_;let it=this.getBBox().width;if(it>X-N)if(X+it+1.5*o.leftPadding>k)return N+_-5;else return X+_+5;else return(X-N)/2+N+_}).attr("y",function(l,N){if(l.vert)return o.gridLineStartPadding+f.length*(o.barHeight+o.barGap)+60;return N=l.order,N*w+o.barHeight/2+(o.fontSize/2-2)+b}).attr("text-height",c).attr("class",function(l){let N=S(l.startTime),X=S(l.endTime);if(l.milestone)X=N+c;let it=this.getBBox().width,nt="";if(l.classes.length>0)nt=l.classes.join(" ");let J=0;for(let[mt,kt]of W.entries())if(l.type===kt)J=mt%o.numberSectionStyles;let tt="";if(l.active)if(l.crit)tt="activeCritText"+J;else tt="activeText"+J;if(l.done)if(l.crit)tt=tt+" doneCritText"+J;else tt=tt+" doneText"+J;else if(l.crit)tt=tt+" critText"+J;if(l.milestone)tt+=" milestoneText";if(l.vert)tt+=" vertText";if(it>X-N)if(X+it+1.5*o.leftPadding>k)return nt+" taskTextOutsideLeft taskTextOutside"+J+" "+tt;else return nt+" taskTextOutsideRight taskTextOutside"+J+" "+tt+" width-"+it;else return nt+" taskText taskText"+J+" "+tt+" width-"+it}),u().securityLevel==="sandbox"){let l;l=p("#i"+i);let N=l.nodes()[0].contentDocument;G.filter(function(X){return d.has(X.id)}).each(function(X){var it=N.querySelector("#"+CSS.escape(i+"-"+X.id)),nt=N.querySelector("#"+CSS.escape(i+"-"+X.id+"-text"));let J=it.parentNode;var tt=N.createElement("a");tt.setAttribute("xlink:href",d.get(X.id)),tt.setAttribute("target","_top"),J.appendChild(tt),tt.appendChild(it),tt.appendChild(nt)})}}e(st,"drawRects");function U(g,w,b,_,c,v,k,f){if(k.length===0&&f.length===0)return;let B,r;for(let{startTime:X,endTime:it}of v){if(B===void 0||X<B)B=X;if(r===void 0||it>r)r=it}if(!B||!r)return;if(Dt.default(r).diff(Dt.default(B),"year")>5){n.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 G=s.db.getDateFormat(),d=[],at=null,l=Dt.default(B);while(l.valueOf()<=r){if(s.db.isInvalidDate(l,G,k,f))if(!at)at={start:l,end:l};else at.end=l;else if(at)d.push(at),at=null;l=l.add(1,"d")}E.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",(X)=>i+"-exclude-"+X.start.format("YYYY-MM-DD")).attr("x",(X)=>S(X.start.startOf("day"))+b).attr("y",o.gridLineStartPadding).attr("width",(X)=>S(X.end.endOf("day"))-S(X.start.startOf("day"))).attr("height",c-w-o.gridLineStartPadding).attr("transform-origin",function(X,it){return(S(X.start)+b+0.5*(S(X.end)-S(X.start))).toString()+"px "+(it*g+0.5*c).toString()+"px"}).attr("class","exclude-range")}e(U,"drawExcludeDays");function x(g,w,b,_){if(b<=0||g>w)return 1/0;let c=w-g,v=Dt.default.duration({[_??"day"]:b}).asMilliseconds();if(v<=0)return 1/0;return Math.ceil(c/v)}e(x,"getEstimatedTickCount");function m(g,w,b,_){let c=s.db.getDateFormat(),v=s.db.getAxisFormat(),k;if(v)k=v;else if(c==="D")k="%d";else k=o.axisFormat??"%Y-%m-%d";let f=pe(S).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(k)),r=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||o.tickInterval);if(r!==null){let G=parseInt(r[1],10);if(isNaN(G)||G<=0)n.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{let d=r[2],at=s.db.getWeekday()||o.weekday,l=S.domain(),N=l[0],X=l[1],it=x(N,X,G,d);if(it>Jt)n.warn(`The tick interval "${G}${d}" would generate ${it} ticks, which exceeds the maximum allowed (${Jt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(d){case"millisecond":f.ticks(sn.every(G));break;case"second":f.ticks(Gt.every(G));break;case"minute":f.ticks(ln.every(G));break;case"hour":f.ticks(cn.every(G));break;case"day":f.ticks(nr.every(G));break;case"week":f.ticks(De[at].every(G));break;case"month":f.ticks(dn.every(G));break}}}if(E.append("g").attr("class","grid").attr("transform","translate("+g+", "+(_-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||o.topAxis){let G=ge(S).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(k));if(r!==null){let d=parseInt(r[1],10);if(isNaN(d)||d<=0)n.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{let at=r[2],l=s.db.getWeekday()||o.weekday,N=S.domain(),X=N[0],it=N[1];if(x(X,it,d,at)<=Jt)switch(at){case"millisecond":G.ticks(sn.every(d));break;case"second":G.ticks(Gt.every(d));break;case"minute":G.ticks(ln.every(d));break;case"hour":G.ticks(cn.every(d));break;case"day":G.ticks(nr.every(d));break;case"week":G.ticks(De[l].every(d));break;case"month":G.ticks(dn.every(d));break}}}E.append("g").attr("class","grid").attr("transform","translate("+g+", "+w+")").call(G).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(m,"makeGrid");function z(g,w){let b=0,_=Object.keys(V).map((c)=>[c,V[c]]);E.append("g").selectAll("text").data(_).enter().append(function(c){let v=c[0].split(y.lineBreakRegex),k=-(v.length-1)/2,f=C.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",k+"em");for(let[B,r]of v.entries()){let G=C.createElementNS("http://www.w3.org/2000/svg","tspan");if(G.setAttribute("alignment-baseline","central"),G.setAttribute("x","10"),B>0)G.setAttribute("dy","1em");G.textContent=r,f.appendChild(G)}return f}).attr("x",10).attr("y",function(c,v){if(v>0)for(let k=0;k<v;k++)return b+=_[v-1][1],c[1]*g/2+b*g+w;else return c[1]*g/2+w}).attr("font-size",o.sectionFontSize).attr("class",function(c){for(let[v,k]of W.entries())if(c[0]===k)return"sectionTitle sectionTitle"+v%o.numberSectionStyles;return"sectionTitle"})}e(z,"vertLabels");function Q(g,w,b,_){let c=s.db.getTodayMarker();if(c==="off")return;let v=E.append("g").attr("class","today"),k=new Date,f=v.append("line");if(f.attr("x1",S(k)+g).attr("x2",S(k)+g).attr("y1",o.titleTopMargin).attr("y2",_-o.titleTopMargin).attr("class","today"),c!=="")f.attr("style",c.replace(/,/g,";"))}e(Q,"drawToday");function q(g){let w={},b=[];for(let _=0,c=g.length;_<c;++_)if(!Object.prototype.hasOwnProperty.call(w,g[_]))w[g[_]]=!0,b.push(g[_]);return b}e(q,"checkUnique")},"draw"),Oi={setConf:Ai,draw:Fi},Wi=e((t)=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var v=this.next();if(v)return v;else return this.lex()},"lex"),begin:e(function(v){this.conditionStack.push(v)},"begin"),popState:e(function(){var v=this.conditionStack.length-1;if(v>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(v){if(v=this.conditionStack.length-1-Math.abs(v||0),v>=0)return this.conditionStack[v];else return"INITIAL"},"topState"),pushState:e(function(v){this.begin(v)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(v,k,f,B){var r=B;switch(f){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 _}();g.lexer=w;function b(){this.yy={}}return e(b,"Parser"),b.prototype=g,g.Parser=b,new b}();te.parser=te;var qe=te;ut.default.extend(Ce.default);ut.default.extend(Me.default);ut.default.extend(Ee.default);var we={friday:5,saturday:6},ht="",re="",se=void 0,ae="",Ct=[],Mt=[],oe=new Map,ce=[],Wt=[],Et="",le="",Ie=["active","done","crit","milestone","vert"],ue=[],_t="",It=!1,de=!1,fe="sunday",Pt="saturday",ee=0,Ze=e(function(){ce=[],Wt=[],Et="",ue=[],Ft=0,ne=void 0,Ot=void 0,ct=[],ht="",re="",le="",se=void 0,ae="",Ct=[],Mt=[],It=!1,de=!1,ee=0,oe=new Map,_t="",A(),fe="sunday",Pt="saturday"},"clear"),Qe=e(function(t){_t=t},"setDiagramId"),Ke=e(function(t){re=t},"setAxisFormat"),Je=e(function(){return re},"getAxisFormat"),ti=e(function(t){se=t},"setTickInterval"),ei=e(function(){return se},"getTickInterval"),ii=e(function(t){ae=t},"setTodayMarker"),ni=e(function(){return ae},"getTodayMarker"),ri=e(function(t){ht=t},"setDateFormat"),si=e(function(){It=!0},"enableInclusiveEndDates"),ai=e(function(){return It},"endDatesAreInclusive"),oi=e(function(){de=!0},"enableTopAxis"),ci=e(function(){return de},"topAxisEnabled"),li=e(function(t){le=t},"setDisplayMode"),ui=e(function(){return le},"getDisplayMode"),di=e(function(){return ht},"getDateFormat"),Ye=e((t,i)=>{let a=i.toLowerCase().split(/[\s,]+/).filter((s)=>s!=="");return[...new Set([...t,...a])]},"mergeTokens"),fi=e(function(t){Ct=Ye(Ct,t)},"setIncludes"),hi=e(function(){return Ct},"getIncludes"),mi=e(function(t){Mt=Ye(Mt,t)},"setExcludes"),ki=e(function(){return Mt},"getExcludes"),yi=e(function(){return oe},"getLinks"),gi=e(function(t){Et=t,ce.push(t)},"addSection"),pi=e(function(){return ce},"getSections"),vi=e(function(){let t=_e(),i=10,a=0;while(!t&&a<i)t=_e(),a++;return Wt=ct,Wt},"getTasks"),$e=e(function(t,i,a,s){let o=t.format(i.trim()),h=t.format("YYYY-MM-DD");if(s.includes(o)||s.includes(h))return!1;if(a.includes("weekends")&&(t.isoWeekday()===we[Pt]||t.isoWeekday()===we[Pt]+1))return!0;if(a.includes(t.format("dddd").toLowerCase()))return!0;return a.includes(o)||a.includes(h)},"isInvalidDate"),Ti=e(function(t){fe=t},"setWeekday"),bi=e(function(){return fe},"getWeekday"),xi=e(function(t){Pt=t},"setWeekend"),Ae=e(function(t,i,a,s){if(!a.length||t.manualEndTime)return;let o;if(t.startTime instanceof Date)o=ut.default(t.startTime);else o=ut.default(t.startTime,i,!0);o=o.add(1,"d");let h;if(t.endTime instanceof Date)h=ut.default(t.endTime);else h=ut.default(t.endTime,i,!0);let[T,Y]=wi(o,h,i,a,s);t.endTime=T.toDate(),t.renderEndTime=Y},"checkTaskDates"),wi=e(function(t,i,a,s,o){let h=!1,T=null,Y=i.add(1e4,"d");while(t<=i){if(!h)T=i.toDate();if(h=$e(t,a,s,o),h){if(i=i.add(1,"d"),i>Y)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}t=t.add(1,"d")}return[i,T]},"fixTaskDates"),Le=e(function(t,i){n.warn(`Gantt: the "${t}" statement references unknown task id(s): ${i.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"),ie=e(function(t,i,a){if(a=a.trim(),e((Y)=>{let C=Y.trim();return C==="x"||C==="X"},"isTimestampFormat")(i)&&/^\d+$/.test(a))return new Date(Number(a));let h=/^after\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let Y=null,C=[],K=h.groups.ids.split(" ").filter((et)=>et!=="");for(let et of K){let W=vt(et);if(W===void 0){C.push(et);continue}if(!Y||W.endTime>Y.endTime)Y=W}if(C.length>0)Le("after",C);if(Y)return Y.endTime;let H=new Date;return H.setHours(0,0,0,0),H}let T=ut.default(a,i.trim(),!0);if(T.isValid())return T.toDate();else{n.debug("Invalid date:"+a),n.debug("With date format:"+i.trim());let Y=new Date(a);if(Y===void 0||isNaN(Y.getTime())||Y.getFullYear()<-1e4||Y.getFullYear()>1e4)throw Error("Invalid date:"+a);return Y}},"getStartDate"),Fe=e(function(t){let i=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(i!==null)return[Number.parseFloat(i[1]),i[2]];return[NaN,"ms"]},"parseDuration"),Oe=e(function(t,i,a,s=!1){a=a.trim();let h=/^until\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let H=null,et=[],W=h.groups.ids.split(" ").filter((D)=>D!=="");for(let D of W){let E=vt(D);if(E===void 0){et.push(D);continue}if(!H||E.startTime<H.startTime)H=E}if(et.length>0)Le("until",et);if(H)return H.startTime;let V=new Date;return V.setHours(0,0,0,0),V}let T=ut.default(a,i.trim(),!0);if(T.isValid()){if(s)T=T.add(1,"d");return T.toDate()}let Y=ut.default(t),[C,K]=Fe(a);if(Number.isNaN(C))n.warn(`Gantt: "${a}" is neither a valid date for the "${i.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 H=Y.add(C,K);if(H.isValid())Y=H}return Y.toDate()},"getEndDate"),Ft=0,St=e(function(t){if(t===void 0)return Ft=Ft+1,"task"+Ft;return t},"parseId"),_i=e(function(t,i){let a;if(i.substr(0,1)===":")a=i.substr(1,i.length);else a=i;let s=a.split(","),o={};he(s,o,Ie);for(let T=0;T<s.length;T++)s[T]=s[T].trim();let h="";switch(s.length){case 1:o.id=St(),o.startTime=t.endTime,h=s[0];break;case 2:o.id=St(),o.startTime=ie(void 0,ht,s[0]),h=s[1];break;case 3:o.id=St(s[0]),o.startTime=ie(void 0,ht,s[1]),h=s[2];break;default:}if(h)o.endTime=Oe(o.startTime,ht,h,It),o.manualEndTime=ut.default(h,"YYYY-MM-DD",!0).isValid(),Ae(o,ht,Mt,Ct);return o},"compileData"),Di=e(function(t,i){let a;if(i.substr(0,1)===":")a=i.substr(1,i.length);else a=i;let s=a.split(","),o={};he(s,o,Ie);for(let h=0;h<s.length;h++)s[h]=s[h].trim();switch(s.length){case 1:o.id=St(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:s[0]};break;case 2:o.id=St(),o.startTime={type:"getStartDate",startData:s[0]},o.endTime={data:s[1]};break;case 3:o.id=St(s[0]),o.startTime={type:"getStartDate",startData:s[1]},o.endTime={data:s[2]};break;default:}return o},"parseData"),ne,Ot,ct=[],Ve={},Si=e(function(t,i){let a={section:Et,type:Et,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:i},task:t,classes:[]},s=Di(Ot,i);if(a.raw.startTime=s.startTime,a.raw.endTime=s.endTime,a.id=s.id,a.prevTaskId=Ot,a.active=s.active,a.done=s.done,a.crit=s.crit,a.milestone=s.milestone,a.vert=s.vert,a.vert)a.order=-1;else a.order=ee,ee++;let o=ct.push(a);Ot=a.id,Ve[a.id]=o-1},"addTask"),vt=e(function(t){let i=Ve[t];return ct[i]},"findTaskById"),Ci=e(function(t,i){let a={section:Et,type:Et,description:t,task:t,classes:[]},s=_i(ne,i);a.startTime=s.startTime,a.endTime=s.endTime,a.id=s.id,a.active=s.active,a.done=s.done,a.crit=s.crit,a.milestone=s.milestone,a.vert=s.vert,ne=a,Wt.push(a)},"addTaskOrg"),_e=e(function(){let t=e(function(a){let s=ct[a],o="";switch(ct[a].raw.startTime.type){case"prevTaskEnd":{let h=vt(s.prevTaskId);s.startTime=h.endTime;break}case"getStartDate":if(o=ie(void 0,ht,ct[a].raw.startTime.startData),o)ct[a].startTime=o;break}if(ct[a].startTime){if(ct[a].endTime=Oe(ct[a].startTime,ht,ct[a].raw.endTime.data,It),ct[a].endTime)ct[a].processed=!0,ct[a].manualEndTime=ut.default(ct[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ae(ct[a],ht,Mt,Ct)}return ct[a].processed},"compileTask"),i=!0;for(let[a,s]of ct.entries())t(a),i=i&&s.processed;return i},"compileTasks"),Mi=e(function(t,i){let a=i;if(u().securityLevel!=="loose")a=Se.sanitizeUrl(i);t.split(",").forEach(function(s){if(vt(s)!==void 0)Re(s,()=>{window.open(a,"_self")}),oe.set(s,a)}),ze(t,"clickable")},"setLink"),ze=e(function(t,i){t.split(",").forEach(function(a){let s=vt(a);if(s!==void 0)s.classes.push(i)})},"setClass"),Ei=e(function(t,i,a){if(u().securityLevel!=="loose")return;if(i===void 0)return;let s=[];if(typeof a==="string"){s=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<s.length;h++){let T=s[h].trim();if(T.startsWith('"')&&T.endsWith('"'))T=T.substr(1,T.length-2);s[h]=T}}if(s.length===0)s.push(t);if(vt(t)!==void 0)Re(t,()=>{F.runFunc(i,...s)})},"setClickFun"),Re=e(function(t,i){ue.push(function(){let a=_t?`${_t}-${t}`:t,s=document.querySelector(`[id="${a}"]`);if(s!==null)s.addEventListener("click",function(){i()})},function(){let a=_t?`${_t}-${t}`:t,s=document.querySelector(`[id="${a}-text"]`);if(s!==null)s.addEventListener("click",function(){i()})})},"pushFun"),Ii=e(function(t,i,a){t.split(",").forEach(function(s){Ei(s,i,a)}),ze(t,"clickable")},"setClickEvent"),Yi=e(function(t){ue.forEach(function(i){i(t)})},"bindFunctions"),$i={getConfig:e(()=>u().gantt,"getConfig"),clear:Ze,setDateFormat:ri,getDateFormat:di,enableInclusiveEndDates:si,endDatesAreInclusive:ai,enableTopAxis:oi,topAxisEnabled:ci,setAxisFormat:Ke,getAxisFormat:Je,setTickInterval:ti,getTickInterval:ei,setTodayMarker:ii,getTodayMarker:ni,setAccTitle:L,getAccTitle:R,setDiagramTitle:P,getDiagramTitle:O,setDiagramId:Qe,setDisplayMode:li,getDisplayMode:ui,setAccDescription:I,getAccDescription:M,addSection:gi,getSections:pi,getTasks:vi,addTask:Si,findTaskById:vt,addTaskOrg:Ci,setIncludes:fi,getIncludes:hi,setExcludes:mi,getExcludes:ki,setClickEvent:Ii,setLink:Mi,getLinks:yi,bindFunctions:Yi,parseDuration:Fe,isInvalidDate:$e,setWeekday:Ti,getWeekday:bi,setWeekend:xi};function he(t,i,a){let s=!0;while(s)s=!1,a.forEach(function(o){let h="^\\s*"+o+"\\s*$",T=new RegExp(h);if(t[0].match(T))i[o]=!0,t.shift(1),s=!0})}e(he,"getTaskTags");Dt.default.extend(Ne.default);var Ai=e(function(){n.debug("Something is calling, setConf, remove the call")},"setConf"),De={monday:cn,tuesday:is,wednesday:os,thursday:Er,friday:ss,saturday:ls,sunday:Br},Li=e((t,i)=>{let a=[...t].map(()=>-1/0),s=[...t].sort((h,T)=>h.startTime-T.startTime||h.order-T.order),o=0;for(let h of s)for(let T=0;T<a.length;T++)if(h.startTime>=a[T]){if(a[T]=h.endTime,h.order=T+i,T>o)o=T;break}return o},"getMaxIntersections"),gt,Jt=1e4,Fi=e(function(t,i,a,s){let o=u().gantt;s.db.setDiagramId(i);let h=u().securityLevel,T;if(h==="sandbox")T=p("#i"+i);let Y=h==="sandbox"?p(T.nodes()[0].contentDocument.body):p("body"),C=h==="sandbox"?T.nodes()[0].contentDocument:document,K=C.getElementById(i);if(gt=K.parentElement.offsetWidth,gt===void 0)gt=1200;if(o.useWidth!==void 0)gt=o.useWidth;let H=s.db.getTasks(),et=H.filter((g)=>!g.vert),W=[];for(let g of et)W.push(g.type);W=q(W);let V={},D=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let g={};for(let b of et)if(g[b.section]===void 0)g[b.section]=[b];else g[b.section].push(b);let w=0;for(let b of Object.keys(g)){let _=Li(g[b],w)+1;w+=_,D+=_*(o.barHeight+o.barGap),V[b]=_}}else{D+=et.length*(o.barHeight+o.barGap);for(let g of W)V[g]=et.filter((w)=>w.type===g).length}K.setAttribute("viewBox","0 0 "+gt+" "+D);let E=Y.select(`[id="${i}"]`),S=cl().domain([ol(H,function(g){return g.startTime}),il(H,function(g){return g.endTime})]).rangeRound([0,gt-o.leftPadding-o.rightPadding]);function Z(g,w){let b=g.startTime,_=w.startTime,c=0;if(b>_)c=1;else if(b<_)c=-1;return c}e(Z,"taskCompare"),H.sort(Z),rt(H,gt,D),j(E,D,gt,o.useMaxWidth),E.append("text").text(s.db.getDiagramTitle()).attr("x",gt/2).attr("y",o.titleTopMargin).attr("class","titleText");function rt(g,w,b){let _=o.barHeight,c=_+o.barGap,{topPadding:v,leftPadding:k}=o,f=Vt().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(ll);U(c,v,k,w,b,g,s.db.getExcludes(),s.db.getIncludes()),m(k,v,w,b),st(g,c,v,k,_,f,w,b),z(c,v,k,_,f),Q(k,v,w,b)}e(rt,"makeGantt");function st(g,w,b,_,c,v,k){g.sort((l,N)=>l.vert===N.vert?0:l.vert?1:-1);let f=g.filter((l)=>!l.vert),r=[...new Set(f.map((l)=>l.order))].map((l)=>f.find((N)=>N.order===l));E.append("g").selectAll("rect").data(r).enter().append("rect").attr("x",0).attr("y",function(l,N){return N=l.order,N*w+b-2}).attr("width",function(){return k-o.rightPadding/2}).attr("height",w).attr("class",function(l){for(let[N,X]of W.entries())if(l.type===X)return"section section"+N%o.numberSectionStyles;return"section section0"}).enter();let G=E.append("g").selectAll("rect").data(g).enter(),d=s.db.getLinks();if(G.append("rect").attr("id",function(l){return i+"-"+l.id}).attr("rx",3).attr("ry",3).attr("x",function(l){if(l.milestone)return S(l.startTime)+_+0.5*(S(l.endTime)-S(l.startTime))-0.5*c;return S(l.startTime)+_}).attr("y",function(l,N){if(N=l.order,l.vert)return o.gridLineStartPadding;return N*w+b}).attr("width",function(l){if(l.milestone)return c;if(l.vert)return 0.08*c;return S(l.renderEndTime||l.endTime)-S(l.startTime)}).attr("height",function(l){if(l.vert)return f.length*(o.barHeight+o.barGap)+o.barHeight*2;return c}).attr("transform-origin",function(l,N){return N=l.order,(S(l.startTime)+_+0.5*(S(l.endTime)-S(l.startTime))).toString()+"px "+(N*w+b+0.5*c).toString()+"px"}).attr("class",function(l){let X="";if(l.classes.length>0)X=l.classes.join(" ");let it=0;for(let[J,tt]of W.entries())if(l.type===tt)it=J%o.numberSectionStyles;let nt="";if(l.active)if(l.crit)nt+=" activeCrit";else nt=" active";else if(l.done)if(l.crit)nt=" doneCrit";else nt=" done";else if(l.crit)nt+=" crit";if(nt.length===0)nt=" task";if(l.milestone)nt=" milestone "+nt;if(l.vert)nt=" vert "+nt;return nt+=it,nt+=" "+X,"task"+nt}),G.append("text").attr("id",function(l){return i+"-"+l.id+"-text"}).text(function(l){return l.task}).attr("font-size",o.fontSize).attr("x",function(l){let N=S(l.startTime),X=S(l.renderEndTime||l.endTime);if(l.milestone)N+=0.5*(S(l.endTime)-S(l.startTime))-0.5*c,X=N+c;if(l.vert)return S(l.startTime)+_;let it=this.getBBox().width;if(it>X-N)if(X+it+1.5*o.leftPadding>k)return N+_-5;else return X+_+5;else return(X-N)/2+N+_}).attr("y",function(l,N){if(l.vert)return o.gridLineStartPadding+f.length*(o.barHeight+o.barGap)+60;return N=l.order,N*w+o.barHeight/2+(o.fontSize/2-2)+b}).attr("text-height",c).attr("class",function(l){let N=S(l.startTime),X=S(l.endTime);if(l.milestone)X=N+c;let it=this.getBBox().width,nt="";if(l.classes.length>0)nt=l.classes.join(" ");let J=0;for(let[mt,kt]of W.entries())if(l.type===kt)J=mt%o.numberSectionStyles;let tt="";if(l.active)if(l.crit)tt="activeCritText"+J;else tt="activeText"+J;if(l.done)if(l.crit)tt=tt+" doneCritText"+J;else tt=tt+" doneText"+J;else if(l.crit)tt=tt+" critText"+J;if(l.milestone)tt+=" milestoneText";if(l.vert)tt+=" vertText";if(it>X-N)if(X+it+1.5*o.leftPadding>k)return nt+" taskTextOutsideLeft taskTextOutside"+J+" "+tt;else return nt+" taskTextOutsideRight taskTextOutside"+J+" "+tt+" width-"+it;else return nt+" taskText taskText"+J+" "+tt+" width-"+it}),u().securityLevel==="sandbox"){let l;l=p("#i"+i);let N=l.nodes()[0].contentDocument;G.filter(function(X){return d.has(X.id)}).each(function(X){var it=N.querySelector("#"+CSS.escape(i+"-"+X.id)),nt=N.querySelector("#"+CSS.escape(i+"-"+X.id+"-text"));let J=it.parentNode;var tt=N.createElement("a");tt.setAttribute("xlink:href",d.get(X.id)),tt.setAttribute("target","_top"),J.appendChild(tt),tt.appendChild(it),tt.appendChild(nt)})}}e(st,"drawRects");function U(g,w,b,_,c,v,k,f){if(k.length===0&&f.length===0)return;let B,r;for(let{startTime:X,endTime:it}of v){if(B===void 0||X<B)B=X;if(r===void 0||it>r)r=it}if(!B||!r)return;if(Dt.default(r).diff(Dt.default(B),"year")>5){n.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 G=s.db.getDateFormat(),d=[],at=null,l=Dt.default(B);while(l.valueOf()<=r){if(s.db.isInvalidDate(l,G,k,f))if(!at)at={start:l,end:l};else at.end=l;else if(at)d.push(at),at=null;l=l.add(1,"d")}E.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",(X)=>i+"-exclude-"+X.start.format("YYYY-MM-DD")).attr("x",(X)=>S(X.start.startOf("day"))+b).attr("y",o.gridLineStartPadding).attr("width",(X)=>S(X.end.endOf("day"))-S(X.start.startOf("day"))).attr("height",c-w-o.gridLineStartPadding).attr("transform-origin",function(X,it){return(S(X.start)+b+0.5*(S(X.end)-S(X.start))).toString()+"px "+(it*g+0.5*c).toString()+"px"}).attr("class","exclude-range")}e(U,"drawExcludeDays");function x(g,w,b,_){if(b<=0||g>w)return 1/0;let c=w-g,v=Dt.default.duration({[_??"day"]:b}).asMilliseconds();if(v<=0)return 1/0;return Math.ceil(c/v)}e(x,"getEstimatedTickCount");function m(g,w,b,_){let c=s.db.getDateFormat(),v=s.db.getAxisFormat(),k;if(v)k=v;else if(c==="D")k="%d";else k=o.axisFormat??"%Y-%m-%d";let f=pe(S).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(k)),r=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||o.tickInterval);if(r!==null){let G=parseInt(r[1],10);if(isNaN(G)||G<=0)n.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{let d=r[2],at=s.db.getWeekday()||o.weekday,l=S.domain(),N=l[0],X=l[1],it=x(N,X,G,d);if(it>Jt)n.warn(`The tick interval "${G}${d}" would generate ${it} ticks, which exceeds the maximum allowed (${Jt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(d){case"millisecond":f.ticks(on.every(G));break;case"second":f.ticks(Gt.every(G));break;case"minute":f.ticks(sn.every(G));break;case"hour":f.ticks(ln.every(G));break;case"day":f.ticks(nr.every(G));break;case"week":f.ticks(De[at].every(G));break;case"month":f.ticks(un.every(G));break}}}if(E.append("g").attr("class","grid").attr("transform","translate("+g+", "+(_-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||o.topAxis){let G=ge(S).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(k));if(r!==null){let d=parseInt(r[1],10);if(isNaN(d)||d<=0)n.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{let at=r[2],l=s.db.getWeekday()||o.weekday,N=S.domain(),X=N[0],it=N[1];if(x(X,it,d,at)<=Jt)switch(at){case"millisecond":G.ticks(on.every(d));break;case"second":G.ticks(Gt.every(d));break;case"minute":G.ticks(sn.every(d));break;case"hour":G.ticks(ln.every(d));break;case"day":G.ticks(nr.every(d));break;case"week":G.ticks(De[l].every(d));break;case"month":G.ticks(un.every(d));break}}}E.append("g").attr("class","grid").attr("transform","translate("+g+", "+w+")").call(G).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(m,"makeGrid");function z(g,w){let b=0,_=Object.keys(V).map((c)=>[c,V[c]]);E.append("g").selectAll("text").data(_).enter().append(function(c){let v=c[0].split(y.lineBreakRegex),k=-(v.length-1)/2,f=C.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",k+"em");for(let[B,r]of v.entries()){let G=C.createElementNS("http://www.w3.org/2000/svg","tspan");if(G.setAttribute("alignment-baseline","central"),G.setAttribute("x","10"),B>0)G.setAttribute("dy","1em");G.textContent=r,f.appendChild(G)}return f}).attr("x",10).attr("y",function(c,v){if(v>0)for(let k=0;k<v;k++)return b+=_[v-1][1],c[1]*g/2+b*g+w;else return c[1]*g/2+w}).attr("font-size",o.sectionFontSize).attr("class",function(c){for(let[v,k]of W.entries())if(c[0]===k)return"sectionTitle sectionTitle"+v%o.numberSectionStyles;return"sectionTitle"})}e(z,"vertLabels");function Q(g,w,b,_){let c=s.db.getTodayMarker();if(c==="off")return;let v=E.append("g").attr("class","today"),k=new Date,f=v.append("line");if(f.attr("x1",S(k)+g).attr("x2",S(k)+g).attr("y1",o.titleTopMargin).attr("y2",_-o.titleTopMargin).attr("class","today"),c!=="")f.attr("style",c.replace(/,/g,";"))}e(Q,"drawToday");function q(g){let w={},b=[];for(let _=0,c=g.length;_<c;++_)if(!Object.prototype.hasOwnProperty.call(w,g[_]))w[g[_]]=!0,b.push(g[_]);return b}e(q,"checkUnique")},"draw"),Oi={setConf:Ai,draw:Fi},Wi=e((t)=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${t.fontFamily};
|
|
9
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Zo}from"./index.3y8baz7q.js";export{Zo as createGitGraphServices};
|
package/dist/chunks/{gitGraphDiagram-VXDFKS5L.thyp7vsd.js → gitGraphDiagram-VXDFKS5L.x4pypqh9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ee}from"./index.0g1t1pjx.js";import{Pr}from"./index.a3njhfdd.js";import{e,n,B,k,y,A,L,R,I,M,P,O,u,ra,p,xs,Y,F}from"./index.zkx4ryzt.js";import{oe}from"./index.6pzexww5.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=B.gitGraph,Z=e(()=>Y({...Ce,...k().gitGraph}),"getConfig"),l=new Pr(()=>{let t=Z(),{mainBranchName:r,mainBranchOrder:a}=t;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return xs({length:7})}e(ne,"getID");function pe(t,r){let a=Object.create(null);return t.reduce((c,i)=>{let h=r(i);if(!a[h])a[h]=!0,c.push(i);return c},[])}e(pe,"uniqBy");var ve=e(function(t){l.records.direction=t},"setDirection"),Ee=e(function(t){n.debug("options str",t),t=t?.trim(),t=t||"{}";try{l.records.options=JSON.parse(t)}catch(r){n.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=e(function(){return l.records.options},"getOptions"),Le=e(function(t){let{msg:r,id:a,type:c,tags:i}=t;n.info("commit",r,a,c,i),n.debug("Entering commit:",r,a,c,i);let h=Z();a=y.sanitizeText(a,h),r=y.sanitizeText(r,h),i=i?.map((o)=>y.sanitizeText(o,h));let s={id:a?a:l.records.seq+"-"+ne(),message:r,seq:l.records.seq++,type:c??v.NORMAL,tags:i??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};if(l.records.head=s,n.info("main branch",h.mainBranchName),l.records.commits.has(s.id))n.warn(`Commit ID ${s.id} already exists`);l.records.commits.set(s.id,s),l.records.branches.set(l.records.currBranch,s.id),n.debug("in pushCommit "+s.id)},"commit"),Me=e(function(t){let{name:r,order:a}=t;if(r=y.sanitizeText(r,Z()),l.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:a}),ye(r),n.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:r,id:a,type:c,tags:i}=t,h=Z();if(r=y.sanitizeText(r,h),a)a=y.sanitizeText(a,h);let s=l.records.branches.get(l.records.currBranch),o=l.records.branches.get(r),m=s?l.records.commits.get(s):void 0,f=o?l.records.commits.get(o):void 0;if(m&&f&&m.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(m===void 0||!m){let d=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!l.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(f===void 0||!f){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(m===f){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&l.records.commits.has(a)){let d=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${a} ${c} ${i?.join(" ")}`,token:`merge ${r} ${a} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${c} ${i?.join(" ")}`]},d}let x=o?o:"",g={id:a||`${l.records.seq}-${ne()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,x],branch:l.records.currBranch,type:v.MERGE,customType:c,customId:a?!0:!1,tags:i??[]};l.records.head=g,l.records.commits.set(g.id,g),l.records.branches.set(l.records.currBranch,g.id),n.debug(l.records.branches),n.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:r,targetId:a,tags:c,parent:i}=t;n.debug("Entering cherryPick:",r,a,c);let h=Z();if(r=y.sanitizeText(r,h),a=y.sanitizeText(a,h),c=c?.map((m)=>y.sanitizeText(m,h)),i=y.sanitizeText(i,h),!r||!l.records.commits.has(r)){let m=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},m}let s=l.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===v.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!l.records.commits.has(a)){if(o===l.records.currBranch){let g=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let m=l.records.branches.get(l.records.currBranch);if(m===void 0||!m){let g=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let f=l.records.commits.get(m);if(f===void 0||!f){let g=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let x={id:l.records.seq+"-"+ne(),message:`cherry-picked ${s?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,s.id],branch:l.records.currBranch,type:v.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${s.id}${s.type===v.MERGE?`|parent:${i}`:""}`]};l.records.head=x,l.records.commits.set(x.id,x),l.records.branches.set(l.records.currBranch,x.id),n.debug(l.records.branches),n.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,Z()),!l.records.branches.has(t)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}else{l.records.currBranch=t;let r=l.records.branches.get(l.records.currBranch);if(r===void 0||!r)l.records.head=null;else l.records.head=l.records.commits.get(r)??null}},"checkout");function he(t,r,a){let c=t.indexOf(r);if(c===-1)t.push(a);else t.splice(c,1,a)}e(he,"upsert");function me(t){let r=t.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},t[0]),a="";t.forEach(function(i){if(i===r)a+="\t*";else a+="\t|"});let c=[a,r.id,r.seq];for(let i in l.records.branches)if(l.records.branches.get(i)===r.id)c.push(i);if(n.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=l.records.commits.get(r.parents[0]);if(he(t,r,i),r.parents[1])t.push(l.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=l.records.commits.get(r.parents[0]);he(t,r,i)}t=pe(t,(i)=>i.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){n.debug(l.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){l.reset(),A()},"clear"),_e=e(function(){return[...l.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=e(function(){return l.records.branches},"getBranches"),De=e(function(){return l.records.commits},"getCommits"),xe=e(function(){let t=[...l.records.commits.values()];return t.forEach(function(r){n.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),We=e(function(){return l.records.currBranch},"getCurrentBranch"),qe=e(function(){return l.records.direction},"getDirection"),Ae=e(function(){return l.records.head},"getHead"),ue={commitType:v,getConfig:Z,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:L,getAccTitle:R,getAccDescription:M,setAccDescription:I,setDiagramTitle:P,getDiagramTitle:O},He=e((t,r)=>{if(ee(t,r),t.dir)r.setDirection(t.dir);for(let a of t.statements)Se(a,r)},"populate"),Se=e((t,r)=>{let c={Commit:e((i)=>r.commit(Ne(i)),"Commit"),Branch:e((i)=>r.branch(Fe(i)),"Branch"),Merge:e((i)=>r.merge(ze(i)),"Merge"),Checkout:e((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:e((i)=>r.cherryPick(je(i)),"CherryPicking")}[t.$type];if(c)c(t);else n.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?v[t.type]:v.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?v[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let r=await oe("gitGraph",t);n.debug(r),He(r,ue)},"parse")},j=10,K=40,H=4,N=2,U=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),V=e((t,r,a=!1)=>{if(a&&t>0)return(t-1)%(r-1)+1;return t%r},"calcColorIndex"),D=new Map,W=new Map,ae=30,Q=new Map,se=[],z=0,w="LR",Ve=e(()=>{D.clear(),W.clear(),Q.clear(),z=0,se=[],w="LR"},"clear"),be=e((t)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=e((t)=>{let r,a,c;if(w==="BT")a=e((i,h)=>i<=h,"comparisonFunc"),c=1/0;else a=e((i,h)=>i>=h,"comparisonFunc"),c=0;return t.forEach((i)=>{let h=w==="TB"||w=="BT"?W.get(i)?.y:W.get(i)?.x;if(h!==void 0&&a(h,c))r=i,c=h}),r},"findClosestParent"),Ze=e((t)=>{let r="",a=1/0;return t.forEach((c)=>{let i=W.get(c).y;if(i<=a)r=c,a=i}),r||void 0},"findClosestParentBT"),Xe=e((t,r,a)=>{let c=a,i=a,h=[];t.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)c=Qe(o),i=Math.max(c,i);else h.push(o);et(o,c)}),c=i,h.forEach((s)=>{tt(s,c,a)}),t.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let m=Ze(o.parents);if(c=W.get(m).y-K,c<=i)i=c;let f=D.get(o.branch).pos,x=c-j;W.set(o.id,{x:f,y:x})}})},"setParallelBTPos"),Je=e((t)=>{let r=we(t.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${t.id}`);let a=W.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Qe=e((t)=>Je(t)+K,"calculateCommitPosition"),et=e((t,r)=>{let a=D.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let c=a.pos,i=r+j;return W.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,a)=>{let c=D.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+a,h=c.pos;W.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,a,c,i,h)=>{let{theme:s}=u(),o=ce.has(s??""),m=ge.has(s??""),f=Ue.has(s??"");if(h===v.HIGHLIGHT)t.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${V(i,U,m)} ${c}-outer`),t.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${V(i,U,m)} ${c}-inner`);else if(h===v.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let x=t.append("circle");if(x.attr("cx",a.x),x.attr("cy",a.y),x.attr("r",o?7:10),x.attr("class",`commit ${r.id} commit${V(i,U,m)}`),h===v.MERGE){let g=t.append("circle");g.attr("cx",a.x),g.attr("cy",a.y),g.attr("r",o?5:6),g.attr("class",`commit ${c} ${r.id} commit${V(i,U,m)}`)}if(h===v.REVERSE){let g=t.append("path"),d=o?4:5;g.attr("d",`M ${a.x-d},${a.y-d}L${a.x+d},${a.y+d}M${a.x-d},${a.y+d}L${a.x+d},${a.y-d}`).attr("class",`commit ${c} ${r.id} commit${V(i,U,m)}`)}}},"drawCommitBullet"),at=e((t,r,a,c,i)=>{if(r.type!==v.CHERRY_PICK&&(r.customId&&r.type===v.MERGE||r.type!==v.MERGE)&&i.showCommitLabel){let h=t.append("g"),s=h.insert("rect").attr("class","commit-label-bkg"),o=h.append("text").attr("x",c).attr("y",a.y+25).attr("class","commit-label").text(r.id),m=o.node()?.getBBox();if(m){if(s.attr("x",a.posWithOffset-m.width/2-N).attr("y",a.y+13.5).attr("width",m.width+2*N).attr("height",m.height+2*N),w==="TB"||w==="BT")s.attr("x",a.x-(m.width+4*H+5)).attr("y",a.y-12),o.attr("x",a.x-(m.width+4*H)).attr("y",a.y+m.height-12);else o.attr("x",a.posWithOffset-m.width/2);if(i.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let f=-7.5-(m.width+10)/25*9.5,x=10+m.width/25*8.5;h.attr("transform","translate("+f+", "+x+") rotate(-45, "+c+", "+a.y+")")}}}},"drawCommitLabel"),ot=e((t,r,a,c)=>{if(r.tags.length>0){let i=0,h=0,s=0,o=[];for(let m of r.tags.reverse()){let f=t.insert("polygon"),x=t.append("circle"),g=t.append("text").attr("y",a.y-16-i).attr("class","tag-label").text(m),d=g.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),s=Math.max(s,d.height),g.attr("x",a.posWithOffset-d.width/2),o.push({tag:g,hole:x,rect:f,yOffset:i}),i+=20}for(let{tag:m,hole:f,rect:x,yOffset:g}of o){let d=s/2,C=a.y-19.2-g;if(x.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{ee}from"./index.a7m06kba.js";import{Pr}from"./index.znt11tbm.js";import{e,n,B,k,y,A,L,R,I,M,P,O,u,ra,p,xs,K,F}from"./index.5sj251kq.js";import{oe}from"./index.3y8baz7q.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=B.gitGraph,Z=e(()=>K({...Ce,...k().gitGraph}),"getConfig"),l=new Pr(()=>{let t=Z(),{mainBranchName:r,mainBranchOrder:a}=t;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return xs({length:7})}e(ne,"getID");function pe(t,r){let a=Object.create(null);return t.reduce((c,i)=>{let h=r(i);if(!a[h])a[h]=!0,c.push(i);return c},[])}e(pe,"uniqBy");var ve=e(function(t){l.records.direction=t},"setDirection"),Ee=e(function(t){n.debug("options str",t),t=t?.trim(),t=t||"{}";try{l.records.options=JSON.parse(t)}catch(r){n.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=e(function(){return l.records.options},"getOptions"),Le=e(function(t){let{msg:r,id:a,type:c,tags:i}=t;n.info("commit",r,a,c,i),n.debug("Entering commit:",r,a,c,i);let h=Z();a=y.sanitizeText(a,h),r=y.sanitizeText(r,h),i=i?.map((o)=>y.sanitizeText(o,h));let s={id:a?a:l.records.seq+"-"+ne(),message:r,seq:l.records.seq++,type:c??v.NORMAL,tags:i??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};if(l.records.head=s,n.info("main branch",h.mainBranchName),l.records.commits.has(s.id))n.warn(`Commit ID ${s.id} already exists`);l.records.commits.set(s.id,s),l.records.branches.set(l.records.currBranch,s.id),n.debug("in pushCommit "+s.id)},"commit"),Me=e(function(t){let{name:r,order:a}=t;if(r=y.sanitizeText(r,Z()),l.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:a}),ye(r),n.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:r,id:a,type:c,tags:i}=t,h=Z();if(r=y.sanitizeText(r,h),a)a=y.sanitizeText(a,h);let s=l.records.branches.get(l.records.currBranch),o=l.records.branches.get(r),m=s?l.records.commits.get(s):void 0,f=o?l.records.commits.get(o):void 0;if(m&&f&&m.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(m===void 0||!m){let d=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!l.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(f===void 0||!f){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(m===f){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&l.records.commits.has(a)){let d=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${a} ${c} ${i?.join(" ")}`,token:`merge ${r} ${a} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${c} ${i?.join(" ")}`]},d}let x=o?o:"",g={id:a||`${l.records.seq}-${ne()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,x],branch:l.records.currBranch,type:v.MERGE,customType:c,customId:a?!0:!1,tags:i??[]};l.records.head=g,l.records.commits.set(g.id,g),l.records.branches.set(l.records.currBranch,g.id),n.debug(l.records.branches),n.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:r,targetId:a,tags:c,parent:i}=t;n.debug("Entering cherryPick:",r,a,c);let h=Z();if(r=y.sanitizeText(r,h),a=y.sanitizeText(a,h),c=c?.map((m)=>y.sanitizeText(m,h)),i=y.sanitizeText(i,h),!r||!l.records.commits.has(r)){let m=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},m}let s=l.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===v.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!l.records.commits.has(a)){if(o===l.records.currBranch){let g=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let m=l.records.branches.get(l.records.currBranch);if(m===void 0||!m){let g=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let f=l.records.commits.get(m);if(f===void 0||!f){let g=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let x={id:l.records.seq+"-"+ne(),message:`cherry-picked ${s?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,s.id],branch:l.records.currBranch,type:v.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${s.id}${s.type===v.MERGE?`|parent:${i}`:""}`]};l.records.head=x,l.records.commits.set(x.id,x),l.records.branches.set(l.records.currBranch,x.id),n.debug(l.records.branches),n.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,Z()),!l.records.branches.has(t)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}else{l.records.currBranch=t;let r=l.records.branches.get(l.records.currBranch);if(r===void 0||!r)l.records.head=null;else l.records.head=l.records.commits.get(r)??null}},"checkout");function he(t,r,a){let c=t.indexOf(r);if(c===-1)t.push(a);else t.splice(c,1,a)}e(he,"upsert");function me(t){let r=t.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},t[0]),a="";t.forEach(function(i){if(i===r)a+="\t*";else a+="\t|"});let c=[a,r.id,r.seq];for(let i in l.records.branches)if(l.records.branches.get(i)===r.id)c.push(i);if(n.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=l.records.commits.get(r.parents[0]);if(he(t,r,i),r.parents[1])t.push(l.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=l.records.commits.get(r.parents[0]);he(t,r,i)}t=pe(t,(i)=>i.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){n.debug(l.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){l.reset(),A()},"clear"),_e=e(function(){return[...l.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=e(function(){return l.records.branches},"getBranches"),De=e(function(){return l.records.commits},"getCommits"),xe=e(function(){let t=[...l.records.commits.values()];return t.forEach(function(r){n.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),We=e(function(){return l.records.currBranch},"getCurrentBranch"),qe=e(function(){return l.records.direction},"getDirection"),Ae=e(function(){return l.records.head},"getHead"),ue={commitType:v,getConfig:Z,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:L,getAccTitle:R,getAccDescription:M,setAccDescription:I,setDiagramTitle:P,getDiagramTitle:O},He=e((t,r)=>{if(ee(t,r),t.dir)r.setDirection(t.dir);for(let a of t.statements)Se(a,r)},"populate"),Se=e((t,r)=>{let c={Commit:e((i)=>r.commit(Ne(i)),"Commit"),Branch:e((i)=>r.branch(Fe(i)),"Branch"),Merge:e((i)=>r.merge(ze(i)),"Merge"),Checkout:e((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:e((i)=>r.cherryPick(je(i)),"CherryPicking")}[t.$type];if(c)c(t);else n.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?v[t.type]:v.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?v[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let r=await oe("gitGraph",t);n.debug(r),He(r,ue)},"parse")},Y=10,j=40,H=4,N=2,U=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),V=e((t,r,a=!1)=>{if(a&&t>0)return(t-1)%(r-1)+1;return t%r},"calcColorIndex"),D=new Map,W=new Map,ae=30,Q=new Map,se=[],z=0,w="LR",Ve=e(()=>{D.clear(),W.clear(),Q.clear(),z=0,se=[],w="LR"},"clear"),be=e((t)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=e((t)=>{let r,a,c;if(w==="BT")a=e((i,h)=>i<=h,"comparisonFunc"),c=1/0;else a=e((i,h)=>i>=h,"comparisonFunc"),c=0;return t.forEach((i)=>{let h=w==="TB"||w=="BT"?W.get(i)?.y:W.get(i)?.x;if(h!==void 0&&a(h,c))r=i,c=h}),r},"findClosestParent"),Ze=e((t)=>{let r="",a=1/0;return t.forEach((c)=>{let i=W.get(c).y;if(i<=a)r=c,a=i}),r||void 0},"findClosestParentBT"),Xe=e((t,r,a)=>{let c=a,i=a,h=[];t.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)c=Qe(o),i=Math.max(c,i);else h.push(o);et(o,c)}),c=i,h.forEach((s)=>{tt(s,c,a)}),t.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let m=Ze(o.parents);if(c=W.get(m).y-j,c<=i)i=c;let f=D.get(o.branch).pos,x=c-Y;W.set(o.id,{x:f,y:x})}})},"setParallelBTPos"),Je=e((t)=>{let r=we(t.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${t.id}`);let a=W.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Qe=e((t)=>Je(t)+j,"calculateCommitPosition"),et=e((t,r)=>{let a=D.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let c=a.pos,i=r+Y;return W.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,a)=>{let c=D.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+a,h=c.pos;W.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,a,c,i,h)=>{let{theme:s}=u(),o=ce.has(s??""),m=ge.has(s??""),f=Ue.has(s??"");if(h===v.HIGHLIGHT)t.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${V(i,U,m)} ${c}-outer`),t.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${V(i,U,m)} ${c}-inner`);else if(h===v.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let x=t.append("circle");if(x.attr("cx",a.x),x.attr("cy",a.y),x.attr("r",o?7:10),x.attr("class",`commit ${r.id} commit${V(i,U,m)}`),h===v.MERGE){let g=t.append("circle");g.attr("cx",a.x),g.attr("cy",a.y),g.attr("r",o?5:6),g.attr("class",`commit ${c} ${r.id} commit${V(i,U,m)}`)}if(h===v.REVERSE){let g=t.append("path"),d=o?4:5;g.attr("d",`M ${a.x-d},${a.y-d}L${a.x+d},${a.y+d}M${a.x-d},${a.y+d}L${a.x+d},${a.y-d}`).attr("class",`commit ${c} ${r.id} commit${V(i,U,m)}`)}}},"drawCommitBullet"),at=e((t,r,a,c,i)=>{if(r.type!==v.CHERRY_PICK&&(r.customId&&r.type===v.MERGE||r.type!==v.MERGE)&&i.showCommitLabel){let h=t.append("g"),s=h.insert("rect").attr("class","commit-label-bkg"),o=h.append("text").attr("x",c).attr("y",a.y+25).attr("class","commit-label").text(r.id),m=o.node()?.getBBox();if(m){if(s.attr("x",a.posWithOffset-m.width/2-N).attr("y",a.y+13.5).attr("width",m.width+2*N).attr("height",m.height+2*N),w==="TB"||w==="BT")s.attr("x",a.x-(m.width+4*H+5)).attr("y",a.y-12),o.attr("x",a.x-(m.width+4*H)).attr("y",a.y+m.height-12);else o.attr("x",a.posWithOffset-m.width/2);if(i.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let f=-7.5-(m.width+10)/25*9.5,x=10+m.width/25*8.5;h.attr("transform","translate("+f+", "+x+") rotate(-45, "+c+", "+a.y+")")}}}},"drawCommitLabel"),ot=e((t,r,a,c)=>{if(r.tags.length>0){let i=0,h=0,s=0,o=[];for(let m of r.tags.reverse()){let f=t.insert("polygon"),x=t.append("circle"),g=t.append("text").attr("y",a.y-16-i).attr("class","tag-label").text(m),d=g.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),s=Math.max(s,d.height),g.attr("x",a.posWithOffset-d.width/2),o.push({tag:g,hole:x,rect:f,yOffset:i}),i+=20}for(let{tag:m,hole:f,rect:x,yOffset:g}of o){let d=s/2,C=a.y-19.2-g;if(x.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${c-h/2-H/2},${C+N}
|
|
3
3
|
${c-h/2-H/2},${C-N}
|
|
4
4
|
${a.posWithOffset-h/2-H},${C-d-N}
|
|
@@ -7,10 +7,10 @@ import{ee}from"./index.0g1t1pjx.js";import{Pr}from"./index.a3njhfdd.js";import{e
|
|
|
7
7
|
${a.posWithOffset-h/2-H},${C+d+N}`),f.attr("cy",C).attr("cx",c-h/2+H/2).attr("r",1.5).attr("class","tag-hole"),w==="TB"||w==="BT"){let b=c+g;x.attr("class","tag-label-bkg").attr("points",`
|
|
8
8
|
${a.x},${b+2}
|
|
9
9
|
${a.x},${b-2}
|
|
10
|
-
${a.x+
|
|
11
|
-
${a.x+
|
|
12
|
-
${a.x+
|
|
13
|
-
${a.x+
|
|
10
|
+
${a.x+Y},${b-d-2}
|
|
11
|
+
${a.x+Y+h+4},${b-d-2}
|
|
12
|
+
${a.x+Y+h+4},${b+d+2}
|
|
13
|
+
${a.x+Y},${b+d+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+c+")"),f.attr("cx",a.x+H/2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+a.x+","+c+")"),m.attr("x",a.x+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+c+")")}}}},"drawCommitTags"),st=e((t)=>{switch(t.customType??t.type){case v.NORMAL:return"commit-normal";case v.REVERSE:return"commit-reverse";case v.HIGHLIGHT:return"commit-highlight";case v.MERGE:return"commit-merge";case v.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=e((t,r,a,c)=>{let i={x:0,y:0};if(t.parents.length>0){let h=we(t.parents);if(h){let s=c.get(h)??i;if(r==="TB")return s.y+j;else if(r==="BT")return(c.get(t.id)??i).y-j;else return s.x+j}}else if(r==="TB")return ae;else if(r==="BT")return(c.get(t.id)??i).y-j;else return 0;return 0},"calculatePosition"),ct=e((t,r,a)=>{let c=w==="BT"&&a?r:r+Y,i=D.get(t.branch)?.pos,h=w==="TB"||w==="BT"?D.get(t.branch)?.pos:c;if(h===void 0||i===void 0)throw Error(`Position were undefined for commit ${t.id}`);let s=ce.has(u().theme??""),o=w==="TB"||w==="BT"?c:i+(s?le/2+1:-2);return{x:h,y:o,posWithOffset:c}},"getCommitPosition"),$e=e((t,r,a,c)=>{let i=t.append("g").attr("class","commit-bullets"),h=t.append("g").attr("class","commit-labels"),s=w==="TB"||w==="BT"?ae:0,o=[...r.keys()],m=c.parallelCommits??!1,f=e((g,d)=>{let C=r.get(g)?.seq,b=r.get(d)?.seq;return C!==void 0&&b!==void 0?C-b:0},"sortKeys"),x=o.sort(f);if(w==="BT"){if(m)Xe(x,r,s);x=x.reverse()}x.forEach((g)=>{let d=r.get(g);if(!d)throw Error(`Commit not found for key ${g}`);if(m)s=nt(d,w,s,W);let C=ct(d,s,m);if(a){let b=st(d),E=d.customType??d.type,T=D.get(d.branch)?.index??0;rt(i,d,C,b,T,E),at(h,d,C,s,c),ot(h,d,C,s)}if(w==="TB"||w==="BT")W.set(d.id,{x:C.x,y:C.posWithOffset});else W.set(d.id,{x:C.posWithOffset,y:C.y});if(s=w==="BT"&&m?s+j:s+j+Y,s>z)z=s})},"drawCommits"),it=e((t,r,a,c,i)=>{let s=(w==="TB"||w==="BT"?a.x<c.x:a.y<c.y)?r.branch:t.branch,o=e((f)=>f.branch===s,"isOnBranchToGetCurve"),m=e((f)=>f.seq>t.seq&&f.seq<r.seq,"isBetweenCommits");return[...i.values()].some((f)=>m(f)&&o(f))},"shouldRerouteArrow"),te=e((t,r,a=0)=>{let c=t+Math.abs(t-r)/2;if(a>5)return c;if(se.every((s)=>Math.abs(s-c)>=10))return se.push(c),c;let h=Math.abs(t-r);return te(t,r-h/5,a+1)},"findLane"),dt=e((t,r,a,c)=>{let{theme:i}=u(),h=ge.has(i??""),s=W.get(r.id),o=W.get(a.id);if(s===void 0||o===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${a.id}`);let m=it(r,a,s,o,c),f="",x="",g=0,d=0,C=D.get(a.branch)?.index;if(a.type===v.MERGE&&r.id!==a.parents[0])C=D.get(r.branch)?.index;let b;if(m){f="A 10 10, 0, 0, 0,",x="A 10 10, 0, 0, 1,",g=10,d=10;let E=s.y<o.y?te(s.y,o.y):te(o.y,s.y),T=s.x<o.x?te(s.x,o.x):te(o.x,s.x);if(w==="TB")if(s.x<o.x)b=`M ${s.x} ${s.y} L ${T-g} ${s.y} ${x} ${T} ${s.y+d} L ${T} ${o.y-g} ${f} ${T+d} ${o.y} L ${o.x} ${o.y}`;else C=D.get(r.branch)?.index,b=`M ${s.x} ${s.y} L ${T+g} ${s.y} ${f} ${T} ${s.y+d} L ${T} ${o.y-g} ${x} ${T-d} ${o.y} L ${o.x} ${o.y}`;else if(w==="BT")if(s.x<o.x)b=`M ${s.x} ${s.y} L ${T-g} ${s.y} ${f} ${T} ${s.y-d} L ${T} ${o.y+g} ${x} ${T+d} ${o.y} L ${o.x} ${o.y}`;else C=D.get(r.branch)?.index,b=`M ${s.x} ${s.y} L ${T+g} ${s.y} ${x} ${T} ${s.y-d} L ${T} ${o.y+g} ${f} ${T-d} ${o.y} L ${o.x} ${o.y}`;else if(s.y<o.y)b=`M ${s.x} ${s.y} L ${s.x} ${E-g} ${f} ${s.x+d} ${E} L ${o.x-g} ${E} ${x} ${o.x} ${E+d} L ${o.x} ${o.y}`;else C=D.get(r.branch)?.index,b=`M ${s.x} ${s.y} L ${s.x} ${E+g} ${x} ${s.x+d} ${E} L ${o.x-g} ${E} ${f} ${o.x} ${E-d} L ${o.x} ${o.y}`}else if(f="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",g=20,d=20,w==="TB"){if(s.x<o.x)if(a.type===v.MERGE&&r.id!==a.parents[0])b=`M ${s.x} ${s.y} L ${s.x} ${o.y-g} ${f} ${s.x+d} ${o.y} L ${o.x} ${o.y}`;else b=`M ${s.x} ${s.y} L ${o.x-g} ${s.y} ${x} ${o.x} ${s.y+d} L ${o.x} ${o.y}`;if(s.x>o.x)if(f="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",g=20,d=20,a.type===v.MERGE&&r.id!==a.parents[0])b=`M ${s.x} ${s.y} L ${s.x} ${o.y-g} ${x} ${s.x-d} ${o.y} L ${o.x} ${o.y}`;else b=`M ${s.x} ${s.y} L ${o.x+g} ${s.y} ${f} ${o.x} ${s.y+d} L ${o.x} ${o.y}`;if(s.x===o.x)b=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}else if(w==="BT"){if(s.x<o.x)if(a.type===v.MERGE&&r.id!==a.parents[0])b=`M ${s.x} ${s.y} L ${s.x} ${o.y+g} ${x} ${s.x+d} ${o.y} L ${o.x} ${o.y}`;else b=`M ${s.x} ${s.y} L ${o.x-g} ${s.y} ${f} ${o.x} ${s.y-d} L ${o.x} ${o.y}`;if(s.x>o.x)if(f="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",g=20,d=20,a.type===v.MERGE&&r.id!==a.parents[0])b=`M ${s.x} ${s.y} L ${s.x} ${o.y+g} ${f} ${s.x-d} ${o.y} L ${o.x} ${o.y}`;else b=`M ${s.x} ${s.y} L ${o.x+g} ${s.y} ${x} ${o.x} ${s.y-d} L ${o.x} ${o.y}`;if(s.x===o.x)b=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}else{if(s.y<o.y)if(a.type===v.MERGE&&r.id!==a.parents[0])b=`M ${s.x} ${s.y} L ${o.x-g} ${s.y} ${x} ${o.x} ${s.y+d} L ${o.x} ${o.y}`;else b=`M ${s.x} ${s.y} L ${s.x} ${o.y-g} ${f} ${s.x+d} ${o.y} L ${o.x} ${o.y}`;if(s.y>o.y)if(a.type===v.MERGE&&r.id!==a.parents[0])b=`M ${s.x} ${s.y} L ${o.x-g} ${s.y} ${f} ${o.x} ${s.y-d} L ${o.x} ${o.y}`;else b=`M ${s.x} ${s.y} L ${s.x} ${o.y+g} ${x} ${s.x+d} ${o.y} L ${o.x} ${o.y}`;if(s.y===o.y)b=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}if(b===void 0)throw Error("Line definition not found");t.append("path").attr("d",b).attr("class","arrow arrow"+V(C,U,h))},"drawArrow"),ht=e((t,r)=>{let a=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach((c)=>{let i=r.get(c);if(i.parents&&i.parents.length>0)i.parents.forEach((h)=>{dt(a,r.get(h),i,r)})})},"drawArrows"),lt=e((t,r,a,c)=>{let{look:i,theme:h,themeVariables:s}=u(),{dropShadow:o,THEME_COLOR_LIMIT:m}=s,f=ce.has(h??""),x=ge.has(h??""),g=t.append("g");r.forEach((d,C)=>{let b=V(C,f?m:U,x),E=D.get(d.name)?.pos;if(E===void 0)throw Error(`Position not found for branch ${d.name}`);let T=w==="TB"||w==="BT"?E:f?E+le/2+1:E-2,_=g.append("line");if(_.attr("x1",0),_.attr("y1",T),_.attr("x2",z),_.attr("y2",T),_.attr("class","branch branch"+b),w==="TB")_.attr("y1",ae),_.attr("x1",E),_.attr("y2",z),_.attr("x2",E);else if(w==="BT")_.attr("y1",z),_.attr("x1",E),_.attr("y2",ae),_.attr("x2",E);se.push(T);let ie=d.name,J=be(ie),q=g.insert("rect"),S=g.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);S.node().appendChild(J);let G=J.getBBox(),fe=f?0:4,re=f?16:0,X=f?le:0;if(i==="neo")q.attr("data-look","neo");if(q.attr("class","branchLabelBkg label"+b).attr("style",i==="neo"?`filter:${f?`url(#${c}-drop-shadow)`:o}`:"").attr("rx",fe).attr("ry",fe).attr("x",-G.width-4-(a.rotateCommitLabel===!0?30:0)).attr("y",-G.height/2+10).attr("width",G.width+18+re).attr("height",G.height+4+X),S.attr("transform","translate("+(-G.width-14-(a.rotateCommitLabel===!0?30:0)+re/2)+", "+(T-G.height/2-2)+")"),w==="TB"){if(q.attr("x",E-G.width/2-10).attr("y",0),S.attr("transform","translate("+(E-G.width/2-5)+", 0)"),f)q.attr("transform",`translate(${-re/2-3}, ${-X-10})`),S.attr("transform","translate("+(E-G.width/2-5)+", "+(-X*2+7)+")")}else if(w==="BT"){if(q.attr("x",E-G.width/2-10).attr("y",z),S.attr("transform","translate("+(E-G.width/2-5)+", "+z+")"),f)q.attr("transform",`translate(${-re/2-3}, ${X+10})`),S.attr("transform","translate("+(E-G.width/2-5)+", "+(z+X*2+4)+")")}else q.attr("transform","translate(-19, "+(T-12-X/2)+")")})},"drawBranches"),mt=e(function(t,r,a,c,i){return D.set(t,{pos:r,index:a}),r+=50+(i?40:0)+(w==="TB"||w==="BT"?c.width/2:0),r},"setBranchPosition"),gt=e(function(t,r,a,c){Ve(),n.debug("in gitgraph renderer",t+`
|
|
14
14
|
`,"id:",r,a);let i=c.db;if(!i.getConfig){n.error("getConfig method is not available on db");return}let h=i.getConfig(),s=h.rotateCommitLabel??!1;Q=i.getCommits();let o=i.getBranchesAsObjArray();w=i.getDirection();let m=p(`[id="${r}"]`),{look:f,theme:x,themeVariables:g}=u(),{useGradient:d,gradientStart:C,gradientStop:b,filterColor:E}=g;if(d){let _=m.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");_.append("stop").attr("offset","0%").attr("stop-color",C).attr("stop-opacity",1),_.append("stop").attr("offset","100%").attr("stop-color",b).attr("stop-opacity",1)}if(f==="neo"&&ce.has(x??""))m.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",E);let T=0;if(o.forEach((_,ie)=>{let J=be(_.name),q=m.append("g"),de=q.insert("g").attr("class","branchLabel"),S=de.insert("g").attr("class","label branch-label");S.node()?.appendChild(J);let G=J.getBBox();T=mt(_.name,T,ie,G,s),S.remove(),de.remove(),q.remove()}),$e(m,Q,!1,h),h.showBranches)lt(m,o,h,r);ht(m,Q),$e(m,Q,!0,h),F.insertTitle(m,"gitTitleText",h.titleTopMargin??0,i.getDiagramTitle()),ra(void 0,m,h.diagramPadding,h.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=e((t)=>{let{svgId:r}=t,a="";if(t.useGradient&&r)for(let c=0;c<t.THEME_COLOR_LIMIT;c++)a+=`
|
|
15
15
|
.label${c} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}
|
|
16
16
|
`;return a},"genGitGraphGradient"),bt=e((t)=>{let r=k(),{theme:a,themeVariables:c}=r,{borderColorArray:i}=c,h=ke.has(a);if(pt.has(a)){let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)s+=`
|