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