@wandox/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +59 -0
  2. package/dist/arc-BJMRTG9S.cjs +1 -0
  3. package/dist/arc-Vdco0qfw.js +83 -0
  4. package/dist/architectureDiagram-3BPJPVTR-BjEqcvey.js +4695 -0
  5. package/dist/architectureDiagram-3BPJPVTR-BvjJfAkh.cjs +36 -0
  6. package/dist/blockDiagram-GPEHLZMM-B1xf7RE9.js +2427 -0
  7. package/dist/blockDiagram-GPEHLZMM-B5VqovGY.cjs +132 -0
  8. package/dist/c4Diagram-AAUBKEIU-C4kjMRea.js +1578 -0
  9. package/dist/c4Diagram-AAUBKEIU-Ck5uEnJI.cjs +10 -0
  10. package/dist/channel-DlRtLuYv.js +5 -0
  11. package/dist/channel-Dm_yrRYJ.cjs +1 -0
  12. package/dist/chunk-2J33WTMH-CG2n_n4y.cjs +1 -0
  13. package/dist/chunk-2J33WTMH-CWvmGb4H.js +20 -0
  14. package/dist/chunk-4BX2VUAB-Bq3GzsD8.js +9 -0
  15. package/dist/chunk-4BX2VUAB-CdMctZeT.cjs +1 -0
  16. package/dist/chunk-55IACEB6-BdJhzL0d.js +8 -0
  17. package/dist/chunk-55IACEB6-sHyHtvg8.cjs +1 -0
  18. package/dist/chunk-727SXJPM-D-Vmam30.cjs +206 -0
  19. package/dist/chunk-727SXJPM-DmruCqjM.js +1529 -0
  20. package/dist/chunk-AQP2D5EJ-CWhKjcV3.cjs +231 -0
  21. package/dist/chunk-AQP2D5EJ-Ca0ak6w7.js +1399 -0
  22. package/dist/chunk-FMBD7UC4-CqV0NWQQ.js +19 -0
  23. package/dist/chunk-FMBD7UC4-DOxtd0OO.cjs +15 -0
  24. package/dist/chunk-ND2GUHAM-6EMX5Mu8.js +68 -0
  25. package/dist/chunk-ND2GUHAM-BXeDBtSC.cjs +1 -0
  26. package/dist/chunk-QZHKN3VN-B7FSI55w.js +15 -0
  27. package/dist/chunk-QZHKN3VN-CbbdNKnD.cjs +1 -0
  28. package/dist/classDiagram-4FO5ZUOK-0Kaf7WfA.js +16 -0
  29. package/dist/classDiagram-4FO5ZUOK-C4it2xBI.cjs +1 -0
  30. package/dist/classDiagram-v2-Q7XG4LA2-Byom5adL.js +16 -0
  31. package/dist/classDiagram-v2-Q7XG4LA2-C4it2xBI.cjs +1 -0
  32. package/dist/cose-bilkent-S5V4N54A-CuUv9oIm.js +2606 -0
  33. package/dist/cose-bilkent-S5V4N54A-Dh6nTopA.cjs +1 -0
  34. package/dist/cytoscape.esm-Cp8cXbK2.js +18729 -0
  35. package/dist/cytoscape.esm-fcqEUasK.cjs +331 -0
  36. package/dist/dagre-BM42HDAG-CwxJjZ2n.cjs +4 -0
  37. package/dist/dagre-BM42HDAG-DMBidMxP.js +448 -0
  38. package/dist/defaultLocale-BDVPUiG2.js +171 -0
  39. package/dist/defaultLocale-k2G_58r6.cjs +1 -0
  40. package/dist/diagram-2AECGRRQ-B2a4nXgJ.js +221 -0
  41. package/dist/diagram-2AECGRRQ-r7De7taS.cjs +43 -0
  42. package/dist/diagram-5GNKFQAL-CDiO79WC.cjs +10 -0
  43. package/dist/diagram-5GNKFQAL-DrHBNZzF.js +123 -0
  44. package/dist/diagram-KO2AKTUF-BcjWCXZr.js +466 -0
  45. package/dist/diagram-KO2AKTUF-CDlJCxVO.cjs +3 -0
  46. package/dist/diagram-LMA3HP47-BXFSAyNV.cjs +24 -0
  47. package/dist/diagram-LMA3HP47-DJxmyqn0.js +143 -0
  48. package/dist/diagram-OG6HWLK6-ATK__ca8.js +531 -0
  49. package/dist/diagram-OG6HWLK6-CgIyEO8_.cjs +24 -0
  50. package/dist/erDiagram-TEJ5UH35-D4baWNzQ.js +900 -0
  51. package/dist/erDiagram-TEJ5UH35-Dyuc5EB6.cjs +85 -0
  52. package/dist/flowDiagram-I6XJVG4X-BMZOncyU.js +1635 -0
  53. package/dist/flowDiagram-I6XJVG4X-C45fICr4.cjs +162 -0
  54. package/dist/ganttDiagram-6RSMTGT7-CiYZmmke.js +2526 -0
  55. package/dist/ganttDiagram-6RSMTGT7-Cxoj6IK8.cjs +292 -0
  56. package/dist/gitGraphDiagram-PVQCEYII-CQ9bNuwN.js +828 -0
  57. package/dist/gitGraphDiagram-PVQCEYII-rlaY9dfj.cjs +106 -0
  58. package/dist/graph-CBizzZ7K.js +1545 -0
  59. package/dist/graph-V5BNIbHU.cjs +1 -0
  60. package/dist/index-jBRold1l.js +173159 -0
  61. package/dist/index-sFrjovbM.cjs +804 -0
  62. package/dist/index.d.ts +54 -0
  63. package/dist/infoDiagram-5YYISTIA-CAzYIvUX.js +24 -0
  64. package/dist/infoDiagram-5YYISTIA-zX5rQglQ.cjs +2 -0
  65. package/dist/init-CHZsXQcr.cjs +1 -0
  66. package/dist/init-DjUOC4st.js +16 -0
  67. package/dist/ishikawaDiagram-YF4QCWOH-09prKBsn.cjs +70 -0
  68. package/dist/ishikawaDiagram-YF4QCWOH-Co8BnN24.js +622 -0
  69. package/dist/journeyDiagram-JHISSGLW-DkdWRF_-.cjs +139 -0
  70. package/dist/journeyDiagram-JHISSGLW-riCLiMCC.js +836 -0
  71. package/dist/kanban-definition-UN3LZRKU-DWipOCsx.cjs +89 -0
  72. package/dist/kanban-definition-UN3LZRKU-SRyCSn2H.js +725 -0
  73. package/dist/katex-Cf_UVKIT.cjs +257 -0
  74. package/dist/katex-RNjvZ8pg.js +11681 -0
  75. package/dist/layout-CbksXFOD.js +1728 -0
  76. package/dist/layout-Dh52gsIJ.cjs +1 -0
  77. package/dist/linear-C3xSMJV8.cjs +1 -0
  78. package/dist/linear-CmUCzX9U.js +259 -0
  79. package/dist/mermaid.core-BzNKr-OJ.cjs +308 -0
  80. package/dist/mermaid.core-CdBIz6FY.js +15475 -0
  81. package/dist/mindmap-definition-RKZ34NQL-Cs63oyIX.cjs +96 -0
  82. package/dist/mindmap-definition-RKZ34NQL-Gcma5iTd.js +830 -0
  83. package/dist/ordinal-CagbB1m8.cjs +1 -0
  84. package/dist/ordinal-DfAQgscy.js +61 -0
  85. package/dist/pieDiagram-4H26LBE5-CBGkD8dp.cjs +30 -0
  86. package/dist/pieDiagram-4H26LBE5-DSL8cVK1.js +164 -0
  87. package/dist/quadrantDiagram-W4KKPZXB-D3nCWRjF.cjs +7 -0
  88. package/dist/quadrantDiagram-W4KKPZXB-uod6bhUy.js +1026 -0
  89. package/dist/requirementDiagram-4Y6WPE33-Bc_6y7SM.js +884 -0
  90. package/dist/requirementDiagram-4Y6WPE33-D2mHlh5i.cjs +84 -0
  91. package/dist/sankeyDiagram-5OEKKPKP-DL_kXejW.cjs +40 -0
  92. package/dist/sankeyDiagram-5OEKKPKP-DMsjY4G4.js +847 -0
  93. package/dist/sequenceDiagram-3UESZ5HK-CBGalGOV.cjs +162 -0
  94. package/dist/sequenceDiagram-3UESZ5HK-CH2Z-Pis.js +2901 -0
  95. package/dist/stateDiagram-AJRCARHV-gEqlAI6t.js +263 -0
  96. package/dist/stateDiagram-AJRCARHV-rNMrAI-A.cjs +1 -0
  97. package/dist/stateDiagram-v2-BHNVJYJU-CDj7L1wi.js +16 -0
  98. package/dist/stateDiagram-v2-BHNVJYJU-LLlFJ1GM.cjs +1 -0
  99. package/dist/timeline-definition-PNZ67QCA-Bbuv3uu-.cjs +120 -0
  100. package/dist/timeline-definition-PNZ67QCA-DrGFbQdC.js +1068 -0
  101. package/dist/types.d.ts +295 -0
  102. package/dist/vennDiagram-CIIHVFJN-CGcAwVxU.js +1564 -0
  103. package/dist/vennDiagram-CIIHVFJN-DsSjXluJ.cjs +34 -0
  104. package/dist/wandox.cjs +1 -0
  105. package/dist/wandox.css +1 -0
  106. package/dist/wandox.js +6 -0
  107. package/dist/wandox.umd.js +4172 -0
  108. package/dist/wardley-L42UT6IY-DUnkyH_z.js +22539 -0
  109. package/dist/wardley-L42UT6IY-tDp0NbFW.cjs +165 -0
  110. package/dist/wardleyDiagram-YWT4CUSO-CB_Qa4lR.js +684 -0
  111. package/dist/wardleyDiagram-YWT4CUSO-D0BUmvVW.cjs +78 -0
  112. package/dist/xychartDiagram-2RQKCTM6-Bcq-ACuw.js +1342 -0
  113. package/dist/xychartDiagram-2RQKCTM6-BjeAPKLo.cjs +7 -0
  114. package/package.json +42 -0
