@codragraph/cli 2.1.4 → 2.1.6
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.
- package/README.md +36 -7
- package/dist/cli/ai-context.js +297 -0
- package/dist/cli/analyze.d.ts +9 -4
- package/dist/cli/analyze.js +37 -13
- package/dist/cli/index.js +40 -14
- package/dist/cli/status.d.ts +1 -1
- package/dist/cli/status.js +8 -0
- package/dist/cli/tool.d.ts +10 -2
- package/dist/cli/tool.js +100 -39
- package/dist/config/ignore-service.js +1 -0
- package/dist/core/adaptive-profile.d.ts +52 -0
- package/dist/core/adaptive-profile.js +180 -0
- package/dist/core/cgdb/cgdb-adapter.d.ts +34 -5
- package/dist/core/cgdb/cgdb-adapter.js +418 -5
- package/dist/core/cgdb/pool-adapter.js +130 -20
- package/dist/core/ingestion/parsing-processor.js +7 -1
- package/dist/core/ingestion/pipeline-phases/parse-impl.js +7 -1
- package/dist/core/ingestion/pipeline-phases/structure.js +19 -3
- package/dist/core/ingestion/pipeline.d.ts +10 -0
- package/dist/core/ingestion/workers/parse-worker.js +1 -1
- package/dist/core/ingestion/workers/worker-pool.d.ts +14 -1
- package/dist/core/ingestion/workers/worker-pool.js +33 -17
- package/dist/core/run-analyze.d.ts +27 -2
- package/dist/core/run-analyze.js +626 -32
- package/dist/core/search/bm25-index.d.ts +16 -8
- package/dist/core/search/bm25-index.js +72 -110
- package/dist/mcp/local/local-backend.d.ts +2 -0
- package/dist/mcp/local/local-backend.js +241 -21
- package/dist/storage/repo-manager.d.ts +29 -0
- package/dist/web/assets/__vite-browser-external-BIHI7g3E.js +1 -0
- package/dist/web/assets/agent-DcdaQnmu.js +1104 -0
- package/dist/web/assets/architectureDiagram-UL44E2DR-DFSpa3Hb.js +36 -0
- package/dist/web/assets/blockDiagram-7IZFK4PR-DlFaxH1b.js +132 -0
- package/dist/web/assets/{c4Diagram-DFAF54RM-C4Hl3J2U.js → c4Diagram-Y2BXMSZH-BjJ_Yrim.js} +1 -1
- package/dist/web/assets/{chunk-7RZVMHOQ-BitYcNVR.js → chunk-3SSMPTDK-KGZSzG3Y.js} +1 -1
- package/dist/web/assets/{chunk-TBF5ZNIQ-DL5stGM1.js → chunk-6764PJDD-p1sGJgVm.js} +1 -1
- package/dist/web/assets/{chunk-KSICW3F5-BYzvDLNI.js → chunk-AZZRMDJM-DIDkQA4V.js} +1 -1
- package/dist/web/assets/{chunk-AEOMTBSW-BgTIXPsY.js → chunk-JQRUD6KW-DAwg-yCU.js} +1 -1
- package/dist/web/assets/chunk-KRXBNO2N-ChVO_XdS.js +1 -0
- package/dist/web/assets/chunk-LCXTWHL2-DGYdb_Eh.js +231 -0
- package/dist/web/assets/{chunk-O5ABG6QK-dHwHzA6n.js → chunk-LII3EMHJ-Bzh9SNgD.js} +1 -1
- package/dist/web/assets/chunk-RG4AUYOV-Bcl7U_IV.js +206 -0
- package/dist/web/assets/{chunk-TU3PZOEN-RLyvLcv-.js → chunk-T5OCTHI4-CZYMg5sc.js} +1 -1
- package/dist/web/assets/chunk-W44A43WB-REOI67PN.js +13 -0
- package/dist/web/assets/{chunk-RWUO3TPN-BgRTY0_k.js → chunk-ZXARS5L4-BfFdV1tf.js} +1 -1
- package/dist/web/assets/classDiagram-KGZ6W3CR-B-qkKMYi.js +1 -0
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-B-qkKMYi.js +1 -0
- package/dist/web/assets/{cose-bilkent-PNC4W37J-DVhePRYg.js → cose-bilkent-UX7MHV2Q-D6vANJGG.js} +1 -1
- package/dist/web/assets/dagre-ND4H6XIP-BiHe5Lal.js +4 -0
- package/dist/web/assets/diagram-3NCE3AQN-CEutBCOW.js +43 -0
- package/dist/web/assets/diagram-GF46GFSD-CZns6HPQ.js +24 -0
- package/dist/web/assets/diagram-HNR7UZ2L-Vz8fE5of.js +3 -0
- package/dist/web/assets/diagram-QXG6HAR7-D60HKZ_y.js +24 -0
- package/dist/web/assets/diagram-WEQXMOUZ-vGAf1p3E.js +10 -0
- package/dist/web/assets/{erDiagram-GCSMX5X6-C3dhDFA8.js → erDiagram-L5TCEMPS-DZaplJA6.js} +5 -5
- package/dist/web/assets/{flowDiagram-OTCZ4VVT-CWSFWmhr.js → flowDiagram-H6V6AXG4-BqUqeAsI.js} +9 -9
- package/dist/web/assets/ganttDiagram-JCBTUEKG-XEB6H-0G.js +292 -0
- package/dist/web/assets/gitGraphDiagram-S2ZK5IYY-7G50u1Cd.js +106 -0
- package/dist/web/assets/index-B5WxtMpv.js +1415 -0
- package/dist/web/assets/infoDiagram-3YFTVSEB-Cut_rzaf.js +2 -0
- package/dist/web/assets/{ishikawaDiagram-YMYX4NHK-DUoJvNP2.js → ishikawaDiagram-BNXS4ZKH-B4DGfGi3.js} +3 -3
- package/dist/web/assets/{journeyDiagram-SO5T7YLQ-RMFPNNqz.js → journeyDiagram-M6C3CM3L-BBFhsL3E.js} +1 -1
- package/dist/web/assets/{kanban-definition-LJHFXRCJ-BzpDs1K9.js → kanban-definition-75IXJCU3-DarGRyn3.js} +4 -4
- package/dist/web/assets/{katex-GD7MH7QM-DBQvrix-.js → katex-K3KEBU37-W5XTYMhr.js} +1 -1
- package/dist/web/assets/mindmap-definition-2TDM6QVE-BgeczIJM.js +96 -0
- package/dist/web/assets/pieDiagram-CU6KROY3-Kkoo-Noq.js +30 -0
- package/dist/web/assets/quadrantDiagram-VICAPDV7-CDQFeRWN.js +7 -0
- package/dist/web/assets/{requirementDiagram-M5DCFWZL-DLHOVTSv.js → requirementDiagram-JXO7QTGE-Cz9-XnkA.js} +2 -2
- package/dist/web/assets/sankeyDiagram-URQDO5SZ-CU26z0n7.js +40 -0
- package/dist/web/assets/sequenceDiagram-VS2MUI6T-OGK1FLOt.js +162 -0
- package/dist/web/assets/stateDiagram-7D4R322I-DJ9brq0U.js +1 -0
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DhJ4Ky-7.js +1 -0
- package/dist/web/assets/{timeline-definition-5SPVSISX-TRSDRgPw.js → timeline-definition-O6YCAMPW-XZvnjqTT.js} +4 -4
- package/dist/web/assets/{vennDiagram-IE5QUKF5-DNy7HRBM.js → vennDiagram-MWXL3ELB-CJUssEjA.js} +6 -6
- package/dist/web/assets/wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js +173 -0
- package/dist/web/assets/wardleyDiagram-CUQ6CDDI-C276iqrN.js +78 -0
- package/dist/web/assets/{xychartDiagram-ZHJ5623Y-Dr9r7a35.js → xychartDiagram-N2JHSOCM-B9-uCZyP.js} +4 -4
- package/dist/web/index.html +1 -1
- package/hooks/claude/codragraph-hook.cjs +15 -122
- package/package.json +1 -1
- package/vendor/node_modules/node-addon-api/node_addon_api_except.stamp +0 -0
- package/dist/web/assets/agent-D5lb0zXz.js +0 -1089
- package/dist/web/assets/architectureDiagram-EMZXCZ2Q-CZtc99v_.js +0 -36
- package/dist/web/assets/blockDiagram-IGV67L2C-BtoUp-6Y.js +0 -132
- package/dist/web/assets/chunk-3GS5O3IE-DkUjU0WD.js +0 -231
- package/dist/web/assets/chunk-3YCYZ6SJ-CQkVgT_z.js +0 -1
- package/dist/web/assets/chunk-H3VCZNTA-Cx5XV_aC.js +0 -13
- package/dist/web/assets/chunk-HN6EAY2L-BBnyTNdB.js +0 -1
- package/dist/web/assets/chunk-PK6DOVAG-CvsEnugt.js +0 -206
- package/dist/web/assets/classDiagram-PPOCWD7C-DTr8QIOf.js +0 -1
- package/dist/web/assets/classDiagram-v2-23LJLIIU-DTr8QIOf.js +0 -1
- package/dist/web/assets/dagre-E77IOHMT-Dzx0A6ZU.js +0 -4
- package/dist/web/assets/diagram-H7BISOXX-CC9pRew1.js +0 -43
- package/dist/web/assets/diagram-JC5VWROH-Bau_i9tf.js +0 -24
- package/dist/web/assets/diagram-LXUTUG65-D9_FM2Gt.js +0 -10
- package/dist/web/assets/diagram-WEHSV5V5-BMlayouL.js +0 -24
- package/dist/web/assets/ganttDiagram-MUNLMDZQ-D3a67Yol.js +0 -292
- package/dist/web/assets/gitGraphDiagram-3HKGZ4G3-7jmry-vM.js +0 -106
- package/dist/web/assets/index-BgeqpYgd.js +0 -1415
- package/dist/web/assets/infoDiagram-MN7RKWGX-G7lhP0Ib.js +0 -2
- package/dist/web/assets/mindmap-definition-2EUWGEK5-Bk0O4roa.js +0 -96
- package/dist/web/assets/pieDiagram-3IATQBI2-DKU7kpgS.js +0 -30
- package/dist/web/assets/quadrantDiagram-E256RVCF-BY0TGWCS.js +0 -7
- package/dist/web/assets/sankeyDiagram-L3NBLAOT-DVMj5rX2.js +0 -10
- package/dist/web/assets/sequenceDiagram-ZOUHS735-CJC73bV-.js +0 -157
- package/dist/web/assets/stateDiagram-MLPALWAM-BCFyESls.js +0 -1
- package/dist/web/assets/stateDiagram-v2-B5LQ5ZB2-DahzzIca.js +0 -1
- package/dist/web/assets/wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js +0 -161
- package/dist/web/assets/wardleyDiagram-XU3VSMPF-BP-r1xzR.js +0 -20
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{c as B}from"./chunk-AEOMTBSW-BgTIXPsY.js";import{d as V}from"./wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js";import{s as u}from"./chunk-TU3PZOEN-RLyvLcv-.js";import{h as v,e as y,a as T,n as $,l as C,s as X,m as i,L as b,p as f,a7 as A,b as L,O as N,y as z,o as D}from"./index-BgeqpYgd.js";import"./chunk-H3VCZNTA-Cx5XV_aC.js";var o=new u(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),I=i(()=>{o.reset(),D()},"clear"),R=i(()=>o.records.stack[0],"getRoot"),W=i(()=>o.records.cnt,"getCount"),F=z.treeView,H=i(()=>b(F,N().treeView),"getConfig"),M=i((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let a={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(a),o.records.stack.push(a)},"addNode"),O={clear:I,addNode:M,getRoot:R,getCount:W,getConfig:H,getAccTitle:X,getAccDescription:C,getDiagramTitle:$,setAccDescription:T,setAccTitle:y,setDiagramTitle:v},x=O,S=i(e=>{B(e,x),e.nodes.map(t=>x.addNode(t.indent?parseInt(t.indent):0,t.name))},"populate"),Y={parse:i(async e=>{let t=await V("treeView",e);f.debug(t),S(t)},"parse")},j=i((e,t,a,s,l)=>{let c=s.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:r}=c.node().getBBox(),d=g+l.paddingY*2,n=r+l.paddingX*2;c.attr("x",e+l.paddingX),c.attr("y",t+d/2),a.BBox={x:e,y:t,width:n,height:d}},"positionLabel"),k=i((e,t,a,s,l,c)=>e.append("line").attr("x1",t).attr("y1",a).attr("x2",s).attr("y2",l).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),q=i((e,t,a)=>{let s=0,l=0,c=i((r,d,n,p)=>{let w=p*(n.rowIndent+n.paddingX);j(w,s,d,r,n);let{height:h,width:m}=d.BBox;k(r,w-n.rowIndent,s+h/2,w,s+h/2,n.lineThickness),l=Math.max(l,w+m),s+=h},"drawNode"),g=i((r,d=0)=>{c(e,r,a,d),r.children.forEach(h=>{g(h,d+1)});let{x:n,y:p,height:w}=r.BBox;if(r.children.length){let{y:h,height:m}=r.children[r.children.length-1].BBox;k(e,n+a.paddingX,p+w,n+a.paddingX,h+m/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(t),{totalHeight:s,totalWidth:l}},"drawTree"),E=i((e,t,a,s)=>{f.debug(`Rendering treeView diagram
|
|
2
|
-
`+e);let l=s.db,c=l.getRoot(),g=l.getConfig(),r=A(t),d=r.append("g");d.attr("class","tree-view");let{totalHeight:n,totalWidth:p}=q(d,c,g);r.attr("viewBox",`-${g.lineThickness/2} 0 ${p} ${n}`),L(r,n,p,g.useMaxWidth)},"draw"),J={draw:E},P=J,U={labelFontSize:"16px",labelColor:"black",lineColor:"black"},_=i(({treeView:e})=>{let{labelFontSize:t,labelColor:a,lineColor:s}=b(U,e);return`
|
|
3
|
-
.treeView-node-label {
|
|
4
|
-
font-size: ${t};
|
|
5
|
-
fill: ${a};
|
|
6
|
-
}
|
|
7
|
-
.treeView-node-line {
|
|
8
|
-
stroke: ${s};
|
|
9
|
-
}
|
|
10
|
-
`},"styles"),G=_,ae={db:x,renderer:P,parser:Y,styles:G};export{ae as diagram};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{c as se}from"./chunk-AEOMTBSW-BgTIXPsY.js";import{d as re}from"./wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js";import{m,ac as ie,O as j,L as I,a7 as ne,b as oe,aM as F,p as O,aa as E,aN as ce,aO as de,aP as $,i as H,e as pe,s as he,h as me,n as ye,l as fe,a as ue,y as Se,aQ as ge,o as xe}from"./index-BgeqpYgd.js";import{y as be}from"./chunk-RWUO3TPN-BgRTY0_k.js";import"./chunk-H3VCZNTA-Cx5XV_aC.js";var w,Y=(w=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=pe,this.getAccTitle=he,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=fe,this.setAccDescription=ue}getNodes(){return this.nodes}getConfig(){let r=Se,i=j();return I({...r.treemap,...i.treemap??{}})}addNode(r,i){this.nodes.push(r),this.levels.set(r,i),i===0&&(this.outerNodes.push(r),this.root??(this.root=r))}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,i){let l=this.classes.get(r)??{id:r,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{ge(s)&&(l!=null&&l.textStyles?l.textStyles.push(s):l.textStyles=[s]),l!=null&&l.styles?l.styles.push(s):l.styles=[s]}),this.classes.set(r,l)}getClasses(){return this.classes}getStylesForClass(r){var i;return((i=this.classes.get(r))==null?void 0:i.styles)??[]}clear(){xe(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(w,"TreeMapDB"),w);function _(d){if(!d.length)return[];let r=[],i=[];return d.forEach(l=>{let n={name:l.name,children:l.type==="Leaf"?void 0:[]};for(n.classSelector=l==null?void 0:l.classSelector,l!=null&&l.cssCompiledStyles&&(n.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(n.value=l.value);i.length>0&&i[i.length-1].level>=l.level;)i.pop();if(i.length===0)r.push(n);else{let s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}l.type!=="Leaf"&&i.push({node:n,level:l.level})}),r}m(_,"buildHierarchy");var Ce=m((d,r)=>{se(d,r);let i=[];for(let s of d.TreemapRows??[])s.$type==="ClassDefStatement"&&r.addClass(s.className??"",s.styleText??"");for(let s of d.TreemapRows??[]){let p=s.item;if(!p)continue;let h=s.indent?parseInt(s.indent):0,N=$e(p),a=p.classSelector?r.getStylesForClass(p.classSelector):[],L=a.length>0?a:void 0,b={level:h,name:N,type:p.$type,value:p.value,classSelector:p.classSelector,cssCompiledStyles:L};i.push(b)}let l=_(i),n=m((s,p)=>{for(let h of s)r.addNode(h,p),h.children&&h.children.length>0&&n(h.children,p+1)},"addNodesRecursively");n(l,0)},"populate"),$e=m(d=>d.name?String(d.name):"","getItemName"),K={parser:{yy:void 0},parse:m(async d=>{var r;try{let i=await re("treemap",d);O.debug("Treemap AST:",i);let l=(r=K.parser)==null?void 0:r.yy;if(!(l instanceof Y))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ce(i,l)}catch(i){throw O.error("Error parsing treemap:",i),i}},"parse")},ve=10,v=10,P=25,we=m((d,r,i,l)=>{let n=l.db,s=n.getConfig(),p=s.padding??ve,h=n.getDiagramTitle(),N=n.getRoot(),{themeVariables:a}=j();if(!N)return;let L=h?30:0,b=ne(r),G=s.nodeWidth?s.nodeWidth*v:960,U=s.nodeHeight?s.nodeHeight*v:500,B=G,q=U+L;b.attr("viewBox",`0 0 ${B} ${q}`),oe(b,q,B,s.useMaxWidth);let C;try{let e=s.valueFormat||",";if(e==="$0,0")C=m(t=>"$"+F(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),c=t?t[0]:"";C=m(y=>"$"+F(","+c)(y),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);C=m(c=>"$"+F(t||"")(c),"valueFormat")}else C=F(e)}catch(e){O.error("Error creating format function:",e),C=F(",")}let T=E().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),Z=E().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),A=E().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&b.append("text").attr("x",B/2).attr("y",L/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);let J=b.append("g").attr("transform",`translate(0, ${L})`).attr("class","treemapContainer"),ee=ce(N).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),Q=de().size([G,U]).paddingTop(e=>e.children&&e.children.length>0?P+v:0).paddingInner(p).paddingLeft(e=>e.children&&e.children.length>0?v:0).paddingRight(e=>e.children&&e.children.length>0?v:0).paddingBottom(e=>e.children&&e.children.length>0?v:0).round(!0)(ee),te=Q.descendants().filter(e=>e.children&&e.children.length>0),M=J.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);M.append("rect").attr("width",e=>e.x1-e.x0).attr("height",P).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),M.append("clipPath").attr("id",(e,t)=>`clip-section-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",P),M.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>T(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>Z(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";let t=$({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),M.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",P/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";let t="dominant-baseline: middle; font-size: 12px; fill:"+A(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",c=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+c.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;let t=H(this),c=e.data.name;t.text(c);let y=e.x1-e.x0,S=6,g;s.showValues!==!1&&e.value?g=y-10-30-10-S:g=y-S-6;let u=Math.max(15,g),f=t.node();if(f.getComputedTextLength()>u){let o=c;for(;o.length>0;){if(o=c.substring(0,o.length-1),o.length===0){t.text("..."),f.getComputedTextLength()>u&&t.text("");break}if(t.text(o+"..."),f.getComputedTextLength()<=u)break}}}),s.showValues!==!1&&M.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",P/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?C(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";let t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+A(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",c=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+c.labelStyles.replace("color:","fill:")});let ae=Q.leaves(),D=J.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr("style",e=>$({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr("stroke-width",3),D.append("clipPath").attr("id",(e,t)=>`clip-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),D.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{let t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+A(e.data.name)+";",c=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+c.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){let t=H(this),c=e.x1-e.x0,y=e.y1-e.y0,S=t.node(),g=4,u=c-2*g,f=y-2*g;if(u<10||f<10){t.style("display","none");return}let o=parseInt(t.style("font-size"),10),x=8,k=28,W=.6,z=6,V=2;for(;S.getComputedTextLength()>u&&o>x;)o--,t.style("font-size",`${o}px`);let R=Math.max(z,Math.min(k,Math.round(o*W))),X=o+V+R;for(;X>f&&o>x&&(o--,R=Math.max(z,Math.min(k,Math.round(o*W))),!(R<z&&o===x));)t.style("font-size",`${o}px`),X=o+V+R;t.style("font-size",`${o}px`),(S.getComputedTextLength()>u||o<x||f<o)&&t.style("display","none")}),s.showValues!==!1&&D.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>{let t="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+A(e.data.name)+";",c=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+c.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.value?C(e.value):"").each(function(e){let t=H(this),c=this.parentNode;if(!c){t.style("display","none");return}let y=H(c).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){t.style("display","none");return}let S=parseFloat(y.style("font-size")),g=28,u=.6,f=6,o=2,x=Math.max(f,Math.min(g,Math.round(S*u)));t.style("font-size",`${x}px`);let k=(e.y1-e.y0)/2+S/2+o;t.attr("y",k);let W=e.x1-e.x0,z=e.y1-e.y0-4,V=W-8;t.node().getComputedTextLength()>V||k+x>z||x<f?t.style("display","none"):t.style("display",null)});let le=s.diagramPadding??8;be(b,le,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),Le=m(function(d,r){return r.db.getClasses()},"getClasses"),Te={draw:we,getClasses:Le},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:d}={})=>{let r=ie(),i=j(),l=I(r,i.themeVariables),n=I(Me,d),s=n.titleColor??l.titleColor,p=n.labelColor??l.textColor,h=n.valueColor??l.textColor;return`
|
|
2
|
-
.treemapNode.section {
|
|
3
|
-
stroke: ${n.sectionStrokeColor};
|
|
4
|
-
stroke-width: ${n.sectionStrokeWidth};
|
|
5
|
-
fill: ${n.sectionFillColor};
|
|
6
|
-
}
|
|
7
|
-
.treemapNode.leaf {
|
|
8
|
-
stroke: ${n.leafStrokeColor};
|
|
9
|
-
stroke-width: ${n.leafStrokeWidth};
|
|
10
|
-
fill: ${n.leafFillColor};
|
|
11
|
-
}
|
|
12
|
-
.treemapLabel {
|
|
13
|
-
fill: ${p};
|
|
14
|
-
font-size: ${n.labelFontSize};
|
|
15
|
-
}
|
|
16
|
-
.treemapValue {
|
|
17
|
-
fill: ${h};
|
|
18
|
-
font-size: ${n.valueFontSize};
|
|
19
|
-
}
|
|
20
|
-
.treemapTitle {
|
|
21
|
-
fill: ${s};
|
|
22
|
-
font-size: ${n.titleFontSize};
|
|
23
|
-
}
|
|
24
|
-
`},"getStyles"),ze=ke,We={parser:K,get db(){return new Y},renderer:Te,styles:ze};export{We as diagram};
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import{l as de,a as he,n as fe,h as ke,s as ye,e as me,m as c,q as ut,i as $t,D as pe,V as ge,E as xe,b as be,Z as Te,Y as ve,p as it,F as $e,H as jt,G as Ut,$ as we,X as _e,I as De,K as Se,N as Ce,Q as Me,T as Ye,_ as qt,a0 as Qt,a1 as Xt,a2 as Jt,a3 as Zt,a4 as Ee,C as Oe,o as Ae,r as st,a5 as ie,f as Ie,U as Le,a6 as Ct}from"./index-BgeqpYgd.js";var We=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=i()})(t,function(){var r="day";return function(i,a,h){var x=c(function(M){return M.add(4-M.isoWeekday(),r)},"a"),C=a.prototype;C.isoWeekYear=function(){return x(this).year()},C.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),r);var w,A,W,N,z=x(this),D=(w=this.isoWeekYear(),A=this.$u,W=(A?h.utc:h)().year(w).startOf("year"),N=4-W.isoWeekday(),W.isoWeekday()>4&&(N+=7),W.add(N,r));return z.diff(D,"week")+1},C.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var L=C.startOf;C.startOf=function(M,w){var A=this.$utils(),W=!!A.u(w)||w;return A.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):L.bind(this)(M,w)}}})}),Fe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=i()})(t,function(){var r={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,h=/\d\d/,x=/\d\d?/,C=/\d*[^-_:/,()\s\d]+/,L={},M=c(function($){return($=+$)+($>68?1900:2e3)},"a"),w=c(function($){return function(S){this[$]=+S}},"f"),A=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var I=S.match(/([+-]|\d\d)/g),E=60*I[1]+(+I[2]||0);return E===0?0:I[0]==="+"?-E:E}($)}],W=c(function($){var S=L[$];return S&&(S.indexOf?S:S.s.concat(S.f))},"u"),N=c(function($,S){var I,E=L.meridiem;if(E){for(var R=1;R<=24;R+=1)if($.indexOf(E(R,0,S))>-1){I=R>12;break}}else I=$===(S?"pm":"PM");return I},"d"),z={A:[C,function($){this.afternoon=N($,!1)}],a:[C,function($){this.afternoon=N($,!0)}],Q:[a,function($){this.month=3*($-1)+1}],S:[a,function($){this.milliseconds=100*+$}],SS:[h,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[x,w("seconds")],ss:[x,w("seconds")],m:[x,w("minutes")],mm:[x,w("minutes")],H:[x,w("hours")],h:[x,w("hours")],HH:[x,w("hours")],hh:[x,w("hours")],D:[x,w("day")],DD:[h,w("day")],Do:[C,function($){var S=L.ordinal,I=$.match(/\d+/);if(this.day=I[0],S)for(var E=1;E<=31;E+=1)S(E).replace(/\[|\]/g,"")===$&&(this.day=E)}],w:[x,w("week")],ww:[h,w("week")],M:[x,w("month")],MM:[h,w("month")],MMM:[C,function($){var S=W("months"),I=(W("monthsShort")||S.map(function(E){return E.slice(0,3)})).indexOf($)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[C,function($){var S=W("months").indexOf($)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,w("year")],YY:[h,function($){this.year=M($)}],YYYY:[/\d{4}/,w("year")],Z:A,ZZ:A};function D($){var S,I;S=$,I=L&&L.formats;for(var E=($=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,p,m){var y=m&&m.toUpperCase();return p||I[m]||r[m]||I[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,d,u){return d||u.slice(1)})})).match(i),R=E.length,V=0;V<R;V+=1){var Y=E[V],b=z[Y],k=b&&b[0],f=b&&b[1];E[V]=f?{regex:k,parser:f}:Y.replace(/^\[|\]$/g,"")}return function(g){for(var p={},m=0,y=0;m<R;m+=1){var l=E[m];if(typeof l=="string")y+=l.length;else{var d=l.regex,u=l.parser,T=g.slice(y),e=d.exec(T)[0];u.call(p,e),g=g.replace(e,"")}}return function(n){var o=n.afternoon;if(o!==void 0){var v=n.hours;o?v<12&&(n.hours+=12):v===12&&(n.hours=0),delete n.afternoon}}(p),p}}return c(D,"l"),function($,S,I){I.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(M=$.parseTwoDigitYear);var E=S.prototype,R=E.parse;E.parse=function(V){var Y=V.date,b=V.utc,k=V.args;this.$u=b;var f=k[1];if(typeof f=="string"){var g=k[2]===!0,p=k[3]===!0,m=g||p,y=k[2];p&&(y=k[2]),L=this.$locale(),!g&&y&&(L=I.Ls[y]),this.$d=function(T,e,n,o){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*T);var v=D(e)(T),O=v.year,_=v.month,F=v.day,P=v.hours,ft=v.minutes,H=v.seconds,J=v.milliseconds,nt=v.zone,at=v.week,kt=new Date,yt=F||(O||_?1:kt.getDate()),ot=O||kt.getFullYear(),B=0;O&&!_||(B=_>0?_-1:kt.getMonth());var tt,Q=P||0,j=ft||0,bt=H||0,et=J||0;return nt?new Date(Date.UTC(ot,B,yt,Q,j,bt,et+60*nt.offset*1e3)):n?new Date(Date.UTC(ot,B,yt,Q,j,bt,et)):(tt=new Date(ot,B,yt,Q,j,bt,et),at&&(tt=o(tt).week(at).toDate()),tt)}catch{return new Date("")}}(Y,f,b,I),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),m&&Y!=this.format(f)&&(this.$d=new Date("")),L={}}else if(f instanceof Array)for(var l=f.length,d=1;d<=l;d+=1){k[1]=f[d-1];var u=I.apply(this,k);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}d===l&&(this.$d=new Date(""))}else R.call(this,V)}}})}),Pe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=i()})(t,function(){return function(r,i){var a=i.prototype,h=a.format;a.format=function(x){var C=this,L=this.$locale();if(!this.isValid())return h.bind(this)(x);var M=this.$utils(),w=(x||"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(A){switch(A){case"Q":return Math.ceil((C.$M+1)/3);case"Do":return L.ordinal(C.$D);case"gggg":return C.weekYear();case"GGGG":return C.isoWeekYear();case"wo":return L.ordinal(C.week(),"W");case"w":case"ww":return M.s(C.week(),A==="w"?1:2,"0");case"W":case"WW":return M.s(C.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return M.s(String(C.$H===0?24:C.$H),A==="k"?1:2,"0");case"X":return Math.floor(C.$d.getTime()/1e3);case"x":return C.$d.getTime();case"z":return"["+C.offsetName()+"]";case"zzz":return"["+C.offsetName("long")+"]";default:return A}});return h.bind(this)(w)}}})}),ze=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=i()})(t,function(){var r,i,a=1e3,h=6e4,x=36e5,C=864e5,L=/\[([^\]]+)]|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,M=31536e6,w=2628e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W={years:M,months:w,days:C,hours:x,minutes:h,seconds:a,milliseconds:1,weeks:6048e5},N=c(function(Y){return Y instanceof R},"c"),z=c(function(Y,b,k){return new R(Y,k,b.$l)},"f"),D=c(function(Y){return i.p(Y)+"s"},"m"),$=c(function(Y){return Y<0},"l"),S=c(function(Y){return $(Y)?Math.ceil(Y):Math.floor(Y)},"$"),I=c(function(Y){return Math.abs(Y)},"y"),E=c(function(Y,b){return Y?$(Y)?{negative:!0,format:""+I(Y)+b}:{negative:!1,format:""+Y+b}:{negative:!1,format:""}},"v"),R=function(){function Y(k,f,g){var p=this;if(this.$d={},this.$l=g,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),f)return z(k*W[D(f)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(l){p.$d[D(l)]=k[l]}),this.calMilliseconds(),this;if(typeof k=="string"){var m=k.match(A);if(m){var y=m.slice(2).map(function(l){return l!=null?Number(l):0});return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}c(Y,"l");var b=Y.prototype;return b.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(f,g){return f+(k.$d[g]||0)*W[g]},0)},b.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=S(k/M),k%=M,this.$d.months=S(k/w),k%=w,this.$d.days=S(k/C),k%=C,this.$d.hours=S(k/x),k%=x,this.$d.minutes=S(k/h),k%=h,this.$d.seconds=S(k/a),k%=a,this.$d.milliseconds=k},b.toISOString=function(){var k=E(this.$d.years,"Y"),f=E(this.$d.months,"M"),g=+this.$d.days||0;this.$d.weeks&&(g+=7*this.$d.weeks);var p=E(g,"D"),m=E(this.$d.hours,"H"),y=E(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=E(l,"S"),u=k.negative||f.negative||p.negative||m.negative||y.negative||d.negative,T=m.format||y.format||d.format?"T":"",e=(u?"-":"")+"P"+k.format+f.format+p.format+T+m.format+y.format+d.format;return e==="P"||e==="-P"?"P0D":e},b.toJSON=function(){return this.toISOString()},b.format=function(k){var f=k||"YYYY-MM-DDTHH:mm:ss",g={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return f.replace(L,function(p,m){return m||String(g[p])})},b.as=function(k){return this.$ms/W[D(k)]},b.get=function(k){var f=this.$ms,g=D(k);return g==="milliseconds"?f%=1e3:f=g==="weeks"?S(f/W[g]):this.$d[g],f||0},b.add=function(k,f,g){var p;return p=f?k*W[D(f)]:N(k)?k.$ms:z(k,this).$ms,z(this.$ms+p*(g?-1:1),this)},b.subtract=function(k,f){return this.add(k,f,!0)},b.locale=function(k){var f=this.clone();return f.$l=k,f},b.clone=function(){return z(this.$ms,this)},b.humanize=function(k){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},Y}(),V=c(function(Y,b,k){return Y.add(b.years()*k,"y").add(b.months()*k,"M").add(b.days()*k,"d").add(b.hours()*k,"h").add(b.minutes()*k,"m").add(b.seconds()*k,"s").add(b.milliseconds()*k,"ms")},"p");return function(Y,b,k){r=k,i=k().$utils(),k.duration=function(p,m){var y=k.locale();return z(p,{$l:y},m)},k.isDuration=N;var f=b.prototype.add,g=b.prototype.subtract;b.prototype.add=function(p,m){return N(p)?V(this,p,1):f.bind(this)(p,m)},b.prototype.subtract=function(p,m){return N(p)?V(this,p,-1):g.bind(this)(p,m)}}})}),Et=function(){var t=c(function(y,l,d,u){for(d=d||{},u=y.length;u--;d[y[u]]=l);return d},"o"),s=[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],r=[1,26],i=[1,27],a=[1,28],h=[1,29],x=[1,30],C=[1,31],L=[1,32],M=[1,33],w=[1,34],A=[1,9],W=[1,10],N=[1,11],z=[1,12],D=[1,13],$=[1,14],S=[1,15],I=[1,16],E=[1,19],R=[1,20],V=[1,21],Y=[1,22],b=[1,23],k=[1,25],f=[1,35],g={trace:c(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(function(y,l,d,u,T,e,n){var o=e.length-1;switch(T){case 1:return e[o-1];case 2:this.$=[];break;case 3:e[o-1].push(e[o]),this.$=e[o-1];break;case 4:case 5:this.$=e[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=e[o].substr(18);break;case 19:u.TopAxis(),this.$=e[o].substr(8);break;case 20:u.setAxisFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 21:u.setTickInterval(e[o].substr(13)),this.$=e[o].substr(13);break;case 22:u.setExcludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 23:u.setIncludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 24:u.setTodayMarker(e[o].substr(12)),this.$=e[o].substr(12);break;case 27:u.setDiagramTitle(e[o].substr(6)),this.$=e[o].substr(6);break;case 28:this.$=e[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=e[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(e[o].substr(8)),this.$=e[o].substr(8);break;case 33:u.addTask(e[o-1],e[o]),this.$="task";break;case 34:this.$=e[o-1],u.setClickEvent(e[o-1],e[o],null);break;case 35:this.$=e[o-2],u.setClickEvent(e[o-2],e[o-1],e[o]);break;case 36:this.$=e[o-2],u.setClickEvent(e[o-2],e[o-1],null),u.setLink(e[o-2],e[o]);break;case 37:this.$=e[o-3],u.setClickEvent(e[o-3],e[o-2],e[o-1]),u.setLink(e[o-3],e[o]);break;case 38:this.$=e[o-2],u.setClickEvent(e[o-2],e[o],null),u.setLink(e[o-2],e[o-1]);break;case 39:this.$=e[o-3],u.setClickEvent(e[o-3],e[o-1],e[o]),u.setLink(e[o-3],e[o-2]);break;case 40:this.$=e[o-1],u.setLink(e[o-1],e[o]);break;case 41:case 47:this.$=e[o-1]+" "+e[o];break;case 42:case 43:case 45:this.$=e[o-2]+" "+e[o-1]+" "+e[o];break;case 44:case 46:this.$=e[o-3]+" "+e[o-2]+" "+e[o-1]+" "+e[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:h,16:x,17:C,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:D,27:$,28:S,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:h,16:x,17:C,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:D,27:$,28:S,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:c(function(y,l){if(l.recoverable)this.trace(y);else{var d=new Error(y);throw d.hash=l,d}},"parseError"),parse:c(function(y){var l=this,d=[0],u=[],T=[null],e=[],n=this.table,o="",v=0,O=0,_=0,F=2,P=1,ft=e.slice.call(arguments,1),H=Object.create(this.lexer),J={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(J.yy[nt]=this.yy[nt]);H.setInput(y,J.yy),J.yy.lexer=H,J.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var at=H.yylloc;e.push(at);var kt=H.options&&H.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(U){d.length=d.length-2*U,T.length=T.length-U,e.length=e.length-U}c(yt,"popStack");function ot(){var U;return U=u.pop()||H.lex()||P,typeof U!="number"&&(U instanceof Array&&(u=U,U=u.pop()),U=l.symbols_[U]||U),U}c(ot,"lex");for(var B,tt,Q,j,bt,et,lt={},Tt,Z,Vt,vt;;){if(Q=d[d.length-1],this.defaultActions[Q]?j=this.defaultActions[Q]:((B===null||typeof B>"u")&&(B=ot()),j=n[Q]&&n[Q][B]),typeof j>"u"||!j.length||!j[0]){var Mt="";vt=[];for(Tt in n[Q])this.terminals_[Tt]&&Tt>F&&vt.push("'"+this.terminals_[Tt]+"'");H.showPosition?Mt="Parse error on line "+(v+1)+`:
|
|
2
|
-
`+H.showPosition()+`
|
|
3
|
-
Expecting `+vt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Mt="Parse error on line "+(v+1)+": Unexpected "+(B==P?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Mt,{text:H.match,token:this.terminals_[B]||B,line:H.yylineno,loc:at,expected:vt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+B);switch(j[0]){case 1:d.push(B),T.push(H.yytext),e.push(H.yylloc),d.push(j[1]),B=null,tt?(B=tt,tt=null):(O=H.yyleng,o=H.yytext,v=H.yylineno,at=H.yylloc,_>0);break;case 2:if(Z=this.productions_[j[1]][1],lt.$=T[T.length-Z],lt._$={first_line:e[e.length-(Z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Z||1)].first_column,last_column:e[e.length-1].last_column},kt&&(lt._$.range=[e[e.length-(Z||1)].range[0],e[e.length-1].range[1]]),et=this.performAction.apply(lt,[o,O,v,J.yy,j[1],T,e].concat(ft)),typeof et<"u")return et;Z&&(d=d.slice(0,-1*Z*2),T=T.slice(0,-1*Z),e=e.slice(0,-1*Z)),d.push(this.productions_[j[1]][0]),T.push(lt.$),e.push(lt._$),Vt=n[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},p=function(){var y={EOF:1,parseError:c(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:c(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(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(function(l){var d=l.length,u=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 T=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),u.length-1&&(this.yylineno-=u.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===T.length?this.yylloc.first_column:0)+T[T.length-u.length].length-u[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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(function(l){this.unput(this.match.slice(l))},"less"),pastInput:c(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(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(function(){var l=this.pastInput(),d=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
|
-
`+d+"^"},"showPosition"),test_match:c(function(l,d){var u,T,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),T=l[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.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],u=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var n in e)this[n]=e[n];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,d,u,T;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),n=0;n<e.length;n++)if(u=this._input.match(this.rules[e[n]]),u&&(!d||u[0].length>d[0].length)){if(d=u,T=n,this.options.backtrack_lexer){if(l=this.test_match(u,e[n]),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,e[T]),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(function(){var l=this.next();return l||this.lex()},"lex"),begin:c(function(l){this.conditionStack.push(l)},"begin"),popState:c(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:c(function(l){this.begin(l)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c(function(l,d,u,T){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return y}();g.lexer=p;function m(){this.yy={}}return c(m,"Parser"),m.prototype=g,g.Parser=m,new m}();Et.parser=Et;var He=Et,Ne=st(Ie()),q=st(ie()),Be=st(We()),Re=st(Fe()),Ge=st(Pe());q.default.extend(Be.default);q.default.extend(Re.default);q.default.extend(Ge.default);var Kt={friday:5,saturday:6},X="",Lt="",Wt,Ft="",pt=[],gt=[],Pt=new Map,zt=[],Dt=[],ht="",Ht="",se=["active","done","crit","milestone","vert"],Nt=[],ct="",xt=!1,Bt=!1,Rt="sunday",St="saturday",Ot=0,Ve=c(function(){zt=[],Dt=[],ht="",Nt=[],wt=0,It=void 0,_t=void 0,G=[],X="",Lt="",Ht="",Wt=void 0,Ft="",pt=[],gt=[],xt=!1,Bt=!1,Ot=0,Pt=new Map,ct="",Ae(),Rt="sunday",St="saturday"},"clear"),je=c(function(t){ct=t},"setDiagramId"),Ue=c(function(t){Lt=t},"setAxisFormat"),qe=c(function(){return Lt},"getAxisFormat"),Qe=c(function(t){Wt=t},"setTickInterval"),Xe=c(function(){return Wt},"getTickInterval"),Je=c(function(t){Ft=t},"setTodayMarker"),Ze=c(function(){return Ft},"getTodayMarker"),Ke=c(function(t){X=t},"setDateFormat"),ti=c(function(){xt=!0},"enableInclusiveEndDates"),ei=c(function(){return xt},"endDatesAreInclusive"),ii=c(function(){Bt=!0},"enableTopAxis"),si=c(function(){return Bt},"topAxisEnabled"),ri=c(function(t){Ht=t},"setDisplayMode"),ni=c(function(){return Ht},"getDisplayMode"),ai=c(function(){return X},"getDateFormat"),oi=c(function(t){pt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),li=c(function(){return pt},"getIncludes"),ci=c(function(t){gt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ui=c(function(){return gt},"getExcludes"),di=c(function(){return Pt},"getLinks"),hi=c(function(t){ht=t,zt.push(t)},"addSection"),fi=c(function(){return zt},"getSections"),ki=c(function(){let t=te(),s=10,r=0;for(;!t&&r<s;)t=te(),r++;return Dt=G,Dt},"getTasks"),re=c(function(t,s,r,i){let a=t.format(s.trim()),h=t.format("YYYY-MM-DD");return i.includes(a)||i.includes(h)?!1:r.includes("weekends")&&(t.isoWeekday()===Kt[St]||t.isoWeekday()===Kt[St]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(a)||r.includes(h)},"isInvalidDate"),yi=c(function(t){Rt=t},"setWeekday"),mi=c(function(){return Rt},"getWeekday"),pi=c(function(t){St=t},"setWeekend"),ne=c(function(t,s,r,i){if(!r.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=(0,q.default)(t.startTime):a=(0,q.default)(t.startTime,s,!0),a=a.add(1,"d");let h;t.endTime instanceof Date?h=(0,q.default)(t.endTime):h=(0,q.default)(t.endTime,s,!0);let[x,C]=gi(a,h,s,r,i);t.endTime=x.toDate(),t.renderEndTime=C},"checkTaskDates"),gi=c(function(t,s,r,i,a){let h=!1,x=null;for(;t<=s;)h||(x=s.toDate()),h=re(t,r,i,a),h&&(s=s.add(1,"d")),t=t.add(1,"d");return[s,x]},"fixTaskDates"),At=c(function(t,s,r){if(r=r.trim(),c(h=>{let x=h.trim();return x==="x"||x==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(r))return new Date(Number(r));let i=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(i!==null){let h=null;for(let C of i.groups.ids.split(" ")){let L=rt(C);L!==void 0&&(!h||L.endTime>h.endTime)&&(h=L)}if(h)return h.endTime;let x=new Date;return x.setHours(0,0,0,0),x}let a=(0,q.default)(r,s.trim(),!0);if(a.isValid())return a.toDate();{it.debug("Invalid date:"+r),it.debug("With date format:"+s.trim());let h=new Date(r);if(h===void 0||isNaN(h.getTime())||h.getFullYear()<-1e4||h.getFullYear()>1e4)throw new Error("Invalid date:"+r);return h}},"getStartDate"),ae=c(function(t){let s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),oe=c(function(t,s,r,i=!1){r=r.trim();let a=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(a!==null){let M=null;for(let A of a.groups.ids.split(" ")){let W=rt(A);W!==void 0&&(!M||W.startTime<M.startTime)&&(M=W)}if(M)return M.startTime;let w=new Date;return w.setHours(0,0,0,0),w}let h=(0,q.default)(r,s.trim(),!0);if(h.isValid())return i&&(h=h.add(1,"d")),h.toDate();let x=(0,q.default)(t),[C,L]=ae(r);if(!Number.isNaN(C)){let M=x.add(C,L);M.isValid()&&(x=M)}return x.toDate()},"getEndDate"),wt=0,dt=c(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),xi=c(function(t,s){let r;s.substr(0,1)===":"?r=s.substr(1,s.length):r=s;let i=r.split(","),a={};Gt(i,a,se);for(let x=0;x<i.length;x++)i[x]=i[x].trim();let h="";switch(i.length){case 1:a.id=dt(),a.startTime=t.endTime,h=i[0];break;case 2:a.id=dt(),a.startTime=At(void 0,X,i[0]),h=i[1];break;case 3:a.id=dt(i[0]),a.startTime=At(void 0,X,i[1]),h=i[2];break}return h&&(a.endTime=oe(a.startTime,X,h,xt),a.manualEndTime=(0,q.default)(h,"YYYY-MM-DD",!0).isValid(),ne(a,X,gt,pt)),a},"compileData"),bi=c(function(t,s){let r;s.substr(0,1)===":"?r=s.substr(1,s.length):r=s;let i=r.split(","),a={};Gt(i,a,se);for(let h=0;h<i.length;h++)i[h]=i[h].trim();switch(i.length){case 1:a.id=dt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:i[0]};break;case 2:a.id=dt(),a.startTime={type:"getStartDate",startData:i[0]},a.endTime={data:i[1]};break;case 3:a.id=dt(i[0]),a.startTime={type:"getStartDate",startData:i[1]},a.endTime={data:i[2]};break}return a},"parseData"),It,_t,G=[],le={},Ti=c(function(t,s){let r={section:ht,type:ht,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},i=bi(_t,s);r.raw.startTime=i.startTime,r.raw.endTime=i.endTime,r.id=i.id,r.prevTaskId=_t,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,r.order=Ot,Ot++;let a=G.push(r);_t=r.id,le[r.id]=a-1},"addTask"),rt=c(function(t){let s=le[t];return G[s]},"findTaskById"),vi=c(function(t,s){let r={section:ht,type:ht,description:t,task:t,classes:[]},i=xi(It,s);r.startTime=i.startTime,r.endTime=i.endTime,r.id=i.id,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,It=r,Dt.push(r)},"addTaskOrg"),te=c(function(){let t=c(function(r){let i=G[r],a="";switch(G[r].raw.startTime.type){case"prevTaskEnd":{let h=rt(i.prevTaskId);i.startTime=h.endTime;break}case"getStartDate":a=At(void 0,X,G[r].raw.startTime.startData),a&&(G[r].startTime=a);break}return G[r].startTime&&(G[r].endTime=oe(G[r].startTime,X,G[r].raw.endTime.data,xt),G[r].endTime&&(G[r].processed=!0,G[r].manualEndTime=(0,q.default)(G[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ne(G[r],X,gt,pt))),G[r].processed},"compileTask"),s=!0;for(let[r,i]of G.entries())t(r),s=s&&i.processed;return s},"compileTasks"),$i=c(function(t,s){let r=s;ut().securityLevel!=="loose"&&(r=(0,Ne.sanitizeUrl)(s)),t.split(",").forEach(function(i){rt(i)!==void 0&&(ue(i,()=>{window.open(r,"_self")}),Pt.set(i,r))}),ce(t,"clickable")},"setLink"),ce=c(function(t,s){t.split(",").forEach(function(r){let i=rt(r);i!==void 0&&i.classes.push(s)})},"setClass"),wi=c(function(t,s,r){if(ut().securityLevel!=="loose"||s===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<i.length;a++){let h=i[a].trim();h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),i[a]=h}}i.length===0&&i.push(t),rt(t)!==void 0&&ue(t,()=>{Le.runFunc(s,...i)})},"setClickFun"),ue=c(function(t,s){Nt.push(function(){let r=ct?`${ct}-${t}`:t,i=document.querySelector(`[id="${r}"]`);i!==null&&i.addEventListener("click",function(){s()})},function(){let r=ct?`${ct}-${t}`:t,i=document.querySelector(`[id="${r}-text"]`);i!==null&&i.addEventListener("click",function(){s()})})},"pushFun"),_i=c(function(t,s,r){t.split(",").forEach(function(i){wi(i,s,r)}),ce(t,"clickable")},"setClickEvent"),Di=c(function(t){Nt.forEach(function(s){s(t)})},"bindFunctions"),Si={getConfig:c(()=>ut().gantt,"getConfig"),clear:Ve,setDateFormat:Ke,getDateFormat:ai,enableInclusiveEndDates:ti,endDatesAreInclusive:ei,enableTopAxis:ii,topAxisEnabled:si,setAxisFormat:Ue,getAxisFormat:qe,setTickInterval:Qe,getTickInterval:Xe,setTodayMarker:Je,getTodayMarker:Ze,setAccTitle:me,getAccTitle:ye,setDiagramTitle:ke,getDiagramTitle:fe,setDiagramId:je,setDisplayMode:ri,getDisplayMode:ni,setAccDescription:he,getAccDescription:de,addSection:hi,getSections:fi,getTasks:ki,addTask:Ti,findTaskById:rt,addTaskOrg:vi,setIncludes:oi,getIncludes:li,setExcludes:ci,getExcludes:ui,setClickEvent:_i,setLink:$i,getLinks:di,bindFunctions:Di,parseDuration:ae,isInvalidDate:re,setWeekday:yi,getWeekday:mi,setWeekend:pi};function Gt(t,s,r){let i=!0;for(;i;)i=!1,r.forEach(function(a){let h="^\\s*"+a+"\\s*$",x=new RegExp(h);t[0].match(x)&&(s[a]=!0,t.shift(1),i=!0)})}c(Gt,"getTaskTags");var mt=st(ie()),Ci=st(ze());mt.default.extend(Ci.default);var Mi=c(function(){it.debug("Something is calling, setConf, remove the call")},"setConf"),ee={monday:Ye,tuesday:Me,wednesday:Ce,thursday:Se,friday:De,saturday:_e,sunday:we},Yi=c((t,s)=>{let r=[...t].map(()=>-1/0),i=[...t].sort((h,x)=>h.startTime-x.startTime||h.order-x.order),a=0;for(let h of i)for(let x=0;x<r.length;x++)if(h.startTime>=r[x]){r[x]=h.endTime,h.order=x+s,x>a&&(a=x);break}return a},"getMaxIntersections"),K,Yt=1e4,Ei=c(function(t,s,r,i){let a=ut().gantt;i.db.setDiagramId(s);let h=ut().securityLevel,x;h==="sandbox"&&(x=$t("#i"+s));let C=h==="sandbox"?$t(x.nodes()[0].contentDocument.body):$t("body"),L=h==="sandbox"?x.nodes()[0].contentDocument:document,M=L.getElementById(s);K=M.parentElement.offsetWidth,K===void 0&&(K=1200),a.useWidth!==void 0&&(K=a.useWidth);let w=i.db.getTasks(),A=[];for(let f of w)A.push(f.type);A=k(A);let W={},N=2*a.topPadding;if(i.db.getDisplayMode()==="compact"||a.displayMode==="compact"){let f={};for(let p of w)f[p.section]===void 0?f[p.section]=[p]:f[p.section].push(p);let g=0;for(let p of Object.keys(f)){let m=Yi(f[p],g)+1;g+=m,N+=m*(a.barHeight+a.barGap),W[p]=m}}else{N+=w.length*(a.barHeight+a.barGap);for(let f of A)W[f]=w.filter(g=>g.type===f).length}M.setAttribute("viewBox","0 0 "+K+" "+N);let z=C.select(`[id="${s}"]`),D=pe().domain([ge(w,function(f){return f.startTime}),xe(w,function(f){return f.endTime})]).rangeRound([0,K-a.leftPadding-a.rightPadding]);function $(f,g){let p=f.startTime,m=g.startTime,y=0;return p>m?y=1:p<m&&(y=-1),y}c($,"taskCompare"),w.sort($),S(w,K,N),be(z,N,K,a.useMaxWidth),z.append("text").text(i.db.getDiagramTitle()).attr("x",K/2).attr("y",a.titleTopMargin).attr("class","titleText");function S(f,g,p){let m=a.barHeight,y=m+a.barGap,l=a.topPadding,d=a.leftPadding,u=Te().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(ve);E(y,l,d,g,p,f,i.db.getExcludes(),i.db.getIncludes()),V(d,l,g,p),I(f,y,l,d,m,u,g),Y(y,l),b(d,l,g,p)}c(S,"makeGantt");function I(f,g,p,m,y,l,d){f.sort((n,o)=>n.vert===o.vert?0:n.vert?1:-1);let u=[...new Set(f.map(n=>n.order))].map(n=>f.find(o=>o.order===n));z.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(n,o){return o=n.order,o*g+p-2}).attr("width",function(){return d-a.rightPadding/2}).attr("height",g).attr("class",function(n){for(let[o,v]of A.entries())if(n.type===v)return"section section"+o%a.numberSectionStyles;return"section section0"}).enter();let T=z.append("g").selectAll("rect").data(f).enter(),e=i.db.getLinks();if(T.append("rect").attr("id",function(n){return s+"-"+n.id}).attr("rx",3).attr("ry",3).attr("x",function(n){return n.milestone?D(n.startTime)+m+.5*(D(n.endTime)-D(n.startTime))-.5*y:D(n.startTime)+m}).attr("y",function(n,o){return o=n.order,n.vert?a.gridLineStartPadding:o*g+p}).attr("width",function(n){return n.milestone?y:n.vert?.08*y:D(n.renderEndTime||n.endTime)-D(n.startTime)}).attr("height",function(n){return n.vert?w.length*(a.barHeight+a.barGap)+a.barHeight*2:y}).attr("transform-origin",function(n,o){return o=n.order,(D(n.startTime)+m+.5*(D(n.endTime)-D(n.startTime))).toString()+"px "+(o*g+p+.5*y).toString()+"px"}).attr("class",function(n){let o="task",v="";n.classes.length>0&&(v=n.classes.join(" "));let O=0;for(let[F,P]of A.entries())n.type===P&&(O=F%a.numberSectionStyles);let _="";return n.active?n.crit?_+=" activeCrit":_=" active":n.done?n.crit?_=" doneCrit":_=" done":n.crit&&(_+=" crit"),_.length===0&&(_=" task"),n.milestone&&(_=" milestone "+_),n.vert&&(_=" vert "+_),_+=O,_+=" "+v,o+_}),T.append("text").attr("id",function(n){return s+"-"+n.id+"-text"}).text(function(n){return n.task}).attr("font-size",a.fontSize).attr("x",function(n){let o=D(n.startTime),v=D(n.renderEndTime||n.endTime);if(n.milestone&&(o+=.5*(D(n.endTime)-D(n.startTime))-.5*y,v=o+y),n.vert)return D(n.startTime)+m;let O=this.getBBox().width;return O>v-o?v+O+1.5*a.leftPadding>d?o+m-5:v+m+5:(v-o)/2+o+m}).attr("y",function(n,o){return n.vert?a.gridLineStartPadding+w.length*(a.barHeight+a.barGap)+60:(o=n.order,o*g+a.barHeight/2+(a.fontSize/2-2)+p)}).attr("text-height",y).attr("class",function(n){let o=D(n.startTime),v=D(n.endTime);n.milestone&&(v=o+y);let O=this.getBBox().width,_="";n.classes.length>0&&(_=n.classes.join(" "));let F=0;for(let[ft,H]of A.entries())n.type===H&&(F=ft%a.numberSectionStyles);let P="";return n.active&&(n.crit?P="activeCritText"+F:P="activeText"+F),n.done?n.crit?P=P+" doneCritText"+F:P=P+" doneText"+F:n.crit&&(P=P+" critText"+F),n.milestone&&(P+=" milestoneText"),n.vert&&(P+=" vertText"),O>v-o?v+O+1.5*a.leftPadding>d?_+" taskTextOutsideLeft taskTextOutside"+F+" "+P:_+" taskTextOutsideRight taskTextOutside"+F+" "+P+" width-"+O:_+" taskText taskText"+F+" "+P+" width-"+O}),ut().securityLevel==="sandbox"){let n;n=$t("#i"+s);let o=n.nodes()[0].contentDocument;T.filter(function(v){return e.has(v.id)}).each(function(v){var O=o.querySelector("#"+CSS.escape(s+"-"+v.id)),_=o.querySelector("#"+CSS.escape(s+"-"+v.id+"-text"));let F=O.parentNode;var P=o.createElement("a");P.setAttribute("xlink:href",e.get(v.id)),P.setAttribute("target","_top"),F.appendChild(P),P.appendChild(O),P.appendChild(_)})}}c(I,"drawRects");function E(f,g,p,m,y,l,d,u){if(d.length===0&&u.length===0)return;let T,e;for(let{startTime:_,endTime:F}of l)(T===void 0||_<T)&&(T=_),(e===void 0||F>e)&&(e=F);if(!T||!e)return;if((0,mt.default)(e).diff((0,mt.default)(T),"year")>5){it.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let n=i.db.getDateFormat(),o=[],v=null,O=(0,mt.default)(T);for(;O.valueOf()<=e;)i.db.isInvalidDate(O,n,d,u)?v?v.end=O:v={start:O,end:O}:v&&(o.push(v),v=null),O=O.add(1,"d");z.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",_=>s+"-exclude-"+_.start.format("YYYY-MM-DD")).attr("x",_=>D(_.start.startOf("day"))+p).attr("y",a.gridLineStartPadding).attr("width",_=>D(_.end.endOf("day"))-D(_.start.startOf("day"))).attr("height",y-g-a.gridLineStartPadding).attr("transform-origin",function(_,F){return(D(_.start)+p+.5*(D(_.end)-D(_.start))).toString()+"px "+(F*f+.5*y).toString()+"px"}).attr("class","exclude-range")}c(E,"drawExcludeDays");function R(f,g,p,m){if(p<=0||f>g)return 1/0;let y=g-f,l=mt.default.duration({[m??"day"]:p}).asMilliseconds();return l<=0?1/0:Math.ceil(y/l)}c(R,"getEstimatedTickCount");function V(f,g,p,m){let y=i.db.getDateFormat(),l=i.db.getAxisFormat(),d;l?d=l:y==="D"?d="%d":d=a.axisFormat??"%Y-%m-%d";let u=$e(D).tickSize(-m+g+a.gridLineStartPadding).tickFormat(jt(d)),T=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(T!==null){let e=parseInt(T[1],10);if(isNaN(e)||e<=0)it.warn(`Invalid tick interval value: "${T[1]}". Skipping custom tick interval.`);else{let n=T[2],o=i.db.getWeekday()||a.weekday,v=D.domain(),O=v[0],_=v[1],F=R(O,_,e,n);if(F>Yt)it.warn(`The tick interval "${e}${n}" would generate ${F} ticks, which exceeds the maximum allowed (${Yt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(n){case"millisecond":u.ticks(Zt.every(e));break;case"second":u.ticks(Jt.every(e));break;case"minute":u.ticks(Xt.every(e));break;case"hour":u.ticks(Qt.every(e));break;case"day":u.ticks(qt.every(e));break;case"week":u.ticks(ee[o].every(e));break;case"month":u.ticks(Ut.every(e));break}}}if(z.append("g").attr("class","grid").attr("transform","translate("+f+", "+(m-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||a.topAxis){let e=Ee(D).tickSize(-m+g+a.gridLineStartPadding).tickFormat(jt(d));if(T!==null){let n=parseInt(T[1],10);if(isNaN(n)||n<=0)it.warn(`Invalid tick interval value: "${T[1]}". Skipping custom tick interval.`);else{let o=T[2],v=i.db.getWeekday()||a.weekday,O=D.domain(),_=O[0],F=O[1];if(R(_,F,n,o)<=Yt)switch(o){case"millisecond":e.ticks(Zt.every(n));break;case"second":e.ticks(Jt.every(n));break;case"minute":e.ticks(Xt.every(n));break;case"hour":e.ticks(Qt.every(n));break;case"day":e.ticks(qt.every(n));break;case"week":e.ticks(ee[v].every(n));break;case"month":e.ticks(Ut.every(n));break}}}z.append("g").attr("class","grid").attr("transform","translate("+f+", "+g+")").call(e).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}c(V,"makeGrid");function Y(f,g){let p=0,m=Object.keys(W).map(y=>[y,W[y]]);z.append("g").selectAll("text").data(m).enter().append(function(y){let l=y[0].split(Oe.lineBreakRegex),d=-(l.length-1)/2,u=L.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",d+"em");for(let[T,e]of l.entries()){let n=L.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttribute("alignment-baseline","central"),n.setAttribute("x","10"),T>0&&n.setAttribute("dy","1em"),n.textContent=e,u.appendChild(n)}return u}).attr("x",10).attr("y",function(y,l){if(l>0)for(let d=0;d<l;d++)return p+=m[l-1][1],y[1]*f/2+p*f+g;else return y[1]*f/2+g}).attr("font-size",a.sectionFontSize).attr("class",function(y){for(let[l,d]of A.entries())if(y[0]===d)return"sectionTitle sectionTitle"+l%a.numberSectionStyles;return"sectionTitle"})}c(Y,"vertLabels");function b(f,g,p,m){let y=i.db.getTodayMarker();if(y==="off")return;let l=z.append("g").attr("class","today"),d=new Date,u=l.append("line");u.attr("x1",D(d)+f).attr("x2",D(d)+f).attr("y1",a.titleTopMargin).attr("y2",m-a.titleTopMargin).attr("class","today"),y!==""&&u.attr("style",y.replace(/,/g,";"))}c(b,"drawToday");function k(f){let g={},p=[];for(let m=0,y=f.length;m<y;++m)Object.prototype.hasOwnProperty.call(g,f[m])||(g[f[m]]=!0,p.push(f[m]));return p}c(k,"checkUnique")},"draw"),Oi={setConf:Mi,draw:Ei},Ai=c(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"),Ii=Ai,Wi={parser:He,db:Si,renderer:Oi,styles:Ii};export{Wi as diagram};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import{c as lt}from"./chunk-AEOMTBSW-BgTIXPsY.js";import{d as ht}from"./wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js";import{s as $t}from"./chunk-TU3PZOEN-RLyvLcv-.js";import{n as mt,h as gt,a as pt,l as yt,s as ft,e as xt,m as h,O as Q,p as k,i as ut,q as F,U as bt,x as wt,o as kt,C as M,L as Bt,y as Et,z as Ct}from"./index-BgeqpYgd.js";import"./chunk-H3VCZNTA-Cx5XV_aC.js";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Lt=Et.gitGraph,W=h(()=>Bt({...Lt,...Q().gitGraph}),"getConfig"),c=new $t(()=>{let t=W(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function U(){return Ct({length:7})}h(U,"getID");function et(t,r){let e=Object.create(null);return t.reduce((i,n)=>{let d=r(n);return e[d]||(e[d]=!0,i.push(n)),i},[])}h(et,"uniqBy");var Tt=h(function(t){c.records.direction=t},"setDirection"),Mt=h(function(t){k.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),vt=h(function(){return c.records.options},"getOptions"),It=h(function(t){let r=t.msg,e=t.id,i=t.type,n=t.tags;k.info("commit",r,e,i,n),k.debug("Entering commit:",r,e,i,n);let d=W();e=M.sanitizeText(e,d),r=M.sanitizeText(r,d),n=n==null?void 0:n.map(o=>M.sanitizeText(o,d));let a={id:e||c.records.seq+"-"+U(),message:r,seq:c.records.seq++,type:i??u.NORMAL,tags:n??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=a,k.info("main branch",d.mainBranchName),c.records.commits.has(a.id)&&k.warn(`Commit ID ${a.id} already exists`),c.records.commits.set(a.id,a),c.records.branches.set(c.records.currBranch,a.id),k.debug("in pushCommit "+a.id)},"commit"),Rt=h(function(t){let r=t.name,e=t.order;if(r=M.sanitizeText(r,W()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:e}),ot(r),k.debug("in createBranch")},"branch"),Ot=h(t=>{let r=t.branch,e=t.id,i=t.type,n=t.tags,d=W();r=M.sanitizeText(r,d),e&&(e=M.sanitizeText(e,d));let a=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),l=a?c.records.commits.get(a):void 0,m=o?c.records.commits.get(o):void 0;if(l&&m&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){let s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(l===void 0||!l){let s=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},s}if(!c.records.branches.has(r)){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},s}if(m===void 0||!m){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},s}if(l===m){let s=new Error('Incorrect usage of "merge". Both branches have same head');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(e&&c.records.commits.has(e)){let s=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw s.hash={text:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,token:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${i} ${n==null?void 0:n.join(" ")}`]},s}let g=o||"",$={id:e||`${c.records.seq}-${U()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,g],branch:c.records.currBranch,type:u.MERGE,customType:i,customId:!!e,tags:n??[]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),k.debug(c.records.branches),k.debug("in mergeBranch")},"merge"),Pt=h(function(t){let r=t.id,e=t.targetId,i=t.tags,n=t.parent;k.debug("Entering cherryPick:",r,e,i);let d=W();if(r=M.sanitizeText(r,d),e=M.sanitizeText(e,d),i=i==null?void 0:i.map(l=>M.sanitizeText(l,d)),n=M.sanitizeText(n,d),!r||!c.records.commits.has(r)){let l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},l}let a=c.records.commits.get(r);if(a===void 0||!a)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(a.parents)&&a.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=a.branch;if(a.type===u.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!c.records.commits.has(e)){if(o===c.records.currBranch){let $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let l=c.records.branches.get(c.records.currBranch);if(l===void 0||!l){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let m=c.records.commits.get(l);if(m===void 0||!m){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let g={id:c.records.seq+"-"+U(),message:`cherry-picked ${a==null?void 0:a.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,a.id],branch:c.records.currBranch,type:u.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${a.id}${a.type===u.MERGE?`|parent:${n}`:""}`]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),k.debug(c.records.branches),k.debug("in cherryPick")}},"cherryPick"),ot=h(function(t){if(t=M.sanitizeText(t,W()),c.records.branches.has(t)){c.records.currBranch=t;let r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{let r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function Y(t,r,e){let i=t.indexOf(r);i===-1?t.push(e):t.splice(i,1,e)}h(Y,"upsert");function X(t){let r=t.reduce((n,d)=>n.seq>d.seq?n:d,t[0]),e="";t.forEach(function(n){n===r?e+=" *":e+=" |"});let i=[e,r.id,r.seq];for(let n in c.records.branches)c.records.branches.get(n)===r.id&&i.push(n);if(k.debug(i.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let n=c.records.commits.get(r.parents[0]);Y(t,r,n),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){let n=c.records.commits.get(r.parents[0]);Y(t,r,n)}}t=et(t,n=>n.id),X(t)}h(X,"prettyPrintCommitHistory");var At=h(function(){k.debug(c.records.commits);let t=at()[0];X([t])},"prettyPrint"),Gt=h(function(){c.reset(),kt()},"clear"),St=h(function(){return[...c.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),Ht=h(function(){return c.records.branches},"getBranches"),Wt=h(function(){return c.records.commits},"getCommits"),at=h(function(){let t=[...c.records.commits.values()];return t.forEach(function(r){k.debug(r.id)}),t.sort((r,e)=>r.seq-e.seq),t},"getCommitsArray"),qt=h(function(){return c.records.currBranch},"getCurrentBranch"),zt=h(function(){return c.records.direction},"getDirection"),_t=h(function(){return c.records.head},"getHead"),it={commitType:u,getConfig:W,setDirection:Tt,setOptions:Mt,getOptions:vt,commit:It,branch:Rt,merge:Ot,cherryPick:Pt,checkout:ot,prettyPrint:At,clear:Gt,getBranchesAsObjArray:St,getBranches:Ht,getCommits:Wt,getCommitsArray:at,getCurrentBranch:qt,getDirection:zt,getHead:_t,setAccTitle:xt,getAccTitle:ft,getAccDescription:yt,setAccDescription:pt,setDiagramTitle:gt,getDiagramTitle:mt},Dt=h((t,r)=>{lt(t,r),t.dir&&r.setDirection(t.dir);for(let e of t.statements)Ft(e,r)},"populate"),Ft=h((t,r)=>{let e={Commit:h(i=>r.commit(Nt(i)),"Commit"),Branch:h(i=>r.branch(jt(i)),"Branch"),Merge:h(i=>r.merge(Kt(i)),"Merge"),Checkout:h(i=>r.checkout(Ut(i)),"Checkout"),CherryPicking:h(i=>r.cherryPick(Vt(i)),"CherryPicking")}[t.$type];e?e(t):k.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Nt=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?u[t.type]:u.NORMAL,tags:t.tags??void 0}),"parseCommit"),jt=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Kt=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?u[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ut=h(t=>t.branch,"parseCheckout"),Vt=h(t=>{var r;return{id:t.id,targetId:"",tags:((r=t.tags)==null?void 0:r.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Yt={parse:h(async t=>{let r=await ht("gitGraph",t);k.debug(r),Dt(r,it)},"parse")},P=10,A=40,v=4,I=2,S=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,Z=new Set(["redux-color","redux-dark-color"]),Jt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),L=new Map,T=new Map,j=30,_=new Map,K=[],R=0,y="LR",Qt=h(()=>{L.clear(),T.clear(),_.clear(),R=0,K=[],y="LR"},"clear"),nt=h(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(e=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=e.trim(),r.appendChild(i)}),r},"drawText"),st=h(t=>{let r,e,i;return y==="BT"?(e=h((n,d)=>n<=d,"comparisonFunc"),i=1/0):(e=h((n,d)=>n>=d,"comparisonFunc"),i=0),t.forEach(n=>{var a,o;let d=y==="TB"||y=="BT"?(a=T.get(n))==null?void 0:a.y:(o=T.get(n))==null?void 0:o.x;d!==void 0&&e(d,i)&&(r=n,i=d)}),r},"findClosestParent"),Xt=h(t=>{let r="",e=1/0;return t.forEach(i=>{let n=T.get(i).y;n<=e&&(r=i,e=n)}),r||void 0},"findClosestParentBT"),Zt=h((t,r,e)=>{let i=e,n=e,d=[];t.forEach(a=>{let o=r.get(a);if(!o)throw new Error(`Commit not found for key ${a}`);o.parents.length?(i=rr(o),n=Math.max(i,n)):d.push(o),er(o,i)}),i=n,d.forEach(a=>{or(a,i,e)}),t.forEach(a=>{let o=r.get(a);if(o!=null&&o.parents.length){let l=Xt(o.parents);i=T.get(l).y-A,i<=n&&(n=i);let m=L.get(o.branch).pos,g=i-P;T.set(o.id,{x:m,y:g})}})},"setParallelBTPos"),tr=h(t=>{var i;let r=st(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);let e=(i=T.get(r))==null?void 0:i.y;if(e===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),rr=h(t=>tr(t)+A,"calculateCommitPosition"),er=h((t,r)=>{let e=L.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);let i=e.pos,n=r+P;return T.set(t.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),or=h((t,r,e)=>{let i=L.get(t.branch);if(!i)throw new Error(`Branch not found for commit ${t.id}`);let n=r+e,d=i.pos;T.set(t.id,{x:d,y:n})},"setRootPosition"),ar=h((t,r,e,i,n,d)=>{let{theme:a}=F(),o=V.has(a??""),l=Z.has(a??""),m=Jt.has(a??"");if(d===u.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(o?3:0)).attr("y",e.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${H(n,S,l)} ${i}-outer`),t.append("rect").attr("x",e.x-6+(o?2:0)).attr("y",e.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${H(n,S,l)} ${i}-inner`);else if(d===u.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`);else{let g=t.append("circle");if(g.attr("cx",e.x),g.attr("cy",e.y),g.attr("r",o?7:10),g.attr("class",`commit ${r.id} commit${H(n,S,l)}`),d===u.MERGE){let $=t.append("circle");$.attr("cx",e.x),$.attr("cy",e.y),$.attr("r",o?5:6),$.attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}if(d===u.REVERSE){let $=t.append("path"),s=o?4:5;$.attr("d",`M ${e.x-s},${e.y-s}L${e.x+s},${e.y+s}M${e.x-s},${e.y+s}L${e.x+s},${e.y-s}`).attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}}},"drawCommitBullet"),ir=h((t,r,e,i,n)=>{var d;if(r.type!==u.CHERRY_PICK&&(r.customId&&r.type===u.MERGE||r.type!==u.MERGE)&&n.showCommitLabel){let a=t.append("g"),o=a.insert("rect").attr("class","commit-label-bkg"),l=a.append("text").attr("x",i).attr("y",e.y+25).attr("class","commit-label").text(r.id),m=(d=l.node())==null?void 0:d.getBBox();if(m&&(o.attr("x",e.posWithOffset-m.width/2-I).attr("y",e.y+13.5).attr("width",m.width+2*I).attr("height",m.height+2*I),y==="TB"||y==="BT"?(o.attr("x",e.x-(m.width+4*v+5)).attr("y",e.y-12),l.attr("x",e.x-(m.width+4*v)).attr("y",e.y+m.height-12)):l.attr("x",e.posWithOffset-m.width/2),n.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),o.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{let g=-7.5-(m.width+10)/25*9.5,$=10+m.width/25*8.5;a.attr("transform","translate("+g+", "+$+") rotate(-45, "+i+", "+e.y+")")}}},"drawCommitLabel"),nr=h((t,r,e,i)=>{var n;if(r.tags.length>0){let d=0,a=0,o=0,l=[];for(let m of r.tags.reverse()){let g=t.insert("polygon"),$=t.append("circle"),s=t.append("text").attr("y",e.y-16-d).attr("class","tag-label").text(m),f=(n=s.node())==null?void 0:n.getBBox();if(!f)throw new Error("Tag bbox not found");a=Math.max(a,f.width),o=Math.max(o,f.height),s.attr("x",e.posWithOffset-f.width/2),l.push({tag:s,hole:$,rect:g,yOffset:d}),d+=20}for(let{tag:m,hole:g,rect:$,yOffset:s}of l){let f=o/2,p=e.y-19.2-s;if($.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
-
${i-a/2-v/2},${p+I}
|
|
3
|
-
${i-a/2-v/2},${p-I}
|
|
4
|
-
${e.posWithOffset-a/2-v},${p-f-I}
|
|
5
|
-
${e.posWithOffset+a/2+v},${p-f-I}
|
|
6
|
-
${e.posWithOffset+a/2+v},${p+f+I}
|
|
7
|
-
${e.posWithOffset-a/2-v},${p+f+I}`),g.attr("cy",p).attr("cx",i-a/2+v/2).attr("r",1.5).attr("class","tag-hole"),y==="TB"||y==="BT"){let x=i+s;$.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
-
${e.x},${x+2}
|
|
9
|
-
${e.x},${x-2}
|
|
10
|
-
${e.x+P},${x-f-2}
|
|
11
|
-
${e.x+P+a+4},${x-f-2}
|
|
12
|
-
${e.x+P+a+4},${x+f+2}
|
|
13
|
-
${e.x+P},${x+f+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+i+")"),g.attr("cx",e.x+v/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+e.x+","+i+")"),m.attr("x",e.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+i+")")}}}},"drawCommitTags"),sr=h(t=>{switch(t.customType??t.type){case u.NORMAL:return"commit-normal";case u.REVERSE:return"commit-reverse";case u.HIGHLIGHT:return"commit-highlight";case u.MERGE:return"commit-merge";case u.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),cr=h((t,r,e,i)=>{let n={x:0,y:0};if(t.parents.length>0){let d=st(t.parents);if(d){let a=i.get(d)??n;return r==="TB"?a.y+A:r==="BT"?(i.get(t.id)??n).y-A:a.x+A}}else return r==="TB"?j:r==="BT"?(i.get(t.id)??n).y-A:0;return 0},"calculatePosition"),dr=h((t,r,e)=>{var l,m;let i=y==="BT"&&e?r:r+P,n=(l=L.get(t.branch))==null?void 0:l.pos,d=y==="TB"||y==="BT"?(m=L.get(t.branch))==null?void 0:m.pos:i;if(d===void 0||n===void 0)throw new Error(`Position were undefined for commit ${t.id}`);let a=V.has(F().theme??""),o=y==="TB"||y==="BT"?i:n+(a?J/2+1:-2);return{x:d,y:o,posWithOffset:i}},"getCommitPosition"),rt=h((t,r,e,i)=>{let n=t.append("g").attr("class","commit-bullets"),d=t.append("g").attr("class","commit-labels"),a=y==="TB"||y==="BT"?j:0,o=[...r.keys()],l=i.parallelCommits??!1,m=h(($,s)=>{var x,E;let f=(x=r.get($))==null?void 0:x.seq,p=(E=r.get(s))==null?void 0:E.seq;return f!==void 0&&p!==void 0?f-p:0},"sortKeys"),g=o.sort(m);y==="BT"&&(l&&Zt(g,r,a),g=g.reverse()),g.forEach($=>{var p;let s=r.get($);if(!s)throw new Error(`Commit not found for key ${$}`);l&&(a=cr(s,y,a,T));let f=dr(s,a,l);if(e){let x=sr(s),E=s.customType??s.type,w=((p=L.get(s.branch))==null?void 0:p.index)??0;ar(n,s,f,x,w,E),ir(d,s,f,a,i),nr(d,s,f,a)}y==="TB"||y==="BT"?T.set(s.id,{x:f.x,y:f.posWithOffset}):T.set(s.id,{x:f.posWithOffset,y:f.y}),a=y==="BT"&&l?a+A:a+A+P,a>R&&(R=a)})},"drawCommits"),lr=h((t,r,e,i,n)=>{let d=(y==="TB"||y==="BT"?e.x<i.x:e.y<i.y)?r.branch:t.branch,a=h(l=>l.branch===d,"isOnBranchToGetCurve"),o=h(l=>l.seq>t.seq&&l.seq<r.seq,"isBetweenCommits");return[...n.values()].some(l=>o(l)&&a(l))},"shouldRerouteArrow"),D=h((t,r,e=0)=>{let i=t+Math.abs(t-r)/2;if(e>5)return i;if(K.every(d=>Math.abs(d-i)>=10))return K.push(i),i;let n=Math.abs(t-r);return D(t,r-n/5,e+1)},"findLane"),hr=h((t,r,e,i)=>{var x,E,w,q,O;let{theme:n}=F(),d=Z.has(n??""),a=T.get(r.id),o=T.get(e.id);if(a===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);let l=lr(r,e,a,o,i),m="",g="",$=0,s=0,f=(x=L.get(e.branch))==null?void 0:x.index;e.type===u.MERGE&&r.id!==e.parents[0]&&(f=(E=L.get(r.branch))==null?void 0:E.index);let p;if(l){m="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,s=10;let B=a.y<o.y?D(a.y,o.y):D(o.y,a.y),b=a.x<o.x?D(a.x,o.x):D(o.x,a.x);y==="TB"?a.x<o.x?p=`M ${a.x} ${a.y} L ${b-$} ${a.y} ${g} ${b} ${a.y+s} L ${b} ${o.y-$} ${m} ${b+s} ${o.y} L ${o.x} ${o.y}`:(f=(w=L.get(r.branch))==null?void 0:w.index,p=`M ${a.x} ${a.y} L ${b+$} ${a.y} ${m} ${b} ${a.y+s} L ${b} ${o.y-$} ${g} ${b-s} ${o.y} L ${o.x} ${o.y}`):y==="BT"?a.x<o.x?p=`M ${a.x} ${a.y} L ${b-$} ${a.y} ${m} ${b} ${a.y-s} L ${b} ${o.y+$} ${g} ${b+s} ${o.y} L ${o.x} ${o.y}`:(f=(q=L.get(r.branch))==null?void 0:q.index,p=`M ${a.x} ${a.y} L ${b+$} ${a.y} ${g} ${b} ${a.y-s} L ${b} ${o.y+$} ${m} ${b-s} ${o.y} L ${o.x} ${o.y}`):a.y<o.y?p=`M ${a.x} ${a.y} L ${a.x} ${B-$} ${m} ${a.x+s} ${B} L ${o.x-$} ${B} ${g} ${o.x} ${B+s} L ${o.x} ${o.y}`:(f=(O=L.get(r.branch))==null?void 0:O.index,p=`M ${a.x} ${a.y} L ${a.x} ${B+$} ${g} ${a.x+s} ${B} L ${o.x-$} ${B} ${m} ${o.x} ${B-s} L ${o.x} ${o.y}`)}else m="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,s=20,y==="TB"?(a.x<o.x&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y-$} ${m} ${a.x+s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${g} ${o.x} ${a.y+s} L ${o.x} ${o.y}`),a.x>o.x&&(m="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,s=20,e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y-$} ${g} ${a.x-s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x+$} ${a.y} ${m} ${o.x} ${a.y+s} L ${o.x} ${o.y}`),a.x===o.x&&(p=`M ${a.x} ${a.y} L ${o.x} ${o.y}`)):y==="BT"?(a.x<o.x&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y+$} ${g} ${a.x+s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${m} ${o.x} ${a.y-s} L ${o.x} ${o.y}`),a.x>o.x&&(m="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,s=20,e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y+$} ${m} ${a.x-s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x+$} ${a.y} ${g} ${o.x} ${a.y-s} L ${o.x} ${o.y}`),a.x===o.x&&(p=`M ${a.x} ${a.y} L ${o.x} ${o.y}`)):(a.y<o.y&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${g} ${o.x} ${a.y+s} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${a.x} ${o.y-$} ${m} ${a.x+s} ${o.y} L ${o.x} ${o.y}`),a.y>o.y&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${m} ${o.x} ${a.y-s} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${a.x} ${o.y+$} ${g} ${a.x+s} ${o.y} L ${o.x} ${o.y}`),a.y===o.y&&(p=`M ${a.x} ${a.y} L ${o.x} ${o.y}`));if(p===void 0)throw new Error("Line definition not found");t.append("path").attr("d",p).attr("class","arrow arrow"+H(f,S,d))},"drawArrow"),$r=h((t,r)=>{let e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(i=>{let n=r.get(i);n.parents&&n.parents.length>0&&n.parents.forEach(d=>{hr(e,r.get(d),n,r)})})},"drawArrows"),mr=h((t,r,e,i)=>{let{look:n,theme:d,themeVariables:a}=F(),{dropShadow:o,THEME_COLOR_LIMIT:l}=a,m=V.has(d??""),g=Z.has(d??""),$=t.append("g");r.forEach((s,f)=>{var tt;let p=H(f,m?l:S,g),x=(tt=L.get(s.name))==null?void 0:tt.pos;if(x===void 0)throw new Error(`Position not found for branch ${s.name}`);let E=y==="TB"||y==="BT"?x:m?x+J/2+1:x-2,w=$.append("line");w.attr("x1",0),w.attr("y1",E),w.attr("x2",R),w.attr("y2",E),w.attr("class","branch branch"+p),y==="TB"?(w.attr("y1",j),w.attr("x1",x),w.attr("y2",R),w.attr("x2",x)):y==="BT"&&(w.attr("y1",R),w.attr("x1",x),w.attr("y2",j),w.attr("x2",x)),K.push(E);let q=s.name,O=nt(q),B=$.insert("rect"),b=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(O);let C=O.getBBox(),N=m?0:4,G=m?16:0,z=m?J:0;n==="neo"&&B.attr("data-look","neo"),B.attr("class","branchLabelBkg label"+p).attr("style",n==="neo"?`filter:${m?`url(#${i}-drop-shadow)`:o}`:"").attr("rx",N).attr("ry",N).attr("x",-C.width-4-(e.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+10).attr("width",C.width+18+G).attr("height",C.height+4+z),b.attr("transform","translate("+(-C.width-14-(e.rotateCommitLabel===!0?30:0)+G/2)+", "+(E-C.height/2-2)+")"),y==="TB"?(B.attr("x",x-C.width/2-10).attr("y",0),b.attr("transform","translate("+(x-C.width/2-5)+", 0)"),m&&(B.attr("transform",`translate(${-G/2-3}, ${-z-10})`),b.attr("transform","translate("+(x-C.width/2-5)+", "+(-z*2+7)+")"))):y==="BT"?(B.attr("x",x-C.width/2-10).attr("y",R),b.attr("transform","translate("+(x-C.width/2-5)+", "+R+")"),m&&(B.attr("transform",`translate(${-G/2-3}, ${z+10})`),b.attr("transform","translate("+(x-C.width/2-5)+", "+(R+z*2+4)+")"))):B.attr("transform","translate(-19, "+(E-12-z/2)+")")})},"drawBranches"),gr=h(function(t,r,e,i,n){return L.set(t,{pos:r,index:e}),r+=50+(n?40:0)+(y==="TB"||y==="BT"?i.width/2:0),r},"setBranchPosition"),pr=h(function(t,r,e,i){Qt(),k.debug("in gitgraph renderer",t+`
|
|
14
|
-
`,"id:",r,e);let n=i.db;if(!n.getConfig){k.error("getConfig method is not available on db");return}let d=n.getConfig(),a=d.rotateCommitLabel??!1;_=n.getCommits();let o=n.getBranchesAsObjArray();y=n.getDirection();let l=ut(`[id="${r}"]`),{look:m,theme:g,themeVariables:$}=F(),{useGradient:s,gradientStart:f,gradientStop:p,filterColor:x}=$;if(s){let w=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");w.append("stop").attr("offset","0%").attr("stop-color",f).attr("stop-opacity",1),w.append("stop").attr("offset","100%").attr("stop-color",p).attr("stop-opacity",1)}m==="neo"&&V.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",x);let E=0;o.forEach((w,q)=>{var G;let O=nt(w.name),B=l.append("g"),b=B.insert("g").attr("class","branchLabel"),C=b.insert("g").attr("class","label branch-label");(G=C.node())==null||G.appendChild(O);let N=O.getBBox();E=gr(w.name,E,q,N,a),C.remove(),b.remove(),B.remove()}),rt(l,_,!1,d),d.showBranches&&mr(l,o,d,r),$r(l,_),rt(l,_,!0,d),bt.insertTitle(l,"gitTitleText",d.titleTopMargin??0,n.getDiagramTitle()),wt(void 0,l,d.diagramPadding,d.useMaxWidth)},"draw"),yr={draw:pr},ct=8,dt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),fr=new Set(["redux-color","redux-dark-color"]),xr=new Set(["neo","neo-dark"]),ur=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(t=>{let{svgId:r}=t,e="";if(t.useGradient&&r)for(let i=0;i<t.THEME_COLOR_LIMIT;i++)e+=`
|
|
15
|
-
.label${i} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}
|
|
16
|
-
`;return e},"genGitGraphGradient"),kr=h(t=>{let r=Q(),{theme:e,themeVariables:i}=r,{borderColorArray:n}=i,d=dt.has(e);if(xr.has(e)){let a="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)a+=`
|
|
17
|
-
.branch-label${o} { fill: ${t.nodeBorder};}
|
|
18
|
-
.commit${o} { stroke: ${t.nodeBorder}; }
|
|
19
|
-
.commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
20
|
-
.arrow${o} { stroke: ${t.nodeBorder}; }
|
|
21
|
-
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
22
|
-
.commit-cherry-pick${o} { stroke: ${t.nodeBorder}; }
|
|
23
|
-
${wr(t)}`;else{let l=o%ct;a+=`
|
|
24
|
-
.branch-label${o} { fill: ${t["gitBranchLabel"+l]}; }
|
|
25
|
-
.commit${o} { stroke: ${t["git"+l]}; fill: ${t["git"+l]}; }
|
|
26
|
-
.commit-highlight${o} { stroke: ${t["gitInv"+l]}; fill: ${t["gitInv"+l]}; }
|
|
27
|
-
.arrow${o} { stroke: ${t["git"+l]}; }
|
|
28
|
-
`}return a}else if(fr.has(e)){let a="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)a+=`
|
|
29
|
-
.branch-label${o} { fill: ${t.nodeBorder}; ${d?`font-weight:${t.noteFontWeight}`:""} }
|
|
30
|
-
.commit${o} { stroke: ${t.nodeBorder}; }
|
|
31
|
-
.commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
|
|
32
|
-
.label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${d?`font-weight:${t.noteFontWeight}`:""} }
|
|
33
|
-
.arrow${o} { stroke: ${t.nodeBorder}; }
|
|
34
|
-
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
35
|
-
`;else{let l=o%n.length;a+=`
|
|
36
|
-
.branch-label${o} { fill: ${t.nodeBorder}; ${d?`font-weight:${t.noteFontWeight}`:""} }
|
|
37
|
-
.commit${o} { stroke: ${n[l]}; fill: ${n[l]}; }
|
|
38
|
-
.commit-highlight${o} { stroke: ${n[l]}; fill: ${n[l]}; }
|
|
39
|
-
.label${o} { fill: ${ur.has(e)?t.mainBkg:n[l]}; stroke: ${n[l]}; stroke-width: ${t.strokeWidth}; }
|
|
40
|
-
.arrow${o} { stroke: ${n[l]}; }
|
|
41
|
-
`}return a}else{let a="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)a+=`
|
|
42
|
-
.branch-label${o} { fill: ${t.nodeBorder}; ${d?`font-weight:${t.noteFontWeight}`:""} }
|
|
43
|
-
.commit${o} { stroke: ${t.nodeBorder}; }
|
|
44
|
-
.commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
45
|
-
.label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${d?`font-weight:${t.noteFontWeight}`:""}}
|
|
46
|
-
.arrow${o} { stroke: ${t.nodeBorder}; }
|
|
47
|
-
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
48
|
-
.commit-cherry-pick${o} { stroke: ${t.nodeBorder}; }
|
|
49
|
-
`;return a}},"genColor"),Br=h(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(r,e)=>e).map(r=>{let e=r%ct;return`
|
|
50
|
-
.branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }
|
|
51
|
-
.commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
|
|
52
|
-
.commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
|
|
53
|
-
.label${r} { fill: ${t["git"+e]}; }
|
|
54
|
-
.arrow${r} { stroke: ${t["git"+e]}; }
|
|
55
|
-
`}).join(`
|
|
56
|
-
`)}`,"normalTheme"),Er=h(t=>{let r=Q(),{theme:e}=r,i=br.has(e);return`
|
|
57
|
-
.commit-id,
|
|
58
|
-
.commit-msg,
|
|
59
|
-
.branch-label {
|
|
60
|
-
fill: lightgrey;
|
|
61
|
-
color: lightgrey;
|
|
62
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
-
font-family: var(--mermaid-font-family);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
${i?kr(t):Br(t)}
|
|
67
|
-
|
|
68
|
-
.branch {
|
|
69
|
-
stroke-width: ${t.strokeWidth};
|
|
70
|
-
stroke: ${t.commitLineColor??t.lineColor};
|
|
71
|
-
stroke-dasharray: ${i?"4 2":"2"};
|
|
72
|
-
}
|
|
73
|
-
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${i?t.nodeBorder:t.commitLabelColor}; ${i?`font-weight:${t.noteFontWeight};`:""}}
|
|
74
|
-
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${i?"transparent":t.commitLabelBackground}; opacity: ${i?"":.5}; }
|
|
75
|
-
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
76
|
-
.tag-label-bkg { fill: ${i?t.mainBkg:t.tagLabelBackground}; stroke: ${i?t.nodeBorder:t.tagLabelBorder}; ${i?`filter:${t.dropShadow}`:""} }
|
|
77
|
-
.tag-hole { fill: ${t.textColor}; }
|
|
78
|
-
|
|
79
|
-
.commit-merge {
|
|
80
|
-
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
81
|
-
fill: ${i?t.mainBkg:t.primaryColor};
|
|
82
|
-
}
|
|
83
|
-
.commit-reverse {
|
|
84
|
-
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
85
|
-
fill: ${i?t.mainBkg:t.primaryColor};
|
|
86
|
-
stroke-width: ${i?t.strokeWidth:3};
|
|
87
|
-
}
|
|
88
|
-
.commit-highlight-outer {
|
|
89
|
-
}
|
|
90
|
-
.commit-highlight-inner {
|
|
91
|
-
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
92
|
-
fill: ${i?t.mainBkg:t.primaryColor};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.arrow {
|
|
96
|
-
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
-
stroke-width: ${dt.has(e)?t.strokeWidth:8};
|
|
98
|
-
stroke-linecap: round;
|
|
99
|
-
fill: none
|
|
100
|
-
}
|
|
101
|
-
.gitTitleText {
|
|
102
|
-
text-anchor: middle;
|
|
103
|
-
font-size: 18px;
|
|
104
|
-
fill: ${t.textColor};
|
|
105
|
-
}
|
|
106
|
-
`},"getStyles"),Cr=Er,Rr={parser:Yt,db:it,renderer:yr,styles:Cr};export{Rr as diagram};
|