package.dist.chunks.mermaid.esm.min.flowDiagram-JTTVBJUY.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
import{a as ht,b as ft}from"./chunk-4SRTBRON.mjs";import"./chunk-UWHJNN4Q.mjs";import{b as dt,c as pt}from"./chunk-CBSWTUHP.mjs";import"./chunk-RRFB4HDS.mjs";import"./chunk-U6LOUQAF.mjs";import"./chunk-KMOJB3TB.mjs";import{m as Ue,p as ct}from"./chunk-AC3VT7B7.mjs";import"./chunk-TI4EEUUG.mjs";import{L as tt,P as st,Q as rt,R as nt,S as it,T as ut,U as at,V as ot,X as be,Y as f1,Z as lt,b as Q,fa as de,l as $1,m as et}from"./chunk-NQURTBEV.mjs";import"./chunk-6BY5RJGC.mjs";import{a as u}from"./chunk-GTKDMUJJ.mjs";var vt="flowchart-",gt=0,Pe=be(),ke=new Map,j=[],We=new Map,pe=[],k1=new Map,A1=new Map,e1=0,g1=!0,Z,t1,s1=[],r1=u(e=>tt.sanitizeText(e,Pe),"sanitizeText"),n1=u(function(e){for(let r of ke.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),It=u(function(e,r,n,i,o,d,p={}){if(!e||e.trim().length===0)return;let E,l=ke.get(e);l===void 0&&(l={id:e,labelType:"text",domId:vt+e+"-"+gt,styles:[],classes:[]},ke.set(e,l)),gt++,r!==void 0?(Pe=be(),E=r1(r.text.trim()),l.labelType=r.type,E.startsWith('"')&&E.endsWith('"')&&(E=E.substring(1,E.length-1)),l.text=E):l.text===void 0&&(l.text=e),n!==void 0&&(l.type=n),i?.forEach(function(f){l.styles.push(f)}),o?.forEach(function(f){l.classes.push(f)}),d!==void 0&&(l.dir=d),l.props===void 0?l.props=p:p!==void 0&&Object.assign(l.props,p)},"addVertex"),Rt=u(function(e,r,n){let d={start:e,end:r,type:void 0,text:"",labelType:"text"};Q.info("abc78 Got edge...",d);let p=n.text;if(p!==void 0&&(d.text=r1(p.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"')&&(d.text=d.text.substring(1,d.text.length-1)),d.labelType=p.type),n!==void 0&&(d.type=n.type,d.stroke=n.stroke,d.length=n.length>10?10:n.length),j.length<(Pe.maxEdges??500))Q.info("Pushing edge..."),j.push(d);else throw new Error(`Edge limit exceeded. ${j.length} edges found, but the limit is ${Pe.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},"addSingleLink"),Nt=u(function(e,r,n){Q.info("addLink",e,r,n);for(let i of e)for(let o of r)Rt(i,o,n)},"addLink"),Pt=u(function(e,r){e.forEach(function(n){n==="default"?j.defaultInterpolate=r:j[n].interpolate=r})},"updateLinkInterpolate"),Ot=u(function(e,r){e.forEach(function(n){if(typeof n=="number"&&n>=j.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${j.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?j.defaultStyle=r:(j[n].style=r,(j[n]?.style?.length??0)>0&&!j[n]?.style?.some(i=>i?.startsWith("fill"))&&j[n]?.style?.push("fill:none"))})},"updateLink"),Mt=u(function(e,r){e.split(",").forEach(function(n){let i=We.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},We.set(n,i)),r?.forEach(function(o){if(/color/.exec(o)){let d=o.replace("fill","bgFill");i.textStyles.push(d)}i.styles.push(o)})})},"addClass"),Gt=u(function(e){Z=e,/.*/.exec(Z)&&(Z="LR"),/.*v/.exec(Z)&&(Z="TB"),Z==="TD"&&(Z="TB")},"setDirection"),m1=u(function(e,r){for(let n of e.split(",")){let i=ke.get(n);i&&i.classes.push(r);let o=k1.get(n);o&&o.classes.push(r)}},"setClass"),Ut=u(function(e,r){if(r!==void 0){r=r1(r);for(let n of e.split(","))A1.set(t1==="gen-1"?n1(n):n,r)}},"setTooltip"),jt=u(function(e,r,n){let i=n1(e);if(be().securityLevel!=="loose"||r===void 0)return;let o=[];if(typeof n=="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p")),o.classed("hover",!0)}).on("mouseout",function(){r.transition().duration(500).style("opacity",0),de(this).classed("hover",!1)})},"setupToolTips");s1.push(mt);var Xt=u(function(e="gen-1"){ke=new Map,We=new Map,j=[],s1=[mt],pe=[],k1=new Map,e1=0,A1=new Map,g1=!0,t1=e,Pe=be(),st()},"clear"),qt=u(e=>{t1=e||"gen-2"},"setGen"),Ht=u(function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},"defaultStyle"),Qt=u(function(e,r,n){let i=e.text.trim(),o=n.text;e===n&&/\s/.exec(n.text)&&(i=void 0);function d(f){let O={boolean:{},number:{},string:{}},J=[],W;return{nodeList:f.filter(function(b){let y=typeof b;return b.stmt&&b.stmt==="dir"?(W=b.value,!1):b.trim()===""?!1:y in O?O[y].hasOwnProperty(b)?!1:O[y][b]=!0:J.includes(b)?!1:J.push(b)}),dir:W}}u(d,"uniq");let{nodeList:p,dir:E}=d(r.flat());if(t1==="gen-1")for(let f=0;f2e3)return{result:!1,count:0};if(xt[je]=r,pe[r].id===e)return{result:!0,count:0};let i=0,o=1;for(;i=0){let p=Et(e,d);if(p.result)return{result:!0,count:o+p.count};o=o+p.count}i=i+1}return{result:!1,count:o}},"indexNodes2"),Jt=u(function(e){return xt[e]},"getDepthFirstPos"),$t=u(function(){je=-1,pe.length>0&&Et("none",pe.length-1)},"indexNodes"),yt=u(function(){return pe},"getSubGraphs"),es=u(()=>g1?(g1=!1,!0):!1,"firstGraph"),ts=u(e=>{let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let i="normal";return r.includes("=")&&(i="thick"),r.includes(".")&&(i="dotted"),{type:n,stroke:i}},"destructStartLink"),ss=u((e,r)=>{let n=r.length,i=0;for(let o=0;o{let r=e.trim(),n=r.slice(0,-1),i="arrow_open";switch(r.slice(-1)){case"x":i="arrow_cross",r.startsWith("x")&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point",r.startsWith("<")&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle",r.startsWith("o")&&(i="double_"+i,n=n.slice(1));break}let o="normal",d=n.length-1;n.startsWith("=")&&(o="thick"),n.startsWith("~")&&(o="invisible");let p=ss(".",n);return p&&(o="dotted",d=p),{type:i,stroke:o,length:d}},"destructEndLink"),ns=u((e,r)=>{let n=rs(e),i;if(r){if(i=ts(r),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=n.length,i}return n},"destructLink"),Ct=u((e,r)=>{for(let n of e)if(n.nodes.includes(r))return!0;return!1},"exists"),Ft=u((e,r)=>{let n=[];return e.nodes.forEach((i,o)=>{Ct(r,i)||n.push(e.nodes[o])}),{nodes:n}},"makeUniq"),is={firstGraph:es},us=u(e=>e.type==="square"?"squareRect":e.type==="round"?"roundedRect":e.type??"squareRect","getTypeFromVertex"),as=u((e,r)=>e.find(n=>n.id===r),"findNode"),os=u(e=>{let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}},"destructEdgeType"),ls=u((e,r,n,i,o,d)=>{let p=n.get(e.id),E=i.get(e.id)??!1,l=as(r,e.id);l?(l.cssStyles=e.styles,l.cssCompiledStyles=b1(e.classes),l.cssClasses=e.classes.join(" ")):r.push({id:e.id,label:e.text,labelStyle:"",parentId:p,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:b1(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),shape:us(e),dir:e.dir,domId:e.domId,isGroup:E,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:bt(e.id)})},"addNodeFromVertex");function b1(e){let r=[];for(let n of e){let i=We.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(o=>o.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(o=>o.trim()))}return r}u(b1,"getCompiledStyles");var cs=u(()=>{let e=be(),r=[],n=[],i=yt(),o=new Map,d=new Map;for(let l=i.length-1;l>=0;l--){let f=i[l];f.nodes.length>0&&d.set(f.id,!0);for(let O of f.nodes)o.set(O,f.id)}for(let l=i.length-1;l>=0;l--){let f=i[l];r.push({id:f.id,label:f.title,labelStyle:"",parentId:o.get(f.id),padding:8,cssCompiledStyles:b1(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:e.look})}kt().forEach(l=>{ls(l,r,o,d,e,e.look||"classic")});let E=At();return E.forEach((l,f)=>{let{arrowTypeStart:O,arrowTypeEnd:J}=os(l.type),W=[...E.defaultStyle??[]];l.style&&W.push(...l.style);let K={id:ct(l.start,l.end,{counter:f,prefix:"L"}),start:l.start,end:l.end,type:l.type??"normal",label:l.text,labelpos:"c",thickness:l.stroke,minlen:l.length,classes:l?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:l?.stroke==="invisible"?"none":O,arrowTypeEnd:l?.stroke==="invisible"?"none":J,arrowheadStyle:"fill: #333",labelStyle:W,style:W,pattern:l.stroke,look:e.look};n.push(K)}),{nodes:r,edges:n,other:{},config:e}},"getData"),i1={defaultConfig:u(()=>lt.flowchart,"defaultConfig"),setAccTitle:rt,getAccTitle:nt,getAccDescription:ut,getData:cs,setAccDescription:it,addVertex:It,lookUpDomId:n1,addLink:Nt,updateLinkInterpolate:Pt,updateLink:Ot,addClass:Mt,setDirection:Gt,setClass:m1,setTooltip:Ut,getTooltip:bt,setClickEvent:Kt,setLink:Wt,bindFunctions:Yt,getDirection:x1,getVertices:kt,getEdges:At,getClasses:zt,clear:Xt,setGen:qt,defaultStyle:Ht,addSubGraph:Qt,getDepthFirstPos:Jt,indexNodes:$t,getSubGraphs:yt,destructLink:ns,lex:is,exists:Ct,makeUniq:Ft,setDiagramTitle:at,getDiagramTitle:ot};var hs=u(function(e,r){return r.db.getClasses()},"getClasses"),ds=u(async function(e,r,n,i){Q.info("REF0:"),Q.info("Drawing state diagram (v2)",r);let{securityLevel:o,flowchart:d,layout:p}=be(),E;o==="sandbox"&&(E=de("#i"+r));let l=o==="sandbox"?E.nodes()[0].contentDocument:document;Q.debug("Before getData: ");let f=i.db.getData();Q.debug("Data: ",f);let O=ht(r,o),J=x1();f.type=i.type,f.layoutAlgorithm=pt(p),f.layoutAlgorithm==="dagre"&&p==="elk"&&Q.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."),f.direction=J,f.nodeSpacing=d?.nodeSpacing||50,f.rankSpacing=d?.rankSpacing||50,f.markers=["point","circle","cross"],f.diagramId=r,Q.debug("REF1:",f),await dt(f,O);let W=f.config.flowchart?.diagramPadding??8;Ue.insertTitle(O,"flowchartTitleText",d?.titleTopMargin||0,i.db.getDiagramTitle()),ft(O,W,"flowchart",d?.useMaxWidth||!1);for(let K of f.nodes){let b=de(`#${r} [id="${K.id}"]`);if(!b||!K.link)continue;let y=l.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",K.cssClasses),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),o==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):K.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",K.linkTarget);let Ae=b.insert(function(){return y},":first-child"),me=b.select(".label-container");me&&Ae.append(function(){return me.node()});let xe=b.select(".label");xe&&Ae.append(function(){return xe.node()})}},"draw"),St={getClasses:hs,draw:ds};var E1=function(){var e=u(function(ge,c,h,g){for(h=h||{},g=ge.length;g--;h[ge[g]]=c);return h},"o"),r=[1,4],n=[1,3],i=[1,5],o=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],d=[2,2],p=[1,13],E=[1,14],l=[1,15],f=[1,16],O=[1,23],J=[1,25],W=[1,26],K=[1,27],b=[1,49],y=[1,48],Ae=[1,29],me=[1,30],xe=[1,31],Ke=[1,32],Ye=[1,33],B=[1,44],_=[1,46],w=[1,42],V=[1,47],L=[1,43],v=[1,50],I=[1,45],R=[1,51],N=[1,52],ze=[1,34],Xe=[1,35],qe=[1,36],He=[1,37],Oe=[1,57],C=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ee=[1,61],te=[1,60],se=[1,62],Qe=[8,9,11,73,75],Ce=[1,88],Fe=[1,93],Se=[1,92],De=[1,89],Te=[1,85],Be=[1,91],_e=[1,87],we=[1,94],Ve=[1,90],Le=[1,95],ve=[1,86],Ze=[8,9,10,11,73,75],P=[8,9,10,11,44,73,75],Y=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],y1=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],Me=[42,58,86,99,102,103,106,108,111,112,113],C1=[1,121],F1=[1,120],S1=[1,128],D1=[1,142],T1=[1,143],B1=[1,144],_1=[1,145],w1=[1,130],V1=[1,132],L1=[1,136],v1=[1,137],I1=[1,138],R1=[1,139],N1=[1,140],P1=[1,141],O1=[1,146],M1=[1,147],G1=[1,126],U1=[1,127],j1=[1,134],W1=[1,129],K1=[1,133],Y1=[1,131],u1=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],z1=[1,149],D=[8,9,11],z=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],k=[1,169],M=[1,165],G=[1,166],A=[1,170],m=[1,167],x=[1,168],Ie=[75,113,116],F=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],X1=[10,103],fe=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],re=[1,235],ne=[1,233],ie=[1,237],ue=[1,231],ae=[1,232],oe=[1,234],le=[1,236],ce=[1,238],Re=[1,255],q1=[8,9,11,103],$=[8,9,10,11,58,81,102,103,106,107,108,109],a1={trace:u(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,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$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",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"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],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,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],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:u(function(c,h,g,a,S,t,Ge){var s=t.length-1;switch(S){case 2: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 176:this.$=t[s];break;case 11:a.setDirection("TB"),this.$="TB";break;case 12:a.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=a.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=a.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=a.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),a.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),a.setAccDescription(this.$);break;case 43:a.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:a.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 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],a.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],a.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],a.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],a.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],a.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],a.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var q=a.destructLink(t[s],t[s-2]);this.$={type:q.type,stroke:q.stroke,length:q.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var q=a.destructLink(t[s]);this.$={type:q.type,stroke:q.stroke,length:q.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],a.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],a.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],a.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],a.setClickEvent(t[s-3],t[s-2]),a.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],a.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],a.setClickEvent(t[s-4],t[s-3],t[s-2]),a.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],a.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],a.setLink(t[s-4],t[s-2]),a.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],a.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],a.setLink(t[s-6],t[s-4],t[s]),a.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],a.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],a.setLink(t[s-3],t[s-2]),a.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],a.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],a.setLink(t[s-5],t[s-4],t[s]),a.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],a.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],a.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],a.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],a.updateLinkInterpolate([t[s-6]],t[s-2]),a.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],a.updateLinkInterpolate(t[s-6],t[s-2]),a.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],a.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],a.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:n,12:i},{1:[3]},e(o,d,{5:6}),{4:7,9:r,10:n,12:i},{4:8,9:r,10:n,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:E,10:l,11:f,20:17,22:18,23:19,24:20,25:21,26:22,27:O,33:24,34:J,36:W,38:K,40:28,41:38,42:b,43:39,45:40,58:y,81:Ae,82:me,83:xe,84:Ke,85:Ye,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:ze,119:Xe,120:qe,121:He},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,54],9:[1,55],10:Oe,15:53,18:56},e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,6]),e(C,[2,7]),e(C,[2,8]),{8:ee,9:te,11:se,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:ee,9:te,11:se,21:66},{8:ee,9:te,11:se,21:67},{8:ee,9:te,11:se,21:68},{8:ee,9:te,11:se,21:69},{8:ee,9:te,11:se,21:70},{8:ee,9:te,10:[1,71],11:se,21:72},e(C,[2,36]),{35:[1,73]},{37:[1,74]},e(C,[2,39]),e(Qe,[2,46],{18:75,10:Oe}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:Ce,42:Fe,58:Se,77:[1,83],86:De,92:[1,80],94:[1,81],98:82,102:Te,103:Be,106:_e,108:we,111:Ve,112:Le,113:ve,117:84},e(C,[2,178]),e(C,[2,179]),e(C,[2,180]),e(C,[2,181]),e(Ze,[2,47]),e(Ze,[2,49],{44:[1,96]}),e(P,[2,67],{110:109,29:[1,97],42:b,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:y,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:B,99:_,102:w,103:V,106:L,108:v,111:I,112:R,113:N}),e(Y,[2,174]),e(Y,[2,135]),e(Y,[2,136]),e(Y,[2,137]),e(Y,[2,138]),e(Y,[2,139]),e(Y,[2,140]),e(Y,[2,141]),e(Y,[2,142]),e(Y,[2,143]),e(Y,[2,144]),e(Y,[2,145]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,110]},e(y1,[2,26],{18:111,10:Oe}),e(C,[2,27]),{40:112,41:38,42:b,43:39,45:40,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},e(C,[2,40]),e(C,[2,41]),e(C,[2,42]),e(Me,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:C1,116:F1},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,[2,31]),e(C,[2,32]),{10:S1,12:D1,14:T1,27:B1,28:122,32:_1,42:w1,58:V1,73:L1,77:[1,124],78:[1,125],80:135,81:v1,82:I1,83:R1,84:N1,85:P1,86:O1,87:M1,88:123,102:G1,106:U1,108:j1,111:W1,112:K1,113:Y1},e(u1,d,{5:148}),e(C,[2,37]),e(C,[2,38]),e(Qe,[2,45],{42:z1}),{42:b,45:150,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{99:[1,151],100:152,102:[1,153]},{42:b,45:154,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{42:b,45:155,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},e(D,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(D,[2,108],{117:160,10:[1,159],14:Ce,42:Fe,58:Se,86:De,102:Te,103:Be,106:_e,108:we,111:Ve,112:Le,113:ve}),e(D,[2,110],{10:[1,161]}),e(z,[2,176]),e(z,[2,163]),e(z,[2,164]),e(z,[2,165]),e(z,[2,166]),e(z,[2,167]),e(z,[2,168]),e(z,[2,169]),e(z,[2,170]),e(z,[2,171]),e(z,[2,172]),e(z,[2,173]),{42:b,45:162,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{30:163,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:171,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:173,48:[1,172],65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:174,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:175,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:176,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{106:[1,177]},{30:178,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:179,63:[1,180],65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:181,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:182,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{30:183,65:k,77:M,78:G,79:164,113:A,114:m,115:x},e(Y,[2,175]),e(o,[2,20]),e(y1,[2,25]),e(Qe,[2,43],{18:184,10:Oe}),e(Me,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{75:[1,188],76:189,113:C1,116:F1},e(Ie,[2,73]),e(Ie,[2,75]),e(Ie,[2,76]),e(Ie,[2,161]),e(Ie,[2,162]),{8:ee,9:te,10:S1,11:se,12:D1,14:T1,21:191,27:B1,29:[1,190],32:_1,42:w1,58:V1,73:L1,80:135,81:v1,82:I1,83:R1,84:N1,85:P1,86:O1,87:M1,88:192,102:G1,106:U1,108:j1,111:W1,112:K1,113:Y1},e(F,[2,94]),e(F,[2,96]),e(F,[2,97]),e(F,[2,150]),e(F,[2,151]),e(F,[2,152]),e(F,[2,153]),e(F,[2,154]),e(F,[2,155]),e(F,[2,156]),e(F,[2,157]),e(F,[2,158]),e(F,[2,159]),e(F,[2,160]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),{6:11,7:12,8:p,9:E,10:l,11:f,20:17,22:18,23:19,24:20,25:21,26:22,27:O,32:[1,193],33:24,34:J,36:W,38:K,40:28,41:38,42:b,43:39,45:40,58:y,81:Ae,82:me,83:xe,84:Ke,85:Ye,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:ze,119:Xe,120:qe,121:He},{10:Oe,18:194},{10:[1,195],42:b,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:109,111:I,112:R,113:N},{10:[1,196]},{10:[1,197],103:[1,198]},e(X1,[2,121]),{10:[1,199],42:b,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:109,111:I,112:R,113:N},{10:[1,200],42:b,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:109,111:I,112:R,113:N},{77:[1,201]},e(D,[2,102],{10:[1,202]}),e(D,[2,104],{10:[1,203]}),{77:[1,204]},e(z,[2,177]),{77:[1,205],95:[1,206]},e(Ze,[2,50],{110:109,42:b,58:y,86:B,99:_,102:w,103:V,106:L,108:v,111:I,112:R,113:N}),{31:[1,207],65:k,79:208,113:A,114:m,115:x},e(fe,[2,79]),e(fe,[2,81]),e(fe,[2,82]),e(fe,[2,146]),e(fe,[2,147]),e(fe,[2,148]),e(fe,[2,149]),{47:[1,209],65:k,79:208,113:A,114:m,115:x},{30:210,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{49:[1,211],65:k,79:208,113:A,114:m,115:x},{51:[1,212],65:k,79:208,113:A,114:m,115:x},{53:[1,213],65:k,79:208,113:A,114:m,115:x},{55:[1,214],65:k,79:208,113:A,114:m,115:x},{58:[1,215]},{62:[1,216],65:k,79:208,113:A,114:m,115:x},{64:[1,217],65:k,79:208,113:A,114:m,115:x},{30:218,65:k,77:M,78:G,79:164,113:A,114:m,115:x},{31:[1,219],65:k,79:208,113:A,114:m,115:x},{65:k,67:[1,220],69:[1,221],79:208,113:A,114:m,115:x},{65:k,67:[1,223],69:[1,222],79:208,113:A,114:m,115:x},e(Qe,[2,44],{42:z1}),e(Me,[2,70]),e(Me,[2,69]),{60:[1,224],65:k,79:208,113:A,114:m,115:x},e(Me,[2,72]),e(Ie,[2,74]),{30:225,65:k,77:M,78:G,79:164,113:A,114:m,115:x},e(u1,d,{5:226}),e(F,[2,95]),e(C,[2,35]),{41:227,42:b,43:39,45:40,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{10:re,58:ne,81:ie,89:228,102:ue,104:229,105:230,106:ae,107:oe,108:le,109:ce},{10:re,58:ne,81:ie,89:239,101:[1,240],102:ue,104:229,105:230,106:ae,107:oe,108:le,109:ce},{10:re,58:ne,81:ie,89:241,101:[1,242],102:ue,104:229,105:230,106:ae,107:oe,108:le,109:ce},{102:[1,243]},{10:re,58:ne,81:ie,89:244,102:ue,104:229,105:230,106:ae,107:oe,108:le,109:ce},{42:b,45:245,58:y,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N},e(D,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(D,[2,109]),e(D,[2,111],{10:[1,249]}),e(D,[2,112]),e(P,[2,51]),e(fe,[2,80]),e(P,[2,52]),{49:[1,250],65:k,79:208,113:A,114:m,115:x},e(P,[2,59]),e(P,[2,54]),e(P,[2,55]),e(P,[2,56]),{106:[1,251]},e(P,[2,58]),e(P,[2,60]),{64:[1,252],65:k,79:208,113:A,114:m,115:x},e(P,[2,62]),e(P,[2,63]),e(P,[2,65]),e(P,[2,64]),e(P,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:k,79:208,113:A,114:m,115:x},{6:11,7:12,8:p,9:E,10:l,11:f,20:17,22:18,23:19,24:20,25:21,26:22,27:O,32:[1,254],33:24,34:J,36:W,38:K,40:28,41:38,42:b,43:39,45:40,58:y,81:Ae,82:me,83:xe,84:Ke,85:Ye,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:ze,119:Xe,120:qe,121:He},e(Ze,[2,48]),e(D,[2,114],{103:Re}),e(q1,[2,123],{105:256,10:re,58:ne,81:ie,102:ue,106:ae,107:oe,108:le,109:ce}),e($,[2,125]),e($,[2,127]),e($,[2,128]),e($,[2,129]),e($,[2,130]),e($,[2,131]),e($,[2,132]),e($,[2,133]),e($,[2,134]),e(D,[2,115],{103:Re}),{10:[1,257]},e(D,[2,116],{103:Re}),{10:[1,258]},e(X1,[2,122]),e(D,[2,98],{103:Re}),e(D,[2,99],{110:109,42:b,58:y,86:B,99:_,102:w,103:V,106:L,108:v,111:I,112:R,113:N}),e(D,[2,103]),e(D,[2,105],{10:[1,259]}),e(D,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:ee,9:te,11:se,21:264},e(C,[2,34]),{10:re,58:ne,81:ie,102:ue,104:265,105:230,106:ae,107:oe,108:le,109:ce},e($,[2,126]),{14:Ce,42:Fe,58:Se,86:De,98:266,102:Te,103:Be,106:_e,108:we,111:Ve,112:Le,113:ve,117:84},{14:Ce,42:Fe,58:Se,86:De,98:267,102:Te,103:Be,106:_e,108:we,111:Ve,112:Le,113:ve,117:84},{95:[1,268]},e(D,[2,113]),e(P,[2,53]),{30:269,65:k,77:M,78:G,79:164,113:A,114:m,115:x},e(P,[2,61]),e(u1,d,{5:270}),e(q1,[2,124],{105:256,10:re,58:ne,81:ie,102:ue,106:ae,107:oe,108:le,109:ce}),e(D,[2,119],{117:160,10:[1,271],14:Ce,42:Fe,58:Se,86:De,102:Te,103:Be,106:_e,108:we,111:Ve,112:Le,113:ve}),e(D,[2,120],{117:160,10:[1,272],14:Ce,42:Fe,58:Se,86:De,102:Te,103:Be,106:_e,108:we,111:Ve,112:Le,113:ve}),e(D,[2,107]),{31:[1,273],65:k,79:208,113:A,114:m,115:x},{6:11,7:12,8:p,9:E,10:l,11:f,20:17,22:18,23:19,24:20,25:21,26:22,27:O,32:[1,274],33:24,34:J,36:W,38:K,40:28,41:38,42:b,43:39,45:40,58:y,81:Ae,82:me,83:xe,84:Ke,85:Ye,86:B,99:_,102:w,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:ze,119:Xe,120:qe,121:He},{10:re,58:ne,81:ie,89:275,102:ue,104:229,105:230,106:ae,107:oe,108:le,109:ce},{10:re,58:ne,81:ie,89:276,102:ue,104:229,105:230,106:ae,107:oe,108:le,109:ce},e(P,[2,57]),e(C,[2,33]),e(D,[2,117],{103:Re}),e(D,[2,118],{103:Re})],defaultActions:{},parseError:u(function(c,h){if(h.recoverable)this.trace(c);else{var g=new Error(c);throw g.hash=h,g}},"parseError"),parse:u(function(c){var h=this,g=[0],a=[],S=[null],t=[],Ge=this.table,s="",q=0,H1=0,Q1=0,_t=2,Z1=1,wt=t.slice.call(arguments,1),T=Object.create(this.lexer),Ee={yy:{}};for(var l1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,l1)&&(Ee.yy[l1]=this.yy[l1]);T.setInput(c,Ee.yy),Ee.yy.lexer=T,Ee.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var c1=T.yylloc;t.push(c1);var Vt=T.options&&T.options.ranges;typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gs(X){g.length=g.length-2*X,S.length=S.length-X,t.length=t.length-X}u(gs,"popStack");function Lt(){var X;return X=a.pop()||T.lex()||Z1,typeof X!="number"&&(X instanceof Array&&(a=X,X=a.pop()),X=h.symbols_[X]||X),X}u(Lt,"lex");for(var U,h1,ye,H,bs,d1,Ne={},Je,he,J1,$e;;){if(ye=g[g.length-1],this.defaultActions[ye]?H=this.defaultActions[ye]:((U===null||typeof U>"u")&&(U=Lt()),H=Ge[ye]&&Ge[ye][U]),typeof H>"u"||!H.length||!H[0]){var p1="";$e=[];for(Je in Ge[ye])this.terminals_[Je]&&Je>_t&&$e.push("'"+this.terminals_[Je]+"'");T.showPosition?p1="Parse error on line "+(q+1)+`:
`+T.showPosition()+`
Expecting `+$e.join(", ")+", got '"+(this.terminals_[U]||U)+"'":p1="Parse error on line "+(q+1)+": Unexpected "+(U==Z1?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(p1,{text:T.match,token:this.terminals_[U]||U,line:T.yylineno,loc:c1,expected:$e})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+U);switch(H[0]){case 1:g.push(U),S.push(T.yytext),t.push(T.yylloc),g.push(H[1]),U=null,h1?(U=h1,h1=null):(H1=T.yyleng,s=T.yytext,q=T.yylineno,c1=T.yylloc,Q1>0&&Q1--);break;case 2:if(he=this.productions_[H[1]][1],Ne.$=S[S.length-he],Ne._$={first_line:t[t.length-(he||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(he||1)].first_column,last_column:t[t.length-1].last_column},Vt&&(Ne._$.range=[t[t.length-(he||1)].range[0],t[t.length-1].range[1]]),d1=this.performAction.apply(Ne,[s,H1,q,Ee.yy,H[1],S,t].concat(wt)),typeof d1<"u")return d1;he&&(g=g.slice(0,-1*he*2),S=S.slice(0,-1*he),t=t.slice(0,-1*he)),g.push(this.productions_[H[1]][0]),S.push(Ne.$),t.push(Ne._$),J1=Ge[g[g.length-2]][g[g.length-1]],g.push(J1);break;case 3:return!0}}return!0},"parse")},Bt=function(){var ge={EOF:1,parseError:u(function(h,g){if(this.yy.parser)this.yy.parser.parseError(h,g);else throw new Error(h)},"parseError"),setInput:u(function(c,h){return this.yy=h||this.yy||{},this._input=c,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:u(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:u(function(c){var h=c.length,g=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===a.length?this.yylloc.first_column:0)+a[a.length-g.length].length-g[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(c){this.unput(this.match.slice(c))},"less"),pastInput:u(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
`+h+"^"},"showPosition"),test_match:u(function(c,h){var g,a,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),a=c[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],g=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var t in S)this[t]=S[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,g,a;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),t=0;th[0].length)){if(h=g,a=t,this.options.backtrack_lexer){if(c=this.test_match(g,S[t]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,S[a]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var h=this.next();return h||this.lex()},"lex"),begin:u(function(h){this.conditionStack.push(h)},"begin"),popState:u(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(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:u(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:u(function(h){this.begin(h)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:u(function(h,g,a,S){var t=S;switch(a){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return h.lex.firstGraph()&&this.begin("dir"),12;break;case 30:return h.lex.firstGraph()&&this.begin("dir"),12;break;case 31:return h.lex.firstGraph()&&this.begin("dir"),12;break;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;break;case 39:return this.popState(),14;break;case 40:return this.popState(),14;break;case 41:return this.popState(),14;break;case 42:return this.popState(),14;break;case 43:return this.popState(),14;break;case 44:return this.popState(),14;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;break;case 62:return this.pushState("edgeText"),73;break;case 63:return 116;case 64:return this.popState(),75;break;case 65:return this.pushState("thickEdgeText"),73;break;case 66:return 116;case 67:return this.popState(),75;break;case 68:return this.pushState("dottedEdgeText"),73;break;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;break;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;break;case 74:return this.popState(),53;break;case 75:return this.pushState("text"),52;break;case 76:return this.popState(),55;break;case 77:return this.pushState("text"),54;break;case 78:return 56;case 79:return this.pushState("text"),65;break;case 80:return this.popState(),62;break;case 81:return this.pushState("text"),61;break;case 82:return this.popState(),47;break;case 83:return this.pushState("text"),46;break;case 84:return this.popState(),67;break;case 85:return this.popState(),69;break;case 86:return 114;case 87:return this.pushState("trapText"),66;break;case 88:return this.pushState("trapText"),68;break;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;break;case 101:return this.pushState("text"),60;break;case 102:return this.popState(),49;break;case 103:return this.pushState("text"),48;break;case 104:return this.popState(),31;break;case 105:return this.pushState("text"),29;break;case 106:return this.popState(),64;break;case 107:return this.pushState("text"),63;break;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112: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]*)/,/^(?:[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:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return ge}();a1.lexer=Bt;function o1(){this.yy={}}return u(o1,"Parser"),o1.prototype=a1,a1.Parser=o1,new o1}();E1.parser=E1;var Dt=E1;var ps=u((e,r)=>{let n=et,i=n(e,"r"),o=n(e,"g"),d=n(e,"b");return $1(i,o,d,r)},"fade"),fs=u(e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span {
color: ${e.titleColor};
}
.cluster-label span p {
background-color: transparent;
}
.label text,span {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.rough-node .label text , .node .label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
p {
background-color: ${e.edgeLabelBackground};
}
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${ps(e.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,"getStyles"),Tt=fs;var Ys={parser:Dt,db:i1,renderer:St,styles:Tt,init:u(e=>{e.flowchart||(e.flowchart={}),e.layout&&f1({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,f1({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),i1.clear(),i1.setGen("gen-2")},"init")};export{Ys as diagram};