@@ -0,0 +1,292 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./mermaid.core-BzNKr-OJ.cjs"),q=require("./index-sFrjovbM.cjs"),Mt=require("./linear-C3xSMJV8.cjs"),xn=require("./init-CHZsXQcr.cjs");function bn(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 wn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Cn(t){return t}var qt=1,ne=2,he=3,Bt=4,Ee=1e-6;function Dn(t){return"translate("+t+",0)"}function Mn(t){return"translate(0,"+t+")"}function Sn(t){return e=>+t(e)}function Fn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Un(){return!this.__axis}function qe(t,e){var n=[],r=null,i=null,s=6,u=6,T=3,I=typeof window<"u"&&window.devicePixelRatio>1?0:.5,M=t===qt||t===Bt?-1:1,w=t===Bt||t===ne?"x":"y",A=t===qt||t===he?Dn:Mn;function S(b){var P=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):Cn),et=Math.max(s,0)+T,X=e.range(),rt=+X[0]+I,R=+X[X.length-1]+I,B=(e.bandwidth?Fn:Sn)(e.copy(),I),J=b.selection?b.selection():b,m=J.selectAll(".domain").data([null]),g=J.selectAll(".tick").data(P,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),C=g.select("line"),D=g.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),C=C.merge(h.append("line").attr("stroke","currentColor").attr(w+"2",M*s)),D=D.merge(h.append("text").attr("fill","currentColor").attr(w,M*et).attr("dy",t===qt?"0em":t===he?"0.71em":"0.32em")),b!==J&&(m=m.transition(b),g=g.transition(b),C=C.transition(b),D=D.transition(b),y=y.transition(b).attr("opacity",Ee).attr("transform",function(x){return isFinite(x=B(x))?A(x+I):this.getAttribute("transform")}),h.attr("opacity",Ee).attr("transform",function(x){var p=this.parentNode.__axis;return A((p&&isFinite(p=p(x))?p:B(x))+I)})),y.remove(),m.attr("d",t===Bt||t===ne?u?"M"+M*u+","+rt+"H"+I+"V"+R+"H"+M*u:"M"+I+","+rt+"V"+R:u?"M"+rt+","+M*u+"V"+I+"H"+R+"V"+M*u:"M"+rt+","+I+"H"+R),g.attr("opacity",1).attr("transform",function(x){return A(B(x)+I)}),C.attr(w+"2",M*s),D.attr(w,M*et).text(E),J.filter(Un).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ne?"start":t===Bt?"end":"middle"),J.each(function(){this.__axis=B})}return S.scale=function(b){return arguments.length?(e=b,S):e},S.ticks=function(){return n=Array.from(arguments),S},S.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),S):n.slice()},S.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),S):r&&r.slice()},S.tickFormat=function(b){return arguments.length?(i=b,S):i},S.tickSize=function(b){return arguments.length?(s=u=+b,S):s},S.tickSizeInner=function(b){return arguments.length?(s=+b,S):s},S.tickSizeOuter=function(b){return arguments.length?(u=+b,S):u},S.tickPadding=function(b){return arguments.length?(T=+b,S):T},S.offset=function(b){return arguments.length?(I=+b,S):I},S}function In(t){return qe(qt,t)}function En(t){return qe(he,t)}const Yn=Math.PI/180,$n=180/Math.PI,Gt=18,Xe=.96422,Ze=1,Ge=.82521,Qe=4/29,St=6/29,Je=3*St*St,An=St*St*St;function Ke(t){if(t instanceof ut)return new ut(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return tn(t);t instanceof c.Rgb||(t=c.rgbConvert(t));var e=se(t.r),n=se(t.g),r=se(t.b),i=re((.2225045*e+.7168786*n+.0606169*r)/Ze),s,u;return e===n&&n===r?s=u=i:(s=re((.4360747*e+.3850649*n+.1430804*r)/Xe),u=re((.0139322*e+.0971045*n+.7141733*r)/Ge)),new ut(116*i-16,500*(s-i),200*(i-u),t.opacity)}function Ln(t,e,n,r){return arguments.length===1?Ke(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}c.define(ut,Ln,c.extend(c.Color$1,{brighter(t){return new ut(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ut(this.l-Gt*(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=Xe*ie(e),t=Ze*ie(t),n=Ge*ie(n),new c.Rgb(ae(3.1338561*e-1.6168667*t-.4906146*n),ae(-.9787684*e+1.9161415*t+.033454*n),ae(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function re(t){return t>An?Math.pow(t,1/3):t/Je+Qe}function ie(t){return t>St?t*t*t:Je*(t-Qe)}function ae(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function se(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function On(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ut||(t=Ke(t)),t.a===0&&t.b===0)return new ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*$n;return new ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function me(t,e,n,r){return arguments.length===1?On(t):new ht(t,e,n,r??1)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function tn(t){if(isNaN(t.h))return new ut(t.l,0,0,t.opacity);var e=t.h*Yn;return new ut(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}c.define(ht,me,c.extend(c.Color$1,{brighter(t){return new ht(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return tn(this).rgb()}}));function Wn(t){return function(e,n){var r=t((e=me(e)).h,(n=me(n)).h),i=c.nogamma(e.c,n.c),s=c.nogamma(e.l,n.l),u=c.nogamma(e.opacity,n.opacity);return function(T){return e.h=r(T),e.c=i(T),e.l=s(T),e.opacity=u(T),e+""}}}const Nn=Wn(c.hue);function Hn(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],u;return s<i&&(u=n,n=r,r=u,u=i,i=s,s=u),t[n]=e.floor(i),t[r]=e.ceil(s),t}const oe=new Date,ce=new Date;function Q(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const u=i(s),T=i.ceil(s);return s-u<T-s?u:T},i.offset=(s,u)=>(e(s=new Date(+s),u==null?1:Math.floor(u)),s),i.range=(s,u,T)=>{const I=[];if(s=i.ceil(s),T=T==null?1:Math.floor(T),!(s<u)||!(T>0))return I;let M;do I.push(M=new Date(+s)),e(s,T),t(s);while(M<s&&s<u);return I},i.filter=s=>Q(u=>{if(u>=u)for(;t(u),!s(u);)u.setTime(u-1)},(u,T)=>{if(u>=u)if(T<0)for(;++T<=0;)for(;e(u,-1),!s(u););else for(;--T>=0;)for(;e(u,1),!s(u););}),n&&(i.count=(s,u)=>(oe.setTime(+s),ce.setTime(+u),t(oe),t(ce),Math.floor(n(oe,ce))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?u=>r(u)%s===0:u=>i.count(0,u)%s===0):i)),i}const Ut=Q(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Q(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,at=mt*60,gt=at*60,yt=gt*24,Te=yt*7,Ye=yt*30,ue=yt*365,pt=Q(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Lt=Q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getMinutes());Lt.range;const Pn=Q(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getUTCMinutes());Pn.range;const Ot=Q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*at)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const Vn=Q(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());Vn.range;const Tt=Q(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*at)/yt,t=>t.getDate()-1);Tt.range;const ve=Q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);ve.range;const Rn=Q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));Rn.range;function xt(t){return Q(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*at)/Te)}const Ht=xt(0),Wt=xt(1),en=xt(2),nn=xt(3),vt=xt(4),rn=xt(5),an=xt(6);Ht.range;Wt.range;en.range;nn.range;vt.range;rn.range;an.range;function bt(t){return Q(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)/Te)}const sn=bt(0),Qt=bt(1),jn=bt(2),zn=bt(3),It=bt(4),Bn=bt(5),qn=bt(6);sn.range;Qt.range;jn.range;zn.range;It.range;Bn.range;qn.range;const Nt=Q(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 Xn=Q(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());Xn.range;const kt=Q(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:Q(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 _t=Q(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());_t.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Q(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)});_t.range;function Zn(t,e,n,r,i,s){const u=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[s,1,at],[s,5,5*at],[s,15,15*at],[s,30,30*at],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Te],[e,1,Ye],[e,3,3*Ye],[t,1,ue]];function T(M,w,A){const S=w<M;S&&([M,w]=[w,M]);const b=A&&typeof A.range=="function"?A:I(M,w,A),P=b?b.range(M,+w+1):[];return S?P.reverse():P}function I(M,w,A){const S=Math.abs(w-M)/A,b=Mt.bisector(([,,et])=>et).right(u,S);if(b===u.length)return t.every(Mt.tickStep(M/ue,w/ue,A));if(b===0)return Ut.every(Math.max(Mt.tickStep(M,w,A),1));const[P,E]=u[S/u[b-1][2]<u[b][2]/S?b-1:b];return P.every(E)}return[T,I]}const[Gn,Qn]=Zn(kt,Nt,Ht,Tt,Ot,Lt);function le(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 fe(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 Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Jn(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,u=t.shortDays,T=t.months,I=t.shortMonths,M=$t(i),w=At(i),A=$t(s),S=At(s),b=$t(u),P=At(u),E=$t(T),et=At(T),X=$t(I),rt=At(I),R={a:k,A:F,b:o,B:j,c:null,d:Ne,e:Ne,f:_r,g:Ir,G:Yr,H:pr,I:Tr,j:vr,L:on,m:xr,M:br,p:a,q:U,Q:Ve,s:Re,S:wr,u:Cr,U:Dr,V:Mr,w:Sr,W:Fr,x:null,X:null,y:Ur,Y:Er,Z:$r,"%":Pe},B={a:V,A:W,b:O,B:K,c:null,d:He,e:He,f:Wr,g:Xr,G:Gr,H:Ar,I:Lr,j:Or,L:un,m:Nr,M:Hr,p:Y,q:st,Q:Ve,s:Re,S:Pr,u:Vr,U:Rr,V:jr,w:zr,W:Br,x:null,X:null,y:qr,Y:Zr,Z:Qr,"%":Pe},J={a:C,A:D,b:x,B:p,c:l,d:Oe,e:Oe,f:mr,g:Le,G:Ae,H:We,I:We,j:lr,L:hr,m:ur,M:fr,p:h,q:cr,Q:yr,s:kr,S:dr,u:rr,U:ir,V:ar,w:nr,W:sr,x:d,X:v,y:Le,Y:Ae,Z:or,"%":gr};R.x=m(n,R),R.X=m(r,R),R.c=m(e,R),B.x=m(n,B),B.X=m(r,B),B.c=m(e,B);function m(_,L){return function(N){var f=[],nt=-1,$=0,Z=_.length,z,ot,lt;for(N instanceof Date||(N=new Date(+N));++nt<Z;)_.charCodeAt(nt)===37&&(f.push(_.slice($,nt)),(ot=$e[z=_.charAt(++nt)])!=null?z=_.charAt(++nt):ot=z==="e"?" ":"0",(lt=L[z])&&(z=lt(N,ot)),f.push(z),$=nt+1);return f.push(_.slice($,nt)),f.join("")}}function g(_,L){return function(N){var f=Yt(1900,void 0,1),nt=y(f,_,N+="",0),$,Z;if(nt!=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(L&&!("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?($=fe(Yt(f.y,0,1)),Z=$.getUTCDay(),$=Z>4||Z===0?Qt.ceil($):Qt($),$=ve.offset($,(f.V-1)*7),f.y=$.getUTCFullYear(),f.m=$.getUTCMonth(),f.d=$.getUTCDate()+(f.w+6)%7):($=le(Yt(f.y,0,1)),Z=$.getDay(),$=Z>4||Z===0?Wt.ceil($):Wt($),$=Tt.offset($,(f.V-1)*7),f.y=$.getFullYear(),f.m=$.getMonth(),f.d=$.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),Z="Z"in f?fe(Yt(f.y,0,1)).getUTCDay():le(Yt(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(Z+5)%7:f.w+f.U*7-(Z+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,fe(f)):le(f)}}function y(_,L,N,f){for(var nt=0,$=L.length,Z=N.length,z,ot;nt<$;){if(f>=Z)return-1;if(z=L.charCodeAt(nt++),z===37){if(z=L.charAt(nt++),ot=J[z in $e?L.charAt(nt++):z],!ot||(f=ot(_,N,f))<0)return-1}else if(z!=N.charCodeAt(f++))return-1}return f}function h(_,L,N){var f=M.exec(L.slice(N));return f?(_.p=w.get(f[0].toLowerCase()),N+f[0].length):-1}function C(_,L,N){var f=b.exec(L.slice(N));return f?(_.w=P.get(f[0].toLowerCase()),N+f[0].length):-1}function D(_,L,N){var f=A.exec(L.slice(N));return f?(_.w=S.get(f[0].toLowerCase()),N+f[0].length):-1}function x(_,L,N){var f=X.exec(L.slice(N));return f?(_.m=rt.get(f[0].toLowerCase()),N+f[0].length):-1}function p(_,L,N){var f=E.exec(L.slice(N));return f?(_.m=et.get(f[0].toLowerCase()),N+f[0].length):-1}function l(_,L,N){return y(_,e,L,N)}function d(_,L,N){return y(_,n,L,N)}function v(_,L,N){return y(_,r,L,N)}function k(_){return u[_.getDay()]}function F(_){return s[_.getDay()]}function o(_){return I[_.getMonth()]}function j(_){return T[_.getMonth()]}function a(_){return i[+(_.getHours()>=12)]}function U(_){return 1+~~(_.getMonth()/3)}function V(_){return u[_.getUTCDay()]}function W(_){return s[_.getUTCDay()]}function O(_){return I[_.getUTCMonth()]}function K(_){return T[_.getUTCMonth()]}function Y(_){return i[+(_.getUTCHours()>=12)]}function st(_){return 1+~~(_.getUTCMonth()/3)}return{format:function(_){var L=m(_+="",R);return L.toString=function(){return _},L},parse:function(_){var L=g(_+="",!1);return L.toString=function(){return _},L},utcFormat:function(_){var L=m(_+="",B);return L.toString=function(){return _},L},utcParse:function(_){var L=g(_+="",!0);return L.toString=function(){return _},L}}}var $e={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Kn=/^%/,tr=/[\\^$*+?|[\]().{}]/g;function H(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 er(t){return t.replace(tr,"\\$&")}function $t(t){return new RegExp("^(?:"+t.map(er).join("|")+")","i")}function At(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function nr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function rr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ir(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ar(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function sr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function or(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Oe(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function mr(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gr(t,e,n){var r=Kn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function kr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ne(t,e){return H(t.getDate(),e,2)}function pr(t,e){return H(t.getHours(),e,2)}function Tr(t,e){return H(t.getHours()%12||12,e,2)}function vr(t,e){return H(1+Tt.count(kt(t),t),e,3)}function on(t,e){return H(t.getMilliseconds(),e,3)}function _r(t,e){return on(t,e)+"000"}function xr(t,e){return H(t.getMonth()+1,e,2)}function br(t,e){return H(t.getMinutes(),e,2)}function wr(t,e){return H(t.getSeconds(),e,2)}function Cr(t){var e=t.getDay();return e===0?7:e}function Dr(t,e){return H(Ht.count(kt(t)-1,t),e,2)}function cn(t){var e=t.getDay();return e>=4||e===0?vt(t):vt.ceil(t)}function Mr(t,e){return t=cn(t),H(vt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function Sr(t){return t.getDay()}function Fr(t,e){return H(Wt.count(kt(t)-1,t),e,2)}function Ur(t,e){return H(t.getFullYear()%100,e,2)}function Ir(t,e){return t=cn(t),H(t.getFullYear()%100,e,2)}function Er(t,e){return H(t.getFullYear()%1e4,e,4)}function Yr(t,e){var n=t.getDay();return t=n>=4||n===0?vt(t):vt.ceil(t),H(t.getFullYear()%1e4,e,4)}function $r(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+H(e/60|0,"0",2)+H(e%60,"0",2)}function He(t,e){return H(t.getUTCDate(),e,2)}function Ar(t,e){return H(t.getUTCHours(),e,2)}function Lr(t,e){return H(t.getUTCHours()%12||12,e,2)}function Or(t,e){return H(1+ve.count(_t(t),t),e,3)}function un(t,e){return H(t.getUTCMilliseconds(),e,3)}function Wr(t,e){return un(t,e)+"000"}function Nr(t,e){return H(t.getUTCMonth()+1,e,2)}function Hr(t,e){return H(t.getUTCMinutes(),e,2)}function Pr(t,e){return H(t.getUTCSeconds(),e,2)}function Vr(t){var e=t.getUTCDay();return e===0?7:e}function Rr(t,e){return H(sn.count(_t(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function jr(t,e){return t=ln(t),H(It.count(_t(t),t)+(_t(t).getUTCDay()===4),e,2)}function zr(t){return t.getUTCDay()}function Br(t,e){return H(Qt.count(_t(t)-1,t),e,2)}function qr(t,e){return H(t.getUTCFullYear()%100,e,2)}function Xr(t,e){return t=ln(t),H(t.getUTCFullYear()%100,e,2)}function Zr(t,e){return H(t.getUTCFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),H(t.getUTCFullYear()%1e4,e,4)}function Qr(){return"+0000"}function Pe(){return"%"}function Ve(t){return+t}function Re(t){return Math.floor(+t/1e3)}var Ct,Jt;Jr({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 Jr(t){return Ct=Jn(t),Jt=Ct.format,Ct.parse,Ct.utcFormat,Ct.utcParse,Ct}function Kr(t){return new Date(t)}function ti(t){return t instanceof Date?+t:+new Date(+t)}function fn(t,e,n,r,i,s,u,T,I,M){var w=Mt.continuous(),A=w.invert,S=w.domain,b=M(".%L"),P=M(":%S"),E=M("%I:%M"),et=M("%I %p"),X=M("%a %d"),rt=M("%b %d"),R=M("%B"),B=M("%Y");function J(m){return(I(m)<m?b:T(m)<m?P:u(m)<m?E:s(m)<m?et:r(m)<m?i(m)<m?X:rt:n(m)<m?R:B)(m)}return w.invert=function(m){return new Date(A(m))},w.domain=function(m){return arguments.length?S(Array.from(m,ti)):S().map(Kr)},w.ticks=function(m){var g=S();return t(g[0],g[g.length-1],m??10)},w.tickFormat=function(m,g){return g==null?J:M(g)},w.nice=function(m){var g=S();return(!m||typeof m.range!="function")&&(m=e(g[0],g[g.length-1],m??10)),m?S(Hn(g,m)):w},w.copy=function(){return Mt.copy(w,fn(t,e,n,r,i,s,u,T,I,M))},w}function ei(){return xn.initRange.apply(fn(Gn,Qn,kt,Nt,Ht,Tt,Ot,Lt,pt,Jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(q.commonjsGlobal,function(){var n="day";return function(r,i,s){var u=function(M){return M.add(4-M.isoWeekday(),n)},T=i.prototype;T.isoWeekYear=function(){return u(this).year()},T.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),n);var w,A,S,b,P=u(this),E=(w=this.isoWeekYear(),A=this.$u,S=(A?s.utc:s)().year(w).startOf("year"),b=4-S.isoWeekday(),S.isoWeekday()>4&&(b+=7),S.add(b,n));return P.diff(E,"week")+1},T.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var I=T.startOf;T.startOf=function(M,w){var A=this.$utils(),S=!!A.u(w)||w;return A.p(M)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):I.bind(this)(M,w)}}})})(dn);var ni=dn.exports;const ri=q.getDefaultExportFromCjs(ni);var hn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(q.commonjsGlobal,function(){var n,r,i=1e3,s=6e4,u=36e5,T=864e5,I=31536e6,M=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,S={years:I,months:M,days:T,hours:u,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},b=function(m){return m instanceof B},P=function(m,g,y){return new B(m,y,g.$l)},E=function(m){return r.p(m)+"s"},et=function(m){return m<0},X=function(m){return et(m)?Math.ceil(m):Math.floor(m)},rt=function(m){return Math.abs(m)},R=function(m,g){return m?et(m)?{negative:!0,format:""+rt(m)+g}:{negative:!1,format:""+m+g}:{negative:!1,format:""}},B=function(){function m(y,h,C){var D=this;if(this.$d={},this.$l=C,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return P(y*S[E(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(l){D.$d[E(l)]=y[l]}),this.calMilliseconds(),this;if(typeof y=="string"){var x=y.match(w);if(x){var p=x.slice(2).map(function(l){return l!=null?Number(l):0});return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,C){return h+(y.$d[C]||0)*S[C]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=X(y/I),y%=I,this.$d.months=X(y/M),y%=M,this.$d.days=X(y/T),y%=T,this.$d.hours=X(y/u),y%=u,this.$d.minutes=X(y/s),y%=s,this.$d.seconds=X(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=R(this.$d.years,"Y"),h=R(this.$d.months,"M"),C=+this.$d.days||0;this.$d.weeks&&(C+=7*this.$d.weeks);var D=R(C,"D"),x=R(this.$d.hours,"H"),p=R(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(1e3*l)/1e3);var d=R(l,"S"),v=y.negative||h.negative||D.negative||x.negative||p.negative||d.negative,k=x.format||p.format||d.format?"T":"",F=(v?"-":"")+"P"+y.format+h.format+D.format+k+x.format+p.format+d.format;return F==="P"||F==="-P"?"P0D":F},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",C={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(A,function(D,x){return x||String(C[D])})},g.as=function(y){return this.$ms/S[E(y)]},g.get=function(y){var h=this.$ms,C=E(y);return C==="milliseconds"?h%=1e3:h=C==="weeks"?X(h/S[C]):this.$d[C],h||0},g.add=function(y,h,C){var D;return D=h?y*S[E(h)]:b(y)?y.$ms:P(y,this).$ms,P(this.$ms+D*(C?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return P(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},m}(),J=function(m,g,y){return m.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(m,g,y){n=y,r=y().$utils(),y.duration=function(D,x){var p=y.locale();return P(D,{$l:p},x)},y.isDuration=b;var h=g.prototype.add,C=g.prototype.subtract;g.prototype.add=function(D,x){return b(D)?J(this,D,1):h.bind(this)(D,x)},g.prototype.subtract=function(D,x){return b(D)?J(this,D,-1):C.bind(this)(D,x)}}})})(hn);var ii=hn.exports;const ai=q.getDefaultExportFromCjs(ii);var ge=function(){var t=c.__name(function(p,l,d,v){for(d=d||{},v=p.length;v--;d[p[v]]=l);return d},"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],u=[1,30],T=[1,31],I=[1,32],M=[1,33],w=[1,34],A=[1,9],S=[1,10],b=[1,11],P=[1,12],E=[1,13],et=[1,14],X=[1,15],rt=[1,16],R=[1,19],B=[1,20],J=[1,21],m=[1,22],g=[1,23],y=[1,25],h=[1,35],C={trace:c.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:c.__name(function(l,d,v,k,F,o,j){var a=o.length-1;switch(F){case 1:return o[a-1];case 2:this.$=[];break;case 3:o[a-1].push(o[a]),this.$=o[a-1];break;case 4:case 5:this.$=o[a];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[a].substr(18);break;case 19:k.TopAxis(),this.$=o[a].substr(8);break;case 20:k.setAxisFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 21:k.setTickInterval(o[a].substr(13)),this.$=o[a].substr(13);break;case 22:k.setExcludes(o[a].substr(9)),this.$=o[a].substr(9);break;case 23:k.setIncludes(o[a].substr(9)),this.$=o[a].substr(9);break;case 24:k.setTodayMarker(o[a].substr(12)),this.$=o[a].substr(12);break;case 27:k.setDiagramTitle(o[a].substr(6)),this.$=o[a].substr(6);break;case 28:this.$=o[a].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[a].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[a].substr(8)),this.$=o[a].substr(8);break;case 33:k.addTask(o[a-1],o[a]),this.$="task";break;case 34:this.$=o[a-1],k.setClickEvent(o[a-1],o[a],null);break;case 35:this.$=o[a-2],k.setClickEvent(o[a-2],o[a-1],o[a]);break;case 36:this.$=o[a-2],k.setClickEvent(o[a-2],o[a-1],null),k.setLink(o[a-2],o[a]);break;case 37:this.$=o[a-3],k.setClickEvent(o[a-3],o[a-2],o[a-1]),k.setLink(o[a-3],o[a]);break;case 38:this.$=o[a-2],k.setClickEvent(o[a-2],o[a],null),k.setLink(o[a-2],o[a-1]);break;case 39:this.$=o[a-3],k.setClickEvent(o[a-3],o[a-1],o[a]),k.setLink(o[a-3],o[a-2]);break;case 40:this.$=o[a-1],k.setLink(o[a-1],o[a]);break;case 41:case 47:this.$=o[a-1]+" "+o[a];break;case 42:case 43:case 45:this.$=o[a-2]+" "+o[a-1]+" "+o[a];break;case 44:case 46:this.$=o[a-3]+" "+o[a-2]+" "+o[a-1]+" "+o[a];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:s,16:u,17:T,18:I,19:18,20:M,21:w,22:A,23:S,24:b,25:P,26:E,27:et,28:X,29:rt,30:R,31:B,33:J,35:m,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:u,17:T,18:I,19:18,20:M,21:w,22:A,23:S,24:b,25:P,26:E,27:et,28:X,29:rt,30:R,31:B,33:J,35:m,36:g,37:24,38:y,40:h},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:c.__name(function(l,d){if(d.recoverable)this.trace(l);else{var v=new Error(l);throw v.hash=d,v}},"parseError"),parse:c.__name(function(l){var d=this,v=[0],k=[],F=[null],o=[],j=this.table,a="",U=0,V=0,W=2,O=1,K=o.slice.call(arguments,1),Y=Object.create(this.lexer),st={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(st.yy[_]=this.yy[_]);Y.setInput(l,st.yy),st.yy.lexer=Y,st.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var L=Y.yylloc;o.push(L);var N=Y.options&&Y.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(it){v.length=v.length-2*it,F.length=F.length-it,o.length=o.length-it}c.__name(f,"popStack");function nt(){var it;return it=k.pop()||Y.lex()||O,typeof it!="number"&&(it instanceof Array&&(k=it,it=k.pop()),it=d.symbols_[it]||it),it}c.__name(nt,"lex");for(var $,Z,z,ot,lt={},jt,ft,Ie,zt;;){if(Z=v[v.length-1],this.defaultActions[Z]?z=this.defaultActions[Z]:(($===null||typeof $>"u")&&($=nt()),z=j[Z]&&j[Z][$]),typeof z>"u"||!z.length||!z[0]){var ee="";zt=[];for(jt in j[Z])this.terminals_[jt]&&jt>W&&zt.push("'"+this.terminals_[jt]+"'");Y.showPosition?ee="Parse error on line "+(U+1)+`:
2
+ `+Y.showPosition()+`
3
+ Expecting `+zt.join(", ")+", got '"+(this.terminals_[$]||$)+"'":ee="Parse error on line "+(U+1)+": Unexpected "+($==O?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(ee,{text:Y.match,token:this.terminals_[$]||$,line:Y.yylineno,loc:L,expected:zt})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+$);switch(z[0]){case 1:v.push($),F.push(Y.yytext),o.push(Y.yylloc),v.push(z[1]),$=null,V=Y.yyleng,a=Y.yytext,U=Y.yylineno,L=Y.yylloc;break;case 2:if(ft=this.productions_[z[1]][1],lt.$=F[F.length-ft],lt._$={first_line:o[o.length-(ft||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ft||1)].first_column,last_column:o[o.length-1].last_column},N&&(lt._$.range=[o[o.length-(ft||1)].range[0],o[o.length-1].range[1]]),ot=this.performAction.apply(lt,[a,V,U,st.yy,z[1],F,o].concat(K)),typeof ot<"u")return ot;ft&&(v=v.slice(0,-1*ft*2),F=F.slice(0,-1*ft),o=o.slice(0,-1*ft)),v.push(this.productions_[z[1]][0]),F.push(lt.$),o.push(lt._$),Ie=j[v[v.length-2]][v[v.length-1]],v.push(Ie);break;case 3:return!0}}return!0},"parse")},D=function(){var p={EOF:1,parseError:c.__name(function(d,v){if(this.yy.parser)this.yy.parser.parseError(d,v);else throw new Error(d)},"parseError"),setInput:c.__name(function(l,d){return this.yy=d||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var d=l.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:c.__name(function(l){var d=l.length,v=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var k=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),v.length-1&&(this.yylineno-=v.length-1);var F=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:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c.__name(function(){return this._more=!0,this},"more"),reject:c.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:c.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c.__name(function(){var l=this.pastInput(),d=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
+ `+d+"^"},"showPosition"),test_match:c.__name(function(l,d){var v,k,F;if(this.options.backtrack_lexer&&(F={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&&(F.yylloc.range=this.yylloc.range.slice(0))),k=l[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],v=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var o in F)this[o]=F[o];return!1}return!1},"test_match"),next:c.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,d,v,k;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),o=0;o<F.length;o++)if(v=this._input.match(this.rules[F[o]]),v&&(!d||v[0].length>d[0].length)){if(d=v,k=o,this.options.backtrack_lexer){if(l=this.test_match(v,F[o]),l!==!1)return l;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(l=this.test_match(d,F[k]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c.__name(function(){var d=this.next();return d||this.lex()},"lex"),begin:c.__name(function(d){this.conditionStack.push(d)},"begin"),popState:c.__name(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:c.__name(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:c.__name(function(d){this.begin(d)},"pushState"),stateStackSize:c.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c.__name(function(d,v,k,F){switch(k){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 p}();C.lexer=D;function x(){this.yy={}}return c.__name(x,"Parser"),x.prototype=C,C.Parser=x,new x}();ge.parser=ge;var si=ge;q.dayjs2.extend(ri);q.dayjs2.extend(q.dayjsCustomParseFormat);q.dayjs2.extend(q.dayjsAdvancedFormat);var je={friday:5,saturday:6},ct="",_e="",xe=void 0,be="",Pt=[],Vt=[],we=new Map,Ce=[],Kt=[],Et="",De="",mn=["active","done","crit","milestone","vert"],Me=[],Dt="",Rt=!1,Se=!1,Fe="sunday",te="saturday",ye=0,oi=c.__name(function(){Ce=[],Kt=[],Et="",Me=[],Xt=0,pe=void 0,Zt=void 0,G=[],ct="",_e="",De="",xe=void 0,be="",Pt=[],Vt=[],Rt=!1,Se=!1,ye=0,we=new Map,Dt="",c.clear(),Fe="sunday",te="saturday"},"clear"),ci=c.__name(function(t){Dt=t},"setDiagramId"),ui=c.__name(function(t){_e=t},"setAxisFormat"),li=c.__name(function(){return _e},"getAxisFormat"),fi=c.__name(function(t){xe=t},"setTickInterval"),di=c.__name(function(){return xe},"getTickInterval"),hi=c.__name(function(t){be=t},"setTodayMarker"),mi=c.__name(function(){return be},"getTodayMarker"),gi=c.__name(function(t){ct=t},"setDateFormat"),yi=c.__name(function(){Rt=!0},"enableInclusiveEndDates"),ki=c.__name(function(){return Rt},"endDatesAreInclusive"),pi=c.__name(function(){Se=!0},"enableTopAxis"),Ti=c.__name(function(){return Se},"topAxisEnabled"),vi=c.__name(function(t){De=t},"setDisplayMode"),_i=c.__name(function(){return De},"getDisplayMode"),xi=c.__name(function(){return ct},"getDateFormat"),bi=c.__name(function(t){Pt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),wi=c.__name(function(){return Pt},"getIncludes"),Ci=c.__name(function(t){Vt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),Di=c.__name(function(){return Vt},"getExcludes"),Mi=c.__name(function(){return we},"getLinks"),Si=c.__name(function(t){Et=t,Ce.push(t)},"addSection"),Fi=c.__name(function(){return Ce},"getSections"),Ui=c.__name(function(){let t=ze();const e=10;let n=0;for(;!t&&n<e;)t=ze(),n++;return Kt=G,Kt},"getTasks"),gn=c.__name(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return r.includes(i)||r.includes(s)?!1:n.includes("weekends")&&(t.isoWeekday()===je[te]||t.isoWeekday()===je[te]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(i)||n.includes(s)},"isInvalidDate"),Ii=c.__name(function(t){Fe=t},"setWeekday"),Ei=c.__name(function(){return Fe},"getWeekday"),Yi=c.__name(function(t){te=t},"setWeekend"),yn=c.__name(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=q.dayjs2(t.startTime):i=q.dayjs2(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=q.dayjs2(t.endTime):s=q.dayjs2(t.endTime,e,!0);const[u,T]=$i(i,s,e,n,r);t.endTime=u.toDate(),t.renderEndTime=T},"checkTaskDates"),$i=c.__name(function(t,e,n,r,i){let s=!1,u=null;const T=e.add(1e4,"d");for(;t<=e;){if(s||(u=e.toDate()),s=gn(t,n,r,i),s&&(e=e.add(1,"d"),e>T))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,u]},"fixTaskDates"),ke=c.__name(function(t,e,n){if(n=n.trim(),c.__name(T=>{const I=T.trim();return I==="x"||I==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let T=null;for(const M of s.groups.ids.split(" ")){let w=wt(M);w!==void 0&&(!T||w.endTime>T.endTime)&&(T=w)}if(T)return T.endTime;const I=new Date;return I.setHours(0,0,0,0),I}let u=q.dayjs2(n,e.trim(),!0);if(u.isValid())return u.toDate();{c.log.debug("Invalid date:"+n),c.log.debug("With date format:"+e.trim());const T=new Date(n);if(T===void 0||isNaN(T.getTime())||T.getFullYear()<-1e4||T.getFullYear()>1e4)throw new Error("Invalid date:"+n);return T}},"getStartDate"),kn=c.__name(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),pn=c.__name(function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let w=null;for(const S of s.groups.ids.split(" ")){let b=wt(S);b!==void 0&&(!w||b.startTime<w.startTime)&&(w=b)}if(w)return w.startTime;const A=new Date;return A.setHours(0,0,0,0),A}let u=q.dayjs2(n,e.trim(),!0);if(u.isValid())return r&&(u=u.add(1,"d")),u.toDate();let T=q.dayjs2(t);const[I,M]=kn(n);if(!Number.isNaN(I)){const w=T.add(I,M);w.isValid()&&(T=w)}return T.toDate()},"getEndDate"),Xt=0,Ft=c.__name(function(t){return t===void 0?(Xt=Xt+1,"task"+Xt):t},"parseId"),Ai=c.__name(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Ue(r,i,mn);for(let u=0;u<r.length;u++)r[u]=r[u].trim();let s="";switch(r.length){case 1:i.id=Ft(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Ft(),i.startTime=ke(void 0,ct,r[0]),s=r[1];break;case 3:i.id=Ft(r[0]),i.startTime=ke(void 0,ct,r[1]),s=r[2];break}return s&&(i.endTime=pn(i.startTime,ct,s,Rt),i.manualEndTime=q.dayjs2(s,"YYYY-MM-DD",!0).isValid(),yn(i,ct,Vt,Pt)),i},"compileData"),Li=c.__name(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Ue(r,i,mn);for(let s=0;s<r.length;s++)r[s]=r[s].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"),pe,Zt,G=[],Tn={},Oi=c.__name(function(t,e){const n={section:Et,type:Et,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Li(Zt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Zt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=ye,ye++;const i=G.push(n);Zt=n.id,Tn[n.id]=i-1},"addTask"),wt=c.__name(function(t){const e=Tn[t];return G[e]},"findTaskById"),Wi=c.__name(function(t,e){const n={section:Et,type:Et,description:t,task:t,classes:[]},r=Ai(pe,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,pe=n,Kt.push(n)},"addTaskOrg"),ze=c.__name(function(){const t=c.__name(function(n){const r=G[n];let i="";switch(G[n].raw.startTime.type){case"prevTaskEnd":{const s=wt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=ke(void 0,ct,G[n].raw.startTime.startData),i&&(G[n].startTime=i);break}return G[n].startTime&&(G[n].endTime=pn(G[n].startTime,ct,G[n].raw.endTime.data,Rt),G[n].endTime&&(G[n].processed=!0,G[n].manualEndTime=q.dayjs2(G[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),yn(G[n],ct,Vt,Pt))),G[n].processed},"compileTask");let e=!0;for(const[n,r]of G.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Ni=c.__name(function(t,e){let n=e;c.getConfig2().securityLevel!=="loose"&&(n=c.sanitizeUrl_1(e)),t.split(",").forEach(function(r){wt(r)!==void 0&&(_n(r,()=>{window.open(n,"_self")}),we.set(r,n))}),vn(t,"clickable")},"setLink"),vn=c.__name(function(t,e){t.split(",").forEach(function(n){let r=wt(n);r!==void 0&&r.classes.push(e)})},"setClass"),Hi=c.__name(function(t,e,n){if(c.getConfig2().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let u=r[s].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),r[s]=u}}r.length===0&&r.push(t),wt(t)!==void 0&&_n(t,()=>{c.utils_default.runFunc(e,...r)})},"setClickFun"),_n=c.__name(function(t,e){Me.push(function(){const n=Dt?`${Dt}-${t}`:t,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){const n=Dt?`${Dt}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),Pi=c.__name(function(t,e,n){t.split(",").forEach(function(r){Hi(r,e,n)}),vn(t,"clickable")},"setClickEvent"),Vi=c.__name(function(t){Me.forEach(function(e){e(t)})},"bindFunctions"),Ri={getConfig:c.__name(()=>c.getConfig2().gantt,"getConfig"),clear:oi,setDateFormat:gi,getDateFormat:xi,enableInclusiveEndDates:yi,endDatesAreInclusive:ki,enableTopAxis:pi,topAxisEnabled:Ti,setAxisFormat:ui,getAxisFormat:li,setTickInterval:fi,getTickInterval:di,setTodayMarker:hi,getTodayMarker:mi,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,setDiagramId:ci,setDisplayMode:vi,getDisplayMode:_i,setAccDescription:c.setAccDescription,getAccDescription:c.getAccDescription,addSection:Si,getSections:Fi,getTasks:Ui,addTask:Oi,findTaskById:wt,addTaskOrg:Wi,setIncludes:bi,getIncludes:wi,setExcludes:Ci,getExcludes:Di,setClickEvent:Pi,setLink:Ni,getLinks:Mi,bindFunctions:Vi,parseDuration:kn,isInvalidDate:gn,setWeekday:Ii,getWeekday:Ei,setWeekend:Yi};function Ue(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",u=new RegExp(s);t[0].match(u)&&(e[i]=!0,t.shift(1),r=!0)})}c.__name(Ue,"getTaskTags");q.dayjs2.extend(ai);var ji=c.__name(function(){c.log.debug("Something is calling, setConf, remove the call")},"setConf"),Be={monday:Wt,tuesday:en,wednesday:nn,thursday:vt,friday:rn,saturday:an,sunday:Ht},zi=c.__name((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,u)=>s.startTime-u.startTime||s.order-u.order),i=0;for(const s of r)for(let u=0;u<n.length;u++)if(s.startTime>=n[u]){n[u]=s.endTime,s.order=u+e,u>i&&(i=u);break}return i},"getMaxIntersections"),dt,de=1e4,Bi=c.__name(function(t,e,n,r){const i=c.getConfig2().gantt;r.db.setDiagramId(e);const s=c.getConfig2().securityLevel;let u;s==="sandbox"&&(u=c.select("#i"+e));const T=s==="sandbox"?c.select(u.nodes()[0].contentDocument.body):c.select("body"),I=s==="sandbox"?u.nodes()[0].contentDocument:document,M=I.getElementById(e);dt=M.parentElement.offsetWidth,dt===void 0&&(dt=1200),i.useWidth!==void 0&&(dt=i.useWidth);const w=r.db.getTasks();let A=[];for(const h of w)A.push(h.type);A=y(A);const S={};let b=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const h={};for(const D of w)h[D.section]===void 0?h[D.section]=[D]:h[D.section].push(D);let C=0;for(const D of Object.keys(h)){const x=zi(h[D],C)+1;C+=x,b+=x*(i.barHeight+i.barGap),S[D]=x}}else{b+=w.length*(i.barHeight+i.barGap);for(const h of A)S[h]=w.filter(C=>C.type===h).length}M.setAttribute("viewBox","0 0 "+dt+" "+b);const P=T.select(`[id="${e}"]`),E=ei().domain([wn(w,function(h){return h.startTime}),bn(w,function(h){return h.endTime})]).rangeRound([0,dt-i.leftPadding-i.rightPadding]);function et(h,C){const D=h.startTime,x=C.startTime;let p=0;return D>x?p=1:D<x&&(p=-1),p}c.__name(et,"taskCompare"),w.sort(et),X(w,dt,b),c.configureSvgSize(P,b,dt,i.useMaxWidth),P.append("text").text(r.db.getDiagramTitle()).attr("x",dt/2).attr("y",i.titleTopMargin).attr("class","titleText");function X(h,C,D){const x=i.barHeight,p=x+i.barGap,l=i.topPadding,d=i.leftPadding,v=Mt.linear().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(Nn);R(p,l,d,C,D,h,r.db.getExcludes(),r.db.getIncludes()),J(d,l,C,D),rt(h,p,l,d,x,v,C),m(p,l),g(d,l,C,D)}c.__name(X,"makeGantt");function rt(h,C,D,x,p,l,d){h.sort((a,U)=>a.vert===U.vert?0:a.vert?1:-1);const k=[...new Set(h.map(a=>a.order))].map(a=>h.find(U=>U.order===a));P.append("g").selectAll("rect").data(k).enter().append("rect").attr("x",0).attr("y",function(a,U){return U=a.order,U*C+D-2}).attr("width",function(){return d-i.rightPadding/2}).attr("height",C).attr("class",function(a){for(const[U,V]of A.entries())if(a.type===V)return"section section"+U%i.numberSectionStyles;return"section section0"}).enter();const F=P.append("g").selectAll("rect").data(h).enter(),o=r.db.getLinks();if(F.append("rect").attr("id",function(a){return e+"-"+a.id}).attr("rx",3).attr("ry",3).attr("x",function(a){return a.milestone?E(a.startTime)+x+.5*(E(a.endTime)-E(a.startTime))-.5*p:E(a.startTime)+x}).attr("y",function(a,U){return U=a.order,a.vert?i.gridLineStartPadding:U*C+D}).attr("width",function(a){return a.milestone?p:a.vert?.08*p:E(a.renderEndTime||a.endTime)-E(a.startTime)}).attr("height",function(a){return a.vert?w.length*(i.barHeight+i.barGap)+i.barHeight*2:p}).attr("transform-origin",function(a,U){return U=a.order,(E(a.startTime)+x+.5*(E(a.endTime)-E(a.startTime))).toString()+"px "+(U*C+D+.5*p).toString()+"px"}).attr("class",function(a){const U="task";let V="";a.classes.length>0&&(V=a.classes.join(" "));let W=0;for(const[K,Y]of A.entries())a.type===Y&&(W=K%i.numberSectionStyles);let O="";return a.active?a.crit?O+=" activeCrit":O=" active":a.done?a.crit?O=" doneCrit":O=" done":a.crit&&(O+=" crit"),O.length===0&&(O=" task"),a.milestone&&(O=" milestone "+O),a.vert&&(O=" vert "+O),O+=W,O+=" "+V,U+O}),F.append("text").attr("id",function(a){return e+"-"+a.id+"-text"}).text(function(a){return a.task}).attr("font-size",i.fontSize).attr("x",function(a){let U=E(a.startTime),V=E(a.renderEndTime||a.endTime);if(a.milestone&&(U+=.5*(E(a.endTime)-E(a.startTime))-.5*p,V=U+p),a.vert)return E(a.startTime)+x;const W=this.getBBox().width;return W>V-U?V+W+1.5*i.leftPadding>d?U+x-5:V+x+5:(V-U)/2+U+x}).attr("y",function(a,U){return a.vert?i.gridLineStartPadding+w.length*(i.barHeight+i.barGap)+60:(U=a.order,U*C+i.barHeight/2+(i.fontSize/2-2)+D)}).attr("text-height",p).attr("class",function(a){const U=E(a.startTime);let V=E(a.endTime);a.milestone&&(V=U+p);const W=this.getBBox().width;let O="";a.classes.length>0&&(O=a.classes.join(" "));let K=0;for(const[st,_]of A.entries())a.type===_&&(K=st%i.numberSectionStyles);let Y="";return a.active&&(a.crit?Y="activeCritText"+K:Y="activeText"+K),a.done?a.crit?Y=Y+" doneCritText"+K:Y=Y+" doneText"+K:a.crit&&(Y=Y+" critText"+K),a.milestone&&(Y+=" milestoneText"),a.vert&&(Y+=" vertText"),W>V-U?V+W+1.5*i.leftPadding>d?O+" taskTextOutsideLeft taskTextOutside"+K+" "+Y:O+" taskTextOutsideRight taskTextOutside"+K+" "+Y+" width-"+W:O+" taskText taskText"+K+" "+Y+" width-"+W}),c.getConfig2().securityLevel==="sandbox"){let a;a=c.select("#i"+e);const U=a.nodes()[0].contentDocument;F.filter(function(V){return o.has(V.id)}).each(function(V){var W=U.querySelector("#"+CSS.escape(e+"-"+V.id)),O=U.querySelector("#"+CSS.escape(e+"-"+V.id+"-text"));const K=W.parentNode;var Y=U.createElement("a");Y.setAttribute("xlink:href",o.get(V.id)),Y.setAttribute("target","_top"),K.appendChild(Y),Y.appendChild(W),Y.appendChild(O)})}}c.__name(rt,"drawRects");function R(h,C,D,x,p,l,d,v){if(d.length===0&&v.length===0)return;let k,F;for(const{startTime:W,endTime:O}of l)(k===void 0||W<k)&&(k=W),(F===void 0||O>F)&&(F=O);if(!k||!F)return;if(q.dayjs2(F).diff(q.dayjs2(k),"year")>5){c.log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const o=r.db.getDateFormat(),j=[];let a=null,U=q.dayjs2(k);for(;U.valueOf()<=F;)r.db.isInvalidDate(U,o,d,v)?a?a.end=U:a={start:U,end:U}:a&&(j.push(a),a=null),U=U.add(1,"d");P.append("g").selectAll("rect").data(j).enter().append("rect").attr("id",W=>e+"-exclude-"+W.start.format("YYYY-MM-DD")).attr("x",W=>E(W.start.startOf("day"))+D).attr("y",i.gridLineStartPadding).attr("width",W=>E(W.end.endOf("day"))-E(W.start.startOf("day"))).attr("height",p-C-i.gridLineStartPadding).attr("transform-origin",function(W,O){return(E(W.start)+D+.5*(E(W.end)-E(W.start))).toString()+"px "+(O*h+.5*p).toString()+"px"}).attr("class","exclude-range")}c.__name(R,"drawExcludeDays");function B(h,C,D,x){if(D<=0||h>C)return 1/0;const p=C-h,l=q.dayjs2.duration({[x??"day"]:D}).asMilliseconds();return l<=0?1/0:Math.ceil(p/l)}c.__name(B,"getEstimatedTickCount");function J(h,C,D,x){const p=r.db.getDateFormat(),l=r.db.getAxisFormat();let d;l?d=l:p==="D"?d="%d":d=i.axisFormat??"%Y-%m-%d";let v=En(E).tickSize(-x+C+i.gridLineStartPadding).tickFormat(Jt(d));const F=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(F!==null){const o=parseInt(F[1],10);if(isNaN(o)||o<=0)c.log.warn(`Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`);else{const j=F[2],a=r.db.getWeekday()||i.weekday,U=E.domain(),V=U[0],W=U[1],O=B(V,W,o,j);if(O>de)c.log.warn(`The tick interval "${o}${j}" would generate ${O} ticks, which exceeds the maximum allowed (${de}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(j){case"millisecond":v.ticks(Ut.every(o));break;case"second":v.ticks(pt.every(o));break;case"minute":v.ticks(Lt.every(o));break;case"hour":v.ticks(Ot.every(o));break;case"day":v.ticks(Tt.every(o));break;case"week":v.ticks(Be[a].every(o));break;case"month":v.ticks(Nt.every(o));break}}}if(P.append("g").attr("class","grid").attr("transform","translate("+h+", "+(x-50)+")").call(v).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 o=In(E).tickSize(-x+C+i.gridLineStartPadding).tickFormat(Jt(d));if(F!==null){const j=parseInt(F[1],10);if(isNaN(j)||j<=0)c.log.warn(`Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`);else{const a=F[2],U=r.db.getWeekday()||i.weekday,V=E.domain(),W=V[0],O=V[1];if(B(W,O,j,a)<=de)switch(a){case"millisecond":o.ticks(Ut.every(j));break;case"second":o.ticks(pt.every(j));break;case"minute":o.ticks(Lt.every(j));break;case"hour":o.ticks(Ot.every(j));break;case"day":o.ticks(Tt.every(j));break;case"week":o.ticks(Be[U].every(j));break;case"month":o.ticks(Nt.every(j));break}}}P.append("g").attr("class","grid").attr("transform","translate("+h+", "+C+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}c.__name(J,"makeGrid");function m(h,C){let D=0;const x=Object.keys(S).map(p=>[p,S[p]]);P.append("g").selectAll("text").data(x).enter().append(function(p){const l=p[0].split(c.common_default.lineBreakRegex),d=-(l.length-1)/2,v=I.createElementNS("http://www.w3.org/2000/svg","text");v.setAttribute("dy",d+"em");for(const[k,F]of l.entries()){const o=I.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttribute("alignment-baseline","central"),o.setAttribute("x","10"),k>0&&o.setAttribute("dy","1em"),o.textContent=F,v.appendChild(o)}return v}).attr("x",10).attr("y",function(p,l){if(l>0)for(let d=0;d<l;d++)return D+=x[l-1][1],p[1]*h/2+D*h+C;else return p[1]*h/2+C}).attr("font-size",i.sectionFontSize).attr("class",function(p){for(const[l,d]of A.entries())if(p[0]===d)return"sectionTitle sectionTitle"+l%i.numberSectionStyles;return"sectionTitle"})}c.__name(m,"vertLabels");function g(h,C,D,x){const p=r.db.getTodayMarker();if(p==="off")return;const l=P.append("g").attr("class","today"),d=new Date,v=l.append("line");v.attr("x1",E(d)+h).attr("x2",E(d)+h).attr("y1",i.titleTopMargin).attr("y2",x-i.titleTopMargin).attr("class","today"),p!==""&&v.attr("style",p.replace(/,/g,";"))}c.__name(g,"drawToday");function y(h){const C={},D=[];for(let x=0,p=h.length;x<p;++x)Object.prototype.hasOwnProperty.call(C,h[x])||(C[h[x]]=!0,D.push(h[x]));return D}c.__name(y,"checkUnique")},"draw"),qi={setConf:ji,draw:Bi},Xi=c.__name(t=>`
7
+ .mermaid-main-font {
8
+ font-family: ${t.fontFamily};
9
+ }
10
+
11
+ .exclude-range {
12
+ fill: ${t.excludeBkgColor};
13
+ }
14
+
15
+ .section {
16
+ stroke: none;
17
+ opacity: 0.2;
18
+ }
19
+
20
+ .section0 {
21
+ fill: ${t.sectionBkgColor};
22
+ }
23
+
24
+ .section2 {
25
+ fill: ${t.sectionBkgColor2};
26
+ }
27
+
28
+ .section1,
29
+ .section3 {
30
+ fill: ${t.altSectionBkgColor};
31
+ opacity: 0.2;
32
+ }
33
+
34
+ .sectionTitle0 {
35
+ fill: ${t.titleColor};
36
+ }
37
+
38
+ .sectionTitle1 {
39
+ fill: ${t.titleColor};
40
+ }
41
+
42
+ .sectionTitle2 {
43
+ fill: ${t.titleColor};
44
+ }
45
+
46
+ .sectionTitle3 {
47
+ fill: ${t.titleColor};
48
+ }
49
+
50
+ .sectionTitle {
51
+ text-anchor: start;
52
+ font-family: ${t.fontFamily};
53
+ }
54
+
55
+
56
+ /* Grid and axis */
57
+
58
+ .grid .tick {
59
+ stroke: ${t.gridColor};
60
+ opacity: 0.8;
61
+ shape-rendering: crispEdges;
62
+ }
63
+
64
+ .grid .tick text {
65
+ font-family: ${t.fontFamily};
66
+ fill: ${t.textColor};
67
+ }
68
+
69
+ .grid path {
70
+ stroke-width: 0;
71
+ }
72
+
73
+
74
+ /* Today line */
75
+
76
+ .today {
77
+ fill: none;
78
+ stroke: ${t.todayLineColor};
79
+ stroke-width: 2px;
80
+ }
81
+
82
+
83
+ /* Task styling */
84
+
85
+ /* Default task */
86
+
87
+ .task {
88
+ stroke-width: 2;
89
+ }
90
+
91
+ .taskText {
92
+ text-anchor: middle;
93
+ font-family: ${t.fontFamily};
94
+ }
95
+
96
+ .taskTextOutsideRight {
97
+ fill: ${t.taskTextDarkColor};
98
+ text-anchor: start;
99
+ font-family: ${t.fontFamily};
100
+ }
101
+
102
+ .taskTextOutsideLeft {
103
+ fill: ${t.taskTextDarkColor};
104
+ text-anchor: end;
105
+ }
106
+
107
+
108
+ /* Special case clickable */
109
+
110
+ .task.clickable {
111
+ cursor: pointer;
112
+ }
113
+
114
+ .taskText.clickable {
115
+ cursor: pointer;
116
+ fill: ${t.taskTextClickableColor} !important;
117
+ font-weight: bold;
118
+ }
119
+
120
+ .taskTextOutsideLeft.clickable {
121
+ cursor: pointer;
122
+ fill: ${t.taskTextClickableColor} !important;
123
+ font-weight: bold;
124
+ }
125
+
126
+ .taskTextOutsideRight.clickable {
127
+ cursor: pointer;
128
+ fill: ${t.taskTextClickableColor} !important;
129
+ font-weight: bold;
130
+ }
131
+
132
+
133
+ /* Specific task settings for the sections*/
134
+
135
+ .taskText0,
136
+ .taskText1,
137
+ .taskText2,
138
+ .taskText3 {
139
+ fill: ${t.taskTextColor};
140
+ }
141
+
142
+ .task0,
143
+ .task1,
144
+ .task2,
145
+ .task3 {
146
+ fill: ${t.taskBkgColor};
147
+ stroke: ${t.taskBorderColor};
148
+ }
149
+
150
+ .taskTextOutside0,
151
+ .taskTextOutside2
152
+ {
153
+ fill: ${t.taskTextOutsideColor};
154
+ }
155
+
156
+ .taskTextOutside1,
157
+ .taskTextOutside3 {
158
+ fill: ${t.taskTextOutsideColor};
159
+ }
160
+
161
+
162
+ /* Active task */
163
+
164
+ .active0,
165
+ .active1,
166
+ .active2,
167
+ .active3 {
168
+ fill: ${t.activeTaskBkgColor};
169
+ stroke: ${t.activeTaskBorderColor};
170
+ }
171
+
172
+ .activeText0,
173
+ .activeText1,
174
+ .activeText2,
175
+ .activeText3 {
176
+ fill: ${t.taskTextDarkColor} !important;
177
+ }
178
+
179
+
180
+ /* Completed task */
181
+
182
+ .done0,
183
+ .done1,
184
+ .done2,
185
+ .done3 {
186
+ stroke: ${t.doneTaskBorderColor};
187
+ fill: ${t.doneTaskBkgColor};
188
+ stroke-width: 2;
189
+ }
190
+
191
+ .doneText0,
192
+ .doneText1,
193
+ .doneText2,
194
+ .doneText3 {
195
+ fill: ${t.taskTextDarkColor} !important;
196
+ }
197
+
198
+ /* Done task text displayed outside the bar sits against the diagram background,
199
+ not against the done-task bar, so it must use the outside/contrast color. */
200
+ .doneText0.taskTextOutsideLeft,
201
+ .doneText0.taskTextOutsideRight,
202
+ .doneText1.taskTextOutsideLeft,
203
+ .doneText1.taskTextOutsideRight,
204
+ .doneText2.taskTextOutsideLeft,
205
+ .doneText2.taskTextOutsideRight,
206
+ .doneText3.taskTextOutsideLeft,
207
+ .doneText3.taskTextOutsideRight {
208
+ fill: ${t.taskTextOutsideColor} !important;
209
+ }
210
+
211
+
212
+ /* Tasks on the critical line */
213
+
214
+ .crit0,
215
+ .crit1,
216
+ .crit2,
217
+ .crit3 {
218
+ stroke: ${t.critBorderColor};
219
+ fill: ${t.critBkgColor};
220
+ stroke-width: 2;
221
+ }
222
+
223
+ .activeCrit0,
224
+ .activeCrit1,
225
+ .activeCrit2,
226
+ .activeCrit3 {
227
+ stroke: ${t.critBorderColor};
228
+ fill: ${t.activeTaskBkgColor};
229
+ stroke-width: 2;
230
+ }
231
+
232
+ .doneCrit0,
233
+ .doneCrit1,
234
+ .doneCrit2,
235
+ .doneCrit3 {
236
+ stroke: ${t.critBorderColor};
237
+ fill: ${t.doneTaskBkgColor};
238
+ stroke-width: 2;
239
+ cursor: pointer;
240
+ shape-rendering: crispEdges;
241
+ }
242
+
243
+ .milestone {
244
+ transform: rotate(45deg) scale(0.8,0.8);
245
+ }
246
+
247
+ .milestoneText {
248
+ font-style: italic;
249
+ }
250
+ .doneCritText0,
251
+ .doneCritText1,
252
+ .doneCritText2,
253
+ .doneCritText3 {
254
+ fill: ${t.taskTextDarkColor} !important;
255
+ }
256
+
257
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
258
+ .doneCritText0.taskTextOutsideLeft,
259
+ .doneCritText0.taskTextOutsideRight,
260
+ .doneCritText1.taskTextOutsideLeft,
261
+ .doneCritText1.taskTextOutsideRight,
262
+ .doneCritText2.taskTextOutsideLeft,
263
+ .doneCritText2.taskTextOutsideRight,
264
+ .doneCritText3.taskTextOutsideLeft,
265
+ .doneCritText3.taskTextOutsideRight {
266
+ fill: ${t.taskTextOutsideColor} !important;
267
+ }
268
+
269
+ .vert {
270
+ stroke: ${t.vertLineColor};
271
+ }
272
+
273
+ .vertText {
274
+ font-size: 15px;
275
+ text-anchor: middle;
276
+ fill: ${t.vertLineColor} !important;
277
+ }
278
+
279
+ .activeCritText0,
280
+ .activeCritText1,
281
+ .activeCritText2,
282
+ .activeCritText3 {
283
+ fill: ${t.taskTextDarkColor} !important;
284
+ }
285
+
286
+ .titleText {
287
+ text-anchor: middle;
288
+ font-size: 18px;
289
+ fill: ${t.titleColor||t.textColor};
290
+ font-family: ${t.fontFamily};
291
+ }
292
+ `,"getStyles"),Zi=Xi,Gi={parser:si,db:Ri,renderer:qi,styles:Zi};exports.diagram=Gi;