@marimo-team/frontend 0.14.11-dev8 → 0.14.11
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/{ConnectedDataExplorerComponent-BZCmp5aR.js → ConnectedDataExplorerComponent-B9BmPz9a.js} +3 -3
- package/dist/assets/{ImageComparisonComponent-COH6lRBM.js → ImageComparisonComponent-CNTqLdnf.js} +1 -1
- package/dist/assets/{VegaLite-BRccRtf1.js → VegaLite-DLKRDJvl.js} +8 -8
- package/dist/assets/_baseEach-BjDLzUwG.js +1 -0
- package/dist/assets/_baseMap-CuZ-LBtv.js +1 -0
- package/dist/assets/_baseUniq-DqHaT24V.js +1 -0
- package/dist/assets/{_createAggregator-8M5K7ZTQ.js → _createAggregator-C_WhAECr.js} +1 -1
- package/dist/assets/{any-language-editor-Dx_DmQpj.js → any-language-editor-DrZjy7mH.js} +1 -1
- package/dist/assets/arc-ZB5pDULS.js +1 -0
- package/dist/assets/architectureDiagram-NQ2NVSRB-DqJfNlvg.js +36 -0
- package/dist/assets/blockDiagram-PHRCVELO-BMyZ52bP.js +122 -0
- package/dist/assets/{c4Diagram-VJAJSXHY-yQmPFHka.js → c4Diagram-6F6E4RAY-DveKwcb7.js} +2 -2
- package/dist/assets/channel-LYGgdr1R.js +1 -0
- package/dist/assets/{chunk-4BMEZGHF-PHya-g-m.js → chunk-353BL4L5-DBdJb07A.js} +1 -1
- package/dist/assets/{chunk-D6G4REZN-Cp5gAhaU.js → chunk-67H74DCK-DG8iWVJ-.js} +1 -1
- package/dist/assets/chunk-6OLS64BW-Dmt4rYEQ.js +220 -0
- package/dist/assets/{chunk-XZIHB7SX-CJx8F-BK.js → chunk-AACKK3MU-CDOdA9eC.js} +1 -1
- package/dist/assets/chunk-BFAMUDN2-Cf6198RO.js +1 -0
- package/dist/assets/chunk-E2GYISFI-fSvIEcyU.js +15 -0
- package/dist/assets/{chunk-A2AXSNBT-tIg30O59.js → chunk-QEP2MXWD-D6FP1cQC.js} +4 -3
- package/dist/assets/chunk-SKB7J2MH-B7Z1FsaJ.js +1 -0
- package/dist/assets/{circle-play-Bj5lce2y.js → circle-play-CBftacWk.js} +2 -2
- package/dist/assets/classDiagram-BGRH5UQR-BQbZmSV-.js +1 -0
- package/dist/assets/classDiagram-v2-O24JOBDK-BQbZmSV-.js +1 -0
- package/dist/assets/clone-DD3sG0_1.js +1 -0
- package/dist/assets/compile-mbjlQ5nn.js +10 -0
- package/dist/assets/dagre-FFZHY6LT-DX9cGWLP.js +4 -0
- package/dist/assets/data-grid-overlay-editor-C4fyHnn1.js +1 -0
- package/dist/assets/diagram-3EMPZRKU-BwXQu6c-.js +24 -0
- package/dist/assets/diagram-5UYTHUR4-BgOShMim.js +24 -0
- package/dist/assets/diagram-ZTM2IBQH-m55tqkSF.js +43 -0
- package/dist/assets/edit-page-BMW2Fhcz.js +148 -0
- package/dist/assets/{erDiagram-Q7BY3M3F-Bdu1RFft.js → erDiagram-R3QVA2FD-B8SQvwhp.js} +1 -1
- package/dist/assets/flowDiagram-PKI6S5ZS-BTbZVZp0.js +162 -0
- package/dist/assets/ganttDiagram-EK5VF46D-Dkuqvb7b.js +267 -0
- package/dist/assets/gitGraphDiagram-GW3U2K7C-BMQ8L_am.js +65 -0
- package/dist/assets/glide-data-editor-BKZWFNVv.js +132 -0
- package/dist/assets/glide-data-editor-DcmjcDkq.css +1 -0
- package/dist/assets/{graph-CobhnVVx.js → graph-CFDemIXQ.js} +1 -1
- package/dist/assets/home-page-DUbYTF9g.js +9 -0
- package/dist/assets/index-1az6nvpO.js +1 -0
- package/dist/assets/{index-DPNo-jY5.js → index-B0-K_sX8.js} +1 -1
- package/dist/assets/{index-DVJeqlnb.js → index-B9WlbtVk.js} +1 -1
- package/dist/assets/index-BEQfoZiP.js +1 -0
- package/dist/assets/{index-8quJWwGd.js → index-BWEPJWCF.js} +1 -1
- package/dist/assets/index-CE3mbf8H.js +1 -0
- package/dist/assets/{index-DisN4g0K.js → index-CH2sakSJ.js} +1 -1
- package/dist/assets/{index-4adJyO1X.js → index-CRY746sV.js} +1 -1
- package/dist/assets/index-C_e9XjpS.js +1 -0
- package/dist/assets/{index-RyqulB0I.js → index-CaHkXpUp.js} +1 -1
- package/dist/assets/index-CfvA7bvb.js +1 -0
- package/dist/assets/{index-CoGECqH1.js → index-ChVO1Vdj.js} +1 -1
- package/dist/assets/index-CsdFJkJw.css +1 -0
- package/dist/assets/{index-BtQD1xRv.js → index-CylrdBnG.js} +1 -1
- package/dist/assets/index-D3Er-byj.js +1 -0
- package/dist/assets/{index-kFBaVNpO.js → index-D_Dmmo5g.js} +1 -1
- package/dist/assets/{index-Dfhr_H2_.js → index-Drq4Lpl3.js} +1 -1
- package/dist/assets/{index-Bfo4GfNg.js → index-MUMVp22V.js} +1 -1
- package/dist/assets/{index-CaI_HNZm.js → index-NLK5-sPO.js} +1 -1
- package/dist/assets/index-_lj65MZR.js +507 -0
- package/dist/assets/{index-BphBwy1v.js → index-d0CXXxee.js} +2 -2
- package/dist/assets/infoDiagram-RLU2ROGC-DAW5X38W.js +2 -0
- package/dist/assets/journeyDiagram-EWQZEKCU--6lJjuiM.js +139 -0
- package/dist/assets/{kanban-definition-NDS4AKOZ-Q5EE_ssH.js → kanban-definition-ILFWEQ3N-CXNPWHB8.js} +9 -8
- package/dist/assets/{layout-CDn8-Krb.js → layout-Jgv95YSr.js} +1 -1
- package/dist/assets/linear-DtgEMbrz.js +1 -0
- package/dist/assets/links-Bjf-1I2i.js +17 -0
- package/dist/assets/loro_wasm_bg-bPYKkGLG.wasm +0 -0
- package/dist/assets/mermaid-DCMac0Ai.js +152 -0
- package/dist/assets/min-VDyC-auF.js +1 -0
- package/dist/assets/{mindmap-definition-ALO5MXBD-BIL8Yk33.js → mindmap-definition-CZNETY7S-BEd6cR16.js} +4 -4
- package/dist/assets/number-overlay-editor-C3hemckO.js +9 -0
- package/dist/assets/{pieDiagram-IB7DONF6-CXSjueVW.js → pieDiagram-NIOCPIFQ-B-zGF99A.js} +1 -1
- package/dist/assets/{quadrantDiagram-7GDLP6J5-BpFvASma.js → quadrantDiagram-2OG54O6I-2tF9b_2b.js} +1 -1
- package/dist/assets/{react-plotly-0nDvD8D3.js → react-plotly-CdJaKwaj.js} +1 -1
- package/dist/assets/{requirementDiagram-KVF5MWMF-unRzxNJE.js → requirementDiagram-SO3GGRV7-DEa34SeY.js} +3 -3
- package/dist/assets/run-page-Bg1x8WTa.js +1 -0
- package/dist/assets/{sankeyDiagram-QLVOVGJD-Cn-XfYiE.js → sankeyDiagram-4UZDY2LN-DUIUN-K8.js} +4 -4
- package/dist/assets/save-worker-B8gk1S9x.js +1 -0
- package/dist/assets/sequenceDiagram-ZIKVLSP4-BZGddaB9.js +122 -0
- package/dist/assets/slides-component-C2uc6kmf.js +1 -0
- package/dist/assets/sortBy-Bob7dKSt.js +1 -0
- package/dist/assets/stateDiagram-XX37X6EN-DUi_goR8.js +1 -0
- package/dist/assets/stateDiagram-v2-GD6S3NHB-CdRNmgeb.js +1 -0
- package/dist/assets/storage-CTvz5ejZ.js +25 -0
- package/dist/assets/{terminal-BgXO_ixx.js → terminal-BkOhnp-S.js} +1 -1
- package/dist/assets/{time-CRNs3SAd.js → time-BXb9z1yv.js} +1 -1
- package/dist/assets/timeline-definition-RI47OAVP-CTWn3WQu.js +61 -0
- package/dist/assets/tracing-Z4QREdu3.js +2 -0
- package/dist/assets/trash-BWRVB_br.js +6 -0
- package/dist/assets/treemap-FKARHQ26-AlpUch0p.js +126 -0
- package/dist/assets/vega-component-CX_u3Hhp.js +1 -0
- package/dist/assets/worker-BYA2ASe8.js +1 -0
- package/dist/assets/worker-Ch6cKXnI.js +1 -0
- package/dist/assets/xychartDiagram-H2YORKM3-D0JoLNE8.js +7 -0
- package/dist/index.html +4 -2
- package/package.json +45 -44
- package/dist/assets/_baseEach-lpPh9W5d.js +0 -1
- package/dist/assets/_baseMap-SEd-6IK0.js +0 -1
- package/dist/assets/_baseUniq-DuEzVkFZ.js +0 -1
- package/dist/assets/arc-CfyY4LWz.js +0 -1
- package/dist/assets/architectureDiagram-IEHRJDOE-Cjnv8Vq_.js +0 -36
- package/dist/assets/blockDiagram-JOT3LUYC-BEIjTgHI.js +0 -121
- package/dist/assets/channel-BRxA1AAC.js +0 -1
- package/dist/assets/chunk-AEK57VVT-BfGK6Ank.js +0 -220
- package/dist/assets/chunk-RZ5BOZE2-DhqVBY2t.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-BO83RfZB.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-BO83RfZB.js +0 -1
- package/dist/assets/clone-BlzJWayF.js +0 -1
- package/dist/assets/compile-C3U-vg-j.js +0 -10
- package/dist/assets/dagre-OKDRZEBW-NdY44hpH.js +0 -4
- package/dist/assets/data-editor-DKntw_rI.js +0 -142
- package/dist/assets/diagram-SSKATNLV-DF4qzt72.js +0 -43
- package/dist/assets/diagram-VNBRO52H-Dbdog9oU.js +0 -24
- package/dist/assets/edit-page-BrfZeOgm.js +0 -144
- package/dist/assets/flowDiagram-4HSFHLVR-i5Ql-QiJ.js +0 -161
- package/dist/assets/ganttDiagram-APWFNJXF-Dmuf1Tpo.js +0 -257
- package/dist/assets/gitGraphDiagram-7IBYFJ6S-DPM6GuRf.js +0 -65
- package/dist/assets/home-page-HL6VA5dw.js +0 -9
- package/dist/assets/index-8IZtaDUn.css +0 -1
- package/dist/assets/index-BJcBz6ZX.js +0 -1
- package/dist/assets/index-C-WOu_u0.js +0 -1
- package/dist/assets/index-CJaEBn8N.js +0 -501
- package/dist/assets/index-DBaMrMdr.js +0 -1
- package/dist/assets/index-DvEXKxQ8.js +0 -1
- package/dist/assets/index-O2ELw6Hz.js +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-LArKQ0VO.js +0 -2
- package/dist/assets/journeyDiagram-U35MCT3I-B3lHGKMN.js +0 -138
- package/dist/assets/linear-D6T4b48H.js +0 -1
- package/dist/assets/loro_wasm_bg-DHBNbovs.wasm +0 -0
- package/dist/assets/mermaid-CMc1ns6_.js +0 -152
- package/dist/assets/min-rO9M7_m2.js +0 -1
- package/dist/assets/radar-MK3ICKWK-_zCJRWdg.js +0 -126
- package/dist/assets/run-page-DtL_9ryc.js +0 -1
- package/dist/assets/save-worker-DZnx0AG9.js +0 -1
- package/dist/assets/sequenceDiagram-X6HHIX6F-CeDzabVO.js +0 -122
- package/dist/assets/shutdown-button-CiYHSs8n.js +0 -17
- package/dist/assets/slides-component-DloQyWa5.js +0 -1
- package/dist/assets/sortBy-HenacHs2.js +0 -1
- package/dist/assets/stateDiagram-DGXRK772-PGZIv6yW.js +0 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-tCMN3u5q.js +0 -1
- package/dist/assets/storage-h-OfQolp.js +0 -27
- package/dist/assets/timeline-definition-BDJGKUSR-fax3GFbF.js +0 -61
- package/dist/assets/tracing-DJ3yaJpl.js +0 -2
- package/dist/assets/vega-component-Di8oSnQq.js +0 -1
- package/dist/assets/worker-BbdB3qWL.js +0 -1
- package/dist/assets/worker-CnoOKJWk.js +0 -1
- package/dist/assets/xychartDiagram-VJFVF3MP-CK-bnFkL.js +0 -7
- /package/dist/assets/{shutdown-button-C1rhMrxo.css → links-C1rhMrxo.css} +0 -0
- /package/dist/assets/{transform-DetRMEbJ.js → transform-CDNfLgV5.js} +0 -0
@@ -1,161 +0,0 @@
|
|
1
|
-
var P1;import{_ as f,n as Pt,l as J,c as R1,o as Wt,r as jt,u as Z1,b as zt,s as Kt,p as Yt,a as Ht,g as qt,q as Xt,j as Qt,t as Jt,J as Zt,v as te,x as tt,y as ee,z as se,A as ie}from"./mermaid-CMc1ns6_.js";import{g as ne,s as ae}from"./chunk-RZ5BOZE2-DhqVBY2t.js";import{s as k1}from"./transform-DetRMEbJ.js";import{c as ue}from"./channel-BRxA1AAC.js";import"./index-CJaEBn8N.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var re=(P1=class{constructor(){this.vertexCounter=0,this.config=R1(),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=zt,this.setAccDescription=Kt,this.setDiagramTitle=Yt,this.getAccTitle=Ht,this.getAccDescription=qt,this.getDiagramTitle=Xt,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 Qt.sanitizeText(i,this.config)}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,r,u,p,d={},c){var j,y;if(!i||i.trim().length===0)return;let o;if(c!==void 0){let g;g=c.includes(`
|
2
|
-
`)?c+`
|
3
|
-
`:`{
|
4
|
-
`+c+`
|
5
|
-
}`,o=Jt(g,{schema:Zt})}const D=this.edges.find(g=>g.id===i);if(D){const g=o;return(g==null?void 0:g.animate)!==void 0&&(D.animate=g.animate),void((g==null?void 0:g.animation)!==void 0&&(D.animation=g.animation))}let _,A=this.vertices.get(i);if(A===void 0&&(A={id:i,labelType:"text",domId:"flowchart-"+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,A)),this.vertexCounter++,a!==void 0?(this.config=R1(),_=this.sanitizeText(a.text.trim()),A.labelType=a.type,_.startsWith('"')&&_.endsWith('"')&&(_=_.substring(1,_.length-1)),A.text=_):A.text===void 0&&(A.text=i),n!==void 0&&(A.type=n),r!=null&&r.forEach(g=>{A.styles.push(g)}),u!=null&&u.forEach(g=>{A.classes.push(g)}),p!==void 0&&(A.dir=p),A.props===void 0?A.props=d:d!==void 0&&Object.assign(A.props,d),o!==void 0){if(o.shape){if(o.shape!==o.shape.toLowerCase()||o.shape.includes("_"))throw new Error(`No such shape: ${o.shape}. Shape names should be lowercase.`);if(!te(o.shape))throw new Error(`No such shape: ${o.shape}.`);A.type=o==null?void 0:o.shape}o!=null&&o.label&&(A.text=o==null?void 0:o.label),o!=null&&o.icon&&(A.icon=o==null?void 0:o.icon,(j=o.label)!=null&&j.trim()||A.text!==i||(A.text="")),o!=null&&o.form&&(A.form=o==null?void 0:o.form),o!=null&&o.pos&&(A.pos=o==null?void 0:o.pos),o!=null&&o.img&&(A.img=o==null?void 0:o.img,(y=o.label)!=null&&y.trim()||A.text!==i||(A.text="")),o!=null&&o.constraint&&(A.constraint=o.constraint),o.w&&(A.assetWidth=Number(o.w)),o.h&&(A.assetHeight=Number(o.h))}}addSingleLink(i,a,n,r){const u={start:i,end:a,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};J.info("abc78 Got edge...",u);const p=n.text;if(p!==void 0&&(u.text=this.sanitizeText(p.text.trim()),u.text.startsWith('"')&&u.text.endsWith('"')&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=p.type),n!==void 0&&(u.type=n.type,u.stroke=n.stroke,u.length=n.length>10?10:n.length),r&&!this.edges.some(d=>d.id===r))u.id=r,u.isUserDefinedId=!0;else{const d=this.edges.filter(c=>c.start===u.start&&c.end===u.end);d.length===0?u.id=tt(u.start,u.end,{counter:0,prefix:"L"}):u.id=tt(u.start,u.end,{counter:d.length+1,prefix:"L"})}if(!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
6
|
-
|
7
|
-
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
8
|
-
You cannot set this config via configuration inside the diagram as it is a secure config.
|
9
|
-
You have to call mermaid.initialize.`);J.info("Pushing edge..."),this.edges.push(u)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,a,n){const r=this.isLinkData(n)?n.id.replace("@",""):void 0;J.info("addLink",i,a,r);for(const u of i)for(const p of a){const d=u===i[i.length-1],c=p===a[0];d&&c?this.addSingleLink(u,p,n,r):this.addSingleLink(u,p,n,void 0)}}updateLinkInterpolate(i,a){i.forEach(n=>{n==="default"?this.edges.defaultInterpolate=a:this.edges[n].interpolate=a})}updateLink(i,a){i.forEach(n=>{var r,u,p,d,c,o;if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} 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.)`);n==="default"?this.edges.defaultStyle=a:(this.edges[n].style=a,(((u=(r=this.edges[n])==null?void 0:r.style)==null?void 0:u.length)??0)>0&&!((d=(p=this.edges[n])==null?void 0:p.style)!=null&&d.some(D=>D==null?void 0:D.startsWith("fill")))&&((o=(c=this.edges[n])==null?void 0:c.style)==null||o.push("fill:none")))})}addClass(i,a){const n=a.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(r=>{let u=this.classes.get(r);u===void 0&&(u={id:r,styles:[],textStyles:[]},this.classes.set(r,u)),n!=null&&n.forEach(p=>{if(/color/.exec(p)){const d=p.replace("fill","bgFill");u.textStyles.push(d)}u.styles.push(p)})})}setDirection(i){this.direction=i,/.*</.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,a){for(const n of i.split(",")){const r=this.vertices.get(n);r&&r.classes.push(a);const u=this.edges.find(d=>d.id===n);u&&u.classes.push(a);const p=this.subGraphLookup.get(n);p&&p.classes.push(a)}}setTooltip(i,a){if(a!==void 0){a=this.sanitizeText(a);for(const n of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,a)}}setClickFun(i,a,n){const r=this.lookUpDomId(i);if(R1().securityLevel!=="loose"||a===void 0)return;let u=[];if(typeof n=="string"){u=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d<u.length;d++){let c=u[d].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),u[d]=c}}u.length===0&&u.push(i);const p=this.vertices.get(i);p&&(p.haveCallback=!0,this.funs.push(()=>{const d=document.querySelector(`[id="${r}"]`);d!==null&&d.addEventListener("click",()=>{Z1.runFunc(a,...u)},!1)}))}setLink(i,a,n){i.split(",").forEach(r=>{const u=this.vertices.get(r);u!==void 0&&(u.link=Z1.formatUrl(a,this.config),u.linkTarget=n)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,a,n){i.split(",").forEach(r=>{this.setClickFun(r,a,n)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(a=>{a(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){let a=k1(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=k1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),k1(i).select("svg").selectAll("g.node").on("mouseover",n=>{var p;const r=k1(n.currentTarget);if(r.attr("title")===null)return;const u=(p=n.currentTarget)==null?void 0:p.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(r.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),a.html(a.html().replace(/<br\/>/g,"<br/>")),r.classed("hover",!0)}).on("mouseout",n=>{a.transition().duration(500).style("opacity",0),k1(n.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.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=R1(),ee()}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,a,n){let r=i.text.trim(),u=n.text;i===n&&/\s/.exec(n.text)&&(r=void 0);const p=f(D=>{const _={boolean:{},number:{},string:{}},A=[];let j;return{nodeList:D.filter(function(y){const g=typeof y;return y.stmt&&y.stmt==="dir"?(j=y.value,!1):y.trim()!==""&&(g in _?!_[g].hasOwnProperty(y)&&(_[g][y]=!0):!A.includes(y)&&A.push(y))}),dir:j}},"uniq"),{nodeList:d,dir:c}=p(a.flat());if(this.version==="gen-1")for(let D=0;D<d.length;D++)d[D]=this.lookUpDomId(d[D]);r=r??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;const o={id:r,nodes:d,title:u.trim(),classes:[],dir:c,labelType:n.type};return J.info("Adding",o.id,o.nodes,o.dir),o.nodes=this.makeUniq(o,this.subGraphs).nodes,this.subGraphs.push(o),this.subGraphLookup.set(r,o),r}getPosForId(i){for(const[a,n]of this.subGraphs.entries())if(n.id===i)return a;return-1}indexNodes2(i,a){const n=this.subGraphs[a].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=a,this.subGraphs[a].id===i)return{result:!0,count:0};let r=0,u=1;for(;r<n.length;){const p=this.getPosForId(n[r]);if(p>=0){const d=this.indexNodes2(i,p);if(d.result)return{result:!0,count:u+d.count};u+=d.count}r+=1}return{result:!1,count:u}}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)}destructStartLink(i){let a=i.trim(),n="arrow_open";switch(a[0]){case"<":n="arrow_point",a=a.slice(1);break;case"x":n="arrow_cross",a=a.slice(1);break;case"o":n="arrow_circle",a=a.slice(1)}let r="normal";return a.includes("=")&&(r="thick"),a.includes(".")&&(r="dotted"),{type:n,stroke:r}}countChar(i,a){const n=a.length;let r=0;for(let u=0;u<n;++u)a[u]===i&&++r;return r}destructEndLink(i){const a=i.trim();let n=a.slice(0,-1),r="arrow_open";switch(a.slice(-1)){case"x":r="arrow_cross",a.startsWith("x")&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point",a.startsWith("<")&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle",a.startsWith("o")&&(r="double_"+r,n=n.slice(1))}let u="normal",p=n.length-1;n.startsWith("=")&&(u="thick"),n.startsWith("~")&&(u="invisible");const d=this.countChar(".",n);return d&&(u="dotted",p=d),{type:r,stroke:u,length:p}}destructLink(i,a){const n=this.destructEndLink(i);let r;if(a){if(r=this.destructStartLink(a),r.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=n.length,r}return n}exists(i,a){for(const n of i)if(n.nodes.includes(a))return!0;return!1}makeUniq(i,a){const n=[];return i.nodes.forEach((r,u)=>{this.exists(a,r)||n.push(i.nodes[u])}),{nodes:n}}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,a){return i.find(n=>n.id===a)}destructEdgeType(i){let a="none",n="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":n=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":a=i.replace("double_",""),n=a}return{arrowTypeStart:a,arrowTypeEnd:n}}addNodeFromVertex(i,a,n,r,u,p){var D;const d=n.get(i.id),c=r.get(i.id)??!1,o=this.findNode(a,i.id);if(o)o.cssStyles=i.styles,o.cssCompiledStyles=this.getCompiledStyles(i.classes),o.cssClasses=i.classes.join(" ");else{const _={id:i.id,label:i.text,labelStyle:"",parentId:d,padding:((D=u.flowchart)==null?void 0:D.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};c?a.push({..._,isGroup:!0,shape:"rect"}):a.push({..._,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let a=[];for(const n of i){const r=this.classes.get(n);r!=null&&r.styles&&(a=[...a,...r.styles??[]].map(u=>u.trim())),r!=null&&r.textStyles&&(a=[...a,...r.textStyles??[]].map(u=>u.trim()))}return a}getData(){const i=R1(),a=[],n=[],r=this.getSubGraphs(),u=new Map,p=new Map;for(let c=r.length-1;c>=0;c--){const o=r[c];o.nodes.length>0&&p.set(o.id,!0);for(const D of o.nodes)u.set(D,o.id)}for(let c=r.length-1;c>=0;c--){const o=r[c];a.push({id:o.id,label:o.title,labelStyle:"",parentId:u.get(o.id),padding:8,cssCompiledStyles:this.getCompiledStyles(o.classes),cssClasses:o.classes.join(" "),shape:"rect",dir:o.dir,isGroup:!0,look:i.look})}this.getVertices().forEach(c=>{this.addNodeFromVertex(c,a,u,p,i,i.look||"classic")});const d=this.getEdges();return d.forEach((c,o)=>{var y;const{arrowTypeStart:D,arrowTypeEnd:_}=this.destructEdgeType(c.type),A=[...d.defaultStyle??[]];c.style&&A.push(...c.style);const j={id:tt(c.start,c.end,{counter:o,prefix:"L"},c.id),isUserDefinedId:c.isUserDefinedId,start:c.start,end:c.end,type:c.type??"normal",label:c.text,labelpos:"c",thickness:c.stroke,minlen:c.length,classes:(c==null?void 0:c.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(c==null?void 0:c.stroke)==="invisible"||(c==null?void 0:c.type)==="arrow_open"?"none":D,arrowTypeEnd:(c==null?void 0:c.stroke)==="invisible"||(c==null?void 0:c.type)==="arrow_open"?"none":_,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(c.classes),labelStyle:A,style:A,pattern:c.stroke,look:i.look,animate:c.animate,animation:c.animation,curve:c.interpolate||this.edges.defaultInterpolate||((y=i.flowchart)==null?void 0:y.curve)};n.push(j)}),{nodes:a,edges:n,other:{},config:i}}defaultConfig(){return se.flowchart}},f(P1,"FlowDB"),P1),oe={getClasses:f(function(e,i){return i.db.getClasses()},"getClasses"),draw:f(async function(e,i,a,n){var j;J.info("REF0:"),J.info("Drawing state diagram (v2)",i);const{securityLevel:r,flowchart:u,layout:p}=R1();let d;r==="sandbox"&&(d=k1("#i"+i));const c=r==="sandbox"?d.nodes()[0].contentDocument:document;J.debug("Before getData: ");const o=n.db.getData();J.debug("Data: ",o);const D=ne(i,r),_=n.db.getDirection();o.type=n.type,o.layoutAlgorithm=Wt(p),o.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."),o.direction=_,o.nodeSpacing=(u==null?void 0:u.nodeSpacing)||50,o.rankSpacing=(u==null?void 0:u.rankSpacing)||50,o.markers=["point","circle","cross"],o.diagramId=i,J.debug("REF1:",o),await jt(o,D);const A=((j=o.config.flowchart)==null?void 0:j.diagramPadding)??8;Z1.insertTitle(D,"flowchartTitleText",(u==null?void 0:u.titleTopMargin)||0,n.db.getDiagramTitle()),ae(D,A,"flowchart",(u==null?void 0:u.useMaxWidth)||!1);for(const y of o.nodes){const g=k1(`#${i} [id="${y.id}"]`);if(!g||!y.link)continue;const X=c.createElementNS("http://www.w3.org/2000/svg","a");X.setAttributeNS("http://www.w3.org/2000/svg","class",y.cssClasses),X.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),r==="sandbox"?X.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):y.linkTarget&&X.setAttributeNS("http://www.w3.org/2000/svg","target",y.linkTarget);const p1=g.insert(function(){return X},":first-child"),g1=g.select(".label-container");g1&&p1.append(function(){return g1.node()});const A1=g.select(".label");A1&&p1.append(function(){return A1.node()})}},"draw")},et=function(){var e=f(function(h,x,b,l){for(b=b||{},l=h.length;l--;b[h[l]]=x);return b},"o"),i=[1,4],a=[1,3],n=[1,5],r=[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],u=[2,2],p=[1,13],d=[1,14],c=[1,15],o=[1,16],D=[1,23],_=[1,25],A=[1,26],j=[1,27],y=[1,49],g=[1,48],X=[1,29],p1=[1,30],g1=[1,31],A1=[1,32],O1=[1,33],w=[1,44],L=[1,46],$=[1,42],I=[1,47],N=[1,43],R=[1,50],P=[1,45],G=[1,51],O=[1,52],M1=[1,34],U1=[1,35],V1=[1,36],W1=[1,37],h1=[1,57],T=[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],Z=[1,61],t1=[1,60],e1=[1,62],E1=[8,9,11,75,77,78],st=[1,78],m1=[1,91],C1=[1,96],x1=[1,95],D1=[1,92],T1=[1,88],S1=[1,94],F1=[1,90],_1=[1,97],B1=[1,93],v1=[1,98],w1=[1,89],b1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],z=[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],it=[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],nt=[1,121],at=[1,122],j1=[1,124],z1=[1,123],ut=[44,60,62,74,89,102,105,106,109,111,114,115,116],rt=[1,133],ot=[1,147],lt=[1,148],ct=[1,149],ht=[1,150],dt=[1,135],pt=[1,137],gt=[1,141],At=[1,142],bt=[1,143],yt=[1,144],ft=[1,145],kt=[1,146],Et=[1,151],mt=[1,152],Ct=[1,131],xt=[1,132],Dt=[1,139],Tt=[1,134],St=[1,138],Ft=[1,136],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],_t=[1,154],Bt=[1,156],B=[8,9,11],K=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],k=[1,176],V=[1,172],W=[1,173],E=[1,177],m=[1,174],C=[1,175],$1=[77,116,119],S=[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],vt=[10,106],d1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,247],i1=[1,245],n1=[1,249],a1=[1,243],u1=[1,244],r1=[1,246],o1=[1,248],l1=[1,250],I1=[1,268],wt=[8,9,11,106],Q=[8,9,10,11,60,84,105,106,109,110,111,112],X1={trace:f(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,$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"},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]],performAction:f(function(h,x,b,l,F,t,G1){var s=t.length-1;switch(F){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=t[s];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 33:this.$=l.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=l.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=l.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),l.setAccDescription(this.$);break;case 43:case 133:this.$=t[s-1]+t[s];break;case 45:l.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),l.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:l.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:l.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:l.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:case 128:case 130:this.$=[t[s]];break;case 52:l.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 55:this.$=t[s-2],l.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],l.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],l.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],l.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],l.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],l.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 77:var v=l.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1]};break;case 78:v=l.destructLink(t[s],t[s-2]),this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1],id:t[s-3]};break;case 79:case 86:case 101:case 103:this.$={text:t[s],type:"text"};break;case 80:case 87:case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:case 88:this.$={text:t[s],type:"string"};break;case 82:case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 83:v=l.destructLink(t[s]),this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:v=l.destructLink(t[s]),this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 105:this.$=t[s-4],l.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],l.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],l.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],l.setClickEvent(t[s-3],t[s-2]),l.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],l.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],l.setClickEvent(t[s-4],t[s-3],t[s-2]),l.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],l.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],l.setLink(t[s-4],t[s-2]),l.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],l.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],l.setLink(t[s-6],t[s-4],t[s]),l.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],l.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],l.setLink(t[s-3],t[s-2]),l.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],l.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],l.setLink(t[s-5],t[s-4],t[s]),l.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],l.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],l.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],l.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],l.updateLinkInterpolate([t[s-6]],t[s-2]),l.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],l.updateLinkInterpolate(t[s-6],t[s-2]),l.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],l.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],l.updateLinkInterpolate(t[s-4],t[s]);break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 182:case 184:this.$=t[s-1]+""+t[s];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"}}},"anonymous"),table:[{3:1,4:2,9:i,10:a,12:n},{1:[3]},e(r,u,{5:6}),{4:7,9:i,10:a,12:n},{4:8,9:i,10:a,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:d,10:c,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:D,33:24,34:_,36:A,38:j,42:28,43:38,44:y,45:39,47:40,60:g,84:X,85:p1,86:g1,87:A1,88:O1,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),{8:[1,54],9:[1,55],10:h1,15:53,18:56},e(T,[2,3]),e(T,[2,4]),e(T,[2,5]),e(T,[2,6]),e(T,[2,7]),e(T,[2,8]),{8:Z,9:t1,11:e1,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:Z,9:t1,11:e1,21:67},{8:Z,9:t1,11:e1,21:68},{8:Z,9:t1,11:e1,21:69},{8:Z,9:t1,11:e1,21:70},{8:Z,9:t1,11:e1,21:71},{8:Z,9:t1,10:[1,72],11:e1,21:73},e(T,[2,36]),{35:[1,74]},{37:[1,75]},e(T,[2,39]),e(E1,[2,50],{18:76,39:77,10:h1,40:st}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:m1,44:C1,60:x1,80:[1,86],89:D1,95:[1,83],97:[1,84],101:85,105:T1,106:S1,109:F1,111:_1,114:B1,115:v1,116:w1,120:87},e(T,[2,185]),e(T,[2,186]),e(T,[2,187]),e(T,[2,188]),e(b1,[2,51]),e(b1,[2,54],{46:[1,99]}),e(U,[2,72],{113:112,29:[1,100],44:y,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:g,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:w,102:L,105:$,106:I,109:N,111:R,114:P,115:G,116:O}),e(z,[2,181]),e(z,[2,142]),e(z,[2,143]),e(z,[2,144]),e(z,[2,145]),e(z,[2,146]),e(z,[2,147]),e(z,[2,148]),e(z,[2,149]),e(z,[2,150]),e(z,[2,151]),e(z,[2,152]),e(r,[2,12]),e(r,[2,18]),e(r,[2,19]),{9:[1,113]},e(it,[2,26],{18:114,10:h1}),e(T,[2,27]),{42:115,43:38,44:y,45:39,47:40,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(L1,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:nt,81:at,116:j1,119:z1},{75:[1,125],77:[1,126]},e(ut,[2,83]),e(T,[2,28]),e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),{10:rt,12:ot,14:lt,27:ct,28:127,32:ht,44:dt,60:pt,75:gt,80:[1,129],81:[1,130],83:140,84:At,85:bt,86:yt,87:ft,88:kt,89:Et,90:mt,91:128,105:Ct,109:xt,111:Dt,114:Tt,115:St,116:Ft},e(q1,u,{5:153}),e(T,[2,37]),e(T,[2,38]),e(E1,[2,48],{44:_t}),e(E1,[2,49],{18:155,10:h1,40:Bt}),e(b1,[2,44]),{44:y,47:157,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{102:[1,158],103:159,105:[1,160]},{44:y,47:161,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{44:y,47:162,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},e(B,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e(B,[2,115],{120:167,10:[1,166],14:m1,44:C1,60:x1,89:D1,105:T1,106:S1,109:F1,111:_1,114:B1,115:v1,116:w1}),e(B,[2,117],{10:[1,168]}),e(K,[2,183]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),e(K,[2,174]),e(K,[2,175]),e(K,[2,176]),e(K,[2,177]),e(K,[2,178]),e(K,[2,179]),e(K,[2,180]),{44:y,47:169,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{30:170,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:178,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:180,50:[1,179],67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:181,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:182,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:183,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{109:[1,184]},{30:185,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:186,65:[1,187],67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:188,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:189,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{30:190,67:k,80:V,81:W,82:171,116:E,117:m,118:C},e(z,[2,182]),e(r,[2,20]),e(it,[2,25]),e(E1,[2,46],{39:191,18:192,10:h1,40:st}),e(L1,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{77:[1,196],79:197,116:j1,119:z1},e($1,[2,79]),e($1,[2,81]),e($1,[2,82]),e($1,[2,168]),e($1,[2,169]),{76:198,79:120,80:nt,81:at,116:j1,119:z1},e(ut,[2,84]),{8:Z,9:t1,10:rt,11:e1,12:ot,14:lt,21:200,27:ct,29:[1,199],32:ht,44:dt,60:pt,75:gt,83:140,84:At,85:bt,86:yt,87:ft,88:kt,89:Et,90:mt,91:201,105:Ct,109:xt,111:Dt,114:Tt,115:St,116:Ft},e(S,[2,101]),e(S,[2,103]),e(S,[2,104]),e(S,[2,157]),e(S,[2,158]),e(S,[2,159]),e(S,[2,160]),e(S,[2,161]),e(S,[2,162]),e(S,[2,163]),e(S,[2,164]),e(S,[2,165]),e(S,[2,166]),e(S,[2,167]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(S,[2,99]),e(S,[2,100]),{6:11,7:12,8:p,9:d,10:c,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:D,32:[1,202],33:24,34:_,36:A,38:j,42:28,43:38,44:y,45:39,47:40,60:g,84:X,85:p1,86:g1,87:A1,88:O1,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},{10:h1,18:203},{44:[1,204]},e(b1,[2,43]),{10:[1,205],44:y,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:112,114:P,115:G,116:O},{10:[1,206]},{10:[1,207],106:[1,208]},e(vt,[2,128]),{10:[1,209],44:y,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:112,114:P,115:G,116:O},{10:[1,210],44:y,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:112,114:P,115:G,116:O},{80:[1,211]},e(B,[2,109],{10:[1,212]}),e(B,[2,111],{10:[1,213]}),{80:[1,214]},e(K,[2,184]),{80:[1,215],98:[1,216]},e(b1,[2,55],{113:112,44:y,60:g,89:w,102:L,105:$,106:I,109:N,111:R,114:P,115:G,116:O}),{31:[1,217],67:k,82:218,116:E,117:m,118:C},e(d1,[2,86]),e(d1,[2,88]),e(d1,[2,89]),e(d1,[2,153]),e(d1,[2,154]),e(d1,[2,155]),e(d1,[2,156]),{49:[1,219],67:k,82:218,116:E,117:m,118:C},{30:220,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{51:[1,221],67:k,82:218,116:E,117:m,118:C},{53:[1,222],67:k,82:218,116:E,117:m,118:C},{55:[1,223],67:k,82:218,116:E,117:m,118:C},{57:[1,224],67:k,82:218,116:E,117:m,118:C},{60:[1,225]},{64:[1,226],67:k,82:218,116:E,117:m,118:C},{66:[1,227],67:k,82:218,116:E,117:m,118:C},{30:228,67:k,80:V,81:W,82:171,116:E,117:m,118:C},{31:[1,229],67:k,82:218,116:E,117:m,118:C},{67:k,69:[1,230],71:[1,231],82:218,116:E,117:m,118:C},{67:k,69:[1,233],71:[1,232],82:218,116:E,117:m,118:C},e(E1,[2,45],{18:155,10:h1,40:Bt}),e(E1,[2,47],{44:_t}),e(L1,[2,75]),e(L1,[2,74]),{62:[1,234],67:k,82:218,116:E,117:m,118:C},e(L1,[2,77]),e($1,[2,80]),{77:[1,235],79:197,116:j1,119:z1},{30:236,67:k,80:V,81:W,82:171,116:E,117:m,118:C},e(q1,u,{5:237}),e(S,[2,102]),e(T,[2,35]),{43:238,44:y,45:39,47:40,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{10:h1,18:239},{10:s1,60:i1,84:n1,92:240,105:a1,107:241,108:242,109:u1,110:r1,111:o1,112:l1},{10:s1,60:i1,84:n1,92:251,104:[1,252],105:a1,107:241,108:242,109:u1,110:r1,111:o1,112:l1},{10:s1,60:i1,84:n1,92:253,104:[1,254],105:a1,107:241,108:242,109:u1,110:r1,111:o1,112:l1},{105:[1,255]},{10:s1,60:i1,84:n1,92:256,105:a1,107:241,108:242,109:u1,110:r1,111:o1,112:l1},{44:y,47:257,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},e(B,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e(B,[2,116]),e(B,[2,118],{10:[1,261]}),e(B,[2,119]),e(U,[2,56]),e(d1,[2,87]),e(U,[2,57]),{51:[1,262],67:k,82:218,116:E,117:m,118:C},e(U,[2,64]),e(U,[2,59]),e(U,[2,60]),e(U,[2,61]),{109:[1,263]},e(U,[2,63]),e(U,[2,65]),{66:[1,264],67:k,82:218,116:E,117:m,118:C},e(U,[2,67]),e(U,[2,68]),e(U,[2,70]),e(U,[2,69]),e(U,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(L1,[2,78]),{31:[1,265],67:k,82:218,116:E,117:m,118:C},{6:11,7:12,8:p,9:d,10:c,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:D,32:[1,266],33:24,34:_,36:A,38:j,42:28,43:38,44:y,45:39,47:40,60:g,84:X,85:p1,86:g1,87:A1,88:O1,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},e(b1,[2,53]),{43:267,44:y,45:39,47:40,60:g,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O},e(B,[2,121],{106:I1}),e(wt,[2,130],{108:269,10:s1,60:i1,84:n1,105:a1,109:u1,110:r1,111:o1,112:l1}),e(Q,[2,132]),e(Q,[2,134]),e(Q,[2,135]),e(Q,[2,136]),e(Q,[2,137]),e(Q,[2,138]),e(Q,[2,139]),e(Q,[2,140]),e(Q,[2,141]),e(B,[2,122],{106:I1}),{10:[1,270]},e(B,[2,123],{106:I1}),{10:[1,271]},e(vt,[2,129]),e(B,[2,105],{106:I1}),e(B,[2,106],{113:112,44:y,60:g,89:w,102:L,105:$,106:I,109:N,111:R,114:P,115:G,116:O}),e(B,[2,110]),e(B,[2,112],{10:[1,272]}),e(B,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:Z,9:t1,11:e1,21:277},e(T,[2,34]),e(b1,[2,52]),{10:s1,60:i1,84:n1,105:a1,107:278,108:242,109:u1,110:r1,111:o1,112:l1},e(Q,[2,133]),{14:m1,44:C1,60:x1,89:D1,101:279,105:T1,106:S1,109:F1,111:_1,114:B1,115:v1,116:w1,120:87},{14:m1,44:C1,60:x1,89:D1,101:280,105:T1,106:S1,109:F1,111:_1,114:B1,115:v1,116:w1,120:87},{98:[1,281]},e(B,[2,120]),e(U,[2,58]),{30:282,67:k,80:V,81:W,82:171,116:E,117:m,118:C},e(U,[2,66]),e(q1,u,{5:283}),e(wt,[2,131],{108:269,10:s1,60:i1,84:n1,105:a1,109:u1,110:r1,111:o1,112:l1}),e(B,[2,126],{120:167,10:[1,284],14:m1,44:C1,60:x1,89:D1,105:T1,106:S1,109:F1,111:_1,114:B1,115:v1,116:w1}),e(B,[2,127],{120:167,10:[1,285],14:m1,44:C1,60:x1,89:D1,105:T1,106:S1,109:F1,111:_1,114:B1,115:v1,116:w1}),e(B,[2,114]),{31:[1,286],67:k,82:218,116:E,117:m,118:C},{6:11,7:12,8:p,9:d,10:c,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:D,32:[1,287],33:24,34:_,36:A,38:j,42:28,43:38,44:y,45:39,47:40,60:g,84:X,85:p1,86:g1,87:A1,88:O1,89:w,102:L,105:$,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},{10:s1,60:i1,84:n1,92:288,105:a1,107:241,108:242,109:u1,110:r1,111:o1,112:l1},{10:s1,60:i1,84:n1,92:289,105:a1,107:241,108:242,109:u1,110:r1,111:o1,112:l1},e(U,[2,62]),e(T,[2,33]),e(B,[2,124],{106:I1}),e(B,[2,125],{106:I1})],defaultActions:{},parseError:f(function(h,x){if(!x.recoverable){var b=new Error(h);throw b.hash=x,b}this.trace(h)},"parseError"),parse:f(function(h){var x=this,b=[0],l=[],F=[null],t=[],G1=this.table,s="",v=0,Lt=0,Ut=t.slice.call(arguments,1),M=Object.create(this.lexer),y1={yy:{}};for(var Q1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q1)&&(y1.yy[Q1]=this.yy[Q1]);M.setInput(h,y1.yy),y1.yy.lexer=M,y1.yy.parser=this,M.yylloc===void 0&&(M.yylloc={});var J1=M.yylloc;t.push(J1);var Vt=M.options&&M.options.ranges;function $t(){var q;return typeof(q=l.pop()||M.lex()||1)!="number"&&(q instanceof Array&&(q=(l=q).pop()),q=x.symbols_[q]||q),q}typeof y1.yy.parseError=="function"?this.parseError=y1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,f(function(q){b.length=b.length-2*q,F.length=F.length-q,t.length=t.length-q},"popStack"),f($t,"lex");for(var Y,f1,H,It,Y1,c1,Nt,H1,N1={};;){if(f1=b[b.length-1],this.defaultActions[f1]?H=this.defaultActions[f1]:(Y==null&&(Y=$t()),H=G1[f1]&&G1[f1][Y]),H===void 0||!H.length||!H[0]){var Rt="";for(Y1 in H1=[],G1[f1])this.terminals_[Y1]&&Y1>2&&H1.push("'"+this.terminals_[Y1]+"'");Rt=M.showPosition?"Parse error on line "+(v+1)+`:
|
10
|
-
`+M.showPosition()+`
|
11
|
-
Expecting `+H1.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":"Parse error on line "+(v+1)+": Unexpected "+(Y==1?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(Rt,{text:M.match,token:this.terminals_[Y]||Y,line:M.yylineno,loc:J1,expected:H1})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f1+", token: "+Y);switch(H[0]){case 1:b.push(Y),F.push(M.yytext),t.push(M.yylloc),b.push(H[1]),Y=null,Lt=M.yyleng,s=M.yytext,v=M.yylineno,J1=M.yylloc;break;case 2:if(c1=this.productions_[H[1]][1],N1.$=F[F.length-c1],N1._$={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},Vt&&(N1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),(It=this.performAction.apply(N1,[s,Lt,v,y1.yy,H[1],F,t].concat(Ut)))!==void 0)return It;c1&&(b=b.slice(0,-1*c1*2),F=F.slice(0,-1*c1),t=t.slice(0,-1*c1)),b.push(this.productions_[H[1]][0]),F.push(N1.$),t.push(N1._$),Nt=G1[b[b.length-2]][b[b.length-1]],b.push(Nt);break;case 3:return!0}}return!0},"parse")},Mt=function(){return{EOF:1,parseError:f(function(h,x){if(!this.yy.parser)throw new Error(h);this.yy.parser.parseError(h,x)},"parseError"),setInput:f(function(h,x){return this.yy=x||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:f(function(){var h=this._input[0];return this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h,h.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:f(function(h){var x=h.length,b=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;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),b.length-1&&(this.yylineno-=b.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===l.length?this.yylloc.first_column:0)+l[l.length-b.length].length-b[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
12
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:f(function(h){this.unput(this.match.slice(h))},"less"),pastInput:f(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:f(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:f(function(){var h=this.pastInput(),x=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
13
|
-
`+x+"^"},"showPosition"),test_match:f(function(h,x){var b,l,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),(l=h[0].match(/(?:\r\n?|\n).*/g))&&(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],b=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var t in F)this[t]=F[t];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;var h,x,b,l;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),t=0;t<F.length;t++)if((b=this._input.match(this.rules[F[t]]))&&(!x||b[0].length>x[0].length)){if(x=b,l=t,this.options.backtrack_lexer){if((h=this.test_match(b,F[t]))!==!1)return h;if(this._backtrack){x=!1;continue}return!1}if(!this.options.flex)break}return x?(h=this.test_match(x,F[l]))!==!1&&h: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:f(function(){var h=this.next();return h||this.lex()},"lex"),begin:f(function(h){this.conditionStack.push(h)},"begin"),popState:f(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:f(function(h){return(h=this.conditionStack.length-1-Math.abs(h||0))>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:f(function(h){this.begin(h)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:f(function(h,x,b,l){switch(b){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:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),x.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const F=/\n\s*/g;return x.yytext=x.yytext.replace(F,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";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 34:return 88;case 35:case 36:case 37:return h.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53: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 78;case 60:return 105;case 61:case 102:return 111;case 62:return 46;case 63:return 60;case 64:case 103:return 44;case 65:return 8;case 66:return 106;case 67:case 101:return 115;case 68:case 71:case 74:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:case 73:case 76:return 119;case 72:return this.pushState("thickEdgeText"),75;case 75:return this.pushState("dottedEdgeText"),75;case 77:return 77;case 78:return this.popState(),53;case 79:case 115:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119: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]*)/,/^(?:[^\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,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],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,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}}}();function K1(){this.yy={}}return X1.lexer=Mt,f(K1,"Parser"),K1.prototype=X1,X1.Parser=K1,new K1}();et.parser=et;var Gt=et,Ot=Object.assign({},Gt);Ot.parse=e=>{const i=e.replace(/}\s*\n/g,`}
|
15
|
-
`);return Gt.parse(i)};var le=Ot,ce=f((e,i)=>{const a=ue,n=a(e,"r"),r=a(e,"g"),u=a(e,"b");return ie(n,r,u,i)},"fade"),he=f(e=>`.label {
|
16
|
-
font-family: ${e.fontFamily};
|
17
|
-
color: ${e.nodeTextColor||e.textColor};
|
18
|
-
}
|
19
|
-
.cluster-label text {
|
20
|
-
fill: ${e.titleColor};
|
21
|
-
}
|
22
|
-
.cluster-label span {
|
23
|
-
color: ${e.titleColor};
|
24
|
-
}
|
25
|
-
.cluster-label span p {
|
26
|
-
background-color: transparent;
|
27
|
-
}
|
28
|
-
|
29
|
-
.label text,span {
|
30
|
-
fill: ${e.nodeTextColor||e.textColor};
|
31
|
-
color: ${e.nodeTextColor||e.textColor};
|
32
|
-
}
|
33
|
-
|
34
|
-
.node rect,
|
35
|
-
.node circle,
|
36
|
-
.node ellipse,
|
37
|
-
.node polygon,
|
38
|
-
.node path {
|
39
|
-
fill: ${e.mainBkg};
|
40
|
-
stroke: ${e.nodeBorder};
|
41
|
-
stroke-width: 1px;
|
42
|
-
}
|
43
|
-
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
44
|
-
text-anchor: middle;
|
45
|
-
}
|
46
|
-
// .flowchart-label .text-outer-tspan {
|
47
|
-
// text-anchor: middle;
|
48
|
-
// }
|
49
|
-
// .flowchart-label .text-inner-tspan {
|
50
|
-
// text-anchor: start;
|
51
|
-
// }
|
52
|
-
|
53
|
-
.node .katex path {
|
54
|
-
fill: #000;
|
55
|
-
stroke: #000;
|
56
|
-
stroke-width: 1px;
|
57
|
-
}
|
58
|
-
|
59
|
-
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
60
|
-
text-align: center;
|
61
|
-
}
|
62
|
-
.node.clickable {
|
63
|
-
cursor: pointer;
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
.root .anchor path {
|
68
|
-
fill: ${e.lineColor} !important;
|
69
|
-
stroke-width: 0;
|
70
|
-
stroke: ${e.lineColor};
|
71
|
-
}
|
72
|
-
|
73
|
-
.arrowheadPath {
|
74
|
-
fill: ${e.arrowheadColor};
|
75
|
-
}
|
76
|
-
|
77
|
-
.edgePath .path {
|
78
|
-
stroke: ${e.lineColor};
|
79
|
-
stroke-width: 2.0px;
|
80
|
-
}
|
81
|
-
|
82
|
-
.flowchart-link {
|
83
|
-
stroke: ${e.lineColor};
|
84
|
-
fill: none;
|
85
|
-
}
|
86
|
-
|
87
|
-
.edgeLabel {
|
88
|
-
background-color: ${e.edgeLabelBackground};
|
89
|
-
p {
|
90
|
-
background-color: ${e.edgeLabelBackground};
|
91
|
-
}
|
92
|
-
rect {
|
93
|
-
opacity: 0.5;
|
94
|
-
background-color: ${e.edgeLabelBackground};
|
95
|
-
fill: ${e.edgeLabelBackground};
|
96
|
-
}
|
97
|
-
text-align: center;
|
98
|
-
}
|
99
|
-
|
100
|
-
/* For html labels only */
|
101
|
-
.labelBkg {
|
102
|
-
background-color: ${ce(e.edgeLabelBackground,.5)};
|
103
|
-
// background-color:
|
104
|
-
}
|
105
|
-
|
106
|
-
.cluster rect {
|
107
|
-
fill: ${e.clusterBkg};
|
108
|
-
stroke: ${e.clusterBorder};
|
109
|
-
stroke-width: 1px;
|
110
|
-
}
|
111
|
-
|
112
|
-
.cluster text {
|
113
|
-
fill: ${e.titleColor};
|
114
|
-
}
|
115
|
-
|
116
|
-
.cluster span {
|
117
|
-
color: ${e.titleColor};
|
118
|
-
}
|
119
|
-
/* .cluster div {
|
120
|
-
color: ${e.titleColor};
|
121
|
-
} */
|
122
|
-
|
123
|
-
div.mermaidTooltip {
|
124
|
-
position: absolute;
|
125
|
-
text-align: center;
|
126
|
-
max-width: 200px;
|
127
|
-
padding: 2px;
|
128
|
-
font-family: ${e.fontFamily};
|
129
|
-
font-size: 12px;
|
130
|
-
background: ${e.tertiaryColor};
|
131
|
-
border: 1px solid ${e.border2};
|
132
|
-
border-radius: 2px;
|
133
|
-
pointer-events: none;
|
134
|
-
z-index: 100;
|
135
|
-
}
|
136
|
-
|
137
|
-
.flowchartTitleText {
|
138
|
-
text-anchor: middle;
|
139
|
-
font-size: 18px;
|
140
|
-
fill: ${e.textColor};
|
141
|
-
}
|
142
|
-
|
143
|
-
rect.text {
|
144
|
-
fill: none;
|
145
|
-
stroke-width: 0;
|
146
|
-
}
|
147
|
-
|
148
|
-
.icon-shape, .image-shape {
|
149
|
-
background-color: ${e.edgeLabelBackground};
|
150
|
-
p {
|
151
|
-
background-color: ${e.edgeLabelBackground};
|
152
|
-
padding: 2px;
|
153
|
-
}
|
154
|
-
rect {
|
155
|
-
opacity: 0.5;
|
156
|
-
background-color: ${e.edgeLabelBackground};
|
157
|
-
fill: ${e.edgeLabelBackground};
|
158
|
-
}
|
159
|
-
text-align: center;
|
160
|
-
}
|
161
|
-
`,"getStyles"),de={parser:le,get db(){return new re},renderer:oe,styles:he,init:f(e=>{e.flowchart||(e.flowchart={}),e.layout&&Pt({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Pt({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};export{de as diagram};
|
@@ -1,257 +0,0 @@
|
|
1
|
-
import{_ as d,g as le,s as de,q as ue,p as he,a as fe,b as me,c as ot,d as ye,am as V,l as mt,j as ke,i as pe,y as ge,u as be}from"./mermaid-CMc1ns6_.js";import{y as gt,bV as Wt,bN as Ot,bM as xe,cr as Te,cs as ve,ct as we,cu as _e,cv as De,cw as $e,bL as Pt,bK as zt,bJ as Bt,bz as Nt,bI as Ht}from"./index-CJaEBn8N.js";import{s as bt}from"./transform-DetRMEbJ.js";import{t as Ce,m as Se,a as Me,i as Ee}from"./time-CRNs3SAd.js";import{l as Ae}from"./linear-D6T4b48H.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";function Ie(t){return t}var jt=1e-6;function Le(t){return"translate("+t+",0)"}function Ye(t){return"translate(0,"+t+")"}function Fe(t){return n=>+t(n)}function We(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function Oe(){return!this.__axis}function Gt(t,n){var r=[],s=null,i=null,c=6,h=6,A=3,x=typeof window<"u"&&window.devicePixelRatio>1?0:.5,$=t===1||t===4?-1:1,L=t===4||t===2?"x":"y",W=t===1||t===3?Le:Ye;function S(_){var k=s??(n.ticks?n.ticks.apply(n,r):n.domain()),y=i??(n.tickFormat?n.tickFormat.apply(n,r):Ie),M=Math.max(c,0)+A,E=n.range(),P=+E[0]+x,z=+E[E.length-1]+x,G=(n.bandwidth?We:Fe)(n.copy(),x),B=_.selection?_.selection():_,O=B.selectAll(".domain").data([null]),Y=B.selectAll(".tick").data(k,n).order(),p=Y.exit(),w=Y.enter().append("g").attr("class","tick"),g=Y.select("line"),b=Y.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(w),g=g.merge(w.append("line").attr("stroke","currentColor").attr(L+"2",$*c)),b=b.merge(w.append("text").attr("fill","currentColor").attr(L,$*M).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),_!==B&&(O=O.transition(_),Y=Y.transition(_),g=g.transition(_),b=b.transition(_),p=p.transition(_).attr("opacity",jt).attr("transform",function(f){return isFinite(f=G(f))?W(f+x):this.getAttribute("transform")}),w.attr("opacity",jt).attr("transform",function(f){var o=this.parentNode.__axis;return W((o&&isFinite(o=o(f))?o:G(f))+x)})),p.remove(),O.attr("d",t===4||t===2?h?"M"+$*h+","+P+"H"+x+"V"+z+"H"+$*h:"M"+x+","+P+"V"+z:h?"M"+P+","+$*h+"V"+x+"H"+z+"V"+$*h:"M"+P+","+x+"H"+z),Y.attr("opacity",1).attr("transform",function(f){return W(G(f)+x)}),g.attr(L+"2",$*c),b.attr(L,$*M).text(y),B.filter(Oe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),B.each(function(){this.__axis=G})}return S.scale=function(_){return arguments.length?(n=_,S):n},S.ticks=function(){return r=Array.from(arguments),S},S.tickArguments=function(_){return arguments.length?(r=_==null?[]:Array.from(_),S):r.slice()},S.tickValues=function(_){return arguments.length?(s=_==null?null:Array.from(_),S):s&&s.slice()},S.tickFormat=function(_){return arguments.length?(i=_,S):i},S.tickSize=function(_){return arguments.length?(c=h=+_,S):c},S.tickSizeInner=function(_){return arguments.length?(c=+_,S):c},S.tickSizeOuter=function(_){return arguments.length?(h=+_,S):h},S.tickPadding=function(_){return arguments.length?(A=+_,S):A},S.offset=function(_){return arguments.length?(x=+_,S):x},S}var Vt,yt,Rt={exports:{}};const Pe=gt(Vt?Rt.exports:(Vt=1,Rt.exports=(yt="day",function(t,n,r){var s=function(h){return h.add(4-h.isoWeekday(),yt)},i=n.prototype;i.isoWeekYear=function(){return s(this).year()},i.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),yt);var A,x,$,L=s(this),W=(A=this.isoWeekYear(),$=4-(x=(this.$u?r.utc:r)().year(A).startOf("year")).isoWeekday(),x.isoWeekday()>4&&($+=7),x.add($,yt));return L.diff(W,"week")+1},i.isoWeekday=function(h){return this.$utils().u(h)?this.day()||7:this.day(this.day()%7?h:h-7)};var c=i.startOf;i.startOf=function(h,A){var x=this.$utils(),$=!!x.u(A)||A;return x.p(h)==="isoweek"?$?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(h,A)}})));var Zt,Ut={exports:{}},ze=(Zt||(Zt=1,Ut.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,s=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,h={},A=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(y){this[k]=+y}},$=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var M=y.match(/([+-]|\d\d)/g),E=60*M[1]+(+M[2]||0);return E===0?0:M[0]==="+"?-E:E}(k)}],L=function(k){var y=h[k];return y&&(y.indexOf?y:y.s.concat(y.f))},W=function(k,y){var M,E=h.meridiem;if(E){for(var P=1;P<=24;P+=1)if(k.indexOf(E(P,0,y))>-1){M=P>12;break}}else M=k===(y?"pm":"PM");return M},S={A:[c,function(k){this.afternoon=W(k,!1)}],a:[c,function(k){this.afternoon=W(k,!0)}],Q:[r,function(k){this.month=3*(k-1)+1}],S:[r,function(k){this.milliseconds=100*+k}],SS:[s,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[i,x("seconds")],ss:[i,x("seconds")],m:[i,x("minutes")],mm:[i,x("minutes")],H:[i,x("hours")],h:[i,x("hours")],HH:[i,x("hours")],hh:[i,x("hours")],D:[i,x("day")],DD:[s,x("day")],Do:[c,function(k){var y=h.ordinal,M=k.match(/\d+/);if(this.day=M[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[i,x("week")],ww:[s,x("week")],M:[i,x("month")],MM:[s,x("month")],MMM:[c,function(k){var y=L("months"),M=(L("monthsShort")||y.map(function(E){return E.slice(0,3)})).indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[c,function(k){var y=L("months").indexOf(k)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,x("year")],YY:[s,function(k){this.year=A(k)}],YYYY:[/\d{4}/,x("year")],Z:$,ZZ:$};function _(k){var y,M;y=k,M=h&&h.formats;for(var E=(k=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,w,g){var b=g&&g.toUpperCase();return w||M[g]||t[g]||M[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,o,m){return o||m.slice(1)})})).match(n),P=E.length,z=0;z<P;z+=1){var G=E[z],B=S[G],O=B&&B[0],Y=B&&B[1];E[z]=Y?{regex:O,parser:Y}:G.replace(/^\[|\]$/g,"")}return function(p){for(var w={},g=0,b=0;g<P;g+=1){var f=E[g];if(typeof f=="string")b+=f.length;else{var o=f.regex,m=f.parser,u=p.slice(b),l=o.exec(u)[0];m.call(w,l),p=p.replace(l,"")}}return function(T){var e=T.afternoon;if(e!==void 0){var v=T.hours;e?v<12&&(T.hours+=12):v===12&&(T.hours=0),delete T.afternoon}}(w),w}}return function(k,y,M){M.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(A=k.parseTwoDigitYear);var E=y.prototype,P=E.parse;E.parse=function(z){var G=z.date,B=z.utc,O=z.args;this.$u=B;var Y=O[1];if(typeof Y=="string"){var p=O[2]===!0,w=O[3]===!0,g=p||w,b=O[2];w&&(b=O[2]),h=this.$locale(),!p&&b&&(h=M.Ls[b]),this.$d=function(u,l,T,e){try{if(["x","X"].indexOf(l)>-1)return new Date((l==="X"?1e3:1)*u);var v=_(l)(u),a=v.year,D=v.month,I=v.day,F=v.hours,C=v.minutes,U=v.seconds,tt=v.milliseconds,st=v.zone,ft=v.week,rt=new Date,H=I||(a||D?1:rt.getDate()),q=a||rt.getFullYear(),j=0;a&&!D||(j=D>0?D-1:rt.getMonth());var et,X=F||0,R=C||0,at=U||0,J=tt||0;return st?new Date(Date.UTC(q,j,H,X,R,at,J+60*st.offset*1e3)):T?new Date(Date.UTC(q,j,H,X,R,at,J)):(et=new Date(q,j,H,X,R,at,J),ft&&(et=e(et).week(ft).toDate()),et)}catch{return new Date("")}}(G,Y,B,M),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),g&&G!=this.format(Y)&&(this.$d=new Date("")),h={}}else if(Y instanceof Array)for(var f=Y.length,o=1;o<=f;o+=1){O[1]=Y[o-1];var m=M.apply(this,O);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}o===f&&(this.$d=new Date(""))}else P.call(this,z)}}}()),Ut.exports);const Be=gt(ze);var qt,Qt={exports:{}},Ne=(qt||(qt=1,Qt.exports=function(t,n){var r=n.prototype,s=r.format;r.format=function(i){var c=this,h=this.$locale();if(!this.isValid())return s.bind(this)(i);var A=this.$utils(),x=(i||"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($){switch($){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return A.s(c.week(),$==="w"?1:2,"0");case"W":case"WW":return A.s(c.isoWeek(),$==="W"?1:2,"0");case"k":case"kk":return A.s(String(c.$H===0?24:c.$H),$==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return $}});return s.bind(this)(x)}}),Qt.exports);const He=gt(Ne);var xt=function(){var t=d(function(o,m,u,l){for(u=u||{},l=o.length;l--;u[o[l]]=m);return u},"o"),n=[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],s=[1,27],i=[1,28],c=[1,29],h=[1,30],A=[1,31],x=[1,32],$=[1,33],L=[1,34],W=[1,9],S=[1,10],_=[1,11],k=[1,12],y=[1,13],M=[1,14],E=[1,15],P=[1,16],z=[1,19],G=[1,20],B=[1,21],O=[1,22],Y=[1,23],p=[1,25],w=[1,35],g={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(o,m,u,l,T,e,v){var a=e.length-1;switch(T){case 1:return e[a-1];case 2:case 6:case 7:this.$=[];break;case 3:e[a-1].push(e[a]),this.$=e[a-1];break;case 4:case 5:this.$=e[a];break;case 8:l.setWeekday("monday");break;case 9:l.setWeekday("tuesday");break;case 10:l.setWeekday("wednesday");break;case 11:l.setWeekday("thursday");break;case 12:l.setWeekday("friday");break;case 13:l.setWeekday("saturday");break;case 14:l.setWeekday("sunday");break;case 15:l.setWeekend("friday");break;case 16:l.setWeekend("saturday");break;case 17:l.setDateFormat(e[a].substr(11)),this.$=e[a].substr(11);break;case 18:l.enableInclusiveEndDates(),this.$=e[a].substr(18);break;case 19:l.TopAxis(),this.$=e[a].substr(8);break;case 20:l.setAxisFormat(e[a].substr(11)),this.$=e[a].substr(11);break;case 21:l.setTickInterval(e[a].substr(13)),this.$=e[a].substr(13);break;case 22:l.setExcludes(e[a].substr(9)),this.$=e[a].substr(9);break;case 23:l.setIncludes(e[a].substr(9)),this.$=e[a].substr(9);break;case 24:l.setTodayMarker(e[a].substr(12)),this.$=e[a].substr(12);break;case 27:l.setDiagramTitle(e[a].substr(6)),this.$=e[a].substr(6);break;case 28:this.$=e[a].trim(),l.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),l.setAccDescription(this.$);break;case 31:l.addSection(e[a].substr(8)),this.$=e[a].substr(8);break;case 33:l.addTask(e[a-1],e[a]),this.$="task";break;case 34:this.$=e[a-1],l.setClickEvent(e[a-1],e[a],null);break;case 35:this.$=e[a-2],l.setClickEvent(e[a-2],e[a-1],e[a]);break;case 36:this.$=e[a-2],l.setClickEvent(e[a-2],e[a-1],null),l.setLink(e[a-2],e[a]);break;case 37:this.$=e[a-3],l.setClickEvent(e[a-3],e[a-2],e[a-1]),l.setLink(e[a-3],e[a]);break;case 38:this.$=e[a-2],l.setClickEvent(e[a-2],e[a],null),l.setLink(e[a-2],e[a-1]);break;case 39:this.$=e[a-3],l.setClickEvent(e[a-3],e[a-1],e[a]),l.setLink(e[a-3],e[a-2]);break;case 40:this.$=e[a-1],l.setLink(e[a-1],e[a]);break;case 41:case 47:this.$=e[a-1]+" "+e[a];break;case 42:case 43:case 45:this.$=e[a-2]+" "+e[a-1]+" "+e[a];break;case 44:case 46:this.$=e[a-3]+" "+e[a-2]+" "+e[a-1]+" "+e[a]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:s,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:_,25:k,26:y,27:M,28:E,29:P,30:z,31:G,33:B,35:O,36:Y,37:24,38:p,40:w},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:r,13:s,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:_,25:k,26:y,27:M,28:E,29:P,30:z,31:G,33:B,35:O,36:Y,37:24,38:p,40:w},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[2,39])],defaultActions:{},parseError:d(function(o,m){if(!m.recoverable){var u=new Error(o);throw u.hash=m,u}this.trace(o)},"parseError"),parse:d(function(o){var m=this,u=[0],l=[],T=[null],e=[],v=this.table,a="",D=0,I=0,F=e.slice.call(arguments,1),C=Object.create(this.lexer),U={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(U.yy[tt]=this.yy[tt]);C.setInput(o,U.yy),U.yy.lexer=C,U.yy.parser=this,C.yylloc===void 0&&(C.yylloc={});var st=C.yylloc;e.push(st);var ft=C.options&&C.options.ranges;function rt(){var Z;return typeof(Z=l.pop()||C.lex()||1)!="number"&&(Z instanceof Array&&(Z=(l=Z).pop()),Z=m.symbols_[Z]||Z),Z}typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,d(function(Z){u.length=u.length-2*Z,T.length=T.length-Z,e.length=e.length-Z},"popStack"),d(rt,"lex");for(var H,q,j,et,X,R,at,J,nt={};;){if(q=u[u.length-1],this.defaultActions[q]?j=this.defaultActions[q]:(H==null&&(H=rt()),j=v[q]&&v[q][H]),j===void 0||!j.length||!j[0]){var Ft="";for(X in J=[],v[q])this.terminals_[X]&&X>2&&J.push("'"+this.terminals_[X]+"'");Ft=C.showPosition?"Parse error on line "+(D+1)+`:
|
2
|
-
`+C.showPosition()+`
|
3
|
-
Expecting `+J.join(", ")+", got '"+(this.terminals_[H]||H)+"'":"Parse error on line "+(D+1)+": Unexpected "+(H==1?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Ft,{text:C.match,token:this.terminals_[H]||H,line:C.yylineno,loc:st,expected:J})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+H);switch(j[0]){case 1:u.push(H),T.push(C.yytext),e.push(C.yylloc),u.push(j[1]),H=null,I=C.yyleng,a=C.yytext,D=C.yylineno,st=C.yylloc;break;case 2:if(R=this.productions_[j[1]][1],nt.$=T[T.length-R],nt._$={first_line:e[e.length-(R||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(R||1)].first_column,last_column:e[e.length-1].last_column},ft&&(nt._$.range=[e[e.length-(R||1)].range[0],e[e.length-1].range[1]]),(et=this.performAction.apply(nt,[a,I,D,U.yy,j[1],T,e].concat(F)))!==void 0)return et;R&&(u=u.slice(0,-1*R*2),T=T.slice(0,-1*R),e=e.slice(0,-1*R)),u.push(this.productions_[j[1]][0]),T.push(nt.$),e.push(nt._$),at=v[u[u.length-2]][u[u.length-1]],u.push(at);break;case 3:return!0}}return!0},"parse")},b=function(){return{EOF:1,parseError:d(function(o,m){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,m)},"parseError"),setInput:d(function(o,m){return this.yy=m||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:d(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:d(function(o){var m=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;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),u.length-1&&(this.yylineno-=u.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===l.length?this.yylloc.first_column:0)+l[l.length-u.length].length-u[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:d(function(o){this.unput(this.match.slice(o))},"less"),pastInput:d(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:d(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:d(function(){var o=this.pastInput(),m=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
5
|
-
`+m+"^"},"showPosition"),test_match:d(function(o,m){var u,l,T;if(this.options.backtrack_lexer&&(T={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&&(T.yylloc.range=this.yylloc.range.slice(0))),(l=o[0].match(/(?:\r\n?|\n).*/g))&&(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+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],u=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var e in T)this[e]=T[e];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;var o,m,u,l;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),e=0;e<T.length;e++)if((u=this._input.match(this.rules[T[e]]))&&(!m||u[0].length>m[0].length)){if(m=u,l=e,this.options.backtrack_lexer){if((o=this.test_match(u,T[e]))!==!1)return o;if(this._backtrack){m=!1;continue}return!1}if(!this.options.flex)break}return m?(o=this.test_match(m,T[l]))!==!1&&o: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:d(function(){var o=this.next();return o||this.lex()},"lex"),begin:d(function(o){this.conditionStack.push(o)},"begin"),popState:d(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:d(function(o){this.begin(o)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(o,m,u,l){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function f(){this.yy={}}return g.lexer=b,d(f,"Parser"),f.prototype=g,g.Parser=f,new f}();xt.parser=xt;var je=xt;V.extend(Pe),V.extend(Be),V.extend(He);var Tt,kt,Xt={friday:5,saturday:6},Q="",vt="",wt=void 0,_t="",dt=[],ut=[],Dt=new Map,$t=[],Ct=[],ct="",St="",Jt=["active","done","crit","milestone"],Mt=[],ht=!1,Et=!1,At="sunday",pt="saturday",It=0,Ge=d(function(){$t=[],Ct=[],ct="",Mt=[],ie=0,Tt=void 0,kt=void 0,N=[],Q="",vt="",St="",wt=void 0,_t="",dt=[],ut=[],ht=!1,Et=!1,It=0,Dt=new Map,ge(),At="sunday",pt="saturday"},"clear"),Ve=d(function(t){vt=t},"setAxisFormat"),Re=d(function(){return vt},"getAxisFormat"),Ze=d(function(t){wt=t},"setTickInterval"),Ue=d(function(){return wt},"getTickInterval"),qe=d(function(t){_t=t},"setTodayMarker"),Qe=d(function(){return _t},"getTodayMarker"),Xe=d(function(t){Q=t},"setDateFormat"),Je=d(function(){ht=!0},"enableInclusiveEndDates"),Ke=d(function(){return ht},"endDatesAreInclusive"),tn=d(function(){Et=!0},"enableTopAxis"),en=d(function(){return Et},"topAxisEnabled"),nn=d(function(t){St=t},"setDisplayMode"),sn=d(function(){return St},"getDisplayMode"),rn=d(function(){return Q},"getDateFormat"),an=d(function(t){dt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),on=d(function(){return dt},"getIncludes"),cn=d(function(t){ut=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ln=d(function(){return ut},"getExcludes"),dn=d(function(){return Dt},"getLinks"),un=d(function(t){ct=t,$t.push(t)},"addSection"),hn=d(function(){return $t},"getSections"),fn=d(function(){let t=re(),n=0;for(;!t&&n<10;)t=re(),n++;return Ct=N},"getTasks"),Kt=d(function(t,n,r,s){return!s.includes(t.format(n.trim()))&&(!(!r.includes("weekends")||t.isoWeekday()!==Xt[pt]&&t.isoWeekday()!==Xt[pt]+1)||!!r.includes(t.format("dddd").toLowerCase())||r.includes(t.format(n.trim())))},"isInvalidDate"),mn=d(function(t){At=t},"setWeekday"),yn=d(function(){return At},"getWeekday"),kn=d(function(t){pt=t},"setWeekend"),te=d(function(t,n,r,s){if(!r.length||t.manualEndTime)return;let i,c;i=t.startTime instanceof Date?V(t.startTime):V(t.startTime,n,!0),i=i.add(1,"d"),c=t.endTime instanceof Date?V(t.endTime):V(t.endTime,n,!0);const[h,A]=pn(i,c,n,r,s);t.endTime=h.toDate(),t.renderEndTime=A},"checkTaskDates"),pn=d(function(t,n,r,s,i){let c=!1,h=null;for(;t<=n;)c||(h=n.toDate()),c=Kt(t,r,s,i),c&&(n=n.add(1,"d")),t=t.add(1,"d");return[n,h]},"fixTaskDates"),Lt=d(function(t,n,r){r=r.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(s!==null){let c=null;for(const A of s.groups.ids.split(" ")){let x=it(A);x!==void 0&&(!c||x.endTime>c.endTime)&&(c=x)}if(c)return c.endTime;const h=new Date;return h.setHours(0,0,0,0),h}let i=V(r,n.trim(),!0);if(i.isValid())return i.toDate();{mt.debug("Invalid date:"+r),mt.debug("With date format:"+n.trim());const c=new Date(r);if(c===void 0||isNaN(c.getTime())||c.getFullYear()<-1e4||c.getFullYear()>1e4)throw new Error("Invalid date:"+r);return c}},"getStartDate"),ee=d(function(t){const n=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return n!==null?[Number.parseFloat(n[1]),n[2]]:[NaN,"ms"]},"parseDuration"),ne=d(function(t,n,r,s=!1){r=r.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(i!==null){let $=null;for(const W of i.groups.ids.split(" ")){let S=it(W);S!==void 0&&(!$||S.startTime<$.startTime)&&($=S)}if($)return $.startTime;const L=new Date;return L.setHours(0,0,0,0),L}let c=V(r,n.trim(),!0);if(c.isValid())return s&&(c=c.add(1,"d")),c.toDate();let h=V(t);const[A,x]=ee(r);if(!Number.isNaN(A)){const $=h.add(A,x);$.isValid()&&(h=$)}return h.toDate()},"getEndDate"),ie=0,lt=d(function(t){return t===void 0?"task"+(ie+=1):t},"parseId"),gn=d(function(t,n){let r;r=n.substr(0,1)===":"?n.substr(1,n.length):n;const s=r.split(","),i={};Yt(s,i,Jt);for(let h=0;h<s.length;h++)s[h]=s[h].trim();let c="";switch(s.length){case 1:i.id=lt(),i.startTime=t.endTime,c=s[0];break;case 2:i.id=lt(),i.startTime=Lt(void 0,Q,s[0]),c=s[1];break;case 3:i.id=lt(s[0]),i.startTime=Lt(void 0,Q,s[1]),c=s[2]}return c&&(i.endTime=ne(i.startTime,Q,c,ht),i.manualEndTime=V(c,"YYYY-MM-DD",!0).isValid(),te(i,Q,ut,dt)),i},"compileData"),bn=d(function(t,n){let r;r=n.substr(0,1)===":"?n.substr(1,n.length):n;const s=r.split(","),i={};Yt(s,i,Jt);for(let c=0;c<s.length;c++)s[c]=s[c].trim();switch(s.length){case 1:i.id=lt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:s[0]};break;case 2:i.id=lt(),i.startTime={type:"getStartDate",startData:s[0]},i.endTime={data:s[1]};break;case 3:i.id=lt(s[0]),i.startTime={type:"getStartDate",startData:s[1]},i.endTime={data:s[2]}}return i},"parseData"),N=[],se={},xn=d(function(t,n){const r={section:ct,type:ct,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},s=bn(kt,n);r.raw.startTime=s.startTime,r.raw.endTime=s.endTime,r.id=s.id,r.prevTaskId=kt,r.active=s.active,r.done=s.done,r.crit=s.crit,r.milestone=s.milestone,r.order=It,It++;const i=N.push(r);kt=r.id,se[r.id]=i-1},"addTask"),it=d(function(t){const n=se[t];return N[n]},"findTaskById"),Tn=d(function(t,n){const r={section:ct,type:ct,description:t,task:t,classes:[]},s=gn(Tt,n);r.startTime=s.startTime,r.endTime=s.endTime,r.id=s.id,r.active=s.active,r.done=s.done,r.crit=s.crit,r.milestone=s.milestone,Tt=r,Ct.push(r)},"addTaskOrg"),re=d(function(){const t=d(function(r){const s=N[r];let i="";switch(N[r].raw.startTime.type){case"prevTaskEnd":{const c=it(s.prevTaskId);s.startTime=c.endTime;break}case"getStartDate":i=Lt(void 0,Q,N[r].raw.startTime.startData),i&&(N[r].startTime=i)}return N[r].startTime&&(N[r].endTime=ne(N[r].startTime,Q,N[r].raw.endTime.data,ht),N[r].endTime&&(N[r].processed=!0,N[r].manualEndTime=V(N[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),te(N[r],Q,ut,dt))),N[r].processed},"compileTask");let n=!0;for(const[r,s]of N.entries())t(r),n=n&&s.processed;return n},"compileTasks"),vn=d(function(t,n){let r=n;ot().securityLevel!=="loose"&&(r=pe.sanitizeUrl(n)),t.split(",").forEach(function(s){it(s)!==void 0&&(oe(s,()=>{window.open(r,"_self")}),Dt.set(s,r))}),ae(t,"clickable")},"setLink"),ae=d(function(t,n){t.split(",").forEach(function(r){let s=it(r);s!==void 0&&s.classes.push(n)})},"setClass"),wn=d(function(t,n,r){if(ot().securityLevel!=="loose"||n===void 0)return;let s=[];if(typeof r=="string"){s=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<s.length;i++){let c=s[i].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),s[i]=c}}s.length===0&&s.push(t),it(t)!==void 0&&oe(t,()=>{be.runFunc(n,...s)})},"setClickFun"),oe=d(function(t,n){Mt.push(function(){const r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){n()})},function(){const r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){n()})})},"pushFun"),_n=d(function(t,n,r){t.split(",").forEach(function(s){wn(s,n,r)}),ae(t,"clickable")},"setClickEvent"),Dn=d(function(t){Mt.forEach(function(n){n(t)})},"bindFunctions"),$n={getConfig:d(()=>ot().gantt,"getConfig"),clear:Ge,setDateFormat:Xe,getDateFormat:rn,enableInclusiveEndDates:Je,endDatesAreInclusive:Ke,enableTopAxis:tn,topAxisEnabled:en,setAxisFormat:Ve,getAxisFormat:Re,setTickInterval:Ze,getTickInterval:Ue,setTodayMarker:qe,getTodayMarker:Qe,setAccTitle:me,getAccTitle:fe,setDiagramTitle:he,getDiagramTitle:ue,setDisplayMode:nn,getDisplayMode:sn,setAccDescription:de,getAccDescription:le,addSection:un,getSections:hn,getTasks:fn,addTask:xn,findTaskById:it,addTaskOrg:Tn,setIncludes:an,getIncludes:on,setExcludes:cn,getExcludes:ln,setClickEvent:_n,setLink:vn,getLinks:dn,bindFunctions:Dn,parseDuration:ee,isInvalidDate:Kt,setWeekday:mn,getWeekday:yn,setWeekend:kn};function Yt(t,n,r){let s=!0;for(;s;)s=!1,r.forEach(function(i){const c=new RegExp("^\\s*"+i+"\\s*$");t[0].match(c)&&(n[i]=!0,t.shift(1),s=!0)})}d(Yt,"getTaskTags");var K,Cn=d(function(){mt.debug("Something is calling, setConf, remove the call")},"setConf"),ce={monday:$e,tuesday:De,wednesday:_e,thursday:we,friday:ve,saturday:Te,sunday:xe},Sn=d((t,n)=>{let r=[...t].map(()=>-1/0),s=[...t].sort((c,h)=>c.startTime-h.startTime||c.order-h.order),i=0;for(const c of s)for(let h=0;h<r.length;h++)if(c.startTime>=r[h]){r[h]=c.endTime,c.order=h+n,h>i&&(i=h);break}return i},"getMaxIntersections"),Mn={parser:je,db:$n,renderer:{setConf:Cn,draw:d(function(t,n,r,s){const i=ot().gantt,c=ot().securityLevel;let h;c==="sandbox"&&(h=bt("#i"+n));const A=bt(c==="sandbox"?h.nodes()[0].contentDocument.body:"body"),x=c==="sandbox"?h.nodes()[0].contentDocument:document,$=x.getElementById(n);(K=$.parentElement.offsetWidth)===void 0&&(K=1200),i.useWidth!==void 0&&(K=i.useWidth);const L=s.db.getTasks();let W=[];for(const p of L)W.push(p.type);W=Y(W);const S={};let _=2*i.topPadding;if(s.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const p={};for(const g of L)p[g.section]===void 0?p[g.section]=[g]:p[g.section].push(g);let w=0;for(const g of Object.keys(p)){const b=Sn(p[g],w)+1;w+=b,_+=b*(i.barHeight+i.barGap),S[g]=b}}else{_+=L.length*(i.barHeight+i.barGap);for(const p of W)S[p]=L.filter(w=>w.type===p).length}$.setAttribute("viewBox","0 0 "+K+" "+_);const k=A.select(`[id="${n}"]`),y=Ce().domain([Se(L,function(p){return p.startTime}),Me(L,function(p){return p.endTime})]).rangeRound([0,K-i.leftPadding-i.rightPadding]);function M(p,w){const g=p.startTime,b=w.startTime;let f=0;return g>b?f=1:g<b&&(f=-1),f}function E(p,w,g){const b=i.barHeight,f=b+i.barGap,o=i.topPadding,m=i.leftPadding,u=Ae().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(Ee);z(f,o,m,w,g,p,s.db.getExcludes(),s.db.getIncludes()),G(m,o,w,g),P(p,f,o,m,b,u,w),B(f,o),O(m,o,w,g)}function P(p,w,g,b,f,o,m){const u=[...new Set(p.map(e=>e.order))].map(e=>p.find(v=>v.order===e));k.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(e,v){return e.order*w+g-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",w).attr("class",function(e){for(const[v,a]of W.entries())if(e.type===a)return"section section"+v%i.numberSectionStyles;return"section section0"});const l=k.append("g").selectAll("rect").data(p).enter(),T=s.db.getLinks();if(l.append("rect").attr("id",function(e){return e.id}).attr("rx",3).attr("ry",3).attr("x",function(e){return e.milestone?y(e.startTime)+b+.5*(y(e.endTime)-y(e.startTime))-.5*f:y(e.startTime)+b}).attr("y",function(e,v){return e.order*w+g}).attr("width",function(e){return e.milestone?f:y(e.renderEndTime||e.endTime)-y(e.startTime)}).attr("height",f).attr("transform-origin",function(e,v){return v=e.order,(y(e.startTime)+b+.5*(y(e.endTime)-y(e.startTime))).toString()+"px "+(v*w+g+.5*f).toString()+"px"}).attr("class",function(e){let v="";e.classes.length>0&&(v=e.classes.join(" "));let a=0;for(const[I,F]of W.entries())e.type===F&&(a=I%i.numberSectionStyles);let D="";return e.active?e.crit?D+=" activeCrit":D=" active":e.done?D=e.crit?" doneCrit":" done":e.crit&&(D+=" crit"),D.length===0&&(D=" task"),e.milestone&&(D=" milestone "+D),D+=a,D+=" "+v,"task"+D}),l.append("text").attr("id",function(e){return e.id+"-text"}).text(function(e){return e.task}).attr("font-size",i.fontSize).attr("x",function(e){let v=y(e.startTime),a=y(e.renderEndTime||e.endTime);e.milestone&&(v+=.5*(y(e.endTime)-y(e.startTime))-.5*f),e.milestone&&(a=v+f);const D=this.getBBox().width;return D>a-v?a+D+1.5*i.leftPadding>m?v+b-5:a+b+5:(a-v)/2+v+b}).attr("y",function(e,v){return e.order*w+i.barHeight/2+(i.fontSize/2-2)+g}).attr("text-height",f).attr("class",function(e){const v=y(e.startTime);let a=y(e.endTime);e.milestone&&(a=v+f);const D=this.getBBox().width;let I="";e.classes.length>0&&(I=e.classes.join(" "));let F=0;for(const[U,tt]of W.entries())e.type===tt&&(F=U%i.numberSectionStyles);let C="";return e.active&&(C=e.crit?"activeCritText"+F:"activeText"+F),e.done?C=e.crit?C+" doneCritText"+F:C+" doneText"+F:e.crit&&(C=C+" critText"+F),e.milestone&&(C+=" milestoneText"),D>a-v?a+D+1.5*i.leftPadding>m?I+" taskTextOutsideLeft taskTextOutside"+F+" "+C:I+" taskTextOutsideRight taskTextOutside"+F+" "+C+" width-"+D:I+" taskText taskText"+F+" "+C+" width-"+D}),ot().securityLevel==="sandbox"){let e;e=bt("#i"+n);const v=e.nodes()[0].contentDocument;l.filter(function(a){return T.has(a.id)}).each(function(a){var D=v.querySelector("#"+a.id),I=v.querySelector("#"+a.id+"-text");const F=D.parentNode;var C=v.createElement("a");C.setAttribute("xlink:href",T.get(a.id)),C.setAttribute("target","_top"),F.appendChild(C),C.appendChild(D),C.appendChild(I)})}}function z(p,w,g,b,f,o,m,u){if(m.length===0&&u.length===0)return;let l,T;for(const{startTime:I,endTime:F}of o)(l===void 0||I<l)&&(l=I),(T===void 0||F>T)&&(T=F);if(!l||!T)return;if(V(T).diff(V(l),"year")>5)return void mt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const e=s.db.getDateFormat(),v=[];let a=null,D=V(l);for(;D.valueOf()<=T;)s.db.isInvalidDate(D,e,m,u)?a?a.end=D:a={start:D,end:D}:a&&(v.push(a),a=null),D=D.add(1,"d");k.append("g").selectAll("rect").data(v).enter().append("rect").attr("id",function(I){return"exclude-"+I.start.format("YYYY-MM-DD")}).attr("x",function(I){return y(I.start)+g}).attr("y",i.gridLineStartPadding).attr("width",function(I){const F=I.end.add(1,"day");return y(F)-y(I.start)}).attr("height",f-w-i.gridLineStartPadding).attr("transform-origin",function(I,F){return(y(I.start)+g+.5*(y(I.end)-y(I.start))).toString()+"px "+(F*p+.5*f).toString()+"px"}).attr("class","exclude-range")}function G(p,w,g,b){let f=(o=y,Gt(3,o)).tickSize(-b+w+i.gridLineStartPadding).tickFormat(Wt(s.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));var o;const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],l=m[2],T=s.db.getWeekday()||i.weekday;switch(l){case"millisecond":f.ticks(Ht.every(u));break;case"second":f.ticks(Nt.every(u));break;case"minute":f.ticks(Bt.every(u));break;case"hour":f.ticks(zt.every(u));break;case"day":f.ticks(Pt.every(u));break;case"week":f.ticks(ce[T].every(u));break;case"month":f.ticks(Ot.every(u))}}if(k.append("g").attr("class","grid").attr("transform","translate("+p+", "+(b-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||i.topAxis){let u=function(l){return Gt(1,l)}(y).tickSize(-b+w+i.gridLineStartPadding).tickFormat(Wt(s.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const l=m[1],T=m[2],e=s.db.getWeekday()||i.weekday;switch(T){case"millisecond":u.ticks(Ht.every(l));break;case"second":u.ticks(Nt.every(l));break;case"minute":u.ticks(Bt.every(l));break;case"hour":u.ticks(zt.every(l));break;case"day":u.ticks(Pt.every(l));break;case"week":u.ticks(ce[e].every(l));break;case"month":u.ticks(Ot.every(l))}}k.append("g").attr("class","grid").attr("transform","translate("+p+", "+w+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function B(p,w){let g=0;const b=Object.keys(S).map(f=>[f,S[f]]);k.append("g").selectAll("text").data(b).enter().append(function(f){const o=f[0].split(ke.lineBreakRegex),m=-(o.length-1)/2,u=x.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[l,T]of o.entries()){const e=x.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),l>0&&e.setAttribute("dy","1em"),e.textContent=T,u.appendChild(e)}return u}).attr("x",10).attr("y",function(f,o){if(!(o>0))return f[1]*p/2+w;for(let m=0;m<o;m++)return g+=b[o-1][1],f[1]*p/2+g*p+w}).attr("font-size",i.sectionFontSize).attr("class",function(f){for(const[o,m]of W.entries())if(f[0]===m)return"sectionTitle sectionTitle"+o%i.numberSectionStyles;return"sectionTitle"})}function O(p,w,g,b){const f=s.db.getTodayMarker();if(f==="off")return;const o=k.append("g").attr("class","today"),m=new Date,u=o.append("line");u.attr("x1",y(m)+p).attr("x2",y(m)+p).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),f!==""&&u.attr("style",f.replace(/,/g,";"))}function Y(p){const w={},g=[];for(let b=0,f=p.length;b<f;++b)Object.prototype.hasOwnProperty.call(w,p[b])||(w[p[b]]=!0,g.push(p[b]));return g}d(M,"taskCompare"),L.sort(M),E(L,K,_),ye(k,_,K,i.useMaxWidth),k.append("text").text(s.db.getDiagramTitle()).attr("x",K/2).attr("y",i.titleTopMargin).attr("class","titleText"),d(E,"makeGantt"),d(P,"drawRects"),d(z,"drawExcludeDays"),d(G,"makeGrid"),d(B,"vertLabels"),d(O,"drawToday"),d(Y,"checkUnique")},"draw")},styles:d(t=>`
|
7
|
-
.mermaid-main-font {
|
8
|
-
font-family: ${t.fontFamily};
|
9
|
-
}
|
10
|
-
|
11
|
-
.exclude-range {
|
12
|
-
fill: ${t.excludeBkgColor};
|
13
|
-
}
|
14
|
-
|
15
|
-
.section {
|
16
|
-
stroke: none;
|
17
|
-
opacity: 0.2;
|
18
|
-
}
|
19
|
-
|
20
|
-
.section0 {
|
21
|
-
fill: ${t.sectionBkgColor};
|
22
|
-
}
|
23
|
-
|
24
|
-
.section2 {
|
25
|
-
fill: ${t.sectionBkgColor2};
|
26
|
-
}
|
27
|
-
|
28
|
-
.section1,
|
29
|
-
.section3 {
|
30
|
-
fill: ${t.altSectionBkgColor};
|
31
|
-
opacity: 0.2;
|
32
|
-
}
|
33
|
-
|
34
|
-
.sectionTitle0 {
|
35
|
-
fill: ${t.titleColor};
|
36
|
-
}
|
37
|
-
|
38
|
-
.sectionTitle1 {
|
39
|
-
fill: ${t.titleColor};
|
40
|
-
}
|
41
|
-
|
42
|
-
.sectionTitle2 {
|
43
|
-
fill: ${t.titleColor};
|
44
|
-
}
|
45
|
-
|
46
|
-
.sectionTitle3 {
|
47
|
-
fill: ${t.titleColor};
|
48
|
-
}
|
49
|
-
|
50
|
-
.sectionTitle {
|
51
|
-
text-anchor: start;
|
52
|
-
font-family: ${t.fontFamily};
|
53
|
-
}
|
54
|
-
|
55
|
-
|
56
|
-
/* Grid and axis */
|
57
|
-
|
58
|
-
.grid .tick {
|
59
|
-
stroke: ${t.gridColor};
|
60
|
-
opacity: 0.8;
|
61
|
-
shape-rendering: crispEdges;
|
62
|
-
}
|
63
|
-
|
64
|
-
.grid .tick text {
|
65
|
-
font-family: ${t.fontFamily};
|
66
|
-
fill: ${t.textColor};
|
67
|
-
}
|
68
|
-
|
69
|
-
.grid path {
|
70
|
-
stroke-width: 0;
|
71
|
-
}
|
72
|
-
|
73
|
-
|
74
|
-
/* Today line */
|
75
|
-
|
76
|
-
.today {
|
77
|
-
fill: none;
|
78
|
-
stroke: ${t.todayLineColor};
|
79
|
-
stroke-width: 2px;
|
80
|
-
}
|
81
|
-
|
82
|
-
|
83
|
-
/* Task styling */
|
84
|
-
|
85
|
-
/* Default task */
|
86
|
-
|
87
|
-
.task {
|
88
|
-
stroke-width: 2;
|
89
|
-
}
|
90
|
-
|
91
|
-
.taskText {
|
92
|
-
text-anchor: middle;
|
93
|
-
font-family: ${t.fontFamily};
|
94
|
-
}
|
95
|
-
|
96
|
-
.taskTextOutsideRight {
|
97
|
-
fill: ${t.taskTextDarkColor};
|
98
|
-
text-anchor: start;
|
99
|
-
font-family: ${t.fontFamily};
|
100
|
-
}
|
101
|
-
|
102
|
-
.taskTextOutsideLeft {
|
103
|
-
fill: ${t.taskTextDarkColor};
|
104
|
-
text-anchor: end;
|
105
|
-
}
|
106
|
-
|
107
|
-
|
108
|
-
/* Special case clickable */
|
109
|
-
|
110
|
-
.task.clickable {
|
111
|
-
cursor: pointer;
|
112
|
-
}
|
113
|
-
|
114
|
-
.taskText.clickable {
|
115
|
-
cursor: pointer;
|
116
|
-
fill: ${t.taskTextClickableColor} !important;
|
117
|
-
font-weight: bold;
|
118
|
-
}
|
119
|
-
|
120
|
-
.taskTextOutsideLeft.clickable {
|
121
|
-
cursor: pointer;
|
122
|
-
fill: ${t.taskTextClickableColor} !important;
|
123
|
-
font-weight: bold;
|
124
|
-
}
|
125
|
-
|
126
|
-
.taskTextOutsideRight.clickable {
|
127
|
-
cursor: pointer;
|
128
|
-
fill: ${t.taskTextClickableColor} !important;
|
129
|
-
font-weight: bold;
|
130
|
-
}
|
131
|
-
|
132
|
-
|
133
|
-
/* Specific task settings for the sections*/
|
134
|
-
|
135
|
-
.taskText0,
|
136
|
-
.taskText1,
|
137
|
-
.taskText2,
|
138
|
-
.taskText3 {
|
139
|
-
fill: ${t.taskTextColor};
|
140
|
-
}
|
141
|
-
|
142
|
-
.task0,
|
143
|
-
.task1,
|
144
|
-
.task2,
|
145
|
-
.task3 {
|
146
|
-
fill: ${t.taskBkgColor};
|
147
|
-
stroke: ${t.taskBorderColor};
|
148
|
-
}
|
149
|
-
|
150
|
-
.taskTextOutside0,
|
151
|
-
.taskTextOutside2
|
152
|
-
{
|
153
|
-
fill: ${t.taskTextOutsideColor};
|
154
|
-
}
|
155
|
-
|
156
|
-
.taskTextOutside1,
|
157
|
-
.taskTextOutside3 {
|
158
|
-
fill: ${t.taskTextOutsideColor};
|
159
|
-
}
|
160
|
-
|
161
|
-
|
162
|
-
/* Active task */
|
163
|
-
|
164
|
-
.active0,
|
165
|
-
.active1,
|
166
|
-
.active2,
|
167
|
-
.active3 {
|
168
|
-
fill: ${t.activeTaskBkgColor};
|
169
|
-
stroke: ${t.activeTaskBorderColor};
|
170
|
-
}
|
171
|
-
|
172
|
-
.activeText0,
|
173
|
-
.activeText1,
|
174
|
-
.activeText2,
|
175
|
-
.activeText3 {
|
176
|
-
fill: ${t.taskTextDarkColor} !important;
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
/* Completed task */
|
181
|
-
|
182
|
-
.done0,
|
183
|
-
.done1,
|
184
|
-
.done2,
|
185
|
-
.done3 {
|
186
|
-
stroke: ${t.doneTaskBorderColor};
|
187
|
-
fill: ${t.doneTaskBkgColor};
|
188
|
-
stroke-width: 2;
|
189
|
-
}
|
190
|
-
|
191
|
-
.doneText0,
|
192
|
-
.doneText1,
|
193
|
-
.doneText2,
|
194
|
-
.doneText3 {
|
195
|
-
fill: ${t.taskTextDarkColor} !important;
|
196
|
-
}
|
197
|
-
|
198
|
-
|
199
|
-
/* Tasks on the critical line */
|
200
|
-
|
201
|
-
.crit0,
|
202
|
-
.crit1,
|
203
|
-
.crit2,
|
204
|
-
.crit3 {
|
205
|
-
stroke: ${t.critBorderColor};
|
206
|
-
fill: ${t.critBkgColor};
|
207
|
-
stroke-width: 2;
|
208
|
-
}
|
209
|
-
|
210
|
-
.activeCrit0,
|
211
|
-
.activeCrit1,
|
212
|
-
.activeCrit2,
|
213
|
-
.activeCrit3 {
|
214
|
-
stroke: ${t.critBorderColor};
|
215
|
-
fill: ${t.activeTaskBkgColor};
|
216
|
-
stroke-width: 2;
|
217
|
-
}
|
218
|
-
|
219
|
-
.doneCrit0,
|
220
|
-
.doneCrit1,
|
221
|
-
.doneCrit2,
|
222
|
-
.doneCrit3 {
|
223
|
-
stroke: ${t.critBorderColor};
|
224
|
-
fill: ${t.doneTaskBkgColor};
|
225
|
-
stroke-width: 2;
|
226
|
-
cursor: pointer;
|
227
|
-
shape-rendering: crispEdges;
|
228
|
-
}
|
229
|
-
|
230
|
-
.milestone {
|
231
|
-
transform: rotate(45deg) scale(0.8,0.8);
|
232
|
-
}
|
233
|
-
|
234
|
-
.milestoneText {
|
235
|
-
font-style: italic;
|
236
|
-
}
|
237
|
-
.doneCritText0,
|
238
|
-
.doneCritText1,
|
239
|
-
.doneCritText2,
|
240
|
-
.doneCritText3 {
|
241
|
-
fill: ${t.taskTextDarkColor} !important;
|
242
|
-
}
|
243
|
-
|
244
|
-
.activeCritText0,
|
245
|
-
.activeCritText1,
|
246
|
-
.activeCritText2,
|
247
|
-
.activeCritText3 {
|
248
|
-
fill: ${t.taskTextDarkColor} !important;
|
249
|
-
}
|
250
|
-
|
251
|
-
.titleText {
|
252
|
-
text-anchor: middle;
|
253
|
-
font-size: 18px;
|
254
|
-
fill: ${t.titleColor||t.textColor};
|
255
|
-
font-family: ${t.fontFamily};
|
256
|
-
}
|
257
|
-
`,"getStyles")};export{Mn as diagram};
|