1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7746e86b-f9aa-5d5f-a2fe-9240c9f8c0b0")}catch(e){}}(); 3import{a,b as m,c as p}from"./chunk-KGASZI6T.js";import{a as s}from"./chunk-4QJAOIVL.js";import{b as l}from"./chunk-TLX52M7T.js";import"./chunk-BZZE4OCD.js";import"./chunk-U5XLHPB3.js";import"./chunk-FNG2XWV6.js";import"./chunk-HOF77NJ6.js";import"./chunk-JVG3FUZH.js";import"./chunk-OISQRTQF.js";import"./chunk-KEDO2YHZ.js";import{b as i}from"./chunk-V4ZX3JQE.js";import"./chunk-34GC4EKI.js";import"./chunk-PKF2PXN6.js";import"./chunk-ZCWDPTHA.js";import"./chunk-W4LMZAON.js";import"./chunk-AWWMQ55A.js";import"./chunk-OELZQMZ3.js";import"./chunk-2JHVJLXQ.js";import"./chunk-I6NOPF6Q.js";import"./chunk-KDZS726T.js";import"./chunk-ALWF5ZN4.js";import{b as n}from"./chunk-VVUXP3HJ.js";import{a as t}from"./chunk-5FXDVLID.js";import"./chunk-OO2NDPJI.js";var f=i().RailroadPeg.parser.LangiumParser,c=t(e=>{let r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{let r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{let r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${u(r)}`:`!${u(r)}`}:r},"transformPrefix"),u=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{let r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return c(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:c(e.definition)}),"transformRule"),h=t(e=>{s(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");let r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let o=r.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),h(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:b,db:a,renderer:p,styles:m};export{R as diagram}; 4//# sourceMappingURL=chunk-FKKT3F73.js.map 5 6//# debugId=7746e86b-f9aa-5d5f-a2fe-9240c9f8c0b0
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.