import{a$ as en,b0 as An,b1 as nn,b2 as rn,b3 as an,b4 as ne,b5 as Un,_ as h,g as En,s as In,t as Ln,q as On,a as Hn,b as Wn,c as _t,d as Gt,e as Pn,b6 as nt,l as qt,k as zn,j as Bn,z as Vn,u as Gn}from"./mermaid.core-DrJfu-9d.chunk.mjs";import{g as xe}from"./emoji-picker-MDCGxHB0.chunk.mjs";import{b as jn,t as Le,c as Nn,a as Xn,l as Rn}from"./linear-BgvCSYiQ.chunk.mjs";import{i as qn}from"./init-CLzSasj9.chunk.mjs";import"./index-CRQM6PVi.chunk.mjs";import"./NcLoadingIcon-ZJnsd-es.chunk.mjs";import"./vue.runtime.esm-CLeelJur.chunk.mjs";import"./index-DxwFe63_.chunk.mjs";import"./defaultLocale-0_YM-Ssk.chunk.mjs";function Qn(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 a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Kn(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 a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(t){return t}var Nt=1,re=2,fe=3,jt=4,Oe=1e-6;function Zn(t){return"translate("+t+",0)"}function tr(t){return"translate(0,"+t+")"}function er(t){return e=>+t(e)}function nr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function rr(){return!this.__axis}function sn(t,e){var n=[],r=null,a=null,s=6,o=6,y=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:.5,m=t===Nt||t===jt?-1:1,g=t===jt||t===re?"x":"y",Y=t===Nt||t===fe?Zn:tr;function x(w){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=a??(e.tickFormat?e.tickFormat.apply(e,n):Jn),D=Math.max(s,0)+y,U=e.range(),z=+U[0]+_,E=+U[U.length-1]+_,j=(e.bandwidth?nr:er)(e.copy(),_),q=w.selection?w.selection():w,C=q.selectAll(".domain").data([null]),W=q.selectAll(".tick").data(X,e).order(),b=W.exit(),F=W.enter().append("g").attr("class","tick"),$=W.select("line"),M=W.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),W=W.merge(F),$=$.merge(F.append("line").attr("stroke","currentColor").attr(g+"2",m*s)),M=M.merge(F.append("text").attr("fill","currentColor").attr(g,m*D).attr("dy",t===Nt?"0em":t===fe?"0.71em":"0.32em")),w!==q&&(C=C.transition(w),W=W.transition(w),$=$.transition(w),M=M.transition(w),b=b.transition(w).attr("opacity",Oe).attr("transform",function(p){return isFinite(p=j(p))?Y(p+_):this.getAttribute("transform")}),F.attr("opacity",Oe).attr("transform",function(p){var S=this.parentNode.__axis;return Y((S&&isFinite(S=S(p))?S:j(p))+_)})),b.remove(),C.attr("d",t===jt||t===re?o?"M"+m*o+","+z+"H"+_+"V"+E+"H"+m*o:"M"+_+","+z+"V"+E:o?"M"+z+","+m*o+"V"+_+"H"+E+"V"+m*o:"M"+z+","+_+"H"+E),W.attr("opacity",1).attr("transform",function(p){return Y(j(p)+_)}),$.attr(g+"2",m*s),M.attr(g,m*D).text(I),q.filter(rr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===re?"start":t===jt?"end":"middle"),q.each(function(){this.__axis=j})}return x.scale=function(w){return arguments.length?(e=w,x):e},x.ticks=function(){return n=Array.from(arguments),x},x.tickArguments=function(w){return arguments.length?(n=w==null?[]:Array.from(w),x):n.slice()},x.tickValues=function(w){return arguments.length?(r=w==null?null:Array.from(w),x):r&&r.slice()},x.tickFormat=function(w){return arguments.length?(a=w,x):a},x.tickSize=function(w){return arguments.length?(s=o=+w,x):s},x.tickSizeInner=function(w){return arguments.length?(s=+w,x):s},x.tickSizeOuter=function(w){return arguments.length?(o=+w,x):o},x.tickPadding=function(w){return arguments.length?(y=+w,x):y},x.offset=function(w){return arguments.length?(_=+w,x):_},x}function ir(t){return sn(Nt,t)}function ar(t){return sn(fe,t)}const sr=Math.PI/180,or=180/Math.PI,Qt=18,on=.96422,cn=1,ln=.82521,un=4/29,Mt=6/29,dn=3*Mt*Mt,cr=Mt*Mt*Mt;function hn(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return fn(t);t instanceof en||(t=An(t));var e=oe(t.r),n=oe(t.g),r=oe(t.b),a=ie((.2225045*e+.7168786*n+.0606169*r)/cn),s,o;return e===n&&n===r?s=o=a:(s=ie((.4360747*e+.3850649*n+.1430804*r)/on),o=ie((.0139322*e+.0971045*n+.7141733*r)/ln)),new lt(116*a-16,500*(s-a),200*(a-o),t.opacity)}function lr(t,e,n,r){return arguments.length===1?hn(t):new lt(t,e,n,r??1)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}nn(lt,lr,rn(an,{brighter(t){return new lt(this.l+Qt*(t??1),this.a,this.b,this.opacity)},darker(t){return new lt(this.l-Qt*(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=on*ae(e),t=cn*ae(t),n=ln*ae(n),new en(se(3.1338561*e-1.6168667*t-.4906146*n),se(-.9787684*e+1.9161415*t+.033454*n),se(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ie(t){return t>cr?Math.pow(t,1/3):t/dn+un}function ae(t){return t>Mt?t*t*t:dn*(t-un)}function se(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function oe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ur(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=hn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(s=new Date(+s)),s),a.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),a.round=s=>{const o=a(s),y=a.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),a.range=(s,o,y)=>{const _=[];if(s=a.ceil(s),y=y==null?1:Math.floor(y),!(s0))return _;let m;do _.push(m=new Date(+s)),e(s,y),t(s);while(mZ(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&&(a.count=(s,o)=>(ce.setTime(+s),le.setTime(+o),t(ce),t(le),Math.floor(n(ce,le))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(r?o=>r(o)%s===0:o=>a.count(0,o)%s===0):a)),a}const St=Z(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);St.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Z(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):St),St.range;const ht=1e3,at=ht*60,ft=at*60,gt=ft*24,we=gt*7,He=gt*30,ue=gt*365,mt=Z(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds());mt.range;const It=Z(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getMinutes());It.range;const gr=Z(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getUTCMinutes());gr.range;const Lt=Z(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*at)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getHours());Lt.range;const yr=Z(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCHours());yr.range;const Tt=Z(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*at)/gt,t=>t.getDate()-1);Tt.range;const Ce=Z(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/gt,t=>t.getUTCDate()-1);Ce.range;const mr=Z(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/gt,t=>Math.floor(t/gt));mr.range;function xt(t){return Z(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())*at)/we)}const Wt=xt(0),Ot=xt(1),gn=xt(2),yn=xt(3),vt=xt(4),mn=xt(5),kn=xt(6);Wt.range,Ot.range,gn.range,yn.range,vt.range,mn.range,kn.range;function wt(t){return Z(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)/we)}const pn=wt(0),Kt=wt(1),kr=wt(2),pr=wt(3),Ft=wt(4),Tr=wt(5),vr=wt(6);pn.range,Kt.range,kr.range,pr.range,Ft.range,Tr.range,vr.range;const Ht=Z(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());Ht.range;const br=Z(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());br.range;const yt=Z(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());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Z(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)}),yt.range;const bt=Z(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());bt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Z(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)}),bt.range;function xr(t,e,n,r,a,s){const o=[[mt,1,ht],[mt,5,5*ht],[mt,15,15*ht],[mt,30,30*ht],[s,1,at],[s,5,5*at],[s,15,15*at],[s,30,30*at],[a,1,ft],[a,3,3*ft],[a,6,6*ft],[a,12,12*ft],[r,1,gt],[r,2,2*gt],[n,1,we],[e,1,He],[e,3,3*He],[t,1,ue]];function y(m,g,Y){const x=gD).right(o,x);if(w===o.length)return t.every(Le(m/ue,g/ue,Y));if(w===0)return St.every(Math.max(Le(m,g,Y),1));const[X,I]=o[x/o[w-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(H=he(At(u.y,0,1)),G=H.getUTCDay(),H=G>4||G===0?Kt.ceil(H):Kt(H),H=Ce.offset(H,(u.V-1)*7),u.y=H.getUTCFullYear(),u.m=H.getUTCMonth(),u.d=H.getUTCDate()+(u.w+6)%7):(H=de(At(u.y,0,1)),G=H.getDay(),H=G>4||G===0?Ot.ceil(H):Ot(H),H=Tt.offset(H,(u.V-1)*7),u.y=H.getFullYear(),u.m=H.getMonth(),u.d=H.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),G="Z"in u?he(At(u.y,0,1)).getUTCDay():de(At(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(G+5)%7:u.w+u.U*7-(G+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,he(u)):de(u)}}function b(k,O,P,u){for(var B=0,H=O.length,G=P.length,K,tt;B=G)return-1;if(K=O.charCodeAt(B++),K===37){if(K=O.charAt(B++),tt=q[K in We?O.charAt(B++):K],!tt||(u=tt(k,P,u))<0)return-1}else if(K!=P.charCodeAt(u++))return-1}return u}function F(k,O,P){var u=m.exec(O.slice(P));return u?(k.p=g.get(u[0].toLowerCase()),P+u[0].length):-1}function $(k,O,P){var u=w.exec(O.slice(P));return u?(k.w=X.get(u[0].toLowerCase()),P+u[0].length):-1}function M(k,O,P){var u=Y.exec(O.slice(P));return u?(k.w=x.get(u[0].toLowerCase()),P+u[0].length):-1}function p(k,O,P){var u=U.exec(O.slice(P));return u?(k.m=z.get(u[0].toLowerCase()),P+u[0].length):-1}function S(k,O,P){var u=I.exec(O.slice(P));return u?(k.m=D.get(u[0].toLowerCase()),P+u[0].length):-1}function l(k,O,P){return b(k,e,O,P)}function f(k,O,P){return b(k,n,O,P)}function d(k,O,P){return b(k,r,O,P)}function v(k){return o[k.getDay()]}function i(k){return s[k.getDay()]}function T(k){return _[k.getMonth()]}function c(k){return y[k.getMonth()]}function L(k){return a[+(k.getHours()>=12)]}function A(k){return 1+~~(k.getMonth()/3)}function R(k){return o[k.getUTCDay()]}function N(k){return s[k.getUTCDay()]}function kt(k){return _[k.getUTCMonth()]}function Q(k){return y[k.getUTCMonth()]}function st(k){return a[+(k.getUTCHours()>=12)]}function pt(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var O=C(k+="",E);return O.toString=function(){return k},O},parse:function(k){var O=W(k+="",!1);return O.toString=function(){return k},O},utcFormat:function(k){var O=C(k+="",j);return O.toString=function(){return k},O},utcParse:function(k){var O=W(k+="",!0);return O.toString=function(){return k},O}}}var We={"-":"",_:" ",0:"0"},et=/^\s*\d+/,_r=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function V(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",s=a.length;return r+(s[e.toLowerCase(),n]))}function $r(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ze(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 Er(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 Ir(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 Lr(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 Be(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Or(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 Ve(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zr(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 Br(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Vr(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Gr(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ge(t,e){return V(t.getDate(),e,2)}function jr(t,e){return V(t.getHours(),e,2)}function Nr(t,e){return V(t.getHours()%12||12,e,2)}function Xr(t,e){return V(1+Tt.count(yt(t),t),e,3)}function Tn(t,e){return V(t.getMilliseconds(),e,3)}function Rr(t,e){return Tn(t,e)+"000"}function qr(t,e){return V(t.getMonth()+1,e,2)}function Qr(t,e){return V(t.getMinutes(),e,2)}function Kr(t,e){return V(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function Zr(t,e){return V(Wt.count(yt(t)-1,t),e,2)}function vn(t){var e=t.getDay();return e>=4||e===0?vt(t):vt.ceil(t)}function ti(t,e){return t=vn(t),V(vt.count(yt(t),t)+(yt(t).getDay()===4),e,2)}function ei(t){return t.getDay()}function ni(t,e){return V(Ot.count(yt(t)-1,t),e,2)}function ri(t,e){return V(t.getFullYear()%100,e,2)}function ii(t,e){return t=vn(t),V(t.getFullYear()%100,e,2)}function ai(t,e){return V(t.getFullYear()%1e4,e,4)}function si(t,e){var n=t.getDay();return t=n>=4||n===0?vt(t):vt.ceil(t),V(t.getFullYear()%1e4,e,4)}function oi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+V(e/60|0,"0",2)+V(e%60,"0",2)}function je(t,e){return V(t.getUTCDate(),e,2)}function ci(t,e){return V(t.getUTCHours(),e,2)}function li(t,e){return V(t.getUTCHours()%12||12,e,2)}function ui(t,e){return V(1+Ce.count(bt(t),t),e,3)}function bn(t,e){return V(t.getUTCMilliseconds(),e,3)}function di(t,e){return bn(t,e)+"000"}function hi(t,e){return V(t.getUTCMonth()+1,e,2)}function fi(t,e){return V(t.getUTCMinutes(),e,2)}function gi(t,e){return V(t.getUTCSeconds(),e,2)}function yi(t){var e=t.getUTCDay();return e===0?7:e}function mi(t,e){return V(pn.count(bt(t)-1,t),e,2)}function xn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function ki(t,e){return t=xn(t),V(Ft.count(bt(t),t)+(bt(t).getUTCDay()===4),e,2)}function pi(t){return t.getUTCDay()}function Ti(t,e){return V(Kt.count(bt(t)-1,t),e,2)}function vi(t,e){return V(t.getUTCFullYear()%100,e,2)}function bi(t,e){return t=xn(t),V(t.getUTCFullYear()%100,e,2)}function xi(t,e){return V(t.getUTCFullYear()%1e4,e,4)}function wi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),V(t.getUTCFullYear()%1e4,e,4)}function Ci(){return"+0000"}function Ne(){return"%"}function Xe(t){return+t}function Re(t){return Math.floor(+t/1e3)}var Dt,Jt;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 Dt=Dr(t),Jt=Dt.format,Dt.parse,Dt.utcFormat,Dt.utcParse,Dt}function _i(t){return new Date(t)}function Mi(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,a,s,o,y,_,m){var g=Nn(),Y=g.invert,x=g.domain,w=m(".%L"),X=m(":%S"),I=m("%I:%M"),D=m("%I %p"),U=m("%a %d"),z=m("%b %d"),E=m("%B"),j=m("%Y");function q(C){return(_(C)4&&(w+=7),x.add(w,n));return X.diff(I,"week")+1},y.isoWeekday=function(m){return this.$utils().u(m)?this.day()||7:this.day(this.day()%7?m:m-7)};var _=y.startOf;y.startOf=function(m,g){var Y=this.$utils(),x=!!Y.u(g)||g;return Y.p(m)==="isoweek"?x?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):_.bind(this)(m,g)}}})}(ye)),ye.exports}var Yi=Fi();const Ai=xe(Yi);var me={exports:{}},Ui=me.exports,Qe;function Ei(){return Qe||(Qe=1,function(t,e){(function(n,r){t.exports=r()})(Ui,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|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?/,y=/\d*[^-_:/,()\s\d]+/,_={},m=function(D){return(D=+D)+(D>68?1900:2e3)},g=function(D){return function(U){this[D]=+U}},Y=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=function(U){if(!U||U==="Z")return 0;var z=U.match(/([+-]|\d\d)/g),E=60*z[1]+(+z[2]||0);return E===0?0:z[0]==="+"?-E:E}(D)}],x=function(D){var U=_[D];return U&&(U.indexOf?U:U.s.concat(U.f))},w=function(D,U){var z,E=_.meridiem;if(E){for(var j=1;j<=24;j+=1)if(D.indexOf(E(j,0,U))>-1){z=j>12;break}}else z=D===(U?"pm":"PM");return z},X={A:[y,function(D){this.afternoon=w(D,!1)}],a:[y,function(D){this.afternoon=w(D,!0)}],Q:[a,function(D){this.month=3*(D-1)+1}],S:[a,function(D){this.milliseconds=100*+D}],SS:[s,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[o,g("seconds")],ss:[o,g("seconds")],m:[o,g("minutes")],mm:[o,g("minutes")],H:[o,g("hours")],h:[o,g("hours")],HH:[o,g("hours")],hh:[o,g("hours")],D:[o,g("day")],DD:[s,g("day")],Do:[y,function(D){var U=_.ordinal,z=D.match(/\d+/);if(this.day=z[0],U)for(var E=1;E<=31;E+=1)U(E).replace(/\[|\]/g,"")===D&&(this.day=E)}],w:[o,g("week")],ww:[s,g("week")],M:[o,g("month")],MM:[s,g("month")],MMM:[y,function(D){var U=x("months"),z=(x("monthsShort")||U.map(function(E){return E.slice(0,3)})).indexOf(D)+1;if(z<1)throw new Error;this.month=z%12||z}],MMMM:[y,function(D){var U=x("months").indexOf(D)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(D){this.year=m(D)}],YYYY:[/\d{4}/,g("year")],Z:Y,ZZ:Y};function I(D){var U,z;U=D,z=_&&_.formats;for(var E=(D=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,M,p){var S=p&&p.toUpperCase();return M||z[p]||n[p]||z[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,f,d){return f||d.slice(1)})})).match(r),j=E.length,q=0;q-1)return new Date((i==="X"?1e3:1)*v);var L=I(i)(v),A=L.year,R=L.month,N=L.day,kt=L.hours,Q=L.minutes,st=L.seconds,pt=L.milliseconds,k=L.zone,O=L.week,P=new Date,u=N||(A||R?1:P.getDate()),B=A||P.getFullYear(),H=0;A&&!R||(H=R>0?R-1:P.getMonth());var G,K=kt||0,tt=Q||0,ot=st||0,rt=pt||0;return k?new Date(Date.UTC(B,H,u,K,tt,ot,rt+60*k.offset*1e3)):T?new Date(Date.UTC(B,H,u,K,tt,ot,rt)):(G=new Date(B,H,u,K,tt,ot,rt),O&&(G=c(G).week(O).toDate()),G)}catch{return new Date("")}}(C,F,W,z),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),p&&C!=this.format(F)&&(this.$d=new Date("")),_={}}else if(F instanceof Array)for(var l=F.length,f=1;f<=l;f+=1){b[1]=F[f-1];var d=z.apply(this,b);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}f===l&&(this.$d=new Date(""))}else j.call(this,q)}}})}(me)),me.exports}var Ii=Ei();const Li=xe(Ii);var ke={exports:{}},Oi=ke.exports,Ke;function Hi(){return Ke||(Ke=1,function(t,e){(function(n,r){t.exports=r()})(Oi,function(){return function(n,r){var a=r.prototype,s=a.format;a.format=function(o){var y=this,_=this.$locale();if(!this.isValid())return s.bind(this)(o);var m=this.$utils(),g=(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(Y){switch(Y){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return _.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return _.ordinal(y.week(),"W");case"w":case"ww":return m.s(y.week(),Y==="w"?1:2,"0");case"W":case"WW":return m.s(y.isoWeek(),Y==="W"?1:2,"0");case"k":case"kk":return m.s(String(y.$H===0?24:y.$H),Y==="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 Y}});return s.bind(this)(g)}}})}(ke)),ke.exports}var Wi=Hi();const Pi=xe(Wi);var pe=function(){var t=h(function(S,l,f,d){for(f=f||{},d=S.length;d--;f[S[d]]=l);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],s=[1,29],o=[1,30],y=[1,31],_=[1,32],m=[1,33],g=[1,34],Y=[1,9],x=[1,10],w=[1,11],X=[1,12],I=[1,13],D=[1,14],U=[1,15],z=[1,16],E=[1,19],j=[1,20],q=[1,21],C=[1,22],W=[1,23],b=[1,25],F=[1,35],$={trace:h(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:h(function(S,l,f,d,v,i,T){var c=i.length-1;switch(v){case 1:return i[c-1];case 2:this.$=[];break;case 3:i[c-1].push(i[c]),this.$=i[c-1];break;case 4:case 5:this.$=i[c];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(i[c].substr(11)),this.$=i[c].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=i[c].substr(18);break;case 19:d.TopAxis(),this.$=i[c].substr(8);break;case 20:d.setAxisFormat(i[c].substr(11)),this.$=i[c].substr(11);break;case 21:d.setTickInterval(i[c].substr(13)),this.$=i[c].substr(13);break;case 22:d.setExcludes(i[c].substr(9)),this.$=i[c].substr(9);break;case 23:d.setIncludes(i[c].substr(9)),this.$=i[c].substr(9);break;case 24:d.setTodayMarker(i[c].substr(12)),this.$=i[c].substr(12);break;case 27:d.setDiagramTitle(i[c].substr(6)),this.$=i[c].substr(6);break;case 28:this.$=i[c].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=i[c].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(i[c].substr(8)),this.$=i[c].substr(8);break;case 33:d.addTask(i[c-1],i[c]),this.$="task";break;case 34:this.$=i[c-1],d.setClickEvent(i[c-1],i[c],null);break;case 35:this.$=i[c-2],d.setClickEvent(i[c-2],i[c-1],i[c]);break;case 36:this.$=i[c-2],d.setClickEvent(i[c-2],i[c-1],null),d.setLink(i[c-2],i[c]);break;case 37:this.$=i[c-3],d.setClickEvent(i[c-3],i[c-2],i[c-1]),d.setLink(i[c-3],i[c]);break;case 38:this.$=i[c-2],d.setClickEvent(i[c-2],i[c],null),d.setLink(i[c-2],i[c-1]);break;case 39:this.$=i[c-3],d.setClickEvent(i[c-3],i[c-1],i[c]),d.setLink(i[c-3],i[c-2]);break;case 40:this.$=i[c-1],d.setLink(i[c-1],i[c]);break;case 41:case 47:this.$=i[c-1]+" "+i[c];break;case 42:case 43:case 45:this.$=i[c-2]+" "+i[c-1]+" "+i[c];break;case 44:case 46:this.$=i[c-3]+" "+i[c-2]+" "+i[c-1]+" "+i[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:s,16:o,17:y,18:_,19:18,20:m,21:g,22:Y,23:x,24:w,25:X,26:I,27:D,28:U,29:z,30:E,31:j,33:q,35:C,36:W,37:24,38:b,40:F},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:s,16:o,17:y,18:_,19:18,20:m,21:g,22:Y,23:x,24:w,25:X,26:I,27:D,28:U,29:z,30:E,31:j,33:q,35:C,36:W,37:24,38:b,40:F},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(S,l){if(l.recoverable)this.trace(S);else{var f=new Error(S);throw f.hash=l,f}},"parseError"),parse:h(function(S){var l=this,f=[0],d=[],v=[null],i=[],T=this.table,c="",L=0,A=0,R=2,N=1,kt=i.slice.call(arguments,1),Q=Object.create(this.lexer),st={yy:{}};for(var pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pt)&&(st.yy[pt]=this.yy[pt]);Q.setInput(S,st.yy),st.yy.lexer=Q,st.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var k=Q.yylloc;i.push(k);var O=Q.options&&Q.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function P(it){f.length=f.length-2*it,v.length=v.length-it,i.length=i.length-it}h(P,"popStack");function u(){var it;return it=d.pop()||Q.lex()||N,typeof it!="number"&&(it instanceof Array&&(d=it,it=d.pop()),it=l.symbols_[it]||it),it}h(u,"lex");for(var B,H,G,K,tt={},ot,rt,Ie,Vt;;){if(H=f[f.length-1],this.defaultActions[H]?G=this.defaultActions[H]:((B===null||typeof B>"u")&&(B=u()),G=T[H]&&T[H][B]),typeof G>"u"||!G.length||!G[0]){var ee="";Vt=[];for(ot in T[H])this.terminals_[ot]&&ot>R&&Vt.push("'"+this.terminals_[ot]+"'");Q.showPosition?ee="Parse error on line "+(L+1)+`: `+Q.showPosition()+` Expecting `+Vt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ee="Parse error on line "+(L+1)+": Unexpected "+(B==N?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ee,{text:Q.match,token:this.terminals_[B]||B,line:Q.yylineno,loc:k,expected:Vt})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+B);switch(G[0]){case 1:f.push(B),v.push(Q.yytext),i.push(Q.yylloc),f.push(G[1]),B=null,A=Q.yyleng,c=Q.yytext,L=Q.yylineno,k=Q.yylloc;break;case 2:if(rt=this.productions_[G[1]][1],tt.$=v[v.length-rt],tt._$={first_line:i[i.length-(rt||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(rt||1)].first_column,last_column:i[i.length-1].last_column},O&&(tt._$.range=[i[i.length-(rt||1)].range[0],i[i.length-1].range[1]]),K=this.performAction.apply(tt,[c,A,L,st.yy,G[1],v,i].concat(kt)),typeof K<"u")return K;rt&&(f=f.slice(0,-1*rt*2),v=v.slice(0,-1*rt),i=i.slice(0,-1*rt)),f.push(this.productions_[G[1]][0]),v.push(tt.$),i.push(tt._$),Ie=T[f[f.length-2]][f[f.length-1]],f.push(Ie);break;case 3:return!0}}return!0},"parse")},M=function(){var S={EOF:1,parseError:h(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),setInput:h(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},"setInput"),input:h(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},"input"),unput:h(function(l){var f=l.length,d=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 v=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),d.length-1&&(this.yylineno-=d.length-1);var i=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:d?(d.length===v.length?this.yylloc.first_column:0)+v[v.length-d.length].length-d[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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},"reject"),less:h(function(l){this.unput(this.match.slice(l))},"less"),pastInput:h(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(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,"")},"upcomingInput"),showPosition:h(function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+` `+f+"^"},"showPosition"),test_match:h(function(l,f){var d,v,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),v=l[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],d=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var T in i)this[T]=i[T];return!1}return!1},"test_match"),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,f,d,v;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),T=0;Tf[0].length)){if(f=d,v=T,this.options.backtrack_lexer){if(l=this.test_match(d,i[T]),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,i[v]),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})},"next"),lex:h(function(){var l=this.next();return l||this.lex()},"lex"),begin:h(function(l){this.conditionStack.push(l)},"begin"),popState:h(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:h(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:h(function(l){this.begin(l)},"pushState"),stateStackSize:h(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:h(function(l,f,d,v){switch(d){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";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 S}();$.lexer=M;function p(){this.yy={}}return h(p,"Parser"),p.prototype=$,$.Parser=p,new p}();pe.parser=pe;var zi=pe;nt.extend(Ai),nt.extend(Li),nt.extend(Pi);var Je={friday:5,saturday:6},ct="",De="",_e=void 0,Me="",Pt=[],zt=[],Se=new Map,$e=[],Zt=[],Yt="",Fe="",Cn=["active","done","crit","milestone","vert"],Ye=[],Bt=!1,Ae=!1,Ue="sunday",te="saturday",Te=0,Bi=h(function(){$e=[],Zt=[],Yt="",Ye=[],Xt=0,be=void 0,Rt=void 0,J=[],ct="",De="",Fe="",_e=void 0,Me="",Pt=[],zt=[],Bt=!1,Ae=!1,Te=0,Se=new Map,Vn(),Ue="sunday",te="saturday"},"clear"),Vi=h(function(t){De=t},"setAxisFormat"),Gi=h(function(){return De},"getAxisFormat"),ji=h(function(t){_e=t},"setTickInterval"),Ni=h(function(){return _e},"getTickInterval"),Xi=h(function(t){Me=t},"setTodayMarker"),Ri=h(function(){return Me},"getTodayMarker"),qi=h(function(t){ct=t},"setDateFormat"),Qi=h(function(){Bt=!0},"enableInclusiveEndDates"),Ki=h(function(){return Bt},"endDatesAreInclusive"),Ji=h(function(){Ae=!0},"enableTopAxis"),Zi=h(function(){return Ae},"topAxisEnabled"),ta=h(function(t){Fe=t},"setDisplayMode"),ea=h(function(){return Fe},"getDisplayMode"),na=h(function(){return ct},"getDateFormat"),ra=h(function(t){Pt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),ia=h(function(){return Pt},"getIncludes"),aa=h(function(t){zt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),sa=h(function(){return zt},"getExcludes"),oa=h(function(){return Se},"getLinks"),ca=h(function(t){Yt=t,$e.push(t)},"addSection"),la=h(function(){return $e},"getSections"),ua=h(function(){let t=Ze();const e=10;let n=0;for(;!t&&n[\d\w- ]+)/.exec(n);if(r!==null){let s=null;for(const y of r.groups.ids.split(" ")){let _=Ct(y);_!==void 0&&(!s||_.endTime>s.endTime)&&(s=_)}if(s)return s.endTime;const o=new Date;return o.setHours(0,0,0,0),o}let a=nt(n,e.trim(),!0);if(a.isValid())return a.toDate();{qt.debug("Invalid date:"+n),qt.debug("With date format:"+e.trim());const s=new Date(n);if(s===void 0||isNaN(s.getTime())||s.getFullYear()<-1e4||s.getFullYear()>1e4)throw new Error("Invalid date:"+n);return s}},"getStartDate"),Mn=h(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Sn=h(function(t,e,n,r=!1){n=n.trim();const a=/^until\s+(?[\d\w- ]+)/.exec(n);if(a!==null){let m=null;for(const Y of a.groups.ids.split(" ")){let x=Ct(Y);x!==void 0&&(!m||x.startTime{window.open(n,"_self")}),Se.set(r,n))}),Fn(t,"clickable")},"setLink"),Fn=h(function(t,e){t.split(",").forEach(function(n){let r=Ct(n);r!==void 0&&r.classes.push(e)})},"setClass"),va=h(function(t,e,n){if(_t().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{Gn.runFunc(e,...r)})},"setClickFun"),Yn=h(function(t,e){Ye.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()})})},"pushFun"),ba=h(function(t,e,n){t.split(",").forEach(function(r){va(r,e,n)}),Fn(t,"clickable")},"setClickEvent"),xa=h(function(t){Ye.forEach(function(e){e(t)})},"bindFunctions"),wa={getConfig:h(()=>_t().gantt,"getConfig"),clear:Bi,setDateFormat:qi,getDateFormat:na,enableInclusiveEndDates:Qi,endDatesAreInclusive:Ki,enableTopAxis:Ji,topAxisEnabled:Zi,setAxisFormat:Vi,getAxisFormat:Gi,setTickInterval:ji,getTickInterval:Ni,setTodayMarker:Xi,getTodayMarker:Ri,setAccTitle:Wn,getAccTitle:Hn,setDiagramTitle:On,getDiagramTitle:Ln,setDisplayMode:ta,getDisplayMode:ea,setAccDescription:In,getAccDescription:En,addSection:ca,getSections:la,getTasks:ua,addTask:ka,findTaskById:Ct,addTaskOrg:pa,setIncludes:ra,getIncludes:ia,setExcludes:aa,getExcludes:sa,setClickEvent:ba,setLink:Ta,getLinks:oa,bindFunctions:xa,parseDuration:Mn,isInvalidDate:Dn,setWeekday:da,getWeekday:ha,setWeekend:fa};function Ee(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(a){const s="^\\s*"+a+"\\s*$",o=new RegExp(s);t[0].match(o)&&(e[a]=!0,t.shift(1),r=!0)})}h(Ee,"getTaskTags");var Ca=h(function(){qt.debug("Something is calling, setConf, remove the call")},"setConf"),tn={monday:Ot,tuesday:gn,wednesday:yn,thursday:vt,friday:mn,saturday:kn,sunday:Wt},Da=h((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,o)=>s.startTime-o.startTime||s.order-o.order),a=0;for(const s of r)for(let o=0;o=n[o]){n[o]=s.endTime,s.order=o+e,o>a&&(a=o);break}return a},"getMaxIntersections"),ut,_a=h(function(t,e,n,r){const a=_t().gantt,s=_t().securityLevel;let o;s==="sandbox"&&(o=Gt("#i"+e));const y=s==="sandbox"?Gt(o.nodes()[0].contentDocument.body):Gt("body"),_=s==="sandbox"?o.nodes()[0].contentDocument:document,m=_.getElementById(e);ut=m.parentElement.offsetWidth,ut===void 0&&(ut=1200),a.useWidth!==void 0&&(ut=a.useWidth);const g=r.db.getTasks();let Y=[];for(const b of g)Y.push(b.type);Y=W(Y);const x={};let w=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const b={};for(const $ of g)b[$.section]===void 0?b[$.section]=[$]:b[$.section].push($);let F=0;for(const $ of Object.keys(b)){const M=Da(b[$],F)+1;F+=M,w+=M*(a.barHeight+a.barGap),x[$]=M}}else{w+=g.length*(a.barHeight+a.barGap);for(const b of Y)x[b]=g.filter(F=>F.type===b).length}m.setAttribute("viewBox","0 0 "+ut+" "+w);const X=y.select(`[id="${e}"]`),I=Si().domain([Kn(g,function(b){return b.startTime}),Qn(g,function(b){return b.endTime})]).rangeRound([0,ut-a.leftPadding-a.rightPadding]);function D(b,F){const $=b.startTime,M=F.startTime;let p=0;return $>M?p=1:$i.vert===T.vert?0:i.vert?1:-1);const f=[...new Set(b.map(i=>i.order))].map(i=>b.find(T=>T.order===i));X.append("g").selectAll("rect").data(f).enter().append("rect").attr("x",0).attr("y",function(i,T){return T=i.order,T*F+$-2}).attr("width",function(){return l-a.rightPadding/2}).attr("height",F).attr("class",function(i){for(const[T,c]of Y.entries())if(i.type===c)return"section section"+T%a.numberSectionStyles;return"section section0"}).enter();const d=X.append("g").selectAll("rect").data(b).enter(),v=r.db.getLinks();if(d.append("rect").attr("id",function(i){return i.id}).attr("rx",3).attr("ry",3).attr("x",function(i){return i.milestone?I(i.startTime)+M+.5*(I(i.endTime)-I(i.startTime))-.5*p:I(i.startTime)+M}).attr("y",function(i,T){return T=i.order,i.vert?a.gridLineStartPadding:T*F+$}).attr("width",function(i){return i.milestone?p:i.vert?.08*p:I(i.renderEndTime||i.endTime)-I(i.startTime)}).attr("height",function(i){return i.vert?g.length*(a.barHeight+a.barGap)+a.barHeight*2:p}).attr("transform-origin",function(i,T){return T=i.order,(I(i.startTime)+M+.5*(I(i.endTime)-I(i.startTime))).toString()+"px "+(T*F+$+.5*p).toString()+"px"}).attr("class",function(i){const T="task";let c="";i.classes.length>0&&(c=i.classes.join(" "));let L=0;for(const[R,N]of Y.entries())i.type===N&&(L=R%a.numberSectionStyles);let A="";return i.active?i.crit?A+=" activeCrit":A=" active":i.done?i.crit?A=" doneCrit":A=" done":i.crit&&(A+=" crit"),A.length===0&&(A=" task"),i.milestone&&(A=" milestone "+A),i.vert&&(A=" vert "+A),A+=L,A+=" "+c,T+A}),d.append("text").attr("id",function(i){return i.id+"-text"}).text(function(i){return i.task}).attr("font-size",a.fontSize).attr("x",function(i){let T=I(i.startTime),c=I(i.renderEndTime||i.endTime);if(i.milestone&&(T+=.5*(I(i.endTime)-I(i.startTime))-.5*p,c=T+p),i.vert)return I(i.startTime)+M;const L=this.getBBox().width;return L>c-T?c+L+1.5*a.leftPadding>l?T+M-5:c+M+5:(c-T)/2+T+M}).attr("y",function(i,T){return i.vert?a.gridLineStartPadding+g.length*(a.barHeight+a.barGap)+60:(T=i.order,T*F+a.barHeight/2+(a.fontSize/2-2)+$)}).attr("text-height",p).attr("class",function(i){const T=I(i.startTime);let c=I(i.endTime);i.milestone&&(c=T+p);const L=this.getBBox().width;let A="";i.classes.length>0&&(A=i.classes.join(" "));let R=0;for(const[kt,Q]of Y.entries())i.type===Q&&(R=kt%a.numberSectionStyles);let N="";return i.active&&(i.crit?N="activeCritText"+R:N="activeText"+R),i.done?i.crit?N=N+" doneCritText"+R:N=N+" doneText"+R:i.crit&&(N=N+" critText"+R),i.milestone&&(N+=" milestoneText"),i.vert&&(N+=" vertText"),L>c-T?c+L+1.5*a.leftPadding>l?A+" taskTextOutsideLeft taskTextOutside"+R+" "+N:A+" taskTextOutsideRight taskTextOutside"+R+" "+N+" width-"+L:A+" taskText taskText"+R+" "+N+" width-"+L}),_t().securityLevel==="sandbox"){let i;i=Gt("#i"+e);const T=i.nodes()[0].contentDocument;d.filter(function(c){return v.has(c.id)}).each(function(c){var L=T.querySelector("#"+c.id),A=T.querySelector("#"+c.id+"-text");const R=L.parentNode;var N=T.createElement("a");N.setAttribute("xlink:href",v.get(c.id)),N.setAttribute("target","_top"),R.appendChild(N),N.appendChild(L),N.appendChild(A)})}}h(z,"drawRects");function E(b,F,$,M,p,S,l,f){if(l.length===0&&f.length===0)return;let d,v;for(const{startTime:A,endTime:R}of S)(d===void 0||Av)&&(v=R);if(!d||!v)return;if(nt(v).diff(nt(d),"year")>5){qt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const i=r.db.getDateFormat(),T=[];let c=null,L=nt(d);for(;L.valueOf()<=v;)r.db.isInvalidDate(L,i,l,f)?c?c.end=L:c={start:L,end:L}:c&&(T.push(c),c=null),L=L.add(1,"d");X.append("g").selectAll("rect").data(T).enter().append("rect").attr("id",A=>"exclude-"+A.start.format("YYYY-MM-DD")).attr("x",A=>I(A.start.startOf("day"))+$).attr("y",a.gridLineStartPadding).attr("width",A=>I(A.end.endOf("day"))-I(A.start.startOf("day"))).attr("height",p-F-a.gridLineStartPadding).attr("transform-origin",function(A,R){return(I(A.start)+$+.5*(I(A.end)-I(A.start))).toString()+"px "+(R*b+.5*p).toString()+"px"}).attr("class","exclude-range")}h(E,"drawExcludeDays");function j(b,F,$,M){const p=r.db.getDateFormat(),S=r.db.getAxisFormat();let l;S?l=S:p==="D"?l="%d":l=a.axisFormat??"%Y-%m-%d";let f=ar(I).tickSize(-M+F+a.gridLineStartPadding).tickFormat(Jt(l));const d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(d!==null){const v=d[1],i=d[2],T=r.db.getWeekday()||a.weekday;switch(i){case"millisecond":f.ticks(St.every(v));break;case"second":f.ticks(mt.every(v));break;case"minute":f.ticks(It.every(v));break;case"hour":f.ticks(Lt.every(v));break;case"day":f.ticks(Tt.every(v));break;case"week":f.ticks(tn[T].every(v));break;case"month":f.ticks(Ht.every(v));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+b+", "+(M-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let v=ir(I).tickSize(-M+F+a.gridLineStartPadding).tickFormat(Jt(l));if(d!==null){const i=d[1],T=d[2],c=r.db.getWeekday()||a.weekday;switch(T){case"millisecond":v.ticks(St.every(i));break;case"second":v.ticks(mt.every(i));break;case"minute":v.ticks(It.every(i));break;case"hour":v.ticks(Lt.every(i));break;case"day":v.ticks(Tt.every(i));break;case"week":v.ticks(tn[c].every(i));break;case"month":v.ticks(Ht.every(i));break}}X.append("g").attr("class","grid").attr("transform","translate("+b+", "+F+")").call(v).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}h(j,"makeGrid");function q(b,F){let $=0;const M=Object.keys(x).map(p=>[p,x[p]]);X.append("g").selectAll("text").data(M).enter().append(function(p){const S=p[0].split(zn.lineBreakRegex),l=-(S.length-1)/2,f=_.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",l+"em");for(const[d,v]of S.entries()){const i=_.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttribute("alignment-baseline","central"),i.setAttribute("x","10"),d>0&&i.setAttribute("dy","1em"),i.textContent=v,f.appendChild(i)}return f}).attr("x",10).attr("y",function(p,S){if(S>0)for(let l=0;l` .mermaid-main-font { font-family: ${t.fontFamily}; } .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-family: ${t.fontFamily}; } /* Grid and axis */ .grid .tick { stroke: ${t.gridColor}; opacity: 0.8; shape-rendering: crispEdges; } .grid .tick 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: ${t.fontFamily}; } .taskTextOutsideRight { fill: ${t.taskTextDarkColor}; text-anchor: start; font-family: ${t.fontFamily}; } .taskTextOutsideLeft { fill: ${t.taskTextDarkColor}; text-anchor: end; } /* 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; } .vert { stroke: ${t.vertLineColor}; } .vertText { font-size: 15px; text-anchor: middle; fill: ${t.vertLineColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill: ${t.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; fill: ${t.titleColor||t.textColor}; font-family: ${t.fontFamily}; } `,"getStyles"),$a=Sa,Wa={parser:zi,db:wa,renderer:Ma,styles:$a};export{Wa as diagram}; //# sourceMappingURL=ganttDiagram-LVOFAZNH-zWAjY9sg.chunk.mjs.map