import{ac as ze,ad as Ne,ae as Ve,af as Pe,ag as yn,ah as Gt,ai as kn,aj as nt,c as xt,s as pn,g as Tn,v as vn,x as xn,b as bn,a as wn,m as Cn,z as Dn,n as Mn,l as ae,h as Ht,i as Sn,j as _n,y as Un}from"./index-jpNTxDe4.js";import{h as me,g as de}from"./index-2K3MavtT.js";import{b as Yn,t as De,c as Fn,a as Ln,l as En}from"./linear-WA_JRKe7.js";import{i as An}from"./init-Hi12RPRh.js";function In(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Wn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function On(t){return t}var Nt=1,Qt=2,oe=3,zt=4,Me=1e-6;function Hn(t){return"translate("+t+",0)"}function zn(t){return"translate(0,"+t+")"}function Nn(t){return e=>+t(e)}function Vn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Pn(){return!this.__axis}function Re(t,e){var n=[],r=null,i=null,s=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===Nt||t===zt?-1:1,D=t===zt||t===Qt?"x":"y",_=t===Nt||t===oe?Hn:zn;function w(b){var P=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):On),Y=Math.max(s,0)+y,H=e.range(),O=+H[0]+M,N=+H[H.length-1]+M,V=(e.bandwidth?Vn:Nn)(e.copy(),M),j=b.selection?b.selection():b,x=j.selectAll(".domain").data([null]),E=j.selectAll(".tick").data(P,e).order(),T=E.exit(),l=E.enter().append("g").attr("class","tick"),f=E.select("line"),m=E.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(l),f=f.merge(l.append("line").attr("stroke","currentColor").attr(D+"2",p*s)),m=m.merge(l.append("text").attr("fill","currentColor").attr(D,p*Y).attr("dy",t===Nt?"0em":t===oe?"0.71em":"0.32em")),b!==j&&(x=x.transition(b),E=E.transition(b),f=f.transition(b),m=m.transition(b),T=T.transition(b).attr("opacity",Me).attr("transform",function(c){return isFinite(c=V(c))?_(c+M):this.getAttribute("transform")}),l.attr("opacity",Me).attr("transform",function(c){var v=this.parentNode.__axis;return _((v&&isFinite(v=v(c))?v:V(c))+M)})),T.remove(),x.attr("d",t===zt||t===Qt?o?"M"+p*o+","+O+"H"+M+"V"+N+"H"+p*o:"M"+M+","+O+"V"+N:o?"M"+O+","+p*o+"V"+M+"H"+N+"V"+p*o:"M"+O+","+M+"H"+N),E.attr("opacity",1).attr("transform",function(c){return _(V(c)+M)}),f.attr(D+"2",p*s),m.attr(D,p*Y).text(g),j.filter(Pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Qt?"start":t===zt?"end":"middle"),j.each(function(){this.__axis=V})}return w.scale=function(b){return arguments.length?(e=b,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),w):n.slice()},w.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),w):r&&r.slice()},w.tickFormat=function(b){return arguments.length?(i=b,w):i},w.tickSize=function(b){return arguments.length?(s=o=+b,w):s},w.tickSizeInner=function(b){return arguments.length?(s=+b,w):s},w.tickSizeOuter=function(b){return arguments.length?(o=+b,w):o},w.tickPadding=function(b){return arguments.length?(y=+b,w):y},w.offset=function(b){return arguments.length?(M=+b,w):M},w}function Rn(t){return Re(Nt,t)}function Bn(t){return Re(oe,t)}const Zn=Math.PI/180,Xn=180/Math.PI,Rt=18,Be=.96422,Ze=1,Xe=.82521,qe=4/29,bt=6/29,je=3*bt*bt,qn=bt*bt*bt;function Ge(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof lt)return Qe(t);t instanceof Ve||(t=yn(t));var e=te(t.r),n=te(t.g),r=te(t.b),i=Jt((.2225045*e+.7168786*n+.0606169*r)/Ze),s,o;return e===n&&n===r?s=o=i:(s=Jt((.4360747*e+.3850649*n+.1430804*r)/Be),o=Jt((.0139322*e+.0971045*n+.7141733*r)/Xe)),new ot(116*i-16,500*(s-i),200*(i-o),t.opacity)}function jn(t,e,n,r){return arguments.length===1?Ge(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}ze(ot,jn,Ne(Pe,{brighter(t){return new ot(this.l+Rt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Rt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*Kt(e),t=Ze*Kt(t),n=Xe*Kt(n),new Ve($t(3.1338561*e-1.6168667*t-.4906146*n),$t(-.9787684*e+1.9161415*t+.033454*n),$t(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Jt(t){return t>qn?Math.pow(t,1/3):t/je+qe}function Kt(t){return t>bt?t*t*t:je*(t-qe)}function $t(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function te(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gn(t){if(t instanceof lt)return new lt(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=Ge(t)),t.a===0&&t.b===0)return new lt(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),y=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,y)=>{const M=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return M;let p;do M.push(p=new Date(+s)),e(s,y),t(s);while(ptt(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;e(o,-1),!s(o););else for(;--y>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(ee.setTime(+s),ne.setTime(+o),t(ee),t(ne),Math.floor(n(ee,ne))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Bt=tt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Bt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?tt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Bt);Bt.range;const ut=1e3,it=ut*60,ft=it*60,ht=ft*24,ge=ht*7,Se=ht*30,re=ht*365,vt=tt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCSeconds());vt.range;const Lt=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ut)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getMinutes());Lt.range;const $n=tt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getUTCMinutes());$n.range;const Et=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ut-t.getMinutes()*it)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getHours());Et.range;const tr=tt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCHours());tr.range;const gt=tt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*it)/ht,t=>t.getDate()-1);gt.range;const ye=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ht,t=>t.getUTCDate()-1);ye.range;const er=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ht,t=>Math.floor(t/ht));er.range;function kt(t){return tt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*it)/ge)}const Ct=kt(0),Zt=kt(1),nr=kt(2),rr=kt(3),Dt=kt(4),ir=kt(5),sr=kt(6);Ct.range;Zt.range;nr.range;rr.range;Dt.range;ir.range;sr.range;function pt(t){return tt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ge)}const Je=pt(0),Xt=pt(1),ar=pt(2),or=pt(3),Mt=pt(4),cr=pt(5),lr=pt(6);Je.range;Xt.range;ar.range;or.range;Mt.range;cr.range;lr.range;const At=tt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());At.range;const ur=tt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ur.range;const mt=tt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const yt=tt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});yt.range;function fr(t,e,n,r,i,s){const o=[[vt,1,ut],[vt,5,5*ut],[vt,15,15*ut],[vt,30,30*ut],[s,1,it],[s,5,5*it],[s,15,15*it],[s,30,30*it],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[r,1,ht],[r,2,2*ht],[n,1,ge],[e,1,Se],[e,3,3*Se],[t,1,re]];function y(p,D,_){const w=DY).right(o,w);if(b===o.length)return t.every(De(p/re,D/re,_));if(b===0)return Bt.every(Math.max(De(p,D,_),1));const[P,g]=o[w/o[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(I=se(Ut(u.y,0,1)),Q=I.getUTCDay(),I=Q>4||Q===0?Xt.ceil(I):Xt(I),I=ye.offset(I,(u.V-1)*7),u.y=I.getUTCFullYear(),u.m=I.getUTCMonth(),u.d=I.getUTCDate()+(u.w+6)%7):(I=ie(Ut(u.y,0,1)),Q=I.getDay(),I=Q>4||Q===0?Zt.ceil(I):Zt(I),I=gt.offset(I,(u.V-1)*7),u.y=I.getFullYear(),u.m=I.getMonth(),u.d=I.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),Q="Z"in u?se(Ut(u.y,0,1)).getUTCDay():ie(Ut(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(Q+5)%7:u.w+u.U*7-(Q+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,se(u)):ie(u)}}function T(k,C,L,u){for(var X=0,I=C.length,Q=L.length,K,st;X=Q)return-1;if(K=C.charCodeAt(X++),K===37){if(K=C.charAt(X++),st=j[K in _e?C.charAt(X++):K],!st||(u=st(k,L,u))<0)return-1}else if(K!=L.charCodeAt(u++))return-1}return u}function l(k,C,L){var u=p.exec(C.slice(L));return u?(k.p=D.get(u[0].toLowerCase()),L+u[0].length):-1}function f(k,C,L){var u=b.exec(C.slice(L));return u?(k.w=P.get(u[0].toLowerCase()),L+u[0].length):-1}function m(k,C,L){var u=_.exec(C.slice(L));return u?(k.w=w.get(u[0].toLowerCase()),L+u[0].length):-1}function c(k,C,L){var u=H.exec(C.slice(L));return u?(k.m=O.get(u[0].toLowerCase()),L+u[0].length):-1}function v(k,C,L){var u=g.exec(C.slice(L));return u?(k.m=Y.get(u[0].toLowerCase()),L+u[0].length):-1}function a(k,C,L){return T(k,e,C,L)}function A(k,C,L){return T(k,n,C,L)}function h(k,C,L){return T(k,r,C,L)}function B(k){return o[k.getDay()]}function Z(k){return s[k.getDay()]}function J(k){return M[k.getMonth()]}function d(k){return y[k.getMonth()]}function S(k){return i[+(k.getHours()>=12)]}function U(k){return 1+~~(k.getMonth()/3)}function F(k){return o[k.getUTCDay()]}function W(k){return s[k.getUTCDay()]}function G(k){return M[k.getUTCMonth()]}function R(k){return y[k.getUTCMonth()]}function dt(k){return i[+(k.getUTCHours()>=12)]}function q(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var C=x(k+="",N);return C.toString=function(){return k},C},parse:function(k){var C=E(k+="",!1);return C.toString=function(){return k},C},utcFormat:function(k){var C=x(k+="",V);return C.toString=function(){return k},C},utcParse:function(k){var C=E(k+="",!0);return C.toString=function(){return k},C}}}var _e={"-":"",_:" ",0:"0"},et=/^\s*\d+/,gr=/^%/,yr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function pr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function br(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Cr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Dr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Fe(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function _r(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=et.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fr(t,e,n){var r=gr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ee(t,e){return z(t.getDate(),e,2)}function Ar(t,e){return z(t.getHours(),e,2)}function Ir(t,e){return z(t.getHours()%12||12,e,2)}function Wr(t,e){return z(1+gt.count(mt(t),t),e,3)}function Ke(t,e){return z(t.getMilliseconds(),e,3)}function Or(t,e){return Ke(t,e)+"000"}function Hr(t,e){return z(t.getMonth()+1,e,2)}function zr(t,e){return z(t.getMinutes(),e,2)}function Nr(t,e){return z(t.getSeconds(),e,2)}function Vr(t){var e=t.getDay();return e===0?7:e}function Pr(t,e){return z(Ct.count(mt(t)-1,t),e,2)}function $e(t){var e=t.getDay();return e>=4||e===0?Dt(t):Dt.ceil(t)}function Rr(t,e){return t=$e(t),z(Dt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Br(t){return t.getDay()}function Zr(t,e){return z(Zt.count(mt(t)-1,t),e,2)}function Xr(t,e){return z(t.getFullYear()%100,e,2)}function qr(t,e){return t=$e(t),z(t.getFullYear()%100,e,2)}function jr(t,e){return z(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?Dt(t):Dt.ceil(t),z(t.getFullYear()%1e4,e,4)}function Qr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function Ae(t,e){return z(t.getUTCDate(),e,2)}function Jr(t,e){return z(t.getUTCHours(),e,2)}function Kr(t,e){return z(t.getUTCHours()%12||12,e,2)}function $r(t,e){return z(1+ye.count(yt(t),t),e,3)}function tn(t,e){return z(t.getUTCMilliseconds(),e,3)}function ti(t,e){return tn(t,e)+"000"}function ei(t,e){return z(t.getUTCMonth()+1,e,2)}function ni(t,e){return z(t.getUTCMinutes(),e,2)}function ri(t,e){return z(t.getUTCSeconds(),e,2)}function ii(t){var e=t.getUTCDay();return e===0?7:e}function si(t,e){return z(Je.count(yt(t)-1,t),e,2)}function en(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ai(t,e){return t=en(t),z(Mt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function oi(t){return t.getUTCDay()}function ci(t,e){return z(Xt.count(yt(t)-1,t),e,2)}function li(t,e){return z(t.getUTCFullYear()%100,e,2)}function ui(t,e){return t=en(t),z(t.getUTCFullYear()%100,e,2)}function fi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function hi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function mi(){return"+0000"}function Ie(){return"%"}function We(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var Tt,qt;di({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function di(t){return Tt=dr(t),qt=Tt.format,Tt.parse,Tt.utcFormat,Tt.utcParse,Tt}function gi(t){return new Date(t)}function yi(t){return t instanceof Date?+t:+new Date(+t)}function nn(t,e,n,r,i,s,o,y,M,p){var D=Fn(),_=D.invert,w=D.domain,b=p(".%L"),P=p(":%S"),g=p("%I:%M"),Y=p("%I %p"),H=p("%a %d"),O=p("%b %d"),N=p("%B"),V=p("%Y");function j(x){return(M(x)4&&(b+=7),w.add(b,n));return P.diff(g,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var M=y.startOf;y.startOf=function(p,D){var _=this.$utils(),w=!!_.u(D)||D;return _.p(p)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,D)}}})})(rn);var pi=rn.exports;const Ti=de(pi);var sn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,y={},M=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(Y){this[g]=+Y}},D=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(Y){if(!Y||Y==="Z")return 0;var H=Y.match(/([+-]|\d\d)/g),O=60*H[1]+(+H[2]||0);return O===0?0:H[0]==="+"?-O:O}(g)}],_=function(g){var Y=y[g];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},w=function(g,Y){var H,O=y.meridiem;if(O){for(var N=1;N<=24;N+=1)if(g.indexOf(O(N,0,Y))>-1){H=N>12;break}}else H=g===(Y?"pm":"PM");return H},b={A:[o,function(g){this.afternoon=w(g,!1)}],a:[o,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[i,p("day")],Do:[o,function(g){var Y=y.ordinal,H=g.match(/\d+/);if(this.day=H[0],Y)for(var O=1;O<=31;O+=1)Y(O).replace(/\[|\]/g,"")===g&&(this.day=O)}],M:[s,p("month")],MM:[i,p("month")],MMM:[o,function(g){var Y=_("months"),H=(_("monthsShort")||Y.map(function(O){return O.slice(0,3)})).indexOf(g)+1;if(H<1)throw new Error;this.month=H%12||H}],MMMM:[o,function(g){var Y=_("months").indexOf(g)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],Y:[/[+-]?\d+/,p("year")],YY:[i,function(g){this.year=M(g)}],YYYY:[/\d{4}/,p("year")],Z:D,ZZ:D};function P(g){var Y,H;Y=g,H=y&&y.formats;for(var O=(g=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(l,f,m){var c=m&&m.toUpperCase();return f||H[m]||n[m]||H[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,a,A){return a||A.slice(1)})})).match(r),N=O.length,V=0;V-1)return new Date((B==="X"?1e3:1)*h);var J=P(B)(h),d=J.year,S=J.month,U=J.day,F=J.hours,W=J.minutes,G=J.seconds,R=J.milliseconds,dt=J.zone,q=new Date,k=U||(d||S?1:q.getDate()),C=d||q.getFullYear(),L=0;d&&!S||(L=S>0?S-1:q.getMonth());var u=F||0,X=W||0,I=G||0,Q=R||0;return dt?new Date(Date.UTC(C,L,k,u,X,I,Q+60*dt.offset*1e3)):Z?new Date(Date.UTC(C,L,k,u,X,I,Q)):new Date(C,L,k,u,X,I,Q)}catch{return new Date("")}}(j,T,x),this.init(),c&&c!==!0&&(this.$L=this.locale(c).$L),m&&j!=this.format(T)&&(this.$d=new Date("")),y={}}else if(T instanceof Array)for(var v=T.length,a=1;a<=v;a+=1){E[1]=T[a-1];var A=H.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}a===v&&(this.$d=new Date(""))}else N.call(this,V)}}})})(sn);var vi=sn.exports;const xi=de(vi);var an={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return s.bind(this)(o);var p=this.$utils(),D=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(_){switch(_){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return M.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return M.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),_==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),_==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),_==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return _}});return s.bind(this)(D)}}})})(an);var bi=an.exports;const wi=de(bi);var le=function(){var t=function(T,l,f,m){for(f=f||{},m=T.length;m--;f[T[m]]=l);return f},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],i=[1,15],s=[1,16],o=[1,17],y=[1,18],M=[1,19],p=[1,20],D=[1,21],_=[1,22],w=[1,23],b=[1,24],P=[1,25],g=[1,26],Y=[1,27],H=[1,29],O=[1,31],N=[1,34],V=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],j={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(l,f,m,c,v,a,A){var h=a.length-1;switch(v){case 2:return a[h-1];case 3:this.$=[];break;case 4:a[h-1].push(a[h]),this.$=a[h-1];break;case 5:case 6:this.$=a[h];break;case 7:case 8:this.$=[];break;case 9:c.setDateFormat(a[h].substr(11)),this.$=a[h].substr(11);break;case 10:c.enableInclusiveEndDates(),this.$=a[h].substr(18);break;case 11:c.TopAxis(),this.$=a[h].substr(8);break;case 12:c.setAxisFormat(a[h].substr(11)),this.$=a[h].substr(11);break;case 13:c.setTickInterval(a[h].substr(13)),this.$=a[h].substr(13);break;case 14:c.setExcludes(a[h].substr(9)),this.$=a[h].substr(9);break;case 15:c.setIncludes(a[h].substr(9)),this.$=a[h].substr(9);break;case 16:c.setTodayMarker(a[h].substr(12)),this.$=a[h].substr(12);break;case 17:c.setDiagramTitle(a[h].substr(6)),this.$=a[h].substr(6);break;case 18:this.$=a[h].trim(),c.setAccTitle(this.$);break;case 19:case 20:this.$=a[h].trim(),c.setAccDescription(this.$);break;case 21:c.addSection(a[h].substr(8)),this.$=a[h].substr(8);break;case 23:c.addTask(a[h-1],a[h]),this.$="task";break;case 27:this.$=a[h-1],c.setClickEvent(a[h-1],a[h],null);break;case 28:this.$=a[h-2],c.setClickEvent(a[h-2],a[h-1],a[h]);break;case 29:this.$=a[h-2],c.setClickEvent(a[h-2],a[h-1],null),c.setLink(a[h-2],a[h]);break;case 30:this.$=a[h-3],c.setClickEvent(a[h-3],a[h-2],a[h-1]),c.setLink(a[h-3],a[h]);break;case 31:this.$=a[h-2],c.setClickEvent(a[h-2],a[h],null),c.setLink(a[h-2],a[h-1]);break;case 32:this.$=a[h-3],c.setClickEvent(a[h-3],a[h-1],a[h]),c.setLink(a[h-3],a[h-2]);break;case 33:this.$=a[h-1],c.setLink(a[h-1],a[h]);break;case 34:case 40:this.$=a[h-1]+" "+a[h];break;case 35:case 36:case 38:this.$=a[h-2]+" "+a[h-1]+" "+a[h];break;case 37:case 39:this.$=a[h-3]+" "+a[h-2]+" "+a[h-1]+" "+a[h];break;case 41:c.parseDirective("%%{","open_directive");break;case 42:c.parseDirective(a[h],"type_directive");break;case 43:a[h]=a[h].trim().replace(/'/g,'"'),c.parseDirective(a[h],"arg_directive");break;case 44:c.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:e,30:4,40:n},{1:[3]},{3:6,4:2,5:e,30:4,40:n},t(r,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:s,14:o,15:y,16:M,17:p,18:D,19:_,20:w,21:b,23:P,25:g,26:Y,27:28,28:H,30:4,35:O,40:n},{32:32,33:[1,33],43:N},t([33,43],[2,42]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:30,10:35,12:i,13:s,14:o,15:y,16:M,17:p,18:D,19:_,20:w,21:b,23:P,25:g,26:Y,27:28,28:H,30:4,35:O,40:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{22:[1,36]},{24:[1,37]},t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),{29:[1,38]},t(r,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(r,[2,5]),t(r,[2,18]),t(r,[2,19]),t(r,[2,23]),t(r,[2,27],{37:[1,44],38:[1,45]}),t(r,[2,33],{36:[1,46]}),t(V,[2,25]),{32:47,43:N},{43:[2,43]},t(r,[2,28],{38:[1,48]}),t(r,[2,29]),t(r,[2,31],{37:[1,49]}),{11:[1,50]},t(r,[2,30]),t(r,[2,32]),t(V,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(l,f){if(f.recoverable)this.trace(l);else{var m=new Error(l);throw m.hash=f,m}},parse:function(l){var f=this,m=[0],c=[],v=[null],a=[],A=this.table,h="",B=0,Z=0,J=2,d=1,S=a.slice.call(arguments,1),U=Object.create(this.lexer),F={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(F.yy[W]=this.yy[W]);U.setInput(l,F.yy),F.yy.lexer=U,F.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var G=U.yylloc;a.push(G);var R=U.options&&U.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(){var rt;return rt=c.pop()||U.lex()||d,typeof rt!="number"&&(rt instanceof Array&&(c=rt,rt=c.pop()),rt=f.symbols_[rt]||rt),rt}for(var q,k,C,L,u={},X,I,Q,K;;){if(k=m[m.length-1],this.defaultActions[k]?C=this.defaultActions[k]:((q===null||typeof q>"u")&&(q=dt()),C=A[k]&&A[k][q]),typeof C>"u"||!C.length||!C[0]){var st="";K=[];for(X in A[k])this.terminals_[X]&&X>J&&K.push("'"+this.terminals_[X]+"'");U.showPosition?st="Parse error on line "+(B+1)+`: `+U.showPosition()+` Expecting `+K.join(", ")+", got '"+(this.terminals_[q]||q)+"'":st="Parse error on line "+(B+1)+": Unexpected "+(q==d?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(st,{text:U.match,token:this.terminals_[q]||q,line:U.yylineno,loc:G,expected:K})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+q);switch(C[0]){case 1:m.push(q),v.push(U.yytext),a.push(U.yylloc),m.push(C[1]),q=null,Z=U.yyleng,h=U.yytext,B=U.yylineno,G=U.yylloc;break;case 2:if(I=this.productions_[C[1]][1],u.$=v[v.length-I],u._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column},R&&(u._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]),L=this.performAction.apply(u,[h,Z,B,F.yy,C[1],v,a].concat(S)),typeof L<"u")return L;I&&(m=m.slice(0,-1*I*2),v=v.slice(0,-1*I),a=a.slice(0,-1*I)),m.push(this.productions_[C[1]][0]),v.push(u.$),a.push(u._$),Q=A[m[m.length-2]][m[m.length-1]],m.push(Q);break;case 3:return!0}}return!0}},x=function(){var T={EOF:1,parseError:function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},setInput:function(l,f){return this.yy=f||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var f=l.length,m=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===c.length?this.yylloc.first_column:0)+c[c.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+` `+f+"^"},test_match:function(l,f){var m,c,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),c=l[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],m=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var a in v)this[a]=v[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,f,m,c;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),a=0;af[0].length)){if(f=m,c=a,this.options.backtrack_lexer){if(l=this.test_match(m,v[a]),l!==!1)return l;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(l=this.test_match(f,v[c]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var f=this.next();return f||this.lex()},begin:function(f){this.conditionStack.push(f)},popState:function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},pushState:function(f){this.begin(f)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(f,m,c,v){switch(c){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:%[^\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,/^(?:\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:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return T}();j.lexer=x;function E(){this.yy={}}return E.prototype=j,j.Parser=E,new E}();le.parser=le;const Ci=le;nt.extend(Ti);nt.extend(xi);nt.extend(wi);let at="",ke="",pe,Te="",It=[],Wt=[],ve={},xe=[],jt=[],St="",be="";const on=["active","done","crit","milestone"];let we=[],Ot=!1,Ce=!1,ue=0;const Di=function(t,e,n){Cn.parseDirective(this,t,e,n)},Mi=function(){xe=[],jt=[],St="",we=[],Vt=0,he=void 0,Pt=void 0,$=[],at="",ke="",be="",pe=void 0,Te="",It=[],Wt=[],Ot=!1,Ce=!1,ue=0,ve={},Dn()},Si=function(t){ke=t},_i=function(){return ke},Ui=function(t){pe=t},Yi=function(){return pe},Fi=function(t){Te=t},Li=function(){return Te},Ei=function(t){at=t},Ai=function(){Ot=!0},Ii=function(){return Ot},Wi=function(){Ce=!0},Oi=function(){return Ce},Hi=function(t){be=t},zi=function(){return be},Ni=function(){return at},Vi=function(t){It=t.toLowerCase().split(/[\s,]+/)},Pi=function(){return It},Ri=function(t){Wt=t.toLowerCase().split(/[\s,]+/)},Bi=function(){return Wt},Zi=function(){return ve},Xi=function(t){St=t,xe.push(t)},qi=function(){return xe},ji=function(){let t=He();const e=10;let n=0;for(;!t&&n=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},ln=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=nt(t.startTime):i=nt(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=nt(t.endTime):s=nt(t.endTime,e,!0);const[o,y]=Gi(i,s,e,n,r);t.endTime=o.toDate(),t.renderEndTime=y},Gi=function(t,e,n,r,i){let s=!1,o=null;for(;t<=e;)s||(o=e.toDate()),s=cn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,o]},fe=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(i!==null){let o=null;if(i[1].split(" ").forEach(function(y){let M=_t(y);M!==void 0&&(o?M.endTime>o.endTime&&(o=M):o=M)}),o)return o.endTime;{const y=new Date;return y.setHours(0,0,0,0),y}}let s=nt(n,e.trim(),!0);if(s.isValid())return s.toDate();{ae.debug("Invalid date:"+n),ae.debug("With date format:"+e.trim());const o=new Date(n);if(o===void 0||isNaN(o.getTime())||o.getFullYear()<-1e4||o.getFullYear()>1e4)throw new Error("Invalid date:"+n);return o}},un=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},fn=function(t,e,n,r=!1){n=n.trim();let i=nt(n,e.trim(),!0);if(i.isValid())return r&&(i=i.add(1,"d")),i.toDate();let s=nt(t);const[o,y]=un(n);if(!Number.isNaN(o)){const M=s.add(o,y);M.isValid()&&(s=M)}return s.toDate()};let Vt=0;const wt=function(t){return t===void 0?(Vt=Vt+1,"task"+Vt):t},Qi=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};gn(r,i,on);for(let o=0;o{window.open(n,"_self")}),ve[r]=n)}),mn(t,"clickable")},mn=function(t,e){t.split(",").forEach(function(n){let r=_t(n);r!==void 0&&r.classes.push(e)})},es=function(t,e,n){if(xt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{Un.runFunc(e,...r)})},dn=function(t,e){we.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},ns=function(t,e,n){t.split(",").forEach(function(r){es(r,e,n)}),mn(t,"clickable")},rs=function(t){we.forEach(function(e){e(t)})},is={parseDirective:Di,getConfig:()=>xt().gantt,clear:Mi,setDateFormat:Ei,getDateFormat:Ni,enableInclusiveEndDates:Ai,endDatesAreInclusive:Ii,enableTopAxis:Wi,topAxisEnabled:Oi,setAxisFormat:Si,getAxisFormat:_i,setTickInterval:Ui,getTickInterval:Yi,setTodayMarker:Fi,getTodayMarker:Li,setAccTitle:pn,getAccTitle:Tn,setDiagramTitle:vn,getDiagramTitle:xn,setDisplayMode:Hi,getDisplayMode:zi,setAccDescription:bn,getAccDescription:wn,addSection:Xi,getSections:qi,getTasks:ji,addTask:Ki,findTaskById:_t,addTaskOrg:$i,setIncludes:Vi,getIncludes:Pi,setExcludes:Ri,getExcludes:Bi,setClickEvent:ns,setLink:ts,getLinks:Zi,bindFunctions:rs,parseDuration:un,isInvalidDate:cn};function gn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",o=new RegExp(s);t[0].match(o)&&(e[i]=!0,t.shift(1),r=!0)})}const ss=function(){ae.debug("Something is calling, setConf, remove the call")},as=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,o)=>s.startTime-o.startTime||s.order-o.order),i=0;for(const s of r)for(let o=0;o=n[o]){n[o]=s.endTime,s.order=o+e,o>i&&(i=o);break}return i};let ct;const os=function(t,e,n,r){const i=xt().gantt,s=xt().securityLevel;let o;s==="sandbox"&&(o=Ht("#i"+e));const y=s==="sandbox"?Ht(o.nodes()[0].contentDocument.body):Ht("body"),M=s==="sandbox"?o.nodes()[0].contentDocument:document,p=M.getElementById(e);ct=p.parentElement.offsetWidth,ct===void 0&&(ct=1200),i.useWidth!==void 0&&(ct=i.useWidth);const D=r.db.getTasks();let _=[];for(const T of D)_.push(T.type);_=E(_);const w={};let b=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const T={};for(const f of D)T[f.section]===void 0?T[f.section]=[f]:T[f.section].push(f);let l=0;for(const f of Object.keys(T)){const m=as(T[f],l)+1;l+=m,b+=m*(i.barHeight+i.barGap),w[f]=m}}else{b+=D.length*(i.barHeight+i.barGap);for(const T of _)w[T]=D.filter(l=>l.type===T).length}p.setAttribute("viewBox","0 0 "+ct+" "+b);const P=y.select(`[id="${e}"]`),g=ki().domain([Wn(D,function(T){return T.startTime}),In(D,function(T){return T.endTime})]).rangeRound([0,ct-i.leftPadding-i.rightPadding]);function Y(T,l){const f=T.startTime,m=l.startTime;let c=0;return f>m?c=1:fd.order))].map(d=>T.find(S=>S.order===d));P.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(d,S){return S=d.order,S*l+f-2}).attr("width",function(){return a-i.rightPadding/2}).attr("height",l).attr("class",function(d){for(const[S,U]of _.entries())if(d.type===U)return"section section"+S%i.numberSectionStyles;return"section section0"});const B=P.append("g").selectAll("rect").data(T).enter(),Z=r.db.getLinks();if(B.append("rect").attr("id",function(d){return d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){return d.milestone?g(d.startTime)+m+.5*(g(d.endTime)-g(d.startTime))-.5*c:g(d.startTime)+m}).attr("y",function(d,S){return S=d.order,S*l+f}).attr("width",function(d){return d.milestone?c:g(d.renderEndTime||d.endTime)-g(d.startTime)}).attr("height",c).attr("transform-origin",function(d,S){return S=d.order,(g(d.startTime)+m+.5*(g(d.endTime)-g(d.startTime))).toString()+"px "+(S*l+f+.5*c).toString()+"px"}).attr("class",function(d){const S="task";let U="";d.classes.length>0&&(U=d.classes.join(" "));let F=0;for(const[G,R]of _.entries())d.type===R&&(F=G%i.numberSectionStyles);let W="";return d.active?d.crit?W+=" activeCrit":W=" active":d.done?d.crit?W=" doneCrit":W=" done":d.crit&&(W+=" crit"),W.length===0&&(W=" task"),d.milestone&&(W=" milestone "+W),W+=F,W+=" "+U,S+W}),B.append("text").attr("id",function(d){return d.id+"-text"}).text(function(d){return d.task}).attr("font-size",i.fontSize).attr("x",function(d){let S=g(d.startTime),U=g(d.renderEndTime||d.endTime);d.milestone&&(S+=.5*(g(d.endTime)-g(d.startTime))-.5*c),d.milestone&&(U=S+c);const F=this.getBBox().width;return F>U-S?U+F+1.5*i.leftPadding>a?S+m-5:U+m+5:(U-S)/2+S+m}).attr("y",function(d,S){return S=d.order,S*l+i.barHeight/2+(i.fontSize/2-2)+f}).attr("text-height",c).attr("class",function(d){const S=g(d.startTime);let U=g(d.endTime);d.milestone&&(U=S+c);const F=this.getBBox().width;let W="";d.classes.length>0&&(W=d.classes.join(" "));let G=0;for(const[dt,q]of _.entries())d.type===q&&(G=dt%i.numberSectionStyles);let R="";return d.active&&(d.crit?R="activeCritText"+G:R="activeText"+G),d.done?d.crit?R=R+" doneCritText"+G:R=R+" doneText"+G:d.crit&&(R=R+" critText"+G),d.milestone&&(R+=" milestoneText"),F>U-S?U+F+1.5*i.leftPadding>a?W+" taskTextOutsideLeft taskTextOutside"+G+" "+R:W+" taskTextOutsideRight taskTextOutside"+G+" "+R+" width-"+F:W+" taskText taskText"+G+" "+R+" width-"+F}),xt().securityLevel==="sandbox"){let d;d=Ht("#i"+e);const S=d.nodes()[0].contentDocument;B.filter(function(U){return Z[U.id]!==void 0}).each(function(U){var F=S.querySelector("#"+U.id),W=S.querySelector("#"+U.id+"-text");const G=F.parentNode;var R=S.createElement("a");R.setAttribute("xlink:href",Z[U.id]),R.setAttribute("target","_top"),G.appendChild(R),R.appendChild(F),R.appendChild(W)})}}function N(T,l,f,m,c,v,a,A){const h=v.reduce((F,{startTime:W})=>F?Math.min(F,W):W,0),B=v.reduce((F,{endTime:W})=>F?Math.max(F,W):W,0),Z=r.db.getDateFormat();if(!h||!B)return;const J=[];let d=null,S=nt(h);for(;S.valueOf()<=B;)r.db.isInvalidDate(S,Z,a,A)?d?d.end=S:d={start:S,end:S}:d&&(J.push(d),d=null),S=S.add(1,"d");P.append("g").selectAll("rect").data(J).enter().append("rect").attr("id",function(F){return"exclude-"+F.start.format("YYYY-MM-DD")}).attr("x",function(F){return g(F.start)+f}).attr("y",i.gridLineStartPadding).attr("width",function(F){const W=F.end.add(1,"day");return g(W)-g(F.start)}).attr("height",c-l-i.gridLineStartPadding).attr("transform-origin",function(F,W){return(g(F.start)+f+.5*(g(F.end)-g(F.start))).toString()+"px "+(W*T+.5*c).toString()+"px"}).attr("class","exclude-range")}function V(T,l,f,m){let c=Bn(g).tickSize(-m+l+i.gridLineStartPadding).tickFormat(qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const a=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(a!==null){const A=a[1];switch(a[2]){case"minute":c.ticks(Lt.every(A));break;case"hour":c.ticks(Et.every(A));break;case"day":c.ticks(gt.every(A));break;case"week":c.ticks(Ct.every(A));break;case"month":c.ticks(At.every(A));break}}if(P.append("g").attr("class","grid").attr("transform","translate("+T+", "+(m-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let A=Rn(g).tickSize(-m+l+i.gridLineStartPadding).tickFormat(qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(a!==null){const h=a[1];switch(a[2]){case"minute":A.ticks(Lt.every(h));break;case"hour":A.ticks(Et.every(h));break;case"day":A.ticks(gt.every(h));break;case"week":A.ticks(Ct.every(h));break;case"month":A.ticks(At.every(h));break}}P.append("g").attr("class","grid").attr("transform","translate("+T+", "+l+")").call(A).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function j(T,l){let f=0;const m=Object.keys(w).map(c=>[c,w[c]]);P.append("g").selectAll("text").data(m).enter().append(function(c){const v=c[0].split(_n.lineBreakRegex),a=-(v.length-1)/2,A=M.createElementNS("http://www.w3.org/2000/svg","text");A.setAttribute("dy",a+"em");for(const[h,B]of v.entries()){const Z=M.createElementNS("http://www.w3.org/2000/svg","tspan");Z.setAttribute("alignment-baseline","central"),Z.setAttribute("x","10"),h>0&&Z.setAttribute("dy","1em"),Z.textContent=B,A.appendChild(Z)}return A}).attr("x",10).attr("y",function(c,v){if(v>0)for(let a=0;a` .mermaid-main-font { font-family: "trebuchet ms", verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } .exclude-range { fill: ${t.excludeBkgColor}; } .section { stroke: none; opacity: 0.2; } .section0 { fill: ${t.sectionBkgColor}; } .section2 { fill: ${t.sectionBkgColor2}; } .section1, .section3 { fill: ${t.altSectionBkgColor}; opacity: 0.2; } .sectionTitle0 { fill: ${t.titleColor}; } .sectionTitle1 { fill: ${t.titleColor}; } .sectionTitle2 { fill: ${t.titleColor}; } .sectionTitle3 { fill: ${t.titleColor}; } .sectionTitle { text-anchor: start; // font-size: ${t.ganttFontSize}; // text-height: 14px; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } /* Grid and axis */ .grid .tick { stroke: ${t.gridColor}; opacity: 0.8; shape-rendering: crispEdges; text { font-family: ${t.fontFamily}; fill: ${t.textColor}; } } .grid path { stroke-width: 0; } /* Today line */ .today { fill: none; stroke: ${t.todayLineColor}; stroke-width: 2px; } /* Task styling */ /* Default task */ .task { stroke-width: 2; } .taskText { text-anchor: middle; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } // .taskText:not([font-size]) { // font-size: ${t.ganttFontSize}; // } .taskTextOutsideRight { fill: ${t.taskTextDarkColor}; text-anchor: start; // font-size: ${t.ganttFontSize}; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } .taskTextOutsideLeft { fill: ${t.taskTextDarkColor}; text-anchor: end; // font-size: ${t.ganttFontSize}; } /* Special case clickable */ .task.clickable { cursor: pointer; } .taskText.clickable { cursor: pointer; fill: ${t.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideLeft.clickable { cursor: pointer; fill: ${t.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideRight.clickable { cursor: pointer; fill: ${t.taskTextClickableColor} !important; font-weight: bold; } /* Specific task settings for the sections*/ .taskText0, .taskText1, .taskText2, .taskText3 { fill: ${t.taskTextColor}; } .task0, .task1, .task2, .task3 { fill: ${t.taskBkgColor}; stroke: ${t.taskBorderColor}; } .taskTextOutside0, .taskTextOutside2 { fill: ${t.taskTextOutsideColor}; } .taskTextOutside1, .taskTextOutside3 { fill: ${t.taskTextOutsideColor}; } /* Active task */ .active0, .active1, .active2, .active3 { fill: ${t.activeTaskBkgColor}; stroke: ${t.activeTaskBorderColor}; } .activeText0, .activeText1, .activeText2, .activeText3 { fill: ${t.taskTextDarkColor} !important; } /* Completed task */ .done0, .done1, .done2, .done3 { stroke: ${t.doneTaskBorderColor}; fill: ${t.doneTaskBkgColor}; stroke-width: 2; } .doneText0, .doneText1, .doneText2, .doneText3 { fill: ${t.taskTextDarkColor} !important; } /* Tasks on the critical line */ .crit0, .crit1, .crit2, .crit3 { stroke: ${t.critBorderColor}; fill: ${t.critBkgColor}; stroke-width: 2; } .activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 { stroke: ${t.critBorderColor}; fill: ${t.activeTaskBkgColor}; stroke-width: 2; } .doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 { stroke: ${t.critBorderColor}; fill: ${t.doneTaskBkgColor}; stroke-width: 2; cursor: pointer; shape-rendering: crispEdges; } .milestone { transform: rotate(45deg) scale(0.8,0.8); } .milestoneText { font-style: italic; } .doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 { fill: ${t.taskTextDarkColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill: ${t.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; fill: ${t.textColor} ; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } `,us=ls,gs={parser:Ci,db:is,renderer:cs,styles:us};export{gs as diagram}; //# sourceMappingURL=ganttDiagram-7ce12d6b-bNEEGiE3.js.map