PageSourceSearch

https://nickz.ai/assets/js/ganttDiagram-A5KZAMGK-C389l52C.js

js nickz.ai collected 2026-10-05 14:21:28 UTC 68,435 bytes, 1 lines download raw bytes

vendor: 4,285 bytes, line 1
1import{b0 as t,b1 as e,b2 as n,b3 as r,b4 as i,b5 as s,b6 as a,g as o,s as c,t as u,q as l,a as d,b as h,_ as f,c as g,d as m,e as y,l as k,k as p,j as T,z as v,u as x}from"./index-C16DHWFp.js";import{d as b}from"./dayjs.min-CASHsil8.js";import{g as w,c as D}from"./vendor-react-DejgYtBM.js";import{b as M,t as C,c as $,a as _,l as S}from"./linear-B7SoSIUI.js";import{i as Y}from"./init-C0SZ43gy.js";import"./vendor-semi-D8d7bTtM.js";import"./index-BeIIFw6E.js";import"./vendor-icons-EJvJ5X-w.js";import"./vendor-motion-Chfy_MiU.js";import"./vendor-katex-BuQuj6Fv.js";import"./purify.es-Bm-lHtoJ.js";import"./index-DcbB2zxU.js";import"./vendor-highlight-CaHTjBxz.js";import"./index-B_PxGnmD.js";import"./defaultLocale-FGEv0fP-.js";const F=w({exports:function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=this.$utils(),s=(t||"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(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return r.bind(this)(s)}}}.exports);var A={exports:{}};A.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[r,c("day")],Do:[s,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[i,c("week")],ww:[r,c("week")],M:[i,c("month")],MM:[r,c("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};return function(n,r,i){i.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=r.prototype,c=s.parse;s.parse=function(n){var r=n.date,s=n.utc,o=n.args;this.$u=s;var u=o[1];if("string"==typeof u){var l=!0===o[2],d=!0===o[3],f=l||d,g=o[2];d&&(g=o[2]),a=this.$locale(),!l&&g&&(a=i.Ls[g]),this.$d=function(n,r,i,s){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,i;r=n,i=a&&a.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var s=r&&r.toUpperCase();return n||i[r]||t[r]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=s.length,c=0;c<o;c+=1){var u=s[c],l=h[u],d=l&&l[0],f=l&&l[1];s[c]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<o;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;
1else{var a=i.regex,c=i.parser,u=t.slice(r),l=a.exec(u)[0];c.call(e,l),t=t.replace(l,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}(r)(n),c=o.year,u=o.month,l=o.day,d=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=l||(c||u?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!u||(x=u>0?u-1:p.getMonth());var b,w=d||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):i?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),k&&(b=s(b).week(k).toDate()),b)}catch($){return new Date("")}}(r,u,s,i),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var m=u.length,y=1;y<=m;y+=1){o[1]=u[y-1];var k=i.apply(this,o);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else c.call(this,n)}}}();const L=w(A.exports);function U(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function E(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function O(t){return t}var I=1e-6;function H(t){return"translate("+t+",0)"}function W(t){return"translate(0,"+t+")"}function P(t){return e=>+t(e)}function N(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function j(){return!this.__axis}function z(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",d=1===t||3===t?H:W;function h(h){var f=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):O),m=Math.max(s,0)+o,y=e.range(),k=+y[0]+c,p=+y[y.length-1]+c,T=(e.bandwidth?N:P)(e.copy(),c),v=h.selection?h.selection():h,x=v.selectAll(".domain").data([null]),b=v.selectAll(".tick").data(f,e).order(),w=b.exit(),D=b.enter().append("g").attr("class","tick"),M=b.select("line"),C=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(D),M=M.merge(D.append("line").attr("stroke","currentColor").attr(l+"2",u*s)),C=C.merge(D.append("text").attr("fill","currentColor").attr(l,u*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==v&&(x=x.transition(h),b=b.transition(h),M=M.transition(h),C=C.transition(h),w=w.transition(h).attr("opacity",I).attr("transform",function(t){return isFinite(t=T(t))?d(t+c):this.getAttribute("transform")}),D.attr("opacity",I).attr("transform",function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:T(t))+c)})),w.remove(),x.attr("d",4===t||2===t?a?"M"+u*a+","+k+"H"+c+"V"+p+"H"+u*a:"M"+c+","+k+"V"+p:a?"M"+k+","+u*a+"V"+c+"H"+p+"V"+u*a:"M"+k+","+c+"H"+p),b.attr("opacity",1).attr("transform",function(t){return d(T(t)+c)}),M.attr(l+"2",u*s),C.attr(l,u*m).text(g),v.filter(j).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each(function(){this.__axis=T})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const B=Math.PI/180,V=180/Math.PI,Z=.96422,R=.82521,G=4/29,q=6/29,X=3*q*q,Q=q*q*q;function J(n){if(n instanceof K)return new K(n.l,n.a,n.b,n.opacity);if(n instanceof st)return at(n);n instanceof t||(n=e(n));var r,i,s=rt(n.r),a=rt(n.g),o=rt(n.b),c=tt((.2225045*s+.7168786*a+.0606169*o)/1);return s===a&&a===o?r=i=c:(r=tt((.4360747*s+.3850649*a+.1430804*o)/Z),i=tt((.0139322*s+.0971045*a+.7141733*o)/R)),new K(116*c-16,500*(r-c),200*(c-i),n.opacity)}function K(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function tt(t){return t>Q?Math.pow(t,1/3):t/X+G}function et(t){return t>q?t*t*t:X*(t-G)}
1function nt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function it(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof st)return new st(t.h,t.c,t.l,t.opacity);if(t instanceof K||(t=J(t)),0===t.a&&0===t.b)return new st(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*V;return new st(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function at(t){if(isNaN(t.h))return new K(t.l,0,0,t.opacity);var e=t.h*B;return new K(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}n(K,function(t,e,n,r){return 1===arguments.length?J(t):new K(t,e,n,r??1)},r(i,{brighter(t){return new K(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new K(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return n=Z*et(n),e=1*et(e),r=R*et(r),new t(nt(3.1338561*n-1.6168667*e-.4906146*r),nt(-.9787684*n+1.9161415*e+.033454*r),nt(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}})),n(st,it,r(i,{brighter(t){return new st(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new st(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return at(this).rgb()}}));const ot=(ct=a,function(t,e){var n=ct((t=it(t)).h,(e=it(e)).h),r=s(t.c,e.c),i=s(t.l,e.l),a=s(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=r(e),t.l=i(e),t.opacity=a(e),t+""}});var ct;const ut=new Date,lt=new Date;function dt(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{const a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;let o;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=n=>dt(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(ut.setTime(+e),lt.setTime(+r),t(ut),t(lt),Math.floor(n(ut,lt))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const ht=dt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ht.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?dt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ht:null),ht.range;const ft=1e3,gt=6e4,mt=36e5,yt=864e5,kt=6048e5,pt=31536e6,Tt=dt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());Tt.range;const vt=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getMinutes());vt.range,dt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCMinutes()).range;const xt=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*gt)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getHours());xt.range,dt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCHours()).range;const bt=dt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gt)/yt,t=>t.getDate()-1);bt.range;const wt=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);function Dt(t){return dt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gt)/kt)}wt.range,dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt)).range;const Mt=Dt(0),Ct=Dt(1),$t=Dt(2),_t=Dt(3),St=Dt(4),Yt=Dt(5),Ft=Dt(6);function At(t){return dt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/kt)}Mt.range,Ct.range,$t.range,_t.range,St.range,Yt.range,Ft.range;const Lt=At(0),Ut=At(1),Et=At(2),Ot=At(3),It=At(4),Ht=At(5),Wt=At(6);Lt.range,Ut.range,Et.range,Ot.range,It.range,Ht.range,Wt.range;const Pt=dt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());Pt.range,dt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()).range;const Nt=dt(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());Nt.every=t=>isFinite(t=Math.floor(t))&&t>0?dt(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)}):null,Nt.range;const jt=dt(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());jt.every=t=>isFinite(t=Math.floor(t))&&t>0?dt(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)}):null,jt.range;const[zt,Bt]=function(t){const e=[[Tt,1,ft],[Tt,5,5e3],[Tt,15,15e3],[Tt,30,3e4],[vt,1,gt],[vt,5,3e5],[vt,15,9e5],[vt,30,18e5],[xt,1,mt],[xt,3,108e5],[xt,6,216e5],[xt,12,432e5],[bt,1,yt],[bt,2,1728e5],[Mt,1,kt],[Pt,1,2592e6],[Pt,3,7776e6],[t,1,pt]];function n(n,r,i){const s=Math.abs(r-n)/i,a=M(([,,t])=>t).right(e,s);if(a===e.length)return t.every(C(n/pt,r/pt,i));if(0===a)return ht.every(Math.max(C(n,r,i),1));const[o,c]=e[s/e[a-1][2]<e[a][2]/s?a-1:a];return o.every(c)}return[function(t,e,r){const i=e<t;i&&([t,e]=[e,t]);const s=r&&"function"==typeof r.range?r:n(t,e,r),a=s?s.range(t,+e+1):[];return i?a.reverse():a},n]}(Nt);function Vt(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 Zt(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 Rt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Gt,qt,Xt={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,Jt=/^%/,Kt=/[\\^$*+?|[\]().{}]/g;function te(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function ee(t){return t.replace(Kt,"\\$&")}function ne(t){return new RegExp("^(?:"+t.map(ee).join("|")+")","i")}function re(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ie(t,e,n){var r=Qt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function se(t,e,n){var r=Qt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ae(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function oe(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ce(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ue(t,e,n){var r=Qt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function le(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}
vendor: 6,708 bytes, line 1
1function de(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 he(t,e,n){var r=Qt.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function fe(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ge(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function me(t,e,n){var r=Qt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ye(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ke(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=Qt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Te(t,e,n){var r=Qt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ve(t,e,n){var r=Qt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xe(t,e,n){var r=Jt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function be(t,e,n){var r=Qt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function we(t,e,n){var r=Qt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function De(t,e){return te(t.getDate(),e,2)}function Me(t,e){return te(t.getHours(),e,2)}function Ce(t,e){return te(t.getHours()%12||12,e,2)}function $e(t,e){return te(1+bt.count(Nt(t),t),e,3)}function _e(t,e){return te(t.getMilliseconds(),e,3)}function Se(t,e){return _e(t,e)+"000"}function Ye(t,e){return te(t.getMonth()+1,e,2)}function Fe(t,e){return te(t.getMinutes(),e,2)}function Ae(t,e){return te(t.getSeconds(),e,2)}function Le(t){var e=t.getDay();return 0===e?7:e}function Ue(t,e){return te(Mt.count(Nt(t)-1,t),e,2)}function Ee(t){var e=t.getDay();return e>=4||0===e?St(t):St.ceil(t)}function Oe(t,e){return t=Ee(t),te(St.count(Nt(t),t)+(4===Nt(t).getDay()),e,2)}function Ie(t){return t.getDay()}function He(t,e){return te(Ct.count(Nt(t)-1,t),e,2)}function We(t,e){return te(t.getFullYear()%100,e,2)}function Pe(t,e){return te((t=Ee(t)).getFullYear()%100,e,2)}function Ne(t,e){return te(t.getFullYear()%1e4,e,4)}function je(t,e){var n=t.getDay();return te((t=n>=4||0===n?St(t):St.ceil(t)).getFullYear()%1e4,e,4)}function ze(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+te(e/60|0,"0",2)+te(e%60,"0",2)}function Be(t,e){return te(t.getUTCDate(),e,2)}function Ve(t,e){return te(t.getUTCHours(),e,2)}function Ze(t,e){return te(t.getUTCHours()%12||12,e,2)}function Re(t,e){return te(1+wt.count(jt(t),t),e,3)}function Ge(t,e){return te(t.getUTCMilliseconds(),e,3)}function qe(t,e){return Ge(t,e)+"000"}function Xe(t,e){return te(t.getUTCMonth()+1,e,2)}function Qe(t,e){return te(t.getUTCMinutes(),e,2)}function Je(t,e){return te(t.getUTCSeconds(),e,2)}function Ke(t){var e=t.getUTCDay();return 0===e?7:e}function tn(t,e){return te(Lt.count(jt(t)-1,t),e,2)}function en(t){var e=t.getUTCDay();return e>=4||0===e?It(t):It.ceil(t)}function nn(t,e){return t=en(t),te(It.count(jt(t),t)+(4===jt(t).getUTCDay()),e,2)}function rn(t){return t.getUTCDay()}function sn(t,e){return te(Ut.count(jt(t)-1,t),e,2)}function an(t,e){return te(t.getUTCFullYear()%100,e,2)}function on(t,e){return te((t=en(t)).getUTCFullYear()%100,e,2)}function cn(t,e){return te(t.getUTCFullYear()%1e4,e,4)}function un(t,e){var n=t.getUTCDay();return te((t=n>=4||0===n?It(t):It.ceil(t)).getUTCFullYear()%1e4,e,4)}function ln(){return"+0000"}function dn(){return"%"}function hn(t){return+t}function fn(t){return Math.floor(+t/1e3)}function gn(t){return new Date(t)}function mn(t){return t instanceof Date?+t:+new Date(+t)}function yn(t,e,n,r,i,s,a,o,c,u){var l=$(),d=l.invert,h=l.domain,f=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),k=u("%a %d"),p=u("%b %d"),T=u("%B"),v=u("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return l.invert=function(t){return new Date(d(t))},l.domain=function(t){return arguments.length?h(Array.from(t,mn)):h().map(gn)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],e??10)},l.tickFormat=function(t,e){return null==e?x:u(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):l},l.copy=function(){return _(l,yn(t,e,n,r,i,s,a,o,c,u))},l}function kn(){return Y.apply(yn(zt,Bt,Nt,Pt,Mt,bt,xt,vt,Tt,qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Gt=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,u=ne(i),l=re(i),d=ne(s),h=re(s),f=ne(a),g=re(a),m=ne(o),y=re(o),k=ne(c),p=re(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:De,e:De,f:Se,g:Pe,G:je,H:Me,I:Ce,j:$e,L:_e,m:Ye,M:Fe,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:hn,s:fn,S:Ae,u:Le,U:Ue,V:Oe,w:Ie,W:He,x:null,X:null,y:We,Y:Ne,Z:ze,"%":dn},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Be,e:Be,f:qe,g:on,G:un,H:Ve,I:Ze,j:Re,L:Ge,m:Xe,M:Qe,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:hn,s:fn,S:Je,u:Ke,U:tn,V:nn,w:rn,W:sn,x:null,X:null,y:an,Y:cn,Z:ln,"%":dn},x={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=k.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:ge,e:ge,f:ve,g:le,G:ue,H:ye,I:ye,j:me,L:Te,m:fe,M:ke,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:he,Q:be,s:we,S:pe,u:se,U:ae,V:oe,w:ie,W:ce,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:le,Y:ue,Z:de,"%":xe};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++o<u;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=Xt[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=Rt(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));
1if(e&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(i=(r=Zt(Rt(s.y,0,1))).getUTCDay(),r=i>4||0===i?Ut.ceil(r):Ut(r),r=wt.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(i=(r=Vt(Rt(s.y,0,1))).getDay(),r=i>4||0===i?Ct.ceil(r):Ct(r),r=bt.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Zt(Rt(s.y,0,1)).getUTCDay():Vt(Rt(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Zt(s)):Vt(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in Xt?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),qt=Gt.format,Gt.parse,Gt.utcFormat,Gt.utcParse;var pn;const Tn=w({exports:{}}.exports=(pn="day",function(t,e,n){var r=function(t){return t.add(4-t.isoWeekday(),pn)},i=e.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),pn);var e,i,s,a=r(this),o=(e=this.isoWeekYear(),s=4-(i=(this.$u?n.utc:n)().year(e).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(s+=7),i.add(s,pn));return a.diff(o,"week")+1},i.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var s=i.startOf;i.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(t,e)}}));var vn={exports:{}};vn.exports=function(){var t,e,n=1e3,r=6e4,i=36e5,s=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:s,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof p},h=function(t,e,n){return new p(t,n,e.$l)},f=function(t){return e.p(t)+"s"},g=function(t){return t<0},m=function(t){return g(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},k=function(t,e){return t?g(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},p=function(){function g(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*l[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){r.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(u);if(i){var s=i.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var y=g.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*l[
vendor: 5,604 bytes, line 1
1n]},0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/o),t%=o,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/s),t%=s,this.$d.hours=m(t/i),t%=i,this.$d.minutes=m(t/r),t%=r,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=k(this.$d.years,"Y"),e=k(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=k(n,"D"),i=k(this.$d.hours,"H"),s=k(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=k(a,"S"),c=t.negative||e.negative||r.negative||i.negative||s.negative||o.negative,u=i.format||s.format||o.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+r.format+u+i.format+s.format+o.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(t,e){return e||String(r[t])})},y.as=function(t){return this.$ms/l[f(t)]},y.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],e||0},y.add=function(t,e,n){var r;return r=e?t*l[f(e)]:d(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},y.subtract=function(t,e){return this.add(t,e,!0)},y.locale=function(t){var e=this.clone();return e.$l=t,e},y.clone=function(){return h(this.$ms,this)},y.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},g}(),T=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,r,i){t=i,e=i().$utils(),i.duration=function(t,e){var n=i.locale();return h(t,{$l:n},e)},i.isDuration=d;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return d(t)?T(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return d(t)?T(this,t,-1):a.bind(this)(t,e)}}}();const xn=w(vn.exports);var bn=function(){var t=f(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"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],s=[1,29],a=[1,30],o=[1,31],c=[1,32],u=[1,33],l=[1,34],d=[1,9],h=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35],$={trace:f(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:f(function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;
1case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"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:s,16:a,17:o,18:c,19:18,20:u,21:l,22:d,23:h,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:o,18:c,19:18,20:u,21:l,22:d,23:h,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},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:f(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:f(function(t){var e=this,n=[0],r=[],i=[null],s=[],a=this.table,o="",c=0,u=0,l=s.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);d.setInput(t,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;s.push(m);var y=d.options&&d.options.ranges;function k(){var t;return"number"!=typeof(t=r.pop()||d.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,f(function(t){n.length=n.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),f(k,"lex");for(var p,T,v,x,b,w,D,M,C={};;){if(T=n[n.length-1],this.defaultActions[T]?v=this.defaultActions[T]:(null==p&&(p=k()),v=a[T]&&a[T][p]),void 0===v||!v.length||!v[0]){var $;for(b in M=[],a[T])this.terminals_[b]&&b>2&&M.push("'"+this.terminals_[b]+"'");$=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError($,{text:d.match,token:this.terminals_[p]||p,line:d.yylineno,loc:m,expected:M})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:n.push(p),i.push(d.yytext),s.push(d.yylloc),n.push(v[1]),p=null,u=d.yyleng,o=d.yytext,c=d.yylineno,m=d.yylloc;break;case 2:if(w=this.productions_[v[1]][1],C.$=i[i.length-w],C._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[o,u,c,h.yy,v[1],i,s].concat(l))))return x;w&&(n=n.slice(0,-1*w*2),i=i.slice(0,-1*w),s=s.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),i.push(C.$),s.push(C._$),D=a[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:f(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:f(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:f(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:f(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:f(function(t){this.unput(this.match.slice(t))},"less"),pastInput:f(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:f(function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){return this.next()||this.lex()},"lex"),begin:f(function(t){this.conditionStack.push(t)},"begin"),popState:f(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(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:f(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:f(function(t){this.begin(t)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(t,e,n,r){switch(n){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:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}}}();function S(){this.yy={}}return $.lexer=_,f(S,"Parser"),S.prototype=$,$.Parser=S,new S}();bn.parser=bn;var wn=bn;b.extend(Tn),b.extend(L),b.extend(F);var Dn,Mn,Cn={friday:5,saturday:6},$n="",_n="",Sn=void 0,Yn="",Fn=[],An=[],Ln=new Map,Un=[],En=[],On="",In="",Hn=["active","done","crit","milestone","vert"],Wn=[],Pn=!1,Nn=!1,jn="sunday",zn="saturday",Bn=0,Vn=f(function(){Un=[],En=[],On="",Wn=[],wr=0,Dn=void 0,Mn=void 0,$r=[],$n="",_n="",In="",Sn=void 0,Yn="",Fn=[],An=[],Pn=!1,Nn=!1,Bn=0,Ln=new Map,v(),jn="sunday",zn="saturday"},"clear"),Zn=f(function(t){_n=t},"setAxisFormat"),Rn=f(function(){return _n},"getAxisFormat"),Gn=f(function(t){Sn=t},"setTickInterval"),qn=f(function(){return Sn},"getTickInterval"),Xn=f(function(t){Yn=t},"setTodayMarker"),Qn=f(function(){return Yn},"getTodayMarker"),Jn=f(function(t){$n=t},"setDateFormat"),Kn=f(function(){Pn=!0},"enableInclusiveEndDates"),tr=f(function(){return Pn},"endDatesAreInclusive"),er=f(function(){Nn=!0},"enableTopAxis"),nr=f(function(){return Nn},"topAxisEnabled"),rr=f(function(t){In=t},"setDisplayMode"),ir=f(function(){return In},"getDisplayMode"),sr=f(function(){return $n},"getDateFormat"),ar=f(function(t){Fn=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),or=f(function(){return Fn},"getIncludes"),cr=f(function(t){An=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ur=f(function(){return An},"getExcludes"),lr=f(function(){return Ln},"getLinks"),dr=f(function(t){On=t,Un.push(t)},"addSection"),hr=f(function(){return Un},"getSections"),fr=f(function(){let t=Ar(),e=0;for(;!t&&e<10;)t=Ar(),e++;return En=$r},"getTasks"),gr=f(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return!r.includes(i)&&!r.includes(s)&&(!(!n.includes("weekends")||t.isoWeekday()!==Cn[zn]&&t.isoWeekday()!==Cn[zn]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(i)||n.includes(s))},"isInvalidDate"),mr=f(function(t){jn=t},"setWeekday"),yr=f(function(){return jn},"getWeekday"),kr=f(function(t){zn=t},"setWeekend"),pr=f(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i,s;i=t.startTime instanceof Date?b(t.startTime):b(t.startTime,e,!0),i=i.add(1,"d"),s=t.endTime instanceof Date?b(t.endTime):b(t.endTime,e,!0);const[a,o]=Tr(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=o},"checkTaskDates"),Tr=f(function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=gr(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},"fixTaskDates"),vr=f(function(t,e,n){if(n=n.trim(),f(t=>{const e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=Yr(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let i=b(n,e.trim(),!0);if(i.isValid())return i.toDate();{k.debug("Invalid date:"+n),k.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},"getStartDate"),xr=f(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),br=f(function(t,e,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const n of i.groups.ids.split(" ")){let e=Yr(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let s=b(n,e.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let a=b(t);c
1onst[o,c]=xr(n);if(!Number.isNaN(o)){const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()},"getEndDate"),wr=0,Dr=f(function(t){return void 0===t?"task"+(wr+=1):t},"parseId"),Mr=f(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Pr(r,i,Hn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Dr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Dr(),i.startTime=vr(void 0,$n,r[0]),s=r[1];break;case 3:i.id=Dr(r[0]),i.startTime=vr(void 0,$n,r[1]),s=r[2]}return s&&(i.endTime=br(i.startTime,$n,s,Pn),i.manualEndTime=b(s,"YYYY-MM-DD",!0).isValid(),pr(i,$n,An,Fn)),i},"compileData"),Cr=f(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Pr(r,i,Hn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Dr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Dr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Dr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),$r=[],_r={},Sr=f(function(t,e){const n={section:On,type:On,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Cr(Mn,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Mn,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=Bn,Bn++;const i=$r.push(n);Mn=n.id,_r[n.id]=i-1},"addTask"),Yr=f(function(t){const e=_r[t];return $r[e]},"findTaskById"),Fr=f(function(t,e){const n={section:On,type:On,description:t,task:t,classes:[]},r=Mr(Dn,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,Dn=n,En.push(n)},"addTaskOrg"),Ar=f(function(){const t=f(function(t){const e=$r[t];let n="";switch($r[t].raw.startTime.type){case"prevTaskEnd":{const t=Yr(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=vr(void 0,$n,$r[t].raw.startTime.startData),n&&($r[t].startTime=n)}return $r[t].startTime&&($r[t].endTime=br($r[t].startTime,$n,$r[t].raw.endTime.data,Pn),$r[t].endTime&&($r[t].processed=!0,$r[t].manualEndTime=b($r[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),pr($r[t],$n,An,Fn))),$r[t].processed},"compileTask");let e=!0;for(const[n,r]of $r.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Lr=f(function(t,e){let n=e;"loose"!==g().securityLevel&&(n=T(e)),t.split(",").forEach(function(t){void 0!==Yr(t)&&(Or(t,()=>{window.open(n,"_self")}),Ln.set(t,n))}),Ur(t,"clickable")},"setLink"),Ur=f(function(t,e){t.split(",").forEach(function(t){let n=Yr(t);void 0!==n&&n.classes.push(e)})},"setClass"),Er=f(function(t,e,n){if("loose"!==g().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Yr(t)&&Or(t,()=>{x.runFunc(e,...r)})},"setClickFun"),Or=f(function(t,e){Wn.push(function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",function(){e()})})},"pushFun"),Ir=f(function(t,e,n){t.split(",").forEach(function(t){Er(t,e,n)}),Ur(t,"clickable")},"setClickEvent"),Hr=f(function(t){Wn.forEach(function(e){e(t)})},"bindFunctions"),Wr={getConfig:f(()=>g().gantt,"getConfig"),clear:Vn,setDateFormat:Jn,getDateFormat:sr,enableInclusiveEndDates:Kn,endDatesAreInclusive:tr,enableTopAxis:er,topAxisEnabled:nr,setAxisFormat:Zn,getAxisFormat:Rn,setTickInterval:Gn,getTickInterval:qn,setTodayMarker:Xn,getTodayMarker:Qn,setAccTitle:h,getAccTitle:d,setDiagramTitle:l,getDiagramTitle:u,setDisplayMode:rr,getDisplayMode:ir,setAccDescription:c,getAccDescription:o,addSection:dr,getSections:hr,getTasks:fr,addTask:Sr,findTaskById:Yr,addTaskOrg:Fr,setIncludes:ar,getIncludes:or,setExcludes:cr,getExcludes:ur,setClickEvent:Ir,setLink:Lr,getLinks:lr,bindFunctions:Hr,parseDuration:xr,isInvalidDate:gr,setWeekday:mr,getWeekday:yr,setWeekend:kr};function Pr(t,e,n){let r=!0;for(;r;
1)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)})}f(Pr,"getTaskTags"),b.extend(xn);var Nr,jr=f(function(){k.debug("Something is calling, setConf, remove the call")},"setConf"),zr={monday:Ct,tuesday:$t,wednesday:_t,thursday:St,friday:Yt,saturday:Ft,sunday:Mt},Br=f((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),i=0;for(const s of r)for(let t=0;t<n.length;t++)if(s.startTime>=n[t]){n[t]=s.endTime,s.order=t+e,t>i&&(i=t);break}return i},"getMaxIntersections"),Vr={parser:wn,db:Wr,renderer:{setConf:jr,draw:f(function(t,e,n,r){const i=g().gantt,s=g().securityLevel;let a;"sandbox"===s&&(a=m("#i"+e));const o=m("sandbox"===s?a.nodes()[0].contentDocument.body:"body"),c="sandbox"===s?a.nodes()[0].contentDocument:document,u=c.getElementById(e);void 0===(Nr=u.parentElement.offsetWidth)&&(Nr=1200),void 0!==i.useWidth&&(Nr=i.useWidth);const l=r.db.getTasks();let d=[];for(const f of l)d.push(f.type);d=A(d);const h={};let T=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){const t={};for(const n of l)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const r=Br(t[n],e)+1;e+=r,T+=r*(i.barHeight+i.barGap),h[n]=r}}else{T+=l.length*(i.barHeight+i.barGap);for(const t of d)h[t]=l.filter(e=>e.type===t).length}u.setAttribute("viewBox","0 0 "+Nr+" "+T);const v=o.select(`[id="${e}"]`),x=kn().domain([E(l,function(t){return t.startTime}),U(l,function(t){return t.endTime})]).rangeRound([0,Nr-i.leftPadding-i.rightPadding]);function w(t,e){const n=t.startTime,r=e.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}function D(t,e,n){const s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;S().domain([0,d.length]).range(["#00B9FA","#F95002"]).interpolate(ot);C(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),_(c,o,0,n),M(t,a,o,c,s,0,e),Y(a,o),F(c,0,0,n)}function M(t,n,s,a,o,c,u){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);const h=[...new Set(t.map(t=>t.order))].map(e=>t.find(t=>t.order===e));v.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+s-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",n).attr("class",function(t){for(const[e,n]of d.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}).enter();const f=v.append("g").selectAll("rect").data(t).enter(),y=r.db.getLinks();if(f.append("rect").attr("id",function(t){return t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?x(t.startTime)+a+.5*(x(t.endTime)-x(t.startTime))-.5*o:x(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s}).attr("width",function(t){return t.milestone?o:t.vert?.08*o:x(t.renderEndTime||t.endTime)-x(t.startTime)}).attr("height",function(t){return t.vert?l.length*(i.barHeight+i.barGap)+2*i.barHeight:o}).attr("transform-origin",function(t,e){return e=t.order,(x(t.startTime)+a+.5*(x(t.endTime)-x(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,a]of d.entries())t.type===a&&(n=s%i.numberSectionStyles);let r="";return t.active?t.crit?r+=" activeCrit":r=" active":t.done?r=t.crit?" doneCrit":" done":t.crit&&(r+=" crit"),0===r.length&&(r=" task"),t.milestone&&(r=" milestone "+r),t.vert&&(r=" vert "+r),r+=n,r+=" "+e,"task"+r}),f.append("text").attr("id",function(t){return t.id+"-text"}).text(function(t){return t.task}).attr("font-size",i.fontSize).attr("x",function(t){let e=x(t.startTime),n=x(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(x(t.endTime)-x(t.startTime))-.5*o,n=e+o),t.vert)return x(t.startTime)+a;const r=this.getBBox().width;return r>n-e?n+r+1.5*i.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?i.gridLineStartPadding+l.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s}).attr("text-height",o).attr("class",function(t){const e=x(t.startTime);let n=x(t.endTime);t.milestone&&(n=e+o);const r=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[o,u]of d.entries())t.type===u&&(a=o%i.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),t.vert&&(c+=" vertText"),r>n-e?n+r+1.5*i.leftPadding>u?s+" taskTextOutsideLeft taskTextOutside"+a+" "+c:s+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:s+" taskText taskText"+a+" "+c+" width-"+r}),"sandbox"===g().securityLevel){let t;t=m("#i"+e);const n=t.nodes()[0].contentDocument;f.filter(function(t){return y.has(t.id)}).each(function(t){var e=n.querySelector("#"+t.id),r=n.querySelector("#"+t.id+"-text");const i=e.parentNode;var s=n.createElement("a");s.setAttribute("xlink:href",y.get(t.id)),s.setAttribute("target","_top"),i.appendChild(s),s.appendChild(e),s.appendChild(r)})}}function C(t,e,n,s,a,o,c,u){if(0===c.length&&0===u.length)return;let l,d;for(const{startTime:r,endTime:i}of o)(void 0===l||r<l)&&(l=r),(void 0===d||i>d)&&(d=i);if(!l||!d)return;if(b(d).diff(b(l),"year")>5)return void k.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const h=r.db.getDateFormat(),f=[];let g=null,m=b(l);for(;m.valueOf()<=d;)r.db.isInvalidDate(m,h,c,u)?g?g.end=m:g={start:m,end:m}:g&&(f.push(g),g=null),m=m.add(1,"d");v.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",t=>"exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>x(t.start.startOf("day"))+n).attr("y",i.gridLineStartPadding).attr("width",t=>x(t.end.endOf("day"))-x(t.start.startOf("day"))).attr("height",a-e-i.gridLineStartPadding).attr("transform-origin",function(e,r){return(x(e.start)+n+.5*(x(e.end)-x(e.start))).toString()+"px "+(r*t+.5*a).toString()+"px"}).attr("class","exclude-range")}function $(t,e,n,r){if(n<=0||t>e)return 1/0;const i=e-t,s=b.duration({[r??"day"]:n}).asMilliseconds();return s<=0?1/0:Math.ceil(i/s)}function _(t,e,n,s){const a=r.db.getDateFormat();let o;o=r.db.getAxisFormat()||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");let c=(u=x,z(3,u)).tickSize(-s+e+i.gridLineStartPadding).tickFormat(qt(o));var u;const l=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==l){const t=parseInt(l[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${l[1]}". Skipping custom tick interval.`);else{const e=l[2],n=r.db.getWeekday()||i.weekday,s=x.domain(),a=$(s[0],s[1],t,e);if(a>1e4)k.warn(`The tick interval "${t}${e}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invali
1d date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":c.ticks(ht.every(t));break;case"second":c.ticks(Tt.every(t));break;case"minute":c.ticks(vt.every(t));break;case"hour":c.ticks(xt.every(t));break;case"day":c.ticks(bt.every(t));break;case"week":c.ticks(zr[n].every(t));break;case"month":c.ticks(Pt.every(t))}}}if(v.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(t){return z(1,t)}(x).tickSize(-s+e+i.gridLineStartPadding).tickFormat(qt(o));if(null!==l){const t=parseInt(l[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${l[1]}". Skipping custom tick interval.`);else{const e=l[2],s=r.db.getWeekday()||i.weekday,a=x.domain();if($(a[0],a[1],t,e)<=1e4)switch(e){case"millisecond":n.ticks(ht.every(t));break;case"second":n.ticks(Tt.every(t));break;case"minute":n.ticks(vt.every(t));break;case"hour":n.ticks(xt.every(t));break;case"day":n.ticks(bt.every(t));break;case"week":n.ticks(zr[s].every(t));break;case"month":n.ticks(Pt.every(t))}}}v.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Y(t,e){let n=0;const r=Object.keys(h).map(t=>[t,h[t]]);v.append("g").selectAll("text").data(r).enter().append(function(t){const e=t[0].split(p.lineBreakRegex),n=-(e.length-1)/2,r=c.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,s]of e.entries()){const t=c.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),i>0&&t.setAttribute("dy","1em"),t.textContent=s,r.appendChild(t)}return r}).attr("x",10).attr("y",function(i,s){if(!(s>0))return i[1]*t/2+e;for(let a=0;a<s;a++)return n+=r[s-1][1],i[1]*t/2+n*t+e}).attr("font-size",i.sectionFontSize).attr("class",function(t){for(const[e,n]of d.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"})}function F(t,e,n,s){const a=r.db.getTodayMarker();if("off"===a)return;const o=v.append("g").attr("class","today"),c=new Date,u=o.append("line");u.attr("x1",x(c)+t).attr("x2",x(c)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==a&&u.attr("style",a.replace(/,/g,";"))}function A(t){const e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}f(w,"taskCompare"),l.sort(w),D(l,Nr,T),y(v,T,Nr,i.useMaxWidth),v.append("text").text(r.db.getDiagramTitle()).attr("x",Nr/2).attr("y",i.titleTopMargin).attr("class","titleText"),f(D,"makeGantt"),f(M,"drawRects"),f(C,"drawExcludeDays"),f($,"getEstimatedTickCount"),f(_,"makeGrid"),f(Y,"vertLabels"),f(F,"drawToday"),f(A,"checkUnique")},"draw")},styles:f(t=>`\n  .mermaid-main-font {\n        font-family: ${t.fontFamily};\n  }\n\n  .exclude-range {\n    fill: ${t.excludeBkgColor};\n  }\n\n  .section {\n    stroke: none;\n    opacity: 0.2;\n  }\n\n  .section0 {\n    fill: ${t.sectionBkgColor};\n  }\n\n  .section2 {\n    fill: ${t.sectionBkgColor2};\n  }\n\n  .section1,\n  .section3 {\n    fill: ${t.altSectionBkgColor};\n    opacity: 0.2;\n  }\n\n  .sectionTitle0 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle1 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle2 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle3 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle {\n    text-anchor: start;\n    font-family: ${t.fontFamily};\n  }\n\n\n  /* Grid and axis */\n\n  .grid .tick {\n    stroke: ${t.gridColor};\n    opacity: 0.8;\n    shape-rendering: crispEdges;\n  }\n\n  .grid .tick text {\n    font-family: ${t.fontFamily};\n    fill: ${t.textColor};\n  }\n\n  .grid path {\n    stroke-width: 0;\n  }\n\n\n  /* Today line */\n\n  .today {\n    fill: none;\n    stroke: ${t.todayLineColor};\n    stroke-width: 2px;\n  }\n\n\n  /* Task styling */\n\n  /* Default task */\n\n  .task {\n    stroke-width: 2;\n  }\n\n  .taskText {\n    text-anchor: middle;\n    font-family: ${t.fontFamily};\n  }\n\n  .taskTextOutsideRight {\n    fill: ${t.taskTextDarkColor};\n    text-anchor: start;\n    font-family: ${t.fontFamily};\n  }\n\n  .taskTextOutsideLeft {\n    fill: ${t.taskTextDarkColor};\n    text-anchor: end;\n  }\n\n\n  /* Special case clickable */\n\n  .task.clickable {\n    cursor: pointer;\n  }\n\n  .taskText.clickable {\n    cursor: pointer;\n    fill: ${t.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideLeft.clickable {\n    cursor: pointer;\n    fill: ${t.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideRight.clickable {\n    cursor: pointer;\n    fill: ${t.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n\n  /* Specific task settings for the sections*/\n\n  .taskText0,\n  .taskText1,\n  .taskText2,\n  .taskText3 {\n    fill: ${t.taskTextColor};\n  }\n\n  .task0,\n  .task1,\n  .task2,\n  .task3 {\n    fill: ${t.taskBkgColor};\n    stroke: ${t.taskBorderColor};\n  }\n\n  .taskTextOutside0,\n  .taskTextOutside2\n  {\n    fill: ${t.taskTextOutsideColor};\n  }\n\n  .taskTextOutside1,\n  .taskTextOutside3 {\n    fill: ${t.taskTextOutsideColor};\n  }\n\n\n  /* Active task */\n\n  .active0,\n  .active1,\n  .active2,\n  .active3 {\n    fill: ${t.activeTaskBkgColor};\n    stroke: ${t.activeTaskBorderColor};\n  }\n\n  .activeText0,\n  .activeText1,\n  .activeText2,\n  .activeText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n\n  /* Completed task */\n\n  .done0,\n  .done1,\n  .done2,\n  .done3 {\n    stroke: ${t.doneTaskBorderColor};\n    fill: ${t.doneTaskBkgColor};\n    stroke-width: 2;\n  }\n\n  .doneText0,\n  .doneText1,\n  .doneText2,\n  .doneText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n  /* Done task text displayed outside the bar sits against the diagram background,\
1n     not against the done-task bar, so it must use the outside/contrast color. */\n  .doneText0.taskTextOutsideLeft,\n  .doneText0.taskTextOutsideRight,\n  .doneText1.taskTextOutsideLeft,\n  .doneText1.taskTextOutsideRight,\n  .doneText2.taskTextOutsideLeft,\n  .doneText2.taskTextOutsideRight,\n  .doneText3.taskTextOutsideLeft,\n  .doneText3.taskTextOutsideRight {\n    fill: ${t.taskTextOutsideColor} !important;\n  }\n\n\n  /* Tasks on the critical line */\n\n  .crit0,\n  .crit1,\n  .crit2,\n  .crit3 {\n    stroke: ${t.critBorderColor};\n    fill: ${t.critBkgColor};\n    stroke-width: 2;\n  }\n\n  .activeCrit0,\n  .activeCrit1,\n  .activeCrit2,\n  .activeCrit3 {\n    stroke: ${t.critBorderColor};\n    fill: ${t.activeTaskBkgColor};\n    stroke-width: 2;\n  }\n\n  .doneCrit0,\n  .doneCrit1,\n  .doneCrit2,\n  .doneCrit3 {\n    stroke: ${t.critBorderColor};\n    fill: ${t.doneTaskBkgColor};\n    stroke-width: 2;\n    cursor: pointer;\n    shape-rendering: crispEdges;\n  }\n\n  .milestone {\n    transform: rotate(45deg) scale(0.8,0.8);\n  }\n\n  .milestoneText {\n    font-style: italic;\n  }\n  .doneCritText0,\n  .doneCritText1,\n  .doneCritText2,\n  .doneCritText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n  /* Done-crit task text outside the bar — same reasoning as doneText above. */\n  .doneCritText0.taskTextOutsideLeft,\n  .doneCritText0.taskTextOutsideRight,\n  .doneCritText1.taskTextOutsideLeft,\n  .doneCritText1.taskTextOutsideRight,\n  .doneCritText2.taskTextOutsideLeft,\n  .doneCritText2.taskTextOutsideRight,\n  .doneCritText3.taskTextOutsideLeft,\n  .doneCritText3.taskTextOutsideRight {\n    fill: ${t.taskTextOutsideColor} !important;\n  }\n\n  .vert {\n    stroke: ${t.vertLineColor};\n  }\n\n  .vertText {\n    font-size: 15px;\n    text-anchor: middle;\n    fill: ${t.vertLineColor} !important;\n  }\n\n  .activeCritText0,\n  .activeCritText1,\n  .activeCritText2,\n  .activeCritText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n  .titleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${t.titleColor||t.textColor};\n    font-family: ${t.fontFamily};\n  }\n`,"getStyles")};export{Vr as diagram};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.