orbitchat 3.9.8 → 3.9.9
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/dist/assets/ChartRenderer-DClh1ujq.js +80 -0
- package/dist/assets/{MermaidRenderer-5nc-1nEm.js → MermaidRenderer-pbLK2azB.js} +93 -93
- package/dist/assets/{MusicRenderer-CtZT09g0.js → MusicRenderer-kxb6HilQ.js} +2 -2
- package/dist/assets/SVGRenderer-iu6u1Cw7.js +6 -0
- package/dist/assets/arc-BHwyCqLz.js +1 -0
- package/dist/assets/architectureDiagram-3BPJPVTR-SC8K0yQD.js +36 -0
- package/dist/assets/{band-BEGRCkg7.js → band-CquvqAHh.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-Bnt32Mzn.js → blockDiagram-GPEHLZMM-AwWkPUtd.js} +8 -8
- package/dist/assets/{c4Diagram-AAUBKEIU-ggN9PpBg.js → c4Diagram-AAUBKEIU-CU80FIqf.js} +1 -1
- package/dist/assets/channel-BVBdTOdE.js +1 -0
- package/dist/assets/chunk-2J33WTMH-m3LCoOx8.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-DDHFU7av.js → chunk-4BX2VUAB-1jlBfcq9.js} +1 -1
- package/dist/assets/chunk-55IACEB6-WfRzbzaa.js +1 -0
- package/dist/assets/{chunk-727SXJPM-DajC1PXF.js → chunk-727SXJPM-CA2GJA5h.js} +4 -4
- package/dist/assets/{chunk-AQP2D5EJ-pWiXec05.js → chunk-AQP2D5EJ-BiAX-dUc.js} +3 -3
- package/dist/assets/{chunk-FMBD7UC4-CILhUhgm.js → chunk-FMBD7UC4-fKfuBh9D.js} +1 -1
- package/dist/assets/chunk-ND2GUHAM-B3rtP9nG.js +1 -0
- package/dist/assets/{chunk-QZHKN3VN-B5ma3Sby.js → chunk-QZHKN3VN-DgUQ5Ecu.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-6DEt_YNG.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-6DEt_YNG.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-sWgsEixD.js +1 -0
- package/dist/assets/cytoscape.esm-CUqq0XTU.js +331 -0
- package/dist/assets/dagre-BM42HDAG-sOxz_C4g.js +4 -0
- package/dist/assets/{defaultLocale-CrowFXzY.js → defaultLocale-DX6XiGOO.js} +1 -1
- package/dist/assets/diagram-2AECGRRQ-CVdYRm3-.js +43 -0
- package/dist/assets/diagram-5GNKFQAL-DWn9p9RE.js +10 -0
- package/dist/assets/{diagram-KO2AKTUF-rajXpRcp.js → diagram-KO2AKTUF-sQpYYpK8.js} +3 -3
- package/dist/assets/diagram-LMA3HP47-D4D9ihpX.js +24 -0
- package/dist/assets/diagram-OG6HWLK6-BNfms66C.js +24 -0
- package/dist/assets/{docx-preview-D6Ifgr9Z.js → docx-preview-BRX3O3gx.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-WuO00Jb5.js → erDiagram-TEJ5UH35-8YjCe8Vm.js} +2 -2
- package/dist/assets/{flowDiagram-I6XJVG4X-iZtlSrMT.js → flowDiagram-I6XJVG4X-ClNfD6qJ.js} +4 -4
- package/dist/assets/{ganttDiagram-6RSMTGT7-C5Cud-f7.js → ganttDiagram-6RSMTGT7-BqElHnRY.js} +5 -5
- package/dist/assets/gitGraphDiagram-PVQCEYII-CQYsuJbS.js +106 -0
- package/dist/assets/{graph-Dqkl27Ch.js → graph-BlwPajkw.js} +1 -1
- package/dist/assets/{index-DoqVxf1H.js → index-BO0SVkG1.js} +1 -1
- package/dist/assets/index-CtRXyPDv.js +694 -0
- package/dist/assets/infoDiagram-5YYISTIA-Zk2-VmGc.js +2 -0
- package/dist/assets/{init-BFKUnIhM.js → init-Dmth1JHB.js} +1 -1
- package/dist/assets/isPrototype-D0troCl1.js +1 -0
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-CpUGz9yy.js → ishikawaDiagram-YF4QCWOH-CJmYRSBk.js} +6 -6
- package/dist/assets/{journeyDiagram-JHISSGLW-DMQX2xhS.js → journeyDiagram-JHISSGLW-DHnbHd1S.js} +3 -3
- package/dist/assets/{kanban-definition-UN3LZRKU-C-jDKdRa.js → kanban-definition-UN3LZRKU-D8TFsZbU.js} +7 -7
- package/dist/assets/layout-Boy8vhSP.js +1 -0
- package/dist/assets/linear-CB3-LqbC.js +1 -0
- package/dist/assets/{mindmap-definition-RKZ34NQL-Bs8bGhQ3.js → mindmap-definition-RKZ34NQL-B7D4IIUc.js} +1 -1
- package/dist/assets/ordinal-DILIJJjt.js +1 -0
- package/dist/assets/papaparse.min-C03xjc7-.js +15 -0
- package/dist/assets/pieDiagram-4H26LBE5-Cw7bR1ri.js +30 -0
- package/dist/assets/purify.es-D6gMnemd.js +3 -0
- package/dist/assets/{quadrantDiagram-W4KKPZXB-qIm5kGNn.js → quadrantDiagram-W4KKPZXB-D9-NYcEM.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-Dxq9A8DQ.js → requirementDiagram-4Y6WPE33-D_FyCui_.js} +1 -1
- package/dist/assets/sankeyDiagram-5OEKKPKP-DNIoeOSb.js +40 -0
- package/dist/assets/{sequenceDiagram-3UESZ5HK-Bzs6UB3z.js → sequenceDiagram-3UESZ5HK-_3gUjD6A.js} +4 -4
- package/dist/assets/stateDiagram-AJRCARHV-CP9onNlk.js +1 -0
- package/dist/assets/stateDiagram-v2-BHNVJYJU-vjFhnIuF.js +1 -0
- package/dist/assets/{time-C-HXPWjm.js → time-C80Ah3yu.js} +1 -1
- package/dist/assets/{timeline-definition-PNZ67QCA-E0pyiHGc.js → timeline-definition-PNZ67QCA-BOSaI-Jw.js} +3 -3
- package/dist/assets/vennDiagram-CIIHVFJN-A8aVSqv1.js +34 -0
- package/dist/assets/{wardley-L42UT6IY-DYXaF4ts.js → wardley-L42UT6IY-JgBh2O8F.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-iihgU7g8.js → wardleyDiagram-YWT4CUSO-nIgSgvz5.js} +4 -4
- package/dist/assets/{xychartDiagram-2RQKCTM6-DyZtcc5W.js → xychartDiagram-2RQKCTM6-5K0Rc5G6.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -1
- package/dist/assets/ChartRenderer-Cl8PFpuJ.js +0 -80
- package/dist/assets/SVGRenderer-UIbzOYux.js +0 -6
- package/dist/assets/arc-DeiHBTsx.js +0 -1
- package/dist/assets/architectureDiagram-3BPJPVTR-B9u8vTDU.js +0 -36
- package/dist/assets/channel-CVnkbVqL.js +0 -1
- package/dist/assets/chunk-2J33WTMH-u2eLy5aN.js +0 -1
- package/dist/assets/chunk-55IACEB6-CIxNvCfQ.js +0 -1
- package/dist/assets/chunk-ND2GUHAM-BWFUOpQ4.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-DnOigWVd.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-DnOigWVd.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-BF3_2e8c.js +0 -1
- package/dist/assets/cytoscape.esm-BHYC38rz.js +0 -331
- package/dist/assets/dagre-BM42HDAG-pB6ALkui.js +0 -4
- package/dist/assets/diagram-2AECGRRQ-BaRCrcyV.js +0 -43
- package/dist/assets/diagram-5GNKFQAL-BQ7jB-wB.js +0 -10
- package/dist/assets/diagram-LMA3HP47-Dp4ZNyHD.js +0 -24
- package/dist/assets/diagram-OG6HWLK6-BOfyqaE9.js +0 -24
- package/dist/assets/gitGraphDiagram-PVQCEYII-DMMjKesq.js +0 -106
- package/dist/assets/index-dbebx5u2.js +0 -686
- package/dist/assets/infoDiagram-5YYISTIA-C8_vii01.js +0 -2
- package/dist/assets/layout-DO9UvE1P.js +0 -1
- package/dist/assets/linear-BFc7NSuB.js +0 -1
- package/dist/assets/ordinal-BQ3KlzSu.js +0 -1
- package/dist/assets/pieDiagram-4H26LBE5-CDIg8pdu.js +0 -30
- package/dist/assets/purify.es-DxCUJf2h.js +0 -3
- package/dist/assets/sankeyDiagram-5OEKKPKP-BPMMcQWk.js +0 -40
- package/dist/assets/stateDiagram-AJRCARHV-6za4PsgS.js +0 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-y9EA4Rel.js +0 -1
- package/dist/assets/step-D_f8mI9d.js +0 -1
- package/dist/assets/vennDiagram-CIIHVFJN-Bcqun4j5.js +0 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as
|
|
1
|
+
import{g as Ht}from"./chunk-FMBD7UC4-fKfuBh9D.js";import{_ as m,n as Mt,l as J,c as g1,o as Xt,r as Qt,u as rt,b as Jt,s as Zt,p as $t,a as te,g as ee,q as se,k as ie,t as re,J as ae,v as ne,x as st,d as it,y as ue,z as le,A as oe}from"./MermaidRenderer-pbLK2azB.js";import{c as ce}from"./chunk-ND2GUHAM-B3rtP9nG.js";import{g as he}from"./chunk-55IACEB6-WfRzbzaa.js";import{s as de}from"./chunk-2J33WTMH-m3LCoOx8.js";import{p as pe}from"./purify.es-D6gMnemd.js";import{c as fe}from"./channel-BVBdTOdE.js";import"./index-CtRXyPDv.js";import"./isPrototype-D0troCl1.js";var ge="flowchart-",w1,be=(w1=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,a,u,o,p,c={},k){var K,E;if(!i||i.trim().length===0)return;let r;if(k!==void 0){let f;k.includes(`
|
|
2
2
|
`)?f=k+`
|
|
3
3
|
`:f=`{
|
|
4
4
|
`+k+`
|
|
@@ -6,12 +6,12 @@ import{g as qt}from"./chunk-FMBD7UC4-CILhUhgm.js";import{a as m,aD as Mt,ai as J
|
|
|
6
6
|
|
|
7
7
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
8
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
-
You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,n,a){const u=this.isLinkData(a)?a.id.replace("@",""):void 0;J.info("addLink",i,n,u);for(const o of i)for(const p of n){const c=o===i[i.length-1],k=p===n[0];c&&k?this.addSingleLink(o,p,a,u):this.addSingleLink(o,p,a,void 0)}}updateLinkInterpolate(i,n){i.forEach(a=>{a==="default"?this.edges.defaultInterpolate=n:this.edges[a].interpolate=n})}updateLink(i,n){i.forEach(a=>{var u,o,p,c,k,r;if(typeof a=="number"&&a>=this.edges.length)throw new Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);a==="default"?this.edges.defaultStyle=n:(this.edges[a].style=n,(((o=(u=this.edges[a])==null?void 0:u.style)==null?void 0:o.length)??0)>0&&!((c=(p=this.edges[a])==null?void 0:p.style)!=null&&c.some(A=>A==null?void 0:A.startsWith("fill")))&&((r=(k=this.edges[a])==null?void 0:k.style)==null||r.push("fill:none")))})}addClass(i,n){const a=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(u=>{let o=this.classes.get(u);o===void 0&&(o={id:u,styles:[],textStyles:[]},this.classes.set(u,o)),a!=null&&a.forEach(p=>{if(/color/.exec(p)){const c=p.replace("fill","bgFill");o.textStyles.push(c)}o.styles.push(p)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,n){for(const a of i.split(",")){const u=this.vertices.get(a);u&&u.classes.push(n);const o=this.edges.find(c=>c.id===a);o&&o.classes.push(n);const p=this.subGraphLookup.get(a);p&&p.classes.push(n)}}setTooltip(i,n){if(n!==void 0){n=this.sanitizeText(n);for(const a of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,n)}}setClickFun(i,n,a){if(g1().securityLevel!=="loose"||n===void 0)return;let u=[];if(typeof a=="string"){u=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p<u.length;p++){let c=u[p].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),u[p]=c}}u.length===0&&u.push(i);const o=this.vertices.get(i);o&&(o.haveCallback=!0,this.funs.push(()=>{const p=this.lookUpDomId(i),c=document.querySelector(`[id="${p}"]`);c!==null&&c.addEventListener("click",()=>{rt.runFunc(n,...u)},!1)}))}setLink(i,n,a){i.split(",").forEach(u=>{const o=this.vertices.get(u);o!==void 0&&(o.link=rt.formatUrl(n,this.config),o.linkTarget=a)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,n,a){i.split(",").forEach(u=>{this.setClickFun(u,n,a)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(n=>{n(i)})}getDirection(){var i;return(i=this.direction)==null?void 0:i.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){const n=ce();it(i).select("svg").selectAll("g.node").on("mouseover",o=>{var r;const p=it(o.currentTarget),c=p.attr("title");if(c===null)return;const k=(r=o.currentTarget)==null?void 0:r.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(p.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.bottom+"px"),n.html(pe.sanitize(c)),p.classed("hover",!0)}).on("mouseout",o=>{n.transition().duration(500).style("opacity",0),it(o.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=g1(),ue()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,n,a){let u=i.text.trim(),o=a.text;i===a&&/\s/.exec(a.text)&&(u=void 0);const c=m(b=>{const K={boolean:{},number:{},string:{}},E=[];let f;return{nodeList:b.filter(function(j){const h1=typeof j;return j.stmt&&j.stmt==="dir"?(f=j.value,!1):j.trim()===""?!1:h1 in K?K[h1].hasOwnProperty(j)?!1:K[h1][j]=!0:E.includes(j)?!1:E.push(j)}),dir:f}},"uniq")(n.flat()),k=c.nodeList;let r=c.dir;const A=g1().flowchart??{};if(r=r??(A.inheritDir?this.getDirection()??g1().direction??void 0:void 0),this.version==="gen-1")for(let b=0;b<k.length;b++)k[b]=this.lookUpDomId(k[b]);u=u??"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;const y={id:u,nodes:k,title:o.trim(),classes:[],dir:r,labelType:this.sanitizeNodeLabelType(a==null?void 0:a.type)};return J.info("Adding",y.id,y.nodes,y.dir),y.nodes=this.makeUniq(y,this.subGraphs).nodes,this.subGraphs.push(y),this.subGraphLookup.set(u,y),u}getPosForId(i){for(const[n,a]of this.subGraphs.entries())if(a.id===i)return n;return-1}indexNodes2(i,n){const a=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===i)return{result:!0,count:0};let u=0,o=1;for(;u<a.length;){const p=this.getPosForId(a[u]);if(p>=0){const c=this.indexNodes2(i,p);if(c.result)return{result:!0,count:o+c.count};o=o+c.count}u=u+1}return{result:!1,count:o}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let n=i.trim(),a="arrow_open";switch(n[0]){case"<":a="arrow_point",n=n.slice(1);break;case"x":a="arrow_cross",n=n.slice(1);break;case"o":a="arrow_circle",n=n.slice(1);break}let u="normal";return n.includes("=")&&(u="thick"),n.includes(".")&&(u="dotted"),{type:a,stroke:u}}countChar(i,n){const a=n.length;let u=0;for(let o=0;o<a;++o)n[o]===i&&++u;return u}destructEndLink(i){const n=i.trim();let a=n.slice(0,-1),u="arrow_open";switch(n.slice(-1)){case"x":u="arrow_cross",n.startsWith("x")&&(u="double_"+u,a=a.slice(1));break;case">":u="arrow_point",n.startsWith("<")&&(u="double_"+u,a=a.slice(1));break;case"o":u="arrow_circle",n.startsWith("o")&&(u="double_"+u,a=a.slice(1));break}let o="normal",p=a.length-1;a.startsWith("=")&&(o="thick"),a.startsWith("~")&&(o="invisible");const c=this.countChar(".",a);return c&&(o="dotted",p=c),{type:u,stroke:o,length:p}}destructLink(i,n){const a=this.destructEndLink(i);let u;if(n){if(u=this.destructStartLink(n),u.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=a.type;else{if(u.type!==a.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}return u.type==="double_arrow"&&(u.type="double_arrow_point"),u.length=a.length,u}return a}exists(i,n){for(const a of i)if(a.nodes.includes(n))return!0;return!1}makeUniq(i,n){const a=[];return i.nodes.forEach((u,o)=>{this.exists(n,u)||a.push(i.nodes[o])}),{nodes:a}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,n){return i.find(a=>a.id===n)}destructEdgeType(i){let n="none",a="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":a=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=i.replace("double_",""),a=n;break}return{arrowTypeStart:n,arrowTypeEnd:a}}addNodeFromVertex(i,n,a,u,o,p){var A;const c=a.get(i.id),k=u.get(i.id)??!1,r=this.findNode(n,i.id);if(r)r.cssStyles=i.styles,r.cssCompiledStyles=this.getCompiledStyles(i.classes),r.cssClasses=i.classes.join(" ");else{const y={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:c,padding:((A=o.flowchart)==null?void 0:A.padding)||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:p,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};k?n.push({...y,isGroup:!0,shape:"rect"}):n.push({...y,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let n=[];for(const a of i){const u=this.classes.get(a);u!=null&&u.styles&&(n=[...n,...u.styles??[]].map(o=>o.trim())),u!=null&&u.textStyles&&(n=[...n,...u.textStyles??[]].map(o=>o.trim()))}return n}getData(){const i=g1(),n=[],a=[],u=this.getSubGraphs(),o=new Map,p=new Map;for(let r=u.length-1;r>=0;r--){const A=u[r];A.nodes.length>0&&p.set(A.id,!0);for(const y of A.nodes)o.set(y,A.id)}for(let r=u.length-1;r>=0;r--){const A=u[r];n.push({id:A.id,label:A.title,labelStyle:"",labelType:A.labelType,parentId:o.get(A.id),padding:8,cssCompiledStyles:this.getCompiledStyles(A.classes),cssClasses:A.classes.join(" "),shape:"rect",dir:A.dir,isGroup:!0,look:i.look})}this.getVertices().forEach(r=>{this.addNodeFromVertex(r,n,o,p,i,i.look||"classic")});const k=this.getEdges();return k.forEach((r,A)=>{var f;const{arrowTypeStart:y,arrowTypeEnd:b}=this.destructEdgeType(r.type),K=[...k.defaultStyle??[]];r.style&&K.push(...r.style);const E={id:st(r.start,r.end,{counter:A,prefix:"L"},r.id),isUserDefinedId:r.isUserDefinedId,start:r.start,end:r.end,type:r.type??"normal",label:r.text,labelType:r.labelType,labelpos:"c",thickness:r.stroke,minlen:r.length,classes:(r==null?void 0:r.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(r==null?void 0:r.stroke)==="invisible"||(r==null?void 0:r.type)==="arrow_open"?"none":y,arrowTypeEnd:(r==null?void 0:r.stroke)==="invisible"||(r==null?void 0:r.type)==="arrow_open"?"none":b,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(r.classes),labelStyle:K,style:K,pattern:r.stroke,look:i.look,animate:r.animate,animation:r.animation,curve:r.interpolate||this.edges.defaultInterpolate||((f=i.flowchart)==null?void 0:f.curve)};a.push(E)}),{nodes:n,edges:a,other:{},config:i}}defaultConfig(){return le.flowchart}},m(w1,"FlowDB"),w1),Ae=m(function(s,i){return i.db.getClasses()},"getClasses"),ke=m(async function(s,i,n,a){var y;J.info("REF0:"),J.info("Drawing state diagram (v2)",i);const{securityLevel:u,flowchart:o,layout:p}=g1();a.db.setDiagramId(i),J.debug("Before getData: ");const c=a.db.getData();J.debug("Data: ",c);const k=he(i,u),r=a.db.getDirection();c.type=a.type,c.layoutAlgorithm=Xt(p),c.layoutAlgorithm==="dagre"&&p==="elk"&&J.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),c.direction=r,c.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,c.rankSpacing=(o==null?void 0:o.rankSpacing)||50,c.markers=["point","circle","cross"],c.diagramId=i,J.debug("REF1:",c),await Qt(c,k);const A=((y=c.config.flowchart)==null?void 0:y.diagramPadding)??8;rt.insertTitle(k,"flowchartTitleText",(o==null?void 0:o.titleTopMargin)||0,a.db.getDiagramTitle()),de(k,A,"flowchart",(o==null?void 0:o.useMaxWidth)||!1)},"draw"),me={getClasses:Ae,draw:ke},at=function(){var s=m(function(f1,h,d,g){for(d=d||{},g=f1.length;g--;d[f1[g]]=h);return d},"o"),i=[1,4],n=[1,3],a=[1,5],u=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],o=[2,2],p=[1,13],c=[1,14],k=[1,15],r=[1,16],A=[1,23],y=[1,25],b=[1,26],K=[1,27],E=[1,50],f=[1,49],N1=[1,29],j=[1,30],h1=[1,31],P1=[1,32],O1=[1,33],L=[1,45],V=[1,47],I=[1,43],R=[1,48],w=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],M1=[1,34],U1=[1,35],z1=[1,36],W1=[1,37],K1=[1,38],d1=[1,58],x=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],t1=[1,61],e1=[1,63],m1=[8,9,11,75,77,78],nt=[1,79],T1=[1,92],C1=[1,97],D1=[1,96],S1=[1,93],y1=[1,89],x1=[1,95],E1=[1,91],F1=[1,98],_1=[1,94],B1=[1,99],v1=[1,90],b1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],H=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ut=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],L1=[44,60,89,102,105,106,109,111,114,115,116],lt=[1,122],ot=[1,123],j1=[1,125],Y1=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ht=[1,134],dt=[1,148],pt=[1,149],ft=[1,150],gt=[1,151],bt=[1,136],At=[1,138],kt=[1,142],mt=[1,143],Tt=[1,144],Ct=[1,145],Dt=[1,146],St=[1,147],yt=[1,152],xt=[1,153],Et=[1,132],Ft=[1,133],_t=[1,140],Bt=[1,135],vt=[1,139],Lt=[1,137],Q1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Vt=[1,155],It=[1,157],B=[8,9,11],q=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],T=[1,177],z=[1,173],W=[1,174],C=[1,178],D=[1,175],S=[1,176],V1=[77,116,119],F=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Rt=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],l1=[1,249],o1=[1,251],I1=[1,269],wt=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],J1={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:m(function(h,d,g,l,_,t,G1){var e=t.length-1;switch(_){case 2:this.$=[];break;case 3:(!Array.isArray(t[e])||t[e].length>0)&&t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 183:this.$=t[e];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(t[e-1]),this.$=t[e-1];break;case 27:this.$=t[e-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(t[e-6],t[e-1],t[e-4]);break;case 34:this.$=l.addSubGraph(t[e-3],t[e-1],t[e-3]);break;case 35:this.$=l.addSubGraph(void 0,t[e-1],void 0);break;case 37:this.$=t[e].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=t[e].trim(),l.setAccDescription(this.$);break;case 43:this.$=t[e-1]+t[e];break;case 44:this.$=t[e];break;case 45:l.addVertex(t[e-1][t[e-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e]),l.addLink(t[e-3].stmt,t[e-1],t[e-2]),this.$={stmt:t[e-1],nodes:t[e-1].concat(t[e-3].nodes)};break;case 46:l.addLink(t[e-2].stmt,t[e],t[e-1]),this.$={stmt:t[e],nodes:t[e].concat(t[e-2].nodes)};break;case 47:l.addLink(t[e-3].stmt,t[e-1],t[e-2]),this.$={stmt:t[e-1],nodes:t[e-1].concat(t[e-3].nodes)};break;case 48:this.$={stmt:t[e-1],nodes:t[e-1]};break;case 49:l.addVertex(t[e-1][t[e-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e]),this.$={stmt:t[e-1],nodes:t[e-1],shapeData:t[e]};break;case 50:this.$={stmt:t[e],nodes:t[e]};break;case 51:this.$=[t[e]];break;case 52:l.addVertex(t[e-5][t[e-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e-4]),this.$=t[e-5].concat(t[e]);break;case 53:this.$=t[e-4].concat(t[e]);break;case 54:this.$=t[e];break;case 55:this.$=t[e-2],l.setClass(t[e-2],t[e]);break;case 56:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"square");break;case 57:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"doublecircle");break;case 58:this.$=t[e-5],l.addVertex(t[e-5],t[e-2],"circle");break;case 59:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"ellipse");break;case 60:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"stadium");break;case 61:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"subroutine");break;case 62:this.$=t[e-7],l.addVertex(t[e-7],t[e-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[e-5],t[e-3]]]));break;case 63:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"cylinder");break;case 64:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"round");break;case 65:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"diamond");break;case 66:this.$=t[e-5],l.addVertex(t[e-5],t[e-2],"hexagon");break;case 67:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"odd");break;case 68:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"trapezoid");break;case 69:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"inv_trapezoid");break;case 70:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"lean_right");break;case 71:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"lean_left");break;case 72:this.$=t[e],l.addVertex(t[e]);break;case 73:t[e-1].text=t[e],this.$=t[e-1];break;case 74:case 75:t[e-2].text=t[e-1],this.$=t[e-2];break;case 76:this.$=t[e];break;case 77:var v=l.destructLink(t[e],t[e-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[e-1]};break;case 78:var v=l.destructLink(t[e],t[e-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[e-1],id:t[e-3]};break;case 79:this.$={text:t[e],type:"text"};break;case 80:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 81:this.$={text:t[e],type:"string"};break;case 82:this.$={text:t[e],type:"markdown"};break;case 83:var v=l.destructLink(t[e]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=l.destructLink(t[e]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[e-1]};break;case 85:this.$=t[e-1];break;case 86:this.$={text:t[e],type:"text"};break;case 87:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 88:this.$={text:t[e],type:"string"};break;case 89:case 104:this.$={text:t[e],type:"markdown"};break;case 101:this.$={text:t[e],type:"text"};break;case 102:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 103:this.$={text:t[e],type:"text"};break;case 105:this.$=t[e-4],l.addClass(t[e-2],t[e]);break;case 106:this.$=t[e-4],l.setClass(t[e-2],t[e]);break;case 107:case 115:this.$=t[e-1],l.setClickEvent(t[e-1],t[e]);break;case 108:case 116:this.$=t[e-3],l.setClickEvent(t[e-3],t[e-2]),l.setTooltip(t[e-3],t[e]);break;case 109:this.$=t[e-2],l.setClickEvent(t[e-2],t[e-1],t[e]);break;case 110:this.$=t[e-4],l.setClickEvent(t[e-4],t[e-3],t[e-2]),l.setTooltip(t[e-4],t[e]);break;case 111:this.$=t[e-2],l.setLink(t[e-2],t[e]);break;case 112:this.$=t[e-4],l.setLink(t[e-4],t[e-2]),l.setTooltip(t[e-4],t[e]);break;case 113:this.$=t[e-4],l.setLink(t[e-4],t[e-2],t[e]);break;case 114:this.$=t[e-6],l.setLink(t[e-6],t[e-4],t[e]),l.setTooltip(t[e-6],t[e-2]);break;case 117:this.$=t[e-1],l.setLink(t[e-1],t[e]);break;case 118:this.$=t[e-3],l.setLink(t[e-3],t[e-2]),l.setTooltip(t[e-3],t[e]);break;case 119:this.$=t[e-3],l.setLink(t[e-3],t[e-2],t[e]);break;case 120:this.$=t[e-5],l.setLink(t[e-5],t[e-4],t[e]),l.setTooltip(t[e-5],t[e-2]);break;case 121:this.$=t[e-4],l.addVertex(t[e-2],void 0,void 0,t[e]);break;case 122:this.$=t[e-4],l.updateLink([t[e-2]],t[e]);break;case 123:this.$=t[e-4],l.updateLink(t[e-2],t[e]);break;case 124:this.$=t[e-8],l.updateLinkInterpolate([t[e-6]],t[e-2]),l.updateLink([t[e-6]],t[e]);break;case 125:this.$=t[e-8],l.updateLinkInterpolate(t[e-6],t[e-2]),l.updateLink(t[e-6],t[e]);break;case 126:this.$=t[e-6],l.updateLinkInterpolate([t[e-4]],t[e]);break;case 127:this.$=t[e-6],l.updateLinkInterpolate(t[e-4],t[e]);break;case 128:case 130:this.$=[t[e]];break;case 129:case 131:t[e-2].push(t[e]),this.$=t[e-2];break;case 133:this.$=t[e-1]+t[e];break;case 181:this.$=t[e];break;case 182:this.$=t[e-1]+""+t[e];break;case 184:this.$=t[e-1]+""+t[e];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:n,12:a},{1:[3]},s(u,o,{5:6}),{4:7,9:i,10:n,12:a},{4:8,9:i,10:n,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},s(u,[2,9]),s(u,[2,10]),s(u,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},s(x,[2,3]),s(x,[2,4]),s(x,[2,5]),s(x,[2,6]),s(x,[2,7]),s(x,[2,8]),{8:$,9:t1,11:e1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:t1,11:e1,21:68},{8:$,9:t1,11:e1,21:69},{8:$,9:t1,11:e1,21:70},{8:$,9:t1,11:e1,21:71},{8:$,9:t1,11:e1,21:72},{8:$,9:t1,10:[1,73],11:e1,21:74},s(x,[2,36]),{35:[1,75]},{37:[1,76]},s(x,[2,39]),s(m1,[2,50],{18:77,39:78,10:d1,40:nt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:T1,44:C1,60:D1,80:[1,87],89:S1,95:[1,84],97:[1,85],101:86,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1,120:88},s(x,[2,185]),s(x,[2,186]),s(x,[2,187]),s(x,[2,188]),s(x,[2,189]),s(b1,[2,51]),s(b1,[2,54],{46:[1,100]}),s(U,[2,72],{113:113,29:[1,101],44:E,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:f,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:R,109:w,111:N,114:G,115:P,116:O}),s(H,[2,181]),s(H,[2,142]),s(H,[2,143]),s(H,[2,144]),s(H,[2,145]),s(H,[2,146]),s(H,[2,147]),s(H,[2,148]),s(H,[2,149]),s(H,[2,150]),s(H,[2,151]),s(H,[2,152]),s(u,[2,12]),s(u,[2,18]),s(u,[2,19]),{9:[1,114]},s(ut,[2,26],{18:115,10:d1}),s(x,[2,27]),{42:116,43:39,44:E,45:40,47:41,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(x,[2,40]),s(x,[2,41]),s(x,[2,42]),s(L1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:lt,81:ot,116:j1,119:Y1},{75:[1,126],77:[1,127]},s(ct,[2,83]),s(x,[2,28]),s(x,[2,29]),s(x,[2,30]),s(x,[2,31]),s(x,[2,32]),{10:ht,12:dt,14:pt,27:ft,28:128,32:gt,44:bt,60:At,75:kt,80:[1,130],81:[1,131],83:141,84:mt,85:Tt,86:Ct,87:Dt,88:St,89:yt,90:xt,91:129,105:Et,109:Ft,111:_t,114:Bt,115:vt,116:Lt},s(Q1,o,{5:154}),s(x,[2,37]),s(x,[2,38]),s(m1,[2,48],{44:Vt}),s(m1,[2,49],{18:156,10:d1,40:It}),s(b1,[2,44]),{44:E,47:158,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:E,47:162,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{44:E,47:163,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(B,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},s(B,[2,115],{120:168,10:[1,167],14:T1,44:C1,60:D1,89:S1,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1}),s(B,[2,117],{10:[1,169]}),s(q,[2,183]),s(q,[2,170]),s(q,[2,171]),s(q,[2,172]),s(q,[2,173]),s(q,[2,174]),s(q,[2,175]),s(q,[2,176]),s(q,[2,177]),s(q,[2,178]),s(q,[2,179]),s(q,[2,180]),{44:E,47:170,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{30:171,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:179,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:181,50:[1,180],67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:182,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:183,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:184,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{109:[1,185]},{30:186,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:187,65:[1,188],67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:189,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:190,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:191,67:T,80:z,81:W,82:172,116:C,117:D,118:S},s(H,[2,182]),s(u,[2,20]),s(ut,[2,25]),s(m1,[2,46],{39:192,18:193,10:d1,40:nt}),s(L1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{77:[1,197],79:198,116:j1,119:Y1},s(V1,[2,79]),s(V1,[2,81]),s(V1,[2,82]),s(V1,[2,168]),s(V1,[2,169]),{76:199,79:121,80:lt,81:ot,116:j1,119:Y1},s(ct,[2,84]),{8:$,9:t1,10:ht,11:e1,12:dt,14:pt,21:201,27:ft,29:[1,200],32:gt,44:bt,60:At,75:kt,83:141,84:mt,85:Tt,86:Ct,87:Dt,88:St,89:yt,90:xt,91:202,105:Et,109:Ft,111:_t,114:Bt,115:vt,116:Lt},s(F,[2,101]),s(F,[2,103]),s(F,[2,104]),s(F,[2,157]),s(F,[2,158]),s(F,[2,159]),s(F,[2,160]),s(F,[2,161]),s(F,[2,162]),s(F,[2,163]),s(F,[2,164]),s(F,[2,165]),s(F,[2,166]),s(F,[2,167]),s(F,[2,90]),s(F,[2,91]),s(F,[2,92]),s(F,[2,93]),s(F,[2,94]),s(F,[2,95]),s(F,[2,96]),s(F,[2,97]),s(F,[2,98]),s(F,[2,99]),s(F,[2,100]),{6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,203],33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},{10:d1,18:204},{44:[1,205]},s(b1,[2,43]),{10:[1,206],44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},s(Rt,[2,128]),{10:[1,210],44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},s(B,[2,109],{10:[1,213]}),s(B,[2,111],{10:[1,214]}),{80:[1,215]},s(q,[2,184]),{80:[1,216],98:[1,217]},s(b1,[2,55],{113:113,44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,114:G,115:P,116:O}),{31:[1,218],67:T,82:219,116:C,117:D,118:S},s(p1,[2,86]),s(p1,[2,88]),s(p1,[2,89]),s(p1,[2,153]),s(p1,[2,154]),s(p1,[2,155]),s(p1,[2,156]),{49:[1,220],67:T,82:219,116:C,117:D,118:S},{30:221,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{51:[1,222],67:T,82:219,116:C,117:D,118:S},{53:[1,223],67:T,82:219,116:C,117:D,118:S},{55:[1,224],67:T,82:219,116:C,117:D,118:S},{57:[1,225],67:T,82:219,116:C,117:D,118:S},{60:[1,226]},{64:[1,227],67:T,82:219,116:C,117:D,118:S},{66:[1,228],67:T,82:219,116:C,117:D,118:S},{30:229,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{31:[1,230],67:T,82:219,116:C,117:D,118:S},{67:T,69:[1,231],71:[1,232],82:219,116:C,117:D,118:S},{67:T,69:[1,234],71:[1,233],82:219,116:C,117:D,118:S},s(m1,[2,45],{18:156,10:d1,40:It}),s(m1,[2,47],{44:Vt}),s(L1,[2,75]),s(L1,[2,74]),{62:[1,235],67:T,82:219,116:C,117:D,118:S},s(L1,[2,77]),s(V1,[2,80]),{77:[1,236],79:198,116:j1,119:Y1},{30:237,67:T,80:z,81:W,82:172,116:C,117:D,118:S},s(Q1,o,{5:238}),s(F,[2,102]),s(x,[2,35]),{43:239,44:E,45:40,47:41,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{44:E,47:258,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(B,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},s(B,[2,116]),s(B,[2,118],{10:[1,262]}),s(B,[2,119]),s(U,[2,56]),s(p1,[2,87]),s(U,[2,57]),{51:[1,263],67:T,82:219,116:C,117:D,118:S},s(U,[2,64]),s(U,[2,59]),s(U,[2,60]),s(U,[2,61]),{109:[1,264]},s(U,[2,63]),s(U,[2,65]),{66:[1,265],67:T,82:219,116:C,117:D,118:S},s(U,[2,67]),s(U,[2,68]),s(U,[2,70]),s(U,[2,69]),s(U,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(L1,[2,78]),{31:[1,266],67:T,82:219,116:C,117:D,118:S},{6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,267],33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},s(b1,[2,53]),{43:268,44:E,45:40,47:41,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(B,[2,121],{106:I1}),s(wt,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:l1,112:o1}),s(Z,[2,132]),s(Z,[2,134]),s(Z,[2,135]),s(Z,[2,136]),s(Z,[2,137]),s(Z,[2,138]),s(Z,[2,139]),s(Z,[2,140]),s(Z,[2,141]),s(B,[2,122],{106:I1}),{10:[1,271]},s(B,[2,123],{106:I1}),{10:[1,272]},s(Rt,[2,129]),s(B,[2,105],{106:I1}),s(B,[2,106],{113:113,44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,114:G,115:P,116:O}),s(B,[2,110]),s(B,[2,112],{10:[1,273]}),s(B,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:t1,11:e1,21:278},s(x,[2,34]),s(b1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:l1,112:o1},s(Z,[2,133]),{14:T1,44:C1,60:D1,89:S1,101:280,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1,120:88},{14:T1,44:C1,60:D1,89:S1,101:281,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1,120:88},{98:[1,282]},s(B,[2,120]),s(U,[2,58]),{30:283,67:T,80:z,81:W,82:172,116:C,117:D,118:S},s(U,[2,66]),s(Q1,o,{5:284}),s(wt,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:l1,112:o1}),s(B,[2,126],{120:168,10:[1,285],14:T1,44:C1,60:D1,89:S1,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1}),s(B,[2,127],{120:168,10:[1,286],14:T1,44:C1,60:D1,89:S1,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1}),s(B,[2,114]),{31:[1,287],67:T,82:219,116:C,117:D,118:S},{6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,288],33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},s(U,[2,62]),s(x,[2,33]),s(B,[2,124],{106:I1}),s(B,[2,125],{106:I1})],defaultActions:{},parseError:m(function(h,d){if(d.recoverable)this.trace(h);else{var g=new Error(h);throw g.hash=d,g}},"parseError"),parse:m(function(h){var d=this,g=[0],l=[],_=[null],t=[],G1=this.table,e="",v=0,Nt=0,Kt=2,Gt=1,jt=t.slice.call(arguments,1),M=Object.create(this.lexer),A1={yy:{}};for(var Z1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z1)&&(A1.yy[Z1]=this.yy[Z1]);M.setInput(h,A1.yy),A1.yy.lexer=M,A1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var $1=M.yylloc;t.push($1);var Yt=M.options&&M.options.ranges;typeof A1.yy.parseError=="function"?this.parseError=A1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ht(X){g.length=g.length-2*X,_.length=_.length-X,t.length=t.length-X}m(Ht,"popStack");function Pt(){var X;return X=l.pop()||M.lex()||Gt,typeof X!="number"&&(X instanceof Array&&(l=X,X=l.pop()),X=d.symbols_[X]||X),X}m(Pt,"lex");for(var Y,k1,Q,tt,R1={},q1,c1,Ot,X1;;){if(k1=g[g.length-1],this.defaultActions[k1]?Q=this.defaultActions[k1]:((Y===null||typeof Y>"u")&&(Y=Pt()),Q=G1[k1]&&G1[k1][Y]),typeof Q>"u"||!Q.length||!Q[0]){var et="";X1=[];for(q1 in G1[k1])this.terminals_[q1]&&q1>Kt&&X1.push("'"+this.terminals_[q1]+"'");M.showPosition?et="Parse error on line "+(v+1)+`:
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,n,a){const u=this.isLinkData(a)?a.id.replace("@",""):void 0;J.info("addLink",i,n,u);for(const o of i)for(const p of n){const c=o===i[i.length-1],k=p===n[0];c&&k?this.addSingleLink(o,p,a,u):this.addSingleLink(o,p,a,void 0)}}updateLinkInterpolate(i,n){i.forEach(a=>{a==="default"?this.edges.defaultInterpolate=n:this.edges[a].interpolate=n})}updateLink(i,n){i.forEach(a=>{var u,o,p,c,k,r;if(typeof a=="number"&&a>=this.edges.length)throw new Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);a==="default"?this.edges.defaultStyle=n:(this.edges[a].style=n,(((o=(u=this.edges[a])==null?void 0:u.style)==null?void 0:o.length)??0)>0&&!((c=(p=this.edges[a])==null?void 0:p.style)!=null&&c.some(A=>A==null?void 0:A.startsWith("fill")))&&((r=(k=this.edges[a])==null?void 0:k.style)==null||r.push("fill:none")))})}addClass(i,n){const a=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(u=>{let o=this.classes.get(u);o===void 0&&(o={id:u,styles:[],textStyles:[]},this.classes.set(u,o)),a!=null&&a.forEach(p=>{if(/color/.exec(p)){const c=p.replace("fill","bgFill");o.textStyles.push(c)}o.styles.push(p)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,n){for(const a of i.split(",")){const u=this.vertices.get(a);u&&u.classes.push(n);const o=this.edges.find(c=>c.id===a);o&&o.classes.push(n);const p=this.subGraphLookup.get(a);p&&p.classes.push(n)}}setTooltip(i,n){if(n!==void 0){n=this.sanitizeText(n);for(const a of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,n)}}setClickFun(i,n,a){if(g1().securityLevel!=="loose"||n===void 0)return;let u=[];if(typeof a=="string"){u=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p<u.length;p++){let c=u[p].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),u[p]=c}}u.length===0&&u.push(i);const o=this.vertices.get(i);o&&(o.haveCallback=!0,this.funs.push(()=>{const p=this.lookUpDomId(i),c=document.querySelector(`[id="${p}"]`);c!==null&&c.addEventListener("click",()=>{rt.runFunc(n,...u)},!1)}))}setLink(i,n,a){i.split(",").forEach(u=>{const o=this.vertices.get(u);o!==void 0&&(o.link=rt.formatUrl(n,this.config),o.linkTarget=a)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,n,a){i.split(",").forEach(u=>{this.setClickFun(u,n,a)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(n=>{n(i)})}getDirection(){var i;return(i=this.direction)==null?void 0:i.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){const n=ce();it(i).select("svg").selectAll("g.node").on("mouseover",o=>{var r;const p=it(o.currentTarget),c=p.attr("title");if(c===null)return;const k=(r=o.currentTarget)==null?void 0:r.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(p.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.bottom+"px"),n.html(pe.sanitize(c)),p.classed("hover",!0)}).on("mouseout",o=>{n.transition().duration(500).style("opacity",0),it(o.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=g1(),ue()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,n,a){let u=i.text.trim(),o=a.text;i===a&&/\s/.exec(a.text)&&(u=void 0);const c=m(b=>{const K={boolean:{},number:{},string:{}},E=[];let f;return{nodeList:b.filter(function(j){const h1=typeof j;return j.stmt&&j.stmt==="dir"?(f=j.value,!1):j.trim()===""?!1:h1 in K?K[h1].hasOwnProperty(j)?!1:K[h1][j]=!0:E.includes(j)?!1:E.push(j)}),dir:f}},"uniq")(n.flat()),k=c.nodeList;let r=c.dir;const A=g1().flowchart??{};if(r=r??(A.inheritDir?this.getDirection()??g1().direction??void 0:void 0),this.version==="gen-1")for(let b=0;b<k.length;b++)k[b]=this.lookUpDomId(k[b]);u=u??"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;const y={id:u,nodes:k,title:o.trim(),classes:[],dir:r,labelType:this.sanitizeNodeLabelType(a==null?void 0:a.type)};return J.info("Adding",y.id,y.nodes,y.dir),y.nodes=this.makeUniq(y,this.subGraphs).nodes,this.subGraphs.push(y),this.subGraphLookup.set(u,y),u}getPosForId(i){for(const[n,a]of this.subGraphs.entries())if(a.id===i)return n;return-1}indexNodes2(i,n){const a=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===i)return{result:!0,count:0};let u=0,o=1;for(;u<a.length;){const p=this.getPosForId(a[u]);if(p>=0){const c=this.indexNodes2(i,p);if(c.result)return{result:!0,count:o+c.count};o=o+c.count}u=u+1}return{result:!1,count:o}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let n=i.trim(),a="arrow_open";switch(n[0]){case"<":a="arrow_point",n=n.slice(1);break;case"x":a="arrow_cross",n=n.slice(1);break;case"o":a="arrow_circle",n=n.slice(1);break}let u="normal";return n.includes("=")&&(u="thick"),n.includes(".")&&(u="dotted"),{type:a,stroke:u}}countChar(i,n){const a=n.length;let u=0;for(let o=0;o<a;++o)n[o]===i&&++u;return u}destructEndLink(i){const n=i.trim();let a=n.slice(0,-1),u="arrow_open";switch(n.slice(-1)){case"x":u="arrow_cross",n.startsWith("x")&&(u="double_"+u,a=a.slice(1));break;case">":u="arrow_point",n.startsWith("<")&&(u="double_"+u,a=a.slice(1));break;case"o":u="arrow_circle",n.startsWith("o")&&(u="double_"+u,a=a.slice(1));break}let o="normal",p=a.length-1;a.startsWith("=")&&(o="thick"),a.startsWith("~")&&(o="invisible");const c=this.countChar(".",a);return c&&(o="dotted",p=c),{type:u,stroke:o,length:p}}destructLink(i,n){const a=this.destructEndLink(i);let u;if(n){if(u=this.destructStartLink(n),u.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=a.type;else{if(u.type!==a.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}return u.type==="double_arrow"&&(u.type="double_arrow_point"),u.length=a.length,u}return a}exists(i,n){for(const a of i)if(a.nodes.includes(n))return!0;return!1}makeUniq(i,n){const a=[];return i.nodes.forEach((u,o)=>{this.exists(n,u)||a.push(i.nodes[o])}),{nodes:a}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,n){return i.find(a=>a.id===n)}destructEdgeType(i){let n="none",a="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":a=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=i.replace("double_",""),a=n;break}return{arrowTypeStart:n,arrowTypeEnd:a}}addNodeFromVertex(i,n,a,u,o,p){var A;const c=a.get(i.id),k=u.get(i.id)??!1,r=this.findNode(n,i.id);if(r)r.cssStyles=i.styles,r.cssCompiledStyles=this.getCompiledStyles(i.classes),r.cssClasses=i.classes.join(" ");else{const y={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:c,padding:((A=o.flowchart)==null?void 0:A.padding)||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:p,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};k?n.push({...y,isGroup:!0,shape:"rect"}):n.push({...y,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let n=[];for(const a of i){const u=this.classes.get(a);u!=null&&u.styles&&(n=[...n,...u.styles??[]].map(o=>o.trim())),u!=null&&u.textStyles&&(n=[...n,...u.textStyles??[]].map(o=>o.trim()))}return n}getData(){const i=g1(),n=[],a=[],u=this.getSubGraphs(),o=new Map,p=new Map;for(let r=u.length-1;r>=0;r--){const A=u[r];A.nodes.length>0&&p.set(A.id,!0);for(const y of A.nodes)o.set(y,A.id)}for(let r=u.length-1;r>=0;r--){const A=u[r];n.push({id:A.id,label:A.title,labelStyle:"",labelType:A.labelType,parentId:o.get(A.id),padding:8,cssCompiledStyles:this.getCompiledStyles(A.classes),cssClasses:A.classes.join(" "),shape:"rect",dir:A.dir,isGroup:!0,look:i.look})}this.getVertices().forEach(r=>{this.addNodeFromVertex(r,n,o,p,i,i.look||"classic")});const k=this.getEdges();return k.forEach((r,A)=>{var f;const{arrowTypeStart:y,arrowTypeEnd:b}=this.destructEdgeType(r.type),K=[...k.defaultStyle??[]];r.style&&K.push(...r.style);const E={id:st(r.start,r.end,{counter:A,prefix:"L"},r.id),isUserDefinedId:r.isUserDefinedId,start:r.start,end:r.end,type:r.type??"normal",label:r.text,labelType:r.labelType,labelpos:"c",thickness:r.stroke,minlen:r.length,classes:(r==null?void 0:r.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(r==null?void 0:r.stroke)==="invisible"||(r==null?void 0:r.type)==="arrow_open"?"none":y,arrowTypeEnd:(r==null?void 0:r.stroke)==="invisible"||(r==null?void 0:r.type)==="arrow_open"?"none":b,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(r.classes),labelStyle:K,style:K,pattern:r.stroke,look:i.look,animate:r.animate,animation:r.animation,curve:r.interpolate||this.edges.defaultInterpolate||((f=i.flowchart)==null?void 0:f.curve)};a.push(E)}),{nodes:n,edges:a,other:{},config:i}}defaultConfig(){return le.flowchart}},m(w1,"FlowDB"),w1),Ae=m(function(s,i){return i.db.getClasses()},"getClasses"),ke=m(async function(s,i,n,a){var y;J.info("REF0:"),J.info("Drawing state diagram (v2)",i);const{securityLevel:u,flowchart:o,layout:p}=g1();a.db.setDiagramId(i),J.debug("Before getData: ");const c=a.db.getData();J.debug("Data: ",c);const k=he(i,u),r=a.db.getDirection();c.type=a.type,c.layoutAlgorithm=Xt(p),c.layoutAlgorithm==="dagre"&&p==="elk"&&J.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),c.direction=r,c.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,c.rankSpacing=(o==null?void 0:o.rankSpacing)||50,c.markers=["point","circle","cross"],c.diagramId=i,J.debug("REF1:",c),await Qt(c,k);const A=((y=c.config.flowchart)==null?void 0:y.diagramPadding)??8;rt.insertTitle(k,"flowchartTitleText",(o==null?void 0:o.titleTopMargin)||0,a.db.getDiagramTitle()),de(k,A,"flowchart",(o==null?void 0:o.useMaxWidth)||!1)},"draw"),me={getClasses:Ae,draw:ke},at=function(){var s=m(function(f1,h,d,g){for(d=d||{},g=f1.length;g--;d[f1[g]]=h);return d},"o"),i=[1,4],n=[1,3],a=[1,5],u=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],o=[2,2],p=[1,13],c=[1,14],k=[1,15],r=[1,16],A=[1,23],y=[1,25],b=[1,26],K=[1,27],E=[1,50],f=[1,49],N1=[1,29],j=[1,30],h1=[1,31],P1=[1,32],O1=[1,33],L=[1,45],V=[1,47],I=[1,43],R=[1,48],w=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],M1=[1,34],U1=[1,35],z1=[1,36],W1=[1,37],K1=[1,38],d1=[1,58],x=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],t1=[1,61],e1=[1,63],m1=[8,9,11,75,77,78],nt=[1,79],T1=[1,92],C1=[1,97],D1=[1,96],S1=[1,93],y1=[1,89],x1=[1,95],E1=[1,91],F1=[1,98],_1=[1,94],B1=[1,99],v1=[1,90],b1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ut=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],L1=[44,60,89,102,105,106,109,111,114,115,116],lt=[1,122],ot=[1,123],j1=[1,125],Y1=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ht=[1,134],dt=[1,148],pt=[1,149],ft=[1,150],gt=[1,151],bt=[1,136],At=[1,138],kt=[1,142],mt=[1,143],Tt=[1,144],Ct=[1,145],Dt=[1,146],St=[1,147],yt=[1,152],xt=[1,153],Et=[1,132],Ft=[1,133],_t=[1,140],Bt=[1,135],vt=[1,139],Lt=[1,137],Q1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Vt=[1,155],It=[1,157],B=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],T=[1,177],z=[1,173],W=[1,174],C=[1,178],D=[1,175],S=[1,176],V1=[77,116,119],F=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Rt=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],l1=[1,249],o1=[1,251],I1=[1,269],wt=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],J1={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:m(function(h,d,g,l,_,t,G1){var e=t.length-1;switch(_){case 2:this.$=[];break;case 3:(!Array.isArray(t[e])||t[e].length>0)&&t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 183:this.$=t[e];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(t[e-1]),this.$=t[e-1];break;case 27:this.$=t[e-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(t[e-6],t[e-1],t[e-4]);break;case 34:this.$=l.addSubGraph(t[e-3],t[e-1],t[e-3]);break;case 35:this.$=l.addSubGraph(void 0,t[e-1],void 0);break;case 37:this.$=t[e].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=t[e].trim(),l.setAccDescription(this.$);break;case 43:this.$=t[e-1]+t[e];break;case 44:this.$=t[e];break;case 45:l.addVertex(t[e-1][t[e-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e]),l.addLink(t[e-3].stmt,t[e-1],t[e-2]),this.$={stmt:t[e-1],nodes:t[e-1].concat(t[e-3].nodes)};break;case 46:l.addLink(t[e-2].stmt,t[e],t[e-1]),this.$={stmt:t[e],nodes:t[e].concat(t[e-2].nodes)};break;case 47:l.addLink(t[e-3].stmt,t[e-1],t[e-2]),this.$={stmt:t[e-1],nodes:t[e-1].concat(t[e-3].nodes)};break;case 48:this.$={stmt:t[e-1],nodes:t[e-1]};break;case 49:l.addVertex(t[e-1][t[e-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e]),this.$={stmt:t[e-1],nodes:t[e-1],shapeData:t[e]};break;case 50:this.$={stmt:t[e],nodes:t[e]};break;case 51:this.$=[t[e]];break;case 52:l.addVertex(t[e-5][t[e-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e-4]),this.$=t[e-5].concat(t[e]);break;case 53:this.$=t[e-4].concat(t[e]);break;case 54:this.$=t[e];break;case 55:this.$=t[e-2],l.setClass(t[e-2],t[e]);break;case 56:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"square");break;case 57:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"doublecircle");break;case 58:this.$=t[e-5],l.addVertex(t[e-5],t[e-2],"circle");break;case 59:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"ellipse");break;case 60:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"stadium");break;case 61:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"subroutine");break;case 62:this.$=t[e-7],l.addVertex(t[e-7],t[e-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[e-5],t[e-3]]]));break;case 63:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"cylinder");break;case 64:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"round");break;case 65:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"diamond");break;case 66:this.$=t[e-5],l.addVertex(t[e-5],t[e-2],"hexagon");break;case 67:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"odd");break;case 68:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"trapezoid");break;case 69:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"inv_trapezoid");break;case 70:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"lean_right");break;case 71:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"lean_left");break;case 72:this.$=t[e],l.addVertex(t[e]);break;case 73:t[e-1].text=t[e],this.$=t[e-1];break;case 74:case 75:t[e-2].text=t[e-1],this.$=t[e-2];break;case 76:this.$=t[e];break;case 77:var v=l.destructLink(t[e],t[e-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[e-1]};break;case 78:var v=l.destructLink(t[e],t[e-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[e-1],id:t[e-3]};break;case 79:this.$={text:t[e],type:"text"};break;case 80:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 81:this.$={text:t[e],type:"string"};break;case 82:this.$={text:t[e],type:"markdown"};break;case 83:var v=l.destructLink(t[e]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=l.destructLink(t[e]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[e-1]};break;case 85:this.$=t[e-1];break;case 86:this.$={text:t[e],type:"text"};break;case 87:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 88:this.$={text:t[e],type:"string"};break;case 89:case 104:this.$={text:t[e],type:"markdown"};break;case 101:this.$={text:t[e],type:"text"};break;case 102:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 103:this.$={text:t[e],type:"text"};break;case 105:this.$=t[e-4],l.addClass(t[e-2],t[e]);break;case 106:this.$=t[e-4],l.setClass(t[e-2],t[e]);break;case 107:case 115:this.$=t[e-1],l.setClickEvent(t[e-1],t[e]);break;case 108:case 116:this.$=t[e-3],l.setClickEvent(t[e-3],t[e-2]),l.setTooltip(t[e-3],t[e]);break;case 109:this.$=t[e-2],l.setClickEvent(t[e-2],t[e-1],t[e]);break;case 110:this.$=t[e-4],l.setClickEvent(t[e-4],t[e-3],t[e-2]),l.setTooltip(t[e-4],t[e]);break;case 111:this.$=t[e-2],l.setLink(t[e-2],t[e]);break;case 112:this.$=t[e-4],l.setLink(t[e-4],t[e-2]),l.setTooltip(t[e-4],t[e]);break;case 113:this.$=t[e-4],l.setLink(t[e-4],t[e-2],t[e]);break;case 114:this.$=t[e-6],l.setLink(t[e-6],t[e-4],t[e]),l.setTooltip(t[e-6],t[e-2]);break;case 117:this.$=t[e-1],l.setLink(t[e-1],t[e]);break;case 118:this.$=t[e-3],l.setLink(t[e-3],t[e-2]),l.setTooltip(t[e-3],t[e]);break;case 119:this.$=t[e-3],l.setLink(t[e-3],t[e-2],t[e]);break;case 120:this.$=t[e-5],l.setLink(t[e-5],t[e-4],t[e]),l.setTooltip(t[e-5],t[e-2]);break;case 121:this.$=t[e-4],l.addVertex(t[e-2],void 0,void 0,t[e]);break;case 122:this.$=t[e-4],l.updateLink([t[e-2]],t[e]);break;case 123:this.$=t[e-4],l.updateLink(t[e-2],t[e]);break;case 124:this.$=t[e-8],l.updateLinkInterpolate([t[e-6]],t[e-2]),l.updateLink([t[e-6]],t[e]);break;case 125:this.$=t[e-8],l.updateLinkInterpolate(t[e-6],t[e-2]),l.updateLink(t[e-6],t[e]);break;case 126:this.$=t[e-6],l.updateLinkInterpolate([t[e-4]],t[e]);break;case 127:this.$=t[e-6],l.updateLinkInterpolate(t[e-4],t[e]);break;case 128:case 130:this.$=[t[e]];break;case 129:case 131:t[e-2].push(t[e]),this.$=t[e-2];break;case 133:this.$=t[e-1]+t[e];break;case 181:this.$=t[e];break;case 182:this.$=t[e-1]+""+t[e];break;case 184:this.$=t[e-1]+""+t[e];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:n,12:a},{1:[3]},s(u,o,{5:6}),{4:7,9:i,10:n,12:a},{4:8,9:i,10:n,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},s(u,[2,9]),s(u,[2,10]),s(u,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},s(x,[2,3]),s(x,[2,4]),s(x,[2,5]),s(x,[2,6]),s(x,[2,7]),s(x,[2,8]),{8:$,9:t1,11:e1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:t1,11:e1,21:68},{8:$,9:t1,11:e1,21:69},{8:$,9:t1,11:e1,21:70},{8:$,9:t1,11:e1,21:71},{8:$,9:t1,11:e1,21:72},{8:$,9:t1,10:[1,73],11:e1,21:74},s(x,[2,36]),{35:[1,75]},{37:[1,76]},s(x,[2,39]),s(m1,[2,50],{18:77,39:78,10:d1,40:nt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:T1,44:C1,60:D1,80:[1,87],89:S1,95:[1,84],97:[1,85],101:86,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1,120:88},s(x,[2,185]),s(x,[2,186]),s(x,[2,187]),s(x,[2,188]),s(x,[2,189]),s(b1,[2,51]),s(b1,[2,54],{46:[1,100]}),s(U,[2,72],{113:113,29:[1,101],44:E,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:f,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:R,109:w,111:N,114:G,115:P,116:O}),s(q,[2,181]),s(q,[2,142]),s(q,[2,143]),s(q,[2,144]),s(q,[2,145]),s(q,[2,146]),s(q,[2,147]),s(q,[2,148]),s(q,[2,149]),s(q,[2,150]),s(q,[2,151]),s(q,[2,152]),s(u,[2,12]),s(u,[2,18]),s(u,[2,19]),{9:[1,114]},s(ut,[2,26],{18:115,10:d1}),s(x,[2,27]),{42:116,43:39,44:E,45:40,47:41,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(x,[2,40]),s(x,[2,41]),s(x,[2,42]),s(L1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:lt,81:ot,116:j1,119:Y1},{75:[1,126],77:[1,127]},s(ct,[2,83]),s(x,[2,28]),s(x,[2,29]),s(x,[2,30]),s(x,[2,31]),s(x,[2,32]),{10:ht,12:dt,14:pt,27:ft,28:128,32:gt,44:bt,60:At,75:kt,80:[1,130],81:[1,131],83:141,84:mt,85:Tt,86:Ct,87:Dt,88:St,89:yt,90:xt,91:129,105:Et,109:Ft,111:_t,114:Bt,115:vt,116:Lt},s(Q1,o,{5:154}),s(x,[2,37]),s(x,[2,38]),s(m1,[2,48],{44:Vt}),s(m1,[2,49],{18:156,10:d1,40:It}),s(b1,[2,44]),{44:E,47:158,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:E,47:162,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{44:E,47:163,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(B,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},s(B,[2,115],{120:168,10:[1,167],14:T1,44:C1,60:D1,89:S1,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1}),s(B,[2,117],{10:[1,169]}),s(H,[2,183]),s(H,[2,170]),s(H,[2,171]),s(H,[2,172]),s(H,[2,173]),s(H,[2,174]),s(H,[2,175]),s(H,[2,176]),s(H,[2,177]),s(H,[2,178]),s(H,[2,179]),s(H,[2,180]),{44:E,47:170,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{30:171,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:179,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:181,50:[1,180],67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:182,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:183,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:184,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{109:[1,185]},{30:186,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:187,65:[1,188],67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:189,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:190,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{30:191,67:T,80:z,81:W,82:172,116:C,117:D,118:S},s(q,[2,182]),s(u,[2,20]),s(ut,[2,25]),s(m1,[2,46],{39:192,18:193,10:d1,40:nt}),s(L1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{77:[1,197],79:198,116:j1,119:Y1},s(V1,[2,79]),s(V1,[2,81]),s(V1,[2,82]),s(V1,[2,168]),s(V1,[2,169]),{76:199,79:121,80:lt,81:ot,116:j1,119:Y1},s(ct,[2,84]),{8:$,9:t1,10:ht,11:e1,12:dt,14:pt,21:201,27:ft,29:[1,200],32:gt,44:bt,60:At,75:kt,83:141,84:mt,85:Tt,86:Ct,87:Dt,88:St,89:yt,90:xt,91:202,105:Et,109:Ft,111:_t,114:Bt,115:vt,116:Lt},s(F,[2,101]),s(F,[2,103]),s(F,[2,104]),s(F,[2,157]),s(F,[2,158]),s(F,[2,159]),s(F,[2,160]),s(F,[2,161]),s(F,[2,162]),s(F,[2,163]),s(F,[2,164]),s(F,[2,165]),s(F,[2,166]),s(F,[2,167]),s(F,[2,90]),s(F,[2,91]),s(F,[2,92]),s(F,[2,93]),s(F,[2,94]),s(F,[2,95]),s(F,[2,96]),s(F,[2,97]),s(F,[2,98]),s(F,[2,99]),s(F,[2,100]),{6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,203],33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},{10:d1,18:204},{44:[1,205]},s(b1,[2,43]),{10:[1,206],44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},s(Rt,[2,128]),{10:[1,210],44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},s(B,[2,109],{10:[1,213]}),s(B,[2,111],{10:[1,214]}),{80:[1,215]},s(H,[2,184]),{80:[1,216],98:[1,217]},s(b1,[2,55],{113:113,44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,114:G,115:P,116:O}),{31:[1,218],67:T,82:219,116:C,117:D,118:S},s(p1,[2,86]),s(p1,[2,88]),s(p1,[2,89]),s(p1,[2,153]),s(p1,[2,154]),s(p1,[2,155]),s(p1,[2,156]),{49:[1,220],67:T,82:219,116:C,117:D,118:S},{30:221,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{51:[1,222],67:T,82:219,116:C,117:D,118:S},{53:[1,223],67:T,82:219,116:C,117:D,118:S},{55:[1,224],67:T,82:219,116:C,117:D,118:S},{57:[1,225],67:T,82:219,116:C,117:D,118:S},{60:[1,226]},{64:[1,227],67:T,82:219,116:C,117:D,118:S},{66:[1,228],67:T,82:219,116:C,117:D,118:S},{30:229,67:T,80:z,81:W,82:172,116:C,117:D,118:S},{31:[1,230],67:T,82:219,116:C,117:D,118:S},{67:T,69:[1,231],71:[1,232],82:219,116:C,117:D,118:S},{67:T,69:[1,234],71:[1,233],82:219,116:C,117:D,118:S},s(m1,[2,45],{18:156,10:d1,40:It}),s(m1,[2,47],{44:Vt}),s(L1,[2,75]),s(L1,[2,74]),{62:[1,235],67:T,82:219,116:C,117:D,118:S},s(L1,[2,77]),s(V1,[2,80]),{77:[1,236],79:198,116:j1,119:Y1},{30:237,67:T,80:z,81:W,82:172,116:C,117:D,118:S},s(Q1,o,{5:238}),s(F,[2,102]),s(x,[2,35]),{43:239,44:E,45:40,47:41,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{44:E,47:258,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(B,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},s(B,[2,116]),s(B,[2,118],{10:[1,262]}),s(B,[2,119]),s(U,[2,56]),s(p1,[2,87]),s(U,[2,57]),{51:[1,263],67:T,82:219,116:C,117:D,118:S},s(U,[2,64]),s(U,[2,59]),s(U,[2,60]),s(U,[2,61]),{109:[1,264]},s(U,[2,63]),s(U,[2,65]),{66:[1,265],67:T,82:219,116:C,117:D,118:S},s(U,[2,67]),s(U,[2,68]),s(U,[2,70]),s(U,[2,69]),s(U,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(L1,[2,78]),{31:[1,266],67:T,82:219,116:C,117:D,118:S},{6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,267],33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},s(b1,[2,53]),{43:268,44:E,45:40,47:41,60:f,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O},s(B,[2,121],{106:I1}),s(wt,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:l1,112:o1}),s(Z,[2,132]),s(Z,[2,134]),s(Z,[2,135]),s(Z,[2,136]),s(Z,[2,137]),s(Z,[2,138]),s(Z,[2,139]),s(Z,[2,140]),s(Z,[2,141]),s(B,[2,122],{106:I1}),{10:[1,271]},s(B,[2,123],{106:I1}),{10:[1,272]},s(Rt,[2,129]),s(B,[2,105],{106:I1}),s(B,[2,106],{113:113,44:E,60:f,89:L,102:V,105:I,106:R,109:w,111:N,114:G,115:P,116:O}),s(B,[2,110]),s(B,[2,112],{10:[1,273]}),s(B,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:t1,11:e1,21:278},s(x,[2,34]),s(b1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:l1,112:o1},s(Z,[2,133]),{14:T1,44:C1,60:D1,89:S1,101:280,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1,120:88},{14:T1,44:C1,60:D1,89:S1,101:281,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1,120:88},{98:[1,282]},s(B,[2,120]),s(U,[2,58]),{30:283,67:T,80:z,81:W,82:172,116:C,117:D,118:S},s(U,[2,66]),s(Q1,o,{5:284}),s(wt,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:l1,112:o1}),s(B,[2,126],{120:168,10:[1,285],14:T1,44:C1,60:D1,89:S1,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1}),s(B,[2,127],{120:168,10:[1,286],14:T1,44:C1,60:D1,89:S1,105:y1,106:x1,109:E1,111:F1,114:_1,115:B1,116:v1}),s(B,[2,114]),{31:[1,287],67:T,82:219,116:C,117:D,118:S},{6:11,7:12,8:p,9:c,10:k,11:r,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,288],33:24,34:y,36:b,38:K,42:28,43:39,44:E,45:40,47:41,60:f,84:N1,85:j,86:h1,87:P1,88:O1,89:L,102:V,105:I,106:R,109:w,111:N,113:42,114:G,115:P,116:O,121:M1,122:U1,123:z1,124:W1,125:K1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:l1,112:o1},s(U,[2,62]),s(x,[2,33]),s(B,[2,124],{106:I1}),s(B,[2,125],{106:I1})],defaultActions:{},parseError:m(function(h,d){if(d.recoverable)this.trace(h);else{var g=new Error(h);throw g.hash=d,g}},"parseError"),parse:m(function(h){var d=this,g=[0],l=[],_=[null],t=[],G1=this.table,e="",v=0,Nt=0,Kt=2,Gt=1,jt=t.slice.call(arguments,1),M=Object.create(this.lexer),A1={yy:{}};for(var Z1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z1)&&(A1.yy[Z1]=this.yy[Z1]);M.setInput(h,A1.yy),A1.yy.lexer=M,A1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var $1=M.yylloc;t.push($1);var Yt=M.options&&M.options.ranges;typeof A1.yy.parseError=="function"?this.parseError=A1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qt(X){g.length=g.length-2*X,_.length=_.length-X,t.length=t.length-X}m(qt,"popStack");function Pt(){var X;return X=l.pop()||M.lex()||Gt,typeof X!="number"&&(X instanceof Array&&(l=X,X=l.pop()),X=d.symbols_[X]||X),X}m(Pt,"lex");for(var Y,k1,Q,tt,R1={},H1,c1,Ot,X1;;){if(k1=g[g.length-1],this.defaultActions[k1]?Q=this.defaultActions[k1]:((Y===null||typeof Y>"u")&&(Y=Pt()),Q=G1[k1]&&G1[k1][Y]),typeof Q>"u"||!Q.length||!Q[0]){var et="";X1=[];for(H1 in G1[k1])this.terminals_[H1]&&H1>Kt&&X1.push("'"+this.terminals_[H1]+"'");M.showPosition?et="Parse error on line "+(v+1)+`:
|
|
10
10
|
`+M.showPosition()+`
|
|
11
11
|
Expecting `+X1.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":et="Parse error on line "+(v+1)+": Unexpected "+(Y==Gt?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(et,{text:M.match,token:this.terminals_[Y]||Y,line:M.yylineno,loc:$1,expected:X1})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k1+", token: "+Y);switch(Q[0]){case 1:g.push(Y),_.push(M.yytext),t.push(M.yylloc),g.push(Q[1]),Y=null,Nt=M.yyleng,e=M.yytext,v=M.yylineno,$1=M.yylloc;break;case 2:if(c1=this.productions_[Q[1]][1],R1.$=_[_.length-c1],R1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Yt&&(R1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),tt=this.performAction.apply(R1,[e,Nt,v,A1.yy,Q[1],_,t].concat(jt)),typeof tt<"u")return tt;c1&&(g=g.slice(0,-1*c1*2),_=_.slice(0,-1*c1),t=t.slice(0,-1*c1)),g.push(this.productions_[Q[1]][0]),_.push(R1.$),t.push(R1._$),Ot=G1[g[g.length-2]][g[g.length-1]],g.push(Ot);break;case 3:return!0}}return!0},"parse")},Wt=function(){var f1={EOF:1,parseError:m(function(d,g){if(this.yy.parser)this.yy.parser.parseError(d,g);else throw new Error(d)},"parseError"),setInput:m(function(h,d){return this.yy=d||this.yy||{},this._input=h,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:m(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var d=h.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),h},"input"),unput:m(function(h){var d=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),g.length-1&&(this.yylineno-=g.length-1);var _=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:g?(g.length===l.length?this.yylloc.first_column:0)+l[l.length-g.length].length-g[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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).
|
|
12
12
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(h){this.unput(this.match.slice(h))},"less"),pastInput:m(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var h=this.pastInput(),d=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
13
13
|
`+d+"^"},"showPosition"),test_match:m(function(h,d){var g,l,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),l=h[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,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(h[0].length),this.matched+=h[0],g=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var t in _)this[t]=_[t];return!1}return!1},"test_match"),next:m(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,d,g,l;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),t=0;t<_.length;t++)if(g=this._input.match(this.rules[_[t]]),g&&(!d||g[0].length>d[0].length)){if(d=g,l=t,this.options.backtrack_lexer){if(h=this.test_match(g,_[t]),h!==!1)return h;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(h=this.test_match(d,_[l]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:m(function(){var d=this.next();return d||this.lex()},"lex"),begin:m(function(d){this.conditionStack.push(d)},"begin"),popState:m(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:m(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:m(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:m(function(d){this.begin(d)},"pushState"),stateStackSize:m(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:m(function(d,g,l,_){switch(l){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),g.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const t=/\n\s*/g;return g.yytext=g.yytext.replace(t,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return d.lex.firstGraph()&&this.begin("dir"),12;case 36:return d.lex.firstGraph()&&this.begin("dir"),12;case 37:return d.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState("thickEdgeText"),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState("dottedEdgeText"),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return f1}();J1.lexer=Wt;function H1(){this.yy={}}return m(H1,"Parser"),H1.prototype=J1,J1.Parser=H1,new H1}();at.parser=at;var Ut=at,zt=Object.assign({},Ut);zt.parse=s=>{const i=s.replace(/}\s*\n/g,`}
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:m(function(){var d=this.next();return d||this.lex()},"lex"),begin:m(function(d){this.conditionStack.push(d)},"begin"),popState:m(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:m(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:m(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:m(function(d){this.begin(d)},"pushState"),stateStackSize:m(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:m(function(d,g,l,_){switch(l){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),g.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const t=/\n\s*/g;return g.yytext=g.yytext.replace(t,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return d.lex.firstGraph()&&this.begin("dir"),12;case 36:return d.lex.firstGraph()&&this.begin("dir"),12;case 37:return d.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState("thickEdgeText"),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState("dottedEdgeText"),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return f1}();J1.lexer=Wt;function q1(){this.yy={}}return m(q1,"Parser"),q1.prototype=J1,J1.Parser=q1,new q1}();at.parser=at;var Ut=at,zt=Object.assign({},Ut);zt.parse=s=>{const i=s.replace(/}\s*\n/g,`}
|
|
15
15
|
`);return Ut.parse(i)};var Te=zt,Ce=m((s,i)=>{const n=fe,a=n(s,"r"),u=n(s,"g"),o=n(s,"b");return oe(a,u,o,i)},"fade"),De=m(s=>`.label {
|
|
16
16
|
font-family: ${s.fontFamily};
|
|
17
17
|
color: ${s.nodeTextColor||s.textColor};
|
|
@@ -158,5 +158,5 @@ Expecting `+X1.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":et="Parse error
|
|
|
158
158
|
}
|
|
159
159
|
text-align: center;
|
|
160
160
|
}
|
|
161
|
-
${
|
|
161
|
+
${Ht()}
|
|
162
162
|
`,"getStyles"),Se=De,Ie={parser:Te,get db(){return new be},renderer:me,styles:Se,init:m(s=>{s.flowchart||(s.flowchart={}),s.layout&&Mt({layout:s.layout}),s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,Mt({flowchart:{arrowMarkerAbsolute:s.arrowMarkerAbsolute}})},"init")};export{Ie as diagram};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{K as Ne,aB as Pe,P as ze,aE as Ve,L as Re,aC as He,a as c,O as ft,az as bt,w as Be,B as j,ai as ot,s as Ge,ay as Xe,n as je,aS as qe}from"./MermaidRenderer-5nc-1nEm.js";import{c as It,g as At}from"./index-dbebx5u2.js";import{t as Ue,b as Ze,m as Ke,e as ne,j as re,l as Qe,k as Je,f as ti,o as ei,q as ii,p as ni,i as ri,d as se,g as ae,h as oe,s as ce,a as le}from"./time-C-HXPWjm.js";import{l as si}from"./linear-BFc7NSuB.js";import{R as me,K as ai,s as ke,u as ye,C as ge,H as Yt,w as oi}from"./step-D_f8mI9d.js";import"./purify.es-DxCUJf2h.js";import"./init-BFKUnIhM.js";import"./defaultLocale-CrowFXzY.js";function ci(t){return t}var _t=1,Lt=2,zt=3,wt=4,ue=1e-6;function li(t){return"translate("+t+",0)"}function ui(t){return"translate(0,"+t+")"}function di(t){return e=>+t(e)}function fi(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function hi(){return!this.__axis}function pe(t,e){var r=[],n=null,a=null,f=6,d=6,T=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:.5,$=t===_t||t===wt?-1:1,b=t===wt||t===Lt?"x":"y",F=t===_t||t===zt?li:ui;function C(D){var V=n??(e.ticks?e.ticks.apply(e,r):e.domain()),I=a??(e.tickFormat?e.tickFormat.apply(e,r):ci),S=Math.max(f,0)+T,M=e.range(),W=+M[0]+E,L=+M[M.length-1]+E,R=(e.bandwidth?fi:di)(e.copy(),E),H=D.selection?D.selection():D,A=H.selectAll(".domain").data([null]),p=H.selectAll(".tick").data(V,e).order(),h=p.exit(),u=p.enter().append("g").attr("class","tick"),x=p.select("line"),v=p.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(u),x=x.merge(u.append("line").attr("stroke","currentColor").attr(b+"2",$*f)),v=v.merge(u.append("text").attr("fill","currentColor").attr(b,$*S).attr("dy",t===_t?"0em":t===zt?"0.71em":"0.32em")),D!==H&&(A=A.transition(D),p=p.transition(D),x=x.transition(D),v=v.transition(D),h=h.transition(D).attr("opacity",ue).attr("transform",function(k){return isFinite(k=R(k))?F(k+E):this.getAttribute("transform")}),u.attr("opacity",ue).attr("transform",function(k){var m=this.parentNode.__axis;return F((m&&isFinite(m=m(k))?m:R(k))+E)})),h.remove(),A.attr("d",t===wt||t===Lt?d?"M"+$*d+","+W+"H"+E+"V"+L+"H"+$*d:"M"+E+","+W+"V"+L:d?"M"+W+","+$*d+"V"+E+"H"+L+"V"+$*d:"M"+W+","+E+"H"+L),p.attr("opacity",1).attr("transform",function(k){return F(R(k)+E)}),x.attr(b+"2",$*f),v.attr(b,$*S).text(I),H.filter(hi).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Lt?"start":t===wt?"end":"middle"),H.each(function(){this.__axis=R})}return C.scale=function(D){return arguments.length?(e=D,C):e},C.ticks=function(){return r=Array.from(arguments),C},C.tickArguments=function(D){return arguments.length?(r=D==null?[]:Array.from(D),C):r.slice()},C.tickValues=function(D){return arguments.length?(n=D==null?null:Array.from(D),C):n&&n.slice()},C.tickFormat=function(D){return arguments.length?(a=D,C):a},C.tickSize=function(D){return arguments.length?(f=d=+D,C):f},C.tickSizeInner=function(D){return arguments.length?(f=+D,C):f},C.tickSizeOuter=function(D){return arguments.length?(d=+D,C):d},C.tickPadding=function(D){return arguments.length?(T=+D,C):T},C.offset=function(D){return arguments.length?(E=+D,C):E},C}function mi(t){return pe(_t,t)}function ki(t){return pe(zt,t)}const yi=Math.PI/180,gi=180/Math.PI,Ct=18,ve=.96422,xe=1,Te=.82521,be=4/29,ht=6/29,we=3*ht*ht,pi=ht*ht*ht;function _e(t){if(t instanceof et)return new et(t.l,t.a,t.b,t.opacity);if(t instanceof nt)return De(t);t instanceof me||(t=ai(t));var e=Nt(t.r),r=Nt(t.g),n=Nt(t.b),a=Ft((.2225045*e+.7168786*r+.0606169*n)/xe),f,d;return e===r&&r===n?f=d=a:(f=Ft((.4360747*e+.3850649*r+.1430804*n)/ve),d=Ft((.0139322*e+.0971045*r+.7141733*n)/Te)),new et(116*a-16,500*(f-a),200*(a-d),t.opacity)}function vi(t,e,r,n){return arguments.length===1?_e(t):new et(t,e,r,n??1)}function et(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}ke(et,vi,ye(ge,{brighter(t){return new et(this.l+Ct*(t??1),this.a,this.b,this.opacity)},darker(t){return new et(this.l-Ct*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=ve*Ot(e),t=xe*Ot(t),r=Te*Ot(r),new me(Wt(3.1338561*e-1.6168667*t-.4906146*r),Wt(-.9787684*e+1.9161415*t+.033454*r),Wt(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function Ft(t){return t>pi?Math.pow(t,1/3):t/we+be}function Ot(t){return t>ht?t*t*t:we*(t-be)}function Wt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Nt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xi(t){if(t instanceof nt)return new nt(t.h,t.c,t.l,t.opacity);if(t instanceof et||(t=_e(t)),t.a===0&&t.b===0)return new nt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*gi;return new nt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Vt(t,e,r,n){return arguments.length===1?xi(t):new nt(t,e,r,n??1)}function nt(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function De(t){if(isNaN(t.h))return new et(t.l,0,0,t.opacity);var e=t.h*yi;return new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ke(nt,Vt,ye(ge,{brighter(t){return new nt(this.h,this.c,this.l+Ct*(t??1),this.opacity)},darker(t){return new nt(this.h,this.c,this.l-Ct*(t??1),this.opacity)},rgb(){return De(this).rgb()}}));function Ti(t){return function(e,r){var n=t((e=Vt(e)).h,(r=Vt(r)).h),a=Yt(e.c,r.c),f=Yt(e.l,r.l),d=Yt(e.opacity,r.opacity);return function(T){return e.h=n(T),e.c=a(T),e.l=f(T),e.opacity=d(T),e+""}}}const bi=Ti(oi);var Se={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,function(){var r="day";return function(n,a,f){var d=function($){return $.add(4-$.isoWeekday(),r)},T=a.prototype;T.isoWeekYear=function(){return d(this).year()},T.isoWeek=function($){if(!this.$utils().u($))return this.add(7*($-this.isoWeek()),r);var b,F,C,D,V=d(this),I=(b=this.isoWeekYear(),F=this.$u,C=(F?f.utc:f)().year(b).startOf("year"),D=4-C.isoWeekday(),C.isoWeekday()>4&&(D+=7),C.add(D,r));return V.diff(I,"week")+1},T.isoWeekday=function($){return this.$utils().u($)?this.day()||7:this.day(this.day()%7?$:$-7)};var E=T.startOf;T.startOf=function($,b){var F=this.$utils(),C=!!F.u(b)||b;return F.p($)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):E.bind(this)($,b)}}})})(Se);var wi=Se.exports;const _i=At(wi);var Ce={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,f=/\d\d/,d=/\d\d?/,T=/\d*[^-_:/,()\s\d]+/,E={},$=function(S){return(S=+S)+(S>68?1900:2e3)},b=function(S){return function(M){this[S]=+M}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(M){if(!M||M==="Z")return 0;var W=M.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L}(S)}],C=function(S){var M=E[S];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(S,M){var W,L=E.meridiem;if(L){for(var R=1;R<=24;R+=1)if(S.indexOf(L(R,0,M))>-1){W=R>12;break}}else W=S===(M?"pm":"PM");return W},V={A:[T,function(S){this.afternoon=D(S,!1)}],a:[T,function(S){this.afternoon=D(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[f,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[d,b("seconds")],ss:[d,b("seconds")],m:[d,b("minutes")],mm:[d,b("minutes")],H:[d,b("hours")],h:[d,b("hours")],HH:[d,b("hours")],hh:[d,b("hours")],D:[d,b("day")],DD:[f,b("day")],Do:[T,function(S){var M=E.ordinal,W=S.match(/\d+/);if(this.day=W[0],M)for(var L=1;L<=31;L+=1)M(L).replace(/\[|\]/g,"")===S&&(this.day=L)}],w:[d,b("week")],ww:[f,b("week")],M:[d,b("month")],MM:[f,b("month")],MMM:[T,function(S){var M=C("months"),W=(C("monthsShort")||M.map(function(L){return L.slice(0,3)})).indexOf(S)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[T,function(S){var M=C("months").indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,b("year")],YY:[f,function(S){this.year=$(S)}],YYYY:[/\d{4}/,b("year")],Z:F,ZZ:F};function I(S){var M,W;M=S,W=E&&E.formats;for(var L=(S=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,v,k){var m=k&&k.toUpperCase();return v||W[k]||r[k]||W[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(o,l,y){return l||y.slice(1)})})).match(n),R=L.length,H=0;H<R;H+=1){var A=L[H],p=V[A],h=p&&p[0],u=p&&p[1];L[H]=u?{regex:h,parser:u}:A.replace(/^\[|\]$/g,"")}return function(x){for(var v={},k=0,m=0;k<R;k+=1){var o=L[k];if(typeof o=="string")m+=o.length;else{var l=o.regex,y=o.parser,g=x.slice(m),w=l.exec(g)[0];y.call(v,w),x=x.replace(w,"")}}return function(s){var z=s.afternoon;if(z!==void 0){var i=s.hours;z?i<12&&(s.hours+=12):i===12&&(s.hours=0),delete s.afternoon}}(v),v}}return function(S,M,W){W.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&($=S.parseTwoDigitYear);var L=M.prototype,R=L.parse;L.parse=function(H){var A=H.date,p=H.utc,h=H.args;this.$u=p;var u=h[1];if(typeof u=="string"){var x=h[2]===!0,v=h[3]===!0,k=x||v,m=h[2];v&&(m=h[2]),E=this.$locale(),!x&&m&&(E=W.Ls[m]),this.$d=function(g,w,s,z){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*g);var i=I(w)(g),_=i.year,P=i.month,N=i.day,O=i.hours,X=i.minutes,Y=i.seconds,K=i.milliseconds,rt=i.zone,lt=i.week,yt=new Date,gt=N||(_||P?1:yt.getDate()),ut=_||yt.getFullYear(),B=0;_&&!P||(B=P>0?P-1:yt.getMonth());var Z,q=O||0,at=X||0,Q=Y||0,st=K||0;return rt?new Date(Date.UTC(ut,B,gt,q,at,Q,st+60*rt.offset*1e3)):s?new Date(Date.UTC(ut,B,gt,q,at,Q,st)):(Z=new Date(ut,B,gt,q,at,Q,st),lt&&(Z=z(Z).week(lt).toDate()),Z)}catch{return new Date("")}}(A,u,p,W),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),k&&A!=this.format(u)&&(this.$d=new Date("")),E={}}else if(u instanceof Array)for(var o=u.length,l=1;l<=o;l+=1){h[1]=u[l-1];var y=W.apply(this,h);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}l===o&&(this.$d=new Date(""))}else R.call(this,H)}}})})(Ce);var Di=Ce.exports;const Si=At(Di);var Me={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,function(){return function(r,n){var a=n.prototype,f=a.format;a.format=function(d){var T=this,E=this.$locale();if(!this.isValid())return f.bind(this)(d);var $=this.$utils(),b=(d||"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(F){switch(F){case"Q":return Math.ceil((T.$M+1)/3);case"Do":return E.ordinal(T.$D);case"gggg":return T.weekYear();case"GGGG":return T.isoWeekYear();case"wo":return E.ordinal(T.week(),"W");case"w":case"ww":return $.s(T.week(),F==="w"?1:2,"0");case"W":case"WW":return $.s(T.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return $.s(String(T.$H===0?24:T.$H),F==="k"?1:2,"0");case"X":return Math.floor(T.$d.getTime()/1e3);case"x":return T.$d.getTime();case"z":return"["+T.offsetName()+"]";case"zzz":return"["+T.offsetName("long")+"]";default:return F}});return f.bind(this)(b)}}})})(Me);var Ci=Me.exports;const Mi=At(Ci);var Ee={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,function(){var r,n,a=1e3,f=6e4,d=36e5,T=864e5,E=/\[([^\]]+)]|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,$=31536e6,b=2628e6,F=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,C={years:$,months:b,days:T,hours:d,minutes:f,seconds:a,milliseconds:1,weeks:6048e5},D=function(A){return A instanceof R},V=function(A,p,h){return new R(A,h,p.$l)},I=function(A){return n.p(A)+"s"},S=function(A){return A<0},M=function(A){return S(A)?Math.ceil(A):Math.floor(A)},W=function(A){return Math.abs(A)},L=function(A,p){return A?S(A)?{negative:!0,format:""+W(A)+p}:{negative:!1,format:""+A+p}:{negative:!1,format:""}},R=function(){function A(h,u,x){var v=this;if(this.$d={},this.$l=x,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),u)return V(h*C[I(u)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach(function(o){v.$d[I(o)]=h[o]}),this.calMilliseconds(),this;if(typeof h=="string"){var k=h.match(F);if(k){var m=k.slice(2).map(function(o){return o!=null?Number(o):0});return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var p=A.prototype;return p.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce(function(u,x){return u+(h.$d[x]||0)*C[x]},0)},p.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/$),h%=$,this.$d.months=M(h/b),h%=b,this.$d.days=M(h/T),h%=T,this.$d.hours=M(h/d),h%=d,this.$d.minutes=M(h/f),h%=f,this.$d.seconds=M(h/a),h%=a,this.$d.milliseconds=h},p.toISOString=function(){var h=L(this.$d.years,"Y"),u=L(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var v=L(x,"D"),k=L(this.$d.hours,"H"),m=L(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var l=L(o,"S"),y=h.negative||u.negative||v.negative||k.negative||m.negative||l.negative,g=k.format||m.format||l.format?"T":"",w=(y?"-":"")+"P"+h.format+u.format+v.format+g+k.format+m.format+l.format;return w==="P"||w==="-P"?"P0D":w},p.toJSON=function(){return this.toISOString()},p.format=function(h){var u=h||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return u.replace(E,function(v,k){return k||String(x[v])})},p.as=function(h){return this.$ms/C[I(h)]},p.get=function(h){var u=this.$ms,x=I(h);return x==="milliseconds"?u%=1e3:u=x==="weeks"?M(u/C[x]):this.$d[x],u||0},p.add=function(h,u,x){var v;return v=u?h*C[I(u)]:D(h)?h.$ms:V(h,this).$ms,V(this.$ms+v*(x?-1:1),this)},p.subtract=function(h,u){return this.add(h,u,!0)},p.locale=function(h){var u=this.clone();return u.$l=h,u},p.clone=function(){return V(this.$ms,this)},p.humanize=function(h){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},p.valueOf=function(){return this.asMilliseconds()},p.milliseconds=function(){return this.get("milliseconds")},p.asMilliseconds=function(){return this.as("milliseconds")},p.seconds=function(){return this.get("seconds")},p.asSeconds=function(){return this.as("seconds")},p.minutes=function(){return this.get("minutes")},p.asMinutes=function(){return this.as("minutes")},p.hours=function(){return this.get("hours")},p.asHours=function(){return this.as("hours")},p.days=function(){return this.get("days")},p.asDays=function(){return this.as("days")},p.weeks=function(){return this.get("weeks")},p.asWeeks=function(){return this.as("weeks")},p.months=function(){return this.get("months")},p.asMonths=function(){return this.as("months")},p.years=function(){return this.get("years")},p.asYears=function(){return this.as("years")},A}(),H=function(A,p,h){return A.add(p.years()*h,"y").add(p.months()*h,"M").add(p.days()*h,"d").add(p.hours()*h,"h").add(p.minutes()*h,"m").add(p.seconds()*h,"s").add(p.milliseconds()*h,"ms")};return function(A,p,h){r=h,n=h().$utils(),h.duration=function(v,k){var m=h.locale();return V(v,{$l:m},k)},h.isDuration=D;var u=p.prototype.add,x=p.prototype.subtract;p.prototype.add=function(v,k){return D(v)?H(this,v,1):u.bind(this)(v,k)},p.prototype.subtract=function(v,k){return D(v)?H(this,v,-1):x.bind(this)(v,k)}}})})(Ee);var Ei=Ee.exports;const Ii=At(Ei);var Rt=function(){var t=c(function(m,o,l,y){for(l=l||{},y=m.length;y--;l[m[y]]=o);return l},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],a=[1,28],f=[1,29],d=[1,30],T=[1,31],E=[1,32],$=[1,33],b=[1,34],F=[1,9],C=[1,10],D=[1,11],V=[1,12],I=[1,13],S=[1,14],M=[1,15],W=[1,16],L=[1,19],R=[1,20],H=[1,21],A=[1,22],p=[1,23],h=[1,25],u=[1,35],x={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(o,l,y,g,w,s,z){var i=s.length-1;switch(w){case 1:return s[i-1];case 2:this.$=[];break;case 3:s[i-1].push(s[i]),this.$=s[i-1];break;case 4:case 5:this.$=s[i];break;case 6:case 7:this.$=[];break;case 8:g.setWeekday("monday");break;case 9:g.setWeekday("tuesday");break;case 10:g.setWeekday("wednesday");break;case 11:g.setWeekday("thursday");break;case 12:g.setWeekday("friday");break;case 13:g.setWeekday("saturday");break;case 14:g.setWeekday("sunday");break;case 15:g.setWeekend("friday");break;case 16:g.setWeekend("saturday");break;case 17:g.setDateFormat(s[i].substr(11)),this.$=s[i].substr(11);break;case 18:g.enableInclusiveEndDates(),this.$=s[i].substr(18);break;case 19:g.TopAxis(),this.$=s[i].substr(8);break;case 20:g.setAxisFormat(s[i].substr(11)),this.$=s[i].substr(11);break;case 21:g.setTickInterval(s[i].substr(13)),this.$=s[i].substr(13);break;case 22:g.setExcludes(s[i].substr(9)),this.$=s[i].substr(9);break;case 23:g.setIncludes(s[i].substr(9)),this.$=s[i].substr(9);break;case 24:g.setTodayMarker(s[i].substr(12)),this.$=s[i].substr(12);break;case 27:g.setDiagramTitle(s[i].substr(6)),this.$=s[i].substr(6);break;case 28:this.$=s[i].trim(),g.setAccTitle(this.$);break;case 29:case 30:this.$=s[i].trim(),g.setAccDescription(this.$);break;case 31:g.addSection(s[i].substr(8)),this.$=s[i].substr(8);break;case 33:g.addTask(s[i-1],s[i]),this.$="task";break;case 34:this.$=s[i-1],g.setClickEvent(s[i-1],s[i],null);break;case 35:this.$=s[i-2],g.setClickEvent(s[i-2],s[i-1],s[i]);break;case 36:this.$=s[i-2],g.setClickEvent(s[i-2],s[i-1],null),g.setLink(s[i-2],s[i]);break;case 37:this.$=s[i-3],g.setClickEvent(s[i-3],s[i-2],s[i-1]),g.setLink(s[i-3],s[i]);break;case 38:this.$=s[i-2],g.setClickEvent(s[i-2],s[i],null),g.setLink(s[i-2],s[i-1]);break;case 39:this.$=s[i-3],g.setClickEvent(s[i-3],s[i-1],s[i]),g.setLink(s[i-3],s[i-2]);break;case 40:this.$=s[i-1],g.setLink(s[i-1],s[i]);break;case 41:case 47:this.$=s[i-1]+" "+s[i];break;case 42:case 43:case 45:this.$=s[i-2]+" "+s[i-1]+" "+s[i];break;case 44:case 46:this.$=s[i-3]+" "+s[i-2]+" "+s[i-1]+" "+s[i];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:a,15:f,16:d,17:T,18:E,19:18,20:$,21:b,22:F,23:C,24:D,25:V,26:I,27:S,28:M,29:W,30:L,31:R,33:H,35:A,36:p,37:24,38:h,40:u},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:a,15:f,16:d,17:T,18:E,19:18,20:$,21:b,22:F,23:C,24:D,25:V,26:I,27:S,28:M,29:W,30:L,31:R,33:H,35:A,36:p,37:24,38:h,40:u},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:c(function(o,l){if(l.recoverable)this.trace(o);else{var y=new Error(o);throw y.hash=l,y}},"parseError"),parse:c(function(o){var l=this,y=[0],g=[],w=[null],s=[],z=this.table,i="",_=0,P=0,N=2,O=1,X=s.slice.call(arguments,1),Y=Object.create(this.lexer),K={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(K.yy[rt]=this.yy[rt]);Y.setInput(o,K.yy),K.yy.lexer=Y,K.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var lt=Y.yylloc;s.push(lt);var yt=Y.options&&Y.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(U){y.length=y.length-2*U,w.length=w.length-U,s.length=s.length-U}c(gt,"popStack");function ut(){var U;return U=g.pop()||Y.lex()||O,typeof U!="number"&&(U instanceof Array&&(g=U,U=g.pop()),U=l.symbols_[U]||U),U}c(ut,"lex");for(var B,Z,q,at,Q={},st,J,ie,Tt;;){if(Z=y[y.length-1],this.defaultActions[Z]?q=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=ut()),q=z[Z]&&z[Z][B]),typeof q>"u"||!q.length||!q[0]){var $t="";Tt=[];for(st in z[Z])this.terminals_[st]&&st>N&&Tt.push("'"+this.terminals_[st]+"'");Y.showPosition?$t="Parse error on line "+(_+1)+`:
|
|
2
|
-
`+
|
|
3
|
-
Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":$t="Parse error on line "+(_+1)+": Unexpected "+(B==O?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError($t,{text:
|
|
1
|
+
import{g as Ne,s as Pe,q as Ve,p as ze,a as Re,b as He,_ as c,c as ft,d as bt,e as Be,ar as j,l as ot,k as Ge,j as Xe,y as je,u as qe}from"./MermaidRenderer-pbLK2azB.js";import{c as It,g as Yt}from"./index-CtRXyPDv.js";import{t as Ue,m as Ze,a as Qe,b as ne,c as re,d as Ke,e as Je,f as ti,g as ei,h as ii,i as ni,j as ri,k as se,l as ae,n as oe,s as ce,o as le}from"./time-C80Ah3yu.js";import{l as si}from"./linear-CB3-LqbC.js";import{R as me,S as ai,T as ke,U as ye,V as ge,W as At,X as oi}from"./isPrototype-D0troCl1.js";import"./purify.es-D6gMnemd.js";import"./init-Dmth1JHB.js";import"./defaultLocale-DX6XiGOO.js";function ci(t){return t}var _t=1,Lt=2,Vt=3,wt=4,ue=1e-6;function li(t){return"translate("+t+",0)"}function ui(t){return"translate(0,"+t+")"}function di(t){return e=>+t(e)}function fi(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function hi(){return!this.__axis}function pe(t,e){var r=[],n=null,a=null,f=6,d=6,T=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,$=t===_t||t===wt?-1:1,b=t===wt||t===Lt?"x":"y",F=t===_t||t===Vt?li:ui;function C(D){var z=n??(e.ticks?e.ticks.apply(e,r):e.domain()),I=a??(e.tickFormat?e.tickFormat.apply(e,r):ci),S=Math.max(f,0)+T,E=e.range(),W=+E[0]+M,L=+E[E.length-1]+M,R=(e.bandwidth?fi:di)(e.copy(),M),H=D.selection?D.selection():D,Y=H.selectAll(".domain").data([null]),p=H.selectAll(".tick").data(z,e).order(),h=p.exit(),u=p.enter().append("g").attr("class","tick"),x=p.select("line"),v=p.select("text");Y=Y.merge(Y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(u),x=x.merge(u.append("line").attr("stroke","currentColor").attr(b+"2",$*f)),v=v.merge(u.append("text").attr("fill","currentColor").attr(b,$*S).attr("dy",t===_t?"0em":t===Vt?"0.71em":"0.32em")),D!==H&&(Y=Y.transition(D),p=p.transition(D),x=x.transition(D),v=v.transition(D),h=h.transition(D).attr("opacity",ue).attr("transform",function(k){return isFinite(k=R(k))?F(k+M):this.getAttribute("transform")}),u.attr("opacity",ue).attr("transform",function(k){var m=this.parentNode.__axis;return F((m&&isFinite(m=m(k))?m:R(k))+M)})),h.remove(),Y.attr("d",t===wt||t===Lt?d?"M"+$*d+","+W+"H"+M+"V"+L+"H"+$*d:"M"+M+","+W+"V"+L:d?"M"+W+","+$*d+"V"+M+"H"+L+"V"+$*d:"M"+W+","+M+"H"+L),p.attr("opacity",1).attr("transform",function(k){return F(R(k)+M)}),x.attr(b+"2",$*f),v.attr(b,$*S).text(I),H.filter(hi).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Lt?"start":t===wt?"end":"middle"),H.each(function(){this.__axis=R})}return C.scale=function(D){return arguments.length?(e=D,C):e},C.ticks=function(){return r=Array.from(arguments),C},C.tickArguments=function(D){return arguments.length?(r=D==null?[]:Array.from(D),C):r.slice()},C.tickValues=function(D){return arguments.length?(n=D==null?null:Array.from(D),C):n&&n.slice()},C.tickFormat=function(D){return arguments.length?(a=D,C):a},C.tickSize=function(D){return arguments.length?(f=d=+D,C):f},C.tickSizeInner=function(D){return arguments.length?(f=+D,C):f},C.tickSizeOuter=function(D){return arguments.length?(d=+D,C):d},C.tickPadding=function(D){return arguments.length?(T=+D,C):T},C.offset=function(D){return arguments.length?(M=+D,C):M},C}function mi(t){return pe(_t,t)}function ki(t){return pe(Vt,t)}const yi=Math.PI/180,gi=180/Math.PI,Ct=18,ve=.96422,xe=1,Te=.82521,be=4/29,ht=6/29,we=3*ht*ht,pi=ht*ht*ht;function _e(t){if(t instanceof et)return new et(t.l,t.a,t.b,t.opacity);if(t instanceof nt)return De(t);t instanceof me||(t=ai(t));var e=Nt(t.r),r=Nt(t.g),n=Nt(t.b),a=Ft((.2225045*e+.7168786*r+.0606169*n)/xe),f,d;return e===r&&r===n?f=d=a:(f=Ft((.4360747*e+.3850649*r+.1430804*n)/ve),d=Ft((.0139322*e+.0971045*r+.7141733*n)/Te)),new et(116*a-16,500*(f-a),200*(a-d),t.opacity)}function vi(t,e,r,n){return arguments.length===1?_e(t):new et(t,e,r,n??1)}function et(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}ke(et,vi,ye(ge,{brighter(t){return new et(this.l+Ct*(t??1),this.a,this.b,this.opacity)},darker(t){return new et(this.l-Ct*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=ve*Ot(e),t=xe*Ot(t),r=Te*Ot(r),new me(Wt(3.1338561*e-1.6168667*t-.4906146*r),Wt(-.9787684*e+1.9161415*t+.033454*r),Wt(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function Ft(t){return t>pi?Math.pow(t,1/3):t/we+be}function Ot(t){return t>ht?t*t*t:we*(t-be)}function Wt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Nt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xi(t){if(t instanceof nt)return new nt(t.h,t.c,t.l,t.opacity);if(t instanceof et||(t=_e(t)),t.a===0&&t.b===0)return new nt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*gi;return new nt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function zt(t,e,r,n){return arguments.length===1?xi(t):new nt(t,e,r,n??1)}function nt(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function De(t){if(isNaN(t.h))return new et(t.l,0,0,t.opacity);var e=t.h*yi;return new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ke(nt,zt,ye(ge,{brighter(t){return new nt(this.h,this.c,this.l+Ct*(t??1),this.opacity)},darker(t){return new nt(this.h,this.c,this.l-Ct*(t??1),this.opacity)},rgb(){return De(this).rgb()}}));function Ti(t){return function(e,r){var n=t((e=zt(e)).h,(r=zt(r)).h),a=At(e.c,r.c),f=At(e.l,r.l),d=At(e.opacity,r.opacity);return function(T){return e.h=n(T),e.c=a(T),e.l=f(T),e.opacity=d(T),e+""}}}const bi=Ti(oi);var Se={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,function(){var r="day";return function(n,a,f){var d=function($){return $.add(4-$.isoWeekday(),r)},T=a.prototype;T.isoWeekYear=function(){return d(this).year()},T.isoWeek=function($){if(!this.$utils().u($))return this.add(7*($-this.isoWeek()),r);var b,F,C,D,z=d(this),I=(b=this.isoWeekYear(),F=this.$u,C=(F?f.utc:f)().year(b).startOf("year"),D=4-C.isoWeekday(),C.isoWeekday()>4&&(D+=7),C.add(D,r));return z.diff(I,"week")+1},T.isoWeekday=function($){return this.$utils().u($)?this.day()||7:this.day(this.day()%7?$:$-7)};var M=T.startOf;T.startOf=function($,b){var F=this.$utils(),C=!!F.u(b)||b;return F.p($)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)($,b)}}})})(Se);var wi=Se.exports;const _i=Yt(wi);var Ce={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,f=/\d\d/,d=/\d\d?/,T=/\d*[^-_:/,()\s\d]+/,M={},$=function(S){return(S=+S)+(S>68?1900:2e3)},b=function(S){return function(E){this[S]=+E}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var W=E.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L}(S)}],C=function(S){var E=M[S];return E&&(E.indexOf?E:E.s.concat(E.f))},D=function(S,E){var W,L=M.meridiem;if(L){for(var R=1;R<=24;R+=1)if(S.indexOf(L(R,0,E))>-1){W=R>12;break}}else W=S===(E?"pm":"PM");return W},z={A:[T,function(S){this.afternoon=D(S,!1)}],a:[T,function(S){this.afternoon=D(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[f,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[d,b("seconds")],ss:[d,b("seconds")],m:[d,b("minutes")],mm:[d,b("minutes")],H:[d,b("hours")],h:[d,b("hours")],HH:[d,b("hours")],hh:[d,b("hours")],D:[d,b("day")],DD:[f,b("day")],Do:[T,function(S){var E=M.ordinal,W=S.match(/\d+/);if(this.day=W[0],E)for(var L=1;L<=31;L+=1)E(L).replace(/\[|\]/g,"")===S&&(this.day=L)}],w:[d,b("week")],ww:[f,b("week")],M:[d,b("month")],MM:[f,b("month")],MMM:[T,function(S){var E=C("months"),W=(C("monthsShort")||E.map(function(L){return L.slice(0,3)})).indexOf(S)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[T,function(S){var E=C("months").indexOf(S)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,b("year")],YY:[f,function(S){this.year=$(S)}],YYYY:[/\d{4}/,b("year")],Z:F,ZZ:F};function I(S){var E,W;E=S,W=M&&M.formats;for(var L=(S=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,v,k){var m=k&&k.toUpperCase();return v||W[k]||r[k]||W[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(o,l,y){return l||y.slice(1)})})).match(n),R=L.length,H=0;H<R;H+=1){var Y=L[H],p=z[Y],h=p&&p[0],u=p&&p[1];L[H]=u?{regex:h,parser:u}:Y.replace(/^\[|\]$/g,"")}return function(x){for(var v={},k=0,m=0;k<R;k+=1){var o=L[k];if(typeof o=="string")m+=o.length;else{var l=o.regex,y=o.parser,g=x.slice(m),w=l.exec(g)[0];y.call(v,w),x=x.replace(w,"")}}return function(s){var V=s.afternoon;if(V!==void 0){var i=s.hours;V?i<12&&(s.hours+=12):i===12&&(s.hours=0),delete s.afternoon}}(v),v}}return function(S,E,W){W.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&($=S.parseTwoDigitYear);var L=E.prototype,R=L.parse;L.parse=function(H){var Y=H.date,p=H.utc,h=H.args;this.$u=p;var u=h[1];if(typeof u=="string"){var x=h[2]===!0,v=h[3]===!0,k=x||v,m=h[2];v&&(m=h[2]),M=this.$locale(),!x&&m&&(M=W.Ls[m]),this.$d=function(g,w,s,V){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*g);var i=I(w)(g),_=i.year,P=i.month,N=i.day,O=i.hours,X=i.minutes,A=i.seconds,Q=i.milliseconds,rt=i.zone,lt=i.week,yt=new Date,gt=N||(_||P?1:yt.getDate()),ut=_||yt.getFullYear(),B=0;_&&!P||(B=P>0?P-1:yt.getMonth());var Z,q=O||0,at=X||0,K=A||0,st=Q||0;return rt?new Date(Date.UTC(ut,B,gt,q,at,K,st+60*rt.offset*1e3)):s?new Date(Date.UTC(ut,B,gt,q,at,K,st)):(Z=new Date(ut,B,gt,q,at,K,st),lt&&(Z=V(Z).week(lt).toDate()),Z)}catch{return new Date("")}}(Y,u,p,W),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),k&&Y!=this.format(u)&&(this.$d=new Date("")),M={}}else if(u instanceof Array)for(var o=u.length,l=1;l<=o;l+=1){h[1]=u[l-1];var y=W.apply(this,h);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}l===o&&(this.$d=new Date(""))}else R.call(this,H)}}})})(Ce);var Di=Ce.exports;const Si=Yt(Di);var Me={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,function(){return function(r,n){var a=n.prototype,f=a.format;a.format=function(d){var T=this,M=this.$locale();if(!this.isValid())return f.bind(this)(d);var $=this.$utils(),b=(d||"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(F){switch(F){case"Q":return Math.ceil((T.$M+1)/3);case"Do":return M.ordinal(T.$D);case"gggg":return T.weekYear();case"GGGG":return T.isoWeekYear();case"wo":return M.ordinal(T.week(),"W");case"w":case"ww":return $.s(T.week(),F==="w"?1:2,"0");case"W":case"WW":return $.s(T.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return $.s(String(T.$H===0?24:T.$H),F==="k"?1:2,"0");case"X":return Math.floor(T.$d.getTime()/1e3);case"x":return T.$d.getTime();case"z":return"["+T.offsetName()+"]";case"zzz":return"["+T.offsetName("long")+"]";default:return F}});return f.bind(this)(b)}}})})(Me);var Ci=Me.exports;const Mi=Yt(Ci);var Ee={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(It,function(){var r,n,a=1e3,f=6e4,d=36e5,T=864e5,M=31536e6,$=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,F=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,C={years:M,months:$,days:T,hours:d,minutes:f,seconds:a,milliseconds:1,weeks:6048e5},D=function(Y){return Y instanceof R},z=function(Y,p,h){return new R(Y,h,p.$l)},I=function(Y){return n.p(Y)+"s"},S=function(Y){return Y<0},E=function(Y){return S(Y)?Math.ceil(Y):Math.floor(Y)},W=function(Y){return Math.abs(Y)},L=function(Y,p){return Y?S(Y)?{negative:!0,format:""+W(Y)+p}:{negative:!1,format:""+Y+p}:{negative:!1,format:""}},R=function(){function Y(h,u,x){var v=this;if(this.$d={},this.$l=x,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),u)return z(h*C[I(u)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach(function(o){v.$d[I(o)]=h[o]}),this.calMilliseconds(),this;if(typeof h=="string"){var k=h.match(b);if(k){var m=k.slice(2).map(function(o){return o!=null?Number(o):0});return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var p=Y.prototype;return p.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce(function(u,x){return u+(h.$d[x]||0)*C[x]},0)},p.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=E(h/M),h%=M,this.$d.months=E(h/$),h%=$,this.$d.days=E(h/T),h%=T,this.$d.hours=E(h/d),h%=d,this.$d.minutes=E(h/f),h%=f,this.$d.seconds=E(h/a),h%=a,this.$d.milliseconds=h},p.toISOString=function(){var h=L(this.$d.years,"Y"),u=L(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var v=L(x,"D"),k=L(this.$d.hours,"H"),m=L(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var l=L(o,"S"),y=h.negative||u.negative||v.negative||k.negative||m.negative||l.negative,g=k.format||m.format||l.format?"T":"",w=(y?"-":"")+"P"+h.format+u.format+v.format+g+k.format+m.format+l.format;return w==="P"||w==="-P"?"P0D":w},p.toJSON=function(){return this.toISOString()},p.format=function(h){var u=h||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return u.replace(F,function(v,k){return k||String(x[v])})},p.as=function(h){return this.$ms/C[I(h)]},p.get=function(h){var u=this.$ms,x=I(h);return x==="milliseconds"?u%=1e3:u=x==="weeks"?E(u/C[x]):this.$d[x],u||0},p.add=function(h,u,x){var v;return v=u?h*C[I(u)]:D(h)?h.$ms:z(h,this).$ms,z(this.$ms+v*(x?-1:1),this)},p.subtract=function(h,u){return this.add(h,u,!0)},p.locale=function(h){var u=this.clone();return u.$l=h,u},p.clone=function(){return z(this.$ms,this)},p.humanize=function(h){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},p.valueOf=function(){return this.asMilliseconds()},p.milliseconds=function(){return this.get("milliseconds")},p.asMilliseconds=function(){return this.as("milliseconds")},p.seconds=function(){return this.get("seconds")},p.asSeconds=function(){return this.as("seconds")},p.minutes=function(){return this.get("minutes")},p.asMinutes=function(){return this.as("minutes")},p.hours=function(){return this.get("hours")},p.asHours=function(){return this.as("hours")},p.days=function(){return this.get("days")},p.asDays=function(){return this.as("days")},p.weeks=function(){return this.get("weeks")},p.asWeeks=function(){return this.as("weeks")},p.months=function(){return this.get("months")},p.asMonths=function(){return this.as("months")},p.years=function(){return this.get("years")},p.asYears=function(){return this.as("years")},Y}(),H=function(Y,p,h){return Y.add(p.years()*h,"y").add(p.months()*h,"M").add(p.days()*h,"d").add(p.hours()*h,"h").add(p.minutes()*h,"m").add(p.seconds()*h,"s").add(p.milliseconds()*h,"ms")};return function(Y,p,h){r=h,n=h().$utils(),h.duration=function(v,k){var m=h.locale();return z(v,{$l:m},k)},h.isDuration=D;var u=p.prototype.add,x=p.prototype.subtract;p.prototype.add=function(v,k){return D(v)?H(this,v,1):u.bind(this)(v,k)},p.prototype.subtract=function(v,k){return D(v)?H(this,v,-1):x.bind(this)(v,k)}}})})(Ee);var Ei=Ee.exports;const Ii=Yt(Ei);var Rt=function(){var t=c(function(m,o,l,y){for(l=l||{},y=m.length;y--;l[m[y]]=o);return l},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],a=[1,28],f=[1,29],d=[1,30],T=[1,31],M=[1,32],$=[1,33],b=[1,34],F=[1,9],C=[1,10],D=[1,11],z=[1,12],I=[1,13],S=[1,14],E=[1,15],W=[1,16],L=[1,19],R=[1,20],H=[1,21],Y=[1,22],p=[1,23],h=[1,25],u=[1,35],x={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(o,l,y,g,w,s,V){var i=s.length-1;switch(w){case 1:return s[i-1];case 2:this.$=[];break;case 3:s[i-1].push(s[i]),this.$=s[i-1];break;case 4:case 5:this.$=s[i];break;case 6:case 7:this.$=[];break;case 8:g.setWeekday("monday");break;case 9:g.setWeekday("tuesday");break;case 10:g.setWeekday("wednesday");break;case 11:g.setWeekday("thursday");break;case 12:g.setWeekday("friday");break;case 13:g.setWeekday("saturday");break;case 14:g.setWeekday("sunday");break;case 15:g.setWeekend("friday");break;case 16:g.setWeekend("saturday");break;case 17:g.setDateFormat(s[i].substr(11)),this.$=s[i].substr(11);break;case 18:g.enableInclusiveEndDates(),this.$=s[i].substr(18);break;case 19:g.TopAxis(),this.$=s[i].substr(8);break;case 20:g.setAxisFormat(s[i].substr(11)),this.$=s[i].substr(11);break;case 21:g.setTickInterval(s[i].substr(13)),this.$=s[i].substr(13);break;case 22:g.setExcludes(s[i].substr(9)),this.$=s[i].substr(9);break;case 23:g.setIncludes(s[i].substr(9)),this.$=s[i].substr(9);break;case 24:g.setTodayMarker(s[i].substr(12)),this.$=s[i].substr(12);break;case 27:g.setDiagramTitle(s[i].substr(6)),this.$=s[i].substr(6);break;case 28:this.$=s[i].trim(),g.setAccTitle(this.$);break;case 29:case 30:this.$=s[i].trim(),g.setAccDescription(this.$);break;case 31:g.addSection(s[i].substr(8)),this.$=s[i].substr(8);break;case 33:g.addTask(s[i-1],s[i]),this.$="task";break;case 34:this.$=s[i-1],g.setClickEvent(s[i-1],s[i],null);break;case 35:this.$=s[i-2],g.setClickEvent(s[i-2],s[i-1],s[i]);break;case 36:this.$=s[i-2],g.setClickEvent(s[i-2],s[i-1],null),g.setLink(s[i-2],s[i]);break;case 37:this.$=s[i-3],g.setClickEvent(s[i-3],s[i-2],s[i-1]),g.setLink(s[i-3],s[i]);break;case 38:this.$=s[i-2],g.setClickEvent(s[i-2],s[i],null),g.setLink(s[i-2],s[i-1]);break;case 39:this.$=s[i-3],g.setClickEvent(s[i-3],s[i-1],s[i]),g.setLink(s[i-3],s[i-2]);break;case 40:this.$=s[i-1],g.setLink(s[i-1],s[i]);break;case 41:case 47:this.$=s[i-1]+" "+s[i];break;case 42:case 43:case 45:this.$=s[i-2]+" "+s[i-1]+" "+s[i];break;case 44:case 46:this.$=s[i-3]+" "+s[i-2]+" "+s[i-1]+" "+s[i];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:a,15:f,16:d,17:T,18:M,19:18,20:$,21:b,22:F,23:C,24:D,25:z,26:I,27:S,28:E,29:W,30:L,31:R,33:H,35:Y,36:p,37:24,38:h,40:u},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:a,15:f,16:d,17:T,18:M,19:18,20:$,21:b,22:F,23:C,24:D,25:z,26:I,27:S,28:E,29:W,30:L,31:R,33:H,35:Y,36:p,37:24,38:h,40:u},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:c(function(o,l){if(l.recoverable)this.trace(o);else{var y=new Error(o);throw y.hash=l,y}},"parseError"),parse:c(function(o){var l=this,y=[0],g=[],w=[null],s=[],V=this.table,i="",_=0,P=0,N=2,O=1,X=s.slice.call(arguments,1),A=Object.create(this.lexer),Q={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(Q.yy[rt]=this.yy[rt]);A.setInput(o,Q.yy),Q.yy.lexer=A,Q.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var lt=A.yylloc;s.push(lt);var yt=A.options&&A.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(U){y.length=y.length-2*U,w.length=w.length-U,s.length=s.length-U}c(gt,"popStack");function ut(){var U;return U=g.pop()||A.lex()||O,typeof U!="number"&&(U instanceof Array&&(g=U,U=g.pop()),U=l.symbols_[U]||U),U}c(ut,"lex");for(var B,Z,q,at,K={},st,J,ie,Tt;;){if(Z=y[y.length-1],this.defaultActions[Z]?q=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=ut()),q=V[Z]&&V[Z][B]),typeof q>"u"||!q.length||!q[0]){var $t="";Tt=[];for(st in V[Z])this.terminals_[st]&&st>N&&Tt.push("'"+this.terminals_[st]+"'");A.showPosition?$t="Parse error on line "+(_+1)+`:
|
|
2
|
+
`+A.showPosition()+`
|
|
3
|
+
Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":$t="Parse error on line "+(_+1)+": Unexpected "+(B==O?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError($t,{text:A.match,token:this.terminals_[B]||B,line:A.yylineno,loc:lt,expected:Tt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+B);switch(q[0]){case 1:y.push(B),w.push(A.yytext),s.push(A.yylloc),y.push(q[1]),B=null,P=A.yyleng,i=A.yytext,_=A.yylineno,lt=A.yylloc;break;case 2:if(J=this.productions_[q[1]][1],K.$=w[w.length-J],K._$={first_line:s[s.length-(J||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(J||1)].first_column,last_column:s[s.length-1].last_column},yt&&(K._$.range=[s[s.length-(J||1)].range[0],s[s.length-1].range[1]]),at=this.performAction.apply(K,[i,P,_,Q.yy,q[1],w,s].concat(X)),typeof at<"u")return at;J&&(y=y.slice(0,-1*J*2),w=w.slice(0,-1*J),s=s.slice(0,-1*J)),y.push(this.productions_[q[1]][0]),w.push(K.$),s.push(K._$),ie=V[y[y.length-2]][y[y.length-1]],y.push(ie);break;case 3:return!0}}return!0},"parse")},v=function(){var m={EOF:1,parseError:c(function(l,y){if(this.yy.parser)this.yy.parser.parseError(l,y);else throw new Error(l)},"parseError"),setInput:c(function(o,l){return this.yy=l||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:c(function(o){var l=o.length,y=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===g.length?this.yylloc.first_column:0)+g[g.length-y.length].length-y[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-l]),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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(o){this.unput(this.match.slice(o))},"less"),pastInput:c(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+l+"^"},"showPosition"),test_match:c(function(o,l){var y,g,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),g=o[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],y=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var s in w)this[s]=w[s];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,l,y,g;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),s=0;s<w.length;s++)if(y=this._input.match(this.rules[w[s]]),y&&(!l||y[0].length>l[0].length)){if(l=y,g=s,this.options.backtrack_lexer){if(o=this.test_match(y,w[s]),o!==!1)return o;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(o=this.test_match(l,w[g]),o!==!1?o:!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,y,g,w){switch(g){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 m}();x.lexer=v;function k(){this.yy={}}return c(k,"Parser"),k.prototype=x,x.Parser=k,new k}();Rt.parser=Rt;var Ai=Rt;j.extend(_i);j.extend(Si);j.extend(Mi);var de={friday:5,saturday:6},tt="",Xt="",jt=void 0,qt="",pt=[],vt=[],Ut=new Map,Zt=[],Mt=[],kt="",Kt="",Ie=["active","done","crit","milestone","vert"],Qt=[],dt="",xt=!1,Jt=!1,te="sunday",Et="saturday",Ht=0,$i=c(function(){Zt=[],Mt=[],kt="",Qt=[],Dt=0,Gt=void 0,St=void 0,G=[],tt="",Xt="",Kt="",jt=void 0,qt="",pt=[],vt=[],xt=!1,Jt=!1,Ht=0,Ut=new Map,dt="",je(),te="sunday",Et="saturday"},"clear"),Yi=c(function(t){dt=t},"setDiagramId"),Li=c(function(t){Xt=t},"setAxisFormat"),Fi=c(function(){return Xt},"getAxisFormat"),Oi=c(function(t){jt=t},"setTickInterval"),Wi=c(function(){return jt},"getTickInterval"),Ni=c(function(t){qt=t},"setTodayMarker"),Pi=c(function(){return qt},"getTodayMarker"),zi=c(function(t){tt=t},"setDateFormat"),Vi=c(function(){xt=!0},"enableInclusiveEndDates"),Ri=c(function(){return xt},"endDatesAreInclusive"),Hi=c(function(){Jt=!0},"enableTopAxis"),Bi=c(function(){return Jt},"topAxisEnabled"),Gi=c(function(t){Kt=t},"setDisplayMode"),Xi=c(function(){return Kt},"getDisplayMode"),ji=c(function(){return tt},"getDateFormat"),qi=c(function(t){pt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),Ui=c(function(){return pt},"getIncludes"),Zi=c(function(t){vt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),Ki=c(function(){return vt},"getExcludes"),Qi=c(function(){return Ut},"getLinks"),Ji=c(function(t){kt=t,Zt.push(t)},"addSection"),tn=c(function(){return Zt},"getSections"),en=c(function(){let t=fe();const e=10;let r=0;for(;!t&&r<e;)t=fe(),r++;return Mt=G,Mt},"getTasks"),Ae=c(function(t,e,r,n){const a=t.format(e.trim()),f=t.format("YYYY-MM-DD");return n.includes(a)||n.includes(f)?!1:r.includes("weekends")&&(t.isoWeekday()===de[Et]||t.isoWeekday()===de[Et]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(a)||r.includes(f)},"isInvalidDate"),nn=c(function(t){te=t},"setWeekday"),rn=c(function(){return te},"getWeekday"),sn=c(function(t){Et=t},"setWeekend"),$e=c(function(t,e,r,n){if(!r.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=j(t.startTime):a=j(t.startTime,e,!0),a=a.add(1,"d");let f;t.endTime instanceof Date?f=j(t.endTime):f=j(t.endTime,e,!0);const[d,T]=an(a,f,e,r,n);t.endTime=d.toDate(),t.renderEndTime=T},"checkTaskDates"),an=c(function(t,e,r,n,a){let f=!1,d=null;const T=e.add(1e4,"d");for(;t<=e;){if(f||(d=e.toDate()),f=Ae(t,r,n,a),f&&(e=e.add(1,"d"),e>T))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,d]},"fixTaskDates"),Bt=c(function(t,e,r){if(r=r.trim(),c(T=>{const E=T.trim();return E==="x"||E==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const f=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(f!==null){let T=null;for(const $ of f.groups.ids.split(" ")){let b=ct($);b!==void 0&&(!T||b.endTime>T.endTime)&&(T=b)}if(T)return T.endTime;const E=new Date;return E.setHours(0,0,0,0),E}let d=j(r,e.trim(),!0);if(d.isValid())return d.toDate();{ot.debug("Invalid date:"+r),ot.debug("With date format:"+e.trim());const T=new Date(r);if(T===void 0||isNaN(T.getTime())||T.getFullYear()<-1e4||T.getFullYear()>1e4)throw new Error("Invalid date:"+r);return T}},"getStartDate"),Ye=c(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Le=c(function(t,e,r,n=!1){r=r.trim();const f=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(f!==null){let b=null;for(const C of f.groups.ids.split(" ")){let D=ct(C);D!==void 0&&(!b||D.startTime<b.startTime)&&(b=D)}if(b)return b.startTime;const F=new Date;return F.setHours(0,0,0,0),F}let d=j(r,e.trim(),!0);if(d.isValid())return n&&(d=d.add(1,"d")),d.toDate();let T=j(t);const[E,$]=Ye(r);if(!Number.isNaN(E)){const b=T.add(E,$);b.isValid()&&(T=b)}return T.toDate()},"getEndDate"),Dt=0,mt=c(function(t){return t===void 0?(Dt=Dt+1,"task"+Dt):t},"parseId"),on=c(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),a={};ee(n,a,Ie);for(let d=0;d<n.length;d++)n[d]=n[d].trim();let f="";switch(n.length){case 1:a.id=mt(),a.startTime=t.endTime,f=n[0];break;case 2:a.id=mt(),a.startTime=Bt(void 0,tt,n[0]),f=n[1];break;case 3:a.id=mt(n[0]),a.startTime=Bt(void 0,tt,n[1]),f=n[2];break}return f&&(a.endTime=Le(a.startTime,tt,f,xt),a.manualEndTime=j(f,"YYYY-MM-DD",!0).isValid(),$e(a,tt,vt,pt)),a},"compileData"),cn=c(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),a={};ee(n,a,Ie);for(let f=0;f<n.length;f++)n[f]=n[f].trim();switch(n.length){case 1:a.id=mt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:n[0]};break;case 2:a.id=mt(),a.startTime={type:"getStartDate",startData:n[0]},a.endTime={data:n[1]};break;case 3:a.id=mt(n[0]),a.startTime={type:"getStartDate",startData:n[1]},a.endTime={data:n[2]};break}return a},"parseData"),Gt,St,G=[],Fe={},ln=c(function(t,e){const r={section:kt,type:kt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},n=cn(St,e);r.raw.startTime=n.startTime,r.raw.endTime=n.endTime,r.id=n.id,r.prevTaskId=St,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,r.order=Ht,Ht++;const a=G.push(r);St=r.id,Fe[r.id]=a-1},"addTask"),ct=c(function(t){const e=Fe[t];return G[e]},"findTaskById"),un=c(function(t,e){const r={section:kt,type:kt,description:t,task:t,classes:[]},n=on(Gt,e);r.startTime=n.startTime,r.endTime=n.endTime,r.id=n.id,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,Gt=r,Mt.push(r)},"addTaskOrg"),fe=c(function(){const t=c(function(r){const n=G[r];let a="";switch(G[r].raw.startTime.type){case"prevTaskEnd":{const f=ct(n.prevTaskId);n.startTime=f.endTime;break}case"getStartDate":a=Bt(void 0,tt,G[r].raw.startTime.startData),a&&(G[r].startTime=a);break}return G[r].startTime&&(G[r].endTime=Le(G[r].startTime,tt,G[r].raw.endTime.data,xt),G[r].endTime&&(G[r].processed=!0,G[r].manualEndTime=j(G[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$e(G[r],tt,vt,pt))),G[r].processed},"compileTask");let e=!0;for(const[r,n]of G.entries())t(r),e=e&&n.processed;return e},"compileTasks"),dn=c(function(t,e){let r=e;ft().securityLevel!=="loose"&&(r=Xe(e)),t.split(",").forEach(function(n){ct(n)!==void 0&&(We(n,()=>{window.open(r,"_self")}),Ut.set(n,r))}),Oe(t,"clickable")},"setLink"),Oe=c(function(t,e){t.split(",").forEach(function(r){let n=ct(r);n!==void 0&&n.classes.push(e)})},"setClass"),fn=c(function(t,e,r){if(ft().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<n.length;f++){let d=n[f].trim();d.startsWith('"')&&d.endsWith('"')&&(d=d.substr(1,d.length-2)),n[f]=d}}n.length===0&&n.push(t),ct(t)!==void 0&&We(t,()=>{qe.runFunc(e,...n)})},"setClickFun"),We=c(function(t,e){Qt.push(function(){const r=dt?`${dt}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=dt?`${dt}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),hn=c(function(t,e,r){t.split(",").forEach(function(n){fn(n,e,r)}),Oe(t,"clickable")},"setClickEvent"),mn=c(function(t){Qt.forEach(function(e){e(t)})},"bindFunctions"),kn={getConfig:c(()=>ft().gantt,"getConfig"),clear:$i,setDateFormat:zi,getDateFormat:ji,enableInclusiveEndDates:Vi,endDatesAreInclusive:Ri,enableTopAxis:Hi,topAxisEnabled:Bi,setAxisFormat:Li,getAxisFormat:Fi,setTickInterval:Oi,getTickInterval:Wi,setTodayMarker:Ni,getTodayMarker:Pi,setAccTitle:He,getAccTitle:Re,setDiagramTitle:Ve,getDiagramTitle:ze,setDiagramId:Yi,setDisplayMode:Gi,getDisplayMode:Xi,setAccDescription:Pe,getAccDescription:Ne,addSection:Ji,getSections:tn,getTasks:en,addTask:ln,findTaskById:ct,addTaskOrg:un,setIncludes:qi,getIncludes:Ui,setExcludes:Zi,getExcludes:Ki,setClickEvent:hn,setLink:dn,getLinks:Qi,bindFunctions:mn,parseDuration:Ye,isInvalidDate:Ae,setWeekday:nn,getWeekday:rn,setWeekend:sn};function ee(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(a){const f="^\\s*"+a+"\\s*$",d=new RegExp(f);t[0].match(d)&&(e[a]=!0,t.shift(1),n=!0)})}c(ee,"getTaskTags");j.extend(Ii);var yn=c(function(){ot.debug("Something is calling, setConf, remove the call")},"setConf"),he={monday:ri,tuesday:ni,wednesday:ii,thursday:ei,friday:ti,saturday:Je,sunday:Qe},gn=c((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((f,d)=>f.startTime-d.startTime||f.order-d.order),a=0;for(const f of n)for(let d=0;d<r.length;d++)if(f.startTime>=r[d]){r[d]=f.endTime,f.order=d+e,d>a&&(a=d);break}return a},"getMaxIntersections"),it,Pt=1e4,pn=c(function(t,e,r,n){const a=ft().gantt;n.db.setDiagramId(e);const f=ft().securityLevel;let d;f==="sandbox"&&(d=bt("#i"+e));const T=f==="sandbox"?bt(d.nodes()[0].contentDocument.body):bt("body"),E=f==="sandbox"?d.nodes()[0].contentDocument:document,$=E.getElementById(e);it=$.parentElement.offsetWidth,it===void 0&&(it=1200),a.useWidth!==void 0&&(it=a.useWidth);const b=n.db.getTasks();let F=[];for(const u of b)F.push(u.type);F=h(F);const C={};let D=2*a.topPadding;if(n.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const u={};for(const v of b)u[v.section]===void 0?u[v.section]=[v]:u[v.section].push(v);let x=0;for(const v of Object.keys(u)){const k=gn(u[v],x)+1;x+=k,D+=k*(a.barHeight+a.barGap),C[v]=k}}else{D+=b.length*(a.barHeight+a.barGap);for(const u of F)C[u]=b.filter(x=>x.type===u).length}$.setAttribute("viewBox","0 0 "+it+" "+D);const V=T.select(`[id="${e}"]`),I=Ue().domain([Ze(b,function(u){return u.startTime}),Ke(b,function(u){return u.endTime})]).rangeRound([0,it-a.leftPadding-a.rightPadding]);function S(u,x){const v=u.startTime,k=x.startTime;let m=0;return v>k?m=1:v<k&&(m=-1),m}c(S,"taskCompare"),b.sort(S),M(b,it,D),Be(V,D,it,a.useMaxWidth),V.append("text").text(n.db.getDiagramTitle()).attr("x",it/2).attr("y",a.titleTopMargin).attr("class","titleText");function M(u,x,v){const k=a.barHeight,m=k+a.barGap,o=a.topPadding,l=a.leftPadding,y=si().domain([0,F.length]).range(["#00B9FA","#F95002"]).interpolate(bi);L(m,o,l,x,v,u,n.db.getExcludes(),n.db.getIncludes()),H(l,o,x,v),W(u,m,o,l,k,y,x),A(m,o),p(l,o,x,v)}c(M,"makeGantt");function W(u,x,v,k,m,o,l){u.sort((i,_)=>i.vert===_.vert?0:i.vert?1:-1);const g=[...new Set(u.map(i=>i.order))].map(i=>u.find(_=>_.order===i));V.append("g").selectAll("rect").data(g).enter().append("rect").attr("x",0).attr("y",function(i,_){return _=i.order,_*x+v-2}).attr("width",function(){return l-a.rightPadding/2}).attr("height",x).attr("class",function(i){for(const[_,P]of F.entries())if(i.type===P)return"section section"+_%a.numberSectionStyles;return"section section0"}).enter();const w=V.append("g").selectAll("rect").data(u).enter(),s=n.db.getLinks();if(w.append("rect").attr("id",function(i){return e+"-"+i.id}).attr("rx",3).attr("ry",3).attr("x",function(i){return i.milestone?I(i.startTime)+k+.5*(I(i.endTime)-I(i.startTime))-.5*m:I(i.startTime)+k}).attr("y",function(i,_){return _=i.order,i.vert?a.gridLineStartPadding:_*x+v}).attr("width",function(i){return i.milestone?m:i.vert?.08*m:I(i.renderEndTime||i.endTime)-I(i.startTime)}).attr("height",function(i){return i.vert?b.length*(a.barHeight+a.barGap)+a.barHeight*2:m}).attr("transform-origin",function(i,_){return _=i.order,(I(i.startTime)+k+.5*(I(i.endTime)-I(i.startTime))).toString()+"px "+(_*x+v+.5*m).toString()+"px"}).attr("class",function(i){const _="task";let P="";i.classes.length>0&&(P=i.classes.join(" "));let N=0;for(const[X,Y]of F.entries())i.type===Y&&(N=X%a.numberSectionStyles);let O="";return i.active?i.crit?O+=" activeCrit":O=" active":i.done?i.crit?O=" doneCrit":O=" done":i.crit&&(O+=" crit"),O.length===0&&(O=" task"),i.milestone&&(O=" milestone "+O),i.vert&&(O=" vert "+O),O+=N,O+=" "+P,_+O}),w.append("text").attr("id",function(i){return e+"-"+i.id+"-text"}).text(function(i){return i.task}).attr("font-size",a.fontSize).attr("x",function(i){let _=I(i.startTime),P=I(i.renderEndTime||i.endTime);if(i.milestone&&(_+=.5*(I(i.endTime)-I(i.startTime))-.5*m,P=_+m),i.vert)return I(i.startTime)+k;const N=this.getBBox().width;return N>P-_?P+N+1.5*a.leftPadding>l?_+k-5:P+k+5:(P-_)/2+_+k}).attr("y",function(i,_){return i.vert?a.gridLineStartPadding+b.length*(a.barHeight+a.barGap)+60:(_=i.order,_*x+a.barHeight/2+(a.fontSize/2-2)+v)}).attr("text-height",m).attr("class",function(i){const _=I(i.startTime);let P=I(i.endTime);i.milestone&&(P=_+m);const N=this.getBBox().width;let O="";i.classes.length>0&&(O=i.classes.join(" "));let X=0;for(const[K,rt]of F.entries())i.type===rt&&(X=K%a.numberSectionStyles);let Y="";return i.active&&(i.crit?Y="activeCritText"+X:Y="activeText"+X),i.done?i.crit?Y=Y+" doneCritText"+X:Y=Y+" doneText"+X:i.crit&&(Y=Y+" critText"+X),i.milestone&&(Y+=" milestoneText"),i.vert&&(Y+=" vertText"),N>P-_?P+N+1.5*a.leftPadding>l?O+" taskTextOutsideLeft taskTextOutside"+X+" "+Y:O+" taskTextOutsideRight taskTextOutside"+X+" "+Y+" width-"+N:O+" taskText taskText"+X+" "+Y+" width-"+N}),ft().securityLevel==="sandbox"){let i;i=bt("#i"+e);const _=i.nodes()[0].contentDocument;w.filter(function(P){return s.has(P.id)}).each(function(P){var N=_.querySelector("#"+CSS.escape(e+"-"+P.id)),O=_.querySelector("#"+CSS.escape(e+"-"+P.id+"-text"));const X=N.parentNode;var Y=_.createElement("a");Y.setAttribute("xlink:href",s.get(P.id)),Y.setAttribute("target","_top"),X.appendChild(Y),Y.appendChild(N),Y.appendChild(O)})}}c(W,"drawRects");function L(u,x,v,k,m,o,l,y){if(l.length===0&&y.length===0)return;let g,w;for(const{startTime:N,endTime:O}of o)(g===void 0||N<g)&&(g=N),(w===void 0||O>w)&&(w=O);if(!g||!w)return;if(j(w).diff(j(g),"year")>5){ot.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const s=n.db.getDateFormat(),z=[];let i=null,_=j(g);for(;_.valueOf()<=w;)n.db.isInvalidDate(_,s,l,y)?i?i.end=_:i={start:_,end:_}:i&&(z.push(i),i=null),_=_.add(1,"d");V.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",N=>e+"-exclude-"+N.start.format("YYYY-MM-DD")).attr("x",N=>I(N.start.startOf("day"))+v).attr("y",a.gridLineStartPadding).attr("width",N=>I(N.end.endOf("day"))-I(N.start.startOf("day"))).attr("height",m-x-a.gridLineStartPadding).attr("transform-origin",function(N,O){return(I(N.start)+v+.5*(I(N.end)-I(N.start))).toString()+"px "+(O*u+.5*m).toString()+"px"}).attr("class","exclude-range")}c(L,"drawExcludeDays");function R(u,x,v,k){if(v<=0||u>x)return 1/0;const m=x-u,o=j.duration({[k??"day"]:v}).asMilliseconds();return o<=0?1/0:Math.ceil(m/o)}c(R,"getEstimatedTickCount");function H(u,x,v,k){const m=n.db.getDateFormat(),o=n.db.getAxisFormat();let l;o?l=o:m==="D"?l="%d":l=a.axisFormat??"%Y-%m-%d";let y=ki(I).tickSize(-k+x+a.gridLineStartPadding).tickFormat(ne(l));const w=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||a.tickInterval);if(w!==null){const s=parseInt(w[1],10);if(isNaN(s)||s<=0)ot.warn(`Invalid tick interval value: "${w[1]}". Skipping custom tick interval.`);else{const z=w[2],i=n.db.getWeekday()||a.weekday,_=I.domain(),P=_[0],N=_[1],O=R(P,N,s,z);if(O>Pt)ot.warn(`The tick interval "${s}${z}" would generate ${O} ticks, which exceeds the maximum allowed (${Pt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(z){case"millisecond":y.ticks(le.every(s));break;case"second":y.ticks(ce.every(s));break;case"minute":y.ticks(oe.every(s));break;case"hour":y.ticks(ae.every(s));break;case"day":y.ticks(se.every(s));break;case"week":y.ticks(he[i].every(s));break;case"month":y.ticks(re.every(s));break}}}if(V.append("g").attr("class","grid").attr("transform","translate("+u+", "+(k-50)+")").call(y).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||a.topAxis){let s=mi(I).tickSize(-k+x+a.gridLineStartPadding).tickFormat(ne(l));if(w!==null){const z=parseInt(w[1],10);if(isNaN(z)||z<=0)ot.warn(`Invalid tick interval value: "${w[1]}". Skipping custom tick interval.`);else{const i=w[2],_=n.db.getWeekday()||a.weekday,P=I.domain(),N=P[0],O=P[1];if(R(N,O,z,i)<=Pt)switch(i){case"millisecond":s.ticks(le.every(z));break;case"second":s.ticks(ce.every(z));break;case"minute":s.ticks(oe.every(z));break;case"hour":s.ticks(ae.every(z));break;case"day":s.ticks(se.every(z));break;case"week":s.ticks(he[_].every(z));break;case"month":s.ticks(re.every(z));break}}}V.append("g").attr("class","grid").attr("transform","translate("+u+", "+x+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}c(H,"makeGrid");function A(u,x){let v=0;const k=Object.keys(C).map(m=>[m,C[m]]);V.append("g").selectAll("text").data(k).enter().append(function(m){const o=m[0].split(Ge.lineBreakRegex),l=-(o.length-1)/2,y=E.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("dy",l+"em");for(const[g,w]of o.entries()){const s=E.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),g>0&&s.setAttribute("dy","1em"),s.textContent=w,y.appendChild(s)}return y}).attr("x",10).attr("y",function(m,o){if(o>0)for(let l=0;l<o;l++)return v+=k[o-1][1],m[1]*u/2+v*u+x;else return m[1]*u/2+x}).attr("font-size",a.sectionFontSize).attr("class",function(m){for(const[o,l]of F.entries())if(m[0]===l)return"sectionTitle sectionTitle"+o%a.numberSectionStyles;return"sectionTitle"})}c(A,"vertLabels");function p(u,x,v,k){const m=n.db.getTodayMarker();if(m==="off")return;const o=V.append("g").attr("class","today"),l=new Date,y=o.append("line");y.attr("x1",I(l)+u).attr("x2",I(l)+u).attr("y1",a.titleTopMargin).attr("y2",k-a.titleTopMargin).attr("class","today"),m!==""&&y.attr("style",m.replace(/,/g,";"))}c(p,"drawToday");function h(u){const x={},v=[];for(let k=0,m=u.length;k<m;++k)Object.prototype.hasOwnProperty.call(x,u[k])||(x[u[k]]=!0,v.push(u[k]));return v}c(h,"checkUnique")},"draw"),vn={setConf:yn,draw:pn},xn=c(t=>`
|
|
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,y,g,w){switch(g){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 m}();x.lexer=v;function k(){this.yy={}}return c(k,"Parser"),k.prototype=x,x.Parser=k,new k}();Rt.parser=Rt;var Yi=Rt;j.extend(_i);j.extend(Si);j.extend(Mi);var de={friday:5,saturday:6},tt="",Xt="",jt=void 0,qt="",pt=[],vt=[],Ut=new Map,Zt=[],Mt=[],kt="",Qt="",Ie=["active","done","crit","milestone","vert"],Kt=[],dt="",xt=!1,Jt=!1,te="sunday",Et="saturday",Ht=0,$i=c(function(){Zt=[],Mt=[],kt="",Kt=[],Dt=0,Gt=void 0,St=void 0,G=[],tt="",Xt="",Qt="",jt=void 0,qt="",pt=[],vt=[],xt=!1,Jt=!1,Ht=0,Ut=new Map,dt="",je(),te="sunday",Et="saturday"},"clear"),Ai=c(function(t){dt=t},"setDiagramId"),Li=c(function(t){Xt=t},"setAxisFormat"),Fi=c(function(){return Xt},"getAxisFormat"),Oi=c(function(t){jt=t},"setTickInterval"),Wi=c(function(){return jt},"getTickInterval"),Ni=c(function(t){qt=t},"setTodayMarker"),Pi=c(function(){return qt},"getTodayMarker"),Vi=c(function(t){tt=t},"setDateFormat"),zi=c(function(){xt=!0},"enableInclusiveEndDates"),Ri=c(function(){return xt},"endDatesAreInclusive"),Hi=c(function(){Jt=!0},"enableTopAxis"),Bi=c(function(){return Jt},"topAxisEnabled"),Gi=c(function(t){Qt=t},"setDisplayMode"),Xi=c(function(){return Qt},"getDisplayMode"),ji=c(function(){return tt},"getDateFormat"),qi=c(function(t){pt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),Ui=c(function(){return pt},"getIncludes"),Zi=c(function(t){vt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),Qi=c(function(){return vt},"getExcludes"),Ki=c(function(){return Ut},"getLinks"),Ji=c(function(t){kt=t,Zt.push(t)},"addSection"),tn=c(function(){return Zt},"getSections"),en=c(function(){let t=fe();const e=10;let r=0;for(;!t&&r<e;)t=fe(),r++;return Mt=G,Mt},"getTasks"),Ye=c(function(t,e,r,n){const a=t.format(e.trim()),f=t.format("YYYY-MM-DD");return n.includes(a)||n.includes(f)?!1:r.includes("weekends")&&(t.isoWeekday()===de[Et]||t.isoWeekday()===de[Et]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(a)||r.includes(f)},"isInvalidDate"),nn=c(function(t){te=t},"setWeekday"),rn=c(function(){return te},"getWeekday"),sn=c(function(t){Et=t},"setWeekend"),$e=c(function(t,e,r,n){if(!r.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=j(t.startTime):a=j(t.startTime,e,!0),a=a.add(1,"d");let f;t.endTime instanceof Date?f=j(t.endTime):f=j(t.endTime,e,!0);const[d,T]=an(a,f,e,r,n);t.endTime=d.toDate(),t.renderEndTime=T},"checkTaskDates"),an=c(function(t,e,r,n,a){let f=!1,d=null;const T=e.add(1e4,"d");for(;t<=e;){if(f||(d=e.toDate()),f=Ye(t,r,n,a),f&&(e=e.add(1,"d"),e>T))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,d]},"fixTaskDates"),Bt=c(function(t,e,r){if(r=r.trim(),c(T=>{const M=T.trim();return M==="x"||M==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const f=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(f!==null){let T=null;for(const $ of f.groups.ids.split(" ")){let b=ct($);b!==void 0&&(!T||b.endTime>T.endTime)&&(T=b)}if(T)return T.endTime;const M=new Date;return M.setHours(0,0,0,0),M}let d=j(r,e.trim(),!0);if(d.isValid())return d.toDate();{ot.debug("Invalid date:"+r),ot.debug("With date format:"+e.trim());const T=new Date(r);if(T===void 0||isNaN(T.getTime())||T.getFullYear()<-1e4||T.getFullYear()>1e4)throw new Error("Invalid date:"+r);return T}},"getStartDate"),Ae=c(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Le=c(function(t,e,r,n=!1){r=r.trim();const f=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(f!==null){let b=null;for(const C of f.groups.ids.split(" ")){let D=ct(C);D!==void 0&&(!b||D.startTime<b.startTime)&&(b=D)}if(b)return b.startTime;const F=new Date;return F.setHours(0,0,0,0),F}let d=j(r,e.trim(),!0);if(d.isValid())return n&&(d=d.add(1,"d")),d.toDate();let T=j(t);const[M,$]=Ae(r);if(!Number.isNaN(M)){const b=T.add(M,$);b.isValid()&&(T=b)}return T.toDate()},"getEndDate"),Dt=0,mt=c(function(t){return t===void 0?(Dt=Dt+1,"task"+Dt):t},"parseId"),on=c(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),a={};ee(n,a,Ie);for(let d=0;d<n.length;d++)n[d]=n[d].trim();let f="";switch(n.length){case 1:a.id=mt(),a.startTime=t.endTime,f=n[0];break;case 2:a.id=mt(),a.startTime=Bt(void 0,tt,n[0]),f=n[1];break;case 3:a.id=mt(n[0]),a.startTime=Bt(void 0,tt,n[1]),f=n[2];break}return f&&(a.endTime=Le(a.startTime,tt,f,xt),a.manualEndTime=j(f,"YYYY-MM-DD",!0).isValid(),$e(a,tt,vt,pt)),a},"compileData"),cn=c(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),a={};ee(n,a,Ie);for(let f=0;f<n.length;f++)n[f]=n[f].trim();switch(n.length){case 1:a.id=mt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:n[0]};break;case 2:a.id=mt(),a.startTime={type:"getStartDate",startData:n[0]},a.endTime={data:n[1]};break;case 3:a.id=mt(n[0]),a.startTime={type:"getStartDate",startData:n[1]},a.endTime={data:n[2]};break}return a},"parseData"),Gt,St,G=[],Fe={},ln=c(function(t,e){const r={section:kt,type:kt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},n=cn(St,e);r.raw.startTime=n.startTime,r.raw.endTime=n.endTime,r.id=n.id,r.prevTaskId=St,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,r.order=Ht,Ht++;const a=G.push(r);St=r.id,Fe[r.id]=a-1},"addTask"),ct=c(function(t){const e=Fe[t];return G[e]},"findTaskById"),un=c(function(t,e){const r={section:kt,type:kt,description:t,task:t,classes:[]},n=on(Gt,e);r.startTime=n.startTime,r.endTime=n.endTime,r.id=n.id,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,Gt=r,Mt.push(r)},"addTaskOrg"),fe=c(function(){const t=c(function(r){const n=G[r];let a="";switch(G[r].raw.startTime.type){case"prevTaskEnd":{const f=ct(n.prevTaskId);n.startTime=f.endTime;break}case"getStartDate":a=Bt(void 0,tt,G[r].raw.startTime.startData),a&&(G[r].startTime=a);break}return G[r].startTime&&(G[r].endTime=Le(G[r].startTime,tt,G[r].raw.endTime.data,xt),G[r].endTime&&(G[r].processed=!0,G[r].manualEndTime=j(G[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$e(G[r],tt,vt,pt))),G[r].processed},"compileTask");let e=!0;for(const[r,n]of G.entries())t(r),e=e&&n.processed;return e},"compileTasks"),dn=c(function(t,e){let r=e;ft().securityLevel!=="loose"&&(r=Xe(e)),t.split(",").forEach(function(n){ct(n)!==void 0&&(We(n,()=>{window.open(r,"_self")}),Ut.set(n,r))}),Oe(t,"clickable")},"setLink"),Oe=c(function(t,e){t.split(",").forEach(function(r){let n=ct(r);n!==void 0&&n.classes.push(e)})},"setClass"),fn=c(function(t,e,r){if(ft().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<n.length;f++){let d=n[f].trim();d.startsWith('"')&&d.endsWith('"')&&(d=d.substr(1,d.length-2)),n[f]=d}}n.length===0&&n.push(t),ct(t)!==void 0&&We(t,()=>{qe.runFunc(e,...n)})},"setClickFun"),We=c(function(t,e){Kt.push(function(){const r=dt?`${dt}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=dt?`${dt}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),hn=c(function(t,e,r){t.split(",").forEach(function(n){fn(n,e,r)}),Oe(t,"clickable")},"setClickEvent"),mn=c(function(t){Kt.forEach(function(e){e(t)})},"bindFunctions"),kn={getConfig:c(()=>ft().gantt,"getConfig"),clear:$i,setDateFormat:Vi,getDateFormat:ji,enableInclusiveEndDates:zi,endDatesAreInclusive:Ri,enableTopAxis:Hi,topAxisEnabled:Bi,setAxisFormat:Li,getAxisFormat:Fi,setTickInterval:Oi,getTickInterval:Wi,setTodayMarker:Ni,getTodayMarker:Pi,setAccTitle:He,getAccTitle:Re,setDiagramTitle:ze,getDiagramTitle:Ve,setDiagramId:Ai,setDisplayMode:Gi,getDisplayMode:Xi,setAccDescription:Pe,getAccDescription:Ne,addSection:Ji,getSections:tn,getTasks:en,addTask:ln,findTaskById:ct,addTaskOrg:un,setIncludes:qi,getIncludes:Ui,setExcludes:Zi,getExcludes:Qi,setClickEvent:hn,setLink:dn,getLinks:Ki,bindFunctions:mn,parseDuration:Ae,isInvalidDate:Ye,setWeekday:nn,getWeekday:rn,setWeekend:sn};function ee(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(a){const f="^\\s*"+a+"\\s*$",d=new RegExp(f);t[0].match(d)&&(e[a]=!0,t.shift(1),n=!0)})}c(ee,"getTaskTags");j.extend(Ii);var yn=c(function(){ot.debug("Something is calling, setConf, remove the call")},"setConf"),he={monday:ri,tuesday:ni,wednesday:ii,thursday:ei,friday:ti,saturday:Je,sunday:Ke},gn=c((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((f,d)=>f.startTime-d.startTime||f.order-d.order),a=0;for(const f of n)for(let d=0;d<r.length;d++)if(f.startTime>=r[d]){r[d]=f.endTime,f.order=d+e,d>a&&(a=d);break}return a},"getMaxIntersections"),it,Pt=1e4,pn=c(function(t,e,r,n){const a=ft().gantt;n.db.setDiagramId(e);const f=ft().securityLevel;let d;f==="sandbox"&&(d=bt("#i"+e));const T=f==="sandbox"?bt(d.nodes()[0].contentDocument.body):bt("body"),M=f==="sandbox"?d.nodes()[0].contentDocument:document,$=M.getElementById(e);it=$.parentElement.offsetWidth,it===void 0&&(it=1200),a.useWidth!==void 0&&(it=a.useWidth);const b=n.db.getTasks();let F=[];for(const u of b)F.push(u.type);F=h(F);const C={};let D=2*a.topPadding;if(n.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const u={};for(const v of b)u[v.section]===void 0?u[v.section]=[v]:u[v.section].push(v);let x=0;for(const v of Object.keys(u)){const k=gn(u[v],x)+1;x+=k,D+=k*(a.barHeight+a.barGap),C[v]=k}}else{D+=b.length*(a.barHeight+a.barGap);for(const u of F)C[u]=b.filter(x=>x.type===u).length}$.setAttribute("viewBox","0 0 "+it+" "+D);const z=T.select(`[id="${e}"]`),I=Ue().domain([Ze(b,function(u){return u.startTime}),Qe(b,function(u){return u.endTime})]).rangeRound([0,it-a.leftPadding-a.rightPadding]);function S(u,x){const v=u.startTime,k=x.startTime;let m=0;return v>k?m=1:v<k&&(m=-1),m}c(S,"taskCompare"),b.sort(S),E(b,it,D),Be(z,D,it,a.useMaxWidth),z.append("text").text(n.db.getDiagramTitle()).attr("x",it/2).attr("y",a.titleTopMargin).attr("class","titleText");function E(u,x,v){const k=a.barHeight,m=k+a.barGap,o=a.topPadding,l=a.leftPadding,y=si().domain([0,F.length]).range(["#00B9FA","#F95002"]).interpolate(bi);L(m,o,l,x,v,u,n.db.getExcludes(),n.db.getIncludes()),H(l,o,x,v),W(u,m,o,l,k,y,x),Y(m,o),p(l,o,x,v)}c(E,"makeGantt");function W(u,x,v,k,m,o,l){u.sort((i,_)=>i.vert===_.vert?0:i.vert?1:-1);const g=[...new Set(u.map(i=>i.order))].map(i=>u.find(_=>_.order===i));z.append("g").selectAll("rect").data(g).enter().append("rect").attr("x",0).attr("y",function(i,_){return _=i.order,_*x+v-2}).attr("width",function(){return l-a.rightPadding/2}).attr("height",x).attr("class",function(i){for(const[_,P]of F.entries())if(i.type===P)return"section section"+_%a.numberSectionStyles;return"section section0"}).enter();const w=z.append("g").selectAll("rect").data(u).enter(),s=n.db.getLinks();if(w.append("rect").attr("id",function(i){return e+"-"+i.id}).attr("rx",3).attr("ry",3).attr("x",function(i){return i.milestone?I(i.startTime)+k+.5*(I(i.endTime)-I(i.startTime))-.5*m:I(i.startTime)+k}).attr("y",function(i,_){return _=i.order,i.vert?a.gridLineStartPadding:_*x+v}).attr("width",function(i){return i.milestone?m:i.vert?.08*m:I(i.renderEndTime||i.endTime)-I(i.startTime)}).attr("height",function(i){return i.vert?b.length*(a.barHeight+a.barGap)+a.barHeight*2:m}).attr("transform-origin",function(i,_){return _=i.order,(I(i.startTime)+k+.5*(I(i.endTime)-I(i.startTime))).toString()+"px "+(_*x+v+.5*m).toString()+"px"}).attr("class",function(i){const _="task";let P="";i.classes.length>0&&(P=i.classes.join(" "));let N=0;for(const[X,A]of F.entries())i.type===A&&(N=X%a.numberSectionStyles);let O="";return i.active?i.crit?O+=" activeCrit":O=" active":i.done?i.crit?O=" doneCrit":O=" done":i.crit&&(O+=" crit"),O.length===0&&(O=" task"),i.milestone&&(O=" milestone "+O),i.vert&&(O=" vert "+O),O+=N,O+=" "+P,_+O}),w.append("text").attr("id",function(i){return e+"-"+i.id+"-text"}).text(function(i){return i.task}).attr("font-size",a.fontSize).attr("x",function(i){let _=I(i.startTime),P=I(i.renderEndTime||i.endTime);if(i.milestone&&(_+=.5*(I(i.endTime)-I(i.startTime))-.5*m,P=_+m),i.vert)return I(i.startTime)+k;const N=this.getBBox().width;return N>P-_?P+N+1.5*a.leftPadding>l?_+k-5:P+k+5:(P-_)/2+_+k}).attr("y",function(i,_){return i.vert?a.gridLineStartPadding+b.length*(a.barHeight+a.barGap)+60:(_=i.order,_*x+a.barHeight/2+(a.fontSize/2-2)+v)}).attr("text-height",m).attr("class",function(i){const _=I(i.startTime);let P=I(i.endTime);i.milestone&&(P=_+m);const N=this.getBBox().width;let O="";i.classes.length>0&&(O=i.classes.join(" "));let X=0;for(const[Q,rt]of F.entries())i.type===rt&&(X=Q%a.numberSectionStyles);let A="";return i.active&&(i.crit?A="activeCritText"+X:A="activeText"+X),i.done?i.crit?A=A+" doneCritText"+X:A=A+" doneText"+X:i.crit&&(A=A+" critText"+X),i.milestone&&(A+=" milestoneText"),i.vert&&(A+=" vertText"),N>P-_?P+N+1.5*a.leftPadding>l?O+" taskTextOutsideLeft taskTextOutside"+X+" "+A:O+" taskTextOutsideRight taskTextOutside"+X+" "+A+" width-"+N:O+" taskText taskText"+X+" "+A+" width-"+N}),ft().securityLevel==="sandbox"){let i;i=bt("#i"+e);const _=i.nodes()[0].contentDocument;w.filter(function(P){return s.has(P.id)}).each(function(P){var N=_.querySelector("#"+CSS.escape(e+"-"+P.id)),O=_.querySelector("#"+CSS.escape(e+"-"+P.id+"-text"));const X=N.parentNode;var A=_.createElement("a");A.setAttribute("xlink:href",s.get(P.id)),A.setAttribute("target","_top"),X.appendChild(A),A.appendChild(N),A.appendChild(O)})}}c(W,"drawRects");function L(u,x,v,k,m,o,l,y){if(l.length===0&&y.length===0)return;let g,w;for(const{startTime:N,endTime:O}of o)(g===void 0||N<g)&&(g=N),(w===void 0||O>w)&&(w=O);if(!g||!w)return;if(j(w).diff(j(g),"year")>5){ot.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const s=n.db.getDateFormat(),V=[];let i=null,_=j(g);for(;_.valueOf()<=w;)n.db.isInvalidDate(_,s,l,y)?i?i.end=_:i={start:_,end:_}:i&&(V.push(i),i=null),_=_.add(1,"d");z.append("g").selectAll("rect").data(V).enter().append("rect").attr("id",N=>e+"-exclude-"+N.start.format("YYYY-MM-DD")).attr("x",N=>I(N.start.startOf("day"))+v).attr("y",a.gridLineStartPadding).attr("width",N=>I(N.end.endOf("day"))-I(N.start.startOf("day"))).attr("height",m-x-a.gridLineStartPadding).attr("transform-origin",function(N,O){return(I(N.start)+v+.5*(I(N.end)-I(N.start))).toString()+"px "+(O*u+.5*m).toString()+"px"}).attr("class","exclude-range")}c(L,"drawExcludeDays");function R(u,x,v,k){if(v<=0||u>x)return 1/0;const m=x-u,o=j.duration({[k??"day"]:v}).asMilliseconds();return o<=0?1/0:Math.ceil(m/o)}c(R,"getEstimatedTickCount");function H(u,x,v,k){const m=n.db.getDateFormat(),o=n.db.getAxisFormat();let l;o?l=o:m==="D"?l="%d":l=a.axisFormat??"%Y-%m-%d";let y=ki(I).tickSize(-k+x+a.gridLineStartPadding).tickFormat(ne(l));const w=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||a.tickInterval);if(w!==null){const s=parseInt(w[1],10);if(isNaN(s)||s<=0)ot.warn(`Invalid tick interval value: "${w[1]}". Skipping custom tick interval.`);else{const V=w[2],i=n.db.getWeekday()||a.weekday,_=I.domain(),P=_[0],N=_[1],O=R(P,N,s,V);if(O>Pt)ot.warn(`The tick interval "${s}${V}" would generate ${O} ticks, which exceeds the maximum allowed (${Pt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(V){case"millisecond":y.ticks(le.every(s));break;case"second":y.ticks(ce.every(s));break;case"minute":y.ticks(oe.every(s));break;case"hour":y.ticks(ae.every(s));break;case"day":y.ticks(se.every(s));break;case"week":y.ticks(he[i].every(s));break;case"month":y.ticks(re.every(s));break}}}if(z.append("g").attr("class","grid").attr("transform","translate("+u+", "+(k-50)+")").call(y).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||a.topAxis){let s=mi(I).tickSize(-k+x+a.gridLineStartPadding).tickFormat(ne(l));if(w!==null){const V=parseInt(w[1],10);if(isNaN(V)||V<=0)ot.warn(`Invalid tick interval value: "${w[1]}". Skipping custom tick interval.`);else{const i=w[2],_=n.db.getWeekday()||a.weekday,P=I.domain(),N=P[0],O=P[1];if(R(N,O,V,i)<=Pt)switch(i){case"millisecond":s.ticks(le.every(V));break;case"second":s.ticks(ce.every(V));break;case"minute":s.ticks(oe.every(V));break;case"hour":s.ticks(ae.every(V));break;case"day":s.ticks(se.every(V));break;case"week":s.ticks(he[_].every(V));break;case"month":s.ticks(re.every(V));break}}}z.append("g").attr("class","grid").attr("transform","translate("+u+", "+x+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}c(H,"makeGrid");function Y(u,x){let v=0;const k=Object.keys(C).map(m=>[m,C[m]]);z.append("g").selectAll("text").data(k).enter().append(function(m){const o=m[0].split(Ge.lineBreakRegex),l=-(o.length-1)/2,y=M.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("dy",l+"em");for(const[g,w]of o.entries()){const s=M.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),g>0&&s.setAttribute("dy","1em"),s.textContent=w,y.appendChild(s)}return y}).attr("x",10).attr("y",function(m,o){if(o>0)for(let l=0;l<o;l++)return v+=k[o-1][1],m[1]*u/2+v*u+x;else return m[1]*u/2+x}).attr("font-size",a.sectionFontSize).attr("class",function(m){for(const[o,l]of F.entries())if(m[0]===l)return"sectionTitle sectionTitle"+o%a.numberSectionStyles;return"sectionTitle"})}c(Y,"vertLabels");function p(u,x,v,k){const m=n.db.getTodayMarker();if(m==="off")return;const o=z.append("g").attr("class","today"),l=new Date,y=o.append("line");y.attr("x1",I(l)+u).attr("x2",I(l)+u).attr("y1",a.titleTopMargin).attr("y2",k-a.titleTopMargin).attr("class","today"),m!==""&&y.attr("style",m.replace(/,/g,";"))}c(p,"drawToday");function h(u){const x={},v=[];for(let k=0,m=u.length;k<m;++k)Object.prototype.hasOwnProperty.call(x,u[k])||(x[u[k]]=!0,v.push(u[k]));return v}c(h,"checkUnique")},"draw"),vn={setConf:yn,draw:pn},xn=c(t=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${t.fontFamily};
|
|
9
9
|
}
|
|
@@ -289,4 +289,4 @@ Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":$t="Parse error
|
|
|
289
289
|
fill: ${t.titleColor||t.textColor};
|
|
290
290
|
font-family: ${t.fontFamily};
|
|
291
291
|
}
|
|
292
|
-
`,"getStyles"),Tn=xn,In={parser:
|
|
292
|
+
`,"getStyles"),Tn=xn,In={parser:Yi,db:kn,renderer:vn,styles:Tn};export{In as diagram};
|