@softistx/pulsarix-widget 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/chunks/{abnfDiagram-XWFEHMT6.9eyf87ze.js → abnfDiagram-XWFEHMT6.b9yk4x5x.js} +1 -1
  2. package/dist/chunks/architecture-WOLXFQ4H.aft3rkrr.js +1 -0
  3. package/dist/chunks/{architectureDiagram-CSQXQB3N.cy6247c8.js → architectureDiagram-CSQXQB3N.qz18rz0g.js} +1 -1
  4. package/dist/chunks/{blockDiagram-BEDRHYPZ.an5w7tk4.js → blockDiagram-BEDRHYPZ.bb08b9nt.js} +1 -1
  5. package/dist/chunks/{c4Diagram-M2UUVUY5.512525r3.js → c4Diagram-M2UUVUY5.px0epccd.js} +2 -2
  6. package/dist/chunks/{chat-markdown-COFhHMpe.fm39gs4e.js → chat-markdown-CrbWbK1O.k4nmgyey.js} +5 -5
  7. package/dist/chunks/{classDiagram-v2-KXABOMEV.5gw6azyv.js → classDiagram-v2-KXABOMEV.f02387t9.js} +2 -2
  8. package/dist/chunks/{cose-bilkent-JH36ORCC.9t42zmky.js → cose-bilkent-JH36ORCC.azq9k24r.js} +1 -1
  9. package/dist/chunks/cynefin-EF2NZ3EQ.dk039jny.js +1 -0
  10. package/dist/chunks/{cynefinDiagram-NJNITYFG.dta2tfnh.js → cynefinDiagram-NJNITYFG.zt7gprt1.js} +1 -1
  11. package/dist/chunks/{dagre-KIHZ2IZ3.k7b2vmwy.js → dagre-KIHZ2IZ3.702bqbr9.js} +1 -1
  12. package/dist/chunks/{diagram-7YQZDPLS.cd2t0saz.js → diagram-7YQZDPLS.m7vf21j6.js} +1 -1
  13. package/dist/chunks/{diagram-QBROCOUO.1x4d8w7m.js → diagram-QBROCOUO.33e5hv7x.js} +3 -3
  14. package/dist/chunks/{diagram-RJJCUUZO.jk65d82z.js → diagram-RJJCUUZO.94k74bz7.js} +2 -2
  15. package/dist/chunks/{diagram-WERXNKYE.85c3en4j.js → diagram-WERXNKYE.7fe849z6.js} +1 -1
  16. package/dist/chunks/{diagram-YHHI257C.y494n4nm.js → diagram-YHHI257C.qjjjfq7w.js} +2 -2
  17. package/dist/chunks/{diagram-YR4HJLHV.z2n88j9s.js → diagram-YR4HJLHV.310x2we2.js} +1 -1
  18. package/dist/chunks/{ebnfDiagram-N527522P.cgfkzbkp.js → ebnfDiagram-N527522P.a4crteq1.js} +1 -1
  19. package/dist/chunks/{editor-shortcuts-dialog-Ch8GFC-h.n66q7eep.js → editor-shortcuts-dialog-B0ppoiza.x3p4h07t.js} +1 -1
  20. package/dist/chunks/editor.arg3zy29.js +4 -0
  21. package/dist/chunks/{elk-O5DQBFGD.188pnf8b.js → elk-O5DQBFGD.dx61etan.js} +1 -1
  22. package/dist/chunks/{emoji-picker-Cv6ZOgpd.cmp5h45n.js → emoji-picker-CbvQZ2ZL.nst616hd.js} +2 -2
  23. package/dist/chunks/{erDiagram-K3K3BIDK.abxf5cgs.js → erDiagram-K3K3BIDK.qzqv67zm.js} +5 -5
  24. package/dist/chunks/eventmodeling-K75KTNOO.gmm1bcak.js +1 -0
  25. package/dist/chunks/{flow-diagram-B6X1M34-.awp18a9v.js → flow-diagram-AiM6FiIm.73jr19pb.js} +1 -1
  26. package/dist/chunks/flowDiagram-Z6JWZHQI.fzwqg115.js +1 -0
  27. package/dist/chunks/{ganttDiagram-3PRQTZWP.p72ak8vx.js → ganttDiagram-3PRQTZWP.xngzb32h.js} +2 -2
  28. package/dist/chunks/gitGraph-VSP46ZUC.0m8jykgw.js +1 -0
  29. package/dist/chunks/{gitGraphDiagram-VXDFKS5L.vtq378bg.js → gitGraphDiagram-VXDFKS5L.1sm36z2q.js} +1 -1
  30. package/dist/chunks/{grid-E2QIVN74.8xqrr45y.js → grid-E2QIVN74.76pgtn2n.js} +1 -1
  31. package/dist/chunks/illustration-BOW28wq5.bkz28k1x.js +1 -0
  32. package/dist/chunks/{index.pb5tn7q8.js → index.0e4s8r4m.js} +1 -1
  33. package/dist/chunks/{index.8hmrz817.js → index.0k4tbjhp.js} +1 -1
  34. package/dist/chunks/{index.je7pqrtm.js → index.1d7qpsyx.js} +2 -2
  35. package/dist/chunks/{index.x22rwqsz.js → index.32jxrb9b.js} +2 -2
  36. package/dist/chunks/{index.yd3167gn.js → index.7gxz6d1f.js} +2 -2
  37. package/dist/chunks/{index.r8wc9n4q.js → index.7k5v3p25.js} +1 -1
  38. package/dist/chunks/{index.nphh2dtn.js → index.8f3x951p.js} +1 -1
  39. package/dist/chunks/{index.ybmxf4mt.js → index.9bf5qrah.js} +1 -1
  40. package/dist/chunks/{index.mjfjqm0b.js → index.a1bxkgd3.js} +10 -10
  41. package/dist/chunks/{index.cf9nd6xy.js → index.a6rz456z.js} +2 -2
  42. package/dist/chunks/{index.b0pypc3w.js → index.dnnzjw18.js} +1 -1
  43. package/dist/chunks/index.e35b4yh5.js +44 -0
  44. package/dist/chunks/{index.jgvp2nkv.js → index.fbeztcp3.js} +1 -1
  45. package/dist/chunks/{index.2jsv3483.js → index.hvdnkr5m.js} +2 -2
  46. package/dist/chunks/{index.3k4gyba0.js → index.nsckd1vt.js} +2 -2
  47. package/dist/chunks/{index.btq862bx.js → index.r0p3fm9f.js} +1 -1
  48. package/dist/chunks/{index.psaka010.js → index.rfyzb2yv.js} +1 -1
  49. package/dist/chunks/{index.vm7ezzet.js → index.t34t6kpe.js} +2 -2
  50. package/dist/chunks/{index.6tc2v7mk.js → index.wrjdgn4c.js} +2 -2
  51. package/dist/chunks/{index.qy1pndre.js → index.zm5x44tn.js} +1 -1
  52. package/dist/chunks/info-OHQRW6UA.e0a85drn.js +1 -0
  53. package/dist/chunks/{infoDiagram-EZ3ZOAHP.q0047zjz.js → infoDiagram-EZ3ZOAHP.pfd0fjwn.js} +1 -1
  54. package/dist/chunks/{ishikawaDiagram-S3EKX5GW.41wwb1jp.js → ishikawaDiagram-S3EKX5GW.h5kjez1x.js} +2 -2
  55. package/dist/chunks/{journeyDiagram-POQNLL5X.2c9swtn6.js → journeyDiagram-POQNLL5X.55cqc9p0.js} +2 -2
  56. package/dist/chunks/{kanban-definition-BH5XI6FM.xznh9d30.js → kanban-definition-BH5XI6FM.pkdvda4y.js} +1 -1
  57. package/dist/chunks/{markup-color-chrome-ykGNUl8y.955bjndb.js → markup-color-chrome-ykGNUl8y.0ds56d6x.js} +1 -1
  58. package/dist/chunks/{markup-custom-color-Dou38qUi.w8c65wn1.js → markup-custom-color-Dgm2hHI7.7darvajx.js} +1 -1
  59. package/dist/chunks/{mention-list-D4eNNVs0.2k5cdtgy.js → mention-list-CkAUzPBG.mtjgmmzb.js} +1 -1
  60. package/dist/chunks/{mermaid.core.d680cq0m.js → mermaid.core.j7s05j63.js} +4 -4
  61. package/dist/chunks/{mindmap-definition-WVAN44T4.k41b9d4r.js → mindmap-definition-WVAN44T4.x3jbxvft.js} +1 -1
  62. package/dist/chunks/packet-JDAUHWVQ.52409p3r.js +1 -0
  63. package/dist/chunks/{panel.yh0jnkha.js → panel.9tp7gr60.js} +1 -1
  64. package/dist/chunks/{pegDiagram-D4NLKWP3.x25624w6.js → pegDiagram-D4NLKWP3.xq15gqy9.js} +1 -1
  65. package/dist/chunks/pie-XZMESJXO.q5kre8cx.js +1 -0
  66. package/dist/chunks/{pieDiagram-36ENHN4W.j4fq9134.js → pieDiagram-36ENHN4W.8h0wam54.js} +2 -2
  67. package/dist/chunks/{plated-illustration-0ro04oJt.0ebg0x7r.js → plated-illustration-COZYWJ81.xy7ba5mq.js} +1 -1
  68. package/dist/chunks/{quadrantDiagram-ZQUDMS73.1vgwgk90.js → quadrantDiagram-ZQUDMS73.k28g8jpn.js} +2 -2
  69. package/dist/chunks/radar-ABXABTNO.yk872k2n.js +1 -0
  70. package/dist/chunks/railroad-I3PHUGI6.9wfa6vs3.js +1 -0
  71. package/dist/chunks/railroad-abnf-LNEFI6M7.70zznk3b.js +1 -0
  72. package/dist/chunks/railroad-ebnf-DWYD2UWJ.4pvdng0p.js +1 -0
  73. package/dist/chunks/railroad-peg-JR7BVNR7.ev15ebp6.js +1 -0
  74. package/dist/chunks/{railroadDiagram-JIZHGYPL.pbv1rqfp.js → railroadDiagram-JIZHGYPL.e7p2vqgg.js} +1 -1
  75. package/dist/chunks/{render-VIF2ZAQL.2kz294jj.js → render-VIF2ZAQL.w5ytncsg.js} +1 -1
  76. package/dist/chunks/{requirementDiagram-AXW2TVFA.qnxmvqx8.js → requirementDiagram-AXW2TVFA.arekdz02.js} +2 -2
  77. package/dist/chunks/{sankeyDiagram-FBCJTAIF.whv6dy60.js → sankeyDiagram-FBCJTAIF.1d04xcmb.js} +2 -2
  78. package/dist/chunks/{sequenceDiagram-3LA2ROMG.w52darq5.js → sequenceDiagram-3LA2ROMG.j4xywwp1.js} +2 -2
  79. package/dist/chunks/{sizeCapture-2Q2CQKSF.zgscrz2v.js → sizeCapture-2Q2CQKSF.862bnf6p.js} +1 -1
  80. package/dist/chunks/{stateDiagram-v2-ATKHQDJO.zk8w1ht1.js → stateDiagram-v2-ATKHQDJO.xvvtr0y2.js} +2 -2
  81. package/dist/chunks/{swimlanes-YQL5WMAO.cn1pz0jc.js → swimlanes-YQL5WMAO.dtnjb4xt.js} +1 -1
  82. package/dist/chunks/swimlanesDiagram-UCCPES4V.0q8kd5qn.js +8 -0
  83. package/dist/chunks/{timeline-definition-7Z437IG3.atpqnb0j.js → timeline-definition-7Z437IG3.zfhqzc4r.js} +1 -1
  84. package/dist/chunks/treeView-D4JQ5SDB.3fzswdjp.js +1 -0
  85. package/dist/chunks/treemap-SAJKECNS.cgh74bhn.js +1 -0
  86. package/dist/chunks/{usecaseDiagram-RDK6N6HP.ase4sfgd.js → usecaseDiagram-RDK6N6HP.ewxnyz4c.js} +2 -2
  87. package/dist/chunks/{vennDiagram-SHRQU5PJ.as8z3hh5.js → vennDiagram-SHRQU5PJ.wkzf1f00.js} +2 -2
  88. package/dist/chunks/wardley-7MLQ67FV.6q5tgt0s.js +1 -0
  89. package/dist/chunks/{wardleyDiagram-F3OXNVQS.8pf1xb65.js → wardleyDiagram-F3OXNVQS.srjfm4nb.js} +1 -1
  90. package/dist/chunks/{xychartDiagram-GDYJKCDI.z35xw169.js → xychartDiagram-GDYJKCDI.xfa2vexk.js} +2 -2
  91. package/dist/index.js +15 -15
  92. package/package.json +2 -2
  93. package/dist/chunks/architecture-WOLXFQ4H.230b0n6c.js +0 -1
  94. package/dist/chunks/cynefin-EF2NZ3EQ.e9ycn4jb.js +0 -1
  95. package/dist/chunks/editor.yc8q5dd1.js +0 -4
  96. package/dist/chunks/eventmodeling-K75KTNOO.q3y4xbmj.js +0 -1
  97. package/dist/chunks/flowDiagram-Z6JWZHQI.af312t1k.js +0 -1
  98. package/dist/chunks/gitGraph-VSP46ZUC.e4envgw8.js +0 -1
  99. package/dist/chunks/illustration-BpmMAKpO.brt46gkr.js +0 -1
  100. package/dist/chunks/index.5vcex75v.js +0 -44
  101. package/dist/chunks/info-OHQRW6UA.yhwzx56w.js +0 -1
  102. package/dist/chunks/packet-JDAUHWVQ.gp9cmm94.js +0 -1
  103. package/dist/chunks/pie-XZMESJXO.fx385qqa.js +0 -1
  104. package/dist/chunks/radar-ABXABTNO.d58r1mqp.js +0 -1
  105. package/dist/chunks/railroad-I3PHUGI6.cwq84f31.js +0 -1
  106. package/dist/chunks/railroad-abnf-LNEFI6M7.7z7d547m.js +0 -1
  107. package/dist/chunks/railroad-ebnf-DWYD2UWJ.geje0ygg.js +0 -1
  108. package/dist/chunks/railroad-peg-JR7BVNR7.f8xnzs1y.js +0 -1
  109. package/dist/chunks/swimlanesDiagram-UCCPES4V.cy9ywqbn.js +0 -8
  110. package/dist/chunks/treeView-D4JQ5SDB.fj76b06b.js +0 -1
  111. package/dist/chunks/treemap-SAJKECNS.yk7967y9.js +0 -1
  112. package/dist/chunks/wardley-7MLQ67FV.r3k2k1ra.js +0 -1
