@tobisk/codesafari 1.0.1 → 1.0.3
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/content/frontmatter.js +9 -1
- package/dist/content/frontmatter.js.map +1 -1
- package/dist/server/devServer.d.ts +1 -0
- package/dist/server/devServer.js +28 -14
- package/dist/server/devServer.js.map +1 -1
- package/package.json +12 -9
- package/viewer-dist/assets/abnfDiagram-XWFEHMT6-C79KnTw8.js +1 -0
- package/viewer-dist/assets/arc-l-ZAXPJO.js +1 -0
- package/viewer-dist/assets/architecture-WOLXFQ4H-BgLy9Yqp.js +1 -0
- package/viewer-dist/assets/architectureDiagram-CSQXQB3N-TJ9cXrHq.js +36 -0
- package/viewer-dist/assets/blockDiagram-BEDRHYPZ-By3kvess.js +140 -0
- package/viewer-dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/viewer-dist/assets/c4Diagram-M2UUVUY5-CEeFbn5F.js +38 -0
- package/viewer-dist/assets/chunk-2Q5K7J3B-DKYFIUDS.js +1 -0
- package/viewer-dist/assets/chunk-3BJB4PZV-D3hUDXSk.js +1 -0
- package/viewer-dist/assets/chunk-3GCGMST5-C9FeQipv.js +1 -0
- package/viewer-dist/assets/{chunk-5VM5RSS4-Zc4pbF2-.js → chunk-5VM5RSS4-CdmEoR_J.js} +2 -2
- package/viewer-dist/assets/chunk-7U7NFRK5-CTLlozLY.js +88 -0
- package/viewer-dist/assets/chunk-CNRTWJTD-Ccr1NK1L.js +1 -0
- package/viewer-dist/assets/chunk-D5HYT7QG-Bj30JPRv.js +1 -0
- package/viewer-dist/assets/chunk-EBZ3SEQC-Sk8u_9ep.js +2 -0
- package/viewer-dist/assets/chunk-JWPE2WC7-COMTgl4A.js +1 -0
- package/viewer-dist/assets/chunk-KTR4FSNJ-WfEV-uOS.js +1 -0
- package/viewer-dist/assets/chunk-VN5WK6U6-C6BzLJ3g.js +213 -0
- package/viewer-dist/assets/chunk-XXDRQBXY-B_jRWCc3.js +1 -0
- package/viewer-dist/assets/classDiagram-v2-IZLYA2OM-CMUybpF2.js +217 -0
- package/viewer-dist/assets/cose-bilkent-JH36ORCC-BPaMzy85.js +1 -0
- package/viewer-dist/assets/cynefin-EF2NZ3EQ-DWzUaEWi.js +1 -0
- package/viewer-dist/assets/cynefinDiagram-NJNITYFG-C8QaCQXp.js +62 -0
- package/viewer-dist/assets/cytoscape.esm-DTfjcSDB.js +321 -0
- package/viewer-dist/assets/dagre-KIHZ2IZ3-BOPsr9LQ.js +4 -0
- package/viewer-dist/assets/defaultLocale-DeDIAtVl.js +1 -0
- package/viewer-dist/assets/diagram-7YQZDPLS-mYVjZ8Lx.js +41 -0
- package/viewer-dist/assets/diagram-QBROCOUO-DvI2mJSr.js +200 -0
- package/viewer-dist/assets/diagram-RJJCUUZO-CUPJGu2H.js +30 -0
- package/viewer-dist/assets/diagram-WERXNKYE-LcjJC6e6.js +24 -0
- package/viewer-dist/assets/diagram-YHHI257C-CcytRL3C.js +3 -0
- package/viewer-dist/assets/diagram-YR4HJLHV-DSNAvpUg.js +24 -0
- package/viewer-dist/assets/ebnfDiagram-N527522P-DCRtXms7.js +1 -0
- package/viewer-dist/assets/elk-O5DQBFGD-DMI6Zpvy.js +27 -0
- package/viewer-dist/assets/erDiagram-GT5GOJPG-D1F-hqWB.js +99 -0
- package/viewer-dist/assets/eventmodeling-K75KTNOO-4qs67wAF.js +1 -0
- package/viewer-dist/assets/flowDiagram-JAYNFW54-7bC7dhfH.js +1 -0
- package/viewer-dist/assets/ganttDiagram-3PRQTZWP-c3vw-KzJ.js +292 -0
- package/viewer-dist/assets/gitGraph-VSP46ZUC-CFMJazMp.js +1 -0
- package/viewer-dist/assets/gitGraphDiagram-VXDFKS5L-CXwZYVtU.js +106 -0
- package/viewer-dist/assets/graphlib-7nQ5Ng6P.js +1 -0
- package/viewer-dist/assets/grid-E2QIVN74-ryRc6Wgk.js +1 -0
- package/viewer-dist/assets/index-BLTUQmtP.css +1 -0
- package/viewer-dist/assets/index-LgGsGSUh.js +398 -0
- package/viewer-dist/assets/info-OHQRW6UA-rYwbZW6Y.js +1 -0
- package/viewer-dist/assets/infoDiagram-ATMJ4U3S-qX5Cid2q.js +2 -0
- package/viewer-dist/assets/init-C-OQMol4.js +1 -0
- package/viewer-dist/assets/ishikawaDiagram-S3EKX5GW-CSUJfCgm.js +70 -0
- package/viewer-dist/assets/journeyDiagram-POQNLL5X--_T-gdww.js +139 -0
- package/viewer-dist/assets/kanban-definition-BH5XI6FM-BsWjihcO.js +89 -0
- package/viewer-dist/assets/katex-CePi8B18.js +257 -0
- package/viewer-dist/assets/linear-BjnGGdIE.js +1 -0
- package/viewer-dist/assets/mermaid-parser.core-D9IKLdIu.js +141 -0
- package/viewer-dist/assets/mindmap-definition-WVAN44T4-vxwY3Xnu.js +98 -0
- package/viewer-dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/viewer-dist/assets/packet-JDAUHWVQ-CEegYGRn.js +1 -0
- package/viewer-dist/assets/pegDiagram-D4NLKWP3-8tSu4Jqx.js +1 -0
- package/viewer-dist/assets/pie-XZMESJXO-exj595wL.js +1 -0
- package/viewer-dist/assets/pieDiagram-36ENHN4W-CNY-FqqW.js +39 -0
- package/viewer-dist/assets/quadrantDiagram-ZQUDMS73-CqGaRuIP.js +7 -0
- package/viewer-dist/assets/radar-ABXABTNO-CmxHfKAF.js +1 -0
- package/viewer-dist/assets/railroad-I3PHUGI6-DXY0-ZL-.js +1 -0
- package/viewer-dist/assets/railroad-abnf-LNEFI6M7-v-M60bY5.js +1 -0
- package/viewer-dist/assets/railroad-ebnf-DWYD2UWJ-C7Ubri5u.js +1 -0
- package/viewer-dist/assets/railroad-peg-JR7BVNR7-DpAM4Usk.js +1 -0
- package/viewer-dist/assets/railroadDiagram-JIZHGYPL-D6LbsW-D.js +1 -0
- package/viewer-dist/assets/render-VIF2ZAQL-B9RjOjNU.js +2 -0
- package/viewer-dist/assets/requirementDiagram-AXW2TVFA-FxNR3nZg.js +84 -0
- package/viewer-dist/assets/sankeyDiagram-FBCJTAIF-pSJfgdmf.js +40 -0
- package/viewer-dist/assets/sequenceDiagram-3LA2ROMG-R5T9FB-U.js +169 -0
- package/viewer-dist/assets/sizeCapture-2Q2CQKSF-BuZ6aVhF.js +1 -0
- package/viewer-dist/assets/stateDiagram-v2-XZFR63ZJ-y2ApNDME.js +291 -0
- package/viewer-dist/assets/swimlanes-YQL5WMAO-Dqbpsu6u.js +1 -0
- package/viewer-dist/assets/swimlanesDiagram-BA3ZWDFA-iEZapiU_.js +8 -0
- package/viewer-dist/assets/timeline-definition-7Z437IG3-DAxdChcP.js +120 -0
- package/viewer-dist/assets/treeView-D4JQ5SDB-DE5B8wLE.js +1 -0
- package/viewer-dist/assets/treemap-SAJKECNS-fnWCJ5Gb.js +1 -0
- package/viewer-dist/assets/usecaseDiagram-RDK6N6HP-bXXWy_jN.js +328 -0
- package/viewer-dist/assets/vennDiagram-SHRQU5PJ-CjOBjqdM.js +34 -0
- package/viewer-dist/assets/wardley-7MLQ67FV-COzPZ67W.js +1 -0
- package/viewer-dist/assets/wardleyDiagram-F3OXNVQS-BjHoJgg7.js +78 -0
- package/viewer-dist/assets/xychartDiagram-GDYJKCDI-CwJZcH_5.js +7 -0
- package/viewer-dist/index.html +2 -2
- package/viewer-dist/assets/abnfDiagram-VRR7QNED-CUtCPUcK.js +0 -1
- package/viewer-dist/assets/arc-DT1qPdzO.js +0 -1
- package/viewer-dist/assets/architectureDiagram-ZJ3FMSHR-Clz4_k6c.js +0 -36
- package/viewer-dist/assets/blockDiagram-677ZJIJ3-BprAT8ww.js +0 -132
- package/viewer-dist/assets/c4Diagram-LMCZKHZV-K4EFS-bi.js +0 -10
- package/viewer-dist/assets/channel-B6VWJVDA.js +0 -1
- package/viewer-dist/assets/chunk-2Q5K7J3B-wt4j9iAJ.js +0 -1
- package/viewer-dist/assets/chunk-32BRIVSS-DZndHhpA.js +0 -1
- package/viewer-dist/assets/chunk-EX3LRPZG-D150rsiB.js +0 -231
- package/viewer-dist/assets/chunk-JWPE2WC7-CnWGcCgD.js +0 -1
- package/viewer-dist/assets/chunk-MOJQB5TN-CNNkBqHI.js +0 -88
- package/viewer-dist/assets/chunk-RYQCIY6F-BohP8cpF.js +0 -1
- package/viewer-dist/assets/chunk-V7JOEXUC-O8PMb1tP.js +0 -206
- package/viewer-dist/assets/chunk-VR4S4FIN-AjltP-MY.js +0 -1
- package/viewer-dist/assets/chunk-XXDRQBXY-BOvzmjQv.js +0 -1
- package/viewer-dist/assets/classDiagram-OUVF2IWQ-7lFY7hbW.js +0 -1
- package/viewer-dist/assets/classDiagram-v2-EOCWNBFH-7lFY7hbW.js +0 -1
- package/viewer-dist/assets/cose-bilkent-JH36ORCC-BI5sbJIe.js +0 -1
- package/viewer-dist/assets/cynefin-VYW2F7L2-DsqQ6c-8.js +0 -178
- package/viewer-dist/assets/cynefinDiagram-TSTJHNR4-aSrdlJhs.js +0 -62
- package/viewer-dist/assets/cytoscape.esm-CUqq0XTU.js +0 -331
- package/viewer-dist/assets/dagre-VKFMJZFB-C1JJb4il.js +0 -4
- package/viewer-dist/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/viewer-dist/assets/diagram-FQU43EPY-bqnjeq9L.js +0 -3
- package/viewer-dist/assets/diagram-G47NLZAW-CI_3tBI7.js +0 -24
- package/viewer-dist/assets/diagram-NH7WQ7WH--Cuuj_l0.js +0 -24
- package/viewer-dist/assets/diagram-OA4YK3LP-Ber9CxgW.js +0 -30
- package/viewer-dist/assets/diagram-WEI45ONY-DA4LRa2G.js +0 -41
- package/viewer-dist/assets/ebnfDiagram-CCIWWBDH-BWw30PPO.js +0 -1
- package/viewer-dist/assets/erDiagram-Q63AITRT-CvTYXHZZ.js +0 -85
- package/viewer-dist/assets/flowDiagram-23GEKE2U-Jzg6zox9.js +0 -156
- package/viewer-dist/assets/ganttDiagram-NO4QXBWP-DXxub_Mn.js +0 -292
- package/viewer-dist/assets/gitGraphDiagram-IHSO6WYX-DplAVHS7.js +0 -106
- package/viewer-dist/assets/graph-C2PyVmSI.js +0 -1
- package/viewer-dist/assets/index-DVLkX2-Z.css +0 -1
- package/viewer-dist/assets/index-MwqpmjOm.js +0 -430
- package/viewer-dist/assets/infoDiagram-FWYZ7A6U-Df_ey2Yt.js +0 -2
- package/viewer-dist/assets/init-Gi6I4Gst.js +0 -1
- package/viewer-dist/assets/ishikawaDiagram-FXEZZL3T-C68vhFVb.js +0 -70
- package/viewer-dist/assets/journeyDiagram-5HDEW3XC-CoDmHoV3.js +0 -139
- package/viewer-dist/assets/kanban-definition-HUTT4EX6-B6r0jwQw.js +0 -89
- package/viewer-dist/assets/katex-C5jXJg4s.js +0 -257
- package/viewer-dist/assets/layout-HEHzrzvT.js +0 -1
- package/viewer-dist/assets/linear-DIoMe8rR.js +0 -1
- package/viewer-dist/assets/map-BQHxRNoK.js +0 -1
- package/viewer-dist/assets/mindmap-definition-LN4V7U3C-Bnswylok.js +0 -96
- package/viewer-dist/assets/ordinal-Cboi1Yqb.js +0 -1
- package/viewer-dist/assets/pegDiagram-2B236MQR-DIN1FTnX.js +0 -1
- package/viewer-dist/assets/pieDiagram-ENE6RG2P-CprqMtkw.js +0 -39
- package/viewer-dist/assets/quadrantDiagram-ABIIQ3AL-BDDULhdJ.js +0 -7
- package/viewer-dist/assets/railroadDiagram-RFXS5EU6-DYchCzqc.js +0 -1
- package/viewer-dist/assets/requirementDiagram-TGXJPOKE-C5wnr9uO.js +0 -84
- package/viewer-dist/assets/sankeyDiagram-HTMAVEWB-DkwntNXb.js +0 -40
- package/viewer-dist/assets/sequenceDiagram-DBY2YBRQ-CjDmNFC_.js +0 -162
- package/viewer-dist/assets/sizeCapture-X5ZJPWSS-DPuxDmrs.js +0 -1
- package/viewer-dist/assets/stateDiagram-2N3HPSRC-BYVZZo-M.js +0 -1
- package/viewer-dist/assets/stateDiagram-v2-6OUMAXLB-BRXNY8_F.js +0 -1
- package/viewer-dist/assets/swimlanes-5IMT3BWC-GXmz8FzP.js +0 -2
- package/viewer-dist/assets/swimlanesDiagram-G3AALYLV-Gfb32vBV.js +0 -8
- package/viewer-dist/assets/timeline-definition-FHXFAJF6-CQLwZsEX.js +0 -120
- package/viewer-dist/assets/vennDiagram-L72KCM5P-DZt4sGqU.js +0 -34
- package/viewer-dist/assets/wardleyDiagram-EHGQE667-7OXN_C-l.js +0 -78
- package/viewer-dist/assets/xychartDiagram-FW5EYKEG-rI5CAM0A.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{tr as e}from"./index-LgGsGSUh.js";function t(t){let n=new WeakMap;function r(e){if(typeof e!=`object`||!e)return e;let t=n.get(e);if(t!==void 0)return t;if(Array.isArray(e)){let t=Array(e.length);return n.set(e,t),e.forEach((e,n)=>{t[n]=r(e)}),t}let i={};n.set(e,i);for(let t of Object.keys(e))t!==`__proto__`&&t!==`constructor`&&t!==`prototype`&&(i[t]=r(e[t]));return i}return e(r,`sanitize`),r(t)}e(t,`stripPrototypeKeys`);export{t};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import{t as e}from"./chunk-KTR4FSNJ-WfEV-uOS.js";import{t}from"./chunk-5VM5RSS4-CdmEoR_J.js";import{t as n}from"./chunk-3BJB4PZV-D3hUDXSk.js";import{t as r}from"./chunk-XXDRQBXY-B_jRWCc3.js";import{t as i}from"./chunk-CNRTWJTD-Ccr1NK1L.js";import{Bn as a,Cn as o,Dt as s,En as c,Et as l,Ft as u,Ln as d,Pt as f,Qn as p,Rn as m,Sn as h,Tn as g,Tt as _,U as ee,Wn as te,Xn as ne,Zn as v,bn as y,f as b,gn as x,k as S,kt as C,n as w,nr as T,pn as E,q as D,s as re,t as ie,tr as O,vn as ae,zn as oe}from"./index-LgGsGSUh.js";import{t as se}from"./chunk-D5HYT7QG-Bj30JPRv.js";var k=`flowchart-`,A=[`row`,`column`,`horizontalAlign`,`verticalAlign`],j=new Set([`shape`,`label`,`icon`,`form`,`pos`,`img`,`w`,`h`,`constraint`,`priority`,`assigned`,`ticket`,`labelType`,`view`,...A]);function M(e,t=!1){if(!e)return;let n=e,r={};for(let e of A)Object.hasOwn(n,e)&&(r[e]=n[e]);return t&&Object.hasOwn(n,`algorithm`)&&(r.algorithm=n.algorithm),Object.keys(r).length>0?r:void 0}O(M,`pickFlowchartLayoutMetadata`);var N=[`laneRole`,`laneIndex`,`drawnExtent`];function ce(e){if(!e||typeof e!=`object`)return e;let t={...e};for(let e of N)Reflect.deleteProperty(t,e);return t}O(ce,`withoutInternalKeys`);var le=class{constructor(){this.vertexCounter=0,this.config=g(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=m,this.setAccDescription=d,this.setDiagramTitle=a,this.getAccTitle=o,this.getAccDescription=h,this.getDiagramTitle=c,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`)}static{O(this,`FlowDB`)}sanitizeText(e){return ae.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(t,n,r,i,a,o,s={},c){if(!t||t.trim().length===0)return;let l;if(c!==void 0){let t;t=c.includes(`
|
|
2
|
+
`)?c+`
|
|
3
|
+
`:`{
|
|
4
|
+
`+c+`
|
|
5
|
+
}`,l=ce(e(u(t,{schema:f})))}let d=this.subGraphLookup.get(t);if(d&&l){Object.keys(l).length>0&&(d.metadata={...d.metadata,...l});return}let m=this.edges.find(e=>e.id===t);if(m){let e=l;e?.animate!==void 0&&(m.animate=e.animate),e?.animation!==void 0&&(m.animation=e.animation),e?.curve!==void 0&&(m.interpolate=e.curve),e?.step!==void 0&&(b(e)?m.step=e.step:p.warn(`Ignoring step on edge ${t}: expected a positive integer`,e.step));return}let h,_=this.vertices.get(t);if(_===void 0&&(n===void 0&&r===void 0&&i!=null&&p.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),_={id:t,labelType:`text`,domId:k+t+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,_)),this.vertexCounter++,n===void 0?_.text===void 0&&(_.text=t):(this.config=g(),h=this.sanitizeText(n.text.trim()),_.labelType=n.type,h.startsWith(`"`)&&h.endsWith(`"`)&&(h=h.substring(1,h.length-1)),_.text=h),r!==void 0&&(_.type=r),i?.forEach(e=>{_.styles.push(e)}),a?.forEach(e=>{_.classes.push(e)}),o!==void 0&&(_.dir=o),_.props===void 0?_.props=s:s!==void 0&&Object.assign(_.props,s),l!==void 0){if(_.metadata={..._.metadata,...l},l.shape){if(l.shape!==l.shape.toLowerCase()||l.shape.includes(`_`))throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);if(!S(l.shape))throw Error(`No such shape: ${l.shape}.`);_.type=l?.shape}l?.label&&(_.text=l?.label,_.labelType=this.sanitizeNodeLabelType(l?.labelType)),l?.icon&&(_.icon=l?.icon,!l.label?.trim()&&_.text===t&&(_.text=``)),l?.form&&(_.form=l?.form),l?.pos&&(_.pos=l?.pos),l?.img&&(_.img=l?.img,!l.label?.trim()&&_.text===t&&(_.text=``)),l?.constraint&&(_.constraint=l.constraint),l.w&&(_.assetWidth=Number(l.w)),l.h&&(_.assetHeight=Number(l.h))}}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};p.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?ee(i.start,i.end,{counter:0,prefix:`L`}):ee(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))p.info(`Pushing edge...`),this.edges.push(i);else throw 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.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;p.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction=`RL`),/.*\^/.exec(this.direction)&&(this.direction=`BT`),/.*>/.exec(this.direction)&&(this.direction=`LR`),/.*v/.exec(this.direction)&&(this.direction=`TB`),this.direction===`TD`&&(this.direction=`TB`)}setClass(e,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(g().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),r[e]=t}}r.length===0&&r.push(e);let i=this.vertices.get(e);i&&(i.haveCallback=!0,this.funs.push(()=>{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{D.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=D.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=se();E(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=E(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(T.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),E(e.currentTarget).classed(`hover`,!1)})}clear(e=`gen-2`){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId=``,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=g(),x()}setGen(e){this.version=e||`gen-2`}defaultStyle(){return`fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;`}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(r=void 0);let a=O(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir,c=g().flowchart??{};if(s??=c.inheritDir?this.getDirection()??g().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;e<o.length;e++)o[e]=this.lookUpDomId(o[e]);r??=`subGraph`+this.subCount,i||=``,i=this.sanitizeText(i),this.subCount+=1;let l={id:r,nodes:o,title:i.trim(),classes:[],dir:s,labelType:this.sanitizeNodeLabelType(n?.type)};p.info(`Adding`,l.id,l.nodes,l.dir);let u=this.makeUniq(l,this.subGraphs).nodes;this.recordDroppedMembers(l,u),l.nodes=u.filter(e=>e!==r);let d=this.subGraphs.find(e=>e.id===r);return d?d.nodes.push(...l.nodes):this.subGraphs.push(l),this.subGraphLookup.set(r,d??l),r}recordDroppedMembers(e,t){let n=new Set(t);for(let t of e.nodes){if(n.has(t)||t===e.id)continue;let r=this.subGraphs.find(e=>e.nodes.includes(t));r&&r.id!==e.id&&!this.isNestedIn(r.id,e)&&this.droppedSubGraphMembers.push({node:t,keptBy:r.id,droppedFrom:e.id})}}isNestedIn(e,t){let n=new Set,r=e;for(;r!==void 0&&!n.has(r);){if(t.nodes.includes(r))return!0;n.add(r);let e=r;r=this.subGraphs.find(t=>t.nodes.includes(e))?.id}return!1}getPosForId(e){for(let[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){let n=this.subGraphs[t].nodes;if(this.secCount+=1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r<n.length;){let t=this.getPosForId(n[r]);if(t>=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2(`none`,this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1)}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i<n;++i)t[i]===e&&++r;return r}destructEndLink(e){let t=e.trim(),n=t.slice(0,-1),r=`arrow_open`;switch(t.slice(-1)){case`x`:r=`arrow_cross`,t.startsWith(`x`)&&(r=`double_`+r,n=n.slice(1));break;case`>`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1))}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),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(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return`imageSquare`;if(e.icon)return e.form===`circle`?`iconCircle`:e.form===`square`?`iconSquare`:e.form===`rounded`?`iconRounded`:`icon`;switch(e.type){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`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`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,c=this.findNode(t,e.id);if(c)c.cssStyles=e.styles,c.cssCompiledStyles=this.getCompiledStyles(e.classes),c.cssClasses=e.classes.join(` `);else{let n={id:e.id,label:e.text,labelType:e.labelType,labelStyle:``,parentId:o,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles([`default`,`node`,...e.classes]),cssClasses:`default `+e.classes.join(` `),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint,metadata:M(e.metadata)};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:i.flowchart?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=g(),t=[],r=[],i=this.getSubGraphs(),a=new Map,o=new Map,s=new Map;for(let e=i.length-1;e>=0;e--){let t=i[e];for(let e of t.nodes)this.subGraphLookup.has(e)&&!n(e,t.id,e=>s.get(e))&&s.set(e,t.id)}let c=new Map,l=new Map;for(let e of i){let t=s.get(e.id);t!==void 0&&l.set(t,[...l.get(t)??[],e.id])}let u=0,d=O(e=>{c.set(e,u++);for(let t of l.get(e)??[])d(t)},`walk`);for(let e of i)s.has(e.id)||d(e.id);let f=O(e=>this.subGraphLookup.get(e)?.metadata?.view===`collapsed`,`isCollapsed`),p=O(e=>{let t,n=new Set,r=e;for(;r!==void 0&&!n.has(r);)n.add(r),f(r)&&(t=r),r=s.get(r);return t},`outermostCollapsed`),m=new Set,h=new Map;for(let e of i){let t=p(e.id);if(t!==void 0){e.id!==t&&(m.add(e.id),h.set(e.id,t));for(let n of e.nodes)n!==t&&(this.subGraphLookup.has(n)&&s.get(n)!==e.id||(m.add(n),h.set(n,t)))}}for(let e=i.length-1;e>=0;e--){let t=i[e];if(!m.has(t.id)){t.nodes.length>0&&o.set(t.id,!0);for(let e of t.nodes)n(e,t.id,e=>a.get(e))||a.set(e,t.id)}}for(let n=i.length-1;n>=0;n--){let r=i[n];m.has(r.id)||(r.metadata?.view===`collapsed`?t.push({id:r.id,label:r.title,labelStyle:``,labelType:r.labelType,parentId:a.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(` `),shape:`collapsedGroup`,dir:r.dir,isGroup:!1,look:e.look,colorIndex:c.get(r.id)}):t.push({id:r.id,label:r.title,labelStyle:``,labelType:r.labelType,parentId:a.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(` `),shape:`rect`,dir:r.dir,isGroup:!0,look:e.look,colorIndex:c.get(r.id),metadata:M(r.metadata,!0)}))}this.getVertices().forEach(n=>{m.has(n.id)||this.addNodeFromVertex(n,t,a,o,e,e.look||`classic`)});let _=this.getEdges(),te=_.reduce((e,t)=>b(t)?Math.max(e,t.step):e,0),ne=re(e.flowchart?.stepDuration),v=e.flowchart?.stepNumbers===!0?{showStepNumber:!0}:{};return _.forEach((t,n)=>{let{arrowTypeStart:i,arrowTypeEnd:a}=this.destructEdgeType(t.type),o=[..._.defaultStyle??[]],s=h.get(t.start)??t.start,c=h.get(t.end)??t.end;if(s===c&&(h.has(t.start)||h.has(t.end)))return;t.style&&o.push(...t.style);let l={id:ee(s,c,{counter:n,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:s,end:c,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:i,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:a,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:o,style:o,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,...b(t)?{step:t.step,stepCount:te,stepDuration:ne,...v}:{},curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(l)}),{nodes:t,edges:r,other:this.droppedSubGraphMembers.length>0?{droppedSubGraphMembers:[...this.droppedSubGraphMembers]}:{},config:e}}validate(){if(g().layout!==`grid`)return;let e=[...this.vertices.values(),...this.subGraphs];te(void 0,e);for(let t of e){let e=this.subGraphLookup.has(t.id);for(let n of Object.keys(t.metadata??{}))j.has(n)||e&&n===`algorithm`||p.warn(`Unknown metadata key "${n}" on ${e?`subgraph`:`node`} "${t.id}" with grid layout.`)}}defaultConfig(){return y.flowchart}},ue={getClasses:O(function(e,t){return t.db.getClasses()},`getClasses`),draw:O(async function(e,t,n,a){p.info(`REF0:`),p.info(`Drawing state diagram (v2)`,t);let{securityLevel:o,flowchart:s,layout:c}=g();a.db.setDiagramId(t),p.debug(`Before getData: `);let l=a.db.getData();p.debug(`Data: `,l);let u=r(t,o),d=a.db.getDirection();l.type=a.type,l.layoutAlgorithm=ie(c),l.direction=d,l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=[`point`,`circle`,`cross`],l.diagramId=t,p.debug(`REF1:`,l),await w(l,u);let f=l.config.flowchart?.diagramPadding??8;D.insertTitle(u,`flowchartTitleText`,s?.titleTopMargin||0,a.db.getDiagramTitle()),i(u,f,`flowchart`,s?.useMaxWidth||!1)},`draw`)},de=(function(){var e=O(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],a=[2,2],o=[1,13],s=[1,14],c=[1,15],l=[1,16],u=[1,23],d=[1,25],f=[1,26],p=[1,27],m=[1,51],h=[1,50],g=[1,30],_=[1,31],ee=[1,32],te=[1,33],ne=[1,34],v=[1,46],y=[1,48],b=[1,44],x=[1,49],S=[1,45],C=[1,52],w=[1,47],T=[1,53],E=[1,54],D=[1,35],re=[1,36],ie=[1,37],ae=[1,38],oe=[1,39],se=[1,59],k=[1,8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],A=[1,63],j=[1,62],M=[1,64],N=[8,9,11,76,78,79],ce=[1,80],le=[1,81],ue=[1,95],de=[1,100],fe=[1,99],pe=[1,96],me=[1,92],he=[1,98],ge=[1,94],_e=[1,101],ve=[1,97],ye=[1,102],be=[1,93],xe=[8,9,10,11,40,76,78,79],P=[8,9,10,11,40,47,76,78,79],F=[8,9,10,11,29,40,45,47,49,51,53,55,57,59,61,64,66,68,69,71,76,78,79,90,103,106,107,110,112,115,116,117],Se=[8,9,11,45,61,76,78,79,90,103,106,107,110,112,115,116,117],Ce=[2,26],we=[45,61,90,103,106,107,110,112,115,116,117],Te=[1,126],Ee=[1,127],De=[1,129],Oe=[1,128],ke=[45,61,63,75,90,103,106,107,110,112,115,116,117],Ae=[1,138],je=[1,152],Me=[1,153],Ne=[1,154],Pe=[1,155],Fe=[1,140],Ie=[1,142],Le=[1,146],Re=[1,147],ze=[1,148],Be=[1,149],Ve=[1,150],He=[1,151],Ue=[1,156],We=[1,157],Ge=[1,136],Ke=[1,137],qe=[1,144],Je=[1,139],Ye=[1,143],Xe=[1,141],Ze=[8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],Qe=[1,159],$e=[8,9,10,11,76,78,79],et=[1,160],tt=[1,162],I=[8,9,11],L=[8,9,10,11,14,45,61,90,106,107,110,112,115,116,117],R=[1,182],z=[1,178],B=[1,179],V=[1,183],H=[1,180],U=[1,181],nt=[78,117,120],W=[8,9,10,11,12,14,27,29,32,45,61,76,85,86,87,88,89,90,91,106,110,112,115,116,117],rt=[10,107],it=[31,50,52,54,56,58,63,65,67,68,70,72,117,118,119],G=[1,253],K=[1,251],q=[1,255],J=[1,249],Y=[1,250],X=[1,252],Z=[1,254],Q=[1,256],at=[1,273],ot=[8,9,11,107],$=[8,9,10,11,61,85,106,107,110,111,112,113],st={trace:O(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,withShape:41,node:42,link:43,styledVertex:44,AMP:45,vertex:46,STYLE_SEPARATOR:47,idString: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:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,edgeText:77,LINK:78,LINK_ID:79,edgeTextToken:80,STR:81,MD_STR:82,textToken:83,keywords:84,STYLE:85,LINKSTYLE:86,CLASSDEF:87,CLASS:88,CLICK:89,DOWN:90,UP:91,textNoTagsToken:92,stylesOpt:93,"idString[vertex]":94,"idString[class]":95,CALLBACKNAME:96,CALLBACKARGS:97,HREF:98,LINK_TARGET:99,"STR[link]":100,"STR[tooltip]":101,alphaNum:102,DEFAULT:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,NODE_STRING:110,UNIT:111,BRKT:112,PCT:113,idStringToken:114,MINUS:115,MULT:116,UNICODE_TEXT:117,TEXT:118,TAGSTART:119,EDGE_TEXT:120,alphaNumToken:121,direction_tb:122,direction_bt:123,direction_rl:124,direction_lr:125,direction_td:126,$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`,45:`AMP`,47:`STYLE_SEPARATOR`,49:`DOUBLECIRCLESTART`,50:`DOUBLECIRCLEEND`,51:`PS`,52:`PE`,53:`(-`,54:`-)`,55:`STADIUMSTART`,56:`STADIUMEND`,57:`SUBROUTINESTART`,58:`SUBROUTINEEND`,59:`VERTEX_WITH_PROPS_START`,60:`NODE_STRING[field]`,61:`COLON`,62:`NODE_STRING[value]`,63:`PIPE`,64:`CYLINDERSTART`,65:`CYLINDEREND`,66:`DIAMOND_START`,67:`DIAMOND_STOP`,68:`TAGEND`,69:`TRAPSTART`,70:`TRAPEND`,71:`INVTRAPSTART`,72:`INVTRAPEND`,75:`TESTSTR`,76:`START_LINK`,78:`LINK`,79:`LINK_ID`,81:`STR`,82:`MD_STR`,85:`STYLE`,86:`LINKSTYLE`,87:`CLASSDEF`,88:`CLASS`,89:`CLICK`,90:`DOWN`,91:`UP`,94:`idString[vertex]`,95:`idString[class]`,96:`CALLBACKNAME`,97:`CALLBACKARGS`,98:`HREF`,99:`LINK_TARGET`,100:`STR[link]`,101:`STR[tooltip]`,103:`DEFAULT`,105:`INTERPOLATE`,106:`NUM`,107:`COMMA`,110:`NODE_STRING`,111:`UNIT`,112:`BRKT`,113:`PCT`,115:`MINUS`,116:`MULT`,117:`UNICODE_TEXT`,118:`TEXT`,119:`TAGSTART`,120:`EDGE_TEXT`,122:`direction_tb`,123:`direction_bt`,124:`direction_rl`,125:`direction_lr`,126:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[41,2],[41,3],[20,3],[20,4],[20,3],[20,4],[20,2],[20,1],[20,2],[20,1],[42,1],[42,5],[42,5],[44,1],[44,3],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[43,2],[43,3],[43,3],[43,1],[43,3],[43,4],[77,1],[77,2],[77,1],[77,1],[73,1],[73,2],[74,3],[30,1],[30,2],[30,1],[30,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,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],[104,1],[104,3],[93,1],[93,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[83,1],[83,1],[83,1],[83,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[80,1],[80,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[48,1],[48,2],[102,1],[102,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:O(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 187:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:this.$={nodes:a[s-1],shapeData:a[s]};break;case 46:this.$={nodes:a[s-2],shapeData:a[s]};break;case 47:r.addVertex(a[s].nodes[a[s].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s].shapeData),r.addLink(a[s-2].stmt,a[s].nodes,a[s-1]),this.$={stmt:a[s].nodes,nodes:a[s].nodes.concat(a[s-2].nodes)};break;case 48:r.addVertex(a[s-1].nodes[a[s-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-1].shapeData),r.addLink(a[s-3].stmt,a[s-1].nodes,a[s-2]),this.$={stmt:a[s-1].nodes,nodes:a[s-1].nodes.concat(a[s-3].nodes)};break;case 49:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 50:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 51:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 52:r.addVertex(a[s].nodes[a[s].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s].shapeData),this.$={stmt:a[s].nodes,nodes:a[s].nodes,shapeData:a[s].shapeData};break;case 53:r.addVertex(a[s-1].nodes[a[s-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-1].shapeData),this.$={stmt:a[s-1].nodes,nodes:a[s-1].nodes,shapeData:a[s-1].shapeData};break;case 54:this.$={stmt:a[s],nodes:a[s]};break;case 55:this.$=[a[s]];break;case 56:r.addVertex(a[s-4].nodes[a[s-4].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4].shapeData),this.$=a[s-4].nodes.concat(a[s]);break;case 57:this.$=a[s-4].concat(a[s]);break;case 58:this.$=a[s];break;case 59:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 62:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 66:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 70:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 72:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 73:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 74:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 75:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 76:this.$=a[s],r.addVertex(a[s]);break;case 77:a[s-1].text=a[s],this.$=a[s-1];break;case 78:case 79:a[s-2].text=a[s-1],this.$=a[s-2];break;case 80:this.$=a[s];break;case 81:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 82:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1],id:a[s-3]};break;case 83:this.$={text:a[s],type:`text`};break;case 84:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 85:this.$={text:a[s],type:`string`};break;case 86:this.$={text:a[s],type:`markdown`};break;case 87:var c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 88:var c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length,id:a[s-1]};break;case 89:this.$=a[s-1];break;case 90:this.$={text:a[s],type:`text`};break;case 91:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 92:this.$={text:a[s],type:`string`};break;case 93:case 108:this.$={text:a[s],type:`markdown`};break;case 105:this.$={text:a[s],type:`text`};break;case 106:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 107:this.$={text:a[s],type:`text`};break;case 109:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 110:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 111:case 119:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 112:case 120:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 113:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 114:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 115:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 116:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 117:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 118:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 121:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 122:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 123:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 124:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 125:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 126:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 127:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 128:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 129:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 130:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 131:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 132:case 134:this.$=[a[s]];break;case 133:case 135:a[s-2].push(a[s]),this.$=a[s-2];break;case 137:this.$=a[s-1]+a[s];break;case 185:this.$=a[s];break;case 186:case 188:this.$=a[s-1]+``+a[s];break;case 189:this.$={stmt:`dir`,value:`TB`};break;case 190:this.$={stmt:`dir`,value:`BT`};break;case 191:this.$={stmt:`dir`,value:`RL`};break;case 192:this.$={stmt:`dir`,value:`LR`};break;case 193:this.$={stmt:`dir`,value:`TD`}}},`anonymous`),table:[{3:1,4:2,9:t,10:n,12:r},{1:[3]},e(i,a,{5:6}),{4:7,9:t,10:n,12:r},{4:8,9:t,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,33:24,34:d,36:f,38:p,41:29,42:28,44:40,45:m,46:41,48:42,61:h,85:g,86:_,87:ee,88:te,89:ne,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E,122:D,123:re,124:ie,125:ae,126:oe},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,56],9:[1,57],10:se,15:55,18:58},e(k,[2,3]),e(k,[2,4]),e(k,[2,5]),e(k,[2,6]),e(k,[2,7]),e(k,[2,8]),{8:A,9:j,11:M,21:60,43:61,73:65,76:[1,66],78:[1,68],79:[1,67]},{8:A,9:j,11:M,21:69},{8:A,9:j,11:M,21:70},{8:A,9:j,11:M,21:71},{8:A,9:j,11:M,21:72},{8:A,9:j,11:M,21:73},{8:A,9:j,10:[1,74],11:M,21:75},e(k,[2,36]),{35:[1,76]},{37:[1,77]},e(k,[2,39]),e(N,[2,54],{18:78,39:79,10:ce,40:le}),e(N,[2,52],{18:82,10:se}),{10:[1,83]},{10:[1,84]},{10:[1,85]},{10:[1,86]},{14:ue,45:de,61:fe,81:[1,90],90:pe,96:[1,87],98:[1,88],102:89,106:me,107:he,110:ge,112:_e,115:ve,116:ye,117:be,121:91},e(k,[2,189]),e(k,[2,190]),e(k,[2,191]),e(k,[2,192]),e(k,[2,193]),e(xe,[2,55]),e(xe,[2,58],{47:[1,103]}),e(P,[2,76],{114:116,29:[1,104],45:m,49:[1,105],51:[1,106],53:[1,107],55:[1,108],57:[1,109],59:[1,110],61:h,64:[1,111],66:[1,112],68:[1,113],69:[1,114],71:[1,115],90:v,103:y,106:b,107:x,110:S,112:C,115:w,116:T,117:E}),e(F,[2,185]),e(F,[2,146]),e(F,[2,147]),e(F,[2,148]),e(F,[2,149]),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(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,117]},e(Se,Ce,{18:118,10:se}),e(k,[2,27]),{41:119,42:120,44:40,45:m,46:41,48:42,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},e(k,[2,40]),e(k,[2,41]),e(k,[2,42]),e(we,[2,80],{74:121,63:[1,123],75:[1,122]}),{77:124,80:125,81:Te,82:Ee,117:De,120:Oe},{76:[1,130],78:[1,131]},e(ke,[2,87]),e(k,[2,28]),e(k,[2,29]),e(k,[2,30]),e(k,[2,31]),e(k,[2,32]),{10:Ae,12:je,14:Me,27:Ne,28:132,32:Pe,45:Fe,61:Ie,76:Le,81:[1,134],82:[1,135],84:145,85:Re,86:ze,87:Be,88:Ve,89:He,90:Ue,91:We,92:133,106:Ge,110:Ke,112:qe,115:Je,116:Ye,117:Xe},e(Ze,a,{5:158}),e(k,[2,37]),e(k,[2,38]),e(N,[2,51],{45:Qe}),e($e,[2,45],{40:et}),e([8,9,11,45,76,78,79],Ce,{18:118,39:161,10:se,40:le}),e(xe,[2,44]),e(N,[2,53],{45:tt}),{45:m,48:163,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},{103:[1,164],104:165,106:[1,166]},{45:m,48:167,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},{45:m,48:168,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},e(I,[2,111],{10:[1,169],97:[1,170]}),{81:[1,171]},e(I,[2,119],{121:173,10:[1,172],14:ue,45:de,61:fe,90:pe,106:me,107:he,110:ge,112:_e,115:ve,116:ye,117:be}),e(I,[2,121],{10:[1,174]}),e(L,[2,187]),e(L,[2,174]),e(L,[2,175]),e(L,[2,176]),e(L,[2,177]),e(L,[2,178]),e(L,[2,179]),e(L,[2,180]),e(L,[2,181]),e(L,[2,182]),e(L,[2,183]),e(L,[2,184]),{45:m,48:175,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},{30:176,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:184,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:186,51:[1,185],68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:187,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:188,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:189,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{110:[1,190]},{30:191,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:192,66:[1,193],68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:194,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:195,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{30:196,68:R,81:z,82:B,83:177,117:V,118:H,119:U},e(F,[2,186]),e(i,[2,20]),e(Se,[2,25]),e(N,[2,47],{18:197,10:se}),e(N,[2,49],{39:79,18:198,10:ce,40:le}),e(we,[2,77],{10:[1,199]}),{10:[1,200]},{30:201,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{78:[1,202],80:203,117:De,120:Oe},e(nt,[2,83]),e(nt,[2,85]),e(nt,[2,86]),e(nt,[2,172]),e(nt,[2,173]),{77:204,80:125,81:Te,82:Ee,117:De,120:Oe},e(ke,[2,88]),{8:A,9:j,10:Ae,11:M,12:je,14:Me,21:206,27:Ne,29:[1,205],32:Pe,45:Fe,61:Ie,76:Le,84:145,85:Re,86:ze,87:Be,88:Ve,89:He,90:Ue,91:We,92:207,106:Ge,110:Ke,112:qe,115:Je,116:Ye,117:Xe},e(W,[2,105]),e(W,[2,107]),e(W,[2,108]),e(W,[2,161]),e(W,[2,162]),e(W,[2,163]),e(W,[2,164]),e(W,[2,165]),e(W,[2,166]),e(W,[2,167]),e(W,[2,168]),e(W,[2,169]),e(W,[2,170]),e(W,[2,171]),e(W,[2,94]),e(W,[2,95]),e(W,[2,96]),e(W,[2,97]),e(W,[2,98]),e(W,[2,99]),e(W,[2,100]),e(W,[2,101]),e(W,[2,102]),e(W,[2,103]),e(W,[2,104]),{6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,208],33:24,34:d,36:f,38:p,41:29,42:28,44:40,45:m,46:41,48:42,61:h,85:g,86:_,87:ee,88:te,89:ne,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E,122:D,123:re,124:ie,125:ae,126:oe},{10:se,18:209},e(xe,[2,43]),e($e,[2,46],{40:et}),{10:se,18:210},{10:[1,211],45:m,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:116,115:w,116:T,117:E},{10:[1,212]},{10:[1,213],107:[1,214]},e(rt,[2,132]),{10:[1,215],45:m,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:116,115:w,116:T,117:E},{10:[1,216],45:m,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:116,115:w,116:T,117:E},{81:[1,217]},e(I,[2,113],{10:[1,218]}),e(I,[2,115],{10:[1,219]}),{81:[1,220]},e(L,[2,188]),{81:[1,221],99:[1,222]},e(xe,[2,59],{114:116,45:m,61:h,90:v,103:y,106:b,107:x,110:S,112:C,115:w,116:T,117:E}),{31:[1,223],68:R,83:224,117:V,118:H,119:U},e(it,[2,90]),e(it,[2,92]),e(it,[2,93]),e(it,[2,157]),e(it,[2,158]),e(it,[2,159]),e(it,[2,160]),{50:[1,225],68:R,83:224,117:V,118:H,119:U},{30:226,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{52:[1,227],68:R,83:224,117:V,118:H,119:U},{54:[1,228],68:R,83:224,117:V,118:H,119:U},{56:[1,229],68:R,83:224,117:V,118:H,119:U},{58:[1,230],68:R,83:224,117:V,118:H,119:U},{61:[1,231]},{65:[1,232],68:R,83:224,117:V,118:H,119:U},{67:[1,233],68:R,83:224,117:V,118:H,119:U},{30:234,68:R,81:z,82:B,83:177,117:V,118:H,119:U},{31:[1,235],68:R,83:224,117:V,118:H,119:U},{68:R,70:[1,236],72:[1,237],83:224,117:V,118:H,119:U},{68:R,70:[1,239],72:[1,238],83:224,117:V,118:H,119:U},e(N,[2,48],{45:tt}),e(N,[2,50],{45:Qe}),e(we,[2,79]),e(we,[2,78]),{63:[1,240],68:R,83:224,117:V,118:H,119:U},e(we,[2,81]),e(nt,[2,84]),{78:[1,241],80:203,117:De,120:Oe},{30:242,68:R,81:z,82:B,83:177,117:V,118:H,119:U},e(Ze,a,{5:243}),e(W,[2,106]),e(k,[2,35]),{44:244,45:m,46:41,48:42,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},{44:245,45:m,46:41,48:42,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},{10:G,61:K,85:q,93:246,106:J,108:247,109:248,110:Y,111:X,112:Z,113:Q},{10:G,61:K,85:q,93:257,105:[1,258],106:J,108:247,109:248,110:Y,111:X,112:Z,113:Q},{10:G,61:K,85:q,93:259,105:[1,260],106:J,108:247,109:248,110:Y,111:X,112:Z,113:Q},{106:[1,261]},{10:G,61:K,85:q,93:262,106:J,108:247,109:248,110:Y,111:X,112:Z,113:Q},{45:m,48:263,61:h,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E},e(I,[2,112]),{81:[1,264]},{81:[1,265],99:[1,266]},e(I,[2,120]),e(I,[2,122],{10:[1,267]}),e(I,[2,123]),e(P,[2,60]),e(it,[2,91]),e(P,[2,61]),{52:[1,268],68:R,83:224,117:V,118:H,119:U},e(P,[2,68]),e(P,[2,63]),e(P,[2,64]),e(P,[2,65]),{110:[1,269]},e(P,[2,67]),e(P,[2,69]),{67:[1,270],68:R,83:224,117:V,118:H,119:U},e(P,[2,71]),e(P,[2,72]),e(P,[2,74]),e(P,[2,73]),e(P,[2,75]),e([10,45,61,90,103,106,107,110,112,115,116,117],[2,89]),e(we,[2,82]),{31:[1,271],68:R,83:224,117:V,118:H,119:U},{6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,272],33:24,34:d,36:f,38:p,41:29,42:28,44:40,45:m,46:41,48:42,61:h,85:g,86:_,87:ee,88:te,89:ne,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E,122:D,123:re,124:ie,125:ae,126:oe},e(xe,[2,57]),e(xe,[2,56]),e(I,[2,125],{107:at}),e(ot,[2,134],{109:274,10:G,61:K,85:q,106:J,110:Y,111:X,112:Z,113:Q}),e($,[2,136]),e($,[2,138]),e($,[2,139]),e($,[2,140]),e($,[2,141]),e($,[2,142]),e($,[2,143]),e($,[2,144]),e($,[2,145]),e(I,[2,126],{107:at}),{10:[1,275]},e(I,[2,127],{107:at}),{10:[1,276]},e(rt,[2,133]),e(I,[2,109],{107:at}),e(I,[2,110],{114:116,45:m,61:h,90:v,103:y,106:b,107:x,110:S,112:C,115:w,116:T,117:E}),e(I,[2,114]),e(I,[2,116],{10:[1,277]}),e(I,[2,117]),{99:[1,278]},{52:[1,279]},{63:[1,280]},{67:[1,281]},{8:A,9:j,11:M,21:282},e(k,[2,34]),{10:G,61:K,85:q,106:J,108:283,109:248,110:Y,111:X,112:Z,113:Q},e($,[2,137]),{14:ue,45:de,61:fe,90:pe,102:284,106:me,107:he,110:ge,112:_e,115:ve,116:ye,117:be,121:91},{14:ue,45:de,61:fe,90:pe,102:285,106:me,107:he,110:ge,112:_e,115:ve,116:ye,117:be,121:91},{99:[1,286]},e(I,[2,124]),e(P,[2,62]),{30:287,68:R,81:z,82:B,83:177,117:V,118:H,119:U},e(P,[2,70]),e(Ze,a,{5:288}),e(ot,[2,135],{109:274,10:G,61:K,85:q,106:J,110:Y,111:X,112:Z,113:Q}),e(I,[2,130],{121:173,10:[1,289],14:ue,45:de,61:fe,90:pe,106:me,107:he,110:ge,112:_e,115:ve,116:ye,117:be}),e(I,[2,131],{121:173,10:[1,290],14:ue,45:de,61:fe,90:pe,106:me,107:he,110:ge,112:_e,115:ve,116:ye,117:be}),e(I,[2,118]),{31:[1,291],68:R,83:224,117:V,118:H,119:U},{6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,292],33:24,34:d,36:f,38:p,41:29,42:28,44:40,45:m,46:41,48:42,61:h,85:g,86:_,87:ee,88:te,89:ne,90:v,103:y,106:b,107:x,110:S,112:C,114:43,115:w,116:T,117:E,122:D,123:re,124:ie,125:ae,126:oe},{10:G,61:K,85:q,93:293,106:J,108:247,109:248,110:Y,111:X,112:Z,113:Q},{10:G,61:K,85:q,93:294,106:J,108:247,109:248,110:Y,111:X,112:Z,113:Q},e(P,[2,66]),e(k,[2,33]),e(I,[2,128],{107:at}),e(I,[2,129],{107:at})],defaultActions:{},parseError:O(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:O(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var ee=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function te(e){n.length-=2*e,i.length-=e,a.length-=e}O(te,`popStack`);function ne(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}O(ne,`lex`);for(var v,y,b,x,S,C={},w,T,E,D;;){if(b=n[n.length-1],this.defaultActions[b]?x=this.defaultActions[b]:(v??=ne(),x=o[b]&&o[b][v]),x===void 0||!x.length||!x[0]){var re=``;for(w in D=[],o[b])this.terminals_[w]&&w>d&&D.push(`'`+this.terminals_[w]+`'`);re=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
10
|
+
`+m.showPosition()+`
|
|
11
|
+
Expecting `+D.join(`, `)+`, got '`+(this.terminals_[v]||v)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(v==f?`end of input`:`'`+(this.terminals_[v]||v)+`'`),this.parseError(re,{text:m.match,token:this.terminals_[v]||v,line:m.yylineno,loc:_,expected:D})}if(x[0]instanceof Array&&x.length>1)throw Error(`Parse Error: multiple actions possible at state: `+b+`, token: `+v);switch(x[0]){case 1:n.push(v),i.push(m.yytext),a.push(m.yylloc),n.push(x[1]),v=null,y?(v=y,y=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(T=this.productions_[x[1]][1],C.$=i[i.length-T],C._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},ee&&(C._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),S=this.performAction.apply(C,[s,l,c,h.yy,x[1],i,a].concat(p)),S!==void 0)return S;T&&(n=n.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[x[1]][0]),i.push(C.$),a.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},`parse`)};st.lexer=(function(){return{EOF:1,parseError:O(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:O(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:O(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},`input`),unput:O(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:O(function(){return this._more=!0,this},`more`),reject:O(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
12
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:O(function(e){this.unput(this.match.slice(e))},`less`),pastInput:O(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:O(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:O(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
13
|
+
`+t+`^`},`showPosition`),test_match:O(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:O(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:O(function(){return this.next()||this.lex()},`lex`),begin:O(function(e){this.conditionStack.push(e)},`begin`),popState:O(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:O(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:O(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:O(function(e){this.begin(e)},`pushState`),stateStackSize:O(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:O(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),34;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),36;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return this.pushState(`shapeData`),t.yytext=``,40;case 8:return this.pushState(`shapeDataStr`),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin(`callbackname`);break;case 14:this.popState();break;case 15:this.popState(),this.begin(`callbackargs`);break;case 16:return 96;case 17:this.popState();break;case 18:return 97;case 19:return`MD_STR`;case 20:this.popState();break;case 21:this.begin(`md_string`);break;case 22:return`STR`;case 23:this.popState();break;case 24:this.pushState(`string`);break;case 25:return 85;case 26:return 103;case 27:return 86;case 28:return 105;case 29:return 87;case 30:return 88;case 31:return 98;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 89;case 35:case 36:case 37:case 38:return e.lex.firstGraph()&&this.begin(`dir`),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 99;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 126;case 61:return 79;case 62:return 106;case 63:return 112;case 64:return 47;case 65:return 61;case 66:return 45;case 67:return 8;case 68:return 107;case 69:return 116;case 70:return this.popState(),78;case 71:return this.pushState(`edgeText`),76;case 72:return 120;case 73:return this.popState(),78;case 74:return this.pushState(`thickEdgeText`),76;case 75:return 120;case 76:return this.popState(),78;case 77:return this.pushState(`dottedEdgeText`),76;case 78:return 120;case 79:return 78;case 80:return this.popState(),54;case 81:return`TEXT`;case 82:return this.pushState(`ellipseText`),53;case 83:return this.popState(),56;case 84:return this.pushState(`text`),55;case 85:return this.popState(),58;case 86:return this.pushState(`text`),57;case 87:return 59;case 88:return this.pushState(`text`),68;case 89:return this.popState(),65;case 90:return this.pushState(`text`),64;case 91:return this.popState(),50;case 92:return this.pushState(`text`),49;case 93:return this.popState(),70;case 94:return this.popState(),72;case 95:return 118;case 96:return this.pushState(`trapText`),69;case 97:return this.pushState(`trapText`),71;case 98:return 119;case 99:return 68;case 100:return 91;case 101:return`SEP`;case 102:return 90;case 103:return 116;case 104:return 112;case 105:return 45;case 106:return 110;case 107:return 115;case 108:return 117;case 109:return this.popState(),63;case 110:return this.pushState(`text`),63;case 111:return this.popState(),52;case 112:return this.pushState(`text`),51;case 113:return this.popState(),31;case 114:return this.pushState(`text`),29;case 115:return this.popState(),67;case 116:return this.pushState(`text`),66;case 117:return`TEXT`;case 118:return`QUOTE`;case 119:return 9;case 120:return 10;case 121: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)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"\[\]\(\)\{\}\|]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],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,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function ct(){this.yy={}}return O(ct,`Parser`),ct.prototype=st,st.Parser=ct,new ct})();de.parser=de;var fe=de,pe=Object.assign({},fe);pe.parse=e=>{let t=e.replace(/}\s*\n/g,`}
|
|
15
|
+
`);return fe.parse(t)};var me=pe,he=O(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!s(t,r))return``;let i=C(e.look),a=l(n),o=``;for(let t=0;t<_(e.THEME_COLOR_LIMIT,r);t++){let e=r[t%r.length],s=a?`fill: ${n[t%n.length]};`:``,c=`[data-look="${i}"][data-color-id="color-${t}"]`,l=O(e=>`${c}.node ${e}, ${c}.rough-node ${e}`,`collapsedRule`),u=O(e=>`${c}.swimlane.cluster .swimlane-title${e}, ${c}.swimlane.cluster .swimlane-body${e}`,`laneRule`);o+=`
|
|
16
|
+
|
|
17
|
+
${c}.cluster:not(.swimlane) rect {
|
|
18
|
+
stroke: ${e};
|
|
19
|
+
${s}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${c}.cluster:not(.swimlane) path {
|
|
23
|
+
stroke: ${e};
|
|
24
|
+
${s}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Lane, classic and neo. */
|
|
28
|
+
${c}.swimlane.cluster rect.swimlane-title,
|
|
29
|
+
${c}.swimlane.cluster rect.swimlane-body {
|
|
30
|
+
stroke: ${e};
|
|
31
|
+
${s}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
|
|
35
|
+
${u(` path:nth-of-type(2)`)} {
|
|
36
|
+
stroke: ${e};
|
|
37
|
+
}
|
|
38
|
+
${a?`
|
|
39
|
+
/* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
|
|
40
|
+
${u(` path:first-of-type`)} {
|
|
41
|
+
stroke: ${n[t%n.length]};
|
|
42
|
+
}
|
|
43
|
+
`:``}
|
|
44
|
+
${l(`.collapsed-group`)},
|
|
45
|
+
${l(`.collapsed-group path`)} {
|
|
46
|
+
stroke: ${e};
|
|
47
|
+
${s}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The ellipsis dots and the separator take clusterBorder further down, so without
|
|
51
|
+
these the container is palette-coloured while its own markers are not. */
|
|
52
|
+
${l(`.collapsed-indicator`)} {
|
|
53
|
+
fill: ${e};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${l(`.collapsed-separator`)} {
|
|
57
|
+
stroke: ${e};
|
|
58
|
+
}
|
|
59
|
+
`}return o},`genColor`),ge=O((e,t)=>{let n=ne,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return v(r,i,a,t)},`fade`),_e=O(e=>`${he(e)}
|
|
60
|
+
.label {
|
|
61
|
+
font-family: ${e.fontFamily};
|
|
62
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
63
|
+
}
|
|
64
|
+
.cluster-label text {
|
|
65
|
+
fill: ${e.titleColor};
|
|
66
|
+
}
|
|
67
|
+
.cluster-label span {
|
|
68
|
+
color: ${e.titleColor};
|
|
69
|
+
}
|
|
70
|
+
.cluster-label span p {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.label text,span {
|
|
75
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
76
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.node rect,
|
|
80
|
+
.node circle,
|
|
81
|
+
.node ellipse,
|
|
82
|
+
.node polygon,
|
|
83
|
+
.node path {
|
|
84
|
+
fill: ${e.mainBkg};
|
|
85
|
+
stroke: ${e.nodeBorder};
|
|
86
|
+
stroke-width: ${e.strokeWidth??1}px;
|
|
87
|
+
}
|
|
88
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
89
|
+
text-anchor: middle;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.node .katex path {
|
|
93
|
+
fill: #000;
|
|
94
|
+
stroke: #000;
|
|
95
|
+
stroke-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
.node.clickable {
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
.root .anchor path {
|
|
107
|
+
fill: ${e.lineColor} !important;
|
|
108
|
+
stroke-width: 0;
|
|
109
|
+
stroke: ${e.lineColor};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.arrowheadPath {
|
|
113
|
+
fill: ${e.arrowheadColor};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.edgePaths .path {
|
|
117
|
+
stroke: ${e.lineColor};
|
|
118
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.flowchart-link {
|
|
122
|
+
stroke: ${e.lineColor};
|
|
123
|
+
fill: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.edgeLabel {
|
|
127
|
+
background-color: ${e.edgeLabelBackground};
|
|
128
|
+
p {
|
|
129
|
+
background-color: ${e.edgeLabelBackground};
|
|
130
|
+
}
|
|
131
|
+
rect {
|
|
132
|
+
opacity: 0.5;
|
|
133
|
+
background-color: ${e.edgeLabelBackground};
|
|
134
|
+
fill: ${e.edgeLabelBackground};
|
|
135
|
+
}
|
|
136
|
+
text-align: center;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* For html labels only */
|
|
140
|
+
.labelBkg {
|
|
141
|
+
background-color: ${ge(e.edgeLabelBackground,.5)};
|
|
142
|
+
// background-color:
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.cluster rect {
|
|
146
|
+
fill: ${e.clusterBkg};
|
|
147
|
+
stroke: ${e.clusterBorder};
|
|
148
|
+
stroke-width: 1px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.cluster text {
|
|
152
|
+
fill: ${e.titleColor};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cluster span {
|
|
156
|
+
color: ${e.titleColor};
|
|
157
|
+
}
|
|
158
|
+
/* .cluster div {
|
|
159
|
+
color: ${e.titleColor};
|
|
160
|
+
} */
|
|
161
|
+
|
|
162
|
+
/* Collapsed subgraph node (@{ view: collapsed }) */
|
|
163
|
+
.node .collapsed-indicator {
|
|
164
|
+
fill: ${e.clusterBorder};
|
|
165
|
+
stroke: none;
|
|
166
|
+
opacity: 0.6;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.node .collapsed-separator {
|
|
170
|
+
stroke: ${e.clusterBorder};
|
|
171
|
+
stroke-width: 0.75px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
div.mermaidTooltip {
|
|
175
|
+
position: absolute;
|
|
176
|
+
text-align: center;
|
|
177
|
+
max-width: 200px;
|
|
178
|
+
padding: 2px;
|
|
179
|
+
font-family: ${e.fontFamily};
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
background: ${e.tertiaryColor};
|
|
182
|
+
border: 1px solid ${e.border2};
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
z-index: 100;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.flowchartTitleText {
|
|
189
|
+
text-anchor: middle;
|
|
190
|
+
font-size: 18px;
|
|
191
|
+
fill: ${e.textColor};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
rect.text {
|
|
195
|
+
fill: none;
|
|
196
|
+
stroke-width: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.icon-shape, .image-shape {
|
|
200
|
+
background-color: ${e.edgeLabelBackground};
|
|
201
|
+
p {
|
|
202
|
+
background-color: ${e.edgeLabelBackground};
|
|
203
|
+
padding: 2px;
|
|
204
|
+
}
|
|
205
|
+
.label rect {
|
|
206
|
+
opacity: 0.5;
|
|
207
|
+
background-color: ${e.edgeLabelBackground};
|
|
208
|
+
fill: ${e.edgeLabelBackground};
|
|
209
|
+
}
|
|
210
|
+
text-align: center;
|
|
211
|
+
}
|
|
212
|
+
${t()}
|
|
213
|
+
`,`getStyles`),ve=O(({styles:e=_e}={})=>({parser:me,get db(){return new le},renderer:ue,styles:e,init:O(e=>{e.flowchart||={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,oe({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)}),`createFlowDiagram`),ye=ve();export{ye as n,_e as r,ve as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{pn as e,tr as t}from"./index-LgGsGSUh.js";var n=t((t,n)=>{let r;return n===`sandbox`&&(r=e(`#i`+t)),e(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`)},`getDiagramElement`);export{n as t};
|