markdown-flow-ui
Version:
A React UI library for rendering markdown with interactive flow components, typewriter effects, and plugin support
6 lines • 63.7 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CbHAb2u0.js"),De=require("./linear-DpjffQGn.js"),bn=require("./init-CHZsXQcr.js");function wn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function Cn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Dn(e){return e}var qe=1,rt=2,ht=3,je=4,Et=1e-6;function Mn(e){return"translate("+e+",0)"}function Sn(e){return"translate(0,"+e+")"}function Fn(e){return t=>+e(t)}function Yn(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Un(){return!this.__axis}function $t(e,t){var n=[],r=null,a=null,i=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=e===qe||e===je?-1:1,g=e===je||e===rt?"x":"y",E=e===qe||e===ht?Mn:Sn;function C(_){var Z=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Dn),D=Math.max(i,0)+y,I=t.range(),P=+I[0]+M,W=+I[I.length-1]+M,q=(t.bandwidth?Yn:Fn)(t.copy(),M),$=_.selection?_.selection():_,w=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(Z,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),F=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),F=F.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",p*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,p*D).attr("dy",e===qe?"0em":e===ht?"0.71em":"0.32em")),_!==$&&(w=w.transition(_),H=H.transition(_),F=F.transition(_),S=S.transition(_),x=x.transition(_).attr("opacity",Et).attr("transform",function(v){return isFinite(v=q(v))?E(v+M):this.getAttribute("transform")}),Y.attr("opacity",Et).attr("transform",function(v){var U=this.parentNode.__axis;return E((U&&isFinite(U=U(v))?U:q(v))+M)})),x.remove(),w.attr("d",e===je||e===rt?o?"M"+p*o+","+P+"H"+M+"V"+W+"H"+p*o:"M"+M+","+P+"V"+W:o?"M"+P+","+p*o+"V"+M+"H"+W+"V"+p*o:"M"+P+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(v){return E(q(v)+M)}),F.attr(g+"2",p*i),S.attr(g,p*D).text(O),$.filter(Un).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===rt?"start":e===je?"end":"middle"),$.each(function(){this.__axis=q})}return C.scale=function(_){return arguments.length?(t=_,C):t},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(_){return arguments.length?(n=_==null?[]:Array.from(_),C):n.slice()},C.tickValues=function(_){return arguments.length?(r=_==null?null:Array.from(_),C):r&&r.slice()},C.tickFormat=function(_){return arguments.length?(a=_,C):a},C.tickSize=function(_){return arguments.length?(i=o=+_,C):i},C.tickSizeInner=function(_){return arguments.length?(i=+_,C):i},C.tickSizeOuter=function(_){return arguments.length?(o=+_,C):o},C.tickPadding=function(_){return arguments.length?(y=+_,C):y},C.offset=function(_){return arguments.length?(M=+_,C):M},C}function En(e){return $t(qe,e)}function An(e){return $t(ht,e)}const Ln=Math.PI/180,In=180/Math.PI,Qe=18,Qt=.96422,Jt=1,Kt=.82521,en=4/29,Me=6/29,tn=3*Me*Me,Wn=Me*Me*Me;function nn(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof de)return rn(e);e instanceof s.Rgb||(e=s.rgbConvert(e));var t=ot(e.r),n=ot(e.g),r=ot(e.b),a=at((.2225045*t+.7168786*n+.0606169*r)/Jt),i,o;return t===n&&n===r?i=o=a:(i=at((.4360747*t+.3850649*n+.1430804*r)/Qt),o=at((.0139322*t+.0971045*n+.7141733*r)/Kt)),new ue(116*a-16,500*(i-a),200*(a-o),e.opacity)}function On(e,t,n,r){return arguments.length===1?nn(e):new ue(e,t,n,r??1)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}s.define(ue,On,s.extend(s.Color$1,{brighter(e){return new ue(this.l+Qe*(e??1),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-Qe*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Qt*it(t),e=Jt*it(e),n=Kt*it(n),new s.Rgb(st(3.1338561*t-1.6168667*e-.4906146*n),st(-.9787684*t+1.9161415*e+.033454*n),st(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function at(e){return e>Wn?Math.pow(e,1/3):e/tn+en}function it(e){return e>Me?e*e*e:tn*(e-en)}function st(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hn(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=nn(e)),e.a===0&&e.b===0)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*In;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function mt(e,t,n,r){return arguments.length===1?Hn(e):new de(e,t,n,r??1)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rn(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*Ln;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}s.define(de,mt,s.extend(s.Color$1,{brighter(e){return new de(this.h,this.c,this.l+Qe*(e??1),this.opacity)},darker(e){return new de(this.h,this.c,this.l-Qe*(e??1),this.opacity)},rgb(){return rn(this).rgb()}}));function Nn(e){return function(t,n){var r=e((t=mt(t)).h,(n=mt(n)).h),a=s.nogamma(t.c,n.c),i=s.nogamma(t.l,n.l),o=s.nogamma(t.opacity,n.opacity);return function(y){return t.h=r(y),t.c=a(y),t.l=i(y),t.opacity=o(y),t+""}}}const Pn=Nn(s.hue);function Vn(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}const ct=new Date,lt=new Date;function te(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),y=a.ceil(i);return i-o<y-i?o:y},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,y)=>{const M=[];if(i=a.ceil(i),y=y==null?1:Math.floor(y),!(i<o)||!(y>0))return M;let p;do M.push(p=new Date(+i)),t(i,y),e(i);while(p<i&&i<o);return M},a.filter=i=>te(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;t(o,-1),!i(o););else for(;--y>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ct.setTime(+i),lt.setTime(+o),e(ct),e(lt),Math.floor(n(ct,lt))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Fe=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fe);Fe.range;const he=1e3,oe=he*60,me=oe*60,ge=me*24,vt=ge*7,At=ge*30,ut=ge*365,pe=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*he)},(e,t)=>(t-e)/he,e=>e.getUTCSeconds());pe.range;const Ie=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getMinutes());Ie.range;const zn=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getUTCMinutes());zn.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he-e.getMinutes()*oe)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getHours());We.range;const Rn=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCHours());Rn.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oe)/ge,e=>e.getDate()-1);ve.range;const Tt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>e.getUTCDate()-1);Tt.range;const jn=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>Math.floor(e/ge));jn.range;function xe(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oe)/vt)}const Ne=xe(0),Oe=xe(1),an=xe(2),sn=xe(3),Te=xe(4),on=xe(5),cn=xe(6);Ne.range;Oe.range;an.range;sn.range;Te.range;on.range;cn.range;function be(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vt)}const ln=be(0),Je=be(1),qn=be(2),Bn=be(3),Ye=be(4),Zn=be(5),Xn=be(6);ln.range;Je.range;qn.range;Bn.range;Ye.range;Zn.range;Xn.range;const He=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());He.range;const Gn=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gn.range;const ye=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ye.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ye.range;const _e=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_e.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});_e.range;function $n(e,t,n,r,a,i){const o=[[pe,1,he],[pe,5,5*he],[pe,15,15*he],[pe,30,30*he],[i,1,oe],[i,5,5*oe],[i,15,15*oe],[i,30,30*oe],[a,1,me],[a,3,3*me],[a,6,6*me],[a,12,12*me],[r,1,ge],[r,2,2*ge],[n,1,vt],[t,1,At],[t,3,3*At],[e,1,ut]];function y(p,g,E){const C=g<p;C&&([p,g]=[g,p]);const _=E&&typeof E.range=="function"?E:M(p,g,E),Z=_?_.range(p,+g+1):[];return C?Z.reverse():Z}function M(p,g,E){const C=Math.abs(g-p)/E,_=De.bisector(([,,D])=>D).right(o,C);if(_===o.length)return e.every(De.tickStep(p/ut,g/ut,E));if(_===0)return Fe.every(Math.max(De.tickStep(p,g,E),1));const[Z,O]=o[C/o[_-1][2]<o[_][2]/C?_-1:_];return Z.every(O)}return[y,M]}const[Qn,Jn]=$n(ye,He,Ne,ve,We,Ie);function ft(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function dt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ee(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Kn(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,y=e.months,M=e.shortMonths,p=Ae(a),g=Le(a),E=Ae(i),C=Le(i),_=Ae(o),Z=Le(o),O=Ae(y),D=Le(y),I=Ae(M),P=Le(M),W={a:h,A:b,b:l,B:u,c:null,d:Nt,e:Nt,f:xr,g:Er,G:Lr,H:vr,I:Tr,j:_r,L:un,m:br,M:wr,p:c,q:z,Q:zt,s:Rt,S:Cr,u:Dr,U:Mr,V:Sr,w:Fr,W:Yr,x:null,X:null,y:Ur,Y:Ar,Z:Ir,"%":Vt},q={a:V,A:R,b:K,B:X,c:null,d:Pt,e:Pt,f:Nr,g:Gr,G:Qr,H:Wr,I:Or,j:Hr,L:dn,m:Pr,M:Vr,p:Q,q:ae,Q:zt,s:Rt,S:zr,u:Rr,U:jr,V:qr,w:Br,W:Zr,x:null,X:null,y:Xr,Y:$r,Z:Jr,"%":Vt},$={a:F,A:S,b:v,B:U,c:f,d:Ot,e:Ot,f:gr,g:Wt,G:It,H:Ht,I:Ht,j:fr,L:mr,m:ur,M:dr,p:Y,q:lr,Q:kr,s:pr,S:hr,u:ar,U:ir,V:sr,w:rr,W:or,x:m,X:T,y:Wt,Y:It,Z:cr,"%":yr};W.x=w(n,W),W.X=w(r,W),W.c=w(t,W),q.x=w(n,q),q.X=w(r,q),q.c=w(t,q);function w(k,L){return function(N){var d=[],J=-1,A=0,G=k.length,B,re,ie;for(N instanceof Date||(N=new Date(+N));++J<G;)k.charCodeAt(J)===37&&(d.push(k.slice(A,J)),(re=Lt[B=k.charAt(++J)])!=null?B=k.charAt(++J):re=B==="e"?" ":"0",(ie=L[B])&&(B=ie(N,re)),d.push(B),A=J+1);return d.push(k.slice(A,J)),d.join("")}}function H(k,L){return function(N){var d=Ee(1900,void 0,1),J=x(d,k,N+="",0),A,G;if(J!=N.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(L&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(A=dt(Ee(d.y,0,1)),G=A.getUTCDay(),A=G>4||G===0?Je.ceil(A):Je(A),A=Tt.offset(A,(d.V-1)*7),d.y=A.getUTCFullYear(),d.m=A.getUTCMonth(),d.d=A.getUTCDate()+(d.w+6)%7):(A=ft(Ee(d.y,0,1)),G=A.getDay(),A=G>4||G===0?Oe.ceil(A):Oe(A),A=ve.offset(A,(d.V-1)*7),d.y=A.getFullYear(),d.m=A.getMonth(),d.d=A.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),G="Z"in d?dt(Ee(d.y,0,1)).getUTCDay():ft(Ee(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(G+5)%7:d.w+d.U*7-(G+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,dt(d)):ft(d)}}function x(k,L,N,d){for(var J=0,A=L.length,G=N.length,B,re;J<A;){if(d>=G)return-1;if(B=L.charCodeAt(J++),B===37){if(B=L.charAt(J++),re=$[B in Lt?L.charAt(J++):B],!re||(d=re(k,N,d))<0)return-1}else if(B!=N.charCodeAt(d++))return-1}return d}function Y(k,L,N){var d=p.exec(L.slice(N));return d?(k.p=g.get(d[0].toLowerCase()),N+d[0].length):-1}function F(k,L,N){var d=_.exec(L.slice(N));return d?(k.w=Z.get(d[0].toLowerCase()),N+d[0].length):-1}function S(k,L,N){var d=E.exec(L.slice(N));return d?(k.w=C.get(d[0].toLowerCase()),N+d[0].length):-1}function v(k,L,N){var d=I.exec(L.slice(N));return d?(k.m=P.get(d[0].toLowerCase()),N+d[0].length):-1}function U(k,L,N){var d=O.exec(L.slice(N));return d?(k.m=D.get(d[0].toLowerCase()),N+d[0].length):-1}function f(k,L,N){return x(k,t,L,N)}function m(k,L,N){return x(k,n,L,N)}function T(k,L,N){return x(k,r,L,N)}function h(k){return o[k.getDay()]}function b(k){return i[k.getDay()]}function l(k){return M[k.getMonth()]}function u(k){return y[k.getMonth()]}function c(k){return a[+(k.getHours()>=12)]}function z(k){return 1+~~(k.getMonth()/3)}function V(k){return o[k.getUTCDay()]}function R(k){return i[k.getUTCDay()]}function K(k){return M[k.getUTCMonth()]}function X(k){return y[k.getUTCMonth()]}function Q(k){return a[+(k.getUTCHours()>=12)]}function ae(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var L=w(k+="",W);return L.toString=function(){return k},L},parse:function(k){var L=H(k+="",!1);return L.toString=function(){return k},L},utcFormat:function(k){var L=w(k+="",q);return L.toString=function(){return k},L},utcParse:function(k){var L=H(k+="",!0);return L.toString=function(){return k},L}}}var Lt={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,er=/^%/,tr=/[\\^$*+?|[\]().{}]/g;function j(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function nr(e){return e.replace(tr,"\\$&")}function Ae(e){return new RegExp("^(?:"+e.map(nr).join("|")+")","i")}function Le(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function rr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function It(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ur(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ot(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ht(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yr(e,t,n){var r=er.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nt(e,t){return j(e.getDate(),t,2)}function vr(e,t){return j(e.getHours(),t,2)}function Tr(e,t){return j(e.getHours()%12||12,t,2)}function _r(e,t){return j(1+ve.count(ye(e),e),t,3)}function un(e,t){return j(e.getMilliseconds(),t,3)}function xr(e,t){return un(e,t)+"000"}function br(e,t){return j(e.getMonth()+1,t,2)}function wr(e,t){return j(e.getMinutes(),t,2)}function Cr(e,t){return j(e.getSeconds(),t,2)}function Dr(e){var t=e.getDay();return t===0?7:t}function Mr(e,t){return j(Ne.count(ye(e)-1,e),t,2)}function fn(e){var t=e.getDay();return t>=4||t===0?Te(e):Te.ceil(e)}function Sr(e,t){return e=fn(e),j(Te.count(ye(e),e)+(ye(e).getDay()===4),t,2)}function Fr(e){return e.getDay()}function Yr(e,t){return j(Oe.count(ye(e)-1,e),t,2)}function Ur(e,t){return j(e.getFullYear()%100,t,2)}function Er(e,t){return e=fn(e),j(e.getFullYear()%100,t,2)}function Ar(e,t){return j(e.getFullYear()%1e4,t,4)}function Lr(e,t){var n=e.getDay();return e=n>=4||n===0?Te(e):Te.ceil(e),j(e.getFullYear()%1e4,t,4)}function Ir(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+j(t/60|0,"0",2)+j(t%60,"0",2)}function Pt(e,t){return j(e.getUTCDate(),t,2)}function Wr(e,t){return j(e.getUTCHours(),t,2)}function Or(e,t){return j(e.getUTCHours()%12||12,t,2)}function Hr(e,t){return j(1+Tt.count(_e(e),e),t,3)}function dn(e,t){return j(e.getUTCMilliseconds(),t,3)}function Nr(e,t){return dn(e,t)+"000"}function Pr(e,t){return j(e.getUTCMonth()+1,t,2)}function Vr(e,t){return j(e.getUTCMinutes(),t,2)}function zr(e,t){return j(e.getUTCSeconds(),t,2)}function Rr(e){var t=e.getUTCDay();return t===0?7:t}function jr(e,t){return j(ln.count(_e(e)-1,e),t,2)}function hn(e){var t=e.getUTCDay();return t>=4||t===0?Ye(e):Ye.ceil(e)}function qr(e,t){return e=hn(e),j(Ye.count(_e(e),e)+(_e(e).getUTCDay()===4),t,2)}function Br(e){return e.getUTCDay()}function Zr(e,t){return j(Je.count(_e(e)-1,e),t,2)}function Xr(e,t){return j(e.getUTCFullYear()%100,t,2)}function Gr(e,t){return e=hn(e),j(e.getUTCFullYear()%100,t,2)}function $r(e,t){return j(e.getUTCFullYear()%1e4,t,4)}function Qr(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ye(e):Ye.ceil(e),j(e.getUTCFullYear()%1e4,t,4)}function Jr(){return"+0000"}function Vt(){return"%"}function zt(e){return+e}function Rt(e){return Math.floor(+e/1e3)}var Ce,Ke;Kr({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 Kr(e){return Ce=Kn(e),Ke=Ce.format,Ce.parse,Ce.utcFormat,Ce.utcParse,Ce}function ea(e){return new Date(e)}function ta(e){return e instanceof Date?+e:+new Date(+e)}function mn(e,t,n,r,a,i,o,y,M,p){var g=De.continuous(),E=g.invert,C=g.domain,_=p(".%L"),Z=p(":%S"),O=p("%I:%M"),D=p("%I %p"),I=p("%a %d"),P=p("%b %d"),W=p("%B"),q=p("%Y");function $(w){return(M(w)<w?_:y(w)<w?Z:o(w)<w?O:i(w)<w?D:r(w)<w?a(w)<w?I:P:n(w)<w?W:q)(w)}return g.invert=function(w){return new Date(E(w))},g.domain=function(w){return arguments.length?C(Array.from(w,ta)):C().map(ea)},g.ticks=function(w){var H=C();return e(H[0],H[H.length-1],w??10)},g.tickFormat=function(w,H){return H==null?$:p(H)},g.nice=function(w){var H=C();return(!w||typeof w.range!="function")&&(w=t(H[0],H[H.length-1],w??10)),w?C(Vn(H,w)):g},g.copy=function(){return De.copy(g,mn(e,t,n,r,a,i,o,y,M,p))},g}function na(){return bn.initRange.apply(mn(Qn,Jn,ye,He,Ne,ve,We,Ie,pe,Ke).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Be={exports:{}},ra=Be.exports,jt;function aa(){return jt||(jt=1,(function(e,t){(function(n,r){e.exports=r()})(ra,(function(){var n="day";return function(r,a,i){var o=function(p){return p.add(4-p.isoWeekday(),n)},y=a.prototype;y.isoWeekYear=function(){return o(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,E,C,_,Z=o(this),O=(g=this.isoWeekYear(),E=this.$u,C=(E?i.utc:i)().year(g).startOf("year"),_=4-C.isoWeekday(),C.isoWeekday()>4&&(_+=7),C.add(_,n));return Z.diff(O,"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,g){var E=this.$utils(),C=!!E.u(g)||g;return E.p(p)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,g)}}}))})(Be)),Be.exports}var ia=aa();const sa=s.getDefaultExportFromCjs(ia);var Ze={exports:{}},oa=Ze.exports,qt;function ca(){return qt||(qt=1,(function(e,t){(function(n,r){e.exports=r()})(oa,(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/,i=/\d\d/,o=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,M={},p=function(D){return(D=+D)+(D>68?1900:2e3)},g=function(D){return function(I){this[D]=+I}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var P=I.match(/([+-]|\d\d)/g),W=60*P[1]+(+P[2]||0);return W===0?0:P[0]==="+"?-W:W})(D)}],C=function(D){var I=M[D];return I&&(I.indexOf?I:I.s.concat(I.f))},_=function(D,I){var P,W=M.meridiem;if(W){for(var q=1;q<=24;q+=1)if(D.indexOf(W(q,0,I))>-1){P=q>12;break}}else P=D===(I?"pm":"PM");return P},Z={A:[y,function(D){this.afternoon=_(D,!1)}],a:[y,function(D){this.afternoon=_(D,!0)}],Q:[a,function(D){this.month=3*(D-1)+1}],S:[a,function(D){this.milliseconds=100*+D}],SS:[i,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:[i,g("day")],Do:[y,function(D){var I=M.ordinal,P=D.match(/\d+/);if(this.day=P[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===D&&(this.day=W)}],w:[o,g("week")],ww:[i,g("week")],M:[o,g("month")],MM:[i,g("month")],MMM:[y,function(D){var I=C("months"),P=(C("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(D)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[y,function(D){var I=C("months").indexOf(D)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(D){this.year=p(D)}],YYYY:[/\d{4}/,g("year")],Z:E,ZZ:E};function O(D){var I,P;I=D,P=M&&M.formats;for(var W=(D=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,S,v){var U=v&&v.toUpperCase();return S||P[v]||n[v]||P[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(f,m,T){return m||T.slice(1)}))}))).match(r),q=W.length,$=0;$<q;$+=1){var w=W[$],H=Z[w],x=H&&H[0],Y=H&&H[1];W[$]=Y?{regex:x,parser:Y}:w.replace(/^\[|\]$/g,"")}return function(F){for(var S={},v=0,U=0;v<q;v+=1){var f=W[v];if(typeof f=="string")U+=f.length;else{var m=f.regex,T=f.parser,h=F.slice(U),b=m.exec(h)[0];T.call(S,b),F=F.replace(b,"")}}return(function(l){var u=l.afternoon;if(u!==void 0){var c=l.hours;u?c<12&&(l.hours+=12):c===12&&(l.hours=0),delete l.afternoon}})(S),S}}return function(D,I,P){P.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(p=D.parseTwoDigitYear);var W=I.prototype,q=W.parse;W.parse=function($){var w=$.date,H=$.utc,x=$.args;this.$u=H;var Y=x[1];if(typeof Y=="string"){var F=x[2]===!0,S=x[3]===!0,v=F||S,U=x[2];S&&(U=x[2]),M=this.$locale(),!F&&U&&(M=P.Ls[U]),this.$d=(function(h,b,l,u){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*h);var c=O(b)(h),z=c.year,V=c.month,R=c.day,K=c.hours,X=c.minutes,Q=c.seconds,ae=c.milliseconds,k=c.zone,L=c.week,N=new Date,d=R||(z||V?1:N.getDate()),J=z||N.getFullYear(),A=0;z&&!V||(A=V>0?V-1:N.getMonth());var G,B=K||0,re=X||0,ie=Q||0,ke=ae||0;return k?new Date(Date.UTC(J,A,d,B,re,ie,ke+60*k.offset*1e3)):l?new Date(Date.UTC(J,A,d,B,re,ie,ke)):(G=new Date(J,A,d,B,re,ie,ke),L&&(G=u(G).week(L).toDate()),G)}catch{return new Date("")}})(w,Y,H,P),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),v&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var f=Y.length,m=1;m<=f;m+=1){x[1]=Y[m-1];var T=P.apply(this,x);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}m===f&&(this.$d=new Date(""))}else q.call(this,$)}}}))})(Ze)),Ze.exports}var la=ca();const ua=s.getDefaultExportFromCjs(la);var Xe={exports:{}},fa=Xe.exports,Bt;function da(){return Bt||(Bt=1,(function(e,t){(function(n,r){e.exports=r()})(fa,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return i.bind(this)(o);var p=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(E){switch(E){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(),E==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),E==="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 E}}));return i.bind(this)(g)}}}))})(Xe)),Xe.exports}var ha=da();const ma=s.getDefaultExportFromCjs(ha);var gt=(function(){var e=s.__name(function(U,f,m,T){for(m=m||{},T=U.length;T--;m[U[T]]=f);return m},"o"),t=[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],i=[1,29],o=[1,30],y=[1,31],M=[1,32],p=[1,33],g=[1,34],E=[1,9],C=[1,10],_=[1,11],Z=[1,12],O=[1,13],D=[1,14],I=[1,15],P=[1,16],W=[1,19],q=[1,20],$=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],F={trace:s.__name(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:s.__name(function(f,m,T,h,b,l,u){var c=l.length-1;switch(b){case 1:return l[c-1];case 2:this.$=[];break;case 3:l[c-1].push(l[c]),this.$=l[c-1];break;case 4:case 5:this.$=l[c];break;case 6:case 7:this.$=[];break;case 8:h.setWeekday("monday");break;case 9:h.setWeekday("tuesday");break;case 10:h.setWeekday("wednesday");break;case 11:h.setWeekday("thursday");break;case 12:h.setWeekday("friday");break;case 13:h.setWeekday("saturday");break;case 14:h.setWeekday("sunday");break;case 15:h.setWeekend("friday");break;case 16:h.setWeekend("saturday");break;case 17:h.setDateFormat(l[c].substr(11)),this.$=l[c].substr(11);break;case 18:h.enableInclusiveEndDates(),this.$=l[c].substr(18);break;case 19:h.TopAxis(),this.$=l[c].substr(8);break;case 20:h.setAxisFormat(l[c].substr(11)),this.$=l[c].substr(11);break;case 21:h.setTickInterval(l[c].substr(13)),this.$=l[c].substr(13);break;case 22:h.setExcludes(l[c].substr(9)),this.$=l[c].substr(9);break;case 23:h.setIncludes(l[c].substr(9)),this.$=l[c].substr(9);break;case 24:h.setTodayMarker(l[c].substr(12)),this.$=l[c].substr(12);break;case 27:h.setDiagramTitle(l[c].substr(6)),this.$=l[c].substr(6);break;case 28:this.$=l[c].trim(),h.setAccTitle(this.$);break;case 29:case 30:this.$=l[c].trim(),h.setAccDescription(this.$);break;case 31:h.addSection(l[c].substr(8)),this.$=l[c].substr(8);break;case 33:h.addTask(l[c-1],l[c]),this.$="task";break;case 34:this.$=l[c-1],h.setClickEvent(l[c-1],l[c],null);break;case 35:this.$=l[c-2],h.setClickEvent(l[c-2],l[c-1],l[c]);break;case 36:this.$=l[c-2],h.setClickEvent(l[c-2],l[c-1],null),h.setLink(l[c-2],l[c]);break;case 37:this.$=l[c-3],h.setClickEvent(l[c-3],l[c-2],l[c-1]),h.setLink(l[c-3],l[c]);break;case 38:this.$=l[c-2],h.setClickEvent(l[c-2],l[c],null),h.setLink(l[c-2],l[c-1]);break;case 39:this.$=l[c-3],h.setClickEvent(l[c-3],l[c-1],l[c]),h.setLink(l[c-3],l[c-2]);break;case 40:this.$=l[c-1],h.setLink(l[c-1],l[c]);break;case 41:case 47:this.$=l[c-1]+" "+l[c];break;case 42:case 43:case 45:this.$=l[c-2]+" "+l[c-1]+" "+l[c];break;case 44:case 46:this.$=l[c-3]+" "+l[c-2]+" "+l[c-1]+" "+l[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[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:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:C,24:_,25:Z,26:O,27:D,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:C,24:_,25:Z,26:O,27:D,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:s.__name(function(f,m){if(m.recoverable)this.trace(f);else{var T=new Error(f);throw T.hash=m,T}},"parseError"),parse:s.__name(function(f){var m=this,T=[0],h=[],b=[null],l=[],u=this.table,c="",z=0,V=0,R=2,K=1,X=l.slice.call(arguments,1),Q=Object.create(this.lexer),ae={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(ae.yy[k]=this.yy[k]);Q.setInput(f,ae.yy),ae.yy.lexer=Q,ae.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var L=Q.yylloc;l.push(L);var N=Q.options&&Q.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(se){T.length=T.length-2*se,b.length=b.length-se,l.length=l.length-se}s.__name(d,"popStack");function J(){var se;return se=h.pop()||Q.lex()||K,typeof se!="number"&&(se instanceof Array&&(h=se,se=h.pop()),se=m.symbols_[se]||se),se}s.__name(J,"lex");for(var A,G,B,re,ie={},ke,ce,Ut,Re;;){if(G=T[T.length-1],this.defaultActions[G]?B=this.defaultActions[G]:((A===null||typeof A>"u")&&(A=J()),B=u[G]&&u[G][A]),typeof B>"u"||!B.length||!B[0]){var nt="";Re=[];for(ke in u[G])this.terminals_[ke]&&ke>R&&Re.push("'"+this.terminals_[ke]+"'");Q.showPosition?nt="Parse error on line "+(z+1)+`:
`+Q.showPosition()+`
Expecting `+Re.join(", ")+", got '"+(this.terminals_[A]||A)+"'":nt="Parse error on line "+(z+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(nt,{text:Q.match,token:this.terminals_[A]||A,line:Q.yylineno,loc:L,expected:Re})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+A);switch(B[0]){case 1:T.push(A),b.push(Q.yytext),l.push(Q.yylloc),T.push(B[1]),A=null,V=Q.yyleng,c=Q.yytext,z=Q.yylineno,L=Q.yylloc;break;case 2:if(ce=this.productions_[B[1]][1],ie.$=b[b.length-ce],ie._$={first_line:l[l.length-(ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ce||1)].first_column,last_column:l[l.length-1].last_column},N&&(ie._$.range=[l[l.length-(ce||1)].range[0],l[l.length-1].range[1]]),re=this.performAction.apply(ie,[c,V,z,ae.yy,B[1],b,l].concat(X)),typeof re<"u")return re;ce&&(T=T.slice(0,-1*ce*2),b=b.slice(0,-1*ce),l=l.slice(0,-1*ce)),T.push(this.productions_[B[1]][0]),b.push(ie.$),l.push(ie._$),Ut=u[T[T.length-2]][T[T.length-1]],T.push(Ut);break;case 3:return!0}}return!0},"parse")},S=(function(){var U={EOF:1,parseError:s.__name(function(m,T){if(this.yy.parser)this.yy.parser.parseError(m,T);else throw new Error(m)},"parseError"),setInput:s.__name(function(f,m){return this.yy=m||this.yy||{},this._input=f,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:s.__name(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var m=f.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:s.__name(function(f){var m=f.length,T=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var h=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),T.length-1&&(this.yylineno-=T.length-1);var b=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:T?(T.length===h.length?this.yylloc.first_column:0)+h[h.length-T.length].length-T[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(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:s.__name(function(f){this.unput(this.match.slice(f))},"less"),pastInput:s.__name(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var f=this.pastInput(),m=new Array(f.length+1).join("-");return f+this.upcomingInput()+`
`+m+"^"},"showPosition"),test_match:s.__name(function(f,m){var T,h,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),h=f[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,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(f[0].length),this.matched+=f[0],T=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var l in b)this[l]=b[l];return!1}return!1},"test_match"),next:s.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,m,T,h;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),l=0;l<b.length;l++)if(T=this._input.match(this.rules[b[l]]),T&&(!m||T[0].length>m[0].length)){if(m=T,h=l,this.options.backtrack_lexer){if(f=this.test_match(T,b[l]),f!==!1)return f;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(f=this.test_match(m,b[h]),f!==!1?f:!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:s.__name(function(){var m=this.next();return m||this.lex()},"lex"),begin:s.__name(function(m){this.conditionStack.push(m)},"begin"),popState:s.__name(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(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:s.__name(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:s.__name(function(m){this.begin(m)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(m,T,h,b){switch(h){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 U})();F.lexer=S;function v(){this.yy={}}return s.__name(v,"Parser"),v.prototype=F,F.Parser=v,new v})();gt.parser=gt;var ga=gt;s.dayjs2.extend(sa);s.dayjs2.extend(ua);s.dayjs2.extend(ma);var Zt={friday:5,saturday:6},le="",_t="",xt=void 0,bt="",Pe=[],Ve=[],wt=new Map,Ct=[],et=[],Ue="",Dt="",gn=["active","done","crit","milestone","vert"],Mt=[],ze=!1,St=!1,Ft="sunday",tt="saturday",yt=0,ya=s.__name(function(){Ct=[],et=[],Ue="",Mt=[],Ge=0,pt=void 0,$e=void 0,ee=[],le="",_t="",Dt="",xt=void 0,bt="",Pe=[],Ve=[],ze=!1,St=!1,yt=0,wt=new Map,s.clear(),Ft="sunday",tt="saturday"},"clear"),ka=s.__name(function(e){_t=e},"setAxisFormat"),pa=s.__name(function(){return _t},"getAxisFormat"),va=s.__name(function(e){xt=e},"setTickInterval"),Ta=s.__name(function(){return xt},"getTickInterval"),_a=s.__name(function(e){bt=e},"setTodayMarker"),xa=s.__name(function(){return bt},"getTodayMarker"),ba=s.__name(function(e){le=e},"setDateFormat"),wa=s.__name(function(){ze=!0},"enableInclusiveEndDates"),Ca=s.__name(function(){return ze},"endDatesAreInclusive"),Da=s.__name(function(){St=!0},"enableTopAxis"),Ma=s.__name(function(){return St},"topAxisEnabled"),Sa=s.__name(function(e){Dt=e},"setDisplayMode"),Fa=s.__name(function(){return Dt},"getDisplayMode"),Ya=s.__name(function(){return le},"getDateFormat"),Ua=s.__name(function(e){Pe=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),Ea=s.__name(function(){return Pe},"getIncludes"),Aa=s.__name(function(e){Ve=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),La=s.__name(function(){return Ve},"getExcludes"),Ia=s.__name(function(){return wt},"getLinks"),Wa=s.__name(function(e){Ue=e,Ct.push(e)},"addSection"),Oa=s.__name(function(){return Ct},"getSections"),Ha=s.__name(function(){let e=Xt();const t=10;let n=0;for(;!e&&n<t;)e=Xt(),n++;return et=ee,et},"getTasks"),yn=s.__name(function(e,t,n,r){const a=e.format(t.trim()),i=e.format("YYYY-MM-DD");return r.includes(a)||r.includes(i)?!1:n.includes("weekends")&&(e.isoWeekday()===Zt[tt]||e.isoWeekday()===Zt[tt]+1)||n.includes(e.format("dddd").toLowerCase())?!0:n.includes(a)||n.includes(i)},"isInvalidDate"),Na=s.__name(function(e){Ft=e},"setWeekday"),Pa=s.__name(function(){return Ft},"getWeekday"),Va=s.__name(function(e){tt=e},"setWeekend"),kn=s.__name(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let a;e.startTime instanceof Date?a=s.dayjs2(e.startTime):a=s.dayjs2(e.startTime,t,!0),a=a.add(1,"d");let i;e.endTime instanceof Date?i=s.dayjs2(e.endTime):i=s.dayjs2(e.endTime,t,!0);const[o,y]=za(a,i,t,n,r);e.endTime=o.toDate(),e.renderEndTime=y},"checkTaskDates"),za=s.__name(function(e,t,n,r,a){let i=!1,o=null;for(;e<=t;)i||(o=t.toDate()),i=yn(e,n,r,a),i&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,o]},"fixTaskDates"),kt=s.__name(function(e,t,n){n=n.trim();const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let o=null;for(const M of a.groups.ids.split(" ")){let p=we(M);p!==void 0&&(!o||p.endTime>o.endTime)&&(o=p)}if(o)return o.endTime;const y=new Date;return y.setHours(0,0,0,0),y}let i=s.dayjs2(n,t.trim(),!0);if(i.isValid())return i.toDate();{s.log.debug("Invalid date:"+n),s.log.debug("With date format:"+t.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}},"getStartDate"),pn=s.__name(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),vn=s.__name(function(e,t,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let g=null;for(const C of i.groups.ids.split(" ")){let _=we(C);_!==void 0&&(!g||_.startTime<g.startTime)&&(g=_)}if(g)return g.startTime;const E=new Date;return E.setHours(0,0,0,0),E}let o=s.dayjs2(n,t.trim(),!0);if(o.isValid())return r&&(o=o.add(1,"d")),o.toDate();let y=s.dayjs2(e);const[M,p]=pn(n);if(!Number.isNaN(M)){const g=y.add(M,p);g.isValid()&&(y=g)}return y.toDate()},"getEndDate"),Ge=0,Se=s.__name(function(e){return e===void 0?(Ge=Ge+1,"task"+Ge):e},"parseId"),Ra=s.__name(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),a={};Yt(r,a,gn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();let i="";switch(r.length){case 1:a.id=Se(),a.startTime=e.endTime,i=r[0];break;case 2:a.id=Se(),a.startTime=kt(void 0,le,r[0]),i=r[1];break;case 3:a.id=Se(r[0]),a.startTime=kt(void 0,le,r[1]),i=r[2];break}return i&&(a.endTime=vn(a.startTime,le,i,ze),a.manualEndTime=s.dayjs2(i,"YYYY-MM-DD",!0).isValid(),kn(a,le,Ve,Pe)),a},"compileData"),ja=s.__name(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),a={};Yt(r,a,gn);for(let i=0;i<r.length;i++)r[i]=r[i].trim();switch(r.length){case 1:a.id=Se(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:r[0]};break;case 2:a.id=Se(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=Se(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a},"parseData"),pt,$e,ee=[],Tn={},qa=s.__name(function(e,t){const n={section:Ue,type:Ue,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=ja($e,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=$e,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=yt,yt++;const a=ee.push(n);$e=n.id,Tn[n.id]=a-1},"addTask"),we=s.__name(function(e){const t=Tn[e];return ee[t]},"findTaskById"),Ba=s.__name(function(e,t){const n={section:Ue,type:Ue,description:e,task:e,classes:[]},r=Ra(pt,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,pt=n,et.push(n)},"addTaskOrg"),Xt=s.__name(function(){const e=s.__name(function(n){const r=ee[n];let a="";switch(ee[n].raw.startTime.type){case"prevTaskEnd":{const i=we(r.prevTaskId);r.startTime=i.endTime;break}case"getStartDate":a=kt(void 0,le,ee[n].raw.startTime.startData),a&&(ee[n].startTime=a);break}return ee[n].startTime&&(ee[n].endTime=vn(ee[n].startTime,le,ee[n].raw.endTime.data,ze),ee[n].endTime&&(ee[n].processed=!0,ee[n].manualEndTime=s.dayjs2(ee[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),kn(ee[n],le,Ve,Pe))),ee[n].processed},"compileTask");let t=!0;for(const[n,r]of ee.entries())e(n),t=t&&r.processed;return t},"compileTasks"),Za=s.__name(function(e,t){let n=t;s.getConfig2().securityLevel!=="loose"&&(n=s.distExports.sanitizeUrl(t)),e.split(",").forEach(function(r){we(r)!==void 0&&(xn(r,()=>{window.open(n,"_self")}),wt.set(r,n))}),_n(e,"clickable")},"setLink"),_n=s.__name(function(e,t){e.split(",").forEach(function(n){let r=we(n);r!==void 0&&r.classes.push(t)})},"setClass"),Xa=s.__name(function(e,t,n){if(s.getConfig2().securityLevel!=="loose"||t===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<r.length;i++){let o=r[i].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),r[i]=o}}r.length===0&&r.push(e),we(e)!==void 0&&xn(e,()=>{s.utils_default.runFunc(t,...r)})},"setClickFun"),xn=s.__name(function(e,t){Mt.push(function(){const n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener("click",function(){t()})},function(){const n=document.querySelector(`[id="${e}-text"]`);n!==null&&n.addEventListener("click",function(){t()})})},"pushFun"),Ga=s.__name(function(e,t,n){e.split(",").forEach(function(r){Xa(r,t,n)}),_n(e,"clickable")},"setClickEvent"),$a=s.__name(function(e){Mt.forEach(function(t){t(e)})},"bindFunctions"),Qa={getConfig:s.__name(()=>s.getConfig2().gantt,"getConfig"),clear:ya,setDateFormat:ba,getDateFormat:Ya,enableInclusiveEndDates:wa,endDatesAreInclusive:Ca,enableTopAxis:Da,topAxisEnabled:Ma,setAxisFormat:ka,getAxisFormat:pa,setTickInterval:va,getTickInterval:Ta,setTodayMarker:_a,getTodayMarker:xa,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle,setDisplayMode:Sa,getDisplayMode:Fa,setAccDescription:s.setAccDescription,getAccDescription:s.getAccDescription,addSection:Wa,getSections:Oa,getTasks:Ha,addTask:qa,findTaskById:we,addTaskOrg:Ba,setIncludes:Ua,getIncludes:Ea,setExcludes:Aa,getExcludes:La,setClickEvent:Ga,setLink:Za,getLinks:Ia,bindFunctions:$a,parseDu