@@ -1,9 +1,9 @@
1
- import{e,Qi,n,y,j,A,L,I,R,M,O,D,u,m,pn,z}from"./index.mjfjqm0b.js";import{al,il,sl,on,Wt,sn,ln,ar,Fr,cn,is,os,Ar,ss,ls,un,zn,Kt,ll}from"./index.cf9nd6xy.js";import{Fe,Ke}from"./index.5vcex75v.js";var ve=Ke(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(F){return F.add(4-F.isoWeekday(),t)},h=a.prototype;h.isoWeekYear=function(){return o(this).year()},h.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),t);var E,K,H,et,W=o(this),V=(E=this.isoWeekYear(),K=this.$u,H=(K?s.utc:s)().year(E).startOf("year"),et=4-H.isoWeekday(),H.isoWeekday()>4&&(et+=7),H.add(et,t));return W.diff(V,"week")+1},h.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var T=h.startOf;h.startOf=function(F,E){var K=this.$utils(),H=!!K.u(E)||E;return K.p(F)==="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)(F,E)}}})});var Te=Ke(function(Gt,Xt){(function(t,i){typeof Gt=="object"&&typeof Xt<"u"?Xt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Gt,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={},F=function(S){return(S=+S)+(S>68?1900:2000)},E=function(S){return function(Y){this[S]=+Y}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(Y){if(!Y)return 0;if(Y==="Z")return 0;var C=Y.match(/([+-]|\d\d)/g),Z=60*C[1]+(+C[2]||0);return Z===0?0:C[0]==="+"?-Z:Z}(S)}],H=function(S){var Y=T[S];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},et=function(S,Y){var C,Z=T.meridiem;if(Z){for(var rt=1;rt<=24;rt+=1)if(S.indexOf(Z(rt,0,Y))>-1){C=rt>12;break}}else C=S===(Y?"pm":"PM");return C},W={A:[h,function(S){this.afternoon=et(S,!1)}],a:[h,function(S){this.afternoon=et(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[o,E("seconds")],ss:[o,E("seconds")],m:[o,E("minutes")],mm:[o,E("minutes")],H:[o,E("hours")],h:[o,E("hours")],HH:[o,E("hours")],hh:[o,E("hours")],D:[o,E("day")],DD:[s,E("day")],Do:[h,function(S){var Y=T.ordinal,C=S.match(/\d+/);if(this.day=C[0],Y)for(var Z=1;Z<=31;Z+=1)Y(Z).replace(/\[|\]/g,"")===S&&(this.day=Z)}],w:[o,E("week")],ww:[s,E("week")],M:[o,E("month")],MM:[s,E("month")],MMM:[h,function(S){var Y=H("months"),C=(H("monthsShort")||Y.map(function(Z){return Z.slice(0,3)})).indexOf(S)+1;if(C<1)throw Error();this.month=C%12||C}],MMMM:[h,function(S){var Y=H("months").indexOf(S)+1;if(Y<1)throw Error();this.month=Y%12||Y}],Y:[/[+-]?\d+/,E("year")],YY:[s,function(S){this.year=F(S)}],YYYY:[/\d{4}/,E("year")],Z:K,ZZ:K};function V(S){var Y,C;Y=S,C=T&&T.formats;for(var Z=(S=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,q,p){var w=p&&p.toUpperCase();return q||C[p]||t[p]||C[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],k=x&&x[0],P=x&&x[1];Z[st]=P?{regex:k,parser:P}:U.replace(/^\[|\]$/g,"")}return function(Q){for(var q={},p=0,w=0;p<rt;p+=1){var b=Z[p];if(typeof b=="string")w+=b.length;else{var{regex:_,parser:c}=b,v=Q.slice(w),g=_.exec(v)[0];c.call(q,g),Q=Q.replace(g,"")}}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(S,Y,C){C.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(F=S.parseTwoDigitYear);var Z=Y.prototype,rt=Z.parse;Z.parse=function(st){var{date:U,utc:x,args:k}=st;this.$u=x;var P=k[1];if(typeof P=="string"){var Q=k[2]===!0,q=k[3]===!0,p=Q||q,w=k[2];q&&(w=k[2]),T=this.$locale(),!Q&&w&&(T=C.Ls[w]),this.$d=function(v,g,f,B){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1000:1)*v);var r=V(g)(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,P,x,C),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),p&&U!=this.format(P)&&(this.$d=new Date("")),T={}}else if(P instanceof Array)for(var b=P.length,_=1;_<=b;_+=1){k[1]=P[_-1];var c=C.apply(this,k);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=Ke(function(Ut,qt){(function(t,i){typeof Ut=="object"&&typeof qt<"u"?qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(Ut,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 F=this.$utils(),E=(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 F.s(h.week(),K==="w"?1:2,"0");case"W":case"WW":return F.s(h.isoWeek(),K==="W"?1:2,"0");case"k":case"kk":return F.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)(E)}}})});var xe=Ke(function(Zt,Qt){(function(t,i){typeof Zt=="object"&&typeof Qt<"u"?Qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=i()})(Zt,function(){var t,i,a=1000,s=60000,o=3600000,h=86400000,T=31536000000,F=2628000000,E=/^(-|\+)?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:F,days:h,hours:o,minutes:s,seconds:a,milliseconds:1,weeks:604800000},et=function(U){return U instanceof rt},W=function(U,x,k){return new rt(U,k,x.$l)},V=function(U){return i.p(U)+"s"},S=function(U){return U<0},Y=function(U){return S(U)?Math.ceil(U):Math.floor(U)},C=function(U){return Math.abs(U)},Z=function(U,x){return U?S(U)?{negative:!0,format:""+C(U)+x}:{negative:!1,format:""+U+x}:{negative:!1,format:""}},rt=function(){function U(k,P,Q){var q=this;if(this.$d={},this.$l=Q,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return W(k*H[V(P)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(b){q.$d[V(b)]=k[b]}),this.calMilliseconds(),this;if(typeof k=="string"){var p=k.match(E);if(p){var w=p.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 k=this;this.$ms=Object.keys(this.$d).reduce(function(P,Q){return P+(k.$d[Q]||0)*H[Q]},0)},x.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=Y(k/T),k%=T,this.$d.months=Y(k/F),k%=F,this.$d.days=Y(k/h),k%=h,this.$d.hours=Y(k/o),k%=o,this.$d.minutes=Y(k/s),k%=s,this.$d.seconds=Y(k/a),k%=a,this.$d.milliseconds=k},x.toISOString=function(){var k=Z(this.$d.years,"Y"),P=Z(this.$d.months,"M"),Q=+this.$d.days||0;this.$d.weeks&&(Q+=7*this.$d.weeks);var q=Z(Q,"D"),p=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=k.negative||P.negative||q.negative||p.negative||w.negative||_.negative,v=p.format||w.format||_.format?"T":"",g=(c?"-":"")+"P"+k.format+P.format+q.format+v+p.format+w.format+_.format;return g==="P"||g==="-P"?"P0D":g},x.toJSON=function(){return this.toISOString()},x.format=function(k){var P=k||"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 P.replace(K,function(q,p){return p||String(Q[q])})},x.as=function(k){return this.$ms/H[V(k)]},x.get=function(k){var P=this.$ms,Q=V(k);return Q==="milliseconds"?P%=1000:P=Q==="weeks"?Y(P/H[Q]):this.$d[Q],P||0},x.add=function(k,P,Q){var q;return q=P?k*H[V(P)]:et(k)?k.$ms:W(k,this).$ms,W(this.$ms+q*(Q?-1:1),this)},x.subtract=function(k,P){return this.add(k,P,!0)},x.locale=function(k){var P=this.clone();return P.$l=k,P},x.clone=function(){return W(this.$ms,this)},x.humanize=function(k){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},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,k){return U.add(x.years()*k,"y").add(x.months()*k,"M").add(x.days()*k,"d").add(x.hours()*k,"h").add(x.minutes()*k,"m").add(x.seconds()*k,"s").add(x.milliseconds()*k,"ms")};return function(U,x,k){t=k,i=k().$utils(),k.duration=function(q,p){var w=k.locale();return W(q,{$l:w},p)},k.isDuration=et;var P=x.prototype.add,Q=x.prototype.subtract;x.prototype.add=function(q,p){return et(q)?st(this,q,1):P.bind(this)(q,p)},x.prototype.subtract=function(q,p){return et(q)?st(this,q,-1):Q.bind(this)(q,p)}}})});function Ne(t){return t}var Lt=1,Nt=2,Ht=3,At=4,ke=0.000001;function He(t){return"translate("+t+",0)"}function Be(t){return"translate(0,"+t+")"}function je(t){return(i)=>+t(i)}function Ge(t,i){if(i=Math.max(0,t.bandwidth()-i*2)/2,t.round())i=Math.round(i);return(a)=>+t(a)+i}function Xe(){return!this.__axis}function ye(t,i){var a=[],s=null,o=null,h=6,T=6,F=3,E=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?He:Be;function W(V){var S=s==null?i.ticks?i.ticks.apply(i,a):i.domain():s,Y=o==null?i.tickFormat?i.tickFormat.apply(i,a):Ne:o,C=Math.max(h,0)+F,Z=i.range(),rt=+Z[0]+E,st=+Z[Z.length-1]+E,U=(i.bandwidth?Ge:je)(i.copy(),E),x=V.selection?V.selection():V,k=x.selectAll(".domain").data([null]),P=x.selectAll(".tick").data(S,i).order(),Q=P.exit(),q=P.enter().append("g").attr("class","tick"),p=P.select("line"),w=P.select("text");if(k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(q),p=p.merge(q.append("line").attr("stroke","currentColor").attr(H+"2",K*h)),w=w.merge(q.append("text").attr("fill","currentColor").attr(H,K*C).attr("dy",t===Lt?"0em":t===Ht?"0.71em":"0.32em")),V!==x)k=k.transition(V),P=P.transition(V),p=p.transition(V),w=w.transition(V),Q=Q.transition(V).attr("opacity",ke).attr("transform",function(b){return isFinite(b=U(b))?et(b+E):this.getAttribute("transform")}),q.attr("opacity",ke).attr("transform",function(b){var _=this.parentNode.__axis;return et((_&&isFinite(_=_(b))?_:U(b))+E)});Q.remove(),k.attr("d",t===At||t===Nt?T?"M"+K*T+","+rt+"H"+E+"V"+st+"H"+K*T:"M"+E+","+rt+"V"+st:T?"M"+rt+","+K*T+"V"+E+"H"+st+"V"+K*T:"M"+rt+","+E+"H"+st),P.attr("opacity",1).attr("transform",function(b){return et(U(b)+E)}),p.attr(H+"2",K*h),w.attr(H,K*C).text(Y),x.filter(Xe).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?(F=+V,W):F},W.offset=function(V){return arguments.length?(E=+V,W):E},W}function ge(t){return ye(Lt,t)}function pe(t){return ye(Ht,t)}var Se=Fe(pn(),1),ut=Fe(Qi(),1),Ce=Fe(ve(),1),Me=Fe(Te(),1),Ee=Fe(be(),1),Dt=Fe(Qi(),1),Re=Fe(xe(),1);var te=function(){var t=e(function(_,c,v,g){for(v=v||{},g=_.length;g--;v[_[g]]=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],F=[1,31],E=[1,32],K=[1,33],H=[1,34],et=[1,9],W=[1,10],V=[1,11],S=[1,12],Y=[1,13],C=[1,14],Z=[1,15],rt=[1,16],st=[1,19],U=[1,20],x=[1,21],k=[1,22],P=[1,23],Q=[1,25],q=[1,35],p={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,g,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:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,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:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,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 g=Error(c);throw g.hash=v,g}},"parseError"),parse:e(function(c){var v=this,g=[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){g.length=g.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=g[g.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,Qi,n,y,j,A,L,R,I,M,D,O,u,m,pn,z}from"./index.a1bxkgd3.js";import{al,il,sl,on,Wt,sn,ln,ar,Fr,cn,is,os,Ar,ss,ls,un,zn,Kt,ll}from"./index.a6rz456z.js";import{Fe,Ke}from"./index.e35b4yh5.js";var ve=Ke(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(F){return F.add(4-F.isoWeekday(),t)},h=a.prototype;h.isoWeekYear=function(){return o(this).year()},h.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),t);var E,K,H,et,W=o(this),V=(E=this.isoWeekYear(),K=this.$u,H=(K?s.utc:s)().year(E).startOf("year"),et=4-H.isoWeekday(),H.isoWeekday()>4&&(et+=7),H.add(et,t));return W.diff(V,"week")+1},h.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var T=h.startOf;h.startOf=function(F,E){var K=this.$utils(),H=!!K.u(E)||E;return K.p(F)==="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)(F,E)}}})});var Te=Ke(function(Gt,Xt){(function(t,i){typeof Gt=="object"&&typeof Xt<"u"?Xt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Gt,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={},F=function(S){return(S=+S)+(S>68?1900:2000)},E=function(S){return function(Y){this[S]=+Y}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(Y){if(!Y)return 0;if(Y==="Z")return 0;var C=Y.match(/([+-]|\d\d)/g),Z=60*C[1]+(+C[2]||0);return Z===0?0:C[0]==="+"?-Z:Z}(S)}],H=function(S){var Y=T[S];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},et=function(S,Y){var C,Z=T.meridiem;if(Z){for(var rt=1;rt<=24;rt+=1)if(S.indexOf(Z(rt,0,Y))>-1){C=rt>12;break}}else C=S===(Y?"pm":"PM");return C},W={A:[h,function(S){this.afternoon=et(S,!1)}],a:[h,function(S){this.afternoon=et(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[o,E("seconds")],ss:[o,E("seconds")],m:[o,E("minutes")],mm:[o,E("minutes")],H:[o,E("hours")],h:[o,E("hours")],HH:[o,E("hours")],hh:[o,E("hours")],D:[o,E("day")],DD:[s,E("day")],Do:[h,function(S){var Y=T.ordinal,C=S.match(/\d+/);if(this.day=C[0],Y)for(var Z=1;Z<=31;Z+=1)Y(Z).replace(/\[|\]/g,"")===S&&(this.day=Z)}],w:[o,E("week")],ww:[s,E("week")],M:[o,E("month")],MM:[s,E("month")],MMM:[h,function(S){var Y=H("months"),C=(H("monthsShort")||Y.map(function(Z){return Z.slice(0,3)})).indexOf(S)+1;if(C<1)throw Error();this.month=C%12||C}],MMMM:[h,function(S){var Y=H("months").indexOf(S)+1;if(Y<1)throw Error();this.month=Y%12||Y}],Y:[/[+-]?\d+/,E("year")],YY:[s,function(S){this.year=F(S)}],YYYY:[/\d{4}/,E("year")],Z:K,ZZ:K};function V(S){var Y,C;Y=S,C=T&&T.formats;for(var Z=(S=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,q,p){var w=p&&p.toUpperCase();return q||C[p]||t[p]||C[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],k=x&&x[0],P=x&&x[1];Z[st]=P?{regex:k,parser:P}:U.replace(/^\[|\]$/g,"")}return function(Q){for(var q={},p=0,w=0;p<rt;p+=1){var b=Z[p];if(typeof b=="string")w+=b.length;else{var{regex:_,parser:c}=b,v=Q.slice(w),g=_.exec(v)[0];c.call(q,g),Q=Q.replace(g,"")}}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(S,Y,C){C.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(F=S.parseTwoDigitYear);var Z=Y.prototype,rt=Z.parse;Z.parse=function(st){var{date:U,utc:x,args:k}=st;this.$u=x;var P=k[1];if(typeof P=="string"){var Q=k[2]===!0,q=k[3]===!0,p=Q||q,w=k[2];q&&(w=k[2]),T=this.$locale(),!Q&&w&&(T=C.Ls[w]),this.$d=function(v,g,f,B){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1000:1)*v);var r=V(g)(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,P,x,C),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),p&&U!=this.format(P)&&(this.$d=new Date("")),T={}}else if(P instanceof Array)for(var b=P.length,_=1;_<=b;_+=1){k[1]=P[_-1];var c=C.apply(this,k);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=Ke(function(Ut,qt){(function(t,i){typeof Ut=="object"&&typeof qt<"u"?qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(Ut,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 F=this.$utils(),E=(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 F.s(h.week(),K==="w"?1:2,"0");case"W":case"WW":return F.s(h.isoWeek(),K==="W"?1:2,"0");case"k":case"kk":return F.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)(E)}}})});var xe=Ke(function(Zt,Qt){(function(t,i){typeof Zt=="object"&&typeof Qt<"u"?Qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=i()})(Zt,function(){var t,i,a=1000,s=60000,o=3600000,h=86400000,T=31536000000,F=2628000000,E=/^(-|\+)?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:F,days:h,hours:o,minutes:s,seconds:a,milliseconds:1,weeks:604800000},et=function(U){return U instanceof rt},W=function(U,x,k){return new rt(U,k,x.$l)},V=function(U){return i.p(U)+"s"},S=function(U){return U<0},Y=function(U){return S(U)?Math.ceil(U):Math.floor(U)},C=function(U){return Math.abs(U)},Z=function(U,x){return U?S(U)?{negative:!0,format:""+C(U)+x}:{negative:!1,format:""+U+x}:{negative:!1,format:""}},rt=function(){function U(k,P,Q){var q=this;if(this.$d={},this.$l=Q,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return W(k*H[V(P)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(b){q.$d[V(b)]=k[b]}),this.calMilliseconds(),this;if(typeof k=="string"){var p=k.match(E);if(p){var w=p.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 k=this;this.$ms=Object.keys(this.$d).reduce(function(P,Q){return P+(k.$d[Q]||0)*H[Q]},0)},x.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=Y(k/T),k%=T,this.$d.months=Y(k/F),k%=F,this.$d.days=Y(k/h),k%=h,this.$d.hours=Y(k/o),k%=o,this.$d.minutes=Y(k/s),k%=s,this.$d.seconds=Y(k/a),k%=a,this.$d.milliseconds=k},x.toISOString=function(){var k=Z(this.$d.years,"Y"),P=Z(this.$d.months,"M"),Q=+this.$d.days||0;this.$d.weeks&&(Q+=7*this.$d.weeks);var q=Z(Q,"D"),p=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=k.negative||P.negative||q.negative||p.negative||w.negative||_.negative,v=p.format||w.format||_.format?"T":"",g=(c?"-":"")+"P"+k.format+P.format+q.format+v+p.format+w.format+_.format;return g==="P"||g==="-P"?"P0D":g},x.toJSON=function(){return this.toISOString()},x.format=function(k){var P=k||"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 P.replace(K,function(q,p){return p||String(Q[q])})},x.as=function(k){return this.$ms/H[V(k)]},x.get=function(k){var P=this.$ms,Q=V(k);return Q==="milliseconds"?P%=1000:P=Q==="weeks"?Y(P/H[Q]):this.$d[Q],P||0},x.add=function(k,P,Q){var q;return q=P?k*H[V(P)]:et(k)?k.$ms:W(k,this).$ms,W(this.$ms+q*(Q?-1:1),this)},x.subtract=function(k,P){return this.add(k,P,!0)},x.locale=function(k){var P=this.clone();return P.$l=k,P},x.clone=function(){return W(this.$ms,this)},x.humanize=function(k){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},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,k){return U.add(x.years()*k,"y").add(x.months()*k,"M").add(x.days()*k,"d").add(x.hours()*k,"h").add(x.minutes()*k,"m").add(x.seconds()*k,"s").add(x.milliseconds()*k,"ms")};return function(U,x,k){t=k,i=k().$utils(),k.duration=function(q,p){var w=k.locale();return W(q,{$l:w},p)},k.isDuration=et;var P=x.prototype.add,Q=x.prototype.subtract;x.prototype.add=function(q,p){return et(q)?st(this,q,1):P.bind(this)(q,p)},x.prototype.subtract=function(q,p){return et(q)?st(this,q,-1):Q.bind(this)(q,p)}}})});function Ne(t){return t}var Lt=1,Nt=2,Ht=3,At=4,ke=0.000001;function He(t){return"translate("+t+",0)"}function Be(t){return"translate(0,"+t+")"}function je(t){return(i)=>+t(i)}function Ge(t,i){if(i=Math.max(0,t.bandwidth()-i*2)/2,t.round())i=Math.round(i);return(a)=>+t(a)+i}function Xe(){return!this.__axis}function ye(t,i){var a=[],s=null,o=null,h=6,T=6,F=3,E=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?He:Be;function W(V){var S=s==null?i.ticks?i.ticks.apply(i,a):i.domain():s,Y=o==null?i.tickFormat?i.tickFormat.apply(i,a):Ne:o,C=Math.max(h,0)+F,Z=i.range(),rt=+Z[0]+E,st=+Z[Z.length-1]+E,U=(i.bandwidth?Ge:je)(i.copy(),E),x=V.selection?V.selection():V,k=x.selectAll(".domain").data([null]),P=x.selectAll(".tick").data(S,i).order(),Q=P.exit(),q=P.enter().append("g").attr("class","tick"),p=P.select("line"),w=P.select("text");if(k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(q),p=p.merge(q.append("line").attr("stroke","currentColor").attr(H+"2",K*h)),w=w.merge(q.append("text").attr("fill","currentColor").attr(H,K*C).attr("dy",t===Lt?"0em":t===Ht?"0.71em":"0.32em")),V!==x)k=k.transition(V),P=P.transition(V),p=p.transition(V),w=w.transition(V),Q=Q.transition(V).attr("opacity",ke).attr("transform",function(b){return isFinite(b=U(b))?et(b+E):this.getAttribute("transform")}),q.attr("opacity",ke).attr("transform",function(b){var _=this.parentNode.__axis;return et((_&&isFinite(_=_(b))?_:U(b))+E)});Q.remove(),k.attr("d",t===At||t===Nt?T?"M"+K*T+","+rt+"H"+E+"V"+st+"H"+K*T:"M"+E+","+rt+"V"+st:T?"M"+rt+","+K*T+"V"+E+"H"+st+"V"+K*T:"M"+rt+","+E+"H"+st),P.attr("opacity",1).attr("transform",function(b){return et(U(b)+E)}),p.attr(H+"2",K*h),w.attr(H,K*C).text(Y),x.filter(Xe).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?(F=+V,W):F},W.offset=function(V){return arguments.length?(E=+V,W):E},W}function ge(t){return ye(Lt,t)}function pe(t){return ye(Ht,t)}var Se=Fe(pn(),1),ut=Fe(Qi(),1),Ce=Fe(ve(),1),Me=Fe(Te(),1),Ee=Fe(be(),1),Dt=Fe(Qi(),1),Re=Fe(xe(),1);var te=function(){var t=e(function(_,c,v,g){for(v=v||{},g=_.length;g--;v[_[g]]=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],F=[1,31],E=[1,32],K=[1,33],H=[1,34],et=[1,9],W=[1,10],V=[1,11],S=[1,12],Y=[1,13],C=[1,14],Z=[1,15],rt=[1,16],st=[1,19],U=[1,20],x=[1,21],k=[1,22],P=[1,23],Q=[1,25],q=[1,35],p={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,g,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:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,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:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,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 g=Error(c);throw g.hash=v,g}},"parseError"),parse:e(function(c){var v=this,g=[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){g.length=g.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=g[g.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&&lt.length>1)throw Error("Parse Error: multiple actions possible at state: "+ft+", token: "+ot);switch(lt[0]){case 1:if(g.push(ot),B.push(J.yytext),r.push(J.yylloc),g.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)g=g.slice(0,-1*yt*2),B=B.slice(0,-1*yt),r=r.slice(0,-1*yt);g.push(this.productions_[lt[1]][0]),B.push(wt.$),r.push(wt._$),me=G[g[g.length-2]][g[g.length-1]],g.push(me);break;case 3:return!0}}return!0},"parse")},w=function(){var _={EOF:1,parseError:e(function(v,g){if(this.yy.parser)this.yy.parser.parseError(v,g);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,g=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),g.length-1)this.yylineno-=g.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:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[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 g,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],g=this.performAction.call(this,this.yy,this,v,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(g)return g;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,g,f;if(!this._more)this.yytext="",this.match="";var B=this._currentRules();for(var r=0;r<B.length;r++)if(g=this._input.match(this.rules[B[r]]),g&&(!v||g[0].length>v[0].length)){if(v=g,f=r,this.options.backtrack_lexer)if(c=this.test_match(g,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,g,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 _}();p.lexer=w;function b(){this.yy={}}return e(b,"Parser"),b.prototype=p,p.Parser=b,new b}();te.parser=te;var Ue=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=[],Vt=[],Et="",le="",Ie=["active","done","crit","milestone","vert"],ue=[],_t="",It=!1,de=!1,fe="sunday",Pt="saturday",ee=0,qe=e(function(){ce=[],Vt=[],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"),Ze=e(function(t){_t=t},"setDiagramId"),Qe=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 Vt=ct,Vt},"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,F]=wi(o,h,i,a,s);t.endTime=T.toDate(),t.renderEndTime=F},"checkTaskDates"),wi=e(function(t,i,a,s,o){let h=!1,T=null,F=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>F)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((F)=>{let E=F.trim();return E==="x"||E==="X"},"isTimestampFormat")(i)&&/^\d+$/.test(a))return new Date(Number(a));let h=/^after\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let F=null,E=[],K=h.groups.ids.split(" ").filter((et)=>et!=="");for(let et of K){let W=vt(et);if(W===void 0){E.push(et);continue}if(!F||W.endTime>F.endTime)F=W}if(E.length>0)Le("after",E);if(F)return F.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 F=new Date(a);if(F===void 0||isNaN(F.getTime())||F.getFullYear()<-1e4||F.getFullYear()>1e4)throw Error("Invalid date:"+a);return F}},"getStartDate"),Oe=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"),We=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((S)=>S!=="");for(let S of W){let Y=vt(S);if(Y===void 0){et.push(S);continue}if(!H||Y.startTime<H.startTime)H=Y}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 F=ut.default(t),[E,K]=Oe(a);if(Number.isNaN(E))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=F.add(E,K);if(H.isValid())F=H}return F.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=We(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,Vt.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=We(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)ze(s,()=>{window.open(a,"_self")}),oe.set(s,a)}),Pe(t,"clickable")},"setLink"),Pe=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)ze(t,()=>{z.runFunc(i,...s)})},"setClickFun"),ze=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)}),Pe(t,"clickable")},"setClickEvent"),Yi=e(function(t){ue.forEach(function(i){i(t)})},"bindFunctions"),$i={getConfig:e(()=>u().gantt,"getConfig"),clear:qe,setDateFormat:ri,getDateFormat:di,enableInclusiveEndDates:si,endDatesAreInclusive:ai,enableTopAxis:oi,topAxisEnabled:ci,setAxisFormat:Qe,getAxisFormat:Je,setTickInterval:ti,getTickInterval:ei,setTodayMarker:ii,getTodayMarker:ni,setAccTitle:L,getAccTitle:I,setDiagramTitle:O,getDiagramTitle:D,setDiagramId:Ze,setDisplayMode:li,getDisplayMode:ui,setAccDescription:R,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:Oe,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(Re.default);var Ai=e(function(){n.debug("Something is calling, setConf, remove the call")},"setConf"),De={monday:cn,tuesday:is,wednesday:os,thursday:Ar,friday:ss,saturday:ls,sunday:Fr},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=m("#i"+i);let F=h==="sandbox"?m(T.nodes()[0].contentDocument.body):m("body"),E=h==="sandbox"?T.nodes()[0].contentDocument:document,K=E.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((p)=>!p.vert),W=[];for(let p of et)W.push(p.type);W=q(W);let V={},S=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let p={};for(let b of et)if(p[b.section]===void 0)p[b.section]=[b];else p[b.section].push(b);let w=0;for(let b of Object.keys(p)){let _=Li(p[b],w)+1;w+=_,S+=_*(o.barHeight+o.barGap),V[b]=_}}else{S+=et.length*(o.barHeight+o.barGap);for(let p of W)V[p]=et.filter((w)=>w.type===p).length}K.setAttribute("viewBox","0 0 "+gt+" "+S);let Y=F.select(`[id="${i}"]`),C=ll().domain([il(H,function(p){return p.startTime}),al(H,function(p){return p.endTime})]).rangeRound([0,gt-o.leftPadding-o.rightPadding]);function Z(p,w){let b=p.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,S),j(Y,S,gt,o.useMaxWidth),Y.append("text").text(s.db.getDiagramTitle()).attr("x",gt/2).attr("y",o.titleTopMargin).attr("class","titleText");function rt(p,w,b){let _=o.barHeight,c=_+o.barGap,{topPadding:v,leftPadding:g}=o,f=Kt().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(sl);U(c,v,g,w,b,p,s.db.getExcludes(),s.db.getIncludes()),k(g,v,w,b),st(p,c,v,g,_,f,w,b),P(c,v,g,_,f),Q(g,v,w,b)}e(rt,"makeGantt");function st(p,w,b,_,c,v,g){p.sort((l,N)=>l.vert===N.vert?0:l.vert?1:-1);let f=p.filter((l)=>!l.vert),r=[...new Set(f.map((l)=>l.order))].map((l)=>f.find((N)=>N.order===l));Y.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 g-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=Y.append("g").selectAll("rect").data(p).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 C(l.startTime)+_+0.5*(C(l.endTime)-C(l.startTime))-0.5*c;return C(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 C(l.renderEndTime||l.endTime)-C(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,(C(l.startTime)+_+0.5*(C(l.endTime)-C(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=C(l.startTime),X=C(l.renderEndTime||l.endTime);if(l.milestone)N+=0.5*(C(l.endTime)-C(l.startTime))-0.5*c,X=N+c;if(l.vert)return C(l.startTime)+_;let it=this.getBBox().width;if(it>X-N)if(X+it+1.5*o.leftPadding>g)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=C(l.startTime),X=C(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>g)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=m("#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(p,w,b,_,c,v,g,f){if(g.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,g,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")}Y.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",(X)=>i+"-exclude-"+X.start.format("YYYY-MM-DD")).attr("x",(X)=>C(X.start.startOf("day"))+b).attr("y",o.gridLineStartPadding).attr("width",(X)=>C(X.end.endOf("day"))-C(X.start.startOf("day"))).attr("height",c-w-o.gridLineStartPadding).attr("transform-origin",function(X,it){return(C(X.start)+b+0.5*(C(X.end)-C(X.start))).toString()+"px "+(it*p+0.5*c).toString()+"px"}).attr("class","exclude-range")}e(U,"drawExcludeDays");function x(p,w,b,_){if(b<=0||p>w)return 1/0;let c=w-p,v=Dt.default.duration({[_??"day"]:b}).asMilliseconds();if(v<=0)return 1/0;return Math.ceil(c/v)}e(x,"getEstimatedTickCount");function k(p,w,b,_){let c=s.db.getDateFormat(),v=s.db.getAxisFormat(),g;if(v)g=v;else if(c==="D")g="%d";else g=o.axisFormat??"%Y-%m-%d";let f=pe(C).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(g)),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=C.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(Wt.every(G));break;case"minute":f.ticks(sn.every(G));break;case"hour":f.ticks(ln.every(G));break;case"day":f.ticks(ar.every(G));break;case"week":f.ticks(De[at].every(G));break;case"month":f.ticks(un.every(G));break}}}if(Y.append("g").attr("class","grid").attr("transform","translate("+p+", "+(_-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(C).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(g));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=C.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(Wt.every(d));break;case"minute":G.ticks(sn.every(d));break;case"hour":G.ticks(ln.every(d));break;case"day":G.ticks(ar.every(d));break;case"week":G.ticks(De[l].every(d));break;case"month":G.ticks(un.every(d));break}}}Y.append("g").attr("class","grid").attr("transform","translate("+p+", "+w+")").call(G).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(k,"makeGrid");function P(p,w){let b=0,_=Object.keys(V).map((c)=>[c,V[c]]);Y.append("g").selectAll("text").data(_).enter().append(function(c){let v=c[0].split(y.lineBreakRegex),g=-(v.length-1)/2,f=E.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",g+"em");for(let[B,r]of v.entries()){let G=E.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 g=0;g<v;g++)return b+=_[v-1][1],c[1]*p/2+b*p+w;else return c[1]*p/2+w}).attr("font-size",o.sectionFontSize).attr("class",function(c){for(let[v,g]of W.entries())if(c[0]===g)return"sectionTitle sectionTitle"+v%o.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function Q(p,w,b,_){let c=s.db.getTodayMarker();if(c==="off")return;let v=Y.append("g").attr("class","today"),g=new Date,f=v.append("line");if(f.attr("x1",C(g)+p).attr("x2",C(g)+p).attr("y1",o.titleTopMargin).attr("y2",_-o.titleTopMargin).attr("class","today"),c!=="")f.attr("style",c.replace(/,/g,";"))}e(Q,"drawToday");function q(p){let w={},b=[];for(let _=0,c=p.length;_<c;++_)if(!Object.prototype.hasOwnProperty.call(w,p[_]))w[p[_]]=!0,b.push(p[_]);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,g,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 _}();p.lexer=w;function b(){this.yy={}}return e(b,"Parser"),b.prototype=p,p.Parser=b,new b}();te.parser=te;var Ue=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=[],Vt=[],Et="",le="",Ie=["active","done","crit","milestone","vert"],ue=[],_t="",It=!1,de=!1,fe="sunday",Pt="saturday",ee=0,qe=e(function(){ce=[],Vt=[],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"),Ze=e(function(t){_t=t},"setDiagramId"),Qe=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 Vt=ct,Vt},"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,F]=wi(o,h,i,a,s);t.endTime=T.toDate(),t.renderEndTime=F},"checkTaskDates"),wi=e(function(t,i,a,s,o){let h=!1,T=null,F=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>F)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((F)=>{let E=F.trim();return E==="x"||E==="X"},"isTimestampFormat")(i)&&/^\d+$/.test(a))return new Date(Number(a));let h=/^after\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let F=null,E=[],K=h.groups.ids.split(" ").filter((et)=>et!=="");for(let et of K){let W=vt(et);if(W===void 0){E.push(et);continue}if(!F||W.endTime>F.endTime)F=W}if(E.length>0)Le("after",E);if(F)return F.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 F=new Date(a);if(F===void 0||isNaN(F.getTime())||F.getFullYear()<-1e4||F.getFullYear()>1e4)throw Error("Invalid date:"+a);return F}},"getStartDate"),Oe=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"),We=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((S)=>S!=="");for(let S of W){let Y=vt(S);if(Y===void 0){et.push(S);continue}if(!H||Y.startTime<H.startTime)H=Y}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 F=ut.default(t),[E,K]=Oe(a);if(Number.isNaN(E))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=F.add(E,K);if(H.isValid())F=H}return F.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=We(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,Vt.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=We(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)ze(s,()=>{window.open(a,"_self")}),oe.set(s,a)}),Pe(t,"clickable")},"setLink"),Pe=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)ze(t,()=>{z.runFunc(i,...s)})},"setClickFun"),ze=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)}),Pe(t,"clickable")},"setClickEvent"),Yi=e(function(t){ue.forEach(function(i){i(t)})},"bindFunctions"),$i={getConfig:e(()=>u().gantt,"getConfig"),clear:qe,setDateFormat:ri,getDateFormat:di,enableInclusiveEndDates:si,endDatesAreInclusive:ai,enableTopAxis:oi,topAxisEnabled:ci,setAxisFormat:Qe,getAxisFormat:Je,setTickInterval:ti,getTickInterval:ei,setTodayMarker:ii,getTodayMarker:ni,setAccTitle:L,getAccTitle:R,setDiagramTitle:D,getDiagramTitle:O,setDiagramId:Ze,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:Oe,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(Re.default);var Ai=e(function(){n.debug("Something is calling, setConf, remove the call")},"setConf"),De={monday:cn,tuesday:is,wednesday:os,thursday:Ar,friday:ss,saturday:ls,sunday:Fr},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=m("#i"+i);let F=h==="sandbox"?m(T.nodes()[0].contentDocument.body):m("body"),E=h==="sandbox"?T.nodes()[0].contentDocument:document,K=E.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((p)=>!p.vert),W=[];for(let p of et)W.push(p.type);W=q(W);let V={},S=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let p={};for(let b of et)if(p[b.section]===void 0)p[b.section]=[b];else p[b.section].push(b);let w=0;for(let b of Object.keys(p)){let _=Li(p[b],w)+1;w+=_,S+=_*(o.barHeight+o.barGap),V[b]=_}}else{S+=et.length*(o.barHeight+o.barGap);for(let p of W)V[p]=et.filter((w)=>w.type===p).length}K.setAttribute("viewBox","0 0 "+gt+" "+S);let Y=F.select(`[id="${i}"]`),C=ll().domain([il(H,function(p){return p.startTime}),al(H,function(p){return p.endTime})]).rangeRound([0,gt-o.leftPadding-o.rightPadding]);function Z(p,w){let b=p.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,S),j(Y,S,gt,o.useMaxWidth),Y.append("text").text(s.db.getDiagramTitle()).attr("x",gt/2).attr("y",o.titleTopMargin).attr("class","titleText");function rt(p,w,b){let _=o.barHeight,c=_+o.barGap,{topPadding:v,leftPadding:g}=o,f=Kt().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(sl);U(c,v,g,w,b,p,s.db.getExcludes(),s.db.getIncludes()),k(g,v,w,b),st(p,c,v,g,_,f,w,b),P(c,v,g,_,f),Q(g,v,w,b)}e(rt,"makeGantt");function st(p,w,b,_,c,v,g){p.sort((l,N)=>l.vert===N.vert?0:l.vert?1:-1);let f=p.filter((l)=>!l.vert),r=[...new Set(f.map((l)=>l.order))].map((l)=>f.find((N)=>N.order===l));Y.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 g-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=Y.append("g").selectAll("rect").data(p).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 C(l.startTime)+_+0.5*(C(l.endTime)-C(l.startTime))-0.5*c;return C(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 C(l.renderEndTime||l.endTime)-C(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,(C(l.startTime)+_+0.5*(C(l.endTime)-C(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=C(l.startTime),X=C(l.renderEndTime||l.endTime);if(l.milestone)N+=0.5*(C(l.endTime)-C(l.startTime))-0.5*c,X=N+c;if(l.vert)return C(l.startTime)+_;let it=this.getBBox().width;if(it>X-N)if(X+it+1.5*o.leftPadding>g)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=C(l.startTime),X=C(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>g)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=m("#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(p,w,b,_,c,v,g,f){if(g.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,g,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")}Y.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",(X)=>i+"-exclude-"+X.start.format("YYYY-MM-DD")).attr("x",(X)=>C(X.start.startOf("day"))+b).attr("y",o.gridLineStartPadding).attr("width",(X)=>C(X.end.endOf("day"))-C(X.start.startOf("day"))).attr("height",c-w-o.gridLineStartPadding).attr("transform-origin",function(X,it){return(C(X.start)+b+0.5*(C(X.end)-C(X.start))).toString()+"px "+(it*p+0.5*c).toString()+"px"}).attr("class","exclude-range")}e(U,"drawExcludeDays");function x(p,w,b,_){if(b<=0||p>w)return 1/0;let c=w-p,v=Dt.default.duration({[_??"day"]:b}).asMilliseconds();if(v<=0)return 1/0;return Math.ceil(c/v)}e(x,"getEstimatedTickCount");function k(p,w,b,_){let c=s.db.getDateFormat(),v=s.db.getAxisFormat(),g;if(v)g=v;else if(c==="D")g="%d";else g=o.axisFormat??"%Y-%m-%d";let f=pe(C).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(g)),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=C.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(Wt.every(G));break;case"minute":f.ticks(sn.every(G));break;case"hour":f.ticks(ln.every(G));break;case"day":f.ticks(ar.every(G));break;case"week":f.ticks(De[at].every(G));break;case"month":f.ticks(un.every(G));break}}}if(Y.append("g").attr("class","grid").attr("transform","translate("+p+", "+(_-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(C).tickSize(-_+w+o.gridLineStartPadding).tickFormat(zn(g));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=C.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(Wt.every(d));break;case"minute":G.ticks(sn.every(d));break;case"hour":G.ticks(ln.every(d));break;case"day":G.ticks(ar.every(d));break;case"week":G.ticks(De[l].every(d));break;case"month":G.ticks(un.every(d));break}}}Y.append("g").attr("class","grid").attr("transform","translate("+p+", "+w+")").call(G).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(k,"makeGrid");function P(p,w){let b=0,_=Object.keys(V).map((c)=>[c,V[c]]);Y.append("g").selectAll("text").data(_).enter().append(function(c){let v=c[0].split(y.lineBreakRegex),g=-(v.length-1)/2,f=E.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",g+"em");for(let[B,r]of v.entries()){let G=E.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 g=0;g<v;g++)return b+=_[v-1][1],c[1]*p/2+b*p+w;else return c[1]*p/2+w}).attr("font-size",o.sectionFontSize).attr("class",function(c){for(let[v,g]of W.entries())if(c[0]===g)return"sectionTitle sectionTitle"+v%o.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function Q(p,w,b,_){let c=s.db.getTodayMarker();if(c==="off")return;let v=Y.append("g").attr("class","today"),g=new Date,f=v.append("line");if(f.attr("x1",C(g)+p).attr("x2",C(g)+p).attr("y1",o.titleTopMargin).attr("y2",_-o.titleTopMargin).attr("class","today"),c!=="")f.attr("style",c.replace(/,/g,";"))}e(Q,"drawToday");function q(p){let w={},b=[];for(let _=0,c=p.length;_<c;++_)if(!Object.prototype.hasOwnProperty.call(w,p[_]))w[p[_]]=!0,b.push(p[_]);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.7gxz6d1f.js";export{Zo as createGitGraphServices};
@@ -1,4 +1,4 @@
1
- import{ee}from"./index.btq862bx.js";import{Br}from"./index.nphh2dtn.js";import{e,n,F,k,y,A,L,I,R,M,O,D,u,ra,m,xs,K,z}from"./index.mjfjqm0b.js";import{se}from"./index.yd3167gn.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=F.gitGraph,Z=e(()=>K({...Ce,...k().gitGraph}),"getConfig"),l=new Br(()=>{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??C.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),g=s?l.records.commits.get(s):void 0,p=o?l.records.commits.get(o):void 0;if(g&&p&&g.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(g===void 0||!g){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(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){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:"",f={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:C.MERGE,customType:c,customId:a?!0:!1,tags:i??[]};l.records.head=f,l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.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((g)=>y.sanitizeText(g,h)),i=y.sanitizeText(i,h),!r||!l.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}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===C.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 f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=l.records.branches.get(l.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=l.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}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:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${s.id}${s.type===C.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:C,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:I,getAccDescription:M,setAccDescription:R,setDiagramTitle:O,getDiagramTitle:D},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?C[t.type]:C.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?C[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 se("gitGraph",t);n.debug(r),He(r,ue)},"parse")},Y=10,j=40,q=4,S=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"),_=new Map,G=new Map,ae=30,Q=new Map,oe=[],N=0,w="LR",Ve=e(()=>{_.clear(),G.clear(),Q.clear(),N=0,oe=[],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"?G.get(i)?.y:G.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=G.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 g=Ze(o.parents);if(c=G.get(g).y-j,c<=i)i=c;let p=_.get(o.branch).pos,x=c-Y;G.set(o.id,{x:p,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=G.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=_.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let c=a.pos,i=r+Y;return G.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,a)=>{let c=_.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+a,h=c.pos;G.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,a,c,i,h)=>{let{theme:s}=u(),o=ce.has(s??""),g=ge.has(s??""),p=Ue.has(s??"");if(h===C.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,g)} ${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,g)} ${c}-inner`);else if(h===C.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",p?"#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",p?"#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",p?"#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",p?"#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,g)}`),h===C.MERGE){let f=t.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${c} ${r.id} commit${V(i,U,g)}`)}if(h===C.REVERSE){let f=t.append("path"),d=o?4:5;f.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,g)}`)}}},"drawCommitBullet"),at=e((t,r,a,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.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),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-S).attr("y",a.y+13.5).attr("width",g.width+2*S).attr("height",g.height+2*S),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*q+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*q)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.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 p=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;h.attr("transform","translate("+p+", "+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 g of r.tags.reverse()){let p=t.insert("polygon"),x=t.append("circle"),f=t.append("text").attr("y",a.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),s=Math.max(s,d.height),f.attr("x",a.posWithOffset-d.width/2),o.push({tag:f,hole:x,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:x,yOffset:f}of o){let d=s/2,B=a.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
1
+ import{ee}from"./index.r0p3fm9f.js";import{Br}from"./index.8f3x951p.js";import{e,n,F,k,y,A,L,R,I,M,D,O,u,ra,m,xs,K,z}from"./index.a1bxkgd3.js";import{se}from"./index.7gxz6d1f.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=F.gitGraph,Z=e(()=>K({...Ce,...k().gitGraph}),"getConfig"),l=new Br(()=>{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??C.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),g=s?l.records.commits.get(s):void 0,p=o?l.records.commits.get(o):void 0;if(g&&p&&g.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(g===void 0||!g){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(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){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:"",f={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:C.MERGE,customType:c,customId:a?!0:!1,tags:i??[]};l.records.head=f,l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.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((g)=>y.sanitizeText(g,h)),i=y.sanitizeText(i,h),!r||!l.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}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===C.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 f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=l.records.branches.get(l.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=l.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}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:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${s.id}${s.type===C.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:C,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:D,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?C[t.type]:C.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?C[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 se("gitGraph",t);n.debug(r),He(r,ue)},"parse")},Y=10,j=40,q=4,S=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"),_=new Map,G=new Map,ae=30,Q=new Map,oe=[],N=0,w="LR",Ve=e(()=>{_.clear(),G.clear(),Q.clear(),N=0,oe=[],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"?G.get(i)?.y:G.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=G.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 g=Ze(o.parents);if(c=G.get(g).y-j,c<=i)i=c;let p=_.get(o.branch).pos,x=c-Y;G.set(o.id,{x:p,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=G.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=_.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let c=a.pos,i=r+Y;return G.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,a)=>{let c=_.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+a,h=c.pos;G.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,a,c,i,h)=>{let{theme:s}=u(),o=ce.has(s??""),g=ge.has(s??""),p=Ue.has(s??"");if(h===C.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,g)} ${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,g)} ${c}-inner`);else if(h===C.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",p?"#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",p?"#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",p?"#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",p?"#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,g)}`),h===C.MERGE){let f=t.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${c} ${r.id} commit${V(i,U,g)}`)}if(h===C.REVERSE){let f=t.append("path"),d=o?4:5;f.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,g)}`)}}},"drawCommitBullet"),at=e((t,r,a,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.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),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-S).attr("y",a.y+13.5).attr("width",g.width+2*S).attr("height",g.height+2*S),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*q+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*q)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.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 p=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;h.attr("transform","translate("+p+", "+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 g of r.tags.reverse()){let p=t.insert("polygon"),x=t.append("circle"),f=t.append("text").attr("y",a.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),s=Math.max(s,d.height),f.attr("x",a.posWithOffset-d.width/2),o.push({tag:f,hole:x,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:x,yOffset:f}of o){let d=s/2,B=a.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
2
2
  ${c-h/2-q/2},${B+S}
3
3
  ${c-h/2-q/2},${B-S}
4
4
  ${a.posWithOffset-h/2-q},${B-d-S}