import{t as e}from"./preload-helper.DOHRDkqH.js";import{m as t}from"./chunk-K5T4RW27.xD_8cOTh.js";import"./chunk-7N4EOEYR.D5BfjdHk.js";import"./chunk-67CJDMHE.Djx2AD-S.js";import"./chunk-KGLVRYIC.DisIBMer.js";import"./chunk-FOC6F5B3.CCB_toO6.js";import"./chunk-AA7GKIK3.Yo-JBl3z.js";import"./chunk-2KRD3SAO.uZIjYnrt.js";import"./chunk-ORNJ4GCN.Bjxca-xU.js";import"./chunk-LIHQZDEY.C-AVOVsi.js";import"./chunk-CIAEETIT.kQ7fmUk0.js";var n,r={},i={info:t(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-OMHHGYJF.BsrC_eXZ.js`);return{createInfoServices:e}},[],import.meta.url);r.info=t().Info.parser.LangiumParser},`info`),packet:t(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-4T2RLAQJ.rzwKDcSO.js`);return{createPacketServices:e}},[],import.meta.url);r.packet=t().Packet.parser.LangiumParser},`packet`),pie:t(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-ZZUOXDRM.D1zb_aIr.js`);return{createPieServices:e}},[],import.meta.url);r.pie=t().Pie.parser.LangiumParser},`pie`),treeView:t(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-SZITEDCU.5nxRkm06.js`);return{createTreeViewServices:e}},[],import.meta.url);r.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:t(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-YZFGNWBL.BnY3Dhk_.js`);return{createArchitectureServices:e}},[],import.meta.url);r.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:t(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-7Q5UKJZL.DU_ItoRu.js`);return{createGitGraphServices:e}},[],import.meta.url);r.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),radar:t(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-PYXPWWZC.BgA8Sw6m.js`);return{createRadarServices:e}},[],import.meta.url);r.radar=t().Radar.parser.LangiumParser},`radar`),treemap:t(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-W4RFUUIX.DH4zS9AR.js`);return{createTreemapServices:e}},[],import.meta.url);r.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:t(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-RL74JXVD.BL8bkdVF.js`);return{createWardleyServices:e}},[],import.meta.url);r.wardley=t().Wardley.parser.LangiumParser},`wardley`)};async function a(e,t){let n=i[e];if(!n)throw Error(`Unknown diagram type: ${e}`);r[e]||await n();let a=r[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new o(a);return a.value}t(a,`parse`);var o=(n=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
`);super(`Parsing failed: ${t} ${n}`),this.result=e}},t(n,`MermaidParseError`),n);export{a as t};
//# sourceMappingURL=mermaid-parser.core.DqzCLX1-.js.map